From 08cb49f6410263329e7e95f508395c635de956be Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Wed, 7 Feb 2024 21:41:25 -0600 Subject: [PATCH] xp and conc granted for noob --- src/engine/InterestManagement/InterestManager.java | 7 ++----- src/engine/objects/PlayerCharacter.java | 2 ++ 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/engine/InterestManagement/InterestManager.java b/src/engine/InterestManagement/InterestManager.java index 6f2702b1..184fd2df 100644 --- a/src/engine/InterestManagement/InterestManager.java +++ b/src/engine/InterestManagement/InterestManager.java @@ -548,14 +548,11 @@ public enum InterestManager implements Runnable { } 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){ + if(!player.receivedConc){ MobLoot ml = new MobLoot(player,itemBase,false); ml.promoteToItem(player); + player.receivedConc = true; } } if(player.getPromotionClass() == null){ diff --git a/src/engine/objects/PlayerCharacter.java b/src/engine/objects/PlayerCharacter.java index 4f38655c..83dedf44 100644 --- a/src/engine/objects/PlayerCharacter.java +++ b/src/engine/objects/PlayerCharacter.java @@ -177,6 +177,8 @@ public class PlayerCharacter extends AbstractCharacter { public boolean isBoxed = false; + public boolean receivedConc = false; + /** * No Id Constructor */