From 379a33375d7465773259661ef0eb843f2b70539c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tr=C3=A8sAbhi?= <43380238+tresabhi@users.noreply.github.com> Date: Sun, 17 Mar 2024 21:40:21 -0500 Subject: [PATCH] feat: better totals --- src/commands/research.tsx | 31 +++++++++++++++++++++++++++++-- 1 file changed, 29 insertions(+), 2 deletions(-) diff --git a/src/commands/research.tsx b/src/commands/research.tsx index 43dc84788..33425945a 100644 --- a/src/commands/research.tsx +++ b/src/commands/research.tsx @@ -285,8 +285,9 @@ export const researchCommand = new Promise((resolve) => { color: theme.colors.textHighContrast, }} > + Experience:{' '} {costs - .reduce((a, b) => a + b.purchase + b.equipment, 0) + .reduce((a, b) => a + (b.research ?? 0) + b.upgrades, 0) .toLocaleString(interaction.locale)} @@ -309,8 +310,34 @@ export const researchCommand = new Promise((resolve) => { color: theme.colors.textHighContrast, }} > + Purchase:{' '} {costs - .reduce((a, b) => a + (b.research ?? 0) + b.upgrades, 0) + .reduce((a, b) => a + b.purchase, 0) + .toLocaleString(interaction.locale)} + + + +
+ + + Equipment:{' '} + {costs + .reduce((a, b) => a + b.equipment, 0) .toLocaleString(interaction.locale)}