mirror of
https://github.com/NohamR/Pocket-Bird.git
synced 2026-05-25 04:07:23 +00:00
Remove hat pet boost because it doesn't work on page load
This commit is contained in:
3
dist/obsidian/main.js
vendored
3
dist/obsidian/main.js
vendored
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user