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
@@ -809,6 +809,11 @@ package gui
|
||||
|
||||
private static function reloadGenericFactPopup(param1:Object) : void
|
||||
{
|
||||
// a fact had by its id is in no list: the arrows have nowhere to go
|
||||
if(param1 == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
factCloseHandler(null);
|
||||
if(param1.type == 18 || param1.type == 12 || param1.type == 17 || param1.type == 9 || param1.type == 19)
|
||||
{
|
||||
@@ -824,6 +829,11 @@ package gui
|
||||
{
|
||||
var _loc3_:String = null;
|
||||
var _loc5_:Array = null;
|
||||
// a fact had by its id is in no list: the arrows have nowhere to go
|
||||
if(param1 == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
_factPopup.index = param1.index;
|
||||
_factPopup.bitIdx = param1.bitIdx;
|
||||
while(_factPopup.imgBlock.numChildren > 0)
|
||||
@@ -1022,10 +1032,12 @@ package gui
|
||||
}
|
||||
DarkenManager.showLoadingSpiral(false);
|
||||
_loc2_ = _genericFactDefList[_genericFactId];
|
||||
// the fact lists came from the official server; one this server has
|
||||
// no entry for opens nothing (#1009)
|
||||
// the fact lists came from the official server, and this one
|
||||
// answers them empty: the fact is had by its id instead, from the
|
||||
// CDN's factDefs (requestFactInfo), as the game's other facts are
|
||||
if(_loc2_ == null)
|
||||
{
|
||||
requestFactInfo([_genericFactId]);
|
||||
return;
|
||||
}
|
||||
if(_loc2_.type == 18 || _loc2_.type == 12 || _loc2_.type == 17 || _loc2_.type == 9 || _loc2_.type == 19)
|
||||
@@ -1063,6 +1075,14 @@ package gui
|
||||
_museumFactDefIndexList[_loc3_] = _loc2_.id;
|
||||
_loc3_++;
|
||||
}
|
||||
// as above: an exhibit this server's list does not have is had by
|
||||
// its id. opening nothing left the game behind its spinner.
|
||||
if(_museumFactDefList[_museumRequest] == null)
|
||||
{
|
||||
DarkenManager.showLoadingSpiral(false);
|
||||
requestFactInfo([_museumRequest]);
|
||||
return;
|
||||
}
|
||||
displayMuseumEngangermentPopup(_museumFactDefList[_museumRequest]);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user