mirror of
https://github.com/zyllian/zyllian.github.io.git
synced 2025-01-18 03:32:30 -08:00
fix advance button being there when it shouldn't!
This commit is contained in:
parent
2dfc19e07a
commit
47b99a28ba
1 changed files with 5 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue