コード例 #1
0
LawbotOfficeInt = 13300
LawbotStageIntA = 13300
LawbotStageIntB = 13400
LawbotStageIntC = 13500
LawbotStageIntD = 13600
Tutorial = 15000
MyEstate = 16000
GolfZone = 17000
PartyHood = 18000
HoodsAlwaysVisited = [17000, 18000]
WelcomeValleyBegin = 22000
WelcomeValleyEnd = 61000
DynamicZonesBegin = 61000
DynamicZonesEnd = 1 << 20
cogDept2index = {'c': 0, 'l': 1, 'm': 2, 's': 3}
cogIndex2dept = invertDict(cogDept2index)
HQToSafezone = {
    SellbotHQ: DaisyGardens,
    CashbotHQ: DonaldsDreamland,
    LawbotHQ: TheBrrrgh,
    BossbotHQ: DonaldsDock
}
CogDeptNames = [
    TTLocalizer.Bossbot, TTLocalizer.Lawbot, TTLocalizer.Cashbot,
    TTLocalizer.Sellbot
]


def cogHQZoneId2deptIndex(zone):
    if zone >= 13000 and zone <= 13999:
        return 1
コード例 #2
0
LawbotStageIntC = 13500
LawbotStageIntD = 13600
Tutorial = 15000
MyEstate = 16000
GolfZone = 17000
PartyHood = 18000
HoodsAlwaysVisited = [17000, 18000]
WelcomeValleyBegin = 22000
WelcomeValleyEnd = 61000
DynamicZonesBegin = 61000
DynamicZonesEnd = 1 << 20
cogDept2index = {'c': 0,
 'l': 1,
 'm': 2,
 's': 3}
cogIndex2dept = invertDict(cogDept2index)
HQToSafezone = {SellbotHQ: DaisyGardens,
 CashbotHQ: DonaldsDreamland,
 LawbotHQ: TheBrrrgh,
 BossbotHQ: DonaldsDock}
CogDeptNames = [TTLocalizer.Bossbot,
 TTLocalizer.Lawbot,
 TTLocalizer.Cashbot,
 TTLocalizer.Sellbot]

def cogHQZoneId2deptIndex(zone):
    if zone >= 13000 and zone <= 13999:
        return 1
    elif zone >= 12000:
        return 2
    elif zone >= 11000:
コード例 #3
0
 4: 'LawbotOfficeBoilerRoom_Battle00',
 5: 'LawbotOfficeGearRoom_Action00',
 6: 'LawbotOfficeLobby_Action00',
 7: 'LawbotOfficeGearRoom_Security00',
 8: 'LawbotOfficeLobby_Trap00',
 9: 'LawbotOfficeDiamondRoom_Security00',
 10: 'LawbotOfficeDiamondRoom_Trap00',
 11: 'LawbotOfficeGearRoom_Platform00',
 12: 'LawbotOfficeLobby_Lights00',
 100: 'LawbotOfficeBoilerRoom_Action01',
 101: 'LawbotOfficeDiamondRoom_Action00',
 102: 'LawbotOfficeDiamondRoom_Action01',
 103: 'LawbotOfficeLobby_Action01',
 104: 'LawbotOfficeDiamondRoom_Battle00',
 105: 'LawbotOfficeGearRoom_Battle00'}
CashbotStageRoomName2RoomId = invertDict(CashbotStageRoomId2RoomName)
CashbotStageEntranceIDs = (0,)
CashbotStageMiddleRoomIDs = (1,)
CashbotStageFinalRoomIDs = (2,)
CashbotStageConnectorRooms = ('phase_11/models/lawbotHQ/LB_connector_7cubeL2', 'phase_11/models/lawbotHQ/LB_connector_7cubeLR')
CashbotStageSpecModules = {}
for roomName, roomId in CashbotStageRoomName2RoomId.items():
    CashbotStageSpecModules[roomId] = locals()[roomName]

CogSpecModules = {'LawbotOfficeOilRoom_Battle00': LawbotOfficeOilRoom_Battle00_Cogs,
 'LawbotOfficeOilRoom_Battle01': LawbotOfficeOilRoom_Battle01_Cogs,
 'LawbotOfficeBoilerRoom_Battle00': LawbotOfficeBoilerRoom_Battle00_Cogs,
 'LawbotOfficeBoilerRoom_Trap00': LawbotOfficeBoilerRoom_Trap00_Cogs,
 'LawbotOfficeLobby_Trap00': LawbotOfficeLobby_Trap00_Cogs,
 'LawbotOfficeDiamondRoom_Trap00': LawbotOfficeDiamondRoom_Trap00_Cogs,
 'LawbotOfficeDiamondRoom_Battle00': LawbotOfficeDiamondRoom_Battle00_Cogs,
コード例 #4
0
ファイル: MintRoomSpecs.py プロジェクト: perpi06/ttoffline
    12: 'CashbotMintLobby_Battle00',
    13: 'CashbotMintPaintMixer_Action00',
    14: 'CashbotMintPipeRoom_Action00',
    15: 'CashbotMintPipeRoom_Battle00',
    16: 'CashbotMintStomperAlley_Action00',
    17: 'CashbotMintBoilerRoom_Battle01',
    18: 'CashbotMintControlRoom_Battle00',
    19: 'CashbotMintDuctRoom_Battle01',
    20: 'CashbotMintGearRoom_Battle01',
    21: 'CashbotMintLavaRoomFoyer_Battle01',
    22: 'CashbotMintOilRoom_Battle00',
    23: 'CashbotMintLobby_Battle01',
    24: 'CashbotMintPaintMixerReward_Battle00',
    25: 'CashbotMintPipeRoom_Battle01'
}
CashbotMintRoomName2RoomId = invertDict(CashbotMintRoomId2RoomName)
CashbotMintEntranceIDs = (0, )
CashbotMintMiddleRoomIDs = (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15,
                            16)
CashbotMintFinalRoomIDs = (17, 18, 19, 20, 21, 22, 23, 24, 25)
CashbotMintConnectorRooms = ('phase_10/models/cashbotHQ/connector_7cubeL2',
                             'phase_10/models/cashbotHQ/connector_7cubeR2')
CashbotMintSpecModules = {}
if config.GetBool('isclient-check', False):
    if not isClient():
        print 'EXECWARNING MintRoomSpecs: %s' % CashbotMintRoomName2RoomId
        printStack()
for roomName, roomId in CashbotMintRoomName2RoomId.items():
    exec 'from toontown.coghq import %s' % roomName
    CashbotMintSpecModules[roomId] = eval(roomName)
コード例 #5
0
 11: 'CashbotMintLobby_Action00',
 12: 'CashbotMintLobby_Battle00',
 13: 'CashbotMintPaintMixer_Action00',
 14: 'CashbotMintPipeRoom_Action00',
 15: 'CashbotMintPipeRoom_Battle00',
 16: 'CashbotMintStomperAlley_Action00',
 17: 'CashbotMintBoilerRoom_Battle01',
 18: 'CashbotMintControlRoom_Battle00',
 19: 'CashbotMintDuctRoom_Battle01',
 20: 'CashbotMintGearRoom_Battle01',
 21: 'CashbotMintLavaRoomFoyer_Battle01',
 22: 'CashbotMintOilRoom_Battle00',
 23: 'CashbotMintLobby_Battle01',
 24: 'CashbotMintPaintMixerReward_Battle00',
 25: 'CashbotMintPipeRoom_Battle01'}
CashbotMintRoomName2RoomId = invertDict(CashbotMintRoomId2RoomName)
CashbotMintEntranceIDs = (0,)
CashbotMintMiddleRoomIDs = (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16)
CashbotMintFinalRoomIDs = (17, 18, 19, 20, 21, 22, 23, 24, 25)
CashbotMintConnectorRooms = ('phase_10/models/cashbotHQ/connector_7cubeL2', 'phase_10/models/cashbotHQ/connector_7cubeR2')
CashbotMintSpecModules = {}
if not isClient():
    print 'EXECWARNING MintRoomSpecs: %s' % CashbotMintRoomName2RoomId
    printStack()
for roomName, roomId in CashbotMintRoomName2RoomId.items():
    exec 'from toontown.coghq import %s' % roomName
    CashbotMintSpecModules[roomId] = eval(roomName)

CogSpecModules = {'CashbotMintBoilerRoom_Battle00': CashbotMintBoilerRoom_Battle00_Cogs,
 'CashbotMintBoilerRoom_Battle01': CashbotMintBoilerRoom_Battle01_Cogs,
 'CashbotMintControlRoom_Battle00': CashbotMintControlRoom_Battle00_Cogs,
コード例 #6
0
ファイル: StageRoomSpecs.py プロジェクト: z010155/c0d3
    5: 'LawbotOfficeGearRoom_Action00',
    6: 'LawbotOfficeLobby_Action00',
    7: 'LawbotOfficeGearRoom_Security00',
    8: 'LawbotOfficeLobby_Trap00',
    9: 'LawbotOfficeDiamondRoom_Security00',
    10: 'LawbotOfficeDiamondRoom_Trap00',
    11: 'LawbotOfficeGearRoom_Platform00',
    12: 'LawbotOfficeLobby_Lights00',
    100: 'LawbotOfficeBoilerRoom_Action01',
    101: 'LawbotOfficeDiamondRoom_Action00',
    102: 'LawbotOfficeDiamondRoom_Action01',
    103: 'LawbotOfficeLobby_Action01',
    104: 'LawbotOfficeDiamondRoom_Battle00',
    105: 'LawbotOfficeGearRoom_Battle00'
}
CashbotStageRoomName2RoomId = invertDict(CashbotStageRoomId2RoomName)
CashbotStageEntranceIDs = (0, )
CashbotStageMiddleRoomIDs = (1, )
CashbotStageFinalRoomIDs = (2, )
CashbotStageConnectorRooms = ('phase_11/models/lawbotHQ/LB_connector_7cubeL2',
                              'phase_11/models/lawbotHQ/LB_connector_7cubeLR')
CashbotStageSpecModules = {}
if not isClient():
    print 'EXECWARNING StageRoomSpecs: %s' % CashbotStageRoomName2RoomId
    printStack()
for roomName, roomId in CashbotStageRoomName2RoomId.items():
    exec 'from toontown.coghq import %s' % roomName
    CashbotStageSpecModules[roomId] = eval(roomName)

CogSpecModules = {
    'LawbotOfficeOilRoom_Battle00': LawbotOfficeOilRoom_Battle00_Cogs,
コード例 #7
0

BossbotCountryClubRoomId2RoomName = {0: 'BossbotCountryClubEntrance_Action00',
 2: 'BossbotCountryClubTeeOffRoom_Action00',
 4: 'BossbotCountryClubFairwayRoom_Battle00',
 5: 'BossbotCountryClubMazeRoom_Battle00',
 6: 'BossbotCountryClubMazeRoom_Battle01',
 7: 'BossbotCountryClubMazeRoom_Battle02',
 9: 'BossbotCountryClubGreenRoom_Action00',
 17: 'BossbotCountryClubKartRoom_Battle00',
 18: 'BossbotCountryClubPresidentRoom_Battle00',
 22: 'BossbotCountryClubTeeOffRoom_Action01',
 32: 'BossbotCountryClubTeeOffRoom_Action02',
 29: 'BossbotCountryClubGreenRoom_Action01',
 39: 'BossbotCountryClubGreenRoom_Action02'}
BossbotCountryClubRoomName2RoomId = invertDict(BossbotCountryClubRoomId2RoomName)
BossbotCountryClubEntranceIDs = (0,)
BossbotCountryClubMiddleRoomIDs = (2, 5, 6)
BossbotCountryClubFinalRoomIDs = (18,)
BossbotCountryClubConnectorRooms = ('phase_12/models/bossbotHQ/Connector_Tunnel_A', 'phase_12/models/bossbotHQ/Connector_Tunnel_B')
CashbotMintSpecModules = {}
if not isClient():
    print 'EXECWARNING CountryClubRoomSpecs: %s' % BossbotCountryClubRoomName2RoomId
    printStack()
for roomName, roomId in BossbotCountryClubRoomName2RoomId.items():
    exec 'from toontown.coghq import %s' % roomName
    CashbotMintSpecModules[roomId] = eval(roomName)

CogSpecModules = {'BossbotCountryClubFairwayRoom_Battle00': BossbotCountryClubFairwayRoom_Battle00_Cogs,
 'BossbotCountryClubMazeRoom_Battle00': BossbotCountryClubMazeRoom_Battle00_Cogs,
 'BossbotCountryClubMazeRoom_Battle01': BossbotCountryClubMazeRoom_Battle01_Cogs,
コード例 #8
0
def getLawOfficeFloorSpecModule(floorId):
    return LawbotOfficeSpecModules[floorId]


def getCogSpecModule(floorId):
    floor = LawbotOfficeFloorId2FloorName[roomId]
    return CogSpecModules.get(floorId, NullCogs)


def getNumBattles(floorId):
    return floorId2numBattles[floorId]

LawbotOfficeFloorId2FloorName = {
    0: 'LabotOfficeFloor_01_a',
    1: 'LabotOfficeFloor_01_b' }
LawbotOfficeFloorName2FloorId = invertDict(LawbotOfficeFloorId2FloorName)
LawbotOfficeEntranceIDs = (0, 1)
LawbotOfficeFloorIDs = (0, 1)
LawbotOfficeSpecModules = { }
for (roomName, roomId) in LawbotOfficeFloorName2FloorId.items():
    exec 'from toontown.coghq import %s' % roomName
    LawbotOfficeSpecModules[roomId] = eval(roomName)

CogSpecModules = {
    'CashbotMintBoilerRoom_Battle00': LabotOfficeFloor_01a_Cogs,
    'CashbotMintBoilerRoom_Battle01': LabotOfficeFloor_01b_Cogs }
floorId2numBattles = { }
for (roomName, roomId) in LawbotOfficeFloorName2FloorId.items():
    if roomName not in CogSpecModules:
        floorId2numBattles[roomId] = 0
        continue
コード例 #9
0
    16: TeleportTotemReward,
    17: PlayingCardTier0Reward,
    18: PlayingCardTier1Reward,
    19: PlayingCardTier2Reward,
    20: PlayingCardTier3Reward,
    21: CubaTeleportReward,
    22: PortRoyalTeleportReward,
    23: PadresDelFuegoTeleportReward,
    24: KingsHeadTeleportReward,
    25: GoldAmountReward,
    26: MainStoryReward,
    27: JewelryQuestReward,
    28: TattooQuestReward,
    29: ClothingQuestReward,
    30: PistolUpgradeReward,
    31: DaggerUpgradeReward,
    32: CutlassUpgradeReward,
    33: DollUpgradeReward,
    34: WandUpgradeReward,
    35: TempDoubleRepReward,
    36: CharmReward,
    37: RavensCoveTeleportReward,
    38: CutlassItemReward,
    39: DaggerItemReward,
    40: GunItemReward,
    41: DollItemReward,
    42: GrenadeItemReward,
    43: StaffItemReward
}
Class2DBId = invertDict(DBId2Class)
コード例 #10
0

def getCogSpecModule(floorId):
    floor = LawbotOfficeFloorId2FloorName[roomId]
    return CogSpecModules.get(floorId, NullCogs)


def getNumBattles(floorId):
    return floorId2numBattles[floorId]


LawbotOfficeFloorId2FloorName = {
    0: 'LabotOfficeFloor_01_a',
    1: 'LabotOfficeFloor_01_b'
}
LawbotOfficeFloorName2FloorId = invertDict(LawbotOfficeFloorId2FloorName)
LawbotOfficeEntranceIDs = (0, 1)
LawbotOfficeFloorIDs = (0, 1)
LawbotOfficeSpecModules = {}
for roomName, roomId in LawbotOfficeFloorName2FloorId.items():
    LawbotOfficeSpecModules[roomId] = __import__('toontown.coghq.' + roomName)

CogSpecModules = {
    'CashbotMintBoilerRoom_Battle00': LabotOfficeFloor_01a_Cogs,
    'CashbotMintBoilerRoom_Battle01': LabotOfficeFloor_01b_Cogs
}
floorId2numBattles = {}
for (roomName, roomId) in LawbotOfficeFloorName2FloorId.items():
    if roomName not in CogSpecModules:
        floorId2numBattles[roomId] = 0
        continue
コード例 #11
0
    QtCore.Qt.Key_Home: "home",
    QtCore.Qt.Key_End: "end",
    QtCore.Qt.Key_Insert: "insert",
    QtCore.Qt.Key_Help: "help",
    QtCore.Qt.Key_Shift: "shift",
    QtCore.Qt.Key_Control: "control",
    QtCore.Qt.Key_Alt: "alt",
    QtCore.Qt.Key_Meta: "meta",
    QtCore.Qt.Key_CapsLock: "caps_lock",
    QtCore.Qt.Key_NumLock: "num_lock",
    QtCore.Qt.Key_ScrollLock: "scroll_lock",
    QtCore.Qt.Key_Pause: "pause",
    QtCore.Qt.Key_Menu: "menu",
}

KeyboardButtonToQtKey = invertDict(QtKeyToKeyboardButton)


def keyboardButtonFromQtKey(keycode):
    reg = ButtonRegistry.ptr()

    # First try the ascii value
    asciiValue = keycode
    if asciiValue < 256:
        button = reg.findAsciiButton(chr(asciiValue).lower())
    else:
        # Don't have a valid ascii value for this key.
        # Look up the KeyboardButton name by the key code.
        buttonName = QtKeyToKeyboardButton.get(asciiValue)
        button = reg.findButton(buttonName)
    return button
コード例 #12
0
    15: StaffReward,
    16: TeleportTotemReward,
    17: PlayingCardTier0Reward,
    18: PlayingCardTier1Reward,
    19: PlayingCardTier2Reward,
    20: PlayingCardTier3Reward,
    21: CubaTeleportReward,
    22: PortRoyalTeleportReward,
    23: PadresDelFuegoTeleportReward,
    24: KingsHeadTeleportReward,
    25: GoldAmountReward,
    26: MainStoryReward,
    27: JewelryQuestReward,
    28: TattooQuestReward,
    29: ClothingQuestReward,
    30: PistolUpgradeReward,
    31: DaggerUpgradeReward,
    32: CutlassUpgradeReward,
    33: DollUpgradeReward,
    34: WandUpgradeReward,
    35: TempDoubleRepReward,
    36: CharmReward,
    37: RavensCoveTeleportReward,
    38: CutlassItemReward,
    39: DaggerItemReward,
    40: GunItemReward,
    41: DollItemReward,
    42: GrenadeItemReward,
    43: StaffItemReward }
Class2DBId = invertDict(DBId2Class)