123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- using System.Collections.Generic;
- using GameLogic.Hero;
- namespace Fort23.Mono
- {
- public static class HeroHerlp
- {
- public static List<HeroAttributeData> GetHeroChageHeroAttributeData(HeroInfo currentHero, HeroInfo newHero)
- {
- List<HeroAttributeData> heroAttributeDataList = new List<HeroAttributeData>();
- if (currentHero.hp != newHero.hp)
- {
- HeroAttributeData heroAttributeData = new HeroAttributeData("生命", currentHero.hp.Value.ToString(), "+" +newHero.hp.Value.ToString());
- heroAttributeDataList.Add(heroAttributeData);
- }
-
- if (currentHero.attack != newHero.attack)
- {
- HeroAttributeData heroAttributeData = new HeroAttributeData("攻击", currentHero.attack.Value.ToString(), "+" +newHero.attack.Value.ToString());
- heroAttributeDataList.Add(heroAttributeData);
- }
-
- if (currentHero.defense != newHero.defense)
- {
- HeroAttributeData heroAttributeData = new HeroAttributeData("防御", currentHero.defense.Value.ToString(), "+" +newHero.defense.Value.ToString());
- heroAttributeDataList.Add(heroAttributeData);
- }
-
-
- if (currentHero.powerUpConfig.MPFactor != newHero.powerUpConfig.MPFactor)
- {
- HeroAttributeData heroAttributeData = new HeroAttributeData("法宝倍率", currentHero.powerUpConfig.MPFactor.ToString(), "+" + currentHero.powerUpConfig.MPFactor.ToString());
- heroAttributeDataList.Add(heroAttributeData);
- }
-
- if (currentHero.powerUpConfig.MPFactor != newHero.powerUpConfig.MPFactor)
- {
- HeroAttributeData heroAttributeData = new HeroAttributeData("护盾倍率", currentHero.powerUpConfig.HudunFactor.ToString(), "+" + currentHero.powerUpConfig.HudunFactor.ToString());
- heroAttributeDataList.Add(heroAttributeData);
- }
-
- if (currentHero.powerUpConfig.MPFactor != newHero.powerUpConfig.MPFactor)
- {
- HeroAttributeData heroAttributeData = new HeroAttributeData("防御系数K", currentHero.powerUpConfig.defK.ToString(), "+" + currentHero.powerUpConfig.defK.ToString());
- heroAttributeDataList.Add(heroAttributeData);
- }
-
- if (currentHero.powerUpConfig.MPFactor != newHero.powerUpConfig.MPFactor)
- {
- HeroAttributeData heroAttributeData = new HeroAttributeData("神识上限", currentHero.powerUpConfig.ShenshiMax.ToString(), "+" + currentHero.powerUpConfig.ShenshiMax.ToString());
- heroAttributeDataList.Add(heroAttributeData);
- }
- return heroAttributeDataList;
- }
- }
- }
|