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 Debug
parent 4b3d7ec3bb
commit 11fafefedd
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);