Advertisement
Maliki79

Mal_Remove_SlipHealing_Outside_of_Battle

Mar 23rd, 2020
439
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Game_Battler.prototype.regenerateHp = function() {
  2.     var value = Math.floor(this.mhp * this.hrg);
  3.     value = Math.max(value, -this.maxSlipDamage());
  4.     if (!$gameParty.inBattle() && value < 0) value = 0;
  5.     if (value !== 0) {
  6.         this.gainHp(value);
  7.     }
  8. };
  9.  
  10. Game_Battler.prototype.regenerateMp = function() {
  11.     var value = Math.floor(this.mmp * this.mrg);
  12.     if (!$gameParty.inBattle() && value < 0) value = 0;
  13.     if (value !== 0) {
  14.         this.gainMp(value);
  15.     }
  16. };
  17.  
  18. Game_Battler.prototype.regenerateTp = function() {
  19.     var value = Math.floor(100 * this.trg);
  20.     if (!$gameParty.inBattle() && value < 0) value = 0;
  21.     this.gainSilentTp(value);
  22. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement