Пример #1
0
    private void HandleCosts(RessourceCosts costs, float tokens)
    {
        if (tokens > 0)
        {
            Wood.DecreaseWoodBy(costs.AmountOfWood);
            Fur.DecreaseBy(costs.AmountOfLeather);

            if (FoodStorage.Food < costs.AmountOfFood)
            {
                int foodCost = costs.AmountOfFood - FoodStorage.Food;

                foodUsed = FoodStorage.Food;
                FoodStorage.DecreaseFoodBy(FoodStorage.Food);

                permanentFoodUsed = foodCost;
                FoodStorage.DecreasePermantFoodBy(foodCost);
            }
            else
            {
                foodUsed = costs.AmountOfFood;
                FoodStorage.DecreaseFoodBy(foodUsed);
            }
        }
        else if (tokens == 0)
        {
            Wood.IncreaseWoodBy(costs.AmountOfWood);
            Fur.IncreaseBy(costs.AmountOfLeather);
            FoodStorage.IncreaseFoodBy(foodUsed);
            FoodStorage.IncreasePermantFoodBy(permanentFoodUsed);
        }
    }
 public void GatherRessources(RessourceType ressource)
 {
     if (ressource == RessourceType.Fish)
     {
         FoodStorage.IncreaseFoodBy(1);
     }
 }
Пример #3
0
 public override void UseAbility()
 {
     if (CurrentDetermination >= GetAbilityCosts())
     {
         //Stone Soup
         CharacterActions.LowerCharacterDeterminationBy(GetAbilityCosts(), this);
         FoodStorage.IncreaseFoodBy(1);
     }
 }
 public void GatherRessources(RessourceType ressource)
 {
     if (ressource == RessourceType.Wood)
     {
         Wood.IncreaseWoodBy(1);
     }
     else if (ressource == RessourceType.Parrot)
     {
         FoodStorage.IncreaseFoodBy(1);
     }
 }
Пример #5
0
    private void OnMouseDown()
    {
        var component = GetComponent <Actionphase_CanClick>();

        if (component != null && component.IsClickable)
        {
            if (Charges == 0)
            {
                return;
            }

            FoodStorage.IncreaseFoodBy(1);

            Charges--;
            if (Charges == 1)
            {
                token_1.SetActive(true);
            }
            if (Charges == 0)
            {
                token_2.SetActive(true);
            }
        }
    }
Пример #6
0
        private void ExecuteActiveThreat()
        {
            var numberOfPlayers = Player.PartyActions.GetNumberOfPlayers();

            FoodStorage.IncreaseFoodBy(numberOfPlayers);
        }
Пример #7
0
 private void ExecuteActiveThreat()
 {
     FoodStorage.IncreaseFoodBy(2);
     Fur.IncreaseBy(1);
 }
Пример #8
0
 public void ExecuteSuccessEvent()
 {
     //TODO: Card has an option for only one action point
     FoodStorage.IncreaseFoodBy(1);
     FoodStorage.IncreasePermantFoodBy(1);
 }