init(): optionales Argument origin beruecksichten
Das bei der Bewegung eines Lebewesen neuerdings uebergebene
vorherige Environment akzeptieren und ggf. an die geerbten
init() weiterreichen.
Der Prototyp von init() ist damit jetzt
public varargs void init(object origin)
Change-Id: I03724341fb7fa48d41c9f6f12715b367d1e680f6
diff --git a/std/npc.c b/std/npc.c
index a6d9ce6..5f4faf1 100644
--- a/std/npc.c
+++ b/std/npc.c
@@ -150,12 +150,12 @@
// Force the monster to do a command.
int command_me(string cmd) { return command(cmd); }
-void init()
+public varargs void init(object origin)
{
- combat::init();
- info::init();
- commands::init();
-// description::init();
+ combat::init(origin);
+ info::init(origin);
+ commands::init(origin);
+// description::init(origin);
}
// items initialisieren?