[Jan 05 2008] - Rumble

Fixed improper display of affections in stat player. (thanks Rhade)
[Jan 04 2008] - Rumble
  Removed the unused npc_class_types.
  Fix to affect_update and affect_join. (thanks Kyle and Jamdog)
[ 2007] - Rumble
  Removed the clsolc command. This option can still be set via "toggle clsolc."
[Jan 03 2007] - Rumble
  PLR_NOWIZLIST actually used now to prevent run_autowiz.
  Several _FLAGGED checks that I fixed for 128 bit in the wrong SVN directory and failed to committ.
This commit is contained in:
Rumble 2008-01-05 03:54:30 +00:00
parent 9336b21d40
commit b8bf900585
15 changed files with 41 additions and 65 deletions

View file

@ -362,13 +362,12 @@ void affect_join(struct char_data *ch, struct affected_type *af,
if ((hjp->type == af->type) && (hjp->location == af->location)) {
if (add_dur)
af->duration += hjp->duration;
if (avg_dur)
af->duration /= 2;
else if (avg_dur)
af->duration = (af->duration+hjp->duration)/2;
if (add_mod)
af->modifier += hjp->modifier;
if (avg_mod)
af->modifier /= 2;
else if (avg_mod)
af->modifier = (af->modifier+hjp->modifier)/2;
affect_remove(ch, hjp);
affect_to_char(ch, af);