Browse Source

5 minute upgrades for initial placement

lakebane-master
FatBoy-DOTC 9 months ago
parent
commit
03025e7f00
  1. 2
      src/engine/gameManager/BuildingManager.java
  2. 2
      src/engine/net/client/handlers/PlaceAssetMsgHandler.java

2
src/engine/gameManager/BuildingManager.java

@ -258,7 +258,7 @@ public enum BuildingManager {
if (building == null) if (building == null)
return; return;
building.upgradeDateTime = LocalDateTime.now().plusMinutes(5);
if (building.getUpgradeDateTime() == null) { if (building.getUpgradeDateTime() == null) {
Logger.error("Attempt to submit upgrade job for non-ranking building"); Logger.error("Attempt to submit upgrade job for non-ranking building");
return; return;

2
src/engine/net/client/handlers/PlaceAssetMsgHandler.java

@ -800,7 +800,7 @@ public class PlaceAssetMsgHandler extends AbstractClientMsgHandler {
treeObject.setObjectTypeMask(MBServerStatics.MASK_BUILDING); treeObject.setObjectTypeMask(MBServerStatics.MASK_BUILDING);
treeObject.setParentZone(zoneObject); treeObject.setParentZone(zoneObject);
MaintenanceManager.setMaintDateTime(treeObject, LocalDateTime.now().plusDays(7)); MaintenanceManager.setMaintDateTime(treeObject, LocalDateTime.now().plusDays(14));
// Update guild binds and tags // Update guild binds and tags
//load the new city on the clients //load the new city on the clients

Loading…
Cancel
Save