summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-09-27 23:30:23 -0300
committerJesusaves <cpntb1@ymail.com>2020-09-27 23:30:23 -0300
commit57efe9d138e39f6a3def438cf8b8136ca542d9a5 (patch)
tree04405a60a0b6c70cf2f925d44ab91905e7fc1fcc
parentd0f528217d160222464e9847de1c735ac96902f8 (diff)
downloadplugin-57efe9d138e39f6a3def438cf8b8136ca542d9a5.tar.gz
plugin-57efe9d138e39f6a3def438cf8b8136ca542d9a5.tar.bz2
plugin-57efe9d138e39f6a3def438cf8b8136ca542d9a5.tar.xz
plugin-57efe9d138e39f6a3def438cf8b8136ca542d9a5.zip
Mess a bit more the script because.
THIS IS A MESS.
-rw-r--r--src/emap/party.c8
1 files 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);