Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix recall again #6396

Merged
merged 16 commits into from
Nov 16, 2024
1 change: 1 addition & 0 deletions lua/aibrain.lua
Original file line number Diff line number Diff line change
Expand Up @@ -436,6 +436,7 @@ AIBrain = Class(FactoryManagerBrainComponent, StatManagerBrainComponent, JammerM

import("/lua/simutils.lua").UpdateUnitCap(self:GetArmyIndex())
import("/lua/simping.lua").OnArmyDefeat(self:GetArmyIndex())
import("/lua/sim/Recall.lua").OnArmyDefeat(self:GetArmyIndex())

local function KillArmy()
local shareOption = ScenarioInfo.Options.Share
Expand Down
2 changes: 2 additions & 0 deletions lua/shared/RecallParams.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ TeamVoteCooldown = 1 * 60 * 10
--- ticks that the recall vote is open (30 seconds)
VoteTime = 30 * 10

---@param acceptanceVotes number
---@param totalVotes number
function RecallRequestAccepted(acceptanceVotes, totalVotes)
if totalVotes <= 3 then
return acceptanceVotes >= totalVotes
Expand Down
Loading