mirror of
https://github.com/burrow-dev/burrow-server.git
synced 2026-11-19 01:27:51 -05:00
feat: two worlds, rooms of 40, random spawn with space
- rooms hold 40 players. a player not starting in their den arrives in a random room of config.spawnRooms that has space (AJ_SPAWN_ROOMS overrides); with every one full, the emptiest, over the cap. - two worlds, Aldan and Congo (AJ_WORLDS sets how many): each its own copy of every land, dens and parties shared. a player arrives in a random world with space and keeps it through dens and parties. - the settings menu's World row is back: the server sends the worlds' names (generic list 16) and the world list (rm), and the client asks for the names once at login. a buddy's "go to" leads into their world, whose name the buddy card shows. "Find Open World" (on by default) joins a full room in a world with space. - the panels show the world with the room. the test harness pins one world and the township. buildVersion 60.
This commit is contained in:
1 parent
b813d89cfa
commit
31cbd87ff8
7 files changed
+161
-25
No files matched your search
+8
-3
@@ -40,7 +40,7 @@ const requestsPerTenMinutes = limits.limiter(20, 600000);
|
||||
// and reads a hosted party's name as three string ids.
|
||||
const roomTitle = room => room.displayName;
|
||||
|
||||
module.exports = ({findOnline, onBlocked, onUnblocked, partyTimeLeft}) => {
|
||||
module.exports = ({findOnline, onBlocked, onUnblocked, partyTimeLeft, worldOf, worldName}) => {
|
||||
// BuddyXtCommManager.buddyStatusResponse: [1, username, uuid, moderatedFlag,
|
||||
// online, accountType, buddyFlag, avatarName, perUserAvId, partyTimeLeft]
|
||||
const sendStatus = (to, account, buddyFlag) => {
|
||||
@@ -195,11 +195,16 @@ module.exports = ({findOnline, onBlocked, onUnblocked, partyTimeLeft}) => {
|
||||
// gets [roomName, displayName, displayNameStringId, cannotGoThere]; an
|
||||
// empty room means offline. the last field greys out the card's "go to"
|
||||
// button (BuddyCard.checkBuddyRoomAgainstMine), so it is 0: every room
|
||||
// here can be walked into. someone who blocked the asker looks offline.
|
||||
// here can be walked into. the room's name carries its world, and "go
|
||||
// to" joins it by that name, so it leads into the buddy's world, which
|
||||
// is named after the room when it is not the asker's. someone who
|
||||
// blocked the asker looks offline.
|
||||
br(session, roomId, [username]) {
|
||||
const target = findOnline(username);
|
||||
if (target && target.room && !target.account.blocked.includes(key(session.account))) {
|
||||
session.sendXt("br", -1, target.room.name, roomTitle(target.room), 0, 0);
|
||||
const world = worldOf(target.room.name);
|
||||
const elsewhere = world !== 0 && world !== session.worldId;
|
||||
session.sendXt("br", -1, target.room.name, `${roomTitle(target.room)}${elsewhere ? ` (${worldName(world)})` : ""}`, 0, 0);
|
||||
}
|
||||
else {
|
||||
session.sendXt("br", -1, "", "", 0, 0);
|
||||
|
||||
Reference in new issue
Block a user