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

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

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

Loading…
Cancel
Save