From 6eae363487609364d0bb90235b6b515a0abbc883 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Sun, 21 Jan 2018 11:18:06 +0100 Subject: [PATCH] disable the mistletoe test for now, it has no effect. --- scripts/tests/items.lua | 31 ++++--------------------------- 1 file changed, 4 insertions(+), 27 deletions(-) diff --git a/scripts/tests/items.lua b/scripts/tests/items.lua index 7ccf4c0c3..b66316737 100644 --- a/scripts/tests/items.lua +++ b/scripts/tests/items.lua @@ -11,40 +11,17 @@ function setup() eressea.settings.set("magic.regeneration.enable", "0") end -function disable_test_mistletoe_okay() +function disable_test_use_mistletoe() local r = region.create(0, 0, "plain") local f = faction.create("human") local u = unit.create(f, r, 1) - turn_begin() + u.name = 'Miraculix' u:add_item('mistletoe', 2) - u:clear_orders() u:add_order("BENUTZEN 1 Mistelzweig") - assert_nil(u:get_curse('fleechance')) - turn_process() - assert_not_nil(u:get_curse('fleechance')) + process_orders() + assert_equal(1, u:effect('mistletoe')) assert_equal(1, u:get_item('mistletoe')) 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 function test_dreameye()