|
|
@ -244,6 +244,12 @@ public enum ItemManager { |
|
|
|
|
|
|
|
|
|
|
|
ItemTemplate template = ItemTemplate.templates.get(workOrder.templateID); |
|
|
|
ItemTemplate template = ItemTemplate.templates.get(workOrder.templateID); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (workOrder.vendor.getBuilding() == null) |
|
|
|
|
|
|
|
return 58; //58: The formula is beyond the means of this facility
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (workOrder.vendor.getBuilding().getCity() == null) |
|
|
|
|
|
|
|
return 58; //58: The formula is beyond the means of this facility
|
|
|
|
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
|
|
|
|