mirror of
https://github.com/burrow-dev/burrow-server.git
synced 2026-11-19 01:27:51 -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
+6
-2
@@ -28,6 +28,7 @@ const extraMusic = require("./extramusic.js");
|
||||
const customMusic = require("./custommusic.js");
|
||||
const itemControl = require("./itemcontrol.js");
|
||||
const masterpieces = require("./masterpieces.js");
|
||||
const themeRooms = require("./themerooms.js");
|
||||
const panel = require("./panel.js");
|
||||
const totp = require("./totp.js");
|
||||
const world = require("./world.js");
|
||||
@@ -1191,8 +1192,11 @@ const handle = async (req, res) => {
|
||||
// or from the current one when the room did not exist yet back then.
|
||||
const themed = THEMED_ROOM.exec(relPath);
|
||||
const mayFetch = () => from.local || cacheMisses.allow(from.key);
|
||||
const body = (themed && Object.values(config.themes).some(theme => theme.build === Number(themed[2])) && await cdn.get(`${themed[2]}/roomDefs/${themed[3]}`, mayFetch))
|
||||
|| await cdn.get(themed ? `${themed[1]}/roomDefs/${themed[3]}` : relPath, mayFetch);
|
||||
const currentPath = themed ? `${themed[1]}/roomDefs/${themed[3]}` : relPath;
|
||||
const oldBody = themed && themed[2] !== themed[1] && Object.values(config.themes).some(theme => theme.build === Number(themed[2]))
|
||||
&& await cdn.get(`${themed[2]}/roomDefs/${themed[3]}`, mayFetch);
|
||||
// its shops and other spots as today's room has them (lib/themerooms.js)
|
||||
const body = oldBody ? await themeRooms.fix(relPath, oldBody, () => cdn.get(currentPath, mayFetch)) : await cdn.get(currentPath, mayFetch);
|
||||
if (!body) {
|
||||
// one the CDN does not have is asked for again and again (the same few
|
||||
// hundred, by every client that meets them): its client may keep the
|
||||
|
||||
Reference in new issue
Block a user