Skip to content

Commit

Permalink
Use notreallyafactory instead
Browse files Browse the repository at this point in the history
  • Loading branch information
Arch-Shaman authored Jun 14, 2024
1 parent 279d7fc commit c176132
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions LuaUI/Widgets/unit_start_state.lua
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,13 @@ for i = 1, #UnitDefs do
end
end

local notAFactory = {
[UnitDefNames["athena"]] = true, -- use stupid hax to avoid not treating striderhubs like a factory.
}
local notAFactory = {}
for i = 1, #UnitDefs do
local ud = UnitDefs[i]
if ud.customParams.notreallyafactory then
notAFactory[ud.name] = true
end
end

options_path = 'Settings/Unit Behaviour/Default States'
options_order = {
Expand Down

0 comments on commit c176132

Please sign in to comment.