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()
|
mon.lastturn = get_turn()
|
||||||
end
|
end
|
||||||
|
|
||||||
if nmr_check(maxnmrs or 30)~=0 then
|
if nmr_check(config.maxnmrs or 30)~=0 then
|
||||||
return -1
|
return -1
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -42,7 +42,7 @@ end
|
||||||
|
|
||||||
-- the "raindance" spell
|
-- the "raindance" spell
|
||||||
function raindance(r, mage, level, force)
|
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
|
-- slightly crooked way of reporting an action to everyone in the region
|
||||||
local msg = message.create("raindance_effect")
|
local msg = message.create("raindance_effect")
|
||||||
msg:set_unit("mage", mage)
|
msg:set_unit("mage", mage)
|
||||||
|
@ -57,7 +57,7 @@ end
|
||||||
|
|
||||||
-- the "blessed harvest" spell
|
-- the "blessed harvest" spell
|
||||||
function blessedharvest(r, mage, level, force)
|
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
|
-- slightly crooked way of reporting an action to everyone in the region
|
||||||
local msg = message.create("harvest_effect")
|
local msg = message.create("harvest_effect")
|
||||||
msg:set_unit("mage", mage)
|
msg:set_unit("mage", mage)
|
||||||
|
|
|
@ -22,7 +22,7 @@ function process(orders)
|
||||||
|
|
||||||
plan_monsters()
|
plan_monsters()
|
||||||
|
|
||||||
if nmr_check(maxnmrs or 80)~=0 then
|
if nmr_check(config.maxnmrs or 80)~=0 then
|
||||||
return -1
|
return -1
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -12,5 +12,4 @@ end
|
||||||
|
|
||||||
read_xml(srcpath .. '/res/' .. config.game .. '.xml')
|
read_xml(srcpath .. '/res/' .. config.game .. '.xml')
|
||||||
|
|
||||||
require "config-test"
|
|
||||||
require "init"
|
require "init"
|
||||||
|
|
Loading…
Reference in New Issue