Itembase refactored out of gold

This commit is contained in:
2024-03-28 05:34:50 -04:00
parent 08f0fc1743
commit 1cf9831e20
3 changed files with 11 additions and 26 deletions
+2 -2
View File
@@ -87,14 +87,14 @@ public class CharacterItemManager {
//create inventory gold if needed
if (this.goldInventory == null)
if (this.absCharacter != null && (this.absCharacter.getObjectType().equals(GameObjectType.PlayerCharacter) || this.absCharacter.getObjectType().equals(GameObjectType.NPC)))
this.goldInventory = Item.newGoldItem(this.absCharacter, ItemBase.getItemBase(7), Enum.ItemContainerType.INVENTORY);
this.goldInventory = Item.newGoldItem(this.absCharacter, Enum.ItemContainerType.INVENTORY);
else
this.goldInventory = new MobLoot(this.absCharacter, 0);
//create bank gold if needed
if (this.goldBank == null)
if (this.absCharacter != null && this.absCharacter.getObjectType().equals(GameObjectType.PlayerCharacter))
this.goldBank = Item.newGoldItem(this.absCharacter, ItemBase.getItemBase(7), Enum.ItemContainerType.BANK);
this.goldBank = Item.newGoldItem(this.absCharacter, Enum.ItemContainerType.BANK);
else
this.goldBank = new MobLoot(this.absCharacter, 0);