add 2 bugs for each award

master
Aevann 2023-07-14 14:18:23 +03:00
parent 6572e4c85c
commit 741c11ab36
3 changed files with 10 additions and 4 deletions

View File

@ -1,7 +1,9 @@
const shit_num = document.getElementById('shit_num').value
new BugController({
imageSprite: "/i/fly-sprite.webp",
canDie: false,
minBugs: MINFLIES,
maxBugs: MAXFLIES,
minBugs: MINFLIES + (shit_num * 2),
maxBugs: MAXFLIES + (shit_num * 2),
mouseOver: "multiply"
});

View File

@ -1,7 +1,9 @@
const fireflies_num = document.getElementById('fireflies_num').value
new BugController({
imageSprite: "/i/fireflies.webp",
canDie: false,
minBugs: MINFLIES,
maxBugs: MAXFLIES,
minBugs: MINFLIES + (fireflies_num * 2),
maxBugs: MAXFLIES + (fireflies_num * 2),
mouseOver: "multiply"
});

View File

@ -123,10 +123,12 @@
{% endif %}
{% if p.award_count("shit", v) %}
<input hidden id="shit_num" value="{{p.award_count('shit', v)}}">
<script defer src="{{'js/bugs.js' | asset}}"></script>
{% endif %}
{% if p.award_count("fireflies", v) %}
<input hidden id="fireflies_num" value="{{p.award_count('fireflies', v)}}">
<script defer src="{{'js/fireflies.js' | asset}}"></script>
{% endif %}