Changeset 522 for trunk/AI/StdAI/AI.pas
- Timestamp:
- Jan 7, 2024, 10:24:51 PM (4 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/AI/StdAI/AI.pas
r486 r522 624 624 begin 625 625 Inc(I); 626 if random(I) = 0 then626 if Random(I) = 0 then 627 627 Result := ad; 628 628 end; … … 1188 1188 begin 1189 1189 if (Data.LastResearchTech = adHorsebackRiding) and (RO.ResearchTech < 0) and 1190 ( random(6) = 0) and (HavePort or (ContinentPresence[0] and not1190 (Random(6) = 0) and (HavePort or (ContinentPresence[0] and not 1191 1191 (1 shl Me or PresenceUnknown) <> 0)) then 1192 1192 begin … … 2109 2109 begin 2110 2110 Inc(BestCount); 2111 if random(BestCount) = 0 then2111 if Random(BestCount) = 0 then 2112 2112 begin 2113 2113 AttackScore := TestScore; … … 2250 2250 begin 2251 2251 Inc(BestCount); 2252 if random(BestCount) = 0 then2252 if Random(BestCount) = 0 then 2253 2253 begin 2254 2254 PatrolScore := TestScore; … … 2406 2406 begin 2407 2407 Inc(Count); 2408 if random(Count) = 0 then2408 if Random(Count) = 0 then 2409 2409 Result := mix; 2410 2410 end;
Note:
See TracChangeset
for help on using the changeset viewer.