Skip to content

Commit

Permalink
Display acquisition descriptions for Dex weapons
Browse files Browse the repository at this point in the history
  • Loading branch information
DaPigGuy committed Oct 27, 2024
1 parent a2f16e6 commit ad913e2
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions updater/update_items.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,7 @@ const HOLOKEY_WEAPONS = [
"Tenet Grigori",
"Tenet Ferrox"
];
const MARKET_WEAPONS = {

}
const MARKET_WEAPONS = {};

class ItemUpdater {
constructor(overwrites, blacklist) {
Expand Down Expand Up @@ -170,7 +168,17 @@ class ItemUpdater {
);
processedItem.buildTime = recipe.buildTime;
processedItem.buildPrice = recipe.buildPrice;
}
} else if (SISTER_WEAPONS.includes(name))
processedItem.description =
"Acquire by vanquishing a Sister of Parvos";
else if (HOLOKEY_WEAPONS.includes(name))
processedItem.description =
"Purchase from Ergo Glast for 40 Corrupted Holokeys";
else if (name.startsWith("Kuva "))
processedItem.description = "Acquire by vanquishing a Kuva Lich";
else if (name.startsWith("Dex "))
processedItem.description = "Acquire from yearly anniversary alerts";

if (name.startsWith("Mk1-"))
processedItem.wiki = `${WIKI_URL}/${name.replace("Mk1-", "MK1-")}`;
else if (type === "MOA" || type === "HOUND")
Expand All @@ -182,9 +190,6 @@ class ItemUpdater {
const baroData = this.baroData[name];
if (baroData)
processedItem.baro = [baroData.CreditCost, baroData.DucatCost];
else if (SISTER_WEAPONS.includes(name)) processedItem.description = "Acquire by vanquishing a Sister of Parvos";
else if (HOLOKEY_WEAPONS.includes(name)) processedItem.description = "Purchase from Ergo Glast for 40 Corrupted Holokeys";
else if (name.startsWith("Kuva ")) processedItem.description = "Acquire by vanquishing a Kuva Lich";

Object.entries(processedItem).forEach(([key, value]) => {
if (!value) delete processedItem[key];
Expand Down

0 comments on commit ad913e2

Please # to comment.