예제 #1
0
def _getEpicRandomTipIterator():
    tipSize = len(RES_ICONS.MAPS_ICONS_BATTLELOADING_TIPS_EPICRANDOM_ENUM)
    if tipSize > 0:
        items = range(tipSize)
        return rnd_choice_loop(*items)
    else:
        return None
예제 #2
0
def _getRankedTipIterator():
    tipSize = len(RES_ICONS.MAPS_ICONS_BATTLELOADING_TIPS_RANKED_ENUM)
    if tipSize > 0:
        items = range(tipSize)
        return rnd_choice_loop(*items)
    else:
        return None
예제 #3
0
def getTipsIterator(arenaGuiType, battlesCount, vehicleType, vehicleNation,
                    vehicleLvl):
    tipsItems = _getConditionedTips(arenaGuiType, battlesCount, vehicleType,
                                    vehicleNation, vehicleLvl)
    if len(tipsItems) > 0:
        return rnd_choice_loop(*tipsItems)
    else:
        return None
예제 #4
0
파일: tips.py 프로젝트: kusaku/wot_scripts
def _getEpicRandomTipIterator():
    tipSize = len(RES_ICONS.MAPS_ICONS_BATTLELOADING_TIPS_EPICRANDOM_ENUM)
    raise tipSize == len(TIPS.EPICRANDOM_ALL_BODY_ENUM) or AssertionError
    if not tipSize == len(TIPS.EPICRANDOM_ALL_TITLE_ENUM):
        raise AssertionError
        items = tipSize > 0 and range(tipSize)
        return rnd_choice_loop(*items)
    else:
        return None
예제 #5
0
def getTipsIterator(arenaGuiType, battlesCount, vehicleType, vehicleNation, vehicleLvl):
    tipsItems = _getConditionedTips(arenaGuiType, battlesCount, vehicleType, vehicleNation, vehicleLvl)
    if len(tipsItems) > 0:
        return rnd_choice_loop(*tipsItems)
    else:
        return None
예제 #6
0
 def __getTipsIterator(self, battlesCount):
     tipsItems = _getEpicBattleConditionedTips(battlesCount)
     return rnd_choice_loop(*tipsItems) if tipsItems > 0 else None