Add haloperidol, potassium iodide (#27454)

* add haloperidol, potassium iodide

* review fixes

* review and tuning

* shader review

* use timespan and AutoPausedField
This commit is contained in:
slarticodefast
2024-08-02 19:12:08 +02:00
committed by GitHub
parent ea6be02ea3
commit 577f30fb13
26 changed files with 622 additions and 19 deletions

View File

@@ -0,0 +1,19 @@
using Content.Shared.Damage.Components;
namespace Content.Shared.Damage.Systems;
public sealed class DamageProtectionBuffSystem : EntitySystem
{
public override void Initialize()
{
base.Initialize();
SubscribeLocalEvent<DamageProtectionBuffComponent, DamageModifyEvent>(OnDamageModify);
}
private void OnDamageModify(EntityUid uid, DamageProtectionBuffComponent component, DamageModifyEvent args)
{
foreach (var modifier in component.Modifiers.Values)
args.Damage = DamageSpecifier.ApplyModifierSet(args.Damage, modifier);
}
}