Browse Source

remove duplicated gold and conc grants at character creation

lakebane2
FatBoy-DOTC 3 weeks ago
parent
commit
45b0dda7d9
  1. 6
      src/engine/objects/PlayerCharacter.java

6
src/engine/objects/PlayerCharacter.java

@ -4874,8 +4874,10 @@ public class PlayerCharacter extends AbstractCharacter {
if(this.level < 10) { if(this.level < 10) {
this.setLevel((short) 10); this.setLevel((short) 10);
this.getCharItemManager().addGoldToInventory(1000,false); if(this.charItemManager.getGoldInventory().getNumOfItems() < 1000) {
this.getCharItemManager().addItemToInventory(new MobLoot(this,ItemBase.getItemBase(980066),1,false).promoteToItem(this)); this.getCharItemManager().addGoldToInventory(1000, false);
this.getCharItemManager().addItemToInventory(new MobLoot(this, ItemBase.getItemBase(980066), 1, false).promoteToItem(this));
}
this.setOverFlowEXP(0); this.setOverFlowEXP(0);
TargetedActionMsg cmm = new TargetedActionMsg(this); TargetedActionMsg cmm = new TargetedActionMsg(this);
DispatchMessage.dispatchMsgToInterestArea(this, cmm, DispatchChannel.PRIMARY, MBServerStatics.CHARACTER_LOAD_RANGE, true, false); DispatchMessage.dispatchMsgToInterestArea(this, cmm, DispatchChannel.PRIMARY, MBServerStatics.CHARACTER_LOAD_RANGE, true, false);

Loading…
Cancel
Save