forked from github/server
FOLGE SCHIFF reparieren (hat UFL_LONGORDER getestet).
This commit is contained in:
parent
ecaf72324c
commit
d6e8b38724
4 changed files with 10 additions and 9 deletions
|
@ -13,12 +13,6 @@ function setup()
|
|||
eressea.settings.set("magic.regeneration.enable", "0")
|
||||
end
|
||||
|
||||
local function dump_messages(f)
|
||||
for k, v in ipairs(f.messages) do
|
||||
print(v)
|
||||
end
|
||||
end
|
||||
|
||||
function test_fetch_astral()
|
||||
local r = region.create(0, 0, "plain")
|
||||
local f = faction.create("human")
|
||||
|
|
|
@ -1,3 +1,10 @@
|
|||
function dump_messages(f)
|
||||
for k, v in ipairs(f.messages) do
|
||||
print(v)
|
||||
end
|
||||
end
|
||||
|
||||
require 'tests.e2.movement'
|
||||
require 'tests.e2.astral'
|
||||
require 'tests.e2.spells'
|
||||
require 'tests.e2.e2features'
|
||||
|
@ -7,7 +14,6 @@ require 'tests.e2.production'
|
|||
require 'tests.e2.adamantium'
|
||||
require 'tests.e2.undead'
|
||||
require 'tests.e2.shiplanding'
|
||||
require 'tests.e2.movement'
|
||||
require 'tests.e2.destroy'
|
||||
require 'tests.e2.guard'
|
||||
require 'tests.e2.stealth'
|
||||
|
|
|
@ -9,7 +9,7 @@ function setup()
|
|||
eressea.settings.set("NewbieImmunity", "0")
|
||||
end
|
||||
|
||||
function test_piracy()
|
||||
function test_piracy()
|
||||
local r = region.create(0, 0, "plain")
|
||||
local r2 = region.create(1, 0, "plain")
|
||||
local r3 = region.create(-1, 0, "ocean")
|
||||
|
@ -96,6 +96,7 @@ function test_follow_ship()
|
|||
local f = faction.create("human", "test@example.com", "de")
|
||||
local u1 = unit.create(f, r1, 1)
|
||||
local u2 = unit.create(f, r1, 1)
|
||||
u2.name = 'Xolgrim'
|
||||
u1:add_item("money", 100)
|
||||
u2:add_item("money", 100)
|
||||
u1.ship = ship.create(r1, "boat")
|
||||
|
|
|
@ -2368,7 +2368,7 @@ static void move_hunters(void)
|
|||
break;
|
||||
}
|
||||
|
||||
if (!fval(u, UFL_LONGACTION) && !LongHunger(u) && follow_ship(u, ord)) {
|
||||
if (!LongHunger(u) && follow_ship(u, ord)) {
|
||||
up = &r->units;
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue