forked from MarseyWorld/MarseyWorld
add 2 bugs for each award
parent
6572e4c85c
commit
741c11ab36
|
@ -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"
|
||||
});
|
||||
|
|
|
@ -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"
|
||||
});
|
||||
|
|
|
@ -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 %}
|
||||
|
||||
|
|
Loading…
Reference in New Issue