@ -8,317 +8,387 @@ Imported.YEP_ItemSynthesis = true;
var Yanfly = Yanfly || { } ;
Yanfly . IS = Yanfly . IS || { } ;
Yanfly . IS . version = 1. 08 ;
Yanfly . IS . version = 1. 11 ;
//=============================================================================
/ * :
* @ plugindesc v1 . 08 物品合成系统
* @ author Yanfly Engine Plugins 汉化 : 硕明云书
*
* @ param -- - General -- -
* @ default
*
* @ param Synthesis Command
* @ text 合成命令
* @ desc 这是用于转到项目合成菜单的文本 。
* @ default 合成
*
* @ param Show Command
* @ text 显示命令
* @ desc 默认情况下在主菜单中显示合成命令 ?
* NO - false YES - true
* @ default true
*
* @ param Enable Command
* @ text 启用命令
* @ desc Enable the Synthesis command in the main menu by default ?
* NO - false YES - true
* @ default true
*
* @ param Auto Place Command
* @ text 自动放置命令
* @ desc Allow this plugin to decide the menu placement position ?
* NO - false YES - true
* @ default true
*
* @ param -- - Command Window -- -
* @ default
*
* @ param Item Command
* @ text 道具显示
* @ desc 用于合成项的命令文本 。
* @ default 道具
*
* @ param Weapon Command
* @ text 武器显示
* @ desc The command text used for synthesizing weapons .
* @ default 武器
*
* @ param Armor Command
* @ text 装备显示
* @ desc The command text used for synthesizing armors .
* @ default 装备
*
* @ param Finish Command
* @ text 完成显示
* @ desc The command text used for exiting the synthesis scene .
* @ default 退出
*
* @ param Text Alignment
* @ text 文本对齐方式
* @ desc 如何对齐命令窗口的文本 。
* left center right
* @ default center
*
* @ param -- - Status Window -- -
* @ default
*
* @ param Collected Recipes
* @ text 材料总数文本
* @ desc 用于表示收集的总配方的文本 。
* Leave this blank if you don ' t wish to show this .
* @ default 材料收集总数
*
* @ param Crafted Items
* @ text 道具配方
* @ desc 用于表示制作的全部项目的文本
* @ default 道具配方
*
* @ param Crafted Weapons
* @ text 武器配方
* @ desc Text used to represent total weapons crafted .
* Leave this blank if you don ' t wish to show this .
* @ default 武器配方
*
* @ param Crafted Armors
* @ text 装备配方
* @ desc Text used to represent total armors crafted .
* Leave this blank if you don ' t wish to show this .
* @ default 装备配方
*
* @ param -- - List Window -- -
* @ default
*
* @ param Equipped Recipes
* @ text 检查配方
* @ desc 检查装备物品的配方 ?
* NO - false YES - true
* @ default true
*
* @ param Mask Unknown
* @ text 屏蔽未创建
* @ desc 屏蔽尚未创建的项目的名称 ?
* NO - false YES - true
* @ default true
*
* @ param Mask Text
* @ text 掩盖未知
* @ desc 这将用于掩盖未知项目
* @ default ?
*
* @ param Mask Italic
* @ text 斜体遮罩
* @ desc Causes the name for unknown items to appear in italic .
* @ default false
*
* @ param Mask Help Text
* @ text 屏蔽帮助文本
* @ desc 这是将显示在帮助窗口中的文本
* @ default 未知物品 !
*
* @ param Ingredients Text
* @ text 成分文本
* @ desc 这是用于描述成分列表的文本 。
* @ default 所需材料
*
* @ param Amount Text
* @ text 数量文本
* @ desc 这是用于合成金额的文本 。
* @ default 数量
*
* @ param Quantity Text Size
* @ text 数量文本大小
* @ desc 这是用于项目数量的文本大小 。
* Default : 28
* @ default 20
*
* @ param -- - Sound -- -
* @ default
*
* @ param Default SE
* @ text SE
* @ desc 这是合成项目时播放的默认SE
* @ default Twine
*
* @ param Default Volume
* @ text 音量
* @ desc This is the default volume when synthesizing an item .
* @ default 100
*
* @ param Default Pitch
* @ text 音调
* @ desc This is the default pitch when synthesizing an item .
* @ default 100
*
* @ param Default Pan
* @ text 默认
* @ desc This is the default pan when synthesizing an item .
* @ default 0
*
* @ help
* === === === === === === === === === === === === === === === === === === === === === === === === === =
* Introduction
* === === === === === === === === === === === === === === === === === === === === === === === === === =
* 物品代码 :
* < Synthesis Ingredients >
* item 4
* item 3
* < / S y n t h e s i s I n g r e d i e n t s >
* 物品合成系统是大多数角色扮演游戏常见的方面 , 玩家可以通过制作书合成他们自
* 己的物品 。 这个插件让玩家实现这个功能 。 制作书可以涉及物品 , 武器或者装备 ,
* 并且可以合成物品 , 武器或者装备 。 这些物品可以从主菜单或者合成菜单制作 。
*
* === === === === === === === === === === === === === === === === === === === === === === === === === =
* Notetags
* === === === === === === === === === === === === === === === === === === === === === === === === === =
*
* 为了让玩家打造出某个物品 , 这些物品必须拥有制作书的标签
*
* Item , Weapon , and Armor Notetags :
* < Item Recipe : x >
* < Item Recipe : x , x , x >
* < Item Recipe : x to y >
* 在数据库建立名为制作书的物品 , 备注放入这些标签 , 例如 :
* < Item Recipe : 41 , 42 , 43 > 表示ID为41 、 42 、 43 的物品可以合成 。
* 前提是你必须在游戏中得到这个制作书 。 武器和防具例同 。
* 注意 : 没有名字的条目 , 以及没有合成消耗和合成原料列表的条目都不会参与合成
*
* < Weapon Recipe : x >
* < Weapon Recipe : x , x , x >
* < Weapon Recipe : x to y >
* 可以把这些武器放入制作书 , 只要队伍拥有这个武器 , 他就可以被玩家和其他原料
* 一起合成
* 注意 : 没有名字的条目 , 以及没有合成消耗和合成原料列表的条目都不会参与合成
*
* < Armor Recipe : x >
* < Armor Recipe : x , x , x >
* < Armor Recipe : x to y >
* 可以把这些装备放入制作书 , 只要队伍拥有这个装备 , 他就可以被玩家和其他原料
* 一起合成
* 注意 : 没有名字的条目 , 以及没有合成消耗和合成原料列表的条目都不会参与合成
*
* < Synthesis Ingredients >
* item id 物品ID例如 : item 40 表示需要ID为40的物品1个 。
* item id : x 需要的数量例如 : item 40 : 3 表示ID为40的物品需要3个 。
* weapon id
* weapon id : x
* armor id
* armor id : x
* gold : x
* named item
* named item : x
* < / S y n t h e s i s I n g r e d i e n t s >
* 使用这个标签 , 可以让物品通过这些原料合成 。 替代ID即可 。 如果没有指定ID , 数
* 据库认为只需要任何一件物品作为原料即可 。 如果金钱被指定 , 则需要消耗如此数
* 量金钱来合成物品
*
* 如果你使用名字 , 则会优先使用ID最高的
*
* 注意 : 如果你使用了物品核心插件 。 独立物品不能成为合成原料 , 将会自动被漏掉
*
* < Mask Name : x >
* 如果你伪装了物品名字 , 你可以改变物品显示的文本 。 这将造成游戏采用伪装名代
* 替平时使用的 。 这可以让玩家生成他们想要的合成品例如 “ 奇异水 ” 或者 “ 特殊水
* 晶 ” 等
*
* === === === === === === === === === === === === === === === === === === === === === === === === === =
* Lunatic Mode - Custom Synthesis Effects
* === === === === === === === === === === === === === === === === === === === === === === === === === =
*
* For those with a JavaScript experience , you can use these notetags to make
* a custom effect that will occur when a specific item is synthesized . For
* example , when a Potion is made , you can give the player an empty bottle as a
* side product of the synthesis .
*
* -- -
*
* Item , Weapon , and Armor Notetags :
*
* < Custom Synthesis Effect >
* var bottle = $dataItems [ 123 ] ;
* $gameParty . gainItem ( bottle , 2 ) ;
* < / C u s t o m S y n t h e s i s E f f e c t >
*
* For this notetag , the 'item' variable will refer to the item being
* synthesized . Changing it will do nothing but it will be used as a
* convenience variable to refer to it .
*
* -- -
*
* === === === === === === === === === === === === === === === === === === === === === === === === === =
* Plugin Commands
* === === === === === === === === === === === === === === === === === === === === === === === === === =
*
* 下面的插件命令可以使用在事件里面
*
* Plugin Command :
* OpenSynthesis 打开合成界面
* ShowSynthesis 主菜单显示合成命令
* HideSynthesis 主菜单隐藏合成命令
* EnableSynthesis 开启主菜单合成命令
* DisableSynthesis 关闭主菜单合成命令
*
* For those who wish to make the player synthesize only specific recipes , you
* can use the following command .
*
* OpenSynthesis Item 15 Recipe
* - or -
* OpenSynthesis Weapon 20 Recipe
* - or -
* OpenSynthesis Armor 30 Recipe
*
* This will make the synthesis menu , when opened up , only allow the recipes of
* the Item 15 , Weapon 20 , or Armor 30 without needing it and not showing the
* recipes of any recipe items within the player ' s inventory .
*
* === === === === === === === === === === === === === === === === === === === === === === === === === =
* Changelog
* === === === === === === === === === === === === === === === === === === === === === === === === === =
*
* Version 1.08 :
* - Lunatic Mode fail safes added .
*
* Version 1.07 :
* - Added < Custom Synthesis Effect > Lunatic Mode notetag .
*
* Version 1.06 :
* - Fixed an error with the calculation of total recipes .
*
* Version 1.05 :
* - Updated for RPG Maker MV version 1.1 . 0.
*
* Version 1.04 :
* - Added failsafes to prevent crashes from saved games that did not have this
* plugin already installed .
*
* Version 1.03 a :
* - Fixed a bug that caused a crash for OpenSynthesis recipe commands .
* - Fixed an issue with recipe counts not appearing right .
*
* Version 1.02 :
* - Added 'Equipped Recipes' plugin parameter . If enabled , this will allow the
* Item Synthesis menu to check your party ' s equipment to see if any of them
* are recipe holders .
*
* Version 1.01 :
* - Fixed a bug with the synthesis gold costs taking more than they should .
* - Extended the OpenSynthesis plugin command . If you add Item , Weapon , or
* Armor after the command along with an ID , the synthesis menu will only show
* the items listed on the recipe for Item x , Weapon x , or Armor x .
*
* Version 1.00 :
* - Finished Plugin !
* /
/ * :
* @ plugindesc v1 . 11 Players can now craft their own items in - game
* through an item synthesis system .
* @ author Yanfly Engine Plugins
*
* @ param -- - General -- -
* @ default
*
* @ param Synthesis Command
* @ parent -- - General -- -
* @ desc This is the text used for going to the item synthesis menu .
* @ default Synthesis
*
* @ param Show Command
* @ parent -- - General -- -
* @ type boolean
* @ on Show
* @ off Hide
* @ desc Show the Synthesis command in the main menu by default ?
* NO - false YES - true
* @ default true
*
* @ param Enable Command
* @ parent -- - General -- -
* @ type boolean
* @ on Enable
* @ off Disable
* @ desc Enable the Synthesis command in the main menu by default ?
* NO - false YES - true
* @ default true
*
* @ param Auto Place Command
* @ parent -- - General -- -
* @ type boolean
* @ on YES
* @ off NO
* @ desc Allow this plugin to decide the menu placement position ?
* NO - false YES - true
* @ default true
*
* @ param -- - Command Window -- -
* @ default
*
* @ param Item Command
* @ parent -- - Command Window -- -
* @ desc The command text used for synthesizing items .
* @ default Craft Item
*
* @ param Weapon Command
* @ parent -- - Command Window -- -
* @ desc The command text used for synthesizing weapons .
* @ default Craft Weapon
*
* @ param Armor Command
* @ parent -- - Command Window -- -
* @ desc The command text used for synthesizing armors .
* @ default Craft Armor
*
* @ param Finish Command
* @ parent -- - Command Window -- -
* @ desc The command text used for exiting the synthesis scene .
* @ default Finish
*
* @ param Text Alignment
* @ parent -- - Command Window -- -
* @ type combo
* @ option left
* @ option center
* @ option right
* @ desc How to align the text for the command window .
* left center right
* @ default center
*
* @ param -- - Status Window -- -
* @ default
*
* @ param Collected Recipes
* @ parent -- - Status Window -- -
* @ desc Text used to represent total recipes collected .
* Leave this blank if you don ' t wish to show this .
* @ default Collected Recipes
*
* @ param Crafted Items
* @ parent -- - Status Window -- -
* @ desc Text used to represent total items crafted .
* Leave this blank if you don ' t wish to show this .
* @ default Crafted Items
*
* @ param Crafted Weapons
* @ parent -- - Status Window -- -
* @ desc Text used to represent total weapons crafted .
* Leave this blank if you don ' t wish to show this .
* @ default Crafted Weapons
*
* @ param Crafted Armors
* @ parent -- - Status Window -- -
* @ desc Text used to represent total armors crafted .
* Leave this blank if you don ' t wish to show this .
* @ default Crafted Armors
*
* @ param -- - List Window -- -
* @ default
*
* @ param Equipped Recipes
* @ parent -- - List Window -- -
* @ type boolean
* @ on YES
* @ off NO
* @ desc Check recipes from equipped items ?
* NO - false YES - true
* @ default true
*
* @ param Mask Unknown
* @ parent -- - List Window -- -
* @ type boolean
* @ on YES
* @ off NO
* @ desc Mask the names of items that haven ' t been created yet ?
* NO - false YES - true
* @ default true
*
* @ param Mask Text
* @ parent -- - List Window -- -
* @ desc This will be used to mask over each letter for unknown item
* names that are to be synthesized .
* @ default ?
*
* @ param Mask Italic
* @ parent -- - List Window -- -
* @ type boolean
* @ on YES
* @ off NO
* @ desc Causes the name for unknown items to appear in italic .
* @ default true
*
* @ param Mask Help Text
* @ parent -- - List Window -- -
* @ desc This is the text that will be displayed in the help window
* if the item is masked .
* @ default This item has not been synthesized yet .
*
* @ param Ingredients Text
* @ parent -- - List Window -- -
* @ desc This is the text used to describe the Ingredients list .
* @ default Ingredients
*
* @ param Amount Text
* @ parent -- - List Window -- -
* @ desc This is the text used for the amount to synthesize .
* @ default Quantity
*
* @ param Amount Format
* @ parent -- - List Window -- -
* @ type boolean
* @ on Need / Own
* @ off Own / Need
* @ desc Show the number of ingredients needed over owned ?
* true - Need / Own false - Own / Need
* @ default false
*
* @ param Quantity Text Size
* @ parent -- - List Window -- -
* @ type number
* @ min 1
* @ desc This is the text size used for the item quantity .
* Default : 28
* @ default 20
*
* @ param -- - Sound -- -
* @ default
*
* @ param Default SE
* @ parent -- - Sound -- -
* @ type file
* @ dir audio / se /
* @ require 1
* @ desc This is the default SE played when synthesizing an item .
* This is case sensitive . Do not include the extension .
* @ default Twine
*
* @ param Default Volume
* @ parent -- - Sound -- -
* @ type number
* @ min 0
* @ desc This is the default volume when synthesizing an item .
* @ default 100
*
* @ param Default Pitch
* @ parent -- - Sound -- -
* @ type number
* @ desc This is the default pitch when synthesizing an item .
* @ default 100
*
* @ param Default Pan
* @ parent -- - Sound -- -
* @ type number
* @ desc This is the default pan when synthesizing an item .
* @ default 0
*
* @ help
* === === === === === === === === === === === === === === === === === === === === === === === === === =
* Introduction
* === === === === === === === === === === === === === === === === === === === === === === === === === =
*
* Item synthesis is now a pretty common aspect of most RPG ' s where the player
* can craft their own items after acquiring recipes . This plugin enables your
* players to be able to do that after acquiring the said recipes . Recipes can
* come in the form of items , weapons , and / or armors and transcribed in them
* are what items , weapons , and / or armors they can make . These items can be
* made from the main menu and / or synthesis locations !
*
* === === === === === === === === === === === === === === === === === === === === === === === === === =
* Notetags
* === === === === === === === === === === === === === === === === === === === === === === === === === =
*
* To allow the player the ability to craft a certain item , that item must be
* included in a recipe notetag in an item that the player possesses .
*
* Item , Weapon , and Armor Notetags :
* < Item Recipe : x >
* < Item Recipe : x , x , x >
* < Item Recipe : x to y >
* This will change this item into a recipe for x item ( s ) . As long as this
* item is in possession by the party as a whole , item ( s ) x can be
* synthesized by the player provided that the player has the proper quantity
* of ingredients .
* * Note : Entries without names will not be included . Entries without both a
* synthesis cost and without an ingredient list will not be included .
*
* < Weapon Recipe : x >
* < Weapon Recipe : x , x , x >
* < Weapon Recipe : x to y >
* This will change this item into a recipe for x weapon ( s ) . As long as this
* item is in possession by the party as a whole , weapon ( s ) x can be
* synthesized by the player provided that the player has the proper quantity
* of ingredients .
* * Note : Entries without names will not be included . Entries without both a
* synthesis cost and without an ingredient list will not be included .
*
* < Armor Recipe : x >
* < Armor Recipe : x , x , x >
* < Armor Recipe : x to y >
* This will change this item into a recipe for x armor ( s ) . As long as this
* item is in possession by the party as a whole , armor ( s ) x can be
* synthesized by the player provided that the player has the proper quantity
* of ingredients .
* * Note : Entries without names will not be included . Entries without both a
* synthesis cost and without an ingredient list will not be included .
*
* < Synthesis Ingredients >
* item id
* item id : x
* weapon id
* weapon id : x
* armor id
* armor id : x
* gold : x
* named item
* named item : x
* < / S y n t h e s i s I n g r e d i e n t s >
* Using the above tag in an item will set those items as the ingredients
* required for the player to synthesize . Replace "id" with the proper item ,
* weapon , or armor ID ' s . If no ":x" is used , the database will register that
* as only needing 1 of that item as an ingredient . If "gold: x" is used ,
* that will be the cost required to synthesize the item .
*
* If you are using named entries , priority will be given to the highest ID
* in the order of items , weapons , then armors .
*
* * Note : If you are using Item Core , Independent Items cannot become an
* ingredient for a recipe and will therefore be automatically omitted .
*
* < Mask Name : x >
* If you are masking unknown items ' names , you can change the text shown for
* the unknown item with x . This will cause the game to use the mask name
* instead of the usual ? ? ? ( if that 's what you' re using ) to mask the item .
* This can give a player a general idea of what they may be synthesizing
* such as "Strange Liquid" or "Weird Crystal" .
*
* === === === === === === === === === === === === === === === === === === === === === === === === === =
* Lunatic Mode - Custom Synthesis Effects
* === === === === === === === === === === === === === === === === === === === === === === === === === =
*
* For those with a JavaScript experience , you can use these notetags to make
* a custom effect that will occur when a specific item is synthesized . For
* example , when a Potion is made , you can give the player an empty bottle as a
* side product of the synthesis .
*
* -- -
*
* Item , Weapon , and Armor Notetags :
*
* < Custom Synthesis Effect >
* var bottle = $dataItems [ 123 ] ;
* $gameParty . gainItem ( bottle , 2 ) ;
* < / C u s t o m S y n t h e s i s E f f e c t >
*
* For this notetag , the 'item' variable will refer to the item being
* synthesized . Changing it will do nothing but it will be used as a
* convenience variable to refer to it .
*
* -- -
*
* === === === === === === === === === === === === === === === === === === === === === === === === === =
* Plugin Commands
* === === === === === === === === === === === === === === === === === === === === === === === === === =
*
* The following are Plugin Commands you may use with events .
*
* Plugin Command :
* OpenSynthesis Opens up the Synthesis Scene from the field .
* ShowSynthesis Shows the Synthesis command from the main menu .
* HideSynthesis Hides the Synthesis command from the main menu .
* EnableSynthesis Enables the Synthesis command from the main menu .
* DisableSynthesis Disables the Synthesis command from the main menu .
*
* For those who wish to make the player synthesize only specific recipes , you
* can use the following command .
*
* OpenSynthesis Item 15 Recipe
* - or -
* OpenSynthesis Weapon 20 Recipe
* - or -
* OpenSynthesis Armor 30 Recipe
*
* This will make the synthesis menu , when opened up , only allow the recipes of
* the Item 15 , Weapon 20 , or Armor 30 without needing it and not showing the
* recipes of any recipe items within the player ' s inventory .
*
* === === === === === === === === === === === === === === === === === === === === === === === === === =
* Changelog
* === === === === === === === === === === === === === === === === === === === === === === === === === =
*
* Version 1.11 :
* - Bypass the isDevToolsOpen ( ) error when bad code is inserted into a script
* call or custom Lunatic Mode code segment due to updating to MV 1.6 . 1.
*
* Version 1.10 :
* - Added 'Amount Format' plugin parameter . Now you can switch the way the
* needed ingredients are shown between Need / Own and Own / Need .
*
* Version 1.09 :
* - Updated for RPG Maker MV version 1.5 . 0.
*
* Version 1.08 :
* - Lunatic Mode fail safes added .
*
* Version 1.07 :
* - Added < Custom Synthesis Effect > Lunatic Mode notetag .
*
* Version 1.06 :
* - Fixed an error with the calculation of total recipes .
*
* Version 1.05 :
* - Updated for RPG Maker MV version 1.1 . 0.
*
* Version 1.04 :
* - Added failsafes to prevent crashes from saved games that did not have this
* plugin already installed .
*
* Version 1.03 a :
* - Fixed a bug that caused a crash for OpenSynthesis recipe commands .
* - Fixed an issue with recipe counts not appearing right .
*
* Version 1.02 :
* - Added 'Equipped Recipes' plugin parameter . If enabled , this will allow the
* Item Synthesis menu to check your party ' s equipment to see if any of them
* are recipe holders .
*
* Version 1.01 :
* - Fixed a bug with the synthesis gold costs taking more than they should .
* - Extended the OpenSynthesis plugin command . If you add Item , Weapon , or
* Armor after the command along with an ID , the synthesis menu will only show
* the items listed on the recipe for Item x , Weapon x , or Armor x .
*
* Version 1.00 :
* - Finished Plugin !
* /
//=============================================================================
//=============================================================================
@ -354,6 +424,7 @@ Yanfly.Param.ISMaskItalic = eval(Yanfly.Param.ISMaskItalic);
Yanfly . Param . ISMaskHelpText = String ( Yanfly . Parameters [ 'Mask Help Text' ] ) ;
Yanfly . Param . ISIngredientsList = String ( Yanfly . Parameters [ 'Ingredients Text' ] ) ;
Yanfly . Param . ISAmountText = String ( Yanfly . Parameters [ 'Amount Text' ] ) ;
Yanfly . Param . ISAmountFmt = eval ( Yanfly . Parameters [ 'Amount Format' ] || 'false' ) ;
Yanfly . Param . ISQuantitySize = Number ( Yanfly . Parameters [ 'Quantity Text Size' ] ) ;
Yanfly . Param . ISDefSEName = String ( Yanfly . Parameters [ 'Default SE' ] ) ;
@ -1116,7 +1187,12 @@ Window_SynthesisIngredients.prototype.drawItemDetails = function(index, wy) {
if ( ! ingredient ) return wy ;
this . resetFontSettings ( ) ;
this . drawItemName . call ( this , ingredient , 0 , wy , ww ) ;
if ( Yanfly . Param . ISAmountFmt ) {
this . drawItemQuantity ( index , wy ) ;
} else {
this . drawItemQuantity2 ( index , wy ) ;
}
return wy + this . lineHeight ( ) ;
} ;
@ -1138,6 +1214,25 @@ Window_SynthesisIngredients.prototype.drawItemQuantity = function(index, wy) {
this . drawText ( text , 0 , wy , ww , 'right' ) ;
}
Window _SynthesisIngredients . prototype . drawItemQuantity2 = function ( index , wy ) {
var ingredient = DataManager . getSynthesisIngredient ( this . _item , index ) ;
var quantity = DataManager . getSynthesisQuantity ( this . _item , index ) ;
var owned = $gameParty . numItems ( ingredient ) ;
var ww = this . contents . width ;
this . contents . fontSize = Yanfly . Param . ISQuantitySize ;
this . changeTextColor ( this . normalColor ( ) ) ;
var num = '/' + Yanfly . Util . toGroup ( quantity ) ;
this . drawText ( num , 0 , wy , ww , 'right' ) ;
ww -= this . textWidth ( num ) ;
if ( $gameParty . numItems ( ingredient ) >= quantity ) {
this . changeTextColor ( this . powerUpColor ( ) ) ;
} else {
this . changeTextColor ( this . powerDownColor ( ) ) ;
}
var text = String ( Yanfly . Util . toGroup ( owned ) ) ;
this . drawText ( text , 0 , wy , ww , 'right' ) ;
}
Window _SynthesisIngredients . prototype . drawItemSynthCost = function ( item , wy ) {
if ( item . synthCost <= 0 ) return ;
this . resetFontSettings ( ) ;
@ -1743,6 +1838,7 @@ Yanfly.Util.displayError = function(e, code, message) {
console . log ( message ) ;
console . log ( code || 'NON-EXISTENT' ) ;
console . error ( e ) ;
if ( Utils . RPGMAKER _VERSION && Utils . RPGMAKER _VERSION >= "1.6.0" ) return ;
if ( Utils . isNwjs ( ) && Utils . isOptionValid ( 'test' ) ) {
if ( ! require ( 'nw.gui' ) . Window . get ( ) . isDevToolsOpen ( ) ) {
require ( 'nw.gui' ) . Window . get ( ) . showDevTools ( ) ;