|
8 | 8 | from tasks.Component.Costume.config import (MainType, CostumeConfig, RealmType, |
9 | 9 | ThemeType, ShikigamiType, SignType, BattleType, CarpBannerType) |
10 | 10 | from tasks.Component.Costume.assets import CostumeAssets |
11 | | -from tasks.Component.CostumeRealm.assets import CostumeRealmAssets |
12 | 11 | from tasks.Component.CostumeBattle.assets import CostumeBattleAssets |
13 | 12 | from tasks.Component.CostumeShikigami.assets import CostumeShikigamiAssets |
14 | 13 | from tasks.Component.CostumeCarpBanner.assets import CostumeCarpBannerAssets |
|
26 | 25 | } |
27 | 26 |
|
28 | 27 |
|
29 | | -# 结界皮肤 |
30 | | -realm_costume_model = { |
31 | | - getattr(RealmType, f"COSTUME_REALM_{i}"): { |
32 | | - 'I_SHI_CARD': f'I_SHI_CARD_{i}', |
33 | | - 'I_SHI_DEFENSE': f'I_SHI_DEFENSE_{i}', |
34 | | - 'I_SHI_GROWN': f'I_SHI_GROWN_{i}', |
35 | | - 'I_CARD_EXP': f'I_CARD_EXP_{i}', |
36 | | - 'I_BOX_AP': f'I_BOX_AP_{i}', |
37 | | - 'I_BOX_EXP': f'I_BOX_EXP_{i}', |
38 | | - 'I_REALM_SHIN': f'I_REALM_SHIN_{i}', |
39 | | - 'I_UTILIZE_EXP': f'I_UTILIZE_EXP_{i}', |
40 | | - 'I_BOX_EXP_MAX': f'I_BOX_EXP_MAX_{i}', |
41 | | - } for i in range(1, 6) |
42 | | -} |
43 | | - |
44 | | - |
45 | 28 | # 鲤鱼旗皮肤 |
46 | 29 | carpbanner_costume_model = { |
47 | 30 | getattr(CarpBannerType, f"COSTUME_CARPBANNER_{i}"): { |
48 | 31 | 'I_SHI_CARD': f'I_SHI_CARD_{i}', |
49 | 32 | 'I_SHI_DEFENSE': f'I_SHI_DEFENSE_{i}', |
50 | 33 | 'I_SHI_GROWN': f'I_SHI_GROWN_{i}', |
51 | | - } for i in range(1, 2) |
| 34 | + } for i in range(1, 3) |
52 | 35 | } |
53 | 36 |
|
54 | 37 |
|
@@ -96,7 +79,6 @@ def check_costume(self, config: CostumeConfig=None): |
96 | 79 | if config is None: |
97 | 80 | config: CostumeConfig = self.config.model.global_game.costume_config |
98 | 81 | self.check_costume_main(config.costume_main_type) |
99 | | - self.check_costume_realm(config.costume_realm_type) |
100 | 82 | self.check_costume_carpbanner(config.costume_carpbanner_type) |
101 | 83 | self.check_costume_battle(config.costume_battle_type) |
102 | 84 | self.check_costume_shikigami(config.costume_shikigami_type) |
@@ -138,19 +120,6 @@ def check_costume_carpbanner(self, carpbanner_type: CarpBannerType): |
138 | 120 | # 执行替换(覆盖结界皮肤的同名key) |
139 | 121 | self.replace_img(key, assert_value) |
140 | 122 |
|
141 | | - def check_costume_realm(self, realm_type: RealmType): |
142 | | - if realm_type == RealmType.COSTUME_REALM_DEFAULT: |
143 | | - return |
144 | | - logger.info(f'Switch realm theme {realm_type}') |
145 | | - costume_realm_assets = CostumeRealmAssets() |
146 | | - model = realm_costume_model.get(realm_type, {}) |
147 | | - for key, value in model.items(): |
148 | | - if not hasattr(costume_realm_assets, value): |
149 | | - logger.warning(f'Realm asset {value} not found, skip') |
150 | | - continue |
151 | | - assert_value: RuleImage = getattr(costume_realm_assets, value) |
152 | | - self.replace_img(key, assert_value) |
153 | | - |
154 | 123 | def check_costume_battle(self, battle_type: BattleType): |
155 | 124 | if battle_type == BattleType.COSTUME_BATTLE_DEFAULT: |
156 | 125 | return |
|
0 commit comments