private static void PlayerPoisonedByMushroom(Mushroom mushroom, Player player) { player.PlaySound(GameSound.PlayerInjured); int r = mushroom.CalculateEnergyToRemove(player); if (r > 0) { player.ReduceEnergy(r); } mushroom.SetTaken(); }