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:
genNAowl
2021-06-05 09:01:38 -04:00
committed by GitHub
co-authored by Leonwang4234
parent 6e05319424
commit 9f087214a1
2 changed files with 12 additions and 6 deletions
@@ -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;
}
}
}