Browse Source

Removed cast in validation

combat-2
MagicBot 9 months ago
parent
commit
fae81a0263
  1. 3
      src/engine/gameManager/ForgeManager.java

3
src/engine/gameManager/ForgeManager.java

@ -138,10 +138,9 @@ public enum ForgeManager implements Runnable {
if (!workOrder.vendor.charItemManager.hasRoomInventory(template.item_wt)) if (!workOrder.vendor.charItemManager.hasRoomInventory(template.item_wt))
return 30; //30: That person cannot carry that item return 30; //30: That person cannot carry that item
if (!workOrder.vendor.getItemModTable().contains(((byte) template.modTable))) if (!workOrder.vendor.getItemModTable().contains((template.modTable)))
return 59; //59: This hireling does not have this formula return 59; //59: This hireling does not have this formula
if (!calcCostOverrun(workOrder).isEmpty()) if (!calcCostOverrun(workOrder).isEmpty())
return 10; //18: You can't really afford that return 10; //18: You can't really afford that

Loading…
Cancel
Save