server/src/scripts/kingdoms/extensions.lua
Enno Rehling de9264bc4c - scripts for kingdoms
- per-game folders to organize scripts a bit more
2005-11-25 23:32:56 +00:00

19 lines
361 B
Lua

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)