Buff Nano Saber damage. Closes #1714
This commit is contained in:
parent
0817b70f55
commit
8f64355885
2 changed files with 4 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue