{% macro stackable_award(award, src, alt) %}
{% for i in range(p.award_count(award, v)) %}
{{alt}}
{% endfor %}
{% endmacro %} {% if p.award_count("emoji", v) or p.award_count("emoji-hz", v) %} {% for kind in ["emoji", "emoji-hz"] %}
{% for emoji in p.emoji_awards_emojis(v, kind, NSFW_EMOJIS) %} {% set src = '/e/' + emoji + '.webp' %} {% set alt = 'emoji-award-' + emoji %} {% set delay = 'animation-delay-' ~ ((loop.index-1)/4)|int %}
{{alt}}
{% endfor %}
{% endfor %} {% endif %} {% if p.award_count("firework", v) %} {{stackable_award('firework')}} {% endif %} {% if p.award_count("confetti", v) and (IS_BIRTHGAY() or IS_BIRTHDEAD()) %}
{% endif %} {% if p.award_count("ricardo", v) %} {% for i in range(min(p.award_count("ricardo", v), 3)) %} {% set i = i + 1 %}
{% if IS_HOMOWEEN() %} {% set src = SITE_FULL_IMAGES ~ "/assets/events/homoween/images/ricardo" ~ i ~ ".webp" %} {% else %} {% set src = SITE_FULL_IMAGES ~ "/i/ricardo" ~ i ~ ".webp" %} {% endif %}
{% endfor %} {% endif %}