[crossfire] Max speed

Nicolas Weeger nicolas.weeger at laposte.net
Sun Feb 11 16:09:48 CST 2007


> Related to bug
> https://sourceforge.net/tracker/index.php?func=detail&aid=1539207&group_id=
>13833&atid=113833 concerning the max_speed when wearing armor, I've changed
> the logic in fix_object (former fix_player) to always cap speed at armor's
> max_speed.

Apparently that fix was too restrictive, so I kind of reverted it.

Now, it would be nice to decide the exact logic we want for max speed 
handling...

Currently, what (apparently) happens is:
* speed is computed based on dexterity, and max allowed by armor
* some speed is added, from objects in inventory having exp set (?)
* some more speed is added, from objects having exp set (but only positive 
values are taken into account)
* carried weight is taken into account
* disease induced speed is applied
* minimum speed is enforced


This looks to me like a kind of mess, so we should probably decide how to fix 
that :)


Nicolas
-- 
http://nicolas.weeger.free.fr [Petit site d'images, de textes, de code, bref 
de l'aléatoire !]



More information about the crossfire mailing list