Browse Source

Locked resources are always unavailable.

combat-2
MagicBot 9 months ago
parent
commit
dc18e71ee4
  1. 4
      src/engine/objects/Warehouse.java

4
src/engine/objects/Warehouse.java

@ -645,7 +645,9 @@ public class Warehouse { @@ -645,7 +645,9 @@ public class Warehouse {
int debit = warehouse.resources.get(resourceType) - cost_map.get(resourceType);
if (debit < 0)
// Locked resources are always unavailable
if (debit < 0 || warehouse.locked.contains(resourceType))
overflowMap.put(resourceType, debit);
}

Loading…
Cancel
Save