disable storms in tests

This commit is contained in:
Enno Rehling 2018-01-01 07:47:06 +01:00
parent 77926d2d54
commit 6a31b432de

View file

@ -8,6 +8,7 @@ function setup()
eressea.settings.set("rules.ship.damage.nocrewocean", "0") eressea.settings.set("rules.ship.damage.nocrewocean", "0")
eressea.settings.set("rules.ship.damage.nocrew", "0") eressea.settings.set("rules.ship.damage.nocrew", "0")
eressea.settings.set("rules.ship.drifting", "0") eressea.settings.set("rules.ship.drifting", "0")
eressea.settings.set("rules.ship.storms", "0")
end end
function test_ship_requires_skill() function test_ship_requires_skill()
@ -58,11 +59,6 @@ function test_speedy_ship_slow()
u2:set_skill("sailing", 24) -- sumskill = 50 u2:set_skill("sailing", 24) -- sumskill = 50
u1:add_order("NACH O O O O O O O O O O") u1:add_order("NACH O O O O O O O O O O")
process_orders() process_orders()
if 5 ~= u1.region.x then
for _, msg in ipairs(f.messages) do
print(msg)
end
end
assert_equal(5, u1.region.x) assert_equal(5, u1.region.x)
end end