Remove hat pet boost because it doesn't work on page load

This commit is contained in:
Idrees Hassan
2026-01-21 23:36:31 -05:00
parent 2ee6ea84a7
commit cb1f2f605f
7 changed files with 6 additions and 12 deletions

BIN
dist/extension.zip vendored

Binary file not shown.

View File

@@ -2064,7 +2064,6 @@
// Petting boosts
const PET_BOOST_DURATION = 1000 * 60 * 5; // 5 minutes
const PET_FEATHER_BOOST = 2;
const PET_HAT_BOOST = 1.5;
// Focus element constraints
const MIN_FOCUS_ELEMENT_WIDTH = 100;
@@ -2360,7 +2359,7 @@
}
function determineHatUnlock() {
if (Math.random() < (HAT_CHANCE * (isPetBoostActive() ? PET_HAT_BOOST : 1))) {
if (Math.random() < HAT_CHANCE) {
insertHat();
} else if (location.hostname === "127.0.0.1") {
log("Inserting hat for debug purposes");

View File

@@ -2107,7 +2107,6 @@ module.exports = class PocketBird extends Plugin {
// Petting boosts
const PET_BOOST_DURATION = 1000 * 60 * 5; // 5 minutes
const PET_FEATHER_BOOST = 2;
const PET_HAT_BOOST = 1.5;
// Focus element constraints
const MIN_FOCUS_ELEMENT_WIDTH = 100;
@@ -2403,7 +2402,7 @@ module.exports = class PocketBird extends Plugin {
}
function determineHatUnlock() {
if (Math.random() < (HAT_CHANCE * (isPetBoostActive() ? PET_HAT_BOOST : 1))) {
if (Math.random() < HAT_CHANCE) {
insertHat();
} else if (location.hostname === "127.0.0.1") {
log("Inserting hat for debug purposes");

View File

@@ -2069,7 +2069,6 @@
// Petting boosts
const PET_BOOST_DURATION = 1000 * 60 * 5; // 5 minutes
const PET_FEATHER_BOOST = 2;
const PET_HAT_BOOST = 1.5;
// Focus element constraints
const MIN_FOCUS_ELEMENT_WIDTH = 100;
@@ -2365,7 +2364,7 @@
}
function determineHatUnlock() {
if (Math.random() < (HAT_CHANCE * (isPetBoostActive() ? PET_HAT_BOOST : 1))) {
if (Math.random() < HAT_CHANCE) {
insertHat();
} else if (location.hostname === "127.0.0.1") {
log("Inserting hat for debug purposes");

View File

@@ -2049,7 +2049,6 @@
// Petting boosts
const PET_BOOST_DURATION = 1000 * 60 * 5; // 5 minutes
const PET_FEATHER_BOOST = 2;
const PET_HAT_BOOST = 1.5;
// Focus element constraints
const MIN_FOCUS_ELEMENT_WIDTH = 100;
@@ -2345,7 +2344,7 @@
}
function determineHatUnlock() {
if (Math.random() < (HAT_CHANCE * (isPetBoostActive() ? PET_HAT_BOOST : 1))) {
if (Math.random() < HAT_CHANCE) {
insertHat();
} else if (location.hostname === "127.0.0.1") {
log("Inserting hat for debug purposes");

3
dist/web/birb.js vendored
View File

@@ -2049,7 +2049,6 @@
// Petting boosts
const PET_BOOST_DURATION = 1000 * 60 * 5; // 5 minutes
const PET_FEATHER_BOOST = 2;
const PET_HAT_BOOST = 1.5;
// Focus element constraints
const MIN_FOCUS_ELEMENT_WIDTH = 100;
@@ -2345,7 +2344,7 @@
}
function determineHatUnlock() {
if (Math.random() < (HAT_CHANCE * (isPetBoostActive() ? PET_HAT_BOOST : 1))) {
if (Math.random() < HAT_CHANCE) {
insertHat();
} else if (location.hostname === "127.0.0.1") {
log("Inserting hat for debug purposes");

View File

@@ -116,7 +116,6 @@ const FEATHER_FALL_SPEED = 1;
// Petting boosts
const PET_BOOST_DURATION = 1000 * 60 * 5; // 5 minutes
const PET_FEATHER_BOOST = 2;
const PET_HAT_BOOST = 1.5;
// Focus element constraints
const MIN_FOCUS_ELEMENT_WIDTH = 100;
@@ -412,7 +411,7 @@ function startApplication(birbPixels, featherPixels, hatsPixels) {
}
function determineHatUnlock() {
if (Math.random() < (HAT_CHANCE * (isPetBoostActive() ? PET_HAT_BOOST : 1))) {
if (Math.random() < HAT_CHANCE) {
insertHat();
} else if (location.hostname === "127.0.0.1") {
log("Inserting hat for debug purposes");