b_1003.cs 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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 -= 1;
  18. float harmbl = buffCount * buffInf.BuffConfig.effectValue[0];
  19. long harm = CombatCalculateTool.Instance.GetVlaueRatioForLong(
  20. source.CurrCombatHeroInfo.attack.Value, harmbl);
  21. harm += CombatCalculateTool.Instance.GetVlaueRatioForLong(
  22. harm, source.CurrCombatHeroInfo.Wood_Proficient);
  23. CombatCalculateTool.Instance.Harm(source, combatHeroEntity, harm, AttType.Buff, _triggerData,
  24. WuXingType.Null,null,HarmType.Buff);
  25. }
  26. }
  27. protected override void ProUpdateEffect()
  28. {
  29. if (buffCount >= 10)
  30. {
  31. Debug.Log("添加噬魂");
  32. }
  33. }
  34. }
  35. }