Advertisement
Maliki79

Mal_JobPoints_Ext_Update_ver111

Feb 8th, 2018
788
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var MalJpGain = Game_Actor.prototype.gainJp;
  2. Game_Actor.prototype.gainJp = function(value, classId) {
  3.         MalJpGain.call(this, value, classId);
  4.         var totalJp = this.jp(classId);
  5.         for (var i = 0; i < $dataClasses.length; i++) {
  6.             this.setJp(totalJp, i);
  7.         };
  8. };
  9.  
  10. var MalJpLose = Game_Actor.prototype.loseJp;
  11. Game_Actor.prototype.loseJp = function(value, classId) {
  12.     MalJpLose.call(this, value, classId);
  13.     var totalJp = this.jp(classId);
  14.     for (var i = 0; i < $dataClasses.length; i++) {
  15.         this.setJp(totalJp, i);
  16.     };
  17. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement