-
Notifications
You must be signed in to change notification settings - Fork 19
Simplify underwater crouch jump helpers #2261
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
Merged
Merged
Changes from 1 commit
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -697,23 +697,30 @@ | |
| ] | ||
| }, | ||
| { | ||
| "name": "h_underwaterCrouchJumpWithFlashSuit", | ||
| "name": "h_underwaterCrouchJump", | ||
| "requires": [ | ||
| {"tech": "canCrouchJump"} | ||
| ], | ||
| "devNote": [ | ||
| "It is possible to crouch jump under water without losing a flash suit.", | ||
| "Hold shoot to prevent using a flash suit while still getting the increased height of the crouch jump.", | ||
| "Alternatively, it is possible to crouch, jump, then quickly press down to prevent the use of the flash suit." | ||
| "Alternatively, it is possible to crouch, jump, then quickly press down (or have down already buffered) to prevent the use of the flash suit." | ||
| ] | ||
| }, | ||
| { | ||
| "name": "h_underwaterMaxHeightSpringBallJumpWithFlashSuit", | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's a shame to see this one go. It was such a great name. lol |
||
| "name": "h_underwaterMaxHeightSpringBallJump", | ||
| "requires": [ | ||
| "h_underwaterCrouchJumpWithFlashSuit", | ||
| "h_underwaterCrouchJump", | ||
| "canTrickySpringBallJump" | ||
| ] | ||
| }, | ||
| { | ||
| "name": "h_underwaterCrouchJumpDownGrab", | ||
| "requires": [ | ||
| "h_underwaterCrouchJump", | ||
| "canDownGrab" | ||
| ] | ||
| }, | ||
| { | ||
| "name": "h_PlasmaHitbox", | ||
| "requires": [ | ||
|
|
||
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
I don't like how it looks like no tech is involved, when we can slot
canCarryFlashSuitin here.The note and purpose are based on flash suit, but the important parts of the helper do not reference flash suits. The value is in the lack of
NoFlashSuitwhich you look somewhere else to see.So I suggest adding
OR:[ NoFlashSuit, canCarryFlashSuit]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.
The way I look at it is that essentially
canCarryFlashSuitis implicitly required on every strat that carries a flash suit, so it would be redundant to add it as a requirement here. Although, since it would be inefficient to check for thecanCarryFlashSuittech on every strat, more specifically the way it's working is that we're checking it at the time the flash suit is gained: every method of gaining a flash suit will come with acanCarryFlashSuitrequirement. This means that in any scenario where you could possibly have a flash suit, thecanCarryFlashSuittech will already be satisfied, so we should not need to add it as a requirement anywhere except as a dependency on the tech for gaining a flash suit.I made an attempt at updating the dev note; does this resolve the problem?