public CraftLevelDifference GetCraftLevelDifference(int crafterLevel) { int levelDiff = crafterLevel - RecipeLevelTable.Key; IXivSheet <CraftLevelDifference> sheet = Sheet.Collection.GetSheet <CraftLevelDifference>(); return(sheet.ContainsRow(levelDiff) ? sheet[levelDiff] : null); }
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)); }