/*: * @target MZ MV * @plugindesc 戦闘ターン開始時およびコマンド選択時に味方全員のTPを全回復します。 * @author GameLauncher * * @help * 戦闘中、ターン開始時や行動決定時にパーティメンバー全員のTPを最大値まで回復します。 */ (() => { 'use strict'; const forceFullRecoverPartyTp = function() { if ($gameParty) { $gameParty.battleMembers().forEach(function(actor) { actor.setTp(actor.maxTp()); }); } }; const _BattleManager_startTurn = BattleManager.startTurn; BattleManager.startTurn = function() { forceFullRecoverPartyTp(); _BattleManager_startTurn.call(this); }; const _BattleManager_startInput = BattleManager.startInput; BattleManager.startInput = function() { forceFullRecoverPartyTp(); _BattleManager_startInput.call(this); }; })();