From 2a657403167a5860319a88947d32a18ffd67701a Mon Sep 17 00:00:00 2001 From: VinPropane Date: Sun, 10 May 2026 19:19:50 -0400 Subject: [PATCH] chore: Bruno gather interact pre-request moves player in range --- ...t interact prototype resource node gather.bru | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/bruno/neon-sprawl-server/interaction/Post interact prototype resource node gather.bru b/bruno/neon-sprawl-server/interaction/Post interact prototype resource node gather.bru index 0ce5486..4369d5d 100644 --- a/bruno/neon-sprawl-server/interaction/Post interact prototype resource node gather.bru +++ b/bruno/neon-sprawl-server/interaction/Post interact prototype resource node gather.bru @@ -5,10 +5,24 @@ meta { } docs { - NEO-41: successful interact on `resource_node` kind grants `salvage` XP (`sourceKind: activity`, 10 XP) via same server path as POST skill-progression. Run `Post move near prototype resource node` first. Optional: GET skill-progression to read `salvage.xp`. + NEO-41: successful interact on `resource_node` kind grants `salvage` XP (`sourceKind: activity`, 10 XP) via same server path as POST skill-progression. Pre-request moves the dev player in horizontal range of the node so this request passes when run alone or when global `seq` order would otherwise leave the player far from the anchor. Optional: GET skill-progression to read `salvage.xp`. Server tests include a stub-registry case where `activity` is disallowed for `salvage` (interact still allowed; XP unchanged). } +script:pre-request { + const axios = require("axios"); + const baseUrl = bru.getEnvVar("baseUrl") || bru.getVar("baseUrl"); + const playerId = bru.getEnvVar("playerId") || bru.getVar("playerId"); + await axios.post( + `${baseUrl}/game/players/${playerId}/move`, + { + schemaVersion: 1, + target: { x: 10, y: 0.9, z: -6 }, + }, + { headers: { "Content-Type": "application/json" } }, + ); +} + post { url: {{baseUrl}}/game/players/{{playerId}}/interact body: json