mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2024-12-25 20:52:26 -06:00
21 lines
No EOL
583 B
Python
21 lines
No EOL
583 B
Python
from toontown.coghq import CogDisguiseGlobals
|
|
|
|
suitTrackIndex = {
|
|
's' : 3,
|
|
'm' : 2,
|
|
'l' : 1,
|
|
'c' : 0
|
|
}
|
|
|
|
class CogSuitManagerAI:
|
|
def __init__(self, air):
|
|
self.air = air
|
|
|
|
def recoverPart(self, toon, factoryType, suitTrack, zoneId, toons):
|
|
recoveredParts = [0, 0, 0, 0]
|
|
parts = toon.getCogParts()
|
|
suitTrack = suitTrackIndex[suitTrack]
|
|
if CogDisguiseGlobals.isSuitComplete(parts, suitTrack):
|
|
return recoveredParts
|
|
recoveredParts[suitTrack] = toon.giveGenericCogPart(factoryType, suitTrack)
|
|
return recoveredParts |