Exemplo n.º 1
0
        public int GetMpCost(int level)
        {
            IXivSheet <ParamGrow> paramGrowSheet = Sheet.Collection.GetSheet <ParamGrow>();

            if (!paramGrowSheet.ContainsRow(level))
            {
                return(0);
            }
            ParamGrow paramGrow = paramGrowSheet[level];

            return((int)(paramGrow.MpModifier * Cost));
        }
Exemplo n.º 2
0
            public int[] CalculateExp(int level)
            {
                // Constrain level by valid range for this collectable.
                level = Math.Min(MasterpieceSupplyDuty.ClassJobLevel, level);
                level = Math.Max(MaxClassJobLevel, level);

                // Find the base XP.
                ParamGrow paramGrow  = MasterpieceSupplyDuty.Sheet.Collection.GetSheet <ParamGrow>()[level];
                double    expPortion = ((double)1000 / ExpModifier);
                int       baseExp    = (int)(paramGrow.ExpToNext / expPortion);

                // Apply bonus multipliers.
                return(new int[] { baseExp, (int)(baseExp * _xpMultiplier), (int)(baseExp * _xpMultiplier2) });
            }