summaryrefslogtreecommitdiff
path: root/src/map/party.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-07-26 18:51:22 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-07-26 18:51:22 +0000
commitb3c0a6ccc854c125f481b24d57b7f2747b7200ba (patch)
treeae1363b67945bdb5c69d583f4b186186ee537068 /src/map/party.c
parent139ff53fe22105fb2a088e919f93bdb5369e9c49 (diff)
downloadhercules-b3c0a6ccc854c125f481b24d57b7f2747b7200ba.tar.gz
hercules-b3c0a6ccc854c125f481b24d57b7f2747b7200ba.tar.bz2
hercules-b3c0a6ccc854c125f481b24d57b7f2747b7200ba.tar.xz
hercules-b3c0a6ccc854c125f481b24d57b7f2747b7200ba.zip
- Modified party_item_share_type config setting so that using 1 disables item-sharing from non-mob loot (player dropped items or pet loot) and 2 enables round-robin instead of random sharing. Using 3 obviously is enabling both 1 and 2.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7898 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/party.c')
-rw-r--r--src/map/party.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/map/party.c b/src/map/party.c
index c6aebda4a..271826610 100644
--- a/src/map/party.c
+++ b/src/map/party.c
@@ -734,13 +734,14 @@ int party_exp_share(struct party_data *p,struct block_list *src,unsigned int bas
return 0;
}
-int party_share_loot(struct party_data *p, TBL_PC *sd, struct item *item_data)
+//Does party loot. first holds the id of the player who has time priority to take the item.
+int party_share_loot(struct party_data *p, TBL_PC *sd, struct item *item_data, int first)
{
TBL_PC *target=NULL;
int i;
- if (p && p->party.item&2) {
+ if (p && p->party.item&2 && (first || !(battle_config.party_share_type&1))) {
//item distribution to party members.
- if (battle_config.party_share_type) { //Round Robin
+ if (battle_config.party_share_type&2) { //Round Robin
TBL_PC *psd;
i = p->itemc;
do {