using System.Collections.Generic; using GameLogic.Hero; namespace Fort23.Mono { public static class HeroHerlp { public static List GetHeroChageHeroAttributeData(HeroInfo currentHero, HeroInfo newHero) { List heroAttributeDataList = new List(); 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; } } }