mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-08-13 01:57:18 -07:00
Fix: SoT Time Travel B-Button Behaviour (#2720)
* time travel allows fishing rod + fixes vanilla ToT age change behaviour * oops removed too much
This commit is contained in:
parent
8f0f8c7644
commit
c146ca4aa5
2 changed files with 7 additions and 24 deletions
|
@ -1417,7 +1417,7 @@ void Inventory_SwapAgeEquipment(void) {
|
|||
if (i != 0) {
|
||||
gSaveContext.childEquips.buttonItems[i] = gSaveContext.equips.buttonItems[i];
|
||||
} else {
|
||||
if (CVarGetInteger("gSwitchAge", 0) &&
|
||||
if ((CVarGetInteger("gSwitchAge", 0) || CVarGetInteger("gSwitchTimeline", 0)) &&
|
||||
(gSaveContext.infTable[29] & 1)) {
|
||||
gSaveContext.childEquips.buttonItems[i] = ITEM_NONE;
|
||||
} else {
|
||||
|
@ -1501,7 +1501,8 @@ void Inventory_SwapAgeEquipment(void) {
|
|||
gSaveContext.adultEquips.equipment = gSaveContext.equips.equipment;
|
||||
|
||||
if (gSaveContext.childEquips.buttonItems[0] != ITEM_NONE ||
|
||||
CVarGetInteger("gSwitchAge", 0)) {
|
||||
CVarGetInteger("gSwitchAge", 0) ||
|
||||
CVarGetInteger("gSwitchTimeline", 0)) {
|
||||
for (i = 0; i < ARRAY_COUNT(gSaveContext.equips.buttonItems); i++) {
|
||||
gSaveContext.equips.buttonItems[i] = gSaveContext.childEquips.buttonItems[i];
|
||||
|
||||
|
@ -1542,7 +1543,7 @@ void Inventory_SwapAgeEquipment(void) {
|
|||
gSaveContext.equips.equipment = 0x1111;
|
||||
}
|
||||
|
||||
if (CVarGetInteger("gSwitchAge", 0) &&
|
||||
if ((CVarGetInteger("gSwitchAge", 0) || CVarGetInteger("gSwitchTimeline", 0)) &&
|
||||
(gSaveContext.equips.buttonItems[0] == ITEM_NONE)) {
|
||||
gSaveContext.infTable[29] |= 1;
|
||||
if (gSaveContext.childEquips.equipment == 0) {
|
||||
|
@ -1552,7 +1553,7 @@ void Inventory_SwapAgeEquipment(void) {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
CVarSetInteger("gSwitchTimeline", 0);
|
||||
temp = gEquipMasks[EQUIP_SHIELD] & gSaveContext.equips.equipment;
|
||||
if (temp != 0) {
|
||||
temp >>= gEquipShifts[EQUIP_SHIELD];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue