forked from github/server
moving maxnmrs to config file.
This commit is contained in:
parent
361fdc5186
commit
33e8098f47
|
@ -1 +0,0 @@
|
|||
maxnmrs = 1000
|
|
@ -26,7 +26,7 @@ function process(orders)
|
|||
mon.lastturn = get_turn()
|
||||
end
|
||||
|
||||
if nmr_check(maxnmrs or 30)~=0 then
|
||||
if nmr_check(config.maxnmrs or 30)~=0 then
|
||||
return -1
|
||||
end
|
||||
|
||||
|
|
|
@ -42,7 +42,7 @@ end
|
|||
|
||||
-- the "raindance" spell
|
||||
function raindance(r, mage, level, force)
|
||||
if (create_curse(mage, r, "blessedharvest", force, force*2, 100 * force)) then
|
||||
if (create_curse(mage, r, "blessedharvest", force, 1+force*2, 100 * force)) then
|
||||
-- slightly crooked way of reporting an action to everyone in the region
|
||||
local msg = message.create("raindance_effect")
|
||||
msg:set_unit("mage", mage)
|
||||
|
@ -57,7 +57,7 @@ end
|
|||
|
||||
-- the "blessed harvest" spell
|
||||
function blessedharvest(r, mage, level, force)
|
||||
if create_curse(mage, r, "blessedharvest", force, force*2, 50 * force) then
|
||||
if create_curse(mage, r, "blessedharvest", force, 1+force*2, 50 * force) then
|
||||
-- slightly crooked way of reporting an action to everyone in the region
|
||||
local msg = message.create("harvest_effect")
|
||||
msg:set_unit("mage", mage)
|
||||
|
|
|
@ -22,7 +22,7 @@ function process(orders)
|
|||
|
||||
plan_monsters()
|
||||
|
||||
if nmr_check(maxnmrs or 80)~=0 then
|
||||
if nmr_check(config.maxnmrs or 80)~=0 then
|
||||
return -1
|
||||
end
|
||||
|
||||
|
|
|
@ -12,5 +12,4 @@ end
|
|||
|
||||
read_xml(srcpath .. '/res/' .. config.game .. '.xml')
|
||||
|
||||
require "config-test"
|
||||
require "init"
|
||||
|
|
Loading…
Reference in New Issue