Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Release| Hit Simulator with Defense Calculation
#42
Devil's Sunrise Wrote:It's actually quite simple to shorten the code. Just rationalize the decimal-values, and you get that they all turn into real fractions.
 Spoiler

I know how to do that, but I'd rather leave them like that because the result of "int * 0.11111111111" is a double fraction, but the result of "int / 9" is a rounded integer and re-casting my integers to double after every calculation is annoying (it might has something to do with me casting everything to int32, but is still related to what I said above).
2147483647 Wrote:I meant the ones you mentioned but didn't post:

"Updated the damage calculator, now there are radio buttons that choose between physical damage and magical damage. In magic damage mode the mob's level and the player's int are disabled because they are not needed for the formula."
These are the formulas for W.Def\M.Def (not avoidability). I didn't post them because they are too complicated, you can look at the source code if you want.

2147483647 Wrote:Anego does 12K touch damage. Anego's slap does 18K damage. Anego's gun-thing does 5.4K damage. :f6:
Because physical "attacks" can have a WATT of their own.
Reply


Messages In This Thread
Release| Hit Simulator with Defense Calculation - by Kortestanov - 2009-11-14, 02:44 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)