diff options
author | shennetsind <ind@henn.et> | 2013-04-02 20:38:36 -0300 |
---|---|---|
committer | shennetsind <ind@henn.et> | 2013-04-02 20:38:36 -0300 |
commit | 98b26ebbe6b4df336cfccc38821b7a52d5980d01 (patch) | |
tree | 7a2bd4150ad36a5e2475a8e63a254b27a6ec72bc /src/map/npc.c | |
parent | 18e72749f736e05a7a40b25383faa5c9d12f815e (diff) | |
download | hercules-98b26ebbe6b4df336cfccc38821b7a52d5980d01.tar.gz hercules-98b26ebbe6b4df336cfccc38821b7a52d5980d01.tar.bz2 hercules-98b26ebbe6b4df336cfccc38821b7a52d5980d01.tar.xz hercules-98b26ebbe6b4df336cfccc38821b7a52d5980d01.zip |
Introducing New/Official mapflag: invincible_time_inc
Used officially in gvg maps (Implemented under GvG zone)
Special Thanks to Muad_Dib!
Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/map/npc.c')
-rw-r--r-- | src/map/npc.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/map/npc.c b/src/map/npc.c index fe2e769db..b9bc28eaa 100644 --- a/src/map/npc.c +++ b/src/map/npc.c @@ -3361,11 +3361,6 @@ const char* npc_parse_mapflag(char* w1, char* w2, char* w3, char* w4, const char map[m].flag.sakura=state; else if (!strcmpi(w3,"leaves")) map[m].flag.leaves=state; - /** - * No longer available, keeping here just in case it's back someday. [Ind] - **/ - //else if (!strcmpi(w3,"rain")) - // map[m].flag.rain=state; else if (!strcmpi(w3,"nightenabled")) map[m].flag.nightenabled=state; else if (!strcmpi(w3,"nogo")) @@ -3463,6 +3458,8 @@ const char* npc_parse_mapflag(char* w1, char* w2, char* w3, char* w4, const char } } else if ( !strcmpi(w3,"nomapchannelautojoin") ) { map[m].flag.chsysnolocalaj = state; + } else if ( !strcmpi(w3,"invincible_time_inc") ) { + map[m].invincible_time_inc = (state) ? atoi(w4) : 0; } else ShowError("npc_parse_mapflag: unrecognized mapflag '%s' (file '%s', line '%d').\n", w3, filepath, strline(buffer,start-buffer)); |