diff --git a/dist/extension.zip b/dist/extension.zip index a55ca9f..495adcb 100644 Binary files a/dist/extension.zip and b/dist/extension.zip differ diff --git a/dist/extension/birb.js b/dist/extension/birb.js index 062135a..f50db79 100644 --- a/dist/extension/birb.js +++ b/dist/extension/birb.js @@ -608,6 +608,7 @@ } const HAT = { + NONE: 'none', TOP_HAT: 'top-hat' }; @@ -621,6 +622,9 @@ down: [] }; for (const hatName in HAT) { + if (hatName === 'NONE') { + continue; + } const hatKey = HAT[hatName]; const hatLayer = buildHatLayer(spriteSheet, hatKey, false); const downHatLayer = buildHatLayer(spriteSheet, hatKey, false, 1); @@ -2026,7 +2030,7 @@ let petStack = []; let currentSpecies = DEFAULT_BIRD; let unlockedSpecies = [DEFAULT_BIRD]; - let currentHat = HAT.TOP_HAT; + let currentHat = HAT.NONE; // let visible = true; let lastPetTimestamp = 0; /** @type {StickyNote[]} */ diff --git a/dist/obsidian/main.js b/dist/obsidian/main.js index e41a871..93d874e 100644 --- a/dist/obsidian/main.js +++ b/dist/obsidian/main.js @@ -613,6 +613,7 @@ module.exports = class PocketBird extends Plugin { } const HAT = { + NONE: 'none', TOP_HAT: 'top-hat' }; @@ -626,6 +627,9 @@ module.exports = class PocketBird extends Plugin { down: [] }; for (const hatName in HAT) { + if (hatName === 'NONE') { + continue; + } const hatKey = HAT[hatName]; const hatLayer = buildHatLayer(spriteSheet, hatKey, false); const downHatLayer = buildHatLayer(spriteSheet, hatKey, false, 1); @@ -2069,7 +2073,7 @@ module.exports = class PocketBird extends Plugin { let petStack = []; let currentSpecies = DEFAULT_BIRD; let unlockedSpecies = [DEFAULT_BIRD]; - let currentHat = HAT.TOP_HAT; + let currentHat = HAT.NONE; // let visible = true; let lastPetTimestamp = 0; /** @type {StickyNote[]} */ diff --git a/dist/userscript/birb.user.js b/dist/userscript/birb.user.js index 39bc16f..081a52a 100644 --- a/dist/userscript/birb.user.js +++ b/dist/userscript/birb.user.js @@ -622,6 +622,7 @@ } const HAT = { + NONE: 'none', TOP_HAT: 'top-hat' }; @@ -635,6 +636,9 @@ down: [] }; for (const hatName in HAT) { + if (hatName === 'NONE') { + continue; + } const hatKey = HAT[hatName]; const hatLayer = buildHatLayer(spriteSheet, hatKey, false); const downHatLayer = buildHatLayer(spriteSheet, hatKey, false, 1); @@ -2031,7 +2035,7 @@ let petStack = []; let currentSpecies = DEFAULT_BIRD; let unlockedSpecies = [DEFAULT_BIRD]; - let currentHat = HAT.TOP_HAT; + let currentHat = HAT.NONE; // let visible = true; let lastPetTimestamp = 0; /** @type {StickyNote[]} */ diff --git a/dist/web/birb.embed.js b/dist/web/birb.embed.js index 3fe2a00..c7f134f 100644 --- a/dist/web/birb.embed.js +++ b/dist/web/birb.embed.js @@ -608,6 +608,7 @@ } const HAT = { + NONE: 'none', TOP_HAT: 'top-hat' }; @@ -621,6 +622,9 @@ down: [] }; for (const hatName in HAT) { + if (hatName === 'NONE') { + continue; + } const hatKey = HAT[hatName]; const hatLayer = buildHatLayer(spriteSheet, hatKey, false); const downHatLayer = buildHatLayer(spriteSheet, hatKey, false, 1); @@ -2011,7 +2015,7 @@ let petStack = []; let currentSpecies = DEFAULT_BIRD; let unlockedSpecies = [DEFAULT_BIRD]; - let currentHat = HAT.TOP_HAT; + let currentHat = HAT.NONE; // let visible = true; let lastPetTimestamp = 0; /** @type {StickyNote[]} */ diff --git a/dist/web/birb.js b/dist/web/birb.js index 3fe2a00..c7f134f 100644 --- a/dist/web/birb.js +++ b/dist/web/birb.js @@ -608,6 +608,7 @@ } const HAT = { + NONE: 'none', TOP_HAT: 'top-hat' }; @@ -621,6 +622,9 @@ down: [] }; for (const hatName in HAT) { + if (hatName === 'NONE') { + continue; + } const hatKey = HAT[hatName]; const hatLayer = buildHatLayer(spriteSheet, hatKey, false); const downHatLayer = buildHatLayer(spriteSheet, hatKey, false, 1); @@ -2011,7 +2015,7 @@ let petStack = []; let currentSpecies = DEFAULT_BIRD; let unlockedSpecies = [DEFAULT_BIRD]; - let currentHat = HAT.TOP_HAT; + let currentHat = HAT.NONE; // let visible = true; let lastPetTimestamp = 0; /** @type {StickyNote[]} */ diff --git a/src/application.js b/src/application.js index 5b4ad56..08dab9c 100644 --- a/src/application.js +++ b/src/application.js @@ -237,7 +237,7 @@ function startApplication(birbPixels, featherPixels, hatsPixels) { let petStack = []; let currentSpecies = DEFAULT_BIRD; let unlockedSpecies = [DEFAULT_BIRD]; - let currentHat = HAT.TOP_HAT; + let currentHat = HAT.NONE; // let visible = true; let lastPetTimestamp = 0; /** @type {StickyNote[]} */ diff --git a/src/hats.js b/src/hats.js index c5526a6..b71a083 100644 --- a/src/hats.js +++ b/src/hats.js @@ -3,6 +3,7 @@ import { PALETTE } from "./animation/sprites.js"; import { getLayerPixels } from "./shared.js"; export const HAT = { + NONE: 'none', TOP_HAT: 'top-hat' }; @@ -16,6 +17,9 @@ export function createHatLayers(spriteSheet) { down: [] }; for (const hatName in HAT) { + if (hatName === 'NONE') { + continue; + } const hatKey = HAT[hatName]; const hatLayer = buildHatLayer(spriteSheet, hatKey, false); const downHatLayer = buildHatLayer(spriteSheet, hatKey, false, 1);