New Experimental Science T3: Desynchronizer (#35752)
* desynchronizer real * yaml stuff from slarti branch * C# stuff * oops * review * improve --------- Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com>
This commit is contained in:
@@ -5,6 +5,7 @@ using Content.Server.Mind.Commands;
|
||||
using Content.Server.Polymorph.Components;
|
||||
using Content.Shared.Actions;
|
||||
using Content.Shared.Buckle;
|
||||
using Content.Shared.Coordinates;
|
||||
using Content.Shared.Damage;
|
||||
using Content.Shared.Destructible;
|
||||
using Content.Shared.Hands.EntitySystems;
|
||||
@@ -277,6 +278,10 @@ public sealed partial class PolymorphSystem : EntitySystem
|
||||
var ev = new PolymorphedEvent(uid, child, false);
|
||||
RaiseLocalEvent(uid, ref ev);
|
||||
|
||||
// visual effect spawn
|
||||
if (configuration.EffectProto != null)
|
||||
SpawnAttachedTo(configuration.EffectProto, child.ToCoordinates());
|
||||
|
||||
return child;
|
||||
}
|
||||
|
||||
@@ -353,6 +358,10 @@ public sealed partial class PolymorphSystem : EntitySystem
|
||||
var ev = new PolymorphedEvent(uid, parent, true);
|
||||
RaiseLocalEvent(uid, ref ev);
|
||||
|
||||
// visual effect spawn
|
||||
if (component.Configuration.EffectProto != null)
|
||||
SpawnAttachedTo(component.Configuration.EffectProto, parent.ToCoordinates());
|
||||
|
||||
if (component.Configuration.ExitPolymorphPopup != null)
|
||||
_popup.PopupEntity(Loc.GetString(component.Configuration.ExitPolymorphPopup,
|
||||
("parent", Identity.Entity(uid, EntityManager)),
|
||||
|
||||
Reference in New Issue
Block a user