Itembase refactored out of gold
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user