diff options
author | shennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-06-01 23:01:40 +0000 |
---|---|---|
committer | shennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-06-01 23:01:40 +0000 |
commit | 0c6160d8de14fc9a5255309d12ef9fa33f6425a5 (patch) | |
tree | a4fce895d1c5490e2c3e3db8c3cefe2fe82afc5e /src/map/status.h | |
parent | 67a0736c51678e453497660ef7df7bd601e57101 (diff) | |
download | hercules-0c6160d8de14fc9a5255309d12ef9fa33f6425a5.tar.gz hercules-0c6160d8de14fc9a5255309d12ef9fa33f6425a5.tar.bz2 hercules-0c6160d8de14fc9a5255309d12ef9fa33f6425a5.tar.xz hercules-0c6160d8de14fc9a5255309d12ef9fa33f6425a5.zip |
Follow up r16209 moving on; yet another performance improvement. added 3 other states for the system to speed up. modified the scs_flag to be accurate (with one conditional flag they could stack and give undesired results e.g. with cloacking)
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16210 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/status.h')
-rw-r--r-- | src/map/status.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/src/map/status.h b/src/map/status.h index 5b6c2296a..5e52b572c 100644 --- a/src/map/status.h +++ b/src/map/status.h @@ -1410,8 +1410,14 @@ enum manner_flags /* Status Change State Flags */ enum scs_flag { - SCS_CONDITION = 0x00000001, /* this implies the flag has a condition (if-checkin) */ - SCS_NOMOVE = 0x00000002, /* unit unable to move */ + SCS_NOMOVECOND = 0x00000001, /* cond flag for nomove */ + SCS_NOMOVE = 0x00000002, /* unit unable to move */ + SCS_NOPICKITEMCOND = 0x00000004, /* cond flag for nopickitem */ + SCS_NOPICKITEM = 0x00000008, /* player unable to pick up items */ + SCS_NODROPITEMCOND = 0x00000010, /* cond flag for nodropitem */ + SCS_NODROPITEM = 0x00000020, /* player unable to drop items */ + SCS_NOCASTCOND = 0x00000040, /* cond flag for nocast */ + SCS_NOCAST = 0x00000080, /* unit unable to cast skills */ }; //Define flags for the status_calc_bl function. [Skotlex] @@ -1564,6 +1570,9 @@ struct status_change { unsigned char jb_flag; //Joint Beat type flag struct { unsigned char move; + unsigned char pickup; + unsigned char drop; + unsigned char cast; } cant;/* status change state flags */ //int sg_id; //ID of the previous Storm gust that hit you short comet_x, comet_y; // Point where src casted Comet - required to calculate damage from this point |