"Explosion" debug command

This commit is contained in:
Joonas Rikkonen
2017-06-19 19:26:53 +03:00
parent 5cd2a5a838
commit d2ab71b07d
3 changed files with 36 additions and 4 deletions

View File

@@ -18,6 +18,15 @@ namespace Barotrauma
private bool sparks, shockwave, flames, smoke;
public Explosion(float range, float force, float damage, float structureDamage)
{
attack = new Attack(damage, structureDamage, 0.0f, range);
this.force = force;
sparks = true;
shockwave = true;
flames = true;
}
public Explosion(XElement element)
{
attack = new Attack(element);