add more usefull metrics

This commit is contained in:
alexcrea 2024-02-12 19:23:44 +01:00
parent b36c1827a4
commit 944e4b025c
3 changed files with 143 additions and 18 deletions

View file

@ -26,9 +26,9 @@ object ConfigOptions {
// Path for removing repair cost limits
private const val REMOVE_REPAIR_LIMIT = "remove_repair_limit"
// Root path for enchantment limits
private const val ENCHANT_LIMIT_ROOT = "enchant_limits"
const val ENCHANT_LIMIT_ROOT = "enchant_limits"
// Root path for enchantment values
private const val ENCHANT_VALUES_ROOT = "enchant_values"
const val ENCHANT_VALUES_ROOT = "enchant_values"
// Keys for specific enchantment values
private const val KEY_BOOK = "book"
private const val KEY_ITEM = "item"
@ -194,4 +194,20 @@ object ConfigOptions {
?: DEFAULT_ENCHANT_VALUE
}
/**
* Get an array of key of basic config options
*/
fun getBasicConfigKeys(): Array<String>{
return arrayOf(DEFAULT_LIMIT_PATH,
LIMIT_REPAIR_COST,
LIMIT_REPAIR_VALUE,
ITEM_REPAIR_COST,
UNIT_REPAIR_COST,
ITEM_RENAME_COST,
SACRIFICE_ILLEGAL_COST,
REMOVE_REPAIR_LIMIT
)
}
}