commit 9304147e817f88b94252c9218d0999d2a4f50a38
parent f1f99356f6a47c2ac9ddc93c16eb62a628c1dc32
Author: anon <anon@example.com>
Date: Mon, 9 Nov 2026 12:59:45 +0000
Wait for Treatment availability and pick native corpse cells
Diffstat:
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/server/browser_game_test.go b/server/browser_game_test.go
@@ -58,7 +58,8 @@ func TestBrowserStarterEquipment(t *testing.T) {
}
json.NewEncoder(w).Encode(map[string]any{"inventory": player.inventory, "health": player.health,
"maximumHealth": player.maximumHealth(), "nano": player.nano, "level": player.level, "experience": player.experience,
- "position": player.position, "rotation": player.rotation, "stats": player.stats, "enemies": enemies, "corpses": corpses,
+ "treatmentLocked": time.Now().Before(player.skillLocks[124]),
+ "position": player.position, "rotation": player.rotation, "stats": player.stats, "enemies": enemies, "corpses": corpses,
"playfield": player.playfield, "missions": missions, "offer": offer})
}))
host := httptest.NewServer(mux)
diff --git a/tools/client/test_starter_equipment.mjs b/tools/client/test_starter_equipment.mjs
@@ -48,7 +48,7 @@ async function recover(game, label) {
const packet = Buffer.from(event.hex, 'hex');
return packet.readUInt32BE(packet.length - 20) === 164 && packet.readUInt32BE(packet.length - 4) === 124;
});
- if (uses === count || (uses && (!unlocked || server.maximumHealth - server.health < 15))) continue;
+ if (uses === count || server.treatmentLocked || (uses && (!unlocked || server.maximumHealth - server.health < 15))) continue;
sequence = game.sequence;
await game.click(681, 45, 'right');
++uses;
@@ -209,7 +209,7 @@ async function fight(game, enemy, label) {
assert.deepEqual(item, {ID: item.ID, Type: item.Template === 42640 ? 51005 : 51022,
Template: item.Template, Quality: item.Quality, Slot: slot, Count: 1, Ammo: 0});
const cell = game.state.grids.flatMap(grid => grid.cells).find(cell =>
- cell.identity[0] === 106 && cell.identity[1] === item.Slot && !cell.dummy);
+ cell.identity[0] === 107 && cell.identity[1] === item.Slot && !cell.dummy);
assert(cell, 'generated item has a native corpse cell');
await game.click((cell.bounds[0] + cell.bounds[2]) / 2, (cell.bounds[1] + cell.bounds[3]) / 2);
await game.wait('generated item in native inventory', state =>