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

This reverts commit cb1f2f605f.
This commit is contained in:
Idrees Hassan
2026-01-21 23:36:54 -05:00
parent cb1f2f605f
commit d54f208cc4
7 changed files with 12 additions and 6 deletions

View File

@@ -116,6 +116,7 @@ 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;
@@ -411,7 +412,7 @@ function startApplication(birbPixels, featherPixels, hatsPixels) {
}
function determineHatUnlock() {
if (Math.random() < HAT_CHANCE) {
if (Math.random() < (HAT_CHANCE * (isPetBoostActive() ? PET_HAT_BOOST : 1))) {
insertHat();
} else if (location.hostname === "127.0.0.1") {
log("Inserting hat for debug purposes");