diff --git a/src/main/java/dev/micle/totem_of_reviving/item/totem/TotemItem.java b/src/main/java/dev/micle/totem_of_reviving/item/totem/TotemItem.java index 614e41b..005c08d 100644 --- a/src/main/java/dev/micle/totem_of_reviving/item/totem/TotemItem.java +++ b/src/main/java/dev/micle/totem_of_reviving/item/totem/TotemItem.java @@ -229,6 +229,10 @@ public abstract class TotemItem extends Item { tooltipComponents.add(LangAsset.TOOLTIP_TOTEM_DYNAMIC_COST.getComponent( Component.literal(String.format("%.2f", getConfig().getChargeCostMultiplier())).withStyle(ChatFormatting.WHITE) ).withStyle(ChatFormatting.GRAY, ChatFormatting.ITALIC)); + } else { + tooltipComponents.add(LangAsset.TOOLTIP_TOTEM_STATIC_COST.getComponent( + Component.literal(String.format("%d", getMaxCharge())).withStyle(ChatFormatting.WHITE) + ).withStyle(ChatFormatting.GRAY, ChatFormatting.ITALIC)); } if (getConfig().getCanReviveMoreExpensiveTargets()) { tooltipComponents.add(LangAsset.TOOLTIP_TOTEM_CAN_REVIVE_MORE_EXPENSIVE_TARGETS.getComponent().withStyle(ChatFormatting.GRAY, ChatFormatting.ITALIC)); diff --git a/src/main/java/dev/micle/totem_of_reviving/setup/Config.java b/src/main/java/dev/micle/totem_of_reviving/setup/Config.java index 7062b32..5babe82 100644 --- a/src/main/java/dev/micle/totem_of_reviving/setup/Config.java +++ b/src/main/java/dev/micle/totem_of_reviving/setup/Config.java @@ -28,12 +28,12 @@ public final class Config { STRAW_TOTEM_CONFIG = new TotemConfig(builder, StrawTotemItem.getName(), -1, 3, 1, false, false, 1); - IRON_TOTEM_CONFIG = new TotemConfig(builder, IronTotemItem.getName(), -1, 5, - 0.75, false, false, 4); - DIAMOND_TOTEM_CONFIG = new TotemConfig(builder, DiamondTotemItem.getName(), -1, 10, - 0.5, false, true, 10); + IRON_TOTEM_CONFIG = new TotemConfig(builder, IronTotemItem.getName(), -1, 3, + 0.5, false, false, 2); + DIAMOND_TOTEM_CONFIG = new TotemConfig(builder, DiamondTotemItem.getName(), -1, 6, + 0.66, true, false, 3); NETHERITE_TOTEM_CONFIG = new TotemConfig(builder, NetheriteTotemItem.getName(), 1, 1, - 1, true, true, 0); + 1, false, true, 0); SPEC = builder.build(); } @@ -72,7 +72,7 @@ public final class Config { """) .defineInRange("chargeCostMultiplier", chargeCostMultiplier, 0.01, 100); CAN_REVIVE_MORE_EXPENSIVE_TARGETS = builder - .comment("Allows players with a higher cost to be revived as long as the totem is fully charged.") + .comment("DYNAMIC COST REQUIRED. Allows players with a higher cost to be revived as long as the totem is fully charged.") .define("canReviveMoreExpensiveTargets", canReviveMoreExpensiveTargets); CAN_REVIVE_ACROSS_DIMENSIONS = builder .comment("Allows players in different dimensions to be revived.") diff --git a/src/main/java/dev/micle/totem_of_reviving/util/LangAsset.java b/src/main/java/dev/micle/totem_of_reviving/util/LangAsset.java index a51dc48..9356694 100644 --- a/src/main/java/dev/micle/totem_of_reviving/util/LangAsset.java +++ b/src/main/java/dev/micle/totem_of_reviving/util/LangAsset.java @@ -20,6 +20,7 @@ public enum LangAsset { TOOLTIP_TOTEM_CHARGES("tooltip", "totem_charges"), TOOLTIP_TOTEM_DURABILITY("tooltip", "totem_durability"), TOOLTIP_TOTEM_DYNAMIC_COST("tooltip", "totem_dynamic_cost"), + TOOLTIP_TOTEM_STATIC_COST("tooltip", "totem_static_cost"), TOOLTIP_TOTEM_CAN_REVIVE_MORE_EXPENSIVE_TARGETS("tooltip", "totem_can_revive_more_expensive_targets"), TOOLTIP_TOTEM_CAN_REVIVE_ACROSS_DIMENSIONS("tooltip", "totem_can_revive_across_dimensions"), TOOLTIP_TOTEM_REVIVE_INSTRUCTION("tooltip", "totem_revive_instruction"), diff --git a/src/main/resources/assets/totem_of_reviving/lang/en_us.json b/src/main/resources/assets/totem_of_reviving/lang/en_us.json index 5e61103..2e77817 100644 --- a/src/main/resources/assets/totem_of_reviving/lang/en_us.json +++ b/src/main/resources/assets/totem_of_reviving/lang/en_us.json @@ -13,6 +13,7 @@ "tooltip.totem_of_reviving.totem_charges": "Charges: %s", "tooltip.totem_of_reviving.totem_durability": "Durability: %s", "tooltip.totem_of_reviving.totem_dynamic_cost": "Dynamic cost (Multiplier: %s).", + "tooltip.totem_of_reviving.totem_static_cost": "Static cost (%s).", "tooltip.totem_of_reviving.totem_can_revive_more_expensive_targets": "Can revive more expensive targets.", "tooltip.totem_of_reviving.totem_can_revive_across_dimensions": "Can revive across dimensions.", "tooltip.totem_of_reviving.totem_revive_instruction": "When second hand is empty: revive target.",