-
Notifications
You must be signed in to change notification settings - Fork 6
/
DreamX_HideSkillNameLog.js
47 lines (41 loc) · 1.6 KB
/
DreamX_HideSkillNameLog.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
39
40
41
42
43
44
45
46
47
/*:
* @plugindesc
*
* @param Show Skill Names In Log
* @desc Whether to show skill name in battle log Default: true
* @default true
*
* @author DreamX
* @help
* ============================================================================
* Skill Notetag
* ============================================================================
* Use <HideSkillNameLog> to hide skill name in battle log
* ============================================================================
* Terms Of Use
* ============================================================================
* Free to use and modify for commercial and noncommercial games, with credit.
* ============================================================================
* Credits
* ============================================================================
* DreamX
* Thank you to Yanfly for Battle Engine Core
*/
var Imported = Imported || {};
Imported.DreamX_HideSkillNameLog = true;
var DreamX = DreamX || {};
DreamX.HideSkillNameLog = DreamX.HideSkillNameLog || {};
(function () {
var parameters = PluginManager.parameters('DreamX_HideSkillNameLog');
var paramShowSkillName = eval(String(parameters['Show Skill Names In Log']));
DreamX.HideSkillNameLog.Window_BattleLog_displayAction = Window_BattleLog.prototype.displayAction;
Window_BattleLog.prototype.displayAction = function (subject, item) {
if (item.meta.HideSkillNameLog) {
return;
}
if (!paramShowSkillName) {
return;
}
DreamX.HideSkillNameLog.Window_BattleLog_displayAction.call(this, subject, item);
};
})();