Shipwright/soh/include
Malkierian 73052617ed
[GI] Item_Give and OnReceiveItem updates (#2580)
* Changed OnReceiveItem hook to pass GetItemEntry, which required the following changes:

Reworked the references to it in `z_parameter` to call a single function with the item return and hook call in it for ease of editing.

Modified the pendingSale functionality to set and pass a modIndex value as well, as mod items (like randomizer) in shops still use the vanilla sale path.

* Missed some files for the pendingSale changes.

Also added Randomizer_Item_Give to the OnReceiveItem system.

* Ice traps now trigger OnReceiveItem.

* All ice traps truly do work now.

As a side effect, item autosave doesn't work for shop/scrub/merchant transactions, requires new OnSaleEnded hook that can also call the autosave.

* Removed unnecessary calls to ItemTable_RetrieveEntry where GetItemEntry properties were being used to call it.  General code cleanup.

* Added OnSaleEnd hook for when rupees are finished deducting after a sale.

Migrated AutoSave to its own function, registered AutoSave function to OnReceiveItem and OnSaleEnd hooks to help with autsaving after buying items.

Some futureproofing for AutoSave function with parameters for skipping autosave, for when transition end is migrated to AutoSave function (whether through direct call or through a hook).

* Renamed hook paramaters, and registered hook function parameters, to a more descriptive alternative.

* Missed a couple, fixed a typo.

* One more missed paramater name refactor.

Refactored all references to OnReceiveItem to OnItemReceive to mirror upcoming full hook refactor for name ordering conventions.

Up-to-date with develop.
2023-03-12 08:00:03 +01:00
..
boost_custom/container_hash Add manual seed input for rando generation (#2057) 2023-01-25 18:33:27 -05:00
libc refactor: use LUS 1.0 RC 2023-01-17 00:33:56 -05:00
tables git subrepo clone https://github.com/HarbourMasters/soh.git 2022-03-22 02:51:23 +01:00
align_asset_macro.h Simplify Asset Headers (#2474) 2023-03-02 15:37:47 +01:00
alignment.h [docs] Upstream updates 1 (#1955) 2022-11-30 00:28:57 +01:00
alloca.h Linux/GCC Support (#28) 2022-05-11 13:18:24 -04:00
command_macros_base.h Big-endian support (#909) 2022-07-27 23:50:56 +02:00
fp.h refactor: use LUS 1.0 RC 2023-01-17 00:33:56 -05:00
functions.h Rando version warning on different builds (#2420) 2023-02-28 20:46:55 -05:00
global.h refactor: use LUS 1.0 RC 2023-01-17 00:33:56 -05:00
ichain.h git subrepo clone https://github.com/HarbourMasters/soh.git 2022-03-22 02:51:23 +01:00
macro.inc git subrepo clone https://github.com/HarbourMasters/soh.git 2022-03-22 02:51:23 +01:00
macros.h refactor: use LUS 1.0 RC 2023-01-17 00:33:56 -05:00
message_data_fmt.h git subrepo clone https://github.com/HarbourMasters/soh.git 2022-03-22 02:51:23 +01:00
message_data_static.h Randomizer v2 (#1065) 2022-09-21 00:50:22 -04:00
message_data_textbox_types.h Randomizer v2 (#1065) 2022-09-21 00:50:22 -04:00
regs.h git subrepo clone https://github.com/HarbourMasters/soh.git 2022-03-22 02:51:23 +01:00
segment_symbols.h Linux crash handler (#1209) 2022-08-31 22:59:38 -04:00
sequence.h git subrepo clone https://github.com/HarbourMasters/soh.git 2022-03-22 02:51:23 +01:00
sfx.h git subrepo clone https://github.com/HarbourMasters/soh.git 2022-03-22 02:51:23 +01:00
unk.h git subrepo clone https://github.com/HarbourMasters/soh.git 2022-03-22 02:51:23 +01:00
variables.h Rando version warning on different builds (#2420) 2023-02-28 20:46:55 -05:00
vt.h Disable BEL char by default when terminal attached (#2306) 2023-01-17 15:18:13 -05:00
z64.h SoH now uses the multithreaded resource manager. (#2467) 2023-02-15 01:02:09 -05:00
z64actor.h documentation: use NpcInteractInfo from zret (#2370) 2023-01-19 02:38:04 -05:00
z64animation.h refactor: use LUS 1.0 RC 2023-01-17 00:33:56 -05:00
z64audio.h refactor: use LUS 1.0 RC 2023-01-17 00:33:56 -05:00
z64bgcheck.h Use PlayState instead of GlobalContext (#1927) 2022-11-06 09:24:34 +01:00
z64camera.h refactor: use LUS 1.0 RC 2023-01-17 00:33:56 -05:00
z64collision_check.h git subrepo clone https://github.com/HarbourMasters/soh.git 2022-03-22 02:51:23 +01:00
z64cutscene_commands.h git subrepo clone https://github.com/HarbourMasters/soh.git 2022-03-22 02:51:23 +01:00
z64cutscene.h refactor: use LUS 1.0 RC 2023-01-17 00:33:56 -05:00
z64dma.h refactor: use LUS 1.0 RC 2023-01-17 00:33:56 -05:00
z64effect.h refactor: use LUS 1.0 RC 2023-01-17 00:33:56 -05:00
z64elf_message.h refactor: use LUS 1.0 RC 2023-01-17 00:33:56 -05:00
z64environment.h git subrepo clone https://github.com/HarbourMasters/soh.git 2022-03-22 02:51:23 +01:00
z64interface.h DPad items 2022-06-22 23:13:32 -04:00
z64item.h Rework Get Item Table to be more flexible for adding custom items (#1050) 2022-08-23 20:11:38 -04:00
z64light.h refactor: use LUS 1.0 RC 2023-01-17 00:33:56 -05:00
z64map_mark.h refactor: use LUS 1.0 RC 2023-01-17 00:33:56 -05:00
z64math.h refactor: use LUS 1.0 RC 2023-01-17 00:33:56 -05:00
z64object.h git subrepo clone https://github.com/HarbourMasters/soh.git 2022-03-22 02:51:23 +01:00
z64player.h [docs] Upstream updates 1 (#1955) 2022-11-30 00:28:57 +01:00
z64save.h [GI] Item_Give and OnReceiveItem updates (#2580) 2023-03-12 08:00:03 +01:00
z64scene.h Enable MQ Dungeons in Randomizer (#1828) 2022-10-21 21:43:37 -04:00
z64skin.h Use PlayState instead of GlobalContext (#1927) 2022-11-06 09:24:34 +01:00
z64transition.h refactor: use LUS 1.0 RC 2023-01-17 00:33:56 -05:00