forked from rDrama/rDrama
max at 50 and 100 so as to now crash tab
parent
741c11ab36
commit
dbe4d7c42a
|
@ -3,7 +3,7 @@ const shit_num = document.getElementById('shit_num').value
|
||||||
new BugController({
|
new BugController({
|
||||||
imageSprite: "/i/fly-sprite.webp",
|
imageSprite: "/i/fly-sprite.webp",
|
||||||
canDie: false,
|
canDie: false,
|
||||||
minBugs: MINFLIES + (shit_num * 2),
|
minBugs: Math.min(MINFLIES + (shit_num * 2), 50),
|
||||||
maxBugs: MAXFLIES + (shit_num * 2),
|
maxBugs: Math.min(MAXFLIES + (shit_num * 2), 100),
|
||||||
mouseOver: "multiply"
|
mouseOver: "multiply"
|
||||||
});
|
});
|
||||||
|
|
|
@ -3,7 +3,7 @@ const fireflies_num = document.getElementById('fireflies_num').value
|
||||||
new BugController({
|
new BugController({
|
||||||
imageSprite: "/i/fireflies.webp",
|
imageSprite: "/i/fireflies.webp",
|
||||||
canDie: false,
|
canDie: false,
|
||||||
minBugs: MINFLIES + (fireflies_num * 2),
|
minBugs: Math.min(MINFLIES + (fireflies_num * 2), 50),
|
||||||
maxBugs: MAXFLIES + (fireflies_num * 2),
|
maxBugs: Math.min(MAXFLIES + (fireflies_num * 2), 100),
|
||||||
mouseOver: "multiply"
|
mouseOver: "multiply"
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue