Browse Source

Better context in name

combat-2
MagicBot 7 months ago
parent
commit
2e83b8c693
  1. 4
      src/engine/gameManager/ForgeManager.java

4
src/engine/gameManager/ForgeManager.java

@ -149,7 +149,7 @@ public enum ForgeManager implements Runnable {
return false; return false;
} }
if (calcCostOverflow(workOrder).isEmpty() == false) { if (!calcCostOverrun(workOrder).isEmpty()) {
if (playerCharacter != null) if (playerCharacter != null)
ErrorPopupMsg.sendErrorPopup(playerCharacter, 18); //18: You can't really afford that ErrorPopupMsg.sendErrorPopup(playerCharacter, 18); //18: You can't really afford that
return false; return false;
@ -224,7 +224,7 @@ public enum ForgeManager implements Runnable {
return production_cost; return production_cost;
} }
public static HashMap<mbEnums.ResourceType, Integer> calcCostOverflow(WorkOrder workOrder) { public static HashMap<mbEnums.ResourceType, Integer> calcCostOverrun(WorkOrder workOrder) {
HashMap<mbEnums.ResourceType, Integer> costMap = new HashMap<>(); HashMap<mbEnums.ResourceType, Integer> costMap = new HashMap<>();
Warehouse warehouse; Warehouse warehouse;

Loading…
Cancel
Save