From 68e36e92523fade47b37fb9d8de44d5357962c12 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Thu, 23 Mar 2017 08:29:24 +0100 Subject: [PATCH] test that adamantium requires a mine --- scripts/tests/e2/adamantium.lua | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/scripts/tests/e2/adamantium.lua b/scripts/tests/e2/adamantium.lua index feb4f90a0..8cb703f33 100644 --- a/scripts/tests/e2/adamantium.lua +++ b/scripts/tests/e2/adamantium.lua @@ -22,21 +22,22 @@ end function test_adamantium1() local r, u1 = _test_create_adamantium() - + u1:add_item("money", 1000) - u1:set_skill("mining", 14) + u1:set_skill("mining", 8) u1:clear_orders() u1:add_order("MACHEN Adamantium") process_orders() + -- adamantium needs a mine, so nothing happens: assert_equal(0, u1:get_item("adamantium")) end function test_adamantium2() local r, u1 = _test_create_adamantium() - + u1.id = 42 u1:add_item("money", 1000) - u1:set_skill("mining", 15) + u1:set_skill("mining", 8) u1:clear_orders() u1:add_order("MACHEN Adamantium")