forked from github/server
laen test does not work. trying to make setresource add the raw material to fix it
This commit is contained in:
parent
94c6709e37
commit
d5443f88d8
2
eressea
2
eressea
|
@ -1 +1 @@
|
|||
Subproject commit f6b5728b4925afcb5c9b1cf64a0cc74ea2e09304
|
||||
Subproject commit 1fe075e82d4f84c4e198389b4e85304e10557570
|
|
@ -237,22 +237,22 @@ function test_taxes()
|
|||
end
|
||||
|
||||
function test_leave()
|
||||
local r = region.create(0, 0, "plain")
|
||||
local f = faction.create("noreply@eressea.de", "human", "de")
|
||||
f.id = 42
|
||||
local b1 = building.create(r, "castle")
|
||||
b1.size = 10
|
||||
local b2 = building.create(r, "lighthouse")
|
||||
b2.size = 10
|
||||
local u = unit.create(f, r, 1)
|
||||
u.building = b1
|
||||
assert_not_equal(nil, u.building)
|
||||
u:add_item("money", u.number * 100)
|
||||
u:clear_orders()
|
||||
u:add_order("BETRETE BURG " .. itoa36(b2.id))
|
||||
update_owners()
|
||||
process_orders()
|
||||
assert_equal(u.building.id, b1.id, "region owner has left the building") -- region owners may not leave
|
||||
local r = region.create(0, 0, "plain")
|
||||
local f = faction.create("noreply@eressea.de", "human", "de")
|
||||
f.id = 42
|
||||
local b1 = building.create(r, "castle")
|
||||
b1.size = 10
|
||||
local b2 = building.create(r, "lighthouse")
|
||||
b2.size = 10
|
||||
local u = unit.create(f, r, 1)
|
||||
u.building = b1
|
||||
assert_not_equal(nil, u.building)
|
||||
u:add_item("money", u.number * 100)
|
||||
u:clear_orders()
|
||||
u:add_order("BETRETE BURG " .. itoa36(b2.id))
|
||||
update_owners()
|
||||
process_orders()
|
||||
assert_equal(u.building, b1, "region owner has left the building") -- region owners may not leave
|
||||
end
|
||||
|
||||
function test_market()
|
||||
|
|
Loading…
Reference in New Issue