idac: battle gift event, tips, QoL improvements added
This commit is contained in:
@@ -66,6 +66,22 @@ class IDACServerConfig:
|
||||
return CoreConfig.get_config_field(
|
||||
self.__config, "idac", "server", "port_matching_p2p", default=20003
|
||||
)
|
||||
|
||||
class IDACTimereleaseConfig:
|
||||
def __init__(self, parent: "IDACConfig") -> None:
|
||||
self.__config = parent
|
||||
|
||||
@property
|
||||
def timerelease_no(self) -> int:
|
||||
return CoreConfig.get_config_field(
|
||||
self.__config, "idac", "timerelease", "timerelease_no", default=1
|
||||
)
|
||||
|
||||
@property
|
||||
def timerelease_avatar_gacha_no(self) -> int:
|
||||
return CoreConfig.get_config_field(
|
||||
self.__config, "idac", "timerelease", "timerelease_avatar_gacha_no", default=1
|
||||
)
|
||||
|
||||
|
||||
class IDACStampConfig:
|
||||
@@ -112,10 +128,32 @@ class IDACTimetrialConfig:
|
||||
"enabled_timetrial",
|
||||
default="touhou_remilia_scarlet",
|
||||
)
|
||||
|
||||
class IDACTBattleGiftConfig:
|
||||
def __init__(self, parent: "IDACConfig") -> None:
|
||||
self.__config = parent
|
||||
|
||||
@property
|
||||
def enable(self) -> bool:
|
||||
return CoreConfig.get_config_field(
|
||||
self.__config, "idac", "battle_gift", "enable", default=True
|
||||
)
|
||||
|
||||
@property
|
||||
def enabled_battle_gift(self) -> str:
|
||||
return CoreConfig.get_config_field(
|
||||
self.__config,
|
||||
"idac",
|
||||
"battle_gift",
|
||||
"enabled_battle_gift",
|
||||
default="touhou_1st",
|
||||
)
|
||||
|
||||
|
||||
class IDACConfig(dict):
|
||||
def __init__(self) -> None:
|
||||
self.server = IDACServerConfig(self)
|
||||
self.timerelease = IDACTimereleaseConfig(self)
|
||||
self.stamp = IDACStampConfig(self)
|
||||
self.timetrial = IDACTimetrialConfig(self)
|
||||
self.battle_gift = IDACTBattleGiftConfig(self)
|
||||
|
||||
Reference in New Issue
Block a user