Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //This plugin will remove Skill Types from all applicable menus when there are no available skills
- //in that category.
- var MalGame_BattlerBase_addedSkillTypes = Game_BattlerBase.prototype.addedSkillTypes;
- Game_BattlerBase.prototype.addedSkillTypes = function() {
- var skillT = MalGame_BattlerBase_addedSkillTypes.call(this);
- var skills = this._skills;
- var skillT2 = [];
- var newSkills = [];
- for (var i = 0; i < skills.length; i++) {
- var type = $dataSkills[skills[i]].stypeId;
- if (!skillT2.contains(type)) {
- skillT2.push(type);
- }
- };
- for (var i = 0; i < skillT.length; i++) {
- if (skillT2.contains(skillT[i])) {
- if (!newSkills.contains(skillT[i])) newSkills.push(skillT[i]);
- }
- };
- return newSkills;
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement