Inventory related cleanup and improvements.

This commit is contained in:
MobiusDevelopment
2019-12-15 00:25:19 +00:00
parent 11411164f7
commit a1f198218a
98 changed files with 558 additions and 863 deletions

View File

@@ -462,7 +462,7 @@ public class PrimevalIsle extends AbstractNpcAI
if ((npc.getId() == SAILREN) || (getRandom(100) < 3))
{
final PlayerInstance player = npc.getId() == SAILREN ? getRandomPartyMember(killer) : killer;
if (player.getInventory().getSize(false) <= (player.getInventoryLimit() * 0.8))
if (player.isInventoryUnder80(false))
{
giveItems(player, DEINONYCHUS, 1);
final ItemInstance summonItem = player.getInventory().getItemByItemId(DEINONYCHUS);

View File

@@ -292,9 +292,8 @@ public class Q00350_EnhanceYourWeapon extends Quest
return null;
}
final ItemInstance[] inv = player.getInventory().getItems();
SoulCrystal ret = null;
for (ItemInstance item : inv)
for (ItemInstance item : player.getInventory().getItems())
{
final int itemId = item.getId();
if (!SOUL_CRYSTALS.containsKey(itemId))

View File

@@ -937,6 +937,7 @@
<set name="immediate_effect" val="true" />
<set name="material" val="GOLD" />
<set name="price" val="1" />
<set name="is_sellable" val="false" />
<set name="is_stackable" val="true" />
</item>
<item id="58" type="Armor" name="Mithril Breastplate">