From e2856893e1bdaba52c1ff3e0cbd7a4635e7af90b Mon Sep 17 00:00:00 2001 From: skotlex Date: Sat, 10 Jun 2006 03:58:15 +0000 Subject: - Added structure party_data and party_member_data to the map server to hold party-specific required information about parties including Monk/TK/SG/SN states and party member count. - party Hp updates are no longer done each time the Hp is modified, but together with the party xy timer. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7083 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/map.h | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) (limited to 'src/map/map.h') diff --git a/src/map/map.h b/src/map/map.h index c0ed9cf16..9f7fd1034 100644 --- a/src/map/map.h +++ b/src/map/map.h @@ -417,6 +417,27 @@ struct view_data { char sex; unsigned dead_sit : 2; }; + +struct party_member_data { + struct map_session_data *sd; + unsigned int hp; //For HP,x,y refreshing. + unsigned short x, y; +}; + +struct party_data { + struct party party; + struct party_member_data data[MAX_PARTY]; + unsigned char count; //Online count of members. + unsigned char itemc; //For item distribution. + struct { + unsigned family : 1; //Is this party a family? + unsigned monk : 1; //There's at least one monk in party? + unsigned sg : 1; //There's at least one Star Gladiator in party? + unsigned snovice :1; //There's a Super Novice + unsigned tk : 1; //There's a taekwon + } state; +}; + struct npc_data; struct pet_db; struct item_data; @@ -668,7 +689,6 @@ struct map_session_data { } deal; int party_invite,party_invite_account; - short party_x,party_y; // should be short [zzo] int guild_invite,guild_invite_account; int guild_emblem_id,guild_alliance,guild_alliance_account; -- cgit v1.2.3-70-g09d2