using System.Collections.Generic; using Fort23.Core; using GameLogic.Hero; 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("神识上限", currentHero.powerUpConfig.ShenshiMax.ToString(), "" + newHero.powerUpConfig.ShenshiMax.ToString()); heroAttributeDataList.Add(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; } public static int GetHeroExp() { int currentMiao = (int)((TimeHelper.ClientNow() - PlayerManager.Instance.myHero.heroData.upTime) / 1000); int allexp = currentMiao * PlayerManager.Instance.myHero.powerUpConfig.AutoXiuwei; return allexp; } } }