2024-06-20 01:11:24 +00:00
|
|
|
from enum import Enum
|
|
|
|
|
|
|
|
|
2023-03-09 16:38:58 +00:00
|
|
|
class ChuniConstants:
|
2023-02-17 06:02:21 +00:00
|
|
|
GAME_CODE = "SDBT"
|
|
|
|
GAME_CODE_NEW = "SDHD"
|
2023-12-13 05:58:22 +00:00
|
|
|
GAME_CODE_INT = "SDGS"
|
2023-02-17 06:02:21 +00:00
|
|
|
|
2023-03-05 02:58:51 +00:00
|
|
|
CONFIG_NAME = "chuni.yaml"
|
|
|
|
|
2023-02-17 06:02:21 +00:00
|
|
|
VER_CHUNITHM = 0
|
|
|
|
VER_CHUNITHM_PLUS = 1
|
|
|
|
VER_CHUNITHM_AIR = 2
|
|
|
|
VER_CHUNITHM_AIR_PLUS = 3
|
2023-03-09 16:38:58 +00:00
|
|
|
VER_CHUNITHM_STAR = 4
|
2023-02-17 06:02:21 +00:00
|
|
|
VER_CHUNITHM_STAR_PLUS = 5
|
|
|
|
VER_CHUNITHM_AMAZON = 6
|
|
|
|
VER_CHUNITHM_AMAZON_PLUS = 7
|
|
|
|
VER_CHUNITHM_CRYSTAL = 8
|
|
|
|
VER_CHUNITHM_CRYSTAL_PLUS = 9
|
|
|
|
VER_CHUNITHM_PARADISE = 10
|
2024-07-15 01:40:56 +00:00
|
|
|
|
2023-02-17 06:02:21 +00:00
|
|
|
VER_CHUNITHM_NEW = 11
|
|
|
|
VER_CHUNITHM_NEW_PLUS = 12
|
2023-05-10 19:32:35 +00:00
|
|
|
VER_CHUNITHM_SUN = 13
|
2023-12-13 05:58:22 +00:00
|
|
|
VER_CHUNITHM_SUN_PLUS = 14
|
2024-06-20 01:11:24 +00:00
|
|
|
VER_CHUNITHM_LUMINOUS = 15
|
2024-07-15 01:40:56 +00:00
|
|
|
|
2023-03-09 16:38:58 +00:00
|
|
|
VERSION_NAMES = [
|
2023-05-10 19:32:35 +00:00
|
|
|
"CHUNITHM",
|
|
|
|
"CHUNITHM PLUS",
|
|
|
|
"CHUNITHM AIR",
|
|
|
|
"CHUNITHM AIR PLUS",
|
|
|
|
"CHUNITHM STAR",
|
|
|
|
"CHUNITHM STAR PLUS",
|
|
|
|
"CHUNITHM AMAZON",
|
|
|
|
"CHUNITHM AMAZON PLUS",
|
|
|
|
"CHUNITHM CRYSTAL",
|
|
|
|
"CHUNITHM CRYSTAL PLUS",
|
|
|
|
"CHUNITHM PARADISE",
|
|
|
|
"CHUNITHM NEW!!",
|
|
|
|
"CHUNITHM NEW PLUS!!",
|
2023-12-13 05:58:22 +00:00
|
|
|
"CHUNITHM SUN",
|
2024-06-20 01:11:24 +00:00
|
|
|
"CHUNITHM SUN PLUS",
|
|
|
|
"CHUNITHM LUMINOUS",
|
2023-03-09 16:38:58 +00:00
|
|
|
]
|
2023-02-17 06:02:21 +00:00
|
|
|
|
2024-07-15 01:40:56 +00:00
|
|
|
SCORE_RANK_INTERVALS_OLD = [
|
|
|
|
(1007500, "SSS"),
|
|
|
|
(1000000, "SS"),
|
|
|
|
( 975000, "S"),
|
|
|
|
( 950000, "AAA"),
|
|
|
|
( 925000, "AA"),
|
|
|
|
( 900000, "A"),
|
|
|
|
( 800000, "BBB"),
|
|
|
|
( 700000, "BB"),
|
|
|
|
( 600000, "B"),
|
|
|
|
( 500000, "C"),
|
|
|
|
( 0, "D"),
|
|
|
|
]
|
|
|
|
|
|
|
|
SCORE_RANK_INTERVALS_NEW = [
|
|
|
|
(1009000, "SSS+"), # New only
|
|
|
|
(1007500, "SSS"),
|
|
|
|
(1005000, "SS+"), # New only
|
|
|
|
(1000000, "SS"),
|
|
|
|
( 990000, "S+"), # New only
|
|
|
|
( 975000, "S"),
|
|
|
|
( 950000, "AAA"),
|
|
|
|
( 925000, "AA"),
|
|
|
|
( 900000, "A"),
|
|
|
|
( 800000, "BBB"),
|
|
|
|
( 700000, "BB"),
|
|
|
|
( 600000, "B"),
|
|
|
|
( 500000, "C"),
|
|
|
|
( 0, "D"),
|
|
|
|
]
|
|
|
|
|
2023-02-17 06:02:21 +00:00
|
|
|
@classmethod
|
|
|
|
def game_ver_to_string(cls, ver: int):
|
2024-06-20 01:11:24 +00:00
|
|
|
return cls.VERSION_NAMES[ver]
|
|
|
|
|
|
|
|
|
|
|
|
class MapAreaConditionType(Enum):
|
2024-06-22 17:08:53 +00:00
|
|
|
UNLOCKED = 0
|
|
|
|
MAP_CLEARED = 1
|
|
|
|
MAP_AREA_CLEARED = 2
|
|
|
|
TROPHY_OBTAINED = 3
|
2024-06-20 01:11:24 +00:00
|
|
|
|
|
|
|
|
|
|
|
class MapAreaConditionLogicalOperator(Enum):
|
2024-06-22 17:08:53 +00:00
|
|
|
AND = 1
|
|
|
|
OR = 2
|