File tree Expand file tree Collapse file tree
src/plugins/XianNiUpgrade Expand file tree Collapse file tree Original file line number Diff line number Diff line change 113113}
114114
115115
116- # 等级范围 → 图片索引(共50张图片,从1开始编号)
117- LEVEL_IMAGE_INDEX : list [tuple [int , int ]] = [
118- (0 , 1 ),
119- (1 , 2 ),
120- (2 , 3 ),
121- (3 , 4 ),
122- (4 , 5 ),
123- (5 , 6 ),
124- (6 , 7 ),
125- (7 , 8 ),
126- (8 , 9 ),
127- (9 , 10 ),
128- (10 , 11 ),
129- (11 , 12 ),
130- (12 , 13 ),
131- (13 , 14 ),
132- (14 , 15 ),
133- (15 , 16 ),
134- (16 , 17 ),
135- (17 , 18 ),
136- (18 , 19 ),
137- (19 , 20 ),
138- (20 , 21 ),
139- (21 , 22 ),
140- (22 , 23 ),
141- (23 , 24 ),
142- (24 , 25 ),
143- (25 , 26 ),
144- (26 , 27 ),
145- (27 , 28 ),
146- (28 , 29 ),
147- (29 , 30 ),
148- (30 , 31 ),
149- (31 , 32 ),
150- (32 , 33 ),
151- (33 , 34 ),
152- (34 , 35 ),
153- (35 , 36 ),
154- (36 , 37 ),
155- (37 , 38 ),
156- (38 , 39 ),
157- (39 , 40 ),
158- (40 , 41 ),
159- (41 , 42 ),
160- (42 , 43 ),
161- (43 , 44 ),
162- (44 , 45 ),
163- (45 , 46 ),
164- (46 , 47 ),
165- (47 , 48 ),
166- (48 , 49 ),
167- (49 , 50 ),
168- (50 , 50 ),
169- (51 , 50 ),
170- (52 , 50 ),
171- (53 , 50 ),
172- (54 , 50 ),
173- (55 , 50 ),
174- (56 , 50 ),
175- (57 , 50 ),
176- (58 , 50 ),
177- (59 , 50 ),
178- (60 , 50 ),
179- (61 , 50 ),
180- (62 , 50 ),
181- (63 , 50 ),
182- (64 , 50 ),
183- (65 , 50 ),
184- (66 , 50 ),
185- (67 , 50 ),
186- (68 , 50 ),
187- (69 , 50 ),
188- (70 , 50 ),
189- (71 , 50 ),
190- (72 , 50 ),
191- (73 , 50 ),
192- (74 , 50 ),
193- (75 , 50 ),
194- (76 , 50 ),
195- (77 , 50 ),
196- (78 , 50 ),
197- (79 , 50 ),
198- (80 , 50 ),
199- (81 , 50 ),
200- (82 , 50 ),
201- (83 , 50 ),
202- (84 , 50 ),
203- (85 , 50 ),
204- (86 , 50 ),
205- (87 , 50 ),
206- (88 , 50 ),
207- (89 , 50 ),
208- (90 , 50 ),
209- (91 , 50 ),
210- (92 , 50 ),
211- (93 , 50 ),
212- (94 , 50 ),
213- (95 , 50 ),
214- (96 , 50 ),
215- (97 , 50 ),
216- (98 , 50 ),
217- (99 , 50 ),
218- (100 , 50 ),
219- ]
220-
221-
222116# 游戏难度映射
223117LEVEL_LABELS : dict [int , str ] = {
224118 3 : "初级" ,
241135}
242136
243137
138+ # 仙躯形象:仅大境界突破换图,量变不换(共18张:01.png~18.png)
139+ # 每个 tuple 为 (该大境界起始等级, 图片索引)
140+ REALM_IMAGE : list [tuple [int , int ]] = [
141+ (0 , 1 ), # 凡人
142+ (1 , 1 ), # 凝气
143+ (16 , 2 ), # 筑基
144+ (20 , 3 ), # 结丹
145+ (24 , 4 ), # 元婴
146+ (28 , 5 ), # 化神
147+ (32 , 6 ), # 婴变
148+ (36 , 7 ), # 问鼎
149+ (40 , 8 ), # 阴虚阳实
150+ (42 , 9 ), # 窥涅
151+ (46 , 10 ), # 净涅
152+ (50 , 11 ), # 碎涅
153+ (54 , 12 ), # 天人五衰
154+ (59 , 13 ), # 空涅
155+ (63 , 14 ), # 空灵
156+ (67 , 15 ), # 空玄(含空玄九劫)
157+ (80 , 16 ), # 空劫
158+ (84 , 17 ), # 大尊~大天尊
159+ (89 , 18 ), # 踏天~煌天境
160+ ]
161+
162+
244163def get_image_index (level : int ) -> int :
245- for lv , idx in LEVEL_IMAGE_INDEX :
246- if level <= lv :
164+ for start , idx in reversed ( REALM_IMAGE ) :
165+ if level >= start :
247166 return idx
248- return 50
167+ return 1
Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ def _setup_subscriptions(self) -> None:
7171
7272 def _create_widget (self ) -> QWidget :
7373 self ._ui = XianNiUpgradeUI ()
74- self ._ui .set_image_dir (self .data_dir / "images " )
74+ self ._ui .set_image_dir (self .data_dir / "asserts " )
7575 return self ._ui
7676
7777 def on_initialized (self ) -> None :
You can’t perform that action at this time.
0 commit comments