mirror of
https://github.com/xuthus83/LittlePaimon.git
synced 2024-12-16 13:40:53 +08:00
🐛 修复须弥
为None的bug
This commit is contained in:
parent
70c7a46214
commit
9f4c3882f3
@ -69,7 +69,9 @@ async def draw_character_card(info: Character) -> Optional[PMImage]:
|
||||
|
||||
|
||||
async def draw_world_card(img: PMImage, info: PlayerWorldInfo):
|
||||
if info.name == '蒙德':
|
||||
if info is None:
|
||||
pass
|
||||
elif info.name == '蒙德':
|
||||
if info.unlock:
|
||||
await img.text(get_percent_text(info.percent), (110, 301), 1387, fm.get('hywh', 24), 'white', 'center')
|
||||
await img.text(str(info.level) if info.level != 8 else 'Max', 150, 1447, fm.get('hywh', 24), 'white')
|
||||
|
Loading…
x
Reference in New Issue
Block a user