summaryrefslogtreecommitdiff
path: root/src/map/npc.c
diff options
context:
space:
mode:
authorremoitnane <remoit(DOT)nane(AT)gmail(DOT)com>2010-07-05 01:25:40 -0700
committerJared Adams <jaxad0127@gmail.com>2010-07-06 01:08:12 -0600
commit9e28e286682dc0c958de4db57483483a460e93de (patch)
tree1fbe39dbbe72b1b0a1da745be72e8daa74942486 /src/map/npc.c
parent3697be69b0dffc185c9b4cf8221c782f48546771 (diff)
downloadtmwa-9e28e286682dc0c958de4db57483483a460e93de.tar.gz
tmwa-9e28e286682dc0c958de4db57483483a460e93de.tar.bz2
tmwa-9e28e286682dc0c958de4db57483483a460e93de.tar.xz
tmwa-9e28e286682dc0c958de4db57483483a460e93de.zip
Add new map flag and condition for mob skills
Signed-off-by: Jared Adams <jaxad0127@gmail.com>
Diffstat (limited to 'src/map/npc.c')
-rw-r--r--src/map/npc.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/map/npc.c b/src/map/npc.c
index fc994f5..d302fe8 100644
--- a/src/map/npc.c
+++ b/src/map/npc.c
@@ -2133,9 +2133,13 @@ static int npc_parse_mapflag (char *w1, char *w2, char *w3, char *w4)
map[m].flag.rain = 1;
}
else if (strcmpi (w3, "no_player_drops") == 0)
- { // rain [Valaris]
+ { // no player drops [Jaxad0127]
map[m].flag.no_player_drops = 1;
}
+ else if (strcmpi (w3, "town") == 0)
+ { // town/safe zone [remoitnane]
+ map[m].flag.town = 1;
+ }
return 0;
}