Ticket #973: petra-navalManager.diff

File petra-navalManager.diff, 824 bytes (added by Darth_Malloc, 10 years ago)
  • 0ad/binaries/data/mods/public/simulation/ai/petra/navalManager.js

     
    4040
    4141    // shore-line regions where we can load and unload units
    4242    this.landingZones = {};
     43    this.fishingZones = {};
    4344};
    4445
    4546// More initialisation for stuff that needs the gameState
     
    409410                continue;
    410411            }
    411412        }
     413       
     414       
     415        if (this.seaWarShips[sea].length < this.wantedWarShips[sea])
     416        {
     417            var template = this.getBestShip(gameState, sea, "attack");
     418            queues.ships.addItem(new m.TrainingPlan(gameState, template, { "base": 0, "sea": sea}, 1, 1));
     419            continue.
     420        }
    412421    }
    413422};
    414423