-
Notifications
You must be signed in to change notification settings - Fork 67
/
Copy pathMrTS_HideQuantities.js
38 lines (36 loc) · 1.62 KB
/
MrTS_HideQuantities.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
//=============================================================================
// MrTS_HideQuantities.js
//=============================================================================
/*:
* @plugindesc Allows to hide item quantities of specific items.
* @author Mr. Trivel
*
* @help
* --------------------------------------------------------------------------------
* Terms of Use
* --------------------------------------------------------------------------------
* Don't remove the header or claim that you wrote this plugin.
* Credit Mr. Trivel if using this plugin in your project.
* Free for commercial and non-commercial projects.
* --------------------------------------------------------------------------------
* Version 1.0
* --------------------------------------------------------------------------------
*
* --------------------------------------------------------------------------------
* Item/Armor/Weapon Tag
* --------------------------------------------------------------------------------
* Add tag <noq> to note fields of items which should not display their quantity.
* --------------------------------------------------------------------------------
*
* --------------------------------------------------------------------------------
* Version History
* --------------------------------------------------------------------------------
* 1.0 - Release
*/
(function() {
var _Window_ItemList_drawItemNumber = Window_ItemList.prototype.drawItemNumber;
Window_ItemList.prototype.drawItemNumber = function(item, x, y, width) {
if (item.meta.noq) return;
_Window_ItemList_drawItemNumber.call(this, item, x, y, width);
};
})();