private void ExecuteFutureThreat() { if (FoodStorage.GetTotal() < 1) { var active = Player.PartyActions.ExecutingCharacter; Characters.CharacterActions.DamageCharacterBy(1, active); } else { FoodStorage.Consume(1); } WeaponPower.RaiseWeaponPowerBy(1); }
public static void Sleep() { foreach (Character c in PartyHandler.PartySession) { if (c is ISideCharacter) { continue; } if (FoodStorage.GetTotal() >= 1) { FoodStorage.Consume(1); } else { CharacterActions.DamageCharacterBy(2, c); } } }
private void HandleRessourceCosts() { Debug.Log("Wood " + amountWoodGone); Debug.Log("Food " + amountFoodGone); if (amountWoodGone > 0) { Wood.DecreaseWoodBy(amountWoodGone); } if (amountFoodGone > 0) { if (FoodStorage.GetTotal() < amountFoodGone) { int difference = amountFoodGone - FoodStorage.GetTotal(); FoodStorage.Consume(FoodStorage.GetTotal()); PartyActions.DamageAllPlayers(difference); } else { FoodStorage.Consume(amountFoodGone); } } }