mirror of
https://github.com/NohamR/Pocket-Bird.git
synced 2026-05-25 12:17:22 +00:00
Create none hat
This commit is contained in:
BIN
dist/extension.zip
vendored
BIN
dist/extension.zip
vendored
Binary file not shown.
6
dist/extension/birb.js
vendored
6
dist/extension/birb.js
vendored
@@ -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[]} */
|
||||
|
||||
6
dist/obsidian/main.js
vendored
6
dist/obsidian/main.js
vendored
@@ -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[]} */
|
||||
|
||||
6
dist/userscript/birb.user.js
vendored
6
dist/userscript/birb.user.js
vendored
@@ -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[]} */
|
||||
|
||||
6
dist/web/birb.embed.js
vendored
6
dist/web/birb.embed.js
vendored
@@ -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[]} */
|
||||
|
||||
6
dist/web/birb.js
vendored
6
dist/web/birb.js
vendored
@@ -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[]} */
|
||||
|
||||
Reference in New Issue
Block a user