private void HandleUseItem(GameEvent_UseItem ev) { if (ev.ExecutorEntity == this.Parent) { ev.Completed = true; } }
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); } }
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); } }