Skip to content
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

Merged
merged 2 commits into from
Aug 5, 2023
Merged

oopsy: add isImmune to OopsyData #5750

merged 2 commits into from
Aug 5, 2023

Conversation

g0shu
Copy link
Contributor

@g0shu g0shu commented Aug 5, 2023

I'll look at actually making this work in p12s tomorrow. maybe.

@github-actions github-actions bot added the oopsy label Aug 5, 2023
types/data.d.ts Outdated
@@ -50,6 +50,7 @@ export interface OopsyData {
role: Role;
party: PartyTracker;
inCombat: boolean;
isImmune: (x?: string) => boolean;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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.

@@ -159,6 +159,12 @@ export class DamageTracker {
role: this.role,
party: this.playerStateTracker.partyTracker,
inCombat: this.inCombat,
isImmune: (targetId?: string) => {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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'];
Copy link
Owner

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.

@quisquous quisquous merged commit 85f3ef1 into quisquous:main Aug 5, 2023
github-actions bot pushed a commit to SiliconExarch/cactbot that referenced this pull request Aug 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants