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
@@ -88,7 +88,16 @@ const START = {
|
||||
// which player is its own by the id (GemBreakerPlayer.init), and only
|
||||
// that one aims and shoots.
|
||||
seedAndPlayers: game => [serial(), game.players.length, ...game.players.flatMap(player => [player.id, 0])],
|
||||
// Spider Zapper and Wind Rider (SpiderShooterPlayer.init,
|
||||
// ParachuteGliderPlayer.init): each player's sfs id and where it starts.
|
||||
// given only the seed they had no players, none of them their own:
|
||||
// nothing could be shot, and nobody glided.
|
||||
seedAndCrosshairs: game => [serial(), game.players.length,
|
||||
...game.players.flatMap((player, at) => [player.id, CROSSHAIR_X + at * CROSSHAIR_GAP, CROSSHAIR_Y])],
|
||||
};
|
||||
const CROSSHAIR_X = 400;
|
||||
const CROSSHAIR_GAP = 100;
|
||||
const CROSSHAIR_Y = 300;
|
||||
|
||||
// the room games several players play together: "Multiplayer" on the
|
||||
// game's waiting list (MinigameManager.setupWaitListPopup), for players in
|
||||
@@ -601,6 +610,18 @@ module.exports = ({tell, leaveRoom, findOnline, blocks, watchers}) => {
|
||||
},
|
||||
// the touch pool: the same again, with six prizes; which one is in the
|
||||
// first number.
|
||||
// Spider Zapper, after each wave: "wave" [1 if the player shot enough,
|
||||
// else 0] -> "wavesuccess" (the next wave) or "wavefail" (the end), and
|
||||
// "waveend" [spiders shot] -> "waveend" [spiders shot] (its results).
|
||||
// they went unanswered and the game waited after the first wave.
|
||||
SpiderShooter: {
|
||||
wave(session, game, [passed], reply) {
|
||||
reply(passed === "1" ? "wavesuccess" : "wavefail");
|
||||
},
|
||||
waveend(session, game, [shot], reply) {
|
||||
reply("waveend", /^\d{1,4}$/.test(String(shot)) ? Number(shot) : 0);
|
||||
},
|
||||
},
|
||||
TouchPool: {
|
||||
ts(session, game, params, reply) {
|
||||
session.prizeSerial = serial();
|
||||
|
||||
Reference in new issue
Block a user