Make GetExplosionResistance event a struct (#20274)

Also fixed a typo.
This commit is contained in:
metalgearsloth
2023-09-17 19:04:04 +10:00
committed by GitHub
parent 3be88f4680
commit e5d6d7f1eb
6 changed files with 34 additions and 16 deletions

View File

@@ -390,7 +390,7 @@ public sealed partial class ExplosionSystem : EntitySystem
if (damage != null && damageQuery.TryGetComponent(uid, out var damageable))
{
var ev = new GetExplosionResistanceEvent(id);
RaiseLocalEvent(uid, ev, false);
RaiseLocalEvent(uid, ref ev, false);
ev.DamageCoefficient = Math.Max(0, ev.DamageCoefficient);