Esempio n. 1
0
    public void passturn()
    {
        float foodn    = resources.food;
        float orangesn = resources.oranges;
        float watern   = resources.water;
        float boozen   = resources.booze;
        float goldn    = resources.gold;


        resources.dirtiness++;

        PlayerInteractor.UpdatePlayerChoices();
        turncount++;
        EventManagerList.Turn();

        Illness.TurnDisease(pirates);

        foreach (pirate p in pirates)
        {
            p.eat(FoodState);
            p.drink(WaterState);
        }
        checkdead();
        PlayerInteractor.UpdateReport(foodn - resources.food, watern - resources.water, orangesn - resources.oranges, boozen - resources.booze, goldn - resources.gold, pirates);
    }
Esempio n. 2
0
 public void passturn()
 {
     Illness.TurnDisease(pirates);
     try
     {
         EventManagerList.Turn();
     }
     catch (Exception e)
     {
         Debug.Log(e);
     }
     foreach (pirate p in pirates)
     {
         p.eat(FoodState);
         p.drink(WaterState);
     }
     checkdead();
 }