Allow clicking after short delay following petting

This commit is contained in:
Idrees Hassan
2025-10-25 22:55:55 -04:00
parent 3aa0308746
commit 7f9c388853
4 changed files with 5 additions and 5 deletions

View File

@@ -943,7 +943,7 @@ Promise.all([loadSpriteSheetPixels(SPRITE_SHEET), loadSpriteSheetPixels(DECORATI
});
onClick(canvas, () => {
if (currentAnimation === Animations.HEART) {
if (currentAnimation === Animations.HEART && (Date.now() - lastPetTimestamp < 1000)) {
// Currently being pet, don't open menu
return;
}