Only auto-enable internals when necessary (#28248)

* Only auto-enable internals when necessary

* Add toxic gas check

* Rename Any -> AnyPositive
This commit is contained in:
Leon Friedrich
2024-06-01 17:55:05 +02:00
committed by null
parent 22ebbba055
commit 65a712700c
16 changed files with 189 additions and 34 deletions
@@ -396,7 +396,7 @@ public sealed partial class ExplosionSystem
// don't raise BeforeExplodeEvent if the entity is completely immune to explosions
var thisDamage = GetDamage(uid, prototype, originalDamage);
if (!thisDamage.Any())
if (thisDamage.Empty)
return;
_toDamage.Add((uid, thisDamage));