eternaldensity / Sandcastle-Builder

xkcd: 1190: Time: The Game
Other
84 stars 68 forks source link

GoatONG doesn't work #1537

Open sniboboof opened 3 months ago

sniboboof commented 3 months ago

Click "use" button on [prize L3] GoatONG boost, nothing seems to happen. Checking the console, I see:

Uncaught TypeError: b.Has is not a function at Molpy.Has (castle.js?v=1:1292:19) at Molpy.GoatONG (boosts.js?v=1:8937:22) at HTMLInputElement.onclick (castle.html:1:7) Molpy.Has @ castle.js?v=1:1292 Molpy.GoatONG @ boosts.js?v=1:8937 onclick @ castle.html:1

checking the code under GoatONG's function definition, it seems to check for the presence of Shark of Sparking with Molpy.Has() rather than Molpy.Got(). I think .Has() usually checks for stuff while .Got() is typically used to check for boosts. Not sure if this line was meant to check with .Got() or instead check for something else, like sharks.