QUOTE (Tsukihime @ Jun 5 2012, 03:33 PM)

So when you change the formula does the result also change?
If parentheses aren't recognized, then (a.atk - b.def)*5 would be evaluated as a.atk - (b.def * 5)
EDIT: here's your problem:
CODE
100/(100+b.def)
That evaluates to 0 since it's integer division.
It is standard ruby math operations.
I didn't realize it was integer division.
Is there a means of getting around this in Ruby so that it's standard division?
This post has been edited by Pillanious: Jun 5 2012, 12:06 PM