From 8f64355885160cb1821f6fdc449819d24518e468 Mon Sep 17 00:00:00 2001 From: drcrazy Date: Tue, 17 Mar 2020 14:52:19 +0300 Subject: [PATCH] Buff Nano Saber damage. Closes #1714 --- src/main/java/techreborn/config/TechRebornConfig.java | 3 +++ .../java/techreborn/items/tool/industrial/NanosaberItem.java | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/java/techreborn/config/TechRebornConfig.java b/src/main/java/techreborn/config/TechRebornConfig.java index 279533ad5..11a9619be 100644 --- a/src/main/java/techreborn/config/TechRebornConfig.java +++ b/src/main/java/techreborn/config/TechRebornConfig.java @@ -172,6 +172,9 @@ public class TechRebornConfig { @Config(config = "items", category = "power", key = "nanoSaberCost", comment = "Energy Cost for Nano Saber") public static int nanosaberCost = 150; + @Config(config = "items", category = "power", key = "nanoSaberDamage", comment = "Damage value for the Nano Saber") + public static int nanosaberDamage = 20; + @Config(config = "items", category = "power", key = "electricTreetapCharge", comment = "Energy Capacity for Electric Treetap") public static int electricTreetapCharge = 10_000; diff --git a/src/main/java/techreborn/items/tool/industrial/NanosaberItem.java b/src/main/java/techreborn/items/tool/industrial/NanosaberItem.java index 12d04bd59..702231e0f 100644 --- a/src/main/java/techreborn/items/tool/industrial/NanosaberItem.java +++ b/src/main/java/techreborn/items/tool/industrial/NanosaberItem.java @@ -180,7 +180,7 @@ public class NanosaberItem extends SwordItem implements EnergyHolder, ItemDurabi attributes.removeAll(EntityAttributes.ATTACK_SPEED.getId()); if (slot== EquipmentSlot.MAINHAND && ItemUtils.isActive(stack)) { - attributes.put(EntityAttributes.ATTACK_DAMAGE.getId(), new EntityAttributeModifier(ATTACK_DAMAGE_MODIFIER_UUID, "Weapon modifier", 12, EntityAttributeModifier.Operation.ADDITION)); + attributes.put(EntityAttributes.ATTACK_DAMAGE.getId(), new EntityAttributeModifier(ATTACK_DAMAGE_MODIFIER_UUID, "Weapon modifier", TechRebornConfig.nanosaberDamage, EntityAttributeModifier.Operation.ADDITION)); attributes.put(EntityAttributes.ATTACK_SPEED.getId(), new EntityAttributeModifier(ATTACK_SPEED_MODIFIER_UUID, "Weapon modifier", 3, EntityAttributeModifier.Operation.ADDITION)); } }