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:
@@ -102,11 +102,7 @@ public sealed class EntityStorageSystem : SharedEntityStorageSystem
|
||||
|
||||
private void OnExploded(Entity<EntityStorageComponent> ent, ref BeforeExplodeEvent args)
|
||||
{
|
||||
if (ent.Comp.ExplosionDamageCoefficient <= 0)
|
||||
return;
|
||||
|
||||
args.Contents.AddRange(ent.Comp.Contents.ContainedEntities);
|
||||
args.DamageCoefficient *= ent.Comp.ExplosionDamageCoefficient;
|
||||
}
|
||||
|
||||
protected override void TakeGas(EntityUid uid, SharedEntityStorageComponent component)
|
||||
|
||||
Reference in New Issue
Block a user