public static void SleepPlayer(Player player, StatusEffect se) { GameEngine.SayToLocation(player.Location, $"{player.Name} is blissfully resting!"); player.HealHP(2); }
public static void PoisonPlayer(Player player, StatusEffect se) { GameEngine.SayToLocation(player.Location, $"{player.Name} takes damage from poison!"); player.DamageHP(se.Value, "poison", null); se.Value -= 1; }
public static void CorpseRot(Player player, StatusEffect se) { GameEngine.SayToLocation(player.Location, $"{player.Name} is dissolving away..."); se.Value -= 1; player.Notify($" * Your [Despawn Time]: -1 => {se.Value}"); }
public static void PoisonHit(Player player, StatusEffect se) { GameEngine.SayToLocation(player.Location, $"{player.Name} was injected with poison!"); player.AddEffect(new StatusEffect(EffectClass.Poison, turnTickEvent: PoisonPlayer, effectExpiresEvent: PoisonCuredByTime, effectValue: se.Value)); }
public static void SleeperTakesDamage(Player player, StatusEffect se) { GameEngine.SayToLocation(player.Location, $"{player.Name} is awoken by pain!"); se.Value = 0; }