diff options
author | Haru <haru@dotalux.com> | 2020-07-26 19:07:28 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-26 19:07:28 +0200 |
commit | 43e4d537acac47dc923fac445f9a6f476db2d18c (patch) | |
tree | 5bc392f9e1b6b928d7168ec6f024629423aabb4c /src/map/npc.c | |
parent | 909054bf043ff51ccd476418075f8bf1dc55b27f (diff) | |
parent | d3c24f7d9ae64354e446a85ba0dad21daca589c1 (diff) | |
download | hercules-43e4d537acac47dc923fac445f9a6f476db2d18c.tar.gz hercules-43e4d537acac47dc923fac445f9a6f476db2d18c.tar.bz2 hercules-43e4d537acac47dc923fac445f9a6f476db2d18c.tar.xz hercules-43e4d537acac47dc923fac445f9a6f476db2d18c.zip |
Merge pull request #2652 from Emistry/mf_nopet
Add NoPet mapflag
Diffstat (limited to 'src/map/npc.c')
-rw-r--r-- | src/map/npc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/map/npc.c b/src/map/npc.c index 1331414b6..7a3fa9c3f 100644 --- a/src/map/npc.c +++ b/src/map/npc.c @@ -5242,6 +5242,8 @@ static const char *npc_parse_mapflag(const char *w1, const char *w2, const char map->list[m].flag.nostorage = (state) ? cap_value(atoi(w4), 1, 3) : 0; } else if (!strcmpi(w3, "nogstorage")) { map->list[m].flag.nogstorage = (state) ? cap_value(atoi(w4), 1, 3) : 0; + } else if (strcmpi(w3, "nopet") == 0) { + map->list[m].flag.nopet = (state != 0) ? 1 : 0; } else { npc->parse_unknown_mapflag(mapname, w3, w4, start, buffer, filepath, retval); } |