mirror of
https://github.com/burrow-dev/burrow-server.git
synced 2026-11-19 09:37:50 -05:00
fix: official game table and lists, feedback, museum and books
recordings of the official game (tools/recorder.js) had its game table and several generic lists in them: - lib/games.json follows the official table: the print kits, Brady's lab, the carnival games (in the room) and the buddy games have their real ids, and every game its "Play!" picture - lists the server has nothing of its own for are answered as the official server did (lib/official-lists.json): the Journey Book's facts, and its pages and four of the Chamber of Knowledge's books rebuilt from the media files; Jam-A-Gram stamps are the official ones - feedback windows send to the staff panels' feedback, over the game's own connection; museum gem donations are taken (cd) - fact cards and museum exhibits missing from a list are had by their id (factDefs), and their arrows do nothing past the list
This commit is contained in:
1 parent
6c273554d7
commit
15f321fb00
12 files changed
+812
-99
No files matched your search
+13
-10
@@ -17,10 +17,14 @@ const {activeAvatar, addClothing, sendClothingAdded} = require("./player.js");
|
||||
// game: the room it runs in, the start signal, gem awards, and for some
|
||||
// games a few messages of their own.
|
||||
//
|
||||
// lib/games.json is that table, put back together from what still names the
|
||||
// ids: arcade-machine den items (gameDefId and a name), the room files (which
|
||||
// id stands where), the names GameCardPopup has for each game class, and the
|
||||
// achievement defs (which user vars a game counts in). entries:
|
||||
// lib/games.json is that table, as a recording of the official game has it
|
||||
// (its "mi" reply, made with tools/recorder.js): which class each id runs,
|
||||
// in a window or in the room's place, its user vars and its pictures. it
|
||||
// was first put back together from what still names the ids (arcade-machine
|
||||
// den items, the room files, GameCardPopup's names, the achievement defs),
|
||||
// which had some ids wrong: the print kits, the carnival games (run in the
|
||||
// room, not in its place), Brady's lab, and the buddy games, given ids of
|
||||
// other games' as nothing then named theirs. entries:
|
||||
// id game def id
|
||||
// swf the game's key in game.IncludeMinigames
|
||||
// title its name; sent as the id of the localization string that says so
|
||||
@@ -33,10 +37,9 @@ const {activeAvatar, addClothing, sendClothingAdded} = require("./player.js");
|
||||
// icon media id of its picture in the HUD's Games window; the games with
|
||||
// one are the ones that window lists
|
||||
// buddy true: one of the eight games two players play from a player's
|
||||
// card (lib/buddygames.js). their ids are ours: nothing in the
|
||||
// client names them, and the official table is gone.
|
||||
// card a buddy game's picture, on the card's game tab and in the
|
||||
// invitation
|
||||
// card (lib/buddygames.js)
|
||||
// card the game's title picture on its "Play!" popup; a buddy game's
|
||||
// in the invitation
|
||||
//
|
||||
// every other game is played alone (minPlayers = maxPlayers = 1): the
|
||||
// multiplayer ones each have a protocol of their own between the players.
|
||||
@@ -123,8 +126,8 @@ module.exports = ({tell, leaveRoom, findOnline, blocks, watchers}) => {
|
||||
game.buddy ? 2 : MULTIPLAYER[game.swf] ? MULTIPLAYER[game.swf].max : 1,
|
||||
0, // max spectators
|
||||
game.type,
|
||||
// the game card: the title picture on the "play" popup (not known), and
|
||||
// for a buddy game the picture in the invitation.
|
||||
// the game card: the title picture on the "play" popup, and for a buddy
|
||||
// game the picture in the invitation.
|
||||
game.card || 0,
|
||||
...(game.vars || [0, 0, 0]),
|
||||
game.buddy ? 1 : 0, // ready for player-versus-player: listed on players' cards
|
||||
|
||||
Reference in new issue
Block a user