mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2024-12-18 06:12:20 -05:00
Cleanup and fixes
This commit is contained in:
parent
d5ba83a814
commit
c28a604c6d
@ -349,12 +349,6 @@ const std::vector<FlagTable> flagTables = {
|
|||||||
{ 0x30, "Entered the Market" },
|
{ 0x30, "Entered the Market" },
|
||||||
} },
|
} },
|
||||||
{ "Randomizer Inf Flags", RANDOMIZER_INF, RAND_INF_MAX / 16, {
|
{ "Randomizer Inf Flags", RANDOMIZER_INF, RAND_INF_MAX / 16, {
|
||||||
{ RAND_INF_DUNGEONS_DONE_DEKU_TREE, "DUNGEONS_DONE_DEKU_TREE" },
|
|
||||||
{ RAND_INF_DUNGEONS_DONE_DODONGOS_CAVERN, "DUNGEONS_DONE_DODONGOS_CAVERN" },
|
|
||||||
{ RAND_INF_DUNGEONS_DONE_JABU_JABUS_BELLY, "DUNGEONS_DONE_JABU_JABUS_BELLY" },
|
|
||||||
{ RAND_INF_DUNGEONS_DONE_FOREST_TEMPLE, "DUNGEONS_DONE_FOREST_TEMPLE" },
|
|
||||||
{ RAND_INF_DUNGEONS_DONE_FIRE_TEMPLE, "DUNGEONS_DONE_FIRE_TEMPLE" },
|
|
||||||
{ RAND_INF_DUNGEONS_DONE_WATER_TEMPLE, "DUNGEONS_DONE_WATER_TEMPLE" },
|
|
||||||
{ RAND_INF_DUNGEONS_DONE_SPIRIT_TEMPLE, "DUNGEONS_DONE_SPIRIT_TEMPLE" },
|
{ RAND_INF_DUNGEONS_DONE_SPIRIT_TEMPLE, "DUNGEONS_DONE_SPIRIT_TEMPLE" },
|
||||||
{ RAND_INF_DUNGEONS_DONE_SHADOW_TEMPLE, "DUNGEONS_DONE_SHADOW_TEMPLE" },
|
{ RAND_INF_DUNGEONS_DONE_SHADOW_TEMPLE, "DUNGEONS_DONE_SHADOW_TEMPLE" },
|
||||||
|
|
||||||
|
@ -5,8 +5,9 @@
|
|||||||
#include "soh/OTRGlobals.h"
|
#include "soh/OTRGlobals.h"
|
||||||
|
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#include "overlays/actors/ovl_Obj_Tsubo/z_obj_tsubo.h"
|
#include "z64.h"
|
||||||
#include "variables.h"
|
#include "variables.h"
|
||||||
|
#include "overlays/actors/ovl_Obj_Tsubo/z_obj_tsubo.h"
|
||||||
|
|
||||||
u8 Randomizer_GetSettingValue(RandomizerSettingKey randoSettingKey);
|
u8 Randomizer_GetSettingValue(RandomizerSettingKey randoSettingKey);
|
||||||
GetItemEntry Randomizer_GetItemFromKnownCheck(RandomizerCheck randomizerCheck, GetItemID ogId);
|
GetItemEntry Randomizer_GetItemFromKnownCheck(RandomizerCheck randomizerCheck, GetItemID ogId);
|
||||||
@ -45,14 +46,6 @@ uint8_t ObjTsubo_RandomizerHoldsItem(ObjTsubo* potActor, PlayState* play) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
uint8_t ObjTsubo_RandomizerSkipItemCutscene(ObjTsubo* potActor) {
|
|
||||||
/*return
|
|
||||||
potActor->actor.params == ITEM00_SMALL_KEY && giEntry.modIndex == MOD_NONE &&
|
|
||||||
((giEntry.itemId >= ITEM_RUPEE_GREEN && giEntry.itemId <= ITEM_RUPEE_RED) || giEntry.itemId == ITEM_HEART ||
|
|
||||||
(giEntry.itemId >= ITEM_NUTS_5 && giEntry.itemId <= ITEM_SEEDS_30) || giEntry.itemId == ITEM_MAGIC_SMALL ||
|
|
||||||
giEntry.itemId == ITEM_MAGIC_LARGE);*/
|
|
||||||
}
|
|
||||||
|
|
||||||
void ObjTsubo_RandomizerSpawnCollectible(ObjTsubo* potActor) {
|
void ObjTsubo_RandomizerSpawnCollectible(ObjTsubo* potActor) {
|
||||||
EnItem00* item00 =
|
EnItem00* item00 =
|
||||||
(EnItem00*)Item_DropCollectible2(gPlayState, &potActor->actor.world.pos, ITEM00_SOH_GIVE_ITEM_ENTRY);
|
(EnItem00*)Item_DropCollectible2(gPlayState, &potActor->actor.world.pos, ITEM00_SOH_GIVE_ITEM_ENTRY);
|
||||||
|
@ -1,12 +1,9 @@
|
|||||||
#ifndef SHUFFLEPOTS_H
|
#ifndef SHUFFLEPOTS_H
|
||||||
#define SHUFFLEPOTS_H
|
#define SHUFFLEPOTS_H
|
||||||
|
|
||||||
#include "z64.h"
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
void ObjTsubo_RandomizerDraw(Actor* potActor, PlayState* play);
|
|
||||||
void RegisterShufflePots();
|
void RegisterShufflePots();
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
};
|
};
|
||||||
|
@ -1,12 +1,6 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
RAND_INF_DUNGEONS_DONE_DEKU_TREE,
|
|
||||||
RAND_INF_DUNGEONS_DONE_DODONGOS_CAVERN,
|
|
||||||
RAND_INF_DUNGEONS_DONE_JABU_JABUS_BELLY,
|
|
||||||
RAND_INF_DUNGEONS_DONE_FOREST_TEMPLE,
|
|
||||||
RAND_INF_DUNGEONS_DONE_FIRE_TEMPLE,
|
|
||||||
RAND_INF_DUNGEONS_DONE_WATER_TEMPLE,
|
|
||||||
RAND_INF_DUNGEONS_DONE_SPIRIT_TEMPLE,
|
RAND_INF_DUNGEONS_DONE_SPIRIT_TEMPLE,
|
||||||
RAND_INF_DUNGEONS_DONE_SHADOW_TEMPLE,
|
RAND_INF_DUNGEONS_DONE_SHADOW_TEMPLE,
|
||||||
|
|
||||||
|
@ -667,7 +667,6 @@ void Settings::CreateOptions() {
|
|||||||
&mOptions[RSK_SHUFFLE_SWIM],
|
&mOptions[RSK_SHUFFLE_SWIM],
|
||||||
&mOptions[RSK_SHUFFLE_WEIRD_EGG],
|
&mOptions[RSK_SHUFFLE_WEIRD_EGG],
|
||||||
&mOptions[RSK_SHUFFLE_GERUDO_MEMBERSHIP_CARD],
|
&mOptions[RSK_SHUFFLE_GERUDO_MEMBERSHIP_CARD],
|
||||||
&mOptions[RSK_SHUFFLE_POTS],
|
|
||||||
&mOptions[RSK_SHUFFLE_FISHING_POLE],
|
&mOptions[RSK_SHUFFLE_FISHING_POLE],
|
||||||
&mOptions[RSK_SHUFFLE_DEKU_STICK_BAG],
|
&mOptions[RSK_SHUFFLE_DEKU_STICK_BAG],
|
||||||
&mOptions[RSK_SHUFFLE_DEKU_NUT_BAG],
|
&mOptions[RSK_SHUFFLE_DEKU_NUT_BAG],
|
||||||
@ -680,6 +679,7 @@ void Settings::CreateOptions() {
|
|||||||
&mOptions[RSK_FISHSANITY_POND_COUNT],
|
&mOptions[RSK_FISHSANITY_POND_COUNT],
|
||||||
&mOptions[RSK_FISHSANITY_AGE_SPLIT],
|
&mOptions[RSK_FISHSANITY_AGE_SPLIT],
|
||||||
&mOptions[RSK_SHUFFLE_SCRUBS],
|
&mOptions[RSK_SHUFFLE_SCRUBS],
|
||||||
|
&mOptions[RSK_SHUFFLE_POTS],
|
||||||
&mOptions[RSK_SHUFFLE_BEEHIVES],
|
&mOptions[RSK_SHUFFLE_BEEHIVES],
|
||||||
&mOptions[RSK_SHUFFLE_COWS],
|
&mOptions[RSK_SHUFFLE_COWS],
|
||||||
&mOptions[RSK_SHUFFLE_MAGIC_BEANS],
|
&mOptions[RSK_SHUFFLE_MAGIC_BEANS],
|
||||||
@ -886,6 +886,7 @@ void Settings::CreateOptions() {
|
|||||||
&mOptions[RSK_SHUFFLE_FISHING_POLE],
|
&mOptions[RSK_SHUFFLE_FISHING_POLE],
|
||||||
&mOptions[RSK_SHUFFLE_TOKENS],
|
&mOptions[RSK_SHUFFLE_TOKENS],
|
||||||
&mOptions[RSK_SHUFFLE_SCRUBS],
|
&mOptions[RSK_SHUFFLE_SCRUBS],
|
||||||
|
&mOptions[RSK_SHUFFLE_POTS],
|
||||||
&mOptions[RSK_SHUFFLE_BEEHIVES],
|
&mOptions[RSK_SHUFFLE_BEEHIVES],
|
||||||
&mOptions[RSK_SHUFFLE_COWS],
|
&mOptions[RSK_SHUFFLE_COWS],
|
||||||
&mOptions[RSK_SHUFFLE_KOKIRI_SWORD],
|
&mOptions[RSK_SHUFFLE_KOKIRI_SWORD],
|
||||||
@ -894,7 +895,6 @@ void Settings::CreateOptions() {
|
|||||||
&mOptions[RSK_SHUFFLE_SWIM],
|
&mOptions[RSK_SHUFFLE_SWIM],
|
||||||
&mOptions[RSK_SHUFFLE_WEIRD_EGG],
|
&mOptions[RSK_SHUFFLE_WEIRD_EGG],
|
||||||
&mOptions[RSK_SHUFFLE_GERUDO_MEMBERSHIP_CARD],
|
&mOptions[RSK_SHUFFLE_GERUDO_MEMBERSHIP_CARD],
|
||||||
&mOptions[RSK_SHUFFLE_POTS],
|
|
||||||
&mOptions[RSK_SHUFFLE_MAGIC_BEANS],
|
&mOptions[RSK_SHUFFLE_MAGIC_BEANS],
|
||||||
&mOptions[RSK_SHUFFLE_MERCHANTS],
|
&mOptions[RSK_SHUFFLE_MERCHANTS],
|
||||||
&mOptions[RSK_SHUFFLE_FROG_SONG_RUPEES],
|
&mOptions[RSK_SHUFFLE_FROG_SONG_RUPEES],
|
||||||
@ -1077,6 +1077,7 @@ void Settings::CreateOptions() {
|
|||||||
&mOptions[RSK_FISHSANITY_POND_COUNT],
|
&mOptions[RSK_FISHSANITY_POND_COUNT],
|
||||||
&mOptions[RSK_FISHSANITY_AGE_SPLIT],
|
&mOptions[RSK_FISHSANITY_AGE_SPLIT],
|
||||||
&mOptions[RSK_SHUFFLE_SCRUBS],
|
&mOptions[RSK_SHUFFLE_SCRUBS],
|
||||||
|
&mOptions[RSK_SHUFFLE_POTS],
|
||||||
&mOptions[RSK_SHUFFLE_BEEHIVES],
|
&mOptions[RSK_SHUFFLE_BEEHIVES],
|
||||||
&mOptions[RSK_SHUFFLE_COWS],
|
&mOptions[RSK_SHUFFLE_COWS],
|
||||||
&mOptions[RSK_SHUFFLE_MAGIC_BEANS],
|
&mOptions[RSK_SHUFFLE_MAGIC_BEANS],
|
||||||
@ -2353,7 +2354,6 @@ void Settings::ParseJson(nlohmann::json spoilerFileJson) {
|
|||||||
case RSK_FISHSANITY_AGE_SPLIT:
|
case RSK_FISHSANITY_AGE_SPLIT:
|
||||||
case RSK_FISHING_POLE_HINT:
|
case RSK_FISHING_POLE_HINT:
|
||||||
case RSK_SHUFFLE_GERUDO_MEMBERSHIP_CARD:
|
case RSK_SHUFFLE_GERUDO_MEMBERSHIP_CARD:
|
||||||
case RSK_SHUFFLE_POTS:
|
|
||||||
case RSK_SHUFFLE_BEEHIVES:
|
case RSK_SHUFFLE_BEEHIVES:
|
||||||
case RSK_SHUFFLE_COWS:
|
case RSK_SHUFFLE_COWS:
|
||||||
case RSK_SHUFFLE_ADULT_TRADE:
|
case RSK_SHUFFLE_ADULT_TRADE:
|
||||||
@ -2682,6 +2682,17 @@ void Settings::ParseJson(nlohmann::json spoilerFileJson) {
|
|||||||
mOptions[index].SetSelectedIndex(RO_TOKENSANITY_ALL);
|
mOptions[index].SetSelectedIndex(RO_TOKENSANITY_ALL);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case RSK_SHUFFLE_POTS:
|
||||||
|
if (it.value() == "Off") {
|
||||||
|
mOptions[index].SetSelectedIndex(RO_SHUFFLE_POTS_OFF);
|
||||||
|
} else if (it.value() == "Dungeons") {
|
||||||
|
mOptions[index].SetSelectedIndex(RO_SHUFFLE_POTS_DUNGEONS);
|
||||||
|
} else if (it.value() == "Overworld") {
|
||||||
|
mOptions[index].SetSelectedIndex(RO_SHUFFLE_POTS_OVERWORLD);
|
||||||
|
} else if (it.value() == "All Pots") {
|
||||||
|
mOptions[index].SetSelectedIndex(RO_SHUFFLE_POTS_ALL);
|
||||||
|
}
|
||||||
|
break;
|
||||||
case RSK_LINKS_POCKET:
|
case RSK_LINKS_POCKET:
|
||||||
if (it.value() == "Dungeon Reward") {
|
if (it.value() == "Dungeon Reward") {
|
||||||
mOptions[index].SetSelectedIndex(RO_LINKS_POCKET_DUNGEON_REWARD);
|
mOptions[index].SetSelectedIndex(RO_LINKS_POCKET_DUNGEON_REWARD);
|
||||||
|
@ -346,7 +346,5 @@ void ObjTsubo_Update(Actor* thisx, PlayState* play) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void ObjTsubo_Draw(Actor* thisx, PlayState* play) {
|
void ObjTsubo_Draw(Actor* thisx, PlayState* play) {
|
||||||
ObjTsubo* this = (ObjTsubo*)thisx;
|
|
||||||
|
|
||||||
Gfx_DrawDListOpa(play, D_80BA1B84[(thisx->params >> 8) & 1]);
|
Gfx_DrawDListOpa(play, D_80BA1B84[(thisx->params >> 8) & 1]);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user