summaryrefslogtreecommitdiff
path: root/src/map/pc.h
diff options
context:
space:
mode:
authorAsheraf <acheraf1998@gmail.com>2018-10-10 22:49:08 +0100
committerHaru <haru@dotalux.com>2019-09-23 01:34:01 +0200
commitde6b3e72de09b3ca0ad34cd95e1fa7ebc572b2c1 (patch)
treeb82dd24027ccc36e39caeac88549af8302f7137d /src/map/pc.h
parentb5744687d20ccac87b92b59a4814fcc68c5baa64 (diff)
downloadhercules-de6b3e72de09b3ca0ad34cd95e1fa7ebc572b2c1.tar.gz
hercules-de6b3e72de09b3ca0ad34cd95e1fa7ebc572b2c1.tar.bz2
hercules-de6b3e72de09b3ca0ad34cd95e1fa7ebc572b2c1.tar.xz
hercules-de6b3e72de09b3ca0ad34cd95e1fa7ebc572b2c1.zip
Implementation of LapineDdukDdak System
Diffstat (limited to 'src/map/pc.h')
-rw-r--r--src/map/pc.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/map/pc.h b/src/map/pc.h
index 2d21dabf6..7a42be5be 100644
--- a/src/map/pc.h
+++ b/src/map/pc.h
@@ -239,6 +239,7 @@ struct map_session_data {
unsigned int warp_clean : 1;
unsigned int refine_ui : 1;
unsigned int npc_unloaded : 1; ///< The player is talking with an unloaded NPCs (respawned tombstones)
+ unsigned int lapine_ui : 1;
} state;
struct {
unsigned char no_weapon_damage, no_magic_damage, no_misc_damage;
@@ -665,10 +666,10 @@ END_ZEROED_BLOCK;
#define pc_issit(sd) ( (sd)->vd.dead_sit == 2 )
#define pc_isidle(sd) ( (sd)->chat_id != 0 || (sd)->state.vending || (sd)->state.buyingstore || DIFF_TICK(sockt->last_tick, (sd)->idletime) >= battle->bc->idle_no_share )
#define pc_istrading(sd) ( (sd)->npc_id || (sd)->state.vending || (sd)->state.buyingstore || (sd)->state.trading )
-#define pc_cant_act(sd) ( (sd)->npc_id || (sd)->state.vending || (sd)->state.buyingstore || (sd)->chat_id != 0 || ((sd)->sc.opt1 && (sd)->sc.opt1 != OPT1_BURNING) || (sd)->state.trading || (sd)->state.storage_flag || (sd)->state.prevend || (sd)->state.refine_ui == 1)
+#define pc_cant_act(sd) ( (sd)->npc_id || (sd)->state.vending || (sd)->state.buyingstore || (sd)->chat_id != 0 || ((sd)->sc.opt1 && (sd)->sc.opt1 != OPT1_BURNING) || (sd)->state.trading || (sd)->state.storage_flag || (sd)->state.prevend || (sd)->state.refine_ui == 1 || (sd)->state.lapine_ui == 1)
/* equals pc_cant_act except it doesn't check for chat rooms */
-#define pc_cant_act2(sd) ( (sd)->npc_id || (sd)->state.buyingstore || ((sd)->sc.opt1 && (sd)->sc.opt1 != OPT1_BURNING) || (sd)->state.trading || (sd)->state.storage_flag || (sd)->state.prevend || (sd)->state.refine_ui == 1)
+#define pc_cant_act2(sd) ( (sd)->npc_id || (sd)->state.buyingstore || ((sd)->sc.opt1 && (sd)->sc.opt1 != OPT1_BURNING) || (sd)->state.trading || (sd)->state.storage_flag || (sd)->state.prevend || (sd)->state.refine_ui == 1 || (sd)->state.lapine_ui == 1)
#define pc_setdir(sd,b,h) ( (sd)->ud.dir = (b) ,(sd)->head_dir = (h) )
#define pc_setchatid(sd,n) ( (sd)->chat_id = (n) )