Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Game_Battler.prototype.regenerateHp = function() {
- var value = Math.floor(this.mhp * this.hrg);
- value = Math.max(value, -this.maxSlipDamage());
- if (!$gameParty.inBattle() && value < 0) value = 0;
- if (value !== 0) {
- this.gainHp(value);
- }
- };
- Game_Battler.prototype.regenerateMp = function() {
- var value = Math.floor(this.mmp * this.mrg);
- if (!$gameParty.inBattle() && value < 0) value = 0;
- if (value !== 0) {
- this.gainMp(value);
- }
- };
- Game_Battler.prototype.regenerateTp = function() {
- var value = Math.floor(100 * this.trg);
- if (!$gameParty.inBattle() && value < 0) value = 0;
- this.gainSilentTp(value);
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement