b_1004.cs 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. using Common.Utility.CombatEvent;
  2. using Fort23.Core;
  3. using GameLogic.Player;
  4. using OfficeOpenXml.FormulaParsing.Excel.Functions.Logical;
  5. namespace GameLogic.Combat.Buff
  6. {
  7. /// <summary>
  8. /// 4、噬魂:敌人每使用一次功法对应功法的伤势增加1
  9. /// </summary>
  10. public class b_1004 : BuffBasic
  11. {
  12. // protected override void ProInit()
  13. // {
  14. // CombatEventManager.Instance.AddEventListener(CombatEventType.AddUseGongFa, AddUseGongFa);
  15. // }
  16. //
  17. // private void AddUseGongFa(IEventData eventData)
  18. // {
  19. // AddUseGongFaEventData data = (AddUseGongFaEventData)eventData;
  20. // if (data.SkillBasic.CombatHeroEntity == combatHeroEntity)
  21. // {
  22. // switch (data.SkillBasic.wuXingType)
  23. // {
  24. // case WuXingType.Gold:
  25. // combatHeroEntity.CurrCombatHeroInfo.Metal_Injury += 1;
  26. // break;
  27. // case WuXingType.Fire:
  28. // combatHeroEntity.CurrCombatHeroInfo.Fire_Injury += 1;
  29. // break;
  30. // case WuXingType.Wood:
  31. // combatHeroEntity.CurrCombatHeroInfo.Wood_Injury += 1;
  32. // break;
  33. // case WuXingType.Earth:
  34. // combatHeroEntity.CurrCombatHeroInfo.Earth_Injury += 1;
  35. // break;
  36. // case WuXingType.Water:
  37. // combatHeroEntity.CurrCombatHeroInfo.Water_Injury += 1;
  38. // break;
  39. // }
  40. // }
  41. // }
  42. //
  43. // protected override void ProDormancyObj()
  44. // {
  45. // CombatEventManager.Instance.RemoveEventListener(CombatEventType.AddUseGongFa, AddUseGongFa);
  46. // }
  47. }
  48. }