M data/scripts/sector/background/warzonecheck.lua => data/scripts/sector/background/warzonecheck.lua +5 -0
@@ 2,6 2,8 @@ if onServer() then
function WarZoneCheck.restore(data_in)
self.data = data_in
+ print("WarZoneCheck: original sector war zone data: ")
+ printTable(self.data)
-- We override a couple data members that are supposed to be
-- "constants", so that existing sectors get these tweaks, too.
@@ 9,6 11,8 @@ if onServer() then
self.data.warZoneThreshold = 75
self.data.pacefulThreshold = 25 -- "paceful" ಠ_ಠ
self.data.maxScore = 100
+ print("WarZoneCheck: adjusted sector war zone data: ")
+ printTable(self.data)
end
-- Common function to evaluate destruction/capture score increase.
@@ 42,6 46,7 @@ if onServer() then
end
if delta == 0 then return end
+ print("WarZoneCheck: increasing war zone score by ", delta, " points")
WarZoneCheck.increaseScore(delta)
end
M modinfo.lua => modinfo.lua +1 -1
@@ 42,7 42,7 @@ meta =
-- {id = "OptionalMod", min = "0.2", optional = true}, -- we support OptionalMod optionally, starting at version 0.2
-- },
dependencies = {
- {id = "Avorion", min = "0.31", max = "1.0.99"}
+ {id = "Avorion", min = "0.31", max = "1.3.99"}
},
-- Set to true if the mod only has to run on the server. Clients will get notified that the mod is running on the server, but they won't download it to themselves