diff --git a/RotomecaItemDurability.js b/RotomecaItemDurability.js index 0c6ccec..13c62ad 100644 --- a/RotomecaItemDurability.js +++ b/RotomecaItemDurability.js @@ -498,22 +498,8 @@ Game_Party.prototype.gainItem = function (item, amount, includeEquip) { if (!!item && !!item.note && item.note.includes('')[0].replaceAll(' ', ''))).object(); - - alias_rotomeca_Game_Party_prototype_gainItem.call(this, item, 1, includeEquip); + newItem = Rotomeca.RotomecaItemDurability.createItemWithDurability(DataManager.isWeapon(item) ? 1 : 0, item, Number.POSITIVE_INFINITY); + alias_rotomeca_Game_Party_prototype_gainItem.call(this, newItem.object(), 1, includeEquip); } } else alias_rotomeca_Game_Party_prototype_gainItem.call(this, item, amount, includeEquip); @@ -747,4 +733,4 @@ BrokenIndicator.prototype._refresh = function () } else ++this._it; } -} \ No newline at end of file +}