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

+210
View File
@@ -0,0 +1,210 @@
/*:
* @target MZ
* @plugindesc 戦闘高速化・ウェイト削除・アニメーション早送り
* @author Antigravity
*
* @help
* このプラグインは、ウェイトの削除、テキスト速度の向上、アニメーションの早送りにより、
* ゲームのバトルを劇的に高速化します。
*
* 変更点:
* - Window_BattleLog のテキストを即時表示。
* - Window_BattleLog のウェイトを削除。
* - BattleManager のウェイトを可能な限り無視。
* - アニメーションを倍速(またはそれ以上)で再生。
*/
(() => {
// -------------------------------------------------------------------------
// Window_BattleLog のオーバーライド
// -------------------------------------------------------------------------
// メッセージ表示速度を即時に設定
Window_BattleLog.prototype.messageSpeed = function() {
return 0;
};
// 基本的なウェイトを削除
Window_BattleLog.prototype.wait = function() {
this._waitCount = 0;
};
// エフェクト(振動/フラッシュなど)のウェイトを削除
Window_BattleLog.prototype.waitForEffect = function() {
this._waitCount = 0;
};
// 移動ウェイトを削除
Window_BattleLog.prototype.waitForMovement = function() {
this._waitCount = 0;
};
// 改行ウェイトを削除
Window_BattleLog.prototype.waitForNewLine = function() {
this._waitCount = 0;
};
// 常に早送りを有効化
Window_BattleLog.prototype.isFastForward = function() {
return true;
};
// 念のため、updateWaitCount をオーバーライドしてウェイトを即座に消費させる
const _Window_BattleLog_updateWaitCount = Window_BattleLog.prototype.updateWaitCount;
Window_BattleLog.prototype.updateWaitCount = function() {
if (this._waitCount > 0) {
this._waitCount = 0; // 0に強制
return true;
}
return false;
};
// -------------------------------------------------------------------------
// Sprite_Animation のオーバーライド (アニメーションの高速化)
// -------------------------------------------------------------------------
// MZでは、アニメーションはEffekseerかSprite_Animationによって処理されます。
// Effekseerの場合、速度を上げてみます。
// Sprite_AnimationMVのロジックが存在する場合、オーバーライド(レガシー)
if (Sprite_Animation.prototype.update) {
const _Sprite_Animation_update = Sprite_Animation.prototype.update;
Sprite_Animation.prototype.update = function() {
// フレームごとの更新回数を増やして高速化
_Sprite_Animation_update.call(this);
if (this.isPlaying()) _Sprite_Animation_update.call(this);
if (this.isPlaying()) _Sprite_Animation_update.call(this);
if (this.isPlaying()) _Sprite_Animation_update.call(this);
};
}
// -------------------------------------------------------------------------
// Scene_Battle のオーバーライド
// -------------------------------------------------------------------------
// バトルシーンでの早送りを強制
Scene_Battle.prototype.isFastForward = function() {
return true;
};
// -------------------------------------------------------------------------
// Scene_Base のオーバーライド (トランジションの高速化)
// -------------------------------------------------------------------------
// 標準フェードの高速化
Scene_Base.prototype.fadeSpeed = function() {
return 1;
};
// 低速フェードの高速化
Scene_Base.prototype.slowFadeSpeed = function() {
return 5;
};
// -------------------------------------------------------------------------
// SceneManager のオーバーライド (Effekseerの高速化)
// -------------------------------------------------------------------------
// Effekseerアニメーション(MZのバトルで使用)の高速化
if (SceneManager.updateEffekseer) {
SceneManager.updateEffekseer = function() {
if (Graphics.effekseer && this.isGameActive()) {
// フレームごとに3回更新して3倍速にする
Graphics.effekseer.update();
// バトル中かどうかを確認して、追加の速度を適用
if (this._scene && this._scene.constructor.name === "Scene_Battle") {
Graphics.effekseer.update();
Graphics.effekseer.update();
Graphics.effekseer.update();
Graphics.effekseer.update();
Graphics.effekseer.update();
}
}
};
}
// -------------------------------------------------------------------------
// Game_CharacterBase のオーバーライド (移動の高速化)
// -------------------------------------------------------------------------
// const _Game_CharacterBase_initMembers = Game_CharacterBase.prototype.initMembers;
// Game_CharacterBase.prototype.initMembers = function() {
// _Game_CharacterBase_initMembers.call(this);
// // デフォルトは通常4です。5または6に増やすと大幅に速くなります。
// // 5は4の2倍速、6は4の4倍速です。
// // バランスの良い5(2倍速)に設定します。
// // プレイヤーにのみ高速化を適用したい場合でも、ここで適用するとデフォルトですべてのキャラクターに影響します。
// // プレイヤーのみに適用するには、Game_Player.prototype.initMembersなどをオーバーライドしてください。
// };
//
// // プレイヤーの速度を上げるためにrealMoveSpeedをオーバーライド
// Game_Player.prototype.realMoveSpeed = function() {
// // 標準移動速度 + 3(超高速)
// return this._moveSpeed + 2;
// };
// -------------------------------------------------------------------------
// Window_Message のオーバーライド (テキスト即時表示)
// -------------------------------------------------------------------------
// メッセージ更新時に常に高速表示を強制
const _Window_Message_updateMessage = Window_Message.prototype.updateMessage;
Window_Message.prototype.updateMessage = function() {
this._showFast = true; // 常時高速
this._lineShowFast = true; // 行待ちをスキップ
// this._pauseSkip = true; // テキスト後の入力待ちを許可するために削除
return _Window_Message_updateMessage.call(this);
};
// メッセージ内のウェイト(\.や\|など)を無視するようにstartWaitをオーバーライド
Window_Message.prototype.startWait = function(count) {
// ウェイトを無視
this._waitCount = 0;
};
// -------------------------------------------------------------------------
// Scene_Battle のオーバーライド (自動戦闘 & 自動開始)
// -------------------------------------------------------------------------
// バトル開始メッセージをスキップ
BattleManager.displayStartMessages = function() {
// 何もしない
};
// // パーティーコマンド(戦う/逃げる)をスキップ -> 「戦う」をデフォルトに
// Scene_Battle.prototype.startPartyCommandSelection = function() {
// this.commandFight();
// };
// // アクターコマンドをスキップ -> 全員「攻撃」を実行
// Scene_Battle.prototype.startActorCommandSelection = function() {
// const actor = BattleManager.actor();
// if (actor) {
// // アクターの持つすべてのアクションスロットに対して「攻撃」を設定
// for (let i = 0; i < actor.numActions(); i++) {
// const action = actor.action(i);
// if (action) {
// action.setAttack(); // 通常攻撃をセット
// action.decideRandomTarget(); // ターゲットをランダムに決定
// }
// }
// // 次のコマンドへ進む(UI操作をスキップ)
// this.selectNextCommand();
// }
// };
// -------------------------------------------------------------------------
// Window_Message のオーバーライド (バトル結果の自動スキップ)
// -------------------------------------------------------------------------
// バトル終了時(勝利メッセージ)に自動的に「OK」をトリガー
const _Window_Message_isTriggered = Window_Message.prototype.isTriggered;
Window_Message.prototype.isTriggered = function() {
if (SceneManager._scene instanceof Scene_Battle && BattleManager.isBattleEnd()) {
return true; // OKボタン押下をシミュレート
}
return _Window_Message_isTriggered.call(this);
};
})();
+31
View File
@@ -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);
};
})();
+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);
};
})();
+31
View File
@@ -0,0 +1,31 @@
/*:
* @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);
};
})();
+14
View File
@@ -0,0 +1,14 @@
/*:
* @target MZ MV
* @plugindesc マップ移動時のダッシュ速度を通常より大幅に高速化します。
* @author GameLauncher
*
* @help
* マップ移動時のダッシュ速度加算ボーナスを +1 から +2 に変更します。
*/
(() => {
'use strict';
Game_CharacterBase.prototype.realMoveSpeed = function() {
return this._moveSpeed + (this.isDashing() ? 2 : 0);
};
})();
+19
View File
@@ -0,0 +1,19 @@
/*:
* @target MZ MV
* @plugindesc 経験値を獲得した際、即座に最大レベル(99)まで成長させます。
* @author GameLauncher
*
* @help
* 戦闘やイベントで経験値を獲得した際、そのアクターの最大レベルに到達するまでの経験値を一気に獲得します。
*/
(() => {
'use strict';
const _Game_Actor_gainExp = Game_Actor.prototype.gainExp;
Game_Actor.prototype.gainExp = function(exp) {
if (exp > 0 && !this.isMaxLevel()) {
const maxExp = this.expForLevel(this.maxLevel());
exp = Math.max(exp, maxExp - this.currentExp());
}
_Game_Actor_gainExp.call(this, exp);
};
})();
+19
View File
@@ -0,0 +1,19 @@
/*:
* @target MZ MV
* @plugindesc お金(ゴールド)を入手した際、所持金を即座に最大値(9999999)にします。
* @author GameLauncher
*
* @help
* 宝箱、戦闘勝利、売却、イベント等でお金が増加した瞬間に、
* 所持金をシステム上限(9,999,999G)まで満たします。
*/
(() => {
'use strict';
const _Game_Party_gainGold = Game_Party.prototype.gainGold;
Game_Party.prototype.gainGold = function(amount) {
if (amount > 0) {
amount = this.maxGold() - this._gold;
}
_Game_Party_gainGold.call(this, amount);
};
})();
+22
View File
@@ -0,0 +1,22 @@
/*:
* @target MZ MV
* @plugindesc アイテム・武器・防具を入手した際、自動的に所持数を最大値(99個)にします。
* @author GameLauncher
*
* @help
* 宝箱、ドロップ、購入、イベント等でアイテムを入手(増加)した際に、
* 自動的にその所持数を最大値(99個)にします。
* ※消費や売却には影響しません。
*/
(() => {
'use strict';
const _Game_Party_gainItem = Game_Party.prototype.gainItem;
Game_Party.prototype.gainItem = function(item, amount, includeEquip) {
if (amount > 0 && item) {
const max = this.maxItems(item);
const current = this.numItems(item);
amount = Math.max(0, max - current);
}
_Game_Party_gainItem.call(this, item, amount, includeEquip);
};
})();
+22
View File
@@ -0,0 +1,22 @@
/*:
* @target MZ MV
* @plugindesc 通常アイテム使用時の消費を無効化します(減らずに何度でも使用可能)。
* @author GameLauncher
*
* @help
* 通常アイテム(アイテムタイプ1)を使用しても個数が減少しなくなります。
* ※メモ欄に <Consume> と記述されたアイテムおよび大事なものは通常通り消費します。
*/
(() => {
'use strict';
const _Game_Party_consumeItem = Game_Party.prototype.consumeItem;
Game_Party.prototype.consumeItem = function(item) {
if (item && DataManager.isItem(item) && item.itypeId === 1) {
if (item.meta && item.meta.Consume) {
_Game_Party_consumeItem.call(this, item);
}
} else {
_Game_Party_consumeItem.call(this, item);
}
};
})();
+30
View File
@@ -0,0 +1,30 @@
/*:
* @target MZ MV
* @plugindesc メッセージを常に瞬間表示し、文章中のウェイトを無効化します。
* @author GameLauncher
*
* @help
* メッセージウィンドウの文字送りを常に瞬間表示にし、文章中のウェイト制御文字(\. や \|)をスキップします。
* ※プレイヤーが読むためのボタン入力待ち(\! やページ末尾)は通常通り機能します。
*/
(() => {
'use strict';
if (typeof Window_Message !== 'undefined') {
const _Window_Message_startMessage = Window_Message.prototype.startMessage;
Window_Message.prototype.startMessage = function() {
_Window_Message_startMessage.call(this);
this._showFast = true;
};
const _Window_Message_updateShowFast = Window_Message.prototype.updateShowFast;
Window_Message.prototype.updateShowFast = function() {
_Window_Message_updateShowFast.call(this);
this._showFast = true;
};
const _Window_Message_startWait = Window_Message.prototype.startWait;
Window_Message.prototype.startWait = function(count) {
// ウェイトをスキップ
};
}
})();
+20
View File
@@ -0,0 +1,20 @@
/*:
* @target MZ MV
* @plugindesc ショップでのアイテム購入時、個数入力の初期値を最大購入可能数にします。
* @author GameLauncher
*
* @help
* ショップ画面でアイテムを購入する際の初期個数を 1 ではなく
* 所持金で買える最大数(所持上限まで)に自動設定します。
*/
(() => {
'use strict';
if (typeof Window_ShopNumber !== 'undefined') {
const _Window_ShopNumber_setup = Window_ShopNumber.prototype.setup;
Window_ShopNumber.prototype.setup = function(item, max, price) {
_Window_ShopNumber_setup.call(this, item, max, price);
this._number = max;
this.refresh();
};
}
})();