mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2024-12-23 11:42:39 -06:00
Thank you Joey and the TTR team
This commit is contained in:
parent
63b34432a2
commit
20d8727825
3 changed files with 16 additions and 23 deletions
|
@ -476,7 +476,20 @@ class QuestManagerAI:
|
|||
pass
|
||||
|
||||
def toonKilledCogs(self, av, suitsKilled, zoneId, activeToonList):
|
||||
pass
|
||||
avQuests = av.getQuests()
|
||||
questList = []
|
||||
|
||||
for i in xrange(0, len(avQuests), 5):
|
||||
questDesc = avQuests[i : i + 5]
|
||||
questClass = Quests.getQuest(questDesc[QuestIdIndex])
|
||||
|
||||
if isinstance(questClass, Quests.CogQuest):
|
||||
for suit in suitsKilled:
|
||||
for x in xrange(questClass.doesCogCount(av.getDoId(), suit, zoneId, activeToonList)):
|
||||
questDesc[QuestProgressIndex] += 1
|
||||
|
||||
questList.append(questDesc)
|
||||
av.b_setQuests(questList)
|
||||
|
||||
@magicWord(category=CATEGORY_PROGRAMMER, types=[str, int, int])
|
||||
def quests(command, arg0=0, arg1=0):
|
||||
|
|
|
@ -622,16 +622,8 @@ class RewardPanel(DirectFrame):
|
|||
earned = itemList.count(questItem)
|
||||
else:
|
||||
for cogDict in cogList:
|
||||
if cogDict['isVP']:
|
||||
num = quest.doesVPCount(avId, cogDict, zoneId, toonShortList)
|
||||
elif cogDict['isCFO']:
|
||||
num = quest.doesCFOCount(avId, cogDict, zoneId, toonShortList)
|
||||
elif cogDict['isCJ']:
|
||||
num = quest.doesCJCount(avId, cogDict, zoneId, toonShortList)
|
||||
elif cogDict['isCEO']:
|
||||
num = quest.doesCEOCount(avId, cogDict, zoneId, toonShortList)
|
||||
else:
|
||||
num = quest.doesCogCount(avId, cogDict, zoneId, toonShortList)
|
||||
num = quest.doesCogCount(avId, cogDict, zoneId, toonShortList)
|
||||
|
||||
if num:
|
||||
if base.config.GetBool('battle-passing-no-credit', True):
|
||||
if avId in helpfulToonsList:
|
||||
|
|
|
@ -358,18 +358,6 @@ class Quest:
|
|||
def doesCogCount(self, avId, cogDict, zoneId, avList):
|
||||
return 0
|
||||
|
||||
def doesVPCount(self, avId, cogDict, zoneId, avList):
|
||||
return 0
|
||||
|
||||
def doesCFOCount(self, avId, cogDict, zoneId, avList):
|
||||
return 0
|
||||
|
||||
def doesCJCount(self, avId, cogDict, zoneId, avList):
|
||||
return 0
|
||||
|
||||
def doesCEOCount(self, avId, cogDict, zoneId, avList):
|
||||
return 0
|
||||
|
||||
def doesFactoryCount(self, avId, location, avList):
|
||||
return 0
|
||||
|
||||
|
|
Loading…
Reference in a new issue