Skip to content

[Enhancement] Cycle Arrows#901

Merged
garrettjoecox merged 25 commits intoHarbourMasters:developfrom
mckinlee:cycle-arrows
Jan 6, 2025
Merged

[Enhancement] Cycle Arrows#901
garrettjoecox merged 25 commits intoHarbourMasters:developfrom
mckinlee:cycle-arrows

Conversation

@mckinlee
Copy link
Copy Markdown
Contributor

@mckinlee mckinlee commented Dec 22, 2024

This enhancement adds a quick arrow cycling feature that lets players switch between Normal, Fire, Ice, and Light Arrows by pressing L while holding the bow. It includes a button-flash effect for visual feedback, and takes care of magic usage by refunding magic if you switch away from a magic arrow before firing. Additional checks ensure arrow cycling won’t interfere with minigames or other in-game states. Minimap toggle is disabled while cycling.

Build Artifacts

@mckinlee mckinlee changed the title [Enhancement] Cycle arrows [Enhancement] Cycle Arrows Dec 22, 2024
@Archez
Copy link
Copy Markdown
Contributor

Archez commented Dec 26, 2024

  • Magic Use: Magic is only consumed when releasing a magic arrow, not while drawing it.
  • Fallback: If the player cannot afford a magic arrow, the game reverts to Normal Arrows.

Instead of changing the behavior of magic consumption, could we instead just "give back" the consumed magic if the arrow was switched without firing? Seems like that would simplify some of the handling, like auto switching to normal arrows, since the game naturally makes magic arrows fire as normal without the proper magic.

mckinlee and others added 3 commits December 27, 2024 12:30
Copy link
Copy Markdown
Contributor

@garrettjoecox garrettjoecox left a comment

Choose a reason for hiding this comment

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

Two tiny comments otherwise LGTM. nice job keeping this isolated

Comment thread mm/2s2h/Enhancements/Equipment/ArrowCycle.cpp Outdated
Comment thread mm/2s2h/Enhancements/Equipment/ArrowCycle.cpp
@garrettjoecox garrettjoecox merged commit f5c0d21 into HarbourMasters:develop Jan 6, 2025
Malkierian pushed a commit to Malkierian/2ship2harkinian that referenced this pull request Jan 23, 2025
* Allow Better SoDT to work on Night of the Final Day (HarbourMasters#913)

* Allow Better SoDT to work on Night of Final Day

* -1 newline

* lol oops

* change SoDT VB name to be more descriptive

* see if this fixes clang-format

* Inline vanilla conditional with GI Should call

* clang-format

* *long exacerbated sigh*

* [Enhancement] Skip owl interactions (HarbourMasters#920)

* Add enhancement to skip owl interactions

* Use should hook for the owl shrine conversation

* Tweak persistent bunny hood to only hide in first person for deku (HarbourMasters#924)

* Minigame options for Archery & H&D (HarbourMasters#923)

* [Timesaver] Faster Swamp Boat (HarbourMasters#918)

* vroom vroom

* fix some oversights

* feedback update

Co-Authored-By: Garrett Cox <garrettjcox@gmail.com>

---------

Co-authored-by: Garrett Cox <garrettjcox@gmail.com>

* Skip Monkey Encounter (HarbourMasters#921)

* go away monkies

* feedback update

Co-Authored-By: Garrett Cox <garrettjcox@gmail.com>

---------

Co-authored-by: Garrett Cox <garrettjcox@gmail.com>

* [Enhancement] Cycle Arrows (HarbourMasters#901)

* initial implementation

* update tooltip

* clang format

* Fix linux?

* how bout now?

* pain

* ...

* linux fix

Co-Authored-By: sitton76 <58642183+sitton76@users.noreply.github.com>

* clang format

* add sfx, requirements, cooldown, etc.

* clang format

* bug fix and remove unneeded logic

* bug fix for the bug fix lol

* add auto cycling when out of magic and visual/sfx indicators

* forgot about clang format as usual

* forgot about that while refactoring

* le sigh

* Feedback Changes and Refactor

Co-Authored-By: Archez <Archez@users.noreply.github.com>

* remove VB_MAGIC_ARROW_CONSUME

* add more restrictions

* Update mm/2s2h/Enhancements/Equipment/ArrowCycle.cpp

Co-authored-by: Garrett Cox <garrettjcox@gmail.com>

---------

Co-authored-by: sitton76 <58642183+sitton76@users.noreply.github.com>
Co-authored-by: Archez <Archez@users.noreply.github.com>
Co-authored-by: Garrett Cox <garrettjcox@gmail.com>

* Set Sample rate to 32 Khz (HarbourMasters#916)

* Set Sample rate to 32 Khz

* format

* review

* Update mm/2s2h/BenPort.cpp

---------

Co-authored-by: Garrett Cox <garrettjcox@gmail.com>

* Refactor the monkey skip to fix some issues (HarbourMasters#926)

* fix c-right (HarbourMasters#927)

* Allow reset when in any game state (HarbourMasters#929)

* Cleanup so things around the save manager (HarbourMasters#930)

* Proper fix to masks showing in first person, and apply it to hyrule warriors enhancement (HarbourMasters#931)

* Add EasyFrameAdvance cheat (HarbourMasters#932)

* Add enums for sram and save file magic values (HarbourMasters#933)

* Add simulated input lag option and a blurb about the bindings window (HarbourMasters#934)

* [Enhancement]: Add File Slot 3 (HarbourMasters#900)

* [Enhancement]: File Slot 3

* Log out save file imports and reset file select state

* Prevent Faster Song Playback During Cutscenes (HarbourMasters#936)

* Prevent Faster Song Playback During Cutscenes

* Fix toto balad edge case

* Port difficulty options from SoH (HarbourMasters#938)

* Add default value to Right Stick Invert Y (HarbourMasters#943)

* Fix ocarina inputs being dropped at the start of playback (HarbourMasters#941)

* Fix ocarina inputs being dropped at the start of playback

* Port dropped ocarina inputs patch from Recomp

* Goron Rolling Enhancements (HarbourMasters#942)

* Goron rolling enhancements

* Clang pls

* CLANG!?

* OK clang you wanna talk about this?

* Add infinite deku hop (HarbourMasters#940)

* [Cosmetic Editor] Implements Initial Cosmetic Editor (HarbourMasters#886)

* Initial Cosmetic Editor Commit

* Adds Reset All and Randomize All Options

* Cleanup Work

* Prefixed sModifiedColor

* Replace button modifications with pattern similar to the others.

* Cleanup, forgot some entries

* update funcs to pass element id

* drop with from override funcs

* update include paths

* add minimap and rename items to hud

---------

Co-authored-by: Archez <archez39@me.com>

* Convert End of Cycle enhancements to ShipInit (HarbourMasters#945)

* convert end of cycle hooks to ship init

* fix sot cs ammo drops

* remove unneeded stuff

* Fix twinmold giant scale factor not clearing on reset (HarbourMasters#954)

* Ensure Constant Distance restoration only affects sidehops & backflips (HarbourMasters#953)

* Add restoration for pause buffer input window (HarbourMasters#951)

* Fix snowhead snowball being placed out of bounds (HarbourMasters#950)

* Fix interpolation on chu revive animation (HarbourMasters#959)

* Fix Persistent Bunny Hood losing color with other masks (HarbourMasters#961)

* Fix persistent bunny hood losing color with other masks

* add fix to prevent applying persistent bunnyhood to kafei

---------

Co-authored-by: zodiac-ill <109762907+zodiac-ill@users.noreply.github.com>
Co-authored-by: Eblo <7004497+Eblo@users.noreply.github.com>
Co-authored-by: mckinlee <mckinlee@ymail.com>
Co-authored-by: sitton76 <58642183+sitton76@users.noreply.github.com>
Co-authored-by: Archez <Archez@users.noreply.github.com>
Co-authored-by: Alejandro Asenjo Nitti <96613413+sonicdcer@users.noreply.github.com>
Co-authored-by: aMannus <mannusmenting@gmail.com>
Co-authored-by: Caladius <Caladius@users.noreply.github.com>
Co-authored-by: Archez <archez39@me.com>
Co-authored-by: balloondude2 <55861555+balloondude2@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants