mirror of
https://github.com/PaiGramTeam/MibooGram.git
synced 2024-11-22 15:37:21 +00:00
🐛 每日素材跳过不存在或者已忽略的角色、武器
This commit is contained in:
parent
17c41c21dd
commit
0fe61d5f44
@ -224,7 +224,11 @@ class DailyMaterial(Plugin, BasePlugin):
|
|||||||
added = True
|
added = True
|
||||||
if added:
|
if added:
|
||||||
continue
|
continue
|
||||||
item = HONEY_DATA[type_][id_]
|
try:
|
||||||
|
item = HONEY_DATA[type_][id_]
|
||||||
|
except KeyError: # 跳过不存在或者已忽略的角色、武器
|
||||||
|
logger.warning(f"未在 honey 数据中找到 {type_} {id_} 的信息")
|
||||||
|
continue
|
||||||
if item[2] < 4: # 跳过 3 星及以下的武器
|
if item[2] < 4: # 跳过 3 星及以下的武器
|
||||||
continue
|
continue
|
||||||
items.append(ItemData( # 添加角色数据中未找到的
|
items.append(ItemData( # 添加角色数据中未找到的
|
||||||
|
Loading…
Reference in New Issue
Block a user