From 492a02b8d2df1b50e5e688632aa05fdc406ac4fb Mon Sep 17 00:00:00 2001 From: xtaodada Date: Sat, 21 Dec 2024 14:46:09 +0800 Subject: [PATCH] :lipstick: Support show character ranks in abyss floor data --- resources/zzz/abyss/floor.jinja2 | 7 +++++++ resources/zzz/abyss/floor_mem.jinja2 | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/resources/zzz/abyss/floor.jinja2 b/resources/zzz/abyss/floor.jinja2 index de74f0d..cd18931 100644 --- a/resources/zzz/abyss/floor.jinja2 +++ b/resources/zzz/abyss/floor.jinja2 @@ -22,6 +22,13 @@
{% for character in node.avatars %}
+ {% if character.rank > 0 %} + {% set constellation = character.rank %} + {% set bg = ['blue', 'blue', 'green', 'green', 'red', 'red'][constellation - 1] %} +
+ {{ constellation }} 命 +
+ {% endif %}
diff --git a/resources/zzz/abyss/floor_mem.jinja2 b/resources/zzz/abyss/floor_mem.jinja2 index 029e416..b157cb6 100644 --- a/resources/zzz/abyss/floor_mem.jinja2 +++ b/resources/zzz/abyss/floor_mem.jinja2 @@ -29,6 +29,13 @@
{% for character in data.floor.avatar_list %}
+ {% if character.rank > 0 %} + {% set constellation = character.rank %} + {% set bg = ['blue', 'blue', 'green', 'green', 'red', 'red'][constellation - 1] %} +
+ {{ constellation }} 命 +
+ {% endif %}