mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-10-01 18:50:27 +03:00
fix? stat value
This commit is contained in:
@@ -1236,9 +1236,11 @@ stat.buildspeedmultiplier = Build Speed Multiplier
|
||||
stat.reactive = Reacts
|
||||
stat.immunities = Immunities
|
||||
stat.healing = Healing
|
||||
stat.status = Status Effect
|
||||
stat.efficiency = [stat]{0}% Efficiency
|
||||
stat.chance = [stat]{0}%[lightgray] chance of [white]
|
||||
|
||||
|
||||
ability.forcefield = Force Field
|
||||
ability.forcefield.description = Projects a force shield that absorbs bullets
|
||||
ability.repairfield = Repair Field
|
||||
|
||||
@@ -3666,6 +3666,9 @@ public class Blocks{
|
||||
scaledHealth = 160;
|
||||
rotateSpeed = 12;
|
||||
|
||||
status = StatusEffects.invincible;
|
||||
statusChance = 0.01f;
|
||||
|
||||
consumePower(3.3f);
|
||||
}};
|
||||
|
||||
@@ -3683,6 +3686,7 @@ public class Blocks{
|
||||
despawnEffect = Fx.blastExplosion;
|
||||
|
||||
status = StatusEffects.blasted;
|
||||
statusChance = 0.000001f;
|
||||
|
||||
hitColor = backColor = trailColor = Pal.blastAmmoBack;
|
||||
frontColor = Pal.blastAmmoFront;
|
||||
@@ -3700,6 +3704,7 @@ public class Blocks{
|
||||
ammoMultiplier = 5f;
|
||||
hitEffect = Fx.blastExplosion;
|
||||
status = StatusEffects.burning;
|
||||
statusChance = 0.234f;
|
||||
}},
|
||||
Items.surgeAlloy, new MissileBulletType(3.7f, 18){{
|
||||
width = 8f;
|
||||
@@ -3713,6 +3718,9 @@ public class Blocks{
|
||||
lightningDamage = 10;
|
||||
lightning = 2;
|
||||
lightningLength = 10;
|
||||
status = StatusEffects.freezing;
|
||||
lightningStatusChance = 0.2f;
|
||||
statusChance = 0.8f;
|
||||
|
||||
hitColor = backColor = trailColor = Pal.surgeAmmoBack;
|
||||
frontColor = Pal.surgeAmmoFront;
|
||||
|
||||
@@ -60,8 +60,8 @@ public class TractorBeamTurret extends BaseTurret{
|
||||
stats.add(Stat.targetsAir, targetAir);
|
||||
stats.add(Stat.targetsGround, targetGround);
|
||||
if(damage > 0) stats.add(Stat.damage, damage * 60f, StatUnit.perSecond);
|
||||
if(status != StatusEffects.none && statusChance > 0f){
|
||||
stats.add(Stat.damage, StatValues.statusText(status, statusDuration, statusChance));
|
||||
if(status != StatusEffects.none && Mathf.chance(statusChance)){
|
||||
stats.add(Stat.status, StatValues.statusText(status, statusDuration, statusChance));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -76,6 +76,7 @@ public class Stat implements Comparable<Stat>{
|
||||
|
||||
weapons = new Stat("weapons", StatCat.function),
|
||||
bullet = new Stat("bullet", StatCat.function),
|
||||
status = new Stat("status", StatCat.function),
|
||||
|
||||
speedIncrease = new Stat("speedIncrease", StatCat.function),
|
||||
repairTime = new Stat("repairTime", StatCat.function),
|
||||
|
||||
Reference in New Issue
Block a user