Skip to content

Commit f0b1ca8

Browse files
committed
Add recipies to food
1 parent 3f5074f commit f0b1ca8

File tree

6 files changed

+1856
-55
lines changed

6 files changed

+1856
-55
lines changed

src/commands/admin/emojidump.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export default class TestGuideCommand extends Command {
3232

3333
let a = ""
3434
for (const entry of [...entries].sort((a, b) => a[0].localeCompare(b[0]))) {
35-
const line = `"${entry[1].name}": "<:${entry[1].name}:${entry[0]}>",\n`
35+
const line = `"${entry[1].name?.replace(/_/g, " ")}": "<:${entry[1].name}:${entry[0]}>",\n`
3636
if (a.length + line.length > 1900) {
3737
await sendMessage(source, "```\n" + a + "```")
3838
a = ""

src/commands/misc/material.ts

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export default class MaterialCommand extends Command {
1414
help: `Displays material information. If no name is provided, a list of all materials will be displayed.
1515
1616
Note: this command supports fuzzy search.`,
17-
aliases: ["mat"],
17+
aliases: ["mat", "food", "recipe"],
1818
options: [{
1919
name: "name",
2020
description: "Material name",
@@ -142,6 +142,17 @@ Note: this command supports fuzzy search.`,
142142
if (material.sources)
143143
embed.addField("Sources", material.sources.join("\n"))
144144

145+
if (material.specialty)
146+
embed.addField("Food specialty", `Can be obtained by using [**${data.emoji(material.specialty.char, true)}**](${data.baseURL}characters/${urlify(material.specialty.char, false)}) while making [**${material.specialty.recipe}**](${data.baseURL}materials/${urlify(material.specialty.recipe, false)})`)
147+
148+
const otherMaterial = Object.values(data.materials).filter(x => x.specialty && x.specialty.recipe == material.name)
149+
if (otherMaterial.length > 0)
150+
embed.addField("Specialty", otherMaterial.map(x => `[**${x.name}**](${data.baseURL}materials/${urlify(x.name, false)}) be obtained by using [**${data.emoji(x.specialty?.char, true)}**](${data.baseURL}characters/${urlify(x.specialty?.char ?? "", false)})`).join("\n"))
151+
152+
const recipe = material.recipe ?? (material.specialty ? data.materials[material.specialty.recipe]?.recipe : undefined)
153+
if (recipe)
154+
embed.addField("Recipe", data.getItemCosts(recipe))
155+
145156
const charAscension: Character[] = []
146157
const charTalents: Character[] = []
147158

src/data/emojis.json

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -418,6 +418,52 @@
418418
"Yun Jin": "<:Yun_Jin:929383160272285767>",
419419
"Zhongli": "<:Zhongli:929383160670748762>",
420420

421+
"Almond": "<:Almond:938500198324379678>",
422+
"Apple": "<:Apple:938500197791707169>",
423+
"Bacon": "<:Bacon:938500197561041037>",
424+
"Bamboo Shoot": "<:Bamboo_Shoot:938500197883994123>",
425+
"Berry": "<:Berry:938500197904949288>",
426+
"Bird Egg": "<:Bird_Egg:938500197414207510>",
427+
"Butter": "<:Butter:938500197804294145>",
428+
"Cabbage": "<:Cabbage:938500198223712267>",
429+
"Carrot": "<:Carrot:938500197833662525>",
430+
"Cheese": "<:Cheese:938500197867212850>",
431+
"Chilled Meat": "<:Chilled_Meat:938500197292580884>",
432+
"Crab Roe": "<:Crab_Roe:938500198244708352>",
433+
"Crab": "<:Crab:938500198320177173>",
434+
"Cream": "<:Cream:938500197883990108>",
435+
"Fish": "<:Fish:938500198005604402>",
436+
"Flour": "<:Flour:938500198617985054>",
437+
"Fowl": "<:Fowl:938500197758169128>",
438+
"Ham": "<:Ham:938500198609616966>",
439+
"Horsetail": "<:Horsetail:938500197850447923>",
440+
"Jam": "<:Jam:938500197963661312>",
441+
"Lavender Melon": "<:Lavender_Melon:938500198081105950>",
442+
"Lotus Head": "<:Lotus_Head:938500198014025800>",
443+
"Matsutake": "<:Matsutake:938500198257266708>",
444+
"Milk": "<:Milk:938500198387314758>",
445+
"Mint": "<:Mint:938500198110466058>",
446+
"Mushroom": "<:Mushroom:938500198508941372>",
447+
"Onion": "<:Onion:938500198102085682>",
448+
"Pepper": "<:Pepper:938500198097899560>",
449+
"Pinecone": "<:Pinecone:938500198521520168>",
450+
"Potato": "<:Potato:938500198030774302>",
451+
"Radish": "<:Radish:938500344500064257>",
452+
"Raw Meat": "<:Raw_Meat:938500344382623815>",
453+
"Rice": "<:Rice:938500345150210150>",
454+
"Salt": "<:Salt:938500344898523216>",
455+
"Sausage": "<:Sausage:938500344877555742>",
456+
"Seagrass": "<:Seagrass:938500345552850954>",
457+
"Shrimp Meat": "<:Shrimp_Meat:938500345359921222>",
458+
"Smoked Fowl": "<:Smoked_Fowl:938500344365875220>",
459+
"Snapdragon": "<:Snapdragon:938500345573802014>",
460+
"Sugar": "<:Sugar:938500344810446870>",
461+
"Sunsettia": "<:Sunsettia:938500344990814208>",
462+
"Sweet Flower": "<:Sweet_Flower:938500345028571276>",
463+
"Tofu": "<:Tofu:938500345171169331>",
464+
"Tomato": "<:Tomato:938500345074692166>",
465+
"Unagi Meat": "<:Unagi_Meat:938500345032757259>",
466+
421467
"Mora": "<:Mora:827985024745603111>",
422468

423469
"Wanderer's Advice": "<:Wanderers_Advice:829496144681631754>",

0 commit comments

Comments
 (0)