Skip to content

Commit

Permalink
Better Naval AI
Browse files Browse the repository at this point in the history
I noticed even on a naval only map, the naval AI doesn't necessarily beat a Normal AI. This makes it much more likely that it will.

 - Drop number of ore refineries and ore trucks. As Naval AI is mostly suited for islands I haven't found a map that really needs as many as the other AIs.
 - Reduce number of ground based base defenses - and delay Tesla coil a lot.
 - Reduce number of migs as yaks more useful if they just get blown up.
 - Add Flak trucks and v2s for base defense for Soviet
 - Add Jeep and Arty for base defense for Allied
 - Add delay for building ore truck so now chance of building one first from War Factory
 - A service depot is not useful for this AI except for building an MCV so delay it a lot.

Tested with Ukraine and Germany and can consistently beat normal on island map.
  • Loading branch information
BryanQuigley authored and PunkPun committed Sep 7, 2023
1 parent fb55f28 commit c08ddb6
Showing 1 changed file with 25 additions and 13 deletions.
38 changes: 25 additions & 13 deletions mods/ra/rules/ai.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ Player:
BaseBuilderBotModule@naval:
RequiresCondition: enable-naval-ai
MinimumExcessPower: 60
MaximumExcessPower: 200
MaximumExcessPower: 400
ExcessPowerIncrement: 40
ExcessPowerIncreaseThreshold: 4
ConstructionYardTypes: fact
Expand All @@ -247,7 +247,7 @@ Player:
SiloTypes: silo
DefenseTypes: hbox,pbox,gun,ftur,tsla,agun,sam
BuildingLimits:
proc: 4
proc: 3
dome: 1
barr: 1
tent: 1
Expand All @@ -261,26 +261,28 @@ Player:
stek: 1
fix: 1
BuildingFractions:
proc: 30
proc: 25
dome: 1
weap: 1
hpad: 20
afld: 20
afld.ukraine: 20
hpad: 15
afld: 15
afld.ukraine: 15
atek: 1
stek: 1
spen: 1
syrd: 1
fix: 1
pbox: 12
gun: 12
ftur: 12
tsla: 12
pbox: 2
gun: 2
ftur: 2
tsla: 1
agun: 5
sam: 5
mslo: 1
BuildingDelays:
dome: 3000
fix: 20000
tsla: 21000
BuildingRepairBotModule:
RequiresCondition: enable-rush-ai || enable-normal-ai || enable-turtle-ai || enable-naval-ai
SquadManagerBotModule@rush:
Expand Down Expand Up @@ -435,14 +437,24 @@ Player:
RequiresCondition: enable-naval-ai
UnitsToBuild:
harv: 1
ftrk: 40
arty: 40
v2rl: 40
jeep: 40
heli: 30
mh60: 30
mig: 30
yak: 30
mig: 15
yak: 60
ss: 10
msub: 30
dd: 30
ca: 20
pt: 10
UnitLimits:
harv: 8
harv: 4
ftrk: 3
arty: 1
v2rl: 1
jeep: 1
UnitDelays:
harv: 10000

0 comments on commit c08ddb6

Please sign in to comment.