def __doSellVehicle(self, vehicle, shells, eqs, optDevicesToSell, inventory, isDismissCrew): vehicleSeller = VehicleSeller(vehicle, shells, eqs, optDevicesToSell, inventory, isDismissCrew) currentMoneyGold = self.itemsCache.items.stats.money.get( Currency.GOLD, 0) spendMoneyGold = vehicleSeller.spendMoney.get(Currency.GOLD, 0) if isIngameShopEnabled() and currentMoneyGold < spendMoneyGold: showBuyGoldForEquipment(spendMoneyGold) else: result = yield vehicleSeller.request() if result.userMsg: SystemMessages.pushMessage(result.userMsg, type=result.sysMsgType) self.destroy()
def __doSellVehicle(self, vehicle, shells, eqs, optDevicesToSell, inventory, customizationItems, isDismissCrew, itemsForDemountKit, boosters): vehicleSeller = VehicleSeller(vehicle, shells, eqs, optDevicesToSell, inventory, customizationItems, boosters, isDismissCrew, itemsForDemountKit) currentMoneyGold = self.__itemsCache.items.stats.money.get( Currency.GOLD, 0) spendMoneyGold = vehicleSeller.spendMoney.get(Currency.GOLD, 0) if currentMoneyGold < spendMoneyGold: showBuyGoldForEquipment(spendMoneyGold) else: result = yield vehicleSeller.request() SystemMessages.pushMessages(result) self.destroy()
def __doSellVehicle(self, vehicle, shells, eqs, optDevs, inventory, isDismissCrew): removalCost = g_itemsCache.items.shop.paidRemovalCost result = yield VehicleSeller(vehicle, removalCost, shells, eqs, optDevs, inventory, isDismissCrew).request() if len(result.userMsg): SystemMessages.pushMessage(result.userMsg, type=result.sysMsgType)
def __doSellVehicle(self, vehicle, shells, eqs, optDevs, inventory, isDismissCrew): shop = yield ShopRequester().request() result = yield VehicleSeller(vehicle, shop.paidRemovalCost, shells, eqs, optDevs, inventory, isDismissCrew).request() if len(result.userMsg): SystemMessages.g_instance.pushMessage(result.userMsg, type=result.sysMsgType)
def __doSellVehicle(self, vehicle, shells, eqs, optDevs, inventory, isDismissCrew): result = yield VehicleSeller(vehicle, shells, eqs, optDevs, inventory, isDismissCrew).request() if len(result.userMsg): SystemMessages.pushMessage(result.userMsg, type=result.sysMsgType)