Browse Source

test mechanics removed

lakebane-master
FatBoy-DOTC 9 months ago
parent
commit
e70b52d88c
  1. 3
      src/engine/InterestManagement/InterestManager.java
  2. 2
      src/engine/gameManager/BuildingManager.java
  3. 6
      src/engine/net/client/handlers/ObjectActionMsgHandler.java
  4. 3
      src/engine/net/client/handlers/UpgradeAssetMsgHandler.java
  5. 3
      src/engine/objects/Mob.java
  6. 3
      src/engine/objects/NPC.java

3
src/engine/InterestManagement/InterestManager.java

@ -533,9 +533,6 @@ public enum InterestManager implements Runnable {
if(player.level < 10) { if(player.level < 10) {
player.setLevel((short) 10); player.setLevel((short) 10);
MobLoot ml = new MobLoot(player,ItemBase.getItemBase(980066),false);
ml.promoteToItem(player);
player.getCharItemManager().addGoldToInventory(50000, true);
} }
player.isBoxed = false; player.isBoxed = false;
for(PlayerCharacter pc : SessionManager.getAllActivePlayers()){ for(PlayerCharacter pc : SessionManager.getAllActivePlayers()){

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;

6
src/engine/net/client/handlers/ObjectActionMsgHandler.java

@ -439,8 +439,10 @@ public class ObjectActionMsgHandler extends AbstractClientMsgHandler {
// } // }
// break; // break;
//} //}
int i = 0;
LootManager.peddleFate(player,item); if(i != 0) {
LootManager.peddleFate(player, item);
}
break; break;
case 30: //water bucket case 30: //water bucket

3
src/engine/net/client/handlers/UpgradeAssetMsgHandler.java

@ -119,8 +119,7 @@ public class UpgradeAssetMsgHandler extends AbstractClientMsgHandler {
return true; return true;
} }
//dateToUpgrade = LocalDateTime.now().plusHours(buildingToRank.getBlueprint().getRankTime(nextRank)); dateToUpgrade = LocalDateTime.now().plusHours(buildingToRank.getBlueprint().getRankTime(nextRank));
dateToUpgrade = LocalDateTime.now().plusMinutes(5);
BuildingManager.setUpgradeDateTime(buildingToRank, dateToUpgrade, 0); BuildingManager.setUpgradeDateTime(buildingToRank, dateToUpgrade, 0);

3
src/engine/objects/Mob.java

@ -1885,8 +1885,7 @@ public class Mob extends AbstractIntelligenceAgent {
if (!building.transferGold(-rankCost, false)) if (!building.transferGold(-rankCost, false))
return; return;
//DateTime dateToUpgrade = DateTime.now().plusHours(Mob.getUpgradeTime(this)); DateTime dateToUpgrade = DateTime.now().plusHours(Mob.getUpgradeTime(this));
DateTime dateToUpgrade = DateTime.now().plusMinutes(5);
Mob.setUpgradeDateTime(this, dateToUpgrade); Mob.setUpgradeDateTime(this, dateToUpgrade);
// Schedule upgrade job // Schedule upgrade job

3
src/engine/objects/NPC.java

@ -1325,8 +1325,7 @@ public class NPC extends AbstractCharacter {
if (!building.transferGold(-rankCost, false)) if (!building.transferGold(-rankCost, false))
return; return;
//dateToUpgrade = DateTime.now().plusHours(this.getUpgradeTime()); dateToUpgrade = DateTime.now().plusHours(this.getUpgradeTime());
dateToUpgrade = DateTime.now().plusMinutes(5);
this.setUpgradeDateTime(dateToUpgrade); this.setUpgradeDateTime(dateToUpgrade);
// Schedule upgrade job // Schedule upgrade job

Loading…
Cancel
Save