public static float?GetAgingMultiplierForItem(CustomAger customAger, Item ageable) { if (customAger.AgingDataId.ContainsKey(ageable.ParentSheetIndex)) { return(customAger.AgingDataId[ageable.ParentSheetIndex]); } else if (customAger.AgingDataId.ContainsKey(ageable.Category)) { return(customAger.AgingDataId[ageable.Category]); } return(null); }
public static void SetAger(CustomAger ager) { AgerData[ager.Name] = ager; }