mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-02-05 16:37:38 +07:00
Just a Few Small Changes to Status Effect Stat Displays (#5361)
* Messing Around with Status Effect Stats * Longer, but cleaner and less buggy Co-authored-by: Leonwang4234 <leonwang4234@gmail.com>
This commit is contained in:
parent
6e05319424
commit
9f087214a1
@ -401,8 +401,14 @@ public class BulletType extends Content implements Cloneable{
|
||||
//pierceBuilding is not enabled by default, because a bullet may want to *not* pierce buildings
|
||||
}
|
||||
|
||||
if(lightningType == null){
|
||||
lightningType = !collidesAir ? Bullets.damageLightningGround : Bullets.damageLightning;
|
||||
if(lightning > 0){
|
||||
if(status == StatusEffects.none){
|
||||
status = StatusEffects.shocked;
|
||||
}
|
||||
|
||||
if(lightningType == null){
|
||||
lightningType = !collidesAir ? Bullets.damageLightningGround : Bullets.damageLightning;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -270,10 +270,6 @@ public class StatValues{
|
||||
sep(bt, "@bullet.incendiary");
|
||||
}
|
||||
|
||||
if(type.status != StatusEffects.none){
|
||||
sep(bt, (type.minfo.mod == null ? type.status.emoji() : "") + "[stat]" + type.status.localizedName);
|
||||
}
|
||||
|
||||
if(type.homingPower > 0.01f){
|
||||
sep(bt, "@bullet.homing");
|
||||
}
|
||||
@ -285,6 +281,10 @@ public class StatValues{
|
||||
if(type.fragBullet != null){
|
||||
sep(bt, "@bullet.frag");
|
||||
}
|
||||
|
||||
if(type.status != StatusEffects.none){
|
||||
sep(bt, (type.minfo.mod == null ? type.status.emoji() : "") + "[stat]" + type.status.localizedName);
|
||||
}
|
||||
}).padTop(unit ? 0 : -9).left().get().background(unit ? null : Tex.underline);
|
||||
|
||||
table.row();
|
||||
|
Loading…
Reference in New Issue
Block a user