Multi-liquid sublimate

This commit is contained in:
Anuken
2022-01-10 14:01:30 -05:00
parent 5509104a44
commit 10d8e63368
10 changed files with 140 additions and 20 deletions
@@ -124,6 +124,8 @@ public class BulletType extends Content implements Cloneable{
public boolean makeFire = false;
/** Whether to create hit effects on despawn. Forced to true if this bullet has any special effects like splash damage. */
public boolean despawnHit = false;
/** If true, unit armor is ignored in damage calculations. Ignored for building armor. */
public boolean pierceArmor = false;
//additional effects
@@ -246,7 +248,11 @@ public class BulletType extends Content implements Cloneable{
public void hitEntity(Bullet b, Hitboxc entity, float health){
if(entity instanceof Healthc h){
h.damage(b.damage);
if(pierceArmor){
h.damagePierce(b.damage);
}else{
h.damage(b.damage);
}
}
if(entity instanceof Unit unit){
@@ -50,6 +50,8 @@ public class ContinuousFlameBulletType extends ContinuousBulletType{
hitColor = colors[1].cpy().a(1f);
lightColor = hitColor;
laserAbsorb = false;
ammoMultiplier = 1f;
pierceArmor = true;
}
@Override