35 lines
894 B
HTML
35 lines
894 B
HTML
{% macro drop(label) %}
|
|
{% let drops = drop.drops(label) %}
|
|
{% if drops.len() > 0 %}
|
|
<div
|
|
class="category-wrapper"
|
|
data-mat-kind="{{ drop.category }}"
|
|
data-mat-type="{{ label }}"
|
|
>
|
|
<div class="category">
|
|
<img
|
|
src="../public/assets/materials/{{ drop.category }}/{{ label }}.webp"
|
|
width="64"
|
|
height="64"
|
|
/>
|
|
<!-- <h1> -->
|
|
<!-- {{ drop.category|capitalize +}} {{+ label|capitalize }} -->
|
|
<!-- </h1> -->
|
|
<h1>{{ drop.name }}</h1>
|
|
<button onclick="track(this)">Start tracking</button>
|
|
</div>
|
|
<div class="enemies">
|
|
{% for drop in drops %}
|
|
<div class="drop">
|
|
<div
|
|
style="background-image: url('../public/assets/enemies/{{ drop.texture() }}.webp');"
|
|
></div>
|
|
<span>{{ drop.from +}}</span>
|
|
<span>{{+ drop.chance }}</span>
|
|
</div>
|
|
{% endfor %}
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
{% endmacro %}
|