Merge pull request #50 from gmcferrin/patch-3

Fixed cast issue with Repair Mastery - fixes Issue #47
This commit is contained in:
The Yeti 2012-01-27 15:32:59 -08:00
commit 59e6d9781f

View File

@ -469,9 +469,9 @@ public class Repair {
}
public static short repairCalculate(Player player, short durability, int ramt){
PlayerProfile PP = Users.getProfile(player);
float bonus = (PP.getSkillLevel(SkillType.REPAIR) / 500);
float bonus = (float)(PP.getSkillLevel(SkillType.REPAIR)) / 500;
bonus = (ramt * bonus);
ramt = ramt+=bonus;
ramt+=bonus;
if(checkPlayerProcRepair(player)){
ramt = (short) (ramt * 2);
}