From be50fdc2248ea3685613da36559a2d350b8900c2 Mon Sep 17 00:00:00 2001 From: student_2333 Date: Tue, 10 Oct 2023 19:34:31 +0800 Subject: [PATCH] 0.9.5 --- README.md | 8 ++++++-- nonebot_plugin_bawiki/__init__.py | 2 +- nonebot_plugin_bawiki/data/gacha.py | 9 +++++++-- nonebot_plugin_bawiki/data/gamekee.py | 2 +- pyproject.toml | 2 +- 5 files changed, 16 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 178e31b..a3d3633 100644 --- a/README.md +++ b/README.md @@ -179,13 +179,17 @@ Telegram:[@lgc2333](https://t.me/lgc2333) ## 📝 更新日志 -### 0.9.4 +### 0.9.5 -- 修复了三星爆率过高的 bug ([#47](https://github.com/lgc-NB2Dev/nonebot-plugin-bawiki/pull/47)) +- 抽卡总结图现在有半透明和圆角了
历史更新日志(点击展开) +### 0.9.4 + +- 修复了三星爆率过高的 bug ([#47](https://github.com/lgc-NB2Dev/nonebot-plugin-bawiki/pull/47)) + ### 0.9.3 - 微调 `ba日程表` 指令:GameKee 源的日程表现在可以分服务器展示了,顺便修复了 SchaleDB 源日程的 Bug,详见指令帮助 diff --git a/nonebot_plugin_bawiki/__init__.py b/nonebot_plugin_bawiki/__init__.py index d6883c4..aef6164 100644 --- a/nonebot_plugin_bawiki/__init__.py +++ b/nonebot_plugin_bawiki/__init__.py @@ -8,7 +8,7 @@ from .config import Cfg as Cfg # noqa: E402 from .help import extra, register_help_cmd, usage # noqa: E402 -__version__ = "0.9.4" +__version__ = "0.9.5" __plugin_meta__ = PluginMetadata( name="BAWiki", description="碧蓝档案Wiki插件", diff --git a/nonebot_plugin_bawiki/data/gacha.py b/nonebot_plugin_bawiki/data/gacha.py index b9e861e..d87e251 100644 --- a/nonebot_plugin_bawiki/data/gacha.py +++ b/nonebot_plugin_bawiki/data/gacha.py @@ -348,10 +348,15 @@ def gen_regular() -> BuildImage: fill="#ffffff", halign="left", ) - .paste(important_img, (padding, banner_h + padding)) .paste( - regular_img, + important_img.circle_corner(10), + (padding, banner_h + padding), + alpha=True, + ) + .paste( + regular_img.circle_corner(10), (padding, banner_h + padding + important_img.height + padding), + alpha=True, ) ) diff --git a/nonebot_plugin_bawiki/data/gamekee.py b/nonebot_plugin_bawiki/data/gamekee.py index 6bbd481..5b27323 100644 --- a/nonebot_plugin_bawiki/data/gamekee.py +++ b/nonebot_plugin_bawiki/data/gamekee.py @@ -232,7 +232,7 @@ async def draw(it: dict): img.paste(desc_p, (60, ii), alpha=True) ii += desc_p.height + 25 img.paste(remain_p, (60, ii), alpha=True) - return img.circle_corner(15) + return img def draw_list(li: List[BuildImage], title: str) -> BuildImage: bg_w = 1500 diff --git a/pyproject.toml b/pyproject.toml index 55be02c..23108c5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "nonebot-plugin-bawiki" -version = "0.9.4" +version = "0.9.5" description = "A nonebot2 plugin for Blue Archive." authors = [{ name = "student_2333", email = "lgc2333@126.com" }] dependencies = [