// DarkPlasma_AdjustEnemyPosition 1.0.2 // Copyright (c) 2020 DarkPlasma // This software is released under the MIT license. // http://opensource.org/licenses/mit-license.php /** * 2021/07/05 1.0.2 MZ 1.3.2に対応 * 2021/06/22 1.0.1 サブフォルダからの読み込みに対応 * 2020/11/13 1.0.0 公開 */ /*: @target MZ @url https://github.com/elleonard/DarkPlasma-MZ-Plugins/tree/release @plugindesc Move enemy coordinates to match UI area size @author DarkPlasma @license MIT @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/DarkPlasma-MZ-Plugins ). Original plugin by DarkPlasma. Please check the latest official version at: https://github.com/elleonard/DarkPlasma-MZ-Plugins/tree/release ----- version: 1.0.2 Moves enemy placement to fit the UI area size. This feature was officially added in MZ 1.3.0. This plugin is only valid for earlier versions. */ /*:ja @plugindesc 敵の座標をUIエリアサイズに合わせて移動する @author DarkPlasma @license MIT @target MZ @url https://github.com/elleonard/DarkPlasma-MZ-Plugins/tree/release @help version: 1.0.2 敵の配置をUIエリアサイズに合わせて移動します。 MZ 1.3.0より、公式にこの機能が取り込まれました。 本プラグインはそれより前のバージョンでのみ有効です。 */ (() => { 'use strict'; const DEFAULT_WIDTH = 816 - 4 * 2; const DEFAULT_HEIGHT = 624 - 4 * 2; const _Game_Enemy_screenX = Game_Enemy.prototype.screenX; Game_Enemy.prototype.screenX = function () { return Math.floor((_Game_Enemy_screenX.call(this) / DEFAULT_WIDTH) * Graphics.boxWidth); }; const _Game_Enemy_screenY = Game_Enemy.prototype.screenY; Game_Enemy.prototype.screenY = function () { return Math.floor((_Game_Enemy_screenY.call(this) / DEFAULT_HEIGHT) * Graphics.boxHeight); }; })();