Functions |
| void | add_party_member (party_struct *party, object *op) |
| void | remove_party_member (party_struct *party, object *op) |
| static party_struct * | make_party (const char *name) |
| void | form_party (object *op, const char *name) |
| party_struct * | find_party (const char *name) |
| sint16 | party_member_get_skill (object *op, object *skill) |
| static void | party_loot_random (object *pl, object *corpse) |
| int | party_can_open_corpse (object *pl, object *corpse) |
| void | party_handle_corpse (object *pl, object *corpse) |
| void | send_party_message (party_struct *party, const char *msg, int flag, object *op) |
| void | remove_party (party_struct *party) |
| void | party_update_who (player *pl) |
Variables |
| const char *const | party_loot_modes [PARTY_LOOT_MAX] |
| const char *const | party_loot_modes_help [PARTY_LOOT_MAX] |
| party_struct * | first_party = NULL |
This file handles party related code.
Definition in file party.c.
A party member has killed a monster. In the experience sharing code we call this to check for all party members to check whether they have the skill that was used to kill the monster. If they don't have the skill, they won't be counted as 'getting exp shared'.
This will also correctly handle cases where one player kills with slash and everyone in the party also gets the exp shared, even if they are cleave or impact, for example. Same happens for archery.
Note that for the above to work, the party member must have the weapon actually applied. If someone kills with slash, and this party member is using punching (no weapon), they will not get any exp.
- Parameters:
-
| op | Party member. |
| skill | Skill that was used to kill the monster. |
- Returns:
- Skill ID to get experience in for op, NO_SKILL_READY otherwise.
Definition at line 202 of file party.c.