public static double GetOtherCoefficient(MapBranchResult.enumScoutingKind type) { if (SearchValueUtil._OTHER_COEFFICIENT == null) { SearchValueUtil._CreateOtherCoefficient(); } return(SearchValueUtil._OTHER_COEFFICIENT.get_Item(type)); }
public static double GetOtherCoefficient(MapBranchResult.enumScoutingKind type) { if (_OTHER_COEFFICIENT == null) { _CreateOtherCoefficient(); } return(_OTHER_COEFFICIENT[type]); }
public static double GetDifficultyCorrectionValue(DifficultKind difficulty, MapBranchResult.enumScoutingKind type) { if (type == MapBranchResult.enumScoutingKind.K2) { double difficultyCoefficient = GetDifficultyCoefficient(difficulty); return(0.0 - difficultyCoefficient * 2.0); } return(0.0); }
public static double GetType3Coefficient(MapBranchResult.enumScoutingKind type, SlotitemModel slot) { if (_TYPE3_COEFFICIENT == null) { _CreateType3Coefficient(); } if (!_TYPE3_COEFFICIENT.TryGetValue(type, out Dictionary <int, double> value)) { return(0.0); } value.TryGetValue(slot.Type3, out double value2); return(value2); }
public static double GetSlotValue(MapBranchResult.enumScoutingKind type, SlotitemModel slot) { if (slot == null) { return(0.0); } double type3Coefficient = GetType3Coefficient(type, slot); double otherCoefficient = GetOtherCoefficient(type); double levelCoefficient = GetLevelCoefficient(slot); double num = Math.Sqrt(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 = GetShipValue(ship); double num2 = 0.0; List <SlotitemModel> slotitemList = ship.SlotitemList; for (int j = 0; j < slotitemList.Count; j++) { num2 += GetSlotValue(type, slotitemList[j]); } double difficultyCorrectionValue = GetDifficultyCorrectionValue(difficulty, type); num += shipValue + num2 + difficultyCorrectionValue; } return(num); }