-
Notifications
You must be signed in to change notification settings - Fork 384
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
oopsy: add isImmune to OopsyData #5750
Conversation
types/data.d.ts
Outdated
@@ -50,6 +50,7 @@ export interface OopsyData { | |||
role: Role; | |||
party: PartyTracker; | |||
inCombat: boolean; | |||
isImmune: (x?: string) => boolean; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
isImmune: (x?: string) => boolean; | |
IsImmune: (x?: string) => boolean; |
I hate that past me made functions have capital letters in this class, but probably this should be consistent with the other functions here.
ui/oopsyraidsy/damage_tracker.ts
Outdated
@@ -159,6 +159,12 @@ export class DamageTracker { | |||
role: this.role, | |||
party: this.playerStateTracker.partyTracker, | |||
inCombat: this.inCombat, | |||
isImmune: (targetId?: string) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
isImmune: (targetId?: string) => { | |
IsImmune: (targetId?: string) => { |
@@ -159,6 +159,12 @@ export class DamageTracker { | |||
role: this.role, | |||
party: this.playerStateTracker.partyTracker, | |||
inCombat: this.inCombat, | |||
isImmune: (targetId?: string) => { | |||
const invulnIds = ['52', '199', '32A', '32B', '72C']; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you leave a comment as to what these all are? Mostly so that if/when one changes in the future it's easier to come and edit this.
I'll look at actually making this work in p12s tomorrow. maybe.