paintToolUtils.py (770B)
1 #Embedded file name: C:\BuildAgent\work\20d73f1b24eed06e\eve\release\V24.01\eve\client\script\ui\cosmetics\structure\paintToolUtils.py 2 from appConst import corpHeraldry 3 from eve.client.script.ui.cosmetics.structure import paintToolSelections 4 5 def get_evermark_balance(): 6 everMarks = sm.GetService('loyaltyPointsWalletSvc').GetCorporationEvermarkBalance() 7 return everMarks 8 9 10 def get_total_price(): 11 total_price = 0 12 for structure_data in paintToolSelections.SELECTED_STRUCTURES.itervalues(): 13 price = structure_data.get_price_for_duration(paintToolSelections.SELECTED_DURATION) 14 if price is not None: 15 total_price += price 16 17 return total_price 18 19 20 def has_sufficient_funds(): 21 return get_evermark_balance() >= get_total_price()