Finishes the ActionCost implementation
All checks were successful
EpicKnarvik97/Blacksmith/pipeline/head This commit looks good

This commit is contained in:
2024-11-27 23:06:33 +01:00
parent e3dbeccc14
commit b01ccfc537
10 changed files with 242 additions and 54 deletions

View File

@ -222,15 +222,6 @@ public class GlobalScrapperSettings implements Settings<ScrapperSetting> {
return asDouble(ScrapperSetting.ENCHANTED_BOOK_SALVAGE_BASE_COST);
}
/**
* Gets the item cost of salvaging an enchanted book
*
* @return <p>The enchanted book salvage cost</p>
*/
public ItemStack getEnchantedBookItemCost() {
return ScrapperSetting.ENCHANTED_BOOK_SALVAGE_ITEM_COST;
}
/**
* Whether to multiply the cost of salvaging enchanted books based on the number of enchantments
*

View File

@ -307,8 +307,8 @@ public enum ScrapperSetting implements Setting {
/**
* The setting for the enchanted book item cost
*/
ENCHANTED_BOOK_SALVAGE_ITEM_COST("enchantedBookSalvageItemCost", SettingValueType.ITEM_STACK, null,
"The item that needs to be provided in order to salvage an enchanted book", false, false),
ENCHANTED_BOOK_SALVAGE_ITEM_COST("enchantedBookSalvageCost", SettingValueType.ADVANCED_COST, null,
"The cost to pay in order to salvage an enchanted book", false, false),
/**
* The setting for whether to multiply enchanted book cost