move quantum armour values to config
This commit is contained in:
parent
1a190bdbff
commit
44079faabd
2 changed files with 8 additions and 2 deletions
|
@ -274,6 +274,12 @@ public class TechRebornConfig {
|
||||||
@Config(config = "items", category = "power", key = "clockingDeviceEnergyUsage", comment = "Cloaking device energy usage")
|
@Config(config = "items", category = "power", key = "clockingDeviceEnergyUsage", comment = "Cloaking device energy usage")
|
||||||
public static int cloakingDeviceCost = 10;
|
public static int cloakingDeviceCost = 10;
|
||||||
|
|
||||||
|
@Config(config = "items", category = "power", key = "quantumSuitArmour", comment = "Quantum Suit armour value")
|
||||||
|
public static double quantumSuitArmour = 20;
|
||||||
|
|
||||||
|
@Config(config = "items", category = "power", key = "quantumSuitKnockbackResist", comment = "Quantum Suit knockback resistance")
|
||||||
|
public static double quantumSuitKnockbackResist = 2;
|
||||||
|
|
||||||
@Config(config = "items", category = "power", key = "quantumSuitCapacity", comment = "Quantum Suit Energy Capacity")
|
@Config(config = "items", category = "power", key = "quantumSuitCapacity", comment = "Quantum Suit Energy Capacity")
|
||||||
public static long quantumSuitCapacity = 40_000_000;
|
public static long quantumSuitCapacity = 40_000_000;
|
||||||
|
|
||||||
|
|
|
@ -71,8 +71,8 @@ public class QuantumSuitItem extends TREnergyArmourItem implements ArmorBlockEnt
|
||||||
}
|
}
|
||||||
|
|
||||||
if (equipmentSlot == this.getSlotType() && getStoredEnergy(stack) > 0) {
|
if (equipmentSlot == this.getSlotType() && getStoredEnergy(stack) > 0) {
|
||||||
attributes.put(EntityAttributes.GENERIC_ARMOR, new EntityAttributeModifier(MODIFIERS[getSlotType().getEntitySlotId()], "Armor modifier", 20, EntityAttributeModifier.Operation.ADDITION));
|
attributes.put(EntityAttributes.GENERIC_ARMOR, new EntityAttributeModifier(MODIFIERS[getSlotType().getEntitySlotId()], "Armor modifier", TechRebornConfig.quantumSuitArmour, EntityAttributeModifier.Operation.ADDITION));
|
||||||
attributes.put(EntityAttributes.GENERIC_KNOCKBACK_RESISTANCE, new EntityAttributeModifier(MODIFIERS[getSlotType().getEntitySlotId()], "Knockback modifier", 2, EntityAttributeModifier.Operation.ADDITION));
|
attributes.put(EntityAttributes.GENERIC_KNOCKBACK_RESISTANCE, new EntityAttributeModifier(MODIFIERS[getSlotType().getEntitySlotId()], "Knockback modifier", TechRebornConfig.quantumSuitKnockbackResist, EntityAttributeModifier.Operation.ADDITION));
|
||||||
}
|
}
|
||||||
|
|
||||||
return ImmutableMultimap.copyOf(attributes);
|
return ImmutableMultimap.copyOf(attributes);
|
||||||
|
|
Loading…
Reference in a new issue