Пример #1
0
 void plow()
 {
     curTool = bag.getSelectedTool();
     if (curTool != null)
     {
         GameObject     tile = world.getClosestTile(gameObject);
         tileproperties prop = tile.GetComponent <tileproperties>();
         overlay.info = curTool.getPlowBonus().ToString();
         if (curTool.getPlowBonus() > 0 && !prop.getPlowed() && prop.getPlowable())
         {
             progress = true;
             overlay.castbar(workTime(bag.getSelectedTool().getPlowBonus()));
             prop.setPlowed(tile);
             progress = false;
         }
     }
 }
Пример #2
0
 void plow()
 {
     curTool = bag.getSelectedTool();
     if (curTool != null)
     {
         GameObject tile = world.getClosestTile(gameObject);
         tileproperties prop = tile.GetComponent<tileproperties>();
         overlay.info = curTool.getPlowBonus().ToString();
         if (curTool.getPlowBonus() > 0&& !prop.getPlowed() && prop.getPlowable())
         {
             progress = true;
             overlay.castbar(workTime(bag.getSelectedTool().getPlowBonus()));
             prop.setPlowed(tile);
             progress = false;
         }
     }
 }
Пример #3
0
 public Items.tools cloneTool(Items.tools t)
 {
     Items.tools ret = new Items.tools(t.getID(), t.getName(), t.getDur(), t.getPlowBonus(), t.getMiningBonus(), t.getHarvestBonus(), t.getWoodcutBonus(), t.getSawingBonus(), t.getHammeringBonus());
     return(ret);
 }