private void Update()
    {
        if (item.owner != null)
        {
            time_since_hit += GameManager.GetDeltaTime(item.owner.team);

            if (time_since_hit > length_before_buff && !buff.IsApplied(current_buff))
            {
                current_buff = buff.ApplyBuff(item.owner, item.owner, item.stack_count, true);
            }
        }
    }
Ejemplo n.º 2
0
 void SoupOnHit(Character hit, Attack hit_by)
 {
     enemy.DealDamage(enemy.power, hit);
     soup_debuff.ApplyBuff(hit, enemy);
 }
Ejemplo n.º 3
0
 protected override void OnInitialPickup()
 {
     buff_id = buff.ApplyBuff(item.owner, item.owner);
 }
 protected override void UseAbilityEffect(float input)
 {
     buff.ApplyBuff(character, character);
 }
 protected override void OnProjectileHit(Character hit, Attack hit_by)
 {
     base.OnProjectileHit(hit, hit_by);
     buff.ApplyBuff(hit, character);
 }
Ejemplo n.º 6
0
 protected override void AttackOnHit(Character d, Attack hit_by)
 {
     base.AttackOnHit(d, hit_by);
     on_hit_buff.ApplyBuff(d, character);
 }
 protected override void OnOwnerHitEnemy(Character character, float pre_damage, float post_damage, Character hit)
 {
     to_apply.ApplyBuff(hit, character, item.stack_count);
 }
 protected override void AttackOnHit(Character c)
 {
     base.AttackOnHit(c);
     soup_debuff.ApplyBuff(c, enemy);
 }
Ejemplo n.º 9
0
 protected override void PickupEffect(Player player)
 {
     buff.ApplyBuff(player, null);
 }
Ejemplo n.º 10
0
 protected override void OnHitEffect(AddBuffOnHitBuffInfo info, Character hitter, float pre_mitigation_damage, float post_mitigation_damage, Character hit)
 {
     info.buff_id = buff_to_apply.ApplyBuff(hitter, hit);
 }
Ejemplo n.º 11
0
 void AddOnKillStack(ApplyBuffOnKillBuffInfo info)
 {
     info.buff_controller_id = buff_to_apply.ApplyBuff(info.buff.buffed, info.buff.source, info.buff.stack_count);
 }