/*============================================================================= MoveRouteEndRapid.js ---------------------------------------------------------------------------- (C)2024 Triacontane This software is released under the MIT License. http://opensource.org/licenses/mit-license.php ---------------------------------------------------------------------------- Version 1.0.1 2024/08/09 移動ルートの最後の移動で移動開始時点で終了判定が出ていた問題を修正 1.0.0 2024/08/08 初版 ---------------------------------------------------------------------------- [Blog] : https://triacontane.blogspot.jp/ [Twitter]: https://twitter.com/triacontane/ [GitHub] : https://github.com/triacontane/ =============================================================================*/ /*: @target MZ @url https://github.com/triacontane/RPGMakerMV/tree/mz_master/MoveRouteEndRapid.js @plugindesc Wait skip plugin at the end of a moving route @author Triacontane @license MIT License @help English Help Translator: munokura This is an unofficial English translation of the plugin help, created to support global RPG Maker users. Feedback is welcome to improve translation quality (see: https://github.com/munokura/triacontane-MZ-plugins ). Original plugin by Triacontane. Please check the latest official version at: https://triacontane.blogspot.com ----- MoveRouteEndRapid.js When setting a movement route, this plugin skips the one-frame wait at the end of the route. When setting consecutive movement routes, this allows for a smooth transition to the next movement without waiting. Terms of Use: You may modify and redistribute this plugin without permission from the author, and there are no restrictions on its use (commercial, 18+, etc.). This plugin is now yours. */ /*:ja @plugindesc 移動ルート終了時のウェイトスキッププラグイン @target MZ @url https://github.com/triacontane/RPGMakerMV/tree/mz_master/MoveRouteEndRapid.js @author トリアコンタン @help MoveRouteEndRapid.js 移動ルート設定において、ルート終了時に1フレーム待機する処理をスキップします。 連続して移動ルート設定したときに待機が発生せずスムーズに次の移動に移行します。 利用規約: 作者に無断で改変、再配布が可能で、利用形態(商用、18禁利用等) についても制限はありません。 このプラグインはもうあなたのものです。 */ (() => { 'use strict'; const _Game_CharacterBase_update = Game_CharacterBase.prototype.update; Game_CharacterBase.prototype.update = function() { const wasStopping = this.isStopping(); _Game_CharacterBase_update.apply(this, arguments); if (!wasStopping && this.isStopping()) { this.updateWasMove(); } }; Game_CharacterBase.prototype.updateWasMove = function() {}; Game_Character.prototype.updateWasMove = function() { if (this._moveRouteForcing) { const command = this._moveRoute.list[this._moveRouteIndex]; if (command && command.code === Game_Character.ROUTE_END) { this.processRouteEnd(); } } }; })();