summaryrefslogtreecommitdiff
path: root/src/map/party.c
diff options
context:
space:
mode:
authorvalaris <valaris@54d463be-8e91-2dee-dedb-b68131a5f0ec>2004-11-14 16:37:27 +0000
committervalaris <valaris@54d463be-8e91-2dee-dedb-b68131a5f0ec>2004-11-14 16:37:27 +0000
commit9b255549bb0d8e5c499a88564d1f91ea400a2cde (patch)
treedabfa6aa2b9e59b9d7bb77967403fbd286147553 /src/map/party.c
parent91ab1c082b89b1ff8e6bf377c6f96ae5a527262e (diff)
downloadhercules-9b255549bb0d8e5c499a88564d1f91ea400a2cde.tar.gz
hercules-9b255549bb0d8e5c499a88564d1f91ea400a2cde.tar.bz2
hercules-9b255549bb0d8e5c499a88564d1f91ea400a2cde.tar.xz
hercules-9b255549bb0d8e5c499a88564d1f91ea400a2cde.zip
Added zeny from mobs option.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/athena@175 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/party.c')
-rw-r--r--src/map/party.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/map/party.c b/src/map/party.c
index 7d8cdafe2..82b77cf6b 100644
--- a/src/map/party.c
+++ b/src/map/party.c
@@ -575,8 +575,8 @@ int party_send_hp_check(struct block_list *bl,va_list ap)
return 0;
}
-// 経験値公平分配
-int party_exp_share(struct party *p,int map,int base_exp,int job_exp)
+// exp share and added zeny share [Valaris]
+int party_exp_share(struct party *p,int map,int base_exp,int job_exp,int zeny)
{
struct map_session_data *sd;
int i,c;
@@ -589,8 +589,11 @@ int party_exp_share(struct party *p,int map,int base_exp,int job_exp)
if(c==0)
return 0;
for(i=0;i<MAX_PARTY;i++)
- if((sd=p->member[i].sd)!=NULL && sd->bl.m==map)
+ if((sd=p->member[i].sd)!=NULL && sd->bl.m==map) {
pc_gainexp(sd,base_exp/c+1,job_exp/c+1);
+ if(battle_config.zeny_from_mobs) // zeny from mobs [Valaris]
+ pc_getzeny(sd,zeny/c+1);
+ }
return 0;
}