From 2a06015a0eef938ffb452ff71f8a113113f6d6a3 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Wed, 7 Feb 2024 21:38:02 -0600 Subject: [PATCH] xp and conc granted for noob --- src/engine/InterestManagement/InterestManager.java | 13 +++++++++++-- src/engine/objects/PlayerCharacter.java | 11 ----------- 2 files changed, 11 insertions(+), 13 deletions(-) diff --git a/src/engine/InterestManagement/InterestManager.java b/src/engine/InterestManagement/InterestManager.java index e6a7c0a9..6f2702b1 100644 --- a/src/engine/InterestManagement/InterestManager.java +++ b/src/engine/InterestManagement/InterestManager.java @@ -546,8 +546,17 @@ public enum InterestManager implements Runnable { return; } } - if(player.getPromotionClass() == null){ - + if(player.getLevel() < 25){ + ItemBase itemBase = ItemBase.getItemBase(980066); + boolean hasConc = false; + for(Item item : player.getCharItemManager().getInventory()) + if(item.getItemBase().equals(itemBase)) + hasConc = true; + + if(!hasConc){ + MobLoot ml = new MobLoot(player,itemBase,false); + ml.promoteToItem(player); + } } if(player.getPromotionClass() == null){ player.grantXP(200000 - player.getExp()); diff --git a/src/engine/objects/PlayerCharacter.java b/src/engine/objects/PlayerCharacter.java index 2a41b227..4f38655c 100644 --- a/src/engine/objects/PlayerCharacter.java +++ b/src/engine/objects/PlayerCharacter.java @@ -2229,17 +2229,6 @@ public class PlayerCharacter extends AbstractCharacter { // Warehouse this event CharacterRecord.updatePromotionClass(this); - // give buffs - PowersManager.applyPower(this,this,Vector3fImmutable.ZERO,496064712,40,false); - PowersManager.applyPower(this,this,Vector3fImmutable.ZERO,496097480,40,false); - PowersManager.applyPower(this,this,Vector3fImmutable.ZERO,495999176,40,false); - PowersManager.applyPower(this,this,Vector3fImmutable.ZERO,496031944,40,false); - PowersManager.applyPower(this,this,Vector3fImmutable.ZERO,496195784,40,false); - PowersManager.applyPower(this,this,Vector3fImmutable.ZERO,496228552,40,false); - PowersManager.applyPower(this,this,Vector3fImmutable.ZERO,294901960,40,false); - PowersManager.applyPower(this,this,Vector3fImmutable.ZERO,496617320,40,false); - PowersManager.applyPower(this,this,Vector3fImmutable.ZERO,498982927,40,false); - PowersManager.applyPower(this,this,Vector3fImmutable.ZERO,441156479,40,false); return true; }