def calcVehicleRestorePrice(defaultPrice, proxy): exchangeRate = proxy.exchangeRate sellPriceFactor = proxy.sellPriceModif restorePriceModif = proxy.vehiclesRestoreConfig.restorePriceModif return Money.makeFromMoneyTuple( getVehicleRestorePrice(defaultPrice, exchangeRate, sellPriceFactor, restorePriceModif))
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))
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))