diff options
author | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2009-03-04 17:26:07 +0000 |
---|---|---|
committer | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2009-03-04 17:26:07 +0000 |
commit | 134bf364c8deffa192fb77a323b92b708a2e2276 (patch) | |
tree | 606cb191f9a0d4a3897866a0c8086fed6a3b7333 /src/map/script.c | |
parent | 23d9eff296a39897242648b4e5f89aaa14f945ea (diff) | |
download | hercules-134bf364c8deffa192fb77a323b92b708a2e2276.tar.gz hercules-134bf364c8deffa192fb77a323b92b708a2e2276.tar.bz2 hercules-134bf364c8deffa192fb77a323b92b708a2e2276.tar.xz hercules-134bf364c8deffa192fb77a323b92b708a2e2276.zip |
Small edits to battleground code (bugreport:2816)
- removed bg_idle_announce setting (could be considered later)
- moved crystal protection code to battle_calc_bg_damage
- removed mob state 'inmunity' in favor of a script-based solution
- removed unneeded 'setmobdata' (fixes collision with mob controller)
- added svn:eol-style native for battleground code
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13565 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/script.c')
-rw-r--r-- | src/map/script.c | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/src/map/script.c b/src/map/script.c index f69dc2665..d7a3b1e07 100644 --- a/src/map/script.c +++ b/src/map/script.c @@ -13437,28 +13437,6 @@ BUILDIN_FUNC(bg_monster) return 0; } -BUILDIN_FUNC(setmobdata) -{ - struct mob_data *md; - struct block_list *mbl; - int id = script_getnum(st,2), - type = script_getnum(st,3), - value = script_getnum(st,4); - - if( (mbl = map_id2bl(id)) == NULL || mbl->type != BL_MOB ) - return 0; - md = (TBL_MOB *)mbl; - switch( type ) - { - case 0: md->state.inmunity = value > 0 ? 1 : 0; break; - default: - ShowError("script:setmobdata: unknown data identifier %d\n", type); - return 1; - } - - return 0; -} - BUILDIN_FUNC(bg_leave) { struct map_session_data *sd = script_rid2sd(st); @@ -13901,7 +13879,6 @@ struct script_function buildin_func[] = { BUILDIN_DEF(bg_leave,""), BUILDIN_DEF(bg_destroy,"i"), BUILDIN_DEF(areapercentheal,"siiiiii"), - BUILDIN_DEF(setmobdata,"iii"), BUILDIN_DEF(bg_get_data,"ii"), BUILDIN_DEF(bg_getareausers,"isiiii"), {NULL,NULL,NULL}, |