|
|
|
@ -1262,12 +1262,13 @@ public class CharacterItemManager {
@@ -1262,12 +1262,13 @@ public class CharacterItemManager {
|
|
|
|
|
if(item.getItemBaseID() == i.getItemBaseID()){ |
|
|
|
|
if(item.getNumOfItems() + count <= Warehouse.getMaxResources().get(i.getItemBaseID())){ |
|
|
|
|
purge.add(item); |
|
|
|
|
count += item.getNumOfItems(); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
for(Item item : purge){ |
|
|
|
|
count += item.getNumOfItems(); |
|
|
|
|
this.removeItemFromInventory(item); |
|
|
|
|
item.junk(); |
|
|
|
|
} |
|
|
|
|
Item resource = new MobLoot(this.getOwner(),i.getItemBase(),count,false).promoteToItem((PlayerCharacter)this.getOwner()); |
|
|
|
|
this.inventory.add(resource); |
|
|
|
|