示例#1
0
        public static void TheStarPlayerCardData(TeammemberEntity teammember, DTOBuffPlayer buffPlayer)
        {
            if (null == teammember.PlayerCard || null == teammember.PlayerCard.Property)
            {
                return;
            }
            var cardProp = teammember.PlayerCard.Property;

            if (0 == cardProp.TheStar || cardProp.TheStar > 5)
            {
                return;
            }

            var    teammemberProps = BuffUtil.GetTeammemberProps(teammember);
            double growPlus        = 0;

            growPlus = 15 * cardProp.TheStar;
            if (growPlus > 0)
            {
                growPlus = growPlus / 100.00;
            }
            for (int i = 0; i < buffPlayer.Props.Length; ++i)
            {
                buffPlayer.Props[i].Point   += teammemberProps[i];
                buffPlayer.Props[i].Percent += growPlus;
            }
        }
示例#2
0
        public static void FillTeammemberLevelData(TeammemberEntity teammember, DTOBuffPlayer buffPlayer)
        {
            var teammemberProps = BuffUtil.GetTeammemberProps(teammember);
            var level           = teammember.Level;

            double levelPlus = 0;

            if (level > 1)
            {
                levelPlus = (level - 1) / 100.00;
            }
            for (int i = 0; i < buffPlayer.Props.Length; ++i)
            {
                buffPlayer.Props[i].Point   += teammemberProps[i];
                buffPlayer.Props[i].Percent += levelPlus;
            }
        }