if (flammable.FireStacks > 0)
{
+ var air = _atmosphereSystem.GetContainingMixture(uid);
+
+ // If we're in an oxygenless environment, put the fire out.
+ if (air == null || air.GetMoles(Gas.Oxygen) < 1f)
+ {
+ Extinguish(uid, flammable);
+ continue;
+ }
+
+ EnsureComp<IgnitionSourceComponent>(uid);
+ _ignitionSourceSystem.SetIgnited(uid);
+
// TODO FLAMMABLE: further balancing
var damageScale = Math.Min((int)flammable.FireStacks, 5);
else
{
Extinguish(uid, flammable);
- continue;
}
-
- var air = _atmosphereSystem.GetContainingMixture(uid);
-
- // If we're in an oxygenless environment, put the fire out.
- if (air == null || air.GetMoles(Gas.Oxygen) < 1f)
- {
- Extinguish(uid, flammable);
- continue;
- }
-
- EnsureComp<IgnitionSourceComponent>(uid);
- _ignitionSourceSystem.SetIgnited(uid);
}
}
}