06-07-2009, 07:54 PM
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 [ ].