mirror of
https://github.com/burrow-dev/burrow-server.git
synced 2026-11-19 17:37:50 -05:00
feat: stats graphs, playtime, ip search against ban evasion, 150-char chat
- stats graphs for the admin and moderator panels (lib/stats.js, public/stats-view.html) - playtime, private unless shown on the card's bio tab; set on the account page - search accounts by ip address, only against ban evasion; mods see no addresses and each search is logged - privacy policy for the above (terms version 2026-10-17) - the per-second save looks only at accounts in play, with a slow sweep of the rest - items in several dens at once; chat filter hides slurs and threats by default - sexual usernames refused; moderators may enter full rooms; guide login allowed - 150-character chat box (client build 55) - fixes: gifts, trades, dens, pets in dens, den recycling, special animals' colours, jammer walls, settings switches; the buddy list sent at login - the item giver, the rules screen and the art studio rework
This commit is contained in:
1 parent
8400d2f928
commit
04f468af2c
56 files changed
+25667
-3894
No files matched your search
+20
-1
@@ -19,6 +19,19 @@ const DEF_DEN_ROOM = 1040;
|
||||
const DEF_DIAMOND = 1054;
|
||||
const DEF_PET = 1046;
|
||||
const DEF_AVATAR_CUSTOM = 1057;
|
||||
// custom animals whose def has no pattern (patternRefId 0): their patterns
|
||||
// were only in the generic list the official server sent. these are the
|
||||
// pattern items locked to a special animal (bLockAvatarFlags) made after
|
||||
// the last def that names its own, in release order; 2121 starts with the
|
||||
// raccoon's overrideColorLayer2. a list of 0 made the avatar editor throw
|
||||
// (#1009 in AvatarEditor.setCustomPatternColorIdx) and never open.
|
||||
const CUSTOM_PATTERNS = new Map([
|
||||
[8, [1963, 1964, 1965, 1966]], // Legendary Eagle
|
||||
[9, [1976]], // Fearsome Falcon
|
||||
[10, [1981]], // Royal Red Panda
|
||||
[11, [2073]], // Frolicking Fox
|
||||
[12, [2121]], // Rainbow Raccoon
|
||||
]);
|
||||
const DEF_ACHIEVEMENTS = 1042;
|
||||
const DEF_PARTY = 1047;
|
||||
const DEF_CURRENCY_EXCHANGE = 1051;
|
||||
@@ -398,7 +411,8 @@ const init = async () => {
|
||||
customAvatarDefs = new Map((await load(DEF_AVATAR_CUSTOM)).map(def => [Number(def.id), def]));
|
||||
for (const def of await load(DEF_AVATAR_CUSTOM)) {
|
||||
const listId = Number(def.patternListRefId);
|
||||
patternLists.set(listId, [...(patternLists.get(listId) || []), Number(def.patternRefId)]);
|
||||
const patterns = Number(def.patternRefId) ? [Number(def.patternRefId)] : CUSTOM_PATTERNS.get(Number(def.id)) || [];
|
||||
patternLists.set(listId, [...(patternLists.get(listId) || []), ...patterns]);
|
||||
}
|
||||
roomDefsById = new Map((await load(DEF_ROOM)).map(def => [Number(def.id), def]));
|
||||
// typeCat 4 is music (the jukebox tracks; also what a hosted party plays)
|
||||
@@ -487,6 +501,11 @@ module.exports = {
|
||||
extraMusicIds: () => extraMusic.ids,
|
||||
roomDefById: id => roomDefsById.get(Number(id)),
|
||||
patternList: listId => patternLists.get(Number(listId)),
|
||||
// the pattern a custom animal starts with
|
||||
customPattern: id => {
|
||||
const def = customAvatarDefs.get(Number(id));
|
||||
return def ? (patternLists.get(Number(def.patternListRefId)) || [0])[0] : 0;
|
||||
},
|
||||
avatarTypes: () => [...avatarDefs.keys()],
|
||||
// first non-member land animal, falling back to whatever the pack lists
|
||||
// first.
|
||||
|
||||
Reference in new issue
Block a user