ExpAI recruit rushers: do not parse side __cfg each eval
This commit is contained in:
parent
031ab276ec
commit
04d44a9e3b
1 changed files with 5 additions and 1 deletions
|
@ -30,7 +30,11 @@ local function ca_castle_switch()
|
|||
end
|
||||
end
|
||||
|
||||
return nil
|
||||
-- Avoid going through the __cfg above every time the evaluation function
|
||||
-- is called if the castle switch CA does not exist
|
||||
local dummy_castle_switch = {}
|
||||
function dummy_castle_switch:evaluation() return 0 end
|
||||
return dummy_castle_switch
|
||||
end
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue