feat: 初回コミット (GameLauncher)
This commit is contained in:
commit
7ac4dbc825
45 files changed
+9779
No files matched your search
@@ -0,0 +1,31 @@
|
||||
/*:
|
||||
* @target MZ MV
|
||||
* @plugindesc 戦闘ターン開始時およびコマンド選択時に味方全員のHPを全回復します。
|
||||
* @author GameLauncher
|
||||
*
|
||||
* @help
|
||||
* 戦闘中、ターン開始時や行動決定時にパーティメンバー全員のHPを最大値まで回復します。
|
||||
*/
|
||||
(() => {
|
||||
'use strict';
|
||||
const forceFullRecoverPartyHp = function() {
|
||||
if ($gameParty) {
|
||||
$gameParty.battleMembers().forEach(function(actor) {
|
||||
actor.setHp(actor.mhp);
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
const _BattleManager_startTurn = BattleManager.startTurn;
|
||||
BattleManager.startTurn = function() {
|
||||
forceFullRecoverPartyHp();
|
||||
_BattleManager_startTurn.call(this);
|
||||
};
|
||||
|
||||
const _BattleManager_startInput = BattleManager.startInput;
|
||||
BattleManager.startInput = function() {
|
||||
forceFullRecoverPartyHp();
|
||||
_BattleManager_startInput.call(this);
|
||||
};
|
||||
})();
|
||||
|
||||
Reference in new issue
Block a user