summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2009-01-26 19:08:13 +0000
committerJared Adams <jaxad0127@gmail.com>2009-01-26 19:08:13 +0000
commitee9035cc12fec70f062a0a7c3c1597e5e63f93f7 (patch)
treef74dbd438a99af029921ebf7caf207917d1e2fcf
parent8877825c601ce04ddd9d2ed7198c483762a741d3 (diff)
downloadtmwa-ee9035cc12fec70f062a0a7c3c1597e5e63f93f7.tar.gz
tmwa-ee9035cc12fec70f062a0a7c3c1597e5e63f93f7.tar.bz2
tmwa-ee9035cc12fec70f062a0a7c3c1597e5e63f93f7.tar.xz
tmwa-ee9035cc12fec70f062a0a7c3c1597e5e63f93f7.zip
Add a new monster mode to the magic system: frozen
-rw-r--r--src/map/magic-stmt.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/map/magic-stmt.c b/src/map/magic-stmt.c
index 15e00e4..782f560 100644
--- a/src/map/magic-stmt.c
+++ b/src/map/magic-stmt.c
@@ -566,6 +566,7 @@ op_aggravate(env_t *env, int args_nr, val_t *args)
#define MONSTER_ATTITUDE_HOSTILE 0
#define MONSTER_ATTITUDE_FRIENDLY 1
#define MONSTER_ATTITUDE_SERVANT 2
+#define MONSTER_ATTITUDE_FROZEN 3
static int
op_spawn(env_t *env, int args_nr, val_t *args)
@@ -615,6 +616,10 @@ op_spawn(env_t *env, int args_nr, val_t *args)
mob->attacked_id = owner->bl.id;
}
break;
+
+ case MONSTER_ATTITUDE_FROZEN:
+ mob->mode = 0;
+ break;
}
mob->mode |= MOB_MODE_SUMMONED | MOB_MODE_TURNS_AGAINST_BAD_MASTER;