summaryrefslogtreecommitdiff
path: root/src/map/map.h
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-08-21 19:36:13 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-08-21 19:36:13 +0000
commit02f26bfab461a31f5890b4ab2f58b77f5404abf5 (patch)
treedf70c3650ff40ce19274cab3e3388a91d93bc82f /src/map/map.h
parent42d26584d4b8e0bfb3c50bdd5112a4c29003ea42 (diff)
downloadhercules-02f26bfab461a31f5890b4ab2f58b77f5404abf5.tar.gz
hercules-02f26bfab461a31f5890b4ab2f58b77f5404abf5.tar.bz2
hercules-02f26bfab461a31f5890b4ab2f58b77f5404abf5.tar.xz
hercules-02f26bfab461a31f5890b4ab2f58b77f5404abf5.zip
- Cleaned up some more the regen_data structure, so that skill/sitting-skill related data is optional (since only players have it).
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8410 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/map.h')
-rw-r--r--src/map/map.h21
1 files changed, 20 insertions, 1 deletions
diff --git a/src/map/map.h b/src/map/map.h
index a23133150..bd9da7080 100644
--- a/src/map/map.h
+++ b/src/map/map.h
@@ -465,6 +465,22 @@ struct view_data {
unsigned dead_sit : 2;
};
+//Additional regen data that only players have.
+struct regen_data_sub {
+ unsigned short
+ hp,sp;
+
+ //tick accumulation before healing.
+ struct {
+ unsigned int hp,sp;
+ } tick;
+
+ //Regen rates (where every 1 means +100% regen)
+ struct {
+ unsigned char hp,sp;
+ } rate;
+};
+
struct regen_data {
unsigned short flag; //Marks what stuff you may heal or not.
@@ -488,6 +504,9 @@ struct regen_data {
unsigned overweight :2; //overweight state (1: 50%, 2: 90%)
unsigned block :2; //Block regen flag (1: Hp, 2: Sp)
} state;
+
+ //skill-regen, sitting-skill-regen (since not all chars with regen need it)
+ struct regen_data_sub *sregen, *ssregen;
};
struct party_member_data {
@@ -522,6 +541,7 @@ struct map_session_data {
struct weapon_atk base_lhw, battle_lhw; //Left-hand weapon atk data.
struct status_change sc;
struct regen_data regen;
+ struct regen_data_sub sregen, ssregen;
//NOTE: When deciding to add a flag to state or special_state, take into consideration that state is preserved in
//status_calc_pc, while special_state is recalculated in each call. [Skotlex]
struct {
@@ -627,7 +647,6 @@ struct map_session_data {
unsigned int canlog_tick;
unsigned int canuseitem_tick; // [Skotlex]
unsigned int cantalk_tick;
- int inchealspirithptick,inchealspiritsptick;
short weapontype1,weapontype2;
short disguise; // [Valaris]