Example #1
0
 public override void DoTick()
 {
     base.DoTick();
     if (Progress == 0 && Inventory.RecipeApplicable(InputRecipe) && TroopInventory.GetAvailableSpace() > 0)
     {
         Progress = 1;
         Inventory.ApplyRecipe(InputRecipe);
     }
 }