From c8d41906be70943b079961b0a5bc2b12d0a0433a Mon Sep 17 00:00:00 2001 From: xian18 <44394537+xian18@users.noreply.github.com> Date: Tue, 2 Jan 2024 00:05:26 +0800 Subject: [PATCH] Fix #37: State Icon Shown Problem - Fix icon positioning in YEP_BattleStatusWindow.js - Not Show Turn For autoRemovalTiming == 0 --- js/plugins/YEP_BattleStatusWindow.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/js/plugins/YEP_BattleStatusWindow.js b/js/plugins/YEP_BattleStatusWindow.js index 2629b18..07d412f 100755 --- a/js/plugins/YEP_BattleStatusWindow.js +++ b/js/plugins/YEP_BattleStatusWindow.js @@ -778,8 +778,10 @@ Window_BattleStatus.prototype.drawActorIcons = function (index) { var wx = x + iconWidth * i; var wy = y; - this.drawIcon(state.iconIndex, wx, wy); - this.drawStateTurns(actor, state, wx, wy); + this.drawIcon(state.iconIndex, wx, wy + 2); + if (state.autoRemovalTiming > 0) { + this.drawStateTurns(actor, state, wx, wy); + } this.drawStateCounter(actor, state, wx, wy); }, this); @@ -791,7 +793,7 @@ Window_BattleStatus.prototype.drawActorIcons = function (index) { var wx = x + iconWidth * i; var wy = y; - this.drawIcon(actor.buffIconIndex(actor.buff(buff), buff), wx, wy); + this.drawIcon(actor.buffIconIndex(actor.buff(buff), buff), wx, wy + 2); this.drawBuffTurns(actor, buff, wx, wy); this.drawBuffRate(actor, buff, wx, wy); }, this);