/* * -------------------------------------------------- * MNKR_OnlyBattleTpMZ.js * Ver.0.0.2 * Copyright (c) 2021 Munokura * This software is released under the MIT license. * http://opensource.org/licenses/mit-license.php * -------------------------------------------------- */ /*: * @target MZ * @url https://raw.githubusercontent.com/munokura/MNKR-MZ-plugins/master/MNKR_OnlyBattleTpMZ.js * @plugindesc 戦闘画面以外のTP表示を消します。 * @author munokura * * @help * 戦闘画面以外のTP表示を消します。 * * * 利用規約: * MITライセンスです。 * https://licenses.opensource.jp/MIT/MIT.html * 作者に無断で改変、再配布が可能で、 * 利用形態(商用、18禁利用等)についても制限はありません。 */ (() => { 'use strict'; const _Window_StatusBase_placeBasicGauges = Window_StatusBase.prototype.placeBasicGauges; Window_StatusBase.prototype.placeBasicGauges = function (actor, x, y) { const isScene = SceneManager._scene.constructor.name === 'Scene_Battle'; if (isScene) { _Window_StatusBase_placeBasicGauges.call(this, actor, x, y); } else { this.placeGauge(actor, "hp", x, y); this.placeGauge(actor, "mp", x, y + this.gaugeLineHeight()); } }; })();