From b1f9be0121ac4ceb257a1cf1e7b4feb2f62add59 Mon Sep 17 00:00:00 2001 From: Kevin Trocolli Date: Fri, 14 Apr 2023 23:47:31 -0400 Subject: [PATCH] wacca: fix crash on 4th page of Reverse Gate, partially fixes #5 --- core/data/schema/versions/SDFE_3_rollback.sql | 3 +++ core/data/schema/versions/SDFE_4_upgrade.sql | 3 +++ titles/wacca/__init__.py | 2 +- titles/wacca/base.py | 3 --- 4 files changed, 7 insertions(+), 4 deletions(-) create mode 100644 core/data/schema/versions/SDFE_3_rollback.sql create mode 100644 core/data/schema/versions/SDFE_4_upgrade.sql diff --git a/core/data/schema/versions/SDFE_3_rollback.sql b/core/data/schema/versions/SDFE_3_rollback.sql new file mode 100644 index 0000000..b2310ad --- /dev/null +++ b/core/data/schema/versions/SDFE_3_rollback.sql @@ -0,0 +1,3 @@ +SET FOREIGN_KEY_CHECKS=0; +--Can't really add items back so this just does nothing +SET FOREIGN_KEY_CHECKS=1; diff --git a/core/data/schema/versions/SDFE_4_upgrade.sql b/core/data/schema/versions/SDFE_4_upgrade.sql new file mode 100644 index 0000000..03c5d1e --- /dev/null +++ b/core/data/schema/versions/SDFE_4_upgrade.sql @@ -0,0 +1,3 @@ +SET FOREIGN_KEY_CHECKS=0; +DELETE FROM wacca_item WHERE type=17 AND item_id=312002; +SET FOREIGN_KEY_CHECKS=1; diff --git a/titles/wacca/__init__.py b/titles/wacca/__init__.py index b6e06f8..b3f9850 100644 --- a/titles/wacca/__init__.py +++ b/titles/wacca/__init__.py @@ -9,4 +9,4 @@ database = WaccaData reader = WaccaReader frontend = WaccaFrontend game_codes = [WaccaConstants.GAME_CODE] -current_schema_version = 3 +current_schema_version = 4 diff --git a/titles/wacca/base.py b/titles/wacca/base.py index 020c167..bef7ee2 100644 --- a/titles/wacca/base.py +++ b/titles/wacca/base.py @@ -275,9 +275,6 @@ class WaccaBase: self.data.item.put_item( req.aimeId, WaccaConstants.ITEM_TYPES["touch_effect"], 312001 ) # Added reverse - self.data.item.put_item( - req.aimeId, WaccaConstants.ITEM_TYPES["touch_effect"], 312002 - ) # Added reverse return UserStatusCreateResponseV2(profileId, req.username).make()