Fix WeaponRandomSystem overriding bonus damage (#45335)

Fix weaponRandomSystem overriding bonus damage
This commit is contained in:
Sek1r 2026-08-13 20:41:16 +00:00 • committed by GitHub
parent 786f95099c
commit 41da2ebaa4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -26,7 +26,7 @@ public sealed partial class WeaponRandomSystem : EntitySystem
if (_random.Prob(component.RandomDamageChance))
{
_audio.PlayPvs(component.DamageSound, uid);
args.BonusDamage = component.DamageBonus;
args.BonusDamage += component.DamageBonus;
}
}
}