mirror of
https://github.com/NohamR/Pocket-Bird.git
synced 2026-05-25 19:59:38 +00:00
Add the violet backed starling
This commit is contained in:
BIN
dist/extension.zip
vendored
BIN
dist/extension.zip
vendored
Binary file not shown.
27
dist/extension/birb.js
vendored
27
dist/extension/birb.js
vendored
@@ -617,7 +617,7 @@
|
|||||||
},
|
},
|
||||||
"cubanTody": {
|
"cubanTody": {
|
||||||
"name": "Cuban Tody",
|
"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",
|
"latinName": "Todus multicolor",
|
||||||
"url": "https://en.wikipedia.org/wiki/Cuban_tody",
|
"url": "https://en.wikipedia.org/wiki/Cuban_tody",
|
||||||
"colors": {
|
"colors": {
|
||||||
@@ -634,6 +634,22 @@
|
|||||||
"scruff": "#11c751"
|
"scruff": "#11c751"
|
||||||
},
|
},
|
||||||
"rarity": "uncommon"
|
"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} */ ({
|
const RARITY = Object.freeze(/** @type {const} */ ({
|
||||||
FAMILIAR: "familiar",
|
COMMON: "common",
|
||||||
UNCOMMON: "uncommon"
|
UNCOMMON: "uncommon"
|
||||||
}));
|
}));
|
||||||
|
|
||||||
@@ -756,7 +772,7 @@
|
|||||||
* @param {string[]} [tags]
|
* @param {string[]} [tags]
|
||||||
* @param {Rarity} [rarity]
|
* @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.name = name;
|
||||||
this.description = description;
|
this.description = description;
|
||||||
this.latinName = latinName;
|
this.latinName = latinName;
|
||||||
@@ -2984,7 +3000,7 @@
|
|||||||
if (document.querySelector("#" + FEATHER_ID)) {
|
if (document.querySelector("#" + FEATHER_ID)) {
|
||||||
return;
|
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);
|
const speciesToUnlock = Object.keys(SPECIES).filter((species) => !unlockedSpecies.includes(species) && SPECIES[species].rarity === rarity);
|
||||||
if (speciesToUnlock.length === 0) {
|
if (speciesToUnlock.length === 0) {
|
||||||
// No more species to unlock
|
// No more species to unlock
|
||||||
@@ -3190,6 +3206,7 @@
|
|||||||
const uncommonLabel = document.createElement("div");
|
const uncommonLabel = document.createElement("div");
|
||||||
uncommonLabel.className = "birb-field-guide-section-label";
|
uncommonLabel.className = "birb-field-guide-section-label";
|
||||||
uncommonLabel.textContent = `----- Uncommon ${birdBirb()}s -----`;
|
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");
|
const description = makeElement("birb-field-guide-description");
|
||||||
contentContainer.appendChild(familiarLabel);
|
contentContainer.appendChild(familiarLabel);
|
||||||
@@ -3222,7 +3239,7 @@
|
|||||||
latinName.target = "_blank";
|
latinName.target = "_blank";
|
||||||
|
|
||||||
const spacerTwo = document.createElement("div");
|
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);
|
const descText = document.createTextNode(!unlocked ? "Not yet unlocked" : type.description);
|
||||||
|
|
||||||
|
|||||||
27
dist/obsidian/main.js
vendored
27
dist/obsidian/main.js
vendored
@@ -622,7 +622,7 @@ module.exports = class PocketBird extends Plugin {
|
|||||||
},
|
},
|
||||||
"cubanTody": {
|
"cubanTody": {
|
||||||
"name": "Cuban Tody",
|
"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",
|
"latinName": "Todus multicolor",
|
||||||
"url": "https://en.wikipedia.org/wiki/Cuban_tody",
|
"url": "https://en.wikipedia.org/wiki/Cuban_tody",
|
||||||
"colors": {
|
"colors": {
|
||||||
@@ -639,6 +639,22 @@ module.exports = class PocketBird extends Plugin {
|
|||||||
"scruff": "#11c751"
|
"scruff": "#11c751"
|
||||||
},
|
},
|
||||||
"rarity": "uncommon"
|
"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} */ ({
|
const RARITY = Object.freeze(/** @type {const} */ ({
|
||||||
FAMILIAR: "familiar",
|
COMMON: "common",
|
||||||
UNCOMMON: "uncommon"
|
UNCOMMON: "uncommon"
|
||||||
}));
|
}));
|
||||||
|
|
||||||
@@ -761,7 +777,7 @@ module.exports = class PocketBird extends Plugin {
|
|||||||
* @param {string[]} [tags]
|
* @param {string[]} [tags]
|
||||||
* @param {Rarity} [rarity]
|
* @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.name = name;
|
||||||
this.description = description;
|
this.description = description;
|
||||||
this.latinName = latinName;
|
this.latinName = latinName;
|
||||||
@@ -3017,7 +3033,7 @@ module.exports = class PocketBird extends Plugin {
|
|||||||
if (document.querySelector("#" + FEATHER_ID)) {
|
if (document.querySelector("#" + FEATHER_ID)) {
|
||||||
return;
|
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);
|
const speciesToUnlock = Object.keys(SPECIES).filter((species) => !unlockedSpecies.includes(species) && SPECIES[species].rarity === rarity);
|
||||||
if (speciesToUnlock.length === 0) {
|
if (speciesToUnlock.length === 0) {
|
||||||
// No more species to unlock
|
// No more species to unlock
|
||||||
@@ -3223,6 +3239,7 @@ module.exports = class PocketBird extends Plugin {
|
|||||||
const uncommonLabel = document.createElement("div");
|
const uncommonLabel = document.createElement("div");
|
||||||
uncommonLabel.className = "birb-field-guide-section-label";
|
uncommonLabel.className = "birb-field-guide-section-label";
|
||||||
uncommonLabel.textContent = `----- Uncommon ${birdBirb()}s -----`;
|
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");
|
const description = makeElement("birb-field-guide-description");
|
||||||
contentContainer.appendChild(familiarLabel);
|
contentContainer.appendChild(familiarLabel);
|
||||||
@@ -3255,7 +3272,7 @@ module.exports = class PocketBird extends Plugin {
|
|||||||
latinName.target = "_blank";
|
latinName.target = "_blank";
|
||||||
|
|
||||||
const spacerTwo = document.createElement("div");
|
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);
|
const descText = document.createTextNode(!unlocked ? "Not yet unlocked" : type.description);
|
||||||
|
|
||||||
|
|||||||
27
dist/userscript/birb.user.js
vendored
27
dist/userscript/birb.user.js
vendored
@@ -631,7 +631,7 @@
|
|||||||
},
|
},
|
||||||
"cubanTody": {
|
"cubanTody": {
|
||||||
"name": "Cuban Tody",
|
"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",
|
"latinName": "Todus multicolor",
|
||||||
"url": "https://en.wikipedia.org/wiki/Cuban_tody",
|
"url": "https://en.wikipedia.org/wiki/Cuban_tody",
|
||||||
"colors": {
|
"colors": {
|
||||||
@@ -648,6 +648,22 @@
|
|||||||
"scruff": "#11c751"
|
"scruff": "#11c751"
|
||||||
},
|
},
|
||||||
"rarity": "uncommon"
|
"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} */ ({
|
const RARITY = Object.freeze(/** @type {const} */ ({
|
||||||
FAMILIAR: "familiar",
|
COMMON: "common",
|
||||||
UNCOMMON: "uncommon"
|
UNCOMMON: "uncommon"
|
||||||
}));
|
}));
|
||||||
|
|
||||||
@@ -770,7 +786,7 @@
|
|||||||
* @param {string[]} [tags]
|
* @param {string[]} [tags]
|
||||||
* @param {Rarity} [rarity]
|
* @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.name = name;
|
||||||
this.description = description;
|
this.description = description;
|
||||||
this.latinName = latinName;
|
this.latinName = latinName;
|
||||||
@@ -2979,7 +2995,7 @@
|
|||||||
if (document.querySelector("#" + FEATHER_ID)) {
|
if (document.querySelector("#" + FEATHER_ID)) {
|
||||||
return;
|
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);
|
const speciesToUnlock = Object.keys(SPECIES).filter((species) => !unlockedSpecies.includes(species) && SPECIES[species].rarity === rarity);
|
||||||
if (speciesToUnlock.length === 0) {
|
if (speciesToUnlock.length === 0) {
|
||||||
// No more species to unlock
|
// No more species to unlock
|
||||||
@@ -3185,6 +3201,7 @@
|
|||||||
const uncommonLabel = document.createElement("div");
|
const uncommonLabel = document.createElement("div");
|
||||||
uncommonLabel.className = "birb-field-guide-section-label";
|
uncommonLabel.className = "birb-field-guide-section-label";
|
||||||
uncommonLabel.textContent = `----- Uncommon ${birdBirb()}s -----`;
|
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");
|
const description = makeElement("birb-field-guide-description");
|
||||||
contentContainer.appendChild(familiarLabel);
|
contentContainer.appendChild(familiarLabel);
|
||||||
@@ -3217,7 +3234,7 @@
|
|||||||
latinName.target = "_blank";
|
latinName.target = "_blank";
|
||||||
|
|
||||||
const spacerTwo = document.createElement("div");
|
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);
|
const descText = document.createTextNode(!unlocked ? "Not yet unlocked" : type.description);
|
||||||
|
|
||||||
|
|||||||
27
dist/web/birb.embed.js
vendored
27
dist/web/birb.embed.js
vendored
@@ -617,7 +617,7 @@
|
|||||||
},
|
},
|
||||||
"cubanTody": {
|
"cubanTody": {
|
||||||
"name": "Cuban Tody",
|
"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",
|
"latinName": "Todus multicolor",
|
||||||
"url": "https://en.wikipedia.org/wiki/Cuban_tody",
|
"url": "https://en.wikipedia.org/wiki/Cuban_tody",
|
||||||
"colors": {
|
"colors": {
|
||||||
@@ -634,6 +634,22 @@
|
|||||||
"scruff": "#11c751"
|
"scruff": "#11c751"
|
||||||
},
|
},
|
||||||
"rarity": "uncommon"
|
"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} */ ({
|
const RARITY = Object.freeze(/** @type {const} */ ({
|
||||||
FAMILIAR: "familiar",
|
COMMON: "common",
|
||||||
UNCOMMON: "uncommon"
|
UNCOMMON: "uncommon"
|
||||||
}));
|
}));
|
||||||
|
|
||||||
@@ -756,7 +772,7 @@
|
|||||||
* @param {string[]} [tags]
|
* @param {string[]} [tags]
|
||||||
* @param {Rarity} [rarity]
|
* @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.name = name;
|
||||||
this.description = description;
|
this.description = description;
|
||||||
this.latinName = latinName;
|
this.latinName = latinName;
|
||||||
@@ -2959,7 +2975,7 @@
|
|||||||
if (document.querySelector("#" + FEATHER_ID)) {
|
if (document.querySelector("#" + FEATHER_ID)) {
|
||||||
return;
|
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);
|
const speciesToUnlock = Object.keys(SPECIES).filter((species) => !unlockedSpecies.includes(species) && SPECIES[species].rarity === rarity);
|
||||||
if (speciesToUnlock.length === 0) {
|
if (speciesToUnlock.length === 0) {
|
||||||
// No more species to unlock
|
// No more species to unlock
|
||||||
@@ -3165,6 +3181,7 @@
|
|||||||
const uncommonLabel = document.createElement("div");
|
const uncommonLabel = document.createElement("div");
|
||||||
uncommonLabel.className = "birb-field-guide-section-label";
|
uncommonLabel.className = "birb-field-guide-section-label";
|
||||||
uncommonLabel.textContent = `----- Uncommon ${birdBirb()}s -----`;
|
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");
|
const description = makeElement("birb-field-guide-description");
|
||||||
contentContainer.appendChild(familiarLabel);
|
contentContainer.appendChild(familiarLabel);
|
||||||
@@ -3197,7 +3214,7 @@
|
|||||||
latinName.target = "_blank";
|
latinName.target = "_blank";
|
||||||
|
|
||||||
const spacerTwo = document.createElement("div");
|
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);
|
const descText = document.createTextNode(!unlocked ? "Not yet unlocked" : type.description);
|
||||||
|
|
||||||
|
|||||||
27
dist/web/birb.js
vendored
27
dist/web/birb.js
vendored
@@ -617,7 +617,7 @@
|
|||||||
},
|
},
|
||||||
"cubanTody": {
|
"cubanTody": {
|
||||||
"name": "Cuban Tody",
|
"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",
|
"latinName": "Todus multicolor",
|
||||||
"url": "https://en.wikipedia.org/wiki/Cuban_tody",
|
"url": "https://en.wikipedia.org/wiki/Cuban_tody",
|
||||||
"colors": {
|
"colors": {
|
||||||
@@ -634,6 +634,22 @@
|
|||||||
"scruff": "#11c751"
|
"scruff": "#11c751"
|
||||||
},
|
},
|
||||||
"rarity": "uncommon"
|
"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} */ ({
|
const RARITY = Object.freeze(/** @type {const} */ ({
|
||||||
FAMILIAR: "familiar",
|
COMMON: "common",
|
||||||
UNCOMMON: "uncommon"
|
UNCOMMON: "uncommon"
|
||||||
}));
|
}));
|
||||||
|
|
||||||
@@ -756,7 +772,7 @@
|
|||||||
* @param {string[]} [tags]
|
* @param {string[]} [tags]
|
||||||
* @param {Rarity} [rarity]
|
* @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.name = name;
|
||||||
this.description = description;
|
this.description = description;
|
||||||
this.latinName = latinName;
|
this.latinName = latinName;
|
||||||
@@ -2959,7 +2975,7 @@
|
|||||||
if (document.querySelector("#" + FEATHER_ID)) {
|
if (document.querySelector("#" + FEATHER_ID)) {
|
||||||
return;
|
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);
|
const speciesToUnlock = Object.keys(SPECIES).filter((species) => !unlockedSpecies.includes(species) && SPECIES[species].rarity === rarity);
|
||||||
if (speciesToUnlock.length === 0) {
|
if (speciesToUnlock.length === 0) {
|
||||||
// No more species to unlock
|
// No more species to unlock
|
||||||
@@ -3165,6 +3181,7 @@
|
|||||||
const uncommonLabel = document.createElement("div");
|
const uncommonLabel = document.createElement("div");
|
||||||
uncommonLabel.className = "birb-field-guide-section-label";
|
uncommonLabel.className = "birb-field-guide-section-label";
|
||||||
uncommonLabel.textContent = `----- Uncommon ${birdBirb()}s -----`;
|
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");
|
const description = makeElement("birb-field-guide-description");
|
||||||
contentContainer.appendChild(familiarLabel);
|
contentContainer.appendChild(familiarLabel);
|
||||||
@@ -3197,7 +3214,7 @@
|
|||||||
latinName.target = "_blank";
|
latinName.target = "_blank";
|
||||||
|
|
||||||
const spacerTwo = document.createElement("div");
|
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);
|
const descText = document.createTextNode(!unlocked ? "Not yet unlocked" : type.description);
|
||||||
|
|
||||||
|
|||||||
@@ -103,7 +103,7 @@ export const DEFAULT_COLOR_OVERRIDES = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export const RARITY = Object.freeze(/** @type {const} */ ({
|
export const RARITY = Object.freeze(/** @type {const} */ ({
|
||||||
FAMILIAR: "familiar",
|
COMMON: "common",
|
||||||
UNCOMMON: "uncommon"
|
UNCOMMON: "uncommon"
|
||||||
}));
|
}));
|
||||||
|
|
||||||
@@ -119,7 +119,7 @@ export class BirdType {
|
|||||||
* @param {string[]} [tags]
|
* @param {string[]} [tags]
|
||||||
* @param {Rarity} [rarity]
|
* @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.name = name;
|
||||||
this.description = description;
|
this.description = description;
|
||||||
this.latinName = latinName;
|
this.latinName = latinName;
|
||||||
|
|||||||
@@ -565,7 +565,7 @@ function startApplication(birbPixels, featherPixels, hatsPixels) {
|
|||||||
if (document.querySelector("#" + FEATHER_ID)) {
|
if (document.querySelector("#" + FEATHER_ID)) {
|
||||||
return;
|
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);
|
const speciesToUnlock = Object.keys(SPECIES).filter((species) => !unlockedSpecies.includes(species) && SPECIES[species].rarity === rarity);
|
||||||
if (speciesToUnlock.length === 0) {
|
if (speciesToUnlock.length === 0) {
|
||||||
// No more species to unlock
|
// No more species to unlock
|
||||||
@@ -772,6 +772,7 @@ function startApplication(birbPixels, featherPixels, hatsPixels) {
|
|||||||
const uncommonLabel = document.createElement("div");
|
const uncommonLabel = document.createElement("div");
|
||||||
uncommonLabel.className = "birb-field-guide-section-label";
|
uncommonLabel.className = "birb-field-guide-section-label";
|
||||||
uncommonLabel.textContent = `----- Uncommon ${birdBirb()}s -----`;
|
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");
|
const description = makeElement("birb-field-guide-description");
|
||||||
contentContainer.appendChild(familiarLabel);
|
contentContainer.appendChild(familiarLabel);
|
||||||
@@ -804,7 +805,7 @@ function startApplication(birbPixels, featherPixels, hatsPixels) {
|
|||||||
latinName.target = "_blank";
|
latinName.target = "_blank";
|
||||||
|
|
||||||
const spacerTwo = document.createElement("div");
|
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);
|
const descText = document.createTextNode(!unlocked ? "Not yet unlocked" : type.description);
|
||||||
|
|
||||||
|
|||||||
@@ -389,7 +389,7 @@ export default {
|
|||||||
},
|
},
|
||||||
"cubanTody": {
|
"cubanTody": {
|
||||||
"name": "Cuban Tody",
|
"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",
|
"latinName": "Todus multicolor",
|
||||||
"url": "https://en.wikipedia.org/wiki/Cuban_tody",
|
"url": "https://en.wikipedia.org/wiki/Cuban_tody",
|
||||||
"colors": {
|
"colors": {
|
||||||
@@ -406,5 +406,21 @@ export default {
|
|||||||
"scruff": "#11c751"
|
"scruff": "#11c751"
|
||||||
},
|
},
|
||||||
"rarity": "uncommon"
|
"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"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user