Skip to content

Commit

Permalink
Pass CI checks
Browse files Browse the repository at this point in the history
  • Loading branch information
rrealmuto committed Jan 15, 2024
1 parent 092d614 commit 26da0b3
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 6 deletions.
2 changes: 1 addition & 1 deletion ASM/c/actor.c
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ void Actor_StoreFlag(z64_actor_t* actor, z64_game_t* game, xflag_t flag) {
// Flag consists of the room #, scene setup, and the actor index
void Actor_StoreFlagByIndex(z64_actor_t* actor, z64_game_t* game, uint16_t actor_index) {
// Zeroize extra data;

xflag_t flag = (xflag_t) { 0 };

flag.scene = z64_game.scene_index;
Expand Down
6 changes: 3 additions & 3 deletions ASM/c/en_wonderitem.c
Original file line number Diff line number Diff line change
Expand Up @@ -132,13 +132,13 @@ void EnWonderItem_Update_Hack(EnWonderItem* this) {

// Hack to not kill wonderitem when switch flag is set if we need to override still
uint32_t EnWonderItem_Kill_Hack(EnWonderItem* this) {

xflag_t flag = { 0 };
flag.flag = CURR_ACTOR_SPAWN_INDEX;
flag.scene = z64_game.scene_index;
flag.room = this->actor.room_index;
flag.setup = curr_scene_setup;

// Check if the Wonderitem should be overridden
override_t override = lookup_override_by_newflag(&flag);

Expand All @@ -147,4 +147,4 @@ uint32_t EnWonderItem_Kill_Hack(EnWonderItem* this) {
if ((this->switchFlag >= 0) && z64_Flags_GetSwitch(&z64_game, this->switchFlag))
return 1;
return 0;
}
}
4 changes: 2 additions & 2 deletions ASM/c/obj_mure3.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
z64_actor_t* Obj_Mure3_RupeeCircle_DropRupee(z64_actor_t* this, z64_xyzf_t* pos, uint16_t params, uint32_t index) {
xflag_t flag = Actor_GetAdditionalData(this)->flag;
if(flag.all) {
flag.subflag = index;
}
flag.subflag = index;
}
if(!Get_NewOverrideFlag(&flag)) {
drop_collectible_override_flag = flag;
z64_actor_t* spawned = (z64_actor_t*)z64_Item_DropCollectible2(&z64_game, pos, params);
Expand Down
20 changes: 20 additions & 0 deletions data/presets_default.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,9 @@
"shuffle_child_trade": [],
"shuffle_freestanding_items": "off",
"shuffle_pots": "off",
"shuffle_empty_pots": false,
"shuffle_crates": "off",
"shuffle_empty_crates": false,
"shuffle_cows": false,
"shuffle_beehives": false,
"shuffle_wonderitems": false,
Expand Down Expand Up @@ -240,7 +242,9 @@
"shuffle_child_trade": [],
"shuffle_freestanding_items": "off",
"shuffle_pots": "off",
"shuffle_empty_pots": false,
"shuffle_crates": "off",
"shuffle_empty_crates": false,
"shuffle_cows": false,
"shuffle_beehives": false,
"shuffle_wonderitems": false,
Expand Down Expand Up @@ -420,7 +424,9 @@
"shuffle_child_trade": [],
"shuffle_freestanding_items": "off",
"shuffle_pots": "off",
"shuffle_empty_pots": false,
"shuffle_crates": "off",
"shuffle_empty_crates": false,
"shuffle_cows": false,
"shuffle_beehives": false,
"shuffle_wonderitems": false,
Expand Down Expand Up @@ -596,7 +602,9 @@
"shuffle_child_trade": [],
"shuffle_freestanding_items": "off",
"shuffle_pots": "off",
"shuffle_empty_pots": false,
"shuffle_crates": "off",
"shuffle_empty_crates": false,
"shuffle_cows": false,
"shuffle_beehives": false,
"shuffle_wonderitems": false,
Expand Down Expand Up @@ -783,7 +791,9 @@
"shuffle_child_trade": [],
"shuffle_freestanding_items": "off",
"shuffle_pots": "off",
"shuffle_empty_pots": false,
"shuffle_crates": "off",
"shuffle_empty_crates": false,
"shuffle_cows": false,
"shuffle_beehives": false,
"shuffle_wonderitems": false,
Expand Down Expand Up @@ -960,7 +970,9 @@
"shuffle_child_trade": [],
"shuffle_freestanding_items": "off",
"shuffle_pots": "off",
"shuffle_empty_pots": false,
"shuffle_crates": "off",
"shuffle_empty_crates": false,
"shuffle_cows": false,
"shuffle_beehives": false,
"shuffle_wonderitems": false,
Expand Down Expand Up @@ -1155,7 +1167,9 @@
],
"shuffle_freestanding_items": "all",
"shuffle_pots": "all",
"shuffle_empty_pots": false,
"shuffle_crates": "all",
"shuffle_empty_crates": false,
"shuffle_cows": true,
"shuffle_beehives": true,
"shuffle_wonderitems": true,
Expand Down Expand Up @@ -1494,7 +1508,9 @@
"shuffle_child_trade": [],
"shuffle_freestanding_items": "off",
"shuffle_pots": "off",
"shuffle_empty_pots": false,
"shuffle_crates": "off",
"shuffle_empty_crates": false,
"shuffle_cows": false,
"shuffle_beehives": false,
"shuffle_wonderitems": false,
Expand Down Expand Up @@ -1660,7 +1676,9 @@
"shuffle_child_trade": [],
"shuffle_freestanding_items": "off",
"shuffle_pots": "off",
"shuffle_empty_pots": false,
"shuffle_crates": "off",
"shuffle_empty_crates": false,
"shuffle_cows": false,
"shuffle_beehives": false,
"shuffle_wonderitems": false,
Expand Down Expand Up @@ -1845,7 +1863,9 @@
"shuffle_child_trade": [],
"shuffle_freestanding_items": "off",
"shuffle_pots": "off",
"shuffle_empty_pots": false,
"shuffle_crates": "off",
"shuffle_empty_crates": false,
"shuffle_cows": false,
"shuffle_beehives": false,
"shuffle_wonderitems": false,
Expand Down

0 comments on commit 26da0b3

Please sign in to comment.