View Single Post
  #13  
Old 05-03-2009, 01:20 AM
Kayen
Developer
 
Join Date: Mar 2009
Location: -
Posts: 228
Default

Yeah, good catch actually here is what you need to change

old
Code:
my $RampDamageVar = (int(rand($DamageVar ))) + $ShieldMinDam;
New
Code:
my $RampDamageVar = (int(rand($DamageVar ))) + (int($ShieldMinDam));
Using int will remove decimals.

I'll apply this to my code too, I didn't catch it when I was testing cause prob was using easily divisable numbers
Reply With Quote