mirror of
https://github.com/burrow-dev/burrow-server.git
synced 2026-11-18 17:27:50 -05:00
feat(world): expand events, rewards, and den behavior
Add owner/developer room-effect controls and chat shortcuts, staff movement that bypasses full or locked destinations, in-game moderation entry points, theatre video synchronization, and shared room effects. Restore game and trade popups, reliably award refreshments and game rewards, support pet play outside parties, correct den placement categories, improve den item persistence, and refresh custom-item and masterpiece behavior. Harden room, party, pet, minigame, and item state handling with matching feature and restored-system regression coverage.
This commit is contained in:
1 parent
7dee29010a
commit
5c9b2e0066
11 files changed
+389
-29
No files matched your search
@@ -172,6 +172,14 @@ const run = async () => {
|
||||
a.xt("mg", subRoom[4], 1, 2, 3); // not signed: no gems
|
||||
await a.nextXt("mg");
|
||||
assert.ok(nextSerial > 0);
|
||||
// food machine wins award a temporary avatar attachment rather than an
|
||||
// inventory entry.
|
||||
a.xt("mm", subRoom[4], 15, "_a", 1);
|
||||
assert.deepStrictEqual((await a.nextXt("mm")).slice(2), ["_a", "1", ""]);
|
||||
// Attachment packets must also return to their sender: that echoed media
|
||||
// id is what makes the local avatar draw the held item.
|
||||
a.send(`<msg t='sys'><body action='pubMsg' r='${subRoom[4]}'><txt><![CDATA[1,%4]]></txt></body></msg>`);
|
||||
assert.deepStrictEqual((await a.nextXt("uc")).slice(2), [String(annLogin.params.userId), "35,", "4"]);
|
||||
a.xt("rl", subRoom[4], subRoom[4]);
|
||||
a.xt("mj", roomId, 4, 0, 0, -1); // gem Ball takes the room's place
|
||||
const gameRoom = await a.nextXt("rj");
|
||||
|
||||
@@ -274,6 +274,10 @@ const run = async () => {
|
||||
assert.strictEqual((await panel(`masterpiece?id=${posted.uuid}`)).status, 401);
|
||||
assert.strictEqual((await panel("masterpiece", {id: posted.uuid, action: "approve"}, admin)).status, 200);
|
||||
assert.match((await a.untilXt("ep"))[7], /approved/);
|
||||
// on show, with who approved it and when: the last approved first
|
||||
const onShow = (await panel("masterpieces", undefined, admin)).data.approved;
|
||||
assert.deepStrictEqual(onShow.map(entry => [entry.id, entry.approvedBy]), [[posted.uuid, "admin"]]);
|
||||
assert.ok(Math.abs(onShow[0].approvedAt - Date.now() / 1000) < 60);
|
||||
const approved = await a.nextXt("di");
|
||||
assert.strictEqual(approved[approved.indexOf(painting, 5) + 4], "true");
|
||||
// hung, once Ann is home from the easel: a visitor is told which painting and whose.
|
||||
@@ -316,6 +320,8 @@ const run = async () => {
|
||||
assert.strictEqual((await a.untilXt("db"))[2], "1");
|
||||
const last = await a.nextXt("di");
|
||||
assert.ok(!last.includes("2947") && last[last.indexOf(second.uuid) - 1] === "true");
|
||||
// approved by nobody, that one
|
||||
assert.deepStrictEqual((await panel("masterpieces", undefined, admin)).data.approved.map(entry => [entry.id, entry.approvedBy]), [[second.uuid, null]]);
|
||||
|
||||
a.socket.destroy();
|
||||
b.socket.destroy();
|
||||
|
||||
Reference in new issue
Block a user