feat: 初回コミット (GameLauncher)

This commit is contained in:
armonica committed 2026-10-01 09:42:02 +09:00
commit 7ac4dbc825
45 files changed
+9779

No files matched your search

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