From 93bbe007f6878262c0df593f20334f83e46df268 Mon Sep 17 00:00:00 2001
From: CMHopeSunshine <277073121@qq.com>
Date: Thu, 3 Nov 2022 14:56:47 +0800
Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20=E4=BF=AE=E5=A4=8D`=E7=BA=B3?=
=?UTF-8?q?=E8=A5=BF=E5=A6=B2`=E4=BC=A4=E5=AE=B3=E8=AE=A1=E7=AE=97?=
=?UTF-8?q?=E9=94=99=E8=AF=AF=E5=92=8C=E8=B5=84=E6=BA=90=E4=B8=8B=E8=BD=BD?=
=?UTF-8?q?=E6=8A=A5=E9=94=99=E9=97=AE=E9=A2=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
LittlePaimon/plugins/Paimon_Info/damage_model.py | 2 +-
LittlePaimon/utils/requests.py | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/LittlePaimon/plugins/Paimon_Info/damage_model.py b/LittlePaimon/plugins/Paimon_Info/damage_model.py
index cae64a7..1133a21 100644
--- a/LittlePaimon/plugins/Paimon_Info/damage_model.py
+++ b/LittlePaimon/plugins/Paimon_Info/damage_model.py
@@ -993,7 +993,7 @@ def get_damage_multipiler(info: Character) -> Optional[Dict[str, any]]:
'B:c2-减防-*': (0.3, '二命减防触发'),
'B:l0-额外倍率-E': (float(eb[1].replace('%元素精通', '')) / 100.0 * info.prop.elemental_mastery, ),
'E-e草:灭净三业': float(eb[0].replace('%攻击力', '')) / 100.0,
- 'E-e草-j超激化:灭净三业超激化': float(eb[0].replace('%攻击力', '')) / 100.0
+ 'E-e草-j蔓激化:灭净三业蔓激化': float(eb[0].replace('%攻击力', '')) / 100.0
}
diff --git a/LittlePaimon/utils/requests.py b/LittlePaimon/utils/requests.py
index 8a1a4f7..a84c676 100644
--- a/LittlePaimon/utils/requests.py
+++ b/LittlePaimon/utils/requests.py
@@ -7,8 +7,8 @@ from typing import Dict, Optional, Any, Union, Tuple
import httpx
from PIL import Image
import tqdm.asyncio
+from nonebot import logger
-from LittlePaimon.utils import logger
class aiorequests:
@staticmethod
@@ -170,5 +170,5 @@ class aiorequests:
for url in urls:
with contextlib.suppress(Exception):
return await aiorequests.get_img(url=url, headers=headers, save_path=save_path, **kwargs)
- logger.warning('资源检查', f'{name}下载失败,请检查网络')
+ logger.opt(colors=True).info(f'[资源检查]图标资源{name}下载失败')
return None