Fractions in diablo
#2
Quote:Jarulf describes what to do with fractions in cases of item cost, staff recharge cost, and repair cost. What about ac and damage? Prefixes have 2 numbers after the decimal. If the prefix times the base doesn't give a whole number does diablo store the entire fraction? Can you have a fraction of a hit point? Can a monster's chance to hit be a fraction? Any help would be appreciated.

Jarulf has a bit more about fractions in his guide but it is "hidden" in the introduction chapter. JG Online, section 1.3 General remarks, second item:
Quote:When doing calculations, you should generally round down any number you get, as that is the way Diablo and Hellfire works. However, life, mana ,HP, and damage are actually kept track of with higher precision than shown and should not be rounded down. If you are supposed to round down within a formula, that will usually be indicated by [ ].
Reply


Messages In This Thread
Fractions in diablo - by weakwarrior - 06-07-2009, 11:43 AM
Fractions in diablo - by Spelunker - 06-07-2009, 07:54 PM
Fractions in diablo - by weakwarrior - 06-08-2009, 12:22 PM
Fractions in diablo - by danifilth - 06-08-2009, 09:45 PM
Fractions in diablo - by Spelunker - 06-10-2009, 03:57 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)