mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-02-28 08:41:47 -05:00
Set up Cvar and check for MS
Set up the cvar/imgui and add a check that we own the Master Sword (in case we're in the Ganon fight)
This commit is contained in:
parent
cf0b68c572
commit
efe3294f1c
@ -1001,6 +1001,8 @@ namespace SohImGui {
|
||||
Tooltip("Displays an icon and plays a sound when Stone of Agony\nshould be activated, for those without rumble");
|
||||
EnhancementCheckbox("Assignable Tunics and Boots", "gAssignableTunicsAndBoots");
|
||||
Tooltip("Allows equipping the tunic and boots to c-buttons");
|
||||
EnhancementCheckbox("Equipment Toggle", "gEquipmentCanBeRemoved");
|
||||
Tooltip("Allows equipment to be removed by toggling it off on\nthe equipment subscreen.");
|
||||
EnhancementCheckbox("Link's Cow in Both Time Periods", "gCowOfTime");
|
||||
Tooltip("Allows the Lon Lon Ranch obstacle course reward to be\nshared across time periods");
|
||||
EnhancementCheckbox("Enable visible guard vision", "gGuardVision");
|
||||
|
@ -512,7 +512,8 @@ void KaleidoScope_DrawEquipment(GlobalContext* globalCtx) {
|
||||
if (CVar_GetS32("gEquipmentCanBeRemoved", 0)) {
|
||||
|
||||
// If we're on the "swords" section of the equipment screen AND we're on a currently-equipped BGS/Giant's Knife
|
||||
if (pauseCtx->cursorY[PAUSE_EQUIP] == 0 && pauseCtx->cursorX[PAUSE_EQUIP] == 3 && CUR_EQUIP_VALUE(EQUIP_SWORD) == 3) {
|
||||
if (pauseCtx->cursorY[PAUSE_EQUIP] == 0 && pauseCtx->cursorX[PAUSE_EQUIP] == 3
|
||||
&& CUR_EQUIP_VALUE(EQUIP_SWORD) == 3 && CHECK_OWNED_EQUIP(0,1)){ // And we have the Master Sword
|
||||
Inventory_ChangeEquipment(EQUIP_SWORD, 2); // "Unequip" it by equipping Master Sword
|
||||
gSaveContext.equips.buttonItems[0] = ITEM_SWORD_MASTER;
|
||||
gSaveContext.infTable[29] = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user