aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmeraldMerchant <96396730+EmeraldMerchant@users.noreply.github.com>2022-09-16 15:11:10 +0800
committerGitHub <noreply@github.com>2022-09-16 15:11:10 +0800
commitefe3b3434a270f801ed1f38fcd26e265971ada3d (patch)
treee3225224257f57350b425edbaa597ae9ca5a8e02
parentd40827341c40695668df281502dd8d2fc249bb72 (diff)
downloadSoopyV2-efe3b3434a270f801ed1f38fcd26e265971ada3d.tar.gz
SoopyV2-efe3b3434a270f801ed1f38fcd26e265971ada3d.tar.bz2
SoopyV2-efe3b3434a270f801ed1f38fcd26e265971ada3d.zip
small fixes
= patched a bug that goblin eggs show undefined on the hud + made the whole hud longer (cuz some items are longer) = fixed the name of precursor remnants
-rw-r--r--features/specialMining/index.js18
1 files changed, 12 insertions, 6 deletions
diff --git a/features/specialMining/index.js b/features/specialMining/index.js
index faba13c..614bc07 100644
--- a/features/specialMining/index.js
+++ b/features/specialMining/index.js
@@ -41,7 +41,7 @@ class PowderAndScatha extends Feature {
this.hideAscensionRope = new ToggleSetting("Ascension Rope Hider", "like: &r&aYou received &r&f1 &r&9Ascension Rope&r&a.&r", false, "ascension_rope_hider", this).requires(this.PowderElement)
this.showAreaTreasure = new ToggleSetting("Show Area Treasure", "whether or not to show each sub zone's treasures from chests", false, "show_area_treasure", this).requires(this.PowderElement)
- this.tempLoot = { global: {}, Jungle: {}, Goblin_Holdout: {}, Lost_Precursor_City: {}, Mithril_Deposits: {} }
+ this.tempLoot = { global: {}, Jungle: {}, Goblin_Holdout: {}, Precursor_Remnants: {}, Mithril_Deposits: {} }
this.tempLocation = undefined
//this will add the treasure and switch display location to it (it's from the most recent location)
this.addTreasure = (Area, treasure, amount) => {
@@ -72,7 +72,13 @@ class PowderAndScatha extends Feature {
}
//&r&aYou received &r&f1 &r&a&r&aGreen Goblin Egg&r&a.&r
this.registerChat("&r&aYou received ${thing}&r&a.&r", (thing, e) => {
- if (this.hideGemstoneMessage.getValue() && thing.endsWith("Gemstone") && (this.showFlawlessGemstone.getValue() ? !thing.includes("Flawless") : true)) cancel(e)
+ if (this.hideGemstoneMessage.getValue() && thing.endsWith("Gemstone") && (this.showFlawlessGemstone.getValue() ? !thing.includes("Flawless") : true)) {
+ if (thing.includes("Amethyst")) this.tempLocation = "Jungle"
+ if (thing.includes("Sapphire")) this.tempLocation = "Precursor_Remnants"
+ if (thing.includes("Amber")) this.tempLocation = "Goblin_Holdout"
+ if (thing.includes("Jade")) this.tempLocation = "Mithril_Deposits"
+ cancel(e)
+ }
if (this.hideWishingCompassMessage.getValue() && thing.endsWith("Wishing Compass")) cancel(e)
if (this.hideAscensionRope.getValue() && thing.endsWith("Ascension Rope")) cancel(e)
if (this.showAreaTreasure.getValue()) {
@@ -92,7 +98,7 @@ class PowderAndScatha extends Feature {
else if (thing.includes("Red")) treasure = "Red_Goblin_Egg"
else if (thing.includes("Yellow")) treasure = "Yellow_Goblin_Egg"
else if (thing.includes("Blue")) treasure = "Blue_Goblin_Egg"
- else treasure = "&9Goblin_Egg"
+ else treasure = "Goblin_Egg"
}
if (treasure) {
this.addTreasure("Goblin_Holdout", treasure, amount)
@@ -107,7 +113,7 @@ class PowderAndScatha extends Feature {
if (thing.endsWith("Synthetic Heart")) treasure = "Synthetic_Heart"
if (thing.endsWith("Superlite Motor")) treasure = "Superlite_Motor"
if (treasure) {
- this.addTreasure("Lost_Precursor_City", treasure, amount)
+ this.addTreasure("Precursor_Remnants", treasure, amount)
return
}
//mithril deposits
@@ -332,7 +338,7 @@ class PowderAndScatha extends Feature {
Object.keys(this.miningData.powder).forEach(thing => this.miningData.powder[thing] = 0)
this.expRateInfo = []
this.tempLocation = undefined
- this.tempLoot = { global: {}, Jungle: {}, Goblin_Holdout: {}, Lost_Precursor_City: {}, Mithril_Deposits: {} }
+ this.tempLoot = { global: {}, Jungle: {}, Goblin_Holdout: {}, Precursor_Remnants: {}, Mithril_Deposits: {} }
} else if (type === "scatha") {
Object.keys(this.miningData.scatha).forEach(thing => this.miningData.scatha[thing] = 0)
}
@@ -340,7 +346,7 @@ class PowderAndScatha extends Feature {
renderOverlay() {
if (this.PowderOverlayElement.isEnabled()) {
- let width = Renderer.getStringWidth("&b2x Powder: &cINACTIVE")
+ let width = Renderer.getStringWidth("&b2x Powder: &cINACTIVE")
let x = this.PowderOverlayElement.locationSetting.x
let y = this.PowderOverlayElement.locationSetting.y