Skip to content

Commit

Permalink
Include dungeon rewards in MW_SEND_OWN_ITEMS
Browse files Browse the repository at this point in the history
  • Loading branch information
fenhl committed Feb 27, 2025
1 parent b24bfec commit c00a2e3
Show file tree
Hide file tree
Showing 8 changed files with 35,685 additions and 35,674 deletions.
1,362 changes: 681 additions & 681 deletions ASM/build/asm_symbols.txt

Large diffs are not rendered by default.

Binary file modified ASM/build/bundle.o
Binary file not shown.
1,382 changes: 691 additions & 691 deletions ASM/build/c_symbols.txt

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions ASM/c/blue_warp.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
extern uint8_t PLAYER_ID;
extern uint8_t PLAYER_NAME_ID;
extern bool REWARDS_AS_ITEMS;
extern uint8_t MW_SEND_OWN_ITEMS;

// Original function copied over
int32_t DoorWarp1_PlayerInRange(z64_actor_t* actor, z64_game_t* game) {
Expand All @@ -39,6 +40,10 @@ int32_t DoorWarp1_PlayerInRange_Overwrite(z64_actor_t* actor, z64_game_t* game)
override_t override = lookup_override_by_key(override_key);
uint16_t resolved_item_id = resolve_upgrades(override);
item_row_t* item_row = get_item_row(resolved_item_id);
if (MW_SEND_OWN_ITEMS) {
// Also send to multiworld plugin for informational purposes if requested
push_outgoing_override(&override);
}
call_effect_function(item_row);
PLAYER_NAME_ID = override.value.base.player;
z64_DisplayTextbox(&z64_game, resolve_item_text_id(item_row, PLAYER_NAME_ID != PLAYER_ID), 0);
Expand Down
1 change: 1 addition & 0 deletions ASM/c/get_items.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ void item_overrides_init();
void handle_pending_items();
void push_delayed_item(uint8_t flag);
void pop_pending_item();
void push_outgoing_override(override_t* override);
enum override_type {
OVR_BASE_ITEM = 0,
OVR_CHEST = 1,
Expand Down
2 changes: 1 addition & 1 deletion data/generated/patch_symbols.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit c00a2e3

Please sign in to comment.