develop branch gives different error message for greatbow.

This commit is contained in:
Enno Rehling 2017-03-30 20:40:03 +02:00
parent 8187530794
commit 5479d94206
1 changed files with 2 additions and 2 deletions

View File

@ -12,7 +12,7 @@ local function create_faction(race)
return faction.create(race, race .. '@example.com', "de") return faction.create(race, race .. '@example.com', "de")
end end
function disable_test_greatbow_needs_elf() function test_greatbow_needs_elf()
-- only elves can build a greatbow -- only elves can build a greatbow
local r = region.create(0, 0, 'mountain') local r = region.create(0, 0, 'mountain')
local f = create_faction('human') local f = create_faction('human')
@ -23,7 +23,7 @@ function disable_test_greatbow_needs_elf()
u:add_item('mallorn', 2) u:add_item('mallorn', 2)
u:add_order("MACHE Elfenbogen") u:add_order("MACHE Elfenbogen")
turn_process() -- humans cannot do it turn_process() -- humans cannot do it
assert_equal(1, f:count_msg_type("error_cannotmake")) assert_equal(1, f:count_msg_type("error118"))
assert_equal(0, u:get_item('greatbow')) assert_equal(0, u:get_item('greatbow'))
assert_equal(2, u:get_item('mallorn')) assert_equal(2, u:get_item('mallorn'))