Skip to content

Equip Tunic and Boots while performing most actions#3239

Merged
garrettjoecox merged 3 commits intoHarbourMasters:developfrom
inspectredc:boot-equips
Oct 15, 2023
Merged

Equip Tunic and Boots while performing most actions#3239
garrettjoecox merged 3 commits intoHarbourMasters:developfrom
inspectredc:boot-equips

Conversation

@inspectredc
Copy link
Member

@inspectredc inspectredc commented Sep 29, 2023

Takes the equipping of tunic and boots out of the other item equipping flow and sets own restrictions for when tunics and boots can be equipped.

This now allows for boots/tunic to be equipped while: Shielding, Rolling, Holding explosives
This does not let the player equip boots/tunic while: Playing ocarina, pausing, in a cutscene, has a textbox open

Planning on figuring out the most appropriate place to put the Player_AssignTunicBoots function in the code but otherwise happy with it functionally (although will need more testing).

Build Artifacts

todo: find an appropriate place to first put Player_AssignTunicBoots
@briaguya0
Copy link
Contributor

sounds like this one addresses #623

@inspectredc inspectredc marked this pull request as ready for review October 2, 2023 14:07
@inspectredc
Copy link
Member Author

Undrafting now, feel better about placement of the function being just after the player actionFunc (this->func_674) is called in the players update, and testing on my end has been successful.


if (!(this->stateFlags3 & PLAYER_STATE3_PAUSE_ACTION_FUNC)) {
this->func_674(this, play);
Player_UseTunicBoots(this, play);
Copy link
Contributor

Choose a reason for hiding this comment

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

My only question is, could we just place this in a PlayerUpdate hook?

Copy link
Member Author

Choose a reason for hiding this comment

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

Im not sure exactly where that hook is, but i think its preferrable to have it here since state flags change variously throughout the player update function. If it turns out to not matter then id be happy for that too

@garrettjoecox garrettjoecox merged commit 041a379 into HarbourMasters:develop Oct 15, 2023
garrettjoecox added a commit that referenced this pull request Oct 16, 2023
* typo on asset attribute for pal1.1 (#3264)

* typo on asset attribute

* base address fix

* [Cosmetic] Adds Bunny Hood to Cosmetic Editor (#3245)

* Color and Invisible Checkbox

GI model crashes when talking to mask salesman

* Update z_player.c

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

* Update z_player.c

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

* Move bunny hood coloring to patch

---------

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

* redicle -> reticle (#3257)

* Equip Tunic and Boots while performing most actions (#3239)

* tunics and boot equips initial

todo: find an appropriate place to first put Player_AssignTunicBoots

* move to more appropriate place

* assign -> use

* [Difficulty Options] All Dogs are Richard (#3243)

* Oops, all Richards!

* Sure is

* Randomizer - Colored hints (#3259)

* Colored hints

* Missed 2 french translations

* add save editor field for current b button item (#3262)

* TWEAK: Add transition to the Time Travel feature (#3276)

* ADD/ Proper Transition

* REM: Dupe

* MM Bunny Hood effect separated from ability to equip as adult (#3253)

* adult separator

* use cross instead of checkmark

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

* suggested load fix

---------

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

---------

Co-authored-by: Adam Bird <Archez@users.noreply.github.com>
Co-authored-by: Patrick12115 <115201185+Patrick12115@users.noreply.github.com>
Co-authored-by: inspectredc <78732756+inspectredc@users.noreply.github.com>
Co-authored-by: aMannus <mannusmenting@gmail.com>
Co-authored-by: PurpleHato <linkvssangoku.jr@gmail.com>
@Pepe20129 Pepe20129 mentioned this pull request Nov 27, 2023
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.

4 participants