using System.Collections.Generic; using Fort23.Core; using GameLogic.Hero; using Utility; namespace Fort23.Mono { public static class HeroHerlp { public static List GetHeroChageHeroAttributeData(HeroInfo currentHero, HeroInfo newHero) { List heroAttributeDataList = new List(); if (currentHero.powerUpConfig.ShenshiMax != newHero.powerUpConfig.ShenshiMax) { HeroAttributeData heroAttributeData = new HeroAttributeData(10878, currentHero.powerUpConfig.ShenshiMax.ToStringEx(), "" + newHero.powerUpConfig.ShenshiMax.ToStringEx()); heroAttributeDataList.Add(heroAttributeData); } if (currentHero.hp != newHero.hp) { HeroAttributeData heroAttributeData = new HeroAttributeData(10871, currentHero.hp.Value.ToStringEx(), "" + newHero.hp.Value.ToStringEx()); heroAttributeDataList.Add(heroAttributeData); } if (currentHero.attack != newHero.attack) { HeroAttributeData heroAttributeData = new HeroAttributeData(10872, currentHero.attack.Value.ToStringEx(), "" + newHero.attack.Value.ToStringEx()); heroAttributeDataList.Add(heroAttributeData); } if (currentHero.defense != newHero.defense) { HeroAttributeData heroAttributeData = new HeroAttributeData(10873, currentHero.defense.Value.ToStringEx(), "" + newHero.defense.Value.ToStringEx()); heroAttributeDataList.Add(heroAttributeData); } if (currentHero.powerUpConfig.MPFactor != newHero.powerUpConfig.MPFactor) { HeroAttributeData heroAttributeData = new HeroAttributeData(10875, currentHero.powerUpConfig.MPFactor.ToString(), "" + currentHero.powerUpConfig.MPFactor.ToString()); heroAttributeDataList.Add(heroAttributeData); } if (currentHero.powerUpConfig.MPFactor != newHero.powerUpConfig.MPFactor) { HeroAttributeData heroAttributeData = new HeroAttributeData(10876, currentHero.powerUpConfig.HudunFactor.ToString(), "" + currentHero.powerUpConfig.HudunFactor.ToString()); heroAttributeDataList.Add(heroAttributeData); } if (currentHero.powerUpConfig.MPFactor != newHero.powerUpConfig.MPFactor) { HeroAttributeData heroAttributeData = new HeroAttributeData(10877, currentHero.powerUpConfig.defK.ToStringEx(), "" + currentHero.powerUpConfig.defK.ToStringEx()); heroAttributeDataList.Add(heroAttributeData); } // if (currentHero.powerUpConfig.MPFactor != newHero.powerUpConfig.MPFactor) // { // HeroAttributeData heroAttributeData = new HeroAttributeData("神识上限", // currentHero.powerUpConfig.ShenshiMax.ToStringEx(), // "" + currentHero.powerUpConfig.ShenshiMax.ToStringEx()); // heroAttributeDataList.Add(heroAttributeData); // } return heroAttributeDataList; } public static List GetHeroChageHeroAttributeData1(HeroInfo currentHero, HeroInfo newHero) { List heroAttributeDataList = new List(); if (currentHero.powerUpConfig.ShenshiMax != newHero.powerUpConfig.ShenshiMax) { HeroAttributeData heroAttributeData = new HeroAttributeData(10878, currentHero.powerUpConfig.ShenshiMax.ToStringEx(), newHero.powerUpConfig.ShenshiMax - currentHero.powerUpConfig.ShenshiMax + ""); heroAttributeDataList.Add(heroAttributeData); } if (currentHero.hp != newHero.hp) { HeroAttributeData heroAttributeData = new HeroAttributeData(10871, currentHero.hp.Value.ToStringEx(), (newHero.hp.Value - currentHero.hp.Value).ToStringEx() + ""); heroAttributeDataList.Add(heroAttributeData); } if (currentHero.attack != newHero.attack) { HeroAttributeData heroAttributeData = new HeroAttributeData(10872, currentHero.attack.Value.ToStringEx(), (newHero.attack.Value - currentHero.attack.Value).ToStringEx()); heroAttributeDataList.Add(heroAttributeData); } if (currentHero.defense != newHero.defense) { HeroAttributeData heroAttributeData = new HeroAttributeData(10873, currentHero.defense.Value.ToStringEx(), (newHero.defense.Value - currentHero.defense.Value).ToStringEx() + ""); heroAttributeDataList.Add(heroAttributeData); } if (currentHero.powerUpConfig.MPFactor != newHero.powerUpConfig.MPFactor) { HeroAttributeData heroAttributeData = new HeroAttributeData(10875, currentHero.powerUpConfig.MPFactor.ToString(), currentHero.powerUpConfig.MPFactor - currentHero.powerUpConfig.MPFactor + ""); heroAttributeDataList.Add(heroAttributeData); } if (currentHero.powerUpConfig.MPFactor != newHero.powerUpConfig.MPFactor) { HeroAttributeData heroAttributeData = new HeroAttributeData(10876, currentHero.powerUpConfig.HudunFactor.ToString(), currentHero.powerUpConfig.HudunFactor - currentHero.powerUpConfig.HudunFactor + ""); heroAttributeDataList.Add(heroAttributeData); } if (currentHero.powerUpConfig.MPFactor != newHero.powerUpConfig.MPFactor) { HeroAttributeData heroAttributeData = new HeroAttributeData(10877, currentHero.powerUpConfig.defK.ToStringEx(), (currentHero.powerUpConfig.defK - currentHero.powerUpConfig.defK).ToStringEx() + ""); heroAttributeDataList.Add(heroAttributeData); } // if (currentHero.powerUpConfig.MPFactor != newHero.powerUpConfig.MPFactor) // { // HeroAttributeData heroAttributeData = new HeroAttributeData("神识上限", // currentHero.powerUpConfig.ShenshiMax.ToStringEx(), // (currentHero.powerUpConfig.ShenshiMax - currentHero.powerUpConfig.ShenshiMax).ToStringEx() + ""); // heroAttributeDataList.Add(heroAttributeData); // } return heroAttributeDataList; } } }