Reorganise AI base building logic.
- Now obeys defined structure percentages and limits. - Faster. - More readable and maintainable code.
This commit is contained in:
@@ -7,6 +7,7 @@ Player:
|
||||
Power: nuke,nuk2
|
||||
Barracks: pyle,hand
|
||||
VehiclesFactory: weap,afld
|
||||
Production: pyle,hand,weap,afld,hpad
|
||||
Silo: silo
|
||||
UnitsCommonNames:
|
||||
Mcv: mcv
|
||||
@@ -15,11 +16,11 @@ Player:
|
||||
UnitQueues: Vehicle.Nod, Vehicle.GDI, Infantry.Nod, Infantry.GDI, Aircraft.Nod, Aircraft.GDI
|
||||
BuildingLimits:
|
||||
proc: 4
|
||||
pyle: 2
|
||||
hand: 2
|
||||
pyle: 3
|
||||
hand: 3
|
||||
hq: 1
|
||||
weap: 2
|
||||
afld: 2
|
||||
weap: 3
|
||||
afld: 3
|
||||
hpad: 0
|
||||
eye: 1
|
||||
tmpl: 1
|
||||
@@ -72,6 +73,7 @@ Player:
|
||||
Power: nuke,nuk2
|
||||
Barracks: pyle,hand
|
||||
VehiclesFactory: weap,afld
|
||||
Production: pyle,hand,weap,afld,hpad
|
||||
Silo: silo
|
||||
UnitsCommonNames:
|
||||
Mcv: mcv
|
||||
@@ -80,12 +82,12 @@ Player:
|
||||
UnitQueues: Vehicle.Nod, Vehicle.GDI, Infantry.Nod, Infantry.GDI, Aircraft.Nod, Aircraft.GDI
|
||||
BuildingLimits:
|
||||
proc: 4
|
||||
pyle: 2
|
||||
hand: 2
|
||||
pyle: 3
|
||||
hand: 3
|
||||
hq: 1
|
||||
weap: 2
|
||||
afld: 2
|
||||
hpad: 1
|
||||
weap: 3
|
||||
afld: 3
|
||||
hpad: 2
|
||||
eye: 1
|
||||
tmpl: 1
|
||||
fix: 0
|
||||
@@ -137,6 +139,7 @@ Player:
|
||||
Power: nuke,nuk2
|
||||
Barracks: pyle,hand
|
||||
VehiclesFactory: weap,afld
|
||||
Production: pyle,hand,weap,afld,hpad
|
||||
Silo: silo
|
||||
UnitsCommonNames:
|
||||
Mcv: mcv
|
||||
@@ -145,12 +148,12 @@ Player:
|
||||
UnitQueues: Vehicle.Nod, Vehicle.GDI, Infantry.Nod, Infantry.GDI, Aircraft.Nod, Aircraft.GDI
|
||||
BuildingLimits:
|
||||
proc: 4
|
||||
pyle: 2
|
||||
pyle: 4
|
||||
hand: 4
|
||||
hq: 1
|
||||
weap: 3
|
||||
afld: 2
|
||||
hpad: 1
|
||||
weap: 4
|
||||
afld: 4
|
||||
hpad: 2
|
||||
eye: 1
|
||||
tmpl: 1
|
||||
fix: 0
|
||||
|
||||
@@ -6,7 +6,9 @@ Player:
|
||||
ConstructionYard: conyarda,conyardh,conyardo
|
||||
Refinery: refa,refh,refo
|
||||
Power: pwra,pwrh,pwro
|
||||
Barracks: barra,barrh,barro
|
||||
VehiclesFactory: lighta,lighth,lighto,heavya,heavyh,heavyo
|
||||
Production: lighta,lighth,lighto,heavya,heavyh,heavyo,barra,barrh,barro
|
||||
Silo: siloa, siloh, siloo
|
||||
UnitsCommonNames:
|
||||
Mcv: mcva,mcvh,mcvo
|
||||
@@ -100,6 +102,7 @@ Player:
|
||||
combath: 100%
|
||||
combato: 100%
|
||||
SquadSize: 8
|
||||
MaxBaseRadius: 40
|
||||
HackyAI@Vidius:
|
||||
Name: Vidious
|
||||
UnitQueues: Infantry, Vehicle, Armor, Starport
|
||||
@@ -107,7 +110,9 @@ Player:
|
||||
ConstructionYard: conyarda,conyardh,conyardo
|
||||
Refinery: refa,refh,refo
|
||||
Power: pwra,pwrh,pwro
|
||||
Barracks: barra,barrh,barro
|
||||
VehiclesFactory: lighta,lighth,lighto,heavya,heavyh,heavyo
|
||||
Production: lighta,lighth,lighto,heavya,heavyh,heavyo,barra,barrh,barro
|
||||
Silo: siloa, siloh, siloo
|
||||
UnitsCommonNames:
|
||||
Mcv: mcva,mcvh,mcvo
|
||||
@@ -202,6 +207,7 @@ Player:
|
||||
combath: 100%
|
||||
combato: 100%
|
||||
SquadSize: 6
|
||||
MaxBaseRadius: 40
|
||||
HackyAI@Gladius:
|
||||
Name: Gladius
|
||||
UnitQueues: Infantry, Vehicle, Armor, Starport
|
||||
@@ -209,7 +215,9 @@ Player:
|
||||
ConstructionYard: conyarda,conyardh,conyardo
|
||||
Refinery: refa,refh,refo
|
||||
Power: pwra,pwrh,pwro
|
||||
Barracks: barra,barrh,barro
|
||||
VehiclesFactory: lighta,lighth,lighto,heavya,heavyh,heavyo
|
||||
Production: lighta,lighth,lighto,heavya,heavyh,heavyo,barra,barrh,barro
|
||||
Silo: siloa, siloh, siloo
|
||||
UnitsCommonNames:
|
||||
Mcv: mcva,mcvh,mcvo
|
||||
@@ -300,4 +308,4 @@ Player:
|
||||
combath: 100%
|
||||
combato: 100%
|
||||
SquadSize: 10
|
||||
|
||||
MaxBaseRadius: 40
|
||||
|
||||
@@ -7,6 +7,7 @@ Player:
|
||||
Power: powr,apwr
|
||||
Barracks: barr,tent
|
||||
VehiclesFactory: weap
|
||||
Production: barr,tent,weap,afld,hpad,spen,syrd
|
||||
Silo: silo
|
||||
UnitsCommonNames:
|
||||
Mcv: mcv
|
||||
@@ -29,7 +30,7 @@ Player:
|
||||
barr: 1%
|
||||
tent: 1%
|
||||
weap: 1%
|
||||
pbox.e1: 7%
|
||||
pbox: 7%
|
||||
gun: 7%
|
||||
tsla: 5%
|
||||
ftur: 10%
|
||||
@@ -59,6 +60,7 @@ Player:
|
||||
Power: powr,apwr
|
||||
Barracks: barr,tent
|
||||
VehiclesFactory: weap
|
||||
Production: barr,tent,weap,afld,hpad,spen,syrd
|
||||
Silo: silo
|
||||
UnitsCommonNames:
|
||||
Mcv: mcv
|
||||
@@ -87,7 +89,7 @@ Player:
|
||||
spen: 1%
|
||||
syrd: 1%
|
||||
afld: 4%
|
||||
pbox.e1: 7%
|
||||
pbox: 7%
|
||||
gun: 7%
|
||||
ftur: 10%
|
||||
tsla: 5%
|
||||
@@ -125,6 +127,7 @@ Player:
|
||||
Power: powr,apwr
|
||||
Barracks: barr,tent
|
||||
VehiclesFactory: weap
|
||||
Production: barr,tent,weap,afld,hpad,spen,syrd
|
||||
Silo: silo
|
||||
UnitsCommonNames:
|
||||
Mcv: mcv
|
||||
@@ -151,7 +154,7 @@ Player:
|
||||
hpad: 2%
|
||||
spen: 1%
|
||||
syrd: 1%
|
||||
pbox.e1: 7%
|
||||
pbox: 7%
|
||||
gun: 7%
|
||||
ftur: 10%
|
||||
tsla: 5%
|
||||
@@ -188,6 +191,9 @@ Player:
|
||||
ConstructionYard: fact
|
||||
Refinery: proc
|
||||
Power: powr,apwr
|
||||
Barracks: barr,tent
|
||||
VehiclesFactory: weap
|
||||
Production: barr,tent,weap,afld,hpad,spen,syrd
|
||||
Silo: silo
|
||||
UnitsCommonNames:
|
||||
Mcv: mcv
|
||||
@@ -213,7 +219,7 @@ Player:
|
||||
stek: 1%
|
||||
spen: 1%
|
||||
syrd: 1%
|
||||
pbox.e1: 12%
|
||||
pbox: 12%
|
||||
gun: 12%
|
||||
ftur: 12%
|
||||
tsla: 12%
|
||||
|
||||
Reference in New Issue
Block a user