diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-03-04 01:54:56 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-03-04 01:54:56 +0000 |
commit | 66ea41fff413837ec15eb47f65474eacf9318e5f (patch) | |
tree | cf3c02b8c7ce7734e6a61baa5726036612869771 /src/map/status.h | |
parent | 4dfeedcc9d112d1e86b2dac932ee1b6700223427 (diff) | |
download | hercules-66ea41fff413837ec15eb47f65474eacf9318e5f.tar.gz hercules-66ea41fff413837ec15eb47f65474eacf9318e5f.tar.bz2 hercules-66ea41fff413837ec15eb47f65474eacf9318e5f.tar.xz hercules-66ea41fff413837ec15eb47f65474eacf9318e5f.zip |
- The rate passed to status_change_start must now be in 0->10000 range.
- Added macros sc_start and sc_start4 to simplify invocation of status_change_start.
- Cleaned the active guild skills, requirements moved to skill_check_require, should now be usable by non-players as well (pets/mobs).
- Updated skill_cast_db time info. Magnum's time2 is skill-block time, St. Recovery/ Cure's time2 is the confuse/blind duration, added NPC_POWERUP/NPC_AGIUP durations, Napalm Vulcan's time2 is curse length, and most of Tarot Card's effects last time2 as well.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5454 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/status.h')
-rw-r--r-- | src/map/status.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/map/status.h b/src/map/status.h index a104b5a9d..d1315b394 100644 --- a/src/map/status.h +++ b/src/map/status.h @@ -481,7 +481,10 @@ int status_get_sc_def(struct block_list *bl, int type); #define status_get_sc_def_int(bl) (status_get_sc_def(bl, SP_MDEF2))
#define status_get_sc_def_luk(bl) (status_get_sc_def(bl, SP_LUK))
-// 状態異常関連 skill.c より移動
+//Short version, receives rate in 1->100 range, and does not uses a flag setting.
+#define sc_start(bl, type, rate, val1, tick) status_change_start(bl,type,100*(rate),val1,0,0,0,tick,0)
+#define sc_start4(bl, type, rate, val1, val2, val3, val4, tick) status_change_start(bl,type,100*(rate),val1,val2,val3,val4,tick,0)
+
int status_change_start(struct block_list *bl,int type,int rate,int val1,int val2,int val3,int val4,int tick,int flag);
int status_change_end( struct block_list* bl , int type,int tid );
int status_change_timer(int tid, unsigned int tick, int id, int data);
|