Skip to content

Commit

Permalink
[WHM] Track lost Divine Caress uses (xivanalysis#2031)
Browse files Browse the repository at this point in the history
* Add module for tracking unused Divine Grace opportunities - but it bork

* Change module structure, fix wrong action, still borked.

* Attempt to add debug messages and fix some other messes

* Fix severity tiers, remove debug, finalize changes

* Add changelog entry
  • Loading branch information
Dot-Inni authored Jul 22, 2024
1 parent 4b5776b commit 5a51dcf
Show file tree
Hide file tree
Showing 12 changed files with 42 additions and 4 deletions.
1 change: 1 addition & 0 deletions locale/de/messages.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions locale/en/messages.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions locale/fr/messages.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions locale/ja/messages.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions locale/ko/messages.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions locale/zh/messages.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/data/ACTIONS/root/WHM.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export const WHM = ensureActions({
name: 'Divine Caress',
icon: iconUrl(2128),
cooldown: 1000,
statusesApplied: ['DIVINE_GRACE'],
statusesApplied: ['DIVINE_CARESS'],
},
MEDICA_III: {
id: 37010,
Expand Down
1 change: 1 addition & 0 deletions src/data/STATUSES/root/WHM.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ export const WHM = ensureStatuses({
name: 'Sacred Sight',
icon: iconUrl(18669),
duration: 30000,
stacksApplied: 3,
},
LITURGY_OF_THE_BELL: {
id: 2709,
Expand Down
9 changes: 7 additions & 2 deletions src/parser/jobs/whm/changelog.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
// import CONTRIBUTORS from 'data/CONTRIBUTORS'
// import React from 'react'
import CONTRIBUTORS from 'data/CONTRIBUTORS'
import React from 'react'

export const changelog = [
// {
// date: new Date('2021-11-19'),
// Changes: () => <>The changes you made</>,
// contributors: [CONTRIBUTORS.YOU],
// },
{
date: new Date('2024-07-22'),
Changes: () => <>Added tracking for unused Divine Caress procs</>,
contributors: [CONTRIBUTORS.INNI],
},
]
1 change: 0 additions & 1 deletion src/parser/jobs/whm/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import {t} from '@lingui/macro'
import TransMarkdown from 'components/ui/TransMarkdown'
// import CONTRIBUTORS, {ROLES} from 'data/CONTRIBUTORS'
import CONTRIBUTORS, {ROLES} from 'data/CONTRIBUTORS'
import {Meta} from 'parser/core/Meta'
import React from 'react'
Expand Down
25 changes: 25 additions & 0 deletions src/parser/jobs/whm/modules/DivineCaress.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import {Trans} from '@lingui/react'
import {Procs as CoreProcs} from 'parser/core/modules/Procs'
import {SEVERITY} from 'parser/core/modules/Suggestions'
import React from 'react'

export class DivineCaress extends CoreProcs {

//Track Divine Caress as the only status currently
override trackedProcs = [
{
procStatus: this.data.statuses.DIVINE_GRACE,
consumeActions: [this.data.actions.DIVINE_CARESS],
},
]
override showDroppedProcSuggestion = true;
override droppedProcIcon = this.data.actions.DIVINE_CARESS.icon;
override droppedProcContent =
<Trans id="whm.procs.suggestions.dropped-divine-caress.content">
Try to use Divine Caress whenever you have used Temperance. It is a free, groupwide oGCD shield and heal over time!
</Trans>
override droppedProcSeverityTiers = {
1: SEVERITY.MEDIUM,
3: SEVERITY.MAJOR,
}
}
2 changes: 2 additions & 0 deletions src/parser/jobs/whm/modules/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import {ActionTimeline} from './ActionTimeline'
import {CastTime} from './CastTime'
import {Defensives} from './Defensives'
import {DivineCaress} from './DivineCaress'
import {DoTs} from './DoTs'
import {Interrupts} from './Interrupts'
import {Lilies} from './Lilies'
Expand All @@ -14,6 +15,7 @@ export default [
ActionTimeline,
CastTime,
Defensives,
DivineCaress,
DoTs,
Interrupts,
Lilies,
Expand Down

0 comments on commit 5a51dcf

Please sign in to comment.