From 2b21d3a18b412ec8c205beacf403f0147dc04618 Mon Sep 17 00:00:00 2001 From: Appability Date: Sat, 12 Nov 2022 02:48:54 -0800 Subject: add autosalvage --- .../com/ambientaddons/config/PersistentData.kt | 32 +++++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) (limited to 'src/main/kotlin/com/ambientaddons/config/PersistentData.kt') 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 = mutableMapOf() + var positions: MutableMap = mutableMapOf(), + var salvageMap: MutableMap = 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() { -- cgit