コード例 #1
0
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)
コード例 #2
0
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)
コード例 #3
0
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
コード例 #4
0
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
コード例 #5
0
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