forked from mtcontrib/factions
Prepared power and maxpower for model migration
This commit is contained in:
parent
19940d92ee
commit
7137f09b4c
@ -533,6 +533,9 @@ function factions.load()
|
|||||||
end
|
end
|
||||||
setmetatable(faction, factions.Faction)
|
setmetatable(faction, factions.Faction)
|
||||||
-- compatiblity and later additions
|
-- compatiblity and later additions
|
||||||
|
if not faction.maxpower or faction.maxpower == 0. then
|
||||||
|
faction.maxpower = faction.power
|
||||||
|
end
|
||||||
end
|
end
|
||||||
file:close()
|
file:close()
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user