コード例 #1
0
def calcVehicleRestorePrice(defaultPrice, proxy):
    exchangeRate = proxy.exchangeRate
    sellPriceFactor = proxy.sellPriceModif
    restorePriceModif = proxy.vehiclesRestoreConfig.restorePriceModif
    return Money.makeFromMoneyTuple(
        getVehicleRestorePrice(defaultPrice, exchangeRate, sellPriceFactor,
                               restorePriceModif))
コード例 #2
0
def calcVehicleRestorePrice(defaultPrice, proxy):
    """
    # calculate vehicle restore price
    :param defaultPrice: <Money> default buy price
    :return: <Money> restore price
    """
    exchangeRate = proxy.exchangeRate
    sellPriceFactor = proxy.sellPriceModif
    restorePriceModif = proxy.vehiclesRestoreConfig.restorePriceModif
    return Money.makeFromMoneyTuple(getVehicleRestorePrice(defaultPrice, exchangeRate, sellPriceFactor, restorePriceModif))
コード例 #3
0
ファイル: sharedeconomics.py プロジェクト: aevitas/wotsdk
def calcVehicleRestorePrice(defaultPrice, proxy):
    """
    # calculate vehicle restore price
    :param defaultPrice: <Money> default buy price
    :return: <Money> restore price
    """
    exchangeRate = proxy.exchangeRate
    sellPriceFactor = proxy.sellPriceModif
    resorePriceModif = proxy.vehiclesRestoreConfig.restorePriceModif
    return Money(*getVehicleRestorePrice(defaultPrice, exchangeRate, sellPriceFactor, resorePriceModif))