From fc2186029b10a76de35e1168c2e518700614bef1 Mon Sep 17 00:00:00 2001 From: Casper Warden <216465704+casperwardensl@users.noreply.github.com> Date: Sat, 20 Oct 2018 14:34:19 +0100 Subject: [PATCH] Fix landImpact ref in testBot --- example/testBot.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/example/testBot.js b/example/testBot.js index 94ca4d5..047251d 100644 --- a/example/testBot.js +++ b/example/testBot.js @@ -366,14 +366,14 @@ async function connect() console.log('Found ' + searchResults.length + ' objects containing the string FINDME-*'); for (const obj of searchResults) { - console.log('Object: ' + obj.name + ', ' + obj.FullID.toString() + ', position: ' + obj.Position.toString() + ', land impact: ' + obj.ownershipCost) + console.log('Object: ' + obj.name + ', ' + obj.FullID.toString() + ', position: ' + obj.Position.toString() + ', land impact: ' + obj.landImpact) } searchResults = await bot.clientCommands.region.findObjectsByName('rezcubes'); console.log('Found ' + searchResults.length + ' objects containing the string rezcubes'); for (const obj of searchResults) { - console.log('Object: ' + obj.name + ', ' + obj.FullID.toString() + ', position: ' + obj.Position.toString() + ', land impact: ' + obj.ownershipCost) + console.log('Object: ' + obj.name + ', ' + obj.FullID.toString() + ', position: ' + obj.Position.toString() + ', land impact: ' + obj.landImpact) for (const k of Object.keys(obj.NameValue)) { console.log(k + ': ' + obj.NameValue[k])