> Here's how I would see it working:
> A linked list on each mob remembers how much damage each player has done
to
> it.  When the mob regens, run through its list of attackers and subract a
> proportional amount of the regen rate from how much damage they have done
> (the damage that player did is healed over time).  Once the player's
damage
> total gets to 0, meaning they caused none of the damage currently on the
> mob, remove them from the mob's list of attackers.

Was something like that i was thinking of, looks good to me.

> Same amount of memory, but I think putting the list on the player would
> cause trouble updating since mobs die so much more often.

Exactly, that was why i wanted it on mobs and not on players.

Reply via email to