aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/com/ambientaddons/config/PersistentData.kt
diff options
context:
space:
mode:
authorAppability <appable@icloud.com>2022-11-12 02:48:54 -0800
committerAppability <appable@icloud.com>2022-11-12 02:48:54 -0800
commit2b21d3a18b412ec8c205beacf403f0147dc04618 (patch)
tree7aaeda1956b03ba5b0e53cdf575663e3d68a34d2 /src/main/kotlin/com/ambientaddons/config/PersistentData.kt
parent8ec0ce4c645b3fb94c25cde9922f853a992b3fa7 (diff)
downloadAmbientAddons-2b21d3a18b412ec8c205beacf403f0147dc04618.tar.gz
AmbientAddons-2b21d3a18b412ec8c205beacf403f0147dc04618.tar.bz2
AmbientAddons-2b21d3a18b412ec8c205beacf403f0147dc04618.zip
add autosalvage
Diffstat (limited to 'src/main/kotlin/com/ambientaddons/config/PersistentData.kt')
-rw-r--r--src/main/kotlin/com/ambientaddons/config/PersistentData.kt32
1 files changed, 31 insertions, 1 deletions
diff --git a/src/main/kotlin/com/ambientaddons/config/PersistentData.kt b/src/main/kotlin/com/ambientaddons/config/PersistentData.kt
index 9588e21..f46bcd9 100644
--- a/src/main/kotlin/com/ambientaddons/config/PersistentData.kt
+++ b/src/main/kotlin/com/ambientaddons/config/PersistentData.kt
@@ -1,6 +1,7 @@
package com.ambientaddons.config
import com.ambientaddons.gui.GuiPosition
+import com.ambientaddons.utils.SalvageStrategy
import kotlinx.serialization.Serializable
import kotlinx.serialization.json.Json
import java.io.File
@@ -25,7 +26,36 @@ data class PersistentData(
"WITHER_CHESTPLATE" to null,
"ULTIMATE_ONE_FOR_ALL_1" to null
),
- var positions: MutableMap<String, GuiPosition> = mutableMapOf()
+ var positions: MutableMap<String, GuiPosition> = mutableMapOf(),
+ var salvageMap: MutableMap<String, SalvageStrategy> = mutableMapOf(
+ "SLUG_BOOTS" to SalvageStrategy.Always,
+ "MOOGMA_LEGGINGS" to SalvageStrategy.Always,
+ "FLAMING_CHESTPLATE" to SalvageStrategy.Always,
+ "TAURUS_HELMET" to SalvageStrategy.Always,
+ "BLADE_OF_THE_VOLCANO" to SalvageStrategy.Always,
+ "STAFF_OF_THE_VOLCANO" to SalvageStrategy.Always,
+ "RAMPART_HELMET" to SalvageStrategy.Always,
+ "RAMPART_CHESTPLATE" to SalvageStrategy.Always,
+ "RAMPART_LEGGINGS" to SalvageStrategy.Always,
+ "RAMPART_BOOTS" to SalvageStrategy.Always,
+ "SWORD_OF_BAD_HEALTH" to SalvageStrategy.Always,
+ "ARACHNE_HELMET" to SalvageStrategy.Always,
+ "ARACHNE_CHESTPLATE" to SalvageStrategy.Always,
+ "ARACHNE_LEGGINGS" to SalvageStrategy.Always,
+ "ARACHNE_BOOTS" to SalvageStrategy.Always,
+ "WITHER_CLOAK_SWORD" to SalvageStrategy.Block,
+ "DARK_CLAYMORE" to SalvageStrategy.Block,
+ "GIANTS_SWORD" to SalvageStrategy.Block,
+ "WITHER_HELMET" to SalvageStrategy.Block,
+ "WITHER_CHESTPLATE" to SalvageStrategy.Block,
+ "WITHER_LEGGINGS" to SalvageStrategy.Block,
+ "WITHER_BOOTS" to SalvageStrategy.Block,
+ "ICE_SPRAY_WAND" to SalvageStrategy.Block,
+ "SHADOW_ASSASSIN_HELMET" to SalvageStrategy.Block,
+ "SHADOW_ASSASSIN_CHESTPLATE" to SalvageStrategy.Block,
+ "SHADOW_ASSASSIN_LEGGINGS" to SalvageStrategy.Block,
+ "SHADOW_ASSASSIN_BOOTS" to SalvageStrategy.Block,
+ )
) {
fun save() {