// This Adds a multiplier to recieved items. Scene_Synthesis.prototype.doBuy = function(number) { var price = number * this._item.synthCost; $gameParty.loseGold(price); for (var i = 0; i < this._item.synthIngredients.length; ++i) { var ingredient = DataManager.getSynthesisIngredient(this._item, i); var quantity = DataManager.getSynthesisQuantity(this._item, i); quantity *= number; if (!ingredient) continue; $gameParty.loseItem(ingredient, quantity, false); } multiplier = this._item.meta.multiplier if (multiplier == null) { multiplier = 1 } $gameParty.gainItem(this._item, (number * multiplier)); $gameSystem.addSynth(this._item); }; // Rewrite of yanflys method to call the follow section. Window_SynthesisList.prototype.drawItemName = function(item, x, y, width) { if (!item) return; if ($gameSystem.hasSynthed(item)) { Window_Base.prototype.drawItemName3.call(this, item, x, y, width); return; } var iconBoxWidth = Window_Base._iconWidth + 4; this.resetTextColor(); this.drawIcon(item.iconIndex, x + 2, y + 2); var text = item.name; if (eval(Yanfly.Param.ISMaskUnknown)) { this.contents.fontItalic = eval(Yanfly.Param.ISMaskItalic); if (item.maskName !== '') { text = item.maskName; } else { text = Yanfly.Util.maskString(text, Yanfly.Param.ISMaskText); } } this.drawText(text, x + iconBoxWidth, y, width - iconBoxWidth); this.contents.fontItalic = false; }; // This adds a new function to draw the item name with the multiplier in it. Window_Base.prototype.drawItemName3 = function(item, x, y, width) { multiplier = item.meta.multiplier if (multiplier == null) { multiplier = 1 } width = width || 312; if (item) { var iconBoxWidth = Window_Base._iconWidth + 4; this.resetTextColor(); this.drawIcon(item.iconIndex, x + 2, y + 2); this.drawText(item.name + ' (x' + multiplier + ')', x + iconBoxWidth, y, width - iconBoxWidth); } };