예제 #1
0
 private void HandleUseItem(GameEvent_UseItem ev)
 {
     if (ev.ExecutorEntity == this.Parent)
     {
         ev.Completed = true;
     }
 }
예제 #2
0
 private void HandleUseItem(GameEvent_UseItem ev)
 {
     if (ev.ExecutorEntity == this.Parent)
     {
         var attack = new GameEvent_ReceiveAttack(ev.Target, BodyPartLocation.TORSO, this.DamageType, this.BaseDamage);
         ev.Target.HandleEvent(attack);
     }
 }
예제 #3
0
 private void HandleUseItem(GameEvent_UseItem ev)
 {
     if (ev.ExecutorEntity == this.Parent)
     {
         var applyEvent = new GameEvent_ReceiveStatusEffect(ev.CommandTick, Config.ZERO, ev.Target, ev.Item,
                                                            this.EffectToApply);
         ev.Target.HandleEvent(applyEvent);
     }
 }