Allow clicking after short delay following petting

This commit is contained in:
Idrees Hassan committed 2025-10-25 22:55:55 -04:00
1 parent 3aa0308746
commit 7f9c388853
4 files changed
+5 -5

No files matched your search

+1 -1
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;
}
+1 -1
View File
@@ -1286,7 +1286,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;
}
+2 -2
View File
@@ -1,7 +1,7 @@
// ==UserScript==
// @name Pocket Bird
// @namespace https://idreesinc.com
// @version 2025.10.25.8
// @version 2025.10.25.15
// @description birb
// @author Idrees
// @downloadURL https://github.com/IdreesInc/Pocket-Bird/raw/refs/heads/main/dist/birb.user.js
@@ -1300,7 +1300,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;
}
+1 -1
View File
@@ -2,7 +2,7 @@
"manifest_version": 3,
"name": "Pocket Bird",
"description": "It's a bird, in your browser. What more could you want?",
"version": "2025.10.25.8",
"version": "2025.10.25.15",
"homepage_url": "https://idreesinc.com",
"content_scripts": [
{