b_1003.cs 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. using GameLogic.Combat.CombatTool;
  2. using GameLogic.Player;
  3. using UnityEngine;
  4. namespace GameLogic.Combat.Buff
  5. {
  6. /// <summary>
  7. /// 3、毒:每层毒对敌人每秒照成1%伤害,10层毒后毒气会入侵五脏对敌人对敌人施加噬魂
  8. /// </summary>
  9. public class b_1003 : BuffBasic
  10. {
  11. private float _time;
  12. protected override void ProUpdate(float t)
  13. {
  14. _time += t;
  15. if (_time >= 1)
  16. {
  17. _time -= t;
  18. float harmbl = buffCount * buffInf.BuffConfig.effectValue[0];
  19. long harm = CombatCalculateTool.Instance.GetVlaueRatioForLong(
  20. source.CurrCombatHeroInfo.attack.Value, harmbl);
  21. CombatCalculateTool.Instance.Harm(source, combatHeroEntity, harm, AttType.Buff, _triggerData,
  22. WuXingType.Null);
  23. }
  24. }
  25. protected override void ProUpdateEffect()
  26. {
  27. if (buffCount >= 10)
  28. {
  29. Debug.Log("添加噬魂");
  30. }
  31. }
  32. }
  33. }