def getALegendaryFish(model=None): if model: model = 'lgLeg%s' % model if model in modelToLegendaryFishData: return modelToLegendaryFishData[model] else: return DropGlobals.rollDistribution(legendaryFishDistribution) else: return DropGlobals.rollDistribution(legendaryFishDistribution)
def getALegendaryFish(model = None): if model: model = 'lgLeg%s' % model if model in modelToLegendaryFishData: return modelToLegendaryFishData[model] else: return DropGlobals.rollDistribution(legendaryFishDistribution) else: return DropGlobals.rollDistribution(legendaryFishDistribution)
def giveMeAFish(location, depth, fishHisto): rarity = DropGlobals.rollDistribution(fishRarityDistribution) potentialFish = [1] if potentialFish: return random.choice(potentialFish) for x in range(3): if x != rarity: continue [1][x] continue
def giveMeAFish(location, depth, fishHisto): rarity = DropGlobals.rollDistribution(fishRarityDistribution) potentialFish = [1] if potentialFish: return random.choice(potentialFish) for x in range(3): if x != rarity: continue [1][x] continue
def giveMeAFish(location, depth, fishHisto): rarity = DropGlobals.rollDistribution(fishRarityDistribution) potentialFish = [ x for x in rarityPool[location][depth][rarity] if fishHisto[x['id']][0] < fishHisto[x['id']][1] ] if potentialFish: return random.choice(potentialFish) for i in [ x for x in range(3) if x != rarity ]: potentialFish = [ x for x in rarityPool[location][depth][i] if fishHisto[x['id']][0] < fishHisto[x['id']] ] if potentialFish: return random.choice(potentialFish) return