-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #507 from m-h-c-t/stage-frostking
added frost king stager and exemption
- Loading branch information
Showing
3 changed files
with
39 additions
and
2 deletions.
There are no files selected for viewing
33 changes: 33 additions & 0 deletions
33
src/scripts/hunt-filter/exemptions/environments/iceFortress.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import type {IMessageExemption} from "@scripts/hunt-filter/interfaces"; | ||
import type {IntakeMessage} from "@scripts/types/mhct"; | ||
|
||
class IceFortressExemption implements IMessageExemption { | ||
readonly description = "Frost King transitions in Ice Fortress"; | ||
readonly property = "stage"; | ||
getExemptions( | ||
pre: IntakeMessage, | ||
post: IntakeMessage | ||
): (keyof IntakeMessage)[] | null { | ||
if ( | ||
pre.stage === "Barrier Down" && | ||
post.stage === "Barrier Up" && | ||
pre.mouse === "Frost King" | ||
) { | ||
return ["stage"]; | ||
} | ||
else if ( | ||
pre.stage === "Barrier Up" && | ||
post.stage === "Barrier Down" | ||
) { | ||
// Possibly we could check things like what the old barrier level was but this should be fine | ||
// This is the hunt that led to the destruction of the barrier | ||
return ["stage"]; | ||
} | ||
|
||
return null; | ||
} | ||
} | ||
|
||
export const iceFortressExemptions = [ | ||
new IceFortressExemption(), | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters