- Timestamp:
- Mar 19, 2021, 3:31:53 PM (4 years ago)
- Location:
- trunk/AI/StdAI
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/AI/StdAI/AI.pas
r289 r319 2596 2596 if (iix >= 0) and (((Imp[iix].Kind in [ikNatLocal, ikNatGlobal]) and 2597 2597 (RO.NatBuilt[iix] > 0)) or ((Imp[iix].Kind = ikWonder) and 2598 (RO.Wonder[iix].CityID <> -1))) then2598 (RO.Wonder[iix].CityID <> WonderNotBuiltYet))) then 2599 2599 CheckProd := True; 2600 2600 end; -
trunk/AI/StdAI/Barbarina.pas
r289 r319 1328 1328 for iix := 0 to 27 do 1329 1329 if (Imp[iix].Preq <> preNA) and ((Imp[iix].Preq = preNone) or 1330 IsResearched(Imp[iix].Preq)) and (RO.Wonder[iix].CityID = -1) then1330 IsResearched(Imp[iix].Preq)) and (RO.Wonder[iix].CityID = WonderNotBuiltYet) then 1331 1331 Inc(WonderAvailable, 1 shl iix); 1332 1332 for cix := 0 to RO.nCity - 1 do … … 1500 1500 if ((RO.Government <> gDespotism) or (RO.nUn >= RO.nCity * 4)) and 1501 1501 not IsResearched(adMassProduction) and (Built[imPalace] > 0) and 1502 (RO.Wonder[woZeus].CityID = -1) and City_Improvable(cix, woZeus) then1502 (RO.Wonder[woZeus].CityID = WonderNotBuiltYet) and City_Improvable(cix, woZeus) then 1503 1503 City_StartImprovement(cix, woZeus) 1504 1504 else if (City_CurrentImprovementProject(cix) >= 0) and -
trunk/AI/StdAI/Protocol.pas
r289 r319 1265 1265 mcHospital = mcSupplyShip; 1266 1266 1267 // Wonders CityID constants 1268 WonderNotBuiltYet = -1; 1269 WonderDestroyed = -2; 1270 1267 1271 type 1268 1272 TServerCall = function (Command, Player, Subject: Integer; var Data) … … 1768 1772 procedure DelphiRandomize; 1769 1773 1774 1770 1775 implementation 1771 1776
Note:
See TracChangeset
for help on using the changeset viewer.