|
|
@ -645,7 +645,9 @@ public class Warehouse { |
|
|
|
|
|
|
|
|
|
|
|
int debit = warehouse.resources.get(resourceType) - cost_map.get(resourceType); |
|
|
|
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); |
|
|
|
overflowMap.put(resourceType, debit); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|