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())
def getWeapons(self): return self.getItemsInCategory(getWeaponCategory())