/*: * @target MZ * @plugindesc PlayerSensorMZ × HalfMove 表示安定パッチ * @author IvI * @orderAfter ARTM_PlayerSensorMZ * @orderAfter HalfMove */ (() => { // === 1. 判定用の微小イプシロンを足して誤差吸収 === const EPS = 0.0001; const _inRange = Game_Event.prototype.isSideSearch; Game_Event.prototype.isSideSearch = function(...args){ args[6] += EPS; // realX args[7] += EPS; // realY return _inRange.apply(this, args); }; // === 2. sensorStatus が -1 でも視界を残す === const _update = Sprite_ViewRange.prototype.update; Sprite_ViewRange.prototype.update = function(){ const bak = this._character.getSensorStatus(); if (bak === -1) this._character.setSensorStatus(1); _update.call(this); if (bak === -1) this._character.setSensorStatus(bak); }; })();