mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-08-19 21:03:42 -07:00
Allow console commands in debug save (#5675)
This commit is contained in:
parent
9cdffc080b
commit
ce38e03562
1 changed files with 43 additions and 43 deletions
|
@ -50,7 +50,7 @@ namespace GameInteractionEffect {
|
||||||
|
|
||||||
// MARK: - Flags
|
// MARK: - Flags
|
||||||
GameInteractionEffectQueryResult SetSceneFlag::CanBeApplied() {
|
GameInteractionEffectQueryResult SetSceneFlag::CanBeApplied() {
|
||||||
if (!GameInteractor::IsSaveLoaded()) {
|
if (!GameInteractor::IsSaveLoaded(true)) {
|
||||||
return GameInteractionEffectQueryResult::TemporarilyNotPossible;
|
return GameInteractionEffectQueryResult::TemporarilyNotPossible;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -62,7 +62,7 @@ void SetSceneFlag::_Apply() {
|
||||||
}
|
}
|
||||||
|
|
||||||
GameInteractionEffectQueryResult UnsetSceneFlag::CanBeApplied() {
|
GameInteractionEffectQueryResult UnsetSceneFlag::CanBeApplied() {
|
||||||
if (!GameInteractor::IsSaveLoaded()) {
|
if (!GameInteractor::IsSaveLoaded(true)) {
|
||||||
return GameInteractionEffectQueryResult::TemporarilyNotPossible;
|
return GameInteractionEffectQueryResult::TemporarilyNotPossible;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -74,7 +74,7 @@ void UnsetSceneFlag::_Apply() {
|
||||||
}
|
}
|
||||||
|
|
||||||
GameInteractionEffectQueryResult SetFlag::CanBeApplied() {
|
GameInteractionEffectQueryResult SetFlag::CanBeApplied() {
|
||||||
if (!GameInteractor::IsSaveLoaded()) {
|
if (!GameInteractor::IsSaveLoaded(true)) {
|
||||||
return GameInteractionEffectQueryResult::TemporarilyNotPossible;
|
return GameInteractionEffectQueryResult::TemporarilyNotPossible;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -86,7 +86,7 @@ void SetFlag::_Apply() {
|
||||||
}
|
}
|
||||||
|
|
||||||
GameInteractionEffectQueryResult UnsetFlag::CanBeApplied() {
|
GameInteractionEffectQueryResult UnsetFlag::CanBeApplied() {
|
||||||
if (!GameInteractor::IsSaveLoaded()) {
|
if (!GameInteractor::IsSaveLoaded(true)) {
|
||||||
return GameInteractionEffectQueryResult::TemporarilyNotPossible;
|
return GameInteractionEffectQueryResult::TemporarilyNotPossible;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -99,7 +99,7 @@ void UnsetFlag::_Apply() {
|
||||||
|
|
||||||
// MARK: - ModifyHeartContainers
|
// MARK: - ModifyHeartContainers
|
||||||
GameInteractionEffectQueryResult ModifyHeartContainers::CanBeApplied() {
|
GameInteractionEffectQueryResult ModifyHeartContainers::CanBeApplied() {
|
||||||
if (!GameInteractor::IsSaveLoaded()) {
|
if (!GameInteractor::IsSaveLoaded(true)) {
|
||||||
return GameInteractionEffectQueryResult::TemporarilyNotPossible;
|
return GameInteractionEffectQueryResult::TemporarilyNotPossible;
|
||||||
} else if ((parameters[0] > 0 && (gSaveContext.healthCapacity + (parameters[0] * 0x10) > 0x140)) ||
|
} else if ((parameters[0] > 0 && (gSaveContext.healthCapacity + (parameters[0] * 0x10) > 0x140)) ||
|
||||||
(parameters[0] < 0 && (gSaveContext.healthCapacity + (parameters[0] * 0x10) < 0x10))) {
|
(parameters[0] < 0 && (gSaveContext.healthCapacity + (parameters[0] * 0x10) < 0x10))) {
|
||||||
|
@ -115,7 +115,7 @@ void ModifyHeartContainers::_Apply() {
|
||||||
|
|
||||||
// MARK: - FillMagic
|
// MARK: - FillMagic
|
||||||
GameInteractionEffectQueryResult FillMagic::CanBeApplied() {
|
GameInteractionEffectQueryResult FillMagic::CanBeApplied() {
|
||||||
if (!GameInteractor::IsSaveLoaded()) {
|
if (!GameInteractor::IsSaveLoaded(true)) {
|
||||||
return GameInteractionEffectQueryResult::TemporarilyNotPossible;
|
return GameInteractionEffectQueryResult::TemporarilyNotPossible;
|
||||||
} else if (!gSaveContext.isMagicAcquired || gSaveContext.magic >= ((gSaveContext.isDoubleMagicAcquired + 1) * 48)) {
|
} else if (!gSaveContext.isMagicAcquired || gSaveContext.magic >= ((gSaveContext.isDoubleMagicAcquired + 1) * 48)) {
|
||||||
return GameInteractionEffectQueryResult::NotPossible;
|
return GameInteractionEffectQueryResult::NotPossible;
|
||||||
|
@ -129,7 +129,7 @@ void FillMagic::_Apply() {
|
||||||
|
|
||||||
// MARK: - EmptyMagic
|
// MARK: - EmptyMagic
|
||||||
GameInteractionEffectQueryResult EmptyMagic::CanBeApplied() {
|
GameInteractionEffectQueryResult EmptyMagic::CanBeApplied() {
|
||||||
if (!GameInteractor::IsSaveLoaded()) {
|
if (!GameInteractor::IsSaveLoaded(true)) {
|
||||||
return GameInteractionEffectQueryResult::TemporarilyNotPossible;
|
return GameInteractionEffectQueryResult::TemporarilyNotPossible;
|
||||||
} else if (!gSaveContext.isMagicAcquired || gSaveContext.magic <= 0) {
|
} else if (!gSaveContext.isMagicAcquired || gSaveContext.magic <= 0) {
|
||||||
return GameInteractionEffectQueryResult::NotPossible;
|
return GameInteractionEffectQueryResult::NotPossible;
|
||||||
|
@ -143,7 +143,7 @@ void EmptyMagic::_Apply() {
|
||||||
|
|
||||||
// MARK: - ModifyRupees
|
// MARK: - ModifyRupees
|
||||||
GameInteractionEffectQueryResult ModifyRupees::CanBeApplied() {
|
GameInteractionEffectQueryResult ModifyRupees::CanBeApplied() {
|
||||||
if (!GameInteractor::IsSaveLoaded()) {
|
if (!GameInteractor::IsSaveLoaded(true)) {
|
||||||
return GameInteractionEffectQueryResult::TemporarilyNotPossible;
|
return GameInteractionEffectQueryResult::TemporarilyNotPossible;
|
||||||
} else if ((parameters[0] < 0 && gSaveContext.rupees <= 0) ||
|
} else if ((parameters[0] < 0 && gSaveContext.rupees <= 0) ||
|
||||||
(parameters[0] > 0 && gSaveContext.rupees >= CUR_CAPACITY(UPG_WALLET))) {
|
(parameters[0] > 0 && gSaveContext.rupees >= CUR_CAPACITY(UPG_WALLET))) {
|
||||||
|
@ -158,7 +158,7 @@ void ModifyRupees::_Apply() {
|
||||||
|
|
||||||
// MARK: - NoUI
|
// MARK: - NoUI
|
||||||
GameInteractionEffectQueryResult NoUI::CanBeApplied() {
|
GameInteractionEffectQueryResult NoUI::CanBeApplied() {
|
||||||
if (!GameInteractor::IsSaveLoaded() || GameInteractor::IsGameplayPaused()) {
|
if (!GameInteractor::IsSaveLoaded(true) || GameInteractor::IsGameplayPaused()) {
|
||||||
return GameInteractionEffectQueryResult::TemporarilyNotPossible;
|
return GameInteractionEffectQueryResult::TemporarilyNotPossible;
|
||||||
} else {
|
} else {
|
||||||
return GameInteractionEffectQueryResult::Possible;
|
return GameInteractionEffectQueryResult::Possible;
|
||||||
|
@ -173,7 +173,7 @@ void NoUI::_Remove() {
|
||||||
|
|
||||||
// MARK: - ModifyGravity
|
// MARK: - ModifyGravity
|
||||||
GameInteractionEffectQueryResult ModifyGravity::CanBeApplied() {
|
GameInteractionEffectQueryResult ModifyGravity::CanBeApplied() {
|
||||||
if (!GameInteractor::IsSaveLoaded() || GameInteractor::IsGameplayPaused()) {
|
if (!GameInteractor::IsSaveLoaded(true) || GameInteractor::IsGameplayPaused()) {
|
||||||
return GameInteractionEffectQueryResult::TemporarilyNotPossible;
|
return GameInteractionEffectQueryResult::TemporarilyNotPossible;
|
||||||
} else {
|
} else {
|
||||||
return GameInteractionEffectQueryResult::Possible;
|
return GameInteractionEffectQueryResult::Possible;
|
||||||
|
@ -188,7 +188,7 @@ void ModifyGravity::_Remove() {
|
||||||
|
|
||||||
// MARK: - ModifyHealth
|
// MARK: - ModifyHealth
|
||||||
GameInteractionEffectQueryResult ModifyHealth::CanBeApplied() {
|
GameInteractionEffectQueryResult ModifyHealth::CanBeApplied() {
|
||||||
if (!GameInteractor::IsSaveLoaded()) {
|
if (!GameInteractor::IsSaveLoaded(true)) {
|
||||||
return GameInteractionEffectQueryResult::TemporarilyNotPossible;
|
return GameInteractionEffectQueryResult::TemporarilyNotPossible;
|
||||||
} else if ((parameters[0] > 0 && gSaveContext.health == gSaveContext.healthCapacity) ||
|
} else if ((parameters[0] > 0 && gSaveContext.health == gSaveContext.healthCapacity) ||
|
||||||
(parameters[0] < 0 && (gSaveContext.health + (16 * parameters[0]) <= 0))) {
|
(parameters[0] < 0 && (gSaveContext.health + (16 * parameters[0]) <= 0))) {
|
||||||
|
@ -204,7 +204,7 @@ void ModifyHealth::_Apply() {
|
||||||
// MARK: - SetPlayerHealth
|
// MARK: - SetPlayerHealth
|
||||||
GameInteractionEffectQueryResult SetPlayerHealth::CanBeApplied() {
|
GameInteractionEffectQueryResult SetPlayerHealth::CanBeApplied() {
|
||||||
Player* player = GET_PLAYER(gPlayState);
|
Player* player = GET_PLAYER(gPlayState);
|
||||||
if (!GameInteractor::IsSaveLoaded() || GameInteractor::IsGameplayPaused()) {
|
if (!GameInteractor::IsSaveLoaded(true) || GameInteractor::IsGameplayPaused()) {
|
||||||
return GameInteractionEffectQueryResult::TemporarilyNotPossible;
|
return GameInteractionEffectQueryResult::TemporarilyNotPossible;
|
||||||
} else {
|
} else {
|
||||||
return GameInteractionEffectQueryResult::Possible;
|
return GameInteractionEffectQueryResult::Possible;
|
||||||
|
@ -217,7 +217,7 @@ void SetPlayerHealth::_Apply() {
|
||||||
// MARK: - FreezePlayer
|
// MARK: - FreezePlayer
|
||||||
GameInteractionEffectQueryResult FreezePlayer::CanBeApplied() {
|
GameInteractionEffectQueryResult FreezePlayer::CanBeApplied() {
|
||||||
Player* player = GET_PLAYER(gPlayState);
|
Player* player = GET_PLAYER(gPlayState);
|
||||||
if (!GameInteractor::IsSaveLoaded() || GameInteractor::IsGameplayPaused() || !PlayerGrounded(player)) {
|
if (!GameInteractor::IsSaveLoaded(true) || GameInteractor::IsGameplayPaused() || !PlayerGrounded(player)) {
|
||||||
return GameInteractionEffectQueryResult::TemporarilyNotPossible;
|
return GameInteractionEffectQueryResult::TemporarilyNotPossible;
|
||||||
} else {
|
} else {
|
||||||
return GameInteractionEffectQueryResult::Possible;
|
return GameInteractionEffectQueryResult::Possible;
|
||||||
|
@ -230,7 +230,7 @@ void FreezePlayer::_Apply() {
|
||||||
// MARK: - BurnPlayer
|
// MARK: - BurnPlayer
|
||||||
GameInteractionEffectQueryResult BurnPlayer::CanBeApplied() {
|
GameInteractionEffectQueryResult BurnPlayer::CanBeApplied() {
|
||||||
Player* player = GET_PLAYER(gPlayState);
|
Player* player = GET_PLAYER(gPlayState);
|
||||||
if (!GameInteractor::IsSaveLoaded() || GameInteractor::IsGameplayPaused() || !PlayerGrounded(player)) {
|
if (!GameInteractor::IsSaveLoaded(true) || GameInteractor::IsGameplayPaused() || !PlayerGrounded(player)) {
|
||||||
return GameInteractionEffectQueryResult::TemporarilyNotPossible;
|
return GameInteractionEffectQueryResult::TemporarilyNotPossible;
|
||||||
} else {
|
} else {
|
||||||
return GameInteractionEffectQueryResult::Possible;
|
return GameInteractionEffectQueryResult::Possible;
|
||||||
|
@ -243,7 +243,7 @@ void BurnPlayer::_Apply() {
|
||||||
// MARK: - ElectrocutePlayer
|
// MARK: - ElectrocutePlayer
|
||||||
GameInteractionEffectQueryResult ElectrocutePlayer::CanBeApplied() {
|
GameInteractionEffectQueryResult ElectrocutePlayer::CanBeApplied() {
|
||||||
Player* player = GET_PLAYER(gPlayState);
|
Player* player = GET_PLAYER(gPlayState);
|
||||||
if (!GameInteractor::IsSaveLoaded() || GameInteractor::IsGameplayPaused() || !PlayerGrounded(player)) {
|
if (!GameInteractor::IsSaveLoaded(true) || GameInteractor::IsGameplayPaused() || !PlayerGrounded(player)) {
|
||||||
return GameInteractionEffectQueryResult::TemporarilyNotPossible;
|
return GameInteractionEffectQueryResult::TemporarilyNotPossible;
|
||||||
} else {
|
} else {
|
||||||
return GameInteractionEffectQueryResult::Possible;
|
return GameInteractionEffectQueryResult::Possible;
|
||||||
|
@ -256,7 +256,7 @@ void ElectrocutePlayer::_Apply() {
|
||||||
// MARK: - KnockbackPlayer
|
// MARK: - KnockbackPlayer
|
||||||
GameInteractionEffectQueryResult KnockbackPlayer::CanBeApplied() {
|
GameInteractionEffectQueryResult KnockbackPlayer::CanBeApplied() {
|
||||||
Player* player = GET_PLAYER(gPlayState);
|
Player* player = GET_PLAYER(gPlayState);
|
||||||
if (!GameInteractor::IsSaveLoaded() || GameInteractor::IsGameplayPaused() ||
|
if (!GameInteractor::IsSaveLoaded(true) || GameInteractor::IsGameplayPaused() ||
|
||||||
player->stateFlags2 & PLAYER_STATE2_CRAWLING) {
|
player->stateFlags2 & PLAYER_STATE2_CRAWLING) {
|
||||||
return GameInteractionEffectQueryResult::TemporarilyNotPossible;
|
return GameInteractionEffectQueryResult::TemporarilyNotPossible;
|
||||||
} else {
|
} else {
|
||||||
|
@ -269,7 +269,7 @@ void KnockbackPlayer::_Apply() {
|
||||||
|
|
||||||
// MARK: - ModifyLinkSize
|
// MARK: - ModifyLinkSize
|
||||||
GameInteractionEffectQueryResult ModifyLinkSize::CanBeApplied() {
|
GameInteractionEffectQueryResult ModifyLinkSize::CanBeApplied() {
|
||||||
if (!GameInteractor::IsSaveLoaded() || GameInteractor::IsGameplayPaused()) {
|
if (!GameInteractor::IsSaveLoaded(true) || GameInteractor::IsGameplayPaused()) {
|
||||||
return GameInteractionEffectQueryResult::TemporarilyNotPossible;
|
return GameInteractionEffectQueryResult::TemporarilyNotPossible;
|
||||||
} else {
|
} else {
|
||||||
return GameInteractionEffectQueryResult::Possible;
|
return GameInteractionEffectQueryResult::Possible;
|
||||||
|
@ -284,7 +284,7 @@ void ModifyLinkSize::_Remove() {
|
||||||
|
|
||||||
// MARK: - InvisibleLink
|
// MARK: - InvisibleLink
|
||||||
GameInteractionEffectQueryResult InvisibleLink::CanBeApplied() {
|
GameInteractionEffectQueryResult InvisibleLink::CanBeApplied() {
|
||||||
if (!GameInteractor::IsSaveLoaded() || GameInteractor::IsGameplayPaused()) {
|
if (!GameInteractor::IsSaveLoaded(true) || GameInteractor::IsGameplayPaused()) {
|
||||||
return GameInteractionEffectQueryResult::TemporarilyNotPossible;
|
return GameInteractionEffectQueryResult::TemporarilyNotPossible;
|
||||||
} else {
|
} else {
|
||||||
return GameInteractionEffectQueryResult::Possible;
|
return GameInteractionEffectQueryResult::Possible;
|
||||||
|
@ -299,7 +299,7 @@ void InvisibleLink::_Remove() {
|
||||||
|
|
||||||
// MARK: - PacifistMode
|
// MARK: - PacifistMode
|
||||||
GameInteractionEffectQueryResult PacifistMode::CanBeApplied() {
|
GameInteractionEffectQueryResult PacifistMode::CanBeApplied() {
|
||||||
if (!GameInteractor::IsSaveLoaded() || GameInteractor::IsGameplayPaused()) {
|
if (!GameInteractor::IsSaveLoaded(true) || GameInteractor::IsGameplayPaused()) {
|
||||||
return GameInteractionEffectQueryResult::TemporarilyNotPossible;
|
return GameInteractionEffectQueryResult::TemporarilyNotPossible;
|
||||||
} else {
|
} else {
|
||||||
return GameInteractionEffectQueryResult::Possible;
|
return GameInteractionEffectQueryResult::Possible;
|
||||||
|
@ -314,7 +314,7 @@ void PacifistMode::_Remove() {
|
||||||
|
|
||||||
// MARK: - DisableZTargeting
|
// MARK: - DisableZTargeting
|
||||||
GameInteractionEffectQueryResult DisableZTargeting::CanBeApplied() {
|
GameInteractionEffectQueryResult DisableZTargeting::CanBeApplied() {
|
||||||
if (!GameInteractor::IsSaveLoaded() || GameInteractor::IsGameplayPaused()) {
|
if (!GameInteractor::IsSaveLoaded(true) || GameInteractor::IsGameplayPaused()) {
|
||||||
return GameInteractionEffectQueryResult::TemporarilyNotPossible;
|
return GameInteractionEffectQueryResult::TemporarilyNotPossible;
|
||||||
} else {
|
} else {
|
||||||
return GameInteractionEffectQueryResult::Possible;
|
return GameInteractionEffectQueryResult::Possible;
|
||||||
|
@ -329,7 +329,7 @@ void DisableZTargeting::_Remove() {
|
||||||
|
|
||||||
// MARK: - WeatherRainstorm
|
// MARK: - WeatherRainstorm
|
||||||
GameInteractionEffectQueryResult WeatherRainstorm::CanBeApplied() {
|
GameInteractionEffectQueryResult WeatherRainstorm::CanBeApplied() {
|
||||||
if (!GameInteractor::IsSaveLoaded() || GameInteractor::IsGameplayPaused()) {
|
if (!GameInteractor::IsSaveLoaded(true) || GameInteractor::IsGameplayPaused()) {
|
||||||
return GameInteractionEffectQueryResult::TemporarilyNotPossible;
|
return GameInteractionEffectQueryResult::TemporarilyNotPossible;
|
||||||
} else {
|
} else {
|
||||||
return GameInteractionEffectQueryResult::Possible;
|
return GameInteractionEffectQueryResult::Possible;
|
||||||
|
@ -344,7 +344,7 @@ void WeatherRainstorm::_Remove() {
|
||||||
|
|
||||||
// MARK: - ReverseControls
|
// MARK: - ReverseControls
|
||||||
GameInteractionEffectQueryResult ReverseControls::CanBeApplied() {
|
GameInteractionEffectQueryResult ReverseControls::CanBeApplied() {
|
||||||
if (!GameInteractor::IsSaveLoaded()) {
|
if (!GameInteractor::IsSaveLoaded(true)) {
|
||||||
return GameInteractionEffectQueryResult::TemporarilyNotPossible;
|
return GameInteractionEffectQueryResult::TemporarilyNotPossible;
|
||||||
} else {
|
} else {
|
||||||
return GameInteractionEffectQueryResult::Possible;
|
return GameInteractionEffectQueryResult::Possible;
|
||||||
|
@ -359,7 +359,7 @@ void ReverseControls::_Remove() {
|
||||||
|
|
||||||
// MARK: - ForceEquipBoots
|
// MARK: - ForceEquipBoots
|
||||||
GameInteractionEffectQueryResult ForceEquipBoots::CanBeApplied() {
|
GameInteractionEffectQueryResult ForceEquipBoots::CanBeApplied() {
|
||||||
if (!GameInteractor::IsSaveLoaded() || GameInteractor::IsGameplayPaused()) {
|
if (!GameInteractor::IsSaveLoaded(true) || GameInteractor::IsGameplayPaused()) {
|
||||||
return GameInteractionEffectQueryResult::TemporarilyNotPossible;
|
return GameInteractionEffectQueryResult::TemporarilyNotPossible;
|
||||||
} else {
|
} else {
|
||||||
return GameInteractionEffectQueryResult::Possible;
|
return GameInteractionEffectQueryResult::Possible;
|
||||||
|
@ -374,7 +374,7 @@ void ForceEquipBoots::_Remove() {
|
||||||
|
|
||||||
// MARK: - ModifyMovementSpeedMultiplier
|
// MARK: - ModifyMovementSpeedMultiplier
|
||||||
GameInteractionEffectQueryResult ModifyMovementSpeedMultiplier::CanBeApplied() {
|
GameInteractionEffectQueryResult ModifyMovementSpeedMultiplier::CanBeApplied() {
|
||||||
if (!GameInteractor::IsSaveLoaded() || GameInteractor::IsGameplayPaused()) {
|
if (!GameInteractor::IsSaveLoaded(true) || GameInteractor::IsGameplayPaused()) {
|
||||||
return GameInteractionEffectQueryResult::TemporarilyNotPossible;
|
return GameInteractionEffectQueryResult::TemporarilyNotPossible;
|
||||||
} else {
|
} else {
|
||||||
return GameInteractionEffectQueryResult::Possible;
|
return GameInteractionEffectQueryResult::Possible;
|
||||||
|
@ -393,7 +393,7 @@ void ModifyMovementSpeedMultiplier::_Remove() {
|
||||||
|
|
||||||
// MARK: - OneHitKO
|
// MARK: - OneHitKO
|
||||||
GameInteractionEffectQueryResult OneHitKO::CanBeApplied() {
|
GameInteractionEffectQueryResult OneHitKO::CanBeApplied() {
|
||||||
if (!GameInteractor::IsSaveLoaded() || GameInteractor::IsGameplayPaused()) {
|
if (!GameInteractor::IsSaveLoaded(true) || GameInteractor::IsGameplayPaused()) {
|
||||||
return GameInteractionEffectQueryResult::TemporarilyNotPossible;
|
return GameInteractionEffectQueryResult::TemporarilyNotPossible;
|
||||||
} else {
|
} else {
|
||||||
return GameInteractionEffectQueryResult::Possible;
|
return GameInteractionEffectQueryResult::Possible;
|
||||||
|
@ -408,7 +408,7 @@ void OneHitKO::_Remove() {
|
||||||
|
|
||||||
// MARK: - ModifyDefenseModifier
|
// MARK: - ModifyDefenseModifier
|
||||||
GameInteractionEffectQueryResult ModifyDefenseModifier::CanBeApplied() {
|
GameInteractionEffectQueryResult ModifyDefenseModifier::CanBeApplied() {
|
||||||
if (!GameInteractor::IsSaveLoaded() || GameInteractor::IsGameplayPaused()) {
|
if (!GameInteractor::IsSaveLoaded(true) || GameInteractor::IsGameplayPaused()) {
|
||||||
return GameInteractionEffectQueryResult::TemporarilyNotPossible;
|
return GameInteractionEffectQueryResult::TemporarilyNotPossible;
|
||||||
} else {
|
} else {
|
||||||
return GameInteractionEffectQueryResult::Possible;
|
return GameInteractionEffectQueryResult::Possible;
|
||||||
|
@ -423,7 +423,7 @@ void ModifyDefenseModifier::_Remove() {
|
||||||
|
|
||||||
// MARK: - GiveOrTakeShield
|
// MARK: - GiveOrTakeShield
|
||||||
GameInteractionEffectQueryResult GiveOrTakeShield::CanBeApplied() {
|
GameInteractionEffectQueryResult GiveOrTakeShield::CanBeApplied() {
|
||||||
if (!GameInteractor::IsSaveLoaded() || GameInteractor::IsGameplayPaused()) {
|
if (!GameInteractor::IsSaveLoaded(true) || GameInteractor::IsGameplayPaused()) {
|
||||||
return GameInteractionEffectQueryResult::TemporarilyNotPossible;
|
return GameInteractionEffectQueryResult::TemporarilyNotPossible;
|
||||||
} else if ((parameters[0] > 0 && ((gBitFlags[parameters[0] - ITEM_SHIELD_DEKU] << gEquipShifts[EQUIP_TYPE_SHIELD]) &
|
} else if ((parameters[0] > 0 && ((gBitFlags[parameters[0] - ITEM_SHIELD_DEKU] << gEquipShifts[EQUIP_TYPE_SHIELD]) &
|
||||||
gSaveContext.inventory.equipment)) ||
|
gSaveContext.inventory.equipment)) ||
|
||||||
|
@ -441,7 +441,7 @@ void GiveOrTakeShield::_Apply() {
|
||||||
|
|
||||||
// MARK: - TeleportPlayer
|
// MARK: - TeleportPlayer
|
||||||
GameInteractionEffectQueryResult TeleportPlayer::CanBeApplied() {
|
GameInteractionEffectQueryResult TeleportPlayer::CanBeApplied() {
|
||||||
if (!GameInteractor::IsSaveLoaded() || GameInteractor::IsGameplayPaused()) {
|
if (!GameInteractor::IsSaveLoaded(true) || GameInteractor::IsGameplayPaused()) {
|
||||||
return GameInteractionEffectQueryResult::TemporarilyNotPossible;
|
return GameInteractionEffectQueryResult::TemporarilyNotPossible;
|
||||||
} else {
|
} else {
|
||||||
return GameInteractionEffectQueryResult::Possible;
|
return GameInteractionEffectQueryResult::Possible;
|
||||||
|
@ -453,7 +453,7 @@ void TeleportPlayer::_Apply() {
|
||||||
|
|
||||||
// MARK: - ClearAssignedButtons
|
// MARK: - ClearAssignedButtons
|
||||||
GameInteractionEffectQueryResult ClearAssignedButtons::CanBeApplied() {
|
GameInteractionEffectQueryResult ClearAssignedButtons::CanBeApplied() {
|
||||||
if (!GameInteractor::IsSaveLoaded()) {
|
if (!GameInteractor::IsSaveLoaded(true)) {
|
||||||
return GameInteractionEffectQueryResult::TemporarilyNotPossible;
|
return GameInteractionEffectQueryResult::TemporarilyNotPossible;
|
||||||
} else {
|
} else {
|
||||||
return GameInteractionEffectQueryResult::Possible;
|
return GameInteractionEffectQueryResult::Possible;
|
||||||
|
@ -465,7 +465,7 @@ void ClearAssignedButtons::_Apply() {
|
||||||
|
|
||||||
// MARK: - SetTimeOfDay
|
// MARK: - SetTimeOfDay
|
||||||
GameInteractionEffectQueryResult SetTimeOfDay::CanBeApplied() {
|
GameInteractionEffectQueryResult SetTimeOfDay::CanBeApplied() {
|
||||||
if (!GameInteractor::IsSaveLoaded()) {
|
if (!GameInteractor::IsSaveLoaded(true)) {
|
||||||
return GameInteractionEffectQueryResult::TemporarilyNotPossible;
|
return GameInteractionEffectQueryResult::TemporarilyNotPossible;
|
||||||
} else {
|
} else {
|
||||||
return GameInteractionEffectQueryResult::Possible;
|
return GameInteractionEffectQueryResult::Possible;
|
||||||
|
@ -477,7 +477,7 @@ void SetTimeOfDay::_Apply() {
|
||||||
|
|
||||||
// MARK: - SetCollisionViewer
|
// MARK: - SetCollisionViewer
|
||||||
GameInteractionEffectQueryResult SetCollisionViewer::CanBeApplied() {
|
GameInteractionEffectQueryResult SetCollisionViewer::CanBeApplied() {
|
||||||
if (!GameInteractor::IsSaveLoaded() || GameInteractor::IsGameplayPaused()) {
|
if (!GameInteractor::IsSaveLoaded(true) || GameInteractor::IsGameplayPaused()) {
|
||||||
return GameInteractionEffectQueryResult::TemporarilyNotPossible;
|
return GameInteractionEffectQueryResult::TemporarilyNotPossible;
|
||||||
} else {
|
} else {
|
||||||
return GameInteractionEffectQueryResult::Possible;
|
return GameInteractionEffectQueryResult::Possible;
|
||||||
|
@ -492,7 +492,7 @@ void SetCollisionViewer::_Remove() {
|
||||||
|
|
||||||
// MARK: - RandomizeCosmetics
|
// MARK: - RandomizeCosmetics
|
||||||
GameInteractionEffectQueryResult RandomizeCosmetics::CanBeApplied() {
|
GameInteractionEffectQueryResult RandomizeCosmetics::CanBeApplied() {
|
||||||
if (!GameInteractor::IsSaveLoaded()) {
|
if (!GameInteractor::IsSaveLoaded(true)) {
|
||||||
return GameInteractionEffectQueryResult::TemporarilyNotPossible;
|
return GameInteractionEffectQueryResult::TemporarilyNotPossible;
|
||||||
} else {
|
} else {
|
||||||
return GameInteractionEffectQueryResult::Possible;
|
return GameInteractionEffectQueryResult::Possible;
|
||||||
|
@ -504,7 +504,7 @@ void RandomizeCosmetics::_Apply() {
|
||||||
|
|
||||||
// MARK: - PressButton
|
// MARK: - PressButton
|
||||||
GameInteractionEffectQueryResult PressButton::CanBeApplied() {
|
GameInteractionEffectQueryResult PressButton::CanBeApplied() {
|
||||||
if (!GameInteractor::IsSaveLoaded()) {
|
if (!GameInteractor::IsSaveLoaded(true)) {
|
||||||
return GameInteractionEffectQueryResult::TemporarilyNotPossible;
|
return GameInteractionEffectQueryResult::TemporarilyNotPossible;
|
||||||
} else {
|
} else {
|
||||||
return GameInteractionEffectQueryResult::Possible;
|
return GameInteractionEffectQueryResult::Possible;
|
||||||
|
@ -516,7 +516,7 @@ void PressButton::_Apply() {
|
||||||
|
|
||||||
// MARK: - PressRandomButton
|
// MARK: - PressRandomButton
|
||||||
GameInteractionEffectQueryResult PressRandomButton::CanBeApplied() {
|
GameInteractionEffectQueryResult PressRandomButton::CanBeApplied() {
|
||||||
if (!GameInteractor::IsSaveLoaded()) {
|
if (!GameInteractor::IsSaveLoaded(true)) {
|
||||||
return GameInteractionEffectQueryResult::TemporarilyNotPossible;
|
return GameInteractionEffectQueryResult::TemporarilyNotPossible;
|
||||||
} else {
|
} else {
|
||||||
return GameInteractionEffectQueryResult::Possible;
|
return GameInteractionEffectQueryResult::Possible;
|
||||||
|
@ -528,7 +528,7 @@ void PressRandomButton::_Apply() {
|
||||||
|
|
||||||
// MARK: - AddOrTakeAmmo
|
// MARK: - AddOrTakeAmmo
|
||||||
GameInteractionEffectQueryResult AddOrTakeAmmo::CanBeApplied() {
|
GameInteractionEffectQueryResult AddOrTakeAmmo::CanBeApplied() {
|
||||||
if (!GameInteractor::IsSaveLoaded()) {
|
if (!GameInteractor::IsSaveLoaded(true)) {
|
||||||
return GameInteractionEffectQueryResult::TemporarilyNotPossible;
|
return GameInteractionEffectQueryResult::TemporarilyNotPossible;
|
||||||
} else if (!GameInteractor::CanAddOrTakeAmmo(parameters[0], parameters[1])) {
|
} else if (!GameInteractor::CanAddOrTakeAmmo(parameters[0], parameters[1])) {
|
||||||
return GameInteractionEffectQueryResult::NotPossible;
|
return GameInteractionEffectQueryResult::NotPossible;
|
||||||
|
@ -542,7 +542,7 @@ void AddOrTakeAmmo::_Apply() {
|
||||||
|
|
||||||
// MARK: - RandomBombFuseTimer
|
// MARK: - RandomBombFuseTimer
|
||||||
GameInteractionEffectQueryResult RandomBombFuseTimer::CanBeApplied() {
|
GameInteractionEffectQueryResult RandomBombFuseTimer::CanBeApplied() {
|
||||||
if (!GameInteractor::IsSaveLoaded() || GameInteractor::IsGameplayPaused()) {
|
if (!GameInteractor::IsSaveLoaded(true) || GameInteractor::IsGameplayPaused()) {
|
||||||
return GameInteractionEffectQueryResult::TemporarilyNotPossible;
|
return GameInteractionEffectQueryResult::TemporarilyNotPossible;
|
||||||
} else {
|
} else {
|
||||||
return GameInteractionEffectQueryResult::Possible;
|
return GameInteractionEffectQueryResult::Possible;
|
||||||
|
@ -557,7 +557,7 @@ void RandomBombFuseTimer::_Remove() {
|
||||||
|
|
||||||
// MARK: - DisableLedgeGrabs
|
// MARK: - DisableLedgeGrabs
|
||||||
GameInteractionEffectQueryResult DisableLedgeGrabs::CanBeApplied() {
|
GameInteractionEffectQueryResult DisableLedgeGrabs::CanBeApplied() {
|
||||||
if (!GameInteractor::IsSaveLoaded() || GameInteractor::IsGameplayPaused()) {
|
if (!GameInteractor::IsSaveLoaded(true) || GameInteractor::IsGameplayPaused()) {
|
||||||
return GameInteractionEffectQueryResult::TemporarilyNotPossible;
|
return GameInteractionEffectQueryResult::TemporarilyNotPossible;
|
||||||
} else {
|
} else {
|
||||||
return GameInteractionEffectQueryResult::Possible;
|
return GameInteractionEffectQueryResult::Possible;
|
||||||
|
@ -572,7 +572,7 @@ void DisableLedgeGrabs::_Remove() {
|
||||||
|
|
||||||
// MARK: - RandomWind
|
// MARK: - RandomWind
|
||||||
GameInteractionEffectQueryResult RandomWind::CanBeApplied() {
|
GameInteractionEffectQueryResult RandomWind::CanBeApplied() {
|
||||||
if (!GameInteractor::IsSaveLoaded() || GameInteractor::IsGameplayPaused()) {
|
if (!GameInteractor::IsSaveLoaded(true) || GameInteractor::IsGameplayPaused()) {
|
||||||
return GameInteractionEffectQueryResult::TemporarilyNotPossible;
|
return GameInteractionEffectQueryResult::TemporarilyNotPossible;
|
||||||
} else {
|
} else {
|
||||||
return GameInteractionEffectQueryResult::Possible;
|
return GameInteractionEffectQueryResult::Possible;
|
||||||
|
@ -587,7 +587,7 @@ void RandomWind::_Remove() {
|
||||||
|
|
||||||
// MARK: - RandomBonks
|
// MARK: - RandomBonks
|
||||||
GameInteractionEffectQueryResult RandomBonks::CanBeApplied() {
|
GameInteractionEffectQueryResult RandomBonks::CanBeApplied() {
|
||||||
if (!GameInteractor::IsSaveLoaded() || GameInteractor::IsGameplayPaused()) {
|
if (!GameInteractor::IsSaveLoaded(true) || GameInteractor::IsGameplayPaused()) {
|
||||||
return GameInteractionEffectQueryResult::TemporarilyNotPossible;
|
return GameInteractionEffectQueryResult::TemporarilyNotPossible;
|
||||||
} else {
|
} else {
|
||||||
return GameInteractionEffectQueryResult::Possible;
|
return GameInteractionEffectQueryResult::Possible;
|
||||||
|
@ -602,7 +602,7 @@ void RandomBonks::_Remove() {
|
||||||
|
|
||||||
// MARK: - PlayerInvincibility
|
// MARK: - PlayerInvincibility
|
||||||
GameInteractionEffectQueryResult PlayerInvincibility::CanBeApplied() {
|
GameInteractionEffectQueryResult PlayerInvincibility::CanBeApplied() {
|
||||||
if (!GameInteractor::IsSaveLoaded() || GameInteractor::IsGameplayPaused()) {
|
if (!GameInteractor::IsSaveLoaded(true) || GameInteractor::IsGameplayPaused()) {
|
||||||
return GameInteractionEffectQueryResult::TemporarilyNotPossible;
|
return GameInteractionEffectQueryResult::TemporarilyNotPossible;
|
||||||
} else {
|
} else {
|
||||||
return GameInteractionEffectQueryResult::Possible;
|
return GameInteractionEffectQueryResult::Possible;
|
||||||
|
@ -617,7 +617,7 @@ void PlayerInvincibility::_Remove() {
|
||||||
|
|
||||||
// MARK: - SlipperyFloor
|
// MARK: - SlipperyFloor
|
||||||
GameInteractionEffectQueryResult SlipperyFloor::CanBeApplied() {
|
GameInteractionEffectQueryResult SlipperyFloor::CanBeApplied() {
|
||||||
if (!GameInteractor::IsSaveLoaded() || GameInteractor::IsGameplayPaused()) {
|
if (!GameInteractor::IsSaveLoaded(true) || GameInteractor::IsGameplayPaused()) {
|
||||||
return GameInteractionEffectQueryResult::TemporarilyNotPossible;
|
return GameInteractionEffectQueryResult::TemporarilyNotPossible;
|
||||||
} else {
|
} else {
|
||||||
return GameInteractionEffectQueryResult::Possible;
|
return GameInteractionEffectQueryResult::Possible;
|
||||||
|
@ -632,7 +632,7 @@ void SlipperyFloor::_Remove() {
|
||||||
|
|
||||||
// MARK: - SpawnEnemyWithOffset
|
// MARK: - SpawnEnemyWithOffset
|
||||||
GameInteractionEffectQueryResult SpawnEnemyWithOffset::CanBeApplied() {
|
GameInteractionEffectQueryResult SpawnEnemyWithOffset::CanBeApplied() {
|
||||||
if (!GameInteractor::IsSaveLoaded()) {
|
if (!GameInteractor::IsSaveLoaded(true)) {
|
||||||
return GameInteractionEffectQueryResult::TemporarilyNotPossible;
|
return GameInteractionEffectQueryResult::TemporarilyNotPossible;
|
||||||
}
|
}
|
||||||
return GameInteractor::RawAction::SpawnEnemyWithOffset(parameters[0], parameters[1]);
|
return GameInteractor::RawAction::SpawnEnemyWithOffset(parameters[0], parameters[1]);
|
||||||
|
@ -644,7 +644,7 @@ void SpawnEnemyWithOffset::_Apply() {
|
||||||
|
|
||||||
// MARK: - SpawnActor
|
// MARK: - SpawnActor
|
||||||
GameInteractionEffectQueryResult SpawnActor::CanBeApplied() {
|
GameInteractionEffectQueryResult SpawnActor::CanBeApplied() {
|
||||||
if (!GameInteractor::IsSaveLoaded()) {
|
if (!GameInteractor::IsSaveLoaded(true)) {
|
||||||
return GameInteractionEffectQueryResult::TemporarilyNotPossible;
|
return GameInteractionEffectQueryResult::TemporarilyNotPossible;
|
||||||
}
|
}
|
||||||
return GameInteractor::RawAction::SpawnActor(parameters[0], parameters[1]);
|
return GameInteractor::RawAction::SpawnActor(parameters[0], parameters[1]);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue