Skip to content

Commit

Permalink
fix: creature vignette next turn status text
Browse files Browse the repository at this point in the history
  • Loading branch information
MilosDj21 committed Oct 29, 2024
1 parent 80484fa commit 07a83e6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ui/queue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export class Queue {
const is1stCreature = utils.trueIfFirstElseFalse();

const newCreatureVCurr = (c: Creature) =>
new CreatureVignette(c, turnNum, eventHandlers, is1stCreature());
new CreatureVignette(c, turnNum, eventHandlers, is1stCreature(), true);
const undelayedVsCurr = undelayedCsCurr.map(newCreatureVCurr);
const delayMarkerVCurr = hasDelayedCurr
? [new DelayMarkerVignette(turnNum, eventHandlers)]
Expand All @@ -96,7 +96,7 @@ export class Queue {
const turnEndMarkerV = [new TurnEndMarkerVignette(turnNum, eventHandlers)];

const newCreatureVNext = (c: Creature) =>
new CreatureVignette(c, turnNum + 1, eventHandlers, is1stCreature());
new CreatureVignette(c, turnNum + 1, eventHandlers, is1stCreature(), false);
const undelayedVsNext = undelayedCsNext.map(newCreatureVNext);
const delayMarkerVNext = hasDelayedNext
? [new DelayMarkerVignette(turnNum + 1, eventHandlers)]
Expand Down Expand Up @@ -431,7 +431,7 @@ class CreatureVignette extends Vignette {

this.el.style.zIndex = this.creature.temp ? '1000' : this.queuePosition + 1 + '';

const stats = this.creature.fatigueText;
const stats = this.turnNumberIsCurrentTurn ? this.creature.fatigueText : 'Queued';
const statsClasses = ['stats', utils.toClassName(stats)].join(' ');
const statsEl = this.el.querySelector('div.stats');
statsEl.className = statsClasses;
Expand Down

0 comments on commit 07a83e6

Please sign in to comment.