This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require("util") | |
local auto_cons_researched = true | |
function auto_cons_check (force) | |
if force then | |
if force.technologies["steel-processing"].researched then | |
auto_cons_researched = true | |
end | |
elseif game.players[1] and game.players[1].force.technologies["steel-processing"].researched then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type Set struct { | |
list map[int]struct{} //empty structs occupy 0 memory | |
} | |
func (s *Set) Has(v int) bool { | |
_, ok := s.list[v] | |
return ok | |
} |
OlderNewer