From 73e31e7d282baef37f11c0cc0851f784f5355895 Mon Sep 17 00:00:00 2001 From: Echoring <68432572+Echoring@users.noreply.github.com> Date: Tue, 9 Jul 2024 08:56:08 +0800 Subject: [PATCH] jobs: NIN update pulse condition and raidbuff position (#213) fix kazematoi cannot stop pulsing and raidbuff overlaps with resource box. --------- Co-authored-by: Maiko Sinkyaet Tan --- ui/jobs/components/nin.ts | 16 +++++++--------- ui/jobs/jobs.css | 1 + 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/ui/jobs/components/nin.ts b/ui/jobs/components/nin.ts index d859522a6d..105efbcf5e 100644 --- a/ui/jobs/components/nin.ts +++ b/ui/jobs/components/nin.ts @@ -106,15 +106,6 @@ export class NINComponent extends BaseComponent { }, 15000); break; } - case kAbility.ArmorCrush: { - if (+this.kazematoi.innerText >= 4) { - // Pulse the kazematoi count to indicate that you are wasting it. - this.kazematoi.parentElement?.classList.add('nin-kazematoi', 'pulse'); - } else { - this.kazematoi.parentElement?.classList.remove('nin-kazematoi', 'pulse'); - } - break; - } } } @@ -135,6 +126,12 @@ export class NINComponent extends BaseComponent { this.ninki.parentNode.classList.add('high'); this.kazematoi.innerText = jobDetail.kazematoi?.toString() ?? '0'; + if (jobDetail.kazematoi >= 4) { + // Pulse the kazematoi count to indicate that you shouldn't use Armor Crash again. + this.kazematoi.parentElement?.classList.add('nin-kazematoi', 'pulse'); + } else { + this.kazematoi.parentElement?.classList.remove('nin-kazematoi', 'pulse'); + } } override onCombo(skill: string, combo: ComboTracker): void { this.comboTimer.duration = 0; @@ -147,6 +144,7 @@ export class NINComponent extends BaseComponent { override reset(): void { this.bunshin.duration = 0; this.kazematoi.innerText = '0'; + this.kazematoi.parentElement?.classList.remove('nin-kazematoi', 'pulse'); this.mudraTriggerCd = true; this.ninjutsu.duration = 0; this.trickAttack.duration = 0; diff --git a/ui/jobs/jobs.css b/ui/jobs/jobs.css index 92b8b2f1ce..0e60cdcee6 100644 --- a/ui/jobs/jobs.css +++ b/ui/jobs/jobs.css @@ -254,6 +254,7 @@ div.justbuffs div#procs-container { /* Space for 2 resource boxes */ .drg #right-side-icons, +.nin #right-side-icons, .sam #right-side-icons, .rpr #right-side-icons, .brd #right-side-icons,