From 4a6e655a6fb39123363905b468a3e5dcd1451f8d Mon Sep 17 00:00:00 2001 From: shennetsind Date: Wed, 24 Apr 2013 10:58:00 -0300 Subject: Fixed Map Zone DB Documentation Added missing description on CLONE and MOB_BOSS target types, special thanks to frenzmu06! http://hercules.ws/board/topic/302-introducing-hercules-map-zone-database/?p=3508 Also fixed map zone target type "All" to include "mob_boss" and "clone" Signed-off-by: shennetsind --- db/pre-re/map_zone_db.conf | 2 +- db/re/map_zone_db.conf | 2 +- src/map/map.c | 5 +++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/db/pre-re/map_zone_db.conf b/db/pre-re/map_zone_db.conf index 6fb18084b..ea995b712 100644 --- a/db/pre-re/map_zone_db.conf +++ b/db/pre-re/map_zone_db.conf @@ -16,7 +16,7 @@ //= maps can be linked to a specific zone through the zone mapflag //= 'mapflagzone' //== available types for 'disabled_skills': -//= PLAYER, HOMUN, MERCENARY, MONSTER, PET, ELEMENTAL, ALL and NONE +//= PLAYER, HOMUN, MERCENARY, MONSTER, PET, ELEMENTAL, MOB_BOSS, CLONE, ALL and NONE //== More on //= http://hercules.ws/board/topic/302-introducing-hercules-map-zone-database/ //= (TODO: replace with wiki link and detail the wiki page in a decent format ^) diff --git a/db/re/map_zone_db.conf b/db/re/map_zone_db.conf index 6fb18084b..ea995b712 100644 --- a/db/re/map_zone_db.conf +++ b/db/re/map_zone_db.conf @@ -16,7 +16,7 @@ //= maps can be linked to a specific zone through the zone mapflag //= 'mapflagzone' //== available types for 'disabled_skills': -//= PLAYER, HOMUN, MERCENARY, MONSTER, PET, ELEMENTAL, ALL and NONE +//= PLAYER, HOMUN, MERCENARY, MONSTER, PET, ELEMENTAL, MOB_BOSS, CLONE, ALL and NONE //== More on //= http://hercules.ws/board/topic/302-introducing-hercules-map-zone-database/ //= (TODO: replace with wiki link and detail the wiki page in a decent format ^) diff --git a/src/map/map.c b/src/map/map.c index c65157cb2..1bbad1d40 100644 --- a/src/map/map.c +++ b/src/map/map.c @@ -4500,9 +4500,10 @@ enum bl_type map_zone_bl_type(const char *entry, enum map_zone_skill_subtype *su bl |= BL_ELEM; else if( strcmpi(parse,"pet") == 0 ) bl |= BL_PET; - else if( strcmpi(parse,"all") == 0 ) + else if( strcmpi(parse,"all") == 0 ) { bl |= BL_ALL; - else if( strcmpi(parse,"none") == 0 ) { + *subtype |= MZS_ALL; + } else if( strcmpi(parse,"none") == 0 ) { bl = BL_NUL; } else { ShowError("map_zone_db: '%s' unknown type, skipping...\n",parse); -- cgit v1.2.3-60-g2f50