public static double GetOtherCoefficient(MapBranchResult.enumScoutingKind type) { if (SearchValueUtil._OTHER_COEFFICIENT == null) { SearchValueUtil._CreateOtherCoefficient(); } return(SearchValueUtil._OTHER_COEFFICIENT.get_Item(type)); }
public static double GetDifficultyCoefficient(DifficultKind difficulty) { if (SearchValueUtil._DIFFICULTY_COEFFICIENT == null) { SearchValueUtil._CreateDifficultyCoefficient(); } return(SearchValueUtil._DIFFICULTY_COEFFICIENT.get_Item(difficulty)); }
public static double GetDifficultyCorrectionValue(DifficultKind difficulty, MapBranchResult.enumScoutingKind type) { if (type == MapBranchResult.enumScoutingKind.K2) { double difficultyCoefficient = SearchValueUtil.GetDifficultyCoefficient(difficulty); return(-(difficultyCoefficient * 2.0)); } return(0.0); }
public static double GetLevelCoefficient(SlotitemModel slot) { if (SearchValueUtil._LEVEL_COEFFICIENT == null) { SearchValueUtil._CreateLevelCoefficient(); } double result; SearchValueUtil._LEVEL_COEFFICIENT.TryGetValue(slot.Type3, ref result); return(result); }
public static double GetSlotValue(MapBranchResult.enumScoutingKind type, SlotitemModel slot) { if (slot == null) { return(0.0); } double type3Coefficient = SearchValueUtil.GetType3Coefficient(type, slot); double otherCoefficient = SearchValueUtil.GetOtherCoefficient(type); double levelCoefficient = SearchValueUtil.GetLevelCoefficient(slot); double num = Math.Sqrt((double)slot.Level) * levelCoefficient; double num2 = (type3Coefficient <= 0.0) ? otherCoefficient : type3Coefficient; return(((double)slot.Sakuteki + num) * num2); }
public static double GetType3Coefficient(MapBranchResult.enumScoutingKind type, SlotitemModel slot) { if (SearchValueUtil._TYPE3_COEFFICIENT == null) { SearchValueUtil._CreateType3Coefficient(); } Dictionary <int, double> dictionary; if (!SearchValueUtil._TYPE3_COEFFICIENT.TryGetValue(type, ref dictionary)) { return(0.0); } double result; dictionary.TryGetValue(slot.Type3, ref result); return(result); }
public static double GetSearchValue(DeckModel deck, MapBranchResult.enumScoutingKind type, DifficultKind difficulty) { double num = 0.0; for (int i = 0; i < deck.GetShips().Length; i++) { ShipModel ship = deck.GetShip(i); double shipValue = SearchValueUtil.GetShipValue(ship); double num2 = 0.0; List <SlotitemModel> slotitemList = ship.SlotitemList; for (int j = 0; j < slotitemList.get_Count(); j++) { num2 += SearchValueUtil.GetSlotValue(type, slotitemList.get_Item(j)); } double difficultyCorrectionValue = SearchValueUtil.GetDifficultyCorrectionValue(difficulty, type); num += shipValue + num2 + difficultyCorrectionValue; } return(num); }
public static double Get_K2(DeckModel deck, DifficultKind difficulty) { return(SearchValueUtil.GetSearchValue(deck, MapBranchResult.enumScoutingKind.K2, difficulty)); }