> if(IS_AFFECTED(ch, AFF_GROUP)) {
> base = (GET_LEVEL(ch) * GET_EXP(victim))/total_levels;
> perform_group_gain(ch, base, victim);
> }
this sould probably be "k"..since k is the leader of the group..this part
does the leader, while the next part does the followers..
> for (f = k->followers; f; f = f->next) {
> base = (GET_LEVEL(f->follower) * GET_EXP(victim))/total_levels;
> perform_group_gain(f->follower, base, victim);
urm..why not make an exp_per_lev var..
exp_per_lev = GET_EXP(victim)/total_levels;
if (IS_AFFECTED(k, AFF_GROUP))
perform_group_gain(k, (GET_LEVEL(k) * exp_per_lev), victim);
for (f = k->followers; f; f = f->next)
perform_group_gain(f->follower, (exp_per_lev * GET_LEVEL(f->follower)),
victim);
siv
+------------------------------------------------------------+
| Ensure that you have read the CircleMUD Mailing List FAQ: |
| http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
+------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/15/00 PST