NovaBryan/EVE_Dump
Log | Files | 📦 下载最新源码 (.zip) | Refs | README

lpUtil.py (721B)


      1 #Embedded file name: C:\BuildAgent\work\20d73f1b24eed06e\eve\release\V24.01\eve\client\script\ui\station\loyaltyPointStore\lpUtil.py
      2 import evetypes
      3 import localization
      4 from eve.common.lib import appConst as const
      5 
      6 def GetItemText(typeID, qty, numberOfOffers = 1, checkIsBlueprint = True):
      7     isBlueprint = False
      8     if checkIsBlueprint:
      9         if evetypes.GetCategoryID(typeID) == const.categoryBlueprint:
     10             isBlueprint = True
     11     if isBlueprint:
     12         txt = localization.GetByLabel('UI/LPStore/BlueprintRunsLeft', quantity=numberOfOffers, typeID=typeID, numRuns=qty)
     13     else:
     14         txt = localization.GetByLabel('UI/LPStore/RewardItem', quantity=qty * numberOfOffers, rewardItem=typeID)
     15     return txt