Begin constructor refactor
This commit is contained in:
@@ -1245,7 +1245,7 @@ public class ClientMessagePump implements NetMsgHandler {
|
||||
cost = sell.getBaseValue();
|
||||
|
||||
//apply damaged value reduction
|
||||
float durabilityCurrent = sell.getDurabilityCurrent();
|
||||
float durabilityCurrent = (short) sell.durabilityCurrent;
|
||||
float durabilityMax = sell.getDurabilityMax();
|
||||
float damagedModifier = durabilityCurrent / durabilityMax;
|
||||
cost *= damagedModifier;
|
||||
@@ -1639,7 +1639,7 @@ public class ClientMessagePump implements NetMsgHandler {
|
||||
return;
|
||||
|
||||
//make sure item is damaged and not destroyed
|
||||
short dur = toRepair.getDurabilityCurrent();
|
||||
short dur = (short) toRepair.durabilityCurrent;
|
||||
short max = toRepair.getDurabilityMax();
|
||||
//account for durability modifications
|
||||
float durMod = toRepair.getBonusPercent(ModType.Durability, SourceType.NONE);
|
||||
|
||||
Reference in New Issue
Block a user