using UnityEngine; namespace ProjectI.Builds { [CreateAssetMenu(menuName = "ProjectI/Passive Behaviors/Siphon")] public sealed class SiphonBehavior : PassiveBehaviorDefinition { public float fraction = .05f; public double cooldown = 1; public override void OnEnemyKilled(PassiveEventContext context) { if (context.Allowed && context.HostileKill && context.Effects.TryTrigger(context.SourceId, context.Now, cooldown)) context.Effects.HealFraction(fraction); } } }