mirror of
https://github.com/burrow-dev/burrow-server.git
synced 2026-11-19 09:37:50 -05:00
fix: eggs, pets, minigames, themes, HQ facts and more
- egg stands sell an egg again; a bought egg hatches and is named at once - pets whose bits name no pet the game has no longer stop loading - the adopt-a-pet gift path opens with nothing adopted yet - Spider Zapper and Wind Rider start with their players: spiders can be shot, and Wind Rider is played; Spider Zapper's waves are answered - Phantom's Treasure can be left from its title screen and level choice - the Touch Pool's fact window always closes - the last key in Return of the Phantoms lies where it can be reached - the Alpha HQ's bios and relics open and close - a land animal in water (and a sea one on land) is drawn when it stands - a seasonal theme's room has today's shops in it (lib/themerooms.js) - the Forgotten Archive sells its own stock, not unfinished pieces - custom items whose def is gone stay out of trade lists - the captcha is always shown, and tried again when it fails - builds 85
This commit is contained in:
1 parent
c7efda7030
commit
4355994253
19 files changed
+4891
-28
No files matched your search
+13
-2
@@ -156,6 +156,9 @@ const DIAMOND_ANIMAL_AND_PET_LISTS = [166, 214, 293];
|
||||
// the Diamond Shop's two den displays ("one" and "two" in its room file).
|
||||
// taken for the dens sold for diamonds: nothing else in the room is.
|
||||
const DIAMOND_DEN_LIST = 196;
|
||||
// the egg the egg stands sell (pet.EggPetGuiManager, list 624): one at
|
||||
// random of these, the diamond shop's eggs. empty, the stand threw.
|
||||
const DIAMOND_EGG_LIST = 624;
|
||||
const LANG_ENG = 0;
|
||||
const IDLE_ANIM_LAND = 14;
|
||||
const IDLE_ANIM_OCEAN = 29;
|
||||
@@ -591,8 +594,10 @@ const sortStock = () => {
|
||||
// two out-of-the-way shops keep what was never in one: the shop in the
|
||||
// Chamber of Knowledge's base (reached from a hidden spot on the world map)
|
||||
// has the den items, the one in the Zios archives the clothing. see
|
||||
// oddDenItemIds in lib/defpacks.js.
|
||||
const ODDITY_SHOPS = new Map([[396, () => defpacks.oddDenItemIds()], [666, () => defpacks.oddClothingIds()]]);
|
||||
// oddDenItemIds in lib/defpacks.js. of the clothing only the Founder's Hat
|
||||
// (oddClothingIds' first): the rest, nameless pieces never finished, made the
|
||||
// Forgotten Archive a heap of broken items.
|
||||
const ODDITY_SHOPS = new Map([[396, () => defpacks.oddDenItemIds()], [666, () => defpacks.oddClothingIds().slice(0, 1)]]);
|
||||
// the items staff have made (lib/customitems.js) are sold there too, first.
|
||||
const CUSTOM_ITEM_SHOPS = new Map([[396, "den"], [666, "clothing"]]);
|
||||
const ticketStock = kind => sortStock()[kind];
|
||||
@@ -931,6 +936,12 @@ const handlers = {
|
||||
const real = shopStock.list(listId, type);
|
||||
entries = [...new Set([...defpacks.customShopIds(CUSTOM_ITEM_SHOPS.get(Number(listId))), ...(real ? real.entries : []), ...ODDITY_SHOPS.get(Number(listId))()])];
|
||||
}
|
||||
else if (Number(listId) === DIAMOND_EGG_LIST) {
|
||||
entries = defpacks.diamondIds().filter(id => {
|
||||
const def = defpacks.diamondDef(id);
|
||||
return def.type === DIAMOND_TYPES.pet && (defpacks.petDef(Number(def.refId)) || {}).isEgg === "1";
|
||||
});
|
||||
}
|
||||
else if (Number(listId) === DIAMOND_DEN_LIST) {
|
||||
entries = defpacks.diamondIds().filter(id => {
|
||||
const def = defpacks.diamondDef(id);
|
||||
|
||||
Reference in new issue
Block a user