mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-02-11 11:17:11 +07:00
unitCrashDamage rule
This commit is contained in:
parent
7455fb21a4
commit
79ea2480cb
@ -617,7 +617,7 @@ abstract class UnitComp implements Healthc, Physicsc, Hitboxc, Statusc, Teamc, I
|
||||
}
|
||||
|
||||
//if this unit crash landed (was flying), damage stuff in a radius
|
||||
if(type.flying && !spawnedByCore && type.createWreck){
|
||||
if(type.flying && !spawnedByCore && type.createWreck && state.rules.unitCrashDamage){
|
||||
Damage.damage(team, x, y, Mathf.pow(hitSize, 0.94f) * 1.25f, Mathf.pow(hitSize, 0.75f) * type.crashDamageMultiplier * 5f * state.rules.unitDamage(team), true, false, true);
|
||||
}
|
||||
|
||||
|
@ -51,6 +51,8 @@ public class Rules{
|
||||
public boolean damageExplosions = true;
|
||||
/** Whether fire (and neoplasm spread) is enabled. */
|
||||
public boolean fire = true;
|
||||
/** Whether unit crash damage is enabled. */
|
||||
public boolean unitCrashDamage = true;
|
||||
/** Whether units use and require ammo. */
|
||||
public boolean unitAmmo = false;
|
||||
/** EXPERIMENTAL! If true, blocks will update in units and share power. */
|
||||
|
Loading…
Reference in New Issue
Block a user