Fixes mostly (#292)
* - fix: Fix animals standing. * - fix: Stuff drop from hands on stun or death even if lying. * - tweak: Tentacle gun no longer stuns. * - fix: Space cleaner now evaporates. * - remove: No crew monitor objective. * - fix: Fix time beacon. * - tweak: Revert neuro implant buff. * - tweak: Nerf dagger. * - fix: Fix void adaptation not working.
This commit is contained in:
@@ -264,6 +264,17 @@ public sealed partial class StoreSystem
|
||||
RaiseLocalEvent(buyer, listing.ProductEvent);
|
||||
}
|
||||
|
||||
// WD START
|
||||
foreach (var name in listing.Components)
|
||||
{
|
||||
if (EntityManager.HasComponent(buyer, EntityManager.ComponentFactory.GetRegistration(name).Type))
|
||||
continue;
|
||||
|
||||
var newComp = (Component) EntityManager.ComponentFactory.GetComponent(name);
|
||||
EntityManager.AddComponent(buyer, newComp);
|
||||
}
|
||||
// WD END
|
||||
|
||||
//log dat shit.
|
||||
_admin.Add(LogType.StorePurchase, LogImpact.Low,
|
||||
$"{ToPrettyString(buyer):player} purchased listing \"{ListingLocalisationHelpers.GetLocalisedNameOrEntityName(listing, _prototypeManager)}\" from {ToPrettyString(uid)}");
|
||||
|
||||
Reference in New Issue
Block a user