mirror of
https://github.com/burrow-dev/burrow-server.git
synced 2026-11-19 01:27:51 -05:00
fix: settings, chat, video spots and other bugs from the owner's list
- Jam-A-Gram privacy: the inbox's options were taken the wrong way round - report window: no instruction text over the reason - the museum's theatre and other unnamed rooms get names; every shop a title - "How did you hear?" is never offered (its window soft locked the game) - video spots with nothing to play open a "Your Video" box on the game page; the trade list's help plays a video; the theatre's box no longer vanishes - emotes, actions and phrases are limited per player, as typed chat is - phrases from the menus come in the sender's chat bubble style - settings: WASD, blocked players and custom items as two-sided switches, graphics at their best by default, a switch for bubble animations, and Manage Account beside two-step sign-in opens the account page - pressing a @mention in a bubble no longer walks the player there
This commit is contained in:
1 parent
e9097a9a4f
commit
22fb7f0fa5
16 files changed
+589
-207
No files matched your search
+7
-3
@@ -14,8 +14,9 @@ const defpacks = require("./defpacks.js");
|
||||
// then AMF3), so reading it here costs no extra download once anyone has
|
||||
// been in the room.
|
||||
|
||||
// what the room editor left in files nobody named.
|
||||
const UNNAMED = "Display Name";
|
||||
// what the room editor left in files nobody named ("default": the museum's
|
||||
// theatre).
|
||||
const UNNAMED = ["display name", "default"];
|
||||
// rooms whose file has no name and whose path does not spell it either.
|
||||
const NAMES = new Map([
|
||||
["jamaa_township.room_diamonds", "Diamond Shop"],
|
||||
@@ -24,6 +25,9 @@ const NAMES = new Map([
|
||||
["aussie.room_main", "Kimbara Outback"],
|
||||
["aussie.room_aushop", "Outback Imports"],
|
||||
["aussie.room_hos", "Medical Center"],
|
||||
["appondale.room_museumtheater", "Museum Theater"],
|
||||
["crystal_sands.room_tiertheater", "Tierney's Theater"],
|
||||
["lost_temple_of_zios.bb_theater", "Temple Theater"],
|
||||
]);
|
||||
const VOLUME_SHOP = 12; // ActorVolume.type: clicking it opens generic list `typeDefId`
|
||||
|
||||
@@ -37,7 +41,7 @@ const parse = body => {
|
||||
const settings = (room.actors.ActorSettings || [])[0] || {};
|
||||
const volumes = room.actors.ActorVolume || [];
|
||||
return {
|
||||
name: typeof settings.name === "string" && settings.name.trim() !== UNNAMED ? settings.name.trim() : "",
|
||||
name: typeof settings.name === "string" && !UNNAMED.includes(settings.name.trim().toLowerCase()) ? settings.name.trim() : "",
|
||||
shops: new Set(volumes.filter(volume => Number(volume.type) === VOLUME_SHOP).map(volume => Number(volume.typeDefId))),
|
||||
};
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user