I tried editing FTKR Display Regenerate Message to add sound effects to the notification, but after inserting the snippet the battle log no longer shows.
I tried inserting it right after
Additionally, how do you disable regeneration due to map steps for armor/weapons with the HP Regeneration EX-Parameter? I only noticed it after adding sound effects, but it's not the intended behavior.
I tried inserting it right after
this.gainHp(value); and at the very end of Game_Battler.prototype.regenerateHp but it had the same effect; The correct sound effects play, but the battlelog no longer appears when they do.
Code:
Game_Battler.prototype.regenerateHp = function() {
var value = Math.floor(this.mhp * this.hrg);
value = Math.max(value, -this.maxSlipDamage());
if (value !== 0) {
this.gainHp(value);
// rethy edit
if (value > 0) {
SoundManager.playRecovery();
}
else {
AudioManager.playSe({
name: 'Poison',
volume: 30,
pitch: 100,
pan: 0});
SoundManager.playActorDamage();
}
var message = value > 0 ? FTKR.DRM.message.hpPlus : FTKR.DRM.message.hpMinus;
this.setupBattleLogMessage(value, message, TextManager.hp);
}
};
Code:
Game_Battler.prototype.regenerateHp = function() {
var value = Math.floor(this.mhp * this.hrg);
value = Math.max(value, -this.maxSlipDamage());
if (value !== 0) {
this.gainHp(value);
var message = value > 0 ? FTKR.DRM.message.hpPlus : FTKR.DRM.message.hpMinus;
this.setupBattleLogMessage(value, message, TextManager.hp);
// rethy edit
if (value > 0) {
SoundManager.playRecovery();
}
else {
AudioManager.playSe({
name: 'Poison',
volume: 30,
pitch: 100,
pan: 0});
SoundManager.playActorDamage();
}
}
};
Additionally, how do you disable regeneration due to map steps for armor/weapons with the HP Regeneration EX-Parameter? I only noticed it after adding sound effects, but it's not the intended behavior.