From 0c6160d8de14fc9a5255309d12ef9fa33f6425a5 Mon Sep 17 00:00:00 2001 From: shennetsind Date: Fri, 1 Jun 2012 23:01:40 +0000 Subject: 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 --- src/map/status.h | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'src/map/status.h') 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 -- cgit v1.2.3-70-g09d2