Quantum chest now extinguish fire.
This commit is contained in:
parent
bf730cd5a4
commit
d023329de9
2 changed files with 8 additions and 1 deletions
|
@ -289,6 +289,9 @@ public class TechRebornConfig {
|
|||
@Config(config = "items", category = "power", key = "quantumSuitSprintingCost", comment = "Quantum Suit Sprinting Cost")
|
||||
public static double quantumSuitSprintingCost = 20;
|
||||
|
||||
@Config(config = "items", category = "power", key = "quantumSuitFireExtinguishCost", comment = "Quantum Suit Cost for Fire Extinguish")
|
||||
public static double fireExtinguishCost = 50;
|
||||
|
||||
@Config(config = "items", category = "upgrades", key = "overclcoker_speed", comment = "Overclocker behavior speed multipiler")
|
||||
public static double overclockerSpeed = 0.25;
|
||||
|
||||
|
|
|
@ -47,7 +47,6 @@ import reborncore.common.powerSystem.PowerSystem;
|
|||
import reborncore.common.util.ItemUtils;
|
||||
import team.reborn.energy.Energy;
|
||||
import team.reborn.energy.EnergyHolder;
|
||||
import team.reborn.energy.EnergySide;
|
||||
import team.reborn.energy.EnergyTier;
|
||||
import techreborn.TechReborn;
|
||||
import techreborn.config.TechRebornConfig;
|
||||
|
@ -59,6 +58,7 @@ public class QuantumSuitItem extends TRArmourItem implements ItemStackModifiers,
|
|||
public final double swimCost = TechRebornConfig.quantumSuitSwimmingCost;
|
||||
public final double breathingCost = TechRebornConfig.quantumSuitBreathingCost;
|
||||
public final double sprintingCost = TechRebornConfig.quantumSuitSprintingCost;
|
||||
public final double fireExtinguishCost = TechRebornConfig.fireExtinguishCost;
|
||||
|
||||
public QuantumSuitItem(ArmorMaterial material, EquipmentSlot slot) {
|
||||
super(material, slot, new Item.Settings().group(TechReborn.ITEMGROUP).maxDamage(-1).maxCount(1));
|
||||
|
@ -96,10 +96,14 @@ public class QuantumSuitItem extends TRArmourItem implements ItemStackModifiers,
|
|||
if (playerEntity.abilities.flying) {
|
||||
Energy.of(stack).use(flyCost);
|
||||
}
|
||||
playerEntity.onGround = true;
|
||||
} else {
|
||||
playerEntity.abilities.allowFlying = false;
|
||||
playerEntity.abilities.flying = false;
|
||||
}
|
||||
if (playerEntity.isOnFire() && Energy.of(stack).getEnergy() > fireExtinguishCost) {
|
||||
playerEntity.extinguish();
|
||||
}
|
||||
break;
|
||||
case LEGS:
|
||||
if (playerEntity.isSprinting()) {
|
||||
|
|
Loading…
Reference in a new issue