示例#1
0
    def getWeaponCounts(self, weaponIds=[]):
        if weaponIds:
            countsDict = {}
            for currWeapon in weaponIds:
                countsDict[currWeapon] = self.getItemQuantity(getWeaponCategory(), currWeapon)

            return countsDict
        else:
            return self.getItemQuantity(getWeaponCategory())
    def getWeaponCounts(self, weaponIds = []):
        if weaponIds:
            countsDict = { }
            for currWeapon in weaponIds:
                countsDict[currWeapon] = self.getItemQuantity(getWeaponCategory(), currWeapon)

            return countsDict
        else:
            return self.getItemQuantity(getWeaponCategory())
示例#3
0
 def getWeapons(self):
     return self.getItemsInCategory(getWeaponCategory())
 def getWeapons(self):
     return self.getItemsInCategory(getWeaponCategory())