moving maxnmrs to config file.

This commit is contained in:
Enno Rehling 2010-01-03 08:28:29 +00:00
parent 361fdc5186
commit 33e8098f47
5 changed files with 4 additions and 6 deletions

View File

@ -1 +0,0 @@
maxnmrs = 1000

View File

@ -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

View File

@ -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)

View File

@ -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

View File

@ -12,5 +12,4 @@ end
read_xml(srcpath .. '/res/' .. config.game .. '.xml')
require "config-test"
require "init"