Compare commits
2 Commits
22ba2bcc83
...
be02d685e5
Author | SHA1 | Date |
---|---|---|
Bauke | be02d685e5 | |
Bauke | e341d5ca61 |
|
@ -79,6 +79,13 @@ type Mission = {
|
||||||
"Tritilyte Shard": number;
|
"Tritilyte Shard": number;
|
||||||
"Tyrant Shard": number;
|
"Tyrant Shard": number;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
"Performance": {
|
||||||
|
"Kill Count": number;
|
||||||
|
"Mineral Count": number;
|
||||||
|
"Revives": number;
|
||||||
|
"Downs": number;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
async function main(): Promise<void> {
|
async function main(): Promise<void> {
|
||||||
|
@ -98,6 +105,7 @@ async function main(): Promise<void> {
|
||||||
dataMissions.sort((a, b) => b.Index - a.Index);
|
dataMissions.sort((a, b) => b.Index - a.Index);
|
||||||
|
|
||||||
if (options.add) {
|
if (options.add) {
|
||||||
|
console.log("## General Info");
|
||||||
const promptResults = await prompt.prompt(
|
const promptResults = await prompt.prompt(
|
||||||
[
|
[
|
||||||
{
|
{
|
||||||
|
@ -186,6 +194,7 @@ async function main(): Promise<void> {
|
||||||
],
|
],
|
||||||
);
|
);
|
||||||
|
|
||||||
|
console.log("## Collectables");
|
||||||
const collectableResults = await prompt.prompt([
|
const collectableResults = await prompt.prompt([
|
||||||
{
|
{
|
||||||
type: prompt.Number,
|
type: prompt.Number,
|
||||||
|
@ -261,6 +270,7 @@ async function main(): Promise<void> {
|
||||||
},
|
},
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
console.log("## Credits Breakdown");
|
||||||
const creditResults = await prompt.prompt([
|
const creditResults = await prompt.prompt([
|
||||||
{
|
{
|
||||||
type: prompt.Number,
|
type: prompt.Number,
|
||||||
|
@ -325,6 +335,7 @@ async function main(): Promise<void> {
|
||||||
},
|
},
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
console.log("## Experience Breakdown");
|
||||||
const experienceResults = await prompt.prompt([
|
const experienceResults = await prompt.prompt([
|
||||||
{
|
{
|
||||||
type: prompt.Number,
|
type: prompt.Number,
|
||||||
|
@ -390,6 +401,30 @@ async function main(): Promise<void> {
|
||||||
},
|
},
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
console.log("## Performance");
|
||||||
|
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 = {
|
const newMission: Mission = {
|
||||||
"Date": promptResults["Date"]!,
|
"Date": promptResults["Date"]!,
|
||||||
"Index": (dataMissions[0]?.Index ?? 0) + 1,
|
"Index": (dataMissions[0]?.Index ?? 0) + 1,
|
||||||
|
@ -461,6 +496,13 @@ async function main(): Promise<void> {
|
||||||
"Tritilyte Shard": experienceResults["Experience:Tritilyte Shard"]!,
|
"Tritilyte Shard": experienceResults["Experience:Tritilyte Shard"]!,
|
||||||
"Tyrant Shard": experienceResults["Experience:Tyrant 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) {
|
if (options.testing) {
|
||||||
|
|
Loading…
Reference in New Issue