message: Flesh out MapViewState::checkWarehouseCapacity()
diff: @@ -404,7 +404,33 @@ void MapViewState::checkColonyShip()
  void MapViewState::checkWarehouseCapacity()
  {
  + StructureManager& structureManager = NAS2D::Utility<StructureManager>::get();
  + const auto& warehouses = structureManager.getStructures<Warehouse>();
  +
  + if (warehouses.size() == 0) { return; } // no divisions by zero, pl0x
  +
  + int availableStorageTotal = 0;
  + for (const auto warehouse : warehouses)
  + {
  + availableStorageTotal += warehouse->products().availableStoragePercent();
  + }
  + const int availableStorage = availableStorageTotal / warehouses.size();
  +
  + if (availableStorage < 15) // FIXME -- Magic Number
  + {
  + mNotificationArea.push({"Warehouse Space Low",
  + "Warehouse space is running low. Current available storage capacity is at " + std::to_string(availableStorage) + "%.",
  + {{-1, -1}, 0},
  + NotificationArea::NotificationType::Warning});
  + }
  + else if (availableStorage < 5) // FIXME -- Ditto
  + {
  + mNotificationArea.push({"Warehouse Space Critically Low",
  + "Warehouse space is critically low! You only have " + std::to_string(availableStorage) + "% storage capacity remaining!",
  + {{-1, -1}, 0},
  + NotificationArea::NotificationType::Critical});
  + }
  }
  