mirror of
https://gitlab.com/the-no-frauds-club/cosmonarchy-bw-prerelease.git
synced 2026-09-17 01:01:12 +00:00
175 lines
6.1 KiB
Lua
175 lines
6.1 KiB
Lua
---@class ProtossTier4
|
|
local Tier4 = {}
|
|
|
|
---@param melee_ai MeleeAI
|
|
---@param town Town
|
|
function Tier4.emissary_synthetic_synod(melee_ai, town)
|
|
town:build(1, UnitId.ProtossSyntheticSynod, 45)
|
|
end
|
|
|
|
--- Generic tier-4 capstone for the Templar category, for personalities
|
|
--- without bespoke tier-4 content.
|
|
---@param melee_ai MeleeAI
|
|
---@param town Town
|
|
function Tier4.templar_archives_acquire(melee_ai, town)
|
|
town:build(1, UnitId.ProtossAncestralArchives, 45)
|
|
melee_ai:dynamic_wait(secs(15))
|
|
end
|
|
|
|
--- Generic tier-4 capstone for the Skylord category, for personalities
|
|
--- without bespoke tier-4 content.
|
|
---@param melee_ai MeleeAI
|
|
---@param town Town
|
|
function Tier4.skylord_monument_acquire(melee_ai, town)
|
|
town:build(1, UnitId.ProtossMonumentOfSin, 45)
|
|
melee_ai:dynamic_wait(secs(15))
|
|
end
|
|
|
|
---@param melee_ai MeleeAI
|
|
---@param town Town
|
|
function Tier4.authority_synthetic_synod(melee_ai, town)
|
|
town:build(1, UnitId.ProtossSyntheticSynod, 45)
|
|
wait(secs(1))
|
|
end
|
|
|
|
---@param melee_ai MeleeAI
|
|
---@param town Town
|
|
function Tier4.ranger_expansion(melee_ai, town)
|
|
town:build(1, UnitId.ProtossLattice, 90, true)
|
|
melee_ai:dynamic_wait(secs(25))
|
|
town:build(1, UnitId.ProtossSyntheticSynod, 45, true)
|
|
wait(secs(1))
|
|
town:build(1, UnitId.ProtossGateway, 90, true)
|
|
melee_ai:dynamic_wait(secs(25))
|
|
town:build(1, UnitId.ProtossArdentAuthority, 70, true)
|
|
melee_ai:dynamic_wait(secs(40))
|
|
town:build(1, UnitId.ProtossEmbassy, 70, true)
|
|
melee_ai:dynamic_wait(secs(25))
|
|
town:build(1, UnitId.ProtossStargate, 70, true)
|
|
melee_ai:dynamic_wait(secs(20))
|
|
town:build(1, UnitId.ProtossArgosy, 50, true)
|
|
melee_ai:dynamic_wait(mins(1))
|
|
town:build(1, UnitId.ProtossGrandLibrary, 70, true)
|
|
melee_ai:dynamic_wait(secs(25))
|
|
town:build(1, UnitId.ProtossAncestralArchives, 45, true)
|
|
melee_ai:dynamic_wait(secs(50))
|
|
town:build(1, UnitId.ProtossMonumentOfSin, 45, true)
|
|
end
|
|
|
|
---@param melee_ai MeleeAI
|
|
---@param town Town
|
|
function Tier4.martyrdom_ancestral_archives_scaling(melee_ai, town)
|
|
town:build(2, UnitId.ProtossAncestralArchives, 45)
|
|
melee_ai:dynamic_wait(mins(1))
|
|
town:wait_build(2, UnitId.ProtossAncestralArchives, false)
|
|
melee_ai:dynamic_wait(secs(25))
|
|
town:build(4, UnitId.ProtossAncestralArchives, 45)
|
|
melee_ai:dynamic_wait(secs(45))
|
|
end
|
|
|
|
---@param melee_ai MeleeAI
|
|
---@param town Town
|
|
function Tier4.templar_expansion(melee_ai, town)
|
|
town:build(1, UnitId.ProtossGateway, 90, true)
|
|
melee_ai:dynamic_wait(secs(15))
|
|
town:build(1, UnitId.ProtossGrandLibrary, 70, true)
|
|
town:build(1, UnitId.ProtossAncestralArchives, 45, true)
|
|
melee_ai:dynamic_wait(secs(25))
|
|
town:build(1, UnitId.ProtossLattice, 90, true)
|
|
melee_ai:dynamic_wait(secs(15))
|
|
town:build(1, UnitId.ProtossEmbassy, 70, true)
|
|
melee_ai:dynamic_wait(secs(50))
|
|
town:build(1, UnitId.ProtossArdentAuthority, 70, true)
|
|
town:build(1, UnitId.ProtossSyntheticSynod, 45, true)
|
|
melee_ai:dynamic_wait(secs(15))
|
|
town:build(1, UnitId.ProtossStargate, 70, true)
|
|
melee_ai:dynamic_wait(secs(25))
|
|
town:build(1, UnitId.ProtossArgosy, 50, true)
|
|
melee_ai:dynamic_wait(secs(50))
|
|
town:build(1, UnitId.ProtossMonumentOfSin, 45, true)
|
|
end
|
|
|
|
---@param melee_ai MeleeAI
|
|
---@param town Town
|
|
function Tier4.exalted_monument_of_sin(melee_ai, town)
|
|
town:build(1, UnitId.ProtossMonumentOfSin, 45)
|
|
melee_ai:dynamic_wait(mins(1) + secs(40))
|
|
end
|
|
|
|
---@param melee_ai MeleeAI
|
|
---@param town Town
|
|
function Tier4.fleet_monument_of_sin(melee_ai, town)
|
|
town:build(1, UnitId.ProtossMonumentOfSin, 45)
|
|
melee_ai:dynamic_wait(mins(2) + secs(45))
|
|
end
|
|
|
|
---@param melee_ai MeleeAI
|
|
---@param town Town
|
|
function Tier4.skylord_expansion(melee_ai, town)
|
|
town:build(1, UnitId.ProtossGateway, 90, true)
|
|
town:wait_build(1, UnitId.ProtossGateway)
|
|
melee_ai:dynamic_wait(secs(20))
|
|
town:build(1, UnitId.ProtossStargate, 70, true)
|
|
melee_ai:dynamic_wait(secs(15))
|
|
town:build(1, UnitId.ProtossEmbassy, 70, true)
|
|
melee_ai:dynamic_wait(secs(15))
|
|
town:build(1, UnitId.ProtossArgosy, 50, true)
|
|
melee_ai:dynamic_wait(secs(5))
|
|
town:wait_build(1, UnitId.ProtossStargate)
|
|
melee_ai:dynamic_wait(secs(50))
|
|
town:wait_build(1, UnitId.ProtossArgosy)
|
|
melee_ai:dynamic_wait(secs(40))
|
|
town:build(1, UnitId.ProtossLattice, 90)
|
|
melee_ai:dynamic_wait(secs(40))
|
|
town:wait_build(1, UnitId.ProtossArgosy)
|
|
town:build(1, UnitId.ProtossMonumentOfSin, 45, true)
|
|
melee_ai:dynamic_wait(secs(25))
|
|
town:build(1, UnitId.ProtossGrandLibrary, 70)
|
|
town:wait_build(1, UnitId.ProtossGrandLibrary)
|
|
town:build(1, UnitId.ProtossAncestralArchives, 45, true)
|
|
melee_ai:dynamic_wait(secs(25))
|
|
town:wait_build(1, UnitId.ProtossLattice)
|
|
melee_ai:dynamic_wait(secs(25))
|
|
town:build(1, UnitId.ProtossArdentAuthority, 70)
|
|
town:wait_build(1, UnitId.ProtossArdentAuthority)
|
|
town:build(1, UnitId.ProtossGrandLibrary, 70, true)
|
|
melee_ai:dynamic_wait(secs(25))
|
|
town:build(1, UnitId.ProtossUnitaryUnion, 50, true)
|
|
melee_ai:dynamic_wait(secs(50))
|
|
town:build(1, UnitId.ProtossSyntheticSynod, 45, true)
|
|
melee_ai:dynamic_wait(secs(25))
|
|
town:build(1, UnitId.ProtossProstrationStage, 65, true)
|
|
end
|
|
|
|
---@param melee_ai MeleeAI
|
|
---@param town Town
|
|
function Tier4.matriarchy_synthetic_synod_x2(melee_ai, town)
|
|
town:build(2, UnitId.ProtossSyntheticSynod, 45)
|
|
melee_ai:dynamic_wait(mins(1))
|
|
end
|
|
|
|
---@param melee_ai MeleeAI
|
|
---@param town Town
|
|
function Tier4.robotics_synthetic_synod(melee_ai, town)
|
|
town:build(1, UnitId.ProtossSyntheticSynod, 45)
|
|
melee_ai:dynamic_wait(secs(15))
|
|
end
|
|
|
|
---@param melee_ai MeleeAI
|
|
---@param town Town
|
|
function Tier4.general_expansion(melee_ai, town)
|
|
melee_ai:dynamic_wait(secs(25))
|
|
town:build(1, UnitId.ProtossGateway, 90, true)
|
|
melee_ai:dynamic_wait(secs(15))
|
|
town:build(1, UnitId.ProtossEmbassy, 70, true)
|
|
melee_ai:dynamic_wait(secs(30))
|
|
town:build(1, UnitId.ProtossLattice, 90, true)
|
|
melee_ai:dynamic_wait(secs(15))
|
|
town:build(1, UnitId.ProtossStargate, 70, true)
|
|
melee_ai:dynamic_wait(secs(25))
|
|
town:build(1, UnitId.ProtossGrandLibrary, 70, true)
|
|
town:build(1, UnitId.ProtossAncestralArchives, 45, true)
|
|
end
|
|
|
|
return Tier4
|