Advertisement
Maliki79

Mal_YF_ItemCore_Note_Fix

Mar 11th, 2016
464
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //=============================================================================
  2. // Maliki's fix of YanFly's ItemCore (as of ver 1.11)
  3. // Mal_YF_ItemCore_Note_Fix.js
  4. // version 1.0
  5. //=============================================================================
  6. /*:
  7.  * @plugindesc Fix for projects having issues using FanFly's ItemCore Plugin.  This plugin should allow other plugins that utilize note data from items to function properly.
  8.  *
  9.  *
  10.  * @author Maliki79
  11.  *
  12.  * @help
  13.  * Just place this plugin in your plugin manager making sure it is under YF's ItemCore plugin.
  14.  * Working as of version 1.11
  15.  */
  16.  
  17.  var MalsetNewIndependentItem = ItemManager.setNewIndependentItem
  18. ItemManager.setNewIndependentItem = function(baseItem, newItem) {
  19.     newItem.baseItemId = baseItem.id;
  20.     newItem.baseItemName = baseItem.name;
  21.     newItem.baseItemPrice = baseItem.price;
  22.     newItem.baseItemIconIndex = baseItem.iconIndex;
  23.     newItem.namePrefix = '';
  24.     newItem.nameSuffix = '';
  25.     if (baseItem.setPriorityName) {
  26.       newItem.priorityName = baseItem.name;
  27.     } else {
  28.       newItem.priorityName = '';
  29.     }
  30.     newItem.boostCount = 0;
  31.     newItem.note = baseItem.note;
  32. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement