public CraftLevelDifference GetCraftLevelDifference(int crafterLevel)
        {
            int levelDiff = crafterLevel - RecipeLevelTable.Key;
            IXivSheet <CraftLevelDifference> sheet = Sheet.Collection.GetSheet <CraftLevelDifference>();

            return(sheet.ContainsRow(levelDiff) ? sheet[levelDiff] : null);
        }
Exemple #2
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));
        }