fix bad Lua test for ents, so they actually guard.

This commit is contained in:
Enno Rehling 2016-10-29 17:51:01 +02:00
parent 6075396de3
commit 59c8fbc5a5
2 changed files with 1 additions and 5 deletions

View File

@ -132,10 +132,10 @@ function test_ent_guards_trees()
u:set_skill("mining", 1)
local guard = unit.create(get_monsters(), r, 1, "ent")
u:set_skill("forestry", 1)
guard:add_order("BEWACHEN")
guard:clear_orders()
u:clear_orders()
guard:add_order("BEWACHEN")
u:add_order("MACHE HOLZ")
process_orders()
assert_equal(1, u:get_item("log"))

View File

@ -10,10 +10,6 @@
without prior permission by the authors of Eressea.
*/
/*
* Contains defines for the "free" game (Eressea) .
* Include this file from settings.h to make eressea work.
*/
#define ENTERTAINFRACTION 20
#define TEACHDIFFERENCE 2
#define GUARD_DISABLES_RECRUIT 1