Fix #37: State Icon Shown Problem

- Fix icon positioning in YEP_BattleStatusWindow.js
- Not Show Turn For autoRemovalTiming == 0
main
xian18 12 months ago
parent 8992efb463
commit c8d41906be
Signed by: SaltedFish
GPG Key ID: B0C26448E9EF40CA

@ -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.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);

Loading…
Cancel
Save