I'm having issues that I think are related to this plugin not working with yanfly's itemCore (which you mention may happen in the plugin info).
Bobstah.LevelUpBonuses.GameActor_releaseUnequippableItems = Game_Actor.prototype.releaseUnequippableItems;Game_Actor.prototype.releaseUnequippableItems = function(forcing) { for (; { var slots = this.equipSlots(); var equips = this.equips(); var changed = false; for (var i = 0; i < equips.length; i++) { var item = equips; if (item && (!this.canEquip(item) || item.etypeId !== slots)) { if (!forcing) { this.tradeItemWithParty(null, item); } var objType = (i === 1 ? 'weapon' : 'armor'); var oldItemId = equips._itemId || 0; var oldItem = null; if (oldItemId !== 0) { if (objType === 'weapon') { oldItem = $dataWeapons[oldItemId]; } else { oldItem = $dataArmors[oldItemId]; } } equips.setObject(null); this.checkEquipLevelUpBonus(i, {id: 0}, objType, item); changed = true; } } if (!changed) { break; } }};The console error I get when trying to equip weapons mentions this function.
What are the specific issues with compatibility with yanfly's scripts? Is it possible to remove snippets of code safely if I dont intend to use some functions ?
Bobstah.LevelUpBonuses.GameActor_releaseUnequippableItems = Game_Actor.prototype.releaseUnequippableItems;Game_Actor.prototype.releaseUnequippableItems = function(forcing) { for (; { var slots = this.equipSlots(); var equips = this.equips(); var changed = false; for (var i = 0; i < equips.length; i++) { var item = equips; if (item && (!this.canEquip(item) || item.etypeId !== slots)) { if (!forcing) { this.tradeItemWithParty(null, item); } var objType = (i === 1 ? 'weapon' : 'armor'); var oldItemId = equips._itemId || 0; var oldItem = null; if (oldItemId !== 0) { if (objType === 'weapon') { oldItem = $dataWeapons[oldItemId]; } else { oldItem = $dataArmors[oldItemId]; } } equips.setObject(null); this.checkEquipLevelUpBonus(i, {id: 0}, objType, item); changed = true; } } if (!changed) { break; } }};The console error I get when trying to equip weapons mentions this function.
What are the specific issues with compatibility with yanfly's scripts? Is it possible to remove snippets of code safely if I dont intend to use some functions ?