disable the mistletoe test for now, it has no effect.

This commit is contained in:
Enno Rehling 2018-01-21 11:18:06 +01:00
parent ee9223fcf2
commit 6eae363487
1 changed files with 4 additions and 27 deletions

View File

@ -11,40 +11,17 @@ function setup()
eressea.settings.set("magic.regeneration.enable", "0") eressea.settings.set("magic.regeneration.enable", "0")
end end
function disable_test_mistletoe_okay() function disable_test_use_mistletoe()
local r = region.create(0, 0, "plain") local r = region.create(0, 0, "plain")
local f = faction.create("human") local f = faction.create("human")
local u = unit.create(f, r, 1) local u = unit.create(f, r, 1)
turn_begin() u.name = 'Miraculix'
u:add_item('mistletoe', 2) u:add_item('mistletoe', 2)
u:clear_orders()
u:add_order("BENUTZEN 1 Mistelzweig") u:add_order("BENUTZEN 1 Mistelzweig")
assert_nil(u:get_curse('fleechance')) process_orders()
turn_process() assert_equal(1, u:effect('mistletoe'))
assert_not_nil(u:get_curse('fleechance'))
assert_equal(1, u:get_item('mistletoe')) assert_equal(1, u:get_item('mistletoe'))
assert_equal(1, f:count_msg_type('use_item')) assert_equal(1, f:count_msg_type('use_item'))
turn_end()
init_reports()
print("reports", get_turn(), f)
write_report(f)
end
function disable_test_mistletoe_fail()
local r = region.create(0, 0, "plain")
local f = faction.create("human")
local u = unit.create(f, r, 1)
turn_begin()
u:add_item('mistletoe', 1)
u:clear_orders()
u:add_order("BENUTZEN 1 Mistelzweig")
assert_nil(u:get_curse('fleechance'))
u.number = 2
turn_process()
assert_nil(u:get_curse('fleechance'))
assert_equal(1, u:get_item('mistletoe'))
assert_equal(1, f:count_msg_type('use_singleperson'))
turn_end()
end end
function test_dreameye() function test_dreameye()