using UnityEngine; namespace ProjectI.Builds { [CreateAssetMenu(menuName = "ProjectI/Passive Behaviors/Catalyst")] public sealed class CatalystBehavior : PassiveBehaviorDefinition { public double reduction = .5, cooldown = 1; public override void OnHeadshot(PassiveEventContext context) { if (context.Allowed && context.WeaponHeadshot && context.Effects.TryTrigger(context.SourceId, context.Now, cooldown)) context.Effects.ReduceCooldowns(reduction); } } }