Skip to content

Commit

Permalink
changed '/kv' rag parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
zhenga8533 committed Feb 23, 2024
1 parent 016fee0 commit ba475ac
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion changelog.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[
"- Added more toggles to ?w",
"- TODO: Changed /kv to parse out bad rags",
"- Changed /kv to parse out bad rags",
"- Fixed Garden box rendering outside",
"- Fixed blacklist auto kick",
"- Fixed trophy counter on session view",
Expand Down
6 changes: 3 additions & 3 deletions features/kuudra/KuudraView.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function containsGoods(inv, type, aurora, terror, dominance, lifeline) {
}

// Goods to be contained
const GOODS = new Set(["NECRON_BLADE", "HYPERION", "VALKYRIE", "ASTRAEA", "SCYLLA", "TERMINATOR", "RAGNAROCK_AXE"]);
const GOODS = new Set(["NECRON_BLADE", "HYPERION", "VALKYRIE", "ASTRAEA", "SCYLLA", "TERMINATOR"]);
const TIERS = ["HOT", "BURNING", "FIERY", "INFERNAL"];
const PIECE = ["HELMET", "CHESTPLATE", "LEGGINGS", "BOOTS"];
const EQUIP = ["NECKLACE", "CLOAK", "BELT", "GAUNTLET", "GLOVES"]
Expand All @@ -44,8 +44,8 @@ function containsGoods(inv, type, aurora, terror, dominance, lifeline) {
let display = tag.getCompoundTag("display");
let name = display.getString("Name");

// Check if item is a good :)
if (GOODS.has(id)) {
// Check if item is a good one :)
if (GOODS.has(id) || (id === "RAGNAROCK_AXE" && extraAttributes.getInteger("rarity_upgrades") === 1)) {
let data = name;
let lore = display.toObject()["Lore"];
lore.forEach(line => data += `\n${line}`);
Expand Down

0 comments on commit ba475ac

Please sign in to comment.