fix strange ball (again)

This commit is contained in:
CajunAvenger 2023-03-09 15:49:51 -06:00
parent 0102447859
commit fadb0b6177
3 changed files with 4 additions and 2 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 24 KiB

View File

@ -1774,7 +1774,7 @@ canvas {
}
function fullShiny() {
if(spriteFile == "Shiny") {
setCookie("shiny", "shsiny");
setCookie("shiny", "shiny");
}else{
deleteCookie("shiny");
}
@ -1839,10 +1839,12 @@ canvas {
return;
}
if(currently_selecting != null) {
// if we've clicked the same box, close it and exit
if(currently_selecting[0] == gen && currently_selecting[1] == type) {
closeBox();
return;
}
// otherwise close any open boxes and keep going
closeBox();
}
currently_selecting = [gen, type];
@ -2074,7 +2076,7 @@ canvas {
var ele = document.getElementById('box'+g+'_'+t);
if(!ele || ele.src == "./blank.png")
continue;
ctx.drawImage(ele, ele.offsetLeft, ele.offsetTop);
ctx.drawImage(ele, ele.offsetLeft, ele.offsetTop);
if(g == 0 && t == 22) {
// render spinda
var spots = ["spot1", "spot2", "spot3", "spot4", "spinda2", "spinda-cover"];