From 55b1a9038c46cda1381e25c99b22e8f8f22476c9 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Sun, 16 Feb 2014 03:24:23 +0100 Subject: [PATCH] fix this test to work in E2 and E3 --- core/scripts/tests/common.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/scripts/tests/common.lua b/core/scripts/tests/common.lua index 50d45701f..f20d48a10 100755 --- a/core/scripts/tests/common.lua +++ b/core/scripts/tests/common.lua @@ -52,10 +52,10 @@ function test_elvenhorse_requires_riding_5() local r = region.create(0, 0, "plain") region.create(1, 0, "plain") local goal = region.create(2, 0, "plain") - local f = faction.create("noreply@eressea.de", "human", "de") + local f = faction.create("noreply@eressea.de", "halfling", "de") local u = unit.create(f, r, 1) u:add_item("elvenhorse", 1) - u:set_skill("riding", 5) + u:set_skill("riding", 6)-- halfling has -1 modifier u:clear_orders() u:add_order("NACH O O") process_orders() @@ -66,10 +66,10 @@ function test_cannot_ride_elvenhorse_without_enough_skill() local r = region.create(0, 0, "plain") local goal = region.create(1, 0, "plain") region.create(2, 0, "plain") - local f = faction.create("noreply@eressea.de", "human", "de") + local f = faction.create("noreply@eressea.de", "halfling", "de") local u = unit.create(f, r, 1) u:add_item("elvenhorse", 1) - u:set_skill("riding", 4) + u:set_skill("riding", 5) -- halfling has -1 modifier u:clear_orders() u:add_order("NACH O O") process_orders()