Merits are not in the random unite list anymore

This commit is contained in:
John 2015-08-01 02:45:37 +03:00
parent 067667c019
commit e78d84f9e4

View file

@ -23,6 +23,7 @@ RESISTANCE_MONEY = 2
RESISTANCE_TICKETS = 3 RESISTANCE_TICKETS = 3
RESISTANCE_MERITS = 4 RESISTANCE_MERITS = 4
resistanceMenu = [RESISTANCE_TOONUP, RESISTANCE_RESTOCK, RESISTANCE_MONEY, RESISTANCE_TICKETS, RESISTANCE_MERITS] resistanceMenu = [RESISTANCE_TOONUP, RESISTANCE_RESTOCK, RESISTANCE_MONEY, RESISTANCE_TICKETS, RESISTANCE_MERITS]
randomResistanceMenu = [RESISTANCE_TOONUP, RESISTANCE_RESTOCK, RESISTANCE_MONEY, RESISTANCE_TICKETS]
resistanceDict = { resistanceDict = {
RESISTANCE_TOONUP: { RESISTANCE_TOONUP: {
'menuName': TTLocalizer.ResistanceToonupMenu, 'menuName': TTLocalizer.ResistanceToonupMenu,
@ -138,7 +139,7 @@ def getItemValue(textId):
def getRandomId(): def getRandomId():
menuIndex = random.choice(resistanceMenu) menuIndex = random.choice(randomResistanceMenu)
itemIndex = random.choice(getItems(menuIndex)) itemIndex = random.choice(getItems(menuIndex))
return encodeId(menuIndex, itemIndex) return encodeId(menuIndex, itemIndex)