-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathMoogle_X_EQS_SkillLearnPatch.js
48 lines (42 loc) · 1.84 KB
/
Moogle_X_EQS_SkillLearnPatch.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
48
//=============================================================================
// Equip Skill System - YEP_SkillLearnSystem Patch by Moogle_X
// Moogle_X_EQS_SkillLearnPatch.js
// Created on: December 11st 2015
//=============================================================================
//=============================================================================
/*:
* @plugindesc v1.0 Compatibility patch between EQS and YEP_SkillLearnSystem.
* @author Moogle_X
*
* @help
* ============================================================================
* Introduction
* ============================================================================
* Use this compatibility patch if you use both Moogle_X_EquipSkillSystem and
* YEP_SkillLearnSystem together in the same project.
*
* It's simply fix a minor visual bug (Skill Pool window doesn't get refresh
* immediately after you learn new skill).
*
* Position this plugin below both Moogle_X_EquipSkillSystem plugin and
* YEP_SkillLearnSystem plugin.
*
*/
//=============================================================================
(function() { // IIFE
//=============================================================================
// Scene_Skill
//=============================================================================
// Compatibility fpr YEP_SkillLearnSystem. Simply refresh the skill pool window
// after learning new skill.
if (Imported.YEP_SkillLearnSystem && Imported.Moogle_X_EQS) {
Moogle_X.EQS.Scene_Skill_onLearnOk = Scene_Skill.prototype.onLearnOk;
Scene_Skill.prototype.onLearnOk = function() {
Moogle_X.EQS.Scene_Skill_onLearnOk.call(this);
this._eqsPoolWindow.refresh();
};
}
})(); // IIFE
//=============================================================================
// End of File
//=============================================================================