Last active
November 4, 2017 07:46
-
-
Save triacontane/430796de4ed1aaa36f408467e2b11605 to your computer and use it in GitHub Desktop.
スキル習得時にMEを演奏
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function() { | |
'use strict'; | |
var _Game_Actor_initSkills = Game_Actor.prototype.initSkills; | |
Game_Actor.prototype.initSkills = function() { | |
this._initSkillsComplete = false; | |
_Game_Actor_initSkills.apply(this, arguments); | |
this._initSkillsComplete = true; | |
}; | |
var _Game_Actor_learnSkill = Game_Actor.prototype.learnSkill; | |
Game_Actor.prototype.learnSkill = function(skillId) { | |
if (this._initSkillsComplete && !this.isLearnedSkill(skillId)) { | |
var Me = { | |
"name": "Victory1", | |
"pan": 0, | |
"pitch": 100, | |
"volume": 80 | |
}; | |
AudioManager.playMe(Me); | |
} | |
_Game_Actor_learnSkill.apply(this, arguments); | |
}; | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment