diff --git a/dist/extension.zip b/dist/extension.zip index a90ba75..8efe2e5 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 4036f6e..da6797d 100644 --- a/dist/extension/birb.js +++ b/dist/extension/birb.js @@ -617,22 +617,38 @@ }, "cubanTody": { "name": "Cuban Tody", - "description": "As the name suggests, this green bird is only found on the island of Cuba and is known for being particularly round.", + "description": "As the name suggests, this little green bird is only found on the island of Cuba and is known for being particularly round.", "latinName": "Todus multicolor", "url": "https://en.wikipedia.org/wiki/Cuban_tody", "colors": { - "beak": "#f16f54", - "face": "#5fdf44", - "chin": "#f12d3e", - "collar": "#f12d3e", - "belly": "#f6f5e4", - "collar-scruff": "#a3ebff", - "underbelly": "#eae9d2", - "wing": "#11c751", - "wing-edge": "#156631", - "foot": "#ac7055", - "scruff": "#11c751" + "beak": "#f16f54", + "face": "#5fdf44", + "chin": "#f12d3e", + "collar": "#f12d3e", + "belly": "#f6f5e4", + "collar-scruff": "#a3ebff", + "underbelly": "#eae9d2", + "wing": "#11c751", + "wing-edge": "#156631", + "foot": "#ac7055", + "scruff": "#11c751" + }, + "rarity": "uncommon" }, + "violetBackedStarling": { + "name": "Violet-backed Starling", + "description": "Native to Sub-Saharan Africa, these small starlings are known for being the most vividly purple birds in the world.", + "latinName": "Cinnyricinclus leucogaster", + "url": "https://en.wikipedia.org/wiki/Violet-backed_starling", + "colors": { + "face": "#9c3af2", + "wing": "#8f37ed", + "wing-edge": "#7029b8", + "belly": "#ffffff", + "underbelly": "#f2f2f2", + "foot": "#736a66", + "collar": "#aa60e6" + }, "rarity": "uncommon" } }; @@ -740,7 +756,7 @@ }); const RARITY = Object.freeze(/** @type {const} */ ({ - FAMILIAR: "familiar", + COMMON: "common", UNCOMMON: "uncommon" })); @@ -756,7 +772,7 @@ * @param {string[]} [tags] * @param {Rarity} [rarity] */ - constructor(name, description, latinName, url, colors, tags = [], rarity = RARITY.FAMILIAR) { + constructor(name, description, latinName, url, colors, tags = [], rarity = RARITY.COMMON) { this.name = name; this.description = description; this.latinName = latinName; @@ -2984,7 +3000,7 @@ if (document.querySelector("#" + FEATHER_ID)) { return; } - const rarity = Math.random() < UNCOMMON_FEATHER_CHANCE ? RARITY.UNCOMMON : RARITY.FAMILIAR; + const rarity = Math.random() < UNCOMMON_FEATHER_CHANCE ? RARITY.UNCOMMON : RARITY.COMMON; const speciesToUnlock = Object.keys(SPECIES).filter((species) => !unlockedSpecies.includes(species) && SPECIES[species].rarity === rarity); if (speciesToUnlock.length === 0) { // No more species to unlock @@ -3190,6 +3206,7 @@ const uncommonLabel = document.createElement("div"); uncommonLabel.className = "birb-field-guide-section-label"; uncommonLabel.textContent = `----- Uncommon ${birdBirb()}s -----`; + uncommonLabel.title = "Arbitrarily classified birds that are a little harder to find, but worth the wait!"; const description = makeElement("birb-field-guide-description"); contentContainer.appendChild(familiarLabel); @@ -3222,7 +3239,7 @@ latinName.target = "_blank"; const spacerTwo = document.createElement("div"); - spacerTwo.style.height = "0.3em"; + spacerTwo.style.height = "0.4em"; const descText = document.createTextNode(!unlocked ? "Not yet unlocked" : type.description); diff --git a/dist/obsidian/main.js b/dist/obsidian/main.js index e93fc01..2587eb5 100644 --- a/dist/obsidian/main.js +++ b/dist/obsidian/main.js @@ -622,22 +622,38 @@ module.exports = class PocketBird extends Plugin { }, "cubanTody": { "name": "Cuban Tody", - "description": "As the name suggests, this green bird is only found on the island of Cuba and is known for being particularly round.", + "description": "As the name suggests, this little green bird is only found on the island of Cuba and is known for being particularly round.", "latinName": "Todus multicolor", "url": "https://en.wikipedia.org/wiki/Cuban_tody", "colors": { - "beak": "#f16f54", - "face": "#5fdf44", - "chin": "#f12d3e", - "collar": "#f12d3e", - "belly": "#f6f5e4", - "collar-scruff": "#a3ebff", - "underbelly": "#eae9d2", - "wing": "#11c751", - "wing-edge": "#156631", - "foot": "#ac7055", - "scruff": "#11c751" + "beak": "#f16f54", + "face": "#5fdf44", + "chin": "#f12d3e", + "collar": "#f12d3e", + "belly": "#f6f5e4", + "collar-scruff": "#a3ebff", + "underbelly": "#eae9d2", + "wing": "#11c751", + "wing-edge": "#156631", + "foot": "#ac7055", + "scruff": "#11c751" + }, + "rarity": "uncommon" }, + "violetBackedStarling": { + "name": "Violet-backed Starling", + "description": "Native to Sub-Saharan Africa, these small starlings are known for being the most vividly purple birds in the world.", + "latinName": "Cinnyricinclus leucogaster", + "url": "https://en.wikipedia.org/wiki/Violet-backed_starling", + "colors": { + "face": "#9c3af2", + "wing": "#8f37ed", + "wing-edge": "#7029b8", + "belly": "#ffffff", + "underbelly": "#f2f2f2", + "foot": "#736a66", + "collar": "#aa60e6" + }, "rarity": "uncommon" } }; @@ -745,7 +761,7 @@ module.exports = class PocketBird extends Plugin { }); const RARITY = Object.freeze(/** @type {const} */ ({ - FAMILIAR: "familiar", + COMMON: "common", UNCOMMON: "uncommon" })); @@ -761,7 +777,7 @@ module.exports = class PocketBird extends Plugin { * @param {string[]} [tags] * @param {Rarity} [rarity] */ - constructor(name, description, latinName, url, colors, tags = [], rarity = RARITY.FAMILIAR) { + constructor(name, description, latinName, url, colors, tags = [], rarity = RARITY.COMMON) { this.name = name; this.description = description; this.latinName = latinName; @@ -3017,7 +3033,7 @@ module.exports = class PocketBird extends Plugin { if (document.querySelector("#" + FEATHER_ID)) { return; } - const rarity = Math.random() < UNCOMMON_FEATHER_CHANCE ? RARITY.UNCOMMON : RARITY.FAMILIAR; + const rarity = Math.random() < UNCOMMON_FEATHER_CHANCE ? RARITY.UNCOMMON : RARITY.COMMON; const speciesToUnlock = Object.keys(SPECIES).filter((species) => !unlockedSpecies.includes(species) && SPECIES[species].rarity === rarity); if (speciesToUnlock.length === 0) { // No more species to unlock @@ -3223,6 +3239,7 @@ module.exports = class PocketBird extends Plugin { const uncommonLabel = document.createElement("div"); uncommonLabel.className = "birb-field-guide-section-label"; uncommonLabel.textContent = `----- Uncommon ${birdBirb()}s -----`; + uncommonLabel.title = "Arbitrarily classified birds that are a little harder to find, but worth the wait!"; const description = makeElement("birb-field-guide-description"); contentContainer.appendChild(familiarLabel); @@ -3255,7 +3272,7 @@ module.exports = class PocketBird extends Plugin { latinName.target = "_blank"; const spacerTwo = document.createElement("div"); - spacerTwo.style.height = "0.3em"; + spacerTwo.style.height = "0.4em"; const descText = document.createTextNode(!unlocked ? "Not yet unlocked" : type.description); diff --git a/dist/userscript/birb.user.js b/dist/userscript/birb.user.js index 6489030..f81e30e 100644 --- a/dist/userscript/birb.user.js +++ b/dist/userscript/birb.user.js @@ -631,22 +631,38 @@ }, "cubanTody": { "name": "Cuban Tody", - "description": "As the name suggests, this green bird is only found on the island of Cuba and is known for being particularly round.", + "description": "As the name suggests, this little green bird is only found on the island of Cuba and is known for being particularly round.", "latinName": "Todus multicolor", "url": "https://en.wikipedia.org/wiki/Cuban_tody", "colors": { - "beak": "#f16f54", - "face": "#5fdf44", - "chin": "#f12d3e", - "collar": "#f12d3e", - "belly": "#f6f5e4", - "collar-scruff": "#a3ebff", - "underbelly": "#eae9d2", - "wing": "#11c751", - "wing-edge": "#156631", - "foot": "#ac7055", - "scruff": "#11c751" + "beak": "#f16f54", + "face": "#5fdf44", + "chin": "#f12d3e", + "collar": "#f12d3e", + "belly": "#f6f5e4", + "collar-scruff": "#a3ebff", + "underbelly": "#eae9d2", + "wing": "#11c751", + "wing-edge": "#156631", + "foot": "#ac7055", + "scruff": "#11c751" + }, + "rarity": "uncommon" }, + "violetBackedStarling": { + "name": "Violet-backed Starling", + "description": "Native to Sub-Saharan Africa, these small starlings are known for being the most vividly purple birds in the world.", + "latinName": "Cinnyricinclus leucogaster", + "url": "https://en.wikipedia.org/wiki/Violet-backed_starling", + "colors": { + "face": "#9c3af2", + "wing": "#8f37ed", + "wing-edge": "#7029b8", + "belly": "#ffffff", + "underbelly": "#f2f2f2", + "foot": "#736a66", + "collar": "#aa60e6" + }, "rarity": "uncommon" } }; @@ -754,7 +770,7 @@ }); const RARITY = Object.freeze(/** @type {const} */ ({ - FAMILIAR: "familiar", + COMMON: "common", UNCOMMON: "uncommon" })); @@ -770,7 +786,7 @@ * @param {string[]} [tags] * @param {Rarity} [rarity] */ - constructor(name, description, latinName, url, colors, tags = [], rarity = RARITY.FAMILIAR) { + constructor(name, description, latinName, url, colors, tags = [], rarity = RARITY.COMMON) { this.name = name; this.description = description; this.latinName = latinName; @@ -2979,7 +2995,7 @@ if (document.querySelector("#" + FEATHER_ID)) { return; } - const rarity = Math.random() < UNCOMMON_FEATHER_CHANCE ? RARITY.UNCOMMON : RARITY.FAMILIAR; + const rarity = Math.random() < UNCOMMON_FEATHER_CHANCE ? RARITY.UNCOMMON : RARITY.COMMON; const speciesToUnlock = Object.keys(SPECIES).filter((species) => !unlockedSpecies.includes(species) && SPECIES[species].rarity === rarity); if (speciesToUnlock.length === 0) { // No more species to unlock @@ -3185,6 +3201,7 @@ const uncommonLabel = document.createElement("div"); uncommonLabel.className = "birb-field-guide-section-label"; uncommonLabel.textContent = `----- Uncommon ${birdBirb()}s -----`; + uncommonLabel.title = "Arbitrarily classified birds that are a little harder to find, but worth the wait!"; const description = makeElement("birb-field-guide-description"); contentContainer.appendChild(familiarLabel); @@ -3217,7 +3234,7 @@ latinName.target = "_blank"; const spacerTwo = document.createElement("div"); - spacerTwo.style.height = "0.3em"; + spacerTwo.style.height = "0.4em"; const descText = document.createTextNode(!unlocked ? "Not yet unlocked" : type.description); diff --git a/dist/web/birb.embed.js b/dist/web/birb.embed.js index cd63e79..55a9e6a 100644 --- a/dist/web/birb.embed.js +++ b/dist/web/birb.embed.js @@ -617,22 +617,38 @@ }, "cubanTody": { "name": "Cuban Tody", - "description": "As the name suggests, this green bird is only found on the island of Cuba and is known for being particularly round.", + "description": "As the name suggests, this little green bird is only found on the island of Cuba and is known for being particularly round.", "latinName": "Todus multicolor", "url": "https://en.wikipedia.org/wiki/Cuban_tody", "colors": { - "beak": "#f16f54", - "face": "#5fdf44", - "chin": "#f12d3e", - "collar": "#f12d3e", - "belly": "#f6f5e4", - "collar-scruff": "#a3ebff", - "underbelly": "#eae9d2", - "wing": "#11c751", - "wing-edge": "#156631", - "foot": "#ac7055", - "scruff": "#11c751" + "beak": "#f16f54", + "face": "#5fdf44", + "chin": "#f12d3e", + "collar": "#f12d3e", + "belly": "#f6f5e4", + "collar-scruff": "#a3ebff", + "underbelly": "#eae9d2", + "wing": "#11c751", + "wing-edge": "#156631", + "foot": "#ac7055", + "scruff": "#11c751" + }, + "rarity": "uncommon" }, + "violetBackedStarling": { + "name": "Violet-backed Starling", + "description": "Native to Sub-Saharan Africa, these small starlings are known for being the most vividly purple birds in the world.", + "latinName": "Cinnyricinclus leucogaster", + "url": "https://en.wikipedia.org/wiki/Violet-backed_starling", + "colors": { + "face": "#9c3af2", + "wing": "#8f37ed", + "wing-edge": "#7029b8", + "belly": "#ffffff", + "underbelly": "#f2f2f2", + "foot": "#736a66", + "collar": "#aa60e6" + }, "rarity": "uncommon" } }; @@ -740,7 +756,7 @@ }); const RARITY = Object.freeze(/** @type {const} */ ({ - FAMILIAR: "familiar", + COMMON: "common", UNCOMMON: "uncommon" })); @@ -756,7 +772,7 @@ * @param {string[]} [tags] * @param {Rarity} [rarity] */ - constructor(name, description, latinName, url, colors, tags = [], rarity = RARITY.FAMILIAR) { + constructor(name, description, latinName, url, colors, tags = [], rarity = RARITY.COMMON) { this.name = name; this.description = description; this.latinName = latinName; @@ -2959,7 +2975,7 @@ if (document.querySelector("#" + FEATHER_ID)) { return; } - const rarity = Math.random() < UNCOMMON_FEATHER_CHANCE ? RARITY.UNCOMMON : RARITY.FAMILIAR; + const rarity = Math.random() < UNCOMMON_FEATHER_CHANCE ? RARITY.UNCOMMON : RARITY.COMMON; const speciesToUnlock = Object.keys(SPECIES).filter((species) => !unlockedSpecies.includes(species) && SPECIES[species].rarity === rarity); if (speciesToUnlock.length === 0) { // No more species to unlock @@ -3165,6 +3181,7 @@ const uncommonLabel = document.createElement("div"); uncommonLabel.className = "birb-field-guide-section-label"; uncommonLabel.textContent = `----- Uncommon ${birdBirb()}s -----`; + uncommonLabel.title = "Arbitrarily classified birds that are a little harder to find, but worth the wait!"; const description = makeElement("birb-field-guide-description"); contentContainer.appendChild(familiarLabel); @@ -3197,7 +3214,7 @@ latinName.target = "_blank"; const spacerTwo = document.createElement("div"); - spacerTwo.style.height = "0.3em"; + spacerTwo.style.height = "0.4em"; const descText = document.createTextNode(!unlocked ? "Not yet unlocked" : type.description); diff --git a/dist/web/birb.js b/dist/web/birb.js index cd63e79..55a9e6a 100644 --- a/dist/web/birb.js +++ b/dist/web/birb.js @@ -617,22 +617,38 @@ }, "cubanTody": { "name": "Cuban Tody", - "description": "As the name suggests, this green bird is only found on the island of Cuba and is known for being particularly round.", + "description": "As the name suggests, this little green bird is only found on the island of Cuba and is known for being particularly round.", "latinName": "Todus multicolor", "url": "https://en.wikipedia.org/wiki/Cuban_tody", "colors": { - "beak": "#f16f54", - "face": "#5fdf44", - "chin": "#f12d3e", - "collar": "#f12d3e", - "belly": "#f6f5e4", - "collar-scruff": "#a3ebff", - "underbelly": "#eae9d2", - "wing": "#11c751", - "wing-edge": "#156631", - "foot": "#ac7055", - "scruff": "#11c751" + "beak": "#f16f54", + "face": "#5fdf44", + "chin": "#f12d3e", + "collar": "#f12d3e", + "belly": "#f6f5e4", + "collar-scruff": "#a3ebff", + "underbelly": "#eae9d2", + "wing": "#11c751", + "wing-edge": "#156631", + "foot": "#ac7055", + "scruff": "#11c751" + }, + "rarity": "uncommon" }, + "violetBackedStarling": { + "name": "Violet-backed Starling", + "description": "Native to Sub-Saharan Africa, these small starlings are known for being the most vividly purple birds in the world.", + "latinName": "Cinnyricinclus leucogaster", + "url": "https://en.wikipedia.org/wiki/Violet-backed_starling", + "colors": { + "face": "#9c3af2", + "wing": "#8f37ed", + "wing-edge": "#7029b8", + "belly": "#ffffff", + "underbelly": "#f2f2f2", + "foot": "#736a66", + "collar": "#aa60e6" + }, "rarity": "uncommon" } }; @@ -740,7 +756,7 @@ }); const RARITY = Object.freeze(/** @type {const} */ ({ - FAMILIAR: "familiar", + COMMON: "common", UNCOMMON: "uncommon" })); @@ -756,7 +772,7 @@ * @param {string[]} [tags] * @param {Rarity} [rarity] */ - constructor(name, description, latinName, url, colors, tags = [], rarity = RARITY.FAMILIAR) { + constructor(name, description, latinName, url, colors, tags = [], rarity = RARITY.COMMON) { this.name = name; this.description = description; this.latinName = latinName; @@ -2959,7 +2975,7 @@ if (document.querySelector("#" + FEATHER_ID)) { return; } - const rarity = Math.random() < UNCOMMON_FEATHER_CHANCE ? RARITY.UNCOMMON : RARITY.FAMILIAR; + const rarity = Math.random() < UNCOMMON_FEATHER_CHANCE ? RARITY.UNCOMMON : RARITY.COMMON; const speciesToUnlock = Object.keys(SPECIES).filter((species) => !unlockedSpecies.includes(species) && SPECIES[species].rarity === rarity); if (speciesToUnlock.length === 0) { // No more species to unlock @@ -3165,6 +3181,7 @@ const uncommonLabel = document.createElement("div"); uncommonLabel.className = "birb-field-guide-section-label"; uncommonLabel.textContent = `----- Uncommon ${birdBirb()}s -----`; + uncommonLabel.title = "Arbitrarily classified birds that are a little harder to find, but worth the wait!"; const description = makeElement("birb-field-guide-description"); contentContainer.appendChild(familiarLabel); @@ -3197,7 +3214,7 @@ latinName.target = "_blank"; const spacerTwo = document.createElement("div"); - spacerTwo.style.height = "0.3em"; + spacerTwo.style.height = "0.4em"; const descText = document.createTextNode(!unlocked ? "Not yet unlocked" : type.description); diff --git a/src/animation/sprites.js b/src/animation/sprites.js index 269b71f..69a5011 100644 --- a/src/animation/sprites.js +++ b/src/animation/sprites.js @@ -103,7 +103,7 @@ export const DEFAULT_COLOR_OVERRIDES = { }; export const RARITY = Object.freeze(/** @type {const} */ ({ - FAMILIAR: "familiar", + COMMON: "common", UNCOMMON: "uncommon" })); @@ -119,7 +119,7 @@ export class BirdType { * @param {string[]} [tags] * @param {Rarity} [rarity] */ - constructor(name, description, latinName, url, colors, tags = [], rarity = RARITY.FAMILIAR) { + constructor(name, description, latinName, url, colors, tags = [], rarity = RARITY.COMMON) { this.name = name; this.description = description; this.latinName = latinName; diff --git a/src/application.js b/src/application.js index c34aed3..860dc13 100644 --- a/src/application.js +++ b/src/application.js @@ -565,7 +565,7 @@ function startApplication(birbPixels, featherPixels, hatsPixels) { if (document.querySelector("#" + FEATHER_ID)) { return; } - const rarity = Math.random() < UNCOMMON_FEATHER_CHANCE ? RARITY.UNCOMMON : RARITY.FAMILIAR; + const rarity = Math.random() < UNCOMMON_FEATHER_CHANCE ? RARITY.UNCOMMON : RARITY.COMMON; const speciesToUnlock = Object.keys(SPECIES).filter((species) => !unlockedSpecies.includes(species) && SPECIES[species].rarity === rarity); if (speciesToUnlock.length === 0) { // No more species to unlock @@ -772,6 +772,7 @@ function startApplication(birbPixels, featherPixels, hatsPixels) { const uncommonLabel = document.createElement("div"); uncommonLabel.className = "birb-field-guide-section-label"; uncommonLabel.textContent = `----- Uncommon ${birdBirb()}s -----`; + uncommonLabel.title = "Arbitrarily classified birds that are a little harder to find, but worth the wait!"; const description = makeElement("birb-field-guide-description"); contentContainer.appendChild(familiarLabel); @@ -804,7 +805,7 @@ function startApplication(birbPixels, featherPixels, hatsPixels) { latinName.target = "_blank"; const spacerTwo = document.createElement("div"); - spacerTwo.style.height = "0.3em"; + spacerTwo.style.height = "0.4em"; const descText = document.createTextNode(!unlocked ? "Not yet unlocked" : type.description); diff --git a/src/species.js b/src/species.js index 75ebf35..82ed145 100644 --- a/src/species.js +++ b/src/species.js @@ -389,22 +389,38 @@ export default { }, "cubanTody": { "name": "Cuban Tody", - "description": "As the name suggests, this green bird is only found on the island of Cuba and is known for being particularly round.", + "description": "As the name suggests, this little green bird is only found on the island of Cuba and is known for being particularly round.", "latinName": "Todus multicolor", "url": "https://en.wikipedia.org/wiki/Cuban_tody", "colors": { - "beak": "#f16f54", - "face": "#5fdf44", - "chin": "#f12d3e", - "collar": "#f12d3e", - "belly": "#f6f5e4", - "collar-scruff": "#a3ebff", - "underbelly": "#eae9d2", - "wing": "#11c751", - "wing-edge": "#156631", - "foot": "#ac7055", - "scruff": "#11c751" + "beak": "#f16f54", + "face": "#5fdf44", + "chin": "#f12d3e", + "collar": "#f12d3e", + "belly": "#f6f5e4", + "collar-scruff": "#a3ebff", + "underbelly": "#eae9d2", + "wing": "#11c751", + "wing-edge": "#156631", + "foot": "#ac7055", + "scruff": "#11c751" + }, + "rarity": "uncommon" }, + "violetBackedStarling": { + "name": "Violet-backed Starling", + "description": "Native to Sub-Saharan Africa, these small starlings are known for being the most vividly purple birds in the world.", + "latinName": "Cinnyricinclus leucogaster", + "url": "https://en.wikipedia.org/wiki/Violet-backed_starling", + "colors": { + "face": "#9c3af2", + "wing": "#8f37ed", + "wing-edge": "#7029b8", + "belly": "#ffffff", + "underbelly": "#f2f2f2", + "foot": "#736a66", + "collar": "#aa60e6" + }, "rarity": "uncommon" } }