mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-10-02 11:10:50 +03:00
Remove testing changes
This commit is contained in:
@@ -3678,7 +3678,6 @@ public class Blocks{
|
||||
despawnEffect = Fx.blastExplosion;
|
||||
|
||||
status = StatusEffects.blasted;
|
||||
statusChance = 3f;
|
||||
|
||||
hitColor = backColor = trailColor = Pal.blastAmmoBack;
|
||||
frontColor = Pal.blastAmmoFront;
|
||||
@@ -3696,7 +3695,6 @@ public class Blocks{
|
||||
ammoMultiplier = 5f;
|
||||
hitEffect = Fx.blastExplosion;
|
||||
status = StatusEffects.burning;
|
||||
statusChance = 0.4f;
|
||||
}},
|
||||
Items.surgeAlloy, new MissileBulletType(3.7f, 18){{
|
||||
width = 8f;
|
||||
@@ -3710,7 +3708,6 @@ public class Blocks{
|
||||
lightningDamage = 10;
|
||||
lightning = 2;
|
||||
lightningLength = 10;
|
||||
statusChance = 0.01f;
|
||||
|
||||
hitColor = backColor = trailColor = Pal.surgeAmmoBack;
|
||||
frontColor = Pal.surgeAmmoFront;
|
||||
|
||||
@@ -39,11 +39,7 @@ abstract class StatusComp implements Posc{
|
||||
|
||||
// Don't apply if the chance fails
|
||||
// TODO: Multiple applications if chance > 1f ?
|
||||
if(!Mathf.chance(chance)) {
|
||||
Log.info("Status effect @ failed to apply", effect.localizedName);
|
||||
return;
|
||||
}
|
||||
Log.info("StatusEffect @ applied successfully, chance was: @", effect.localizedName, chance);
|
||||
if(!Mathf.chance(chance)) return;
|
||||
|
||||
//unlock status effects regardless of whether they were applied to friendly units
|
||||
if(state.isCampaign()){
|
||||
|
||||
Reference in New Issue
Block a user