server/src/scripts/kingdoms/extensions.lua

20 lines
361 B
Lua
Raw Normal View History

function get_wage(r, f, race)
return 10
end
function get_maintenance(u)
local f = u.region.owner
if f ~= nil then
if f == u.faction then
return 2 * u.number
else if f:get_policy(u.faction, "money") then
return 5 * u.number
end
end
return 10 * u.number
end
overload("maintenance", get_maintenance)
overload("wage", get_wage)