fix: eco items, wall, photo booth, chat emoji, den fixes

- the eco den items work: the Eco Shop sells the real eco items, solar
  panels and wind turbines placed in the den in use earn eco credits, lamps
  switch on while there is power for them, and the eco score earns the
  three eco plaques; a first look gives an account its first credits
- the item giver row opens the web item giver
- a painting that cannot be shown is the Burrow logo, not a wait for good
- Jammer Central's buttons work; What's New shows the newest Jamaa Journal
- the Jammer Wall opens even while the HUD is checking the player's own; a
  photo of an animal wearing nothing is kept; a wall photo of an animal the
  game does not know no longer stops the wall
- the photo booth's paid picture is answered
- emoji no longer push the line off centre; "\" keeps an emote or a
  ":name:" as typed; a repeated line with emoji is sent as it was said
- the emoji button hides with the HUD, not a moment after
- the join date on a player's card stays in its corner
- den items whose def is gone no longer garble the den and the inventory;
  custom pictures in a den no longer stop walking
- the den editor's switch and recycle buttons are always there
- the den inventory scrolls to an eleventh item
This commit is contained in:
Burrowdev committed 2026-10-23 23:00:00 +03:00
1 parent 7de41ceed5
commit c7efda7030
20 files changed
+6959 -1901

No files matched your search

+11 -3
View File
@@ -44,8 +44,9 @@ const DEF_WORLD_ITEMS = 1064;
const DEF_NPC = 1025;
const DEF_NAMEBAR_BADGE = 1049;
const DEF_EMOTICON = 1036;
const DEF_NEWSPAPER = 1065; // the Jamaa Journal's pages (newspaper.NewspaperManager)
const OFFERED_SPECIAL_TYPES = ["0", "4"]; // den items: plain, mannequin
const OFFERED_SPECIAL_TYPES = ["0", "4", "6", "7"]; // den items: plain, mannequin, eco producer and consumer (lib/eco.js)
const DEN_ITEM_MASTERPIECE = 2725;
const packs = new Map();
@@ -487,6 +488,7 @@ let npcDefs = new Map(); // the characters of the adventures, see lib/disguises.
// An avatar attachment is named by its emoticon definition id on the wire,
// while AvatarWorldView needs the media id stored by that definition.
let emoticonMediaIds = new Map();
let journalPages = []; // the Jamaa Journal's pages: {id, page (media id), start (seconds)}
// A pack whose feature can be done without: missing (offline and never
// cached) just leaves that feature empty.
@@ -516,8 +518,9 @@ const init = async () => {
petIds = [...petDefs.keys()];
denItemDefs = new Map((await load(DEF_DEN_ITEM)).map(def => [Number(def.id), def]));
// special types carry extra state (a den portal's destination, a shop's
// stock, ...). of those only mannequins (4) are modelled, in lib/dens.js,
// so plain den items and mannequins are what is offered.
// stock, ...). of those mannequins (4) are modelled, in lib/dens.js, and
// the eco items (6, 7) in lib/eco.js, so those and plain den items are
// what is offered.
// the Masterpiece item is a painting's frame, made in the Art Studio and
// nowhere else (lib/masterpieces.js).
denItemIds = [...denItemDefs].filter(([id, def]) => OFFERED_SPECIAL_TYPES.includes(def.specialType) && id !== DEN_ITEM_MASTERPIECE).map(([id]) => id);
@@ -554,6 +557,8 @@ const init = async () => {
petToyDefs = await loadOptional(DEF_PET_TOY);
npcDefs = new Map((await loadOptional(DEF_NPC)).map(def => [Number(def.id), def]));
emoticonMediaIds = new Map((await loadOptional(DEF_EMOTICON)).map(def => [Number(def.id), Number(def.mediaRef)]));
journalPages = (await loadOptional(DEF_NEWSPAPER)).map(def => ({id: Number(def.id), page: Number(def.pageMediaRefId),
start: Number(def.availabilityStartTime) || 0})).filter(page => page.page > 0);
partyDefs = new Map((await loadOptional(DEF_PARTY)).map(def => {
const room = roomPathsById.get(Number(def.roomDefId));
return [Number(def.id), {
@@ -665,6 +670,9 @@ module.exports = {
badgeIds: () => badgeIds,
npcDef: id => npcDefs.get(Number(id)),
emoticonMediaId: id => emoticonMediaIds.get(Number(id)) || 0,
// the media ids of the newest Jamaa Journal pages out by `now` (seconds), newest first
newestJournalPages: (count, now = Date.now() / 1000) => journalPages.filter(page => page.start <= now)
.sort((one, other) => other.start - one.start || other.id - one.id).slice(0, count).map(page => page.page),
oddDenItemIds: () => oddDenItemIds,
// den items that exist to be given by id and are in no shop.
unsoldDenItemIds: () => extraMusic.ids,
+14 -4
View File
@@ -8,6 +8,7 @@ const defpacks = require("./defpacks.js");
const wearRules = require("./wearrules.js");
const epicDens = require("./epicdens.js");
const masterpieces = require("./masterpieces.js");
const eco = require("./eco.js");
const {CURRENCIES, MAX_DEN_ITEMS, hasRoom, activeAvatar, resolvePurchase, isUint} = require("./player.js");
// den items: owning, placing and recycling furniture (client side:
@@ -119,9 +120,14 @@ const petsInDen = account => account.pets.filter(pet => pet.inDen && pet.inDen.d
// it is not placed there. the three after "approved" are a masterpiece's
// (lib/masterpieces.js); one not approved yet the client keeps out of dens,
// trades and the recycler.
// an item whose def is gone (a custom item deleted) is left out of both: the
// client skipped it without reading all its fields, and read every item after
// it wrong, placed ones as not placed and the den's floor and wallpaper lost.
const known = item => Boolean(defpacks.denItemDef(item.def));
const sendDenItems = session => {
const {account} = session;
const {denItems} = account;
const denItems = account.denItems.filter(known);
const pets = petsInDen(account);
session.sendXt("di", -1, account.activeDen, denItems.length, pets.length,
...denItems.flatMap(item => {
@@ -134,13 +140,13 @@ const sendDenItems = session => {
// DenXtCommManager.denStateResponse: [itemCount, petCount, forceReload,
// (invIdx, defId, placed, x, y, version, flipped, userNameLink, imageId,
// creatorDbId, creatorUuid, [mannequin], ?)..., (invIdx, lBits, uBits, eBits,
// creatorDbId, creatorUuid, [mannequin], eco state)..., (invIdx, lBits, uBits, eBits,
// category, x, y, flipped, createdTs, personality, toy, food, name)...].
// forceReload makes the client finish a pending room change, so it is set
// when the den has just been entered.
const sendDenState = (session, room, forceReload = true) => {
const owner = room.denOwner;
const placed = itemsInDen(owner).filter(item => masterpieces.itemApproved(item));
const placed = itemsInDen(owner).filter(item => known(item) && masterpieces.itemApproved(item));
const pets = petsInDen(owner);
session.sendXt("ds", room.id, placed.length, pets.length, forceReload ? 1 : 0,
...placed.flatMap(item => {
@@ -149,7 +155,7 @@ const sendDenState = (session, room, forceReload = true) => {
// object as category 1 made wall/floor items enter the wrong display
// layer when a den was reloaded or another player visited.
return [item.inv, item.def, spot.cat || 1, spot.x, spot.y, item.version, spot.flip, "", ...masterpieces.itemFields(item),
...mannequinShownFields(owner, item), 0];
...mannequinShownFields(owner, item), eco.consumerState(owner, item)];
}),
...pets.flatMap(pet => [pet.inv, pet.lBits, pet.uBits, pet.eBits, PET_CATEGORY, pet.inDen.x, pet.inDen.y, pet.inDen.flip,
pet.createdAt, pet.personality || 0, pet.toy || 0, pet.food || 0, pet.name]));
@@ -380,6 +386,10 @@ const handlers = ({others, findOnline}) => {
session.sendXt("dss", -1);
return;
}
// the eco credits earned at the den's rate until now (lib/eco.js)
if (account.eco) {
eco.accrue(account);
}
const applied = [];
const byInv = new Map(account.denItems.map(candidate => [candidate.inv, candidate]));
const mannequins = account.denItems.filter(candidate => candidate.mannequin);
+227
View File
@@ -0,0 +1,227 @@
"use strict";
const accounts = require("./accounts.js");
const achievements = require("./achievements.js");
const config = require("../config.js");
const defpacks = require("./defpacks.js");
// the eco den items: producers (special type 6, the Eco Solar Panel and
// Eco Wind Turbine) and consumers (7, the eco lamps and fan), sold for eco
// credits in the Eco Shop (list 778). client side: gui.EcoScorePopup (a
// producer clicked), gui.EcoPointsPopup (a consumer clicked),
// DenItemHolder.updateConsumers. the official server's rules were never
// recorded; these are this server's:
//
// - a den's generation is the eco power of the producers placed in its
// owner's den in use; consumers switched on take theirs from it, in
// inventory order, and one that no longer fits is "offline" (state 2)
// until there is power for it again. its switch stays on.
// - generation turns into credits, config.ecoCreditsPerPointHour a point
// an hour, waiting to be collected ("Get Your Credits") up to the
// meter's full 240. an account's first look (an eco window, or the
// Eco Shop) gets it config.ecoStartCredits, enough for its first producer.
// - the eco score (generation less use) earns the three eco plaques, one
// at a time, through user var 465 (a bit each).
const SPECIAL_PRODUCER = "6";
const SPECIAL_CONSUMER = "7";
const WIND_TURBINE = 4541;
const SOLAR_PANEL = 4540;
const CURRENCY_ECO = 11;
const ECO_SHOP_LIST = 778;
const MAX_WAITING = 240; // EcoScorePopup.updateCreditProgressMeter: the meter is full at 240
const USER_VAR_REWARDS = 465;
const REWARDS = [
{bit: 0, score: 5, def: 4611}, // Wood Eco Plaque
{bit: 1, score: 15, def: 4610}, // Silver Eco Plaque
{bit: 2, score: 30, def: 4609}, // Gold Eco Plaque
];
const HOUR_MS = 3600000;
const OFF = 0;
const ON = 1;
const OFFLINE = 2;
const special = item => {
const def = defpacks.denItemDef(item.def);
return def ? String(def.specialType) : "";
};
const power = item => Number((defpacks.denItemDef(item.def) || {}).ecoPower) || 0;
const placedInUse = account => account.denItems.filter(item => item.spots && item.spots[account.activeDen]);
// the den in use as the eco windows see it: {generation, consumption,
// turbines, panels, consumers: [item], states: Map(inv -> 0 off, 1 on, 2 offline)}
const stateOf = account => {
const placed = placedInUse(account);
const producers = placed.filter(item => special(item) === SPECIAL_PRODUCER);
const consumers = placed.filter(item => special(item) === SPECIAL_CONSUMER).sort((one, other) => one.inv - other.inv);
const generation = producers.reduce((sum, item) => sum + power(item), 0);
let consumption = 0;
const states = new Map();
for (const item of consumers) {
if (!item.ecoOn) {
states.set(item.inv, OFF);
}
else if (consumption + power(item) <= generation) {
consumption += power(item);
states.set(item.inv, ON);
}
else {
states.set(item.inv, OFFLINE);
}
}
return {
generation,
consumption,
turbines: producers.filter(item => item.def === WIND_TURBINE).length,
panels: producers.filter(item => item.def === SOLAR_PANEL).length,
consumers,
states,
};
};
// a den item's eco field in the den's state (DenStateItem's last): 0 for
// all but consumers
const consumerState = (account, item) => (special(item) === SPECIAL_CONSUMER ? stateOf(account).states.get(item.inv) || OFF : OFF);
const perHour = generation => generation * (Number(config.ecoCreditsPerPointHour) || 0);
// brings the waiting credits up to now, at the rate the den has now. the
// caller saves.
const accrue = account => {
const now = Date.now();
if (!account.eco) {
account.eco = {waiting: 0, at: now};
const start = Math.max(0, Math.floor(Number(config.ecoStartCredits) || 0));
account.currency.ecoCredits = (account.currency.ecoCredits || 0) + start;
return;
}
const rate = perHour(stateOf(account).generation);
const hours = Math.max(0, now - account.eco.at) / HOUR_MS;
account.eco.waiting = Math.min(MAX_WAITING, (Number(account.eco.waiting) || 0) + rate * hours);
account.eco.at = now;
};
// seconds until one more whole credit waits, 0 when none will
const secondsToNext = account => {
const rate = perHour(stateOf(account).generation);
if (rate <= 0 || account.eco.waiting >= MAX_WAITING) {
return 0;
}
const short = 1 - (account.eco.waiting % 1);
return Math.max(1, Math.ceil(short / rate * 3600));
};
const nextReward = account => {
const bits = Number(account.userVars[USER_VAR_REWARDS]) || 0;
return REWARDS.find(reward => !(bits & (1 << reward.bit))) || null;
};
module.exports = ({others, ecards}) => {
const sendCredits = session => session.sendXt("cu", -1, CURRENCY_ECO, session.account.currency.ecoCredits || 0, 0);
// the consumers' states to the owner and, when they are in it, everyone
// else in the den: DenXtCommManager.denEcoConsumerResponse [consumption,
// generation, count, (invIdx, state)...].
const sendConsumers = session => {
const {account} = session;
const state = stateOf(account);
const fields = [state.consumption, state.generation, state.consumers.length,
...state.consumers.flatMap(item => [item.inv, state.states.get(item.inv)])];
session.sendXt("dEc", -1, ...fields);
if (session.room && session.room.denOwner === account) {
for (const other of others(session)) {
other.sendXt("dEc", -1, ...fields);
}
}
};
const handlers = {
// requestDenEcoCreditRefresh -> EcoStateResponse: [turbines, panels,
// consumers, generation, consumption, score required, next reward bit,
// credits waiting, seconds to the next].
dEf(session) {
const {account} = session;
const firstLook = !account.eco;
accrue(account);
accounts.save(account);
if (firstLook) {
sendCredits(session);
}
const state = stateOf(account);
const reward = nextReward(account);
session.sendXt("dEf", -1, state.turbines, state.panels, state.consumers.length, state.generation, state.consumption,
reward ? reward.score : REWARDS[REWARDS.length - 1].score, reward ? reward.bit : -1,
Math.floor(account.eco.waiting), secondsToNext(account));
},
// requestDenEcoCreditRedeem: the waiting credits collected -> [success,
// seconds to the next].
dEr(session) {
const {account} = session;
accrue(account);
const credits = Math.floor(account.eco.waiting);
if (credits < 1) {
accounts.save(account);
session.sendXt("dEr", -1, 0, secondsToNext(account));
return;
}
account.eco.waiting -= credits;
account.currency.ecoCredits = (account.currency.ecoCredits || 0) + credits;
achievements.currencyChanged(account, "ecoCredits", credits);
accounts.save(account);
sendCredits(session);
session.sendXt("dEr", -1, 1, secondsToNext(account));
},
// requestDenEcoConsumer: [invIdx, "1" on | "0" off]
dEc(session, roomId, [invIdx, on]) {
const {account} = session;
const item = account.denItems.find(candidate => candidate.inv === Number(invIdx));
if (item && special(item) === SPECIAL_CONSUMER) {
accrue(account);
item.ecoOn = on === "1";
accounts.save(account);
}
sendConsumers(session);
},
};
// user var 465, set by the eco score window's gift: the value is the bit
// of the reward asked for. given when it is the next one and the score is
// there; the plaque comes as a gift from HQ. true when the var was this.
const userVar = (session, id, bit) => {
if (Number(id) !== USER_VAR_REWARDS) {
return false;
}
const {account} = session;
const reward = nextReward(account);
const state = stateOf(account);
if (reward && reward.bit === Number(bit) && state.generation - state.consumption >= reward.score
&& !ecards.sendFromHq(account, "Eco Reward", {kind: "den", id: reward.def})) {
account.userVars[USER_VAR_REWARDS] = (Number(account.userVars[USER_VAR_REWARDS]) || 0) | (1 << reward.bit);
accounts.save(account);
}
if (account.userVars[USER_VAR_REWARDS] === undefined) {
account.userVars[USER_VAR_REWARDS] = 0;
}
achievements.sendVar(session, USER_VAR_REWARDS);
return true;
};
// the Eco Shop opened: an account that never had eco credits is given
// its first, to buy its first producer with.
const shopOpened = session => {
if (!session.account.eco) {
accrue(session.account);
accounts.save(session.account);
sendCredits(session);
}
};
return {handlers, userVar, shopOpened, SHOP_LIST: ECO_SHOP_LIST};
};
module.exports.accrue = accrue;
module.exports.consumerState = consumerState;
module.exports.SPECIAL_TYPES = [SPECIAL_PRODUCER, SPECIAL_CONSUMER];
+9 -1
View File
@@ -1145,7 +1145,15 @@ const handle = async (req, res) => {
return session ? limits.key(session.address) : null;
};
const picture = masterpieces.mayView(painting[1], from.key, playingFrom) || from.local ? masterpieces.image(painting[1]) : null;
send(res, picture ? 200 : 404, picture || "Not found", picture ? MIME[".jpg"] : "text/plain");
if (picture) {
send(res, 200, picture, MIME[".jpg"]);
return;
}
// one that cannot be shown (waiting to be looked at, seen from an
// address not its maker's game's, or its file gone) is the Burrow logo:
// given nothing, the game waited for it for good, behind its spinner.
res.setHeader("Cache-Control", "no-store");
send(res, 200, await fs.promises.readFile(path.join(config.publicDir, "logo-square.png")), MIME[".png"]);
return;
}
+20
View File
@@ -20,6 +20,7 @@ const MAX_RECYCLED_AT_ONCE = 500;
const MAX_USED_AT_ONCE = 200; // pieces put on or taken off in one message
const RECYCLE_FRACTION = 0.3; // matches recyclePercentage sent at login
const CURRENCY_GEMS = 0; // ItemXtCommManager.currencyUpdateResponse's currency type
const PHOTO_GEMS = 50; // what the photo booth says a picture costs (string 14789)
module.exports = ({others, sendItemList}) => {
// ItemXtCommManager.itemBuyResponse: [status, shopId, newAmount, currencyType]
@@ -160,6 +161,25 @@ module.exports = ({others, sendItemList}) => {
session.sendXt("cd", -1, 1);
},
// the photo booth's picture (gui.PhotoBooth), PHOTO_GEMS gems. "apc"
// asks first: [gems after, or -1 for too few]; "apb", once the player
// keeps the picture, pays: [gem total]. neither was answered, and the
// booth waited behind its spinner for good.
apc(session) {
const gems = session.account.currency.gems || 0;
session.sendXt("apc", -1, gems >= PHOTO_GEMS ? gems - PHOTO_GEMS : -1);
},
apb(session) {
const {account} = session;
if ((account.currency.gems || 0) >= PHOTO_GEMS) {
account.currency.gems -= PHOTO_GEMS;
achievements.currencyChanged(account, "gems", -PHOTO_GEMS);
accounts.save(account);
}
session.sendXt("apb", -1, account.currency.gems || 0);
},
// ItemXtCommManager.requestItemRecycle: [invIdx, ...]. the reply
// (itemRecycleResponse) is [count, newGemTotal, ...recycledInvIdx], and
// the recycling window then waits, behind its spinner, for the item
+3 -2
View File
@@ -77,10 +77,11 @@ const whole = value => (Number.isInteger(Number(value)) ? Number(value) : 0);
// the photo booth picture ("pb", PlayerWallGui): one level deeper than the
// rest, {avatar: {id, color1.., eyes, pattern}, bgid, pet: {ts, lbits, ..} |
// null, items: [{id, color}, ..]}. it was turned away as too deep, and the
// owner's whole change with it: the photo never stayed.
// owner's whole change with it: the photo never stayed. an animal wearing
// nothing has no items list at all (null), which was turned away too.
const MAX_PHOTO_ITEMS = 30;
const photoParam = value => value === null || (typeof value === "object" && !Array.isArray(value) && Object.keys(value).length <= 6
&& Object.entries(value).every(([key, part]) => (key === "items" ? Array.isArray(part) && part.length <= MAX_PHOTO_ITEMS && part.every(flat)
&& Object.entries(value).every(([key, part]) => (key === "items" ? part === null || (Array.isArray(part) && part.length <= MAX_PHOTO_ITEMS && part.every(flat))
: key === "avatar" || key === "pet" ? part === null || flat(part) : scalar(part))));
module.exports = ({blocks, findOnline}) => {
+23 -2
View File
@@ -28,6 +28,7 @@ const buddyModule = require("./buddies.js");
const dens = require("./dens.js");
const disguises = require("./disguises.js");
const ecardModule = require("./ecards.js");
const ecoModule = require("./eco.js");
const epicDens = require("./epicdens.js");
const itemHandlers = require("./items.js");
const minigameModule = require("./minigames.js");
@@ -51,6 +52,8 @@ const {CURRENCIES, DIAMOND_TYPES, activeAvatar, avatarById, activePet, equippedB
const GENERIC_LIST_AVATARS = 64;
const GENERIC_LIST_NEWSPAPER = 627;
const GENERIC_LIST_WHATS_NEW = 369;
const WHATS_NEW_PAGES = 6;
// the worlds' names (ServerSelector.getShardName): localization ids, the
// game's own river names, world N being the Nth.
const GENERIC_LIST_WORLD_NAMES = 16;
@@ -143,6 +146,8 @@ const SHOP_LIST_TYPES = [DEF_ITEM, DEF_DEN_ITEM, DEF_DEN_ROOM, DEF_COMBINED_LIST
// a shop's title when its room gives it none (a shop in a land's main room,
// or one opened from elsewhere): what it sells (strings in lib/defpacks.js).
// with no title the shop window's banner was blank.
// shops opened from a window rather than a room, by their list: the Eco Shop.
const SHOP_LIST_TITLES = new Map([[778, 35727]]);
const SHOP_KIND_TITLES = new Map([[DEF_ITEM, 9000010], [DEF_DEN_ITEM, 9000011], [DEF_DEN_ROOM, 9000012],
[DEF_COMBINED_LIST, 9000013], [DEF_CURRENCY_EXCHANGE, 9000014], [DEF_DIAMOND, 9000015]]);
// diamond lists the client reads at login to learn which animals and pets
@@ -854,6 +859,9 @@ const handlers = {
}
let entries = [];
let count;
if (Number(listId) === eco.SHOP_LIST) {
eco.shopOpened(session);
}
if (Number(listId) === GENERIC_LIST_AVATARS) {
entries = defpacks.avatarTypes();
}
@@ -955,6 +963,13 @@ const handlers = {
count = defpacks.petIds().length;
entries = defpacks.petIds().flatMap(id => [id, 1]);
}
// Jammer Central's "What's New" pictures (gui.BulletinBoard, list 369):
// the newest pages of the Jamaa Journal. empty, the window waited on
// its spinner.
if (Number(listId) === GENERIC_LIST_WHATS_NEW && (count === undefined ? entries.length : count) === 0) {
entries = defpacks.newestJournalPages(WHATS_NEW_PAGES).flatMap(id => [id, 0]);
count = entries.length / 2;
}
// what the official server answered, where this one has nothing of its
// own (lib/official-lists.json, from recordings of the official game:
// the Journey Book's facts and pictures among them)
@@ -967,7 +982,8 @@ const handlers = {
}
// for shops the first unused field is the title's string id; left empty
// it keeps the shop window's own title (Shop.gotItemListCallback).
const title = SHOP_LIST_TYPES.includes(type) ? (session.room && roomInfo.shopTitle(session.room.base, listId)) || SHOP_KIND_TITLES.get(type) : 0;
const title = SHOP_LIST_TYPES.includes(type)
? (session.room && roomInfo.shopTitle(session.room.base, listId)) || SHOP_LIST_TITLES.get(Number(listId)) || SHOP_KIND_TITLES.get(type) : 0;
session.sendXt("gl", -1, listId, type, title, 0, 0, 0, count === undefined ? entries.length : count, ...entries);
},
@@ -989,6 +1005,10 @@ const handlers = {
if (vars[id] === undefined && Object.keys(vars).length >= MAX_USER_VARS) {
return;
}
// the eco plaques (lib/eco.js) are given, not set
if (eco.userVar(session, id, value)) {
return;
}
if (Number(id) === USER_VAR_HIDE_BLOCKED) {
setHideBlocked(session, Number(value) === 1);
}
@@ -1497,6 +1517,7 @@ const pets = petModule(context);
const parties = partyModule(context);
const ecards = ecardModule(context);
const walls = wallModule(context);
const eco = ecoModule({others, ecards});
const commands = commandModule(context);
const minigames = minigameModule(context);
const adventures = adventureModule(context);
@@ -1506,7 +1527,7 @@ const trades = tradeHandlers(context);
achievements.setFinder(findOnline);
Object.assign(handlers, avatarHandlers(context), itemHandlers(context), pets.handlers, dens.handlers({...context, others}),
buddies.handlers, moderation.handlers, trades.handlers, achievements.handlers, adopt.handlers, worldItems.handlers,
parties.handlers, ecards.handlers, walls.handlers, minigames.handlers, adventures.handlers, stubHandlers,
parties.handlers, ecards.handlers, eco.handlers, walls.handlers, minigames.handlers, adventures.handlers, stubHandlers,
playerItems.handlers({itemsTaken: (...args) => itemsTaken(...args)}));
// a den's owner, wherever they are, is told how many are in it: the HUD's