In "URANGE macro..?" aon wrote:
> I see that this function gets called by various functions, mainly to
> generate a chance-value, but what is it actually supposed to do? What
> effect is it supposed to generate? And how could I generate a similar
> chance (or what ever) instead of using this function ... ?

The purpose of URANGE is to constrain a value to upper and lower
limits, and return the limit if the value exceeds it.

Amusingly, it is used to correct sex changes.  :)

In effects.c you see it used to sanity check a long string of
if() modifications to the 'chance' value. IMHO, this use could
mask modifications that send the value wildy out of range.
Just a thought.  :)

 
Sandi                            

                  "I have not yet begun to code!"

[EMAIL PROTECTED]                       blades.inetsolve.com 3333


Reply via email to