* fix: Ботинки клоуна сново работают

* fix: Световое копье теперь исчезает если его передать
This commit is contained in:
Spatison
2024-07-30 03:13:05 +03:00
committed by GitHub
parent 74e1f3c618
commit 397e74079b
8 changed files with 115 additions and 96 deletions

View File

@@ -69,12 +69,18 @@ public sealed class OfferItemSystem : SharedOfferItemSystem
_popup.PopupEntity(Loc.GetString("offer-item-give",
("item", Identity.Entity(offerItem.Item.Value, EntityManager)),
("target", Identity.Entity(uid, EntityManager))), component.Target.Value, component.Target.Value);
("target", Identity.Entity(uid, EntityManager))),
component.Target.Value,
component.Target.Value);
_popup.PopupEntity(Loc.GetString("offer-item-give-other",
("user", Identity.Entity(component.Target.Value, EntityManager)),
("item", Identity.Entity(offerItem.Item.Value, EntityManager)),
("target", Identity.Entity(uid, EntityManager)))
, component.Target.Value, Filter.PvsExcept(component.Target.Value, entityManager: EntityManager), true);
("target", Identity.Entity(uid, EntityManager))),
component.Target.Value,
Filter.PvsExcept(component.Target.Value, entityManager: EntityManager),
true);
RaiseLocalEvent(offerItem.Item.Value, new HandedEvent(component.Target.Value, uid));
}
offerItem.Item = null;