From 57efe9d138e39f6a3def438cf8b8136ca542d9a5 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sun, 27 Sep 2020 23:30:23 -0300 Subject: Mess a bit more the script because. THIS IS A MESS. --- src/emap/party.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/emap/party.c b/src/emap/party.c index d268830..b3e1d12 100644 --- a/src/emap/party.c +++ b/src/emap/party.c @@ -31,8 +31,10 @@ int eparty_exp_share(struct party_data **p, struct block_list **src, unsigned in nullpo_ret(src); // count the number of players eligible for exp sharing + // TODO: (battle_config.idle_no_share && pc_isidle(sd[c])) + // i.e. Do not force the battle conf settings!! (Specially if it can explode) for (i = c = 0; i < MAX_PARTY; i++) { - if( (sd[c] = (*p)->data[i].sd) == NULL || sd[c]->bl.m != (*src)->m || pc_isdead(sd[c]) || (battle_config.idle_no_share && pc_isidle(sd[c])) ) + if( (sd[c] = (*p)->data[i].sd) == NULL || sd[c]->bl.m != (*src)->m || pc_isdead(sd[c]) || pc_isidle(sd[c]) ) continue; c++; lvl += sd[c]->status.base_level; // XXX @@ -47,7 +49,8 @@ int eparty_exp_share(struct party_data **p, struct block_list **src, unsigned in /* GP sharing defunct */ //zeny/=c; - // Apply bonuses + // TODO: Apply bonuses + /* if (battle_config.party_even_share_bonus && c > 1) { double bonus = 100 + battle_config.party_even_share_bonus*(c-1); if (base_exp) @@ -57,6 +60,7 @@ int eparty_exp_share(struct party_data **p, struct block_list **src, unsigned in //if (zeny) // zeny = (unsigned int) cap_value(zeny * bonus/100, INT_MIN, INT_MAX); } + */ for (i = 0; i < c; i++) { //pc->gainexp(sd[i], src, base_exp, job_exp, false); -- cgit v1.2.3-70-g09d2