This week's book giveaway is in the Design and Architecture forum. We're giving away four copies of Communication Patterns: A Guide for Developers and Architects and have Jacqui Read on-line! See this thread for details.
im having some problem wit this code. its generating a random number, but its negative and i cant figure out why. im writing a text-based-rpg-combat-system.
it gets its variables from this class
not sure what the big deal is, no compiler errors come up
im using netbeans 6.9.1 and jdk 6_21
sorry if this is a late reply, I saw this post just now.
the problem with your code is that your subtracting the dmg (which is already negative) from AIhp resulting an increase in the AIhp. you should change it to