Loading

N_RemoveRegularSkillLearn

  1. /*:
  2.  * @plugindesc v1.0 (Requires YEP_JobPoints, FoxJPLevels) Don't learn skills by level
  3.  * @author ThinkNathan
  4.  
  5.  * @help Overwrites the default methods so they don't
  6.  * give you skills based on regular level up.
  7.  
  8.  * Requires YEP_JobPoints, FoxJPLevels
  9.  * Put this plugin ABOVE all other plugins
  10.  
  11.  */
  12.  
  13. // Nukes the default way skills are learned
  14. Game_Actor.prototype.levelUp = function() {
  15.     this._level++;
  16. };
  17.  
  18. // Changes default skillset to be based on job level
  19. Game_Actor.prototype.initSkills = function() {
  20.     if (!Fox.JPLevels) return;
  21.     this._skills = [];
  22.     this.currentClass().learnings.forEach(function(learning) {
  23.         if (this.jpLevel(this._classId) >= learning.level) {
  24.             this.learnSkill(learning.skillId);
  25.         }
  26.     }, this);
  27. };