fix advance button being there when it shouldn't!

This commit is contained in:
zyl 2024-07-04 12:58:07 -07:00
parent 2dfc19e07a
commit 47b99a28ba
No known key found for this signature in database

View file

@ -253,6 +253,9 @@
statusMessy2.classList.add("hidden");
statusMessy3.classList.add("hidden");
adultInfo.classList.add("hidden");
elderInfo.classList.add("hidden");
let width = 0;
let height = 0;
@ -510,8 +513,10 @@
});
const advance = () => {
console.log(pet);
pet.needsAdvancement = false;
pet.updateDom();
console.log(pet);
};
for (let btn of document.querySelectorAll("button.advance")) {
btn.addEventListener("click", advance);