Sweet victory!
I got it to work with criticals, play around with it if you like. I also fixed the glitch with the outputs' precision. Stupid me, didn't know toFixed() existed so I was using Math.floor(x*1000)/1000... >_>
And yeah, I know criticals aren't the only thing of this kind, you could also use it for slash/stab etc, but critical is just the most common implementation so yeah.
Hmm, now that I have that down, it wouldn't be too difficult to implement Final Attack as well... nah, not worth it.
@ Mondays
Try to find the mean hkoing for first Horntail head using any method... it's not easy no matter what you do, any formulas will involve summations and factorials that will get very ugly.
With anything above 100 hits, HP/meanhit is usually the quickest way to get a meaningful answer.
I got it to work with criticals, play around with it if you like. I also fixed the glitch with the outputs' precision. Stupid me, didn't know toFixed() existed so I was using Math.floor(x*1000)/1000... >_>
And yeah, I know criticals aren't the only thing of this kind, you could also use it for slash/stab etc, but critical is just the most common implementation so yeah.
Hmm, now that I have that down, it wouldn't be too difficult to implement Final Attack as well... nah, not worth it.
@ Mondays
Try to find the mean hkoing for first Horntail head using any method... it's not easy no matter what you do, any formulas will involve summations and factorials that will get very ugly.
With anything above 100 hits, HP/meanhit is usually the quickest way to get a meaningful answer.

