make syndie bag and rigs explosion resistant (#22088)
* remove empty file real * support explosion resistance for non-worn things * remove redundant entitystorage resistance * port entitystorage optimisation to apply for everything with 100% resistance * add explosion resistance for bag contents * make thing reusable * add resistance to chest rig too * medical chest rig too --------- Co-authored-by: deltanedas <@deltanedas:kde.org>
This commit is contained in:
@@ -389,7 +389,13 @@ public sealed partial class ExplosionSystem
|
||||
private void GetEntitiesToDamage(EntityUid uid, DamageSpecifier originalDamage, string prototype)
|
||||
{
|
||||
_toDamage.Clear();
|
||||
_toDamage.Add((uid, GetDamage(uid, prototype, originalDamage)));
|
||||
|
||||
// don't raise BeforeExplodeEvent if the entity is completely immune to explosions
|
||||
var thisDamage = GetDamage(uid, prototype, originalDamage);
|
||||
if (!thisDamage.Any())
|
||||
return;
|
||||
|
||||
_toDamage.Add((uid, thisDamage));
|
||||
|
||||
for (var i = 0; i < _toDamage.Count; i++)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user