From e341d5ca61be8c3b1c4b7685078b7a70df1a94f9 Mon Sep 17 00:00:00 2001 From: Bauke Date: Tue, 21 Feb 2023 14:26:13 +0100 Subject: [PATCH] Add Performance section. --- .bauke/scripts/drg-data-entry.ts | 37 ++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/.bauke/scripts/drg-data-entry.ts b/.bauke/scripts/drg-data-entry.ts index 0d4a7d8..bb466cb 100644 --- a/.bauke/scripts/drg-data-entry.ts +++ b/.bauke/scripts/drg-data-entry.ts @@ -79,6 +79,13 @@ type Mission = { "Tritilyte Shard": number; "Tyrant Shard": number; }; + + "Performance": { + "Kill Count": number; + "Mineral Count": number; + "Revives": number; + "Downs": number; + }; }; async function main(): Promise { @@ -390,6 +397,29 @@ async function main(): Promise { }, ]); + const performanceResults = await prompt.prompt([ + { + type: prompt.Number, + name: "Performance:Kill Count", + message: "Performance: Kill Count", + }, + { + type: prompt.Number, + name: "Performance:Mineral Count", + message: "Performance: Mineral Count", + }, + { + type: prompt.Number, + name: "Performance:Revives", + message: "Performance: Revives", + }, + { + type: prompt.Number, + name: "Performance:Downs", + message: "Performance: Downs", + }, + ]); + const newMission: Mission = { "Date": promptResults["Date"]!, "Index": (dataMissions[0]?.Index ?? 0) + 1, @@ -461,6 +491,13 @@ async function main(): Promise { "Tritilyte Shard": experienceResults["Experience:Tritilyte Shard"]!, "Tyrant Shard": experienceResults["Experience:Tyrant Shard"]!, }, + + "Performance": { + "Kill Count": performanceResults["Performance:Kill Count"]!, + "Mineral Count": performanceResults["Performance:Mineral Count"]!, + "Revives": performanceResults["Performance:Revives"]!, + "Downs": performanceResults["Performance:Downs"]!, + }, }; if (options.testing) {