overdrivable meltdown (#9234)
This commit is contained in:
@@ -11,6 +11,8 @@ public class ContinuousBulletType extends BulletType{
|
||||
public float damageInterval = 5f;
|
||||
public boolean largeHit = false;
|
||||
public boolean continuous = true;
|
||||
/** If a building fired this, whether to multiply damage by its timescale. */
|
||||
public boolean timescaleDamage = false;
|
||||
|
||||
{
|
||||
removeAfterPierce = false;
|
||||
@@ -79,7 +81,12 @@ public class ContinuousBulletType extends BulletType{
|
||||
}
|
||||
|
||||
public void applyDamage(Bullet b){
|
||||
float damage = b.damage;
|
||||
if(timescaleDamage && b.owner instanceof Building build){
|
||||
b.damage *= build.timeScale();
|
||||
}
|
||||
Damage.collideLine(b, b.team, hitEffect, b.x, b.y, b.rotation(), currentLength(b), largeHit, laserAbsorb, pierceCap);
|
||||
b.damage = damage;
|
||||
}
|
||||
|
||||
public float currentLength(Bullet b){
|
||||
|
||||
Reference in New Issue
Block a user