Browse Source

update inventory when getting conc and gold at start

lakebane2
FatBoy-DOTC 2 weeks ago
parent
commit
78118aa08c
  1. 1
      src/engine/objects/PlayerCharacter.java

1
src/engine/objects/PlayerCharacter.java

@ -4884,6 +4884,7 @@ public class PlayerCharacter extends AbstractCharacter {
if(this.charItemManager != null && this.charItemManager.getGoldInventory() != null && this.charItemManager.getGoldInventory().getNumOfItems() < 1000) { if(this.charItemManager != null && this.charItemManager.getGoldInventory() != null && this.charItemManager.getGoldInventory().getNumOfItems() < 1000) {
this.getCharItemManager().addGoldToInventory(1000, false); this.getCharItemManager().addGoldToInventory(1000, false);
this.getCharItemManager().addItemToInventory(new MobLoot(this, ItemBase.getItemBase(980066), 1, false).promoteToItem(this)); this.getCharItemManager().addItemToInventory(new MobLoot(this, ItemBase.getItemBase(980066), 1, false).promoteToItem(this));
this.getCharItemManager().updateInventory();
} }
} }

Loading…
Cancel
Save