👽 Update genshin ImgTheater model

This commit is contained in:
xtaodada 2024-11-10 23:36:31 +08:00
parent b393e5957a
commit 749827ea72
Signed by: xtaodada
GPG Key ID: 4CBB3F4FA8C85659
3 changed files with 26 additions and 4 deletions

View File

@ -106,8 +106,8 @@ class RoleCombatPlugin(Plugin):
# 解析参数
floor, total, previous = get_args(" ".join([i for i in args if not i.startswith("@")]))
if floor > 8 or floor < 0:
reply_msg = await message.reply_text("幻想真境剧诗幕数输入错误,请重新输入。支持的参数为: 1-8 或 all")
if floor > 10 or floor < 0:
reply_msg = await message.reply_text("幻想真境剧诗幕数输入错误,请重新输入。支持的参数为: 1-10 或 all")
if filters.ChatType.GROUPS.filter(message):
self.add_delete_message_job(reply_msg)
self.add_delete_message_job(message)

View File

@ -86,6 +86,7 @@
</div>
</div>
</div>
{% if floor.buffs %}
<div class="hr"></div>
<div class="chamber">
<h2>奇妙助益 * {{ floor.buffs | length }}</h2>
@ -96,6 +97,25 @@
</div>
{% endfor %}
</div>
{% endif %}
{% if floor.splendour_buff %}
<div class="hr"></div>
<div class="chamber">
<h2>辉彩祝福</h2>
<div class="buff">
<div class="caption">{{ floor.splendour_buff.summary.desc_html | safe }}</div>
</div>
<div style="display: flex">
{% for buff in floor.splendour_buff.buffs %}
<div class="buff">
<img class="icon" src="{{ buff.icon }}" alt=""/>
<div class="caption">{{ buff.name }}Lv.{{ buff.level }}</div>
</div>
{% endfor %}
</div>
</div>
{% endif %}
{% if floor.choice_cards %}
<div class="hr"></div>
<div class="chamber">
<h2>神秘收获 * {{ floor.choice_cards | length }}</h2>
@ -106,6 +126,7 @@
</div>
{% endfor %}
</div>
{% endif %}
</div>
</div>
</div>

View File

@ -142,7 +142,7 @@ body {
background-size: cover;
background-repeat: no-repeat;
background-position: center;
overflow: hidden;
/*overflow: hidden;*/
border-radius: 0 0 20px 0;
display: flex;
flex-direction: column;
@ -371,6 +371,7 @@ body {
.buff img {
width: 100px;
height: auto;
height: 100px;
margin-right: 10px; /* 图片与文本之间的间距 */
object-fit: cover;
}