act2 is apparently not actually a thing

This commit is contained in:
2024-07-06 06:16:31 +07:00
parent 7738b8a56f
commit 6f12f9988e
4 changed files with 5 additions and 24 deletions

View File

@ -1,17 +0,0 @@
from core.config import CoreConfig
from titles.ongeki.brightmemory import OngekiBrightMemory
from titles.ongeki.config import OngekiConfig
from titles.ongeki.const import OngekiConstants
class OngekiBrightMemoryAct2(OngekiBrightMemory):
def __init__(self, core_cfg: CoreConfig, game_cfg: OngekiConfig) -> None: # noqa: F821
super().__init__(core_cfg, game_cfg)
self.version = OngekiConstants.VER_ONGEKI_BRIGHT_MEMORY_ACT2
async def handle_get_game_setting_api_request(self, data: dict) -> dict:
ret = await super().handle_get_game_setting_api_request(data)
ret["gameSetting"]["dataVersion"] = "1.40.00"
ret["gameSetting"]["onlineDataVersion"] = "1.40.00"
return ret

View File

@ -14,7 +14,6 @@ class OngekiConstants:
VER_ONGEKI_RED_PLUS = 5
VER_ONGEKI_BRIGHT = 6
VER_ONGEKI_BRIGHT_MEMORY = 7
VER_ONGEKI_BRIGHT_MEMORY_ACT2 = 8
VER_ONGEKI_BRIGHT_MEMORY_ACT3 = 9
EVT_TYPES = Enum(
@ -103,7 +102,7 @@ class OngekiConstants:
"ONGEKI R.E.D. +",
"ONGEKI bright",
"ONGEKI bright MEMORY",
"ONGEKI bright MEMORY Act.2",
"",
"ONGEKI bright MEMORY Act.3",
)

View File

@ -51,7 +51,8 @@ class OngekiServlet(BaseServlet):
OngekiRedPlus(core_cfg, self.game_cfg),
OngekiBright(core_cfg, self.game_cfg),
OngekiBrightMemory(core_cfg, self.game_cfg),
OngekiBrightMemoryAct2(core_cfg, self.game_cfg),
# OngekiBrightMemoryAct2(core_cfg, self.game_cfg),
None,
OngekiBrightMemoryAct3(core_cfg, self.game_cfg),
]
@ -145,10 +146,8 @@ class OngekiServlet(BaseServlet):
internal_ver = OngekiConstants.VER_ONGEKI_RED_PLUS
elif version >= 130 and version < 135: # Bright
internal_ver = OngekiConstants.VER_ONGEKI_BRIGHT
elif version >= 135 and version < 140: # Bright Memory
elif version >= 135 and version < 145: # Bright Memory
internal_ver = OngekiConstants.VER_ONGEKI_BRIGHT_MEMORY
elif version >= 140 and version < 145:
internal_ver = OngekiConstants.VER_ONGEKI_BRIGHT_MEMORY_ACT2
elif version >= 145:
internal_ver = OngekiConstants.VER_ONGEKI_BRIGHT_MEMORY_ACT3

View File

@ -53,7 +53,7 @@ class OngekiReader(BaseReader):
"1025": OngekiConstants.VER_ONGEKI_RED_PLUS,
"1030": OngekiConstants.VER_ONGEKI_BRIGHT,
"1035": OngekiConstants.VER_ONGEKI_BRIGHT_MEMORY,
"1040": OngekiConstants.VER_ONGEKI_BRIGHT_MEMORY_ACT2,
"1040": OngekiConstants.VER_ONGEKI_BRIGHT_MEMORY,
"1045": OngekiConstants.VER_ONGEKI_BRIGHT_MEMORY_ACT3,
}