aorecomp

Anarchy Online classic in the browser

git clone https://aorecomp.ubeagle.com/code/aorecomp.git


commit abaed9e699568d5b2e4b842cc90ae914bd531db4
parent a13cb462e2baedf0a2f69f0e4355c9c1b6069af5
Author: anon <anon@example.com>
Date:   Mon,  9 Nov 2026 10:14:19 +0000

Check anonymous item use against its initial navigation count

Diffstat:
Mtools/client/test_item_proxies.mjs | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tools/client/test_item_proxies.mjs b/tools/client/test_item_proxies.mjs @@ -34,6 +34,7 @@ try { left === 832 && top === 0 && right === 1024 && bottom === 494)); await owner.click(864, 85); await owner.click(924, 85); + const navigation = owner.navigation; const purchase = owner.sequence; await owner.click(874, 475); await owner.wait('new anonymous ordinary proxies', state => owner.local(state).inventory.length === 2 && @@ -86,7 +87,7 @@ try { item.slot === 24 && item.templates[0] === 85596)); evidence.reworn = {native: owner.local().inventory, server: await server()}; assert.deepEqual(evidence.reworn.server.inventory, evidence.worn.server.inventory); - assert.equal(owner.navigation, 1); + assert.equal(owner.navigation, navigation); assert(!owner.events.some(event => event.sequence > purchase && event.direction === 'framereceived' && ['29304349', '5f4b1a39', '445f2a0b'].includes(event.opcode)), 'Replay hid an immediate-use failure'); await owner.save(output + '/used-and-worn');