コード例 #1
0
 protected override void CreateEffect(EffectSystemMessage message, EntityUid?user = null)
 {
     // TODO: F*****g bad
     if (TryComp <ActorComponent>(user, out var actor))
     {
         _effects.CreateParticle(message, actor.PlayerSession);
     }
     else
     {
         _effects.CreateParticle(message);
     }
 }