{% extends "base.html" %} {% import "macros.html" as macros with context %} {% block content %}
{{ data.name }}
ID: {{ data.id }}
{{ data.mod }}
{% if data.imagePath %} {% set frames = data.frameCount or 1 %} {% else %} ? {% endif %}
{% if data.description and data.description != "None" %}
{{ data.description }}
{% endif %}
{% if data.stats %} {% if data.stats.damage > 0 %} {% endif %} {% if data.stats.crit > 0 %} {% endif %} {% if data.stats.useTime > 0 %} {% endif %} {% if data.stats.knockBack > 0 %} {% endif %} {% if data.stats.defense > 0 %} {% endif %}
类型 {{ data.type }}
伤害 {{ data.stats.damage }}
暴击率 {{ data.stats.crit }}%
使用时间 {{ data.stats.useTime }}
击退 {{ "%.1f"|format(data.stats.knockBack) }}
防御力 {{ data.stats.defense }}
最大堆叠 {{ data.stats.maxStack }}
买入价格 {{ format_coin(data.stats.value) }}
卖出价格
{{ format_coin((data.stats.value * 0.2)|int) }}
* 基础售价 (受NPC快乐度影响)
{% endif %}
{% if data.droppedBy or data.soldBy %}
获取来源
{% for npc in data.droppedBy %}
{{ npc.name }}
{% endfor %} {% for npc in data.soldBy %}
{{ npc.name }}
{% endfor %}
{% endif %} {% if data.recipes %}
合成方式 (简略)
{% for recipe in data.recipes %}
{% if recipe.stations %} {{ macros.item_slot(recipe.stations[0], show_name=True) }} {% else %} 徒手 {% endif %}
{% for ing in recipe.ingredients %} {{ macros.item_slot(ing, show_name=False) }} {% endfor %}
{{ macros.item_slot({'name': recipe.resultName, 'stack': recipe.resultCount, 'imagePath': data.imagePath, 'frameCount': data.frameCount}, show_name=False) }}
{% endfor %}
使用 /recipe {{ data.id }} 查看完整合成树
{% endif %} {% endblock %}