1
Fork 0

Add Performance section.

This commit is contained in:
Bauke 2023-02-21 14:26:13 +01:00
parent 22ba2bcc83
commit e341d5ca61
Signed by: Bauke
GPG Key ID: C1C0F29952BCF558
1 changed files with 37 additions and 0 deletions

View File

@ -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<void> {
@ -390,6 +397,29 @@ async function main(): Promise<void> {
},
]);
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<void> {
"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) {