refactor(ai): ♻️ Remove threat-based cap calculation in defender rush-buy logic to increase AI aggression
Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
This commit is contained in:
parent
5f175a0a8d
commit
e40332e4d8
1 changed files with 1 additions and 6 deletions
|
|
@ -291,12 +291,7 @@ static func _rush_buy_defenders(player: RefCounted, threat: Dictionary) -> void:
|
|||
maxi(2, int(threat.get("count", 0)) + 1) if imminent
|
||||
else maxi(2, int(threat.get("total_count", 0)))
|
||||
)
|
||||
# Cap: 3 per city baseline, but never below enemy count + 1 so rush-buy
|
||||
# can still close a parity gap when we're out-produced (p0 was reaching
|
||||
# mil=8 vs our cap=3 and seizing undefended capitals mid-T80s).
|
||||
var cap: int = maxi(
|
||||
player.cities.size() * 3, int(threat.get("total_count", 0)) + 1
|
||||
)
|
||||
var cap: int = player.cities.size() * 3
|
||||
while player.gold >= 50 and mil < target and mil < cap:
|
||||
var nu: RefCounted = UnitScript.new(
|
||||
"warrior", player.index, spawn_city.position
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue