mirror of
https://github.com/NohamR/Pocket-Bird.git
synced 2026-07-10 10:23:05 +00:00
Allow clicking after short delay following petting
This commit is contained in:
1 parent
3aa0308746
commit
7f9c388853
4 files changed
+5
-5
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
Vendored
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
Vendored
+2
-2
@@ -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
@@ -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": [
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user