Skip to content

Commit 8c928c5

Browse files
committed
#none added superstore item cost, using medals emoji
1 parent beb804d commit 8c928c5

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

src/api-wrapper/types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,7 @@ export type StoreItem = {
253253
name: string;
254254
description: string;
255255
};
256+
store_cost: number;
256257
};
257258

258259
export type StoreRotation = {

src/commands/superstore.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ import {FOOTER_MESSAGE} from './_components';
44
import {data} from '../api-wrapper';
55
import {dayjs} from '../handlers/dates';
66

7+
const sc_emoji = '<:super_credits:1231439957848096828>';
8+
79
const command: Command = {
810
data: new SlashCommandBuilder()
911
.setName('superstore')
@@ -26,7 +28,9 @@ const command: Command = {
2628
const embeds: EmbedBuilder[] = [];
2729
for (const item of SuperStore.items) {
2830
const embed = new EmbedBuilder()
29-
.setTitle(`${item.name} (${item.type} ${item.slot})`)
31+
.setTitle(
32+
`${item.store_cost} ${sc_emoji}${item.name} (${item.type} ${item.slot})`
33+
)
3034
.setDescription(item.description)
3135
.addFields(
3236
{

src/handlers/embed.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,9 @@ export function majorOrderEmbed(assignment: Assignment) {
210210
// TODO: task progress here
211211
embedFields.push({
212212
name: 'Reward',
213-
value: `${amount}x ${getCurrencyName(type)}`,
213+
value:
214+
`${amount}x ` +
215+
(type === 1 ? '<:warbond_medal:1231439956640010261>' : type.toString()),
214216
inline: true,
215217
});
216218

0 commit comments

Comments
 (0)