Skip to content

Commit

Permalink
🔥 移除失效功能 (#659)
Browse files Browse the repository at this point in the history
* Update help.json

* Delete GenshinUID/genshinuid_help/icon_path/查询[角色]成长曲线.png

* Update get_enka_img.py

* Update draw_char_card.py

* Delete GenshinUID/genshinuid_enka/draw_char_curve.py

* Update draw_char_card.py
  • Loading branch information
ishkong authored Nov 27, 2024
1 parent a27e33c commit f4ed8dc
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 101 deletions.
7 changes: 1 addition & 6 deletions GenshinUID/genshinuid_enka/draw_char_card.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

from .mono.Character import Character
from .dmg_calc.dmg_calc import draw_dmg_img
from .draw_char_curve import draw_char_curve_card
from .etc.etc import TEXT_PATH, get_all_artifacts_value
from ..utils.fonts.genshin_fonts import gs_font_18, gs_font_50
from .draw_normal import (
Expand All @@ -18,12 +17,8 @@
async def draw_char_img(
char: Character,
charUrl: Optional[str] = None,
is_curve: bool = False,
) -> Union[str, Tuple[Image.Image, Optional[bytes]]]:
if is_curve:
res = await draw_char_curve_card(char, charUrl)
else:
res = await draw_char_card(char, charUrl)
res = await draw_char_card(char, charUrl)
return res, char.char_bytes


Expand Down
81 changes: 0 additions & 81 deletions GenshinUID/genshinuid_enka/draw_char_curve.py

This file was deleted.

6 changes: 1 addition & 5 deletions GenshinUID/genshinuid_enka/get_enka_img.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,7 @@ async def draw_enka_img(
# msg = raw_mes.strip()

# 判断是否开启成长曲线或最佳, 并且去除
is_curve = False
is_group = False
if '成长曲线' in msg or '曲线' in msg:
is_curve = True
msg = msg.replace('成长曲线', '').replace('曲线', '')
if '队伍' in msg or '队伍伤害' in msg:
is_group = True
msg = msg.replace('队伍', '').replace('伤害', '').strip()
Expand Down Expand Up @@ -101,7 +97,7 @@ async def draw_enka_img(
logger.info('[查询角色] 绘图失败, 替换的武器不正确!')
return char

im = await draw_char_img(char, url, is_curve)
im = await draw_char_img(char, url)
logger.info('[查询角色] 绘图完成,等待发送...')
return im

Expand Down
10 changes: 1 addition & 9 deletions GenshinUID/genshinuid_help/help.json
Original file line number Diff line number Diff line change
Expand Up @@ -321,14 +321,6 @@
"need_sk": false,
"need_admin": false
},
{
"name": "查询[角色]成长曲线",
"desc": "输出当前角色成长表",
"eg": "查询刻晴曲线",
"need_ck": false,
"need_sk": false,
"need_admin": false
},
{
"name": "查询展柜角色",
"desc": "查询所有已缓存角色列表",
Expand Down Expand Up @@ -756,4 +748,4 @@
}
]
}
}
}
Binary file not shown.

0 comments on commit f4ed8dc

Please sign in to comment.