From 45b0dda7d9580efd10c78e1a75b265ae47ae7f1f Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Mon, 30 Dec 2024 17:55:48 -0600 Subject: [PATCH] remove duplicated gold and conc grants at character creation --- src/engine/objects/PlayerCharacter.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/engine/objects/PlayerCharacter.java b/src/engine/objects/PlayerCharacter.java index d7af7cfb..b3eb8d7a 100644 --- a/src/engine/objects/PlayerCharacter.java +++ b/src/engine/objects/PlayerCharacter.java @@ -4874,8 +4874,10 @@ public class PlayerCharacter extends AbstractCharacter { if(this.level < 10) { this.setLevel((short) 10); - this.getCharItemManager().addGoldToInventory(1000,false); - this.getCharItemManager().addItemToInventory(new MobLoot(this,ItemBase.getItemBase(980066),1,false).promoteToItem(this)); + if(this.charItemManager.getGoldInventory().getNumOfItems() < 1000) { + this.getCharItemManager().addGoldToInventory(1000, false); + this.getCharItemManager().addItemToInventory(new MobLoot(this, ItemBase.getItemBase(980066), 1, false).promoteToItem(this)); + } this.setOverFlowEXP(0); TargetedActionMsg cmm = new TargetedActionMsg(this); DispatchMessage.dispatchMsgToInterestArea(this, cmm, DispatchChannel.PRIMARY, MBServerStatics.CHARACTER_LOAD_RANGE, true, false);