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:
Aviu00
2024-04-23 22:20:16 +09:00
committed by GitHub
parent d6a25fc39a
commit 9a72a48c4b
13 changed files with 76 additions and 25 deletions

View File

@@ -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)}");