diff --git a/.gitattributes b/.gitattributes index 2ca17cab1..9e4fad21e 100644 --- a/.gitattributes +++ b/.gitattributes @@ -15,6 +15,7 @@ Makefile text eol=lf *.png binary *.bin binary +*.pcm binary *.h linguist-language=C *.inc linguist-language=Assembly diff --git a/.gitignore b/.gitignore index c060f2415..359d15abf 100644 --- a/.gitignore +++ b/.gitignore @@ -49,3 +49,4 @@ tools/br_ips/br_ips tools/br_ips/ips_patch types_*.taghl !.travis/calcrom/calcrom.pl +!sound/programmable_wave_samples/*.pcm diff --git a/asm/battle_2.s b/asm/battle_2.s deleted file mode 100644 index bb696b4ab..000000000 --- a/asm/battle_2.s +++ /dev/null @@ -1,13887 +0,0 @@ - .include "asm/macros.inc" - .include "constants/constants.inc" - - .syntax unified - - .text - - thumb_func_start sub_800FD9C -sub_800FD9C: @ 800FD9C - push {r4,lr} - bl MoveSaveBlocks_ResetHeap - bl AllocateBattleResources - bl AllocateBattleSpritesData - bl AllocateMonSpritesGfx - ldr r4, _0800FDCC @ =gBattleTypeFlags - ldr r0, [r4] - movs r1, 0x40 - ands r0, r1 - cmp r0, 0 - beq _0800FDD8 - bl HandleLinkBattleSetup - ldr r0, _0800FDD0 @ =sub_80109C8 - bl SetMainCallback2 - ldr r1, _0800FDD4 @ =gBattleCommunication - movs r0, 0 - strb r0, [r1] - b _0800FE1C - .align 2, 0 -_0800FDCC: .4byte gBattleTypeFlags -_0800FDD0: .4byte sub_80109C8 -_0800FDD4: .4byte gBattleCommunication -_0800FDD8: - bl sub_800FE24 - ldr r1, [r4] - movs r0, 0x2 - ands r0, r1 - cmp r0, 0 - bne _0800FE1C - movs r0, 0x8 - ands r0, r1 - cmp r0, 0 - beq _0800FE06 - movs r0, 0x1 - ands r1, r0 - cmp r1, 0 - beq _0800FDFE - movs r0, 0x19 - bl HelpSystem_SetSomeVariable2 - b _0800FE1C -_0800FDFE: - movs r0, 0x18 - bl HelpSystem_SetSomeVariable2 - b _0800FE1C -_0800FE06: - movs r0, 0x80 - ands r1, r0 - cmp r1, 0 - beq _0800FE16 - movs r0, 0x1A - bl HelpSystem_SetSomeVariable2 - b _0800FE1C -_0800FE16: - movs r0, 0x17 - bl HelpSystem_SetSomeVariable2 -_0800FE1C: - pop {r4} - pop {r0} - bx r0 - thumb_func_end sub_800FD9C - - thumb_func_start sub_800FE24 -sub_800FE24: @ 800FE24 - push {r4,r5,lr} - sub sp, 0x4 - movs r0, 0 - bl SetHBlankCallback - movs r0, 0 - bl SetVBlankCallback - movs r0, 0 - str r0, [sp] - movs r1, 0xC0 - lsls r1, 19 - ldr r2, _0800FF28 @ =0x05006000 - mov r0, sp - bl CpuSet - movs r0, 0x4C - movs r1, 0 - bl SetGpuReg - movs r0, 0x40 - movs r1, 0xF0 - bl SetGpuReg - ldr r4, _0800FF2C @ =0x00005051 - movs r0, 0x44 - adds r1, r4, 0 - bl SetGpuReg - movs r0, 0x48 - movs r1, 0 - bl SetGpuReg - movs r0, 0x4A - movs r1, 0 - bl SetGpuReg - ldr r1, _0800FF30 @ =gBattle_WIN0H - movs r0, 0xF0 - strh r0, [r1] - ldr r0, _0800FF34 @ =gBattle_WIN0V - strh r4, [r0] - bl ScanlineEffect_Clear - ldr r0, _0800FF38 @ =gScanlineEffectRegBuffers - movs r3, 0xF0 - movs r1, 0xF0 - lsls r1, 3 - adds r2, r0, r1 - movs r1, 0x4F -_0800FE88: - strh r3, [r0] - strh r3, [r2] - adds r2, 0x2 - adds r0, 0x2 - subs r1, 0x1 - cmp r1, 0 - bge _0800FE88 - movs r1, 0x50 - ldr r4, _0800FF3C @ =gUnknown_824EFE4 - ldr r0, _0800FF38 @ =gScanlineEffectRegBuffers - ldr r3, _0800FF40 @ =0x0000ff10 - movs r5, 0x82 - lsls r5, 4 - adds r2, r0, r5 - adds r0, 0xA0 -_0800FEA6: - strh r3, [r0] - strh r3, [r2] - adds r2, 0x2 - adds r0, 0x2 - adds r1, 0x1 - cmp r1, 0x9F - ble _0800FEA6 - ldr r0, [r4] - ldr r1, [r4, 0x4] - ldr r2, [r4, 0x8] - bl ScanlineEffect_SetParams - bl ResetPaletteFade - ldr r0, _0800FF44 @ =gBattle_BG0_X - movs r1, 0 - strh r1, [r0] - ldr r0, _0800FF48 @ =gBattle_BG0_Y - strh r1, [r0] - ldr r0, _0800FF4C @ =gBattle_BG1_X - strh r1, [r0] - ldr r0, _0800FF50 @ =gBattle_BG1_Y - strh r1, [r0] - ldr r0, _0800FF54 @ =gBattle_BG2_X - strh r1, [r0] - ldr r0, _0800FF58 @ =gBattle_BG2_Y - strh r1, [r0] - ldr r0, _0800FF5C @ =gBattle_BG3_X - strh r1, [r0] - ldr r0, _0800FF60 @ =gBattle_BG3_Y - strh r1, [r0] - bl sub_807FC5C - ldr r1, _0800FF64 @ =gBattleTerrain - strb r0, [r1] - bl sub_800F34C - bl LoadBattleTextboxAndBackground - bl ResetSpriteData - bl ResetTasks - bl sub_800FAE0 - bl FreeAllSpritePalettes - ldr r1, _0800FF68 @ =gReservedSpritePaletteCount - movs r0, 0x4 - strb r0, [r1] - ldr r0, _0800FF6C @ =VBlankCB_Battle - bl SetVBlankCallback - bl SetUpBattleVars - ldr r0, _0800FF70 @ =gBattleTypeFlags - ldr r0, [r0] - movs r1, 0x40 - ands r0, r1 - cmp r0, 0 - beq _0800FF78 - ldr r0, _0800FF74 @ =sub_8010BA0 - bl SetMainCallback2 - b _0800FF7E - .align 2, 0 -_0800FF28: .4byte 0x05006000 -_0800FF2C: .4byte 0x00005051 -_0800FF30: .4byte gBattle_WIN0H -_0800FF34: .4byte gBattle_WIN0V -_0800FF38: .4byte gScanlineEffectRegBuffers -_0800FF3C: .4byte gUnknown_824EFE4 -_0800FF40: .4byte 0x0000ff10 -_0800FF44: .4byte gBattle_BG0_X -_0800FF48: .4byte gBattle_BG0_Y -_0800FF4C: .4byte gBattle_BG1_X -_0800FF50: .4byte gBattle_BG1_Y -_0800FF54: .4byte gBattle_BG2_X -_0800FF58: .4byte gBattle_BG2_Y -_0800FF5C: .4byte gBattle_BG3_X -_0800FF60: .4byte gBattle_BG3_Y -_0800FF64: .4byte gBattleTerrain -_0800FF68: .4byte gReservedSpritePaletteCount -_0800FF6C: .4byte VBlankCB_Battle -_0800FF70: .4byte gBattleTypeFlags -_0800FF74: .4byte sub_8010BA0 -_0800FF78: - ldr r0, _0800FFCC @ =sub_8010508 - bl SetMainCallback2 -_0800FF7E: - ldr r0, _0800FFD0 @ =gBattleTypeFlags - ldr r0, [r0] - movs r1, 0x2 - ands r0, r1 - cmp r0, 0 - bne _0800FF98 - ldr r0, _0800FFD4 @ =gEnemyParty - ldr r1, _0800FFD8 @ =gTrainerBattleOpponent_A - ldrh r1, [r1] - bl sub_80112E0 - bl SetWildMonHeldItem -_0800FF98: - ldr r0, _0800FFDC @ =gMain - ldr r1, _0800FFE0 @ =0x00000439 - adds r0, r1 - ldrb r1, [r0] - movs r2, 0x2 - orrs r1, r2 - strb r1, [r0] - ldr r4, _0800FFE4 @ =gPlayerParty - movs r0, 0xFA - lsls r0, 1 - adds r5, r4, r0 -_0800FFAE: - adds r0, r4, 0 - movs r1, 0x3 - bl AdjustFriendship - adds r4, 0x64 - cmp r4, r5 - ble _0800FFAE - movs r1, 0 - ldr r0, _0800FFE8 @ =gBattleCommunication - strb r1, [r0] - add sp, 0x4 - pop {r4,r5} - pop {r0} - bx r0 - .align 2, 0 -_0800FFCC: .4byte sub_8010508 -_0800FFD0: .4byte gBattleTypeFlags -_0800FFD4: .4byte gEnemyParty -_0800FFD8: .4byte gTrainerBattleOpponent_A -_0800FFDC: .4byte gMain -_0800FFE0: .4byte 0x00000439 -_0800FFE4: .4byte gPlayerParty -_0800FFE8: .4byte gBattleCommunication - thumb_func_end sub_800FE24 - - thumb_func_start sub_800FFEC -sub_800FFEC: @ 800FFEC - push {r4-r7,lr} - mov r7, r10 - mov r6, r9 - mov r5, r8 - push {r5-r7} - movs r6, 0 - mov r9, r6 - movs r0, 0xCE - lsls r0, 1 - mov r10, r0 - mov r8, r6 -_08010002: - movs r0, 0x64 - mov r4, r9 - muls r4, r0 - ldr r0, _080100B0 @ =gPlayerParty - adds r4, r0 - adds r0, r4, 0 - movs r1, 0x41 - bl GetMonData - lsls r0, 16 - lsrs r5, r0, 16 - adds r0, r4, 0 - movs r1, 0x39 - bl GetMonData - lsls r0, 16 - lsrs r7, r0, 16 - adds r0, r4, 0 - movs r1, 0x37 - bl GetMonData - adds r1, r0, 0 - cmp r5, 0 - beq _0801007E - cmp r5, r10 - beq _0801004A - cmp r7, 0 - beq _0801004A - cmp r1, 0 - bne _0801004A - movs r0, 0x1 - mov r2, r8 - lsls r0, r2 - orrs r6, r0 - lsls r0, r6, 16 - lsrs r6, r0, 16 -_0801004A: - cmp r5, 0 - beq _0801007E - cmp r7, 0 - beq _08010066 - cmp r5, r10 - beq _0801005A - cmp r1, 0 - beq _08010066 -_0801005A: - movs r0, 0x2 - mov r1, r8 - lsls r0, r1 - orrs r6, r0 - lsls r0, r6, 16 - lsrs r6, r0, 16 -_08010066: - cmp r5, 0 - beq _0801007E - cmp r5, r10 - beq _0801007E - cmp r7, 0 - bne _0801007E - movs r0, 0x3 - mov r2, r8 - lsls r0, r2 - orrs r6, r0 - lsls r0, r6, 16 - lsrs r6, r0, 16 -_0801007E: - movs r0, 0x2 - add r8, r0 - movs r1, 0x1 - add r9, r1 - mov r2, r9 - cmp r2, 0x5 - ble _08010002 - ldr r1, _080100B4 @ =gBattleStruct - ldr r0, [r1] - movs r2, 0xC3 - lsls r2, 1 - adds r0, r2 - strb r6, [r0] - ldr r0, [r1] - adds r2, 0x1 - adds r1, r0, r2 - lsrs r0, r6, 8 - strb r0, [r1] - pop {r3-r5} - mov r8, r3 - mov r9, r4 - mov r10, r5 - pop {r4-r7} - pop {r0} - bx r0 - .align 2, 0 -_080100B0: .4byte gPlayerParty -_080100B4: .4byte gBattleStruct - thumb_func_end sub_800FFEC - - thumb_func_start sub_80100B8 -sub_80100B8: @ 80100B8 - push {r4-r7,lr} - ldr r0, _08010120 @ =gBattleStruct - ldr r5, [r0] - movs r0, 0xC4 - lsls r0, 1 - adds r4, r5, r0 - bl IsEnigmaBerryValid - cmp r0, 0x1 - bne _08010134 - movs r2, 0 - ldr r7, _08010124 @ =gSaveBlock1Ptr - movs r1, 0xC8 - lsls r1, 1 - adds r5, r1 - adds r6, r7, 0 - ldr r3, _08010128 @ =0x000030ec -_080100DA: - adds r0, r4, r2 - ldr r1, [r6] - adds r1, r3 - adds r1, r2 - ldrb r1, [r1] - strb r1, [r0] - adds r2, 0x1 - cmp r2, 0x5 - ble _080100DA - adds r1, r4, r2 - movs r0, 0xFF - strb r0, [r1] - movs r2, 0 - adds r3, r5, 0 - ldr r6, _08010124 @ =gSaveBlock1Ptr - ldr r5, _0801012C @ =0x00003108 -_080100FA: - adds r0, r3, r2 - ldr r1, [r6] - adds r1, r5 - adds r1, r2 - ldrb r1, [r1] - strb r1, [r0] - adds r2, 0x1 - cmp r2, 0x11 - ble _080100FA - ldr r0, [r7] - ldr r1, _08010130 @ =0x0000311a - adds r0, r1 - ldrb r0, [r0] - strb r0, [r4, 0x7] - ldr r0, [r7] - adds r1, 0x1 - adds r0, r1 - ldrb r0, [r0] - b _08010174 - .align 2, 0 -_08010120: .4byte gBattleStruct -_08010124: .4byte gSaveBlock1Ptr -_08010128: .4byte 0x000030ec -_0801012C: .4byte 0x00003108 -_08010130: .4byte 0x0000311a -_08010134: - movs r0, 0xAF - bl ItemIdToBerryType - lsls r0, 24 - lsrs r0, 24 - bl sub_809C8A0 - adds r3, r0, 0 - movs r2, 0 - movs r0, 0xC8 - lsls r0, 1 - adds r5, r0 -_0801014C: - adds r0, r4, r2 - adds r1, r3, r2 - ldrb r1, [r1] - strb r1, [r0] - adds r2, 0x1 - cmp r2, 0x5 - ble _0801014C - adds r1, r4, r2 - movs r0, 0xFF - strb r0, [r1] - adds r0, r5, 0 - movs r2, 0 - adds r1, r0, 0 - adds r1, 0x11 -_08010168: - strb r2, [r1] - subs r1, 0x1 - cmp r1, r0 - bge _08010168 - movs r0, 0 - strb r0, [r4, 0x7] -_08010174: - strb r0, [r4, 0x1A] - pop {r4-r7} - pop {r0} - bx r0 - thumb_func_end sub_80100B8 - - thumb_func_start sub_801017C -sub_801017C: @ 801017C - push {r4-r7,lr} - mov r7, r10 - mov r6, r9 - mov r5, r8 - push {r5-r7} - ldr r0, _08010234 @ =gBattleTypeFlags - ldr r1, [r0] - movs r0, 0x2 - ands r0, r1 - cmp r0, 0 - beq _08010194 - b _080102C0 -_08010194: - bl IsEnigmaBerryValid - cmp r0, 0x1 - bne _08010250 - movs r5, 0 - ldr r3, _08010238 @ =gEnigmaBerries - ldr r0, _0801023C @ =gSaveBlock1Ptr - mov r8, r0 - adds r6, r3, 0 - mov r4, r8 - ldr r2, _08010240 @ =0x000030ec - adds r7, r3, 0 - adds r7, 0x38 -_080101AE: - adds r1, r5, r6 - ldr r0, [r4] - adds r0, r2 - adds r0, r5 - ldrb r0, [r0] - strb r0, [r1] - adds r1, r5, r7 - ldr r0, [r4] - adds r0, r2 - adds r0, r5 - ldrb r0, [r0] - strb r0, [r1] - adds r5, 0x1 - cmp r5, 0x5 - ble _080101AE - adds r1, r5, r3 - movs r0, 0xFF - strb r0, [r1] - adds r0, r3, 0 - adds r0, 0x38 - adds r0, r5, r0 - movs r1, 0x1 - negs r1, r1 - strb r1, [r0] - movs r5, 0 - adds r7, r3, 0 - adds r7, 0x8 - ldr r4, _0801023C @ =gSaveBlock1Ptr - ldr r2, _08010244 @ =0x00003108 - adds r6, r3, 0 - adds r6, 0x40 -_080101EC: - adds r1, r5, r7 - ldr r0, [r4] - adds r0, r2 - adds r0, r5 - ldrb r0, [r0] - strb r0, [r1] - adds r1, r5, r6 - ldr r0, [r4] - adds r0, r2 - adds r0, r5 - ldrb r0, [r0] - strb r0, [r1] - adds r5, 0x1 - cmp r5, 0x11 - ble _080101EC - mov r1, r8 - ldr r0, [r1] - ldr r2, _08010248 @ =0x0000311a - adds r0, r2 - ldrb r1, [r0] - strb r1, [r3, 0x7] - ldrb r0, [r0] - adds r1, r3, 0 - adds r1, 0x3F - strb r0, [r1] - mov r4, r8 - ldr r0, [r4] - ldr r1, _0801024C @ =0x0000311b - adds r0, r1 - ldrb r1, [r0] - strb r1, [r3, 0x1A] - ldrb r1, [r0] - adds r0, r3, 0 - adds r0, 0x52 - strb r1, [r0] - b _080103FC - .align 2, 0 -_08010234: .4byte gBattleTypeFlags -_08010238: .4byte gEnigmaBerries -_0801023C: .4byte gSaveBlock1Ptr -_08010240: .4byte 0x000030ec -_08010244: .4byte 0x00003108 -_08010248: .4byte 0x0000311a -_0801024C: .4byte 0x0000311b -_08010250: - movs r0, 0xAF - bl ItemIdToBerryType - lsls r0, 24 - lsrs r0, 24 - bl sub_809C8A0 - adds r6, r0, 0 - movs r5, 0 - ldr r4, _080102BC @ =gEnigmaBerries - adds r7, r4, 0 - adds r7, 0x38 - adds r3, r4, 0 -_0801026A: - adds r1, r5, r4 - adds r2, r6, r5 - ldrb r0, [r2] - strb r0, [r1] - adds r1, r5, r7 - ldrb r0, [r2] - strb r0, [r1] - adds r5, 0x1 - cmp r5, 0x5 - ble _0801026A - adds r1, r5, r3 - movs r0, 0xFF - strb r0, [r1] - adds r0, r3, 0 - adds r0, 0x38 - adds r0, r5, r0 - movs r1, 0x1 - negs r1, r1 - strb r1, [r0] - movs r5, 0 - adds r4, r3, 0 - adds r4, 0x8 - movs r1, 0 - adds r2, r3, 0 - adds r2, 0x40 -_0801029C: - adds r0, r5, r4 - strb r1, [r0] - adds r0, r5, r2 - strb r1, [r0] - adds r5, 0x1 - cmp r5, 0x11 - ble _0801029C - movs r1, 0 - strb r1, [r3, 0x7] - adds r0, r3, 0 - adds r0, 0x3F - strb r1, [r0] - strb r1, [r3, 0x1A] - adds r0, 0x13 - strb r1, [r0] - b _080103FC - .align 2, 0 -_080102BC: .4byte gEnigmaBerries -_080102C0: - movs r0, 0x40 - ands r1, r0 - cmp r1, 0 - beq _0801034C - movs r5, 0 - ldr r3, _08010340 @ =gEnigmaBerries - ldr r2, _08010344 @ =gLinkPlayers - mov r9, r2 - adds r6, r3, 0 - movs r4, 0x8 - adds r4, r6 - mov r8, r4 -_080102D8: - lsls r0, r5, 8 - ldr r1, _08010348 @ =gBlockRecvBuffer + 4 - adds r7, r0, r1 - lsls r0, r5, 3 - subs r0, r5 - lsls r0, 2 - add r0, r9 - ldrb r3, [r0, 0x18] - movs r4, 0 - adds r5, 0x1 - mov r10, r5 - lsls r1, r3, 3 - subs r0, r1, r3 - adds r5, r1, 0 - lsls r0, 2 - adds r1, r0, r6 -_080102F8: - adds r0, r7, r4 - ldrb r0, [r0] - strb r0, [r1] - adds r1, 0x1 - adds r4, 0x1 - cmp r4, 0x5 - ble _080102F8 - subs r0, r5, r3 - lsls r0, 2 - adds r1, r4, r0 - adds r1, r6 - movs r2, 0xFF - strb r2, [r1] - movs r4, 0 - mov r2, r8 - adds r1, r0, r2 - adds r2, r7, 0 - adds r2, 0x8 -_0801031C: - adds r0, r2, r4 - ldrb r0, [r0] - strb r0, [r1] - adds r1, 0x1 - adds r4, 0x1 - cmp r4, 0x11 - ble _0801031C - subs r0, r5, r3 - lsls r0, 2 - adds r0, r6 - ldrb r1, [r7, 0x7] - strb r1, [r0, 0x7] - ldrb r1, [r7, 0x1A] - strb r1, [r0, 0x1A] - mov r5, r10 - cmp r5, 0x3 - ble _080102D8 - b _080103FC - .align 2, 0 -_08010340: .4byte gEnigmaBerries -_08010344: .4byte gLinkPlayers -_08010348: .4byte gBlockRecvBuffer + 4 -_0801034C: - movs r5, 0 - ldr r4, _0801040C @ =gEnigmaBerries - mov r9, r4 -_08010352: - lsls r0, r5, 8 - ldr r1, _08010410 @ =gBlockRecvBuffer + 4 - adds r7, r0, r1 - movs r4, 0 - adds r2, r5, 0x1 - mov r10, r2 - lsls r0, r5, 3 - mov r8, r0 - adds r1, r5, 0x2 - mov r12, r1 - subs r1, r0, r5 - mov r2, r12 - lsls r0, r2, 3 - subs r0, r2 - lsls r0, 2 - mov r2, r9 - adds r3, r0, r2 - lsls r1, 2 - adds r2, r1, r2 -_08010378: - adds r0, r7, r4 - ldrb r1, [r0] - strb r1, [r2] - ldrb r0, [r0] - strb r0, [r3] - adds r3, 0x1 - adds r2, 0x1 - adds r4, 0x1 - cmp r4, 0x5 - ble _08010378 - mov r0, r8 - subs r3, r0, r5 - lsls r3, 2 - adds r1, r4, r3 - add r1, r9 - ldrb r0, [r1] - movs r2, 0xFF - orrs r0, r2 - strb r0, [r1] - mov r0, r12 - lsls r2, r0, 3 - subs r2, r0 - lsls r2, 2 - adds r1, r4, r2 - add r1, r9 - ldrb r0, [r1] - movs r4, 0xFF - orrs r0, r4 - strb r0, [r1] - movs r4, 0 - ldr r0, _0801040C @ =gEnigmaBerries - adds r0, 0x8 - adds r2, r0 - adds r3, r0 - adds r6, r7, 0 - adds r6, 0x8 -_080103C0: - adds r0, r6, r4 - ldrb r1, [r0] - strb r1, [r3] - ldrb r0, [r0] - strb r0, [r2] - adds r2, 0x1 - adds r3, 0x1 - adds r4, 0x1 - cmp r4, 0x11 - ble _080103C0 - mov r0, r8 - subs r2, r0, r5 - lsls r2, 2 - add r2, r9 - ldrb r0, [r7, 0x7] - strb r0, [r2, 0x7] - mov r1, r12 - lsls r0, r1, 3 - subs r0, r1 - lsls r0, 2 - add r0, r9 - ldrb r1, [r7, 0x7] - strb r1, [r0, 0x7] - ldrb r1, [r7, 0x1A] - strb r1, [r2, 0x1A] - ldrb r1, [r7, 0x1A] - strb r1, [r0, 0x1A] - mov r5, r10 - cmp r5, 0x1 - ble _08010352 -_080103FC: - pop {r3-r5} - mov r8, r3 - mov r9, r4 - mov r10, r5 - pop {r4-r7} - pop {r0} - bx r0 - .align 2, 0 -_0801040C: .4byte gEnigmaBerries -_08010410: .4byte gBlockRecvBuffer + 4 - thumb_func_end sub_801017C - - thumb_func_start sub_8010414 -sub_8010414: @ 8010414 - push {r4-r7,lr} - mov r7, r8 - push {r7} - lsls r0, 24 - lsrs r4, r0, 24 - lsls r1, 24 - lsrs r3, r1, 24 - movs r6, 0 - ldr r0, _08010440 @ =gBlockRecvBuffer - ldrh r2, [r0] - movs r1, 0x80 - lsls r1, 1 - mov r12, r0 - cmp r2, r1 - bne _08010458 - cmp r3, 0 - bne _08010448 - ldr r0, _08010444 @ =gBattleTypeFlags - ldr r1, [r0] - movs r2, 0xC - b _0801044E - .align 2, 0 -_08010440: .4byte gBlockRecvBuffer -_08010444: .4byte gBattleTypeFlags -_08010448: - ldr r0, _0801048C @ =gBattleTypeFlags - ldr r1, [r0] - movs r2, 0x8 -_0801044E: - orrs r1, r2 - str r1, [r0] - adds r0, r6, 0x1 - lsls r0, 24 - lsrs r6, r0, 24 -_08010458: - cmp r6, 0 - bne _080104FC - movs r2, 0 - cmp r2, r4 - bge _0801047C - ldr r1, _08010490 @ =gBlockRecvBuffer - mov r8, r1 - movs r5, 0x80 - lsls r5, 1 -_0801046A: - adds r1, r5 - adds r2, 0x1 - cmp r2, r4 - bge _0801047C - mov r7, r8 - ldrh r0, [r7] - ldrh r7, [r1] - cmp r0, r7 - beq _0801046A -_0801047C: - cmp r2, r4 - bne _080104A4 - cmp r3, 0 - bne _08010494 - ldr r0, _0801048C @ =gBattleTypeFlags - ldr r1, [r0] - movs r2, 0xC - b _0801049A - .align 2, 0 -_0801048C: .4byte gBattleTypeFlags -_08010490: .4byte gBlockRecvBuffer -_08010494: - ldr r0, _080104EC @ =gBattleTypeFlags - ldr r1, [r0] - movs r2, 0x8 -_0801049A: - orrs r1, r2 - str r1, [r0] - adds r0, r6, 0x1 - lsls r0, 24 - lsrs r6, r0, 24 -_080104A4: - cmp r6, 0 - bne _080104FC - movs r2, 0 - ldr r5, _080104EC @ =gBattleTypeFlags - cmp r2, r4 - bge _080104E2 - mov r0, r12 - ldrh r1, [r0] - ldr r0, _080104F0 @ =0x00000201 - cmp r1, r0 - beq _080104DA -_080104BA: - lsls r0, r2, 8 - add r0, r12 - ldrh r0, [r0] - ldr r1, _080104F0 @ =0x00000201 - cmp r0, r1 - bls _080104CA - cmp r2, r3 - bne _080104E2 -_080104CA: - adds r2, 0x1 - cmp r2, r4 - bge _080104E2 - lsls r0, r2, 8 - add r0, r12 - ldrh r0, [r0] - cmp r0, r1 - bne _080104BA -_080104DA: - cmp r2, r3 - beq _080104BA - cmp r2, r3 - bge _080104BA -_080104E2: - cmp r2, r4 - bne _080104F4 - ldr r0, [r5] - movs r1, 0xC - b _080104F8 - .align 2, 0 -_080104EC: .4byte gBattleTypeFlags -_080104F0: .4byte 0x00000201 -_080104F4: - ldr r0, [r5] - movs r1, 0x8 -_080104F8: - orrs r0, r1 - str r0, [r5] -_080104FC: - pop {r3} - mov r8, r3 - pop {r4-r7} - pop {r0} - bx r0 - thumb_func_end sub_8010414 - - thumb_func_start sub_8010508 -sub_8010508: @ 8010508 - push {r4-r6,lr} - bl RunTasks - bl AnimateSprites - bl BuildOamBuffer - bl GetMultiplayerId - lsls r0, 24 - lsrs r4, r0, 24 - ldr r0, _08010540 @ =gBattleStruct - ldr r0, [r0] - adds r0, 0xB5 - strb r4, [r0] - movs r0, 0x1 - adds r5, r4, 0 - eors r5, r0 - ldr r0, _08010544 @ =gBattleCommunication - ldrb r0, [r0] - cmp r0, 0x10 - bls _08010536 - b _080108B8 -_08010536: - lsls r0, 2 - ldr r1, _08010548 @ =_0801054C - adds r0, r1 - ldr r0, [r0] - mov pc, r0 - .align 2, 0 -_08010540: .4byte gBattleStruct -_08010544: .4byte gBattleCommunication -_08010548: .4byte _0801054C - .align 2, 0 -_0801054C: - .4byte _08010590 - .4byte _080105D4 - .4byte _08010670 - .4byte _080106F4 - .4byte _0801071C - .4byte _08010898 - .4byte _080108A4 - .4byte _0801074C - .4byte _08010774 - .4byte _08010898 - .4byte _080108A4 - .4byte _080107A4 - .4byte _080107CC - .4byte _08010898 - .4byte _080108A4 - .4byte _08010834 - .4byte _0801084C -_08010590: - bl IsDma3ManagerBusyWithBgCopy - lsls r0, 24 - cmp r0, 0 - bne _080105BC - movs r0, 0 - bl ShowBg - movs r0, 0x1 - bl ShowBg - movs r0, 0x2 - bl ShowBg - movs r0, 0x3 - bl ShowBg - bl sub_80357C8 - ldr r1, _080105CC @ =gBattleCommunication - movs r0, 0x1 - strb r0, [r1] -_080105BC: - ldr r0, _080105D0 @ =gWirelessCommType - ldrb r0, [r0] - cmp r0, 0 - bne _080105C6 - b _080108B8 -_080105C6: - bl LoadWirelessStatusIndicatorSpriteGfx - b _080108B8 - .align 2, 0 -_080105CC: .4byte gBattleCommunication -_080105D0: .4byte gWirelessCommType -_080105D4: - ldr r2, _08010640 @ =gBattleTypeFlags - ldr r1, [r2] - movs r6, 0x2 - adds r0, r1, 0 - ands r0, r6 - cmp r0, 0 - beq _08010658 - ldr r0, _08010644 @ =gReceivedRemoteLinkPlayers - ldrb r0, [r0] - cmp r0, 0 - bne _080105EC - b _080108B8 -_080105EC: - bl IsLinkTaskFinished - lsls r0, 24 - cmp r0, 0 - beq _0801062A - ldr r4, _08010648 @ =gBattleStruct - ldr r0, [r4] - movs r5, 0xC2 - lsls r5, 1 - adds r0, r5 - movs r1, 0x1 - strb r1, [r0] - ldr r0, [r4] - ldr r1, _0801064C @ =0x00000185 - adds r0, r1 - strb r6, [r0] - bl sub_800FFEC - bl sub_80100B8 - bl bitmask_all_link_players_but_self - lsls r0, 24 - lsrs r0, 24 - ldr r1, [r4] - adds r1, r5 - movs r2, 0x20 - bl SendBlock - ldr r0, _08010650 @ =gBattleCommunication - strb r6, [r0] -_0801062A: - ldr r0, _08010654 @ =gWirelessCommType - ldrb r0, [r0] - cmp r0, 0 - bne _08010634 - b _080108B8 -_08010634: - movs r0, 0 - movs r1, 0 - bl CreateWirelessStatusIndicatorSprite - b _080108B8 - .align 2, 0 -_08010640: .4byte gBattleTypeFlags -_08010644: .4byte gReceivedRemoteLinkPlayers -_08010648: .4byte gBattleStruct -_0801064C: .4byte 0x00000185 -_08010650: .4byte gBattleCommunication -_08010654: .4byte gWirelessCommType -_08010658: - movs r0, 0x4 - orrs r1, r0 - str r1, [r2] - ldr r1, _0801066C @ =gBattleCommunication - movs r0, 0xF - strb r0, [r1] - bl sub_801017C - b _080108B8 - .align 2, 0 -_0801066C: .4byte gBattleCommunication -_08010670: - bl GetBlockReceivedStatus - movs r1, 0x3 - ands r1, r0 - cmp r1, 0x3 - beq _0801067E - b _080108B8 -_0801067E: - bl ResetBlockReceivedFlags - movs r0, 0x2 - adds r1, r4, 0 - bl sub_8010414 - bl sub_801017C - ldr r0, _080106E0 @ =sub_800F6FC - movs r1, 0 - bl CreateTask - lsls r0, 24 - lsrs r0, 24 - ldr r1, _080106E4 @ =gTasks - lsls r2, r0, 2 - adds r2, r0 - lsls r2, 3 - adds r2, r1 - movs r1, 0 - movs r0, 0x87 - lsls r0, 1 - strh r0, [r2, 0xA] - movs r0, 0x5A - strh r0, [r2, 0xC] - strh r1, [r2, 0x12] - ldr r0, _080106E8 @ =gBattleStruct - ldr r3, [r0] - movs r4, 0xC3 - lsls r4, 1 - adds r0, r3, r4 - ldrb r1, [r0] - adds r4, 0x1 - adds r0, r3, r4 - ldrb r0, [r0] - lsls r0, 8 - orrs r1, r0 - strh r1, [r2, 0xE] - ldr r0, _080106EC @ =gBlockRecvBuffer - lsls r1, r5, 8 - adds r0, 0x2 - adds r1, r0 - ldrh r0, [r1] - strh r0, [r2, 0x10] - bl SetDeoxysStats - ldr r1, _080106F0 @ =gBattleCommunication - b _080108B2 - .align 2, 0 -_080106E0: .4byte sub_800F6FC -_080106E4: .4byte gTasks -_080106E8: .4byte gBattleStruct -_080106EC: .4byte gBlockRecvBuffer -_080106F0: .4byte gBattleCommunication -_080106F4: - bl IsLinkTaskFinished - lsls r0, 24 - cmp r0, 0 - bne _08010700 - b _080108B8 -_08010700: - bl bitmask_all_link_players_but_self - lsls r0, 24 - lsrs r0, 24 - ldr r1, _08010714 @ =gPlayerParty - movs r2, 0xC8 - bl SendBlock - ldr r1, _08010718 @ =gBattleCommunication - b _080108B2 - .align 2, 0 -_08010714: .4byte gPlayerParty -_08010718: .4byte gBattleCommunication -_0801071C: - bl GetBlockReceivedStatus - movs r1, 0x3 - ands r1, r0 - cmp r1, 0x3 - beq _0801072A - b _080108B8 -_0801072A: - bl ResetBlockReceivedFlags - ldr r0, _08010740 @ =gEnemyParty - lsls r1, r5, 8 - ldr r2, _08010744 @ =gBlockRecvBuffer - adds r1, r2 - movs r2, 0xC8 - bl memcpy - ldr r1, _08010748 @ =gBattleCommunication - b _080108B2 - .align 2, 0 -_08010740: .4byte gEnemyParty -_08010744: .4byte gBlockRecvBuffer -_08010748: .4byte gBattleCommunication -_0801074C: - bl IsLinkTaskFinished - lsls r0, 24 - cmp r0, 0 - bne _08010758 - b _080108B8 -_08010758: - bl bitmask_all_link_players_but_self - lsls r0, 24 - lsrs r0, 24 - ldr r1, _0801076C @ =gUnknown_202434C - movs r2, 0xC8 - bl SendBlock - ldr r1, _08010770 @ =gBattleCommunication - b _080108B2 - .align 2, 0 -_0801076C: .4byte gUnknown_202434C -_08010770: .4byte gBattleCommunication -_08010774: - bl GetBlockReceivedStatus - movs r1, 0x3 - ands r1, r0 - cmp r1, 0x3 - beq _08010782 - b _080108B8 -_08010782: - bl ResetBlockReceivedFlags - ldr r0, _08010798 @ =gUnknown_20240F4 - lsls r1, r5, 8 - ldr r2, _0801079C @ =gBlockRecvBuffer - adds r1, r2 - movs r2, 0xC8 - bl memcpy - ldr r1, _080107A0 @ =gBattleCommunication - b _080108B2 - .align 2, 0 -_08010798: .4byte gUnknown_20240F4 -_0801079C: .4byte gBlockRecvBuffer -_080107A0: .4byte gBattleCommunication -_080107A4: - bl IsLinkTaskFinished - lsls r0, 24 - cmp r0, 0 - bne _080107B0 - b _080108B8 -_080107B0: - bl bitmask_all_link_players_but_self - lsls r0, 24 - lsrs r0, 24 - ldr r1, _080107C4 @ =gUnknown_2024414 - movs r2, 0xC8 - bl SendBlock - ldr r1, _080107C8 @ =gBattleCommunication - b _080108B2 - .align 2, 0 -_080107C4: .4byte gUnknown_2024414 -_080107C8: .4byte gBattleCommunication -_080107CC: - bl GetBlockReceivedStatus - movs r1, 0x3 - ands r1, r0 - cmp r1, 0x3 - bne _080108B8 - bl ResetBlockReceivedFlags - ldr r4, _08010820 @ =gUnknown_20241BC - lsls r1, r5, 8 - ldr r0, _08010824 @ =gBlockRecvBuffer - adds r1, r0 - adds r0, r4, 0 - movs r2, 0xC8 - bl memcpy - ldr r1, _08010828 @ =0xfffffe70 - adds r0, r4, r1 - bl sub_8011D0C - ldr r1, _0801082C @ =0xfffffed4 - adds r0, r4, r1 - bl sub_8011D0C - adds r0, r4, 0 - subs r0, 0xC8 - bl sub_8011D0C - adds r0, r4, 0 - subs r0, 0x64 - bl sub_8011D0C - adds r0, r4, 0 - bl sub_8011D0C - adds r0, r4, 0 - adds r0, 0x64 - bl sub_8011D0C - ldr r1, _08010830 @ =gBattleCommunication - b _080108B2 - .align 2, 0 -_08010820: .4byte gUnknown_20241BC -_08010824: .4byte gBlockRecvBuffer -_08010828: .4byte 0xfffffe70 -_0801082C: .4byte 0xfffffed4 -_08010830: .4byte gBattleCommunication -_08010834: - bl sub_800D30C - ldr r0, _08010848 @ =gBattleCommunication - ldrb r1, [r0] - adds r1, 0x1 - movs r2, 0 - strb r1, [r0] - strb r2, [r0, 0x1] - strb r2, [r0, 0x2] - b _080108B8 - .align 2, 0 -_08010848: .4byte gBattleCommunication -_0801084C: - ldr r0, _08010880 @ =gUnknown_2023E83 - adds r1, r0, 0x1 - bl BattleInitAllSprites - lsls r0, 24 - cmp r0, 0 - beq _080108B8 - ldr r2, _08010884 @ =gPreBattleCallback1 - ldr r1, _08010888 @ =gMain - ldr r0, [r1] - str r0, [r2] - ldr r0, _0801088C @ =sub_80123E4 - str r0, [r1] - ldr r0, _08010890 @ =BattleMainCB2 - bl SetMainCallback2 - ldr r2, _08010894 @ =gBattleTypeFlags - ldr r1, [r2] - movs r0, 0x2 - ands r0, r1 - cmp r0, 0 - beq _080108B8 - movs r0, 0x20 - orrs r1, r0 - str r1, [r2] - b _080108B8 - .align 2, 0 -_08010880: .4byte gUnknown_2023E83 -_08010884: .4byte gPreBattleCallback1 -_08010888: .4byte gMain -_0801088C: .4byte sub_80123E4 -_08010890: .4byte BattleMainCB2 -_08010894: .4byte gBattleTypeFlags -_08010898: - ldr r0, _080108C0 @ =gBattleCommunication - ldrb r1, [r0] - adds r1, 0x1 - strb r1, [r0] - movs r1, 0x1 - strb r1, [r0, 0x1] -_080108A4: - ldr r1, _080108C0 @ =gBattleCommunication - ldrb r0, [r1, 0x1] - subs r0, 0x1 - strb r0, [r1, 0x1] - lsls r0, 24 - cmp r0, 0 - bne _080108B8 -_080108B2: - ldrb r0, [r1] - adds r0, 0x1 - strb r0, [r1] -_080108B8: - pop {r4-r6} - pop {r0} - bx r0 - .align 2, 0 -_080108C0: .4byte gBattleCommunication - thumb_func_end sub_8010508 - - thumb_func_start sub_80108C4 -sub_80108C4: @ 80108C4 - push {r4-r7,lr} - mov r7, r10 - mov r6, r9 - mov r5, r8 - push {r5-r7} - movs r0, 0 - mov r8, r0 - ldr r1, _080109BC @ =gUnknown_2022B58 - mov r9, r1 - movs r0, 0x18 - add r0, r9 - mov r10, r0 -_080108DC: - movs r0, 0x64 - mov r4, r8 - muls r4, r0 - ldr r0, _080109C0 @ =gPlayerParty - adds r4, r0 - adds r0, r4, 0 - movs r1, 0xB - bl GetMonData - mov r1, r8 - lsls r5, r1, 5 - mov r1, r9 - adds r6, r5, r1 - strh r0, [r6] - adds r0, r4, 0 - movs r1, 0xC - bl GetMonData - strh r0, [r6, 0x2] - mov r0, r9 - adds r0, 0x4 - adds r7, r5, r0 - adds r0, r4, 0 - movs r1, 0x2 - adds r2, r7, 0 - bl GetMonData - adds r0, r4, 0 - movs r1, 0x38 - bl GetMonData - strb r0, [r6, 0xF] - adds r0, r4, 0 - movs r1, 0x39 - bl GetMonData - strh r0, [r6, 0x10] - adds r0, r4, 0 - movs r1, 0x3A - bl GetMonData - strh r0, [r6, 0x12] - adds r0, r4, 0 - movs r1, 0x37 - bl GetMonData - mov r1, r9 - adds r1, 0x14 - adds r1, r5, r1 - str r0, [r1] - adds r0, r4, 0 - movs r1, 0 - bl GetMonData - add r5, r10 - str r0, [r5] - adds r0, r4, 0 - bl GetMonGender - strb r0, [r6, 0x1C] - adds r0, r7, 0 - bl StripExtCtrlCodes - adds r0, r4, 0 - movs r1, 0x3 - bl GetMonData - mov r4, r8 - adds r4, 0x1 - cmp r0, 0x1 - beq _08010994 - adds r2, r7, 0 - movs r1, 0 - ldrb r0, [r2] - cmp r0, 0xFF - beq _0801097E -_08010974: - adds r1, 0x1 - adds r0, r2, r1 - ldrb r0, [r0] - cmp r0, 0xFF - bne _08010974 -_0801097E: - cmp r1, 0x5 - bgt _0801098E - movs r3, 0 -_08010984: - adds r0, r2, r1 - strb r3, [r0] - adds r1, 0x1 - cmp r1, 0x5 - ble _08010984 -_0801098E: - adds r1, r2, r1 - movs r0, 0xFF - strb r0, [r1] -_08010994: - mov r8, r4 - cmp r4, 0x2 - ble _080108DC - ldr r0, _080109C4 @ =gBattleStruct - ldr r0, [r0] - movs r1, 0xC2 - lsls r1, 1 - adds r0, r1 - ldr r1, _080109BC @ =gUnknown_2022B58 - movs r2, 0x60 - bl memcpy - pop {r3-r5} - mov r8, r3 - mov r9, r4 - mov r10, r5 - pop {r4-r7} - pop {r0} - bx r0 - .align 2, 0 -_080109BC: .4byte gUnknown_2022B58 -_080109C0: .4byte gPlayerParty -_080109C4: .4byte gBattleStruct - thumb_func_end sub_80108C4 - - thumb_func_start sub_80109C8 -sub_80109C8: @ 80109C8 - push {r4-r7,lr} - mov r7, r9 - mov r6, r8 - push {r6,r7} - bl GetMultiplayerId - lsls r0, 24 - lsrs r6, r0, 24 - ldr r4, _08010A0C @ =gBattleStruct - ldr r0, [r4] - adds r0, 0xB5 - strb r6, [r0] - ldr r0, [r4] - movs r1, 0xB0 - adds r1, r0 - mov r9, r1 - adds r0, 0xAE - mov r8, r0 - bl RunTasks - bl AnimateSprites - bl BuildOamBuffer - ldr r5, _08010A10 @ =gBattleCommunication - ldrb r0, [r5] - cmp r0, 0x1 - beq _08010A5C - cmp r0, 0x1 - bgt _08010A14 - cmp r0, 0 - beq _08010A20 - b _08010B82 - .align 2, 0 -_08010A0C: .4byte gBattleStruct -_08010A10: .4byte gBattleCommunication -_08010A14: - cmp r0, 0x2 - beq _08010AFC - cmp r0, 0x3 - bne _08010A1E - b _08010B2A -_08010A1E: - b _08010B82 -_08010A20: - ldr r0, _08010A58 @ =gReceivedRemoteLinkPlayers - ldrb r0, [r0] - cmp r0, 0 - bne _08010A2A - b _08010B82 -_08010A2A: - bl IsLinkTaskFinished - lsls r0, 24 - cmp r0, 0 - bne _08010A36 - b _08010B82 -_08010A36: - bl sub_80108C4 - bl bitmask_all_link_players_but_self - lsls r0, 24 - lsrs r0, 24 - ldr r1, [r4] - movs r2, 0xC2 - lsls r2, 1 - adds r1, r2 - movs r2, 0x60 - bl SendBlock - ldrb r0, [r5] - adds r0, 0x1 - strb r0, [r5] - b _08010B82 - .align 2, 0 -_08010A58: .4byte gReceivedRemoteLinkPlayers -_08010A5C: - bl GetBlockReceivedStatus - movs r1, 0xF - ands r1, r0 - cmp r1, 0xF - beq _08010A6A - b _08010B82 -_08010A6A: - bl ResetBlockReceivedFlags - movs r4, 0 - lsls r0, r6, 3 - subs r0, r6 - lsls r5, r0, 2 - movs r7, 0 -_08010A78: - cmp r4, r6 - beq _08010ABA - ldr r2, _08010A9C @ =gLinkPlayers - adds r0, r7, r2 - ldrh r1, [r0, 0x18] - movs r3, 0x1 - adds r0, r3, 0 - ands r0, r1 - cmp r0, 0 - bne _08010AA0 - adds r0, r5, r2 - ldrh r1, [r0, 0x18] - adds r0, r3, 0 - ands r0, r1 - cmp r0, 0 - beq _08010AAC - b _08010ABA - .align 2, 0 -_08010A9C: .4byte gLinkPlayers -_08010AA0: - adds r0, r5, r2 - ldrh r1, [r0, 0x18] - adds r0, r3, 0 - ands r0, r1 - cmp r0, 0 - beq _08010ABA -_08010AAC: - lsls r1, r4, 8 - ldr r0, _08010AE4 @ =gBlockRecvBuffer - adds r1, r0 - ldr r0, _08010AE8 @ =gUnknown_2022B58 - movs r2, 0x60 - bl memcpy -_08010ABA: - adds r7, 0x1C - adds r4, 0x1 - cmp r4, 0x3 - ble _08010A78 - ldr r1, _08010AEC @ =gBattleCommunication - ldrb r0, [r1] - adds r0, 0x1 - strb r0, [r1] - ldr r1, _08010AF0 @ =gMain - ldr r0, [r1, 0x8] - mov r2, r9 - str r0, [r2] - ldr r0, _08010AF4 @ =gBattleTypeFlags - ldr r0, [r0] - mov r2, r8 - strh r0, [r2] - ldr r0, _08010AF8 @ =sub_80109C8 - str r0, [r1, 0x8] - bl sub_8128198 - b _08010B82 - .align 2, 0 -_08010AE4: .4byte gBlockRecvBuffer -_08010AE8: .4byte gUnknown_2022B58 -_08010AEC: .4byte gBattleCommunication -_08010AF0: .4byte gMain -_08010AF4: .4byte gBattleTypeFlags -_08010AF8: .4byte sub_80109C8 -_08010AFC: - ldr r0, _08010B1C @ =gPaletteFade - ldrb r1, [r0, 0x7] - movs r0, 0x80 - ands r0, r1 - cmp r0, 0 - bne _08010B82 - movs r0, 0x3 - strb r0, [r5] - ldr r0, _08010B20 @ =gWirelessCommType - ldrb r0, [r0] - cmp r0, 0 - beq _08010B24 - bl sub_800AB9C - b _08010B82 - .align 2, 0 -_08010B1C: .4byte gPaletteFade -_08010B20: .4byte gWirelessCommType -_08010B24: - bl sub_800AAC0 - b _08010B82 -_08010B2A: - ldr r0, _08010B54 @ =gWirelessCommType - ldrb r0, [r0] - cmp r0, 0 - beq _08010B64 - bl IsRfuTaskFinished - lsls r0, 24 - cmp r0, 0 - beq _08010B82 - ldr r1, _08010B58 @ =gBattleTypeFlags - mov r2, r8 - ldrh r0, [r2] - str r0, [r1] - ldr r1, _08010B5C @ =gMain - mov r2, r9 - ldr r0, [r2] - str r0, [r1, 0x8] - ldr r0, _08010B60 @ =sub_800FE24 - bl SetMainCallback2 - b _08010B82 - .align 2, 0 -_08010B54: .4byte gWirelessCommType -_08010B58: .4byte gBattleTypeFlags -_08010B5C: .4byte gMain -_08010B60: .4byte sub_800FE24 -_08010B64: - ldr r0, _08010B90 @ =gReceivedRemoteLinkPlayers - ldrb r0, [r0] - cmp r0, 0 - bne _08010B82 - ldr r1, _08010B94 @ =gBattleTypeFlags - mov r2, r8 - ldrh r0, [r2] - str r0, [r1] - ldr r1, _08010B98 @ =gMain - mov r2, r9 - ldr r0, [r2] - str r0, [r1, 0x8] - ldr r0, _08010B9C @ =sub_800FE24 - bl SetMainCallback2 -_08010B82: - pop {r3,r4} - mov r8, r3 - mov r9, r4 - pop {r4-r7} - pop {r0} - bx r0 - .align 2, 0 -_08010B90: .4byte gReceivedRemoteLinkPlayers -_08010B94: .4byte gBattleTypeFlags -_08010B98: .4byte gMain -_08010B9C: .4byte sub_800FE24 - thumb_func_end sub_80109C8 - - thumb_func_start sub_8010BA0 -sub_8010BA0: @ 8010BA0 - push {r4-r7,lr} - mov r7, r8 - push {r7} - bl GetMultiplayerId - lsls r0, 24 - lsrs r7, r0, 24 - ldr r0, _08010BD8 @ =gBattleStruct - ldr r0, [r0] - adds r0, 0xB5 - strb r7, [r0] - bl RunTasks - bl AnimateSprites - bl BuildOamBuffer - ldr r0, _08010BDC @ =gBattleCommunication - ldrb r0, [r0] - cmp r0, 0xC - bls _08010BCC - b _080110F0 -_08010BCC: - lsls r0, 2 - ldr r1, _08010BE0 @ =_08010BE4 - adds r0, r1 - ldr r0, [r0] - mov pc, r0 - .align 2, 0 -_08010BD8: .4byte gBattleStruct -_08010BDC: .4byte gBattleCommunication -_08010BE0: .4byte _08010BE4 - .align 2, 0 -_08010BE4: - .4byte _08010C18 - .4byte _08010C5C - .4byte _08010CD4 - .4byte _08010DB6 - .4byte _08010DE0 - .4byte _080110D0 - .4byte _080110DC - .4byte _08010ED8 - .4byte _08010F00 - .4byte _080110D0 - .4byte _080110DC - .4byte _0801106C - .4byte _08011084 -_08010C18: - bl IsDma3ManagerBusyWithBgCopy - lsls r0, 24 - cmp r0, 0 - bne _08010C44 - movs r0, 0 - bl ShowBg - movs r0, 0x1 - bl ShowBg - movs r0, 0x2 - bl ShowBg - movs r0, 0x3 - bl ShowBg - bl sub_80357C8 - ldr r1, _08010C54 @ =gBattleCommunication - movs r0, 0x1 - strb r0, [r1] -_08010C44: - ldr r0, _08010C58 @ =gWirelessCommType - ldrb r0, [r0] - cmp r0, 0 - bne _08010C4E - b _080110F0 -_08010C4E: - bl LoadWirelessStatusIndicatorSpriteGfx - b _080110F0 - .align 2, 0 -_08010C54: .4byte gBattleCommunication -_08010C58: .4byte gWirelessCommType -_08010C5C: - ldr r0, _08010CC0 @ =gReceivedRemoteLinkPlayers - ldrb r0, [r0] - cmp r0, 0 - bne _08010C66 - b _080110F0 -_08010C66: - bl IsLinkTaskFinished - lsls r0, 24 - cmp r0, 0 - beq _08010CAA - ldr r4, _08010CC4 @ =gBattleStruct - ldr r0, [r4] - movs r5, 0xC2 - lsls r5, 1 - adds r0, r5 - movs r1, 0x1 - strb r1, [r0] - ldr r0, [r4] - ldr r2, _08010CC8 @ =0x00000185 - adds r1, r0, r2 - movs r0, 0x2 - strb r0, [r1] - bl sub_800FFEC - bl sub_80100B8 - bl bitmask_all_link_players_but_self - lsls r0, 24 - lsrs r0, 24 - ldr r1, [r4] - adds r1, r5 - movs r2, 0x20 - bl SendBlock - ldr r1, _08010CCC @ =gBattleCommunication - ldrb r0, [r1] - adds r0, 0x1 - strb r0, [r1] -_08010CAA: - ldr r0, _08010CD0 @ =gWirelessCommType - ldrb r0, [r0] - cmp r0, 0 - bne _08010CB4 - b _080110F0 -_08010CB4: - movs r0, 0 - movs r1, 0 - bl CreateWirelessStatusIndicatorSprite - b _080110F0 - .align 2, 0 -_08010CC0: .4byte gReceivedRemoteLinkPlayers -_08010CC4: .4byte gBattleStruct -_08010CC8: .4byte 0x00000185 -_08010CCC: .4byte gBattleCommunication -_08010CD0: .4byte gWirelessCommType -_08010CD4: - bl GetBlockReceivedStatus - movs r1, 0xF - ands r1, r0 - cmp r1, 0xF - beq _08010CE2 - b _080110F0 -_08010CE2: - bl ResetBlockReceivedFlags - movs r0, 0x4 - adds r1, r7, 0 - bl sub_8010414 - bl sub_801017C - bl SetDeoxysStats - ldr r0, _08010D4C @ =gDecompressionBuffer - ldr r1, _08010D50 @ =gPlayerParty - movs r2, 0x96 - lsls r2, 1 - bl memcpy - ldr r0, _08010D54 @ =sub_800F6FC - movs r1, 0 - bl CreateTask - lsls r0, 24 - lsrs r0, 24 - ldr r2, _08010D58 @ =gTasks - lsls r1, r0, 2 - adds r1, r0 - lsls r1, 3 - adds r1, r2 - movs r2, 0 - movs r0, 0x87 - lsls r0, 1 - strh r0, [r1, 0xA] - movs r0, 0x5A - strh r0, [r1, 0xC] - strh r2, [r1, 0x12] - strh r2, [r1, 0xE] - strh r2, [r1, 0x10] - adds r2, r1, 0 - ldr r0, _08010D5C @ =gBlockRecvBuffer - adds r3, r0, 0x2 - ldr r5, _08010D60 @ =gLinkPlayers - movs r4, 0x3F - movs r7, 0x80 - lsls r7, 1 - movs r6, 0x3 -_08010D3A: - ldrh r0, [r5, 0x18] - cmp r0, 0x1 - beq _08010D76 - cmp r0, 0x1 - bgt _08010D64 - cmp r0, 0 - beq _08010D6E - b _08010D9C - .align 2, 0 -_08010D4C: .4byte gDecompressionBuffer -_08010D50: .4byte gPlayerParty -_08010D54: .4byte sub_800F6FC -_08010D58: .4byte gTasks -_08010D5C: .4byte gBlockRecvBuffer -_08010D60: .4byte gLinkPlayers -_08010D64: - cmp r0, 0x2 - beq _08010D7E - cmp r0, 0x3 - beq _08010D8E - b _08010D9C -_08010D6E: - ldrh r0, [r3] - adds r1, r4, 0 - ands r1, r0 - b _08010D86 -_08010D76: - ldrh r0, [r3] - adds r1, r4, 0 - ands r1, r0 - b _08010D96 -_08010D7E: - ldrh r0, [r3] - adds r1, r4, 0 - ands r1, r0 - lsls r1, 6 -_08010D86: - ldrh r0, [r2, 0xE] - orrs r1, r0 - strh r1, [r2, 0xE] - b _08010D9C -_08010D8E: - ldrh r0, [r3] - adds r1, r4, 0 - ands r1, r0 - lsls r1, 6 -_08010D96: - ldrh r0, [r2, 0x10] - orrs r1, r0 - strh r1, [r2, 0x10] -_08010D9C: - adds r3, r7 - adds r5, 0x1C - subs r6, 0x1 - cmp r6, 0 - bge _08010D3A - bl ZeroPlayerPartyMons - bl ZeroEnemyPartyMons - ldr r1, _08010DD8 @ =gBattleCommunication - ldrb r0, [r1] - adds r0, 0x1 - strb r0, [r1] -_08010DB6: - bl IsLinkTaskFinished - lsls r0, 24 - cmp r0, 0 - bne _08010DC2 - b _080110F0 -_08010DC2: - bl bitmask_all_link_players_but_self - lsls r0, 24 - lsrs r0, 24 - ldr r1, _08010DDC @ =gDecompressionBuffer - movs r2, 0xC8 - bl SendBlock - ldr r1, _08010DD8 @ =gBattleCommunication - b _080110EA - .align 2, 0 -_08010DD8: .4byte gBattleCommunication -_08010DDC: .4byte gDecompressionBuffer -_08010DE0: - bl GetBlockReceivedStatus - movs r1, 0xF - ands r1, r0 - cmp r1, 0xF - beq _08010DEE - b _080110F0 -_08010DEE: - bl ResetBlockReceivedFlags - movs r6, 0 - lsls r0, r7, 3 - subs r0, r7 - lsls r0, 2 - mov r8, r0 - ldr r4, _08010E18 @ =gBlockRecvBuffer - movs r5, 0 -_08010E00: - cmp r6, r7 - bne _08010E34 - ldr r0, _08010E1C @ =gLinkPlayers - adds r0, r5, r0 - ldrh r0, [r0, 0x18] - cmp r0, 0x2 - bgt _08010E20 - cmp r0, 0x1 - bge _08010E2C - cmp r0, 0 - beq _08010E24 - b _08010EBE - .align 2, 0 -_08010E18: .4byte gBlockRecvBuffer -_08010E1C: .4byte gLinkPlayers -_08010E20: - cmp r0, 0x3 - bne _08010EBE -_08010E24: - ldr r0, _08010E28 @ =gPlayerParty - b _08010EA4 - .align 2, 0 -_08010E28: .4byte gPlayerParty -_08010E2C: - ldr r0, _08010E30 @ =gUnknown_20243B0 - b _08010EA4 - .align 2, 0 -_08010E30: .4byte gUnknown_20243B0 -_08010E34: - ldr r2, _08010E54 @ =gLinkPlayers - adds r0, r5, r2 - ldrh r1, [r0, 0x18] - movs r3, 0x1 - adds r0, r3, 0 - ands r0, r1 - cmp r0, 0 - bne _08010E58 - mov r1, r8 - adds r0, r1, r2 - ldrh r1, [r0, 0x18] - adds r0, r3, 0 - ands r0, r1 - cmp r0, 0 - beq _08010E66 - b _08010E8C - .align 2, 0 -_08010E54: .4byte gLinkPlayers -_08010E58: - mov r1, r8 - adds r0, r1, r2 - ldrh r1, [r0, 0x18] - adds r0, r3, 0 - ands r0, r1 - cmp r0, 0 - beq _08010E8C -_08010E66: - adds r0, r5, r2 - ldrh r2, [r0, 0x18] - cmp r2, 0x2 - bgt _08010E78 - cmp r2, 0x1 - bge _08010E84 - cmp r2, 0 - beq _08010E7C - b _08010EBE -_08010E78: - cmp r2, 0x3 - bne _08010EBE -_08010E7C: - ldr r0, _08010E80 @ =gPlayerParty - b _08010EA4 - .align 2, 0 -_08010E80: .4byte gPlayerParty -_08010E84: - ldr r0, _08010E88 @ =gUnknown_20243B0 - b _08010EA4 - .align 2, 0 -_08010E88: .4byte gUnknown_20243B0 -_08010E8C: - adds r0, r5, r2 - ldrh r2, [r0, 0x18] - cmp r2, 0x2 - bgt _08010E9E - cmp r2, 0x1 - bge _08010EB4 - cmp r2, 0 - beq _08010EA2 - b _08010EBE -_08010E9E: - cmp r2, 0x3 - bne _08010EBE -_08010EA2: - ldr r0, _08010EB0 @ =gEnemyParty -_08010EA4: - adds r1, r4, 0 - movs r2, 0xC8 - bl memcpy - b _08010EBE - .align 2, 0 -_08010EB0: .4byte gEnemyParty -_08010EB4: - ldr r0, _08010ED0 @ =gUnknown_2024158 - adds r1, r4, 0 - movs r2, 0xC8 - bl memcpy -_08010EBE: - movs r2, 0x80 - lsls r2, 1 - adds r4, r2 - adds r5, 0x1C - adds r6, 0x1 - cmp r6, 0x3 - ble _08010E00 - ldr r1, _08010ED4 @ =gBattleCommunication - b _080110EA - .align 2, 0 -_08010ED0: .4byte gUnknown_2024158 -_08010ED4: .4byte gBattleCommunication -_08010ED8: - bl IsLinkTaskFinished - lsls r0, 24 - cmp r0, 0 - bne _08010EE4 - b _080110F0 -_08010EE4: - bl bitmask_all_link_players_but_self - lsls r0, 24 - lsrs r0, 24 - ldr r1, _08010EF8 @ =gDecompressionBuffer + 0x0C8 - movs r2, 0x64 - bl SendBlock - ldr r1, _08010EFC @ =gBattleCommunication - b _080110EA - .align 2, 0 -_08010EF8: .4byte gDecompressionBuffer + 0x0C8 -_08010EFC: .4byte gBattleCommunication -_08010F00: - bl GetBlockReceivedStatus - movs r1, 0xF - ands r1, r0 - cmp r1, 0xF - beq _08010F0E - b _080110F0 -_08010F0E: - bl ResetBlockReceivedFlags - movs r6, 0 - lsls r0, r7, 3 - subs r0, r7 - lsls r0, 2 - mov r8, r0 - ldr r4, _08010F38 @ =gBlockRecvBuffer - movs r5, 0 -_08010F20: - cmp r6, r7 - bne _08010F54 - ldr r0, _08010F3C @ =gLinkPlayers - adds r0, r5, r0 - ldrh r0, [r0, 0x18] - cmp r0, 0x2 - bgt _08010F40 - cmp r0, 0x1 - bge _08010F4C - cmp r0, 0 - beq _08010F44 - b _08010FDE - .align 2, 0 -_08010F38: .4byte gBlockRecvBuffer -_08010F3C: .4byte gLinkPlayers -_08010F40: - cmp r0, 0x3 - bne _08010FDE -_08010F44: - ldr r0, _08010F48 @ =gUnknown_202434C - b _08010FC4 - .align 2, 0 -_08010F48: .4byte gUnknown_202434C -_08010F4C: - ldr r0, _08010F50 @ =gUnknown_2024478 - b _08010FC4 - .align 2, 0 -_08010F50: .4byte gUnknown_2024478 -_08010F54: - ldr r2, _08010F74 @ =gLinkPlayers - adds r0, r5, r2 - ldrh r1, [r0, 0x18] - movs r3, 0x1 - adds r0, r3, 0 - ands r0, r1 - cmp r0, 0 - bne _08010F78 - mov r1, r8 - adds r0, r1, r2 - ldrh r1, [r0, 0x18] - adds r0, r3, 0 - ands r0, r1 - cmp r0, 0 - beq _08010F86 - b _08010FAC - .align 2, 0 -_08010F74: .4byte gLinkPlayers -_08010F78: - mov r1, r8 - adds r0, r1, r2 - ldrh r1, [r0, 0x18] - adds r0, r3, 0 - ands r0, r1 - cmp r0, 0 - beq _08010FAC -_08010F86: - adds r0, r5, r2 - ldrh r2, [r0, 0x18] - cmp r2, 0x2 - bgt _08010F98 - cmp r2, 0x1 - bge _08010FA4 - cmp r2, 0 - beq _08010F9C - b _08010FDE -_08010F98: - cmp r2, 0x3 - bne _08010FDE -_08010F9C: - ldr r0, _08010FA0 @ =gUnknown_202434C - b _08010FC4 - .align 2, 0 -_08010FA0: .4byte gUnknown_202434C -_08010FA4: - ldr r0, _08010FA8 @ =gUnknown_2024478 - b _08010FC4 - .align 2, 0 -_08010FA8: .4byte gUnknown_2024478 -_08010FAC: - adds r0, r5, r2 - ldrh r2, [r0, 0x18] - cmp r2, 0x2 - bgt _08010FBE - cmp r2, 0x1 - bge _08010FD4 - cmp r2, 0 - beq _08010FC2 - b _08010FDE -_08010FBE: - cmp r2, 0x3 - bne _08010FDE -_08010FC2: - ldr r0, _08010FD0 @ =gUnknown_20240F4 -_08010FC4: - adds r1, r4, 0 - movs r2, 0x64 - bl memcpy - b _08010FDE - .align 2, 0 -_08010FD0: .4byte gUnknown_20240F4 -_08010FD4: - ldr r0, _0801105C @ =gUnknown_2024220 - adds r1, r4, 0 - movs r2, 0x64 - bl memcpy -_08010FDE: - movs r2, 0x80 - lsls r2, 1 - adds r4, r2 - adds r5, 0x1C - adds r6, 0x1 - cmp r6, 0x3 - ble _08010F20 - ldr r4, _08011060 @ =gPlayerParty - adds r0, r4, 0 - bl sub_8011D0C - adds r0, r4, 0 - adds r0, 0x64 - bl sub_8011D0C - adds r0, r4, 0 - adds r0, 0xC8 - bl sub_8011D0C - movs r1, 0x96 - lsls r1, 1 - adds r0, r4, r1 - bl sub_8011D0C - movs r2, 0xC8 - lsls r2, 1 - adds r0, r4, r2 - bl sub_8011D0C - movs r1, 0xFA - lsls r1, 1 - adds r0, r4, r1 - bl sub_8011D0C - ldr r4, _08011064 @ =gEnemyParty - adds r0, r4, 0 - bl sub_8011D0C - adds r0, r4, 0 - adds r0, 0x64 - bl sub_8011D0C - adds r0, r4, 0 - adds r0, 0xC8 - bl sub_8011D0C - movs r2, 0x96 - lsls r2, 1 - adds r0, r4, r2 - bl sub_8011D0C - movs r1, 0xC8 - lsls r1, 1 - adds r0, r4, r1 - bl sub_8011D0C - movs r2, 0xFA - lsls r2, 1 - adds r0, r4, r2 - bl sub_8011D0C - ldr r1, _08011068 @ =gBattleCommunication - b _080110EA - .align 2, 0 -_0801105C: .4byte gUnknown_2024220 -_08011060: .4byte gPlayerParty -_08011064: .4byte gEnemyParty -_08011068: .4byte gBattleCommunication -_0801106C: - bl sub_800D30C - ldr r0, _08011080 @ =gBattleCommunication - ldrb r1, [r0] - adds r1, 0x1 - movs r2, 0 - strb r1, [r0] - strb r2, [r0, 0x1] - strb r2, [r0, 0x2] - b _080110F0 - .align 2, 0 -_08011080: .4byte gBattleCommunication -_08011084: - ldr r0, _080110B8 @ =gUnknown_2023E83 - adds r1, r0, 0x1 - bl BattleInitAllSprites - lsls r0, 24 - cmp r0, 0 - beq _080110F0 - ldr r2, _080110BC @ =gPreBattleCallback1 - ldr r1, _080110C0 @ =gMain - ldr r0, [r1] - str r0, [r2] - ldr r0, _080110C4 @ =sub_80123E4 - str r0, [r1] - ldr r0, _080110C8 @ =BattleMainCB2 - bl SetMainCallback2 - ldr r2, _080110CC @ =gBattleTypeFlags - ldr r1, [r2] - movs r0, 0x2 - ands r0, r1 - cmp r0, 0 - beq _080110F0 - movs r0, 0x20 - orrs r1, r0 - str r1, [r2] - b _080110F0 - .align 2, 0 -_080110B8: .4byte gUnknown_2023E83 -_080110BC: .4byte gPreBattleCallback1 -_080110C0: .4byte gMain -_080110C4: .4byte sub_80123E4 -_080110C8: .4byte BattleMainCB2 -_080110CC: .4byte gBattleTypeFlags -_080110D0: - ldr r0, _080110FC @ =gBattleCommunication - ldrb r1, [r0] - adds r1, 0x1 - strb r1, [r0] - movs r1, 0x1 - strb r1, [r0, 0x1] -_080110DC: - ldr r1, _080110FC @ =gBattleCommunication - ldrb r0, [r1, 0x1] - subs r0, 0x1 - strb r0, [r1, 0x1] - lsls r0, 24 - cmp r0, 0 - bne _080110F0 -_080110EA: - ldrb r0, [r1] - adds r0, 0x1 - strb r0, [r1] -_080110F0: - pop {r3} - mov r8, r3 - pop {r4-r7} - pop {r0} - bx r0 - .align 2, 0 -_080110FC: .4byte gBattleCommunication - thumb_func_end sub_8010BA0 - - thumb_func_start BattleMainCB2 -BattleMainCB2: @ 8011100 - push {lr} - sub sp, 0x4 - bl AnimateSprites - bl BuildOamBuffer - bl RunTextPrinters - bl UpdatePaletteFade - bl RunTasks - ldr r0, _08011160 @ =gMain - ldrh r1, [r0, 0x2C] - movs r0, 0x2 - ands r0, r1 - cmp r0, 0 - beq _08011158 - ldr r0, _08011164 @ =gBattleTypeFlags - ldr r0, [r0] - movs r1, 0x80 - lsls r1, 9 - ands r0, r1 - cmp r0, 0 - beq _08011158 - ldr r2, _08011168 @ =gSpecialVar_Result - ldr r1, _0801116C @ =gBattleOutcome - movs r0, 0x3 - strb r0, [r1] - movs r0, 0x3 - strh r0, [r2] - bl ResetPaletteFadeControl - movs r0, 0x1 - negs r0, r0 - movs r1, 0 - str r1, [sp] - movs r2, 0 - movs r3, 0x10 - bl BeginNormalPaletteFade - ldr r0, _08011170 @ =CB2_QuitRecordedBattle - bl SetMainCallback2 -_08011158: - add sp, 0x4 - pop {r0} - bx r0 - .align 2, 0 -_08011160: .4byte gMain -_08011164: .4byte gBattleTypeFlags -_08011168: .4byte gSpecialVar_Result -_0801116C: .4byte gBattleOutcome -_08011170: .4byte CB2_QuitRecordedBattle - thumb_func_end BattleMainCB2 - - thumb_func_start FreeRestoreBattleData -FreeRestoreBattleData: @ 8011174 - push {lr} - ldr r1, _080111AC @ =gMain - ldr r0, _080111B0 @ =gPreBattleCallback1 - ldr r0, [r0] - str r0, [r1] - ldr r2, _080111B4 @ =gScanlineEffect - movs r0, 0x3 - strb r0, [r2, 0x15] - ldr r0, _080111B8 @ =0x00000439 - adds r1, r0 - ldrb r2, [r1] - movs r0, 0x3 - negs r0, r0 - ands r0, r2 - strb r0, [r1] - bl ZeroEnemyPartyMons - movs r0, 0x53 - bl m4aSongNumStop - bl FreeMonSpritesGfx - bl FreeBattleSpritesData - bl FreeBattleResources - pop {r0} - bx r0 - .align 2, 0 -_080111AC: .4byte gMain -_080111B0: .4byte gPreBattleCallback1 -_080111B4: .4byte gScanlineEffect -_080111B8: .4byte 0x00000439 - thumb_func_end FreeRestoreBattleData - - thumb_func_start CB2_QuitRecordedBattle -CB2_QuitRecordedBattle: @ 80111BC - push {lr} - bl UpdatePaletteFade - ldr r0, _080111E4 @ =gPaletteFade - ldrb r1, [r0, 0x7] - movs r0, 0x80 - ands r0, r1 - cmp r0, 0 - bne _080111DE - bl FreeRestoreBattleData - bl FreeAllWindowBuffers - ldr r0, _080111E8 @ =gMain - ldr r0, [r0, 0x8] - bl SetMainCallback2 -_080111DE: - pop {r0} - bx r0 - .align 2, 0 -_080111E4: .4byte gPaletteFade -_080111E8: .4byte gMain - thumb_func_end CB2_QuitRecordedBattle - - thumb_func_start sub_80111EC -sub_80111EC: @ 80111EC - movs r1, 0 - strh r1, [r0, 0x2E] - ldr r1, _080111F8 @ =sub_80111FC - str r1, [r0, 0x1C] - bx lr - .align 2, 0 -_080111F8: .4byte sub_80111FC - thumb_func_end sub_80111EC - - thumb_func_start sub_80111FC -sub_80111FC: @ 80111FC - push {r4-r7,lr} - adds r5, r0, 0 - movs r0, 0x2E - ldrsh r6, [r5, r0] - cmp r6, 0x1 - beq _08011236 - cmp r6, 0x1 - bgt _08011212 - cmp r6, 0 - beq _08011218 - b _080112D0 -_08011212: - cmp r6, 0x2 - beq _080112A0 - b _080112D0 -_08011218: - ldr r4, _08011298 @ =gUnknown_2022BC0 - movs r0, 0x80 - lsls r0, 5 - bl AllocZeroed - str r0, [r4] - ldrh r0, [r5, 0x2E] - adds r0, 0x1 - strh r0, [r5, 0x2E] - strh r6, [r5, 0x30] - ldr r0, _0801129C @ =0x00000281 - strh r0, [r5, 0x32] - strh r6, [r5, 0x34] - movs r0, 0x1 - strh r0, [r5, 0x36] -_08011236: - ldrh r0, [r5, 0x36] - subs r0, 0x1 - strh r0, [r5, 0x36] - lsls r0, 16 - cmp r0, 0 - bne _080112D0 - movs r0, 0x2 - strh r0, [r5, 0x36] - movs r1, 0x30 - ldrsh r2, [r5, r1] - movs r3, 0x34 - ldrsh r0, [r5, r3] - lsls r0, 5 - adds r2, r0 - movs r3, 0x32 - ldrsh r1, [r5, r3] - subs r1, r0 - movs r3, 0 - ldr r0, _08011298 @ =gUnknown_2022BC0 - mov r12, r0 - lsls r7, r2, 1 - movs r4, 0x3D - lsls r6, r1, 1 -_08011264: - mov r1, r12 - ldr r0, [r1] - lsls r2, r3, 1 - adds r1, r7, r0 - adds r1, r2, r1 - strh r4, [r1] - adds r0, r6, r0 - adds r2, r0 - strh r4, [r2] - adds r3, 0x2 - cmp r3, 0x1D - ble _08011264 - ldrh r0, [r5, 0x34] - adds r0, 0x1 - strh r0, [r5, 0x34] - lsls r0, 16 - asrs r0, 16 - cmp r0, 0x15 - bne _080112D0 - ldrh r0, [r5, 0x2E] - adds r0, 0x1 - strh r0, [r5, 0x2E] - movs r0, 0x20 - strh r0, [r5, 0x30] - b _080112D0 - .align 2, 0 -_08011298: .4byte gUnknown_2022BC0 -_0801129C: .4byte 0x00000281 -_080112A0: - ldrh r0, [r5, 0x30] - subs r0, 0x1 - strh r0, [r5, 0x30] - lsls r0, 16 - asrs r0, 16 - cmp r0, 0x14 - bne _080112D0 - ldr r4, _080112D8 @ =gUnknown_2022BC0 - ldr r0, [r4] - cmp r0, 0 - beq _080112CA - movs r2, 0x80 - lsls r2, 5 - movs r1, 0 - bl memset - ldr r0, [r4] - bl Free - movs r0, 0 - str r0, [r4] -_080112CA: - ldr r0, _080112DC @ =sub_800FD9C - bl SetMainCallback2 -_080112D0: - pop {r4-r7} - pop {r0} - bx r0 - .align 2, 0 -_080112D8: .4byte gUnknown_2022BC0 -_080112DC: .4byte sub_800FD9C - thumb_func_end sub_80111FC - - thumb_func_start sub_80112E0 -sub_80112E0: @ 80112E0 - push {r4-r7,lr} - mov r7, r10 - mov r6, r9 - mov r5, r8 - push {r5-r7} - sub sp, 0x24 - str r0, [sp, 0x10] - lsls r1, 16 - lsrs r1, 16 - str r1, [sp, 0x14] - movs r0, 0 - mov r9, r0 - movs r0, 0x80 - lsls r0, 3 - cmp r1, r0 - bne _08011304 - movs r0, 0 - b _080116AC -_08011304: - ldr r0, _08011334 @ =gBattleTypeFlags - ldr r0, [r0] - ldr r1, _08011338 @ =0x00080908 - ands r0, r1 - ldr r1, [sp, 0x14] - lsls r1, 2 - str r1, [sp, 0x20] - cmp r0, 0x8 - beq _08011318 - b _0801169C -_08011318: - bl ZeroEnemyPartyMons - movs r2, 0 - str r2, [sp, 0x18] - ldr r2, _0801133C @ =gTrainers - ldr r1, [sp, 0x20] - ldr r3, [sp, 0x14] - adds r0, r1, r3 - lsls r0, 3 - adds r0, r2 - adds r0, 0x20 - ldr r4, [sp, 0x18] - b _0801167E - .align 2, 0 -_08011334: .4byte gBattleTypeFlags -_08011338: .4byte 0x00080908 -_0801133C: .4byte gTrainers -_08011340: - ldr r3, [sp, 0x14] - adds r0, r1, r3 - lsls r0, 3 - adds r1, r0, r2 - ldrb r0, [r1, 0x18] - cmp r0, 0x1 - bne _08011354 - movs r4, 0x80 - mov r10, r4 - b _08011366 -_08011354: - ldrb r1, [r1, 0x2] - movs r0, 0x80 - ands r0, r1 - movs r1, 0x88 - mov r10, r1 - cmp r0, 0 - beq _08011366 - movs r2, 0x78 - mov r10, r2 -_08011366: - movs r6, 0 - ldr r0, _080113BC @ =gTrainers - ldr r2, [sp, 0x20] - ldr r3, [sp, 0x14] - adds r1, r2, r3 - lsls r1, 3 - adds r3, r0, 0x4 - adds r1, r3 - ldrb r1, [r1] - adds r4, r0, 0 - ldr r0, [sp, 0x18] - adds r0, 0x1 - str r0, [sp, 0x1C] - cmp r1, 0xFF - beq _0801139E -_08011384: - ldr r0, [sp, 0x14] - adds r1, r2, r0 - lsls r1, 3 - adds r0, r6, r1 - adds r0, r3 - ldrb r0, [r0] - add r9, r0 - adds r6, 0x1 - adds r1, r6, r1 - adds r1, r3 - ldrb r0, [r1] - cmp r0, 0xFF - bne _08011384 -_0801139E: - adds r2, r4, 0 - ldr r1, [sp, 0x20] - ldr r3, [sp, 0x14] - adds r0, r1, r3 - lsls r1, r0, 3 - adds r0, r1, r2 - ldrb r0, [r0] - cmp r0, 0x1 - beq _08011454 - cmp r0, 0x1 - bgt _080113C0 - cmp r0, 0 - beq _080113CE - b _0801166C - .align 2, 0 -_080113BC: .4byte gTrainers -_080113C0: - cmp r0, 0x2 - bne _080113C6 - b _08011514 -_080113C6: - cmp r0, 0x3 - bne _080113CC - b _080115A8 -_080113CC: - b _0801166C -_080113CE: - adds r0, r2, 0 - adds r0, 0x24 - adds r0, r1, r0 - ldr r4, [r0] - movs r6, 0 - ldr r0, [sp, 0x18] - lsls r2, r0, 3 - adds r0, r2, r4 - ldrh r1, [r0, 0x4] - movs r0, 0xB - muls r0, r1 - ldr r1, _08011450 @ =gSpeciesNames - adds r0, r1 - ldrb r0, [r0] - adds r5, r2, 0 - cmp r0, 0xFF - beq _08011410 - adds r3, r1, 0 - movs r7, 0xB -_080113F4: - adds r0, r2, r4 - ldrh r0, [r0, 0x4] - adds r1, r0, 0 - muls r1, r7 - adds r0, r6, r1 - adds r0, r3 - ldrb r0, [r0] - add r9, r0 - adds r6, 0x1 - adds r1, r6, r1 - adds r1, r3 - ldrb r0, [r1] - cmp r0, 0xFF - bne _080113F4 -_08011410: - mov r2, r9 - lsls r0, r2, 8 - add r10, r0 - adds r4, r5, r4 - ldrh r1, [r4] - lsls r0, r1, 5 - subs r0, r1 - movs r1, 0xFF - bl __divsi3 - lsls r0, 24 - lsrs r6, r0, 24 - ldr r3, [sp, 0x18] - movs r1, 0x64 - adds r0, r3, 0 - muls r0, r1 - ldr r2, [sp, 0x10] - adds r0, r2, r0 - ldrh r1, [r4, 0x4] - ldrb r2, [r4, 0x2] - movs r3, 0x1 - str r3, [sp] - mov r3, r10 - str r3, [sp, 0x4] - movs r3, 0x2 - str r3, [sp, 0x8] - movs r3, 0 - str r3, [sp, 0xC] - adds r3, r6, 0 - bl CreateMon - b _0801166C - .align 2, 0 -_08011450: .4byte gSpeciesNames -_08011454: - adds r0, r2, 0 - adds r0, 0x24 - adds r0, r1, r0 - ldr r7, [r0] - movs r6, 0 - ldr r4, [sp, 0x18] - lsls r2, r4, 4 - adds r0, r2, r7 - ldrh r1, [r0, 0x4] - movs r0, 0xB - muls r0, r1 - ldr r1, _0801150C @ =gSpeciesNames - adds r0, r1 - ldrb r0, [r0] - mov r8, r2 - cmp r0, 0xFF - beq _08011496 - adds r3, r1, 0 - movs r4, 0xB -_0801147A: - adds r0, r2, r7 - ldrh r0, [r0, 0x4] - adds r1, r0, 0 - muls r1, r4 - adds r0, r6, r1 - adds r0, r3 - ldrb r0, [r0] - add r9, r0 - adds r6, 0x1 - adds r1, r6, r1 - adds r1, r3 - ldrb r0, [r1] - cmp r0, 0xFF - bne _0801147A -_08011496: - mov r2, r9 - lsls r0, r2, 8 - add r10, r0 - mov r3, r8 - adds r4, r3, r7 - ldrh r1, [r4] - lsls r0, r1, 5 - subs r0, r1 - movs r1, 0xFF - bl __divsi3 - lsls r0, 24 - lsrs r6, r0, 24 - ldr r0, [sp, 0x18] - movs r1, 0x64 - adds r5, r0, 0 - muls r5, r1 - ldr r2, [sp, 0x10] - adds r5, r2, r5 - ldrh r1, [r4, 0x4] - ldrb r2, [r4, 0x2] - movs r0, 0x1 - str r0, [sp] - mov r3, r10 - str r3, [sp, 0x4] - movs r0, 0x2 - str r0, [sp, 0x8] - movs r0, 0 - str r0, [sp, 0xC] - adds r0, r5, 0 - adds r3, r6, 0 - bl CreateMon - movs r6, 0 - mov r0, r8 - adds r0, 0x6 - adds r4, r7, r0 -_080114E0: - adds r1, r6, 0 - adds r1, 0xD - adds r0, r5, 0 - adds r2, r4, 0 - bl SetMonData - adds r1, r6, 0 - adds r1, 0x11 - ldrh r0, [r4] - lsls r2, r0, 1 - adds r2, r0 - lsls r2, 2 - ldr r0, _08011510 @ =gBattleMoves+0x4 - adds r2, r0 - adds r0, r5, 0 - bl SetMonData - adds r4, 0x2 - adds r6, 0x1 - cmp r6, 0x3 - ble _080114E0 - b _0801166C - .align 2, 0 -_0801150C: .4byte gSpeciesNames -_08011510: .4byte gBattleMoves+0x4 -_08011514: - adds r0, r2, 0 - adds r0, 0x24 - adds r0, r1, r0 - ldr r4, [r0] - movs r6, 0 - ldr r0, [sp, 0x18] - lsls r2, r0, 3 - adds r0, r2, r4 - ldrh r1, [r0, 0x4] - movs r0, 0xB - muls r0, r1 - ldr r1, _080115A4 @ =gSpeciesNames - adds r0, r1 - ldrb r0, [r0] - adds r5, r2, 0 - cmp r0, 0xFF - beq _08011556 - adds r3, r1, 0 - movs r7, 0xB -_0801153A: - adds r0, r2, r4 - ldrh r0, [r0, 0x4] - adds r1, r0, 0 - muls r1, r7 - adds r0, r6, r1 - adds r0, r3 - ldrb r0, [r0] - add r9, r0 - adds r6, 0x1 - adds r1, r6, r1 - adds r1, r3 - ldrb r0, [r1] - cmp r0, 0xFF - bne _0801153A -_08011556: - mov r2, r9 - lsls r0, r2, 8 - add r10, r0 - adds r5, r4 - ldrh r1, [r5] - lsls r0, r1, 5 - subs r0, r1 - movs r1, 0xFF - bl __divsi3 - lsls r0, 24 - lsrs r6, r0, 24 - ldr r3, [sp, 0x18] - movs r0, 0x64 - adds r4, r3, 0 - muls r4, r0 - ldr r1, [sp, 0x10] - adds r4, r1, r4 - ldrh r1, [r5, 0x4] - ldrb r2, [r5, 0x2] - movs r0, 0x1 - str r0, [sp] - mov r3, r10 - str r3, [sp, 0x4] - movs r0, 0x2 - str r0, [sp, 0x8] - movs r0, 0 - str r0, [sp, 0xC] - adds r0, r4, 0 - adds r3, r6, 0 - bl CreateMon - adds r5, 0x6 - adds r0, r4, 0 - movs r1, 0xC - adds r2, r5, 0 - bl SetMonData - b _0801166C - .align 2, 0 -_080115A4: .4byte gSpeciesNames -_080115A8: - adds r0, r4, 0 - adds r0, 0x24 - adds r0, r1, r0 - ldr r7, [r0] - movs r6, 0 - ldr r4, [sp, 0x18] - lsls r2, r4, 4 - adds r0, r2, r7 - ldrh r1, [r0, 0x4] - movs r0, 0xB - muls r0, r1 - ldr r1, _080116BC @ =gSpeciesNames - adds r0, r1 - ldrb r0, [r0] - mov r8, r2 - cmp r0, 0xFF - beq _080115EA - adds r3, r1, 0 - movs r4, 0xB -_080115CE: - adds r0, r2, r7 - ldrh r0, [r0, 0x4] - adds r1, r0, 0 - muls r1, r4 - adds r0, r6, r1 - adds r0, r3 - ldrb r0, [r0] - add r9, r0 - adds r6, 0x1 - adds r1, r6, r1 - adds r1, r3 - ldrb r0, [r1] - cmp r0, 0xFF - bne _080115CE -_080115EA: - mov r2, r9 - lsls r0, r2, 8 - add r10, r0 - mov r3, r8 - adds r5, r3, r7 - ldrh r1, [r5] - lsls r0, r1, 5 - subs r0, r1 - movs r1, 0xFF - bl __divsi3 - lsls r0, 24 - lsrs r6, r0, 24 - ldr r0, [sp, 0x18] - movs r1, 0x64 - adds r4, r0, 0 - muls r4, r1 - ldr r2, [sp, 0x10] - adds r4, r2, r4 - ldrh r1, [r5, 0x4] - ldrb r2, [r5, 0x2] - movs r0, 0x1 - str r0, [sp] - mov r3, r10 - str r3, [sp, 0x4] - movs r0, 0x2 - str r0, [sp, 0x8] - movs r0, 0 - str r0, [sp, 0xC] - adds r0, r4, 0 - adds r3, r6, 0 - bl CreateMon - adds r5, 0x6 - adds r0, r4, 0 - movs r1, 0xC - adds r2, r5, 0 - bl SetMonData - movs r6, 0 - adds r5, r4, 0 - mov r0, r8 - adds r0, 0x8 - adds r4, r7, r0 -_08011642: - adds r1, r6, 0 - adds r1, 0xD - adds r0, r5, 0 - adds r2, r4, 0 - bl SetMonData - adds r1, r6, 0 - adds r1, 0x11 - ldrh r0, [r4] - lsls r2, r0, 1 - adds r2, r0 - lsls r2, 2 - ldr r0, _080116C0 @ =gBattleMoves+0x4 - adds r2, r0 - adds r0, r5, 0 - bl SetMonData - adds r4, 0x2 - adds r6, 0x1 - cmp r6, 0x3 - ble _08011642 -_0801166C: - ldr r4, [sp, 0x1C] - str r4, [sp, 0x18] - ldr r2, _080116C4 @ =gTrainers - ldr r1, [sp, 0x20] - ldr r3, [sp, 0x14] - adds r0, r1, r3 - lsls r0, 3 - adds r0, r2 - adds r0, 0x20 -_0801167E: - ldrb r0, [r0] - cmp r4, r0 - bge _08011686 - b _08011340 -_08011686: - ldr r2, _080116C8 @ =gBattleTypeFlags - ldr r1, _080116C4 @ =gTrainers - ldr r4, [sp, 0x20] - ldr r3, [sp, 0x14] - adds r0, r4, r3 - lsls r0, 3 - adds r0, r1 - ldrb r1, [r0, 0x18] - ldr r0, [r2] - orrs r0, r1 - str r0, [r2] -_0801169C: - ldr r0, _080116C4 @ =gTrainers - ldr r4, [sp, 0x20] - ldr r2, [sp, 0x14] - adds r1, r4, r2 - lsls r1, 3 - adds r1, r0 - adds r1, 0x20 - ldrb r0, [r1] -_080116AC: - add sp, 0x24 - pop {r3-r5} - mov r8, r3 - mov r9, r4 - mov r10, r5 - pop {r4-r7} - pop {r1} - bx r1 - .align 2, 0 -_080116BC: .4byte gSpeciesNames -_080116C0: .4byte gBattleMoves+0x4 -_080116C4: .4byte gTrainers -_080116C8: .4byte gBattleTypeFlags - thumb_func_end sub_80112E0 - - thumb_func_start sub_80116CC -sub_80116CC: @ 80116CC - push {lr} - ldr r0, _080116EC @ =0x04000006 - ldrh r0, [r0] - subs r0, 0x6F - lsls r0, 16 - lsrs r0, 16 - cmp r0, 0x30 - bhi _080116E6 - ldr r1, _080116F0 @ =0x04000008 - movs r2, 0x98 - lsls r2, 8 - adds r0, r2, 0 - strh r0, [r1] -_080116E6: - pop {r0} - bx r0 - .align 2, 0 -_080116EC: .4byte 0x04000006 -_080116F0: .4byte 0x04000008 - thumb_func_end sub_80116CC - - thumb_func_start VBlankCB_Battle -VBlankCB_Battle: @ 80116F4 - push {lr} - bl Random - ldr r0, _08011788 @ =gBattle_BG0_X - ldrh r1, [r0] - movs r0, 0x10 - bl SetGpuReg - ldr r0, _0801178C @ =gBattle_BG0_Y - ldrh r1, [r0] - movs r0, 0x12 - bl SetGpuReg - ldr r0, _08011790 @ =gBattle_BG1_X - ldrh r1, [r0] - movs r0, 0x14 - bl SetGpuReg - ldr r0, _08011794 @ =gBattle_BG1_Y - ldrh r1, [r0] - movs r0, 0x16 - bl SetGpuReg - ldr r0, _08011798 @ =gBattle_BG2_X - ldrh r1, [r0] - movs r0, 0x18 - bl SetGpuReg - ldr r0, _0801179C @ =gBattle_BG2_Y - ldrh r1, [r0] - movs r0, 0x1A - bl SetGpuReg - ldr r0, _080117A0 @ =gBattle_BG3_X - ldrh r1, [r0] - movs r0, 0x1C - bl SetGpuReg - ldr r0, _080117A4 @ =gBattle_BG3_Y - ldrh r1, [r0] - movs r0, 0x1E - bl SetGpuReg - ldr r0, _080117A8 @ =gBattle_WIN0H - ldrh r1, [r0] - movs r0, 0x40 - bl SetGpuReg - ldr r0, _080117AC @ =gBattle_WIN0V - ldrh r1, [r0] - movs r0, 0x44 - bl SetGpuReg - ldr r0, _080117B0 @ =gUnknown_2022988 - ldrh r1, [r0] - movs r0, 0x42 - bl SetGpuReg - ldr r0, _080117B4 @ =gUnknown_202298A - ldrh r1, [r0] - movs r0, 0x46 - bl SetGpuReg - bl LoadOam - bl ProcessSpriteCopyRequests - bl TransferPlttBuffer - bl ScanlineEffect_InitHBlankDmaTransfer - pop {r0} - bx r0 - .align 2, 0 -_08011788: .4byte gBattle_BG0_X -_0801178C: .4byte gBattle_BG0_Y -_08011790: .4byte gBattle_BG1_X -_08011794: .4byte gBattle_BG1_Y -_08011798: .4byte gBattle_BG2_X -_0801179C: .4byte gBattle_BG2_Y -_080117A0: .4byte gBattle_BG3_X -_080117A4: .4byte gBattle_BG3_Y -_080117A8: .4byte gBattle_WIN0H -_080117AC: .4byte gBattle_WIN0V -_080117B0: .4byte gUnknown_2022988 -_080117B4: .4byte gUnknown_202298A - thumb_func_end VBlankCB_Battle - - thumb_func_start nullsub_9 -nullsub_9: @ 80117B8 - bx lr - thumb_func_end nullsub_9 - - thumb_func_start sub_80117BC -sub_80117BC: @ 80117BC - push {r4,r5,lr} - adds r5, r0, 0 - movs r1, 0x2E - ldrsh r0, [r5, r1] - cmp r0, 0 - beq _080117DC - movs r1, 0x32 - ldrsh r0, [r5, r1] - movs r1, 0xFF - lsls r1, 8 - ands r0, r1 - lsrs r0, 8 - ldrh r1, [r5, 0x30] - adds r0, r1 - strh r0, [r5, 0x20] - b _080117EE -_080117DC: - movs r1, 0x32 - ldrsh r0, [r5, r1] - movs r1, 0xFF - lsls r1, 8 - ands r0, r1 - asrs r0, 8 - ldrh r1, [r5, 0x30] - subs r1, r0 - strh r1, [r5, 0x20] -_080117EE: - movs r1, 0xC0 - lsls r1, 1 - adds r0, r1, 0 - ldrh r1, [r5, 0x32] - adds r0, r1 - strh r0, [r5, 0x32] - adds r0, r5, 0 - adds r0, 0x3F - ldrb r1, [r0] - movs r0, 0x20 - ands r0, r1 - cmp r0, 0 - beq _08011822 - ldr r4, _08011828 @ =0x00002710 - adds r0, r4, 0 - bl FreeSpriteTilesByTag - adds r0, r4, 0 - bl FreeSpritePaletteByTag - adds r0, r5, 0 - bl FreeSpriteOamMatrix - adds r0, r5, 0 - bl DestroySprite -_08011822: - pop {r4,r5} - pop {r0} - bx r0 - .align 2, 0 -_08011828: .4byte 0x00002710 - thumb_func_end sub_80117BC - - thumb_func_start sub_801182C -sub_801182C: @ 801182C - push {r4,lr} - adds r4, r0, 0 - movs r1, 0x1 - bl StartSpriteAffineAnim - ldr r0, _08011848 @ =sub_80117BC - str r0, [r4, 0x1C] - movs r0, 0x61 - bl PlaySE - pop {r4} - pop {r0} - bx r0 - .align 2, 0 -_08011848: .4byte sub_80117BC - thumb_func_end sub_801182C - - thumb_func_start sub_801184C -sub_801184C: @ 801184C - push {r4-r7,lr} - mov r7, r10 - mov r6, r9 - mov r5, r8 - push {r5-r7} - sub sp, 0x10 - lsls r0, 24 - lsrs r0, 24 - str r0, [sp] - movs r0, 0 - str r0, [sp, 0x4] - movs r1, 0 - str r1, [sp, 0x8] - ldr r0, _08011894 @ =gBattleStruct - ldr r0, [r0] - adds r0, 0xB5 - ldrb r2, [r0] - ldr r0, _08011898 @ =gBattleTypeFlags - ldr r0, [r0] - movs r1, 0x40 - ands r0, r1 - cmp r0, 0 - beq _080118BC - ldr r1, _0801189C @ =gLinkPlayers - lsls r0, r2, 3 - subs r0, r2 - lsls r0, 2 - adds r0, r1 - ldrh r0, [r0, 0x18] - cmp r0, 0x1 - beq _080118A8 - cmp r0, 0x1 - bgt _080118A0 - cmp r0, 0 - beq _080118BC - b _080118C4 - .align 2, 0 -_08011894: .4byte gBattleStruct -_08011898: .4byte gBattleTypeFlags -_0801189C: .4byte gLinkPlayers -_080118A0: - cmp r0, 0x2 - beq _080118BC - cmp r0, 0x3 - bne _080118C4 -_080118A8: - ldr r0, _080118B4 @ =gEnemyParty - str r0, [sp, 0x4] - ldr r1, _080118B8 @ =gPlayerParty - str r1, [sp, 0x8] - b _080118C4 - .align 2, 0 -_080118B4: .4byte gEnemyParty -_080118B8: .4byte gPlayerParty -_080118BC: - ldr r2, _08011A10 @ =gPlayerParty - str r2, [sp, 0x4] - ldr r3, _08011A14 @ =gEnemyParty - str r3, [sp, 0x8] -_080118C4: - movs r7, 0 - movs r0, 0 - mov r8, r0 - ldr r1, [sp] - lsls r1, 2 - str r1, [sp, 0xC] - movs r2, 0xCE - lsls r2, 1 - mov r10, r2 - mov r9, r0 -_080118D8: - movs r0, 0x64 - mov r4, r8 - muls r4, r0 - ldr r3, [sp, 0x4] - adds r4, r3, r4 - adds r0, r4, 0 - movs r1, 0x41 - bl GetMonData - lsls r0, 16 - lsrs r5, r0, 16 - adds r0, r4, 0 - movs r1, 0x39 - bl GetMonData - lsls r0, 16 - lsrs r6, r0, 16 - adds r0, r4, 0 - movs r1, 0x37 - bl GetMonData - adds r1, r0, 0 - cmp r5, 0 - beq _08011948 - cmp r5, r10 - beq _0801191C - cmp r6, 0 - beq _0801191C - cmp r1, 0 - bne _0801191C - movs r0, 0x1 - mov r2, r9 - lsls r0, r2 - orrs r7, r0 -_0801191C: - cmp r5, 0 - beq _08011948 - cmp r6, 0 - beq _08011934 - cmp r5, r10 - beq _0801192C - cmp r1, 0 - beq _08011934 -_0801192C: - movs r0, 0x2 - mov r3, r9 - lsls r0, r3 - orrs r7, r0 -_08011934: - cmp r5, 0 - beq _08011948 - cmp r5, r10 - beq _08011948 - cmp r6, 0 - bne _08011948 - movs r0, 0x3 - mov r1, r9 - lsls r0, r1 - orrs r7, r0 -_08011948: - movs r2, 0x2 - add r9, r2 - movs r3, 0x1 - add r8, r3 - mov r0, r8 - cmp r0, 0x5 - ble _080118D8 - ldr r1, _08011A18 @ =gTasks - ldr r2, [sp, 0xC] - ldr r3, [sp] - adds r0, r2, r3 - lsls r0, 3 - adds r0, r1 - strh r7, [r0, 0xE] - movs r7, 0 - movs r0, 0 - mov r8, r0 - movs r1, 0xCE - lsls r1, 1 - mov r10, r1 - mov r9, r0 -_08011972: - movs r0, 0x64 - mov r4, r8 - muls r4, r0 - ldr r2, [sp, 0x8] - adds r4, r2, r4 - adds r0, r4, 0 - movs r1, 0x41 - bl GetMonData - lsls r0, 16 - lsrs r5, r0, 16 - adds r0, r4, 0 - movs r1, 0x39 - bl GetMonData - lsls r0, 16 - lsrs r6, r0, 16 - adds r0, r4, 0 - movs r1, 0x37 - bl GetMonData - adds r1, r0, 0 - cmp r5, 0 - beq _080119E2 - cmp r5, r10 - beq _080119B6 - cmp r6, 0 - beq _080119B6 - cmp r1, 0 - bne _080119B6 - movs r0, 0x1 - mov r3, r9 - lsls r0, r3 - orrs r7, r0 -_080119B6: - cmp r5, 0 - beq _080119E2 - cmp r6, 0 - beq _080119CE - cmp r5, r10 - beq _080119C6 - cmp r1, 0 - beq _080119CE -_080119C6: - movs r0, 0x2 - mov r1, r9 - lsls r0, r1 - orrs r7, r0 -_080119CE: - cmp r5, 0 - beq _080119E2 - cmp r5, r10 - beq _080119E2 - cmp r6, 0 - bne _080119E2 - movs r0, 0x3 - mov r2, r9 - lsls r0, r2 - orrs r7, r0 -_080119E2: - movs r3, 0x2 - add r9, r3 - movs r0, 0x1 - add r8, r0 - mov r1, r8 - cmp r1, 0x5 - ble _08011972 - ldr r1, _08011A18 @ =gTasks - ldr r2, [sp, 0xC] - ldr r3, [sp] - adds r0, r2, r3 - lsls r0, 3 - adds r0, r1 - strh r7, [r0, 0x10] - add sp, 0x10 - pop {r3-r5} - mov r8, r3 - mov r9, r4 - mov r10, r5 - pop {r4-r7} - pop {r0} - bx r0 - .align 2, 0 -_08011A10: .4byte gPlayerParty -_08011A14: .4byte gEnemyParty -_08011A18: .4byte gTasks - thumb_func_end sub_801184C - - thumb_func_start sub_8011A1C -sub_8011A1C: @ 8011A1C - push {r4,lr} - sub sp, 0x4 - movs r0, 0 - bl SetHBlankCallback - movs r0, 0 - bl SetVBlankCallback - movs r0, 0 - str r0, [sp] - movs r1, 0xC0 - lsls r1, 19 - ldr r2, _08011B40 @ =0x05006000 - mov r0, sp - bl CpuSet - movs r0, 0x4C - movs r1, 0 - bl SetGpuReg - movs r0, 0x40 - movs r1, 0xF0 - bl SetGpuReg - ldr r4, _08011B44 @ =0x00005051 - movs r0, 0x44 - adds r1, r4, 0 - bl SetGpuReg - movs r0, 0x48 - movs r1, 0 - bl SetGpuReg - movs r0, 0x4A - movs r1, 0 - bl SetGpuReg - ldr r1, _08011B48 @ =gBattle_WIN0H - movs r0, 0xF0 - strh r0, [r1] - ldr r0, _08011B4C @ =gBattle_WIN0V - strh r4, [r0] - bl ScanlineEffect_Clear - ldr r0, _08011B50 @ =gScanlineEffectRegBuffers - movs r3, 0xF0 - movs r1, 0xF0 - lsls r1, 3 - adds r2, r0, r1 - movs r1, 0x4F -_08011A80: - strh r3, [r0] - strh r3, [r2] - adds r2, 0x2 - adds r0, 0x2 - subs r1, 0x1 - cmp r1, 0 - bge _08011A80 - movs r1, 0x50 - ldr r0, _08011B50 @ =gScanlineEffectRegBuffers - ldr r3, _08011B54 @ =0x0000ff10 - movs r4, 0x82 - lsls r4, 4 - adds r2, r0, r4 - adds r0, 0xA0 -_08011A9C: - strh r3, [r0] - strh r3, [r2] - adds r2, 0x2 - adds r0, 0x2 - adds r1, 0x1 - cmp r1, 0x9F - ble _08011A9C - bl ResetPaletteFade - ldr r0, _08011B58 @ =gBattle_BG0_X - movs r4, 0 - strh r4, [r0] - ldr r0, _08011B5C @ =gBattle_BG0_Y - strh r4, [r0] - ldr r0, _08011B60 @ =gBattle_BG1_X - strh r4, [r0] - ldr r0, _08011B64 @ =gBattle_BG1_Y - strh r4, [r0] - ldr r0, _08011B68 @ =gBattle_BG2_X - strh r4, [r0] - ldr r0, _08011B6C @ =gBattle_BG2_Y - strh r4, [r0] - ldr r0, _08011B70 @ =gBattle_BG3_X - strh r4, [r0] - ldr r0, _08011B74 @ =gBattle_BG3_Y - strh r4, [r0] - bl sub_800F34C - ldr r0, _08011B78 @ =gBattleTextboxPalette - movs r1, 0 - movs r2, 0x40 - bl LoadCompressedPalette - bl sub_800F380 - bl ResetSpriteData - bl ResetTasks - bl sub_800FAE0 - movs r0, 0x4A - movs r1, 0x37 - bl SetGpuReg - bl FreeAllSpritePalettes - ldr r1, _08011B7C @ =gReservedSpritePaletteCount - movs r0, 0x4 - strb r0, [r1] - ldr r0, _08011B80 @ =VBlankCB_Battle - bl SetVBlankCallback - ldr r0, _08011B84 @ =sub_800F6FC - movs r1, 0 - bl CreateTask - lsls r0, 24 - lsrs r0, 24 - ldr r2, _08011B88 @ =gTasks - lsls r1, r0, 2 - adds r1, r0 - lsls r1, 3 - adds r1, r2 - movs r2, 0x87 - lsls r2, 1 - strh r2, [r1, 0xA] - movs r2, 0x5A - strh r2, [r1, 0xC] - movs r2, 0x1 - strh r2, [r1, 0x12] - bl sub_801184C - ldr r0, _08011B8C @ =sub_8011B94 - bl SetMainCallback2 - ldr r0, _08011B90 @ =gBattleCommunication - strb r4, [r0] - add sp, 0x4 - pop {r4} - pop {r0} - bx r0 - .align 2, 0 -_08011B40: .4byte 0x05006000 -_08011B44: .4byte 0x00005051 -_08011B48: .4byte gBattle_WIN0H -_08011B4C: .4byte gBattle_WIN0V -_08011B50: .4byte gScanlineEffectRegBuffers -_08011B54: .4byte 0x0000ff10 -_08011B58: .4byte gBattle_BG0_X -_08011B5C: .4byte gBattle_BG0_Y -_08011B60: .4byte gBattle_BG1_X -_08011B64: .4byte gBattle_BG1_Y -_08011B68: .4byte gBattle_BG2_X -_08011B6C: .4byte gBattle_BG2_Y -_08011B70: .4byte gBattle_BG3_X -_08011B74: .4byte gBattle_BG3_Y -_08011B78: .4byte gBattleTextboxPalette -_08011B7C: .4byte gReservedSpritePaletteCount -_08011B80: .4byte VBlankCB_Battle -_08011B84: .4byte sub_800F6FC -_08011B88: .4byte gTasks -_08011B8C: .4byte sub_8011B94 -_08011B90: .4byte gBattleCommunication - thumb_func_end sub_8011A1C - - thumb_func_start sub_8011B94 -sub_8011B94: @ 8011B94 - push {lr} - bl sub_8011BB0 - bl AnimateSprites - bl BuildOamBuffer - bl UpdatePaletteFade - bl RunTasks - pop {r0} - bx r0 - thumb_func_end sub_8011B94 - - thumb_func_start sub_8011BB0 -sub_8011BB0: @ 8011BB0 - push {r4,lr} - sub sp, 0x4 - ldr r4, _08011BC8 @ =gBattleCommunication - ldrb r0, [r4] - cmp r0, 0x1 - beq _08011BEA - cmp r0, 0x1 - bgt _08011BCC - cmp r0, 0 - beq _08011BD2 - b _08011C34 - .align 2, 0 -_08011BC8: .4byte gBattleCommunication -_08011BCC: - cmp r0, 0x2 - beq _08011C10 - b _08011C34 -_08011BD2: - movs r0, 0 - bl ShowBg - movs r0, 0x1 - bl ShowBg - movs r0, 0x2 - bl ShowBg - movs r0, 0xFF - strb r0, [r4, 0x1] - b _08011C08 -_08011BEA: - ldrb r0, [r4, 0x1] - subs r0, 0x1 - strb r0, [r4, 0x1] - lsls r0, 24 - lsrs r1, r0, 24 - cmp r1, 0 - bne _08011C34 - movs r0, 0x1 - negs r0, r0 - str r1, [sp] - movs r1, 0 - movs r2, 0 - movs r3, 0x10 - bl BeginNormalPaletteFade -_08011C08: - ldrb r0, [r4] - adds r0, 0x1 - strb r0, [r4] - b _08011C34 -_08011C10: - ldr r0, _08011C3C @ =gPaletteFade - ldrb r1, [r0, 0x7] - movs r0, 0x80 - ands r0, r1 - cmp r0, 0 - bne _08011C34 - ldr r0, _08011C40 @ =gMain - ldr r0, [r0, 0x8] - bl SetMainCallback2 - bl sub_812C224 - bl FreeMonSpritesGfx - bl FreeBattleSpritesData - bl FreeBattleResources -_08011C34: - add sp, 0x4 - pop {r4} - pop {r0} - bx r0 - .align 2, 0 -_08011C3C: .4byte gPaletteFade -_08011C40: .4byte gMain - thumb_func_end sub_8011BB0 - - thumb_func_start sub_8011C44 -sub_8011C44: @ 8011C44 - push {lr} - lsls r0, 24 - lsrs r2, r0, 24 - lsls r1, 24 - lsrs r1, 24 - movs r0, 0 - cmp r1, 0x6 - bhi _08011D04 - lsls r0, r1, 2 - ldr r1, _08011C60 @ =_08011C64 - adds r0, r1 - ldr r0, [r0] - mov pc, r0 - .align 2, 0 -_08011C60: .4byte _08011C64 - .align 2, 0 -_08011C64: - .4byte _08011C80 - .4byte _08011C94 - .4byte _08011CA8 - .4byte _08011CBC - .4byte _08011CD0 - .4byte _08011CE4 - .4byte _08011CF8 -_08011C80: - ldr r0, _08011C90 @ =gUnknown_8248320 - lsls r1, r2, 2 - adds r1, r0 - ldrb r0, [r1] - lsls r0, 30 - lsrs r0, 30 - b _08011D04 - .align 2, 0 -_08011C90: .4byte gUnknown_8248320 -_08011C94: - ldr r0, _08011CA4 @ =gUnknown_8248320 - lsls r1, r2, 2 - adds r1, r0 - ldrb r0, [r1] - lsls r0, 28 - lsrs r0, 30 - b _08011D04 - .align 2, 0 -_08011CA4: .4byte gUnknown_8248320 -_08011CA8: - ldr r0, _08011CB8 @ =gUnknown_8248320 - lsls r1, r2, 2 - adds r1, r0 - ldrh r0, [r1] - lsls r0, 23 - lsrs r0, 27 - b _08011D04 - .align 2, 0 -_08011CB8: .4byte gUnknown_8248320 -_08011CBC: - ldr r0, _08011CCC @ =gUnknown_8248320 - lsls r1, r2, 2 - adds r1, r0 - ldrb r0, [r1, 0x1] - lsls r0, 29 - lsrs r0, 30 - b _08011D04 - .align 2, 0 -_08011CCC: .4byte gUnknown_8248320 -_08011CD0: - ldr r0, _08011CE0 @ =gUnknown_8248320 - lsls r1, r2, 2 - adds r1, r0 - ldrb r0, [r1, 0x1] - lsls r0, 28 - lsrs r0, 31 - b _08011D04 - .align 2, 0 -_08011CE0: .4byte gUnknown_8248320 -_08011CE4: - ldr r0, _08011CF4 @ =gUnknown_8248320 - lsls r1, r2, 2 - adds r1, r0 - ldrb r0, [r1, 0x1] - lsls r0, 26 - lsrs r0, 30 - b _08011D04 - .align 2, 0 -_08011CF4: .4byte gUnknown_8248320 -_08011CF8: - ldr r0, _08011D08 @ =gUnknown_8248320 - lsls r1, r2, 2 - adds r1, r0 - ldr r0, [r1] - lsls r0, 8 - lsrs r0, 22 -_08011D04: - pop {r1} - bx r1 - .align 2, 0 -_08011D08: .4byte gUnknown_8248320 - thumb_func_end sub_8011C44 - - thumb_func_start sub_8011D0C -sub_8011D0C: @ 8011D0C - push {r4,r5,lr} - sub sp, 0x10 - adds r4, r0, 0 - add r5, sp, 0xC - movs r0, 0x1 - strb r0, [r5] - adds r0, r4, 0 - movs r1, 0xB - bl GetMonData - ldr r1, _08011D5C @ =0x0000012f - cmp r0, r1 - bne _08011D54 - adds r0, r4, 0 - movs r1, 0x3 - bl GetMonData - ldrb r1, [r5] - cmp r0, r1 - beq _08011D54 - adds r0, r4, 0 - movs r1, 0x2 - mov r2, sp - bl GetMonData - ldr r1, _08011D60 @ =gUnknown_824F008 - mov r0, sp - bl StringCompareWithoutExtCtrlCodes - cmp r0, 0 - bne _08011D54 - adds r0, r4, 0 - movs r1, 0x3 - adds r2, r5, 0 - bl SetMonData -_08011D54: - add sp, 0x10 - pop {r4,r5} - pop {r0} - bx r0 - .align 2, 0 -_08011D5C: .4byte 0x0000012f -_08011D60: .4byte gUnknown_824F008 - thumb_func_end sub_8011D0C - - thumb_func_start oac_poke_opponent -oac_poke_opponent: @ 8011D64 - push {lr} - sub sp, 0x4 - ldr r1, _08011D8C @ =sub_8011D94 - str r1, [r0, 0x1C] - movs r1, 0 - bl StartSpriteAnimIfDifferent - movs r0, 0x80 - lsls r0, 10 - ldr r1, _08011D90 @ =0x00002108 - str r1, [sp] - movs r1, 0 - movs r2, 0xA - movs r3, 0xA - bl BeginNormalPaletteFade - add sp, 0x4 - pop {r0} - bx r0 - .align 2, 0 -_08011D8C: .4byte sub_8011D94 -_08011D90: .4byte 0x00002108 - thumb_func_end oac_poke_opponent - - thumb_func_start sub_8011D94 -sub_8011D94: @ 8011D94 - push {lr} - adds r2, r0, 0 - ldr r0, _08011DC0 @ =gIntroSlideFlags - ldrh r1, [r0] - movs r0, 0x1 - ands r0, r1 - cmp r0, 0 - bne _08011DBC - ldrh r0, [r2, 0x24] - adds r0, 0x2 - strh r0, [r2, 0x24] - lsls r0, 16 - cmp r0, 0 - bne _08011DBC - ldr r0, _08011DC4 @ =sub_8011DC8 - str r0, [r2, 0x1C] - ldrh r0, [r2, 0x32] - movs r1, 0x19 - bl PlayCry1 -_08011DBC: - pop {r0} - bx r0 - .align 2, 0 -_08011DC0: .4byte gIntroSlideFlags -_08011DC4: .4byte sub_8011DC8 - thumb_func_end sub_8011D94 - - thumb_func_start sub_8011DC8 -sub_8011DC8: @ 8011DC8 - push {r4,lr} - sub sp, 0x4 - adds r4, r0, 0 - adds r0, 0x3F - ldrb r1, [r0] - movs r0, 0x10 - ands r0, r1 - cmp r0, 0 - beq _08011E10 - ldrh r0, [r4, 0x2E] - lsls r0, 24 - lsrs r0, 24 - bl sub_804BD94 - ldr r1, _08011E18 @ =gHealthboxSpriteIds - movs r2, 0x2E - ldrsh r0, [r4, r2] - adds r0, r1 - ldrb r0, [r0] - bl SetHealthboxSpriteVisible - ldr r0, _08011E1C @ =nullsub_10 - str r0, [r4, 0x1C] - adds r0, r4, 0 - movs r1, 0 - bl StartSpriteAnimIfDifferent - movs r0, 0x80 - lsls r0, 10 - ldr r1, _08011E20 @ =0x00002108 - str r1, [sp] - movs r1, 0 - movs r2, 0xA - movs r3, 0 - bl BeginNormalPaletteFade -_08011E10: - add sp, 0x4 - pop {r4} - pop {r0} - bx r0 - .align 2, 0 -_08011E18: .4byte gHealthboxSpriteIds -_08011E1C: .4byte nullsub_10 -_08011E20: .4byte 0x00002108 - thumb_func_end sub_8011DC8 - - thumb_func_start nullsub_10 -nullsub_10: @ 8011E24 - bx lr - thumb_func_end nullsub_10 - - thumb_func_start sub_8011E28 -sub_8011E28: @ 8011E28 - movs r1, 0x6 - strh r1, [r0, 0x34] - movs r1, 0x1 - strh r1, [r0, 0x36] - ldr r1, _08011E38 @ =sub_8011E3C - str r1, [r0, 0x1C] - bx lr - .align 2, 0 -_08011E38: .4byte sub_8011E3C - thumb_func_end sub_8011E28 - - thumb_func_start sub_8011E3C -sub_8011E3C: @ 8011E3C - push {r4,lr} - adds r3, r0, 0 - ldrh r0, [r3, 0x36] - subs r0, 0x1 - strh r0, [r3, 0x36] - lsls r0, 16 - cmp r0, 0 - bne _08011E90 - movs r0, 0x8 - strh r0, [r3, 0x36] - movs r0, 0x3E - adds r0, r3 - mov r12, r0 - ldrb r2, [r0] - lsls r0, r2, 29 - lsrs r0, 31 - movs r1, 0x1 - eors r1, r0 - lsls r1, 2 - movs r4, 0x5 - negs r4, r4 - adds r0, r4, 0 - ands r0, r2 - orrs r0, r1 - mov r1, r12 - strb r0, [r1] - ldrh r0, [r3, 0x34] - subs r0, 0x1 - strh r0, [r3, 0x34] - lsls r0, 16 - asrs r2, r0, 16 - cmp r2, 0 - bne _08011E90 - ldrb r1, [r1] - adds r0, r4, 0 - ands r0, r1 - mov r1, r12 - strb r0, [r1] - ldr r0, _08011E98 @ =nullsub_10 - str r0, [r3, 0x1C] - ldr r0, _08011E9C @ =gUnknown_2022AE8 - str r2, [r0] -_08011E90: - pop {r4} - pop {r0} - bx r0 - .align 2, 0 -_08011E98: .4byte nullsub_10 -_08011E9C: .4byte gUnknown_2022AE8 - thumb_func_end sub_8011E3C - - thumb_func_start SpriteCB_FaintOpponentMon -SpriteCB_FaintOpponentMon: @ 8011EA0 - push {r4-r7,lr} - mov r7, r9 - mov r6, r8 - push {r6,r7} - mov r9, r0 - ldrh r0, [r0, 0x2E] - lsls r0, 24 - lsrs r6, r0, 24 - ldr r0, _08011EC4 @ =gBattleSpritesDataPtr - ldr r0, [r0] - ldr r1, [r0] - lsls r0, r6, 2 - adds r1, r0, r1 - ldrh r0, [r1, 0x2] - cmp r0, 0 - beq _08011EC8 - adds r4, r0, 0 - b _08011ECC - .align 2, 0 -_08011EC4: .4byte gBattleSpritesDataPtr -_08011EC8: - mov r0, r9 - ldrh r4, [r0, 0x32] -_08011ECC: - ldr r1, _08011F34 @ =gBattlerPartyIndexes - lsls r0, r6, 1 - adds r5, r0, r1 - ldrh r0, [r5] - movs r1, 0x64 - mov r8, r1 - mov r1, r8 - muls r1, r0 - adds r0, r1, 0 - ldr r7, _08011F38 @ =gEnemyParty - adds r0, r7 - movs r1, 0 - bl GetMonData - cmp r4, 0xC9 - bne _08011F50 - ldrh r0, [r5] - mov r1, r8 - muls r1, r0 - adds r0, r1, 0 - adds r0, r7 - movs r1, 0 - bl GetMonData - adds r2, r0, 0 - movs r0, 0xC0 - lsls r0, 18 - ands r0, r2 - lsrs r0, 18 - movs r1, 0xC0 - lsls r1, 10 - ands r1, r2 - lsrs r1, 12 - orrs r0, r1 - movs r1, 0xC0 - lsls r1, 2 - ands r1, r2 - lsrs r1, 6 - orrs r0, r1 - movs r1, 0x3 - ands r1, r2 - orrs r0, r1 - movs r1, 0x1C - bl __umodsi3 - lsls r0, 16 - lsrs r0, 16 - cmp r0, 0 - bne _08011F3C - movs r0, 0xC9 - b _08011F46 - .align 2, 0 -_08011F34: .4byte gBattlerPartyIndexes -_08011F38: .4byte gEnemyParty -_08011F3C: - movs r1, 0xCE - lsls r1, 1 - adds r0, r1 - lsls r0, 16 - lsrs r0, 16 -_08011F46: - ldr r1, _08011F4C @ =gMonFrontPicCoords - lsls r0, 2 - b _08011F88 - .align 2, 0 -_08011F4C: .4byte gMonFrontPicCoords -_08011F50: - ldr r0, _08011F68 @ =0x00000181 @ SPECIES_CASTFORM - cmp r4, r0 - bne _08011F74 - ldr r0, _08011F6C @ =gCastformFrontSpriteCoords - ldr r1, _08011F70 @ =gBattleMonForms - adds r1, r6, r1 - ldrb r1, [r1] - lsls r1, 2 - adds r1, r0 - ldrb r0, [r1, 0x1] - b _08011F8C - .align 2, 0 -_08011F68: .4byte 0x00000181 -_08011F6C: .4byte gCastformFrontSpriteCoords -_08011F70: .4byte gBattleMonForms -_08011F74: - movs r0, 0xCE - lsls r0, 1 - cmp r4, r0 - bls _08011F84 - ldr r0, _08011F80 @ =gMonFrontPicCoords - b _08011F8A - .align 2, 0 -_08011F80: .4byte gMonFrontPicCoords -_08011F84: - ldr r1, _08011FAC @ =gMonFrontPicCoords - lsls r0, r4, 2 -_08011F88: - adds r0, r1 -_08011F8A: - ldrb r0, [r0, 0x1] -_08011F8C: - lsrs r1, r0, 3 - movs r0, 0x8 - subs r0, r1 - mov r1, r9 - strh r0, [r1, 0x34] - movs r0, 0x1 - strh r0, [r1, 0x36] - ldr r0, _08011FB0 @ =sub_8011FB4 - str r0, [r1, 0x1C] - pop {r3,r4} - mov r8, r3 - mov r9, r4 - pop {r4-r7} - pop {r0} - bx r0 - .align 2, 0 -_08011FAC: .4byte gMonFrontPicCoords -_08011FB0: .4byte sub_8011FB4 - thumb_func_end SpriteCB_FaintOpponentMon - - thumb_func_start sub_8011FB4 -sub_8011FB4: @ 8011FB4 - push {r4,lr} - adds r4, r0, 0 - ldrh r0, [r4, 0x36] - subs r0, 0x1 - strh r0, [r4, 0x36] - lsls r0, 16 - cmp r0, 0 - bne _08012034 - movs r0, 0x2 - strh r0, [r4, 0x36] - ldrh r0, [r4, 0x26] - adds r0, 0x8 - strh r0, [r4, 0x26] - ldrh r0, [r4, 0x34] - subs r0, 0x1 - strh r0, [r4, 0x34] - lsls r0, 16 - cmp r0, 0 - bge _08011FE8 - adds r0, r4, 0 - bl FreeSpriteOamMatrix - adds r0, r4, 0 - bl DestroySprite - b _08012034 -_08011FE8: - ldrh r0, [r4, 0x2E] - lsls r0, 24 - lsrs r0, 24 - bl GetBattlerPosition - ldr r1, _0801203C @ =gMonSpritesGfxPtr - ldr r1, [r1] - lsls r0, 24 - lsrs r0, 22 - adds r1, 0x4 - adds r1, r0 - ldr r2, _08012040 @ =gBattleMonForms - movs r3, 0x2E - ldrsh r0, [r4, r3] - adds r0, r2 - ldrb r0, [r0] - lsls r0, 11 - ldr r1, [r1] - adds r1, r0 - movs r2, 0x34 - ldrsh r0, [r4, r2] - lsls r0, 8 - adds r1, r0 - movs r2, 0 - movs r0, 0xFF -_0801201A: - strb r2, [r1] - adds r1, 0x1 - subs r0, 0x1 - cmp r0, 0 - bge _0801201A - ldr r0, _08012040 @ =gBattleMonForms - movs r3, 0x2E - ldrsh r1, [r4, r3] - adds r1, r0 - ldrb r1, [r1] - adds r0, r4, 0 - bl StartSpriteAnim -_08012034: - pop {r4} - pop {r0} - bx r0 - .align 2, 0 -_0801203C: .4byte gMonSpritesGfxPtr -_08012040: .4byte gBattleMonForms - thumb_func_end sub_8011FB4 - - thumb_func_start sub_8012044 -sub_8012044: @ 8012044 - movs r1, 0x8 - strh r1, [r0, 0x34] - adds r1, r0, 0 - adds r1, 0x3E - ldrb r1, [r1] - lsls r1, 29 - lsrs r1, 31 - strh r1, [r0, 0x36] - ldr r1, _0801205C @ =sub_8012060 - str r1, [r0, 0x1C] - bx lr - .align 2, 0 -_0801205C: .4byte sub_8012060 - thumb_func_end sub_8012044 - - thumb_func_start sub_8012060 -sub_8012060: @ 8012060 - push {lr} - adds r3, r0, 0 - ldrh r0, [r3, 0x34] - subs r0, 0x1 - strh r0, [r3, 0x34] - lsls r0, 16 - cmp r0, 0 - bne _08012092 - movs r0, 0x3E - adds r0, r3 - mov r12, r0 - ldrb r2, [r0] - lsls r0, r2, 29 - lsrs r0, 31 - movs r1, 0x1 - eors r1, r0 - lsls r1, 2 - movs r0, 0x5 - negs r0, r0 - ands r0, r2 - orrs r0, r1 - mov r1, r12 - strb r0, [r1] - movs r0, 0x8 - strh r0, [r3, 0x34] -_08012092: - pop {r0} - bx r0 - thumb_func_end sub_8012060 - - thumb_func_start sub_8012098 -sub_8012098: @ 8012098 - movs r1, 0x3E - adds r1, r0 - mov r12, r1 - movs r1, 0x1 - ldrh r2, [r0, 0x36] - ands r2, r1 - lsls r2, 2 - mov r1, r12 - ldrb r3, [r1] - movs r1, 0x5 - negs r1, r1 - ands r1, r3 - orrs r1, r2 - mov r2, r12 - strb r1, [r2] - movs r1, 0 - strh r1, [r0, 0x36] - ldr r1, _080120C0 @ =nullsub_10 - str r1, [r0, 0x1C] - bx lr - .align 2, 0 -_080120C0: .4byte nullsub_10 - thumb_func_end sub_8012098 - - thumb_func_start sub_80120C4 -sub_80120C4: @ 80120C4 - ldr r1, _080120CC @ =oac_poke_ally_ - str r1, [r0, 0x1C] - bx lr - .align 2, 0 -_080120CC: .4byte oac_poke_ally_ - thumb_func_end sub_80120C4 - - thumb_func_start oac_poke_ally_ -oac_poke_ally_: @ 80120D0 - push {lr} - adds r2, r0, 0 - ldr r0, _080120F8 @ =gIntroSlideFlags - ldrh r1, [r0] - movs r0, 0x1 - ands r0, r1 - cmp r0, 0 - bne _080120F4 - ldrh r0, [r2, 0x24] - subs r0, 0x2 - strh r0, [r2, 0x24] - lsls r0, 16 - asrs r1, r0, 16 - cmp r1, 0 - bne _080120F4 - ldr r0, _080120FC @ =nullsub_11 - str r0, [r2, 0x1C] - strh r1, [r2, 0x30] -_080120F4: - pop {r0} - bx r0 - .align 2, 0 -_080120F8: .4byte gIntroSlideFlags -_080120FC: .4byte nullsub_11 - thumb_func_end oac_poke_ally_ - - thumb_func_start sub_8012100 -sub_8012100: @ 8012100 - ldr r1, _08012108 @ =nullsub_11 - str r1, [r0, 0x1C] - bx lr - .align 2, 0 -_08012108: .4byte nullsub_11 - thumb_func_end sub_8012100 - - thumb_func_start nullsub_11 -nullsub_11: @ 801210C - bx lr - thumb_func_end nullsub_11 - - thumb_func_start sub_8012110 -sub_8012110: @ 8012110 - push {lr} - adds r2, r0, 0 - ldr r0, _08012134 @ =gIntroSlideFlags - ldrh r1, [r0] - movs r0, 0x1 - ands r0, r1 - cmp r0, 0 - bne _08012130 - ldrh r0, [r2, 0x30] - ldrh r1, [r2, 0x24] - adds r0, r1 - strh r0, [r2, 0x24] - ldrh r0, [r2, 0x32] - ldrh r1, [r2, 0x26] - adds r0, r1 - strh r0, [r2, 0x26] -_08012130: - pop {r0} - bx r0 - .align 2, 0 -_08012134: .4byte gIntroSlideFlags - thumb_func_end sub_8012110 - - thumb_func_start DoBounceEffect -DoBounceEffect: @ 8012138 - push {r4-r7,lr} - mov r7, r10 - mov r6, r9 - mov r5, r8 - push {r5-r7} - lsls r0, 24 - lsrs r4, r0, 24 - lsls r1, 24 - lsrs r1, 24 - mov r8, r1 - lsls r2, 24 - lsrs r2, 24 - mov r9, r2 - lsls r3, 24 - lsrs r3, 24 - mov r10, r3 - cmp r1, 0 - beq _08012174 - ldr r0, _08012170 @ =gBattleSpritesDataPtr - ldr r0, [r0] - ldr r1, [r0, 0x4] - lsls r2, r4, 1 - adds r0, r2, r4 - lsls r0, 2 - adds r0, r1 - ldrb r1, [r0] - movs r0, 0x2 - b _08012186 - .align 2, 0 -_08012170: .4byte gBattleSpritesDataPtr -_08012174: - ldr r0, _080121D0 @ =gBattleSpritesDataPtr - ldr r0, [r0] - ldr r1, [r0, 0x4] - lsls r2, r4, 1 - adds r0, r2, r4 - lsls r0, 2 - adds r0, r1 - ldrb r1, [r0] - movs r0, 0x4 -_08012186: - ands r0, r1 - adds r6, r2, 0 - cmp r0, 0 - bne _0801223C - ldr r0, _080121D4 @ =SpriteCB_HealthBoxBounce - bl CreateInvisibleSpriteWithCallback - lsls r0, 24 - lsrs r5, r0, 24 - mov r0, r8 - cmp r0, 0x1 - bne _080121E0 - ldr r0, _080121D8 @ =gHealthboxSpriteIds - adds r0, r4, r0 - ldrb r7, [r0] - ldr r2, _080121D0 @ =gBattleSpritesDataPtr - ldr r0, [r2] - ldr r0, [r0, 0x4] - adds r1, r6, r4 - lsls r1, 2 - adds r0, r1, r0 - strb r5, [r0, 0x2] - ldr r0, [r2] - ldr r0, [r0, 0x4] - adds r1, r0 - ldrb r0, [r1] - movs r2, 0x2 - orrs r0, r2 - strb r0, [r1] - ldr r2, _080121DC @ =gSprites - lsls r3, r5, 4 - adds r0, r3, r5 - lsls r0, 2 - adds r0, r2 - movs r1, 0x80 - b _0801220E - .align 2, 0 -_080121D0: .4byte gBattleSpritesDataPtr -_080121D4: .4byte SpriteCB_HealthBoxBounce -_080121D8: .4byte gHealthboxSpriteIds -_080121DC: .4byte gSprites -_080121E0: - ldr r0, _0801224C @ =gBattlerSpriteIds - adds r0, r4, r0 - ldrb r7, [r0] - ldr r2, _08012250 @ =gBattleSpritesDataPtr - ldr r0, [r2] - ldr r0, [r0, 0x4] - adds r1, r6, r4 - lsls r1, 2 - adds r0, r1, r0 - strb r5, [r0, 0x3] - ldr r0, [r2] - ldr r0, [r0, 0x4] - adds r1, r0 - ldrb r0, [r1] - movs r2, 0x4 - orrs r0, r2 - strb r0, [r1] - ldr r2, _08012254 @ =gSprites - lsls r3, r5, 4 - adds r0, r3, r5 - lsls r0, 2 - adds r0, r2 - movs r1, 0xC0 -_0801220E: - strh r1, [r0, 0x2E] - adds r4, r2, 0 - adds r1, r3, r5 - lsls r1, 2 - adds r1, r4 - mov r2, r9 - lsls r0, r2, 24 - asrs r0, 24 - movs r2, 0 - strh r0, [r1, 0x30] - mov r3, r10 - lsls r0, r3, 24 - asrs r0, 24 - strh r0, [r1, 0x32] - strh r7, [r1, 0x34] - mov r0, r8 - strh r0, [r1, 0x36] - lsls r0, r7, 4 - adds r0, r7 - lsls r0, 2 - adds r0, r4 - strh r2, [r0, 0x24] - strh r2, [r0, 0x26] -_0801223C: - pop {r3-r5} - mov r8, r3 - mov r9, r4 - mov r10, r5 - pop {r4-r7} - pop {r0} - bx r0 - .align 2, 0 -_0801224C: .4byte gBattlerSpriteIds -_08012250: .4byte gBattleSpritesDataPtr -_08012254: .4byte gSprites - thumb_func_end DoBounceEffect - - thumb_func_start EndBounceEffect -EndBounceEffect: @ 8012258 - push {r4-r6,lr} - lsls r0, 24 - lsrs r2, r0, 24 - lsls r1, 24 - lsrs r1, 24 - cmp r1, 0x1 - bne _080122AC - ldr r6, _080122A4 @ =gBattleSpritesDataPtr - ldr r0, [r6] - ldr r1, [r0, 0x4] - lsls r0, r2, 1 - adds r0, r2 - lsls r5, r0, 2 - adds r3, r5, r1 - ldrb r1, [r3] - movs r0, 0x2 - ands r0, r1 - cmp r0, 0 - beq _080122FA - ldr r2, _080122A8 @ =gSprites - ldrb r1, [r3, 0x2] - lsls r0, r1, 4 - adds r0, r1 - lsls r0, 2 - adds r0, r2 - ldrh r1, [r0, 0x34] - lsls r1, 24 - lsrs r4, r1, 24 - bl DestroySprite - ldr r0, [r6] - ldr r1, [r0, 0x4] - adds r1, r5, r1 - ldrb r2, [r1] - movs r0, 0x3 - negs r0, r0 - b _080122E6 - .align 2, 0 -_080122A4: .4byte gBattleSpritesDataPtr -_080122A8: .4byte gSprites -_080122AC: - ldr r6, _08012300 @ =gBattleSpritesDataPtr - ldr r0, [r6] - ldr r1, [r0, 0x4] - lsls r0, r2, 1 - adds r0, r2 - lsls r5, r0, 2 - adds r3, r5, r1 - ldrb r1, [r3] - movs r0, 0x4 - ands r0, r1 - cmp r0, 0 - beq _080122FA - ldr r2, _08012304 @ =gSprites - ldrb r1, [r3, 0x3] - lsls r0, r1, 4 - adds r0, r1 - lsls r0, 2 - adds r0, r2 - ldrh r1, [r0, 0x34] - lsls r1, 24 - lsrs r4, r1, 24 - bl DestroySprite - ldr r0, [r6] - ldr r1, [r0, 0x4] - adds r1, r5, r1 - ldrb r2, [r1] - movs r0, 0x5 - negs r0, r0 -_080122E6: - ands r0, r2 - strb r0, [r1] - ldr r0, _08012304 @ =gSprites - lsls r1, r4, 4 - adds r1, r4 - lsls r1, 2 - adds r1, r0 - movs r0, 0 - strh r0, [r1, 0x24] - strh r0, [r1, 0x26] -_080122FA: - pop {r4-r6} - pop {r0} - bx r0 - .align 2, 0 -_08012300: .4byte gBattleSpritesDataPtr -_08012304: .4byte gSprites - thumb_func_end EndBounceEffect - - thumb_func_start SpriteCB_HealthBoxBounce -SpriteCB_HealthBoxBounce: @ 8012308 - push {r4,r5,lr} - adds r4, r0, 0 - ldrh r0, [r4, 0x34] - lsls r0, 24 - lsrs r5, r0, 24 - movs r1, 0x36 - ldrsh r0, [r4, r1] - cmp r0, 0x1 - bne _08012320 - movs r2, 0x2E - ldrsh r0, [r4, r2] - b _08012324 -_08012320: - movs r1, 0x2E - ldrsh r0, [r4, r1] -_08012324: - movs r2, 0x32 - ldrsh r1, [r4, r2] - bl Sin - ldr r2, _08012350 @ =gSprites - lsls r1, r5, 4 - adds r1, r5 - lsls r1, 2 - adds r1, r2 - ldrh r2, [r4, 0x32] - adds r0, r2 - strh r0, [r1, 0x26] - ldrh r0, [r4, 0x30] - ldrh r1, [r4, 0x2E] - adds r0, r1 - movs r1, 0xFF - ands r0, r1 - strh r0, [r4, 0x2E] - pop {r4,r5} - pop {r0} - bx r0 - .align 2, 0 -_08012350: .4byte gSprites - thumb_func_end SpriteCB_HealthBoxBounce - - thumb_func_start sub_8012354 -sub_8012354: @ 8012354 - push {r4,lr} - adds r4, r0, 0 - movs r1, 0x1 - bl StartSpriteAnim - ldr r0, _08012368 @ =sub_8012398 - str r0, [r4, 0x1C] - pop {r4} - pop {r0} - bx r0 - .align 2, 0 -_08012368: .4byte sub_8012398 - thumb_func_end sub_8012354 - - thumb_func_start sub_801236C -sub_801236C: @ 801236C - push {lr} - adds r2, r0, 0 - adds r0, 0x2C - ldrb r1, [r0] - movs r0, 0x3F - ands r0, r1 - cmp r0, 0 - bne _0801238E - ldr r1, _08012394 @ =gUnknown_824F048 - adds r0, r2, 0 - adds r0, 0x2B - ldrb r0, [r0] - adds r0, r1 - ldrb r1, [r0] - adds r0, r2, 0 - adds r0, 0x28 - strb r1, [r0] -_0801238E: - pop {r0} - bx r0 - .align 2, 0 -_08012394: .4byte gUnknown_824F048 - thumb_func_end sub_801236C - - thumb_func_start sub_8012398 -sub_8012398: @ 8012398 - push {r4,lr} - adds r4, r0, 0 - bl sub_801236C - adds r0, r4, 0 - adds r0, 0x3F - ldrb r1, [r0] - movs r0, 0x10 - ands r0, r1 - cmp r0, 0 - beq _080123B2 - ldr r0, _080123B8 @ =nullsub_11 - str r0, [r4, 0x1C] -_080123B2: - pop {r4} - pop {r0} - bx r0 - .align 2, 0 -_080123B8: .4byte nullsub_11 - thumb_func_end sub_8012398 - - thumb_func_start nullsub_12 -nullsub_12: @ 80123BC - bx lr - thumb_func_end nullsub_12 - - thumb_func_start BeginBattleIntro -BeginBattleIntro: @ 80123C0 - push {lr} - bl sub_8012434 - ldr r1, _080123D8 @ =gBattleCommunication - movs r0, 0 - strb r0, [r1, 0x1] - ldr r1, _080123DC @ =gBattleMainFunc - ldr r0, _080123E0 @ =BattleIntroGetMonsData - str r0, [r1] - pop {r0} - bx r0 - .align 2, 0 -_080123D8: .4byte gBattleCommunication -_080123DC: .4byte gBattleMainFunc -_080123E0: .4byte BattleIntroGetMonsData - thumb_func_end BeginBattleIntro - - thumb_func_start sub_80123E4 -sub_80123E4: @ 80123E4 - push {r4,r5,lr} - ldr r0, _08012424 @ =gBattleMainFunc - ldr r0, [r0] - bl _call_via_r0 - ldr r1, _08012428 @ =gActiveBattler - movs r0, 0 - strb r0, [r1] - ldr r0, _0801242C @ =gBattlersCount - ldrb r0, [r0] - cmp r0, 0 - beq _0801241E - ldr r5, _08012430 @ =gBattlerControllerFuncs - adds r4, r1, 0 -_08012400: - ldrb r0, [r4] - lsls r0, 2 - adds r0, r5 - ldr r0, [r0] - bl _call_via_r0 - ldrb r0, [r4] - adds r0, 0x1 - strb r0, [r4] - ldr r1, _0801242C @ =gBattlersCount - lsls r0, 24 - lsrs r0, 24 - ldrb r1, [r1] - cmp r0, r1 - bcc _08012400 -_0801241E: - pop {r4,r5} - pop {r0} - bx r0 - .align 2, 0 -_08012424: .4byte gBattleMainFunc -_08012428: .4byte gActiveBattler -_0801242C: .4byte gBattlersCount -_08012430: .4byte gBattlerControllerFuncs - thumb_func_end sub_80123E4 - - thumb_func_start sub_8012434 -sub_8012434: @ 8012434 - push {r4-r7,lr} - mov r7, r10 - mov r6, r9 - mov r5, r8 - push {r5-r7} - movs r0, 0 - bl TurnValuesCleanUp - bl SpecialStatusesClear - movs r2, 0 - movs r3, 0 - ldr r0, _080126CC @ =gLastResultingMoves - mov r10, r0 - ldr r1, _080126D0 @ =gLastHitByType - mov r12, r1 - ldr r0, _080126D4 @ =gLastLandedMoves - mov r9, r0 - ldr r1, _080126D8 @ =gLastMoves - mov r8, r1 - ldr r4, _080126DC @ =gDisableStructs - movs r5, 0 - ldr r7, _080126E0 @ =gLastPrintedMoves - ldr r6, _080126E4 @ =gLockedMoves -_08012464: - ldr r0, _080126E8 @ =gStatuses3 - adds r0, r5, r0 - str r3, [r0] - movs r1, 0 -_0801246C: - adds r0, r4, r1 - strb r3, [r0] - adds r1, 0x1 - cmp r1, 0x1B - bls _0801246C - movs r0, 0x2 - strb r0, [r4, 0x16] - ldr r1, _080126EC @ =gUnknown_2023DD4 - adds r0, r2, r1 - strb r3, [r0] - mov r0, r8 - strh r3, [r0] - mov r1, r9 - strh r3, [r1] - mov r0, r12 - strh r3, [r0] - mov r1, r10 - strh r3, [r1] - ldr r0, _080126F0 @ =gLastHitBy - adds r1, r2, r0 - movs r0, 0xFF - strb r0, [r1] - strh r3, [r6] - strh r3, [r7] - ldr r1, _080126F4 @ =gBattleResources - ldr r0, [r1] - ldr r0, [r0, 0x4] - adds r0, r5 - str r3, [r0] - movs r0, 0x2 - add r10, r0 - add r12, r0 - add r9, r0 - add r8, r0 - adds r4, 0x1C - adds r5, 0x4 - adds r7, 0x2 - adds r6, 0x2 - adds r2, 0x1 - cmp r2, 0x3 - ble _08012464 - movs r5, 0 - ldr r3, _080126F8 @ =gSideTimers - ldr r4, _080126FC @ =gSideStatuses - movs r2, 0x1 -_080124C6: - strh r5, [r4] - movs r1, 0 -_080124CA: - adds r0, r3, r1 - strb r5, [r0] - adds r1, 0x1 - cmp r1, 0xB - bls _080124CA - adds r3, 0xC - adds r4, 0x2 - subs r2, 0x1 - cmp r2, 0 - bge _080124C6 - movs r1, 0 - ldr r2, _08012700 @ =gBattlerAttacker - strb r1, [r2] - ldr r0, _08012704 @ =gBattlerTarget - strb r1, [r0] - ldr r2, _08012708 @ =gBattleWeather - strh r1, [r2] - ldr r1, _0801270C @ =gWishFutureKnock - movs r2, 0 - movs r3, 0 -_080124F2: - adds r0, r1, r2 - strb r3, [r0] - adds r2, 0x1 - cmp r2, 0x2B - bls _080124F2 - movs r0, 0 - ldr r1, _08012710 @ =gHitMarker - str r0, [r1] - ldr r2, _08012714 @ =gBattleTypeFlags - ldr r0, [r2] - ldr r1, _08012718 @ =0x00010002 - ands r0, r1 - cmp r0, 0 - bne _08012522 - ldr r1, _0801271C @ =gSaveBlock2Ptr - ldr r0, [r1] - ldrb r1, [r0, 0x15] - movs r0, 0x4 - ands r0, r1 - cmp r0, 0 - beq _08012522 - movs r0, 0x80 - ldr r2, _08012710 @ =gHitMarker - str r0, [r2] -_08012522: - ldr r1, _0801271C @ =gSaveBlock2Ptr - ldr r0, [r1] - ldrb r0, [r0, 0x15] - lsls r0, 30 - lsrs r0, 31 - movs r1, 0 - ldr r2, _08012720 @ =gBattleScripting - strb r0, [r2, 0x1D] - ldr r0, _08012724 @ =gMultiHitCounter - strb r1, [r0] - ldr r2, _08012728 @ =gBattleOutcome - strb r1, [r2] - ldr r0, _0801272C @ =gBattleControllerExecFlags - str r1, [r0] - movs r2, 0 - ldr r0, _08012730 @ =gPaydayMoney - strh r1, [r0] - ldr r1, _080126F4 @ =gBattleResources - ldr r0, [r1] - ldr r0, [r0, 0x8] - adds r0, 0x20 - strb r2, [r0] - ldr r0, [r1] - ldr r0, [r0, 0xC] - adds r0, 0x20 - strb r2, [r0] - ldr r1, _08012734 @ =gBattleCommunication - movs r2, 0 - adds r0, r1, 0x7 -_0801255C: - strb r2, [r0] - subs r0, 0x1 - cmp r0, r1 - bge _0801255C - movs r2, 0 - mov r9, r2 - ldr r0, _08012738 @ =gPauseCounterBattle - strh r2, [r0] - movs r0, 0 - ldr r1, _0801273C @ =gBattleMoveDamage - str r0, [r1] - ldr r2, _08012740 @ =gIntroSlideFlags - strh r0, [r2] - mov r1, r9 - ldr r0, _08012720 @ =gBattleScripting - strb r1, [r0, 0x18] - strb r1, [r0, 0x19] - ldr r2, _08012744 @ =gLeveledUpInBattle - strb r1, [r2] - ldr r0, _08012748 @ =gAbsentBattlerFlags - strb r1, [r0] - ldr r7, _0801274C @ =gBattleStruct - ldr r0, [r7] - adds r0, 0x6C - strb r1, [r0] - ldr r0, [r7] - adds r0, 0x79 - strb r1, [r0] - ldr r0, [r7] - adds r0, 0x7A - strb r1, [r0] - ldr r0, _08012750 @ =gEnemyParty - movs r1, 0xB - bl GetMonData - ldr r4, [r7] - adds r4, 0x7C - ldr r1, _08012754 @ =gBaseStats - mov r8, r1 - lsls r1, r0, 3 - subs r1, r0 - lsls r1, 2 - add r1, r8 - ldrb r0, [r1, 0x8] - movs r5, 0x64 - muls r0, r5 - ldr r6, _08012758 @ =0x000004fb - adds r1, r6, 0 - bl __divsi3 - strb r0, [r4] - ldr r0, _08012750 @ =gEnemyParty - movs r1, 0xB - bl GetMonData - ldr r4, [r7] - adds r4, 0x7B - lsls r1, r0, 3 - subs r1, r0 - lsls r1, 2 - add r1, r8 - ldrb r0, [r1, 0x18] - muls r0, r5 - adds r1, r6, 0 - bl __divsi3 - strb r0, [r4] - ldr r0, [r7] - adds r1, r0, 0 - adds r1, 0x7B - ldrb r0, [r1] - cmp r0, 0x1 - bhi _080125F2 - movs r0, 0x2 - strb r0, [r1] -_080125F2: - ldr r0, [r7] - mov r2, r9 - strb r2, [r0, 0x12] - ldr r0, [r7] - adds r0, 0x4A - movs r1, 0x1 - strb r1, [r0] - movs r2, 0 - adds r4, r7, 0 - ldr r5, _0801275C @ =gBattleResults - adds r3, r4, 0 - movs r1, 0 -_0801260A: - ldr r0, [r3] - adds r0, r2, r0 - adds r0, 0x98 - strb r1, [r0] - ldr r0, [r3] - adds r0, r2, r0 - adds r0, 0xB8 - strb r1, [r0] - ldr r0, [r3] - adds r0, r2, r0 - adds r0, 0xC8 - strb r1, [r0] - ldr r0, [r3] - adds r0, r2, r0 - adds r0, 0xD0 - strb r1, [r0] - ldr r0, [r3] - adds r0, r2, r0 - adds r0, 0xE0 - strb r1, [r0] - ldr r0, [r3] - adds r0, r2, r0 - adds r0, 0xE8 - strb r1, [r0] - ldr r0, [r3] - adds r0, r2, r0 - adds r0, 0xF0 - strb r1, [r0] - ldr r0, [r3] - adds r0, r2, r0 - adds r0, 0xF8 - strb r1, [r0] - adds r2, 0x1 - cmp r2, 0x7 - ble _0801260A - ldr r0, [r4] - adds r0, 0x92 - movs r1, 0x6 - strb r1, [r0] - ldr r0, [r4] - adds r0, 0x93 - strb r1, [r0] - ldr r0, [r4] - adds r0, 0xDF - movs r1, 0 - strb r1, [r0] - ldr r0, _0801275C @ =gBattleResults - movs r1, 0 - movs r2, 0xA - adds r0, 0x40 -_0801266E: - strb r1, [r0] - subs r0, 0x1 - subs r2, 0x1 - cmp r2, 0 - bge _0801266E - movs r1, 0 - strb r1, [r5, 0x13] - strb r1, [r5] - strb r1, [r5, 0x1] - strb r1, [r5, 0x2] - strb r1, [r5, 0x3] - strb r1, [r5, 0x4] - ldrb r2, [r5, 0x5] - movs r0, 0x2 - negs r0, r0 - ands r0, r2 - movs r2, 0x3 - negs r2, r2 - ands r0, r2 - strb r0, [r5, 0x5] - strh r1, [r5, 0x20] - strh r1, [r5, 0x22] - strh r1, [r5, 0x24] - strh r1, [r5, 0x6] - strh r1, [r5, 0x26] - strh r1, [r5, 0x28] - movs r2, 0 - adds r4, r5, 0 - adds r4, 0x8 - movs r3, 0 - adds r1, r5, 0 - adds r1, 0x14 -_080126AE: - adds r0, r2, r4 - strb r3, [r0] - strb r3, [r1] - strb r3, [r1, 0x16] - adds r1, 0x1 - adds r2, 0x1 - cmp r2, 0x9 - ble _080126AE - pop {r3-r5} - mov r8, r3 - mov r9, r4 - mov r10, r5 - pop {r4-r7} - pop {r0} - bx r0 - .align 2, 0 -_080126CC: .4byte gLastResultingMoves -_080126D0: .4byte gLastHitByType -_080126D4: .4byte gLastLandedMoves -_080126D8: .4byte gLastMoves -_080126DC: .4byte gDisableStructs -_080126E0: .4byte gLastPrintedMoves -_080126E4: .4byte gLockedMoves -_080126E8: .4byte gStatuses3 -_080126EC: .4byte gUnknown_2023DD4 -_080126F0: .4byte gLastHitBy -_080126F4: .4byte gBattleResources -_080126F8: .4byte gSideTimers -_080126FC: .4byte gSideStatuses -_08012700: .4byte gBattlerAttacker -_08012704: .4byte gBattlerTarget -_08012708: .4byte gBattleWeather -_0801270C: .4byte gWishFutureKnock -_08012710: .4byte gHitMarker -_08012714: .4byte gBattleTypeFlags -_08012718: .4byte 0x00010002 -_0801271C: .4byte gSaveBlock2Ptr -_08012720: .4byte gBattleScripting -_08012724: .4byte gMultiHitCounter -_08012728: .4byte gBattleOutcome -_0801272C: .4byte gBattleControllerExecFlags -_08012730: .4byte gPaydayMoney -_08012734: .4byte gBattleCommunication -_08012738: .4byte gPauseCounterBattle -_0801273C: .4byte gBattleMoveDamage -_08012740: .4byte gIntroSlideFlags -_08012744: .4byte gLeveledUpInBattle -_08012748: .4byte gAbsentBattlerFlags -_0801274C: .4byte gBattleStruct -_08012750: .4byte gEnemyParty -_08012754: .4byte gBaseStats -_08012758: .4byte 0x000004fb -_0801275C: .4byte gBattleResults - thumb_func_end sub_8012434 - - thumb_func_start SwitchInClearSetData -SwitchInClearSetData: @ 8012760 - push {r4-r7,lr} - mov r7, r10 - mov r6, r9 - mov r5, r8 - push {r5-r7} - sub sp, 0x1C - ldr r4, _080128C4 @ =gDisableStructs - ldr r5, _080128C8 @ =gActiveBattler - ldrb r1, [r5] - lsls r0, r1, 3 - subs r0, r1 - lsls r0, 2 - mov r1, sp - adds r0, r4 - ldm r0!, {r2,r3,r6} - stm r1!, {r2,r3,r6} - ldm r0!, {r2,r3,r7} - stm r1!, {r2,r3,r7} - ldr r0, [r0] - str r0, [r1] - ldr r2, _080128CC @ =gBattleMoves - ldr r3, _080128D0 @ =gCurrentMove - ldrh r1, [r3] - lsls r0, r1, 1 - adds r0, r1 - lsls r0, 2 - adds r0, r2 - ldrb r0, [r0] - mov r9, r4 - mov r12, r5 - ldr r6, _080128D4 @ =gStatuses3 - mov r10, r6 - cmp r0, 0x7F - beq _08012838 - movs r5, 0 - mov r4, r12 - movs r3, 0x58 - ldr r2, _080128D8 @ =gBattleMons - adds r2, 0x18 - movs r1, 0x6 -_080127B0: - ldrb r0, [r4] - muls r0, r3 - adds r0, r5, r0 - adds r0, r2 - strb r1, [r0] - adds r5, 0x1 - cmp r5, 0x7 - ble _080127B0 - movs r5, 0 - ldr r7, _080128DC @ =gBattlersCount - ldrb r7, [r7] - cmp r5, r7 - bge _08012824 - ldr r0, _080128E0 @ =gUnknown_2023C34 - mov r8, r0 - ldr r3, _080128C4 @ =gDisableStructs - ldr r4, _080128D4 @ =gStatuses3 -_080127D2: - movs r0, 0x58 - muls r0, r5 - mov r1, r8 - adds r2, r0, r1 - ldr r1, [r2] - movs r0, 0x80 - lsls r0, 19 - ands r0, r1 - cmp r0, 0 - beq _080127F6 - ldrb r0, [r3, 0x14] - ldr r6, _080128C8 @ =gActiveBattler - ldrb r6, [r6] - cmp r0, r6 - bne _080127F6 - ldr r0, _080128E4 @ =0xfbffffff - ands r1, r0 - str r1, [r2] -_080127F6: - ldr r1, [r4] - movs r0, 0x18 - ands r0, r1 - cmp r0, 0 - beq _08012816 - ldrb r0, [r3, 0x15] - ldr r7, _080128C8 @ =gActiveBattler - ldrb r7, [r7] - cmp r0, r7 - bne _08012816 - movs r0, 0x19 - negs r0, r0 - ands r1, r0 - str r1, [r4] - movs r0, 0 - strb r0, [r3, 0x15] -_08012816: - adds r3, 0x1C - adds r4, 0x4 - adds r5, 0x1 - ldr r0, _080128DC @ =gBattlersCount - ldrb r0, [r0] - cmp r5, r0 - blt _080127D2 -_08012824: - ldr r1, _080128D0 @ =gCurrentMove - ldrh r0, [r1] - lsls r1, r0, 1 - adds r1, r0 - lsls r1, 2 - ldr r2, _080128CC @ =gBattleMoves - adds r1, r2 - ldrb r0, [r1] - cmp r0, 0x7F - bne _080128F0 -_08012838: - mov r3, r12 - ldrb r1, [r3] - movs r0, 0x58 - adds r2, r1, 0 - muls r2, r0 - ldr r0, _080128D8 @ =gBattleMons - adds r0, 0x50 - adds r2, r0 - ldr r0, [r2] - ldr r1, _080128E8 @ =0x15100007 - ands r0, r1 - str r0, [r2] - ldrb r1, [r3] - lsls r1, 2 - add r1, r10 - ldr r0, [r1] - ldr r2, _080128EC @ =0x0003043f - ands r0, r2 - str r0, [r1] - movs r5, 0 - ldr r6, _080128DC @ =gBattlersCount - ldrb r6, [r6] - cmp r5, r6 - bge _0801290C - mov r7, r12 - movs r6, 0 -_0801286C: - ldrb r0, [r7] - bl GetBattlerSide - adds r4, r0, 0 - lsls r0, r5, 24 - lsrs r0, 24 - bl GetBattlerSide - lsls r4, 24 - lsls r0, 24 - cmp r4, r0 - beq _080128AC - ldr r1, _080128D4 @ =gStatuses3 - lsls r0, r5, 2 - adds r2, r0, r1 - ldr r1, [r2] - movs r0, 0x18 - ands r0, r1 - cmp r0, 0 - beq _080128AC - ldr r0, _080128C4 @ =gDisableStructs - adds r0, r6, r0 - ldrb r0, [r0, 0x15] - ldrb r3, [r7] - cmp r0, r3 - bne _080128AC - movs r0, 0x19 - negs r0, r0 - ands r1, r0 - movs r0, 0x10 - orrs r1, r0 - str r1, [r2] -_080128AC: - adds r6, 0x1C - adds r5, 0x1 - ldr r0, _080128DC @ =gBattlersCount - ldrb r0, [r0] - cmp r5, r0 - blt _0801286C - ldr r6, _080128C4 @ =gDisableStructs - mov r9, r6 - ldr r7, _080128C8 @ =gActiveBattler - mov r12, r7 - b _0801290C - .align 2, 0 -_080128C4: .4byte gDisableStructs -_080128C8: .4byte gActiveBattler -_080128CC: .4byte gBattleMoves -_080128D0: .4byte gCurrentMove -_080128D4: .4byte gStatuses3 -_080128D8: .4byte gBattleMons -_080128DC: .4byte gBattlersCount -_080128E0: .4byte gUnknown_2023C34 -_080128E4: .4byte 0xfbffffff -_080128E8: .4byte 0x15100007 -_080128EC: .4byte 0x0003043f -_080128F0: - mov r0, r12 - ldrb r1, [r0] - movs r0, 0x58 - muls r0, r1 - ldr r1, _08012B7C @ =gBattleMons - adds r1, 0x50 - adds r0, r1 - movs r1, 0 - str r1, [r0] - mov r2, r12 - ldrb r0, [r2] - lsls r0, 2 - add r0, r10 - str r1, [r0] -_0801290C: - movs r5, 0 - ldr r7, _08012B80 @ =gBattleStruct - ldr r3, _08012B84 @ =gActionSelectionCursor - mov r10, r3 - ldr r6, _08012B88 @ =gBattlersCount - ldrb r6, [r6] - cmp r5, r6 - bge _0801296C - ldr r0, _08012B8C @ =gUnknown_2023C34 - mov r8, r0 - ldr r6, _08012B90 @ =gBitTable - ldr r4, _08012B94 @ =gActiveBattler -_08012924: - movs r0, 0x58 - muls r0, r5 - mov r1, r8 - adds r3, r0, r1 - ldrb r0, [r4] - lsls r0, 2 - adds r0, r6 - ldr r0, [r0] - lsls r2, r0, 16 - ldr r1, [r3] - adds r0, r1, 0 - ands r0, r2 - cmp r0, 0 - beq _08012944 - bics r1, r2 - str r1, [r3] -_08012944: - ldr r1, [r3] - movs r0, 0xE0 - lsls r0, 8 - ands r0, r1 - cmp r0, 0 - beq _08012962 - ldr r0, [r7] - adds r0, r5, r0 - ldrb r0, [r0, 0x14] - ldrb r2, [r4] - cmp r0, r2 - bne _08012962 - ldr r0, _08012B98 @ =0xffff1fff - ands r1, r0 - str r1, [r3] -_08012962: - adds r5, 0x1 - ldr r3, _08012B88 @ =gBattlersCount - ldrb r3, [r3] - cmp r5, r3 - blt _08012924 -_0801296C: - mov r6, r12 - ldrb r0, [r6] - add r0, r10 - movs r1, 0 - strb r1, [r0] - ldrb r0, [r6] - ldr r2, _08012B9C @ =gMoveSelectionCursor - adds r0, r2 - strb r1, [r0] - ldrb r1, [r6] - lsls r0, r1, 3 - subs r0, r1 - lsls r0, 2 - mov r3, r9 - adds r1, r0, r3 - movs r5, 0 - movs r2, 0 -_0801298E: - adds r0, r1, r5 - strb r2, [r0] - adds r5, 0x1 - cmp r5, 0x1B - bls _0801298E - ldr r6, _08012BA0 @ =gCurrentMove - ldrh r0, [r6] - lsls r1, r0, 1 - adds r1, r0 - lsls r1, 2 - ldr r0, _08012BA4 @ =gBattleMoves - adds r1, r0 - ldrb r0, [r1] - cmp r0, 0x7F - bne _08012A1A - mov r2, r12 - ldrb r1, [r2] - lsls r0, r1, 3 - subs r0, r1 - lsls r0, 2 - add r0, r9 - mov r1, sp - ldrb r1, [r1, 0xA] - strb r1, [r0, 0xA] - ldrb r1, [r2] - lsls r0, r1, 3 - subs r0, r1 - lsls r0, 2 - add r0, r9 - mov r1, sp - ldrb r1, [r1, 0x15] - strb r1, [r0, 0x15] - ldrb r0, [r2] - lsls r1, r0, 3 - subs r1, r0 - lsls r1, 2 - add r1, r9 - mov r0, sp - ldrb r2, [r0, 0xF] - lsls r2, 28 - movs r4, 0xF - lsrs r2, 28 - ldrb r3, [r1, 0xF] - movs r0, 0x10 - negs r0, r0 - ands r0, r3 - orrs r0, r2 - strb r0, [r1, 0xF] - mov r3, r12 - ldrb r1, [r3] - lsls r0, r1, 3 - subs r0, r1 - lsls r0, 2 - add r0, r9 - mov r1, sp - ldrb r1, [r1, 0xF] - lsrs r1, 4 - lsls r1, 4 - ldrb r2, [r0, 0xF] - ands r4, r2 - orrs r4, r1 - strb r4, [r0, 0xF] - ldrb r1, [r3] - lsls r0, r1, 3 - subs r0, r1 - lsls r0, 2 - add r0, r9 - mov r1, sp - ldrb r1, [r1, 0x14] - strb r1, [r0, 0x14] -_08012A1A: - movs r0, 0 - ldr r6, _08012BA8 @ =gMoveResultFlags - strb r0, [r6] - mov r0, r12 - ldrb r1, [r0] - lsls r0, r1, 3 - subs r0, r1 - lsls r0, 2 - add r0, r9 - movs r2, 0 - movs r1, 0x2 - strb r1, [r0, 0x16] - mov r1, r12 - ldrb r0, [r1] - lsls r0, 1 - ldr r3, _08012BAC @ =gLastMoves - adds r0, r3 - movs r3, 0 - strh r2, [r0] - ldrb r0, [r1] - lsls r0, 1 - ldr r6, _08012BB0 @ =gLastLandedMoves - adds r0, r6 - strh r2, [r0] - ldrb r0, [r1] - lsls r0, 1 - ldr r1, _08012BB4 @ =gLastHitByType - adds r0, r1 - strh r2, [r0] - mov r6, r12 - ldrb r0, [r6] - lsls r0, 1 - ldr r1, _08012BB8 @ =gLastResultingMoves - adds r0, r1 - strh r2, [r0] - ldrb r0, [r6] - lsls r0, 1 - ldr r6, _08012BBC @ =gLastPrintedMoves - adds r0, r6 - strh r2, [r0] - mov r1, r12 - ldrb r0, [r1] - ldr r2, _08012BC0 @ =gLastHitBy - adds r0, r2 - movs r1, 0xFF - strb r1, [r0] - mov r6, r12 - ldrb r0, [r6] - ldr r1, [r7] - lsls r0, 1 - adds r0, r1 - adds r0, 0x98 - strb r3, [r0] - ldrb r0, [r6] - ldr r1, [r7] - lsls r0, 1 - adds r0, r1 - adds r0, 0x99 - strb r3, [r0] - ldrb r0, [r6] - ldr r1, [r7] - lsls r0, 3 - adds r0, r1 - adds r0, 0xE0 - strb r3, [r0] - ldrb r0, [r6] - ldr r1, [r7] - lsls r0, 3 - adds r0, r1 - adds r0, 0xE1 - strb r3, [r0] - ldrb r0, [r6] - ldr r1, [r7] - lsls r0, 3 - adds r0, r1 - adds r0, 0xE2 - strb r3, [r0] - ldrb r0, [r6] - ldr r1, [r7] - lsls r0, 3 - adds r0, r1 - adds r0, 0xE3 - strb r3, [r0] - ldrb r0, [r6] - ldr r1, [r7] - lsls r0, 3 - adds r0, r1 - adds r0, 0xE4 - strb r3, [r0] - ldrb r0, [r6] - ldr r1, [r7] - lsls r0, 3 - adds r0, r1 - adds r0, 0xE5 - strb r3, [r0] - ldrb r0, [r6] - ldr r1, [r7] - lsls r0, 3 - adds r0, r1 - adds r0, 0xE6 - strb r3, [r0] - ldrb r0, [r6] - ldr r1, [r7] - lsls r0, 3 - adds r0, r1 - adds r0, 0xE7 - strb r3, [r0] - movs r5, 0 - ldr r0, _08012B88 @ =gBattlersCount - ldrb r0, [r0] - cmp r5, r0 - bge _08012B3C - adds r4, r7, 0 -_08012AFC: - ldrb r1, [r6] - cmp r5, r1 - beq _08012B14 - ldr r0, [r4] - lsls r1, r5, 1 - adds r0, r1, r0 - adds r0, 0x98 - strb r3, [r0] - ldr r0, [r4] - adds r1, r0 - adds r1, 0x99 - strb r3, [r1] -_08012B14: - ldrb r0, [r6] - ldr r1, [r4] - lsls r0, 1 - lsls r2, r5, 3 - adds r0, r2 - adds r0, r1 - adds r0, 0xE0 - strb r3, [r0] - ldrb r0, [r6] - ldr r1, [r4] - lsls r0, 1 - adds r0, r2 - adds r0, r1 - adds r0, 0xE1 - strb r3, [r0] - adds r5, 0x1 - ldr r2, _08012B88 @ =gBattlersCount - ldrb r2, [r2] - cmp r5, r2 - blt _08012AFC -_08012B3C: - mov r3, r12 - ldrb r0, [r3] - ldr r1, [r7] - lsls r0, 1 - adds r0, r1 - adds r0, 0xC8 - movs r2, 0 - strb r2, [r0] - ldrb r0, [r3] - ldr r1, [r7] - lsls r0, 1 - adds r0, r1 - adds r0, 0xC9 - strb r2, [r0] - ldr r6, _08012BC4 @ =gBattleResources - ldr r0, [r6] - ldr r1, [r0, 0x4] - ldrb r0, [r3] - lsls r0, 2 - adds r1, r0 - movs r0, 0 - str r0, [r1] - ldr r7, _08012BA0 @ =gCurrentMove - strh r0, [r7] - add sp, 0x1C - pop {r3-r5} - mov r8, r3 - mov r9, r4 - mov r10, r5 - pop {r4-r7} - pop {r0} - bx r0 - .align 2, 0 -_08012B7C: .4byte gBattleMons -_08012B80: .4byte gBattleStruct -_08012B84: .4byte gActionSelectionCursor -_08012B88: .4byte gBattlersCount -_08012B8C: .4byte gUnknown_2023C34 -_08012B90: .4byte gBitTable -_08012B94: .4byte gActiveBattler -_08012B98: .4byte 0xffff1fff -_08012B9C: .4byte gMoveSelectionCursor -_08012BA0: .4byte gCurrentMove -_08012BA4: .4byte gBattleMoves -_08012BA8: .4byte gMoveResultFlags -_08012BAC: .4byte gLastMoves -_08012BB0: .4byte gLastLandedMoves -_08012BB4: .4byte gLastHitByType -_08012BB8: .4byte gLastResultingMoves -_08012BBC: .4byte gLastPrintedMoves -_08012BC0: .4byte gLastHitBy -_08012BC4: .4byte gBattleResources - thumb_func_end SwitchInClearSetData - - thumb_func_start FaintClearSetData -FaintClearSetData: @ 8012BC8 - push {r4-r7,lr} - mov r7, r10 - mov r6, r9 - mov r5, r8 - push {r5-r7} - movs r3, 0 - ldr r7, _08012F5C @ =gActiveBattler - ldr r6, _08012F60 @ =gStatuses3 - ldr r0, _08012F64 @ =gActionSelectionCursor - mov r8, r0 - ldr r1, _08012F68 @ =gMoveSelectionCursor - mov r9, r1 - ldr r2, _08012F6C @ =gProtectStructs - mov r12, r2 - adds r5, r7, 0 - movs r4, 0x58 - ldr r2, _08012F70 @ =gBattleMons - adds r2, 0x18 - movs r1, 0x6 -_08012BEE: - ldrb r0, [r5] - muls r0, r4 - adds r0, r3, r0 - adds r0, r2 - strb r1, [r0] - adds r3, 0x1 - cmp r3, 0x7 - ble _08012BEE - ldrb r1, [r7] - movs r0, 0x58 - muls r0, r1 - ldr r2, _08012F70 @ =gBattleMons - adds r2, 0x50 - adds r0, r2 - movs r1, 0 - str r1, [r0] - ldrb r0, [r7] - lsls r0, 2 - adds r0, r6 - str r1, [r0] - movs r3, 0 - ldr r0, _08012F74 @ =gBattlersCount - ldrb r0, [r0] - cmp r3, r0 - bge _08012C8A - adds r4, r2, 0 - movs r5, 0 - ldr r6, _08012F78 @ =gBitTable -_08012C26: - ldr r1, [r4] - movs r0, 0x80 - lsls r0, 19 - ands r0, r1 - cmp r0, 0 - beq _08012C44 - ldr r2, _08012F7C @ =gDisableStructs - adds r0, r5, r2 - ldrb r0, [r0, 0x14] - ldrb r2, [r7] - cmp r0, r2 - bne _08012C44 - ldr r0, _08012F80 @ =0xfbffffff - ands r1, r0 - str r1, [r4] -_08012C44: - ldrb r0, [r7] - lsls r0, 2 - adds r0, r6 - ldr r0, [r0] - lsls r2, r0, 16 - ldr r1, [r4] - adds r0, r1, 0 - ands r0, r2 - cmp r0, 0 - beq _08012C5C - bics r1, r2 - str r1, [r4] -_08012C5C: - ldr r1, [r4] - movs r0, 0xE0 - lsls r0, 8 - ands r0, r1 - cmp r0, 0 - beq _08012C7C - ldr r2, _08012F84 @ =gBattleStruct - ldr r0, [r2] - adds r0, r3, r0 - ldrb r0, [r0, 0x14] - ldrb r2, [r7] - cmp r0, r2 - bne _08012C7C - ldr r0, _08012F88 @ =0xffff1fff - ands r1, r0 - str r1, [r4] -_08012C7C: - adds r4, 0x58 - adds r5, 0x1C - adds r3, 0x1 - ldr r0, _08012F74 @ =gBattlersCount - ldrb r0, [r0] - cmp r3, r0 - blt _08012C26 -_08012C8A: - ldrb r0, [r7] - add r0, r8 - movs r1, 0 - strb r1, [r0] - ldrb r0, [r7] - add r0, r9 - strb r1, [r0] - ldrb r1, [r7] - lsls r0, r1, 3 - subs r0, r1 - lsls r0, 2 - ldr r2, _08012F7C @ =gDisableStructs - adds r1, r0, r2 - movs r3, 0 - movs r2, 0 -_08012CA8: - adds r0, r1, r3 - strb r2, [r0] - adds r3, 0x1 - cmp r3, 0x1B - bls _08012CA8 - ldrb r1, [r7] - lsls r1, 4 - add r1, r12 - ldrb r2, [r1] - movs r0, 0x2 - negs r0, r0 - mov r9, r0 - ands r0, r2 - strb r0, [r1] - ldrb r1, [r7] - lsls r1, 4 - add r1, r12 - ldrb r2, [r1] - movs r0, 0x3 - negs r0, r0 - mov r8, r0 - ands r0, r2 - strb r0, [r1] - ldrb r1, [r7] - lsls r1, 4 - add r1, r12 - ldrb r2, [r1] - movs r6, 0x5 - negs r6, r6 - adds r0, r6, 0 - ands r0, r2 - strb r0, [r1] - ldrb r1, [r7] - lsls r1, 4 - add r1, r12 - ldrb r2, [r1] - movs r0, 0x9 - negs r0, r0 - mov r10, r0 - ands r0, r2 - strb r0, [r1] - ldrb r1, [r7] - lsls r1, 4 - add r1, r12 - ldrb r2, [r1] - movs r0, 0x11 - negs r0, r0 - ands r0, r2 - strb r0, [r1] - ldrb r1, [r7] - lsls r1, 4 - add r1, r12 - ldrb r2, [r1] - movs r5, 0x21 - negs r5, r5 - adds r0, r5, 0 - ands r0, r2 - strb r0, [r1] - ldrb r1, [r7] - lsls r1, 4 - add r1, r12 - ldrb r2, [r1] - movs r4, 0x41 - negs r4, r4 - adds r0, r4, 0 - ands r0, r2 - strb r0, [r1] - ldrb r1, [r7] - lsls r1, 4 - add r1, r12 - ldrb r2, [r1] - movs r3, 0x7F - adds r0, r3, 0 - ands r0, r2 - strb r0, [r1] - ldrb r1, [r7] - lsls r1, 4 - add r1, r12 - ldrb r2, [r1, 0x1] - mov r0, r9 - ands r0, r2 - strb r0, [r1, 0x1] - ldrb r1, [r7] - lsls r1, 4 - add r1, r12 - ldrb r2, [r1, 0x1] - mov r0, r8 - ands r0, r2 - strb r0, [r1, 0x1] - ldrb r1, [r7] - lsls r1, 4 - add r1, r12 - ldrb r2, [r1, 0x1] - adds r0, r6, 0 - ands r0, r2 - strb r0, [r1, 0x1] - ldrb r1, [r7] - lsls r1, 4 - add r1, r12 - ldrb r2, [r1, 0x1] - movs r0, 0x19 - negs r0, r0 - ands r0, r2 - strb r0, [r1, 0x1] - ldrb r0, [r7] - lsls r0, 4 - add r0, r12 - ldrb r1, [r0, 0x1] - ands r5, r1 - strb r5, [r0, 0x1] - ldrb r0, [r7] - lsls r0, 4 - add r0, r12 - ldrb r1, [r0, 0x1] - ands r4, r1 - strb r4, [r0, 0x1] - ldrb r0, [r7] - lsls r0, 4 - add r0, r12 - ldrb r1, [r0, 0x1] - ands r3, r1 - strb r3, [r0, 0x1] - ldrb r0, [r7] - lsls r0, 4 - add r0, r12 - ldrb r1, [r0, 0x2] - mov r2, r9 - ands r2, r1 - strb r2, [r0, 0x2] - ldrb r0, [r7] - lsls r0, 4 - add r0, r12 - ldrb r1, [r0, 0x2] - mov r2, r8 - ands r2, r1 - strb r2, [r0, 0x2] - ldrb r0, [r7] - lsls r0, 4 - add r0, r12 - ldrb r1, [r0, 0x2] - ands r6, r1 - strb r6, [r0, 0x2] - ldrb r0, [r7] - lsls r0, 4 - add r0, r12 - ldrb r1, [r0, 0x2] - mov r2, r10 - ands r2, r1 - strb r2, [r0, 0x2] - ldrb r1, [r7] - lsls r0, r1, 3 - subs r0, r1 - lsls r0, 2 - ldr r1, _08012F7C @ =gDisableStructs - adds r0, r1 - movs r2, 0 - movs r1, 0x2 - strb r1, [r0, 0x16] - ldrb r0, [r7] - lsls r0, 1 - ldr r1, _08012F8C @ =gLastMoves - adds r0, r1 - movs r3, 0 - strh r2, [r0] - ldrb r0, [r7] - lsls r0, 1 - ldr r1, _08012F90 @ =gLastLandedMoves - adds r0, r1 - strh r2, [r0] - ldrb r0, [r7] - lsls r0, 1 - ldr r1, _08012F94 @ =gLastHitByType - adds r0, r1 - strh r2, [r0] - ldrb r0, [r7] - lsls r0, 1 - ldr r1, _08012F98 @ =gLastResultingMoves - adds r0, r1 - strh r2, [r0] - ldrb r0, [r7] - lsls r0, 1 - ldr r1, _08012F9C @ =gLastPrintedMoves - adds r0, r1 - strh r2, [r0] - ldrb r0, [r7] - ldr r2, _08012FA0 @ =gLastHitBy - adds r0, r2 - movs r1, 0xFF - strb r1, [r0] - ldrb r0, [r7] - ldr r2, _08012F84 @ =gBattleStruct - ldr r1, [r2] - lsls r0, 1 - adds r0, r1 - adds r0, 0xC8 - strb r3, [r0] - ldrb r0, [r7] - ldr r1, [r2] - lsls r0, 1 - adds r0, r1 - adds r0, 0xC9 - strb r3, [r0] - ldrb r0, [r7] - ldr r1, [r2] - lsls r0, 1 - adds r0, r1 - adds r0, 0x98 - strb r3, [r0] - ldrb r0, [r7] - ldr r1, [r2] - lsls r0, 1 - adds r0, r1 - adds r0, 0x99 - strb r3, [r0] - ldrb r0, [r7] - ldr r1, [r2] - lsls r0, 3 - adds r0, r1 - adds r0, 0xE0 - strb r3, [r0] - ldrb r0, [r7] - ldr r1, [r2] - lsls r0, 3 - adds r0, r1 - adds r0, 0xE1 - strb r3, [r0] - ldrb r0, [r7] - ldr r1, [r2] - lsls r0, 3 - adds r0, r1 - adds r0, 0xE2 - strb r3, [r0] - ldrb r0, [r7] - ldr r1, [r2] - lsls r0, 3 - adds r0, r1 - adds r0, 0xE3 - strb r3, [r0] - ldrb r0, [r7] - ldr r1, [r2] - lsls r0, 3 - adds r0, r1 - adds r0, 0xE4 - strb r3, [r0] - ldrb r0, [r7] - ldr r1, [r2] - lsls r0, 3 - adds r0, r1 - adds r0, 0xE5 - strb r3, [r0] - ldrb r0, [r7] - ldr r1, [r2] - lsls r0, 3 - adds r0, r1 - adds r0, 0xE6 - strb r3, [r0] - ldrb r0, [r7] - ldr r1, [r2] - lsls r0, 3 - adds r0, r1 - adds r0, 0xE7 - strb r3, [r0] - movs r3, 0 - ldr r0, _08012F74 @ =gBattlersCount - ldrb r0, [r0] - cmp r3, r0 - bge _08012F04 - adds r6, r7, 0 - adds r5, r2, 0 - movs r4, 0 -_08012EC4: - ldrb r1, [r6] - cmp r3, r1 - beq _08012EDC - ldr r0, [r5] - lsls r1, r3, 1 - adds r0, r1, r0 - adds r0, 0x98 - strb r4, [r0] - ldr r0, [r5] - adds r1, r0 - adds r1, 0x99 - strb r4, [r1] -_08012EDC: - ldrb r0, [r6] - ldr r1, [r5] - lsls r0, 1 - lsls r2, r3, 3 - adds r0, r2 - adds r0, r1 - adds r0, 0xE0 - strb r4, [r0] - ldrb r0, [r6] - ldr r1, [r5] - lsls r0, 1 - adds r0, r2 - adds r0, r1 - adds r0, 0xE1 - strb r4, [r0] - adds r3, 0x1 - ldr r2, _08012F74 @ =gBattlersCount - ldrb r2, [r2] - cmp r3, r2 - blt _08012EC4 -_08012F04: - ldr r1, _08012FA4 @ =gBattleResources - ldr r0, [r1] - ldr r1, [r0, 0x4] - ldrb r0, [r7] - lsls r0, 2 - adds r1, r0 - movs r0, 0 - str r0, [r1] - ldrb r0, [r7] - movs r3, 0x58 - adds r1, r0, 0 - muls r1, r3 - ldr r2, _08012F70 @ =gBattleMons - adds r1, r2 - ldrh r2, [r1] - lsls r0, r2, 3 - subs r0, r2 - lsls r0, 2 - ldr r2, _08012FA8 @ =gBaseStats - adds r0, r2 - ldrb r0, [r0, 0x6] - adds r1, 0x21 - strb r0, [r1] - ldrb r0, [r7] - adds r1, r0, 0 - muls r1, r3 - ldr r0, _08012F70 @ =gBattleMons - adds r1, r0 - ldrh r2, [r1] - lsls r0, r2, 3 - subs r0, r2 - lsls r0, 2 - ldr r2, _08012FA8 @ =gBaseStats - adds r0, r2 - ldrb r0, [r0, 0x7] - adds r1, 0x22 - strb r0, [r1] - pop {r3-r5} - mov r8, r3 - mov r9, r4 - mov r10, r5 - pop {r4-r7} - pop {r0} - bx r0 - .align 2, 0 -_08012F5C: .4byte gActiveBattler -_08012F60: .4byte gStatuses3 -_08012F64: .4byte gActionSelectionCursor -_08012F68: .4byte gMoveSelectionCursor -_08012F6C: .4byte gProtectStructs -_08012F70: .4byte gBattleMons -_08012F74: .4byte gBattlersCount -_08012F78: .4byte gBitTable -_08012F7C: .4byte gDisableStructs -_08012F80: .4byte 0xfbffffff -_08012F84: .4byte gBattleStruct -_08012F88: .4byte 0xffff1fff -_08012F8C: .4byte gLastMoves -_08012F90: .4byte gLastLandedMoves -_08012F94: .4byte gLastHitByType -_08012F98: .4byte gLastResultingMoves -_08012F9C: .4byte gLastPrintedMoves -_08012FA0: .4byte gLastHitBy -_08012FA4: .4byte gBattleResources -_08012FA8: .4byte gBaseStats - thumb_func_end FaintClearSetData - - thumb_func_start BattleIntroGetMonsData -BattleIntroGetMonsData: @ 8012FAC - push {r4,r5,lr} - ldr r5, _08012FBC @ =gBattleCommunication - ldrb r0, [r5] - cmp r0, 0 - beq _08012FC0 - cmp r0, 0x1 - beq _08012FE4 - b _0801301A - .align 2, 0 -_08012FBC: .4byte gBattleCommunication -_08012FC0: - ldr r4, _08012FE0 @ =gActiveBattler - ldrb r0, [r5, 0x1] - strb r0, [r4] - movs r0, 0 - movs r1, 0 - movs r2, 0 - bl BtlController_EmitGetMonData - ldrb r0, [r4] - bl MarkBattlerForControllerExec - ldrb r0, [r5] - adds r0, 0x1 - strb r0, [r5] - b _0801301A - .align 2, 0 -_08012FE0: .4byte gActiveBattler -_08012FE4: - ldr r0, _08013008 @ =gBattleControllerExecFlags - ldr r2, [r0] - cmp r2, 0 - bne _0801301A - ldrb r0, [r5, 0x1] - adds r0, 0x1 - strb r0, [r5, 0x1] - ldr r1, _0801300C @ =gBattlersCount - lsls r0, 24 - lsrs r0, 24 - ldrb r1, [r1] - cmp r0, r1 - bne _08013018 - ldr r1, _08013010 @ =gBattleMainFunc - ldr r0, _08013014 @ =BattleIntroPrepareBackgroundSlide - str r0, [r1] - b _0801301A - .align 2, 0 -_08013008: .4byte gBattleControllerExecFlags -_0801300C: .4byte gBattlersCount -_08013010: .4byte gBattleMainFunc -_08013014: .4byte BattleIntroPrepareBackgroundSlide -_08013018: - strb r2, [r5] -_0801301A: - pop {r4,r5} - pop {r0} - bx r0 - thumb_func_end BattleIntroGetMonsData - - thumb_func_start BattleIntroPrepareBackgroundSlide -BattleIntroPrepareBackgroundSlide: @ 8013020 - push {r4,r5,lr} - ldr r0, _08013058 @ =gBattleControllerExecFlags - ldr r5, [r0] - cmp r5, 0 - bne _08013050 - movs r0, 0 - bl GetBattlerAtPosition - ldr r4, _0801305C @ =gActiveBattler - strb r0, [r4] - ldr r0, _08013060 @ =gBattleTerrain - ldrb r1, [r0] - movs r0, 0 - bl BtlController_EmitIntroSlide - ldrb r0, [r4] - bl MarkBattlerForControllerExec - ldr r1, _08013064 @ =gBattleMainFunc - ldr r0, _08013068 @ =sub_8013070 - str r0, [r1] - ldr r0, _0801306C @ =gBattleCommunication - strb r5, [r0] - strb r5, [r0, 0x1] -_08013050: - pop {r4,r5} - pop {r0} - bx r0 - .align 2, 0 -_08013058: .4byte gBattleControllerExecFlags -_0801305C: .4byte gActiveBattler -_08013060: .4byte gBattleTerrain -_08013064: .4byte gBattleMainFunc -_08013068: .4byte sub_8013070 -_0801306C: .4byte gBattleCommunication - thumb_func_end BattleIntroPrepareBackgroundSlide - - thumb_func_start sub_8013070 -sub_8013070: @ 8013070 - push {r4-r7,lr} - mov r7, r10 - mov r6, r9 - mov r5, r8 - push {r5-r7} - ldr r0, _080130D4 @ =gBattleControllerExecFlags - ldr r1, [r0] - cmp r1, 0 - beq _08013084 - b _08013314 -_08013084: - ldr r2, _080130D8 @ =gActiveBattler - strb r1, [r2] - ldr r0, _080130DC @ =gBattlersCount - ldrb r0, [r0] - cmp r1, r0 - bcc _08013092 - b _0801330E -_08013092: - movs r7, 0x58 - ldr r0, _080130E0 @ =gBattleMons - mov r8, r0 - mov r9, r2 - movs r1, 0x48 - add r1, r8 - mov r10, r1 -_080130A0: - ldr r0, _080130E4 @ =gBattleTypeFlags - ldr r0, [r0] - movs r1, 0x80 - ands r0, r1 - cmp r0, 0 - beq _080130E8 - ldr r4, _080130D8 @ =gActiveBattler - ldrb r0, [r4] - bl GetBattlerSide - lsls r0, 24 - cmp r0, 0 - bne _080130E8 - ldrb r0, [r4] - muls r0, r7 - mov r2, r8 - adds r3, r0, r2 - movs r2, 0 - movs r1, 0 -_080130C6: - adds r0, r3, r2 - strb r1, [r0] - adds r2, 0x1 - cmp r2, 0x57 - bls _080130C6 - b _080131B6 - .align 2, 0 -_080130D4: .4byte gBattleControllerExecFlags -_080130D8: .4byte gActiveBattler -_080130DC: .4byte gBattlersCount -_080130E0: .4byte gBattleMons -_080130E4: .4byte gBattleTypeFlags -_080130E8: - mov r1, r9 - ldrb r0, [r1] - muls r0, r7 - mov r2, r8 - adds r3, r0, r2 - movs r2, 0 - ldr r6, _08013230 @ =gBaseStats - ldr r5, _08013234 @ =gBattleBufferB - ldr r4, _08013238 @ =gActiveBattler -_080130FA: - adds r0, r3, r2 - ldrb r1, [r4] - lsls r1, 9 - adds r1, 0x4 - adds r1, r2, r1 - adds r1, r5 - ldrb r1, [r1] - strb r1, [r0] - adds r2, 0x1 - cmp r2, 0x57 - bls _080130FA - mov r1, r9 - ldrb r0, [r1] - adds r2, r0, 0 - muls r2, r7 - add r2, r8 - ldrh r1, [r2] - lsls r0, r1, 3 - subs r0, r1 - lsls r0, 2 - adds r0, r6 - ldrb r0, [r0, 0x6] - adds r2, 0x21 - strb r0, [r2] - mov r2, r9 - ldrb r0, [r2] - adds r2, r0, 0 - muls r2, r7 - add r2, r8 - ldrh r1, [r2] - lsls r0, r1, 3 - subs r0, r1 - lsls r0, 2 - adds r0, r6 - ldrb r0, [r0, 0x7] - adds r2, 0x22 - strb r0, [r2] - mov r1, r9 - ldrb r0, [r1] - adds r1, r0, 0 - muls r1, r7 - add r1, r8 - ldrh r0, [r1] - ldrb r1, [r1, 0x17] - lsrs r1, 7 - bl GetAbilityBySpecies - mov r2, r9 - ldrb r1, [r2] - muls r1, r7 - add r1, r8 - adds r1, 0x20 - strb r0, [r1] - ldrb r0, [r2] - bl GetBattlerSide - ldr r1, _0801323C @ =gBattleStruct - lsls r0, 24 - lsrs r0, 23 - adds r0, 0xA8 - ldr r1, [r1] - adds r1, r0 - mov r2, r9 - ldrb r0, [r2] - muls r0, r7 - add r0, r8 - ldrh r0, [r0, 0x28] - strh r0, [r1] - movs r2, 0 - ldr r4, _08013238 @ =gActiveBattler - movs r5, 0x58 - ldr r1, _08013240 @ =gUnknown_2023BFC - adds r6, r4, 0 - movs r0, 0x18 - negs r0, r0 - adds r0, r1 - mov r12, r0 - movs r3, 0x6 -_08013196: - ldrb r0, [r4] - muls r0, r5 - adds r0, r2, r0 - adds r0, r1 - strb r3, [r0] - adds r2, 0x1 - cmp r2, 0x7 - ble _08013196 - ldrb r0, [r6] - adds r1, r0, 0 - muls r1, r7 - mov r0, r12 - adds r0, 0x50 - adds r1, r0 - movs r0, 0 - str r0, [r1] -_080131B6: - ldr r4, _08013238 @ =gActiveBattler - ldrb r0, [r4] - bl GetBattlerPosition - lsls r0, 24 - cmp r0, 0 - bne _080131D0 - movs r0, 0 - bl BtlController_EmitDrawTrainerPic - ldrb r0, [r4] - bl MarkBattlerForControllerExec -_080131D0: - ldr r5, _08013244 @ =gBattleTypeFlags - ldr r0, [r5] - movs r1, 0x8 - ands r0, r1 - cmp r0, 0 - beq _0801324C - ldrb r0, [r4] - bl GetBattlerPosition - lsls r0, 24 - lsrs r0, 24 - cmp r0, 0x1 - bne _080131F6 - movs r0, 0 - bl BtlController_EmitDrawTrainerPic - ldrb r0, [r4] - bl MarkBattlerForControllerExec -_080131F6: - ldrb r0, [r4] - bl GetBattlerSide - lsls r0, 24 - lsrs r0, 24 - cmp r0, 0x1 - bne _080132C2 - ldr r0, [r5] - ldr r1, _08013248 @ =0x0001aa02 - ands r0, r1 - cmp r0, 0 - bne _080132C2 - ldrb r0, [r4] - muls r0, r7 - add r0, r8 - ldrh r0, [r0] - bl SpeciesToNationalPokedexNum - lsls r0, 16 - lsrs r0, 16 - ldrb r1, [r4] - muls r1, r7 - add r1, r10 - ldr r2, [r1] - movs r1, 0x2 - bl HandleSetPokedexFlag - b _080132C2 - .align 2, 0 -_08013230: .4byte gBaseStats -_08013234: .4byte gBattleBufferB -_08013238: .4byte gActiveBattler -_0801323C: .4byte gBattleStruct -_08013240: .4byte gUnknown_2023BFC -_08013244: .4byte gBattleTypeFlags -_08013248: .4byte 0x0001aa02 -_0801324C: - ldrb r0, [r4] - bl GetBattlerSide - lsls r0, 24 - lsrs r0, 24 - cmp r0, 0x1 - bne _080132C2 - ldr r1, [r5] - movs r2, 0xA0 - lsls r2, 8 - ands r2, r1 - cmp r2, 0 - beq _0801328E - movs r0, 0x80 - lsls r0, 8 - cmp r2, r0 - beq _080132B4 - ldrb r0, [r4] - muls r0, r7 - add r0, r8 - ldrh r0, [r0] - bl SpeciesToNationalPokedexNum - lsls r0, 16 - lsrs r0, 16 - ldrb r1, [r4] - muls r1, r7 - add r1, r10 - ldr r2, [r1] - movs r1, 0x2 - bl HandleSetPokedexFlag - b _080132B4 -_0801328E: - ldr r0, _08013324 @ =0x0001aa02 - ands r1, r0 - cmp r1, 0 - bne _080132B4 - ldrb r0, [r4] - muls r0, r7 - add r0, r8 - ldrh r0, [r0] - bl SpeciesToNationalPokedexNum - lsls r0, 16 - lsrs r0, 16 - ldrb r1, [r4] - muls r1, r7 - add r1, r10 - ldr r2, [r1] - movs r1, 0x2 - bl HandleSetPokedexFlag -_080132B4: - movs r0, 0 - bl BtlController_EmitLoadMonSprite - mov r1, r9 - ldrb r0, [r1] - bl MarkBattlerForControllerExec -_080132C2: - ldr r0, _08013328 @ =gBattleTypeFlags - ldr r0, [r0] - movs r1, 0x40 - ands r0, r1 - cmp r0, 0 - beq _080132F8 - ldr r4, _0801332C @ =gActiveBattler - ldrb r0, [r4] - bl GetBattlerPosition - lsls r0, 24 - lsrs r0, 24 - cmp r0, 0x2 - beq _080132EC - ldrb r0, [r4] - bl GetBattlerPosition - lsls r0, 24 - lsrs r0, 24 - cmp r0, 0x3 - bne _080132F8 -_080132EC: - movs r0, 0 - bl BtlController_EmitDrawTrainerPic - ldrb r0, [r4] - bl MarkBattlerForControllerExec -_080132F8: - mov r2, r9 - ldrb r0, [r2] - adds r0, 0x1 - strb r0, [r2] - ldr r1, _08013330 @ =gBattlersCount - lsls r0, 24 - lsrs r0, 24 - ldrb r1, [r1] - cmp r0, r1 - bcs _0801330E - b _080130A0 -_0801330E: - ldr r1, _08013334 @ =gBattleMainFunc - ldr r0, _08013338 @ =BattleIntroDrawPartySummaryScreens - str r0, [r1] -_08013314: - pop {r3-r5} - mov r8, r3 - mov r9, r4 - mov r10, r5 - pop {r4-r7} - pop {r0} - bx r0 - .align 2, 0 -_08013324: .4byte 0x0001aa02 -_08013328: .4byte gBattleTypeFlags -_0801332C: .4byte gActiveBattler -_08013330: .4byte gBattlersCount -_08013334: .4byte gBattleMainFunc -_08013338: .4byte BattleIntroDrawPartySummaryScreens - thumb_func_end sub_8013070 - - thumb_func_start BattleIntroDrawPartySummaryScreens -BattleIntroDrawPartySummaryScreens: @ 801333C - push {r4-r7,lr} - mov r7, r8 - push {r7} - sub sp, 0x30 - ldr r0, _08013394 @ =gBattleControllerExecFlags - ldr r0, [r0] - cmp r0, 0 - beq _0801334E - b _080134C8 -_0801334E: - ldr r0, _08013398 @ =gBattleTypeFlags - ldr r0, [r0] - movs r1, 0x8 - ands r0, r1 - cmp r0, 0 - bne _0801335C - b _08013468 -_0801335C: - movs r7, 0 - add r0, sp, 0x4 - mov r8, r0 - mov r6, r8 - mov r5, sp -_08013366: - movs r0, 0x64 - adds r1, r7, 0 - muls r1, r0 - ldr r0, _0801339C @ =gEnemyParty - adds r4, r1, r0 - adds r0, r4, 0 - movs r1, 0x41 - bl GetMonData - cmp r0, 0 - beq _0801338C - adds r0, r4, 0 - movs r1, 0x41 - bl GetMonData - movs r1, 0xCE - lsls r1, 1 - cmp r0, r1 - bne _080133A4 -_0801338C: - ldr r0, _080133A0 @ =0x0000ffff - strh r0, [r5] - movs r0, 0 - b _080133B6 - .align 2, 0 -_08013394: .4byte gBattleControllerExecFlags -_08013398: .4byte gBattleTypeFlags -_0801339C: .4byte gEnemyParty -_080133A0: .4byte 0x0000ffff -_080133A4: - adds r0, r4, 0 - movs r1, 0x39 - bl GetMonData - strh r0, [r5] - adds r0, r4, 0 - movs r1, 0x37 - bl GetMonData -_080133B6: - str r0, [r6] - adds r6, 0x8 - adds r5, 0x8 - adds r7, 0x1 - cmp r7, 0x5 - ble _08013366 - movs r0, 0x1 - bl GetBattlerAtPosition - ldr r4, _08013410 @ =gActiveBattler - strb r0, [r4] - movs r0, 0 - mov r1, sp - movs r2, 0x80 - bl BtlController_EmitDrawPartyStatusSummary - ldrb r0, [r4] - bl MarkBattlerForControllerExec - movs r7, 0 - mov r6, r8 - mov r5, sp -_080133E2: - movs r0, 0x64 - adds r1, r7, 0 - muls r1, r0 - ldr r0, _08013414 @ =gPlayerParty - adds r4, r1, r0 - adds r0, r4, 0 - movs r1, 0x41 - bl GetMonData - cmp r0, 0 - beq _08013408 - adds r0, r4, 0 - movs r1, 0x41 - bl GetMonData - movs r1, 0xCE - lsls r1, 1 - cmp r0, r1 - bne _0801341C -_08013408: - ldr r0, _08013418 @ =0x0000ffff - strh r0, [r5] - movs r0, 0 - b _0801342E - .align 2, 0 -_08013410: .4byte gActiveBattler -_08013414: .4byte gPlayerParty -_08013418: .4byte 0x0000ffff -_0801341C: - adds r0, r4, 0 - movs r1, 0x39 - bl GetMonData - strh r0, [r5] - adds r0, r4, 0 - movs r1, 0x37 - bl GetMonData -_0801342E: - str r0, [r6] - adds r6, 0x8 - adds r5, 0x8 - adds r7, 0x1 - cmp r7, 0x5 - ble _080133E2 - movs r0, 0 - bl GetBattlerAtPosition - ldr r4, _0801345C @ =gActiveBattler - strb r0, [r4] - movs r0, 0 - mov r1, sp - movs r2, 0x80 - bl BtlController_EmitDrawPartyStatusSummary - ldrb r0, [r4] - bl MarkBattlerForControllerExec - ldr r1, _08013460 @ =gBattleMainFunc - ldr r0, _08013464 @ =BattleIntroPrintTrainerWantsToBattle - b _080134C6 - .align 2, 0 -_0801345C: .4byte gActiveBattler -_08013460: .4byte gBattleMainFunc -_08013464: .4byte BattleIntroPrintTrainerWantsToBattle -_08013468: - movs r7, 0 - add r6, sp, 0x4 - mov r5, sp -_0801346E: - movs r0, 0x64 - adds r1, r7, 0 - muls r1, r0 - ldr r0, _0801349C @ =gPlayerParty - adds r4, r1, r0 - adds r0, r4, 0 - movs r1, 0x41 - bl GetMonData - cmp r0, 0 - beq _08013494 - adds r0, r4, 0 - movs r1, 0x41 - bl GetMonData - movs r1, 0xCE - lsls r1, 1 - cmp r0, r1 - bne _080134A4 -_08013494: - ldr r0, _080134A0 @ =0x0000ffff - strh r0, [r5] - movs r0, 0 - b _080134B6 - .align 2, 0 -_0801349C: .4byte gPlayerParty -_080134A0: .4byte 0x0000ffff -_080134A4: - adds r0, r4, 0 - movs r1, 0x39 - bl GetMonData - strh r0, [r5] - adds r0, r4, 0 - movs r1, 0x37 - bl GetMonData -_080134B6: - str r0, [r6] - adds r6, 0x8 - adds r5, 0x8 - adds r7, 0x1 - cmp r7, 0x5 - ble _0801346E - ldr r1, _080134D4 @ =gBattleMainFunc - ldr r0, _080134D8 @ =sub_8013514 -_080134C6: - str r0, [r1] -_080134C8: - add sp, 0x30 - pop {r3} - mov r8, r3 - pop {r4-r7} - pop {r0} - bx r0 - .align 2, 0 -_080134D4: .4byte gBattleMainFunc -_080134D8: .4byte sub_8013514 - thumb_func_end BattleIntroDrawPartySummaryScreens - - thumb_func_start BattleIntroPrintTrainerWantsToBattle -BattleIntroPrintTrainerWantsToBattle: @ 80134DC - push {lr} - ldr r0, _08013504 @ =gBattleControllerExecFlags - ldr r0, [r0] - cmp r0, 0 - bne _080134FE - movs r0, 0x1 - bl GetBattlerAtPosition - ldr r1, _08013508 @ =gActiveBattler - strb r0, [r1] - ldrb r1, [r1] - movs r0, 0 - bl PrepareStringBattle - ldr r1, _0801350C @ =gBattleMainFunc - ldr r0, _08013510 @ =sub_8013568 - str r0, [r1] -_080134FE: - pop {r0} - bx r0 - .align 2, 0 -_08013504: .4byte gBattleControllerExecFlags -_08013508: .4byte gActiveBattler -_0801350C: .4byte gBattleMainFunc -_08013510: .4byte sub_8013568 - thumb_func_end BattleIntroPrintTrainerWantsToBattle - - thumb_func_start sub_8013514 -sub_8013514: @ 8013514 - push {lr} - ldr r0, _08013550 @ =gBattleControllerExecFlags - ldr r0, [r0] - cmp r0, 0 - bne _0801354A - ldr r1, _08013554 @ =gBattleMainFunc - ldr r0, _08013558 @ =sub_80136E4 - str r0, [r1] - movs r0, 0 - movs r1, 0 - bl PrepareStringBattle - ldr r0, _0801355C @ =gBattleTypeFlags - ldr r0, [r0] - movs r1, 0xA0 - lsls r1, 8 - ands r0, r1 - cmp r0, r1 - bne _0801354A - movs r0, 0x1 - bl GetBattlerAtPosition - ldr r1, _08013560 @ =gBattleScripting - strb r0, [r1, 0x17] - ldr r0, _08013564 @ =gUnknown_81D91A1 - bl BattleScriptExecute -_0801354A: - pop {r0} - bx r0 - .align 2, 0 -_08013550: .4byte gBattleControllerExecFlags -_08013554: .4byte gBattleMainFunc -_08013558: .4byte sub_80136E4 -_0801355C: .4byte gBattleTypeFlags -_08013560: .4byte gBattleScripting -_08013564: .4byte gUnknown_81D91A1 - thumb_func_end sub_8013514 - - thumb_func_start sub_8013568 -sub_8013568: @ 8013568 - push {lr} - ldr r0, _08013590 @ =gBattleControllerExecFlags - ldr r0, [r0] - cmp r0, 0 - bne _0801358A - movs r0, 0x1 - bl GetBattlerAtPosition - adds r1, r0, 0 - lsls r1, 24 - lsrs r1, 24 - movs r0, 0x1 - bl PrepareStringBattle - ldr r1, _08013594 @ =gBattleMainFunc - ldr r0, _08013598 @ =sub_801359C - str r0, [r1] -_0801358A: - pop {r0} - bx r0 - .align 2, 0 -_08013590: .4byte gBattleControllerExecFlags -_08013594: .4byte gBattleMainFunc -_08013598: .4byte sub_801359C - thumb_func_end sub_8013568 - - thumb_func_start sub_801359C -sub_801359C: @ 801359C - push {r4,lr} - ldr r0, _08013614 @ =gBattleControllerExecFlags - ldr r1, [r0] - cmp r1, 0 - bne _0801360C - ldr r2, _08013618 @ =gActiveBattler - strb r1, [r2] - ldr r0, _0801361C @ =gBattlersCount - ldrb r0, [r0] - cmp r1, r0 - bcs _08013606 - adds r4, r2, 0 -_080135B4: - ldrb r0, [r4] - bl GetBattlerPosition - lsls r0, 24 - lsrs r0, 24 - cmp r0, 0x1 - bne _080135CE - movs r0, 0 - bl BtlController_EmitIntroTrainerBallThrow - ldrb r0, [r4] - bl MarkBattlerForControllerExec -_080135CE: - ldr r0, _08013620 @ =gBattleTypeFlags - ldr r0, [r0] - movs r1, 0x40 - ands r0, r1 - cmp r0, 0 - beq _080135F4 - ldrb r0, [r4] - bl GetBattlerPosition - lsls r0, 24 - lsrs r0, 24 - cmp r0, 0x3 - bne _080135F4 - movs r0, 0 - bl BtlController_EmitIntroTrainerBallThrow - ldrb r0, [r4] - bl MarkBattlerForControllerExec -_080135F4: - ldrb r0, [r4] - adds r0, 0x1 - strb r0, [r4] - ldr r1, _0801361C @ =gBattlersCount - lsls r0, 24 - lsrs r0, 24 - ldrb r1, [r1] - cmp r0, r1 - bcc _080135B4 -_08013606: - ldr r1, _08013624 @ =gBattleMainFunc - ldr r0, _08013628 @ =sub_801362C - str r0, [r1] -_0801360C: - pop {r4} - pop {r0} - bx r0 - .align 2, 0 -_08013614: .4byte gBattleControllerExecFlags -_08013618: .4byte gActiveBattler -_0801361C: .4byte gBattlersCount -_08013620: .4byte gBattleTypeFlags -_08013624: .4byte gBattleMainFunc -_08013628: .4byte sub_801362C - thumb_func_end sub_801359C - - thumb_func_start sub_801362C -sub_801362C: @ 801362C - push {r4-r7,lr} - ldr r0, _080136A4 @ =gBattleControllerExecFlags - ldr r1, [r0] - cmp r1, 0 - bne _0801369C - ldr r2, _080136A8 @ =gActiveBattler - strb r1, [r2] - ldr r0, _080136AC @ =gBattlersCount - ldrb r0, [r0] - cmp r1, r0 - bcs _08013696 - adds r4, r2, 0 - ldr r6, _080136B0 @ =gBattleMons - movs r5, 0x58 - adds r7, r6, 0 - adds r7, 0x48 -_0801364C: - ldrb r0, [r4] - bl GetBattlerSide - lsls r0, 24 - lsrs r0, 24 - cmp r0, 0x1 - bne _08013684 - ldr r0, _080136B4 @ =gBattleTypeFlags - ldr r0, [r0] - ldr r1, _080136B8 @ =0x0001aa02 - ands r0, r1 - cmp r0, 0 - bne _08013684 - ldrb r0, [r4] - muls r0, r5 - adds r0, r6 - ldrh r0, [r0] - bl SpeciesToNationalPokedexNum - lsls r0, 16 - lsrs r0, 16 - ldrb r1, [r4] - muls r1, r5 - adds r1, r7 - ldr r2, [r1] - movs r1, 0x2 - bl HandleSetPokedexFlag -_08013684: - ldrb r0, [r4] - adds r0, 0x1 - strb r0, [r4] - ldr r1, _080136AC @ =gBattlersCount - lsls r0, 24 - lsrs r0, 24 - ldrb r1, [r1] - cmp r0, r1 - bcc _0801364C -_08013696: - ldr r1, _080136BC @ =gBattleMainFunc - ldr r0, _080136C0 @ =sub_80136E4 - str r0, [r1] -_0801369C: - pop {r4-r7} - pop {r0} - bx r0 - .align 2, 0 -_080136A4: .4byte gBattleControllerExecFlags -_080136A8: .4byte gActiveBattler -_080136AC: .4byte gBattlersCount -_080136B0: .4byte gBattleMons -_080136B4: .4byte gBattleTypeFlags -_080136B8: .4byte 0x0001aa02 -_080136BC: .4byte gBattleMainFunc -_080136C0: .4byte sub_80136E4 - thumb_func_end sub_801362C - - thumb_func_start sub_80136C4 -sub_80136C4: @ 80136C4 - push {lr} - ldr r0, _080136D8 @ =gBattleControllerExecFlags - ldr r0, [r0] - cmp r0, 0 - bne _080136D4 - ldr r1, _080136DC @ =gBattleMainFunc - ldr r0, _080136E0 @ =sub_80136E4 - str r0, [r1] -_080136D4: - pop {r0} - bx r0 - .align 2, 0 -_080136D8: .4byte gBattleControllerExecFlags -_080136DC: .4byte gBattleMainFunc -_080136E0: .4byte sub_80136E4 - thumb_func_end sub_80136C4 - - thumb_func_start sub_80136E4 -sub_80136E4: @ 80136E4 - push {lr} - ldr r0, _08013718 @ =gBattleControllerExecFlags - ldr r0, [r0] - cmp r0, 0 - bne _08013712 - ldr r0, _0801371C @ =gBattleTypeFlags - ldr r0, [r0] - movs r1, 0x80 - ands r0, r1 - cmp r0, 0 - bne _0801370C - movs r0, 0 - bl GetBattlerAtPosition - adds r1, r0, 0 - lsls r1, 24 - lsrs r1, 24 - movs r0, 0x1 - bl PrepareStringBattle -_0801370C: - ldr r1, _08013720 @ =gBattleMainFunc - ldr r0, _08013724 @ =sub_8013728 - str r0, [r1] -_08013712: - pop {r0} - bx r0 - .align 2, 0 -_08013718: .4byte gBattleControllerExecFlags -_0801371C: .4byte gBattleTypeFlags -_08013720: .4byte gBattleMainFunc -_08013724: .4byte sub_8013728 - thumb_func_end sub_80136E4 - - thumb_func_start sub_8013728 -sub_8013728: @ 8013728 - push {r4,lr} - ldr r0, _080137B4 @ =gBattleControllerExecFlags - ldr r1, [r0] - cmp r1, 0 - bne _080137AC - ldr r2, _080137B8 @ =gActiveBattler - strb r1, [r2] - ldr r0, _080137BC @ =gBattlersCount - ldrb r0, [r0] - cmp r1, r0 - bcs _08013790 - adds r4, r2, 0 -_08013740: - ldrb r0, [r4] - bl GetBattlerPosition - lsls r0, 24 - cmp r0, 0 - bne _08013758 - movs r0, 0 - bl BtlController_EmitIntroTrainerBallThrow - ldrb r0, [r4] - bl MarkBattlerForControllerExec -_08013758: - ldr r0, _080137C0 @ =gBattleTypeFlags - ldr r0, [r0] - movs r1, 0x40 - ands r0, r1 - cmp r0, 0 - beq _0801377E - ldrb r0, [r4] - bl GetBattlerPosition - lsls r0, 24 - lsrs r0, 24 - cmp r0, 0x2 - bne _0801377E - movs r0, 0 - bl BtlController_EmitIntroTrainerBallThrow - ldrb r0, [r4] - bl MarkBattlerForControllerExec -_0801377E: - ldrb r0, [r4] - adds r0, 0x1 - strb r0, [r4] - ldr r1, _080137BC @ =gBattlersCount - lsls r0, 24 - lsrs r0, 24 - ldrb r1, [r1] - cmp r0, r1 - bcc _08013740 -_08013790: - ldr r2, _080137C4 @ =gBattleStruct - ldr r0, [r2] - adds r0, 0x4C - movs r1, 0 - strb r1, [r0] - ldr r0, [r2] - adds r0, 0xD9 - strb r1, [r0] - ldr r0, [r2] - adds r0, 0xB6 - strb r1, [r0] - ldr r1, _080137C8 @ =gBattleMainFunc - ldr r0, _080137CC @ =sub_801385C - str r0, [r1] -_080137AC: - pop {r4} - pop {r0} - bx r0 - .align 2, 0 -_080137B4: .4byte gBattleControllerExecFlags -_080137B8: .4byte gActiveBattler -_080137BC: .4byte gBattlersCount -_080137C0: .4byte gBattleTypeFlags -_080137C4: .4byte gBattleStruct -_080137C8: .4byte gBattleMainFunc -_080137CC: .4byte sub_801385C - thumb_func_end sub_8013728 - - thumb_func_start sub_80137D0 -sub_80137D0: @ 80137D0 - push {r4,r5,lr} - ldr r0, _08013840 @ =gBattleControllerExecFlags - ldr r1, [r0] - cmp r1, 0 - bne _0801383A - ldr r2, _08013844 @ =gActiveBattler - strb r1, [r2] - ldr r0, _08013848 @ =gBattlersCount - ldrb r0, [r0] - cmp r1, r0 - bcs _0801381E - adds r4, r2, 0 - ldr r5, _0801384C @ =gBattlerPartyIndexes -_080137EA: - ldrb r0, [r4] - bl GetBattlerSide - lsls r0, 24 - cmp r0, 0 - bne _0801380C - ldrb r0, [r4] - lsls r0, 1 - adds r0, r5 - ldrb r1, [r0] - movs r0, 0 - movs r2, 0 - bl BtlController_EmitSwitchInAnim - ldrb r0, [r4] - bl MarkBattlerForControllerExec -_0801380C: - ldrb r0, [r4] - adds r0, 0x1 - strb r0, [r4] - ldr r1, _08013848 @ =gBattlersCount - lsls r0, 24 - lsrs r0, 24 - ldrb r1, [r1] - cmp r0, r1 - bcc _080137EA -_0801381E: - ldr r2, _08013850 @ =gBattleStruct - ldr r0, [r2] - adds r0, 0x4C - movs r1, 0 - strb r1, [r0] - ldr r0, [r2] - adds r0, 0xD9 - strb r1, [r0] - ldr r0, [r2] - adds r0, 0xB6 - strb r1, [r0] - ldr r1, _08013854 @ =gBattleMainFunc - ldr r0, _08013858 @ =sub_801385C - str r0, [r1] -_0801383A: - pop {r4,r5} - pop {r0} - bx r0 - .align 2, 0 -_08013840: .4byte gBattleControllerExecFlags -_08013844: .4byte gActiveBattler -_08013848: .4byte gBattlersCount -_0801384C: .4byte gBattlerPartyIndexes -_08013850: .4byte gBattleStruct -_08013854: .4byte gBattleMainFunc -_08013858: .4byte sub_801385C - thumb_func_end sub_80137D0 - - thumb_func_start sub_801385C -sub_801385C: @ 801385C - push {r4-r7,lr} - mov r7, r9 - mov r6, r8 - push {r6,r7} - sub sp, 0x8 - movs r0, 0 - mov r9, r0 - ldr r0, _080138A0 @ =gBattleControllerExecFlags - ldr r0, [r0] - cmp r0, 0 - beq _08013874 - b _08013ADA -_08013874: - ldr r0, _080138A4 @ =gBattleStruct - ldr r0, [r0] - adds r0, 0x4C - ldrb r0, [r0] - cmp r0, 0 - bne _080138FA - movs r5, 0 - ldr r1, _080138A8 @ =gBattlersCount - adds r3, r1, 0 - ldrb r0, [r1] - cmp r5, r0 - bge _0801389A - ldr r2, _080138AC @ =gBattlerByTurnOrder -_0801388E: - adds r0, r5, r2 - strb r5, [r0] - adds r5, 0x1 - ldrb r0, [r1] - cmp r5, r0 - blt _0801388E -_0801389A: - movs r5, 0 - b _080138F0 - .align 2, 0 -_080138A0: .4byte gBattleControllerExecFlags -_080138A4: .4byte gBattleStruct -_080138A8: .4byte gBattlersCount -_080138AC: .4byte gBattlerByTurnOrder -_080138B0: - adds r4, r5, 0x1 - mov r8, r4 - ldrb r1, [r1] - cmp r8, r1 - bge _080138EE - ldr r6, _08013924 @ =gBattlerByTurnOrder - ldr r3, _08013928 @ =gBattlersCount - lsls r7, r5, 24 -_080138C0: - adds r0, r5, r6 - ldrb r0, [r0] - adds r1, r4, r6 - ldrb r1, [r1] - movs r2, 0x1 - str r3, [sp, 0x4] - bl GetWhoStrikesFirst - lsls r0, 24 - ldr r3, [sp, 0x4] - cmp r0, 0 - beq _080138E4 - lsls r1, r4, 24 - lsrs r1, 24 - lsrs r0, r7, 24 - bl SwapTurnOrder - ldr r3, [sp, 0x4] -_080138E4: - adds r4, 0x1 - ldr r0, _08013928 @ =gBattlersCount - ldrb r0, [r0] - cmp r4, r0 - blt _080138C0 -_080138EE: - mov r5, r8 -_080138F0: - adds r1, r3, 0 - ldrb r0, [r3] - subs r0, 0x1 - cmp r5, r0 - blt _080138B0 -_080138FA: - ldr r4, _0801392C @ =gBattleStruct - ldr r0, [r4] - adds r0, 0xB6 - ldrb r0, [r0] - cmp r0, 0 - bne _08013930 - str r0, [sp] - movs r0, 0 - movs r1, 0 - movs r2, 0 - movs r3, 0xFF - bl AbilityBattleEffects - lsls r0, 24 - cmp r0, 0 - beq _08013930 - ldr r0, [r4] - adds r0, 0xB6 - movs r1, 0x1 - strb r1, [r0] - b _08013ADA - .align 2, 0 -_08013924: .4byte gBattlerByTurnOrder -_08013928: .4byte gBattlersCount -_0801392C: .4byte gBattleStruct -_08013930: - ldr r2, _08013AE8 @ =gBattleStruct - ldr r0, [r2] - adds r0, 0x4C - ldr r1, _08013AEC @ =gBattlersCount - ldrb r0, [r0] - ldrb r1, [r1] - cmp r0, r1 - bcs _0801398A - ldr r5, _08013AF0 @ =gBattlerByTurnOrder - adds r4, r2, 0 -_08013944: - ldr r0, [r4] - adds r0, 0x4C - ldrb r0, [r0] - adds r0, r5 - ldrb r1, [r0] - movs r0, 0 - str r0, [sp] - movs r2, 0 - movs r3, 0 - bl AbilityBattleEffects - lsls r0, 24 - cmp r0, 0 - beq _0801396A - mov r0, r9 - adds r0, 0x1 - lsls r0, 24 - lsrs r0, 24 - mov r9, r0 -_0801396A: - ldr r1, [r4] - adds r1, 0x4C - ldrb r0, [r1] - adds r0, 0x1 - strb r0, [r1] - mov r1, r9 - cmp r1, 0 - beq _0801397C - b _08013ADA -_0801397C: - ldr r0, [r4] - adds r0, 0x4C - ldr r1, _08013AEC @ =gBattlersCount - ldrb r0, [r0] - ldrb r1, [r1] - cmp r0, r1 - bcc _08013944 -_0801398A: - movs r0, 0 - str r0, [sp] - movs r0, 0x9 - movs r1, 0 - movs r2, 0 - movs r3, 0 - bl AbilityBattleEffects - lsls r0, 24 - lsrs r0, 24 - cmp r0, 0 - beq _080139A4 - b _08013ADA -_080139A4: - str r0, [sp] - movs r0, 0xB - movs r1, 0 - movs r2, 0 - movs r3, 0 - bl AbilityBattleEffects - lsls r0, 24 - cmp r0, 0 - beq _080139BA - b _08013ADA -_080139BA: - ldr r2, _08013AE8 @ =gBattleStruct - ldr r0, [r2] - adds r0, 0xD9 - ldr r1, _08013AEC @ =gBattlersCount - ldrb r0, [r0] - adds r3, r1, 0 - ldrb r1, [r3] - cmp r0, r1 - bcs _08013A14 - ldr r5, _08013AF0 @ =gBattlerByTurnOrder - adds r4, r2, 0 -_080139D0: - ldr r0, [r4] - adds r0, 0xD9 - ldrb r0, [r0] - adds r0, r5 - ldrb r1, [r0] - movs r0, 0 - movs r2, 0 - str r3, [sp, 0x4] - bl ItemBattleEffects - lsls r0, 24 - ldr r3, [sp, 0x4] - cmp r0, 0 - beq _080139F6 - mov r0, r9 - adds r0, 0x1 - lsls r0, 24 - lsrs r0, 24 - mov r9, r0 -_080139F6: - ldr r1, [r4] - adds r1, 0xD9 - ldrb r0, [r1] - adds r0, 0x1 - strb r0, [r1] - mov r0, r9 - cmp r0, 0 - bne _08013ADA - ldr r0, [r4] - adds r0, 0xD9 - ldr r1, _08013AEC @ =gBattlersCount - ldrb r0, [r0] - ldrb r1, [r1] - cmp r0, r1 - bcc _080139D0 -_08013A14: - ldrb r0, [r3] - cmp r0, 0 - beq _08013A22 - adds r5, r0, 0 -_08013A1C: - subs r5, 0x1 - cmp r5, 0 - bne _08013A1C -_08013A22: - movs r5, 0 - ldr r1, _08013AE8 @ =gBattleStruct - mov r8, r1 - movs r7, 0x6 - ldr r6, _08013AF4 @ =gChosenActionByBattler - ldr r2, _08013AF8 @ =gChosenMoveByBattler - movs r4, 0xFF - movs r3, 0 -_08013A32: - mov r1, r8 - ldr r0, [r1] - adds r0, r5, r0 - adds r0, 0x5C - strb r7, [r0] - adds r1, r5, r6 - ldrb r0, [r1] - orrs r0, r4 - strb r0, [r1] - strh r3, [r2] - adds r2, 0x2 - adds r5, 0x1 - cmp r5, 0x3 - ble _08013A32 - movs r0, 0 - bl TurnValuesCleanUp - bl SpecialStatusesClear - ldr r0, _08013AE8 @ =gBattleStruct - ldr r0, [r0] - adds r0, 0x91 - ldr r1, _08013AFC @ =gAbsentBattlerFlags - ldrb r1, [r1] - strb r1, [r0] - ldr r1, _08013B00 @ =gBattleMainFunc - ldr r0, _08013B04 @ =sub_8014040 - str r0, [r1] - bl ResetSentPokesToOpponentValue - ldr r1, _08013B08 @ =gBattleCommunication - movs r2, 0 - adds r0, r1, 0x7 -_08013A74: - strb r2, [r0] - subs r0, 0x1 - cmp r0, r1 - bge _08013A74 - movs r5, 0 - ldr r3, _08013AEC @ =gBattlersCount - ldr r2, _08013AE8 @ =gBattleStruct - ldr r6, _08013B0C @ =gBattleScripting - ldr r7, _08013B10 @ =gMoveResultFlags - ldrb r0, [r3] - cmp r5, r0 - bge _08013AA6 - ldr r0, _08013B14 @ =gBattleMons - movs r4, 0x9 - negs r4, r4 - adds r1, r0, 0 - adds r1, 0x50 -_08013A96: - ldr r0, [r1] - ands r0, r4 - str r0, [r1] - adds r1, 0x58 - adds r5, 0x1 - ldrb r0, [r3] - cmp r5, r0 - blt _08013A96 -_08013AA6: - ldr r0, [r2] - movs r1, 0 - strb r1, [r0] - ldr r0, [r2] - strb r1, [r0, 0x1] - ldr r0, [r2] - movs r3, 0xC0 - lsls r3, 1 - adds r0, r3 - strb r1, [r0] - ldr r0, [r2] - adds r3, 0x1 - adds r0, r3 - strb r1, [r0] - movs r1, 0 - strb r1, [r6, 0x14] - ldr r0, [r2] - adds r0, 0x4D - strb r1, [r0] - ldr r0, [r2] - strb r1, [r0, 0x3] - strb r1, [r7] - bl Random - ldr r1, _08013B18 @ =gUnknown_2023E80 - strh r0, [r1] -_08013ADA: - add sp, 0x8 - pop {r3,r4} - mov r8, r3 - mov r9, r4 - pop {r4-r7} - pop {r0} - bx r0 - .align 2, 0 -_08013AE8: .4byte gBattleStruct -_08013AEC: .4byte gBattlersCount -_08013AF0: .4byte gBattlerByTurnOrder -_08013AF4: .4byte gChosenActionByBattler -_08013AF8: .4byte gChosenMoveByBattler -_08013AFC: .4byte gAbsentBattlerFlags -_08013B00: .4byte gBattleMainFunc -_08013B04: .4byte sub_8014040 -_08013B08: .4byte gBattleCommunication -_08013B0C: .4byte gBattleScripting -_08013B10: .4byte gMoveResultFlags -_08013B14: .4byte gBattleMons -_08013B18: .4byte gUnknown_2023E80 - thumb_func_end sub_801385C - - thumb_func_start sub_8013B1C -sub_8013B1C: @ 8013B1C - push {r4-r6,lr} - ldr r0, _08013BB4 @ =gBattleControllerExecFlags - ldr r0, [r0] - cmp r0, 0 - bne _08013BAC - ldr r1, _08013BB8 @ =gBattleMainFunc - ldr r0, _08013BBC @ =BattleTurnPassed - str r0, [r1] - ldr r3, _08013BC0 @ =gBattlersCount - ldr r1, _08013BC4 @ =gBattleCommunication - movs r2, 0 - adds r0, r1, 0x7 -_08013B34: - strb r2, [r0] - subs r0, 0x1 - cmp r0, r1 - bge _08013B34 - movs r4, 0 - ldrb r3, [r3] - cmp r4, r3 - bge _08013B86 - ldr r5, _08013BC8 @ =gBattleMons - adds r6, r5, 0 - adds r6, 0x4C -_08013B4A: - movs r0, 0x58 - adds r2, r4, 0 - muls r2, r0 - adds r1, r5, 0 - adds r1, 0x50 - adds r1, r2, r1 - ldr r3, [r1] - subs r0, 0x61 - ands r3, r0 - str r3, [r1] - adds r2, r6 - ldr r0, [r2] - movs r1, 0x7 - ands r0, r1 - cmp r0, 0 - beq _08013B7C - movs r0, 0x80 - lsls r0, 5 - ands r3, r0 - cmp r3, 0 - beq _08013B7C - lsls r0, r4, 24 - lsrs r0, 24 - bl CancelMultiTurnMoves -_08013B7C: - adds r4, 0x1 - ldr r0, _08013BC0 @ =gBattlersCount - ldrb r0, [r0] - cmp r4, r0 - blt _08013B4A -_08013B86: - ldr r2, _08013BCC @ =gBattleStruct - ldr r0, [r2] - movs r1, 0 - strb r1, [r0] - ldr r0, [r2] - strb r1, [r0, 0x1] - ldr r0, [r2] - movs r3, 0xC0 - lsls r3, 1 - adds r0, r3 - strb r1, [r0] - ldr r0, [r2] - adds r3, 0x1 - adds r0, r3 - strb r1, [r0] - ldr r0, [r2] - strb r1, [r0, 0x3] - ldr r0, _08013BD0 @ =gMoveResultFlags - strb r1, [r0] -_08013BAC: - pop {r4-r6} - pop {r0} - bx r0 - .align 2, 0 -_08013BB4: .4byte gBattleControllerExecFlags -_08013BB8: .4byte gBattleMainFunc -_08013BBC: .4byte BattleTurnPassed -_08013BC0: .4byte gBattlersCount -_08013BC4: .4byte gBattleCommunication -_08013BC8: .4byte gBattleMons -_08013BCC: .4byte gBattleStruct -_08013BD0: .4byte gMoveResultFlags - thumb_func_end sub_8013B1C - - thumb_func_start BattleTurnPassed -BattleTurnPassed: @ 8013BD4 - push {r4-r7,lr} - mov r7, r10 - mov r6, r9 - mov r5, r8 - push {r5-r7} - movs r0, 0x1 - bl TurnValuesCleanUp - ldr r0, _08013C78 @ =gBattleOutcome - ldrb r0, [r0] - cmp r0, 0 - bne _08013C04 - bl DoFieldEndTurnEffects - lsls r0, 24 - cmp r0, 0 - beq _08013BF8 - b _08013D20 -_08013BF8: - bl DoBattlerEndTurnEffects - lsls r0, 24 - cmp r0, 0 - beq _08013C04 - b _08013D20 -_08013C04: - bl HandleFaintedMonActions - lsls r0, 24 - lsrs r1, r0, 24 - cmp r1, 0 - beq _08013C12 - b _08013D20 -_08013C12: - ldr r0, _08013C7C @ =gBattleStruct - ldr r0, [r0] - adds r0, 0x4D - strb r1, [r0] - bl HandleWishPerishSongOnTurnEnd - lsls r0, 24 - lsrs r4, r0, 24 - cmp r4, 0 - bne _08013D20 - movs r0, 0 - bl TurnValuesCleanUp - ldr r2, _08013C80 @ =gHitMarker - ldr r0, [r2] - ldr r1, _08013C84 @ =0xfffffdff - ands r0, r1 - ldr r1, _08013C88 @ =0xfff7ffff - ands r0, r1 - ldr r1, _08013C8C @ =0xffbfffff - ands r0, r1 - ldr r1, _08013C90 @ =0xffefffff - ands r0, r1 - str r0, [r2] - ldr r0, _08013C94 @ =gBattleScripting - strb r4, [r0, 0x18] - strb r4, [r0, 0x19] - strb r4, [r0, 0x14] - ldr r0, _08013C98 @ =gBattleMoveDamage - str r4, [r0] - ldr r0, _08013C9C @ =gMoveResultFlags - strb r4, [r0] - ldr r1, _08013CA0 @ =gBattleCommunication - movs r2, 0 - adds r0, r1, 0x4 -_08013C58: - strb r2, [r0] - subs r0, 0x1 - cmp r0, r1 - bge _08013C58 - ldr r0, _08013C78 @ =gBattleOutcome - ldrb r0, [r0] - cmp r0, 0 - beq _08013CB0 - ldr r1, _08013CA4 @ =gCurrentActionFuncId - movs r0, 0xC - strb r0, [r1] - ldr r1, _08013CA8 @ =gBattleMainFunc - ldr r0, _08013CAC @ =RunTurnActionsFunctions - str r0, [r1] - b _08013D20 - .align 2, 0 -_08013C78: .4byte gBattleOutcome -_08013C7C: .4byte gBattleStruct -_08013C80: .4byte gHitMarker -_08013C84: .4byte 0xfffffdff -_08013C88: .4byte 0xfff7ffff -_08013C8C: .4byte 0xffbfffff -_08013C90: .4byte 0xffefffff -_08013C94: .4byte gBattleScripting -_08013C98: .4byte gBattleMoveDamage -_08013C9C: .4byte gMoveResultFlags -_08013CA0: .4byte gBattleCommunication -_08013CA4: .4byte gCurrentActionFuncId -_08013CA8: .4byte gBattleMainFunc -_08013CAC: .4byte RunTurnActionsFunctions -_08013CB0: - ldr r1, _08013D30 @ =gBattleResults - ldrb r0, [r1, 0x13] - cmp r0, 0xFE - bhi _08013CBC - adds r0, 0x1 - strb r0, [r1, 0x13] -_08013CBC: - movs r2, 0 - ldr r4, _08013D34 @ =gBattlersCount - ldr r0, _08013D38 @ =gBattleStruct - mov r8, r0 - ldr r1, _08013D3C @ =gBattleMainFunc - mov r10, r1 - ldr r0, _08013D40 @ =gAbsentBattlerFlags - mov r12, r0 - ldr r1, _08013D44 @ =sub_8014040 - mov r9, r1 - ldrb r0, [r4] - cmp r2, r0 - bge _08013CF2 - ldr r7, _08013D48 @ =gChosenActionByBattler - movs r6, 0xFF - movs r5, 0 - ldr r3, _08013D4C @ =gChosenMoveByBattler -_08013CDE: - adds r1, r2, r7 - ldrb r0, [r1] - orrs r0, r6 - strb r0, [r1] - strh r5, [r3] - adds r3, 0x2 - adds r2, 0x1 - ldrb r1, [r4] - cmp r2, r1 - blt _08013CDE -_08013CF2: - movs r2, 0 - ldr r3, _08013D38 @ =gBattleStruct - movs r1, 0x6 -_08013CF8: - ldr r0, [r3] - adds r0, r2, r0 - adds r0, 0x5C - strb r1, [r0] - adds r2, 0x1 - cmp r2, 0x3 - ble _08013CF8 - mov r2, r8 - ldr r0, [r2] - adds r0, 0x91 - mov r2, r12 - ldrb r1, [r2] - strb r1, [r0] - mov r0, r9 - mov r1, r10 - str r0, [r1] - bl Random - ldr r1, _08013D50 @ =gUnknown_2023E80 - strh r0, [r1] -_08013D20: - pop {r3-r5} - mov r8, r3 - mov r9, r4 - mov r10, r5 - pop {r4-r7} - pop {r0} - bx r0 - .align 2, 0 -_08013D30: .4byte gBattleResults -_08013D34: .4byte gBattlersCount -_08013D38: .4byte gBattleStruct -_08013D3C: .4byte gBattleMainFunc -_08013D40: .4byte gAbsentBattlerFlags -_08013D44: .4byte sub_8014040 -_08013D48: .4byte gChosenActionByBattler -_08013D4C: .4byte gChosenMoveByBattler -_08013D50: .4byte gUnknown_2023E80 - thumb_func_end BattleTurnPassed - - thumb_func_start IsRunningFromBattleImpossible -IsRunningFromBattleImpossible: @ 8013D54 - push {r4-r7,lr} - sub sp, 0x4 - ldr r1, _08013D78 @ =gBattleMons - ldr r0, _08013D7C @ =gActiveBattler - ldrb r2, [r0] - movs r0, 0x58 - muls r0, r2 - adds r1, r0, r1 - ldrh r0, [r1, 0x2E] - cmp r0, 0xAF - bne _08013D84 - ldr r1, _08013D80 @ =gEnigmaBerries - lsls r0, r2, 3 - subs r0, r2 - lsls r0, 2 - adds r0, r1 - ldrb r2, [r0, 0x7] - b _08013D8E - .align 2, 0 -_08013D78: .4byte gBattleMons -_08013D7C: .4byte gActiveBattler -_08013D80: .4byte gEnigmaBerries -_08013D84: - ldrh r0, [r1, 0x2E] - bl ItemId_GetHoldEffect - lsls r0, 24 - lsrs r2, r0, 24 -_08013D8E: - ldr r1, _08013EA4 @ =gPotentialItemEffectBattler - ldr r3, _08013EA8 @ =gActiveBattler - ldrb r0, [r3] - strb r0, [r1] - cmp r2, 0x25 - bne _08013D9C - b _08013F18 -_08013D9C: - ldr r0, _08013EAC @ =gBattleTypeFlags - ldr r0, [r0] - movs r1, 0x2 - ands r0, r1 - cmp r0, 0 - beq _08013DAA - b _08013F18 -_08013DAA: - ldr r1, _08013EB0 @ =gBattleMons - ldrb r2, [r3] - movs r0, 0x58 - muls r0, r2 - adds r0, r1 - adds r0, 0x20 - ldrb r0, [r0] - cmp r0, 0x32 - bne _08013DBE - b _08013F18 -_08013DBE: - adds r0, r2, 0 - bl GetBattlerSide - lsls r0, 24 - lsrs r6, r0, 24 - movs r5, 0 - ldr r0, _08013EB4 @ =gBattlersCount - ldrb r0, [r0] - cmp r5, r0 - bge _08013E52 - movs r7, 0 -_08013DD4: - lsrs r4, r7, 24 - adds r0, r4, 0 - bl GetBattlerSide - lsls r0, 24 - lsrs r0, 24 - cmp r6, r0 - beq _08013DF8 - ldr r1, _08013EB0 @ =gBattleMons - movs r0, 0x58 - muls r0, r5 - adds r0, r1 - adds r2, r0, 0 - adds r2, 0x20 - ldrb r0, [r2] - cmp r0, 0x17 - bne _08013DF8 - b _08013F20 -_08013DF8: - adds r0, r4, 0 - bl GetBattlerSide - lsls r0, 24 - lsrs r0, 24 - cmp r6, r0 - beq _08013E42 - ldr r3, _08013EB0 @ =gBattleMons - ldr r0, _08013EA8 @ =gActiveBattler - ldrb r0, [r0] - movs r2, 0x58 - muls r0, r2 - adds r1, r0, r3 - adds r0, r1, 0 - adds r0, 0x20 - ldrb r0, [r0] - cmp r0, 0x1A - beq _08013E42 - adds r0, r1, 0 - adds r0, 0x21 - ldrb r0, [r0] - cmp r0, 0x2 - beq _08013E42 - adds r0, r1, 0 - adds r0, 0x22 - ldrb r0, [r0] - cmp r0, 0x2 - beq _08013E42 - adds r0, r5, 0 - muls r0, r2 - adds r0, r3 - adds r2, r0, 0 - adds r2, 0x20 - ldrb r0, [r2] - cmp r0, 0x47 - bne _08013E42 - b _08013F3C -_08013E42: - movs r0, 0x80 - lsls r0, 17 - adds r7, r0 - adds r5, 0x1 - ldr r0, _08013EB4 @ =gBattlersCount - ldrb r0, [r0] - cmp r5, r0 - blt _08013DD4 -_08013E52: - ldr r4, _08013EA8 @ =gActiveBattler - ldrb r1, [r4] - movs r0, 0 - str r0, [sp] - movs r0, 0xF - movs r2, 0x2A - movs r3, 0 - bl AbilityBattleEffects - lsls r0, 24 - lsrs r5, r0, 24 - cmp r5, 0 - beq _08013EC4 - ldr r6, _08013EB0 @ =gBattleMons - ldrb r0, [r4] - movs r3, 0x58 - muls r0, r3 - adds r1, r0, r6 - adds r0, r1, 0 - adds r0, 0x21 - ldrb r0, [r0] - cmp r0, 0x8 - beq _08013E8A - adds r0, r1, 0 - adds r0, 0x22 - ldrb r0, [r0] - cmp r0, 0x8 - bne _08013EC4 -_08013E8A: - ldr r0, _08013EB8 @ =gBattleScripting - subs r1, r5, 0x1 - strb r1, [r0, 0x17] - ldr r2, _08013EBC @ =gLastUsedAbility - adds r0, r1, 0 - muls r0, r3 - adds r0, r6 - adds r0, 0x20 - ldrb r0, [r0] - strb r0, [r2] - ldr r1, _08013EC0 @ =gBattleCommunication - movs r0, 0x2 - b _08013F5C - .align 2, 0 -_08013EA4: .4byte gPotentialItemEffectBattler -_08013EA8: .4byte gActiveBattler -_08013EAC: .4byte gBattleTypeFlags -_08013EB0: .4byte gBattleMons -_08013EB4: .4byte gBattlersCount -_08013EB8: .4byte gBattleScripting -_08013EBC: .4byte gLastUsedAbility -_08013EC0: .4byte gBattleCommunication -_08013EC4: - ldr r1, _08013EF8 @ =gBattleMons - ldr r0, _08013EFC @ =gActiveBattler - ldrb r2, [r0] - movs r0, 0x58 - muls r0, r2 - adds r1, 0x50 - adds r0, r1 - ldr r0, [r0] - ldr r1, _08013F00 @ =0x0400e000 - ands r0, r1 - cmp r0, 0 - bne _08013EEE - ldr r1, _08013F04 @ =gStatuses3 - lsls r0, r2, 2 - adds r0, r1 - ldr r0, [r0] - movs r1, 0x80 - lsls r1, 3 - ands r0, r1 - cmp r0, 0 - beq _08013F0C -_08013EEE: - ldr r1, _08013F08 @ =gBattleCommunication - movs r0, 0 - strb r0, [r1, 0x5] - movs r0, 0x1 - b _08013F5E - .align 2, 0 -_08013EF8: .4byte gBattleMons -_08013EFC: .4byte gActiveBattler -_08013F00: .4byte 0x0400e000 -_08013F04: .4byte gStatuses3 -_08013F08: .4byte gBattleCommunication -_08013F0C: - ldr r0, _08013F1C @ =gBattleTypeFlags - ldr r0, [r0] - movs r1, 0x10 - ands r0, r1 - cmp r0, 0 - bne _08013F58 -_08013F18: - movs r0, 0 - b _08013F5E - .align 2, 0 -_08013F1C: .4byte gBattleTypeFlags -_08013F20: - ldr r0, _08013F30 @ =gBattleScripting - strb r5, [r0, 0x17] - ldr r1, _08013F34 @ =gLastUsedAbility - ldrb r0, [r2] - strb r0, [r1] - ldr r1, _08013F38 @ =gBattleCommunication - movs r0, 0x2 - b _08013F5C - .align 2, 0 -_08013F30: .4byte gBattleScripting -_08013F34: .4byte gLastUsedAbility -_08013F38: .4byte gBattleCommunication -_08013F3C: - ldr r0, _08013F4C @ =gBattleScripting - strb r5, [r0, 0x17] - ldr r1, _08013F50 @ =gLastUsedAbility - ldrb r0, [r2] - strb r0, [r1] - ldr r1, _08013F54 @ =gBattleCommunication - movs r0, 0x2 - b _08013F5C - .align 2, 0 -_08013F4C: .4byte gBattleScripting -_08013F50: .4byte gLastUsedAbility -_08013F54: .4byte gBattleCommunication -_08013F58: - ldr r1, _08013F68 @ =gBattleCommunication - movs r0, 0x1 -_08013F5C: - strb r0, [r1, 0x5] -_08013F5E: - add sp, 0x4 - pop {r4-r7} - pop {r1} - bx r1 - .align 2, 0 -_08013F68: .4byte gBattleCommunication - thumb_func_end IsRunningFromBattleImpossible - - thumb_func_start sub_8013F6C -sub_8013F6C: @ 8013F6C - push {r4-r7,lr} - mov r7, r8 - push {r7} - lsls r0, 24 - lsrs r5, r0, 24 - movs r3, 0 - ldr r0, _08014008 @ =gBattlerPartyIndexes - mov r8, r0 - ldr r1, _0801400C @ =gUnknown_203B0DC - mov r12, r1 - ldr r7, _08014010 @ =gBattleStruct - lsls r0, r5, 1 - adds r4, r0, r5 - adds r6, r0, 0 -_08013F88: - mov r0, r12 - adds r2, r3, r0 - ldr r1, [r7] - adds r0, r4, r3 - adds r0, r1 - adds r0, 0x60 - ldrb r0, [r0] - strb r0, [r2] - adds r3, 0x1 - cmp r3, 0x2 - ble _08013F88 - mov r1, r8 - adds r0, r6, r1 - ldrb r0, [r0] - bl pokemon_order_func - adds r4, r0, 0 - lsls r4, 24 - lsrs r4, 24 - ldr r7, _08014010 @ =gBattleStruct - ldr r0, [r7] - adds r0, r5, r0 - adds r0, 0x5C - ldrb r0, [r0] - bl pokemon_order_func - adds r1, r0, 0 - lsls r1, 24 - lsrs r1, 24 - adds r0, r4, 0 - bl sub_8127FF4 - ldr r0, _08014014 @ =gBattleTypeFlags - ldr r0, [r0] - movs r1, 0x1 - ands r0, r1 - cmp r0, 0 - beq _08014018 - movs r3, 0 - adds r4, r7, 0 - adds r6, r5 - movs r0, 0x2 - adds r1, r5, 0 - eors r1, r0 - ldr r7, _0801400C @ =gUnknown_203B0DC - lsls r0, r1, 1 - adds r5, r0, r1 -_08013FE6: - ldr r0, [r4] - adds r1, r6, r3 - adds r1, r0 - adds r1, 0x60 - adds r2, r3, r7 - ldrb r0, [r2] - strb r0, [r1] - ldr r1, [r4] - adds r0, r5, r3 - adds r0, r1 - adds r0, 0x60 - ldrb r1, [r2] - strb r1, [r0] - adds r3, 0x1 - cmp r3, 0x2 - ble _08013FE6 - b _08014032 - .align 2, 0 -_08014008: .4byte gBattlerPartyIndexes -_0801400C: .4byte gUnknown_203B0DC -_08014010: .4byte gBattleStruct -_08014014: .4byte gBattleTypeFlags -_08014018: - movs r3, 0 - adds r2, r6, r5 - ldr r4, _0801403C @ =gUnknown_203B0DC -_0801401E: - ldr r0, [r7] - adds r1, r2, r3 - adds r1, r0 - adds r1, 0x60 - adds r0, r3, r4 - ldrb r0, [r0] - strb r0, [r1] - adds r3, 0x1 - cmp r3, 0x2 - ble _0801401E -_08014032: - pop {r3} - mov r8, r3 - pop {r4-r7} - pop {r0} - bx r0 - .align 2, 0 -_0801403C: .4byte gUnknown_203B0DC - thumb_func_end sub_8013F6C - - thumb_func_start sub_8014040 -sub_8014040: @ 8014040 - push {r4-r7,lr} - mov r7, r10 - mov r6, r9 - mov r5, r8 - push {r5-r7} - sub sp, 0x1C - ldr r0, _0801408C @ =gBattleCommunication - movs r1, 0 - strb r1, [r0, 0x4] - ldr r0, _08014090 @ =gActiveBattler - strb r1, [r0] - ldr r0, _08014094 @ =gBattlersCount - adds r2, r0, 0 - ldrb r0, [r2] - cmp r1, r0 - bcc _08014064 - bl _08014C68 -_08014064: - ldr r4, _08014090 @ =gActiveBattler - ldrb r0, [r4] - bl GetBattlerPosition - lsls r0, 24 - lsrs r5, r0, 24 - ldr r1, _0801408C @ =gBattleCommunication - ldrb r0, [r4] - adds r0, r1 - ldrb r0, [r0] - cmp r0, 0x6 - bls _08014080 - bl _08014C4E -_08014080: - lsls r0, 2 - ldr r1, _08014098 @ =_0801409C - adds r0, r1 - ldr r0, [r0] - mov pc, r0 - .align 2, 0 -_0801408C: .4byte gBattleCommunication -_08014090: .4byte gActiveBattler -_08014094: .4byte gBattlersCount -_08014098: .4byte _0801409C - .align 2, 0 -_0801409C: - .4byte _080140B8 - .4byte _080141DC - .4byte _08014764 - .4byte _08014AA0 - .4byte _08014B44 - .4byte _08014B88 - .4byte _08014C20 -_080140B8: - ldr r0, _08014150 @ =gActiveBattler - ldrb r1, [r0] - ldr r4, _08014154 @ =gBattleStruct - ldr r0, [r4] - adds r1, r0 - adds r1, 0x5C - movs r0, 0x6 - strb r0, [r1] - ldr r0, _08014158 @ =gBattleTypeFlags - ldr r0, [r0] - movs r1, 0x40 - ands r0, r1 - cmp r0, 0 - bne _08014114 - movs r1, 0x2 - movs r0, 0x2 - ands r0, r5 - cmp r0, 0 - beq _08014114 - eors r5, r1 - adds r0, r5, 0 - bl GetBattlerAtPosition - ldr r1, [r4] - adds r1, 0x91 - ldrb r1, [r1] - ldr r2, _0801415C @ =gBitTable - lsls r0, 24 - lsrs r0, 22 - adds r0, r2 - ldr r0, [r0] - ands r1, r0 - cmp r1, 0 - bne _08014114 - ldr r4, _08014160 @ =gBattleCommunication - adds r0, r5, 0 - bl GetBattlerAtPosition - lsls r0, 24 - lsrs r0, 24 - adds r0, r4 - ldrb r0, [r0] - cmp r0, 0x4 - beq _08014114 - bl _08014C4E -_08014114: - ldr r0, _08014154 @ =gBattleStruct - ldr r0, [r0] - adds r0, 0x91 - ldrb r3, [r0] - ldr r1, _0801415C @ =gBitTable - ldr r4, _08014150 @ =gActiveBattler - ldrb r2, [r4] - lsls r0, r2, 2 - adds r0, r1 - ldr r0, [r0] - ands r3, r0 - cmp r3, 0 - beq _0801417C - ldr r0, _08014164 @ =gChosenActionByBattler - adds r0, r2, r0 - movs r1, 0xD - strb r1, [r0] - ldr r0, _08014158 @ =gBattleTypeFlags - ldr r0, [r0] - movs r1, 0x40 - ands r0, r1 - cmp r0, 0 - bne _08014168 - ldr r0, _08014160 @ =gBattleCommunication - ldrb r1, [r4] - adds r1, r0 - movs r0, 0x4 - strb r0, [r1] - bl _08014C4E - .align 2, 0 -_08014150: .4byte gActiveBattler -_08014154: .4byte gBattleStruct -_08014158: .4byte gBattleTypeFlags -_0801415C: .4byte gBitTable -_08014160: .4byte gBattleCommunication -_08014164: .4byte gChosenActionByBattler -_08014168: - ldr r0, _08014178 @ =gBattleCommunication - ldrb r1, [r4] - adds r1, r0 - movs r0, 0x3 - strb r0, [r1] - bl _08014C4E - .align 2, 0 -_08014178: .4byte gBattleCommunication -_0801417C: - ldr r1, _080141B0 @ =gBattleMons - movs r0, 0x58 - muls r0, r2 - adds r1, 0x50 - adds r0, r1 - ldr r1, [r0] - movs r0, 0x80 - lsls r0, 5 - ands r0, r1 - cmp r0, 0 - bne _0801419C - movs r0, 0x80 - lsls r0, 15 - ands r1, r0 - cmp r1, 0 - beq _080141BC -_0801419C: - ldr r0, _080141B4 @ =gChosenActionByBattler - adds r0, r2, r0 - strb r3, [r0] - ldr r1, _080141B8 @ =gBattleCommunication - ldrb r0, [r4] - adds r0, r1 - movs r1, 0x3 - strb r1, [r0] - bl _08014C4E - .align 2, 0 -_080141B0: .4byte gBattleMons -_080141B4: .4byte gChosenActionByBattler -_080141B8: .4byte gBattleCommunication -_080141BC: - ldr r0, _080141D4 @ =gChosenActionByBattler - ldrb r1, [r0] - ldr r0, _080141D8 @ =gBattleBufferB - ldrb r2, [r0, 0x1] - ldrb r0, [r0, 0x2] - lsls r0, 8 - orrs r2, r0 - movs r0, 0 - bl BtlController_EmitChooseAction - bl _08014B26 - .align 2, 0 -_080141D4: .4byte gChosenActionByBattler -_080141D8: .4byte gBattleBufferB -_080141DC: - ldr r4, _08014234 @ =gBattleControllerExecFlags - ldr r1, _08014238 @ =gBitTable - ldr r3, _0801423C @ =gActiveBattler - ldrb r5, [r3] - lsls r0, r5, 2 - adds r0, r1 - ldr r2, [r0] - lsls r0, r2, 4 - movs r1, 0xF0 - lsls r1, 24 - orrs r0, r1 - orrs r0, r2 - lsls r1, r2, 8 - orrs r0, r1 - lsls r2, 12 - orrs r0, r2 - ldr r1, [r4] - ands r1, r0 - mov r8, r3 - cmp r1, 0 - beq _0801420A - bl _08014C4E -_0801420A: - ldr r2, _08014240 @ =gChosenActionByBattler - adds r2, r5, r2 - ldr r1, _08014244 @ =gBattleBufferB - lsls r0, r5, 9 - adds r1, 0x1 - adds r0, r1 - ldrb r0, [r0] - strb r0, [r2] - ldrb r0, [r3] - lsls r0, 9 - adds r0, r1 - ldrb r0, [r0] - cmp r0, 0xC - bls _08014228 - b _080146AC -_08014228: - lsls r0, 2 - ldr r1, _08014248 @ =_0801424C - adds r0, r1 - ldr r0, [r0] - mov pc, r0 - .align 2, 0 -_08014234: .4byte gBattleControllerExecFlags -_08014238: .4byte gBitTable -_0801423C: .4byte gActiveBattler -_08014240: .4byte gChosenActionByBattler -_08014244: .4byte gBattleBufferB -_08014248: .4byte _0801424C - .align 2, 0 -_0801424C: - .4byte _08014280 - .4byte _080143D4 - .4byte _08014450 - .4byte _080146AC - .4byte _080146AC - .4byte _08014620 - .4byte _080146AC - .4byte _080146AC - .4byte _080146AC - .4byte _080146AC - .4byte _080146AC - .4byte _080146AC - .4byte _08014670 -_08014280: - bl AreAllMovesUnusable - lsls r0, 24 - cmp r0, 0 - beq _080142D8 - ldr r0, _080142C8 @ =gBattleCommunication - ldr r3, _080142CC @ =gActiveBattler - ldrb r1, [r3] - adds r1, r0 - movs r4, 0 - movs r0, 0x5 - strb r0, [r1] - ldrb r1, [r3] - ldr r2, _080142D0 @ =gBattleStruct - ldr r0, [r2] - adds r1, r0 - adds r1, 0x54 - strb r4, [r1] - ldrb r1, [r3] - ldr r0, [r2] - adds r1, r0 - adds r1, 0x84 - movs r0, 0x3 - strb r0, [r1] - ldrb r1, [r3] - ldr r2, [r2] - adds r2, r1, r2 - ldr r0, _080142D4 @ =gBattleBufferB - lsls r1, 9 - adds r0, 0x3 - adds r1, r0 - ldrb r0, [r1] - strb r0, [r2, 0xC] - bl _08014C78 - .align 2, 0 -_080142C8: .4byte gBattleCommunication -_080142CC: .4byte gActiveBattler -_080142D0: .4byte gBattleStruct -_080142D4: .4byte gBattleBufferB -_080142D8: - ldr r3, _08014318 @ =gDisableStructs - ldr r5, _0801431C @ =gActiveBattler - ldrb r4, [r5] - lsls r0, r4, 3 - subs r0, r4 - lsls r0, 2 - adds r0, r3 - ldrh r2, [r0, 0x6] - cmp r2, 0 - beq _0801432C - ldr r1, _08014320 @ =gChosenMoveByBattler - lsls r0, r4, 1 - adds r0, r1 - strh r2, [r0] - ldrb r2, [r5] - ldr r0, _08014324 @ =gBattleStruct - ldr r1, [r0] - adds r1, r2, r1 - adds r1, 0x80 - lsls r0, r2, 3 - subs r0, r2 - lsls r0, 2 - adds r0, r3 - ldrb r0, [r0, 0xC] - strb r0, [r1] - ldr r1, _08014328 @ =gBattleCommunication - ldrb r0, [r5] - adds r0, r1 - movs r1, 0x3 - strb r1, [r0] - bl _08014C78 - .align 2, 0 -_08014318: .4byte gDisableStructs -_0801431C: .4byte gActiveBattler -_08014320: .4byte gChosenMoveByBattler -_08014324: .4byte gBattleStruct -_08014328: .4byte gBattleCommunication -_0801432C: - add r2, sp, 0x4 - ldr r3, _080143CC @ =gBattleMons - movs r1, 0x58 - adds r0, r4, 0 - muls r0, r1 - adds r0, r3 - ldrh r0, [r0] - strh r0, [r2, 0x10] - ldrb r0, [r5] - muls r0, r1 - adds r0, r3 - adds r0, 0x21 - ldrb r0, [r0] - strb r0, [r2, 0x12] - ldrb r0, [r5] - muls r0, r1 - adds r0, r3 - adds r0, 0x22 - ldrb r0, [r0] - strb r0, [r2, 0x13] - movs r4, 0 - mov r1, sp - adds r1, 0xC - str r1, [sp, 0x18] - add r2, sp, 0x10 - mov r10, r2 - mov r8, r3 - adds r7, r5, 0 - movs r6, 0x58 - movs r3, 0xC - add r3, r8 - mov r9, r3 - add r5, sp, 0x4 -_0801436E: - lsls r2, r4, 1 - ldrb r0, [r7] - muls r0, r6 - adds r0, r2, r0 - add r0, r9 - ldrh r0, [r0] - strh r0, [r5] - ldr r0, [sp, 0x18] - adds r3, r0, r4 - ldrb r0, [r7] - muls r0, r6 - adds r0, r4, r0 - mov r1, r8 - adds r1, 0x24 - adds r0, r1 - ldrb r0, [r0] - strb r0, [r3] - ldrb r0, [r7] - adds r1, r0, 0 - muls r1, r6 - adds r2, r1 - add r2, r9 - ldrh r0, [r2] - add r1, r8 - adds r1, 0x3B - ldrb r1, [r1] - lsls r2, r4, 24 - lsrs r2, 24 - bl CalculatePPWithBonus - mov r2, r10 - adds r1, r2, r4 - strb r0, [r1] - adds r5, 0x2 - adds r4, 0x1 - cmp r4, 0x3 - ble _0801436E - ldr r0, _080143D0 @ =gBattleTypeFlags - ldr r1, [r0] - movs r0, 0x1 - ands r1, r0 - movs r0, 0 - movs r2, 0 - add r3, sp, 0x4 - bl BtlController_EmitChooseMove - b _0801460E - .align 2, 0 -_080143CC: .4byte gBattleMons -_080143D0: .4byte gBattleTypeFlags -_080143D4: - ldr r0, _08014410 @ =gBattleTypeFlags - ldr r0, [r0] - ldr r1, _08014414 @ =0x00000902 - ands r0, r1 - cmp r0, 0 - beq _08014428 - ldr r1, _08014418 @ =gSelectionBattleScripts - mov r3, r8 - ldrb r0, [r3] - lsls r0, 2 - adds r0, r1 - ldr r1, _0801441C @ =gUnknown_81D96A4 - str r1, [r0] - ldr r0, _08014420 @ =gBattleCommunication - ldrb r1, [r3] - adds r1, r0 - movs r3, 0 - movs r0, 0x5 - strb r0, [r1] - mov r0, r8 - ldrb r1, [r0] - ldr r2, _08014424 @ =gBattleStruct - ldr r0, [r2] - adds r1, r0 - adds r1, 0x54 - strb r3, [r1] - mov r1, r8 - ldrb r0, [r1] - b _0801472C - .align 2, 0 -_08014410: .4byte gBattleTypeFlags -_08014414: .4byte 0x00000902 -_08014418: .4byte gSelectionBattleScripts -_0801441C: .4byte gUnknown_81D96A4 -_08014420: .4byte gBattleCommunication -_08014424: .4byte gBattleStruct -_08014428: - ldr r2, _08014448 @ =gBattleStruct - ldr r4, _0801444C @ =gActiveBattler - ldrb r1, [r4] - lsls r0, r1, 1 - adds r0, r1 - adds r0, 0x60 - ldr r1, [r2] - adds r1, r0 - movs r0, 0 - bl BtlController_EmitChooseItem - ldrb r0, [r4] - bl MarkBattlerForControllerExec - b _080146AC - .align 2, 0 -_08014448: .4byte gBattleStruct -_0801444C: .4byte gActiveBattler -_08014450: - ldr r5, _080144A8 @ =gActiveBattler - ldrb r0, [r5] - ldr r3, _080144AC @ =gBattleStruct - ldr r1, [r3] - adds r1, r0, r1 - adds r1, 0x58 - ldr r2, _080144B0 @ =gBattlerPartyIndexes - lsls r0, 1 - adds r0, r2 - ldrh r0, [r0] - strb r0, [r1] - ldr r7, _080144B4 @ =gBattleMons - ldrb r2, [r5] - movs r6, 0x58 - adds r0, r2, 0 - muls r0, r6 - adds r1, r7, 0 - adds r1, 0x50 - adds r0, r1 - ldr r0, [r0] - ldr r1, _080144B8 @ =0x0400e000 - ands r0, r1 - cmp r0, 0 - bne _08014492 - ldr r0, _080144BC @ =gStatuses3 - lsls r1, r2, 2 - adds r1, r0 - ldr r1, [r1] - movs r0, 0x80 - lsls r0, 3 - ands r1, r0 - cmp r1, 0 - beq _080144C0 -_08014492: - lsls r1, r2, 1 - adds r1, r2 - adds r1, 0x60 - ldr r0, [r3] - adds r0, r1 - str r0, [sp] - movs r0, 0 - movs r1, 0x2 - movs r2, 0x6 - b _080145DE - .align 2, 0 -_080144A8: .4byte gActiveBattler -_080144AC: .4byte gBattleStruct -_080144B0: .4byte gBattlerPartyIndexes -_080144B4: .4byte gBattleMons -_080144B8: .4byte 0x0400e000 -_080144BC: .4byte gStatuses3 -_080144C0: - str r1, [sp] - movs r0, 0xC - adds r1, r2, 0 - movs r2, 0x17 - movs r3, 0 - bl AbilityBattleEffects - lsls r0, 24 - lsrs r4, r0, 24 - cmp r4, 0 - bne _08014548 - ldrb r1, [r5] - str r4, [sp] - movs r0, 0xC - movs r2, 0x47 - movs r3, 0 - bl AbilityBattleEffects - lsls r0, 24 - lsrs r4, r0, 24 - cmp r4, 0 - beq _08014510 - ldrb r0, [r5] - muls r0, r6 - adds r1, r0, r7 - adds r0, r1, 0 - adds r0, 0x21 - ldrb r0, [r0] - cmp r0, 0x2 - beq _08014510 - adds r0, r1, 0 - adds r0, 0x22 - ldrb r0, [r0] - cmp r0, 0x2 - beq _08014510 - adds r0, r1, 0 - adds r0, 0x20 - ldrb r0, [r0] - cmp r0, 0x1A - bne _08014548 -_08014510: - ldr r5, _08014574 @ =gActiveBattler - ldrb r1, [r5] - movs r0, 0 - str r0, [sp] - movs r0, 0xF - movs r2, 0x2A - movs r3, 0 - bl AbilityBattleEffects - lsls r0, 24 - lsrs r4, r0, 24 - cmp r4, 0 - beq _08014584 - ldr r2, _08014578 @ =gBattleMons - ldrb r1, [r5] - movs r0, 0x58 - muls r0, r1 - adds r1, r0, r2 - adds r0, r1, 0 - adds r0, 0x21 - ldrb r0, [r0] - cmp r0, 0x8 - beq _08014548 - adds r0, r1, 0 - adds r0, 0x22 - ldrb r0, [r0] - cmp r0, 0x8 - bne _08014584 -_08014548: - subs r1, r4, 0x1 - lsls r1, 4 - movs r0, 0x4 - orrs r1, r0 - lsls r1, 24 - lsrs r1, 24 - ldr r0, _0801457C @ =gLastUsedAbility - ldrb r3, [r0] - ldr r4, _08014580 @ =gBattleStruct - ldr r0, _08014574 @ =gActiveBattler - ldrb r0, [r0] - lsls r2, r0, 1 - adds r2, r0 - adds r2, 0x60 - ldr r0, [r4] - adds r0, r2 - str r0, [sp] - movs r0, 0 - movs r2, 0x6 - bl BtlController_EmitChoosePokemon - b _0801460E - .align 2, 0 -_08014574: .4byte gActiveBattler -_08014578: .4byte gBattleMons -_0801457C: .4byte gLastUsedAbility -_08014580: .4byte gBattleStruct -_08014584: - ldr r0, _080145A8 @ =gActiveBattler - ldrb r1, [r0] - mov r8, r0 - cmp r1, 0x2 - bne _080145B4 - ldr r0, _080145AC @ =gChosenActionByBattler - ldrb r0, [r0] - cmp r0, 0x2 - bne _080145B4 - ldr r0, _080145B0 @ =gBattleStruct - ldr r3, [r0] - adds r0, r3, 0 - adds r0, 0x5C - ldrb r2, [r0] - mov r0, r8 - ldrb r1, [r0] - b _080145D0 - .align 2, 0 -_080145A8: .4byte gActiveBattler -_080145AC: .4byte gChosenActionByBattler -_080145B0: .4byte gBattleStruct -_080145B4: - mov r1, r8 - ldrb r0, [r1] - cmp r0, 0x3 - bne _080145F0 - ldr r0, _080145E8 @ =gChosenActionByBattler - ldrb r0, [r0, 0x1] - cmp r0, 0x2 - bne _080145F0 - ldr r0, _080145EC @ =gBattleStruct - ldr r3, [r0] - adds r0, r3, 0 - adds r0, 0x5D - ldrb r2, [r0] - ldrb r1, [r1] -_080145D0: - lsls r0, r1, 1 - adds r0, r1 - adds r0, 0x60 - adds r3, r0 - str r3, [sp] - movs r0, 0 - movs r1, 0 -_080145DE: - movs r3, 0 - bl BtlController_EmitChoosePokemon - b _0801460E - .align 2, 0 -_080145E8: .4byte gChosenActionByBattler -_080145EC: .4byte gBattleStruct -_080145F0: - ldr r2, _08014618 @ =gBattleStruct - ldr r0, _0801461C @ =gActiveBattler - ldrb r0, [r0] - lsls r1, r0, 1 - adds r1, r0 - adds r1, 0x60 - ldr r0, [r2] - adds r0, r1 - str r0, [sp] - movs r0, 0 - movs r1, 0 - movs r2, 0x6 - movs r3, 0 - bl BtlController_EmitChoosePokemon -_0801460E: - ldr r0, _0801461C @ =gActiveBattler - ldrb r0, [r0] - bl MarkBattlerForControllerExec - b _080146AC - .align 2, 0 -_08014618: .4byte gBattleStruct -_0801461C: .4byte gActiveBattler -_08014620: - bl IsPlayerPartyAndPokemonStorageFull - lsls r0, 24 - cmp r0, 0 - beq _080146AC - ldr r1, _0801465C @ =gSelectionBattleScripts - ldr r3, _08014660 @ =gActiveBattler - ldrb r0, [r3] - lsls r0, 2 - adds r0, r1 - ldr r1, _08014664 @ =gUnknown_81D8949 - str r1, [r0] - ldr r0, _08014668 @ =gBattleCommunication - ldrb r1, [r3] - adds r1, r0 - movs r4, 0 - movs r0, 0x5 - strb r0, [r1] - ldrb r1, [r3] - ldr r2, _0801466C @ =gBattleStruct - ldr r0, [r2] - adds r1, r0 - adds r1, 0x54 - strb r4, [r1] - ldrb r0, [r3] - ldr r1, [r2] - adds r0, r1 - adds r0, 0x84 - strb r4, [r0] - b _08014C78 - .align 2, 0 -_0801465C: .4byte gSelectionBattleScripts -_08014660: .4byte gActiveBattler -_08014664: .4byte gUnknown_81D8949 -_08014668: .4byte gBattleCommunication -_0801466C: .4byte gBattleStruct -_08014670: - ldr r4, _080146A8 @ =gBattleCommunication - mov r2, r8 - ldrb r1, [r2] - adds r1, r4 - movs r5, 0 - movs r0, 0x6 - strb r0, [r1] - ldrb r0, [r2] - bl GetBattlerPosition - movs r1, 0x2 - eors r0, r1 - lsls r0, 24 - lsrs r0, 24 - bl GetBattlerAtPosition - lsls r0, 24 - lsrs r0, 24 - adds r0, r4 - strb r5, [r0] - movs r0, 0 - bl BtlController_EmitEndBounceEffect - mov r3, r8 - ldrb r0, [r3] - bl MarkBattlerForControllerExec - b _08014C78 - .align 2, 0 -_080146A8: .4byte gBattleCommunication -_080146AC: - ldr r0, _080146D8 @ =gBattleTypeFlags - ldr r0, [r0] - movs r1, 0xA - ands r0, r1 - cmp r0, 0x8 - bne _080146EC - ldr r0, _080146DC @ =gBattleBufferB - ldr r4, _080146E0 @ =gActiveBattler - ldrb r1, [r4] - lsls r1, 9 - adds r0, 0x1 - adds r1, r0 - ldrb r0, [r1] - cmp r0, 0x3 - bne _080146EC - ldr r0, _080146E4 @ =gUnknown_81D8924 - bl BattleScriptExecute - ldr r1, _080146E8 @ =gBattleCommunication - ldrb r0, [r4] - adds r0, r1 - b _08014926 - .align 2, 0 -_080146D8: .4byte gBattleTypeFlags -_080146DC: .4byte gBattleBufferB -_080146E0: .4byte gActiveBattler -_080146E4: .4byte gUnknown_81D8924 -_080146E8: .4byte gBattleCommunication -_080146EC: - bl IsRunningFromBattleImpossible - lsls r0, 24 - cmp r0, 0 - beq _08014750 - ldr r0, _08014738 @ =gBattleBufferB - ldr r4, _0801473C @ =gActiveBattler - ldrb r2, [r4] - lsls r1, r2, 9 - adds r0, 0x1 - adds r1, r0 - ldrb r0, [r1] - cmp r0, 0x3 - bne _08014750 - ldr r1, _08014740 @ =gSelectionBattleScripts - lsls r0, r2, 2 - adds r0, r1 - ldr r1, _08014744 @ =gUnknown_81D8943 - str r1, [r0] - ldr r0, _08014748 @ =gBattleCommunication - ldrb r1, [r4] - adds r1, r0 - movs r3, 0 - movs r0, 0x5 - strb r0, [r1] - ldrb r1, [r4] - ldr r2, _0801474C @ =gBattleStruct - ldr r0, [r2] - adds r1, r0 - adds r1, 0x54 - strb r3, [r1] - ldrb r0, [r4] -_0801472C: - ldr r1, [r2] - adds r0, r1 - adds r0, 0x84 - strb r3, [r0] - b _08014C78 - .align 2, 0 -_08014738: .4byte gBattleBufferB -_0801473C: .4byte gActiveBattler -_08014740: .4byte gSelectionBattleScripts -_08014744: .4byte gUnknown_81D8943 -_08014748: .4byte gBattleCommunication -_0801474C: .4byte gBattleStruct -_08014750: - ldr r2, _0801475C @ =gBattleCommunication - ldr r0, _08014760 @ =gActiveBattler - ldrb r1, [r0] - adds r1, r2 - b _08014B32 - .align 2, 0 -_0801475C: .4byte gBattleCommunication -_08014760: .4byte gActiveBattler -_08014764: - ldr r4, _080147A8 @ =gBattleControllerExecFlags - ldr r1, _080147AC @ =gBitTable - ldr r3, _080147B0 @ =gActiveBattler - ldrb r5, [r3] - lsls r0, r5, 2 - adds r0, r1 - ldr r2, [r0] - lsls r0, r2, 4 - movs r1, 0xF0 - lsls r1, 24 - orrs r0, r1 - orrs r0, r2 - lsls r1, r2, 8 - orrs r0, r1 - lsls r2, 12 - orrs r0, r2 - ldr r1, [r4] - ands r1, r0 - mov r8, r3 - cmp r1, 0 - beq _08014790 - b _08014C4E -_08014790: - ldr r1, _080147B4 @ =gChosenActionByBattler - adds r0, r5, r1 - ldrb r0, [r0] - adds r3, r1, 0 - cmp r0, 0x9 - bls _0801479E - b _08014C4E -_0801479E: - lsls r0, 2 - ldr r1, _080147B8 @ =_080147BC - adds r0, r1 - ldr r0, [r0] - mov pc, r0 - .align 2, 0 -_080147A8: .4byte gBattleControllerExecFlags -_080147AC: .4byte gBitTable -_080147B0: .4byte gActiveBattler -_080147B4: .4byte gChosenActionByBattler -_080147B8: .4byte _080147BC - .align 2, 0 -_080147BC: - .4byte _080147E4 - .4byte _080148D8 - .4byte _08014910 - .4byte _08014A08 - .4byte _08014A2C - .4byte _08014A40 - .4byte _08014A54 - .4byte _08014A54 - .4byte _08014A68 - .4byte _08014A8C -_080147E4: - ldr r0, _08014804 @ =gBattleBufferB - mov r1, r8 - ldrb r4, [r1] - lsls r1, r4, 9 - adds r2, r0, 0x1 - adds r1, r2 - ldrb r1, [r1] - adds r7, r0, 0 - cmp r1, 0x9 - bgt _08014808 - cmp r1, 0x3 - blt _08014808 - adds r0, r4, r3 - strb r1, [r0] - b _08014C78 - .align 2, 0 -_08014804: .4byte gBattleBufferB -_08014808: - adds r3, r7, 0 - mov r5, r8 - ldrb r4, [r5] - lsls r1, r4, 9 - adds r6, r3, 0x2 - adds r0, r1, r6 - ldrb r2, [r0] - adds r3, 0x3 - mov r9, r3 - add r1, r9 - ldrb r0, [r1] - lsls r0, 8 - orrs r2, r0 - ldr r0, _08014830 @ =0x0000ffff - cmp r2, r0 - bne _08014838 - ldr r0, _08014834 @ =gBattleCommunication - adds r0, r4, r0 - b _08014926 - .align 2, 0 -_08014830: .4byte 0x0000ffff -_08014834: .4byte gBattleCommunication -_08014838: - bl TrySetCantSelectMoveBattleScript - lsls r0, 24 - cmp r0, 0 - beq _0801487C - ldr r0, _08014874 @ =gBattleCommunication - ldrb r1, [r5] - adds r1, r0 - movs r3, 0 - movs r0, 0x5 - strb r0, [r1] - ldrb r1, [r5] - ldr r2, _08014878 @ =gBattleStruct - ldr r0, [r2] - adds r1, r0 - adds r1, 0x54 - strb r3, [r1] - ldrb r0, [r5] - lsls r0, 9 - adds r1, r7, 0x1 - adds r0, r1 - strb r3, [r0] - ldrb r1, [r5] - ldr r0, [r2] - adds r1, r0 - adds r1, 0x84 - movs r0, 0x1 - strb r0, [r1] - b _08014C78 - .align 2, 0 -_08014874: .4byte gBattleCommunication -_08014878: .4byte gBattleStruct -_0801487C: - mov r2, r8 - ldrb r0, [r2] - ldr r4, _080148C8 @ =gBattleStruct - ldr r1, [r4] - adds r1, r0, r1 - adds r1, 0x80 - lsls r0, 9 - adds r0, r6 - ldrb r0, [r0] - strb r0, [r1] - ldr r0, _080148CC @ =gChosenMoveByBattler - ldrb r2, [r2] - lsls r5, r2, 1 - adds r5, r0 - ldr r3, _080148D0 @ =gBattleMons - ldr r4, [r4] - adds r0, r2, r4 - adds r0, 0x80 - ldrb r0, [r0] - lsls r0, 1 - movs r1, 0x58 - muls r1, r2 - adds r0, r1 - adds r3, 0xC - adds r0, r3 - ldrh r0, [r0] - strh r0, [r5] - mov r3, r8 - ldrb r0, [r3] - adds r4, r0, r4 - lsls r0, 9 - add r0, r9 - ldrb r0, [r0] - strb r0, [r4, 0xC] - ldr r0, _080148D4 @ =gBattleCommunication - ldrb r1, [r3] - b _08014B30 - .align 2, 0 -_080148C8: .4byte gBattleStruct -_080148CC: .4byte gChosenMoveByBattler -_080148D0: .4byte gBattleMons -_080148D4: .4byte gBattleCommunication -_080148D8: - ldr r2, _08014900 @ =gBattleBufferB - ldr r5, _08014904 @ =gActiveBattler - ldrb r4, [r5] - lsls r1, r4, 9 - adds r0, r2, 0x1 - adds r0, r1, r0 - ldrb r3, [r0] - adds r2, 0x2 - adds r1, r2 - ldrb r0, [r1] - lsls r0, 8 - orrs r3, r0 - cmp r3, 0 - bne _080148F6 - b _08014C48 -_080148F6: - ldr r0, _08014908 @ =gLastUsedItem - strh r3, [r0] - ldr r0, _0801490C @ =gBattleCommunication - ldrb r1, [r5] - b _08014B30 - .align 2, 0 -_08014900: .4byte gBattleBufferB -_08014904: .4byte gActiveBattler -_08014908: .4byte gLastUsedItem -_0801490C: .4byte gBattleCommunication -_08014910: - ldr r6, _0801492C @ =gBattleBufferB - ldr r7, _08014930 @ =gActiveBattler - ldrb r2, [r7] - lsls r0, r2, 9 - adds r1, r6, 0x1 - adds r0, r1 - ldrb r1, [r0] - cmp r1, 0x6 - bne _08014938 - ldr r0, _08014934 @ =gBattleCommunication - adds r0, r2, r0 -_08014926: - movs r1, 0 - strb r1, [r0] - b _08014C4E - .align 2, 0 -_0801492C: .4byte gBattleBufferB -_08014930: .4byte gActiveBattler -_08014934: .4byte gBattleCommunication -_08014938: - ldr r0, _080149FC @ =gBattleStruct - mov r12, r0 - ldr r0, [r0] - adds r0, r2, r0 - adds r0, 0x5C - strb r1, [r0] - ldr r0, _08014A00 @ =gBattleTypeFlags - ldr r0, [r0] - movs r1, 0x40 - ands r0, r1 - cmp r0, 0 - beq _080149F6 - ldrb r0, [r7] - mov r1, r12 - ldr r2, [r1] - lsls r1, r0, 1 - adds r1, r0 - adds r1, r2 - adds r1, 0x60 - ldrb r2, [r1] - movs r0, 0xF - ands r0, r2 - strb r0, [r1] - ldrb r0, [r7] - mov r2, r12 - ldr r1, [r2] - lsls r2, r0, 1 - adds r2, r0 - adds r2, r1 - adds r2, 0x60 - lsls r0, 9 - adds r5, r6, 0x2 - adds r0, r5 - ldrb r1, [r0] - movs r3, 0xF0 - adds r0, r3, 0 - ands r0, r1 - ldrb r1, [r2] - orrs r0, r1 - strb r0, [r2] - ldrb r1, [r7] - mov r0, r12 - ldr r2, [r0] - lsls r0, r1, 1 - adds r0, r1 - adds r0, r2 - adds r0, 0x61 - lsls r1, 9 - adds r6, 0x3 - adds r1, r6 - ldrb r1, [r1] - strb r1, [r0] - ldrb r0, [r7] - movs r4, 0x2 - eors r0, r4 - mov r1, r12 - ldr r2, [r1] - lsls r1, r0, 1 - adds r1, r0 - adds r1, r2 - adds r1, 0x60 - ldrb r2, [r1] - adds r0, r3, 0 - ands r0, r2 - strb r0, [r1] - ldrb r0, [r7] - eors r0, r4 - mov r1, r12 - ldr r2, [r1] - lsls r1, r0, 1 - adds r1, r0 - adds r1, r2 - adds r1, 0x60 - ldrb r0, [r7] - lsls r0, 9 - adds r0, r5 - ldrb r0, [r0] - ands r3, r0 - lsrs r3, 4 - ldrb r0, [r1] - orrs r3, r0 - strb r3, [r1] - ldrb r0, [r7] - eors r4, r0 - mov r2, r12 - ldr r0, [r2] - lsls r1, r4, 1 - adds r1, r4 - adds r1, r0 - adds r1, 0x62 - ldrb r0, [r7] - lsls r0, 9 - adds r0, r6 - ldrb r0, [r0] - strb r0, [r1] -_080149F6: - ldr r0, _08014A04 @ =gBattleCommunication - ldrb r1, [r7] - b _08014B30 - .align 2, 0 -_080149FC: .4byte gBattleStruct -_08014A00: .4byte gBattleTypeFlags -_08014A04: .4byte gBattleCommunication -_08014A08: - ldr r2, _08014A20 @ =gHitMarker - ldr r0, [r2] - movs r1, 0x80 - lsls r1, 8 - orrs r0, r1 - str r0, [r2] - ldr r2, _08014A24 @ =gBattleCommunication - ldr r0, _08014A28 @ =gActiveBattler - ldrb r1, [r0] - adds r1, r2 - b _08014B32 - .align 2, 0 -_08014A20: .4byte gHitMarker -_08014A24: .4byte gBattleCommunication -_08014A28: .4byte gActiveBattler -_08014A2C: - ldr r2, _08014A38 @ =gBattleCommunication - ldr r0, _08014A3C @ =gActiveBattler - ldrb r1, [r0] - adds r1, r2 - b _08014B32 - .align 2, 0 -_08014A38: .4byte gBattleCommunication -_08014A3C: .4byte gActiveBattler -_08014A40: - ldr r2, _08014A4C @ =gBattleCommunication - ldr r0, _08014A50 @ =gActiveBattler - ldrb r1, [r0] - adds r1, r2 - b _08014B32 - .align 2, 0 -_08014A4C: .4byte gBattleCommunication -_08014A50: .4byte gActiveBattler -_08014A54: - ldr r2, _08014A60 @ =gBattleCommunication - ldr r0, _08014A64 @ =gActiveBattler - ldrb r1, [r0] - adds r1, r2 - b _08014B32 - .align 2, 0 -_08014A60: .4byte gBattleCommunication -_08014A64: .4byte gActiveBattler -_08014A68: - ldr r2, _08014A80 @ =gHitMarker - ldr r0, [r2] - movs r1, 0x80 - lsls r1, 8 - orrs r0, r1 - str r0, [r2] - ldr r2, _08014A84 @ =gBattleCommunication - ldr r0, _08014A88 @ =gActiveBattler - ldrb r1, [r0] - adds r1, r2 - b _08014B32 - .align 2, 0 -_08014A80: .4byte gHitMarker -_08014A84: .4byte gBattleCommunication -_08014A88: .4byte gActiveBattler -_08014A8C: - ldr r2, _08014A98 @ =gBattleCommunication - ldr r0, _08014A9C @ =gActiveBattler - ldrb r1, [r0] - adds r1, r2 - b _08014B32 - .align 2, 0 -_08014A98: .4byte gBattleCommunication -_08014A9C: .4byte gActiveBattler -_08014AA0: - ldr r3, _08014B08 @ =gBattleControllerExecFlags - ldr r4, _08014B0C @ =gBitTable - ldr r0, _08014B10 @ =gActiveBattler - ldrb r0, [r0] - lsls r0, 2 - adds r0, r4 - ldr r2, [r0] - lsls r1, r2, 4 - movs r0, 0xF0 - lsls r0, 24 - orrs r1, r0 - orrs r1, r2 - lsls r0, r2, 8 - orrs r1, r0 - lsls r2, 12 - orrs r1, r2 - ldr r0, [r3] - ands r0, r1 - cmp r0, 0 - beq _08014ACA - b _08014C4E -_08014ACA: - ldr r0, _08014B14 @ =gBattleTypeFlags - ldr r0, [r0] - movs r1, 0x41 - ands r0, r1 - cmp r0, 0x1 - bne _08014AFE - movs r1, 0x2 - movs r0, 0x2 - ands r0, r5 - cmp r0, 0 - bne _08014AFE - adds r0, r5, 0 - eors r0, r1 - bl GetBattlerAtPosition - ldr r1, _08014B18 @ =gBattleStruct - ldr r1, [r1] - adds r1, 0x91 - ldrb r1, [r1] - lsls r0, 24 - lsrs r0, 22 - adds r0, r4 - ldr r0, [r0] - ands r1, r0 - cmp r1, 0 - beq _08014B1C -_08014AFE: - movs r0, 0 - movs r1, 0 - bl BtlController_EmitLinkStandbyMsg - b _08014B24 - .align 2, 0 -_08014B08: .4byte gBattleControllerExecFlags -_08014B0C: .4byte gBitTable -_08014B10: .4byte gActiveBattler -_08014B14: .4byte gBattleTypeFlags -_08014B18: .4byte gBattleStruct -_08014B1C: - movs r0, 0 - movs r1, 0x1 - bl BtlController_EmitLinkStandbyMsg -_08014B24: - ldr r4, _08014B3C @ =gActiveBattler -_08014B26: - ldrb r0, [r4] - bl MarkBattlerForControllerExec - ldr r0, _08014B40 @ =gBattleCommunication - ldrb r1, [r4] -_08014B30: - adds r1, r0 -_08014B32: - ldrb r0, [r1] - adds r0, 0x1 - strb r0, [r1] - b _08014C4E - .align 2, 0 -_08014B3C: .4byte gActiveBattler -_08014B40: .4byte gBattleCommunication -_08014B44: - ldr r3, _08014B78 @ =gBattleControllerExecFlags - ldr r1, _08014B7C @ =gBitTable - ldr r0, _08014B80 @ =gActiveBattler - ldrb r0, [r0] - lsls r0, 2 - adds r0, r1 - ldr r2, [r0] - lsls r1, r2, 4 - movs r0, 0xF0 - lsls r0, 24 - orrs r1, r0 - orrs r1, r2 - lsls r0, r2, 8 - orrs r1, r0 - lsls r2, 12 - orrs r1, r2 - ldr r0, [r3] - ands r0, r1 - cmp r0, 0 - bne _08014C4E - ldr r1, _08014B84 @ =gBattleCommunication - ldrb r0, [r1, 0x4] - adds r0, 0x1 - strb r0, [r1, 0x4] - b _08014C4E - .align 2, 0 -_08014B78: .4byte gBattleControllerExecFlags -_08014B7C: .4byte gBitTable -_08014B80: .4byte gActiveBattler -_08014B84: .4byte gBattleCommunication -_08014B88: - ldr r5, _08014BA8 @ =gActiveBattler - ldrb r2, [r5] - ldr r0, _08014BAC @ =gBattleStruct - ldr r0, [r0] - adds r1, r2, r0 - adds r0, r1, 0 - adds r0, 0x54 - ldrb r0, [r0] - cmp r0, 0 - beq _08014BB4 - ldr r0, _08014BB0 @ =gBattleCommunication - adds r0, r2, r0 - adds r1, 0x84 - ldrb r1, [r1] - strb r1, [r0] - b _08014C4E - .align 2, 0 -_08014BA8: .4byte gActiveBattler -_08014BAC: .4byte gBattleStruct -_08014BB0: .4byte gBattleCommunication -_08014BB4: - ldr r0, _08014C08 @ =gBattlerAttacker - strb r2, [r0] - ldr r7, _08014C0C @ =gBattlescriptCurrInstr - ldr r6, _08014C10 @ =gSelectionBattleScripts - ldrb r0, [r5] - lsls r0, 2 - adds r0, r6 - ldr r4, [r0] - str r4, [r7] - ldr r3, _08014C14 @ =gBattleControllerExecFlags - ldr r1, _08014C18 @ =gBitTable - ldrb r0, [r5] - lsls r0, 2 - adds r0, r1 - ldr r2, [r0] - lsls r1, r2, 4 - movs r0, 0xF0 - lsls r0, 24 - orrs r1, r0 - orrs r1, r2 - lsls r0, r2, 8 - orrs r1, r0 - lsls r2, 12 - orrs r1, r2 - ldr r0, [r3] - ands r0, r1 - cmp r0, 0 - bne _08014BFA - ldr r0, _08014C1C @ =gBattleScriptingCommandsTable - ldrb r1, [r4] - lsls r1, 2 - adds r1, r0 - ldr r0, [r1] - bl _call_via_r0 -_08014BFA: - ldrb r0, [r5] - lsls r0, 2 - adds r0, r6 - ldr r1, [r7] - str r1, [r0] - b _08014C4E - .align 2, 0 -_08014C08: .4byte gBattlerAttacker -_08014C0C: .4byte gBattlescriptCurrInstr -_08014C10: .4byte gSelectionBattleScripts -_08014C14: .4byte gBattleControllerExecFlags -_08014C18: .4byte gBitTable -_08014C1C: .4byte gBattleScriptingCommandsTable -_08014C20: - ldr r3, _08014C88 @ =gBattleControllerExecFlags - ldr r1, _08014C8C @ =gBitTable - ldr r0, _08014C90 @ =gActiveBattler - ldrb r4, [r0] - lsls r0, r4, 2 - adds r0, r1 - ldr r2, [r0] - lsls r0, r2, 4 - movs r1, 0xF0 - lsls r1, 24 - orrs r0, r1 - orrs r0, r2 - lsls r1, r2, 8 - orrs r0, r1 - lsls r2, 12 - orrs r0, r2 - ldr r3, [r3] - ands r3, r0 - cmp r3, 0 - bne _08014C4E -_08014C48: - ldr r0, _08014C94 @ =gBattleCommunication - adds r0, r4, r0 - strb r3, [r0] -_08014C4E: - ldr r0, _08014C90 @ =gActiveBattler - ldrb r1, [r0] - adds r1, 0x1 - strb r1, [r0] - ldr r0, _08014C98 @ =gBattlersCount - lsls r1, 24 - lsrs r1, 24 - adds r2, r0, 0 - ldrb r3, [r2] - cmp r1, r3 - bcs _08014C68 - bl _08014064 -_08014C68: - ldr r0, _08014C94 @ =gBattleCommunication - ldrb r0, [r0, 0x4] - ldrb r2, [r2] - cmp r0, r2 - bne _08014C78 - ldr r1, _08014C9C @ =gBattleMainFunc - ldr r0, _08014CA0 @ =sub_80150A8 - str r0, [r1] -_08014C78: - add sp, 0x1C - pop {r3-r5} - mov r8, r3 - mov r9, r4 - mov r10, r5 - pop {r4-r7} - pop {r0} - bx r0 - .align 2, 0 -_08014C88: .4byte gBattleControllerExecFlags -_08014C8C: .4byte gBitTable -_08014C90: .4byte gActiveBattler -_08014C94: .4byte gBattleCommunication -_08014C98: .4byte gBattlersCount -_08014C9C: .4byte gBattleMainFunc -_08014CA0: .4byte sub_80150A8 - thumb_func_end sub_8014040 - - thumb_func_start SwapTurnOrder -SwapTurnOrder: @ 8014CA4 - push {r4,r5,lr} - lsls r0, 24 - lsrs r0, 24 - lsls r1, 24 - lsrs r1, 24 - ldr r2, _08014CD0 @ =gActionsByTurnOrder - adds r4, r0, r2 - ldrb r5, [r4] - adds r2, r1, r2 - ldrb r3, [r2] - strb r3, [r4] - strb r5, [r2] - ldr r2, _08014CD4 @ =gBattlerByTurnOrder - adds r0, r2 - ldrb r5, [r0] - adds r1, r2 - ldrb r2, [r1] - strb r2, [r0] - strb r5, [r1] - pop {r4,r5} - pop {r0} - bx r0 - .align 2, 0 -_08014CD0: .4byte gActionsByTurnOrder -_08014CD4: .4byte gBattlerByTurnOrder - thumb_func_end SwapTurnOrder - - thumb_func_start GetWhoStrikesFirst -GetWhoStrikesFirst: @ 8014CD8 - push {r4-r7,lr} - mov r7, r10 - mov r6, r9 - mov r5, r8 - push {r5-r7} - sub sp, 0xC - lsls r0, 24 - lsrs r0, 24 - mov r9, r0 - lsls r1, 24 - lsrs r1, 24 - mov r10, r1 - lsls r2, 24 - lsrs r2, 24 - str r2, [sp, 0x4] - movs r0, 0 - str r0, [sp, 0x8] - str r0, [sp] - movs r0, 0x13 - movs r1, 0 - movs r2, 0xD - movs r3, 0 - bl AbilityBattleEffects - lsls r0, 24 - cmp r0, 0 - bne _08014DA0 - ldr r1, [sp, 0x8] - str r1, [sp] - movs r0, 0x13 - movs r1, 0 - movs r2, 0x4D - movs r3, 0 - bl AbilityBattleEffects - lsls r0, 24 - cmp r0, 0 - bne _08014DA0 - ldr r1, _08014D58 @ =gBattleMons - movs r0, 0x58 - mov r2, r9 - muls r2, r0 - adds r0, r2, 0 - adds r0, r1 - adds r0, 0x20 - ldrb r3, [r0] - cmp r3, 0x21 - bne _08014D44 - ldr r0, _08014D5C @ =gBattleWeather - ldrh r1, [r0] - movs r0, 0x7 - ands r0, r1 - cmp r0, 0 - bne _08014D54 -_08014D44: - cmp r3, 0x22 - bne _08014D60 - ldr r0, _08014D5C @ =gBattleWeather - ldrh r1, [r0] - movs r0, 0x60 - ands r0, r1 - cmp r0, 0 - beq _08014D60 -_08014D54: - movs r3, 0x2 - b _08014D62 - .align 2, 0 -_08014D58: .4byte gBattleMons -_08014D5C: .4byte gBattleWeather -_08014D60: - movs r3, 0x1 -_08014D62: - movs r0, 0x58 - mov r1, r10 - muls r1, r0 - adds r0, r1, 0 - ldr r2, _08014D98 @ =gBattleMons - adds r0, r2 - adds r0, 0x20 - ldrb r2, [r0] - cmp r2, 0x21 - bne _08014D82 - ldr r0, _08014D9C @ =gBattleWeather - ldrh r1, [r0] - movs r0, 0x7 - ands r0, r1 - cmp r0, 0 - bne _08014D92 -_08014D82: - cmp r2, 0x22 - bne _08014DA2 - ldr r0, _08014D9C @ =gBattleWeather - ldrh r1, [r0] - movs r0, 0x60 - ands r0, r1 - cmp r0, 0 - beq _08014DA2 -_08014D92: - movs r7, 0x2 - b _08014DA4 - .align 2, 0 -_08014D98: .4byte gBattleMons -_08014D9C: .4byte gBattleWeather -_08014DA0: - movs r3, 0x1 -_08014DA2: - movs r7, 0x1 -_08014DA4: - ldr r1, _08014DE8 @ =gBattleMons - movs r0, 0x58 - mov r2, r9 - muls r2, r0 - adds r0, r2, 0 - adds r4, r0, r1 - ldrh r0, [r4, 0x6] - muls r3, r0 - ldr r2, _08014DEC @ =gStatStageRatios - movs r1, 0x1B - ldrsb r1, [r4, r1] - lsls r1, 1 - adds r0, r1, r2 - ldrb r0, [r0] - muls r0, r3 - adds r2, 0x1 - adds r1, r2 - ldrb r1, [r1] - bl __divsi3 - mov r8, r0 - ldrh r0, [r4, 0x2E] - cmp r0, 0xAF - bne _08014DF4 - ldr r1, _08014DF0 @ =gEnigmaBerries - mov r3, r9 - lsls r0, r3, 3 - subs r0, r3 - lsls r0, 2 - adds r0, r1 - ldrb r6, [r0, 0x7] - ldrb r5, [r0, 0x1A] - b _08014E08 - .align 2, 0 -_08014DE8: .4byte gBattleMons -_08014DEC: .4byte gStatStageRatios -_08014DF0: .4byte gEnigmaBerries -_08014DF4: - ldrh r0, [r4, 0x2E] - bl ItemId_GetHoldEffect - lsls r0, 24 - lsrs r6, r0, 24 - ldrh r0, [r4, 0x2E] - bl ItemId_GetHoldEffectParam - lsls r0, 24 - lsrs r5, r0, 24 -_08014E08: - ldr r0, _08014EC4 @ =gBattleTypeFlags - ldr r0, [r0] - movs r1, 0x2 - ands r0, r1 - cmp r0, 0 - bne _08014E3C - ldr r0, _08014EC8 @ =0x00000822 - bl FlagGet - lsls r0, 24 - cmp r0, 0 - beq _08014E3C - mov r0, r9 - bl GetBattlerSide - lsls r0, 24 - cmp r0, 0 - bne _08014E3C - movs r0, 0x6E - mov r1, r8 - muls r1, r0 - adds r0, r1, 0 - movs r1, 0x64 - bl __udivsi3 - mov r8, r0 -_08014E3C: - cmp r6, 0x18 - bne _08014E46 - mov r2, r8 - lsrs r2, 1 - mov r8, r2 -_08014E46: - ldr r1, _08014ECC @ =gBattleMons - movs r0, 0x58 - mov r3, r9 - muls r3, r0 - adds r0, r3, 0 - adds r1, 0x4C - adds r0, r1 - ldr r0, [r0] - movs r1, 0x40 - ands r0, r1 - cmp r0, 0 - beq _08014E64 - mov r0, r8 - lsrs r0, 2 - mov r8, r0 -_08014E64: - cmp r6, 0x1A - bne _08014E80 - ldr r0, _08014ED0 @ =gUnknown_2023E80 - ldrh r4, [r0] - lsls r0, r5, 16 - subs r0, r5 - movs r1, 0x64 - bl __divsi3 - cmp r4, r0 - bge _08014E80 - movs r1, 0x1 - negs r1, r1 - mov r8, r1 -_08014E80: - ldr r1, _08014ECC @ =gBattleMons - movs r0, 0x58 - mov r2, r10 - muls r2, r0 - adds r0, r2, 0 - adds r4, r0, r1 - ldrh r0, [r4, 0x6] - adds r3, r0, 0 - muls r3, r7 - ldr r2, _08014ED4 @ =gStatStageRatios - movs r1, 0x1B - ldrsb r1, [r4, r1] - lsls r1, 1 - adds r0, r1, r2 - ldrb r0, [r0] - muls r0, r3 - adds r2, 0x1 - adds r1, r2 - ldrb r1, [r1] - bl __divsi3 - adds r7, r0, 0 - ldrh r0, [r4, 0x2E] - cmp r0, 0xAF - bne _08014EDC - ldr r1, _08014ED8 @ =gEnigmaBerries - mov r3, r10 - lsls r0, r3, 3 - subs r0, r3 - lsls r0, 2 - adds r0, r1 - ldrb r6, [r0, 0x7] - ldrb r5, [r0, 0x1A] - b _08014EF0 - .align 2, 0 -_08014EC4: .4byte gBattleTypeFlags -_08014EC8: .4byte 0x00000822 -_08014ECC: .4byte gBattleMons -_08014ED0: .4byte gUnknown_2023E80 -_08014ED4: .4byte gStatStageRatios -_08014ED8: .4byte gEnigmaBerries -_08014EDC: - ldrh r0, [r4, 0x2E] - bl ItemId_GetHoldEffect - lsls r0, 24 - lsrs r6, r0, 24 - ldrh r0, [r4, 0x2E] - bl ItemId_GetHoldEffectParam - lsls r0, 24 - lsrs r5, r0, 24 -_08014EF0: - ldr r0, _08014F68 @ =gBattleTypeFlags - ldr r0, [r0] - movs r1, 0x2 - ands r0, r1 - cmp r0, 0 - bne _08014F20 - ldr r0, _08014F6C @ =0x00000822 - bl FlagGet - lsls r0, 24 - cmp r0, 0 - beq _08014F20 - mov r0, r10 - bl GetBattlerSide - lsls r0, 24 - cmp r0, 0 - bne _08014F20 - movs r0, 0x6E - muls r0, r7 - movs r1, 0x64 - bl __udivsi3 - adds r7, r0, 0 -_08014F20: - cmp r6, 0x18 - bne _08014F26 - lsrs r7, 1 -_08014F26: - ldr r2, _08014F70 @ =gBattleMons - movs r0, 0x58 - mov r1, r10 - muls r1, r0 - adds r0, r1, 0 - adds r1, r2, 0 - adds r1, 0x4C - adds r0, r1 - ldr r0, [r0] - movs r1, 0x40 - ands r0, r1 - cmp r0, 0 - beq _08014F42 - lsrs r7, 2 -_08014F42: - cmp r6, 0x1A - bne _08014F5C - ldr r0, _08014F74 @ =gUnknown_2023E80 - ldrh r4, [r0] - lsls r0, r5, 16 - subs r0, r5 - movs r1, 0x64 - bl __divsi3 - cmp r4, r0 - bge _08014F5C - movs r7, 0x1 - negs r7, r7 -_08014F5C: - ldr r2, [sp, 0x4] - cmp r2, 0 - beq _08014F78 - movs r3, 0 - b _08015014 - .align 2, 0 -_08014F68: .4byte gBattleTypeFlags -_08014F6C: .4byte 0x00000822 -_08014F70: .4byte gBattleMons -_08014F74: .4byte gUnknown_2023E80 -_08014F78: - ldr r0, _08014F98 @ =gChosenActionByBattler - mov r3, r9 - adds r1, r3, r0 - ldrb r1, [r1] - adds r2, r0, 0 - cmp r1, 0 - bne _08014FC8 - ldr r0, _08014F9C @ =gProtectStructs - lsls r1, r3, 4 - adds r1, r0 - ldrb r0, [r1] - lsls r0, 29 - cmp r0, 0 - bge _08014FA0 - movs r3, 0xA5 - b _08014FCA - .align 2, 0 -_08014F98: .4byte gChosenActionByBattler -_08014F9C: .4byte gProtectStructs -_08014FA0: - ldr r0, _08014FC0 @ =gBattleStruct - ldr r0, [r0] - add r0, r9 - adds r0, 0x80 - ldrb r0, [r0] - lsls r0, 1 - movs r1, 0x58 - mov r3, r9 - muls r3, r1 - adds r1, r3, 0 - adds r0, r1 - ldr r1, _08014FC4 @ =gBattleMons - adds r1, 0xC - adds r0, r1 - ldrh r3, [r0] - b _08014FCA - .align 2, 0 -_08014FC0: .4byte gBattleStruct -_08014FC4: .4byte gBattleMons -_08014FC8: - movs r3, 0 -_08014FCA: - mov r1, r10 - adds r0, r1, r2 - ldrb r0, [r0] - cmp r0, 0 - bne _08015014 - ldr r0, _08014FE8 @ =gProtectStructs - lsls r1, 4 - adds r1, r0 - ldrb r0, [r1] - lsls r0, 29 - cmp r0, 0 - bge _08014FEC - movs r2, 0xA5 - b _08015016 - .align 2, 0 -_08014FE8: .4byte gProtectStructs -_08014FEC: - ldr r0, _0801500C @ =gBattleStruct - ldr r0, [r0] - add r0, r10 - adds r0, 0x80 - ldrb r0, [r0] - lsls r0, 1 - movs r1, 0x58 - mov r2, r10 - muls r2, r1 - adds r1, r2, 0 - adds r0, r1 - ldr r1, _08015010 @ =gBattleMons - adds r1, 0xC - adds r0, r1 - ldrh r2, [r0] - b _08015016 - .align 2, 0 -_0801500C: .4byte gBattleStruct -_08015010: .4byte gBattleMons -_08015014: - movs r2, 0 -_08015016: - ldr r4, _08015060 @ =gBattleMoves - lsls r0, r3, 1 - adds r0, r3 - lsls r0, 2 - adds r0, r4 - movs r1, 0x7 - ldrsb r1, [r0, r1] - lsls r3, r2, 1 - cmp r1, 0 - bne _0801503A - adds r0, r3, r2 - lsls r0, 2 - adds r0, r4 - ldrb r0, [r0, 0x7] - lsls r0, 24 - asrs r0, 24 - cmp r0, 0 - beq _08015078 -_0801503A: - adds r0, r3, r2 - lsls r0, 2 - adds r0, r4 - ldrb r0, [r0, 0x7] - lsls r0, 24 - asrs r0, 24 - cmp r1, r0 - bne _0801506E - cmp r8, r7 - bne _08015064 - bl Random - movs r1, 0x1 - ands r1, r0 - cmp r1, 0 - beq _08015064 - movs r3, 0x2 - b _08015094 - .align 2, 0 -_08015060: .4byte gBattleMoves -_08015064: - cmp r8, r7 - bcs _08015096 - movs r0, 0x1 - str r0, [sp, 0x8] - b _08015096 -_0801506E: - cmp r1, r0 - bge _08015096 - movs r1, 0x1 - str r1, [sp, 0x8] - b _08015096 -_08015078: - cmp r8, r7 - bne _0801508E - bl Random - movs r1, 0x1 - ands r1, r0 - cmp r1, 0 - beq _0801508E - movs r2, 0x2 - str r2, [sp, 0x8] - b _08015096 -_0801508E: - cmp r8, r7 - bcs _08015096 - movs r3, 0x1 -_08015094: - str r3, [sp, 0x8] -_08015096: - ldr r0, [sp, 0x8] - add sp, 0xC - pop {r3-r5} - mov r8, r3 - mov r9, r4 - mov r10, r5 - pop {r4-r7} - pop {r1} - bx r1 - thumb_func_end GetWhoStrikesFirst - - thumb_func_start sub_80150A8 -sub_80150A8: @ 80150A8 - push {r4-r7,lr} - mov r7, r10 - mov r6, r9 - mov r5, r8 - push {r5-r7} - movs r3, 0 - ldr r0, _080150FC @ =gBattleTypeFlags - ldr r1, [r0] - movs r0, 0x80 - ands r0, r1 - cmp r0, 0 - beq _08015114 - ldr r0, _08015100 @ =gActiveBattler - strb r3, [r0] - ldr r4, _08015104 @ =gBattlersCount - mov r8, r0 - ldrb r0, [r4] - cmp r3, r0 - bcc _080150D0 - b _080152FA -_080150D0: - ldr r7, _08015108 @ =gActionsByTurnOrder - ldr r6, _0801510C @ =gChosenActionByBattler - mov r2, r8 - ldr r5, _08015110 @ =gBattlerByTurnOrder -_080150D8: - adds r1, r3, r7 - ldrb r0, [r2] - adds r0, r6 - ldrb r0, [r0] - strb r0, [r1] - adds r1, r3, r5 - ldrb r0, [r2] - strb r0, [r1] - adds r3, 0x1 - ldrb r0, [r2] - adds r0, 0x1 - strb r0, [r2] - lsls r0, 24 - lsrs r0, 24 - ldrb r1, [r4] - cmp r0, r1 - bcc _080150D8 - b _080152FA - .align 2, 0 -_080150FC: .4byte gBattleTypeFlags -_08015100: .4byte gActiveBattler -_08015104: .4byte gBattlersCount -_08015108: .4byte gActionsByTurnOrder -_0801510C: .4byte gChosenActionByBattler -_08015110: .4byte gBattlerByTurnOrder -_08015114: - movs r0, 0x2 - ands r1, r0 - cmp r1, 0 - beq _08015164 - ldr r0, _08015158 @ =gActiveBattler - strb r3, [r0] - ldr r1, _0801515C @ =gBattlersCount - mov r8, r0 - adds r2, r1, 0 - ldrb r2, [r2] - cmp r3, r2 - bcs _08015174 - ldr r0, _08015160 @ =gChosenActionByBattler - ldrb r1, [r0] - adds r4, r0, 0 - cmp r1, 0x3 - beq _08015172 -_08015136: - mov r7, r8 - ldrb r0, [r7] - adds r0, 0x1 - strb r0, [r7] - lsls r0, 24 - lsrs r0, 24 - ldr r1, _0801515C @ =gBattlersCount - ldrb r1, [r1] - cmp r0, r1 - bcs _08015174 - ldrb r0, [r7] - adds r0, r4 - ldrb r0, [r0] - cmp r0, 0x3 - bne _08015136 - b _08015172 - .align 2, 0 -_08015158: .4byte gActiveBattler -_0801515C: .4byte gBattlersCount -_08015160: .4byte gChosenActionByBattler -_08015164: - ldr r0, _080151D8 @ =gChosenActionByBattler - ldrb r0, [r0] - ldr r2, _080151DC @ =gActiveBattler - mov r8, r2 - cmp r0, 0x3 - bne _08015174 - strb r3, [r2] -_08015172: - movs r3, 0x5 -_08015174: - cmp r3, 0x5 - bne _080151F8 - ldr r6, _080151E0 @ =gActionsByTurnOrder - ldr r1, _080151D8 @ =gChosenActionByBattler - mov r3, r8 - ldrb r0, [r3] - adds r0, r1 - ldrb r0, [r0] - strb r0, [r6] - ldr r2, _080151E4 @ =gBattlerByTurnOrder - ldrb r0, [r3] - strb r0, [r2] - movs r3, 0x1 - movs r5, 0 - adds r4, r1, 0 - ldr r7, _080151E8 @ =gBattleMainFunc - mov r10, r7 - ldr r0, _080151EC @ =CheckFocusPunch_ClearVarsBeforeTurnStarts - mov r12, r0 - ldr r1, _080151F0 @ =gBattleStruct - mov r9, r1 - ldr r7, _080151F4 @ =gBattlersCount - ldrb r7, [r7] - cmp r5, r7 - bge _080151CC - adds r7, r6, 0 - adds r6, r4, 0 - adds r4, r2, 0 - ldr r2, _080151F4 @ =gBattlersCount -_080151AE: - mov r0, r8 - ldrb r0, [r0] - cmp r5, r0 - beq _080151C4 - adds r1, r3, r7 - adds r0, r5, r6 - ldrb r0, [r0] - strb r0, [r1] - adds r0, r3, r4 - strb r5, [r0] - adds r3, 0x1 -_080151C4: - adds r5, 0x1 - ldrb r1, [r2] - cmp r5, r1 - blt _080151AE -_080151CC: - mov r2, r12 - mov r3, r10 - str r2, [r3] - mov r7, r9 - ldr r0, [r7] - b _08015304 - .align 2, 0 -_080151D8: .4byte gChosenActionByBattler -_080151DC: .4byte gActiveBattler -_080151E0: .4byte gActionsByTurnOrder -_080151E4: .4byte gBattlerByTurnOrder -_080151E8: .4byte gBattleMainFunc -_080151EC: .4byte CheckFocusPunch_ClearVarsBeforeTurnStarts -_080151F0: .4byte gBattleStruct -_080151F4: .4byte gBattlersCount -_080151F8: - movs r0, 0 - mov r1, r8 - strb r0, [r1] - ldr r2, _08015288 @ =gBattlersCount - ldrb r0, [r2] - cmp r0, 0 - beq _0801523E - ldr r6, _0801528C @ =gChosenActionByBattler - mov r2, r8 - ldr r5, _08015290 @ =gActionsByTurnOrder - ldr r4, _08015294 @ =gBattlerByTurnOrder -_0801520E: - ldrb r0, [r2] - adds r0, r6 - ldrb r1, [r0] - subs r0, r1, 0x1 - lsls r0, 24 - lsrs r0, 24 - cmp r0, 0x1 - bhi _0801522C - adds r0, r3, r5 - strb r1, [r0] - adds r1, r3, r4 - mov r7, r8 - ldrb r0, [r7] - strb r0, [r1] - adds r3, 0x1 -_0801522C: - ldrb r0, [r2] - adds r0, 0x1 - strb r0, [r2] - lsls r0, 24 - lsrs r0, 24 - ldr r1, _08015288 @ =gBattlersCount - ldrb r1, [r1] - cmp r0, r1 - bcc _0801520E -_0801523E: - movs r0, 0 - mov r2, r8 - strb r0, [r2] - ldr r7, _08015288 @ =gBattlersCount - ldrb r0, [r7] - cmp r0, 0 - beq _08015282 - ldr r6, _0801528C @ =gChosenActionByBattler - ldr r5, _08015290 @ =gActionsByTurnOrder - ldr r4, _08015294 @ =gBattlerByTurnOrder -_08015252: - ldrb r0, [r2] - adds r0, r6 - ldrb r1, [r0] - subs r0, r1, 0x1 - lsls r0, 24 - lsrs r0, 24 - cmp r0, 0x1 - bls _08015270 - adds r0, r3, r5 - strb r1, [r0] - adds r1, r3, r4 - mov r7, r8 - ldrb r0, [r7] - strb r0, [r1] - adds r3, 0x1 -_08015270: - ldrb r0, [r2] - adds r0, 0x1 - strb r0, [r2] - lsls r0, 24 - lsrs r0, 24 - ldr r1, _08015288 @ =gBattlersCount - ldrb r1, [r1] - cmp r0, r1 - bcc _08015252 -_08015282: - movs r5, 0 - b _080152F0 - .align 2, 0 -_08015288: .4byte gBattlersCount -_0801528C: .4byte gChosenActionByBattler -_08015290: .4byte gActionsByTurnOrder -_08015294: .4byte gBattlerByTurnOrder -_08015298: - adds r4, r5, 0x1 - adds r7, r4, 0 - ldrb r1, [r1] - cmp r7, r1 - bge _080152EE - ldr r6, _08015318 @ =gActionsByTurnOrder - lsls r2, r5, 24 - mov r8, r2 -_080152A8: - ldr r0, _0801531C @ =gBattlerByTurnOrder - adds r1, r5, r0 - ldrb r3, [r1] - adds r0, r4, r0 - ldrb r1, [r0] - adds r0, r5, r6 - ldrb r2, [r0] - cmp r2, 0x1 - beq _080152E4 - adds r0, r4, r6 - ldrb r0, [r0] - cmp r0, 0x1 - beq _080152E4 - cmp r2, 0x2 - beq _080152E4 - cmp r0, 0x2 - beq _080152E4 - adds r0, r3, 0 - movs r2, 0 - bl GetWhoStrikesFirst - lsls r0, 24 - cmp r0, 0 - beq _080152E4 - lsls r1, r4, 24 - lsrs r1, 24 - mov r3, r8 - lsrs r0, r3, 24 - bl SwapTurnOrder -_080152E4: - adds r4, 0x1 - ldr r0, _08015320 @ =gBattlersCount - ldrb r0, [r0] - cmp r4, r0 - blt _080152A8 -_080152EE: - adds r5, r7, 0 -_080152F0: - ldr r1, _08015320 @ =gBattlersCount - ldrb r0, [r1] - subs r0, 0x1 - cmp r5, r0 - blt _08015298 -_080152FA: - ldr r1, _08015324 @ =gBattleMainFunc - ldr r0, _08015328 @ =CheckFocusPunch_ClearVarsBeforeTurnStarts - str r0, [r1] - ldr r0, _0801532C @ =gBattleStruct - ldr r0, [r0] -_08015304: - adds r0, 0x48 - movs r1, 0 - strb r1, [r0] - pop {r3-r5} - mov r8, r3 - mov r9, r4 - mov r10, r5 - pop {r4-r7} - pop {r0} - bx r0 - .align 2, 0 -_08015318: .4byte gActionsByTurnOrder -_0801531C: .4byte gBattlerByTurnOrder -_08015320: .4byte gBattlersCount -_08015324: .4byte gBattleMainFunc -_08015328: .4byte CheckFocusPunch_ClearVarsBeforeTurnStarts -_0801532C: .4byte gBattleStruct - thumb_func_end sub_80150A8 - - thumb_func_start TurnValuesCleanUp -TurnValuesCleanUp: @ 8015330 - push {r4-r7,lr} - mov r7, r10 - mov r6, r9 - mov r5, r8 - push {r5-r7} - lsls r0, 24 - lsrs r0, 24 - mov r9, r0 - ldr r1, _08015388 @ =gActiveBattler - movs r0, 0 - strb r0, [r1] - ldr r0, _0801538C @ =gBattlersCount - ldrb r2, [r0] - adds r5, r1, 0 - cmp r2, 0 - beq _08015428 - ldr r7, _08015390 @ =gProtectStructs - adds r6, r5, 0 - ldr r0, _08015394 @ =gUnknown_2023C34 - mov r12, r0 - ldr r1, _08015398 @ =gDisableStructs - mov r8, r1 - mov r10, r8 -_0801535E: - mov r2, r9 - cmp r2, 0 - beq _0801539C - ldrb r1, [r6] - lsls r1, 4 - adds r1, r7 - ldrb r2, [r1] - movs r0, 0x2 - negs r0, r0 - ands r0, r2 - strb r0, [r1] - ldrb r1, [r6] - lsls r1, 4 - adds r1, r7 - ldrb r2, [r1] - movs r0, 0x3 - negs r0, r0 - ands r0, r2 - strb r0, [r1] - b _080153F8 - .align 2, 0 -_08015388: .4byte gActiveBattler -_0801538C: .4byte gBattlersCount -_08015390: .4byte gProtectStructs -_08015394: .4byte gUnknown_2023C34 -_08015398: .4byte gDisableStructs -_0801539C: - ldrb r0, [r6] - lsls r0, 4 - adds r2, r0, r7 - movs r1, 0 - mov r4, r10 - movs r3, 0 -_080153A8: - adds r0, r2, r1 - strb r3, [r0] - adds r1, 0x1 - cmp r1, 0xF - bls _080153A8 - ldrb r1, [r5] - lsls r0, r1, 3 - subs r0, r1 - lsls r0, 2 - adds r1, r0, r4 - ldrb r0, [r1, 0x16] - cmp r0, 0 - beq _080153C6 - subs r0, 0x1 - strb r0, [r1, 0x16] -_080153C6: - ldrb r1, [r5] - lsls r0, r1, 3 - subs r0, r1 - lsls r0, 2 - adds r1, r0, r4 - ldrb r0, [r1, 0x19] - cmp r0, 0 - beq _080153F8 - subs r0, 0x1 - strb r0, [r1, 0x19] - ldrb r2, [r5] - lsls r0, r2, 3 - subs r0, r2 - lsls r0, 2 - adds r0, r4 - ldrb r0, [r0, 0x19] - cmp r0, 0 - bne _080153F8 - movs r0, 0x58 - muls r2, r0 - add r2, r12 - ldr r0, [r2] - ldr r1, _08015440 @ =0xffbfffff - ands r0, r1 - str r0, [r2] -_080153F8: - ldrb r2, [r5] - lsls r0, r2, 3 - subs r0, r2 - lsls r0, 2 - add r0, r8 - ldrb r0, [r0, 0xA] - cmp r0, 0 - bne _08015416 - movs r0, 0x58 - muls r2, r0 - add r2, r12 - ldr r0, [r2] - ldr r1, _08015444 @ =0xfeffffff - ands r0, r1 - str r0, [r2] -_08015416: - ldrb r0, [r5] - adds r0, 0x1 - strb r0, [r5] - lsls r0, 24 - lsrs r0, 24 - ldr r1, _08015448 @ =gBattlersCount - ldrb r1, [r1] - cmp r0, r1 - bcc _0801535E -_08015428: - movs r0, 0 - ldr r2, _0801544C @ =gSideTimers - strb r0, [r2, 0x8] - strb r0, [r2, 0x14] - pop {r3-r5} - mov r8, r3 - mov r9, r4 - mov r10, r5 - pop {r4-r7} - pop {r0} - bx r0 - .align 2, 0 -_08015440: .4byte 0xffbfffff -_08015444: .4byte 0xfeffffff -_08015448: .4byte gBattlersCount -_0801544C: .4byte gSideTimers - thumb_func_end TurnValuesCleanUp - - thumb_func_start SpecialStatusesClear -SpecialStatusesClear: @ 8015450 - push {r4-r6,lr} - ldr r2, _08015494 @ =gActiveBattler - movs r0, 0 - strb r0, [r2] - ldr r0, _08015498 @ =gBattlersCount - ldrb r1, [r0] - adds r6, r0, 0 - cmp r1, 0 - beq _0801548E - adds r3, r2, 0 - movs r4, 0 - ldr r5, _0801549C @ =gSpecialStatuses -_08015468: - ldrb r1, [r3] - lsls r0, r1, 2 - adds r0, r1 - lsls r0, 2 - adds r2, r0, r5 - movs r1, 0 -_08015474: - adds r0, r2, r1 - strb r4, [r0] - adds r1, 0x1 - cmp r1, 0x13 - bls _08015474 - ldrb r0, [r3] - adds r0, 0x1 - strb r0, [r3] - lsls r0, 24 - lsrs r0, 24 - ldrb r1, [r6] - cmp r0, r1 - bcc _08015468 -_0801548E: - pop {r4-r6} - pop {r0} - bx r0 - .align 2, 0 -_08015494: .4byte gActiveBattler -_08015498: .4byte gBattlersCount -_0801549C: .4byte gSpecialStatuses - thumb_func_end SpecialStatusesClear - - thumb_func_start CheckFocusPunch_ClearVarsBeforeTurnStarts -CheckFocusPunch_ClearVarsBeforeTurnStarts: @ 80154A0 - push {r4-r7,lr} - ldr r0, _08015528 @ =gHitMarker - ldr r0, [r0] - movs r1, 0x80 - lsls r1, 8 - ands r0, r1 - cmp r0, 0 - bne _0801555E - ldr r2, _0801552C @ =gBattleStruct - ldr r0, [r2] - adds r0, 0x48 - ldr r1, _08015530 @ =gBattlersCount - ldrb r0, [r0] - mov r12, r2 - adds r6, r1, 0 - ldrb r1, [r6] - cmp r0, r1 - bcs _0801555E - ldr r5, _08015534 @ =gActiveBattler - ldr r4, _08015538 @ =gBattlerAttacker - movs r7, 0x84 - lsls r7, 1 -_080154CC: - ldr r1, [r2] - adds r1, 0x48 - ldrb r0, [r1] - strb r0, [r4] - strb r0, [r5] - ldrb r0, [r1] - adds r0, 0x1 - strb r0, [r1] - ldr r1, _0801553C @ =gChosenMoveByBattler - ldrb r3, [r5] - lsls r0, r3, 1 - adds r0, r1 - ldrh r0, [r0] - cmp r0, r7 - bne _08015550 - ldr r1, _08015540 @ =gBattleMons - movs r0, 0x58 - muls r0, r3 - adds r1, 0x4C - adds r0, r1 - ldr r0, [r0] - movs r1, 0x7 - ands r0, r1 - cmp r0, 0 - bne _08015550 - ldr r2, _08015544 @ =gDisableStructs - ldrb r1, [r4] - lsls r0, r1, 3 - subs r0, r1 - lsls r0, 2 - adds r0, r2 - ldrb r0, [r0, 0x18] - lsls r0, 31 - cmp r0, 0 - bne _08015550 - ldr r0, _08015548 @ =gProtectStructs - lsls r1, r3, 4 - adds r1, r0 - ldrb r0, [r1] - lsls r0, 29 - cmp r0, 0 - blt _08015550 - ldr r0, _0801554C @ =gUnknown_81D9015 - bl BattleScriptExecute - b _08015598 - .align 2, 0 -_08015528: .4byte gHitMarker -_0801552C: .4byte gBattleStruct -_08015530: .4byte gBattlersCount -_08015534: .4byte gActiveBattler -_08015538: .4byte gBattlerAttacker -_0801553C: .4byte gChosenMoveByBattler -_08015540: .4byte gBattleMons -_08015544: .4byte gDisableStructs -_08015548: .4byte gProtectStructs -_0801554C: .4byte gUnknown_81D9015 -_08015550: - mov r2, r12 - ldr r0, [r2] - adds r0, 0x48 - ldrb r0, [r0] - ldrb r1, [r6] - cmp r0, r1 - bcc _080154CC -_0801555E: - bl TryClearRageStatuses - ldr r1, _080155A0 @ =gCurrentTurnActionNumber - movs r0, 0 - strb r0, [r1] - ldr r1, _080155A4 @ =gCurrentActionFuncId - ldr r0, _080155A8 @ =gActionsByTurnOrder - movs r3, 0 - ldrb r0, [r0] - strb r0, [r1] - ldr r0, _080155AC @ =gDynamicBasePower - movs r2, 0 - strh r3, [r0] - ldr r0, _080155B0 @ =gBattleStruct - ldr r0, [r0] - strb r2, [r0, 0x13] - ldr r1, _080155B4 @ =gBattleMainFunc - ldr r0, _080155B8 @ =RunTurnActionsFunctions - str r0, [r1] - ldr r0, _080155BC @ =gBattleCommunication - strb r2, [r0, 0x3] - strb r2, [r0, 0x4] - ldr r0, _080155C0 @ =gBattleScripting - strb r2, [r0, 0x16] - ldr r0, _080155C4 @ =gBattleResources - ldr r0, [r0] - ldr r0, [r0, 0x8] - adds r0, 0x20 - strb r2, [r0] -_08015598: - pop {r4-r7} - pop {r0} - bx r0 - .align 2, 0 -_080155A0: .4byte gCurrentTurnActionNumber -_080155A4: .4byte gCurrentActionFuncId -_080155A8: .4byte gActionsByTurnOrder -_080155AC: .4byte gDynamicBasePower -_080155B0: .4byte gBattleStruct -_080155B4: .4byte gBattleMainFunc -_080155B8: .4byte RunTurnActionsFunctions -_080155BC: .4byte gBattleCommunication -_080155C0: .4byte gBattleScripting -_080155C4: .4byte gBattleResources - thumb_func_end CheckFocusPunch_ClearVarsBeforeTurnStarts - - thumb_func_start RunTurnActionsFunctions -RunTurnActionsFunctions: @ 80155C8 - push {r4-r6,lr} - ldr r6, _0801561C @ =gBattleOutcome - ldrb r0, [r6] - ldr r2, _08015620 @ =gCurrentActionFuncId - cmp r0, 0 - beq _080155D8 - movs r0, 0xC - strb r0, [r2] -_080155D8: - ldr r5, _08015624 @ =gBattleStruct - ldr r0, [r5] - adds r0, 0x4B - ldr r4, _08015628 @ =gCurrentTurnActionNumber - ldrb r1, [r4] - strb r1, [r0] - ldr r1, _0801562C @ =gUnknown_8250038 - ldrb r0, [r2] - lsls r0, 2 - adds r0, r1 - ldr r0, [r0] - bl _call_via_r0 - ldr r0, _08015630 @ =gBattlersCount - ldrb r1, [r4] - ldrb r0, [r0] - cmp r1, r0 - bcc _08015644 - ldr r2, _08015634 @ =gHitMarker - ldr r0, [r2] - ldr r1, _08015638 @ =0xffefffff - ands r0, r1 - str r0, [r2] - ldr r3, _0801563C @ =gBattleMainFunc - ldr r2, _08015640 @ =gUnknown_8250070 - ldrb r1, [r6] - movs r0, 0x7F - ands r0, r1 - lsls r0, 2 - adds r0, r2 - ldr r0, [r0] - str r0, [r3] - b _0801565C - .align 2, 0 -_0801561C: .4byte gBattleOutcome -_08015620: .4byte gCurrentActionFuncId -_08015624: .4byte gBattleStruct -_08015628: .4byte gCurrentTurnActionNumber -_0801562C: .4byte gUnknown_8250038 -_08015630: .4byte gBattlersCount -_08015634: .4byte gHitMarker -_08015638: .4byte 0xffefffff -_0801563C: .4byte gBattleMainFunc -_08015640: .4byte gUnknown_8250070 -_08015644: - ldr r0, [r5] - adds r0, 0x4B - ldrb r0, [r0] - cmp r0, r1 - beq _0801565C - ldr r2, _08015664 @ =gHitMarker - ldr r0, [r2] - ldr r1, _08015668 @ =0xfffffdff - ands r0, r1 - ldr r1, _0801566C @ =0xfff7ffff - ands r0, r1 - str r0, [r2] -_0801565C: - pop {r4-r6} - pop {r0} - bx r0 - .align 2, 0 -_08015664: .4byte gHitMarker -_08015668: .4byte 0xfffffdff -_0801566C: .4byte 0xfff7ffff - thumb_func_end RunTurnActionsFunctions - - thumb_func_start sub_8015670 -sub_8015670: @ 8015670 - push {r4,lr} - ldr r1, _080156A8 @ =gCurrentActionFuncId - movs r0, 0 - strb r0, [r1] - ldr r0, _080156AC @ =gBattleTypeFlags - ldr r1, [r0] - movs r0, 0x2 - ands r0, r1 - cmp r0, 0 - beq _080156C4 - ldr r1, _080156B0 @ =gBattleTextBuff1 - ldr r4, _080156B4 @ =gBattleOutcome - ldrb r0, [r4] - strb r0, [r1] - movs r0, 0 - bl GetBattlerAtPosition - ldr r1, _080156B8 @ =gBattlerAttacker - strb r0, [r1] - ldr r1, _080156BC @ =gBattlescriptCurrInstr - ldr r0, _080156C0 @ =gUnknown_81D88CC - str r0, [r1] - ldrb r1, [r4] - movs r0, 0x7F - ands r0, r1 - strb r0, [r4] - b _0801576E - .align 2, 0 -_080156A8: .4byte gCurrentActionFuncId -_080156AC: .4byte gBattleTypeFlags -_080156B0: .4byte gBattleTextBuff1 -_080156B4: .4byte gBattleOutcome -_080156B8: .4byte gBattlerAttacker -_080156BC: .4byte gBattlescriptCurrInstr -_080156C0: .4byte gUnknown_81D88CC -_080156C4: - ldr r0, _080156E0 @ =0x00080900 - ands r0, r1 - cmp r0, 0 - beq _080156EC - bl BattleStopLowHpSound - movs r0, 0x9B - lsls r0, 1 - bl PlayBGM - ldr r1, _080156E4 @ =gBattlescriptCurrInstr - ldr r0, _080156E8 @ =gUnknown_81D88D7 - b _0801576C - .align 2, 0 -_080156E0: .4byte 0x00080900 -_080156E4: .4byte gBattlescriptCurrInstr -_080156E8: .4byte gUnknown_81D88D7 -_080156EC: - movs r0, 0xA - ands r1, r0 - cmp r1, 0x8 - bne _08015768 - bl BattleStopLowHpSound - ldr r1, _08015720 @ =gBattlescriptCurrInstr - ldr r0, _08015724 @ =gUnknown_81D87EF - str r0, [r1] - ldr r2, _08015728 @ =gTrainers - ldr r0, _0801572C @ =gTrainerBattleOpponent_A - ldrh r1, [r0] - lsls r0, r1, 2 - adds r0, r1 - lsls r0, 3 - adds r0, r2 - ldrb r0, [r0, 0x1] - subs r0, 0x53 - cmp r0, 0x7 - bhi _0801575E - lsls r0, 2 - ldr r1, _08015730 @ =_08015734 - adds r0, r1 - ldr r0, [r0] - mov pc, r0 - .align 2, 0 -_08015720: .4byte gBattlescriptCurrInstr -_08015724: .4byte gUnknown_81D87EF -_08015728: .4byte gTrainers -_0801572C: .4byte gTrainerBattleOpponent_A -_08015730: .4byte _08015734 - .align 2, 0 -_08015734: - .4byte _0801575E - .4byte _08015754 - .4byte _0801575E - .4byte _0801575E - .4byte _0801575E - .4byte _0801575E - .4byte _0801575E - .4byte _08015754 -_08015754: - movs r0, 0x9C - lsls r0, 1 - bl PlayBGM - b _0801576E -_0801575E: - movs r0, 0x9B - lsls r0, 1 - bl PlayBGM - b _0801576E -_08015768: - ldr r1, _0801577C @ =gBattlescriptCurrInstr - ldr r0, _08015780 @ =gUnknown_81D8803 -_0801576C: - str r0, [r1] -_0801576E: - ldr r1, _08015784 @ =gBattleMainFunc - ldr r0, _08015788 @ =sub_8015910 - str r0, [r1] - pop {r4} - pop {r0} - bx r0 - .align 2, 0 -_0801577C: .4byte gBattlescriptCurrInstr -_08015780: .4byte gUnknown_81D8803 -_08015784: .4byte gBattleMainFunc -_08015788: .4byte sub_8015910 - thumb_func_end sub_8015670 - - thumb_func_start sub_801578C -sub_801578C: @ 801578C - push {r4,lr} - ldr r1, _080157C4 @ =gCurrentActionFuncId - movs r0, 0 - strb r0, [r1] - ldr r0, _080157C8 @ =gBattleTypeFlags - ldr r1, [r0] - movs r4, 0x2 - adds r0, r1, 0 - ands r0, r4 - cmp r0, 0 - beq _080157E0 - ldr r1, _080157CC @ =gBattleTextBuff1 - ldr r4, _080157D0 @ =gBattleOutcome - ldrb r0, [r4] - strb r0, [r1] - movs r0, 0 - bl GetBattlerAtPosition - ldr r1, _080157D4 @ =gBattlerAttacker - strb r0, [r1] - ldr r1, _080157D8 @ =gBattlescriptCurrInstr - ldr r0, _080157DC @ =gUnknown_81D88CC - str r0, [r1] - ldrb r1, [r4] - movs r0, 0x7F - ands r0, r1 - strb r0, [r4] - b _08015830 - .align 2, 0 -_080157C4: .4byte gCurrentActionFuncId -_080157C8: .4byte gBattleTypeFlags -_080157CC: .4byte gBattleTextBuff1 -_080157D0: .4byte gBattleOutcome -_080157D4: .4byte gBattlerAttacker -_080157D8: .4byte gBattlescriptCurrInstr -_080157DC: .4byte gUnknown_81D88CC -_080157E0: - movs r0, 0x8 - ands r1, r0 - cmp r1, 0 - beq _08015824 - bl sub_80803CC - lsls r0, 24 - lsrs r0, 24 - cmp r0, 0x9 - bne _08015824 - bl sub_80803D8 - movs r1, 0x1 - ands r1, r0 - cmp r1, 0 - beq _0801580C - ldr r1, _08015808 @ =gBattleCommunication - movs r0, 0x1 - strb r0, [r1, 0x5] - b _08015810 - .align 2, 0 -_08015808: .4byte gBattleCommunication -_0801580C: - ldr r0, _0801581C @ =gBattleCommunication - strb r4, [r0, 0x5] -_08015810: - movs r0, 0x1 - bl GetBattlerAtPosition - ldr r1, _08015820 @ =gBattlerAttacker - strb r0, [r1] - b _0801582A - .align 2, 0 -_0801581C: .4byte gBattleCommunication -_08015820: .4byte gBattlerAttacker -_08015824: - ldr r1, _0801583C @ =gBattleCommunication - movs r0, 0 - strb r0, [r1, 0x5] -_0801582A: - ldr r1, _08015840 @ =gBattlescriptCurrInstr - ldr r0, _08015844 @ =gUnknown_81D8806 - str r0, [r1] -_08015830: - ldr r1, _08015848 @ =gBattleMainFunc - ldr r0, _0801584C @ =sub_8015910 - str r0, [r1] - pop {r4} - pop {r0} - bx r0 - .align 2, 0 -_0801583C: .4byte gBattleCommunication -_08015840: .4byte gBattlescriptCurrInstr -_08015844: .4byte gUnknown_81D8806 -_08015848: .4byte gBattleMainFunc -_0801584C: .4byte sub_8015910 - thumb_func_end sub_801578C - - thumb_func_start sub_8015850 -sub_8015850: @ 8015850 - push {lr} - ldr r1, _08015878 @ =gCurrentActionFuncId - movs r0, 0 - strb r0, [r1] - ldr r1, _0801587C @ =gProtectStructs - ldr r0, _08015880 @ =gBattlerAttacker - ldrb r0, [r0] - lsls r0, 4 - adds r0, r1 - ldrb r0, [r0, 0x1] - lsls r0, 27 - lsrs r0, 30 - cmp r0, 0x1 - beq _0801588C - cmp r0, 0x2 - beq _0801589C - ldr r1, _08015884 @ =gBattlescriptCurrInstr - ldr r0, _08015888 @ =gUnknown_81D8916 - b _080158A0 - .align 2, 0 -_08015878: .4byte gCurrentActionFuncId -_0801587C: .4byte gProtectStructs -_08015880: .4byte gBattlerAttacker -_08015884: .4byte gBattlescriptCurrInstr -_08015888: .4byte gUnknown_81D8916 -_0801588C: - ldr r1, _08015894 @ =gBattlescriptCurrInstr - ldr r0, _08015898 @ =gUnknown_81D8901 - b _080158A0 - .align 2, 0 -_08015894: .4byte gBattlescriptCurrInstr -_08015898: .4byte gUnknown_81D8901 -_0801589C: - ldr r1, _080158AC @ =gBattlescriptCurrInstr - ldr r0, _080158B0 @ =gUnknown_81D890F -_080158A0: - str r0, [r1] - ldr r1, _080158B4 @ =gBattleMainFunc - ldr r0, _080158B8 @ =sub_8015910 - str r0, [r1] - pop {r0} - bx r0 - .align 2, 0 -_080158AC: .4byte gBattlescriptCurrInstr -_080158B0: .4byte gUnknown_81D890F -_080158B4: .4byte gBattleMainFunc -_080158B8: .4byte sub_8015910 - thumb_func_end sub_8015850 - - thumb_func_start sub_80158BC -sub_80158BC: @ 80158BC - ldr r1, _080158F0 @ =gCurrentActionFuncId - movs r0, 0 - strb r0, [r1] - ldr r1, _080158F4 @ =gBattleTextBuff1 - movs r0, 0xFD - strb r0, [r1] - movs r0, 0x7 - strb r0, [r1, 0x1] - ldr r2, _080158F8 @ =gBattlerAttacker - ldrb r0, [r2] - strb r0, [r1, 0x2] - ldr r3, _080158FC @ =gBattlerPartyIndexes - ldrb r0, [r2] - lsls r0, 1 - adds r0, r3 - ldrh r0, [r0] - strb r0, [r1, 0x3] - movs r0, 0xFF - strb r0, [r1, 0x4] - ldr r1, _08015900 @ =gBattlescriptCurrInstr - ldr r0, _08015904 @ =gUnknown_81D891D - str r0, [r1] - ldr r1, _08015908 @ =gBattleMainFunc - ldr r0, _0801590C @ =sub_8015910 - str r0, [r1] - bx lr - .align 2, 0 -_080158F0: .4byte gCurrentActionFuncId -_080158F4: .4byte gBattleTextBuff1 -_080158F8: .4byte gBattlerAttacker -_080158FC: .4byte gBattlerPartyIndexes -_08015900: .4byte gBattlescriptCurrInstr -_08015904: .4byte gUnknown_81D891D -_08015908: .4byte gBattleMainFunc -_0801590C: .4byte sub_8015910 - thumb_func_end sub_80158BC - - thumb_func_start sub_8015910 -sub_8015910: @ 8015910 - push {r4-r7,lr} - ldr r0, _08015974 @ =gCurrentActionFuncId - ldrb r0, [r0] - subs r0, 0xB - lsls r0, 24 - lsrs r0, 24 - cmp r0, 0x1 - bhi _08015A04 - ldr r0, _08015978 @ =gBattleTypeFlags - ldr r1, [r0] - ldr r0, _0801597C @ =0x00080b92 - ands r1, r0 - cmp r1, 0 - bne _080159BC - ldr r2, _08015980 @ =gActiveBattler - strb r1, [r2] - ldr r0, _08015984 @ =gBattlersCount - ldrb r0, [r0] - cmp r1, r0 - bcs _080159BC - adds r4, r2, 0 - ldr r6, _08015988 @ =gBattleMons - movs r5, 0x58 - adds r7, r6, 0 - adds r7, 0x30 -_08015942: - ldrb r0, [r4] - bl GetBattlerSide - lsls r0, 24 - cmp r0, 0 - bne _080159AA - ldr r2, _0801598C @ =gBattleResults - ldrh r0, [r2, 0x6] - cmp r0, 0 - bne _08015990 - ldrb r0, [r4] - muls r0, r5 - adds r0, r6 - ldrh r0, [r0] - strh r0, [r2, 0x6] - ldrb r0, [r4] - adds r1, r0, 0 - muls r1, r5 - adds r1, r7 - adds r0, r2, 0 - adds r0, 0x8 - bl StringCopy - b _080159AA - .align 2, 0 -_08015974: .4byte gCurrentActionFuncId -_08015978: .4byte gBattleTypeFlags -_0801597C: .4byte 0x00080b92 -_08015980: .4byte gActiveBattler -_08015984: .4byte gBattlersCount -_08015988: .4byte gBattleMons -_0801598C: .4byte gBattleResults -_08015990: - ldrb r0, [r4] - muls r0, r5 - adds r0, r6 - ldrh r0, [r0] - strh r0, [r2, 0x26] - ldrb r0, [r4] - adds r1, r0, 0 - muls r1, r5 - adds r1, r7 - adds r0, r2, 0 - adds r0, 0x14 - bl StringCopy -_080159AA: - ldrb r0, [r4] - adds r0, 0x1 - strb r0, [r4] - ldr r1, _080159EC @ =gBattlersCount - lsls r0, 24 - lsrs r0, 24 - ldrb r1, [r1] - cmp r0, r1 - bcc _08015942 -_080159BC: - bl sub_812BFDC - ldr r0, _080159F0 @ =gBattleTypeFlags - ldr r0, [r0] - movs r1, 0x8 - ands r0, r1 - cmp r0, 0 - beq _080159D0 - bl sub_810CB90 -_080159D0: - movs r0, 0x3 - bl BeginFastPaletteFade - movs r0, 0x5 - bl FadeOutMapMusic - ldr r1, _080159F4 @ =gBattleMainFunc - ldr r0, _080159F8 @ =sub_8015A30 - str r0, [r1] - ldr r1, _080159FC @ =gUnknown_300537C - ldr r0, _08015A00 @ =BattleMainCB2 - str r0, [r1] - b _08015A1E - .align 2, 0 -_080159EC: .4byte gBattlersCount -_080159F0: .4byte gBattleTypeFlags -_080159F4: .4byte gBattleMainFunc -_080159F8: .4byte sub_8015A30 -_080159FC: .4byte gUnknown_300537C -_08015A00: .4byte BattleMainCB2 -_08015A04: - ldr r0, _08015A24 @ =gBattleControllerExecFlags - ldr r0, [r0] - cmp r0, 0 - bne _08015A1E - ldr r1, _08015A28 @ =gBattleScriptingCommandsTable - ldr r0, _08015A2C @ =gBattlescriptCurrInstr - ldr r0, [r0] - ldrb r0, [r0] - lsls r0, 2 - adds r0, r1 - ldr r0, [r0] - bl _call_via_r0 -_08015A1E: - pop {r4-r7} - pop {r0} - bx r0 - .align 2, 0 -_08015A24: .4byte gBattleControllerExecFlags -_08015A28: .4byte gBattleScriptingCommandsTable -_08015A2C: .4byte gBattlescriptCurrInstr - thumb_func_end sub_8015910 - - thumb_func_start sub_8015A30 -sub_8015A30: @ 8015A30 - push {lr} - ldr r0, _08015A58 @ =gPaletteFade - ldrb r1, [r0, 0x7] - movs r0, 0x80 - ands r0, r1 - cmp r0, 0 - bne _08015A8E - bl ResetSpriteData - ldr r0, _08015A5C @ =gLeveledUpInBattle - ldrb r0, [r0] - cmp r0, 0 - beq _08015A52 - ldr r0, _08015A60 @ =gBattleOutcome - ldrb r0, [r0] - cmp r0, 0x1 - beq _08015A6C -_08015A52: - ldr r1, _08015A64 @ =gBattleMainFunc - ldr r0, _08015A68 @ =ReturnFromBattleToOverworld - b _08015A70 - .align 2, 0 -_08015A58: .4byte gPaletteFade -_08015A5C: .4byte gLeveledUpInBattle -_08015A60: .4byte gBattleOutcome -_08015A64: .4byte gBattleMainFunc -_08015A68: .4byte ReturnFromBattleToOverworld -_08015A6C: - ldr r1, _08015A94 @ =gBattleMainFunc - ldr r0, _08015A98 @ =sub_8015AA0 -_08015A70: - str r0, [r1] - bl FreeAllWindowBuffers - ldr r0, _08015A9C @ =gBattleTypeFlags - ldr r0, [r0] - movs r1, 0x2 - ands r0, r1 - cmp r0, 0 - bne _08015A8E - bl FreeMonSpritesGfx - bl FreeBattleSpritesData - bl FreeBattleResources -_08015A8E: - pop {r0} - bx r0 - .align 2, 0 -_08015A94: .4byte gBattleMainFunc -_08015A98: .4byte sub_8015AA0 -_08015A9C: .4byte gBattleTypeFlags - thumb_func_end sub_8015A30 - - thumb_func_start sub_8015AA0 -sub_8015AA0: @ 8015AA0 - push {r4,r5,lr} - ldr r0, _08015AF4 @ =gLeveledUpInBattle - ldrb r1, [r0] - adds r3, r0, 0 - cmp r1, 0 - beq _08015B16 -_08015AAC: - movs r5, 0 -_08015AAE: - ldrb r2, [r3] - ldr r0, _08015AF8 @ =gBitTable - lsls r1, r5, 2 - adds r1, r0 - ldr r1, [r1] - adds r0, r2, 0 - ands r0, r1 - cmp r0, 0 - beq _08015B08 - bics r2, r1 - strb r2, [r3] - movs r0, 0x64 - adds r1, r5, 0 - muls r1, r0 - ldr r0, _08015AFC @ =gPlayerParty - adds r4, r1, r0 - adds r0, r4, 0 - movs r1, 0 - bl GetEvolutionTargetSpecies - lsls r0, 16 - lsrs r2, r0, 16 - cmp r2, 0 - beq _08015B08 - ldr r0, _08015B00 @ =gBattleMainFunc - ldr r1, _08015B04 @ =sub_8015B30 - str r1, [r0] - lsls r3, r5, 24 - lsrs r3, 24 - adds r0, r4, 0 - adds r1, r2, 0 - movs r2, 0x81 - bl EvolutionScene - b _08015B1C - .align 2, 0 -_08015AF4: .4byte gLeveledUpInBattle -_08015AF8: .4byte gBitTable -_08015AFC: .4byte gPlayerParty -_08015B00: .4byte gBattleMainFunc -_08015B04: .4byte sub_8015B30 -_08015B08: - adds r5, 0x1 - ldr r3, _08015B24 @ =gLeveledUpInBattle - cmp r5, 0x5 - ble _08015AAE - ldrb r0, [r3] - cmp r0, 0 - bne _08015AAC -_08015B16: - ldr r1, _08015B28 @ =gBattleMainFunc - ldr r0, _08015B2C @ =ReturnFromBattleToOverworld - str r0, [r1] -_08015B1C: - pop {r4,r5} - pop {r0} - bx r0 - .align 2, 0 -_08015B24: .4byte gLeveledUpInBattle -_08015B28: .4byte gBattleMainFunc -_08015B2C: .4byte ReturnFromBattleToOverworld - thumb_func_end sub_8015AA0 - - thumb_func_start sub_8015B30 -sub_8015B30: @ 8015B30 - push {lr} - ldr r0, _08015B48 @ =gMain - ldr r1, [r0, 0x4] - ldr r0, _08015B4C @ =BattleMainCB2 - cmp r1, r0 - bne _08015B42 - ldr r1, _08015B50 @ =gBattleMainFunc - ldr r0, _08015B54 @ =sub_8015AA0 - str r0, [r1] -_08015B42: - pop {r0} - bx r0 - .align 2, 0 -_08015B48: .4byte gMain -_08015B4C: .4byte BattleMainCB2 -_08015B50: .4byte gBattleMainFunc -_08015B54: .4byte sub_8015AA0 - thumb_func_end sub_8015B30 - - thumb_func_start ReturnFromBattleToOverworld -ReturnFromBattleToOverworld: @ 8015B58 - push {r4-r6,lr} - ldr r6, _08015BDC @ =gBattleTypeFlags - ldr r0, [r6] - movs r5, 0x2 - ands r0, r5 - cmp r0, 0 - bne _08015B74 - ldr r4, _08015BE0 @ =gPlayerParty - adds r0, r4, 0 - bl sub_8043A68 - adds r0, r4, 0 - bl sub_8043B40 -_08015B74: - ldr r4, [r6] - adds r0, r4, 0 - ands r0, r5 - cmp r0, 0 - beq _08015B86 - ldr r0, _08015BE4 @ =gReceivedRemoteLinkPlayers - ldrb r0, [r0] - cmp r0, 0 - bne _08015BD4 -_08015B86: - ldr r1, _08015BE8 @ =gSpecialVar_Result - ldr r5, _08015BEC @ =gBattleOutcome - ldrb r0, [r5] - strh r0, [r1] - ldr r3, _08015BF0 @ =gMain - ldr r0, _08015BF4 @ =0x00000439 - adds r2, r3, r0 - ldrb r1, [r2] - movs r0, 0x3 - negs r0, r0 - ands r0, r1 - strb r0, [r2] - ldr r0, _08015BF8 @ =gPreBattleCallback1 - ldr r0, [r0] - str r0, [r3] - movs r0, 0x80 - lsls r0, 3 - ands r4, r0 - cmp r4, 0 - beq _08015BC6 - ldr r0, _08015BFC @ =gEnemyParty - bl UpdateRoamerHPStatus - ldrb r1, [r5] - movs r0, 0x1 - ands r0, r1 - cmp r0, 0 - bne _08015BC2 - cmp r1, 0x7 - bne _08015BC6 -_08015BC2: - bl SetRoamerInactive -_08015BC6: - movs r0, 0x53 - bl m4aSongNumStop - ldr r0, _08015BF0 @ =gMain - ldr r0, [r0, 0x8] - bl SetMainCallback2 -_08015BD4: - pop {r4-r6} - pop {r0} - bx r0 - .align 2, 0 -_08015BDC: .4byte gBattleTypeFlags -_08015BE0: .4byte gPlayerParty -_08015BE4: .4byte gReceivedRemoteLinkPlayers -_08015BE8: .4byte gSpecialVar_Result -_08015BEC: .4byte gBattleOutcome -_08015BF0: .4byte gMain -_08015BF4: .4byte 0x00000439 -_08015BF8: .4byte gPreBattleCallback1 -_08015BFC: .4byte gEnemyParty - thumb_func_end ReturnFromBattleToOverworld - - thumb_func_start RunBattleScriptCommands_PopCallbacksStack -RunBattleScriptCommands_PopCallbacksStack: @ 8015C00 - push {lr} - ldr r0, _08015C3C @ =gCurrentActionFuncId - ldrb r0, [r0] - subs r0, 0xB - lsls r0, 24 - lsrs r0, 24 - cmp r0, 0x1 - bhi _08015C48 - ldr r3, _08015C40 @ =gBattleResources - ldr r0, [r3] - ldr r0, [r0, 0xC] - adds r1, r0, 0 - adds r1, 0x20 - ldrb r0, [r1] - cmp r0, 0 - beq _08015C24 - subs r0, 0x1 - strb r0, [r1] -_08015C24: - ldr r2, _08015C44 @ =gBattleMainFunc - ldr r0, [r3] - ldr r1, [r0, 0xC] - adds r0, r1, 0 - adds r0, 0x20 - ldrb r0, [r0] - lsls r0, 2 - adds r1, r0 - ldr r0, [r1] - str r0, [r2] - b _08015C62 - .align 2, 0 -_08015C3C: .4byte gCurrentActionFuncId -_08015C40: .4byte gBattleResources -_08015C44: .4byte gBattleMainFunc -_08015C48: - ldr r0, _08015C68 @ =gBattleControllerExecFlags - ldr r0, [r0] - cmp r0, 0 - bne _08015C62 - ldr r1, _08015C6C @ =gBattleScriptingCommandsTable - ldr r0, _08015C70 @ =gBattlescriptCurrInstr - ldr r0, [r0] - ldrb r0, [r0] - lsls r0, 2 - adds r0, r1 - ldr r0, [r0] - bl _call_via_r0 -_08015C62: - pop {r0} - bx r0 - .align 2, 0 -_08015C68: .4byte gBattleControllerExecFlags -_08015C6C: .4byte gBattleScriptingCommandsTable -_08015C70: .4byte gBattlescriptCurrInstr - thumb_func_end RunBattleScriptCommands_PopCallbacksStack - - thumb_func_start RunBattleScriptCommands -RunBattleScriptCommands: @ 8015C74 - push {lr} - ldr r0, _08015C94 @ =gBattleControllerExecFlags - ldr r0, [r0] - cmp r0, 0 - bne _08015C90 - ldr r1, _08015C98 @ =gBattleScriptingCommandsTable - ldr r0, _08015C9C @ =gBattlescriptCurrInstr - ldr r0, [r0] - ldrb r0, [r0] - lsls r0, 2 - adds r0, r1 - ldr r0, [r0] - bl _call_via_r0 -_08015C90: - pop {r0} - bx r0 - .align 2, 0 -_08015C94: .4byte gBattleControllerExecFlags -_08015C98: .4byte gBattleScriptingCommandsTable -_08015C9C: .4byte gBattlescriptCurrInstr - thumb_func_end RunBattleScriptCommands - - thumb_func_start sub_8015CA0 -sub_8015CA0: @ 8015CA0 - push {r4-r7,lr} - mov r7, r10 - mov r6, r9 - mov r5, r8 - push {r5-r7} - sub sp, 0x8 - movs r0, 0x4 - str r0, [sp] - ldr r6, _08015CE0 @ =gBattlerAttacker - ldr r1, _08015CE4 @ =gBattlerByTurnOrder - ldr r0, _08015CE8 @ =gCurrentTurnActionNumber - ldrb r0, [r0] - adds r0, r1 - ldrb r0, [r0] - strb r0, [r6] - ldr r1, _08015CEC @ =gBattleStruct - ldr r3, [r1] - adds r0, r3, 0 - adds r0, 0x91 - ldrb r2, [r0] - ldr r1, _08015CF0 @ =gBitTable - ldrb r0, [r6] - lsls r0, 2 - adds r0, r1 - ldr r0, [r0] - ands r2, r0 - cmp r2, 0 - beq _08015CF8 - ldr r1, _08015CF4 @ =gCurrentActionFuncId - movs r0, 0xC - b _0801634C - .align 2, 0 -_08015CE0: .4byte gBattlerAttacker -_08015CE4: .4byte gBattlerByTurnOrder -_08015CE8: .4byte gCurrentTurnActionNumber -_08015CEC: .4byte gBattleStruct -_08015CF0: .4byte gBitTable -_08015CF4: .4byte gCurrentActionFuncId -_08015CF8: - ldr r1, _08015D6C @ =gCritMultiplier - movs r0, 0x1 - strb r0, [r1] - ldr r1, _08015D70 @ =gBattleScripting - movs r0, 0x1 - strb r0, [r1, 0xE] - adds r0, r3, 0 - adds r0, 0xB7 - strb r2, [r0] - ldr r0, _08015D74 @ =gMoveResultFlags - strb r2, [r0] - ldr r0, _08015D78 @ =gMultiHitCounter - strb r2, [r0] - ldr r0, _08015D7C @ =gBattleCommunication - strb r2, [r0, 0x6] - ldr r2, _08015D80 @ =gCurrMovePos - ldr r3, _08015D84 @ =gChosenMovePos - mov r9, r3 - ldrb r0, [r6] - ldr r4, _08015D88 @ =gBattleStruct - ldr r1, [r4] - adds r0, r1 - adds r0, 0x80 - ldrb r0, [r0] - strb r0, [r3] - strb r0, [r2] - ldr r1, _08015D8C @ =gProtectStructs - ldrb r4, [r6] - lsls r0, r4, 4 - adds r3, r0, r1 - ldrb r1, [r3] - lsls r0, r1, 29 - mov r8, r2 - cmp r0, 0 - bge _08015D9C - movs r0, 0x5 - negs r0, r0 - ands r0, r1 - strb r0, [r3] - ldr r2, _08015D90 @ =gCurrentMove - ldr r1, _08015D94 @ =gChosenMove - movs r0, 0xA5 - strh r0, [r1] - strh r0, [r2] - ldr r2, _08015D98 @ =gHitMarker - ldr r0, [r2] - movs r1, 0x80 - lsls r1, 4 - orrs r0, r1 - str r0, [r2] - movs r0, 0xA5 - movs r1, 0 - bl GetMoveTarget - ldrb r1, [r6] - ldr r3, _08015D88 @ =gBattleStruct - ldr r2, [r3] - b _08015EF6 - .align 2, 0 -_08015D6C: .4byte gCritMultiplier -_08015D70: .4byte gBattleScripting -_08015D74: .4byte gMoveResultFlags -_08015D78: .4byte gMultiHitCounter -_08015D7C: .4byte gBattleCommunication -_08015D80: .4byte gCurrMovePos -_08015D84: .4byte gChosenMovePos -_08015D88: .4byte gBattleStruct -_08015D8C: .4byte gProtectStructs -_08015D90: .4byte gCurrentMove -_08015D94: .4byte gChosenMove -_08015D98: .4byte gHitMarker -_08015D9C: - ldr r0, _08015DD4 @ =gBattleMons - movs r1, 0x58 - adds r5, r4, 0 - muls r5, r1 - adds r1, r0, 0 - adds r1, 0x50 - adds r1, r5, r1 - ldr r2, [r1] - movs r1, 0x80 - lsls r1, 5 - ands r1, r2 - mov r10, r0 - cmp r1, 0 - bne _08015DC2 - movs r7, 0x80 - lsls r7, 15 - ands r7, r2 - cmp r7, 0 - beq _08015DE4 -_08015DC2: - ldr r3, _08015DD8 @ =gCurrentMove - ldr r2, _08015DDC @ =gChosenMove - ldr r1, _08015DE0 @ =gLockedMoves - lsls r0, r4, 1 - adds r0, r1 - ldrh r0, [r0] - strh r0, [r2] - strh r0, [r3] - b _08015F18 - .align 2, 0 -_08015DD4: .4byte gBattleMons -_08015DD8: .4byte gCurrentMove -_08015DDC: .4byte gChosenMove -_08015DE0: .4byte gLockedMoves -_08015DE4: - ldr r3, _08015E38 @ =gDisableStructs - mov r12, r3 - lsls r0, r4, 3 - subs r0, r4 - lsls r0, 2 - add r0, r12 - ldrh r4, [r0, 0x6] - adds r2, r4, 0 - cmp r2, 0 - beq _08015EBC - ldrb r3, [r0, 0xC] - lsls r0, r3, 1 - adds r0, r5 - mov r5, r10 - adds r5, 0xC - adds r0, r5 - ldrh r1, [r0] - cmp r2, r1 - bne _08015E48 - ldr r2, _08015E3C @ =gCurrentMove - ldr r0, _08015E40 @ =gChosenMove - strh r4, [r0] - strh r4, [r2] - ldrb r1, [r6] - lsls r0, r1, 3 - subs r0, r1 - lsls r0, 2 - add r0, r12 - ldrb r0, [r0, 0xC] - mov r4, r9 - strb r0, [r4] - mov r1, r8 - strb r0, [r1] - ldrh r0, [r2] - movs r1, 0 - bl GetMoveTarget - ldrb r1, [r6] - ldr r3, _08015E44 @ =gBattleStruct - ldr r2, [r3] - b _08015EF6 - .align 2, 0 -_08015E38: .4byte gDisableStructs -_08015E3C: .4byte gCurrentMove -_08015E40: .4byte gChosenMove -_08015E44: .4byte gBattleStruct -_08015E48: - cmp r2, 0 - beq _08015EBC - cmp r2, r1 - beq _08015EBC - mov r4, r9 - strb r3, [r4] - mov r0, r8 - strb r3, [r0] - ldr r3, _08015EB0 @ =gCurrentMove - ldr r2, _08015EB4 @ =gChosenMove - ldrb r0, [r0] - lsls r0, 1 - ldrb r1, [r6] - movs r4, 0x58 - muls r1, r4 - adds r0, r1 - adds r0, r5 - ldrh r0, [r0] - strh r0, [r2] - strh r0, [r3] - ldrb r1, [r6] - lsls r0, r1, 3 - subs r0, r1 - lsls r0, 2 - add r0, r12 - movs r2, 0 - strh r7, [r0, 0x6] - ldrb r1, [r6] - lsls r0, r1, 3 - subs r0, r1 - lsls r0, 2 - add r0, r12 - strb r2, [r0, 0xC] - ldrb r0, [r6] - lsls r1, r0, 3 - subs r1, r0 - lsls r1, 2 - add r1, r12 - ldrb r2, [r1, 0xE] - movs r0, 0x10 - negs r0, r0 - ands r0, r2 - strb r0, [r1, 0xE] - ldrh r0, [r3] - movs r1, 0 - bl GetMoveTarget - ldrb r1, [r6] - ldr r3, _08015EB8 @ =gBattleStruct - ldr r2, [r3] - b _08015EF6 - .align 2, 0 -_08015EB0: .4byte gCurrentMove -_08015EB4: .4byte gChosenMove -_08015EB8: .4byte gBattleStruct -_08015EBC: - mov r4, r8 - ldrb r0, [r4] - lsls r0, 1 - ldr r4, _08015EFC @ =gBattlerAttacker - ldrb r2, [r4] - movs r1, 0x58 - muls r1, r2 - adds r0, r1 - mov r1, r10 - adds r1, 0xC - adds r0, r1 - ldr r1, _08015F00 @ =gChosenMoveByBattler - lsls r2, 1 - adds r2, r1 - ldrh r3, [r0] - ldrh r2, [r2] - cmp r3, r2 - beq _08015F10 - ldr r1, _08015F04 @ =gCurrentMove - ldr r0, _08015F08 @ =gChosenMove - strh r3, [r0] - strh r3, [r1] - ldrh r0, [r1] - movs r1, 0 - bl GetMoveTarget - ldrb r1, [r4] - ldr r2, _08015F0C @ =gBattleStruct - ldr r2, [r2] -_08015EF6: - adds r1, r2 - strb r0, [r1, 0xC] - b _08015F18 - .align 2, 0 -_08015EFC: .4byte gBattlerAttacker -_08015F00: .4byte gChosenMoveByBattler -_08015F04: .4byte gCurrentMove -_08015F08: .4byte gChosenMove -_08015F0C: .4byte gBattleStruct -_08015F10: - ldr r1, _08015F30 @ =gCurrentMove - ldr r0, _08015F34 @ =gChosenMove - strh r3, [r0] - strh r3, [r1] -_08015F18: - ldr r0, _08015F38 @ =gBattlerAttacker - ldrb r0, [r0] - bl GetBattlerSide - lsls r0, 24 - cmp r0, 0 - bne _08015F40 - ldr r0, _08015F3C @ =gBattleResults - ldr r1, _08015F30 @ =gCurrentMove - ldrh r1, [r1] - strh r1, [r0, 0x22] - b _08015F48 - .align 2, 0 -_08015F30: .4byte gCurrentMove -_08015F34: .4byte gChosenMove -_08015F38: .4byte gBattlerAttacker -_08015F3C: .4byte gBattleResults -_08015F40: - ldr r0, _08015FAC @ =gBattleResults - ldr r1, _08015FB0 @ =gCurrentMove - ldrh r1, [r1] - strh r1, [r0, 0x24] -_08015F48: - ldr r4, _08015FB4 @ =gBattlerAttacker - ldrb r0, [r4] - bl GetBattlerSide - movs r1, 0x1 - eors r0, r1 - lsls r0, 24 - lsrs r6, r0, 24 - ldr r1, _08015FB8 @ =gSideTimers - lsls r0, r6, 1 - adds r0, r6 - lsls r0, 2 - adds r5, r0, r1 - ldrb r0, [r5, 0x8] - adds r3, r4, 0 - cmp r0, 0 - beq _08015FC8 - ldr r2, _08015FBC @ =gBattleMoves - ldr r0, _08015FB0 @ =gCurrentMove - ldrh r1, [r0] - lsls r0, r1, 1 - adds r0, r1 - lsls r0, 2 - adds r0, r2 - ldrb r0, [r0, 0x6] - cmp r0, 0 - bne _08015FC8 - ldrb r0, [r3] - bl GetBattlerSide - adds r4, r0, 0 - ldrb r0, [r5, 0x9] - bl GetBattlerSide - lsls r4, 24 - lsls r0, 24 - cmp r4, r0 - beq _08015FC8 - ldr r1, _08015FC0 @ =gBattleMons - ldrb r2, [r5, 0x9] - movs r0, 0x58 - muls r0, r2 - adds r0, r1 - ldrh r0, [r0, 0x28] - cmp r0, 0 - beq _08015FC8 - ldr r0, _08015FC4 @ =gBattlerTarget - strb r2, [r0] - b _0801632C - .align 2, 0 -_08015FAC: .4byte gBattleResults -_08015FB0: .4byte gCurrentMove -_08015FB4: .4byte gBattlerAttacker -_08015FB8: .4byte gSideTimers -_08015FBC: .4byte gBattleMoves -_08015FC0: .4byte gBattleMons -_08015FC4: .4byte gBattlerTarget -_08015FC8: - ldr r2, _080160E4 @ =gBattleTypeFlags - ldr r1, [r2] - movs r0, 0x1 - ands r1, r0 - ldr r3, _080160E8 @ =gBattlerAttacker - adds r7, r2, 0 - cmp r1, 0 - bne _08015FDA - b _080162A0 -_08015FDA: - ldr r1, _080160EC @ =gSideTimers - lsls r0, r6, 1 - adds r0, r6 - lsls r0, 2 - adds r0, r1 - ldrb r5, [r0, 0x8] - cmp r5, 0 - beq _08015FEC - b _080161F8 -_08015FEC: - ldr r2, _080160F0 @ =gBattleMoves - ldr r0, _080160F4 @ =gCurrentMove - ldrh r1, [r0] - lsls r0, r1, 1 - adds r0, r1 - lsls r0, 2 - adds r4, r0, r2 - ldrb r0, [r4, 0x1] - cmp r0, 0 - bne _08016008 - ldrb r0, [r4, 0x6] - cmp r0, 0x10 - bne _08016008 - b _080161F8 -_08016008: - ldr r3, _080160F8 @ =gBattleMons - ldr r2, _080160E8 @ =gBattlerAttacker - ldrb r6, [r2] - ldr r0, _080160FC @ =gBattleStruct - ldr r0, [r0] - adds r0, r6, r0 - ldrb r1, [r0, 0xC] - movs r0, 0x58 - muls r0, r1 - adds r0, r3 - adds r0, 0x20 - ldrb r0, [r0] - adds r3, r2, 0 - cmp r0, 0x1F - bne _08016028 - b _080161F8 -_08016028: - ldrb r0, [r4, 0x2] - cmp r0, 0xD - beq _08016030 - b _080161F8 -_08016030: - adds r0, r6, 0 - bl GetBattlerSide - lsls r0, 24 - lsrs r6, r0, 24 - ldr r1, _08016100 @ =gActiveBattler - strb r5, [r1] - ldr r0, _08016104 @ =gBattlersCount - ldrb r0, [r0] - cmp r5, r0 - bcs _080160A8 - adds r4, r1, 0 -_08016048: - ldrb r0, [r4] - bl GetBattlerSide - lsls r0, 24 - lsrs r0, 24 - cmp r6, r0 - beq _08016096 - ldr r0, _080160E8 @ =gBattlerAttacker - ldrb r1, [r0] - ldr r0, _080160FC @ =gBattleStruct - ldr r0, [r0] - adds r1, r0 - ldrb r0, [r1, 0xC] - ldrb r1, [r4] - cmp r0, r1 - beq _08016096 - ldr r1, _080160F8 @ =gBattleMons - ldrb r2, [r4] - movs r0, 0x58 - muls r0, r2 - adds r0, r1 - adds r0, 0x20 - ldrb r0, [r0] - cmp r0, 0x1F - bne _08016096 - adds r0, r2, 0 - bl GetBattlerTurnOrderNum - lsls r0, 24 - lsrs r0, 24 - ldr r3, [sp] - cmp r0, r3 - bcs _08016096 - ldrb r0, [r4] - bl GetBattlerTurnOrderNum - lsls r0, 24 - lsrs r0, 24 - str r0, [sp] -_08016096: - ldrb r0, [r4] - adds r0, 0x1 - strb r0, [r4] - ldr r1, _08016104 @ =gBattlersCount - lsls r0, 24 - lsrs r0, 24 - ldrb r1, [r1] - cmp r0, r1 - bcc _08016048 -_080160A8: - ldr r4, [sp] - cmp r4, 0x4 - beq _080160B0 - b _080161AA -_080160B0: - ldr r2, _080160F0 @ =gBattleMoves - ldr r0, _08016108 @ =gChosenMove - ldrh r1, [r0] - lsls r0, r1, 1 - adds r0, r1 - lsls r0, 2 - adds r0, r2 - ldrb r0, [r0, 0x6] - ands r4, r0 - cmp r4, 0 - beq _08016130 - ldr r0, _080160E8 @ =gBattlerAttacker - ldrb r0, [r0] - bl GetBattlerSide - lsls r0, 24 - cmp r0, 0 - bne _08016110 - bl Random - movs r1, 0x1 - ands r1, r0 - cmp r1, 0 - beq _0801610C - movs r0, 0x1 - b _08016122 - .align 2, 0 -_080160E4: .4byte gBattleTypeFlags -_080160E8: .4byte gBattlerAttacker -_080160EC: .4byte gSideTimers -_080160F0: .4byte gBattleMoves -_080160F4: .4byte gCurrentMove -_080160F8: .4byte gBattleMons -_080160FC: .4byte gBattleStruct -_08016100: .4byte gActiveBattler -_08016104: .4byte gBattlersCount -_08016108: .4byte gChosenMove -_0801610C: - movs r0, 0x3 - b _08016122 -_08016110: - bl Random - movs r1, 0x1 - ands r1, r0 - cmp r1, 0 - beq _08016120 - movs r0, 0 - b _08016122 -_08016120: - movs r0, 0x2 -_08016122: - bl GetBattlerAtPosition - ldr r1, _0801612C @ =gBattlerTarget - strb r0, [r1] - b _08016140 - .align 2, 0 -_0801612C: .4byte gBattlerTarget -_08016130: - ldr r2, _08016178 @ =gBattlerTarget - ldr r0, _0801617C @ =gBattlerAttacker - ldrb r0, [r0] - ldr r1, _08016180 @ =gBattleStruct - ldr r1, [r1] - adds r0, r1 - ldrb r0, [r0, 0xC] - strb r0, [r2] -_08016140: - ldr r7, _08016184 @ =gAbsentBattlerFlags - ldrb r0, [r7] - ldr r1, _08016188 @ =gBitTable - mov r8, r1 - ldr r5, _08016178 @ =gBattlerTarget - ldrb r1, [r5] - lsls r1, 2 - add r1, r8 - ldr r1, [r1] - ands r0, r1 - cmp r0, 0 - bne _0801615A - b _0801632C -_0801615A: - ldr r6, _0801617C @ =gBattlerAttacker - ldrb r0, [r6] - bl GetBattlerSide - adds r4, r0, 0 - ldrb r0, [r5] - bl GetBattlerSide - lsls r4, 24 - lsls r0, 24 - cmp r4, r0 - beq _0801618C - ldrb r0, [r5] - b _0801631A - .align 2, 0 -_08016178: .4byte gBattlerTarget -_0801617C: .4byte gBattlerAttacker -_08016180: .4byte gBattleStruct -_08016184: .4byte gAbsentBattlerFlags -_08016188: .4byte gBitTable -_0801618C: - ldrb r0, [r6] - bl GetBattlerPosition - movs r1, 0x1 - eors r0, r1 - lsls r0, 24 - lsrs r0, 24 - bl GetBattlerAtPosition - strb r0, [r5] - ldrb r1, [r7] - ldrb r2, [r5] - lsls r0, r2, 2 - add r0, r8 - b _08016310 -_080161AA: - ldr r4, _080161E4 @ =gActiveBattler - ldr r0, _080161E8 @ =gBattlerByTurnOrder - ldr r3, [sp] - adds r0, r3, r0 - ldrb r0, [r0] - strb r0, [r4] - ldrb r0, [r4] - ldr r2, _080161EC @ =gBattleMons - movs r1, 0x58 - muls r1, r0 - adds r1, r2 - adds r1, 0x20 - ldrb r1, [r1] - bl RecordAbilityBattle - ldr r2, _080161F0 @ =gSpecialStatuses - ldrb r1, [r4] - lsls r0, r1, 2 - adds r0, r1 - lsls r0, 2 - adds r0, r2 - ldrb r1, [r0] - movs r2, 0x2 - orrs r1, r2 - strb r1, [r0] - ldr r1, _080161F4 @ =gBattlerTarget - ldrb r0, [r4] - strb r0, [r1] - b _0801632C - .align 2, 0 -_080161E4: .4byte gActiveBattler -_080161E8: .4byte gBattlerByTurnOrder -_080161EC: .4byte gBattleMons -_080161F0: .4byte gSpecialStatuses -_080161F4: .4byte gBattlerTarget -_080161F8: - ldr r0, [r7] - movs r4, 0x1 - ands r0, r4 - cmp r0, 0 - beq _080162A0 - ldr r2, _08016238 @ =gBattleMoves - ldr r0, _0801623C @ =gChosenMove - ldrh r1, [r0] - lsls r0, r1, 1 - adds r0, r1 - lsls r0, 2 - adds r0, r2 - ldrb r1, [r0, 0x6] - movs r0, 0x4 - ands r0, r1 - cmp r0, 0 - beq _080162A0 - ldrb r0, [r3] - bl GetBattlerSide - lsls r0, 24 - cmp r0, 0 - bne _08016244 - bl Random - adds r1, r4, 0 - ands r1, r0 - cmp r1, 0 - beq _08016240 - movs r0, 0x1 - b _08016256 - .align 2, 0 -_08016238: .4byte gBattleMoves -_0801623C: .4byte gChosenMove -_08016240: - movs r0, 0x3 - b _08016256 -_08016244: - bl Random - adds r1, r4, 0 - ands r1, r0 - cmp r1, 0 - beq _08016254 - movs r0, 0 - b _08016256 -_08016254: - movs r0, 0x2 -_08016256: - bl GetBattlerAtPosition - ldr r1, _08016290 @ =gBattlerTarget - strb r0, [r1] - ldr r0, _08016294 @ =gAbsentBattlerFlags - ldrb r1, [r0] - ldr r2, _08016298 @ =gBitTable - ldr r5, _08016290 @ =gBattlerTarget - ldrb r0, [r5] - lsls r0, 2 - adds r0, r2 - ldr r0, [r0] - ands r1, r0 - cmp r1, 0 - beq _0801632C - ldr r0, _0801629C @ =gBattlerAttacker - ldrb r0, [r0] - bl GetBattlerSide - adds r4, r0, 0 - ldrb r0, [r5] - bl GetBattlerSide - lsls r4, 24 - lsls r0, 24 - cmp r4, r0 - beq _0801632C - ldrb r0, [r5] - b _0801631A - .align 2, 0 -_08016290: .4byte gBattlerTarget -_08016294: .4byte gAbsentBattlerFlags -_08016298: .4byte gBitTable -_0801629C: .4byte gBattlerAttacker -_080162A0: - ldr r5, _080162E4 @ =gBattlerTarget - adds r2, r3, 0 - ldrb r0, [r2] - ldr r1, _080162E8 @ =gBattleStruct - ldr r1, [r1] - adds r0, r1 - ldrb r0, [r0, 0xC] - strb r0, [r5] - ldr r6, _080162EC @ =gAbsentBattlerFlags - ldrb r1, [r6] - ldr r7, _080162F0 @ =gBitTable - ldrb r0, [r5] - lsls r0, 2 - adds r0, r7 - ldr r0, [r0] - ands r1, r0 - cmp r1, 0 - beq _0801632C - ldrb r0, [r2] - str r3, [sp, 0x4] - bl GetBattlerSide - adds r4, r0, 0 - ldrb r0, [r5] - bl GetBattlerSide - lsls r4, 24 - lsls r0, 24 - ldr r3, [sp, 0x4] - cmp r4, r0 - beq _080162F4 - ldrb r0, [r5] - b _0801631A - .align 2, 0 -_080162E4: .4byte gBattlerTarget -_080162E8: .4byte gBattleStruct -_080162EC: .4byte gAbsentBattlerFlags -_080162F0: .4byte gBitTable -_080162F4: - ldrb r0, [r3] - bl GetBattlerPosition - movs r1, 0x1 - eors r0, r1 - lsls r0, 24 - lsrs r0, 24 - bl GetBattlerAtPosition - strb r0, [r5] - ldrb r1, [r6] - ldrb r2, [r5] - lsls r0, r2, 2 - adds r0, r7 -_08016310: - ldr r0, [r0] - ands r1, r0 - cmp r1, 0 - beq _0801632C - adds r0, r2, 0 -_0801631A: - bl GetBattlerPosition - movs r1, 0x2 - eors r0, r1 - lsls r0, 24 - lsrs r0, 24 - bl GetBattlerAtPosition - strb r0, [r5] -_0801632C: - ldr r4, _08016360 @ =gBattlescriptCurrInstr - ldr r3, _08016364 @ =gBattleScriptsForMoveEffects - ldr r2, _08016368 @ =gBattleMoves - ldr r0, _0801636C @ =gCurrentMove - ldrh r1, [r0] - lsls r0, r1, 1 - adds r0, r1 - lsls r0, 2 - adds r0, r2 - ldrb r0, [r0] - lsls r0, 2 - adds r0, r3 - ldr r0, [r0] - str r0, [r4] - ldr r1, _08016370 @ =gCurrentActionFuncId - movs r0, 0xA -_0801634C: - strb r0, [r1] - add sp, 0x8 - pop {r3-r5} - mov r8, r3 - mov r9, r4 - mov r10, r5 - pop {r4-r7} - pop {r0} - bx r0 - .align 2, 0 -_08016360: .4byte gBattlescriptCurrInstr -_08016364: .4byte gBattleScriptsForMoveEffects -_08016368: .4byte gBattleMoves -_0801636C: .4byte gCurrentMove -_08016370: .4byte gCurrentActionFuncId - thumb_func_end sub_8015CA0 - - thumb_func_start sub_8016374 -sub_8016374: @ 8016374 - push {r4,lr} - ldr r3, _080163E0 @ =gBattlerAttacker - ldr r1, _080163E4 @ =gBattlerByTurnOrder - ldr r0, _080163E8 @ =gCurrentTurnActionNumber - ldrb r0, [r0] - adds r0, r1 - ldrb r0, [r0] - strb r0, [r3] - ldr r0, _080163EC @ =gBattle_BG0_X - movs r2, 0 - strh r2, [r0] - ldr r0, _080163F0 @ =gBattle_BG0_Y - strh r2, [r0] - ldr r1, _080163F4 @ =gActionSelectionCursor - ldrb r0, [r3] - adds r0, r1 - strb r2, [r0] - ldr r1, _080163F8 @ =gMoveSelectionCursor - ldrb r0, [r3] - adds r0, r1 - strb r2, [r0] - ldr r2, _080163FC @ =gBattleTextBuff1 - movs r0, 0xFD - strb r0, [r2] - movs r0, 0x7 - strb r0, [r2, 0x1] - ldrb r4, [r3] - strb r4, [r2, 0x2] - ldrb r0, [r3] - ldr r1, _08016400 @ =gBattleStruct - ldr r1, [r1] - adds r0, r1 - adds r0, 0x58 - ldrb r0, [r0] - strb r0, [r2, 0x3] - movs r0, 0xFF - strb r0, [r2, 0x4] - ldr r0, _08016404 @ =gBattleScripting - strb r4, [r0, 0x17] - ldr r1, _08016408 @ =gBattlescriptCurrInstr - ldr r0, _0801640C @ =gUnknown_81D894D - str r0, [r1] - ldr r1, _08016410 @ =gCurrentActionFuncId - movs r0, 0xA - strb r0, [r1] - ldr r1, _08016414 @ =gBattleResults - ldrb r0, [r1, 0x2] - cmp r0, 0xFE - bhi _080163DA - adds r0, 0x1 - strb r0, [r1, 0x2] -_080163DA: - pop {r4} - pop {r0} - bx r0 - .align 2, 0 -_080163E0: .4byte gBattlerAttacker -_080163E4: .4byte gBattlerByTurnOrder -_080163E8: .4byte gCurrentTurnActionNumber -_080163EC: .4byte gBattle_BG0_X -_080163F0: .4byte gBattle_BG0_Y -_080163F4: .4byte gActionSelectionCursor -_080163F8: .4byte gMoveSelectionCursor -_080163FC: .4byte gBattleTextBuff1 -_08016400: .4byte gBattleStruct -_08016404: .4byte gBattleScripting -_08016408: .4byte gBattlescriptCurrInstr -_0801640C: .4byte gUnknown_81D894D -_08016410: .4byte gCurrentActionFuncId -_08016414: .4byte gBattleResults - thumb_func_end sub_8016374 - - thumb_func_start sub_8016418 -sub_8016418: @ 8016418 - push {r4-r7,lr} - mov r7, r10 - mov r6, r9 - mov r5, r8 - push {r5-r7} - ldr r4, _08016474 @ =gBattlerAttacker - ldr r2, _08016478 @ =gBattlerTarget - ldr r1, _0801647C @ =gBattlerByTurnOrder - ldr r0, _08016480 @ =gCurrentTurnActionNumber - ldrb r0, [r0] - adds r0, r1 - ldrb r0, [r0] - strb r0, [r2] - strb r0, [r4] - ldr r0, _08016484 @ =gBattle_BG0_X - movs r1, 0 - strh r1, [r0] - ldr r0, _08016488 @ =gBattle_BG0_Y - strh r1, [r0] - ldrb r0, [r4] - bl ClearFuryCutterDestinyBondGrudge - ldr r5, _0801648C @ =gLastUsedItem - ldr r2, _08016490 @ =gBattleBufferB - ldrb r1, [r4] - lsls r1, 9 - adds r0, r2, 0x1 - adds r0, r1, r0 - ldrb r3, [r0] - adds r2, 0x2 - adds r1, r2 - ldrb r0, [r1] - lsls r0, 8 - orrs r3, r0 - strh r3, [r5] - adds r1, r3, 0 - cmp r1, 0xC - bhi _0801649C - ldr r2, _08016494 @ =gBattlescriptCurrInstr - ldr r1, _08016498 @ =gUnknown_81D99B0 - ldrh r0, [r5] - lsls r0, 2 - adds r0, r1 - ldr r0, [r0] - str r0, [r2] - b _080164FC - .align 2, 0 -_08016474: .4byte gBattlerAttacker -_08016478: .4byte gBattlerTarget -_0801647C: .4byte gBattlerByTurnOrder -_08016480: .4byte gCurrentTurnActionNumber -_08016484: .4byte gBattle_BG0_X -_08016488: .4byte gBattle_BG0_Y -_0801648C: .4byte gLastUsedItem -_08016490: .4byte gBattleBufferB -_08016494: .4byte gBattlescriptCurrInstr -_08016498: .4byte gUnknown_81D99B0 -_0801649C: - adds r0, r3, 0 - subs r0, 0x50 - lsls r0, 16 - lsrs r0, 16 - cmp r0, 0x1 - bhi _080164C4 - ldr r0, _080164B8 @ =gBattlescriptCurrInstr - ldr r1, _080164BC @ =gUnknown_81D99FC - ldr r1, [r1] - str r1, [r0] - ldr r1, _080164C0 @ =gCurrentActionFuncId - mov r10, r1 - b _0801671E - .align 2, 0 -_080164B8: .4byte gBattlescriptCurrInstr -_080164BC: .4byte gUnknown_81D99FC -_080164C0: .4byte gCurrentActionFuncId -_080164C4: - movs r0, 0xAF - lsls r0, 1 - cmp r1, r0 - bne _080164E8 - ldr r0, _080164DC @ =gBattlescriptCurrInstr - ldr r1, _080164E0 @ =gUnknown_81D99FC - ldr r1, [r1, 0x4] - str r1, [r0] - ldr r2, _080164E4 @ =gCurrentActionFuncId - mov r10, r2 - b _0801671E - .align 2, 0 -_080164DC: .4byte gBattlescriptCurrInstr -_080164E0: .4byte gUnknown_81D99FC -_080164E4: .4byte gCurrentActionFuncId -_080164E8: - ldrb r0, [r4] - bl GetBattlerSide - lsls r0, 24 - cmp r0, 0 - bne _08016510 - ldr r0, _08016504 @ =gBattlescriptCurrInstr - ldr r1, _08016508 @ =gUnknown_81D99E4 - ldr r1, [r1] - str r1, [r0] -_080164FC: - ldr r0, _0801650C @ =gCurrentActionFuncId - mov r10, r0 - b _0801671E - .align 2, 0 -_08016504: .4byte gBattlescriptCurrInstr -_08016508: .4byte gUnknown_81D99E4 -_0801650C: .4byte gCurrentActionFuncId -_08016510: - ldr r3, _08016548 @ =gBattleScripting - ldrb r0, [r4] - strb r0, [r3, 0x17] - lsls r0, 24 - lsrs r0, 25 - ldr r2, _0801654C @ =gBattleStruct - ldr r1, [r2] - adds r0, r1 - adds r0, 0xC4 - ldrb r0, [r0] - subs r0, 0x1 - mov r8, r4 - ldr r1, _08016550 @ =gBattlescriptCurrInstr - mov r9, r1 - ldr r6, _08016554 @ =gUnknown_81D99E4 - mov r12, r3 - adds r7, r2, 0 - ldr r2, _08016558 @ =gCurrentActionFuncId - mov r10, r2 - cmp r0, 0x4 - bls _0801653C - b _08016706 -_0801653C: - lsls r0, 2 - ldr r1, _0801655C @ =_08016560 - adds r0, r1 - ldr r0, [r0] - mov pc, r0 - .align 2, 0 -_08016548: .4byte gBattleScripting -_0801654C: .4byte gBattleStruct -_08016550: .4byte gBattlescriptCurrInstr -_08016554: .4byte gUnknown_81D99E4 -_08016558: .4byte gCurrentActionFuncId -_0801655C: .4byte _08016560 - .align 2, 0 -_08016560: - .4byte _08016706 - .4byte _08016706 - .4byte _08016574 - .4byte _08016608 - .4byte _080166D8 -_08016574: - ldr r5, _080165AC @ =gBattleCommunication - movs r0, 0 - strb r0, [r5, 0x5] - ldr r2, _080165B0 @ =gBattlerAttacker - ldrb r0, [r2] - lsrs r0, 1 - ldr r1, [r7] - adds r0, r1 - adds r0, 0xC6 - ldrb r1, [r0] - movs r0, 0x1 - ands r0, r1 - mov r8, r2 - cmp r0, 0 - beq _080165C0 - movs r0, 0x3E - ands r0, r1 - ldr r1, _080165B4 @ =gBattlescriptCurrInstr - mov r9, r1 - ldr r6, _080165B8 @ =gUnknown_81D99E4 - ldr r2, _080165BC @ =gCurrentActionFuncId - mov r10, r2 - cmp r0, 0 - bne _080165A6 - b _08016706 -_080165A6: - movs r0, 0x5 - strb r0, [r5, 0x5] - b _08016706 - .align 2, 0 -_080165AC: .4byte gBattleCommunication -_080165B0: .4byte gBattlerAttacker -_080165B4: .4byte gBattlescriptCurrInstr -_080165B8: .4byte gUnknown_81D99E4 -_080165BC: .4byte gCurrentActionFuncId -_080165C0: - ldr r0, _080165FC @ =gBattlescriptCurrInstr - mov r9, r0 - ldr r6, _08016600 @ =gUnknown_81D99E4 - ldr r1, _08016604 @ =gCurrentActionFuncId - mov r10, r1 - mov r4, r8 - adds r3, r7, 0 - adds r2, r5, 0 -_080165D0: - ldrb r1, [r4] - lsrs r1, 1 - ldr r0, [r3] - adds r1, r0 - adds r1, 0xC6 - ldrb r0, [r1] - lsrs r0, 1 - strb r0, [r1] - ldrb r0, [r2, 0x5] - adds r0, 0x1 - strb r0, [r2, 0x5] - ldrb r0, [r4] - lsrs r0, 1 - ldr r1, [r3] - adds r0, r1 - adds r0, 0xC6 - ldrb r1, [r0] - movs r0, 0x1 - ands r0, r1 - cmp r0, 0 - beq _080165D0 - b _08016706 - .align 2, 0 -_080165FC: .4byte gBattlescriptCurrInstr -_08016600: .4byte gUnknown_81D99E4 -_08016604: .4byte gCurrentActionFuncId -_08016608: - ldr r3, _0801663C @ =gBattleCommunication - movs r0, 0x4 - strb r0, [r3, 0x5] - ldr r2, _08016640 @ =gBattlerAttacker - ldrb r0, [r2] - lsrs r0, 1 - ldr r1, [r7] - adds r0, r1 - adds r6, r0, 0 - adds r6, 0xC6 - ldrb r1, [r6] - movs r0, 0x80 - ands r0, r1 - lsls r0, 24 - lsrs r5, r0, 24 - mov r8, r2 - cmp r5, 0 - beq _08016650 - movs r0, 0x5 - strb r0, [r3, 0x5] - ldr r2, _08016644 @ =gBattlescriptCurrInstr - mov r9, r2 - ldr r6, _08016648 @ =gUnknown_81D99E4 - ldr r0, _0801664C @ =gCurrentActionFuncId - mov r10, r0 - b _08016706 - .align 2, 0 -_0801663C: .4byte gBattleCommunication -_08016640: .4byte gBattlerAttacker -_08016644: .4byte gBattlescriptCurrInstr -_08016648: .4byte gUnknown_81D99E4 -_0801664C: .4byte gCurrentActionFuncId -_08016650: - ldr r3, _080166C4 @ =gBattleTextBuff1 - movs r4, 0xFD - strb r4, [r3] - movs r0, 0x5 - strb r0, [r3, 0x1] - movs r2, 0x1 - strb r2, [r3, 0x2] - movs r0, 0xFF - strb r0, [r3, 0x3] - ldr r1, _080166C8 @ =gBattleTextBuff2 - strb r4, [r1] - strb r5, [r1, 0x1] - movs r0, 0xD2 - strb r0, [r1, 0x2] - strb r5, [r1, 0x3] - subs r0, 0xD3 - strb r0, [r1, 0x4] - ldrb r0, [r6] - ands r2, r0 - ldr r1, _080166CC @ =gBattlescriptCurrInstr - mov r9, r1 - ldr r6, _080166D0 @ =gUnknown_81D99E4 - ldr r0, _080166D4 @ =gCurrentActionFuncId - mov r10, r0 - cmp r2, 0 - bne _080166B4 - mov r5, r8 - adds r4, r7, 0 - adds r2, r3, 0 -_0801668A: - ldrb r1, [r5] - lsrs r1, 1 - ldr r0, [r4] - adds r1, r0 - adds r1, 0xC6 - ldrb r0, [r1] - lsrs r0, 1 - strb r0, [r1] - ldrb r0, [r2, 0x2] - adds r0, 0x1 - strb r0, [r2, 0x2] - ldrb r0, [r5] - lsrs r0, 1 - ldr r1, [r4] - adds r0, r1 - adds r0, 0xC6 - ldrb r1, [r0] - movs r0, 0x1 - ands r0, r1 - cmp r0, 0 - beq _0801668A -_080166B4: - ldrb r0, [r3, 0x2] - adds r0, 0xE - movs r1, 0 - mov r2, r12 - strb r0, [r2, 0x10] - strb r1, [r2, 0x11] - b _08016706 - .align 2, 0 -_080166C4: .4byte gBattleTextBuff1 -_080166C8: .4byte gBattleTextBuff2 -_080166CC: .4byte gBattlescriptCurrInstr -_080166D0: .4byte gUnknown_81D99E4 -_080166D4: .4byte gCurrentActionFuncId -_080166D8: - ldr r0, _080166EC @ =gBattleTypeFlags - ldr r1, [r0] - movs r0, 0x1 - ands r1, r0 - cmp r1, 0 - beq _080166F4 - ldr r1, _080166F0 @ =gBattleCommunication - movs r0, 0x2 - strb r0, [r1, 0x5] - b _080166F8 - .align 2, 0 -_080166EC: .4byte gBattleTypeFlags -_080166F0: .4byte gBattleCommunication -_080166F4: - ldr r0, _08016734 @ =gBattleCommunication - strb r1, [r0, 0x5] -_080166F8: - ldr r0, _08016738 @ =gBattlerAttacker - mov r8, r0 - ldr r1, _0801673C @ =gBattlescriptCurrInstr - mov r9, r1 - ldr r6, _08016740 @ =gUnknown_81D99E4 - ldr r2, _08016744 @ =gCurrentActionFuncId - mov r10, r2 -_08016706: - mov r1, r8 - ldrb r0, [r1] - lsrs r0, 1 - ldr r1, [r7] - adds r0, r1 - adds r0, 0xC4 - ldrb r0, [r0] - lsls r0, 2 - adds r0, r6 - ldr r0, [r0] - mov r2, r9 - str r0, [r2] -_0801671E: - movs r0, 0xA - mov r1, r10 - strb r0, [r1] - pop {r3-r5} - mov r8, r3 - mov r9, r4 - mov r10, r5 - pop {r4-r7} - pop {r0} - bx r0 - .align 2, 0 -_08016734: .4byte gBattleCommunication -_08016738: .4byte gBattlerAttacker -_0801673C: .4byte gBattlescriptCurrInstr -_08016740: .4byte gUnknown_81D99E4 -_08016744: .4byte gCurrentActionFuncId - thumb_func_end sub_8016418 - - thumb_func_start TryRunFromBattle -TryRunFromBattle: @ 8016748 - push {r4-r7,lr} - lsls r0, 24 - lsrs r4, r0, 24 - movs r6, 0 - ldr r1, _0801676C @ =gBattleMons - movs r0, 0x58 - muls r0, r4 - adds r1, r0, r1 - ldrh r0, [r1, 0x2E] - cmp r0, 0xAF - bne _08016774 - ldr r1, _08016770 @ =gEnigmaBerries - lsls r0, r4, 3 - subs r0, r4 - lsls r0, 2 - adds r0, r1 - ldrb r1, [r0, 0x7] - b _0801677E - .align 2, 0 -_0801676C: .4byte gBattleMons -_08016770: .4byte gEnigmaBerries -_08016774: - ldrh r0, [r1, 0x2E] - bl ItemId_GetHoldEffect - lsls r0, 24 - lsrs r1, r0, 24 -_0801677E: - ldr r0, _080167AC @ =gPotentialItemEffectBattler - strb r4, [r0] - cmp r1, 0x25 - bne _080167BC - ldr r2, _080167B0 @ =gLastUsedItem - ldr r1, _080167B4 @ =gBattleMons - movs r0, 0x58 - muls r0, r4 - adds r0, r1 - ldrh r0, [r0, 0x2E] - strh r0, [r2] - ldr r0, _080167B8 @ =gProtectStructs - lsls r2, r4, 4 - adds r2, r0 - ldrb r1, [r2, 0x1] - movs r0, 0x19 - negs r0, r0 - ands r0, r1 - movs r1, 0x8 - orrs r0, r1 - strb r0, [r2, 0x1] - b _08016816 - .align 2, 0 -_080167AC: .4byte gPotentialItemEffectBattler -_080167B0: .4byte gLastUsedItem -_080167B4: .4byte gBattleMons -_080167B8: .4byte gProtectStructs -_080167BC: - ldr r7, _080167EC @ =gBattleMons - movs r2, 0x58 - adds r0, r4, 0 - muls r0, r2 - adds r5, r0, r7 - adds r0, r5, 0 - adds r0, 0x20 - ldrb r1, [r0] - cmp r1, 0x32 - bne _080167F8 - ldr r0, _080167F0 @ =gLastUsedAbility - strb r1, [r0] - ldr r0, _080167F4 @ =gProtectStructs - lsls r2, r4, 4 - adds r2, r0 - ldrb r1, [r2, 0x1] - movs r0, 0x19 - negs r0, r0 - ands r0, r1 - movs r1, 0x10 - orrs r0, r1 - strb r0, [r2, 0x1] - b _08016816 - .align 2, 0 -_080167EC: .4byte gBattleMons -_080167F0: .4byte gLastUsedAbility -_080167F4: .4byte gProtectStructs -_080167F8: - ldr r0, _08016820 @ =gBattleTypeFlags - ldr r3, [r0] - movs r0, 0xA0 - lsls r0, 8 - ands r0, r3 - movs r1, 0x80 - lsls r1, 8 - cmp r0, r1 - bne _08016824 - adds r0, r4, 0 - bl GetBattlerSide - lsls r0, 24 - cmp r0, 0 - bne _0801687A -_08016816: - adds r0, r6, 0x1 - lsls r0, 24 - lsrs r6, r0, 24 - b _0801687A - .align 2, 0 -_08016820: .4byte gBattleTypeFlags -_08016824: - movs r0, 0x1 - ands r3, r0 - cmp r3, 0 - bne _0801686E - movs r1, 0x1 - adds r0, r4, 0 - eors r0, r1 - muls r0, r2 - adds r2, r0, r7 - ldrh r0, [r5, 0x6] - ldrh r1, [r2, 0x6] - cmp r0, r1 - bcs _08016868 - lsls r0, 7 - ldrh r1, [r2, 0x6] - bl __divsi3 - adds r4, r0, 0 - ldr r0, _08016894 @ =gBattleStruct - ldr r0, [r0] - adds r0, 0x6C - ldrb r1, [r0] - lsls r0, r1, 4 - subs r0, r1 - lsls r0, 1 - adds r4, r0 - lsls r4, 24 - lsrs r4, 24 - bl Random - movs r1, 0xFF - ands r1, r0 - cmp r4, r1 - bls _0801686E -_08016868: - adds r0, r6, 0x1 - lsls r0, 24 - lsrs r6, r0, 24 -_0801686E: - ldr r0, _08016894 @ =gBattleStruct - ldr r1, [r0] - adds r1, 0x6C - ldrb r0, [r1] - adds r0, 0x1 - strb r0, [r1] -_0801687A: - cmp r6, 0 - beq _0801688C - ldr r1, _08016898 @ =gCurrentTurnActionNumber - ldr r0, _0801689C @ =gBattlersCount - ldrb r0, [r0] - strb r0, [r1] - ldr r1, _080168A0 @ =gBattleOutcome - movs r0, 0x4 - strb r0, [r1] -_0801688C: - adds r0, r6, 0 - pop {r4-r7} - pop {r1} - bx r1 - .align 2, 0 -_08016894: .4byte gBattleStruct -_08016898: .4byte gCurrentTurnActionNumber -_0801689C: .4byte gBattlersCount -_080168A0: .4byte gBattleOutcome - thumb_func_end TryRunFromBattle - - thumb_func_start sub_80168A4 -sub_80168A4: @ 80168A4 - push {r4-r6,lr} - ldr r4, _080168F4 @ =gBattlerAttacker - ldr r1, _080168F8 @ =gBattlerByTurnOrder - ldr r5, _080168FC @ =gCurrentTurnActionNumber - ldrb r0, [r5] - adds r0, r1 - ldrb r0, [r0] - strb r0, [r4] - ldr r0, _08016900 @ =gBattleTypeFlags - ldr r0, [r0] - movs r1, 0x2 - ands r0, r1 - cmp r0, 0 - beq _0801694C - ldr r0, _08016904 @ =gBattlersCount - ldrb r1, [r0] - strb r1, [r5] - ldr r2, _08016908 @ =gActiveBattler - movs r0, 0 - strb r0, [r2] - lsls r1, 24 - cmp r1, 0 - beq _08016938 - adds r4, r2, 0 - ldr r6, _0801690C @ =gChosenActionByBattler - ldr r5, _08016910 @ =gBattleOutcome -_080168D8: - ldrb r0, [r4] - bl GetBattlerSide - lsls r0, 24 - cmp r0, 0 - bne _08016914 - ldrb r0, [r4] - adds r0, r6 - ldrb r0, [r0] - cmp r0, 0x3 - bne _08016926 - ldrb r0, [r5] - movs r1, 0x2 - b _08016922 - .align 2, 0 -_080168F4: .4byte gBattlerAttacker -_080168F8: .4byte gBattlerByTurnOrder -_080168FC: .4byte gCurrentTurnActionNumber -_08016900: .4byte gBattleTypeFlags -_08016904: .4byte gBattlersCount -_08016908: .4byte gActiveBattler -_0801690C: .4byte gChosenActionByBattler -_08016910: .4byte gBattleOutcome -_08016914: - ldrb r0, [r4] - adds r0, r6 - ldrb r0, [r0] - cmp r0, 0x3 - bne _08016926 - ldrb r0, [r5] - movs r1, 0x1 -_08016922: - orrs r0, r1 - strb r0, [r5] -_08016926: - ldrb r0, [r4] - adds r0, 0x1 - strb r0, [r4] - ldr r1, _08016944 @ =gBattlersCount - lsls r0, 24 - lsrs r0, 24 - ldrb r1, [r1] - cmp r0, r1 - bcc _080168D8 -_08016938: - ldr r0, _08016948 @ =gBattleOutcome - ldrb r1, [r0] - movs r2, 0x80 - orrs r1, r2 - strb r1, [r0] - b _080169D8 - .align 2, 0 -_08016944: .4byte gBattlersCount -_08016948: .4byte gBattleOutcome -_0801694C: - ldrb r0, [r4] - bl GetBattlerSide - lsls r0, 24 - cmp r0, 0 - bne _0801698C - ldrb r0, [r4] - bl TryRunFromBattle - lsls r0, 24 - cmp r0, 0 - bne _080169D8 - ldrb r0, [r4] - bl ClearFuryCutterDestinyBondGrudge - ldr r1, _0801697C @ =gBattleCommunication - movs r0, 0x3 - strb r0, [r1, 0x5] - ldr r1, _08016980 @ =gBattlescriptCurrInstr - ldr r0, _08016984 @ =gUnknown_81D893A - str r0, [r1] - ldr r1, _08016988 @ =gCurrentActionFuncId - movs r0, 0xA - b _080169D6 - .align 2, 0 -_0801697C: .4byte gBattleCommunication -_08016980: .4byte gBattlescriptCurrInstr -_08016984: .4byte gUnknown_81D893A -_08016988: .4byte gCurrentActionFuncId -_0801698C: - ldr r1, _080169B4 @ =gBattleMons - ldrb r2, [r4] - movs r0, 0x58 - muls r0, r2 - adds r1, 0x50 - adds r0, r1 - ldr r0, [r0] - ldr r1, _080169B8 @ =0x0400e000 - ands r0, r1 - cmp r0, 0 - beq _080169CC - ldr r1, _080169BC @ =gBattleCommunication - movs r0, 0x4 - strb r0, [r1, 0x5] - ldr r1, _080169C0 @ =gBattlescriptCurrInstr - ldr r0, _080169C4 @ =gUnknown_81D893A - str r0, [r1] - ldr r1, _080169C8 @ =gCurrentActionFuncId - movs r0, 0xA - b _080169D6 - .align 2, 0 -_080169B4: .4byte gBattleMons -_080169B8: .4byte 0x0400e000 -_080169BC: .4byte gBattleCommunication -_080169C0: .4byte gBattlescriptCurrInstr -_080169C4: .4byte gUnknown_81D893A -_080169C8: .4byte gCurrentActionFuncId -_080169CC: - ldr r0, _080169E0 @ =gBattlersCount - ldrb r0, [r0] - strb r0, [r5] - ldr r1, _080169E4 @ =gBattleOutcome - movs r0, 0x6 -_080169D6: - strb r0, [r1] -_080169D8: - pop {r4-r6} - pop {r0} - bx r0 - .align 2, 0 -_080169E0: .4byte gBattlersCount -_080169E4: .4byte gBattleOutcome - thumb_func_end sub_80168A4 - - thumb_func_start sub_80169E8 -sub_80169E8: @ 80169E8 - push {r4,r5,lr} - ldr r2, _08016A44 @ =gBattlerAttacker - ldr r1, _08016A48 @ =gBattlerByTurnOrder - ldr r0, _08016A4C @ =gCurrentTurnActionNumber - ldrb r0, [r0] - adds r0, r1 - ldrb r0, [r0] - strb r0, [r2] - ldr r0, _08016A50 @ =gBattle_BG0_X - movs r5, 0 - strh r5, [r0] - ldr r0, _08016A54 @ =gBattle_BG0_Y - strh r5, [r0] - ldr r4, _08016A58 @ =gBattleStruct - ldr r1, [r4] - adds r2, r1, 0 - adds r2, 0x79 - ldrb r0, [r2] - cmp r0, 0 - beq _08016A74 - subs r0, 0x1 - strb r0, [r2] - ldr r0, [r4] - adds r0, 0x79 - ldrb r0, [r0] - cmp r0, 0 - bne _08016A68 - ldr r0, _08016A5C @ =gEnemyParty - movs r1, 0xB - bl GetMonData - ldr r4, [r4] - adds r4, 0x7C - ldr r2, _08016A60 @ =gBaseStats - lsls r1, r0, 3 - subs r1, r0 - lsls r1, 2 - adds r1, r2 - ldrb r1, [r1, 0x8] - movs r0, 0x64 - muls r0, r1 - ldr r1, _08016A64 @ =0x000004fb - bl __divsi3 - strb r0, [r4] - b _08016A98 - .align 2, 0 -_08016A44: .4byte gBattlerAttacker -_08016A48: .4byte gBattlerByTurnOrder -_08016A4C: .4byte gCurrentTurnActionNumber -_08016A50: .4byte gBattle_BG0_X -_08016A54: .4byte gBattle_BG0_Y -_08016A58: .4byte gBattleStruct -_08016A5C: .4byte gEnemyParty -_08016A60: .4byte gBaseStats -_08016A64: .4byte 0x000004fb -_08016A68: - ldr r1, _08016A70 @ =gBattleCommunication - movs r0, 0x1 - strb r0, [r1, 0x5] - b _08016A9C - .align 2, 0 -_08016A70: .4byte gBattleCommunication -_08016A74: - adds r1, 0x7A - ldrb r0, [r1] - cmp r0, 0 - beq _08016A98 - subs r0, 0x1 - strb r0, [r1] - ldr r0, [r4] - adds r0, 0x7A - ldrb r0, [r0] - cmp r0, 0 - beq _08016A98 - ldr r1, _08016A94 @ =gBattleCommunication - movs r0, 0x2 - strb r0, [r1, 0x5] - b _08016A9C - .align 2, 0 -_08016A94: .4byte gBattleCommunication -_08016A98: - ldr r0, _08016AB0 @ =gBattleCommunication - strb r5, [r0, 0x5] -_08016A9C: - ldr r1, _08016AB4 @ =gBattlescriptCurrInstr - ldr r0, _08016AB8 @ =gUnknown_81D9A04 - ldr r0, [r0] - str r0, [r1] - ldr r1, _08016ABC @ =gCurrentActionFuncId - movs r0, 0xA - strb r0, [r1] - pop {r4,r5} - pop {r0} - bx r0 - .align 2, 0 -_08016AB0: .4byte gBattleCommunication -_08016AB4: .4byte gBattlescriptCurrInstr -_08016AB8: .4byte gUnknown_81D9A04 -_08016ABC: .4byte gCurrentActionFuncId - thumb_func_end sub_80169E8 - - thumb_func_start sub_8016AC0 -sub_8016AC0: @ 8016AC0 - ldr r2, _08016AF8 @ =gBattlerAttacker - ldr r1, _08016AFC @ =gBattlerByTurnOrder - ldr r0, _08016B00 @ =gCurrentTurnActionNumber - ldrb r0, [r0] - adds r0, r1 - ldrb r0, [r0] - strb r0, [r2] - ldr r0, _08016B04 @ =gBattle_BG0_X - movs r1, 0 - strh r1, [r0] - ldr r0, _08016B08 @ =gBattle_BG0_Y - strh r1, [r0] - ldr r1, _08016B0C @ =gNumSafariBalls - ldrb r0, [r1] - subs r0, 0x1 - strb r0, [r1] - ldr r1, _08016B10 @ =gLastUsedItem - movs r0, 0x5 - strh r0, [r1] - ldr r1, _08016B14 @ =gBattlescriptCurrInstr - ldr r0, _08016B18 @ =gUnknown_81D99B0 - ldr r0, [r0, 0x14] - str r0, [r1] - ldr r1, _08016B1C @ =gCurrentActionFuncId - movs r0, 0xA - strb r0, [r1] - bx lr - .align 2, 0 -_08016AF8: .4byte gBattlerAttacker -_08016AFC: .4byte gBattlerByTurnOrder -_08016B00: .4byte gCurrentTurnActionNumber -_08016B04: .4byte gBattle_BG0_X -_08016B08: .4byte gBattle_BG0_Y -_08016B0C: .4byte gNumSafariBalls -_08016B10: .4byte gLastUsedItem -_08016B14: .4byte gBattlescriptCurrInstr -_08016B18: .4byte gUnknown_81D99B0 -_08016B1C: .4byte gCurrentActionFuncId - thumb_func_end sub_8016AC0 - - thumb_func_start sub_8016B20 -sub_8016B20: @ 8016B20 - push {r4-r7,lr} - ldr r2, _08016B9C @ =gBattlerAttacker - ldr r1, _08016BA0 @ =gBattlerByTurnOrder - ldr r0, _08016BA4 @ =gCurrentTurnActionNumber - ldrb r0, [r0] - adds r0, r1 - ldrb r0, [r0] - strb r0, [r2] - ldr r0, _08016BA8 @ =gBattle_BG0_X - movs r7, 0 - strh r7, [r0] - ldr r0, _08016BAC @ =gBattle_BG0_Y - strh r7, [r0] - bl Random - ldr r6, _08016BB0 @ =gBattleStruct - ldr r5, [r6] - adds r5, 0x7A - ldrb r4, [r5] - adds r4, 0x2 - lsls r0, 16 - lsrs r0, 16 - movs r1, 0x5 - bl __umodsi3 - adds r0, r4 - strb r0, [r5] - ldr r0, [r6] - adds r1, r0, 0 - adds r1, 0x7A - ldrb r0, [r1] - cmp r0, 0x6 - bls _08016B66 - movs r0, 0x6 - strb r0, [r1] -_08016B66: - ldr r0, [r6] - adds r0, 0x79 - strb r7, [r0] - ldr r1, [r6] - adds r1, 0x7C - ldrb r0, [r1] - lsrs r0, 1 - strb r0, [r1] - ldr r0, [r6] - adds r1, r0, 0 - adds r1, 0x7C - ldrb r0, [r1] - cmp r0, 0x2 - bhi _08016B86 - movs r0, 0x3 - strb r0, [r1] -_08016B86: - ldr r1, _08016BB4 @ =gBattlescriptCurrInstr - ldr r0, _08016BB8 @ =gUnknown_81D9A04 - ldr r0, [r0, 0x8] - str r0, [r1] - ldr r1, _08016BBC @ =gCurrentActionFuncId - movs r0, 0xA - strb r0, [r1] - pop {r4-r7} - pop {r0} - bx r0 - .align 2, 0 -_08016B9C: .4byte gBattlerAttacker -_08016BA0: .4byte gBattlerByTurnOrder -_08016BA4: .4byte gCurrentTurnActionNumber -_08016BA8: .4byte gBattle_BG0_X -_08016BAC: .4byte gBattle_BG0_Y -_08016BB0: .4byte gBattleStruct -_08016BB4: .4byte gBattlescriptCurrInstr -_08016BB8: .4byte gUnknown_81D9A04 -_08016BBC: .4byte gCurrentActionFuncId - thumb_func_end sub_8016B20 - - thumb_func_start sub_8016BC0 -sub_8016BC0: @ 8016BC0 - push {r4-r7,lr} - ldr r2, _08016C3C @ =gBattlerAttacker - ldr r1, _08016C40 @ =gBattlerByTurnOrder - ldr r0, _08016C44 @ =gCurrentTurnActionNumber - ldrb r0, [r0] - adds r0, r1 - ldrb r0, [r0] - strb r0, [r2] - ldr r0, _08016C48 @ =gBattle_BG0_X - movs r7, 0 - strh r7, [r0] - ldr r0, _08016C4C @ =gBattle_BG0_Y - strh r7, [r0] - bl Random - ldr r6, _08016C50 @ =gBattleStruct - ldr r5, [r6] - adds r5, 0x79 - ldrb r4, [r5] - adds r4, 0x2 - lsls r0, 16 - lsrs r0, 16 - movs r1, 0x5 - bl __umodsi3 - adds r0, r4 - strb r0, [r5] - ldr r0, [r6] - adds r1, r0, 0 - adds r1, 0x79 - ldrb r0, [r1] - cmp r0, 0x6 - bls _08016C06 - movs r0, 0x6 - strb r0, [r1] -_08016C06: - ldr r0, [r6] - adds r0, 0x7A - strb r7, [r0] - ldr r1, [r6] - adds r1, 0x7C - ldrb r0, [r1] - lsls r0, 1 - strb r0, [r1] - ldr r0, [r6] - adds r1, r0, 0 - adds r1, 0x7C - ldrb r0, [r1] - cmp r0, 0x14 - bls _08016C26 - movs r0, 0x14 - strb r0, [r1] -_08016C26: - ldr r1, _08016C54 @ =gBattlescriptCurrInstr - ldr r0, _08016C58 @ =gUnknown_81D9A04 - ldr r0, [r0, 0x4] - str r0, [r1] - ldr r1, _08016C5C @ =gCurrentActionFuncId - movs r0, 0xA - strb r0, [r1] - pop {r4-r7} - pop {r0} - bx r0 - .align 2, 0 -_08016C3C: .4byte gBattlerAttacker -_08016C40: .4byte gBattlerByTurnOrder -_08016C44: .4byte gCurrentTurnActionNumber -_08016C48: .4byte gBattle_BG0_X -_08016C4C: .4byte gBattle_BG0_Y -_08016C50: .4byte gBattleStruct -_08016C54: .4byte gBattlescriptCurrInstr -_08016C58: .4byte gUnknown_81D9A04 -_08016C5C: .4byte gCurrentActionFuncId - thumb_func_end sub_8016BC0 - - thumb_func_start HandleAction_SafriZoneRun -HandleAction_SafriZoneRun: @ 8016C60 - push {r4,lr} - ldr r2, _08016C88 @ =gBattlerAttacker - ldr r1, _08016C8C @ =gBattlerByTurnOrder - ldr r4, _08016C90 @ =gCurrentTurnActionNumber - ldrb r0, [r4] - adds r0, r1 - ldrb r0, [r0] - strb r0, [r2] - movs r0, 0x11 - bl PlaySE - ldr r0, _08016C94 @ =gBattlersCount - ldrb r0, [r0] - strb r0, [r4] - ldr r1, _08016C98 @ =gBattleOutcome - movs r0, 0x4 - strb r0, [r1] - pop {r4} - pop {r0} - bx r0 - .align 2, 0 -_08016C88: .4byte gBattlerAttacker -_08016C8C: .4byte gBattlerByTurnOrder -_08016C90: .4byte gCurrentTurnActionNumber -_08016C94: .4byte gBattlersCount -_08016C98: .4byte gBattleOutcome - thumb_func_end HandleAction_SafriZoneRun - - thumb_func_start HandleAction_Action9 -HandleAction_Action9: @ 8016C9C - ldr r3, _08016CE8 @ =gBattlerAttacker - ldr r1, _08016CEC @ =gBattlerByTurnOrder - ldr r0, _08016CF0 @ =gCurrentTurnActionNumber - ldrb r0, [r0] - adds r0, r1 - ldrb r2, [r0] - strb r2, [r3] - ldr r0, _08016CF4 @ =gBattle_BG0_X - movs r1, 0 - strh r1, [r0] - ldr r0, _08016CF8 @ =gBattle_BG0_Y - strh r1, [r0] - ldr r1, _08016CFC @ =gBattleTextBuff1 - movs r0, 0xFD - strb r0, [r1] - movs r0, 0x7 - strb r0, [r1, 0x1] - strb r2, [r1, 0x2] - ldr r2, _08016D00 @ =gBattlerPartyIndexes - ldrb r0, [r3] - lsls r0, 1 - adds r0, r2 - ldrh r0, [r0] - strb r0, [r1, 0x3] - movs r0, 0xFF - strb r0, [r1, 0x4] - ldr r1, _08016D04 @ =gBattlescriptCurrInstr - ldr r0, _08016D08 @ =gUnknown_81D9A04 - ldr r0, [r0, 0xC] - str r0, [r1] - ldr r1, _08016D0C @ =gCurrentActionFuncId - movs r0, 0xA - strb r0, [r1] - ldr r1, _08016D10 @ =gActionsByTurnOrder - movs r0, 0xC - strb r0, [r1, 0x1] - bx lr - .align 2, 0 -_08016CE8: .4byte gBattlerAttacker -_08016CEC: .4byte gBattlerByTurnOrder -_08016CF0: .4byte gCurrentTurnActionNumber -_08016CF4: .4byte gBattle_BG0_X -_08016CF8: .4byte gBattle_BG0_Y -_08016CFC: .4byte gBattleTextBuff1 -_08016D00: .4byte gBattlerPartyIndexes -_08016D04: .4byte gBattlescriptCurrInstr -_08016D08: .4byte gUnknown_81D9A04 -_08016D0C: .4byte gCurrentActionFuncId -_08016D10: .4byte gActionsByTurnOrder - thumb_func_end HandleAction_Action9 - - thumb_func_start HandleAction_Action11 -HandleAction_Action11: @ 8016D14 - push {lr} - bl HandleFaintedMonActions - lsls r0, 24 - lsrs r1, r0, 24 - cmp r1, 0 - bne _08016D30 - ldr r0, _08016D34 @ =gBattleStruct - ldr r0, [r0] - adds r0, 0x4D - strb r1, [r0] - ldr r1, _08016D38 @ =gCurrentActionFuncId - movs r0, 0xC - strb r0, [r1] -_08016D30: - pop {r0} - bx r0 - .align 2, 0 -_08016D34: .4byte gBattleStruct -_08016D38: .4byte gCurrentActionFuncId - thumb_func_end HandleAction_Action11 - - thumb_func_start HandleAction_NothingIsFainted -HandleAction_NothingIsFainted: @ 8016D3C - ldr r1, _08016D5C @ =gCurrentTurnActionNumber - ldrb r0, [r1] - adds r0, 0x1 - strb r0, [r1] - ldr r3, _08016D60 @ =gCurrentActionFuncId - ldr r2, _08016D64 @ =gActionsByTurnOrder - ldrb r0, [r1] - adds r0, r2 - ldrb r0, [r0] - strb r0, [r3] - ldr r2, _08016D68 @ =gHitMarker - ldr r0, [r2] - ldr r1, _08016D6C @ =0xf1e892af - ands r0, r1 - str r0, [r2] - bx lr - .align 2, 0 -_08016D5C: .4byte gCurrentTurnActionNumber -_08016D60: .4byte gCurrentActionFuncId -_08016D64: .4byte gActionsByTurnOrder -_08016D68: .4byte gHitMarker -_08016D6C: .4byte 0xf1e892af - thumb_func_end HandleAction_NothingIsFainted - - thumb_func_start HandleAction_ActionFinished -HandleAction_ActionFinished: @ 8016D70 - push {r4,r5,lr} - ldr r1, _08016DE4 @ =gCurrentTurnActionNumber - ldrb r0, [r1] - adds r0, 0x1 - strb r0, [r1] - ldr r3, _08016DE8 @ =gCurrentActionFuncId - ldr r2, _08016DEC @ =gActionsByTurnOrder - ldrb r0, [r1] - adds r0, r2 - ldrb r0, [r0] - strb r0, [r3] - bl SpecialStatusesClear - ldr r2, _08016DF0 @ =gHitMarker - ldr r0, [r2] - ldr r1, _08016DF4 @ =0xf1e892af - ands r0, r1 - str r0, [r2] - ldr r0, _08016DF8 @ =gCurrentMove - movs r1, 0 - strh r1, [r0] - ldr r0, _08016DFC @ =gBattleMoveDamage - movs r4, 0 - str r4, [r0] - ldr r0, _08016E00 @ =gMoveResultFlags - strb r1, [r0] - ldr r5, _08016E04 @ =gBattleScripting - strb r1, [r5, 0x18] - strb r1, [r5, 0x19] - ldr r2, _08016E08 @ =gLastLandedMoves - ldr r3, _08016E0C @ =gBattlerAttacker - ldrb r0, [r3] - lsls r0, 1 - adds r0, r2 - strh r4, [r0] - ldr r2, _08016E10 @ =gLastHitByType - ldrb r0, [r3] - lsls r0, 1 - adds r0, r2 - strh r4, [r0] - ldr r0, _08016E14 @ =gBattleStruct - ldr r0, [r0] - strb r1, [r0, 0x13] - ldr r0, _08016E18 @ =gDynamicBasePower - strh r4, [r0] - strb r1, [r5, 0x14] - ldr r0, _08016E1C @ =gBattleCommunication - strb r1, [r0, 0x3] - strb r1, [r0, 0x4] - strb r1, [r5, 0x16] - ldr r0, _08016E20 @ =gBattleResources - ldr r0, [r0] - ldr r0, [r0, 0x8] - adds r0, 0x20 - strb r1, [r0] - pop {r4,r5} - pop {r0} - bx r0 - .align 2, 0 -_08016DE4: .4byte gCurrentTurnActionNumber -_08016DE8: .4byte gCurrentActionFuncId -_08016DEC: .4byte gActionsByTurnOrder -_08016DF0: .4byte gHitMarker -_08016DF4: .4byte 0xf1e892af -_08016DF8: .4byte gCurrentMove -_08016DFC: .4byte gBattleMoveDamage -_08016E00: .4byte gMoveResultFlags -_08016E04: .4byte gBattleScripting -_08016E08: .4byte gLastLandedMoves -_08016E0C: .4byte gBattlerAttacker -_08016E10: .4byte gLastHitByType -_08016E14: .4byte gBattleStruct -_08016E18: .4byte gDynamicBasePower -_08016E1C: .4byte gBattleCommunication -_08016E20: .4byte gBattleResources - thumb_func_end HandleAction_ActionFinished - - .align 2, 0 @ Don't pad with nop. diff --git a/asm/battle_anim.s b/asm/battle_anim.s index d5e389807..d9471c9dd 100644 --- a/asm/battle_anim.s +++ b/asm/battle_anim.s @@ -281,9 +281,9 @@ _08072706: strh r1, [r0] ldr r0, _08072734 @ =gBattle_WIN0V strh r1, [r0] - ldr r0, _08072738 @ =gUnknown_2022988 + ldr r0, _08072738 @ =gBattle_WIN1H strh r1, [r0] - ldr r0, _0807273C @ =gUnknown_202298A + ldr r0, _0807273C @ =gBattle_WIN1V strh r1, [r0] add sp, 0x4 pop {r3-r5} @@ -298,8 +298,8 @@ _08072728: .4byte 0x0000ffff _0807272C: .4byte gMPlayInfo_BGM _08072730: .4byte gBattle_WIN0H _08072734: .4byte gBattle_WIN0V -_08072738: .4byte gUnknown_2022988 -_0807273C: .4byte gUnknown_202298A +_08072738: .4byte gBattle_WIN1H +_0807273C: .4byte gBattle_WIN1V thumb_func_end LaunchBattleAnimation thumb_func_start DestroyAnimSprite diff --git a/asm/battle_anim_effects_2.s b/asm/battle_anim_effects_2.s index 67ac6a13e..24921239f 100644 --- a/asm/battle_anim_effects_2.s +++ b/asm/battle_anim_effects_2.s @@ -3902,7 +3902,7 @@ _080A8C60: subs r0, r4 strh r0, [r1] _080A8C6A: - ldr r1, _080A8C80 @ =sub_8075D9C + ldr r1, _080A8C80 @ =AnimSpriteOnMonPos str r1, [r6, 0x1C] adds r0, r6, 0 bl _call_via_r1 @@ -3912,7 +3912,7 @@ _080A8C6A: bx r0 .align 2, 0 _080A8C7C: .4byte gBattleAnimArgs -_080A8C80: .4byte sub_8075D9C +_080A8C80: .4byte AnimSpriteOnMonPos thumb_func_end sub_80A8BC4 thumb_func_start sub_80A8C84 @@ -4233,7 +4233,7 @@ _080A8F0E: adds r0, r4, 0 movs r1, 0x1 bl StartSpriteAffineAnim - ldr r1, _080A8F34 @ =sub_8075D9C + ldr r1, _080A8F34 @ =AnimSpriteOnMonPos str r1, [r4, 0x1C] adds r0, r4, 0 bl _call_via_r1 @@ -4244,7 +4244,7 @@ _080A8F0E: _080A8F28: .4byte 0x000027db _080A8F2C: .4byte 0x01010000 _080A8F30: .4byte gBattleAnimArgs -_080A8F34: .4byte sub_8075D9C +_080A8F34: .4byte AnimSpriteOnMonPos thumb_func_end sub_80A8EE8 thumb_func_start sub_80A8F38 diff --git a/asm/battle_anim_effects_3.s b/asm/battle_anim_effects_3.s index 004ad8786..9c98d7f36 100644 --- a/asm/battle_anim_effects_3.s +++ b/asm/battle_anim_effects_3.s @@ -1481,11 +1481,11 @@ sub_80DEDD8: @ 80DEDD8 ldr r1, _080DEE14 @ =0x00001f3f movs r0, 0x48 bl SetGpuReg - ldr r1, _080DEE18 @ =gUnknown_2022988 + ldr r1, _080DEE18 @ =gBattle_WIN1H ldr r2, _080DEE1C @ =0x000098f0 adds r0, r2, 0 strh r0, [r1] - ldr r1, _080DEE20 @ =gUnknown_202298A + ldr r1, _080DEE20 @ =gBattle_WIN1V movs r0, 0xA0 strh r0, [r1] ldr r0, _080DEE24 @ =gBattle_WIN0H @@ -1499,19 +1499,19 @@ sub_80DEDD8: @ 80DEDD8 b _080DEE5C .align 2, 0 _080DEE14: .4byte 0x00001f3f -_080DEE18: .4byte gUnknown_2022988 +_080DEE18: .4byte gBattle_WIN1H _080DEE1C: .4byte 0x000098f0 -_080DEE20: .4byte gUnknown_202298A +_080DEE20: .4byte gBattle_WIN1V _080DEE24: .4byte gBattle_WIN0H _080DEE28: .4byte gBattle_WIN0V _080DEE2C: ldr r1, _080DEE68 @ =0x00001f3f movs r0, 0x48 bl SetGpuReg - ldr r1, _080DEE6C @ =gUnknown_2022988 + ldr r1, _080DEE6C @ =gBattle_WIN1H movs r0, 0xF0 strh r0, [r1] - ldr r4, _080DEE70 @ =gUnknown_202298A + ldr r4, _080DEE70 @ =gBattle_WIN1V ldr r1, _080DEE74 @ =0x000078a0 adds r0, r1, 0 strh r0, [r4] @@ -1533,8 +1533,8 @@ _080DEE5C: bx r0 .align 2, 0 _080DEE68: .4byte 0x00001f3f -_080DEE6C: .4byte gUnknown_2022988 -_080DEE70: .4byte gUnknown_202298A +_080DEE6C: .4byte gBattle_WIN1H +_080DEE70: .4byte gBattle_WIN1V _080DEE74: .4byte 0x000078a0 thumb_func_end sub_80DEDD8 @@ -1546,10 +1546,10 @@ sub_80DEE78: @ 80DEE78 ldr r1, _080DEEB0 @ =0x00003f3f movs r0, 0x48 bl SetGpuReg - ldr r0, _080DEEB4 @ =gUnknown_2022988 + ldr r0, _080DEEB4 @ =gBattle_WIN1H movs r1, 0 strh r1, [r0] - ldr r0, _080DEEB8 @ =gUnknown_202298A + ldr r0, _080DEEB8 @ =gBattle_WIN1V strh r1, [r0] bl IsContest lsls r0, 24 @@ -1567,8 +1567,8 @@ _080DEEA4: bx r0 .align 2, 0 _080DEEB0: .4byte 0x00003f3f -_080DEEB4: .4byte gUnknown_2022988 -_080DEEB8: .4byte gUnknown_202298A +_080DEEB4: .4byte gBattle_WIN1H +_080DEEB8: .4byte gBattle_WIN1V thumb_func_end sub_80DEE78 thumb_func_start sub_80DEEBC diff --git a/asm/battle_1.s b/asm/battle_bg.s similarity index 98% rename from asm/battle_1.s rename to asm/battle_bg.s index 0b8ad7365..6db40cb4d 100644 --- a/asm/battle_1.s +++ b/asm/battle_bg.s @@ -179,7 +179,7 @@ sub_800F324: @ 800F324 push {lr} movs r0, 0 bl ResetBgsAndClearDma3BusyFlags - ldr r1, _0800F344 @ =gUnknown_8248320 + ldr r1, _0800F344 @ =gBattleBgTemplates movs r0, 0 movs r2, 0x4 bl InitBgsFromTemplates @@ -189,7 +189,7 @@ sub_800F324: @ 800F324 pop {r0} bx r0 .align 2, 0 -_0800F344: .4byte gUnknown_8248320 +_0800F344: .4byte gBattleBgTemplates _0800F348: .4byte gUnknown_8248330 thumb_func_end sub_800F324 @@ -217,8 +217,8 @@ sub_800F34C: @ 800F34C _0800F37C: .4byte 0x0000b040 thumb_func_end sub_800F34C - thumb_func_start sub_800F380 -sub_800F380: @ 800F380 + thumb_func_start LoadBattleMenuWindowGfx +LoadBattleMenuWindowGfx: @ 800F380 push {r4,r5,lr} movs r0, 0x2 movs r1, 0x12 @@ -278,7 +278,7 @@ _0800F3FC: .4byte 0x0000675a _0800F400: .4byte gPlttBufferFaded + 0xB8 _0800F404: .4byte gBattleTypeFlags _0800F408: .4byte 0x00010010 - thumb_func_end sub_800F380 + thumb_func_end LoadBattleMenuWindowGfx thumb_func_start sub_800F40C sub_800F40C: @ 800F40C @@ -309,7 +309,7 @@ LoadBattleTextboxAndBackground: @ 800F420 movs r1, 0 movs r2, 0x40 bl LoadCompressedPalette - bl sub_800F380 + bl LoadBattleMenuWindowGfx bl sub_800F40C pop {r0} bx r0 @@ -1143,8 +1143,8 @@ _0800FAD8: .4byte 0x000003ff _0800FADC: .4byte 0xfffffc00 thumb_func_end sub_800F6FC - thumb_func_start sub_800FAE0 -sub_800FAE0: @ 800FAE0 + thumb_func_start DrawBattleEntryBackground +DrawBattleEntryBackground: @ 800FAE0 push {r4,lr} ldr r0, _0800FB64 @ =gBattleTypeFlags ldr r1, [r0] @@ -1287,7 +1287,7 @@ _0800FC26: pop {r4} pop {r0} bx r0 - thumb_func_end sub_800FAE0 + thumb_func_end DrawBattleEntryBackground thumb_func_start sub_800FC2C sub_800FC2C: @ 800FC2C @@ -1459,7 +1459,7 @@ _0800FD68: .align 2, 0 _0800FD88: .4byte gUnknown_824EE34 _0800FD8C: - bl sub_800F380 + bl LoadBattleMenuWindowGfx b _0800FD94 _0800FD92: movs r4, 0x1 diff --git a/asm/battle_controller_oak.s b/asm/battle_controller_oak.s deleted file mode 100644 index 47230be60..000000000 --- a/asm/battle_controller_oak.s +++ /dev/null @@ -1,7887 +0,0 @@ - .include "asm/macros.inc" - .include "constants/constants.inc" - - .syntax unified - - .text - - thumb_func_start nullsub_81 -nullsub_81: @ 80E75AC - bx lr - thumb_func_end nullsub_81 - - thumb_func_start SetControllerToOakOrOldman -SetControllerToOakOrOldman: @ 80E75B0 - ldr r1, _080E75DC @ =gBattlerControllerFuncs - ldr r0, _080E75E0 @ =gActiveBattler - ldrb r0, [r0] - lsls r0, 2 - adds r0, r1 - ldr r1, _080E75E4 @ =sub_80E75EC - str r1, [r0] - ldr r2, _080E75E8 @ =gBattleStruct - ldr r0, [r2] - adds r0, 0x94 - movs r1, 0 - strb r1, [r0] - ldr r0, [r2] - adds r0, 0x95 - strb r1, [r0] - ldr r0, [r2] - adds r0, 0x96 - strb r1, [r0] - ldr r0, [r2] - adds r0, 0x97 - strb r1, [r0] - bx lr - .align 2, 0 -_080E75DC: .4byte gBattlerControllerFuncs -_080E75E0: .4byte gActiveBattler -_080E75E4: .4byte sub_80E75EC -_080E75E8: .4byte gBattleStruct - thumb_func_end SetControllerToOakOrOldman - - thumb_func_start sub_80E75EC -sub_80E75EC: @ 80E75EC - push {lr} - ldr r2, _080E7620 @ =gBattleControllerExecFlags - ldr r1, _080E7624 @ =gBitTable - ldr r0, _080E7628 @ =gActiveBattler - ldrb r3, [r0] - lsls r0, r3, 2 - adds r0, r1 - ldr r1, [r2] - ldr r0, [r0] - ands r1, r0 - cmp r1, 0 - beq _080E7638 - ldr r0, _080E762C @ =gBattleBufferA - lsls r1, r3, 9 - adds r1, r0 - ldrb r0, [r1] - cmp r0, 0x38 - bhi _080E7634 - ldr r0, _080E7630 @ =gUnknown_84020F8 - ldrb r1, [r1] - lsls r1, 2 - adds r1, r0 - ldr r0, [r1] - bl _call_via_r0 - b _080E7638 - .align 2, 0 -_080E7620: .4byte gBattleControllerExecFlags -_080E7624: .4byte gBitTable -_080E7628: .4byte gActiveBattler -_080E762C: .4byte gBattleBufferA -_080E7630: .4byte gUnknown_84020F8 -_080E7634: - bl WallyBufferExecCompleted -_080E7638: - pop {r0} - bx r0 - thumb_func_end sub_80E75EC - - thumb_func_start sub_80E763C -sub_80E763C: @ 80E763C - push {r4-r7,lr} - mov r7, r8 - push {r7} - ldr r7, _080E769C @ =gBattleBufferA - ldr r4, _080E76A0 @ =gActiveBattler - ldrb r0, [r4] - lsls r2, r0, 9 - adds r1, r7, 0x2 - adds r1, r2, r1 - ldrb r5, [r1] - adds r1, r7, 0x3 - adds r2, r1 - ldrb r1, [r2] - lsls r1, 8 - orrs r5, r1 - movs r1, 0x1 - movs r2, 0x7 - movs r3, 0x1 - bl DoBounceEffect - ldrb r0, [r4] - movs r1, 0 - movs r2, 0x7 - movs r3, 0x1 - bl DoBounceEffect - ldr r0, _080E76A4 @ =gMain - ldrh r1, [r0, 0x2E] - movs r2, 0x1 - adds r0, r2, 0 - ands r0, r1 - cmp r0, 0 - beq _080E76D4 - movs r0, 0x5 - bl PlaySE - ldr r1, _080E76A8 @ =gActionSelectionCursor - ldrb r0, [r4] - adds r0, r1 - ldrb r0, [r0] - cmp r0, 0x1 - beq _080E76BC - cmp r0, 0x1 - bgt _080E76AC - cmp r0, 0 - beq _080E76B6 - b _080E781A - .align 2, 0 -_080E769C: .4byte gBattleBufferA -_080E76A0: .4byte gActiveBattler -_080E76A4: .4byte gMain -_080E76A8: .4byte gActionSelectionCursor -_080E76AC: - cmp r0, 0x2 - beq _080E76C2 - cmp r0, 0x3 - beq _080E76C8 - b _080E781A -_080E76B6: - movs r0, 0x1 - movs r1, 0 - b _080E7814 -_080E76BC: - movs r0, 0x1 - movs r1, 0x1 - b _080E7814 -_080E76C2: - movs r0, 0x1 - movs r1, 0x2 - b _080E7814 -_080E76C8: - movs r0, 0x1 - movs r1, 0x3 - movs r2, 0 - bl BtlController_EmitTwoReturnValues - b _080E781A -_080E76D4: - movs r0, 0x20 - ands r0, r1 - cmp r0, 0 - beq _080E770C - ldr r5, _080E7708 @ =gActionSelectionCursor - ldrb r0, [r4] - adds r0, r5 - ldrb r1, [r0] - adds r0, r2, 0 - ands r0, r1 - cmp r0, 0 - bne _080E76EE - b _080E7838 -_080E76EE: - movs r0, 0x5 - bl PlaySE - ldrb r0, [r4] - adds r0, r5 - ldrb r0, [r0] - bl ActionSelectionDestroyCursorAt - ldrb r1, [r4] - adds r1, r5 - ldrb r0, [r1] - movs r2, 0x1 - b _080E7794 - .align 2, 0 -_080E7708: .4byte gActionSelectionCursor -_080E770C: - movs r0, 0x10 - ands r0, r1 - cmp r0, 0 - beq _080E7744 - ldr r5, _080E7740 @ =gActionSelectionCursor - ldrb r0, [r4] - adds r0, r5 - ldrb r1, [r0] - adds r0, r2, 0 - ands r0, r1 - cmp r0, 0 - beq _080E7726 - b _080E7838 -_080E7726: - movs r0, 0x5 - bl PlaySE - ldrb r0, [r4] - adds r0, r5 - ldrb r0, [r0] - bl ActionSelectionDestroyCursorAt - ldrb r1, [r4] - adds r1, r5 - ldrb r0, [r1] - movs r2, 0x1 - b _080E7794 - .align 2, 0 -_080E7740: .4byte gActionSelectionCursor -_080E7744: - movs r0, 0x40 - mov r8, r0 - ands r0, r1 - cmp r0, 0 - beq _080E7764 - ldr r5, _080E7760 @ =gActionSelectionCursor - ldrb r0, [r4] - adds r0, r5 - ldrb r1, [r0] - movs r0, 0x2 - ands r0, r1 - cmp r0, 0 - beq _080E7838 - b _080E777C - .align 2, 0 -_080E7760: .4byte gActionSelectionCursor -_080E7764: - movs r0, 0x80 - ands r0, r1 - cmp r0, 0 - beq _080E77AC - ldr r5, _080E77A8 @ =gActionSelectionCursor - ldrb r0, [r4] - adds r0, r5 - ldrb r1, [r0] - movs r0, 0x2 - ands r0, r1 - cmp r0, 0 - bne _080E7838 -_080E777C: - movs r0, 0x5 - bl PlaySE - ldrb r0, [r4] - adds r0, r5 - ldrb r0, [r0] - bl ActionSelectionDestroyCursorAt - ldrb r1, [r4] - adds r1, r5 - ldrb r0, [r1] - movs r2, 0x2 -_080E7794: - eors r0, r2 - strb r0, [r1] - ldrb r0, [r4] - adds r0, r5 - ldrb r0, [r0] - movs r1, 0 - bl ActionSelectionCreateCursorAt - b _080E7838 - .align 2, 0 -_080E77A8: .4byte gActionSelectionCursor -_080E77AC: - movs r0, 0x2 - ands r0, r1 - cmp r0, 0 - beq _080E782C - ldr r6, _080E7820 @ =gBattleTypeFlags - ldr r0, [r6] - ands r0, r2 - cmp r0, 0 - beq _080E7838 - ldrb r0, [r4] - bl GetBattlerPosition - lsls r0, 24 - lsrs r0, 24 - cmp r0, 0x2 - bne _080E7838 - movs r0, 0 - bl GetBattlerAtPosition - ldr r1, _080E7824 @ =gAbsentBattlerFlags - ldrb r1, [r1] - ldr r2, _080E7828 @ =gBitTable - lsls r0, 24 - lsrs r0, 22 - adds r0, r2 - ldr r0, [r0] - ands r1, r0 - cmp r1, 0 - bne _080E7838 - ldr r0, [r6] - mov r1, r8 - ands r0, r1 - cmp r0, 0 - bne _080E7838 - ldrb r0, [r4] - lsls r0, 9 - adds r1, r7, 0x1 - adds r0, r1 - ldrb r0, [r0] - cmp r0, 0x1 - bne _080E780A - cmp r5, 0xC - bhi _080E7838 - adds r0, r5, 0 - movs r1, 0x1 - bl AddBagItem -_080E780A: - movs r0, 0x5 - bl PlaySE - movs r0, 0x1 - movs r1, 0xC -_080E7814: - movs r2, 0 - bl BtlController_EmitTwoReturnValues -_080E781A: - bl WallyBufferExecCompleted - b _080E7838 - .align 2, 0 -_080E7820: .4byte gBattleTypeFlags -_080E7824: .4byte gAbsentBattlerFlags -_080E7828: .4byte gBitTable -_080E782C: - movs r0, 0x8 - ands r0, r1 - cmp r0, 0 - beq _080E7838 - bl SwapHpBarsWithHpText -_080E7838: - pop {r3} - mov r8, r3 - pop {r4-r7} - pop {r0} - bx r0 - thumb_func_end sub_80E763C - - thumb_func_start sub_80E7844 -sub_80E7844: @ 80E7844 - push {r4,lr} - ldr r1, _080E7860 @ =gBattleStruct - ldr r2, [r1] - adds r0, r2, 0 - adds r0, 0x94 - ldrb r0, [r0] - adds r4, r1, 0 - cmp r0, 0x1 - beq _080E787C - cmp r0, 0x1 - bgt _080E7864 - cmp r0, 0 - beq _080E786A - b _080E78D8 - .align 2, 0 -_080E7860: .4byte gBattleStruct -_080E7864: - cmp r0, 0x2 - beq _080E78B4 - b _080E78D8 -_080E786A: - adds r1, r2, 0 - adds r1, 0x96 - movs r0, 0x40 - strb r0, [r1] - ldr r1, [r4] - adds r1, 0x94 - ldrb r0, [r1] - adds r0, 0x1 - strb r0, [r1] -_080E787C: - ldr r1, [r4] - adds r1, 0x96 - ldrb r0, [r1] - subs r0, 0x1 - strb r0, [r1] - lsls r0, 24 - cmp r0, 0 - bne _080E78D8 - movs r0, 0x5 - bl PlaySE - movs r0, 0 - bl ActionSelectionDestroyCursorAt - movs r0, 0x1 - movs r1, 0 - bl ActionSelectionCreateCursorAt - ldr r0, [r4] - adds r0, 0x96 - movs r1, 0x40 - strb r1, [r0] - ldr r1, [r4] - adds r1, 0x94 - ldrb r0, [r1] - adds r0, 0x1 - strb r0, [r1] - b _080E78D8 -_080E78B4: - adds r1, r2, 0 - adds r1, 0x96 - ldrb r0, [r1] - subs r0, 0x1 - strb r0, [r1] - lsls r0, 24 - cmp r0, 0 - bne _080E78D8 - movs r0, 0x5 - bl PlaySE - movs r0, 0x1 - movs r1, 0x1 - movs r2, 0 - bl BtlController_EmitTwoReturnValues - bl WallyBufferExecCompleted -_080E78D8: - pop {r4} - pop {r0} - bx r0 - thumb_func_end sub_80E7844 - - thumb_func_start sub_80E78E0 -sub_80E78E0: @ 80E78E0 - push {lr} - ldr r2, _080E7908 @ =gSprites - ldr r1, _080E790C @ =gBattlerSpriteIds - ldr r0, _080E7910 @ =gActiveBattler - ldrb r0, [r0] - adds r0, r1 - ldrb r1, [r0] - lsls r0, r1, 4 - adds r0, r1 - lsls r0, 2 - adds r2, 0x1C - adds r0, r2 - ldr r1, [r0] - ldr r0, _080E7914 @ =SpriteCallbackDummy - cmp r1, r0 - bne _080E7904 - bl WallyBufferExecCompleted -_080E7904: - pop {r0} - bx r0 - .align 2, 0 -_080E7908: .4byte gSprites -_080E790C: .4byte gBattlerSpriteIds -_080E7910: .4byte gActiveBattler -_080E7914: .4byte SpriteCallbackDummy - thumb_func_end sub_80E78E0 - - thumb_func_start sub_80E7918 -sub_80E7918: @ 80E7918 - push {lr} - movs r0, 0 - bl IsTextPrinterActive - lsls r0, 16 - cmp r0, 0 - bne _080E792A - bl WallyBufferExecCompleted -_080E792A: - pop {r0} - bx r0 - thumb_func_end sub_80E7918 - - thumb_func_start sub_80E7930 -sub_80E7930: @ 80E7930 - push {lr} - ldr r0, _080E7960 @ =gPaletteFade - ldrb r1, [r0, 0x7] - movs r0, 0x80 - ands r0, r1 - cmp r0, 0 - bne _080E795A - ldr r2, _080E7964 @ =gMain - ldr r0, _080E7968 @ =0x00000439 - adds r3, r2, r0 - ldrb r1, [r3] - movs r0, 0x3 - negs r0, r0 - ands r0, r1 - strb r0, [r3] - ldr r0, _080E796C @ =gPreBattleCallback1 - ldr r0, [r0] - str r0, [r2] - ldr r0, [r2, 0x8] - bl SetMainCallback2 -_080E795A: - pop {r0} - bx r0 - .align 2, 0 -_080E7960: .4byte gPaletteFade -_080E7964: .4byte gMain -_080E7968: .4byte 0x00000439 -_080E796C: .4byte gPreBattleCallback1 - thumb_func_end sub_80E7930 - - thumb_func_start sub_80E7970 -sub_80E7970: @ 80E7970 - push {lr} - ldr r0, _080E7984 @ =gDoingBattleAnim - ldrb r0, [r0] - cmp r0, 0 - bne _080E797E - bl WallyBufferExecCompleted -_080E797E: - pop {r0} - bx r0 - .align 2, 0 -_080E7984: .4byte gDoingBattleAnim - thumb_func_end sub_80E7970 - - thumb_func_start sub_80E7988 -sub_80E7988: @ 80E7988 - push {lr} - bl HandleInputChooseMove - ldr r2, _080E79AC @ =gBattleControllerExecFlags - ldr r1, _080E79B0 @ =gBitTable - ldr r0, _080E79B4 @ =gActiveBattler - ldrb r0, [r0] - lsls r0, 2 - adds r0, r1 - ldr r1, [r2] - ldr r0, [r0] - ands r1, r0 - cmp r1, 0 - bne _080E79A8 - bl WallyBufferExecCompleted -_080E79A8: - pop {r0} - bx r0 - .align 2, 0 -_080E79AC: .4byte gBattleControllerExecFlags -_080E79B0: .4byte gBitTable -_080E79B4: .4byte gActiveBattler - thumb_func_end sub_80E7988 - - thumb_func_start sub_80E79B8 -sub_80E79B8: @ 80E79B8 - push {r4,lr} - ldr r0, _080E79FC @ =gPaletteFade - ldrb r1, [r0, 0x7] - movs r0, 0x80 - ands r0, r1 - cmp r0, 0 - bne _080E79F6 - ldr r1, _080E7A00 @ =gBattlerControllerFuncs - ldr r2, _080E7A04 @ =gActiveBattler - ldrb r0, [r2] - lsls r0, 2 - adds r0, r1 - ldr r1, _080E7A08 @ =sub_80E7A14 - str r1, [r0] - ldr r3, _080E7A0C @ =gTasks - ldr r1, _080E7A10 @ =gUnknown_3004FFC - ldrb r0, [r2] - adds r0, r1 - ldrb r0, [r0] - lsls r1, r0, 2 - adds r1, r0 - lsls r1, 3 - adds r1, r3 - ldrb r4, [r1, 0x8] - bl DestroyTask - bl FreeAllWindowBuffers - adds r0, r4, 0 - bl OpenPartyMenuInBattle -_080E79F6: - pop {r4} - pop {r0} - bx r0 - .align 2, 0 -_080E79FC: .4byte gPaletteFade -_080E7A00: .4byte gBattlerControllerFuncs -_080E7A04: .4byte gActiveBattler -_080E7A08: .4byte sub_80E7A14 -_080E7A0C: .4byte gTasks -_080E7A10: .4byte gUnknown_3004FFC - thumb_func_end sub_80E79B8 - - thumb_func_start sub_80E7A14 -sub_80E7A14: @ 80E7A14 - push {lr} - ldr r0, _080E7A44 @ =gMain - ldr r1, [r0, 0x4] - ldr r0, _080E7A48 @ =BattleMainCB2 - cmp r1, r0 - bne _080E7A6A - ldr r0, _080E7A4C @ =gPaletteFade - ldrb r1, [r0, 0x7] - movs r0, 0x80 - ands r0, r1 - cmp r0, 0 - bne _080E7A6A - ldr r0, _080E7A50 @ =gUnknown_203B0C0 - ldrb r0, [r0] - cmp r0, 0x1 - bne _080E7A5C - ldr r0, _080E7A54 @ =gUnknown_203B0C1 - ldrb r1, [r0] - ldr r2, _080E7A58 @ =gUnknown_203B0DC - movs r0, 0x1 - bl BtlController_EmitChosenMonReturnValue - b _080E7A66 - .align 2, 0 -_080E7A44: .4byte gMain -_080E7A48: .4byte BattleMainCB2 -_080E7A4C: .4byte gPaletteFade -_080E7A50: .4byte gUnknown_203B0C0 -_080E7A54: .4byte gUnknown_203B0C1 -_080E7A58: .4byte gUnknown_203B0DC -_080E7A5C: - movs r0, 0x1 - movs r1, 0x6 - movs r2, 0 - bl BtlController_EmitChosenMonReturnValue -_080E7A66: - bl WallyBufferExecCompleted -_080E7A6A: - pop {r0} - bx r0 - thumb_func_end sub_80E7A14 - - thumb_func_start sub_80E7A70 -sub_80E7A70: @ 80E7A70 - push {lr} - ldr r0, _080E7AA8 @ =gPaletteFade - ldrb r1, [r0, 0x7] - movs r0, 0x80 - ands r0, r1 - cmp r0, 0 - bne _080E7AC0 - ldr r1, _080E7AAC @ =gBattlerControllerFuncs - ldr r0, _080E7AB0 @ =gActiveBattler - ldrb r0, [r0] - lsls r0, 2 - adds r0, r1 - ldr r1, _080E7AB4 @ =sub_80E7AC4 - str r1, [r0] - bl nullsub_44 - bl FreeAllWindowBuffers - ldr r0, _080E7AB8 @ =gBattleTypeFlags - ldr r0, [r0] - movs r1, 0x10 - ands r0, r1 - cmp r0, 0 - beq _080E7ABC - bl sub_8107ECC - b _080E7AC0 - .align 2, 0 -_080E7AA8: .4byte gPaletteFade -_080E7AAC: .4byte gBattlerControllerFuncs -_080E7AB0: .4byte gActiveBattler -_080E7AB4: .4byte sub_80E7AC4 -_080E7AB8: .4byte gBattleTypeFlags -_080E7ABC: - bl sub_810AF74 -_080E7AC0: - pop {r0} - bx r0 - thumb_func_end sub_80E7A70 - - thumb_func_start sub_80E7AC4 -sub_80E7AC4: @ 80E7AC4 - push {lr} - ldr r0, _080E7B14 @ =gMain - ldr r1, [r0, 0x4] - ldr r0, _080E7B18 @ =BattleMainCB2 - cmp r1, r0 - bne _080E7B42 - ldr r0, _080E7B1C @ =gPaletteFade - ldrb r1, [r0, 0x7] - movs r0, 0x80 - ands r0, r1 - cmp r0, 0 - bne _080E7B42 - movs r0, 0x4 - bl sub_80EB2E0 - lsls r0, 24 - cmp r0, 0 - bne _080E7B34 - ldr r0, _080E7B20 @ =gSpecialVar_ItemId - ldrh r0, [r0] - cmp r0, 0xD - bne _080E7B34 - ldr r0, _080E7B24 @ =gBattleTypeFlags - ldr r0, [r0] - movs r1, 0x10 - ands r0, r1 - cmp r0, 0 - beq _080E7B34 - movs r0, 0x4 - bl sub_80EB2F4 - ldr r1, _080E7B28 @ =gBattlerControllerFuncs - ldr r0, _080E7B2C @ =gActiveBattler - ldrb r0, [r0] - lsls r0, 2 - adds r0, r1 - ldr r1, _080E7B30 @ =sub_80E8704 - str r1, [r0] - b _080E7B42 - .align 2, 0 -_080E7B14: .4byte gMain -_080E7B18: .4byte BattleMainCB2 -_080E7B1C: .4byte gPaletteFade -_080E7B20: .4byte gSpecialVar_ItemId -_080E7B24: .4byte gBattleTypeFlags -_080E7B28: .4byte gBattlerControllerFuncs -_080E7B2C: .4byte gActiveBattler -_080E7B30: .4byte sub_80E8704 -_080E7B34: - ldr r0, _080E7B48 @ =gSpecialVar_ItemId - ldrh r1, [r0] - movs r0, 0x1 - bl BtlController_EmitOneReturnValue - bl WallyBufferExecCompleted -_080E7B42: - pop {r0} - bx r0 - .align 2, 0 -_080E7B48: .4byte gSpecialVar_ItemId - thumb_func_end sub_80E7AC4 - - thumb_func_start sub_80E7B4C -sub_80E7B4C: @ 80E7B4C - push {r4-r7,lr} - ldr r4, _080E7CB0 @ =gBattleSpritesDataPtr - ldr r0, [r4] - ldr r5, _080E7CB4 @ =gActiveBattler - ldrb r2, [r5] - ldr r1, [r0, 0x4] - lsls r3, r2, 1 - adds r0, r3, r2 - lsls r0, 2 - adds r0, r1 - ldrb r1, [r0] - movs r7, 0x88 - adds r0, r7, 0 - ands r0, r1 - cmp r0, 0 - bne _080E7B80 - ldr r0, _080E7CB8 @ =gBattlerPartyIndexes - adds r0, r3, r0 - ldrh r1, [r0] - movs r0, 0x64 - muls r1, r0 - ldr r0, _080E7CBC @ =gPlayerParty - adds r1, r0 - adds r0, r2, 0 - bl sub_80F1720 -_080E7B80: - ldr r1, [r4] - ldrb r0, [r5] - movs r6, 0x2 - adds r2, r6, 0 - eors r2, r0 - ldr r1, [r1, 0x4] - lsls r3, r2, 1 - adds r0, r3, r2 - lsls r0, 2 - adds r0, r1 - ldrb r1, [r0] - adds r0, r7, 0 - ands r0, r1 - cmp r0, 0 - bne _080E7BB2 - ldr r0, _080E7CB8 @ =gBattlerPartyIndexes - adds r0, r3, r0 - ldrh r1, [r0] - movs r0, 0x64 - muls r1, r0 - ldr r0, _080E7CBC @ =gPlayerParty - adds r1, r0 - adds r0, r2, 0 - bl sub_80F1720 -_080E7BB2: - ldr r0, [r4] - ldrb r2, [r5] - ldr r3, [r0, 0x4] - lsls r0, r2, 1 - adds r0, r2 - lsls r0, 2 - adds r0, r3 - ldrb r1, [r0] - movs r4, 0x8 - adds r0, r4, 0 - ands r0, r1 - cmp r0, 0 - bne _080E7CA8 - adds r1, r6, 0 - eors r1, r2 - lsls r0, r1, 1 - adds r0, r1 - lsls r0, 2 - adds r0, r3 - ldrb r1, [r0] - adds r0, r4, 0 - ands r0, r1 - cmp r0, 0 - bne _080E7CA8 - bl IsDoubleBattle - lsls r0, 24 - cmp r0, 0 - beq _080E7C46 - ldr r0, _080E7CC0 @ =gBattleTypeFlags - ldr r0, [r0] - movs r1, 0x40 - ands r0, r1 - cmp r0, 0 - bne _080E7C46 - ldr r1, _080E7CC4 @ =gUnknown_3004FFC - ldrb r0, [r5] - eors r0, r6 - adds r0, r1 - ldrb r1, [r0] - lsls r0, r1, 4 - adds r0, r1 - lsls r0, 2 - ldr r1, _080E7CC8 @ =gSprites - adds r0, r1 - bl DestroySprite - ldr r4, _080E7CCC @ =gHealthboxSpriteIds - ldrb r0, [r5] - adds r1, r6, 0 - eors r1, r0 - adds r0, r1, r4 - ldrb r0, [r0] - ldr r2, _080E7CB8 @ =gBattlerPartyIndexes - lsls r1, 1 - adds r1, r2 - ldrh r2, [r1] - movs r1, 0x64 - muls r1, r2 - ldr r2, _080E7CBC @ =gPlayerParty - adds r1, r2 - movs r2, 0 - bl UpdateHealthboxAttribute - ldrb r0, [r5] - eors r0, r6 - bl sub_804BD94 - ldrb r0, [r5] - eors r0, r6 - adds r0, r4 - ldrb r0, [r0] - bl SetHealthboxSpriteVisible -_080E7C46: - ldr r1, _080E7CC4 @ =gUnknown_3004FFC - ldr r4, _080E7CB4 @ =gActiveBattler - ldrb r0, [r4] - adds r0, r1 - ldrb r1, [r0] - lsls r0, r1, 4 - adds r0, r1 - lsls r0, 2 - ldr r1, _080E7CC8 @ =gSprites - adds r0, r1 - bl DestroySprite - ldr r5, _080E7CCC @ =gHealthboxSpriteIds - ldrb r1, [r4] - adds r0, r1, r5 - ldrb r0, [r0] - ldr r2, _080E7CB8 @ =gBattlerPartyIndexes - lsls r1, 1 - adds r1, r2 - ldrh r2, [r1] - movs r1, 0x64 - muls r1, r2 - ldr r2, _080E7CBC @ =gPlayerParty - adds r1, r2 - movs r2, 0 - bl UpdateHealthboxAttribute - ldrb r0, [r4] - bl sub_804BD94 - ldrb r0, [r4] - adds r0, r5 - ldrb r0, [r0] - bl SetHealthboxSpriteVisible - ldr r0, _080E7CB0 @ =gBattleSpritesDataPtr - ldr r0, [r0] - ldr r2, [r0, 0x8] - ldrb r1, [r2, 0x9] - movs r0, 0x2 - negs r0, r0 - ands r0, r1 - strb r0, [r2, 0x9] - ldr r1, _080E7CD0 @ =gBattlerControllerFuncs - ldrb r0, [r4] - lsls r0, 2 - adds r0, r1 - ldr r1, _080E7CD4 @ =sub_80E7CD8 - str r1, [r0] -_080E7CA8: - pop {r4-r7} - pop {r0} - bx r0 - .align 2, 0 -_080E7CB0: .4byte gBattleSpritesDataPtr -_080E7CB4: .4byte gActiveBattler -_080E7CB8: .4byte gBattlerPartyIndexes -_080E7CBC: .4byte gPlayerParty -_080E7CC0: .4byte gBattleTypeFlags -_080E7CC4: .4byte gUnknown_3004FFC -_080E7CC8: .4byte gSprites -_080E7CCC: .4byte gHealthboxSpriteIds -_080E7CD0: .4byte gBattlerControllerFuncs -_080E7CD4: .4byte sub_80E7CD8 - thumb_func_end sub_80E7B4C - - thumb_func_start sub_80E7CD8 -sub_80E7CD8: @ 80E7CD8 - push {r4-r7,lr} - mov r7, r8 - push {r7} - movs r4, 0 - ldr r2, _080E7DD8 @ =gSprites - ldr r0, _080E7DDC @ =gHealthboxSpriteIds - ldr r1, _080E7DE0 @ =gActiveBattler - mov r8, r1 - ldrb r3, [r1] - adds r0, r3, r0 - ldrb r1, [r0] - lsls r0, r1, 4 - adds r0, r1 - lsls r0, 2 - adds r2, 0x1C - adds r0, r2 - ldr r1, [r0] - ldr r0, _080E7DE4 @ =SpriteCallbackDummy - cmp r1, r0 - bne _080E7D02 - movs r4, 0x1 -_080E7D02: - cmp r4, 0 - beq _080E7DCE - ldr r7, _080E7DE8 @ =gBattleSpritesDataPtr - ldr r0, [r7] - ldr r4, [r0, 0x4] - lsls r0, r3, 1 - adds r0, r3 - lsls r0, 2 - adds r2, r0, r4 - ldrb r1, [r2, 0x1] - movs r5, 0x1 - adds r0, r5, 0 - ands r0, r1 - cmp r0, 0 - beq _080E7DCE - movs r6, 0x2 - adds r1, r6, 0 - eors r1, r3 - lsls r0, r1, 1 - adds r0, r1 - lsls r0, 2 - adds r0, r4 - ldrb r1, [r0, 0x1] - adds r0, r5, 0 - ands r0, r1 - cmp r0, 0 - beq _080E7DCE - ldrb r1, [r2] - movs r3, 0x7F - adds r0, r3, 0 - ands r0, r1 - strb r0, [r2] - ldr r0, [r7] - mov r1, r8 - ldrb r2, [r1] - ldr r0, [r0, 0x4] - lsls r1, r2, 1 - adds r1, r2 - lsls r1, 2 - adds r1, r0 - ldrb r2, [r1, 0x1] - movs r4, 0x2 - negs r4, r4 - adds r0, r4, 0 - ands r0, r2 - strb r0, [r1, 0x1] - ldr r2, [r7] - mov r1, r8 - ldrb r0, [r1] - adds r1, r6, 0 - eors r1, r0 - ldr r2, [r2, 0x4] - lsls r0, r1, 1 - adds r0, r1 - lsls r0, 2 - adds r0, r2 - ldrb r1, [r0] - ands r3, r1 - strb r3, [r0] - ldr r2, [r7] - mov r1, r8 - ldrb r0, [r1] - adds r1, r6, 0 - eors r1, r0 - ldr r2, [r2, 0x4] - lsls r0, r1, 1 - adds r0, r1 - lsls r0, 2 - adds r0, r2 - ldrb r1, [r0, 0x1] - ands r4, r1 - strb r4, [r0, 0x1] - ldr r4, _080E7DEC @ =0x000027f9 - adds r0, r4, 0 - bl FreeSpriteTilesByTag - adds r0, r4, 0 - bl FreeSpritePaletteByTag - ldr r0, _080E7DF0 @ =c3_0802FDF4 - movs r1, 0xA - bl CreateTask - ldr r2, _080E7DF4 @ =gBattlerPartyIndexes - mov r0, r8 - ldrb r1, [r0] - lsls r0, r1, 1 - adds r0, r2 - ldrh r2, [r0] - movs r0, 0x64 - muls r0, r2 - ldr r2, _080E7DF8 @ =gPlayerParty - adds r0, r2 - bl HandleLowHpMusicChange - ldr r1, _080E7DFC @ =gBattlerControllerFuncs - mov r2, r8 - ldrb r0, [r2] - lsls r0, 2 - adds r0, r1 - ldr r1, _080E7E00 @ =sub_80E835C - str r1, [r0] -_080E7DCE: - pop {r3} - mov r8, r3 - pop {r4-r7} - pop {r0} - bx r0 - .align 2, 0 -_080E7DD8: .4byte gSprites -_080E7DDC: .4byte gHealthboxSpriteIds -_080E7DE0: .4byte gActiveBattler -_080E7DE4: .4byte SpriteCallbackDummy -_080E7DE8: .4byte gBattleSpritesDataPtr -_080E7DEC: .4byte 0x000027f9 -_080E7DF0: .4byte c3_0802FDF4 -_080E7DF4: .4byte gBattlerPartyIndexes -_080E7DF8: .4byte gPlayerParty -_080E7DFC: .4byte gBattlerControllerFuncs -_080E7E00: .4byte sub_80E835C - thumb_func_end sub_80E7CD8 - - thumb_func_start sub_80E7E04 -sub_80E7E04: @ 80E7E04 - push {r4-r7,lr} - mov r7, r10 - mov r6, r9 - mov r5, r8 - push {r5-r7} - sub sp, 0x10 - lsls r0, 24 - lsrs r0, 24 - mov r9, r0 - ldr r1, _080E7F04 @ =gTasks - lsls r0, 2 - add r0, r9 - lsls r0, 3 - adds r0, r1 - mov r8, r0 - ldrb r0, [r0, 0x8] - mov r10, r0 - mov r1, r8 - ldrb r7, [r1, 0xC] - str r7, [sp, 0x8] - ldrh r2, [r1, 0xA] - str r2, [sp, 0xC] - bl IsDoubleBattle - lsls r0, 24 - lsrs r0, 24 - cmp r0, 0x1 - beq _080E7E4A - ldr r1, _080E7F08 @ =gBattlerPartyIndexes - lsls r0, r7, 1 - adds r0, r1 - ldrh r0, [r0] - cmp r10, r0 - bne _080E7E4A - b _080E7F60 -_080E7E4A: - movs r0, 0x64 - mov r1, r10 - muls r1, r0 - ldr r0, _080E7F0C @ =gPlayerParty - adds r6, r1, r0 - adds r0, r6, 0 - movs r1, 0xB - bl GetMonData - adds r5, r0, 0 - lsls r5, 16 - lsrs r5, 16 - adds r0, r6, 0 - movs r1, 0x38 - bl GetMonData - adds r4, r0, 0 - lsls r4, 24 - lsrs r4, 24 - adds r0, r6, 0 - movs r1, 0x19 - bl GetMonData - str r0, [sp, 0x4] - ldr r3, _080E7F10 @ =gExperienceTables - adds r4, 0x1 - lsls r4, 2 - ldr r2, _080E7F14 @ =gBaseStats - lsls r1, r5, 3 - subs r1, r5 - lsls r1, 2 - adds r1, r2 - ldrb r2, [r1, 0x13] - movs r1, 0xCA - lsls r1, 1 - muls r1, r2 - adds r4, r1 - adds r4, r3 - ldr r2, [r4] - str r2, [sp] - ldr r3, [sp, 0xC] - lsls r1, r3, 16 - asrs r1, 16 - adds r0, r1 - cmp r0, r2 - bcc _080E7F38 - adds r0, r6, 0 - movs r1, 0x19 - mov r2, sp - bl SetMonData - adds r0, r6, 0 - bl CalculateMonStats - ldr r2, [sp] - add r0, sp, 0x4 - ldrh r0, [r0] - subs r2, r0 - ldr r0, [sp, 0xC] - subs r2, r0, r2 - ldr r4, _080E7F18 @ =gActiveBattler - ldrb r5, [r4] - strb r7, [r4] - lsls r2, 16 - lsrs r2, 16 - movs r0, 0x1 - movs r1, 0xB - bl BtlController_EmitTwoReturnValues - strb r5, [r4] - bl IsDoubleBattle - lsls r0, 24 - lsrs r0, 24 - cmp r0, 0x1 - bne _080E7F20 - ldr r2, _080E7F08 @ =gBattlerPartyIndexes - lsls r0, r7, 1 - adds r0, r2 - mov r1, r10 - ldrh r0, [r0] - cmp r1, r0 - beq _080E7EFE - movs r0, 0x2 - eors r7, r0 - lsls r0, r7, 1 - adds r0, r2 - ldrh r0, [r0] - cmp r1, r0 - bne _080E7F20 -_080E7EFE: - ldr r0, _080E7F1C @ =sub_80E8190 - b _080E7F62 - .align 2, 0 -_080E7F04: .4byte gTasks -_080E7F08: .4byte gBattlerPartyIndexes -_080E7F0C: .4byte gPlayerParty -_080E7F10: .4byte gExperienceTables -_080E7F14: .4byte gBaseStats -_080E7F18: .4byte gActiveBattler -_080E7F1C: .4byte sub_80E8190 -_080E7F20: - ldr r0, _080E7F30 @ =gTasks - mov r2, r9 - lsls r1, r2, 2 - add r1, r9 - lsls r1, 3 - adds r1, r0 - ldr r0, _080E7F34 @ =sub_80E82A8 - b _080E7F64 - .align 2, 0 -_080E7F30: .4byte gTasks -_080E7F34: .4byte sub_80E82A8 -_080E7F38: - str r0, [sp, 0x4] - add r2, sp, 0x4 - adds r0, r6, 0 - movs r1, 0x19 - bl SetMonData - ldr r1, _080E7F58 @ =gBattlerControllerFuncs - ldr r3, [sp, 0x8] - lsls r0, r3, 2 - adds r0, r1 - ldr r1, _080E7F5C @ =sub_80E8930 - str r1, [r0] - mov r0, r9 - bl DestroyTask - b _080E7F66 - .align 2, 0 -_080E7F58: .4byte gBattlerControllerFuncs -_080E7F5C: .4byte sub_80E8930 -_080E7F60: - ldr r0, _080E7F78 @ =sub_80E7F7C -_080E7F62: - mov r1, r8 -_080E7F64: - str r0, [r1] -_080E7F66: - add sp, 0x10 - pop {r3-r5} - mov r8, r3 - mov r9, r4 - mov r10, r5 - pop {r4-r7} - pop {r0} - bx r0 - .align 2, 0 -_080E7F78: .4byte sub_80E7F7C - thumb_func_end sub_80E7E04 - - thumb_func_start sub_80E7F7C -sub_80E7F7C: @ 80E7F7C - push {r4-r6,lr} - mov r6, r10 - mov r5, r9 - mov r4, r8 - push {r4-r6} - sub sp, 0x4 - lsls r0, 24 - lsrs r0, 24 - ldr r1, _080E8034 @ =gTasks - lsls r2, r0, 2 - mov r8, r2 - add r8, r0 - mov r0, r8 - lsls r0, 3 - mov r8, r0 - add r8, r1 - mov r2, r8 - ldrb r1, [r2, 0x8] - movs r0, 0xA - ldrsh r2, [r2, r0] - mov r9, r2 - mov r2, r8 - ldrb r2, [r2, 0xC] - mov r10, r2 - movs r0, 0x64 - adds r6, r1, 0 - muls r6, r0 - ldr r0, _080E8038 @ =gPlayerParty - adds r6, r0 - adds r0, r6, 0 - movs r1, 0x38 - bl GetMonData - adds r4, r0, 0 - lsls r4, 24 - lsrs r4, 24 - adds r0, r6, 0 - movs r1, 0xB - bl GetMonData - adds r5, r0, 0 - lsls r5, 16 - lsrs r5, 16 - adds r0, r6, 0 - movs r1, 0x19 - bl GetMonData - adds r3, r0, 0 - ldr r6, _080E803C @ =gExperienceTables - lsls r1, r4, 2 - ldr r2, _080E8040 @ =gBaseStats - lsls r0, r5, 3 - subs r0, r5 - lsls r0, 2 - adds r0, r2 - ldrb r2, [r0, 0x13] - movs r0, 0xCA - lsls r0, 1 - muls r0, r2 - adds r1, r0 - adds r1, r6 - ldr r1, [r1] - subs r3, r1 - adds r4, 0x1 - lsls r4, 2 - adds r4, r0 - adds r4, r6 - ldr r2, [r4] - subs r2, r1 - ldr r0, _080E8044 @ =gHealthboxSpriteIds - add r0, r10 - ldrb r1, [r0] - mov r0, r9 - negs r0, r0 - str r0, [sp] - mov r0, r10 - bl SetBattleBarStruct - movs r0, 0x1B - bl PlaySE - ldr r0, _080E8048 @ =sub_80E804C - mov r1, r8 - str r0, [r1] - add sp, 0x4 - pop {r3-r5} - mov r8, r3 - mov r9, r4 - mov r10, r5 - pop {r4-r6} - pop {r0} - bx r0 - .align 2, 0 -_080E8034: .4byte gTasks -_080E8038: .4byte gPlayerParty -_080E803C: .4byte gExperienceTables -_080E8040: .4byte gBaseStats -_080E8044: .4byte gHealthboxSpriteIds -_080E8048: .4byte sub_80E804C - thumb_func_end sub_80E7F7C - - thumb_func_start sub_80E804C -sub_80E804C: @ 80E804C - push {r4-r7,lr} - mov r7, r10 - mov r6, r9 - mov r5, r8 - push {r5-r7} - sub sp, 0x8 - lsls r0, 24 - lsrs r0, 24 - mov r8, r0 - ldr r1, _080E8078 @ =gTasks - lsls r0, 2 - add r0, r8 - lsls r0, 3 - adds r6, r0, r1 - ldrh r1, [r6, 0x1C] - movs r2, 0x1C - ldrsh r0, [r6, r2] - cmp r0, 0xC - bgt _080E807C - adds r0, r1, 0x1 - strh r0, [r6, 0x1C] - b _080E8178 - .align 2, 0 -_080E8078: .4byte gTasks -_080E807C: - ldrb r0, [r6, 0x8] - mov r9, r0 - ldrh r2, [r6, 0xA] - mov r10, r2 - ldrb r7, [r6, 0xC] - ldr r5, _080E8144 @ =gHealthboxSpriteIds - adds r5, r7, r5 - ldrb r1, [r5] - adds r0, r7, 0 - movs r2, 0x1 - movs r3, 0 - bl MoveBattleBar - adds r4, r0, 0 - lsls r4, 16 - lsrs r4, 16 - ldrb r0, [r5] - bl SetHealthboxSpriteVisible - lsls r4, 16 - asrs r4, 16 - movs r0, 0x1 - negs r0, r0 - cmp r4, r0 - bne _080E8178 - movs r0, 0x1B - bl m4aSongNumStop - movs r0, 0x64 - mov r1, r9 - muls r1, r0 - ldr r0, _080E8148 @ =gPlayerParty - adds r5, r1, r0 - adds r0, r5, 0 - movs r1, 0x38 - bl GetMonData - adds r4, r0, 0 - lsls r4, 24 - lsrs r4, 24 - adds r0, r5, 0 - movs r1, 0x19 - bl GetMonData - str r0, [sp, 0x4] - adds r0, r5, 0 - movs r1, 0xB - bl GetMonData - lsls r0, 16 - lsrs r0, 16 - ldr r3, _080E814C @ =gExperienceTables - adds r4, 0x1 - lsls r4, 2 - ldr r2, _080E8150 @ =gBaseStats - lsls r1, r0, 3 - subs r1, r0 - lsls r1, 2 - adds r1, r2 - ldrb r1, [r1, 0x13] - movs r0, 0xCA - lsls r0, 1 - muls r0, r1 - adds r4, r0 - adds r4, r3 - ldr r1, [r4] - str r1, [sp] - mov r2, r10 - lsls r0, r2, 16 - asrs r4, r0, 16 - ldr r0, [sp, 0x4] - adds r0, r4 - cmp r0, r1 - blt _080E815C - adds r0, r5, 0 - movs r1, 0x19 - mov r2, sp - bl SetMonData - adds r0, r5, 0 - bl CalculateMonStats - ldr r2, [sp] - add r0, sp, 0x4 - ldrh r0, [r0] - subs r2, r0 - subs r2, r4, r2 - ldr r4, _080E8154 @ =gActiveBattler - ldrb r5, [r4] - strb r7, [r4] - lsls r2, 16 - lsrs r2, 16 - movs r0, 0x1 - movs r1, 0xB - bl BtlController_EmitTwoReturnValues - strb r5, [r4] - ldr r0, _080E8158 @ =sub_80E8190 - str r0, [r6] - b _080E8178 - .align 2, 0 -_080E8144: .4byte gHealthboxSpriteIds -_080E8148: .4byte gPlayerParty -_080E814C: .4byte gExperienceTables -_080E8150: .4byte gBaseStats -_080E8154: .4byte gActiveBattler -_080E8158: .4byte sub_80E8190 -_080E815C: - str r0, [sp, 0x4] - add r2, sp, 0x4 - adds r0, r5, 0 - movs r1, 0x19 - bl SetMonData - ldr r1, _080E8188 @ =gBattlerControllerFuncs - lsls r0, r7, 2 - adds r0, r1 - ldr r1, _080E818C @ =sub_80E8930 - str r1, [r0] - mov r0, r8 - bl DestroyTask -_080E8178: - add sp, 0x8 - pop {r3-r5} - mov r8, r3 - mov r9, r4 - mov r10, r5 - pop {r4-r7} - pop {r0} - bx r0 - .align 2, 0 -_080E8188: .4byte gBattlerControllerFuncs -_080E818C: .4byte sub_80E8930 - thumb_func_end sub_80E804C - - thumb_func_start sub_80E8190 -sub_80E8190: @ 80E8190 - push {r4-r6,lr} - lsls r0, 24 - lsrs r5, r0, 24 - ldr r1, _080E81E4 @ =gTasks - lsls r0, r5, 2 - adds r0, r5 - lsls r0, 3 - adds r0, r1 - ldrb r4, [r0, 0xC] - ldrb r6, [r0, 0x8] - bl IsDoubleBattle - lsls r0, 24 - lsrs r0, 24 - cmp r0, 0x1 - bne _080E81C4 - ldr r1, _080E81E8 @ =gBattlerPartyIndexes - movs r0, 0x2 - adds r2, r4, 0 - eors r2, r0 - lsls r0, r2, 1 - adds r0, r1 - ldrh r0, [r0] - cmp r6, r0 - bne _080E81C4 - adds r4, r2, 0 -_080E81C4: - adds r0, r4, 0 - adds r1, r4, 0 - adds r2, r4, 0 - movs r3, 0 - bl InitAndLaunchSpecialAnimation - ldr r0, _080E81E4 @ =gTasks - lsls r1, r5, 2 - adds r1, r5 - lsls r1, 3 - adds r1, r0 - ldr r0, _080E81EC @ =sub_80E81F0 - str r0, [r1] - pop {r4-r6} - pop {r0} - bx r0 - .align 2, 0 -_080E81E4: .4byte gTasks -_080E81E8: .4byte gBattlerPartyIndexes -_080E81EC: .4byte sub_80E81F0 - thumb_func_end sub_80E8190 - - thumb_func_start sub_80E81F0 -sub_80E81F0: @ 80E81F0 - push {r4-r7,lr} - lsls r0, 24 - lsrs r6, r0, 24 - ldr r1, _080E825C @ =gTasks - lsls r0, r6, 2 - adds r0, r6 - lsls r0, 3 - adds r2, r0, r1 - ldrb r5, [r2, 0xC] - ldr r0, _080E8260 @ =gBattleSpritesDataPtr - ldr r0, [r0] - ldr r1, [r0, 0x4] - lsls r0, r5, 1 - adds r0, r5 - lsls r0, 2 - adds r0, r1 - ldrb r1, [r0] - movs r0, 0x40 - ands r0, r1 - cmp r0, 0 - bne _080E8292 - ldrb r4, [r2, 0x8] - movs r0, 0x64 - adds r1, r4, 0 - muls r1, r0 - ldr r0, _080E8264 @ =gPlayerParty - adds r7, r1, r0 - adds r0, r7, 0 - movs r1, 0x38 - bl GetMonData - bl IsDoubleBattle - lsls r0, 24 - lsrs r0, 24 - cmp r0, 0x1 - bne _080E8270 - ldr r1, _080E8268 @ =gBattlerPartyIndexes - movs r0, 0x2 - adds r2, r5, 0 - eors r2, r0 - lsls r0, r2, 1 - adds r0, r1 - ldrh r0, [r0] - cmp r4, r0 - bne _080E8270 - ldr r0, _080E826C @ =gHealthboxSpriteIds - adds r0, r2, r0 - ldrb r0, [r0] - adds r1, r7, 0 - movs r2, 0 - bl UpdateHealthboxAttribute - b _080E8284 - .align 2, 0 -_080E825C: .4byte gTasks -_080E8260: .4byte gBattleSpritesDataPtr -_080E8264: .4byte gPlayerParty -_080E8268: .4byte gBattlerPartyIndexes -_080E826C: .4byte gHealthboxSpriteIds -_080E8270: - ldr r0, _080E8298 @ =gHealthboxSpriteIds - adds r0, r5, r0 - ldrb r0, [r0] - movs r1, 0x64 - muls r1, r4 - ldr r2, _080E829C @ =gPlayerParty - adds r1, r2 - movs r2, 0 - bl UpdateHealthboxAttribute -_080E8284: - ldr r0, _080E82A0 @ =gTasks - lsls r1, r6, 2 - adds r1, r6 - lsls r1, 3 - adds r1, r0 - ldr r0, _080E82A4 @ =sub_80E82A8 - str r0, [r1] -_080E8292: - pop {r4-r7} - pop {r0} - bx r0 - .align 2, 0 -_080E8298: .4byte gHealthboxSpriteIds -_080E829C: .4byte gPlayerParty -_080E82A0: .4byte gTasks -_080E82A4: .4byte sub_80E82A8 - thumb_func_end sub_80E81F0 - - thumb_func_start sub_80E82A8 -sub_80E82A8: @ 80E82A8 - push {r4,r5,lr} - adds r5, r0, 0 - lsls r5, 24 - lsrs r5, 24 - ldr r0, _080E82E4 @ =gTasks - lsls r4, r5, 2 - adds r4, r5 - lsls r4, 3 - adds r4, r0 - ldrb r1, [r4, 0x8] - movs r0, 0x64 - muls r0, r1 - ldr r1, _080E82E8 @ =gPlayerParty - adds r0, r1 - movs r1, 0x38 - bl GetMonData - ldrb r0, [r4, 0xC] - ldr r1, _080E82EC @ =gBattlerControllerFuncs - lsls r0, 2 - adds r0, r1 - ldr r1, _080E82F0 @ =sub_80E8930 - str r1, [r0] - adds r0, r5, 0 - bl DestroyTask - pop {r4,r5} - pop {r0} - bx r0 - .align 2, 0 -_080E82E4: .4byte gTasks -_080E82E8: .4byte gPlayerParty -_080E82EC: .4byte gBattlerControllerFuncs -_080E82F0: .4byte sub_80E8930 - thumb_func_end sub_80E82A8 - - thumb_func_start sub_80E82F4 -sub_80E82F4: @ 80E82F4 - push {r4-r6,lr} - ldr r6, _080E834C @ =gSprites - ldr r5, _080E8350 @ =gBattlerSpriteIds - ldr r4, _080E8354 @ =gActiveBattler - ldrb r0, [r4] - adds r0, r5 - ldrb r1, [r0] - lsls r0, r1, 4 - adds r0, r1 - lsls r0, 2 - adds r2, r0, r6 - movs r1, 0x22 - ldrsh r0, [r2, r1] - movs r3, 0x26 - ldrsh r1, [r2, r3] - adds r0, r1 - cmp r0, 0xA0 - ble _080E8344 - ldrb r0, [r2, 0x3] - lsls r0, 26 - lsrs r0, 27 - bl FreeOamMatrix - ldrb r0, [r4] - adds r0, r5 - ldrb r1, [r0] - lsls r0, r1, 4 - adds r0, r1 - lsls r0, 2 - adds r0, r6 - bl DestroySprite - ldr r1, _080E8358 @ =gHealthboxSpriteIds - ldrb r0, [r4] - adds r0, r1 - ldrb r0, [r0] - bl SetHealthboxSpriteInvisible - bl WallyBufferExecCompleted -_080E8344: - pop {r4-r6} - pop {r0} - bx r0 - .align 2, 0 -_080E834C: .4byte gSprites -_080E8350: .4byte gBattlerSpriteIds -_080E8354: .4byte gActiveBattler -_080E8358: .4byte gHealthboxSpriteIds - thumb_func_end sub_80E82F4 - - thumb_func_start sub_80E835C -sub_80E835C: @ 80E835C - push {r4-r7,lr} - sub sp, 0x4 - ldr r1, _080E837C @ =gBattleStruct - ldr r0, [r1] - adds r0, 0x94 - ldrb r0, [r0] - adds r7, r1, 0 - cmp r0, 0x8 - bls _080E8370 - b _080E855E -_080E8370: - lsls r0, 2 - ldr r1, _080E8380 @ =_080E8384 - adds r0, r1 - ldr r0, [r0] - mov pc, r0 - .align 2, 0 -_080E837C: .4byte gBattleStruct -_080E8380: .4byte _080E8384 - .align 2, 0 -_080E8384: - .4byte _080E83A8 - .4byte _080E83F0 - .4byte _080E8408 - .4byte _080E8420 - .4byte _080E8468 - .4byte _080E8490 - .4byte _080E84D8 - .4byte _080E8500 - .4byte _080E8530 -_080E83A8: - ldr r0, _080E83EC @ =gPaletteFade - ldrb r1, [r0, 0x7] - movs r0, 0x80 - ands r0, r1 - lsls r0, 24 - lsrs r6, r0, 24 - cmp r6, 0 - beq _080E83BA - b _080E855E -_080E83BA: - ldr r4, [r7] - adds r5, r4, 0 - adds r5, 0x95 - adds r4, 0x97 - movs r0, 0x1 - bl GetBattlerAtPosition - adds r2, r0, 0 - lsls r2, 24 - lsrs r2, 24 - adds r0, r5, 0 - adds r1, r4, 0 - bl sub_80EEFC8 - movs r0, 0x82 - negs r0, r0 - str r6, [sp] - movs r1, 0x4 - movs r2, 0 - movs r3, 0x8 - bl BeginNormalPaletteFade - ldr r1, [r7] - b _080E8522 - .align 2, 0 -_080E83EC: .4byte gPaletteFade -_080E83F0: - ldr r0, _080E8404 @ =gPaletteFade - ldrb r1, [r0, 0x7] - movs r0, 0x80 - ands r0, r1 - cmp r0, 0 - beq _080E83FE - b _080E855E -_080E83FE: - bl sub_80EB30C - b _080E851E - .align 2, 0 -_080E8404: .4byte gPaletteFade -_080E8408: - ldr r0, _080E8418 @ =gUnknown_83FDAE2 - bl BattleStringExpandPlaceholdersToDisplayedString - ldr r0, _080E841C @ =gDisplayedStringBattle - movs r1, 0x18 - bl BattlePutTextOnWindow - b _080E851E - .align 2, 0 -_080E8418: .4byte gUnknown_83FDAE2 -_080E841C: .4byte gDisplayedStringBattle -_080E8420: - movs r0, 0x18 - bl IsTextPrinterActive - lsls r0, 16 - lsrs r3, r0, 16 - cmp r3, 0 - beq _080E8430 - b _080E855E -_080E8430: - ldr r2, _080E8460 @ =gBitTable - ldr r4, _080E8464 @ =gBattleStruct - ldr r0, [r4] - adds r1, r0, 0 - adds r1, 0x95 - ldrb r1, [r1] - lsls r1, 2 - adds r1, r2 - adds r0, 0x97 - ldrb r0, [r0] - lsls r0, 2 - adds r0, r2 - ldr r1, [r1] - ldr r0, [r0] - orrs r1, r0 - lsls r0, r1, 16 - str r3, [sp] - movs r1, 0x4 - movs r2, 0x8 - movs r3, 0 - bl BeginNormalPaletteFade - ldr r1, [r4] - b _080E8522 - .align 2, 0 -_080E8460: .4byte gBitTable -_080E8464: .4byte gBattleStruct -_080E8468: - ldr r0, _080E8484 @ =gPaletteFade - ldrb r1, [r0, 0x7] - movs r0, 0x80 - ands r0, r1 - cmp r0, 0 - bne _080E855E - ldr r0, _080E8488 @ =gUnknown_83FDB92 - bl BattleStringExpandPlaceholdersToDisplayedString - ldr r0, _080E848C @ =gDisplayedStringBattle - movs r1, 0x18 - bl BattlePutTextOnWindow - b _080E851E - .align 2, 0 -_080E8484: .4byte gPaletteFade -_080E8488: .4byte gUnknown_83FDB92 -_080E848C: .4byte gDisplayedStringBattle -_080E8490: - movs r0, 0x18 - bl IsTextPrinterActive - lsls r0, 16 - lsrs r3, r0, 16 - cmp r3, 0 - bne _080E855E - ldr r2, _080E84D0 @ =gBitTable - ldr r4, _080E84D4 @ =gBattleStruct - ldr r0, [r4] - adds r1, r0, 0 - adds r1, 0x95 - ldrb r1, [r1] - lsls r1, 2 - adds r1, r2 - adds r0, 0x97 - ldrb r0, [r0] - lsls r0, 2 - adds r0, r2 - ldr r1, [r1] - ldr r0, [r0] - orrs r1, r0 - lsls r0, r1, 16 - str r3, [sp] - movs r1, 0x4 - movs r2, 0 - movs r3, 0x8 - bl BeginNormalPaletteFade - ldr r1, [r4] - b _080E8522 - .align 2, 0 -_080E84D0: .4byte gBitTable -_080E84D4: .4byte gBattleStruct -_080E84D8: - ldr r0, _080E84F4 @ =gPaletteFade - ldrb r1, [r0, 0x7] - movs r0, 0x80 - ands r0, r1 - cmp r0, 0 - bne _080E855E - ldr r0, _080E84F8 @ =gUnknown_83FDBEF - bl BattleStringExpandPlaceholdersToDisplayedString - ldr r0, _080E84FC @ =gDisplayedStringBattle - movs r1, 0x18 - bl BattlePutTextOnWindow - b _080E851E - .align 2, 0 -_080E84F4: .4byte gPaletteFade -_080E84F8: .4byte gUnknown_83FDBEF -_080E84FC: .4byte gDisplayedStringBattle -_080E8500: - movs r0, 0x18 - bl IsTextPrinterActive - lsls r0, 16 - lsrs r1, r0, 16 - cmp r1, 0 - bne _080E855E - movs r0, 0x82 - negs r0, r0 - str r1, [sp] - movs r1, 0x4 - movs r2, 0x8 - movs r3, 0 - bl BeginNormalPaletteFade -_080E851E: - ldr r0, _080E852C @ =gBattleStruct - ldr r1, [r0] -_080E8522: - adds r1, 0x94 - ldrb r0, [r1] - adds r0, 0x1 - strb r0, [r1] - b _080E855E - .align 2, 0 -_080E852C: .4byte gBattleStruct -_080E8530: - ldr r0, _080E8568 @ =gPaletteFade - ldrb r1, [r0, 0x7] - movs r0, 0x80 - ands r0, r1 - lsls r0, 24 - lsrs r4, r0, 24 - cmp r4, 0 - bne _080E855E - movs r0, 0x1 - bl GetBattlerAtPosition - lsls r0, 24 - lsrs r0, 24 - bl sub_80EF0E0 - bl sub_80EB524 - ldr r0, _080E856C @ =gBattleStruct - ldr r0, [r0] - adds r0, 0x94 - strb r4, [r0] - bl WallyBufferExecCompleted -_080E855E: - add sp, 0x4 - pop {r4-r7} - pop {r0} - bx r0 - .align 2, 0 -_080E8568: .4byte gPaletteFade -_080E856C: .4byte gBattleStruct - thumb_func_end sub_80E835C - - thumb_func_start sub_80E8570 -sub_80E8570: @ 80E8570 - push {lr} - ldr r0, _080E8580 @ =gUnknown_83FDC58 - movs r1, 0x1 - bl sub_80E85D4 - pop {r0} - bx r0 - .align 2, 0 -_080E8580: .4byte gUnknown_83FDC58 - thumb_func_end sub_80E8570 - - thumb_func_start sub_80E8584 -sub_80E8584: @ 80E8584 - push {lr} - ldr r0, _080E8594 @ =gUnknown_83FDC95 - movs r1, 0x40 - bl sub_80E85D4 - pop {r0} - bx r0 - .align 2, 0 -_080E8594: .4byte gUnknown_83FDC95 - thumb_func_end sub_80E8584 - - thumb_func_start sub_80E8598 -sub_80E8598: @ 80E8598 - push {lr} - ldr r0, _080E85A8 @ =gUnknown_83FDD23 - movs r1, 0x1 - bl sub_80E85D4 - pop {r0} - bx r0 - .align 2, 0 -_080E85A8: .4byte gUnknown_83FDD23 - thumb_func_end sub_80E8598 - - thumb_func_start sub_80E85AC -sub_80E85AC: @ 80E85AC - push {lr} - ldr r0, _080E85BC @ =gUnknown_83FDD64 - movs r1, 0x40 - bl sub_80E85D4 - pop {r0} - bx r0 - .align 2, 0 -_080E85BC: .4byte gUnknown_83FDD64 - thumb_func_end sub_80E85AC - - thumb_func_start sub_80E85C0 -sub_80E85C0: @ 80E85C0 - push {lr} - ldr r0, _080E85D0 @ =gUnknown_83FDDEB - movs r1, 0x40 - bl sub_80E85D4 - pop {r0} - bx r0 - .align 2, 0 -_080E85D0: .4byte gUnknown_83FDDEB - thumb_func_end sub_80E85C0 - - thumb_func_start sub_80E85D4 -sub_80E85D4: @ 80E85D4 - push {r4,r5,lr} - sub sp, 0x4 - adds r2, r0, 0 - lsls r1, 24 - lsrs r4, r1, 24 - ldr r1, _080E85F8 @ =gBattleStruct - ldr r0, [r1] - adds r0, 0x94 - ldrb r0, [r0] - adds r5, r1, 0 - cmp r0, 0x5 - bls _080E85EE - b _080E86F2 -_080E85EE: - lsls r0, 2 - ldr r1, _080E85FC @ =_080E8600 - adds r0, r1 - ldr r0, [r0] - mov pc, r0 - .align 2, 0 -_080E85F8: .4byte gBattleStruct -_080E85FC: .4byte _080E8600 - .align 2, 0 -_080E8600: - .4byte _080E8618 - .4byte _080E8634 - .4byte _080E865A - .4byte _080E8670 - .4byte _080E8684 - .4byte _080E86B4 -_080E8618: - movs r0, 0 - bl IsTextPrinterActive - lsls r0, 16 - cmp r0, 0 - bne _080E86F2 - ldr r1, _080E8630 @ =gBattleStruct - ldr r0, [r1] - adds r0, 0x97 - strb r4, [r0] - ldr r1, [r1] - b _080E86A6 - .align 2, 0 -_080E8630: .4byte gBattleStruct -_080E8634: - ldr r1, [r5] - adds r1, 0x97 - ldrb r0, [r1] - subs r0, 0x1 - strb r0, [r1] - lsls r0, 24 - lsrs r1, r0, 24 - cmp r1, 0 - bne _080E86F2 - movs r0, 0x82 - negs r0, r0 - str r1, [sp] - movs r1, 0x4 - movs r2, 0 - movs r3, 0x8 - bl BeginNormalPaletteFade - ldr r1, [r5] - b _080E86A6 -_080E865A: - ldr r0, _080E866C @ =gPaletteFade - ldrb r1, [r0, 0x7] - movs r0, 0x80 - ands r0, r1 - cmp r0, 0 - bne _080E86F2 - bl sub_80EB30C - b _080E86A2 - .align 2, 0 -_080E866C: .4byte gPaletteFade -_080E8670: - adds r0, r2, 0 - bl BattleStringExpandPlaceholdersToDisplayedString - ldr r0, _080E8680 @ =gDisplayedStringBattle - movs r1, 0x18 - bl BattlePutTextOnWindow - b _080E86A2 - .align 2, 0 -_080E8680: .4byte gDisplayedStringBattle -_080E8684: - movs r0, 0x18 - bl IsTextPrinterActive - lsls r0, 16 - lsrs r1, r0, 16 - cmp r1, 0 - bne _080E86F2 - movs r0, 0x82 - negs r0, r0 - str r1, [sp] - movs r1, 0x4 - movs r2, 0x8 - movs r3, 0 - bl BeginNormalPaletteFade -_080E86A2: - ldr r0, _080E86B0 @ =gBattleStruct - ldr r1, [r0] -_080E86A6: - adds r1, 0x94 - ldrb r0, [r1] - adds r0, 0x1 - strb r0, [r1] - b _080E86F2 - .align 2, 0 -_080E86B0: .4byte gBattleStruct -_080E86B4: - ldr r0, _080E86D8 @ =gPaletteFade - ldrb r1, [r0, 0x7] - movs r0, 0x80 - ands r0, r1 - cmp r0, 0 - bne _080E86F2 - bl sub_80EB524 - ldr r0, _080E86DC @ =gActiveBattler - ldrb r0, [r0] - bl GetBattlerSide - lsls r0, 24 - cmp r0, 0 - bne _080E86E0 - bl WallyBufferExecCompleted - b _080E86E4 - .align 2, 0 -_080E86D8: .4byte gPaletteFade -_080E86DC: .4byte gActiveBattler -_080E86E0: - bl OpponentBufferExecCompleted -_080E86E4: - ldr r0, _080E86FC @ =gBattleCommunication - movs r1, 0 - strb r1, [r0, 0x7] - ldr r0, _080E8700 @ =gBattleStruct - ldr r0, [r0] - adds r0, 0x94 - strb r1, [r0] -_080E86F2: - add sp, 0x4 - pop {r4,r5} - pop {r0} - bx r0 - .align 2, 0 -_080E86FC: .4byte gBattleCommunication -_080E8700: .4byte gBattleStruct - thumb_func_end sub_80E85D4 - - thumb_func_start sub_80E8704 -sub_80E8704: @ 80E8704 - push {r4,r5,lr} - sub sp, 0x4 - ldr r1, _080E8724 @ =gBattleStruct - ldr r0, [r1] - adds r0, 0x94 - ldrb r0, [r0] - adds r5, r1, 0 - cmp r0, 0x6 - bls _080E8718 - b _080E88AA -_080E8718: - lsls r0, 2 - ldr r1, _080E8728 @ =_080E872C - adds r0, r1 - ldr r0, [r0] - mov pc, r0 - .align 2, 0 -_080E8724: .4byte gBattleStruct -_080E8728: .4byte _080E872C - .align 2, 0 -_080E872C: - .4byte _080E8748 - .4byte _080E8788 - .4byte _080E87D0 - .4byte _080E87E8 - .4byte _080E8800 - .4byte _080E8848 - .4byte _080E8880 -_080E8748: - ldr r0, _080E8780 @ =gPaletteFade - ldrb r1, [r0, 0x7] - movs r0, 0x80 - ands r0, r1 - lsls r0, 24 - lsrs r4, r0, 24 - cmp r4, 0 - beq _080E875A - b _080E88AA -_080E875A: - ldr r1, [r5] - adds r0, r1, 0 - adds r0, 0x95 - adds r1, 0x97 - ldr r2, _080E8784 @ =gActiveBattler - ldrb r2, [r2] - bl sub_80EEFC8 - movs r0, 0x82 - negs r0, r0 - str r4, [sp] - movs r1, 0x4 - movs r2, 0 - movs r3, 0x8 - bl BeginNormalPaletteFade - ldr r1, [r5] - b _080E886C - .align 2, 0 -_080E8780: .4byte gPaletteFade -_080E8784: .4byte gActiveBattler -_080E8788: - ldr r0, _080E87C8 @ =gPaletteFade - ldrb r1, [r0, 0x7] - movs r0, 0x80 - ands r0, r1 - lsls r0, 24 - lsrs r3, r0, 24 - cmp r3, 0 - beq _080E879A - b _080E88AA -_080E879A: - ldr r2, _080E87CC @ =gBitTable - ldr r0, [r5] - adds r1, r0, 0 - adds r1, 0x95 - ldrb r1, [r1] - lsls r1, 2 - adds r1, r2 - adds r0, 0x97 - ldrb r0, [r0] - lsls r0, 2 - adds r0, r2 - ldr r1, [r1] - ldr r0, [r0] - orrs r1, r0 - lsls r0, r1, 16 - str r3, [sp] - movs r1, 0x4 - movs r2, 0x8 - movs r3, 0 - bl BeginNormalPaletteFade - ldr r1, [r5] - b _080E886C - .align 2, 0 -_080E87C8: .4byte gPaletteFade -_080E87CC: .4byte gBitTable -_080E87D0: - ldr r0, _080E87E4 @ =gPaletteFade - ldrb r1, [r0, 0x7] - movs r0, 0x80 - ands r0, r1 - cmp r0, 0 - bne _080E88AA - bl sub_80EB30C - b _080E8868 - .align 2, 0 -_080E87E4: .4byte gPaletteFade -_080E87E8: - ldr r0, _080E87F8 @ =gUnknown_83FDCD2 - bl BattleStringExpandPlaceholdersToDisplayedString - ldr r0, _080E87FC @ =gDisplayedStringBattle - movs r1, 0x18 - bl BattlePutTextOnWindow - b _080E8868 - .align 2, 0 -_080E87F8: .4byte gUnknown_83FDCD2 -_080E87FC: .4byte gDisplayedStringBattle -_080E8800: - movs r0, 0x18 - bl IsTextPrinterActive - lsls r0, 16 - lsrs r3, r0, 16 - cmp r3, 0 - bne _080E88AA - ldr r2, _080E8840 @ =gBitTable - ldr r4, _080E8844 @ =gBattleStruct - ldr r0, [r4] - adds r1, r0, 0 - adds r1, 0x95 - ldrb r1, [r1] - lsls r1, 2 - adds r1, r2 - adds r0, 0x97 - ldrb r0, [r0] - lsls r0, 2 - adds r0, r2 - ldr r1, [r1] - ldr r0, [r0] - orrs r1, r0 - lsls r0, r1, 16 - str r3, [sp] - movs r1, 0x4 - movs r2, 0 - movs r3, 0x8 - bl BeginNormalPaletteFade - ldr r1, [r4] - b _080E886C - .align 2, 0 -_080E8840: .4byte gBitTable -_080E8844: .4byte gBattleStruct -_080E8848: - ldr r0, _080E8878 @ =gPaletteFade - ldrb r1, [r0, 0x7] - movs r0, 0x80 - ands r0, r1 - lsls r0, 24 - lsrs r1, r0, 24 - cmp r1, 0 - bne _080E88AA - movs r0, 0x82 - negs r0, r0 - str r1, [sp] - movs r1, 0x4 - movs r2, 0x8 - movs r3, 0 - bl BeginNormalPaletteFade -_080E8868: - ldr r0, _080E887C @ =gBattleStruct - ldr r1, [r0] -_080E886C: - adds r1, 0x94 - ldrb r0, [r1] - adds r0, 0x1 - strb r0, [r1] - b _080E88AA - .align 2, 0 -_080E8878: .4byte gPaletteFade -_080E887C: .4byte gBattleStruct -_080E8880: - ldr r0, _080E88B4 @ =gPaletteFade - ldrb r1, [r0, 0x7] - movs r0, 0x80 - ands r0, r1 - lsls r0, 24 - lsrs r4, r0, 24 - cmp r4, 0 - bne _080E88AA - bl sub_80EB524 - ldr r0, _080E88B8 @ =gSpecialVar_ItemId - ldrh r1, [r0] - movs r0, 0x1 - bl BtlController_EmitOneReturnValue - bl WallyBufferExecCompleted - ldr r0, _080E88BC @ =gBattleStruct - ldr r0, [r0] - adds r0, 0x94 - strb r4, [r0] -_080E88AA: - add sp, 0x4 - pop {r4,r5} - pop {r0} - bx r0 - .align 2, 0 -_080E88B4: .4byte gPaletteFade -_080E88B8: .4byte gSpecialVar_ItemId -_080E88BC: .4byte gBattleStruct - thumb_func_end sub_80E8704 - - thumb_func_start sub_80E88C0 -sub_80E88C0: @ 80E88C0 - push {r4-r6,lr} - ldr r5, _080E8900 @ =gActiveBattler - ldrb r0, [r5] - ldr r6, _080E8904 @ =gHealthboxSpriteIds - adds r1, r0, r6 - ldrb r1, [r1] - movs r2, 0 - movs r3, 0 - bl MoveBattleBar - adds r4, r0, 0 - lsls r4, 16 - lsrs r4, 16 - ldrb r0, [r5] - adds r0, r6 - ldrb r0, [r0] - bl SetHealthboxSpriteVisible - lsls r4, 16 - asrs r1, r4, 16 - movs r0, 0x1 - negs r0, r0 - cmp r1, r0 - beq _080E8908 - ldrb r0, [r5] - adds r0, r6 - ldrb r0, [r0] - movs r2, 0 - bl UpdateHpTextInHealthbox - b _080E8922 - .align 2, 0 -_080E8900: .4byte gActiveBattler -_080E8904: .4byte gHealthboxSpriteIds -_080E8908: - ldr r2, _080E8928 @ =gBattlerPartyIndexes - ldrb r1, [r5] - lsls r0, r1, 1 - adds r0, r2 - ldrh r2, [r0] - movs r0, 0x64 - muls r0, r2 - ldr r2, _080E892C @ =gPlayerParty - adds r0, r2 - bl HandleLowHpMusicChange - bl WallyBufferExecCompleted -_080E8922: - pop {r4-r6} - pop {r0} - bx r0 - .align 2, 0 -_080E8928: .4byte gBattlerPartyIndexes -_080E892C: .4byte gPlayerParty - thumb_func_end sub_80E88C0 - - thumb_func_start sub_80E8930 -sub_80E8930: @ 80E8930 - push {lr} - movs r0, 0 - bl IsTextPrinterActive - lsls r0, 16 - cmp r0, 0 - bne _080E8942 - bl WallyBufferExecCompleted -_080E8942: - pop {r0} - bx r0 - thumb_func_end sub_80E8930 - - thumb_func_start DoHitAnimBlinkSpriteEffect_3 -DoHitAnimBlinkSpriteEffect_3: @ 80E8948 - push {r4,lr} - ldr r1, _080E8984 @ =gBattlerSpriteIds - ldr r0, _080E8988 @ =gActiveBattler - ldrb r0, [r0] - adds r0, r1 - ldrb r1, [r0] - ldr r2, _080E898C @ =gSprites - lsls r0, r1, 4 - adds r0, r1 - lsls r0, 2 - adds r4, r0, r2 - movs r1, 0x30 - ldrsh r0, [r4, r1] - cmp r0, 0x20 - bne _080E8994 - movs r3, 0 - movs r0, 0 - strh r0, [r4, 0x30] - adds r2, r4, 0 - adds r2, 0x3E - ldrb r1, [r2] - subs r0, 0x5 - ands r0, r1 - strb r0, [r2] - ldr r0, _080E8990 @ =gDoingBattleAnim - strb r3, [r0] - bl WallyBufferExecCompleted - b _080E89BE - .align 2, 0 -_080E8984: .4byte gBattlerSpriteIds -_080E8988: .4byte gActiveBattler -_080E898C: .4byte gSprites -_080E8990: .4byte gDoingBattleAnim -_080E8994: - ldrh r0, [r4, 0x30] - movs r1, 0x3 - ands r0, r1 - cmp r0, 0 - bne _080E89B8 - adds r3, r4, 0 - adds r3, 0x3E - ldrb r2, [r3] - lsls r0, r2, 29 - lsrs r0, 31 - movs r1, 0x1 - eors r1, r0 - lsls r1, 2 - movs r0, 0x5 - negs r0, r0 - ands r0, r2 - orrs r0, r1 - strb r0, [r3] -_080E89B8: - ldrh r0, [r4, 0x30] - adds r0, 0x1 - strh r0, [r4, 0x30] -_080E89BE: - pop {r4} - pop {r0} - bx r0 - thumb_func_end DoHitAnimBlinkSpriteEffect_3 - - thumb_func_start sub_80E89C4 -sub_80E89C4: @ 80E89C4 - push {r4-r6,lr} - ldr r0, _080E8A20 @ =gBattleSpritesDataPtr - ldr r0, [r0] - ldr r6, _080E8A24 @ =gActiveBattler - ldrb r2, [r6] - ldr r1, [r0, 0x4] - lsls r0, r2, 1 - adds r0, r2 - lsls r0, 2 - adds r0, r1 - ldrb r1, [r0] - movs r0, 0x40 - ands r0, r1 - cmp r0, 0 - bne _080E8A18 - ldr r5, _080E8A28 @ =gBattlerSpriteIds - adds r0, r2, r5 - ldrb r1, [r0] - lsls r0, r1, 4 - adds r0, r1 - lsls r0, 2 - ldr r4, _080E8A2C @ =gSprites - adds r0, r4 - bl FreeSpriteOamMatrix - ldrb r0, [r6] - adds r0, r5 - ldrb r1, [r0] - lsls r0, r1, 4 - adds r0, r1 - lsls r0, 2 - adds r0, r4 - bl DestroySprite - ldr r1, _080E8A30 @ =gHealthboxSpriteIds - ldrb r0, [r6] - adds r0, r1 - ldrb r0, [r0] - bl SetHealthboxSpriteInvisible - bl WallyBufferExecCompleted -_080E8A18: - pop {r4-r6} - pop {r0} - bx r0 - .align 2, 0 -_080E8A20: .4byte gBattleSpritesDataPtr -_080E8A24: .4byte gActiveBattler -_080E8A28: .4byte gBattlerSpriteIds -_080E8A2C: .4byte gSprites -_080E8A30: .4byte gHealthboxSpriteIds - thumb_func_end sub_80E89C4 - - thumb_func_start sub_80E8A34 -sub_80E8A34: @ 80E8A34 - push {lr} - ldr r2, _080E8A5C @ =gSprites - ldr r1, _080E8A60 @ =gBattlerSpriteIds - ldr r0, _080E8A64 @ =gActiveBattler - ldrb r0, [r0] - adds r0, r1 - ldrb r1, [r0] - lsls r0, r1, 4 - adds r0, r1 - lsls r0, 2 - adds r2, 0x1C - adds r0, r2 - ldr r1, [r0] - ldr r0, _080E8A68 @ =SpriteCallbackDummy - cmp r1, r0 - bne _080E8A58 - bl WallyBufferExecCompleted -_080E8A58: - pop {r0} - bx r0 - .align 2, 0 -_080E8A5C: .4byte gSprites -_080E8A60: .4byte gBattlerSpriteIds -_080E8A64: .4byte gActiveBattler -_080E8A68: .4byte SpriteCallbackDummy - thumb_func_end sub_80E8A34 - - thumb_func_start CompleteOnFinishedBattleAnimation_4 -CompleteOnFinishedBattleAnimation_4: @ 80E8A6C - push {lr} - ldr r0, _080E8A94 @ =gBattleSpritesDataPtr - ldr r2, [r0] - ldr r0, _080E8A98 @ =gActiveBattler - ldrb r1, [r0] - ldr r2, [r2, 0x4] - lsls r0, r1, 1 - adds r0, r1 - lsls r0, 2 - adds r0, r2 - ldrb r1, [r0] - movs r0, 0x20 - ands r0, r1 - cmp r0, 0 - bne _080E8A8E - bl WallyBufferExecCompleted -_080E8A8E: - pop {r0} - bx r0 - .align 2, 0 -_080E8A94: .4byte gBattleSpritesDataPtr -_080E8A98: .4byte gActiveBattler - thumb_func_end CompleteOnFinishedBattleAnimation_4 - - thumb_func_start WallyBufferExecCompleted -WallyBufferExecCompleted: @ 80E8A9C - push {r4,lr} - sub sp, 0x4 - ldr r1, _080E8ADC @ =gBattlerControllerFuncs - ldr r4, _080E8AE0 @ =gActiveBattler - ldrb r0, [r4] - lsls r0, 2 - adds r0, r1 - ldr r1, _080E8AE4 @ =sub_80E75EC - str r1, [r0] - ldr r0, _080E8AE8 @ =gBattleTypeFlags - ldr r0, [r0] - movs r1, 0x2 - ands r0, r1 - cmp r0, 0 - beq _080E8AF0 - bl GetMultiplayerId - mov r1, sp - strb r0, [r1] - movs r0, 0x2 - movs r1, 0x4 - mov r2, sp - bl PrepareBufferDataTransferLink - ldr r1, _080E8AEC @ =gBattleBufferA - ldrb r0, [r4] - lsls r0, 9 - adds r0, r1 - movs r1, 0x38 - strb r1, [r0] - b _080E8B02 - .align 2, 0 -_080E8ADC: .4byte gBattlerControllerFuncs -_080E8AE0: .4byte gActiveBattler -_080E8AE4: .4byte sub_80E75EC -_080E8AE8: .4byte gBattleTypeFlags -_080E8AEC: .4byte gBattleBufferA -_080E8AF0: - ldr r2, _080E8B0C @ =gBattleControllerExecFlags - ldr r1, _080E8B10 @ =gBitTable - ldrb r0, [r4] - lsls r0, 2 - adds r0, r1 - ldr r1, [r0] - ldr r0, [r2] - bics r0, r1 - str r0, [r2] -_080E8B02: - add sp, 0x4 - pop {r4} - pop {r0} - bx r0 - .align 2, 0 -_080E8B0C: .4byte gBattleControllerExecFlags -_080E8B10: .4byte gBitTable - thumb_func_end WallyBufferExecCompleted - - thumb_func_start CompleteOnFinishedStatusAnimation_4 -CompleteOnFinishedStatusAnimation_4: @ 80E8B14 - push {lr} - ldr r0, _080E8B3C @ =gBattleSpritesDataPtr - ldr r2, [r0] - ldr r0, _080E8B40 @ =gActiveBattler - ldrb r1, [r0] - ldr r2, [r2, 0x4] - lsls r0, r1, 1 - adds r0, r1 - lsls r0, 2 - adds r0, r2 - ldrb r1, [r0] - movs r0, 0x10 - ands r0, r1 - cmp r0, 0 - bne _080E8B36 - bl WallyBufferExecCompleted -_080E8B36: - pop {r0} - bx r0 - .align 2, 0 -_080E8B3C: .4byte gBattleSpritesDataPtr -_080E8B40: .4byte gActiveBattler - thumb_func_end CompleteOnFinishedStatusAnimation_4 - - thumb_func_start WallyHandleGetMonData -WallyHandleGetMonData: @ 80E8B44 - push {r4-r6,lr} - sub sp, 0x100 - movs r6, 0 - ldr r1, _080E8B70 @ =gBattleBufferA - ldr r0, _080E8B74 @ =gActiveBattler - ldrb r2, [r0] - lsls r0, r2, 9 - adds r1, 0x2 - adds r1, r0, r1 - ldrb r0, [r1] - cmp r0, 0 - bne _080E8B7C - ldr r0, _080E8B78 @ =gBattlerPartyIndexes - lsls r1, r2, 1 - adds r1, r0 - ldrb r0, [r1] - mov r1, sp - bl CopyWallyMonData - adds r6, r0, 0 - b _080E8B9E - .align 2, 0 -_080E8B70: .4byte gBattleBufferA -_080E8B74: .4byte gActiveBattler -_080E8B78: .4byte gBattlerPartyIndexes -_080E8B7C: - ldrb r4, [r1] - movs r5, 0 -_080E8B80: - movs r0, 0x1 - ands r0, r4 - cmp r0, 0 - beq _080E8B96 - lsls r0, r5, 24 - lsrs r0, 24 - mov r2, sp - adds r1, r2, r6 - bl CopyWallyMonData - adds r6, r0 -_080E8B96: - lsrs r4, 1 - adds r5, 0x1 - cmp r5, 0x5 - ble _080E8B80 -_080E8B9E: - lsls r1, r6, 16 - lsrs r1, 16 - movs r0, 0x1 - mov r2, sp - bl BtlController_EmitDataTransfer - bl WallyBufferExecCompleted - add sp, 0x100 - pop {r4-r6} - pop {r0} - bx r0 - thumb_func_end WallyHandleGetMonData - - thumb_func_start CopyWallyMonData -CopyWallyMonData: @ 80E8BB8 - push {r4-r7,lr} - mov r7, r10 - mov r6, r9 - mov r5, r8 - push {r5-r7} - sub sp, 0x90 - adds r7, r1, 0 - lsls r0, 24 - lsrs r5, r0, 24 - movs r6, 0 - ldr r2, _080E8BEC @ =gBattleBufferA - ldr r3, _080E8BF0 @ =gActiveBattler - ldrb r0, [r3] - lsls r0, 9 - adds r1, r2, 0x1 - adds r0, r1 - ldrb r0, [r0] - cmp r0, 0x3B - bls _080E8BE2 - bl _080E934E -_080E8BE2: - lsls r0, 2 - ldr r1, _080E8BF4 @ =_080E8BF8 - adds r0, r1 - ldr r0, [r0] - mov pc, r0 - .align 2, 0 -_080E8BEC: .4byte gBattleBufferA -_080E8BF0: .4byte gActiveBattler -_080E8BF4: .4byte _080E8BF8 - .align 2, 0 -_080E8BF8: - .4byte _080E8CE8 - .4byte _080E8F0C - .4byte _080E8F1C - .4byte _080E8F2C - .4byte _080E8F94 - .4byte _080E8F94 - .4byte _080E8F94 - .4byte _080E8F94 - .4byte _080E8FB0 - .4byte _080E8FEC - .4byte _080E8FEC - .4byte _080E8FEC - .4byte _080E8FEC - .4byte _080E934E - .4byte _080E934E - .4byte _080E934E - .4byte _080E934E - .4byte _080E9008 - .4byte _080E9018 - .4byte _080E9048 - .4byte _080E9058 - .4byte _080E9068 - .4byte _080E9078 - .4byte _080E9088 - .4byte _080E9098 - .4byte _080E90A8 - .4byte _080E90B8 - .4byte _080E90C8 - .4byte _080E90D8 - .4byte _080E90E8 - .4byte _080E90F8 - .4byte _080E9108 - .4byte _080E9158 - .4byte _080E9168 - .4byte _080E9178 - .4byte _080E9188 - .4byte _080E9198 - .4byte _080E91A8 - .4byte _080E91B8 - .4byte _080E91C8 - .4byte _080E91D8 - .4byte _080E920C - .4byte _080E921C - .4byte _080E922C - .4byte _080E923C - .4byte _080E924C - .4byte _080E925C - .4byte _080E926C - .4byte _080E927C - .4byte _080E929C - .4byte _080E92AC - .4byte _080E92BC - .4byte _080E92CC - .4byte _080E92DC - .4byte _080E92EC - .4byte _080E92FC - .4byte _080E930C - .4byte _080E931C - .4byte _080E932C - .4byte _080E933C -_080E8CE8: - movs r0, 0x64 - adds r4, r5, 0 - muls r4, r0 - ldr r0, _080E8EFC @ =gPlayerParty - adds r4, r0 - adds r0, r4, 0 - movs r1, 0xB - bl GetMonData - mov r1, sp - strh r0, [r1] - adds r0, r4, 0 - movs r1, 0xC - bl GetMonData - mov r1, sp - strh r0, [r1, 0x2E] - movs r6, 0 - add r0, sp, 0x24 - mov r9, r0 - movs r1, 0x3B - add r1, sp - mov r10, r1 - mov r2, sp - adds r2, 0x2B - str r2, [sp, 0x80] - mov r0, sp - adds r0, 0x2A - str r0, [sp, 0x7C] - mov r1, sp - adds r1, 0x68 - str r1, [sp, 0x8C] - adds r2, 0x5 - str r2, [sp, 0x84] - adds r0, 0x12 - str r0, [sp, 0x88] - mov r8, r4 - add r4, sp, 0xC -_080E8D34: - adds r1, r6, 0 - adds r1, 0xD - mov r0, r8 - bl GetMonData - strh r0, [r4] - adds r1, r6, 0 - adds r1, 0x11 - mov r0, r8 - bl GetMonData - mov r2, r9 - adds r1, r2, r6 - strb r0, [r1] - adds r4, 0x2 - adds r6, 0x1 - cmp r6, 0x3 - ble _080E8D34 - movs r0, 0x64 - adds r4, r5, 0 - muls r4, r0 - ldr r0, _080E8EFC @ =gPlayerParty - adds r4, r0 - adds r0, r4, 0 - movs r1, 0x15 - bl GetMonData - mov r1, r10 - strb r0, [r1] - adds r0, r4, 0 - movs r1, 0x20 - bl GetMonData - ldr r2, [sp, 0x80] - strb r0, [r2] - adds r0, r4, 0 - movs r1, 0x19 - bl GetMonData - str r0, [sp, 0x44] - adds r0, r4, 0 - movs r1, 0x27 - bl GetMonData - mov r3, sp - movs r5, 0x1F - ands r0, r5 - ldrb r2, [r3, 0x14] - movs r1, 0x20 - negs r1, r1 - ands r1, r2 - orrs r1, r0 - strb r1, [r3, 0x14] - adds r0, r4, 0 - movs r1, 0x28 - bl GetMonData - mov r3, sp - movs r6, 0x1F - ands r0, r6 - lsls r0, 5 - ldrh r2, [r3, 0x14] - ldr r1, _080E8F00 @ =0xfffffc1f - ands r1, r2 - orrs r1, r0 - strh r1, [r3, 0x14] - adds r0, r4, 0 - movs r1, 0x29 - bl GetMonData - mov r3, sp - ands r0, r5 - lsls r0, 2 - ldrb r2, [r3, 0x15] - movs r1, 0x7D - negs r1, r1 - ands r1, r2 - orrs r1, r0 - strb r1, [r3, 0x15] - adds r0, r4, 0 - movs r1, 0x2A - bl GetMonData - movs r1, 0x1F - ands r1, r0 - lsls r1, 15 - ldr r0, [sp, 0x14] - ldr r2, _080E8F04 @ =0xfff07fff - ands r0, r2 - orrs r0, r1 - str r0, [sp, 0x14] - adds r0, r4, 0 - movs r1, 0x2B - bl GetMonData - mov r3, sp - ands r0, r6 - lsls r0, 4 - ldrh r2, [r3, 0x16] - ldr r1, _080E8F08 @ =0xfffffe0f - ands r1, r2 - orrs r1, r0 - strh r1, [r3, 0x16] - adds r0, r4, 0 - movs r1, 0x2C - bl GetMonData - mov r3, sp - ands r0, r5 - lsls r0, 1 - ldrb r2, [r3, 0x17] - movs r1, 0x3F - negs r1, r1 - ands r1, r2 - orrs r1, r0 - strb r1, [r3, 0x17] - adds r0, r4, 0 - movs r1, 0 - bl GetMonData - str r0, [sp, 0x48] - adds r0, r4, 0 - movs r1, 0x37 - bl GetMonData - str r0, [sp, 0x4C] - adds r0, r4, 0 - movs r1, 0x38 - bl GetMonData - ldr r1, [sp, 0x7C] - strb r0, [r1] - adds r0, r4, 0 - movs r1, 0x39 - bl GetMonData - mov r1, sp - strh r0, [r1, 0x28] - adds r0, r4, 0 - movs r1, 0x3A - bl GetMonData - mov r1, sp - strh r0, [r1, 0x2C] - adds r0, r4, 0 - movs r1, 0x3B - bl GetMonData - mov r1, sp - strh r0, [r1, 0x2] - adds r0, r4, 0 - movs r1, 0x3C - bl GetMonData - mov r1, sp - strh r0, [r1, 0x4] - adds r0, r4, 0 - movs r1, 0x3D - bl GetMonData - mov r1, sp - strh r0, [r1, 0x6] - adds r0, r4, 0 - movs r1, 0x3E - bl GetMonData - mov r1, sp - strh r0, [r1, 0x8] - adds r0, r4, 0 - movs r1, 0x3F - bl GetMonData - mov r1, sp - strh r0, [r1, 0xA] - adds r0, r4, 0 - movs r1, 0x2D - bl GetMonData - mov r3, sp - movs r1, 0x1 - ands r0, r1 - lsls r0, 6 - ldrb r2, [r3, 0x17] - movs r1, 0x41 - negs r1, r1 - ands r1, r2 - orrs r1, r0 - strb r1, [r3, 0x17] - adds r0, r4, 0 - movs r1, 0x2E - bl GetMonData - mov r3, sp - lsls r0, 7 - ldrb r2, [r3, 0x17] - movs r1, 0x7F - ands r1, r2 - orrs r1, r0 - strb r1, [r3, 0x17] - adds r0, r4, 0 - movs r1, 0x1 - bl GetMonData - str r0, [sp, 0x54] - adds r0, r4, 0 - movs r1, 0x2 - ldr r2, [sp, 0x8C] - bl GetMonData - ldr r0, [sp, 0x84] - ldr r1, [sp, 0x8C] - bl StringCopy10 - adds r0, r4, 0 - movs r1, 0x7 - ldr r2, [sp, 0x88] - bl GetMonData - mov r2, sp - movs r6, 0 -_080E8EEC: - adds r0, r7, r6 - adds r1, r2, r6 - ldrb r1, [r1] - strb r1, [r0] - adds r6, 0x1 - cmp r6, 0x57 - bls _080E8EEC - b _080E934E - .align 2, 0 -_080E8EFC: .4byte gPlayerParty -_080E8F00: .4byte 0xfffffc1f -_080E8F04: .4byte 0xfff07fff -_080E8F08: .4byte 0xfffffe0f -_080E8F0C: - movs r0, 0x64 - muls r0, r5 - ldr r1, _080E8F18 @ =gPlayerParty - adds r0, r1 - movs r1, 0xB - b _080E9286 - .align 2, 0 -_080E8F18: .4byte gPlayerParty -_080E8F1C: - movs r0, 0x64 - muls r0, r5 - ldr r1, _080E8F28 @ =gPlayerParty - adds r0, r1 - movs r1, 0xC - b _080E9286 - .align 2, 0 -_080E8F28: .4byte gPlayerParty -_080E8F2C: - movs r6, 0 - add r2, sp, 0x58 - mov r9, r2 - add r0, sp, 0x60 - mov r10, r0 - movs r0, 0x64 - adds r1, r5, 0 - muls r1, r0 - ldr r0, _080E8F90 @ =gPlayerParty - adds r4, r1, r0 - mov r8, r9 -_080E8F42: - adds r1, r6, 0 - adds r1, 0xD - adds r0, r4, 0 - bl GetMonData - mov r1, r8 - strh r0, [r1] - adds r1, r6, 0 - adds r1, 0x11 - adds r0, r4, 0 - bl GetMonData - mov r2, r10 - adds r1, r2, r6 - strb r0, [r1] - movs r0, 0x2 - add r8, r0 - adds r6, 0x1 - cmp r6, 0x3 - ble _080E8F42 - movs r0, 0x64 - muls r0, r5 - ldr r1, _080E8F90 @ =gPlayerParty - adds r0, r1 - movs r1, 0x15 - bl GetMonData - mov r1, r9 - strb r0, [r1, 0xC] - mov r2, r9 - movs r6, 0 -_080E8F80: - adds r0, r7, r6 - adds r1, r2, r6 - ldrb r1, [r1] - strb r1, [r0] - adds r6, 0x1 - cmp r6, 0xF - bls _080E8F80 - b _080E934E - .align 2, 0 -_080E8F90: .4byte gPlayerParty -_080E8F94: - movs r0, 0x64 - muls r0, r5 - ldr r1, _080E8FAC @ =gPlayerParty - adds r0, r1 - ldrb r1, [r3] - lsls r1, 9 - adds r2, 0x1 - adds r1, r2 - ldrb r1, [r1] - adds r1, 0x9 - b _080E9286 - .align 2, 0 -_080E8FAC: .4byte gPlayerParty -_080E8FB0: - movs r6, 0 - movs r0, 0x64 - adds r4, r5, 0 - muls r4, r0 - ldr r2, _080E8FE8 @ =gPlayerParty - mov r8, r2 -_080E8FBC: - adds r1, r6, 0 - adds r1, 0x11 - mov r2, r8 - adds r0, r4, r2 - bl GetMonData - adds r1, r7, r6 - strb r0, [r1] - adds r6, 0x1 - cmp r6, 0x3 - ble _080E8FBC - movs r0, 0x64 - muls r0, r5 - ldr r1, _080E8FE8 @ =gPlayerParty - adds r0, r1 - movs r1, 0x15 - bl GetMonData - adds r1, r7, r6 - strb r0, [r1] - adds r6, 0x1 - b _080E934E - .align 2, 0 -_080E8FE8: .4byte gPlayerParty -_080E8FEC: - movs r0, 0x64 - muls r0, r5 - ldr r1, _080E9004 @ =gPlayerParty - adds r0, r1 - ldrb r1, [r3] - lsls r1, 9 - adds r2, 0x1 - adds r1, r2 - ldrb r1, [r1] - adds r1, 0x8 - b _080E9346 - .align 2, 0 -_080E9004: .4byte gPlayerParty -_080E9008: - movs r0, 0x64 - muls r0, r5 - ldr r1, _080E9014 @ =gPlayerParty - adds r0, r1 - movs r1, 0x1 - b _080E9022 - .align 2, 0 -_080E9014: .4byte gPlayerParty -_080E9018: - movs r0, 0x64 - muls r0, r5 - ldr r1, _080E9044 @ =gPlayerParty - adds r0, r1 - movs r1, 0x19 -_080E9022: - bl GetMonData - adds r1, r0, 0 - strb r1, [r7] - movs r0, 0xFF - lsls r0, 8 - ands r0, r1 - lsrs r0, 8 - strb r0, [r7, 0x1] - movs r0, 0xFF - lsls r0, 16 - ands r0, r1 - lsrs r0, 16 - strb r0, [r7, 0x2] - movs r6, 0x3 - b _080E934E - .align 2, 0 -_080E9044: .4byte gPlayerParty -_080E9048: - movs r0, 0x64 - muls r0, r5 - ldr r1, _080E9054 @ =gPlayerParty - adds r0, r1 - movs r1, 0x1A - b _080E9346 - .align 2, 0 -_080E9054: .4byte gPlayerParty -_080E9058: - movs r0, 0x64 - muls r0, r5 - ldr r1, _080E9064 @ =gPlayerParty - adds r0, r1 - movs r1, 0x1B - b _080E9346 - .align 2, 0 -_080E9064: .4byte gPlayerParty -_080E9068: - movs r0, 0x64 - muls r0, r5 - ldr r1, _080E9074 @ =gPlayerParty - adds r0, r1 - movs r1, 0x1C - b _080E9346 - .align 2, 0 -_080E9074: .4byte gPlayerParty -_080E9078: - movs r0, 0x64 - muls r0, r5 - ldr r1, _080E9084 @ =gPlayerParty - adds r0, r1 - movs r1, 0x1D - b _080E9346 - .align 2, 0 -_080E9084: .4byte gPlayerParty -_080E9088: - movs r0, 0x64 - muls r0, r5 - ldr r1, _080E9094 @ =gPlayerParty - adds r0, r1 - movs r1, 0x1E - b _080E9346 - .align 2, 0 -_080E9094: .4byte gPlayerParty -_080E9098: - movs r0, 0x64 - muls r0, r5 - ldr r1, _080E90A4 @ =gPlayerParty - adds r0, r1 - movs r1, 0x1F - b _080E9346 - .align 2, 0 -_080E90A4: .4byte gPlayerParty -_080E90A8: - movs r0, 0x64 - muls r0, r5 - ldr r1, _080E90B4 @ =gPlayerParty - adds r0, r1 - movs r1, 0x20 - b _080E9346 - .align 2, 0 -_080E90B4: .4byte gPlayerParty -_080E90B8: - movs r0, 0x64 - muls r0, r5 - ldr r1, _080E90C4 @ =gPlayerParty - adds r0, r1 - movs r1, 0x22 - b _080E9346 - .align 2, 0 -_080E90C4: .4byte gPlayerParty -_080E90C8: - movs r0, 0x64 - muls r0, r5 - ldr r1, _080E90D4 @ =gPlayerParty - adds r0, r1 - movs r1, 0x23 - b _080E9346 - .align 2, 0 -_080E90D4: .4byte gPlayerParty -_080E90D8: - movs r0, 0x64 - muls r0, r5 - ldr r1, _080E90E4 @ =gPlayerParty - adds r0, r1 - movs r1, 0x24 - b _080E9346 - .align 2, 0 -_080E90E4: .4byte gPlayerParty -_080E90E8: - movs r0, 0x64 - muls r0, r5 - ldr r1, _080E90F4 @ =gPlayerParty - adds r0, r1 - movs r1, 0x25 - b _080E9346 - .align 2, 0 -_080E90F4: .4byte gPlayerParty -_080E90F8: - movs r0, 0x64 - muls r0, r5 - ldr r1, _080E9104 @ =gPlayerParty - adds r0, r1 - movs r1, 0x26 - b _080E9346 - .align 2, 0 -_080E9104: .4byte gPlayerParty -_080E9108: - movs r0, 0x64 - adds r4, r5, 0 - muls r4, r0 - ldr r0, _080E9154 @ =gPlayerParty - adds r4, r0 - adds r0, r4, 0 - movs r1, 0x27 - bl GetMonData - strb r0, [r7] - adds r0, r4, 0 - movs r1, 0x28 - bl GetMonData - strb r0, [r7, 0x1] - adds r0, r4, 0 - movs r1, 0x29 - bl GetMonData - strb r0, [r7, 0x2] - adds r0, r4, 0 - movs r1, 0x2A - bl GetMonData - strb r0, [r7, 0x3] - adds r0, r4, 0 - movs r1, 0x2B - bl GetMonData - strb r0, [r7, 0x4] - adds r0, r4, 0 - movs r1, 0x2C - bl GetMonData - strb r0, [r7, 0x5] - movs r6, 0x6 - b _080E934E - .align 2, 0 -_080E9154: .4byte gPlayerParty -_080E9158: - movs r0, 0x64 - muls r0, r5 - ldr r1, _080E9164 @ =gPlayerParty - adds r0, r1 - movs r1, 0x27 - b _080E9346 - .align 2, 0 -_080E9164: .4byte gPlayerParty -_080E9168: - movs r0, 0x64 - muls r0, r5 - ldr r1, _080E9174 @ =gPlayerParty - adds r0, r1 - movs r1, 0x28 - b _080E9346 - .align 2, 0 -_080E9174: .4byte gPlayerParty -_080E9178: - movs r0, 0x64 - muls r0, r5 - ldr r1, _080E9184 @ =gPlayerParty - adds r0, r1 - movs r1, 0x29 - b _080E9346 - .align 2, 0 -_080E9184: .4byte gPlayerParty -_080E9188: - movs r0, 0x64 - muls r0, r5 - ldr r1, _080E9194 @ =gPlayerParty - adds r0, r1 - movs r1, 0x2A - b _080E9346 - .align 2, 0 -_080E9194: .4byte gPlayerParty -_080E9198: - movs r0, 0x64 - muls r0, r5 - ldr r1, _080E91A4 @ =gPlayerParty - adds r0, r1 - movs r1, 0x2B - b _080E9346 - .align 2, 0 -_080E91A4: .4byte gPlayerParty -_080E91A8: - movs r0, 0x64 - muls r0, r5 - ldr r1, _080E91B4 @ =gPlayerParty - adds r0, r1 - movs r1, 0x2C - b _080E9346 - .align 2, 0 -_080E91B4: .4byte gPlayerParty -_080E91B8: - movs r0, 0x64 - muls r0, r5 - ldr r1, _080E91C4 @ =gPlayerParty - adds r0, r1 - movs r1, 0 - b _080E91E2 - .align 2, 0 -_080E91C4: .4byte gPlayerParty -_080E91C8: - movs r0, 0x64 - muls r0, r5 - ldr r1, _080E91D4 @ =gPlayerParty - adds r0, r1 - movs r1, 0x9 - b _080E9286 - .align 2, 0 -_080E91D4: .4byte gPlayerParty -_080E91D8: - movs r0, 0x64 - muls r0, r5 - ldr r1, _080E9208 @ =gPlayerParty - adds r0, r1 - movs r1, 0x37 -_080E91E2: - bl GetMonData - adds r1, r0, 0 - strb r1, [r7] - movs r0, 0xFF - lsls r0, 8 - ands r0, r1 - lsrs r0, 8 - strb r0, [r7, 0x1] - movs r0, 0xFF - lsls r0, 16 - ands r0, r1 - lsrs r0, 16 - strb r0, [r7, 0x2] - lsrs r0, r1, 24 - strb r0, [r7, 0x3] - movs r6, 0x4 - b _080E934E - .align 2, 0 -_080E9208: .4byte gPlayerParty -_080E920C: - movs r0, 0x64 - muls r0, r5 - ldr r1, _080E9218 @ =gPlayerParty - adds r0, r1 - movs r1, 0x38 - b _080E9346 - .align 2, 0 -_080E9218: .4byte gPlayerParty -_080E921C: - movs r0, 0x64 - muls r0, r5 - ldr r1, _080E9228 @ =gPlayerParty - adds r0, r1 - movs r1, 0x39 - b _080E9286 - .align 2, 0 -_080E9228: .4byte gPlayerParty -_080E922C: - movs r0, 0x64 - muls r0, r5 - ldr r1, _080E9238 @ =gPlayerParty - adds r0, r1 - movs r1, 0x3A - b _080E9286 - .align 2, 0 -_080E9238: .4byte gPlayerParty -_080E923C: - movs r0, 0x64 - muls r0, r5 - ldr r1, _080E9248 @ =gPlayerParty - adds r0, r1 - movs r1, 0x3B - b _080E9286 - .align 2, 0 -_080E9248: .4byte gPlayerParty -_080E924C: - movs r0, 0x64 - muls r0, r5 - ldr r1, _080E9258 @ =gPlayerParty - adds r0, r1 - movs r1, 0x3C - b _080E9286 - .align 2, 0 -_080E9258: .4byte gPlayerParty -_080E925C: - movs r0, 0x64 - muls r0, r5 - ldr r1, _080E9268 @ =gPlayerParty - adds r0, r1 - movs r1, 0x3D - b _080E9286 - .align 2, 0 -_080E9268: .4byte gPlayerParty -_080E926C: - movs r0, 0x64 - muls r0, r5 - ldr r1, _080E9278 @ =gPlayerParty - adds r0, r1 - movs r1, 0x3E - b _080E9286 - .align 2, 0 -_080E9278: .4byte gPlayerParty -_080E927C: - movs r0, 0x64 - muls r0, r5 - ldr r1, _080E9298 @ =gPlayerParty - adds r0, r1 - movs r1, 0x3F -_080E9286: - bl GetMonData - lsls r0, 16 - lsrs r0, 16 - strb r0, [r7] - lsrs r0, 8 - strb r0, [r7, 0x1] - movs r6, 0x2 - b _080E934E - .align 2, 0 -_080E9298: .4byte gPlayerParty -_080E929C: - movs r0, 0x64 - muls r0, r5 - ldr r1, _080E92A8 @ =gPlayerParty - adds r0, r1 - movs r1, 0x16 - b _080E9346 - .align 2, 0 -_080E92A8: .4byte gPlayerParty -_080E92AC: - movs r0, 0x64 - muls r0, r5 - ldr r1, _080E92B8 @ =gPlayerParty - adds r0, r1 - movs r1, 0x17 - b _080E9346 - .align 2, 0 -_080E92B8: .4byte gPlayerParty -_080E92BC: - movs r0, 0x64 - muls r0, r5 - ldr r1, _080E92C8 @ =gPlayerParty - adds r0, r1 - movs r1, 0x18 - b _080E9346 - .align 2, 0 -_080E92C8: .4byte gPlayerParty -_080E92CC: - movs r0, 0x64 - muls r0, r5 - ldr r1, _080E92D8 @ =gPlayerParty - adds r0, r1 - movs r1, 0x21 - b _080E9346 - .align 2, 0 -_080E92D8: .4byte gPlayerParty -_080E92DC: - movs r0, 0x64 - muls r0, r5 - ldr r1, _080E92E8 @ =gPlayerParty - adds r0, r1 - movs r1, 0x2F - b _080E9346 - .align 2, 0 -_080E92E8: .4byte gPlayerParty -_080E92EC: - movs r0, 0x64 - muls r0, r5 - ldr r1, _080E92F8 @ =gPlayerParty - adds r0, r1 - movs r1, 0x30 - b _080E9346 - .align 2, 0 -_080E92F8: .4byte gPlayerParty -_080E92FC: - movs r0, 0x64 - muls r0, r5 - ldr r1, _080E9308 @ =gPlayerParty - adds r0, r1 - movs r1, 0x32 - b _080E9346 - .align 2, 0 -_080E9308: .4byte gPlayerParty -_080E930C: - movs r0, 0x64 - muls r0, r5 - ldr r1, _080E9318 @ =gPlayerParty - adds r0, r1 - movs r1, 0x33 - b _080E9346 - .align 2, 0 -_080E9318: .4byte gPlayerParty -_080E931C: - movs r0, 0x64 - muls r0, r5 - ldr r1, _080E9328 @ =gPlayerParty - adds r0, r1 - movs r1, 0x34 - b _080E9346 - .align 2, 0 -_080E9328: .4byte gPlayerParty -_080E932C: - movs r0, 0x64 - muls r0, r5 - ldr r1, _080E9338 @ =gPlayerParty - adds r0, r1 - movs r1, 0x35 - b _080E9346 - .align 2, 0 -_080E9338: .4byte gPlayerParty -_080E933C: - movs r0, 0x64 - muls r0, r5 - ldr r1, _080E9360 @ =gPlayerParty - adds r0, r1 - movs r1, 0x36 -_080E9346: - bl GetMonData - strb r0, [r7] - movs r6, 0x1 -_080E934E: - adds r0, r6, 0 - add sp, 0x90 - pop {r3-r5} - mov r8, r3 - mov r9, r4 - mov r10, r5 - pop {r4-r7} - pop {r1} - bx r1 - .align 2, 0 -_080E9360: .4byte gPlayerParty - thumb_func_end CopyWallyMonData - - thumb_func_start WallyHandleGetRawMonData -WallyHandleGetRawMonData: @ 80E9364 - push {lr} - bl PlayerHandleGetRawMonData - pop {r0} - bx r0 - thumb_func_end WallyHandleGetRawMonData - - thumb_func_start WallyHandleSetMonData -WallyHandleSetMonData: @ 80E9370 - push {r4,r5,lr} - ldr r1, _080E9394 @ =gBattleBufferA - ldr r0, _080E9398 @ =gActiveBattler - ldrb r2, [r0] - lsls r0, r2, 9 - adds r1, 0x2 - adds r1, r0, r1 - ldrb r0, [r1] - cmp r0, 0 - bne _080E93A0 - ldr r0, _080E939C @ =gBattlerPartyIndexes - lsls r1, r2, 1 - adds r1, r0 - ldrb r0, [r1] - bl SetWallyMonData - b _080E93BE - .align 2, 0 -_080E9394: .4byte gBattleBufferA -_080E9398: .4byte gActiveBattler -_080E939C: .4byte gBattlerPartyIndexes -_080E93A0: - ldrb r4, [r1] - movs r5, 0 -_080E93A4: - movs r0, 0x1 - ands r0, r4 - cmp r0, 0 - beq _080E93B2 - adds r0, r5, 0 - bl SetWallyMonData -_080E93B2: - lsrs r4, 1 - adds r0, r5, 0x1 - lsls r0, 24 - lsrs r5, r0, 24 - cmp r5, 0x5 - bls _080E93A4 -_080E93BE: - bl WallyBufferExecCompleted - pop {r4,r5} - pop {r0} - bx r0 - thumb_func_end WallyHandleSetMonData - - thumb_func_start SetWallyMonData -SetWallyMonData: @ 80E93C8 - push {r4-r7,lr} - mov r7, r10 - mov r6, r9 - mov r5, r8 - push {r5-r7} - sub sp, 0x34 - lsls r0, 24 - lsrs r5, r0, 24 - ldr r0, _080E9400 @ =gActiveBattler - ldrb r0, [r0] - lsls r0, 9 - ldr r2, _080E9404 @ =gUnknown_2022BC7 - adds r3, r0, r2 - adds r6, r3, 0 - subs r1, r2, 0x2 - adds r0, r1 - ldrb r0, [r0] - adds r7, r2, 0 - cmp r0, 0x3B - bls _080E93F4 - bl _080E9D8E -_080E93F4: - lsls r0, 2 - ldr r1, _080E9408 @ =_080E940C - adds r0, r1 - ldr r0, [r0] - mov pc, r0 - .align 2, 0 -_080E9400: .4byte gActiveBattler -_080E9404: .4byte gUnknown_2022BC7 -_080E9408: .4byte _080E940C - .align 2, 0 -_080E940C: - .4byte _080E94FC - .4byte _080E9694 - .4byte _080E96B4 - .4byte _080E96D4 - .4byte _080E972C - .4byte _080E972C - .4byte _080E972C - .4byte _080E972C - .4byte _080E9754 - .4byte _080E97B8 - .4byte _080E97B8 - .4byte _080E97B8 - .4byte _080E97B8 - .4byte _080E9D8E - .4byte _080E9D8E - .4byte _080E9D8E - .4byte _080E9D8E - .4byte _080E97E8 - .4byte _080E9808 - .4byte _080E9828 - .4byte _080E9848 - .4byte _080E9868 - .4byte _080E9888 - .4byte _080E98A8 - .4byte _080E98C8 - .4byte _080E98E8 - .4byte _080E9908 - .4byte _080E9928 - .4byte _080E9948 - .4byte _080E9968 - .4byte _080E9988 - .4byte _080E99A8 - .4byte _080E9A18 - .4byte _080E9A38 - .4byte _080E9A58 - .4byte _080E9A78 - .4byte _080E9A98 - .4byte _080E9AB8 - .4byte _080E9AD8 - .4byte _080E9AF8 - .4byte _080E9B18 - .4byte _080E9B38 - .4byte _080E9B58 - .4byte _080E9B78 - .4byte _080E9B98 - .4byte _080E9BB8 - .4byte _080E9BD8 - .4byte _080E9BF8 - .4byte _080E9C18 - .4byte _080E9C38 - .4byte _080E9C58 - .4byte _080E9C78 - .4byte _080E9C98 - .4byte _080E9CB8 - .4byte _080E9CD8 - .4byte _080E9CF8 - .4byte _080E9D18 - .4byte _080E9D38 - .4byte _080E9D58 - .4byte _080E9D78 -_080E94FC: - movs r0, 0x64 - adds r4, r5, 0 - muls r4, r0 - ldr r0, _080E9690 @ =gPlayerParty - adds r4, r0 - adds r0, r4, 0 - movs r1, 0xB - adds r2, r6, 0 - bl SetMonData - adds r2, r6, 0 - adds r2, 0x2E - adds r0, r4, 0 - movs r1, 0xC - bl SetMonData - movs r0, 0 - mov r8, r0 - movs r0, 0x3B - adds r0, r6 - mov r10, r0 - adds r0, r6, 0 - adds r0, 0x2B - str r0, [sp, 0x20] - adds r0, 0x19 - str r0, [sp, 0x28] - adds r0, 0x4 - str r0, [sp, 0x2C] - adds r0, 0x4 - str r0, [sp, 0x30] - subs r0, 0x22 - str r0, [sp, 0x1C] - subs r0, 0x2 - str r0, [sp, 0x18] - adds r0, 0x4 - str r0, [sp, 0x24] - adds r0, r6, 0x2 - str r0, [sp, 0x4] - adds r0, r6, 0x4 - str r0, [sp, 0x8] - adds r0, r6, 0x6 - str r0, [sp, 0xC] - adds r0, 0x2 - str r0, [sp, 0x10] - adds r0, 0x2 - str r0, [sp, 0x14] - mov r9, r4 - adds r7, r6, 0 - adds r7, 0x24 - adds r4, r6, 0 - adds r4, 0xC -_080E9562: - mov r1, r8 - adds r1, 0xD - mov r0, r9 - adds r2, r4, 0 - bl SetMonData - mov r1, r8 - adds r1, 0x11 - mov r0, r9 - adds r2, r7, 0 - bl SetMonData - adds r7, 0x1 - adds r4, 0x2 - movs r0, 0x1 - add r8, r0 - mov r0, r8 - cmp r0, 0x3 - ble _080E9562 - movs r0, 0x64 - adds r4, r5, 0 - muls r4, r0 - ldr r0, _080E9690 @ =gPlayerParty - adds r4, r0 - adds r0, r4, 0 - movs r1, 0x15 - mov r2, r10 - bl SetMonData - adds r0, r4, 0 - movs r1, 0x20 - ldr r2, [sp, 0x20] - bl SetMonData - adds r0, r4, 0 - movs r1, 0x19 - ldr r2, [sp, 0x28] - bl SetMonData - ldrb r0, [r6, 0x14] - lsls r0, 27 - lsrs r0, 27 - mov r1, sp - strb r0, [r1] - adds r0, r4, 0 - movs r1, 0x27 - mov r2, sp - bl SetMonData - mov r1, sp - ldrh r0, [r6, 0x14] - lsls r0, 22 - lsrs r0, 27 - strb r0, [r1] - adds r0, r4, 0 - movs r1, 0x28 - mov r2, sp - bl SetMonData - mov r1, sp - ldrb r0, [r6, 0x15] - lsls r0, 25 - lsrs r0, 27 - strb r0, [r1] - adds r0, r4, 0 - movs r1, 0x29 - mov r2, sp - bl SetMonData - mov r1, sp - ldr r0, [r6, 0x14] - lsls r0, 12 - lsrs r0, 27 - strb r0, [r1] - adds r0, r4, 0 - movs r1, 0x2A - mov r2, sp - bl SetMonData - mov r1, sp - ldrh r0, [r6, 0x16] - lsls r0, 23 - lsrs r0, 27 - strb r0, [r1] - adds r0, r4, 0 - movs r1, 0x2B - mov r2, sp - bl SetMonData - mov r1, sp - ldrb r0, [r6, 0x17] - lsls r0, 26 - lsrs r0, 27 - strb r0, [r1] - adds r0, r4, 0 - movs r1, 0x2C - mov r2, sp - bl SetMonData - adds r0, r4, 0 - movs r1, 0 - ldr r2, [sp, 0x2C] - bl SetMonData - adds r0, r4, 0 - movs r1, 0x37 - ldr r2, [sp, 0x30] - bl SetMonData - adds r0, r4, 0 - movs r1, 0x38 - ldr r2, [sp, 0x1C] - bl SetMonData - adds r0, r4, 0 - movs r1, 0x39 - ldr r2, [sp, 0x18] - bl SetMonData - adds r0, r4, 0 - movs r1, 0x3A - ldr r2, [sp, 0x24] - bl SetMonData - adds r0, r4, 0 - movs r1, 0x3B - ldr r2, [sp, 0x4] - bl SetMonData - adds r0, r4, 0 - movs r1, 0x3C - ldr r2, [sp, 0x8] - bl SetMonData - adds r0, r4, 0 - movs r1, 0x3D - ldr r2, [sp, 0xC] - bl SetMonData - adds r0, r4, 0 - movs r1, 0x3E - ldr r2, [sp, 0x10] - bl SetMonData - adds r0, r4, 0 - movs r1, 0x3F - ldr r2, [sp, 0x14] - bl SetMonData - b _080E9D8E - .align 2, 0 -_080E9690: .4byte gPlayerParty -_080E9694: - movs r0, 0x64 - muls r0, r5 - ldr r1, _080E96AC @ =gPlayerParty - adds r0, r1 - ldr r1, _080E96B0 @ =gActiveBattler - ldrb r2, [r1] - lsls r2, 9 - adds r2, r7 - movs r1, 0xB - bl SetMonData - b _080E9D8E - .align 2, 0 -_080E96AC: .4byte gPlayerParty -_080E96B0: .4byte gActiveBattler -_080E96B4: - movs r0, 0x64 - muls r0, r5 - ldr r1, _080E96CC @ =gPlayerParty - adds r0, r1 - ldr r1, _080E96D0 @ =gActiveBattler - ldrb r2, [r1] - lsls r2, 9 - adds r2, r7 - movs r1, 0xC - bl SetMonData - b _080E9D8E - .align 2, 0 -_080E96CC: .4byte gPlayerParty -_080E96D0: .4byte gActiveBattler -_080E96D4: - movs r0, 0 - mov r8, r0 - movs r0, 0xC - adds r0, r3 - mov r9, r0 - movs r0, 0x64 - adds r1, r5, 0 - muls r1, r0 - ldr r0, _080E9728 @ =gPlayerParty - adds r7, r1, r0 - adds r6, r3, 0 - adds r6, 0x8 - adds r4, r3, 0 -_080E96EE: - mov r1, r8 - adds r1, 0xD - adds r0, r7, 0 - adds r2, r4, 0 - bl SetMonData - mov r1, r8 - adds r1, 0x11 - adds r0, r7, 0 - adds r2, r6, 0 - bl SetMonData - adds r6, 0x1 - adds r4, 0x2 - movs r0, 0x1 - add r8, r0 - mov r0, r8 - cmp r0, 0x3 - ble _080E96EE - movs r0, 0x64 - muls r0, r5 - ldr r1, _080E9728 @ =gPlayerParty - adds r0, r1 - movs r1, 0x15 - mov r2, r9 - bl SetMonData - b _080E9D8E - .align 2, 0 -_080E9728: .4byte gPlayerParty -_080E972C: - movs r0, 0x64 - muls r0, r5 - ldr r1, _080E9748 @ =gPlayerParty - adds r0, r1 - ldr r3, _080E974C @ =gBattleBufferA - ldr r1, _080E9750 @ =gActiveBattler - ldrb r2, [r1] - lsls r2, 9 - adds r1, r3, 0x1 - adds r1, r2, r1 - ldrb r1, [r1] - adds r1, 0x9 - b _080E97D0 - .align 2, 0 -_080E9748: .4byte gPlayerParty -_080E974C: .4byte gBattleBufferA -_080E9750: .4byte gActiveBattler -_080E9754: - movs r0, 0x64 - adds r4, r5, 0 - muls r4, r0 - ldr r0, _080E97B0 @ =gPlayerParty - adds r4, r0 - ldr r5, _080E97B4 @ =gActiveBattler - ldrb r2, [r5] - lsls r2, 9 - adds r2, r7 - adds r0, r4, 0 - movs r1, 0x11 - bl SetMonData - ldrb r2, [r5] - lsls r2, 9 - adds r0, r7, 0x1 - adds r2, r0 - adds r0, r4, 0 - movs r1, 0x12 - bl SetMonData - ldrb r2, [r5] - lsls r2, 9 - adds r0, r7, 0x2 - adds r2, r0 - adds r0, r4, 0 - movs r1, 0x13 - bl SetMonData - ldrb r2, [r5] - lsls r2, 9 - adds r0, r7, 0x3 - adds r2, r0 - adds r0, r4, 0 - movs r1, 0x14 - bl SetMonData - ldrb r2, [r5] - lsls r2, 9 - adds r0, r7, 0x4 - adds r2, r0 - adds r0, r4, 0 - movs r1, 0x15 - bl SetMonData - b _080E9D8E - .align 2, 0 -_080E97B0: .4byte gPlayerParty -_080E97B4: .4byte gActiveBattler -_080E97B8: - movs r0, 0x64 - muls r0, r5 - ldr r1, _080E97DC @ =gPlayerParty - adds r0, r1 - ldr r3, _080E97E0 @ =gBattleBufferA - ldr r1, _080E97E4 @ =gActiveBattler - ldrb r2, [r1] - lsls r2, 9 - adds r1, r3, 0x1 - adds r1, r2, r1 - ldrb r1, [r1] - adds r1, 0x8 -_080E97D0: - adds r3, 0x3 - adds r2, r3 - bl SetMonData - b _080E9D8E - .align 2, 0 -_080E97DC: .4byte gPlayerParty -_080E97E0: .4byte gBattleBufferA -_080E97E4: .4byte gActiveBattler -_080E97E8: - movs r0, 0x64 - muls r0, r5 - ldr r1, _080E9800 @ =gPlayerParty - adds r0, r1 - ldr r1, _080E9804 @ =gActiveBattler - ldrb r2, [r1] - lsls r2, 9 - adds r2, r7 - movs r1, 0x1 - bl SetMonData - b _080E9D8E - .align 2, 0 -_080E9800: .4byte gPlayerParty -_080E9804: .4byte gActiveBattler -_080E9808: - movs r0, 0x64 - muls r0, r5 - ldr r1, _080E9820 @ =gPlayerParty - adds r0, r1 - ldr r1, _080E9824 @ =gActiveBattler - ldrb r2, [r1] - lsls r2, 9 - adds r2, r7 - movs r1, 0x19 - bl SetMonData - b _080E9D8E - .align 2, 0 -_080E9820: .4byte gPlayerParty -_080E9824: .4byte gActiveBattler -_080E9828: - movs r0, 0x64 - muls r0, r5 - ldr r1, _080E9840 @ =gPlayerParty - adds r0, r1 - ldr r1, _080E9844 @ =gActiveBattler - ldrb r2, [r1] - lsls r2, 9 - adds r2, r7 - movs r1, 0x1A - bl SetMonData - b _080E9D8E - .align 2, 0 -_080E9840: .4byte gPlayerParty -_080E9844: .4byte gActiveBattler -_080E9848: - movs r0, 0x64 - muls r0, r5 - ldr r1, _080E9860 @ =gPlayerParty - adds r0, r1 - ldr r1, _080E9864 @ =gActiveBattler - ldrb r2, [r1] - lsls r2, 9 - adds r2, r7 - movs r1, 0x1B - bl SetMonData - b _080E9D8E - .align 2, 0 -_080E9860: .4byte gPlayerParty -_080E9864: .4byte gActiveBattler -_080E9868: - movs r0, 0x64 - muls r0, r5 - ldr r1, _080E9880 @ =gPlayerParty - adds r0, r1 - ldr r1, _080E9884 @ =gActiveBattler - ldrb r2, [r1] - lsls r2, 9 - adds r2, r7 - movs r1, 0x1C - bl SetMonData - b _080E9D8E - .align 2, 0 -_080E9880: .4byte gPlayerParty -_080E9884: .4byte gActiveBattler -_080E9888: - movs r0, 0x64 - muls r0, r5 - ldr r1, _080E98A0 @ =gPlayerParty - adds r0, r1 - ldr r1, _080E98A4 @ =gActiveBattler - ldrb r2, [r1] - lsls r2, 9 - adds r2, r7 - movs r1, 0x1D - bl SetMonData - b _080E9D8E - .align 2, 0 -_080E98A0: .4byte gPlayerParty -_080E98A4: .4byte gActiveBattler -_080E98A8: - movs r0, 0x64 - muls r0, r5 - ldr r1, _080E98C0 @ =gPlayerParty - adds r0, r1 - ldr r1, _080E98C4 @ =gActiveBattler - ldrb r2, [r1] - lsls r2, 9 - adds r2, r7 - movs r1, 0x1E - bl SetMonData - b _080E9D8E - .align 2, 0 -_080E98C0: .4byte gPlayerParty -_080E98C4: .4byte gActiveBattler -_080E98C8: - movs r0, 0x64 - muls r0, r5 - ldr r1, _080E98E0 @ =gPlayerParty - adds r0, r1 - ldr r1, _080E98E4 @ =gActiveBattler - ldrb r2, [r1] - lsls r2, 9 - adds r2, r7 - movs r1, 0x1F - bl SetMonData - b _080E9D8E - .align 2, 0 -_080E98E0: .4byte gPlayerParty -_080E98E4: .4byte gActiveBattler -_080E98E8: - movs r0, 0x64 - muls r0, r5 - ldr r1, _080E9900 @ =gPlayerParty - adds r0, r1 - ldr r1, _080E9904 @ =gActiveBattler - ldrb r2, [r1] - lsls r2, 9 - adds r2, r7 - movs r1, 0x20 - bl SetMonData - b _080E9D8E - .align 2, 0 -_080E9900: .4byte gPlayerParty -_080E9904: .4byte gActiveBattler -_080E9908: - movs r0, 0x64 - muls r0, r5 - ldr r1, _080E9920 @ =gPlayerParty - adds r0, r1 - ldr r1, _080E9924 @ =gActiveBattler - ldrb r2, [r1] - lsls r2, 9 - adds r2, r7 - movs r1, 0x22 - bl SetMonData - b _080E9D8E - .align 2, 0 -_080E9920: .4byte gPlayerParty -_080E9924: .4byte gActiveBattler -_080E9928: - movs r0, 0x64 - muls r0, r5 - ldr r1, _080E9940 @ =gPlayerParty - adds r0, r1 - ldr r1, _080E9944 @ =gActiveBattler - ldrb r2, [r1] - lsls r2, 9 - adds r2, r7 - movs r1, 0x23 - bl SetMonData - b _080E9D8E - .align 2, 0 -_080E9940: .4byte gPlayerParty -_080E9944: .4byte gActiveBattler -_080E9948: - movs r0, 0x64 - muls r0, r5 - ldr r1, _080E9960 @ =gPlayerParty - adds r0, r1 - ldr r1, _080E9964 @ =gActiveBattler - ldrb r2, [r1] - lsls r2, 9 - adds r2, r7 - movs r1, 0x24 - bl SetMonData - b _080E9D8E - .align 2, 0 -_080E9960: .4byte gPlayerParty -_080E9964: .4byte gActiveBattler -_080E9968: - movs r0, 0x64 - muls r0, r5 - ldr r1, _080E9980 @ =gPlayerParty - adds r0, r1 - ldr r1, _080E9984 @ =gActiveBattler - ldrb r2, [r1] - lsls r2, 9 - adds r2, r7 - movs r1, 0x25 - bl SetMonData - b _080E9D8E - .align 2, 0 -_080E9980: .4byte gPlayerParty -_080E9984: .4byte gActiveBattler -_080E9988: - movs r0, 0x64 - muls r0, r5 - ldr r1, _080E99A0 @ =gPlayerParty - adds r0, r1 - ldr r1, _080E99A4 @ =gActiveBattler - ldrb r2, [r1] - lsls r2, 9 - adds r2, r7 - movs r1, 0x26 - bl SetMonData - b _080E9D8E - .align 2, 0 -_080E99A0: .4byte gPlayerParty -_080E99A4: .4byte gActiveBattler -_080E99A8: - movs r0, 0x64 - adds r4, r5, 0 - muls r4, r0 - ldr r0, _080E9A10 @ =gPlayerParty - adds r4, r0 - ldr r5, _080E9A14 @ =gActiveBattler - ldrb r2, [r5] - lsls r2, 9 - adds r2, r7 - adds r0, r4, 0 - movs r1, 0x27 - bl SetMonData - ldrb r2, [r5] - lsls r2, 9 - adds r0, r7, 0x1 - adds r2, r0 - adds r0, r4, 0 - movs r1, 0x28 - bl SetMonData - ldrb r2, [r5] - lsls r2, 9 - adds r0, r7, 0x2 - adds r2, r0 - adds r0, r4, 0 - movs r1, 0x29 - bl SetMonData - ldrb r2, [r5] - lsls r2, 9 - adds r0, r7, 0x3 - adds r2, r0 - adds r0, r4, 0 - movs r1, 0x2A - bl SetMonData - ldrb r2, [r5] - lsls r2, 9 - adds r0, r7, 0x4 - adds r2, r0 - adds r0, r4, 0 - movs r1, 0x2B - bl SetMonData - ldrb r2, [r5] - lsls r2, 9 - adds r0, r7, 0x5 - adds r2, r0 - adds r0, r4, 0 - b _080E9AC8 - .align 2, 0 -_080E9A10: .4byte gPlayerParty -_080E9A14: .4byte gActiveBattler -_080E9A18: - movs r0, 0x64 - muls r0, r5 - ldr r1, _080E9A30 @ =gPlayerParty - adds r0, r1 - ldr r1, _080E9A34 @ =gActiveBattler - ldrb r2, [r1] - lsls r2, 9 - adds r2, r7 - movs r1, 0x27 - bl SetMonData - b _080E9D8E - .align 2, 0 -_080E9A30: .4byte gPlayerParty -_080E9A34: .4byte gActiveBattler -_080E9A38: - movs r0, 0x64 - muls r0, r5 - ldr r1, _080E9A50 @ =gPlayerParty - adds r0, r1 - ldr r1, _080E9A54 @ =gActiveBattler - ldrb r2, [r1] - lsls r2, 9 - adds r2, r7 - movs r1, 0x28 - bl SetMonData - b _080E9D8E - .align 2, 0 -_080E9A50: .4byte gPlayerParty -_080E9A54: .4byte gActiveBattler -_080E9A58: - movs r0, 0x64 - muls r0, r5 - ldr r1, _080E9A70 @ =gPlayerParty - adds r0, r1 - ldr r1, _080E9A74 @ =gActiveBattler - ldrb r2, [r1] - lsls r2, 9 - adds r2, r7 - movs r1, 0x29 - bl SetMonData - b _080E9D8E - .align 2, 0 -_080E9A70: .4byte gPlayerParty -_080E9A74: .4byte gActiveBattler -_080E9A78: - movs r0, 0x64 - muls r0, r5 - ldr r1, _080E9A90 @ =gPlayerParty - adds r0, r1 - ldr r1, _080E9A94 @ =gActiveBattler - ldrb r2, [r1] - lsls r2, 9 - adds r2, r7 - movs r1, 0x2A - bl SetMonData - b _080E9D8E - .align 2, 0 -_080E9A90: .4byte gPlayerParty -_080E9A94: .4byte gActiveBattler -_080E9A98: - movs r0, 0x64 - muls r0, r5 - ldr r1, _080E9AB0 @ =gPlayerParty - adds r0, r1 - ldr r1, _080E9AB4 @ =gActiveBattler - ldrb r2, [r1] - lsls r2, 9 - adds r2, r7 - movs r1, 0x2B - bl SetMonData - b _080E9D8E - .align 2, 0 -_080E9AB0: .4byte gPlayerParty -_080E9AB4: .4byte gActiveBattler -_080E9AB8: - movs r0, 0x64 - muls r0, r5 - ldr r1, _080E9AD0 @ =gPlayerParty - adds r0, r1 - ldr r1, _080E9AD4 @ =gActiveBattler - ldrb r2, [r1] - lsls r2, 9 - adds r2, r7 -_080E9AC8: - movs r1, 0x2C - bl SetMonData - b _080E9D8E - .align 2, 0 -_080E9AD0: .4byte gPlayerParty -_080E9AD4: .4byte gActiveBattler -_080E9AD8: - movs r0, 0x64 - muls r0, r5 - ldr r1, _080E9AF0 @ =gPlayerParty - adds r0, r1 - ldr r1, _080E9AF4 @ =gActiveBattler - ldrb r2, [r1] - lsls r2, 9 - adds r2, r7 - movs r1, 0 - bl SetMonData - b _080E9D8E - .align 2, 0 -_080E9AF0: .4byte gPlayerParty -_080E9AF4: .4byte gActiveBattler -_080E9AF8: - movs r0, 0x64 - muls r0, r5 - ldr r1, _080E9B10 @ =gPlayerParty - adds r0, r1 - ldr r1, _080E9B14 @ =gActiveBattler - ldrb r2, [r1] - lsls r2, 9 - adds r2, r7 - movs r1, 0x9 - bl SetMonData - b _080E9D8E - .align 2, 0 -_080E9B10: .4byte gPlayerParty -_080E9B14: .4byte gActiveBattler -_080E9B18: - movs r0, 0x64 - muls r0, r5 - ldr r1, _080E9B30 @ =gPlayerParty - adds r0, r1 - ldr r1, _080E9B34 @ =gActiveBattler - ldrb r2, [r1] - lsls r2, 9 - adds r2, r7 - movs r1, 0x37 - bl SetMonData - b _080E9D8E - .align 2, 0 -_080E9B30: .4byte gPlayerParty -_080E9B34: .4byte gActiveBattler -_080E9B38: - movs r0, 0x64 - muls r0, r5 - ldr r1, _080E9B50 @ =gPlayerParty - adds r0, r1 - ldr r1, _080E9B54 @ =gActiveBattler - ldrb r2, [r1] - lsls r2, 9 - adds r2, r7 - movs r1, 0x38 - bl SetMonData - b _080E9D8E - .align 2, 0 -_080E9B50: .4byte gPlayerParty -_080E9B54: .4byte gActiveBattler -_080E9B58: - movs r0, 0x64 - muls r0, r5 - ldr r1, _080E9B70 @ =gPlayerParty - adds r0, r1 - ldr r1, _080E9B74 @ =gActiveBattler - ldrb r2, [r1] - lsls r2, 9 - adds r2, r7 - movs r1, 0x39 - bl SetMonData - b _080E9D8E - .align 2, 0 -_080E9B70: .4byte gPlayerParty -_080E9B74: .4byte gActiveBattler -_080E9B78: - movs r0, 0x64 - muls r0, r5 - ldr r1, _080E9B90 @ =gPlayerParty - adds r0, r1 - ldr r1, _080E9B94 @ =gActiveBattler - ldrb r2, [r1] - lsls r2, 9 - adds r2, r7 - movs r1, 0x3A - bl SetMonData - b _080E9D8E - .align 2, 0 -_080E9B90: .4byte gPlayerParty -_080E9B94: .4byte gActiveBattler -_080E9B98: - movs r0, 0x64 - muls r0, r5 - ldr r1, _080E9BB0 @ =gPlayerParty - adds r0, r1 - ldr r1, _080E9BB4 @ =gActiveBattler - ldrb r2, [r1] - lsls r2, 9 - adds r2, r7 - movs r1, 0x3B - bl SetMonData - b _080E9D8E - .align 2, 0 -_080E9BB0: .4byte gPlayerParty -_080E9BB4: .4byte gActiveBattler -_080E9BB8: - movs r0, 0x64 - muls r0, r5 - ldr r1, _080E9BD0 @ =gPlayerParty - adds r0, r1 - ldr r1, _080E9BD4 @ =gActiveBattler - ldrb r2, [r1] - lsls r2, 9 - adds r2, r7 - movs r1, 0x3C - bl SetMonData - b _080E9D8E - .align 2, 0 -_080E9BD0: .4byte gPlayerParty -_080E9BD4: .4byte gActiveBattler -_080E9BD8: - movs r0, 0x64 - muls r0, r5 - ldr r1, _080E9BF0 @ =gPlayerParty - adds r0, r1 - ldr r1, _080E9BF4 @ =gActiveBattler - ldrb r2, [r1] - lsls r2, 9 - adds r2, r7 - movs r1, 0x3D - bl SetMonData - b _080E9D8E - .align 2, 0 -_080E9BF0: .4byte gPlayerParty -_080E9BF4: .4byte gActiveBattler -_080E9BF8: - movs r0, 0x64 - muls r0, r5 - ldr r1, _080E9C10 @ =gPlayerParty - adds r0, r1 - ldr r1, _080E9C14 @ =gActiveBattler - ldrb r2, [r1] - lsls r2, 9 - adds r2, r7 - movs r1, 0x3E - bl SetMonData - b _080E9D8E - .align 2, 0 -_080E9C10: .4byte gPlayerParty -_080E9C14: .4byte gActiveBattler -_080E9C18: - movs r0, 0x64 - muls r0, r5 - ldr r1, _080E9C30 @ =gPlayerParty - adds r0, r1 - ldr r1, _080E9C34 @ =gActiveBattler - ldrb r2, [r1] - lsls r2, 9 - adds r2, r7 - movs r1, 0x3F - bl SetMonData - b _080E9D8E - .align 2, 0 -_080E9C30: .4byte gPlayerParty -_080E9C34: .4byte gActiveBattler -_080E9C38: - movs r0, 0x64 - muls r0, r5 - ldr r1, _080E9C50 @ =gPlayerParty - adds r0, r1 - ldr r1, _080E9C54 @ =gActiveBattler - ldrb r2, [r1] - lsls r2, 9 - adds r2, r7 - movs r1, 0x16 - bl SetMonData - b _080E9D8E - .align 2, 0 -_080E9C50: .4byte gPlayerParty -_080E9C54: .4byte gActiveBattler -_080E9C58: - movs r0, 0x64 - muls r0, r5 - ldr r1, _080E9C70 @ =gPlayerParty - adds r0, r1 - ldr r1, _080E9C74 @ =gActiveBattler - ldrb r2, [r1] - lsls r2, 9 - adds r2, r7 - movs r1, 0x17 - bl SetMonData - b _080E9D8E - .align 2, 0 -_080E9C70: .4byte gPlayerParty -_080E9C74: .4byte gActiveBattler -_080E9C78: - movs r0, 0x64 - muls r0, r5 - ldr r1, _080E9C90 @ =gPlayerParty - adds r0, r1 - ldr r1, _080E9C94 @ =gActiveBattler - ldrb r2, [r1] - lsls r2, 9 - adds r2, r7 - movs r1, 0x18 - bl SetMonData - b _080E9D8E - .align 2, 0 -_080E9C90: .4byte gPlayerParty -_080E9C94: .4byte gActiveBattler -_080E9C98: - movs r0, 0x64 - muls r0, r5 - ldr r1, _080E9CB0 @ =gPlayerParty - adds r0, r1 - ldr r1, _080E9CB4 @ =gActiveBattler - ldrb r2, [r1] - lsls r2, 9 - adds r2, r7 - movs r1, 0x21 - bl SetMonData - b _080E9D8E - .align 2, 0 -_080E9CB0: .4byte gPlayerParty -_080E9CB4: .4byte gActiveBattler -_080E9CB8: - movs r0, 0x64 - muls r0, r5 - ldr r1, _080E9CD0 @ =gPlayerParty - adds r0, r1 - ldr r1, _080E9CD4 @ =gActiveBattler - ldrb r2, [r1] - lsls r2, 9 - adds r2, r7 - movs r1, 0x2F - bl SetMonData - b _080E9D8E - .align 2, 0 -_080E9CD0: .4byte gPlayerParty -_080E9CD4: .4byte gActiveBattler -_080E9CD8: - movs r0, 0x64 - muls r0, r5 - ldr r1, _080E9CF0 @ =gPlayerParty - adds r0, r1 - ldr r1, _080E9CF4 @ =gActiveBattler - ldrb r2, [r1] - lsls r2, 9 - adds r2, r7 - movs r1, 0x30 - bl SetMonData - b _080E9D8E - .align 2, 0 -_080E9CF0: .4byte gPlayerParty -_080E9CF4: .4byte gActiveBattler -_080E9CF8: - movs r0, 0x64 - muls r0, r5 - ldr r1, _080E9D10 @ =gPlayerParty - adds r0, r1 - ldr r1, _080E9D14 @ =gActiveBattler - ldrb r2, [r1] - lsls r2, 9 - adds r2, r7 - movs r1, 0x32 - bl SetMonData - b _080E9D8E - .align 2, 0 -_080E9D10: .4byte gPlayerParty -_080E9D14: .4byte gActiveBattler -_080E9D18: - movs r0, 0x64 - muls r0, r5 - ldr r1, _080E9D30 @ =gPlayerParty - adds r0, r1 - ldr r1, _080E9D34 @ =gActiveBattler - ldrb r2, [r1] - lsls r2, 9 - adds r2, r7 - movs r1, 0x33 - bl SetMonData - b _080E9D8E - .align 2, 0 -_080E9D30: .4byte gPlayerParty -_080E9D34: .4byte gActiveBattler -_080E9D38: - movs r0, 0x64 - muls r0, r5 - ldr r1, _080E9D50 @ =gPlayerParty - adds r0, r1 - ldr r1, _080E9D54 @ =gActiveBattler - ldrb r2, [r1] - lsls r2, 9 - adds r2, r7 - movs r1, 0x34 - bl SetMonData - b _080E9D8E - .align 2, 0 -_080E9D50: .4byte gPlayerParty -_080E9D54: .4byte gActiveBattler -_080E9D58: - movs r0, 0x64 - muls r0, r5 - ldr r1, _080E9D70 @ =gPlayerParty - adds r0, r1 - ldr r1, _080E9D74 @ =gActiveBattler - ldrb r2, [r1] - lsls r2, 9 - adds r2, r7 - movs r1, 0x35 - bl SetMonData - b _080E9D8E - .align 2, 0 -_080E9D70: .4byte gPlayerParty -_080E9D74: .4byte gActiveBattler -_080E9D78: - movs r0, 0x64 - muls r0, r5 - ldr r1, _080E9DB8 @ =gPlayerParty - adds r0, r1 - ldr r1, _080E9DBC @ =gActiveBattler - ldrb r2, [r1] - lsls r2, 9 - adds r2, r7 - movs r1, 0x36 - bl SetMonData -_080E9D8E: - ldr r2, _080E9DC0 @ =gBattlerPartyIndexes - ldr r0, _080E9DBC @ =gActiveBattler - ldrb r1, [r0] - lsls r0, r1, 1 - adds r0, r2 - ldrh r2, [r0] - movs r0, 0x64 - muls r0, r2 - ldr r2, _080E9DB8 @ =gPlayerParty - adds r0, r2 - bl HandleLowHpMusicChange - add sp, 0x34 - pop {r3-r5} - mov r8, r3 - mov r9, r4 - mov r10, r5 - pop {r4-r7} - pop {r0} - bx r0 - .align 2, 0 -_080E9DB8: .4byte gPlayerParty -_080E9DBC: .4byte gActiveBattler -_080E9DC0: .4byte gBattlerPartyIndexes - thumb_func_end SetWallyMonData - - thumb_func_start sub_80E9DC4 -sub_80E9DC4: @ 80E9DC4 - push {lr} - bl WallyBufferExecCompleted - pop {r0} - bx r0 - thumb_func_end sub_80E9DC4 - - thumb_func_start sub_80E9DD0 -sub_80E9DD0: @ 80E9DD0 - push {lr} - bl WallyBufferExecCompleted - pop {r0} - bx r0 - thumb_func_end sub_80E9DD0 - - thumb_func_start sub_80E9DDC -sub_80E9DDC: @ 80E9DDC - push {lr} - bl WallyBufferExecCompleted - pop {r0} - bx r0 - thumb_func_end sub_80E9DDC - - thumb_func_start WallyHandleReturnMonToBall -WallyHandleReturnMonToBall: @ 80E9DE8 - push {r4-r6,lr} - ldr r0, _080E9E14 @ =gBattleBufferA - ldr r6, _080E9E18 @ =gActiveBattler - ldrb r2, [r6] - lsls r1, r2, 9 - adds r0, 0x1 - adds r1, r0 - ldrb r0, [r1] - cmp r0, 0 - bne _080E9E24 - adds r0, r2, 0 - adds r1, r2, 0 - movs r3, 0x1 - bl InitAndLaunchSpecialAnimation - ldr r0, _080E9E1C @ =gBattlerControllerFuncs - ldrb r1, [r6] - lsls r1, 2 - adds r1, r0 - ldr r0, _080E9E20 @ =sub_80E89C4 - str r0, [r1] - b _080E9E5A - .align 2, 0 -_080E9E14: .4byte gBattleBufferA -_080E9E18: .4byte gActiveBattler -_080E9E1C: .4byte gBattlerControllerFuncs -_080E9E20: .4byte sub_80E89C4 -_080E9E24: - ldr r5, _080E9E60 @ =gBattlerSpriteIds - adds r0, r2, r5 - ldrb r1, [r0] - lsls r0, r1, 4 - adds r0, r1 - lsls r0, 2 - ldr r4, _080E9E64 @ =gSprites - adds r0, r4 - bl FreeSpriteOamMatrix - ldrb r0, [r6] - adds r0, r5 - ldrb r1, [r0] - lsls r0, r1, 4 - adds r0, r1 - lsls r0, 2 - adds r0, r4 - bl DestroySprite - ldr r1, _080E9E68 @ =gHealthboxSpriteIds - ldrb r0, [r6] - adds r0, r1 - ldrb r0, [r0] - bl SetHealthboxSpriteInvisible - bl WallyBufferExecCompleted -_080E9E5A: - pop {r4-r6} - pop {r0} - bx r0 - .align 2, 0 -_080E9E60: .4byte gBattlerSpriteIds -_080E9E64: .4byte gSprites -_080E9E68: .4byte gHealthboxSpriteIds - thumb_func_end WallyHandleReturnMonToBall - - thumb_func_start sub_80E9E6C -sub_80E9E6C: @ 80E9E6C - push {r4-r6,lr} - ldr r0, _080E9EC8 @ =gBattleTypeFlags - ldr r0, [r0] - movs r1, 0x10 - ands r0, r1 - cmp r0, 0 - beq _080E9EE0 - ldr r4, _080E9ECC @ =gSaveBlock2Ptr - ldr r0, [r4] - ldrb r0, [r0, 0x8] - ldr r6, _080E9ED0 @ =gActiveBattler - ldrb r1, [r6] - bl DecompressTrainerBackPalette - ldr r0, [r4] - ldrb r5, [r0, 0x8] - ldrb r0, [r6] - bl GetBattlerPosition - adds r1, r0, 0 - lsls r1, 24 - lsrs r1, 24 - adds r0, r5, 0 - bl SetMultiuseSpriteTemplateToTrainerBack - ldr r0, _080E9ED4 @ =gMultiuseSpriteTemplate - ldr r2, _080E9ED8 @ =gTrainerBackPicCoords - ldr r1, [r4] - ldrb r1, [r1, 0x8] - lsls r1, 2 - adds r1, r2 - ldrb r1, [r1] - movs r2, 0x8 - subs r2, r1 - lsls r2, 18 - movs r1, 0xA0 - lsls r1, 15 - adds r2, r1 - asrs r2, 16 - movs r1, 0x50 - movs r3, 0x1E - bl CreateSprite - ldr r2, _080E9EDC @ =gBattlerSpriteIds - ldrb r1, [r6] - b _080E9F1C - .align 2, 0 -_080E9EC8: .4byte gBattleTypeFlags -_080E9ECC: .4byte gSaveBlock2Ptr -_080E9ED0: .4byte gActiveBattler -_080E9ED4: .4byte gMultiuseSpriteTemplate -_080E9ED8: .4byte gTrainerBackPicCoords -_080E9EDC: .4byte gBattlerSpriteIds -_080E9EE0: - ldr r4, _080E9F8C @ =gActiveBattler - ldrb r1, [r4] - movs r0, 0x5 - bl DecompressTrainerBackPalette - ldrb r0, [r4] - bl GetBattlerPosition - adds r1, r0, 0 - lsls r1, 24 - lsrs r1, 24 - movs r0, 0x5 - bl SetMultiuseSpriteTemplateToTrainerBack - ldr r0, _080E9F90 @ =gMultiuseSpriteTemplate - ldr r1, _080E9F94 @ =gTrainerBackPicCoords - ldrb r1, [r1, 0x14] - movs r2, 0x8 - subs r2, r1 - lsls r2, 18 - movs r1, 0xA0 - lsls r1, 15 - adds r2, r1 - asrs r2, 16 - movs r1, 0x50 - movs r3, 0x1E - bl CreateSprite - ldr r2, _080E9F98 @ =gBattlerSpriteIds - ldrb r1, [r4] -_080E9F1C: - adds r1, r2 - strb r0, [r1] - ldr r4, _080E9F9C @ =gSprites - ldr r5, _080E9F98 @ =gBattlerSpriteIds - ldr r6, _080E9F8C @ =gActiveBattler - ldrb r3, [r6] - adds r0, r3, r5 - ldrb r0, [r0] - lsls r1, r0, 4 - adds r1, r0 - lsls r1, 2 - adds r1, r4 - lsls r3, 4 - ldrb r2, [r1, 0x5] - movs r0, 0xF - ands r0, r2 - orrs r0, r3 - strb r0, [r1, 0x5] - ldrb r0, [r6] - adds r0, r5 - ldrb r1, [r0] - lsls r0, r1, 4 - adds r0, r1 - lsls r0, 2 - adds r0, r4 - movs r1, 0xF0 - strh r1, [r0, 0x24] - ldrb r0, [r6] - adds r0, r5 - ldrb r1, [r0] - lsls r0, r1, 4 - adds r0, r1 - lsls r0, 2 - adds r0, r4 - ldr r1, _080E9FA0 @ =0x0000fffe - strh r1, [r0, 0x2E] - ldrb r0, [r6] - adds r0, r5 - ldrb r1, [r0] - lsls r0, r1, 4 - adds r0, r1 - lsls r0, 2 - adds r4, 0x1C - adds r0, r4 - ldr r1, _080E9FA4 @ =sub_8033EEC - str r1, [r0] - ldr r1, _080E9FA8 @ =gBattlerControllerFuncs - ldrb r0, [r6] - lsls r0, 2 - adds r0, r1 - ldr r1, _080E9FAC @ =sub_80E78E0 - str r1, [r0] - pop {r4-r6} - pop {r0} - bx r0 - .align 2, 0 -_080E9F8C: .4byte gActiveBattler -_080E9F90: .4byte gMultiuseSpriteTemplate -_080E9F94: .4byte gTrainerBackPicCoords -_080E9F98: .4byte gBattlerSpriteIds -_080E9F9C: .4byte gSprites -_080E9FA0: .4byte 0x0000fffe -_080E9FA4: .4byte sub_8033EEC -_080E9FA8: .4byte gBattlerControllerFuncs -_080E9FAC: .4byte sub_80E78E0 - thumb_func_end sub_80E9E6C - - thumb_func_start sub_80E9FB0 -sub_80E9FB0: @ 80E9FB0 - push {r4-r6,lr} - ldr r0, _080EA00C @ =gBattleTypeFlags - ldr r0, [r0] - movs r1, 0x10 - ands r0, r1 - cmp r0, 0 - beq _080EA024 - ldr r4, _080EA010 @ =gSaveBlock2Ptr - ldr r0, [r4] - ldrb r0, [r0, 0x8] - ldr r6, _080EA014 @ =gActiveBattler - ldrb r1, [r6] - bl DecompressTrainerBackPalette - ldr r0, [r4] - ldrb r5, [r0, 0x8] - ldrb r0, [r6] - bl GetBattlerPosition - adds r1, r0, 0 - lsls r1, 24 - lsrs r1, 24 - adds r0, r5, 0 - bl SetMultiuseSpriteTemplateToTrainerBack - ldr r0, _080EA018 @ =gMultiuseSpriteTemplate - ldr r2, _080EA01C @ =gTrainerBackPicCoords - ldr r1, [r4] - ldrb r1, [r1, 0x8] - lsls r1, 2 - adds r1, r2 - ldrb r1, [r1] - movs r2, 0x8 - subs r2, r1 - lsls r2, 18 - movs r1, 0xA0 - lsls r1, 15 - adds r2, r1 - asrs r2, 16 - movs r1, 0x50 - movs r3, 0x1E - bl CreateSprite - ldr r2, _080EA020 @ =gBattlerSpriteIds - ldrb r1, [r6] - b _080EA060 - .align 2, 0 -_080EA00C: .4byte gBattleTypeFlags -_080EA010: .4byte gSaveBlock2Ptr -_080EA014: .4byte gActiveBattler -_080EA018: .4byte gMultiuseSpriteTemplate -_080EA01C: .4byte gTrainerBackPicCoords -_080EA020: .4byte gBattlerSpriteIds -_080EA024: - ldr r4, _080EA0D0 @ =gActiveBattler - ldrb r1, [r4] - movs r0, 0x5 - bl DecompressTrainerBackPalette - ldrb r0, [r4] - bl GetBattlerPosition - adds r1, r0, 0 - lsls r1, 24 - lsrs r1, 24 - movs r0, 0x5 - bl SetMultiuseSpriteTemplateToTrainerBack - ldr r0, _080EA0D4 @ =gMultiuseSpriteTemplate - ldr r1, _080EA0D8 @ =gTrainerBackPicCoords - ldrb r1, [r1, 0x14] - movs r2, 0x8 - subs r2, r1 - lsls r2, 18 - movs r1, 0xA0 - lsls r1, 15 - adds r2, r1 - asrs r2, 16 - movs r1, 0x50 - movs r3, 0x1E - bl CreateSprite - ldr r2, _080EA0DC @ =gBattlerSpriteIds - ldrb r1, [r4] -_080EA060: - adds r1, r2 - strb r0, [r1] - ldr r4, _080EA0E0 @ =gSprites - ldr r5, _080EA0DC @ =gBattlerSpriteIds - ldr r6, _080EA0D0 @ =gActiveBattler - ldrb r3, [r6] - adds r0, r3, r5 - ldrb r0, [r0] - lsls r1, r0, 4 - adds r1, r0 - lsls r1, 2 - adds r1, r4 - lsls r3, 4 - ldrb r2, [r1, 0x5] - movs r0, 0xF - ands r0, r2 - orrs r0, r3 - strb r0, [r1, 0x5] - ldrb r0, [r6] - adds r0, r5 - ldrb r1, [r0] - lsls r0, r1, 4 - adds r0, r1 - lsls r0, 2 - adds r0, r4 - ldr r1, _080EA0E4 @ =0x0000ffa0 - strh r1, [r0, 0x24] - ldrb r0, [r6] - adds r0, r5 - ldrb r1, [r0] - lsls r0, r1, 4 - adds r0, r1 - lsls r0, 2 - adds r0, r4 - movs r1, 0x2 - strh r1, [r0, 0x2E] - ldrb r0, [r6] - adds r0, r5 - ldrb r1, [r0] - lsls r0, r1, 4 - adds r0, r1 - lsls r0, 2 - adds r4, 0x1C - adds r0, r4 - ldr r1, _080EA0E8 @ =sub_8033EEC - str r1, [r0] - ldr r1, _080EA0EC @ =gBattlerControllerFuncs - ldrb r0, [r6] - lsls r0, 2 - adds r0, r1 - ldr r1, _080EA0F0 @ =sub_80E8A34 - str r1, [r0] - pop {r4-r6} - pop {r0} - bx r0 - .align 2, 0 -_080EA0D0: .4byte gActiveBattler -_080EA0D4: .4byte gMultiuseSpriteTemplate -_080EA0D8: .4byte gTrainerBackPicCoords -_080EA0DC: .4byte gBattlerSpriteIds -_080EA0E0: .4byte gSprites -_080EA0E4: .4byte 0x0000ffa0 -_080EA0E8: .4byte sub_8033EEC -_080EA0EC: .4byte gBattlerControllerFuncs -_080EA0F0: .4byte sub_80E8A34 - thumb_func_end sub_80E9FB0 - - thumb_func_start sub_80EA0F4 -sub_80EA0F4: @ 80EA0F4 - push {lr} - bl WallyBufferExecCompleted - pop {r0} - bx r0 - thumb_func_end sub_80EA0F4 - - thumb_func_start sub_80EA100 -sub_80EA100: @ 80EA100 - push {r4-r6,lr} - ldr r6, _080EA14C @ =gBattleSpritesDataPtr - ldr r4, [r6] - ldr r5, _080EA150 @ =gActiveBattler - ldrb r2, [r5] - ldr r0, [r4, 0x4] - lsls r1, r2, 1 - adds r1, r2 - lsls r1, 2 - adds r3, r1, r0 - ldrb r0, [r3, 0x4] - cmp r0, 0 - bne _080EA154 - ldr r1, [r4] - lsls r0, r2, 2 - adds r0, r1 - ldrb r1, [r0] - movs r0, 0x4 - ands r0, r1 - cmp r0, 0 - beq _080EA134 - adds r0, r2, 0 - adds r1, r2, 0 - movs r3, 0x5 - bl InitAndLaunchSpecialAnimation -_080EA134: - ldr r0, [r6] - ldrb r1, [r5] - ldr r2, [r0, 0x4] - lsls r0, r1, 1 - adds r0, r1 - lsls r0, 2 - adds r0, r2 - ldrb r1, [r0, 0x4] - adds r1, 0x1 - strb r1, [r0, 0x4] - b _080EA1CA - .align 2, 0 -_080EA14C: .4byte gBattleSpritesDataPtr -_080EA150: .4byte gActiveBattler -_080EA154: - ldrb r1, [r3] - movs r0, 0x40 - ands r0, r1 - lsls r0, 24 - lsrs r4, r0, 24 - cmp r4, 0 - bne _080EA1CA - strb r4, [r3, 0x4] - ldr r2, _080EA1D0 @ =gBattlerPartyIndexes - ldrb r1, [r5] - lsls r0, r1, 1 - adds r0, r2 - ldrh r2, [r0] - movs r0, 0x64 - muls r0, r2 - ldr r2, _080EA1D4 @ =gPlayerParty - adds r0, r2 - bl HandleLowHpMusicChange - movs r1, 0x40 - negs r1, r1 - movs r0, 0x10 - bl PlaySE12WithPanning - ldr r2, _080EA1D8 @ =gSprites - ldr r3, _080EA1DC @ =gBattlerSpriteIds - ldrb r0, [r5] - adds r0, r3 - ldrb r1, [r0] - lsls r0, r1, 4 - adds r0, r1 - lsls r0, 2 - adds r0, r2 - strh r4, [r0, 0x30] - ldrb r0, [r5] - adds r0, r3 - ldrb r1, [r0] - lsls r0, r1, 4 - adds r0, r1 - lsls r0, 2 - adds r0, r2 - movs r1, 0x5 - strh r1, [r0, 0x32] - ldrb r0, [r5] - adds r0, r3 - ldrb r1, [r0] - lsls r0, r1, 4 - adds r0, r1 - lsls r0, 2 - adds r2, 0x1C - adds r0, r2 - ldr r1, _080EA1E0 @ =sub_8012110 - str r1, [r0] - ldr r1, _080EA1E4 @ =gBattlerControllerFuncs - ldrb r0, [r5] - lsls r0, 2 - adds r0, r1 - ldr r1, _080EA1E8 @ =sub_80E82F4 - str r1, [r0] -_080EA1CA: - pop {r4-r6} - pop {r0} - bx r0 - .align 2, 0 -_080EA1D0: .4byte gBattlerPartyIndexes -_080EA1D4: .4byte gPlayerParty -_080EA1D8: .4byte gSprites -_080EA1DC: .4byte gBattlerSpriteIds -_080EA1E0: .4byte sub_8012110 -_080EA1E4: .4byte gBattlerControllerFuncs -_080EA1E8: .4byte sub_80E82F4 - thumb_func_end sub_80EA100 - - thumb_func_start sub_80EA1EC -sub_80EA1EC: @ 80EA1EC - push {lr} - bl WallyBufferExecCompleted - pop {r0} - bx r0 - thumb_func_end sub_80EA1EC - - thumb_func_start sub_80EA1F8 -sub_80EA1F8: @ 80EA1F8 - push {r4,r5,lr} - ldr r0, _080EA238 @ =gBattleSpritesDataPtr - ldr r0, [r0] - ldr r1, [r0, 0x8] - movs r0, 0x4 - strb r0, [r1, 0x8] - ldr r1, _080EA23C @ =gDoingBattleAnim - movs r0, 0x1 - strb r0, [r1] - ldr r5, _080EA240 @ =gActiveBattler - ldrb r4, [r5] - movs r0, 0x1 - bl GetBattlerAtPosition - adds r2, r0, 0 - lsls r2, 24 - lsrs r2, 24 - adds r0, r4, 0 - adds r1, r4, 0 - movs r3, 0x4 - bl InitAndLaunchSpecialAnimation - ldr r1, _080EA244 @ =gBattlerControllerFuncs - ldrb r0, [r5] - lsls r0, 2 - adds r0, r1 - ldr r1, _080EA248 @ =sub_80E7970 - str r1, [r0] - pop {r4,r5} - pop {r0} - bx r0 - .align 2, 0 -_080EA238: .4byte gBattleSpritesDataPtr -_080EA23C: .4byte gDoingBattleAnim -_080EA240: .4byte gActiveBattler -_080EA244: .4byte gBattlerControllerFuncs -_080EA248: .4byte sub_80E7970 - thumb_func_end sub_80EA1F8 - - thumb_func_start sub_80EA24C -sub_80EA24C: @ 80EA24C - push {r4,r5,lr} - ldr r1, _080EA294 @ =gBattleBufferA - ldr r5, _080EA298 @ =gActiveBattler - ldrb r0, [r5] - lsls r0, 9 - adds r1, 0x1 - adds r0, r1 - ldrb r1, [r0] - ldr r0, _080EA29C @ =gBattleSpritesDataPtr - ldr r0, [r0] - ldr r0, [r0, 0x8] - strb r1, [r0, 0x8] - ldr r1, _080EA2A0 @ =gDoingBattleAnim - movs r0, 0x1 - strb r0, [r1] - ldrb r4, [r5] - movs r0, 0x1 - bl GetBattlerAtPosition - adds r2, r0, 0 - lsls r2, 24 - lsrs r2, 24 - adds r0, r4, 0 - adds r1, r4, 0 - movs r3, 0x4 - bl InitAndLaunchSpecialAnimation - ldr r1, _080EA2A4 @ =gBattlerControllerFuncs - ldrb r0, [r5] - lsls r0, 2 - adds r0, r1 - ldr r1, _080EA2A8 @ =sub_80E7970 - str r1, [r0] - pop {r4,r5} - pop {r0} - bx r0 - .align 2, 0 -_080EA294: .4byte gBattleBufferA -_080EA298: .4byte gActiveBattler -_080EA29C: .4byte gBattleSpritesDataPtr -_080EA2A0: .4byte gDoingBattleAnim -_080EA2A4: .4byte gBattlerControllerFuncs -_080EA2A8: .4byte sub_80E7970 - thumb_func_end sub_80EA24C - - thumb_func_start sub_80EA2AC -sub_80EA2AC: @ 80EA2AC - push {lr} - bl WallyBufferExecCompleted - pop {r0} - bx r0 - thumb_func_end sub_80EA2AC - - thumb_func_start sub_80EA2B8 -sub_80EA2B8: @ 80EA2B8 - push {r4-r6,lr} - ldr r0, _080EA38C @ =gBattleBufferA - mov r12, r0 - ldr r6, _080EA390 @ =gActiveBattler - ldrb r2, [r6] - lsls r2, 9 - adds r0, 0x1 - adds r0, r2, r0 - ldrb r0, [r0] - mov r1, r12 - adds r1, 0x2 - adds r1, r2, r1 - ldrb r1, [r1] - lsls r1, 8 - orrs r0, r1 - ldr r5, _080EA394 @ =gAnimMoveTurn - mov r1, r12 - adds r1, 0x3 - adds r2, r1 - ldrb r1, [r2] - strb r1, [r5] - ldr r4, _080EA398 @ =gAnimMovePower - ldrb r2, [r6] - lsls r2, 9 - mov r1, r12 - adds r1, 0x4 - adds r1, r2, r1 - ldrb r3, [r1] - mov r1, r12 - adds r1, 0x5 - adds r2, r1 - ldrb r1, [r2] - lsls r1, 8 - orrs r3, r1 - strh r3, [r4] - ldr r4, _080EA39C @ =gAnimMoveDmg - ldrb r2, [r6] - lsls r2, 9 - mov r1, r12 - adds r1, 0x6 - adds r1, r2, r1 - ldrb r3, [r1] - mov r1, r12 - adds r1, 0x7 - adds r1, r2, r1 - ldrb r1, [r1] - lsls r1, 8 - orrs r3, r1 - mov r1, r12 - adds r1, 0x8 - adds r1, r2, r1 - ldrb r1, [r1] - lsls r1, 16 - orrs r3, r1 - mov r1, r12 - adds r1, 0x9 - adds r2, r1 - ldrb r1, [r2] - lsls r1, 24 - orrs r3, r1 - str r3, [r4] - ldr r3, _080EA3A0 @ =gAnimFriendship - ldrb r1, [r6] - lsls r1, 9 - mov r2, r12 - adds r2, 0xA - adds r1, r2 - ldrb r1, [r1] - strb r1, [r3] - ldr r4, _080EA3A4 @ =gWeatherMoveAnim - ldrb r2, [r6] - lsls r2, 9 - mov r1, r12 - adds r1, 0xC - adds r1, r2, r1 - ldrb r3, [r1] - mov r1, r12 - adds r1, 0xD - adds r2, r1 - ldrb r1, [r2] - lsls r1, 8 - orrs r3, r1 - strh r3, [r4] - ldr r3, _080EA3A8 @ =gAnimDisableStructPtr - ldrb r2, [r6] - lsls r2, 9 - mov r1, r12 - adds r1, 0x10 - adds r2, r1 - str r2, [r3] - ldr r3, _080EA3AC @ =gTransformedPersonalities - ldrb r1, [r6] - lsls r1, 2 - adds r1, r3 - ldr r2, [r2] - str r2, [r1] - ldrb r1, [r5] - bl IsMoveWithoutAnimation - lsls r0, 24 - lsrs r3, r0, 24 - cmp r3, 0 - beq _080EA3B0 - bl WallyBufferExecCompleted - b _080EA3CE - .align 2, 0 -_080EA38C: .4byte gBattleBufferA -_080EA390: .4byte gActiveBattler -_080EA394: .4byte gAnimMoveTurn -_080EA398: .4byte gAnimMovePower -_080EA39C: .4byte gAnimMoveDmg -_080EA3A0: .4byte gAnimFriendship -_080EA3A4: .4byte gWeatherMoveAnim -_080EA3A8: .4byte gAnimDisableStructPtr -_080EA3AC: .4byte gTransformedPersonalities -_080EA3B0: - ldr r0, _080EA3D4 @ =gBattleSpritesDataPtr - ldr r0, [r0] - ldrb r1, [r6] - ldr r2, [r0, 0x4] - lsls r0, r1, 1 - adds r0, r1 - lsls r0, 2 - adds r0, r2 - strb r3, [r0, 0x4] - ldr r1, _080EA3D8 @ =gBattlerControllerFuncs - ldrb r0, [r6] - lsls r0, 2 - adds r0, r1 - ldr r1, _080EA3DC @ =sub_80EA3E0 - str r1, [r0] -_080EA3CE: - pop {r4-r6} - pop {r0} - bx r0 - .align 2, 0 -_080EA3D4: .4byte gBattleSpritesDataPtr -_080EA3D8: .4byte gBattlerControllerFuncs -_080EA3DC: .4byte sub_80EA3E0 - thumb_func_end sub_80EA2B8 - - thumb_func_start sub_80EA3E0 -sub_80EA3E0: @ 80EA3E0 - push {r4-r7,lr} - mov r7, r9 - mov r6, r8 - push {r6,r7} - ldr r2, _080EA424 @ =gBattleBufferA - ldr r6, _080EA428 @ =gActiveBattler - ldrb r3, [r6] - lsls r1, r3, 9 - adds r0, r2, 0x1 - mov r9, r0 - adds r0, r1, r0 - ldrb r4, [r0] - adds r2, 0x2 - mov r8, r2 - add r1, r8 - ldrb r0, [r1] - lsls r0, 8 - orrs r4, r0 - ldr r7, _080EA42C @ =gBattleSpritesDataPtr - ldr r5, [r7] - ldr r1, [r5, 0x4] - lsls r0, r3, 1 - adds r0, r3 - lsls r0, 2 - adds r0, r1 - ldrb r2, [r0, 0x4] - cmp r2, 0x1 - beq _080EA46A - cmp r2, 0x1 - bgt _080EA430 - cmp r2, 0 - beq _080EA43A - b _080EA520 - .align 2, 0 -_080EA424: .4byte gBattleBufferA -_080EA428: .4byte gActiveBattler -_080EA42C: .4byte gBattleSpritesDataPtr -_080EA430: - cmp r2, 0x2 - beq _080EA494 - cmp r2, 0x3 - beq _080EA4E4 - b _080EA520 -_080EA43A: - ldr r1, [r5] - lsls r0, r3, 2 - adds r0, r1 - ldrb r1, [r0] - movs r0, 0x4 - ands r0, r1 - cmp r0, 0 - beq _080EA456 - adds r0, r3, 0 - adds r1, r3, 0 - adds r2, r3, 0 - movs r3, 0x5 - bl InitAndLaunchSpecialAnimation -_080EA456: - ldr r0, [r7] - ldrb r1, [r6] - ldr r2, [r0, 0x4] - lsls r0, r1, 1 - adds r0, r1 - lsls r0, 2 - adds r0, r2 - movs r1, 0x1 - strb r1, [r0, 0x4] - b _080EA520 -_080EA46A: - ldrb r1, [r0] - movs r0, 0x40 - ands r0, r1 - cmp r0, 0 - bne _080EA520 - movs r0, 0 - bl sub_8035450 - adds r0, r4, 0 - bl DoMoveAnim - ldr r0, [r7] - ldrb r1, [r6] - ldr r2, [r0, 0x4] - lsls r0, r1, 1 - adds r0, r1 - lsls r0, 2 - adds r0, r2 - movs r1, 0x2 - strb r1, [r0, 0x4] - b _080EA520 -_080EA494: - ldr r0, _080EA4DC @ =gAnimScriptCallback - ldr r0, [r0] - bl _call_via_r0 - ldr r0, _080EA4E0 @ =gAnimScriptActive - ldrb r0, [r0] - cmp r0, 0 - bne _080EA520 - movs r0, 0x1 - bl sub_8035450 - ldr r0, [r7] - ldrb r2, [r6] - ldr r1, [r0] - lsls r0, r2, 2 - adds r0, r1 - ldrb r1, [r0] - movs r0, 0x4 - ands r0, r1 - cmp r0, 0 - beq _080EA4C8 - adds r0, r2, 0 - adds r1, r2, 0 - movs r3, 0x6 - bl InitAndLaunchSpecialAnimation -_080EA4C8: - ldr r0, [r7] - ldrb r1, [r6] - ldr r2, [r0, 0x4] - lsls r0, r1, 1 - adds r0, r1 - lsls r0, 2 - adds r0, r2 - movs r1, 0x3 - strb r1, [r0, 0x4] - b _080EA520 - .align 2, 0 -_080EA4DC: .4byte gAnimScriptCallback -_080EA4E0: .4byte gAnimScriptActive -_080EA4E4: - ldrb r1, [r0] - movs r0, 0x40 - ands r0, r1 - lsls r0, 24 - lsrs r4, r0, 24 - cmp r4, 0 - bne _080EA520 - bl CopyAllBattleSpritesInvisibilities - ldrb r0, [r6] - lsls r2, r0, 9 - mov r3, r9 - adds r1, r2, r3 - ldrb r1, [r1] - add r2, r8 - ldrb r2, [r2] - lsls r2, 8 - orrs r1, r2 - bl TrySetBehindSubstituteSpriteBit - ldr r0, [r7] - ldrb r1, [r6] - ldr r2, [r0, 0x4] - lsls r0, r1, 1 - adds r0, r1 - lsls r0, 2 - adds r0, r2 - strb r4, [r0, 0x4] - bl WallyBufferExecCompleted -_080EA520: - pop {r3,r4} - mov r8, r3 - mov r9, r4 - pop {r4-r7} - pop {r0} - bx r0 - thumb_func_end sub_80EA3E0 - - thumb_func_start sub_80EA52C -sub_80EA52C: @ 80EA52C - push {r4,lr} - ldr r0, _080EA55C @ =gBattle_BG0_X - movs r1, 0 - strh r1, [r0] - ldr r0, _080EA560 @ =gBattle_BG0_Y - strh r1, [r0] - ldr r0, _080EA564 @ =gActiveBattler - ldrb r0, [r0] - lsls r0, 9 - ldr r1, _080EA568 @ =gUnknown_2022BC6 - adds r4, r0, r1 - ldr r0, _080EA56C @ =gBattleTypeFlags - ldr r0, [r0] - movs r1, 0x80 - lsls r1, 2 - ands r0, r1 - cmp r0, 0 - beq _080EA570 - ldrh r0, [r4] - cmp r0, 0x1 - bne _080EA570 - bl WallyBufferExecCompleted - b _080EA65A - .align 2, 0 -_080EA55C: .4byte gBattle_BG0_X -_080EA560: .4byte gBattle_BG0_Y -_080EA564: .4byte gActiveBattler -_080EA568: .4byte gUnknown_2022BC6 -_080EA56C: .4byte gBattleTypeFlags -_080EA570: - ldrh r0, [r4] - bl BufferStringBattle - ldrh r0, [r4] - bl sub_80D89B0 - lsls r0, 24 - cmp r0, 0 - beq _080EA590 - ldr r0, _080EA58C @ =gDisplayedStringBattle - movs r1, 0x40 - bl BattlePutTextOnWindow - b _080EA598 - .align 2, 0 -_080EA58C: .4byte gDisplayedStringBattle -_080EA590: - ldr r0, _080EA5B4 @ =gDisplayedStringBattle - movs r1, 0 - bl BattlePutTextOnWindow -_080EA598: - ldr r0, _080EA5B8 @ =gBattleTypeFlags - ldr r0, [r0] - movs r1, 0x10 - ands r0, r1 - cmp r0, 0 - beq _080EA64C - ldrh r1, [r4] - cmp r1, 0xD8 - beq _080EA5CC - cmp r1, 0xD8 - bgt _080EA5BC - cmp r1, 0x1E - beq _080EA5F8 - b _080EA64C - .align 2, 0 -_080EA5B4: .4byte gDisplayedStringBattle -_080EA5B8: .4byte gBattleTypeFlags -_080EA5BC: - cmp r1, 0xE3 - beq _080EA630 - ldr r0, _080EA5C8 @ =0x0000017f - cmp r1, r0 - beq _080EA614 - b _080EA64C - .align 2, 0 -_080EA5C8: .4byte 0x0000017f -_080EA5CC: - movs r0, 0x2 - bl sub_80EB2E0 - lsls r0, 24 - cmp r0, 0 - bne _080EA64C - movs r0, 0x2 - bl sub_80EB2F4 - ldr r1, _080EA5EC @ =gBattlerControllerFuncs - ldr r0, _080EA5F0 @ =gActiveBattler - ldrb r0, [r0] - lsls r0, 2 - adds r0, r1 - ldr r1, _080EA5F4 @ =sub_80E8584 - b _080EA658 - .align 2, 0 -_080EA5EC: .4byte gBattlerControllerFuncs -_080EA5F0: .4byte gActiveBattler -_080EA5F4: .4byte sub_80E8584 -_080EA5F8: - ldr r1, _080EA608 @ =gBattlerControllerFuncs - ldr r0, _080EA60C @ =gActiveBattler - ldrb r0, [r0] - lsls r0, 2 - adds r0, r1 - ldr r1, _080EA610 @ =sub_80E85AC - b _080EA658 - .align 2, 0 -_080EA608: .4byte gBattlerControllerFuncs -_080EA60C: .4byte gActiveBattler -_080EA610: .4byte sub_80E85AC -_080EA614: - ldr r1, _080EA624 @ =gBattlerControllerFuncs - ldr r0, _080EA628 @ =gActiveBattler - ldrb r0, [r0] - lsls r0, 2 - adds r0, r1 - ldr r1, _080EA62C @ =sub_80E85C0 - b _080EA658 - .align 2, 0 -_080EA624: .4byte gBattlerControllerFuncs -_080EA628: .4byte gActiveBattler -_080EA62C: .4byte sub_80E85C0 -_080EA630: - ldr r1, _080EA640 @ =gBattlerControllerFuncs - ldr r0, _080EA644 @ =gActiveBattler - ldrb r0, [r0] - lsls r0, 2 - adds r0, r1 - ldr r1, _080EA648 @ =sub_80E8598 - b _080EA658 - .align 2, 0 -_080EA640: .4byte gBattlerControllerFuncs -_080EA644: .4byte gActiveBattler -_080EA648: .4byte sub_80E8598 -_080EA64C: - ldr r1, _080EA660 @ =gBattlerControllerFuncs - ldr r0, _080EA664 @ =gActiveBattler - ldrb r0, [r0] - lsls r0, 2 - adds r0, r1 - ldr r1, _080EA668 @ =sub_80E7918 -_080EA658: - str r1, [r0] -_080EA65A: - pop {r4} - pop {r0} - bx r0 - .align 2, 0 -_080EA660: .4byte gBattlerControllerFuncs -_080EA664: .4byte gActiveBattler -_080EA668: .4byte sub_80E7918 - thumb_func_end sub_80EA52C - - thumb_func_start sub_80EA66C -sub_80EA66C: @ 80EA66C - push {lr} - ldr r0, _080EA684 @ =gActiveBattler - ldrb r0, [r0] - bl GetBattlerSide - lsls r0, 24 - cmp r0, 0 - bne _080EA688 - bl sub_80EA52C - b _080EA68C - .align 2, 0 -_080EA684: .4byte gActiveBattler -_080EA688: - bl WallyBufferExecCompleted -_080EA68C: - pop {r0} - bx r0 - thumb_func_end sub_80EA66C - - thumb_func_start sub_80EA690 -sub_80EA690: @ 80EA690 - push {lr} - bl IsDma3ManagerBusyWithBgCopy - lsls r0, 24 - lsrs r1, r0, 24 - cmp r1, 0 - bne _080EA6EA - ldr r0, _080EA6C4 @ =gBattle_BG0_X - strh r1, [r0] - ldr r1, _080EA6C8 @ =gBattle_BG0_Y - movs r0, 0xA0 - strh r0, [r1] - ldr r0, _080EA6CC @ =gBattleTypeFlags - ldr r0, [r0] - movs r1, 0x10 - ands r0, r1 - cmp r0, 0 - beq _080EA6DC - ldr r1, _080EA6D0 @ =gBattlerControllerFuncs - ldr r0, _080EA6D4 @ =gActiveBattler - ldrb r0, [r0] - lsls r0, 2 - adds r0, r1 - ldr r1, _080EA6D8 @ =sub_80E763C - b _080EA6E8 - .align 2, 0 -_080EA6C4: .4byte gBattle_BG0_X -_080EA6C8: .4byte gBattle_BG0_Y -_080EA6CC: .4byte gBattleTypeFlags -_080EA6D0: .4byte gBattlerControllerFuncs -_080EA6D4: .4byte gActiveBattler -_080EA6D8: .4byte sub_80E763C -_080EA6DC: - ldr r1, _080EA6F0 @ =gBattlerControllerFuncs - ldr r0, _080EA6F4 @ =gActiveBattler - ldrb r0, [r0] - lsls r0, 2 - adds r0, r1 - ldr r1, _080EA6F8 @ =sub_80E7844 -_080EA6E8: - str r1, [r0] -_080EA6EA: - pop {r0} - bx r0 - .align 2, 0 -_080EA6F0: .4byte gBattlerControllerFuncs -_080EA6F4: .4byte gActiveBattler -_080EA6F8: .4byte sub_80E7844 - thumb_func_end sub_80EA690 - - thumb_func_start sub_80EA6FC -sub_80EA6FC: @ 80EA6FC - push {r4,lr} - ldr r1, _080EA750 @ =gBattlerControllerFuncs - ldr r0, _080EA754 @ =gActiveBattler - ldrb r0, [r0] - lsls r0, 2 - adds r0, r1 - ldr r1, _080EA758 @ =sub_80EA690 - str r1, [r0] - ldr r0, _080EA75C @ =gUnknown_83FDA4C - movs r1, 0 - bl BattlePutTextOnWindow - ldr r0, _080EA760 @ =gUnknown_83FE725 - movs r1, 0x2 - bl BattlePutTextOnWindow - movs r4, 0 -_080EA71E: - lsls r0, r4, 24 - lsrs r0, 24 - bl ActionSelectionDestroyCursorAt - adds r4, 0x1 - cmp r4, 0x3 - ble _080EA71E - ldr r1, _080EA764 @ =gActionSelectionCursor - ldr r0, _080EA754 @ =gActiveBattler - ldrb r0, [r0] - adds r0, r1 - ldrb r0, [r0] - movs r1, 0 - bl ActionSelectionCreateCursorAt - ldr r0, _080EA768 @ =gBattleTypeFlags - ldr r0, [r0] - movs r1, 0x10 - ands r0, r1 - cmp r0, 0 - beq _080EA770 - ldr r0, _080EA76C @ =gText_WhatWillPkmnDo - bl BattleStringExpandPlaceholdersToDisplayedString - b _080EA776 - .align 2, 0 -_080EA750: .4byte gBattlerControllerFuncs -_080EA754: .4byte gActiveBattler -_080EA758: .4byte sub_80EA690 -_080EA75C: .4byte gUnknown_83FDA4C -_080EA760: .4byte gUnknown_83FE725 -_080EA764: .4byte gActionSelectionCursor -_080EA768: .4byte gBattleTypeFlags -_080EA76C: .4byte gText_WhatWillPkmnDo -_080EA770: - ldr r0, _080EA784 @ =gUnknown_83FE6FA - bl BattleStringExpandPlaceholdersToDisplayedString -_080EA776: - ldr r0, _080EA788 @ =gDisplayedStringBattle - movs r1, 0x1 - bl BattlePutTextOnWindow - pop {r4} - pop {r0} - bx r0 - .align 2, 0 -_080EA784: .4byte gUnknown_83FE6FA -_080EA788: .4byte gDisplayedStringBattle - thumb_func_end sub_80EA6FC - - thumb_func_start sub_80EA78C -sub_80EA78C: @ 80EA78C - push {lr} - bl WallyBufferExecCompleted - pop {r0} - bx r0 - thumb_func_end sub_80EA78C - - thumb_func_start sub_80EA798 -sub_80EA798: @ 80EA798 - push {lr} - bl IsDma3ManagerBusyWithBgCopy - lsls r0, 24 - lsrs r1, r0, 24 - cmp r1, 0 - bne _080EA7C2 - ldr r0, _080EA7C8 @ =gBattle_BG0_X - strh r1, [r0] - ldr r1, _080EA7CC @ =gBattle_BG0_Y - movs r2, 0xA0 - lsls r2, 1 - adds r0, r2, 0 - strh r0, [r1] - ldr r1, _080EA7D0 @ =gBattlerControllerFuncs - ldr r0, _080EA7D4 @ =gActiveBattler - ldrb r0, [r0] - lsls r0, 2 - adds r0, r1 - ldr r1, _080EA7D8 @ =sub_80E7988 - str r1, [r0] -_080EA7C2: - pop {r0} - bx r0 - .align 2, 0 -_080EA7C8: .4byte gBattle_BG0_X -_080EA7CC: .4byte gBattle_BG0_Y -_080EA7D0: .4byte gBattlerControllerFuncs -_080EA7D4: .4byte gActiveBattler -_080EA7D8: .4byte sub_80E7988 - thumb_func_end sub_80EA798 - - thumb_func_start sub_80EA7DC -sub_80EA7DC: @ 80EA7DC - push {r4,lr} - ldr r0, _080EA800 @ =gBattleTypeFlags - ldr r0, [r0] - movs r1, 0x10 - ands r0, r1 - cmp r0, 0 - beq _080EA810 - bl InitMoveSelectionsVarsAndStrings - ldr r1, _080EA804 @ =gBattlerControllerFuncs - ldr r0, _080EA808 @ =gActiveBattler - ldrb r0, [r0] - lsls r0, 2 - adds r0, r1 - ldr r1, _080EA80C @ =sub_80EA798 - str r1, [r0] - b _080EA866 - .align 2, 0 -_080EA800: .4byte gBattleTypeFlags -_080EA804: .4byte gBattlerControllerFuncs -_080EA808: .4byte gActiveBattler -_080EA80C: .4byte sub_80EA798 -_080EA810: - ldr r4, _080EA824 @ =gBattleStruct - ldr r0, [r4] - adds r0, 0x95 - ldrb r0, [r0] - cmp r0, 0 - beq _080EA828 - cmp r0, 0x1 - beq _080EA83E - b _080EA866 - .align 2, 0 -_080EA824: .4byte gBattleStruct -_080EA828: - bl InitMoveSelectionsVarsAndStrings - ldr r1, [r4] - adds r1, 0x95 - ldrb r0, [r1] - adds r0, 0x1 - strb r0, [r1] - ldr r0, [r4] - adds r0, 0x97 - movs r1, 0x50 - strb r1, [r0] -_080EA83E: - ldr r0, _080EA86C @ =gBattleStruct - ldr r1, [r0] - adds r1, 0x97 - ldrb r0, [r1] - subs r0, 0x1 - strb r0, [r1] - lsls r0, 24 - cmp r0, 0 - bne _080EA866 - movs r0, 0x5 - bl PlaySE - movs r2, 0x80 - lsls r2, 1 - movs r0, 0x1 - movs r1, 0xA - bl BtlController_EmitTwoReturnValues - bl WallyBufferExecCompleted -_080EA866: - pop {r4} - pop {r0} - bx r0 - .align 2, 0 -_080EA86C: .4byte gBattleStruct - thumb_func_end sub_80EA7DC - - thumb_func_start sub_80EA870 -sub_80EA870: @ 80EA870 - push {r4,r5,lr} - sub sp, 0x4 - movs r0, 0x1 - negs r0, r0 - movs r1, 0 - str r1, [sp] - movs r2, 0 - movs r3, 0x10 - bl BeginNormalPaletteFade - ldr r1, _080EA8BC @ =gBattlerControllerFuncs - ldr r2, _080EA8C0 @ =gActiveBattler - ldrb r0, [r2] - lsls r0, 2 - adds r0, r1 - ldr r1, _080EA8C4 @ =sub_80E7A70 - str r1, [r0] - ldr r1, _080EA8C8 @ =gBattlerInMenuId - ldrb r0, [r2] - strb r0, [r1] - movs r3, 0 - ldr r5, _080EA8CC @ =gUnknown_203B0DC - ldr r4, _080EA8D0 @ =gBattleBufferA -_080EA89E: - adds r0, r3, r5 - ldrb r1, [r2] - lsls r1, 9 - adds r1, 0x1 - adds r1, r3, r1 - adds r1, r4 - ldrb r1, [r1] - strb r1, [r0] - adds r3, 0x1 - cmp r3, 0x2 - ble _080EA89E - add sp, 0x4 - pop {r4,r5} - pop {r0} - bx r0 - .align 2, 0 -_080EA8BC: .4byte gBattlerControllerFuncs -_080EA8C0: .4byte gActiveBattler -_080EA8C4: .4byte sub_80E7A70 -_080EA8C8: .4byte gBattlerInMenuId -_080EA8CC: .4byte gUnknown_203B0DC -_080EA8D0: .4byte gBattleBufferA - thumb_func_end sub_80EA870 - - thumb_func_start sub_80EA8D4 -sub_80EA8D4: @ 80EA8D4 - push {r4-r6,lr} - sub sp, 0x4 - ldr r0, _080EA984 @ =TaskDummy - movs r1, 0xFF - bl CreateTask - ldr r3, _080EA988 @ =gUnknown_3004FFC - ldr r4, _080EA98C @ =gActiveBattler - ldrb r1, [r4] - adds r1, r3 - strb r0, [r1] - ldr r5, _080EA990 @ =gTasks - ldrb r2, [r4] - adds r3, r2, r3 - ldrb r0, [r3] - lsls r1, r0, 2 - adds r1, r0 - lsls r1, 3 - adds r1, r5 - ldr r5, _080EA994 @ =gBattleBufferA - lsls r2, 9 - adds r6, r5, 0x1 - adds r2, r6 - ldrb r2, [r2] - movs r0, 0xF - ands r0, r2 - strh r0, [r1, 0x8] - ldr r3, _080EA998 @ =gBattleStruct - ldr r1, [r3] - adds r1, 0x49 - ldrb r0, [r4] - lsls r0, 9 - adds r0, r6 - ldrb r0, [r0] - lsrs r0, 4 - strb r0, [r1] - ldr r2, [r3] - adds r2, 0x8B - ldrb r0, [r4] - lsls r0, 9 - adds r1, r5, 0x2 - adds r0, r1 - ldrb r0, [r0] - strb r0, [r2] - ldr r2, [r3] - adds r2, 0xAC - ldrb r0, [r4] - lsls r0, 9 - adds r1, r5, 0x3 - adds r0, r1 - ldrb r0, [r0] - strb r0, [r2] - movs r2, 0 - ldr r3, _080EA99C @ =gUnknown_203B0DC -_080EA940: - adds r0, r2, r3 - ldrb r1, [r4] - lsls r1, 9 - adds r1, 0x4 - adds r1, r2, r1 - adds r1, r5 - ldrb r1, [r1] - strb r1, [r0] - adds r2, 0x1 - cmp r2, 0x2 - ble _080EA940 - movs r0, 0x1 - negs r0, r0 - movs r1, 0 - str r1, [sp] - movs r2, 0 - movs r3, 0x10 - bl BeginNormalPaletteFade - ldr r1, _080EA9A0 @ =gBattlerControllerFuncs - ldr r2, _080EA98C @ =gActiveBattler - ldrb r0, [r2] - lsls r0, 2 - adds r0, r1 - ldr r1, _080EA9A4 @ =sub_80E79B8 - str r1, [r0] - ldr r1, _080EA9A8 @ =gBattlerInMenuId - ldrb r0, [r2] - strb r0, [r1] - add sp, 0x4 - pop {r4-r6} - pop {r0} - bx r0 - .align 2, 0 -_080EA984: .4byte TaskDummy -_080EA988: .4byte gUnknown_3004FFC -_080EA98C: .4byte gActiveBattler -_080EA990: .4byte gTasks -_080EA994: .4byte gBattleBufferA -_080EA998: .4byte gBattleStruct -_080EA99C: .4byte gUnknown_203B0DC -_080EA9A0: .4byte gBattlerControllerFuncs -_080EA9A4: .4byte sub_80E79B8 -_080EA9A8: .4byte gBattlerInMenuId - thumb_func_end sub_80EA8D4 - - thumb_func_start sub_80EA9AC -sub_80EA9AC: @ 80EA9AC - push {lr} - bl WallyBufferExecCompleted - pop {r0} - bx r0 - thumb_func_end sub_80EA9AC - - thumb_func_start sub_80EA9B8 -sub_80EA9B8: @ 80EA9B8 - push {r4-r7,lr} - mov r7, r9 - mov r6, r8 - push {r6,r7} - sub sp, 0x4 - movs r0, 0 - bl LoadBattleBarGfx - ldr r3, _080EAA30 @ =gBattleBufferA - ldr r0, _080EAA34 @ =gActiveBattler - mov r9, r0 - ldrb r4, [r0] - lsls r2, r4, 9 - adds r0, r3, 0x2 - adds r0, r2, r0 - ldrb r1, [r0] - adds r3, 0x3 - adds r2, r3 - ldrb r0, [r2] - lsls r0, 8 - orrs r1, r0 - lsls r1, 16 - asrs r7, r1, 16 - ldr r0, _080EAA38 @ =0x00007fff - cmp r7, r0 - beq _080EAA48 - ldr r6, _080EAA3C @ =gBattlerPartyIndexes - lsls r0, r4, 1 - adds r0, r6 - ldrh r0, [r0] - movs r5, 0x64 - muls r0, r5 - ldr r4, _080EAA40 @ =gPlayerParty - adds r0, r4 - movs r1, 0x3A - bl GetMonData - mov r8, r0 - mov r1, r9 - ldrb r0, [r1] - lsls r0, 1 - adds r0, r6 - ldrh r0, [r0] - muls r0, r5 - adds r0, r4 - movs r1, 0x39 - bl GetMonData - adds r3, r0, 0 - mov r1, r9 - ldrb r0, [r1] - ldr r1, _080EAA44 @ =gHealthboxSpriteIds - adds r1, r0, r1 - ldrb r1, [r1] - str r7, [sp] - mov r2, r8 - bl SetBattleBarStruct - b _080EAA82 - .align 2, 0 -_080EAA30: .4byte gBattleBufferA -_080EAA34: .4byte gActiveBattler -_080EAA38: .4byte 0x00007fff -_080EAA3C: .4byte gBattlerPartyIndexes -_080EAA40: .4byte gPlayerParty -_080EAA44: .4byte gHealthboxSpriteIds -_080EAA48: - ldr r1, _080EAAA0 @ =gBattlerPartyIndexes - lsls r0, r4, 1 - adds r0, r1 - ldrh r1, [r0] - movs r0, 0x64 - muls r0, r1 - ldr r1, _080EAAA4 @ =gPlayerParty - adds r0, r1 - movs r1, 0x3A - bl GetMonData - adds r2, r0, 0 - mov r1, r9 - ldrb r0, [r1] - ldr r4, _080EAAA8 @ =gHealthboxSpriteIds - adds r1, r0, r4 - ldrb r1, [r1] - str r7, [sp] - movs r3, 0 - bl SetBattleBarStruct - mov r1, r9 - ldrb r0, [r1] - adds r0, r4 - ldrb r0, [r0] - movs r1, 0 - movs r2, 0 - bl UpdateHpTextInHealthbox -_080EAA82: - ldr r1, _080EAAAC @ =gBattlerControllerFuncs - ldr r0, _080EAAB0 @ =gActiveBattler - ldrb r0, [r0] - lsls r0, 2 - adds r0, r1 - ldr r1, _080EAAB4 @ =sub_80E88C0 - str r1, [r0] - add sp, 0x4 - pop {r3,r4} - mov r8, r3 - mov r9, r4 - pop {r4-r7} - pop {r0} - bx r0 - .align 2, 0 -_080EAAA0: .4byte gBattlerPartyIndexes -_080EAAA4: .4byte gPlayerParty -_080EAAA8: .4byte gHealthboxSpriteIds -_080EAAAC: .4byte gBattlerControllerFuncs -_080EAAB0: .4byte gActiveBattler -_080EAAB4: .4byte sub_80E88C0 - thumb_func_end sub_80EA9B8 - - thumb_func_start sub_80EAAB8 -sub_80EAAB8: @ 80EAAB8 - push {r4-r7,lr} - ldr r5, _080EAAE4 @ =gBattleBufferA - ldr r6, _080EAAE8 @ =gActiveBattler - ldrb r0, [r6] - lsls r0, 9 - adds r1, r5, 0x1 - adds r0, r1 - ldrb r7, [r0] - movs r0, 0x64 - adds r1, r7, 0 - muls r1, r0 - ldr r0, _080EAAEC @ =gPlayerParty - adds r4, r1, r0 - adds r0, r4, 0 - movs r1, 0x38 - bl GetMonData - cmp r0, 0x63 - bls _080EAAF0 - bl WallyBufferExecCompleted - b _080EAB3C - .align 2, 0 -_080EAAE4: .4byte gBattleBufferA -_080EAAE8: .4byte gActiveBattler -_080EAAEC: .4byte gPlayerParty -_080EAAF0: - movs r0, 0x1 - bl LoadBattleBarGfx - adds r0, r4, 0 - movs r1, 0xB - bl GetMonData - ldrb r1, [r6] - lsls r1, 9 - adds r0, r5, 0x2 - adds r0, r1, r0 - ldrb r4, [r0] - adds r0, r5, 0x3 - adds r1, r0 - ldrb r0, [r1] - lsls r0, 8 - orrs r4, r0 - ldr r0, _080EAB44 @ =sub_80E7E04 - movs r1, 0xA - bl CreateTask - lsls r0, 24 - lsrs r0, 24 - ldr r2, _080EAB48 @ =gTasks - lsls r1, r0, 2 - adds r1, r0 - lsls r1, 3 - adds r1, r2 - strh r7, [r1, 0x8] - strh r4, [r1, 0xA] - ldrb r0, [r6] - strh r0, [r1, 0xC] - ldr r1, _080EAB4C @ =gBattlerControllerFuncs - ldrb r0, [r6] - lsls r0, 2 - adds r0, r1 - ldr r1, _080EAB50 @ =nullsub_81 - str r1, [r0] -_080EAB3C: - pop {r4-r7} - pop {r0} - bx r0 - .align 2, 0 -_080EAB44: .4byte sub_80E7E04 -_080EAB48: .4byte gTasks -_080EAB4C: .4byte gBattlerControllerFuncs -_080EAB50: .4byte nullsub_81 - thumb_func_end sub_80EAAB8 - - thumb_func_start sub_80EAB54 -sub_80EAB54: @ 80EAB54 - push {lr} - bl WallyBufferExecCompleted - pop {r0} - bx r0 - thumb_func_end sub_80EAB54 - - thumb_func_start sub_80EAB60 -sub_80EAB60: @ 80EAB60 - push {lr} - bl WallyBufferExecCompleted - pop {r0} - bx r0 - thumb_func_end sub_80EAB60 - - thumb_func_start sub_80EAB6C -sub_80EAB6C: @ 80EAB6C - push {lr} - bl WallyBufferExecCompleted - pop {r0} - bx r0 - thumb_func_end sub_80EAB6C - - thumb_func_start sub_80EAB78 -sub_80EAB78: @ 80EAB78 - push {lr} - bl WallyBufferExecCompleted - pop {r0} - bx r0 - thumb_func_end sub_80EAB78 - - thumb_func_start sub_80EAB84 -sub_80EAB84: @ 80EAB84 - push {lr} - bl WallyBufferExecCompleted - pop {r0} - bx r0 - thumb_func_end sub_80EAB84 - - thumb_func_start sub_80EAB90 -sub_80EAB90: @ 80EAB90 - push {lr} - bl WallyBufferExecCompleted - pop {r0} - bx r0 - thumb_func_end sub_80EAB90 - - thumb_func_start sub_80EAB9C -sub_80EAB9C: @ 80EAB9C - push {lr} - bl WallyBufferExecCompleted - pop {r0} - bx r0 - thumb_func_end sub_80EAB9C - - thumb_func_start sub_80EABA8 -sub_80EABA8: @ 80EABA8 - push {lr} - bl WallyBufferExecCompleted - pop {r0} - bx r0 - thumb_func_end sub_80EABA8 - - thumb_func_start sub_80EABB4 -sub_80EABB4: @ 80EABB4 - push {lr} - bl WallyBufferExecCompleted - pop {r0} - bx r0 - thumb_func_end sub_80EABB4 - - thumb_func_start sub_80EABC0 -sub_80EABC0: @ 80EABC0 - push {lr} - bl WallyBufferExecCompleted - pop {r0} - bx r0 - thumb_func_end sub_80EABC0 - - thumb_func_start sub_80EABCC -sub_80EABCC: @ 80EABCC - push {lr} - bl WallyBufferExecCompleted - pop {r0} - bx r0 - thumb_func_end sub_80EABCC - - thumb_func_start sub_80EABD8 -sub_80EABD8: @ 80EABD8 - push {lr} - bl WallyBufferExecCompleted - pop {r0} - bx r0 - thumb_func_end sub_80EABD8 - - thumb_func_start sub_80EABE4 -sub_80EABE4: @ 80EABE4 - push {lr} - bl WallyBufferExecCompleted - pop {r0} - bx r0 - thumb_func_end sub_80EABE4 - - thumb_func_start sub_80EABF0 -sub_80EABF0: @ 80EABF0 - push {lr} - bl WallyBufferExecCompleted - pop {r0} - bx r0 - thumb_func_end sub_80EABF0 - - thumb_func_start sub_80EABFC -sub_80EABFC: @ 80EABFC - push {lr} - bl WallyBufferExecCompleted - pop {r0} - bx r0 - thumb_func_end sub_80EABFC - - thumb_func_start sub_80EAC08 -sub_80EAC08: @ 80EAC08 - push {r4,lr} - ldr r3, _080EAC30 @ =gSprites - ldr r2, _080EAC34 @ =gBattlerSpriteIds - ldr r4, _080EAC38 @ =gActiveBattler - ldrb r0, [r4] - adds r0, r2 - ldrb r1, [r0] - lsls r0, r1, 4 - adds r0, r1 - lsls r0, 2 - adds r0, r3 - adds r0, 0x3E - ldrb r0, [r0] - lsls r0, 29 - cmp r0, 0 - bge _080EAC3C - bl WallyBufferExecCompleted - b _080EAC66 - .align 2, 0 -_080EAC30: .4byte gSprites -_080EAC34: .4byte gBattlerSpriteIds -_080EAC38: .4byte gActiveBattler -_080EAC3C: - ldr r1, _080EAC6C @ =gDoingBattleAnim - movs r0, 0x1 - strb r0, [r1] - ldrb r0, [r4] - adds r0, r2 - ldrb r1, [r0] - lsls r0, r1, 4 - adds r0, r1 - lsls r0, 2 - adds r0, r3 - movs r1, 0 - strh r1, [r0, 0x30] - ldrb r0, [r4] - bl DoHitAnimHealthboxEffect - ldr r1, _080EAC70 @ =gBattlerControllerFuncs - ldrb r0, [r4] - lsls r0, 2 - adds r0, r1 - ldr r1, _080EAC74 @ =DoHitAnimBlinkSpriteEffect_3 - str r1, [r0] -_080EAC66: - pop {r4} - pop {r0} - bx r0 - .align 2, 0 -_080EAC6C: .4byte gDoingBattleAnim -_080EAC70: .4byte gBattlerControllerFuncs -_080EAC74: .4byte DoHitAnimBlinkSpriteEffect_3 - thumb_func_end sub_80EAC08 - - thumb_func_start sub_80EAC78 -sub_80EAC78: @ 80EAC78 - push {lr} - bl WallyBufferExecCompleted - pop {r0} - bx r0 - thumb_func_end sub_80EAC78 - - thumb_func_start sub_80EAC84 -sub_80EAC84: @ 80EAC84 - push {lr} - ldr r2, _080EACAC @ =gBattleBufferA - ldr r0, _080EACB0 @ =gActiveBattler - ldrb r1, [r0] - lsls r1, 9 - adds r0, r2, 0x1 - adds r0, r1, r0 - ldrb r0, [r0] - adds r2, 0x2 - adds r1, r2 - ldrb r1, [r1] - lsls r1, 8 - orrs r0, r1 - bl PlaySE - bl WallyBufferExecCompleted - pop {r0} - bx r0 - .align 2, 0 -_080EACAC: .4byte gBattleBufferA -_080EACB0: .4byte gActiveBattler - thumb_func_end sub_80EAC84 - - thumb_func_start sub_80EACB4 -sub_80EACB4: @ 80EACB4 - push {lr} - ldr r2, _080EACDC @ =gBattleBufferA - ldr r0, _080EACE0 @ =gActiveBattler - ldrb r1, [r0] - lsls r1, 9 - adds r0, r2, 0x1 - adds r0, r1, r0 - ldrb r0, [r0] - adds r2, 0x2 - adds r1, r2 - ldrb r1, [r1] - lsls r1, 8 - orrs r0, r1 - bl PlayFanfare - bl WallyBufferExecCompleted - pop {r0} - bx r0 - .align 2, 0 -_080EACDC: .4byte gBattleBufferA -_080EACE0: .4byte gActiveBattler - thumb_func_end sub_80EACB4 - - thumb_func_start sub_80EACE4 -sub_80EACE4: @ 80EACE4 - push {lr} - ldr r1, _080EAD14 @ =gBattlerPartyIndexes - ldr r0, _080EAD18 @ =gActiveBattler - ldrb r0, [r0] - lsls r0, 1 - adds r0, r1 - ldrh r1, [r0] - movs r0, 0x64 - muls r0, r1 - ldr r1, _080EAD1C @ =gPlayerParty - adds r0, r1 - movs r1, 0xB - bl GetMonData - lsls r0, 16 - lsrs r0, 16 - movs r1, 0x19 - bl PlayCry1 - bl WallyBufferExecCompleted - pop {r0} - bx r0 - .align 2, 0 -_080EAD14: .4byte gBattlerPartyIndexes -_080EAD18: .4byte gActiveBattler -_080EAD1C: .4byte gPlayerParty - thumb_func_end sub_80EACE4 - - thumb_func_start sub_80EAD20 -sub_80EAD20: @ 80EAD20 - push {lr} - ldr r1, _080EAD48 @ =gBattleBufferA - ldr r0, _080EAD4C @ =gActiveBattler - ldrb r0, [r0] - lsls r0, 9 - adds r1, 0x1 - adds r0, r1 - ldrb r0, [r0] - bl HandleIntroSlide - ldr r2, _080EAD50 @ =gIntroSlideFlags - ldrh r0, [r2] - movs r1, 0x1 - orrs r0, r1 - strh r0, [r2] - bl WallyBufferExecCompleted - pop {r0} - bx r0 - .align 2, 0 -_080EAD48: .4byte gBattleBufferA -_080EAD4C: .4byte gActiveBattler -_080EAD50: .4byte gIntroSlideFlags - thumb_func_end sub_80EAD20 - - thumb_func_start sub_80EAD54 -sub_80EAD54: @ 80EAD54 - push {r4-r7,lr} - ldr r0, _080EAEA0 @ =gBattleTypeFlags - ldr r0, [r0] - movs r1, 0x10 - ands r0, r1 - cmp r0, 0 - bne _080EAD64 - b _080EAEE4 -_080EAD64: - ldr r6, _080EAEA4 @ =gBattlerSpriteIds - ldr r7, _080EAEA8 @ =gActiveBattler - ldrb r0, [r7] - adds r0, r6 - ldrb r1, [r0] - lsls r0, r1, 4 - adds r0, r1 - lsls r0, 2 - ldr r5, _080EAEAC @ =gSprites - adds r0, r5 - bl SetSpritePrimaryCoordsFromSecondaryCoords - ldrb r0, [r7] - adds r0, r6 - ldrb r1, [r0] - lsls r0, r1, 4 - adds r0, r1 - lsls r0, 2 - adds r0, r5 - movs r1, 0x32 - strh r1, [r0, 0x2E] - ldrb r0, [r7] - adds r0, r6 - ldrb r1, [r0] - lsls r0, r1, 4 - adds r0, r1 - lsls r0, 2 - adds r0, r5 - ldr r1, _080EAEB0 @ =0x0000ffd8 - strh r1, [r0, 0x32] - ldrb r0, [r7] - adds r0, r6 - ldrb r1, [r0] - lsls r0, r1, 4 - adds r0, r1 - lsls r0, 2 - adds r0, r5 - ldrh r1, [r0, 0x22] - strh r1, [r0, 0x36] - ldrb r0, [r7] - adds r0, r6 - ldrb r1, [r0] - lsls r0, r1, 4 - adds r0, r1 - lsls r0, 2 - adds r1, r5, 0 - adds r1, 0x1C - adds r0, r1 - ldr r1, _080EAEB4 @ =StartAnimLinearTranslation - str r1, [r0] - ldrb r2, [r7] - adds r0, r2, r6 - ldrb r1, [r0] - lsls r0, r1, 4 - adds r0, r1 - lsls r0, 2 - adds r0, r5 - strh r2, [r0, 0x38] - ldrb r0, [r7] - adds r0, r6 - ldrb r1, [r0] - lsls r0, r1, 4 - adds r0, r1 - lsls r0, 2 - adds r0, r5 - ldr r1, _080EAEB8 @ =sub_80335F8 - bl StoreSpriteCallbackInData6 - ldrb r0, [r7] - adds r0, r6 - ldrb r1, [r0] - lsls r0, r1, 4 - adds r0, r1 - lsls r0, 2 - adds r0, r5 - movs r1, 0x1 - bl StartSpriteAnim - ldr r0, _080EAEBC @ =0x0000d6f8 - bl AllocSpritePalette - adds r4, r0, 0 - lsls r4, 24 - ldr r1, _080EAEC0 @ =gTrainerBackPicPaletteTable - ldr r0, _080EAEC4 @ =gSaveBlock2Ptr - ldr r0, [r0] - ldrb r0, [r0, 0x8] - lsls r0, 3 - adds r0, r1 - ldr r0, [r0] - lsrs r4, 20 - movs r2, 0x80 - lsls r2, 1 - adds r1, r4, r2 - movs r2, 0x20 - bl LoadCompressedPalette - ldrb r0, [r7] - adds r0, r6 - ldrb r0, [r0] - lsls r1, r0, 4 - adds r1, r0 - lsls r1, 2 - adds r1, r5 - ldrb r2, [r1, 0x5] - movs r0, 0xF - ands r0, r2 - orrs r0, r4 - strb r0, [r1, 0x5] - ldr r0, _080EAEC8 @ =sub_80EB0A8 - movs r1, 0x5 - bl CreateTask - lsls r0, 24 - lsrs r0, 24 - ldr r4, _080EAECC @ =gTasks - lsls r1, r0, 2 - adds r1, r0 - lsls r1, 3 - adds r1, r4 - ldrb r0, [r7] - strh r0, [r1, 0x8] - ldr r3, _080EAED0 @ =gBattleSpritesDataPtr - ldr r0, [r3] - ldrb r2, [r7] - ldr r1, [r0, 0x4] - lsls r0, r2, 1 - adds r0, r2 - lsls r0, 2 - adds r0, r1 - ldrb r1, [r0] - movs r0, 0x1 - ands r0, r1 - cmp r0, 0 - beq _080EAE84 - ldr r0, _080EAED4 @ =gBattlerStatusSummaryTaskId - adds r0, r2, r0 - ldrb r1, [r0] - lsls r0, r1, 2 - adds r0, r1 - lsls r0, 3 - adds r0, r4 - ldr r1, _080EAED8 @ =Task_HidePartyStatusSummary - str r1, [r0] -_080EAE84: - ldr r0, [r3] - ldr r2, [r0, 0x8] - ldrb r0, [r2, 0x9] - movs r1, 0x1 - orrs r0, r1 - strb r0, [r2, 0x9] - ldr r1, _080EAEDC @ =gBattlerControllerFuncs - ldrb r0, [r7] - lsls r0, 2 - adds r0, r1 - ldr r1, _080EAEE0 @ =nullsub_13 - str r1, [r0] - b _080EAF18 - .align 2, 0 -_080EAEA0: .4byte gBattleTypeFlags -_080EAEA4: .4byte gBattlerSpriteIds -_080EAEA8: .4byte gActiveBattler -_080EAEAC: .4byte gSprites -_080EAEB0: .4byte 0x0000ffd8 -_080EAEB4: .4byte StartAnimLinearTranslation -_080EAEB8: .4byte sub_80335F8 -_080EAEBC: .4byte 0x0000d6f8 -_080EAEC0: .4byte gTrainerBackPicPaletteTable -_080EAEC4: .4byte gSaveBlock2Ptr -_080EAEC8: .4byte sub_80EB0A8 -_080EAECC: .4byte gTasks -_080EAED0: .4byte gBattleSpritesDataPtr -_080EAED4: .4byte gBattlerStatusSummaryTaskId -_080EAED8: .4byte Task_HidePartyStatusSummary -_080EAEDC: .4byte gBattlerControllerFuncs -_080EAEE0: .4byte nullsub_13 -_080EAEE4: - ldr r0, _080EAF20 @ =gBattleSpritesDataPtr - ldr r1, [r0] - ldr r0, _080EAF24 @ =gActiveBattler - ldrb r3, [r0] - ldr r1, [r1, 0x4] - lsls r0, r3, 1 - adds r0, r3 - lsls r0, 2 - adds r0, r1 - ldrb r1, [r0] - movs r0, 0x1 - ands r0, r1 - cmp r0, 0 - beq _080EAF14 - ldr r2, _080EAF28 @ =gTasks - ldr r0, _080EAF2C @ =gBattlerStatusSummaryTaskId - adds r0, r3, r0 - ldrb r1, [r0] - lsls r0, r1, 2 - adds r0, r1 - lsls r0, 3 - adds r0, r2 - ldr r1, _080EAF30 @ =Task_HidePartyStatusSummary - str r1, [r0] -_080EAF14: - bl WallyBufferExecCompleted -_080EAF18: - pop {r4-r7} - pop {r0} - bx r0 - .align 2, 0 -_080EAF20: .4byte gBattleSpritesDataPtr -_080EAF24: .4byte gActiveBattler -_080EAF28: .4byte gTasks -_080EAF2C: .4byte gBattlerStatusSummaryTaskId -_080EAF30: .4byte Task_HidePartyStatusSummary - thumb_func_end sub_80EAD54 - - thumb_func_start sub_80EAF34 -sub_80EAF34: @ 80EAF34 - push {r4-r6,lr} - mov r6, r10 - mov r5, r9 - mov r4, r8 - push {r4-r6} - adds r6, r0, 0 - lsls r6, 24 - lsrs r6, 24 - ldr r0, _080EB07C @ =gBattleSpritesDataPtr - ldr r0, [r0] - ldr r1, [r0] - lsls r0, r6, 2 - adds r0, r1 - movs r1, 0 - strh r1, [r0, 0x2] - ldr r0, _080EB080 @ =gBattlerPartyIndexes - lsls r2, r6, 1 - adds r2, r0 - ldr r0, _080EB084 @ =gBattleBufferA - lsls r1, r6, 9 - adds r0, 0x1 - adds r1, r0 - ldrb r0, [r1] - strh r0, [r2] - ldrh r1, [r2] - movs r0, 0x64 - muls r0, r1 - ldr r1, _080EB088 @ =gPlayerParty - adds r0, r1 - movs r1, 0xB - bl GetMonData - mov r8, r0 - lsls r0, 16 - lsrs r0, 16 - mov r8, r0 - ldr r0, _080EB08C @ =sub_8033E3C - bl CreateInvisibleSpriteWithCallback - ldr r1, _080EB090 @ =gUnknown_3004FFC - mov r9, r1 - add r9, r6 - mov r1, r9 - strb r0, [r1] - adds r0, r6, 0 - bl GetBattlerPosition - adds r1, r0, 0 - lsls r1, 24 - lsrs r1, 24 - mov r0, r8 - bl SetMultiuseSpriteTemplateToPokemon - ldr r0, _080EB094 @ =gMultiuseSpriteTemplate - mov r10, r0 - adds r0, r6, 0 - movs r1, 0x2 - bl GetBattlerSpriteCoord - adds r5, r0, 0 - lsls r5, 24 - lsrs r5, 24 - adds r0, r6, 0 - bl GetBattlerSpriteDefault_Y - adds r4, r0, 0 - lsls r4, 24 - lsrs r4, 24 - adds r0, r6, 0 - bl GetBattlerSpriteSubpriority - adds r3, r0, 0 - lsls r3, 24 - lsrs r3, 24 - mov r0, r10 - adds r1, r5, 0 - adds r2, r4, 0 - bl CreateSprite - ldr r4, _080EB098 @ =gBattlerSpriteIds - adds r4, r6, r4 - strb r0, [r4] - ldr r5, _080EB09C @ =gSprites - mov r0, r9 - ldrb r1, [r0] - lsls r0, r1, 4 - adds r0, r1 - lsls r0, 2 - adds r0, r5 - ldrb r1, [r4] - strh r1, [r0, 0x30] - ldrb r1, [r4] - lsls r0, r1, 4 - adds r0, r1 - lsls r0, 2 - adds r0, r5 - strh r6, [r0, 0x2E] - ldrb r1, [r4] - lsls r0, r1, 4 - adds r0, r1 - lsls r0, 2 - adds r0, r5 - mov r1, r8 - strh r1, [r0, 0x32] - ldrb r0, [r4] - lsls r1, r0, 4 - adds r1, r0 - lsls r1, 2 - adds r1, r5 - lsls r3, r6, 4 - ldrb r2, [r1, 0x5] - movs r0, 0xF - ands r0, r2 - orrs r0, r3 - strb r0, [r1, 0x5] - ldrb r1, [r4] - lsls r0, r1, 4 - adds r0, r1 - lsls r0, 2 - adds r0, r5 - ldr r1, _080EB0A0 @ =gBattleMonForms - adds r6, r1 - ldrb r1, [r6] - bl StartSpriteAnim - ldrb r1, [r4] - lsls r0, r1, 4 - adds r0, r1 - lsls r0, 2 - adds r0, r5 - adds r0, 0x3E - ldrb r1, [r0] - movs r2, 0x4 - orrs r1, r2 - strb r1, [r0] - ldrb r1, [r4] - lsls r0, r1, 4 - adds r0, r1 - lsls r0, 2 - adds r1, r5, 0 - adds r1, 0x1C - adds r0, r1 - ldr r1, _080EB0A4 @ =SpriteCallbackDummy - str r1, [r0] - movs r0, 0 - movs r1, 0xFF - bl DoPokeballSendOutAnimation - mov r1, r9 - ldrb r2, [r1] - lsls r1, r2, 4 - adds r1, r2 - lsls r1, 2 - adds r1, r5 - lsls r0, 24 - lsrs r0, 24 - strh r0, [r1, 0x2E] - pop {r3-r5} - mov r8, r3 - mov r9, r4 - mov r10, r5 - pop {r4-r6} - pop {r0} - bx r0 - .align 2, 0 -_080EB07C: .4byte gBattleSpritesDataPtr -_080EB080: .4byte gBattlerPartyIndexes -_080EB084: .4byte gBattleBufferA -_080EB088: .4byte gPlayerParty -_080EB08C: .4byte sub_8033E3C -_080EB090: .4byte gUnknown_3004FFC -_080EB094: .4byte gMultiuseSpriteTemplate -_080EB098: .4byte gBattlerSpriteIds -_080EB09C: .4byte gSprites -_080EB0A0: .4byte gBattleMonForms -_080EB0A4: .4byte SpriteCallbackDummy - thumb_func_end sub_80EAF34 - - thumb_func_start sub_80EB0A8 -sub_80EB0A8: @ 80EB0A8 - push {r4-r6,lr} - lsls r0, 24 - lsrs r6, r0, 24 - ldr r1, _080EB0C8 @ =gTasks - lsls r0, r6, 2 - adds r0, r6 - lsls r0, 3 - adds r1, r0, r1 - ldrh r2, [r1, 0xA] - movs r3, 0xA - ldrsh r0, [r1, r3] - cmp r0, 0x1E - bgt _080EB0CC - adds r0, r2, 0x1 - strh r0, [r1, 0xA] - b _080EB102 - .align 2, 0 -_080EB0C8: .4byte gTasks -_080EB0CC: - ldr r4, _080EB108 @ =gActiveBattler - ldrb r5, [r4] - ldrh r0, [r1, 0x8] - strb r0, [r4] - ldr r0, _080EB10C @ =gBattleBufferA - ldrb r1, [r4] - lsls r2, r1, 9 - adds r0, 0x1 - adds r2, r0 - ldr r0, _080EB110 @ =gBattlerPartyIndexes - lsls r1, 1 - adds r1, r0 - ldrh r0, [r1] - strb r0, [r2] - ldrb r0, [r4] - bl sub_80EAF34 - ldr r1, _080EB114 @ =gBattlerControllerFuncs - ldrb r0, [r4] - lsls r0, 2 - adds r0, r1 - ldr r1, _080EB118 @ =sub_80E7B4C - str r1, [r0] - strb r5, [r4] - adds r0, r6, 0 - bl DestroyTask -_080EB102: - pop {r4-r6} - pop {r0} - bx r0 - .align 2, 0 -_080EB108: .4byte gActiveBattler -_080EB10C: .4byte gBattleBufferA -_080EB110: .4byte gBattlerPartyIndexes -_080EB114: .4byte gBattlerControllerFuncs -_080EB118: .4byte sub_80E7B4C - thumb_func_end sub_80EB0A8 - - thumb_func_start sub_80EB11C -sub_80EB11C: @ 80EB11C - push {r4,r5,lr} - ldr r1, _080EB144 @ =gBattleBufferA - ldr r0, _080EB148 @ =gActiveBattler - ldrb r2, [r0] - lsls r0, r2, 9 - adds r1, 0x1 - adds r0, r1 - ldrb r0, [r0] - cmp r0, 0 - beq _080EB14C - adds r0, r2, 0 - bl GetBattlerSide - lsls r0, 24 - cmp r0, 0 - bne _080EB14C - bl WallyBufferExecCompleted - b _080EB18A - .align 2, 0 -_080EB144: .4byte gBattleBufferA -_080EB148: .4byte gActiveBattler -_080EB14C: - ldr r0, _080EB190 @ =gBattleSpritesDataPtr - ldr r0, [r0] - ldr r5, _080EB194 @ =gActiveBattler - ldrb r1, [r5] - ldr r2, [r0, 0x4] - lsls r0, r1, 1 - adds r0, r1 - lsls r0, 2 - adds r0, r2 - ldrb r1, [r0] - movs r2, 0x1 - orrs r1, r2 - strb r1, [r0] - ldrb r0, [r5] - lsls r4, r0, 9 - ldr r3, _080EB198 @ =gUnknown_2022BC8 - adds r1, r4, r3 - subs r2, r3, 0x3 - adds r2, r4, r2 - ldrb r2, [r2] - subs r3, 0x2 - adds r4, r3 - ldrb r3, [r4] - bl CreatePartyStatusSummarySprites - ldr r2, _080EB19C @ =gBattlerStatusSummaryTaskId - ldrb r1, [r5] - adds r1, r2 - strb r0, [r1] - bl WallyBufferExecCompleted -_080EB18A: - pop {r4,r5} - pop {r0} - bx r0 - .align 2, 0 -_080EB190: .4byte gBattleSpritesDataPtr -_080EB194: .4byte gActiveBattler -_080EB198: .4byte gUnknown_2022BC8 -_080EB19C: .4byte gBattlerStatusSummaryTaskId - thumb_func_end sub_80EB11C - - thumb_func_start sub_80EB1A0 -sub_80EB1A0: @ 80EB1A0 - push {lr} - bl WallyBufferExecCompleted - pop {r0} - bx r0 - thumb_func_end sub_80EB1A0 - - thumb_func_start sub_80EB1AC -sub_80EB1AC: @ 80EB1AC - push {r4,lr} - ldr r4, _080EB1CC @ =gActiveBattler - ldrb r0, [r4] - movs r1, 0x1 - bl EndBounceEffect - ldrb r0, [r4] - movs r1, 0 - bl EndBounceEffect - bl WallyBufferExecCompleted - pop {r4} - pop {r0} - bx r0 - .align 2, 0 -_080EB1CC: .4byte gActiveBattler - thumb_func_end sub_80EB1AC - - thumb_func_start sub_80EB1D0 -sub_80EB1D0: @ 80EB1D0 - push {lr} - bl WallyBufferExecCompleted - pop {r0} - bx r0 - thumb_func_end sub_80EB1D0 - - thumb_func_start sub_80EB1DC -sub_80EB1DC: @ 80EB1DC - push {r4-r6,lr} - sub sp, 0x4 - ldr r5, _080EB214 @ =gBattleBufferA - ldr r6, _080EB218 @ =gActiveBattler - ldrb r2, [r6] - lsls r1, r2, 9 - adds r0, r5, 0x1 - adds r0, r1, r0 - ldrb r3, [r0] - adds r0, r5, 0x2 - adds r0, r1, r0 - ldrb r4, [r0] - adds r5, 0x3 - adds r1, r5 - ldrb r0, [r1] - lsls r0, 8 - orrs r4, r0 - str r4, [sp] - adds r0, r2, 0 - adds r1, r2, 0 - bl TryHandleLaunchBattleTableAnimation - lsls r0, 24 - cmp r0, 0 - beq _080EB21C - bl WallyBufferExecCompleted - b _080EB228 - .align 2, 0 -_080EB214: .4byte gBattleBufferA -_080EB218: .4byte gActiveBattler -_080EB21C: - ldr r0, _080EB230 @ =gBattlerControllerFuncs - ldrb r1, [r6] - lsls r1, 2 - adds r1, r0 - ldr r0, _080EB234 @ =CompleteOnFinishedBattleAnimation_4 - str r0, [r1] -_080EB228: - add sp, 0x4 - pop {r4-r6} - pop {r0} - bx r0 - .align 2, 0 -_080EB230: .4byte gBattlerControllerFuncs -_080EB234: .4byte CompleteOnFinishedBattleAnimation_4 - thumb_func_end sub_80EB1DC - - thumb_func_start sub_80EB238 -sub_80EB238: @ 80EB238 - push {r4,lr} - ldr r1, _080EB26C @ =gBattleBufferA - ldr r4, _080EB270 @ =gActiveBattler - ldrb r2, [r4] - lsls r0, r2, 9 - adds r1, 0x1 - adds r0, r1 - ldrb r0, [r0] - cmp r0, 0 - blt _080EB260 - cmp r0, 0x1 - bgt _080EB260 - adds r0, r2, 0 - movs r1, 0x1 - bl EndBounceEffect - ldrb r0, [r4] - movs r1, 0 - bl EndBounceEffect -_080EB260: - bl WallyBufferExecCompleted - pop {r4} - pop {r0} - bx r0 - .align 2, 0 -_080EB26C: .4byte gBattleBufferA -_080EB270: .4byte gActiveBattler - thumb_func_end sub_80EB238 - - thumb_func_start sub_80EB274 -sub_80EB274: @ 80EB274 - push {lr} - bl WallyBufferExecCompleted - pop {r0} - bx r0 - thumb_func_end sub_80EB274 - - thumb_func_start sub_80EB280 -sub_80EB280: @ 80EB280 - push {r4,lr} - ldr r2, _080EB2C4 @ =gBattleOutcome - ldr r1, _080EB2C8 @ =gBattleBufferA - ldr r4, _080EB2CC @ =gActiveBattler - ldrb r0, [r4] - lsls r0, 9 - adds r1, 0x1 - adds r0, r1 - ldrb r0, [r0] - strb r0, [r2] - movs r0, 0x5 - bl FadeOutMapMusic - movs r0, 0x3 - bl BeginFastPaletteFade - bl WallyBufferExecCompleted - ldr r0, _080EB2D0 @ =gBattleTypeFlags - ldr r0, [r0] - movs r1, 0x6 - ands r0, r1 - cmp r0, 0x2 - bne _080EB2BC - ldr r0, _080EB2D4 @ =gBattlerControllerFuncs - ldrb r1, [r4] - lsls r1, 2 - adds r1, r0 - ldr r0, _080EB2D8 @ =sub_80E7930 - str r0, [r1] -_080EB2BC: - pop {r4} - pop {r0} - bx r0 - .align 2, 0 -_080EB2C4: .4byte gBattleOutcome -_080EB2C8: .4byte gBattleBufferA -_080EB2CC: .4byte gActiveBattler -_080EB2D0: .4byte gBattleTypeFlags -_080EB2D4: .4byte gBattlerControllerFuncs -_080EB2D8: .4byte sub_80E7930 - thumb_func_end sub_80EB280 - - thumb_func_start nullsub_82 -nullsub_82: @ 80EB2DC - bx lr - thumb_func_end nullsub_82 - - thumb_func_start sub_80EB2E0 -sub_80EB2E0: @ 80EB2E0 - adds r1, r0, 0 - ldr r0, _080EB2F0 @ =gBattleStruct - ldr r0, [r0] - adds r0, 0x96 - ldrb r0, [r0] - ands r0, r1 - bx lr - .align 2, 0 -_080EB2F0: .4byte gBattleStruct - thumb_func_end sub_80EB2E0 - - thumb_func_start sub_80EB2F4 -sub_80EB2F4: @ 80EB2F4 - lsls r0, 24 - lsrs r0, 24 - ldr r1, _080EB308 @ =gBattleStruct - ldr r1, [r1] - adds r1, 0x96 - ldrb r2, [r1] - orrs r0, r2 - strb r0, [r1] - bx lr - .align 2, 0 -_080EB308: .4byte gBattleStruct - thumb_func_end sub_80EB2F4 - - thumb_func_start sub_80EB30C -sub_80EB30C: @ 80EB30C - push {r4-r6,lr} - sub sp, 0xC - movs r6, 0x1A - movs r5, 0x7 - movs r4, 0x1 - str r4, [sp] - str r4, [sp, 0x4] - str r5, [sp, 0x8] - movs r0, 0 - movs r1, 0x30 - movs r2, 0 - movs r3, 0xE - bl FillBgTilemapBufferRect - str r4, [sp] - str r4, [sp, 0x4] - str r5, [sp, 0x8] - movs r0, 0 - movs r1, 0x31 - movs r2, 0x1 - movs r3, 0xE - bl FillBgTilemapBufferRect - str r6, [sp] - str r4, [sp, 0x4] - str r5, [sp, 0x8] - movs r0, 0 - movs r1, 0x32 - movs r2, 0x2 - movs r3, 0xE - bl FillBgTilemapBufferRect - str r4, [sp] - str r4, [sp, 0x4] - str r5, [sp, 0x8] - movs r0, 0 - movs r1, 0x33 - movs r2, 0x1C - movs r3, 0xE - bl FillBgTilemapBufferRect - str r4, [sp] - str r4, [sp, 0x4] - str r5, [sp, 0x8] - movs r0, 0 - movs r1, 0x34 - movs r2, 0x1D - movs r3, 0xE - bl FillBgTilemapBufferRect - str r4, [sp] - str r4, [sp, 0x4] - str r5, [sp, 0x8] - movs r0, 0 - movs r1, 0x35 - movs r2, 0 - movs r3, 0xF - bl FillBgTilemapBufferRect - str r4, [sp] - str r4, [sp, 0x4] - str r5, [sp, 0x8] - movs r0, 0 - movs r1, 0x36 - movs r2, 0x1 - movs r3, 0xF - bl FillBgTilemapBufferRect - str r4, [sp] - str r4, [sp, 0x4] - str r5, [sp, 0x8] - movs r0, 0 - movs r1, 0x38 - movs r2, 0x1C - movs r3, 0xF - bl FillBgTilemapBufferRect - str r4, [sp] - str r4, [sp, 0x4] - str r5, [sp, 0x8] - movs r0, 0 - movs r1, 0x39 - movs r2, 0x1D - movs r3, 0xF - bl FillBgTilemapBufferRect - str r4, [sp] - str r4, [sp, 0x4] - str r5, [sp, 0x8] - movs r0, 0 - movs r1, 0x3A - movs r2, 0 - movs r3, 0x10 - bl FillBgTilemapBufferRect - str r4, [sp] - str r4, [sp, 0x4] - str r5, [sp, 0x8] - movs r0, 0 - movs r1, 0x3B - movs r2, 0x1 - movs r3, 0x10 - bl FillBgTilemapBufferRect - str r4, [sp] - str r4, [sp, 0x4] - str r5, [sp, 0x8] - movs r0, 0 - movs r1, 0x3C - movs r2, 0x1C - movs r3, 0x10 - bl FillBgTilemapBufferRect - str r4, [sp] - str r4, [sp, 0x4] - str r5, [sp, 0x8] - movs r0, 0 - movs r1, 0x3D - movs r2, 0x1D - movs r3, 0x10 - bl FillBgTilemapBufferRect - ldr r1, _080EB4F4 @ =0x0000083a - str r4, [sp] - str r4, [sp, 0x4] - str r5, [sp, 0x8] - movs r0, 0 - movs r2, 0 - movs r3, 0x11 - bl FillBgTilemapBufferRect - ldr r1, _080EB4F8 @ =0x0000083b - str r4, [sp] - str r4, [sp, 0x4] - str r5, [sp, 0x8] - movs r0, 0 - movs r2, 0x1 - movs r3, 0x11 - bl FillBgTilemapBufferRect - ldr r1, _080EB4FC @ =0x0000083c - str r4, [sp] - str r4, [sp, 0x4] - str r5, [sp, 0x8] - movs r0, 0 - movs r2, 0x1C - movs r3, 0x11 - bl FillBgTilemapBufferRect - ldr r1, _080EB500 @ =0x0000083d - str r4, [sp] - str r4, [sp, 0x4] - str r5, [sp, 0x8] - movs r0, 0 - movs r2, 0x1D - movs r3, 0x11 - bl FillBgTilemapBufferRect - ldr r1, _080EB504 @ =0x00000835 - str r4, [sp] - str r4, [sp, 0x4] - str r5, [sp, 0x8] - movs r0, 0 - movs r2, 0 - movs r3, 0x12 - bl FillBgTilemapBufferRect - ldr r1, _080EB508 @ =0x00000836 - str r4, [sp] - str r4, [sp, 0x4] - str r5, [sp, 0x8] - movs r0, 0 - movs r2, 0x1 - movs r3, 0x12 - bl FillBgTilemapBufferRect - ldr r1, _080EB50C @ =0x00000838 - str r4, [sp] - str r4, [sp, 0x4] - str r5, [sp, 0x8] - movs r0, 0 - movs r2, 0x1C - movs r3, 0x12 - bl FillBgTilemapBufferRect - ldr r1, _080EB510 @ =0x00000839 - str r4, [sp] - str r4, [sp, 0x4] - str r5, [sp, 0x8] - movs r0, 0 - movs r2, 0x1D - movs r3, 0x12 - bl FillBgTilemapBufferRect - movs r1, 0x83 - lsls r1, 4 - str r4, [sp] - str r4, [sp, 0x4] - str r5, [sp, 0x8] - movs r0, 0 - movs r2, 0 - movs r3, 0x13 - bl FillBgTilemapBufferRect - ldr r1, _080EB514 @ =0x00000831 - str r4, [sp] - str r4, [sp, 0x4] - str r5, [sp, 0x8] - movs r0, 0 - movs r2, 0x1 - movs r3, 0x13 - bl FillBgTilemapBufferRect - ldr r1, _080EB518 @ =0x00000832 - str r6, [sp] - str r4, [sp, 0x4] - str r5, [sp, 0x8] - movs r0, 0 - movs r2, 0x2 - movs r3, 0x13 - bl FillBgTilemapBufferRect - ldr r1, _080EB51C @ =0x00000833 - str r4, [sp] - str r4, [sp, 0x4] - str r5, [sp, 0x8] - movs r0, 0 - movs r2, 0x1C - movs r3, 0x13 - bl FillBgTilemapBufferRect - ldr r1, _080EB520 @ =0x00000834 - str r4, [sp] - str r4, [sp, 0x4] - str r5, [sp, 0x8] - movs r0, 0 - movs r2, 0x1D - movs r3, 0x13 - bl FillBgTilemapBufferRect - add sp, 0xC - pop {r4-r6} - pop {r0} - bx r0 - .align 2, 0 -_080EB4F4: .4byte 0x0000083a -_080EB4F8: .4byte 0x0000083b -_080EB4FC: .4byte 0x0000083c -_080EB500: .4byte 0x0000083d -_080EB504: .4byte 0x00000835 -_080EB508: .4byte 0x00000836 -_080EB50C: .4byte 0x00000838 -_080EB510: .4byte 0x00000839 -_080EB514: .4byte 0x00000831 -_080EB518: .4byte 0x00000832 -_080EB51C: .4byte 0x00000833 -_080EB520: .4byte 0x00000834 - thumb_func_end sub_80EB30C - - thumb_func_start sub_80EB524 -sub_80EB524: @ 80EB524 - push {r4-r6,lr} - mov r6, r8 - push {r6} - sub sp, 0xC - movs r5, 0 - movs r0, 0x1A - mov r8, r0 - movs r4, 0x1 - str r4, [sp] - str r4, [sp, 0x4] - str r5, [sp, 0x8] - movs r0, 0 - movs r1, 0x3 - movs r2, 0 - movs r3, 0xE - bl FillBgTilemapBufferRect - movs r6, 0x4 - str r4, [sp] - str r4, [sp, 0x4] - str r5, [sp, 0x8] - movs r0, 0 - movs r1, 0x4 - movs r2, 0x1 - movs r3, 0xE - bl FillBgTilemapBufferRect - mov r0, r8 - str r0, [sp] - str r4, [sp, 0x4] - str r5, [sp, 0x8] - movs r0, 0 - movs r1, 0x5 - movs r2, 0x2 - movs r3, 0xE - bl FillBgTilemapBufferRect - str r4, [sp] - str r4, [sp, 0x4] - str r5, [sp, 0x8] - movs r0, 0 - movs r1, 0x6 - movs r2, 0x1C - movs r3, 0xE - bl FillBgTilemapBufferRect - str r4, [sp] - str r4, [sp, 0x4] - str r5, [sp, 0x8] - movs r0, 0 - movs r1, 0x7 - movs r2, 0x1D - movs r3, 0xE - bl FillBgTilemapBufferRect - str r4, [sp] - str r6, [sp, 0x4] - str r5, [sp, 0x8] - movs r0, 0 - movs r1, 0x8 - movs r2, 0 - movs r3, 0xF - bl FillBgTilemapBufferRect - str r4, [sp] - str r6, [sp, 0x4] - str r5, [sp, 0x8] - movs r0, 0 - movs r1, 0x9 - movs r2, 0x1 - movs r3, 0xF - bl FillBgTilemapBufferRect - mov r0, r8 - str r0, [sp] - str r6, [sp, 0x4] - str r5, [sp, 0x8] - movs r0, 0 - movs r1, 0xA - movs r2, 0x2 - movs r3, 0xF - bl FillBgTilemapBufferRect - str r4, [sp] - str r6, [sp, 0x4] - str r5, [sp, 0x8] - movs r0, 0 - movs r1, 0xB - movs r2, 0x1C - movs r3, 0xF - bl FillBgTilemapBufferRect - str r4, [sp] - str r6, [sp, 0x4] - str r5, [sp, 0x8] - movs r0, 0 - movs r1, 0xC - movs r2, 0x1D - movs r3, 0xF - bl FillBgTilemapBufferRect - str r4, [sp] - str r4, [sp, 0x4] - str r5, [sp, 0x8] - movs r0, 0 - movs r1, 0xD - movs r2, 0 - movs r3, 0x13 - bl FillBgTilemapBufferRect - str r4, [sp] - str r4, [sp, 0x4] - str r5, [sp, 0x8] - movs r0, 0 - movs r1, 0xE - movs r2, 0x1 - movs r3, 0x13 - bl FillBgTilemapBufferRect - mov r0, r8 - str r0, [sp] - str r4, [sp, 0x4] - str r5, [sp, 0x8] - movs r0, 0 - movs r1, 0xF - movs r2, 0x2 - movs r3, 0x13 - bl FillBgTilemapBufferRect - str r4, [sp] - str r4, [sp, 0x4] - str r5, [sp, 0x8] - movs r0, 0 - movs r1, 0x10 - movs r2, 0x1C - movs r3, 0x13 - bl FillBgTilemapBufferRect - str r4, [sp] - str r4, [sp, 0x4] - str r5, [sp, 0x8] - movs r0, 0 - movs r1, 0x11 - movs r2, 0x1D - movs r3, 0x13 - bl FillBgTilemapBufferRect - add sp, 0xC - pop {r3} - mov r8, r3 - pop {r4-r6} - pop {r0} - bx r0 - thumb_func_end sub_80EB524 - - .align 2, 0 @ Don't pad with nop. diff --git a/asm/battle_controller_pokedude.s b/asm/battle_controller_pokedude.s index 1857d92c8..e685d786d 100644 --- a/asm/battle_controller_pokedude.s +++ b/asm/battle_controller_pokedude.s @@ -10,8 +10,8 @@ nullsub_99: @ 81560A0 bx lr thumb_func_end nullsub_99 - thumb_func_start SetControllerToPokedude -SetControllerToPokedude: @ 81560A4 + thumb_func_start SetControllerToPokeDude +SetControllerToPokeDude: @ 81560A4 ldr r1, _081560C8 @ =gBattlerControllerFuncs ldr r0, _081560CC @ =gActiveBattler ldrb r0, [r0] @@ -36,7 +36,7 @@ _081560CC: .4byte gActiveBattler _081560D0: .4byte sub_81560DC _081560D4: .4byte gBattleStruct _081560D8: .4byte gSpecialVar_0x8004 - thumb_func_end SetControllerToPokedude + thumb_func_end SetControllerToPokeDude thumb_func_start sub_81560DC sub_81560DC: @ 81560DC @@ -2862,7 +2862,7 @@ sub_81577B4: @ 81577B4 ldr r0, _081577E4 @ =gActiveBattler ldrb r0, [r0] lsls r2, r0, 9 - ldr r1, _081577E8 @ =gUnknown_2022BC7 + ldr r1, _081577E8 @ =gBattleBufferA + 3 adds r5, r2, r1 mov r8, r5 bl GetBattlerSide @@ -2876,7 +2876,7 @@ sub_81577B4: @ 81577B4 b _081577F8 .align 2, 0 _081577E4: .4byte gActiveBattler -_081577E8: .4byte gUnknown_2022BC7 +_081577E8: .4byte gBattleBufferA + 3 _081577EC: .4byte gPlayerParty _081577F0: movs r0, 0x64 @@ -3148,7 +3148,7 @@ _08157AA4: ldr r0, _08157AB8 @ =gActiveBattler ldrb r2, [r0] lsls r2, 9 - ldr r0, _08157ABC @ =gUnknown_2022BC7 + ldr r0, _08157ABC @ =gBattleBufferA + 3 adds r2, r0 adds r0, r6, 0 movs r1, 0xB @@ -3156,12 +3156,12 @@ _08157AA4: b _0815809A .align 2, 0 _08157AB8: .4byte gActiveBattler -_08157ABC: .4byte gUnknown_2022BC7 +_08157ABC: .4byte gBattleBufferA + 3 _08157AC0: ldr r0, _08157AD4 @ =gActiveBattler ldrb r2, [r0] lsls r2, 9 - ldr r0, _08157AD8 @ =gUnknown_2022BC7 + ldr r0, _08157AD8 @ =gBattleBufferA + 3 adds r2, r0 adds r0, r6, 0 movs r1, 0xC @@ -3169,7 +3169,7 @@ _08157AC0: b _0815809A .align 2, 0 _08157AD4: .4byte gActiveBattler -_08157AD8: .4byte gUnknown_2022BC7 +_08157AD8: .4byte gBattleBufferA + 3 _08157ADC: movs r4, 0 movs r0, 0xC @@ -3213,7 +3213,7 @@ _08157B2C: ldr r5, _08157B80 @ =gActiveBattler ldrb r2, [r5] lsls r2, 9 - ldr r4, _08157B84 @ =gUnknown_2022BC7 + ldr r4, _08157B84 @ =gBattleBufferA + 3 adds r2, r4 adds r0, r6, 0 movs r1, 0x11 @@ -3249,7 +3249,7 @@ _08157B2C: b _0815809A .align 2, 0 _08157B80: .4byte gActiveBattler -_08157B84: .4byte gUnknown_2022BC7 +_08157B84: .4byte gBattleBufferA + 3 _08157B88: ldr r0, _08157BA4 @ =gActiveBattler ldrb r2, [r0] @@ -3270,7 +3270,7 @@ _08157BA8: ldr r0, _08157BBC @ =gActiveBattler ldrb r2, [r0] lsls r2, 9 - ldr r0, _08157BC0 @ =gUnknown_2022BC7 + ldr r0, _08157BC0 @ =gBattleBufferA + 3 adds r2, r0 adds r0, r6, 0 movs r1, 0x1 @@ -3278,12 +3278,12 @@ _08157BA8: b _0815809A .align 2, 0 _08157BBC: .4byte gActiveBattler -_08157BC0: .4byte gUnknown_2022BC7 +_08157BC0: .4byte gBattleBufferA + 3 _08157BC4: ldr r0, _08157BD8 @ =gActiveBattler ldrb r2, [r0] lsls r2, 9 - ldr r0, _08157BDC @ =gUnknown_2022BC7 + ldr r0, _08157BDC @ =gBattleBufferA + 3 adds r2, r0 adds r0, r6, 0 movs r1, 0x19 @@ -3291,12 +3291,12 @@ _08157BC4: b _0815809A .align 2, 0 _08157BD8: .4byte gActiveBattler -_08157BDC: .4byte gUnknown_2022BC7 +_08157BDC: .4byte gBattleBufferA + 3 _08157BE0: ldr r0, _08157BF4 @ =gActiveBattler ldrb r2, [r0] lsls r2, 9 - ldr r0, _08157BF8 @ =gUnknown_2022BC7 + ldr r0, _08157BF8 @ =gBattleBufferA + 3 adds r2, r0 adds r0, r6, 0 movs r1, 0x1A @@ -3304,12 +3304,12 @@ _08157BE0: b _0815809A .align 2, 0 _08157BF4: .4byte gActiveBattler -_08157BF8: .4byte gUnknown_2022BC7 +_08157BF8: .4byte gBattleBufferA + 3 _08157BFC: ldr r0, _08157C10 @ =gActiveBattler ldrb r2, [r0] lsls r2, 9 - ldr r0, _08157C14 @ =gUnknown_2022BC7 + ldr r0, _08157C14 @ =gBattleBufferA + 3 adds r2, r0 adds r0, r6, 0 movs r1, 0x1B @@ -3317,12 +3317,12 @@ _08157BFC: b _0815809A .align 2, 0 _08157C10: .4byte gActiveBattler -_08157C14: .4byte gUnknown_2022BC7 +_08157C14: .4byte gBattleBufferA + 3 _08157C18: ldr r0, _08157C2C @ =gActiveBattler ldrb r2, [r0] lsls r2, 9 - ldr r0, _08157C30 @ =gUnknown_2022BC7 + ldr r0, _08157C30 @ =gBattleBufferA + 3 adds r2, r0 adds r0, r6, 0 movs r1, 0x1C @@ -3330,12 +3330,12 @@ _08157C18: b _0815809A .align 2, 0 _08157C2C: .4byte gActiveBattler -_08157C30: .4byte gUnknown_2022BC7 +_08157C30: .4byte gBattleBufferA + 3 _08157C34: ldr r0, _08157C48 @ =gActiveBattler ldrb r2, [r0] lsls r2, 9 - ldr r0, _08157C4C @ =gUnknown_2022BC7 + ldr r0, _08157C4C @ =gBattleBufferA + 3 adds r2, r0 adds r0, r6, 0 movs r1, 0x1D @@ -3343,12 +3343,12 @@ _08157C34: b _0815809A .align 2, 0 _08157C48: .4byte gActiveBattler -_08157C4C: .4byte gUnknown_2022BC7 +_08157C4C: .4byte gBattleBufferA + 3 _08157C50: ldr r0, _08157C64 @ =gActiveBattler ldrb r2, [r0] lsls r2, 9 - ldr r0, _08157C68 @ =gUnknown_2022BC7 + ldr r0, _08157C68 @ =gBattleBufferA + 3 adds r2, r0 adds r0, r6, 0 movs r1, 0x1E @@ -3356,12 +3356,12 @@ _08157C50: b _0815809A .align 2, 0 _08157C64: .4byte gActiveBattler -_08157C68: .4byte gUnknown_2022BC7 +_08157C68: .4byte gBattleBufferA + 3 _08157C6C: ldr r0, _08157C80 @ =gActiveBattler ldrb r2, [r0] lsls r2, 9 - ldr r0, _08157C84 @ =gUnknown_2022BC7 + ldr r0, _08157C84 @ =gBattleBufferA + 3 adds r2, r0 adds r0, r6, 0 movs r1, 0x1F @@ -3369,12 +3369,12 @@ _08157C6C: b _0815809A .align 2, 0 _08157C80: .4byte gActiveBattler -_08157C84: .4byte gUnknown_2022BC7 +_08157C84: .4byte gBattleBufferA + 3 _08157C88: ldr r0, _08157C9C @ =gActiveBattler ldrb r2, [r0] lsls r2, 9 - ldr r0, _08157CA0 @ =gUnknown_2022BC7 + ldr r0, _08157CA0 @ =gBattleBufferA + 3 adds r2, r0 adds r0, r6, 0 movs r1, 0x20 @@ -3382,12 +3382,12 @@ _08157C88: b _0815809A .align 2, 0 _08157C9C: .4byte gActiveBattler -_08157CA0: .4byte gUnknown_2022BC7 +_08157CA0: .4byte gBattleBufferA + 3 _08157CA4: ldr r0, _08157CB8 @ =gActiveBattler ldrb r2, [r0] lsls r2, 9 - ldr r0, _08157CBC @ =gUnknown_2022BC7 + ldr r0, _08157CBC @ =gBattleBufferA + 3 adds r2, r0 adds r0, r6, 0 movs r1, 0x22 @@ -3395,12 +3395,12 @@ _08157CA4: b _0815809A .align 2, 0 _08157CB8: .4byte gActiveBattler -_08157CBC: .4byte gUnknown_2022BC7 +_08157CBC: .4byte gBattleBufferA + 3 _08157CC0: ldr r0, _08157CD4 @ =gActiveBattler ldrb r2, [r0] lsls r2, 9 - ldr r0, _08157CD8 @ =gUnknown_2022BC7 + ldr r0, _08157CD8 @ =gBattleBufferA + 3 adds r2, r0 adds r0, r6, 0 movs r1, 0x23 @@ -3408,12 +3408,12 @@ _08157CC0: b _0815809A .align 2, 0 _08157CD4: .4byte gActiveBattler -_08157CD8: .4byte gUnknown_2022BC7 +_08157CD8: .4byte gBattleBufferA + 3 _08157CDC: ldr r0, _08157CF0 @ =gActiveBattler ldrb r2, [r0] lsls r2, 9 - ldr r0, _08157CF4 @ =gUnknown_2022BC7 + ldr r0, _08157CF4 @ =gBattleBufferA + 3 adds r2, r0 adds r0, r6, 0 movs r1, 0x24 @@ -3421,12 +3421,12 @@ _08157CDC: b _0815809A .align 2, 0 _08157CF0: .4byte gActiveBattler -_08157CF4: .4byte gUnknown_2022BC7 +_08157CF4: .4byte gBattleBufferA + 3 _08157CF8: ldr r0, _08157D0C @ =gActiveBattler ldrb r2, [r0] lsls r2, 9 - ldr r0, _08157D10 @ =gUnknown_2022BC7 + ldr r0, _08157D10 @ =gBattleBufferA + 3 adds r2, r0 adds r0, r6, 0 movs r1, 0x25 @@ -3434,12 +3434,12 @@ _08157CF8: b _0815809A .align 2, 0 _08157D0C: .4byte gActiveBattler -_08157D10: .4byte gUnknown_2022BC7 +_08157D10: .4byte gBattleBufferA + 3 _08157D14: ldr r0, _08157D28 @ =gActiveBattler ldrb r2, [r0] lsls r2, 9 - ldr r0, _08157D2C @ =gUnknown_2022BC7 + ldr r0, _08157D2C @ =gBattleBufferA + 3 adds r2, r0 adds r0, r6, 0 movs r1, 0x26 @@ -3447,12 +3447,12 @@ _08157D14: b _0815809A .align 2, 0 _08157D28: .4byte gActiveBattler -_08157D2C: .4byte gUnknown_2022BC7 +_08157D2C: .4byte gBattleBufferA + 3 _08157D30: ldr r5, _08157D8C @ =gActiveBattler ldrb r2, [r5] lsls r2, 9 - ldr r4, _08157D90 @ =gUnknown_2022BC7 + ldr r4, _08157D90 @ =gBattleBufferA + 3 adds r2, r4 adds r0, r6, 0 movs r1, 0x27 @@ -3492,12 +3492,12 @@ _08157D30: b _08157E2A .align 2, 0 _08157D8C: .4byte gActiveBattler -_08157D90: .4byte gUnknown_2022BC7 +_08157D90: .4byte gBattleBufferA + 3 _08157D94: ldr r0, _08157DA8 @ =gActiveBattler ldrb r2, [r0] lsls r2, 9 - ldr r0, _08157DAC @ =gUnknown_2022BC7 + ldr r0, _08157DAC @ =gBattleBufferA + 3 adds r2, r0 adds r0, r6, 0 movs r1, 0x27 @@ -3505,12 +3505,12 @@ _08157D94: b _0815809A .align 2, 0 _08157DA8: .4byte gActiveBattler -_08157DAC: .4byte gUnknown_2022BC7 +_08157DAC: .4byte gBattleBufferA + 3 _08157DB0: ldr r0, _08157DC4 @ =gActiveBattler ldrb r2, [r0] lsls r2, 9 - ldr r0, _08157DC8 @ =gUnknown_2022BC7 + ldr r0, _08157DC8 @ =gBattleBufferA + 3 adds r2, r0 adds r0, r6, 0 movs r1, 0x28 @@ -3518,12 +3518,12 @@ _08157DB0: b _0815809A .align 2, 0 _08157DC4: .4byte gActiveBattler -_08157DC8: .4byte gUnknown_2022BC7 +_08157DC8: .4byte gBattleBufferA + 3 _08157DCC: ldr r0, _08157DE0 @ =gActiveBattler ldrb r2, [r0] lsls r2, 9 - ldr r0, _08157DE4 @ =gUnknown_2022BC7 + ldr r0, _08157DE4 @ =gBattleBufferA + 3 adds r2, r0 adds r0, r6, 0 movs r1, 0x29 @@ -3531,12 +3531,12 @@ _08157DCC: b _0815809A .align 2, 0 _08157DE0: .4byte gActiveBattler -_08157DE4: .4byte gUnknown_2022BC7 +_08157DE4: .4byte gBattleBufferA + 3 _08157DE8: ldr r0, _08157DFC @ =gActiveBattler ldrb r2, [r0] lsls r2, 9 - ldr r0, _08157E00 @ =gUnknown_2022BC7 + ldr r0, _08157E00 @ =gBattleBufferA + 3 adds r2, r0 adds r0, r6, 0 movs r1, 0x2A @@ -3544,12 +3544,12 @@ _08157DE8: b _0815809A .align 2, 0 _08157DFC: .4byte gActiveBattler -_08157E00: .4byte gUnknown_2022BC7 +_08157E00: .4byte gBattleBufferA + 3 _08157E04: ldr r0, _08157E18 @ =gActiveBattler ldrb r2, [r0] lsls r2, 9 - ldr r0, _08157E1C @ =gUnknown_2022BC7 + ldr r0, _08157E1C @ =gBattleBufferA + 3 adds r2, r0 adds r0, r6, 0 movs r1, 0x2B @@ -3557,12 +3557,12 @@ _08157E04: b _0815809A .align 2, 0 _08157E18: .4byte gActiveBattler -_08157E1C: .4byte gUnknown_2022BC7 +_08157E1C: .4byte gBattleBufferA + 3 _08157E20: ldr r0, _08157E34 @ =gActiveBattler ldrb r2, [r0] lsls r2, 9 - ldr r0, _08157E38 @ =gUnknown_2022BC7 + ldr r0, _08157E38 @ =gBattleBufferA + 3 adds r2, r0 _08157E2A: adds r0, r6, 0 @@ -3571,12 +3571,12 @@ _08157E2A: b _0815809A .align 2, 0 _08157E34: .4byte gActiveBattler -_08157E38: .4byte gUnknown_2022BC7 +_08157E38: .4byte gBattleBufferA + 3 _08157E3C: ldr r0, _08157E50 @ =gActiveBattler ldrb r2, [r0] lsls r2, 9 - ldr r0, _08157E54 @ =gUnknown_2022BC7 + ldr r0, _08157E54 @ =gBattleBufferA + 3 adds r2, r0 adds r0, r6, 0 movs r1, 0 @@ -3584,12 +3584,12 @@ _08157E3C: b _0815809A .align 2, 0 _08157E50: .4byte gActiveBattler -_08157E54: .4byte gUnknown_2022BC7 +_08157E54: .4byte gBattleBufferA + 3 _08157E58: ldr r0, _08157E6C @ =gActiveBattler ldrb r2, [r0] lsls r2, 9 - ldr r0, _08157E70 @ =gUnknown_2022BC7 + ldr r0, _08157E70 @ =gBattleBufferA + 3 adds r2, r0 adds r0, r6, 0 movs r1, 0x9 @@ -3597,12 +3597,12 @@ _08157E58: b _0815809A .align 2, 0 _08157E6C: .4byte gActiveBattler -_08157E70: .4byte gUnknown_2022BC7 +_08157E70: .4byte gBattleBufferA + 3 _08157E74: ldr r0, _08157E88 @ =gActiveBattler ldrb r2, [r0] lsls r2, 9 - ldr r0, _08157E8C @ =gUnknown_2022BC7 + ldr r0, _08157E8C @ =gBattleBufferA + 3 adds r2, r0 adds r0, r6, 0 movs r1, 0x37 @@ -3610,12 +3610,12 @@ _08157E74: b _0815809A .align 2, 0 _08157E88: .4byte gActiveBattler -_08157E8C: .4byte gUnknown_2022BC7 +_08157E8C: .4byte gBattleBufferA + 3 _08157E90: ldr r0, _08157EA4 @ =gActiveBattler ldrb r2, [r0] lsls r2, 9 - ldr r0, _08157EA8 @ =gUnknown_2022BC7 + ldr r0, _08157EA8 @ =gBattleBufferA + 3 adds r2, r0 adds r0, r6, 0 movs r1, 0x38 @@ -3623,12 +3623,12 @@ _08157E90: b _0815809A .align 2, 0 _08157EA4: .4byte gActiveBattler -_08157EA8: .4byte gUnknown_2022BC7 +_08157EA8: .4byte gBattleBufferA + 3 _08157EAC: ldr r0, _08157EC0 @ =gActiveBattler ldrb r2, [r0] lsls r2, 9 - ldr r0, _08157EC4 @ =gUnknown_2022BC7 + ldr r0, _08157EC4 @ =gBattleBufferA + 3 adds r2, r0 adds r0, r6, 0 movs r1, 0x39 @@ -3636,12 +3636,12 @@ _08157EAC: b _0815809A .align 2, 0 _08157EC0: .4byte gActiveBattler -_08157EC4: .4byte gUnknown_2022BC7 +_08157EC4: .4byte gBattleBufferA + 3 _08157EC8: ldr r0, _08157EDC @ =gActiveBattler ldrb r2, [r0] lsls r2, 9 - ldr r0, _08157EE0 @ =gUnknown_2022BC7 + ldr r0, _08157EE0 @ =gBattleBufferA + 3 adds r2, r0 adds r0, r6, 0 movs r1, 0x3A @@ -3649,12 +3649,12 @@ _08157EC8: b _0815809A .align 2, 0 _08157EDC: .4byte gActiveBattler -_08157EE0: .4byte gUnknown_2022BC7 +_08157EE0: .4byte gBattleBufferA + 3 _08157EE4: ldr r0, _08157EF8 @ =gActiveBattler ldrb r2, [r0] lsls r2, 9 - ldr r0, _08157EFC @ =gUnknown_2022BC7 + ldr r0, _08157EFC @ =gBattleBufferA + 3 adds r2, r0 adds r0, r6, 0 movs r1, 0x3B @@ -3662,12 +3662,12 @@ _08157EE4: b _0815809A .align 2, 0 _08157EF8: .4byte gActiveBattler -_08157EFC: .4byte gUnknown_2022BC7 +_08157EFC: .4byte gBattleBufferA + 3 _08157F00: ldr r0, _08157F14 @ =gActiveBattler ldrb r2, [r0] lsls r2, 9 - ldr r0, _08157F18 @ =gUnknown_2022BC7 + ldr r0, _08157F18 @ =gBattleBufferA + 3 adds r2, r0 adds r0, r6, 0 movs r1, 0x3C @@ -3675,12 +3675,12 @@ _08157F00: b _0815809A .align 2, 0 _08157F14: .4byte gActiveBattler -_08157F18: .4byte gUnknown_2022BC7 +_08157F18: .4byte gBattleBufferA + 3 _08157F1C: ldr r0, _08157F30 @ =gActiveBattler ldrb r2, [r0] lsls r2, 9 - ldr r0, _08157F34 @ =gUnknown_2022BC7 + ldr r0, _08157F34 @ =gBattleBufferA + 3 adds r2, r0 adds r0, r6, 0 movs r1, 0x3D @@ -3688,12 +3688,12 @@ _08157F1C: b _0815809A .align 2, 0 _08157F30: .4byte gActiveBattler -_08157F34: .4byte gUnknown_2022BC7 +_08157F34: .4byte gBattleBufferA + 3 _08157F38: ldr r0, _08157F4C @ =gActiveBattler ldrb r2, [r0] lsls r2, 9 - ldr r0, _08157F50 @ =gUnknown_2022BC7 + ldr r0, _08157F50 @ =gBattleBufferA + 3 adds r2, r0 adds r0, r6, 0 movs r1, 0x3E @@ -3701,12 +3701,12 @@ _08157F38: b _0815809A .align 2, 0 _08157F4C: .4byte gActiveBattler -_08157F50: .4byte gUnknown_2022BC7 +_08157F50: .4byte gBattleBufferA + 3 _08157F54: ldr r0, _08157F68 @ =gActiveBattler ldrb r2, [r0] lsls r2, 9 - ldr r0, _08157F6C @ =gUnknown_2022BC7 + ldr r0, _08157F6C @ =gBattleBufferA + 3 adds r2, r0 adds r0, r6, 0 movs r1, 0x3F @@ -3714,12 +3714,12 @@ _08157F54: b _0815809A .align 2, 0 _08157F68: .4byte gActiveBattler -_08157F6C: .4byte gUnknown_2022BC7 +_08157F6C: .4byte gBattleBufferA + 3 _08157F70: ldr r0, _08157F84 @ =gActiveBattler ldrb r2, [r0] lsls r2, 9 - ldr r0, _08157F88 @ =gUnknown_2022BC7 + ldr r0, _08157F88 @ =gBattleBufferA + 3 adds r2, r0 adds r0, r6, 0 movs r1, 0x16 @@ -3727,12 +3727,12 @@ _08157F70: b _0815809A .align 2, 0 _08157F84: .4byte gActiveBattler -_08157F88: .4byte gUnknown_2022BC7 +_08157F88: .4byte gBattleBufferA + 3 _08157F8C: ldr r0, _08157FA0 @ =gActiveBattler ldrb r2, [r0] lsls r2, 9 - ldr r0, _08157FA4 @ =gUnknown_2022BC7 + ldr r0, _08157FA4 @ =gBattleBufferA + 3 adds r2, r0 adds r0, r6, 0 movs r1, 0x17 @@ -3740,12 +3740,12 @@ _08157F8C: b _0815809A .align 2, 0 _08157FA0: .4byte gActiveBattler -_08157FA4: .4byte gUnknown_2022BC7 +_08157FA4: .4byte gBattleBufferA + 3 _08157FA8: ldr r0, _08157FBC @ =gActiveBattler ldrb r2, [r0] lsls r2, 9 - ldr r0, _08157FC0 @ =gUnknown_2022BC7 + ldr r0, _08157FC0 @ =gBattleBufferA + 3 adds r2, r0 adds r0, r6, 0 movs r1, 0x18 @@ -3753,12 +3753,12 @@ _08157FA8: b _0815809A .align 2, 0 _08157FBC: .4byte gActiveBattler -_08157FC0: .4byte gUnknown_2022BC7 +_08157FC0: .4byte gBattleBufferA + 3 _08157FC4: ldr r0, _08157FD8 @ =gActiveBattler ldrb r2, [r0] lsls r2, 9 - ldr r0, _08157FDC @ =gUnknown_2022BC7 + ldr r0, _08157FDC @ =gBattleBufferA + 3 adds r2, r0 adds r0, r6, 0 movs r1, 0x21 @@ -3766,12 +3766,12 @@ _08157FC4: b _0815809A .align 2, 0 _08157FD8: .4byte gActiveBattler -_08157FDC: .4byte gUnknown_2022BC7 +_08157FDC: .4byte gBattleBufferA + 3 _08157FE0: ldr r0, _08157FF4 @ =gActiveBattler ldrb r2, [r0] lsls r2, 9 - ldr r0, _08157FF8 @ =gUnknown_2022BC7 + ldr r0, _08157FF8 @ =gBattleBufferA + 3 adds r2, r0 adds r0, r6, 0 movs r1, 0x2F @@ -3779,12 +3779,12 @@ _08157FE0: b _0815809A .align 2, 0 _08157FF4: .4byte gActiveBattler -_08157FF8: .4byte gUnknown_2022BC7 +_08157FF8: .4byte gBattleBufferA + 3 _08157FFC: ldr r0, _08158010 @ =gActiveBattler ldrb r2, [r0] lsls r2, 9 - ldr r0, _08158014 @ =gUnknown_2022BC7 + ldr r0, _08158014 @ =gBattleBufferA + 3 adds r2, r0 adds r0, r6, 0 movs r1, 0x30 @@ -3792,12 +3792,12 @@ _08157FFC: b _0815809A .align 2, 0 _08158010: .4byte gActiveBattler -_08158014: .4byte gUnknown_2022BC7 +_08158014: .4byte gBattleBufferA + 3 _08158018: ldr r0, _0815802C @ =gActiveBattler ldrb r2, [r0] lsls r2, 9 - ldr r0, _08158030 @ =gUnknown_2022BC7 + ldr r0, _08158030 @ =gBattleBufferA + 3 adds r2, r0 adds r0, r6, 0 movs r1, 0x32 @@ -3805,12 +3805,12 @@ _08158018: b _0815809A .align 2, 0 _0815802C: .4byte gActiveBattler -_08158030: .4byte gUnknown_2022BC7 +_08158030: .4byte gBattleBufferA + 3 _08158034: ldr r0, _08158048 @ =gActiveBattler ldrb r2, [r0] lsls r2, 9 - ldr r0, _0815804C @ =gUnknown_2022BC7 + ldr r0, _0815804C @ =gBattleBufferA + 3 adds r2, r0 adds r0, r6, 0 movs r1, 0x33 @@ -3818,12 +3818,12 @@ _08158034: b _0815809A .align 2, 0 _08158048: .4byte gActiveBattler -_0815804C: .4byte gUnknown_2022BC7 +_0815804C: .4byte gBattleBufferA + 3 _08158050: ldr r0, _08158064 @ =gActiveBattler ldrb r2, [r0] lsls r2, 9 - ldr r0, _08158068 @ =gUnknown_2022BC7 + ldr r0, _08158068 @ =gBattleBufferA + 3 adds r2, r0 adds r0, r6, 0 movs r1, 0x34 @@ -3831,12 +3831,12 @@ _08158050: b _0815809A .align 2, 0 _08158064: .4byte gActiveBattler -_08158068: .4byte gUnknown_2022BC7 +_08158068: .4byte gBattleBufferA + 3 _0815806C: ldr r0, _08158080 @ =gActiveBattler ldrb r2, [r0] lsls r2, 9 - ldr r0, _08158084 @ =gUnknown_2022BC7 + ldr r0, _08158084 @ =gBattleBufferA + 3 adds r2, r0 adds r0, r6, 0 movs r1, 0x35 @@ -3844,12 +3844,12 @@ _0815806C: b _0815809A .align 2, 0 _08158080: .4byte gActiveBattler -_08158084: .4byte gUnknown_2022BC7 +_08158084: .4byte gBattleBufferA + 3 _08158088: ldr r0, _081580C4 @ =gActiveBattler ldrb r2, [r0] lsls r2, 9 - ldr r0, _081580C8 @ =gUnknown_2022BC7 + ldr r0, _081580C8 @ =gBattleBufferA + 3 adds r2, r0 adds r0, r6, 0 movs r1, 0x36 @@ -3876,7 +3876,7 @@ _0815809A: bx r0 .align 2, 0 _081580C4: .4byte gActiveBattler -_081580C8: .4byte gUnknown_2022BC7 +_081580C8: .4byte gBattleBufferA + 3 _081580CC: .4byte gBattlerPartyIndexes _081580D0: .4byte gPlayerParty thumb_func_end sub_81577B4 @@ -5063,7 +5063,7 @@ sub_8158A88: @ 8158A88 ldr r0, _08158AC4 @ =gActiveBattler ldrb r4, [r0] lsls r4, 9 - ldr r0, _08158AC8 @ =gUnknown_2022BC6 + ldr r0, _08158AC8 @ =gBattleBufferA + 2 adds r4, r0 ldrh r0, [r4] bl BufferStringBattle @@ -5080,7 +5080,7 @@ sub_8158A88: @ 8158A88 _08158ABC: .4byte gBattle_BG0_X _08158AC0: .4byte gBattle_BG0_Y _08158AC4: .4byte gActiveBattler -_08158AC8: .4byte gUnknown_2022BC6 +_08158AC8: .4byte gBattleBufferA + 2 _08158ACC: .4byte gDisplayedStringBattle _08158AD0: ldr r0, _08158AEC @ =gDisplayedStringBattle @@ -6552,7 +6552,7 @@ _08159690: strb r1, [r0] ldrb r0, [r5] lsls r4, r0, 9 - ldr r3, _081596DC @ =gUnknown_2022BC8 + ldr r3, _081596DC @ =gBattleBufferA + 4 adds r1, r4, r3 subs r2, r3, 0x3 adds r2, r4, r2 @@ -6573,7 +6573,7 @@ _081596CE: .align 2, 0 _081596D4: .4byte gBattleSpritesDataPtr _081596D8: .4byte gActiveBattler -_081596DC: .4byte gUnknown_2022BC8 +_081596DC: .4byte gBattleBufferA + 4 _081596E0: .4byte gBattlerStatusSummaryTaskId thumb_func_end sub_8159660 @@ -7081,7 +7081,7 @@ sub_8159AB8: @ 8159AB8 ldr r3, _08159B5C @ =gActiveBattler ldrb r5, [r3] lsls r1, r5, 9 - ldr r0, _08159B60 @ =gUnknown_2022BC6 + ldr r0, _08159B60 @ =gBattleBufferA + 2 adds r7, r1, r0 mov r12, r7 subs r0, 0x2 @@ -7150,7 +7150,7 @@ _08159B04: _08159B54: .4byte gUnknown_8479198 _08159B58: .4byte gBattleStruct _08159B5C: .4byte gActiveBattler -_08159B60: .4byte gUnknown_2022BC6 +_08159B60: .4byte gBattleBufferA + 2 _08159B64: .4byte gBattlerControllerFuncs _08159B68: .4byte gUnknown_3005EE0 _08159B6C: diff --git a/asm/battle_interface.s b/asm/battle_interface.s index 3de518630..671487d57 100644 --- a/asm/battle_interface.s +++ b/asm/battle_interface.s @@ -4304,7 +4304,7 @@ UpdateLeftNoOfBallsTextOnHealthbox: @ 8049D10 adds r4, r0, 0 lsls r4, 24 lsrs r4, 24 - ldr r1, _08049D84 @ =gUnknown_83FE81C + ldr r1, _08049D84 @ =gText_HighlightRed_Left mov r0, sp bl StringCopy ldr r1, _08049D88 @ =gNumSafariBalls @@ -4350,7 +4350,7 @@ UpdateLeftNoOfBallsTextOnHealthbox: @ 8049D10 pop {r0} bx r0 .align 2, 0 -_08049D84: .4byte gUnknown_83FE81C +_08049D84: .4byte gText_HighlightRed_Left _08049D88: .4byte gNumSafariBalls _08049D8C: .4byte gSprites _08049D90: .4byte 0x060102c0 diff --git a/asm/battle_message.s b/asm/battle_message.s index bd1011f9a..28d7b196d 100644 --- a/asm/battle_message.s +++ b/asm/battle_message.s @@ -20,7 +20,7 @@ BufferStringBattle: @ 80D7274 mov r8, r0 ldrb r1, [r0] lsls r1, 9 - ldr r0, _080D7338 @ =gUnknown_2022BC8 + ldr r0, _080D7338 @ =gBattleBufferA + 4 adds r1, r0 str r1, [r4] ldr r2, _080D733C @ =gLastUsedItem @@ -107,7 +107,7 @@ _080D7326: .align 2, 0 _080D7330: .4byte gUnknown_2039A34 _080D7334: .4byte gActiveBattler -_080D7338: .4byte gUnknown_2022BC8 +_080D7338: .4byte gBattleBufferA + 4 _080D733C: .4byte gLastUsedItem _080D7340: .4byte gLastUsedAbility _080D7344: .4byte gBattleScripting @@ -744,7 +744,7 @@ _080D7834: ldr r5, [sp] ldr r4, [sp, 0x4] movs r3, 0 - ldr r2, _080D7850 @ =gUnknown_82500CC + ldr r2, _080D7850 @ =gStatusConditionStringsTable _080D783C: ldr r1, [r2] ldr r0, [r1] @@ -756,7 +756,7 @@ _080D783C: ldr r0, [r2, 0x4] b _080D785E .align 2, 0 -_080D7850: .4byte gUnknown_82500CC +_080D7850: .4byte gStatusConditionStringsTable _080D7854: adds r2, 0x8 adds r3, 0x1 @@ -1647,13 +1647,13 @@ _080D7FF0: ldrb r1, [r0] movs r0, 0xD muls r1, r0 - ldr r0, _080D8004 @ =gUnknown_824FC40 + ldr r0, _080D8004 @ =gAbilityNames adds r4, r1, r0 b _080D8382 .align 2, 0 _080D7FFC: .4byte gUnknown_2039A30 _080D8000: .4byte gEffectBattler -_080D8004: .4byte gUnknown_824FC40 +_080D8004: .4byte gAbilityNames _080D8008: ldr r3, _080D8020 @ =gTrainerBattleOpponent_A ldrh r1, [r3] @@ -1802,7 +1802,7 @@ _080D8120: cmp r1, 0 beq _080D8134 mov r0, sp - bl sub_80E7460 + bl CopyEReaderTrainerName5 mov r4, sp b _080D8382 _080D8134: @@ -1917,7 +1917,7 @@ _080D81E8: _080D8204: .4byte gBattleTypeFlags _080D8208: .4byte gStringVar4 _080D820C: - bl sub_80806EC + bl GetTrainerALoseText adds r4, r0, 0 b _080D8382 _080D8214: @@ -1937,7 +1937,7 @@ _080D8214: _080D8230: .4byte gBattleTypeFlags _080D8234: .4byte gStringVar4 _080D8238: - bl sub_8080710 + bl GetTrainerWonSpeech adds r4, r0, 0 b _080D8382 _080D8240: @@ -2430,7 +2430,7 @@ _080D860C: ldrb r1, [r0, 0x1] movs r0, 0xD muls r1, r0 - ldr r0, _080D8624 @ =gUnknown_824FC40 + ldr r0, _080D8624 @ =gAbilityNames _080D8616: adds r1, r0 _080D8618: @@ -2439,7 +2439,7 @@ _080D8618: adds r5, 0x2 b _080D86B0 .align 2, 0 -_080D8624: .4byte gUnknown_824FC40 +_080D8624: .4byte gAbilityNames _080D8628: adds r0, r5, r7 ldrb r2, [r0, 0x1] @@ -2943,7 +2943,7 @@ SetPpNumbersPaletteInMoveSelection: @ 80D89DC ldr r0, _080D8A38 @ =gActiveBattler ldrb r2, [r0] lsls r1, r2, 9 - ldr r0, _080D8A3C @ =gUnknown_2022BC8 + ldr r0, _080D8A3C @ =gBattleBufferA + 4 adds r1, r0 ldr r4, _080D8A40 @ =gUnknown_8D2FBB4 ldr r0, _080D8A44 @ =gMoveSelectionCursor @@ -2983,7 +2983,7 @@ SetPpNumbersPaletteInMoveSelection: @ 80D89DC bx r0 .align 2, 0 _080D8A38: .4byte gActiveBattler -_080D8A3C: .4byte gUnknown_2022BC8 +_080D8A3C: .4byte gBattleBufferA + 4 _080D8A40: .4byte gUnknown_8D2FBB4 _080D8A44: .4byte gMoveSelectionCursor _080D8A48: .4byte gPlttBufferUnfaded diff --git a/asm/battle_setup.s b/asm/battle_setup.s deleted file mode 100644 index 5a9797056..000000000 --- a/asm/battle_setup.s +++ /dev/null @@ -1,2180 +0,0 @@ - .include "asm/macros.inc" - .include "constants/constants.inc" - - .syntax unified - - .text - - thumb_func_start sub_807F620 -sub_807F620: @ 807F620 - push {r4,r5,lr} - lsls r0, 24 - lsrs r5, r0, 24 - lsls r0, r5, 2 - adds r0, r5 - lsls r0, 3 - ldr r1, _0807F640 @ =gTasks+0x8 - adds r4, r0, r1 - movs r1, 0 - ldrsh r0, [r4, r1] - cmp r0, 0 - beq _0807F644 - cmp r0, 0x1 - beq _0807F65E - b _0807F686 - .align 2, 0 -_0807F640: .4byte gTasks+0x8 -_0807F644: - bl FldEffPoison_IsActive - cmp r0, 0 - bne _0807F686 - bl HelpSystem_Disable - ldrb r0, [r4, 0x2] - bl BT_StartOnField - ldrh r0, [r4] - adds r0, 0x1 - strh r0, [r4] - b _0807F686 -_0807F65E: - bl BT_IsDone - lsls r0, 24 - lsrs r0, 24 - cmp r0, 0x1 - bne _0807F686 - bl HelpSystem_Enable - bl CleanupOverworldWindowsAndTilemaps - ldr r0, _0807F68C @ =sub_800FD9C - bl SetMainCallback2 - bl sub_806D7E8 - bl ClearPoisonStepCounter - adds r0, r5, 0 - bl DestroyTask -_0807F686: - pop {r4,r5} - pop {r0} - bx r0 - .align 2, 0 -_0807F68C: .4byte sub_800FD9C - thumb_func_end sub_807F620 - - thumb_func_start sub_807F690 -sub_807F690: @ 807F690 - push {r4,r5,lr} - adds r4, r0, 0 - adds r5, r1, 0 - lsls r4, 24 - lsrs r4, 24 - lsls r5, 16 - lsrs r5, 16 - ldr r0, _0807F6C4 @ =sub_807F620 - movs r1, 0x1 - bl CreateTask - lsls r0, 24 - lsrs r0, 24 - ldr r2, _0807F6C8 @ =gTasks - lsls r1, r0, 2 - adds r1, r0 - lsls r1, 3 - adds r1, r2 - strh r4, [r1, 0xA] - adds r0, r5, 0 - bl PlayMapChosenOrBattleBGM - pop {r4,r5} - pop {r0} - bx r0 - .align 2, 0 -_0807F6C4: .4byte sub_807F620 -_0807F6C8: .4byte gTasks - thumb_func_end sub_807F690 - - thumb_func_start sub_807F6CC -sub_807F6CC: @ 807F6CC - push {lr} - lsls r0, 16 - lsrs r0, 16 - lsls r1, 16 - lsrs r1, 16 - cmp r0, 0x1 - bne _0807F6FC - adds r0, r1, 0 - subs r0, 0x58 - lsls r0, 16 - lsrs r0, 16 - cmp r0, 0x6 - bhi _0807F6FC - ldr r0, _0807F6F8 @ =0x00000167 - movs r1, 0x1 - bl CheckBagHasItem - lsls r0, 24 - cmp r0, 0 - bne _0807F6FC - movs r0, 0x1 - b _0807F6FE - .align 2, 0 -_0807F6F8: .4byte 0x00000167 -_0807F6FC: - movs r0, 0 -_0807F6FE: - pop {r1} - bx r1 - thumb_func_end sub_807F6CC - - thumb_func_start sub_807F704 -sub_807F704: @ 807F704 - push {lr} - bl GetSafariZoneFlag - cmp r0, 0 - beq _0807F714 - bl sub_807F7D8 - b _0807F744 -_0807F714: - ldr r0, _0807F73C @ =gSaveBlock1Ptr - ldr r1, [r0] - movs r0, 0x4 - ldrsb r0, [r1, r0] - lsls r0, 16 - lsrs r0, 16 - ldrb r1, [r1, 0x5] - lsls r1, 24 - asrs r1, 24 - lsls r1, 16 - lsrs r1, 16 - bl sub_807F6CC - lsls r0, 24 - cmp r0, 0 - beq _0807F740 - bl sub_807F810 - b _0807F744 - .align 2, 0 -_0807F73C: .4byte gSaveBlock1Ptr -_0807F740: - bl sub_807F748 -_0807F744: - pop {r0} - bx r0 - thumb_func_end sub_807F704 - - thumb_func_start sub_807F748 -sub_807F748: @ 807F748 - push {lr} - bl ScriptContext2_Enable - bl player_bitmagic - bl sub_805C780 - ldr r1, _0807F780 @ =gMain - ldr r0, _0807F784 @ =sub_807FB40 - str r0, [r1, 0x8] - ldr r1, _0807F788 @ =gBattleTypeFlags - movs r0, 0 - str r0, [r1] - bl GetWildBattleTransition - lsls r0, 24 - lsrs r0, 24 - movs r1, 0 - bl sub_807F690 - movs r0, 0x7 - bl IncrementGameStat - movs r0, 0x8 - bl IncrementGameStat - pop {r0} - bx r0 - .align 2, 0 -_0807F780: .4byte gMain -_0807F784: .4byte sub_807FB40 -_0807F788: .4byte gBattleTypeFlags - thumb_func_end sub_807F748 - - thumb_func_start sub_807F78C -sub_807F78C: @ 807F78C - push {lr} - bl ScriptContext2_Enable - bl player_bitmagic - bl sub_805C780 - ldr r1, _0807F7C8 @ =gMain - ldr r0, _0807F7CC @ =sub_807FB40 - str r0, [r1, 0x8] - ldr r1, _0807F7D0 @ =gBattleTypeFlags - movs r0, 0x80 - lsls r0, 3 - str r0, [r1] - bl GetWildBattleTransition - lsls r0, 24 - lsrs r0, 24 - ldr r1, _0807F7D4 @ =0x00000155 - bl sub_807F690 - movs r0, 0x7 - bl IncrementGameStat - movs r0, 0x8 - bl IncrementGameStat - pop {r0} - bx r0 - .align 2, 0 -_0807F7C8: .4byte gMain -_0807F7CC: .4byte sub_807FB40 -_0807F7D0: .4byte gBattleTypeFlags -_0807F7D4: .4byte 0x00000155 - thumb_func_end sub_807F78C - - thumb_func_start sub_807F7D8 -sub_807F7D8: @ 807F7D8 - push {lr} - bl ScriptContext2_Enable - bl player_bitmagic - bl sub_805C780 - ldr r1, _0807F804 @ =gMain - ldr r0, _0807F808 @ =CB2_EndSafariBattle - str r0, [r1, 0x8] - ldr r1, _0807F80C @ =gBattleTypeFlags - movs r0, 0x80 - str r0, [r1] - bl GetWildBattleTransition - lsls r0, 24 - lsrs r0, 24 - movs r1, 0 - bl sub_807F690 - pop {r0} - bx r0 - .align 2, 0 -_0807F804: .4byte gMain -_0807F808: .4byte CB2_EndSafariBattle -_0807F80C: .4byte gBattleTypeFlags - thumb_func_end sub_807F7D8 - - thumb_func_start sub_807F810 -sub_807F810: @ 807F810 - push {lr} - bl ScriptContext2_Enable - bl player_bitmagic - bl sub_805C780 - ldr r1, _0807F854 @ =gMain - ldr r0, _0807F858 @ =sub_807FB40 - str r0, [r1, 0x8] - ldr r1, _0807F85C @ =gBattleTypeFlags - movs r0, 0x80 - lsls r0, 8 - str r0, [r1] - bl GetWildBattleTransition - lsls r0, 24 - lsrs r0, 24 - movs r1, 0 - bl sub_807F690 - ldr r0, _0807F860 @ =gEnemyParty - ldr r2, _0807F864 @ =gUnknown_841D148 - movs r1, 0x2 - bl SetMonData - movs r0, 0x7 - bl IncrementGameStat - movs r0, 0x8 - bl IncrementGameStat - pop {r0} - bx r0 - .align 2, 0 -_0807F854: .4byte gMain -_0807F858: .4byte sub_807FB40 -_0807F85C: .4byte gBattleTypeFlags -_0807F860: .4byte gEnemyParty -_0807F864: .4byte gUnknown_841D148 - thumb_func_end sub_807F810 - - thumb_func_start sub_807F868 -sub_807F868: @ 807F868 - push {lr} - bl sub_807FF80 - lsls r0, 24 - lsrs r0, 24 - movs r1, 0 - bl sub_807F690 - movs r0, 0x7 - bl IncrementGameStat - movs r0, 0x9 - bl IncrementGameStat - pop {r0} - bx r0 - thumb_func_end sub_807F868 - - thumb_func_start sub_807F888 -sub_807F888: @ 807F888 - push {lr} - ldr r0, _0807F8B4 @ =gEnemyParty - movs r1, 0xD - movs r2, 0x5 - bl CreateMaleMon - bl ScriptContext2_Enable - ldr r1, _0807F8B8 @ =gMain - ldr r0, _0807F8BC @ =CB2_ReturnToFieldContinueScriptPlayMapMusic - str r0, [r1, 0x8] - ldr r1, _0807F8C0 @ =gBattleTypeFlags - movs r0, 0x80 - lsls r0, 2 - str r0, [r1] - movs r0, 0x8 - movs r1, 0 - bl sub_807F690 - pop {r0} - bx r0 - .align 2, 0 -_0807F8B4: .4byte gEnemyParty -_0807F8B8: .4byte gMain -_0807F8BC: .4byte CB2_ReturnToFieldContinueScriptPlayMapMusic -_0807F8C0: .4byte gBattleTypeFlags - thumb_func_end sub_807F888 - - thumb_func_start BattleSetup_StartScriptedWildBattle -BattleSetup_StartScriptedWildBattle: @ 807F8C4 - push {lr} - bl ScriptContext2_Enable - ldr r1, _0807F8F8 @ =gMain - ldr r0, _0807F8FC @ =sub_807FBA0 - str r0, [r1, 0x8] - ldr r1, _0807F900 @ =gBattleTypeFlags - movs r0, 0x80 - lsls r0, 10 - str r0, [r1] - bl GetWildBattleTransition - lsls r0, 24 - lsrs r0, 24 - movs r1, 0 - bl sub_807F690 - movs r0, 0x7 - bl IncrementGameStat - movs r0, 0x8 - bl IncrementGameStat - pop {r0} - bx r0 - .align 2, 0 -_0807F8F8: .4byte gMain -_0807F8FC: .4byte sub_807FBA0 -_0807F900: .4byte gBattleTypeFlags - thumb_func_end BattleSetup_StartScriptedWildBattle - - thumb_func_start sub_807F904 -sub_807F904: @ 807F904 - push {lr} - sub sp, 0xC - bl ScriptContext2_Enable - ldr r1, _0807F944 @ =gMain - ldr r0, _0807F948 @ =sub_807FBF0 - str r0, [r1, 0x8] - ldr r0, _0807F94C @ =0x00000167 - movs r1, 0x1 - bl CheckBagHasItem - lsls r0, 24 - cmp r0, 0 - beq _0807F958 - ldr r1, _0807F950 @ =gBattleTypeFlags - movs r0, 0xA0 - lsls r0, 8 - str r0, [r1] - ldr r0, _0807F954 @ =gEnemyParty - movs r1, 0xFE - str r1, [sp] - movs r1, 0xC - str r1, [sp, 0x4] - movs r1, 0 - str r1, [sp, 0x8] - movs r1, 0x69 - movs r2, 0x1E - movs r3, 0x1F - bl CreateMonWithGenderNatureLetter - b _0807F960 - .align 2, 0 -_0807F944: .4byte gMain -_0807F948: .4byte sub_807FBF0 -_0807F94C: .4byte 0x00000167 -_0807F950: .4byte gBattleTypeFlags -_0807F954: .4byte gEnemyParty -_0807F958: - ldr r1, _0807F98C @ =gBattleTypeFlags - movs r0, 0x80 - lsls r0, 8 - str r0, [r1] -_0807F960: - bl GetWildBattleTransition - lsls r0, 24 - lsrs r0, 24 - movs r1, 0 - bl sub_807F690 - ldr r0, _0807F990 @ =gEnemyParty - ldr r2, _0807F994 @ =gUnknown_841D148 - movs r1, 0x2 - bl SetMonData - movs r0, 0x7 - bl IncrementGameStat - movs r0, 0x8 - bl IncrementGameStat - add sp, 0xC - pop {r0} - bx r0 - .align 2, 0 -_0807F98C: .4byte gBattleTypeFlags -_0807F990: .4byte gEnemyParty -_0807F994: .4byte gUnknown_841D148 - thumb_func_end sub_807F904 - - thumb_func_start sub_807F998 -sub_807F998: @ 807F998 - push {lr} - bl ScriptContext2_Enable - ldr r1, _0807F9CC @ =gMain - ldr r0, _0807F9D0 @ =sub_807FBA0 - str r0, [r1, 0x8] - ldr r1, _0807F9D4 @ =gBattleTypeFlags - movs r0, 0x80 - lsls r0, 6 - str r0, [r1] - bl GetWildBattleTransition - lsls r0, 24 - lsrs r0, 24 - movs r1, 0 - bl sub_807F690 - movs r0, 0x7 - bl IncrementGameStat - movs r0, 0x8 - bl IncrementGameStat - pop {r0} - bx r0 - .align 2, 0 -_0807F9CC: .4byte gMain -_0807F9D0: .4byte sub_807FBA0 -_0807F9D4: .4byte gBattleTypeFlags - thumb_func_end sub_807F998 - - thumb_func_start sub_807F9D8 -sub_807F9D8: @ 807F9D8 - push {lr} - bl ScriptContext2_Enable - ldr r1, _0807FA0C @ =gMain - ldr r0, _0807FA10 @ =sub_807FBA0 - str r0, [r1, 0x8] - ldr r1, _0807FA14 @ =gBattleTypeFlags - movs r0, 0x84 - lsls r0, 11 - str r0, [r1] - ldr r0, _0807FA18 @ =gEnemyParty - movs r1, 0xB - bl GetMonData - lsls r0, 16 - lsrs r0, 16 - adds r1, r0, 0 - cmp r0, 0x96 - beq _0807FA2E - cmp r0, 0x96 - bgt _0807FA1C - cmp r0, 0x92 - bgt _0807FA4C - cmp r0, 0x90 - blt _0807FA4C - b _0807FA3C - .align 2, 0 -_0807FA0C: .4byte gMain -_0807FA10: .4byte sub_807FBA0 -_0807FA14: .4byte gBattleTypeFlags -_0807FA18: .4byte gEnemyParty -_0807FA1C: - cmp r1, 0xF9 - blt _0807FA4C - cmp r1, 0xFA - ble _0807FA3C - movs r0, 0xCD - lsls r0, 1 - cmp r1, r0 - beq _0807FA34 - b _0807FA4C -_0807FA2E: - movs r1, 0xAA - lsls r1, 1 - b _0807FA3E -_0807FA34: - ldr r1, _0807FA38 @ =0x00000153 - b _0807FA3E - .align 2, 0 -_0807FA38: .4byte 0x00000153 -_0807FA3C: - ldr r1, _0807FA48 @ =0x00000155 -_0807FA3E: - movs r0, 0 - bl sub_807F690 - b _0807FA56 - .align 2, 0 -_0807FA48: .4byte 0x00000155 -_0807FA4C: - movs r1, 0x85 - lsls r1, 1 - movs r0, 0 - bl sub_807F690 -_0807FA56: - movs r0, 0x7 - bl IncrementGameStat - movs r0, 0x8 - bl IncrementGameStat - pop {r0} - bx r0 - thumb_func_end sub_807F9D8 - - thumb_func_start sub_807FA68 -sub_807FA68: @ 807FA68 - push {lr} - bl ScriptContext2_Enable - ldr r1, _0807FA90 @ =gMain - ldr r0, _0807FA94 @ =sub_807FBA0 - str r0, [r1, 0x8] - ldr r1, _0807FA98 @ =gBattleTypeFlags - movs r0, 0xC0 - lsls r0, 6 - str r0, [r1] - ldr r0, _0807FA9C @ =gGameVersion - ldrb r0, [r0] - cmp r0, 0x4 - bne _0807FAA0 - movs r1, 0x85 - lsls r1, 1 - movs r0, 0xB - bl sub_807F690 - b _0807FAAA - .align 2, 0 -_0807FA90: .4byte gMain -_0807FA94: .4byte sub_807FBA0 -_0807FA98: .4byte gBattleTypeFlags -_0807FA9C: .4byte gGameVersion -_0807FAA0: - movs r1, 0x85 - lsls r1, 1 - movs r0, 0xB - bl sub_807F690 -_0807FAAA: - movs r0, 0x7 - bl IncrementGameStat - movs r0, 0x8 - bl IncrementGameStat - pop {r0} - bx r0 - thumb_func_end sub_807FA68 - - thumb_func_start sub_807FABC -sub_807FABC: @ 807FABC - push {lr} - bl ScriptContext2_Enable - ldr r1, _0807FAEC @ =gMain - ldr r0, _0807FAF0 @ =sub_807FBA0 - str r0, [r1, 0x8] - ldr r1, _0807FAF4 @ =gBattleTypeFlags - movs r0, 0xC0 - lsls r0, 7 - str r0, [r1] - movs r1, 0x85 - lsls r1, 1 - movs r0, 0 - bl sub_807F690 - movs r0, 0x7 - bl IncrementGameStat - movs r0, 0x8 - bl IncrementGameStat - pop {r0} - bx r0 - .align 2, 0 -_0807FAEC: .4byte gMain -_0807FAF0: .4byte sub_807FBA0 -_0807FAF4: .4byte gBattleTypeFlags - thumb_func_end sub_807FABC - - thumb_func_start sub_807FAF8 -sub_807FAF8: @ 807FAF8 - push {lr} - bl LoadPlayerParty - bl sub_807FB40 - pop {r0} - bx r0 - thumb_func_end sub_807FAF8 - - thumb_func_start sub_807FB08 -sub_807FB08: @ 807FB08 - push {lr} - bl ScriptContext2_Enable - bl player_bitmagic - bl sub_805C780 - ldr r1, _0807FB38 @ =gMain - ldr r0, _0807FB3C @ =sub_807FAF8 - str r0, [r1, 0x8] - bl SavePlayerParty - bl sub_8159F40 - bl GetWildBattleTransition - lsls r0, 24 - lsrs r0, 24 - movs r1, 0 - bl sub_807F690 - pop {r0} - bx r0 - .align 2, 0 -_0807FB38: .4byte gMain -_0807FB3C: .4byte sub_807FAF8 - thumb_func_end sub_807FB08 - - thumb_func_start sub_807FB40 -sub_807FB40: @ 807FB40 - push {lr} - sub sp, 0x4 - mov r1, sp - movs r0, 0 - strh r0, [r1] - movs r1, 0xA0 - lsls r1, 19 - ldr r2, _0807FB74 @ =0x01000100 - mov r0, sp - bl CpuSet - movs r0, 0 - movs r1, 0x80 - bl ResetOamRange - ldr r0, _0807FB78 @ =gBattleOutcome - ldrb r0, [r0] - bl IsPlayerDefeated - cmp r0, 0x1 - bne _0807FB80 - ldr r0, _0807FB7C @ =c2_whiteout - bl SetMainCallback2 - b _0807FB8C - .align 2, 0 -_0807FB74: .4byte 0x01000100 -_0807FB78: .4byte gBattleOutcome -_0807FB7C: .4byte c2_whiteout -_0807FB80: - ldr r0, _0807FB94 @ =CB2_ReturnToField - bl SetMainCallback2 - ldr r1, _0807FB98 @ =gFieldCallback - ldr r0, _0807FB9C @ =sub_807E3EC - str r0, [r1] -_0807FB8C: - add sp, 0x4 - pop {r0} - bx r0 - .align 2, 0 -_0807FB94: .4byte CB2_ReturnToField -_0807FB98: .4byte gFieldCallback -_0807FB9C: .4byte sub_807E3EC - thumb_func_end sub_807FB40 - - thumb_func_start sub_807FBA0 -sub_807FBA0: @ 807FBA0 - push {lr} - sub sp, 0x4 - mov r1, sp - movs r0, 0 - strh r0, [r1] - movs r1, 0xA0 - lsls r1, 19 - ldr r2, _0807FBD4 @ =0x01000100 - mov r0, sp - bl CpuSet - movs r0, 0 - movs r1, 0x80 - bl ResetOamRange - ldr r0, _0807FBD8 @ =gBattleOutcome - ldrb r0, [r0] - bl IsPlayerDefeated - cmp r0, 0x1 - bne _0807FBE0 - ldr r0, _0807FBDC @ =c2_whiteout - bl SetMainCallback2 - b _0807FBE6 - .align 2, 0 -_0807FBD4: .4byte 0x01000100 -_0807FBD8: .4byte gBattleOutcome -_0807FBDC: .4byte c2_whiteout -_0807FBE0: - ldr r0, _0807FBEC @ =CB2_ReturnToFieldContinueScriptPlayMapMusic - bl SetMainCallback2 -_0807FBE6: - add sp, 0x4 - pop {r0} - bx r0 - .align 2, 0 -_0807FBEC: .4byte CB2_ReturnToFieldContinueScriptPlayMapMusic - thumb_func_end sub_807FBA0 - - thumb_func_start sub_807FBF0 -sub_807FBF0: @ 807FBF0 - push {r4,lr} - sub sp, 0x4 - mov r1, sp - movs r0, 0 - strh r0, [r1] - movs r1, 0xA0 - lsls r1, 19 - ldr r2, _0807FC24 @ =0x01000100 - mov r0, sp - bl CpuSet - movs r0, 0 - movs r1, 0x80 - bl ResetOamRange - ldr r4, _0807FC28 @ =gBattleOutcome - ldrb r0, [r4] - bl IsPlayerDefeated - adds r1, r0, 0 - cmp r1, 0 - beq _0807FC30 - ldr r0, _0807FC2C @ =c2_whiteout - bl SetMainCallback2 - b _0807FC4C - .align 2, 0 -_0807FC24: .4byte 0x01000100 -_0807FC28: .4byte gBattleOutcome -_0807FC2C: .4byte c2_whiteout -_0807FC30: - ldrb r0, [r4] - cmp r0, 0x1 - bne _0807FC40 - ldr r0, _0807FC3C @ =gSpecialVar_Result - strh r1, [r0] - b _0807FC46 - .align 2, 0 -_0807FC3C: .4byte gSpecialVar_Result -_0807FC40: - ldr r1, _0807FC54 @ =gSpecialVar_Result - movs r0, 0x1 - strh r0, [r1] -_0807FC46: - ldr r0, _0807FC58 @ =CB2_ReturnToFieldContinueScriptPlayMapMusic - bl SetMainCallback2 -_0807FC4C: - add sp, 0x4 - pop {r4} - pop {r0} - bx r0 - .align 2, 0 -_0807FC54: .4byte gSpecialVar_Result -_0807FC58: .4byte CB2_ReturnToFieldContinueScriptPlayMapMusic - thumb_func_end sub_807FBF0 - - thumb_func_start sub_807FC5C -sub_807FC5C: @ 807FC5C - push {r4,r5,lr} - sub sp, 0x4 - mov r4, sp - adds r4, 0x2 - mov r0, sp - adds r1, r4, 0 - bl PlayerGetDestCoords - mov r0, sp - movs r1, 0 - ldrsh r0, [r0, r1] - movs r2, 0 - ldrsh r1, [r4, r2] - bl MapGridGetMetatileBehaviorAt - lsls r0, 16 - lsrs r5, r0, 16 - lsls r0, r5, 24 - lsrs r4, r0, 24 - adds r0, r4, 0 - bl MetatileBehavior_IsTallGrass_2 - lsls r0, 24 - cmp r0, 0 - beq _0807FC92 - movs r0, 0 - b _0807FD88 -_0807FC92: - adds r0, r4, 0 - bl MetatileBehavior_ReturnFalse_3 - lsls r0, 24 - cmp r0, 0 - beq _0807FCA2 - movs r0, 0x1 - b _0807FD88 -_0807FCA2: - adds r0, r4, 0 - bl MetatileBehavior_IsMB21OrWaterfallBottom - lsls r0, 24 - cmp r0, 0 - beq _0807FCB2 - movs r0, 0x2 - b _0807FD88 -_0807FCB2: - ldr r0, _0807FCC8 @ =gMapHeader - ldrb r0, [r0, 0x17] - subs r0, 0x1 - cmp r0, 0x8 - bhi _0807FD2C - lsls r0, 2 - ldr r1, _0807FCCC @ =_0807FCD0 - adds r0, r1 - ldr r0, [r0] - mov pc, r0 - .align 2, 0 -_0807FCC8: .4byte gMapHeader -_0807FCCC: .4byte _0807FCD0 - .align 2, 0 -_0807FCD0: - .4byte _0807FD2C - .4byte _0807FD2C - .4byte _0807FD2C - .4byte _0807FCF4 - .4byte _0807FD18 - .4byte _0807FD1C - .4byte _0807FD2C - .4byte _0807FD04 - .4byte _0807FD04 -_0807FCF4: - lsls r0, r5, 24 - lsrs r4, r0, 24 - adds r0, r4, 0 - bl MetatileBehavior_IsMB0B - lsls r0, 24 - cmp r0, 0 - beq _0807FD08 -_0807FD04: - movs r0, 0x8 - b _0807FD88 -_0807FD08: - adds r0, r4, 0 - bl MetatileBehavior_IsSurfable - lsls r0, 24 - cmp r0, 0 - bne _0807FD70 - movs r0, 0x7 - b _0807FD88 -_0807FD18: - movs r0, 0x3 - b _0807FD88 -_0807FD1C: - lsls r0, r5, 24 - lsrs r0, 24 - bl MetatileBehavior_IsSurfable - lsls r0, 24 - cmp r0, 0 - bne _0807FD82 - b _0807FD86 -_0807FD2C: - lsls r0, r5, 24 - lsrs r4, r0, 24 - adds r0, r4, 0 - bl MetatileBehavior_IsDeepSemiDeepOrSplashingWater - lsls r0, 24 - cmp r0, 0 - bne _0807FD82 - adds r0, r4, 0 - bl MetatileBehavior_IsSurfable - lsls r0, 24 - cmp r0, 0 - bne _0807FD70 - adds r0, r4, 0 - bl MetatileBehavior_IsMB0C - lsls r0, 24 - cmp r0, 0 - beq _0807FD58 - movs r0, 0x6 - b _0807FD88 -_0807FD58: - movs r0, 0x8 - bl TestPlayerAvatarFlags - lsls r0, 24 - cmp r0, 0 - beq _0807FD86 - adds r0, r4, 0 - bl MetatileBehavior_ReturnFalse_7 - lsls r0, 24 - cmp r0, 0 - beq _0807FD74 -_0807FD70: - movs r0, 0x5 - b _0807FD88 -_0807FD74: - adds r0, r4, 0 - bl MetatileBehavior_ReturnFalse_6 - lsls r0, 24 - lsrs r0, 24 - cmp r0, 0x1 - bne _0807FD86 -_0807FD82: - movs r0, 0x4 - b _0807FD88 -_0807FD86: - movs r0, 0x9 -_0807FD88: - add sp, 0x4 - pop {r4,r5} - pop {r1} - bx r1 - thumb_func_end sub_807FC5C - - thumb_func_start GetBattleTransitionTypeByMap -GetBattleTransitionTypeByMap: @ 807FD90 - push {r4,lr} - sub sp, 0x4 - mov r4, sp - adds r4, 0x2 - mov r0, sp - adds r1, r4, 0 - bl PlayerGetDestCoords - mov r0, sp - movs r1, 0 - ldrsh r0, [r0, r1] - movs r2, 0 - ldrsh r1, [r4, r2] - bl MapGridGetMetatileBehaviorAt - lsls r0, 16 - lsrs r4, r0, 16 - bl sav1_get_flash_used_on_map - lsls r0, 24 - cmp r0, 0 - beq _0807FDC0 - movs r0, 0x2 - b _0807FDEA -_0807FDC0: - lsls r0, r4, 24 - lsrs r0, 24 - bl MetatileBehavior_IsSurfable - lsls r0, 24 - cmp r0, 0 - bne _0807FDE8 - ldr r0, _0807FDE0 @ =gMapHeader - ldrb r0, [r0, 0x17] - cmp r0, 0x4 - beq _0807FDE4 - cmp r0, 0x5 - beq _0807FDE8 - movs r0, 0 - b _0807FDEA - .align 2, 0 -_0807FDE0: .4byte gMapHeader -_0807FDE4: - movs r0, 0x1 - b _0807FDEA -_0807FDE8: - movs r0, 0x3 -_0807FDEA: - add sp, 0x4 - pop {r4} - pop {r1} - bx r1 - thumb_func_end GetBattleTransitionTypeByMap - - thumb_func_start GetSumOfPlayerPartyLevel -GetSumOfPlayerPartyLevel: @ 807FDF4 - push {r4-r7,lr} - lsls r0, 24 - lsrs r5, r0, 24 - movs r7, 0 - movs r6, 0 -_0807FDFE: - movs r0, 0x64 - adds r1, r6, 0 - muls r1, r0 - ldr r0, _0807FE50 @ =gPlayerParty - adds r4, r1, r0 - adds r0, r4, 0 - movs r1, 0x41 - bl GetMonData - adds r1, r0, 0 - movs r0, 0xCE - lsls r0, 1 - cmp r1, r0 - beq _0807FE42 - cmp r1, 0 - beq _0807FE42 - adds r0, r4, 0 - movs r1, 0x39 - bl GetMonData - cmp r0, 0 - beq _0807FE42 - adds r0, r4, 0 - movs r1, 0x38 - bl GetMonData - adds r0, r7, r0 - lsls r0, 24 - lsrs r7, r0, 24 - subs r0, r5, 0x1 - lsls r0, 24 - lsrs r5, r0, 24 - cmp r5, 0 - beq _0807FE48 -_0807FE42: - adds r6, 0x1 - cmp r6, 0x5 - ble _0807FDFE -_0807FE48: - adds r0, r7, 0 - pop {r4-r7} - pop {r1} - bx r1 - .align 2, 0 -_0807FE50: .4byte gPlayerParty - thumb_func_end GetSumOfPlayerPartyLevel - - thumb_func_start reads_trainer_data_byte0 -reads_trainer_data_byte0: @ 807FE54 - push {r4,r5,lr} - lsls r0, 16 - lsrs r0, 16 - lsls r1, 24 - lsrs r4, r1, 24 - ldr r5, _0807FE88 @ =gTrainers - lsls r1, r0, 2 - adds r1, r0 - lsls r1, 3 - adds r2, r1, r5 - adds r0, r2, 0 - adds r0, 0x20 - ldrb r0, [r0] - cmp r0, r4 - bcs _0807FE74 - adds r4, r0, 0 -_0807FE74: - movs r3, 0 - ldrb r0, [r2] - cmp r0, 0x1 - beq _0807FEBC - cmp r0, 0x1 - bgt _0807FE8C - cmp r0, 0 - beq _0807FE96 - b _0807FF2C - .align 2, 0 -_0807FE88: .4byte gTrainers -_0807FE8C: - cmp r0, 0x2 - beq _0807FEE2 - cmp r0, 0x3 - beq _0807FF08 - b _0807FF2C -_0807FE96: - adds r0, r5, 0 - adds r0, 0x24 - adds r0, r1, r0 - ldr r1, [r0] - movs r2, 0 - cmp r3, r4 - bcs _0807FF2C -_0807FEA4: - lsls r0, r2, 3 - adds r0, r1 - ldrb r0, [r0, 0x2] - adds r0, r3, r0 - lsls r0, 24 - lsrs r3, r0, 24 - adds r0, r2, 0x1 - lsls r0, 24 - lsrs r2, r0, 24 - cmp r2, r4 - bcc _0807FEA4 - b _0807FF2C -_0807FEBC: - adds r0, r5, 0 - adds r0, 0x24 - adds r0, r1, r0 - ldr r1, [r0] - movs r2, 0 - cmp r3, r4 - bcs _0807FF2C -_0807FECA: - lsls r0, r2, 4 - adds r0, r1 - ldrb r0, [r0, 0x2] - adds r0, r3, r0 - lsls r0, 24 - lsrs r3, r0, 24 - adds r0, r2, 0x1 - lsls r0, 24 - lsrs r2, r0, 24 - cmp r2, r4 - bcc _0807FECA - b _0807FF2C -_0807FEE2: - adds r0, r5, 0 - adds r0, 0x24 - adds r0, r1, r0 - ldr r1, [r0] - movs r2, 0 - cmp r3, r4 - bcs _0807FF2C -_0807FEF0: - lsls r0, r2, 3 - adds r0, r1 - ldrb r0, [r0, 0x2] - adds r0, r3, r0 - lsls r0, 24 - lsrs r3, r0, 24 - adds r0, r2, 0x1 - lsls r0, 24 - lsrs r2, r0, 24 - cmp r2, r4 - bcc _0807FEF0 - b _0807FF2C -_0807FF08: - adds r0, r5, 0 - adds r0, 0x24 - adds r0, r1, r0 - ldr r1, [r0] - movs r2, 0 - cmp r3, r4 - bcs _0807FF2C -_0807FF16: - lsls r0, r2, 4 - adds r0, r1 - ldrb r0, [r0, 0x2] - adds r0, r3, r0 - lsls r0, 24 - lsrs r3, r0, 24 - adds r0, r2, 0x1 - lsls r0, 24 - lsrs r2, r0, 24 - cmp r2, r4 - bcc _0807FF16 -_0807FF2C: - adds r0, r3, 0 - pop {r4,r5} - pop {r1} - bx r1 - thumb_func_end reads_trainer_data_byte0 - - thumb_func_start GetWildBattleTransition -GetWildBattleTransition: @ 807FF34 - push {r4,r5,lr} - bl GetBattleTransitionTypeByMap - lsls r0, 24 - lsrs r5, r0, 24 - ldr r0, _0807FF64 @ =gEnemyParty - movs r1, 0x38 - bl GetMonData - adds r4, r0, 0 - lsls r4, 24 - lsrs r4, 24 - movs r0, 0x1 - bl GetSumOfPlayerPartyLevel - lsls r0, 24 - lsrs r0, 24 - cmp r4, r0 - bcc _0807FF6C - ldr r0, _0807FF68 @ =gUnknown_83C68F0 - lsls r1, r5, 1 - adds r0, 0x1 - b _0807FF70 - .align 2, 0 -_0807FF64: .4byte gEnemyParty -_0807FF68: .4byte gUnknown_83C68F0 -_0807FF6C: - ldr r0, _0807FF7C @ =gUnknown_83C68F0 - lsls r1, r5, 1 -_0807FF70: - adds r1, r0 - ldrb r0, [r1] - pop {r4,r5} - pop {r1} - bx r1 - .align 2, 0 -_0807FF7C: .4byte gUnknown_83C68F0 - thumb_func_end GetWildBattleTransition - - thumb_func_start sub_807FF80 -sub_807FF80: @ 807FF80 - push {r4-r6,lr} - ldr r4, _0807FFB4 @ =gTrainerBattleOpponent_A - ldrh r1, [r4] - movs r0, 0x80 - lsls r0, 3 - cmp r1, r0 - beq _0808000C - ldr r1, _0807FFB8 @ =gTrainers - ldrh r2, [r4] - lsls r0, r2, 2 - adds r0, r2 - lsls r0, 3 - adds r0, r1 - ldrb r1, [r0, 0x1] - cmp r1, 0x57 - bne _08080008 - adds r1, r2, 0 - movs r0, 0xCD - lsls r0, 1 - cmp r1, r0 - beq _0807FFB0 - ldr r0, _0807FFBC @ =0x000002df - cmp r1, r0 - bne _0807FFC0 -_0807FFB0: - movs r0, 0xC - b _08080054 - .align 2, 0 -_0807FFB4: .4byte gTrainerBattleOpponent_A -_0807FFB8: .4byte gTrainers -_0807FFBC: .4byte 0x000002df -_0807FFC0: - ldr r0, _0807FFD4 @ =0x0000019b - cmp r1, r0 - beq _0807FFCE - movs r0, 0xB8 - lsls r0, 2 - cmp r1, r0 - bne _0807FFD8 -_0807FFCE: - movs r0, 0xD - b _08080054 - .align 2, 0 -_0807FFD4: .4byte 0x0000019b -_0807FFD8: - movs r0, 0xCE - lsls r0, 1 - cmp r1, r0 - beq _0807FFE6 - ldr r0, _0807FFEC @ =0x000002e1 - cmp r1, r0 - bne _0807FFF0 -_0807FFE6: - movs r0, 0xE - b _08080054 - .align 2, 0 -_0807FFEC: .4byte 0x000002e1 -_0807FFF0: - ldr r0, _08080000 @ =0x0000019d - cmp r1, r0 - beq _0807FFFC - ldr r0, _08080004 @ =0x000002e2 - cmp r1, r0 - bne _0808000C -_0807FFFC: - movs r0, 0xF - b _08080054 - .align 2, 0 -_08080000: .4byte 0x0000019d -_08080004: .4byte 0x000002e2 -_08080008: - cmp r1, 0x5A - bne _08080010 -_0808000C: - movs r0, 0x10 - b _08080054 -_08080010: - ldrb r0, [r0, 0x18] - movs r5, 0x1 - cmp r0, 0x1 - bne _0808001A - movs r5, 0x2 -_0808001A: - bl GetBattleTransitionTypeByMap - lsls r0, 24 - lsrs r6, r0, 24 - ldrh r0, [r4] - adds r1, r5, 0 - bl reads_trainer_data_byte0 - adds r4, r0, 0 - lsls r4, 24 - lsrs r4, 24 - adds r0, r5, 0 - bl GetSumOfPlayerPartyLevel - lsls r0, 24 - lsrs r0, 24 - cmp r4, r0 - bcc _0808004C - ldr r0, _08080048 @ =gUnknown_83C68F8 - lsls r1, r6, 1 - adds r0, 0x1 - b _08080050 - .align 2, 0 -_08080048: .4byte gUnknown_83C68F8 -_0808004C: - ldr r0, _0808005C @ =gUnknown_83C68F8 - lsls r1, r6, 1 -_08080050: - adds r1, r0 - ldrb r0, [r1] -_08080054: - pop {r4-r6} - pop {r1} - bx r1 - .align 2, 0 -_0808005C: .4byte gUnknown_83C68F8 - thumb_func_end sub_807FF80 - - thumb_func_start sub_8080060 -sub_8080060: @ 8080060 - push {r4,lr} - ldr r0, _08080084 @ =gEnemyParty - movs r1, 0x38 - bl GetMonData - adds r4, r0, 0 - lsls r4, 24 - lsrs r4, 24 - movs r0, 0x1 - bl GetSumOfPlayerPartyLevel - lsls r0, 24 - lsrs r0, 24 - cmp r4, r0 - bcc _08080088 - movs r0, 0x3 - b _0808008A - .align 2, 0 -_08080084: .4byte gEnemyParty -_08080088: - movs r0, 0x4 -_0808008A: - pop {r4} - pop {r1} - bx r1 - thumb_func_end sub_8080060 - - thumb_func_start TrainerBattleLoadArg32 -TrainerBattleLoadArg32: @ 8080090 - adds r2, r0, 0 - ldrb r0, [r2] - ldrb r1, [r2, 0x1] - lsls r1, 8 - orrs r0, r1 - ldrb r1, [r2, 0x2] - lsls r1, 16 - orrs r0, r1 - ldrb r1, [r2, 0x3] - lsls r1, 24 - orrs r0, r1 - bx lr - thumb_func_end TrainerBattleLoadArg32 - - thumb_func_start TrainerBattleLoadArg16 -TrainerBattleLoadArg16: @ 80800A8 - adds r1, r0, 0 - ldrb r0, [r1] - ldrb r1, [r1, 0x1] - lsls r1, 8 - orrs r0, r1 - bx lr - thumb_func_end TrainerBattleLoadArg16 - - thumb_func_start TrainerBattleLoadArg8 -TrainerBattleLoadArg8: @ 80800B4 - ldrb r0, [r0] - bx lr - thumb_func_end TrainerBattleLoadArg8 - - thumb_func_start trainerflag_opponent -trainerflag_opponent: @ 80800B8 - ldr r1, _080800CC @ =gTrainerBattleOpponent_A - movs r2, 0xA0 - lsls r2, 3 - adds r0, r2, 0 - ldrh r1, [r1] - adds r0, r1 - lsls r0, 16 - lsrs r0, 16 - bx lr - .align 2, 0 -_080800CC: .4byte gTrainerBattleOpponent_A - thumb_func_end trainerflag_opponent - - thumb_func_start IsPlayerDefeated -IsPlayerDefeated: @ 80800D0 - push {lr} - subs r0, 0x1 - cmp r0, 0x6 - bhi _08080108 - lsls r0, 2 - ldr r1, _080800E4 @ =_080800E8 - adds r0, r1 - ldr r0, [r0] - mov pc, r0 - .align 2, 0 -_080800E4: .4byte _080800E8 - .align 2, 0 -_080800E8: - .4byte _08080108 - .4byte _08080104 - .4byte _08080104 - .4byte _08080108 - .4byte _08080108 - .4byte _08080108 - .4byte _08080108 -_08080104: - movs r0, 0x1 - b _0808010A -_08080108: - movs r0, 0 -_0808010A: - pop {r1} - bx r1 - thumb_func_end IsPlayerDefeated - - thumb_func_start sub_8080110 -sub_8080110: @ 8080110 - ldr r0, _08080140 @ =gUnknown_20386AC - movs r1, 0 - strh r1, [r0] - ldr r0, _08080144 @ =gTrainerBattleOpponent_A - strh r1, [r0] - ldr r0, _08080148 @ =gUnknown_20386B0 - strh r1, [r0] - ldr r0, _0808014C @ =gUnknown_20386B4 - movs r1, 0 - str r1, [r0] - ldr r0, _08080150 @ =gUnknown_20386B8 - str r1, [r0] - ldr r0, _08080154 @ =gUnknown_20386BC - str r1, [r0] - ldr r0, _08080158 @ =gUnknown_20386C0 - str r1, [r0] - ldr r0, _0808015C @ =gUnknown_20386C4 - str r1, [r0] - ldr r0, _08080160 @ =gUnknown_20386C8 - str r1, [r0] - ldr r0, _08080164 @ =gUnknown_20386CC - strh r1, [r0] - bx lr - .align 2, 0 -_08080140: .4byte gUnknown_20386AC -_08080144: .4byte gTrainerBattleOpponent_A -_08080148: .4byte gUnknown_20386B0 -_0808014C: .4byte gUnknown_20386B4 -_08080150: .4byte gUnknown_20386B8 -_08080154: .4byte gUnknown_20386BC -_08080158: .4byte gUnknown_20386C0 -_0808015C: .4byte gUnknown_20386C4 -_08080160: .4byte gUnknown_20386C8 -_08080164: .4byte gUnknown_20386CC - thumb_func_end sub_8080110 - - thumb_func_start TrainerBattleLoadArgs -TrainerBattleLoadArgs: @ 8080168 - push {r4,r5,lr} - adds r4, r0, 0 - adds r5, r1, 0 -_0808016E: - ldrb r0, [r4, 0x4] - cmp r0, 0x6 - bhi _080801E0 - lsls r0, 2 - ldr r1, _08080180 @ =_08080184 - adds r0, r1 - ldr r0, [r0] - mov pc, r0 - .align 2, 0 -_08080180: .4byte _08080184 - .align 2, 0 -_08080184: - .4byte _080801A0 - .4byte _080801AE - .4byte _080801BC - .4byte _080801CA - .4byte _080801D2 - .4byte _080801DA - .4byte _080801E4 -_080801A0: - adds r0, r5, 0 - bl TrainerBattleLoadArg8 - ldr r1, [r4] - strb r0, [r1] - adds r5, 0x1 - b _080801E0 -_080801AE: - adds r0, r5, 0 - bl TrainerBattleLoadArg16 - ldr r1, [r4] - strh r0, [r1] - adds r5, 0x2 - b _080801E0 -_080801BC: - adds r0, r5, 0 - bl TrainerBattleLoadArg32 - ldr r1, [r4] - str r0, [r1] - adds r5, 0x4 - b _080801E0 -_080801CA: - ldr r1, [r4] - movs r0, 0 - strb r0, [r1] - b _080801E0 -_080801D2: - ldr r1, [r4] - movs r0, 0 - strh r0, [r1] - b _080801E0 -_080801DA: - ldr r1, [r4] - movs r0, 0 - str r0, [r1] -_080801E0: - adds r4, 0x8 - b _0808016E -_080801E4: - ldr r0, [r4] - str r5, [r0] - pop {r4,r5} - pop {r0} - bx r0 - thumb_func_end TrainerBattleLoadArgs - - thumb_func_start battle_80801F0 -battle_80801F0: @ 80801F0 - push {lr} - ldr r0, _08080218 @ =gUnknown_20386B0 - ldrh r1, [r0] - cmp r1, 0 - beq _08080212 - ldr r0, _0808021C @ =gSpecialVar_LastTalked - strh r1, [r0] - lsls r0, r1, 24 - lsrs r0, 24 - ldr r1, _08080220 @ =gSaveBlock1Ptr - ldr r2, [r1] - ldrb r1, [r2, 0x5] - ldrb r2, [r2, 0x4] - bl GetFieldObjectIdByLocalIdAndMap - ldr r1, _08080224 @ =gSelectedEventObject - strb r0, [r1] -_08080212: - pop {r0} - bx r0 - .align 2, 0 -_08080218: .4byte gUnknown_20386B0 -_0808021C: .4byte gSpecialVar_LastTalked -_08080220: .4byte gSaveBlock1Ptr -_08080224: .4byte gSelectedEventObject - thumb_func_end battle_80801F0 - - thumb_func_start BattleSetup_ConfigureTrainerBattle -BattleSetup_ConfigureTrainerBattle: @ 8080228 - push {r4,r5,lr} - adds r5, r0, 0 - bl sub_8080110 - ldr r4, _08080250 @ =gUnknown_20386AC - adds r0, r5, 0 - bl TrainerBattleLoadArg8 - lsls r0, 24 - lsrs r0, 24 - strh r0, [r4] - ldrh r0, [r4] - subs r0, 0x1 - cmp r0, 0x8 - bhi _08080318 - lsls r0, 2 - ldr r1, _08080254 @ =_08080258 - adds r0, r1 - ldr r0, [r0] - mov pc, r0 - .align 2, 0 -_08080250: .4byte gUnknown_20386AC -_08080254: .4byte _08080258 - .align 2, 0 -_08080258: - .4byte _0808028C - .4byte _0808028C - .4byte _0808027C - .4byte _08080284 - .4byte _080802D8 - .4byte _08080294 - .4byte _080802AC - .4byte _08080294 - .4byte _08080304 -_0808027C: - ldr r0, _08080280 @ =gUnknown_83C69D8 - b _08080306 - .align 2, 0 -_08080280: .4byte gUnknown_83C69D8 -_08080284: - ldr r0, _08080288 @ =gUnknown_83C6990 - b _08080296 - .align 2, 0 -_08080288: .4byte gUnknown_83C6990 -_0808028C: - ldr r0, _08080290 @ =gUnknown_83C6948 - b _0808031A - .align 2, 0 -_08080290: .4byte gUnknown_83C6948 -_08080294: - ldr r0, _080802A4 @ =gUnknown_83C6A68 -_08080296: - adds r1, r5, 0 - bl TrainerBattleLoadArgs - bl battle_80801F0 - ldr r0, _080802A8 @ =gUnknown_81A4EE9 - b _08080326 - .align 2, 0 -_080802A4: .4byte gUnknown_83C6A68 -_080802A8: .4byte gUnknown_81A4EE9 -_080802AC: - bl sub_811231C - ldr r0, _080802CC @ =gUnknown_83C6990 - adds r1, r5, 0 - bl TrainerBattleLoadArgs - bl battle_80801F0 - ldr r4, _080802D0 @ =gTrainerBattleOpponent_A - ldrh r0, [r4] - bl sub_810CE64 - strh r0, [r4] - ldr r0, _080802D4 @ =gUnknown_81A4F73 - b _08080326 - .align 2, 0 -_080802CC: .4byte gUnknown_83C6990 -_080802D0: .4byte gTrainerBattleOpponent_A -_080802D4: .4byte gUnknown_81A4F73 -_080802D8: - bl sub_811231C - ldr r0, _080802F8 @ =gUnknown_83C6900 - adds r1, r5, 0 - bl TrainerBattleLoadArgs - bl battle_80801F0 - ldr r4, _080802FC @ =gTrainerBattleOpponent_A - ldrh r0, [r4] - bl sub_810CE64 - strh r0, [r4] - ldr r0, _08080300 @ =gUnknown_81A4F3E - b _08080326 - .align 2, 0 -_080802F8: .4byte gUnknown_83C6900 -_080802FC: .4byte gTrainerBattleOpponent_A -_08080300: .4byte gUnknown_81A4F3E -_08080304: - ldr r0, _08080310 @ =gUnknown_83C6A20 -_08080306: - adds r1, r5, 0 - bl TrainerBattleLoadArgs - ldr r0, _08080314 @ =gUnknown_81A4F21 - b _08080326 - .align 2, 0 -_08080310: .4byte gUnknown_83C6A20 -_08080314: .4byte gUnknown_81A4F21 -_08080318: - ldr r0, _0808032C @ =gUnknown_83C6900 -_0808031A: - adds r1, r5, 0 - bl TrainerBattleLoadArgs - bl battle_80801F0 - ldr r0, _08080330 @ =gUnknown_81A4EC1 -_08080326: - pop {r4,r5} - pop {r1} - bx r1 - .align 2, 0 -_0808032C: .4byte gUnknown_83C6900 -_08080330: .4byte gUnknown_81A4EC1 - thumb_func_end BattleSetup_ConfigureTrainerBattle - - thumb_func_start TrainerWantsBattle -TrainerWantsBattle: @ 8080334 - push {r4,lr} - lsls r0, 24 - lsrs r0, 24 - ldr r2, _08080368 @ =gSelectedEventObject - strb r0, [r2] - ldr r4, _0808036C @ =gSpecialVar_LastTalked - ldr r3, _08080370 @ =gMapObjects - lsls r2, r0, 3 - adds r2, r0 - lsls r2, 2 - adds r2, r3 - ldrb r0, [r2, 0x8] - strh r0, [r4] - adds r1, 0x1 - adds r0, r1, 0 - bl BattleSetup_ConfigureTrainerBattle - ldr r0, _08080374 @ =gUnknown_81A4EB4 - bl ScriptContext1_SetupScript - bl ScriptContext2_Enable - pop {r4} - pop {r0} - bx r0 - .align 2, 0 -_08080368: .4byte gSelectedEventObject -_0808036C: .4byte gSpecialVar_LastTalked -_08080370: .4byte gMapObjects -_08080374: .4byte gUnknown_81A4EB4 - thumb_func_end TrainerWantsBattle - - thumb_func_start GetTrainerFlagFromScriptPointer -GetTrainerFlagFromScriptPointer: @ 8080378 - push {lr} - adds r0, 0x2 - bl TrainerBattleLoadArg16 - lsls r0, 16 - movs r1, 0xA0 - lsls r1, 19 - adds r0, r1 - lsrs r0, 16 - bl FlagGet - lsls r0, 24 - lsrs r0, 24 - pop {r1} - bx r1 - thumb_func_end GetTrainerFlagFromScriptPointer - - thumb_func_start sub_8080398 -sub_8080398: @ 8080398 - push {r4,lr} - ldr r0, _080803C4 @ =gSelectedEventObject - ldrb r0, [r0] - lsls r4, r0, 3 - adds r4, r0 - lsls r4, 2 - ldr r0, _080803C8 @ =gMapObjects - adds r4, r0 - ldrb r0, [r4, 0x18] - lsls r0, 28 - lsrs r0, 28 - bl npc_running_behaviour_by_direction - adds r1, r0, 0 - lsls r1, 24 - lsrs r1, 24 - adds r0, r4, 0 - bl npc_set_running_behaviour_etc - pop {r4} - pop {r0} - bx r0 - .align 2, 0 -_080803C4: .4byte gSelectedEventObject -_080803C8: .4byte gMapObjects - thumb_func_end sub_8080398 - - thumb_func_start sub_80803CC -sub_80803CC: @ 80803CC - ldr r0, _080803D4 @ =gUnknown_20386AC - ldrb r0, [r0] - bx lr - .align 2, 0 -_080803D4: .4byte gUnknown_20386AC - thumb_func_end sub_80803CC - - thumb_func_start sub_80803D8 -sub_80803D8: @ 80803D8 - ldr r0, _080803E0 @ =gUnknown_20386CC - ldrh r0, [r0] - bx lr - .align 2, 0 -_080803E0: .4byte gUnknown_20386CC - thumb_func_end sub_80803D8 - - thumb_func_start ScrSpecial_HasTrainerBeenFought -ScrSpecial_HasTrainerBeenFought: @ 80803E4 - push {lr} - bl trainerflag_opponent - lsls r0, 16 - lsrs r0, 16 - bl FlagGet - lsls r0, 24 - lsrs r0, 24 - pop {r1} - bx r1 - thumb_func_end ScrSpecial_HasTrainerBeenFought - - thumb_func_start sub_80803FC -sub_80803FC: @ 80803FC - push {lr} - bl trainerflag_opponent - lsls r0, 16 - lsrs r0, 16 - bl FlagSet - pop {r0} - bx r0 - thumb_func_end sub_80803FC - - thumb_func_start sub_8080410 -sub_8080410: @ 8080410 - push {lr} - bl trainerflag_opponent - lsls r0, 16 - lsrs r0, 16 - bl FlagSet - pop {r0} - bx r0 - thumb_func_end sub_8080410 - - thumb_func_start HasTrainerAlreadyBeenFought -HasTrainerAlreadyBeenFought: @ 8080424 - push {lr} - lsls r0, 16 - movs r1, 0xA0 - lsls r1, 19 - adds r0, r1 - lsrs r0, 16 - bl FlagGet - lsls r0, 24 - lsrs r0, 24 - pop {r1} - bx r1 - thumb_func_end HasTrainerAlreadyBeenFought - - thumb_func_start SetTrainerFlag -SetTrainerFlag: @ 808043C - push {lr} - lsls r0, 16 - movs r1, 0xA0 - lsls r1, 19 - adds r0, r1 - lsrs r0, 16 - bl FlagSet - pop {r0} - bx r0 - thumb_func_end SetTrainerFlag - - thumb_func_start ClearTrainerFlag -ClearTrainerFlag: @ 8080450 - push {lr} - lsls r0, 16 - movs r1, 0xA0 - lsls r1, 19 - adds r0, r1 - lsrs r0, 16 - bl FlagClear - pop {r0} - bx r0 - thumb_func_end ClearTrainerFlag - - thumb_func_start BattleSetup_StartTrainerBattle -BattleSetup_StartTrainerBattle: @ 8080464 - push {r4,lr} - ldr r4, _080804A0 @ =gBattleTypeFlags - movs r0, 0x8 - str r0, [r4] - bl sub_80803CC - lsls r0, 24 - lsrs r0, 24 - cmp r0, 0x9 - bne _0808048C - bl sub_80803D8 - movs r1, 0x3 - ands r1, r0 - cmp r1, 0 - beq _0808048C - ldr r0, [r4] - movs r1, 0x10 - orrs r0, r1 - str r0, [r4] -_0808048C: - ldr r1, _080804A4 @ =gMain - ldr r0, _080804A8 @ =sub_80804AC - str r0, [r1, 0x8] - bl sub_807F868 - bl ScriptContext1_Stop - pop {r4} - pop {r0} - bx r0 - .align 2, 0 -_080804A0: .4byte gBattleTypeFlags -_080804A4: .4byte gMain -_080804A8: .4byte sub_80804AC - thumb_func_end BattleSetup_StartTrainerBattle - - thumb_func_start sub_80804AC -sub_80804AC: @ 80804AC - push {lr} - ldr r0, _080804D8 @ =gUnknown_20386AC - ldrh r0, [r0] - cmp r0, 0x9 - bne _08080508 - ldr r0, _080804DC @ =gBattleOutcome - ldrb r0, [r0] - bl IsPlayerDefeated - adds r1, r0, 0 - cmp r1, 0x1 - bne _080804E8 - ldr r0, _080804E0 @ =gSpecialVar_Result - strh r1, [r0] - ldr r0, _080804E4 @ =gUnknown_20386CC - ldrh r0, [r0] - ands r1, r0 - cmp r1, 0 - beq _08080530 - bl sp000_heal_pokemon - b _080804EE - .align 2, 0 -_080804D8: .4byte gUnknown_20386AC -_080804DC: .4byte gBattleOutcome -_080804E0: .4byte gSpecialVar_Result -_080804E4: .4byte gUnknown_20386CC -_080804E8: - ldr r0, _08080500 @ =gSpecialVar_Result - movs r1, 0 - strh r1, [r0] -_080804EE: - ldr r0, _08080504 @ =CB2_ReturnToFieldContinueScriptPlayMapMusic - bl SetMainCallback2 - bl sub_80803FC - bl sub_81139BC - b _0808054E - .align 2, 0 -_08080500: .4byte gSpecialVar_Result -_08080504: .4byte CB2_ReturnToFieldContinueScriptPlayMapMusic -_08080508: - ldr r0, _0808051C @ =gTrainerBattleOpponent_A - ldrh r1, [r0] - movs r0, 0x80 - lsls r0, 3 - cmp r1, r0 - bne _08080524 - ldr r0, _08080520 @ =CB2_ReturnToFieldContinueScriptPlayMapMusic - bl SetMainCallback2 - b _0808054E - .align 2, 0 -_0808051C: .4byte gTrainerBattleOpponent_A -_08080520: .4byte CB2_ReturnToFieldContinueScriptPlayMapMusic -_08080524: - ldr r0, _08080538 @ =gBattleOutcome - ldrb r0, [r0] - bl IsPlayerDefeated - cmp r0, 0x1 - bne _08080540 -_08080530: - ldr r0, _0808053C @ =c2_whiteout - bl SetMainCallback2 - b _0808054E - .align 2, 0 -_08080538: .4byte gBattleOutcome -_0808053C: .4byte c2_whiteout -_08080540: - ldr r0, _08080554 @ =CB2_ReturnToFieldContinueScriptPlayMapMusic - bl SetMainCallback2 - bl sub_80803FC - bl sub_81139BC -_0808054E: - pop {r0} - bx r0 - .align 2, 0 -_08080554: .4byte CB2_ReturnToFieldContinueScriptPlayMapMusic - thumb_func_end sub_80804AC - - thumb_func_start sub_8080558 -sub_8080558: @ 8080558 - push {lr} - ldr r0, _08080570 @ =gTrainerBattleOpponent_A - ldrh r1, [r0] - movs r0, 0x80 - lsls r0, 3 - cmp r1, r0 - bne _08080578 - ldr r0, _08080574 @ =CB2_ReturnToFieldContinueScriptPlayMapMusic - bl SetMainCallback2 - b _080805A6 - .align 2, 0 -_08080570: .4byte gTrainerBattleOpponent_A -_08080574: .4byte CB2_ReturnToFieldContinueScriptPlayMapMusic -_08080578: - ldr r0, _0808058C @ =gBattleOutcome - ldrb r0, [r0] - bl IsPlayerDefeated - cmp r0, 0x1 - bne _08080594 - ldr r0, _08080590 @ =c2_whiteout - bl SetMainCallback2 - b _080805A6 - .align 2, 0 -_0808058C: .4byte gBattleOutcome -_08080590: .4byte c2_whiteout -_08080594: - ldr r0, _080805AC @ =CB2_ReturnToFieldContinueScriptPlayMapMusic - bl SetMainCallback2 - bl sub_80803FC - bl sub_810CDE8 - bl sub_81138F8 -_080805A6: - pop {r0} - bx r0 - .align 2, 0 -_080805AC: .4byte CB2_ReturnToFieldContinueScriptPlayMapMusic - thumb_func_end sub_8080558 - - thumb_func_start sub_80805B0 -sub_80805B0: @ 80805B0 - push {lr} - ldr r1, _080805CC @ =gBattleTypeFlags - movs r0, 0x8 - str r0, [r1] - ldr r1, _080805D0 @ =gMain - ldr r0, _080805D4 @ =sub_8080558 - str r0, [r1, 0x8] - bl sub_807F868 - bl ScriptContext1_Stop - pop {r0} - bx r0 - .align 2, 0 -_080805CC: .4byte gBattleTypeFlags -_080805D0: .4byte gMain -_080805D4: .4byte sub_8080558 - thumb_func_end sub_80805B0 - - thumb_func_start sub_80805D8 -sub_80805D8: @ 80805D8 - push {lr} - bl sub_80806D8 - bl ShowFieldMessage - pop {r0} - bx r0 - thumb_func_end sub_80805D8 - - thumb_func_start BattleSetup_GetScriptAddrAfterBattle -BattleSetup_GetScriptAddrAfterBattle: @ 80805E8 - push {lr} - ldr r0, _080805F8 @ =gUnknown_20386C4 - ldr r0, [r0] - cmp r0, 0 - bne _080805F4 - ldr r0, _080805FC @ =gUnknown_81C555B -_080805F4: - pop {r1} - bx r1 - .align 2, 0 -_080805F8: .4byte gUnknown_20386C4 -_080805FC: .4byte gUnknown_81C555B - thumb_func_end BattleSetup_GetScriptAddrAfterBattle - - thumb_func_start BattleSetup_GetTrainerPostBattleScript -BattleSetup_GetTrainerPostBattleScript: @ 8080600 - push {lr} - ldr r0, _08080610 @ =gUnknown_20386C8 - ldr r0, [r0] - cmp r0, 0 - bne _0808060C - ldr r0, _08080614 @ =gUnknown_81C555B -_0808060C: - pop {r1} - bx r1 - .align 2, 0 -_08080610: .4byte gUnknown_20386C8 -_08080614: .4byte gUnknown_81C555B - thumb_func_end BattleSetup_GetTrainerPostBattleScript - - thumb_func_start sub_8080618 -sub_8080618: @ 8080618 - push {lr} - bl sub_8080734 - bl ShowFieldMessage - pop {r0} - bx r0 - thumb_func_end sub_8080618 - - thumb_func_start sub_8080628 -sub_8080628: @ 8080628 - push {lr} - ldr r0, _08080660 @ =gUnknown_203ADFA - ldrb r0, [r0] - subs r0, 0x2 - lsls r0, 24 - lsrs r0, 24 - cmp r0, 0x1 - bls _080806BE - ldr r0, _08080664 @ =gUnknown_20386AC - ldrh r0, [r0] - cmp r0, 0x1 - beq _080806BE - cmp r0, 0x8 - beq _080806BE - ldr r0, _08080668 @ =gTrainerBattleOpponent_A - ldrh r0, [r0] - bl GetTrainerEncounterMusicId - lsls r0, 24 - lsrs r0, 24 - cmp r0, 0xD - bhi _080806B8 - lsls r0, 2 - ldr r1, _0808066C @ =_08080670 - adds r0, r1 - ldr r0, [r0] - mov pc, r0 - .align 2, 0 -_08080660: .4byte gUnknown_203ADFA -_08080664: .4byte gUnknown_20386AC -_08080668: .4byte gTrainerBattleOpponent_A -_0808066C: .4byte _08080670 - .align 2, 0 -_08080670: - .4byte _080806AE - .4byte _080806A8 - .4byte _080806A8 - .4byte _080806B8 - .4byte _080806AE - .4byte _080806AE - .4byte _080806B8 - .4byte _080806B8 - .4byte _080806AE - .4byte _080806A8 - .4byte _080806AE - .4byte _080806AE - .4byte _080806AE - .4byte _080806AE -_080806A8: - movs r0, 0x8E - lsls r0, 1 - b _080806BA -_080806AE: - ldr r0, _080806B4 @ =0x0000011d - b _080806BA - .align 2, 0 -_080806B4: .4byte 0x0000011d -_080806B8: - ldr r0, _080806C4 @ =0x0000011b -_080806BA: - bl PlayNewMapMusic -_080806BE: - pop {r0} - bx r0 - .align 2, 0 -_080806C4: .4byte 0x0000011b - thumb_func_end sub_8080628 - - thumb_func_start sub_80806C8 -sub_80806C8: @ 80806C8 - push {lr} - cmp r0, 0 - bne _080806D0 - ldr r0, _080806D4 @ =gString_Dummy -_080806D0: - pop {r1} - bx r1 - .align 2, 0 -_080806D4: .4byte gString_Dummy - thumb_func_end sub_80806C8 - - thumb_func_start sub_80806D8 -sub_80806D8: @ 80806D8 - push {lr} - ldr r0, _080806E8 @ =gUnknown_20386B4 - ldr r0, [r0] - bl sub_80806C8 - pop {r1} - bx r1 - .align 2, 0 -_080806E8: .4byte gUnknown_20386B4 - thumb_func_end sub_80806D8 - - thumb_func_start sub_80806EC -sub_80806EC: @ 80806EC - push {r4,lr} - ldr r0, _08080708 @ =gUnknown_20386B8 - ldr r0, [r0] - ldr r4, _0808070C @ =gStringVar4 - bl sub_80806C8 - adds r1, r0, 0 - adds r0, r4, 0 - bl StringExpandPlaceholders - adds r0, r4, 0 - pop {r4} - pop {r1} - bx r1 - .align 2, 0 -_08080708: .4byte gUnknown_20386B8 -_0808070C: .4byte gStringVar4 - thumb_func_end sub_80806EC - - thumb_func_start sub_8080710 -sub_8080710: @ 8080710 - push {r4,lr} - ldr r4, _0808072C @ =gStringVar4 - ldr r0, _08080730 @ =gUnknown_20386BC - ldr r0, [r0] - bl sub_80806C8 - adds r1, r0, 0 - adds r0, r4, 0 - bl StringExpandPlaceholders - adds r0, r4, 0 - pop {r4} - pop {r1} - bx r1 - .align 2, 0 -_0808072C: .4byte gStringVar4 -_08080730: .4byte gUnknown_20386BC - thumb_func_end sub_8080710 - - thumb_func_start sub_8080734 -sub_8080734: @ 8080734 - push {lr} - ldr r0, _08080744 @ =gUnknown_20386C0 - ldr r0, [r0] - bl sub_80806C8 - pop {r1} - bx r1 - .align 2, 0 -_08080744: .4byte gUnknown_20386C0 - thumb_func_end sub_8080734 - - .align 2, 0 @ Don't pad with nop. diff --git a/asm/battle_tower.s b/asm/battle_tower.s index 08fefffbc..eddc03f83 100644 --- a/asm/battle_tower.s +++ b/asm/battle_tower.s @@ -358,8 +358,8 @@ _080E5C20: .4byte gSaveBlock2Ptr _080E5C24: .4byte 0x0000056c thumb_func_end sub_80E5B14 - thumb_func_start sub_80E5C28 -sub_80E5C28: @ 80E5C28 + thumb_func_start ChooseNextBattleTowerTrainer +ChooseNextBattleTowerTrainer: @ 80E5C28 push {r4-r7,lr} mov r7, r8 push {r7} @@ -637,7 +637,7 @@ _080E5E4C: .4byte 0x00000572 _080E5E50: .4byte gSaveBlock2Ptr _080E5E54: .4byte 0x0000056c _080E5E58: .4byte 0x00000571 - thumb_func_end sub_80E5C28 + thumb_func_end ChooseNextBattleTowerTrainer thumb_func_start sub_80E5E5C sub_80E5E5C: @ 80E5E5C @@ -651,14 +651,14 @@ sub_80E5E5C: @ 80E5E5C _080E5E6C: .4byte 0x00004010 thumb_func_end sub_80E5E5C - thumb_func_start sub_80E5E70 -sub_80E5E70: @ 80E5E70 + thumb_func_start SetEReaderTrainerGfxId +SetEReaderTrainerGfxId: @ 80E5E70 push {lr} movs r0, 0xC8 bl sub_80E5E5C pop {r0} bx r0 - thumb_func_end sub_80E5E70 + thumb_func_end SetEReaderTrainerGfxId thumb_func_start sub_80E5E7C sub_80E5E7C: @ 80E5E7C @@ -1700,8 +1700,8 @@ _080E6640: .4byte gUnknown_84020C4 _080E6644: .4byte 0x0000ffff thumb_func_end sub_80E6564 - thumb_func_start sub_80E6648 -sub_80E6648: @ 80E6648 + thumb_func_start CheckPartyBattleTowerBanlist +CheckPartyBattleTowerBanlist: @ 80E6648 push {r4-r7,lr} mov r7, r10 mov r6, r9 @@ -1854,7 +1854,7 @@ _080E6770: _080E6780: .4byte gSpecialVar_0x8004 _080E6784: .4byte gSaveBlock2Ptr _080E6788: .4byte 0x0000055c - thumb_func_end sub_80E6648 + thumb_func_end CheckPartyBattleTowerBanlist thumb_func_start sub_80E678C sub_80E678C: @ 80E678C @@ -1918,8 +1918,8 @@ _080E67F0: _080E67F8: .4byte gStringVar4 thumb_func_end sub_80E678C - thumb_func_start sub_80E67FC -sub_80E67FC: @ 80E67FC + thumb_func_start PrintBattleTowerTrainerGreeting +PrintBattleTowerTrainerGreeting: @ 80E67FC push {lr} ldr r0, _080E6818 @ =gSaveBlock2Ptr ldr r2, [r0] @@ -1962,7 +1962,7 @@ _080E684C: bx r0 .align 2, 0 _080E6850: .4byte 0xffffc154 - thumb_func_end sub_80E67FC + thumb_func_end PrintBattleTowerTrainerGreeting thumb_func_start sub_80E6854 sub_80E6854: @ 80E6854 @@ -2034,7 +2034,7 @@ sub_80E68C4: @ 80E68C4 ldr r1, _080E68F8 @ =sub_80E6854 str r1, [r0, 0x8] bl CleanupOverworldWindowsAndTilemaps - ldr r0, _080E68FC @ =sub_800FD9C + ldr r0, _080E68FC @ =CB2_InitBattle bl SetMainCallback2 adds r0, r4, 0 bl DestroyTask @@ -2045,11 +2045,11 @@ _080E68EC: .align 2, 0 _080E68F4: .4byte gMain _080E68F8: .4byte sub_80E6854 -_080E68FC: .4byte sub_800FD9C +_080E68FC: .4byte CB2_InitBattle thumb_func_end sub_80E68C4 - thumb_func_start sub_80E6900 -sub_80E6900: @ 80E6900 + thumb_func_start StartSpecialBattle +StartSpecialBattle: @ 80E6900 push {r4-r6,lr} sub sp, 0x4 ldr r0, _080E691C @ =gUnknown_203AAB8 @@ -2168,10 +2168,10 @@ _080E69FC: .4byte gBattleTypeFlags _080E6A00: .4byte 0x00000808 _080E6A04: .4byte gTrainerBattleOpponent_A _080E6A08: .4byte sub_80E68C4 - thumb_func_end sub_80E6900 + thumb_func_end StartSpecialBattle - thumb_func_start sub_80E6A0C -sub_80E6A0C: @ 80E6A0C + thumb_func_start SetBattleTowerProperty +SetBattleTowerProperty: @ 80E6A0C push {r4-r6,lr} ldr r1, _080E6A34 @ =gSaveBlock2Ptr ldr r0, [r1] @@ -2469,10 +2469,10 @@ _080E6C80: bx r0 .align 2, 0 _080E6C88: .4byte 0x0000055c - thumb_func_end sub_80E6A0C + thumb_func_end SetBattleTowerProperty - thumb_func_start sub_80E6C8C -sub_80E6C8C: @ 80E6C8C + thumb_func_start BattleTowerUtil +BattleTowerUtil: @ 80E6C8C push {r4,lr} ldr r1, _080E6CB4 @ =gSaveBlock2Ptr ldr r0, [r1] @@ -2652,10 +2652,10 @@ _080E6E08: bx r0 .align 2, 0 _080E6E10: .4byte 0x0000055c - thumb_func_end sub_80E6C8C + thumb_func_end BattleTowerUtil - thumb_func_start sub_80E6E14 -sub_80E6E14: @ 80E6E14 + thumb_func_start SetBattleTowerParty +SetBattleTowerParty: @ 80E6E14 push {r4,r5,lr} movs r2, 0 ldr r5, _080E6E3C @ =gUnknown_203B0D4 @@ -2671,7 +2671,7 @@ _080E6E1E: adds r2, 0x1 cmp r2, 0x2 ble _080E6E1E - bl sub_80A03D8 + bl ReducePlayerPartyToThree pop {r4,r5} pop {r0} bx r0 @@ -2679,7 +2679,7 @@ _080E6E1E: _080E6E3C: .4byte gUnknown_203B0D4 _080E6E40: .4byte gSaveBlock2Ptr _080E6E44: .4byte 0x0000056d - thumb_func_end sub_80E6E14 + thumb_func_end SetBattleTowerParty thumb_func_start sub_80E6E48 sub_80E6E48: @ 80E6E48 @@ -2858,8 +2858,8 @@ _080E6FB0: .4byte 0x0000056d _080E6FB4: .4byte gUnknown_2024220 thumb_func_end sub_80E6EE0 - thumb_func_start sub_80E6FB8 -sub_80E6FB8: @ 80E6FB8 + thumb_func_start SaveBattleTowerProgress +SaveBattleTowerProgress: @ 80E6FB8 push {r4,r5,lr} ldr r0, _080E703C @ =gSaveBlock2Ptr ldr r1, [r0] @@ -2933,15 +2933,15 @@ _080E7048: .4byte 0x00000564 _080E704C: .4byte gBattleOutcome _080E7050: .4byte 0x0000055d _080E7054: .4byte 0x0000055e - thumb_func_end sub_80E6FB8 + thumb_func_end SaveBattleTowerProgress - thumb_func_start sub_80E7058 -sub_80E7058: @ 80E7058 + thumb_func_start BattleTower_SoftReset +BattleTower_SoftReset: @ 80E7058 push {lr} bl DoSoftReset pop {r0} bx r0 - thumb_func_end sub_80E7058 + thumb_func_end BattleTower_SoftReset thumb_func_start sub_80E7064 sub_80E7064: @ 80E7064 @@ -3142,8 +3142,8 @@ _080E71C8: .4byte 0x0000ffff _080E71CC: .4byte 0x0000270f thumb_func_end sub_80E7188 - thumb_func_start sub_80E71D0 -sub_80E71D0: @ 80E71D0 + thumb_func_start DetermineBattleTowerPrize +DetermineBattleTowerPrize: @ 80E71D0 push {r4,r5,lr} ldr r4, _080E7214 @ =gSaveBlock2Ptr ldr r1, [r4] @@ -3201,10 +3201,10 @@ _080E7240: bx r0 .align 2, 0 _080E7248: .4byte gUnknown_84020DA - thumb_func_end sub_80E71D0 + thumb_func_end DetermineBattleTowerPrize - thumb_func_start sub_80E724C -sub_80E724C: @ 80E724C + thumb_func_start GiveBattleTowerPrize +GiveBattleTowerPrize: @ 80E724C push {r4-r6,lr} ldr r5, _080E7288 @ =gSaveBlock2Ptr ldr r1, [r5] @@ -3255,10 +3255,10 @@ _080E72AA: .align 2, 0 _080E72B0: .4byte gSpecialVar_Result _080E72B4: .4byte 0x0000055e - thumb_func_end sub_80E724C + thumb_func_end GiveBattleTowerPrize - thumb_func_start sub_80E72B8 -sub_80E72B8: @ 80E72B8 + thumb_func_start AwardBattleTowerRibbons +AwardBattleTowerRibbons: @ 80E72B8 push {r4-r7,lr} ldr r0, _080E7334 @ =gSaveBlock2Ptr ldr r0, [r0] @@ -3328,7 +3328,7 @@ _080E7338: .4byte 0x0000055c _080E733C: .4byte gSpecialVar_Result _080E7340: .4byte 0x0000056d _080E7344: .4byte gPlayerParty - thumb_func_end sub_80E72B8 + thumb_func_end AwardBattleTowerRibbons thumb_func_start sub_80E7348 sub_80E7348: @ 80E7348 @@ -3469,8 +3469,8 @@ _080E7458: .4byte gSaveBlock2Ptr _080E745C: .4byte 0x000004a1 thumb_func_end GetEreaderTrainerClassId - thumb_func_start sub_80E7460 -sub_80E7460: @ 80E7460 + thumb_func_start CopyEReaderTrainerName5 +CopyEReaderTrainerName5: @ 80E7460 push {r4,lr} adds r3, r0, 0 movs r2, 0 @@ -3495,7 +3495,7 @@ _080E746E: .align 2, 0 _080E7488: .4byte gSaveBlock2Ptr _080E748C: .4byte 0x000004a4 - thumb_func_end sub_80E7460 + thumb_func_end CopyEReaderTrainerName5 thumb_func_start ValidateEReaderTrainer ValidateEReaderTrainer: @ 80E7490 @@ -3594,8 +3594,8 @@ _080E752A: bx r0 thumb_func_end sub_80E7524 - thumb_func_start sub_80E7538 -sub_80E7538: @ 80E7538 + thumb_func_start PrintEReaderTrainerGreeting +PrintEReaderTrainerGreeting: @ 80E7538 push {lr} ldr r0, _080E754C @ =gSaveBlock2Ptr ldr r0, [r0] @@ -3607,7 +3607,7 @@ sub_80E7538: @ 80E7538 bx r0 .align 2, 0 _080E754C: .4byte gSaveBlock2Ptr - thumb_func_end sub_80E7538 + thumb_func_end PrintEReaderTrainerGreeting thumb_func_start sub_80E7550 sub_80E7550: @ 80E7550 @@ -3649,8 +3649,8 @@ _080E7594: .4byte gSaveBlock2Ptr _080E7598: .4byte 0x000004bc thumb_func_end sub_80E7550 - thumb_func_start sub_80E759C -sub_80E759C: @ 80E759C + thumb_func_start Dummy_TryEnableBravoTrainerBattleTower +Dummy_TryEnableBravoTrainerBattleTower: @ 80E759C push {lr} movs r0, 0x1 _080E75A0: @@ -3659,6 +3659,6 @@ _080E75A0: bge _080E75A0 pop {r0} bx r0 - thumb_func_end sub_80E759C + thumb_func_end Dummy_TryEnableBravoTrainerBattleTower .align 2, 0 @ Don't pad with nop. diff --git a/asm/cable_club.s b/asm/cable_club.s index 76346a28c..01aa8d217 100644 --- a/asm/cable_club.s +++ b/asm/cable_club.s @@ -1625,7 +1625,7 @@ _08081404: .align 2, 0 _0808140C: .4byte gBattleTypeFlags _08081410: - bl sub_80A03D8 + bl ReducePlayerPartyToThree ldr r1, _08081440 @ =gBattleTypeFlags movs r0, 0x4B _08081418: @@ -1637,7 +1637,7 @@ _0808141A: lsls r2, 4 adds r0, r2, 0 strh r0, [r1] - ldr r0, _08081448 @ =sub_800FD9C + ldr r0, _08081448 @ =CB2_InitBattle bl SetMainCallback2 ldr r1, _0808144C @ =gMain ldr r0, _08081450 @ =sub_8081668 @@ -1651,7 +1651,7 @@ _0808143A: .align 2, 0 _08081440: .4byte gBattleTypeFlags _08081444: .4byte gTrainerBattleOpponent_A -_08081448: .4byte sub_800FD9C +_08081448: .4byte CB2_InitBattle _0808144C: .4byte gMain _08081450: .4byte sub_8081668 thumb_func_end sub_8081318 @@ -1848,7 +1848,7 @@ _080815D4: .align 2, 0 _080815DC: .4byte gBattleTypeFlags _080815E0: - bl sub_80A03D8 + bl ReducePlayerPartyToThree ldr r1, _08081610 @ =gBattleTypeFlags movs r0, 0x4B _080815E8: @@ -1860,7 +1860,7 @@ _080815EA: lsls r3, 4 adds r0, r3, 0 strh r0, [r1] - ldr r0, _08081618 @ =sub_800FD9C + ldr r0, _08081618 @ =CB2_InitBattle bl SetMainCallback2 ldr r1, _0808161C @ =gMain ldr r0, _08081620 @ =sub_8081668 @@ -1874,7 +1874,7 @@ _0808160A: .align 2, 0 _08081610: .4byte gBattleTypeFlags _08081614: .4byte gTrainerBattleOpponent_A -_08081618: .4byte sub_800FD9C +_08081618: .4byte CB2_InitBattle _0808161C: .4byte gMain _08081620: .4byte sub_8081668 thumb_func_end sub_8081454 diff --git a/asm/dodrio_berry_picking.s b/asm/dodrio_berry_picking.s index 8b2797dc8..ceccf74ff 100644 --- a/asm/dodrio_berry_picking.s +++ b/asm/dodrio_berry_picking.s @@ -10324,7 +10324,7 @@ _0815579C: ldr r0, [r3] adds r0, r7 ldrb r0, [r0] - ldr r2, _08155858 @ =gUnknown_8417938 + ldr r2, _08155858 @ =gText_Yes movs r1, 0x2 mov r9, r1 str r1, [sp] @@ -10336,7 +10336,7 @@ _0815579C: ldr r0, [r2] adds r0, r7 ldrb r0, [r0] - ldr r2, _0815585C @ =gUnknown_841793C + ldr r2, _0815585C @ =gText_No movs r1, 0x10 str r1, [sp] str r5, [sp, 0x4] @@ -10377,8 +10377,8 @@ _0815579C: _0815584C: .4byte 0x00003008 _08155850: .4byte 0x00003009 _08155854: .4byte gUnknown_841CDD7 -_08155858: .4byte gUnknown_8417938 -_0815585C: .4byte gUnknown_841793C +_08155858: .4byte gText_Yes +_0815585C: .4byte gText_No _08155860: .4byte gFameCheckerText_ListMenuCursor _08155864: .4byte 0x00003014 _08155868: @@ -10425,7 +10425,7 @@ _081558B0: ldr r0, [r2] adds r0, r4 ldrb r0, [r0] - ldr r2, _08155914 @ =gUnknown_8417938 + ldr r2, _08155914 @ =gText_Yes movs r3, 0x2 mov r8, r3 str r3, [sp] @@ -10440,7 +10440,7 @@ _081558B0: ldr r0, [r2] adds r0, r4 ldrb r0, [r0] - ldr r2, _08155918 @ =gUnknown_841793C + ldr r2, _08155918 @ =gText_No movs r6, 0x10 str r6, [sp] movs r3, 0xFF @@ -10462,8 +10462,8 @@ _081558B0: .align 2, 0 _0815590C: .4byte 0x00003020 _08155910: .4byte 0x00003009 -_08155914: .4byte gUnknown_8417938 -_08155918: .4byte gUnknown_841793C +_08155914: .4byte gText_Yes +_08155918: .4byte gText_No _0815591C: .4byte gFameCheckerText_ListMenuCursor _08155920: str r6, [sp] diff --git a/asm/easy_chat.s b/asm/easy_chat.s index 26d7ac8bc..0daa8b2bc 100644 --- a/asm/easy_chat.s +++ b/asm/easy_chat.s @@ -576,8 +576,8 @@ _080BDB14: .4byte 0x00002cc4 _080BDB18: .4byte gStringVar4 thumb_func_end sub_80BDA7C - thumb_func_start sub_80BDB1C -sub_80BDB1C: @ 80BDB1C + thumb_func_start BufferRandomHobbyOrLifestyleString +BufferRandomHobbyOrLifestyleString: @ 80BDB1C push {lr} bl Random movs r1, 0x1 @@ -597,7 +597,7 @@ _080BDB2E: bx r0 .align 2, 0 _080BDB44: .4byte gStringVar2 - thumb_func_end sub_80BDB1C + thumb_func_end BufferRandomHobbyOrLifestyleString thumb_func_start sub_80BDB48 sub_80BDB48: @ 80BDB48 diff --git a/asm/event_data.s b/asm/event_data.s deleted file mode 100644 index f4aa51496..000000000 --- a/asm/event_data.s +++ /dev/null @@ -1,867 +0,0 @@ - .include "asm/macros.inc" - .include "constants/constants.inc" - - .syntax unified - - .text - - thumb_func_start InitEventData -InitEventData: @ 806E0D0 - push {r4,lr} - ldr r4, _0806E108 @ =gSaveBlock1Ptr - ldr r0, [r4] - movs r1, 0xEE - lsls r1, 4 - adds r0, r1 - movs r2, 0x90 - lsls r2, 1 - movs r1, 0 - bl memset - ldr r0, [r4] - movs r1, 0x80 - lsls r1, 5 - adds r0, r1 - movs r2, 0x80 - lsls r2, 2 - movs r1, 0 - bl memset - ldr r0, _0806E10C @ =gUnknown_20370E0 - movs r1, 0 - movs r2, 0x10 - bl memset - pop {r4} - pop {r0} - bx r0 - .align 2, 0 -_0806E108: .4byte gSaveBlock1Ptr -_0806E10C: .4byte gUnknown_20370E0 - thumb_func_end InitEventData - - thumb_func_start sub_806E110 -sub_806E110: @ 806E110 - push {lr} - ldr r0, _0806E150 @ =gSaveBlock1Ptr - ldr r0, [r0] - movs r1, 0xEE - lsls r1, 4 - adds r2, r0, r1 - movs r1, 0 - str r1, [r2] - movs r1, 0x80 - lsls r1, 5 - adds r0, r1 - movs r1, 0 - movs r2, 0x20 - bl memset - ldr r0, _0806E154 @ =0x00000803 - bl FlagClear - ldr r0, _0806E158 @ =0x00000804 - bl FlagClear - ldr r0, _0806E15C @ =0x00000805 - bl FlagClear - ldr r0, _0806E160 @ =0x00000807 - bl FlagClear - ldr r0, _0806E164 @ =0x00000842 - bl FlagClear - pop {r0} - bx r0 - .align 2, 0 -_0806E150: .4byte gSaveBlock1Ptr -_0806E154: .4byte 0x00000803 -_0806E158: .4byte 0x00000804 -_0806E15C: .4byte 0x00000805 -_0806E160: .4byte 0x00000807 -_0806E164: .4byte 0x00000842 - thumb_func_end sub_806E110 - - thumb_func_start sub_806E168 -sub_806E168: @ 806E168 - push {lr} - ldr r0, _0806E184 @ =0x0000403c - bl GetVarPointer - ldr r1, _0806E188 @ =gSaveBlock2Ptr - ldr r2, [r1] - movs r1, 0 - strb r1, [r2, 0x1A] - strh r1, [r0] - ldr r0, _0806E18C @ =0x00000838 - bl FlagClear - pop {r0} - bx r0 - .align 2, 0 -_0806E184: .4byte 0x0000403c -_0806E188: .4byte gSaveBlock2Ptr -_0806E18C: .4byte 0x00000838 - thumb_func_end sub_806E168 - - thumb_func_start sub_806E190 -sub_806E190: @ 806E190 - push {lr} - ldr r0, _0806E1B0 @ =0x0000403c - bl GetVarPointer - ldr r1, _0806E1B4 @ =gSaveBlock2Ptr - ldr r2, [r1] - movs r1, 0xDA - strb r1, [r2, 0x1A] - ldr r2, _0806E1B8 @ =0x00000302 - adds r1, r2, 0 - strh r1, [r0] - ldr r0, _0806E1BC @ =0x00000838 - bl FlagSet - pop {r0} - bx r0 - .align 2, 0 -_0806E1B0: .4byte 0x0000403c -_0806E1B4: .4byte gSaveBlock2Ptr -_0806E1B8: .4byte 0x00000302 -_0806E1BC: .4byte 0x00000838 - thumb_func_end sub_806E190 - - thumb_func_start sub_806E1C0 -sub_806E1C0: @ 806E1C0 - push {lr} - ldr r0, _0806E1EC @ =gSaveBlock2Ptr - ldr r0, [r0] - ldrb r0, [r0, 0x1A] - cmp r0, 0xDA - bne _0806E1FC - ldr r0, _0806E1F0 @ =0x0000403c - bl VarGet - lsls r0, 16 - ldr r1, _0806E1F4 @ =0x03020000 - cmp r0, r1 - bne _0806E1FC - ldr r0, _0806E1F8 @ =0x00000838 - bl FlagGet - lsls r0, 24 - cmp r0, 0 - beq _0806E1FC - movs r0, 0x1 - b _0806E1FE - .align 2, 0 -_0806E1EC: .4byte gSaveBlock2Ptr -_0806E1F0: .4byte 0x0000403c -_0806E1F4: .4byte 0x03020000 -_0806E1F8: .4byte 0x00000838 -_0806E1FC: - movs r0, 0 -_0806E1FE: - pop {r1} - bx r1 - thumb_func_end sub_806E1C0 - - thumb_func_start sub_806E204 -sub_806E204: @ 806E204 - push {lr} - ldr r0, _0806E224 @ =0x0000404e - bl GetVarPointer - ldr r1, _0806E228 @ =gSaveBlock2Ptr - ldr r2, [r1] - movs r1, 0 - strb r1, [r2, 0x1B] - strh r1, [r0] - movs r0, 0x84 - lsls r0, 4 - bl FlagClear - pop {r0} - bx r0 - .align 2, 0 -_0806E224: .4byte 0x0000404e -_0806E228: .4byte gSaveBlock2Ptr - thumb_func_end sub_806E204 - - thumb_func_start EnableNationalPokedex -EnableNationalPokedex: @ 806E22C - push {lr} - ldr r0, _0806E250 @ =0x0000404e - bl GetVarPointer - ldr r1, _0806E254 @ =gSaveBlock2Ptr - ldr r2, [r1] - movs r1, 0xB9 - strb r1, [r2, 0x1B] - ldr r2, _0806E258 @ =0x00006258 - adds r1, r2, 0 - strh r1, [r0] - movs r0, 0x84 - lsls r0, 4 - bl FlagSet - pop {r0} - bx r0 - .align 2, 0 -_0806E250: .4byte 0x0000404e -_0806E254: .4byte gSaveBlock2Ptr -_0806E258: .4byte 0x00006258 - thumb_func_end EnableNationalPokedex - - thumb_func_start IsNationalPokedexEnabled -IsNationalPokedexEnabled: @ 806E25C - push {lr} - ldr r0, _0806E288 @ =gSaveBlock2Ptr - ldr r0, [r0] - ldrb r0, [r0, 0x1B] - cmp r0, 0xB9 - bne _0806E294 - ldr r0, _0806E28C @ =0x0000404e - bl VarGet - lsls r0, 16 - ldr r1, _0806E290 @ =0x62580000 - cmp r0, r1 - bne _0806E294 - movs r0, 0x84 - lsls r0, 4 - bl FlagGet - lsls r0, 24 - cmp r0, 0 - beq _0806E294 - movs r0, 0x1 - b _0806E296 - .align 2, 0 -_0806E288: .4byte gSaveBlock2Ptr -_0806E28C: .4byte 0x0000404e -_0806E290: .4byte 0x62580000 -_0806E294: - movs r0, 0 -_0806E296: - pop {r1} - bx r1 - thumb_func_end IsNationalPokedexEnabled - - thumb_func_start sub_806E29C -sub_806E29C: @ 806E29C - push {lr} - ldr r0, _0806E2A8 @ =0x00000839 - bl FlagClear - pop {r0} - bx r0 - .align 2, 0 -_0806E2A8: .4byte 0x00000839 - thumb_func_end sub_806E29C - - thumb_func_start sub_806E2AC -sub_806E2AC: @ 806E2AC - push {lr} - ldr r0, _0806E2B8 @ =0x00000839 - bl FlagSet - pop {r0} - bx r0 - .align 2, 0 -_0806E2B8: .4byte 0x00000839 - thumb_func_end sub_806E2AC - - thumb_func_start Flag_0x839_IsSet -Flag_0x839_IsSet: @ 806E2BC - push {lr} - ldr r0, _0806E2CC @ =0x00000839 - bl FlagGet - lsls r0, 24 - lsrs r0, 24 - pop {r1} - bx r1 - .align 2, 0 -_0806E2CC: .4byte 0x00000839 - thumb_func_end Flag_0x839_IsSet - - thumb_func_start sub_806E2D0 -sub_806E2D0: @ 806E2D0 - push {lr} - movs r0, 0xF6 - lsls r0, 2 - bl FlagClear - ldr r0, _0806E340 @ =0x000003d9 - bl FlagClear - ldr r0, _0806E344 @ =0x000003da - bl FlagClear - ldr r0, _0806E348 @ =0x000003db - bl FlagClear - movs r0, 0xF7 - lsls r0, 2 - bl FlagClear - ldr r0, _0806E34C @ =0x000003dd - bl FlagClear - ldr r0, _0806E350 @ =0x000003de - bl FlagClear - ldr r0, _0806E354 @ =0x000003df - bl FlagClear - movs r0, 0xF8 - lsls r0, 2 - bl FlagClear - ldr r0, _0806E358 @ =0x000003e1 - bl FlagClear - ldr r0, _0806E35C @ =0x000003e2 - bl FlagClear - ldr r0, _0806E360 @ =0x000003e3 - bl FlagClear - movs r0, 0xF9 - lsls r0, 2 - bl FlagClear - ldr r0, _0806E364 @ =0x000003e5 - bl FlagClear - ldr r0, _0806E368 @ =0x000003e6 - bl FlagClear - ldr r0, _0806E36C @ =0x000003e7 - bl FlagClear - pop {r0} - bx r0 - .align 2, 0 -_0806E340: .4byte 0x000003d9 -_0806E344: .4byte 0x000003da -_0806E348: .4byte 0x000003db -_0806E34C: .4byte 0x000003dd -_0806E350: .4byte 0x000003de -_0806E354: .4byte 0x000003df -_0806E358: .4byte 0x000003e1 -_0806E35C: .4byte 0x000003e2 -_0806E360: .4byte 0x000003e3 -_0806E364: .4byte 0x000003e5 -_0806E368: .4byte 0x000003e6 -_0806E36C: .4byte 0x000003e7 - thumb_func_end sub_806E2D0 - - thumb_func_start sub_806E370 -sub_806E370: @ 806E370 - push {lr} - ldr r0, _0806E3C0 @ =0x000040b5 - movs r1, 0 - bl VarSet - ldr r0, _0806E3C4 @ =0x000040b6 - movs r1, 0 - bl VarSet - ldr r0, _0806E3C8 @ =0x000040b7 - movs r1, 0 - bl VarSet - ldr r0, _0806E3CC @ =0x000040b8 - movs r1, 0 - bl VarSet - ldr r0, _0806E3D0 @ =0x000040b9 - movs r1, 0 - bl VarSet - ldr r0, _0806E3D4 @ =0x000040ba - movs r1, 0 - bl VarSet - ldr r0, _0806E3D8 @ =0x000040bb - movs r1, 0 - bl VarSet - ldr r0, _0806E3DC @ =0x000040bc - movs r1, 0 - bl VarSet - ldr r0, _0806E3E0 @ =0x00004024 - movs r1, 0 - bl VarSet - pop {r0} - bx r0 - .align 2, 0 -_0806E3C0: .4byte 0x000040b5 -_0806E3C4: .4byte 0x000040b6 -_0806E3C8: .4byte 0x000040b7 -_0806E3CC: .4byte 0x000040b8 -_0806E3D0: .4byte 0x000040b9 -_0806E3D4: .4byte 0x000040ba -_0806E3D8: .4byte 0x000040bb -_0806E3DC: .4byte 0x000040bc -_0806E3E0: .4byte 0x00004024 - thumb_func_end sub_806E370 - - thumb_func_start DisableResetRTC -DisableResetRTC: @ 806E3E4 - push {lr} - ldr r0, _0806E3F8 @ =0x00004032 - movs r1, 0 - bl VarSet - ldr r0, _0806E3FC @ =0x00000837 - bl FlagClear - pop {r0} - bx r0 - .align 2, 0 -_0806E3F8: .4byte 0x00004032 -_0806E3FC: .4byte 0x00000837 - thumb_func_end DisableResetRTC - - thumb_func_start EnableResetRTC -EnableResetRTC: @ 806E400 - push {lr} - ldr r0, _0806E418 @ =0x00004032 - movs r1, 0x92 - lsls r1, 4 - bl VarSet - ldr r0, _0806E41C @ =0x00000837 - bl FlagSet - pop {r0} - bx r0 - .align 2, 0 -_0806E418: .4byte 0x00004032 -_0806E41C: .4byte 0x00000837 - thumb_func_end EnableResetRTC - - thumb_func_start CanResetRTC -CanResetRTC: @ 806E420 - push {lr} - ldr r0, _0806E444 @ =0x00000837 - bl FlagGet - lsls r0, 24 - cmp r0, 0 - beq _0806E44C - ldr r0, _0806E448 @ =0x00004032 - bl VarGet - lsls r0, 16 - movs r1, 0x92 - lsls r1, 20 - cmp r0, r1 - bne _0806E44C - movs r0, 0x1 - b _0806E44E - .align 2, 0 -_0806E444: .4byte 0x00000837 -_0806E448: .4byte 0x00004032 -_0806E44C: - movs r0, 0 -_0806E44E: - pop {r1} - bx r1 - thumb_func_end CanResetRTC - - thumb_func_start GetVarPointer -GetVarPointer: @ 806E454 - push {r4-r6,lr} - lsls r0, 16 - lsrs r4, r0, 16 - adds r6, r4, 0 - ldr r0, _0806E468 @ =0x00003fff - cmp r4, r0 - bhi _0806E46C - movs r0, 0 - b _0806E518 - .align 2, 0 -_0806E468: .4byte 0x00003fff -_0806E46C: - lsls r0, r4, 16 - cmp r0, 0 - blt _0806E50C - ldr r0, _0806E484 @ =gUnknown_3005E88 - ldrb r0, [r0] - cmp r0, 0x1 - beq _0806E488 - cmp r0, 0x1 - ble _0806E4EE - cmp r0, 0x2 - beq _0806E4B8 - b _0806E4EE - .align 2, 0 -_0806E484: .4byte gUnknown_3005E88 -_0806E488: - movs r0, 0 - adds r1, r4, 0 - bl sub_8112D40 - adds r2, r0, 0 - cmp r2, 0 - beq _0806E4EE - ldr r0, _0806E4B0 @ =gSaveBlock1Ptr - ldr r1, [r0] - ldr r3, _0806E4B4 @ =0xffffc000 - adds r0, r4, r3 - lsls r0, 1 - movs r3, 0x80 - lsls r3, 5 - adds r1, r3 - adds r1, r0 - ldrh r0, [r2] - strh r0, [r1] - b _0806E4EE - .align 2, 0 -_0806E4B0: .4byte gSaveBlock1Ptr -_0806E4B4: .4byte 0xffffc000 -_0806E4B8: - ldr r0, _0806E4FC @ =0xffffc000 - adds r5, r4, r0 - lsls r0, r5, 16 - lsrs r0, 16 - movs r1, 0x1 - bl sub_806E528 - lsls r0, 24 - lsrs r0, 24 - cmp r0, 0x1 - bne _0806E4EE - ldr r0, _0806E500 @ =gUnknown_300507C - strh r5, [r0] - ldr r0, _0806E504 @ =gSaveBlock1Ptr - ldr r1, [r0] - ldr r2, _0806E4FC @ =0xffffc000 - adds r0, r4, r2 - lsls r0, 1 - movs r3, 0x80 - lsls r3, 5 - adds r1, r3 - adds r1, r0 - ldrh r2, [r1] - movs r0, 0 - adds r1, r4, 0 - bl sub_8112DB0 -_0806E4EE: - ldr r0, _0806E504 @ =gSaveBlock1Ptr - lsls r1, r6, 1 - ldr r2, _0806E508 @ =0xffff9000 - adds r1, r2 - ldr r0, [r0] - adds r0, r1 - b _0806E518 - .align 2, 0 -_0806E4FC: .4byte 0xffffc000 -_0806E500: .4byte gUnknown_300507C -_0806E504: .4byte gSaveBlock1Ptr -_0806E508: .4byte 0xffff9000 -_0806E50C: - ldr r0, _0806E520 @ =gSpecialVars - ldr r3, _0806E524 @ =0xffff8000 - adds r1, r6, r3 - lsls r1, 2 - adds r1, r0 - ldr r0, [r1] -_0806E518: - pop {r4-r6} - pop {r1} - bx r1 - .align 2, 0 -_0806E520: .4byte gSpecialVars -_0806E524: .4byte 0xffff8000 - thumb_func_end GetVarPointer - - thumb_func_start sub_806E528 -sub_806E528: @ 806E528 - push {lr} - lsls r0, 16 - lsrs r2, r0, 16 - adds r0, r2, 0 - lsls r1, 24 - cmp r1, 0 - bne _0806E554 - ldr r0, _0806E54C @ =0x0000022f - cmp r2, r0 - bls _0806E548 - ldr r1, _0806E550 @ =0xfffff800 - adds r0, r2, r1 - lsls r0, 16 - lsrs r0, 16 - cmp r0, 0x1F - bhi _0806E562 -_0806E548: - movs r0, 0 - b _0806E564 - .align 2, 0 -_0806E54C: .4byte 0x0000022f -_0806E550: .4byte 0xfffff800 -_0806E554: - cmp r2, 0x2F - bls _0806E548 - subs r0, 0x50 - lsls r0, 16 - lsrs r0, 16 - cmp r0, 0x63 - bls _0806E548 -_0806E562: - movs r0, 0x1 -_0806E564: - pop {r1} - bx r1 - thumb_func_end sub_806E528 - - thumb_func_start VarGet -VarGet: @ 806E568 - push {r4,lr} - lsls r0, 16 - lsrs r4, r0, 16 - adds r0, r4, 0 - bl GetVarPointer - cmp r0, 0 - beq _0806E57C - ldrh r0, [r0] - b _0806E57E -_0806E57C: - adds r0, r4, 0 -_0806E57E: - pop {r4} - pop {r1} - bx r1 - thumb_func_end VarGet - - thumb_func_start VarSet -VarSet: @ 806E584 - push {r4,lr} - lsls r0, 16 - lsrs r0, 16 - lsls r1, 16 - lsrs r4, r1, 16 - bl GetVarPointer - cmp r0, 0 - beq _0806E59C - strh r4, [r0] - movs r0, 0x1 - b _0806E59E -_0806E59C: - movs r0, 0 -_0806E59E: - pop {r4} - pop {r1} - bx r1 - thumb_func_end VarSet - - thumb_func_start VarGetFieldObjectGraphicsId -VarGetFieldObjectGraphicsId: @ 806E5A4 - push {lr} - lsls r0, 24 - lsrs r0, 8 - ldr r1, _0806E5BC @ =0x40100000 - adds r0, r1 - lsrs r0, 16 - bl VarGet - lsls r0, 24 - lsrs r0, 24 - pop {r1} - bx r1 - .align 2, 0 -_0806E5BC: .4byte 0x40100000 - thumb_func_end VarGetFieldObjectGraphicsId - - thumb_func_start sub_806E5C0 -sub_806E5C0: @ 806E5C0 - push {r4-r6,lr} - lsls r5, r0, 16 - lsrs r4, r5, 16 - adds r6, r4, 0 - cmp r4, 0 - bne _0806E5D0 - movs r0, 0 - b _0806E66E -_0806E5D0: - ldr r0, _0806E5E8 @ =0x00003fff - cmp r4, r0 - bhi _0806E65C - ldr r0, _0806E5EC @ =gUnknown_3005E88 - ldrb r0, [r0] - cmp r0, 0x1 - beq _0806E5F0 - cmp r0, 0x1 - ble _0806E644 - cmp r0, 0x2 - beq _0806E618 - b _0806E644 - .align 2, 0 -_0806E5E8: .4byte 0x00003fff -_0806E5EC: .4byte gUnknown_3005E88 -_0806E5F0: - movs r0, 0x1 - adds r1, r4, 0 - bl sub_8112D40 - adds r2, r0, 0 - cmp r2, 0 - beq _0806E644 - ldr r0, _0806E614 @ =gSaveBlock1Ptr - ldr r0, [r0] - lsrs r1, r5, 19 - movs r3, 0xEE - lsls r3, 4 - adds r0, r3 - adds r0, r1 - ldrb r1, [r2] - strb r1, [r0] - b _0806E644 - .align 2, 0 -_0806E614: .4byte gSaveBlock1Ptr -_0806E618: - adds r0, r4, 0 - movs r1, 0 - bl sub_806E528 - lsls r0, 24 - lsrs r0, 24 - cmp r0, 0x1 - bne _0806E644 - ldr r0, _0806E654 @ =gUnknown_300507C - strh r4, [r0] - ldr r0, _0806E658 @ =gSaveBlock1Ptr - ldr r0, [r0] - lsrs r1, r5, 19 - movs r2, 0xEE - lsls r2, 4 - adds r0, r2 - adds r0, r1 - ldrb r2, [r0] - movs r0, 0x1 - adds r1, r4, 0 - bl sub_8112DB0 -_0806E644: - ldr r0, _0806E658 @ =gSaveBlock1Ptr - lsrs r1, r6, 3 - movs r3, 0xEE - lsls r3, 4 - adds r1, r3 - ldr r0, [r0] - b _0806E66C - .align 2, 0 -_0806E654: .4byte gUnknown_300507C -_0806E658: .4byte gSaveBlock1Ptr -_0806E65C: - ldr r1, _0806E674 @ =0xffffc000 - adds r0, r6, r1 - cmp r0, 0 - bge _0806E668 - ldr r2, _0806E678 @ =0xffffc007 - adds r0, r6, r2 -_0806E668: - asrs r0, 3 - ldr r1, _0806E67C @ =gUnknown_20370E0 -_0806E66C: - adds r0, r1 -_0806E66E: - pop {r4-r6} - pop {r1} - bx r1 - .align 2, 0 -_0806E674: .4byte 0xffffc000 -_0806E678: .4byte 0xffffc007 -_0806E67C: .4byte gUnknown_20370E0 - thumb_func_end sub_806E5C0 - - thumb_func_start FlagSet -FlagSet: @ 806E680 - push {r4,lr} - lsls r0, 16 - lsrs r4, r0, 16 - adds r0, r4, 0 - bl sub_806E5C0 - adds r2, r0, 0 - cmp r2, 0 - beq _0806E6A0 - movs r0, 0x7 - ands r0, r4 - movs r1, 0x1 - lsls r1, r0 - ldrb r0, [r2] - orrs r1, r0 - strb r1, [r2] -_0806E6A0: - movs r0, 0 - pop {r4} - pop {r1} - bx r1 - thumb_func_end FlagSet - - thumb_func_start FlagClear -FlagClear: @ 806E6A8 - push {r4,lr} - lsls r0, 16 - lsrs r4, r0, 16 - adds r0, r4, 0 - bl sub_806E5C0 - adds r2, r0, 0 - cmp r2, 0 - beq _0806E6C8 - movs r0, 0x7 - ands r0, r4 - movs r1, 0x1 - lsls r1, r0 - ldrb r0, [r2] - bics r0, r1 - strb r0, [r2] -_0806E6C8: - movs r0, 0 - pop {r4} - pop {r1} - bx r1 - thumb_func_end FlagClear - - thumb_func_start FlagGet -FlagGet: @ 806E6D0 - push {r4,lr} - lsls r0, 16 - lsrs r4, r0, 16 - adds r0, r4, 0 - bl sub_806E5C0 - cmp r0, 0 - beq _0806E6F4 - ldrb r0, [r0] - movs r1, 0x7 - ands r1, r4 - asrs r0, r1 - movs r1, 0x1 - ands r0, r1 - cmp r0, 0 - beq _0806E6F4 - movs r0, 0x1 - b _0806E6F6 -_0806E6F4: - movs r0, 0 -_0806E6F6: - pop {r4} - pop {r1} - bx r1 - thumb_func_end FlagGet - - thumb_func_start sub_806E6FC -sub_806E6FC: @ 806E6FC - ldr r1, _0806E754 @ =gSpecialVar_0x8000 - movs r0, 0 - strh r0, [r1] - ldr r1, _0806E758 @ =gSpecialVar_0x8001 - strh r0, [r1] - ldr r1, _0806E75C @ =gSpecialVar_0x8002 - strh r0, [r1] - ldr r1, _0806E760 @ =gSpecialVar_0x8003 - strh r0, [r1] - ldr r1, _0806E764 @ =gSpecialVar_0x8004 - strh r0, [r1] - ldr r1, _0806E768 @ =gSpecialVar_0x8005 - strh r0, [r1] - ldr r1, _0806E76C @ =gSpecialVar_0x8006 - strh r0, [r1] - ldr r1, _0806E770 @ =gSpecialVar_0x8007 - strh r0, [r1] - ldr r1, _0806E774 @ =gSpecialVar_0x8008 - strh r0, [r1] - ldr r1, _0806E778 @ =gSpecialVar_0x8009 - strh r0, [r1] - ldr r1, _0806E77C @ =gSpecialVar_0x800A - strh r0, [r1] - ldr r1, _0806E780 @ =gSpecialVar_0x800B - strh r0, [r1] - ldr r1, _0806E784 @ =gSpecialVar_Facing - strh r0, [r1] - ldr r1, _0806E788 @ =gSpecialVar_Result - strh r0, [r1] - ldr r1, _0806E78C @ =gSpecialVar_ItemId - strh r0, [r1] - ldr r1, _0806E790 @ =gSpecialVar_LastTalked - strh r0, [r1] - ldr r1, _0806E794 @ =gSpecialVar_MonBoxId - strh r0, [r1] - ldr r1, _0806E798 @ =gSpecialVar_MonBoxPos - strh r0, [r1] - ldr r1, _0806E79C @ =gUnknown_20370DA - strh r0, [r1] - ldr r1, _0806E7A0 @ =gUnknown_20370DC - strh r0, [r1] - ldr r1, _0806E7A4 @ =gUnknown_20370DE - strh r0, [r1] - bx lr - .align 2, 0 -_0806E754: .4byte gSpecialVar_0x8000 -_0806E758: .4byte gSpecialVar_0x8001 -_0806E75C: .4byte gSpecialVar_0x8002 -_0806E760: .4byte gSpecialVar_0x8003 -_0806E764: .4byte gSpecialVar_0x8004 -_0806E768: .4byte gSpecialVar_0x8005 -_0806E76C: .4byte gSpecialVar_0x8006 -_0806E770: .4byte gSpecialVar_0x8007 -_0806E774: .4byte gSpecialVar_0x8008 -_0806E778: .4byte gSpecialVar_0x8009 -_0806E77C: .4byte gSpecialVar_0x800A -_0806E780: .4byte gSpecialVar_0x800B -_0806E784: .4byte gSpecialVar_Facing -_0806E788: .4byte gSpecialVar_Result -_0806E78C: .4byte gSpecialVar_ItemId -_0806E790: .4byte gSpecialVar_LastTalked -_0806E794: .4byte gSpecialVar_MonBoxId -_0806E798: .4byte gSpecialVar_MonBoxPos -_0806E79C: .4byte gUnknown_20370DA -_0806E7A0: .4byte gUnknown_20370DC -_0806E7A4: .4byte gUnknown_20370DE - thumb_func_end sub_806E6FC - - .align 2, 0 @ Don't pad with nop. diff --git a/asm/evolution_scene.s b/asm/evolution_scene.s index d8651a24c..b718deee6 100644 --- a/asm/evolution_scene.s +++ b/asm/evolution_scene.s @@ -278,7 +278,7 @@ EvolutionScene: @ 80CDDF4 adds r6, r7, 0 adds r6, 0x1C adds r0, r1, r6 - ldr r2, _080CE0CC @ =nullsub_10 + ldr r2, _080CE0CC @ =SpriteCallbackDummy2 str r2, [r0] adds r1, r7 ldrb r2, [r1, 0x5] @@ -331,7 +331,7 @@ EvolutionScene: @ 80CDDF4 adds r1, r3 lsls r1, 2 adds r6, r1, r6 - ldr r2, _080CE0CC @ =nullsub_10 + ldr r2, _080CE0CC @ =SpriteCallbackDummy2 str r2, [r6] adds r1, r7 ldrb r0, [r1, 0x5] @@ -420,7 +420,7 @@ _080CE0BC: .4byte gMonSpritesGfxPtr _080CE0C0: .4byte gMultiuseSpriteTemplate _080CE0C4: .4byte gDummySpriteAffineAnimTable _080CE0C8: .4byte gSprites -_080CE0CC: .4byte nullsub_10 +_080CE0CC: .4byte SpriteCallbackDummy2 _080CE0D0: .4byte sub_80CE8DC _080CE0D4: .4byte gTasks _080CE0D8: .4byte gPlttBufferUnfaded + 0x40 @@ -562,7 +562,7 @@ CB2_EvolutionSceneLoadGraphics: @ 80CE0E8 adds r0, r3, 0 adds r0, 0x1C adds r0, r1, r0 - ldr r2, _080CE2CC @ =nullsub_10 + ldr r2, _080CE2CC @ =SpriteCallbackDummy2 str r2, [r0] adds r1, r3 ldrb r2, [r1, 0x5] @@ -623,7 +623,7 @@ _080CE2BC: .4byte gMonSpritesGfxPtr _080CE2C0: .4byte gMultiuseSpriteTemplate _080CE2C4: .4byte gDummySpriteAffineAnimTable _080CE2C8: .4byte gSprites -_080CE2CC: .4byte nullsub_10 +_080CE2CC: .4byte SpriteCallbackDummy2 _080CE2D0: .4byte nullsub_76 _080CE2D4: .4byte sub_80D0050 _080CE2D8: .4byte sub_80CE710 @@ -813,7 +813,7 @@ _080CE45C: adds r0, r3, 0 adds r0, 0x1C adds r0, r1, r0 - ldr r2, _080CE4C4 @ =nullsub_10 + ldr r2, _080CE4C4 @ =SpriteCallbackDummy2 str r2, [r0] adds r1, r3 ldrb r2, [r1, 0x5] @@ -836,7 +836,7 @@ _080CE4B4: .4byte gMultiuseSpriteTemplate _080CE4B8: .4byte gDummySpriteAffineAnimTable _080CE4BC: .4byte gUnknown_2039A20 _080CE4C0: .4byte gSprites -_080CE4C4: .4byte nullsub_10 +_080CE4C4: .4byte SpriteCallbackDummy2 _080CE4C8: .4byte gMain _080CE4CC: ldr r0, _080CE4FC @ =gWirelessCommType @@ -989,7 +989,7 @@ TradeEvolutionScene: @ 80CE540 adds r0, r3, 0 adds r0, 0x1C adds r0, r1, r0 - ldr r2, _080CE6D8 @ =nullsub_10 + ldr r2, _080CE6D8 @ =SpriteCallbackDummy2 str r2, [r0] adds r1, r3 ldrb r2, [r1, 0x5] @@ -1074,7 +1074,7 @@ _080CE6C8: .4byte gMonSpritesGfxPtr _080CE6CC: .4byte gMultiuseSpriteTemplate _080CE6D0: .4byte gDummySpriteAffineAnimTable _080CE6D4: .4byte gSprites -_080CE6D8: .4byte nullsub_10 +_080CE6D8: .4byte SpriteCallbackDummy2 _080CE6DC: .4byte sub_80CF53C _080CE6E0: .4byte gTasks _080CE6E4: .4byte gBattle_BG0_X @@ -1962,14 +1962,14 @@ _080CEEA0: bl Free str r6, [r4] bl FreeAllWindowBuffers - ldr r0, _080CEECC @ =gUnknown_300537C + ldr r0, _080CEECC @ =gCB2_AfterEvolution ldr r0, [r0] bl SetMainCallback2 b _080CF528 .align 2, 0 _080CEEC4: .4byte gPaletteFade _080CEEC8: .4byte gUnknown_2039A20 -_080CEECC: .4byte gUnknown_300537C +_080CEECC: .4byte gCB2_AfterEvolution _080CEED0: ldr r0, _080CEF04 @ =gBattleCommunication ldrb r1, [r0, 0x2] @@ -3252,14 +3252,14 @@ _080CF9E0: negs r0, r0 ands r0, r1 strb r0, [r2] - ldr r0, _080CFA10 @ =gUnknown_300537C + ldr r0, _080CFA10 @ =gCB2_AfterEvolution ldr r0, [r0] bl SetMainCallback2 b _080D003A .align 2, 0 _080CFA08: .4byte gUnknown_2039A20 _080CFA0C: .4byte gTextFlags -_080CFA10: .4byte gUnknown_300537C +_080CFA10: .4byte gCB2_AfterEvolution _080CFA14: ldr r0, _080CFA60 @ =gBattleCommunication ldrb r1, [r0, 0x2] diff --git a/asm/field_control_avatar.s b/asm/field_control_avatar.s index c1825ba58..46587dc52 100644 --- a/asm/field_control_avatar.s +++ b/asm/field_control_avatar.s @@ -364,11 +364,11 @@ sub_806CAC8: @ 806CAC8 beq _0806CB74 movs r0, 0x5 bl IncrementGameStat - bl sub_8146CA4 - bl sub_815D8C8 - bl sub_80CC918 - bl sub_80CB054 - bl sub_80CCFBC + bl MENewsJisanStepCounter + bl IncrementRenewableHiddenItemStepCounter + bl RunMassageCooldownStepCounter + bl IncrementResortGorgeousStepCounter + bl BirthIslandDeoxysStepCounter mov r0, sp adds r1, r4, 0 adds r2, r6, 0 @@ -1100,11 +1100,11 @@ sub_806D0E4: @ 806D0E4 ldr r0, [r5, 0x8] cmp r0, 0 bne _0806D120 - ldr r0, _0806D11C @ =gUnknown_81C555B + ldr r0, _0806D11C @ =EventScript_1C555B b _0806D1E6 .align 2, 0 _0806D118: .4byte gMapHeader -_0806D11C: .4byte gUnknown_81C555B +_0806D11C: .4byte EventScript_1C555B _0806D120: adds r0, r7, 0 adds r1, r6, 0 @@ -1330,10 +1330,10 @@ _0806D2F0: lsrs r0, 24 cmp r0, 0x1 bne _0806D308 - ldr r0, _0806D304 @ =gUnknown_81C549C + ldr r0, _0806D304 @ =EventScript_1C549C b _0806D53E .align 2, 0 -_0806D304: .4byte gUnknown_81C549C +_0806D304: .4byte EventScript_1C549C _0806D308: adds r0, r4, 0 adds r1, r5, 0 @@ -1641,11 +1641,11 @@ _0806D570: lsrs r0, 24 cmp r0, 0x1 bne _0806D5A4 - ldr r0, _0806D5A0 @ =gUnknown_81A6AC8 + ldr r0, _0806D5A0 @ =EventScript_1A6AC8 b _0806D5E2 .align 2, 0 _0806D59C: .4byte 0x00000824 -_0806D5A0: .4byte gUnknown_81A6AC8 +_0806D5A0: .4byte EventScript_1A6AC8 _0806D5A4: adds r0, r4, 0 bl MetatileBehavior_IsWaterfall @@ -1670,10 +1670,10 @@ _0806D5A4: _0806D5D0: .4byte 0x00000826 _0806D5D4: .4byte gUnknown_81BE2B7 _0806D5D8: - ldr r0, _0806D5DC @ =gUnknown_81BE2FF + ldr r0, _0806D5DC @ =EventScript_81BE2FF b _0806D5E2 .align 2, 0 -_0806D5DC: .4byte gUnknown_81BE2FF +_0806D5DC: .4byte EventScript_81BE2FF _0806D5E0: movs r0, 0 _0806D5E2: @@ -1822,11 +1822,11 @@ _0806D6EC: lsrs r0, 24 cmp r0, 0x1 bne _0806D704 - ldr r0, _0806D700 @ =gUnknown_81A8DFD + ldr r0, _0806D700 @ =EventScript_PoisonWhiteOut bl ScriptContext1_SetupScript b _0806D730 .align 2, 0 -_0806D700: .4byte gUnknown_81A8DFD +_0806D700: .4byte EventScript_PoisonWhiteOut _0806D704: bl ShouldEggHatch lsls r0, 24 @@ -1834,11 +1834,11 @@ _0806D704: beq _0806D720 movs r0, 0xD bl IncrementGameStat - ldr r0, _0806D71C @ =gUnknown_81BF546 + ldr r0, _0806D71C @ =EventScript_81BF546 bl ScriptContext1_SetupScript b _0806D730 .align 2, 0 -_0806D71C: .4byte gUnknown_81BF546 +_0806D71C: .4byte EventScript_81BF546 _0806D720: bl SafariZoneTakeStep lsls r0, 24 @@ -1953,13 +1953,13 @@ _0806D7E2: bx r1 thumb_func_end DoPoisonFieldEffect_step - thumb_func_start sub_806D7E8 -sub_806D7E8: @ 806D7E8 + thumb_func_start RestartWildEncounterImmunitySteps +RestartWildEncounterImmunitySteps: @ 806D7E8 push {lr} bl sub_80832D4 pop {r0} bx r0 - thumb_func_end sub_806D7E8 + thumb_func_end RestartWildEncounterImmunitySteps thumb_func_start is_it_battle_time_3 is_it_battle_time_3: @ 806D7F4 @@ -2150,13 +2150,13 @@ _0806D950: ldr r0, [r0, 0x8] cmp r0, 0 bne _0806D958 - ldr r0, _0806D960 @ =gUnknown_81C555B + ldr r0, _0806D960 @ =EventScript_1C555B _0806D958: pop {r4} pop {r1} bx r1 .align 2, 0 -_0806D960: .4byte gUnknown_81C555B +_0806D960: .4byte EventScript_1C555B thumb_func_end sub_806D928 thumb_func_start mapheader_run_first_tag2_script_list_match_conditionally @@ -2332,12 +2332,12 @@ _0806DAC4: cmp r0, 0x1 bne _0806DAE4 bl ResetInitialPlayerAvatarState - ldr r0, _0806DAE0 @ =gUnknown_81C1361 + ldr r0, _0806DAE0 @ =EventScript_1C1361 bl ScriptContext1_SetupScript movs r0, 0x1 b _0806DAEE .align 2, 0 -_0806DAE0: .4byte gUnknown_81C1361 +_0806DAE0: .4byte EventScript_1C1361 _0806DAE4: bl DoWarp movs r0, 0x1 diff --git a/asm/field_effect.s b/asm/field_effect.s index 9919ccc24..a8542fcc3 100644 --- a/asm/field_effect.s +++ b/asm/field_effect.s @@ -1989,7 +1989,7 @@ mapldr_080842E8: @ 80842E8 movs r1, 0 bl CreateTask bl ScriptContext2_Enable - bl player_bitmagic + bl FreezeEventObjects ldr r1, _0808430C @ =gFieldCallback movs r0, 0 str r0, [r1] @@ -2092,7 +2092,7 @@ mapldr_08084390: @ 8084390 bl FieldObjectTurn _080843D2: bl ScriptContext2_Enable - bl player_bitmagic + bl FreezeEventObjects ldr r1, _080843F4 @ =gFieldCallback movs r0, 0 str r0, [r1] @@ -2158,7 +2158,7 @@ sub_8084454: @ 8084454 bl pal_fill_for_maplights bl sub_8111CF0 bl ScriptContext2_Enable - bl player_bitmagic + bl FreezeEventObjects ldr r0, _0808447C @ =sub_8084484 movs r1, 0 bl CreateTask @@ -2626,7 +2626,7 @@ _080847F4: .4byte gUnknown_83CC050 sub_80847F8: @ 80847F8 push {r4,lr} adds r4, r0, 0 - bl player_bitmagic + bl FreezeEventObjects bl CameraObjectReset2 ldrb r0, [r4, 0xA] bl sub_809C448 @@ -2889,7 +2889,7 @@ sub_80849F4: @ 80849F4 bl pal_fill_for_maplights bl sub_8111CF0 bl ScriptContext2_Enable - bl player_bitmagic + bl FreezeEventObjects ldr r0, _08084A1C @ =sub_8084A24 movs r1, 0 bl CreateTask @@ -3630,7 +3630,7 @@ sub_8084FA0: @ 8084FA0 push {r4,r5,lr} adds r4, r0, 0 adds r5, r1, 0 - bl player_bitmagic + bl FreezeEventObjects bl CameraObjectReset2 movs r0, 0 bl SetCameraPanningCallback @@ -3977,7 +3977,7 @@ sub_8085244: @ 8085244 adds r5, r0, 0 adds r4, r1, 0 bl CameraObjectReset2 - bl player_bitmagic + bl FreezeEventObjects ldr r1, _08085270 @ =gPlayerAvatar movs r0, 0x1 strb r0, [r1, 0x6] @@ -4239,7 +4239,7 @@ sub_8085440: @ 8085440 push {r4,r5,lr} adds r5, r0, 0 adds r4, r1, 0 - bl player_bitmagic + bl FreezeEventObjects bl CameraObjectReset2 ldr r1, _0808546C @ =gPlayerAvatar movs r0, 0x1 @@ -4482,7 +4482,7 @@ _0808561C: sub_8085620: @ 8085620 push {lr} bl ScriptContext2_Enable - bl player_bitmagic + bl FreezeEventObjects ldr r0, _08085638 @ =sub_808563C movs r1, 0x50 bl CreateTask @@ -4969,7 +4969,7 @@ sub_80859D4: @ 80859D4 bl pal_fill_for_maplights bl sub_8111CF0 bl ScriptContext2_Enable - bl player_bitmagic + bl FreezeEventObjects ldr r1, _08085A14 @ =gFieldCallback movs r0, 0 str r0, [r1] @@ -5198,7 +5198,7 @@ sub_8085BA8: @ 8085BA8 push {r4,lr} adds r4, r0, 0 bl ScriptContext2_Enable - bl player_bitmagic + bl FreezeEventObjects bl CameraObjectReset2 bl GetPlayerFacingDirection lsls r0, 24 @@ -5435,7 +5435,7 @@ mapldr_08085D88: @ 8085D88 bl pal_fill_for_maplights bl sub_8111CF0 bl ScriptContext2_Enable - bl player_bitmagic + bl FreezeEventObjects ldr r1, _08085DCC @ =gFieldCallback movs r0, 0 str r0, [r1] @@ -7000,7 +7000,7 @@ sub_80869C0: @ 80869C0 push {r6} adds r4, r0, 0 bl ScriptContext2_Enable - bl player_bitmagic + bl FreezeEventObjects ldr r5, _08086A18 @ =gPlayerAvatar movs r0, 0x1 strb r0, [r5, 0x6] @@ -7276,7 +7276,7 @@ sub_8086C00: @ 8086C00 push {r4,lr} adds r4, r0, 0 bl ScriptContext2_Enable - bl player_bitmagic + bl FreezeEventObjects ldr r1, _08086C20 @ =gPlayerAvatar movs r0, 0x1 strb r0, [r1, 0x6] diff --git a/asm/field_effect_helpers.s b/asm/field_effect_helpers.s index be79c3b21..7003a10f2 100644 --- a/asm/field_effect_helpers.s +++ b/asm/field_effect_helpers.s @@ -134,13 +134,13 @@ npc_pal_op: @ 80DAE54 cmp r0, 0 bne _080DAEB0 ldrb r0, [r5, 0x1F] - bl MetatileBehavior_ReturnFalse_7 + bl MetatileBehavior_GetBridgeType lsls r0, 24 lsrs r0, 24 cmp r0, 0 bne _080DAE96 ldrb r0, [r5, 0x1E] - bl MetatileBehavior_ReturnFalse_7 + bl MetatileBehavior_GetBridgeType lsls r0, 24 lsrs r0, 24 cmp r0, 0 @@ -1251,7 +1251,7 @@ _080DB6E8: cmp r0, 0 bne _080DB73C adds r0, r4, 0 - bl MetatileBehavior_ReturnFalse_3 + bl MetatileBehavior_IsLongGrass lsls r0, 24 cmp r0, 0 beq _080DB73C diff --git a/asm/field_ground_effect.s b/asm/field_ground_effect.s index 56af66346..b5ec3a622 100644 --- a/asm/field_ground_effect.s +++ b/asm/field_ground_effect.s @@ -224,7 +224,7 @@ GetGroundEffectFlags_LongGrassOnSpawn: @ 8067CE8 push {r4,lr} adds r4, r1, 0 ldrb r0, [r0, 0x1E] - bl MetatileBehavior_ReturnFalse_3 + bl MetatileBehavior_IsLongGrass lsls r0, 24 cmp r0, 0 beq _08067D00 @@ -243,7 +243,7 @@ GetGroundEffectFlags_LongGrassOnBeginStep: @ 8067D08 push {r4,lr} adds r4, r1, 0 ldrb r0, [r0, 0x1E] - bl MetatileBehavior_ReturnFalse_3 + bl MetatileBehavior_IsLongGrass lsls r0, 24 cmp r0, 0 beq _08067D20 @@ -838,12 +838,12 @@ FieldObjectSetSpriteOamTableForLongGrass: @ 8068154 cmp r0, 0 blt _080681A8 ldrb r0, [r5, 0x1E] - bl MetatileBehavior_ReturnFalse_3 + bl MetatileBehavior_IsLongGrass lsls r0, 24 cmp r0, 0 beq _080681A8 ldrb r0, [r5, 0x1F] - bl MetatileBehavior_ReturnFalse_3 + bl MetatileBehavior_IsLongGrass lsls r0, 24 cmp r0, 0 beq _080681A8 diff --git a/asm/field_map_obj.s b/asm/field_map_obj.s index 2b16f5e1f..8787ff647 100644 --- a/asm/field_map_obj.s +++ b/asm/field_map_obj.s @@ -2774,14 +2774,14 @@ _0805F2E0: bls _0805F2E6 movs r1, 0x10 _0805F2E6: - ldr r0, _0805F2F4 @ =gUnknown_839FDB0 + ldr r0, _0805F2F4 @ =gMapObjectGraphicsInfoPointers lsls r1, 2 adds r1, r0 ldr r0, [r1] pop {r1} bx r1 .align 2, 0 -_0805F2F4: .4byte gUnknown_839FDB0 +_0805F2F4: .4byte gMapObjectGraphicsInfoPointers thumb_func_end GetFieldObjectGraphicsInfo thumb_func_start FieldObjectHandleDynamicGraphicsId @@ -12214,8 +12214,8 @@ _0806360C: bx r1 thumb_func_end sub_80635DC - thumb_func_start npc_set_running_behaviour_etc -npc_set_running_behaviour_etc: @ 8063610 + thumb_func_start SetTrainerMovementType +SetTrainerMovementType: @ 8063610 push {r4,lr} mov r12, r0 lsls r1, 24 @@ -12253,10 +12253,10 @@ npc_set_running_behaviour_etc: @ 8063610 .align 2, 0 _08063654: .4byte gSprites _08063658: .4byte gUnknown_839FBC8 - thumb_func_end npc_set_running_behaviour_etc + thumb_func_end SetTrainerMovementType - thumb_func_start npc_running_behaviour_by_direction -npc_running_behaviour_by_direction: @ 806365C + thumb_func_start GetTrainerFacingDirectionMovementType +GetTrainerFacingDirectionMovementType: @ 806365C lsls r0, 24 lsrs r0, 24 ldr r1, _08063668 @ =gUnknown_83A649C @@ -12265,7 +12265,7 @@ npc_running_behaviour_by_direction: @ 806365C bx lr .align 2, 0 _08063668: .4byte gUnknown_83A649C - thumb_func_end npc_running_behaviour_by_direction + thumb_func_end GetTrainerFacingDirectionMovementType thumb_func_start npc_block_way__next_tile npc_block_way__next_tile: @ 806366C diff --git a/asm/field_player_avatar.s b/asm/field_player_avatar.s index c753fb948..5e7f64670 100644 --- a/asm/field_player_avatar.s +++ b/asm/field_player_avatar.s @@ -3964,7 +3964,7 @@ sub_805D0F8: @ 805D0F8 lsls r4, 24 lsrs r4, 24 bl ScriptContext2_Enable - bl player_bitmagic + bl FreezeEventObjects bl sav1_reset_battle_music_maybe bl Overworld_ChangeMusicToDefault ldr r2, _0805D148 @ =gPlayerAvatar @@ -4005,7 +4005,7 @@ sub_805D154: @ 805D154 lsls r4, 24 lsrs r4, 24 bl ScriptContext2_Enable - bl player_bitmagic + bl FreezeEventObjects ldr r2, _0805D19C @ =gPlayerAvatar ldrb r1, [r2] movs r0, 0xF7 diff --git a/asm/field_screen_effect.s b/asm/field_screen_effect.s index 079abee2c..8d07f3779 100644 --- a/asm/field_screen_effect.s +++ b/asm/field_screen_effect.s @@ -306,7 +306,7 @@ sub_807F028: @ 807F028 lsls r0, 24 lsrs r0, 24 adds r4, r0, 0 - bl sav1_get_flash_used_on_map + bl Overworld_GetFlashLevel lsls r0, 24 lsrs r0, 24 movs r5, 0 @@ -985,25 +985,25 @@ _0807F5B6: bne _0807F5E4 adds r0, r6, 0 bl DestroyTask - ldr r0, _0807F5CC @ =gUnknown_81A8D97 + ldr r0, _0807F5CC @ =EventScript_AfterWhiteOutHeal bl ScriptContext1_SetupScript b _0807F5E4 .align 2, 0 -_0807F5CC: .4byte gUnknown_81A8D97 +_0807F5CC: .4byte EventScript_AfterWhiteOutHeal _0807F5D0: bl sub_807E418 cmp r0, 0x1 bne _0807F5E4 adds r0, r6, 0 bl DestroyTask - ldr r0, _0807F5EC @ =gUnknown_81A8DD8 + ldr r0, _0807F5EC @ =EventScript_MomHeal bl ScriptContext1_SetupScript _0807F5E4: pop {r4-r7} pop {r0} bx r0 .align 2, 0 -_0807F5EC: .4byte gUnknown_81A8DD8 +_0807F5EC: .4byte EventScript_MomHeal thumb_func_end sub_807F45C thumb_func_start sub_807F5F0 diff --git a/asm/field_specials.s b/asm/field_specials.s deleted file mode 100644 index c0294fcac..000000000 --- a/asm/field_specials.s +++ /dev/null @@ -1,5729 +0,0 @@ - .include "asm/macros.inc" - .include "constants/constants.inc" - - .syntax unified - - .text - - thumb_func_start sub_80CA618 -sub_80CA618: @ 80CA618 - push {lr} - bl sub_8112364 - ldr r0, _080CA62C @ =CB2_ShowDiploma - bl SetMainCallback2 - bl ScriptContext2_Enable - pop {r0} - bx r0 - .align 2, 0 -_080CA62C: .4byte CB2_ShowDiploma - thumb_func_end sub_80CA618 - - thumb_func_start sub_80CA630 -sub_80CA630: @ 80CA630 - push {r4,lr} - ldr r0, _080CA65C @ =gPlayerAvatar - ldrb r1, [r0] - movs r0, 0x1 - ands r0, r1 - cmp r0, 0 - beq _080CA644 - movs r0, 0x2 - bl SetPlayerAvatarTransitionFlags -_080CA644: - movs r4, 0x8D - lsls r4, 1 - adds r0, r4, 0 - bl Overworld_SetSavedMusic - adds r0, r4, 0 - bl Overworld_ChangeMusicTo - pop {r4} - pop {r0} - bx r0 - .align 2, 0 -_080CA65C: .4byte gPlayerAvatar - thumb_func_end sub_80CA630 - - thumb_func_start nullsub_74 -nullsub_74: @ 80CA660 - bx lr - thumb_func_end nullsub_74 - - thumb_func_start sub_80CA664 -sub_80CA664: @ 80CA664 - push {lr} - movs r0, 0x4 - bl TestPlayerAvatarFlags - lsls r0, 24 - cmp r0, 0 - beq _080CA676 - movs r0, 0x1 - b _080CA688 -_080CA676: - movs r0, 0x2 - bl TestPlayerAvatarFlags - lsls r0, 24 - cmp r0, 0 - bne _080CA686 - movs r0, 0 - b _080CA688 -_080CA686: - movs r0, 0x2 -_080CA688: - pop {r1} - bx r1 - thumb_func_end sub_80CA664 - - thumb_func_start sub_80CA68C -sub_80CA68C: @ 80CA68C - push {lr} - ldr r0, _080CA698 @ =gStringVar4 - bl ShowFieldMessage - pop {r0} - bx r0 - .align 2, 0 -_080CA698: .4byte gStringVar4 - thumb_func_end sub_80CA68C - - thumb_func_start sub_80CA69C -sub_80CA69C: @ 80CA69C - ldr r1, _080CA6B0 @ =gSpecialVar_0x8004 - ldr r0, _080CA6B4 @ =gSaveBlock1Ptr - ldr r2, [r0] - ldrh r0, [r2] - strh r0, [r1] - ldr r1, _080CA6B8 @ =gSpecialVar_0x8005 - ldrh r0, [r2, 0x2] - strh r0, [r1] - bx lr - .align 2, 0 -_080CA6B0: .4byte gSpecialVar_0x8004 -_080CA6B4: .4byte gSaveBlock1Ptr -_080CA6B8: .4byte gSpecialVar_0x8005 - thumb_func_end sub_80CA69C - - thumb_func_start sub_80CA6BC -sub_80CA6BC: @ 80CA6BC - push {lr} - ldr r0, _080CA6D8 @ =gSaveBlock2Ptr - ldr r0, [r0] - ldrb r1, [r0, 0xB] - lsls r1, 8 - ldrb r0, [r0, 0xA] - orrs r0, r1 - movs r1, 0xA - bl __umodsi3 - lsls r0, 24 - lsrs r0, 24 - pop {r1} - bx r1 - .align 2, 0 -_080CA6D8: .4byte gSaveBlock2Ptr - thumb_func_end sub_80CA6BC - - thumb_func_start sub_80CA6DC -sub_80CA6DC: @ 80CA6DC - push {lr} - ldr r0, _080CA6F4 @ =gSaveBlock2Ptr - ldr r0, [r0] - ldrb r0, [r0, 0x8] - cmp r0, 0 - bne _080CA700 - ldr r0, _080CA6F8 @ =gStringVar1 - ldr r1, _080CA6FC @ =gUnknown_8417FBB - bl StringCopy - b _080CA708 - .align 2, 0 -_080CA6F4: .4byte gSaveBlock2Ptr -_080CA6F8: .4byte gStringVar1 -_080CA6FC: .4byte gUnknown_8417FBB -_080CA700: - ldr r0, _080CA70C @ =gStringVar1 - ldr r1, _080CA710 @ =gUnknown_8417FC3 - bl StringCopy -_080CA708: - pop {r0} - bx r0 - .align 2, 0 -_080CA70C: .4byte gStringVar1 -_080CA710: .4byte gUnknown_8417FC3 - thumb_func_end sub_80CA6DC - - thumb_func_start sub_80CA714 -sub_80CA714: @ 80CA714 - push {lr} - ldr r0, _080CA72C @ =gSaveBlock2Ptr - ldr r0, [r0] - ldrb r0, [r0, 0x8] - cmp r0, 0 - bne _080CA738 - ldr r0, _080CA730 @ =gStringVar1 - ldr r1, _080CA734 @ =gUnknown_8417FD0 - bl StringCopy - b _080CA740 - .align 2, 0 -_080CA72C: .4byte gSaveBlock2Ptr -_080CA730: .4byte gStringVar1 -_080CA734: .4byte gUnknown_8417FD0 -_080CA738: - ldr r0, _080CA744 @ =gStringVar1 - ldr r1, _080CA748 @ =gUnknown_8417FCC - bl StringCopy -_080CA740: - pop {r0} - bx r0 - .align 2, 0 -_080CA744: .4byte gStringVar1 -_080CA748: .4byte gUnknown_8417FCC - thumb_func_end sub_80CA714 - - thumb_func_start sub_80CA74C -sub_80CA74C: @ 80CA74C - ldr r0, _080CA754 @ =gBattleOutcome - ldrb r0, [r0] - bx lr - .align 2, 0 -_080CA754: .4byte gBattleOutcome - thumb_func_end sub_80CA74C - - thumb_func_start Special_SetHiddenItemFlag -Special_SetHiddenItemFlag: @ 80CA758 - push {lr} - ldr r0, _080CA768 @ =gSpecialVar_0x8004 - ldrh r0, [r0] - bl FlagSet - pop {r0} - bx r0 - .align 2, 0 -_080CA768: .4byte gSpecialVar_0x8004 - thumb_func_end Special_SetHiddenItemFlag - - thumb_func_start sub_80CA76C -sub_80CA76C: @ 80CA76C - push {r4,lr} - bl GetLeadMonIndex - lsls r0, 24 - lsrs r0, 24 - movs r1, 0x64 - muls r1, r0 - ldr r0, _080CA790 @ =gPlayerParty - adds r4, r1, r0 - adds r0, r4, 0 - movs r1, 0x20 - bl GetMonData - cmp r0, 0xFF - bne _080CA794 - movs r0, 0x6 - b _080CA7E6 - .align 2, 0 -_080CA790: .4byte gPlayerParty -_080CA794: - adds r0, r4, 0 - movs r1, 0x20 - bl GetMonData - cmp r0, 0xC7 - bls _080CA7A4 - movs r0, 0x5 - b _080CA7E6 -_080CA7A4: - adds r0, r4, 0 - movs r1, 0x20 - bl GetMonData - cmp r0, 0x95 - bls _080CA7B4 - movs r0, 0x4 - b _080CA7E6 -_080CA7B4: - adds r0, r4, 0 - movs r1, 0x20 - bl GetMonData - cmp r0, 0x63 - bls _080CA7C4 - movs r0, 0x3 - b _080CA7E6 -_080CA7C4: - adds r0, r4, 0 - movs r1, 0x20 - bl GetMonData - cmp r0, 0x31 - bls _080CA7D4 - movs r0, 0x2 - b _080CA7E6 -_080CA7D4: - adds r0, r4, 0 - movs r1, 0x20 - bl GetMonData - cmp r0, 0 - bne _080CA7E4 - movs r0, 0 - b _080CA7E6 -_080CA7E4: - movs r0, 0x1 -_080CA7E6: - pop {r4} - pop {r1} - bx r1 - thumb_func_end sub_80CA76C - - thumb_func_start sub_80CA7EC -sub_80CA7EC: @ 80CA7EC - push {lr} - bl sub_8112364 - ldr r1, _080CA800 @ =CB2_ReturnToFieldContinueScriptPlayMapMusic - movs r0, 0x1 - bl sub_80BFF50 - pop {r0} - bx r0 - .align 2, 0 -_080CA800: .4byte CB2_ReturnToFieldContinueScriptPlayMapMusic - thumb_func_end sub_80CA7EC - - thumb_func_start sub_80CA804 -sub_80CA804: @ 80CA804 - push {r4-r6,lr} - movs r5, 0 - ldr r6, _080CA850 @ =gBaseStats -_080CA80A: - movs r0, 0x64 - adds r1, r5, 0 - muls r1, r0 - ldr r0, _080CA854 @ =gPlayerParty - adds r4, r1, r0 - adds r0, r4, 0 - movs r1, 0x5 - bl GetMonData - cmp r0, 0 - beq _080CA858 - adds r0, r4, 0 - movs r1, 0x2D - bl GetMonData - cmp r0, 0 - bne _080CA858 - adds r0, r4, 0 - movs r1, 0xB - bl GetMonData - lsls r0, 16 - lsrs r0, 16 - lsls r1, r0, 3 - subs r1, r0 - lsls r1, 2 - adds r1, r6 - ldrb r0, [r1, 0x6] - cmp r0, 0xC - beq _080CA84C - ldrb r0, [r1, 0x7] - cmp r0, 0xC - bne _080CA858 -_080CA84C: - movs r0, 0x1 - b _080CA864 - .align 2, 0 -_080CA850: .4byte gBaseStats -_080CA854: .4byte gPlayerParty -_080CA858: - adds r0, r5, 0x1 - lsls r0, 24 - lsrs r5, r0, 24 - cmp r5, 0x5 - bls _080CA80A - movs r0, 0 -_080CA864: - pop {r4-r6} - pop {r1} - bx r1 - thumb_func_end sub_80CA804 - - thumb_func_start sub_80CA86C -sub_80CA86C: @ 80CA86C - push {r4,lr} - ldr r4, _080CA8A0 @ =sub_80CA8A8 - adds r0, r4, 0 - bl FuncIsActiveTask - lsls r0, 24 - lsrs r0, 24 - cmp r0, 0x1 - beq _080CA89A - adds r0, r4, 0 - movs r1, 0x8 - bl CreateTask - lsls r0, 24 - lsrs r0, 24 - ldr r2, _080CA8A4 @ =gTasks - lsls r1, r0, 2 - adds r1, r0 - lsls r1, 3 - adds r1, r2 - movs r0, 0 - strh r0, [r1, 0x8] - strh r0, [r1, 0xA] -_080CA89A: - pop {r4} - pop {r0} - bx r0 - .align 2, 0 -_080CA8A0: .4byte sub_80CA8A8 -_080CA8A4: .4byte gTasks - thumb_func_end sub_80CA86C - - thumb_func_start sub_80CA8A8 -sub_80CA8A8: @ 80CA8A8 - push {r4,r5,lr} - lsls r0, 24 - lsrs r5, r0, 24 - lsls r0, r5, 2 - adds r0, r5 - lsls r0, 3 - ldr r1, _080CA8F4 @ =gTasks+0x8 - adds r4, r0, r1 - movs r1, 0x2 - ldrsh r0, [r4, r1] - cmp r0, 0x6 - bne _080CA8E6 - ldrh r1, [r4] - movs r0, 0x1 - ands r0, r1 - bl sub_80CA8F8 - bl DrawWholeMapView - movs r0, 0 - strh r0, [r4, 0x2] - ldrh r0, [r4] - adds r0, 0x1 - strh r0, [r4] - lsls r0, 16 - asrs r0, 16 - cmp r0, 0x5 - bne _080CA8E6 - adds r0, r5, 0 - bl DestroyTask -_080CA8E6: - ldrh r0, [r4, 0x2] - adds r0, 0x1 - strh r0, [r4, 0x2] - pop {r4,r5} - pop {r0} - bx r0 - .align 2, 0 -_080CA8F4: .4byte gTasks+0x8 - thumb_func_end sub_80CA8A8 - - thumb_func_start sub_80CA8F8 -sub_80CA8F8: @ 80CA8F8 - push {r4-r7,lr} - lsls r0, 16 - lsrs r6, r0, 16 - movs r4, 0 - movs r7, 0 - movs r5, 0 - bl GetPlayerFacingDirection - lsls r0, 24 - lsrs r0, 24 - adds r1, r0, 0 - cmp r0, 0x3 - beq _080CA926 - cmp r0, 0x3 - bgt _080CA91C - cmp r0, 0x2 - beq _080CA922 - b _080CA92E -_080CA91C: - cmp r1, 0x4 - beq _080CA92A - b _080CA92E -_080CA922: - movs r7, 0 - b _080CA92C -_080CA926: - movs r7, 0xFF - b _080CA92C -_080CA92A: - movs r7, 0x1 -_080CA92C: - movs r5, 0xFF -_080CA92E: - cmp r6, 0 - beq _080CA954 - ldr r0, _080CA940 @ =gSpecialVar_0x8004 - ldrh r0, [r0] - cmp r0, 0 - bne _080CA944 - movs r4, 0x62 - b _080CA96E - .align 2, 0 -_080CA940: .4byte gSpecialVar_0x8004 -_080CA944: - cmp r0, 0x1 - beq _080CA94C - cmp r0, 0x2 - bne _080CA96E -_080CA94C: - ldr r4, _080CA950 @ =0x0000028f - b _080CA96E - .align 2, 0 -_080CA950: .4byte 0x0000028f -_080CA954: - ldr r0, _080CA960 @ =gSpecialVar_0x8004 - ldrh r0, [r0] - cmp r0, 0 - bne _080CA964 - movs r4, 0x63 - b _080CA96E - .align 2, 0 -_080CA960: .4byte gSpecialVar_0x8004 -_080CA964: - cmp r0, 0x1 - beq _080CA96C - cmp r0, 0x2 - bne _080CA96E -_080CA96C: - ldr r4, _080CA9A0 @ =0x0000028a -_080CA96E: - ldr r0, _080CA9A4 @ =gSaveBlock1Ptr - ldr r2, [r0] - movs r1, 0 - ldrsh r0, [r2, r1] - lsls r1, r7, 24 - asrs r1, 24 - adds r0, r1 - adds r0, 0x7 - movs r3, 0x2 - ldrsh r1, [r2, r3] - lsls r2, r5, 24 - asrs r2, 24 - adds r1, r2 - adds r1, 0x7 - movs r3, 0xC0 - lsls r3, 4 - adds r2, r3, 0 - orrs r4, r2 - adds r2, r4, 0 - bl MapGridSetMetatileIdAt - pop {r4-r7} - pop {r0} - bx r0 - .align 2, 0 -_080CA9A0: .4byte 0x0000028a -_080CA9A4: .4byte gSaveBlock1Ptr - thumb_func_end sub_80CA8F8 - - thumb_func_start sub_80CA9A8 -sub_80CA9A8: @ 80CA9A8 - push {r4-r6,lr} - movs r4, 0 - movs r6, 0 - movs r5, 0 - bl GetPlayerFacingDirection - lsls r0, 24 - lsrs r0, 24 - adds r1, r0, 0 - cmp r0, 0x3 - beq _080CA9D2 - cmp r0, 0x3 - bgt _080CA9C8 - cmp r0, 0x2 - beq _080CA9CE - b _080CA9DA -_080CA9C8: - cmp r1, 0x4 - beq _080CA9D6 - b _080CA9DA -_080CA9CE: - movs r6, 0 - b _080CA9D8 -_080CA9D2: - movs r6, 0xFF - b _080CA9D8 -_080CA9D6: - movs r6, 0x1 -_080CA9D8: - movs r5, 0xFF -_080CA9DA: - ldr r0, _080CA9E8 @ =gSpecialVar_0x8004 - ldrh r0, [r0] - cmp r0, 0 - bne _080CA9EC - movs r4, 0x62 - b _080CA9F6 - .align 2, 0 -_080CA9E8: .4byte gSpecialVar_0x8004 -_080CA9EC: - cmp r0, 0x1 - beq _080CA9F4 - cmp r0, 0x2 - bne _080CA9F6 -_080CA9F4: - ldr r4, _080CAA2C @ =0x0000028f -_080CA9F6: - ldr r0, _080CAA30 @ =gSaveBlock1Ptr - ldr r2, [r0] - movs r1, 0 - ldrsh r0, [r2, r1] - lsls r1, r6, 24 - asrs r1, 24 - adds r0, r1 - adds r0, 0x7 - movs r3, 0x2 - ldrsh r1, [r2, r3] - lsls r2, r5, 24 - asrs r2, 24 - adds r1, r2 - adds r1, 0x7 - movs r3, 0xC0 - lsls r3, 4 - adds r2, r3, 0 - orrs r4, r2 - adds r2, r4, 0 - bl MapGridSetMetatileIdAt - bl DrawWholeMapView - pop {r4-r6} - pop {r0} - bx r0 - .align 2, 0 -_080CAA2C: .4byte 0x0000028f -_080CAA30: .4byte gSaveBlock1Ptr - thumb_func_end sub_80CA9A8 - - thumb_func_start SpawnScriptFieldObject -SpawnScriptFieldObject: @ 80CAA34 - push {lr} - sub sp, 0x8 - ldr r0, _080CAA80 @ =gSaveBlock1Ptr - ldr r0, [r0] - ldrh r3, [r0] - adds r3, 0x7 - lsls r3, 16 - asrs r3, 16 - ldrh r0, [r0, 0x2] - adds r0, 0x7 - lsls r0, 16 - asrs r0, 16 - str r0, [sp] - movs r0, 0x3 - str r0, [sp, 0x4] - movs r0, 0x12 - movs r1, 0x8 - movs r2, 0x7F - bl SpawnSpecialFieldObjectParameterized - lsls r0, 24 - lsrs r0, 24 - ldr r2, _080CAA84 @ =gMapObjects - lsls r1, r0, 3 - adds r1, r0 - lsls r1, 2 - adds r1, r2 - ldrb r0, [r1, 0x1] - movs r2, 0x20 - orrs r0, r2 - strb r0, [r1, 0x1] - ldrb r0, [r1, 0x4] - bl CameraObjectSetFollowedObjectId - add sp, 0x8 - pop {r0} - bx r0 - .align 2, 0 -_080CAA80: .4byte gSaveBlock1Ptr -_080CAA84: .4byte gMapObjects - thumb_func_end SpawnScriptFieldObject - - thumb_func_start RemoveScriptFieldObject -RemoveScriptFieldObject: @ 80CAA88 - push {lr} - bl GetPlayerAvatarObjectId - lsls r0, 24 - lsrs r0, 24 - bl CameraObjectSetFollowedObjectId - ldr r0, _080CAAA8 @ =gSaveBlock1Ptr - ldr r0, [r0] - ldrb r1, [r0, 0x5] - ldrb r2, [r0, 0x4] - movs r0, 0x7F - bl RemoveFieldObjectByLocalIdAndMap - pop {r0} - bx r0 - .align 2, 0 -_080CAAA8: .4byte gSaveBlock1Ptr - thumb_func_end RemoveScriptFieldObject - - thumb_func_start sub_80CAAAC -sub_80CAAAC: @ 80CAAAC - push {lr} - ldr r0, _080CAAB8 @ =gStringVar1 - bl sub_80E7460 - pop {r0} - bx r0 - .align 2, 0 -_080CAAB8: .4byte gStringVar1 - thumb_func_end sub_80CAAAC - - thumb_func_start sub_80CAABC -sub_80CAABC: @ 80CAABC - push {lr} - bl Random - lsls r0, 16 - lsrs r0, 16 - movs r1, 0x16 - bl __umodsi3 - lsls r0, 16 - lsrs r0, 16 - ldr r1, _080CAADC @ =gUnknown_83F5B1A - adds r0, r1 - ldrb r0, [r0] - pop {r1} - bx r1 - .align 2, 0 -_080CAADC: .4byte gUnknown_83F5B1A - thumb_func_end sub_80CAABC - - thumb_func_start LeadMonHasEffortRibbon -LeadMonHasEffortRibbon: @ 80CAAE0 - push {lr} - bl GetLeadMonIndex - lsls r0, 24 - lsrs r0, 24 - movs r1, 0x64 - muls r0, r1 - ldr r1, _080CAB04 @ =gPlayerParty - adds r0, r1 - movs r1, 0x47 - movs r2, 0 - bl GetMonData - lsls r0, 24 - lsrs r0, 24 - pop {r1} - bx r1 - .align 2, 0 -_080CAB04: .4byte gPlayerParty - thumb_func_end LeadMonHasEffortRibbon - - thumb_func_start GivLeadMonEffortRibbon -GivLeadMonEffortRibbon: @ 80CAB08 - push {lr} - sub sp, 0x4 - movs r0, 0x2A - bl IncrementGameStat - ldr r0, _080CAB3C @ =0x0000083b - bl FlagSet - movs r1, 0x1 - mov r0, sp - strb r1, [r0] - bl GetLeadMonIndex - lsls r0, 24 - lsrs r0, 24 - movs r1, 0x64 - muls r0, r1 - ldr r1, _080CAB40 @ =gPlayerParty - adds r0, r1 - movs r1, 0x47 - mov r2, sp - bl SetMonData - add sp, 0x4 - pop {r0} - bx r0 - .align 2, 0 -_080CAB3C: .4byte 0x0000083b -_080CAB40: .4byte gPlayerParty - thumb_func_end GivLeadMonEffortRibbon - - thumb_func_start ScrSpecial_AreLeadMonEVsMaxedOut -ScrSpecial_AreLeadMonEVsMaxedOut: @ 80CAB44 - push {lr} - bl GetLeadMonIndex - lsls r0, 24 - lsrs r0, 24 - movs r1, 0x64 - muls r0, r1 - ldr r1, _080CAB68 @ =gPlayerParty - adds r0, r1 - bl GetMonEVCount - lsls r0, 16 - ldr r1, _080CAB6C @ =0x01fd0000 - cmp r0, r1 - bhi _080CAB70 - movs r0, 0 - b _080CAB72 - .align 2, 0 -_080CAB68: .4byte gPlayerParty -_080CAB6C: .4byte 0x01fd0000 -_080CAB70: - movs r0, 0x1 -_080CAB72: - pop {r1} - bx r1 - thumb_func_end ScrSpecial_AreLeadMonEVsMaxedOut - - thumb_func_start sub_80CAB78 -sub_80CAB78: @ 80CAB78 - push {r4-r6,lr} - ldr r0, _080CABB4 @ =0x00004031 - bl VarGet - lsls r0, 16 - lsrs r0, 16 - bl GetStarterPokemon - lsls r0, 16 - lsrs r6, r0, 16 - bl CalculatePlayerPartyCount - lsls r0, 24 - lsrs r5, r0, 24 - movs r4, 0 - cmp r4, r5 - bcs _080CABC6 -_080CAB9A: - movs r0, 0x64 - muls r0, r4 - ldr r1, _080CABB8 @ =gPlayerParty - adds r0, r1 - movs r1, 0x41 - movs r2, 0 - bl GetMonData - cmp r0, r6 - bne _080CABBC - movs r0, 0x1 - b _080CABC8 - .align 2, 0 -_080CABB4: .4byte 0x00004031 -_080CABB8: .4byte gPlayerParty -_080CABBC: - adds r0, r4, 0x1 - lsls r0, 24 - lsrs r4, r0, 24 - cmp r4, r5 - bcc _080CAB9A -_080CABC6: - movs r0, 0 -_080CABC8: - pop {r4-r6} - pop {r1} - bx r1 - thumb_func_end sub_80CAB78 - - thumb_func_start sub_80CABD0 -sub_80CABD0: @ 80CABD0 - push {r4-r6,lr} - movs r6, 0 -_080CABD4: - movs r4, 0 - lsls r5, r6, 24 -_080CABD8: - lsls r1, r4, 24 - lsrs r1, 24 - lsrs r0, r5, 24 - movs r2, 0xB - bl GetBoxMonDataFromAnyBox - cmp r0, 0 - bne _080CABEC - movs r0, 0x1 - b _080CAC02 -_080CABEC: - adds r0, r4, 0x1 - lsls r0, 16 - lsrs r4, r0, 16 - cmp r4, 0x1D - bls _080CABD8 - adds r0, r6, 0x1 - lsls r0, 16 - lsrs r6, r0, 16 - cmp r6, 0xD - bls _080CABD4 - movs r0, 0 -_080CAC02: - pop {r4-r6} - pop {r1} - bx r1 - thumb_func_end sub_80CABD0 - - thumb_func_start sub_80CAC08 -sub_80CAC08: @ 80CAC08 - push {lr} - ldr r0, _080CAC1C @ =gPlayerParty - movs r1, 0x3F - bl CheckPartyPokerus - lsls r0, 24 - cmp r0, 0 - beq _080CAC20 - movs r0, 0x1 - b _080CAC22 - .align 2, 0 -_080CAC1C: .4byte gPlayerParty -_080CAC20: - movs r0, 0 -_080CAC22: - pop {r1} - bx r1 - thumb_func_end sub_80CAC08 - - thumb_func_start sub_80CAC28 -sub_80CAC28: @ 80CAC28 - push {lr} - ldr r0, _080CAC6C @ =sub_80CAC84 - movs r1, 0x9 - bl CreateTask - lsls r0, 24 - lsrs r0, 24 - ldr r2, _080CAC70 @ =gTasks - lsls r1, r0, 2 - adds r1, r0 - lsls r1, 3 - adds r1, r2 - ldr r0, _080CAC74 @ =gSpecialVar_0x8005 - ldrh r0, [r0] - movs r2, 0 - strh r0, [r1, 0x8] - strh r2, [r1, 0xA] - ldr r0, _080CAC78 @ =gSpecialVar_0x8006 - ldrh r0, [r0] - strh r0, [r1, 0xC] - ldr r0, _080CAC7C @ =gSpecialVar_0x8007 - ldrh r0, [r0] - strh r0, [r1, 0xE] - ldr r0, _080CAC80 @ =gSpecialVar_0x8004 - ldrh r0, [r0] - strh r0, [r1, 0x10] - movs r0, 0 - bl SetCameraPanningCallback - movs r0, 0xCF - bl PlaySE - pop {r0} - bx r0 - .align 2, 0 -_080CAC6C: .4byte sub_80CAC84 -_080CAC70: .4byte gTasks -_080CAC74: .4byte gSpecialVar_0x8005 -_080CAC78: .4byte gSpecialVar_0x8006 -_080CAC7C: .4byte gSpecialVar_0x8007 -_080CAC80: .4byte gSpecialVar_0x8004 - thumb_func_end sub_80CAC28 - - thumb_func_start sub_80CAC84 -sub_80CAC84: @ 80CAC84 - push {r4,r5,lr} - lsls r0, 24 - lsrs r5, r0, 24 - lsls r0, r5, 2 - adds r0, r5 - lsls r0, 3 - ldr r1, _080CACE4 @ =gTasks+0x8 - adds r4, r0, r1 - ldrh r0, [r4, 0x2] - adds r0, 0x1 - strh r0, [r4, 0x2] - movs r1, 0x2 - ldrsh r0, [r4, r1] - movs r2, 0x6 - ldrsh r1, [r4, r2] - bl __modsi3 - cmp r0, 0 - bne _080CACDC - strh r0, [r4, 0x2] - ldrh r0, [r4, 0x4] - subs r0, 0x1 - strh r0, [r4, 0x4] - ldrh r0, [r4] - negs r0, r0 - strh r0, [r4] - ldrh r0, [r4, 0x8] - negs r0, r0 - strh r0, [r4, 0x8] - movs r1, 0 - ldrsh r0, [r4, r1] - movs r2, 0x8 - ldrsh r1, [r4, r2] - bl SetCameraPanning - movs r1, 0x4 - ldrsh r0, [r4, r1] - cmp r0, 0 - bne _080CACDC - adds r0, r5, 0 - bl sub_80CACE8 - bl InstallCameraPanAheadCallback -_080CACDC: - pop {r4,r5} - pop {r0} - bx r0 - .align 2, 0 -_080CACE4: .4byte gTasks+0x8 - thumb_func_end sub_80CAC84 - - thumb_func_start sub_80CACE8 -sub_80CACE8: @ 80CACE8 - push {lr} - lsls r0, 24 - lsrs r0, 24 - bl DestroyTask - bl EnableBothScriptContexts - pop {r0} - bx r0 - thumb_func_end sub_80CACE8 - - thumb_func_start GetLeadMonIndex -GetLeadMonIndex: @ 80CACFC - push {r4-r6,lr} - bl CalculatePlayerPartyCount - lsls r0, 24 - lsrs r6, r0, 24 - movs r5, 0 - cmp r5, r6 - bcs _080CAD4A -_080CAD0C: - movs r0, 0x64 - adds r1, r5, 0 - muls r1, r0 - ldr r0, _080CAD3C @ =gPlayerParty - adds r4, r1, r0 - adds r0, r4, 0 - movs r1, 0x41 - movs r2, 0 - bl GetMonData - movs r1, 0xCE - lsls r1, 1 - cmp r0, r1 - beq _080CAD40 - adds r0, r4, 0 - movs r1, 0x41 - movs r2, 0 - bl GetMonData - cmp r0, 0 - beq _080CAD40 - adds r0, r5, 0 - b _080CAD4C - .align 2, 0 -_080CAD3C: .4byte gPlayerParty -_080CAD40: - adds r0, r5, 0x1 - lsls r0, 24 - lsrs r5, r0, 24 - cmp r5, r6 - bcc _080CAD0C -_080CAD4A: - movs r0, 0 -_080CAD4C: - pop {r4-r6} - pop {r1} - bx r1 - thumb_func_end GetLeadMonIndex - - thumb_func_start sub_80CAD54 -sub_80CAD54: @ 80CAD54 - push {lr} - ldr r0, _080CAD74 @ =gSpecialVar_0x8004 - ldrh r1, [r0] - movs r0, 0x64 - muls r0, r1 - ldr r1, _080CAD78 @ =gPlayerParty - adds r0, r1 - movs r1, 0x41 - movs r2, 0 - bl GetMonData - lsls r0, 16 - lsrs r0, 16 - pop {r1} - bx r1 - .align 2, 0 -_080CAD74: .4byte gSpecialVar_0x8004 -_080CAD78: .4byte gPlayerParty - thumb_func_end sub_80CAD54 - - thumb_func_start sub_80CAD7C -sub_80CAD7C: @ 80CAD7C - push {r4,lr} - ldr r0, _080CADA8 @ =gSpecialVar_0x8004 - ldrh r1, [r0] - movs r0, 0x64 - muls r0, r1 - ldr r1, _080CADAC @ =gPlayerParty - adds r0, r1 - ldr r4, _080CADB0 @ =gStringVar1 - movs r1, 0x7 - adds r2, r4, 0 - bl GetMonData - ldr r0, _080CADB4 @ =gSaveBlock2Ptr - ldr r0, [r0] - adds r1, r4, 0 - bl StringCompare - cmp r0, 0 - beq _080CADB8 - movs r0, 0x1 - b _080CADBA - .align 2, 0 -_080CADA8: .4byte gSpecialVar_0x8004 -_080CADAC: .4byte gPlayerParty -_080CADB0: .4byte gStringVar1 -_080CADB4: .4byte gSaveBlock2Ptr -_080CADB8: - movs r0, 0 -_080CADBA: - pop {r4} - pop {r1} - bx r1 - thumb_func_end sub_80CAD7C - - thumb_func_start nullsub_75 -nullsub_75: @ 80CADC0 - bx lr - thumb_func_end nullsub_75 - - thumb_func_start sub_80CADC4 -sub_80CADC4: @ 80CADC4 - push {lr} - sub sp, 0x10 - movs r1, 0xFF - add r0, sp, 0xC - strb r1, [r0] - movs r0, 0x1 - str r0, [sp] - movs r0, 0 - str r0, [sp, 0x4] - str r0, [sp, 0x8] - movs r1, 0x2 - add r2, sp, 0xC - movs r3, 0 - bl AddTextPrinterParameterized - bl sub_809D424 - add sp, 0x10 - pop {r0} - bx r0 - thumb_func_end sub_80CADC4 - - thumb_func_start sub_80CADEC -sub_80CADEC: @ 80CADEC - push {r4,r5,lr} - bl Random - lsls r0, 16 - lsrs r0, 16 - movs r1, 0xF - bl __umodsi3 - adds r0, 0x1 - lsls r0, 16 - lsrs r2, r0, 16 - ldr r1, _080CAE20 @ =gSpecialVar_0x8004 - strh r2, [r1] - ldr r0, _080CAE24 @ =gSpecialVar_0x8005 - strh r2, [r0] - ldrh r0, [r1] - subs r0, 0x1 - cmp r0, 0xE - bls _080CAE14 - b _080CB01C -_080CAE14: - lsls r0, 2 - ldr r1, _080CAE28 @ =_080CAE2C - adds r0, r1 - ldr r0, [r0] - mov pc, r0 - .align 2, 0 -_080CAE20: .4byte gSpecialVar_0x8004 -_080CAE24: .4byte gSpecialVar_0x8005 -_080CAE28: .4byte _080CAE2C - .align 2, 0 -_080CAE2C: - .4byte _080CAE68 - .4byte _080CAE90 - .4byte _080CAE90 - .4byte _080CAE90 - .4byte _080CAEC8 - .4byte _080CAEE8 - .4byte _080CAF28 - .4byte _080CAF28 - .4byte _080CAF28 - .4byte _080CAF68 - .4byte _080CAF9C - .4byte _080CAFC4 - .4byte _080CAFC4 - .4byte _080CAFC4 - .4byte _080CAFF8 -_080CAE68: - bl Random - lsls r0, 16 - lsrs r0, 16 - movs r1, 0x1 - ands r0, r1 - cmp r0, 0 - bne _080CAE84 - ldr r1, _080CAE80 @ =gSpecialVar_0x8005 - ldrh r0, [r1] - adds r0, 0x1 - b _080CB01A - .align 2, 0 -_080CAE80: .4byte gSpecialVar_0x8005 -_080CAE84: - ldr r1, _080CAE8C @ =gSpecialVar_0x8005 - ldrh r0, [r1] - adds r0, 0x5 - b _080CB01A - .align 2, 0 -_080CAE8C: .4byte gSpecialVar_0x8005 -_080CAE90: - bl Random - lsls r0, 16 - lsrs r0, 16 - movs r1, 0x3 - bl __umodsi3 - lsls r0, 16 - lsrs r2, r0, 16 - cmp r2, 0 - bne _080CAEB4 - ldr r1, _080CAEB0 @ =gSpecialVar_0x8005 - ldrh r0, [r1] - adds r0, 0x1 - b _080CB01A - .align 2, 0 -_080CAEB0: .4byte gSpecialVar_0x8005 -_080CAEB4: - cmp r2, 0x1 - beq _080CAEBA - b _080CB014 -_080CAEBA: - ldr r1, _080CAEC4 @ =gSpecialVar_0x8005 - ldrh r0, [r1] - adds r0, 0x5 - b _080CB01A - .align 2, 0 -_080CAEC4: .4byte gSpecialVar_0x8005 -_080CAEC8: - bl Random - lsls r0, 16 - lsrs r0, 16 - movs r1, 0x1 - ands r0, r1 - cmp r0, 0 - beq _080CAEDA - b _080CB014 -_080CAEDA: - ldr r1, _080CAEE4 @ =gSpecialVar_0x8005 - ldrh r0, [r1] - adds r0, 0x5 - b _080CB01A - .align 2, 0 -_080CAEE4: .4byte gSpecialVar_0x8005 -_080CAEE8: - bl Random - lsls r0, 16 - lsrs r0, 16 - movs r1, 0x3 - bl __umodsi3 - lsls r0, 16 - lsrs r2, r0, 16 - cmp r2, 0 - bne _080CAF0C - ldr r1, _080CAF08 @ =gSpecialVar_0x8005 - ldrh r0, [r1] - subs r0, 0x5 - b _080CB01A - .align 2, 0 -_080CAF08: .4byte gSpecialVar_0x8005 -_080CAF0C: - cmp r2, 0x1 - bne _080CAF1C - ldr r1, _080CAF18 @ =gSpecialVar_0x8005 - ldrh r0, [r1] - adds r0, 0x1 - b _080CB01A - .align 2, 0 -_080CAF18: .4byte gSpecialVar_0x8005 -_080CAF1C: - ldr r1, _080CAF24 @ =gSpecialVar_0x8005 - ldrh r0, [r1] - adds r0, 0x5 - b _080CB01A - .align 2, 0 -_080CAF24: .4byte gSpecialVar_0x8005 -_080CAF28: - bl Random - lsls r0, 16 - movs r1, 0xC0 - lsls r1, 10 - ands r1, r0 - lsrs r2, r1, 16 - cmp r2, 0 - bne _080CAF48 - ldr r1, _080CAF44 @ =gSpecialVar_0x8005 - ldrh r0, [r1] - subs r0, 0x5 - b _080CB01A - .align 2, 0 -_080CAF44: .4byte gSpecialVar_0x8005 -_080CAF48: - cmp r2, 0x1 - bne _080CAF58 - ldr r1, _080CAF54 @ =gSpecialVar_0x8005 - ldrh r0, [r1] - adds r0, 0x1 - b _080CB01A - .align 2, 0 -_080CAF54: .4byte gSpecialVar_0x8005 -_080CAF58: - cmp r2, 0x2 - bne _080CB014 - ldr r1, _080CAF64 @ =gSpecialVar_0x8005 - ldrh r0, [r1] - adds r0, 0x5 - b _080CB01A - .align 2, 0 -_080CAF64: .4byte gSpecialVar_0x8005 -_080CAF68: - bl Random - lsls r0, 16 - lsrs r0, 16 - movs r1, 0x3 - bl __umodsi3 - lsls r0, 16 - lsrs r2, r0, 16 - cmp r2, 0 - bne _080CAF8C - ldr r1, _080CAF88 @ =gSpecialVar_0x8005 - ldrh r0, [r1] - subs r0, 0x5 - b _080CB01A - .align 2, 0 -_080CAF88: .4byte gSpecialVar_0x8005 -_080CAF8C: - cmp r2, 0x1 - bne _080CB014 - ldr r1, _080CAF98 @ =gSpecialVar_0x8005 - ldrh r0, [r1] - adds r0, 0x5 - b _080CB01A - .align 2, 0 -_080CAF98: .4byte gSpecialVar_0x8005 -_080CAF9C: - bl Random - lsls r0, 16 - lsrs r0, 16 - movs r1, 0x1 - ands r0, r1 - cmp r0, 0 - bne _080CAFB8 - ldr r1, _080CAFB4 @ =gSpecialVar_0x8005 - ldrh r0, [r1] - subs r0, 0x5 - b _080CB01A - .align 2, 0 -_080CAFB4: .4byte gSpecialVar_0x8005 -_080CAFB8: - ldr r1, _080CAFC0 @ =gSpecialVar_0x8005 - ldrh r0, [r1] - adds r0, 0x1 - b _080CB01A - .align 2, 0 -_080CAFC0: .4byte gSpecialVar_0x8005 -_080CAFC4: - bl Random - lsls r0, 16 - lsrs r0, 16 - movs r1, 0x3 - bl __umodsi3 - lsls r0, 16 - lsrs r2, r0, 16 - cmp r2, 0 - bne _080CAFE8 - ldr r1, _080CAFE4 @ =gSpecialVar_0x8005 - ldrh r0, [r1] - subs r0, 0x5 - b _080CB01A - .align 2, 0 -_080CAFE4: .4byte gSpecialVar_0x8005 -_080CAFE8: - cmp r2, 0x1 - bne _080CB014 - ldr r1, _080CAFF4 @ =gSpecialVar_0x8005 - ldrh r0, [r1] - adds r0, 0x1 - b _080CB01A - .align 2, 0 -_080CAFF4: .4byte gSpecialVar_0x8005 -_080CAFF8: - bl Random - lsls r0, 16 - lsrs r0, 16 - movs r1, 0x1 - ands r0, r1 - cmp r0, 0 - bne _080CB014 - ldr r1, _080CB010 @ =gSpecialVar_0x8005 - ldrh r0, [r1] - subs r0, 0x5 - b _080CB01A - .align 2, 0 -_080CB010: .4byte gSpecialVar_0x8005 -_080CB014: - ldr r1, _080CB040 @ =gSpecialVar_0x8005 - ldrh r0, [r1] - subs r0, 0x1 -_080CB01A: - strh r0, [r1] -_080CB01C: - ldr r5, _080CB040 @ =gSpecialVar_0x8005 - ldrh r0, [r5] - cmp r0, 0xF - bls _080CB04C - ldr r0, _080CB044 @ =gSpecialVar_0x8004 - ldrh r4, [r0] - adds r0, r4, 0 - movs r1, 0x5 - bl __umodsi3 - lsls r0, 16 - lsrs r0, 16 - cmp r0, 0x1 - beq _080CB048 - cmp r0, 0 - bne _080CB048 - subs r0, r4, 0x1 - b _080CB04A - .align 2, 0 -_080CB040: .4byte gSpecialVar_0x8005 -_080CB044: .4byte gSpecialVar_0x8004 -_080CB048: - adds r0, r4, 0x1 -_080CB04A: - strh r0, [r5] -_080CB04C: - pop {r4,r5} - pop {r0} - bx r0 - thumb_func_end sub_80CADEC - - thumb_func_start sub_80CB054 -sub_80CB054: @ 80CB054 - push {r4-r6,lr} - ldr r5, _080CB08C @ =0x00004035 - adds r0, r5, 0 - bl VarGet - lsls r0, 16 - lsrs r4, r0, 16 - ldr r6, _080CB090 @ =0x00004036 - adds r0, r6, 0 - bl VarGet - lsls r0, 16 - cmp r0, 0 - beq _080CB0A0 - adds r0, r4, 0x1 - lsls r0, 16 - lsrs r4, r0, 16 - cmp r4, 0xF9 - bls _080CB098 - ldr r1, _080CB094 @ =0x0000ffff - adds r0, r6, 0 - bl VarSet - adds r0, r5, 0 - movs r1, 0 - bl VarSet - b _080CB0A0 - .align 2, 0 -_080CB08C: .4byte 0x00004035 -_080CB090: .4byte 0x00004036 -_080CB094: .4byte 0x0000ffff -_080CB098: - adds r0, r5, 0 - adds r1, r4, 0 - bl VarSet -_080CB0A0: - pop {r4-r6} - pop {r0} - bx r0 - thumb_func_end sub_80CB054 - - thumb_func_start sub_80CB0A8 -sub_80CB0A8: @ 80CB0A8 - push {r4,lr} - ldr r4, _080CB10C @ =0x00004036 - adds r0, r4, 0 - bl VarGet - lsls r0, 16 - lsrs r1, r0, 16 - cmp r1, 0 - beq _080CB0C0 - ldr r0, _080CB110 @ =0x0000ffff - cmp r1, r0 - bne _080CB0EA -_080CB0C0: - bl sub_80CB124 - adds r1, r0, 0 - lsls r1, 16 - lsrs r1, 16 - adds r0, r4, 0 - bl VarSet - ldr r4, _080CB114 @ =0x0000403b - bl sub_80CB198 - adds r1, r0, 0 - lsls r1, 16 - lsrs r1, 16 - adds r0, r4, 0 - bl VarSet - ldr r0, _080CB118 @ =0x00004035 - movs r1, 0 - bl VarSet -_080CB0EA: - ldr r4, _080CB11C @ =gStringVar1 - ldr r0, _080CB10C @ =0x00004036 - bl VarGet - lsls r0, 16 - lsrs r0, 16 - movs r1, 0xB - muls r1, r0 - ldr r0, _080CB120 @ =gSpeciesNames - adds r1, r0 - adds r0, r4, 0 - bl StringCopy - pop {r4} - pop {r0} - bx r0 - .align 2, 0 -_080CB10C: .4byte 0x00004036 -_080CB110: .4byte 0x0000ffff -_080CB114: .4byte 0x0000403b -_080CB118: .4byte 0x00004035 -_080CB11C: .4byte gStringVar1 -_080CB120: .4byte gSpeciesNames - thumb_func_end sub_80CB0A8 - - thumb_func_start sub_80CB124 -sub_80CB124: @ 80CB124 - push {r4,r5,lr} - movs r5, 0 -_080CB128: - bl Random - lsls r0, 16 - lsrs r0, 16 - ldr r1, _080CB160 @ =0x0000019b - bl __umodsi3 - adds r0, 0x1 - lsls r0, 16 - lsrs r4, r0, 16 - adds r0, r4, 0 - bl SpeciesToNationalPokedexNum - lsls r0, 16 - lsrs r0, 16 - movs r1, 0 - bl GetSetPokedexFlag - lsls r0, 24 - asrs r0, 24 - cmp r0, 0x1 - beq _080CB18E - adds r0, r5, 0x1 - lsls r0, 16 - lsrs r5, r0, 16 - cmp r5, 0x63 - bls _080CB128 - b _080CB176 - .align 2, 0 -_080CB160: .4byte 0x0000019b -_080CB164: - cmp r4, 0x1 - bne _080CB170 - ldr r4, _080CB16C @ =0x0000019b - b _080CB176 - .align 2, 0 -_080CB16C: .4byte 0x0000019b -_080CB170: - subs r0, r4, 0x1 - lsls r0, 16 - lsrs r4, r0, 16 -_080CB176: - adds r0, r4, 0 - bl SpeciesToNationalPokedexNum - lsls r0, 16 - lsrs r0, 16 - movs r1, 0 - bl GetSetPokedexFlag - lsls r0, 24 - asrs r0, 24 - cmp r0, 0x1 - bne _080CB164 -_080CB18E: - adds r0, r4, 0 - pop {r4,r5} - pop {r1} - bx r1 - thumb_func_end sub_80CB124 - - thumb_func_start sub_80CB198 -sub_80CB198: @ 80CB198 - push {r4,lr} - bl Random - lsls r0, 16 - lsrs r0, 16 - movs r1, 0x64 - bl __umodsi3 - lsls r0, 16 - lsrs r0, 16 - cmp r0, 0x1D - bhi _080CB1D0 - ldr r4, _080CB1CC @ =gUnknown_83F5B30 - bl Random - lsls r0, 16 - lsrs r0, 16 - movs r1, 0x6 - bl __umodsi3 - lsls r0, 16 - lsrs r0, 15 - adds r0, r4 - ldrh r0, [r0] - b _080CB1D2 - .align 2, 0 -_080CB1CC: .4byte gUnknown_83F5B30 -_080CB1D0: - movs r0, 0xB -_080CB1D2: - pop {r4} - pop {r1} - bx r1 - thumb_func_end sub_80CB198 - - thumb_func_start Special_CheckAddCoins -Special_CheckAddCoins: @ 80CB1D8 -@ addcoins but it's a dry run - push {lr} - ldr r0, _080CB1F0 @ =gSpecialVar_Result - ldrh r1, [r0] - ldr r0, _080CB1F4 @ =gSpecialVar_0x8006 - ldrh r0, [r0] - adds r1, r0 - ldr r0, _080CB1F8 @ =0x0000270f - cmp r1, r0 - bgt _080CB1FC - movs r0, 0x1 - b _080CB1FE - .align 2, 0 -_080CB1F0: .4byte gSpecialVar_Result -_080CB1F4: .4byte gSpecialVar_0x8006 -_080CB1F8: .4byte 0x0000270f -_080CB1FC: - movs r0, 0 -_080CB1FE: - pop {r1} - bx r1 - thumb_func_end Special_CheckAddCoins - - thumb_func_start sub_80CB204 -sub_80CB204: @ 80CB204 - push {r4,lr} - movs r3, 0x4 - ldr r0, _080CB22C @ =gSaveBlock1Ptr - ldr r2, [r0] - movs r1, 0x14 - ldrsb r1, [r2, r1] - adds r4, r0, 0 - cmp r1, 0x1 - bne _080CB2AA - ldrb r0, [r2, 0x15] - subs r0, 0x2A - lsls r0, 24 - asrs r0, 24 - cmp r0, 0xF - bhi _080CB2AA - lsls r0, 2 - ldr r1, _080CB230 @ =_080CB234 - adds r0, r1 - ldr r0, [r0] - mov pc, r0 - .align 2, 0 -_080CB22C: .4byte gSaveBlock1Ptr -_080CB230: .4byte _080CB234 - .align 2, 0 -_080CB234: - .4byte _080CB2A0 - .4byte _080CB2A4 - .4byte _080CB2AA - .4byte _080CB2A8 - .4byte _080CB2AA - .4byte _080CB274 - .4byte _080CB278 - .4byte _080CB27C - .4byte _080CB280 - .4byte _080CB284 - .4byte _080CB288 - .4byte _080CB28C - .4byte _080CB290 - .4byte _080CB294 - .4byte _080CB298 - .4byte _080CB29C -_080CB274: - movs r3, 0x4 - b _080CB2AA -_080CB278: - movs r3, 0x5 - b _080CB2AA -_080CB27C: - movs r3, 0x6 - b _080CB2AA -_080CB280: - movs r3, 0x7 - b _080CB2AA -_080CB284: - movs r3, 0x8 - b _080CB2AA -_080CB288: - movs r3, 0x9 - b _080CB2AA -_080CB28C: - movs r3, 0xA - b _080CB2AA -_080CB290: - movs r3, 0xB - b _080CB2AA -_080CB294: - movs r3, 0xC - b _080CB2AA -_080CB298: - movs r3, 0xD - b _080CB2AA -_080CB29C: - movs r3, 0xE - b _080CB2AA -_080CB2A0: - movs r3, 0x3 - b _080CB2AA -_080CB2A4: - movs r3, 0x2 - b _080CB2AA -_080CB2A8: - movs r3, 0 -_080CB2AA: - ldr r1, [r4] - movs r0, 0x14 - ldrsb r0, [r1, r0] - cmp r0, 0xA - bne _080CB2F2 - movs r0, 0x15 - ldrsb r0, [r1, r0] - cmp r0, 0x4 - bhi _080CB2F2 - lsls r0, 2 - ldr r1, _080CB2C8 @ =_080CB2CC - adds r0, r1 - ldr r0, [r0] - mov pc, r0 - .align 2, 0 -_080CB2C8: .4byte _080CB2CC - .align 2, 0 -_080CB2CC: - .4byte _080CB2E0 - .4byte _080CB2E4 - .4byte _080CB2E8 - .4byte _080CB2EC - .4byte _080CB2F0 -_080CB2E0: - movs r3, 0x4 - b _080CB2F2 -_080CB2E4: - movs r3, 0x5 - b _080CB2F2 -_080CB2E8: - movs r3, 0x6 - b _080CB2F2 -_080CB2EC: - movs r3, 0x7 - b _080CB2F2 -_080CB2F0: - movs r3, 0x8 -_080CB2F2: - ldr r1, [r4] - movs r0, 0x14 - ldrsb r0, [r1, r0] - cmp r0, 0x2 - bne _080CB314 - movs r0, 0x15 - ldrsb r0, [r1, r0] - cmp r0, 0x1 - blt _080CB314 - cmp r0, 0x9 - ble _080CB30E - cmp r0, 0xA - beq _080CB312 - b _080CB314 -_080CB30E: - movs r3, 0xF - b _080CB314 -_080CB312: - movs r3, 0x3 -_080CB314: - ldr r0, _080CB324 @ =0x0000403a - adds r1, r3, 0 - bl VarSet - pop {r4} - pop {r0} - bx r0 - .align 2, 0 -_080CB324: .4byte 0x0000403a - thumb_func_end sub_80CB204 - - thumb_func_start sub_80CB328 -sub_80CB328: @ 80CB328 - push {r4-r6,lr} - ldr r3, _080CB35C @ =gUnknown_2039A0E - movs r0, 0 - strh r0, [r3] - ldr r1, _080CB360 @ =gUnknown_2039A10 - strh r0, [r1] - ldr r0, _080CB364 @ =gSaveBlock1Ptr - ldr r5, [r0] - movs r2, 0x14 - ldrsb r2, [r5, r2] - adds r4, r3, 0 - adds r3, r1, 0 - adds r6, r0, 0 - cmp r2, 0x1 - bne _080CB40C - ldrb r0, [r5, 0x15] - subs r0, 0x2A - lsls r0, 24 - asrs r0, 24 - cmp r0, 0xF - bhi _080CB40C - lsls r0, 2 - ldr r1, _080CB368 @ =_080CB36C - adds r0, r1 - ldr r0, [r0] - mov pc, r0 - .align 2, 0 -_080CB35C: .4byte gUnknown_2039A0E -_080CB360: .4byte gUnknown_2039A10 -_080CB364: .4byte gSaveBlock1Ptr -_080CB368: .4byte _080CB36C - .align 2, 0 -_080CB36C: - .4byte _080CB3F6 - .4byte _080CB3FC - .4byte _080CB40C - .4byte _080CB404 - .4byte _080CB40C - .4byte _080CB3F0 - .4byte _080CB3E8 - .4byte _080CB3E2 - .4byte _080CB3DA - .4byte _080CB3D2 - .4byte _080CB3CA - .4byte _080CB3C2 - .4byte _080CB3BA - .4byte _080CB404 - .4byte _080CB3B2 - .4byte _080CB3AC -_080CB3AC: - movs r0, 0 - strh r0, [r4] - b _080CB40A -_080CB3B2: - movs r0, 0 - strh r0, [r4] - movs r0, 0x1 - b _080CB40A -_080CB3BA: - movs r0, 0 - strh r0, [r4] - movs r0, 0x3 - b _080CB40A -_080CB3C2: - movs r0, 0 - strh r0, [r4] - movs r0, 0x4 - b _080CB40A -_080CB3CA: - movs r0, 0x1 - strh r0, [r4] - movs r0, 0x4 - b _080CB40A -_080CB3D2: - movs r0, 0x2 - strh r0, [r4] - movs r0, 0x4 - b _080CB40A -_080CB3DA: - movs r0, 0x3 - strh r0, [r4] - movs r0, 0x4 - b _080CB40A -_080CB3E2: - movs r0, 0x4 - strh r0, [r4] - b _080CB40A -_080CB3E8: - movs r0, 0x5 - strh r0, [r4] - movs r0, 0x4 - b _080CB40A -_080CB3F0: - movs r0, 0x5 - strh r0, [r4] - b _080CB40A -_080CB3F6: - movs r0, 0 - strh r0, [r4] - b _080CB40A -_080CB3FC: - movs r0, 0 - strh r0, [r4] - movs r0, 0x1 - b _080CB40A -_080CB404: - movs r0, 0 - strh r0, [r4] - movs r0, 0x2 -_080CB40A: - strh r0, [r3] -_080CB40C: - ldr r1, [r6] - movs r0, 0x14 - ldrsb r0, [r1, r0] - cmp r0, 0xA - bne _080CB466 - movs r0, 0x15 - ldrsb r0, [r1, r0] - cmp r0, 0x4 - bhi _080CB466 - lsls r0, 2 - ldr r1, _080CB428 @ =_080CB42C - adds r0, r1 - ldr r0, [r0] - mov pc, r0 - .align 2, 0 -_080CB428: .4byte _080CB42C - .align 2, 0 -_080CB42C: - .4byte _080CB45E - .4byte _080CB456 - .4byte _080CB44E - .4byte _080CB446 - .4byte _080CB440 -_080CB440: - movs r0, 0 - strh r0, [r4] - b _080CB464 -_080CB446: - movs r0, 0 - strh r0, [r4] - movs r0, 0x1 - b _080CB464 -_080CB44E: - movs r0, 0 - strh r0, [r4] - movs r0, 0x2 - b _080CB464 -_080CB456: - movs r0, 0 - strh r0, [r4] - movs r0, 0x3 - b _080CB464 -_080CB45E: - movs r0, 0 - strh r0, [r4] - movs r0, 0x4 -_080CB464: - strh r0, [r3] -_080CB466: - ldr r1, [r6] - movs r0, 0x14 - ldrsb r0, [r1, r0] - cmp r0, 0x2 - bne _080CB490 - movs r0, 0x15 - ldrsb r0, [r1, r0] - cmp r0, 0x1 - blt _080CB490 - cmp r0, 0x9 - ble _080CB482 - cmp r0, 0xA - beq _080CB488 - b _080CB490 -_080CB482: - movs r0, 0 - strh r0, [r4] - b _080CB48E -_080CB488: - movs r0, 0 - strh r0, [r4] - movs r0, 0x1 -_080CB48E: - strh r0, [r3] -_080CB490: - ldrh r0, [r3] - pop {r4-r6} - pop {r1} - bx r1 - thumb_func_end sub_80CB328 - - thumb_func_start sub_80CB498 -sub_80CB498: @ 80CB498 - push {r4-r6,lr} - ldr r0, _080CB4D0 @ =sub_80CB514 - movs r1, 0x9 - bl CreateTask - lsls r0, 24 - lsrs r0, 24 - lsls r1, r0, 2 - adds r1, r0 - lsls r1, 3 - ldr r0, _080CB4D4 @ =gTasks+0x8 - adds r4, r1, r0 - movs r3, 0 - strh r3, [r4, 0x2] - strh r3, [r4, 0x4] - movs r6, 0x1 - strh r6, [r4, 0x8] - ldr r0, _080CB4D8 @ =gSpecialVar_0x8005 - ldr r1, _080CB4DC @ =gSpecialVar_0x8006 - ldrh r2, [r0] - ldrh r0, [r1] - cmp r2, r0 - bls _080CB4E0 - subs r0, r2, r0 - lsls r0, 16 - lsrs r5, r0, 16 - strh r6, [r4, 0xC] - b _080CB4E8 - .align 2, 0 -_080CB4D0: .4byte sub_80CB514 -_080CB4D4: .4byte gTasks+0x8 -_080CB4D8: .4byte gSpecialVar_0x8005 -_080CB4DC: .4byte gSpecialVar_0x8006 -_080CB4E0: - subs r0, r2 - lsls r0, 16 - lsrs r5, r0, 16 - strh r3, [r4, 0xC] -_080CB4E8: - cmp r5, 0x8 - bls _080CB4EE - movs r5, 0x8 -_080CB4EE: - ldr r0, _080CB510 @ =gUnknown_83F5BB8 - adds r0, r5, r0 - ldrb r0, [r0] - strh r0, [r4, 0xA] - movs r0, 0 - bl SetCameraPanningCallback - ldrb r1, [r4, 0xC] - adds r0, r5, 0 - bl sub_80CB658 - movs r0, 0x52 - bl PlaySE - pop {r4-r6} - pop {r0} - bx r0 - .align 2, 0 -_080CB510: .4byte gUnknown_83F5BB8 - thumb_func_end sub_80CB498 - - thumb_func_start sub_80CB514 -sub_80CB514: @ 80CB514 - push {r4,r5,lr} - lsls r0, 24 - lsrs r5, r0, 24 - lsls r0, r5, 2 - adds r0, r5 - lsls r0, 3 - ldr r1, _080CB57C @ =gTasks+0x8 - adds r4, r0, r1 - ldrh r0, [r4, 0x2] - adds r0, 0x1 - strh r0, [r4, 0x2] - movs r1, 0x2 - ldrsh r0, [r4, r1] - movs r1, 0x3 - bl __modsi3 - lsls r0, 16 - asrs r0, 16 - cmp r0, 0 - bne _080CB574 - strh r0, [r4, 0x2] - ldrh r0, [r4, 0x4] - adds r0, 0x1 - strh r0, [r4, 0x4] - ldrh r0, [r4, 0x8] - negs r0, r0 - strh r0, [r4, 0x8] - movs r2, 0x8 - ldrsh r1, [r4, r2] - movs r0, 0 - bl SetCameraPanning - movs r0, 0x4 - ldrsh r1, [r4, r0] - movs r2, 0xA - ldrsh r0, [r4, r2] - cmp r1, r0 - bne _080CB574 - movs r0, 0x42 - bl PlaySE - adds r0, r5, 0 - bl DestroyTask - bl EnableBothScriptContexts - bl InstallCameraPanAheadCallback -_080CB574: - pop {r4,r5} - pop {r0} - bx r0 - .align 2, 0 -_080CB57C: .4byte gTasks+0x8 - thumb_func_end sub_80CB514 - - thumb_func_start sub_80CB580 -sub_80CB580: @ 80CB580 - push {r4-r6,lr} - mov r6, r8 - push {r6} - sub sp, 0xC - ldr r0, _080CB620 @ =sub_809D6D4 - bl sub_81119D4 - lsls r0, 24 - lsrs r0, 24 - cmp r0, 0x1 - beq _080CB614 - ldr r4, _080CB624 @ =gUnknown_2039A0C - ldr r0, _080CB628 @ =gUnknown_83F5B3C - bl AddWindow - strb r0, [r4] - ldrb r0, [r4] - ldr r5, _080CB62C @ =0x0000021d - adds r1, r5, 0 - movs r2, 0xD0 - bl TextWindow_SetStdFrame0_WithPal - ldrb r0, [r4] - movs r1, 0 - adds r2, r5, 0 - movs r3, 0xD - bl DrawStdFrameWithCustomTileAndPalette - ldrb r0, [r4] - ldr r2, _080CB630 @ =gUnknown_8418075 - movs r1, 0x2 - str r1, [sp] - movs r1, 0xFF - mov r8, r1 - str r1, [sp, 0x4] - movs r6, 0 - str r6, [sp, 0x8] - movs r1, 0x2 - movs r3, 0 - bl AddTextPrinterParameterized - ldr r1, _080CB634 @ =gUnknown_83F5B44 - ldr r0, _080CB638 @ =gSpecialVar_0x8005 - ldrh r0, [r0] - lsls r0, 2 - adds r0, r1 - ldr r5, [r0] - movs r0, 0x2 - adds r1, r5, 0 - movs r2, 0 - bl GetStringWidth - ldrb r1, [r4] - movs r3, 0x38 - subs r3, r0 - lsls r3, 24 - lsrs r3, 24 - movs r0, 0x10 - str r0, [sp] - mov r0, r8 - str r0, [sp, 0x4] - str r6, [sp, 0x8] - adds r0, r1, 0 - movs r1, 0x2 - adds r2, r5, 0 - bl AddTextPrinterParameterized - ldrb r0, [r4] - bl PutWindowTilemap - ldrb r0, [r4] - movs r1, 0x3 - bl CopyWindowToVram -_080CB614: - add sp, 0xC - pop {r3} - mov r8, r3 - pop {r4-r6} - pop {r0} - bx r0 - .align 2, 0 -_080CB620: .4byte sub_809D6D4 -_080CB624: .4byte gUnknown_2039A0C -_080CB628: .4byte gUnknown_83F5B3C -_080CB62C: .4byte 0x0000021d -_080CB630: .4byte gUnknown_8418075 -_080CB634: .4byte gUnknown_83F5B44 -_080CB638: .4byte gSpecialVar_0x8005 - thumb_func_end sub_80CB580 - - thumb_func_start sub_80CB63C -sub_80CB63C: @ 80CB63C - push {r4,lr} - ldr r4, _080CB654 @ =gUnknown_2039A0C - ldrb r0, [r4] - movs r1, 0x1 - bl ClearStdWindowAndFrameToTransparent - ldrb r0, [r4] - bl RemoveWindow - pop {r4} - pop {r0} - bx r0 - .align 2, 0 -_080CB654: .4byte gUnknown_2039A0C - thumb_func_end sub_80CB63C - - thumb_func_start sub_80CB658 -sub_80CB658: @ 80CB658 - push {r4-r6,lr} - lsls r0, 16 - lsrs r6, r0, 16 - lsls r1, 24 - lsrs r5, r1, 24 - ldr r4, _080CB6A0 @ =sub_80CB6AC - adds r0, r4, 0 - bl FuncIsActiveTask - lsls r0, 24 - lsrs r0, 24 - cmp r0, 0x1 - beq _080CB698 - adds r0, r4, 0 - movs r1, 0x8 - bl CreateTask - lsls r0, 24 - lsrs r0, 24 - ldr r2, _080CB6A4 @ =gTasks - lsls r1, r0, 2 - adds r1, r0 - lsls r1, 3 - adds r1, r2 - movs r0, 0 - strh r0, [r1, 0x8] - strh r0, [r1, 0xA] - strh r5, [r1, 0xC] - ldr r0, _080CB6A8 @ =gUnknown_83F5BC1 - adds r0, r6, r0 - ldrb r0, [r0] - strh r0, [r1, 0xE] -_080CB698: - pop {r4-r6} - pop {r0} - bx r0 - .align 2, 0 -_080CB6A0: .4byte sub_80CB6AC -_080CB6A4: .4byte gTasks -_080CB6A8: .4byte gUnknown_83F5BC1 - thumb_func_end sub_80CB658 - - thumb_func_start sub_80CB6AC -sub_80CB6AC: @ 80CB6AC - push {r4-r7,lr} - mov r7, r10 - mov r6, r9 - mov r5, r8 - push {r5-r7} - sub sp, 0x4 - lsls r0, 24 - lsrs r0, 24 - str r0, [sp] - lsls r0, 2 - ldr r1, [sp] - adds r0, r1 - lsls r0, 3 - ldr r1, _080CB734 @ =gTasks+0x8 - adds r6, r0, r1 - movs r2, 0x2 - ldrsh r0, [r6, r2] - cmp r0, 0x6 - bne _080CB7A8 - ldrh r0, [r6] - adds r0, 0x1 - strh r0, [r6] - movs r1, 0x4 - ldrsh r0, [r6, r1] - cmp r0, 0 - bne _080CB73C - movs r1, 0 - ldr r2, _080CB738 @ =gUnknown_83F5B94 - mov r10, r2 -_080CB6E6: - movs r5, 0 - adds r7, r1, 0x7 - lsls r0, r1, 1 - adds r2, r1, 0x1 - mov r8, r2 - adds r0, r1 - lsls r0, 1 - mov r9, r0 -_080CB6F6: - adds r4, r5, 0 - adds r4, 0x8 - movs r1, 0 - ldrsh r0, [r6, r1] - movs r1, 0x3 - bl __modsi3 - lsls r0, 16 - asrs r0, 15 - add r0, r9 - add r0, r10 - ldrh r0, [r0] - movs r1, 0xC0 - lsls r1, 4 - adds r2, r1, 0 - orrs r2, r0 - adds r0, r4, 0 - adds r1, r7, 0 - bl MapGridSetMetatileIdAt - adds r0, r5, 0x1 - lsls r0, 24 - lsrs r5, r0, 24 - cmp r5, 0x2 - bls _080CB6F6 - mov r2, r8 - lsls r0, r2, 24 - lsrs r1, r0, 24 - cmp r1, 0x2 - bls _080CB6E6 - b _080CB78E - .align 2, 0 -_080CB734: .4byte gTasks+0x8 -_080CB738: .4byte gUnknown_83F5B94 -_080CB73C: - movs r1, 0 - ldr r0, _080CB7C0 @ =gUnknown_83F5BA6 - mov r10, r0 -_080CB742: - movs r5, 0 - adds r7, r1, 0x7 - lsls r0, r1, 1 - adds r2, r1, 0x1 - mov r8, r2 - adds r0, r1 - lsls r0, 1 - mov r9, r0 -_080CB752: - adds r4, r5, 0 - adds r4, 0x8 - movs r1, 0 - ldrsh r0, [r6, r1] - movs r1, 0x3 - bl __modsi3 - lsls r0, 16 - asrs r0, 15 - add r0, r9 - add r0, r10 - ldrh r0, [r0] - movs r1, 0xC0 - lsls r1, 4 - adds r2, r1, 0 - orrs r2, r0 - adds r0, r4, 0 - adds r1, r7, 0 - bl MapGridSetMetatileIdAt - adds r0, r5, 0x1 - lsls r0, 24 - lsrs r5, r0, 24 - cmp r5, 0x2 - bls _080CB752 - mov r2, r8 - lsls r0, r2, 24 - lsrs r1, r0, 24 - cmp r1, 0x2 - bls _080CB742 -_080CB78E: - bl DrawWholeMapView - movs r0, 0 - strh r0, [r6, 0x2] - movs r0, 0 - ldrsh r1, [r6, r0] - movs r2, 0x6 - ldrsh r0, [r6, r2] - cmp r1, r0 - bne _080CB7A8 - ldr r0, [sp] - bl DestroyTask -_080CB7A8: - ldrh r0, [r6, 0x2] - adds r0, 0x1 - strh r0, [r6, 0x2] - add sp, 0x4 - pop {r3-r5} - mov r8, r3 - mov r9, r4 - mov r10, r5 - pop {r4-r7} - pop {r0} - bx r0 - .align 2, 0 -_080CB7C0: .4byte gUnknown_83F5BA6 - thumb_func_end sub_80CB6AC - - thumb_func_start sub_80CB7C4 -sub_80CB7C4: @ 80CB7C4 - push {r4,r5,lr} - ldr r0, _080CB808 @ =sub_809D6D4 - bl sub_81119D4 - lsls r0, 24 - lsrs r0, 24 - cmp r0, 0x1 - bne _080CB7D6 - b _080CB8F8 -_080CB7D6: - ldr r0, _080CB80C @ =sub_80CB904 - movs r1, 0x8 - bl CreateTask - lsls r0, 24 - lsrs r5, r0, 24 - lsls r0, r5, 2 - adds r0, r5 - lsls r0, 3 - ldr r1, _080CB810 @ =gTasks - adds r3, r0, r1 - ldr r0, _080CB814 @ =gSpecialVar_0x8004 - ldrh r4, [r0] - cmp r4, 0x3 - beq _080CB886 - cmp r4, 0x3 - bgt _080CB818 - cmp r4, 0x1 - beq _080CB842 - cmp r4, 0x1 - bgt _080CB870 - cmp r4, 0 - beq _080CB82A - b _080CB8EC - .align 2, 0 -_080CB808: .4byte sub_809D6D4 -_080CB80C: .4byte sub_80CB904 -_080CB810: .4byte gTasks -_080CB814: .4byte gSpecialVar_0x8004 -_080CB818: - cmp r4, 0x5 - beq _080CB8B4 - cmp r4, 0x5 - blt _080CB89E - cmp r4, 0x6 - beq _080CB8D2 - cmp r4, 0x63 - beq _080CB8F8 - b _080CB8EC -_080CB82A: - movs r0, 0x4 - strh r0, [r3, 0x8] - movs r0, 0x9 - strh r0, [r3, 0xA] - movs r1, 0x1 - strh r1, [r3, 0xC] - strh r1, [r3, 0xE] - movs r0, 0xC - strh r0, [r3, 0x10] - movs r0, 0x7 - strh r0, [r3, 0x12] - b _080CB8E6 -_080CB842: - movs r2, 0 - movs r0, 0x7 - strh r0, [r3, 0x8] - movs r1, 0xC - strh r1, [r3, 0xA] - strh r4, [r3, 0xC] - strh r4, [r3, 0xE] - movs r0, 0x8 - strh r0, [r3, 0x10] - strh r1, [r3, 0x12] - strh r2, [r3, 0x14] - strh r5, [r3, 0x26] - ldr r0, _080CB868 @ =gUnknown_2039A0E - ldrh r0, [r0] - strh r0, [r3, 0x16] - ldr r0, _080CB86C @ =gUnknown_2039A10 - ldrh r0, [r0] - strh r0, [r3, 0x18] - b _080CB8F8 - .align 2, 0 -_080CB868: .4byte gUnknown_2039A0E -_080CB86C: .4byte gUnknown_2039A10 -_080CB870: - movs r1, 0 - movs r0, 0x4 - strh r0, [r3, 0x8] - strh r0, [r3, 0xA] - movs r0, 0x1 - strh r0, [r3, 0xC] - strh r0, [r3, 0xE] - movs r0, 0x8 - strh r0, [r3, 0x10] - strh r0, [r3, 0x12] - b _080CB8E6 -_080CB886: - movs r1, 0 - movs r0, 0x4 - strh r0, [r3, 0x8] - movs r0, 0x6 - strh r0, [r3, 0xA] - movs r0, 0x1 - strh r0, [r3, 0xC] - strh r0, [r3, 0xE] - movs r0, 0x8 - strh r0, [r3, 0x10] - strh r0, [r3, 0x12] - b _080CB8E6 -_080CB89E: - movs r0, 0x4 - strh r0, [r3, 0x8] - strh r0, [r3, 0xA] - movs r1, 0x1 - strh r1, [r3, 0xC] - strh r1, [r3, 0xE] - movs r0, 0x11 - strh r0, [r3, 0x10] - movs r0, 0x8 - strh r0, [r3, 0x12] - b _080CB8E6 -_080CB8B4: - movs r2, 0 - movs r0, 0x7 - strh r0, [r3, 0x8] - movs r1, 0xC - strh r1, [r3, 0xA] - movs r0, 0x10 - strh r0, [r3, 0xC] - movs r0, 0x1 - strh r0, [r3, 0xE] - movs r0, 0x11 - strh r0, [r3, 0x10] - strh r1, [r3, 0x12] - strh r2, [r3, 0x14] - strh r5, [r3, 0x26] - b _080CB8F8 -_080CB8D2: - movs r1, 0 - movs r0, 0x3 - strh r0, [r3, 0x8] - strh r0, [r3, 0xA] - movs r0, 0x1 - strh r0, [r3, 0xC] - strh r0, [r3, 0xE] - movs r0, 0x8 - strh r0, [r3, 0x10] - strh r4, [r3, 0x12] -_080CB8E6: - strh r1, [r3, 0x14] - strh r5, [r3, 0x26] - b _080CB8F8 -_080CB8EC: - ldr r1, _080CB900 @ =gSpecialVar_Result - movs r0, 0x7F - strh r0, [r1] - adds r0, r5, 0 - bl DestroyTask -_080CB8F8: - pop {r4,r5} - pop {r0} - bx r0 - .align 2, 0 -_080CB900: .4byte gSpecialVar_Result - thumb_func_end sub_80CB7C4 - - thumb_func_start sub_80CB904 -sub_80CB904: @ 80CB904 - push {r4-r7,lr} - mov r7, r10 - mov r6, r9 - mov r5, r8 - push {r5-r7} - sub sp, 0x20 - lsls r0, 24 - lsrs r7, r0, 24 - lsls r0, r7, 2 - adds r0, r7 - lsls r0, 3 - ldr r1, _080CB934 @ =gTasks - adds r5, r0, r1 - bl ScriptContext2_Enable - ldr r0, _080CB938 @ =gSpecialVar_0x8004 - ldrh r0, [r0] - cmp r0, 0x1 - bne _080CB944 - ldr r0, _080CB93C @ =gUnknown_2039A18 - ldr r1, _080CB940 @ =gUnknown_2039A0E - ldrh r1, [r1] - strh r1, [r0] - b _080CB94A - .align 2, 0 -_080CB934: .4byte gTasks -_080CB938: .4byte gSpecialVar_0x8004 -_080CB93C: .4byte gUnknown_2039A18 -_080CB940: .4byte gUnknown_2039A0E -_080CB944: - ldr r1, _080CBA60 @ =gUnknown_2039A18 - movs r0, 0 - strh r0, [r1] -_080CB94A: - ldr r4, _080CBA64 @ =gUnknown_2039A14 - movs r1, 0xA - ldrsh r0, [r5, r1] - lsls r0, 3 - bl AllocZeroed - str r0, [r4] - bl sub_80CBA7C - movs r6, 0 - movs r4, 0 - movs r2, 0xA - ldrsh r0, [r5, r2] - lsls r3, r7, 2 - mov r10, r3 - add r1, sp, 0x18 - mov r9, r1 - cmp r6, r0 - bge _080CB9AE - ldr r2, _080CBA68 @ =gUnknown_83F5BCC - mov r8, r2 -_080CB974: - ldr r0, _080CBA64 @ =gUnknown_2039A14 - ldr r0, [r0] - lsls r3, r4, 3 - adds r3, r0 - lsls r2, r4, 2 - ldr r0, _080CBA6C @ =gSpecialVar_0x8004 - ldrh r1, [r0] - lsls r0, r1, 1 - adds r0, r1 - lsls r0, 4 - adds r2, r0 - add r2, r8 - ldr r1, [r2] - str r1, [r3] - str r4, [r3, 0x4] - movs r0, 0x2 - movs r2, 0 - bl GetStringWidth - cmp r0, r6 - ble _080CB9A0 - adds r6, r0, 0 -_080CB9A0: - adds r0, r4, 0x1 - lsls r0, 24 - lsrs r4, r0, 24 - movs r3, 0xA - ldrsh r0, [r5, r3] - cmp r4, r0 - blt _080CB974 -_080CB9AE: - adds r0, r6, 0 - adds r0, 0x9 - cmp r0, 0 - bge _080CB9B8 - adds r0, 0x7 -_080CB9B8: - asrs r0, 3 - adds r2, r0, 0x1 - strh r2, [r5, 0x10] - movs r1, 0xC - ldrsh r0, [r5, r1] - movs r3, 0x10 - ldrsh r1, [r5, r3] - adds r0, r1 - cmp r0, 0x1D - ble _080CB9D2 - movs r0, 0x1D - subs r0, r2 - strh r0, [r5, 0xC] -_080CB9D2: - ldrb r2, [r5, 0xC] - ldrb r3, [r5, 0xE] - ldrb r0, [r5, 0x10] - str r0, [sp] - ldrb r0, [r5, 0x12] - str r0, [sp, 0x4] - movs r0, 0xF - str r0, [sp, 0x8] - movs r0, 0x38 - str r0, [sp, 0xC] - add r0, sp, 0x10 - movs r1, 0 - bl SetWindowTemplateFields - ldr r0, [sp, 0x10] - ldr r1, [sp, 0x14] - str r0, [sp, 0x18] - str r1, [sp, 0x1C] - mov r0, r9 - bl AddWindow - lsls r0, 24 - lsrs r0, 24 - strh r0, [r5, 0x22] - movs r1, 0 - bl SetStdWindowBorderStyle - ldr r4, _080CBA70 @ =gUnknown_3005360 - ldrh r0, [r5, 0xA] - strh r0, [r4, 0xC] - ldrh r0, [r5, 0x8] - strh r0, [r4, 0xE] - ldrh r0, [r5, 0x22] - strb r0, [r4, 0x10] - adds r0, r7, 0 - bl sub_80CBCC0 - ldrh r1, [r5, 0x16] - ldrh r2, [r5, 0x18] - adds r0, r4, 0 - bl ListMenuInit - lsls r0, 24 - lsrs r0, 24 - strh r0, [r5, 0x24] - ldrh r0, [r5, 0x22] - lsls r0, 24 - lsrs r0, 24 - bl PutWindowTilemap - ldrh r0, [r5, 0x22] - lsls r0, 24 - lsrs r0, 24 - movs r1, 0x3 - bl CopyWindowToVram - ldr r1, _080CBA74 @ =gTasks - mov r2, r10 - adds r0, r2, r7 - lsls r0, 3 - adds r0, r1 - ldr r1, _080CBA78 @ =sub_80CBB28 - str r1, [r0] - add sp, 0x20 - pop {r3-r5} - mov r8, r3 - mov r9, r4 - mov r10, r5 - pop {r4-r7} - pop {r0} - bx r0 - .align 2, 0 -_080CBA60: .4byte gUnknown_2039A18 -_080CBA64: .4byte gUnknown_2039A14 -_080CBA68: .4byte gUnknown_83F5BCC -_080CBA6C: .4byte gSpecialVar_0x8004 -_080CBA70: .4byte gUnknown_3005360 -_080CBA74: .4byte gTasks -_080CBA78: .4byte sub_80CBB28 - thumb_func_end sub_80CB904 - - thumb_func_start sub_80CBA7C -sub_80CBA7C: @ 80CBA7C - ldr r2, _080CBAD0 @ =gUnknown_3005360 - ldr r0, _080CBAD4 @ =gUnknown_2039A14 - ldr r0, [r0] - str r0, [r2] - ldr r0, _080CBAD8 @ =sub_80CBADC - str r0, [r2, 0x4] - movs r0, 0 - str r0, [r2, 0x8] - movs r1, 0 - movs r0, 0x1 - strh r0, [r2, 0xC] - strh r0, [r2, 0xE] - strb r1, [r2, 0x10] - strb r1, [r2, 0x11] - movs r0, 0x8 - strb r0, [r2, 0x12] - strb r1, [r2, 0x13] - movs r0, 0x20 - strb r0, [r2, 0x14] - movs r3, 0x1 - movs r0, 0x31 - strb r0, [r2, 0x15] - ldrb r1, [r2, 0x16] - subs r0, 0x39 - ands r0, r1 - orrs r0, r3 - movs r1, 0x39 - negs r1, r1 - ands r0, r1 - movs r3, 0x3F - ands r0, r3 - strb r0, [r2, 0x16] - ldrb r1, [r2, 0x17] - movs r0, 0x40 - negs r0, r0 - ands r0, r1 - movs r1, 0x2 - orrs r0, r1 - ands r0, r3 - strb r0, [r2, 0x17] - bx lr - .align 2, 0 -_080CBAD0: .4byte gUnknown_3005360 -_080CBAD4: .4byte gUnknown_2039A14 -_080CBAD8: .4byte sub_80CBADC - thumb_func_end sub_80CBA7C - - thumb_func_start sub_80CBADC -sub_80CBADC: @ 80CBADC - push {r4,lr} - movs r0, 0x5 - bl PlaySE - ldr r0, _080CBB18 @ =sub_80CBB28 - bl FindTaskIdByFunc - lsls r0, 24 - lsrs r1, r0, 24 - cmp r1, 0xFF - beq _080CBB12 - lsls r0, r1, 2 - adds r0, r1 - lsls r0, 3 - ldr r1, _080CBB1C @ =gTasks - adds r0, r1 - ldrh r0, [r0, 0x24] - lsls r0, 24 - lsrs r0, 24 - ldr r4, _080CBB20 @ =gUnknown_3005378 - adds r1, r4, 0 - movs r2, 0 - bl ListMenuGetScrollAndRow - ldr r1, _080CBB24 @ =gUnknown_2039A18 - ldrh r0, [r4] - strh r0, [r1] -_080CBB12: - pop {r4} - pop {r0} - bx r0 - .align 2, 0 -_080CBB18: .4byte sub_80CBB28 -_080CBB1C: .4byte gTasks -_080CBB20: .4byte gUnknown_3005378 -_080CBB24: .4byte gUnknown_2039A18 - thumb_func_end sub_80CBADC - - thumb_func_start sub_80CBB28 -sub_80CBB28: @ 80CBB28 - push {r4-r6,lr} - lsls r0, 24 - lsrs r5, r0, 24 - lsls r0, r5, 2 - adds r0, r5 - lsls r0, 3 - ldr r1, _080CBB54 @ =gTasks - adds r6, r0, r1 - ldrh r0, [r6, 0x24] - lsls r0, 24 - lsrs r0, 24 - bl ListMenu_ProcessInput - adds r4, r0, 0 - movs r0, 0x2 - negs r0, r0 - cmp r4, r0 - beq _080CBB58 - adds r0, 0x1 - cmp r4, r0 - bne _080CBB6C - b _080CBBA2 - .align 2, 0 -_080CBB54: .4byte gTasks -_080CBB58: - ldr r1, _080CBB68 @ =gSpecialVar_Result - movs r0, 0x7F - strh r0, [r1] - movs r0, 0x5 - bl PlaySE - b _080CBB88 - .align 2, 0 -_080CBB68: .4byte gSpecialVar_Result -_080CBB6C: - ldr r0, _080CBB90 @ =gSpecialVar_Result - strh r4, [r0] - movs r0, 0x5 - bl PlaySE - movs r1, 0x14 - ldrsh r0, [r6, r1] - cmp r0, 0 - beq _080CBB88 - movs r1, 0xA - ldrsh r0, [r6, r1] - subs r0, 0x1 - cmp r4, r0 - bne _080CBB94 -_080CBB88: - adds r0, r5, 0 - bl sub_80CBBAC - b _080CBBA2 - .align 2, 0 -_080CBB90: .4byte gSpecialVar_Result -_080CBB94: - adds r0, r5, 0 - bl sub_80CBD50 - ldr r0, _080CBBA8 @ =sub_80CBC2C - str r0, [r6] - bl EnableBothScriptContexts -_080CBBA2: - pop {r4-r6} - pop {r0} - bx r0 - .align 2, 0 -_080CBBA8: .4byte sub_80CBC2C - thumb_func_end sub_80CBB28 - - thumb_func_start sub_80CBBAC -sub_80CBBAC: @ 80CBBAC - push {r4,r5,lr} - adds r5, r0, 0 - lsls r5, 24 - lsrs r5, 24 - lsls r4, r5, 2 - adds r4, r5 - lsls r4, 3 - ldr r0, _080CBC24 @ =gTasks - adds r4, r0 - adds r0, r5, 0 - bl sub_80CBD50 - ldrh r0, [r4, 0x24] - lsls r0, 24 - lsrs r0, 24 - movs r1, 0 - movs r2, 0 - bl DestroyListMenuTask - ldr r0, _080CBC28 @ =gUnknown_2039A14 - ldr r0, [r0] - bl Free - ldrh r0, [r4, 0x22] - lsls r0, 24 - lsrs r0, 24 - movs r1, 0x1 - bl ClearStdWindowAndFrameToTransparent - ldrh r0, [r4, 0x22] - lsls r0, 24 - lsrs r0, 24 - movs r1, 0 - bl FillWindowPixelBuffer - ldrh r0, [r4, 0x22] - lsls r0, 24 - lsrs r0, 24 - bl ClearWindowTilemap - ldrh r0, [r4, 0x22] - lsls r0, 24 - lsrs r0, 24 - movs r1, 0x2 - bl CopyWindowToVram - ldrh r0, [r4, 0x22] - lsls r0, 24 - lsrs r0, 24 - bl RemoveWindow - adds r0, r5, 0 - bl DestroyTask - bl EnableBothScriptContexts - pop {r4,r5} - pop {r0} - bx r0 - .align 2, 0 -_080CBC24: .4byte gTasks -_080CBC28: .4byte gUnknown_2039A14 - thumb_func_end sub_80CBBAC - - thumb_func_start sub_80CBC2C -sub_80CBC2C: @ 80CBC2C - push {lr} - lsls r0, 24 - lsrs r0, 24 - ldr r2, _080CBC54 @ =gTasks - lsls r1, r0, 2 - adds r1, r0 - lsls r1, 3 - adds r1, r2 - movs r2, 0x14 - ldrsh r0, [r1, r2] - cmp r0, 0x1 - beq _080CBC50 - cmp r0, 0x2 - bne _080CBC50 - movs r0, 0x1 - strh r0, [r1, 0x14] - ldr r0, _080CBC58 @ =sub_80CBC90 - str r0, [r1] -_080CBC50: - pop {r0} - bx r0 - .align 2, 0 -_080CBC54: .4byte gTasks -_080CBC58: .4byte sub_80CBC90 - thumb_func_end sub_80CBC2C - - thumb_func_start sub_80CBC5C -sub_80CBC5C: @ 80CBC5C - push {lr} - ldr r0, _080CBC74 @ =sub_80CBC2C - bl FindTaskIdByFunc - lsls r0, 24 - lsrs r2, r0, 24 - cmp r2, 0xFF - bne _080CBC78 - bl EnableBothScriptContexts - b _080CBC88 - .align 2, 0 -_080CBC74: .4byte sub_80CBC2C -_080CBC78: - ldr r0, _080CBC8C @ =gTasks - lsls r1, r2, 2 - adds r1, r2 - lsls r1, 3 - adds r1, r0 - ldrh r0, [r1, 0x14] - adds r0, 0x1 - strh r0, [r1, 0x14] -_080CBC88: - pop {r0} - bx r0 - .align 2, 0 -_080CBC8C: .4byte gTasks - thumb_func_end sub_80CBC5C - - thumb_func_start sub_80CBC90 -sub_80CBC90: @ 80CBC90 - push {r4,lr} - adds r4, r0, 0 - lsls r4, 24 - lsrs r4, 24 - bl ScriptContext2_Enable - adds r0, r4, 0 - bl sub_80CBCC0 - ldr r1, _080CBCB8 @ =gTasks - lsls r0, r4, 2 - adds r0, r4 - lsls r0, 3 - adds r0, r1 - ldr r1, _080CBCBC @ =sub_80CBB28 - str r1, [r0] - pop {r4} - pop {r0} - bx r0 - .align 2, 0 -_080CBCB8: .4byte gTasks -_080CBCBC: .4byte sub_80CBB28 - thumb_func_end sub_80CBC90 - - thumb_func_start sub_80CBCC0 -sub_80CBCC0: @ 80CBCC0 - push {r4,r5,lr} - sub sp, 0x10 - lsls r0, 24 - lsrs r0, 24 - lsls r1, r0, 2 - adds r1, r0 - lsls r1, 3 - ldr r0, _080CBD44 @ =gTasks - adds r4, r1, r0 - mov r1, sp - ldr r0, _080CBD48 @ =gUnknown_83F5D1C - ldm r0!, {r2,r3,r5} - stm r1!, {r2,r3,r5} - ldr r0, [r0] - str r0, [r1] - movs r0, 0x8 - ldrsh r1, [r4, r0] - movs r2, 0xA - ldrsh r0, [r4, r2] - cmp r1, r0 - beq _080CBD3C - mov r2, sp - movs r3, 0x10 - ldrsh r1, [r4, r3] - lsls r1, 2 - movs r5, 0xC - ldrsh r0, [r4, r5] - lsls r0, 3 - adds r1, r0 - movs r3, 0 - strb r1, [r2, 0x1] - mov r1, sp - movs r0, 0x8 - strb r0, [r1, 0x2] - movs r0, 0x10 - ldrsh r1, [r4, r0] - lsls r1, 2 - movs r5, 0xC - ldrsh r0, [r4, r5] - lsls r0, 3 - adds r1, r0 - strb r1, [r2, 0x4] - mov r1, sp - movs r2, 0x12 - ldrsh r0, [r4, r2] - lsls r0, 3 - adds r0, 0xA - strb r0, [r1, 0x5] - mov r0, sp - strh r3, [r0, 0x6] - mov r2, sp - ldrh r0, [r4, 0xA] - ldrh r1, [r4, 0x8] - subs r0, r1 - strh r0, [r2, 0x8] - ldr r1, _080CBD4C @ =gUnknown_2039A18 - mov r0, sp - bl AddScrollIndicatorArrowPair - lsls r0, 24 - lsrs r0, 24 - strh r0, [r4, 0x20] -_080CBD3C: - add sp, 0x10 - pop {r4,r5} - pop {r0} - bx r0 - .align 2, 0 -_080CBD44: .4byte gTasks -_080CBD48: .4byte gUnknown_83F5D1C -_080CBD4C: .4byte gUnknown_2039A18 - thumb_func_end sub_80CBCC0 - - thumb_func_start sub_80CBD50 -sub_80CBD50: @ 80CBD50 - push {lr} - lsls r0, 24 - lsrs r0, 24 - lsls r1, r0, 2 - adds r1, r0 - lsls r1, 3 - ldr r0, _080CBD7C @ =gTasks - adds r2, r1, r0 - movs r0, 0x8 - ldrsh r1, [r2, r0] - movs r3, 0xA - ldrsh r0, [r2, r3] - cmp r1, r0 - beq _080CBD76 - ldrh r0, [r2, 0x20] - lsls r0, 24 - lsrs r0, 24 - bl RemoveScrollIndicatorArrowPair -_080CBD76: - pop {r0} - bx r0 - .align 2, 0 -_080CBD7C: .4byte gTasks - thumb_func_end sub_80CBD50 - - thumb_func_start sub_80CBD80 -sub_80CBD80: @ 80CBD80 - push {lr} - movs r0, 0x16 - bl HelpSystem_SetSomeVariable2 - movs r0, 0x8 - bl SetPlayerAvatarTransitionFlags - pop {r0} - bx r0 - thumb_func_end sub_80CBD80 - - thumb_func_start GetStarterPokemon -GetStarterPokemon: @ 80CBD94 - push {lr} - lsls r0, 16 - lsrs r1, r0, 16 - cmp r1, 0x2 - bls _080CBDA0 - movs r1, 0 -_080CBDA0: - ldr r0, _080CBDAC @ =sStarterMon - lsls r1, 1 - adds r1, r0 - ldrh r0, [r1] - pop {r1} - bx r1 - .align 2, 0 -_080CBDAC: .4byte sStarterMon - thumb_func_end GetStarterPokemon - - thumb_func_start ScrSpecial_GetStarter -ScrSpecial_GetStarter: @ 80CBDB0 - push {lr} - ldr r0, _080CBDC8 @ =0x00004031 - bl VarGet - lsls r0, 16 - lsrs r0, 16 - bl GetStarterPokemon - lsls r0, 16 - lsrs r0, 16 - pop {r1} - bx r1 - .align 2, 0 -_080CBDC8: .4byte 0x00004031 - thumb_func_end ScrSpecial_GetStarter - - thumb_func_start sub_80CBDCC -sub_80CBDCC: @ 80CBDCC - push {lr} - ldr r0, _080CBDE4 @ =gSpecialVar_0x8004 - ldrh r0, [r0] - bl SpeciesToNationalPokedexNum - lsls r0, 16 - lsrs r0, 16 - movs r1, 0x2 - bl GetSetPokedexFlag - pop {r0} - bx r0 - .align 2, 0 -_080CBDE4: .4byte gSpecialVar_0x8004 - thumb_func_end sub_80CBDCC - - thumb_func_start sub_80CBDE8 -sub_80CBDE8: @ 80CBDE8 - ldr r1, _080CBDF8 @ =gSelectedEventObject - movs r0, 0 - strb r0, [r1] - ldr r1, _080CBDFC @ =gUnknown_20370DA - movs r0, 0xFF - strh r0, [r1] - bx lr - .align 2, 0 -_080CBDF8: .4byte gSelectedEventObject -_080CBDFC: .4byte gUnknown_20370DA - thumb_func_end sub_80CBDE8 - - thumb_func_start ContextNpcGetTextColor -ContextNpcGetTextColor: @ 80CBE00 - push {lr} - ldr r0, _080CBE18 @ =gUnknown_20370DA - ldrh r0, [r0] - cmp r0, 0xFF - bne _080CBE44 - ldr r1, _080CBE1C @ =gSelectedEventObject - ldrb r0, [r1] - cmp r0, 0 - bne _080CBE20 - movs r0, 0x3 - b _080CBE48 - .align 2, 0 -_080CBE18: .4byte gUnknown_20370DA -_080CBE1C: .4byte gSelectedEventObject -_080CBE20: - ldr r2, _080CBE4C @ =gMapObjects - ldrb r1, [r1] - lsls r0, r1, 3 - adds r0, r1 - lsls r0, 2 - adds r0, r2 - ldrb r0, [r0, 0x5] - cmp r0, 0xEF - bls _080CBE40 - adds r0, 0x10 - lsls r0, 24 - lsrs r0, 24 - bl VarGetFieldObjectGraphicsId - lsls r0, 24 - lsrs r0, 24 -_080CBE40: - bl GetColorFromTextColorTable -_080CBE44: - lsls r0, 24 - lsrs r0, 24 -_080CBE48: - pop {r1} - bx r1 - .align 2, 0 -_080CBE4C: .4byte gMapObjects - thumb_func_end ContextNpcGetTextColor - - thumb_func_start sub_80CBE50 -sub_80CBE50: @ 80CBE50 - push {r4-r6,lr} - sub sp, 0x4 - lsls r0, 24 - lsrs r0, 24 - movs r1, 0x64 - muls r1, r0 - ldr r0, _080CBEA4 @ =gPlayerParty - adds r5, r1, r0 - ldr r6, _080CBEA8 @ =gStringVar1 - adds r0, r5, 0 - movs r1, 0x2 - adds r2, r6, 0 - bl GetMonData - mov r4, sp - adds r0, r5, 0 - movs r1, 0x3 - mov r2, sp - bl GetMonData - strb r0, [r4] - lsls r0, 24 - lsrs r0, 24 - cmp r0, 0x2 - bne _080CBEB0 - adds r0, r5, 0 - movs r1, 0xB - movs r2, 0 - bl GetMonData - movs r1, 0xB - muls r0, r1 - ldr r1, _080CBEAC @ =gSpeciesNames - adds r0, r1 - adds r1, r6, 0 - bl StringCompare - cmp r0, 0 - bne _080CBEB0 - movs r0, 0 - b _080CBEB2 - .align 2, 0 -_080CBEA4: .4byte gPlayerParty -_080CBEA8: .4byte gStringVar1 -_080CBEAC: .4byte gSpeciesNames -_080CBEB0: - movs r0, 0x1 -_080CBEB2: - add sp, 0x4 - pop {r4-r6} - pop {r1} - bx r1 - thumb_func_end sub_80CBE50 - - thumb_func_start sub_80CBEBC -sub_80CBEBC: @ 80CBEBC - push {lr} - bl GetLeadMonIndex - lsls r0, 24 - lsrs r0, 24 - bl sub_80CBE50 - lsls r0, 24 - lsrs r0, 24 - pop {r1} - bx r1 - thumb_func_end sub_80CBEBC - - thumb_func_start TV_PrintIntToStringVar -TV_PrintIntToStringVar: @ 80CBED4 - push {r4,r5,lr} - adds r4, r0, 0 - adds r5, r1, 0 - lsls r4, 24 - lsrs r4, 24 - adds r0, r5, 0 - bl CountDigits - adds r3, r0, 0 - ldr r0, _080CBF00 @ =gUnknown_83F5AF8 - lsls r4, 2 - adds r4, r0 - ldr r0, [r4] - lsls r3, 24 - lsrs r3, 24 - adds r1, r5, 0 - movs r2, 0 - bl ConvertIntToDecimalStringN - pop {r4,r5} - pop {r0} - bx r0 - .align 2, 0 -_080CBF00: .4byte gUnknown_83F5AF8 - thumb_func_end TV_PrintIntToStringVar - - thumb_func_start CountDigits -CountDigits: @ 80CBF04 - push {r4,lr} - adds r4, r0, 0 - movs r1, 0xA - bl __divsi3 - cmp r0, 0 - beq _080CBF90 - adds r0, r4, 0 - movs r1, 0x64 - bl __divsi3 - cmp r0, 0 - bne _080CBF22 - movs r0, 0x2 - b _080CBF9A -_080CBF22: - movs r1, 0xFA - lsls r1, 2 - adds r0, r4, 0 - bl __divsi3 - cmp r0, 0 - bne _080CBF34 - movs r0, 0x3 - b _080CBF9A -_080CBF34: - ldr r1, _080CBF44 @ =0x00002710 - adds r0, r4, 0 - bl __divsi3 - cmp r0, 0 - bne _080CBF48 - movs r0, 0x4 - b _080CBF9A - .align 2, 0 -_080CBF44: .4byte 0x00002710 -_080CBF48: - ldr r1, _080CBF58 @ =0x000186a0 - adds r0, r4, 0 - bl __divsi3 - cmp r0, 0 - bne _080CBF5C - movs r0, 0x5 - b _080CBF9A - .align 2, 0 -_080CBF58: .4byte 0x000186a0 -_080CBF5C: - ldr r1, _080CBF6C @ =0x000f4240 - adds r0, r4, 0 - bl __divsi3 - cmp r0, 0 - bne _080CBF70 - movs r0, 0x6 - b _080CBF9A - .align 2, 0 -_080CBF6C: .4byte 0x000f4240 -_080CBF70: - ldr r1, _080CBF80 @ =0x00989680 - adds r0, r4, 0 - bl __divsi3 - cmp r0, 0 - bne _080CBF84 - movs r0, 0x7 - b _080CBF9A - .align 2, 0 -_080CBF80: .4byte 0x00989680 -_080CBF84: - ldr r1, _080CBF94 @ =0x05f5e100 - adds r0, r4, 0 - bl __divsi3 - cmp r0, 0 - beq _080CBF98 -_080CBF90: - movs r0, 0x1 - b _080CBF9A - .align 2, 0 -_080CBF94: .4byte 0x05f5e100 -_080CBF98: - movs r0, 0x8 -_080CBF9A: - pop {r4} - pop {r1} - bx r1 - thumb_func_end CountDigits - - thumb_func_start sub_80CBFA0 -sub_80CBFA0: @ 80CBFA0 - push {r4,lr} - ldr r0, _080CBFC8 @ =gSpecialVar_0x8004 - ldrh r1, [r0] - movs r0, 0x64 - muls r0, r1 - ldr r1, _080CBFCC @ =gPlayerParty - adds r0, r1 - ldr r4, _080CBFD0 @ =gStringVar1 - movs r1, 0x2 - adds r2, r4, 0 - bl GetMonData - ldr r0, _080CBFD4 @ =gStringVar3 - adds r1, r4, 0 - bl StringCompare - cmp r0, 0 - beq _080CBFD8 - movs r0, 0x1 - b _080CBFDA - .align 2, 0 -_080CBFC8: .4byte gSpecialVar_0x8004 -_080CBFCC: .4byte gPlayerParty -_080CBFD0: .4byte gStringVar1 -_080CBFD4: .4byte gStringVar3 -_080CBFD8: - movs r0, 0 -_080CBFDA: - pop {r4} - pop {r1} - bx r1 - thumb_func_end sub_80CBFA0 - - thumb_func_start ChangeBoxPokemonNickname -ChangeBoxPokemonNickname: @ 80CBFE0 - push {r4-r6,lr} - mov r6, r8 - push {r6} - sub sp, 0x8 - ldr r0, _080CC050 @ =gSpecialVar_MonBoxId - ldrb r0, [r0] - ldr r1, _080CC054 @ =gSpecialVar_MonBoxPos - ldrb r1, [r1] - bl GetBoxedMonPtr - adds r6, r0, 0 - ldr r2, _080CC058 @ =gStringVar3 - movs r1, 0x2 - bl GetBoxMonData - ldr r0, _080CC05C @ =gStringVar2 - mov r8, r0 - adds r0, r6, 0 - movs r1, 0x2 - mov r2, r8 - bl GetBoxMonData - adds r0, r6, 0 - movs r1, 0xB - movs r2, 0 - bl GetBoxMonData - adds r5, r0, 0 - lsls r5, 16 - lsrs r5, 16 - adds r0, r6, 0 - bl GetBoxMonGender - adds r4, r0, 0 - lsls r4, 24 - lsrs r4, 24 - adds r0, r6, 0 - movs r1, 0 - movs r2, 0 - bl GetBoxMonData - str r0, [sp] - ldr r0, _080CC060 @ =ChangeBoxPokemonNickname_CB - str r0, [sp, 0x4] - movs r0, 0x3 - mov r1, r8 - adds r2, r5, 0 - adds r3, r4, 0 - bl DoNamingScreen - add sp, 0x8 - pop {r3} - mov r8, r3 - pop {r4-r6} - pop {r0} - bx r0 - .align 2, 0 -_080CC050: .4byte gSpecialVar_MonBoxId -_080CC054: .4byte gSpecialVar_MonBoxPos -_080CC058: .4byte gStringVar3 -_080CC05C: .4byte gStringVar2 -_080CC060: .4byte ChangeBoxPokemonNickname_CB - thumb_func_end ChangeBoxPokemonNickname - - thumb_func_start ChangeBoxPokemonNickname_CB -ChangeBoxPokemonNickname_CB: @ 80CC064 - push {lr} - ldr r0, _080CC07C @ =gSpecialVar_MonBoxId - ldrb r0, [r0] - ldr r1, _080CC080 @ =gSpecialVar_MonBoxPos - ldrb r1, [r1] - ldr r2, _080CC084 @ =gStringVar2 - bl SetBoxMonNickFromAnyBox - bl CB2_ReturnToFieldContinueScriptPlayMapMusic - pop {r0} - bx r0 - .align 2, 0 -_080CC07C: .4byte gSpecialVar_MonBoxId -_080CC080: .4byte gSpecialVar_MonBoxPos -_080CC084: .4byte gStringVar2 - thumb_func_end ChangeBoxPokemonNickname_CB - - thumb_func_start ChangePokemonNickname -ChangePokemonNickname: @ 80CC088 - push {r4-r6,lr} - mov r6, r10 - mov r5, r9 - mov r4, r8 - push {r4-r6} - sub sp, 0x8 - ldr r0, _080CC130 @ =gSpecialVar_0x8004 - mov r9, r0 - ldrh r0, [r0] - movs r1, 0x64 - mov r8, r1 - mov r1, r8 - muls r1, r0 - adds r0, r1, 0 - ldr r6, _080CC134 @ =gPlayerParty - adds r0, r6 - ldr r2, _080CC138 @ =gStringVar3 - movs r1, 0x2 - bl GetMonData - mov r1, r9 - ldrh r0, [r1] - mov r1, r8 - muls r1, r0 - adds r0, r1, 0 - adds r0, r6 - ldr r1, _080CC13C @ =gStringVar2 - mov r10, r1 - movs r1, 0x2 - mov r2, r10 - bl GetMonData - mov r1, r9 - ldrh r0, [r1] - mov r1, r8 - muls r1, r0 - adds r0, r1, 0 - adds r0, r6 - movs r1, 0xB - movs r2, 0 - bl GetMonData - adds r5, r0, 0 - lsls r5, 16 - lsrs r5, 16 - mov r1, r9 - ldrh r0, [r1] - mov r1, r8 - muls r1, r0 - adds r0, r1, 0 - adds r0, r6 - bl GetMonGender - adds r4, r0, 0 - lsls r4, 24 - lsrs r4, 24 - mov r1, r9 - ldrh r0, [r1] - mov r1, r8 - muls r1, r0 - adds r0, r1, 0 - adds r0, r6 - movs r1, 0 - movs r2, 0 - bl GetMonData - str r0, [sp] - ldr r0, _080CC140 @ =ChangePokemonNickname_CB - str r0, [sp, 0x4] - movs r0, 0x3 - mov r1, r10 - adds r2, r5, 0 - adds r3, r4, 0 - bl DoNamingScreen - add sp, 0x8 - pop {r3-r5} - mov r8, r3 - mov r9, r4 - mov r10, r5 - pop {r4-r6} - pop {r0} - bx r0 - .align 2, 0 -_080CC130: .4byte gSpecialVar_0x8004 -_080CC134: .4byte gPlayerParty -_080CC138: .4byte gStringVar3 -_080CC13C: .4byte gStringVar2 -_080CC140: .4byte ChangePokemonNickname_CB - thumb_func_end ChangePokemonNickname - - thumb_func_start ChangePokemonNickname_CB -ChangePokemonNickname_CB: @ 80CC144 - push {lr} - ldr r0, _080CC164 @ =gSpecialVar_0x8004 - ldrh r1, [r0] - movs r0, 0x64 - muls r0, r1 - ldr r1, _080CC168 @ =gPlayerParty - adds r0, r1 - ldr r2, _080CC16C @ =gStringVar2 - movs r1, 0x2 - bl SetMonData - bl CB2_ReturnToFieldContinueScriptPlayMapMusic - pop {r0} - bx r0 - .align 2, 0 -_080CC164: .4byte gSpecialVar_0x8004 -_080CC168: .4byte gPlayerParty -_080CC16C: .4byte gStringVar2 - thumb_func_end ChangePokemonNickname_CB - - thumb_func_start TV_CopyNicknameToStringVar1AndEnsureTerminated -TV_CopyNicknameToStringVar1AndEnsureTerminated: @ 80CC170 - push {r4,lr} - ldr r0, _080CC194 @ =gSpecialVar_0x8004 - ldrh r1, [r0] - movs r0, 0x64 - muls r0, r1 - ldr r1, _080CC198 @ =gPlayerParty - adds r0, r1 - ldr r4, _080CC19C @ =gStringVar1 - movs r1, 0x2 - adds r2, r4, 0 - bl GetMonData - adds r0, r4, 0 - bl StringGetEnd10 - pop {r4} - pop {r0} - bx r0 - .align 2, 0 -_080CC194: .4byte gSpecialVar_0x8004 -_080CC198: .4byte gPlayerParty -_080CC19C: .4byte gStringVar1 - thumb_func_end TV_CopyNicknameToStringVar1AndEnsureTerminated - - thumb_func_start TV_CheckMonOTIDEqualsPlayerID -TV_CheckMonOTIDEqualsPlayerID: @ 80CC1A0 - push {r4,lr} - bl sub_80CC1E4 - adds r4, r0, 0 - ldr r0, _080CC1C8 @ =gSpecialVar_0x8004 - ldrh r1, [r0] - movs r0, 0x64 - muls r0, r1 - ldr r1, _080CC1CC @ =gPlayerParty - adds r0, r1 - movs r1, 0x1 - movs r2, 0 - bl GetMonData - cmp r4, r0 - bne _080CC1D4 - ldr r1, _080CC1D0 @ =gSpecialVar_Result - movs r0, 0 - b _080CC1D8 - .align 2, 0 -_080CC1C8: .4byte gSpecialVar_0x8004 -_080CC1CC: .4byte gPlayerParty -_080CC1D0: .4byte gSpecialVar_Result -_080CC1D4: - ldr r1, _080CC1E0 @ =gSpecialVar_Result - movs r0, 0x1 -_080CC1D8: - strh r0, [r1] - pop {r4} - pop {r0} - bx r0 - .align 2, 0 -_080CC1E0: .4byte gSpecialVar_Result - thumb_func_end TV_CheckMonOTIDEqualsPlayerID - - thumb_func_start sub_80CC1E4 -sub_80CC1E4: @ 80CC1E4 - ldr r0, _080CC200 @ =gSaveBlock2Ptr - ldr r2, [r0] - ldrb r0, [r2, 0xD] - lsls r0, 24 - ldrb r1, [r2, 0xC] - lsls r1, 16 - orrs r0, r1 - ldrb r1, [r2, 0xB] - lsls r1, 8 - orrs r0, r1 - ldrb r1, [r2, 0xA] - orrs r0, r1 - bx lr - .align 2, 0 -_080CC200: .4byte gSaveBlock2Ptr - thumb_func_end sub_80CC1E4 - - thumb_func_start GetUnlockedSeviiAreas -GetUnlockedSeviiAreas: @ 80CC204 - push {r4,lr} - movs r4, 0 - ldr r0, _080CC2A4 @ =0x0000089b - bl FlagGet - lsls r0, 24 - lsrs r0, 24 - cmp r0, 0x1 - bne _080CC218 - movs r4, 0x1 -_080CC218: - ldr r0, _080CC2A8 @ =0x0000089c - bl FlagGet - lsls r0, 24 - lsrs r0, 24 - cmp r0, 0x1 - bne _080CC22A - movs r0, 0x2 - orrs r4, r0 -_080CC22A: - ldr r0, _080CC2AC @ =0x0000089d - bl FlagGet - lsls r0, 24 - lsrs r0, 24 - cmp r0, 0x1 - bne _080CC240 - movs r0, 0x4 - orrs r4, r0 - lsls r0, r4, 24 - lsrs r4, r0, 24 -_080CC240: - ldr r0, _080CC2B0 @ =0x0000089e - bl FlagGet - lsls r0, 24 - lsrs r0, 24 - cmp r0, 0x1 - bne _080CC256 - movs r0, 0x8 - orrs r4, r0 - lsls r0, r4, 24 - lsrs r4, r0, 24 -_080CC256: - ldr r0, _080CC2B4 @ =0x0000089f - bl FlagGet - lsls r0, 24 - lsrs r0, 24 - cmp r0, 0x1 - bne _080CC26C - movs r0, 0x10 - orrs r4, r0 - lsls r0, r4, 24 - lsrs r4, r0, 24 -_080CC26C: - ldr r0, _080CC2B8 @ =0x000008a1 - bl FlagGet - lsls r0, 24 - lsrs r0, 24 - cmp r0, 0x1 - bne _080CC282 - movs r0, 0x20 - orrs r4, r0 - lsls r0, r4, 24 - lsrs r4, r0, 24 -_080CC282: - movs r0, 0x8A - lsls r0, 4 - bl FlagGet - lsls r0, 24 - lsrs r0, 24 - cmp r0, 0x1 - bne _080CC29A - movs r0, 0x40 - orrs r4, r0 - lsls r0, r4, 24 - lsrs r4, r0, 24 -_080CC29A: - adds r0, r4, 0 - pop {r4} - pop {r1} - bx r1 - .align 2, 0 -_080CC2A4: .4byte 0x0000089b -_080CC2A8: .4byte 0x0000089c -_080CC2AC: .4byte 0x0000089d -_080CC2B0: .4byte 0x0000089e -_080CC2B4: .4byte 0x0000089f -_080CC2B8: .4byte 0x000008a1 - thumb_func_end GetUnlockedSeviiAreas - - thumb_func_start sub_80CC2BC -sub_80CC2BC: @ 80CC2BC - push {r4-r7,lr} - sub sp, 0x24 - movs r5, 0 - add r7, sp, 0xC - movs r1, 0 -_080CC2C6: - lsls r0, r5, 1 - add r0, sp - strh r1, [r0] - adds r0, r5, 0x1 - lsls r0, 24 - lsrs r5, r0, 24 - cmp r5, 0x5 - bls _080CC2C6 - bl CalculatePlayerPartyCount - lsls r0, 24 - lsrs r6, r0, 24 - movs r5, 0 - cmp r5, r6 - bcs _080CC318 -_080CC2E4: - movs r0, 0x64 - adds r4, r5, 0 - muls r4, r0 - ldr r0, _080CC3BC @ =gPlayerParty - adds r4, r0 - adds r0, r4, 0 - movs r1, 0x41 - movs r2, 0 - bl GetMonData - lsls r1, r5, 1 - add r1, sp - strh r0, [r1] - adds r0, r4, 0 - movs r1, 0 - movs r2, 0 - bl GetMonData - lsls r1, r5, 2 - adds r1, r7, r1 - str r0, [r1] - adds r0, r5, 0x1 - lsls r0, 24 - lsrs r5, r0, 24 - cmp r5, r6 - bcc _080CC2E4 -_080CC318: - ldr r4, _080CC3C0 @ =0x00004043 - mov r0, sp - ldrh r0, [r0] - ldr r1, [sp, 0xC] - bl SpeciesToMailSpecies - adds r1, r0, 0 - lsls r1, 16 - lsrs r1, 16 - adds r0, r4, 0 - bl VarSet - adds r4, 0x1 - mov r0, sp - ldrh r0, [r0, 0x2] - ldr r1, [r7, 0x4] - bl SpeciesToMailSpecies - adds r1, r0, 0 - lsls r1, 16 - lsrs r1, 16 - adds r0, r4, 0 - bl VarSet - adds r4, 0x1 - mov r0, sp - ldrh r0, [r0, 0x4] - ldr r1, [r7, 0x8] - bl SpeciesToMailSpecies - adds r1, r0, 0 - lsls r1, 16 - lsrs r1, 16 - adds r0, r4, 0 - bl VarSet - adds r4, 0x1 - mov r0, sp - ldrh r0, [r0, 0x6] - ldr r1, [r7, 0xC] - bl SpeciesToMailSpecies - adds r1, r0, 0 - lsls r1, 16 - lsrs r1, 16 - adds r0, r4, 0 - bl VarSet - adds r4, 0x1 - mov r0, sp - ldrh r0, [r0, 0x8] - ldr r1, [r7, 0x10] - bl SpeciesToMailSpecies - adds r1, r0, 0 - lsls r1, 16 - lsrs r1, 16 - adds r0, r4, 0 - bl VarSet - adds r4, 0x1 - mov r0, sp - ldrh r0, [r0, 0xA] - ldr r1, [r7, 0x14] - bl SpeciesToMailSpecies - adds r1, r0, 0 - lsls r1, 16 - lsrs r1, 16 - adds r0, r4, 0 - bl VarSet - ldr r0, _080CC3C4 @ =0x00004042 - ldr r1, _080CC3C8 @ =gSpecialVar_0x8004 - ldrh r1, [r1] - bl VarSet - add sp, 0x24 - pop {r4-r7} - pop {r0} - bx r0 - .align 2, 0 -_080CC3BC: .4byte gPlayerParty -_080CC3C0: .4byte 0x00004043 -_080CC3C4: .4byte 0x00004042 -_080CC3C8: .4byte gSpecialVar_0x8004 - thumb_func_end sub_80CC2BC - - thumb_func_start sub_80CC3CC -sub_80CC3CC: @ 80CC3CC - push {r4-r6,lr} - movs r5, 0 - ldr r4, _080CC3F8 @ =gSpecialVar_0x8004 - movs r0, 0xA - bl GetGameStat - strh r0, [r4] - movs r0, 0xD - bl GetGameStat - adds r6, r0, 0 - ldr r4, _080CC3FC @ =gSpecialVar_0x8006 - movs r0, 0x17 - bl GetGameStat - strh r0, [r4] - ldr r1, _080CC400 @ =0x0000ffff - cmp r6, r1 - bls _080CC408 - ldr r0, _080CC404 @ =gSpecialVar_0x8005 - strh r1, [r0] - b _080CC40C - .align 2, 0 -_080CC3F8: .4byte gSpecialVar_0x8004 -_080CC3FC: .4byte gSpecialVar_0x8006 -_080CC400: .4byte 0x0000ffff -_080CC404: .4byte gSpecialVar_0x8005 -_080CC408: - ldr r0, _080CC440 @ =gSpecialVar_0x8005 - strh r6, [r0] -_080CC40C: - adds r1, r0, 0 - ldr r0, _080CC444 @ =gSpecialVar_0x8004 - ldrh r0, [r0] - cmp r0, 0 - beq _080CC41A - movs r0, 0x1 - orrs r5, r0 -_080CC41A: - ldrh r0, [r1] - cmp r0, 0 - beq _080CC428 - movs r0, 0x2 - orrs r5, r0 - lsls r0, r5, 16 - lsrs r5, r0, 16 -_080CC428: - ldr r0, _080CC448 @ =gSpecialVar_0x8006 - ldrh r0, [r0] - cmp r0, 0 - beq _080CC438 - movs r0, 0x4 - orrs r5, r0 - lsls r0, r5, 16 - lsrs r5, r0, 16 -_080CC438: - adds r0, r5, 0 - pop {r4-r6} - pop {r1} - bx r1 - .align 2, 0 -_080CC440: .4byte gSpecialVar_0x8005 -_080CC444: .4byte gSpecialVar_0x8004 -_080CC448: .4byte gSpecialVar_0x8006 - thumb_func_end sub_80CC3CC - - thumb_func_start GetHiddenItemAttr -GetHiddenItemAttr: @ 80CC44C - push {lr} - lsls r1, 24 - lsrs r1, 24 - adds r2, r1, 0 - cmp r1, 0 - bne _080CC45E - lsls r0, 16 - lsrs r0, 16 - b _080CC486 -_080CC45E: - cmp r1, 0x1 - bne _080CC470 - lsrs r0, 16 - movs r1, 0xFF - ands r0, r1 - movs r1, 0xFA - lsls r1, 2 - adds r0, r1 - b _080CC486 -_080CC470: - cmp r1, 0x2 - bne _080CC47C - lsrs r0, 24 - movs r1, 0x7F - ands r0, r1 - b _080CC486 -_080CC47C: - cmp r2, 0x3 - beq _080CC484 - movs r0, 0x1 - b _080CC486 -_080CC484: - lsrs r0, 31 -_080CC486: - pop {r1} - bx r1 - thumb_func_end GetHiddenItemAttr - - thumb_func_start sub_80CC48C -sub_80CC48C: @ 80CC48C - push {r4,r5,lr} - bl CalculatePlayerPartyCount - lsls r0, 24 - lsrs r5, r0, 24 - movs r4, 0 - cmp r4, r5 - bcs _080CC4CA -_080CC49C: - movs r0, 0x64 - muls r0, r4 - ldr r1, _080CC4B8 @ =gPlayerParty - adds r0, r1 - movs r1, 0x41 - movs r2, 0 - bl GetMonData - ldr r1, _080CC4BC @ =gSpecialVar_0x8004 - ldrh r1, [r1] - cmp r0, r1 - bne _080CC4C0 - movs r0, 0x1 - b _080CC4CC - .align 2, 0 -_080CC4B8: .4byte gPlayerParty -_080CC4BC: .4byte gSpecialVar_0x8004 -_080CC4C0: - adds r0, r4, 0x1 - lsls r0, 24 - lsrs r4, r0, 24 - cmp r4, r5 - bcc _080CC49C -_080CC4CA: - movs r0, 0 -_080CC4CC: - pop {r4,r5} - pop {r1} - bx r1 - thumb_func_end sub_80CC48C - - thumb_func_start sub_80CC4D4 -sub_80CC4D4: @ 80CC4D4 - push {r4-r7,lr} - movs r3, 0 - ldr r0, _080CC508 @ =gSaveBlock1Ptr - ldr r4, [r0] - movs r6, 0x4 - ldrsb r6, [r4, r6] - ldr r5, _080CC50C @ =gUnknown_83F5D32 - adds r0, r5, 0x2 - mov r12, r0 - adds r7, r5, 0x1 -_080CC4E8: - lsls r0, r3, 1 - adds r2, r0, r3 - adds r0, r2, r5 - ldrb r0, [r0] - cmp r6, r0 - bne _080CC510 - movs r1, 0x5 - ldrsb r1, [r4, r1] - adds r0, r2, r7 - ldrb r0, [r0] - cmp r1, r0 - bne _080CC510 - mov r1, r12 - adds r0, r2, r1 - ldrb r0, [r0] - b _080CC51C - .align 2, 0 -_080CC508: .4byte gSaveBlock1Ptr -_080CC50C: .4byte gUnknown_83F5D32 -_080CC510: - adds r0, r3, 0x1 - lsls r0, 24 - lsrs r3, r0, 24 - cmp r3, 0xB - bls _080CC4E8 - movs r0, 0x1 -_080CC51C: - pop {r4-r7} - pop {r1} - bx r1 - thumb_func_end sub_80CC4D4 - - thumb_func_start sub_80CC524 -sub_80CC524: @ 80CC524 - push {lr} - movs r0, 0xB - movs r1, 0 - bl sub_8113550 - pop {r0} - bx r0 - thumb_func_end sub_80CC524 - - thumb_func_start sub_80CC534 -sub_80CC534: @ 80CC534 - push {r4-r6,lr} - movs r4, 0 - ldr r6, _080CC57C @ =gSaveBlock1Ptr - ldr r5, _080CC580 @ =gUnknown_83F5D58 -_080CC53C: - ldr r3, [r6] - movs r1, 0x4 - ldrsb r1, [r3, r1] - lsls r0, r4, 3 - adds r2, r0, r5 - ldrh r0, [r2] - cmp r1, r0 - bne _080CC58C - movs r0, 0x5 - ldrsb r0, [r3, r0] - ldrh r2, [r2, 0x2] - cmp r0, r2 - bne _080CC58C - ldr r5, _080CC584 @ =0x0000404d - adds r0, r5, 0 - bl VarGet - lsls r0, 16 - lsrs r0, 16 - cmp r0, 0x23 - bne _080CC56A - cmp r4, 0x20 - beq _080CC596 -_080CC56A: - adds r0, r5, 0 - adds r1, r4, 0 - bl VarSet - ldr r0, _080CC588 @ =0x00000808 - bl FlagSet - b _080CC596 - .align 2, 0 -_080CC57C: .4byte gSaveBlock1Ptr -_080CC580: .4byte gUnknown_83F5D58 -_080CC584: .4byte 0x0000404d -_080CC588: .4byte 0x00000808 -_080CC58C: - adds r0, r4, 0x1 - lsls r0, 24 - lsrs r4, r0, 24 - cmp r4, 0x32 - bls _080CC53C -_080CC596: - pop {r4-r6} - pop {r0} - bx r0 - thumb_func_end sub_80CC534 - - thumb_func_start sub_80CC59C -sub_80CC59C: @ 80CC59C - push {r4-r7,lr} - sub sp, 0x8 - ldr r0, _080CC5F8 @ =0x0000404d - bl VarGet - lsls r0, 16 - lsrs r5, r0, 16 - ldr r6, _080CC5FC @ =0xffffff00 - ldr r0, [sp, 0x4] - ands r0, r6 - ldr r4, _080CC600 @ =0xffff00ff - ands r0, r4 - str r0, [sp, 0x4] - ldr r0, _080CC604 @ =0x00000808 - bl FlagGet - lsls r0, 24 - cmp r0, 0 - bne _080CC5C4 - b _080CC71E -_080CC5C4: - cmp r5, 0x5 - bne _080CC61C - ldr r0, _080CC608 @ =gSaveBlock1Ptr - ldr r2, [r0] - movs r1, 0x4 - ldrsb r1, [r2, r1] - adds r7, r0, 0 - cmp r1, 0xF - bne _080CC67C - movs r0, 0x5 - ldrsb r0, [r2, r0] - cmp r0, 0 - beq _080CC5E2 - cmp r0, 0x3 - bne _080CC67C -_080CC5E2: - ldr r1, [sp, 0x4] - ands r1, r6 - movs r0, 0x66 - orrs r1, r0 - str r1, [sp, 0x4] - movs r0, 0x5 - ldrsb r0, [r2, r0] - cmp r0, 0 - bne _080CC60C - lsls r0, r5, 8 - b _080CC610 - .align 2, 0 -_080CC5F8: .4byte 0x0000404d -_080CC5FC: .4byte 0xffffff00 -_080CC600: .4byte 0xffff00ff -_080CC604: .4byte 0x00000808 -_080CC608: .4byte gSaveBlock1Ptr -_080CC60C: - movs r0, 0xC0 - lsls r0, 3 -_080CC610: - ands r1, r4 - orrs r1, r0 - str r1, [sp, 0x4] - add r1, sp, 0x4 - movs r0, 0x23 - b _080CC66C -_080CC61C: - ldr r7, _080CC65C @ =gSaveBlock1Ptr - cmp r5, 0x3 - bne _080CC67C - ldr r1, [r7] - movs r0, 0x4 - ldrsb r0, [r1, r0] - cmp r0, 0x3 - bne _080CC67C - ldrb r0, [r1, 0x5] - subs r0, 0x29 - lsls r0, 24 - lsrs r0, 24 - cmp r0, 0x1 - bhi _080CC67C - ldr r1, _080CC660 @ =gUnknown_83F5D58 - ldrh r0, [r1, 0x18] - ldrh r1, [r1, 0x1A] - bl get_mapheader_by_bank_and_number - ldrb r0, [r0, 0x14] - add r1, sp, 0x4 - strb r0, [r1] - ldr r0, [r7] - ldrb r0, [r0, 0x5] - lsls r0, 24 - asrs r0, 24 - adds r6, r1, 0 - cmp r0, 0x29 - bne _080CC664 - strb r5, [r6, 0x1] - b _080CC668 - .align 2, 0 -_080CC65C: .4byte gSaveBlock1Ptr -_080CC660: .4byte gUnknown_83F5D58 -_080CC664: - movs r0, 0x4 - strb r0, [r6, 0x1] -_080CC668: - movs r0, 0x23 - adds r1, r6, 0 -_080CC66C: - bl sub_8113550 - ldr r0, _080CC678 @ =0x00000808 - bl FlagClear - b _080CC71E - .align 2, 0 -_080CC678: .4byte 0x00000808 -_080CC67C: - ldr r3, [r7] - movs r2, 0x4 - ldrsb r2, [r3, r2] - ldr r1, _080CC6D0 @ =gUnknown_83F5D58 - lsls r0, r5, 3 - adds r1, r0, r1 - ldrh r0, [r1, 0x4] - cmp r2, r0 - bne _080CC71E - movs r0, 0x5 - ldrsb r0, [r3, r0] - ldrh r2, [r1, 0x6] - cmp r0, r2 - bne _080CC71E - ldrh r0, [r1] - ldrh r1, [r1, 0x2] - bl get_mapheader_by_bank_and_number - ldrb r1, [r0, 0x14] - add r0, sp, 0x4 - strb r1, [r0] - strb r5, [r0, 0x1] - adds r6, r0, 0 - cmp r5, 0x16 - bne _080CC6D4 - mov r4, sp - adds r4, 0x2 - mov r0, sp - adds r1, r4, 0 - bl PlayerGetDestCoords - mov r0, sp - movs r1, 0 - ldrsh r0, [r0, r1] - cmp r0, 0xF - bne _080CC6F6 - movs r2, 0 - ldrsh r0, [r4, r2] - cmp r0, 0x1A - beq _080CC6FC - b _080CC6F6 - .align 2, 0 -_080CC6D0: .4byte gUnknown_83F5D58 -_080CC6D4: - cmp r5, 0x2A - bne _080CC6FC - mov r4, sp - adds r4, 0x2 - mov r0, sp - adds r1, r4, 0 - bl PlayerGetDestCoords - mov r0, sp - movs r1, 0 - ldrsh r0, [r0, r1] - cmp r0, 0x43 - bne _080CC6F6 - movs r2, 0 - ldrsh r0, [r4, r2] - cmp r0, 0xF - beq _080CC6FC -_080CC6F6: - ldrb r0, [r6, 0x1] - adds r0, 0x1 - strb r0, [r6, 0x1] -_080CC6FC: - movs r0, 0x23 - adds r1, r6, 0 - bl sub_8113550 - ldr r4, _080CC728 @ =0x00000808 - adds r0, r4, 0 - bl FlagClear - cmp r5, 0x23 - bne _080CC71E - ldr r0, _080CC72C @ =0x0000404d - movs r1, 0x20 - bl VarSet - adds r0, r4, 0 - bl FlagSet -_080CC71E: - add sp, 0x8 - pop {r4-r7} - pop {r0} - bx r0 - .align 2, 0 -_080CC728: .4byte 0x00000808 -_080CC72C: .4byte 0x0000404d - thumb_func_end sub_80CC59C - - thumb_func_start sub_80CC730 -sub_80CC730: @ 80CC730 - push {lr} - ldr r0, _080CC744 @ =gSpecialVar_Result - ldrh r0, [r0] - cmp r0, 0x4 - bhi _080CC77C - lsls r0, 2 - ldr r1, _080CC748 @ =_080CC74C - adds r0, r1 - ldr r0, [r0] - mov pc, r0 - .align 2, 0 -_080CC744: .4byte gSpecialVar_Result -_080CC748: .4byte _080CC74C - .align 2, 0 -_080CC74C: - .4byte _080CC760 - .4byte _080CC764 - .4byte _080CC768 - .4byte _080CC76C - .4byte _080CC770 -_080CC760: - movs r0, 0x3 - b _080CC772 -_080CC764: - movs r0, 0x4 - b _080CC772 -_080CC768: - movs r0, 0 - b _080CC772 -_080CC76C: - movs r0, 0x1 - b _080CC772 -_080CC770: - movs r0, 0x2 -_080CC772: - bl sub_81445C0 - lsls r0, 16 - lsrs r0, 16 - b _080CC78A -_080CC77C: - ldr r0, _080CC790 @ =gUnknown_83F5EF0 "C:/WORK/POKeFRLG/src/pm_lgfr_ose/source/scr_tool.c" - ldr r1, _080CC794 @ =0x00000f21 - ldr r2, _080CC798 @ =gUnknown_83F5F24 "0" - movs r3, 0x1 - bl AGBAssert - movs r0, 0 -_080CC78A: - pop {r1} - bx r1 - .align 2, 0 -_080CC790: .4byte gUnknown_83F5EF0 -_080CC794: .4byte 0x00000f21 -_080CC798: .4byte gUnknown_83F5F24 - thumb_func_end sub_80CC730 - - thumb_func_start set_unknown_box_id -set_unknown_box_id: @ 80CC79C - ldr r1, _080CC7A4 @ =gUnknown_2039A1A - strb r0, [r1] - bx lr - .align 2, 0 -_080CC7A4: .4byte gUnknown_2039A1A - thumb_func_end set_unknown_box_id - - thumb_func_start get_unknown_box_id -get_unknown_box_id: @ 80CC7A8 - ldr r0, _080CC7B0 @ =gUnknown_2039A1A - ldrb r0, [r0] - bx lr - .align 2, 0 -_080CC7B0: .4byte gUnknown_2039A1A - thumb_func_end get_unknown_box_id - - thumb_func_start sub_80CC7B4 -sub_80CC7B4: @ 80CC7B4 - push {r4,r5,lr} - ldr r5, _080CC7E8 @ =0x00000843 - adds r0, r5, 0 - bl FlagGet - lsls r0, 24 - cmp r0, 0 - bne _080CC7F0 - bl StorageGetCurrentBox - adds r4, r0, 0 - lsls r4, 24 - lsrs r4, 24 - ldr r0, _080CC7EC @ =0x00004037 - bl VarGet - lsls r0, 16 - lsrs r0, 16 - cmp r4, r0 - beq _080CC7F0 - adds r0, r5, 0 - bl FlagSet - movs r0, 0x1 - b _080CC7F2 - .align 2, 0 -_080CC7E8: .4byte 0x00000843 -_080CC7EC: .4byte 0x00004037 -_080CC7F0: - movs r0, 0 -_080CC7F2: - pop {r4,r5} - pop {r1} - bx r1 - thumb_func_end sub_80CC7B4 - - thumb_func_start sub_80CC7F8 -sub_80CC7F8: @ 80CC7F8 - push {r4-r7,lr} - ldr r0, _080CC850 @ =0x00004037 - bl VarGet - lsls r0, 24 - lsrs r0, 24 - bl set_unknown_box_id - bl StorageGetCurrentBox - lsls r0, 24 - lsrs r4, r0, 24 -_080CC810: - movs r5, 0 - lsls r6, r4, 24 - lsls r7, r4, 16 -_080CC816: - lsls r1, r5, 24 - lsrs r1, 24 - lsrs r0, r6, 24 - bl GetBoxedMonPtr - movs r1, 0xB - movs r2, 0 - bl GetBoxMonData - cmp r0, 0 - bne _080CC858 - bl get_unknown_box_id - lsls r0, 16 - lsrs r0, 16 - cmp r0, r4 - beq _080CC83E - ldr r0, _080CC854 @ =0x00000843 - bl FlagClear -_080CC83E: - ldr r0, _080CC850 @ =0x00004037 - lsrs r1, r7, 16 - bl VarSet - bl sub_80CC7B4 - lsls r0, 24 - lsrs r0, 24 - b _080CC874 - .align 2, 0 -_080CC850: .4byte 0x00004037 -_080CC854: .4byte 0x00000843 -_080CC858: - adds r5, 0x1 - cmp r5, 0x1D - ble _080CC816 - adds r4, 0x1 - cmp r4, 0xE - bne _080CC866 - movs r4, 0 -_080CC866: - bl StorageGetCurrentBox - lsls r0, 24 - lsrs r0, 24 - cmp r4, r0 - bne _080CC810 - movs r0, 0 -_080CC874: - pop {r4-r7} - pop {r1} - bx r1 - thumb_func_end sub_80CC7F8 - - thumb_func_start sub_80CC87C -sub_80CC87C: @ 80CC87C - push {r4,lr} - ldr r0, _080CC8AC @ =gUnknown_2031DB4 - movs r1, 0 - ldrsb r1, [r0, r1] - lsls r1, 8 - ldrb r0, [r0, 0x1] - lsls r0, 24 - asrs r0, 24 - adds r0, r1 - lsls r0, 16 - lsrs r3, r0, 16 - ldr r2, _080CC8B0 @ =gUnknown_83F5F26 - ldrh r0, [r2] - ldr r1, _080CC8B4 @ =0x0000ffff - cmp r0, r1 - beq _080CC8C2 - adds r4, r1, 0 - adds r1, r2, 0 -_080CC8A0: - ldrh r0, [r2] - cmp r0, r3 - bne _080CC8B8 - movs r0, 0x1 - b _080CC8C4 - .align 2, 0 -_080CC8AC: .4byte gUnknown_2031DB4 -_080CC8B0: .4byte gUnknown_83F5F26 -_080CC8B4: .4byte 0x0000ffff -_080CC8B8: - adds r1, 0x2 - adds r2, 0x2 - ldrh r0, [r1] - cmp r0, r4 - bne _080CC8A0 -_080CC8C2: - movs r0, 0 -_080CC8C4: - pop {r4} - pop {r1} - bx r1 - thumb_func_end sub_80CC87C - - thumb_func_start sub_80CC8CC -sub_80CC8CC: @ 80CC8CC - push {r4,lr} - ldr r1, _080CC8E4 @ =gSpecialVar_0x8004 - ldr r2, _080CC8E8 @ =0xfffffedf - adds r0, r2, 0 - ldrh r2, [r1] - adds r0, r2 - lsls r0, 16 - lsrs r0, 16 - cmp r0, 0x39 - bls _080CC8EC - movs r0, 0 - b _080CC908 - .align 2, 0 -_080CC8E4: .4byte gSpecialVar_0x8004 -_080CC8E8: .4byte 0xfffffedf -_080CC8EC: - ldr r4, _080CC910 @ =gStringVar1 - ldrh r0, [r1] - bl ItemIdToBattleMoveId - lsls r0, 16 - lsrs r0, 16 - movs r1, 0xD - muls r1, r0 - ldr r0, _080CC914 @ =gMoveNames - adds r1, r0 - adds r0, r4, 0 - bl StringCopy - movs r0, 0x1 -_080CC908: - pop {r4} - pop {r1} - bx r1 - .align 2, 0 -_080CC910: .4byte gStringVar1 -_080CC914: .4byte gMoveNames - thumb_func_end sub_80CC8CC - - thumb_func_start sub_80CC918 -sub_80CC918: @ 80CC918 - push {r4,lr} - ldr r4, _080CC940 @ =0x00004025 - adds r0, r4, 0 - bl VarGet - lsls r0, 16 - lsrs r1, r0, 16 - ldr r0, _080CC944 @ =0x000001f3 - cmp r1, r0 - bhi _080CC938 - adds r1, 0x1 - lsls r1, 16 - lsrs r1, 16 - adds r0, r4, 0 - bl VarSet -_080CC938: - pop {r4} - pop {r0} - bx r0 - .align 2, 0 -_080CC940: .4byte 0x00004025 -_080CC944: .4byte 0x000001f3 - thumb_func_end sub_80CC918 - - thumb_func_start sub_80CC948 -sub_80CC948: @ 80CC948 - push {lr} - ldr r0, _080CC968 @ =gSpecialVar_0x8004 - ldrh r1, [r0] - movs r0, 0x64 - muls r0, r1 - ldr r1, _080CC96C @ =gPlayerParty - adds r0, r1 - movs r1, 0x6 - bl AdjustFriendship - ldr r0, _080CC970 @ =0x00004025 - movs r1, 0 - bl VarSet - pop {r0} - bx r0 - .align 2, 0 -_080CC968: .4byte gSpecialVar_0x8004 -_080CC96C: .4byte gPlayerParty -_080CC970: .4byte 0x00004025 - thumb_func_end sub_80CC948 - - thumb_func_start sub_80CC974 -sub_80CC974: @ 80CC974 - push {r4-r6,lr} - ldr r0, _080CC9A8 @ =sub_80CCA18 - movs r1, 0x8 - bl CreateTask - lsls r0, 24 - lsrs r0, 24 - lsls r1, r0, 2 - adds r1, r0 - lsls r5, r1, 3 - ldr r6, _080CC9AC @ =gTasks+0x8 - adds r4, r5, r6 - movs r0, 0x3 - bl FlagGet - lsls r0, 24 - lsrs r0, 24 - cmp r0, 0x1 - bne _080CC9B4 - adds r0, r6, 0 - subs r0, 0x8 - adds r0, r5, r0 - ldr r1, _080CC9B0 @ =sub_80CCAF4 - str r1, [r0] - b _080CCA08 - .align 2, 0 -_080CC9A8: .4byte sub_80CCA18 -_080CC9AC: .4byte gTasks+0x8 -_080CC9B0: .4byte sub_80CCAF4 -_080CC9B4: - ldr r0, _080CC9D8 @ =gSaveBlock1Ptr - ldr r0, [r0] - ldrh r1, [r0, 0x4] - ldr r0, _080CC9DC @ =0x00004f01 - cmp r1, r0 - bne _080CC9E8 - ldr r0, _080CC9E0 @ =gUnknown_83F61FB - ldrb r0, [r0] - strh r0, [r4] - movs r0, 0x8 - strh r0, [r4, 0x4] - ldr r0, _080CC9E4 @ =gUnknown_83F60D0 - movs r1, 0x70 - movs r2, 0x20 - bl LoadPalette - b _080CC9FC - .align 2, 0 -_080CC9D8: .4byte gSaveBlock1Ptr -_080CC9DC: .4byte 0x00004f01 -_080CC9E0: .4byte gUnknown_83F61FB -_080CC9E4: .4byte gUnknown_83F60D0 -_080CC9E8: - ldr r0, _080CCA10 @ =gUnknown_83F61F0 - ldrb r0, [r0] - strh r0, [r4] - movs r0, 0xB - strh r0, [r4, 0x4] - ldr r0, _080CCA14 @ =gUnknown_83F5F50 - movs r1, 0x70 - movs r2, 0x20 - bl LoadPalette -_080CC9FC: - movs r0, 0 - strh r0, [r4, 0x2] - movs r0, 0x7 - movs r1, 0x1 - bl sub_8059948 -_080CCA08: - pop {r4-r6} - pop {r0} - bx r0 - .align 2, 0 -_080CCA10: .4byte gUnknown_83F61F0 -_080CCA14: .4byte gUnknown_83F5F50 - thumb_func_end sub_80CC974 - - thumb_func_start sub_80CCA18 -sub_80CCA18: @ 80CCA18 - push {r4,lr} - lsls r0, 24 - lsrs r0, 24 - lsls r1, r0, 2 - adds r1, r0 - lsls r1, 3 - ldr r0, _080CCAA4 @ =gTasks+0x8 - adds r4, r1, r0 - ldr r0, _080CCAA8 @ =gPaletteFade - ldrb r1, [r0, 0x7] - movs r0, 0x80 - ands r0, r1 - cmp r0, 0 - bne _080CCAE6 - movs r0, 0x2 - bl FlagGet - lsls r0, 24 - cmp r0, 0 - beq _080CCAE6 - movs r0, 0x5 - bl FlagGet - lsls r0, 24 - lsrs r0, 24 - cmp r0, 0x1 - beq _080CCAE6 - ldr r0, _080CCAAC @ =gUnknown_2036E28 - ldrb r0, [r0] - cmp r0, 0x3 - beq _080CCAE6 - ldrh r0, [r4] - subs r0, 0x1 - strh r0, [r4] - lsls r0, 16 - asrs r2, r0, 16 - cmp r2, 0 - bne _080CCAE6 - ldrh r0, [r4, 0x2] - adds r0, 0x1 - strh r0, [r4, 0x2] - lsls r0, 16 - asrs r0, 16 - movs r3, 0x4 - ldrsh r1, [r4, r3] - cmp r0, r1 - bne _080CCA78 - strh r2, [r4, 0x2] -_080CCA78: - ldr r0, _080CCAB0 @ =gSaveBlock1Ptr - ldr r0, [r0] - ldrh r1, [r0, 0x4] - ldr r0, _080CCAB4 @ =0x00004f01 - cmp r1, r0 - bne _080CCAC0 - ldr r1, _080CCAB8 @ =gUnknown_83F61FB - movs r2, 0x2 - ldrsh r0, [r4, r2] - adds r0, r1 - ldrb r0, [r0] - strh r0, [r4] - movs r3, 0x2 - ldrsh r0, [r4, r3] - lsls r0, 5 - ldr r1, _080CCABC @ =gUnknown_83F60D0 - adds r0, r1 - movs r1, 0x70 - movs r2, 0x20 - bl LoadPalette - b _080CCADE - .align 2, 0 -_080CCAA4: .4byte gTasks+0x8 -_080CCAA8: .4byte gPaletteFade -_080CCAAC: .4byte gUnknown_2036E28 -_080CCAB0: .4byte gSaveBlock1Ptr -_080CCAB4: .4byte 0x00004f01 -_080CCAB8: .4byte gUnknown_83F61FB -_080CCABC: .4byte gUnknown_83F60D0 -_080CCAC0: - ldr r1, _080CCAEC @ =gUnknown_83F61F0 - movs r2, 0x2 - ldrsh r0, [r4, r2] - adds r0, r1 - ldrb r0, [r0] - strh r0, [r4] - movs r3, 0x2 - ldrsh r0, [r4, r3] - lsls r0, 5 - ldr r1, _080CCAF0 @ =gUnknown_83F5F50 - adds r0, r1 - movs r1, 0x70 - movs r2, 0x20 - bl LoadPalette -_080CCADE: - movs r0, 0x7 - movs r1, 0x1 - bl sub_8059948 -_080CCAE6: - pop {r4} - pop {r0} - bx r0 - .align 2, 0 -_080CCAEC: .4byte gUnknown_83F61F0 -_080CCAF0: .4byte gUnknown_83F5F50 - thumb_func_end sub_80CCA18 - - thumb_func_start sub_80CCAF4 -sub_80CCAF4: @ 80CCAF4 - push {r4,lr} - lsls r0, 24 - lsrs r4, r0, 24 - movs r0, 0x4 - bl FlagGet - lsls r0, 24 - cmp r0, 0 - beq _080CCB5A - ldr r0, _080CCB20 @ =gSaveBlock1Ptr - ldr r0, [r0] - ldrh r1, [r0, 0x4] - ldr r0, _080CCB24 @ =0x00004f01 - cmp r1, r0 - bne _080CCB2C - ldr r0, _080CCB28 @ =gUnknown_83F61D0 - movs r1, 0x70 - movs r2, 0x20 - bl LoadPalette - b _080CCB36 - .align 2, 0 -_080CCB20: .4byte gSaveBlock1Ptr -_080CCB24: .4byte 0x00004f01 -_080CCB28: .4byte gUnknown_83F61D0 -_080CCB2C: - ldr r0, _080CCB60 @ =gUnknown_83F60B0 - movs r1, 0x70 - movs r2, 0x20 - bl LoadPalette -_080CCB36: - movs r0, 0x7 - movs r1, 0x1 - bl sub_8059948 - ldr r0, _080CCB64 @ =gPaletteFade - ldrb r1, [r0, 0x7] - movs r0, 0x80 - ands r0, r1 - cmp r0, 0 - beq _080CCB54 - movs r0, 0x80 - movs r1, 0x10 - movs r2, 0 - bl BlendPalettes -_080CCB54: - adds r0, r4, 0 - bl DestroyTask -_080CCB5A: - pop {r4} - pop {r0} - bx r0 - .align 2, 0 -_080CCB60: .4byte gUnknown_83F60B0 -_080CCB64: .4byte gPaletteFade - thumb_func_end sub_80CCAF4 - - thumb_func_start sub_80CCB68 -sub_80CCB68: @ 80CCB68 - push {r4,lr} - ldr r4, _080CCB90 @ =sub_80CCA18 - adds r0, r4, 0 - bl FuncIsActiveTask - lsls r0, 24 - lsrs r0, 24 - cmp r0, 0x1 - bne _080CCB88 - adds r0, r4, 0 - bl FindTaskIdByFunc - lsls r0, 24 - lsrs r0, 24 - bl DestroyTask -_080CCB88: - pop {r4} - pop {r0} - bx r0 - .align 2, 0 -_080CCB90: .4byte sub_80CCA18 - thumb_func_end sub_80CCB68 - - thumb_func_start sub_80CCB94 -sub_80CCB94: @ 80CCB94 - push {r4-r7,lr} - mov r7, r9 - mov r6, r8 - push {r6,r7} - movs r7, 0 - movs r6, 0 - bl GetLeadMonIndex - lsls r0, 24 - lsrs r0, 24 - mov r8, r0 - ldr r0, _080CCBC0 @ =gSpecialVar_0x8007 - mov r1, r8 - strh r1, [r0] - movs r4, 0 - movs r0, 0x64 - mov r5, r8 - muls r5, r0 - ldr r0, _080CCBC4 @ =gPlayerParty - mov r9, r0 - b _080CCBCE - .align 2, 0 -_080CCBC0: .4byte gSpecialVar_0x8007 -_080CCBC4: .4byte gPlayerParty -_080CCBC8: - adds r0, r4, 0x1 - lsls r0, 24 - lsrs r4, r0, 24 -_080CCBCE: - cmp r4, 0x2 - bhi _080CCBEA - mov r1, r9 - adds r0, r5, r1 - movs r1, 0x41 - movs r2, 0 - bl GetMonData - ldr r1, _080CCC1C @ =gUnknown_83F6203 - adds r1, r4, r1 - ldrb r1, [r1] - cmp r0, r1 - bne _080CCBC8 - adds r7, r4, 0 -_080CCBEA: - cmp r4, 0x3 - beq _080CCC7A - movs r0, 0x64 - mov r1, r8 - muls r1, r0 - adds r0, r1, 0 - ldr r1, _080CCC20 @ =gPlayerParty - adds r0, r1 - movs r1, 0x20 - bl GetMonData - cmp r0, 0xFF - bne _080CCC7A - cmp r7, 0 - bne _080CCC34 - ldr r0, _080CCC24 @ =gStringVar2 - ldr r1, _080CCC28 @ =gUnknown_82481BE - bl StringCopy - ldr r1, _080CCC2C @ =gSpecialVar_0x8005 - movs r0, 0xF - strh r0, [r1] - ldr r0, _080CCC30 @ =0x000002de - b _080CCC6E - .align 2, 0 -_080CCC1C: .4byte gUnknown_83F6203 -_080CCC20: .4byte gPlayerParty -_080CCC24: .4byte gStringVar2 -_080CCC28: .4byte gUnknown_82481BE -_080CCC2C: .4byte gSpecialVar_0x8005 -_080CCC30: .4byte 0x000002de -_080CCC34: - cmp r7, 0x1 - bne _080CCC5C - ldr r0, _080CCC4C @ =gStringVar2 - ldr r1, _080CCC50 @ =gUnknown_824802B - bl StringCopy - ldr r1, _080CCC54 @ =gSpecialVar_0x8005 - movs r0, 0x10 - strh r0, [r1] - ldr r0, _080CCC58 @ =0x000002df - b _080CCC6E - .align 2, 0 -_080CCC4C: .4byte gStringVar2 -_080CCC50: .4byte gUnknown_824802B -_080CCC54: .4byte gSpecialVar_0x8005 -_080CCC58: .4byte 0x000002df -_080CCC5C: - ldr r0, _080CCC80 @ =gStringVar2 - ldr r1, _080CCC84 @ =gUnknown_8248038 - bl StringCopy - ldr r1, _080CCC88 @ =gSpecialVar_0x8005 - movs r0, 0x11 - strh r0, [r1] - movs r0, 0xB8 - lsls r0, 2 -_080CCC6E: - bl FlagGet - lsls r0, 24 - lsrs r0, 24 - cmp r0, 0x1 - bne _080CCC8C -_080CCC7A: - movs r0, 0 - b _080CCCE4 - .align 2, 0 -_080CCC80: .4byte gStringVar2 -_080CCC84: .4byte gUnknown_8248038 -_080CCC88: .4byte gSpecialVar_0x8005 -_080CCC8C: - movs r0, 0x64 - mov r1, r8 - muls r1, r0 - ldr r0, _080CCCF0 @ =gPlayerParty - adds r4, r1, r0 - adds r0, r4, 0 - movs r1, 0xD - bl GetMonData - cmp r0, 0 - beq _080CCCA8 - adds r0, r6, 0x1 - lsls r0, 24 - lsrs r6, r0, 24 -_080CCCA8: - adds r0, r4, 0 - movs r1, 0xE - bl GetMonData - cmp r0, 0 - beq _080CCCBA - adds r0, r6, 0x1 - lsls r0, 24 - lsrs r6, r0, 24 -_080CCCBA: - adds r0, r4, 0 - movs r1, 0xF - bl GetMonData - cmp r0, 0 - beq _080CCCCC - adds r0, r6, 0x1 - lsls r0, 24 - lsrs r6, r0, 24 -_080CCCCC: - adds r0, r4, 0 - movs r1, 0x10 - bl GetMonData - cmp r0, 0 - beq _080CCCDE - adds r0, r6, 0x1 - lsls r0, 24 - lsrs r6, r0, 24 -_080CCCDE: - ldr r0, _080CCCF4 @ =gSpecialVar_0x8006 - strh r6, [r0] - movs r0, 0x1 -_080CCCE4: - pop {r3,r4} - mov r8, r3 - mov r9, r4 - pop {r4-r7} - pop {r1} - bx r1 - .align 2, 0 -_080CCCF0: .4byte gPlayerParty -_080CCCF4: .4byte gSpecialVar_0x8006 - thumb_func_end sub_80CCB94 - - thumb_func_start sub_80CCCF8 -sub_80CCCF8: @ 80CCCF8 - push {r4,lr} - movs r4, 0 - ldr r0, _080CCD0C @ =gSpecialVar_0x8005 - ldrh r0, [r0] - cmp r0, 0xF - bne _080CCD14 - ldr r0, _080CCD10 @ =0x000002de - bl FlagSet - b _080CCD2C - .align 2, 0 -_080CCD0C: .4byte gSpecialVar_0x8005 -_080CCD10: .4byte 0x000002de -_080CCD14: - cmp r0, 0x10 - bne _080CCD24 - ldr r0, _080CCD20 @ =0x000002df - bl FlagSet - b _080CCD2C - .align 2, 0 -_080CCD20: .4byte 0x000002df -_080CCD24: - movs r0, 0xB8 - lsls r0, 2 - bl FlagSet -_080CCD2C: - ldr r0, _080CCD74 @ =0x000002de - bl FlagGet - lsls r0, 24 - lsrs r0, 24 - cmp r0, 0x1 - bne _080CCD40 - adds r0, r4, 0x1 - lsls r0, 24 - lsrs r4, r0, 24 -_080CCD40: - ldr r0, _080CCD78 @ =0x000002df - bl FlagGet - lsls r0, 24 - lsrs r0, 24 - cmp r0, 0x1 - bne _080CCD54 - adds r0, r4, 0x1 - lsls r0, 24 - lsrs r4, r0, 24 -_080CCD54: - movs r0, 0xB8 - lsls r0, 2 - bl FlagGet - lsls r0, 24 - lsrs r0, 24 - cmp r0, 0x1 - bne _080CCD6A - adds r0, r4, 0x1 - lsls r0, 24 - lsrs r4, r0, 24 -_080CCD6A: - cmp r4, 0x3 - beq _080CCD7C - movs r0, 0 - b _080CCD7E - .align 2, 0 -_080CCD74: .4byte 0x000002de -_080CCD78: .4byte 0x000002df -_080CCD7C: - movs r0, 0x1 -_080CCD7E: - pop {r4} - pop {r1} - bx r1 - thumb_func_end sub_80CCCF8 - - thumb_func_start sub_80CCD84 -sub_80CCD84: @ 80CCD84 - push {lr} - ldr r0, _080CCDB8 @ =0x000002e3 - bl FlagGet - lsls r0, 24 - lsrs r0, 24 - cmp r0, 0x1 - beq _080CCDC8 - ldr r0, _080CCDBC @ =gSaveBlock1Ptr - ldr r2, [r0] - ldrh r1, [r2, 0x4] - ldr r0, _080CCDC0 @ =0x00003d03 - cmp r1, r0 - bne _080CCDC8 - ldr r1, [r2] - ldr r0, _080CCDC4 @ =0x00190018 - cmp r1, r0 - bne _080CCDC8 - bl GetPlayerFacingDirection - lsls r0, 24 - lsrs r0, 24 - cmp r0, 0x2 - bne _080CCDC8 - movs r0, 0x1 - b _080CCDCA - .align 2, 0 -_080CCDB8: .4byte 0x000002e3 -_080CCDBC: .4byte gSaveBlock1Ptr -_080CCDC0: .4byte 0x00003d03 -_080CCDC4: .4byte 0x00190018 -_080CCDC8: - movs r0, 0 -_080CCDCA: - pop {r1} - bx r1 - thumb_func_end sub_80CCD84 - - thumb_func_start sub_80CCDD0 -sub_80CCDD0: @ 80CCDD0 - push {lr} - movs r2, 0xD6 - lsls r2, 2 - movs r0, 0x1F - movs r1, 0x1F - bl MapGridSetMetatileIdAt - bl DrawWholeMapView - movs r0, 0x14 - bl PlaySE - ldr r0, _080CCDF8 @ =0x000002e3 - bl FlagSet - bl ScriptContext2_Disable - pop {r0} - bx r0 - .align 2, 0 -_080CCDF8: .4byte 0x000002e3 - thumb_func_end sub_80CCDD0 - - thumb_func_start sub_80CCDFC -sub_80CCDFC: @ 80CCDFC - push {lr} - ldr r0, _080CCE0C @ =task_deoxys_sound - movs r1, 0x8 - bl CreateTask - pop {r0} - bx r0 - .align 2, 0 -_080CCE0C: .4byte task_deoxys_sound - thumb_func_end sub_80CCDFC - - thumb_func_start task_deoxys_sound -task_deoxys_sound: @ 80CCE10 - push {r4-r7,lr} - mov r7, r8 - push {r7} - lsls r0, 24 - lsrs r7, r0, 24 - ldr r0, _080CCE30 @ =0x00000848 - bl FlagGet - lsls r0, 24 - lsrs r0, 24 - cmp r0, 0x1 - bne _080CCE38 - ldr r1, _080CCE34 @ =gSpecialVar_Result - movs r0, 0x3 - b _080CCE9E - .align 2, 0 -_080CCE30: .4byte 0x00000848 -_080CCE34: .4byte gSpecialVar_Result -_080CCE38: - ldr r0, _080CCE80 @ =0x0000403e - mov r8, r0 - bl VarGet - lsls r0, 16 - lsrs r5, r0, 16 - ldr r4, _080CCE84 @ =0x00004026 - adds r0, r4, 0 - bl VarGet - lsls r0, 16 - lsrs r6, r0, 16 - adds r0, r4, 0 - movs r1, 0 - bl VarSet - cmp r5, 0 - beq _080CCE90 - ldr r0, _080CCE88 @ =gUnknown_83F637C - subs r1, r5, 0x1 - adds r1, r0 - ldrb r0, [r1] - cmp r0, r6 - bcs _080CCE90 - movs r0, 0 - bl sub_80CCEE8 - mov r0, r8 - movs r1, 0 - bl VarSet - ldr r1, _080CCE8C @ =gSpecialVar_Result - movs r0, 0 - strh r0, [r1] - b _080CCEA4 - .align 2, 0 -_080CCE80: .4byte 0x0000403e -_080CCE84: .4byte 0x00004026 -_080CCE88: .4byte gUnknown_83F637C -_080CCE8C: .4byte gSpecialVar_Result -_080CCE90: - cmp r5, 0xA - bne _080CCEB4 - ldr r0, _080CCEAC @ =0x00000848 - bl FlagSet - ldr r1, _080CCEB0 @ =gSpecialVar_Result - movs r0, 0x2 -_080CCE9E: - strh r0, [r1] - bl EnableBothScriptContexts -_080CCEA4: - adds r0, r7, 0 - bl DestroyTask - b _080CCED6 - .align 2, 0 -_080CCEAC: .4byte 0x00000848 -_080CCEB0: .4byte gSpecialVar_Result -_080CCEB4: - adds r0, r5, 0x1 - lsls r0, 16 - lsrs r5, r0, 16 - lsls r0, r5, 24 - lsrs r0, 24 - bl sub_80CCEE8 - ldr r0, _080CCEE0 @ =0x0000403e - adds r1, r5, 0 - bl VarSet - ldr r1, _080CCEE4 @ =gSpecialVar_Result - movs r0, 0x1 - strh r0, [r1] - adds r0, r7, 0 - bl DestroyTask -_080CCED6: - pop {r3} - mov r8, r3 - pop {r4-r7} - pop {r0} - bx r0 - .align 2, 0 -_080CCEE0: .4byte 0x0000403e -_080CCEE4: .4byte gSpecialVar_Result - thumb_func_end task_deoxys_sound - - thumb_func_start sub_80CCEE8 -sub_80CCEE8: @ 80CCEE8 - push {r4,r5,lr} - sub sp, 0x4 - lsls r0, 24 - lsrs r4, r0, 24 - lsls r0, r4, 5 - ldr r1, _080CCF24 @ =gUnknown_83F6206 - adds r0, r1 - movs r1, 0xD0 - lsls r1, 1 - movs r2, 0x8 - bl LoadPalette - movs r0, 0xA - bl sub_8083598 - ldr r0, _080CCF28 @ =gSaveBlock1Ptr - ldr r0, [r0] - ldrb r1, [r0, 0x5] - ldrb r2, [r0, 0x4] - movs r0, 0x1 - mov r3, sp - bl TryGetFieldObjectIdByLocalIdAndMap - cmp r4, 0 - bne _080CCF2C - movs r0, 0xBD - bl PlaySE - b _080CCF32 - .align 2, 0 -_080CCF24: .4byte gUnknown_83F6206 -_080CCF28: .4byte gSaveBlock1Ptr -_080CCF2C: - movs r0, 0xFD - bl PlaySE -_080CCF32: - ldr r0, _080CCF64 @ =sub_80CCF98 - movs r1, 0x8 - bl CreateTask - ldr r3, _080CCF68 @ =gFieldEffectArguments - movs r0, 0x1 - str r0, [r3] - movs r0, 0x38 - str r0, [r3, 0x4] - movs r0, 0x2 - str r0, [r3, 0x8] - ldr r0, _080CCF6C @ =gUnknown_83F6366 - lsls r2, r4, 1 - adds r1, r2, r0 - ldrb r1, [r1] - str r1, [r3, 0xC] - adds r0, 0x1 - adds r0, r2, r0 - ldrb r0, [r0] - str r0, [r3, 0x10] - adds r5, r2, 0 - cmp r4, 0 - bne _080CCF70 - movs r0, 0x3C - b _080CCF72 - .align 2, 0 -_080CCF64: .4byte sub_80CCF98 -_080CCF68: .4byte gFieldEffectArguments -_080CCF6C: .4byte gUnknown_83F6366 -_080CCF70: - movs r0, 0x5 -_080CCF72: - str r0, [r3, 0x14] - movs r0, 0x43 - bl FieldEffectStart - ldr r0, _080CCF94 @ =gUnknown_83F6366 - adds r1, r5, r0 - ldrb r1, [r1] - adds r0, 0x1 - adds r0, r5, r0 - ldrb r2, [r0] - movs r0, 0x1 - bl Overworld_SetMapObjTemplateCoords - add sp, 0x4 - pop {r4,r5} - pop {r0} - bx r0 - .align 2, 0 -_080CCF94: .4byte gUnknown_83F6366 - thumb_func_end sub_80CCEE8 - - thumb_func_start sub_80CCF98 -sub_80CCF98: @ 80CCF98 - push {r4,lr} - lsls r0, 24 - lsrs r4, r0, 24 - movs r0, 0x43 - bl FieldEffectActiveListContains - lsls r0, 24 - cmp r0, 0 - bne _080CCFB4 - bl EnableBothScriptContexts - adds r0, r4, 0 - bl DestroyTask -_080CCFB4: - pop {r4} - pop {r0} - bx r0 - thumb_func_end sub_80CCF98 - - thumb_func_start sub_80CCFBC -sub_80CCFBC: @ 80CCFBC - push {r4,lr} - ldr r4, _080CCFEC @ =0x00004026 - adds r0, r4, 0 - bl VarGet - lsls r0, 16 - lsrs r2, r0, 16 - ldr r0, _080CCFF0 @ =gSaveBlock1Ptr - ldr r0, [r0] - ldrh r1, [r0, 0x4] - ldr r0, _080CCFF4 @ =0x00003802 - cmp r1, r0 - bne _080CD000 - adds r0, r2, 0x1 - lsls r0, 16 - lsrs r2, r0, 16 - cmp r2, 0x63 - bls _080CCFF8 - adds r0, r4, 0 - movs r1, 0 - bl VarSet - b _080CD000 - .align 2, 0 -_080CCFEC: .4byte 0x00004026 -_080CCFF0: .4byte gSaveBlock1Ptr -_080CCFF4: .4byte 0x00003802 -_080CCFF8: - adds r0, r4, 0 - adds r1, r2, 0 - bl VarSet -_080CD000: - pop {r4} - pop {r0} - bx r0 - thumb_func_end sub_80CCFBC - - thumb_func_start sub_80CD008 -sub_80CD008: @ 80CD008 - push {lr} - ldr r0, _080CD02C @ =0x0000403e - bl VarGet - lsls r0, 24 - lsrs r0, 19 - ldr r1, _080CD030 @ =gUnknown_83F6206 - adds r0, r1 - movs r1, 0xD0 - lsls r1, 1 - movs r2, 0x8 - bl LoadPalette - movs r0, 0xA - bl sub_8083598 - pop {r0} - bx r0 - .align 2, 0 -_080CD02C: .4byte 0x0000403e -_080CD030: .4byte gUnknown_83F6206 - thumb_func_end sub_80CD008 - - thumb_func_start sub_80CD034 -sub_80CD034: @ 80CD034 - push {r4,r5,lr} - bl CalculatePlayerPartyCount - lsls r0, 24 - lsrs r5, r0, 24 - movs r4, 0 - cmp r4, r5 - bcs _080CD06A -_080CD044: - movs r0, 0x64 - muls r0, r4 - ldr r1, _080CD05C @ =gPlayerParty - adds r0, r1 - movs r1, 0x4 - bl GetMonData - cmp r0, 0x1 - bne _080CD060 - movs r0, 0x1 - b _080CD06C - .align 2, 0 -_080CD05C: .4byte gPlayerParty -_080CD060: - adds r0, r4, 0x1 - lsls r0, 24 - lsrs r4, r0, 24 - cmp r4, r5 - bcc _080CD044 -_080CD06A: - movs r0, 0 -_080CD06C: - pop {r4,r5} - pop {r1} - bx r1 - thumb_func_end sub_80CD034 - - thumb_func_start sub_80CD074 -sub_80CD074: @ 80CD074 - push {lr} - ldr r0, _080CD088 @ =gSaveBlock1Ptr - ldr r0, [r0] - ldrh r1, [r0, 0x4] - ldr r0, _080CD08C @ =0x00000a02 - cmp r1, r0 - beq _080CD090 - movs r0, 0x1 - b _080CD092 - .align 2, 0 -_080CD088: .4byte gSaveBlock1Ptr -_080CD08C: .4byte 0x00000a02 -_080CD090: - movs r0, 0 -_080CD092: - pop {r1} - bx r1 - thumb_func_end sub_80CD074 - - thumb_func_start sub_80CD098 -sub_80CD098: @ 80CD098 - push {lr} - sub sp, 0x4 - ldr r0, _080CD0CC @ =gUnknown_203ADFA - ldrb r0, [r0] - cmp r0, 0x2 - beq _080CD0E8 - ldr r0, _080CD0D0 @ =gSpecialVar_0x8004 - ldrh r0, [r0] - adds r0, 0x1B - lsls r0, 16 - lsrs r1, r0, 16 - ldr r0, _080CD0D4 @ =gSpecialVar_0x8006 - ldrh r3, [r0] - cmp r3, 0 - bne _080CD0E0 - ldr r0, _080CD0D8 @ =gSpecialVar_0x8005 - ldrh r2, [r0] - str r3, [sp] - movs r0, 0 - movs r3, 0 - bl CreateTextCursorSpriteForOakSpeech - ldr r1, _080CD0DC @ =gUnknown_2039A1B - strb r0, [r1] - b _080CD0E8 - .align 2, 0 -_080CD0CC: .4byte gUnknown_203ADFA -_080CD0D0: .4byte gSpecialVar_0x8004 -_080CD0D4: .4byte gSpecialVar_0x8006 -_080CD0D8: .4byte gSpecialVar_0x8005 -_080CD0DC: .4byte gUnknown_2039A1B -_080CD0E0: - ldr r0, _080CD0F0 @ =gUnknown_2039A1B - ldrb r0, [r0] - bl sub_8006398 -_080CD0E8: - add sp, 0x4 - pop {r0} - bx r0 - .align 2, 0 -_080CD0F0: .4byte gUnknown_2039A1B - thumb_func_end sub_80CD098 - - thumb_func_start sub_80CD0F4 -sub_80CD0F4: @ 80CD0F4 - push {r4-r7,lr} - bl CalculatePlayerPartyCount - lsls r0, 24 - lsrs r7, r0, 24 - movs r6, 0 - cmp r6, r7 - bcs _080CD14A -_080CD104: - movs r0, 0x64 - adds r1, r6, 0 - muls r1, r0 - ldr r0, _080CD138 @ =gPlayerParty - adds r5, r1, r0 - adds r0, r5, 0 - movs r1, 0x41 - movs r2, 0 - bl GetMonData - ldr r1, _080CD13C @ =gSpecialVar_0x8004 - ldrh r1, [r1] - cmp r0, r1 - bne _080CD140 - bl sub_80CC1E4 - adds r4, r0, 0 - adds r0, r5, 0 - movs r1, 0x1 - movs r2, 0 - bl GetMonData - cmp r4, r0 - bne _080CD140 - movs r0, 0x1 - b _080CD14C - .align 2, 0 -_080CD138: .4byte gPlayerParty -_080CD13C: .4byte gSpecialVar_0x8004 -_080CD140: - adds r0, r6, 0x1 - lsls r0, 24 - lsrs r6, r0, 24 - cmp r6, r7 - bcc _080CD104 -_080CD14A: - movs r0, 0 -_080CD14C: - pop {r4-r7} - pop {r1} - bx r1 - thumb_func_end sub_80CD0F4 - - thumb_func_start sub_80CD154 -sub_80CD154: @ 80CD154 - push {r4,lr} - movs r0, 0xA - bl GetGameStat - adds r4, r0, 0 - cmp r4, 0x18 - bls _080CD1AE - movs r0, 0xA5 - bl FlagClear - cmp r4, 0x31 - bls _080CD172 - movs r0, 0xA6 - bl FlagClear -_080CD172: - cmp r4, 0x4A - bls _080CD17C - movs r0, 0xA7 - bl FlagClear -_080CD17C: - cmp r4, 0x63 - bls _080CD186 - movs r0, 0xA8 - bl FlagClear -_080CD186: - cmp r4, 0x7C - bls _080CD190 - movs r0, 0xA9 - bl FlagClear -_080CD190: - cmp r4, 0x95 - bls _080CD19A - movs r0, 0xAA - bl FlagClear -_080CD19A: - cmp r4, 0xAE - bls _080CD1A4 - movs r0, 0xAB - bl FlagClear -_080CD1A4: - cmp r4, 0xC7 - bls _080CD1AE - movs r0, 0xAC - bl FlagClear -_080CD1AE: - pop {r4} - pop {r0} - bx r0 - thumb_func_end sub_80CD154 - - thumb_func_start sub_80CD1B4 -sub_80CD1B4: @ 80CD1B4 - push {lr} - ldr r0, _080CD1C8 @ =sub_80CD1CC - movs r1, 0x8 - bl CreateTask - movs r0, 0x96 - bl PlaySE - pop {r0} - bx r0 - .align 2, 0 -_080CD1C8: .4byte sub_80CD1CC - thumb_func_end sub_80CD1B4 - - thumb_func_start sub_80CD1CC -sub_80CD1CC: @ 80CD1CC - push {r4,r5,lr} - lsls r0, 24 - lsrs r0, 24 - adds r5, r0, 0 - lsls r0, r5, 2 - adds r0, r5 - lsls r0, 3 - ldr r1, _080CD21C @ =gTasks+0x8 - adds r4, r0, r1 - ldrh r0, [r4, 0x2] - adds r0, 0x1 - strh r0, [r4, 0x2] - movs r0, 0x2 - ldrsh r1, [r4, r0] - ldr r0, _080CD220 @ =gSpecialVar_0x8005 - ldrh r0, [r0] - cmp r1, r0 - bne _080CD200 - ldrh r0, [r4] - adds r0, 0x1 - strh r0, [r4] - movs r0, 0 - strh r0, [r4, 0x2] - movs r0, 0x96 - bl PlaySE -_080CD200: - movs r0, 0 - ldrsh r1, [r4, r0] - ldr r0, _080CD224 @ =gSpecialVar_0x8004 - ldrh r0, [r0] - subs r0, 0x1 - cmp r1, r0 - bne _080CD214 - adds r0, r5, 0 - bl DestroyTask -_080CD214: - pop {r4,r5} - pop {r0} - bx r0 - .align 2, 0 -_080CD21C: .4byte gTasks+0x8 -_080CD220: .4byte gSpecialVar_0x8005 -_080CD224: .4byte gSpecialVar_0x8004 - thumb_func_end sub_80CD1CC - - .align 2, 0 @ Don't pad with nop. diff --git a/asm/fldeff_cut.s b/asm/fldeff_cut.s index 3452841c4..ec892e0bb 100644 --- a/asm/fldeff_cut.s +++ b/asm/fldeff_cut.s @@ -33,7 +33,7 @@ sub_8097898: @ 8097898 ldr r4, _080978CC @ =gUnknown_2039874 movs r0, 0 strb r0, [r4] - bl sub_80CCD84 + bl CutMoveRuinValleyCheck lsls r0, 24 lsrs r0, 24 cmp r0, 0x1 @@ -232,7 +232,7 @@ sub_8097A20: @ 8097A20 ldrb r0, [r0] cmp r0, 0x1 bne _08097A3C - bl sub_80CCDD0 + bl CutMoveOpenDottedHoleDoor b _08097A42 .align 2, 0 _08097A38: .4byte gUnknown_2039874 diff --git a/asm/fldeff_flash.s b/asm/fldeff_flash.s index 4ce45b5c7..63067bb03 100644 --- a/asm/fldeff_flash.s +++ b/asm/fldeff_flash.s @@ -76,13 +76,13 @@ sub_80C9BB0: @ 80C9BB0 bl PlaySE ldr r0, _080C9BC8 @ =0x00000806 bl FlagSet - ldr r0, _080C9BCC @ =gUnknown_81BFB5F + ldr r0, _080C9BCC @ =EventScript_81BFB5F bl ScriptContext1_SetupScript pop {r0} bx r0 .align 2, 0 _080C9BC8: .4byte 0x00000806 -_080C9BCC: .4byte gUnknown_81BFB5F +_080C9BCC: .4byte EventScript_81BFB5F thumb_func_end sub_80C9BB0 thumb_func_start sub_80C9BD0 diff --git a/asm/item_menu.s b/asm/item_menu.s index 9b1ab2492..a143d2776 100644 --- a/asm/item_menu.s +++ b/asm/item_menu.s @@ -5845,7 +5845,7 @@ _0810AD1E: cmp r6, 0x1 bne _0810AD90 bl ScriptContext2_Enable - bl player_bitmagic + bl FreezeEventObjects bl sub_805C270 bl sub_805C780 ldr r2, _0810AD88 @ =gSpecialVar_ItemId diff --git a/asm/learn_move.s b/asm/learn_move.s index a7a5b264d..36b88bc20 100644 --- a/asm/learn_move.s +++ b/asm/learn_move.s @@ -15,8 +15,8 @@ sub_80E4620: @ 80E4620 bx r0 thumb_func_end sub_80E4620 - thumb_func_start sub_80E4634 -sub_80E4634: @ 80E4634 + thumb_func_start DisplayMoveTutorMenu +DisplayMoveTutorMenu: @ 80E4634 push {lr} sub sp, 0x4 bl ScriptContext2_Enable @@ -35,7 +35,7 @@ sub_80E4634: @ 80E4634 bx r0 .align 2, 0 _080E465C: .4byte sub_80E4660 - thumb_func_end sub_80E4634 + thumb_func_end DisplayMoveTutorMenu thumb_func_start sub_80E4660 sub_80E4660: @ 80E4660 @@ -1653,7 +1653,7 @@ _080E53F4: movs r2, 0x2 movs r3, 0x2 bl sub_80E559C - ldr r1, _080E5440 @ =gUnknown_84886E8 + ldr r1, _080E5440 @ =gMoveDescriptionPointers subs r0, r5, 0x1 lsls r0, 2 adds r0, r1 @@ -1670,7 +1670,7 @@ _080E53F4: bx r0 .align 2, 0 _080E543C: .4byte gBattleMoves -_080E5440: .4byte gUnknown_84886E8 +_080E5440: .4byte gMoveDescriptionPointers thumb_func_end sub_80E5340 thumb_func_start sub_80E5444 diff --git a/asm/link_rfu_2.s b/asm/link_rfu_2.s index fd1cf3dc6..8f896ea7c 100644 --- a/asm/link_rfu_2.s +++ b/asm/link_rfu_2.s @@ -4012,8 +4012,8 @@ GetRfuPlayerCount: @ 80FA4EC _080FA4F4: .4byte gUnknown_3005450 thumb_func_end GetRfuPlayerCount - thumb_func_start IsRfuTaskFinished -IsRfuTaskFinished: @ 80FA4F8 + thumb_func_start IsLinkRfuTaskFinished +IsLinkRfuTaskFinished: @ 80FA4F8 push {lr} movs r1, 0 ldr r0, _080FA50C @ =gUnknown_3005450 @@ -4027,7 +4027,7 @@ _080FA506: bx r1 .align 2, 0 _080FA50C: .4byte gUnknown_3005450 - thumb_func_end IsRfuTaskFinished + thumb_func_end IsLinkRfuTaskFinished thumb_func_start sub_80FA510 sub_80FA510: @ 80FA510 diff --git a/asm/link_rfu_3.s b/asm/link_rfu_3.s index 94a07fdaf..9fc1f72cc 100644 --- a/asm/link_rfu_3.s +++ b/asm/link_rfu_3.s @@ -12709,7 +12709,7 @@ _0811C096: lsls r2, 4 adds r1, r2, 0 strh r1, [r0] - ldr r0, _0811C0DC @ =sub_800FD9C + ldr r0, _0811C0DC @ =CB2_InitBattle bl SetMainCallback2 pop {r4-r7} pop {r0} @@ -12719,7 +12719,7 @@ _0811C0CC: .4byte gPlayerParty _0811C0D0: .4byte gEnemyParty _0811C0D4: .4byte gUnknown_203B0D4 _0811C0D8: .4byte gTrainerBattleOpponent_A -_0811C0DC: .4byte sub_800FD9C +_0811C0DC: .4byte CB2_InitBattle thumb_func_end sub_811C04C thumb_func_start sub_811C0E0 diff --git a/asm/macros/event.inc b/asm/macros/event.inc index 7ce50a5e1..21e3e65c0 100644 --- a/asm/macros/event.inc +++ b/asm/macros/event.inc @@ -37,6 +37,13 @@ .4byte \destination .endm + lt = 0 + eq = 1 + gt = 2 + le = 3 + ge = 4 + ne = 5 + @ If the result of the last comparison matches condition (see Comparison operators), calls destination. .macro call_if condition, destination .byte 0x07 @@ -1225,10 +1232,9 @@ .byte 0xb7 .endm - .macro setvaddress long, word + .macro setvaddress long .byte 0xb8 .4byte \long - .2byte \word .endm .macro vgoto pointer @@ -1406,7 +1412,7 @@ @ Supplementary .macro goto_if_eq dest - goto_if 1, \dest + goto_if eq, \dest .endm .macro switch var @@ -1442,3 +1448,14 @@ setorcopyvar 0x8002, \fanfare callstd 9 .endm + + .macro famechecker person:req, index:req, function=SetFlavorTextFlagFromSpecialVars + setvar VAR_0x8004, \person + setvar VAR_0x8005, \index + special \function + .endm + + .macro set_gym_trainers gym:req + setvar VAR_0x8008, \gym + call EventScript_1A6B18 + .endm diff --git a/asm/macros/map.inc b/asm/macros/map.inc index 075993fd3..d903899fe 100644 --- a/asm/macros/map.inc +++ b/asm/macros/map.inc @@ -55,8 +55,8 @@ inc _num_signs .endm - .macro bg_hidden_item_event x, y, height, item, flag, unknown - bg_event \x, \y, \height, 7, 0, \item, \flag, \unknown + .macro bg_hidden_item_event x, y, height, item, flag, quantity, underfoot + bg_event \x, \y, \height, 7, 0, \item, \flag, \quantity | (\underfoot << 7) .endm .macro map_events npcs, warps, traps, signs diff --git a/asm/macros/movement.inc b/asm/macros/movement.inc index f077a8f5a..8ad5a313e 100644 --- a/asm/macros/movement.inc +++ b/asm/macros/movement.inc @@ -110,6 +110,8 @@ create_movement step_65 create_movement step_66 create_movement step_67 + create_movement step_68 + create_movement step_69 enum_start 0x91 create_movement step_91 diff --git a/asm/mail.s b/asm/mail.s deleted file mode 100644 index e5b265df2..000000000 --- a/asm/mail.s +++ /dev/null @@ -1,1041 +0,0 @@ - .include "asm/macros.inc" - .include "constants/constants.inc" - - .syntax unified - - .text - - thumb_func_start sub_80BEBEC -sub_80BEBEC: @ 80BEBEC - push {r4-r7,lr} - sub sp, 0x4 - adds r5, r0, 0 - adds r7, r1, 0 - lsls r2, 24 - lsrs r6, r2, 24 - ldr r4, _080BEC38 @ =gUnknown_20399C4 - ldr r0, _080BEC3C @ =0x000020fc - bl AllocZeroed - str r0, [r4] - adds r0, 0xED - movs r1, 0x2 - strb r1, [r0] - ldr r0, [r4] - adds r0, 0xEE - movs r1, 0x1 - strb r1, [r0] - ldr r2, [r4] - adds r1, r2, 0 - adds r1, 0xF0 - ldr r0, _080BEC40 @ =CopyEasyChatWord - str r0, [r1] - adds r1, 0x4 - ldr r0, _080BEC44 @ =ConvertEasyChatWordsToString - str r0, [r1] - ldrh r1, [r5, 0x20] - adds r0, r1, 0 - subs r0, 0x79 - lsls r0, 16 - lsrs r0, 16 - cmp r0, 0xB - bhi _080BEC48 - subs r1, 0x79 - adds r0, r2, 0 - adds r0, 0xEA - strb r1, [r0] - b _080BEC52 - .align 2, 0 -_080BEC38: .4byte gUnknown_20399C4 -_080BEC3C: .4byte 0x000020fc -_080BEC40: .4byte CopyEasyChatWord -_080BEC44: .4byte ConvertEasyChatWordsToString -_080BEC48: - adds r1, r2, 0 - adds r1, 0xEA - movs r0, 0 - strb r0, [r1] - movs r6, 0 -_080BEC52: - ldr r0, _080BEC78 @ =gUnknown_20399C4 - ldr r0, [r0] - adds r1, r0, 0 - adds r1, 0xEE - ldrb r1, [r1] - cmp r1, 0 - beq _080BEC64 - cmp r1, 0x1 - beq _080BEC80 -_080BEC64: - adds r2, r0, 0 - adds r2, 0xF8 - adds r0, 0xEA - ldrb r1, [r0] - lsls r0, r1, 1 - adds r0, r1 - lsls r0, 2 - ldr r1, _080BEC7C @ =gUnknown_83EEAC4 - b _080BEC90 - .align 2, 0 -_080BEC78: .4byte gUnknown_20399C4 -_080BEC7C: .4byte gUnknown_83EEAC4 -_080BEC80: - adds r2, r0, 0 - adds r2, 0xF8 - adds r0, 0xEA - ldrb r1, [r0] - lsls r0, r1, 1 - adds r0, r1 - lsls r0, 2 - ldr r1, _080BECC8 @ =gUnknown_83EEB68 -_080BEC90: - adds r0, r1 - str r0, [r2] - ldrh r0, [r5, 0x1E] - mov r1, sp - bl MailSpeciesToSpecies - lsls r0, 16 - ldr r1, _080BECCC @ =0xffff0000 - adds r0, r1 - movs r1, 0xCD - lsls r1, 17 - cmp r0, r1 - bhi _080BECE4 - ldr r0, _080BECD0 @ =gUnknown_20399C4 - ldr r1, [r0] - adds r2, r1, 0 - adds r2, 0xEA - ldrb r2, [r2] - adds r3, r0, 0 - cmp r2, 0x6 - beq _080BECD4 - cmp r2, 0x9 - beq _080BECDC - adds r1, 0xEB - movs r0, 0 - strb r0, [r1] - b _080BECF0 - .align 2, 0 -_080BECC8: .4byte gUnknown_83EEB68 -_080BECCC: .4byte 0xffff0000 -_080BECD0: .4byte gUnknown_20399C4 -_080BECD4: - adds r1, 0xEB - movs r0, 0x1 - strb r0, [r1] - b _080BECF0 -_080BECDC: - adds r1, 0xEB - movs r0, 0x2 - strb r0, [r1] - b _080BECF0 -_080BECE4: - ldr r0, _080BED10 @ =gUnknown_20399C4 - ldr r1, [r0] - adds r1, 0xEB - movs r2, 0 - strb r2, [r1] - adds r3, r0, 0 -_080BECF0: - ldr r1, [r3] - adds r0, r1, 0 - adds r0, 0xE4 - str r5, [r0] - subs r0, 0x8 - str r7, [r0] - adds r0, 0xC - strb r6, [r0] - ldr r0, _080BED14 @ =sub_80BF110 - bl SetMainCallback2 - add sp, 0x4 - pop {r4-r7} - pop {r0} - bx r0 - .align 2, 0 -_080BED10: .4byte gUnknown_20399C4 -_080BED14: .4byte sub_80BF110 - thumb_func_end sub_80BEBEC - - thumb_func_start sub_80BED18 -sub_80BED18: @ 80BED18 - push {r4-r6,lr} - sub sp, 0xC - ldr r0, _080BED38 @ =gMain - movs r1, 0x87 - lsls r1, 3 - adds r0, r1 - ldrb r0, [r0] - cmp r0, 0x12 - bls _080BED2C - b _080BF102 -_080BED2C: - lsls r0, 2 - ldr r1, _080BED3C @ =_080BED40 - adds r0, r1 - ldr r0, [r0] - mov pc, r0 - .align 2, 0 -_080BED38: .4byte gMain -_080BED3C: .4byte _080BED40 - .align 2, 0 -_080BED40: - .4byte _080BED8C - .4byte _080BEDBC - .4byte _080BEDD4 - .4byte _080BEDDA - .4byte _080BEDE0 - .4byte _080BEDE6 - .4byte _080BEE40 - .4byte _080BEE78 - .4byte _080BEE88 - .4byte _080BEEB8 - .4byte _080BEEC6 - .4byte _080BEF14 - .4byte _080BEF28 - .4byte _080BEFE8 - .4byte _080BF000 - .4byte _080BF01C - .4byte _080BF026 - .4byte _080BF040 - .4byte _080BF0A4 -_080BED8C: - movs r0, 0 - bl SetVBlankCallback - bl ScanlineEffect_Stop - movs r0, 0 - movs r1, 0 - bl SetGpuReg - ldr r0, _080BEDB0 @ =gPlayerPcMenuManager - ldrb r0, [r0, 0x9] - cmp r0, 0 - bne _080BEDB4 - movs r0, 0x22 - bl HelpSystem_SetSomeVariable2 - b _080BF0F4 - .align 2, 0 -_080BEDB0: .4byte gPlayerPcMenuManager -_080BEDB4: - movs r0, 0x1E - bl HelpSystem_SetSomeVariable2 - b _080BF0F4 -_080BEDBC: - add r1, sp, 0x8 - movs r0, 0 - strh r0, [r1] - movs r1, 0xE0 - lsls r1, 19 - ldr r2, _080BEDD0 @ =0x01000200 - add r0, sp, 0x8 - bl CpuSet - b _080BF0F4 - .align 2, 0 -_080BEDD0: .4byte 0x01000200 -_080BEDD4: - bl ResetPaletteFade - b _080BF0F4 -_080BEDDA: - bl ResetTasks - b _080BF0F4 -_080BEDE0: - bl ResetSpriteData - b _080BF0F4 -_080BEDE6: - bl FreeAllSpritePalettes - bl ResetTempTileDataBuffers - movs r0, 0x10 - movs r1, 0 - bl SetGpuReg - movs r0, 0x12 - movs r1, 0 - bl SetGpuReg - movs r0, 0x14 - movs r1, 0 - bl SetGpuReg - movs r0, 0x16 - movs r1, 0 - bl SetGpuReg - movs r0, 0x1A - movs r1, 0 - bl SetGpuReg - movs r0, 0x18 - movs r1, 0 - bl SetGpuReg - movs r0, 0x1C - movs r1, 0 - bl SetGpuReg - movs r0, 0x1E - movs r1, 0 - bl SetGpuReg - movs r0, 0x50 - movs r1, 0 - bl SetGpuReg - movs r0, 0x52 - movs r1, 0 - bl SetGpuReg - b _080BF0F4 -_080BEE40: - movs r0, 0 - bl ResetBgsAndClearDma3BusyFlags - ldr r1, _080BEE6C @ =gUnknown_83EE998 - movs r0, 0 - movs r2, 0x3 - bl InitBgsFromTemplates - ldr r4, _080BEE70 @ =gUnknown_20399C4 - ldr r1, [r4] - adds r1, 0xFC - movs r0, 0x1 - bl SetBgTilemapBuffer - ldr r1, [r4] - ldr r0, _080BEE74 @ =0x000010fc - adds r1, r0 - movs r0, 0x2 - bl SetBgTilemapBuffer - b _080BF0F4 - .align 2, 0 -_080BEE6C: .4byte gUnknown_83EE998 -_080BEE70: .4byte gUnknown_20399C4 -_080BEE74: .4byte 0x000010fc -_080BEE78: - ldr r0, _080BEE84 @ =gUnknown_83EE9A4 - bl InitWindows - bl DeactivateAllTextPrinters - b _080BF0F4 - .align 2, 0 -_080BEE84: .4byte gUnknown_83EE9A4 -_080BEE88: - ldr r2, _080BEEB0 @ =gUnknown_83EE9C8 - ldr r0, _080BEEB4 @ =gUnknown_20399C4 - ldr r0, [r0] - adds r0, 0xEA - ldrb r1, [r0] - lsls r0, r1, 2 - adds r0, r1 - lsls r0, 2 - adds r2, 0x4 - adds r0, r2 - ldr r1, [r0] - movs r0, 0 - str r0, [sp] - movs r0, 0x1 - movs r2, 0 - movs r3, 0 - bl DecompressAndCopyTileDataToVram - b _080BF0F4 - .align 2, 0 -_080BEEB0: .4byte gUnknown_83EE9C8 -_080BEEB4: .4byte gUnknown_20399C4 -_080BEEB8: - bl FreeTempTileDataBuffersIfPossible - lsls r0, 24 - cmp r0, 0 - bne _080BEEC4 - b _080BF0F4 -_080BEEC4: - b _080BF102 -_080BEEC6: - movs r5, 0x1E - str r5, [sp] - movs r4, 0x14 - str r4, [sp, 0x4] - movs r0, 0 - movs r1, 0 - movs r2, 0 - movs r3, 0 - bl FillBgTilemapBufferRect_Palette0 - str r5, [sp] - str r4, [sp, 0x4] - movs r0, 0x2 - movs r1, 0x1 - movs r2, 0 - movs r3, 0 - bl FillBgTilemapBufferRect_Palette0 - ldr r2, _080BEF0C @ =gUnknown_83EE9C8 - ldr r0, _080BEF10 @ =gUnknown_20399C4 - ldr r0, [r0] - adds r0, 0xEA - ldrb r1, [r0] - lsls r0, r1, 2 - adds r0, r1 - lsls r0, 2 - adds r2, 0x8 - adds r0, r2 - ldr r1, [r0] - movs r0, 0x1 - movs r2, 0 - movs r3, 0 - bl CopyToBgTilemapBuffer - b _080BF0F4 - .align 2, 0 -_080BEF0C: .4byte gUnknown_83EE9C8 -_080BEF10: .4byte gUnknown_20399C4 -_080BEF14: - movs r0, 0 - bl CopyBgTilemapBufferToVram - movs r0, 0x1 - bl CopyBgTilemapBufferToVram - movs r0, 0x2 - bl CopyBgTilemapBufferToVram - b _080BF0F4 -_080BEF28: - movs r0, 0 - bl stdpal_get - movs r1, 0xF0 - movs r2, 0x20 - bl LoadPalette - ldr r6, _080BEFD0 @ =gPlttBufferUnfaded - ldr r4, _080BEFD4 @ =gUnknown_83EE9C8 - ldr r0, _080BEFD8 @ =gUnknown_20399C4 - ldr r3, [r0] - adds r3, 0xEA - ldrb r1, [r3] - lsls r0, r1, 2 - adds r0, r1 - lsls r0, 2 - adds r0, r4 - ldrh r1, [r0, 0x10] - movs r2, 0xFA - lsls r2, 1 - adds r0, r6, r2 - strh r1, [r0] - ldr r5, _080BEFDC @ =gPlttBufferFaded - ldrb r1, [r3] - lsls r0, r1, 2 - adds r0, r1 - lsls r0, 2 - adds r0, r4 - ldrh r0, [r0, 0x10] - adds r2, r5, r2 - strh r0, [r2] - ldrb r1, [r3] - lsls r0, r1, 2 - adds r0, r1 - lsls r0, 2 - adds r0, r4 - ldrh r1, [r0, 0x12] - movs r2, 0xFB - lsls r2, 1 - adds r0, r6, r2 - strh r1, [r0] - ldrb r1, [r3] - lsls r0, r1, 2 - adds r0, r1 - lsls r0, 2 - adds r0, r4 - ldrh r0, [r0, 0x12] - adds r2, r5, r2 - strh r0, [r2] - ldrb r1, [r3] - lsls r0, r1, 2 - adds r0, r1 - lsls r0, 2 - adds r0, r4 - ldr r0, [r0] - movs r1, 0 - movs r2, 0x20 - bl LoadPalette - ldr r1, _080BEFE0 @ =gUnknown_83EE9C0 - ldr r0, _080BEFE4 @ =gSaveBlock2Ptr - ldr r2, [r0] - ldrb r0, [r2, 0x8] - lsls r0, 2 - adds r0, r1 - ldrh r0, [r0] - strh r0, [r6, 0x14] - ldrb r0, [r2, 0x8] - lsls r0, 2 - adds r0, r1 - ldrh r0, [r0] - strh r0, [r5, 0x14] - ldrb r0, [r2, 0x8] - lsls r0, 2 - adds r1, 0x2 - adds r0, r1 - ldrh r0, [r0] - strh r0, [r6, 0x16] - ldrb r0, [r2, 0x8] - lsls r0, 2 - adds r0, r1 - ldrh r0, [r0] - strh r0, [r5, 0x16] - b _080BF0F4 - .align 2, 0 -_080BEFD0: .4byte gPlttBufferUnfaded -_080BEFD4: .4byte gUnknown_83EE9C8 -_080BEFD8: .4byte gUnknown_20399C4 -_080BEFDC: .4byte gPlttBufferFaded -_080BEFE0: .4byte gUnknown_83EE9C0 -_080BEFE4: .4byte gSaveBlock2Ptr -_080BEFE8: - ldr r0, _080BEFFC @ =gUnknown_20399C4 - ldr r0, [r0] - adds r0, 0xE8 - ldrb r0, [r0] - cmp r0, 0 - bne _080BEFF6 - b _080BF0F4 -_080BEFF6: - bl sub_80BF13C - b _080BF0F4 - .align 2, 0 -_080BEFFC: .4byte gUnknown_20399C4 -_080BF000: - ldr r0, _080BF018 @ =gUnknown_20399C4 - ldr r0, [r0] - adds r0, 0xE8 - ldrb r0, [r0] - cmp r0, 0 - beq _080BF0F4 - bl sub_80BF224 - bl RunTextPrinters - b _080BF0F4 - .align 2, 0 -_080BF018: .4byte gUnknown_20399C4 -_080BF01C: - bl sub_8058244 - cmp r0, 0x1 - bne _080BF0F4 - b _080BF102 -_080BF026: - ldr r0, _080BF038 @ =sub_80BF354 - bl SetVBlankCallback - ldr r2, _080BF03C @ =gPaletteFade - ldrb r0, [r2, 0x8] - movs r1, 0x80 - orrs r0, r1 - strb r0, [r2, 0x8] - b _080BF0F4 - .align 2, 0 -_080BF038: .4byte sub_80BF354 -_080BF03C: .4byte gPaletteFade -_080BF040: - ldr r5, _080BF064 @ =gUnknown_20399C4 - ldr r0, [r5] - adds r0, 0xE4 - ldr r0, [r0] - ldrh r0, [r0, 0x1E] - bl sub_8096FD4 - lsls r0, 16 - lsrs r4, r0, 16 - ldr r0, [r5] - adds r0, 0xEB - ldrb r0, [r0] - cmp r0, 0x1 - beq _080BF068 - cmp r0, 0x2 - beq _080BF080 - b _080BF0F4 - .align 2, 0 -_080BF064: .4byte gUnknown_20399C4 -_080BF068: - adds r0, r4, 0 - bl sub_80970E0 - ldr r1, _080BF07C @ =SpriteCallbackDummy - movs r0, 0 - str r0, [sp] - str r0, [sp, 0x4] - adds r0, r4, 0 - movs r2, 0x60 - b _080BF092 - .align 2, 0 -_080BF07C: .4byte SpriteCallbackDummy -_080BF080: - adds r0, r4, 0 - bl sub_80970E0 - ldr r1, _080BF0A0 @ =SpriteCallbackDummy - movs r0, 0 - str r0, [sp] - str r0, [sp, 0x4] - adds r0, r4, 0 - movs r2, 0x28 -_080BF092: - movs r3, 0x80 - bl sub_8096ECC - ldr r1, [r5] - adds r1, 0xEC - strb r0, [r1] - b _080BF0F4 - .align 2, 0 -_080BF0A0: .4byte SpriteCallbackDummy -_080BF0A4: - movs r1, 0x82 - lsls r1, 5 - movs r0, 0 - bl SetGpuReg - movs r0, 0 - bl ShowBg - movs r0, 0x1 - bl ShowBg - movs r0, 0x2 - bl ShowBg - movs r0, 0x1 - negs r0, r0 - movs r1, 0 - str r1, [sp] - movs r2, 0x10 - movs r3, 0 - bl BeginNormalPaletteFade - ldr r2, _080BF0E8 @ =gPaletteFade - ldrb r1, [r2, 0x8] - movs r0, 0x7F - ands r0, r1 - strb r0, [r2, 0x8] - ldr r0, _080BF0EC @ =gUnknown_20399C4 - ldr r0, [r0] - adds r0, 0xE0 - ldr r1, _080BF0F0 @ =sub_80BF394 - str r1, [r0] - movs r0, 0x1 - b _080BF104 - .align 2, 0 -_080BF0E8: .4byte gPaletteFade -_080BF0EC: .4byte gUnknown_20399C4 -_080BF0F0: .4byte sub_80BF394 -_080BF0F4: - ldr r1, _080BF10C @ =gMain - movs r0, 0x87 - lsls r0, 3 - adds r1, r0 - ldrb r0, [r1] - adds r0, 0x1 - strb r0, [r1] -_080BF102: - movs r0, 0 -_080BF104: - add sp, 0xC - pop {r4-r6} - pop {r1} - bx r1 - .align 2, 0 -_080BF10C: .4byte gMain - thumb_func_end sub_80BED18 - - thumb_func_start sub_80BF110 -sub_80BF110: @ 80BF110 - push {lr} -_080BF112: - bl sub_80BED18 - lsls r0, 24 - lsrs r0, 24 - cmp r0, 0x1 - bne _080BF12C - ldr r0, _080BF128 @ =sub_80BF368 - bl SetMainCallback2 - b _080BF138 - .align 2, 0 -_080BF128: .4byte sub_80BF368 -_080BF12C: - bl MenuHelpers_LinkSomething - lsls r0, 24 - lsrs r0, 24 - cmp r0, 0x1 - bne _080BF112 -_080BF138: - pop {r0} - bx r0 - thumb_func_end sub_80BF110 - - thumb_func_start sub_80BF13C -sub_80BF13C: @ 80BF13C - push {r4-r7,lr} - movs r6, 0 - movs r5, 0 - ldr r2, _080BF1E0 @ =gUnknown_20399C4 - ldr r0, [r2] - adds r0, 0xF8 - ldr r0, [r0] - ldrb r0, [r0] - cmp r5, r0 - bcs _080BF19C - adds r7, r2, 0 -_080BF152: - movs r0, 0x1A - muls r0, r5 - ldr r2, [r7] - adds r0, r2, r0 - adds r1, r2, 0 - adds r1, 0xE4 - lsls r3, r6, 1 - ldr r1, [r1] - adds r1, r3 - adds r2, 0xF8 - ldr r2, [r2] - ldr r2, [r2, 0x8] - lsls r4, r5, 2 - adds r2, r4, r2 - ldr r2, [r2] - lsls r2, 30 - lsrs r2, 30 - movs r3, 0x1 - bl ConvertEasyChatWordsToString - ldr r0, [r7] - adds r0, 0xF8 - ldr r1, [r0] - ldr r0, [r1, 0x8] - adds r4, r0 - ldr r0, [r4] - lsls r0, 30 - lsrs r0, 30 - adds r0, r6, r0 - lsls r0, 24 - lsrs r6, r0, 24 - adds r0, r5, 0x1 - lsls r0, 16 - lsrs r5, r0, 16 - ldrb r1, [r1] - cmp r5, r1 - bcc _080BF152 -_080BF19C: - ldr r4, _080BF1E0 @ =gUnknown_20399C4 - ldr r1, [r4] - adds r0, r1, 0 - adds r0, 0xEE - ldrb r0, [r0] - cmp r0, 0 - bne _080BF1E8 - adds r0, r1, 0 - adds r0, 0xD0 - adds r1, 0xE4 - ldr r1, [r1] - adds r1, 0x12 - bl StringCopy - ldr r1, _080BF1E4 @ =gUnknown_841E234 - bl StringCopy - ldr r0, [r4] - adds r0, 0xD0 - bl StringLength - ldr r2, [r4] - adds r1, r2, 0 - adds r1, 0xF8 - ldr r1, [r1] - lsls r0, 16 - lsrs r0, 13 - subs r0, 0x60 - ldrb r1, [r1, 0x2] - subs r1, r0 - adds r2, 0xE9 - strb r1, [r2] - b _080BF21E - .align 2, 0 -_080BF1E0: .4byte gUnknown_20399C4 -_080BF1E4: .4byte gUnknown_841E234 -_080BF1E8: - adds r0, r1, 0 - adds r0, 0xD0 - adds r1, 0xE4 - ldr r1, [r1] - adds r1, 0x12 - bl StringCopy - ldr r0, [r4] - adds r0, 0xD0 - bl StringLength - lsls r0, 16 - lsrs r0, 16 - cmp r0, 0x5 - bhi _080BF210 - ldr r0, [r4] - adds r0, 0xD0 - movs r1, 0x1 - bl ConvertInternationalString -_080BF210: - ldr r0, [r4] - adds r1, r0, 0 - adds r1, 0xF8 - ldr r1, [r1] - ldrb r1, [r1, 0x2] - adds r0, 0xE9 - strb r1, [r0] -_080BF21E: - pop {r4-r7} - pop {r0} - bx r0 - thumb_func_end sub_80BF13C - - thumb_func_start sub_80BF224 -sub_80BF224: @ 80BF224 - push {r4-r7,lr} - mov r7, r9 - mov r6, r8 - push {r6,r7} - sub sp, 0xC - movs r7, 0 - movs r0, 0 - bl PutWindowTilemap - movs r0, 0x1 - bl PutWindowTilemap - movs r0, 0 - movs r1, 0 - bl FillWindowPixelBuffer - movs r0, 0x1 - movs r1, 0 - bl FillWindowPixelBuffer - movs r6, 0 - ldr r0, _080BF348 @ =gUnknown_20399C4 - mov r9, r0 - ldr r0, [r0] - adds r0, 0xF8 - ldr r0, [r0] - ldrb r0, [r0] - cmp r6, r0 - bcs _080BF2CE - mov r8, r9 -_080BF260: - mov r0, r8 - ldr r1, [r0] - movs r0, 0x1A - muls r0, r6 - adds r5, r1, r0 - ldrb r0, [r5] - cmp r0, 0xFF - beq _080BF2BA - cmp r0, 0 - beq _080BF2BA - adds r0, r1, 0 - adds r0, 0xF8 - ldr r1, [r0] - ldr r0, [r1, 0x8] - lsls r4, r6, 2 - adds r0, r4, r0 - ldr r2, [r0] - lsls r2, 24 - lsrs r2, 26 - ldrb r0, [r1, 0x4] - adds r2, r0 - lsls r2, 24 - lsrs r2, 24 - ldrb r3, [r1, 0x3] - adds r3, r7, r3 - lsls r3, 24 - lsrs r3, 24 - ldr r0, _080BF34C @ =gUnknown_83EE9BC - str r0, [sp] - movs r0, 0 - str r0, [sp, 0x4] - str r5, [sp, 0x8] - movs r1, 0x1 - bl AddTextPrinterParameterized3 - mov r1, r8 - ldr r0, [r1] - adds r0, 0xF8 - ldr r0, [r0] - ldr r0, [r0, 0x8] - adds r4, r0 - ldrb r0, [r4, 0x1] - adds r0, r7, r0 - lsls r0, 24 - lsrs r7, r0, 24 -_080BF2BA: - adds r0, r6, 0x1 - lsls r0, 16 - lsrs r6, r0, 16 - mov r1, r9 - ldr r0, [r1] - adds r0, 0xF8 - ldr r0, [r0] - ldrb r0, [r0] - cmp r6, r0 - bcc _080BF260 -_080BF2CE: - ldr r4, _080BF350 @ =gUnknown_841E234 - movs r0, 0x1 - adds r1, r4, 0 - movs r2, 0 - bl GetStringWidth - mov r9, r0 - ldr r5, _080BF348 @ =gUnknown_20399C4 - ldr r0, [r5] - adds r1, r0, 0 - adds r1, 0xE9 - ldrb r2, [r1] - adds r0, 0xF8 - ldr r0, [r0] - ldrb r3, [r0, 0x1] - ldr r0, _080BF34C @ =gUnknown_83EE9BC - mov r8, r0 - str r0, [sp] - movs r6, 0 - str r6, [sp, 0x4] - str r4, [sp, 0x8] - movs r0, 0x1 - movs r1, 0x1 - bl AddTextPrinterParameterized3 - ldr r1, [r5] - adds r0, r1, 0 - adds r0, 0xE9 - ldrb r2, [r0] - add r2, r9 - lsls r2, 24 - lsrs r2, 24 - adds r0, 0xF - ldr r0, [r0] - ldrb r3, [r0, 0x1] - mov r0, r8 - str r0, [sp] - str r6, [sp, 0x4] - adds r0, r1, 0 - adds r0, 0xD0 - str r0, [sp, 0x8] - movs r0, 0x1 - movs r1, 0x1 - bl AddTextPrinterParameterized3 - movs r0, 0 - movs r1, 0x3 - bl CopyWindowToVram - movs r0, 0x1 - movs r1, 0x3 - bl CopyWindowToVram - add sp, 0xC - pop {r3,r4} - mov r8, r3 - mov r9, r4 - pop {r4-r7} - pop {r0} - bx r0 - .align 2, 0 -_080BF348: .4byte gUnknown_20399C4 -_080BF34C: .4byte gUnknown_83EE9BC -_080BF350: .4byte gUnknown_841E234 - thumb_func_end sub_80BF224 - - thumb_func_start sub_80BF354 -sub_80BF354: @ 80BF354 - push {lr} - bl LoadOam - bl ProcessSpriteCopyRequests - bl TransferPlttBuffer - pop {r0} - bx r0 - thumb_func_end sub_80BF354 - - thumb_func_start sub_80BF368 -sub_80BF368: @ 80BF368 - push {r4,lr} - ldr r4, _080BF390 @ =gUnknown_20399C4 - ldr r0, [r4] - adds r0, 0xEB - ldrb r0, [r0] - cmp r0, 0 - beq _080BF37E - bl AnimateSprites - bl BuildOamBuffer -_080BF37E: - ldr r0, [r4] - adds r0, 0xE0 - ldr r0, [r0] - bl _call_via_r0 - pop {r4} - pop {r0} - bx r0 - .align 2, 0 -_080BF390: .4byte gUnknown_20399C4 - thumb_func_end sub_80BF368 - - thumb_func_start sub_80BF394 -sub_80BF394: @ 80BF394 - push {lr} - bl UpdatePaletteFade - lsls r0, 24 - cmp r0, 0 - bne _080BF3AA - ldr r0, _080BF3B0 @ =gUnknown_20399C4 - ldr r0, [r0] - adds r0, 0xE0 - ldr r1, _080BF3B4 @ =sub_80BF3B8 - str r1, [r0] -_080BF3AA: - pop {r0} - bx r0 - .align 2, 0 -_080BF3B0: .4byte gUnknown_20399C4 -_080BF3B4: .4byte sub_80BF3B8 - thumb_func_end sub_80BF394 - - thumb_func_start sub_80BF3B8 -sub_80BF3B8: @ 80BF3B8 - push {lr} - sub sp, 0x4 - ldr r0, _080BF3E8 @ =gMain - ldrh r1, [r0, 0x2E] - movs r0, 0x3 - ands r0, r1 - cmp r0, 0 - beq _080BF3E2 - movs r0, 0x1 - negs r0, r0 - movs r1, 0 - str r1, [sp] - movs r2, 0 - movs r3, 0x10 - bl BeginNormalPaletteFade - ldr r0, _080BF3EC @ =gUnknown_20399C4 - ldr r0, [r0] - adds r0, 0xE0 - ldr r1, _080BF3F0 @ =sub_80BF3F4 - str r1, [r0] -_080BF3E2: - add sp, 0x4 - pop {r0} - bx r0 - .align 2, 0 -_080BF3E8: .4byte gMain -_080BF3EC: .4byte gUnknown_20399C4 -_080BF3F0: .4byte sub_80BF3F4 - thumb_func_end sub_80BF3B8 - - thumb_func_start sub_80BF3F4 -sub_80BF3F4: @ 80BF3F4 - push {r4,lr} - bl UpdatePaletteFade - lsls r0, 24 - cmp r0, 0 - bne _080BF460 - ldr r4, _080BF468 @ =gUnknown_20399C4 - ldr r0, [r4] - adds r0, 0xDC - ldr r0, [r0] - bl SetMainCallback2 - ldr r0, [r4] - adds r1, r0, 0 - adds r1, 0xEB - ldrb r1, [r1] - cmp r1, 0x2 - bgt _080BF442 - cmp r1, 0x1 - blt _080BF442 - adds r0, 0xE4 - ldr r0, [r0] - ldrh r0, [r0, 0x1E] - bl sub_8096FD4 - lsls r0, 16 - lsrs r0, 16 - bl sub_8097168 - ldr r0, [r4] - adds r0, 0xEC - ldrb r1, [r0] - lsls r0, r1, 4 - adds r0, r1 - lsls r0, 2 - ldr r1, _080BF46C @ =gSprites - adds r0, r1 - bl sub_8097070 -_080BF442: - ldr r4, _080BF468 @ =gUnknown_20399C4 - ldr r0, [r4] - ldr r2, _080BF470 @ =0x000020fc - movs r1, 0 - bl memset - bl ResetPaletteFade - bl FreeAllWindowBuffers - ldr r0, [r4] - bl Free - movs r0, 0 - str r0, [r4] -_080BF460: - pop {r4} - pop {r0} - bx r0 - .align 2, 0 -_080BF468: .4byte gUnknown_20399C4 -_080BF46C: .4byte gSprites -_080BF470: .4byte 0x000020fc - thumb_func_end sub_80BF3F4 - - .align 2, 0 @ Don't pad with nop. diff --git a/asm/map_obj_80688E4.s b/asm/map_obj_80688E4.s index bc06896bc..04df8c938 100644 --- a/asm/map_obj_80688E4.s +++ b/asm/map_obj_80688E4.s @@ -82,8 +82,8 @@ _0806896E: bx r1 thumb_func_end FreezeMapObject - thumb_func_start player_bitmagic -player_bitmagic: @ 8068974 + thumb_func_start FreezeEventObjects +FreezeEventObjects: @ 8068974 push {r4,r5,lr} movs r4, 0 ldr r5, _080689A8 @ =gMapObjects @@ -114,7 +114,7 @@ _08068998: .align 2, 0 _080689A8: .4byte gMapObjects _080689AC: .4byte gPlayerAvatar - thumb_func_end player_bitmagic + thumb_func_end FreezeEventObjects thumb_func_start FreezeMapObjectsExceptOne FreezeMapObjectsExceptOne: @ 80689B0 diff --git a/asm/overworld.s b/asm/overworld.s index 9bcd95eab..9b9fe037f 100644 --- a/asm/overworld.s +++ b/asm/overworld.s @@ -15,7 +15,7 @@ sub_8054BC8: @ 8054BC8 movs r0, 0xA4 lsls r0, 2 adds r4, r0 - bl sub_8054C04 + bl ComputeWhiteOutMoneyLoss adds r1, r0, 0 adds r0, r4, 0 bl RemoveMoney @@ -31,17 +31,17 @@ _08054BFC: .4byte gUnknown_81A654B _08054C00: .4byte gSaveBlock1Ptr thumb_func_end sub_8054BC8 - thumb_func_start sub_8054C04 -sub_8054C04: @ 8054C04 + thumb_func_start ComputeWhiteOutMoneyLoss +ComputeWhiteOutMoneyLoss: @ 8054C04 push {r4,lr} - bl sub_8054C70 + bl CountBadgesForOverworldWhiteOutLossCalculation adds r4, r0, 0 lsls r4, 24 lsrs r4, 24 bl GetPlayerPartyHighestLevel lsls r0, 24 lsrs r0, 24 - ldr r1, _08054C40 @ =gUnknown_826D294 + ldr r1, _08054C40 @ =sWhiteOutMoneyLossMultipliers adds r4, r1 ldrb r1, [r4] lsls r1, 2 @@ -62,14 +62,14 @@ _08054C38: pop {r1} bx r1 .align 2, 0 -_08054C40: .4byte gUnknown_826D294 +_08054C40: .4byte sWhiteOutMoneyLossMultipliers _08054C44: .4byte gSaveBlock1Ptr - thumb_func_end sub_8054C04 + thumb_func_end ComputeWhiteOutMoneyLoss - thumb_func_start sub_8054C48 -sub_8054C48: @ 8054C48 + thumb_func_start Special_OverworldWhiteOutGetMoneyLoss +Special_OverworldWhiteOutGetMoneyLoss: @ 8054C48 push {r4,r5,lr} - bl sub_8054C04 + bl ComputeWhiteOutMoneyLoss adds r4, r0, 0 ldr r5, _08054C6C @ =gStringVar1 bl CountDigits @@ -85,14 +85,14 @@ sub_8054C48: @ 8054C48 bx r0 .align 2, 0 _08054C6C: .4byte gStringVar1 - thumb_func_end sub_8054C48 + thumb_func_end Special_OverworldWhiteOutGetMoneyLoss - thumb_func_start sub_8054C70 -sub_8054C70: @ 8054C70 + thumb_func_start CountBadgesForOverworldWhiteOutLossCalculation +CountBadgesForOverworldWhiteOutLossCalculation: @ 8054C70 push {r4-r6,lr} movs r6, 0 movs r5, 0 - ldr r4, _08054C9C @ =gUnknown_826D29E + ldr r4, _08054C9C @ =sWhiteOutMoneyLossBadgeFlagIDs _08054C78: ldrh r0, [r4] bl FlagGet @@ -112,8 +112,8 @@ _08054C8A: pop {r1} bx r1 .align 2, 0 -_08054C9C: .4byte gUnknown_826D29E - thumb_func_end sub_8054C70 +_08054C9C: .4byte sWhiteOutMoneyLossBadgeFlagIDs + thumb_func_end CountBadgesForOverworldWhiteOutLossCalculation thumb_func_start sub_8054CA0 sub_8054CA0: @ 8054CA0 @@ -749,7 +749,7 @@ warp_shift: @ 8055198 str r0, [r2, 0x4] str r1, [r2, 0x8] ldr r2, _080551D0 @ =gUnknown_2031DC4 - ldr r0, _080551D4 @ =gUnknown_826D2B0 + ldr r0, _080551D4 @ =sDummyWarpData ldr r1, [r0, 0x4] ldr r0, [r0] str r0, [r2] @@ -763,7 +763,7 @@ _080551C4: .4byte gUnknown_2031DB4 _080551C8: .4byte gSaveBlock1Ptr _080551CC: .4byte gUnknown_2031DBC _080551D0: .4byte gUnknown_2031DC4 -_080551D4: .4byte gUnknown_826D2B0 +_080551D4: .4byte sDummyWarpData _080551D8: .4byte gUnknown_2031DCC thumb_func_end warp_shift @@ -1708,7 +1708,7 @@ sub_8055864: @ 8055864 bl TrySetMapSaveWarpStatus bl sub_806E110 bl nullsub_74 - bl sub_806D7E8 + bl RestartWildEncounterImmunitySteps adds r0, r5, 0 adds r1, r4, 0 bl sub_810C578 @@ -1717,7 +1717,7 @@ sub_8055864: @ 8055864 bl sub_8055CB8 bl sav1_reset_battle_music_maybe bl mapheader_run_script_with_tag_x3 - bl sub_815D8F8 + bl TryRegenerateRenewableHiddenItems bl not_trainer_hill_battle_pyramid ldr r4, _0805591C @ =gMapHeader ldr r0, [r4] @@ -1771,7 +1771,7 @@ sub_8055920: @ 8055920 bl TrySetMapSaveWarpStatus bl sub_806E110 bl nullsub_74 - bl sub_806D7E8 + bl RestartWildEncounterImmunitySteps ldr r0, _080559A0 @ =gSaveBlock1Ptr ldr r1, [r0] movs r0, 0x4 @@ -1794,7 +1794,7 @@ _08055974: bl sub_8055CB8 bl sav1_reset_battle_music_maybe bl mapheader_run_script_with_tag_x3 - bl sub_815D8F8 + bl TryRegenerateRenewableHiddenItems bl UpdateLocationHistoryForRoamer bl RoamerMoveToOtherLocationSet bl sub_8110920 @@ -2284,8 +2284,8 @@ _08055D28: .4byte gUnknown_83C68E0 _08055D2C: .4byte gSaveBlock1Ptr thumb_func_end Overworld_SetFlashLevel - thumb_func_start sav1_get_flash_used_on_map -sav1_get_flash_used_on_map: @ 8055D30 + thumb_func_start Overworld_GetFlashLevel +Overworld_GetFlashLevel: @ 8055D30 ldr r0, _08055D3C @ =gSaveBlock1Ptr ldr r0, [r0] adds r0, 0x30 @@ -2293,7 +2293,7 @@ sav1_get_flash_used_on_map: @ 8055D30 bx lr .align 2, 0 _08055D3C: .4byte gSaveBlock1Ptr - thumb_func_end sav1_get_flash_used_on_map + thumb_func_end Overworld_GetFlashLevel thumb_func_start SetCurrentMapLayout SetCurrentMapLayout: @ 8055D40 @@ -3293,7 +3293,7 @@ _080564B0: adds r2, r4, 0 bl sub_805B3E0 _080564BA: - bl sub_811092C + bl RunQuestLogCB add sp, 0x4 pop {r4-r6} pop {r0} @@ -3328,7 +3328,7 @@ sub_80564C8: @ 80564C8 .align 2, 0 _08056508: .4byte gUnknown_3005E90 _0805650C: - bl sub_811092C + bl RunQuestLogCB b _08056522 _08056512: bl sub_8111CD0 @@ -3336,7 +3336,7 @@ _08056512: lsrs r0, 24 cmp r0, 0x1 bne _08056522 - bl sub_811092C + bl RunQuestLogCB _08056522: ldr r0, _08056530 @ =gUnknown_3005E90 bl sub_806C888 @@ -3522,8 +3522,8 @@ _0805669C: .4byte sub_8056534 _080566A0: .4byte sub_80565B4 thumb_func_end CB2_NewGame - thumb_func_start c2_whiteout -c2_whiteout: @ 80566A4 + thumb_func_start CB2_WhiteOut +CB2_WhiteOut: @ 80566A4 push {lr} sub sp, 0x4 ldr r1, _08056708 @ =gMain @@ -3569,7 +3569,7 @@ _0805670C: .4byte gFieldCallback _08056710: .4byte sub_807F5F0 _08056714: .4byte sub_8056534 _08056718: .4byte sub_80565B4 - thumb_func_end c2_whiteout + thumb_func_end CB2_WhiteOut thumb_func_start CB2_LoadMap CB2_LoadMap: @ 805671C @@ -3944,7 +3944,7 @@ VBlankCB_Field: @ 8056A14 thumb_func_start sub_8056A34 sub_8056A34: @ 8056A34 push {lr} - bl sav1_get_flash_used_on_map + bl Overworld_GetFlashLevel lsls r0, 24 lsrs r0, 24 cmp r0, 0 @@ -6964,13 +6964,13 @@ sub_8058214: @ 8058214 thumb_func_start sub_8058230 sub_8058230: @ 8058230 push {lr} - ldr r0, _08058240 @ =gUnknown_81BB9F0 + ldr r0, _08058240 @ =EventScript_1BB9F0 bl ScriptContext1_SetupScript bl ScriptContext2_Enable pop {r0} bx r0 .align 2, 0 -_08058240: .4byte gUnknown_81BB9F0 +_08058240: .4byte EventScript_1BB9F0 thumb_func_end sub_8058230 thumb_func_start sub_8058244 diff --git a/asm/party_menu.s b/asm/party_menu.s index df016c018..b0506d6c9 100644 --- a/asm/party_menu.s +++ b/asm/party_menu.s @@ -4284,7 +4284,7 @@ _08120B64: lsls r0, 16 lsrs r0, 16 adds r1, r6, 0 - bl sub_8120BE8 + bl IsMonCompatibleWithMoveTutorMove lsls r0, 24 cmp r0, 0 bne _08120B80 @@ -4293,7 +4293,7 @@ _08120B7C: b _08120B9E _08120B80: mov r0, r8 - bl sub_8120BA8 + bl GetMoveTutorMove _08120B86: lsls r0, 16 lsrs r1, r0, 16 @@ -4315,8 +4315,8 @@ _08120B9E: bx r1 thumb_func_end sub_8120B20 - thumb_func_start sub_8120BA8 -sub_8120BA8: @ 8120BA8 + thumb_func_start GetMoveTutorMove +GetMoveTutorMove: @ 8120BA8 push {lr} lsls r0, 24 lsrs r1, r0, 24 @@ -4333,19 +4333,19 @@ _08120BBC: b _08120BD6 _08120BC2: movs r0, 0xA9 - lsls r0, 1 + lsls r0, 1 @ MOVE_FRENZY_PLANT b _08120BDE _08120BC8: - ldr r0, _08120BCC @ =0x00000133 + ldr r0, _08120BCC @ =0x00000133 @ MOVE_BLAST_BURN b _08120BDE .align 2, 0 _08120BCC: .4byte 0x00000133 _08120BD0: movs r0, 0x9A - lsls r0, 1 + lsls r0, 1 @ MOVE_HYDRO_CANNON b _08120BDE _08120BD6: - ldr r0, _08120BE4 @ =gUnknown_8459B60 + ldr r0, _08120BE4 @ =gMoveTutorMoves lsls r1, 1 adds r1, r0 ldrh r0, [r1] @@ -4353,11 +4353,11 @@ _08120BDE: pop {r1} bx r1 .align 2, 0 -_08120BE4: .4byte gUnknown_8459B60 - thumb_func_end sub_8120BA8 +_08120BE4: .4byte gMoveTutorMoves + thumb_func_end GetMoveTutorMove - thumb_func_start sub_8120BE8 -sub_8120BE8: @ 8120BE8 + thumb_func_start IsMonCompatibleWithMoveTutorMove +IsMonCompatibleWithMoveTutorMove: @ 8120BE8 push {lr} lsls r0, 16 lsrs r0, 16 @@ -4375,19 +4375,19 @@ _08120C00: beq _08120C12 b _08120C18 _08120C06: - cmp r0, 0x3 + cmp r0, 3 @ SPECIES_VENUSAUR beq _08120C34 b _08120C2A _08120C0C: - cmp r0, 0x6 + cmp r0, 6 @ SPECIES_CHARIZARD beq _08120C34 b _08120C2A _08120C12: - cmp r0, 0x9 + cmp r0, 9 @ SPECIES_BLASTOISE beq _08120C34 b _08120C2A _08120C18: - ldr r1, _08120C30 @ =gUnknown_8459B7E + ldr r1, _08120C30 @ =gMoveTutorMoveCompatibilityTable lsls r0, 1 adds r0, r1 ldrh r0, [r0] @@ -4400,13 +4400,13 @@ _08120C2A: movs r0, 0 b _08120C36 .align 2, 0 -_08120C30: .4byte gUnknown_8459B7E +_08120C30: .4byte gMoveTutorMoveCompatibilityTable _08120C34: movs r0, 0x1 _08120C36: pop {r1} bx r1 - thumb_func_end sub_8120BE8 + thumb_func_end IsMonCompatibleWithMoveTutorMove thumb_func_start sub_8120C3C sub_8120C3C: @ 8120C3C @@ -7206,7 +7206,7 @@ party_menu_link_mon_icon_anim: @ 812224C lsrs r7, r3, 24 cmp r5, 0 beq _0812229A - ldr r1, _081222A4 @ =sub_809718C + ldr r1, _081222A4 @ =SpriteCB_MonIcon ldr r0, [r4, 0x4] ldrb r2, [r0] ldrb r3, [r0, 0x1] @@ -7240,7 +7240,7 @@ _0812229A: pop {r0} bx r0 .align 2, 0 -_081222A4: .4byte sub_809718C +_081222A4: .4byte SpriteCB_MonIcon _081222A8: .4byte gSprites thumb_func_end party_menu_link_mon_icon_anim @@ -7276,7 +7276,7 @@ _081222D4: ldr r1, _081222F0 @ =gSprites adds r0, r1 movs r1, 0 - bl sub_8097414 + bl MonIcon_SetAnim b _0812234C .align 2, 0 _081222F0: .4byte gSprites @@ -7287,7 +7287,7 @@ _081222F4: ldr r1, _08122308 @ =gSprites adds r0, r1 movs r1, 0x1 - bl sub_8097414 + bl MonIcon_SetAnim b _0812234C .align 2, 0 _08122308: .4byte gSprites @@ -7298,7 +7298,7 @@ _0812230C: ldr r1, _08122320 @ =gSprites adds r0, r1 movs r1, 0x2 - bl sub_8097414 + bl MonIcon_SetAnim b _0812234C .align 2, 0 _08122320: .4byte gSprites @@ -7309,7 +7309,7 @@ _08122324: ldr r1, _08122338 @ =gSprites adds r0, r1 movs r1, 0x3 - bl sub_8097414 + bl MonIcon_SetAnim b _0812234C .align 2, 0 _08122338: .4byte gSprites @@ -7320,7 +7320,7 @@ _0812233C: ldr r1, _08122354 @ =gSprites adds r0, r1 movs r1, 0x4 - bl sub_8097414 + bl MonIcon_SetAnim _0812234C: pop {r4} pop {r0} @@ -10642,7 +10642,7 @@ sub_8123D84: @ 8123D84 adds r0, r1 ldr r1, _08123DC8 @ =sub_8123DCC movs r2, 0x1 - bl sub_80BEBEC + bl ReadMail pop {r0} bx r0 .align 2, 0 @@ -15699,7 +15699,7 @@ sub_8126704: @ 8126704 cmp r4, 0 beq _08126754 bl sub_811F070 - ldr r0, _08126750 @ =gUnknown_300537C + ldr r0, _08126750 @ =gCB2_AfterEvolution ldr r1, [r6] str r1, [r0] ldrb r3, [r6, 0x9] @@ -15713,7 +15713,7 @@ sub_8126704: @ 8126704 .align 2, 0 _08126748: .4byte gUnknown_203B0A0 _0812674C: .4byte gPlayerParty -_08126750: .4byte gUnknown_300537C +_08126750: .4byte gCB2_AfterEvolution _08126754: ldr r0, _08126768 @ =gTasks lsls r1, r5, 2 @@ -16248,7 +16248,7 @@ _08126BCE: thumb_func_start sub_8126BD4 sub_8126BD4: @ 8126BD4 push {r4,r5,lr} - ldr r1, _08126C10 @ =gUnknown_300537C + ldr r1, _08126C10 @ =gCB2_AfterEvolution ldr r4, _08126C14 @ =gUnknown_203B0A0 ldr r0, [r4] str r0, [r1] @@ -16274,7 +16274,7 @@ sub_8126BD4: @ 8126BD4 pop {r0} bx r0 .align 2, 0 -_08126C10: .4byte gUnknown_300537C +_08126C10: .4byte gCB2_AfterEvolution _08126C14: .4byte gUnknown_203B0A0 _08126C18: .4byte gSpecialVar_ItemId _08126C1C: .4byte gPlayerParty @@ -16549,7 +16549,7 @@ sub_8126DC8: @ 8126DC8 bl GetMonNickname ldr r4, _08126E5C @ =gSpecialVar_0x8005 ldrb r0, [r4] - bl sub_8120BA8 + bl GetMoveTutorMove strh r0, [r7, 0xE] ldr r0, _08126E60 @ =gStringVar2 movs r1, 0xE diff --git a/asm/pokemon_icon.s b/asm/pokemon_icon.s deleted file mode 100644 index f7ab6b1a6..000000000 --- a/asm/pokemon_icon.s +++ /dev/null @@ -1,848 +0,0 @@ - .include "asm/macros.inc" - .include "constants/constants.inc" - - .syntax unified - - .text - - thumb_func_start CreateMonIcon -CreateMonIcon: @ 8096E18 - push {r4-r7,lr} - mov r7, r9 - mov r6, r8 - push {r6,r7} - sub sp, 0x30 - adds r4, r0, 0 - adds r6, r1, 0 - ldr r0, [sp, 0x4C] - ldr r1, [sp, 0x50] - ldr r5, [sp, 0x54] - lsls r4, 16 - lsrs r4, 16 - lsls r2, 16 - lsrs r2, 16 - mov r8, r2 - lsls r3, 16 - lsrs r7, r3, 16 - lsls r0, 24 - lsrs r0, 24 - mov r9, r0 - ldr r0, _08096EB4 @ =gUnknown_83D4068 - str r0, [sp, 0x18] - adds r0, r4, 0 - adds r2, r5, 0 - bl GetMonIconPtr - str r0, [sp, 0x1C] - ldr r0, _08096EB8 @ =gUnknown_83D40AC - str r0, [sp, 0x20] - ldr r0, _08096EBC @ =gUnknown_83D40E0 - str r0, [sp, 0x24] - str r6, [sp, 0x28] - ldr r0, _08096EC0 @ =gUnknown_83D3E80 - adds r0, r4, r0 - ldr r1, _08096EC4 @ =0x0000dac0 - adds r5, r1, 0 - ldrb r0, [r0] - adds r1, r5, r0 - add r0, sp, 0x2C - strh r1, [r0] - add r1, sp, 0x18 - mov r0, sp - movs r2, 0x18 - bl memcpy - movs r0, 0xCE - lsls r0, 1 - cmp r4, r0 - bls _08096E7E - mov r0, sp - strh r5, [r0, 0x14] -_08096E7E: - mov r0, r8 - lsls r1, r0, 16 - asrs r1, 16 - lsls r2, r7, 16 - asrs r2, 16 - mov r0, sp - mov r3, r9 - bl CreateMonIconSprite - adds r4, r0, 0 - lsls r4, 24 - lsrs r4, 24 - lsls r0, r4, 4 - adds r0, r4 - lsls r0, 2 - ldr r1, _08096EC8 @ =gSprites - adds r0, r1 - bl UpdateMonIconFrame - adds r0, r4, 0 - add sp, 0x30 - pop {r3,r4} - mov r8, r3 - mov r9, r4 - pop {r4-r7} - pop {r1} - bx r1 - .align 2, 0 -_08096EB4: .4byte gUnknown_83D4068 -_08096EB8: .4byte gUnknown_83D40AC -_08096EBC: .4byte gUnknown_83D40E0 -_08096EC0: .4byte gUnknown_83D3E80 -_08096EC4: .4byte 0x0000dac0 -_08096EC8: .4byte gSprites - thumb_func_end CreateMonIcon - - thumb_func_start sub_8096ECC -sub_8096ECC: @ 8096ECC - push {r4-r7,lr} - sub sp, 0x18 - adds r4, r2, 0 - adds r5, r3, 0 - ldr r6, [sp, 0x2C] - lsls r0, 16 - lsrs r0, 16 - lsls r4, 16 - lsrs r4, 16 - lsls r5, 16 - lsrs r5, 16 - lsls r6, 24 - lsrs r6, 24 - mov r3, sp - ldr r2, _08096F44 @ =gUnknown_83D4068 - str r2, [sp] - movs r2, 0 - str r2, [sp, 0x4] - ldr r2, _08096F48 @ =gUnknown_83D40AC - str r2, [sp, 0x8] - ldr r2, _08096F4C @ =gUnknown_83D40E0 - str r2, [sp, 0xC] - str r1, [sp, 0x10] - ldr r2, _08096F50 @ =gUnknown_83D3E80 - adds r2, r0, r2 - ldr r7, _08096F54 @ =0x0000dac0 - adds r1, r7, 0 - ldrb r2, [r2] - adds r1, r2 - strh r1, [r3, 0x14] - ldr r1, [sp, 0x30] - bl sub_8097028 - str r0, [sp, 0x4] - lsls r4, 16 - asrs r4, 16 - lsls r5, 16 - asrs r5, 16 - mov r0, sp - adds r1, r4, 0 - adds r2, r5, 0 - adds r3, r6, 0 - bl CreateMonIconSprite - adds r4, r0, 0 - lsls r4, 24 - lsrs r4, 24 - lsls r0, r4, 4 - adds r0, r4 - lsls r0, 2 - ldr r1, _08096F58 @ =gSprites - adds r0, r1 - bl UpdateMonIconFrame - adds r0, r4, 0 - add sp, 0x18 - pop {r4-r7} - pop {r1} - bx r1 - .align 2, 0 -_08096F44: .4byte gUnknown_83D4068 -_08096F48: .4byte gUnknown_83D40AC -_08096F4C: .4byte gUnknown_83D40E0 -_08096F50: .4byte gUnknown_83D3E80 -_08096F54: .4byte 0x0000dac0 -_08096F58: .4byte gSprites - thumb_func_end sub_8096ECC - - thumb_func_start mon_icon_convert_unown_species_id -mon_icon_convert_unown_species_id: @ 8096F5C - push {lr} - lsls r0, 16 - lsrs r2, r0, 16 - cmp r2, 0xC9 - bne _08096F86 - adds r0, r1, 0 - bl GetUnownLetterByPersonality - lsls r0, 16 - lsrs r0, 16 - cmp r0, 0 - bne _08096F78 - movs r0, 0xC9 - b _08096F82 -_08096F78: - movs r1, 0xCE - lsls r1, 1 - adds r0, r1 - lsls r0, 16 - lsrs r0, 16 -_08096F82: - adds r1, r0, 0 - b _08096F92 -_08096F86: - movs r0, 0xCE - lsls r0, 1 - adds r1, r2, 0 - cmp r1, r0 - bls _08096F92 - movs r1, 0 -_08096F92: - adds r0, r1, 0 - pop {r1} - bx r1 - thumb_func_end mon_icon_convert_unown_species_id - - thumb_func_start GetUnownLetterByPersonality -GetUnownLetterByPersonality: @ 8096F98 - push {lr} - adds r2, r0, 0 - cmp r2, 0 - beq _08096FCE - movs r0, 0xC0 - lsls r0, 18 - ands r0, r2 - lsrs r0, 18 - movs r1, 0xC0 - lsls r1, 10 - ands r1, r2 - lsrs r1, 12 - orrs r0, r1 - movs r1, 0xC0 - lsls r1, 2 - ands r1, r2 - lsrs r1, 6 - orrs r0, r1 - movs r1, 0x3 - ands r1, r2 - orrs r0, r1 - movs r1, 0x1C - bl __umodsi3 - lsls r0, 16 - lsrs r0, 16 - b _08096FD0 -_08096FCE: - movs r0, 0 -_08096FD0: - pop {r1} - bx r1 - thumb_func_end GetUnownLetterByPersonality - - thumb_func_start sub_8096FD4 -sub_8096FD4: @ 8096FD4 - push {r4,lr} - sub sp, 0x4 - lsls r0, 16 - lsrs r4, r0, 16 - adds r0, r4, 0 - mov r1, sp - bl MailSpeciesToSpecies - lsls r0, 16 - lsrs r0, 16 - cmp r0, 0xC9 - bne _0809700A - mov r0, sp - ldrh r0, [r0] - cmp r0, 0 - bne _08096FFA - mov r1, sp - adds r0, 0xC9 - b _08097002 -_08096FFA: - mov r1, sp - movs r2, 0xCE - lsls r2, 1 - adds r0, r2 -_08097002: - strh r0, [r1] - mov r0, sp - ldrh r0, [r0] - b _08097020 -_0809700A: - movs r0, 0xCE - lsls r0, 1 - cmp r4, r0 - bls _08097014 - movs r4, 0 -_08097014: - adds r0, r4, 0 - movs r1, 0 - bl mon_icon_convert_unown_species_id - lsls r0, 16 - lsrs r0, 16 -_08097020: - add sp, 0x4 - pop {r4} - pop {r1} - bx r1 - thumb_func_end sub_8096FD4 - - thumb_func_start sub_8097028 -sub_8097028: @ 8097028 - push {lr} - adds r3, r1, 0 - lsls r0, 16 - lsrs r0, 16 - ldr r2, _08097050 @ =gUnknown_83D37A0 - lsls r1, r0, 2 - adds r1, r2 - ldr r2, [r1] - movs r1, 0xCD - lsls r1, 1 - cmp r0, r1 - bne _0809704A - cmp r3, 0x1 - bne _0809704A - movs r0, 0x80 - lsls r0, 3 - adds r2, r0 -_0809704A: - adds r0, r2, 0 - pop {r1} - bx r1 - .align 2, 0 -_08097050: .4byte gUnknown_83D37A0 - thumb_func_end sub_8097028 - - thumb_func_start GetMonIconPtr -GetMonIconPtr: @ 8097054 - push {r4,lr} - adds r4, r2, 0 - lsls r0, 16 - lsrs r0, 16 - bl mon_icon_convert_unown_species_id - lsls r0, 16 - lsrs r0, 16 - adds r1, r4, 0 - bl sub_8097028 - pop {r4} - pop {r1} - bx r1 - thumb_func_end GetMonIconPtr - - thumb_func_start sub_8097070 -sub_8097070: @ 8097070 - push {lr} - bl sub_80973D8 - pop {r0} - bx r0 - thumb_func_end sub_8097070 - - thumb_func_start LoadMonIconPalettes -LoadMonIconPalettes: @ 809707C - push {r4,r5,lr} - movs r4, 0 - ldr r5, _0809709C @ =gUnknown_83D4038 -_08097082: - lsls r0, r4, 3 - adds r0, r5 - bl LoadSpritePalette - adds r0, r4, 0x1 - lsls r0, 24 - lsrs r4, r0, 24 - cmp r4, 0x5 - bls _08097082 - pop {r4,r5} - pop {r0} - bx r0 - .align 2, 0 -_0809709C: .4byte gUnknown_83D4038 - thumb_func_end LoadMonIconPalettes - - thumb_func_start SafeLoadMonIconPalette -SafeLoadMonIconPalette: @ 80970A0 - push {r4,lr} - lsls r0, 16 - lsrs r1, r0, 16 - movs r0, 0xCE - lsls r0, 1 - cmp r1, r0 - bls _080970B0 - movs r1, 0 -_080970B0: - ldr r0, _080970D8 @ =gUnknown_83D3E80 - adds r0, r1, r0 - ldrb r0, [r0] - ldr r1, _080970DC @ =gUnknown_83D4038 - lsls r0, 3 - adds r4, r0, r1 - ldrh r0, [r4, 0x4] - bl IndexOfSpritePaletteTag - lsls r0, 24 - lsrs r0, 24 - cmp r0, 0xFF - bne _080970D0 - adds r0, r4, 0 - bl LoadSpritePalette -_080970D0: - pop {r4} - pop {r0} - bx r0 - .align 2, 0 -_080970D8: .4byte gUnknown_83D3E80 -_080970DC: .4byte gUnknown_83D4038 - thumb_func_end SafeLoadMonIconPalette - - thumb_func_start sub_80970E0 -sub_80970E0: @ 80970E0 - push {r4,lr} - lsls r0, 16 - lsrs r0, 16 - ldr r1, _0809710C @ =gUnknown_83D3E80 - adds r0, r1 - ldrb r0, [r0] - ldr r1, _08097110 @ =gUnknown_83D4038 - lsls r0, 3 - adds r4, r0, r1 - ldrh r0, [r4, 0x4] - bl IndexOfSpritePaletteTag - lsls r0, 24 - lsrs r0, 24 - cmp r0, 0xFF - bne _08097106 - adds r0, r4, 0 - bl LoadSpritePalette -_08097106: - pop {r4} - pop {r0} - bx r0 - .align 2, 0 -_0809710C: .4byte gUnknown_83D3E80 -_08097110: .4byte gUnknown_83D4038 - thumb_func_end sub_80970E0 - - thumb_func_start FreeMonIconPalettes -FreeMonIconPalettes: @ 8097114 - push {r4,r5,lr} - movs r4, 0 - ldr r5, _08097134 @ =gUnknown_83D4038 -_0809711A: - lsls r0, r4, 3 - adds r0, r5 - ldrh r0, [r0, 0x4] - bl FreeSpritePaletteByTag - adds r0, r4, 0x1 - lsls r0, 24 - lsrs r4, r0, 24 - cmp r4, 0x5 - bls _0809711A - pop {r4,r5} - pop {r0} - bx r0 - .align 2, 0 -_08097134: .4byte gUnknown_83D4038 - thumb_func_end FreeMonIconPalettes - - thumb_func_start sub_8097138 -sub_8097138: @ 8097138 - push {lr} - lsls r0, 16 - lsrs r1, r0, 16 - movs r0, 0xCE - lsls r0, 1 - cmp r1, r0 - bls _08097148 - movs r1, 0 -_08097148: - ldr r0, _08097160 @ =gUnknown_83D3E80 - adds r0, r1, r0 - ldrb r0, [r0] - ldr r1, _08097164 @ =gUnknown_83D4038 - lsls r0, 3 - adds r0, r1 - ldrh r0, [r0, 0x4] - bl FreeSpritePaletteByTag - pop {r0} - bx r0 - .align 2, 0 -_08097160: .4byte gUnknown_83D3E80 -_08097164: .4byte gUnknown_83D4038 - thumb_func_end sub_8097138 - - thumb_func_start sub_8097168 -sub_8097168: @ 8097168 - push {lr} - lsls r0, 16 - lsrs r0, 16 - ldr r1, _08097184 @ =gUnknown_83D3E80 - adds r0, r1 - ldrb r0, [r0] - ldr r1, _08097188 @ =gUnknown_83D4038 - lsls r0, 3 - adds r0, r1 - ldrh r0, [r0, 0x4] - bl FreeSpritePaletteByTag - pop {r0} - bx r0 - .align 2, 0 -_08097184: .4byte gUnknown_83D3E80 -_08097188: .4byte gUnknown_83D4038 - thumb_func_end sub_8097168 - - thumb_func_start sub_809718C -sub_809718C: @ 809718C - push {lr} - bl UpdateMonIconFrame - pop {r0} - bx r0 - thumb_func_end sub_809718C - - thumb_func_start sub_8097198 -sub_8097198: @ 8097198 - push {r4-r6,lr} - lsls r0, 16 - lsrs r4, r0, 16 - cmp r4, 0xA0 - bhi _080971C0 - ldr r6, _080971C8 @ =gUnknown_83D4038 - movs r5, 0x5 -_080971A6: - ldr r0, [r6] - adds r1, r4, 0 - movs r2, 0x20 - bl LoadPalette - adds r0, r4, 0 - adds r0, 0x10 - lsls r0, 16 - lsrs r4, r0, 16 - adds r6, 0x8 - subs r5, 0x1 - cmp r5, 0 - bge _080971A6 -_080971C0: - pop {r4-r6} - pop {r0} - bx r0 - .align 2, 0 -_080971C8: .4byte gUnknown_83D4038 - thumb_func_end sub_8097198 - - thumb_func_start GetValidMonIconPalettePtr -GetValidMonIconPalettePtr: @ 80971CC - push {lr} - lsls r0, 16 - lsrs r2, r0, 16 - movs r0, 0xCE - lsls r0, 1 - cmp r2, r0 - bls _080971DC - movs r2, 0 -_080971DC: - ldr r1, _080971F0 @ =gUnknown_83D4038 - ldr r0, _080971F4 @ =gUnknown_83D3E80 - adds r0, r2, r0 - ldrb r0, [r0] - lsls r0, 3 - adds r0, r1 - ldr r0, [r0] - pop {r1} - bx r1 - .align 2, 0 -_080971F0: .4byte gUnknown_83D4038 -_080971F4: .4byte gUnknown_83D3E80 - thumb_func_end GetValidMonIconPalettePtr - - thumb_func_start sub_80971F8 -sub_80971F8: @ 80971F8 - push {lr} - lsls r0, 16 - lsrs r1, r0, 16 - movs r0, 0xCE - lsls r0, 1 - cmp r1, r0 - bls _08097208 - movs r1, 0 -_08097208: - ldr r0, _08097214 @ =gUnknown_83D3E80 - adds r0, r1, r0 - ldrb r0, [r0] - pop {r1} - bx r1 - .align 2, 0 -_08097214: .4byte gUnknown_83D3E80 - thumb_func_end sub_80971F8 - - thumb_func_start sub_8097218 -sub_8097218: @ 8097218 - lsls r0, 16 - lsrs r0, 16 - ldr r1, _08097224 @ =gUnknown_83D3E80 - adds r0, r1 - ldrb r0, [r0] - bx lr - .align 2, 0 -_08097224: .4byte gUnknown_83D3E80 - thumb_func_end sub_8097218 - - thumb_func_start UpdateMonIconFrame -UpdateMonIconFrame: @ 8097228 - push {r4-r7,lr} - mov r7, r9 - mov r6, r8 - push {r6,r7} - adds r4, r0, 0 - movs r7, 0 - adds r6, r4, 0 - adds r6, 0x2C - ldrb r2, [r6] - movs r0, 0x3F - mov r9, r0 - ands r0, r2 - cmp r0, 0 - bne _080972DC - movs r1, 0x2A - adds r1, r4 - mov r8, r1 - ldrb r1, [r1] - ldr r0, [r4, 0x8] - lsls r1, 2 - adds r1, r0 - adds r5, r4, 0 - adds r5, 0x2B - ldrb r0, [r5] - ldr r1, [r1] - lsls r0, 2 - adds r0, r1 - movs r1, 0 - ldrsh r3, [r0, r1] - movs r0, 0x2 - negs r0, r0 - cmp r3, r0 - beq _08097272 - adds r0, 0x1 - cmp r3, r0 - bne _08097276 - b _080972F0 -_08097272: - strb r7, [r5] - b _080972F0 -_08097276: - ldr r2, _080972D4 @ =gUnknown_83D40E8 - ldrb r1, [r4, 0x3] - lsrs r1, 6 - lsls r1, 1 - ldrb r0, [r4, 0x1] - lsrs r0, 6 - lsls r0, 3 - adds r1, r0 - adds r1, r2 - ldrh r2, [r1] - adds r1, r2, 0 - muls r1, r3 - ldr r0, [r4, 0xC] - adds r0, r1 - ldrh r1, [r4, 0x4] - lsls r1, 22 - lsrs r1, 17 - ldr r3, _080972D8 @ =0x06010000 - adds r1, r3 - bl RequestSpriteCopy - mov r0, r8 - ldrb r1, [r0] - ldr r0, [r4, 0x8] - lsls r1, 2 - adds r1, r0 - ldrb r0, [r5] - ldr r1, [r1] - lsls r0, 2 - adds r0, r1 - ldr r0, [r0] - lsls r0, 10 - lsrs r0, 26 - mov r1, r9 - ands r1, r0 - ldrb r2, [r6] - movs r0, 0x40 - negs r0, r0 - ands r0, r2 - orrs r0, r1 - strb r0, [r6] - ldrb r0, [r5] - adds r0, 0x1 - strb r0, [r5] - ldrb r7, [r5] - b _080972F0 - .align 2, 0 -_080972D4: .4byte gUnknown_83D40E8 -_080972D8: .4byte 0x06010000 -_080972DC: - lsls r0, r2, 26 - lsrs r0, 26 - subs r0, 0x1 - movs r1, 0x3F - ands r0, r1 - movs r1, 0x40 - negs r1, r1 - ands r1, r2 - orrs r1, r0 - strb r1, [r6] -_080972F0: - adds r0, r7, 0 - pop {r3,r4} - mov r8, r3 - mov r9, r4 - pop {r4-r7} - pop {r1} - bx r1 - thumb_func_end UpdateMonIconFrame - - thumb_func_start CreateMonIconSprite -CreateMonIconSprite: @ 8097300 - push {r4-r6,lr} - mov r6, r9 - mov r5, r8 - push {r5,r6} - sub sp, 0x38 - mov r9, r0 - adds r4, r1, 0 - adds r5, r2, 0 - mov r8, r3 - lsls r4, 16 - lsrs r4, 16 - lsls r5, 16 - lsrs r5, 16 - mov r0, r8 - lsls r0, 24 - lsrs r0, 24 - mov r8, r0 - movs r0, 0 - str r0, [sp, 0x30] - ldr r2, _080973C8 @ =gUnknown_83D40E8 - mov r0, r9 - ldr r6, [r0] - ldrb r1, [r6, 0x3] - lsrs r1, 6 - lsls r1, 1 - ldrb r0, [r6, 0x1] - lsrs r0, 6 - lsls r0, 3 - adds r1, r0 - adds r1, r2 - ldrh r2, [r1] - ldr r1, _080973CC @ =0xffff0000 - add r3, sp, 0x30 - ldr r0, [r3, 0x4] - ands r0, r1 - orrs r0, r2 - str r0, [r3, 0x4] - add r1, sp, 0x18 - ldr r0, _080973D0 @ =0x0000ffff - strh r0, [r1] - mov r0, r9 - ldrh r2, [r0, 0x14] - mov r0, sp - adds r0, 0x1A - strh r2, [r0] - str r6, [sp, 0x1C] - mov r2, r9 - ldr r0, [r2, 0x8] - str r0, [sp, 0x20] - str r3, [sp, 0x24] - ldr r0, [r2, 0xC] - str r0, [sp, 0x28] - ldr r0, [r2, 0x10] - str r0, [sp, 0x2C] - mov r0, sp - movs r2, 0x18 - bl memcpy - lsls r4, 16 - asrs r4, 16 - lsls r5, 16 - asrs r5, 16 - mov r0, sp - adds r1, r4, 0 - adds r2, r5, 0 - mov r3, r8 - bl CreateSprite - lsls r0, 24 - lsrs r0, 24 - ldr r6, _080973D4 @ =gSprites - lsls r3, r0, 4 - adds r3, r0 - lsls r3, 2 - adds r4, r3, r6 - adds r5, r4, 0 - adds r5, 0x2C - ldrb r1, [r5] - movs r2, 0x40 - orrs r1, r2 - strb r1, [r5] - adds r4, 0x3F - ldrb r2, [r4] - movs r1, 0x5 - negs r1, r1 - ands r1, r2 - strb r1, [r4] - adds r6, 0xC - adds r3, r6 - mov r2, r9 - ldr r1, [r2, 0x4] - str r1, [r3] - add sp, 0x38 - pop {r3,r4} - mov r8, r3 - mov r9, r4 - pop {r4-r6} - pop {r1} - bx r1 - .align 2, 0 -_080973C8: .4byte gUnknown_83D40E8 -_080973CC: .4byte 0xffff0000 -_080973D0: .4byte 0x0000ffff -_080973D4: .4byte gSprites - thumb_func_end CreateMonIconSprite - - thumb_func_start sub_80973D8 -sub_80973D8: @ 80973D8 - push {lr} - sub sp, 0x8 - movs r1, 0 - str r1, [sp] - ldr r3, _0809740C @ =gUnknown_83D40E8 - ldrb r2, [r0, 0x3] - lsrs r2, 6 - lsls r2, 1 - ldrb r1, [r0, 0x1] - lsrs r1, 6 - lsls r1, 3 - adds r2, r1 - adds r2, r3 - ldrh r3, [r2] - ldr r2, _08097410 @ =0xffff0000 - ldr r1, [sp, 0x4] - ands r1, r2 - orrs r1, r3 - str r1, [sp, 0x4] - mov r1, sp - str r1, [r0, 0xC] - bl DestroySprite - add sp, 0x8 - pop {r0} - bx r0 - .align 2, 0 -_0809740C: .4byte gUnknown_83D40E8 -_08097410: .4byte 0xffff0000 - thumb_func_end sub_80973D8 - - thumb_func_start sub_8097414 -sub_8097414: @ 8097414 - mov r12, r0 - adds r0, 0x2A - movs r3, 0 - strb r1, [r0] - mov r2, r12 - adds r2, 0x2C - ldrb r1, [r2] - movs r0, 0x40 - negs r0, r0 - ands r0, r1 - strb r0, [r2] - mov r0, r12 - adds r0, 0x2B - strb r3, [r0] - bx lr - thumb_func_end sub_8097414 - - .align 2, 0 @ Don't pad with nop. diff --git a/asm/pokemon_size_record.s b/asm/pokemon_size_record.s index cb87652fa..e14bdc51d 100644 --- a/asm/pokemon_size_record.s +++ b/asm/pokemon_size_record.s @@ -323,8 +323,8 @@ sub_80A0904: @ 80A0904 _080A0914: .4byte 0x0000403d thumb_func_end sub_80A0904 - thumb_func_start sub_80A0918 -sub_80A0918: @ 80A0918 + thumb_func_start GetHeracrossSizeRecordInfo +GetHeracrossSizeRecordInfo: @ 80A0918 push {lr} ldr r0, _080A092C @ =0x0000403d bl GetVarPointer @@ -335,10 +335,10 @@ sub_80A0918: @ 80A0918 bx r0 .align 2, 0 _080A092C: .4byte 0x0000403d - thumb_func_end sub_80A0918 + thumb_func_end GetHeracrossSizeRecordInfo - thumb_func_start sub_80A0930 -sub_80A0930: @ 80A0930 + thumb_func_start CompareHeracrossSize +CompareHeracrossSize: @ 80A0930 push {r4,lr} ldr r0, _080A0950 @ =0x0000403d bl GetVarPointer @@ -355,7 +355,7 @@ sub_80A0930: @ 80A0930 .align 2, 0 _080A0950: .4byte 0x0000403d _080A0954: .4byte gSpecialVar_Result - thumb_func_end sub_80A0930 + thumb_func_end CompareHeracrossSize thumb_func_start sub_80A0958 sub_80A0958: @ 80A0958 @@ -369,8 +369,8 @@ sub_80A0958: @ 80A0958 _080A0968: .4byte 0x00004040 thumb_func_end sub_80A0958 - thumb_func_start sub_80A096C -sub_80A096C: @ 80A096C + thumb_func_start GetMagikarpSizeRecordInfo +GetMagikarpSizeRecordInfo: @ 80A096C push {lr} ldr r0, _080A0980 @ =0x00004040 bl GetVarPointer @@ -381,10 +381,10 @@ sub_80A096C: @ 80A096C bx r0 .align 2, 0 _080A0980: .4byte 0x00004040 - thumb_func_end sub_80A096C + thumb_func_end GetMagikarpSizeRecordInfo - thumb_func_start sub_80A0984 -sub_80A0984: @ 80A0984 + thumb_func_start CompareMagikarpSize +CompareMagikarpSize: @ 80A0984 push {r4,lr} ldr r0, _080A09A4 @ =0x00004040 bl GetVarPointer @@ -401,7 +401,7 @@ sub_80A0984: @ 80A0984 .align 2, 0 _080A09A4: .4byte 0x00004040 _080A09A8: .4byte gSpecialVar_Result - thumb_func_end sub_80A0984 + thumb_func_end CompareMagikarpSize thumb_func_start GiveGiftRibbonToParty GiveGiftRibbonToParty: @ 80A09AC diff --git a/asm/pokemon_storage_system.s b/asm/pokemon_storage_system.s index a68ced640..ec0e9e53c 100644 --- a/asm/pokemon_storage_system.s +++ b/asm/pokemon_storage_system.s @@ -1751,8 +1751,8 @@ _0808C69C: _0808C6A4: .4byte gPaletteFade thumb_func_end c3_0808C39C - thumb_func_start sub_808C6A8 -sub_808C6A8: @ 808C6A8 + thumb_func_start ShowPokemonStorageSystem +ShowPokemonStorageSystem: @ 808C6A8 push {lr} ldr r0, _0808C6D0 @ =c3_0808C39C movs r1, 0x50 @@ -1773,7 +1773,7 @@ sub_808C6A8: @ 808C6A8 .align 2, 0 _0808C6D0: .4byte c3_0808C39C _0808C6D4: .4byte gTasks - thumb_func_end sub_808C6A8 + thumb_func_end ShowPokemonStorageSystem thumb_func_start mapldr_0808C6D8 mapldr_0808C6D8: @ 808C6D8 @@ -11179,7 +11179,7 @@ _08091248: lsrs r4, 16 adds r0, r3, 0 movs r1, 0x1 - bl sub_8097028 + bl GetMonIconTiles lsls r1, r4, 5 ldr r2, _08091288 @ =0x06010000 adds r1, r2 @@ -11271,11 +11271,11 @@ sub_80912E0: @ 80912E0 ldm r0!, {r3,r5,r7} stm r2!, {r3,r5,r7} adds r0, r6, 0 - bl mon_icon_convert_unown_species_id + bl GetIconSpecies mov r10, r0 mov r6, r10 mov r2, sp - ldr r1, _08091394 @ =gUnknown_83D3E80 + ldr r1, _08091394 @ =gMonIconPaletteIndices adds r1, r6, r1 ldr r3, _08091398 @ =0x0000dac0 adds r0, r3, 0 @@ -11329,7 +11329,7 @@ sub_80912E0: @ 80912E0 b _080913B4 .align 2, 0 _08091390: .4byte gUnknown_83CEBF0 -_08091394: .4byte gUnknown_83D3E80 +_08091394: .4byte gMonIconPaletteIndices _08091398: .4byte 0x0000dac0 _0809139C: .4byte 0x0000ffff _080913A0: .4byte gSprites @@ -19235,7 +19235,7 @@ _0809515A: movs r0, 0 bl HideBg movs r0, 0x80 - bl sub_8097198 + bl LoadMonIconPalettesAt b _080951F8 _08095168: adds r0, r1, 0x2 @@ -19954,7 +19954,7 @@ sub_80956A4: @ 80956A4 bl GetMonIconPtr adds r4, r0, 0 adds r0, r5, 0 - bl sub_80971F8 + bl GetValidMonIconPalIndex adds r0, 0x8 lsls r0, 24 lsrs r0, 24 diff --git a/asm/pokemon_summary_screen.s b/asm/pokemon_summary_screen.s index ec6e6723d..4c090a2d9 100644 --- a/asm/pokemon_summary_screen.s +++ b/asm/pokemon_summary_screen.s @@ -4033,13 +4033,13 @@ _081366B8: adds r0, r1 movs r1, 0xD muls r1, r4 - ldr r2, _081367A0 @ =gUnknown_824FC40 + ldr r2, _081367A0 @ =gAbilityNames adds r1, r2 bl StringCopy ldr r0, [r6] ldr r2, _081367A4 @ =0x000031cc adds r0, r2 - ldr r1, _081367A8 @ =gUnknown_824FB08 + ldr r1, _081367A8 @ =gAbilityDescriptionPointers lsls r4, 2 adds r4, r1 ldr r1, [r4] @@ -4088,9 +4088,9 @@ _08136790: .4byte gExperienceTables _08136794: .4byte gBaseStats _08136798: .4byte 0x000031b0 _0813679C: .4byte 0x000031bc -_081367A0: .4byte gUnknown_824FC40 +_081367A0: .4byte gAbilityNames _081367A4: .4byte 0x000031cc -_081367A8: .4byte gUnknown_824FB08 +_081367A8: .4byte gAbilityDescriptionPointers _081367AC: .4byte 0x0000326c thumb_func_end sub_8136350 @@ -6470,7 +6470,7 @@ _08137B1C: str r1, [sp, 0x4] str r6, [sp, 0x8] str r5, [sp, 0xC] - ldr r3, _08137BC8 @ =gUnknown_84886E8 + ldr r3, _08137BC8 @ =gMoveDescriptionPointers mov r4, r8 ldrb r1, [r4] lsls r1, 1 @@ -6502,7 +6502,7 @@ _08137BB8: .4byte 0x00003004 _08137BBC: .4byte gUnknown_8463FA4 _08137BC0: .4byte 0x0000316c _08137BC4: .4byte 0x00003188 -_08137BC8: .4byte gUnknown_84886E8 +_08137BC8: .4byte gMoveDescriptionPointers _08137BCC: .4byte 0x00003258 thumb_func_end sub_8137AF8 @@ -7652,7 +7652,7 @@ _081384C4: .4byte gEnemyParty _081384C8: .4byte gLinkPlayers _081384CC: .4byte 0x0000304c _081384D0: - bl sub_80CC1E4 + bl GetPlayerTrainerId adds r4, r0, 0 ldr r0, _0813851C @ =0x0000ffff ands r4, r0 @@ -10916,7 +10916,7 @@ sub_8139F20: @ 8139F20 bl GetMonData lsls r0, 16 lsrs r0, 16 - bl sub_8097138 + bl SafeFreeMonIconPalette ldr r0, [r4] ldr r1, _08139F5C @ =0x00003014 adds r0, r1 @@ -10926,7 +10926,7 @@ sub_8139F20: @ 8139F20 lsls r0, 2 ldr r1, _08139F60 @ =gSprites adds r0, r1 - bl sub_8097070 + bl DestroyMonIcon pop {r4} pop {r0} bx r0 diff --git a/asm/post_battle_event_funcs.s b/asm/post_battle_event_funcs.s index 20455093a..be7554fd0 100644 --- a/asm/post_battle_event_funcs.s +++ b/asm/post_battle_event_funcs.s @@ -106,16 +106,16 @@ _080CA3BC: .4byte 0x0000083b _080CA3C0: .4byte CB2_DoHallOfFameScreen thumb_func_end Special_HallOfFame - thumb_func_start sub_80CA3C4 -sub_80CA3C4: @ 80CA3C4 + thumb_func_start sp0C8_whiteout_maybe +sp0C8_whiteout_maybe: @ 80CA3C4 push {lr} - ldr r0, _080CA3D4 @ =c2_whiteout + ldr r0, _080CA3D4 @ =CB2_WhiteOut bl SetMainCallback2 movs r0, 0 pop {r1} bx r1 .align 2, 0 -_080CA3D4: .4byte c2_whiteout - thumb_func_end sub_80CA3C4 +_080CA3D4: .4byte CB2_WhiteOut + thumb_func_end sp0C8_whiteout_maybe .align 2, 0 @ Don't pad with nop. diff --git a/asm/script_menu.s b/asm/script_menu.s deleted file mode 100644 index 56781a953..000000000 --- a/asm/script_menu.s +++ /dev/null @@ -1,2058 +0,0 @@ - .include "asm/macros.inc" - .include "constants/constants.inc" - - .syntax unified - - .text - - thumb_func_start sub_809C954 -sub_809C954: @ 809C954 - push {lr} - adds r1, r0, 0 - movs r0, 0x1 - movs r2, 0 - bl GetStringWidth - adds r1, r0, 0 - adds r0, r1, 0x7 - cmp r0, 0 - bge _0809C96A - adds r0, 0x7 -_0809C96A: - lsls r0, 13 - lsrs r0, 16 - pop {r1} - bx r1 - thumb_func_end sub_809C954 - - thumb_func_start sub_809C974 -sub_809C974: @ 809C974 - push {r4-r7,lr} - adds r7, r0, 0 - lsls r4, r1, 24 - lsrs r4, 24 - ldr r0, [r7] - bl sub_809C954 - lsls r0, 24 - lsrs r6, r0, 24 - movs r5, 0x1 - cmp r5, r4 - bcs _0809C9AA -_0809C98C: - lsls r0, r5, 3 - adds r0, r7 - ldr r0, [r0] - bl sub_809C954 - lsls r0, 24 - lsrs r0, 24 - cmp r6, r0 - bcs _0809C9A0 - adds r6, r0, 0 -_0809C9A0: - adds r0, r5, 0x1 - lsls r0, 16 - lsrs r5, r0, 16 - cmp r5, r4 - bcc _0809C98C -_0809C9AA: - adds r0, r6, 0 - pop {r4-r7} - pop {r1} - bx r1 - thumb_func_end sub_809C974 - - thumb_func_start ScriptMenu_Multichoice -ScriptMenu_Multichoice: @ 809C9B4 - push {r4-r7,lr} - sub sp, 0x4 - lsls r0, 24 - lsrs r7, r0, 24 - lsls r1, 24 - lsrs r6, r1, 24 - lsls r2, 24 - lsrs r5, r2, 24 - lsls r3, 24 - lsrs r4, r3, 24 - ldr r0, _0809C9F0 @ =sub_809CC98 - bl FuncIsActiveTask - lsls r0, 24 - lsrs r0, 24 - cmp r0, 0x1 - beq _0809C9F8 - ldr r0, _0809C9F4 @ =gSpecialVar_Result - movs r1, 0xFF - strh r1, [r0] - movs r0, 0 - str r0, [sp] - adds r0, r7, 0 - adds r1, r6, 0 - adds r2, r5, 0 - adds r3, r4, 0 - bl sub_809CA64 - movs r0, 0x1 - b _0809C9FA - .align 2, 0 -_0809C9F0: .4byte sub_809CC98 -_0809C9F4: .4byte gSpecialVar_Result -_0809C9F8: - movs r0, 0 -_0809C9FA: - add sp, 0x4 - pop {r4-r7} - pop {r1} - bx r1 - thumb_func_end ScriptMenu_Multichoice - - thumb_func_start ScriptMenu_MultichoiceWithDefault -ScriptMenu_MultichoiceWithDefault: @ 809CA04 - push {r4-r7,lr} - mov r7, r8 - push {r7} - sub sp, 0x4 - ldr r4, [sp, 0x1C] - lsls r0, 24 - lsrs r0, 24 - mov r8, r0 - lsls r1, 24 - lsrs r7, r1, 24 - lsls r2, 24 - lsrs r6, r2, 24 - lsls r3, 24 - lsrs r5, r3, 24 - lsls r4, 24 - lsrs r4, 24 - ldr r0, _0809CA4C @ =sub_809CC98 - bl FuncIsActiveTask - lsls r0, 24 - lsrs r0, 24 - cmp r0, 0x1 - beq _0809CA54 - ldr r1, _0809CA50 @ =gSpecialVar_Result - movs r0, 0xFF - strh r0, [r1] - str r4, [sp] - mov r0, r8 - adds r1, r7, 0 - adds r2, r6, 0 - adds r3, r5, 0 - bl sub_809CA64 - movs r0, 0x1 - b _0809CA56 - .align 2, 0 -_0809CA4C: .4byte sub_809CC98 -_0809CA50: .4byte gSpecialVar_Result -_0809CA54: - movs r0, 0 -_0809CA56: - add sp, 0x4 - pop {r3} - mov r8, r3 - pop {r4-r7} - pop {r1} - bx r1 - thumb_func_end ScriptMenu_MultichoiceWithDefault - - thumb_func_start sub_809CA64 -sub_809CA64: @ 809CA64 - push {r4-r7,lr} - mov r7, r10 - mov r6, r9 - mov r5, r8 - push {r5-r7} - sub sp, 0x20 - ldr r4, [sp, 0x40] - lsls r0, 24 - lsrs r0, 24 - mov r9, r0 - lsls r1, 24 - lsrs r1, 24 - str r1, [sp, 0x14] - lsls r2, 24 - lsrs r2, 24 - mov r10, r2 - lsls r3, 24 - lsrs r3, 24 - str r3, [sp, 0x18] - lsls r4, 24 - lsrs r4, 24 - str r4, [sp, 0x1C] - movs r0, 0x2 - ands r0, r3 - cmp r0, 0 - bne _0809CAA6 - ldr r0, _0809CB54 @ =sub_809D6D4 - bl sub_81119D4 - lsls r0, 24 - lsrs r0, 24 - cmp r0, 0x1 - beq _0809CBA2 -_0809CAA6: - movs r0, 0x1 - ldr r1, [sp, 0x18] - ands r1, r0 - str r1, [sp, 0x18] - ldr r1, _0809CB58 @ =gUnknown_83E04B0 - mov r2, r10 - lsls r0, r2, 3 - adds r0, r1 - ldrb r7, [r0, 0x4] - ldr r0, [r0] - mov r8, r0 - movs r6, 0 - cmp r6, r7 - bge _0809CADE - mov r5, r8 - adds r4, r7, 0 -_0809CAC6: - ldr r1, [r5] - movs r0, 0x2 - movs r2, 0 - bl GetStringWidth - cmp r0, r6 - ble _0809CAD6 - adds r6, r0, 0 -_0809CAD6: - adds r5, 0x8 - subs r4, 0x1 - cmp r4, 0 - bne _0809CAC6 -_0809CADE: - adds r0, r6, 0 - adds r0, 0x9 - cmp r0, 0 - bge _0809CAE8 - adds r0, 0x7 -_0809CAE8: - asrs r0, 3 - adds r0, 0x1 - lsls r0, 24 - lsrs r5, r0, 24 - mov r1, r9 - adds r0, r1, r5 - cmp r0, 0x1C - ble _0809CB02 - movs r0, 0x1C - subs r0, r5 - lsls r0, 24 - lsrs r0, 24 - mov r9, r0 -_0809CB02: - adds r0, r7, 0 - bl sub_809CBB4 - adds r3, r0, 0 - lsls r3, 24 - lsrs r3, 24 - mov r0, r9 - ldr r1, [sp, 0x14] - adds r2, r5, 0 - bl CreateWindowFromRect - lsls r0, 24 - lsrs r5, r0, 24 - adds r0, r5, 0 - movs r1, 0 - bl SetStdWindowBorderStyle - mov r2, r10 - cmp r2, 0x1E - beq _0809CB32 - cmp r2, 0xD - beq _0809CB32 - cmp r2, 0x29 - bne _0809CB5C -_0809CB32: - movs r0, 0xE - str r0, [sp] - str r7, [sp, 0x4] - mov r0, r8 - str r0, [sp, 0x8] - movs r0, 0 - str r0, [sp, 0xC] - movs r0, 0x2 - str r0, [sp, 0x10] - adds r0, r5, 0 - movs r1, 0x2 - movs r2, 0x8 - movs r3, 0x2 - bl MultichoiceList_PrintItems - b _0809CB7A - .align 2, 0 -_0809CB54: .4byte sub_809D6D4 -_0809CB58: .4byte gUnknown_83E04B0 -_0809CB5C: - movs r0, 0xE - str r0, [sp] - str r7, [sp, 0x4] - mov r1, r8 - str r1, [sp, 0x8] - movs r0, 0 - str r0, [sp, 0xC] - movs r0, 0x2 - str r0, [sp, 0x10] - adds r0, r5, 0 - movs r1, 0x2 - movs r2, 0x8 - movs r3, 0x2 - bl MultichoiceList_PrintItems -_0809CB7A: - movs r0, 0xE - str r0, [sp] - str r7, [sp, 0x4] - ldr r2, [sp, 0x1C] - str r2, [sp, 0x8] - adds r0, r5, 0 - movs r1, 0x2 - movs r2, 0 - movs r3, 0x2 - bl Menu_InitCursor - ldr r0, [sp, 0x18] - adds r1, r7, 0 - adds r2, r5, 0 - mov r3, r10 - bl sub_809CC18 - movs r0, 0 - bl ScheduleBgCopyTilemapToVram -_0809CBA2: - add sp, 0x20 - pop {r3-r5} - mov r8, r3 - mov r9, r4 - mov r10, r5 - pop {r4-r7} - pop {r0} - bx r0 - thumb_func_end sub_809CA64 - - thumb_func_start sub_809CBB4 -sub_809CBB4: @ 809CBB4 - push {lr} - lsls r0, 24 - lsrs r0, 24 - cmp r0, 0x8 - bhi _0809CC10 - lsls r0, 2 - ldr r1, _0809CBC8 @ =_0809CBCC - adds r0, r1 - ldr r0, [r0] - mov pc, r0 - .align 2, 0 -_0809CBC8: .4byte _0809CBCC - .align 2, 0 -_0809CBCC: - .4byte _0809CC10 - .4byte _0809CBF0 - .4byte _0809CBF4 - .4byte _0809CBF8 - .4byte _0809CBFC - .4byte _0809CC00 - .4byte _0809CC04 - .4byte _0809CC08 - .4byte _0809CC0C -_0809CBF0: - movs r0, 0x2 - b _0809CC12 -_0809CBF4: - movs r0, 0x4 - b _0809CC12 -_0809CBF8: - movs r0, 0x6 - b _0809CC12 -_0809CBFC: - movs r0, 0x7 - b _0809CC12 -_0809CC00: - movs r0, 0x9 - b _0809CC12 -_0809CC04: - movs r0, 0xB - b _0809CC12 -_0809CC08: - movs r0, 0xD - b _0809CC12 -_0809CC0C: - movs r0, 0xE - b _0809CC12 -_0809CC10: - movs r0, 0x1 -_0809CC12: - pop {r1} - bx r1 - thumb_func_end sub_809CBB4 - - thumb_func_start sub_809CC18 -sub_809CC18: @ 809CC18 - push {r4-r7,lr} - lsls r0, 24 - lsrs r6, r0, 24 - lsls r1, 24 - lsrs r5, r1, 24 - lsls r2, 24 - lsrs r7, r2, 24 - lsls r3, 24 - lsrs r4, r3, 24 - cmp r4, 0x27 - beq _0809CC36 - cmp r4, 0x2F - beq _0809CC36 - cmp r4, 0x32 - bne _0809CC40 -_0809CC36: - ldr r1, _0809CC3C @ =gUnknown_2039988 - movs r0, 0xC - b _0809CC44 - .align 2, 0 -_0809CC3C: .4byte gUnknown_2039988 -_0809CC40: - ldr r1, _0809CC68 @ =gUnknown_2039988 - movs r0, 0 -_0809CC44: - strb r0, [r1] - ldr r0, _0809CC6C @ =sub_809CC98 - movs r1, 0x50 - bl CreateTask - lsls r0, 24 - lsrs r2, r0, 24 - ldr r1, _0809CC70 @ =gTasks - lsls r0, r2, 2 - adds r0, r2 - lsls r0, 3 - adds r1, r0, r1 - strh r6, [r1, 0x10] - cmp r5, 0x3 - bls _0809CC74 - movs r0, 0x1 - b _0809CC76 - .align 2, 0 -_0809CC68: .4byte gUnknown_2039988 -_0809CC6C: .4byte sub_809CC98 -_0809CC70: .4byte gTasks -_0809CC74: - movs r0, 0 -_0809CC76: - strh r0, [r1, 0x12] - ldr r1, _0809CC94 @ =gTasks - lsls r0, r2, 2 - adds r0, r2 - lsls r0, 3 - adds r0, r1 - strh r7, [r0, 0x14] - strh r4, [r0, 0x16] - adds r0, r4, 0 - bl sub_809CD48 - pop {r4-r7} - pop {r0} - bx r0 - .align 2, 0 -_0809CC94: .4byte gTasks - thumb_func_end sub_809CC18 - - thumb_func_start sub_809CC98 -sub_809CC98: @ 809CC98 - push {r4-r6,lr} - lsls r0, 24 - lsrs r6, r0, 24 - lsls r0, r6, 2 - adds r0, r6 - lsls r0, 3 - ldr r1, _0809CCC4 @ =gTasks+0x8 - adds r5, r0, r1 - ldr r0, _0809CCC8 @ =gPaletteFade - ldrb r1, [r0, 0x7] - movs r0, 0x80 - ands r0, r1 - cmp r0, 0 - bne _0809CD3C - ldr r1, _0809CCCC @ =gUnknown_2039988 - ldrb r0, [r1] - cmp r0, 0 - beq _0809CCD0 - subs r0, 0x1 - strb r0, [r1] - b _0809CD3C - .align 2, 0 -_0809CCC4: .4byte gTasks+0x8 -_0809CCC8: .4byte gPaletteFade -_0809CCCC: .4byte gUnknown_2039988 -_0809CCD0: - movs r1, 0xA - ldrsh r0, [r5, r1] - cmp r0, 0 - bne _0809CCDE - bl Menu_ProcessInputNoWrapAround - b _0809CCE2 -_0809CCDE: - bl Menu_ProcessInput -_0809CCE2: - lsls r0, 24 - lsrs r4, r0, 24 - ldr r0, _0809CD20 @ =gMain - ldrh r1, [r0, 0x2E] - movs r0, 0xC0 - ands r0, r1 - cmp r0, 0 - beq _0809CCF8 - ldrb r0, [r5, 0xE] - bl sub_809CD48 -_0809CCF8: - lsls r0, r4, 24 - asrs r1, r0, 24 - movs r0, 0x2 - negs r0, r0 - cmp r1, r0 - beq _0809CD3C - adds r0, 0x1 - cmp r1, r0 - bne _0809CD28 - movs r1, 0x8 - ldrsh r0, [r5, r1] - cmp r0, 0 - bne _0809CD3C - movs r0, 0x5 - bl PlaySE - ldr r1, _0809CD24 @ =gSpecialVar_Result - movs r0, 0x7F - strh r0, [r1] - b _0809CD2C - .align 2, 0 -_0809CD20: .4byte gMain -_0809CD24: .4byte gSpecialVar_Result -_0809CD28: - ldr r0, _0809CD44 @ =gSpecialVar_Result - strh r1, [r0] -_0809CD2C: - ldrb r0, [r5, 0xC] - bl sub_809D6B0 - adds r0, r6, 0 - bl DestroyTask - bl EnableBothScriptContexts -_0809CD3C: - pop {r4-r6} - pop {r0} - bx r0 - .align 2, 0 -_0809CD44: .4byte gSpecialVar_Result - thumb_func_end sub_809CC98 - - thumb_func_start sub_809CD48 -sub_809CD48: @ 809CD48 - push {r4,lr} - sub sp, 0x10 - lsls r0, 24 - lsrs r0, 24 - adds r1, r0, 0 - cmp r0, 0x2F - beq _0809CD78 - cmp r0, 0x2F - bgt _0809CD60 - cmp r0, 0x27 - beq _0809CD66 - b _0809CDE0 -_0809CD60: - cmp r1, 0x32 - beq _0809CDB0 - b _0809CDE0 -_0809CD66: - movs r0, 0 - movs r1, 0x11 - bl FillWindowPixelBuffer - ldr r4, _0809CD74 @ =gUnknown_83E072C - b _0809CD82 - .align 2, 0 -_0809CD74: .4byte gUnknown_83E072C -_0809CD78: - movs r0, 0 - movs r1, 0x11 - bl FillWindowPixelBuffer - ldr r4, _0809CDAC @ =gUnknown_83E0738 -_0809CD82: - bl Menu_GetCursorPos - lsls r0, 24 - lsrs r0, 22 - adds r0, r4 - ldr r2, [r0] - movs r0, 0 - str r0, [sp] - movs r0, 0x2 - str r0, [sp, 0x4] - movs r0, 0x1 - str r0, [sp, 0x8] - movs r0, 0x3 - str r0, [sp, 0xC] - movs r0, 0 - movs r1, 0x2 - movs r3, 0 - bl AddTextPrinterParameterized2 - b _0809CDE0 - .align 2, 0 -_0809CDAC: .4byte gUnknown_83E0738 -_0809CDB0: - movs r0, 0 - movs r1, 0x11 - bl FillWindowPixelBuffer - ldr r4, _0809CDE8 @ =gUnknown_83E0748 - bl Menu_GetCursorPos - lsls r0, 24 - lsrs r0, 22 - adds r0, r4 - ldr r2, [r0] - movs r0, 0 - str r0, [sp] - movs r0, 0x2 - str r0, [sp, 0x4] - movs r0, 0x1 - str r0, [sp, 0x8] - movs r0, 0x3 - str r0, [sp, 0xC] - movs r0, 0 - movs r1, 0x2 - movs r3, 0 - bl AddTextPrinterParameterized2 -_0809CDE0: - add sp, 0x10 - pop {r4} - pop {r0} - bx r0 - .align 2, 0 -_0809CDE8: .4byte gUnknown_83E0748 - thumb_func_end sub_809CD48 - - thumb_func_start ScriptMenu_YesNo -ScriptMenu_YesNo: @ 809CDEC - push {r4,lr} - ldr r4, _0809CE04 @ =task_yes_no_maybe - adds r0, r4, 0 - bl FuncIsActiveTask - lsls r0, 24 - lsrs r0, 24 - cmp r0, 0x1 - bne _0809CE08 - movs r0, 0 - b _0809CE28 - .align 2, 0 -_0809CE04: .4byte task_yes_no_maybe -_0809CE08: - ldr r1, _0809CE30 @ =gSpecialVar_Result - movs r0, 0xFF - strh r0, [r1] - ldr r0, _0809CE34 @ =sub_809D6D4 - bl sub_81119D4 - lsls r0, 24 - cmp r0, 0 - bne _0809CE26 - bl DisplayYesNoMenuDefaultYes - adds r0, r4, 0 - movs r1, 0x50 - bl CreateTask -_0809CE26: - movs r0, 0x1 -_0809CE28: - pop {r4} - pop {r1} - bx r1 - .align 2, 0 -_0809CE30: .4byte gSpecialVar_Result -_0809CE34: .4byte sub_809D6D4 - thumb_func_end ScriptMenu_YesNo - - thumb_func_start sub_809CE38 -sub_809CE38: @ 809CE38 - push {lr} - ldr r0, _0809CE48 @ =gSpecialVar_Result - ldrh r0, [r0] - cmp r0, 0xFF - beq _0809CE4C - movs r0, 0x1 - b _0809CE4E - .align 2, 0 -_0809CE48: .4byte gSpecialVar_Result -_0809CE4C: - movs r0, 0 -_0809CE4E: - pop {r1} - bx r1 - thumb_func_end sub_809CE38 - - thumb_func_start task_yes_no_maybe -task_yes_no_maybe: @ 809CE54 - push {r4,lr} - lsls r0, 24 - lsrs r4, r0, 24 - ldr r1, _0809CE74 @ =gTasks - lsls r0, r4, 2 - adds r0, r4 - lsls r0, 3 - adds r1, r0, r1 - ldrh r2, [r1, 0xC] - movs r3, 0xC - ldrsh r0, [r1, r3] - cmp r0, 0x4 - bgt _0809CE78 - adds r0, r2, 0x1 - strh r0, [r1, 0xC] - b _0809CEBC - .align 2, 0 -_0809CE74: .4byte gTasks -_0809CE78: - bl Menu_ProcessInputNoWrapClearOnChoose - lsls r0, 24 - asrs r1, r0, 24 - movs r0, 0x1 - negs r0, r0 - cmp r1, r0 - beq _0809CE9C - cmp r1, r0 - bgt _0809CE94 - subs r0, 0x1 - cmp r1, r0 - beq _0809CEBC - b _0809CEB2 -_0809CE94: - cmp r1, 0 - beq _0809CEAC - cmp r1, 0x1 - bne _0809CEB2 -_0809CE9C: - movs r0, 0x5 - bl PlaySE - ldr r1, _0809CEA8 @ =gSpecialVar_Result - movs r0, 0 - b _0809CEB0 - .align 2, 0 -_0809CEA8: .4byte gSpecialVar_Result -_0809CEAC: - ldr r1, _0809CEC4 @ =gSpecialVar_Result - movs r0, 0x1 -_0809CEB0: - strh r0, [r1] -_0809CEB2: - adds r0, r4, 0 - bl DestroyTask - bl EnableBothScriptContexts -_0809CEBC: - pop {r4} - pop {r0} - bx r0 - .align 2, 0 -_0809CEC4: .4byte gSpecialVar_Result - thumb_func_end task_yes_no_maybe - - thumb_func_start ScriptMenu_MultichoiceGrid -ScriptMenu_MultichoiceGrid: @ 809CEC8 - push {r4-r7,lr} - mov r7, r10 - mov r6, r9 - mov r5, r8 - push {r5-r7} - sub sp, 0x18 - ldr r4, [sp, 0x38] - lsls r0, 24 - lsrs r0, 24 - str r0, [sp, 0x10] - lsls r1, 24 - lsrs r1, 24 - str r1, [sp, 0x14] - lsls r2, 24 - lsrs r5, r2, 24 - lsls r3, 24 - lsrs r3, 24 - mov r10, r3 - lsls r4, 24 - lsrs r7, r4, 24 - ldr r0, _0809CF04 @ =sub_809CFDC - mov r9, r0 - bl FuncIsActiveTask - lsls r0, 24 - lsrs r0, 24 - cmp r0, 0x1 - bne _0809CF08 - movs r0, 0 - b _0809CFBA - .align 2, 0 -_0809CF04: .4byte sub_809CFDC -_0809CF08: - ldr r1, _0809CFCC @ =gSpecialVar_Result - movs r0, 0xFF - strh r0, [r1] - ldr r0, _0809CFD0 @ =sub_809D6D4 - bl sub_81119D4 - lsls r0, 24 - lsrs r0, 24 - cmp r0, 0x1 - beq _0809CFB8 - ldr r1, _0809CFD4 @ =gUnknown_83E04B0 - lsls r0, r5, 3 - adds r0, r1 - ldr r1, [r0] - mov r8, r1 - ldrb r4, [r0, 0x4] - mov r0, r8 - adds r1, r4, 0 - bl sub_809C974 - adds r5, r0, 0 - adds r5, 0x1 - lsls r5, 24 - lsrs r5, 24 - adds r0, r4, 0 - adds r1, r7, 0 - bl __udivsi3 - adds r6, r0, 0 - lsls r6, 24 - lsrs r6, 24 - mov r0, r9 - movs r1, 0x50 - bl CreateTask - lsls r0, 24 - lsrs r0, 24 - ldr r1, _0809CFD8 @ =gTasks - lsls r4, r0, 2 - adds r4, r0 - lsls r4, 3 - adds r4, r1 - movs r0, 0 - mov r9, r0 - mov r1, r10 - strh r1, [r4, 0x10] - adds r2, r5, 0 - muls r2, r7 - lsls r2, 24 - lsrs r2, 24 - lsls r3, r6, 25 - lsrs r3, 24 - ldr r0, [sp, 0x10] - ldr r1, [sp, 0x14] - bl CreateWindowFromRect - lsls r0, 24 - lsrs r0, 24 - strh r0, [r4, 0x14] - movs r1, 0 - bl SetStdWindowBorderStyle - ldrb r0, [r4, 0x14] - lsls r5, 27 - lsrs r5, 24 - str r7, [sp] - str r6, [sp, 0x4] - mov r1, r8 - str r1, [sp, 0x8] - movs r1, 0x1 - adds r2, r5, 0 - movs r3, 0x10 - bl MultichoiceGrid_PrintItems - ldrb r0, [r4, 0x14] - str r5, [sp] - str r7, [sp, 0x4] - str r6, [sp, 0x8] - mov r1, r9 - str r1, [sp, 0xC] - movs r1, 0x1 - movs r2, 0 - movs r3, 0x1 - bl MultichoiceGrid_InitCursor - movs r0, 0 - bl ScheduleBgCopyTilemapToVram -_0809CFB8: - movs r0, 0x1 -_0809CFBA: - add sp, 0x18 - pop {r3-r5} - mov r8, r3 - mov r9, r4 - mov r10, r5 - pop {r4-r7} - pop {r1} - bx r1 - .align 2, 0 -_0809CFCC: .4byte gSpecialVar_Result -_0809CFD0: .4byte sub_809D6D4 -_0809CFD4: .4byte gUnknown_83E04B0 -_0809CFD8: .4byte gTasks - thumb_func_end ScriptMenu_MultichoiceGrid - - thumb_func_start sub_809CFDC -sub_809CFDC: @ 809CFDC - push {r4,r5,lr} - lsls r0, 24 - lsrs r4, r0, 24 - lsls r0, r4, 2 - adds r0, r4 - lsls r0, 3 - ldr r1, _0809D018 @ =gTasks+0x8 - adds r5, r0, r1 - bl Menu_ProcessInputGridLayout - lsls r0, 24 - asrs r1, r0, 24 - movs r0, 0x2 - negs r0, r0 - cmp r1, r0 - beq _0809D034 - adds r0, 0x1 - cmp r1, r0 - bne _0809D020 - movs r1, 0x8 - ldrsh r0, [r5, r1] - cmp r0, 0 - bne _0809D034 - movs r0, 0x5 - bl PlaySE - ldr r1, _0809D01C @ =gSpecialVar_Result - movs r0, 0x7F - strh r0, [r1] - b _0809D024 - .align 2, 0 -_0809D018: .4byte gTasks+0x8 -_0809D01C: .4byte gSpecialVar_Result -_0809D020: - ldr r0, _0809D03C @ =gSpecialVar_Result - strh r1, [r0] -_0809D024: - ldrb r0, [r5, 0xC] - bl sub_809D6B0 - adds r0, r4, 0 - bl DestroyTask - bl EnableBothScriptContexts -_0809D034: - pop {r4,r5} - pop {r0} - bx r0 - .align 2, 0 -_0809D03C: .4byte gSpecialVar_Result - thumb_func_end sub_809CFDC - - thumb_func_start ScrSpecial_CreatePCMenu -ScrSpecial_CreatePCMenu: @ 809D040 - push {lr} - ldr r0, _0809D060 @ =sub_809CC98 - bl FuncIsActiveTask - lsls r0, 24 - lsrs r0, 24 - cmp r0, 0x1 - beq _0809D068 - ldr r1, _0809D064 @ =gSpecialVar_Result - movs r0, 0xFF - strh r0, [r1] - bl sub_809D070 - movs r0, 0x1 - b _0809D06A - .align 2, 0 -_0809D060: .4byte sub_809CC98 -_0809D064: .4byte gSpecialVar_Result -_0809D068: - movs r0, 0 -_0809D06A: - pop {r1} - bx r1 - thumb_func_end ScrSpecial_CreatePCMenu - - thumb_func_start sub_809D070 -sub_809D070: @ 809D070 - push {r4-r7,lr} - mov r7, r9 - mov r6, r8 - push {r6,r7} - sub sp, 0xC - movs r0, 0x2 - movs r1, 0 - bl GetMenuCursorDimensionByFont - lsls r0, 24 - lsrs r7, r0, 24 - movs r0, 0x2 - movs r1, 0x1 - bl GetFontAttribute - ldr r0, _0809D11C @ =gUnknown_8417BB6 - bl sub_809C954 - lsls r0, 16 - lsrs r0, 16 - cmp r0, 0xA - bgt _0809D0A0 - cmp r0, 0x9 - bge _0809D0AE -_0809D0A0: - ldr r0, _0809D120 @ =0x00000829 - bl FlagGet - lsls r0, 24 - movs r4, 0xD - cmp r0, 0 - beq _0809D0B0 -_0809D0AE: - movs r4, 0xE -_0809D0B0: - ldr r0, _0809D124 @ =0x0000082c - bl FlagGet - lsls r0, 24 - lsrs r5, r0, 24 - cmp r5, 0 - beq _0809D134 - movs r0, 0x5 - mov r9, r0 - movs r0, 0 - movs r1, 0 - adds r2, r4, 0 - movs r3, 0xA - bl CreateWindowFromRect - lsls r0, 24 - lsrs r6, r0, 24 - adds r0, r6, 0 - movs r1, 0 - bl SetStdWindowBorderStyle - ldr r2, _0809D128 @ =gUnknown_8417BD3 - movs r0, 0x22 - str r0, [sp] - movs r5, 0xFF - str r5, [sp, 0x4] - movs r4, 0 - str r4, [sp, 0x8] - adds r0, r6, 0 - movs r1, 0x2 - adds r3, r7, 0 - bl AddTextPrinterParameterized - ldr r2, _0809D12C @ =gUnknown_8417BBE - movs r0, 0x32 - str r0, [sp] - str r5, [sp, 0x4] - str r4, [sp, 0x8] - adds r0, r6, 0 - movs r1, 0x2 - adds r3, r7, 0 - bl AddTextPrinterParameterized - ldr r2, _0809D130 @ =gUnknown_8417BCB - movs r0, 0x42 - str r0, [sp] - str r5, [sp, 0x4] - str r4, [sp, 0x8] - adds r0, r6, 0 - movs r1, 0x2 - adds r3, r7, 0 - bl AddTextPrinterParameterized - b _0809D1A8 - .align 2, 0 -_0809D11C: .4byte gUnknown_8417BB6 -_0809D120: .4byte 0x00000829 -_0809D124: .4byte 0x0000082c -_0809D128: .4byte gUnknown_8417BD3 -_0809D12C: .4byte gUnknown_8417BBE -_0809D130: .4byte gUnknown_8417BCB -_0809D134: - ldr r1, _0809D1D0 @ =0x00000829 - mov r8, r1 - mov r0, r8 - bl FlagGet - lsls r0, 24 - movs r1, 0x3 - mov r9, r1 - cmp r0, 0 - beq _0809D14C - movs r0, 0x4 - mov r9, r0 -_0809D14C: - mov r1, r9 - lsls r3, r1, 1 - movs r0, 0 - movs r1, 0 - adds r2, r4, 0 - bl CreateWindowFromRect - lsls r0, 24 - lsrs r6, r0, 24 - adds r0, r6, 0 - movs r1, 0 - bl SetStdWindowBorderStyle - mov r0, r8 - bl FlagGet - lsls r0, 24 - cmp r0, 0 - beq _0809D188 - ldr r2, _0809D1D4 @ =gUnknown_8417BD3 - movs r0, 0x22 - str r0, [sp] - movs r0, 0xFF - str r0, [sp, 0x4] - str r5, [sp, 0x8] - adds r0, r6, 0 - movs r1, 0x2 - adds r3, r7, 0 - bl AddTextPrinterParameterized -_0809D188: - ldr r2, _0809D1D8 @ =gUnknown_8417BCB - mov r0, r9 - subs r0, 0x1 - lsls r0, 4 - adds r0, 0x2 - lsls r0, 24 - lsrs r0, 24 - str r0, [sp] - movs r0, 0xFF - str r0, [sp, 0x4] - str r5, [sp, 0x8] - adds r0, r6, 0 - movs r1, 0x2 - adds r3, r7, 0 - bl AddTextPrinterParameterized -_0809D1A8: - ldr r0, _0809D1DC @ =0x00000834 - bl FlagGet - lsls r0, 24 - lsrs r1, r0, 24 - cmp r1, 0 - beq _0809D1E4 - ldr r2, _0809D1E0 @ =gUnknown_8417BAC - movs r0, 0x2 - str r0, [sp] - movs r0, 0xFF - str r0, [sp, 0x4] - movs r0, 0 - str r0, [sp, 0x8] - adds r0, r6, 0 - movs r1, 0x2 - adds r3, r7, 0 - bl AddTextPrinterParameterized - b _0809D1FA - .align 2, 0 -_0809D1D0: .4byte 0x00000829 -_0809D1D4: .4byte gUnknown_8417BD3 -_0809D1D8: .4byte gUnknown_8417BCB -_0809D1DC: .4byte 0x00000834 -_0809D1E0: .4byte gUnknown_8417BAC -_0809D1E4: - ldr r2, _0809D248 @ =gUnknown_8417B9F - movs r0, 0x2 - str r0, [sp] - movs r0, 0xFF - str r0, [sp, 0x4] - str r1, [sp, 0x8] - adds r0, r6, 0 - movs r1, 0x2 - adds r3, r7, 0 - bl AddTextPrinterParameterized -_0809D1FA: - ldr r4, _0809D24C @ =gStringVar4 - ldr r1, _0809D250 @ =gUnknown_8417BB6 - adds r0, r4, 0 - bl StringExpandPlaceholders - adds r0, r6, 0 - adds r1, r4, 0 - adds r2, r7, 0 - movs r3, 0x12 - bl Menu_PrintFormatIntlPlayerName - movs r0, 0x10 - str r0, [sp] - mov r0, r9 - str r0, [sp, 0x4] - movs r0, 0 - str r0, [sp, 0x8] - adds r0, r6, 0 - movs r1, 0x2 - movs r2, 0 - movs r3, 0x2 - bl Menu_InitCursor - movs r0, 0 - mov r1, r9 - adds r2, r6, 0 - movs r3, 0xFF - bl sub_809CC18 - movs r0, 0 - bl ScheduleBgCopyTilemapToVram - add sp, 0xC - pop {r3,r4} - mov r8, r3 - mov r9, r4 - pop {r4-r7} - pop {r0} - bx r0 - .align 2, 0 -_0809D248: .4byte gUnknown_8417B9F -_0809D24C: .4byte gStringVar4 -_0809D250: .4byte gUnknown_8417BB6 - thumb_func_end sub_809D070 - - thumb_func_start ScriptMenu_DisplayPCStartupPrompt -ScriptMenu_DisplayPCStartupPrompt: @ 809D254 - push {lr} - sub sp, 0x10 - movs r0, 0 - movs r1, 0x1 - bl sub_80F7768 - ldr r2, _0809D284 @ =gUnknown_81A508A - movs r0, 0 - str r0, [sp] - movs r0, 0x2 - str r0, [sp, 0x4] - movs r0, 0x1 - str r0, [sp, 0x8] - movs r0, 0x3 - str r0, [sp, 0xC] - movs r0, 0 - movs r1, 0x2 - movs r3, 0 - bl AddTextPrinterParameterized2 - add sp, 0x10 - pop {r0} - bx r0 - .align 2, 0 -_0809D284: .4byte gUnknown_81A508A - thumb_func_end ScriptMenu_DisplayPCStartupPrompt - - thumb_func_start sub_809D288 -sub_809D288: @ 809D288 - push {r4,r5,lr} - lsls r0, 24 - lsrs r5, r0, 24 - lsls r0, r5, 2 - adds r0, r5 - lsls r0, 3 - ldr r1, _0809D2AC @ =gTasks - adds r4, r0, r1 - movs r1, 0x8 - ldrsh r0, [r4, r1] - cmp r0, 0x1 - beq _0809D2E8 - cmp r0, 0x1 - bgt _0809D2B0 - cmp r0, 0 - beq _0809D2CE - b _0809D2E8 - .align 2, 0 -_0809D2AC: .4byte gTasks -_0809D2B0: - cmp r0, 0x2 - beq _0809D2BA - cmp r0, 0x3 - beq _0809D2DC - b _0809D2E8 -_0809D2BA: - movs r0, 0xC - ldrsh r1, [r4, r0] - lsls r0, r1, 4 - adds r0, r1 - lsls r0, 2 - ldr r1, _0809D2D8 @ =gSprites - adds r0, r1 - ldrb r1, [r4, 0xC] - bl sub_8083A5C -_0809D2CE: - ldrh r0, [r4, 0x8] - adds r0, 0x1 - strh r0, [r4, 0x8] - b _0809D2E8 - .align 2, 0 -_0809D2D8: .4byte gSprites -_0809D2DC: - ldrb r0, [r4, 0x12] - bl sub_809D6B0 - adds r0, r5, 0 - bl DestroyTask -_0809D2E8: - pop {r4,r5} - pop {r0} - bx r0 - thumb_func_end sub_809D288 - - thumb_func_start ScriptMenu_ShowPokemonPic -ScriptMenu_ShowPokemonPic: @ 809D2F0 - push {r4-r7,lr} - mov r7, r8 - push {r7} - lsls r0, 16 - lsrs r0, 16 - mov r8, r0 - lsls r1, 24 - lsrs r7, r1, 24 - lsls r2, 24 - lsrs r6, r2, 24 - ldr r0, _0809D318 @ =sub_809D6D4 - bl sub_81119D4 - lsls r0, 24 - lsrs r0, 24 - cmp r0, 0x1 - bne _0809D31C - movs r0, 0x1 - b _0809D3C2 - .align 2, 0 -_0809D318: .4byte sub_809D6D4 -_0809D31C: - ldr r4, _0809D3B0 @ =sub_809D288 - adds r0, r4, 0 - bl FindTaskIdByFunc - lsls r0, 24 - lsrs r0, 24 - cmp r0, 0xFF - bne _0809D3C0 - lsls r1, r7, 19 - movs r0, 0xA0 - lsls r0, 14 - adds r1, r0 - asrs r1, 16 - lsls r2, r6, 19 - adds r2, r0 - asrs r2, 16 - mov r0, r8 - movs r3, 0 - bl sub_8083970 - adds r5, r0, 0 - lsls r5, 24 - lsrs r5, 24 - adds r0, r4, 0 - movs r1, 0x50 - bl CreateTask - adds r4, r0, 0 - lsls r4, 24 - lsrs r4, 24 - adds r0, r7, 0 - adds r1, r6, 0 - movs r2, 0x8 - movs r3, 0x8 - bl CreateWindowFromRect - ldr r1, _0809D3B4 @ =gTasks - lsls r3, r4, 2 - adds r3, r4 - lsls r3, 3 - adds r3, r1 - lsls r0, 24 - lsrs r0, 24 - movs r1, 0 - strh r0, [r3, 0x12] - strh r1, [r3, 0x8] - mov r0, r8 - strh r0, [r3, 0xA] - strh r5, [r3, 0xC] - ldr r4, _0809D3B8 @ =gSprites - lsls r1, r5, 4 - adds r1, r5 - lsls r1, 2 - adds r0, r4, 0 - adds r0, 0x1C - adds r0, r1, r0 - ldr r2, _0809D3BC @ =SpriteCallbackDummy - str r2, [r0] - adds r1, r4 - ldrb r2, [r1, 0x5] - movs r0, 0xD - negs r0, r0 - ands r0, r2 - strb r0, [r1, 0x5] - ldrb r0, [r3, 0x12] - movs r1, 0x1 - bl SetStdWindowBorderStyle - movs r0, 0 - bl ScheduleBgCopyTilemapToVram - movs r0, 0x1 - b _0809D3C2 - .align 2, 0 -_0809D3B0: .4byte sub_809D288 -_0809D3B4: .4byte gTasks -_0809D3B8: .4byte gSprites -_0809D3BC: .4byte SpriteCallbackDummy -_0809D3C0: - movs r0, 0 -_0809D3C2: - pop {r3} - mov r8, r3 - pop {r4-r7} - pop {r1} - bx r1 - thumb_func_end ScriptMenu_ShowPokemonPic - - thumb_func_start ScriptMenu_GetPicboxWaitFunc -ScriptMenu_GetPicboxWaitFunc: @ 809D3CC - push {lr} - ldr r0, _0809D3F0 @ =sub_809D288 - bl FindTaskIdByFunc - lsls r0, 24 - lsrs r2, r0, 24 - cmp r2, 0xFF - beq _0809D3FC - ldr r0, _0809D3F4 @ =gTasks - lsls r1, r2, 2 - adds r1, r2 - lsls r1, 3 - adds r1, r0 - ldrh r0, [r1, 0x8] - adds r0, 0x1 - strh r0, [r1, 0x8] - ldr r0, _0809D3F8 @ =sub_809D404 - b _0809D3FE - .align 2, 0 -_0809D3F0: .4byte sub_809D288 -_0809D3F4: .4byte gTasks -_0809D3F8: .4byte sub_809D404 -_0809D3FC: - movs r0, 0 -_0809D3FE: - pop {r1} - bx r1 - thumb_func_end ScriptMenu_GetPicboxWaitFunc - - thumb_func_start sub_809D404 -sub_809D404: @ 809D404 - push {lr} - ldr r0, _0809D418 @ =sub_809D288 - bl FindTaskIdByFunc - lsls r0, 24 - lsrs r0, 24 - cmp r0, 0xFF - beq _0809D41C - movs r0, 0 - b _0809D41E - .align 2, 0 -_0809D418: .4byte sub_809D288 -_0809D41C: - movs r0, 0x1 -_0809D41E: - pop {r1} - bx r1 - thumb_func_end sub_809D404 - - thumb_func_start sub_809D424 -sub_809D424: @ 809D424 - push {r4,r5,lr} - ldr r0, _0809D450 @ =sub_809D288 - bl FindTaskIdByFunc - lsls r0, 24 - lsrs r5, r0, 24 - cmp r5, 0xFF - beq _0809D48C - lsls r0, r5, 2 - adds r0, r5 - lsls r0, 3 - ldr r1, _0809D454 @ =gTasks - adds r4, r0, r1 - movs r1, 0x8 - ldrsh r0, [r4, r1] - cmp r0, 0 - blt _0809D48C - cmp r0, 0x2 - ble _0809D458 - cmp r0, 0x3 - beq _0809D480 - b _0809D48C - .align 2, 0 -_0809D450: .4byte sub_809D288 -_0809D454: .4byte gTasks -_0809D458: - movs r0, 0xC - ldrsh r1, [r4, r0] - lsls r0, r1, 4 - adds r0, r1 - lsls r0, 2 - ldr r1, _0809D47C @ =gSprites - adds r0, r1 - ldrb r1, [r4, 0xC] - bl sub_8083A5C - ldrb r0, [r4, 0x12] - bl sub_809D6B0 - adds r0, r5, 0 - bl DestroyTask - b _0809D48C - .align 2, 0 -_0809D47C: .4byte gSprites -_0809D480: - ldrb r0, [r4, 0x12] - bl sub_809D6B0 - adds r0, r5, 0 - bl DestroyTask -_0809D48C: - pop {r4,r5} - pop {r0} - bx r0 - thumb_func_end sub_809D424 - - thumb_func_start sub_809D494 -sub_809D494: @ 809D494 - push {r4,r5,lr} - lsls r0, 24 - lsrs r5, r0, 24 - lsls r0, r5, 2 - adds r0, r5 - lsls r0, 3 - ldr r1, _0809D4B8 @ =gTasks - adds r4, r0, r1 - movs r1, 0x8 - ldrsh r0, [r4, r1] - cmp r0, 0x1 - beq _0809D4FC - cmp r0, 0x1 - bgt _0809D4BC - cmp r0, 0 - beq _0809D4DE - b _0809D4FC - .align 2, 0 -_0809D4B8: .4byte gTasks -_0809D4BC: - cmp r0, 0x2 - beq _0809D4C6 - cmp r0, 0x3 - beq _0809D4F0 - b _0809D4FC -_0809D4C6: - movs r0, 0xC - ldrsh r1, [r4, r0] - lsls r0, r1, 4 - adds r0, r1 - lsls r0, 2 - ldr r1, _0809D4E8 @ =gSprites - adds r0, r1 - bl DestroySprite - ldr r0, _0809D4EC @ =0x00001b58 - bl FreeSpriteTilesByTag -_0809D4DE: - ldrh r0, [r4, 0x8] - adds r0, 0x1 - strh r0, [r4, 0x8] - b _0809D4FC - .align 2, 0 -_0809D4E8: .4byte gSprites -_0809D4EC: .4byte 0x00001b58 -_0809D4F0: - ldrb r0, [r4, 0x12] - bl sub_809D6B0 - adds r0, r5, 0 - bl DestroyTask -_0809D4FC: - pop {r4,r5} - pop {r0} - bx r0 - thumb_func_end sub_809D494 - - thumb_func_start sub_809D504 -sub_809D504: @ 809D504 - push {r4-r6,lr} - mov r6, r8 - push {r6} - ldr r0, _0809D544 @ =sub_809D6D4 - bl sub_81119D4 - lsls r0, 24 - lsrs r0, 24 - cmp r0, 0x1 - beq _0809D5F2 - ldr r0, _0809D548 @ =sub_809D494 - bl FindTaskIdByFunc - lsls r0, 24 - lsrs r0, 24 - cmp r0, 0xFF - bne _0809D55C - ldr r0, _0809D54C @ =gSpecialVar_0x8004 - ldrh r0, [r0] - cmp r0, 0x8D - bne _0809D558 - ldr r0, _0809D550 @ =gUnknown_83E17C0 - bl LoadSpriteSheets - ldr r0, _0809D554 @ =gUnknown_83E17A0 - movs r1, 0xE8 - lsls r1, 1 - movs r2, 0x20 - bl LoadPalette - b _0809D572 - .align 2, 0 -_0809D544: .4byte sub_809D6D4 -_0809D548: .4byte sub_809D494 -_0809D54C: .4byte gSpecialVar_0x8004 -_0809D550: .4byte gUnknown_83E17C0 -_0809D554: .4byte gUnknown_83E17A0 -_0809D558: - cmp r0, 0x8E - beq _0809D560 -_0809D55C: - movs r0, 0 - b _0809D5F4 -_0809D560: - ldr r0, _0809D600 @ =gUnknown_83E17D0 - bl LoadSpriteSheets - ldr r0, _0809D604 @ =gUnknown_83E0F80 - movs r1, 0xE8 - lsls r1, 1 - movs r2, 0x20 - bl LoadPalette -_0809D572: - ldr r0, _0809D608 @ =gUnknown_83E0768 - ldr r1, _0809D60C @ =gSpecialVar_0x8005 - mov r8, r1 - ldrh r1, [r1] - lsls r1, 19 - movs r2, 0xA0 - lsls r2, 14 - adds r1, r2 - asrs r1, 16 - ldr r6, _0809D610 @ =gSpecialVar_0x8006 - ldrh r2, [r6] - lsls r2, 19 - movs r3, 0xA0 - lsls r3, 14 - adds r2, r3 - asrs r2, 16 - movs r3, 0 - bl CreateSprite - adds r5, r0, 0 - lsls r5, 24 - lsrs r5, 24 - ldr r1, _0809D614 @ =gSprites - lsls r0, r5, 4 - adds r0, r5 - lsls r0, 2 - adds r0, r1 - ldrb r2, [r0, 0x5] - movs r1, 0xF - ands r1, r2 - movs r2, 0xD0 - orrs r1, r2 - strb r1, [r0, 0x5] - ldr r0, _0809D618 @ =sub_809D494 - movs r1, 0x50 - bl CreateTask - adds r4, r0, 0 - lsls r4, 24 - lsrs r4, 24 - mov r1, r8 - ldrb r0, [r1] - ldrb r1, [r6] - movs r2, 0x8 - movs r3, 0x8 - bl CreateWindowFromRect - ldr r2, _0809D61C @ =gTasks - lsls r1, r4, 2 - adds r1, r4 - lsls r1, 3 - adds r1, r2 - lsls r0, 24 - lsrs r0, 24 - movs r2, 0 - strh r0, [r1, 0x12] - strh r2, [r1, 0x8] - strh r5, [r1, 0xC] - movs r1, 0x1 - bl SetStdWindowBorderStyle - movs r0, 0 - bl ScheduleBgCopyTilemapToVram -_0809D5F2: - movs r0, 0x1 -_0809D5F4: - pop {r3} - mov r8, r3 - pop {r4-r6} - pop {r1} - bx r1 - .align 2, 0 -_0809D600: .4byte gUnknown_83E17D0 -_0809D604: .4byte gUnknown_83E0F80 -_0809D608: .4byte gUnknown_83E0768 -_0809D60C: .4byte gSpecialVar_0x8005 -_0809D610: .4byte gSpecialVar_0x8006 -_0809D614: .4byte gSprites -_0809D618: .4byte sub_809D494 -_0809D61C: .4byte gTasks - thumb_func_end sub_809D504 - - thumb_func_start sub_809D620 -sub_809D620: @ 809D620 - push {lr} - ldr r0, _0809D644 @ =sub_809D494 - bl FindTaskIdByFunc - lsls r0, 24 - lsrs r2, r0, 24 - cmp r2, 0xFF - beq _0809D64C - ldr r0, _0809D648 @ =gTasks - lsls r1, r2, 2 - adds r1, r2 - lsls r1, 3 - adds r1, r0 - ldrh r0, [r1, 0x8] - adds r0, 0x1 - strh r0, [r1, 0x8] - movs r0, 0x1 - b _0809D64E - .align 2, 0 -_0809D644: .4byte sub_809D494 -_0809D648: .4byte gTasks -_0809D64C: - movs r0, 0 -_0809D64E: - pop {r1} - bx r1 - thumb_func_end sub_809D620 - - thumb_func_start CreateWindowFromRect -CreateWindowFromRect: @ 809D654 - push {r4,r5,lr} - sub sp, 0x20 - adds r4, r0, 0 - adds r5, r1, 0 - lsls r4, 24 - lsls r5, 24 - lsls r2, 24 - lsrs r2, 24 - lsls r3, 24 - lsrs r3, 24 - movs r0, 0x80 - lsls r0, 17 - adds r4, r0 - lsrs r4, 24 - adds r5, r0 - lsrs r5, 24 - str r2, [sp] - str r3, [sp, 0x4] - movs r0, 0xF - str r0, [sp, 0x8] - movs r0, 0x38 - str r0, [sp, 0xC] - add r0, sp, 0x10 - movs r1, 0 - adds r2, r4, 0 - adds r3, r5, 0 - bl SetWindowTemplateFields - ldr r0, [sp, 0x10] - ldr r1, [sp, 0x14] - str r0, [sp, 0x18] - str r1, [sp, 0x1C] - add r0, sp, 0x18 - bl AddWindow - adds r4, r0, 0 - lsls r4, 24 - lsrs r4, 24 - adds r0, r4, 0 - bl PutWindowTilemap - adds r0, r4, 0 - add sp, 0x20 - pop {r4,r5} - pop {r1} - bx r1 - thumb_func_end CreateWindowFromRect - - thumb_func_start sub_809D6B0 -sub_809D6B0: @ 809D6B0 - push {r4,lr} - adds r4, r0, 0 - lsls r4, 24 - lsrs r4, 24 - adds r0, r4, 0 - bl ClearWindowTilemap - adds r0, r4, 0 - movs r1, 0x1 - bl ClearStdWindowAndFrameToTransparent - adds r0, r4, 0 - bl RemoveWindow - pop {r4} - pop {r0} - bx r0 - thumb_func_end sub_809D6B0 - - thumb_func_start sub_809D6D4 -sub_809D6D4: @ 809D6D4 - push {lr} - ldr r0, _0809D74C @ =EventScript_1A7AE0 - bl ScriptContext1_SetupScript - ldr r0, _0809D750 @ =sub_809D288 - bl FindTaskIdByFunc - lsls r0, 24 - lsrs r1, r0, 24 - cmp r1, 0xFF - beq _0809D710 - lsls r0, r1, 2 - adds r0, r1 - lsls r0, 3 - ldr r1, _0809D754 @ =gTasks+0x8 - adds r2, r0, r1 - movs r1, 0 - ldrsh r0, [r2, r1] - cmp r0, 0x1 - bgt _0809D710 - movs r0, 0x4 - ldrsh r1, [r2, r0] - lsls r0, r1, 4 - adds r0, r1 - lsls r0, 2 - ldr r1, _0809D758 @ =gSprites - adds r0, r1 - ldrb r1, [r2, 0x4] - bl sub_8083A5C -_0809D710: - ldr r0, _0809D75C @ =sub_809D494 - bl FindTaskIdByFunc - lsls r0, 24 - lsrs r1, r0, 24 - cmp r1, 0xFF - beq _0809D748 - lsls r0, r1, 2 - adds r0, r1 - lsls r0, 3 - ldr r1, _0809D754 @ =gTasks+0x8 - adds r2, r0, r1 - movs r1, 0 - ldrsh r0, [r2, r1] - cmp r0, 0x1 - bgt _0809D748 - movs r0, 0x4 - ldrsh r1, [r2, r0] - lsls r0, r1, 4 - adds r0, r1 - lsls r0, 2 - ldr r1, _0809D758 @ =gSprites - adds r0, r1 - bl DestroySprite - ldr r0, _0809D760 @ =0x00001b58 - bl FreeSpriteTilesByTag -_0809D748: - pop {r0} - bx r0 - .align 2, 0 -_0809D74C: .4byte EventScript_1A7AE0 -_0809D750: .4byte sub_809D288 -_0809D754: .4byte gTasks+0x8 -_0809D758: .4byte gSprites -_0809D75C: .4byte sub_809D494 -_0809D760: .4byte 0x00001b58 - thumb_func_end sub_809D6D4 - - thumb_func_start sub_809D764 -sub_809D764: @ 809D764 - push {r4-r7,lr} - mov r7, r9 - mov r6, r8 - push {r6,r7} - sub sp, 0xC - ldr r1, _0809D7A0 @ =gSpecialVar_Result - movs r0, 0xFF - strh r0, [r1] - ldr r0, _0809D7A4 @ =sub_809D6D4 - bl sub_81119D4 - lsls r0, 24 - lsrs r0, 24 - cmp r0, 0x1 - bne _0809D784 - b _0809D8A8 -_0809D784: - ldr r0, _0809D7A8 @ =gSpecialVar_0x8005 - ldrh r0, [r0] - cmp r0, 0x1 - bne _0809D7B0 - ldr r0, _0809D7AC @ =gSpecialVar_0x8004 - ldrh r0, [r0] - movs r4, 0x4 - cmp r0, 0x4 - bhi _0809D798 - movs r4, 0x5 -_0809D798: - movs r0, 0x5 - mov r9, r0 - movs r5, 0x2 - b _0809D7B8 - .align 2, 0 -_0809D7A0: .4byte gSpecialVar_Result -_0809D7A4: .4byte sub_809D6D4 -_0809D7A8: .4byte gSpecialVar_0x8005 -_0809D7AC: .4byte gSpecialVar_0x8004 -_0809D7B0: - movs r4, 0 - movs r0, 0x6 - mov r9, r0 - movs r5, 0 -_0809D7B8: - movs r0, 0x2 - movs r1, 0 - bl GetMenuCursorDimensionByFont - lsls r0, 24 - lsrs r0, 24 - mov r8, r0 - movs r0, 0x2 - movs r1, 0x1 - bl GetFontAttribute - mov r0, r9 - lsls r3, r0, 1 - movs r0, 0x11 - adds r1, r5, 0 - movs r2, 0xB - bl CreateWindowFromRect - lsls r0, 24 - lsrs r7, r0, 24 - adds r0, r7, 0 - movs r1, 0 - bl SetStdWindowBorderStyle - movs r6, 0 - mov r5, r9 - subs r5, 0x2 - cmp r6, r5 - bge _0809D844 -_0809D7F2: - ldr r0, _0809D820 @ =gSpecialVar_0x8004 - ldrh r0, [r0] - cmp r4, r0 - beq _0809D828 - ldr r1, _0809D824 @ =gUnknown_83E17E0 - lsls r0, r4, 2 - adds r0, r1 - ldr r2, [r0] - lsls r0, r6, 4 - adds r0, 0x2 - lsls r0, 24 - lsrs r0, 24 - str r0, [sp] - movs r0, 0xFF - str r0, [sp, 0x4] - movs r0, 0 - str r0, [sp, 0x8] - adds r0, r7, 0 - movs r1, 0x2 - mov r3, r8 - bl AddTextPrinterParameterized - b _0809D82E - .align 2, 0 -_0809D820: .4byte gSpecialVar_0x8004 -_0809D824: .4byte gUnknown_83E17E0 -_0809D828: - subs r0, r6, 0x1 - lsls r0, 24 - lsrs r6, r0, 24 -_0809D82E: - adds r0, r4, 0x1 - lsls r0, 24 - lsrs r4, r0, 24 - cmp r4, 0x8 - bne _0809D83A - movs r4, 0 -_0809D83A: - adds r0, r6, 0x1 - lsls r0, 24 - lsrs r6, r0, 24 - cmp r6, r5 - blt _0809D7F2 -_0809D844: - ldr r2, _0809D8B8 @ =gUnknown_8417DED - lsls r0, r6, 4 - adds r0, 0x2 - lsls r0, 24 - lsrs r0, 24 - str r0, [sp] - movs r5, 0xFF - str r5, [sp, 0x4] - movs r4, 0 - str r4, [sp, 0x8] - adds r0, r7, 0 - movs r1, 0x2 - mov r3, r8 - bl AddTextPrinterParameterized - adds r0, r6, 0x1 - lsls r0, 24 - ldr r2, _0809D8BC @ =gOtherText_Exit - lsrs r0, 20 - adds r0, 0x2 - lsls r0, 24 - lsrs r0, 24 - str r0, [sp] - str r5, [sp, 0x4] - str r4, [sp, 0x8] - adds r0, r7, 0 - movs r1, 0x2 - mov r3, r8 - bl AddTextPrinterParameterized - movs r0, 0x10 - str r0, [sp] - mov r0, r9 - str r0, [sp, 0x4] - str r4, [sp, 0x8] - adds r0, r7, 0 - movs r1, 0x2 - movs r2, 0 - movs r3, 0x2 - bl Menu_InitCursor - movs r0, 0 - mov r1, r9 - adds r2, r7, 0 - movs r3, 0xFF - bl sub_809CC18 - movs r0, 0 - bl ScheduleBgCopyTilemapToVram -_0809D8A8: - add sp, 0xC - pop {r3,r4} - mov r8, r3 - mov r9, r4 - pop {r4-r7} - pop {r0} - bx r0 - .align 2, 0 -_0809D8B8: .4byte gUnknown_8417DED -_0809D8BC: .4byte gOtherText_Exit - thumb_func_end sub_809D764 - - thumb_func_start sub_809D8C0 -sub_809D8C0: @ 809D8C0 - push {lr} - ldr r3, _0809D8EC @ =gSpecialVar_Result - ldrh r2, [r3] - adds r1, r2, 0 - cmp r1, 0x7F - beq _0809D930 - ldr r0, _0809D8F0 @ =gSpecialVar_0x8005 - ldrh r0, [r0] - cmp r0, 0x1 - bne _0809D924 - cmp r1, 0x3 - beq _0809D928 - cmp r1, 0x4 - beq _0809D930 - cmp r1, 0 - bne _0809D8F8 - ldr r0, _0809D8F4 @ =gSpecialVar_0x8004 - ldrh r0, [r0] - cmp r0, 0x4 - bls _0809D904 - movs r0, 0x4 - b _0809D94E - .align 2, 0 -_0809D8EC: .4byte gSpecialVar_Result -_0809D8F0: .4byte gSpecialVar_0x8005 -_0809D8F4: .4byte gSpecialVar_0x8004 -_0809D8F8: - cmp r1, 0x1 - bne _0809D90C - ldr r0, _0809D908 @ =gSpecialVar_0x8004 - ldrh r0, [r0] - cmp r0, 0x5 - bls _0809D918 -_0809D904: - movs r0, 0x5 - b _0809D94E - .align 2, 0 -_0809D908: .4byte gSpecialVar_0x8004 -_0809D90C: - cmp r1, 0x2 - bne _0809D94C - ldr r0, _0809D91C @ =gSpecialVar_0x8004 - ldrh r0, [r0] - cmp r0, 0x6 - bls _0809D920 -_0809D918: - movs r0, 0x6 - b _0809D94E - .align 2, 0 -_0809D91C: .4byte gSpecialVar_0x8004 -_0809D920: - movs r0, 0x7 - b _0809D94E -_0809D924: - cmp r1, 0x4 - bne _0809D92C -_0809D928: - movs r0, 0xFE - b _0809D94E -_0809D92C: - cmp r1, 0x5 - bne _0809D934 -_0809D930: - movs r0, 0x7F - b _0809D94E -_0809D934: - ldr r0, _0809D944 @ =gSpecialVar_0x8004 - ldrh r0, [r0] - cmp r1, r0 - bcc _0809D948 - adds r0, r2, 0x1 - lsls r0, 16 - lsrs r0, 16 - b _0809D94E - .align 2, 0 -_0809D944: .4byte gSpecialVar_0x8004 -_0809D948: - ldrh r0, [r3] - b _0809D94E -_0809D94C: - movs r0, 0 -_0809D94E: - pop {r1} - bx r1 - thumb_func_end sub_809D8C0 - - .align 2, 0 @ Don't pad with nop. diff --git a/asm/script_pokemon_util_80A0058.s b/asm/script_pokemon_util_80A0058.s index 6b4cdd1a8..525293081 100644 --- a/asm/script_pokemon_util_80A0058.s +++ b/asm/script_pokemon_util_80A0058.s @@ -420,8 +420,8 @@ _080A0378: .4byte gSpecialVar_Result _080A037C: .4byte CB2_ReturnToFieldContinueScriptPlayMapMusic thumb_func_end sub_80A0350 - thumb_func_start sub_80A0380 -sub_80A0380: @ 80A0380 + thumb_func_start ChooseBattleTowerPlayerParty +ChooseBattleTowerPlayerParty: @ 80A0380 push {lr} ldr r1, _080A0394 @ =gMain ldr r0, _080A0398 @ =sub_80A039C @@ -433,7 +433,7 @@ sub_80A0380: @ 80A0380 .align 2, 0 _080A0394: .4byte gMain _080A0398: .4byte sub_80A039C - thumb_func_end sub_80A0380 + thumb_func_end ChooseBattleTowerPlayerParty thumb_func_start sub_80A039C sub_80A039C: @ 80A039C @@ -450,7 +450,7 @@ sub_80A039C: @ 80A039C _080A03B0: .4byte gUnknown_203B0D4 _080A03B4: .4byte gSpecialVar_Result _080A03B8: - bl sub_80A03D8 + bl ReducePlayerPartyToThree ldr r1, _080A03D0 @ =gSpecialVar_Result movs r0, 0x1 strh r0, [r1] @@ -465,8 +465,8 @@ _080A03D0: .4byte gSpecialVar_Result _080A03D4: .4byte CB2_ReturnToFieldContinueScriptPlayMapMusic thumb_func_end sub_80A039C - thumb_func_start sub_80A03D8 -sub_80A03D8: @ 80A03D8 + thumb_func_start ReducePlayerPartyToThree +ReducePlayerPartyToThree: @ 80A03D8 push {r4-r7,lr} mov r7, r8 push {r7} @@ -530,6 +530,6 @@ _080A042C: _080A0454: .4byte gPlayerParty _080A0458: .4byte gUnknown_203B0D4 _080A045C: .4byte 0x05000096 - thumb_func_end sub_80A03D8 + thumb_func_end ReducePlayerPartyToThree .align 2, 0 @ Don't pad with nop. diff --git a/asm/script_pokemon_util_80BF8FC.s b/asm/script_pokemon_util_80BF8FC.s index 297d09e9a..15d19e08b 100644 --- a/asm/script_pokemon_util_80BF8FC.s +++ b/asm/script_pokemon_util_80BF8FC.s @@ -5,8 +5,8 @@ .text - thumb_func_start sub_80BF8FC -sub_80BF8FC: @ 80BF8FC + thumb_func_start Special_ChooseMonFromParty +Special_ChooseMonFromParty: @ 80BF8FC push {lr} sub sp, 0x4 bl ScriptContext2_Enable @@ -34,10 +34,10 @@ sub_80BF8FC: @ 80BF8FC .align 2, 0 _080BF934: .4byte sub_80BF97C _080BF938: .4byte gTasks - thumb_func_end sub_80BF8FC + thumb_func_end Special_ChooseMonFromParty - thumb_func_start sub_80BF93C -sub_80BF93C: @ 80BF93C + thumb_func_start SelectMoveTutorMon +SelectMoveTutorMon: @ 80BF93C push {lr} sub sp, 0x4 bl ScriptContext2_Enable @@ -65,7 +65,7 @@ sub_80BF93C: @ 80BF93C .align 2, 0 _080BF974: .4byte sub_80BF97C _080BF978: .4byte gTasks - thumb_func_end sub_80BF93C + thumb_func_end SelectMoveTutorMon thumb_func_start sub_80BF97C sub_80BF97C: @ 80BF97C @@ -100,8 +100,8 @@ _080BF9B4: .4byte gPaletteFade _080BF9B8: .4byte gTasks thumb_func_end sub_80BF97C - thumb_func_start sub_80BF9BC -sub_80BF9BC: @ 80BF9BC + thumb_func_start SelectMove +SelectMove: @ 80BF9BC push {r4,lr} sub sp, 0x4 ldr r0, _080BF9F0 @ =gPlayerParty @@ -132,7 +132,7 @@ _080BF9F8: .4byte gPlayerPartyCount _080BF9FC: .4byte CB2_ReturnToField _080BFA00: .4byte gFieldCallback _080BFA04: .4byte FieldCallback_ReturnToEventScript2 - thumb_func_end sub_80BF9BC + thumb_func_end SelectMove thumb_func_start ScrSpecial_CountPokemonMoves ScrSpecial_CountPokemonMoves: @ 80BFA08 @@ -333,8 +333,8 @@ sub_80BFAA8: @ 80BFAA8 _080BFBA4: .4byte gPPUpGetMask thumb_func_end sub_80BFAA8 - thumb_func_start sub_80BFBA8 -sub_80BFBA8: @ 80BFBA8 + thumb_func_start DeleteMonMove +DeleteMonMove: @ 80BFBA8 push {r4-r6,lr} mov r6, r8 push {r6} @@ -385,10 +385,10 @@ _080BFBFC: _080BFC08: .4byte gSpecialVar_0x8004 _080BFC0C: .4byte gPlayerParty _080BFC10: .4byte gSpecialVar_0x8005 - thumb_func_end sub_80BFBA8 + thumb_func_end DeleteMonMove - thumb_func_start sub_80BFC14 -sub_80BFC14: @ 80BFC14 + thumb_func_start IsSelectedMonEgg +IsSelectedMonEgg: @ 80BFC14 push {lr} ldr r0, _080BFC38 @ =gSpecialVar_0x8004 ldrh r1, [r0] @@ -417,6 +417,6 @@ _080BFC48: bx r0 .align 2, 0 _080BFC4C: .4byte gSpecialVar_Result - thumb_func_end sub_80BFC14 + thumb_func_end IsSelectedMonEgg .align 2, 0 @ Don't pad with nop. diff --git a/asm/trade.s b/asm/trade.s index 0aa029b62..2beb96151 100644 --- a/asm/trade.s +++ b/asm/trade.s @@ -169,7 +169,7 @@ _0804D048: str r0, [sp, 0x4] str r1, [sp, 0x8] adds r0, r5, 0 - ldr r1, _0804D144 @ =sub_809718C + ldr r1, _0804D144 @ =SpriteCB_MonIcon bl CreateMonIcon mov r2, r8 ldr r1, [r2] @@ -228,7 +228,7 @@ _0804D0BE: movs r0, 0 str r0, [sp, 0x8] adds r0, r5, 0 - ldr r1, _0804D144 @ =sub_809718C + ldr r1, _0804D144 @ =SpriteCB_MonIcon bl CreateMonIcon mov r2, r8 ldr r1, [r2] @@ -255,7 +255,7 @@ _0804D134: .4byte gEnemyPartyCount _0804D138: .4byte gTradeMonSpriteCoords _0804D13C: .4byte gPlayerParty _0804D140: .4byte 0xfff40000 -_0804D144: .4byte sub_809718C +_0804D144: .4byte SpriteCB_MonIcon _0804D148: .4byte gEnemyParty _0804D14C: .4byte gMain _0804D150: @@ -790,7 +790,7 @@ sub_804D5A4: @ 804D5A4 ldrb r0, [r0] cmp r0, 0 beq _0804D5FC - bl IsRfuTaskFinished + bl IsLinkRfuTaskFinished lsls r0, 24 cmp r0, 0 beq _0804D620 @@ -3609,7 +3609,7 @@ _0804EBA2: adds r0, r1 lsls r0, 2 add r0, r8 - ldr r1, _0804ECAC @ =sub_809718C + ldr r1, _0804ECAC @ =SpriteCB_MonIcon bl StoreSpriteCallbackInData6 ldr r2, _0804ECA4 @ =gUnknown_2031DA8 ldr r1, [r2] @@ -3656,7 +3656,7 @@ _0804EC98: _0804ECA0: .4byte gSprites _0804ECA4: .4byte gUnknown_2031DA8 _0804ECA8: .4byte gTradeMonSpriteCoords -_0804ECAC: .4byte sub_809718C +_0804ECAC: .4byte SpriteCB_MonIcon _0804ECB0: .4byte gUnknown_8260A32 _0804ECB4: ldr r2, _0804ECE4 @ =gSprites @@ -3675,7 +3675,7 @@ _0804ECB4: adds r2, 0x1C adds r0, r2 ldr r1, [r0] - ldr r0, _0804ECE8 @ =sub_809718C + ldr r0, _0804ECE8 @ =SpriteCB_MonIcon cmp r1, r0 beq _0804ECDC b _0804EE54 @@ -3685,7 +3685,7 @@ _0804ECDC: b _0804EE54 .align 2, 0 _0804ECE4: .4byte gSprites -_0804ECE8: .4byte sub_809718C +_0804ECE8: .4byte SpriteCB_MonIcon _0804ECEC: ldr r1, _0804EE08 @ =gUnknown_8260834 ldr r0, [sp, 0x60] @@ -5314,7 +5314,7 @@ _0804F988: subs r1, r2 lsls r1, 24 lsrs r1, 24 - bl sub_8097414 + bl MonIcon_SetAnim adds r4, 0x1 ldr r0, [r6] adds r0, 0x36 @@ -7758,7 +7758,7 @@ _08050D98: orrs r0, r7 str r0, [r1, 0x8] ldr r0, [r1, 0x8] - ldr r1, _08050DD8 @ =gUnknown_08331F60 + ldr r1, _08050DD8 @ =gUnknown_826601C ldr r2, _08050DDC @ =0x06009000 ldr r0, _08050DD0 @ =0x040000d4 str r1, [r0] @@ -7779,7 +7779,7 @@ _08050DC8: .4byte gTradeGba_Gfx _08050DCC: .4byte 0x06004000 _08050DD0: .4byte 0x040000d4 _08050DD4: .4byte 0x80000800 -_08050DD8: .4byte gUnknown_08331F60 +_08050DD8: .4byte gUnknown_826601C _08050DDC: .4byte 0x06009000 thumb_func_end sub_8050968 @@ -10010,7 +10010,7 @@ _0805223C: ldrb r0, [r0] movs r1, 0 bl sub_805080C - ldr r1, _08052284 @ =gUnknown_300537C + ldr r1, _08052284 @ =gCB2_AfterEvolution ldr r0, _08052288 @ =sub_8050948 str r0, [r1] ldr r7, _0805228C @ =gUnknown_2031DA4 @@ -10039,7 +10039,7 @@ _0805223C: b _080522A8 .align 2, 0 _08052280: .4byte gSpecialVar_0x8005 -_08052284: .4byte gUnknown_300537C +_08052284: .4byte gCB2_AfterEvolution _08052288: .4byte sub_8050948 _0805228C: .4byte gUnknown_2031DA4 _08052290: .4byte gPlayerParty @@ -12235,7 +12235,7 @@ _08053698: ldrb r0, [r0] movs r1, 0 bl sub_805080C - ldr r1, _080536E0 @ =gUnknown_300537C + ldr r1, _080536E0 @ =gCB2_AfterEvolution ldr r0, _080536E4 @ =sub_8050948 str r0, [r1] ldr r7, _080536E8 @ =gUnknown_2031DA4 @@ -12264,7 +12264,7 @@ _08053698: b _08053704 .align 2, 0 _080536DC: .4byte gSpecialVar_0x8005 -_080536E0: .4byte gUnknown_300537C +_080536E0: .4byte gCB2_AfterEvolution _080536E4: .4byte sub_8050948 _080536E8: .4byte gUnknown_2031DA4 _080536EC: .4byte gPlayerParty @@ -12362,7 +12362,7 @@ _080537A8: .align 2, 0 _080537B4: .4byte gSoftResetDisabled _080537B8: - ldr r0, _080537F4 @ =gUnknown_300537C + ldr r0, _080537F4 @ =gCB2_AfterEvolution ldr r1, _080537F8 @ =sub_8053E8C mov r8, r1 str r1, [r0] @@ -12391,7 +12391,7 @@ _080537B8: bl TradeEvolutionScene b _0805380E .align 2, 0 -_080537F4: .4byte gUnknown_300537C +_080537F4: .4byte gCB2_AfterEvolution _080537F8: .4byte sub_8053E8C _080537FC: .4byte gUnknown_2031DA4 _08053800: .4byte gPlayerParty @@ -12737,8 +12737,8 @@ _08053A94: .4byte gUnknown_826D1E4 _08053A98: .4byte SpriteCallbackDummy thumb_func_end sub_8053A0C - thumb_func_start sub_8053A9C -sub_8053A9C: @ 8053A9C + thumb_func_start GetInGameTradeSpeciesInfo +GetInGameTradeSpeciesInfo: @ 8053A9C push {r4-r6,lr} ldr r0, _08053AD0 @ =gSpecialVar_0x8004 ldrh r0, [r0] @@ -12769,7 +12769,7 @@ _08053AD4: .4byte gIngameTrades _08053AD8: .4byte gStringVar1 _08053ADC: .4byte gSpeciesNames _08053AE0: .4byte gStringVar2 - thumb_func_end sub_8053A9C + thumb_func_end GetInGameTradeSpeciesInfo thumb_func_start sub_8053AE4 sub_8053AE4: @ 8053AE4 @@ -13036,8 +13036,8 @@ _08053CEE: _08053D28: .4byte gUnknown_826D1A8 thumb_func_end sub_8053CD4 - thumb_func_start sub_8053D2C -sub_8053D2C: @ 8053D2C + thumb_func_start GetTradeSpecies +GetTradeSpecies: @ 8053D2C push {r4-r6,lr} ldr r6, _08053D58 @ =gSpecialVar_0x8005 ldrh r0, [r6] @@ -13066,10 +13066,10 @@ _08053D62: pop {r4-r6} pop {r1} bx r1 - thumb_func_end sub_8053D2C + thumb_func_end GetTradeSpecies - thumb_func_start sub_8053D68 -sub_8053D68: @ 8053D68 + thumb_func_start CreateInGameTradePokemon +CreateInGameTradePokemon: @ 8053D68 push {lr} ldr r0, _08053D7C @ =gSpecialVar_0x8005 ldrb r0, [r0] @@ -13081,7 +13081,7 @@ sub_8053D68: @ 8053D68 .align 2, 0 _08053D7C: .4byte gSpecialVar_0x8005 _08053D80: .4byte gSpecialVar_0x8004 - thumb_func_end sub_8053D68 + thumb_func_end CreateInGameTradePokemon thumb_func_start sub_8053D84 sub_8053D84: @ 8053D84 @@ -13703,7 +13703,7 @@ _0805434C: ldr r0, _08054378 @ =sub_804C718 cmp r1, r0 bne _08054384 - bl IsRfuTaskFinished + bl IsLinkRfuTaskFinished lsls r0, 24 cmp r0, 0 beq _08054396 @@ -13797,8 +13797,8 @@ _08054438: .4byte gWirelessCommType _0805443C: .4byte gMain thumb_func_end sub_80543C4 - thumb_func_start sub_8054440 -sub_8054440: @ 8054440 + thumb_func_start DoInGameTradeScene +DoInGameTradeScene: @ 8054440 push {lr} sub sp, 0x4 bl ScriptContext2_Enable @@ -13818,7 +13818,7 @@ sub_8054440: @ 8054440 bx r0 .align 2, 0 _0805446C: .4byte sub_8054470 - thumb_func_end sub_8054440 + thumb_func_end DoInGameTradeScene thumb_func_start sub_8054470 sub_8054470: @ 8054470 diff --git a/asm/trainer_card.s b/asm/trainer_card.s index 1ebda42ab..1e97ba2de 100644 --- a/asm/trainer_card.s +++ b/asm/trainer_card.s @@ -1215,7 +1215,7 @@ _080899AE: bl VarGet lsls r0, 16 lsrs r0, 16 - bl sub_8096FD4 + bl MailSpeciesToIconSpecies adds r1, r5, 0 adds r1, 0x54 strh r0, [r1] @@ -1223,7 +1223,7 @@ _080899AE: bl VarGet lsls r0, 16 lsrs r0, 16 - bl sub_8096FD4 + bl MailSpeciesToIconSpecies adds r1, r5, 0 adds r1, 0x56 strh r0, [r1] @@ -1231,7 +1231,7 @@ _080899AE: bl VarGet lsls r0, 16 lsrs r0, 16 - bl sub_8096FD4 + bl MailSpeciesToIconSpecies adds r1, r5, 0 adds r1, 0x58 strh r0, [r1] @@ -1239,7 +1239,7 @@ _080899AE: bl VarGet lsls r0, 16 lsrs r0, 16 - bl sub_8096FD4 + bl MailSpeciesToIconSpecies adds r1, r5, 0 adds r1, 0x5A strh r0, [r1] @@ -1247,7 +1247,7 @@ _080899AE: bl VarGet lsls r0, 16 lsrs r0, 16 - bl sub_8096FD4 + bl MailSpeciesToIconSpecies adds r1, r5, 0 adds r1, 0x5C strh r0, [r1] @@ -1255,7 +1255,7 @@ _080899AE: bl VarGet lsls r0, 16 lsrs r0, 16 - bl sub_8096FD4 + bl MailSpeciesToIconSpecies adds r1, r5, 0 adds r1, 0x5E strh r0, [r1] @@ -3203,7 +3203,7 @@ _0808AAA4: ldrh r0, [r1] cmp r0, 0 beq _0808AAEE - bl sub_8097218 + bl GetMonIconPaletteIndexFromSpecies lsls r0, 24 lsrs r0, 24 lsls r1, r4, 20 @@ -3250,7 +3250,7 @@ _0808AB0C: .4byte 0x00000457 sub_808AB10: @ 808AB10 push {r4,r5,lr} sub sp, 0x4 - ldr r0, _0808AB40 @ =gUnknown_83D3740 + ldr r0, _0808AB40 @ =gMonIconPalettes ldr r4, _0808AB44 @ =gUnknown_20397A4 ldr r1, [r4] ldr r5, _0808AB48 @ =0x00000396 @@ -3271,7 +3271,7 @@ sub_808AB10: @ 808AB10 beq _0808AB80 b _0808AB88 .align 2, 0 -_0808AB40: .4byte gUnknown_83D3740 +_0808AB40: .4byte gMonIconPalettes _0808AB44: .4byte gUnknown_20397A4 _0808AB48: .4byte 0x00000396 _0808AB4C: .4byte 0x000004aa @@ -3322,7 +3322,7 @@ _0808AB9A: adds r0, r1 ldrh r0, [r0] movs r1, 0 - bl sub_8097028 + bl GetMonIconTiles adds r1, r0, 0 lsls r3, r4, 20 movs r0, 0x80 diff --git a/asm/trainer_see.s b/asm/trainer_see.s index c52229215..659e96c32 100644 --- a/asm/trainer_see.s +++ b/asm/trainer_see.s @@ -87,7 +87,7 @@ sub_8081B84: @ 8081B84 _08081BC0: adds r0, r5, 0 adds r1, r6, 0 - bl TrainerWantsBattle + bl ConfigureAndSetUpOneTrainerBattle adds r0, r4, r5 lsls r0, 2 ldr r1, _08081BE0 @ =gMapObjects @@ -718,16 +718,16 @@ _0808204A: ldrb r0, [r4, 0x18] lsls r0, 28 lsrs r0, 28 - bl npc_running_behaviour_by_direction + bl GetTrainerFacingDirectionMovementType adds r1, r0, 0 lsls r1, 24 lsrs r1, 24 adds r0, r4, 0 - bl npc_set_running_behaviour_etc + bl SetTrainerMovementType ldrb r0, [r4, 0x18] lsls r0, 28 lsrs r0, 28 - bl npc_running_behaviour_by_direction + bl GetTrainerFacingDirectionMovementType adds r1, r0, 0 lsls r1, 24 lsrs r1, 24 @@ -1277,17 +1277,17 @@ _0808246E: ldrb r0, [r4, 0x18] lsls r0, 28 lsrs r0, 28 - bl npc_running_behaviour_by_direction + bl GetTrainerFacingDirectionMovementType adds r1, r0, 0 lsls r1, 24 lsrs r1, 24 adds r0, r4, 0 - bl npc_set_running_behaviour_etc + bl SetTrainerMovementType ldr r4, [sp] ldrb r0, [r4, 0x18] lsls r0, 28 lsrs r0, 28 - bl npc_running_behaviour_by_direction + bl GetTrainerFacingDirectionMovementType adds r1, r0, 0 lsls r1, 24 lsrs r1, 24 diff --git a/asm/union_room_chat.s b/asm/union_room_chat.s index 64cc9aa9f..0d1640699 100644 --- a/asm/union_room_chat.s +++ b/asm/union_room_chat.s @@ -4265,7 +4265,7 @@ sub_812A424: @ 812A424 bl PutWindowTilemap ldr r0, [r6] ldrb r0, [r0, 0x18] - ldr r2, _0812A514 @ =gUnknown_8417938 + ldr r2, _0812A514 @ =gText_Yes movs r5, 0x2 str r5, [sp] movs r4, 0xFF @@ -4276,7 +4276,7 @@ sub_812A424: @ 812A424 bl AddTextPrinterParameterized ldr r0, [r6] ldrb r0, [r0, 0x18] - ldr r2, _0812A518 @ =gUnknown_841793C + ldr r2, _0812A518 @ =gText_No movs r1, 0x10 str r1, [sp] str r4, [sp, 0x4] @@ -4314,8 +4314,8 @@ _0812A504: .4byte 0xff00ffff _0812A508: .4byte 0x00ffffff _0812A50C: .4byte 0x0000ffff _0812A510: .4byte gUnknown_203B0E4 -_0812A514: .4byte gUnknown_8417938 -_0812A518: .4byte gUnknown_841793C +_0812A514: .4byte gText_Yes +_0812A518: .4byte gText_No thumb_func_end sub_812A424 thumb_func_start sub_812A51C diff --git a/asm/wild_encounter.s b/asm/wild_encounter.s index c43ebf0a9..86e3d964f 100644 --- a/asm/wild_encounter.s +++ b/asm/wild_encounter.s @@ -878,7 +878,7 @@ _08082D78: bl sub_8058F1C lsls r0, 24 lsrs r0, 24 - bl MetatileBehavior_ReturnFalse_6 + bl MetatileBehavior_IsBridge lsls r0, 24 lsrs r0, 24 cmp r0, 0x1 @@ -932,7 +932,7 @@ _08082DFA: lsls r0, 24 cmp r0, 0 beq _08082E46 - bl sub_807F78C + bl BattleSetup_StartRoamerBattle movs r0, 0x1 b _08082E48 .align 2, 0 @@ -950,7 +950,7 @@ _08082E24: cmp r0, 0x1 bne _08082E40 _08082E38: - bl sub_807F704 + bl BattleSetup_StartWildBattle movs r0, 0x1 b _08082E48 _08082E40: @@ -966,8 +966,8 @@ _08082E48: bx r1 thumb_func_end sub_8082CBC - thumb_func_start sub_8082E54 -sub_8082E54: @ 8082E54 + thumb_func_start Special_RockSmashEncounter +Special_RockSmashEncounter: @ 8082E54 push {r4,lr} bl sub_8082934 lsls r0, 16 @@ -999,7 +999,7 @@ sub_8082E54: @ 8082E54 lsrs r4, r0, 24 cmp r4, 0x1 bne _08082EB0 - bl sub_807F704 + bl BattleSetup_StartWildBattle _08082E9C: ldr r0, _08082EAC @ =gSpecialVar_Result strh r4, [r0] @@ -1018,7 +1018,7 @@ _08082EB6: bx r0 .align 2, 0 _08082EBC: .4byte gSpecialVar_Result - thumb_func_end sub_8082E54 + thumb_func_end Special_RockSmashEncounter thumb_func_start SweetScentWildEncounter SweetScentWildEncounter: @ 8082EC0 @@ -1079,7 +1079,7 @@ _08082F1C: cmp r0, 0x1 bne _08082F44 _08082F3C: - bl sub_807F78C + bl BattleSetup_StartRoamerBattle movs r0, 0x1 b _08082F6E _08082F44: @@ -1096,7 +1096,7 @@ _08082F44: _08082F58: movs r2, 0 bl sub_8082AEC - bl sub_807F704 + bl BattleSetup_StartWildBattle movs r0, 0x1 b _08082F6E .align 2, 0 @@ -1160,7 +1160,7 @@ sub_8082FB0: @ 8082FB0 bl sub_8082B64 movs r0, 0xC bl IncrementGameStat - bl sub_807F704 + bl BattleSetup_StartWildBattle pop {r4,r5} pop {r0} bx r0 @@ -1302,14 +1302,14 @@ sub_80830B8: @ 80830B8 bl VarSet cmp r4, 0 bne _08083104 - ldr r0, _08083100 @ =gUnknown_81BFB65 + ldr r0, _08083100 @ =EventScript_1BFB65 bl ScriptContext1_SetupScript movs r0, 0x1 b _08083106 .align 2, 0 _080830F8: .4byte gUnknown_203ADFA _080830FC: .4byte 0x00004020 -_08083100: .4byte gUnknown_81BFB65 +_08083100: .4byte EventScript_1BFB65 _08083104: movs r0, 0 _08083106: diff --git a/baserom.ips b/baserom.ips index b4ea36d11..02b5aab21 100644 Binary files a/baserom.ips and b/baserom.ips differ diff --git a/common_syms/battle_main.txt b/common_syms/battle_main.txt new file mode 100644 index 000000000..36f7596e2 --- /dev/null +++ b/common_syms/battle_main.txt @@ -0,0 +1,9 @@ +gPreBattleCallback1 +gBattleMainFunc +gBattleResults +gLeveledUpInBattle +gBattlerControllerFuncs +gHealthboxSpriteIds +gMultiUsePlayerCursor +gNumberOfMovesToChoose +gUnknown_3004FFC diff --git a/common_syms/event_data.txt b/common_syms/event_data.txt new file mode 100644 index 000000000..6d9f585d7 --- /dev/null +++ b/common_syms/event_data.txt @@ -0,0 +1 @@ +gLastQuestLogStoredFlagOrVarIdx diff --git a/common_syms/field_specials.txt b/common_syms/field_specials.txt new file mode 100644 index 000000000..04599f921 --- /dev/null +++ b/common_syms/field_specials.txt @@ -0,0 +1,2 @@ +sFieldSpecialsListMenuTemplate +sFieldSpecialsListMenuScrollBuffer diff --git a/common_syms/scrcmd.txt b/common_syms/scrcmd.txt new file mode 100644 index 000000000..7fb0245af --- /dev/null +++ b/common_syms/scrcmd.txt @@ -0,0 +1 @@ +gUnknown_3005070 diff --git a/data/battle_bg.s b/data/battle_bg.s new file mode 100644 index 000000000..a6c67612e --- /dev/null +++ b/data/battle_bg.s @@ -0,0 +1,583 @@ + .include "asm/macros.inc" + .include "constants/constants.inc" + + .section .rodata + .align 2, 0 + +gUnknown_824829C:: @ 824829C + .byte 1, 2, 0 + + .align 2 +gOamData_82482A0:: + .4byte 0xc0000300, 0x00000000 + +gOamData_82482A8:: + .4byte 0xc0000300, 0x00000040 + +gUnknown_82482B0:: + obj_rot_scal_anim_frame 0x80, 0x80, 0, 0 + obj_rot_scal_anim_end + +gUnknown_82482C0:: + obj_rot_scal_anim_frame 0x80, 0x80, 0, 0 + obj_rot_scal_anim_frame 0x18, 0x18, 0, 0x80 + obj_rot_scal_anim_frame 0x18, 0x18, 0, 0x80 + obj_rot_scal_anim_end + +gAffineAnimTable_82482E0:: + .4byte gUnknown_82482B0 + .4byte gUnknown_82482C0 + +gUnknown_82482E8:: @ 82482E8 + spr_template 10000, 10000, gOamData_82482A0, gDummySpriteAnimTable, NULL, gAffineAnimTable_82482E0, nullsub_9 + +gUnknown_8248300:: @ 8248300 + spr_template 10000, 10000, gOamData_82482A8, gDummySpriteAnimTable, NULL, gAffineAnimTable_82482E0, nullsub_9 + +gUnknown_8248318:: @ 8248318 + obj_tiles gFile_graphics_battle_transitions_vs_sheet, 0x1000, 10000 + +gBattleBgTemplates:: @ 8248320 + .4byte 0x00000580 + @ { + @ .bg = 0, + @ .charBaseIndex = 0, + @ .mapBaseIndex = 24, + @ .screenSize = 2, + @ .paletteMode = 0, + @ .priority = 0, + @ .baseTile = 0x0000 + @ } + .4byte 0x000005c5 + @ { + @ .bg = 1, + @ .charBaseIndex = 1, + @ .mapBaseIndex = 28, + @ .screenSize = 2, + @ .paletteMode = 0, + @ .priority = 0, + @ .baseTile = 0x0000 + @ } + .4byte 0x000013e6 + @ { + @ .bg = 2, + @ .charBaseIndex = 1, + @ .mapBaseIndex = 30, + @ .screenSize = 1, + @ .paletteMode = 0, + @ .priority = 1, + @ .baseTile = 0x0000 + @ } + .4byte 0x000033ab + @ { + @ .bg = 3, + @ .charBaseIndex = 2, + @ .mapBaseIndex = 26, + @ .screenSize = 1, + @ .paletteMode = 0, + @ .priority = 3, + @ .baseTile = 0x0000 + @ } + +gUnknown_8248330:: @ 8248330 + .byte 0, 1, 15, 28, 4, 0 + .2byte 0x0090 + @ { + @ .bg = 0, + @ .tilemapLeft = 1, + @ .tilemapTop = 15, + @ .width = 28, + @ .height = 4, + @ .paletteNum = 0, + @ .baseBlock = 0x0090 + @ } + .byte 0, 1, 35, 14, 4, 0 + .2byte 0x01c0 + @ { + @ .bg = 0, + @ .tilemapLeft = 1, + @ .tilemapTop = 35, + @ .width = 14, + @ .height = 4, + @ .paletteNum = 0, + @ .baseBlock = 0x01c0 + @ } + .byte 0, 17, 35, 12, 4, 5 + .2byte 0x0190 + @ { + @ .bg = 0, + @ .tilemapLeft = 17, + @ .tilemapTop = 35, + @ .width = 12, + @ .height = 4, + @ .paletteNum = 5, + @ .baseBlock = 0x0190 + @ } + .byte 0, 2, 55, 8, 2, 5 + .2byte 0x0300 + @ { + @ .bg = 0, + @ .tilemapLeft = 2, + @ .tilemapTop = 55, + @ .width = 8, + @ .height = 2, + @ .paletteNum = 5, + @ .baseBlock = 0x0300 + @ } + .byte 0, 11, 55, 8, 2, 5 + .2byte 0x0310 + @ { + @ .bg = 0, + @ .tilemapLeft = 11, + @ .tilemapTop = 55, + @ .width = 8, + @ .height = 2, + @ .paletteNum = 5, + @ .baseBlock = 0x0310 + @ } + .byte 0, 2, 57, 8, 2, 5 + .2byte 0x0320 + @ { + @ .bg = 0, + @ .tilemapLeft = 2, + @ .tilemapTop = 57, + @ .width = 8, + @ .height = 2, + @ .paletteNum = 5, + @ .baseBlock = 0x0320 + @ } + .byte 0, 11, 57, 8, 2, 5 + .2byte 0x0330 + @ { + @ .bg = 0, + @ .tilemapLeft = 11, + @ .tilemapTop = 57, + @ .width = 8, + @ .height = 2, + @ .paletteNum = 5, + @ .baseBlock = 0x0330 + @ } + .byte 0, 21, 55, 3, 2, 5 + .2byte 0x0290 + @ { + @ .bg = 0, + @ .tilemapLeft = 21, + @ .tilemapTop = 55, + @ .width = 3, + @ .height = 2, + @ .paletteNum = 5, + @ .baseBlock = 0x0290 + @ } + .byte 0, 21, 57, 8, 2, 5 + .2byte 0x0296 + @ { + @ .bg = 0, + @ .tilemapLeft = 21, + @ .tilemapTop = 57, + @ .width = 8, + @ .height = 2, + @ .paletteNum = 5, + @ .baseBlock = 0x0296 + @ } + .byte 0, 24, 55, 5, 2, 5 + .2byte 0x02a6 + @ { + @ .bg = 0, + @ .tilemapLeft = 24, + @ .tilemapTop = 55, + @ .width = 5, + @ .height = 2, + @ .paletteNum = 5, + @ .baseBlock = 0x02a6 + @ } + .byte 0, 25, 57, 0, 0, 5 + .2byte 0x02b0 + @ { + @ .bg = 0, + @ .tilemapLeft = 25, + @ .tilemapTop = 57, + @ .width = 0, + @ .height = 0, + @ .paletteNum = 5, + @ .baseBlock = 0x02b0 + @ } + .byte 0, 21, 55, 8, 4, 5 + .2byte 0x02b0 + @ { + @ .bg = 0, + @ .tilemapLeft = 21, + @ .tilemapTop = 55, + @ .width = 8, + @ .height = 4, + @ .paletteNum = 5, + @ .baseBlock = 0x02b0 + @ } + .byte 1, 19, 8, 10, 11, 5 + .2byte 0x0100 + @ { + @ .bg = 1, + @ .tilemapLeft = 19, + @ .tilemapTop = 8, + @ .width = 10, + @ .height = 11, + @ .paletteNum = 5, + @ .baseBlock = 0x0100 + @ } + .byte 2, 18, 0, 12, 3, 6 + .2byte 0x016e + @ { + @ .bg = 2, + @ .tilemapLeft = 18, + @ .tilemapTop = 0, + @ .width = 12, + @ .height = 3, + @ .paletteNum = 6, + @ .baseBlock = 0x016e + @ } + .byte 0, 25, 9, 4, 4, 5 + .2byte 0x0100 + @ { + @ .bg = 0, + @ .tilemapLeft = 25, + @ .tilemapTop = 9, + @ .width = 4, + @ .height = 4, + @ .paletteNum = 5, + @ .baseBlock = 0x0100 + @ } + .byte 1, 2, 3, 7, 2, 5 + .2byte 0x0020 + @ { + @ .bg = 1, + @ .tilemapLeft = 2, + @ .tilemapTop = 3, + @ .width = 7, + @ .height = 2, + @ .paletteNum = 5, + @ .baseBlock = 0x0020 + @ } + .byte 2, 2, 3, 7, 2, 5 + .2byte 0x0040 + @ { + @ .bg = 2, + @ .tilemapLeft = 2, + @ .tilemapTop = 3, + @ .width = 7, + @ .height = 2, + @ .paletteNum = 5, + @ .baseBlock = 0x0040 + @ } + .byte 1, 2, 2, 7, 2, 5 + .2byte 0x0020 + @ { + @ .bg = 1, + @ .tilemapLeft = 2, + @ .tilemapTop = 2, + @ .width = 7, + @ .height = 2, + @ .paletteNum = 5, + @ .baseBlock = 0x0020 + @ } + .byte 2, 2, 2, 7, 2, 5 + .2byte 0x0040 + @ { + @ .bg = 2, + @ .tilemapLeft = 2, + @ .tilemapTop = 2, + @ .width = 7, + @ .height = 2, + @ .paletteNum = 5, + @ .baseBlock = 0x0040 + @ } + .byte 1, 2, 6, 7, 2, 5 + .2byte 0x0060 + @ { + @ .bg = 1, + @ .tilemapLeft = 2, + @ .tilemapTop = 6, + @ .width = 7, + @ .height = 2, + @ .paletteNum = 5, + @ .baseBlock = 0x0060 + @ } + .byte 2, 2, 6, 7, 2, 5 + .2byte 0x0080 + @ { + @ .bg = 2, + @ .tilemapLeft = 2, + @ .tilemapTop = 6, + @ .width = 7, + @ .height = 2, + @ .paletteNum = 5, + @ .baseBlock = 0x0080 + @ } + .byte 0, 11, 2, 8, 2, 0 + .2byte 0x00a0 + @ { + @ .bg = 0, + @ .tilemapLeft = 11, + @ .tilemapTop = 2, + @ .width = 8, + @ .height = 2, + @ .paletteNum = 0, + @ .baseBlock = 0x00a0 + @ } + .byte 0, 4, 2, 8, 2, 0 + .2byte 0x00a0 + @ { + @ .bg = 0, + @ .tilemapLeft = 4, + @ .tilemapTop = 2, + @ .width = 8, + @ .height = 2, + @ .paletteNum = 0, + @ .baseBlock = 0x00a0 + @ } + .byte 0, 19, 2, 8, 2, 0 + .2byte 0x00b0 + @ { + @ .bg = 0, + @ .tilemapLeft = 19, + @ .tilemapTop = 2, + @ .width = 8, + @ .height = 2, + @ .paletteNum = 0, + @ .baseBlock = 0x00b0 + @ } + .byte 0, 2, 15, 26, 4, 7 + .2byte 0x0090 + @ { + @ .bg = 0, + @ .tilemapLeft = 2, + @ .tilemapTop = 15, + @ .width = 26, + @ .height = 4, + @ .paletteNum = 7, + @ .baseBlock = 0x0090 + @ } + .byte 255, 0, 0, 0, 0, 0 + .2byte 0x0000 + @ { + @ .bg = 255, + @ .tilemapLeft = 0, + @ .tilemapTop = 0, + @ .width = 0, + @ .height = 0, + @ .paletteNum = 0, + @ .baseBlock = 0x0000 + @ } + +gUnknown_8248400:: @ 8248400 + .incbin "graphics/battle/unk_8248400.gbapal.lz" + +gUnknown_824844C:: @ 824844C + .incbin "graphics/battle/unk_824844C.4bpp.lz" + +gUnknown_82489A8:: @ 82489A8 + .incbin "graphics/battle/unk_82489A8.bin.lz" + +gUnknown_8248C68:: @ 8248C68 + .incbin "graphics/battle/unk_8248C68.4bpp.lz" + +gUnknown_8248F58:: @ 8248F58 + .incbin "graphics/battle/unk_8248F58.bin.lz" + +gUnknown_8249074:: @ 8249074 + .incbin "graphics/battle/unk_8249074.gbapal.lz" + +gUnknown_82490C4:: @ 82490C4 + .incbin "graphics/battle/unk_82490C4.4bpp.lz" + +gUnknown_8249620:: @ 8249620 + .incbin "graphics/battle/unk_8249620.bin.lz" + +gUnknown_82498DC:: @ 82498DC + .incbin "graphics/battle/unk_82498DC.4bpp.lz" + +gUnknown_8249E10:: @ 8249E10 + .incbin "graphics/battle/unk_8249E10.bin.lz" + +gUnknown_8249F98:: @ 8249F98 + .incbin "graphics/battle/unk_8249F98.gbapal.lz" + +gUnknown_8249FE4:: @ 8249FE4 + .incbin "graphics/battle/unk_8249FE4.4bpp.lz" + +gUnknown_824A37C:: @ 824A37C + .incbin "graphics/battle/unk_824A37C.bin.lz" + +gUnknown_824A618:: @ 824A618 + .incbin "graphics/battle/unk_824A618.4bpp.lz" + +gUnknown_824A844:: @ 824A844 + .incbin "graphics/battle/unk_824A844.bin.lz" + +gUnknown_824A940:: @ 824A940 + .incbin "graphics/battle/unk_824A940.gbapal.lz" + +gUnknown_824A990:: @ 824A990 + .incbin "graphics/battle/unk_824A990.4bpp.lz" + +gUnknown_824ACD0:: @ 824ACD0 + .incbin "graphics/battle/unk_824ACD0.bin.lz" + +gUnknown_824AF70:: @ 824AF70 + .incbin "graphics/battle/unk_824AF70.4bpp.lz" + +gUnknown_824B0DC:: @ 824B0DC + .incbin "graphics/battle/unk_824B0DC.bin.lz" + +gUnknown_824B19C:: @ 824B19C + .incbin "graphics/battle/unk_824B19C.gbapal.lz" + +gUnknown_824B1EC:: @ 824B1EC + .incbin "graphics/battle/unk_824B1EC.4bpp.lz" + +gUnknown_824B608:: @ 824B608 + .incbin "graphics/battle/unk_824B608.bin.lz" + +gUnknown_824B8A8:: @ 824B8A8 + .incbin "graphics/battle/unk_824B8A8.4bpp.lz" + +gUnknown_824BBE0:: @ 824BBE0 + .incbin "graphics/battle/unk_824BBE0.bin.lz" + +gUnknown_824BCE0:: @ 824BCE0 + .incbin "graphics/battle/unk_824BCE0.gbapal.lz" + +gUnknown_824BD38:: @ 824BD38 + .incbin "graphics/battle/unk_824BD38.4bpp.lz" + +gUnknown_824C07C:: @ 824C07C + .incbin "graphics/battle/unk_824C07C.bin.lz" + +gUnknown_824C314:: @ 824C314 + .incbin "graphics/battle/unk_824C314.4bpp.lz" + +gUnknown_824C520:: @ 824C520 + .incbin "graphics/battle/unk_824C520.bin.lz" + +gUnknown_824C5D8:: @ 824C5D8 + .incbin "graphics/battle/unk_824C5D8.gbapal.lz" + +gUnknown_824C624:: @ 824C624 + .incbin "graphics/battle/unk_824C624.4bpp.lz" + +gUnknown_824C958:: @ 824C958 + .incbin "graphics/battle/unk_824C958.bin.lz" + +gUnknown_824CBF8:: @ 824CBF8 + .incbin "graphics/battle/unk_824CBF8.4bpp.lz" + +gUnknown_824CEC8:: @ 824CEC8 + .incbin "graphics/battle/unk_824CEC8.bin.lz" + +gUnknown_824CF98:: @ 824CF98 + .incbin "graphics/battle/unk_824CF98.gbapal.lz" + +gUnknown_824CFEC:: @ 824CFEC + .incbin "graphics/battle/unk_824CFEC.4bpp.lz" + +gUnknown_824D418:: @ 824D418 + .incbin "graphics/battle/unk_824D418.bin.lz" + +gUnknown_824D6B8:: @ 824D6B8 + .incbin "graphics/battle/unk_824D6B8.4bpp.lz" + +gUnknown_824DC98:: @ 824DC98 + .incbin "graphics/battle/unk_824DC98.bin.lz" + +gUnknown_824DDF0:: @ 824DDF0 + .incbin "graphics/battle/unk_824DDF0.gbapal.lz" + +gUnknown_824DE34:: @ 824DE34 + .incbin "graphics/battle/unk_824DE34.4bpp.lz" + +gUnknown_824E16C:: @ 824E16C + .incbin "graphics/battle/unk_824E16C.bin.lz" + +gUnknown_824E410:: @ 824E410 + .incbin "graphics/battle/unk_824E410.4bpp.lz" + +gUnknown_824E490:: @ 824E490 + .incbin "graphics/battle/unk_824E490.bin.lz" + +gUnknown_824E528:: @ 824E528 + .incbin "graphics/battle/unk_824E528.gbapal.lz" + +gUnknown_824E56C:: @ 824E56C + .incbin "graphics/battle/unk_824E56C.gbapal.lz" + +gUnknown_824E5B8:: @ 824E5B8 + .incbin "graphics/battle/unk_824E5B8.gbapal.lz" + +gUnknown_824E604:: @ 824E604 + .incbin "graphics/battle/unk_824E604.gbapal.lz" + +gUnknown_824E650:: @ 824E650 + .incbin "graphics/battle/unk_824E650.gbapal.lz" + +gUnknown_824E6A4:: @ 824E6A4 + .incbin "graphics/battle/unk_824E6A4.gbapal.lz" + +gUnknown_824E6F0:: @ 824E6F0 + .incbin "graphics/battle/unk_824E6F0.gbapal.lz" + +gUnknown_824E740:: @ 824E740 + .incbin "graphics/battle/unk_824E740.gbapal.lz" + +gUnknown_824E78C:: @ 824E78C + .incbin "graphics/battle/unk_824E78C.gbapal.lz" + +gUnknown_824E7DC:: @ 824E7DC + .incbin "graphics/battle/unk_824E7DC.gbapal.lz" + +gUnknown_824E81C:: @ 824E81C + .incbin "graphics/battle/unk_824E81C.gbapal.lz" + +gUnknown_824E858:: @ 824E858 + .incbin "graphics/battle/unk_824E858.4bpp.lz" + +gUnknown_824EB90:: @ 824EB90 + .incbin "graphics/battle/unk_824EB90.bin.lz" + +gUnknown_824EE34:: @ 824EE34 + .4byte gUnknown_824844C, gUnknown_82489A8, gUnknown_8248C68, gUnknown_8248F58, gUnknown_8248400 + .4byte gUnknown_82490C4, gUnknown_8249620, gUnknown_82498DC, gUnknown_8249E10, gUnknown_8249074 + .4byte gUnknown_8249FE4, gUnknown_824A37C, gUnknown_824A618, gUnknown_824A844, gUnknown_8249F98 + .4byte gUnknown_824A990, gUnknown_824ACD0, gUnknown_824AF70, gUnknown_824B0DC, gUnknown_824A940 + .4byte gUnknown_824B1EC, gUnknown_824B608, gUnknown_824B8A8, gUnknown_824BBE0, gUnknown_824B19C + .4byte gUnknown_824BD38, gUnknown_824C07C, gUnknown_824C314, gUnknown_824C520, gUnknown_824BCE0 + .4byte gUnknown_824C624, gUnknown_824C958, gUnknown_824CBF8, gUnknown_824CEC8, gUnknown_824C5D8 + .4byte gUnknown_824CFEC, gUnknown_824D418, gUnknown_824D6B8, gUnknown_824DC98, gUnknown_824CF98 + .4byte gUnknown_824DE34, gUnknown_824E16C, gUnknown_824E410, gUnknown_824E490, gUnknown_824DDF0 + .4byte gUnknown_824DE34, gUnknown_824E16C, gUnknown_824E410, gUnknown_824E490, gUnknown_824E81C + .4byte gUnknown_824DE34, gUnknown_824E16C, gUnknown_824E410, gUnknown_824E490, gUnknown_824E528 + .4byte gUnknown_824DE34, gUnknown_824E16C, gUnknown_824E410, gUnknown_824E490, gUnknown_824E56C + .4byte gUnknown_824DE34, gUnknown_824E16C, gUnknown_824E410, gUnknown_824E490, gUnknown_824E5B8 + .4byte gUnknown_824E858, gUnknown_824EB90, gUnknown_824E410, gUnknown_824E490, gUnknown_824E604 + .4byte gUnknown_824E858, gUnknown_824EB90, gUnknown_824E410, gUnknown_824E490, gUnknown_824E650 + .4byte gUnknown_824E858, gUnknown_824EB90, gUnknown_824E410, gUnknown_824E490, gUnknown_824E6A4 + .4byte gUnknown_824E858, gUnknown_824EB90, gUnknown_824E410, gUnknown_824E490, gUnknown_824E6F0 + .4byte gUnknown_824E858, gUnknown_824EB90, gUnknown_824E410, gUnknown_824E490, gUnknown_824E740 + .4byte gUnknown_824E858, gUnknown_824EB90, gUnknown_824E410, gUnknown_824E490, gUnknown_824E78C + .4byte gUnknown_824E858, gUnknown_824EB90, gUnknown_824E410, gUnknown_824E490, gUnknown_824E7DC + +@ struct {u8; u8;} +gUnknown_824EFC4:: @ 824EFC4 + .byte 0x01, 0x0b + .align 2 + .byte 0x02, 0x0e + .align 2 + .byte 0x03, 0x0d + .align 2 + .byte 0x04, 0x0f + .align 2 + .byte 0x05, 0x10 + .align 2 + .byte 0x06, 0x11 + .align 2 + .byte 0x07, 0x12 + .align 2 + .byte 0x08, 0x0a + .align 2 diff --git a/data/battle_interface.s b/data/battle_interface.s new file mode 100644 index 000000000..f7072c3e7 --- /dev/null +++ b/data/battle_interface.s @@ -0,0 +1,164 @@ +#include "constants/region_map.h" +#include "constants/trainer_classes.h" +#include "constants/songs.h" +#include "constants/flags.h" +#include "constants/region_map.h" +#include "constants/maps.h" +#define RGB(r, g, b) ((r) | ((g) << 5) | ((b) << 10)) + .include "asm/macros.inc" + .include "constants/constants.inc" + + .section .rodata + .align 2, 0 + +gUnknown_8260270:: @ 8260270 + .4byte 0xc0004000, 0x00000400 + +gUnknown_8260278:: @ 8260278 + spr_template 55039, 55039, gUnknown_8260270, gDummySpriteAnimTable, NULL, gDummySpriteAffineAnimTable, SpriteCallbackDummy + spr_template 55040, 55039, gUnknown_8260270, gDummySpriteAnimTable, NULL, gDummySpriteAffineAnimTable, SpriteCallbackDummy + +gUnknown_82602A8:: @ 82602A8 + spr_template 55041, 55039, gUnknown_8260270, gDummySpriteAnimTable, NULL, gDummySpriteAffineAnimTable, SpriteCallbackDummy + spr_template 55042, 55039, gUnknown_8260270, gDummySpriteAnimTable, NULL, gDummySpriteAffineAnimTable, SpriteCallbackDummy + +gUnknown_82602D8:: @ 82602D8 + spr_template 55051, 55039, gUnknown_8260270, gDummySpriteAnimTable, NULL, gDummySpriteAffineAnimTable, SpriteCallbackDummy + +gUnknown_82602F0:: + .4byte 0x40004000, 0x00000400 + +gUnknown_82602F8:: @ 82602F8 + spr_template 55044, 55044, gUnknown_82602F0, gDummySpriteAnimTable, NULL, gDummySpriteAffineAnimTable, sub_80480B8 + spr_template 55045, 55044, gUnknown_82602F0, gDummySpriteAnimTable, NULL, gDummySpriteAffineAnimTable, sub_80480B8 + spr_template 55046, 55044, gUnknown_82602F0, gDummySpriteAnimTable, NULL, gDummySpriteAffineAnimTable, sub_80480B8 + spr_template 55047, 55044, gUnknown_82602F0, gDummySpriteAnimTable, NULL, gDummySpriteAffineAnimTable, sub_80480B8 + +gUnknown_8260358:: + subsprite 240, 0, 1, 0x0000, 64x32 + subsprite 48, 0, 1, 0x0020, 32x32 + subsprite 240, 32, 1, 0x0030, 32x8 + subsprite 16, 32, 1, 0x0034, 32x8 + subsprite 48, 32, 1, 0x0038, 32x8 + +gUnknown_826036C:: + subsprite 240, 0, 1, 0x0040, 64x32 + subsprite 48, 0, 1, 0x0060, 32x32 + subsprite 240, 32, 1, 0x0070, 32x8 + subsprite 16, 32, 1, 0x0074, 32x8 + subsprite 48, 32, 1, 0x0078, 32x8 + +gUnknown_8260380:: + subsprite 240, 0, 1, 0x0000, 64x32 + subsprite 48, 0, 1, 0x0020, 32x32 + +gUnknown_8260388:: + subsprite 240, 0, 1, 0x0000, 64x32 + subsprite 48, 0, 1, 0x0020, 32x32 + +gUnknown_8260390:: + subsprite 240, 0, 1, 0x0000, 32x8 + subsprite 16, 0, 1, 0x0004, 32x8 + +gUnknown_8260398:: + subsprite 240, 0, 1, 0x0000, 32x8 + subsprite 16, 0, 1, 0x0004, 32x8 + subsprite 224, 0, 1, 0x0008, 8x8 + +gUnknown_82603A4:: + .4byte 5, gUnknown_8260358 + .4byte 2, gUnknown_8260380 + .4byte 5, gUnknown_826036C + .4byte 2, gUnknown_8260388 + +gUnknown_82603C4:: @ 82603C4 + .4byte 2, gUnknown_8260390 + .4byte 3, gUnknown_8260398 + +gUnknown_82603D4:: + subsprite 160, 0, 1, 0x0000, 32x8 + subsprite 192, 0, 1, 0x0004, 32x8 + subsprite 224, 0, 1, 0x0008, 32x8 + subsprite 0, 0, 1, 0x000c, 32x8 + +gUnknown_82603E4:: + subsprite 160, 0, 1, 0x0000, 32x8 + subsprite 192, 0, 1, 0x0004, 32x8 + subsprite 224, 0, 1, 0x0008, 32x8 + subsprite 0, 0, 1, 0x0008, 32x8 + subsprite 32, 0, 1, 0x0008, 32x8 + subsprite 64, 0, 1, 0x000c, 32x8 + +gUnknown_82603FC:: @ 82603FC + .4byte 4, gUnknown_82603D4 + +gUnknown_8260404:: @ 8260404 + .4byte 6, gUnknown_82603E4 + +gUnknown_26040C:: + .incbin "graphics/battle_interface/unk_826404C.4bpp" + +gUnknown_826046C:: @ 826046C + obj_tiles gFile_graphics_battle_interface_ball_status_bar_sheet, 0x0200, 55052 + obj_tiles gFile_graphics_battle_interface_ball_status_bar_sheet, 0x0200, 55053 + +gUnknown_826047C:: @ 826047C + obj_pal gBattleInterface_BallStatusBarPal, 55056 + obj_pal gBattleInterface_BallStatusBarPal, 55057 + +gUnknown_826048C:: @ 826048C + obj_pal gBattleInterface_BallDisplayPal, 55058 + obj_pal gBattleInterface_BallDisplayPal, 55059 + +gUnknown_826049C:: @ 826049C + obj_tiles gUnknown_8D12404, 0x0080, 55060 + obj_tiles gUnknown_8D12404, 0x0080, 55061 + +gUnknown_82604AC:: + .4byte 0xc0004000, 0x00000400 + +gUnknown_82604B4:: + .4byte 0x00000000, 0x00000400 + +gUnknown_82604BC:: @ 82604BC + spr_template 55052, 55056, gUnknown_8260270, gDummySpriteAnimTable, NULL, gDummySpriteAffineAnimTable, SpriteCB_StatusSummaryBar + spr_template 55053, 55057, gUnknown_8260270, gDummySpriteAnimTable, NULL, gDummySpriteAffineAnimTable, SpriteCB_StatusSummaryBar + +gUnknown_82604EC:: @ 82604EC + spr_template 55060, 55058, gUnknown_82604B4, gDummySpriteAnimTable, NULL, gDummySpriteAffineAnimTable, SpriteCB_StatusSummaryBallsOnBattleStart + spr_template 55061, 55059, gUnknown_82604B4, gDummySpriteAnimTable, NULL, gDummySpriteAffineAnimTable, SpriteCB_StatusSummaryBallsOnBattleStart + +gUnknown_826051C:: @ 826051C + .string "{EXTRA_LV}$", 16 + +gUnknown_826052C:: @ 826052C + .string "{COLOR 01}{HIGHLIGHT 02}", 20 + +gUnknown_8260540:: @ 8260540 + .string "/$" + +gUnknown_8260542:: @ 8260542 + .string "{COLOR 01}{HIGHLIGHT 00}", 20 + +gUnknown_8260556:: @ 8260556 + .string "{HIGHLIGHT 02}$" + +gUnknown_826055A:: @ 826055A + .2byte RGB(24, 12, 24) + .2byte RGB(23, 23, 3) + .2byte RGB(20, 20, 17) + .2byte RGB(17, 22, 28) + .2byte RGB(28, 14, 10) + +gUnknown_8260564:: @ 8260564 + .byte 0, 0, 0, 8, 2, 0 + .2byte 0x0000 + @ { + @ .bg = 0, + @ .tilemapLeft = 0, + @ .tilemapTop = 0, + @ .width = 8, + @ .height = 2, + @ .paletteNum = 0, + @ .baseBlock = 0x0000 + @ } diff --git a/data/battle_scripts_1.s b/data/battle_scripts_1.s index 0fd65d2e0..8c049f4e0 100644 --- a/data/battle_scripts_1.s +++ b/data/battle_scripts_1.s @@ -42,46 +42,46 @@ BattleScript_GiveExp:: @ 81D8694 BattleScript_HandleFaintedMon:: @ 81D869D .incbin "baserom.gba", 0x1D869D, 0x152 -gUnknown_81D87EF:: @ 81D87EF +BattleScript_LocalTrainerBattleWon:: @ 81D87EF .incbin "baserom.gba", 0x1D87EF, 0x14 -gUnknown_81D8803:: @ 81D8803 +BattleScript_PayDayMoneyAndPickUpItems:: @ 81D8803 .incbin "baserom.gba", 0x1D8803, 0x3 -gUnknown_81D8806:: @ 81D8806 +BattleScript_LocalBattleLost:: @ 81D8806 .incbin "baserom.gba", 0x1D8806, 0xC6 -gUnknown_81D88CC:: @ 81D88CC +BattleScript_LinkBattleWonOrLost:: @ 81D88CC .incbin "baserom.gba", 0x1D88CC, 0xB gUnknown_81D88D7:: @ 81D88D7 .incbin "baserom.gba", 0x1D88D7, 0x2A -gUnknown_81D8901:: @ 81D8901 +BattleScript_SmokeBallEscape:: @ 81D8901 .incbin "baserom.gba", 0x1D8901, 0xE -gUnknown_81D890F:: @ 81D890F +BattleScript_RanAwayUsingMonAbility:: @ 81D890F .incbin "baserom.gba", 0x1D890F, 0x7 -gUnknown_81D8916:: @ 81D8916 +BattleScript_GotAwaySafely:: @ 81D8916 .incbin "baserom.gba", 0x1D8916, 0x7 -gUnknown_81D891D:: @ 81D891D +BattleScript_WildMonFled:: @ 81D891D .incbin "baserom.gba", 0x1D891D, 0x7 -gUnknown_81D8924:: @ 81D8924 +BattleScript_PrintCantRunFromTrainer:: @ 81D8924 .incbin "baserom.gba", 0x1D8924, 0x16 -gUnknown_81D893A:: @ 81D893A +BattleScript_PrintFailedToRunString:: @ 81D893A .incbin "baserom.gba", 0x1D893A, 0x9 -gUnknown_81D8943:: @ 81D8943 +BattleScript_PrintCantEscapeFromBattle:: @ 81D8943 .incbin "baserom.gba", 0x1D8943, 0x6 -gUnknown_81D8949:: @ 81D8949 +BattleScript_PrintFullBox:: @ 81D8949 .incbin "baserom.gba", 0x1D8949, 0x4 -gUnknown_81D894D:: @ 81D894D +BattleScript_ActionSwitch:: @ 81D894D .incbin "baserom.gba", 0x1D894D, 0xA4 BattleScript_Pausex20:: @ 81D89F1 @@ -237,7 +237,7 @@ BattleScript_OneHitKOMsg:: @ 81D8FE4 BattleScript_SAtkDown2:: @ 81D8FEB .incbin "baserom.gba", 0x1D8FEB, 0x2A -gUnknown_81D9015:: @ 81D9015 +BattleScript_FocusPunchSetUp:: @ 81D9015 .incbin "baserom.gba", 0x1D9015, 0x14 BattleScript_MoveUsedIsAsleep:: @ 81D9029 @@ -549,7 +549,7 @@ BattleScript_BerryStatRaiseEnd2:: @ 81D9679 BattleScript_BerryFocusEnergyEnd2:: @ 81D9694 .incbin "baserom.gba", 0x1D9694, 0x10 -gUnknown_81D96A4:: @ 81D96A4 +BattleScript_ActionSelectionItemsCantBeUsed:: @ 81D96A4 .incbin "baserom.gba", 0x1D96A4, 0x4 BattleScript_FlushMessageBox:: @ 81D96A8 diff --git a/data/battle_scripts_2.s b/data/battle_scripts_2.s index c3747cd8d..199fd0c78 100644 --- a/data/battle_scripts_2.s +++ b/data/battle_scripts_2.s @@ -1,15 +1,15 @@ .section script_data, "aw", %progbits -gUnknown_81D99B0:: @ 81D99B0 +gBattlescriptsForBallThrow:: @ 81D99B0 .incbin "baserom.gba", 0x1D99B0, 0x34 -gUnknown_81D99E4:: @ 81D99E4 +gBattlescriptsForUsingItem:: @ 81D99E4 .incbin "baserom.gba", 0x1D99E4, 0x18 -gUnknown_81D99FC:: @ 81D99FC +gBattlescriptsForRunningByItem:: @ 81D99FC .incbin "baserom.gba", 0x1D99FC, 0x8 -gUnknown_81D9A04:: @ 81D9A04 +gBattlescriptsForSafariActions:: @ 81D9A04 .incbin "baserom.gba", 0x1D9A04, 0x3E BattleScript_SuccessBallThrow:: @ 81D9A42 diff --git a/data/data.s b/data/data.s deleted file mode 100644 index 0b99ba48c..000000000 --- a/data/data.s +++ /dev/null @@ -1,546 +0,0 @@ -#include "constants/region_map.h" -#include "constants/trainer_classes.h" -#include "constants/songs.h" -#include "constants/region_map.h" -#include "constants/species.h" -#include "constants/items.h" -#include "constants/easy_chat.h" - .include "asm/macros.inc" - .include "constants/constants.inc" - - .section .rodata - - .align 2 -gUnknown_8234698:: @ 8234698 - .incbin "baserom.gba", 0x234698, 0x20 - -gUnknown_82346B8:: @ 82346B8 - .incbin "baserom.gba", 0x2346B8, 0x20 - -gUnknown_82346D8:: @ 82346D8 - .incbin "baserom.gba", 0x2346D8, 0x20 - -gUnknown_82346F8:: @ 82346F8 - .incbin "baserom.gba", 0x2346F8, 0x20 - -gUnknown_8234718:: @ 8234718 - .incbin "baserom.gba", 0x234718, 0x28 - -gUnknown_8234740:: @ 8234740 - .incbin "baserom.gba", 0x234740, 0x28 - -gUnknown_8234768:: @ 8234768 - .incbin "baserom.gba", 0x234768, 0x20 - -gUnknown_8234788:: @ 8234788 - .incbin "baserom.gba", 0x234788, 0x20 - -gUnknown_82347A8:: @ 82347A8 - .incbin "baserom.gba", 0x2347A8, 0x20 - -gUnknown_82347C8:: @ 82347C8 - .incbin "baserom.gba", 0x2347C8, 0x20 - -gUnknown_82347E8:: @ 82347E8 - .incbin "baserom.gba", 0x2347E8, 0xE0 - -gUnknown_82348C8:: @ 82348C8 - .incbin "baserom.gba", 0x2348C8, 0x24 - -gUnknown_82348EC:: @ 82348EC - .incbin "baserom.gba", 0x2348EC, 0x58 - -gUnknown_8234944:: @ 8234944 - .incbin "baserom.gba", 0x234944, 0x58 - -gUnknown_823499C:: @ 823499C - .incbin "baserom.gba", 0x23499C, 0x20 - -gUnknown_82349BC:: @ 82349BC - .incbin "baserom.gba", 0x2349BC, 0x10 - -gMonFrontPicCoords:: @ 82349CC - .incbin "baserom.gba", 0x2349CC, 0x6E0 - -gMonFrontPicTable:: @ 82350AC - .incbin "baserom.gba", 0x2350AC, 0xE8 - -gUnknown_8235194:: @ 8235194 - .incbin "baserom.gba", 0x235194, 0xCD8 - -gMonBackPicCoords:: @ 8235E6C - .incbin "baserom.gba", 0x235E6C, 0x6E0 - -gMonBackPicTable:: @ 823654C - .incbin "baserom.gba", 0x23654C, 0xDC0 - -gMonPaletteTable:: @ 823730C - .incbin "baserom.gba", 0x23730C, 0xE8 - -gUnknown_82373F4:: @ 82373F4 - .incbin "baserom.gba", 0x2373F4, 0xCD8 - -gMonShinyPaletteTable:: @ 82380CC - .incbin "baserom.gba", 0x2380CC, 0x1010 - -gTrainerFrontAnimsPtrTable:: @ 82390DC - .incbin "baserom.gba", 0x2390DC, 0x250 - -gTrainerFrontPicCoords:: @ 823932C - .incbin "baserom.gba", 0x23932C, 0x250 - -gTrainerFrontPicTable:: @ 823957C - .incbin "baserom.gba", 0x23957C, 0x4A0 - -gTrainerFrontPicPaletteTable:: @ 8239A1C - .incbin "baserom.gba", 0x239A1C, 0x558 - -gTrainerBackAnimsPtrTable:: @ 8239F74 - .incbin "baserom.gba", 0x239F74, 0x18 - -gTrainerBackPicCoords:: @ 8239F8C - .incbin "baserom.gba", 0x239F8C, 0x18 - -gTrainerBackPicTable:: @ 8239FA4 - .incbin "baserom.gba", 0x239FA4, 0x30 - -gTrainerBackPicPaletteTable:: @ 8239FD4 - .incbin "baserom.gba", 0x239FD4, 0x30 - -gEnemyMonElevation:: @ 823A004 - .incbin "baserom.gba", 0x23A004, 0x4554 - -gTrainerClassNames:: @ 823E558 - .include "data/text/trainer_class_names.inc" - - .align 2, 0 -gTrainers:: @ 823EAD8 - .incbin "baserom.gba", 0x23EAC8, 0x7418 - -gSpeciesNames:: @ 8245EE0 - .include "data/text/species_names.inc" - -gMoveNames:: @ 8247094 - .incbin "baserom.gba", 0x247094, 0xF97 - -gUnknown_824802B:: @ 824802B - .incbin "baserom.gba", 0x24802B, 0xD - -gUnknown_8248038:: @ 8248038 - .incbin "baserom.gba", 0x248038, 0x186 - -gUnknown_82481BE:: @ 82481BE - .incbin "baserom.gba", 0x2481BE, 0x12A - -gUnknown_82482E8:: @ 82482E8 - .incbin "baserom.gba", 0x2482E8, 0x18 - -gUnknown_8248300:: @ 8248300 - .incbin "baserom.gba", 0x248300, 0x18 - -gUnknown_8248318:: @ 8248318 - .incbin "baserom.gba", 0x248318, 0x8 - -gUnknown_8248320:: @ 8248320 - .incbin "baserom.gba", 0x248320, 0x10 - -gUnknown_8248330:: @ 8248330 - .incbin "baserom.gba", 0x248330, 0x6B04 - -gUnknown_824EE34:: @ 824EE34 - .incbin "baserom.gba", 0x24EE34, 0x190 - -gUnknown_824EFC4:: @ 824EFC4 - .incbin "baserom.gba", 0x24EFC4, 0x20 - -gUnknown_824EFE4:: @ 824EFE4 - .incbin "baserom.gba", 0x24EFE4, 0xC - -gUnknown_824EFF0:: @ 824EFF0 - .incbin "baserom.gba", 0x24EFF0, 0x18 - -gUnknown_824F008:: @ 824F008 - .incbin "baserom.gba", 0x24F008, 0x8 - -gUnknown_824F010:: @ 824F010 - .incbin "baserom.gba", 0x24F010, 0x8 - -gUnknown_824F018:: @ 824F018 - .incbin "baserom.gba", 0x24F018, 0x8 - -gUnknown_824F020:: @ 824F020 - .incbin "baserom.gba", 0x24F020, 0x28 - -gUnknown_824F048:: @ 824F048 - .incbin "baserom.gba", 0x24F048, 0x8 - -gTypeEffectiveness:: @ 824F050 - .incbin "baserom.gba", 0x24F050, 0x150 - -gTypeNames:: @ 824F1A0 - .incbin "baserom.gba", 0x24F1A0, 0x80 - -gTrainerMoneyTable:: @ 824F220 - .incbin "baserom.gba", 0x24F220, 0x8E8 - -gUnknown_824FB08:: @ 824FB08 - .incbin "baserom.gba", 0x24FB08, 0x138 - -gUnknown_824FC40:: @ 824FC40 - .incbin "baserom.gba", 0x24FC40, 0x3F8 - -gUnknown_8250038:: @ 8250038 - .incbin "baserom.gba", 0x250038, 0x38 - -gUnknown_8250070:: @ 8250070 - .incbin "baserom.gba", 0x250070, 0x24 - -gStatusConditionString_PoisonJpn:: @ 8250094 - .incbin "baserom.gba", 0x250094, 0x8 - -gStatusConditionString_SleepJpn:: @ 825009C - .incbin "baserom.gba", 0x25009C, 0x8 - -gStatusConditionString_ParalysisJpn:: @ 82500A4 - .incbin "baserom.gba", 0x2500A4, 0x8 - -gStatusConditionString_BurnJpn:: @ 82500AC - .incbin "baserom.gba", 0x2500AC, 0x8 - -gStatusConditionString_IceJpn:: @ 82500B4 - .incbin "baserom.gba", 0x2500B4, 0x8 - -gStatusConditionString_ConfusionJpn:: @ 82500BC - .incbin "baserom.gba", 0x2500BC, 0x8 - -gStatusConditionString_LoveJpn:: @ 82500C4 - .incbin "baserom.gba", 0x2500C4, 0x8 - -gUnknown_82500CC:: @ 82500CC - .incbin "baserom.gba", 0x2500CC, 0x38 - - .section .rodata.8260270 - -gUnknown_8260270:: @ 8260270 - .incbin "baserom.gba", 0x260270, 0x8 - -gUnknown_8260278:: @ 8260278 - .incbin "baserom.gba", 0x260278, 0x30 - -gUnknown_82602A8:: @ 82602A8 - .incbin "baserom.gba", 0x2602A8, 0x30 - -gUnknown_82602D8:: @ 82602D8 - .incbin "baserom.gba", 0x2602D8, 0x20 - -gUnknown_82602F8:: @ 82602F8 - .incbin "baserom.gba", 0x2602F8, 0xCC - -gUnknown_82603C4:: @ 82603C4 - .incbin "baserom.gba", 0x2603C4, 0x38 - -gUnknown_82603FC:: @ 82603FC - .incbin "baserom.gba", 0x2603FC, 0x8 - -gUnknown_8260404:: @ 8260404 - .incbin "baserom.gba", 0x260404, 0x68 - -gUnknown_826046C:: @ 826046C - .incbin "baserom.gba", 0x26046C, 0x10 - -gUnknown_826047C:: @ 826047C - .incbin "baserom.gba", 0x26047C, 0x10 - -gUnknown_826048C:: @ 826048C - .incbin "baserom.gba", 0x26048C, 0x10 - -gUnknown_826049C:: @ 826049C - .incbin "baserom.gba", 0x26049C, 0x20 - -gUnknown_82604BC:: @ 82604BC - .incbin "baserom.gba", 0x2604BC, 0x30 - -gUnknown_82604EC:: @ 82604EC - .incbin "baserom.gba", 0x2604EC, 0x30 - -gUnknown_826051C:: @ 826051C - .incbin "baserom.gba", 0x26051C, 0x10 - -gUnknown_826052C:: @ 826052C - .incbin "baserom.gba", 0x26052C, 0x14 - -gUnknown_8260540:: @ 8260540 - .incbin "baserom.gba", 0x260540, 0x2 - -gUnknown_8260542:: @ 8260542 - .incbin "baserom.gba", 0x260542, 0x14 - -gUnknown_8260556:: @ 8260556 - .incbin "baserom.gba", 0x260556, 0x4 - -gUnknown_826055A:: @ 826055A - .incbin "baserom.gba", 0x26055A, 0xA - -gUnknown_8260564:: @ 8260564 - .incbin "baserom.gba", 0x260564, 0x8 - -gUnknown_826056C:: @ 826056C - .incbin "baserom.gba", 0x26056C, 0x60 - -gUnknown_82605CC:: @ 82605CC - .incbin "baserom.gba", 0x2605CC, 0x128 - -gUnknown_82606F4:: @ 82606F4 - .incbin "baserom.gba", 0x2606F4, 0x140 - -gUnknown_8260834:: @ 8260834 - .incbin "baserom.gba", 0x260834, 0x1FE - -gUnknown_8260A32:: @ 8260A32 - .incbin "baserom.gba", 0x260A32, 0x1FE - -gUnknown_8260C30:: @ 8260C30 - .incbin "baserom.gba", 0x260C30, 0x800 - -gUnknown_8261430:: @ 8261430 - .incbin "baserom.gba", 0x261430, 0x828 - -gUnknown_8261C58:: @ 8261C58 - .incbin "baserom.gba", 0x261C58, 0x8 - -gUnknown_8261C60:: @ 8261C60 - .incbin "baserom.gba", 0x261C60, 0x50 - -gUnknown_8261CB0:: @ 8261CB0 - .incbin "baserom.gba", 0x261CB0, 0x18 - -gUnknown_8261CC8:: @ 8261CC8 - .incbin "baserom.gba", 0x261CC8, 0x38 - -gUnknown_8261D00:: @ 8261D00 - .incbin "baserom.gba", 0x261D00, 0x8 - -gUnknown_8261D08:: @ 8261D08 - .incbin "baserom.gba", 0x261D08, 0x138 - -gTradeMonSpriteCoords:: @ 8261E40 - .incbin "baserom.gba", 0x261E40, 0x1A - -gUnknown_8261E5A:: @ 8261E5A - .incbin "baserom.gba", 0x261E5A, 0x18 - -gUnknown_8261E72:: @ 8261E72 - .incbin "baserom.gba", 0x261E72, 0x18 - -gTradeUnknownSpriteCoords:: @ 8261E8A - .incbin "baserom.gba", 0x261E8A, 0x2C - -gUnknown_8261EB6:: @ 8261EB6 - .string "$" - -gUnknown_8261EB7:: - .string "{COLOR DARK_GREY}{HIGHLIGHT TRANSPARENT}{SHADOW RED}$" - -gText_MaleSymbol4:: @ 8261EC1 - .string "♂$" - -gText_FemaleSymbol4:: @ 8261EC3 - .string "♀$" - -gText_GenderlessSymbol:: @ 8261EC5 - .string "$" - -gUnknown_8261EC6:: - .string "$" - -gUnknown_8261EC7:: @ 8261EC7 - .string "\n$" - -gUnknown_8261EC9:: - .string "/$" - - @ trade - - .align 2 -gUnknown_8261ECC:: @ 8261ECC - .incbin "baserom.gba", 0x261ECC, 0x18 - -gUnknown_8261EE4:: @ 8261EE4 - .incbin "baserom.gba", 0x261EE4, 0x10 - -gUnknown_8261EF4:: @ 8261EF4 - .incbin "baserom.gba", 0x261EF4, 0x24 - -gUnknown_8261F18:: @ 8261F18 - .incbin "baserom.gba", 0x261F18, 0x4 - -gUnknown_8261F1C:: @ 8261F1C - .incbin "baserom.gba", 0x261F1C, 0x10 - -gUnknown_8261F2C:: @ 8261F2C - .incbin "baserom.gba", 0x261F2C, 0x98 - -gUnknown_8261FC4:: @ 8261FC4 - .incbin "baserom.gba", 0x261FC4, 0x70 - -gUnknown_8262034:: @ 8262034 - .incbin "baserom.gba", 0x262034, 0x21 - -gUnknown_8262055:: @ 8262055 - .incbin "baserom.gba", 0x262055, 0x2027 - -gUnknown_826407C:: @ 826407C - .incbin "baserom.gba", 0x26407C, 0x1FA0 - -gUnknown_08331F60:: @ 826601C - .incbin "baserom.gba", 0x26601C, 0x1000 - -gUnknown_826701C:: @ 826701C - .incbin "baserom.gba", 0x26701C, 0x2840 - -gUnknown_826985C:: @ 826985C - .incbin "baserom.gba", 0x26985C, 0x100 - -gUnknown_826995C:: @ 826995C - .incbin "baserom.gba", 0x26995C, 0x100 - -gUnknown_8269A5C:: @ 8269A5C - .incbin "baserom.gba", 0x269A5C, 0x1000 - -gUnknown_826AA5C:: @ 826AA5C - .incbin "baserom.gba", 0x26AA5C, 0x1000 - - .align 2 -gUnknown_3379A0Bin:: @ 826BA5C - .incbin "graphics/trade/unknown_3379A0.bin.lz" - -gUnknown_826BB5C:: @ 826BB5C - .incbin "baserom.gba", 0x26BB5C, 0x200 - -gUnknown_826BD5C:: @ 826BD5C - .incbin "baserom.gba", 0x26BD5C, 0x200 - -gUnknown_826BF5C:: @ 826BF5C - .incbin "baserom.gba", 0x26BF5C, 0x20 - -gWirelessSignal4bpp:: @ 826BF7C - .incbin "graphics/trade/wireless_signal.4bpp.lz" - -gUnknown_826C60C:: @ 826C60C - .incbin "baserom.gba", 0x26C60C, 0x7C8 - -gUnknown_826CDD4:: @ 826CDD4 - .incbin "baserom.gba", 0x26CDD4, 0x8 - -gUnknown_826CDDC:: @ 826CDDC - .incbin "baserom.gba", 0x26CDDC, 0x8 - -gUnknown_826CDE4:: @ 826CDE4 - .incbin "baserom.gba", 0x26CDE4, 0x48 - -gUnknown_826CE2C:: @ 826CE2C - .incbin "baserom.gba", 0x26CE2C, 0x8 - -gUnknown_826CE34:: @ 826CE34 - .incbin "baserom.gba", 0x26CE34, 0x8 - -gUnknown_826CE3C:: @ 826CE3C - .incbin "baserom.gba", 0x26CE3C, 0x8 - -gUnknown_826CE44:: @ 826CE44 - .incbin "baserom.gba", 0x26CE44, 0x38 - -gUnknown_826CE7C:: @ 826CE7C - .incbin "baserom.gba", 0x26CE7C, 0x8 - -gUnknown_826CE84:: @ 826CE84 - .incbin "baserom.gba", 0x26CE84, 0x2C - -gUnknown_826CEB0:: @ 826CEB0 - .incbin "baserom.gba", 0x26CEB0, 0x8 - -gUnknown_826CEB8:: @ 826CEB8 - .incbin "baserom.gba", 0x26CEB8, 0x70 - -gUnknown_826CF28:: @ 826CF28 - .incbin "baserom.gba", 0x26CF28, 0x8 - -gUnknown_826CF30:: @ 826CF30 - .incbin "baserom.gba", 0x26CF30, 0x18 - -gUnknown_826CF48:: @ 826CF48 - .incbin "baserom.gba", 0x26CF48, 0x18 - -gUnknown_826CF60:: @ 826CF60 - .incbin "baserom.gba", 0x26CF60, 0x28 - -gUnknown_826CF88:: @ 826CF88 - .incbin "baserom.gba", 0x26CF88, 0x4 - - .include "data/ingame_trades.inc" - -gUnknown_826D1BC:: @ 826D1BC - .incbin "baserom.gba", 0x26D1BC, 0x10 - -gUnknown_826D1CC:: @ 826D1CC - .incbin "baserom.gba", 0x26D1CC, 0x8 - -gUnknown_826D1D4:: @ 826D1D4 - .incbin "baserom.gba", 0x26D1D4, 0x10 - -gUnknown_826D1E4:: @ 826D1E4 - .incbin "baserom.gba", 0x26D1E4, 0x6C - -gUnknown_826D250:: @ 826D250 - .incbin "baserom.gba", 0x26D250, 0x44 - - @ overworld - -gUnknown_826D294:: @ 826D294 - .incbin "baserom.gba", 0x26D294, 0xA - -gUnknown_826D29E:: @ 826D29E - .incbin "baserom.gba", 0x26D29E, 0x12 - -gUnknown_826D2B0:: @ 826D2B0 - .incbin "baserom.gba", 0x26D2B0, 0x28 - -gDirectionToVectors:: @ 826D2D8 - .4byte 0, 0 - .4byte 0, 1 - .4byte 0, -1 - .4byte -1, 0 - .4byte 1, 0 - .4byte -1, 1 - .4byte 1, 1 - .4byte -1, -1 - .4byte 1, -1 - -gUnknown_826D320:: @ 826D320 - .incbin "baserom.gba", 0x26D320, 0x10 - -gUnknown_826D330:: @ 826D330 - .incbin "baserom.gba", 0x26D330, 0xC - -gUnknown_826D33C:: @ 826D33C - .4byte sub_8058684 - .4byte sub_80586A4 - .4byte sub_80586A8 - -gUnknown_826D348:: @ 826D348 - .4byte sub_80586C8 - .4byte sub_80586CC - .4byte sub_80586CC - .4byte sub_80586CC - .4byte sub_80586CC - .4byte sub_80586C8 - .4byte sub_80586C8 - .4byte sub_8058734 - .4byte sub_8058734 - .4byte sub_8058734 - .4byte sub_8058734 - -gUnknown_826D374:: @ 826D374 - .4byte sub_805874C - .4byte sub_8058754 - diff --git a/data/data_835B488.s b/data/data_835B488.s index 2766f0eeb..88c12b035 100644 --- a/data/data_835B488.s +++ b/data/data_835B488.s @@ -13,29 +13,7 @@ gUnknown_83C68E4:: @ 83C68E4 gUnknown_83C68EC:: @ 83C68EC .incbin "baserom.gba", 0x3C68EC, 0x4 -gUnknown_83C68F0:: @ 83C68F0 - .incbin "baserom.gba", 0x3C68F0, 0x8 - -gUnknown_83C68F8:: @ 83C68F8 - .incbin "baserom.gba", 0x3C68F8, 0x8 - -gUnknown_83C6900:: @ 83C6900 - .incbin "baserom.gba", 0x3C6900, 0x48 - -gUnknown_83C6948:: @ 83C6948 - .incbin "baserom.gba", 0x3C6948, 0x48 - -gUnknown_83C6990:: @ 83C6990 - .incbin "baserom.gba", 0x3C6990, 0x48 - -gUnknown_83C69D8:: @ 83C69D8 - .incbin "baserom.gba", 0x3C69D8, 0x48 - -gUnknown_83C6A20:: @ 83C6A20 - .incbin "baserom.gba", 0x3C6A20, 0x48 - -gUnknown_83C6A68:: @ 83C6A68 - .incbin "baserom.gba", 0x3C6A68, 0x48 + .section .rodata.83C6AB0 gUnknown_83C6AB0:: @ 83C6AB0 .incbin "baserom.gba", 0x3C6AB0, 0x8 @@ -511,30 +489,10 @@ gUnknown_83D35DC:: @ 83D35DC gUnknown_83D3728:: @ 83D3728 .incbin "baserom.gba", 0x3D3728, 0x18 -gUnknown_83D3740:: @ 83D3740 - .incbin "baserom.gba", 0x3D3740, 0x60 - -gUnknown_83D37A0:: @ 83D37A0 - .incbin "baserom.gba", 0x3D37A0, 0x6E0 - -gUnknown_83D3E80:: @ 83D3E80 - .incbin "baserom.gba", 0x3D3E80, 0x1B8 - -gUnknown_83D4038:: @ 83D4038 - .incbin "baserom.gba", 0x3D4038, 0x30 - -gUnknown_83D4068:: @ 83D4068 - .incbin "baserom.gba", 0x3D4068, 0x44 - -gUnknown_83D40AC:: @ 83D40AC - .incbin "baserom.gba", 0x3D40AC, 0x34 - -gUnknown_83D40E0:: @ 83D40E0 - .incbin "baserom.gba", 0x3D40E0, 0x8 - -gUnknown_83D40E8:: @ 83D40E8 - .incbin "baserom.gba", 0x3D40E8, 0x18 - + @ pokemon_icon + .section .rodata.83D4100 + .align 2 + @ fldeff_cut gUnknown_83D4100:: @ 83D4100 .incbin "baserom.gba", 0x3D4100, 0x4C @@ -582,40 +540,10 @@ sBerries:: @ 83DF7E8 .incbin "baserom.gba", 0x3DF7E8, 0x4B4 gUnknown_83DFC9C:: @ 83DFC9C - .incbin "baserom.gba", 0x3DFC9C, 0x814 + .incbin "baserom.gba", 0x3DFC9C, 0xB4 -gUnknown_83E04B0:: @ 83E04B0 - .incbin "baserom.gba", 0x3E04B0, 0x208 - -gStdStringPtrs:: @ 83E06B8 - .incbin "baserom.gba", 0x3E06B8, 0x74 - -gUnknown_83E072C:: @ 83E072C - .incbin "baserom.gba", 0x3E072C, 0xC - -gUnknown_83E0738:: @ 83E0738 - .incbin "baserom.gba", 0x3E0738, 0x10 - -gUnknown_83E0748:: @ 83E0748 - .incbin "baserom.gba", 0x3E0748, 0x20 - -gUnknown_83E0768:: @ 83E0768 - .incbin "baserom.gba", 0x3E0768, 0x818 - -gUnknown_83E0F80:: @ 83E0F80 - .incbin "baserom.gba", 0x3E0F80, 0x820 - -gUnknown_83E17A0:: @ 83E17A0 - .incbin "baserom.gba", 0x3E17A0, 0x20 - -gUnknown_83E17C0:: @ 83E17C0 - .incbin "baserom.gba", 0x3E17C0, 0x10 - -gUnknown_83E17D0:: @ 83E17D0 - .incbin "baserom.gba", 0x3E17D0, 0x10 - -gUnknown_83E17E0:: @ 83E17E0 - .incbin "baserom.gba", 0x3E17E0, 0xAA0 + .section .rodata.83E2280 + .incbin "baserom.gba", 0x3E1800, 0xA80 gUnknown_83E2280:: @ 83E2280 .incbin "baserom.gba", 0x3E2280, 0x10 @@ -961,27 +889,6 @@ gUnknown_83EE8D0:: @ 83EE8D0 gUnknown_83EE958:: @ 83EE958 .incbin "baserom.gba", 0x3EE958, 0x40 -gUnknown_83EE998:: @ 83EE998 - .incbin "baserom.gba", 0x3EE998, 0xC - -gUnknown_83EE9A4:: @ 83EE9A4 - .incbin "baserom.gba", 0x3EE9A4, 0x18 - -gUnknown_83EE9BC:: @ 83EE9BC - .incbin "baserom.gba", 0x3EE9BC, 0x4 - -gUnknown_83EE9C0:: @ 83EE9C0 - .incbin "baserom.gba", 0x3EE9C0, 0x8 - -gUnknown_83EE9C8:: @ 83EE9C8 - .incbin "baserom.gba", 0x3EE9C8, 0xFC - -gUnknown_83EEAC4:: @ 83EEAC4 - .incbin "baserom.gba", 0x3EEAC4, 0xA4 - -gUnknown_83EEB68:: @ 83EEB68 - .incbin "baserom.gba", 0x3EEB68, 0x90 - .section .rodata.83EEC98 .include "data/text/map_section_names.inc" diff --git a/data/data_83F5738.s b/data/data_83F5738.s index 1dd697956..b7b09e748 100644 --- a/data/data_83F5738.s +++ b/data/data_83F5738.s @@ -1,3 +1,7 @@ +#include "constants/species.h" +#include "constants/items.h" + .include "asm/macros.inc" + .include "constants/constants.inc" .section .rodata .align 2 @@ -22,89 +26,6 @@ gUnknown_83F5864:: @ 83F5864 gUnknown_83F5A44:: @ 83F5A44 .incbin "baserom.gba", 0x3F5A44, 0xB4 -gUnknown_83F5AF8:: @ 83F5AF8 - .incbin "baserom.gba", 0x3F5AF8, 0x22 - -gUnknown_83F5B1A:: @ 83F5B1A - .incbin "baserom.gba", 0x3F5B1A, 0x16 - -gUnknown_83F5B30:: @ 83F5B30 - .incbin "baserom.gba", 0x3F5B30, 0xC - -gUnknown_83F5B3C:: @ 83F5B3C - .incbin "baserom.gba", 0x3F5B3C, 0x8 - -gUnknown_83F5B44:: @ 83F5B44 - .incbin "baserom.gba", 0x3F5B44, 0x50 - -gUnknown_83F5B94:: @ 83F5B94 - .incbin "baserom.gba", 0x3F5B94, 0x12 - -gUnknown_83F5BA6:: @ 83F5BA6 - .incbin "baserom.gba", 0x3F5BA6, 0x12 - -gUnknown_83F5BB8:: @ 83F5BB8 - .incbin "baserom.gba", 0x3F5BB8, 0x9 - -gUnknown_83F5BC1:: @ 83F5BC1 - .incbin "baserom.gba", 0x3F5BC1, 0xB - -gUnknown_83F5BCC:: @ 83F5BCC - .incbin "baserom.gba", 0x3F5BCC, 0x150 - -gUnknown_83F5D1C:: @ 83F5D1C - .incbin "baserom.gba", 0x3F5D1C, 0x10 - -sStarterMon:: @ 83F5D2C - .incbin "baserom.gba", 0x3F5D2C, 0x6 - -gUnknown_83F5D32:: @ 83F5D32 - .incbin "baserom.gba", 0x3F5D32, 0x26 - -gUnknown_83F5D58:: @ 83F5D58 - .incbin "baserom.gba", 0x3F5D58, 0x198 - - .align 2 -gUnknown_83F5EF0:: @ 83F5EF0 - .asciz "C:/WORK/POKeFRLG/src/pm_lgfr_ose/source/scr_tool.c" - - .align 2 -gUnknown_83F5F24:: @ 83F5F24 - .asciz "0" - -gUnknown_83F5F26:: @ 83F5F26 - .incbin "baserom.gba", 0x3F5F26, 0x2A - -gUnknown_83F5F50:: @ 83F5F50 - .incbin "baserom.gba", 0x3F5F50, 0x160 - -gUnknown_83F60B0:: @ 83F60B0 - .incbin "baserom.gba", 0x3F60B0, 0x20 - -gUnknown_83F60D0:: @ 83F60D0 - .incbin "baserom.gba", 0x3F60D0, 0x100 - -gUnknown_83F61D0:: @ 83F61D0 - .incbin "baserom.gba", 0x3F61D0, 0x20 - -gUnknown_83F61F0:: @ 83F61F0 - .incbin "baserom.gba", 0x3F61F0, 0xB - -gUnknown_83F61FB:: @ 83F61FB - .incbin "baserom.gba", 0x3F61FB, 0x8 - -gUnknown_83F6203:: @ 83F6203 - .incbin "baserom.gba", 0x3F6203, 0x3 - -gUnknown_83F6206:: @ 83F6206 - .incbin "baserom.gba", 0x3F6206, 0x160 - -gUnknown_83F6366:: @ 83F6366 - .incbin "baserom.gba", 0x3F6366, 0x16 - -gUnknown_83F637C:: @ 83F637C - .incbin "baserom.gba", 0x3F637C, 0xC - .section .rodata.83F6C90 gUnknown_83F6C90:: @ 83F6C90 .incbin "baserom.gba", 0x3F6C90, 0x20 @@ -423,8 +344,32 @@ gText_BattleSwitchWhich:: @ 83FE7A0 gUnknown_83FE80C:: @ 83FE80C .incbin "baserom.gba", 0x3FE80C, 0x10 -gUnknown_83FE81C:: @ 83FE81C - .incbin "baserom.gba", 0x3FE81C, 0x3D +gText_HighlightRed_Left:: @ 83FE81C + .string "{HIGHLIGHT RED}Left: $" + +gText_HighlightRed:: + .string "{HIGHLIGHT RED}$" + +gText_Sleep:: + .string "sleep$" + +gText_Poison:: + .string "poison$" + +gText_Burn:: + .string "burn$" + +gText_Paralysis:: + .string "paralysis$" + +gText_Ice:: + .string "ice$" + +gText_Confusion:: + .string "confusion$" + +gText_Love:: + .string "love$" gUnknown_83FE859:: @ 83FE859 .incbin "baserom.gba", 0x3FE859, 0x3 @@ -460,13 +405,26 @@ gUnknown_83FE88F:: @ 83FE88F .incbin "baserom.gba", 0x3FE88F, 0xF3 gUnknown_83FE982:: @ 83FE982 - .incbin "baserom.gba", 0x3FE982, 0x16 + .string "TIME BOARD$" + .string "CLEAR TIME$" gUnknown_83FE998:: @ 83FE998 - .incbin "baserom.gba", 0x3FE998, 0x2C + .string "{STR_VAR_1}MIN. {STR_VAR_2}.{STR_VAR_3}SEC.$" + .string "1F$" + .string "2F$" + .string "3F$" + .string "4F$" + .string "5F$" + .string "6F$" + .string "7F$" + .string "8F$" + .align 2 gUnknown_83FE9C4:: @ 83FE9C4 - .incbin "baserom.gba", 0x3FE9C4, 0x10 + .4byte gOtherText_Single + .4byte gOtherText_Double + .4byte gOtherText_Knockout + .4byte gOtherText_Mixed gUnknown_83FE9D4:: @ 83FE9D4 .incbin "baserom.gba", 0x3FE9D4, 0x10 diff --git a/data/data_83FECCC.s b/data/data_83FECCC.s index ce1f5aeeb..67964b9b9 100644 --- a/data/data_83FECCC.s +++ b/data/data_83FECCC.s @@ -1,5 +1,6 @@ #include "constants/region_map.h" #include "constants/flags.h" +#include "constants/moves.h" .include "asm/macros.inc" .include "constants/constants.inc" .section .rodata @@ -136,9 +137,6 @@ gUnknown_84020DA:: @ 84020DA gUnknown_84020E6:: @ 84020E6 .incbin "baserom.gba", 0x4020E6, 0x12 -gUnknown_84020F8:: @ 84020F8 - .incbin "baserom.gba", 0x4020F8, 0xE4 - .section .rodata.battle_anim_special gUnknown_840BF3C:: @ 840BF3C @@ -1089,12 +1087,438 @@ gUnknown_8459B30:: @ 8459B30 gUnknown_8459B48:: @ 8459B48 .incbin "baserom.gba", 0x459B48, 0x18 -gUnknown_8459B60:: @ 8459B60 - .incbin "baserom.gba", 0x459B60, 0x1E +gMoveTutorMoves:: @ 8459B60 + .2byte MOVE_MEGA_PUNCH + .2byte MOVE_SWORDS_DANCE + .2byte MOVE_MEGA_KICK + .2byte MOVE_BODY_SLAM + .2byte MOVE_DOUBLE_EDGE + .2byte MOVE_COUNTER + .2byte MOVE_SEISMIC_TOSS + .2byte MOVE_MIMIC + .2byte MOVE_METRONOME + .2byte MOVE_SOFT_BOILED + .2byte MOVE_DREAM_EATER + .2byte MOVE_THUNDER_WAVE + .2byte MOVE_EXPLOSION + .2byte MOVE_ROCK_SLIDE + .2byte MOVE_SUBSTITUTE -gUnknown_8459B7E:: @ 8459B7E - .incbin "baserom.gba", 0x459B7E, 0x33A +gMoveTutorMoveCompatibilityTable:: @ 8459B7E + .2byte 0x0000 + .2byte 0x409a + .2byte 0x409a + .2byte 0x409a + .2byte 0x60ff + .2byte 0x60ff + .2byte 0x60ff + .2byte 0x40fd + .2byte 0x40fd + .2byte 0x40fd + .2byte 0x0000 + .2byte 0x0000 + .2byte 0x4490 + .2byte 0x0000 + .2byte 0x0000 + .2byte 0x4092 + .2byte 0x4090 + .2byte 0x4090 + .2byte 0x4090 + .2byte 0x48b8 + .2byte 0x48b8 + .2byte 0x4090 + .2byte 0x4090 + .2byte 0x6098 + .2byte 0x6098 + .2byte 0x48fd + .2byte 0x48fd + .2byte 0x60fa + .2byte 0x60fa + .2byte 0x40b8 + .2byte 0x40b8 + .2byte 0x60fd + .2byte 0x40b8 + .2byte 0x40b8 + .2byte 0x60fd + .2byte 0x4ffd + .2byte 0x4ffd + .2byte 0x4098 + .2byte 0x4098 + .2byte 0x4cfd + .2byte 0x4cfd + .2byte 0x4090 + .2byte 0x4090 + .2byte 0x4092 + .2byte 0x4092 + .2byte 0x409a + .2byte 0x40ba + .2byte 0x40ba + .2byte 0x4090 + .2byte 0x4090 + .2byte 0x6098 + .2byte 0x6098 + .2byte 0x4498 + .2byte 0x4498 + .2byte 0x40fd + .2byte 0x40fd + .2byte 0x61fd + .2byte 0x61fd + .2byte 0x4098 + .2byte 0x4098 + .2byte 0x4098 + .2byte 0x41fd + .2byte 0x41fd + .2byte 0x4dfd + .2byte 0x4dfd + .2byte 0x4dfd + .2byte 0x61fd + .2byte 0x61fd + .2byte 0x61fd + .2byte 0x4092 + .2byte 0x4092 + .2byte 0x409a + .2byte 0x4092 + .2byte 0x4092 + .2byte 0x71f9 + .2byte 0x71f9 + .2byte 0x71fd + .2byte 0x4098 + .2byte 0x4098 + .2byte 0x4c98 + .2byte 0x4cfd + .2byte 0x4890 + .2byte 0x4890 + .2byte 0x409a + .2byte 0x4098 + .2byte 0x4098 + .2byte 0x4098 + .2byte 0x4098 + .2byte 0x5088 + .2byte 0x5088 + .2byte 0x5090 + .2byte 0x5090 + .2byte 0x5480 + .2byte 0x5480 + .2byte 0x55fd + .2byte 0x7098 + .2byte 0x4dfd + .2byte 0x4dfd + .2byte 0x409a + .2byte 0x409a + .2byte 0x5880 + .2byte 0x5880 + .2byte 0x5490 + .2byte 0x5490 + .2byte 0x60ff + .2byte 0x60ff + .2byte 0x61fd + .2byte 0x61fd + .2byte 0x64ff + .2byte 0x5080 + .2byte 0x5080 + .2byte 0x60ba + .2byte 0x60ff + .2byte 0x4ffd + .2byte 0x409a + .2byte 0x60fd + .2byte 0x4090 + .2byte 0x4090 + .2byte 0x4090 + .2byte 0x4090 + .2byte 0x4890 + .2byte 0x4c90 + .2byte 0x4dfd + .2byte 0x40b2 + .2byte 0x45fd + .2byte 0x48fd + .2byte 0x40fd + .2byte 0x60da + .2byte 0x4098 + .2byte 0x0000 + .2byte 0x4898 + .2byte 0x4498 + .2byte 0x0000 + .2byte 0x4098 + .2byte 0x4098 + .2byte 0x4898 + .2byte 0x4098 + .2byte 0x4c90 + .2byte 0x6098 + .2byte 0x60d8 + .2byte 0x6098 + .2byte 0x60de + .2byte 0x6090 + .2byte 0x61fd + .2byte 0x4090 + .2byte 0x4890 + .2byte 0x4090 + .2byte 0x4898 + .2byte 0x4898 + .2byte 0x4898 + .2byte 0x4dfd + .2byte 0x7fff + .2byte 0x40ba + .2byte 0x40ba + .2byte 0x40ba + .2byte 0x4098 + .2byte 0x4098 + .2byte 0x60fd + .2byte 0x60ff + .2byte 0x60ff + .2byte 0x60ff + .2byte 0x4098 + .2byte 0x4098 + .2byte 0x4490 + .2byte 0x4490 + .2byte 0x4093 + .2byte 0x4093 + .2byte 0x4098 + .2byte 0x4098 + .2byte 0x4090 + .2byte 0x4890 + .2byte 0x4890 + .2byte 0x48fd + .2byte 0x4ffd + .2byte 0x4cfd + .2byte 0x4ffd + .2byte 0x4ffd + .2byte 0x4c90 + .2byte 0x4c90 + .2byte 0x4898 + .2byte 0x48fd + .2byte 0x48fd + .2byte 0x4092 + .2byte 0x40dd + .2byte 0x40dd + .2byte 0x70fd + .2byte 0x41fd + .2byte 0x4092 + .2byte 0x4092 + .2byte 0x4092 + .2byte 0x4dfd + .2byte 0x4092 + .2byte 0x4092 + .2byte 0x4490 + .2byte 0x4098 + .2byte 0x40fd + .2byte 0x4498 + .2byte 0x4498 + .2byte 0x4c90 + .2byte 0x4cfd + .2byte 0x4c90 + .2byte 0x0000 + .2byte 0x0000 + .2byte 0x4c98 + .2byte 0x70b8 + .2byte 0x70b8 + .2byte 0x6cb8 + .2byte 0x64b2 + .2byte 0x7098 + .2byte 0x49fd + .2byte 0x69fd + .2byte 0x4892 + .2byte 0x40b2 + .2byte 0x6098 + .2byte 0x60fa + .2byte 0x44b2 + .2byte 0x41ff + .2byte 0x61ff + .2byte 0x6098 + .2byte 0x6098 + .2byte 0x6098 + .2byte 0x6098 + .2byte 0x7098 + .2byte 0x4890 + .2byte 0x48d0 + .2byte 0x40fd + .2byte 0x4098 + .2byte 0x60b0 + .2byte 0x44b8 + .2byte 0x44b8 + .2byte 0x4098 + .2byte 0x40b8 + .2byte 0x60b8 + .2byte 0x4c90 + .2byte 0x4c98 + .2byte 0x0000 + .2byte 0x60fc + .2byte 0x60fc + .2byte 0x45fd + .2byte 0x48fd + .2byte 0x40fd + .2byte 0x69fd + .2byte 0x4ffd + .2byte 0x4898 + .2byte 0x4098 + .2byte 0x4098 + .2byte 0x6098 + .2byte 0x6098 + .2byte 0x68fd + .2byte 0x4c98 + .2byte 0x4c90 + .2byte 0x4592 + .2byte 0x0000 + .2byte 0x0000 + .2byte 0x0000 + .2byte 0x0000 + .2byte 0x0000 + .2byte 0x0000 + .2byte 0x0000 + .2byte 0x0000 + .2byte 0x0000 + .2byte 0x0000 + .2byte 0x0000 + .2byte 0x0000 + .2byte 0x0000 + .2byte 0x0000 + .2byte 0x0000 + .2byte 0x0000 + .2byte 0x0000 + .2byte 0x0000 + .2byte 0x0000 + .2byte 0x0000 + .2byte 0x0000 + .2byte 0x0000 + .2byte 0x0000 + .2byte 0x0000 + .2byte 0x0000 + .2byte 0x40ff + .2byte 0x40ff + .2byte 0x40ff + .2byte 0x60ff + .2byte 0x60ff + .2byte 0x60ff + .2byte 0x4098 + .2byte 0x60fd + .2byte 0x60fd + .2byte 0x40b8 + .2byte 0x40b8 + .2byte 0x4898 + .2byte 0x4898 + .2byte 0x0000 + .2byte 0x0000 + .2byte 0x4090 + .2byte 0x0000 + .2byte 0x4090 + .2byte 0x409a + .2byte 0x409a + .2byte 0x41ff + .2byte 0x509a + .2byte 0x509e + .2byte 0x509e + .2byte 0x4090 + .2byte 0x4092 + .2byte 0x4490 + .2byte 0x40b0 + .2byte 0x40b0 + .2byte 0x409a + .2byte 0x40ff + .2byte 0x65fd + .2byte 0x4090 + .2byte 0x4090 + .2byte 0x4090 + .2byte 0x4090 + .2byte 0x4098 + .2byte 0x4098 + .2byte 0x4c98 + .2byte 0x4c98 + .2byte 0x69fd + .2byte 0x7490 + .2byte 0x7490 + .2byte 0x7898 + .2byte 0x7098 + .2byte 0x45fd + .2byte 0x4090 + .2byte 0x6090 + .2byte 0x4090 + .2byte 0x40ba + .2byte 0x40ba + .2byte 0x4090 + .2byte 0x4098 + .2byte 0x4090 + .2byte 0x4090 + .2byte 0x6098 + .2byte 0x6098 + .2byte 0x6098 + .2byte 0x61fd + .2byte 0x61fd + .2byte 0x4898 + .2byte 0x4898 + .2byte 0x6098 + .2byte 0x7098 + .2byte 0x6098 + .2byte 0x6098 + .2byte 0x6098 + .2byte 0x40fb + .2byte 0x40ff + .2byte 0x4098 + .2byte 0x5098 + .2byte 0x7498 + .2byte 0x7498 + .2byte 0x4098 + .2byte 0x4498 + .2byte 0x44fd + .2byte 0x49fd + .2byte 0x49fd + .2byte 0x60ff + .2byte 0x45fd + .2byte 0x65fd + .2byte 0x4498 + .2byte 0x4498 + .2byte 0x0000 + .2byte 0x4498 + .2byte 0x65fd + .2byte 0x409a + .2byte 0x60fd + .2byte 0x60fd + .2byte 0x60fd + .2byte 0x54b8 + .2byte 0x54b8 + .2byte 0x409a + .2byte 0x40fd + .2byte 0x60fd + .2byte 0x60fd + .2byte 0x4098 + .2byte 0x4098 + .2byte 0x4098 + .2byte 0x6cba + .2byte 0x4c98 + .2byte 0x4d98 + .2byte 0x4098 + .2byte 0x68ff + .2byte 0x6098 + .2byte 0x6098 + .2byte 0x6098 + .2byte 0x68fd + .2byte 0x4898 + .2byte 0x49fd + .2byte 0x49fd + .2byte 0x6098 + .2byte 0x6098 + .2byte 0x609a + .2byte 0x60da + .2byte 0x4c98 + .2byte 0x4c98 + .2byte 0x4c98 + .2byte 0x6098 + .2byte 0x6098 + .2byte 0x6098 + .2byte 0x0000 + .2byte 0x7098 + .2byte 0x7098 + .2byte 0x78fd + .2byte 0x78fd + .2byte 0x78fd + .2byte 0x6898 + .2byte 0x68ff + .2byte 0x6898 + .2byte 0x4c98 + .2byte 0x4c98 + .2byte 0x4d98 + .2byte 0x6cfd + .2byte 0x4490 + .align 2 gUnknown_8459EB8:: @ 8459EB8 .incbin "baserom.gba", 0x459EB8, 0xC diff --git a/data/data_8471F00.s b/data/data_8471F00.s index 364b5458d..82d507ea1 100644 --- a/data/data_8471F00.s +++ b/data/data_8471F00.s @@ -1,9 +1,12 @@ #include "constants/species.h" #include "constants/items.h" #include "constants/moves.h" +#include "constants/pokemon.h" #include "constants/easy_chat.h" #include "constants/facility_trainer_classes.h" +#define MALE 0 +#define FEMALE 1 #define NULL 0 .include "asm/macros.inc" @@ -210,10 +213,7 @@ gUnknown_84791CC:: @ 84791CC .incbin "baserom.gba", 0x4791CC, 0x1C gUnknown_84791E8:: @ 84791E8 - .incbin "baserom.gba", 0x4791E8, 0xE8 - -gUnknown_84792D0:: @ 84792D0 - .incbin "baserom.gba", 0x4792D0, 0x10 + .incbin "baserom.gba", 0x4791E8, 0x18 .section .rodata.8479668 @@ -342,7 +342,7 @@ gUnknown_84827B4:: @ 84827B4 .include "data/text/move_descriptions.inc" .align 2, 0 -gUnknown_84886E8:: @ 84886E8 +gMoveDescriptionPointers:: @ 84886E8 .4byte gMoveDescription_Pound .4byte gMoveDescription_KarateChop .4byte gMoveDescription_DoubleSlap diff --git a/data/event_scripts.s b/data/event_scripts.s index 7f03adfc2..a3943d494 100644 --- a/data/event_scripts.s +++ b/data/event_scripts.s @@ -10,15 +10,24 @@ #include "constants/vars.h" #include "constants/battle.h" #include "constants/spawn_points.h" +#include "constants/field_effects.h" +#include "constants/trainers.h" +#include "constants/map_objects.h" +#include "constants/fame_checker.h" +#include "constants/seagallop.h" +#include "constants/game_stat.h" +#include "constants/menu.h" +#include "constants/battle_setup.h" .include "asm/macros.inc" .include "asm/macros/event.inc" -@ .include "constants/constants.inc" + .set FALSE, 0 + .set TRUE, 1 .section script_data, "aw", %progbits - .include "data/script_cmd_table.inc" + .include "data/script_cmd_table.inc" - .align 2 + .align 2 gSpecialVars:: @ 815FD0C .4byte gSpecialVar_0x8000 .4byte gSpecialVar_0x8001 @@ -38,13 +47,13 @@ gSpecialVars:: @ 815FD0C .4byte gSpecialVar_LastTalked .4byte gSpecialVar_MonBoxId .4byte gSpecialVar_MonBoxPos - .4byte gUnknown_20370DA - .4byte gUnknown_20370DC + .4byte gSpecialVar_TextColor + .4byte gSpecialVar_PrevTextColor .4byte gUnknown_20370DE - .include "data/specials.inc" + .include "data/specials.inc" - .align 2 + .align 2 gStdScripts:: @ 8160450 .4byte gStdScript_0 .4byte gStdScript_1 @@ -58,4 +67,14841 @@ gStdScripts:: @ 8160450 .4byte gStdScript_ItemMessageAndFanfare gStdScriptsEnd:: - .include "data/map_event_scripts.inc" + .include "data/maps/UnknownMap_00_00/scripts.inc" + .include "data/maps/UnknownMap_00_01/scripts.inc" + .include "data/maps/UnknownMap_00_02/scripts.inc" + .include "data/maps/UnknownMap_00_03/scripts.inc" + .include "data/maps/UnknownMap_00_04/scripts.inc" + .include "data/maps/ViridianForest/scripts.inc" + .include "data/maps/MtMoon_1F/scripts.inc" + .include "data/maps/MtMoon_B1F/scripts.inc" + .include "data/maps/MtMoon_B2F/scripts.inc" + .include "data/maps/SSAnne_Exterior/scripts.inc" + .include "data/maps/SSAnne_1F_Corridor/scripts.inc" + .include "data/maps/SSAnne_2F_Corridor/scripts.inc" + .include "data/maps/SSAnne_3F_Corridor/scripts.inc" + .include "data/maps/SSAnne_B1F_Corridor/scripts.inc" + .include "data/maps/SSAnne_Deck/scripts.inc" + .include "data/maps/SSAnne_Kitchen/scripts.inc" + .include "data/maps/SSAnne_CaptainsOffice/scripts.inc" + .include "data/maps/SSAnne_1F_Room1/scripts.inc" + .include "data/maps/SSAnne_1F_Room2/scripts.inc" + .include "data/maps/SSAnne_1F_Room3/scripts.inc" + .include "data/maps/SSAnne_1F_Room4/scripts.inc" + .include "data/maps/SSAnne_1F_Room5/scripts.inc" + .include "data/maps/SSAnne_1F_Room7/scripts.inc" + .include "data/maps/SSAnne_2F_Room1/scripts.inc" + .include "data/maps/SSAnne_2F_Room2/scripts.inc" + .include "data/maps/SSAnne_2F_Room3/scripts.inc" + .include "data/maps/SSAnne_2F_Room4/scripts.inc" + .include "data/maps/SSAnne_2F_Room5/scripts.inc" + .include "data/maps/SSAnne_2F_Room6/scripts.inc" + .include "data/maps/SSAnne_B1F_Room1/scripts.inc" + .include "data/maps/SSAnne_B1F_Room2/scripts.inc" + .include "data/maps/SSAnne_B1F_Room3/scripts.inc" + .include "data/maps/SSAnne_B1F_Room4/scripts.inc" + .include "data/maps/SSAnne_B1F_Room5/scripts.inc" + .include "data/maps/SSAnne_1F_Room6/scripts.inc" + .include "data/maps/UndergroundPath_NorthEntrance/scripts.inc" + .include "data/maps/UndergroundPath_NorthSouthTunnel/scripts.inc" + .include "data/maps/UndergroundPath_SouthEntrance/scripts.inc" + .include "data/maps/UndergroundPath_WestEntrance/scripts.inc" + .include "data/maps/UndergroundPath_EastWestTunnel/scripts.inc" + .include "data/maps/UndergroundPath_EastEntrance/scripts.inc" + .include "data/maps/DiglettsCave_NorthEntrance/scripts.inc" + .include "data/maps/DiglettsCave_B1F/scripts.inc" + .include "data/maps/DiglettsCave_SouthEntrance/scripts.inc" + .include "data/maps/VictoryRoad_1F/scripts.inc" + .include "data/maps/VictoryRoad_2F/scripts.inc" + .include "data/maps/VictoryRoad_3F/scripts.inc" + .include "data/maps/RocketHideout_B1F/scripts.inc" + .include "data/maps/RocketHideout_B2F/scripts.inc" + .include "data/maps/RocketHideout_B3F/scripts.inc" + .include "data/maps/RocketHideout_B4F/scripts.inc" + .include "data/maps/RocketHideout_Elevator/scripts.inc" + .include "data/maps/SilphCo_1F/scripts.inc" + .include "data/maps/SilphCo_2F/scripts.inc" + .include "data/maps/SilphCo_3F/scripts.inc" + .include "data/maps/SilphCo_4F/scripts.inc" + .include "data/maps/SilphCo_5F/scripts.inc" + .include "data/maps/SilphCo_6F/scripts.inc" + .include "data/maps/SilphCo_7F/scripts.inc" + .include "data/maps/SilphCo_8F/scripts.inc" + .include "data/maps/SilphCo_9F/scripts.inc" + .include "data/maps/SilphCo_10F/scripts.inc" + .include "data/maps/SilphCo_11F/scripts.inc" + .include "data/maps/SilphCo_Elevator/scripts.inc" + .include "data/maps/PokemonMansion_1F/scripts.inc" + .include "data/maps/PokemonMansion_2F/scripts.inc" + .include "data/maps/PokemonMansion_3F/scripts.inc" + .include "data/maps/PokemonMansion_B1F/scripts.inc" + .include "data/maps/SafariZone_Center/scripts.inc" + .include "data/maps/SafariZone_East/scripts.inc" + .include "data/maps/SafariZone_North/scripts.inc" + .include "data/maps/SafariZone_West/scripts.inc" + .include "data/maps/SafariZone_Building1/scripts.inc" + .include "data/maps/SafariZone_Building2/scripts.inc" + .include "data/maps/SafariZone_Building3/scripts.inc" + .include "data/maps/SafariZone_Building4/scripts.inc" + .include "data/maps/SafariZone_SecretHouse/scripts.inc" + .include "data/maps/CeruleanCave_1F/scripts.inc" + .include "data/maps/CeruleanCave_2F/scripts.inc" + .include "data/maps/CeruleanCave_B1F/scripts.inc" + .include "data/maps/PokemonLeague_LoreleisRoom/scripts.inc" + .include "data/maps/PokemonLeague_BrunosRoom/scripts.inc" + .include "data/maps/PokemonLeague_AgathasRoom/scripts.inc" + .include "data/maps/PokemonLeague_LancesRoom/scripts.inc" + .include "data/maps/PokemonLeague_ChampionsRoom/scripts.inc" + .include "data/maps/PokemonLeague_HallOfFame/scripts.inc" + .include "data/maps/RockTunnel_1F/scripts.inc" + .include "data/maps/RockTunnel_B1F/scripts.inc" + .include "data/maps/SeafoamIslands_1F/scripts.inc" + .include "data/maps/SeafoamIslands_B1F/scripts.inc" + .include "data/maps/SeafoamIslands_B2F/scripts.inc" + .include "data/maps/SeafoamIslands_B3F/scripts.inc" + .include "data/maps/SeafoamIslands_B4F/scripts.inc" + .include "data/maps/PokemonTower_1F/scripts.inc" + .include "data/maps/PokemonTower_2F/scripts.inc" + .include "data/maps/PokemonTower_3F/scripts.inc" + .include "data/maps/PokemonTower_4F/scripts.inc" + .include "data/maps/PokemonTower_5F/scripts.inc" + .include "data/maps/PokemonTower_6F/scripts.inc" + .include "data/maps/PokemonTower_7F/scripts.inc" + .include "data/maps/PowerPlant/scripts.inc" + .include "data/maps/MtEmber_RubyPath_B4F/scripts.inc" + .include "data/maps/MtEmber_Exterior/scripts.inc" + .include "data/maps/MtEmber_SummitPath_1F/scripts.inc" + .include "data/maps/MtEmber_SummitPath_2F/scripts.inc" + .include "data/maps/MtEmber_SummitPath_3F/scripts.inc" + .include "data/maps/MtEmber_Summit/scripts.inc" + .include "data/maps/MtEmber_RubyPath_B5F/scripts.inc" + .include "data/maps/MtEmber_RubyPath_1F/scripts.inc" + .include "data/maps/MtEmber_RubyPath_B1F/scripts.inc" + .include "data/maps/MtEmber_RubyPath_B2F/scripts.inc" + .include "data/maps/MtEmber_RubyPath_B3F/scripts.inc" + .include "data/maps/MtEmber_RubyPath_B1F_Stairs/scripts.inc" + .include "data/maps/MtEmber_RubyPath_B2F_Stairs/scripts.inc" + .include "data/maps/ThreeIsland_BerryForest/scripts.inc" + .include "data/maps/FourIsland_IcefallCave_Entrance/scripts.inc" + .include "data/maps/FourIsland_IcefallCave_1F/scripts.inc" + .include "data/maps/FourIsland_IcefallCave_B1F/scripts.inc" + .include "data/maps/FourIsland_IcefallCave_Back/scripts.inc" + .include "data/maps/FiveIsland_RocketWarehouse/scripts.inc" + .include "data/maps/SixIsland_DottedHole_1F/scripts.inc" + .include "data/maps/SixIsland_DottedHole_B1F/scripts.inc" + .include "data/maps/SixIsland_DottedHole_B2F/scripts.inc" + .include "data/maps/SixIsland_DottedHole_B3F/scripts.inc" + .include "data/maps/SixIsland_DottedHole_B4F/scripts.inc" + .include "data/maps/SixIsland_DottedHole_SapphireRoom/scripts.inc" + .include "data/maps/SixIsland_PatternBush/scripts.inc" + .include "data/maps/SixIsland_AlteringCave/scripts.inc" + .include "data/maps/NavelRock_Exterior/scripts.inc" + .include "data/maps/SevenIsland_TrainerTower_1F/scripts.inc" + .include "data/maps/SevenIsland_TrainerTower_2F/scripts.inc" + .include "data/maps/SevenIsland_TrainerTower_3F/scripts.inc" + .include "data/maps/SevenIsland_TrainerTower_4F/scripts.inc" + .include "data/maps/SevenIsland_TrainerTower_5F/scripts.inc" + .include "data/maps/SevenIsland_TrainerTower_6F/scripts.inc" + .include "data/maps/SevenIsland_TrainerTower_7F/scripts.inc" + .include "data/maps/SevenIsland_TrainerTower_8F/scripts.inc" + .include "data/maps/SevenIsland_TrainerTower_Roof/scripts.inc" + .include "data/maps/SevenIsland_TrainerTower_Lobby/scripts.inc" + .include "data/maps/SevenIsland_TrainerTower_Elevator/scripts.inc" + .include "data/maps/FiveIsland_LostCave_Entrance/scripts.inc" + .include "data/maps/FiveIsland_LostCave_Room1/scripts.inc" + .include "data/maps/FiveIsland_LostCave_Room2/scripts.inc" + .include "data/maps/FiveIsland_LostCave_Room3/scripts.inc" + .include "data/maps/FiveIsland_LostCave_Room4/scripts.inc" + .include "data/maps/FiveIsland_LostCave_Room5/scripts.inc" + .include "data/maps/FiveIsland_LostCave_Room6/scripts.inc" + .include "data/maps/FiveIsland_LostCave_Room7/scripts.inc" + .include "data/maps/FiveIsland_LostCave_Room8/scripts.inc" + .include "data/maps/FiveIsland_LostCave_Room9/scripts.inc" + .include "data/maps/FiveIsland_LostCave_Room10/scripts.inc" + .include "data/maps/FiveIsland_LostCave_Room11/scripts.inc" + .include "data/maps/FiveIsland_LostCave_Room12/scripts.inc" + .include "data/maps/FiveIsland_LostCave_Room13/scripts.inc" + .include "data/maps/FiveIsland_LostCave_Room14/scripts.inc" + .include "data/maps/SevenIsland_TanobyRuins_MoneanChamber/scripts.inc" + .include "data/maps/SevenIsland_TanobyRuins_LiptooChamber/scripts.inc" + .include "data/maps/SevenIsland_TanobyRuins_WeepthChamber/scripts.inc" + .include "data/maps/SevenIsland_TanobyRuins_DilfordChamber/scripts.inc" + .include "data/maps/SevenIsland_TanobyRuins_ScufibChamber/scripts.inc" + .include "data/maps/SevenIsland_TanobyRuins_RixyChamber/scripts.inc" + .include "data/maps/SevenIsland_TanobyRuins_ViapoisChamber/scripts.inc" + .include "data/maps/ThreeIsland_DunsparceTunnel/scripts.inc" + .include "data/maps/SevenIsland_SevaultCanyon_TanobyKey/scripts.inc" + .include "data/maps/NavelRock_1F/scripts.inc" + .include "data/maps/NavelRock_Summit/scripts.inc" + .include "data/maps/NavelRock_Base/scripts.inc" + .include "data/maps/NavelRock_SummitPath_2F/scripts.inc" + .include "data/maps/NavelRock_SummitPath_3F/scripts.inc" + .include "data/maps/NavelRock_SummitPath_4F/scripts.inc" + .include "data/maps/NavelRock_SummitPath_5F/scripts.inc" + .include "data/maps/NavelRock_BasePath_B1F/scripts.inc" + .include "data/maps/NavelRock_BasePath_B2F/scripts.inc" + .include "data/maps/NavelRock_BasePath_B3F/scripts.inc" + .include "data/maps/NavelRock_BasePath_B4F/scripts.inc" + .include "data/maps/NavelRock_BasePath_B5F/scripts.inc" + .include "data/maps/NavelRock_BasePath_B6F/scripts.inc" + .include "data/maps/NavelRock_BasePath_B7F/scripts.inc" + .include "data/maps/NavelRock_BasePath_B8F/scripts.inc" + .include "data/maps/NavelRock_BasePath_B9F/scripts.inc" + .include "data/maps/NavelRock_BasePath_B10F/scripts.inc" + .include "data/maps/NavelRock_BasePath_B11F/scripts.inc" + .include "data/maps/NavelRock_B1F/scripts.inc" + .include "data/maps/NavelRock_Fork/scripts.inc" + .include "data/maps/BirthIsland_Exterior/scripts.inc" + .include "data/maps/OneIsland_KindleRoad_EmberSpa/scripts.inc" + .include "data/maps/BirthIsland_Harbor/scripts.inc" + .include "data/maps/NavelRock_Harbor/scripts.inc" + .include "data/maps/PalletTown/scripts.inc" + .include "data/maps/ViridianCity/scripts.inc" + .include "data/maps/PewterCity/scripts.inc" + .include "data/maps/CeruleanCity/scripts.inc" + .include "data/maps/LavenderTown/scripts.inc" + .include "data/maps/VermilionCity/scripts.inc" + .include "data/maps/CeladonCity/scripts.inc" + .include "data/maps/FuchsiaCity/scripts.inc" + .include "data/maps/CinnabarIsland/scripts.inc" + .include "data/maps/IndigoPlateau_Exterior/scripts.inc" + .include "data/maps/SaffronCity/scripts.inc" + .include "data/maps/SaffronCity_Classic/scripts.inc" + .include "data/maps/OneIsland/scripts.inc" + .include "data/maps/TwoIsland/scripts.inc" + .include "data/maps/ThreeIsland/scripts.inc" + .include "data/maps/FourIsland/scripts.inc" + .include "data/maps/FiveIsland/scripts.inc" + .include "data/maps/SevenIsland/scripts.inc" + .include "data/maps/SixIsland/scripts.inc" + .include "data/maps/Route1/scripts.inc" + .include "data/maps/Route2/scripts.inc" + .include "data/maps/Route3/scripts.inc" + .include "data/maps/Route4/scripts.inc" + .include "data/maps/Route5/scripts.inc" + .include "data/maps/Route6/scripts.inc" + .include "data/maps/Route7/scripts.inc" + .include "data/maps/Route8/scripts.inc" + .include "data/maps/Route9/scripts.inc" + .include "data/maps/Route10/scripts.inc" + .include "data/maps/Route11/scripts.inc" + .include "data/maps/Route12/scripts.inc" + .include "data/maps/Route13/scripts.inc" + .include "data/maps/Route14/scripts.inc" + .include "data/maps/Route15/scripts.inc" + .include "data/maps/Route16/scripts.inc" + .include "data/maps/Route17/scripts.inc" + .include "data/maps/Route18/scripts.inc" + .include "data/maps/Route19/scripts.inc" + .include "data/maps/Route20/scripts.inc" + .include "data/maps/Route21_North/scripts.inc" + .include "data/maps/Route21_South/scripts.inc" + .include "data/maps/Route22/scripts.inc" + .include "data/maps/Route23/scripts.inc" + .include "data/maps/Route24/scripts.inc" + .include "data/maps/Route25/scripts.inc" + .include "data/maps/OneIsland_KindleRoad/scripts.inc" + .include "data/maps/OneIsland_TreasureBeach/scripts.inc" + .include "data/maps/TwoIsland_CapeBrink/scripts.inc" + .include "data/maps/ThreeIsland_BondBridge/scripts.inc" + .include "data/maps/ThreeIsland_Port/scripts.inc" + .include "data/maps/UnknownMap_03_50/scripts.inc" + .include "data/maps/UnknownMap_03_51/scripts.inc" + .include "data/maps/UnknownMap_03_52/scripts.inc" + .include "data/maps/UnknownMap_03_53/scripts.inc" + .include "data/maps/FiveIsland_ResortGorgeous/scripts.inc" + .include "data/maps/FiveIsland_WaterLabyrinth/scripts.inc" + .include "data/maps/FiveIsland_Meadow/scripts.inc" + .include "data/maps/FiveIsland_MemorialPillar/scripts.inc" + .include "data/maps/SixIsland_OutcastIsland/scripts.inc" + .include "data/maps/SixIsland_GreenPath/scripts.inc" + .include "data/maps/SixIsland_WaterPath/scripts.inc" + .include "data/maps/SixIsland_RuinValley/scripts.inc" + .include "data/maps/SevenIsland_TrainerTower/scripts.inc" + .include "data/maps/SevenIsland_SevaultCanyon_Entrance/scripts.inc" + .include "data/maps/SevenIsland_SevaultCanyon/scripts.inc" + .include "data/maps/SevenIsland_TanobyRuins/scripts.inc" + .include "data/maps/PalletTown_PlayersHouse_1F/scripts.inc" + .include "data/maps/PalletTown_PlayersHouse_2F/scripts.inc" + .include "data/maps/PalletTown_GarysHouse/scripts.inc" + .include "data/maps/PalletTown_ProfessorOaksLab/scripts.inc" + .include "data/maps/ViridianCity_House1/scripts.inc" + .include "data/maps/ViridianCity_Gym/scripts.inc" + .include "data/maps/ViridianCity_House2/scripts.inc" + .include "data/maps/ViridianCity_Mart/scripts.inc" + .include "data/maps/ViridianCity_PokemonCenter_1F/scripts.inc" + .include "data/maps/ViridianCity_PokemonCenter_2F/scripts.inc" + .include "data/maps/PewterCity_Museum_1F/scripts.inc" + .include "data/maps/PewterCity_Museum_2F/scripts.inc" + .include "data/maps/PewterCity_Gym/scripts.inc" + .include "data/maps/PewterCity_Mart/scripts.inc" + .include "data/maps/PewterCity_House1/scripts.inc" + .include "data/maps/PewterCity_PokemonCenter_1F/scripts.inc" + .include "data/maps/PewterCity_PokemonCenter_2F/scripts.inc" + .include "data/maps/PewterCity_House2/scripts.inc" + .include "data/maps/CeruleanCity_House1/scripts.inc" + .include "data/maps/CeruleanCity_House2/scripts.inc" + .include "data/maps/CeruleanCity_House3/scripts.inc" + .include "data/maps/CeruleanCity_PokemonCenter_1F/scripts.inc" + .include "data/maps/CeruleanCity_PokemonCenter_2F/scripts.inc" + .include "data/maps/CeruleanCity_Gym/scripts.inc" + .include "data/maps/CeruleanCity_BikeShop/scripts.inc" + .include "data/maps/CeruleanCity_Mart/scripts.inc" + .include "data/maps/CeruleanCity_House4/scripts.inc" + .include "data/maps/CeruleanCity_House5/scripts.inc" + .include "data/maps/LavenderTown_PokemonCenter_1F/scripts.inc" + .include "data/maps/LavenderTown_PokemonCenter_2F/scripts.inc" + .include "data/maps/LavenderTown_VolunteerPokemonHouse/scripts.inc" + .include "data/maps/LavenderTown_House1/scripts.inc" + .include "data/maps/LavenderTown_House2/scripts.inc" + .include "data/maps/LavenderTown_Mart/scripts.inc" + .include "data/maps/VermilionCity_House1/scripts.inc" + .include "data/maps/VermilionCity_PokemonCenter_1F/scripts.inc" + .include "data/maps/VermilionCity_PokemonCenter_2F/scripts.inc" + .include "data/maps/VermilionCity_PokemonFanClub/scripts.inc" + .include "data/maps/VermilionCity_House2/scripts.inc" + .include "data/maps/VermilionCity_Mart/scripts.inc" + .include "data/maps/VermilionCity_Gym/scripts.inc" + .include "data/maps/VermilionCity_House3/scripts.inc" + .include "data/maps/CeladonCity_DepartmentStore_1F/scripts.inc" + .include "data/maps/CeladonCity_DepartmentStore_2F/scripts.inc" + .include "data/maps/CeladonCity_DepartmentStore_3F/scripts.inc" + .include "data/maps/CeladonCity_DepartmentStore_4F/scripts.inc" + .include "data/maps/CeladonCity_DepartmentStore_5F/scripts.inc" + .include "data/maps/CeladonCity_DepartmentStore_Roof/scripts.inc" + .include "data/maps/CeladonCity_DepartmentStore_Elevator/scripts.inc" + .include "data/maps/CeladonCity_Condominiums_1F/scripts.inc" + .include "data/maps/CeladonCity_Condominiums_2F/scripts.inc" + .include "data/maps/CeladonCity_Condominiums_3F/scripts.inc" + .include "data/maps/CeladonCity_Condominiums_Roof/scripts.inc" + .include "data/maps/CeladonCity_Condominiums_RoofRoom/scripts.inc" + .include "data/maps/CeladonCity_PokemonCenter_1F/scripts.inc" + .include "data/maps/CeladonCity_PokemonCenter_2F/scripts.inc" + .include "data/maps/CeladonCity_GameCorner/scripts.inc" + .include "data/maps/CeladonCity_GameCorner_PrizeRoom/scripts.inc" + .include "data/maps/CeladonCity_Gym/scripts.inc" + .include "data/maps/CeladonCity_Restaurant/scripts.inc" + .include "data/maps/CeladonCity_House1/scripts.inc" + .include "data/maps/CeladonCity_Hotel/scripts.inc" + .include "data/maps/FuchsiaCity_SafariZone_Entrance/scripts.inc" + .include "data/maps/FuchsiaCity_Mart/scripts.inc" + .include "data/maps/FuchsiaCity_ZooBuilding/scripts.inc" + .include "data/maps/FuchsiaCity_Gym/scripts.inc" + .include "data/maps/FuchsiaCity_House1/scripts.inc" + .include "data/maps/FuchsiaCity_PokemonCenter_1F/scripts.inc" + .include "data/maps/FuchsiaCity_PokemonCenter_2F/scripts.inc" + .include "data/maps/FuchsiaCity_Building1/scripts.inc" + .include "data/maps/FuchsiaCity_House2/scripts.inc" + .include "data/maps/FuchsiaCity_House3/scripts.inc" + .include "data/maps/CinnabarIsland_Gym/scripts.inc" + .include "data/maps/CinnabarIsland_PokemonLab_Entrance/scripts.inc" + .include "data/maps/CinnabarIsland_PokemonLab_Lounge/scripts.inc" + .include "data/maps/CinnabarIsland_PokemonLab_ResearchRoom/scripts.inc" + .include "data/maps/CinnabarIsland_PokemonLab_ExperimentRoom/scripts.inc" + .include "data/maps/CinnabarIsland_PokemonCenter_1F/scripts.inc" + .include "data/maps/CinnabarIsland_PokemonCenter_2F/scripts.inc" + .include "data/maps/CinnabarIsland_Mart/scripts.inc" + .include "data/maps/IndigoPlateau_PokemonCenter_1F/scripts.inc" + .include "data/maps/IndigoPlateau_PokemonCenter_2F/scripts.inc" + .include "data/maps/SaffronCity_House1_1F/scripts.inc" + .include "data/maps/SaffronCity_House1_2F/scripts.inc" + .include "data/maps/SaffronCity_Dojo/scripts.inc" + .include "data/maps/SaffronCity_Gym/scripts.inc" + .include "data/maps/SaffronCity_House2/scripts.inc" + .include "data/maps/SaffronCity_Mart/scripts.inc" + .include "data/maps/SaffronCity_PokemonCenter_1F/scripts.inc" + .include "data/maps/SaffronCity_PokemonCenter_2F/scripts.inc" + .include "data/maps/SaffronCity_House3/scripts.inc" + .include "data/maps/SaffronCity_PokemonTrainerFanClub/scripts.inc" + .include "data/maps/Route2_ViridianForest_SouthEntrance/scripts.inc" + .include "data/maps/Route2_House/scripts.inc" + .include "data/maps/Route2_EastBuilding/scripts.inc" + .include "data/maps/Route2_ViridianForest_NorthEntrance/scripts.inc" + .include "data/maps/Route4_PokemonCenter_1F/scripts.inc" + .include "data/maps/Route4_PokemonCenter_2F/scripts.inc" + .include "data/maps/Route5_PokemonDayCare/scripts.inc" + .include "data/maps/Route5_SouthEntrance/scripts.inc" + .include "data/maps/Route6_NorthEntrance/scripts.inc" + .include "data/maps/UnknownMap_18_01/scripts.inc" + .include "data/maps/Route7_EastEntrance/scripts.inc" + .include "data/maps/Route8_WestEntrance/scripts.inc" + .include "data/maps/Route10_PokemonCenter_1F/scripts.inc" + .include "data/maps/Route10_PokemonCenter_2F/scripts.inc" + .include "data/maps/Route11_EastEntrance_1F/scripts.inc" + .include "data/maps/Route11_EastEntrance_2F/scripts.inc" + .include "data/maps/Route12_NorthEntrance_1F/scripts.inc" + .include "data/maps/Route12_NorthEntrance_2F/scripts.inc" + .include "data/maps/Route12_FishingHouse/scripts.inc" + .include "data/maps/Route15_WestEntrance_1F/scripts.inc" + .include "data/maps/Route15_WestEntrance_2F/scripts.inc" + .include "data/maps/Route16_House/scripts.inc" + .include "data/maps/Route16_NorthEntrance_1F/scripts.inc" + .include "data/maps/Route16_NorthEntrance_2F/scripts.inc" + .include "data/maps/Route18_EastEntrance_1F/scripts.inc" + .include "data/maps/Route18_EastEntrance_2F/scripts.inc" + .include "data/maps/UnusedHouse_27_00/scripts.inc" + .include "data/maps/Route22_NorthEntrance/scripts.inc" + .include "data/maps/UnusedHouse_29_00/scripts.inc" + .include "data/maps/Route25_SeaCottage/scripts.inc" + .include "data/maps/SevenIsland_House_Room1/scripts.inc" + .include "data/maps/SevenIsland_House_Room2/scripts.inc" + .include "data/maps/SevenIsland_Mart/scripts.inc" + .include "data/maps/SevenIsland_PokemonCenter_1F/scripts.inc" + .include "data/maps/SevenIsland_PokemonCenter_2F/scripts.inc" + .include "data/maps/UnusedHouse_31_05/scripts.inc" + .include "data/maps/SevenIsland_Harbor/scripts.inc" + .include "data/maps/OneIsland_PokemonCenter_1F/scripts.inc" + .include "data/maps/OneIsland_PokemonCenter_2F/scripts.inc" + .include "data/maps/OneIsland_House1/scripts.inc" + .include "data/maps/OneIsland_House2/scripts.inc" + .include "data/maps/OneIsland_Harbor/scripts.inc" + .include "data/maps/TwoIsland_JoyfulGameCorner/scripts.inc" + .include "data/maps/TwoIsland_House/scripts.inc" + .include "data/maps/TwoIsland_PokemonCenter_1F/scripts.inc" + .include "data/maps/TwoIsland_PokemonCenter_2F/scripts.inc" + .include "data/maps/TwoIsland_Harbor/scripts.inc" + .include "data/maps/ThreeIsland_House1/scripts.inc" + .include "data/maps/ThreeIsland_PokemonCenter_1F/scripts.inc" + .include "data/maps/ThreeIsland_PokemonCenter_2F/scripts.inc" + .include "data/maps/ThreeIsland_Mart/scripts.inc" + .include "data/maps/ThreeIsland_House2/scripts.inc" + .include "data/maps/ThreeIsland_House3/scripts.inc" + .include "data/maps/ThreeIsland_House4/scripts.inc" + .include "data/maps/ThreeIsland_House5/scripts.inc" + .include "data/maps/FourIsland_PokemonDayCare/scripts.inc" + .include "data/maps/FourIsland_PokemonCenter_1F/scripts.inc" + .include "data/maps/FourIsland_PokemonCenter_2F/scripts.inc" + .include "data/maps/FourIsland_House1/scripts.inc" + .include "data/maps/FourIsland_LoreleisHouse/scripts.inc" + .include "data/maps/FourIsland_Harbor/scripts.inc" + .include "data/maps/FourIsland_House2/scripts.inc" + .include "data/maps/FourIsland_Mart/scripts.inc" + .include "data/maps/FiveIsland_PokemonCenter_1F/scripts.inc" + .include "data/maps/FiveIsland_PokemonCenter_2F/scripts.inc" + .include "data/maps/FiveIsland_Harbor/scripts.inc" + .include "data/maps/FiveIsland_House1/scripts.inc" + .include "data/maps/FiveIsland_House2/scripts.inc" + .include "data/maps/SixIsland_PokemonCenter_1F/scripts.inc" + .include "data/maps/SixIsland_PokemonCenter_2F/scripts.inc" + .include "data/maps/SixIsland_Harbor/scripts.inc" + .include "data/maps/SixIsland_House/scripts.inc" + .include "data/maps/SixIsland_Mart/scripts.inc" + .include "data/maps/ThreeIsland_Harbor/scripts.inc" + .include "data/maps/FiveIsland_ResortGorgeous_House/scripts.inc" + .include "data/maps/TwoIsland_CapeBrink_House/scripts.inc" + .include "data/maps/SixIsland_WaterPath_House1/scripts.inc" + .include "data/maps/SixIsland_WaterPath_House2/scripts.inc" + .include "data/maps/SevenIsland_SevaultCanyon_House/scripts.inc" + + .include "data/maps/ViridianForest/text.inc" + .include "data/maps/MtMoon_1F/text.inc" + .include "data/maps/MtMoon_B2F/text.inc" + .include "data/maps/SSAnne_1F_Corridor/text.inc" + .include "data/maps/SSAnne_2F_Corridor/text.inc" + .include "data/maps/SSAnne_3F_Corridor/text.inc" + .include "data/maps/SSAnne_Deck/text.inc" + .include "data/maps/SSAnne_Kitchen/text.inc" + .include "data/maps/SSAnne_CaptainsOffice/text.inc" + .include "data/maps/SSAnne_1F_Room1/text.inc" + .include "data/maps/SSAnne_1F_Room2/text.inc" + .include "data/maps/SSAnne_1F_Room3/text.inc" + .include "data/maps/SSAnne_1F_Room4/text.inc" + .include "data/maps/SSAnne_1F_Room5/text.inc" + .include "data/maps/SSAnne_1F_Room7/text.inc" + .include "data/maps/SSAnne_2F_Room1/text.inc" + .include "data/maps/SSAnne_2F_Room2/text.inc" + .include "data/maps/SSAnne_2F_Room3/text.inc" + .include "data/maps/SSAnne_2F_Room4/text.inc" + .include "data/maps/SSAnne_2F_Room5/text.inc" + .include "data/maps/SSAnne_2F_Room6/text.inc" + .include "data/maps/SSAnne_B1F_Room1/text.inc" + .include "data/maps/SSAnne_B1F_Room2/text.inc" + .include "data/maps/SSAnne_B1F_Room3/text.inc" + .include "data/maps/SSAnne_B1F_Room4/text.inc" + .include "data/maps/SSAnne_B1F_Room5/text.inc" + .include "data/maps/SSAnne_1F_Room6/text.inc" + .include "data/maps/UndergroundPath_SouthEntrance/text.inc" + .include "data/maps/UndergroundPath_WestEntrance/text.inc" + .include "data/maps/UndergroundPath_EastEntrance/text.inc" + .include "data/maps/DiglettsCave_NorthEntrance/text.inc" + .include "data/maps/DiglettsCave_SouthEntrance/text.inc" + .include "data/maps/VictoryRoad_1F/text.inc" + .include "data/maps/VictoryRoad_2F/text.inc" + .include "data/maps/VictoryRoad_3F/text.inc" + .include "data/maps/RocketHideout_B1F/text.inc" + .include "data/maps/RocketHideout_B2F/text.inc" + .include "data/maps/RocketHideout_B3F/text.inc" + .include "data/maps/RocketHideout_B4F/text.inc" + .include "data/maps/RocketHideout_Elevator/text.inc" + .include "data/maps/SilphCo_1F/text.inc" + .include "data/maps/SilphCo_2F/text.inc" + .include "data/maps/SilphCo_3F/text.inc" + .include "data/maps/SilphCo_4F/text.inc" + .include "data/maps/SilphCo_5F/text.inc" + .include "data/maps/SilphCo_6F/text.inc" + .include "data/maps/SilphCo_7F/text.inc" + .include "data/maps/SilphCo_8F/text.inc" + .include "data/maps/SilphCo_9F/text.inc" + .include "data/maps/SilphCo_10F/text.inc" + .include "data/maps/SilphCo_11F/text.inc" + .include "data/maps/PokemonMansion_1F/text.inc" + .include "data/maps/PokemonMansion_2F/text.inc" + .include "data/maps/PokemonMansion_3F/text.inc" + .include "data/maps/PokemonMansion_B1F/text.inc" + .include "data/maps/SafariZone_Center/text.inc" + .include "data/maps/SafariZone_East/text.inc" + .include "data/maps/SafariZone_North/text.inc" + .include "data/maps/SafariZone_West/text.inc" + .include "data/maps/SafariZone_Building1/text.inc" + .include "data/maps/SafariZone_Building2/text.inc" + .include "data/maps/SafariZone_Building3/text.inc" + .include "data/maps/SafariZone_Building4/text.inc" + .include "data/maps/SafariZone_SecretHouse/text.inc" + .include "data/maps/CeruleanCave_B1F/text.inc" + .include "data/maps/PokemonLeague_LoreleisRoom/text.inc" + .include "data/maps/PokemonLeague_BrunosRoom/text.inc" + .include "data/maps/PokemonLeague_AgathasRoom/text.inc" + .include "data/maps/PokemonLeague_LancesRoom/text.inc" + .include "data/maps/PokemonLeague_ChampionsRoom/text.inc" + .include "data/maps/PokemonLeague_HallOfFame/text.inc" + .include "data/maps/RockTunnel_1F/text.inc" + .include "data/maps/RockTunnel_B1F/text.inc" + .include "data/maps/SeafoamIslands_B4F/text.inc" + .include "data/maps/PokemonTower_1F/text.inc" + .include "data/maps/PokemonTower_2F/text.inc" + .include "data/maps/PokemonTower_3F/text.inc" + .include "data/maps/PokemonTower_4F/text.inc" + .include "data/maps/PokemonTower_5F/text.inc" + .include "data/maps/PokemonTower_6F/text.inc" + .include "data/maps/PokemonTower_7F/text.inc" + .include "data/maps/MtEmber_Exterior/text.inc" + .include "data/maps/MtEmber_RubyPath_B3F/text.inc" + .include "data/maps/ThreeIsland_BerryForest/text.inc" + .include "data/maps/FourIsland_IcefallCave_Back/text.inc" + .include "data/maps/FiveIsland_RocketWarehouse/text.inc" + .include "data/maps/SixIsland_DottedHole_SapphireRoom/text.inc" + .include "data/maps/SixIsland_PatternBush/text.inc" + .include "data/maps/SevenIsland_TrainerTower_Lobby/text.inc" + .include "data/maps/FiveIsland_LostCave_Room1/text.inc" + .include "data/maps/FiveIsland_LostCave_Room4/text.inc" + .include "data/maps/FiveIsland_LostCave_Room10/text.inc" + .include "data/maps/ThreeIsland_DunsparceTunnel/text.inc" + .include "data/maps/SevenIsland_SevaultCanyon_TanobyKey/text.inc" + .include "data/maps/OneIsland_KindleRoad_EmberSpa/text.inc" + .include "data/maps/PalletTown/text.inc" + .include "data/maps/ViridianCity/text.inc" + .include "data/maps/PewterCity/text.inc" + .include "data/maps/CeruleanCity/text.inc" + .include "data/maps/LavenderTown/text.inc" + .include "data/maps/VermilionCity/text.inc" + .include "data/maps/CeladonCity/text.inc" + .include "data/maps/FuchsiaCity/text.inc" + .include "data/maps/CinnabarIsland/text.inc" + .include "data/maps/SaffronCity/text.inc" + .include "data/maps/OneIsland/text.inc" + .include "data/maps/TwoIsland/text.inc" + .include "data/maps/ThreeIsland/text.inc" + .include "data/maps/FourIsland/text.inc" + .include "data/maps/FiveIsland/text.inc" + .include "data/maps/SevenIsland/text.inc" + .include "data/maps/SixIsland/text.inc" + .include "data/maps/Route1/text.inc" + .include "data/maps/Route2/text.inc" + .include "data/maps/Route3/text.inc" + .include "data/maps/Route4/text.inc" + .include "data/maps/Route5/text.inc" + .include "data/maps/Route6/text.inc" + .include "data/maps/Route7/text.inc" + .include "data/maps/Route8/text.inc" + .include "data/maps/Route9/text.inc" + .include "data/maps/Route10/text.inc" + .include "data/maps/Route11/text.inc" + .include "data/maps/Route12/text.inc" + .include "data/maps/Route13/text.inc" + .include "data/maps/Route14/text.inc" + .include "data/maps/Route15/text.inc" + .include "data/maps/Route16/text.inc" + .include "data/maps/Route17/text.inc" + .include "data/maps/Route18/text.inc" + .include "data/maps/Route19/text.inc" + .include "data/maps/Route20/text.inc" + .include "data/maps/Route22/text.inc" + .include "data/maps/Route23/text.inc" + .include "data/maps/Route24/text.inc" + .include "data/maps/Route25/text.inc" + .include "data/maps/OneIsland_KindleRoad/text.inc" + .include "data/maps/OneIsland_TreasureBeach/text.inc" + .include "data/maps/ThreeIsland_BondBridge/text.inc" + .include "data/maps/ThreeIsland_Port/text.inc" + .include "data/maps/FiveIsland_ResortGorgeous/text.inc" + .include "data/maps/FiveIsland_WaterLabyrinth/text.inc" + .include "data/maps/FiveIsland_Meadow/text.inc" + .include "data/maps/FiveIsland_MemorialPillar/text.inc" + .include "data/maps/SixIsland_OutcastIsland/text.inc" + .include "data/maps/SixIsland_GreenPath/text.inc" + .include "data/maps/SixIsland_WaterPath/text.inc" + .include "data/maps/SixIsland_RuinValley/text.inc" + .include "data/maps/SevenIsland_TrainerTower/text.inc" + .include "data/maps/SevenIsland_SevaultCanyon_Entrance/text.inc" + .include "data/maps/SevenIsland_SevaultCanyon/text.inc" + .include "data/maps/PalletTown_PlayersHouse_1F/text.inc" + .include "data/maps/PalletTown_PlayersHouse_2F/text.inc" + .include "data/maps/PalletTown_GarysHouse/text.inc" + .include "data/maps/PalletTown_ProfessorOaksLab/text.inc" + .include "data/maps/ViridianCity_House1/text.inc" + .include "data/maps/ViridianCity_Gym/text.inc" + .include "data/maps/ViridianCity_House2/text.inc" + .include "data/maps/ViridianCity_Mart/text.inc" + .include "data/maps/ViridianCity_PokemonCenter_1F/text.inc" + .include "data/maps/PewterCity_Museum_1F/text.inc" + .include "data/maps/PewterCity_Museum_2F/text.inc" + .include "data/maps/PewterCity_Gym/text.inc" + .include "data/maps/PewterCity_Mart/text.inc" + .include "data/maps/PewterCity_House1/text.inc" + .include "data/maps/PewterCity_PokemonCenter_1F/text.inc" + .include "data/maps/PewterCity_House2/text.inc" + .include "data/maps/CeruleanCity_House1/text.inc" + .include "data/maps/CeruleanCity_House2/text.inc" + .include "data/maps/CeruleanCity_House3/text.inc" + .include "data/maps/CeruleanCity_PokemonCenter_1F/text.inc" + .include "data/maps/CeruleanCity_Gym/text.inc" + .include "data/maps/CeruleanCity_BikeShop/text.inc" + .include "data/maps/CeruleanCity_Mart/text.inc" + .include "data/maps/CeruleanCity_House4/text.inc" + .include "data/maps/CeruleanCity_House5/text.inc" + .include "data/maps/LavenderTown_PokemonCenter_1F/text.inc" + .include "data/maps/LavenderTown_VolunteerPokemonHouse/text.inc" + .include "data/maps/LavenderTown_House1/text.inc" + .include "data/maps/LavenderTown_House2/text.inc" + .include "data/maps/LavenderTown_Mart/text.inc" + .include "data/maps/VermilionCity_House1/text.inc" + .include "data/maps/VermilionCity_PokemonCenter_1F/text.inc" + .include "data/maps/VermilionCity_PokemonFanClub/text.inc" + .include "data/maps/VermilionCity_Mart/text.inc" + .include "data/maps/VermilionCity_Gym/text.inc" + .include "data/maps/VermilionCity_House3/text.inc" + .include "data/maps/CeladonCity_DepartmentStore_1F/text.inc" + .include "data/maps/CeladonCity_DepartmentStore_2F/text.inc" + .include "data/maps/CeladonCity_DepartmentStore_3F/text.inc" + .include "data/maps/CeladonCity_DepartmentStore_4F/text.inc" + .include "data/maps/CeladonCity_DepartmentStore_5F/text.inc" + .include "data/maps/CeladonCity_DepartmentStore_Roof/text.inc" + .include "data/maps/CeladonCity_Condominiums_1F/text.inc" + .include "data/maps/CeladonCity_Condominiums_2F/text.inc" + .include "data/maps/CeladonCity_Condominiums_3F/text.inc" + .include "data/maps/CeladonCity_Condominiums_Roof/text.inc" + .include "data/maps/CeladonCity_Condominiums_RoofRoom/text.inc" + .include "data/maps/CeladonCity_PokemonCenter_1F/text.inc" + .include "data/maps/CeladonCity_GameCorner/text.inc" + .include "data/maps/CeladonCity_GameCorner_PrizeRoom/text.inc" + .include "data/maps/CeladonCity_Gym/text.inc" + .include "data/maps/CeladonCity_Restaurant/text.inc" + .include "data/maps/CeladonCity_House1/text.inc" + .include "data/maps/CeladonCity_Hotel/text.inc" + .include "data/maps/FuchsiaCity_SafariZone_Entrance/text.inc" + .include "data/maps/FuchsiaCity_Mart/text.inc" + .include "data/maps/FuchsiaCity_ZooBuilding/text.inc" + .include "data/maps/FuchsiaCity_Gym/text.inc" + .include "data/maps/FuchsiaCity_House1/text.inc" + .include "data/maps/FuchsiaCity_PokemonCenter_1F/text.inc" + .include "data/maps/FuchsiaCity_Building1/text.inc" + .include "data/maps/FuchsiaCity_House2/text.inc" + .include "data/maps/FuchsiaCity_House3/text.inc" + .include "data/maps/CinnabarIsland_Gym/text.inc" + .include "data/maps/CinnabarIsland_PokemonLab_Entrance/text.inc" + .include "data/maps/CinnabarIsland_PokemonLab_Lounge/text.inc" + .include "data/maps/CinnabarIsland_PokemonLab_ResearchRoom/text.inc" + .include "data/maps/CinnabarIsland_PokemonLab_ExperimentRoom/text.inc" + .include "data/maps/CinnabarIsland_PokemonCenter_1F/text.inc" + .include "data/maps/CinnabarIsland_Mart/text.inc" + .include "data/maps/IndigoPlateau_PokemonCenter_1F/text.inc" + .include "data/maps/SaffronCity_House1_1F/text.inc" + .include "data/maps/SaffronCity_House1_2F/text.inc" + .include "data/maps/SaffronCity_Dojo/text.inc" + .include "data/maps/SaffronCity_Gym/text.inc" + .include "data/maps/SaffronCity_House2/text.inc" + .include "data/maps/SaffronCity_Mart/text.inc" + .include "data/maps/SaffronCity_PokemonCenter_1F/text.inc" + .include "data/maps/SaffronCity_House3/text.inc" + .include "data/maps/SaffronCity_PokemonTrainerFanClub/text.inc" + .include "data/maps/Route2_ViridianForest_SouthEntrance/text.inc" + .include "data/maps/Route2_House/text.inc" + .include "data/maps/Route2_EastBuilding/text.inc" + .include "data/maps/Route2_ViridianForest_NorthEntrance/text.inc" + .include "data/maps/Route4_PokemonCenter_1F/text.inc" + .include "data/maps/Route5_SouthEntrance/text.inc" + .include "data/maps/Route6_NorthEntrance/text.inc" + .include "data/maps/Route7_EastEntrance/text.inc" + .include "data/maps/Route8_WestEntrance/text.inc" + .include "data/maps/Route10_PokemonCenter_1F/text.inc" + .include "data/maps/Route11_EastEntrance_1F/text.inc" + .include "data/maps/Route11_EastEntrance_2F/text.inc" + .include "data/maps/Route12_NorthEntrance_1F/text.inc" + .include "data/maps/Route12_NorthEntrance_2F/text.inc" + .include "data/maps/Route12_FishingHouse/text.inc" + .include "data/maps/Route15_WestEntrance_1F/text.inc" + .include "data/maps/Route15_WestEntrance_2F/text.inc" + .include "data/maps/Route16_House/text.inc" + .include "data/maps/Route16_NorthEntrance_1F/text.inc" + .include "data/maps/Route16_NorthEntrance_2F/text.inc" + .include "data/maps/Route18_EastEntrance_1F/text.inc" + .include "data/maps/Route18_EastEntrance_2F/text.inc" + .include "data/maps/Route25_SeaCottage/text.inc" + .include "data/maps/SevenIsland_House_Room1/text.inc" + .include "data/maps/SevenIsland_Mart/text.inc" + .include "data/maps/SevenIsland_PokemonCenter_1F/text.inc" + .include "data/maps/OneIsland_PokemonCenter_1F/text.inc" + .include "data/maps/OneIsland_House1/text.inc" + .include "data/maps/OneIsland_House2/text.inc" + .include "data/maps/TwoIsland_JoyfulGameCorner/text.inc" + .include "data/maps/TwoIsland_House/text.inc" + .include "data/maps/TwoIsland_PokemonCenter_1F/text.inc" + .include "data/maps/ThreeIsland_House1/text.inc" + .include "data/maps/ThreeIsland_PokemonCenter_1F/text.inc" + .include "data/maps/ThreeIsland_Mart/text.inc" + .include "data/maps/ThreeIsland_House2/text.inc" + .include "data/maps/ThreeIsland_House3/text.inc" + .include "data/maps/ThreeIsland_House4/text.inc" + .include "data/maps/ThreeIsland_House5/text.inc" + .include "data/maps/FourIsland_PokemonCenter_1F/text.inc" + .include "data/maps/FourIsland_House1/text.inc" + .include "data/maps/FourIsland_LoreleisHouse/text.inc" + .include "data/maps/FourIsland_Mart/text.inc" + .include "data/maps/FiveIsland_PokemonCenter_1F/text.inc" + .include "data/maps/FiveIsland_House1/text.inc" + .include "data/maps/FiveIsland_House2/text.inc" + .include "data/maps/SixIsland_PokemonCenter_1F/text.inc" + .include "data/maps/SixIsland_House/text.inc" + .include "data/maps/SixIsland_Mart/text.inc" + .include "data/maps/FiveIsland_ResortGorgeous_House/text.inc" + .include "data/maps/SixIsland_WaterPath_House1/text.inc" + .include "data/maps/SixIsland_WaterPath_House2/text.inc" + .include "data/maps/SevenIsland_SevaultCanyon_House/text.inc" + +gStdScript_2:: @ 81A4E3F + lock + faceplayer + message 0x0 + waitmessage + waitbuttonpress + release + return + +gStdScript_3:: @ 81A4E4A + lockall + message 0x0 + waitmessage + waitbuttonpress + releaseall + return + +gStdScript_4:: @ 81A4E54 + message 0x0 + waitmessage + waitbuttonpress + return + +gStdScript_5:: @ 81A4E5C + message 0x0 + waitmessage + yesnobox 20, 8 + return + +gStdScript_ItemMessageAndFanfare:: @ 81A4E66 + textcolor 3 + compare_var_to_value VAR_0x8002, MUS_FANFA1 + call_if eq, EventScript_1A4EA2 + compare_var_to_value VAR_0x8002, MUS_FAN5 + call_if eq, EventScript_1A4EA6 + message 0x0 + waitmessage + waitfanfare + compare_var_to_value VAR_0x8002, MUS_FANFA1 + call_if eq, EventScript_1A4EAA + giveitem VAR_0x8000, VAR_0x8001, 8 + call EventScript_1A6675 + return + +EventScript_1A4EA2:: @ 81A4EA2 + playfanfare MUS_FANFA1 + return + +EventScript_1A4EA6:: @ 81A4EA6 + playfanfare MUS_FAN5 + return + +EventScript_1A4EAA:: @ 81A4EAA + delay 50 + return + +EventScript_1A4EAE:: @ 81A4EAE + return + +EventScript_1A4EAF:: @ 81A4EAF + special Field_AskSaveTheGame + waitstate + return + +gUnknown_81A4EB4:: @ 81A4EB4 + lock + special PlayTrainerEncounterMusic + special ScrSpecial_EndTrainerApproach + waitstate + goto EventScript_1A4FC7 + +EventScript_TryDoNormalTrainerBattle:: @ 81A4EC1 + lock + faceplayer + applymovement VAR_LAST_TALKED, Movement_1A4FC5 + waitmovement 0 + specialvar VAR_RESULT, ScrSpecial_HasTrainerBeenFought + compare_var_to_value VAR_RESULT, 0 + goto_if ne, EventScript_1A4EE8 + special PlayTrainerEncounterMusic + special SetUpTrainerMovement + goto EventScript_1A4FC7 + +EventScript_1A4EE8:: @ 81A4EE8 + ontrainerbattleend + +EventScript_TryDoDoubleTrainerBattle:: @ 81A4EE9 + lock + faceplayer + call EventScript_1A4FBA + specialvar VAR_RESULT, ScrSpecial_HasTrainerBeenFought + compare_var_to_value VAR_RESULT, 0 + goto_if ne, EventScript_1A4F20 + special CheckForAlivePartyMons + compare_var_to_value VAR_RESULT, 0 + goto_if ne, EventScript_1A4F19 + special PlayTrainerEncounterMusic + special SetUpTrainerMovement + goto EventScript_1A4FC7 + +EventScript_1A4F19:: @ 81A4F19 + special ScrSpecial_ShowTrainerNonBattlingSpeech + waitmessage + waitbuttonpress + release + end + +EventScript_1A4F20:: @ 81A4F20 + ontrainerbattleend + +EventScript_DoTrainerBattle:: @ 81A4F21 + applymovement VAR_LAST_TALKED, Movement_1A4FC5 + waitmovement 0 + special PlayTrainerEncounterMusic + special sub_8110AB4 + compare_var_to_value VAR_RESULT, 2 + goto_if eq, EventScript_1A501A + battlebegin + ontrainerbattleend + +EventScript_TryDoRematchBattle:: @ 81A4F3E + call EventScript_1A4FBA + specialvar VAR_RESULT, ScrSpecial_GetTrainerEyeRematchFlag + compare_var_to_value VAR_RESULT, 0 + goto_if eq, EventScript_1A4F72 + special PlayTrainerEncounterMusic + special SetUpTrainerMovement + special ScrSpecial_ShowTrainerIntroSpeech + waitmessage + waitbuttonpress + special sub_8110AB4 + compare_var_to_value VAR_RESULT, 2 + goto_if eq, EventScript_1A4FB8 + special ScrSpecial_StartTrainerEyeRematch + waitstate + releaseall + end + +EventScript_1A4F72:: @ 81A4F72 + ontrainerbattleend + +EventScript_TryDoDoubleRematchBattle:: @ 81A4F73 + specialvar VAR_RESULT, ScrSpecial_GetTrainerEyeRematchFlag + compare_var_to_value VAR_RESULT, 0 + goto_if eq, EventScript_1A4FB0 + special CheckForAlivePartyMons + compare_var_to_value VAR_RESULT, 0 + goto_if ne, EventScript_1A4FB1 + special PlayTrainerEncounterMusic + special SetUpTrainerMovement + special ScrSpecial_ShowTrainerIntroSpeech + waitmessage + waitbuttonpress + special sub_8110AB4 + compare_var_to_value VAR_RESULT, 2 + goto_if eq, EventScript_1A4FB8 + special ScrSpecial_StartTrainerEyeRematch + waitstate + releaseall + end + +EventScript_1A4FB0:: @ 81A4FB0 + ontrainerbattleend + +EventScript_1A4FB1:: @ 81A4FB1 + special ScrSpecial_ShowTrainerNonBattlingSpeech + waitmessage + waitbuttonpress + release + end + +EventScript_1A4FB8:: @ 81A4FB8 + releaseall + end + +EventScript_1A4FBA:: @ 81A4FBA + applymovement VAR_LAST_TALKED, Movement_1A4FC5 + waitmovement 0 + return + +Movement_1A4FC5:: @ 81A4FC5 + step_67 + step_end + +EventScript_1A4FC7:: @ 81A4FC7 + special ScrSpecial_ShowTrainerIntroSpeech + waitmessage + waitbuttonpress + special sub_8110AB4 + compare_var_to_value VAR_RESULT, 2 + goto_if eq, EventScript_1A501A + battlebegin + specialvar VAR_RESULT, ScrSpecial_GetTrainerBattleMode + compare_var_to_value VAR_RESULT, 0 + goto_if eq, EventScript_1A5017 + compare_var_to_value VAR_RESULT, 2 + goto_if eq, EventScript_1A5019 + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1A5019 + compare_var_to_value VAR_RESULT, 6 + goto_if eq, EventScript_1A5019 + compare_var_to_value VAR_RESULT, 8 + goto_if eq, EventScript_1A5019 + +EventScript_1A5017:: @ 81A5017 + releaseall + end + +EventScript_1A5019:: @ 81A5019 + ontrainerbattleendgoto + +EventScript_1A501A:: @ 81A501A + special SetBattledTrainerFlag + releaseall + end + +gStdScript_Message_WaitButton_AndRelease:: @ 81A501F + message 0x0 + waitmessage + waitbuttonpress + release + return + +gUnknown_81A5028:: @ 81A5028 + .string "Would you like to mix records with\n" + .string "other TRAINERS?$" + +Text_1A505B:: @ 81A505B + .string "We hope to see you again!$" + +Text_1A5075:: @ 81A5075 + .string "{PLAYER} booted up the PC.$" + +gUnknown_81A508A:: @ 81A508A + .string "Which PC should be accessed?$" + +Text_1A50A7:: @ 81A50A7 + .string "Accessed Someone's PC.$" + +Text_1A50BE:: @ 81A50BE + .string "POKéMON Storage System opened.$" + +Text_1A50DD:: @ 81A50DD + .string "Accessed {PLAYER}'s PC.$" + +Text_1A50EF:: @ 81A50EF + .string "Accessed BILL's PC.$" + +Text_1A5103:: @ 81A5103 + .string "Welcome to the POKéMON CABLE CLUB\n" + .string "TRADE CENTER.$" + +Text_1A5133:: @ 81A5133 + .string "Welcome to the POKéMON CABLE CLUB\n" + .string "COLOSSEUM.$" + +Text_1A5160:: @ 81A5160 + .string "Welcome to the POKéMON CABLE CLUB\n" + .string "TIME CAPSULE.$" + +gUnknown_81A5190:: @ 81A5190 + .string "Please come again!$" + +Text_1A51A3:: @ 81A51A3 + .string "Welcome!\p" + .string "We're having a discount sale today!$" + +Text_1A51D0:: @ 81A51D0 + .string "{PLAYER}{KUN}, welcome!\p" + .string "What can I do for you?$" + +Text_1A51F6:: @ 81A51F6 + .string "Obtained the {STR_VAR_2}!$" + +gUnknown_81A5207:: @ 81A5207 + .string "The BAG is full…$" + +gUnknown_81A5218:: @ 81A5218 + .string "{PLAYER} put the {STR_VAR_2}\n" + .string "in the {STR_VAR_3}.$" + +Text_1A5231:: @ 81A5231 + .string "{PLAYER} found one {STR_VAR_2}!$" + +gUnknown_81A5242:: @ 81A5242 + .string "Too bad!\n" + .string "The BAG is full…$" + +Text_1A525C:: @ 81A525C + .string "{PLAYER} found\n" + .string "{STR_VAR_1} {STR_VAR_2}!$" + +Text_1A526C:: @ 81A526C + .string "{PLAYER} put the COINS away in\n" + .string "the COIN CASE.$" + +Text_1A5294:: @ 81A5294 + .string "Too bad!\n" + .string "The COIN CASE is full…$" + +Text_1A52B4:: @ 81A52B4 + .string "Too bad!\n" + .string "There's nothing to put them in…$" + +Text_1A52DD:: @ 81A52DD + .string "{PLAYER} found\n" + .string "{STR_VAR_1} {STR_VAR_2}(s)!$" + +Text_1A52F0:: @ 81A52F0 + .string "Obtained the {STR_VAR_2}!$" + +Text_1A5301:: @ 81A5301 + .string "Too bad! There's no room left for\n" + .string "another {STR_VAR_2}…$" + +gUnknown_81A532F:: @ 81A532F + .string "The {STR_VAR_2} was transferred\n" + .string "to the PC.$" + +Text_1A5351:: @ 81A5351 + .string "ã˜ã‚…ã‚“ã³ã¡ã‚…ã†ã§ã™ï¼$" + +Text_1A535C:: @ 81A535C + .string "Which floor do you want?$" + +Text_1A5375:: @ 81A5375 + .string "An item in the BAG can be\n" + .string "registered to SELECT for easy use.$" + +Text_1A53B2:: @ 81A53B2 + .string "パソコンã«\n" + .string "ãƒã‚±ãƒ¢ãƒ³ã€€ãƒˆãƒ¬ãƒ¼ãƒŠãƒ¼ã€€ã“ã†ã–ã®\l" + .string "メールãŒã€€ãã¦ã„ã‚‹ï¼\p" + .string "‥‥ ‥‥ ‥‥\p" + .string "ãƒã‚±ãƒ¢ãƒ³ãŒã€€ãŠã¼ãˆã‚‰ã‚Œã‚‹ã€€ã‚ã–ã¯ã€€4ã¤ï¼\p" + .string "ã©ã‚“ãªã€€ã‚ã–を ãŠã¼ãˆã•ã›ã‚‹ã‹ã§\n" + .string "トレーナーã®ã€€ã˜ã¤ã‚Šã‚‡ããŒã€€ã¨ã‚れã¾ã™ï¼\p" + .string "‥‥ ‥‥ ‥‥$" + +gUnknown_81A5420:: @ 81A5420 + .string "{PLAYER} booted up the PC.$" + +Text_1A5435:: @ 81A5435 + .string "ã¤ã†ã—ã‚“ã¯ã€€ã‚­ãƒ£ãƒ³ã‚»ãƒ«ã•れã¾ã—ãŸ$" + +Text_1A5446:: @ 81A5446 + .string "Want to give a nickname to the\n" + .string "{STR_VAR_2} you received?$" + +gText_PkmnFainted3:: @ 81A5476 + .string "{STR_VAR_1} fainted…\p" + .string "$" + +Text_1A5483:: @ 81A5483 + .string "Welcome to our POKéMON CENTER!\p" + .string "Would you like me to heal your\n" + .string "POKéMON back to perfect health?$" + +Text_1A54E1:: @ 81A54E1 + .string "Okay, I'll take your POKéMON for a\n" + .string "few seconds.$" + +Text_1A5511:: @ 81A5511 + .string "We hope to see you again!$" + +Text_1A552B:: @ 81A552B + .string "Thank you for waiting.\n" + .string "We've restored your POKéMON to\l" + .string "full health.$" + +Text_1A556E:: @ 81A556E + .string "The water is dyed a deep blue…\n" + .string "Would you like to SURF?$" + +Text_1A55A5:: @ 81A55A5 + .string "{STR_VAR_1} used SURF!$" + +Text_1A55B3:: @ 81A55B3 + .string "The current is much too fast!\n" + .string "SURF can't be used here…$" + +Text_1A55EA:: @ 81A55EA + .string "ã©ã“ã‹ã€€ã¨ãŠãã®ã€€ã¨ã³ã‚‰ãŒ\n" + .string "ã²ã‚‰ã„ãŸã‚ˆã†ãªã€€ãŠã¨ã â€¥â€¥$" + +Text_1A5606:: @ 81A5606 + .string "ã‹ã¹ã«\n" + .string "ãŠãŠããªã€€ã‚ãªãŒã€€ã‚ã„ã¦ã„ã‚‹ï¼$" + +Text_1A561A:: @ 81A561A + .string "I'm terribly sorry.\n" + .string "The POKéMON WIRELESS CLUB is\l" + .string "undergoing adjustments now.$" + +Text_1A5667:: @ 81A5667 + .string "It appears to be undergoing\n" + .string "adjustments…$" + +Text_1A5690:: @ 81A5690 + .string "{PLAYER} handed over the\n" + .string "{STR_VAR_1}.$" + +gUnknown_81A56A7:: @ 81A56A7 + .string "Do you want to give a nickname to\n" + .string "this {STR_VAR_1}?$" + +Text_1A56D2:: @ 81A56D2 + .string "ãŠãƒƒï¼ã€€ãƒ€ã‚¦ã‚¸ãƒ³ã‚°ãƒžã‚·ãƒ³ãŒ\n" + .string "ã¯ã‚“ã®ã†ã€€ã—ã¦ã‚‹ãžï¼\p" + .string "ã¾ã—ãŸã«ã€€ã©ã†ããŒã€€ã†ã¾ã£ã¦ã‚‹ï¼\n" + .string "‥‥‥$" + +Text_1A5700:: @ 81A5700 + .string "{PLAYER} dug up one {STR_VAR_2}\n" + .string "from deep in the ground.$" + +Text_1A572A:: @ 81A572A + .string "Only truly skilled TRAINERS are\n" + .string "allowed through.\p" + .string "You don't have the {STR_VAR_1}\n" + .string "yet!$" + +Text_1A5776:: @ 81A5776 + .string "Rules are rules.\n" + .string "I can't let you pass.$" + +Text_1A579D:: @ 81A579D + .string "Oh! That is the {STR_VAR_1}!\n" + .string "Go right ahead.$" + +Text_1A57C1:: @ 81A57C1 + .string "You can pass here only if you have\n" + .string "the {STR_VAR_1}.\p" + .string "You don't have the {STR_VAR_1}\n" + .string "yet.\p" + .string "You have to have it to get to\n" + .string "the POKéMON LEAGUE.$" + +Text_1A5839:: @ 81A5839 + .string "You can pass here only if you have\n" + .string "the {STR_VAR_1}.\p" + .string "Oh! That is the {STR_VAR_1}!{PAUSE_MUSIC}{PLAY_BGM}{MUS_FANFA1}{PAUSE 0x60}{RESUME_MUSIC}\p" + .string "Okay, then.\n" + .string "Please, go right ahead.$" + +Text_1A58A7:: @ 81A58A7 + .string "Let's see…\n" + .string "Uh-oh! You have caught only\l" + .string "{STR_VAR_3} kinds of POKéMON!\p" + .string "You need {STR_VAR_1} kinds\n" + .string "if you want the {STR_VAR_2}.$" + +Text_1A5909:: @ 81A5909 + .string "…Oh. I see.\p" + .string "When you get {STR_VAR_1} kinds of POKéMON,\n" + .string "come back for the {STR_VAR_2}.$" + +Text_1A594D:: @ 81A594D + .string "Oh! I see you don't have any\n" + .string "room for the {STR_VAR_2}.$" + +gUnknown_81A597B:: @ 81A597B + .string "I'm looking for the POKéMON\n" + .string "{STR_VAR_1}!\p" + .string "Wanna trade one for my\n" + .string "{STR_VAR_2}?$" + +gUnknown_81A59B6:: @ 81A59B6 + .string "Awww!\n" + .string "Oh, well…$" + +gUnknown_81A59C6:: @ 81A59C6 + .string "What?\n" + .string "That's no {STR_VAR_1}!$" + +gUnknown_81A59DA:: @ 81A59DA + .string "Hey, thanks!$" + +gUnknown_81A59E7:: @ 81A59E7 + .string "Isn't my old {STR_VAR_2} great?$" + +gUnknown_81A59FE:: @ 81A59FE + .string "Hello, there! Do you happen to\n" + .string "have a {STR_VAR_1}?\p" + .string "Would you agree to a trade for\n" + .string "my {STR_VAR_2}?$" + +gUnknown_81A5A4E:: @ 81A5A4E + .string "Well, if you don't want to…$" + +gUnknown_81A5A6A:: @ 81A5A6A + .string "Hmmm?\n" + .string "This isn't a {STR_VAR_1}.\p" + .string "Think of me if you get one.$" + +gUnknown_81A5A9D:: @ 81A5A9D + .string "Thanks!$" + +gUnknown_81A5AA5:: @ 81A5AA5 + .string "The {STR_VAR_2} that I traded you,\n" + .string "has it grown stronger?$" + +gUnknown_81A5AD6:: @ 81A5AD6 + .string "Hi!\n" + .string "Do you have a {STR_VAR_1}?\p" + .string "Want to trade it for my\n" + .string "{STR_VAR_2}?$" + +gUnknown_81A5B08:: @ 81A5B08 + .string "That's too bad.$" + +gUnknown_81A5B18:: @ 81A5B18 + .string "…This is no {STR_VAR_1}.\p" + .string "If you get one, trade it with me.$" + +gUnknown_81A5B4A:: @ 81A5B4A + .string "Thanks, you're a pal!$" + +gUnknown_81A5B60:: @ 81A5B60 + .string "How is my old {STR_VAR_2}?\n" + .string "My {STR_VAR_1} is doing great!$" + +Text_1A5B88:: @ 81A5B88 + .string "Bingo!\n" + .string "The CARD KEY opened the door!$" + +Text_1A5BAD:: @ 81A5BAD + .string "No!\n" + .string "It needs a CARD KEY!$" + +Text_1A5BC6:: @ 81A5BC6 + .string "Accessed PROF. OAK's PC…\p" + .string "Accessed the POKéDEX Rating\n" + .string "System…$" + +Text_1A5C03:: @ 81A5C03 + .string "Would you like to have your\n" + .string "POKéDEX rated?$" + +Text_1A5C2E:: @ 81A5C2E + .string "Closed link to PROF. OAK's PC.$" + +Text_1A5C4D:: @ 81A5C4D + .string "Someone's voice rang out,\n" + .string "“Don't run away!â€$" + +Text_1A5C79:: @ 81A5C79 + .string "ãˆã£ã¨ãƒ¼\n" + .string "{STR_VAR_2}ãŒã€€ã¿ã¦ã¿ãŸã„ãªãƒ¼\p" + .string "ãれも {STR_VAR_1}{STR_VAR_3}\n" + .string "{STR_VAR_2}ãŒã€€ã¿ã¦ã¿ãŸã„ãªãƒ¼$" + +Text_1A5C9F:: @ 81A5C9F + .string "ã‚ãー ã™ã”ã„ï¼\n" + .string "{STR_VAR_1}{STR_VAR_3}{STR_VAR_2}ã ãƒ¼ï¼\p" + .string "ã‚りãŒã¨ãƒ¼\n" + .string "ã¾ãŸã€€ã‚ˆã‚ã—ãã­ãƒ¼ï¼$" + +Text_1A5CC3:: @ 81A5CC3 + .string "ãれã£ã€€ã¡ãŒã†ã‚ˆãƒ¼ï¼$" + +Text_1A5CCE:: @ 81A5CCE + .string "ãã£ã‹â€¥$" + +Text_1A5CD3:: @ 81A5CD3 + .string "ドアã¯ã€€ã—ã¾ã£ã¦ã„る‥$" + +Text_1A5CDF:: @ 81A5CDF + .string "The door is open…$" + +Text_1A5CF1:: @ 81A5CF1 + .string "{STR_VAR_2} was transferred to\n" + .string "Someone's PC.\p" + .string "It was placed in \n" + .string "BOX “{STR_VAR_1}.â€$" + +Text_1A5D31:: @ 81A5D31 + .string "{STR_VAR_2} was transferred to\n" + .string "BILL'S PC.\p" + .string "It was placed in \n" + .string "BOX “{STR_VAR_1}.â€$" + +Text_1A5D6E:: @ 81A5D6E + .string "BOX “{STR_VAR_3}†on\n" + .string "Someone's PC was full.\p" + .string "{STR_VAR_2} was transferred to\n" + .string "BOX “{STR_VAR_1}.â€$" + +Text_1A5DB1:: @ 81A5DB1 + .string "BOX “{STR_VAR_3}†on\n" + .string "BILL'S PC was full.\p" + .string "{STR_VAR_2} was transferred to\n" + .string "BOX “{STR_VAR_1}.â€$" + +Text_1A5DF1:: @ 81A5DF1 + .string "{PLAYER} obtained\n" + .string "the {STR_VAR_1}!$" + +Text_1A5E05:: @ 81A5E05 + .string "ãƒã‚±ãƒ¢ãƒ³ã‚’ もã¡ãれãªã„ã®ã§\n" + .string "パソコンã®ã€€ãƒœãƒƒã‚¯ã‚¹â€œ{STR_VAR_1}â€ã€€ã«\l" + .string "{STR_VAR_2}を ã¦ã‚“ãã†ã—ãŸï¼$" + +gUnknown_81A5E31:: @ 81A5E31 + .string "There's no more room for POKéMON!\p" + .string "The POKéMON BOXES are full and\n" + .string "can't accept any more!$" + +Text_1A5E89:: @ 81A5E89 + .string "First, you should restore your\n" + .string "POKéMON to full health.$" + +Text_1A5EC0:: @ 81A5EC0 + .string "Your POKéMON have been healed\n" + .string "to perfect health.\p" + .string "If your POKéMON's energy, HP,\n" + .string "is down, please come see us.\p" + .string "If you're planning to go far in the\n" + .string "field, you should buy some POTIONS\l" + .string "at the POKéMON MART.\p" + .string "We hope you excel!$" + +Text_1A5F9B:: @ 81A5F9B + .string "Your POKéMON have been healed\n" + .string "to perfect health.\p" + .string "We hope you excel!$" + +Text_1A5FDF:: @ 81A5FDF + .string "MOM: {PLAYER}!\n" + .string "Welcome home.\p" + .string "It sounds like you had quite\n" + .string "an experience.\p" + .string "Maybe you should take a quick\n" + .string "rest.$" + +Text_1A6046:: @ 81A6046 + .string "MOM: Oh, good! You and your\n" + .string "POKéMON are looking great.\p" + .string "I just heard from PROF. OAK.\p" + .string "He said that POKéMON's energy is\n" + .string "measured in HP.\p" + .string "If your POKéMON lose their HP,\n" + .string "you can restore them at any\l" + .string "POKéMON CENTER.\p" + .string "If you're going to travel far away,\n" + .string "the smart TRAINER stocks up on\l" + .string "POTIONS at the POKéMON MART.\p" + .string "Make me proud, honey!\p" + .string "Take care!$" + +Text_1A6197:: @ 81A6197 + .string "{PLAYER} is out of usable\n" + .string "POKéMON!\p" + .string "{PLAYER} panicked and lost Â¥{STR_VAR_1}…\p" + .string "… … … …\p" + .string "{PLAYER} whited out!$" + +Text_1A61E5:: @ 81A61E5 + .string "{PLAYER} is out of usable\n" + .string "POKéMON!\p" + .string "{PLAYER} whited out!$" + +Text_1A6211:: @ 81A6211 + .string "Hi, there!\n" + .string "May I help you?$" + +Text_1A622C:: @ 81A622C + .string "There is a questionnaire.\n" + .string "Would you like to fill it out?$" + +Text_1A6265:: @ 81A6265 + .string "Thank you for taking the time to\n" + .string "fill out our questionnaire.\p" + .string "Your feedback will be used for\n" + .string "future reference.$" + +Text_1A62D3:: @ 81A62D3 + .string "Oh, hello!\n" + .string "You know those words?\p" + .string "That means you must know about\n" + .string "the MYSTERY GIFT.\p" + .string "From now on, you should be\n" + .string "receiving MYSTERY GIFTS!$" + +Text_1A6359:: @ 81A6359 + .string "Once you save your game, you can\n" + .string "access the MYSTERY GIFT.$" + +Text_1A6393:: @ 81A6393 + .string "Thank you for accessing the\n" + .string "MYSTERY GIFT System.$" + +Text_1A63C4:: @ 81A63C4 + .string "The {STR_VAR_1} flew away!$" + +Text_1A63D6:: @ 81A63D6 + .string "ベッドãŒã€€ã‚る‥‥\n" + .string "ã‚„ã™ã‚“ã§ã„ã“ã†$" + +Text_1A63E8:: @ 81A63E8 + .string "{PLAYER} found a {STR_VAR_2}!\n" + .string "It contains {STR_VAR_1}.$" + +Text_1A6407:: @ 81A6407 + .string "ãŠã¤ã‹ã‚Œã•ã‚“ï¼\n" + .string "ã©ã“ã«ã€€ã„ããŸã„ã‚“ã ï¼Ÿ$" + +Text_1A641B:: @ 81A641B + .string "All right!\n" + .string "All aboard SEAGALLOP HI-SPEED {STR_VAR_1}!$" + +Text_1A6448:: @ 81A6448 + .string "Gyaoo!$" + +Text_1A644F:: @ 81A644F + .string "This move can be learned only\n" + .string "once. Is that okay?$" + +EventScript_ResetAllMapFlags:: @ 81A6481 + setflag FLAG_HIDE_OAK_IN_HIS_LAB + setflag FLAG_HIDE_OAK_IN_PALLET_TOWN + setflag FLAG_HIDE_BILL_HUMAN_SEA_COTTAGE + setflag FLAG_HIDE_PEWTER_CITY_RUNNING_SHOES_GUY + setflag FLAG_HIDE_POKEHOUSE_FUJI + setflag FLAG_HIDE_LIFT_KEY + setflag FLAG_HIDE_SILPH_SCOPE + setflag FLAG_HIDE_CERULEAN_RIVAL + setflag FLAG_HIDE_SS_ANNE_RIVAL + setflag FLAG_HIDE_VERMILION_CITY_OAKS_AIDE + setflag FLAG_HIDE_SAFFRON_CIVILIANS + setflag FLAG_HIDE_ROUTE_22_RIVAL + setflag FLAG_HIDE_OAK_IN_CHAMP_ROOM + setflag FLAG_HIDE_CREDITS_RIVAL + setflag FLAG_HIDE_CREDITS_OAK + setflag FLAG_HIDE_CINNABAR_BILL + setflag FLAG_HIDE_CINNABAR_SEAGALLOP + setflag FLAG_HIDE_CINNABAR_POKECENTER_BILL + setflag FLAG_HIDE_LORELEI_IN_HER_HOUSE + setflag FLAG_HIDE_SAFFRON_FAN_CLUB_BLACKBELT + setflag FLAG_HIDE_SAFFRON_FAN_CLUB_ROCKER + setflag FLAG_HIDE_SAFFRON_FAN_CLUB_WOMAN + setflag FLAG_HIDE_SAFFRON_FAN_CLUB_BEAUTY + setflag FLAG_HIDE_TWO_ISLAND_GAME_CORNER_LOSTELLE + setflag FLAG_HIDE_TWO_ISLAND_GAME_CORNER_BIKER + setflag FLAG_HIDE_TWO_ISLAND_WOMAN + setflag FLAG_HIDE_TWO_ISLAND_BEAUTY + setflag FLAG_HIDE_TWO_ISLAND_SUPER_NERD + setflag FLAG_HIDE_LOSTELLE_IN_HER_HOME + setflag FLAG_HIDE_THREE_ISLAND_LONE_BIKER + setflag FLAG_HIDE_FOUR_ISLAND_RIVAL + setflag FLAG_HIDE_DOTTED_HOLE_SCIENTIST + setflag FLAG_HIDE_RESORT_GORGEOUS_SELPHY + setflag FLAG_HIDE_RESORT_GORGEOUS_INSIDE_SELPHY + setflag FLAG_HIDE_SELPHYS_BUTLER + setflag FLAG_HIDE_DEOXYS + setflag FLAG_HIDE_LORELEI_HOUSE_MEOWTH_DOLL + setflag FLAG_HIDE_LORELEI_HOUSE_CHANSEY_DOLL + setflag FLAG_HIDE_LORELEIS_HOUSE_NIDORAN_F_DOLL + setflag FLAG_HIDE_LORELEI_HOUSE_JIGGLYPUFF_DOLL + setflag FLAG_HIDE_LORELEIS_HOUSE_NIDORAN_M_DOLL + setflag FLAG_HIDE_LORELEIS_HOUSE_FEAROW_DOLL + setflag FLAG_HIDE_LORELEIS_HOUSE_PIDGEOT_DOLL + setflag FLAG_HIDE_LORELEIS_HOUSE_LAPRAS_DOLL + setflag FLAG_HIDE_POSTGAME_GOSSIPERS + setflag FLAG_HIDE_FAME_CHECKER_ERIKA_JOURNALS + setflag FLAG_HIDE_FAME_CHECKER_KOGA_JOURNAL + setflag FLAG_HIDE_FAME_CHECKER_LT_SURGE_JOURNAL + setflag FLAG_HIDE_SAFFRON_CITY_POKECENTER_SABRINA_JOURNALS + setvar VAR_MASSAGE_COOLDOWN_STEP_COUNTER, 500 + end + +EventScript_1A651A:: @ 81A651A + clearflag FLAG_HIDE_POSTGAME_GOSSIPERS + call EventScript_1A6551 + special sub_81130A8 + specialvar VAR_RESULT, IsNationalPokedexEnabled + compare_var_to_value VAR_RESULT, 0 + call_if eq, EventScript_1A653B + call EventScript_1A6541 + return + +EventScript_1A653B:: @ 81A653B + setvar VAR_MAP_SCENE_PALLET_TOWN_OAK, 2 + return + +EventScript_1A6541:: @ 81A6541 + clearflag FLAG_LUGIA_FLEW_AWAY + clearflag FLAG_HO_OH_FLEW_AWAY + clearflag FLAG_DEOXYS_FLEW_AWAY + return + +gUnknown_81A654B:: @ 81A654B + call EventScript_1A6551 + end + +EventScript_1A6551:: @ 81A6551 + clearflag FLAG_DEFEATED_LORELEI + clearflag FLAG_DEFEATED_BRUNO + clearflag FLAG_DEFEATED_AGATHA + clearflag FLAG_DEFEATED_LANCE + clearflag FLAG_DEFEATED_CHAMP + cleartrainerflag TRAINER_CHAMPION_FIRST_SQUIRTLE + cleartrainerflag TRAINER_CHAMPION_FIRST_BULBASAUR + cleartrainerflag TRAINER_CHAMPION_FIRST_CHARMANDER + cleartrainerflag TRAINER_CHAMPION_REMATCH_SQUIRTLE + cleartrainerflag TRAINER_CHAMPION_REMATCH_BULBASAUR + cleartrainerflag TRAINER_CHAMPION_REMATCH_CHARMANDER + setvar VAR_MAP_SCENE_POKEMON_LEAGUE, 0 + return + +EventScript_1A6578:: @ 81A6578 + special sub_8110AB4 + compare_var_to_value VAR_RESULT, 2 + goto_if eq, EventScript_1A7AE0 + message Text_1A5483 + waitmessage + multichoice 19, 8, MULTICHOICE_YES_NO, FALSE | (TRUE << 1) + switch VAR_RESULT + case 0, EventScript_1A65B8 + case 1 EventScript_1A6663 + case SCR_MENU_CANCEL, EventScript_1A6663 + end + +EventScript_1A65B8:: @ 81A65B8 + incrementgamestat GAME_STAT_USED_POKECENTER + message Text_1A54E1 + waitmessage + call EventScript_1A65CE + special sub_80CC524 + goto EventScript_1A65EC + end + +EventScript_1A65CE:: @ 81A65CE + applymovement VAR_LAST_TALKED, Movement_1A75E7 + waitmovement 0 + dofieldeffect FLDEFF_POKECENTER_HEAL + waitfieldeffect 25 + applymovement VAR_LAST_TALKED, Movement_1A75ED + waitmovement 0 + special sp000_heal_pokemon + return + +EventScript_1A65EC:: @ 81A65EC + specialvar VAR_RESULT, Special_PlayerIsNotInTrainerTowerLobby + compare_var_to_value VAR_RESULT, 0 + goto_if eq, EventScript_1A661D + specialvar VAR_RESULT, sp182_move_string + copyvar VAR_0x8008, VAR_RESULT + compare_var_to_value VAR_0x8008, 0 + goto_if eq, EventScript_1A661D + compare_var_to_value VAR_0x8008, 1 + goto_if eq, EventScript_1A6636 + end + +EventScript_1A661D:: @ 81A661D + message Text_1A552B + waitmessage + applymovement VAR_LAST_TALKED, Movement_1A666C + waitmovement 0 + msgbox Text_1A5511 + return + +EventScript_1A6636:: @ 81A6636 + checkflag FLAG_SYS_INFORMED_OF_LOCAL_WIRELESS_PLAYER + goto_if TRUE, EventScript_1A661D + msgbox Text_1A552B + setflag FLAG_SYS_INFORMED_OF_LOCAL_WIRELESS_PLAYER + message Text_1BCCCA + waitmessage + applymovement VAR_LAST_TALKED, Movement_1A666C + waitmovement 0 + msgbox Text_1A5511 + return + +EventScript_1A6663:: @ 81A6663 + msgbox Text_1A5511 + return + +Movement_1A666C:: @ 81A666C + step_5b + step_1a + step_end + +EventScript_1A666F:: @ 81A666F + copyvar VAR_MON_BOX_POS, VAR_MON_BOX_ID + return + +EventScript_1A6675:: @ 81A6675 + copyvar VAR_MON_BOX_ID, VAR_MON_BOX_POS + return + +gStdScript_0:: @ 81A667B + copyvar VAR_MON_BOX_POS, VAR_MON_BOX_ID + textcolor 3 + additem VAR_0x8000, VAR_0x8001 + copyvar VAR_0x8007, VAR_RESULT + call EventScript_1A6697 + copyvar VAR_MON_BOX_ID, VAR_MON_BOX_POS + return + +EventScript_1A6697:: @ 81A6697 + bufferitemnameplural 1, VAR_0x8000, VAR_0x8001 + checkitemtype VAR_0x8000 + call EventScript_1A66BC + compare_var_to_value VAR_0x8007, 1 + call_if eq, EventScript_1A6749 + compare_var_to_value VAR_0x8007, 0 + call_if eq, EventScript_1A675E + return + +EventScript_1A66BC:: @ 81A66BC + switch VAR_RESULT + compare_var_to_value VAR_0x8000, 1 + goto_if eq, EventScript_1A66F9 + compare_var_to_value VAR_0x8000, 2 + goto_if eq, EventScript_1A6709 + compare_var_to_value VAR_0x8000, 3 + goto_if eq, EventScript_1A6719 + compare_var_to_value VAR_0x8000, 4 + goto_if eq, EventScript_1A6729 + compare_var_to_value VAR_0x8000, 5 + goto_if eq, EventScript_1A6739 + end + +EventScript_1A66F9:: @ 81A66F9 + getstdstring 2, 24 + compare_var_to_value VAR_0x8007, 1 + call_if eq, EventScript_1A6764 + return + +EventScript_1A6709:: @ 81A6709 + getstdstring 2, 25 + compare_var_to_value VAR_0x8007, 1 + call_if eq, EventScript_1A6764 + return + +EventScript_1A6719:: @ 81A6719 + getstdstring 2, 26 + compare_var_to_value VAR_0x8007, 1 + call_if eq, EventScript_1A6764 + return + +EventScript_1A6729:: @ 81A6729 + getstdstring 2, 27 + compare_var_to_value VAR_0x8007, 1 + call_if eq, EventScript_1A6768 + return + +EventScript_1A6739:: @ 81A6739 + getstdstring 2, 28 + compare_var_to_value VAR_0x8007, 1 + call_if eq, EventScript_1A6764 + return + +EventScript_1A6749:: @ 81A6749 + message Text_1A51F6 + waitfanfare + waitmessage + msgbox gUnknown_81A5218 + setvar VAR_RESULT, 1 + return + +EventScript_1A675E:: @ 81A675E + setvar VAR_RESULT, 0 + return + +EventScript_1A6764:: @ 81A6764 + playfanfare MUS_FANFA1 + return + +EventScript_1A6768:: @ 81A6768 + playfanfare MUS_FANFA1 + return + +gStdScript_7:: @ 81A676C + adddecor VAR_0x8000 + copyvar VAR_0x8007, VAR_RESULT + call EventScript_1A677A + return + +EventScript_1A677A:: @ 81A677A + getdecorname 1, VAR_0x8000 + compare_var_to_value VAR_0x8007, 1 + call_if eq, EventScript_1A6795 + compare_var_to_value VAR_0x8007, 0 + call_if eq, EventScript_1A67AD + return + +EventScript_1A6795:: @ 81A6795 + playfanfare MUS_FANFA4 + message Text_1A52F0 + waitfanfare + waitmessage + msgbox gUnknown_81A532F + setvar VAR_RESULT, 1 + return + +EventScript_1A67AD:: @ 81A67AD + setvar VAR_RESULT, 0 + return + +gStdScript_1:: @ 81A67B3 + lock + faceplayer + waitse + copyvar VAR_0x8004, VAR_0x8000 + copyvar VAR_0x8005, VAR_0x8001 + checkitemspace VAR_0x8000, VAR_0x8001 + copyvar VAR_0x8007, VAR_RESULT + getitemname 1, VAR_0x8000 + checkitemtype VAR_0x8000 + call EventScript_1A66BC + compare_var_to_value VAR_0x8007, 1 + call_if eq, EventScript_1A67EE + compare_var_to_value VAR_0x8007, 0 + call_if eq, EventScript_1A682D + release + return + +EventScript_1A67EE:: @ 81A67EE + removeobject VAR_LAST_TALKED + additem VAR_0x8004, VAR_0x8005 + specialvar VAR_RESULT, Special_ItemIsTM_GetMoveName + copyvar VAR_0x8008, VAR_RESULT + compare_var_to_value VAR_0x8008, 1 + call_if eq, EventScript_1A6821 + compare_var_to_value VAR_0x8008, 0 + call_if eq, EventScript_1A6827 + waitfanfare + waitmessage + msgbox gUnknown_81A5218 + return + +EventScript_1A6821:: @ 81A6821 + message Text_1A63E8 + return + +EventScript_1A6827:: @ 81A6827 + message Text_1A5231 + return + +EventScript_1A682D:: @ 81A682D + msgbox Text_1A51F6 + msgbox gUnknown_81A5242 + setvar VAR_RESULT, 0 + return + +EventScript_PickUpHiddenItem:: @ 81A6843 + lockall + textcolor 3 + waitse + compare_var_to_value VAR_0x8005, 0 + goto_if eq, EventScript_PickUpHiddenCoins + call EventScript_GiveItem + compare_var_to_value VAR_0x8007, 1 + goto_if eq, EventScript_ItemInPocketMessage + compare_var_to_value VAR_0x8007, 0 + goto_if eq, EventScript_BagIsFullMessage + end + +EventScript_GiveItem:: + additem VAR_0x8005, VAR_0x8006 + copyvar VAR_0x8007, VAR_RESULT + getitemname 1, VAR_0x8005 + checkitemtype VAR_0x8005 + call EventScript_1A66BC + return + +EventScript_ItemInPocketMessage:: + compare_var_to_value VAR_0x8006, 1 + call_if eq, EventScript_FoundSingleItemMessage + compare_var_to_value VAR_0x8006, 1 + call_if ne, EventScript_FoundMultipleItemsMessage + waitfanfare + waitmessage + msgbox gUnknown_81A5218 + special Special_SetHiddenItemFlag + releaseall + end + +EventScript_FoundSingleItemMessage:: + message Text_1A5231 + return + +EventScript_FoundCoinsMessage:: + getnumberstring 0, VAR_0x8006 + message Text_1A525C + return + +EventScript_FoundMultipleItemsMessage:: + getnumberstring 0, VAR_0x8006 + message Text_1A52DD + return + +EventScript_BagIsFullMessage:: + msgbox Text_1A5231 + msgbox gUnknown_81A5242 + setvar VAR_RESULT, 0 + releaseall + end + +EventScript_PickUpHiddenCoins:: + checkflag FLAG_GOT_COIN_CASE + goto_if FALSE, EventScript_HiddenCoinsButNoCoinCase + checkcoins VAR_RESULT + specialvar VAR_RESULT, Special_CheckAddCoins + compare_var_to_value VAR_RESULT, 0 + goto_if eq, EventScript_HiddenCoinsButTheCoinCaseIsFull + givecoins VAR_0x8006 + getstdstring 1, 0x17 + call EventScript_1A6764 + call EventScript_FoundCoinsMessage + waitfanfare + waitmessage + msgbox Text_1A526C + special Special_SetHiddenItemFlag + releaseall + end + +EventScript_HiddenCoinsButTheCoinCaseIsFull:: + getnumberstring 0, VAR_0x8006 + getstdstring 1, 0x17 + msgbox Text_1A525C + msgbox Text_1A5294 + setvar VAR_RESULT, 0 + releaseall + end + +EventScript_HiddenCoinsButNoCoinCase:: + getnumberstring 0, VAR_0x8006 + getstdstring 1, 0x17 + msgbox Text_1A525C + msgbox Text_1A52B4 + setvar VAR_RESULT, 0 + releaseall + end + +gUnknown_81A6955:: @ 81A6955 + special sub_8110AB4 + compare_var_to_value VAR_RESULT, 2 + goto_if eq, EventScript_1A7AE0 + lockall + checkflag FLAG_SYS_PC_STORAGE_DISABLED + goto_if TRUE, EventScript_1A698E + setvar VAR_0x8004, 27 + special Special_SetSomeVariable + setvar VAR_0x8004, 0 + special Special_AnimatePcTurnOn + playse SE_PC_ON + msgbox Text_1A5075 + goto EventScript_1A6998 + end + +EventScript_1A698E:: @ 81A698E + msgbox Text_1A1390 + releaseall + end + +EventScript_1A6998:: @ 81A6998 + message gUnknown_81A508A + waitmessage + special ScrSpecial_CreatePCMenu + waitstate + goto EventScript_1A69A8 + end + +EventScript_1A69A8:: @ 81A69A8 + switch VAR_RESULT + case 0, EventScript_1A6A05 + case 1, EventScript_1A69F0 + case 2, EventScript_1A6A7A + case 3, EventScript_1A6A56 + case 4, EventScript_1A6A46 + case SCR_MENU_CANCEL, EventScript_1A6A46 + end + +EventScript_1A69F0:: @ 81A69F0 + playse SE_PC_LOGIN + msgbox Text_1A50DD + special PlayerPC + waitstate + goto EventScript_1A6998 + end + +EventScript_1A6A05:: @ 81A6A05 + playse SE_PC_LOGIN + checkflag FLAG_SYS_NOT_SOMEONES_PC + call_if FALSE, EventScript_1A6A34 + checkflag FLAG_SYS_NOT_SOMEONES_PC + call_if TRUE, EventScript_1A6A3D + msgbox Text_1A50BE + special ShowPokemonStorageSystem + waitstate + setvar VAR_0x8004, 27 + special Special_SetSomeVariable + goto EventScript_1A6998 + end + +EventScript_1A6A34:: @ 81A6A34 + msgbox Text_1A50A7 + return + +EventScript_1A6A3D:: @ 81A6A3D + msgbox Text_1A50EF + return + +EventScript_1A6A46:: @ 81A6A46 + setvar VAR_0x8004, 0 + playse SE_PC_OFF + special Special_AnimatePcTurnOff + special sub_812B35C + releaseall + end + +EventScript_1A6A56:: @ 81A6A56 + checkflag FLAG_SYS_GAME_CLEAR + goto_if FALSE, EventScript_1A6A46 + playse SE_PC_LOGIN + setvar VAR_0x8004, 31 + special HelpSystem_BackupSomeVariable + special Special_SetSomeVariable + special HallOfFamePCBeginFade + waitstate + special HelpSystem_RestoreSomeVariable + goto EventScript_1A69A8 + end + +EventScript_1A6A7A:: @ 81A6A7A + checkflag FLAG_SYS_POKEDEX_GET + goto_if FALSE, EventScript_1A6A46 + playse SE_PC_LOGIN + msgbox Text_1A5BC6 + msgbox Text_1A5C03, 5 + compare_var_to_value VAR_RESULT, 0 + goto_if eq, EventScript_1A6AB2 + setflag FLAG_OAKS_RATING_IS_VIA_PC + call EventScript_1A73E0 + clearflag FLAG_OAKS_RATING_IS_VIA_PC + goto EventScript_1A6AB2 + end + +EventScript_1A6AB2:: @ 81A6AB2 + msgbox Text_1A5C2E + goto EventScript_1A6998 + end + +EventScript_1A6AC0:: @ 81A6AC0 + fadescreen 1 + special sub_80FEE44 + fadescreen 0 + return + +EventScript_1A6AC8:: @ 81A6AC8 + special sub_8110AB4 + compare_var_to_value VAR_RESULT, 2 + goto_if eq, EventScript_1A6AC8_End + checkpartymove MOVE_SURF + compare_var_to_value VAR_RESULT, 6 + goto_if eq, EventScript_1A6AC8_End + getpartymonname 0, VAR_RESULT + setfieldeffectarg 0, VAR_RESULT + lockall + msgbox Text_1A556E, 5 + compare_var_to_value VAR_RESULT, 0 + goto_if eq, EventScript_1A6AC8_Release + msgbox Text_1A55A5 + dofieldeffect FLDEFF_USE_SURF +EventScript_1A6AC8_Release:@ 81A6B0B + releaseall +EventScript_1A6AC8_End: @ 81A6B0C + end + +gUnknown_81A6B0D:: @ 81A6B0D + lockall + msgbox Text_1A55B3 + releaseall + end + +EventScript_1A6B18:: @ 81A6B18 + switch VAR_0x8008 + case 1, EventScript_1A6B76 + case 2, EventScript_1A6B7A + case 3, EventScript_1A6B81 + case 4, EventScript_1A6B8B + case 5, EventScript_1A6BA1 + case 6, EventScript_1A6BB4 + case 7, EventScript_1A6BCA + case 8, EventScript_1A6BE0 + end + +EventScript_1A6B76:: @ 81A6B76 + settrainerflag TRAINER_CAMPER_LIAM + return + +EventScript_1A6B7A:: @ 81A6B7A + settrainerflag TRAINER_PICNICKER_DIANA + settrainerflag TRAINER_SWIMMER_MALE_LUIS + return + +EventScript_1A6B81:: @ 81A6B81 + settrainerflag TRAINER_SAILOR_DWAYNE + settrainerflag TRAINER_ENGINEER_BAILY + settrainerflag TRAINER_GENTLEMAN_TUCKER + return + +EventScript_1A6B8B:: @ 81A6B8B + settrainerflag TRAINER_LASS_KAY + settrainerflag TRAINER_LASS_LISA + settrainerflag TRAINER_PICNICKER_TINA + settrainerflag TRAINER_BEAUTY_BRIDGET + settrainerflag TRAINER_BEAUTY_TAMIA + settrainerflag TRAINER_BEAUTY_LORI + settrainerflag TRAINER_COOLTRAINER_MARY + return + +EventScript_1A6BA1:: @ 81A6BA1 + settrainerflag TRAINER_TAMER_PHIL + settrainerflag TRAINER_TAMER_EDGAR + settrainerflag TRAINER_JUGGLER_KIRK + settrainerflag TRAINER_JUGGLER_SHAWN + settrainerflag TRAINER_JUGGLER_KAYDEN + settrainerflag TRAINER_JUGGLER_NATE + return + +EventScript_1A6BB4:: @ 81A6BB4 + settrainerflag TRAINER_PSYCHIC_JOHAN + settrainerflag TRAINER_PSYCHIC_TYRON + settrainerflag TRAINER_PSYCHIC_CAMERON + settrainerflag TRAINER_PSYCHIC_PRESTON + settrainerflag TRAINER_CHANNELER_AMANDA + settrainerflag TRAINER_CHANNELER_STACY + settrainerflag TRAINER_CHANNELER_TASHA + return + +EventScript_1A6BCA:: @ 81A6BCA + settrainerflag TRAINER_SUPER_NERD_ERIK + settrainerflag TRAINER_SUPER_NERD_AVERY + settrainerflag TRAINER_SUPER_NERD_DEREK + settrainerflag TRAINER_SUPER_NERD_ZAC + settrainerflag TRAINER_BURGLAR_QUINN + settrainerflag TRAINER_BURGLAR_RAMON + settrainerflag TRAINER_BURGLAR_DUSTY + return + +EventScript_1A6BE0:: @ 81A6BE0 + settrainerflag TRAINER_TAMER_JASON + settrainerflag TRAINER_TAMER_COLE + settrainerflag TRAINER_BLACK_BELT_ATSUSHI + settrainerflag TRAINER_BLACK_BELT_KIYO + settrainerflag TRAINER_BLACK_BELT_TAKASHI + settrainerflag TRAINER_COOLTRAINER_SAMUEL + settrainerflag TRAINER_COOLTRAINER_YUJI + settrainerflag TRAINER_COOLTRAINER_WARREN + return + +EventScript_1A6BF9:: @ 81A6BF9 + textcolor 3 + msgbox gUnknown_81A5242 + release + end + +EventScript_1A6C05:: @ 81A6C05 + msgbox gUnknown_81A5242 + return + +EventScript_1A6C0E:: @ 81A6C0E + msgbox Text_1A5301 + release + end + +EventScript_1A6C18:: @ 81A6C18 + msgbox Text_1A5301 + return + +EventScript_1A6C21:: @ 81A6C21 + playfanfare MUS_ME_BACHI + waitfanfare + return + +EventScript_FadeOut_Heal_FadeIn:: @ 81A6C26 + fadescreen 1 + playfanfare MUS_ME_ASA + waitfanfare + special sp000_heal_pokemon + fadescreen 0 + return + +gUnknown_81A6C32:: @ 81A6C32 + lockall + msgbox Text_1C0DF1 + special sub_8110AB4 + compare_var_to_value VAR_RESULT, 2 + goto_if eq, EventScript_1A7AE0 + fadescreen 1 + special Special_TownMap + waitstate + releaseall + end + +gUnknown_81A6C51:: @ 81A6C51 + .string "OAK: Good to see you!\n" + .string "How is your POKéDEX coming along?\p" + .string "Here, let me take a look.$" + +Text_1A6CA3:: @ 81A6CA3 + .string "The amount of progress you've made\n" + .string "on your POKéDEX is:\p" + .string "{STR_VAR_1} POKéMON seen and\n" + .string "{STR_VAR_2} POKéMON owned.\p" + .string "{SIZE}ÃPROF. OAK's rating:$" +gUnknown_81A6D17:: @ 81A6D17 + .string "You still have lots to do.\p" + .string "Go into every patch of grass you\n" + .string "see and look for POKéMON!$" + +gUnknown_81A6D6D:: @ 81A6D6D + .string "It looks as if you're getting on\n" + .string "the right track!\p" + .string "I've given one of my AIDES a FLASH\n" + .string "HM. Make sure you go get it!$" + +gUnknown_81A6DDF:: @ 81A6DDF + .string "Your POKéDEX could use a bit more\n" + .string "volume still!\p" + .string "Try to catch other species of\n" + .string "POKéMON!$" + +gUnknown_81A6E36:: @ 81A6E36 + .string "Good, it's apparent that you're\n" + .string "trying hard!\p" + .string "I've given one of my AIDES an\n" + .string "ITEMFINDER. Be sure to collect it!$" + +gUnknown_81A6EA4:: @ 81A6EA4 + .string "Your POKéDEX is coming along quite\n" + .string "well!\p" + .string "I've given one of my AIDES an\n" + .string "AMULET COIN. Be sure to get it!$" + +gUnknown_81A6F0B:: @ 81A6F0B + .string "Ah, you've finally topped 50\n" + .string "species!\p" + .string "I've given one of my AIDES an EXP.\n" + .string "SHARE. Be sure to go get it!$" + +gUnknown_81A6F71:: @ 81A6F71 + .string "Hoho! This is turning into quite the\n" + .string "respectable POKéDEX!$" + +gUnknown_81A6FAB:: @ 81A6FAB + .string "Very good!\p" + .string "I think you'll collect even more\n" + .string "POKéMON by going fishing!$" + +gUnknown_81A6FF1:: @ 81A6FF1 + .string "Wonderful! Let me guess… You\n" + .string "like to collect things, don't you?$" + +gUnknown_81A7031:: @ 81A7031 + .string "I'm impressed!\n" + .string "It must have been difficult to do!$" + +gUnknown_81A7063:: @ 81A7063 + .string "You've finally hit 100 species!\n" + .string "I can't believe how good you are!$" + +gUnknown_81A70A5:: @ 81A70A5 + .string "You even have the evolved forms\n" + .string "of POKéMON! Super!$" + +gUnknown_81A70D8:: @ 81A70D8 + .string "Excellent! Trade with friends to\n" + .string "get some more!$" + +gUnknown_81A7108:: @ 81A7108 + .string "Outstanding!\n" + .string "You've become a real pro at this!$" + +gUnknown_81A7137:: @ 81A7137 + .string "I have nothing left to say!\n" + .string "You're the POKéMON PROFESSOR now!$" + +gUnknown_81A7175:: @ 81A7175 + .string "Your POKéDEX is entirely complete!\n" + .string "Congratulations!!$" + +Text_1A71AA:: @ 81A71AA + .string "And your NATIONAL POKéDEX is:\p" + .string "{STR_VAR_1} POKéMON seen and\n" + .string "{STR_VAR_2} POKéMON owned.$" + +Text_1A71EE:: @ 81A71EE + .string "I'll be looking forward to seeing\n" + .string "you fill the NATIONAL POKéDEX!$" + +Text_1A722F:: @ 81A722F + .string "Finally…\p" + .string "You've finally completed the\n" + .string "POKéDEX!\p" + .string "It's magnificent!\n" + .string "Truly, this is a fantastic feat!$" + +Text_1A7291:: @ 81A7291 + .string "Wroooooooaaaaaarrrr!$" + +Text_1A72A6:: @ 81A72A6 + .string "ã¯ã‚ ã¯ã‚‥$" + +gUnknown_81A72AD:: @ 81A72AD + .string "Thank you, {PLAYER}!\n" + .string "Sincerely, thank you!\l" + .string "You've made my dream a reality!$" + +Text_1A72F2:: @ 81A72F2 + .string "OAK: Ah, welcome!\p" + .string "Tell me, how is your POKéDEX\n" + .string "coming along?\p" + .string "Wahaha!\p" + .string "Actually, I know how it is, but I\n" + .string "love seeing it anyway!\p" + .string "Let's see…$" + +EventScript_1A737B:: @ 81A737B + special sub_8110AB4 + compare_var_to_value VAR_RESULT, 2 + goto_if eq, EventScript_1A7AE0 + special sub_8112364 + checkflag FLAG_OAK_SAW_DEX_COMPLETION + call_if TRUE, EventScript_1A73A4 + checkflag FLAG_OAK_SAW_DEX_COMPLETION + call_if FALSE, EventScript_1A73AD + call EventScript_1A73E0 + return + +EventScript_1A73A4:: @ 81A73A4 + msgbox Text_1A72F2 + return + +EventScript_1A73AD:: @ 81A73AD + msgbox gUnknown_81A6C51 + return + +EventScript_1A73B6:: @ 81A73B6 + copyvar VAR_0x8004, VAR_0x8009 + special Special_GetProfOaksRatingMessage + waitmessage + compare_var_to_value VAR_RESULT, 0 + call_if eq, EventScript_1A73D8 + compare_var_to_value VAR_RESULT, 1 + call_if eq, EventScript_1A73DC + waitfanfare + waitbuttonpress + return + +EventScript_1A73D8:: @ 81A73D8 + playfanfare MUS_FAN2 + return + +EventScript_1A73DC:: @ 81A73DC + playfanfare MUS_FANFA5 + return + +EventScript_1A73E0:: @ 81A73E0 + setvar VAR_0x8004, 31 + special HelpSystem_BackupSomeVariable + special Special_SetSomeVariable + setvar VAR_0x8004, 0 + specialvar VAR_RESULT, Special_GetPokedexCount + copyvar VAR_0x8008, VAR_0x8005 + copyvar VAR_0x8009, VAR_0x8006 + copyvar VAR_0x800A, VAR_RESULT + getnumberstring 0, VAR_0x8008 + getnumberstring 1, VAR_0x8009 + msgbox Text_1A6CA3 + checkflag FLAG_OAKS_RATING_IS_VIA_PC + call_if FALSE, EventScript_1A746D + call EventScript_1A73B6 + compare_var_to_value VAR_0x800A, 0 + goto_if eq, EventScript_1A748F + setvar VAR_0x8004, 1 + specialvar VAR_RESULT, Special_GetPokedexCount + copyvar VAR_0x8008, VAR_0x8005 + copyvar VAR_0x8009, VAR_0x8006 + getnumberstring 0, VAR_0x8008 + getnumberstring 1, VAR_0x8009 + msgbox Text_1A71AA + specialvar VAR_RESULT, HasAllMons + compare_var_to_value VAR_RESULT, 0 + goto_if eq, EventScript_1A7470 + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1A747E + end + +EventScript_1A746D:: @ 81A746D + textcolor 0 + return + +EventScript_1A7470:: @ 81A7470 + msgbox Text_1A71EE + goto EventScript_1A748F + end + +EventScript_1A747E:: @ 81A747E + setflag FLAG_OAK_SAW_DEX_COMPLETION + msgbox Text_1A722F + goto EventScript_1A748F + end + +EventScript_1A748F:: @ 81A748F + special HelpSystem_RestoreSomeVariable + return + +EventScript_1A7493:: @ 81A7493 + lockall + setvar VAR_0x4001, 1 + goto EventScript_1A74B7 + end + +EventScript_1A749F:: @ 81A749F + lockall + setvar VAR_0x4002, 1 + goto EventScript_1A74B7 + end + +EventScript_1A74AB:: @ 81A74AB + lockall + setvar VAR_0x4003, 1 + goto EventScript_1A74B7 + end + +EventScript_1A74B7:: @ 81A74B7 + setvar VAR_0x8004, 1 + setvar VAR_0x8005, 1 + setvar VAR_0x8006, 8 + setvar VAR_0x8007, 5 + special Special_ShakeScreen + waitstate + releaseall + end + +EventScript_1A74D1:: @ 81A74D1 + setvar VAR_0x4001, 1 + setvar VAR_0x4002, 1 + setvar VAR_0x4003, 1 + setvar VAR_0x4004, 1 + setvar VAR_0x4005, 1 + return + +EventScript_1A74EB:: @ 81A74EB + fadescreen 1 + special ChangePokemonNickname + waitstate + return + +EventScript_1A74F2:: @ 81A74F2 + getitemname 0, VAR_0x8004 + playfanfare MUS_ME_WAZA + message Text_1A5690 + waitmessage + waitfanfare + removeitem VAR_0x8004, 1 + return + +EventScript_1A7506:: @ 81A7506 + applymovement 255, Movement_1A75FE + waitmovement 0 + playse SE_DOOR + call EventScript_1A7538 + special DrawWholeMapView + setflag FLAG_TEMP_4 + return + +EventScript_1A751F:: @ 81A751F + applymovement 255, Movement_1A75F3 + waitmovement 0 + setflag FLAG_TEMP_2 + playse SE_KI_GASYAN + call EventScript_1A759C + special DrawWholeMapView + return + +EventScript_1A7538:: @ 81A7538 + setmetatile 6, 1, 654, 1 + setmetatile 6, 2, 662, 0 + return + +EventScript_1A754B:: @ 81A754B + lockall + textcolor 0 + msgbox Text_1A5C4D + closemessage + applymovement 255, Movement_1A75D3 + waitmovement 0 + releaseall + end + +EventScript_1A7563:: @ 81A7563 + applymovement 255, Movement_1A75FE + waitmovement 0 + playse SE_DOOR + setmetatile 6, 4, 654, 1 + setmetatile 6, 5, 662, 0 + special DrawWholeMapView + setflag FLAG_TEMP_4 + return + +EventScript_1A7589:: @ 81A7589 + setmetatile 6, 4, 654, 1 + setmetatile 6, 5, 662, 0 + return + +EventScript_1A759C:: @ 81A759C + setmetatile 5, 11, 669, 1 + setmetatile 6, 11, 670, 1 + setmetatile 7, 11, 671, 1 + setmetatile 5, 12, 677, 1 + setmetatile 6, 12, 678, 1 + setmetatile 7, 12, 679, 1 + return + +Movement_1A75D3:: @ 81A75D3 + step_11 + step_end + +EventScript_1A75D5:: @ 81A75D5 + special Special_PokemonLeagueLightingEffect + return + +Movement_1A75D9:: @ 81A75D9 + step_63 + step_end + +Movement_1A75DB:: @ 81A75DB + step_62 + step_end + +Movement_1A75DD:: @ 81A75DD + step_1c + step_1c + step_1c + step_end + +Movement_1A75E1:: @ 81A75E1 + step_4a + step_end + +Movement_1A75E3:: @ 81A75E3 + step_4b + step_end + +Movement_1A75E5:: @ 81A75E5 + step_5a + step_end + +Movement_1A75E7:: @ 81A75E7 + step_2f + step_end + +Movement_1A75E9:: @ 81A75E9 + step_2e + step_end + +Movement_1A75EB:: @ 81A75EB + step_30 + step_end + +Movement_1A75ED:: @ 81A75ED + step_2d + step_end + +Movement_1A75EF:: @ 81A75EF + step_03 + step_end + +Movement_1A75F1:: @ 81A75F1 + step_00 + step_end + +Movement_1A75F3:: @ 81A75F3 + step_11 + step_11 + step_11 + step_11 + step_11 + step_end + +Movement_1A75F9:: @ 81A75F9 + step_11 + step_11 + step_11 + step_11 + step_end + +Movement_1A75FE:: @ 81A75FE + step_1c + step_1c + step_end + +Movement_1A7601:: @ 81A7601 + step_11 + step_end + +Movement_1A7603:: @ 81A7603 + step_11 + step_11 + step_end + +gUnknown_81A7606:: @ 81A7606 + msgbox gUnknown_81C0DB0, 3 + end + +gUnknown_81A760F:: @ 81A760F + msgbox gUnknown_81C0DFD, 3 + end + +gUnknown_81A7618:: @ 81A7618 + msgbox gUnknown_81C0F99, 3 + end + +gUnknown_81A7621:: @ 81A7621 + msgbox gUnknown_81C12A7, 3 + end + +gUnknown_81A762A:: @ 81A762A + msgbox gUnknown_81C10C1, 3 + end + +gUnknown_81A7633:: @ 81A7633 + msgbox gUnknown_81C1273, 3 + end + +gUnknown_81A763C:: @ 81A763C + msgbox gUnknown_81C0FD8, 3 + end + +gUnknown_81A7645:: @ 81A7645 + msgbox gUnknown_81C12D6, 3 + end + +gUnknown_81A764E:: @ 81A764E + msgbox gUnknown_81C1300, 3 + end + +gUnknown_81A7657:: @ 81A7657 + msgbox gUnknown_81C0E19, 3 + end + +gUnknown_81A7660:: @ 81A7660 + msgbox gUnknown_81C0E40, 3 + end + +gUnknown_81A7669:: @ 81A7669 + msgbox gUnknown_81C0E73, 3 + end + +gUnknown_81A7672:: @ 81A7672 + msgbox gUnknown_81C0EAC, 3 + end + +gUnknown_81A767B:: @ 81A767B + msgbox gUnknown_81C101B, 3 + end + +gUnknown_81A7684:: @ 81A7684 + msgbox gUnknown_81C1060, 3 + end + +gUnknown_81A768D:: @ 81A768D + msgbox gUnknown_81C109C, 3 + end + +gUnknown_81A7696:: @ 81A7696 + msgbox gUnknown_81C10FC, 3 + end + +gUnknown_81A769F:: @ 81A769F + msgbox gUnknown_81C1134, 3 + end + +gUnknown_81A76A8:: @ 81A76A8 + msgbox gUnknown_81C116E, 3 + end + +gUnknown_81A76B1:: @ 81A76B1 + msgbox gUnknown_81C1194, 3 + end + +gUnknown_81A76BA:: @ 81A76BA + msgbox gUnknown_81C11BA, 3 + end + +gUnknown_81A76C3:: @ 81A76C3 + msgbox gUnknown_81C11DC, 3 + end + +gUnknown_81A76CC:: @ 81A76CC + msgbox gUnknown_81C1217, 3 + end + +gUnknown_81A76D5:: @ 81A76D5 + msgbox gUnknown_81C124B, 3 + end + +gUnknown_81A76DE:: @ 81A76DE + msgbox gUnknown_81C0ECB, 3 + end + +gUnknown_81A76E7:: @ 81A76E7 + msgbox gUnknown_81C0EF7, 3 + end + +gUnknown_81A76F0:: @ 81A76F0 + msgbox gUnknown_81C0F19, 3 + end + +gUnknown_81A76F9:: @ 81A76F9 + msgbox gUnknown_81C0F59, 3 + end + +gUnknown_81A7702:: @ 81A7702 + lockall + textcolor 3 + msgbox Text_1A622C, 5 + compare_var_to_value VAR_RESULT, 0 + goto_if eq, EventScript_1A778A + setvar VAR_0x8004, 14 + call EventScript_1A6AC0 + lock + faceplayer + specialvar VAR_0x8008, Special_GetMartClerkObjectId + textcolor 0 + compare_var_to_value VAR_0x8004, 0 + goto_if eq, EventScript_1A774D + compare_var_to_value VAR_RESULT, 0 + goto_if eq, EventScript_1A778A + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1A778C + end + +EventScript_1A774D:: @ 81A774D + applymovement VAR_0x8008, Movement_1A75F1 + waitmovement 0 + playse SE_PIN + applymovement VAR_0x8008, Movement_1A75DB + waitmovement 0 + applymovement VAR_0x8008, Movement_1A75DD + waitmovement 0 + msgbox Text_1A62D3 + setflag FLAG_SYS_MYSTERY_GIFT_ENABLED + textcolor 3 + special sub_80699BC + signmsg + msgbox Text_1A6359 + normalmsg + releaseall + end + +EventScript_1A778A:: @ 81A778A + releaseall + end + +EventScript_1A778C:: @ 81A778C + applymovement VAR_0x8008, Movement_1A75F1 + waitmovement 0 + msgbox Text_1A6265 + releaseall + end + +gUnknown_81A77A0:: @ 81A77A0 + msgbox Text_1A5375, 3 + end + +EventScript_1A77A9:: @ 81A77A9 + return + +EventScript_1A77AA:: @ 81A77AA + setvar VAR_RESULT, 1 + return + +EventScript_1A77B0:: @ 81A77B0 + setvar VAR_RESULT, 0 + return + +Route16_NorthEntrance_1F_EventScript_1A77B6:: @ 81A77B6 +Route18_EastEntrance_1F_EventScript_1A77B6:: @ 81A77B6 + lockall + clearflag FLAG_SYS_ON_CYCLING_ROAD + setvar VAR_MAP_SCENE_ROUTE16, 0 + releaseall + end + +Route16_NorthEntrance_1F_EventScript_1A77C1:: @ 81A77C1 +Route18_EastEntrance_1F_EventScript_1A77C1:: @ 81A77C1 + lockall + setvar VAR_MAP_SCENE_ROUTE16, 1 + releaseall + end + +EventScript_1A77C9:: @ 81A77C9 + msgbox Text_1A572A + playse SE_BOO + msgbox Text_1A5776 + release + end + +EventScript_1A77DE:: @ 81A77DE + message Text_1A57C1 + waitmessage + playse SE_BOO + waitbuttonpress + closemessage + waitse + release + end + +EventScript_1A77EC:: @ 81A77EC + message Text_1A579D + waitmessage + playfanfare MUS_FANFA1 + waitfanfare + waitbuttonpress + release + end + +EventScript_1A77F9:: @ 81A77F9 + msgbox Text_1A5839 + release + end + +EventScript_1A7803:: @ 81A7803 + compare_var_to_var VAR_MAP_SCENE_ROUTE23, VAR_0x4001 + goto_if ge, EventScript_1A77EC + switch VAR_0x4001 + case 1, EventScript_1A78D5 + case 2, EventScript_1A78E4 + case 3, EventScript_1A78F3 + case 4, EventScript_1A7902 + case 5, EventScript_1A7911 + case 6, EventScript_1A7920 + case 7, EventScript_1A792F + case 8, EventScript_1A793E + end + +EventScript_1A786C:: @ 81A786C + compare_var_to_var VAR_MAP_SCENE_ROUTE23, VAR_0x4001 + goto_if ge, EventScript_1A77F9 + switch VAR_0x4001 + case 1, EventScript_1A78D5 + case 2, EventScript_1A78E4 + case 3, EventScript_1A78F3 + case 4, EventScript_1A7902 + case 5, EventScript_1A7911 + case 6, EventScript_1A7920 + case 7, EventScript_1A792F + case 8, EventScript_1A793E + end + +EventScript_1A78D5:: @ 81A78D5 + checkflag FLAG_BADGE01_GET + goto_if TRUE, EventScript_1A794D + goto EventScript_1A77C9 + end + +EventScript_1A78E4:: @ 81A78E4 + checkflag FLAG_BADGE02_GET + goto_if TRUE, EventScript_1A795F + goto EventScript_1A77DE + end + +EventScript_1A78F3:: @ 81A78F3 + checkflag FLAG_BADGE03_GET + goto_if TRUE, EventScript_1A795F + goto EventScript_1A77DE + end + +EventScript_1A7902:: @ 81A7902 + checkflag FLAG_BADGE04_GET + goto_if TRUE, EventScript_1A795F + goto EventScript_1A77DE + end + +EventScript_1A7911:: @ 81A7911 + checkflag FLAG_BADGE05_GET + goto_if TRUE, EventScript_1A795F + goto EventScript_1A77DE + end + +EventScript_1A7920:: @ 81A7920 + checkflag FLAG_BADGE06_GET + goto_if TRUE, EventScript_1A795F + goto EventScript_1A77DE + end + +EventScript_1A792F:: @ 81A792F + checkflag FLAG_BADGE07_GET + goto_if TRUE, EventScript_1A795F + goto EventScript_1A77DE + end + +EventScript_1A793E:: @ 81A793E + checkflag FLAG_BADGE08_GET + goto_if TRUE, EventScript_1A795F + goto EventScript_1A77DE + end + +EventScript_1A794D:: @ 81A794D + message Text_1A579D + waitmessage + playfanfare MUS_FANFA1 + waitfanfare + waitbuttonpress + copyvar VAR_MAP_SCENE_ROUTE23, VAR_0x4001 + release + end + +EventScript_1A795F:: @ 81A795F + msgbox Text_1A5839 + copyvar VAR_MAP_SCENE_ROUTE23, VAR_0x4001 + release + end + +EventScript_1A796E:: @ 81A796E + textcolor 0 + applymovement VAR_0x8009, Movement_1A75E7 + waitmovement 0 + switch VAR_0x4001 + case 1, EventScript_1A79D8 + case 2, EventScript_1A79E7 + case 3, EventScript_1A79F6 + case 4, EventScript_1A7A05 + case 5, EventScript_1A7A14 + case 6, EventScript_1A7A23 + case 7, EventScript_1A7A32 + case 8, EventScript_1A7A41 + end + +EventScript_1A79D8:: @ 81A79D8 + checkflag FLAG_BADGE01_GET + goto_if TRUE, EventScript_1A7A96 + goto EventScript_1A7A50 + end + +EventScript_1A79E7:: @ 81A79E7 + checkflag FLAG_BADGE02_GET + goto_if TRUE, EventScript_1A7AA8 + goto EventScript_1A7A77 + end + +EventScript_1A79F6:: @ 81A79F6 + checkflag FLAG_BADGE03_GET + goto_if TRUE, EventScript_1A7AA8 + goto EventScript_1A7A77 + end + +EventScript_1A7A05:: @ 81A7A05 + checkflag FLAG_BADGE04_GET + goto_if TRUE, EventScript_1A7AA8 + goto EventScript_1A7A77 + end + +EventScript_1A7A14:: @ 81A7A14 + checkflag FLAG_BADGE05_GET + goto_if TRUE, EventScript_1A7AA8 + goto EventScript_1A7A77 + end + +EventScript_1A7A23:: @ 81A7A23 + checkflag FLAG_BADGE06_GET + goto_if TRUE, EventScript_1A7AA8 + goto EventScript_1A7A77 + end + +EventScript_1A7A32:: @ 81A7A32 + checkflag FLAG_BADGE07_GET + goto_if TRUE, EventScript_1A7AA8 + goto EventScript_1A7A77 + end + +EventScript_1A7A41:: @ 81A7A41 + checkflag FLAG_BADGE08_GET + goto_if TRUE, EventScript_1A7AA8 + goto EventScript_1A7A77 + end + +EventScript_1A7A50:: @ 81A7A50 + msgbox Text_1A572A + playse SE_BOO + msgbox Text_1A5776 + closemessage + applymovement 255, Movement_1A7AB7 + applymovement VAR_0x8009, Movement_1A75ED + waitmovement 0 + releaseall + end + +EventScript_1A7A77:: @ 81A7A77 + message Text_1A57C1 + waitmessage + playse SE_BOO + waitbuttonpress + closemessage + waitse + applymovement 255, Movement_1A7AB7 + applymovement VAR_0x8009, Movement_1A75ED + waitmovement 0 + releaseall + end + +EventScript_1A7A96:: @ 81A7A96 + message Text_1A579D + waitmessage + playfanfare MUS_FANFA1 + waitfanfare + waitbuttonpress + copyvar VAR_MAP_SCENE_ROUTE23, VAR_0x4001 + releaseall + end + +EventScript_1A7AA8:: @ 81A7AA8 + msgbox Text_1A5839 + copyvar VAR_MAP_SCENE_ROUTE23, VAR_0x4001 + releaseall + end + +Movement_1A7AB7:: @ 81A7AB7 + step_10 + step_end + +EventScript_1A7AB9:: @ 81A7AB9 + special Special_GetElevatorFloor + return + +EventScript_1A7ABD:: @ 81A7ABD + msgbox Text_1A58A7 + release + end + +EventScript_1A7AC7:: @ 81A7AC7 + msgbox Text_1A594D + release + end + +EventScript_1A7AD1:: @ 81A7AD1 + msgbox Text_1A5909 + release + end + +gUnknown_81A7ADB:: @ 81A7ADB + special sub_80CADC4 + release + end + +EventScript_1A7AE0:: @ 81A7AE0 + release + end + +EventScript_1A7AE2:: @ 81A7AE2 + msgbox Text_177460, 5 + compare_var_to_value VAR_RESULT, 0 + goto_if eq, EventScript_1A7B70 + msgbox Text_17747B + checkflag FLAG_POKEMON_MANSION_SWITCH_STATE + goto_if TRUE, EventScript_1A7B3B + setflag FLAG_POKEMON_MANSION_SWITCH_STATE + switch VAR_0x8004 + case 0, EventScript_1A7B7A + case 1, EventScript_1A7D3E + case 2, EventScript_1A7E72 + case 3, EventScript_1A7F4C + end + +EventScript_1A7B3B:: @ 81A7B3B + clearflag FLAG_POKEMON_MANSION_SWITCH_STATE + switch VAR_0x8004 + case 0, EventScript_1A7C5C + case 1, EventScript_1A7DD8 + case 2, EventScript_1A7EDF + case 3, EventScript_1A8025 + end + +EventScript_1A7B70:: @ 81A7B70 + msgbox Text_177489 + releaseall + end + +EventScript_1A7B7A:: @ 81A7B7A + setmetatile 22, 10, 645, 0 + setmetatile 23, 10, 644, 0 + setmetatile 24, 10, 644, 0 + setmetatile 22, 11, 645, 0 + setmetatile 23, 11, 644, 0 + setmetatile 24, 11, 644, 0 + setmetatile 27, 25, 645, 0 + setmetatile 28, 25, 644, 0 + setmetatile 29, 25, 644, 0 + setmetatile 27, 26, 645, 0 + setmetatile 28, 26, 644, 0 + setmetatile 29, 26, 644, 0 + setmetatile 32, 25, 645, 0 + setmetatile 33, 25, 644, 0 + setmetatile 34, 25, 644, 0 + setmetatile 32, 26, 645, 0 + setmetatile 33, 26, 644, 0 + setmetatile 34, 26, 644, 0 + setmetatile 31, 18, 760, 1 + setmetatile 32, 18, 761, 1 + setmetatile 33, 18, 762, 1 + setmetatile 31, 19, 768, 1 + setmetatile 32, 19, 769, 1 + setmetatile 33, 19, 770, 1 + setmetatile 5, 4, 845, 0 + return + +EventScript_1A7C5C:: @ 81A7C5C + setmetatile 22, 10, 760, 1 + setmetatile 23, 10, 761, 1 + setmetatile 24, 10, 762, 1 + setmetatile 22, 11, 768, 1 + setmetatile 23, 11, 769, 1 + setmetatile 24, 11, 770, 1 + setmetatile 27, 25, 760, 1 + setmetatile 28, 25, 761, 1 + setmetatile 29, 25, 762, 1 + setmetatile 27, 26, 768, 1 + setmetatile 28, 26, 769, 1 + setmetatile 29, 26, 770, 1 + setmetatile 32, 25, 760, 1 + setmetatile 33, 25, 761, 1 + setmetatile 34, 25, 762, 1 + setmetatile 32, 26, 768, 1 + setmetatile 33, 26, 769, 1 + setmetatile 34, 26, 770, 1 + setmetatile 31, 18, 645, 0 + setmetatile 32, 18, 644, 0 + setmetatile 33, 18, 644, 0 + setmetatile 31, 19, 645, 0 + setmetatile 32, 19, 644, 0 + setmetatile 33, 19, 644, 0 + setmetatile 5, 4, 788, 0 + return + +EventScript_1A7D3E:: @ 81A7D3E + setmetatile 24, 14, 645, 0 + setmetatile 25, 14, 644, 0 + setmetatile 26, 14, 644, 0 + setmetatile 24, 15, 645, 0 + setmetatile 25, 15, 644, 0 + setmetatile 26, 15, 644, 0 + setmetatile 10, 28, 677, 1 + setmetatile 10, 29, 685, 1 + setmetatile 10, 30, 645, 0 + setmetatile 10, 31, 644, 0 + setmetatile 10, 32, 693, 0 + setmetatile 12, 4, 848, 1 + setmetatile 12, 5, 856, 1 + setmetatile 12, 6, 864, 1 + setmetatile 12, 7, 872, 1 + setmetatile 12, 8, 880, 1 + setmetatile 2, 15, 845, 0 + return + +EventScript_1A7DD8:: @ 81A7DD8 + setmetatile 24, 14, 760, 1 + setmetatile 25, 14, 761, 1 + setmetatile 26, 14, 762, 1 + setmetatile 24, 15, 768, 1 + setmetatile 25, 15, 769, 1 + setmetatile 26, 15, 770, 1 + setmetatile 10, 28, 848, 1 + setmetatile 10, 29, 856, 1 + setmetatile 10, 30, 864, 1 + setmetatile 10, 31, 872, 1 + setmetatile 10, 32, 880, 1 + setmetatile 12, 4, 677, 1 + setmetatile 12, 5, 685, 1 + setmetatile 12, 6, 645, 0 + setmetatile 12, 7, 644, 0 + setmetatile 12, 8, 693, 0 + setmetatile 2, 15, 788, 0 + return + +EventScript_1A7E72:: @ 81A7E72 + setmetatile 17, 11, 645, 0 + setmetatile 18, 11, 644, 0 + setmetatile 19, 11, 644, 0 + setmetatile 17, 12, 645, 0 + setmetatile 18, 12, 644, 0 + setmetatile 19, 12, 644, 0 + setmetatile 21, 4, 848, 1 + setmetatile 21, 5, 856, 1 + setmetatile 21, 6, 864, 1 + setmetatile 21, 7, 872, 1 + setmetatile 21, 8, 880, 1 + setmetatile 12, 4, 845, 0 + return + +EventScript_1A7EDF:: @ 81A7EDF + setmetatile 17, 11, 760, 1 + setmetatile 18, 11, 761, 1 + setmetatile 19, 11, 762, 1 + setmetatile 17, 12, 768, 1 + setmetatile 18, 12, 769, 1 + setmetatile 19, 12, 770, 1 + setmetatile 21, 4, 677, 1 + setmetatile 21, 5, 685, 1 + setmetatile 21, 6, 645, 0 + setmetatile 21, 7, 644, 0 + setmetatile 21, 8, 693, 0 + setmetatile 12, 4, 788, 0 + return + +EventScript_1A7F4C:: @ 81A7F4C + setmetatile 33, 20, 760, 1 + setmetatile 34, 20, 761, 1 + setmetatile 35, 20, 762, 1 + setmetatile 33, 21, 852, 1 + setmetatile 34, 21, 853, 1 + setmetatile 35, 21, 854, 1 + setmetatile 16, 26, 848, 1 + setmetatile 16, 27, 856, 1 + setmetatile 16, 28, 866, 1 + setmetatile 16, 29, 874, 1 + setmetatile 16, 30, 882, 1 + setmetatile 12, 8, 677, 1 + setmetatile 12, 9, 685, 1 + setmetatile 12, 10, 647, 0 + setmetatile 12, 11, 646, 0 + setmetatile 12, 12, 688, 0 + setmetatile 20, 22, 647, 0 + setmetatile 21, 22, 646, 0 + setmetatile 22, 22, 646, 0 + setmetatile 20, 23, 647, 0 + setmetatile 21, 23, 646, 0 + setmetatile 22, 23, 646, 0 + setmetatile 24, 28, 847, 0 + setmetatile 27, 4, 847, 0 + return + +EventScript_1A8025:: @ 81A8025 + setmetatile 33, 20, 647, 0 + setmetatile 34, 20, 646, 0 + setmetatile 35, 20, 646, 0 + setmetatile 33, 21, 647, 0 + setmetatile 34, 21, 646, 0 + setmetatile 35, 21, 646, 0 + setmetatile 16, 26, 677, 1 + setmetatile 16, 27, 685, 1 + setmetatile 16, 28, 647, 0 + setmetatile 16, 29, 646, 0 + setmetatile 16, 30, 688, 0 + setmetatile 12, 8, 848, 1 + setmetatile 12, 9, 856, 1 + setmetatile 12, 10, 866, 1 + setmetatile 12, 11, 874, 1 + setmetatile 12, 12, 882, 1 + setmetatile 20, 22, 760, 1 + setmetatile 21, 22, 761, 1 + setmetatile 22, 22, 762, 1 + setmetatile 20, 23, 852, 1 + setmetatile 21, 23, 853, 1 + setmetatile 22, 23, 854, 1 + setmetatile 24, 28, 790, 0 + setmetatile 27, 4, 790, 0 + return + +EventScript_1A80FE:: @ 81A80FE + lockall + applymovement VAR_0x8004, Movement_1A75E7 + waitmovement 0 + delay 20 + applymovement VAR_0x8004, Movement_1A75E9 + waitmovement 0 + delay 20 + applymovement VAR_0x8004, Movement_1A75EB + waitmovement 0 + delay 20 + applymovement VAR_0x8004, Movement_1A75ED + waitmovement 0 + delay 20 + releaseall + end + +EventScript_1A8135:: @ 81A8135 + msgbox Text_1A5BAD + releaseall + end + +EventScript_1A813F:: @ 81A813F + msgbox Text_1A5CDF + releaseall + end + +EventScript_1A8149:: @ 81A8149 + setmetatile 5, 8, 944, 1 + setmetatile 6, 8, 945, 1 + setmetatile 5, 9, 952, 1 + setmetatile 6, 9, 953, 1 + setmetatile 6, 10, 821, 0 + return + +EventScript_1A8177:: @ 81A8177 + setmetatile 5, 15, 944, 1 + setmetatile 6, 15, 945, 1 + setmetatile 5, 16, 952, 1 + setmetatile 6, 16, 953, 1 + setmetatile 6, 17, 821, 0 + return + +EventScript_1A81A5:: @ 81A81A5 + setmetatile 9, 11, 960, 1 + setmetatile 10, 11, 961, 1 + setmetatile 9, 12, 962, 1 + setmetatile 10, 12, 963, 1 + setmetatile 9, 13, 964, 1 + setmetatile 10, 13, 965, 1 + return + +EventScript_1A81DC:: @ 81A81DC + setmetatile 20, 11, 960, 1 + setmetatile 21, 11, 961, 1 + setmetatile 20, 12, 962, 1 + setmetatile 21, 12, 963, 1 + setmetatile 20, 13, 964, 1 + setmetatile 21, 13, 965, 1 + return + +EventScript_1A8213:: @ 81A8213 + setmetatile 3, 16, 944, 1 + setmetatile 4, 16, 945, 1 + setmetatile 3, 17, 952, 1 + setmetatile 4, 17, 953, 1 + setmetatile 4, 18, 821, 0 + return + +EventScript_1A8241:: @ 81A8241 + setmetatile 14, 11, 944, 1 + setmetatile 15, 11, 945, 1 + setmetatile 14, 12, 952, 1 + setmetatile 15, 12, 953, 1 + setmetatile 15, 13, 821, 0 + return + +EventScript_1A826F:: @ 81A826F + setmetatile 7, 8, 960, 1 + setmetatile 8, 8, 961, 1 + setmetatile 7, 9, 962, 1 + setmetatile 8, 9, 963, 1 + setmetatile 7, 10, 964, 1 + setmetatile 8, 10, 965, 1 + return + +EventScript_1A82A6:: @ 81A82A6 + setmetatile 7, 17, 960, 1 + setmetatile 8, 17, 961, 1 + setmetatile 7, 18, 962, 1 + setmetatile 8, 18, 963, 1 + setmetatile 7, 19, 964, 1 + setmetatile 8, 19, 965, 1 + return + +EventScript_1A82DD:: @ 81A82DD + setmetatile 18, 12, 960, 1 + setmetatile 19, 12, 961, 1 + setmetatile 18, 13, 962, 1 + setmetatile 19, 13, 963, 1 + setmetatile 18, 14, 964, 1 + setmetatile 19, 14, 965, 1 + return + +EventScript_1A8314:: @ 81A8314 + setmetatile 5, 14, 960, 1 + setmetatile 6, 14, 961, 1 + setmetatile 5, 15, 962, 1 + setmetatile 6, 15, 963, 1 + setmetatile 5, 16, 964, 1 + setmetatile 6, 16, 965, 1 + return + +EventScript_1A834B:: @ 81A834B + setmetatile 11, 8, 944, 1 + setmetatile 12, 8, 945, 1 + setmetatile 11, 9, 952, 1 + setmetatile 12, 9, 953, 1 + setmetatile 12, 10, 821, 0 + return + +EventScript_1A8379:: @ 81A8379 + setmetatile 24, 7, 944, 1 + setmetatile 25, 7, 945, 1 + setmetatile 24, 8, 952, 1 + setmetatile 25, 8, 953, 1 + setmetatile 25, 9, 821, 0 + return + +EventScript_1A83A7:: @ 81A83A7 + setmetatile 25, 13, 944, 1 + setmetatile 26, 13, 945, 1 + setmetatile 25, 14, 952, 1 + setmetatile 26, 14, 953, 1 + setmetatile 26, 15, 821, 0 + return + +EventScript_1A83D5:: @ 81A83D5 + setmetatile 5, 9, 960, 1 + setmetatile 6, 9, 961, 1 + setmetatile 5, 10, 962, 1 + setmetatile 6, 10, 963, 1 + setmetatile 5, 11, 964, 1 + setmetatile 6, 11, 965, 1 + return + +EventScript_1A840C:: @ 81A840C + setmetatile 2, 9, 960, 1 + setmetatile 3, 9, 961, 1 + setmetatile 2, 10, 962, 1 + setmetatile 3, 10, 963, 1 + setmetatile 2, 11, 964, 1 + setmetatile 3, 11, 965, 1 + return + +EventScript_1A8443:: @ 81A8443 + setmetatile 12, 15, 960, 1 + setmetatile 13, 15, 961, 1 + setmetatile 12, 16, 962, 1 + setmetatile 13, 16, 963, 1 + setmetatile 12, 17, 964, 1 + setmetatile 13, 17, 965, 1 + return + +EventScript_1A847A:: @ 81A847A + setmetatile 21, 6, 944, 1 + setmetatile 22, 6, 945, 1 + setmetatile 21, 7, 952, 1 + setmetatile 22, 7, 953, 1 + setmetatile 22, 8, 821, 0 + return + +EventScript_1A84A8:: @ 81A84A8 + setmetatile 21, 12, 944, 1 + setmetatile 22, 12, 945, 1 + setmetatile 21, 13, 952, 1 + setmetatile 22, 13, 953, 1 + setmetatile 22, 14, 821, 0 + return + +EventScript_1A84D6:: @ 81A84D6 + setmetatile 12, 11, 944, 1 + setmetatile 13, 11, 945, 1 + setmetatile 12, 12, 952, 1 + setmetatile 13, 12, 953, 1 + setmetatile 13, 13, 821, 0 + return + +EventScript_1A8504:: @ 81A8504 + setmetatile 5, 16, 944, 1 + setmetatile 6, 16, 945, 1 + setmetatile 5, 17, 952, 1 + setmetatile 6, 17, 953, 1 + setmetatile 6, 18, 821, 0 + return + +EventScript_1A8532:: @ 81A8532 + setmetatile 5, 8, 821, 0 + setmetatile 6, 8, 820, 0 + setmetatile 5, 9, 821, 0 + setmetatile 6, 9, 820, 0 + setmetatile 6, 10, 820, 0 + return + +EventScript_1A8560:: @ 81A8560 + setmetatile 5, 15, 821, 0 + setmetatile 6, 15, 820, 0 + setmetatile 5, 16, 821, 0 + setmetatile 6, 16, 820, 0 + setmetatile 6, 17, 820, 0 + return + +EventScript_1A858E:: @ 81A858E + setmetatile 9, 11, 839, 1 + setmetatile 10, 11, 838, 1 + setmetatile 9, 12, 821, 0 + setmetatile 10, 12, 821, 0 + setmetatile 9, 13, 825, 0 + setmetatile 10, 13, 826, 0 + return + +EventScript_1A85C5:: @ 81A85C5 + setmetatile 20, 11, 839, 1 + setmetatile 21, 11, 838, 1 + setmetatile 20, 12, 821, 0 + setmetatile 21, 12, 821, 0 + setmetatile 20, 13, 825, 0 + setmetatile 21, 13, 826, 0 + return + +EventScript_1A85FC:: @ 81A85FC + setmetatile 3, 16, 821, 0 + setmetatile 4, 16, 820, 0 + setmetatile 3, 17, 821, 0 + setmetatile 4, 17, 820, 0 + setmetatile 4, 18, 820, 0 + return + +EventScript_1A862A:: @ 81A862A + setmetatile 14, 11, 821, 0 + setmetatile 15, 11, 820, 0 + setmetatile 14, 12, 821, 0 + setmetatile 15, 12, 820, 0 + setmetatile 15, 13, 820, 0 + return + +EventScript_1A8658:: @ 81A8658 + setmetatile 7, 8, 839, 1 + setmetatile 8, 8, 838, 1 + setmetatile 7, 9, 821, 0 + setmetatile 8, 9, 821, 0 + setmetatile 7, 10, 825, 0 + setmetatile 8, 10, 826, 0 + return + +EventScript_1A868F:: @ 81A868F + setmetatile 7, 17, 839, 1 + setmetatile 8, 17, 838, 1 + setmetatile 7, 18, 821, 0 + setmetatile 8, 18, 821, 0 + setmetatile 7, 19, 825, 0 + setmetatile 8, 19, 826, 0 + return + +EventScript_1A86C6:: @ 81A86C6 + setmetatile 18, 12, 839, 1 + setmetatile 19, 12, 838, 1 + setmetatile 18, 13, 821, 0 + setmetatile 19, 13, 821, 0 + setmetatile 18, 14, 825, 0 + setmetatile 19, 14, 826, 0 + return + +EventScript_1A86FD:: @ 81A86FD + setmetatile 5, 14, 839, 1 + setmetatile 6, 14, 838, 1 + setmetatile 5, 15, 821, 0 + setmetatile 6, 15, 821, 0 + setmetatile 5, 16, 825, 0 + setmetatile 6, 16, 826, 0 + return + +EventScript_1A8734:: @ 81A8734 + setmetatile 11, 8, 821, 0 + setmetatile 12, 8, 820, 0 + setmetatile 11, 9, 821, 0 + setmetatile 12, 9, 820, 0 + setmetatile 12, 10, 820, 0 + return + +EventScript_1A8762:: @ 81A8762 + setmetatile 24, 7, 821, 0 + setmetatile 25, 7, 820, 0 + setmetatile 24, 8, 821, 0 + setmetatile 25, 8, 820, 0 + setmetatile 25, 9, 820, 0 + return + +EventScript_1A8790:: @ 81A8790 + setmetatile 25, 13, 821, 0 + setmetatile 26, 13, 820, 0 + setmetatile 25, 14, 821, 0 + setmetatile 26, 14, 820, 0 + setmetatile 26, 15, 820, 0 + return + +EventScript_1A87BE:: @ 81A87BE + setmetatile 5, 9, 839, 1 + setmetatile 6, 9, 838, 1 + setmetatile 5, 10, 821, 0 + setmetatile 6, 10, 821, 0 + setmetatile 5, 11, 825, 0 + setmetatile 6, 11, 826, 0 + return + +EventScript_1A87F5:: @ 81A87F5 + setmetatile 2, 9, 839, 1 + setmetatile 3, 9, 838, 1 + setmetatile 2, 10, 821, 0 + setmetatile 3, 10, 821, 0 + setmetatile 2, 11, 825, 0 + setmetatile 3, 11, 826, 0 + return + +EventScript_1A882C:: @ 81A882C + setmetatile 12, 15, 839, 1 + setmetatile 13, 15, 838, 1 + setmetatile 12, 16, 821, 0 + setmetatile 13, 16, 821, 0 + setmetatile 12, 17, 825, 0 + setmetatile 13, 17, 826, 0 + return + +EventScript_1A8863:: @ 81A8863 + setmetatile 21, 6, 821, 0 + setmetatile 22, 6, 820, 0 + setmetatile 21, 7, 821, 0 + setmetatile 22, 7, 820, 0 + setmetatile 22, 8, 820, 0 + return + +EventScript_1A8891:: @ 81A8891 + setmetatile 21, 12, 821, 0 + setmetatile 22, 12, 820, 0 + setmetatile 21, 13, 821, 0 + setmetatile 22, 13, 820, 0 + setmetatile 22, 14, 820, 0 + return + +EventScript_1A88BF:: @ 81A88BF + setmetatile 12, 11, 821, 0 + setmetatile 13, 11, 820, 0 + setmetatile 12, 12, 821, 0 + setmetatile 13, 12, 820, 0 + setmetatile 13, 13, 820, 0 + return + +EventScript_1A88ED:: @ 81A88ED + setmetatile 5, 16, 821, 0 + setmetatile 6, 16, 820, 0 + setmetatile 5, 17, 821, 0 + setmetatile 6, 17, 820, 0 + setmetatile 6, 18, 820, 0 + return + +SilphCo_2F_EventScript_1A891B:: @ 81A891B + lockall + setvar VAR_0x4001, 1 + setvar VAR_0x8004, 634 + checkflag FLAG_SILPH_2F_DOOR_1 + goto_if TRUE, EventScript_1A813F + goto EventScript_1A8B23 + end + +SilphCo_2F_EventScript_1A8935:: @ 81A8935 + lockall + setvar VAR_0x4001, 2 + setvar VAR_0x8004, 635 + checkflag FLAG_SILPH_2F_DOOR_2 + goto_if TRUE, EventScript_1A813F + goto EventScript_1A8B23 + end + +SilphCo_3F_EventScript_1A894F:: @ 81A894F + lockall + setvar VAR_0x4001, 3 + setvar VAR_0x8004, 636 + checkflag FLAG_SILPH_3F_DOOR_1 + goto_if TRUE, EventScript_1A813F + goto EventScript_1A8B23 + end + +SilphCo_3F_EventScript_1A8969:: @ 81A8969 + lockall + setvar VAR_0x4001, 4 + setvar VAR_0x8004, 637 + checkflag FLAG_SILPH_3F_DOOR_2 + goto_if TRUE, EventScript_1A813F + goto EventScript_1A8B23 + end + +SilphCo_4F_EventScript_1A8983:: @ 81A8983 + lockall + setvar VAR_0x4001, 5 + setvar VAR_0x8004, 638 + checkflag FLAG_SILPH_4F_DOOR_1 + goto_if TRUE, EventScript_1A813F + goto EventScript_1A8B23 + end + +SilphCo_4F_EventScript_1A899D:: @ 81A899D + lockall + setvar VAR_0x4001, 6 + setvar VAR_0x8004, 639 + checkflag FLAG_SILPH_4F_DOOR_2 + goto_if TRUE, EventScript_1A813F + goto EventScript_1A8B23 + end + +SilphCo_5F_EventScript_1A89B7:: @ 81A89B7 + lockall + setvar VAR_0x4001, 7 + setvar VAR_0x8004, 640 + checkflag FLAG_SILPH_5F_DOOR_1 + goto_if TRUE, EventScript_1A813F + goto EventScript_1A8B23 + end + +SilphCo_5F_EventScript_1A89D1:: @ 81A89D1 + lockall + setvar VAR_0x4001, 8 + setvar VAR_0x8004, 641 + checkflag FLAG_SILPH_5F_DOOR_2 + goto_if TRUE, EventScript_1A813F + goto EventScript_1A8B23 + end + +SilphCo_5F_EventScript_1A89EB:: @ 81A89EB + lockall + setvar VAR_0x4001, 9 + setvar VAR_0x8004, 642 + checkflag FLAG_SILPH_5F_DOOR_3 + goto_if TRUE, EventScript_1A813F + goto EventScript_1A8B23 + end + +SilphCo_6F_EventScript_1A8A05:: @ 81A8A05 + lockall + setvar VAR_0x4001, 10 + setvar VAR_0x8004, 643 + checkflag FLAG_SILPH_6F_DOOR + goto_if TRUE, EventScript_1A813F + goto EventScript_1A8B23 + end + +SilphCo_7F_EventScript_1A8A1F:: @ 81A8A1F + lockall + setvar VAR_0x4001, 11 + setvar VAR_0x8004, 644 + checkflag FLAG_SILPH_7F_DOOR_1 + goto_if TRUE, EventScript_1A813F + goto EventScript_1A8B23 + end + +SilphCo_7F_EventScript_1A8A39:: @ 81A8A39 + lockall + setvar VAR_0x4001, 12 + setvar VAR_0x8004, 645 + checkflag FLAG_SILPH_7F_DOOR_2 + goto_if TRUE, EventScript_1A813F + goto EventScript_1A8B23 + end + +SilphCo_7F_EventScript_1A8A53:: @ 81A8A53 + lockall + setvar VAR_0x4001, 13 + setvar VAR_0x8004, 646 + checkflag FLAG_SILPH_7F_DOOR_3 + goto_if TRUE, EventScript_1A813F + goto EventScript_1A8B23 + end + +SilphCo_8F_EventScript_1A8A6D:: @ 81A8A6D + lockall + setvar VAR_0x4001, 14 + setvar VAR_0x8004, 647 + checkflag FLAG_SILPH_8F_DOOR + goto_if TRUE, EventScript_1A813F + goto EventScript_1A8B23 + end + +SilphCo_9F_EventScript_1A8A87:: @ 81A8A87 + lockall + setvar VAR_0x4001, 15 + setvar VAR_0x8004, 648 + checkflag FLAG_SILPH_9F_DOOR_1 + goto_if TRUE, EventScript_1A813F + goto EventScript_1A8B23 + end + +SilphCo_9F_EventScript_1A8AA1:: @ 81A8AA1 + lockall + setvar VAR_0x4001, 16 + setvar VAR_0x8004, 649 + checkflag FLAG_SILPH_9F_DOOR_2 + goto_if TRUE, EventScript_1A813F + goto EventScript_1A8B23 + end + +SilphCo_9F_EventScript_1A8ABB:: @ 81A8ABB + lockall + setvar VAR_0x4001, 17 + setvar VAR_0x8004, 650 + checkflag FLAG_SILPH_9F_DOOR_3 + goto_if TRUE, EventScript_1A813F + goto EventScript_1A8B23 + end + +SilphCo_9F_EventScript_1A8AD5:: @ 81A8AD5 + lockall + setvar VAR_0x4001, 18 + setvar VAR_0x8004, 651 + checkflag FLAG_SILPH_9F_DOOR_4 + goto_if TRUE, EventScript_1A813F + goto EventScript_1A8B23 + end + +SilphCo_10F_EventScript_1A8AEF:: @ 81A8AEF + lockall + setvar VAR_0x4001, 19 + setvar VAR_0x8004, 652 + checkflag FLAG_SILPH_10F_DOOR + goto_if TRUE, EventScript_1A813F + goto EventScript_1A8B23 + end + +SilphCo_11F_EventScript_1A8B09:: @ 81A8B09 + lockall + setvar VAR_0x4001, 20 + setvar VAR_0x8004, 653 + checkflag FLAG_SILPH_11F_DOOR + goto_if TRUE, EventScript_1A813F + goto EventScript_1A8B23 + end + +EventScript_1A8B23:: @ 81A8B23 + checkflag FLAG_HIDE_SILPH_CO_5F_CARD_KEY + goto_if TRUE, EventScript_1A8B32 + goto EventScript_1A8135 + end + +EventScript_1A8B32:: @ 81A8B32 + playfanfare MUS_FANFA1 + msgbox Text_1A5B88 + waitfanfare + compare_var_to_value VAR_0x4001, 1 + call_if eq, EventScript_1A8532 + compare_var_to_value VAR_0x4001, 2 + call_if eq, EventScript_1A8560 + compare_var_to_value VAR_0x4001, 3 + call_if eq, EventScript_1A858E + compare_var_to_value VAR_0x4001, 4 + call_if eq, EventScript_1A85C5 + compare_var_to_value VAR_0x4001, 5 + call_if eq, EventScript_1A85FC + compare_var_to_value VAR_0x4001, 6 + call_if eq, EventScript_1A862A + compare_var_to_value VAR_0x4001, 7 + call_if eq, EventScript_1A8658 + compare_var_to_value VAR_0x4001, 8 + call_if eq, EventScript_1A868F + compare_var_to_value VAR_0x4001, 9 + call_if eq, EventScript_1A86C6 + compare_var_to_value VAR_0x4001, 10 + call_if eq, EventScript_1A86FD + compare_var_to_value VAR_0x4001, 11 + call_if eq, EventScript_1A8734 + compare_var_to_value VAR_0x4001, 12 + call_if eq, EventScript_1A8762 + compare_var_to_value VAR_0x4001, 13 + call_if eq, EventScript_1A8790 + compare_var_to_value VAR_0x4001, 14 + call_if eq, EventScript_1A87BE + compare_var_to_value VAR_0x4001, 15 + call_if eq, EventScript_1A87F5 + compare_var_to_value VAR_0x4001, 16 + call_if eq, EventScript_1A882C + compare_var_to_value VAR_0x4001, 17 + call_if eq, EventScript_1A8863 + compare_var_to_value VAR_0x4001, 18 + call_if eq, EventScript_1A8891 + compare_var_to_value VAR_0x4001, 19 + call_if eq, EventScript_1A88BF + compare_var_to_value VAR_0x4001, 20 + call_if eq, EventScript_1A88ED + waitse + playse SE_KI_GASYAN + special DrawWholeMapView + waitse + special Special_SetHiddenItemFlag + releaseall + end + +EventScript_1A8C27:: @ 81A8C27 + countpokemon + subvar VAR_RESULT, 1 + copyvar VAR_0x8004, VAR_RESULT + return + +EventScript_1A8C33:: @ 81A8C33 + fadescreen 1 + special ChangeBoxPokemonNickname + waitstate + lock + faceplayer + return + +EventScript_1A8C3C:: @ 81A8C3C + bufferboxname 0, VAR_0x4037 + getspeciesname 1, VAR_0x4001 + checkflag FLAG_SYS_NOT_SOMEONES_PC + call_if FALSE, EventScript_1A8C57 + checkflag FLAG_SYS_NOT_SOMEONES_PC + call_if TRUE, EventScript_1A8C82 + return + +EventScript_1A8C57:: @ 81A8C57 + specialvar VAR_RESULT, sub_80CC7B4 + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1A8C70 + msgbox Text_1A5CF1 + return + +EventScript_1A8C70:: @ 81A8C70 + specialvar VAR_RESULT, get_unknown_box_id + bufferboxname 2, VAR_RESULT + msgbox Text_1A5D6E + return + +EventScript_1A8C82:: @ 81A8C82 + specialvar VAR_RESULT, sub_80CC7B4 + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1A8C9B + msgbox Text_1A5D31 + return + +EventScript_1A8C9B:: @ 81A8C9B + specialvar VAR_RESULT, get_unknown_box_id + bufferboxname 2, VAR_RESULT + msgbox Text_1A5DB1 + return + +EventScript_1A8CAD:: @ 81A8CAD + copyvar VAR_0x8004, VAR_0x8008 + specialvar VAR_RESULT, GetInGameTradeSpeciesInfo + copyvar VAR_0x8009, VAR_RESULT + return + +EventScript_1A8CBD:: @ 81A8CBD + special Special_ChooseMonFromParty + waitstate + lock + faceplayer + copyvar VAR_0x800A, VAR_0x8004 + return + +EventScript_1A8CC9:: @ 81A8CC9 + copyvar VAR_0x8005, VAR_0x800A + specialvar VAR_RESULT, GetTradeSpecies + copyvar VAR_0x800B, VAR_RESULT + return + +EventScript_1A8CD9:: @ 81A8CD9 + copyvar VAR_0x8004, VAR_0x8008 + copyvar VAR_0x8005, VAR_0x800A + special CreateInGameTradePokemon + special DoInGameTradeScene + waitstate + lock + faceplayer + return + +gUnknown_81A8CED:: @ 81A8CED + special sub_810C3A4 + waitstate + special sub_810C444 + releaseall + end + +CeruleanCity_PokemonCenter_2F_EventScript_1A8CF6:: @ 81A8CF6 +CinnabarIsland_PokemonCenter_2F_EventScript_1A8CF6:: @ 81A8CF6 +FiveIsland_PokemonCenter_2F_EventScript_1A8CF6:: @ 81A8CF6 +FuchsiaCity_PokemonCenter_2F_EventScript_1A8CF6:: @ 81A8CF6 +OneIsland_PokemonCenter_2F_EventScript_1A8CF6:: @ 81A8CF6 +PewterCity_PokemonCenter_2F_EventScript_1A8CF6:: @ 81A8CF6 +SevenIsland_PokemonCenter_2F_EventScript_1A8CF6:: @ 81A8CF6 +VermilionCity_PokemonCenter_2F_EventScript_1A8CF6:: @ 81A8CF6 +FourIsland_PokemonCenter_2F_EventScript_1A8CF6:: @ 81A8CF6 +SixIsland_PokemonCenter_2F_EventScript_1A8CF6:: @ 81A8CF6 +ThreeIsland_PokemonCenter_2F_EventScript_1A8CF6:: @ 81A8CF6 +TwoIsland_PokemonCenter_2F_EventScript_1A8CF6:: @ 81A8CF6 +Route10_PokemonCenter_2F_EventScript_1A8CF6:: @ 81A8CF6 +Route10_PokemonCenter_2F_EventScript_1A8CF6:: @ 81A8CF6 +Route4_PokemonCenter_2F_EventScript_1A8CF6:: @ 81A8CF6 +SaffronCity_PokemonCenter_2F_EventScript_1A8CF6:: @ 81A8CF6 +IndigoPlateau_PokemonCenter_2F_EventScript_1A8CF6:: @ 81A8CF6 +CeladonCity_PokemonCenter_2F_EventScript_1A8CF6:: @ 81A8CF6 +LavenderTown_PokemonCenter_2F_EventScript_1A8CF6:: @ 81A8CF6 +ViridianCity_PokemonCenter_2F_EventScript_1A8CF6:: @ 81A8CF6 + call EventScript_1BBA04 + end + +CeruleanCity_PokemonCenter_2F_EventScript_1A8CFC:: @ 81A8CFC +CinnabarIsland_PokemonCenter_2F_EventScript_1A8CFC:: @ 81A8CFC +FiveIsland_PokemonCenter_2F_EventScript_1A8CFC:: @ 81A8CFC +FuchsiaCity_PokemonCenter_2F_EventScript_1A8CFC:: @ 81A8CFC +OneIsland_PokemonCenter_2F_EventScript_1A8CFC:: @ 81A8CFC +PewterCity_PokemonCenter_2F_EventScript_1A8CFC:: @ 81A8CFC +SevenIsland_PokemonCenter_2F_EventScript_1A8CFC:: @ 81A8CFC +VermilionCity_PokemonCenter_2F_EventScript_1A8CFC:: @ 81A8CFC +FourIsland_PokemonCenter_2F_EventScript_1A8CFC:: @ 81A8CFC +SixIsland_PokemonCenter_2F_EventScript_1A8CFC:: @ 81A8CFC +ThreeIsland_PokemonCenter_2F_EventScript_1A8CFC:: @ 81A8CFC +TwoIsland_PokemonCenter_2F_EventScript_1A8CFC:: @ 81A8CFC +Route10_PokemonCenter_2F_EventScript_1A8CFC:: @ 81A8CFC +Route10_PokemonCenter_2F_EventScript_1A8CFC:: @ 81A8CFC +Route4_PokemonCenter_2F_EventScript_1A8CFC:: @ 81A8CFC +SaffronCity_PokemonCenter_2F_EventScript_1A8CFC:: @ 81A8CFC +IndigoPlateau_PokemonCenter_2F_EventScript_1A8CFC:: @ 81A8CFC +CeladonCity_PokemonCenter_2F_EventScript_1A8CFC:: @ 81A8CFC +LavenderTown_PokemonCenter_2F_EventScript_1A8CFC:: @ 81A8CFC +ViridianCity_PokemonCenter_2F_EventScript_1A8CFC:: @ 81A8CFC + call EventScript_1BBB6A + end + +CeruleanCity_PokemonCenter_2F_EventScript_1A8D02:: @ 81A8D02 +CinnabarIsland_PokemonCenter_2F_EventScript_1A8D02:: @ 81A8D02 +FiveIsland_PokemonCenter_2F_EventScript_1A8D02:: @ 81A8D02 +FuchsiaCity_PokemonCenter_2F_EventScript_1A8D02:: @ 81A8D02 +OneIsland_PokemonCenter_2F_EventScript_1A8D02:: @ 81A8D02 +PewterCity_PokemonCenter_2F_EventScript_1A8D02:: @ 81A8D02 +SevenIsland_PokemonCenter_2F_EventScript_1A8D02:: @ 81A8D02 +VermilionCity_PokemonCenter_2F_EventScript_1A8D02:: @ 81A8D02 +FourIsland_PokemonCenter_2F_EventScript_1A8D02:: @ 81A8D02 +SixIsland_PokemonCenter_2F_EventScript_1A8D02:: @ 81A8D02 +ThreeIsland_PokemonCenter_2F_EventScript_1A8D02:: @ 81A8D02 +TwoIsland_PokemonCenter_2F_EventScript_1A8D02:: @ 81A8D02 +Route10_PokemonCenter_2F_EventScript_1A8D02:: @ 81A8D02 +Route10_PokemonCenter_2F_EventScript_1A8D02:: @ 81A8D02 +Route4_PokemonCenter_2F_EventScript_1A8D02:: @ 81A8D02 +SaffronCity_PokemonCenter_2F_EventScript_1A8D02:: @ 81A8D02 +IndigoPlateau_PokemonCenter_2F_EventScript_1A8D02:: @ 81A8D02 +CeladonCity_PokemonCenter_2F_EventScript_1A8D02:: @ 81A8D02 +LavenderTown_PokemonCenter_2F_EventScript_1A8D02:: @ 81A8D02 +ViridianCity_PokemonCenter_2F_EventScript_1A8D02:: @ 81A8D02 + call EventScript_1BBB9C + end + +VermilionCity_PokemonCenter_1F_EventScript_1A8D08:: @ 81A8D08 + lock + faceplayer + checkflag FLAG_GOT_VS_SEEKER + goto_if TRUE, EventScript_1A8D3F + msgbox Text_194234 + setflag FLAG_GOT_VS_SEEKER + giveitem ITEM_VS_SEEKER + compare_var_to_value VAR_RESULT, 0 + goto_if eq, EventScript_1A6BF9 + msgbox Text_19430F + release + end + +EventScript_1A8D3F:: @ 81A8D3F + msgbox Text_194381 + release + end + +EventScript_ItemfinderDigUpUnderfootItem:: @ 81A8D49 + lockall + textcolor 3 + waitse + call EventScript_GiveItem + compare_var_to_value VAR_0x8007, 1 + goto_if eq, EventScript_DigUpItemPutInPocket + compare_var_to_value VAR_0x8007, 0 + goto_if eq, EventScript_DigUpItemBagIsFull + end + +EventScript_DigUpItemPutInPocket:: + message Text_1A5700 + waitfanfare + waitmessage + delay 60 + msgbox gUnknown_81A5218 + special Special_SetHiddenItemFlag + releaseall + end + +EventScript_DigUpItemBagIsFull:: + msgbox Text_1A5700 + msgbox gUnknown_81A5242 + setvar VAR_RESULT, 0 + releaseall + end + +EventScript_AfterWhiteOutHeal:: @ 81A8D97 + lockall + textcolor 1 + msgbox Text_1A5E89 + call EventScript_1A65CE + checkflag FLAG_DEFEATED_BROCK + call_if FALSE, EventScript_1A8DC6 + checkflag FLAG_DEFEATED_BROCK + call_if TRUE, EventScript_1A8DCF + applymovement VAR_LAST_TALKED, Movement_1A666C + waitmovement 0 + fadedefaultbgm + releaseall + end + +EventScript_1A8DC6:: @ 81A8DC6 + msgbox Text_1A5EC0 + return + +EventScript_1A8DCF:: @ 81A8DCF + msgbox Text_1A5F9B + return + +EventScript_MomHeal:: @ 81A8DD8 + lockall + textcolor 1 + applymovement 1, Movement_1A75ED + waitmovement 0 + msgbox Text_1A5FDF + call EventScript_FadeOut_Heal_FadeIn + msgbox Text_1A6046 + fadedefaultbgm + releaseall + end + +EventScript_PoisonWhiteOut:: @ 81A8DFD + lockall + textcolor 3 + special ExecuteWhiteOut + waitstate + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1A8E11 + releaseall + end + +EventScript_1A8E11:: @ 81A8E11 + checkmoney 1, 0 + compare_var_to_value VAR_RESULT, 0 + goto_if eq, EventScript_1A8E2E + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1A8E3C + end + +EventScript_1A8E2E:: @ 81A8E2E + msgbox Text_1A61E5 + goto EventScript_1A8E4D + end + +EventScript_1A8E3C:: @ 81A8E3C + special Special_OverworldWhiteOutGetMoneyLoss + msgbox Text_1A6197 + goto EventScript_1A8E4D + end + +EventScript_1A8E4D:: @ 81A8E4D + special sub_807F0B0 + waitstate + fadescreen 1 + special sp0C8_whiteout_maybe + waitstate + end + +gStdScript_8:: @ 81A8E58 + bufferitemnameplural 1, VAR_0x8000, VAR_0x8001 + checkitemtype VAR_0x8000 + call EventScript_1A8E6F + msgbox gUnknown_81A5218 + return + +EventScript_1A8E6F:: @ 81A8E6F + switch VAR_RESULT + case 1, EventScript_1A8EAC + case 2, EventScript_1A8EB1 + case 3, EventScript_1A8EB6 + case 4, EventScript_1A8EBB + case 5, EventScript_1A8EC0 + end + +EventScript_1A8EAC:: @ 81A8EAC + getstdstring 2, 24 + return + +EventScript_1A8EB1:: @ 81A8EB1 + getstdstring 2, 25 + return + +EventScript_1A8EB6:: @ 81A8EB6 + getstdstring 2, 26 + return + +EventScript_1A8EBB:: @ 81A8EBB + getstdstring 2, 27 + return + +EventScript_1A8EC0:: @ 81A8EC0 + getstdstring 2, 28 + return + +EventScript_1A8EC5:: @ 81A8EC5 + compare_var_to_value VAR_MAP_SCENE_ONE_ISLAND_POKEMON_CENTER_1F, 5 + goto_if ge, EventScript_1A911E + compare_var_to_value VAR_MAP_SCENE_CINNABAR_ISLAND, 4 + goto_if ge, EventScript_1A8F12 + multichoice 19, 6, MULTICHOICE_ISLAND_23, FALSE + switch VAR_RESULT + case 0, EventScript_1A8FF9 + case 1, EventScript_1A9004 + case 2, EventScript_1A90F6 + case SCR_MENU_CANCEL, EventScript_1A90F6 + end + +EventScript_1A8F12:: @ 81A8F12 + multichoice 19, 5, MULTICHOICE_SEAGALLOP_V23, FALSE + switch VAR_RESULT + case 0, EventScript_1A8FE3 + case 1, EventScript_1A8FF9 + case 2, EventScript_1A9004 + case 3, EventScript_1A90F6 + case SCR_MENU_CANCEL, EventScript_1A90F6 + end + +EventScript_1A8F54:: @ 81A8F54 + compare_var_to_value VAR_MAP_SCENE_ONE_ISLAND_POKEMON_CENTER_1F, 5 + goto_if ge, EventScript_1A911E + compare_var_to_value VAR_MAP_SCENE_CINNABAR_ISLAND, 4 + goto_if ge, EventScript_1A8FA1 + multichoice 19, 6, MULTICHOICE_ISLAND_13, FALSE + switch VAR_RESULT + case 0, EventScript_1A8FEE + case 1, EventScript_1A9004 + case 2, EventScript_1A90F6 + case SCR_MENU_CANCEL, EventScript_1A90F6 + end + +EventScript_1A8FA1:: @ 81A8FA1 + multichoice 19, 5, MULTICHOICE_SEAGALLOP_V13, FALSE + switch VAR_RESULT + case 0, EventScript_1A8FE3 + case 1, EventScript_1A8FEE + case 2, EventScript_1A9004 + case 3, EventScript_1A90F6 + case SCR_MENU_CANCEL, EventScript_1A90F6 + end + +EventScript_1A8FE3:: @ 81A8FE3 + setvar VAR_0x8006, SEAGALLOP_VERMILION_CITY + goto EventScript_1A909E + end + +EventScript_1A8FEE:: @ 81A8FEE + setvar VAR_0x8006, SEAGALLOP_ONE_ISLAND + goto EventScript_1A909E + end + +EventScript_1A8FF9:: @ 81A8FF9 + setvar VAR_0x8006, SEAGALLOP_TWO_ISLAND + goto EventScript_1A909E + end + +EventScript_1A9004:: @ 81A9004 + setvar VAR_0x8006, SEAGALLOP_THREE_ISLAND + goto EventScript_1A909E + end + +EventScript_1A900F:: @ 81A900F + compare_var_to_value VAR_MAP_SCENE_ONE_ISLAND_POKEMON_CENTER_1F, 5 + goto_if ge, EventScript_1A911E + compare_var_to_value VAR_MAP_SCENE_CINNABAR_ISLAND, 4 + goto_if ge, EventScript_1A905C + multichoice 19, 6, MULTICHOICE_ISLAND_12, FALSE + switch VAR_RESULT + case 0, EventScript_1A8FEE + case 1, EventScript_1A8FF9 + case 2, EventScript_1A90F6 + case SCR_MENU_CANCEL, EventScript_1A90F6 + end + +EventScript_1A905C:: @ 81A905C + multichoice 19, 5, MULTICHOICE_SEAGALLOP_V12, FALSE + switch VAR_RESULT + case 0, EventScript_1A8FE3 + case 1, EventScript_1A8FEE + case 2, EventScript_1A8FF9 + case 3, EventScript_1A90F6 + case SCR_MENU_CANCEL, EventScript_1A90F6 + end + +EventScript_1A909E:: @ 81A909E + specialvar VAR_RESULT, sub_8147500 + getnumberstring 0, VAR_RESULT + compare_var_to_value VAR_0x8004, SEAGALLOP_VERMILION_CITY + goto_if eq, EventScript_1A90BE + compare_var_to_value VAR_0x8004, SEAGALLOP_VERMILION_CITY + goto_if ne, EventScript_1A90CC + end + +EventScript_1A90BE:: @ 81A90BE + msgbox Text_17FB67 + goto EventScript_1A90DA + end + +EventScript_1A90CC:: @ 81A90CC + msgbox Text_1A641B + goto EventScript_1A90DA + end + +EventScript_1A90DA:: @ 81A90DA + closemessage + delay 20 + special sub_8110AB4 + compare_var_to_value VAR_RESULT, 2 + goto_if eq, EventScript_1A7AE0 + special sub_8112364 + fadescreen 1 + special ScrSpecial_SeagallopFerry + waitstate + end + +EventScript_1A90F6:: @ 81A90F6 + specialvar VAR_RESULT, sub_8147594 + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1A9108 + release + end + +EventScript_1A9108:: @ 81A9108 + closemessage + applymovement 6, Movement_1A75E5 + applymovement 255, Movement_1A911C + waitmovement 0 + releaseall + end + +Movement_1A911C:: @ 81A911C + step_11 + step_end + +EventScript_1A911E:: @ 81A911E + setvar VAR_0x8005, 0 + special Special_DrawSeagallopDestinationMenu + waitstate + specialvar VAR_0x8006, Special_GetSelectedSeagallopDestination + switch VAR_0x8006 + case SEAGALLOP_VERMILION_CITY, EventScript_1A91D5 + case SEAGALLOP_ONE_ISLAND, EventScript_1A91E0 + case SEAGALLOP_TWO_ISLAND, EventScript_1A91EB + case SEAGALLOP_THREE_ISLAND, EventScript_1A91F6 + case SEAGALLOP_FOUR_ISLAND, EventScript_1A9201 + case SEAGALLOP_MORE, EventScript_1A917F + case SCR_MENU_CANCEL, EventScript_1A90F6 + end + +EventScript_1A917F:: @ 81A917F + setvar VAR_0x8005, 1 + special Special_DrawSeagallopDestinationMenu + waitstate + specialvar VAR_0x8006, Special_GetSelectedSeagallopDestination + switch VAR_0x8006 + case SEAGALLOP_FOUR_ISLAND, EventScript_1A9201 + case SEAGALLOP_FIVE_ISLAND, EventScript_1A920C + case SEAGALLOP_SIX_ISLAND, EventScript_1A9217 + case SEAGALLOP_SEVEN_ISLAND, EventScript_1A9222 + case SEAGALLOP_MORE, EventScript_1A911E + case SCR_MENU_CANCEL, EventScript_1A90F6 + end + +EventScript_1A91D5:: @ 81A91D5 + setvar VAR_0x8006, SEAGALLOP_VERMILION_CITY + goto EventScript_1A909E + end + +EventScript_1A91E0:: @ 81A91E0 + setvar VAR_0x8006, SEAGALLOP_ONE_ISLAND + goto EventScript_1A909E + end + +EventScript_1A91EB:: @ 81A91EB + setvar VAR_0x8006, SEAGALLOP_TWO_ISLAND + goto EventScript_1A909E + end + +EventScript_1A91F6:: @ 81A91F6 + setvar VAR_0x8006, SEAGALLOP_THREE_ISLAND + goto EventScript_1A909E + end + +EventScript_1A9201:: @ 81A9201 + setvar VAR_0x8006, SEAGALLOP_FOUR_ISLAND + goto EventScript_1A909E + end + +EventScript_1A920C:: @ 81A920C + setvar VAR_0x8006, SEAGALLOP_FIVE_ISLAND + goto EventScript_1A909E + end + +EventScript_1A9217:: @ 81A9217 + setvar VAR_0x8006, SEAGALLOP_SIX_ISLAND + goto EventScript_1A909E + end + +EventScript_1A9222:: @ 81A9222 + setvar VAR_0x8006, SEAGALLOP_SEVEN_ISLAND + goto EventScript_1A909E + end + +EventScript_1A922D:: @ 81A922D + fadescreen 1 + removeobject VAR_LAST_TALKED + fadescreen 0 + release + end + +EventScript_1A9236:: @ 81A9236 + fadescreen 1 + removeobject VAR_LAST_TALKED + fadescreen 0 + getspeciesname 0, VAR_0x8004 + msgbox Text_1A63C4 + release + end + +EventScript_1A924B:: @ 81A924B + message Text_1853E8 + waitmessage + playfanfare MUS_POKEFUE + waitfanfare + msgbox Text_185354 + return + +EventScript_1A925E:: @ 81A925E + checkflag FLAG_SYS_UNLOCKED_TANOBY_RUINS + goto_if TRUE, EventScript_1A77A9 + setweather 11 + doweather + return + +EventScript_BrailleCursorWaitButton:: @ 81A926C + special Special_BrailleCursorToggle + waitbuttonpress + playse SE_SELECT + setvar VAR_0x8006, 1 + special Special_BrailleCursorToggle + return + +EventScript_1A927C:: @ 81A927C + textcolor 3 + msgbox gUnknown_81A5E31 + release + end + +gUnknown_81A9288:: @ 81A9288 + .braille "UP$" + +gUnknown_81A928B:: @ 81A928B + .braille "DOWN$" + +gUnknown_81A9290:: @ 81A9290 + .braille "RIGHT$" + +gUnknown_81A9296:: @ 81A9296 + .braille "LEFT$" + +gUnknown_81A929B:: @ 81A929B + .braille "CUT$" + +gUnknown_81A929F:: @ 81A929F + .braille "ABC$" + +gUnknown_81A92A3:: @ 81A92A3 + .braille "GHI$" + +gUnknown_81A92A7:: @ 81A92A7 + .braille "MNO$" + +gUnknown_81A92AB:: @ 81A92AB + .braille "TUV$" + +gUnknown_81A92AF:: @ 81A92AF + .braille "DEF$" + +gUnknown_81A92B3:: @ 81A92B3 + .braille "JKL$" + +gUnknown_81A92B7:: @ 81A92B7 + .braille "PQRS$" + +gUnknown_81A92BC:: @ 81A92BC + .braille "WXYZ$" + +gUnknown_81A92C1:: @ 81A92C1 + .braille ".$" + +gUnknown_81A92C3:: @ 81A92C3 + .braille ",$" + +gUnknown_81A92C5:: @ 81A92C5 + .braille "EVERYTHING$" + +gUnknown_81A92D0:: @ 81A92D0 + .braille "HAS MEANING$" + +gUnknown_81A92DC:: @ 81A92DC + .braille "EXISTENCE$" + +gUnknown_81A92E6:: @ 81A92E6 + .braille "HAS MEANING$" + +gUnknown_81A92F2:: @ 81A92F2 + .braille "BEING ALIVE$" + +gUnknown_81A92FE:: @ 81A92FE + .braille "HAS MEANING$" + +gUnknown_81A930A:: @ 81A930A + .braille "HAVE DREAMS$" + +gUnknown_81A9316:: @ 81A9316 + .braille "USE POWER.$" + +gUnknown_81A9321:: @ 81A9321 + .braille "LET THE TWO$" + +gUnknown_81A932D:: @ 81A932D + .braille "GLITTERING$" + +gUnknown_81A9338:: @ 81A9338 + .braille "STONES$" + +gUnknown_81A933F:: @ 81A933F + .braille "ONE IN RED$" + +gUnknown_81A934A:: @ 81A934A + .braille "ONE IN BLUE$" + +gUnknown_81A9356:: @ 81A9356 + .braille "CONNECT THE$" + +gUnknown_81A9362:: @ 81A9362 + .braille "PAST.$" + +gUnknown_81A9368:: @ 81A9368 + .braille "TWO FRIENDS$" + +gUnknown_81A9374:: @ 81A9374 + .braille "SHARING$" + +gUnknown_81A937C:: @ 81A937C + .braille "POWER OPEN$" + +gUnknown_81A9387:: @ 81A9387 + .braille "A WINDOW TO$" + +gUnknown_81A9393:: @ 81A9393 + .braille "A NEW WORLD$" + +gUnknown_81A939F:: @ 81A939F + .braille "THAT GLOWS.$" + +gUnknown_81A93AB:: @ 81A93AB + .braille "THE NEXT$" + +gUnknown_81A93B4:: @ 81A93B4 + .braille "WORLD WAITS$" + +gUnknown_81A93C0:: @ 81A93C0 + .braille "FOR YOU.$" + +Route3_EventScript_1A93C9:: @ 81A93C9 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_YOUNGSTER_BEN, 0, Text_183560, Text_1835A0 + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1A93F0 + msgbox Text_1835B4, 6 + end + +EventScript_1A93F0:: @ 81A93F0 + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_YOUNGSTER_BEN, 0, Text_1C149D, Text_1835A0 + msgbox Text_1835B4, 6 + end + +Route3_EventScript_1A9407:: @ 81A9407 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_YOUNGSTER_CALVIN, 0, Text_183786, Text_1837BD + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1A942E + msgbox Text_1837CF, 6 + end + +EventScript_1A942E:: @ 81A942E + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_YOUNGSTER_CALVIN, 0, Text_1C1588, Text_1837BD + msgbox Text_1837CF, 6 + end + +Route3_EventScript_1A9445:: @ 81A9445 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_BUG_CATCHER_COLTON, 0, Text_1834E6, Text_183509 + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1A946C + msgbox Text_18351C, 6 + end + +EventScript_1A946C:: @ 81A946C + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_BUG_CATCHER_COLTON, 0, Text_1C147A, Text_183509 + msgbox Text_18351C, 6 + end + +Route3_EventScript_1A9483:: @ 81A9483 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_BUG_CATCHER_GREG, 0, Text_183682, Text_1836B3 + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1A94AA + msgbox Text_1836D9, 6 + end + +EventScript_1A94AA:: @ 81A94AA + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_BUG_CATCHER_GREG, 0, Text_1C1521, Text_1836B3 + msgbox Text_1836D9, 6 + end + +Route3_EventScript_1A94C1:: @ 81A94C1 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_BUG_CATCHER_JAMES, 0, Text_183807, Text_183837 + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1A94E8 + msgbox Text_183849, 6 + end + +EventScript_1A94E8:: @ 81A94E8 + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_BUG_CATCHER_JAMES, 0, Text_1C15C5, Text_183837 + msgbox Text_183849, 6 + end + +Route3_EventScript_1A94FF:: @ 81A94FF + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_LASS_JANICE, 0, Text_183616, Text_18363F + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1A9526 + msgbox Text_18364C, 6 + end + +EventScript_1A9526:: @ 81A9526 + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_LASS_JANICE, 0, Text_1C14F3, Text_18363F + msgbox Text_18364C, 6 + end + +Route3_EventScript_1A953D:: @ 81A953D + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_LASS_SALLY, 0, Text_18371B, Text_183746 + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1A9564 + msgbox Text_18374F, 6 + end + +EventScript_1A9564:: @ 81A9564 + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_LASS_SALLY, 0, Text_1C155D, Text_183746 + msgbox Text_18374F, 6 + end + +Route3_EventScript_1A957B:: @ 81A957B + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_LASS_ROBIN, 0, Text_18387A, Text_183891 + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1A95A2 + msgbox Text_18389C, 6 + end + +EventScript_1A95A2:: @ 81A95A2 + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_LASS_ROBIN, 0, Text_1C15F9, Text_183891 + msgbox Text_18389C, 6 + end + +Route4_EventScript_1A95B9:: @ 81A95B9 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_LASS_CRISSY, 0, Text_183906, Text_183938 + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1A95E0 + msgbox Text_183957, 6 + end + +EventScript_1A95E0:: @ 81A95E0 + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_LASS_CRISSY, 0, Text_1C160F, Text_183938 + msgbox Text_183957, 6 + end + +Route24_EventScript_1A95F7:: @ 81A95F7 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_YOUNGSTER_TIMMY, 0, Text_188F76, Text_188F95 + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1A961E + msgbox Text_188FA7, 6 + end + +EventScript_1A961E:: @ 81A961E + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_YOUNGSTER_TIMMY, 0, Text_1C3657, Text_188F95 + msgbox Text_188FA7, 6 + end + +Route24_EventScript_1A9635:: @ 81A9635 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_BUG_CATCHER_CALE, 0, Text_18901B, Text_18908C + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1A965C + msgbox Text_18909E, 6 + end + +EventScript_1A965C:: @ 81A965C + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_BUG_CATCHER_CALE, 0, Text_1C36DA, Text_18908C + msgbox Text_18909E, 6 + end + +Route24_EventScript_1A9673:: @ 81A9673 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_LASS_RELI, 0, Text_188F2C, Text_188F46 + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1A969A + msgbox Text_188F53, 6 + end + +EventScript_1A969A:: @ 81A969A + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_LASS_RELI, 0, Text_1C3624, Text_188F46 + msgbox Text_188F53, 6 + end + +Route24_EventScript_1A96B1:: @ 81A96B1 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_LASS_ALI, 0, Text_188FC9, Text_188FE7 + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1A96D8 + msgbox Text_188FF9, 6 + end + +EventScript_1A96D8:: @ 81A96D8 + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_LASS_ALI, 0, Text_1C3685, Text_188FE7 + msgbox Text_188FF9, 6 + end + +Route24_EventScript_1A96EF:: @ 81A96EF + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_CAMPER_SHANE, 0, Text_188E74, Text_188E94 + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1A9716 + msgbox Text_188EA3, 6 + end + +EventScript_1A9716:: @ 81A9716 + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_CAMPER_SHANE, 0, Text_1C35EE, Text_188E94 + msgbox Text_188EA3, 6 + end + +Route24_EventScript_1A972D:: @ 81A972D + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_CAMPER_ETHAN, 0, Text_188ED9, Text_188EFA + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1A9754 + msgbox Text_188F0A, 6 + end + +EventScript_1A9754:: @ 81A9754 + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_CAMPER_ETHAN, 0, Text_1C360E, Text_188EFA + msgbox Text_188F0A, 6 + end + +Route25_EventScript_1A976B:: @ 81A976B + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_YOUNGSTER_JOEY, 0, Text_1890C0, Text_1890E6 + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1A9792 + msgbox Text_1890F5, 6 + end + +EventScript_1A9792:: @ 81A9792 + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_YOUNGSTER_JOEY, 0, Text_1C33E7, Text_1890E6 + msgbox Text_1890F5, 6 + end + +Route25_EventScript_1A97A9:: @ 81A97A9 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_YOUNGSTER_DAN, 0, Text_189165, Text_1891A6 + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1A97D0 + msgbox Text_1891B3, 6 + end + +EventScript_1A97D0:: @ 81A97D0 + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_YOUNGSTER_DAN, 0, Text_1C3404, Text_1891A6 + msgbox Text_1891B3, 6 + end + +Route25_EventScript_1A97E7:: @ 81A97E7 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_YOUNGSTER_CHAD, 0, Text_1892A9, Text_1892D9 + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1A980E + msgbox Text_1892EF, 6 + end + +EventScript_1A980E:: @ 81A980E + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_YOUNGSTER_CHAD, 0, Text_1C34D4, Text_1892D9 + msgbox Text_1892EF, 6 + end + +Route25_EventScript_1A9825:: @ 81A9825 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_PICNICKER_KELSEY, 0, Text_189247, Text_189261 + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1A984C + msgbox Text_189281, 6 + end + +EventScript_1A984C:: @ 81A984C + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_PICNICKER_KELSEY, 0, Text_1C349C, Text_189261 + msgbox Text_189281, 6 + end + +Route25_EventScript_1A9863:: @ 81A9863 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_LASS_HALEY, 0, Text_189333, Text_189364 + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1A988A + msgbox Text_189378, 6 + end + +EventScript_1A988A:: @ 81A988A + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_LASS_HALEY, 0, Text_1C350A, Text_189364 + msgbox Text_189378, 6 + end + +Route25_EventScript_1A98A1:: @ 81A98A1 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_HIKER_FRANKLIN, 0, Text_1893A7, Text_1893EA + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1A98C8 + msgbox Text_1893FB, 6 + end + +EventScript_1A98C8:: @ 81A98C8 + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_HIKER_FRANKLIN, 0, Text_1C353B, Text_1893EA + msgbox Text_1893FB, 6 + end + +Route25_EventScript_1A98DF:: @ 81A98DF + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_HIKER_NOB, 0, Text_189423, Text_189459 + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1A9906 + msgbox Text_18947E, 6 + end + +EventScript_1A9906:: @ 81A9906 + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_HIKER_NOB, 0, Text_1C357E, Text_189459 + msgbox Text_18947E, 6 + end + +Route25_EventScript_1A991D:: @ 81A991D + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_HIKER_WAYNE, 0, Text_1894DE, Text_18950A + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1A9944 + msgbox Text_18951C, 6 + end + +EventScript_1A9944:: @ 81A9944 + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_HIKER_WAYNE, 0, Text_1C35BC, Text_18950A + msgbox Text_18951C, 6 + end + +Route25_EventScript_1A995B:: @ 81A995B + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_CAMPER_FLINT, 0, Text_1891EB, Text_189212 + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1A9982 + msgbox Text_18921D, 6 + end + +EventScript_1A9982:: @ 81A9982 + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_CAMPER_FLINT, 0, Text_1C3445, Text_189212 + msgbox Text_18921D, 6 + end + +Route6_EventScript_1A9999:: @ 81A9999 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_BUG_CATCHER_KEIGO, 0, Text_183E9F, Text_183EC0 + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1A99C0 + msgbox Text_183ED4, 6 + end + +EventScript_1A99C0:: @ 81A99C0 + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_BUG_CATCHER_KEIGO, 0, Text_1C16E2, Text_183EC0 + msgbox Text_183ED4, 6 + end + +Route6_EventScript_1A99D7:: @ 81A99D7 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_BUG_CATCHER_ELIJAH, 0, Text_183FF0, Text_18401A + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1A99FE + msgbox Text_18402B, 6 + end + +EventScript_1A99FE:: @ 81A99FE + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_BUG_CATCHER_ELIJAH, 0, Text_1C176B, Text_18401A + msgbox Text_18402B, 6 + end + +Route6_EventScript_1A9A15:: @ 81A9A15 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_CAMPER_RICKY, 0, Text_183E04, Text_183E2A + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1A9A3C + msgbox Text_183E3C, 6 + end + +EventScript_1A9A3C:: @ 81A9A3C + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_CAMPER_RICKY, 0, Text_1C163C, Text_183E2A + msgbox Text_183E3C, 6 + end + +Route6_EventScript_1A9A53:: @ 81A9A53 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_CAMPER_JEFF, 0, Text_183F07, Text_183F24 + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1A9A7A + msgbox Text_183F51, 6 + end + +EventScript_1A9A7A:: @ 81A9A7A + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_CAMPER_JEFF, 0, Text_1C1723, Text_183F24 + msgbox Text_183F51, 6 + end + +Route6_EventScript_1A9A91:: @ 81A9A91 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_PICNICKER_NANCY, 0, Text_183E4E, Text_183E79 + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1A9AB8 + msgbox Text_183E8D, 6 + end + +EventScript_1A9AB8:: @ 81A9AB8 + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_PICNICKER_NANCY, 0, Text_1C166D, Text_183E79 + msgbox Text_183E8D, 6 + end + +Route6_EventScript_1A9ACF:: @ 81A9ACF + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_PICNICKER_ISABELLE, 0, Text_183F90, Text_183FAB + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1A9AF6 + msgbox Text_183FC4, 6 + end + +EventScript_1A9AF6:: @ 81A9AF6 + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_PICNICKER_ISABELLE, 0, Text_1C1746, Text_183FAB + msgbox Text_183FC4, 6 + end + +Route11_EventScript_1A9B0D:: @ 81A9B0D + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_YOUNGSTER_EDDIE, 0, Text_184FBD, Text_184FD8 + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1A9B34 + msgbox Text_184FEF, 6 + end + +EventScript_1A9B34:: @ 81A9B34 + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_YOUNGSTER_EDDIE, 0, Text_1C1DB5, Text_184FD8 + msgbox Text_184FEF, 6 + end + +Route11_EventScript_1A9B4B:: @ 81A9B4B + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_YOUNGSTER_DILLON, 0, Text_18506A, Text_18509B + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1A9B72 + msgbox Text_1850CF, 6 + end + +EventScript_1A9B72:: @ 81A9B72 + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_YOUNGSTER_DILLON, 0, Text_1C1E1F, Text_18509B + msgbox Text_1850CF, 6 + end + +Route11_EventScript_1A9B89:: @ 81A9B89 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_YOUNGSTER_YASU, 0, Text_18517B, Text_1851AC + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1A9BB0 + msgbox Text_1851D2, 6 + end + +EventScript_1A9BB0:: @ 81A9BB0 + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_YOUNGSTER_YASU, 0, Text_1C1EE2, Text_1851AC + msgbox Text_1851D2, 6 + end + +Route11_EventScript_1A9BC7:: @ 81A9BC7 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_YOUNGSTER_DAVE, 0, Text_185285, Text_1852C1 + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1A9BEE + msgbox Text_1852E3, 6 + end + +EventScript_1A9BEE:: @ 81A9BEE + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_YOUNGSTER_DAVE, 0, Text_1C1F40, Text_1852C1 + msgbox Text_1852E3, 6 + end + +Route11_EventScript_1A9C05:: @ 81A9C05 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_ENGINEER_BRAXTON, 0, Text_185011, Text_185037 + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1A9C2C + msgbox Text_18504A, 6 + end + +EventScript_1A9C2C:: @ 81A9C2C + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_ENGINEER_BRAXTON, 0, Text_1C1DE1, Text_185037 + msgbox Text_18504A, 6 + end + +Route11_EventScript_1A9C43:: @ 81A9C43 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_ENGINEER_BERNIE, 0, Text_185236, Text_185250 + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1A9C6A + msgbox Text_185266, 6 + end + +EventScript_1A9C6A:: @ 81A9C6A + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_ENGINEER_BERNIE, 0, Text_1C1F1D, Text_185250 + msgbox Text_185266, 6 + end + +Route11_EventScript_1A9C81:: @ 81A9C81 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_GAMER_HUGO, 0, Text_184F01, Text_184F15 + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1A9CA8 + msgbox Text_184F2E, 6 + end + +EventScript_1A9CA8:: @ 81A9CA8 + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_GAMER_HUGO, 0, Text_1C1D50, Text_184F15 + msgbox Text_184F2E, 6 + end + +Route11_EventScript_1A9CBF:: @ 81A9CBF + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_GAMER_JASPER, 0, Text_184F5D, Text_184F7E + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1A9CE6 + msgbox Text_184F8E, 6 + end + +EventScript_1A9CE6:: @ 81A9CE6 + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_GAMER_JASPER, 0, Text_1C1D79, Text_184F7E + msgbox Text_184F8E, 6 + end + +Route11_EventScript_1A9CFD:: @ 81A9CFD + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_GAMER_DIRK, 0, Text_1850E9, Text_185105 + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1A9D24 + msgbox Text_185114, 6 + end + +EventScript_1A9D24:: @ 81A9D24 + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_GAMER_DIRK, 0, Text_1C1E57, Text_185105 + msgbox Text_185114, 6 + end + +Route11_EventScript_1A9D3B:: @ 81A9D3B + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_GAMER_DARIAN, 0, Text_185135, Text_18514E + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1A9D62 + msgbox Text_185161, 6 + end + +EventScript_1A9D62:: @ 81A9D62 + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_GAMER_DARIAN, 0, Text_1C1E9F, Text_18514E + msgbox Text_185161, 6 + end + +Route9_EventScript_1A9D79:: @ 81A9D79 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_BUG_CATCHER_BRENT, 0, Text_184A2F, Text_184A6A + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1A9DA0 + msgbox Text_184A8C, 6 + end + +EventScript_1A9DA0:: @ 81A9DA0 + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_BUG_CATCHER_BRENT, 0, Text_1C1B83, Text_184A6A + msgbox Text_184A8C, 6 + end + +Route9_EventScript_1A9DB7:: @ 81A9DB7 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_BUG_CATCHER_CONNER, 0, Text_184B18, Text_184B32 + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1A9DDE + msgbox Text_184B3B, 6 + end + +EventScript_1A9DDE:: @ 81A9DDE + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_BUG_CATCHER_CONNER, 0, Text_1C1BDC, Text_184B32 + msgbox Text_184B3B, 6 + end + +Route9_EventScript_1A9DF5:: @ 81A9DF5 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_CAMPER_CHRIS, 0, Text_184844, Text_18487E + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1A9E1C + msgbox Text_184890, 6 + end + +EventScript_1A9E1C:: @ 81A9E1C + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_CAMPER_CHRIS, 0, Text_1C1A5D, Text_18487E + msgbox Text_184890, 6 + end + +Route9_EventScript_1A9E33:: @ 81A9E33 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_CAMPER_DREW, 0, Text_18489E, Text_1848CC + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1A9E5A + msgbox Text_1848DE, 6 + end + +EventScript_1A9E5A:: @ 81A9E5A + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_CAMPER_DREW, 0, Text_1C1A9B, Text_1848CC + msgbox Text_1848DE, 6 + end + +Route9_EventScript_1A9E71:: @ 81A9E71 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_PICNICKER_ALICIA, 0, Text_1847B7, Text_1847DF + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1A9E98 + msgbox Text_1847F0, 6 + end + +EventScript_1A9E98:: @ 81A9E98 + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_PICNICKER_ALICIA, 0, Text_1C1A2E, Text_1847DF + msgbox Text_1847F0, 6 + end + +Route9_EventScript_1A9EAF:: @ 81A9EAF + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_PICNICKER_CAITLIN, 0, Text_1848FF, Text_18491C + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1A9ED6 + msgbox Text_184931, 6 + end + +EventScript_1A9ED6:: @ 81A9ED6 + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_PICNICKER_CAITLIN, 0, Text_1C1AFB, Text_18491C + msgbox Text_184931, 6 + end + +Route9_EventScript_1A9EED:: @ 81A9EED + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_HIKER_ALAN, 0, Text_184ABE, Text_184AD5 + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1A9F14 + msgbox Text_184AF1, 6 + end + +EventScript_1A9F14:: @ 81A9F14 + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_HIKER_ALAN, 0, Text_1C1BBE, Text_184AD5 + msgbox Text_184AF1, 6 + end + +Route9_EventScript_1A9F2B:: @ 81A9F2B + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_HIKER_BRICE, 0, Text_1849DF, Text_184A04 + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1A9F52 + msgbox Text_184A11, 6 + end + +EventScript_1A9F52:: @ 81A9F52 + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_HIKER_BRICE, 0, Text_1C1B5E, Text_184A04 + msgbox Text_184A11, 6 + end + +Route9_EventScript_1A9F69:: @ 81A9F69 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_HIKER_JEREMY, 0, Text_18495E, Text_18497F + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1A9F90 + msgbox Text_1849B0, 6 + end + +EventScript_1A9F90:: @ 81A9F90 + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_HIKER_JEREMY, 0, Text_1C1B37, Text_18497F + msgbox Text_1849B0, 6 + end + +Route10_EventScript_1A9FA7:: @ 81A9FA7 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_PICNICKER_HEIDI, 0, Text_184CF1, Text_184D31 + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1A9FCE + msgbox Text_184D4D, 6 + end + +EventScript_1A9FCE:: @ 81A9FCE + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_PICNICKER_HEIDI, 0, Text_1C1C9A, Text_184D31 + msgbox Text_184D4D, 6 + end + +Route10_EventScript_1A9FE5:: @ 81A9FE5 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_PICNICKER_CAROL, 0, Text_184E04, Text_184E3B + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1AA00C + msgbox Text_184E5E, 6 + end + +EventScript_1AA00C:: @ 81AA00C + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_PICNICKER_CAROL, 0, Text_1C1D14, Text_184E3B + msgbox Text_184E5E, 6 + end + +Route10_EventScript_1AA023:: @ 81AA023 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_POKEMANIAC_MARK, 0, Text_184B8A, Text_184BE5 + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1AA04A + msgbox Text_184BFB, 6 + end + +EventScript_1AA04A:: @ 81AA04A + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_POKEMANIAC_MARK, 0, Text_1C1BFA, Text_184BE5 + msgbox Text_184BFB, 6 + end + +Route10_EventScript_1AA061:: @ 81AA061 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_POKEMANIAC_HERMAN, 0, Text_184C86, Text_184CA7 + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1AA088 + msgbox Text_184CBB, 6 + end + +EventScript_1AA088:: @ 81AA088 + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_POKEMANIAC_HERMAN, 0, Text_1C1C76, Text_184CA7 + msgbox Text_184CBB, 6 + end + +Route10_EventScript_1AA09F:: @ 81AA09F + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_HIKER_CLARK, 0, Text_184C1D, Text_184C2D + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1AA0C6 + msgbox Text_184C60, 6 + end + +EventScript_1AA0C6:: @ 81AA0C6 + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_HIKER_CLARK, 0, Text_1C1C4F, Text_184C2D + msgbox Text_184C60, 6 + end + +Route10_EventScript_1AA0DD:: @ 81AA0DD + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_HIKER_TRENT, 0, Text_184DAA, Text_184DCE + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1AA104 + msgbox Text_184DE4, 6 + end + +EventScript_1AA104:: @ 81AA104 + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_HIKER_TRENT, 0, Text_1C1CD3, Text_184DCE + msgbox Text_184DE4, 6 + end + +Route8_EventScript_1AA11B:: @ 81AA11B + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_LASS_PAIGE, 0, Text_1841ED, Text_184210 + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1AA142 + msgbox Text_18421B, 6 + end + +EventScript_1AA142:: @ 81AA142 + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_LASS_PAIGE, 0, Text_1C1834, Text_184210 + msgbox Text_18421B, 6 + end + +Route8_EventScript_1AA159:: @ 81AA159 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_LASS_ANDREA, 0, Text_184321, Text_184346 + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1AA180 + msgbox Text_184350, 6 + end + +EventScript_1AA180:: @ 81AA180 + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_LASS_ANDREA, 0, Text_1C18AA, Text_184346 + msgbox Text_184350, 6 + end + +Route8_EventScript_1AA197:: @ 81AA197 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_LASS_MEGAN, 0, Text_18437A, Text_1843A6 + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1AA1BE + msgbox Text_1843D2, 6 + end + +EventScript_1AA1BE:: @ 81AA1BE + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_LASS_MEGAN, 0, Text_1C18DC, Text_1843A6 + msgbox Text_1843D2, 6 + end + +Route8_EventScript_1AA1D5:: @ 81AA1D5 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_LASS_JULIA, 0, Text_1844AC, Text_1844D6 + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1AA1FC + msgbox Text_1844FD, 6 + end + +EventScript_1AA1FC:: @ 81AA1FC + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_LASS_JULIA, 0, Text_1C1955, Text_1844D6 + msgbox Text_1844FD, 6 + end + +Route8_EventScript_1AA213:: @ 81AA213 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_SUPER_NERD_AIDAN, 0, Text_1840C5, Text_184100 + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1AA23A + msgbox Text_18410E, 6 + end + +EventScript_1AA23A:: @ 81AA23A + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_SUPER_NERD_AIDAN, 0, Text_1C1793, Text_184100 + msgbox Text_18410E, 6 + end + +Route8_EventScript_1AA251:: @ 81AA251 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_SUPER_NERD_GLENN, 0, Text_18417C, Text_1841B6 + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1AA278 + msgbox Text_1841C8, 6 + end + +EventScript_1AA278:: @ 81AA278 + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_SUPER_NERD_GLENN, 0, Text_1C17F1, Text_1841B6 + msgbox Text_1841C8, 6 + end + +Route8_EventScript_1AA28F:: @ 81AA28F + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_SUPER_NERD_LESLIE, 0, Text_184257, Text_18427A + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1AA2B6 + msgbox Text_1842B3, 6 + end + +EventScript_1AA2B6:: @ 81AA2B6 + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_SUPER_NERD_LESLIE, 0, Text_1C1873, Text_18427A + msgbox Text_1842B3, 6 + end + +Route8_EventScript_1AA2CD:: @ 81AA2CD + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_GAMER_STAN, 0, Text_18412F, Text_18414D + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1AA2F4 + msgbox Text_184162, 6 + end + +EventScript_1AA2F4:: @ 81AA2F4 + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_GAMER_STAN, 0, Text_1C17CD, Text_18414D + msgbox Text_184162, 6 + end + +Route8_EventScript_1AA30B:: @ 81AA30B + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_GAMER_RICH, 0, Text_184432, Text_18444F + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1AA332 + msgbox Text_184466, 6 + end + +EventScript_1AA332:: @ 81AA332 + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_GAMER_RICH, 0, Text_1C191F, Text_18444F + msgbox Text_184466, 6 + end + +Route8_EventScript_1AA349:: @ 81AA349 + trainerbattle TRAINER_BATTLE_DOUBLE, TRAINER_TWINS_ELI_ANNE, 0, Text_1845A4, Text_1845D0, Text_184616 + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1AA374 + msgbox Text_1845F2, 6 + end + +EventScript_1AA374:: @ 81AA374 + trainerbattle TRAINER_BATTLE_REMATCH_DOUBLE, TRAINER_TWINS_ELI_ANNE, 0, Text_1C19E5, Text_1845D0, Text_184616 + msgbox Text_1845F2, 6 + end + +Route8_EventScript_1AA38F:: @ 81AA38F + trainerbattle TRAINER_BATTLE_DOUBLE, TRAINER_TWINS_ELI_ANNE, 0, Text_18464A, Text_184675, Text_1846AF + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1AA3BA + msgbox Text_18468B, 6 + end + +EventScript_1AA3BA:: @ 81AA3BA + trainerbattle TRAINER_BATTLE_REMATCH_DOUBLE, TRAINER_TWINS_ELI_ANNE, 0, Text_1C1A0D, Text_184675, Text_1846AF + msgbox Text_18468B, 6 + end + +Route8_EventScript_1AA3D5:: @ 81AA3D5 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_BIKER_RICARDO, 0, Text_1846E2, Text_1846FC + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1AA3FC + msgbox Text_184719, 6 + end + +EventScript_1AA3FC:: @ 81AA3FC + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_BIKER_RICARDO, 0, Text_1C199C, Text_1846FC + msgbox Text_184719, 6 + end + +Route8_EventScript_1AA413:: @ 81AA413 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_BIKER_JAREN, 0, Text_184742, Text_184767 + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1AA43A + msgbox Text_18477A, 6 + end + +EventScript_1AA43A:: @ 81AA43A + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_BIKER_JAREN, 0, Text_1C19BC, Text_184767 + msgbox Text_18477A, 6 + end + +Route12_EventScript_1AA451:: @ 81AA451 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_FISHERMAN_NED, 0, Text_185402, Text_18541B + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1AA478 + msgbox Text_185432, 6 + end + +EventScript_1AA478:: @ 81AA478 + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_FISHERMAN_NED, 0, Text_1C1F9D, Text_18541B + msgbox Text_185432, 6 + end + +Route12_EventScript_1AA48F:: @ 81AA48F + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_FISHERMAN_CHIP, 0, Text_18544E, Text_185475 + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1AA4B6 + msgbox Text_185488, 6 + end + +EventScript_1AA4B6:: @ 81AA4B6 + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_FISHERMAN_CHIP, 0, Text_1C1FD8, Text_185475 + msgbox Text_185488, 6 + end + +Route12_EventScript_1AA4CD:: @ 81AA4CD + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_FISHERMAN_HANK, 0, Text_1855E1, Text_185606 + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1AA4F4 + msgbox Text_185616, 6 + end + +EventScript_1AA4F4:: @ 81AA4F4 + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_FISHERMAN_HANK, 0, Text_1C209C, Text_185606 + msgbox Text_185616, 6 + end + +Route12_EventScript_1AA50B:: @ 81AA50B + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_FISHERMAN_ELLIOT, 0, Text_185682, Text_1856D0 + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1AA532 + msgbox Text_1856DF, 6 + end + +EventScript_1AA532:: @ 81AA532 + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_FISHERMAN_ELLIOT, 0, Text_1C20D4, Text_1856D0 + msgbox Text_1856DF, 6 + end + +Route12_EventScript_1AA549:: @ 81AA549 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_FISHERMAN_ANDREW, 0, Text_18570E, Text_185744 + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1AA570 + msgbox Text_18574D, 6 + end + +EventScript_1AA570:: @ 81AA570 + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_FISHERMAN_ANDREW, 0, Text_1C2134, Text_185744 + msgbox Text_18574D, 6 + end + +Route12_EventScript_1AA587:: @ 81AA587 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_ROCKER_LUCA, 0, Text_185547, Text_18559B + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1AA5AE + msgbox Text_1855A6, 6 + end + +EventScript_1AA5AE:: @ 81AA5AE + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_ROCKER_LUCA, 0, Text_1C203B, Text_18559B + msgbox Text_1855A6, 6 + end + +Route12_EventScript_1AA5C5:: @ 81AA5C5 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_CAMPER_JUSTIN, 0, Text_1854B9, Text_1854ED + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1AA5EC + msgbox Text_1854F2, 6 + end + +EventScript_1AA5EC:: @ 81AA5EC + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_CAMPER_JUSTIN, 0, Text_1C2008, Text_1854ED + msgbox Text_1854F2, 6 + end + +Route12_EventScript_1AA603:: @ 81AA603 + trainerbattle TRAINER_BATTLE_DOUBLE, TRAINER_YOUNG_COUPLE_GIA_JES, 0, Text_1857C5, Text_1857F1, Text_185842 + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1AA62E + msgbox Text_18581F, 6 + end + +EventScript_1AA62E:: @ 81AA62E + trainerbattle TRAINER_BATTLE_REMATCH_DOUBLE, TRAINER_YOUNG_COUPLE_GIA_JES, 0, Text_1C216B, Text_1857F1, Text_185842 + msgbox Text_18581F, 6 + end + +Route12_EventScript_1AA649:: @ 81AA649 + trainerbattle TRAINER_BATTLE_DOUBLE, TRAINER_YOUNG_COUPLE_GIA_JES, 0, Text_1858A6, Text_1858D0, Text_185908 + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1AA674 + msgbox Text_1858E2, 6 + end + +EventScript_1AA674:: @ 81AA674 + trainerbattle TRAINER_BATTLE_REMATCH_DOUBLE, TRAINER_YOUNG_COUPLE_GIA_JES, 0, Text_1C219B, Text_1858D0, Text_185908 + msgbox Text_1858E2, 6 + end + +Route13_EventScript_1AA68F:: @ 81AA68F + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_BIKER_JARED, 0, Text_185D05, Text_185D1D + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1AA6B6 + msgbox Text_185D33, 6 + end + +EventScript_1AA6B6:: @ 81AA6B6 + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_BIKER_JARED, 0, Text_1C236B, Text_185D1D + msgbox Text_185D33, 6 + end + +Route13_EventScript_1AA6CD:: @ 81AA6CD + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_BEAUTY_LOLA, 0, Text_185BFC, Text_185C1F + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1AA6F4 + msgbox Text_185C35, 6 + end + +EventScript_1AA6F4:: @ 81AA6F4 + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_BEAUTY_LOLA, 0, Text_1C2306, Text_185C1F + msgbox Text_185C35, 6 + end + +Route13_EventScript_1AA70B:: @ 81AA70B + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_BEAUTY_SHEILA, 0, Text_185C69, Text_185C95 + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1AA732 + msgbox Text_185CA8, 6 + end + +EventScript_1AA732:: @ 81AA732 + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_BEAUTY_SHEILA, 0, Text_1C2340, Text_185C95 + msgbox Text_185CA8, 6 + end + +Route13_EventScript_1AA749:: @ 81AA749 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_BIRD_KEEPER_SEBASTIAN, 0, Text_185955, Text_18597E + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1AA770 + msgbox Text_1859A2, 6 + end + +EventScript_1AA770:: @ 81AA770 + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_BIRD_KEEPER_SEBASTIAN, 0, Text_1C21EE, Text_18597E + msgbox Text_1859A2, 6 + end + +Route13_EventScript_1AA787:: @ 81AA787 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_BIRD_KEEPER_PERRY, 0, Text_185B8F, Text_185BCA + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1AA7AE + msgbox Text_185BDB, 6 + end + +EventScript_1AA7AE:: @ 81AA7AE + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_BIRD_KEEPER_PERRY, 0, Text_1C22CA, Text_185BCA + msgbox Text_185BDB, 6 + end + +Route13_EventScript_1AA7C5:: @ 81AA7C5 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_BIRD_KEEPER_ROBERT, 0, Text_185D3D, Text_185D7B + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1AA7EC + msgbox Text_185D89, 6 + end + +EventScript_1AA7EC:: @ 81AA7EC + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_BIRD_KEEPER_ROBERT, 0, Text_1C2383, Text_185D7B + msgbox Text_185D89, 6 + end + +Route13_EventScript_1AA803:: @ 81AA803 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_PICNICKER_ALMA, 0, Text_185B12, Text_185B48 + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1AA82A + msgbox Text_185B67, 6 + end + +EventScript_1AA82A:: @ 81AA82A + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_PICNICKER_ALMA, 0, Text_1C2299, Text_185B48 + msgbox Text_185B67, 6 + end + +Route13_EventScript_1AA841:: @ 81AA841 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_PICNICKER_SUSIE, 0, Text_1859CF, Text_1859EC + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1AA868 + msgbox Text_1859F9, 6 + end + +EventScript_1AA868:: @ 81AA868 + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_PICNICKER_SUSIE, 0, Text_1C220C, Text_1859EC + msgbox Text_1859F9, 6 + end + +Route13_EventScript_1AA87F:: @ 81AA87F + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_PICNICKER_VALERIE, 0, Text_185A37, Text_185A56 + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1AA8A6 + msgbox Text_185A62, 6 + end + +EventScript_1AA8A6:: @ 81AA8A6 + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_PICNICKER_VALERIE, 0, Text_1C223C, Text_185A56 + msgbox Text_185A62, 6 + end + +Route13_EventScript_1AA8BD:: @ 81AA8BD + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_PICNICKER_GWEN, 0, Text_185A91, Text_185AC1 + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1AA8E4 + msgbox Text_185ADE, 6 + end + +EventScript_1AA8E4:: @ 81AA8E4 + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_PICNICKER_GWEN, 0, Text_1C225B, Text_185AC1 + msgbox Text_185ADE, 6 + end + +Route14_EventScript_1AA8FB:: @ 81AA8FB + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_BIKER_MALIK, 0, Text_186344, Text_186362 + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1AA922 + msgbox Text_18636E, 6 + end + +EventScript_1AA922:: @ 81AA922 + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_BIKER_MALIK, 0, Text_1C25D6, Text_186362 + msgbox Text_18636E, 6 + end + +Route14_EventScript_1AA939:: @ 81AA939 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_BIKER_LUKAS, 0, Text_1861F7, Text_186223 + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1AA960 + msgbox Text_186239, 6 + end + +EventScript_1AA960:: @ 81AA960 + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_BIKER_LUKAS, 0, Text_1C2531, Text_186223 + msgbox Text_186239, 6 + end + +Route14_EventScript_1AA977:: @ 81AA977 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_BIKER_ISAAC, 0, Text_186263, Text_186291 + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1AA99E + msgbox Text_18629D, 6 + end + +EventScript_1AA99E:: @ 81AA99E + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_BIKER_ISAAC, 0, Text_1C2572, Text_186291 + msgbox Text_18629D, 6 + end + +Route14_EventScript_1AA9B5:: @ 81AA9B5 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_BIKER_GERALD, 0, Text_1862BD, Text_1862EF + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1AA9DC + msgbox Text_1862F8, 6 + end + +EventScript_1AA9DC:: @ 81AA9DC + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_BIKER_GERALD, 0, Text_1C259E, Text_1862EF + msgbox Text_1862F8, 6 + end + +Route14_EventScript_1AA9F3:: @ 81AA9F3 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_BIRD_KEEPER_DONALD, 0, Text_1860D9, Text_18610A + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1AAA1A + msgbox Text_18611D, 6 + end + +EventScript_1AAA1A:: @ 81AAA1A + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_BIRD_KEEPER_DONALD, 0, Text_1C24CB, Text_18610A + msgbox Text_18611D, 6 + end + +Route14_EventScript_1AAA31:: @ 81AAA31 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_BIRD_KEEPER_BENNY, 0, Text_18618E, Text_1861B3 + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1AAA58 + msgbox Text_1861BE, 6 + end + +EventScript_1AAA58:: @ 81AAA58 + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_BIRD_KEEPER_BENNY, 0, Text_1C2505, Text_1861B3 + msgbox Text_1861BE, 6 + end + +Route14_EventScript_1AAA6F:: @ 81AAA6F + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_BIRD_KEEPER_CARTER, 0, Text_185E4D, Text_185E81 + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1AAA96 + msgbox Text_185E9C, 6 + end + +EventScript_1AAA96:: @ 81AAA96 + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_BIRD_KEEPER_CARTER, 0, Text_1C23C1, Text_185E81 + msgbox Text_185E9C, 6 + end + +Route14_EventScript_1AAAAD:: @ 81AAAAD + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_BIRD_KEEPER_MITCH, 0, Text_185EDF, Text_185F0B + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1AAAD4 + msgbox Text_185F1A, 6 + end + +EventScript_1AAAD4:: @ 81AAAD4 + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_BIRD_KEEPER_MITCH, 0, Text_1C23EF, Text_185F0B + msgbox Text_185F1A, 6 + end + +Route14_EventScript_1AAAEB:: @ 81AAAEB + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_BIRD_KEEPER_BECK, 0, Text_185F46, Text_185FAE + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1AAB12 + msgbox Text_185FBB, 6 + end + +EventScript_1AAB12:: @ 81AAB12 + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_BIRD_KEEPER_BECK, 0, Text_1C2425, Text_185FAE + msgbox Text_185FBB, 6 + end + +Route14_EventScript_1AAB29:: @ 81AAB29 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_BIRD_KEEPER_MARLON, 0, Text_186021, Text_18607C + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1AAB50 + msgbox Text_186091, 6 + end + +EventScript_1AAB50:: @ 81AAB50 + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_BIRD_KEEPER_MARLON, 0, Text_1C2461, Text_18607C + msgbox Text_186091, 6 + end + +Route14_EventScript_1AAB67:: @ 81AAB67 + trainerbattle TRAINER_BATTLE_DOUBLE, TRAINER_TWINS_KIRI_JAN, 0, Text_1863B7, Text_1863EA, Text_18642E + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1AAB92 + msgbox Text_18640D, 6 + end + +EventScript_1AAB92:: @ 81AAB92 + trainerbattle TRAINER_BATTLE_REMATCH_DOUBLE, TRAINER_TWINS_KIRI_JAN, 0, Text_1C25FB, Text_1863EA, Text_18642E + msgbox Text_18640D, 6 + end + +Route14_EventScript_1AABAD:: @ 81AABAD + trainerbattle TRAINER_BATTLE_DOUBLE, TRAINER_TWINS_KIRI_JAN, 0, Text_18645B, Text_186487, Text_1864D3 + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1AABD8 + msgbox Text_18649C, 6 + end + +EventScript_1AABD8:: @ 81AABD8 + trainerbattle TRAINER_BATTLE_REMATCH_DOUBLE, TRAINER_TWINS_KIRI_JAN, 0, Text_1C261B, Text_186487, Text_1864D3 + msgbox Text_18649C, 6 + end + +Route15_EventScript_1AABF3:: @ 81AABF3 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_BIKER_ERNEST, 0, Text_1868B6, Text_1868E8 + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1AAC1A + msgbox Text_1868F1, 6 + end + +EventScript_1AAC1A:: @ 81AAC1A + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_BIKER_ERNEST, 0, Text_1C27E7, Text_1868E8 + msgbox Text_1868F1, 6 + end + +Route15_EventScript_1AAC31:: @ 81AAC31 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_BIKER_ALEX, 0, Text_186936, Text_186968 + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1AAC58 + msgbox Text_18697C, 6 + end + +EventScript_1AAC58:: @ 81AAC58 + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_BIKER_ALEX, 0, Text_1C2814, Text_186968 + msgbox Text_18697C, 6 + end + +Route15_EventScript_1AAC6F:: @ 81AAC6F + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_BEAUTY_GRACE, 0, Text_18678B, Text_1867C1 + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1AAC96 + msgbox Text_1867DA, 6 + end + +EventScript_1AAC96:: @ 81AAC96 + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_BEAUTY_GRACE, 0, Text_1C2753, Text_1867C1 + msgbox Text_1867DA, 6 + end + +Route15_EventScript_1AACAD:: @ 81AACAD + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_BEAUTY_OLIVIA, 0, Text_18680C, Text_186841 + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1AACD4 + msgbox Text_18686F, 6 + end + +EventScript_1AACD4:: @ 81AACD4 + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_BEAUTY_OLIVIA, 0, Text_1C279D, Text_186841 + msgbox Text_18686F, 6 + end + +Route15_EventScript_1AACEB:: @ 81AACEB + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_BIRD_KEEPER_EDWIN, 0, Text_18664F, Text_18667A + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1AAD12 + msgbox Text_18668D, 6 + end + +EventScript_1AAD12:: @ 81AAD12 + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_BIRD_KEEPER_EDWIN, 0, Text_1C26D3, Text_18667A + msgbox Text_18668D, 6 + end + +Route15_EventScript_1AAD29:: @ 81AAD29 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_BIRD_KEEPER_CHESTER, 0, Text_1866D1, Text_186707 + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1AAD50 + msgbox Text_18671A, 6 + end + +EventScript_1AAD50:: @ 81AAD50 + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_BIRD_KEEPER_CHESTER, 0, Text_1C2717, Text_186707 + msgbox Text_18671A, 6 + end + +Route15_EventScript_1AAD67:: @ 81AAD67 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_PICNICKER_YAZMIN, 0, Text_186A22, Text_186A40 + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1AAD8E + msgbox Text_186A55, 6 + end + +EventScript_1AAD8E:: @ 81AAD8E + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_PICNICKER_YAZMIN, 0, Text_1C287D, Text_186A40 + msgbox Text_186A55, 6 + end + +Route15_EventScript_1AADA5:: @ 81AADA5 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_PICNICKER_KINDRA, 0, Text_18650B, Text_186549 + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1AADCC + msgbox Text_18655A, 6 + end + +EventScript_1AADCC:: @ 81AADCC + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_PICNICKER_KINDRA, 0, Text_1C2650, Text_186549 + msgbox Text_18655A, 6 + end + +Route15_EventScript_1AADE3:: @ 81AADE3 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_PICNICKER_BECKY, 0, Text_1865D3, Text_186612 + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1AAE0A + msgbox Text_18661D, 6 + end + +EventScript_1AAE0A:: @ 81AAE0A + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_PICNICKER_BECKY, 0, Text_1C268D, Text_186612 + msgbox Text_18661D, 6 + end + +Route15_EventScript_1AAE21:: @ 81AAE21 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_PICNICKER_CELIA, 0, Text_1869BA, Text_1869E6 + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1AAE48 + msgbox Text_1869F4, 6 + end + +EventScript_1AAE48:: @ 81AAE48 + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_PICNICKER_CELIA, 0, Text_1C2846, Text_1869E6 + msgbox Text_1869F4, 6 + end + +Route15_EventScript_1AAE5F:: @ 81AAE5F + trainerbattle TRAINER_BATTLE_DOUBLE, TRAINER_CRUSH_KIN_RON_MYA, 0, Text_186A95, Text_186ACB, Text_186B46 + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1AAE8A + msgbox Text_186B0A, 6 + end + +EventScript_1AAE8A:: @ 81AAE8A + trainerbattle TRAINER_BATTLE_REMATCH_DOUBLE, TRAINER_CRUSH_KIN_RON_MYA, 0, Text_1C28A1, Text_186ACB, Text_186B46 + msgbox Text_186B0A, 6 + end + +Route15_EventScript_1AAEA5:: @ 81AAEA5 + trainerbattle TRAINER_BATTLE_DOUBLE, TRAINER_CRUSH_KIN_RON_MYA, 0, Text_186B89, Text_186BB1, Text_186BFE + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1AAED0 + msgbox Text_186BD2, 6 + end + +EventScript_1AAED0:: @ 81AAED0 + trainerbattle TRAINER_BATTLE_REMATCH_DOUBLE, TRAINER_CRUSH_KIN_RON_MYA, 0, Text_1C28EC, Text_186BB1, Text_186BFE + msgbox Text_186BD2, 6 + end + +Route16_EventScript_1AAEEB:: @ 81AAEEB + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_BIKER_LAO, 0, Text_186C4D, Text_186C5F + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1AAF12 + msgbox Text_186C75, 6 + end + +EventScript_1AAF12:: @ 81AAF12 + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_BIKER_LAO, 0, Text_1C2913, Text_186C5F + msgbox Text_186C75, 6 + end + +Route16_EventScript_1AAF29:: @ 81AAF29 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_BIKER_HIDEO, 0, Text_186D39, Text_186D52 + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1AAF50 + msgbox Text_186D5A, 6 + end + +EventScript_1AAF50:: @ 81AAF50 + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_BIKER_HIDEO, 0, Text_1C297B, Text_186D52 + msgbox Text_186D5A, 6 + end + +Route16_EventScript_1AAF67:: @ 81AAF67 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_BIKER_RUBEN, 0, Text_186E86, Text_186EB4 + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1AAF8E + msgbox Text_186EC7, 6 + end + +EventScript_1AAF8E:: @ 81AAF8E + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_BIKER_RUBEN, 0, Text_1C29EB, Text_186EB4 + msgbox Text_186EC7, 6 + end + +Route16_EventScript_1AAFA5:: @ 81AAFA5 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_CUE_BALL_KOJI, 0, Text_186CA2, Text_186CBB + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1AAFCC + msgbox Text_186CC5, 6 + end + +EventScript_1AAFCC:: @ 81AAFCC + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_CUE_BALL_KOJI, 0, Text_1C2925, Text_186CBB + msgbox Text_186CC5, 6 + end + +Route16_EventScript_1AAFE3:: @ 81AAFE3 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_CUE_BALL_LUKE, 0, Text_186CE5, Text_186D06 + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1AB00A + msgbox Text_186D16, 6 + end + +EventScript_1AB00A:: @ 81AB00A + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_CUE_BALL_LUKE, 0, Text_1C2944, Text_186D06 + msgbox Text_186D16, 6 + end + +Route16_EventScript_1AB021:: @ 81AB021 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_CUE_BALL_CAMRON, 0, Text_186DD9, Text_186E0D + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1AB048 + msgbox Text_186E1C, 6 + end + +EventScript_1AB048:: @ 81AB048 + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_CUE_BALL_CAMRON, 0, Text_1C29B0, Text_186E0D + msgbox Text_186E1C, 6 + end + +Route16_EventScript_1AB05F:: @ 81AB05F + trainerbattle TRAINER_BATTLE_DOUBLE, TRAINER_YOUNG_COUPLE_LEA_JED, 0, Text_186FBD, Text_186FFA, Text_187057 + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1AB08A + msgbox Text_187027, 6 + end + +EventScript_1AB08A:: @ 81AB08A + trainerbattle TRAINER_BATTLE_REMATCH_DOUBLE, TRAINER_YOUNG_COUPLE_LEA_JED, 0, Text_1C2A19, Text_186FFA, Text_187057 + msgbox Text_187027, 6 + end + +Route16_EventScript_1AB0A5:: @ 81AB0A5 + trainerbattle TRAINER_BATTLE_DOUBLE, TRAINER_YOUNG_COUPLE_LEA_JED, 0, Text_187097, Text_1870CC, Text_187120 + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1AB0D0 + msgbox Text_1870F9, 6 + end + +EventScript_1AB0D0:: @ 81AB0D0 + trainerbattle TRAINER_BATTLE_REMATCH_DOUBLE, TRAINER_YOUNG_COUPLE_LEA_JED, 0, Text_1C2A53, Text_1870CC, Text_187120 + msgbox Text_1870F9, 6 + end + +Route17_EventScript_1AB0EB:: @ 81AB0EB + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_BIKER_BILLY, 0, Text_1872BD, Text_1872E3 + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1AB112 + msgbox Text_1872EB, 6 + end + +EventScript_1AB112:: @ 81AB112 + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_BIKER_BILLY, 0, Text_1C2B06, Text_1872E3 + msgbox Text_1872EB, 6 + end + +Route17_EventScript_1AB129:: @ 81AB129 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_BIKER_NIKOLAS, 0, Text_18730A, Text_187325 + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1AB150 + msgbox Text_187333, 6 + end + +EventScript_1AB150:: @ 81AB150 + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_BIKER_NIKOLAS, 0, Text_1C2B2C, Text_187325 + msgbox Text_187333, 6 + end + +Route17_EventScript_1AB167:: @ 81AB167 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_BIKER_JAXON, 0, Text_187456, Text_187472 + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1AB18E + msgbox Text_187479, 6 + end + +EventScript_1AB18E:: @ 81AB18E + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_BIKER_JAXON, 0, Text_1C2BE6, Text_187472 + msgbox Text_187479, 6 + end + +Route17_EventScript_1AB1A5:: @ 81AB1A5 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_BIKER_WILLIAM, 0, Text_18749B, Text_1874B6 + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1AB1CC + msgbox Text_1874C9, 6 + end + +EventScript_1AB1CC:: @ 81AB1CC + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_BIKER_WILLIAM, 0, Text_1C2C10, Text_1874B6 + msgbox Text_1874C9, 6 + end + +Route17_EventScript_1AB1E3:: @ 81AB1E3 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_CUE_BALL_RAUL, 0, Text_18717E, Text_1871AE + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1AB20A + msgbox Text_1871BA, 6 + end + +EventScript_1AB20A:: @ 81AB20A + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_CUE_BALL_RAUL, 0, Text_1C2A88, Text_1871AE + msgbox Text_1871BA, 6 + end + +Route17_EventScript_1AB221:: @ 81AB221 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_CUE_BALL_ISAIAH, 0, Text_187228, Text_187254 + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1AB248 + msgbox Text_18725A, 6 + end + +EventScript_1AB248:: @ 81AB248 + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_CUE_BALL_ISAIAH, 0, Text_1C2AC4, Text_187254 + msgbox Text_18725A, 6 + end + +Route17_EventScript_1AB25F:: @ 81AB25F + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_CUE_BALL_ZEEK, 0, Text_187362, Text_187395 + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1AB286 + msgbox Text_18739F, 6 + end + +EventScript_1AB286:: @ 81AB286 + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_CUE_BALL_ZEEK, 0, Text_1C2B5E, Text_187395 + msgbox Text_18739F, 6 + end + +Route17_EventScript_1AB29D:: @ 81AB29D + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_CUE_BALL_JAMAL, 0, Text_1873D1, Text_1873EB + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1AB2C4 + msgbox Text_1873FF, 6 + end + +EventScript_1AB2C4:: @ 81AB2C4 + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_CUE_BALL_JAMAL, 0, Text_1C2B9C, Text_1873EB + msgbox Text_1873FF, 6 + end + +Route17_EventScript_1AB2DB:: @ 81AB2DB + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_CUE_BALL_COREY, 0, Text_18741D, Text_187429 + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1AB302 + msgbox Text_187432, 6 + end + +EventScript_1AB302:: @ 81AB302 + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_CUE_BALL_COREY, 0, Text_1C2BDA, Text_187429 + msgbox Text_187432, 6 + end + +Route17_EventScript_1AB319:: @ 81AB319 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_BIKER_VIRGIL, 0, Text_18727D, Text_187295 + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1AB340 + msgbox Text_1872A5, 6 + end + +EventScript_1AB340:: @ 81AB340 + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_BIKER_VIRGIL, 0, Text_1C2AF0, Text_187295 + msgbox Text_1872A5, 6 + end + +Route18_EventScript_1AB357:: @ 81AB357 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_BIRD_KEEPER_WILTON, 0, Text_187640, Text_187672 + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1AB37E + msgbox Text_187677, 6 + end + +EventScript_1AB37E:: @ 81AB37E + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_BIRD_KEEPER_WILTON, 0, Text_1C2C2B, Text_187672 + msgbox Text_187677, 6 + end + +Route18_EventScript_1AB395:: @ 81AB395 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_BIRD_KEEPER_RAMIRO, 0, Text_18768C, Text_1876B3 + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1AB3BC + msgbox Text_1876C5, 6 + end + +EventScript_1AB3BC:: @ 81AB3BC + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_BIRD_KEEPER_RAMIRO, 0, Text_1C2C7B, Text_1876B3 + msgbox Text_1876C5, 6 + end + +Route18_EventScript_1AB3D3:: @ 81AB3D3 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_BIRD_KEEPER_JACOB, 0, Text_187704, Text_187726 + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1AB3FA + msgbox Text_18772C, 6 + end + +EventScript_1AB3FA:: @ 81AB3FA + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_BIRD_KEEPER_JACOB, 0, Text_1C2CA8, Text_187726 + msgbox Text_18772C, 6 + end + +Route19_EventScript_1AB411:: @ 81AB411 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_SWIMMER_MALE_RICHARD, 0, Text_1877A3, Text_1877DF + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1AB438 + msgbox Text_1877EE, 6 + end + +EventScript_1AB438:: @ 81AB438 + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_SWIMMER_MALE_RICHARD, 0, Text_1C2CEE, Text_1877DF + msgbox Text_1877EE, 6 + end + +Route19_EventScript_1AB44F:: @ 81AB44F + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_SWIMMER_MALE_REECE, 0, Text_187811, Text_18783E + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1AB476 + msgbox Text_187852, 6 + end + +EventScript_1AB476:: @ 81AB476 + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_SWIMMER_MALE_REECE, 0, Text_1C2D19, Text_18783E + msgbox Text_187852, 6 + end + +Route19_EventScript_1AB48D:: @ 81AB48D + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_SWIMMER_MALE_MATTHEW, 0, Text_187884, Text_1878A5 + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1AB4B4 + msgbox Text_1878B1, 6 + end + +EventScript_1AB4B4:: @ 81AB4B4 + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_SWIMMER_MALE_MATTHEW, 0, Text_1C2D4B, Text_1878A5 + msgbox Text_1878B1, 6 + end + +Route19_EventScript_1AB4CB:: @ 81AB4CB + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_SWIMMER_MALE_DOUGLAS, 0, Text_1878DD, Text_1878F8 + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1AB4F2 + msgbox Text_1878FE, 6 + end + +EventScript_1AB4F2:: @ 81AB4F2 + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_SWIMMER_MALE_DOUGLAS, 0, Text_1C2D7D, Text_1878F8 + msgbox Text_1878FE, 6 + end + +Route19_EventScript_1AB509:: @ 81AB509 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_SWIMMER_MALE_DAVID, 0, Text_187925, Text_187955 + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1AB530 + msgbox Text_18795B, 6 + end + +EventScript_1AB530:: @ 81AB530 + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_SWIMMER_MALE_DAVID, 0, Text_1C2DA7, Text_187955 + msgbox Text_18795B, 6 + end + +Route19_EventScript_1AB547:: @ 81AB547 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_SWIMMER_MALE_TONY, 0, Text_187985, Text_1879C3 + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1AB56E + msgbox Text_1879D3, 6 + end + +EventScript_1AB56E:: @ 81AB56E + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_SWIMMER_MALE_TONY, 0, Text_1C2DE9, Text_1879C3 + msgbox Text_1879D3, 6 + end + +Route19_EventScript_1AB585:: @ 81AB585 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_SWIMMER_MALE_AXLE, 0, Text_187AFA, Text_187B25 + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1AB5AC + msgbox Text_187B35, 6 + end + +EventScript_1AB5AC:: @ 81AB5AC + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_SWIMMER_MALE_AXLE, 0, Text_1C2EC0, Text_187B25 + msgbox Text_187B35, 6 + end + +Route19_EventScript_1AB5C3:: @ 81AB5C3 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_SWIMMER_FEMALE_ANYA, 0, Text_187A11, Text_187A44 + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1AB5EA + msgbox Text_187A50, 6 + end + +EventScript_1AB5EA:: @ 81AB5EA + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_SWIMMER_FEMALE_ANYA, 0, Text_1C2E4A, Text_187A44 + msgbox Text_187A50, 6 + end + +Route19_EventScript_1AB601:: @ 81AB601 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_SWIMMER_FEMALE_ALICE, 0, Text_187A9E, Text_187AC1 + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1AB628 + msgbox Text_187ACA, 6 + end + +EventScript_1AB628:: @ 81AB628 + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_SWIMMER_FEMALE_ALICE, 0, Text_1C2E9D, Text_187AC1 + msgbox Text_187ACA, 6 + end + +Route19_EventScript_1AB63F:: @ 81AB63F + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_SWIMMER_FEMALE_CONNIE, 0, Text_187B5D, Text_187B85 + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1AB666 + msgbox Text_187B94, 6 + end + +EventScript_1AB666:: @ 81AB666 + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_SWIMMER_FEMALE_CONNIE, 0, Text_1C2EFC, Text_187B85 + msgbox Text_187B94, 6 + end + +Route19_EventScript_1AB67D:: @ 81AB67D + trainerbattle TRAINER_BATTLE_DOUBLE, TRAINER_SIS_AND_BRO_LIA_LUC, 0, Text_187C32, Text_187C6F, Text_187CF2 + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1AB6A8 + msgbox Text_187C9E, 6 + end + +EventScript_1AB6A8:: @ 81AB6A8 + trainerbattle TRAINER_BATTLE_REMATCH_DOUBLE, TRAINER_SIS_AND_BRO_LIA_LUC, 0, Text_1C2F41, Text_187C6F, Text_187CF2 + msgbox Text_187C9E, 6 + end + +Route19_EventScript_1AB6C3:: @ 81AB6C3 + trainerbattle TRAINER_BATTLE_DOUBLE, TRAINER_SIS_AND_BRO_LIA_LUC, 0, Text_187D45, Text_187D7E, Text_187DE8 + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1AB6EE + msgbox Text_187DAD, 6 + end + +EventScript_1AB6EE:: @ 81AB6EE + trainerbattle TRAINER_BATTLE_REMATCH_DOUBLE, TRAINER_SIS_AND_BRO_LIA_LUC, 0, Text_1C2FAE, Text_187D7E, Text_187DE8 + msgbox Text_187DAD, 6 + end + +Route20_EventScript_1AB709:: @ 81AB709 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_SWIMMER_MALE_BARRY, 0, Text_187E40, Text_187E7B + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1AB730 + msgbox Text_187E83, 6 + end + +EventScript_1AB730:: @ 81AB730 + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_SWIMMER_MALE_BARRY, 0, Text_1C2FF3, Text_187E7B + msgbox Text_187E83, 6 + end + +Route20_EventScript_1AB747:: @ 81AB747 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_SWIMMER_MALE_DEAN, 0, Text_187FDB, Text_187FF7 + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1AB76E + msgbox Text_187FFE, 6 + end + +EventScript_1AB76E:: @ 81AB76E + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_SWIMMER_MALE_DEAN, 0, Text_1C30B0, Text_187FF7 + msgbox Text_187FFE, 6 + end + +Route20_EventScript_1AB785:: @ 81AB785 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_SWIMMER_MALE_DARRIN, 0, Text_18802E, Text_18805C + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1AB7AC + msgbox Text_18806D, 6 + end + +EventScript_1AB7AC:: @ 81AB7AC + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_SWIMMER_MALE_DARRIN, 0, Text_1C30ED, Text_18805C + msgbox Text_18806D, 6 + end + +Route20_EventScript_1AB7C3:: @ 81AB7C3 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_SWIMMER_FEMALE_TIFFANY, 0, Text_187F24, Text_187F5A + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1AB7EA + msgbox Text_187F61, 6 + end + +EventScript_1AB7EA:: @ 81AB7EA + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_SWIMMER_FEMALE_TIFFANY, 0, Text_1C305F, Text_187F5A + msgbox Text_187F61, 6 + end + +Route20_EventScript_1AB801:: @ 81AB801 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_SWIMMER_FEMALE_NORA, 0, Text_1880F8, Text_188119 + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1AB828 + msgbox Text_188139, 6 + end + +EventScript_1AB828:: @ 81AB828 + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_SWIMMER_FEMALE_NORA, 0, Text_1C3149, Text_188119 + msgbox Text_188139, 6 + end + +Route20_EventScript_1AB83F:: @ 81AB83F + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_SWIMMER_FEMALE_MELISSA, 0, Text_188218, Text_18825C + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1AB866 + msgbox Text_18827B, 6 + end + +EventScript_1AB866:: @ 81AB866 + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_SWIMMER_FEMALE_MELISSA, 0, Text_1C31C4, Text_18825C + msgbox Text_18827B, 6 + end + +Route20_EventScript_1AB87D:: @ 81AB87D + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_SWIMMER_FEMALE_SHIRLEY, 0, Text_187EBB, Text_187EED + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1AB8A4 + msgbox Text_187EF6, 6 + end + +EventScript_1AB8A4:: @ 81AB8A4 + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_SWIMMER_FEMALE_SHIRLEY, 0, Text_1C302E, Text_187EED + msgbox Text_187EF6, 6 + end + +Route20_EventScript_1AB8BB:: @ 81AB8BB + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_BIRD_KEEPER_ROGER, 0, Text_18808E, Text_1880AB + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1AB8E2 + msgbox Text_1880C8, 6 + end + +EventScript_1AB8E2:: @ 81AB8E2 + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_BIRD_KEEPER_ROGER, 0, Text_1C312C, Text_1880AB + msgbox Text_1880C8, 6 + end + +Route20_EventScript_1AB8F9:: @ 81AB8F9 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_PICNICKER_MISSY, 0, Text_188165, Text_1881A3 + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1AB920 + msgbox Text_1881B8, 6 + end + +EventScript_1AB920:: @ 81AB920 + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_PICNICKER_MISSY, 0, Text_1C3185, Text_1881A3 + msgbox Text_1881B8, 6 + end + +Route20_EventScript_1AB937:: @ 81AB937 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_PICNICKER_IRENE, 0, Text_187F78, Text_187F92 + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1AB95E + msgbox Text_187FA3, 6 + end + +EventScript_1AB95E:: @ 81AB95E + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_PICNICKER_IRENE, 0, Text_1C3095, Text_187F92 + msgbox Text_187FA3, 6 + end + +Route21_North_EventScript_1AB975:: @ 81AB975 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_FISHERMAN_RONALD, 0, Text_18835A, Text_188383 + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1AB99C + msgbox Text_188389, 6 + end + +EventScript_1AB99C:: @ 81AB99C + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_FISHERMAN_RONALD, 0, Text_1C3208, Text_188383 + msgbox Text_188389, 6 + end + +Route21_South_EventScript_1AB9B3:: @ 81AB9B3 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_FISHERMAN_CLAUDE, 0, Text_1885D8, Text_1885F8 + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1AB9DA + msgbox Text_188632, 6 + end + +EventScript_1AB9DA:: @ 81AB9DA + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_FISHERMAN_CLAUDE, 0, Text_1C331D, Text_1885F8 + msgbox Text_188632, 6 + end + +Route21_North_EventScript_1AB9F1:: @ 81AB9F1 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_FISHERMAN_WADE, 0, Text_1883C6, Text_1883E9 + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1ABA18 + msgbox Text_18841D, 6 + end + +EventScript_1ABA18:: @ 81ABA18 + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_FISHERMAN_WADE, 0, Text_1C3231, Text_1883E9 + msgbox Text_18841D, 6 + end + +Route21_South_EventScript_1ABA2F:: @ 81ABA2F + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_FISHERMAN_NOLAN, 0, Text_18868C, Text_1886AE + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1ABA56 + msgbox Text_1886C5, 6 + end + +EventScript_1ABA56:: @ 81ABA56 + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_FISHERMAN_NOLAN, 0, Text_1C3356, Text_1886AE + msgbox Text_1886C5, 6 + end + +Route21_North_EventScript_1ABA6D:: @ 81ABA6D + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_SWIMMER_MALE_SPENCER, 0, Text_18843C, Text_18845F + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1ABA94 + msgbox Text_188465, 6 + end + +EventScript_1ABA94:: @ 81ABA94 + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_SWIMMER_MALE_SPENCER, 0, Text_1C3264, Text_18845F + msgbox Text_188465, 6 + end + +Route21_South_EventScript_1ABAAB:: @ 81ABAAB + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_SWIMMER_MALE_JACK, 0, Text_1884D4, Text_1884F0 + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1ABAD2 + msgbox Text_1884FF, 6 + end + +EventScript_1ABAD2:: @ 81ABAD2 + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_SWIMMER_MALE_JACK, 0, Text_1C3298, Text_1884F0 + msgbox Text_1884FF, 6 + end + +Route21_South_EventScript_1ABAE9:: @ 81ABAE9 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_SWIMMER_MALE_JEROME, 0, Text_18851F, Text_188543 + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1ABB10 + msgbox Text_188555, 6 + end + +EventScript_1ABB10:: @ 81ABB10 + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_SWIMMER_MALE_JEROME, 0, Text_1C32D3, Text_188543 + msgbox Text_188555, 6 + end + +Route21_South_EventScript_1ABB27:: @ 81ABB27 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_SWIMMER_MALE_ROLAND, 0, Text_188592, Text_1885B2 + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1ABB4E + msgbox Text_1885BF, 6 + end + +EventScript_1ABB4E:: @ 81ABB4E + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_SWIMMER_MALE_ROLAND, 0, Text_1C32FD, Text_1885B2 + msgbox Text_1885BF, 6 + end + +Route21_North_EventScript_1ABB65:: @ 81ABB65 + trainerbattle TRAINER_BATTLE_DOUBLE, TRAINER_SIS_AND_BRO_LIL_IAN, 0, Text_1886E2, Text_188712, Text_18875E + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1ABB90 + msgbox Text_188734, 6 + end + +EventScript_1ABB90:: @ 81ABB90 + trainerbattle TRAINER_BATTLE_REMATCH_DOUBLE, TRAINER_SIS_AND_BRO_LIL_IAN, 0, Text_1C3378, Text_188712, Text_18875E + msgbox Text_188734, 6 + end + +Route21_North_EventScript_1ABBAB:: @ 81ABBAB + trainerbattle TRAINER_BATTLE_DOUBLE, TRAINER_SIS_AND_BRO_LIL_IAN, 0, Text_1887B4, Text_1887F1, Text_188850 + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1ABBD6 + msgbox Text_188812, 6 + end + +EventScript_1ABBD6:: @ 81ABBD6 + trainerbattle TRAINER_BATTLE_REMATCH_DOUBLE, TRAINER_SIS_AND_BRO_LIL_IAN, 0, Text_1C33AE, Text_1887F1, Text_188850 + msgbox Text_188812, 6 + end + +OneIsland_KindleRoad_EventScript_1ABBF1:: @ 81ABBF1 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_SWIMMER_FEMALE_MARIA, 0, Text_18961F, Text_18964D + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1ABC18 + msgbox Text_189657, 6 + end + +EventScript_1ABC18:: @ 81ABC18 + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_SWIMMER_FEMALE_MARIA, 0, Text_1C37B5, Text_18964D + msgbox Text_189657, 6 + end + +OneIsland_KindleRoad_EventScript_1ABC2F:: @ 81ABC2F + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_SWIMMER_FEMALE_ABIGAIL, 0, Text_18968C, Text_1896AC + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1ABC56 + msgbox Text_1896C1, 6 + end + +EventScript_1ABC56:: @ 81ABC56 + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_SWIMMER_FEMALE_ABIGAIL, 0, Text_1C37E7, Text_1896AC + msgbox Text_1896C1, 6 + end + +OneIsland_KindleRoad_EventScript_1ABC6D:: @ 81ABC6D + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_SWIMMER_MALE_FINN, 0, Text_1896F9, Text_189728 + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1ABC94 + msgbox Text_189740, 6 + end + +EventScript_1ABC94:: @ 81ABC94 + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_SWIMMER_MALE_FINN, 0, Text_1C3807, Text_189728 + msgbox Text_189740, 6 + end + +OneIsland_KindleRoad_EventScript_1ABCAB:: @ 81ABCAB + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_SWIMMER_MALE_GARRETT, 0, Text_189767, Text_1897A4 + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1ABCD2 + msgbox Text_1897C5, 6 + end + +EventScript_1ABCD2:: @ 81ABCD2 + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_SWIMMER_MALE_GARRETT, 0, Text_1C3835, Text_1897A4 + msgbox Text_1897C5, 6 + end + +OneIsland_KindleRoad_EventScript_1ABCE9:: @ 81ABCE9 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_FISHERMAN_TOMMY, 0, Text_1897FF, Text_189833 + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1ABD10 + msgbox Text_18984B, 6 + end + +EventScript_1ABD10:: @ 81ABD10 + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_FISHERMAN_TOMMY, 0, Text_1C386A, Text_189833 + msgbox Text_18984B, 6 + end + +OneIsland_KindleRoad_EventScript_1ABD27:: @ 81ABD27 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_CRUSH_GIRL_SHARON, 0, Text_189883, Text_1898AB + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1ABD4E + msgbox Text_1898C4, 6 + end + +EventScript_1ABD4E:: @ 81ABD4E + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_CRUSH_GIRL_SHARON, 0, Text_1C389F, Text_1898AB + msgbox Text_1898C4, 6 + end + +OneIsland_KindleRoad_EventScript_1ABD65:: @ 81ABD65 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_CRUSH_GIRL_TANYA, 0, Text_1898F0, Text_18991B + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1ABD8C + msgbox Text_18992C, 6 + end + +EventScript_1ABD8C:: @ 81ABD8C + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_CRUSH_GIRL_TANYA, 0, Text_1C38CA, Text_18991B + msgbox Text_18992C, 6 + end + +OneIsland_KindleRoad_EventScript_1ABDA3:: @ 81ABDA3 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_BLACK_BELT_SHEA, 0, Text_189950, Text_18998C + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1ABDCA + msgbox Text_189998, 6 + end + +EventScript_1ABDCA:: @ 81ABDCA + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_BLACK_BELT_SHEA, 0, Text_1C38FA, Text_18998C + msgbox Text_189998, 6 + end + +OneIsland_KindleRoad_EventScript_1ABDE1:: @ 81ABDE1 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_BLACK_BELT_HUGH, 0, Text_1899CE, Text_189A0A + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1ABE08 + msgbox Text_189A13, 6 + end + +EventScript_1ABE08:: @ 81ABE08 + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_BLACK_BELT_HUGH, 0, Text_1C3943, Text_189A0A + msgbox Text_189A13, 6 + end + +OneIsland_KindleRoad_EventScript_1ABE1F:: @ 81ABE1F + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_CAMPER_BRYCE, 0, Text_189A53, Text_189A92 + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1ABE46 + msgbox Text_189A9F, 6 + end + +EventScript_1ABE46:: @ 81ABE46 + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_CAMPER_BRYCE, 0, Text_1C3987, Text_189A92 + msgbox Text_189A9F, 6 + end + +OneIsland_KindleRoad_EventScript_1ABE5D:: @ 81ABE5D + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_PICNICKER_CLAIRE, 0, Text_189ACB, Text_189B0B + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1ABE84 + msgbox Text_189B24, 6 + end + +EventScript_1ABE84:: @ 81ABE84 + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_PICNICKER_CLAIRE, 0, Text_1C39C6, Text_189B0B + msgbox Text_189B24, 6 + end + +OneIsland_KindleRoad_EventScript_1ABE9B:: @ 81ABE9B + trainerbattle TRAINER_BATTLE_DOUBLE, TRAINER_CRUSH_KIN_MIK_KIA, 0, Text_189B4D, Text_189B84, Text_189BDE + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1ABEC6 + msgbox Text_189BA3, 6 + end + +EventScript_1ABEC6:: @ 81ABEC6 + trainerbattle TRAINER_BATTLE_REMATCH_DOUBLE, TRAINER_CRUSH_KIN_MIK_KIA, 0, Text_1C3A05, Text_189B84, Text_189BDE + msgbox Text_189BA3, 6 + end + +OneIsland_KindleRoad_EventScript_1ABEE1:: @ 81ABEE1 + trainerbattle TRAINER_BATTLE_DOUBLE, TRAINER_CRUSH_KIN_MIK_KIA, 0, Text_189C33, Text_189C62, Text_189CAB + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1ABF0C + msgbox Text_189C7E, 6 + end + +EventScript_1ABF0C:: @ 81ABF0C + trainerbattle TRAINER_BATTLE_REMATCH_DOUBLE, TRAINER_CRUSH_KIN_MIK_KIA, 0, Text_1C3A55, Text_189C62, Text_189CAB + msgbox Text_189C7E, 6 + end + +OneIsland_TreasureBeach_EventScript_1ABF27:: @ 81ABF27 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_SWIMMER_FEMALE_AMARA, 0, Text_189D5A, Text_189D8B + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1ABF4E + msgbox Text_189DA3, 6 + end + +EventScript_1ABF4E:: @ 81ABF4E + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_SWIMMER_FEMALE_AMARA, 0, Text_1C3773, Text_189D8B + msgbox Text_189DA3, 6 + end + +ThreeIsland_BondBridge_EventScript_1ABF65:: @ 81ABF65 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_AROMA_LADY_NIKKI, 0, Text_189E42, Text_189E72 + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1ABF8C + msgbox Text_189E9E, 6 + end + +EventScript_1ABF8C:: @ 81ABF8C + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_AROMA_LADY_NIKKI, 0, Text_1C3AA7, Text_189E72 + msgbox Text_189E9E, 6 + end + +ThreeIsland_BondBridge_EventScript_1ABFA3:: @ 81ABFA3 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_AROMA_LADY_VIOLET, 0, Text_189ED4, Text_189EFA + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1ABFCA + msgbox Text_189F21, 6 + end + +EventScript_1ABFCA:: @ 81ABFCA + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_AROMA_LADY_VIOLET, 0, Text_1C3ABF, Text_189EFA + msgbox Text_189F21, 6 + end + +ThreeIsland_BondBridge_EventScript_1ABFE1:: @ 81ABFE1 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_TUBER_AMIRA, 0, Text_189F63, Text_189F9A + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1AC008 + msgbox Text_189FA8, 6 + end + +EventScript_1AC008:: @ 81AC008 + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_TUBER_AMIRA, 0, Text_1C3AF2, Text_189F9A + msgbox Text_189FA8, 6 + end + +ThreeIsland_BondBridge_EventScript_1AC01F:: @ 81AC01F + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_TUBER_ALEXIS, 0, Text_189FDB, Text_189FEE + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1AC046 + msgbox Text_18A000, 6 + end + +EventScript_1AC046:: @ 81AC046 + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_TUBER_ALEXIS, 0, Text_1C3B1D, Text_189FEE + msgbox Text_18A000, 6 + end + +ThreeIsland_BondBridge_EventScript_1AC05D:: @ 81AC05D + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_SWIMMER_FEMALE_TISHA, 0, Text_18A01F, Text_18A053 + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1AC084 + msgbox Text_18A082, 6 + end + +EventScript_1AC084:: @ 81AC084 + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_SWIMMER_FEMALE_TISHA, 0, Text_1C3B30, Text_18A053 + msgbox Text_18A082, 6 + end + +ThreeIsland_BondBridge_EventScript_1AC09B:: @ 81AC09B + trainerbattle TRAINER_BATTLE_DOUBLE, TRAINER_TWINS_JOY_MEG, 0, Text_18A0C4, Text_18A0F7, Text_18A138 + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1AC0C6 + msgbox Text_18A106, 6 + end + +EventScript_1AC0C6:: @ 81AC0C6 + trainerbattle TRAINER_BATTLE_REMATCH_DOUBLE, TRAINER_TWINS_JOY_MEG, 0, Text_1C3B6E, Text_18A0F7, Text_18A138 + msgbox Text_18A106, 6 + end + +ThreeIsland_BondBridge_EventScript_1AC0E1:: @ 81AC0E1 + trainerbattle TRAINER_BATTLE_DOUBLE, TRAINER_TWINS_JOY_MEG, 0, Text_18A179, Text_18A1A3, Text_18A1CD + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1AC10C + msgbox Text_18A1B2, 6 + end + +EventScript_1AC10C:: @ 81AC10C + trainerbattle TRAINER_BATTLE_REMATCH_DOUBLE, TRAINER_TWINS_JOY_MEG, 0, Text_1C3B99, Text_18A1A3, Text_18A1CD + msgbox Text_18A1B2, 6 + end + +FiveIsland_ResortGorgeous_EventScript_1AC127:: @ 81AC127 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_PAINTER_DAISY, 0, Text_18A3E2, Text_18A40E + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1AC14E + msgbox Text_18A430, 6 + end + +EventScript_1AC14E:: @ 81AC14E + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_PAINTER_DAISY, 0, Text_1C3BF6, Text_18A40E + msgbox Text_18A430, 6 + end + +FiveIsland_ResortGorgeous_EventScript_1AC165:: @ 81AC165 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_PAINTER_CELINA, 0, Text_18A461, Text_18A49E + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1AC18C + msgbox Text_18A4C6, 6 + end + +EventScript_1AC18C:: @ 81AC18C + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_PAINTER_CELINA, 0, Text_1C3C28, Text_18A49E + msgbox Text_18A4C6, 6 + end + +FiveIsland_ResortGorgeous_EventScript_1AC1A3:: @ 81AC1A3 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_PAINTER_RAYNA, 0, Text_18A50E, Text_18A535 + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1AC1CA + msgbox Text_18A555, 6 + end + +EventScript_1AC1CA:: @ 81AC1CA + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_PAINTER_RAYNA, 0, Text_1C3C70, Text_18A535 + msgbox Text_18A555, 6 + end + +FiveIsland_ResortGorgeous_EventScript_1AC1E1:: @ 81AC1E1 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_LADY_JACKI, 0, Text_18A5B9, Text_18A5EE + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1AC208 + msgbox Text_18A601, 6 + end + +EventScript_1AC208:: @ 81AC208 + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_LADY_JACKI, 0, Text_1C3CB0, Text_18A5EE + msgbox Text_18A601, 6 + end + +FiveIsland_ResortGorgeous_EventScript_1AC21F:: @ 81AC21F + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_LADY_GILLIAN, 0, Text_18A645, Text_18A67F + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1AC246 + msgbox Text_18A699, 6 + end + +EventScript_1AC246:: @ 81AC246 + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_LADY_GILLIAN, 0, Text_1C3CF1, Text_18A67F + msgbox Text_18A699, 6 + end + +FiveIsland_ResortGorgeous_EventScript_1AC25D:: @ 81AC25D + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_YOUNGSTER_DESTIN, 0, Text_18A6DA, Text_18A6FE + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1AC284 + msgbox Text_18A715, 6 + end + +EventScript_1AC284:: @ 81AC284 + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_YOUNGSTER_DESTIN, 0, Text_1C3D47, Text_18A6FE + msgbox Text_18A715, 6 + end + +FiveIsland_ResortGorgeous_EventScript_1AC29B:: @ 81AC29B + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_SWIMMER_MALE_TOBY, 0, Text_18A74A, Text_18A786 + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1AC2C2 + msgbox Text_18A7AC, 6 + end + +EventScript_1AC2C2:: @ 81AC2C2 + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_SWIMMER_MALE_TOBY, 0, Text_1C3D73, Text_18A786 + msgbox Text_18A7AC, 6 + end + +FiveIsland_WaterLabyrinth_EventScript_1AC2D9:: @ 81AC2D9 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_PKMN_BREEDER_ALIZE, 0, Text_18AAD5, Text_18AB0B + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1AC300 + msgbox Text_18AB37, 6 + end + +EventScript_1AC300:: @ 81AC300 + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_PKMN_BREEDER_ALIZE, 0, Text_1C3BB7, Text_18AB0B + msgbox Text_18AB37, 6 + end + +FiveIsland_MemorialPillar_EventScript_1AC317:: @ 81AC317 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_BIRD_KEEPER_MILO, 0, Text_18AE50, Text_18AEA8 + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1AC33E + msgbox Text_18AEB6, 6 + end + +EventScript_1AC33E:: @ 81AC33E + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_BIRD_KEEPER_MILO, 0, Text_1C3DA2, Text_18AEA8 + msgbox Text_18AEB6, 6 + end + +FiveIsland_MemorialPillar_EventScript_1AC355:: @ 81AC355 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_BIRD_KEEPER_CHAZ, 0, Text_18AEDC, Text_18AF39 + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1AC37C + msgbox Text_18AF45, 6 + end + +EventScript_1AC37C:: @ 81AC37C + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_BIRD_KEEPER_CHAZ, 0, Text_1C3E0F, Text_18AF39 + msgbox Text_18AF45, 6 + end + +FiveIsland_MemorialPillar_EventScript_1AC393:: @ 81AC393 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_BIRD_KEEPER_HAROLD, 0, Text_18AF72, Text_18AFCC + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1AC3BA + msgbox Text_18AFF2, 6 + end + +EventScript_1AC3BA:: @ 81AC3BA + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_BIRD_KEEPER_HAROLD, 0, Text_1C3E6A, Text_18AFCC + msgbox Text_18AFF2, 6 + end + +SixIsland_OutcastIsland_EventScript_1AC3D1:: @ 81AC3D1 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_FISHERMAN_TYLOR, 0, Text_18B400, Text_18B43B + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1AC3F8 + msgbox Text_18B451, 6 + end + +EventScript_1AC3F8:: @ 81AC3F8 + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_FISHERMAN_TYLOR, 0, Text_1C3ED0, Text_18B43B + msgbox Text_18B451, 6 + end + +SixIsland_OutcastIsland_EventScript_1AC40F:: @ 81AC40F + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_SWIMMER_MALE_MYMO, 0, Text_18B48F, Text_18B4C5 + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1AC436 + msgbox Text_18B4D1, 6 + end + +EventScript_1AC436:: @ 81AC436 + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_SWIMMER_MALE_MYMO, 0, Text_1C3F11, Text_18B4C5 + msgbox Text_18B4D1, 6 + end + +SixIsland_OutcastIsland_EventScript_1AC44D:: @ 81AC44D + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_SWIMMER_FEMALE_NICOLE, 0, Text_18B4FA, Text_18B539 + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1AC474 + msgbox Text_18B573, 6 + end + +EventScript_1AC474:: @ 81AC474 + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_SWIMMER_FEMALE_NICOLE, 0, Text_1C3F51, Text_18B539 + msgbox Text_18B573, 6 + end + +SixIsland_OutcastIsland_EventScript_1AC48B:: @ 81AC48B + trainerbattle TRAINER_BATTLE_DOUBLE, TRAINER_SIS_AND_BRO_AVA_GEB, 0, Text_18B5C8, Text_18B5F4, Text_18B660 + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1AC4B6 + msgbox Text_18B62E, 6 + end + +EventScript_1AC4B6:: @ 81AC4B6 + trainerbattle TRAINER_BATTLE_REMATCH_DOUBLE, TRAINER_SIS_AND_BRO_AVA_GEB, 0, Text_1C3F7B, Text_18B5F4, Text_18B660 + msgbox Text_18B62E, 6 + end + +SixIsland_OutcastIsland_EventScript_1AC4D1:: @ 81AC4D1 + trainerbattle TRAINER_BATTLE_DOUBLE, TRAINER_SIS_AND_BRO_AVA_GEB, 0, Text_18B6C1, Text_18B6EF, Text_18B762 + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1AC4FC + msgbox Text_18B720, 6 + end + +EventScript_1AC4FC:: @ 81AC4FC + trainerbattle TRAINER_BATTLE_REMATCH_DOUBLE, TRAINER_SIS_AND_BRO_AVA_GEB, 0, Text_1C3FB3, Text_18B6EF, Text_18B762 + msgbox Text_18B720, 6 + end + +SixIsland_GreenPath_EventScript_1AC517:: @ 81AC517 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_PSYCHIC_JACLYN, 0, Text_18B7B0, Text_18B7F0 + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1AC53E + msgbox Text_18B7FD, 6 + end + +EventScript_1AC53E:: @ 81AC53E + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_PSYCHIC_JACLYN, 0, Text_1C3FE9, Text_18B7F0 + msgbox Text_18B7FD, 6 + end + +SixIsland_WaterPath_EventScript_1AC555:: @ 81AC555 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_AROMA_LADY_ROSE, 0, Text_18B896, Text_18B8C8 + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1AC57C + msgbox Text_18B8F7, 6 + end + +EventScript_1AC57C:: @ 81AC57C + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_AROMA_LADY_ROSE, 0, Text_1C4028, Text_18B8C8 + msgbox Text_18B8F7, 6 + end + +SixIsland_WaterPath_EventScript_1AC593:: @ 81AC593 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_JUGGLER_EDWARD, 0, Text_18B959, Text_18B988 + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1AC5BA + msgbox Text_18B9A5, 6 + end + +EventScript_1AC5BA:: @ 81AC5BA + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_JUGGLER_EDWARD, 0, Text_1C4057, Text_18B988 + msgbox Text_18B9A5, 6 + end + +SixIsland_WaterPath_EventScript_1AC5D1:: @ 81AC5D1 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_SWIMMER_MALE_SAMIR, 0, Text_18B9EC, Text_18BA47 + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1AC5F8 + msgbox Text_18BA57, 6 + end + +EventScript_1AC5F8:: @ 81AC5F8 + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_SWIMMER_MALE_SAMIR, 0, Text_1C407F, Text_18BA47 + msgbox Text_18BA57, 6 + end + +SixIsland_WaterPath_EventScript_1AC60F:: @ 81AC60F + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_SWIMMER_FEMALE_DENISE, 0, Text_18BA86, Text_18BAC0 + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1AC636 + msgbox Text_18BAE0, 6 + end + +EventScript_1AC636:: @ 81AC636 + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_SWIMMER_FEMALE_DENISE, 0, Text_1C40D9, Text_18BAC0 + msgbox Text_18BAE0, 6 + end + +SixIsland_WaterPath_EventScript_1AC64D:: @ 81AC64D + trainerbattle TRAINER_BATTLE_DOUBLE, TRAINER_TWINS_MIU_MIA, 0, Text_18BBBA, Text_18BBE2, Text_18BC24 + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1AC678 + msgbox Text_18BBF6, 6 + end + +EventScript_1AC678:: @ 81AC678 + trainerbattle TRAINER_BATTLE_REMATCH_DOUBLE, TRAINER_TWINS_MIU_MIA, 0, Text_1C4138, Text_18BBE2, Text_18BC24 + msgbox Text_18BBF6, 6 + end + +SixIsland_WaterPath_EventScript_1AC693:: @ 81AC693 + trainerbattle TRAINER_BATTLE_DOUBLE, TRAINER_TWINS_MIU_MIA, 0, Text_18BC5A, Text_18BC84, Text_18BCCF + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1AC6BE + msgbox Text_18BCAE, 6 + end + +EventScript_1AC6BE:: @ 81AC6BE + trainerbattle TRAINER_BATTLE_REMATCH_DOUBLE, TRAINER_TWINS_MIU_MIA, 0, Text_1C4166, Text_18BC84, Text_18BCCF + msgbox Text_18BCAE, 6 + end + +SixIsland_WaterPath_EventScript_1AC6D9:: @ 81AC6D9 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_HIKER_EARL, 0, Text_18BB2D, Text_18BB62 + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1AC700 + msgbox Text_18BB8B, 6 + end + +EventScript_1AC700:: @ 81AC700 + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_HIKER_EARL, 0, Text_1C40FA, Text_18BB62 + msgbox Text_18BB8B, 6 + end + +SixIsland_RuinValley_EventScript_1AC717:: @ 81AC717 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_RUIN_MANIAC_STANLY, 0, Text_18BE5D, Text_18BE9B + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1AC73E + msgbox Text_18BEA0, 6 + end + +EventScript_1AC73E:: @ 81AC73E + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_RUIN_MANIAC_STANLY, 0, Text_1C4196, Text_18BE9B + msgbox Text_18BEA0, 6 + end + +SixIsland_RuinValley_EventScript_1AC755:: @ 81AC755 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_RUIN_MANIAC_FOSTER, 0, Text_18BF05, Text_18BF33 + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1AC77C + msgbox Text_18BF6C, 6 + end + +EventScript_1AC77C:: @ 81AC77C + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_RUIN_MANIAC_FOSTER, 0, Text_1C41D4, Text_18BF33 + msgbox Text_18BF6C, 6 + end + +SixIsland_RuinValley_EventScript_1AC793:: @ 81AC793 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_RUIN_MANIAC_LARRY, 0, Text_18BFC5, Text_18C03B + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1AC7BA + msgbox Text_18C04C, 6 + end + +EventScript_1AC7BA:: @ 81AC7BA + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_RUIN_MANIAC_LARRY, 0, Text_1C4210, Text_18C03B + msgbox Text_18C04C, 6 + end + +SixIsland_RuinValley_EventScript_1AC7D1:: @ 81AC7D1 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_HIKER_DARYL, 0, Text_18C09C, Text_18C0BB + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1AC7F8 + msgbox Text_18C0EA, 6 + end + +EventScript_1AC7F8:: @ 81AC7F8 + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_HIKER_DARYL, 0, Text_1C4280, Text_18C0BB + msgbox Text_18C0EA, 6 + end + +SixIsland_RuinValley_EventScript_1AC80F:: @ 81AC80F + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_POKEMANIAC_HECTOR, 0, Text_18C10A, Text_18C140 + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1AC836 + msgbox Text_18C17A, 6 + end + +EventScript_1AC836:: @ 81AC836 + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_POKEMANIAC_HECTOR, 0, Text_1C42A0, Text_18C140 + msgbox Text_18C17A, 6 + end + +SevenIsland_TrainerTower_EventScript_1AC84D:: @ 81AC84D + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_PSYCHIC_DARIO, 0, Text_18C1ED, Text_18C205 + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1AC874 + msgbox Text_18C20E, 6 + end + +EventScript_1AC874:: @ 81AC874 + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_PSYCHIC_DARIO, 0, Text_1C42D6, Text_18C205 + msgbox Text_18C20E, 6 + end + +SevenIsland_TrainerTower_EventScript_1AC88B:: @ 81AC88B + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_PSYCHIC_RODETTE, 0, Text_18C283, Text_18C2BC + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1AC8B2 + msgbox Text_18C2D5, 6 + end + +EventScript_1AC8B2:: @ 81AC8B2 + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_PSYCHIC_RODETTE, 0, Text_1C42EE, Text_18C2BC + msgbox Text_18C2D5, 6 + end + +SevenIsland_SevaultCanyon_Entrance_EventScript_1AC8C9:: @ 81AC8C9 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_AROMA_LADY_MIAH, 0, Text_18C3BC, Text_18C3E7 + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1AC8F0 + msgbox Text_18C3FF, 6 + end + +EventScript_1AC8F0:: @ 81AC8F0 + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_AROMA_LADY_MIAH, 0, Text_1C4327, Text_18C3E7 + msgbox Text_18C3FF, 6 + end + +SevenIsland_SevaultCanyon_Entrance_EventScript_1AC907:: @ 81AC907 + trainerbattle TRAINER_BATTLE_DOUBLE, TRAINER_YOUNG_COUPLE_EVE_JON, 0, Text_18C632, Text_18C662, Text_18C6AB + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1AC932 + msgbox Text_18C683, 6 + end + +EventScript_1AC932:: @ 81AC932 + trainerbattle TRAINER_BATTLE_REMATCH_DOUBLE, TRAINER_YOUNG_COUPLE_EVE_JON, 0, Text_1C4416, Text_18C662, Text_18C6AB + msgbox Text_18C683, 6 + end + +SevenIsland_SevaultCanyon_Entrance_EventScript_1AC94D:: @ 81AC94D + trainerbattle TRAINER_BATTLE_DOUBLE, TRAINER_YOUNG_COUPLE_EVE_JON, 0, Text_18C700, Text_18C73B, Text_18C7BD + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1AC978 + msgbox Text_18C773, 6 + end + +EventScript_1AC978:: @ 81AC978 + trainerbattle TRAINER_BATTLE_REMATCH_DOUBLE, TRAINER_YOUNG_COUPLE_EVE_JON, 0, Text_1C444C, Text_18C73B, Text_18C7BD + msgbox Text_18C773, 6 + end + +SevenIsland_SevaultCanyon_Entrance_EventScript_1AC993:: @ 81AC993 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_JUGGLER_MASON, 0, Text_18C44B, Text_18C473 + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1AC9BA + msgbox Text_18C4BA, 6 + end + +EventScript_1AC9BA:: @ 81AC9BA + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_JUGGLER_MASON, 0, Text_1C4374, Text_18C473 + msgbox Text_18C4BA, 6 + end + +SevenIsland_SevaultCanyon_Entrance_EventScript_1AC9D1:: @ 81AC9D1 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_PKMN_RANGER_NICOLAS, 0, Text_18C500, Text_18C543 + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1AC9F8 + msgbox Text_18C54B, 6 + end + +EventScript_1AC9F8:: @ 81AC9F8 + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_PKMN_RANGER_NICOLAS, 0, Text_1C43AD, Text_18C543 + msgbox Text_18C54B, 6 + end + +SevenIsland_SevaultCanyon_Entrance_EventScript_1ACA0F:: @ 81ACA0F + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_PKMN_RANGER_MADELINE, 0, Text_18C5AA, Text_18C5CD + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1ACA36 + msgbox Text_18C5F5, 6 + end + +EventScript_1ACA36:: @ 81ACA36 + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_PKMN_RANGER_MADELINE, 0, Text_1C43EC, Text_18C5CD + msgbox Text_18C5F5, 6 + end + +SevenIsland_SevaultCanyon_EventScript_1ACA4D:: @ 81ACA4D + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_CRUSH_GIRL_CYNDY, 0, Text_18C887, Text_18C8A6 + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1ACA74 + msgbox Text_18C8C2, 6 + end + +EventScript_1ACA74:: @ 81ACA74 + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_CRUSH_GIRL_CYNDY, 0, Text_1C4491, Text_18C8A6 + msgbox Text_18C8C2, 6 + end + +SevenIsland_SevaultCanyon_EventScript_1ACA8B:: @ 81ACA8B + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_TAMER_EVAN, 0, Text_18C8FD, Text_18C980 + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1ACAB2 + msgbox Text_18C999, 6 + end + +EventScript_1ACAB2:: @ 81ACAB2 + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_TAMER_EVAN, 0, Text_1C44CB, Text_18C980 + msgbox Text_18C999, 6 + end + +SevenIsland_SevaultCanyon_EventScript_1ACAC9:: @ 81ACAC9 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_PKMN_RANGER_JACKSON, 0, Text_18CA2F, Text_18CA6F + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1ACAF0 + msgbox Text_18CA9C, 6 + end + +EventScript_1ACAF0:: @ 81ACAF0 + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_PKMN_RANGER_JACKSON, 0, Text_1C454E, Text_18CA6F + msgbox Text_18CA9C, 6 + end + +SevenIsland_SevaultCanyon_EventScript_1ACB07:: @ 81ACB07 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_PKMN_RANGER_KATELYN, 0, Text_18CB16, Text_18CB3E + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1ACB2E + msgbox Text_18CB6C, 6 + end + +EventScript_1ACB2E:: @ 81ACB2E + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_PKMN_RANGER_KATELYN, 0, Text_1C458E, Text_18CB3E + msgbox Text_18CB6C, 6 + end + +SevenIsland_SevaultCanyon_EventScript_1ACB45:: @ 81ACB45 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_COOLTRAINER_LEROY, 0, Text_18CBB4, Text_18CBE0 + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1ACB6C + msgbox Text_18CC09, 6 + end + +EventScript_1ACB6C:: @ 81ACB6C + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_COOLTRAINER_LEROY, 0, Text_1C45C2, Text_18CBE0 + msgbox Text_18CC09, 6 + end + +SevenIsland_SevaultCanyon_EventScript_1ACB83:: @ 81ACB83 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_COOLTRAINER_MICHELLE, 0, Text_18CC4F, Text_18CCAE + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1ACBAA + msgbox Text_18CCEA, 6 + end + +EventScript_1ACBAA:: @ 81ACBAA + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_COOLTRAINER_MICHELLE, 0, Text_1C45FB, Text_18CCAE + msgbox Text_18CCEA, 6 + end + +SevenIsland_SevaultCanyon_EventScript_1ACBC1:: @ 81ACBC1 + trainerbattle TRAINER_BATTLE_DOUBLE, TRAINER_COOL_COUPLE_LEX_NYA, 0, Text_18CD49, Text_18CD75, Text_18CDE2 + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1ACBEC + msgbox Text_18CD9C, 6 + end + +EventScript_1ACBEC:: @ 81ACBEC + trainerbattle TRAINER_BATTLE_REMATCH_DOUBLE, TRAINER_COOL_COUPLE_LEX_NYA, 0, Text_1C4662, Text_18CD75, Text_18CDE2 + msgbox Text_18CD9C, 6 + end + +SevenIsland_SevaultCanyon_EventScript_1ACC07:: @ 81ACC07 + trainerbattle TRAINER_BATTLE_DOUBLE, TRAINER_COOL_COUPLE_LEX_NYA, 0, Text_18CE20, Text_18CE5A, Text_18CEF4 + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1ACC32 + msgbox Text_18CE78, 6 + end + +EventScript_1ACC32:: @ 81ACC32 + trainerbattle TRAINER_BATTLE_REMATCH_DOUBLE, TRAINER_COOL_COUPLE_LEX_NYA, 0, Text_1C4699, Text_18CE5A, Text_18CEF4 + msgbox Text_18CE78, 6 + end + +SevenIsland_TanobyRuins_EventScript_1ACC4D:: @ 81ACC4D + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_RUIN_MANIAC_BRANDON, 0, Text_18CFFB, Text_18D02A + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1ACC74 + msgbox Text_18D061, 6 + end + +EventScript_1ACC74:: @ 81ACC74 + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_RUIN_MANIAC_BRANDON, 0, Text_1C46D3, Text_18D02A + msgbox Text_18D061, 6 + end + +SevenIsland_TanobyRuins_EventScript_1ACC8B:: @ 81ACC8B + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_RUIN_MANIAC_BENJAMIN, 0, Text_18D0D9, Text_18D108 + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1ACCB2 + msgbox Text_18D125, 6 + end + +EventScript_1ACCB2:: @ 81ACCB2 + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_RUIN_MANIAC_BENJAMIN, 0, Text_1C470A, Text_18D108 + msgbox Text_18D125, 6 + end + +SevenIsland_TanobyRuins_EventScript_1ACCC9:: @ 81ACCC9 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_PAINTER_EDNA, 0, Text_18D18F, Text_18D1B5 + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1ACCF0 + msgbox Text_18D1E3, 6 + end + +EventScript_1ACCF0:: @ 81ACCF0 + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_PAINTER_EDNA, 0, Text_1C4739, Text_18D1B5 + msgbox Text_18D1E3, 6 + end + +SevenIsland_TanobyRuins_EventScript_1ACD07:: @ 81ACD07 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_GENTLEMAN_CLIFFORD, 0, Text_18D22F, Text_18D26D + specialvar VAR_RESULT, ShouldTryRematchBattle + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1ACD2E + msgbox Text_18D284, 6 + end + +EventScript_1ACD2E:: @ 81ACD2E + trainerbattle TRAINER_BATTLE_REMATCH, TRAINER_GENTLEMAN_CLIFFORD, 0, Text_1C476A, Text_18D26D + msgbox Text_18D284, 6 + end + +@ Test message! +@ Welcome to the world of Pokémon! +Text_1ACD45:: @ 81ACD45 + .string "テストよã†ã€€ãƒ¡ãƒƒã‚»ãƒ¼ã‚¸ã§ã™ï¼\n" + .string "ãƒã‚±ãƒ¢ãƒ³ã®ã€€ã›ã‹ã„ã¸ã€€ã‚ˆã†ã“ãï¼$" + +ViridianCity_House2_EventScript_1ACD65:: @ 81ACD65 + lock + faceplayer + famechecker FAMECHECKER_OAK, 3 + famechecker FAMECHECKER_DAISY, 3 + textcolor 3 + msgbox gUnknown_81B1AB9 + release + end + +EventScript_1ACD8D:: @ 81ACD8D + lock + faceplayer + famechecker FAMECHECKER_DAISY, 1 + famechecker FAMECHECKER_OAK, 4 + textcolor 3 + msgbox gUnknown_81B1AB9 + release + end + +EventScript_1ACDB5:: @ 81ACDB5 + lock + faceplayer + famechecker FAMECHECKER_DAISY, 4 + textcolor 3 + msgbox gUnknown_81B1AB9 + release + end + +FourIsland_PokemonCenter_1F_EventScript_1ACDD0:: @ 81ACDD0 + lockall + famechecker FAMECHECKER_DAISY, 5 + textcolor 3 + msgbox gUnknown_81B1B3D + releaseall + end + +Route4_EventScript_1ACDEA:: @ 81ACDEA + lock + faceplayer + famechecker FAMECHECKER_BROCK, 3 + msgbox Text_183D26 + release + end + +MtMoon_1F_EventScript_1ACE03:: @ 81ACE03 + lock + faceplayer + famechecker FAMECHECKER_BROCK, 4 + msgbox Text_172B00 + release + end + +PewterCity_Museum_1F_EventScript_1ACE1C:: @ 81ACE1C + lockall + famechecker FAMECHECKER_BROCK, 5 + textcolor 3 + msgbox gUnknown_81B146A + releaseall + end + +Route20_EventScript_1ACE36:: @ 81ACE36 + lock + faceplayer + famechecker FAMECHECKER_MISTY, 3 + msgbox Text_1882E1 + release + end + +Route25_EventScript_1ACE4F:: @ 81ACE4F + lock + faceplayer + famechecker FAMECHECKER_MISTY, 4 + msgbox Text_189569 + release + end + +CeruleanCity_PokemonCenter_1F_EventScript_1ACE68:: @ 81ACE68 + lock + faceplayer + famechecker FAMECHECKER_MISTY, 5 + textcolor 3 + msgbox gUnknown_81B14E8 + release + end + +VermilionCity_PokemonCenter_1F_EventScript_1ACE83:: @ 81ACE83 + lockall + famechecker FAMECHECKER_LTSURGE, 5 + textcolor 3 + msgbox gUnknown_81B1558 + releaseall + end + +CeladonCity_Condominiums_2F_EventScript_1ACE9D:: @ 81ACE9D + lock + faceplayer + famechecker FAMECHECKER_ERIKA, 5 + textcolor 3 + msgbox gUnknown_81B161B + release + end + +FuchsiaCity_Building1_EventScript_1ACEB8:: @ 81ACEB8 + lock + faceplayer + famechecker FAMECHECKER_KOGA, 4 + textcolor 3 + msgbox gUnknown_81B16A8 + release + end + +SafariZone_Building3_EventScript_1ACED3:: @ 81ACED3 + lock + faceplayer + famechecker FAMECHECKER_KOGA, 5 + msgbox Text_177C47 + release + end + +SaffronCity_PokemonCenter_1F_EventScript_1ACEEC:: @ 81ACEEC + lock + faceplayer + famechecker FAMECHECKER_SABRINA, 4 + textcolor 3 + msgbox gUnknown_81B1753 + release + end + +CinnabarIsland_Gym_EventScript_1ACF07:: @ 81ACF07 + lockall + famechecker FAMECHECKER_BLAINE, 4 + famechecker FAMECHECKER_MRFUJI, 4 + msgbox Text_199E8A + releaseall + end + +FiveIsland_ResortGorgeous_House_EventScript_1ACF2C:: @ 81ACF2C + lockall + famechecker FAMECHECKER_BLAINE, 5 + textcolor 3 + msgbox gUnknown_81B17E9 + releaseall + end + +FourIsland_Mart_EventScript_1ACF46:: @ 81ACF46 + lock + faceplayer + famechecker FAMECHECKER_LORELEI, 2 + msgbox Text_1A3A60 + release + end + +FiveIsland_PokemonCenter_1F_EventScript_1ACF5F:: @ 81ACF5F + lock + faceplayer + famechecker FAMECHECKER_LORELEI, 3 + textcolor 3 + msgbox gUnknown_81B187F + release + end + +SaffronCity_PokemonTrainerFanClub_EventScript_1ACF7A:: @ 81ACF7A + lock + faceplayer + famechecker FAMECHECKER_BRUNO, 2 + textcolor 3 + msgbox gUnknown_81B1913 + release + end + +SevenIsland_SevaultCanyon_EventScript_1ACF95:: @ 81ACF95 + lock + faceplayer + famechecker FAMECHECKER_BRUNO, 5 + msgbox Text_18CF4D + release + end + +IndigoPlateau_PokemonCenter_1F_EventScript_1ACFAE:: @ 81ACFAE + lock + faceplayer + famechecker FAMECHECKER_AGATHA, 1 + famechecker FAMECHECKER_AGATHA, 2 + msgbox Text_19A9E7 + release + end + +SevenIsland_PokemonCenter_1F_EventScript_1ACFD4:: @ 81ACFD4 + lock + faceplayer + famechecker FAMECHECKER_AGATHA, 3 + textcolor 3 + msgbox gUnknown_81B19A8 + release + end + +SixIsland_Mart_EventScript_1ACFEF:: @ 81ACFEF + lock + faceplayer + famechecker FAMECHECKER_AGATHA, 5 + msgbox Text_1A41CA + release + end + +EventScript_1AD008:: @ 81AD008 + lock + faceplayer + famechecker FAMECHECKER_LANCE, 0 + msgbox gFameCheckerFlavorText_Lance0 + release + end + +EventScript_1AD021:: @ 81AD021 + lock + faceplayer + famechecker FAMECHECKER_LANCE, 1 + msgbox Text_181569 + release + end + +SaffronCity_EventScript_1AD03A:: @ 81AD03A + lock + faceplayer + famechecker FAMECHECKER_LANCE, 2 + msgbox Text_181569 + release + end + +CeladonCity_DepartmentStore_2F_EventScript_1AD053:: @ 81AD053 + lock + faceplayer + famechecker FAMECHECKER_LANCE, 3 + msgbox Text_19566B + release + end + +IndigoPlateau_PokemonCenter_1F_EventScript_1AD06C:: @ 81AD06C + lock + faceplayer + famechecker FAMECHECKER_LANCE, 4 + textcolor 3 + msgbox gUnknown_81B1A31 + release + end + +IndigoPlateau_PokemonCenter_1F_EventScript_1AD087:: @ 81AD087 + lock + faceplayer + famechecker FAMECHECKER_LANCE, 5 + msgbox Text_19AB16 + release + end + +LavenderTown_PokemonCenter_1F_EventScript_1AD0A0:: @ 81AD0A0 + lock + faceplayer + famechecker FAMECHECKER_MRFUJI, 3 + msgbox Text_19358E + release + end + +CinnabarIsland_PokemonCenter_1F_EventScript_1AD0B9:: @ 81AD0B9 + lock + faceplayer + famechecker FAMECHECKER_MRFUJI, 5 + textcolor 3 + msgbox gUnknown_81B1BD1 + release + end + +SilphCo_5F_EventScript_1AD0D4:: @ 81AD0D4 + lock + faceplayer + famechecker FAMECHECKER_GIOVANNI, 1 + msgbox Text_175E99 + release + end + +SilphCo_8F_EventScript_1AD0ED:: @ 81AD0ED + lock + faceplayer + famechecker FAMECHECKER_GIOVANNI, 2 + msgbox Text_176ACB + release + end + + .include "data/text/fame_checker.inc" + +CeladonCity_GameCorner_EventScript_1B2867:: @ 81B2867 + lockall + showmoneybox 0, 0, 0 + msgbox gUnknown_81B1D7D, 5 + compare_var_to_value VAR_RESULT, 0 + goto_if eq, EventScript_1B2926 + checkmoney 50, 0 + compare_var_to_value VAR_RESULT, 0 + goto_if eq, EventScript_1B292B + playse SE_SHOP + takemoney 50, 0 + updatemoneybox 0, 0, 0 + waitse + message gUnknown_81B1E24 + waitmessage + multichoice 21, 0, MULTICHOICE_TRAINER_CARD_ICON_TINT, TRUE + switch VAR_RESULT + case 0, EventScript_1B28DB + case 1, EventScript_1B28E6 + case 2, EventScript_1B28F1 + case 3, EventScript_1B28FC + end + +EventScript_1B28DB:: @ 81B28DB + setvar VAR_0x8004, 0 + goto EventScript_1B2907 + +EventScript_1B28E5:: @ 81B28E5 + end + +EventScript_1B28E6:: @ 81B28E6 + setvar VAR_0x8004, 1 + goto EventScript_1B2907 + +EventScript_1B28F0:: @ 81B28F0 + end + +EventScript_1B28F1:: @ 81B28F1 + setvar VAR_0x8004, 2 + goto EventScript_1B2907 + +EventScript_1B28FB:: @ 81B28FB + end + +EventScript_1B28FC:: @ 81B28FC + setvar VAR_0x8004, 3 + goto EventScript_1B2907 + +EventScript_1B2906:: @ 81B2906 + end + +EventScript_1B2907:: @ 81B2907 + message gUnknown_81B1E42 + waitmessage + playse MUS_ME_PHOTO + dofieldeffect FLDEFF_UNK_45 + delay 60 + special Special_UpdateTrainerCardPhotoIcons + msgbox gUnknown_81B1E7D + hidemoneybox + nop + nop + releaseall + end + +EventScript_1B2926:: @ 81B2926 + hidemoneybox + nop + nop + releaseall + end + +EventScript_1B292B:: @ 81B292B + msgbox gUnknown_81B1E07 + hidemoneybox + nop + nop + releaseall + end + +FourIsland_House2_EventScript_1B2938:: @ 81B2938 + lock + specialvar VAR_0x8008, Special_StickerLadyGetBragFlags + checkflag FLAG_MET_STICKER_LADY + goto_if FALSE, EventScript_1B2951 + checkflag FLAG_MET_STICKER_LADY + goto_if TRUE, EventScript_1B2994 + end + +EventScript_1B2951:: @ 81B2951 + setflag FLAG_MET_STICKER_LADY + msgbox gUnknown_81B1EB3 + applymovement 1, Movement_1A75E1 + waitmovement 0 + playse SE_PIN + applymovement 1, Movement_1A75DB + waitmovement 0 + applymovement 1, Movement_1A75DD + waitmovement 0 + compare_var_to_value VAR_0x8008, 0 + goto_if eq, EventScript_1B2B8E + message gUnknown_81B1EF8 + waitmessage + goto EventScript_1B29D0 + +EventScript_1B2993:: @ 81B2993 + end + +EventScript_1B2994:: @ 81B2994 + applymovement 1, Movement_1A75E1 + waitmovement 0 + special sub_8110AB4 + compare_var_to_value VAR_RESULT, 2 + goto_if eq, EventScript_1A7AE0 + special sub_8112364 + compare_var_to_value VAR_0x8008, 0 + goto_if eq, EventScript_1B29C6 + message gUnknown_81B2025 + waitmessage + goto EventScript_1B29D0 + +EventScript_1B29C5:: @ 81B29C5 + end + +EventScript_1B29C6:: @ 81B29C6 + msgbox gUnknown_81B1FEF + release + end + +EventScript_1B29D0:: @ 81B29D0 + switch VAR_0x8008 + case 1, EventScript_1B2A23 + case 2, EventScript_1B2A4F + case 4, EventScript_1B2A7B + case 3, EventScript_1B2AA7 + case 5, EventScript_1B2ADE + case 6, EventScript_1B2B15 + case 7, EventScript_1B2B4C + end + +EventScript_1B2A23:: @ 81B2A23 + multichoice 15, 8, MULTICHOICE_HOF_QUIT, FALSE + switch VAR_RESULT + case 0, EventScript_1B2B98 + case 1, EventScript_1B2DF6 + case SCR_MENU_CANCEL, EventScript_1B2DF6 + end + +EventScript_1B2A4F:: @ 81B2A4F + multichoice 16, 8, MULTICHOICE_EGGS_QUIT, FALSE + switch VAR_RESULT + case 0, EventScript_1B2C62 + case 1, EventScript_1B2DF6 + case SCR_MENU_CANCEL, EventScript_1B2DF6 + end + +EventScript_1B2A7B:: @ 81B2A7B + multichoice 15, 8, MULTICHOICE_VICTORIES_QUIT, FALSE + switch VAR_RESULT + case 0, EventScript_1B2D2C + case 1, EventScript_1B2DF6 + case SCR_MENU_CANCEL, EventScript_1B2DF6 + end + +EventScript_1B2AA7:: @ 81B2AA7 + multichoice 15, 6, MULTICHOICE_HOF_EGGS_QUIT, FALSE + switch VAR_RESULT + case 0, EventScript_1B2B98 + case 1, EventScript_1B2C62 + case 2, EventScript_1B2DF6 + case SCR_MENU_CANCEL, EventScript_1B2DF6 + end + +EventScript_1B2ADE:: @ 81B2ADE + multichoice 15, 6, MULTICHOICE_HOF_VICTORIES_QUIT, FALSE + switch VAR_RESULT + case 0, EventScript_1B2B98 + case 1, EventScript_1B2D2C + case 2, EventScript_1B2DF6 + case SCR_MENU_CANCEL, EventScript_1B2DF6 + end + +EventScript_1B2B15:: @ 81B2B15 + multichoice 15, 6, MULTICHOICE_EGGS_VICTORIES_QUIT, FALSE + switch VAR_RESULT + case 0, EventScript_1B2C62 + case 1, EventScript_1B2D2C + case 2, EventScript_1B2DF6 + case SCR_MENU_CANCEL, EventScript_1B2DF6 + end + +EventScript_1B2B4C:: @ 81B2B4C + multichoice 15, 5, MULTICHOICE_HOF_EGGS_VICTORIES_QUIT, FALSE + switch VAR_RESULT + case 0, EventScript_1B2B98 + case 1, EventScript_1B2C62 + case 2, EventScript_1B2D2C + case 3, EventScript_1B2DF6 + case SCR_MENU_CANCEL, EventScript_1B2DF6 + end + +EventScript_1B2B8E:: @ 81B2B8E + msgbox gUnknown_81B1EF8 + release + end + +EventScript_1B2B98:: @ 81B2B98 + compare_var_to_value VAR_0x8004, 39 + goto_if le, EventScript_1B2BC5 + compare_var_to_value VAR_0x8004, 99 + goto_if le, EventScript_1B2BE3 + compare_var_to_value VAR_0x8004, 199 + goto_if le, EventScript_1B2C01 + compare_var_to_value VAR_0x8004, 200 + goto_if ge, EventScript_1B2C1F + end + +EventScript_1B2BC5:: @ 81B2BC5 + compare_var_to_value VAR_HOF_BRAG_STATE, 1 + goto_if eq, EventScript_1B2C3D + setvar VAR_HOF_BRAG_STATE, 1 + msgbox gUnknown_81B206E + goto EventScript_1B2C51 + +EventScript_1B2BE2:: @ 81B2BE2 + end + +EventScript_1B2BE3:: @ 81B2BE3 + compare_var_to_value VAR_HOF_BRAG_STATE, 2 + goto_if eq, EventScript_1B2C3D + setvar VAR_HOF_BRAG_STATE, 2 + msgbox gUnknown_81B20CF + goto EventScript_1B2C51 + +EventScript_1B2C00:: @ 81B2C00 + end + +EventScript_1B2C01:: @ 81B2C01 + compare_var_to_value VAR_HOF_BRAG_STATE, 3 + goto_if eq, EventScript_1B2C3D + setvar VAR_HOF_BRAG_STATE, 3 + msgbox gUnknown_81B2133 + goto EventScript_1B2C51 + +EventScript_1B2C1E:: @ 81B2C1E + end + +EventScript_1B2C1F:: @ 81B2C1F + compare_var_to_value VAR_HOF_BRAG_STATE, 4 + goto_if eq, EventScript_1B2C47 + setvar VAR_HOF_BRAG_STATE, 4 + msgbox gUnknown_81B21C4 + goto EventScript_1B2C51 + +EventScript_1B2C3C:: @ 81B2C3C + end + +EventScript_1B2C3D:: @ 81B2C3D + msgbox gUnknown_81B227C + release + end + +EventScript_1B2C47:: @ 81B2C47 + msgbox gUnknown_81B22B0 + release + end + +EventScript_1B2C51:: @ 81B2C51 + textcolor 3 + playfanfare MUS_FANFA1 + message gUnknown_81B2242 + waitmessage + waitfanfare + delay 90 + release + end + +EventScript_1B2C62:: @ 81B2C62 + compare_var_to_value VAR_0x8005, 99 + goto_if le, EventScript_1B2C8F + compare_var_to_value VAR_0x8005, 199 + goto_if le, EventScript_1B2CAD + compare_var_to_value VAR_0x8005, 299 + goto_if le, EventScript_1B2CCB + compare_var_to_value VAR_0x8005, 300 + goto_if ge, EventScript_1B2CE9 + end + +EventScript_1B2C8F:: @ 81B2C8F + compare_var_to_value VAR_EGG_BRAG_STATE, 1 + goto_if eq, EventScript_1B2D07 + setvar VAR_EGG_BRAG_STATE, 1 + msgbox gUnknown_81B2308 + goto EventScript_1B2D1B + +EventScript_1B2CAC:: @ 81B2CAC + end + +EventScript_1B2CAD:: @ 81B2CAD + compare_var_to_value VAR_EGG_BRAG_STATE, 2 + goto_if eq, EventScript_1B2D07 + setvar VAR_EGG_BRAG_STATE, 2 + msgbox gUnknown_81B2372 + goto EventScript_1B2D1B + +EventScript_1B2CCA:: @ 81B2CCA + end + +EventScript_1B2CCB:: @ 81B2CCB + compare_var_to_value VAR_EGG_BRAG_STATE, 3 + goto_if eq, EventScript_1B2D07 + setvar VAR_EGG_BRAG_STATE, 3 + msgbox gUnknown_81B23E0 + goto EventScript_1B2D1B + +EventScript_1B2CE8:: @ 81B2CE8 + end + +EventScript_1B2CE9:: @ 81B2CE9 + compare_var_to_value VAR_EGG_BRAG_STATE, 4 + goto_if eq, EventScript_1B2D11 + setvar VAR_EGG_BRAG_STATE, 4 + msgbox gUnknown_81B2448 + goto EventScript_1B2D1B + +EventScript_1B2D06:: @ 81B2D06 + end + +EventScript_1B2D07:: @ 81B2D07 + msgbox gUnknown_81B251B + release + end + +EventScript_1B2D11:: @ 81B2D11 + msgbox gUnknown_81B254F + release + end + +EventScript_1B2D1B:: @ 81B2D1B + textcolor 3 + playfanfare MUS_FANFA1 + message gUnknown_81B24EA + waitmessage + waitfanfare + delay 90 + release + end + +EventScript_1B2D2C:: @ 81B2D2C + compare_var_to_value VAR_0x8006, 19 + goto_if le, EventScript_1B2D59 + compare_var_to_value VAR_0x8006, 49 + goto_if le, EventScript_1B2D77 + compare_var_to_value VAR_0x8006, 99 + goto_if le, EventScript_1B2D95 + compare_var_to_value VAR_0x8006, 100 + goto_if ge, EventScript_1B2DB3 + end + +EventScript_1B2D59:: @ 81B2D59 + compare_var_to_value VAR_LINK_WIN_BRAG_STATE, 1 + goto_if eq, EventScript_1B2DD1 + setvar VAR_LINK_WIN_BRAG_STATE, 1 + msgbox gUnknown_81B25A7 + goto EventScript_1B2DE5 + +EventScript_1B2D76:: @ 81B2D76 + end + +EventScript_1B2D77:: @ 81B2D77 + compare_var_to_value VAR_LINK_WIN_BRAG_STATE, 2 + goto_if eq, EventScript_1B2DD1 + setvar VAR_LINK_WIN_BRAG_STATE, 2 + msgbox gUnknown_81B2609 + goto EventScript_1B2DE5 + +EventScript_1B2D94:: @ 81B2D94 + end + +EventScript_1B2D95:: @ 81B2D95 + compare_var_to_value VAR_LINK_WIN_BRAG_STATE, 3 + goto_if eq, EventScript_1B2DD1 + setvar VAR_LINK_WIN_BRAG_STATE, 3 + msgbox gUnknown_81B267B + goto EventScript_1B2DE5 + +EventScript_1B2DB2:: @ 81B2DB2 + end + +EventScript_1B2DB3:: @ 81B2DB3 + compare_var_to_value VAR_LINK_WIN_BRAG_STATE, 4 + goto_if eq, EventScript_1B2DDB + setvar VAR_LINK_WIN_BRAG_STATE, 4 + msgbox gUnknown_81B26F6 + goto EventScript_1B2DE5 + +EventScript_1B2DD0:: @ 81B2DD0 + end + +EventScript_1B2DD1:: @ 81B2DD1 + msgbox gUnknown_81B27DB + release + end + +EventScript_1B2DDB:: @ 81B2DDB + msgbox gUnknown_81B280F + release + end + +EventScript_1B2DE5:: @ 81B2DE5 + textcolor 3 + playfanfare MUS_FANFA1 + message gUnknown_81B27A6 + waitmessage + waitfanfare + delay 90 + release + end + +EventScript_1B2DF6:: @ 81B2DF6 + release + end + + .include "data/text/help_system.inc" + +CeladonCity_PokemonCenter_2F_MapScript4_1BB1B4:: @ 81BB1B4 +CeruleanCity_PokemonCenter_2F_MapScript4_1BB1B4:: @ 81BB1B4 +CinnabarIsland_PokemonCenter_2F_MapScript4_1BB1B4:: @ 81BB1B4 +FiveIsland_PokemonCenter_2F_MapScript4_1BB1B4:: @ 81BB1B4 +FourIsland_PokemonCenter_2F_MapScript4_1BB1B4:: @ 81BB1B4 +FuchsiaCity_PokemonCenter_2F_MapScript4_1BB1B4:: @ 81BB1B4 +IndigoPlateau_PokemonCenter_2F_MapScript4_1BB1B4:: @ 81BB1B4 +LavenderTown_PokemonCenter_2F_MapScript4_1BB1B4:: @ 81BB1B4 +OneIsland_PokemonCenter_2F_MapScript4_1BB1B4:: @ 81BB1B4 +PewterCity_PokemonCenter_2F_MapScript4_1BB1B4:: @ 81BB1B4 +Route10_PokemonCenter_2F_MapScript4_1BB1B4:: @ 81BB1B4 +Route4_PokemonCenter_2F_MapScript4_1BB1B4:: @ 81BB1B4 +SaffronCity_PokemonCenter_2F_MapScript4_1BB1B4:: @ 81BB1B4 +SevenIsland_PokemonCenter_2F_MapScript4_1BB1B4:: @ 81BB1B4 +SixIsland_PokemonCenter_2F_MapScript4_1BB1B4:: @ 81BB1B4 +ThreeIsland_PokemonCenter_2F_MapScript4_1BB1B4:: @ 81BB1B4 +TwoIsland_PokemonCenter_2F_MapScript4_1BB1B4:: @ 81BB1B4 +VermilionCity_PokemonCenter_2F_MapScript4_1BB1B4:: @ 81BB1B4 +ViridianCity_PokemonCenter_2F_MapScript4_1BB1B4:: @ 81BB1B4 + call EventScript_1BB1BA + end + +EventScript_1BB1BA:: @ 81BB1BA + specialvar VAR_RESULT, ValidateReceivedWonderCard + compare_var_to_value VAR_RESULT, 0 + goto_if eq, EventScript_1BB1CE + clearflag FLAG_HIDE_MG_DELIVERYMEN + return + +EventScript_1BB1CE:: @ 81BB1CE + setflag FLAG_HIDE_MG_DELIVERYMEN + return + +CeruleanCity_PokemonCenter_2F_EventScript_1BB1D2:: @ 81BB1D2 +CinnabarIsland_PokemonCenter_2F_EventScript_1BB1D2:: @ 81BB1D2 +FiveIsland_PokemonCenter_2F_EventScript_1BB1D2:: @ 81BB1D2 +FuchsiaCity_PokemonCenter_2F_EventScript_1BB1D2:: @ 81BB1D2 +OneIsland_PokemonCenter_2F_EventScript_1BB1D2:: @ 81BB1D2 +PewterCity_PokemonCenter_2F_EventScript_1BB1D2:: @ 81BB1D2 +SevenIsland_PokemonCenter_2F_EventScript_1BB1D2:: @ 81BB1D2 +VermilionCity_PokemonCenter_2F_EventScript_1BB1D2:: @ 81BB1D2 +FourIsland_PokemonCenter_2F_EventScript_1BB1D2:: @ 81BB1D2 +SixIsland_PokemonCenter_2F_EventScript_1BB1D2:: @ 81BB1D2 +ThreeIsland_PokemonCenter_2F_EventScript_1BB1D2:: @ 81BB1D2 +TwoIsland_PokemonCenter_2F_EventScript_1BB1D2:: @ 81BB1D2 +Route10_PokemonCenter_2F_EventScript_1BB1D2:: @ 81BB1D2 +Route10_PokemonCenter_2F_EventScript_1BB1D2:: @ 81BB1D2 +Route4_PokemonCenter_2F_EventScript_1BB1D2:: @ 81BB1D2 +SaffronCity_PokemonCenter_2F_EventScript_1BB1D2:: @ 81BB1D2 +IndigoPlateau_PokemonCenter_2F_EventScript_1BB1D2:: @ 81BB1D2 +CeladonCity_PokemonCenter_2F_EventScript_1BB1D2:: @ 81BB1D2 +LavenderTown_PokemonCenter_2F_EventScript_1BB1D2:: @ 81BB1D2 +ViridianCity_PokemonCenter_2F_EventScript_1BB1D2:: @ 81BB1D2 + special sub_8110AB4 + compare_var_to_value VAR_RESULT, 2 + goto_if eq, EventScript_1A7AE0 + special sub_8112364 + execram + +EventScript_1BB1E4:: @ 81BB1E4 + msgbox Text_1A6393, 2 + end + +CeladonCity_PokemonCenter_2F_MapScript2_1BB1ED:: @ 81BB1ED +CeruleanCity_PokemonCenter_2F_MapScript2_1BB1ED:: @ 81BB1ED +CinnabarIsland_PokemonCenter_2F_MapScript2_1BB1ED:: @ 81BB1ED +FiveIsland_PokemonCenter_2F_MapScript2_1BB1ED:: @ 81BB1ED +FourIsland_PokemonCenter_2F_MapScript2_1BB1ED:: @ 81BB1ED +FuchsiaCity_PokemonCenter_2F_MapScript2_1BB1ED:: @ 81BB1ED +IndigoPlateau_PokemonCenter_2F_MapScript2_1BB1ED:: @ 81BB1ED +LavenderTown_PokemonCenter_2F_MapScript2_1BB1ED:: @ 81BB1ED +OneIsland_PokemonCenter_2F_MapScript2_1BB1ED:: @ 81BB1ED +PewterCity_PokemonCenter_2F_MapScript2_1BB1ED:: @ 81BB1ED +Route10_PokemonCenter_2F_MapScript2_1BB1ED:: @ 81BB1ED +Route4_PokemonCenter_2F_MapScript2_1BB1ED:: @ 81BB1ED +SaffronCity_PokemonCenter_2F_MapScript2_1BB1ED:: @ 81BB1ED +SevenIsland_PokemonCenter_2F_MapScript2_1BB1ED:: @ 81BB1ED +SixIsland_PokemonCenter_2F_MapScript2_1BB1ED:: @ 81BB1ED +ThreeIsland_PokemonCenter_2F_MapScript2_1BB1ED:: @ 81BB1ED +TwoIsland_PokemonCenter_2F_MapScript2_1BB1ED:: @ 81BB1ED +VermilionCity_PokemonCenter_2F_MapScript2_1BB1ED:: @ 81BB1ED +ViridianCity_PokemonCenter_2F_MapScript2_1BB1ED:: @ 81BB1ED + map_script_2 VAR_0x406F, 1, EventScript_1BB227 + map_script_2 VAR_0x406F, 2, EventScript_1BB227 + map_script_2 VAR_0x406F, 5, EventScript_1BB227 + map_script_2 VAR_0x406F, 3, EventScript_1BB227 + map_script_2 VAR_0x406F, 6, EventScript_1BB227 + map_script_2 VAR_0x406F, 7, EventScript_1BB227 + map_script_2 VAR_0x406F, 8, EventScript_1BB227 + .2byte 0 + +EventScript_1BB227:: @ 81BB227 + compare_var_to_value VAR_0x8007, 0 + goto_if eq, EventScript_1BB236 + turnobject VAR_0x8007, 3 +EventScript_1BB236: + end + +CeladonCity_PokemonCenter_2F_MapScript3_1BB237:: @ 81BB237 +CeruleanCity_PokemonCenter_2F_MapScript3_1BB237:: @ 81BB237 +CinnabarIsland_PokemonCenter_2F_MapScript3_1BB237:: @ 81BB237 +FiveIsland_PokemonCenter_2F_MapScript3_1BB237:: @ 81BB237 +FourIsland_PokemonCenter_2F_MapScript3_1BB237:: @ 81BB237 +FuchsiaCity_PokemonCenter_2F_MapScript3_1BB237:: @ 81BB237 +IndigoPlateau_PokemonCenter_2F_MapScript3_1BB237:: @ 81BB237 +LavenderTown_PokemonCenter_2F_MapScript3_1BB237:: @ 81BB237 +OneIsland_PokemonCenter_2F_MapScript3_1BB237:: @ 81BB237 +PewterCity_PokemonCenter_2F_MapScript3_1BB237:: @ 81BB237 +Route10_PokemonCenter_2F_MapScript3_1BB237:: @ 81BB237 +Route4_PokemonCenter_2F_MapScript3_1BB237:: @ 81BB237 +SaffronCity_PokemonCenter_2F_MapScript3_1BB237:: @ 81BB237 +SevenIsland_PokemonCenter_2F_MapScript3_1BB237:: @ 81BB237 +SixIsland_PokemonCenter_2F_MapScript3_1BB237:: @ 81BB237 +ThreeIsland_PokemonCenter_2F_MapScript3_1BB237:: @ 81BB237 +TwoIsland_JoyfulGameCorner_MapScript4_1BB237:: @ 81BB237 +TwoIsland_PokemonCenter_2F_MapScript3_1BB237:: @ 81BB237 +VermilionCity_PokemonCenter_2F_MapScript3_1BB237:: @ 81BB237 +ViridianCity_PokemonCenter_2F_MapScript3_1BB237:: @ 81BB237 + compare_var_to_value VAR_0x406F, 1 + goto_if eq, EventScript_1BB285 + compare_var_to_value VAR_0x406F, 2 + goto_if eq, EventScript_1BB285 + compare_var_to_value VAR_0x406F, 5 + goto_if eq, EventScript_1BB285 + compare_var_to_value VAR_0x406F, 3 + goto_if eq, EventScript_1BB28B + compare_var_to_value VAR_0x406F, 6 + goto_if eq, EventScript_1BB291 + compare_var_to_value VAR_0x406F, 7 + goto_if eq, EventScript_1BB297 + compare_var_to_value VAR_0x406F, 8 + goto_if eq, EventScript_1BB29D + end + +EventScript_1BB285:: @ 81BB285 + call EventScript_1BC034 + end + +EventScript_1BB28B:: @ 81BB28B + call EventScript_1BC034 + end + +EventScript_1BB291:: @ 81BB291 + call EventScript_1BC020 + end + +EventScript_1BB297:: @ 81BB297 + call EventScript_1BC034 + end + +EventScript_1BB29D:: @ 81BB29D + call EventScript_1BC048 + end + +CeladonCity_PokemonCenter_2F_MapScript1_1BB2A3:: @ 81BB2A3 +CeruleanCity_PokemonCenter_2F_MapScript1_1BB2A3:: @ 81BB2A3 +CinnabarIsland_PokemonCenter_2F_MapScript1_1BB2A3:: @ 81BB2A3 +FiveIsland_PokemonCenter_2F_MapScript1_1BB2A3:: @ 81BB2A3 +FourIsland_PokemonCenter_2F_MapScript1_1BB2A3:: @ 81BB2A3 +FuchsiaCity_PokemonCenter_2F_MapScript1_1BB2A3:: @ 81BB2A3 +IndigoPlateau_PokemonCenter_2F_MapScript1_1BB2A3:: @ 81BB2A3 +LavenderTown_PokemonCenter_2F_MapScript1_1BB2A3:: @ 81BB2A3 +OneIsland_PokemonCenter_2F_MapScript1_1BB2A3:: @ 81BB2A3 +PewterCity_PokemonCenter_2F_MapScript1_1BB2A3:: @ 81BB2A3 +Route10_PokemonCenter_2F_MapScript1_1BB2A3:: @ 81BB2A3 +Route4_PokemonCenter_2F_MapScript1_1BB2A3:: @ 81BB2A3 +SaffronCity_PokemonCenter_2F_MapScript1_1BB2A3:: @ 81BB2A3 +SevenIsland_PokemonCenter_2F_MapScript1_1BB2A3:: @ 81BB2A3 +SixIsland_PokemonCenter_2F_MapScript1_1BB2A3:: @ 81BB2A3 +ThreeIsland_PokemonCenter_2F_MapScript1_1BB2A3:: @ 81BB2A3 +TwoIsland_PokemonCenter_2F_MapScript1_1BB2A3:: @ 81BB2A3 +VermilionCity_PokemonCenter_2F_MapScript1_1BB2A3:: @ 81BB2A3 +ViridianCity_PokemonCenter_2F_MapScript1_1BB2A3:: @ 81BB2A3 + map_script_2 VAR_MAP_SCENE_POKEMON_CENTER_TEALA, 1, EventScript_1BB415 + map_script_2 VAR_0x406F, 1, EventScript_1BB2E5 + map_script_2 VAR_0x406F, 2, EventScript_1BB2E5 + map_script_2 VAR_0x406F, 5, EventScript_1BB2E5 + map_script_2 VAR_0x406F, 3, EventScript_1BB34F + map_script_2 VAR_0x406F, 6, EventScript_1BB39C + map_script_2 VAR_0x406F, 7, EventScript_1BB2E5 + map_script_2 VAR_0x406F, 8, EventScript_1BB2FD + .2byte 0 + +EventScript_1BB2E5:: @ 81BB2E5 + lockall + call EventScript_1BB315 + call EventScript_1BC03E + special DrawWholeMapView + playse SE_TK_KASYA + erasebox 0, 0, 29, 19 + releaseall + end + +EventScript_1BB2FD:: @ 81BB2FD + lockall + call EventScript_1BB315 + call EventScript_1BC052 + special DrawWholeMapView + playse SE_TK_KASYA + erasebox 0, 0, 29, 19 + releaseall + end + +EventScript_1BB315:: @ 81BB315 + special CloseLink + special HelpSystem_Enable + special sub_811390C + setvar VAR_0x406F, 0 + textcolor 1 + compare_var_to_value VAR_0x8007, 0 + goto_if eq, EventScript_1BB40A + applymovement VAR_0x8007, Movement_1BB88F + waitmovement 0 + applymovement 255, Movement_1BB891 + waitmovement 0 + applymovement VAR_0x8007, Movement_1BB88B + waitmovement 0 + return + +EventScript_1BB34F:: @ 81BB34F + lockall + call EventScript_1BB367 + call EventScript_1BC03E + special DrawWholeMapView + playse SE_TK_KASYA + erasebox 0, 0, 29, 19 + releaseall + end + +EventScript_1BB367:: @ 81BB367 + special CloseLink + special HelpSystem_Enable + special sub_811390C + setvar VAR_0x406F, 0 + textcolor 1 + compare_var_to_value VAR_0x8007, 0 + goto_if eq, EventScript_1BB40A + applymovement 255, Movement_1BB8A0 + waitmovement 0 + applymovement VAR_0x8007, Movement_1BB88F + waitmovement 0 + call EventScript_1BB3E6 + return + +EventScript_1BB39C:: @ 81BB39C + lockall + call EventScript_1BB3B4 + call EventScript_1BC02A + special DrawWholeMapView + playse SE_TK_KASYA + erasebox 0, 0, 29, 19 + releaseall + end + +EventScript_1BB3B4:: @ 81BB3B4 + special HelpSystem_Enable + special sub_811390C + setvar VAR_0x406F, 0 + textcolor 1 + compare_var_to_value VAR_0x8007, 0 + goto_if eq, EventScript_1BB40A + applymovement 255, Movement_1BB8A0 + waitmovement 0 + applymovement VAR_0x8007, Movement_1BB88F + waitmovement 0 + call EventScript_1BB3E6 + return + +EventScript_1BB3E6:: @ 81BB3E6 + message Text_1BC918 + waitmessage + playse SE_PIN + message Text_1BC943 + waitmessage + applymovement 255, Movement_1BB891 + waitmovement 0 + applymovement VAR_0x8007, Movement_1BB88B + waitmovement 0 + return + +EventScript_1BB40A:: @ 81BB40A + applymovement 255, Movement_1BB891 + waitmovement 0 + return + +EventScript_1BB415:: @ 81BB415 + lockall + textcolor 1 + applymovement 255, Movement_1A75E9 + waitmovement 0 + msgbox gUnknown_81BD898 + closemessage + applymovement 255, Movement_1BB447 + waitmovement 0 + delay 30 + msgbox gUnknown_81BD966 + setvar VAR_MAP_SCENE_POKEMON_CENTER_TEALA, 2 + releaseall + end + +Movement_1BB447:: @ 81BB447 + step_11 + step_11 + step_end + +EventScript_1BB44A:: @ 81BB44A + message gUnknown_81BC311 + waitmessage + delay 15 + goto EventScript_1BB467 + end + +EventScript_1BB459:: @ 81BB459 + msgbox gUnknown_81BC35E + goto EventScript_1BB467 + end + +EventScript_1BB467:: @ 81BB467 + setvar VAR_0x8004, 0 + multichoice 0, 0, MULTICHOICE_TRADE_CENTER_COLOSSEUM, FALSE + switch VAR_RESULT + case 0, EventScript_1BB6AB + case 1, EventScript_1BB4A3 + case 2, EventScript_1BB82F + case SCR_MENU_CANCEL, EventScript_1BB82F + end + +EventScript_1BB4A3:: @ 81BB4A3 + copyvar VAR_0x8007, VAR_LAST_TALKED + goto EventScript_1BB4AE + +EventScript_1BB4AD:: @ 81BB4AD + end + +EventScript_1BB4AE:: @ 81BB4AE + message Text_1BD338 + waitmessage + multichoice 0, 0, MULTICHOICE_SINGLE_DOUBLE_MULTI_INFO_EXIT, FALSE + switch VAR_RESULT + case 0, EventScript_1BB50F + case 1, EventScript_1BB51A + case 2, EventScript_1BB541 + case 3, EventScript_1BB501 + case 4, EventScript_1BB82F + case SCR_MENU_CANCEL, EventScript_1BB82F + end + +EventScript_1BB501:: @ 81BB501 + msgbox gUnknown_81BD390 + goto EventScript_1BB4AE + +EventScript_1BB50E:: @ 81BB50E + end + +EventScript_1BB50F:: @ 81BB50F + setvar VAR_0x8004, 1 + goto EventScript_1BB54C + +EventScript_1BB519:: @ 81BB519 + end + +EventScript_1BB51A:: @ 81BB51A + special CheckForAlivePartyMons + compare_var_to_value VAR_RESULT, 0 + goto_if ne, EventScript_1BB533 + setvar VAR_0x8004, 2 + goto EventScript_1BB54C + +EventScript_1BB532:: @ 81BB532 + end + +EventScript_1BB533:: @ 81BB533 + msgbox gUnknown_81BC409 + goto EventScript_1BB4AE + +EventScript_1BB540:: @ 81BB540 + end + +EventScript_1BB541:: @ 81BB541 + setvar VAR_0x8004, 5 + goto EventScript_1BB54C + +EventScript_1BB54B:: @ 81BB54B + end + +EventScript_1BB54C:: @ 81BB54C + call EventScript_1A4EAF + compare_var_to_value VAR_RESULT, 0 + goto_if eq, EventScript_1BB82F + message gUnknown_81BC4AC + waitmessage + special HelpSystem_Disable + textcolor 3 + special sub_8081064 + waitstate + call EventScript_1A6675 + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1BB5B3 + compare_var_to_value VAR_RESULT, 2 + goto_if eq, EventScript_1BB80F + compare_var_to_value VAR_RESULT, 3 + goto_if eq, EventScript_1BB81F + compare_var_to_value VAR_RESULT, 4 + goto_if eq, EventScript_1BB63C + compare_var_to_value VAR_RESULT, 5 + goto_if eq, EventScript_1BB82F + compare_var_to_value VAR_RESULT, 6 + goto_if eq, EventScript_1BB7FF + end + +EventScript_1BB5B3:: @ 81BB5B3 + special sp000_heal_pokemon + special SavePlayerParty + special LoadPlayerBag + copyvar VAR_0x406F, VAR_0x8004 + messageautoscroll Text_1BC590 + waitmessage + call EventScript_1BC034 + special DrawWholeMapView + playse SE_TK_KASYA + delay 60 + applymovement VAR_LAST_TALKED, Movement_1BB88F + waitmovement 0 + closemessage + applymovement 255, Movement_1BB898 + waitmovement 0 + opendoor 9, 1 + waitdooranim + applymovement 255, Movement_1BB89C + waitmovement 0 + hideobject 255, MAP_UNKNOWN_MAP_00_00 + closedoor 9, 1 + waitdooranim + release + compare_var_to_value VAR_0x8004, 5 + goto_if eq, EventScript_1BB62C + special SetCableClubWarp + warp MAP_UNKNOWN_MAP_00_00, 255, 6, 8 + special DoCableClubWarp + waitstate + end + +EventScript_1BB621:: @ 81BB621 + applymovement 255, Movement_1BB894 + waitmovement 0 + return + +EventScript_1BB62C:: @ 81BB62C + special SetCableClubWarp + warp MAP_UNKNOWN_MAP_00_03, 255, 5, 8 + special DoCableClubWarp + waitstate + end + +EventScript_1BB63C:: @ 81BB63C + switch VAR_0x8004 + case 1, EventScript_1BB68A + case 2, EventScript_1BB679 + case 5, EventScript_1BB668 + goto EventScript_1BB857 + +EventScript_1BB667:: @ 81BB667 + end + +EventScript_1BB668:: @ 81BB668 + special CloseLink + msgbox gUnknown_81BC736 + goto EventScript_1BB69B + +EventScript_1BB678:: @ 81BB678 + end + +EventScript_1BB679:: @ 81BB679 + special CloseLink + msgbox gUnknown_81BC700 + goto EventScript_1BB69B + +EventScript_1BB689:: @ 81BB689 + end + +EventScript_1BB68A:: @ 81BB68A + special CloseLink + msgbox gUnknown_81BC6CA + goto EventScript_1BB69B + +EventScript_1BB69A:: @ 81BB69A + end + +EventScript_1BB69B:: @ 81BB69B + special CloseLink + special HelpSystem_Enable + msgbox gUnknown_81BC76B + release + end + +EventScript_1BB6AB:: @ 81BB6AB + copyvar VAR_0x8007, VAR_LAST_TALKED + call EventScript_1BB79C + compare_var_to_value VAR_RESULT, 0 + goto_if eq, EventScript_1BB82F + call EventScript_1A4EAF + compare_var_to_value VAR_RESULT, 0 + goto_if eq, EventScript_1BB82F + message gUnknown_81BC4AC + waitmessage + special HelpSystem_Disable + textcolor 3 + special sub_80810CC + waitstate + call EventScript_1A6675 + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1BB73D + compare_var_to_value VAR_RESULT, 2 + goto_if eq, EventScript_1BB80F + compare_var_to_value VAR_RESULT, 3 + goto_if eq, EventScript_1BB81F + compare_var_to_value VAR_RESULT, 4 + goto_if eq, EventScript_1BB857 + compare_var_to_value VAR_RESULT, 5 + goto_if eq, EventScript_1BB82F + compare_var_to_value VAR_RESULT, 6 + goto_if eq, EventScript_1BB7FF + compare_var_to_value VAR_RESULT, 7 + goto_if eq, EventScript_1BB7DF + compare_var_to_value VAR_RESULT, 9 + goto_if eq, EventScript_1BB7EF + end + +EventScript_1BB73D:: @ 81BB73D + setvar VAR_0x8004, 3 + copyvar VAR_0x406F, VAR_0x8004 + messageautoscroll Text_1BC590 + waitmessage + call EventScript_1BC034 + special DrawWholeMapView + playse SE_TK_KASYA + delay 60 + applymovement VAR_LAST_TALKED, Movement_1BB88F + waitmovement 0 + closemessage + applymovement 255, Movement_1BB898 + waitmovement 0 + opendoor 9, 1 + waitdooranim + applymovement 255, Movement_1BB89C + waitmovement 0 + hideobject 255, MAP_UNKNOWN_MAP_00_00 + closedoor 9, 1 + waitdooranim + release + special SetCableClubWarp + setwarp MAP_UNKNOWN_MAP_00_01, 255, 5, 8 + special DoCableClubWarp + waitstate + end + +EventScript_1BB79C:: @ 81BB79C + specialvar VAR_RESULT, CalculatePlayerPartyCount + compare_var_to_value VAR_RESULT, 2 + goto_if lt, EventScript_1BB7C2 + specialvar VAR_RESULT, GetNameOfEnigmaBerryInPlayerParty + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1BB7D0 + setvar VAR_RESULT, 1 + return + +EventScript_1BB7C2:: @ 81BB7C2 + msgbox gUnknown_81BC442 + setvar VAR_RESULT, 0 + return + +EventScript_1BB7D0:: @ 81BB7D0 + msgbox gUnknown_81BC47C + setvar VAR_RESULT, 0 + return + +EventScript_1BB7DE:: @ 81BB7DE + end + +EventScript_1BB7DF:: @ 81BB7DF + special CloseLink + special HelpSystem_Enable + msgbox gUnknown_81BC95C + release + end + +EventScript_1BB7EF:: @ 81BB7EF + special CloseLink + special HelpSystem_Enable + msgbox gUnknown_81BC9C0 + release + end + +EventScript_1BB7FF:: @ 81BB7FF + special CloseLink + special HelpSystem_Enable + msgbox gUnknown_81BC615 + release + end + +EventScript_1BB80F:: @ 81BB80F + special CloseLink + special HelpSystem_Enable + msgbox gUnknown_81BC5C0 + release + end + +EventScript_1BB81F:: @ 81BB81F + special CloseLink + special HelpSystem_Enable + msgbox gUnknown_81BC64E + release + end + +EventScript_1BB82F:: @ 81BB82F + special CloseLink + special HelpSystem_Enable + msgbox gUnknown_81BC68A + release + end + +EventScript_1BB83F:: @ 81BB83F + special CloseLink + special HelpSystem_Enable + msgbox gUnknown_81BCFD1 + release + end + +EventScript_1BB84F:: @ 81BB84F + special SetCableClubWarp + special DoCableClubWarp + waitstate + end + +EventScript_1BB857:: @ 81BB857 + special CloseLink + special HelpSystem_Enable + msgbox gUnknown_81BC6A1 + release + end + +EventScript_1BB867:: @ 81BB867 + special CloseLink + special HelpSystem_Enable + msgbox gUnknown_81BC9E0 + release + end + +EventScript_1BB877:: @ 81BB877 + msgbox Text_1A561A + release + end + +EventScript_1BB881:: @ 81BB881 + msgbox Text_1A5667 + releaseall + end + +Movement_1BB88B:: @ 81BB88B + step_00 + step_end + +Movement_1BB88D:: @ 81BB88D + step_03 + step_end + +Movement_1BB88F:: @ 81BB88F + step_02 + step_end + +Movement_1BB891:: @ 81BB891 + step_10 + step_10 + step_end + +Movement_1BB894:: @ 81BB894 + step_13 + step_11 + step_11 + step_end + +Movement_1BB898:: @ 81BB898 + step_12 + step_11 + step_11 + step_end + +Movement_1BB89C:: @ 81BB89C + step_11 + step_end + +Movement_1BB89E:: @ 81BB89E + step_02 + step_end + +Movement_1BB8A0:: @ 81BB8A0 + step_03 + step_end + +Movement_1BB8A2:: @ 81BB8A2 + step_12 + step_11 + step_11 + step_11 + step_end + +gUnknown_81BB8A7:: @ 81BB8A7 + special sub_8110AB4 + compare_var_to_value VAR_RESULT, 2 + goto_if eq, EventScript_1A7AE0 + lockall + fadescreen 1 + setvar VAR_0x8004, 0 + special Special_BattleRecords + waitstate + releaseall + end + +gUnknown_81BB8C3:: @ 81BB8C3 +UnknownMap_00_00_EventScript_1BB8C3:: @ 81BB8C3 + setvar VAR_0x8005, 0 + textcolor 3 + special sub_80819C8 + waitstate + end + +gUnknown_81BB8CF:: @ 81BB8CF +UnknownMap_00_00_EventScript_1BB8CF:: @ 81BB8CF + setvar VAR_0x8005, 1 + textcolor 3 + special sub_80819C8 + waitstate + end + +gUnknown_81BB8DB:: @ 81BB8DB +UnknownMap_00_03_EventScript_1BB8DB:: @ 81BB8DB + fadescreen 1 + special sub_80A0334 + waitstate + compare_var_to_value VAR_RESULT, 0 + goto_if eq, EventScript_1BB94F + setvar VAR_0x8005, 0 + textcolor 3 + special sub_80819C8 + waitstate + end + +gUnknown_81BB8F8:: @ 81BB8F8 +UnknownMap_00_03_EventScript_1BB8F8:: @ 81BB8F8 + fadescreen 1 + special sub_80A0334 + waitstate + compare_var_to_value VAR_RESULT, 0 + goto_if eq, EventScript_1BB94F + setvar VAR_0x8005, 1 + textcolor 3 + special sub_80819C8 + waitstate + end + +gUnknown_81BB915:: @ 81BB915 +UnknownMap_00_03_EventScript_1BB915:: @ 81BB915 + fadescreen 1 + special sub_80A0334 + waitstate + compare_var_to_value VAR_RESULT, 0 + goto_if eq, EventScript_1BB94F + setvar VAR_0x8005, 2 + textcolor 3 + special sub_80819C8 + waitstate + end + +gUnknown_81BB932:: @ 81BB932 +UnknownMap_00_03_EventScript_1BB932:: @ 81BB932 + fadescreen 1 + special sub_80A0334 + waitstate + compare_var_to_value VAR_RESULT, 0 + goto_if eq, EventScript_1BB94F + setvar VAR_0x8005, 3 + textcolor 3 + special sub_80819C8 + waitstate + end + +EventScript_1BB94F:: @ 81BB94F + end + +gUnknown_81BB950:: @ 81BB950 +UnknownMap_00_01_EventScript_1BB950:: @ 81BB950 + setvar VAR_0x8005, 0 + textcolor 3 + special sub_8081978 + waitstate + end + +gUnknown_81BB95C:: @ 81BB95C +UnknownMap_00_01_EventScript_1BB95C:: @ 81BB95C + setvar VAR_0x8005, 1 + textcolor 3 + special sub_8081978 + waitstate + end + +EventScript_1BB968:: @ 81BB968 + setvar VAR_0x8005, 2 + textcolor 3 + special sub_8081978 + waitstate + end + +EventScript_1BB974:: @ 81BB974 + setvar VAR_0x8005, 3 + textcolor 3 + special sub_8081978 + waitstate + end + +gUnknown_81BB980:: @ 81BB980 +UnknownMap_00_02_EventScript_1BB980:: @ 81BB980 + end + +gUnknown_81BB981:: @ 81BB981 + textcolor 3 + msgbox gUnknown_81BC84B + fadescreen 1 + special sp02A_crash_sound + waitstate + end + +gUnknown_81BB992:: @ 81BB992 + textcolor 3 + msgbox gUnknown_81BC874 + fadescreen 1 + special sp02A_crash_sound + waitstate + end + +gUnknown_81BB9A3:: @ 81BB9A3 + textcolor 3 + msgbox gUnknown_81BC827 + closemessage + end + +UnknownMap_00_00_EventScript_1BB9AF:: @ 81BB9AF + textcolor 3 + special sub_8069740 + msgbox gUnknown_81BC8AD + special sub_8069768 + closemessage + end + +UnknownMap_00_01_EventScript_1BB9C1:: @ 81BB9C1 + textcolor 3 + special sub_8069740 + msgbox gUnknown_81BC8DA + special sub_8069768 + closemessage + end + +UnknownMap_00_02_EventScript_1BB9D3:: @ 81BB9D3 + end + +gUnknown_81BB9D4:: @ 81BB9D4 + textcolor 3 + msgbox gUnknown_81BC7A1, 5 + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1BB9F0 + erasebox 0, 0, 29, 19 + releaseall + end + +EventScript_1BB9F0:: @ 81BB9F0 + textcolor 3 + messageautoscroll Text_1BC7E2 + waitmessage + special sub_8081770 + end + +gUnknown_81BB9FC:: @ 81BB9FC + special sub_8081744 + special sub_807E704 + waitstate + end + +EventScript_1BBA04:: @ 81BBA04 + special sub_8110AB4 + compare_var_to_value VAR_RESULT, 2 + goto_if eq, EventScript_1A7AE0 + special sub_8112364 + lock + faceplayer + checkflag FLAG_SYS_POKEDEX_GET + goto_if FALSE, EventScript_1BB877 + specialvar VAR_RESULT, Special_BadEggInParty + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1BB867 + copyvar VAR_0x8007, VAR_LAST_TALKED + specialvar VAR_RESULT, IsWirelessAdapterConnected + compare_var_to_value VAR_RESULT, 0 + goto_if eq, EventScript_1BBB60 + message Text_1BD65B + waitmessage + goto EventScript_1BBA51 + +EventScript_1BBA50:: @ 81BBA50 + end + +EventScript_1BBA51:: @ 81BBA51 + multichoice 18, 6, MULTICHOICE_YES_NO_INFO, FALSE + switch VAR_RESULT + case 0, EventScript_1BBA94 + case 1, EventScript_1BB82F + case 2, EventScript_1BBA88 + case SCR_MENU_CANCEL, EventScript_1BB82F + end + +EventScript_1BBA88:: @ 81BBA88 + message Text_1BD706 + waitmessage + goto EventScript_1BBA51 + +EventScript_1BBA93:: @ 81BBA93 + end + +EventScript_1BBA94:: @ 81BBA94 + call EventScript_1BBB1E + compare_var_to_value VAR_RESULT, 0 + goto_if eq, EventScript_1BB82F + call EventScript_1A4EAF + compare_var_to_value VAR_RESULT, 0 + goto_if eq, EventScript_1BB82F + msgbox gUnknown_81BD86A + closemessage + special sp000_heal_pokemon + setvar VAR_0x8004, 6 + copyvar VAR_0x406F, VAR_0x8004 + special HelpSystem_Disable + call EventScript_1BC020 + special DrawWholeMapView + playse SE_TK_KASYA + delay 60 + applymovement VAR_LAST_TALKED, Movement_1BB88F + waitmovement 0 + applymovement 255, Movement_1BB898 + waitmovement 0 + opendoor 5, 1 + waitdooranim + applymovement 255, Movement_1BB89C + waitmovement 0 + hideobject 255, MAP_UNKNOWN_MAP_00_00 + closedoor 5, 1 + waitdooranim + special sub_811B15C + special SetCableClubWarp + warpteleport2 MAP_UNKNOWN_MAP_00_04, 255, 7, 11 + waitstate + special UnionRoomSpecial + waitstate + end + +EventScript_1BBB1E:: @ 81BBB1E + specialvar VAR_RESULT, CountPartyNonEggMons + compare_var_to_value VAR_RESULT, 2 + goto_if lt, EventScript_1BBB44 + specialvar VAR_RESULT, GetNameOfEnigmaBerryInPlayerParty + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1BBB52 + setvar VAR_RESULT, 1 + return + +EventScript_1BBB44:: @ 81BBB44 + msgbox gUnknown_81BCBC3 + goto EventScript_1A77B0 + +EventScript_1BBB51:: @ 81BBB51 + end + +EventScript_1BBB52:: @ 81BBB52 + msgbox gUnknown_81BCC00 + goto EventScript_1A77B0 + +EventScript_1BBB5F:: @ 81BBB5F + end + +EventScript_1BBB60:: @ 81BBB60 + msgbox gUnknown_81BCC3A + release + return + +EventScript_1BBB6A:: @ 81BBB6A + lock + faceplayer + checkflag FLAG_SYS_POKEDEX_GET + goto_if FALSE, EventScript_1BB877 + msgbox gUnknown_81BDB85, 5 + compare_var_to_value VAR_RESULT, 0 + goto_if eq, EventScript_1BBB92 + msgbox gUnknown_81BDBF8 + release + return + +EventScript_1BBB92:: @ 81BBB92 + msgbox gUnknown_81BDEDF + release + return + +EventScript_1BBB9C:: @ 81BBB9C + special sub_8110AB4 + compare_var_to_value VAR_RESULT, 2 + goto_if eq, EventScript_1A7AE0 + special sub_8112364 + lock + faceplayer + checkflag FLAG_SYS_POKEDEX_GET + goto_if FALSE, EventScript_1BB877 + specialvar VAR_RESULT, Special_BadEggInParty + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1BB867 + specialvar VAR_RESULT, IsWirelessAdapterConnected + compare_var_to_value VAR_RESULT, 0 + goto_if eq, EventScript_1BB44A + message Text_1BD28D + waitmessage + delay 15 + goto EventScript_1BBBE7 + +EventScript_1BBBE6:: @ 81BBBE6 + end + +EventScript_1BBBE7:: @ 81BBBE7 + checkflag FLAG_GOT_POWDER_JAR + goto_if FALSE, EventScript_1BBC32 + multichoice 0, 0, MULTICHOICE_TRADE_COLOSSEUM_CRUSH, FALSE + switch VAR_RESULT + case 0, EventScript_1BBC69 + case 1, EventScript_1BBC97 + case 2, EventScript_1BBD35 + case 3, EventScript_1BB82F + case SCR_MENU_CANCEL, EventScript_1BB82F + end + +EventScript_1BBC32:: @ 81BBC32 + multichoice 0, 0, MULTICHOICE_TRADE_COLOSSEUM_2, FALSE + switch VAR_RESULT + case 0, EventScript_1BBC69 + case 1, EventScript_1BBC97 + case 2, EventScript_1BB82F + case SCR_MENU_CANCEL, EventScript_1BB82F + end + +EventScript_1BBC69:: @ 81BBC69 + msgbox gUnknown_81BD317, 5 + compare_var_to_value VAR_RESULT, 0 + goto_if eq, EventScript_1BB82F + call EventScript_1BB79C + compare_var_to_value VAR_RESULT, 0 + goto_if eq, EventScript_1BB82F + setvar VAR_0x8004, 3 + goto EventScript_1BBD6F + +EventScript_1BBC96:: @ 81BBC96 + end + +EventScript_1BBC97:: @ 81BBC97 + message Text_1BD338 + waitmessage + multichoice 0, 0, MULTICHOICE_SINGLE_DOUBLE_MULTI_INFO_EXIT, FALSE + switch VAR_RESULT + case 0, EventScript_1BBCEA + case 1, EventScript_1BBCF5 + case 2, EventScript_1BBD1C + case 3, EventScript_1BBD27 + case 4, EventScript_1BB82F + case SCR_MENU_CANCEL, EventScript_1BB82F + end + +EventScript_1BBCEA:: @ 81BBCEA + setvar VAR_0x8004, 0 + goto EventScript_1BBD6F + +EventScript_1BBCF4:: @ 81BBCF4 + end + +EventScript_1BBCF5:: @ 81BBCF5 + special CheckForAlivePartyMons + compare_var_to_value VAR_RESULT, 0 + goto_if ne, EventScript_1BBD0E + setvar VAR_0x8004, 1 + goto EventScript_1BBD6F + +EventScript_1BBD0D:: @ 81BBD0D + end + +EventScript_1BBD0E:: @ 81BBD0E + msgbox gUnknown_81BC409 + goto EventScript_1BBC97 + +EventScript_1BBD1B:: @ 81BBD1B + end + +EventScript_1BBD1C:: @ 81BBD1C + setvar VAR_0x8004, 2 + goto EventScript_1BBD6F + +EventScript_1BBD26:: @ 81BBD26 + end + +EventScript_1BBD27:: @ 81BBD27 + msgbox gUnknown_81BD390 + goto EventScript_1BBC97 + +EventScript_1BBD34:: @ 81BBD34 + end + +EventScript_1BBD35:: @ 81BBD35 + msgbox gUnknown_81BD362, 5 + compare_var_to_value VAR_RESULT, 0 + goto_if eq, EventScript_1BB82F + special CheckHasAtLeastOneBerry + compare_var_to_value VAR_RESULT, 0 + goto_if eq, EventScript_1BBD61 + setvar VAR_0x8004, 5 + goto EventScript_1BBD6F + +EventScript_1BBD60:: @ 81BBD60 + end + +EventScript_1BBD61:: @ 81BBD61 + msgbox gUnknown_81BCB81 + goto EventScript_1BBBE7 + +EventScript_1BBD6E:: @ 81BBD6E + end + +EventScript_1BBD6F:: @ 81BBD6F + call EventScript_1A4EAF + compare_var_to_value VAR_RESULT, 0 + goto_if eq, EventScript_1BB82F + switch VAR_0x8004 + case 3, EventScript_1BBDBC + case 0, EventScript_1BBDBC + case 1, EventScript_1BBDBC + case 2, EventScript_1BBE50 + case 5, EventScript_1BBEE4 + end + +EventScript_1BBDBC:: @ 81BBDBC + textcolor 3 + message Text_1BD51B + waitmessage + call EventScript_1A6675 + multichoice 13, 6, MULTICHOICE_JOIN_OR_LEAD, FALSE + switch VAR_RESULT + case 0, EventScript_1BBE28 + case 1, EventScript_1BBE00 + case 2, EventScript_1BB82F + case SCR_MENU_CANCEL, EventScript_1BB82F + end + +EventScript_1BBE00:: @ 81BBE00 + call EventScript_1BBF78 + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1BBF88 + compare_var_to_value VAR_RESULT, 5 + goto_if eq, EventScript_1BBDBC + compare_var_to_value VAR_RESULT, 8 + goto_if eq, EventScript_1BBE00 + release + return + +EventScript_1BBE28:: @ 81BBE28 + call EventScript_1BBF80 + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1BBF88 + compare_var_to_value VAR_RESULT, 5 + goto_if eq, EventScript_1BBDBC + compare_var_to_value VAR_RESULT, 8 + goto_if eq, EventScript_1BBE28 + release + return + +EventScript_1BBE50:: @ 81BBE50 + textcolor 3 + message Text_1BD582 + waitmessage + call EventScript_1A6675 + multichoice 13, 6, MULTICHOICE_JOIN_OR_LEAD, FALSE + switch VAR_RESULT + case 0, EventScript_1BBEBC + case 1, EventScript_1BBE94 + case 2, EventScript_1BB82F + case SCR_MENU_CANCEL, EventScript_1BB82F + end + +EventScript_1BBE94:: @ 81BBE94 + call EventScript_1BBF78 + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1BBF88 + compare_var_to_value VAR_RESULT, 5 + goto_if eq, EventScript_1BBE50 + compare_var_to_value VAR_RESULT, 8 + goto_if eq, EventScript_1BBE94 + release + return + +EventScript_1BBEBC:: @ 81BBEBC + call EventScript_1BBF80 + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1BBF88 + compare_var_to_value VAR_RESULT, 5 + goto_if eq, EventScript_1BBE50 + compare_var_to_value VAR_RESULT, 8 + goto_if eq, EventScript_1BBEBC + release + return + +EventScript_1BBEE4:: @ 81BBEE4 + textcolor 3 + message Text_1BD5F1 + waitmessage + call EventScript_1A6675 + multichoice 13, 6, MULTICHOICE_JOIN_OR_LEAD, FALSE + switch VAR_RESULT + case 0, EventScript_1BBF50 + case 1, EventScript_1BBF28 + case 2, EventScript_1BB82F + case SCR_MENU_CANCEL, EventScript_1BB82F + end + +EventScript_1BBF28:: @ 81BBF28 + call EventScript_1BBF78 + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1BBF88 + compare_var_to_value VAR_RESULT, 5 + goto_if eq, EventScript_1BBEE4 + compare_var_to_value VAR_RESULT, 8 + goto_if eq, EventScript_1BBF28 + release + return + +EventScript_1BBF50:: @ 81BBF50 + call EventScript_1BBF80 + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1BBF88 + compare_var_to_value VAR_RESULT, 5 + goto_if eq, EventScript_1BBEE4 + compare_var_to_value VAR_RESULT, 8 + goto_if eq, EventScript_1BBF50 + release + return + +EventScript_1BBF78:: @ 81BBF78 + special HelpSystem_Disable + special sub_8115A24 + waitstate + return + +EventScript_1BBF80:: @ 81BBF80 + special HelpSystem_Disable + special BerryBlenderLinkJoinGroup + waitstate + return + +EventScript_1BBF88:: @ 81BBF88 + messageautoscroll Text_1BC59E + waitmessage + delay 60 + closemessage + copyvar VAR_0x8007, VAR_LAST_TALKED + call EventScript_1BC034 + special DrawWholeMapView + playse SE_TK_KASYA + delay 60 + applymovement VAR_LAST_TALKED, Movement_1BB88F + waitmovement 0 + closemessage + applymovement 255, Movement_1BB898 + waitmovement 0 + opendoor 9, 1 + waitdooranim + applymovement 255, Movement_1BB89C + waitmovement 0 + hideobject 255, MAP_UNKNOWN_MAP_00_00 + closedoor 9, 1 + waitdooranim + release + waitstate + end + +gUnknown_81BBFD8:: @ 81BBFD8 + special sub_8110AB4 + compare_var_to_value VAR_RESULT, 2 + goto_if eq, EventScript_1A7AE0 + lockall + checkflag FLAG_SYS_POKEDEX_GET + goto_if FALSE, EventScript_1BB881 + specialvar VAR_RESULT, IsWirelessAdapterConnected + compare_var_to_value VAR_RESULT, 0 + goto_if eq, EventScript_1BC016 + special HelpSystem_Disable + fadescreen 1 + special sub_814F1D4 + waitstate + msgbox gUnknown_81BCA43 + special HelpSystem_Enable + releaseall + end + +EventScript_1BC016:: @ 81BC016 + msgbox gUnknown_81BCA13 + releaseall + end + +EventScript_1BC020:: @ 81BC020 + setmetatile 5, 3, 709, 0 + return + +EventScript_1BC02A:: @ 81BC02A + setmetatile 5, 3, 761, 1 + return + +EventScript_1BC034:: @ 81BC034 + setmetatile 9, 3, 709, 0 + return + +EventScript_1BC03E:: @ 81BC03E + setmetatile 9, 3, 761, 1 + return + +EventScript_1BC048:: @ 81BC048 + setmetatile 5, 3, 737, 0 + return + +EventScript_1BC052:: @ 81BC052 + setmetatile 5, 3, 759, 1 + return + +CeladonCity_PokemonCenter_1F_MapScript2_1BC05C:: @ 81BC05C +CeruleanCity_PokemonCenter_1F_MapScript2_1BC05C:: @ 81BC05C +CinnabarIsland_PokemonCenter_1F_MapScript2_1BC05C:: @ 81BC05C +FiveIsland_PokemonCenter_1F_MapScript2_1BC05C:: @ 81BC05C +FourIsland_PokemonCenter_1F_MapScript2_1BC05C:: @ 81BC05C +FuchsiaCity_PokemonCenter_1F_MapScript2_1BC05C:: @ 81BC05C +IndigoPlateau_PokemonCenter_1F_MapScript2_1BC05C:: @ 81BC05C +LavenderTown_PokemonCenter_1F_MapScript2_1BC05C:: @ 81BC05C +OneIsland_PokemonCenter_1F_MapScript2_1BC05C:: @ 81BC05C +PewterCity_PokemonCenter_1F_MapScript2_1BC05C:: @ 81BC05C +Route10_PokemonCenter_1F_MapScript2_1BC05C:: @ 81BC05C +Route4_PokemonCenter_1F_MapScript2_1BC05C:: @ 81BC05C +SaffronCity_PokemonCenter_1F_MapScript2_1BC05C:: @ 81BC05C +SevenIsland_PokemonCenter_1F_MapScript2_1BC05C:: @ 81BC05C +SixIsland_PokemonCenter_1F_MapScript2_1BC05C:: @ 81BC05C +ThreeIsland_PokemonCenter_1F_MapScript2_1BC05C:: @ 81BC05C +TwoIsland_PokemonCenter_1F_MapScript2_1BC05C:: @ 81BC05C +VermilionCity_PokemonCenter_1F_MapScript2_1BC05C:: @ 81BC05C +ViridianCity_PokemonCenter_1F_MapScript2_1BC05C:: @ 81BC05C + special sub_811999C + end + +EventScript_1BC060:: @ 81BC060 + special sub_8110AB4 + compare_var_to_value VAR_RESULT, 2 + goto_if eq, EventScript_1A7AE0 + special sub_8112364 + lock + faceplayer + message Text_1BCCFF + waitmessage + multichoice 0, 0, MULTICHOICE_POKEJUMP_DODRIO, FALSE + switch VAR_RESULT + case 0, EventScript_1BC0B0 + case 1, EventScript_1BC0BA + case 2, EventScript_1BC0C4 + case SCR_MENU_CANCEL, EventScript_1BC0C4 + end + +EventScript_1BC0B0:: @ 81BC0B0 + msgbox gUnknown_81BCD4D + release + end + +EventScript_1BC0BA:: @ 81BC0BA + msgbox gUnknown_81BCE73 + release + end + +EventScript_1BC0C4:: @ 81BC0C4 + msgbox gUnknown_81BCF2E + release + end + +EventScript_1BC0CE:: @ 81BC0CE + special sub_8110AB4 + compare_var_to_value VAR_RESULT, 2 + goto_if eq, EventScript_1A7AE0 + special sub_8112364 + lock + faceplayer + message Text_1BCF69 + waitmessage + specialvar VAR_RESULT, IsWirelessAdapterConnected + compare_var_to_value VAR_RESULT, 0 + goto_if eq, EventScript_1BC29C + delay 60 + special HelpSystem_Disable + message Text_1BD02D + waitmessage + multichoice 0, 0, MULTICHOICE_POKEJUMP_DODRIO, FALSE + switch VAR_RESULT + case 0, EventScript_1BC13A + case 1, EventScript_1BC184 + case 2, EventScript_1BB83F + case SCR_MENU_CANCEL, EventScript_1BB83F + end + +EventScript_1BC13A:: @ 81BC13A + setvar VAR_0x8005, 0 + special sub_8149A18 + compare_var_to_value VAR_RESULT, 0 + goto_if eq, EventScript_1BC2A6 + msgbox gUnknown_81BD059 + setvar VAR_0x8005, 0 + special sub_8127888 + waitstate + compare_var_to_value VAR_0x8004, 6 + goto_if ge, EventScript_1BB83F + call EventScript_1A4EAF + compare_var_to_value VAR_RESULT, 0 + goto_if eq, EventScript_1BB83F + setvar VAR_0x8004, 4 + goto EventScript_1BC1CE + +EventScript_1BC183:: @ 81BC183 + end + +EventScript_1BC184:: @ 81BC184 + setvar VAR_0x8005, 1 + special sub_81537C0 + compare_var_to_value VAR_RESULT, 0 + goto_if eq, EventScript_1BC2A6 + msgbox gUnknown_81BD059 + setvar VAR_0x8005, 1 + special sub_8127888 + waitstate + compare_var_to_value VAR_0x8004, 6 + goto_if ge, EventScript_1BB83F + call EventScript_1A4EAF + compare_var_to_value VAR_RESULT, 0 + goto_if eq, EventScript_1BB83F + setvar VAR_0x8004, 6 + goto EventScript_1BC1CE + +EventScript_1BC1CD:: @ 81BC1CD + end + +EventScript_1BC1CE:: @ 81BC1CE + textcolor 3 + message Text_1BD5F1 + waitmessage + call EventScript_1A6675 + multichoice 13, 6, MULTICHOICE_JOIN_OR_LEAD, FALSE + switch VAR_RESULT + case 0, EventScript_1BC23A + case 1, EventScript_1BC212 + case 2, EventScript_1BB83F + case SCR_MENU_CANCEL, EventScript_1BB83F + end + +EventScript_1BC212:: @ 81BC212 + call EventScript_1BBF78 + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1BC262 + compare_var_to_value VAR_RESULT, 5 + goto_if eq, EventScript_1BC1CE + compare_var_to_value VAR_RESULT, 8 + goto_if eq, EventScript_1BC212 + release + return + +EventScript_1BC23A:: @ 81BC23A + call EventScript_1BBF80 + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1BC262 + compare_var_to_value VAR_RESULT, 5 + goto_if eq, EventScript_1BC1CE + compare_var_to_value VAR_RESULT, 8 + goto_if eq, EventScript_1BC23A + release + return + +EventScript_1BC262:: @ 81BC262 + messageautoscroll Text_1BD080 + waitmessage + delay 120 + closemessage + copyvar VAR_0x8007, VAR_LAST_TALKED + call EventScript_1BC048 + special DrawWholeMapView + playse SE_TK_KASYA + delay 60 + applymovement VAR_LAST_TALKED, Movement_1BB88F + waitmovement 0 + closemessage + applymovement 255, Movement_1BB8A2 + waitmovement 0 + hideobject 255, MAP_UNKNOWN_MAP_00_00 + release + waitstate + end + +EventScript_1BC29C:: @ 81BC29C + msgbox gUnknown_81BCFE8 + release + end + +EventScript_1BC2A6:: @ 81BC2A6 + msgbox gUnknown_81BD0CF, 5 + compare_var_to_value VAR_RESULT, 0 + goto_if eq, EventScript_1BB83F + compare_var_to_value VAR_0x8005, 0 + call_if eq, EventScript_1BC2D5 + compare_var_to_value VAR_0x8005, 1 + call_if eq, EventScript_1BC2DE + goto EventScript_1BB83F + +EventScript_1BC2D4:: @ 81BC2D4 + end + +EventScript_1BC2D5:: @ 81BC2D5 + msgbox gUnknown_81BD14B + return + +EventScript_1BC2DE:: @ 81BC2DE + msgbox gUnknown_81BD213 + return + +TwoIsland_JoyfulGameCorner_EventScript_1BC2E7:: @ 81BC2E7 + special sub_8110AB4 + compare_var_to_value VAR_RESULT, 2 + goto_if eq, EventScript_1A7AE0 + lockall + special sub_814B504 + waitstate + releaseall + end + +TwoIsland_JoyfulGameCorner_EventScript_1BC2FC:: @ 81BC2FC + special sub_8110AB4 + compare_var_to_value VAR_RESULT, 2 + goto_if eq, EventScript_1A7AE0 + lockall + special sub_8153810 + waitstate + releaseall + end + +gUnknown_81BC311:: @ 81BC311 + .string "Welcome to the POKéMON CABLE\n" + .string "CLUB.\p" + .string "Which of our services do you wish\n" + .string "to use?$" + +gUnknown_81BC35E:: @ 81BC35E + .string "Which of our services do you wish\n" + .string "to use?$" + +Text_1BC388:: @ 81BC388 + .string "Trade POKéMON with another player\n" + .string "using a GBA Game Link cable.$" + +Text_1BC3C7:: @ 81BC3C7 + .string "You may battle another TRAINER\n" + .string "using a GBA Game Link cable.$" + +Text_1BC403:: @ 81BC403 + .string "ãŠã‚りã¾ã™$" + +gUnknown_81BC409:: @ 81BC409 + .string "For a DOUBLE BATTLE, you must\n" + .string "have at least two POKéMON.$" + +gUnknown_81BC442:: @ 81BC442 + .string "For trading, you must have at\n" + .string "least two POKéMON with you.$" + +gUnknown_81BC47C:: @ 81BC47C + .string "A POKéMON holding the {STR_VAR_1}\n" + .string "BERRY can't be traded.$" + +gUnknown_81BC4AC:: @ 81BC4AC + .string "Please wait.\n" + .string "… … B Button: Cancel$" + +gUnknown_81BC4CE:: @ 81BC4CE + .string "When all players are ready…\n" + .string "A Button: Confirm\l" + .string "B Button: Cancel$" + +gUnknown_81BC50D:: @ 81BC50D + .string "Start link with {STR_VAR_1} players.\n" + .string "A Button: Confirm\l" + .string "B Button: Cancel$" + +gUnknown_81BC54C:: @ 81BC54C + .string "Awaiting linkup…\n" + .string "… … B Button: Cancel$" + +Text_1BC572:: @ 81BC572 + .string "ã¯ã˜ã‚る ã¾ãˆã«ã€€ãƒ¬ãƒãƒ¼ãƒˆã‚’\n" + .string "ã‹ãã¾ã™ãŒã€€ã‚ˆã‚ã—ã„ã§ã™ã‹ï¼Ÿ$" + +Text_1BC590:: @ 81BC590 + .string "Please enter.$" + +Text_1BC59E:: @ 81BC59E + .string "I'll direct you to your room now.$" + +gUnknown_81BC5C0:: @ 81BC5C0 + .string "Someone is not ready to link.\p" + .string "Please come back after everyone\n" + .string "has made preparations.$" + +gUnknown_81BC615:: @ 81BC615 + .string "Sorry, we have a link error…\n" + .string "Please reset and try again.$" + +gUnknown_81BC64E:: @ 81BC64E + .string "The link partners appear to have\n" + .string "made different selections.$" + +gUnknown_81BC68A:: @ 81BC68A + .string "Please do visit again.$" + +gUnknown_81BC6A1:: @ 81BC6A1 + .string "The number of participants is\n" + .string "incorrect.$" + +gUnknown_81BC6CA:: @ 81BC6CA + .string "The SINGLE BATTLE Mode can't be\n" + .string "played by {STR_VAR_1} players.$" + +gUnknown_81BC700:: @ 81BC700 + .string "The DOUBLE BATTLE Mode can't be\n" + .string "played by {STR_VAR_1} players.$" + +gUnknown_81BC736:: @ 81BC736 + .string "There must be four players to play\n" + .string "this Battle Mode.$" + +gUnknown_81BC76B:: @ 81BC76B + .string "Please confirm the number of\n" + .string "players and start again.$" + +gUnknown_81BC7A1:: @ 81BC7A1 + .string "The link will be terminated if you\n" + .string "leave the room. Is that okay?$" + +Text_1BC7E2:: @ 81BC7E2 + .string "Terminating link…\n" + .string "You will be escorted out of\l" + .string "the room. Please wait.$" + +gUnknown_81BC827:: @ 81BC827 + .string "This TRAINER is too busy to\n" + .string "notice…$" + +gUnknown_81BC84B:: @ 81BC84B + .string "Score! Got to look at {STR_VAR_1}'s\n" + .string "TRAINER CARD!$" + +gUnknown_81BC874:: @ 81BC874 + .string "Score! Got to look at {STR_VAR_1}'s\n" + .string "TRAINER CARD!\p" + .string "It's a {STR_VAR_2} card!$" + +gUnknown_81BC8AD:: @ 81BC8AD + .string "Please take your seat and start\n" + .string "your battle.$" + +gUnknown_81BC8DA:: @ 81BC8DA + .string "Please take your seat and start\n" + .string "your trade.$" + +Text_1BC906:: @ 81BC906 + .string "ã”りよã†ã€€ã‚りãŒã¨ã†ã€€ã”ã–ã„ã¾ã—ãŸ$" + +Text_1BC918:: @ 81BC918 + .string "The TRAINER CARD data will\n" + .string "be overwritten.$" + +Text_1BC943:: @ 81BC943 + .string "I hope to see you again!$" + +gUnknown_81BC95C:: @ 81BC95C + .string "I'm awfully sorry.\p" + .string "We're not set up to conduct trades\n" + .string "with TRAINERS far away in another\l" + .string "region yet…$" + +gUnknown_81BC9C0:: @ 81BC9C0 + .string "The other TRAINER is not ready.$" + +gUnknown_81BC9E0:: @ 81BC9E0 + .string "You have at least one POKéMON\n" + .string "that can't be taken.$" + +gUnknown_81BCA13:: @ 81BCA13 + .string "The Wireless Adapter is not\n" + .string "connected properly.$" + +gUnknown_81BCA43:: @ 81BCA43 + .string "Participants are asked to step up\n" + .string "to the reception counter.$" + +Text_1BCA7F:: @ 81BCA7F + .string "ã“ã‚“ã«ã¡ã¯ï¼$" + +Text_1BCA86:: @ 81BCA86 + .string "ã—ょã†ã—ょã†ã€€ãŠã¾ã¡ãã ã•ã„$" + +Text_1BCA95:: @ 81BCA95 + .string "You may trade your POKéMON here\n" + .string "with another TRAINER.$" + +Text_1BCACB:: @ 81BCACB + .string "You may battle with your friends\n" + .string "here.$" + +Text_1BCAF2:: @ 81BCAF2 + .string "Two to five TRAINERS can make\n" + .string "BERRY POWDER together.$" + +Text_1BCB27:: @ 81BCB27 + .string "ワイヤレス クラブã§ã®\n" + .string "ã‚ãã³ã‹ãŸã‚’ ã›ã¤ã‚ã„ã—ã¾ã™$" + +Text_1BCB42:: @ 81BCB42 + .string "Cancels the selected MENU item.$" + +Text_1BCB62:: @ 81BCB62 + .string "ã©ã¡ã‚‰ã®ã€€ã—ょã†ã¶ã«ã€€ã—ã¾ã™ã‹ï¼Ÿ$" + +Text_1BCB73:: @ 81BCB73 + .string "ã²ã¨ã¤ã€€ã¾ãˆã«ã€€ã‚‚ã©ã‚Šã¾ã™$" + +gUnknown_81BCB81:: @ 81BCB81 + .string "To use the BERRY CRUSH service,\n" + .string "you must have at least one BERRY.$" + +gUnknown_81BCBC3:: @ 81BCBC3 + .string "To enter the UNION ROOM, you must\n" + .string "have at least two POKéMON.$" + +gUnknown_81BCC00:: @ 81BCC00 + .string "No POKéMON holding the {STR_VAR_1}\n" + .string "BERRY may enter the UNION ROOM.$" + +gUnknown_81BCC3A:: @ 81BCC3A + .string "This is the POKéMON WIRELESS CLUB\n" + .string "UNION ROOM.\p" + .string "Unfortunately, your Wireless\n" + .string "Adapter is not connected properly.\p" + .string "Please do come again.$" + +Text_1BCCBE:: @ 81BCCBE + .string "ã‚‥‥\n" + .string "ãŠãゃãã•ã¾ï¼$" + +Text_1BCCCA:: @ 81BCCCA + .string "It appears as if {STR_VAR_1} is playing\n" + .string "right now.\l" + .string "Go for it!$" + +Text_1BCCFF:: @ 81BCCFF + .string "I can explain game rules to you,\n" + .string "if you'd like.\p" + .string "Which game should I describe?$" + +gUnknown_81BCD4D:: @ 81BCD4D + .string "“POKéMON JUMPâ€\p" + .string "Make your POKéMON skip the\n" + .string "VINE WHIP rope with the A Button.\p" + .string "Only mini POKéMON around 28 inches\n" + .string "or less may participate.\p" + .string "POKéMON that only swim, burrow, or\n" + .string "fly are not good at jumping.\p" + .string "As a result, those POKéMON may not\n" + .string "participate.\p" + .string "Good things happen if everyone\n" + .string "jumps in time.$" + +gUnknown_81BCE73:: @ 81BCE73 + .string "“DODRIO BERRY-PICKINGâ€\p" + .string "Command DODRIO's three heads to\n" + .string "catch falling BERRIES.\p" + .string "Press right, up, or left on the\n" + .string "{EXTRA_PLUS} Control Pad to move the heads.\p" + .string "To play this game, you must have\n" + .string "a DODRIO.$" + +gUnknown_81BCF2E:: @ 81BCF2E + .string "If you want to play a game,\n" + .string "please tell the man beside me.$" + +Text_1BCF69:: @ 81BCF69 + .string "Hi, welcome!\n" + .string "You can play games over the\l" + .string "Wireless Communication System.\p" + .string "Can you wait just a little bit?$" + +gUnknown_81BCFD1:: @ 81BCFD1 + .string "All right, come again!$" + +gUnknown_81BCFE8:: @ 81BCFE8 + .string "The Wireless Adapter isn't\n" + .string "connected.\p" + .string "Come back when it's hooked up!$" + +Text_1BD02D:: @ 81BD02D + .string "All right, which game did you want\n" + .string "to play?$" + +gUnknown_81BD059:: @ 81BD059 + .string "Which POKéMON would you like to\n" + .string "enter?$" + +Text_1BD080:: @ 81BD080 + .string "Okay, you're all good to go.\n" + .string "Don't let the others beat you!$" + +Text_1BD0BC:: @ 81BD0BC + .string "ãょã†ã¯ã€€ã‘ãˆã‚‹ã®ã‹ï¼Ÿ\n" + .string "ã¾ãŸã“ã„よï¼$" + +gUnknown_81BD0CF:: @ 81BD0CF + .string "It doesn't look like you have any\n" + .string "POKéMON that you can enter…\p" + .string "Would you like me to explain what\n" + .string "kinds of POKéMON can enter?$" + +gUnknown_81BD14B:: @ 81BD14B + .string "“POKéMON JUMP†is open to POKéMON\n" + .string "around 28 inches or less.\p" + .string "What you can't enter are those\n" + .string "POKéMON that can't jump.\p" + .string "You know, like POKéMON that only\n" + .string "swim, burrow, or fly.\p" + .string "That's all you need to know.$" + +gUnknown_81BD213:: @ 81BD213 + .string "“DODRIO BERRY-PICKINGâ€â€¦\n" + .string "Well, the name says it all.\p" + .string "You have to have a DODRIO to play\n" + .string "this game.$" + +Text_1BD274:: @ 81BD274 + .string "ã‚‚ã†ã„ã¡ã©ã€€ã¯ã˜ã‚ã‹ã‚‰\n" + .string "やりãªãŠã—ã¦ã€€ã¿ã¦ã€€ãれ$" + +Text_1BD28D:: @ 81BD28D + .string "Welcome to the POKéMON WIRELESS\n" + .string "CLUB DIRECT CORNER.\p" + .string "You may interact directly with\n" + .string "your friends here.\p" + .string "Which room would you like to\n" + .string "enter?$" + +gUnknown_81BD317:: @ 81BD317 + .string "Would you like to trade POKéMON?$" + +Text_1BD338:: @ 81BD338 + .string "Which Battle Mode would you like\n" + .string "to play?$" + +gUnknown_81BD362:: @ 81BD362 + .string "Would you like to use the\n" + .string "BERRY CRUSH System?$" + +gUnknown_81BD390:: @ 81BD390 + .string "There are three Battle Modes.\p" + .string "SINGLE BATTLE is for two TRAINERS\n" + .string "with one or more POKéMON each.\p" + .string "Each TRAINER can have one POKéMON\n" + .string "in battle at a time.\p" + .string "DOUBLE BATTLE is for two TRAINERS\n" + .string "with two or more POKéMON each.\p" + .string "Each TRAINER will send out two\n" + .string "POKéMON in battle at a time.\p" + .string "MULTI BATTLE is for four TRAINERS\n" + .string "with one or more POKéMON each.\p" + .string "Each TRAINER can have one POKéMON\n" + .string "in battle at a time.$" + +Text_1BD51B:: @ 81BD51B + .string "Please decide which of you two\n" + .string "will become the LEADER.\p" + .string "The other player must then choose\n" + .string "“JOIN GROUP.â€$" + +Text_1BD582:: @ 81BD582 + .string "Please decide which of you four\n" + .string "will become the GROUP LEADER.\p" + .string "The other players must then choose\n" + .string "“JOIN GROUP.â€$" + +Text_1BD5F1:: @ 81BD5F1 + .string "Please decide which of you will\n" + .string "become the GROUP LEADER.\p" + .string "The other players must then choose\n" + .string "“JOIN GROUP.â€$" + +Text_1BD65B:: @ 81BD65B + .string "Welcome to the POKéMON WIRELESS\n" + .string "CLUB UNION ROOM.\p" + .string "You may interact directly with\n" + .string "other TRAINERS here, some of\l" + .string "whom you may not even know.\p" + .string "Would you like to enter the ROOM?$" + +Text_1BD706:: @ 81BD706 + .string "The TRAINERS in the UNION ROOM\n" + .string "will be those players around you\l" + .string "who have also entered the ROOM.\p" + .string "You may do all sorts of things\n" + .string "here, such as exchanging greetings.\p" + .string "You may enter two POKéMON up to\n" + .string "Lv. 30 for a one-on-one battle.\p" + .string "You may take part in a chat with\n" + .string "two to five people.\p" + .string "Or, you may register a POKéMON for\n" + .string "trade.\p" + .string "Would you like to enter the ROOM?$" + +gUnknown_81BD86A:: @ 81BD86A + .string "I hope you enjoy your time in\n" + .string "the UNION ROOM.$" + +gUnknown_81BD898:: @ 81BD898 + .string "Hello!\n" + .string "My name is TEALA.\p" + .string "This must be your first time\n" + .string "up here.\p" + .string "I'll show you how the Wireless\n" + .string "Communication System works.\p" + .string "First, I need to show you this\n" + .string "floor of our POKéMON CENTER.\p" + .string "Right this way, please.$" + +gUnknown_81BD966:: @ 81BD966 + .string "On the top floor, there are two\n" + .string "rooms.\p" + .string "First, the room on the left.\n" + .string "It's the UNION ROOM.\p" + .string "You may link up with TRAINERS\n" + .string "around you who have also entered\l" + .string "the UNION ROOM.\p" + .string "With them, you may do things like\n" + .string "chat, battle, and trade.\p" + .string "Second, the room on the right is\n" + .string "the DIRECT CORNER.\p" + .string "You may trade or battle POKéMON\n" + .string "with your friends in this room.\p" + .string "If the Wireless Adapter isn't\n" + .string "connected, you may still link up\l" + .string "using a GBA Game Link cable.\p" + .string "If that is the case, you must go\n" + .string "to the DIRECT CORNER.\p" + .string "I hope you enjoy the Wireless \n" + .string "Communication System.$" + +gUnknown_81BDB85:: @ 81BDB85 + .string "Hello, {PLAYER}!\p" + .string "It's me, TEALA, the POKéMON\n" + .string "CENTER 2F attendant.\p" + .string "Is there something you needed to\n" + .string "ask me about linking?$" + +gUnknown_81BDBF8:: @ 81BDBF8 + .string "Let me explain how the POKéMON\n" + .string "WIRELESS CLUB works.\p" + .string "On this, the top floor, there are\n" + .string "two rooms.\p" + .string "First, the room on the left.\n" + .string "It's the UNION ROOM.\p" + .string "You may link up with TRAINERS\n" + .string "around you who have also entered\l" + .string "the UNION ROOM.\p" + .string "With them, you may do things like\n" + .string "chat, battle, and trade.\p" + .string "Second, the room on the right is\n" + .string "the DIRECT CORNER.\p" + .string "You may trade or battle POKéMON\n" + .string "with your friends in this room.\p" + .string "Sometimes, you may not be able to\n" + .string "find your friends in the UNION ROOM\l" + .string "or the DIRECT CORNER.\p" + .string "In that case, please move closer\n" + .string "to your friends.\p" + .string "If the Wireless Adapter isn't\n" + .string "connected, you may still link up\l" + .string "using a GBA Game Link cable.\p" + .string "If that is the case, you must go\n" + .string "to the DIRECT CORNER.\p" + .string "I hope you enjoy the Wireless \n" + .string "Communication System.$" + +gUnknown_81BDEDF:: @ 81BDEDF + .string "I hope you enjoy the Wireless\n" + .string "Communication System.$" + +EventScript_InteractWithCutTreeObject:: @ 81BDF13 + special sub_8110AB4 + compare_var_to_value VAR_RESULT, 2 + goto_if eq, EventScript_1A7AE0 + lockall + checkflag FLAG_BADGE02_GET + goto_if FALSE, EventScript_1BDF87 + checkpartymove MOVE_CUT + compare_var_to_value VAR_RESULT, 6 + goto_if eq, EventScript_1BDF87 + setfieldeffectarg 0, VAR_RESULT + getpartymonname 0, VAR_RESULT + getmovename 1, MOVE_CUT + msgbox gUnknown_81BDF94, 5 + compare_var_to_value VAR_RESULT, 0 + goto_if eq, EventScript_1BDF91 + msgbox gUnknown_81BDFD7 + closemessage + dofieldeffect FLDEFF_USE_CUT_ON_TREE + waitstate + goto EventScript_1BDF76 + end + +gUnknown_81BDF6B:: @ 81BDF6B + lockall + dofieldeffect FLDEFF_USE_CUT_ON_TREE + waitstate + goto EventScript_1BDF76 + end + +EventScript_1BDF76:: @ 81BDF76 + applymovement VAR_LAST_TALKED, Movement_1BDF85 + waitmovement 0 + removeobject VAR_LAST_TALKED + releaseall + end + +Movement_1BDF85:: @ 81BDF85 + step_69 + step_end + +EventScript_1BDF87:: @ 81BDF87 + msgbox gUnknown_81BDFE3, 3 + releaseall + end + +EventScript_1BDF91:: @ 81BDF91 + closemessage + releaseall + end + +gUnknown_81BDF94:: @ 81BDF94 + .string "This tree looks like it can be CUT\n" + .string "down!\p" + .string "Would you like to CUT it?$" + +gUnknown_81BDFD7:: @ 81BDFD7 + .string "{STR_VAR_1} used {STR_VAR_2}!$" + +gUnknown_81BDFE3:: @ 81BDFE3 + .string "This tree looks like it can be CUT\n" + .string "down!$" + +EventScript_InteractWithRockSmashRockObject:: @ 81BE00C + special sub_8110AB4 + compare_var_to_value VAR_RESULT, 2 + goto_if eq, EventScript_1A7AE0 + lockall + checkflag FLAG_BADGE06_GET + goto_if FALSE, EventScript_1BE091 + checkpartymove MOVE_ROCK_SMASH + compare_var_to_value VAR_RESULT, 6 + goto_if eq, EventScript_1BE091 + setfieldeffectarg 0, VAR_RESULT + getpartymonname 0, VAR_RESULT + getmovename 1, MOVE_ROCK_SMASH + msgbox Text_1BE09D, 5 + compare_var_to_value VAR_RESULT, 0 + goto_if eq, EventScript_1BE09A + msgbox gUnknown_81BDFD7 + closemessage + dofieldeffect FLDEFF_USE_ROCK_SMASH + waitstate + goto EventScript_1BE06F + end + +EventScript_FldEffRockSmash:: @ 81BE064 + lockall + dofieldeffect FLDEFF_USE_ROCK_SMASH + waitstate + goto EventScript_1BE06F + end + +EventScript_1BE06F:: @ 81BE06F + applymovement VAR_LAST_TALKED, Movement_1BE08F + waitmovement 0 + removeobject VAR_LAST_TALKED + special Special_RockSmashEncounter + compare_var_to_value VAR_RESULT, 0 + goto_if eq, EventScript_1BE08D + waitstate + releaseall + end + +EventScript_1BE08D:: @ 81BE08D + releaseall + end + +Movement_1BE08F:: @ 81BE08F + step_68 + step_end + +EventScript_1BE091:: @ 81BE091 + msgbox gUnknown_81BE0E2, 3 + end + +EventScript_1BE09A:: @ 81BE09A + closemessage + releaseall + end + +Text_1BE09D:: @ 81BE09D + .string "This rock appears to be breakable.\n" + .string "Would you like to use ROCK SMASH?$" + +gUnknown_81BE0E2:: @ 81BE0E2 + .string "It's a rugged rock, but a POKéMON\n" + .string "may be able to smash it.$" + +EventScript_InteractWithStrengthBoulderObject:: @ 81BE11D + special sub_8110AB4 + compare_var_to_value VAR_RESULT, 2 + goto_if eq, EventScript_1A7AE0 + lockall + checkflag FLAG_BADGE04_GET + goto_if FALSE, EventScript_1BE185 + checkflag FLAG_SYS_STRENGTH_ACTIVE + goto_if TRUE, EventScript_1BE18E + checkpartymove MOVE_STRENGTH + compare_var_to_value VAR_RESULT, 6 + goto_if eq, EventScript_1BE185 + setfieldeffectarg 0, VAR_RESULT + msgbox gUnknown_81BE19A, 5 + compare_var_to_value VAR_RESULT, 0 + goto_if eq, EventScript_1BE197 + closemessage + dofieldeffect FLDEFF_USE_STRENGTH + waitstate + goto EventScript_1BE179 + end + +EventScript_FldEffStrength:: @ 81BE16E + lockall + dofieldeffect FLDEFF_USE_STRENGTH + waitstate + goto EventScript_1BE179 + end + +EventScript_1BE179:: @ 81BE179 + setflag FLAG_SYS_STRENGTH_ACTIVE + msgbox gUnknown_81BE1FA, 3 + end + +EventScript_1BE185:: @ 81BE185 + msgbox gUnknown_81BE244, 3 + end + +EventScript_1BE18E:: @ 81BE18E + msgbox gUnknown_81BE284, 3 + end + +EventScript_1BE197:: @ 81BE197 + closemessage + releaseall + end + +gUnknown_81BE19A:: @ 81BE19A + .string "It's a big boulder, but a POKéMON\n" + .string "may be able to push it aside.\p" + .string "Would you like to use STRENGTH?$" + +gUnknown_81BE1FA:: @ 81BE1FA + .string "{STR_VAR_1} used STRENGTH!\p" + .string "{STR_VAR_1}'s STRENGTH made it\n" + .string "possible to move boulders around!$" + +gUnknown_81BE244:: @ 81BE244 + .string "It's a big boulder, but a POKéMON\n" + .string "may be able to push it aside.$" + +gUnknown_81BE284:: @ 81BE284 + .string "STRENGTH made it possible to move\n" + .string "boulders around.$" + +gUnknown_81BE2B7:: @ 81BE2B7 + special sub_8110AB4 + compare_var_to_value VAR_RESULT, 2 + goto_if eq, EventScript_1A7AE0 + lockall + checkpartymove MOVE_WATERFALL + compare_var_to_value VAR_RESULT, 6 + goto_if eq, EventScript_1BE300 + getpartymonname 0, VAR_RESULT + setfieldeffectarg 0, VAR_RESULT + msgbox gUnknown_81BE33F, 5 + compare_var_to_value VAR_RESULT, 0 + goto_if eq, EventScript_1BE308 + msgbox gUnknown_81BE378 + dofieldeffect FLDEFF_USE_WATERFALL + goto EventScript_1BE308 + +EventScript_81BE2FF:: @ 81BE2FF + lockall +EventScript_1BE300: + msgbox gUnknown_81BE30A +EventScript_1BE308: + releaseall + end + +gUnknown_81BE30A:: @ 81BE30A + .string "A wall of water is crashing down\n" + .string "with a mighty roar.$" + +gUnknown_81BE33F:: @ 81BE33F + .string "It's a large waterfall.\n" + .string "Would you like to use WATERFALL?$" + +gUnknown_81BE378:: @ 81BE378 + .string "{STR_VAR_1} used WATERFALL.$" + +@ Unused leftover from R/S +EventScript_1BE38B:: @ 81BE38B + lockall + checkpartymove MOVE_DIVE + compare_var_to_value VAR_RESULT, 6 + goto_if eq, EventScript_1BE3CA + getpartymonname 0, VAR_RESULT + setfieldeffectarg 0, VAR_RESULT + setfieldeffectarg 1, 1 + msgbox gUnknown_81BE469, 5 + compare_var_to_value VAR_RESULT, 0 + goto_if eq, EventScript_1BE3D2 + msgbox gUnknown_81BE49B + dofieldeffect FLDEFF_USE_DIVE + goto EventScript_1BE3D2 + +EventScript_1BE3C9:: @ 81BE3C9 + lockall +EventScript_1BE3CA: + msgbox Text_1BE42B +EventScript_1BE3D2: + releaseall + end + +EventScript_1BE3D4:: @ 81BE3D4 + lockall + checkpartymove MOVE_DIVE + compare_var_to_value VAR_RESULT, 6 + goto_if eq, EventScript_1BE412 + getpartymonname 0, VAR_RESULT + setfieldeffectarg 0, VAR_RESULT + setfieldeffectarg 1, 1 + msgbox gUnknown_81BE4EF, 5 + compare_var_to_value VAR_RESULT, 0 + goto_if eq, EventScript_1BE429 + msgbox gUnknown_81BE49B + dofieldeffect FLDEFF_USE_DIVE + goto EventScript_1BE429 + +EventScript_1BE412:: @ 81BE412 + lockall + msgbox gUnknown_81BE4A9 + goto EventScript_1BE429 + +EventScript_1BE420:: @ 81BE420 + lockall + msgbox gUnknown_81BE52F +EventScript_1BE429: + releaseall + end + +Text_1BE42B:: @ 81BE42B + .string "The sea is deep here. A POKéMON\n" + .string "may be able to go underwater.$" + +gUnknown_81BE469:: @ 81BE469 + .string "The sea is deep here.\n" + .string "Would you like to use DIVE?$" + +gUnknown_81BE49B:: @ 81BE49B + .string "{STR_VAR_1} used DIVE.$" + +gUnknown_81BE4A9:: @ 81BE4A9 + .string "Light is filtering down from above.\n" + .string "A POKéMON may be able to surface.$" + +gUnknown_81BE4EF:: @ 81BE4EF + .string "Light is filtering down from above.\n" + .string "Would you like to use DIVE?$" + +gUnknown_81BE52F:: @ 81BE52F + .string "There is an obstacle above.\n" + .string "DIVE can't be used here.$" + +EventScript_FailSweetScent:: @ 81BE564 + msgbox Text_1BE56D, 3 + end + +Text_1BE56D:: @ 81BE56D + .string "Looks like there's nothing here…$" + +Route2_EventScript_1BE58E:: @ 81BE58E + giveitem ITEM_ETHER, 1, 1 + end + +Route2_EventScript_1BE59B:: @ 81BE59B + giveitem ITEM_PARALYZE_HEAL, 1, 1 + end + +ViridianForest_EventScript_1BE5A8:: @ 81BE5A8 + giveitem ITEM_POKE_BALL, 1, 1 + end + +ViridianForest_EventScript_1BE5B5:: @ 81BE5B5 + giveitem ITEM_ANTIDOTE, 1, 1 + end + +ViridianForest_EventScript_1BE5C2:: @ 81BE5C2 + giveitem ITEM_POTION, 1, 1 + end + +MtMoon_1F_EventScript_1BE5CF:: @ 81BE5CF + giveitem ITEM_PARALYZE_HEAL, 1, 1 + end + +MtMoon_1F_EventScript_1BE5DC:: @ 81BE5DC + giveitem ITEM_TM09, 1, 1 + end + +MtMoon_1F_EventScript_1BE5E9:: @ 81BE5E9 + giveitem ITEM_POTION, 1, 1 + end + +MtMoon_1F_EventScript_1BE5F6:: @ 81BE5F6 + giveitem ITEM_RARE_CANDY, 1, 1 + end + +MtMoon_1F_EventScript_1BE603:: @ 81BE603 + giveitem ITEM_ESCAPE_ROPE, 1, 1 + end + +MtMoon_1F_EventScript_1BE610:: @ 81BE610 + giveitem ITEM_MOON_STONE, 1, 1 + end + +MtMoon_B2F_EventScript_1BE61D:: @ 81BE61D + giveitem ITEM_STAR_PIECE, 1, 1 + end + +MtMoon_B2F_EventScript_1BE62A:: @ 81BE62A + giveitem ITEM_TM46, 1, 1 + end + +Route4_EventScript_1BE637:: @ 81BE637 + giveitem ITEM_TM05, 1, 1 + end + +Route24_EventScript_1BE644:: @ 81BE644 + giveitem ITEM_TM45, 1, 1 + end + +Route25_EventScript_1BE651:: @ 81BE651 + giveitem ITEM_TM43, 1, 1 + end + +SSAnne_1F_Room2_EventScript_1BE65E:: @ 81BE65E + giveitem ITEM_TM31, 1, 1 + end + +SSAnne_2F_Room2_EventScript_1BE66B:: @ 81BE66B + giveitem ITEM_STARDUST, 1, 1 + end + +SSAnne_2F_Room4_EventScript_1BE678:: @ 81BE678 + giveitem ITEM_X_ATTACK, 1, 1 + end + +SSAnne_B1F_Room2_EventScript_1BE685:: @ 81BE685 + giveitem ITEM_TM44, 1, 1 + end + +SSAnne_B1F_Room3_EventScript_1BE692:: @ 81BE692 + giveitem ITEM_ETHER, 1, 1 + end + +SSAnne_B1F_Room5_EventScript_1BE69F:: @ 81BE69F + giveitem ITEM_SUPER_POTION, 1, 1 + end + +SSAnne_Kitchen_EventScript_1BE6AC:: @ 81BE6AC + giveitem ITEM_GREAT_BALL, 1, 1 + end + +Route9_EventScript_1BE6B9:: @ 81BE6B9 + giveitem ITEM_TM40, 1, 1 + end + +RocketHideout_B1F_EventScript_1BE6C6:: @ 81BE6C6 + giveitem ITEM_ESCAPE_ROPE, 1, 1 + end + +RocketHideout_B1F_EventScript_1BE6D3:: @ 81BE6D3 + giveitem ITEM_HYPER_POTION, 1, 1 + end + +RocketHideout_B2F_EventScript_1BE6E0:: @ 81BE6E0 + giveitem ITEM_X_SPEED, 1, 1 + end + +RocketHideout_B2F_EventScript_1BE6ED:: @ 81BE6ED + giveitem ITEM_MOON_STONE, 1, 1 + end + +RocketHideout_B2F_EventScript_1BE6FA:: @ 81BE6FA + giveitem ITEM_TM12, 1, 1 + end + +RocketHideout_B2F_EventScript_1BE707:: @ 81BE707 + giveitem ITEM_SUPER_POTION, 1, 1 + end + +RocketHideout_B3F_EventScript_1BE714:: @ 81BE714 + giveitem ITEM_RARE_CANDY, 1, 1 + end + +RocketHideout_B3F_EventScript_1BE721:: @ 81BE721 + giveitem ITEM_TM21, 1, 1 + end + +RocketHideout_B4F_EventScript_1BE72E:: @ 81BE72E + giveitem ITEM_TM49, 1, 1 + end + +RocketHideout_B4F_EventScript_1BE73B:: @ 81BE73B + giveitem ITEM_MAX_ETHER, 1, 1 + end + +RocketHideout_B4F_EventScript_1BE748:: @ 81BE748 + giveitem ITEM_CALCIUM, 1, 1 + end + +PokemonTower_3F_EventScript_1BE755:: @ 81BE755 + giveitem ITEM_ESCAPE_ROPE, 1, 1 + end + +PokemonTower_4F_EventScript_1BE762:: @ 81BE762 + giveitem ITEM_ELIXIR, 1, 1 + end + +PokemonTower_4F_EventScript_1BE76F:: @ 81BE76F + giveitem ITEM_AWAKENING, 1, 1 + end + +PokemonTower_4F_EventScript_1BE77C:: @ 81BE77C + giveitem ITEM_GREAT_BALL, 1, 1 + end + +PokemonTower_5F_EventScript_1BE789:: @ 81BE789 + giveitem ITEM_NUGGET, 1, 1 + end + +PokemonTower_6F_EventScript_1BE796:: @ 81BE796 + giveitem ITEM_RARE_CANDY, 1, 1 + end + +PokemonTower_6F_EventScript_1BE7A3:: @ 81BE7A3 + giveitem ITEM_X_ACCURACY, 1, 1 + end + +Route12_EventScript_1BE7B0:: @ 81BE7B0 + giveitem ITEM_TM48, 1, 1 + end + +Route12_EventScript_1BE7BD:: @ 81BE7BD + giveitem ITEM_IRON, 1, 1 + end + +Route15_EventScript_1BE7CA:: @ 81BE7CA + giveitem ITEM_TM18, 1, 1 + end + +SafariZone_Center_EventScript_1BE7D7:: @ 81BE7D7 + giveitem ITEM_NUGGET, 1, 1 + end + +SafariZone_East_EventScript_1BE7E4:: @ 81BE7E4 + giveitem ITEM_MAX_POTION, 1, 1 + end + +SafariZone_East_EventScript_1BE7F1:: @ 81BE7F1 + giveitem ITEM_FULL_RESTORE, 1, 1 + end + +SafariZone_East_EventScript_1BE7FE:: @ 81BE7FE + giveitem ITEM_TM11, 1, 1 + end + +SafariZone_East_EventScript_1BE80B:: @ 81BE80B + giveitem ITEM_LEAF_STONE, 1, 1 + end + +SafariZone_North_EventScript_1BE818:: @ 81BE818 + giveitem ITEM_PROTEIN, 1, 1 + end + +SafariZone_North_EventScript_1BE825:: @ 81BE825 + giveitem ITEM_TM47, 1, 1 + end + +SafariZone_West_EventScript_1BE832:: @ 81BE832 + giveitem ITEM_TM32, 1, 1 + end + +SafariZone_West_EventScript_1BE83F:: @ 81BE83F + giveitem ITEM_GOLD_TEETH, 1, 1 + end + +SafariZone_West_EventScript_1BE84C:: @ 81BE84C + giveitem ITEM_MAX_POTION, 1, 1 + end + +SafariZone_West_EventScript_1BE859:: @ 81BE859 + giveitem ITEM_MAX_REVIVE, 1, 1 + end + +SilphCo_3F_EventScript_1BE866:: @ 81BE866 + giveitem ITEM_HYPER_POTION, 1, 1 + end + +SilphCo_4F_EventScript_1BE873:: @ 81BE873 + giveitem ITEM_MAX_REVIVE, 1, 1 + end + +SilphCo_4F_EventScript_1BE880:: @ 81BE880 + giveitem ITEM_ESCAPE_ROPE, 1, 1 + end + +SilphCo_4F_EventScript_1BE88D:: @ 81BE88D + giveitem ITEM_FULL_HEAL, 1, 1 + end + +SilphCo_5F_EventScript_1BE89A:: @ 81BE89A + giveitem ITEM_PROTEIN, 1, 1 + end + +SilphCo_5F_EventScript_1BE8A7:: @ 81BE8A7 + giveitem ITEM_TM01, 1, 1 + end + +SilphCo_5F_EventScript_1BE8B4:: @ 81BE8B4 + giveitem ITEM_CARD_KEY, 1, 1 + end + +SilphCo_6F_EventScript_1BE8C1:: @ 81BE8C1 + giveitem ITEM_HP_UP, 1, 1 + end + +SilphCo_6F_EventScript_1BE8CE:: @ 81BE8CE + giveitem ITEM_X_SPECIAL, 1, 1 + end + +SilphCo_7F_EventScript_1BE8DB:: @ 81BE8DB + giveitem ITEM_CALCIUM, 1, 1 + end + +SilphCo_7F_EventScript_1BE8E8:: @ 81BE8E8 + giveitem ITEM_TM08, 1, 1 + end + +SilphCo_10F_EventScript_1BE8F5:: @ 81BE8F5 + giveitem ITEM_CARBOS, 1, 1 + end + +SilphCo_10F_EventScript_1BE902:: @ 81BE902 + giveitem ITEM_ULTRA_BALL, 1, 1 + end + +SilphCo_10F_EventScript_1BE90F:: @ 81BE90F + giveitem ITEM_RARE_CANDY, 1, 1 + end + +PowerPlant_EventScript_1BE91C:: @ 81BE91C + giveitem ITEM_MAX_POTION, 1, 1 + end + +PowerPlant_EventScript_1BE929:: @ 81BE929 + giveitem ITEM_TM17, 1, 1 + end + +PowerPlant_EventScript_1BE936:: @ 81BE936 + giveitem ITEM_TM25, 1, 1 + end + +PowerPlant_EventScript_1BE943:: @ 81BE943 + giveitem ITEM_THUNDER_STONE, 1, 1 + end + +PowerPlant_EventScript_1BE950:: @ 81BE950 + giveitem ITEM_ELIXIR, 1, 1 + end + +PokemonMansion_1F_EventScript_1BE95D:: @ 81BE95D + giveitem ITEM_CARBOS, 1, 1 + end + +PokemonMansion_1F_EventScript_1BE96A:: @ 81BE96A + giveitem ITEM_ESCAPE_ROPE, 1, 1 + end + +PokemonMansion_2F_EventScript_1BE977:: @ 81BE977 + giveitem ITEM_CALCIUM, 1, 1 + end + +PokemonMansion_3F_EventScript_1BE984:: @ 81BE984 + giveitem ITEM_MAX_POTION, 1, 1 + end + +PokemonMansion_3F_EventScript_1BE991:: @ 81BE991 + giveitem ITEM_IRON, 1, 1 + end + +PokemonMansion_B1F_EventScript_1BE99E:: @ 81BE99E + giveitem ITEM_TM14, 1, 1 + end + +PokemonMansion_B1F_EventScript_1BE9AB:: @ 81BE9AB + giveitem ITEM_FULL_RESTORE, 1, 1 + end + +PokemonMansion_B1F_EventScript_1BE9B8:: @ 81BE9B8 + giveitem ITEM_TM22, 1, 1 + end + +PokemonMansion_B1F_EventScript_1BE9C5:: @ 81BE9C5 + giveitem ITEM_SECRET_KEY, 1, 1 + end + +VictoryRoad_1F_EventScript_1BE9D2:: @ 81BE9D2 + giveitem ITEM_RARE_CANDY, 1, 1 + end + +VictoryRoad_1F_EventScript_1BE9DF:: @ 81BE9DF + giveitem ITEM_TM02, 1, 1 + end + +VictoryRoad_2F_EventScript_1BE9EC:: @ 81BE9EC + giveitem ITEM_GUARD_SPEC, 1, 1 + end + +VictoryRoad_2F_EventScript_1BE9F9:: @ 81BE9F9 + giveitem ITEM_TM07, 1, 1 + end + +VictoryRoad_2F_EventScript_1BEA06:: @ 81BEA06 + giveitem ITEM_FULL_HEAL, 1, 1 + end + +VictoryRoad_2F_EventScript_1BEA13:: @ 81BEA13 + giveitem ITEM_TM37, 1, 1 + end + +VictoryRoad_3F_EventScript_1BEA20:: @ 81BEA20 + giveitem ITEM_MAX_REVIVE, 1, 1 + end + +VictoryRoad_3F_EventScript_1BEA2D:: @ 81BEA2D + giveitem ITEM_TM50, 1, 1 + end + +CeruleanCave_1F_EventScript_1BEA3A:: @ 81BEA3A + giveitem ITEM_MAX_ELIXIR, 1, 1 + end + +CeruleanCave_1F_EventScript_1BEA47:: @ 81BEA47 + giveitem ITEM_NUGGET, 1, 1 + end + +CeruleanCave_1F_EventScript_1BEA54:: @ 81BEA54 + giveitem ITEM_FULL_RESTORE, 1, 1 + end + +CeruleanCave_2F_EventScript_1BEA61:: @ 81BEA61 + giveitem ITEM_FULL_RESTORE, 1, 1 + end + +CeruleanCave_2F_EventScript_1BEA6E:: @ 81BEA6E + giveitem ITEM_PP_UP, 1, 1 + end + +CeruleanCave_2F_EventScript_1BEA7B:: @ 81BEA7B + giveitem ITEM_ULTRA_BALL, 1, 1 + end + +CeruleanCave_B1F_EventScript_1BEA88:: @ 81BEA88 + giveitem ITEM_MAX_REVIVE, 1, 1 + end + +CeruleanCave_B1F_EventScript_1BEA95:: @ 81BEA95 + giveitem ITEM_ULTRA_BALL, 1, 1 + end + +FuchsiaCity_Building1_EventScript_1BEAA2:: @ 81BEAA2 + giveitem ITEM_RARE_CANDY, 1, 1 + end + +TwoIsland_EventScript_1BEAAF:: @ 81BEAAF + giveitem ITEM_REVIVE, 1, 1 + end + +ThreeIsland_EventScript_1BEABC:: @ 81BEABC + giveitem ITEM_ZINC, 1, 1 + end + +ViridianForest_EventScript_1BEAC9:: @ 81BEAC9 + giveitem ITEM_POTION, 1, 1 + end + +MtMoon_B2F_EventScript_1BEAD6:: @ 81BEAD6 + giveitem ITEM_REVIVE, 1, 1 + end + +MtMoon_B2F_EventScript_1BEAE3:: @ 81BEAE3 + giveitem ITEM_ANTIDOTE, 1, 1 + end + +Route11_EventScript_1BEAF0:: @ 81BEAF0 + giveitem ITEM_X_DEFEND, 1, 1 + end + +Route9_EventScript_1BEAFD:: @ 81BEAFD + giveitem ITEM_BURN_HEAL, 1, 1 + end + +RockTunnel_1F_EventScript_1BEB0A:: @ 81BEB0A + giveitem ITEM_REPEL, 1, 1 + end + +RockTunnel_1F_EventScript_1BEB17:: @ 81BEB17 + giveitem ITEM_PEARL, 1, 1 + end + +RockTunnel_1F_EventScript_1BEB24:: @ 81BEB24 + giveitem ITEM_ESCAPE_ROPE, 1, 1 + end + +RockTunnel_B1F_EventScript_1BEB31:: @ 81BEB31 + giveitem ITEM_REVIVE, 1, 1 + end + +RockTunnel_B1F_EventScript_1BEB3E:: @ 81BEB3E + giveitem ITEM_MAX_ETHER, 1, 1 + end + +SilphCo_8F_EventScript_1BEB4B:: @ 81BEB4B + giveitem ITEM_IRON, 1, 1 + end + +SilphCo_11F_EventScript_1BEB58:: @ 81BEB58 + giveitem ITEM_ZINC, 1, 1 + end + +PokemonMansion_1F_EventScript_1BEB65:: @ 81BEB65 + giveitem ITEM_PROTEIN, 1, 1 + end + +PokemonMansion_2F_EventScript_1BEB72:: @ 81BEB72 + giveitem ITEM_ZINC, 1, 1 + end + +PokemonMansion_2F_EventScript_1BEB7F:: @ 81BEB7F + giveitem ITEM_HP_UP, 1, 1 + end + +ViridianCity_EventScript_1BEB8C:: @ 81BEB8C + giveitem ITEM_POTION, 1, 1 + end + +Route11_EventScript_1BEB99:: @ 81BEB99 + giveitem ITEM_GREAT_BALL, 1, 1 + end + +Route11_EventScript_1BEBA6:: @ 81BEBA6 + giveitem ITEM_AWAKENING, 1, 1 + end + +PokemonTower_5F_EventScript_1BEBB3:: @ 81BEBB3 + giveitem ITEM_CLEANSE_TAG, 1, 1 + end + +CeladonCity_EventScript_1BEBC0:: @ 81BEBC0 + giveitem ITEM_ETHER, 1, 1 + end + +RocketHideout_B3F_EventScript_1BEBCD:: @ 81BEBCD + giveitem ITEM_BLACK_GLASSES, 1, 1 + end + +SafariZone_North_EventScript_1BEBDA:: @ 81BEBDA + giveitem ITEM_QUICK_CLAW, 1, 1 + end + +SeafoamIslands_1F_EventScript_1BEBE7:: @ 81BEBE7 + giveitem ITEM_ICE_HEAL, 1, 1 + end + +SeafoamIslands_B1F_EventScript_1BEBF4:: @ 81BEBF4 + giveitem ITEM_WATER_STONE, 1, 1 + end + +SeafoamIslands_B1F_EventScript_1BEC01:: @ 81BEC01 + giveitem ITEM_REVIVE, 1, 1 + end + +SeafoamIslands_B2F_EventScript_1BEC0E:: @ 81BEC0E + giveitem ITEM_BIG_PEARL, 1, 1 + end + +SeafoamIslands_B4F_EventScript_1BEC1B:: @ 81BEC1B + giveitem ITEM_ULTRA_BALL, 1, 1 + end + +FourIsland_EventScript_1BEC28:: @ 81BEC28 + giveitem ITEM_STAR_PIECE, 1, 1 + end + +FourIsland_EventScript_1BEC35:: @ 81BEC35 + giveitem ITEM_STARDUST, 1, 1 + end + +OneIsland_KindleRoad_EventScript_1BEC42:: @ 81BEC42 + giveitem ITEM_ETHER, 1, 1 + end + +OneIsland_KindleRoad_EventScript_1BEC4F:: @ 81BEC4F + giveitem ITEM_MAX_REPEL, 1, 1 + end + +OneIsland_KindleRoad_EventScript_1BEC5C:: @ 81BEC5C + giveitem ITEM_CARBOS, 1, 1 + end + +FiveIsland_Meadow_EventScript_1BEC69:: @ 81BEC69 + giveitem ITEM_MAX_POTION, 1, 1 + end + +FiveIsland_Meadow_EventScript_1BEC76:: @ 81BEC76 + giveitem ITEM_PP_UP, 1, 1 + end + +FiveIsland_MemorialPillar_EventScript_1BEC83:: @ 81BEC83 + giveitem ITEM_METAL_COAT, 1, 1 + end + +SixIsland_OutcastIsland_EventScript_1BEC90:: @ 81BEC90 + giveitem ITEM_PP_UP, 1, 1 + end + +SixIsland_WaterPath_EventScript_1BEC9D:: @ 81BEC9D + giveitem ITEM_ELIXIR, 1, 1 + end + +SixIsland_WaterPath_EventScript_1BECAA:: @ 81BECAA + giveitem ITEM_DRAGON_SCALE, 1, 1 + end + +SixIsland_RuinValley_EventScript_1BECB7:: @ 81BECB7 + giveitem ITEM_FULL_RESTORE, 1, 1 + end + +SixIsland_RuinValley_EventScript_1BECC4:: @ 81BECC4 + giveitem ITEM_HP_UP, 1, 1 + end + +SixIsland_RuinValley_EventScript_1BECD1:: @ 81BECD1 + giveitem ITEM_SUN_STONE, 1, 1 + end + +SevenIsland_SevaultCanyon_EventScript_1BECDE:: @ 81BECDE + giveitem ITEM_KINGS_ROCK, 1, 1 + end + +SevenIsland_SevaultCanyon_EventScript_1BECEB:: @ 81BECEB + giveitem ITEM_MAX_ELIXIR, 1, 1 + end + +SevenIsland_SevaultCanyon_EventScript_1BECF8:: @ 81BECF8 + giveitem ITEM_NUGGET, 1, 1 + end + +ThreeIsland_BerryForest_EventScript_1BED05:: @ 81BED05 + giveitem ITEM_MAX_ETHER, 1, 1 + end + +ThreeIsland_BerryForest_EventScript_1BED12:: @ 81BED12 + giveitem ITEM_FULL_HEAL, 1, 1 + end + +ThreeIsland_BerryForest_EventScript_1BED1F:: @ 81BED1F + giveitem ITEM_MAX_ELIXIR, 1, 1 + end + +MtEmber_Exterior_EventScript_1BED2C:: @ 81BED2C + giveitem ITEM_ULTRA_BALL, 1, 1 + end + +MtEmber_Exterior_EventScript_1BED39:: @ 81BED39 + giveitem ITEM_FIRE_STONE, 1, 1 + end + +MtEmber_Exterior_EventScript_1BED46:: @ 81BED46 + giveitem ITEM_DIRE_HIT, 1, 1 + end + +FourIsland_IcefallCave_1F_EventScript_1BED53:: @ 81BED53 + giveitem ITEM_ULTRA_BALL, 1, 1 + end + +FourIsland_IcefallCave_1F_EventScript_1BED60:: @ 81BED60 + giveitem ITEM_HM07, 1, 1 + end + +FourIsland_IcefallCave_B1F_EventScript_1BED6D:: @ 81BED6D + giveitem ITEM_FULL_RESTORE, 1, 1 + end + +FourIsland_IcefallCave_B1F_EventScript_1BED7A:: @ 81BED7A + giveitem ITEM_NEVER_MELT_ICE, 1, 1 + end + +FiveIsland_RocketWarehouse_EventScript_1BED87:: @ 81BED87 + giveitem ITEM_BIG_PEARL, 1, 1 + end + +FiveIsland_RocketWarehouse_EventScript_1BED94:: @ 81BED94 + giveitem ITEM_TM36, 1, 1 + end + +FiveIsland_RocketWarehouse_EventScript_1BEDA1:: @ 81BEDA1 + giveitem ITEM_PEARL, 1, 1 + end + +FiveIsland_RocketWarehouse_EventScript_1BEDAE:: @ 81BEDAE + giveitem ITEM_UP_GRADE, 1, 1 + end + +FiveIsland_LostCave_Room10_EventScript_1BEDBB:: @ 81BEDBB + giveitem ITEM_SILK_SCARF, 1, 1 + end + +FiveIsland_LostCave_Room11_EventScript_1BEDC8:: @ 81BEDC8 + giveitem ITEM_LAX_INCENSE, 1, 1 + end + +FiveIsland_LostCave_Room12_EventScript_1BEDD5:: @ 81BEDD5 + giveitem ITEM_SEA_INCENSE, 1, 1 + end + +FiveIsland_LostCave_Room13_EventScript_1BEDE2:: @ 81BEDE2 + giveitem ITEM_MAX_REVIVE, 1, 1 + end + +FiveIsland_LostCave_Room14_EventScript_1BEDEF:: @ 81BEDEF + giveitem ITEM_RARE_CANDY, 1, 1 + end + +SevenIsland_SevaultCanyon_House_EventScript_1BEDFC:: @ 81BEDFC + giveitem ITEM_LUCKY_PUNCH, 1, 1 + end + +SilphCo_4F_EventScript_1BEE09:: @ 81BEE09 + giveitem ITEM_TM41, 1, 1 + end + +PewterCity_PokemonCenter_1F_EventScript_1BEE16:: @ 81BEE16 + lock + faceplayer + compare_var_to_value VAR_0x4001, 1 + goto_if eq, EventScript_1BEE3A + checkflag FLAG_SYS_SET_TRAINER_CARD_PROFILE + goto_if TRUE, EventScript_1BEECD + msgbox Text_1BEF88 + goto EventScript_1BEE44 + end + +EventScript_1BEE3A:: @ 81BEE3A + msgbox gUnknown_81BF36A + release + end + +EventScript_1BEE44:: @ 81BEE44 + message Text_1BF017 + waitmessage + multichoice 18, 6, MULTICHOICE_YES_NO_INFO_2, FALSE + switch VAR_RESULT + case 0, EventScript_1BEE8F + case 1, EventScript_1BEEC3 + case 2, EventScript_1BEE81 + case SCR_MENU_CANCEL, EventScript_1BEEC3 + end + +EventScript_1BEE81:: @ 81BEE81 + msgbox gUnknown_81BF053 + goto EventScript_1BEE44 + end + +EventScript_1BEE8F:: @ 81BEE8F + msgbox gUnknown_81BF166 + closemessage + goto EventScript_1BEF5A + end + +EventScript_1BEE9E:: @ 81BEE9E + msgbox gUnknown_81BF1B2 + release + end + +EventScript_1BEEA8:: @ 81BEEA8 + setvar VAR_0x4001, 1 + setvar VAR_0x8004, 0 + special sub_80BDA7C + waitmessage + delay 80 + msgbox gUnknown_81BF28E + release + end + +EventScript_1BEEC3:: @ 81BEEC3 + msgbox gUnknown_81BF17B + release + end + +EventScript_1BEECD:: @ 81BEECD + msgbox gUnknown_81BF1E8 + goto EventScript_1BEEDB + end + +EventScript_1BEEDB:: @ 81BEEDB + message Text_1BF1FB + waitmessage + multichoice 18, 6, MULTICHOICE_YES_NO_INFO_2, FALSE + switch VAR_RESULT + case 0, EventScript_1BEF26 + case 1, EventScript_1BEF35 + case 2, EventScript_1BEF18 + case SCR_MENU_CANCEL, EventScript_1BEF35 + end + +EventScript_1BEF18:: @ 81BEF18 + msgbox gUnknown_81BF053 + goto EventScript_1BEEDB + end + +EventScript_1BEF26:: @ 81BEF26 + msgbox gUnknown_81BF222 + closemessage + goto EventScript_1BEF5A + end + +EventScript_1BEF35:: @ 81BEF35 + msgbox gUnknown_81BF252 + release + end + +EventScript_1BEF3F:: @ 81BEF3F + setvar VAR_0x4001, 1 + setvar VAR_0x8004, 0 + special sub_80BDA7C + waitmessage + delay 80 + msgbox gUnknown_81BF30D + release + end + +EventScript_1BEF5A:: @ 81BEF5A + setvar VAR_0x8004, 0 + call EventScript_1A6AC0 + lock + faceplayer + compare_var_to_value VAR_0x8004, 0 + goto_if eq, EventScript_1BEF3F + compare_var_to_value VAR_RESULT, 0 + goto_if eq, EventScript_1BEE9E + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1BEEA8 + end + +Text_1BEF88:: @ 81BEF88 + .string "Hi, glad to meet you!\p" + .string "…That's unfriendly of you.\n" + .string "How about saying hi back?\p" + .string "So, come on, tell me about\n" + .string "yourself.\p" + .string "I'd love to hear your profile!$" + +Text_1BF017:: @ 81BF017 + .string "Tell me something good about\n" + .string "yourself. What's your profile?$" + +gUnknown_81BF053:: @ 81BF053 + .string "A profile is written using four\n" + .string "words or phrases.\p" + .string "There're plenty of words to choose\n" + .string "from for your profile.\p" + .string "The words and phrases are placed\n" + .string "in several convenient groups.\p" + .string "First, choose a group, then choose\n" + .string "a word or phrase.\p" + .string "…It's easier than it sounds.\n" + .string "Why don't you try it?$" + +gUnknown_81BF166:: @ 81BF166 + .string "What's your profile?$" + +gUnknown_81BF17B:: @ 81BF17B + .string "Aww… Don't be like that.\n" + .string "You can tell me your profile.$" + +gUnknown_81BF1B2:: @ 81BF1B2 + .string "Oh, you've decided not to?\n" + .string "You're fickle, aren't you?$" + +gUnknown_81BF1E8:: @ 81BF1E8 + .string "Hi!\n" + .string "We meet again!$" + +Text_1BF1FB:: @ 81BF1FB + .string "Would you like to change your\n" + .string "profile?$" + +gUnknown_81BF222:: @ 81BF222 + .string "What are you like now?\n" + .string "I'd really like to know.$" + +gUnknown_81BF252:: @ 81BF252 + .string "Okay, you like your profile the\n" + .string "way it is.\p" + .string "I think so, too.$" + +gUnknown_81BF28E:: @ 81BF28E + .string "Hmhm…\p" + .string "Your profile really says something\n" + .string "about who you are.\p" + .string "Now that I know you better, it \n" + .string "makes us better friends than ever!$" + +gUnknown_81BF30D:: @ 81BF30D + .string "Oh, I've heard that before…\p" + .string "My cousin, who lives far away,\n" + .string "always used to say that, I think.$" + +gUnknown_81BF36A:: @ 81BF36A + .string "Please tell me more about\n" + .string "yourself next time!$" + +Route5_PokemonDayCare_EventScript_1BF398:: @ 81BF398 + special sub_8110AB4 + compare_var_to_value VAR_RESULT, 2 + goto_if eq, EventScript_1A7AE0 + lock + faceplayer + showmoneybox 0, 0, 0 + specialvar VAR_RESULT, IsThereMonInRoute5Daycare + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1BF46E + msgbox Text_19DD66, 5 + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1BF3DD + msgbox Text_19DDB2 + goto EventScript_1BF541 + end + +EventScript_1BF3DD:: @ 81BF3DD + specialvar VAR_RESULT, CountPartyNonEggMons + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1BF452 + msgbox Text_19DDBE + fadescreen 1 + hidemoneybox + nop + nop + special ChooseSendDaycareMon + waitstate + showmoneybox 0, 0, 0 + compare_var_to_value VAR_0x8004, 6 + goto_if ge, EventScript_1BF444 + specialvar VAR_RESULT, CountPartyAliveNonEggMons_IgnoreVar0x8004Slot + compare_var_to_value VAR_RESULT, 0 + goto_if eq, EventScript_1BF460 + specialvar VAR_0x8005, GetSelectedMonNickAndSpecies + msgbox Text_19DDF9 + waitse + playmoncry VAR_0x8005, 0 + msgbox Text_19DE24 + waitmoncry + special PutMonInRoute5Daycare + incrementgamestat GAME_STAT_USED_DAYCARE + goto EventScript_1BF541 + end + +EventScript_1BF444:: @ 81BF444 + msgbox Text_19DDDC + goto EventScript_1BF541 + end + +EventScript_1BF452:: @ 81BF452 + msgbox Text_19DEF5 + goto EventScript_1BF541 + end + +EventScript_1BF460:: @ 81BF460 + msgbox Text_19DF1D + goto EventScript_1BF541 + end + +EventScript_1BF46E:: @ 81BF46E + setvar VAR_0x8004, 0 + specialvar VAR_RESULT, GetNumLevelsGainedForRoute5DaycareMon + compare_var_to_value VAR_RESULT, 0 + call_if ne, EventScript_1BF4AA + compare_var_to_value VAR_RESULT, 0 + call_if eq, EventScript_1BF4B3 + special GetCostToWithdrawRoute5DaycareMon + msgbox Text_19DE80, 5 + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1BF4BC + goto EventScript_1BF444 + end + +EventScript_1BF4AA:: @ 81BF4AA + msgbox Text_19DF56 + return + +EventScript_1BF4B3:: @ 81BF4B3 + msgbox Text_19DE3C + return + +EventScript_1BF4BC:: @ 81BF4BC + specialvar VAR_RESULT, CalculatePlayerPartyCount + compare_var_to_value VAR_RESULT, 6 + goto_if eq, EventScript_1BF533 + specialvar VAR_RESULT, IsEnoughForCostInVar0x8005 + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1BF4EA + msgbox Text_19E001 + goto EventScript_1BF541 + end + +EventScript_1BF4EA:: @ 81BF4EA + setvar VAR_0x8004, 0 + specialvar VAR_RESULT, TakePokemonFromRoute5Daycare + special SubtractMoneyFromVar0x8005 + updatemoneybox 0, 0, 0 + copyvar VAR_0x8008, VAR_RESULT + countpokemon + subvar VAR_RESULT, 1 + getpartymonname 0, VAR_RESULT + copyvar VAR_RESULT, VAR_0x8008 + msgbox Text_19DEAF + textcolor 3 + waitse + playmoncry VAR_RESULT, 0 + msgbox Text_19DECF + call EventScript_1A6675 + waitmoncry + goto EventScript_1BF541 + end + +EventScript_1BF533:: @ 81BF533 + msgbox Text_19DFC2 + goto EventScript_1BF541 + end + +EventScript_1BF541:: @ 81BF541 + hidemoneybox + nop + nop + release + end + +EventScript_81BF546:: @ 81BF546 + lockall + msgbox Text_1BFB5A + special EggHatch + waitstate + releaseall + end + +gUnknown_81BF555:: @ 81BF555 + .string "I'm the DAY-CARE MAN.\p" + .string "I help take care of the precious\n" + .string "POKéMON of TRAINERS.\p" + .string "If you'd like me to raise your\n" + .string "POKéMON, have a word with my wife.$" + +gUnknown_81BF5E3:: @ 81BF5E3 + .string "Ah, it's you!\p" + .string "We were raising your POKéMON, and\n" + .string "my goodness, were we surprised!\p" + .string "Your POKéMON had an EGG!\p" + .string "We don't know how it got there,\n" + .string "but your POKéMON had it.\p" + .string "You do want it, yes?$" + +gUnknown_81BF69A:: @ 81BF69A + .string "Ah, it's you! Good to see you.\n" + .string "Your {STR_VAR_1}'s doing fine.$" + +gUnknown_81BF6CF:: @ 81BF6CF + .string "Well then, I'll keep it.\n" + .string "Thanks!$" + +gUnknown_81BF6F0:: @ 81BF6F0 + .string "You have no room for it…\n" + .string "Come back when you've made room.$" + +Text_1BF72A:: @ 81BF72A + .string "{PLAYER} received the EGG from\n" + .string "the DAY-CARE MAN.$" + +gUnknown_81BF755:: @ 81BF755 + .string "Take good care of it.$" + +Text_1BF76B:: @ 81BF76B + .string "ãƒã‚±ãƒ¢ãƒ³ã‚’ ã²ãã¨ã‚ŠãŸã„ ã¨ãã¯\n" + .string "ã°ã•ã‚“ã«ã€€ã„ã£ã¦ã€€ãŠãれ$" + +gUnknown_81BF789:: @ 81BF789 + .string "Ah, it's you! Your {STR_VAR_1} and\n" + .string "{STR_VAR_2} are doing fine.$" + +gUnknown_81BF7B6:: @ 81BF7B6 + .string "I really will keep it.\n" + .string "You do want this, yes?$" + +gUnknown_81BF7E4:: @ 81BF7E4 + .string "I'm the DAY-CARE LADY.\p" + .string "We can raise POKéMON for you.\p" + .string "Would you like us to raise one?$" + +gUnknown_81BF839:: @ 81BF839 + .string "Which POKéMON should we raise for\n" + .string "you?$" + +gUnknown_81BF860:: @ 81BF860 + .string "Fine, we'll raise your {STR_VAR_1}\n" + .string "for a while.\p" + .string "Come back for it later.$" + +gUnknown_81BF89F:: @ 81BF89F + .string "We can raise two of your POKéMON.\p" + .string "Would you like us to raise one\n" + .string "more POKéMON for you?$" + +gUnknown_81BF8F6:: @ 81BF8F6 + .string "My husband was looking for you.$" + +gUnknown_81BF916:: @ 81BF916 + .string "Oh, fine, then.\n" + .string "Come again.$" + +gUnknown_81BF932:: @ 81BF932 + .string "You don't have enough money…$" + +gUnknown_81BF94F:: @ 81BF94F + .string "Will you take back the other one,\n" + .string "too?$" + +gUnknown_81BF976:: @ 81BF976 + .string "Fine.\n" + .string "Come again.$" + +gUnknown_81BF988:: @ 81BF988 + .string "Ah, it's you!\n" + .string "Good to see you.\p" + .string "Your POKéMON can only be doing\n" + .string "good!$" + +gUnknown_81BF9CC:: @ 81BF9CC + .string "By level, your {STR_VAR_1} has\n" + .string "grown by {STR_VAR_2}.$" + +gUnknown_81BF9EF:: @ 81BF9EF + .string "Your POKéMON party is full.\n" + .string "Make room, then come see me.$" + +Text_1BFA28:: @ 81BFA28 + .string "ã©ã£ã¡ã®ã€€ãƒã‚±ãƒ¢ãƒ³ã‚’ ã²ãã¨ã‚‹ã‹ã„?$" + +gUnknown_81BFA3B:: @ 81BFA3B + .string "If you want your {STR_VAR_1} back,\n" + .string "it will cost Â¥{STR_VAR_2}.$" + +gUnknown_81BFA67:: @ 81BFA67 + .string "Perfect!\n" + .string "Here's your POKéMON.$" + +gUnknown_81BFA85:: @ 81BFA85 + .string "{PLAYER} took back {STR_VAR_1} from\n" + .string "the DAY-CARE LADY.$" + +gUnknown_81BFAAD:: @ 81BFAAD + .string "Oh? But you have just one\n" + .string "POKéMON.\p" + .string "Come back another time.$" + +gUnknown_81BFAE8:: @ 81BFAE8 + .string "Will you take your POKéMON back?$" + +gUnknown_81BFB09:: @ 81BFB09 + .string "If you leave me that POKéMON,\n" + .string "what will you battle with?\p" + .string "Come back another time.$" + +Text_1BFB5A:: @ 81BFB5A + .string "Huh?$" + +EventScript_81BFB5F:: @ 81BFB5F + animateflash 0 + setflashradius 0 + end + +EventScript_1BFB65:: @ 81BFB65 + msgbox Text_1BFB6E, 3 + end + +Text_1BFB6E:: @ 81BFB6E + .string "REPEL's effect wore off…$" + +EventScript_SafariWarpOut:: @ 81BFB87 + setvar VAR_MAP_SCENE_FUCHSIA_CITY_SAFARI_ZONE_ENTRANCE, 3 + special ExitSafariMode + setwarp MAP_FUCHSIA_CITY_SAFARI_ZONE_ENTRANCE, 255, 4, 1 + end + +EventScript_1BFB98:: @ 81BFB98 + setvar VAR_MAP_SCENE_FUCHSIA_CITY_SAFARI_ZONE_ENTRANCE, 1 + special ExitSafariMode + warp MAP_FUCHSIA_CITY_SAFARI_ZONE_ENTRANCE, 255, 4, 1 + waitstate + end + +EventScript_SafariRetire:: @ 81BFBAA + lockall + msgbox Text_1BFBE9, 5 + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1BFBC0 + releaseall + end + +EventScript_1BFBC0:: @ 81BFBC0 + goto EventScript_1BFB98 + +EventScript_SafariTimesUp:: @ 81BFBC5 + lockall + playse SE_PINPON + msgbox gUnknown_81BFC1B + goto EventScript_1BFB98 + end + +EventScript_SafariOutOfBalls:: @ 81BFBD7 + lockall + playse SE_PINPON + msgbox gUnknown_81BFC53 + goto EventScript_1BFB98 + end + +Text_1BFBE9:: @ 81BFBE9 + .string "Would you like to exit the SAFARI\n" + .string "ZONE right now?$" + +gUnknown_81BFC1B:: @ 81BFC1B + .string "PA: Ding-dong!\p" + .string "Time's up!\p" + .string "PA: Your SAFARI GAME is over!$" + +gUnknown_81BFC53:: @ 81BFC53 + .string "PA: Ding-dong!\p" + .string "You are out of SAFARI BALLS!\p" + .string "PA: Your SAFARI GAME is over!$" + +Text_1BFC9D:: @ 81BFC9D + .string "サファリゾーンã¸ã€€ã‚ˆã†ã“ãï¼\p" + .string "ã“ã“ã§ã¯ã€€ãƒ›ã‚¦ã‚¨ãƒ³ã§ã¯ã€€ãªã‹ãªã‹\n" + .string "ã¿ã‚‹ã“ã¨ã®ã€€ã§ããªã„ ãƒã‚±ãƒ¢ãƒ³ã‚’\p" + .string "ã—ãœã‚“ã®ã€€ã™ãŒãŸã®ã€€ã¾ã¾\n" + .string "ã‚ã«ã€€ã™ã‚‹ã“ã¨ãŒã€€ã§ãã¾ã™\p" + .string "ã¾ãŸã€€ãƒã‚±ãƒ¢ãƒ³ãƒˆãƒ¬ãƒ¼ãƒŠãƒ¼ã®\n" + .string "よã†ã¼ã†ã«ã€€ãŠã“ãŸãˆã€€ã—ã¦\p" + .string "ãƒã‚±ãƒ¢ãƒ³ã‚’\n" + .string "ã¤ã‹ã¾ãˆã‚‹ã€€ã“ã¨ã‚‚ ã§ãã¾ã™ï¼\p" + .string "サファリゾーンを ãŸã®ã—ã‚“ã§ã€€ã„ã£ã¦ã­ï¼$" + +Text_1BFD30:: @ 81BFD30 + .string "サファリゾーンã¸ã€€ã‚ˆã†ã“ãï¼\n" + .string "サファリゾーンã¯ã€€ã¯ã˜ã‚ã¦ã€€ã§ã™ã‹ï¼Ÿ$" + +Text_1BFD52:: @ 81BFD52 + .string "サファリゾーンを ãŸã®ã—ã‚“ã§ã€€ã„ã£ã¦ã­ï¼$" + +Text_1BFD67:: @ 81BFD67 + .string "サファリゾーンã§ã¯\n" + .string "30ã“ã®ã€€ã‚µãƒ•ァリボールを ã¤ã‹ã£ã¦\l" + .string "ãƒã‚±ãƒ¢ãƒ³ã‚’ ã¤ã‹ã¾ãˆã‚‹ã€€ã“ã¨ãŒã€€ã§ãã¾ã™\p" + .string "サファリボールを ã¤ã‹ã„ãã‚‹ã‹\n" + .string "500ã½ã€€ã‚ã‚‹ãã¨\p" + .string "ゲームã¯ã€€ã—ã‚…ã†ã‚Šã‚‡ã†ã€€ã§ã™\p" + .string "サファリゾーンを ãŸã®ã—ã‚“ã§ã€€ã„ã£ã¦ã­ï¼$" + +Text_1BFDD7:: @ 81BFDD7 + .string "サファリゾーンã¸ã€€ã‚ˆã†ã“ãï¼\p" + .string "500ãˆã‚“ã§ã€€ãƒã‚±ãƒ¢ãƒ³ã€€ã¤ã‹ã¾ãˆã»ã†ã ã„ï¼\n" + .string "サファリゲームã«ã€€ã•ã‚“ã‹ã€€ã—ã¾ã™ã‹ï¼Ÿ$" + +Text_1BFE0F:: @ 81BFE0F + .string "ãã†ã§ã™ã‹\n" + .string "ã“ã‚“ã©ã€€ãœã²ã€€ã•ã‚“ã‹ã€€ã—ã¦ãã ã•ã„ï¼$" + +Text_1BFE28:: @ 81BFE28 + .string "ãŠã‹ã­ãŒã€€ãŸã‚Šã¾ã›ã‚“よï¼$" + +Text_1BFE35:: @ 81BFE35 + .string "ãれã§ã¯ã€€500ãˆã‚“ ã„ãŸã ãã¾ã™$" + +Text_1BFE47:: @ 81BFE47 + .string "ã§ã¯ã€€ã‚µãƒ•ァリボールを ã©ã†ãžï¼$" + +Text_1BFE58:: @ 81BFE58 + .string "{PLAYER}ã¯ã€€ã‚µãƒ•ァリボールを\n" + .string "30ã“ ã†ã‘ã¨ã£ãŸï¼$" + +Text_1BFE70:: @ 81BFE70 + .string "ã˜ã‹ã‚“ã«ã€€ãªã‚Šã¾ã—ãŸã‚‰\n" + .string "ã“ã¡ã‚‰ã‹ã‚‰ã€€ãŠã—らã›ã€€ã—ã¾ã™ã®ã§\p" + .string "ãžã‚“ã¶ã‚“ã«ã€€ãŠãŸã®ã—ã¿ã€€ãã ã•ã„ï¼\n" + .string "ã§ã¯ã€€ã„ã£ã¦ã‚‰ã£ã—ゃã„ï¼$" + +gUnknown_81BFEAC:: @ 81BFEAC + .string "Excuse me!\n" + .string "Your PC BOX is full.$" + +Text_1BFECC:: @ 81BFECC + .string "ã‚ï¼ã€€ãŠãゃãã•ã‚“\n" + .string "ãƒãƒ­ãƒƒã‚¯ã‚±ãƒ¼ã‚¹ã‚’ ãŠã‚‚ã¡ã§ã€€ãªã„ã§ã™ã­ï¼Ÿ\p" + .string "サファリゾーンã¯ã€€ãƒãƒ­ãƒƒã‚¯ã‚’ ã¤ã‹ã†ã¨\n" + .string "より ãŠãŸã®ã—ã¿ã€€ã„ãŸã ã‘ã¾ã™ã®ã§\p" + .string "ãœã²ã€€ãƒãƒ­ãƒƒã‚¯ã‚±ãƒ¼ã‚¹ã‚’\n" + .string "ãŠã‚‚ã¡ã«ã€€ãªã£ã¦ã€€ãŠã“ã— ãã ã•ã„ï¼$" + +Text_1BFF30:: @ 81BFF30 + .string "ã¾ã ã€€ã˜ã‹ã‚“ãŒã€€ã®ã“ã£ã¦ã„ã¾ã™ãŒ\n" + .string "サファリゾーンを やã‚ã¾ã™ã‹ï¼Ÿ$" + +Text_1BFF51:: @ 81BFF51 + .string "ã§ã¯ã€€ã²ãã¤ã¥ã ãŠãŸã®ã—ã¿ã€€ãã ã•ã„ï¼$" + +Text_1BFF66:: @ 81BFF66 + .string "ã‚ã‹ã‚Šã¾ã—ãŸ\p" + .string "ãれã§ã¯ã€€ã®ã“りã®ã€€ã‚µãƒ•ァリボールを\n" + .string "ãŠã‚ãšã‹ã‚Šã€€ã—ã¾ã™\p" + .string "ãŠã¤ã‹ã‚Œã•ã¾ã§ã—ãŸ\n" + .string "ã¾ãŸã€€ã”りよã†ã€€ãã ã•ã„$" + +Text_1BFFA1:: @ 81BFFA1 + .string "ãれã§ã¯ã€€ã„ã£ã¦ã‚‰ã£ã—ゃã„ï¼\l" + .string "ãªã«ã‹ã€€ã‚りã¾ã—ãŸã‚‰\n" + .string "ã‚ãŸã—ã«ã€€ã“ãˆã‚’ ã‹ã‘ã¦ã€€ãã ã•ã„ã­$" + +Text_1BFFCE:: @ 81BFFCE + .string "ã—ã£ã¦ãŸï¼Ÿ\p" + .string "ã‚ã®ã€€ã—ã‹ãã„ ã¯ã“ã«ã€€ãƒãƒ­ãƒƒã‚¯ã‚’ ãŠãã¨\n" + .string "ãƒã‚±ãƒ¢ãƒ³ãŒã€€ã‚ã¤ã¾ã£ã¦ã€€ãã‚‹ã‚“ã ã‚ˆï¼$" + +Text_1BFFFD:: @ 81BFFFD + .string "ã“ã®ã€€ã•ãã«ã€€ã„ããŸã„ ã‘ã©\n" + .string "ã˜ã¦ã‚“ã—ゃ もã£ã¦ã€€ãã‚‹ã®ã€€ã‚ã™ã‚ŒãŸâ€¥â€¥\p" + .string "ãŠãã«ã€€ã‚ãšã‚‰ã—ã„ ãƒã‚±ãƒ¢ãƒ³ãŒ\n" + .string "ã„ãã†ãªã€€ããŒã€€ã™ã‚‹ã®ã«ï¼$" + +Text_1C003F:: @ 81C003F + .string "ãƒã‚±ãƒ¢ãƒ³ã«ã€€ãƒãƒ­ãƒƒã‚¯ã‚’ ãªã’ã¦ã‚‚\n" + .string "ã—らんã·ã‚Šã€€ã•れる ã¨ããŒã€€ã‚ã‚‹ã®ã‚ˆ\p" + .string "ãƒã‚±ãƒ¢ãƒ³ã«ã‚‚ ã™ããらã„ãŒã€€ã‚ã‚‹ã®ã‹ã—ら?$" + +Text_1C0079:: @ 81C0079 + .string "ãœã‡â€¥â€¥ã€€ãœã‡â€¥â€¥\n" + .string "ã‚„ã£ã¨ã€€ã“ã“ã¾ã§ã€€ããŸã‘ã©â€¥â€¥\p" + .string "ã¤ã‹ã‚Œã¡ã‚ƒã£ã¦ã€€ãƒã‚±ãƒ¢ãƒ³ã€€ã¤ã‹ã¾ãˆã‚‹\n" + .string "ã’ã‚“ãも ã®ã“ã£ã¦ã€€ãªã„よ‥‥$" + +Text_1C00B6:: @ 81C00B6 + .string "ホウエンã«ã€€ã„ãªã„ ã¿ãšãƒã‚±ãƒ¢ãƒ³ã‚’\n" + .string "ã•ãŒã—ã«ã€€ããŸã‚“ã ã‘ã©â€¥â€¥\p" + .string "ã¿ãšã†ã¿ã¯ã€€ã©ã“ã«ã‚ã‚‹ã®ã‹\n" + .string "ãã¿ã€€ã—ã£ã¦ã‚‹ã‹ã„?$" + +Text_1C00EF:: @ 81C00EF + .string "ã“ã“ã§ã€€ã‚ãšã‚‰ã—ã„ ãƒã‚±ãƒ¢ãƒ³ã‚’\n" + .string "ãŸãã•ん ã¤ã‹ã¾ãˆã¦\l" + .string "ã¨ã‚‚ã ã¡ã¨ã€€ã“ã†ã‹ã‚“ ã™ã‚‹ã‚“ã ï¼$" + +Text_1C011B:: @ 81C011B + .string "ãƒãƒ­ãƒƒã‚¯ãŠãã°ã«ã€€ãŠã„ãŸã€€ãƒãƒ­ãƒƒã‚¯ãŒ\n" + .string "ã„ã¤ã®ã¾ã«ã‹ã€€ãªããªã£ã¦ã„ãŸâ€¥â€¥\p" + .string "ã—らãªã„ ã†ã¡ã«\n" + .string "ãƒã‚±ãƒ¢ãƒ³ãŒã€€ãŸã¹ã¡ã‚ƒã£ãŸã®ã‹ãªï¼Ÿ$" + +Text_1C0159:: @ 81C0159 + .string "サファリゾーンã®ã€€ãŠã¨ããªã€€ã˜ã‚‡ã†ã»ã†ï¼\p" + .string "ã§ã‚ã£ãŸã€€ãƒã‚±ãƒ¢ãƒ³ã«\n" + .string "ãƒãƒ­ãƒƒã‚¯ã‚’ ãªã’ã‚‹ã¨ã€€ã«ã’ã«ãã ãªã‚Šã¾ã™ï¼$" + +Text_1C0190:: @ 81C0190 + .string "ã‚ã‚‹ã ã¤ã‹ã‚ŒãŸã‚‰ã€€ã¡ã‚‡ã£ã¨ã€€ã²ã¨ã„ãï¼\n" + .string "‘ã¿ã‚“ãªã®ã€€ãã‚…ã†ã‘ã„ã˜ã‚‡'$" + +Text_1C01B4:: @ 81C01B4 + .string "ãŠã‚Œã€€ãƒãƒ­ãƒƒã‚¯ã€€ã‚‚ã£ã¦ãªã„ã‘ã©\n" + .string "ãƒã‚±ãƒ¢ãƒ³ã€€ãŸãã•ん ã¤ã‹ã¾ãˆãŸã‚ˆ\p" + .string "ã¡ã‹ã¥ã„ã¦ã€€ãƒœãƒ¼ãƒ«ã‚’ ãªã’る ã ã‘ã§\n" + .string "ã‘ã£ã“ã†ã€€ã¤ã‹ã¾ãˆã‚‰ã‚Œã‚‹ã€€ã‚‚ã‚“ã ã‚ˆï¼$" + +Text_1C01FB:: @ 81C01FB + .string "ãƒãƒ­ãƒƒã‚¯ã‚’ ã¤ã‹ã†ã¨ã€€ã„ã¤ã‚‚より\n" + .string "ã¡ã‚‡ã£ã´ã‚Šã€€ã«ã’ã«ãã ãªã‚‹ã¿ãŸã„\p" + .string "ã ã‹ã‚‰ã€€ã«ã’ã«ãã„ ãƒã‚±ãƒ¢ãƒ³ã«ã€€ã¤ã‹ã£ã¦ã‚‚\n" + .string "ã‚ã‚“ã¾ã‚Šã€€ã„ã¿ãŒã€€ãªã„ã‹ã‚‚ã­$" + +Text_1C0243:: @ 81C0243 + .string "ãƒãƒ­ãƒƒã‚¯ãŠãã°ã«ã€€ãƒãƒ­ãƒƒã‚¯ã€€ãŠã„ã¦\n" + .string "ãƒã‚±ãƒ¢ãƒ³ã‚’ ã¤ã‹ã¾ãˆã‚‹ã¨\p" + .string "ãŠãªã˜ã€€ã‚ˆã†ãªã€€ã›ã„ã‹ãã®ã€€ãƒã‚±ãƒ¢ãƒ³ãŒ\n" + .string "ã‚ã¤ã¾ã‚‹ã€€ããŒã€€ã™ã‚‹ãªã‚$" + +Text_1C0283:: @ 81C0283 + .string "ã‚ã—ã¯ã€€ãŠãŠããªã€€{STR_VAR_1}ã«\n" + .string "ã¨ã¦ã‚‚ ãょã†ã¿ãŒã€€ã‚ã‚‹ï¼\p" + .string "ん? ãã¿ã€€{STR_VAR_1} もã£ã¦ã‚‹ã®ï¼Ÿ\n" + .string "ã¡ã‚‡ã€€ã¡ã‚‡ã€€ã¡ã‚‡ã£ã¨Â·Â·Â·\l" + .string "ãŠã˜ã•ã‚“ã«ã€€ã¿ã›ã¦ã€€ãŠãれï¼$" + +Text_1C02CB:: @ 81C02CB + .string "ãŠãŠï¼ã€€ã“ã„ã¤ã¯ã€€ã§ã‹ã„ï¼\n" + .string "ã¨ã¦ã‚‚ ã™ã°ã‚‰ã—ã„ {STR_VAR_1}ã ï¼\p" + .string "ã¿ã›ã¦ã€€ãれã¦ã€€ã‚りãŒã¨ã†\n" + .string "ãŠã‚Œã„ã«ã€€ã“れを もã£ã¦ã€€ã„ããªã•ã„$" + +Text_1C0309:: @ 81C0309 + .string "{PLAYER}ã¯\n" + .string "{STR_VAR_2}を もらã£ãŸï¼$" + +Text_1C0317:: @ 81C0317 + .string "ã‚りゃ?\n" + .string "ãã¿ã€€ã‚‚ã¡ã‚‚ã®ã€€ã„ã£ã±ã„ã ã­$" + +Text_1C032B:: @ 81C032B + .string "ã†ã†ã‚€ã€€ã‚ã—ã¯ã€€ã“れより ãŠãŠãã„\n" + .string "{STR_VAR_1}を ã¿ãŸã“ã¨ã€€ã‚ã‚‹ãªÂ·Â·Â·$" + +Text_1C034D:: @ 81C034D + .string "ãŠãŠã€€ã“ã„ã¤ã¯ã€€ãªã‹ãªã‹Â·Â·Â·ã£ã¦\n" + .string "ã“れ {STR_VAR_1}ã˜ã‚ƒã€€ãªã„よï¼$" + +Text_1C036C:: @ 81C036C + .string "ãŠãŠãã„ {STR_VAR_1} もã£ã¦ãªã„ã®ï¼Ÿ\l" + .string "ãれã¯ã€€ã–ã‚“ã­ã‚“···\n" + .string "ã“ã‚“ã©ã€€ãŠãŠãã„ {STR_VAR_1} ã¿ã›ã¦ã­$" + +Text_1C0399:: @ 81C0399 + .string "ã—ã˜ã‚‡ã†ã€€ã•ã„ã ã„ã®ã€€{STR_VAR_1}ï¼\n" + .string "{STR_VAR_2}ã®ã€€{STR_VAR_3}cmã®ã‚„ã¤ï¼$" + +Text_1C03B5:: @ 81C03B5 + .string "パパ“{PLAYER}ï¼ã€€ã‚ˆã ããŸãªï¼\n" + .string "{PLAYER}ã‚ã¦ã®ã€€ã¦ãŒã¿ãŒã€€ã¨ã©ã‘られãŸãž$" + +Text_1C03D7:: @ 81C03D7 + .string "パパ“ã‚ãŸã—も ã¿ãŸã“ã¨ã®ãªã„\n" + .string "ãµã­ã®ã€€ãƒã‚±ãƒƒãƒˆã€€ã ãªâ€¥â€¥\l" + .string "ミナモã«ã€€ã„ã£ã¦ã¿ã‚‹ã¨ã€€ã„ã„ã ã‚ã†$" + +Text_1C0407:: @ 81C0407 + .string "カイナã„ã れんらãã›ã‚“‥‥\p" + .string "ã‚ら?\n" + .string "ãã®ã€€ãƒã‚±ãƒƒãƒˆã¯â€¥â€¥ï¼$" + +Text_1C0426:: @ 81C0426 + .string "ヘンテコãªã€€ãƒã‚±ãƒƒãƒˆã‚’\n" + .string "ã‚‚ã£ã¦ããŸã®ã¯ã€€ãŠã¾ãˆã•ã‚“ã‹ï¼Ÿ\p" + .string "ãŠã¾ãˆãŒã€€ã„ã“ã†ã¨ã€€ã—ã¦ã„ã‚‹ã®ã¯\n" + .string "ã¿ãªã¿ã®ã€€ã¯ã¦ã®ã€€ã¡ã£ã½ã‘ãªã€€ã—ã¾â€¥â€¥\p" + .string "ãã“ã§ã¯ã€€ãªã«ãŒã€€ãŠã“ã‚‹ã®ã‹\n" + .string "ã ã‚Œã‚‚ ã‚ã‹ã‚‰ã­ãˆâ€¥â€¥\l" + .string "ã†ã†ã‚€ã€€ãµãªã®ã‚Šã®ã€€ã¡ãŒã€€ã•ã‚ããœï¼\p" + .string "ã•ã‚ ã®ã‚Šãªï¼$" + +Text_1C049D:: @ 81C049D + .string "ãªã«ã‚‚ã­ãˆã€€ã¡ã‚“ã‘ãªã€€ã—ã¾ã€€ã ãªâ€¥â€¥\n" + .string "ミナモã¸ã€€ã‹ãˆã‚‹ã‹ï¼Ÿ$" + +Text_1C04BB:: @ 81C04BB + .string "ùÃ! ÉÇñÑ ÒñÉ!$" + +Text_1C04C9:: @ 81C04C9 + .string "ãã†ã‹ã„\n" + .string "ã¾ã‚ ã™ãã«ã™ã‚‹ãŒã€€ã„ã„ã•$" + +Text_1C04DC:: @ 81C04DC + .string "ã™ã¹ã¦ã®ã€€ã‚†ã‚ã¯ã€€ã‚‚ã†ã²ã¨ã¤ã®ã€€ã’ã‚“ã˜ã¤\n" + .string "ãれを ã‚ã™ã‚Œã‚‹ã¹ã‹ã‚‰ãšâ€¥â€¥$" + +Text_1C0500:: @ 81C0500 + .string "ããŠã ã‹ã™ã¿ã— もã®ã¯\n" + .string "ã“ã“ã‚ã«ã€€ãã–ã¿ã¤ã‘る ã“ã¨ã‚’ ã®ãžã‚€â€¥â€¥$" + +Text_1C0523:: @ 81C0523 + .string "パパ“やã‚ {PLAYER}ï¼\p" + .string "ã‚ãšã‚‰ã—ã„ ãã®ã¿ã‚’ ã¦ã«ã€€ã„れãŸã‹ã‚‰\n" + .string "プレゼント ã™ã‚‹ã‚ˆï¼$" + +Text_1C054C:: @ 81C054C + .string "ãµã‹ãµã‹ã®ã€€ã¤ã¡ã«ã€€ã¯ãˆã¦ã„る ãã®ã¿ã¯\n" + .string "ã˜ã‚†ã†ã«ã€€ã¨ã£ã¦ã‚‚ よã„ã®ã˜ã‚ƒãŒâ€¥\p" + .string "1ã¤ã ã‘ ãã®ã¿ã‚’ ãŠãªã˜ã€€ã°ã—ょã«ã€€ã†ã‚ã‚‹\n" + .string "ãれãŒã€€ã‚Œã„ãŽã¨ã€€ã„ã†ã‚‚ã®ã˜ã‚ƒ\p" + .string "ã»ã‚Œã€€ã“れを ã‚ã‘ã¦ã‚„ã‚ã†$" + +Text_1C05A8:: @ 81C05A8 + .string "ã‚ã‚“ãŸã€€ã¿ãŸã¨ã“ã‚ トレーナーã˜ã‚ƒã‚?\p" + .string "トレーナーã¯ã€€ã‚ˆã ãã®ã¿ã‚’ ãƒã‚±ãƒ¢ãƒ³ã«\n" + .string "ã‚‚ãŸã›ã¨ã‚‹ã‚ã„\p" + .string "ãµã‚„ã™ã‚‚ ã¤ã‹ã†ã‚‚ ã‚ã‚“ãŸã€€ã—ã ã„ã˜ã‚ƒ$" + +Text_1C05ED:: @ 81C05ED + .string "ã„ã¤ã‚‚ ã¿ãšã‚’ ã‚ã’ã¦ãŸã‚‰\n" + .string "ãŸãã•ん ã¯ãªãŒã€€ã•ã„ãŸã‚“ã \p" + .string "ãã—ãŸã‚‰ã€€ãã®ã¿ã‚‚ ãŸãã•ん ã§ããŸï¼\p" + .string "ã¯ã„ï¼\n" + .string "ã“れ ã‚ã’ã‚‹$" + +Text_1C0629:: @ 81C0629 + .string "ãŒã‚“ã°ã£ã¦ã€€ã‚ã‹ã„ãƒãƒ­ãƒƒã‚¯ã€€ã¤ãã‚‹ã‚“ã ï¼\n" + .string "{STR_VAR_1}も ãŒã‚“ã°ã£ã¦ã­ï¼$" + +Text_1C064A:: @ 81C064A + .string "ãょã†ã¯ã€€ãªã«ã„ã‚ã®ã€€ãã®ã¿ã‚’\n" + .string "ã•ãŒãã£ã‹ãªãƒ¼$" + +Text_1C0662:: @ 81C0662 + .string "ãƒã‚±ãƒ¢ãƒ³ã‚³ãƒ³ãƒ†ã‚¹ãƒˆã®ã€€ã‚†ã†ã—ょã†ã‚’ ã‚ã–ã—ã¦\n" + .string "ãã®ã¿ã‚’ ã‚ã¤ã‚ã¦ã„ã‚‹ã‚“ã \p" + .string "よã‹ã£ãŸã‚‰ã€€ãã¿ã«ã‚‚ ã‚ã‘ã¦ã€€ã‚ã’るよï¼$" + +Text_1C069C:: @ 81C069C + .string "ãã¿ã‚‚ ãŒã‚“ã°ã‚Œï¼$" + +Text_1C06A6:: @ 81C06A6 + .string "ãょã†ã¯ã€€ã©ã®ã€€ãã®ã¿ã‚’ ã†ã‚ã‚‹ã‹â€¥\n" + .string "ãã—ã¦ã€€ãªã«ã„ã‚ã®ã€€ãƒãƒ­ãƒƒã‚¯ã‚’ ã¤ãã‚‹ã‹â€¥\p" + .string "ãªã‚„ã‚€ã®ã‚‚ ã¾ãŸã€€ãŸã®ã—ã„よ$" + +Text_1C06DE:: @ 81C06DE + .string "ケースを ãµã‚‹ã¨ã€€ã§ã¦ãる ãƒãƒ­ãƒƒã‚¯â€¥\p" + .string "ãã—ã¦ã€€ãれを キャッãƒã—ã¦\n" + .string "ãŸã¹ã¦ãれる ãƒã‚±ãƒ¢ãƒ³â€¥\p" + .string "ã“れã£ã¦ã€€ã‚ã„ ã ã‚ˆã­ï¼Ÿ$" + +Text_1C071B:: @ 81C071B + .string "ã†ã‚“ ã†ã‚“ï¼\n" + .string "ã‚„ã£ã±ã€€ã‚ã‹ã‚‹ã²ã¨ã«ã¯ã€€ã‚ã‹ã‚‹ã‚ˆã­\p" + .string "ã“れ ã‚ã’ã‚‹$" + +Text_1C073B:: @ 81C073B + .string "ãã£ã‹â€¥â€¥\n" + .string "ã§ã‚‚ ã¡ãŒã†ã¨ã€€ã‹ã‚“ã˜ã‚‹ã“ã¨ã‚‚ ãŸã„ã›ã¤ã ã­\p" + .string "ã“れ ã‚ã’ã‚‹$" + +Text_1C075F:: @ 81C075F + .string "ãã®ã€€ãã®ã¿ã¯ã€€ã‚ãšã‚‰ã—ã„ã‚‚ã®ã€€ã‚‰ã—ã„ã‹ã‚‰\n" + .string "ãŸã„ã›ã¤ã«ã€€ãã ã¦ã¦ã­ï¼$" + +Text_1C0782:: @ 81C0782 + .string "ã¾ãŸã€€ãã®ã¿ã‚ã„ã˜ã‚“ã«ã€€ã‚‚らã£ã¦ã€€ã“よã†ã£ã¨$" + +Text_1C0799:: @ 81C0799 + .string "ã‚„ã£ã±ã‚Š\p" + .string "ã‚ãŸã—ã«ã€€ã‚¹ãƒ¼ãƒ„ãŒã€€ã«ã‚ã†ã‚ˆã†ã«\n" + .string "ã†ã¿ã«ã¯ã€€ã—ãŠã‹ãœãŒã€€ã«ã‚ã†ãª\l" + .string "ãã—ã¦ã€€ãã¿ã«ã¯ã€€ãã®ã¿ãŒã€€ã«ã‚ã„ãã†ã â€¥â€¥\p" + .string "ãªã‚“ã§ã ã‚ã†ã­ï¼Ÿ$" + +Text_1C07DF:: @ 81C07DF + .string "ã‚„ã£ã±ã‚Šã€€ãれã¯â€¥â€¥â€¥â€¥\p" + .string "ãã¿ãŒã€€ãƒˆãƒ¬ãƒ¼ãƒŠãƒ¼ã ã‹ã‚‰ã ï¼$" + +Text_1C07FB:: @ 81C07FB + .string "ã‚„ã£ã±ã‚Š\p" + .string "ã‚ãŸã—ã«ã€€ã‚·ãƒ³ãƒ—ルã•ãŒã€€ã«ã‚ã†ã‚ˆã†ã«\n" + .string "ãƒã‚±ãƒ¢ãƒ³ã«ã¯ã€€ãƒãƒ­ãƒƒã‚¯ãŒã€€ã«ã‚ã†ãª$" + +Text_1C0825:: @ 81C0825 + .string "ã‚ã—ã¯ã€€ãã®ã¿ã‚ã„ã˜ã‚“ã¨ã€€ã‚ˆã°ã‚Œã¦ãŠã‚‹\p" + .string "ã‚ã—ã¯ã€€ã›ã‹ã„ã˜ã‚…ã†ã‚’ ã†ã¤ãã—ã„ ã¯ãªã§\n" + .string "ã†ã‚ã¤ããã†ã¨ã€€ãã®ã¿ã‚’ ãã ã¦ã¦\l" + .string "ãã—ã¦ã€€ãã°ã‚Šã€€ã¾ãã£ã¦ã€€ãŠã‚‹ã®ã˜ã‚ƒ\p" + .string "ãã¿ã«ã‚‚ ãã®ã¿ã‚’ ã‚ã‘ã¦ã€€ã‚ã’よã†ï¼$" + +Text_1C0888:: @ 81C0888 + .string "ã»ã‚Œã€€ãˆã‚“りょ ã›ãšã«ã€€ã‚‚ã†ã€€ã²ã¨ã¤ï¼$" + +Text_1C089C:: @ 81C089C + .string "カナズミã®ã€€ã¡ã‹ãã«ã‚る サン·トウカã¨ã„ã†\n" + .string "フラワーショップも よã‚ã—ãã®\p" + .string "ã›ã‹ã„ã«ã€€ã¯ãªã‚’ ã•ã‹ã›ã¾ã—ょã†ï¼$" + +Text_1C08D5:: @ 81C08D5 + .string "ãょã†ã¯ã€€ã‚‚ã†ã€€ãŠã—ã¾ã„ã˜ã‚ƒ\n" + .string "ã¾ãŸã€€ãŠã„ã§\p" + .string "ã›ã‹ã„ã«ã€€ã¯ãªã‚’ ã•ã‹ã›ã¾ã—ょã†ï¼$" + +Text_1C08FD:: @ 81C08FD + .string "ã˜ã„ã•ã‚“ã®ã€€ãã®ã¿ã®ã€€ãã ã¦ã‹ãŸã¯\n" + .string "ãりゃã‚ ã›ã‹ã„ã„ã¡ã˜ã‚ƒ\p" + .string "ã‚ã—も ã¯ãªãŒã€€ãŸã‹ã„ã‚ã„\p" + .string "ã¨ã“ã‚ã§ã€€ã‚ã‚“ãŸ\n" + .string "ã„ã„ ã“ã¨ã°ã‚’ ãã„ãŸã“ã¨ãŒã€€ãªã„ã‹ã„?$" + +Text_1C0948:: @ 81C0948 + .string "ãŠãŠï¼ã€€ã¨ã¦ã‚‚ よã„ ã“ã¨ã°ã˜ã‚ƒï¼\n" + .string "ã‹ã‚“ã©ã†ã€€ã—ãŸã‚ã„\p" + .string "ã»ã‚Œã€€ã“れを もã£ã¦ã„ããªã•れ$" + +Text_1C0974:: @ 81C0974 + .string "ãŠãŠï¼ã€€ãªã‹ãªã‹ã€€ã‚ˆã„ ã“ã¨ã°ã˜ã‚ƒ\n" + .string "ã‚ã‚“ãŸã‚‚ ãŸã„ã—ãŸã‚‚ã‚“ã˜ã‚ƒ\p" + .string "ã»ã‚Œã€€ã“れを もã£ã¦ã„ããªã•れ$" + +Text_1C09A4:: @ 81C09A4 + .string "ã¾ã”ãŸã¡ã€€4ã«ã‚“も ã˜ã„ã•んを ã—ã®ã\n" + .string "ãŠãŠã‚‚ã®ã«ã€€ãªã‚‹ã˜ã‚ƒã‚ã†ã¦\p" + .string "ã˜ã‚“ã›ã„ ãŸã®ã—ã„ã“ã¨ãŒã€€ã¤ãã‚“ã®ã†ï¼$" + +Text_1C09DA:: @ 81C09DA + .string "ã»ã†â€¥â€¥$" + +Text_1C09DF:: @ 81C09DF + .string "ã“ã‚“ã«ã¡ã¯ï¼\p" + .string "ã¯ãªã‚’ ã›ã‹ã„ã«ã€€ã²ã‚ã‚ã‚‹\n" + .string "フラワーショップ サン·トウカã§ã™ï¼$" + +Text_1C0A07:: @ 81C0A07 + .string "{PLAYER}{KUN} ãã®ã¿ã®ã€€ã“ã¨ã€€ã—りãŸã„?$" + +Text_1C0A1A:: @ 81C0A1A + .string "ã‚ãªãŸã®ã€€ãªã¾ãˆã¯â€¥â€¥\p" + .string "{PLAYER}{KUN}ã­ï¼\n" + .string "ã¨ã£ã¦ã‚‚ ã„ã„ ãªã¾ãˆã ã­ï¼\l" + .string "{PLAYER}{KUN} ãã®ã¿ã®ã“ã¨ã€€ã—りãŸã„?$" + +Text_1C0A4E:: @ 81C0A4E + .string "ãã®ã¿ã¯ã­ã€€ãã‚ã„ ãµã‹ãµã‹ã®ã€€ã¤ã¡ã®\n" + .string "ã¨ã“ã‚ã§ã€€ãŸã¾ã«ã€€ã¨ã‚Œã‚‹ã®\l" + .string "ã§ã­â€¥â€¥\p" + .string "ã¨ã£ãŸã‚‰ã€€ãã®1ã¤ã‚’ ã¾ãŸã€€ã†ã‚ã‚‹ã®ï¼\p" + .string "ãã†ã™ã‚‹ã¨ã€€ãã®ã€€ãã®ã¿ã€€ã‹ã‚‰\n" + .string "ã‚ãŒã§ã¦ã€€ã¿ããŒã€€ã§ãã¦ã€€ã¯ãªãŒã•ã„ã¦\l" + .string "ã¾ãŸã€€ãã®ã¿ã€€ãŒã€€ã§ãã‚‹ã®\p" + .string "ãã†ã‚„ã£ã¦ã€€ã¯ãªã‚’ ãµã‚„ã—ã¦\n" + .string "ã›ã‹ã„ã˜ã‚…ã†ã‚’ ã¯ãªã«ã€€ã™ã‚‹ã®ãŒ\l" + .string "ã‚ãŸã—ã®ã€€ã‚†ã‚ ãªã‚“ã ï¼\p" + .string "ã ã‹ã‚‰ã€€{PLAYER}{KUN}も ãã®ã¿ã‚’ ã†ã‚ã¦\n" + .string "ã›ã‹ã„ã«ã€€ã¯ãªã‚’ ãµã‚„ã—ã¦ã­ï¼$" + +Text_1C0B0B:: @ 81C0B0B + .string "ãŠã¯ãªã£ã¦ã€€ã¨ã£ã¦ã‚‚ ã—ã‚ã‚ã›ãªã€€ãã¶ã‚“ã«\n" + .string "ã—ã¦ãれるよã­$" + +Text_1C0B29:: @ 81C0B29 + .string "ã“ã‚“ã«ã¡ã¯ï¼\p" + .string "ãŠã¯ãªã¯ã€€ã›ã‚を ã™ã‚Œã°ã€€ã™ã‚‹ã»ã©\n" + .string "ãŸãã•ん ãれã„ã«ã€€ã•ã„ã¦ã€€ãれるã®\p" + .string "ã‚ãªãŸã‚‚ ã›ã‚を ã—ãŸã ãªã£ãŸã€€ã§ã—ょ?\n" + .string "ã“れ ã‚ã’ã‚‹ã‚$" + +Text_1C0B73:: @ 81C0B73 + .string "ãã®ã¿ãŒã€€ãã ã¤ã€€ãŸã³ã«\n" + .string "ã˜ã‚‡ã†ã‚ã§ã€€ã¿ãšã‚’ ã‚ã’ã¦ã­ï¼\p" + .string "ã‚ã¨ã­\p" + .string "ãã®ã¿ã¯ã€€ãšã£ã¨ã€€ãšã£ã¨ã€€ã»ã†ã£ã¦ãŠãã¨\n" + .string "ã˜ã‚ã‚“ã«ã€€ãŠã¡ã¦ã—ã¾ã†ã®\l" + .string "ã§ã‚‚ã­ã€€ãã“ã‹ã‚‰ã€€ã¾ãŸã€€ã‚ãŒã§ã¦ã€€ãã‚‹ã®ï¼\p" + .string "ã™ã”ã„よã­ï¼\n" + .string "ã„ãã‚‚ã®ã®ã€€ã¡ã‹ã‚‰ã‚’ ã‹ã‚“ã˜ã‚‹ã‚ˆã­$" + +Text_1C0BE5:: @ 81C0BE5 + .string "ãŠã­ãƒ¼ã¡ã‚ƒã‚“ãŸã¡ã‚’ ã¿ãªã‚‰ã£ã¦\n" + .string "ãŒã‚“ã°ã£ã¦ã€€ãŠã¯ãªã‚’ ãã ã¦ã¦ã‚‹ã®\p" + .string "ã¯ã„ï¼ã€€ã“れã‚ã’ã‚‹ï¼$" + +Text_1C0C12:: @ 81C0C12 + .string "ãã®ã¿ã¯ã€€ã†ã‚ã¦ã€€ãŠãŠãã ã—ãŸã‚Š\n" + .string "ãƒã‚±ãƒ¢ãƒ³ã«ã€€ã‚‚ãŸã›ãŸã‚Šã€€ã§ãã‚‹ã®\p" + .string "ã§ã‚‚ ã•ã„ãん ãã®ã¿ã‚’ ã„ãã¤ã‹ã€€ã¾ãœã‚‹ã¨\n" + .string "ãƒã‚±ãƒ¢ãƒ³ã®ã€€ãŠã‹ã—ã«ãªã‚‹ã€€ãã‹ã„ãŒ\l" + .string "ã‚る らã—ã„ã‚“ã \p" + .string "ã‚ãŸã—も ãŠã‹ã— ã»ã—ー$" + +Text_1C0C74:: @ 81C0C74 + .string "{STR_VAR_1} ãªã¾ãˆã€€ãªã‚“ã¦ã„ã†ã®ï¼Ÿ\p" + .string "‥‥‥ ‥‥‥ ‥‥‥\n" + .string "ã¸ãƒ¼ã€€ã„ã„ã­ãƒ¼\p" + .string "ã‚ãŸã—ã¯ã€€ã‚­ãƒªã€€ã£ã¦ã„ã†ã€€ãªã¾ãˆãªã®\p" + .string "パパã¨ã€€ãƒžãƒžãŒã€€ã™ãã™ãã¨ã€€ãã ã£ã¦\n" + .string "ã“ã“ã‚ã®ã€€ã‚ãŸãŸã‹ã„ ãŠã‚“ãªã®ã“ã«ã€€ãªã£ã¦\l" + .string "ã»ã—ã„ã£ã¦ã„ã†ã€€ã­ãŒã„を ã“ã‚ãŸã‚“ã ã£ã¦ï¼\p" + .string "{STR_VAR_1}ã«ã‚‚ ã“れ ã‚ã’ã‚‹$" + +Text_1C0CF5:: @ 81C0CF5 + .string "ã‚ã¨ã€€{STR_VAR_1}ã«ã¯ã€€ã‚­ãƒªã®ã€€ã ã„ã™ããª\n" + .string "ã“ã®ã€€ãã®ã¿ã‚‚ ã‚ã’ã¡ã‚ƒã†ï¼$" + +Text_1C0D16:: @ 81C0D16 + .string "{STR_VAR_1}ã®ã€€ãªã¾ãˆã«ã¯\n" + .string "ã©ã‚“ãªã€€ã­ãŒã„ãŒã€€ã“ã‚られã¦ã‚‹ã®ï¼Ÿ$" + +Text_1C0D32:: @ 81C0D32 + .string "ã¯ã‚‹ã€€ãªã¤ã€€ã‚ã ãµã‚†\n" + .string "ã¯ã‚‹ã«ã€€ã†ã¾ã‚Œã‚‹ã¨ã€€ã¯ã‚‹ãŒã€€ã™ãã§\l" + .string "ãªã¤ã«ã€€ã†ã¾ã‚Œã‚‹ã¨ã€€ãªã¤ãŒã€€ã™ããªã®ã‹ãªï¼Ÿ$" + +Text_1C0D66:: @ 81C0D66 + .string "ã˜ã‚ƒã‚ キリã¯ã€€ã‚ãã«ã€€ã†ã¾ã‚ŒãŸã‹ã‚‰\n" + .string "ã‚ããŒã€€ã ã„ã™ãï¼\p" + .string "{STR_VAR_1}ã¯ã€€ã„ã¤ãŒã€€ã™ã?$" + +Text_1C0D8F:: @ 81C0D8F + .string "ãã£ã‹â€¥\n" + .string "ã‹ã‚“ã‘ã„ãªã„ã®ã‹â€¥\p" + .string "ã—りãŸã„ã“ã¨ã£ã¦ã€€ãŸãã•ã‚“ã‚ã‚‹ãªãƒ¼$" + +gUnknown_81C0DB0:: @ 81C0DB0 + .string "It's crammed full of POKéMON\n" + .string "books.$" + +Text_1C0DD4:: @ 81C0DD4 + .string "ã»ã‚“ã ãªã«ã€€ãªã‚‰ã‚“ã§ã„ã‚‹ã®ã¯\n" + .string "ãƒã‚±ãƒ¢ãƒ³ã®ã€€ã»ã‚“ ã°ã‹ã‚Šã $" + +Text_1C0DF1:: @ 81C0DF1 + .string "A TOWN MAP.$" + +gUnknown_81C0DFD:: @ 81C0DFD + .string "Wow!\n" + .string "Tons of POKéMON stuff!$" + +gUnknown_81C0E19:: @ 81C0E19 + .string "Dishes and plates are neatly\n" + .string "lined up.$" + +gUnknown_81C0E40:: @ 81C0E40 + .string "It smells delicious!\n" + .string "Somebody's been cooking here.$" + +gUnknown_81C0E73:: @ 81C0E73 + .string "It's a nicely made dresser.\n" + .string "It will hold a lot of stuff.$" + +gUnknown_81C0EAC:: @ 81C0EAC + .string "There's a pile of snacks here.$" + +gUnknown_81C0ECB:: @ 81C0ECB + .string "All your item needs fulfilled!\n" + .string "POKéMON MART$" + +gUnknown_81C0EF7:: @ 81C0EF7 + .string "Heal Your POKéMON!\n" + .string "POKéMON CENTER$" + +gUnknown_81C0F19:: @ 81C0F19 + .string "INDIGO PLATEAU\p" + .string "The ultimate goal of TRAINERS!\n" + .string "POKéMON LEAGUE HQ$" + +gUnknown_81C0F59:: @ 81C0F59 + .string "INDIGO PLATEAU\p" + .string "The highest POKéMON authority!\n" + .string "POKéMON LEAGUE HQ$" + +gUnknown_81C0F99:: @ 81C0F99 + .string "It should be packed with all kinds\n" + .string "of delicious things to eat.$" + +gUnknown_81C0FD8:: @ 81C0FD8 + .string "It's a blueprint of some sort.\n" + .string "It's filled with diagrams and text.$" + +gUnknown_81C101B:: @ 81C101B + .string "It's a pretty picture of a POKéMON.\n" + .string "It looks like it's feeling good.$" + +gUnknown_81C1060:: @ 81C1060 + .string "What could this machine be?\n" + .string "Better not mess around with it!$" + +gUnknown_81C109C:: @ 81C109C + .string "It's a telephone.\n" + .string "Better not use it.$" + +gUnknown_81C10C1:: @ 81C10C1 + .string "It's all complicated words and\n" + .string "numbers that make no sense…$" + +gUnknown_81C10FC:: @ 81C10FC + .string "It's an advertising poster about\n" + .string "all kinds of products.$" + +gUnknown_81C1134:: @ 81C1134 + .string "Oh, that smells tasty!\n" + .string "It might get the stomach growling!$" + +gUnknown_81C116E:: @ 81C116E + .string "Inside this…\n" + .string "……\p" + .string "There's nothing here!$" + +gUnknown_81C1194:: @ 81C1194 + .string "It's a cup with a POKéMON mark\n" + .string "on it.$" + +gUnknown_81C11BA:: @ 81C11BA + .string "The window is very well polished.$" + +gUnknown_81C11DC:: @ 81C11DC + .string "Outside the window…\p" + .string "The sky looks fantastically\n" + .string "beautiful.$" + +gUnknown_81C1217:: @ 81C1217 + .string "Lights in different colors are\n" + .string "flashing on and off.$" + +gUnknown_81C124B:: @ 81C124B + .string "All sorts of tools are lined up\n" + .string "neatly.$" + +gUnknown_81C1273:: @ 81C1273 + .string "It's a machine of some sort.\n" + .string "It sure is impressive.$" + +gUnknown_81C12A7:: @ 81C12A7 + .string "It's the latest video game!\n" + .string "It sure looks fun!$" + +gUnknown_81C12D6:: @ 81C12D6 + .string "There are obvious signs of burglary\n" + .string "here…$" + +gUnknown_81C1300:: @ 81C1300 + .string "There's a POKéMON on TV!\n" + .string "It looks like it's having fun.$" + +EventScript_1C1338:: @ 81C1338 + waitse + setdivewarp MAP_UNKNOWN_MAP_00_00, 72, 7187, 8 + nop + copyvar VAR_0x4030, 1 + end + +EventScript_1C1348:: @ 81C1348 + lockall + delay 20 + applymovement 255, Movement_1C137A + waitmovement 0 + playse SE_RU_HYUU + delay 60 + warphole 0xFFFF + waitstate + end + +EventScript_1C1361:: @ 81C1361 + lockall + delay 20 + applymovement 255, Movement_1C137A + waitmovement 0 + playse SE_RU_HYUU + delay 60 + special DoFallWarp + waitstate + end + +Movement_1C137A:: @ 81C137A + step_60 + step_end + +gUnknown_81C137C:: @ 81C137C + .string "The battery isn't charged enough.\p" + .string "No. of steps required to fully\n" + .string "charge the battery: {STR_VAR_1}{PAUSE_UNTIL_PRESS}$" + +gUnknown_81C13D6:: @ 81C13D6 + .string "There are no TRAINERS within range\n" + .string "who can battle…\p" + .string "The VS SEEKER was turned off.{PAUSE_UNTIL_PRESS}$" + +gUnknown_81C1429:: @ 81C1429 + .string "The other TRAINERS don't appear\n" + .string "to be ready for battle.\p" + .string "Let's wait till later.{PAUSE_UNTIL_PRESS}$" + +Text_1C147A:: @ 81C147A + .string "Hey!\n" + .string "I saw you in VIRIDIAN FOREST!$" + +Text_1C149D:: @ 81C149D + .string "Hi! I like shorts!\n" + .string "They're comfy and easy to wear!\p" + .string "You should be wearing shorts, too!$" + +Text_1C14F3:: @ 81C14F3 + .string "Excuse me!\n" + .string "You keep looking at me, don't you?$" + +Text_1C1521:: @ 81C1521 + .string "You're a TRAINER, aren't you?\n" + .string "Let's get with it right away!$" + +Text_1C155D:: @ 81C155D + .string "That look you give me…\n" + .string "It intrigues me so!$" + +Text_1C1588:: @ 81C1588 + .string "Hey! What's wrong with you?\n" + .string "You're still not wearing shorts!$" + +Text_1C15C5:: @ 81C15C5 + .string "I'll battle you with the POKéMON\n" + .string "I started raising.$" + +Text_1C15F9:: @ 81C15F9 + .string "Eek!\n" + .string "Did you push me?$" + +Text_1C160F:: @ 81C160F + .string "I always catch mushroom POKéMON\n" + .string "on MT. MOON.$" + +Text_1C163C:: @ 81C163C + .string "Oh! You're that nosy kid who\n" + .string "eavesdropped on us!$" + +Text_1C166D:: @ 81C166D + .string "Excuse me! Didn't I tell you that\n" + .string "this is a private conversation?\p" + .string "You shouldn't be listening in,\n" + .string "you uncouth person!$" + +Text_1C16E2:: @ 81C16E2 + .string "I'm trying to find something good\n" + .string "that's not a BUG POKéMON, but…$" + +Text_1C1723:: @ 81C1723 + .string "Huh?\n" + .string "You want to go with me again?$" + +Text_1C1746:: @ 81C1746 + .string "Me?\n" + .string "Well, okay. I'll play this once.$" + +Text_1C176B:: @ 81C176B + .string "Hey, long time!\n" + .string "Have you gotten better?$" + +Text_1C1793:: @ 81C1793 + .string "You are good at POKéMON, but how\n" + .string "is your chemistry grade?$" + +Text_1C17CD:: @ 81C17CD + .string "All right!\n" + .string "Let's play another game!$" + +Text_1C17F1:: @ 81C17F1 + .string "You need strategy to win at\n" + .string "battling.\p" + .string "Are you following my advice?$" + +Text_1C1834:: @ 81C1834 + .string "I've collected many NIDORAN.\n" + .string "I don't want them to evolve, but…$" + +Text_1C1873:: @ 81C1873 + .string "School is fun, but I still think\n" + .string "POKéMON are fun, too.$" + +Text_1C18AA:: @ 81C18AA + .string "MEOWTH and PERSIAN are so cute,\n" + .string "meow, meow, meow!$" + +Text_1C18DC:: @ 81C18DC + .string "We may look silly standing here\n" + .string "like this, but I can still battle.$" + +Text_1C191F:: @ 81C191F + .string "I'm a rambling, gaming dude!\n" + .string "I'm on a winning streak!$" + +Text_1C1955:: @ 81C1955 + .string "What's a cute, round, and fluffy\n" + .string "POKéMON?\p" + .string "You already know, don't you?$" + +Text_1C199C:: @ 81C199C + .string "My bike's still acting up, man.$" + +Text_1C19BC:: @ 81C19BC + .string "Okay, kid!\n" + .string "Don't expect mercy this time!$" + +Text_1C19E5:: @ 81C19E5 + .string "ELI: Our twin power became even\n" + .string "better!$" + +Text_1C1A0D:: @ 81C1A0D + .string "ANNE: Our twin power powered up!$" + +Text_1C1A2E:: @ 81C1A2E + .string "We're to battle again?\n" + .string "This time, you're mine!$" + +Text_1C1A5D:: @ 81C1A5D + .string "I haven't forgotten you were with\n" + .string "those good-looking POKéMON.$" + +Text_1C1A9B:: @ 81C1A9B + .string "I'm taking ROCK TUNNEL to go to\n" + .string "LAVENDER…\p" + .string "But I keep getting stopped by\n" + .string "everyone along the way…$" + +Text_1C1AFB:: @ 81C1AFB + .string "Don't you dare patronize me today!\n" + .string "We're playing for keeps!$" + +Text_1C1B37:: @ 81C1B37 + .string "Bwahaha!\n" + .string "Great! I was bored again, eh!$" + +Text_1C1B5E:: @ 81C1B5E + .string "Hahaha!\n" + .string "A little toughie, as always!$" + +Text_1C1B83:: @ 81C1B83 + .string "I got up early every day to train\n" + .string "my POKéMON from cocoons!$" + +Text_1C1BBE:: @ 81C1BBE + .string "Hahahaha!\n" + .string "I'll win this time!$" + +Text_1C1BDC:: @ 81C1BDC + .string "Go win, my super BUG POKéMON!$" + +Text_1C1BFA:: @ 81C1BFA + .string "Wow, you came here again?\n" + .string "Maybe you're a POKéMANIAC, too?\l" + .string "Want to see my collection?$" + +Text_1C1C4F:: @ 81C1C4F + .string "Ha-hahah-ah-ha!\n" + .string "I can't stop sneezing!$" + +Text_1C1C76:: @ 81C1C76 + .string "Hi, kid!\n" + .string "Did I show you my POKéMON?$" + +Text_1C1C9A:: @ 81C1C9A + .string "I went out to a POKéMON GYM again.\p" + .string "…But I lost as usual.$" + +Text_1C1CD3:: @ 81C1CD3 + .string "Ah!\n" + .string "This mountain air is delicious!\l" + .string "It's so good, I can't leave!$" + +Text_1C1D14:: @ 81C1D14 + .string "My head is starting to spin.\n" + .string "I've been hiking for too long…$" + +Text_1C1D50:: @ 81C1D50 + .string "Win, lose, or draw!\n" + .string "Now for our rematch!$" + +Text_1C1D79:: @ 81C1D79 + .string "Competing is the ultimate thrill.\n" + .string "I still can't get enough!$" + +Text_1C1DB5:: @ 81C1DB5 + .string "You know, right?\n" + .string "Let's go, but don't cheat!$" + +Text_1C1DE1:: @ 81C1DE1 + .string "Hi, there!\p" + .string "But be careful!\n" + .string "I'm still laying down some cables!$" + +Text_1C1E1F:: @ 81C1E1F + .string "I became a TRAINER a while ago.\n" + .string "But, I think I can win.$" + +Text_1C1E57:: @ 81C1E57 + .string "Fwahaha!\n" + .string "I have never lost!\p" + .string "…And if I did, I've forgotten all\n" + .string "about it!$" + +Text_1C1E9F:: @ 81C1E9F + .string "I have never won before…\p" + .string "Perhaps I am destined to remain\n" + .string "that way…$" + +Text_1C1EE2:: @ 81C1EE2 + .string "I'm the best in my class.\n" + .string "I train every morning and night!$" + +Text_1C1F1D:: @ 81C1F1D + .string "Keep your eyes out for live wires!$" + +Text_1C1F40:: @ 81C1F40 + .string "I raised my POKéMON carefully.\n" + .string "They should be ready by now.\l" + .string "This time, they should win, too.$" + +Text_1C1F9D:: @ 81C1F9D + .string "Yeah!\n" + .string "I got a bite, here!\l" + .string "Th-this might be the real thing!$" + +Text_1C1FD8:: @ 81C1FD8 + .string "You're finally here.\n" + .string "Fishing is a waiting game.$" + +Text_1C2008:: @ 81C2008 + .string "Still can't find a MOON STONE…\n" + .string "Have you found one?$" + +Text_1C203B:: @ 81C203B + .string "Electricity has always been my\n" + .string "specialty.\p" + .string "I don't know a thing about POKéMON\n" + .string "of the sea, though.$" + +Text_1C209C:: @ 81C209C + .string "The FISHING FOOL vs. POKéMON KID!\n" + .string "Another round, fight!$" + +Text_1C20D4:: @ 81C20D4 + .string "I love fishing, don't get me wrong.\n" + .string "But, I wish I had more work…\l" + .string "…It's hard to give up fishing!$" + +Text_1C2134:: @ 81C2134 + .string "What's catching?\p" + .string "You'll never know unless you beat\n" + .string "me!$" + +Text_1C216B:: @ 81C216B + .string "JES: I'll win here today and\n" + .string "propose to my GIA.$" + +Text_1C219B:: @ 81C219B + .string "GIA: Hey, JES…\n" + .string "I've been waiting a long time now.\p" + .string "If we win today, I'll marry you!$" + +Text_1C21EE:: @ 81C21EE + .string "My bird POKéMON remember you!$" + +Text_1C220C:: @ 81C220C + .string "I want to be the best TRAINER \n" + .string "while I'm a kid!$" + +Text_1C223C:: @ 81C223C + .string "Wow!\n" + .string "You got more cool BADGES!$" + +Text_1C225B:: @ 81C225B + .string "My cutely grown POKéMON wish to\n" + .string "become reacquainted with you.$" + +Text_1C2299:: @ 81C2299 + .string "I cleaned out my savings and\n" + .string "bought more CARBOS.$" + +Text_1C22CA:: @ 81C22CA + .string "I'm not going to lose this time.\n" + .string "The wind's blowing my way!$" + +Text_1C2306:: @ 81C2306 + .string "Oh, you're back?\p" + .string "Sure, I'll play again with you,\n" + .string "sweetie.$" + +Text_1C2340:: @ 81C2340 + .string "Can't you forget that you battled\n" + .string "with me?$" + +Text_1C236B:: @ 81C236B + .string "What're you starin' at?$" + +Text_1C2383:: @ 81C2383 + .string "I always go with bird POKéMON.\n" + .string "I've dedicated myself to them.$" + +Text_1C23C1:: @ 81C23C1 + .string "I used TMs to teach good moves\n" + .string "to my POKéMON.$" + +Text_1C23EF:: @ 81C23EF + .string "My bird POKéMON should be ready\n" + .string "for battle this time.$" + +Text_1C2425:: @ 81C2425 + .string "Are you using TMs on POKéMON?\n" + .string "Just holding them is useless.$" + +Text_1C2461:: @ 81C2461 + .string "Have you taught your bird POKéMON\n" + .string "how to FLY?\p" + .string "You'll be able to soar with it into\n" + .string "the sky! Give it a try.$" + +Text_1C24CB:: @ 81C24CB + .string "The legend of the winged mirages…\n" + .string "You've heard it, right?$" + +Text_1C2505:: @ 81C2505 + .string "I'm really not into it, but okay.\n" + .string "Let's go!$" + +Text_1C2531:: @ 81C2531 + .string "Hey!\n" + .string "I remember you!\p" + .string "C'mon, c'mon.\n" + .string "Let's go, let's go, let's go!$" + +Text_1C2572:: @ 81C2572 + .string "You're here again, huh?\n" + .string "Shut up and battle.$" + +Text_1C259E:: @ 81C259E + .string "We've been riding here because of\n" + .string "the wide-open spaces.$" + +Text_1C25D6:: @ 81C25D6 + .string "POKéMON battle, right?\n" + .string "Cool! Rumble!$" + +Text_1C25FB:: @ 81C25FB + .string "KIRI: JAN, I hope we win today.$" + +Text_1C261B:: @ 81C261B + .string "JAN: KIRI, here we go!\n" + .string "Let's win for sure this time!$" + +Text_1C2650:: @ 81C2650 + .string "I'm going to keep battling with the\n" + .string "POKéMON I got in trades.$" + +Text_1C268D:: @ 81C268D + .string "You look gentle, so I think I can\n" + .string "beat you.\p" + .string "I'll give it one more go!$" + +Text_1C26D3:: @ 81C26D3 + .string "When I whistle, bird POKéMON\n" + .string "gather around.\p" + .string "They're amazingly cute!$" + +Text_1C2717:: @ 81C2717 + .string "Hmm? My birds are shivering!\n" + .string "Wait, aren't you that TRAINER…$" + +Text_1C2753:: @ 81C2753 + .string "Oh, you're a little cutie!\n" + .string "So like a darling POKéMON!\l" + .string "I remember you now!$" + +Text_1C279D:: @ 81C279D + .string "I raise POKéMON for protection\n" + .string "because I live alone.\p" + .string "That hasn't changed.$" + +Text_1C27E7:: @ 81C27E7 + .string "Hey, kid! C'mon!\n" + .string "I got these off some loser!$" + +Text_1C2814:: @ 81C2814 + .string "Fork over all your cash when you\n" + .string "lose to me, kid!$" + +Text_1C2846:: @ 81C2846 + .string "What's cool and happening?\n" + .string "Trading POKéMON, of course.$" + +Text_1C287D:: @ 81C287D + .string "Want to play with my POKéMON\n" + .string "again?$" + +Text_1C28A1:: @ 81C28A1 + .string "MYA: Hi, we keep meeting,\n" + .string "don't we?\p" + .string "Help me train my little brother\n" + .string "again?$" + +Text_1C28EC:: @ 81C28EC + .string "RON: My sister's gotten more\n" + .string "powerful…$" + +Text_1C2913:: @ 81C2913 + .string "What do you want?$" + +Text_1C2925:: @ 81C2925 + .string "Nice BIKE!\n" + .string "Hand it over quick!$" + +Text_1C2944:: @ 81C2944 + .string "Come out and play, little mouse.\n" + .string "I'll treat you right!$" + +Text_1C297B:: @ 81C297B + .string "Hey, wait a second!\n" + .string "Don't call me and then run away!$" + +Text_1C29B0:: @ 81C29B0 + .string "I'm feeling hungry and mean!\n" + .string "I really need a punching bag!$" + +Text_1C29EB:: @ 81C29EB + .string "Hey, there!\n" + .string "We'll have ourselves a good time!$" + +Text_1C2A19:: @ 81C2A19 + .string "JED: Are you here to see our\n" + .string "love, which knows no bounds?$" + +Text_1C2A53:: @ 81C2A53 + .string "LEA: Sometimes, the intensity of\n" + .string "our love scares me.$" + +Text_1C2A88:: @ 81C2A88 + .string "I told you, there's no getting rich\n" + .string "quick in battling kids.$" + +Text_1C2AC4:: @ 81C2AC4 + .string "I'm mighty proud of my bod, kiddo.\n" + .string "Come on!$" + +Text_1C2AF0:: @ 81C2AF0 + .string "You out for a stroll?$" + +Text_1C2B06:: @ 81C2B06 + .string "We're BIKERS!\n" + .string "We rule the roads, man!$" + +Text_1C2B2C:: @ 81C2B2C + .string "VOLTORB's going to seriously\n" + .string "electrify you today!$" + +Text_1C2B5E:: @ 81C2B5E + .string "I leveled up my POKéMON, but it\n" + .string "absolutely won't evolve. Why?$" + +Text_1C2B9C:: @ 81C2B9C + .string "Gaah! I really need to exercise\n" + .string "and seriously trim some flab!$" + +Text_1C2BDA:: @ 81C2BDA + .string "Be a rebel!$" + +Text_1C2BE6:: @ 81C2BE6 + .string "Yep, that's a nice BIKE!\n" + .string "How's it handle?$" + +Text_1C2C10:: @ 81C2C10 + .string "Get lost, kid!\n" + .string "I'm bushed!$" + +Text_1C2C2B:: @ 81C2C2B + .string "I've been checking every grassy\n" + .string "area for new POKéMON.\p" + .string "But it's not always easy…$" + +Text_1C2C7B:: @ 81C2C7B + .string "Koorukukukoo!\n" + .string "Is my birdcall getting better?$" + +Text_1C2CA8:: @ 81C2CA8 + .string "I warned you before, this is my\n" + .string "turf!\p" + .string "I don't want you coming around.$" + +Text_1C2CEE:: @ 81C2CEE + .string "I'm almost warmed up to go\n" + .string "out for a swim.$" + +Text_1C2D19:: @ 81C2D19 + .string "Wait! Slow down!\n" + .string "What if you have a heart attack?$" + +Text_1C2D4B:: @ 81C2D4B + .string "I love swimming!\n" + .string "I guess you're the surfing type.$" + +Text_1C2D7D:: @ 81C2D7D + .string "What's beyond the horizon?\n" + .string "Have you seen?$" + +Text_1C2DA7:: @ 81C2DA7 + .string "I tried diving for POKéMON again,\n" + .string "but it was a no-go like before.$" + +Text_1C2DE9:: @ 81C2DE9 + .string "I look at the sea to forget all\n" + .string "the bad things that happened.\p" + .string "…Like losing to you the last time!$" + +Text_1C2E4A:: @ 81C2E4A + .string "You always get to ride your\n" + .string "POKéMON…\p" + .string "It looks so relaxing.\n" + .string "Can I have it if I win?$" + +Text_1C2E9D:: @ 81C2E9D + .string "Swimming's great!\n" + .string "Sunburns aren't!$" + +Text_1C2EC0:: @ 81C2EC0 + .string "These waters are treacherous!\n" + .string "You shouldn't come back here!$" + +Text_1C2EFC:: @ 81C2EFC + .string "I swam here with my friends…\n" + .string "I'm tired…\l" + .string "Must we really battle again?$" + +Text_1C2F41:: @ 81C2F41 + .string "LIA: You know my brother just\n" + .string "became a TRAINER, right?\p" + .string "I want to make him better, so I\n" + .string "need your help again.$" + +Text_1C2FAE:: @ 81C2FAE + .string "LUC: My big sis taught me all\n" + .string "about POKéMON.\p" + .string "I wonder if I'm better?$" + +Text_1C2FF3:: @ 81C2FF3 + .string "The water is shallow here.\n" + .string "There are many people swimming.$" + +Text_1C302E:: @ 81C302E + .string "Are you jealous that I'm\n" + .string "vacationing on SEAFOAM?$" + +Text_1C305F:: @ 81C305F + .string "I love floating with the fishes\n" + .string "here among the waves.$" + +Text_1C3095:: @ 81C3095 + .string "Were you on vacation, too?$" + +Text_1C30B0:: @ 81C30B0 + .string "Check out my physique!\p" + .string "It's even more buff than ever\n" + .string "before!$" + +Text_1C30ED:: @ 81C30ED + .string "Why are you riding a POKéMON?\n" + .string "Haven't you learned to swim yet?$" + +Text_1C312C:: @ 81C312C + .string "I rode my bird POKéMON here.$" + +Text_1C3149:: @ 81C3149 + .string "My boyfriend gave me big pearls.\n" + .string "And, they've grown bigger!$" + +Text_1C3185:: @ 81C3185 + .string "I swam here from CINNABAR ISLAND.\n" + .string "It wasn't easy, like I said.$" + +Text_1C31C4:: @ 81C31C4 + .string "CINNABAR, in the west, has a LAB\n" + .string "for POKéMON.\p" + .string "My daddy works there.$" + +Text_1C3208:: @ 81C3208 + .string "You want to know if the fish are\n" + .string "biting?$" + +Text_1C3231:: @ 81C3231 + .string "I got a big haul again!\n" + .string "Wanna go for it once more?$" + +Text_1C3264:: @ 81C3264 + .string "The sea cleanses my body and soul!$" + +Text_1C3287:: @ 81C3287 + .string "ãょã†ã‚‚ ãŠã‚ˆãŽã«\n" + .string "ãã¡ã¾ã£ãŸãœ$" + +Text_1C3298:: @ 81C3298 + .string "I caught my POKéMON at sea.\n" + .string "And that's where I train them.$" + +Text_1C32D3:: @ 81C32D3 + .string "Right now, I'm in another triathlon\n" + .string "meet!$" + +Text_1C32FD:: @ 81C32FD + .string "Ahh!\n" + .string "Feel the sun and the wind!$" + +Text_1C331D:: @ 81C331D + .string "Hey, cut it out already.\n" + .string "You always scare away the fish!$" + +Text_1C3356:: @ 81C3356 + .string "Keep me company till I get a hit.$" + +Text_1C3378:: @ 81C3378 + .string "LIL: Huh? A battle again?\n" + .string "IAN, can't you do it alone?$" + +Text_1C33AE:: @ 81C33AE + .string "IAN: My sis is still a slob.\n" + .string "Help me get her into shape!$" + +Text_1C33E7:: @ 81C33E7 + .string "I won't lose while I'm here!$" + +Text_1C3404:: @ 81C3404 + .string "Dad took me to a great party on\n" + .string "the S.S. ANNE at VERMILION CITY.$" + +Text_1C3445:: @ 81C3445 + .string "I'm a cool guy.\n" + .string "I've got a girlfriend!\p" + .string "I'll show her how cool I am for\n" + .string "sure this time!$" + +Text_1C349C:: @ 81C349C + .string "Hi!\n" + .string "My boyfriend is cool!\l" + .string "My conditioning's good today!$" + +Text_1C34D4:: @ 81C34D4 + .string "I had this feeling…\n" + .string "I knew I had to battle you again!$" + +Text_1C350A:: @ 81C350A + .string "My friend has many cute POKéMON.\n" + .string "I'm so jealous!$" + +Text_1C353B:: @ 81C353B + .string "I just trained up on MT. MOON,\n" + .string "but I've still got gas in the tank!$" + +Text_1C357E:: @ 81C357E + .string "A POKéMANIAC lives on the cape.\n" + .string "Have you seen his collection?$" + +Text_1C35BC:: @ 81C35BC + .string "You're going to see BILL again?\n" + .string "First, we battle!$" + +Text_1C35EE:: @ 81C35EE + .string "I saw your feat from the grass!$" + +Text_1C360E:: @ 81C360E + .string "Okay!\n" + .string "I'll stomp you!$" + +Text_1C3624:: @ 81C3624 + .string "You always look so busy…\n" + .string "Aren't you getting tired?$" + +Text_1C3657:: @ 81C3657 + .string "You really must love coming to\n" + .string "NUGGET BRIDGE.$" + +Text_1C3685:: @ 81C3685 + .string "The time we battled…\p" + .string "Even though I was the second in\n" + .string "line, I was the best, wasn't I?$" + +Text_1C36DA:: @ 81C36DA + .string "People call this the NUGGET\n" + .string "BRIDGE!\p" + .string "You've already beaten us, so you're\n" + .string "not allowed to take the challenge…\p" + .string "…But, you're welcome to battle with\n" + .string "us again.$" + +Text_1C3773:: @ 81C3773 + .string "Lying back, rocked by the waves…\n" + .string "I don't notice time slipping by…$" + +Text_1C37B5:: @ 81C37B5 + .string "The weather's gorgeous!\n" + .string "I'll try not to spoil it.$" + +Text_1C37E7:: @ 81C37E7 + .string "My sunburn is starting to hurt…$" + +Text_1C3807:: @ 81C3807 + .string "The fire bird's mountain casts\n" + .string "a huge shadow…$" + +Text_1C3835:: @ 81C3835 + .string "I have this strong feeling that\n" + .string "I can win this time!$" + +Text_1C386A:: @ 81C386A + .string "Wait! Wait a second!\n" + .string "I'm sure I've hooked a big one!$" + +Text_1C389F:: @ 81C389F + .string "You'll help me out with my\n" + .string "training again?$" + +Text_1C38CA:: @ 81C38CA + .string "We haven't missed a single day of\n" + .string "training yet!$" + +Text_1C38FA:: @ 81C38FA + .string "Every morning, before breakfast,\n" + .string "I swim around this island…\l" + .string "Three times!$" + +Text_1C3943:: @ 81C3943 + .string "Dress appropriately for battle!\n" + .string "Lose that frivolous outfit, I said!$" + +Text_1C3987:: @ 81C3987 + .string "You know, everything tastes great\n" + .string "when you're out in the wild.$" + +Text_1C39C6:: @ 81C39C6 + .string "I ate too much again, so will you\n" + .string "battle us for some exercise?$" + +Text_1C3A05:: @ 81C3A05 + .string "KIA: My big brother and I make\n" + .string "an awesome combination!\p" + .string "We won't lose this time!$" + +Text_1C3A55:: @ 81C3A55 + .string "MIK: Together with KIA, we're\n" + .string "afraid of nothing!\p" + .string "We'll prove it to you this time!$" + +Text_1C3AA7:: @ 81C3AA7 + .string "Are we to battle again?$" + +Text_1C3ABF:: @ 81C3ABF + .string "From where have you come, and\n" + .string "where are you bound?$" + +Text_1C3AF2:: @ 81C3AF2 + .string "I want to swim without my float\n" + .string "ring soon.$" + +Text_1C3B1D:: @ 81C3B1D + .string "Yay, yay!\n" + .string "POKéMON!$" + +Text_1C3B30:: @ 81C3B30 + .string "Oh, no, didn't I tell you already?\n" + .string "Please, stay away from me!$" + +Text_1C3B6E:: @ 81C3B6E + .string "JOY: We've gotten stronger!\n" + .string "Lots and lots!$" + +Text_1C3B99:: @ 81C3B99 + .string "MEG: You can't beat us today!$" + +Text_1C3BB7:: @ 81C3BB7 + .string "Oh, hello!\p" + .string "Are you raising your POKéMON in a\n" + .string "good environment?$" + +Text_1C3BF6:: @ 81C3BF6 + .string "With these hands, I will create\n" + .string "my victory today.$" + +Text_1C3C28:: @ 81C3C28 + .string "Must I repeat myself?\n" + .string "I'm trying to paint.\l" + .string "Please keep out of my sight!$" + +Text_1C3C70:: @ 81C3C70 + .string "I haven't made any progress…\n" + .string "I still can't get the right angle…$" + +Text_1C3CB0:: @ 81C3CB0 + .string "Oh, you will give me another\n" + .string "opportunity to match wits with you?$" + +Text_1C3CF1:: @ 81C3CF1 + .string "They're almost finished making the\n" + .string "pool for my POKéMON.\p" + .string "You must drop in for a visit.$" + +Text_1C3D47:: @ 81C3D47 + .string "I'm a good runner.\n" + .string "I've gotten even faster!$" + +Text_1C3D73:: @ 81C3D73 + .string "I say, friend!\n" + .string "Let us enjoy our time together!$" + +Text_1C3DA2:: @ 81C3DA2 + .string "I'm the eldest of the BIRD\n" + .string "BROTHERS. Remember me?\p" + .string "That's right, I'm the one who loves\n" + .string "birds for their beaks!$" + +Text_1C3E0F:: @ 81C3E0F + .string "I'm the middle kid of the BIRD\n" + .string "BROTHERS.\p" + .string "I'm the one that loves wings.\n" + .string "Let's battle again!$" + +Text_1C3E6A:: @ 81C3E6A + .string "I'm the youngest of the BIRD\n" + .string "BROTHERS.\p" + .string "I love birds for their down.\n" + .string "I didn't think I'd see you again!$" + +Text_1C3ED0:: @ 81C3ED0 + .string "I'm still having no luck at all.\n" + .string "A battle'd be a change of pace!$" + +Text_1C3F11:: @ 81C3F11 + .string "Gasp… Gasp…\p" + .string "I swam here from SIX ISLAND's port\n" + .string "in one go again.$" + +Text_1C3F51:: @ 81C3F51 + .string "You always come along while I'm\n" + .string "swimming.$" + +Text_1C3F7B:: @ 81C3F7B + .string "AVA: Let's have another\n" + .string "two-on-two marine battle today!$" + +Text_1C3FB3:: @ 81C3FB3 + .string "GEB: My big sister and I are way\n" + .string "tougher than before!$" + +Text_1C3FE9:: @ 81C3FE9 + .string "…Huh?\p" + .string "I envision my house, but TELEPORT\n" + .string "always brings me here!$" + +Text_1C4028:: @ 81C4028 + .string "Oh, hello.\n" + .string "A pleasant breeze is blowing again.$" + +Text_1C4057:: @ 81C4057 + .string "Hehehe, I'm practicing in secret\n" + .string "again.$" + +Text_1C407F:: @ 81C407F + .string "What, you're sick of seeing\n" + .string "SWIMMERS like me?\p" + .string "Aww, don't be hatin'!\n" + .string "Battle with me again.$" + +Text_1C40D9:: @ 81C40D9 + .string "Sigh…\n" + .string "My boyfriend's busy again…$" + +Text_1C40FA:: @ 81C40FA + .string "Come on, tell me, where are the\n" + .string "mountains around these parts?$" + +Text_1C4138:: @ 81C4138 + .string "MIU: Hello, POKéMON!\n" + .string "It's time to play again!$" + +Text_1C4166:: @ 81C4166 + .string "MIA: Hello, POKéMON!\n" + .string "It's time to battle again!$" + +Text_1C4196:: @ 81C4196 + .string "There appear to be many secrets\n" + .string "still unsolved in this world.$" + +Text_1C41D4:: @ 81C41D4 + .string "Hi, didn't we meet before?\n" + .string "What compelled you to come back?$" + +Text_1C4210:: @ 81C4210 + .string "It's been said that there are\n" + .string "mysterious stones on this island.\p" + .string "Have you discovered anything since\n" + .string "we last met?$" + +Text_1C4280:: @ 81C4280 + .string "A rematch with you, so high up!$" + +Text_1C42A0:: @ 81C42A0 + .string "I'm pretty familiar with the land\n" + .string "around these parts.$" + +Text_1C42D6:: @ 81C42D6 + .string "I sensed your approach.$" + +Text_1C42EE:: @ 81C42EE + .string "Somewhere on this island, peculiar\n" + .string "POKéMON are sleeping.$" + +Text_1C4327:: @ 81C4327 + .string "Kyahaha!\p" + .string "Coming back won't change a thing.\n" + .string "I'll flick you away effortlessly!$" + +Text_1C4374:: @ 81C4374 + .string "Howdy! You're a member of my\n" + .string "fan club, isn't that right?$" + +Text_1C43AD:: @ 81C43AD + .string "This island is too spread out…\n" + .string "Patrolling the place is a drag…$" + +Text_1C43EC:: @ 81C43EC + .string "I don't forgive people who abuse\n" + .string "POKéMON!$" + +Text_1C4416:: @ 81C4416 + .string "EVE: I'll team up with JON and\n" + .string "battle together again.$" + +Text_1C444C:: @ 81C444C + .string "JON: When I'm with EVE, it feels\n" + .string "like we could never lose, not ever.$" + +Text_1C4491:: @ 81C4491 + .string "Let's have another battle.\n" + .string "My conditioning's in top form!$" + +Text_1C44CB:: @ 81C44CB + .string "It doesn't matter if you happen to\n" + .string "have the strongest POKéMON…\p" + .string "It doesn't mean a thing if you don't\n" + .string "know how to use them properly!$" + +Text_1C454E:: @ 81C454E + .string "I work to protect the environment.\n" + .string "In turn, nature protects me!$" + +Text_1C458E:: @ 81C458E + .string "Every time we meet, you have those\n" + .string "snazzy shoes on.$" + +Text_1C45C2:: @ 81C45C2 + .string "You must have gotten tougher.\n" + .string "Let me battle you, please!$" + +Text_1C45FB:: @ 81C45FB + .string "I was given the best possible\n" + .string "education to become this strong.\p" + .string "I won't lose this time.\n" + .string "Absolutely not!$" + +Text_1C4662:: @ 81C4662 + .string "LEX: My darling NYA, together\n" + .string "we will win for certain!$" + +Text_1C4699:: @ 81C4699 + .string "NYA: I won't drag down my mentor\n" + .string "LEX! We're going to win!$" + +Text_1C46D3:: @ 81C46D3 + .string "Have you discovered anything about\n" + .string "this stone chamber?$" + +Text_1C470A:: @ 81C470A + .string "A mystic POKéMON is said to sleep\n" + .string "inside here.$" + +Text_1C4739:: @ 81C4739 + .string "My teacher is showing me how to\n" + .string "paint some more.$" + +Text_1C476A:: @ 81C476A + .string "Today, in addition to our lesson,\n" + .string "we came to see the chamber again.$" + +VictoryRoad_2F_EventScript_1C47AE:: @ 81C47AE + lock + faceplayer + checkflag FLAG_TUTOR_DOUBLE_EDGE + goto_if TRUE, EventScript_1C480C + msgbox Text_1749F9, 5 + compare_var_to_value VAR_RESULT, 0 + goto_if eq, EventScript_1C4802 + call EventScript_1C4F37 + compare_var_to_value VAR_RESULT, 0 + goto_if eq, EventScript_1C4802 + msgbox Text_174AE2 + setvar VAR_0x8005, MOVETUTOR_DOUBLE_EDGE + call EventScript_1C4F30 + compare_var_to_value VAR_RESULT, 0 + goto_if eq, EventScript_1C4802 + setflag FLAG_TUTOR_DOUBLE_EDGE + goto EventScript_1C480C + end + +EventScript_1C4802:: @ 81C4802 + msgbox Text_174ABC + release + end + +EventScript_1C480C:: @ 81C480C + msgbox Text_174B0C + release + end + +EventScript_1C4816:: @ 81C4816 + lock + faceplayer + checkflag FLAG_TUTOR_THUNDER_WAVE + goto_if TRUE, EventScript_1C4874 + msgbox Text_175711, 5 + compare_var_to_value VAR_RESULT, 0 + goto_if eq, EventScript_1C486A + call EventScript_1C4F37 + compare_var_to_value VAR_RESULT, 0 + goto_if eq, EventScript_1C486A + msgbox Text_1757C1 + setvar VAR_0x8005, MOVETUTOR_THUNDER_WAVE + call EventScript_1C4F30 + compare_var_to_value VAR_RESULT, 0 + goto_if eq, EventScript_1C486A + setflag FLAG_TUTOR_THUNDER_WAVE + goto EventScript_1C4874 + end + +EventScript_1C486A:: @ 81C486A + msgbox Text_17579D + release + end + +EventScript_1C4874:: @ 81C4874 + msgbox Text_1757EC + release + end + +RockTunnel_B1F_EventScript_1C487E:: @ 81C487E + lock + faceplayer + checkflag FLAG_TUTOR_ROCK_SLIDE + goto_if TRUE, EventScript_1C48DC + msgbox Text_1799E0, 5 + compare_var_to_value VAR_RESULT, 0 + goto_if eq, EventScript_1C48D2 + call EventScript_1C4F37 + compare_var_to_value VAR_RESULT, 0 + goto_if eq, EventScript_1C48D2 + msgbox Text_179AE1 + setvar VAR_0x8005, MOVETUTOR_ROCK_SLIDE + call EventScript_1C4F30 + compare_var_to_value VAR_RESULT, 0 + goto_if eq, EventScript_1C48D2 + setflag FLAG_TUTOR_ROCK_SLIDE + goto EventScript_1C48DC + end + +EventScript_1C48D2:: @ 81C48D2 + msgbox Text_179AC0 + release + end + +EventScript_1C48DC:: @ 81C48DC + msgbox Text_179B0A + release + end + +MtEmber_Exterior_EventScript_1C48E6:: @ 81C48E6 + lock + faceplayer + checkflag FLAG_TUTOR_EXPLOSION + goto_if TRUE, EventScript_1C4944 + msgbox Text_17A642, 5 + compare_var_to_value VAR_RESULT, 0 + goto_if eq, EventScript_1C493A + call EventScript_1C4F37 + compare_var_to_value VAR_RESULT, 0 + goto_if eq, EventScript_1C493A + msgbox Text_17A717 + setvar VAR_0x8005, MOVETUTOR_EXPLOSION + call EventScript_1C4F30 + compare_var_to_value VAR_RESULT, 0 + goto_if eq, EventScript_1C493A + setflag FLAG_TUTOR_EXPLOSION + goto EventScript_1C4944 + end + +EventScript_1C493A:: @ 81C493A + msgbox Text_17A6ED + release + end + +EventScript_1C4944:: @ 81C4944 + msgbox Text_17A756 + release + end + +Route4_EventScript_1C494E:: @ 81C494E + lock + faceplayer + checkflag FLAG_TUTOR_META_PUNCH + goto_if TRUE, EventScript_1C49AC + msgbox Text_1839D5, 5 + compare_var_to_value VAR_RESULT, 0 + goto_if eq, EventScript_1C49A2 + call EventScript_1C4F37 + compare_var_to_value VAR_RESULT, 0 + goto_if eq, EventScript_1C49A2 + msgbox Text_183ABF + setvar VAR_0x8005, MOVETUTOR_MEGA_PUNCH + call EventScript_1C4F30 + compare_var_to_value VAR_RESULT, 0 + goto_if eq, EventScript_1C49A2 + setflag FLAG_TUTOR_META_PUNCH + goto EventScript_1C49AC + end + +EventScript_1C49A2:: @ 81C49A2 + msgbox Text_183A83 + release + end + +EventScript_1C49AC:: @ 81C49AC + msgbox Text_183AE2 + release + end + +Route4_EventScript_1C49B6:: @ 81C49B6 + lock + faceplayer + checkflag FLAG_TUTOR_MEGA_KICK + goto_if TRUE, EventScript_1C4A14 + msgbox Text_183B74, 5 + compare_var_to_value VAR_RESULT, 0 + goto_if eq, EventScript_1C4A0A + call EventScript_1C4F37 + compare_var_to_value VAR_RESULT, 0 + goto_if eq, EventScript_1C4A0A + msgbox Text_183C68 + setvar VAR_0x8005, MOVETUTOR_MEGA_KICK + call EventScript_1C4F30 + compare_var_to_value VAR_RESULT, 0 + goto_if eq, EventScript_1C4A0A + setflag FLAG_TUTOR_MEGA_KICK + goto EventScript_1C4A14 + end + +EventScript_1C4A0A:: @ 81C4A0A + msgbox Text_183C25 + release + end + +EventScript_1C4A14:: @ 81C4A14 + msgbox Text_183C94 + release + end + +EventScript_1C4A1E:: @ 81C4A1E + lock + faceplayer + checkflag FLAG_TUTOR_DREAM_EATER + goto_if TRUE, EventScript_1C4A7C + msgbox Text_17E316, 5 + compare_var_to_value VAR_RESULT, 0 + goto_if eq, EventScript_1C4A72 + call EventScript_1C4F37 + compare_var_to_value VAR_RESULT, 0 + goto_if eq, EventScript_1C4A72 + msgbox Text_17E3F1 + setvar VAR_0x8005, MOVETUTOR_DREAM_EATER + call EventScript_1C4F30 + compare_var_to_value VAR_RESULT, 0 + goto_if eq, EventScript_1C4A72 + setflag FLAG_TUTOR_DREAM_EATER + goto EventScript_1C4A7C + end + +EventScript_1C4A72:: @ 81C4A72 + msgbox Text_17E3E9 + release + end + +EventScript_1C4A7C:: @ 81C4A7C + msgbox Text_17E41B + release + end + +EventScript_1C4A86:: @ 81C4A86 + lock + faceplayer + checkflag FLAG_TUTOR_SOFT_BOILED + goto_if TRUE, EventScript_1C4AE4 + msgbox Text_180388, 5 + compare_var_to_value VAR_RESULT, 0 + goto_if eq, EventScript_1C4ADA + call EventScript_1C4F37 + compare_var_to_value VAR_RESULT, 0 + goto_if eq, EventScript_1C4ADA + msgbox Text_180484 + setvar VAR_0x8005, MOVETUTOR_SOFT_BOILED + call EventScript_1C4F30 + compare_var_to_value VAR_RESULT, 0 + goto_if eq, EventScript_1C4ADA + setflag FLAG_TUTOR_SOFT_BOILED + goto EventScript_1C4AE4 + end + +EventScript_1C4ADA:: @ 81C4ADA + msgbox Text_18043F + release + end + +EventScript_1C4AE4:: @ 81C4AE4 + msgbox Text_1804C4 + release + end + +FuchsiaCity_EventScript_1C4AEE:: @ 81C4AEE + lock + faceplayer + checkflag FLAG_TUTOR_SUBSTITUTE + goto_if TRUE, EventScript_1C4B4C + msgbox Text_180948, 5 + compare_var_to_value VAR_RESULT, 0 + goto_if eq, EventScript_1C4B42 + call EventScript_1C4F37 + compare_var_to_value VAR_RESULT, 0 + goto_if eq, EventScript_1C4B42 + msgbox Text_180A57 + setvar VAR_0x8005, MOVETUTOR_SUBSTITUTE + call EventScript_1C4F30 + compare_var_to_value VAR_RESULT, 0 + goto_if eq, EventScript_1C4B42 + setflag FLAG_TUTOR_SUBSTITUTE + goto EventScript_1C4B4C + end + +EventScript_1C4B42:: @ 81C4B42 + msgbox Text_180A32 + release + end + +EventScript_1C4B4C:: @ 81C4B4C + msgbox Text_180A80 + release + end + +SevenIsland_EventScript_1C4B56:: @ 81C4B56 + lock + faceplayer + checkflag FLAG_TUTOR_SWORDS_DANCE + goto_if TRUE, EventScript_1C4BB4 + msgbox Text_182F01, 5 + compare_var_to_value VAR_RESULT, 0 + goto_if eq, EventScript_1C4BAA + call EventScript_1C4F37 + compare_var_to_value VAR_RESULT, 0 + goto_if eq, EventScript_1C4BAA + msgbox Text_182FD9 + setvar VAR_0x8005, MOVETUTOR_SWORDS_DANCE + call EventScript_1C4F30 + compare_var_to_value VAR_RESULT, 0 + goto_if eq, EventScript_1C4BAA + setflag FLAG_TUTOR_SWORDS_DANCE + goto EventScript_1C4BB4 + end + +EventScript_1C4BAA:: @ 81C4BAA + msgbox Text_182FC1 + release + end + +EventScript_1C4BB4:: @ 81C4BB4 + msgbox Text_18300D + release + end + +PewterCity_Museum_1F_EventScript_1C4BBE:: @ 81C4BBE + lock + faceplayer + checkflag FLAG_TUTOR_SEISMIC_TOSS + goto_if TRUE, EventScript_1C4C1C + msgbox Text_1909A3, 5 + compare_var_to_value VAR_RESULT, 0 + goto_if eq, EventScript_1C4C12 + call EventScript_1C4F37 + compare_var_to_value VAR_RESULT, 0 + goto_if eq, EventScript_1C4C12 + msgbox Text_190AD5 + setvar VAR_0x8005, MOVETUTOR_SEISMIC_TOSS + call EventScript_1C4F30 + compare_var_to_value VAR_RESULT, 0 + goto_if eq, EventScript_1C4C12 + setflag FLAG_TUTOR_SEISMIC_TOSS + goto EventScript_1C4C1C + end + +EventScript_1C4C12:: @ 81C4C12 + msgbox Text_190AA9 + release + end + +EventScript_1C4C1C:: @ 81C4C1C + msgbox Text_190B00 + release + end + +EventScript_1C4C26:: @ 81C4C26 + lock + faceplayer + checkflag FLAG_TUTOR_COUNTER + goto_if TRUE, EventScript_1C4C84 + msgbox Text_195928, 5 + compare_var_to_value VAR_RESULT, 0 + goto_if eq, EventScript_1C4C7A + call EventScript_1C4F37 + compare_var_to_value VAR_RESULT, 0 + goto_if eq, EventScript_1C4C7A + msgbox Text_195A08 + setvar VAR_0x8005, MOVETUTOR_COUNTER + call EventScript_1C4F30 + compare_var_to_value VAR_RESULT, 0 + goto_if eq, EventScript_1C4C7A + setflag FLAG_TUTOR_COUNTER + goto EventScript_1C4C84 + end + +EventScript_1C4C7A:: @ 81C4C7A + msgbox Text_1959CC + release + end + +EventScript_1C4C84:: @ 81C4C84 + msgbox Text_195A31 + release + end + +EventScript_1C4C8E:: @ 81C4C8E + lock + faceplayer + checkflag FLAG_TUTOR_METRONOME + goto_if TRUE, EventScript_1C4CEC + msgbox Text_19A137, 5 + compare_var_to_value VAR_RESULT, 0 + goto_if eq, EventScript_1C4CE2 + call EventScript_1C4F37 + compare_var_to_value VAR_RESULT, 0 + goto_if eq, EventScript_1C4CE2 + msgbox Text_19A1EA + setvar VAR_0x8005, MOVETUTOR_METRONOME + call EventScript_1C4F30 + compare_var_to_value VAR_RESULT, 0 + goto_if eq, EventScript_1C4CE2 + setflag FLAG_TUTOR_METRONOME + goto EventScript_1C4CEC + end + +EventScript_1C4CE2:: @ 81C4CE2 + msgbox Text_19A1CB + release + end + +EventScript_1C4CEC:: @ 81C4CEC + msgbox Text_19A20E + release + end + +EventScript_1C4CF6:: @ 81C4CF6 + checkflag FLAG_TUTOR_MIMIC + goto_if TRUE, EventScript_1C4D59 + msgbox Text_19AD85, 5 + compare_var_to_value VAR_RESULT, 0 + goto_if eq, EventScript_1C4D4F + call EventScript_1C4F37 + compare_var_to_value VAR_RESULT, 0 + goto_if eq, EventScript_1C4D4F + msgbox Text_19ADEE + setvar VAR_0x8005, MOVETUTOR_MIMIC + call EventScript_1C4F30 + lock + faceplayer + compare_var_to_value VAR_RESULT, 0 + goto_if eq, EventScript_1C4D4F + removeitem ITEM_POKE_DOLL, 1 + setflag FLAG_TUTOR_MIMIC + goto EventScript_1C4D59 + end + +EventScript_1C4D4F:: @ 81C4D4F + msgbox Text_19ADD8 + release + end + +EventScript_1C4D59:: @ 81C4D59 + checkplayergender + compare_var_to_value VAR_RESULT, 0 + call_if eq, EventScript_1C4D72 + compare_var_to_value VAR_RESULT, 1 + call_if eq, EventScript_1C4D7B + release + end + +EventScript_1C4D72:: @ 81C4D72 + msgbox Text_19AE1C + return + +EventScript_1C4D7B:: @ 81C4D7B + msgbox Text_19AE90 + return + +FourIsland_House1_EventScript_1C4D84:: @ 81C4D84 + lock + faceplayer + checkflag FLAG_TUTOR_BODY_SLAM + goto_if TRUE, EventScript_1C4DE2 + msgbox Text_1A3505, 5 + compare_var_to_value VAR_RESULT, 0 + goto_if eq, EventScript_1C4DD8 + call EventScript_1C4F37 + compare_var_to_value VAR_RESULT, 0 + goto_if eq, EventScript_1C4DD8 + msgbox Text_1A35DA + setvar VAR_0x8005, MOVETUTOR_BODY_SLAM + call EventScript_1C4F30 + compare_var_to_value VAR_RESULT, 0 + goto_if eq, EventScript_1C4DD8 + setflag FLAG_TUTOR_BODY_SLAM + goto EventScript_1C4DE2 + end + +EventScript_1C4DD8:: @ 81C4DD8 + msgbox Text_1A35C7 + release + end + +EventScript_1C4DE2:: @ 81C4DE2 + msgbox Text_1A3609 + release + end + +TwoIsland_CapeBrink_House_EventScript_1C4DEC:: @ 81C4DEC + special sub_8110AB4 + compare_var_to_value VAR_RESULT, 2 + goto_if eq, EventScript_1A7AE0 + special sub_8112364 + lock + faceplayer + checkflag FLAG_LEARNED_ALL_MOVES_AT_CAPE_BRINK + goto_if TRUE, EventScript_1C4EA1 + checkflag FLAG_TEMP_2 + goto_if TRUE, EventScript_1C4E97 + getfirstpartymonname 0 + msgbox Text_1A46C6 + specialvar VAR_RESULT, Special_CapeBrinkGetMoveToTeachLeadPokemon + compare_var_to_value VAR_RESULT, 0 + goto_if eq, EventScript_1C4F26 + copyvar VAR_0x8009, VAR_0x8005 + compare_var_to_value VAR_FACING, 2 + call_if eq, EventScript_1C4EF0 + compare_var_to_value VAR_FACING, 1 + call_if eq, EventScript_1C4EFB + compare_var_to_value VAR_FACING, 4 + call_if eq, EventScript_1C4F06 + compare_var_to_value VAR_FACING, 3 + call_if eq, EventScript_1C4F11 + msgbox Text_1A4751, 5 + compare_var_to_value VAR_RESULT, 0 + goto_if eq, EventScript_1C4F1C + call EventScript_1C4F37 + compare_var_to_value VAR_RESULT, 0 + goto_if eq, EventScript_1C4F1C + msgbox Text_1A4814 + closemessage + fadescreen 1 + goto EventScript_1C4EDA + +EventScript_1C4E8F:: @ 81C4E8F + fadescreen 0 + goto EventScript_1C4EAB + end + +EventScript_1C4E97:: @ 81C4E97 + msgbox Text_1A48B3 + release + end + +EventScript_1C4EA1:: @ 81C4EA1 + msgbox Text_1A4972 + release + end + +EventScript_1C4EAB:: @ 81C4EAB + copyvar VAR_0x8005, VAR_0x8009 + specialvar VAR_RESULT, Special_HasLearnedAllMovesFromCapeBrinkTutor + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1C4ECD + msgbox Text_1A4865 + setflag FLAG_TEMP_2 + release + end + +EventScript_1C4ECD:: @ 81C4ECD + msgbox Text_1A48F3 + setflag FLAG_LEARNED_ALL_MOVES_AT_CAPE_BRINK + release + end + +EventScript_1C4EDA:: @ 81C4EDA + call EventScript_1C4F30 + compare_var_to_value VAR_RESULT, 0 + goto_if eq, EventScript_1C4F1C + goto EventScript_1C4EAB + end + +EventScript_1C4EF0:: @ 81C4EF0 + applymovement 1, Movement_1C4F4C + waitmovement 0 + return + +EventScript_1C4EFB:: @ 81C4EFB + applymovement 1, Movement_1C4F4E + waitmovement 0 + return + +EventScript_1C4F06:: @ 81C4F06 + applymovement 1, Movement_1C4F50 + waitmovement 0 + return + +EventScript_1C4F11:: @ 81C4F11 + applymovement 1, Movement_1C4F52 + waitmovement 0 + return + +EventScript_1C4F1C:: @ 81C4F1C + msgbox Text_1A47E5 + release + end + +EventScript_1C4F26:: @ 81C4F26 + msgbox Text_1A4737 + release + end + +EventScript_1C4F30:: @ 81C4F30 + special sub_812781C + waitstate + lock + faceplayer + return + +EventScript_1C4F37:: @ 81C4F37 + textcolor 3 + special sub_80699BC + signmsg + msgbox Text_1A644F, 5 + normalmsg + call EventScript_1A6675 + return + +Movement_1C4F4C:: @ 81C4F4C + step_52 + step_end + +Movement_1C4F4E:: @ 81C4F4E + step_53 + step_end + +Movement_1C4F50:: @ 81C4F50 + step_54 + step_end + +Movement_1C4F52:: @ 81C4F52 + step_55 + step_end + +SevenIsland_TrainerTower_1F_MapScript1_1C4F54:: @ 81C4F54 +SevenIsland_TrainerTower_2F_MapScript1_1C4F54:: @ 81C4F54 +SevenIsland_TrainerTower_3F_MapScript1_1C4F54:: @ 81C4F54 +SevenIsland_TrainerTower_4F_MapScript1_1C4F54:: @ 81C4F54 +SevenIsland_TrainerTower_5F_MapScript1_1C4F54:: @ 81C4F54 +SevenIsland_TrainerTower_6F_MapScript1_1C4F54:: @ 81C4F54 +SevenIsland_TrainerTower_7F_MapScript1_1C4F54:: @ 81C4F54 +SevenIsland_TrainerTower_8F_MapScript1_1C4F54:: @ 81C4F54 +SevenIsland_TrainerTower_Elevator_MapScript1_1C4F54:: @ 81C4F54 +SevenIsland_TrainerTower_Roof_MapScript1_1C4F54:: @ 81C4F54 + setvar VAR_0x4002, 0 + setvar VAR_0x8004, 10 + special sub_815D9E8 + end + +SevenIsland_TrainerTower_1F_MapScript2_1C4F62:: @ 81C4F62 +SevenIsland_TrainerTower_2F_MapScript2_1C4F62:: @ 81C4F62 +SevenIsland_TrainerTower_3F_MapScript2_1C4F62:: @ 81C4F62 +SevenIsland_TrainerTower_4F_MapScript2_1C4F62:: @ 81C4F62 +SevenIsland_TrainerTower_5F_MapScript2_1C4F62:: @ 81C4F62 +SevenIsland_TrainerTower_6F_MapScript2_1C4F62:: @ 81C4F62 +SevenIsland_TrainerTower_7F_MapScript2_1C4F62:: @ 81C4F62 +SevenIsland_TrainerTower_8F_MapScript2_1C4F62:: @ 81C4F62 + setvar VAR_0x8004, 0 + special sub_815D9E8 + switch VAR_RESULT + case 0, EventScript_1C4FA7 + case 1, EventScript_1C4FC5 + case 2, EventScript_1C5019 + setflag FLAG_TEMP_2 + setflag FLAG_TEMP_3 + setflag FLAG_TEMP_4 + setflag FLAG_TEMP_5 + setvar VAR_0x400E, 1 + setvar VAR_0x400F, 1 + end + +EventScript_1C4FA7:: @ 81C4FA7 + setflag FLAG_TEMP_2 + setflag FLAG_TEMP_4 + setflag FLAG_TEMP_5 + setvar VAR_0x400F, 1 + setobjectxyperm 3, 15, 13 + setobjectmovementtype 3, 9 + goto EventScript_1C5042 + +EventScript_1C4FC5:: @ 81C4FC5 + setflag FLAG_TEMP_3 + setflag FLAG_TEMP_4 + setvar VAR_0x400E, 1 + setvar VAR_0x8004, 5 + special sub_815D9E8 + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1C4FFE + setobjectxyperm 2, 10, 12 + setobjectmovementtype 2, 9 + setobjectxyperm 5, 10, 13 + setobjectmovementtype 5, 9 + goto EventScript_1C5042 + +EventScript_1C4FFE:: @ 81C4FFE + setobjectxyperm 2, 10, 12 + setobjectmovementtype 2, 8 + setobjectxyperm 5, 11, 12 + setobjectmovementtype 5, 8 + goto EventScript_1C5042 + +EventScript_1C5019:: @ 81C5019 + setflag FLAG_TEMP_5 + setvar VAR_0x400F, 1 + setobjectxyperm 2, 10, 10 + setobjectmovementtype 2, 8 + setobjectxyperm 3, 14, 13 + setobjectmovementtype 3, 9 + setobjectxyperm 4, 10, 16 + setobjectmovementtype 4, 7 +EventScript_1C5042: + setflag FLAG_TEMP_6 + end + +SevenIsland_TrainerTower_1F_MapScript3_1C5046:: @ 81C5046 +SevenIsland_TrainerTower_2F_MapScript3_1C5046:: @ 81C5046 +SevenIsland_TrainerTower_3F_MapScript3_1C5046:: @ 81C5046 +SevenIsland_TrainerTower_4F_MapScript3_1C5046:: @ 81C5046 +SevenIsland_TrainerTower_5F_MapScript3_1C5046:: @ 81C5046 +SevenIsland_TrainerTower_6F_MapScript3_1C5046:: @ 81C5046 +SevenIsland_TrainerTower_7F_MapScript3_1C5046:: @ 81C5046 +SevenIsland_TrainerTower_8F_MapScript3_1C5046:: @ 81C5046 +SevenIsland_TrainerTower_Elevator_MapScript2_1C5046:: @ 81C5046 +SevenIsland_TrainerTower_Roof_MapScript2_1C5046:: @ 81C5046 + map_script_2 VAR_0x4002, 0, EventScript_1C5050 + .2byte 0 + +EventScript_1C5050:: @ 81C5050 + setvar VAR_0x4002, 1 + setvar VAR_0x8004, 5 + special sub_815D9E8 + compare_var_to_value VAR_RESULT, 0 + goto_if eq, EventScript_1C5072 + setvar VAR_0x400E, 1 + setvar VAR_0x400F, 1 +EventScript_1C5072: + setvar VAR_0x8004, 18 + special sub_815D9E8 + compare_var_to_value VAR_RESULT, 1 + goto_if eq, EventScript_1C5086 + end + +EventScript_1C5086:: @ 81C5086 + warp MAP_SEVEN_ISLAND_TRAINER_TOWER_LOBBY, 255, 9, 7 + waitstate +EventScript_1C508F:: + setvar VAR_0x8004, 3 + setvar VAR_0x8005, 0 + special sub_815D9E8 + switch VAR_RESULT + case 0, EventScript_1C50C2 + case 1, EventScript_1C510D + case 2, EventScript_1C515C +EventScript_1C50C2: + setvar VAR_0x8004, 19 + special sub_815D9E8 + applymovement 3, Movement_1A75DB + waitmovement 0 + applymovement 3, Movement_1A75DD + waitmovement 0 + setvar VAR_0x400E, 1 + applymovement 3, Movement_1C5541 + waitmovement 0 + setvar VAR_0x8004, 1 + setvar VAR_0x8005, 2 + setvar VAR_0x8006, 0 + special sub_815D9E8 + msgbox gStringVar4 + closemessage + goto EventScript_1C5219 + +EventScript_1C510D:: @ 81C510D + setvar VAR_0x8004, 1 + setvar VAR_0x8005, 2 + copyvar VAR_0x8006, VAR_0x4003 + special sub_815D9E8 + msgbox gStringVar4 + setvar VAR_0x8004, 1 + setvar VAR_0x8005, 2 + addvar VAR_0x4003, 1 + compare_var_to_value VAR_0x4003, 1 + goto_if eq, EventScript_1C5146 + setvar VAR_0x4003, 0 +EventScript_1C5146: + copyvar VAR_0x8006, VAR_0x4003 + special sub_815D9E8 + msgbox gStringVar4 + closemessage + goto EventScript_1C5219 + +EventScript_1C515C:: @ 81C515C + switch VAR_0x4001 + case 0, EventScript_1C5182 + case 1, EventScript_1C51AD + case 2, EventScript_1C51D8 +EventScript_1C5182: + setvar VAR_0x8004, 19 + special sub_815D9E8 + applymovement 4, Movement_1A75DB + waitmovement 0 + applymovement 4, Movement_1A75DD + waitmovement 0 + applymovement 4, Movement_1C5546 + waitmovement 0 + goto EventScript_1C51FE + +EventScript_1C51AD:: @ 81C51AD + setvar VAR_0x8004, 19 + special sub_815D9E8 + applymovement 2, Movement_1A75DB + waitmovement 0 + applymovement 2, Movement_1A75DD + waitmovement 0 + applymovement 2, Movement_1C5549 + waitmovement 0 + goto EventScript_1C51FE + +EventScript_1C51D8:: @ 81C51D8 + setvar VAR_0x8004, 19 + special sub_815D9E8 + applymovement 3, Movement_1A75DB + waitmovement 0 + applymovement 3, Movement_1A75DD + waitmovement 0 + applymovement 3, Movement_1C5542 + waitmovement 0 +EventScript_1C51FE: + setvar VAR_0x8004, 1 + setvar VAR_0x8005, 2 + copyvar VAR_0x8006, VAR_0x4001 + special sub_815D9E8 + msgbox gStringVar4 + closemessage +EventScript_1C5219: + setvar VAR_0x8004, 2 + setvar VAR_0x8005, 0 + special sub_815D9E8 + waitstate + switch VAR_RESULT + case 1, EventScript_1C524D + case 2, EventScript_1C52E0 + case 3, EventScript_1C52E0 +EventScript_1C524D: + setvar VAR_0x8004, 3 + setvar VAR_0x8005, 0 + special sub_815D9E8 + switch VAR_RESULT + case 0, EventScript_1C52D7 + case 1, EventScript_1C52BA + case 2, EventScript_1C5280 +EventScript_1C5280: + switch VAR_0x4001 + case 0, EventScript_1C52A6 + case 1, EventScript_1C52B0 + case 2, EventScript_1C52D0 +EventScript_1C52A6: + addvar VAR_0x4001, 1 + goto EventScript_1C515C + +EventScript_1C52B0:: @ 81C52B0 + addvar VAR_0x4001, 1 + goto EventScript_1C515C + +EventScript_1C52BA:: @ 81C52BA + applymovement 5, Movement_1C554C + waitmovement 0 + applymovement 2, Movement_1C5550 + goto EventScript_1C52D7 + +EventScript_1C52D0:: @ 81C52D0 + applymovement 3, Movement_1C554D +EventScript_1C52D7: + setvar VAR_0x8004, 4 + special sub_815D9E8 + end + +EventScript_1C52E0:: @ 81C52E0 + special sp000_heal_pokemon + setvar VAR_0x8004, 11 + special sub_815D9E8 + warp MAP_SEVEN_ISLAND_TRAINER_TOWER_LOBBY, 255, 9, 7 + waitstate + +EventScript_1C52F4:: @ 81C52F4 + setvar VAR_0x8004, 3 + setvar VAR_0x8005, 0 + special sub_815D9E8 + switch VAR_RESULT + case 0, EventScript_1C5327 + case 1, EventScript_1C5327 + case 2, EventScript_1C5331 +EventScript_1C5327: + setvar VAR_0x8006, 0 + goto EventScript_1C5391 + +EventScript_1C5331:: @ 81C5331 + setvar VAR_0x8006, 1 + goto EventScript_1C5391 + +EventScript_1C533B:: @ 81C533B + setvar VAR_0x8004, 3 + setvar VAR_0x8005, 0 + special sub_815D9E8 + switch VAR_RESULT + case 0, EventScript_1C536E + case 1, EventScript_1C536E + case 2, EventScript_1C5378 +EventScript_1C536E: + setvar VAR_0x8006, 0 + goto EventScript_1C5391 + +EventScript_1C5378:: @ 81C5378 + setvar VAR_0x8006, 2 + goto EventScript_1C5391 + +EventScript_1C5382:: @ 81C5382 + setvar VAR_0x8006, 0 + goto EventScript_1C5391 + +EventScript_1C538C:: @ 81C538C + setvar VAR_0x8006, 1 +EventScript_1C5391: + setvar VAR_0x8004, 1 + setvar VAR_0x8005, 5 + special sub_815D9E8 + lock + faceplayer + msgbox gStringVar4 + release + return + +EventScript_1C53AA:: @ 81C53AA + lock + faceplayer + setvar VAR_0x8004, 7 + special sub_815D9E8 + switch VAR_RESULT + case 0, EventScript_1C53DA + case 1, EventScript_1C53E2 + case 2, EventScript_1C5492 +EventScript_1C53DA: + msgbox Text_17CA5A +EventScript_1C53E2: + setvar VAR_0x8004, 8 + special sub_815D9E8 + switch VAR_RESULT + case 0, EventScript_1C5410 + case 1, EventScript_1C543A + case 2, EventScript_1C544F +EventScript_1C5410: + msgbox Text_17CB09 + textcolor 3 + playfanfare MUS_FANFA1 + message Text_1A51F6 + waitfanfare + waitmessage + getstdstring 2, 24 + msgbox gUnknown_81A5218 + call EventScript_1A6675 + goto EventScript_1C544F + +EventScript_1C543A:: @ 81C543A + msgbox Text_17CB09 + msgbox gUnknown_81A5207 + goto EventScript_1C544F + +EventScript_1C544F:: @ 81C544F + setvar VAR_0x8004, 9 + special sub_815D9E8 + switch VAR_RESULT + case 0, EventScript_1C547D + case 1, EventScript_1C548A + case 2, EventScript_1C5492 +EventScript_1C547D: + msgbox Text_17CB1A + goto EventScript_1C5492 + +EventScript_1C548A:: @ 81C548A + msgbox Text_17CBC0 +EventScript_1C5492: + msgbox Text_17CBF5 + release + return + +EventScript_1C549C:: @ 81C549C + lockall + setvar VAR_0x8004, 13 + special sub_815D9E8 + msgbox Text_17CC56 + releaseall + end + +SevenIsland_TrainerTower_2F_EventScript_1C54AF:: @ 81C54AF +SevenIsland_TrainerTower_4F_EventScript_1C54AF:: @ 81C54AF +SevenIsland_TrainerTower_6F_EventScript_1C54AF:: @ 81C54AF +SevenIsland_TrainerTower_8F_EventScript_1C54AF:: @ 81C54AF +SevenIsland_TrainerTower_5F_EventScript_1C54AF:: @ 81C54AF +SevenIsland_TrainerTower_7F_EventScript_1C54AF:: @ 81C54AF +SevenIsland_TrainerTower_3F_EventScript_1C54AF:: @ 81C54AF +SevenIsland_TrainerTower_1F_EventScript_1C54AF:: @ 81C54AF + goto EventScript_1C508F + +SevenIsland_TrainerTower_2F_EventScript_1C54B4:: @ 81C54B4 +SevenIsland_TrainerTower_4F_EventScript_1C54B4:: @ 81C54B4 +SevenIsland_TrainerTower_6F_EventScript_1C54B4:: @ 81C54B4 +SevenIsland_TrainerTower_8F_EventScript_1C54B4:: @ 81C54B4 +SevenIsland_TrainerTower_5F_EventScript_1C54B4:: @ 81C54B4 +SevenIsland_TrainerTower_7F_EventScript_1C54B4:: @ 81C54B4 +SevenIsland_TrainerTower_3F_EventScript_1C54B4:: @ 81C54B4 +SevenIsland_TrainerTower_1F_EventScript_1C54B4:: @ 81C54B4 + setvar VAR_0x4003, 0 + setvar VAR_0x8004, 16 + special sub_815D9E8 + compare_var_to_value VAR_RESULT, 0 + goto_if ne, EventScript_1C5528 + setvar VAR_0x8004, 19 + special sub_815D9E8 + applymovement 2, Movement_1A75DB + waitmovement 0 + applymovement 2, Movement_1A75DD + goto EventScript_1C551B + +SevenIsland_TrainerTower_2F_EventScript_1C54EA:: @ 81C54EA +SevenIsland_TrainerTower_4F_EventScript_1C54EA:: @ 81C54EA +SevenIsland_TrainerTower_6F_EventScript_1C54EA:: @ 81C54EA +SevenIsland_TrainerTower_8F_EventScript_1C54EA:: @ 81C54EA +SevenIsland_TrainerTower_5F_EventScript_1C54EA:: @ 81C54EA +SevenIsland_TrainerTower_7F_EventScript_1C54EA:: @ 81C54EA +SevenIsland_TrainerTower_3F_EventScript_1C54EA:: @ 81C54EA +SevenIsland_TrainerTower_1F_EventScript_1C54EA:: @ 81C54EA + setvar VAR_0x4003, 1 + setvar VAR_0x8004, 16 + special sub_815D9E8 + compare_var_to_value VAR_RESULT, 0 + goto_if ne, EventScript_1C5528 + setvar VAR_0x8004, 19 + special sub_815D9E8 + applymovement 5, Movement_1A75DB + waitmovement 0 + applymovement 5, Movement_1A75DD +EventScript_1C551B: + waitmovement 0 + setvar VAR_0x400F, 1 + goto EventScript_1C508F + +EventScript_1C5528:: @ 81C5528 + lockall + playse SE_PINPON + msgbox Text_17CC73 + closemessage + applymovement 255, Movement_1C5544 + waitmovement 0 + releaseall + end + +Movement_1C5541: + step_12 +Movement_1C5542:: @ 81C5542 + step_12 + step_12 +Movement_1C5544: + step_12 + step_end + +Movement_1C5546:: @ 81C5546 + step_11 + step_11 + step_end + +Movement_1C5549:: @ 81C5549 + step_10 + step_10 + step_end + +Movement_1C554C:: @ 81C554C + step_13 +Movement_1C554D: + step_11 + step_00 + step_end + +Movement_1C5550:: @ 81C5550 + step_00 + step_end + +EventScript_1C5550:: @ 81C5552 + msgbox Text_1C556D, 2 + end + +EventScript_1C555B:: @ 81C555B + msgbox Text_1C558D, 3 + end + +EventScript_1C5564:: @ 81C5564 + msgbox Text_1C55A4, 3 + end + +Text_1C556D:: @ 81C556D + .string "テストよã†ã€€ãƒ¡ãƒƒã‚»ãƒ¼ã‚¸ã§ã™ï¼\n" + .string "ãƒã‚±ãƒ¢ãƒ³ã®ã€€ã›ã‹ã„ã¸ã€€ã‚ˆã†ã“ãï¼$" + +Text_1C558D:: @ 81C558D + .string "テストよã†ã€€ãƒ¡ãƒƒã‚»ãƒ¼ã‚¸ã§ã™ï¼\n" + .string "ã‹ã‚“ã°ã‚“ ã§ã™$" + +Text_1C55A4:: @ 81C55A4 + .string "テストよã†ã€€ãƒ¡ãƒƒã‚»ãƒ¼ã‚¸ã§ã™ï¼\n" + .string "ã–ã²ã‚‡ã†ã€€ãƒã‚§ãƒƒã‚¯ã®ã€€ã‚¤ãƒ™ãƒ³ãƒˆã§ã™$" + +Text_1C55C5:: @ 81C55C5 + .string " $" + +gText_WouldYouLikeToSaveTheGame:: @ 81C55C9 + .string "Would you like to save the game?$" + +gText_AlreadySaveFile_WouldLikeToOverwrite:: @ 81C55EA + .string "There is already a saved file.\n" + .string "Is it okay to overwrite it?$" + +gText_SavingDontTurnOffThePower:: @ 81C5625 + .string "SAVING…\n" + .string "DON'T TURN OFF THE POWER.$" + +gText_PlayerSavedTheGame:: @ 81C5647 + .string "{PLAYER} saved the game.$" + +gUnknown_81C565A:: + .string "セーブã«ã€€ã—ã£ã±ã„ ã—ã¾ã—ãŸâ€¥$" + +gText_DifferentGameFile:: @ 81C566A + .string "WARNING!\p" + .string "There is a different game file that\n" + .string "is already saved.\p" + .string "If you save now, the other file's\n" + .string "adventure, including items and\l" + .string "POKéMON, will be entirely lost.\p" + .string "Are you sure you want to save now\n" + .string "and overwrite the other save file?$" + +gOtherText_NewName:: @ 81C574F + .string "NEW NAME$" + +gNameChoice_Green:: @ 81C5758 + .string "GREEN$" + +gNameChoice_Red:: @ 81C575E + .string "RED$" + +gNameChoice_Leaf:: @ 81C5762 + .string "LEAF$" + +gNameChoice_Fire:: @ 81C5767 + .string "FIRE$" + +gNameChoice_Gary:: @ 81C576C + .string "GARY$" + +gNameChoice_Kaz:: @ 81C5771 + .string "KAZ$" + +gNameChoice_Toru:: @ 81C5775 + .string "TORU$" + +gNameChoice_Ash:: @ 81C577A + .string "ASH$" + +gNameChoice_Kene:: @ 81C577E + .string "KENE$" + +gNameChoice_Geki:: @ 81C5783 + .string "GEKI$" + +gNameChoice_Jak:: @ 81C5788 + .string "JAK$" + +gNameChoice_Janne:: @ 81C578C + .string "JANNE$" + +gNameChoice_Jonn:: @ 81C5792 + .string "JONN$" + +gNameChoice_Kamon:: @ 81C5797 + .string "KAMON$" + +gNameChoice_Karl:: @ 81C579D + .string "KARL$" + +gNameChoice_Taylor:: @ 81C57A2 + .string "TAYLOR$" + +gNameChoice_Oscar:: @ 81C57A9 + .string "OSCAR$" + +gNameChoice_Hiro:: @ 81C57AF + .string "HIRO$" + +gNameChoice_Max:: @ 81C57B4 + .string "MAX$" + +gNameChoice_Jon:: @ 81C57B8 + .string "JON$" + +gNameChoice_Ralph:: @ 81C57BC + .string "RALPH$" + +gNameChoice_Kay:: @ 81C57C2 + .string "KAY$" + +gNameChoice_Tosh:: @ 81C57C6 + .string "TOSH$" + +gNameChoice_Roak:: @ 81C57CB + .string "ROAK$" + +gNameChoice_Omi:: @ 81C57D0 + .string "OMI$" + +gNameChoice_Jodi:: @ 81C57D4 + .string "JODI$" + +gNameChoice_Amanda:: @ 81C57D9 + .string "AMANDA$" + +gNameChoice_Hillary:: @ 81C57E0 + .string "HILLARY$" + +gNameChoice_Makey:: @ 81C57E8 + .string "MAKEY$" + +gNameChoice_Michi:: @ 81C57EE + .string "MICHI$" + +gNameChoice_Paula:: @ 81C57F4 + .string "PAULA$" + +gNameChoice_June:: @ 81C57FA + .string "JUNE$" + +gNameChoice_Cassie:: @ 81C57FF + .string "CASSIE$" + +gNameChoice_Rey:: @ 81C5806 + .string "REY$" + +gNameChoice_Seda:: @ 81C580A + .string "SEDA$" + +gNameChoice_Kiko:: @ 81C580F + .string "KIKO$" + +gNameChoice_Mina:: @ 81C5814 + .string "MINA$" + +gNameChoice_Norie:: @ 81C5819 + .string "NORIE$" + +gNameChoice_Sai:: @ 81C581F + .string "SAI$" + +gNameChoice_Momo:: @ 81C5823 + .string "MOMO$" + +gNameChoice_Suzi:: @ 81C5828 + .string "SUZI$" + +gNewGame_HelpDocs1:: @ 81C582D + .string "The various buttons will be explained in\n" + .string "the order of their importance.$" + +gNewGame_HelpDocs2:: @ 81C5875 + .string "Moves the main character.\n" + .string "Also used to choose various data\n" + .string "headings.$" + +gNewGame_HelpDocs3:: @ 81C58BA + .string "Used to confirm a choice, check\n" + .string "things, chat, and scroll text.$" + +gNewGame_HelpDocs4:: @ 81C58F9 + .string "Used to exit, cancel a choice,\n" + .string "and cancel a mode.$" + +gNewGame_HelpDocs5:: @ 81C592B + .string "Press this button to open the\n" + .string "MENU.$" + +gNewGame_HelpDocs6:: @ 81C594F + .string "Used to shift items and to use\n" + .string "a registered item.$" + +gNewGame_HelpDocs7:: @ 81C5981 + .string "If you need help playing the\n" + .string "game, or on how to do things,\n" + .string "press the L or R Button.$" + +gOakText_AskPlayerGender:: @ 81C59D5 + .string "Now tell me. Are you a boy?\n" + .string "Or are you a girl?$" + +gNewGameAdventureIntro1:: + .string "In the world which you are about to\n" + .string "enter, you will embark on a grand\n" + .string "adventure with you as the hero.\n" + .string "\n" + .string "Speak to people and check things\n" + .string "wherever you go, be it towns, roads,\n" + .string "or caves. Gather information and\n" + .string "hints from every source.$" + +gNewGameAdventureIntro2:: + .string "New paths will open to you by helping\n" + .string "people in need, overcoming challenges,\n" + .string "and solving mysteries.\n" + .string "\n" + .string "At times, you will be challenged by\n" + .string "others and attacked by wild creatures.\n" + .string "Be brave and keep pushing on.$" + +gNewGameAdventureIntro3:: + .string "Through your adventure, we hope\n" + .string "that you will interact with all sorts\n" + .string "of people and achieve personal growth.\n" + .string "That is our biggest objective.\n" + .string "\n" + .string "Press the A Button, and let your\n" + .string "adventure begin!$" + +gOakText_WelcomeToTheWorld:: @ 81C5C78 + .string "Hello, there!\n" + .string "Glad to meet you!\pWelcome to the world of POKéMON!\pMy name is OAK.\pPeople affectionately refer to me\n" + .string "as the POKéMON PROFESSOR.\p$" + +gOakText_WorldInhabited1:: @ 81C5D06 + .string "This world…$" + +gOakText_WorldInhabited2:: @ 81C5D12 + .string "…is inhabited far and wide by\n" + .string "creatures called POKéMON.\p$" + +gOakText_PetsBattlingStudy:: @ 81C5D4B + .string "For some people, POKéMON are pets.\n" + .string "Others use them for battling.\pAs for myself…\pI study POKéMON as a profession.\p$" + +gOakText_TellMeALittleAboutYourself:: @ 81C5DBD + .string "But first, tell me a little about\n" + .string "yourself.\p$" + +gOakText_AskPlayerName:: @ 81C5DEA + .string "Let's begin with your name.\n" + .string "What is it?\p$" + +gOakText_FinalizePlayerName:: @ 81C5E13 + .string "Right…\n" + .string "So your name is {PLAYER}.$" + +gOakText_IntroduceRival:: @ 81C5E2E + .string "This is my grandson.\pHe's been your rival since you both\n" + .string "were babies.\p…Erm, what was his name now?$" + +gOakText_AskRivalName:: @ 81C5E91 + .string "Your rival's name, what was it now?$" + +gOakText_ConfirmRivalName:: @ 81C5EB5 + .string "…Er, was it {RIVAL}?$" + +gOakText_RememberRivalName:: @ 81C5EC5 + .string "That's right! I remember now!\n" + .string "His name is {RIVAL}!\p$" + +gOakText_LegendAboutToUnfold:: @ 81C5EF4 + .string "{PLAYER}!\pYour very own POKéMON legend is\n" + .string "about to unfold!\pA world of dreams and adventures\n" + .string "with POKéMON awaits! Let's go!$" + +@ pokedude data +gUnknown_81C5F69:: + .string "POKé DUDE: The speedier of the\n" + .string "battlers gets to attack first.$" + +gUnknown_81C5FA7:: + .string "It looks like my RATTATA was\n" + .string "faster than the PIDGEY.$" + +gUnknown_81C5FDC:: + .string "The battlers take turns attacking\n" + .string "and reducing each other's HP.$" + +gUnknown_81C601C:: + .string "My RATTATA reduced the foe's HP\n" + .string "to zero, so it wins!\p" + + .string "The POKéMON that took part in the\n" + .string "battle get EXP. Points.\p" + + .string "When a POKéMON collects enough\n" + .string "EXP. Points, it levels up.\p" + + .string "Leveling up makes your POKéMON\n" + .string "stronger than before.$" + +gUnknown_81C60FA:: + .string "POKé DUDE: Uh-oh…\n" + .string "My RATTATA has been poisoned…\p" + + .string "If a POKéMON is poisoned, it loses\n" + .string "HP steadily.$" + +gUnknown_81C615A:: + .string "If a POKéMON develops a status\n" + .string "problem, heal it right away.$" + +gUnknown_81C6196:: + .string "Using an item on a POKéMON uses\n" + .string "up one turn, though.\p" + + .string "Now, it's the opponent's turn!$" + +gUnknown_81C61EA:: + .string "Yay!\n" + .string "We managed to win!$" + +gUnknown_81C6202:: + .string "POKé DUDE: The move BUBBLE is\n" + .string "a WATER-type attack.\p" + + .string "The targeted ODDISH is a\n" + .string "GRASS/POISON-type POKéMON.\p" + + .string "The WATER-type attack is absorbed\n" + .string "by the GRASS-type POKéMON…\p" + + .string "As a result, the move becomes not\n" + .string "very effective, and inflicts only\l" + .string "half the usual damage.$" + +gUnknown_81C6301:: + .string "Uh-oh, this is not good!\p" + + .string "The ABSORB attack you just saw\n" + .string "is a GRASS-type move.\p" + + .string "POLIWAG is a WATER-type POKéMON.\p" + + .string "So, ABSORB becomes super\n" + .string "effective, doubling the damage.$" + +gUnknown_81C63A9:: + .string "It's not going to be easy to win\n" + .string "with this matchup…\p" + + .string "Let's try shifting POKéMON!$" + +gUnknown_81C63F9:: + .string "Shifting POKéMON in and out uses\n" + .string "up one turn.\p" + + .string "Now, it's the opponent's turn.$" + +gUnknown_81C6446:: + .string "BUTTERFREE is a BUG/FLYING-type\n" + .string "POKéMON.\p" + + .string "Against this POKéMON, a GRASS-\n" + .string "type attack…\p" + + .string "…inflicts only half the usual\n" + .string "damage on a BUG-type POKéMON…\p" + + .string "…And, it also causes only half the\n" + .string "damage on a FLYING-type POKéMON.\p" + + .string "Therefore, BUTTERFREE, being a\n" + .string "BUG/FLYING POKéMON, only takes\l" + .string "one quarter of the usual damage.$" + +gUnknown_81C657A:: + .string "ODDISH is a GRASS/POISON-type\n" + .string "POKéMON.\p" + + .string "A FLYING- or PSYCHIC-type attack\n" + .string "is super effective against it.\p" + + .string "One of those types of attacks will\n" + .string "inflict double the usual damage.\p" + + .string "Okay, here we go!$" + +gUnknown_81C6637:: + .string "Yeah!\n" + .string "We won!$" + +gUnknown_81C6645:: + .string "POKé DUDE: When you're trying to\n" + .string "catch a POKéMON, don't throw any\l" + .string "POKé BALLS right away.\p" + + .string "First, you need to weaken it by\n" + .string "reducing its HP.$" + +gUnknown_81C66CF:: + .string "Okay, that should be good enough.\p" + + .string "But, if it's possible, it would be\n" + .string "best if the target has a status\l" + .string "problem.\p" + + .string "For instance, it would be easier\n" + .string "to catch if it were asleep or\l" + .string "paralyzed.$" + +gUnknown_81C6787:: + .string "This will make the POKéMON a lot\n" + .string "easier to catch!\p" + + .string "Oh, yes. If you paralyze a\n" + .string "POKéMON, you can't make it fall\l" + .string "asleep on top of paralysis.\p" + + .string "In other words, you can't double\n" + .string "up status problems, okay?$" + +gUnknown_81C684B:: + .string "Okay!\n" + .string "Let me throw my POKé BALL!$" + +gUnknown_81C686C:: + .string "Before you throw a POKé BALL,\n" + .string "consider the condition and the\l" + .string "type of POKéMON, and pick the kind\l" + .string "of BALL that would work best.$" diff --git a/data/field_map_obj.s b/data/field_map_obj.s index 72d20cd4e..deae90e8f 100644 --- a/data/field_map_obj.s +++ b/data/field_map_obj.s @@ -1,3 +1,5 @@ + .include "asm/macros.inc" + .include "constants/constants.inc" .section .rodata .align 2 gUnknown_835B934:: @ 835B934 @@ -7,7 +9,529 @@ gUnknown_835B944:: @ 835B944 .incbin "baserom.gba", 0x35B944, 0x18 gUnknown_835B95C:: @ 835B95C - .incbin "baserom.gba", 0x35B95C, 0x3DA2C + .incbin "baserom.gba", 0x35B95C, 0xC + +gUnknown_835B968:: @ 835B968 + .incbin "graphics/map_objects/0.gbapal" + +gUnknown_835B988:: + .incbin "baserom.gba", 0x35B988, 0x1E0 + +gUnknown_835BB68:: @ 835BB68 + .incbin "graphics/map_objects/000.4bpp" + +gUnknown_835C468:: @ 835C468 + .incbin "graphics/map_objects/002.4bpp" + +gUnknown_835D268:: @ 835D268 + .incbin "graphics/map_objects/007.4bpp" + +gUnknown_835DB68:: @ 835DB68 + .incbin "graphics/map_objects/009.4bpp" + +gUnknown_835E968:: @ 835E968 + .incbin "graphics/map_objects/1.gbapal" + +gUnknown_835E988:: @ 835E988 + .incbin "graphics/map_objects/2.gbapal" + +gUnknown_835E9A8:: @ 835E9A8 + .incbin "graphics/map_objects/005.4bpp" + +gUnknown_835F2A8:: @ 835F2A8 + .incbin "graphics/map_objects/012.4bpp" + +@ 35FBA8 + .incbin "graphics/map_objects/male_surf.4bpp" + +@ 360DA8 + .incbin "graphics/map_objects/female_surf.4bpp" + +gUnknown_8361FA8:: @ 8361FA8 + .incbin "graphics/map_objects/001.4bpp" + +gUnknown_83631A8:: @ 83631A8 + .incbin "graphics/map_objects/006.4bpp" + +gUnknown_8363DA8:: @ 8363DA8 + .incbin "graphics/map_objects/008.4bpp" + +gUnknown_8364FA8:: @ 8364FA8 + .incbin "graphics/map_objects/013.4bpp" + +gUnknown_8365BA8:: @ 8365BA8 + .incbin "graphics/map_objects/014.4bpp" + +gUnknown_83664A8:: @ 83664A8 + .incbin "graphics/map_objects/015.4bpp" + +gUnknown_8366DA8:: @ 8366DA8 + .incbin "graphics/map_objects/004.4bpp" + +gUnknown_83685A8:: @ 83685A8 + .incbin "graphics/map_objects/011.4bpp" + +gUnknown_8369DA8:: @ 8369DA8 + .incbin "graphics/map_objects/094.4bpp" + +gUnknown_8369E28:: @ 8369E28 + .incbin "graphics/map_objects/093.4bpp" + +@ 8369F28 + .incbin "graphics/map_objects/unk_8369F28.4bpp" + +gUnknown_836A228:: @ 836A228 + .incbin "graphics/map_objects/087.4bpp" + +gUnknown_836AB28:: @ 836AB28 + .incbin "graphics/map_objects/086.4bpp" + +gUnknown_836AE28:: @ 836AE28 + .incbin "graphics/map_objects/085.4bpp" + +gUnknown_836B128:: @ 836B128 + .incbin "graphics/map_objects/076.4bpp" + +gUnknown_836BA28:: @ 836BA28 + .incbin "graphics/map_objects/077.4bpp" + +gUnknown_836C328:: @ 836C328 + .incbin "graphics/map_objects/083.4bpp" + +gUnknown_836C628:: @ 836C628 + .incbin "graphics/map_objects/084.4bpp" + +gUnknown_836C928:: @ 836C928 + .incbin "graphics/map_objects/080.4bpp" + +gUnknown_836CC28:: @ 836CC28 + .incbin "graphics/map_objects/082.4bpp" + +gUnknown_836CF28:: @ 836CF28 + .incbin "graphics/map_objects/073.4bpp" + +gUnknown_836D828:: @ 836D828 + .incbin "graphics/map_objects/3.gbapal" + +gUnknown_836D848:: @ 836D848 + .incbin "graphics/map_objects/4.gbapal" + +gUnknown_836D868:: @ 836D868 + .incbin "graphics/map_objects/5.gbapal" + +gUnknown_836D888:: @ 836D888 + .incbin "graphics/map_objects/6.gbapal" + +gUnknown_836D8A8:: @ 836D8A8 + .incbin "graphics/map_objects/7.gbapal" + +gUnknown_836D8C8:: @ 836D8C8 + .incbin "graphics/map_objects/8.gbapal" + +gUnknown_836D8E8:: @ 836D8E8 + .incbin "graphics/map_objects/9.gbapal" + +gUnknown_836D908:: @ 836D908 + .incbin "graphics/map_objects/10.gbapal" + +gUnknown_836D928:: @ 836D928 + .incbin "graphics/map_objects/016.4bpp" + +gUnknown_836DDA8:: @ 836DDA8 + .incbin "graphics/map_objects/017.4bpp" + +gUnknown_836E2A8:: @ 836E2A8 + .incbin "graphics/map_objects/021.4bpp" + +gUnknown_836E5A8:: @ 836E5A8 + .incbin "graphics/map_objects/022.4bpp" + +gUnknown_836EFA8:: @ 836EFA8 + .incbin "graphics/map_objects/018.4bpp" + +gUnknown_836F9A8:: @ 836F9A8 + .incbin "graphics/map_objects/019.4bpp" + +gUnknown_83703A8:: @ 83703A8 + .incbin "graphics/map_objects/023.4bpp" + +gUnknown_8370DA8:: @ 8370DA8 + .incbin "graphics/map_objects/031.4bpp" + +gUnknown_83716A8:: @ 83716A8 + .incbin "graphics/map_objects/020.4bpp" + +gUnknown_83720A8:: @ 83720A8 + .incbin "graphics/map_objects/024.4bpp" + +@ 8372AA8 + .incbin "graphics/map_objects/unk_8372AA8.4bpp" + +gUnknown_83733A8:: @ 83733A8 + .incbin "graphics/map_objects/027.4bpp" + +gUnknown_8373CA8:: @ 8373CA8 + .incbin "graphics/map_objects/030.4bpp" + +gUnknown_83746A8:: @ 83746A8 + .incbin "graphics/map_objects/028.4bpp" + +gUnknown_83750A8:: @ 83750A8 + .incbin "graphics/map_objects/032.4bpp" + +gUnknown_8375AA8:: @ 8375AA8 + .incbin "graphics/map_objects/034.4bpp" + +gUnknown_8375CA8:: @ 8375CA8 + .incbin "graphics/map_objects/047.4bpp" + +gUnknown_83766A8:: @ 83766A8 + .incbin "graphics/map_objects/048.4bpp" + +gUnknown_83770A8:: @ 83770A8 + .incbin "graphics/map_objects/029.4bpp" + +gUnknown_8377AA8:: @ 8377AA8 + .incbin "graphics/map_objects/059.4bpp" + +gUnknown_83783A8:: @ 83783A8 + .incbin "graphics/map_objects/033.4bpp" + +gUnknown_8378CA8:: @ 8378CA8 + .incbin "graphics/map_objects/035.4bpp" + +gUnknown_83795A8:: @ 83795A8 + .incbin "graphics/map_objects/039.4bpp" + +gUnknown_8379FA8:: @ 8379FA8 + .incbin "graphics/map_objects/040.4bpp" + +gUnknown_837A9A8:: @ 837A9A8 + .incbin "graphics/map_objects/041.4bpp" + +gUnknown_837B3A8:: @ 837B3A8 + .incbin "graphics/map_objects/042.4bpp" + +gUnknown_837BDA8:: @ 837BDA8 + .incbin "graphics/map_objects/121.4bpp" + +gUnknown_837BF28:: @ 837BF28 + .incbin "graphics/map_objects/052.4bpp" + +gUnknown_837C928:: @ 837C928 + .incbin "graphics/map_objects/058.4bpp" + +gUnknown_837D328:: @ 837D328 + .incbin "graphics/map_objects/050.4bpp" + +gUnknown_837DC28:: @ 837DC28 + .incbin "graphics/map_objects/043.4bpp" + +gUnknown_837E628:: @ 837E628 + .incbin "graphics/map_objects/044.4bpp" + +gUnknown_837F028:: @ 837F028 + .incbin "graphics/map_objects/045.4bpp" + +gUnknown_837FA28:: @ 837FA28 + .incbin "graphics/map_objects/046.4bpp" + +gUnknown_8380428:: @ 8380428 + .incbin "graphics/map_objects/054.4bpp" + +gUnknown_8380E28:: @ 8380E28 + .incbin "graphics/map_objects/055.4bpp" + +gUnknown_8381828:: @ 8381828 + .incbin "graphics/map_objects/061.4bpp" + +gUnknown_8382228:: @ 8382228 + .incbin "graphics/map_objects/062.4bpp" + +gUnknown_8382C28:: @ 8382C28 + .incbin "graphics/map_objects/063.4bpp" + +gUnknown_8383528:: @ 8383528 + .incbin "graphics/map_objects/057.4bpp" + +gUnknown_8383F28:: @ 8383F28 + .incbin "graphics/map_objects/090.4bpp" + +gUnknown_8384828:: @ 8384828 + .incbin "graphics/map_objects/152.4bpp" + +gUnknown_8385128:: @ 8385128 + .incbin "graphics/map_objects/037.4bpp" + +gUnknown_8385628:: @ 8385628 + .incbin "graphics/map_objects/036.4bpp" + +gUnknown_8385B28:: @ 8385B28 + .incbin "graphics/map_objects/038.4bpp" + +gUnknown_8386028:: @ 8386028 + .incbin "graphics/map_objects/056.4bpp" + +gUnknown_8386A28:: @ 8386A28 + .incbin "graphics/map_objects/053.4bpp" + +gUnknown_8387E28:: @ 8387E28 + .incbin "graphics/map_objects/091.4bpp" + +gUnknown_8388728:: @ 8388728 + .incbin "graphics/map_objects/025.4bpp" + +gUnknown_8389128:: @ 8389128 + .incbin "graphics/map_objects/026.4bpp" + +gUnknown_8389B28:: @ 8389B28 + .incbin "graphics/map_objects/071.4bpp" + +gUnknown_838A428:: @ 838A428 + .incbin "graphics/map_objects/072.4bpp" + +gUnknown_838AD28:: @ 838AD28 + .incbin "graphics/map_objects/064.4bpp" + +gUnknown_838B128:: @ 838B128 + .incbin "graphics/map_objects/065.4bpp" + +gUnknown_838B428:: @ 838B428 + .incbin "graphics/map_objects/066.4bpp" + +gUnknown_838B728:: @ 838B728 + .incbin "graphics/map_objects/067.4bpp" + +gUnknown_838BA28:: @ 838BA28 + .incbin "graphics/map_objects/092.4bpp" + +gUnknown_838BAA8:: @ 838BAA8 + .incbin "graphics/map_objects/078.4bpp" + +gUnknown_838C3A8:: @ 838C3A8 + .incbin "graphics/map_objects/079.4bpp" + +gUnknown_838C6A8:: @ 838C6A8 + .incbin "graphics/map_objects/068.4bpp" + +gUnknown_838CFA8:: @ 838CFA8 + .incbin "graphics/map_objects/069.4bpp" + +gUnknown_838D2A8:: @ 838D2A8 + .incbin "graphics/map_objects/070.4bpp" + +gUnknown_838D5A8:: @ 838D5A8 + .incbin "graphics/map_objects/unk_838D5A8.4bpp" + +gUnknown_838DEA8:: @ 838DEA8 + .incbin "graphics/map_objects/049.4bpp" + +gUnknown_838E7A8:: @ 838E7A8 + .incbin "graphics/map_objects/089.4bpp" + +gUnknown_838F0A8:: @ 838F0A8 + .incbin "graphics/map_objects/135.4bpp" + +gUnknown_838F228:: @ 838F228 + .incbin "graphics/map_objects/136.4bpp" + +gUnknown_838F428:: @ 838F428 + .incbin "graphics/map_objects/137.4bpp" + +gUnknown_838F628:: @ 838F628 + .incbin "graphics/map_objects/138.4bpp" + +gUnknown_838F828:: @ 838F828 + .incbin "graphics/map_objects/139.4bpp" + +gUnknown_838F8A8:: @ 838F8A8 + .incbin "graphics/map_objects/140.4bpp" + +gUnknown_838F928:: @ 838F928 + .incbin "graphics/map_objects/141.4bpp" + +gUnknown_838F9A8:: @ 838F9A8 + .incbin "graphics/map_objects/143.4bpp" + +gUnknown_838FA28:: @ 838FA28 + .incbin "graphics/map_objects/142.4bpp" + +gUnknown_838FAA8:: @ 838FAA8 + .incbin "graphics/map_objects/144.4bpp" + +gUnknown_838FEA8:: @ 838FEA8 + .incbin "graphics/map_objects/145.4bpp" + +gUnknown_83902A8:: @ 83902A8 + .incbin "graphics/map_objects/146.4bpp" + +gUnknown_8390328:: @ 8390328 + .incbin "graphics/map_objects/148.4bpp" + +gUnknown_8390728:: @ 8390728 + .incbin "graphics/map_objects/149.4bpp" + +gUnknown_8390B28:: @ 8390B28 + .incbin "graphics/map_objects/150.4bpp" + +gUnknown_8390F28:: @ 8390F28 + .incbin "graphics/map_objects/075.4bpp" + +gUnknown_8391228:: @ 8391228 + .incbin "graphics/map_objects/081.4bpp" + +gUnknown_8391528:: @ 8391528 + .incbin "graphics/map_objects/074.4bpp" + +gUnknown_8391828:: @ 8391828 + .incbin "graphics/map_objects/051.4bpp" + +gUnknown_8391B28:: @ 8391B28 + .incbin "graphics/map_objects/088.4bpp" + +gUnknown_8391E28:: @ 8391E28 + .incbin "graphics/map_objects/114.4bpp" + +gUnknown_8391FA8:: @ 8391FA8 + .incbin "graphics/map_objects/118.4bpp" + +gUnknown_8392128:: @ 8392128 + .incbin "graphics/map_objects/119.4bpp" + +gUnknown_83922A8:: @ 83922A8 + .incbin "graphics/map_objects/122.4bpp" + +gUnknown_8392428:: @ 8392428 + .incbin "graphics/map_objects/123.4bpp" + +gUnknown_83925A8:: @ 83925A8 + .incbin "graphics/map_objects/124.4bpp" + +gUnknown_8392728:: @ 8392728 + .incbin "graphics/map_objects/125.4bpp" + +gUnknown_83928A8:: @ 83928A8 + .incbin "graphics/map_objects/126.4bpp" + +gUnknown_8392A28:: @ 8392A28 + .incbin "graphics/map_objects/127.4bpp" + +gUnknown_8392BA8:: @ 8392BA8 + .incbin "graphics/map_objects/128.4bpp" + +gUnknown_8392D28:: @ 8392D28 + .incbin "graphics/map_objects/129.4bpp" + +gUnknown_8392EA8:: @ 8392EA8 + .incbin "graphics/map_objects/130.4bpp" + +gUnknown_8393028:: @ 8393028 + .incbin "graphics/map_objects/131.4bpp" + +gUnknown_83931A8:: @ 83931A8 + .incbin "graphics/map_objects/132.4bpp" + +gUnknown_8393328:: @ 8393328 + .incbin "graphics/map_objects/133.4bpp" + +gUnknown_83934A8:: @ 83934A8 + .incbin "graphics/map_objects/147.4bpp" + +gUnknown_8393628:: @ 8393628 + .incbin "graphics/map_objects/134.4bpp" + +gUnknown_83937A8:: @ 83937A8 + .incbin "graphics/map_objects/109.4bpp" + +gUnknown_83939A8:: @ 83939A8 + .incbin "graphics/map_objects/110.4bpp" + +gUnknown_8393B28:: @ 8393B28 + .incbin "graphics/map_objects/111.4bpp" + +gUnknown_8393CA8:: @ 8393CA8 + .incbin "graphics/map_objects/112.4bpp" + +gUnknown_8393E28:: @ 8393E28 + .incbin "graphics/map_objects/117.4bpp" + +gUnknown_8393FA8:: @ 8393FA8 + .incbin "graphics/map_objects/120.4bpp" + +gUnknown_8394128:: @ 8394128 + .incbin "graphics/map_objects/115.4bpp" + +gUnknown_83942A8:: @ 83942A8 + .incbin "graphics/map_objects/116.4bpp" + +gUnknown_8394428:: @ 8394428 + .incbin "graphics/map_objects/113.4bpp" + +gUnknown_83945A8:: @ 83945A8 + .incbin "graphics/map_objects/095.4bpp" + +gUnknown_83947A8:: @ 83947A8 + .incbin "graphics/map_objects/096.4bpp" + +gUnknown_83949A8:: @ 83949A8 + .incbin "graphics/map_objects/097.4bpp" + +gUnknown_8394A28:: @ 8394A28 + .incbin "graphics/map_objects/098.4bpp" + +gUnknown_8394AA8:: @ 8394AA8 + .incbin "graphics/map_objects/099.4bpp" + +gUnknown_8394B28:: @ 8394B28 + .incbin "graphics/map_objects/100.4bpp" + +gUnknown_8394BA8:: @ 8394BA8 + .incbin "graphics/map_objects/101.4bpp" + +gUnknown_8394C28:: @ 8394C28 + .incbin "graphics/map_objects/102.4bpp" + +gUnknown_8394D28:: @ 8394D28 + .incbin "graphics/map_objects/103.4bpp" + +gUnknown_8394DA8:: @ 8394DA8 + .incbin "graphics/map_objects/104.4bpp" + +gUnknown_8394E28:: @ 8394E28 + .incbin "graphics/map_objects/105.4bpp" + +gUnknown_8394EA8:: @ 8394EA8 + .incbin "graphics/map_objects/19.gbapal" + +gUnknown_8394EC8:: @ 8394EC8 + .incbin "graphics/map_objects/106.4bpp" + +gUnknown_83950C8:: @ 83950C8 + .incbin "graphics/map_objects/107.4bpp" + +gUnknown_83952C8:: @ 83952C8 + .incbin "graphics/map_objects/20.gbapal" + +gUnknown_83952E8:: @ 83952E8 + .incbin "graphics/map_objects/108.4bpp" + +gUnknown_8395AE8:: @ 8395AE8 + .incbin "graphics/map_objects/21.gbapal" + +gUnknown_8395B08:: @ 8395B08 + .incbin "graphics/map_objects/151.4bpp" + .incbin "graphics/map_objects/unk_396B08.4bpp" + +gUnknown_8397708:: @ 8397708 + .incbin "graphics/map_objects/060.4bpp" + +gUnknown_8398008:: @ 8398008 + .incbin "graphics/map_objects/11.gbapal" + +gUnknown_8398028:: @ 8398028 + .incbin "graphics/map_objects/12.gbapal" + + .incbin "baserom.gba", 0x398048, 0x1340 gUnknown_8399388:: @ 8399388 .incbin "baserom.gba", 0x399388, 0x908 @@ -24,20 +548,4796 @@ gUnknown_839FD0C:: @ 839FD0C gUnknown_839FD5D:: @ 839FD5D .incbin "baserom.gba", 0x39FD5D, 0x53 -gUnknown_839FDB0:: @ 839FDB0 - .incbin "baserom.gba", 0x39FDB0, 0x260 +gMapObjectGraphicsInfoPointers:: @ 839FDB0 + .4byte gMapObjectGraphicsInfo_83A3BB0 + .4byte gMapObjectGraphicsInfo_83A3BD4 + .4byte gMapObjectGraphicsInfo_83A3BF8 + .4byte gMapObjectGraphicsInfo_83A3C1C + .4byte gMapObjectGraphicsInfo_83A4858 + .4byte gMapObjectGraphicsInfo_83A48A0 + .4byte gMapObjectGraphicsInfo_83A48C4 + .4byte gMapObjectGraphicsInfo_83A4564 + .4byte gMapObjectGraphicsInfo_83A4588 + .4byte gMapObjectGraphicsInfo_83A45AC + .4byte gMapObjectGraphicsInfo_83A45D0 + .4byte gMapObjectGraphicsInfo_83A487C + .4byte gMapObjectGraphicsInfo_83A48E8 + .4byte gMapObjectGraphicsInfo_83A490C + .4byte gMapObjectGraphicsInfo_83A3C64 + .4byte gMapObjectGraphicsInfo_83A3C88 + .4byte gMapObjectGraphicsInfo_83A3CAC + .4byte gMapObjectGraphicsInfo_83A3CD0 + .4byte gMapObjectGraphicsInfo_83A3D3C + .4byte gMapObjectGraphicsInfo_83A3DA8 + .4byte gMapObjectGraphicsInfo_83A3DF0 + .4byte gMapObjectGraphicsInfo_83A3CF4 + .4byte gMapObjectGraphicsInfo_83A3D18 + .4byte gMapObjectGraphicsInfo_83A3D60 + .4byte gMapObjectGraphicsInfo_83A3DCC + .4byte gMapObjectGraphicsInfo_83A4390 + .4byte gMapObjectGraphicsInfo_83A43B4 + .4byte gMapObjectGraphicsInfo_83A3E14 + .4byte gMapObjectGraphicsInfo_83A3E5C + .4byte gMapObjectGraphicsInfo_83A3EEC + .4byte gMapObjectGraphicsInfo_83A3E38 + .4byte gMapObjectGraphicsInfo_83A3D84 + .4byte gMapObjectGraphicsInfo_83A3E80 + .4byte gMapObjectGraphicsInfo_83A3F34 + .4byte gMapObjectGraphicsInfo_83A4420 + .4byte gMapObjectGraphicsInfo_83A3F58 + .4byte gMapObjectGraphicsInfo_83A424C + .4byte gMapObjectGraphicsInfo_83A4228 + .4byte gMapObjectGraphicsInfo_83A4270 + .4byte gMapObjectGraphicsInfo_83A3F7C + .4byte gMapObjectGraphicsInfo_83A3FA0 + .4byte gMapObjectGraphicsInfo_83A3FC4 + .4byte gMapObjectGraphicsInfo_83A3FE8 + .4byte gMapObjectGraphicsInfo_83A4078 + .4byte gMapObjectGraphicsInfo_83A409C + .4byte gMapObjectGraphicsInfo_83A40C0 + .4byte gMapObjectGraphicsInfo_83A40E4 + .4byte gMapObjectGraphicsInfo_83A3EA4 + .4byte gMapObjectGraphicsInfo_83A3EC8 + .4byte gMapObjectGraphicsInfo_83A4618 + .4byte gMapObjectGraphicsInfo_83A4054 + .4byte gMapObjectGraphicsInfo_83A4978 + .4byte gMapObjectGraphicsInfo_83A400C + .4byte gMapObjectGraphicsInfo_83A42B8 + .4byte gMapObjectGraphicsInfo_83A4108 + .4byte gMapObjectGraphicsInfo_83A412C + .4byte gMapObjectGraphicsInfo_83A4294 + .4byte gMapObjectGraphicsInfo_83A41BC + .4byte gMapObjectGraphicsInfo_83A4030 + .4byte gMapObjectGraphicsInfo_83A3F10 + .4byte gMapObjectGraphicsInfo_83A3C40 + .4byte gMapObjectGraphicsInfo_83A4150 + .4byte gMapObjectGraphicsInfo_83A4174 + .4byte gMapObjectGraphicsInfo_83A4198 + .4byte gMapObjectGraphicsInfo_83A4300 + .4byte gMapObjectGraphicsInfo_83A44D4 + .4byte gMapObjectGraphicsInfo_83A44F8 + .4byte gMapObjectGraphicsInfo_83A4324 + .4byte gMapObjectGraphicsInfo_83A4468 + .4byte gMapObjectGraphicsInfo_83A448C + .4byte gMapObjectGraphicsInfo_83A44B0 + .4byte gMapObjectGraphicsInfo_83A436C + .4byte gMapObjectGraphicsInfo_83A4834 + .4byte gMapObjectGraphicsInfo_83A47A4 + .4byte gMapObjectGraphicsInfo_83A4810 + .4byte gMapObjectGraphicsInfo_83A4660 + .4byte gMapObjectGraphicsInfo_83A47C8 + .4byte gMapObjectGraphicsInfo_83A47EC + .4byte gMapObjectGraphicsInfo_83A43D8 + .4byte gMapObjectGraphicsInfo_83A43FC + .4byte gMapObjectGraphicsInfo_83A4684 + .4byte gMapObjectGraphicsInfo_83A46A8 + .4byte gMapObjectGraphicsInfo_83A46CC + .4byte gMapObjectGraphicsInfo_83A46F0 + .4byte gMapObjectGraphicsInfo_83A4714 + .4byte gMapObjectGraphicsInfo_83A4780 + .4byte gMapObjectGraphicsInfo_83A475C + .4byte gMapObjectGraphicsInfo_83A4738 + .4byte gMapObjectGraphicsInfo_83A50EC + .4byte gMapObjectGraphicsInfo_83A463C + .4byte gMapObjectGraphicsInfo_83A41E0 + .4byte gMapObjectGraphicsInfo_83A42DC + .4byte gMapObjectGraphicsInfo_83A4348 + .4byte gMapObjectGraphicsInfo_83A4930 + .4byte gMapObjectGraphicsInfo_83A4954 + .4byte gMapObjectGraphicsInfo_83A4444 + .4byte gMapObjectGraphicsInfo_83A451C + .4byte gMapObjectGraphicsInfo_83A4540 + .4byte gMapObjectGraphicsInfo_83A49C0 + .4byte gMapObjectGraphicsInfo_83A49E4 + .4byte gMapObjectGraphicsInfo_83A4A08 + .4byte gMapObjectGraphicsInfo_83A4A2C + .4byte gMapObjectGraphicsInfo_83A4A50 + .4byte gMapObjectGraphicsInfo_83A4A74 + .4byte gMapObjectGraphicsInfo_83A4A98 + .4byte gMapObjectGraphicsInfo_83A4ABC + .4byte gMapObjectGraphicsInfo_83A4AE0 + .4byte gMapObjectGraphicsInfo_83A4B04 + .4byte gMapObjectGraphicsInfo_83A5110 + .4byte gMapObjectGraphicsInfo_83A499C + .4byte gMapObjectGraphicsInfo_83A4B28 + .4byte gMapObjectGraphicsInfo_83A4F84 + .4byte gMapObjectGraphicsInfo_83A4FF0 + .4byte gMapObjectGraphicsInfo_83A50C8 + .4byte gMapObjectGraphicsInfo_83A5014 + .4byte gMapObjectGraphicsInfo_83A5080 + .4byte gMapObjectGraphicsInfo_83A50A4 + .4byte gMapObjectGraphicsInfo_83A5038 + .4byte gMapObjectGraphicsInfo_83A4B4C + .4byte gMapObjectGraphicsInfo_83A4B70 + .4byte gMapObjectGraphicsInfo_83A505C + .4byte gMapObjectGraphicsInfo_83A4B94 + .4byte gMapObjectGraphicsInfo_83A4BB8 + .4byte gMapObjectGraphicsInfo_83A4BDC + .4byte gMapObjectGraphicsInfo_83A4C00 + .4byte gMapObjectGraphicsInfo_83A4C24 + .4byte gMapObjectGraphicsInfo_83A4C48 + .4byte gMapObjectGraphicsInfo_83A4C6C + .4byte gMapObjectGraphicsInfo_83A4C90 + .4byte gMapObjectGraphicsInfo_83A4CB4 + .4byte gMapObjectGraphicsInfo_83A4CD8 + .4byte gMapObjectGraphicsInfo_83A4CFC + .4byte gMapObjectGraphicsInfo_83A4D20 + .4byte gMapObjectGraphicsInfo_83A4D44 + .4byte gMapObjectGraphicsInfo_83A4FA8 + .4byte gMapObjectGraphicsInfo_83A4D68 + .4byte gMapObjectGraphicsInfo_83A4D8C + .4byte gMapObjectGraphicsInfo_83A4DB0 + .4byte gMapObjectGraphicsInfo_83A4DD4 + .4byte gMapObjectGraphicsInfo_83A4E64 + .4byte gMapObjectGraphicsInfo_83A4E88 + .4byte gMapObjectGraphicsInfo_83A4EAC + .4byte gMapObjectGraphicsInfo_83A4EF4 + .4byte gMapObjectGraphicsInfo_83A4ED0 + .4byte gMapObjectGraphicsInfo_83A4F18 + .4byte gMapObjectGraphicsInfo_83A4F3C + .4byte gMapObjectGraphicsInfo_83A4F60 + .4byte gMapObjectGraphicsInfo_83A4FCC + .4byte gMapObjectGraphicsInfo_83A4DF8 + .4byte gMapObjectGraphicsInfo_83A4E1C + .4byte gMapObjectGraphicsInfo_83A4E40 + .4byte gMapObjectGraphicsInfo_83A5134 gUnknown_83A0010:: @ 83A0010 - .incbin "baserom.gba", 0x3A0010, 0x3688 + .incbin "baserom.gba", 0x3A0010, 0x90 + + +gSpriteImages_83A00A0:: @ 83A00A0 + obj_frame_tiles gUnknown_835BB68, 0x100 + obj_frame_tiles gUnknown_835BB68 + 0x100, 0x100 + obj_frame_tiles gUnknown_835BB68 + 0x200, 0x100 + obj_frame_tiles gUnknown_835BB68 + 0x300, 0x100 + obj_frame_tiles gUnknown_835BB68 + 0x400, 0x100 + obj_frame_tiles gUnknown_835BB68 + 0x500, 0x100 + obj_frame_tiles gUnknown_835BB68 + 0x600, 0x100 + obj_frame_tiles gUnknown_835BB68 + 0x700, 0x100 + obj_frame_tiles gUnknown_835BB68 + 0x800, 0x100 + obj_frame_tiles gUnknown_835C468 + 0x300, 0x100 + obj_frame_tiles gUnknown_835C468 + 0x400, 0x100 + obj_frame_tiles gUnknown_835C468 + 0x500, 0x100 + obj_frame_tiles gUnknown_835C468 + 0x600, 0x100 + obj_frame_tiles gUnknown_835C468 + 0x700, 0x100 + obj_frame_tiles gUnknown_835C468 + 0x800, 0x100 + obj_frame_tiles gUnknown_835C468 + 0x900, 0x100 + obj_frame_tiles gUnknown_835C468 + 0xA00, 0x100 + obj_frame_tiles gUnknown_835C468 + 0xB00, 0x100 + obj_frame_tiles gUnknown_835C468 + 0xC00, 0x100 + obj_frame_tiles gUnknown_835C468 + 0xD00, 0x100 + +gSpriteImages_83A0140:: @ 83A0140 + obj_frame_tiles gUnknown_8361FA8, 0x200 + obj_frame_tiles gUnknown_8361FA8 + 0x200, 0x200 + obj_frame_tiles gUnknown_8361FA8 + 0x400, 0x200 + obj_frame_tiles gUnknown_8361FA8 + 0x600, 0x200 + obj_frame_tiles gUnknown_8361FA8 + 0x800, 0x200 + obj_frame_tiles gUnknown_8361FA8 + 0xA00, 0x200 + obj_frame_tiles gUnknown_8361FA8 + 0xC00, 0x200 + obj_frame_tiles gUnknown_8361FA8 + 0xE00, 0x200 + obj_frame_tiles gUnknown_8361FA8 + 0x1000, 0x200 + +gSpriteImages_83A0188:: @ 83A0188 + obj_frame_tiles gUnknown_835D268, 0x100 + obj_frame_tiles gUnknown_835D268 + 0x100, 0x100 + obj_frame_tiles gUnknown_835D268 + 0x200, 0x100 + obj_frame_tiles gUnknown_835D268 + 0x300, 0x100 + obj_frame_tiles gUnknown_835D268 + 0x400, 0x100 + obj_frame_tiles gUnknown_835D268 + 0x500, 0x100 + obj_frame_tiles gUnknown_835D268 + 0x600, 0x100 + obj_frame_tiles gUnknown_835D268 + 0x700, 0x100 + obj_frame_tiles gUnknown_835D268 + 0x800, 0x100 + obj_frame_tiles gUnknown_835DB68 + 0x300, 0x100 + obj_frame_tiles gUnknown_835DB68 + 0x400, 0x100 + obj_frame_tiles gUnknown_835DB68 + 0x500, 0x100 + obj_frame_tiles gUnknown_835DB68 + 0x600, 0x100 + obj_frame_tiles gUnknown_835DB68 + 0x700, 0x100 + obj_frame_tiles gUnknown_835DB68 + 0x800, 0x100 + obj_frame_tiles gUnknown_835DB68 + 0x900, 0x100 + obj_frame_tiles gUnknown_835DB68 + 0xA00, 0x100 + obj_frame_tiles gUnknown_835DB68 + 0xB00, 0x100 + obj_frame_tiles gUnknown_835DB68 + 0xC00, 0x100 + obj_frame_tiles gUnknown_835DB68 + 0xD00, 0x100 + +gSpriteImages_83A0228:: @ 83A0228 + obj_frame_tiles gUnknown_8363DA8, 0x200 + obj_frame_tiles gUnknown_8363DA8 + 0x200, 0x200 + obj_frame_tiles gUnknown_8363DA8 + 0x400, 0x200 + obj_frame_tiles gUnknown_8363DA8 + 0x600, 0x200 + obj_frame_tiles gUnknown_8363DA8 + 0x800, 0x200 + obj_frame_tiles gUnknown_8363DA8 + 0xA00, 0x200 + obj_frame_tiles gUnknown_8363DA8 + 0xC00, 0x200 + obj_frame_tiles gUnknown_8363DA8 + 0xE00, 0x200 + obj_frame_tiles gUnknown_8363DA8 + 0x1000, 0x200 + +gSpriteImages_83A0270:: @ 83A0270 + obj_frame_tiles gUnknown_835C468, 0x100 + obj_frame_tiles gUnknown_835C468 + 0x100, 0x100 + obj_frame_tiles gUnknown_835C468 + 0x200, 0x100 + obj_frame_tiles gUnknown_835C468, 0x100 + obj_frame_tiles gUnknown_835C468, 0x100 + obj_frame_tiles gUnknown_835C468 + 0x100, 0x100 + obj_frame_tiles gUnknown_835C468 + 0x100, 0x100 + obj_frame_tiles gUnknown_835C468 + 0x200, 0x100 + obj_frame_tiles gUnknown_835C468 + 0x200, 0x100 + obj_frame_tiles gUnknown_835C468, 0x100 + obj_frame_tiles gUnknown_835C468 + 0x100, 0x100 + obj_frame_tiles gUnknown_835C468 + 0x200, 0x100 + +gSpriteImages_83A02D0:: @ 83A02D0 + obj_frame_tiles gUnknown_835DB68, 0x100 + obj_frame_tiles gUnknown_835DB68 + 0x100, 0x100 + obj_frame_tiles gUnknown_835DB68 + 0x200, 0x100 + obj_frame_tiles gUnknown_835DB68, 0x100 + obj_frame_tiles gUnknown_835DB68, 0x100 + obj_frame_tiles gUnknown_835DB68 + 0x100, 0x100 + obj_frame_tiles gUnknown_835DB68 + 0x100, 0x100 + obj_frame_tiles gUnknown_835DB68 + 0x200, 0x100 + obj_frame_tiles gUnknown_835DB68 + 0x200, 0x100 + obj_frame_tiles gUnknown_835DB68, 0x100 + obj_frame_tiles gUnknown_835DB68 + 0x100, 0x100 + obj_frame_tiles gUnknown_835DB68 + 0x200, 0x100 + +gSpriteImages_83A0330:: @ 83A0330 + obj_frame_tiles gUnknown_835E9A8, 0x100 + obj_frame_tiles gUnknown_835E9A8 + 0x100, 0x100 + obj_frame_tiles gUnknown_835E9A8 + 0x200, 0x100 + obj_frame_tiles gUnknown_835E9A8 + 0x300, 0x100 + obj_frame_tiles gUnknown_835E9A8 + 0x400, 0x100 + obj_frame_tiles gUnknown_835E9A8 + 0x500, 0x100 + obj_frame_tiles gUnknown_835E9A8 + 0x600, 0x100 + obj_frame_tiles gUnknown_835E9A8 + 0x700, 0x100 + obj_frame_tiles gUnknown_835E9A8 + 0x800, 0x100 + +gSpriteImages_83A0378:: @ 83A0378 + obj_frame_tiles gUnknown_835F2A8, 0x100 + obj_frame_tiles gUnknown_835F2A8 + 0x100, 0x100 + obj_frame_tiles gUnknown_835F2A8 + 0x200, 0x100 + obj_frame_tiles gUnknown_835F2A8 + 0x300, 0x100 + obj_frame_tiles gUnknown_835F2A8 + 0x400, 0x100 + obj_frame_tiles gUnknown_835F2A8 + 0x500, 0x100 + obj_frame_tiles gUnknown_835F2A8 + 0x600, 0x100 + obj_frame_tiles gUnknown_835F2A8 + 0x700, 0x100 + obj_frame_tiles gUnknown_835F2A8 + 0x800, 0x100 + +gSpriteImages_83A03C0:: @ 83A03C0 + obj_frame_tiles gUnknown_83631A8, 0x200 + obj_frame_tiles gUnknown_83631A8 + 0x200, 0x200 + obj_frame_tiles gUnknown_83631A8 + 0x400, 0x200 + obj_frame_tiles gUnknown_83631A8 + 0x600, 0x200 + obj_frame_tiles gUnknown_83631A8 + 0x800, 0x200 + obj_frame_tiles gUnknown_83631A8 + 0xA00, 0x200 + +gSpriteImages_83A03F0:: @ 83A03F0 + obj_frame_tiles gUnknown_8364FA8, 0x200 + obj_frame_tiles gUnknown_8364FA8 + 0x200, 0x200 + obj_frame_tiles gUnknown_8364FA8 + 0x400, 0x200 + obj_frame_tiles gUnknown_8364FA8 + 0x600, 0x200 + obj_frame_tiles gUnknown_8364FA8 + 0x800, 0x200 + obj_frame_tiles gUnknown_8364FA8 + 0xA00, 0x200 + +gSpriteImages_83A0420:: @ 83A0420 + obj_frame_tiles gUnknown_8365BA8, 0x100 + obj_frame_tiles gUnknown_8365BA8 + 0x100, 0x100 + obj_frame_tiles gUnknown_8365BA8 + 0x200, 0x100 + obj_frame_tiles gUnknown_8365BA8 + 0x300, 0x100 + obj_frame_tiles gUnknown_8365BA8 + 0x400, 0x100 + obj_frame_tiles gUnknown_8365BA8 + 0x500, 0x100 + obj_frame_tiles gUnknown_8365BA8 + 0x600, 0x100 + obj_frame_tiles gUnknown_8365BA8 + 0x700, 0x100 + obj_frame_tiles gUnknown_8365BA8 + 0x800, 0x100 + obj_frame_tiles gUnknown_83664A8, 0x100 + +gSpriteImages_83A0470:: @ 83A0470 + obj_frame_tiles gUnknown_83664A8, 0x100 + obj_frame_tiles gUnknown_83664A8 + 0x100, 0x100 + obj_frame_tiles gUnknown_83664A8 + 0x200, 0x100 + obj_frame_tiles gUnknown_83664A8 + 0x300, 0x100 + obj_frame_tiles gUnknown_83664A8 + 0x400, 0x100 + obj_frame_tiles gUnknown_83664A8 + 0x500, 0x100 + obj_frame_tiles gUnknown_83664A8 + 0x600, 0x100 + obj_frame_tiles gUnknown_83664A8 + 0x700, 0x100 + obj_frame_tiles gUnknown_83664A8 + 0x800, 0x100 + obj_frame_tiles gUnknown_8366DA8, 0x100 + +gSpriteImages_83A04C0:: @ 83A04C0 + obj_frame_tiles gUnknown_8397708, 0x100 + obj_frame_tiles gUnknown_8397708 + 0x100, 0x100 + obj_frame_tiles gUnknown_8397708 + 0x200, 0x100 + obj_frame_tiles gUnknown_8397708 + 0x300, 0x100 + obj_frame_tiles gUnknown_8397708 + 0x400, 0x100 + obj_frame_tiles gUnknown_8397708 + 0x500, 0x100 + obj_frame_tiles gUnknown_8397708 + 0x600, 0x100 + obj_frame_tiles gUnknown_8397708 + 0x700, 0x100 + obj_frame_tiles gUnknown_8397708 + 0x800, 0x100 + +gSpriteImages_83A0508:: @ 83A0508 + obj_frame_tiles gUnknown_836D928, 0x80 + obj_frame_tiles gUnknown_836D928 + 0x80, 0x80 + obj_frame_tiles gUnknown_836D928 + 0x100, 0x80 + obj_frame_tiles gUnknown_836D928 + 0x180, 0x80 + obj_frame_tiles gUnknown_836D928 + 0x200, 0x80 + obj_frame_tiles gUnknown_836D928 + 0x280, 0x80 + obj_frame_tiles gUnknown_836D928 + 0x300, 0x80 + obj_frame_tiles gUnknown_836D928 + 0x380, 0x80 + obj_frame_tiles gUnknown_836D928 + 0x400, 0x80 + +gSpriteImages_83A0550:: @ 83A0550 + obj_frame_tiles gUnknown_836DDA8, 0x80 + obj_frame_tiles gUnknown_836DDA8 + 0x80, 0x80 + obj_frame_tiles gUnknown_836DDA8 + 0x100, 0x80 + obj_frame_tiles gUnknown_836DDA8 + 0x180, 0x80 + obj_frame_tiles gUnknown_836DDA8 + 0x200, 0x80 + obj_frame_tiles gUnknown_836DDA8 + 0x280, 0x80 + obj_frame_tiles gUnknown_836DDA8 + 0x300, 0x80 + obj_frame_tiles gUnknown_836DDA8 + 0x380, 0x80 + obj_frame_tiles gUnknown_836DDA8 + 0x400, 0x80 + obj_frame_tiles gUnknown_836DDA8 + 0x480, 0x80 + +gSpriteImages_83A05A0:: @ 83A05A0 + obj_frame_tiles gUnknown_836E2A8, 0x100 + obj_frame_tiles gUnknown_836E2A8 + 0x200, 0x100 + obj_frame_tiles gUnknown_836E2A8 + 0x100, 0x100 + obj_frame_tiles gUnknown_836E2A8, 0x100 + obj_frame_tiles gUnknown_836E2A8, 0x100 + obj_frame_tiles gUnknown_836E2A8 + 0x200, 0x100 + obj_frame_tiles gUnknown_836E2A8 + 0x200, 0x100 + obj_frame_tiles gUnknown_836E2A8 + 0x100, 0x100 + obj_frame_tiles gUnknown_836E2A8 + 0x100, 0x100 + +gSpriteImages_83A05E8:: @ 83A05E8 + obj_frame_tiles gUnknown_836E5A8, 0x100 + obj_frame_tiles gUnknown_836E5A8 + 0x100, 0x100 + obj_frame_tiles gUnknown_836E5A8 + 0x200, 0x100 + obj_frame_tiles gUnknown_836E5A8 + 0x300, 0x100 + obj_frame_tiles gUnknown_836E5A8 + 0x400, 0x100 + obj_frame_tiles gUnknown_836E5A8 + 0x500, 0x100 + obj_frame_tiles gUnknown_836E5A8 + 0x600, 0x100 + obj_frame_tiles gUnknown_836E5A8 + 0x700, 0x100 + obj_frame_tiles gUnknown_836E5A8 + 0x800, 0x100 + obj_frame_tiles gUnknown_836E5A8 + 0x900, 0x100 + +gSpriteImages_83A0638:: @ 83A0638 + obj_frame_tiles gUnknown_836EFA8, 0x100 + obj_frame_tiles gUnknown_836EFA8 + 0x100, 0x100 + obj_frame_tiles gUnknown_836EFA8 + 0x200, 0x100 + obj_frame_tiles gUnknown_836EFA8 + 0x300, 0x100 + obj_frame_tiles gUnknown_836EFA8 + 0x400, 0x100 + obj_frame_tiles gUnknown_836EFA8 + 0x500, 0x100 + obj_frame_tiles gUnknown_836EFA8 + 0x600, 0x100 + obj_frame_tiles gUnknown_836EFA8 + 0x700, 0x100 + obj_frame_tiles gUnknown_836EFA8 + 0x800, 0x100 + obj_frame_tiles gUnknown_836EFA8 + 0x900, 0x100 + +gSpriteImages_83A0688:: @ 83A0688 + obj_frame_tiles gUnknown_83703A8, 0x100 + obj_frame_tiles gUnknown_83703A8 + 0x100, 0x100 + obj_frame_tiles gUnknown_83703A8 + 0x200, 0x100 + obj_frame_tiles gUnknown_83703A8 + 0x300, 0x100 + obj_frame_tiles gUnknown_83703A8 + 0x400, 0x100 + obj_frame_tiles gUnknown_83703A8 + 0x500, 0x100 + obj_frame_tiles gUnknown_83703A8 + 0x600, 0x100 + obj_frame_tiles gUnknown_83703A8 + 0x700, 0x100 + obj_frame_tiles gUnknown_83703A8 + 0x800, 0x100 + obj_frame_tiles gUnknown_83703A8 + 0x900, 0x100 + +gSpriteImages_83A06D8:: @ 83A06D8 + obj_frame_tiles gUnknown_8370DA8, 0x100 + obj_frame_tiles gUnknown_8370DA8 + 0x100, 0x100 + obj_frame_tiles gUnknown_8370DA8 + 0x200, 0x100 + obj_frame_tiles gUnknown_8370DA8 + 0x300, 0x100 + obj_frame_tiles gUnknown_8370DA8 + 0x400, 0x100 + obj_frame_tiles gUnknown_8370DA8 + 0x500, 0x100 + obj_frame_tiles gUnknown_8370DA8 + 0x600, 0x100 + obj_frame_tiles gUnknown_8370DA8 + 0x700, 0x100 + obj_frame_tiles gUnknown_8370DA8 + 0x800, 0x100 + +gSpriteImages_83A0720:: @ 83A0720 + obj_frame_tiles gUnknown_83720A8, 0x100 + obj_frame_tiles gUnknown_83720A8 + 0x100, 0x100 + obj_frame_tiles gUnknown_83720A8 + 0x200, 0x100 + obj_frame_tiles gUnknown_83720A8 + 0x300, 0x100 + obj_frame_tiles gUnknown_83720A8 + 0x400, 0x100 + obj_frame_tiles gUnknown_83720A8 + 0x500, 0x100 + obj_frame_tiles gUnknown_83720A8 + 0x600, 0x100 + obj_frame_tiles gUnknown_83720A8 + 0x700, 0x100 + obj_frame_tiles gUnknown_83720A8 + 0x800, 0x100 + obj_frame_tiles gUnknown_83720A8 + 0x900, 0x100 + +gSpriteImages_83A0770:: @ 83A0770 + obj_frame_tiles gUnknown_83716A8, 0x100 + obj_frame_tiles gUnknown_83716A8 + 0x100, 0x100 + obj_frame_tiles gUnknown_83716A8 + 0x200, 0x100 + obj_frame_tiles gUnknown_83716A8 + 0x300, 0x100 + obj_frame_tiles gUnknown_83716A8 + 0x400, 0x100 + obj_frame_tiles gUnknown_83716A8 + 0x500, 0x100 + obj_frame_tiles gUnknown_83716A8 + 0x600, 0x100 + obj_frame_tiles gUnknown_83716A8 + 0x700, 0x100 + obj_frame_tiles gUnknown_83716A8 + 0x800, 0x100 + obj_frame_tiles gUnknown_83716A8 + 0x900, 0x100 + +gSpriteImages_83A07C0:: @ 83A07C0 + obj_frame_tiles gUnknown_83733A8, 0x100 + obj_frame_tiles gUnknown_83733A8 + 0x100, 0x100 + obj_frame_tiles gUnknown_83733A8 + 0x200, 0x100 + obj_frame_tiles gUnknown_83733A8 + 0x300, 0x100 + obj_frame_tiles gUnknown_83733A8 + 0x400, 0x100 + obj_frame_tiles gUnknown_83733A8 + 0x500, 0x100 + obj_frame_tiles gUnknown_83733A8 + 0x600, 0x100 + obj_frame_tiles gUnknown_83733A8 + 0x700, 0x100 + obj_frame_tiles gUnknown_83733A8 + 0x800, 0x100 + +gSpriteImages_83A0808:: @ 83A0808 + obj_frame_tiles gUnknown_8373CA8, 0x100 + obj_frame_tiles gUnknown_8373CA8 + 0x100, 0x100 + obj_frame_tiles gUnknown_8373CA8 + 0x200, 0x100 + obj_frame_tiles gUnknown_8373CA8 + 0x300, 0x100 + obj_frame_tiles gUnknown_8373CA8 + 0x400, 0x100 + obj_frame_tiles gUnknown_8373CA8 + 0x500, 0x100 + obj_frame_tiles gUnknown_8373CA8 + 0x600, 0x100 + obj_frame_tiles gUnknown_8373CA8 + 0x700, 0x100 + obj_frame_tiles gUnknown_8373CA8 + 0x800, 0x100 + obj_frame_tiles gUnknown_8373CA8 + 0x900, 0x100 + +gSpriteImages_83A0858:: @ 83A0858 + obj_frame_tiles gUnknown_83746A8, 0x100 + obj_frame_tiles gUnknown_83746A8 + 0x100, 0x100 + obj_frame_tiles gUnknown_83746A8 + 0x200, 0x100 + obj_frame_tiles gUnknown_83746A8 + 0x300, 0x100 + obj_frame_tiles gUnknown_83746A8 + 0x400, 0x100 + obj_frame_tiles gUnknown_83746A8 + 0x500, 0x100 + obj_frame_tiles gUnknown_83746A8 + 0x600, 0x100 + obj_frame_tiles gUnknown_83746A8 + 0x700, 0x100 + obj_frame_tiles gUnknown_83746A8 + 0x800, 0x100 + obj_frame_tiles gUnknown_83746A8 + 0x900, 0x100 + +gSpriteImages_83A08A8:: @ 83A08A8 + obj_frame_tiles gUnknown_83750A8, 0x100 + obj_frame_tiles gUnknown_83750A8 + 0x100, 0x100 + obj_frame_tiles gUnknown_83750A8 + 0x200, 0x100 + obj_frame_tiles gUnknown_83750A8 + 0x300, 0x100 + obj_frame_tiles gUnknown_83750A8 + 0x400, 0x100 + obj_frame_tiles gUnknown_83750A8 + 0x500, 0x100 + obj_frame_tiles gUnknown_83750A8 + 0x600, 0x100 + obj_frame_tiles gUnknown_83750A8 + 0x700, 0x100 + obj_frame_tiles gUnknown_83750A8 + 0x800, 0x100 + obj_frame_tiles gUnknown_83750A8 + 0x900, 0x100 + +gSpriteImages_83A08F8:: @ 83A08F8 + obj_frame_tiles gUnknown_8375CA8, 0x100 + obj_frame_tiles gUnknown_8375CA8 + 0x100, 0x100 + obj_frame_tiles gUnknown_8375CA8 + 0x200, 0x100 + obj_frame_tiles gUnknown_8375CA8 + 0x300, 0x100 + obj_frame_tiles gUnknown_8375CA8 + 0x400, 0x100 + obj_frame_tiles gUnknown_8375CA8 + 0x500, 0x100 + obj_frame_tiles gUnknown_8375CA8 + 0x600, 0x100 + obj_frame_tiles gUnknown_8375CA8 + 0x700, 0x100 + obj_frame_tiles gUnknown_8375CA8 + 0x800, 0x100 + +gSpriteImages_83A0940:: @ 83A0940 + obj_frame_tiles gUnknown_83766A8, 0x100 + obj_frame_tiles gUnknown_83766A8 + 0x100, 0x100 + obj_frame_tiles gUnknown_83766A8 + 0x200, 0x100 + obj_frame_tiles gUnknown_83766A8 + 0x300, 0x100 + obj_frame_tiles gUnknown_83766A8 + 0x400, 0x100 + obj_frame_tiles gUnknown_83766A8 + 0x500, 0x100 + obj_frame_tiles gUnknown_83766A8 + 0x600, 0x100 + obj_frame_tiles gUnknown_83766A8 + 0x700, 0x100 + obj_frame_tiles gUnknown_83766A8 + 0x800, 0x100 + +gSpriteImages_83A0988:: @ 83A0988 + obj_frame_tiles gUnknown_83770A8, 0x100 + obj_frame_tiles gUnknown_83770A8 + 0x100, 0x100 + obj_frame_tiles gUnknown_83770A8 + 0x200, 0x100 + obj_frame_tiles gUnknown_83770A8 + 0x300, 0x100 + obj_frame_tiles gUnknown_83770A8 + 0x400, 0x100 + obj_frame_tiles gUnknown_83770A8 + 0x500, 0x100 + obj_frame_tiles gUnknown_83770A8 + 0x600, 0x100 + obj_frame_tiles gUnknown_83770A8 + 0x700, 0x100 + obj_frame_tiles gUnknown_83770A8 + 0x800, 0x100 + obj_frame_tiles gUnknown_83770A8 + 0x900, 0x100 + +gSpriteImages_83A09D8:: @ 83A09D8 + obj_frame_tiles gUnknown_8377AA8, 0x100 + obj_frame_tiles gUnknown_8377AA8 + 0x100, 0x100 + obj_frame_tiles gUnknown_8377AA8 + 0x200, 0x100 + obj_frame_tiles gUnknown_8377AA8 + 0x300, 0x100 + obj_frame_tiles gUnknown_8377AA8 + 0x400, 0x100 + obj_frame_tiles gUnknown_8377AA8 + 0x500, 0x100 + obj_frame_tiles gUnknown_8377AA8 + 0x600, 0x100 + obj_frame_tiles gUnknown_8377AA8 + 0x700, 0x100 + obj_frame_tiles gUnknown_8377AA8 + 0x800, 0x100 + +gSpriteImages_83A0A20:: @ 83A0A20 + obj_frame_tiles gUnknown_83783A8, 0x100 + obj_frame_tiles gUnknown_83783A8 + 0x100, 0x100 + obj_frame_tiles gUnknown_83783A8 + 0x200, 0x100 + obj_frame_tiles gUnknown_83783A8, 0x100 + obj_frame_tiles gUnknown_83783A8, 0x100 + obj_frame_tiles gUnknown_83783A8 + 0x100, 0x100 + obj_frame_tiles gUnknown_83783A8 + 0x100, 0x100 + obj_frame_tiles gUnknown_83783A8 + 0x200, 0x100 + obj_frame_tiles gUnknown_83783A8 + 0x200, 0x100 + obj_frame_tiles gUnknown_8378CA8, 0x100 + +gSpriteImages_83A0A70:: @ 83A0A70 + obj_frame_tiles gUnknown_8375AA8, 0x200 + obj_frame_tiles gUnknown_8375AA8, 0x200 + obj_frame_tiles gUnknown_8375AA8, 0x200 + obj_frame_tiles gUnknown_8375AA8, 0x200 + obj_frame_tiles gUnknown_8375AA8, 0x200 + obj_frame_tiles gUnknown_8375AA8, 0x200 + obj_frame_tiles gUnknown_8375AA8, 0x200 + obj_frame_tiles gUnknown_8375AA8, 0x200 + obj_frame_tiles gUnknown_8375AA8, 0x200 + +gSpriteImages_83A0AB8:: @ 83A0AB8 + obj_frame_tiles gUnknown_8378CA8, 0x100 + obj_frame_tiles gUnknown_8378CA8 + 0x100, 0x100 + obj_frame_tiles gUnknown_8378CA8 + 0x200, 0x100 + obj_frame_tiles gUnknown_8378CA8 + 0x300, 0x100 + obj_frame_tiles gUnknown_8378CA8 + 0x400, 0x100 + obj_frame_tiles gUnknown_8378CA8 + 0x500, 0x100 + obj_frame_tiles gUnknown_8378CA8 + 0x600, 0x100 + obj_frame_tiles gUnknown_8378CA8 + 0x700, 0x100 + obj_frame_tiles gUnknown_8378CA8 + 0x800, 0x100 + +gSpriteImages_83A0B00:: @ 83A0B00 + obj_frame_tiles gUnknown_83795A8, 0x100 + obj_frame_tiles gUnknown_83795A8 + 0x100, 0x100 + obj_frame_tiles gUnknown_83795A8 + 0x200, 0x100 + obj_frame_tiles gUnknown_83795A8 + 0x300, 0x100 + obj_frame_tiles gUnknown_83795A8 + 0x400, 0x100 + obj_frame_tiles gUnknown_83795A8 + 0x500, 0x100 + obj_frame_tiles gUnknown_83795A8 + 0x600, 0x100 + obj_frame_tiles gUnknown_83795A8 + 0x700, 0x100 + obj_frame_tiles gUnknown_83795A8 + 0x800, 0x100 + obj_frame_tiles gUnknown_83795A8 + 0x900, 0x100 + +gSpriteImages_83A0B50:: @ 83A0B50 + obj_frame_tiles gUnknown_8379FA8, 0x100 + obj_frame_tiles gUnknown_8379FA8 + 0x100, 0x100 + obj_frame_tiles gUnknown_8379FA8 + 0x200, 0x100 + obj_frame_tiles gUnknown_8379FA8 + 0x300, 0x100 + obj_frame_tiles gUnknown_8379FA8 + 0x400, 0x100 + obj_frame_tiles gUnknown_8379FA8 + 0x500, 0x100 + obj_frame_tiles gUnknown_8379FA8 + 0x600, 0x100 + obj_frame_tiles gUnknown_8379FA8 + 0x700, 0x100 + obj_frame_tiles gUnknown_8379FA8 + 0x800, 0x100 + obj_frame_tiles gUnknown_8379FA8 + 0x900, 0x100 + +gSpriteImages_83A0BA0:: @ 83A0BA0 + obj_frame_tiles gUnknown_837A9A8, 0x100 + obj_frame_tiles gUnknown_837A9A8 + 0x100, 0x100 + obj_frame_tiles gUnknown_837A9A8 + 0x200, 0x100 + obj_frame_tiles gUnknown_837A9A8 + 0x300, 0x100 + obj_frame_tiles gUnknown_837A9A8 + 0x400, 0x100 + obj_frame_tiles gUnknown_837A9A8 + 0x500, 0x100 + obj_frame_tiles gUnknown_837A9A8 + 0x600, 0x100 + obj_frame_tiles gUnknown_837A9A8 + 0x700, 0x100 + obj_frame_tiles gUnknown_837A9A8 + 0x800, 0x100 + obj_frame_tiles gUnknown_837A9A8 + 0x900, 0x100 + +gSpriteImages_83A0BF0:: @ 83A0BF0 + obj_frame_tiles gUnknown_837B3A8, 0x100 + obj_frame_tiles gUnknown_837B3A8 + 0x100, 0x100 + obj_frame_tiles gUnknown_837B3A8 + 0x200, 0x100 + obj_frame_tiles gUnknown_837B3A8 + 0x300, 0x100 + obj_frame_tiles gUnknown_837B3A8 + 0x400, 0x100 + obj_frame_tiles gUnknown_837B3A8 + 0x500, 0x100 + obj_frame_tiles gUnknown_837B3A8 + 0x600, 0x100 + obj_frame_tiles gUnknown_837B3A8 + 0x700, 0x100 + obj_frame_tiles gUnknown_837B3A8 + 0x800, 0x100 + obj_frame_tiles gUnknown_837B3A8 + 0x900, 0x100 + +gSpriteImages_83A0C40:: @ 83A0C40 + obj_frame_tiles gUnknown_836F9A8, 0x100 + obj_frame_tiles gUnknown_836F9A8 + 0x100, 0x100 + obj_frame_tiles gUnknown_836F9A8 + 0x200, 0x100 + obj_frame_tiles gUnknown_836F9A8 + 0x300, 0x100 + obj_frame_tiles gUnknown_836F9A8 + 0x400, 0x100 + obj_frame_tiles gUnknown_836F9A8 + 0x500, 0x100 + obj_frame_tiles gUnknown_836F9A8 + 0x600, 0x100 + obj_frame_tiles gUnknown_836F9A8 + 0x700, 0x100 + obj_frame_tiles gUnknown_836F9A8 + 0x800, 0x100 + obj_frame_tiles gUnknown_836F9A8 + 0x900, 0x100 + +gSpriteImages_83A0C90:: @ 83A0C90 + obj_frame_tiles gUnknown_837BF28, 0x100 + obj_frame_tiles gUnknown_837BF28 + 0x100, 0x100 + obj_frame_tiles gUnknown_837BF28 + 0x200, 0x100 + obj_frame_tiles gUnknown_837BF28 + 0x300, 0x100 + obj_frame_tiles gUnknown_837BF28 + 0x400, 0x100 + obj_frame_tiles gUnknown_837BF28 + 0x500, 0x100 + obj_frame_tiles gUnknown_837BF28 + 0x600, 0x100 + obj_frame_tiles gUnknown_837BF28 + 0x700, 0x100 + obj_frame_tiles gUnknown_837BF28 + 0x800, 0x100 + obj_frame_tiles gUnknown_837BF28 + 0x900, 0x100 + +gSpriteImages_83A0CE0:: @ 83A0CE0 + obj_frame_tiles gUnknown_837C928, 0x100 + obj_frame_tiles gUnknown_837C928 + 0x100, 0x100 + obj_frame_tiles gUnknown_837C928 + 0x200, 0x100 + obj_frame_tiles gUnknown_837C928 + 0x300, 0x100 + obj_frame_tiles gUnknown_837C928 + 0x400, 0x100 + obj_frame_tiles gUnknown_837C928 + 0x500, 0x100 + obj_frame_tiles gUnknown_837C928 + 0x600, 0x100 + obj_frame_tiles gUnknown_837C928 + 0x700, 0x100 + obj_frame_tiles gUnknown_837C928 + 0x800, 0x100 + obj_frame_tiles gUnknown_837C928 + 0x900, 0x100 + +gSpriteImages_83A0D30:: @ 83A0D30 + obj_frame_tiles gUnknown_837D328, 0x100 + obj_frame_tiles gUnknown_837D328 + 0x100, 0x100 + obj_frame_tiles gUnknown_837D328 + 0x200, 0x100 + obj_frame_tiles gUnknown_837D328 + 0x300, 0x100 + obj_frame_tiles gUnknown_837D328 + 0x400, 0x100 + obj_frame_tiles gUnknown_837D328 + 0x500, 0x100 + obj_frame_tiles gUnknown_837D328 + 0x600, 0x100 + obj_frame_tiles gUnknown_837D328 + 0x700, 0x100 + obj_frame_tiles gUnknown_837D328 + 0x800, 0x100 + +gSpriteImages_83A0D78:: @ 83A0D78 + obj_frame_tiles gUnknown_837DC28, 0x100 + obj_frame_tiles gUnknown_837DC28 + 0x100, 0x100 + obj_frame_tiles gUnknown_837DC28 + 0x200, 0x100 + obj_frame_tiles gUnknown_837DC28 + 0x300, 0x100 + obj_frame_tiles gUnknown_837DC28 + 0x400, 0x100 + obj_frame_tiles gUnknown_837DC28 + 0x500, 0x100 + obj_frame_tiles gUnknown_837DC28 + 0x600, 0x100 + obj_frame_tiles gUnknown_837DC28 + 0x700, 0x100 + obj_frame_tiles gUnknown_837DC28 + 0x800, 0x100 + obj_frame_tiles gUnknown_837DC28 + 0x900, 0x100 + +gSpriteImages_83A0DC8:: @ 83A0DC8 + obj_frame_tiles gUnknown_837E628, 0x100 + obj_frame_tiles gUnknown_837E628 + 0x100, 0x100 + obj_frame_tiles gUnknown_837E628 + 0x200, 0x100 + obj_frame_tiles gUnknown_837E628 + 0x300, 0x100 + obj_frame_tiles gUnknown_837E628 + 0x400, 0x100 + obj_frame_tiles gUnknown_837E628 + 0x500, 0x100 + obj_frame_tiles gUnknown_837E628 + 0x600, 0x100 + obj_frame_tiles gUnknown_837E628 + 0x700, 0x100 + obj_frame_tiles gUnknown_837E628 + 0x800, 0x100 + obj_frame_tiles gUnknown_837E628 + 0x900, 0x100 + +gSpriteImages_83A0E18:: @ 83A0E18 + obj_frame_tiles gUnknown_837F028, 0x100 + obj_frame_tiles gUnknown_837F028 + 0x100, 0x100 + obj_frame_tiles gUnknown_837F028 + 0x200, 0x100 + obj_frame_tiles gUnknown_837F028 + 0x300, 0x100 + obj_frame_tiles gUnknown_837F028 + 0x400, 0x100 + obj_frame_tiles gUnknown_837F028 + 0x500, 0x100 + obj_frame_tiles gUnknown_837F028 + 0x600, 0x100 + obj_frame_tiles gUnknown_837F028 + 0x700, 0x100 + obj_frame_tiles gUnknown_837F028 + 0x800, 0x100 + obj_frame_tiles gUnknown_837F028 + 0x900, 0x100 + +gSpriteImages_83A0E68:: @ 83A0E68 + obj_frame_tiles gUnknown_837FA28, 0x100 + obj_frame_tiles gUnknown_837FA28 + 0x100, 0x100 + obj_frame_tiles gUnknown_837FA28 + 0x200, 0x100 + obj_frame_tiles gUnknown_837FA28 + 0x300, 0x100 + obj_frame_tiles gUnknown_837FA28 + 0x400, 0x100 + obj_frame_tiles gUnknown_837FA28 + 0x500, 0x100 + obj_frame_tiles gUnknown_837FA28 + 0x600, 0x100 + obj_frame_tiles gUnknown_837FA28 + 0x700, 0x100 + obj_frame_tiles gUnknown_837FA28 + 0x800, 0x100 + obj_frame_tiles gUnknown_837FA28 + 0x900, 0x100 + +gSpriteImages_83A0EB8:: @ 83A0EB8 + obj_frame_tiles gUnknown_8380428, 0x100 + obj_frame_tiles gUnknown_8380428 + 0x100, 0x100 + obj_frame_tiles gUnknown_8380428 + 0x200, 0x100 + obj_frame_tiles gUnknown_8380428 + 0x300, 0x100 + obj_frame_tiles gUnknown_8380428 + 0x400, 0x100 + obj_frame_tiles gUnknown_8380428 + 0x500, 0x100 + obj_frame_tiles gUnknown_8380428 + 0x600, 0x100 + obj_frame_tiles gUnknown_8380428 + 0x700, 0x100 + obj_frame_tiles gUnknown_8380428 + 0x800, 0x100 + obj_frame_tiles gUnknown_8380428 + 0x900, 0x100 + +gSpriteImages_83A0F08:: @ 83A0F08 + obj_frame_tiles gUnknown_8380E28, 0x100 + obj_frame_tiles gUnknown_8380E28 + 0x100, 0x100 + obj_frame_tiles gUnknown_8380E28 + 0x200, 0x100 + obj_frame_tiles gUnknown_8380E28 + 0x300, 0x100 + obj_frame_tiles gUnknown_8380E28 + 0x400, 0x100 + obj_frame_tiles gUnknown_8380E28 + 0x500, 0x100 + obj_frame_tiles gUnknown_8380E28 + 0x600, 0x100 + obj_frame_tiles gUnknown_8380E28 + 0x700, 0x100 + obj_frame_tiles gUnknown_8380E28 + 0x800, 0x100 + obj_frame_tiles gUnknown_8380E28 + 0x900, 0x100 + +gSpriteImages_83A0F58:: @ 83A0F58 + obj_frame_tiles gUnknown_8381828, 0x100 + obj_frame_tiles gUnknown_8381828 + 0x100, 0x100 + obj_frame_tiles gUnknown_8381828 + 0x200, 0x100 + obj_frame_tiles gUnknown_8381828 + 0x300, 0x100 + obj_frame_tiles gUnknown_8381828 + 0x400, 0x100 + obj_frame_tiles gUnknown_8381828 + 0x500, 0x100 + obj_frame_tiles gUnknown_8381828 + 0x600, 0x100 + obj_frame_tiles gUnknown_8381828 + 0x700, 0x100 + obj_frame_tiles gUnknown_8381828 + 0x800, 0x100 + obj_frame_tiles gUnknown_8381828 + 0x900, 0x100 + +gSpriteImages_83A0FA8:: @ 83A0FA8 + obj_frame_tiles gUnknown_8382228, 0x100 + obj_frame_tiles gUnknown_8382228 + 0x100, 0x100 + obj_frame_tiles gUnknown_8382228 + 0x200, 0x100 + obj_frame_tiles gUnknown_8382228 + 0x300, 0x100 + obj_frame_tiles gUnknown_8382228 + 0x400, 0x100 + obj_frame_tiles gUnknown_8382228 + 0x500, 0x100 + obj_frame_tiles gUnknown_8382228 + 0x600, 0x100 + obj_frame_tiles gUnknown_8382228 + 0x700, 0x100 + obj_frame_tiles gUnknown_8382228 + 0x800, 0x100 + obj_frame_tiles gUnknown_8382228 + 0x900, 0x100 + +gSpriteImages_83A0FF8:: @ 83A0FF8 + obj_frame_tiles gUnknown_8382C28, 0x100 + obj_frame_tiles gUnknown_8382C28 + 0x100, 0x100 + obj_frame_tiles gUnknown_8382C28 + 0x200, 0x100 + obj_frame_tiles gUnknown_8382C28 + 0x300, 0x100 + obj_frame_tiles gUnknown_8382C28 + 0x400, 0x100 + obj_frame_tiles gUnknown_8382C28 + 0x500, 0x100 + obj_frame_tiles gUnknown_8382C28 + 0x600, 0x100 + obj_frame_tiles gUnknown_8382C28 + 0x700, 0x100 + obj_frame_tiles gUnknown_8382C28 + 0x800, 0x100 + +gSpriteImages_83A1040:: @ 83A1040 + obj_frame_tiles gUnknown_8383528, 0x100 + obj_frame_tiles gUnknown_8383528 + 0x100, 0x100 + obj_frame_tiles gUnknown_8383528 + 0x200, 0x100 + obj_frame_tiles gUnknown_8383528 + 0x300, 0x100 + obj_frame_tiles gUnknown_8383528 + 0x400, 0x100 + obj_frame_tiles gUnknown_8383528 + 0x500, 0x100 + obj_frame_tiles gUnknown_8383528 + 0x600, 0x100 + obj_frame_tiles gUnknown_8383528 + 0x700, 0x100 + obj_frame_tiles gUnknown_8383528 + 0x800, 0x100 + obj_frame_tiles gUnknown_8383528 + 0x900, 0x100 + +gSpriteImages_83A1090:: @ 83A1090 + obj_frame_tiles gUnknown_8383F28, 0x100 + obj_frame_tiles gUnknown_8383F28 + 0x100, 0x100 + obj_frame_tiles gUnknown_8383F28 + 0x200, 0x100 + obj_frame_tiles gUnknown_8383F28 + 0x300, 0x100 + obj_frame_tiles gUnknown_8383F28 + 0x400, 0x100 + obj_frame_tiles gUnknown_8383F28 + 0x500, 0x100 + obj_frame_tiles gUnknown_8383F28 + 0x600, 0x100 + obj_frame_tiles gUnknown_8383F28 + 0x700, 0x100 + obj_frame_tiles gUnknown_8383F28 + 0x800, 0x100 + +gSpriteImages_83A10D8:: @ 83A10D8 + obj_frame_tiles gUnknown_8384828, 0x100 + obj_frame_tiles gUnknown_8384828 + 0x100, 0x100 + obj_frame_tiles gUnknown_8384828 + 0x200, 0x100 + obj_frame_tiles gUnknown_8384828 + 0x300, 0x100 + obj_frame_tiles gUnknown_8384828 + 0x400, 0x100 + obj_frame_tiles gUnknown_8384828 + 0x500, 0x100 + obj_frame_tiles gUnknown_8384828 + 0x600, 0x100 + obj_frame_tiles gUnknown_8384828 + 0x700, 0x100 + obj_frame_tiles gUnknown_8384828 + 0x800, 0x100 + +gSpriteImages_83A1120:: @ 83A1120 + obj_frame_tiles gUnknown_8385128, 0x80 + obj_frame_tiles gUnknown_8385128 + 0x80, 0x80 + obj_frame_tiles gUnknown_8385128 + 0x100, 0x80 + obj_frame_tiles gUnknown_8385128 + 0x180, 0x80 + obj_frame_tiles gUnknown_8385128 + 0x200, 0x80 + obj_frame_tiles gUnknown_8385128 + 0x280, 0x80 + obj_frame_tiles gUnknown_8385128 + 0x300, 0x80 + obj_frame_tiles gUnknown_8385128 + 0x380, 0x80 + obj_frame_tiles gUnknown_8385128 + 0x400, 0x80 + obj_frame_tiles gUnknown_8385128 + 0x480, 0x80 + +gSpriteImages_83A1170:: @ 83A1170 + obj_frame_tiles gUnknown_8385628, 0x80 + obj_frame_tiles gUnknown_8385628 + 0x80, 0x80 + obj_frame_tiles gUnknown_8385628 + 0x100, 0x80 + obj_frame_tiles gUnknown_8385628 + 0x180, 0x80 + obj_frame_tiles gUnknown_8385628 + 0x200, 0x80 + obj_frame_tiles gUnknown_8385628 + 0x280, 0x80 + obj_frame_tiles gUnknown_8385628 + 0x300, 0x80 + obj_frame_tiles gUnknown_8385628 + 0x380, 0x80 + obj_frame_tiles gUnknown_8385628 + 0x400, 0x80 + obj_frame_tiles gUnknown_8385628 + 0x480, 0x80 + +gSpriteImages_83A11C0:: @ 83A11C0 + obj_frame_tiles gUnknown_8385B28, 0x80 + obj_frame_tiles gUnknown_8385B28 + 0x80, 0x80 + obj_frame_tiles gUnknown_8385B28 + 0x100, 0x80 + obj_frame_tiles gUnknown_8385B28 + 0x180, 0x80 + obj_frame_tiles gUnknown_8385B28 + 0x200, 0x80 + obj_frame_tiles gUnknown_8385B28 + 0x280, 0x80 + obj_frame_tiles gUnknown_8385B28 + 0x300, 0x80 + obj_frame_tiles gUnknown_8385B28 + 0x380, 0x80 + obj_frame_tiles gUnknown_8385B28 + 0x400, 0x80 + obj_frame_tiles gUnknown_8385B28 + 0x480, 0x80 + +gSpriteImages_83A1210:: @ 83A1210 + obj_frame_tiles gUnknown_8386028, 0x100 + obj_frame_tiles gUnknown_8386028 + 0x100, 0x100 + obj_frame_tiles gUnknown_8386028 + 0x200, 0x100 + obj_frame_tiles gUnknown_8386028 + 0x300, 0x100 + obj_frame_tiles gUnknown_8386028 + 0x400, 0x100 + obj_frame_tiles gUnknown_8386028 + 0x500, 0x100 + obj_frame_tiles gUnknown_8386028 + 0x600, 0x100 + obj_frame_tiles gUnknown_8386028 + 0x700, 0x100 + obj_frame_tiles gUnknown_8386028 + 0x800, 0x100 + obj_frame_tiles gUnknown_8386028 + 0x900, 0x100 + +gSpriteImages_83A1260:: @ 83A1260 + obj_frame_tiles gUnknown_8386A28, 0x200 + obj_frame_tiles gUnknown_8386A28 + 0x200, 0x200 + obj_frame_tiles gUnknown_8386A28 + 0x400, 0x200 + obj_frame_tiles gUnknown_8386A28 + 0x600, 0x200 + obj_frame_tiles gUnknown_8386A28 + 0x800, 0x200 + obj_frame_tiles gUnknown_8386A28 + 0xA00, 0x200 + obj_frame_tiles gUnknown_8386A28 + 0xC00, 0x200 + obj_frame_tiles gUnknown_8386A28 + 0xE00, 0x200 + obj_frame_tiles gUnknown_8386A28 + 0x1000, 0x200 + obj_frame_tiles gUnknown_8386A28 + 0x1200, 0x200 + +gSpriteImages_83A12B0:: @ 83A12B0 + obj_frame_tiles gUnknown_8387E28, 0x100 + obj_frame_tiles gUnknown_8387E28 + 0x100, 0x100 + obj_frame_tiles gUnknown_8387E28 + 0x200, 0x100 + obj_frame_tiles gUnknown_8387E28 + 0x300, 0x100 + obj_frame_tiles gUnknown_8387E28 + 0x400, 0x100 + obj_frame_tiles gUnknown_8387E28 + 0x500, 0x100 + obj_frame_tiles gUnknown_8387E28 + 0x600, 0x100 + obj_frame_tiles gUnknown_8387E28 + 0x700, 0x100 + obj_frame_tiles gUnknown_8387E28 + 0x800, 0x100 + +gSpriteImages_83A12F8:: @ 83A12F8 + obj_frame_tiles gUnknown_838AD28, 0x100 + obj_frame_tiles gUnknown_838AD28 + 0x100, 0x100 + obj_frame_tiles gUnknown_838AD28 + 0x200, 0x100 + obj_frame_tiles gUnknown_838AD28, 0x100 + obj_frame_tiles gUnknown_838AD28, 0x100 + obj_frame_tiles gUnknown_838AD28 + 0x100, 0x100 + obj_frame_tiles gUnknown_838AD28 + 0x100, 0x100 + obj_frame_tiles gUnknown_838AD28 + 0x200, 0x100 + obj_frame_tiles gUnknown_838AD28 + 0x200, 0x100 + obj_frame_tiles gUnknown_838AD28 + 0x300, 0x100 + +gSpriteImages_83A1348:: @ 83A1348 + obj_frame_tiles gUnknown_838B728, 0x100 + obj_frame_tiles gUnknown_838B728 + 0x100, 0x100 + obj_frame_tiles gUnknown_838B728 + 0x200, 0x100 + obj_frame_tiles gUnknown_838B728, 0x100 + obj_frame_tiles gUnknown_838B728, 0x100 + obj_frame_tiles gUnknown_838B728 + 0x100, 0x100 + obj_frame_tiles gUnknown_838B728 + 0x100, 0x100 + obj_frame_tiles gUnknown_838B728 + 0x200, 0x100 + obj_frame_tiles gUnknown_838B728 + 0x200, 0x100 + +gSpriteImages_83A1390:: @ 83A1390 + obj_frame_tiles gUnknown_838BA28, 0x80 + +gSpriteImages_83A1398:: @ 83A1398 + obj_frame_tiles gUnknown_8389B28, 0x100 + obj_frame_tiles gUnknown_8389B28 + 0x100, 0x100 + obj_frame_tiles gUnknown_8389B28 + 0x200, 0x100 + obj_frame_tiles gUnknown_8389B28 + 0x300, 0x100 + obj_frame_tiles gUnknown_8389B28 + 0x400, 0x100 + obj_frame_tiles gUnknown_8389B28 + 0x500, 0x100 + obj_frame_tiles gUnknown_8389B28 + 0x600, 0x100 + obj_frame_tiles gUnknown_8389B28 + 0x700, 0x100 + obj_frame_tiles gUnknown_8389B28 + 0x800, 0x100 + +gSpriteImages_83A13E0:: @ 83A13E0 + obj_frame_tiles gUnknown_8388728, 0x100 + obj_frame_tiles gUnknown_8388728 + 0x100, 0x100 + obj_frame_tiles gUnknown_8388728 + 0x200, 0x100 + obj_frame_tiles gUnknown_8388728 + 0x300, 0x100 + obj_frame_tiles gUnknown_8388728 + 0x400, 0x100 + obj_frame_tiles gUnknown_8388728 + 0x500, 0x100 + obj_frame_tiles gUnknown_8388728 + 0x600, 0x100 + obj_frame_tiles gUnknown_8388728 + 0x700, 0x100 + obj_frame_tiles gUnknown_8388728 + 0x800, 0x100 + obj_frame_tiles gUnknown_8388728 + 0x900, 0x100 + +gSpriteImages_83A1430:: @ 83A1430 + obj_frame_tiles gUnknown_8389128, 0x100 + obj_frame_tiles gUnknown_8389128 + 0x100, 0x100 + obj_frame_tiles gUnknown_8389128 + 0x200, 0x100 + obj_frame_tiles gUnknown_8389128 + 0x300, 0x100 + obj_frame_tiles gUnknown_8389128 + 0x400, 0x100 + obj_frame_tiles gUnknown_8389128 + 0x500, 0x100 + obj_frame_tiles gUnknown_8389128 + 0x600, 0x100 + obj_frame_tiles gUnknown_8389128 + 0x700, 0x100 + obj_frame_tiles gUnknown_8389128 + 0x800, 0x100 + obj_frame_tiles gUnknown_8389128 + 0x900, 0x100 + +gSpriteImages_83A1480:: @ 83A1480 + obj_frame_tiles gUnknown_838BAA8, 0x100 + obj_frame_tiles gUnknown_838BAA8 + 0x100, 0x100 + obj_frame_tiles gUnknown_838BAA8 + 0x200, 0x100 + obj_frame_tiles gUnknown_838BAA8 + 0x300, 0x100 + obj_frame_tiles gUnknown_838BAA8 + 0x400, 0x100 + obj_frame_tiles gUnknown_838BAA8 + 0x500, 0x100 + obj_frame_tiles gUnknown_838BAA8 + 0x600, 0x100 + obj_frame_tiles gUnknown_838BAA8 + 0x700, 0x100 + obj_frame_tiles gUnknown_838BAA8 + 0x800, 0x100 + +gSpriteImages_83A14C8:: @ 83A14C8 + obj_frame_tiles gUnknown_838C3A8, 0x100 + obj_frame_tiles gUnknown_838C3A8 + 0x100, 0x100 + obj_frame_tiles gUnknown_838C3A8 + 0x200, 0x100 + obj_frame_tiles gUnknown_838C3A8, 0x100 + obj_frame_tiles gUnknown_838C3A8, 0x100 + obj_frame_tiles gUnknown_838C3A8 + 0x100, 0x100 + obj_frame_tiles gUnknown_838C3A8 + 0x100, 0x100 + obj_frame_tiles gUnknown_838C3A8 + 0x200, 0x100 + obj_frame_tiles gUnknown_838C3A8 + 0x200, 0x100 + +gSpriteImages_83A1510:: @ 83A1510 + obj_frame_tiles gUnknown_83945A8, 0x80 + obj_frame_tiles gUnknown_83945A8 + 0x80, 0x80 + obj_frame_tiles gUnknown_83945A8 + 0x100, 0x80 + obj_frame_tiles gUnknown_83945A8 + 0x180, 0x80 + +gSpriteImages_83A1530:: @ 83A1530 + obj_frame_tiles gUnknown_838C6A8, 0x100 + obj_frame_tiles gUnknown_838C6A8 + 0x100, 0x100 + obj_frame_tiles gUnknown_838C6A8 + 0x200, 0x100 + obj_frame_tiles gUnknown_838C6A8 + 0x300, 0x100 + obj_frame_tiles gUnknown_838C6A8 + 0x400, 0x100 + obj_frame_tiles gUnknown_838C6A8 + 0x500, 0x100 + obj_frame_tiles gUnknown_838C6A8 + 0x600, 0x100 + obj_frame_tiles gUnknown_838C6A8 + 0x700, 0x100 + obj_frame_tiles gUnknown_838C6A8 + 0x800, 0x100 + +gSpriteImages_83A1578:: @ 83A1578 + obj_frame_tiles gUnknown_838CFA8, 0x100 + obj_frame_tiles gUnknown_838CFA8 + 0x100, 0x100 + obj_frame_tiles gUnknown_838CFA8 + 0x200, 0x100 + obj_frame_tiles gUnknown_838CFA8, 0x100 + obj_frame_tiles gUnknown_838CFA8, 0x100 + obj_frame_tiles gUnknown_838CFA8 + 0x100, 0x100 + obj_frame_tiles gUnknown_838CFA8 + 0x100, 0x100 + obj_frame_tiles gUnknown_838CFA8 + 0x200, 0x100 + obj_frame_tiles gUnknown_838CFA8 + 0x200, 0x100 + +gSpriteImages_83A15C0:: @ 83A15C0 + obj_frame_tiles gUnknown_838D2A8, 0x100 + obj_frame_tiles gUnknown_838D2A8 + 0x100, 0x100 + obj_frame_tiles gUnknown_838D2A8 + 0x200, 0x100 + obj_frame_tiles gUnknown_838D2A8, 0x100 + obj_frame_tiles gUnknown_838D2A8, 0x100 + obj_frame_tiles gUnknown_838D2A8 + 0x100, 0x100 + obj_frame_tiles gUnknown_838D2A8 + 0x100, 0x100 + obj_frame_tiles gUnknown_838D2A8 + 0x200, 0x100 + obj_frame_tiles gUnknown_838D2A8 + 0x200, 0x100 + +gSpriteImages_83A1608:: @ 83A1608 + obj_frame_tiles gUnknown_838B128, 0x100 + obj_frame_tiles gUnknown_838B128 + 0x100, 0x100 + obj_frame_tiles gUnknown_838B128 + 0x200, 0x100 + obj_frame_tiles gUnknown_838B128, 0x100 + obj_frame_tiles gUnknown_838B128, 0x100 + obj_frame_tiles gUnknown_838B128 + 0x100, 0x100 + obj_frame_tiles gUnknown_838B128 + 0x100, 0x100 + obj_frame_tiles gUnknown_838B128 + 0x200, 0x100 + obj_frame_tiles gUnknown_838B128 + 0x200, 0x100 + +gSpriteImages_83A1650:: @ 83A1650 + obj_frame_tiles gUnknown_838B428, 0x100 + obj_frame_tiles gUnknown_838B428 + 0x100, 0x100 + obj_frame_tiles gUnknown_838B428 + 0x200, 0x100 + obj_frame_tiles gUnknown_838B428, 0x100 + obj_frame_tiles gUnknown_838B428, 0x100 + obj_frame_tiles gUnknown_838B428 + 0x100, 0x100 + obj_frame_tiles gUnknown_838B428 + 0x100, 0x100 + obj_frame_tiles gUnknown_838B428 + 0x200, 0x100 + obj_frame_tiles gUnknown_838B428 + 0x200, 0x100 + +gSpriteImages_83A1698:: @ 83A1698 + obj_frame_tiles gUnknown_83947A8, 0x80 + obj_frame_tiles gUnknown_83947A8 + 0x80, 0x80 + obj_frame_tiles gUnknown_83947A8 + 0x100, 0x80 + obj_frame_tiles gUnknown_83947A8 + 0x180, 0x80 + +gSpriteImages_83A16B8:: @ 83A16B8 + obj_frame_tiles gUnknown_83949A8, 0x80 + +gSpriteImages_83A16C0:: @ 83A16C0 + obj_frame_tiles gUnknown_838DEA8, 0x100 + obj_frame_tiles gUnknown_838DEA8 + 0x100, 0x100 + obj_frame_tiles gUnknown_838DEA8 + 0x200, 0x100 + obj_frame_tiles gUnknown_838DEA8 + 0x300, 0x100 + obj_frame_tiles gUnknown_838DEA8 + 0x400, 0x100 + obj_frame_tiles gUnknown_838DEA8 + 0x500, 0x100 + obj_frame_tiles gUnknown_838DEA8 + 0x600, 0x100 + obj_frame_tiles gUnknown_838DEA8 + 0x700, 0x100 + obj_frame_tiles gUnknown_838DEA8 + 0x800, 0x100 + +gSpriteImages_83A1708:: @ 83A1708 + obj_frame_tiles gUnknown_838E7A8, 0x100 + obj_frame_tiles gUnknown_838E7A8 + 0x100, 0x100 + obj_frame_tiles gUnknown_838E7A8 + 0x200, 0x100 + obj_frame_tiles gUnknown_838E7A8 + 0x300, 0x100 + obj_frame_tiles gUnknown_838E7A8 + 0x400, 0x100 + obj_frame_tiles gUnknown_838E7A8 + 0x500, 0x100 + obj_frame_tiles gUnknown_838E7A8 + 0x600, 0x100 + obj_frame_tiles gUnknown_838E7A8 + 0x700, 0x100 + obj_frame_tiles gUnknown_838E7A8 + 0x800, 0x100 + +gSpriteImages_83A1750:: @ 83A1750 + obj_frame_tiles gUnknown_8390F28, 0x100 + obj_frame_tiles gUnknown_8390F28 + 0x100, 0x100 + obj_frame_tiles gUnknown_8390F28 + 0x200, 0x100 + obj_frame_tiles gUnknown_8390F28, 0x100 + obj_frame_tiles gUnknown_8390F28, 0x100 + obj_frame_tiles gUnknown_8390F28 + 0x100, 0x100 + obj_frame_tiles gUnknown_8390F28 + 0x100, 0x100 + obj_frame_tiles gUnknown_8390F28 + 0x200, 0x100 + obj_frame_tiles gUnknown_8390F28 + 0x200, 0x100 + +gSpriteImages_83A1798:: @ 83A1798 + obj_frame_tiles gUnknown_836C928, 0x100 + obj_frame_tiles gUnknown_836C928 + 0x100, 0x100 + obj_frame_tiles gUnknown_836C928 + 0x200, 0x100 + obj_frame_tiles gUnknown_836C928, 0x100 + obj_frame_tiles gUnknown_836C928, 0x100 + obj_frame_tiles gUnknown_836C928 + 0x100, 0x100 + obj_frame_tiles gUnknown_836C928 + 0x100, 0x100 + obj_frame_tiles gUnknown_836C928 + 0x200, 0x100 + obj_frame_tiles gUnknown_836C928 + 0x200, 0x100 + +gSpriteImages_83A17E0:: @ 83A17E0 + obj_frame_tiles gUnknown_8391228, 0x100 + obj_frame_tiles gUnknown_8391228 + 0x100, 0x100 + obj_frame_tiles gUnknown_8391228 + 0x200, 0x100 + obj_frame_tiles gUnknown_8391228, 0x100 + obj_frame_tiles gUnknown_8391228, 0x100 + obj_frame_tiles gUnknown_8391228 + 0x100, 0x100 + obj_frame_tiles gUnknown_8391228 + 0x100, 0x100 + obj_frame_tiles gUnknown_8391228 + 0x200, 0x100 + obj_frame_tiles gUnknown_8391228 + 0x200, 0x100 + +gSpriteImages_83A1828:: @ 83A1828 + obj_frame_tiles gUnknown_836CC28, 0x100 + obj_frame_tiles gUnknown_836CC28 + 0x100, 0x100 + obj_frame_tiles gUnknown_836CC28 + 0x200, 0x100 + obj_frame_tiles gUnknown_836CC28, 0x100 + obj_frame_tiles gUnknown_836CC28, 0x100 + obj_frame_tiles gUnknown_836CC28 + 0x100, 0x100 + obj_frame_tiles gUnknown_836CC28 + 0x100, 0x100 + obj_frame_tiles gUnknown_836CC28 + 0x200, 0x100 + obj_frame_tiles gUnknown_836CC28 + 0x200, 0x100 + +gSpriteImages_83A1870:: @ 83A1870 + obj_frame_tiles gUnknown_836C328, 0x100 + obj_frame_tiles gUnknown_836C328 + 0x100, 0x100 + obj_frame_tiles gUnknown_836C328 + 0x200, 0x100 + obj_frame_tiles gUnknown_836C328, 0x100 + obj_frame_tiles gUnknown_836C328, 0x100 + obj_frame_tiles gUnknown_836C328 + 0x100, 0x100 + obj_frame_tiles gUnknown_836C328 + 0x100, 0x100 + obj_frame_tiles gUnknown_836C328 + 0x200, 0x100 + obj_frame_tiles gUnknown_836C328 + 0x200, 0x100 + +gSpriteImages_83A18B8:: @ 83A18B8 + obj_frame_tiles gUnknown_836C628, 0x100 + obj_frame_tiles gUnknown_836C628 + 0x100, 0x100 + obj_frame_tiles gUnknown_836C628 + 0x200, 0x100 + obj_frame_tiles gUnknown_836C628, 0x100 + obj_frame_tiles gUnknown_836C628, 0x100 + obj_frame_tiles gUnknown_836C628 + 0x100, 0x100 + obj_frame_tiles gUnknown_836C628 + 0x100, 0x100 + obj_frame_tiles gUnknown_836C628 + 0x200, 0x100 + obj_frame_tiles gUnknown_836C628 + 0x200, 0x100 + +gSpriteImages_83A1900:: @ 83A1900 + obj_frame_tiles gUnknown_836A228, 0x100 + obj_frame_tiles gUnknown_836A228 + 0x100, 0x100 + obj_frame_tiles gUnknown_836A228 + 0x200, 0x100 + obj_frame_tiles gUnknown_836A228 + 0x300, 0x100 + obj_frame_tiles gUnknown_836A228 + 0x400, 0x100 + obj_frame_tiles gUnknown_836A228 + 0x500, 0x100 + obj_frame_tiles gUnknown_836A228 + 0x600, 0x100 + obj_frame_tiles gUnknown_836A228 + 0x700, 0x100 + obj_frame_tiles gUnknown_836A228 + 0x800, 0x100 + +gSpriteImages_83A1948:: @ 83A1948 + obj_frame_tiles gUnknown_836AB28, 0x100 + obj_frame_tiles gUnknown_836AB28 + 0x100, 0x100 + obj_frame_tiles gUnknown_836AB28 + 0x200, 0x100 + obj_frame_tiles gUnknown_836AB28, 0x100 + obj_frame_tiles gUnknown_836AB28, 0x100 + obj_frame_tiles gUnknown_836AB28 + 0x100, 0x100 + obj_frame_tiles gUnknown_836AB28 + 0x100, 0x100 + obj_frame_tiles gUnknown_836AB28 + 0x200, 0x100 + obj_frame_tiles gUnknown_836AB28 + 0x200, 0x100 + +gSpriteImages_83A1990:: @ 83A1990 + obj_frame_tiles gUnknown_836AE28, 0x100 + obj_frame_tiles gUnknown_836AE28 + 0x100, 0x100 + obj_frame_tiles gUnknown_836AE28 + 0x200, 0x100 + obj_frame_tiles gUnknown_836AE28, 0x100 + obj_frame_tiles gUnknown_836AE28, 0x100 + obj_frame_tiles gUnknown_836AE28 + 0x100, 0x100 + obj_frame_tiles gUnknown_836AE28 + 0x100, 0x100 + obj_frame_tiles gUnknown_836AE28 + 0x200, 0x100 + obj_frame_tiles gUnknown_836AE28 + 0x200, 0x100 + +gSpriteImages_83A19D8:: @ 83A19D8 + obj_frame_tiles gUnknown_836CF28, 0x100 + obj_frame_tiles gUnknown_836CF28 + 0x100, 0x100 + obj_frame_tiles gUnknown_836CF28 + 0x200, 0x100 + obj_frame_tiles gUnknown_836CF28 + 0x300, 0x100 + obj_frame_tiles gUnknown_836CF28 + 0x400, 0x100 + obj_frame_tiles gUnknown_836CF28 + 0x500, 0x100 + obj_frame_tiles gUnknown_836CF28 + 0x600, 0x100 + obj_frame_tiles gUnknown_836CF28 + 0x700, 0x100 + obj_frame_tiles gUnknown_836CF28 + 0x800, 0x100 + +gSpriteImages_83A1A20:: @ 83A1A20 + obj_frame_tiles gUnknown_836B128, 0x100 + obj_frame_tiles gUnknown_836B128 + 0x100, 0x100 + obj_frame_tiles gUnknown_836B128 + 0x200, 0x100 + obj_frame_tiles gUnknown_836B128 + 0x300, 0x100 + obj_frame_tiles gUnknown_836B128 + 0x400, 0x100 + obj_frame_tiles gUnknown_836B128 + 0x500, 0x100 + obj_frame_tiles gUnknown_836B128 + 0x600, 0x100 + obj_frame_tiles gUnknown_836B128 + 0x700, 0x100 + obj_frame_tiles gUnknown_836B128 + 0x800, 0x100 + +gSpriteImages_83A1A68:: @ 83A1A68 + obj_frame_tiles gUnknown_836BA28, 0x100 + obj_frame_tiles gUnknown_836BA28 + 0x100, 0x100 + obj_frame_tiles gUnknown_836BA28 + 0x200, 0x100 + obj_frame_tiles gUnknown_836BA28 + 0x300, 0x100 + obj_frame_tiles gUnknown_836BA28 + 0x400, 0x100 + obj_frame_tiles gUnknown_836BA28 + 0x500, 0x100 + obj_frame_tiles gUnknown_836BA28 + 0x600, 0x100 + obj_frame_tiles gUnknown_836BA28 + 0x700, 0x100 + obj_frame_tiles gUnknown_836BA28 + 0x800, 0x100 + +gSpriteImages_83A1AB0:: @ 83A1AB0 + obj_frame_tiles gUnknown_8391528, 0x100 + obj_frame_tiles gUnknown_8391528 + 0x100, 0x100 + obj_frame_tiles gUnknown_8391528 + 0x200, 0x100 + obj_frame_tiles gUnknown_8391528, 0x100 + obj_frame_tiles gUnknown_8391528, 0x100 + obj_frame_tiles gUnknown_8391528 + 0x100, 0x100 + obj_frame_tiles gUnknown_8391528 + 0x100, 0x100 + obj_frame_tiles gUnknown_8391528 + 0x200, 0x100 + obj_frame_tiles gUnknown_8391528 + 0x200, 0x100 + +gSpriteImages_83A1AF8:: @ 83A1AF8 + obj_frame_tiles gUnknown_838A428, 0x100 + obj_frame_tiles gUnknown_838A428 + 0x100, 0x100 + obj_frame_tiles gUnknown_838A428 + 0x200, 0x100 + obj_frame_tiles gUnknown_838A428 + 0x300, 0x100 + obj_frame_tiles gUnknown_838A428 + 0x400, 0x100 + obj_frame_tiles gUnknown_838A428 + 0x500, 0x100 + obj_frame_tiles gUnknown_838A428 + 0x600, 0x100 + obj_frame_tiles gUnknown_838A428 + 0x700, 0x100 + obj_frame_tiles gUnknown_838A428 + 0x800, 0x100 + +gSpriteImages_83A1B40:: @ 83A1B40 + obj_frame_tiles gUnknown_8366DA8, 0x200 + obj_frame_tiles gUnknown_8366DA8 + 0x200, 0x200 + obj_frame_tiles gUnknown_8366DA8 + 0x400, 0x200 + obj_frame_tiles gUnknown_8366DA8 + 0x600, 0x200 + obj_frame_tiles gUnknown_8366DA8 + 0x800, 0x200 + obj_frame_tiles gUnknown_8366DA8 + 0xA00, 0x200 + obj_frame_tiles gUnknown_8366DA8 + 0xC00, 0x200 + obj_frame_tiles gUnknown_8366DA8 + 0xE00, 0x200 + obj_frame_tiles gUnknown_8366DA8 + 0x1000, 0x200 + obj_frame_tiles gUnknown_8366DA8 + 0x1200, 0x200 + obj_frame_tiles gUnknown_8366DA8 + 0x1400, 0x200 + obj_frame_tiles gUnknown_8366DA8 + 0x1600, 0x200 + +gSpriteImages_83A1BA0:: @ 83A1BA0 + obj_frame_tiles gUnknown_83685A8, 0x200 + obj_frame_tiles gUnknown_83685A8 + 0x200, 0x200 + obj_frame_tiles gUnknown_83685A8 + 0x400, 0x200 + obj_frame_tiles gUnknown_83685A8 + 0x600, 0x200 + obj_frame_tiles gUnknown_83685A8 + 0x800, 0x200 + obj_frame_tiles gUnknown_83685A8 + 0xA00, 0x200 + obj_frame_tiles gUnknown_83685A8 + 0xC00, 0x200 + obj_frame_tiles gUnknown_83685A8 + 0xE00, 0x200 + obj_frame_tiles gUnknown_83685A8 + 0x1000, 0x200 + obj_frame_tiles gUnknown_83685A8 + 0x1200, 0x200 + obj_frame_tiles gUnknown_83685A8 + 0x1400, 0x200 + obj_frame_tiles gUnknown_83685A8 + 0x1600, 0x200 + +gSpriteImages_83A1C00:: @ 83A1C00 + obj_frame_tiles gUnknown_8369E28, 0x100 + +gSpriteImages_83A1C08:: @ 83A1C08 + obj_frame_tiles gUnknown_8369DA8, 0x80 + +gSpriteImages_83A1C10:: @ 83A1C10 + obj_frame_tiles gUnknown_8391828, 0x100 + obj_frame_tiles gUnknown_8391828 + 0x100, 0x100 + obj_frame_tiles gUnknown_8391828 + 0x200, 0x100 + obj_frame_tiles gUnknown_8391828, 0x100 + obj_frame_tiles gUnknown_8391828, 0x100 + obj_frame_tiles gUnknown_8391828 + 0x100, 0x100 + obj_frame_tiles gUnknown_8391828 + 0x100, 0x100 + obj_frame_tiles gUnknown_8391828 + 0x200, 0x100 + obj_frame_tiles gUnknown_8391828 + 0x200, 0x100 + +gSpriteImages_83A1C58:: @ 83A1C58 + obj_frame_tiles gUnknown_8394A28, 0x80 + +gSpriteImages_83A1C60:: @ 83A1C60 + obj_frame_tiles gUnknown_8394AA8, 0x80 + +gSpriteImages_83A1C68:: @ 83A1C68 + obj_frame_tiles gUnknown_8394B28, 0x80 + +gSpriteImages_83A1C70:: @ 83A1C70 + obj_frame_tiles gUnknown_8394BA8, 0x80 + +gSpriteImages_83A1C78:: @ 83A1C78 + obj_frame_tiles gUnknown_8394C28, 0x100 + +gSpriteImages_83A1C80:: @ 83A1C80 + obj_frame_tiles gUnknown_8394D28, 0x80 + +gSpriteImages_83A1C88:: @ 83A1C88 + obj_frame_tiles gUnknown_8394DA8, 0x80 + +gSpriteImages_83A1C90:: @ 83A1C90 + obj_frame_tiles gUnknown_8394E28, 0x80 + +gSpriteImages_83A1C98:: @ 83A1C98 + obj_frame_tiles gUnknown_8394EC8, 0x200 + +gSpriteImages_83A1CA0:: @ 83A1CA0 + obj_frame_tiles gUnknown_83950C8, 0x200 + +gSpriteImages_83A1CA8:: @ 83A1CA8 + obj_frame_tiles gUnknown_83952E8, 0x800 + obj_frame_tiles gUnknown_83952E8, 0x800 + obj_frame_tiles gUnknown_83952E8, 0x800 + obj_frame_tiles gUnknown_83952E8, 0x800 + obj_frame_tiles gUnknown_83952E8, 0x800 + obj_frame_tiles gUnknown_83952E8, 0x800 + obj_frame_tiles gUnknown_83952E8, 0x800 + obj_frame_tiles gUnknown_83952E8, 0x800 + obj_frame_tiles gUnknown_83952E8, 0x800 + +gSpriteImages_83A1CF0:: @ 83A1CF0 + obj_frame_tiles gUnknown_8395B08, 0x1000 + obj_frame_tiles gUnknown_8395B08, 0x1000 + obj_frame_tiles gUnknown_8395B08, 0x1000 + obj_frame_tiles gUnknown_8395B08, 0x1000 + obj_frame_tiles gUnknown_8395B08, 0x1000 + obj_frame_tiles gUnknown_8395B08, 0x1000 + obj_frame_tiles gUnknown_8395B08, 0x1000 + obj_frame_tiles gUnknown_8395B08, 0x1000 + obj_frame_tiles gUnknown_8395B08, 0x1000 + +gSpriteImages_83A1D38:: @ 83A1D38 + obj_frame_tiles gUnknown_83937A8, 0x200 + obj_frame_tiles gUnknown_83937A8, 0x200 + obj_frame_tiles gUnknown_83937A8, 0x200 + obj_frame_tiles gUnknown_83937A8, 0x200 + obj_frame_tiles gUnknown_83937A8, 0x200 + obj_frame_tiles gUnknown_83937A8, 0x200 + obj_frame_tiles gUnknown_83937A8, 0x200 + obj_frame_tiles gUnknown_83937A8, 0x200 + obj_frame_tiles gUnknown_83937A8, 0x200 + +gSpriteImages_83A1D80:: @ 83A1D80 + obj_frame_tiles gUnknown_83939A8, 0x80 + obj_frame_tiles gUnknown_83939A8 + 0x80, 0x80 + obj_frame_tiles gUnknown_83939A8 + 0x100, 0x80 + obj_frame_tiles gUnknown_83939A8, 0x80 + obj_frame_tiles gUnknown_83939A8, 0x80 + obj_frame_tiles gUnknown_83939A8 + 0x80, 0x80 + obj_frame_tiles gUnknown_83939A8 + 0x80, 0x80 + obj_frame_tiles gUnknown_83939A8 + 0x100, 0x80 + obj_frame_tiles gUnknown_83939A8 + 0x100, 0x80 + +gSpriteImages_83A1DC8:: @ 83A1DC8 + obj_frame_tiles gUnknown_8391E28, 0x80 + obj_frame_tiles gUnknown_8391E28 + 0x80, 0x80 + obj_frame_tiles gUnknown_8391E28 + 0x100, 0x80 + obj_frame_tiles gUnknown_8391E28, 0x80 + obj_frame_tiles gUnknown_8391E28, 0x80 + obj_frame_tiles gUnknown_8391E28 + 0x80, 0x80 + obj_frame_tiles gUnknown_8391E28 + 0x80, 0x80 + obj_frame_tiles gUnknown_8391E28 + 0x100, 0x80 + obj_frame_tiles gUnknown_8391E28 + 0x100, 0x80 + +gSpriteImages_83A1E10:: @ 83A1E10 + obj_frame_tiles gUnknown_8391FA8, 0x80 + obj_frame_tiles gUnknown_8391FA8 + 0x80, 0x80 + obj_frame_tiles gUnknown_8391FA8 + 0x100, 0x80 + obj_frame_tiles gUnknown_8391FA8, 0x80 + obj_frame_tiles gUnknown_8391FA8, 0x80 + obj_frame_tiles gUnknown_8391FA8 + 0x80, 0x80 + obj_frame_tiles gUnknown_8391FA8 + 0x80, 0x80 + obj_frame_tiles gUnknown_8391FA8 + 0x100, 0x80 + obj_frame_tiles gUnknown_8391FA8 + 0x100, 0x80 + +gSpriteImages_83A1E58:: @ 83A1E58 + obj_frame_tiles gUnknown_8392128, 0x80 + obj_frame_tiles gUnknown_8392128 + 0x80, 0x80 + obj_frame_tiles gUnknown_8392128 + 0x100, 0x80 + obj_frame_tiles gUnknown_8392128, 0x80 + obj_frame_tiles gUnknown_8392128, 0x80 + obj_frame_tiles gUnknown_8392128 + 0x80, 0x80 + obj_frame_tiles gUnknown_8392128 + 0x80, 0x80 + obj_frame_tiles gUnknown_8392128 + 0x100, 0x80 + obj_frame_tiles gUnknown_8392128 + 0x100, 0x80 + +gSpriteImages_83A1EA0:: @ 83A1EA0 + obj_frame_tiles gUnknown_837BDA8, 0x80 + obj_frame_tiles gUnknown_837BDA8 + 0x80, 0x80 + obj_frame_tiles gUnknown_837BDA8 + 0x100, 0x80 + obj_frame_tiles gUnknown_837BDA8, 0x80 + obj_frame_tiles gUnknown_837BDA8, 0x80 + obj_frame_tiles gUnknown_837BDA8 + 0x80, 0x80 + obj_frame_tiles gUnknown_837BDA8 + 0x80, 0x80 + obj_frame_tiles gUnknown_837BDA8 + 0x100, 0x80 + obj_frame_tiles gUnknown_837BDA8 + 0x100, 0x80 + +gSpriteImages_83A1EE8:: @ 83A1EE8 + obj_frame_tiles gUnknown_83922A8, 0x80 + obj_frame_tiles gUnknown_83922A8 + 0x80, 0x80 + obj_frame_tiles gUnknown_83922A8 + 0x100, 0x80 + obj_frame_tiles gUnknown_83922A8, 0x80 + obj_frame_tiles gUnknown_83922A8, 0x80 + obj_frame_tiles gUnknown_83922A8 + 0x80, 0x80 + obj_frame_tiles gUnknown_83922A8 + 0x80, 0x80 + obj_frame_tiles gUnknown_83922A8 + 0x100, 0x80 + obj_frame_tiles gUnknown_83922A8 + 0x100, 0x80 + +gSpriteImages_83A1F30:: @ 83A1F30 + obj_frame_tiles gUnknown_8392428, 0x80 + obj_frame_tiles gUnknown_8392428 + 0x80, 0x80 + obj_frame_tiles gUnknown_8392428 + 0x100, 0x80 + obj_frame_tiles gUnknown_8392428, 0x80 + obj_frame_tiles gUnknown_8392428, 0x80 + obj_frame_tiles gUnknown_8392428 + 0x80, 0x80 + obj_frame_tiles gUnknown_8392428 + 0x80, 0x80 + obj_frame_tiles gUnknown_8392428 + 0x100, 0x80 + obj_frame_tiles gUnknown_8392428 + 0x100, 0x80 + +gSpriteImages_83A1F78:: @ 83A1F78 + obj_frame_tiles gUnknown_83925A8, 0x80 + obj_frame_tiles gUnknown_83925A8 + 0x80, 0x80 + obj_frame_tiles gUnknown_83925A8 + 0x100, 0x80 + obj_frame_tiles gUnknown_83925A8, 0x80 + obj_frame_tiles gUnknown_83925A8, 0x80 + obj_frame_tiles gUnknown_83925A8 + 0x80, 0x80 + obj_frame_tiles gUnknown_83925A8 + 0x80, 0x80 + obj_frame_tiles gUnknown_83925A8 + 0x100, 0x80 + obj_frame_tiles gUnknown_83925A8 + 0x100, 0x80 + +gSpriteImages_83A1FC0:: @ 83A1FC0 + obj_frame_tiles gUnknown_8392728, 0x80 + obj_frame_tiles gUnknown_8392728 + 0x80, 0x80 + obj_frame_tiles gUnknown_8392728 + 0x100, 0x80 + obj_frame_tiles gUnknown_8392728, 0x80 + obj_frame_tiles gUnknown_8392728, 0x80 + obj_frame_tiles gUnknown_8392728 + 0x80, 0x80 + obj_frame_tiles gUnknown_8392728 + 0x80, 0x80 + obj_frame_tiles gUnknown_8392728 + 0x100, 0x80 + obj_frame_tiles gUnknown_8392728 + 0x100, 0x80 + +gSpriteImages_83A2008:: @ 83A2008 + obj_frame_tiles gUnknown_83928A8, 0x80 + obj_frame_tiles gUnknown_83928A8 + 0x80, 0x80 + obj_frame_tiles gUnknown_83928A8 + 0x100, 0x80 + obj_frame_tiles gUnknown_83928A8, 0x80 + obj_frame_tiles gUnknown_83928A8, 0x80 + obj_frame_tiles gUnknown_83928A8 + 0x80, 0x80 + obj_frame_tiles gUnknown_83928A8 + 0x80, 0x80 + obj_frame_tiles gUnknown_83928A8 + 0x100, 0x80 + obj_frame_tiles gUnknown_83928A8 + 0x100, 0x80 + +gSpriteImages_83A2050:: @ 83A2050 + obj_frame_tiles gUnknown_8392A28, 0x80 + obj_frame_tiles gUnknown_8392A28 + 0x80, 0x80 + obj_frame_tiles gUnknown_8392A28 + 0x100, 0x80 + obj_frame_tiles gUnknown_8392A28, 0x80 + obj_frame_tiles gUnknown_8392A28, 0x80 + obj_frame_tiles gUnknown_8392A28 + 0x80, 0x80 + obj_frame_tiles gUnknown_8392A28 + 0x80, 0x80 + obj_frame_tiles gUnknown_8392A28 + 0x100, 0x80 + obj_frame_tiles gUnknown_8392A28 + 0x100, 0x80 + +gSpriteImages_83A2098:: @ 83A2098 + obj_frame_tiles gUnknown_8392BA8, 0x80 + obj_frame_tiles gUnknown_8392BA8 + 0x80, 0x80 + obj_frame_tiles gUnknown_8392BA8 + 0x100, 0x80 + obj_frame_tiles gUnknown_8392BA8, 0x80 + obj_frame_tiles gUnknown_8392BA8, 0x80 + obj_frame_tiles gUnknown_8392BA8 + 0x80, 0x80 + obj_frame_tiles gUnknown_8392BA8 + 0x80, 0x80 + obj_frame_tiles gUnknown_8392BA8 + 0x100, 0x80 + obj_frame_tiles gUnknown_8392BA8 + 0x100, 0x80 + +gSpriteImages_83A20E0:: @ 83A20E0 + obj_frame_tiles gUnknown_8392D28, 0x80 + obj_frame_tiles gUnknown_8392D28 + 0x80, 0x80 + obj_frame_tiles gUnknown_8392D28 + 0x100, 0x80 + obj_frame_tiles gUnknown_8392D28, 0x80 + obj_frame_tiles gUnknown_8392D28, 0x80 + obj_frame_tiles gUnknown_8392D28 + 0x80, 0x80 + obj_frame_tiles gUnknown_8392D28 + 0x80, 0x80 + obj_frame_tiles gUnknown_8392D28 + 0x100, 0x80 + obj_frame_tiles gUnknown_8392D28 + 0x100, 0x80 + +gSpriteImages_83A2128:: @ 83A2128 + obj_frame_tiles gUnknown_8392EA8, 0x80 + obj_frame_tiles gUnknown_8392EA8 + 0x80, 0x80 + obj_frame_tiles gUnknown_8392EA8 + 0x100, 0x80 + obj_frame_tiles gUnknown_8392EA8, 0x80 + obj_frame_tiles gUnknown_8392EA8, 0x80 + obj_frame_tiles gUnknown_8392EA8 + 0x80, 0x80 + obj_frame_tiles gUnknown_8392EA8 + 0x80, 0x80 + obj_frame_tiles gUnknown_8392EA8 + 0x100, 0x80 + obj_frame_tiles gUnknown_8392EA8 + 0x100, 0x80 + +gSpriteImages_83A2170:: @ 83A2170 + obj_frame_tiles gUnknown_8393028, 0x80 + obj_frame_tiles gUnknown_8393028 + 0x80, 0x80 + obj_frame_tiles gUnknown_8393028 + 0x100, 0x80 + obj_frame_tiles gUnknown_8393028, 0x80 + obj_frame_tiles gUnknown_8393028, 0x80 + obj_frame_tiles gUnknown_8393028 + 0x80, 0x80 + obj_frame_tiles gUnknown_8393028 + 0x80, 0x80 + obj_frame_tiles gUnknown_8393028 + 0x100, 0x80 + obj_frame_tiles gUnknown_8393028 + 0x100, 0x80 + +gSpriteImages_83A21B8:: @ 83A21B8 + obj_frame_tiles gUnknown_83931A8, 0x80 + obj_frame_tiles gUnknown_83931A8 + 0x80, 0x80 + obj_frame_tiles gUnknown_83931A8 + 0x100, 0x80 + obj_frame_tiles gUnknown_83931A8, 0x80 + obj_frame_tiles gUnknown_83931A8, 0x80 + obj_frame_tiles gUnknown_83931A8 + 0x80, 0x80 + obj_frame_tiles gUnknown_83931A8 + 0x80, 0x80 + obj_frame_tiles gUnknown_83931A8 + 0x100, 0x80 + obj_frame_tiles gUnknown_83931A8 + 0x100, 0x80 + +gSpriteImages_83A2200:: @ 83A2200 + obj_frame_tiles gUnknown_8393328, 0x80 + obj_frame_tiles gUnknown_8393328 + 0x80, 0x80 + obj_frame_tiles gUnknown_8393328 + 0x100, 0x80 + obj_frame_tiles gUnknown_8393328, 0x80 + obj_frame_tiles gUnknown_8393328, 0x80 + obj_frame_tiles gUnknown_8393328 + 0x80, 0x80 + obj_frame_tiles gUnknown_8393328 + 0x80, 0x80 + obj_frame_tiles gUnknown_8393328 + 0x100, 0x80 + obj_frame_tiles gUnknown_8393328 + 0x100, 0x80 + +gSpriteImages_83A2248:: @ 83A2248 + obj_frame_tiles gUnknown_838F0A8, 0x80 + obj_frame_tiles gUnknown_838F0A8 + 0x80, 0x80 + obj_frame_tiles gUnknown_838F0A8 + 0x100, 0x80 + obj_frame_tiles gUnknown_838F0A8, 0x80 + obj_frame_tiles gUnknown_838F0A8, 0x80 + obj_frame_tiles gUnknown_838F0A8 + 0x80, 0x80 + obj_frame_tiles gUnknown_838F0A8 + 0x80, 0x80 + obj_frame_tiles gUnknown_838F0A8 + 0x100, 0x80 + obj_frame_tiles gUnknown_838F0A8 + 0x100, 0x80 + +gSpriteImages_83A2290:: @ 83A2290 + obj_frame_tiles gUnknown_838F228, 0x200 + obj_frame_tiles gUnknown_838F228, 0x200 + obj_frame_tiles gUnknown_838F228, 0x200 + obj_frame_tiles gUnknown_838F228, 0x200 + obj_frame_tiles gUnknown_838F228, 0x200 + obj_frame_tiles gUnknown_838F228, 0x200 + obj_frame_tiles gUnknown_838F228, 0x200 + obj_frame_tiles gUnknown_838F228, 0x200 + obj_frame_tiles gUnknown_838F228, 0x200 + +gSpriteImages_83A22D8:: @ 83A22D8 + obj_frame_tiles gUnknown_838F428, 0x200 + obj_frame_tiles gUnknown_838F428, 0x200 + obj_frame_tiles gUnknown_838F428, 0x200 + obj_frame_tiles gUnknown_838F428, 0x200 + obj_frame_tiles gUnknown_838F428, 0x200 + obj_frame_tiles gUnknown_838F428, 0x200 + obj_frame_tiles gUnknown_838F428, 0x200 + obj_frame_tiles gUnknown_838F428, 0x200 + obj_frame_tiles gUnknown_838F428, 0x200 + +gSpriteImages_83A2320:: @ 83A2320 + obj_frame_tiles gUnknown_838F628, 0x200 + obj_frame_tiles gUnknown_838F628, 0x200 + obj_frame_tiles gUnknown_838F628, 0x200 + obj_frame_tiles gUnknown_838F628, 0x200 + obj_frame_tiles gUnknown_838F628, 0x200 + obj_frame_tiles gUnknown_838F628, 0x200 + obj_frame_tiles gUnknown_838F628, 0x200 + obj_frame_tiles gUnknown_838F628, 0x200 + obj_frame_tiles gUnknown_838F628, 0x200 + +gSpriteImages_83A2368:: @ 83A2368 + obj_frame_tiles gUnknown_8390328, 0x200 + obj_frame_tiles gUnknown_8390328, 0x200 + obj_frame_tiles gUnknown_8390328, 0x200 + obj_frame_tiles gUnknown_8390328, 0x200 + obj_frame_tiles gUnknown_8390328 + 0x200, 0x200 + obj_frame_tiles gUnknown_8390328, 0x200 + obj_frame_tiles gUnknown_8390328 + 0x200, 0x200 + obj_frame_tiles gUnknown_8390328, 0x200 + obj_frame_tiles gUnknown_8390328 + 0x200, 0x200 + +gSpriteImages_83A23B0:: @ 83A23B0 + obj_frame_tiles gUnknown_8390728, 0x200 + obj_frame_tiles gUnknown_8390728, 0x200 + obj_frame_tiles gUnknown_8390728, 0x200 + obj_frame_tiles gUnknown_8390728, 0x200 + obj_frame_tiles gUnknown_8390728 + 0x200, 0x200 + obj_frame_tiles gUnknown_8390728, 0x200 + obj_frame_tiles gUnknown_8390728 + 0x200, 0x200 + obj_frame_tiles gUnknown_8390728, 0x200 + obj_frame_tiles gUnknown_8390728 + 0x200, 0x200 + +gSpriteImages_83A23F8:: @ 83A23F8 + obj_frame_tiles gUnknown_8390B28, 0x200 + obj_frame_tiles gUnknown_8390B28, 0x200 + obj_frame_tiles gUnknown_8390B28, 0x200 + obj_frame_tiles gUnknown_8390B28, 0x200 + obj_frame_tiles gUnknown_8390B28 + 0x200, 0x200 + obj_frame_tiles gUnknown_8390B28, 0x200 + obj_frame_tiles gUnknown_8390B28 + 0x200, 0x200 + obj_frame_tiles gUnknown_8390B28, 0x200 + obj_frame_tiles gUnknown_8390B28 + 0x200, 0x200 + +gSpriteImages_83A2440:: @ 83A2440 + obj_frame_tiles gUnknown_838F828, 0x80 + obj_frame_tiles gUnknown_838F828, 0x80 + obj_frame_tiles gUnknown_838F828, 0x80 + obj_frame_tiles gUnknown_838F828, 0x80 + obj_frame_tiles gUnknown_838F828, 0x80 + obj_frame_tiles gUnknown_838F828, 0x80 + obj_frame_tiles gUnknown_838F828, 0x80 + obj_frame_tiles gUnknown_838F828, 0x80 + obj_frame_tiles gUnknown_838F828, 0x80 + +gSpriteImages_83A2488:: @ 83A2488 + obj_frame_tiles gUnknown_838F8A8, 0x80 + obj_frame_tiles gUnknown_838F8A8, 0x80 + obj_frame_tiles gUnknown_838F8A8, 0x80 + obj_frame_tiles gUnknown_838F8A8, 0x80 + obj_frame_tiles gUnknown_838F8A8, 0x80 + obj_frame_tiles gUnknown_838F8A8, 0x80 + obj_frame_tiles gUnknown_838F8A8, 0x80 + obj_frame_tiles gUnknown_838F8A8, 0x80 + obj_frame_tiles gUnknown_838F8A8, 0x80 + +gSpriteImages_83A24D0:: @ 83A24D0 + obj_frame_tiles gUnknown_838F928, 0x80 + obj_frame_tiles gUnknown_838F928, 0x80 + obj_frame_tiles gUnknown_838F928, 0x80 + obj_frame_tiles gUnknown_838F928, 0x80 + obj_frame_tiles gUnknown_838F928, 0x80 + obj_frame_tiles gUnknown_838F928, 0x80 + obj_frame_tiles gUnknown_838F928, 0x80 + obj_frame_tiles gUnknown_838F928, 0x80 + obj_frame_tiles gUnknown_838F928, 0x80 + +gSpriteImages_83A2518:: @ 83A2518 + obj_frame_tiles gUnknown_838F9A8, 0x80 + obj_frame_tiles gUnknown_838F9A8, 0x80 + obj_frame_tiles gUnknown_838F9A8, 0x80 + obj_frame_tiles gUnknown_838F9A8, 0x80 + obj_frame_tiles gUnknown_838F9A8, 0x80 + obj_frame_tiles gUnknown_838F9A8, 0x80 + obj_frame_tiles gUnknown_838F9A8, 0x80 + obj_frame_tiles gUnknown_838F9A8, 0x80 + obj_frame_tiles gUnknown_838F9A8, 0x80 + +gSpriteImages_83A2560:: @ 83A2560 + obj_frame_tiles gUnknown_838FA28, 0x80 + obj_frame_tiles gUnknown_838FA28, 0x80 + obj_frame_tiles gUnknown_838FA28, 0x80 + obj_frame_tiles gUnknown_838FA28, 0x80 + obj_frame_tiles gUnknown_838FA28, 0x80 + obj_frame_tiles gUnknown_838FA28, 0x80 + obj_frame_tiles gUnknown_838FA28, 0x80 + obj_frame_tiles gUnknown_838FA28, 0x80 + obj_frame_tiles gUnknown_838FA28, 0x80 + +gSpriteImages_83A25A8:: @ 83A25A8 + obj_frame_tiles gUnknown_838FAA8, 0x200 + obj_frame_tiles gUnknown_838FAA8, 0x200 + obj_frame_tiles gUnknown_838FAA8, 0x200 + obj_frame_tiles gUnknown_838FAA8, 0x200 + obj_frame_tiles gUnknown_838FAA8 + 0x200, 0x200 + obj_frame_tiles gUnknown_838FAA8, 0x200 + obj_frame_tiles gUnknown_838FAA8 + 0x200, 0x200 + obj_frame_tiles gUnknown_838FAA8, 0x200 + obj_frame_tiles gUnknown_838FAA8 + 0x200, 0x200 + +gSpriteImages_83A25F0:: @ 83A25F0 + obj_frame_tiles gUnknown_838FEA8, 0x200 + obj_frame_tiles gUnknown_838FEA8, 0x200 + obj_frame_tiles gUnknown_838FEA8, 0x200 + obj_frame_tiles gUnknown_838FEA8, 0x200 + obj_frame_tiles gUnknown_838FEA8 + 0x200, 0x200 + obj_frame_tiles gUnknown_838FEA8, 0x200 + obj_frame_tiles gUnknown_838FEA8 + 0x200, 0x200 + obj_frame_tiles gUnknown_838FEA8, 0x200 + obj_frame_tiles gUnknown_838FEA8 + 0x200, 0x200 + +gSpriteImages_83A2638:: @ 83A2638 + obj_frame_tiles gUnknown_83902A8, 0x80 + obj_frame_tiles gUnknown_83902A8, 0x80 + obj_frame_tiles gUnknown_83902A8, 0x80 + obj_frame_tiles gUnknown_83902A8, 0x80 + obj_frame_tiles gUnknown_83902A8, 0x80 + obj_frame_tiles gUnknown_83902A8, 0x80 + obj_frame_tiles gUnknown_83902A8, 0x80 + obj_frame_tiles gUnknown_83902A8, 0x80 + obj_frame_tiles gUnknown_83902A8, 0x80 + +gSpriteImages_83A2680:: @ 83A2680 + obj_frame_tiles gUnknown_8393B28, 0x80 + obj_frame_tiles gUnknown_8393B28 + 0x80, 0x80 + obj_frame_tiles gUnknown_8393B28 + 0x100, 0x80 + obj_frame_tiles gUnknown_8393B28, 0x80 + obj_frame_tiles gUnknown_8393B28, 0x80 + obj_frame_tiles gUnknown_8393B28 + 0x80, 0x80 + obj_frame_tiles gUnknown_8393B28 + 0x80, 0x80 + obj_frame_tiles gUnknown_8393B28 + 0x100, 0x80 + obj_frame_tiles gUnknown_8393B28 + 0x100, 0x80 + +gSpriteImages_83A26C8:: @ 83A26C8 + obj_frame_tiles gUnknown_8393CA8, 0x80 + obj_frame_tiles gUnknown_8393CA8 + 0x80, 0x80 + obj_frame_tiles gUnknown_8393CA8 + 0x100, 0x80 + obj_frame_tiles gUnknown_8393CA8, 0x80 + obj_frame_tiles gUnknown_8393CA8, 0x80 + obj_frame_tiles gUnknown_8393CA8 + 0x80, 0x80 + obj_frame_tiles gUnknown_8393CA8 + 0x80, 0x80 + obj_frame_tiles gUnknown_8393CA8 + 0x100, 0x80 + obj_frame_tiles gUnknown_8393CA8 + 0x100, 0x80 + +gSpriteImages_83A2710:: @ 83A2710 + obj_frame_tiles gUnknown_8393E28, 0x80 + obj_frame_tiles gUnknown_8393E28 + 0x80, 0x80 + obj_frame_tiles gUnknown_8393E28 + 0x100, 0x80 + obj_frame_tiles gUnknown_8393E28, 0x80 + obj_frame_tiles gUnknown_8393E28, 0x80 + obj_frame_tiles gUnknown_8393E28 + 0x80, 0x80 + obj_frame_tiles gUnknown_8393E28 + 0x80, 0x80 + obj_frame_tiles gUnknown_8393E28 + 0x100, 0x80 + obj_frame_tiles gUnknown_8393E28 + 0x100, 0x80 + +gSpriteImages_83A2758:: @ 83A2758 + obj_frame_tiles gUnknown_8393FA8, 0x80 + obj_frame_tiles gUnknown_8393FA8 + 0x80, 0x80 + obj_frame_tiles gUnknown_8393FA8 + 0x100, 0x80 + obj_frame_tiles gUnknown_8393FA8, 0x80 + obj_frame_tiles gUnknown_8393FA8, 0x80 + obj_frame_tiles gUnknown_8393FA8 + 0x80, 0x80 + obj_frame_tiles gUnknown_8393FA8 + 0x80, 0x80 + obj_frame_tiles gUnknown_8393FA8 + 0x100, 0x80 + obj_frame_tiles gUnknown_8393FA8 + 0x100, 0x80 + +gSpriteImages_83A27A0:: @ 83A27A0 + obj_frame_tiles gUnknown_8394128, 0x80 + obj_frame_tiles gUnknown_8394128 + 0x80, 0x80 + obj_frame_tiles gUnknown_8394128 + 0x100, 0x80 + obj_frame_tiles gUnknown_8394128, 0x80 + obj_frame_tiles gUnknown_8394128, 0x80 + obj_frame_tiles gUnknown_8394128 + 0x80, 0x80 + obj_frame_tiles gUnknown_8394128 + 0x80, 0x80 + obj_frame_tiles gUnknown_8394128 + 0x100, 0x80 + obj_frame_tiles gUnknown_8394128 + 0x100, 0x80 + +gSpriteImages_83A27E8:: @ 83A27E8 + obj_frame_tiles gUnknown_83942A8, 0x80 + obj_frame_tiles gUnknown_83942A8 + 0x80, 0x80 + obj_frame_tiles gUnknown_83942A8 + 0x100, 0x80 + obj_frame_tiles gUnknown_83942A8, 0x80 + obj_frame_tiles gUnknown_83942A8, 0x80 + obj_frame_tiles gUnknown_83942A8 + 0x80, 0x80 + obj_frame_tiles gUnknown_83942A8 + 0x80, 0x80 + obj_frame_tiles gUnknown_83942A8 + 0x100, 0x80 + obj_frame_tiles gUnknown_83942A8 + 0x100, 0x80 + +gSpriteImages_83A2830:: @ 83A2830 + obj_frame_tiles gUnknown_8394428, 0x80 + obj_frame_tiles gUnknown_8394428 + 0x80, 0x80 + obj_frame_tiles gUnknown_8394428 + 0x100, 0x80 + obj_frame_tiles gUnknown_8394428, 0x80 + obj_frame_tiles gUnknown_8394428, 0x80 + obj_frame_tiles gUnknown_8394428 + 0x80, 0x80 + obj_frame_tiles gUnknown_8394428 + 0x80, 0x80 + obj_frame_tiles gUnknown_8394428 + 0x100, 0x80 + obj_frame_tiles gUnknown_8394428 + 0x100, 0x80 + +gSpriteImages_83A2878:: @ 83A2878 + obj_frame_tiles gUnknown_8393628, 0x80 + obj_frame_tiles gUnknown_8393628 + 0x80, 0x80 + obj_frame_tiles gUnknown_8393628 + 0x100, 0x80 + obj_frame_tiles gUnknown_8393628, 0x80 + obj_frame_tiles gUnknown_8393628, 0x80 + obj_frame_tiles gUnknown_8393628 + 0x80, 0x80 + obj_frame_tiles gUnknown_8393628 + 0x80, 0x80 + obj_frame_tiles gUnknown_8393628 + 0x100, 0x80 + obj_frame_tiles gUnknown_8393628 + 0x100, 0x80 + +gSpriteImages_83A28C0:: @ 83A28C0 + obj_frame_tiles gUnknown_83934A8, 0x80 + obj_frame_tiles gUnknown_83934A8 + 0x80, 0x80 + obj_frame_tiles gUnknown_83934A8 + 0x100, 0x80 + obj_frame_tiles gUnknown_83934A8, 0x80 + obj_frame_tiles gUnknown_83934A8, 0x80 + obj_frame_tiles gUnknown_83934A8 + 0x80, 0x80 + obj_frame_tiles gUnknown_83934A8 + 0x80, 0x80 + obj_frame_tiles gUnknown_83934A8 + 0x100, 0x80 + obj_frame_tiles gUnknown_83934A8 + 0x100, 0x80 + +gSpriteImages_83A2908:: @ 83A2908 + obj_frame_tiles gUnknown_8391B28, 0x100 + obj_frame_tiles gUnknown_8391B28 + 0x100, 0x100 + obj_frame_tiles gUnknown_8391B28 + 0x200, 0x100 + obj_frame_tiles gUnknown_8391B28, 0x100 + obj_frame_tiles gUnknown_8391B28, 0x100 + obj_frame_tiles gUnknown_8391B28 + 0x100, 0x100 + obj_frame_tiles gUnknown_8391B28 + 0x100, 0x100 + obj_frame_tiles gUnknown_8391B28 + 0x200, 0x100 + obj_frame_tiles gUnknown_8391B28 + 0x200, 0x100 + +gAnimCmd_83A2950:: @ 83A2950 + obj_image_anim_frame 0, 8 + obj_image_anim_frame 0, 8 + obj_image_anim_frame 0, 8 + obj_image_anim_frame 0, 8 + obj_image_anim_jump 0 + +gAnimCmd_83A2964:: @ 83A2964 + obj_image_anim_frame 0, 16 + obj_image_anim_jump 0 + +gAnimCmd_83A296C:: @ 83A296C + obj_image_anim_frame 1, 16 + obj_image_anim_jump 0 + +gAnimCmd_83A2974:: @ 83A2974 + obj_image_anim_frame 2, 16 + obj_image_anim_jump 0 + +gAnimCmd_83A297C:: @ 83A297C + obj_image_anim_frame 2, 16, 0x40 + obj_image_anim_jump 0 + +gAnimCmd_83A2984:: @ 83A2984 + obj_image_anim_frame 3, 8 + obj_image_anim_frame 0, 8 + obj_image_anim_frame 3, 8, 0x40 + obj_image_anim_frame 0, 8 + obj_image_anim_jump 0 + +gAnimCmd_83A2998:: @ 83A2998 + obj_image_anim_frame 4, 8 + obj_image_anim_frame 1, 8 + obj_image_anim_frame 4, 8, 0x40 + obj_image_anim_frame 1, 8 + obj_image_anim_jump 0 + +gAnimCmd_83A29AC:: @ 83A29AC + obj_image_anim_frame 5, 8 + obj_image_anim_frame 2, 8 + obj_image_anim_frame 6, 8 + obj_image_anim_frame 2, 8 + obj_image_anim_jump 0 + +gAnimCmd_83A29C0:: @ 83A29C0 + obj_image_anim_frame 5, 8, 0x40 + obj_image_anim_frame 2, 8, 0x40 + obj_image_anim_frame 6, 8, 0x40 + obj_image_anim_frame 2, 8, 0x40 + obj_image_anim_jump 0 + +gAnimCmd_83A29D4:: @ 83A29D4 + obj_image_anim_frame 3, 4 + obj_image_anim_frame 0, 4 + obj_image_anim_frame 3, 4, 0x40 + obj_image_anim_frame 0, 4 + obj_image_anim_jump 0 + +gAnimCmd_83A29E8:: @ 83A29E8 + obj_image_anim_frame 4, 4 + obj_image_anim_frame 1, 4 + obj_image_anim_frame 4, 4, 0x40 + obj_image_anim_frame 1, 4 + obj_image_anim_jump 0 + +gAnimCmd_83A29FC:: @ 83A29FC + obj_image_anim_frame 5, 4 + obj_image_anim_frame 2, 4 + obj_image_anim_frame 6, 4 + obj_image_anim_frame 2, 4 + obj_image_anim_jump 0 + +gAnimCmd_83A2A10:: @ 83A2A10 + obj_image_anim_frame 5, 4, 0x40 + obj_image_anim_frame 2, 4, 0x40 + obj_image_anim_frame 6, 4, 0x40 + obj_image_anim_frame 2, 4, 0x40 + obj_image_anim_jump 0 + +gAnimCmd_83A2A24:: @ 83A2A24 + obj_image_anim_frame 3, 2 + obj_image_anim_frame 0, 2 + obj_image_anim_frame 3, 2, 0x40 + obj_image_anim_frame 0, 2 + obj_image_anim_jump 0 + +gAnimCmd_83A2A38:: @ 83A2A38 + obj_image_anim_frame 4, 2 + obj_image_anim_frame 1, 2 + obj_image_anim_frame 4, 2, 0x40 + obj_image_anim_frame 1, 2 + obj_image_anim_jump 0 + +gAnimCmd_83A2A4C:: @ 83A2A4C + obj_image_anim_frame 5, 2 + obj_image_anim_frame 2, 2 + obj_image_anim_frame 6, 2 + obj_image_anim_frame 2, 2 + obj_image_anim_jump 0 + +gAnimCmd_83A2A60:: @ 83A2A60 + obj_image_anim_frame 5, 2, 0x40 + obj_image_anim_frame 2, 2, 0x40 + obj_image_anim_frame 6, 2, 0x40 + obj_image_anim_frame 2, 2, 0x40 + obj_image_anim_jump 0 + +gAnimCmd_83A2A74:: @ 83A2A74 + obj_image_anim_frame 3, 1 + obj_image_anim_frame 0, 1 + obj_image_anim_frame 3, 1, 0x40 + obj_image_anim_frame 0, 1 + obj_image_anim_jump 0 + +gAnimCmd_83A2A88:: @ 83A2A88 + obj_image_anim_frame 4, 1 + obj_image_anim_frame 1, 1 + obj_image_anim_frame 4, 1, 0x40 + obj_image_anim_frame 1, 1 + obj_image_anim_jump 0 + +gAnimCmd_83A2A9C:: @ 83A2A9C + obj_image_anim_frame 5, 1 + obj_image_anim_frame 2, 1 + obj_image_anim_frame 6, 1 + obj_image_anim_frame 2, 1 + obj_image_anim_jump 0 + +gAnimCmd_83A2AB0:: @ 83A2AB0 + obj_image_anim_frame 5, 1, 0x40 + obj_image_anim_frame 2, 1, 0x40 + obj_image_anim_frame 6, 1, 0x40 + obj_image_anim_frame 2, 1, 0x40 + obj_image_anim_jump 0 + +gAnimCmd_83A2AC4:: @ 83A2AC4 + obj_image_anim_frame 0, 16 + obj_image_anim_jump 0 + +gAnimCmd_83A2ACC:: @ 83A2ACC + obj_image_anim_frame 1, 16 + obj_image_anim_jump 0 + +gAnimCmd_83A2AD4:: @ 83A2AD4 + obj_image_anim_frame 2, 16 + obj_image_anim_jump 0 + +gAnimCmd_83A2ADC:: @ 83A2ADC + obj_image_anim_frame 2, 16, 0x40 + obj_image_anim_jump 0 + +gAnimCmd_83A2AE4:: @ 83A2AE4 + obj_image_anim_frame 3, 8 + obj_image_anim_frame 0, 8 + obj_image_anim_frame 4, 8 + obj_image_anim_frame 0, 8 + obj_image_anim_jump 0 + +gAnimCmd_83A2AF8:: @ 83A2AF8 + obj_image_anim_frame 5, 8 + obj_image_anim_frame 1, 8 + obj_image_anim_frame 6, 8 + obj_image_anim_frame 1, 8 + obj_image_anim_jump 0 + +gAnimCmd_83A2B0C:: @ 83A2B0C + obj_image_anim_frame 7, 8 + obj_image_anim_frame 2, 8 + obj_image_anim_frame 8, 8 + obj_image_anim_frame 2, 8 + obj_image_anim_jump 0 + +gAnimCmd_83A2B20:: @ 83A2B20 + obj_image_anim_frame 7, 8, 0x40 + obj_image_anim_frame 2, 8, 0x40 + obj_image_anim_frame 8, 8, 0x40 + obj_image_anim_frame 2, 8, 0x40 + obj_image_anim_jump 0 + +gAnimCmd_83A2B34:: @ 83A2B34 + obj_image_anim_frame 3, 4 + obj_image_anim_frame 0, 4 + obj_image_anim_frame 4, 4 + obj_image_anim_frame 0, 4 + obj_image_anim_jump 0 + +gAnimCmd_83A2B48:: @ 83A2B48 + obj_image_anim_frame 5, 4 + obj_image_anim_frame 1, 4 + obj_image_anim_frame 6, 4 + obj_image_anim_frame 1, 4 + obj_image_anim_jump 0 + +gAnimCmd_83A2B5C:: @ 83A2B5C + obj_image_anim_frame 7, 4 + obj_image_anim_frame 2, 4 + obj_image_anim_frame 8, 4 + obj_image_anim_frame 2, 4 + obj_image_anim_jump 0 + +gAnimCmd_83A2B70:: @ 83A2B70 + obj_image_anim_frame 7, 4, 0x40 + obj_image_anim_frame 2, 4, 0x40 + obj_image_anim_frame 8, 4, 0x40 + obj_image_anim_frame 2, 4, 0x40 + obj_image_anim_jump 0 + +gAnimCmd_83A2B84:: @ 83A2B84 + obj_image_anim_frame 3, 2 + obj_image_anim_frame 0, 2 + obj_image_anim_frame 4, 2 + obj_image_anim_frame 0, 2 + obj_image_anim_jump 0 + +gAnimCmd_83A2B98:: @ 83A2B98 + obj_image_anim_frame 5, 2 + obj_image_anim_frame 1, 2 + obj_image_anim_frame 6, 2 + obj_image_anim_frame 1, 2 + obj_image_anim_jump 0 + +gAnimCmd_83A2BAC:: @ 83A2BAC + obj_image_anim_frame 7, 2 + obj_image_anim_frame 2, 2 + obj_image_anim_frame 8, 2 + obj_image_anim_frame 2, 2 + obj_image_anim_jump 0 + +gAnimCmd_83A2BC0:: @ 83A2BC0 + obj_image_anim_frame 7, 2, 0x40 + obj_image_anim_frame 2, 2, 0x40 + obj_image_anim_frame 8, 2, 0x40 + obj_image_anim_frame 2, 2, 0x40 + obj_image_anim_jump 0 + +gAnimCmd_83A2BD4:: @ 83A2BD4 + obj_image_anim_frame 3, 1 + obj_image_anim_frame 0, 1 + obj_image_anim_frame 4, 1 + obj_image_anim_frame 0, 1 + obj_image_anim_jump 0 + +gAnimCmd_83A2BE8:: @ 83A2BE8 + obj_image_anim_frame 5, 1 + obj_image_anim_frame 1, 1 + obj_image_anim_frame 6, 1 + obj_image_anim_frame 1, 1 + obj_image_anim_jump 0 + +gAnimCmd_83A2BFC:: @ 83A2BFC + obj_image_anim_frame 7, 1 + obj_image_anim_frame 2, 1 + obj_image_anim_frame 8, 1 + obj_image_anim_frame 2, 1 + obj_image_anim_jump 0 + +gAnimCmd_83A2C10:: @ 83A2C10 + obj_image_anim_frame 7, 1, 0x40 + obj_image_anim_frame 2, 1, 0x40 + obj_image_anim_frame 8, 1, 0x40 + obj_image_anim_frame 2, 1, 0x40 + obj_image_anim_jump 0 + +gAnimCmd_83A2C24:: @ 83A2C24 + obj_image_anim_frame 9, 0 + obj_image_anim_end + +gAnimCmd_83A2C2C:: @ 83A2C2C + obj_image_anim_frame 3, 8 + obj_image_anim_frame 4, 8 + obj_image_anim_frame 3, 8 + obj_image_anim_frame 4, 8 + obj_image_anim_jump 0 + +gAnimCmd_83A2C40:: @ 83A2C40 + obj_image_anim_frame 3, 16 + obj_image_anim_jump 0 + +gAnimCmd_83A2C48:: @ 83A2C48 + obj_image_anim_frame 0, 60 + obj_image_anim_jump 0 + +gAnimCmd_83A2C50:: @ 83A2C50 + obj_image_anim_frame 1, 60 + obj_image_anim_jump 0 + +gAnimCmd_83A2C58:: @ 83A2C58 + obj_image_anim_frame 2, 60 + obj_image_anim_jump 0 + +gAnimCmd_83A2C60:: @ 83A2C60 + obj_image_anim_frame 2, 60, 0x40 + obj_image_anim_jump 0 + +gAnimCmd_83A2C68:: @ 83A2C68 + obj_image_anim_frame 0, 16 + obj_image_anim_jump 0 + +gAnimCmd_83A2C70:: @ 83A2C70 + obj_image_anim_frame 1, 16 + obj_image_anim_jump 0 + +gAnimCmd_83A2C78:: @ 83A2C78 + obj_image_anim_frame 2, 16 + obj_image_anim_jump 0 + +gAnimCmd_83A2C80:: @ 83A2C80 + obj_image_anim_frame 2, 16, 0x40 + obj_image_anim_jump 0 + +gAnimCmd_83A2C88:: @ 83A2C88 + obj_image_anim_frame 3, 4 + obj_image_anim_frame 4, 4 + obj_image_anim_frame 3, 4 + obj_image_anim_frame 0, 4 + obj_image_anim_frame 5, 4 + obj_image_anim_frame 6, 4 + obj_image_anim_frame 5, 4 + obj_image_anim_frame 0, 4 + obj_image_anim_jump 0 + +gAnimCmd_83A2CAC:: @ 83A2CAC + obj_image_anim_frame 7, 4 + obj_image_anim_frame 8, 4 + obj_image_anim_frame 7, 4 + obj_image_anim_frame 1, 4 + obj_image_anim_frame 9, 4 + obj_image_anim_frame 10, 4 + obj_image_anim_frame 9, 4 + obj_image_anim_frame 1, 4 + obj_image_anim_jump 0 + +gAnimCmd_83A2CD0:: @ 83A2CD0 + obj_image_anim_frame 11, 4 + obj_image_anim_frame 12, 4 + obj_image_anim_frame 11, 4 + obj_image_anim_frame 2, 4 + obj_image_anim_frame 13, 4 + obj_image_anim_frame 14, 4 + obj_image_anim_frame 13, 4 + obj_image_anim_frame 2, 4 + obj_image_anim_jump 0 + +gAnimCmd_83A2CF4:: @ 83A2CF4 + obj_image_anim_frame 11, 4, 0x40 + obj_image_anim_frame 12, 4, 0x40 + obj_image_anim_frame 11, 4, 0x40 + obj_image_anim_frame 2, 4, 0x40 + obj_image_anim_frame 13, 4, 0x40 + obj_image_anim_frame 14, 4, 0x40 + obj_image_anim_frame 13, 4, 0x40 + obj_image_anim_frame 2, 4, 0x40 + obj_image_anim_jump 0 + +gAnimCmd_83A2D18:: @ 83A2D18 + obj_image_anim_frame 3, 2 + obj_image_anim_frame 4, 2 + obj_image_anim_frame 3, 2 + obj_image_anim_frame 0, 2 + obj_image_anim_frame 5, 2 + obj_image_anim_frame 6, 2 + obj_image_anim_frame 5, 2 + obj_image_anim_frame 0, 2 + obj_image_anim_jump 0 + +gAnimCmd_83A2D3C:: @ 83A2D3C + obj_image_anim_frame 7, 2 + obj_image_anim_frame 8, 2 + obj_image_anim_frame 7, 2 + obj_image_anim_frame 1, 2 + obj_image_anim_frame 9, 2 + obj_image_anim_frame 10, 2 + obj_image_anim_frame 9, 2 + obj_image_anim_frame 1, 2 + obj_image_anim_jump 0 + +gAnimCmd_83A2D60:: @ 83A2D60 + obj_image_anim_frame 11, 2 + obj_image_anim_frame 12, 2 + obj_image_anim_frame 11, 2 + obj_image_anim_frame 2, 2 + obj_image_anim_frame 13, 2 + obj_image_anim_frame 14, 2 + obj_image_anim_frame 13, 2 + obj_image_anim_frame 2, 2 + obj_image_anim_jump 0 + +gAnimCmd_83A2D84:: @ 83A2D84 + obj_image_anim_frame 11, 2, 0x40 + obj_image_anim_frame 12, 2, 0x40 + obj_image_anim_frame 11, 2, 0x40 + obj_image_anim_frame 2, 2, 0x40 + obj_image_anim_frame 13, 2, 0x40 + obj_image_anim_frame 14, 2, 0x40 + obj_image_anim_frame 13, 2, 0x40 + obj_image_anim_frame 2, 2, 0x40 + obj_image_anim_jump 0 + +gAnimCmd_83A2DA8:: @ 83A2DA8 + obj_image_anim_frame 3, 1 + obj_image_anim_frame 4, 1 + obj_image_anim_frame 3, 1 + obj_image_anim_frame 0, 1 + obj_image_anim_frame 5, 1 + obj_image_anim_frame 6, 1 + obj_image_anim_frame 5, 1 + obj_image_anim_frame 0, 1 + obj_image_anim_jump 0 + +gAnimCmd_83A2DCC:: @ 83A2DCC + obj_image_anim_frame 7, 1 + obj_image_anim_frame 8, 1 + obj_image_anim_frame 7, 1 + obj_image_anim_frame 1, 1 + obj_image_anim_frame 9, 1 + obj_image_anim_frame 10, 1 + obj_image_anim_frame 9, 1 + obj_image_anim_frame 1, 1 + obj_image_anim_jump 0 + +gAnimCmd_83A2DF0:: @ 83A2DF0 + obj_image_anim_frame 11, 1 + obj_image_anim_frame 12, 1 + obj_image_anim_frame 11, 1 + obj_image_anim_frame 2, 1 + obj_image_anim_frame 13, 1 + obj_image_anim_frame 14, 1 + obj_image_anim_frame 13, 1 + obj_image_anim_frame 2, 1 + obj_image_anim_jump 0 + +gAnimCmd_83A2E14:: @ 83A2E14 + obj_image_anim_frame 11, 1, 0x40 + obj_image_anim_frame 12, 1, 0x40 + obj_image_anim_frame 11, 1, 0x40 + obj_image_anim_frame 2, 1, 0x40 + obj_image_anim_frame 13, 1, 0x40 + obj_image_anim_frame 14, 1, 0x40 + obj_image_anim_frame 13, 1, 0x40 + obj_image_anim_frame 2, 1, 0x40 + obj_image_anim_jump 0 + +gAnimCmd_83A2E38:: @ 83A2E38 + obj_image_anim_frame 3, 0 + obj_image_anim_frame 4, 0 + obj_image_anim_frame 3, 0 + obj_image_anim_frame 0, 0 + obj_image_anim_frame 5, 0 + obj_image_anim_frame 6, 0 + obj_image_anim_frame 5, 0 + obj_image_anim_frame 0, 0 + obj_image_anim_jump 0 + +gAnimCmd_83A2E5C:: @ 83A2E5C + obj_image_anim_frame 7, 0 + obj_image_anim_frame 8, 0 + obj_image_anim_frame 7, 0 + obj_image_anim_frame 1, 0 + obj_image_anim_frame 9, 0 + obj_image_anim_frame 10, 0 + obj_image_anim_frame 9, 0 + obj_image_anim_frame 1, 0 + obj_image_anim_jump 0 + +gAnimCmd_83A2E80:: @ 83A2E80 + obj_image_anim_frame 11, 0 + obj_image_anim_frame 12, 0 + obj_image_anim_frame 11, 0 + obj_image_anim_frame 2, 0 + obj_image_anim_frame 13, 0 + obj_image_anim_frame 14, 0 + obj_image_anim_frame 13, 0 + obj_image_anim_frame 2, 0 + obj_image_anim_jump 0 + +gAnimCmd_83A2EA4:: @ 83A2EA4 + obj_image_anim_frame 11, 0, 0x40 + obj_image_anim_frame 12, 0, 0x40 + obj_image_anim_frame 11, 0, 0x40 + obj_image_anim_frame 2, 0, 0x40 + obj_image_anim_frame 13, 0, 0x40 + obj_image_anim_frame 14, 0, 0x40 + obj_image_anim_frame 13, 0, 0x40 + obj_image_anim_frame 2, 0, 0x40 + obj_image_anim_jump 0 + +gAnimCmd_83A2EC8:: @ 83A2EC8 + obj_image_anim_frame 0, 2 + obj_image_anim_frame 2, 2, 0x40 + obj_image_anim_frame 1, 2 + obj_image_anim_frame 2, 2 + obj_image_anim_loop 1 + obj_image_anim_end + +gAnimCmd_83A2EE0:: @ 83A2EE0 + obj_image_anim_frame 1, 2 + obj_image_anim_frame 2, 2 + obj_image_anim_frame 0, 2 + obj_image_anim_frame 2, 2, 0x40 + obj_image_anim_loop 1 + obj_image_anim_end + +gAnimCmd_83A2EF8:: @ 83A2EF8 + obj_image_anim_frame 2, 2, 0x40 + obj_image_anim_frame 1, 2 + obj_image_anim_frame 2, 2 + obj_image_anim_frame 0, 2 + obj_image_anim_loop 1 + obj_image_anim_end + +gAnimCmd_83A2F10:: @ 83A2F10 + obj_image_anim_frame 2, 2 + obj_image_anim_frame 0, 2 + obj_image_anim_frame 2, 2, 0x40 + obj_image_anim_frame 1, 2 + obj_image_anim_loop 1 + obj_image_anim_end + +gAnimCmd_83A2F28:: @ 83A2F28 + obj_image_anim_frame 18, 16 + obj_image_anim_frame 0, 16 + obj_image_anim_frame 19, 16 + obj_image_anim_frame 0, 32 + obj_image_anim_loop 1 + obj_image_anim_end + +gAnimCmd_83A2F40:: @ 83A2F40 + obj_image_anim_frame 9, 5 + obj_image_anim_frame 10, 3 + obj_image_anim_frame 9, 5 + obj_image_anim_frame 11, 3 + obj_image_anim_jump 0 + +gAnimCmd_83A2F54:: @ 83A2F54 + obj_image_anim_frame 12, 5 + obj_image_anim_frame 13, 3 + obj_image_anim_frame 12, 5 + obj_image_anim_frame 14, 3 + obj_image_anim_jump 0 + +gAnimCmd_83A2F68:: @ 83A2F68 + obj_image_anim_frame 15, 5 + obj_image_anim_frame 16, 3 + obj_image_anim_frame 15, 5 + obj_image_anim_frame 17, 3 + obj_image_anim_jump 0 + +gAnimCmd_83A2F7C:: @ 83A2F7C + obj_image_anim_frame 15, 5, 0x40 + obj_image_anim_frame 16, 3, 0x40 + obj_image_anim_frame 15, 5, 0x40 + obj_image_anim_frame 17, 3, 0x40 + obj_image_anim_jump 0 + +gAnimCmd_83A2F90:: @ 83A2F90 + obj_image_anim_frame 0, 4 + obj_image_anim_frame 1, 4 + obj_image_anim_frame 2, 4 + obj_image_anim_frame 3, 4 + obj_image_anim_frame 4, 8 + obj_image_anim_end + +gAnimCmd_83A2FA8:: @ 83A2FA8 + obj_image_anim_frame 0, 4 + obj_image_anim_frame 1, 4 + obj_image_anim_frame 5, 4 + obj_image_anim_frame 6, 4 + obj_image_anim_loop 0 + obj_image_anim_frame 7, 4 + obj_image_anim_frame 8, 4 + obj_image_anim_loop 6 + obj_image_anim_frame 6, 4 + obj_image_anim_frame 1, 4 + obj_image_anim_frame 0, 4 + obj_image_anim_end + +gAnimCmd_83A2FD8:: @ 83A2FD8 + obj_image_anim_frame 0, 4 + obj_image_anim_frame 1, 4 + obj_image_anim_frame 2, 4 + obj_image_anim_frame 3, 4 + obj_image_anim_loop 0 + obj_image_anim_frame 4, 4 + obj_image_anim_frame 5, 4 + obj_image_anim_loop 6 + obj_image_anim_frame 3, 4 + obj_image_anim_frame 2, 4 + obj_image_anim_frame 1, 4 + obj_image_anim_frame 0, 4 + obj_image_anim_end + +gAnimCmd_83A300C:: @ 83A300C + obj_image_anim_frame 9, 32 + obj_image_anim_jump 0 + +gAnimCmd_83A3014:: @ 83A3014 + obj_image_anim_frame 10, 32 + obj_image_anim_jump 0 + +gAnimCmd_83A301C:: @ 83A301C + obj_image_anim_frame 11, 32 + obj_image_anim_jump 0 + +gAnimCmd_83A3024:: @ 83A3024 + obj_image_anim_frame 11, 32, 0x40 + obj_image_anim_jump 0 + +gAnimCmd_83A302C:: @ 83A302C + obj_image_anim_frame 15, 4 + obj_image_anim_frame 16, 4 + obj_image_anim_end + +gAnimCmd_83A3038:: @ 83A3038 + obj_image_anim_frame 19, 4 + obj_image_anim_frame 20, 4 + obj_image_anim_end + +gAnimCmd_83A3044:: @ 83A3044 + obj_image_anim_frame 23, 4 + obj_image_anim_frame 24, 4 + obj_image_anim_end + +gAnimCmd_83A3050:: @ 83A3050 + obj_image_anim_frame 23, 4, 0x40 + obj_image_anim_frame 24, 4, 0x40 + obj_image_anim_end + +gAnimCmd_83A305C:: @ 83A305C + obj_image_anim_frame 17, 4 + obj_image_anim_frame 18, 4 + obj_image_anim_end + +gAnimCmd_83A3068:: @ 83A3068 + obj_image_anim_frame 21, 4 + obj_image_anim_frame 22, 4 + obj_image_anim_end + +gAnimCmd_83A3074:: @ 83A3074 + obj_image_anim_frame 25, 4 + obj_image_anim_frame 26, 4 + obj_image_anim_end + +gAnimCmd_83A3080:: @ 83A3080 + obj_image_anim_frame 25, 4, 0x40 + obj_image_anim_frame 26, 4, 0x40 + obj_image_anim_end + +gAnimCmd_83A308C:: @ 83A308C + obj_image_anim_frame 15, 4 + obj_image_anim_frame 0, 4 + obj_image_anim_end + +gAnimCmd_83A3098:: @ 83A3098 + obj_image_anim_frame 19, 4 + obj_image_anim_frame 1, 4 + obj_image_anim_end + +gAnimCmd_83A30A4:: @ 83A30A4 + obj_image_anim_frame 23, 4 + obj_image_anim_frame 2, 4 + obj_image_anim_end + +gAnimCmd_83A30B0:: @ 83A30B0 + obj_image_anim_frame 23, 4, 0x40 + obj_image_anim_frame 2, 4, 0x40 + obj_image_anim_end + +gAnimCmd_83A30BC:: @ 83A30BC + obj_image_anim_frame 17, 4 + obj_image_anim_frame 0, 4 + obj_image_anim_end + +gAnimCmd_83A30C8:: @ 83A30C8 + obj_image_anim_frame 21, 4 + obj_image_anim_frame 1, 4 + obj_image_anim_end + +gAnimCmd_83A30D4:: @ 83A30D4 + obj_image_anim_frame 25, 4 + obj_image_anim_frame 2, 4 + obj_image_anim_end + +gAnimCmd_83A30E0:: @ 83A30E0 + obj_image_anim_frame 25, 4, 0x40 + obj_image_anim_frame 2, 4, 0x40 + obj_image_anim_end + +gAnimCmd_83A30EC:: @ 83A30EC + obj_image_anim_frame 27, 4 + obj_image_anim_frame 16, 4 + obj_image_anim_frame 28, 4 + obj_image_anim_frame 16, 4 + obj_image_anim_jump 0 + +gAnimCmd_83A3100:: @ 83A3100 + obj_image_anim_frame 29, 4 + obj_image_anim_frame 20, 4 + obj_image_anim_frame 30, 4 + obj_image_anim_frame 20, 4 + obj_image_anim_jump 0 + +gAnimCmd_83A3114:: @ 83A3114 + obj_image_anim_frame 31, 4 + obj_image_anim_frame 24, 4 + obj_image_anim_frame 32, 4 + obj_image_anim_frame 24, 4 + obj_image_anim_jump 0 + +gAnimCmd_83A3128:: @ 83A3128 + obj_image_anim_frame 31, 4, 0x40 + obj_image_anim_frame 24, 4, 0x40 + obj_image_anim_frame 32, 4, 0x40 + obj_image_anim_frame 24, 4, 0x40 + obj_image_anim_jump 0 + +gAnimCmd_83A313C:: @ 83A313C + obj_image_anim_frame 0, 32 + obj_image_anim_end + +gAnimCmd_83A3144:: @ 83A3144 + obj_image_anim_frame 1, 32 + obj_image_anim_frame 2, 32 + obj_image_anim_end + +gAnimCmd_83A3150:: @ 83A3150 + obj_image_anim_frame 3, 48 + obj_image_anim_frame 4, 48 + obj_image_anim_end + +gAnimCmd_83A315C:: @ 83A315C + obj_image_anim_frame 5, 32 + obj_image_anim_frame 5, 32 + obj_image_anim_frame 6, 32 + obj_image_anim_frame 6, 32 + obj_image_anim_end + +gAnimCmd_83A3170:: @ 83A3170 + obj_image_anim_frame 7, 48 + obj_image_anim_frame 7, 48 + obj_image_anim_frame 8, 48 + obj_image_anim_frame 8, 48 + obj_image_anim_end + +gAnimCmd_83A3184:: @ 83A3184 + obj_image_anim_frame 0, 8 + obj_image_anim_frame 9, 32 + obj_image_anim_frame 0, 8 + obj_image_anim_end + +gAnimCmd_83A3194:: @ 83A3194 + obj_image_anim_frame 0, 8 + obj_image_anim_frame 1, 8 + obj_image_anim_frame 2, 8 + obj_image_anim_frame 3, 8 + obj_image_anim_end + +gAnimCmd_83A31A8:: @ 83A31A8 + obj_image_anim_frame 0, 6 + obj_image_anim_frame 1, 6 + obj_image_anim_frame 2, 6 + obj_image_anim_frame 3, 6 + obj_image_anim_end + +gAnimCmd_83A31BC:: @ 83A31BC + obj_image_anim_frame 8, 4 + obj_image_anim_frame 9, 4 + obj_image_anim_frame 10, 4 + obj_image_anim_frame 11, 4 + obj_image_anim_end + +gAnimCmd_83A31D0:: @ 83A31D0 + obj_image_anim_frame 4, 4 + obj_image_anim_frame 5, 4 + obj_image_anim_frame 6, 4 + obj_image_anim_frame 7, 4 + obj_image_anim_end + +gAnimCmd_83A31E4:: @ 83A31E4 + obj_image_anim_frame 0, 4 + obj_image_anim_frame 1, 4 + obj_image_anim_frame 2, 4 + obj_image_anim_frame 3, 4 + obj_image_anim_end + +gAnimCmd_83A31F8:: @ 83A31F8 + obj_image_anim_frame 0, 4, 0x40 + obj_image_anim_frame 1, 4, 0x40 + obj_image_anim_frame 2, 4, 0x40 + obj_image_anim_frame 3, 4, 0x40 + obj_image_anim_end + +gAnimCmd_83A320C:: @ 83A320C + obj_image_anim_frame 11, 4 + obj_image_anim_frame 10, 6 + obj_image_anim_frame 9, 6 + obj_image_anim_frame 8, 6 + obj_image_anim_end + +gAnimCmd_83A3220:: @ 83A3220 + obj_image_anim_frame 7, 4 + obj_image_anim_frame 6, 6 + obj_image_anim_frame 5, 6 + obj_image_anim_frame 4, 6 + obj_image_anim_end + +gAnimCmd_83A3234:: @ 83A3234 + obj_image_anim_frame 3, 4 + obj_image_anim_frame 2, 4 + obj_image_anim_frame 1, 4 + obj_image_anim_frame 0, 4 + obj_image_anim_end + +gAnimCmd_83A3248:: @ 83A3248 + obj_image_anim_frame 3, 4, 0x40 + obj_image_anim_frame 2, 4, 0x40 + obj_image_anim_frame 1, 4, 0x40 + obj_image_anim_frame 0, 4, 0x40 + obj_image_anim_end + +gAnimCmd_83A325C:: @ 83A325C + obj_image_anim_frame 10, 6 + obj_image_anim_frame 11, 6 + obj_image_anim_loop 1 + obj_image_anim_frame 11, 30 + obj_image_anim_jump 0 + +gAnimCmd_83A3270:: @ 83A3270 + obj_image_anim_frame 6, 6 + obj_image_anim_frame 7, 6 + obj_image_anim_loop 1 + obj_image_anim_frame 7, 30 + obj_image_anim_jump 0 + +gAnimCmd_83A3284:: @ 83A3284 + obj_image_anim_frame 2, 6 + obj_image_anim_frame 3, 6 + obj_image_anim_loop 1 + obj_image_anim_frame 3, 30 + obj_image_anim_jump 0 + +gAnimCmd_83A3298:: @ 83A3298 + obj_image_anim_frame 2, 6, 0x40 + obj_image_anim_frame 3, 6, 0x40 + obj_image_anim_loop 1 + obj_image_anim_frame 3, 30, 0x40 + obj_image_anim_jump 0 + + .incbin "baserom.gba", 0x3A32AC, 0x68 + +gAnimTable_83A3314:: @ 83A3314 + .4byte gAnimCmd_83A2950 +gAnimTable_83A3318:: @ 83A3318 + .4byte gAnimCmd_83A2964 + .4byte gAnimCmd_83A296C + .4byte gAnimCmd_83A2974 + .4byte gAnimCmd_83A297C + .4byte gAnimCmd_83A2984 + .4byte gAnimCmd_83A2998 + .4byte gAnimCmd_83A29AC + .4byte gAnimCmd_83A29C0 + .4byte gAnimCmd_83A29D4 + .4byte gAnimCmd_83A29E8 + .4byte gAnimCmd_83A29FC + .4byte gAnimCmd_83A2A10 + .4byte gAnimCmd_83A2A24 + .4byte gAnimCmd_83A2A38 + .4byte gAnimCmd_83A2A4C + .4byte gAnimCmd_83A2A60 + .4byte gAnimCmd_83A2A74 + .4byte gAnimCmd_83A2A88 + .4byte gAnimCmd_83A2A9C + .4byte gAnimCmd_83A2AB0 + +gAnimTable_83A3368:: @ 83A3368 + .4byte gAnimCmd_83A2AC4 + .4byte gAnimCmd_83A2ACC + .4byte gAnimCmd_83A2AD4 + .4byte gAnimCmd_83A2ADC + .4byte gAnimCmd_83A2AE4 + .4byte gAnimCmd_83A2AF8 + .4byte gAnimCmd_83A2B0C + .4byte gAnimCmd_83A2B20 + .4byte gAnimCmd_83A2B34 + .4byte gAnimCmd_83A2B48 + .4byte gAnimCmd_83A2B5C + .4byte gAnimCmd_83A2B70 + .4byte gAnimCmd_83A2B84 + .4byte gAnimCmd_83A2B98 + .4byte gAnimCmd_83A2BAC + .4byte gAnimCmd_83A2BC0 + .4byte gAnimCmd_83A2BD4 + .4byte gAnimCmd_83A2BE8 + .4byte gAnimCmd_83A2BFC + .4byte gAnimCmd_83A2C10 + .4byte gAnimCmd_83A2C24 + +gAnimTable_83A33BC:: @ 83A33BC + .4byte gAnimCmd_83A2AC4 + .4byte gAnimCmd_83A2ACC + .4byte gAnimCmd_83A2AD4 + .4byte gAnimCmd_83A2ADC + .4byte gAnimCmd_83A2C2C + .4byte gAnimCmd_83A2C40 + .4byte gAnimCmd_83A2B0C + .4byte gAnimCmd_83A2B20 + .4byte gAnimCmd_83A2B34 + .4byte gAnimCmd_83A2B48 + .4byte gAnimCmd_83A2B5C + .4byte gAnimCmd_83A2B70 + .4byte gAnimCmd_83A2B84 + .4byte gAnimCmd_83A2B98 + .4byte gAnimCmd_83A2BAC + .4byte gAnimCmd_83A2BC0 + .4byte gAnimCmd_83A2BD4 + .4byte gAnimCmd_83A2BE8 + .4byte gAnimCmd_83A2BFC + .4byte gAnimCmd_83A2C10 + .4byte gAnimCmd_83A2C24 + +gAnimTable_83A3410:: + .4byte gAnimCmd_83A2C68 + .4byte gAnimCmd_83A2C70 + .4byte gAnimCmd_83A2C78 + .4byte gAnimCmd_83A2C80 + .4byte gAnimCmd_83A2C88 + .4byte gAnimCmd_83A2CAC + .4byte gAnimCmd_83A2CD0 + .4byte gAnimCmd_83A2CF4 + .4byte gAnimCmd_83A2D18 + .4byte gAnimCmd_83A2D3C + .4byte gAnimCmd_83A2D60 + .4byte gAnimCmd_83A2D84 + .4byte gAnimCmd_83A2DA8 + .4byte gAnimCmd_83A2DCC + .4byte gAnimCmd_83A2DF0 + .4byte gAnimCmd_83A2E14 + .4byte gAnimCmd_83A2E38 + .4byte gAnimCmd_83A2E5C + .4byte gAnimCmd_83A2E80 + .4byte gAnimCmd_83A2EA4 + .4byte gAnimCmd_83A2F40 + .4byte gAnimCmd_83A2F54 + .4byte gAnimCmd_83A2F68 + .4byte gAnimCmd_83A2F7C + +gAnimTable_83A3470:: @ 83A3470 + .4byte gAnimCmd_83A2AC4 + .4byte gAnimCmd_83A2ACC + .4byte gAnimCmd_83A2AD4 + .4byte gAnimCmd_83A2ADC + .4byte gAnimCmd_83A2AE4 + .4byte gAnimCmd_83A2AF8 + .4byte gAnimCmd_83A2B0C + .4byte gAnimCmd_83A2B20 + .4byte gAnimCmd_83A2B34 + .4byte gAnimCmd_83A2B48 + .4byte gAnimCmd_83A2B5C + .4byte gAnimCmd_83A2B70 + .4byte gAnimCmd_83A2B84 + .4byte gAnimCmd_83A2B98 + .4byte gAnimCmd_83A2BAC + .4byte gAnimCmd_83A2BC0 + .4byte gAnimCmd_83A2BD4 + .4byte gAnimCmd_83A2BE8 + .4byte gAnimCmd_83A2BFC + .4byte gAnimCmd_83A2C10 + .4byte gAnimCmd_83A2F40 + .4byte gAnimCmd_83A2F54 + .4byte gAnimCmd_83A2F68 + .4byte gAnimCmd_83A2F7C + .4byte gAnimCmd_83A2EC8 + .4byte gAnimCmd_83A2EE0 + .4byte gAnimCmd_83A2EF8 + .4byte gAnimCmd_83A2F10 + .4byte gAnimCmd_83A2F28 + +gAnimTable_83A34E4:: + .4byte gAnimCmd_83A2AC4 + .4byte gAnimCmd_83A2ACC + .4byte gAnimCmd_83A2AD4 + .4byte gAnimCmd_83A2ADC + .4byte gAnimCmd_83A2AE4 + .4byte gAnimCmd_83A2AF8 + .4byte gAnimCmd_83A2B0C + .4byte gAnimCmd_83A2B20 + .4byte gAnimCmd_83A2B34 + .4byte gAnimCmd_83A2B48 + .4byte gAnimCmd_83A2B5C + .4byte gAnimCmd_83A2B70 + .4byte gAnimCmd_83A2B84 + .4byte gAnimCmd_83A2B98 + .4byte gAnimCmd_83A2BAC + .4byte gAnimCmd_83A2BC0 + .4byte gAnimCmd_83A2BD4 + .4byte gAnimCmd_83A2BE8 + .4byte gAnimCmd_83A2BFC + .4byte gAnimCmd_83A2C10 + .4byte gAnimCmd_83A302C + .4byte gAnimCmd_83A3038 + .4byte gAnimCmd_83A3044 + .4byte gAnimCmd_83A3050 + .4byte gAnimCmd_83A305C + .4byte gAnimCmd_83A3068 + .4byte gAnimCmd_83A3074 + .4byte gAnimCmd_83A3080 + .4byte gAnimCmd_83A308C + .4byte gAnimCmd_83A3098 + .4byte gAnimCmd_83A30A4 + .4byte gAnimCmd_83A30B0 + .4byte gAnimCmd_83A30BC + .4byte gAnimCmd_83A30C8 + .4byte gAnimCmd_83A30D4 + .4byte gAnimCmd_83A30E0 + .4byte gAnimCmd_83A30EC + .4byte gAnimCmd_83A3100 + .4byte gAnimCmd_83A3114 + .4byte gAnimCmd_83A3128 + +gAnimTable_83A3584:: @ 83A3584 + .4byte gAnimCmd_83A2C48 + .4byte gAnimCmd_83A2C50 + .4byte gAnimCmd_83A2C58 + .4byte gAnimCmd_83A2C60 + .4byte gAnimCmd_83A2C48 + .4byte gAnimCmd_83A2C50 + .4byte gAnimCmd_83A2C58 + .4byte gAnimCmd_83A2C60 + .4byte gAnimCmd_83A2C48 + .4byte gAnimCmd_83A2C50 + .4byte gAnimCmd_83A2C58 + .4byte gAnimCmd_83A2C60 + .4byte gAnimCmd_83A2C48 + .4byte gAnimCmd_83A2C50 + .4byte gAnimCmd_83A2C58 + .4byte gAnimCmd_83A2C60 + .4byte gAnimCmd_83A2C48 + .4byte gAnimCmd_83A2C50 + .4byte gAnimCmd_83A2C58 + .4byte gAnimCmd_83A2C60 + .4byte gAnimCmd_83A300C + .4byte gAnimCmd_83A3014 + .4byte gAnimCmd_83A301C + .4byte gAnimCmd_83A3024 + +gAnimTable_83A35E4:: @ 83A35E4 + .4byte gAnimCmd_83A2AC4 + .4byte gAnimCmd_83A2ACC + .4byte gAnimCmd_83A2AD4 + .4byte gAnimCmd_83A2ADC + .4byte gAnimCmd_83A2AE4 + .4byte gAnimCmd_83A2AF8 + .4byte gAnimCmd_83A2B0C + .4byte gAnimCmd_83A2B20 + .4byte gAnimCmd_83A2B34 + .4byte gAnimCmd_83A2B48 + .4byte gAnimCmd_83A2B5C + .4byte gAnimCmd_83A2B70 + .4byte gAnimCmd_83A2B84 + .4byte gAnimCmd_83A2B98 + .4byte gAnimCmd_83A2BAC + .4byte gAnimCmd_83A2BC0 + .4byte gAnimCmd_83A2BD4 + .4byte gAnimCmd_83A2BE8 + .4byte gAnimCmd_83A2BFC + .4byte gAnimCmd_83A2C10 + .4byte gAnimCmd_83A3184 + +gAnimTable_83A3638:: @ 83A3638 + .4byte gAnimCmd_83A2F90 + +gAnimTable_83A363C:: @ 83A363C + .4byte gAnimCmd_83A2FA8 + +gAnimTable_83A3640:: @ 83A3640 + .4byte gAnimCmd_83A2FD8 + .4byte gAnimCmd_83A313C + .4byte gAnimCmd_83A3144 + .4byte gAnimCmd_83A3150 + .4byte gAnimCmd_83A315C + .4byte gAnimCmd_83A3170 + +gAnimTable_83A3658:: @ 83A3658 + .4byte gAnimCmd_83A2950 + .4byte gAnimCmd_83A3194 + +gAnimTable_83A3660:: @ 83A3660 + .4byte gAnimCmd_83A2950 + .4byte gAnimCmd_83A31A8 + +gAnimTable_83A3668:: @ 83A3668 + .4byte gAnimCmd_83A31BC + .4byte gAnimCmd_83A31D0 + .4byte gAnimCmd_83A31E4 + .4byte gAnimCmd_83A31F8 + .4byte gAnimCmd_83A320C + .4byte gAnimCmd_83A3220 + .4byte gAnimCmd_83A3234 + .4byte gAnimCmd_83A3248 + .4byte gAnimCmd_83A325C + .4byte gAnimCmd_83A3270 + .4byte gAnimCmd_83A3284 + .4byte gAnimCmd_83A3298 gUnknown_83A3698:: @ 83A3698 - .incbin "baserom.gba", 0x3A3698, 0x80 + .4byte gAnimTable_83A3318 + .byte 1, 3, 0, 2 + .4byte gAnimTable_83A3368 + .byte 1, 3, 0, 2 + .4byte gAnimTable_83A3470 + .byte 1, 3, 0, 2 + .4byte gAnimTable_83A34E4 + .byte 1, 3, 0, 2 + .4byte gAnimTable_83A3584 + .byte 1, 3, 0, 2 + .4byte gAnimTable_83A35E4 + .byte 1, 3, 0, 2 + .4byte gAnimTable_83A3668 + .byte 1, 3, 0, 2 + .4byte gAnimTable_83A3410 + .byte 3, 7, 0, 4 + .4byte 0x00000000, 0x00000000 + +gEventObjectBaseOam_128x64:: + .4byte 0x00000000, 0x00000800 + .4byte 0x00004000, 0x00000800 + +gEventObjectBaseOam_16x16:: + .4byte 0x40000000, 0x00000800 + +gEventObjectBaseOam_32x16:: + .4byte 0x80004000, 0x00000800 + .4byte 0x40004000, 0x00000800 + .4byte 0xc0004000, 0x00000800 + +gEventObjectBaseOam_16x32:: + .4byte 0x80008000, 0x00000800 gEventObjectBaseOam_32x32:: @ 83A3718 - .incbin "baserom.gba", 0x3A3718, 0x8 + .4byte 0x80000000, 0x00000800 -gUnknown_83A3720:: @ 83A3720 - .incbin "baserom.gba", 0x3A3720, 0x1a38 +gEventObjectBaseOam_64x64:: @ 83A3720 + .4byte 0xc0000000, 0x00000800 + +gSubsprites_83A3728:: @ 83A3728 + subsprite 248, 248, 2, 0x0000, 16x16 + +gSubsprites_83A372C:: @ 83A372C + subsprite 248, 248, 1, 0x0000, 16x16 + +gSubsprites_83A3730:: @ 83A3730 + subsprite 248, 248, 2, 0x0000, 16x8 + subsprite 248, 0, 3, 0x0002, 16x8 + +gSubsprites_83A3738:: @ 83A3738 + subsprite 248, 248, 2, 0x0000, 16x16 + subsprite 248, 248, 3, 0x0000, 16x16 + +gSubsprites_83A3740:: @ 83A3740 + subsprite 248, 248, 1, 0x0000, 16x16 + subsprite 248, 248, 3, 0x0000, 16x16 + +gSubspriteTables_83A3748:: @ 83A3748 + .byte 0 + .align 2 + .4byte NULL + .byte 1 + .align 2 + .4byte gSubsprites_83A3728 + .byte 1 + .align 2 + .4byte gSubsprites_83A372C + .byte 2 + .align 2 + .4byte gSubsprites_83A3730 + .byte 2 + .align 2 + .4byte gSubsprites_83A3738 + .byte 2 + .align 2 + .4byte gSubsprites_83A3740 + +gSubsprites_83A3778:: @ 83A3778 + subsprite 248, 240, 2, 0x0000, 16x32 + +gSubsprites_83A377C:: @ 83A377C + subsprite 248, 240, 1, 0x0000, 16x32 + +gSubsprites_83A3780:: @ 83A3780 + subsprite 248, 240, 2, 0x0000, 16x16 + subsprite 248, 0, 2, 0x0004, 16x8 + subsprite 248, 8, 3, 0x0006, 16x8 + +gSubsprites_83A378C:: @ 83A378C + subsprite 248, 240, 2, 0x0000, 16x16 + subsprite 248, 0, 3, 0x0004, 16x16 + +gSubsprites_83A3794:: @ 83A3794 + subsprite 248, 240, 1, 0x0000, 16x16 + subsprite 248, 0, 3, 0x0004, 16x16 + +gSubspriteTables_83A379C:: @ 83A379C + .byte 0 + .align 2 + .4byte NULL + .byte 1 + .align 2 + .4byte gSubsprites_83A3778 + .byte 1 + .align 2 + .4byte gSubsprites_83A377C + .byte 3 + .align 2 + .4byte gSubsprites_83A3780 + .byte 2 + .align 2 + .4byte gSubsprites_83A378C + .byte 2 + .align 2 + .4byte gSubsprites_83A3794 + +gSubsprites_83A37CC:: @ 83A37CC + subsprite 240, 240, 2, 0x0000, 32x32 + +gSubsprites_83A37D0:: @ 83A37D0 + subsprite 240, 240, 1, 0x0000, 32x32 + +gSubsprites_83A37D4:: @ 83A37D4 + subsprite 240, 240, 2, 0x0000, 32x16 + subsprite 240, 0, 2, 0x0008, 32x8 + subsprite 240, 8, 3, 0x000c, 32x8 + +gSubsprites_83A37E0:: @ 83A37E0 + subsprite 240, 240, 2, 0x0000, 32x16 + subsprite 240, 0, 3, 0x0008, 32x16 + +gSubsprites_83A37E8:: @ 83A37E8 + subsprite 240, 240, 1, 0x0000, 32x16 + subsprite 240, 0, 3, 0x0008, 32x16 + +gSubspriteTables_83A37F0:: @ 83A37F0 + .byte 0 + .align 2 + .4byte NULL + .byte 1 + .align 2 + .4byte gSubsprites_83A37CC + .byte 1 + .align 2 + .4byte gSubsprites_83A37D0 + .byte 3 + .align 2 + .4byte gSubsprites_83A37D4 + .byte 2 + .align 2 + .4byte gSubsprites_83A37E0 + .byte 2 + .align 2 + .4byte gSubsprites_83A37E8 + + .incbin "baserom.gba", 0x3a3820, 0xa0 + +gSubsprites_83A38C0:: @ 83A38C0 + subsprite 224, 224, 2, 0x0000, 64x64 + +gSubsprites_83A38C4:: @ 83A38C4 + subsprite 224, 224, 1, 0x0000, 64x64 + +gSubsprites_83A38C8:: @ 83A38C8 + subsprite 224, 224, 2, 0x0000, 64x64 + +gSubsprites_83A38CC:: @ 83A38CC + subsprite 224, 224, 2, 0x0000, 64x64 + +gSubspriteTables_83A38D0:: @ 83A38D0 + .byte 0 + .align 2 + .4byte NULL + .byte 1 + .align 2 + .4byte gSubsprites_83A38C0 + .byte 1 + .align 2 + .4byte gSubsprites_83A38C4 + .byte 1 + .align 2 + .4byte gSubsprites_83A38C8 + .byte 1 + .align 2 + .4byte gSubsprites_83A38CC + .byte 1 + .align 2 + .4byte gSubsprites_83A38CC + + .incbin "baserom.gba", 0x3a3900, 0x120 + +gSubsprites_83A3A20:: @ 83A3A20 + subsprite 224, 240, 2, 0x0000, 64x32 + subsprite 32, 240, 2, 0x0020, 64x32 + subsprite 224, 16, 2, 0x0040, 64x32 + subsprite 32, 16, 2, 0x0060, 64x32 + +gSubsprites_83A3A30:: @ 83A3A30 + subsprite 224, 240, 1, 0x0000, 64x32 + subsprite 32, 240, 1, 0x0020, 64x32 + subsprite 224, 16, 1, 0x0040, 64x32 + subsprite 32, 16, 1, 0x0060, 64x32 + +gSubsprites_83A3A40:: @ 83A3A40 + subsprite 224, 240, 1, 0x0000, 64x32 + subsprite 32, 240, 1, 0x0020, 64x32 + subsprite 224, 16, 2, 0x0040, 64x32 + subsprite 32, 16, 2, 0x0060, 64x32 + +gSubspriteTables_83A3A50:: @ 83A3A50 + .byte 4 + .align 2 + .4byte gSubsprites_83A3A20 + .byte 4 + .align 2 + .4byte gSubsprites_83A3A20 + .byte 4 + .align 2 + .4byte gSubsprites_83A3A30 + .byte 4 + .align 2 + .4byte gSubsprites_83A3A40 + .byte 4 + .align 2 + .4byte gSubsprites_83A3A40 + .byte 4 + .align 2 + .4byte gSubsprites_83A3A40 + + .incbin "baserom.gba", 0x3A3A80, 0x130 + +gMapObjectGraphicsInfo_83A3BB0:: @ 83A3BB0 + .2byte 0xFFFF, 0x1100, 0x1102, 0x200, 16, 32 + .byte 0 | (1 << 4) | (0 << 6) | (0 << 7) + .byte 1 + .align 2 + .4byte gEventObjectBaseOam_16x32 + .4byte gSubspriteTables_83A379C + .4byte gAnimTable_83A3470 + .4byte gSpriteImages_83A00A0 + .4byte gDummySpriteAffineAnimTable + +gMapObjectGraphicsInfo_83A3BD4:: @ 83A3BD4 + .2byte 0xFFFF, 0x1100, 0x1102, 0x200, 32, 32 + .byte 0 | (1 << 4) | (0 << 6) | (0 << 7) + .byte 2 + .align 2 + .4byte gEventObjectBaseOam_32x32 + .4byte gSubspriteTables_83A37F0 + .4byte gAnimTable_83A3368 + .4byte gSpriteImages_83A0140 + .4byte gDummySpriteAffineAnimTable + +gMapObjectGraphicsInfo_83A3BF8:: @ 83A3BF8 + .2byte 0xFFFF, 0x1100, 0x11FF, 0x100, 16, 32 + .byte 0 | (1 << 4) | (0 << 6) | (1 << 7) + .byte 1 + .align 2 + .4byte gEventObjectBaseOam_16x32 + .4byte gSubspriteTables_83A379C + .4byte gAnimTable_83A3584 + .4byte gSpriteImages_83A0270 + .4byte gDummySpriteAffineAnimTable + +gMapObjectGraphicsInfo_83A3C1C:: @ 83A3C1C + .2byte 0xFFFF, 0x1100, 0x1102, 0x100, 16, 32 + .byte 0 | (1 << 4) | (0 << 6) | (0 << 7) + .byte 1 + .align 2 + .4byte gEventObjectBaseOam_16x32 + .4byte gSubspriteTables_83A379C + .4byte gAnimTable_83A3638 + .4byte gSpriteImages_83A0330 + .4byte gDummySpriteAffineAnimTable + +gMapObjectGraphicsInfo_83A3C40:: @ 83A3C40 + .2byte 0xFFFF, 0x1103, 0x11FF, 0x100, 16, 32 + .byte 2 | (1 << 4) | (0 << 6) | (0 << 7) + .byte 1 + .align 2 + .4byte gEventObjectBaseOam_16x32 + .4byte gSubspriteTables_83A379C + .4byte gAnimTable_83A3368 + .4byte gSpriteImages_83A04C0 + .4byte gDummySpriteAffineAnimTable + +gMapObjectGraphicsInfo_83A3C64:: @ 83A3C64 + .2byte 0xFFFF, 0x1106, 0x11FF, 0x100, 16, 32 + .byte 5 | (1 << 4) | (0 << 6) | (0 << 7) + .byte 1 + .align 2 + .4byte gEventObjectBaseOam_16x32 + .4byte gSubspriteTables_83A379C + .4byte gAnimTable_83A3368 + .4byte gSpriteImages_83A0420 + .4byte gDummySpriteAffineAnimTable + +gMapObjectGraphicsInfo_83A3C88:: @ 83A3C88 + .2byte 0xFFFF, 0x1106, 0x11FF, 0x100, 16, 32 + .byte 5 | (1 << 4) | (0 << 6) | (0 << 7) + .byte 1 + .align 2 + .4byte gEventObjectBaseOam_16x32 + .4byte gSubspriteTables_83A379C + .4byte gAnimTable_83A3368 + .4byte gSpriteImages_83A0470 + .4byte gDummySpriteAffineAnimTable + +gMapObjectGraphicsInfo_83A3CAC:: @ 83A3CAC + .2byte 0xFFFF, 0x1106, 0x11FF, 0x80, 16, 16 + .byte 5 | (1 << 4) | (0 << 6) | (0 << 7) + .byte 1 + .align 2 + .4byte gEventObjectBaseOam_16x16 + .4byte gSubspriteTables_83A3748 + .4byte gAnimTable_83A3368 + .4byte gSpriteImages_83A0508 + .4byte gDummySpriteAffineAnimTable + +gMapObjectGraphicsInfo_83A3CD0:: @ 83A3CD0 + .2byte 0xFFFF, 0x1104, 0x11FF, 0x80, 16, 16 + .byte 3 | (1 << 4) | (0 << 6) | (0 << 7) + .byte 1 + .align 2 + .4byte gEventObjectBaseOam_16x16 + .4byte gSubspriteTables_83A3748 + .4byte gAnimTable_83A3368 + .4byte gSpriteImages_83A0550 + .4byte gDummySpriteAffineAnimTable + +gMapObjectGraphicsInfo_83A3CF4:: @ 83A3CF4 + .2byte 0xFFFF, 0x1106, 0x11FF, 0x100, 16, 32 + .byte 5 | (1 << 4) | (0 << 6) | (0 << 7) + .byte 1 + .align 2 + .4byte gEventObjectBaseOam_16x32 + .4byte gSubspriteTables_83A379C + .4byte gAnimTable_83A3368 + .4byte gSpriteImages_83A05A0 + .4byte gDummySpriteAffineAnimTable + +gMapObjectGraphicsInfo_83A3D18:: @ 83A3D18 + .2byte 0xFFFF, 0x1103, 0x11FF, 0x100, 16, 32 + .byte 2 | (1 << 4) | (0 << 6) | (0 << 7) + .byte 1 + .align 2 + .4byte gEventObjectBaseOam_16x32 + .4byte gSubspriteTables_83A379C + .4byte gAnimTable_83A3368 + .4byte gSpriteImages_83A05E8 + .4byte gDummySpriteAffineAnimTable + +gMapObjectGraphicsInfo_83A3D3C:: @ 83A3D3C + .2byte 0xFFFF, 0x1103, 0x11FF, 0x100, 16, 32 + .byte 2 | (1 << 4) | (0 << 6) | (0 << 7) + .byte 1 + .align 2 + .4byte gEventObjectBaseOam_16x32 + .4byte gSubspriteTables_83A379C + .4byte gAnimTable_83A3368 + .4byte gSpriteImages_83A0638 + .4byte gDummySpriteAffineAnimTable + +gMapObjectGraphicsInfo_83A3D60:: @ 83A3D60 + .2byte 0xFFFF, 0x1105, 0x11FF, 0x100, 16, 32 + .byte 4 | (1 << 4) | (0 << 6) | (0 << 7) + .byte 1 + .align 2 + .4byte gEventObjectBaseOam_16x32 + .4byte gSubspriteTables_83A379C + .4byte gAnimTable_83A3368 + .4byte gSpriteImages_83A0688 + .4byte gDummySpriteAffineAnimTable + +gMapObjectGraphicsInfo_83A3D84:: @ 83A3D84 + .2byte 0xFFFF, 0x1106, 0x11FF, 0x100, 16, 32 + .byte 5 | (1 << 4) | (0 << 6) | (0 << 7) + .byte 1 + .align 2 + .4byte gEventObjectBaseOam_16x32 + .4byte gSubspriteTables_83A379C + .4byte gAnimTable_83A3368 + .4byte gSpriteImages_83A06D8 + .4byte gDummySpriteAffineAnimTable + +gMapObjectGraphicsInfo_83A3DA8:: @ 83A3DA8 + .2byte 0xFFFF, 0x1105, 0x11FF, 0x100, 16, 32 + .byte 4 | (1 << 4) | (0 << 6) | (0 << 7) + .byte 1 + .align 2 + .4byte gEventObjectBaseOam_16x32 + .4byte gSubspriteTables_83A379C + .4byte gAnimTable_83A3368 + .4byte gSpriteImages_83A0C40 + .4byte gDummySpriteAffineAnimTable + +gMapObjectGraphicsInfo_83A3DCC:: @ 83A3DCC + .2byte 0xFFFF, 0x1106, 0x11FF, 0x100, 16, 32 + .byte 5 | (1 << 4) | (0 << 6) | (0 << 7) + .byte 1 + .align 2 + .4byte gEventObjectBaseOam_16x32 + .4byte gSubspriteTables_83A379C + .4byte gAnimTable_83A3368 + .4byte gSpriteImages_83A0720 + .4byte gDummySpriteAffineAnimTable + +gMapObjectGraphicsInfo_83A3DF0:: @ 83A3DF0 + .2byte 0xFFFF, 0x1105, 0x11FF, 0x100, 16, 32 + .byte 4 | (1 << 4) | (0 << 6) | (0 << 7) + .byte 1 + .align 2 + .4byte gEventObjectBaseOam_16x32 + .4byte gSubspriteTables_83A379C + .4byte gAnimTable_83A3368 + .4byte gSpriteImages_83A0770 + .4byte gDummySpriteAffineAnimTable + +gMapObjectGraphicsInfo_83A3E14:: @ 83A3E14 + .2byte 0xFFFF, 0x1106, 0x11FF, 0x100, 16, 32 + .byte 5 | (1 << 4) | (0 << 6) | (0 << 7) + .byte 1 + .align 2 + .4byte gEventObjectBaseOam_16x32 + .4byte gSubspriteTables_83A379C + .4byte gAnimTable_83A3368 + .4byte gSpriteImages_83A07C0 + .4byte gDummySpriteAffineAnimTable + +gMapObjectGraphicsInfo_83A3E38:: @ 83A3E38 + .2byte 0xFFFF, 0x1106, 0x11FF, 0x100, 16, 32 + .byte 5 | (1 << 4) | (0 << 6) | (0 << 7) + .byte 1 + .align 2 + .4byte gEventObjectBaseOam_16x32 + .4byte gSubspriteTables_83A379C + .4byte gAnimTable_83A3368 + .4byte gSpriteImages_83A0808 + .4byte gDummySpriteAffineAnimTable + +gMapObjectGraphicsInfo_83A3E5C:: @ 83A3E5C + .2byte 0xFFFF, 0x1106, 0x11FF, 0x100, 16, 32 + .byte 5 | (1 << 4) | (0 << 6) | (0 << 7) + .byte 1 + .align 2 + .4byte gEventObjectBaseOam_16x32 + .4byte gSubspriteTables_83A379C + .4byte gAnimTable_83A3368 + .4byte gSpriteImages_83A0858 + .4byte gDummySpriteAffineAnimTable + +gMapObjectGraphicsInfo_83A3E80:: @ 83A3E80 + .2byte 0xFFFF, 0x1104, 0x11FF, 0x100, 16, 32 + .byte 3 | (1 << 4) | (0 << 6) | (0 << 7) + .byte 1 + .align 2 + .4byte gEventObjectBaseOam_16x32 + .4byte gSubspriteTables_83A379C + .4byte gAnimTable_83A3368 + .4byte gSpriteImages_83A08A8 + .4byte gDummySpriteAffineAnimTable + +gMapObjectGraphicsInfo_83A3EA4:: @ 83A3EA4 + .2byte 0xFFFF, 0x1106, 0x11FF, 0x100, 16, 32 + .byte 5 | (1 << 4) | (0 << 6) | (0 << 7) + .byte 1 + .align 2 + .4byte gEventObjectBaseOam_16x32 + .4byte gSubspriteTables_83A379C + .4byte gAnimTable_83A3368 + .4byte gSpriteImages_83A08F8 + .4byte gDummySpriteAffineAnimTable + +gMapObjectGraphicsInfo_83A3EC8:: @ 83A3EC8 + .2byte 0xFFFF, 0x1105, 0x11FF, 0x100, 16, 32 + .byte 4 | (1 << 4) | (0 << 6) | (0 << 7) + .byte 1 + .align 2 + .4byte gEventObjectBaseOam_16x32 + .4byte gSubspriteTables_83A379C + .4byte gAnimTable_83A3368 + .4byte gSpriteImages_83A0940 + .4byte gDummySpriteAffineAnimTable + +gMapObjectGraphicsInfo_83A3EEC:: @ 83A3EEC + .2byte 0xFFFF, 0x1103, 0x11FF, 0x100, 16, 32 + .byte 2 | (1 << 4) | (0 << 6) | (0 << 7) + .byte 1 + .align 2 + .4byte gEventObjectBaseOam_16x32 + .4byte gSubspriteTables_83A379C + .4byte gAnimTable_83A3368 + .4byte gSpriteImages_83A0988 + .4byte gDummySpriteAffineAnimTable + +gMapObjectGraphicsInfo_83A3F10:: @ 83A3F10 + .2byte 0xFFFF, 0x1106, 0x11FF, 0x100, 16, 32 + .byte 5 | (1 << 4) | (0 << 6) | (0 << 7) + .byte 1 + .align 2 + .4byte gEventObjectBaseOam_16x32 + .4byte gSubspriteTables_83A379C + .4byte gAnimTable_83A3368 + .4byte gSpriteImages_83A09D8 + .4byte gDummySpriteAffineAnimTable + +gMapObjectGraphicsInfo_83A3F34:: @ 83A3F34 + .2byte 0xFFFF, 0x1106, 0x11FF, 0x100, 16, 32 + .byte 5 | (1 << 4) | (0 << 6) | (0 << 7) + .byte 1 + .align 2 + .4byte gEventObjectBaseOam_16x32 + .4byte gSubspriteTables_83A379C + .4byte gAnimTable_83A3368 + .4byte gSpriteImages_83A0A20 + .4byte gDummySpriteAffineAnimTable + +gMapObjectGraphicsInfo_83A3F58:: @ 83A3F58 + .2byte 0xFFFF, 0x1104, 0x11FF, 0x100, 16, 32 + .byte 3 | (1 << 4) | (0 << 6) | (0 << 7) + .byte 1 + .align 2 + .4byte gEventObjectBaseOam_16x32 + .4byte gSubspriteTables_83A379C + .4byte gAnimTable_83A3368 + .4byte gSpriteImages_83A0AB8 + .4byte gDummySpriteAffineAnimTable + +gMapObjectGraphicsInfo_83A3F7C:: @ 83A3F7C + .2byte 0xFFFF, 0x1105, 0x11FF, 0x100, 16, 32 + .byte 4 | (1 << 4) | (0 << 6) | (0 << 7) + .byte 1 + .align 2 + .4byte gEventObjectBaseOam_16x32 + .4byte gSubspriteTables_83A379C + .4byte gAnimTable_83A3368 + .4byte gSpriteImages_83A0B00 + .4byte gDummySpriteAffineAnimTable + +gMapObjectGraphicsInfo_83A3FA0:: @ 83A3FA0 + .2byte 0xFFFF, 0x1105, 0x11FF, 0x100, 16, 32 + .byte 4 | (1 << 4) | (0 << 6) | (0 << 7) + .byte 1 + .align 2 + .4byte gEventObjectBaseOam_16x32 + .4byte gSubspriteTables_83A379C + .4byte gAnimTable_83A3368 + .4byte gSpriteImages_83A0B50 + .4byte gDummySpriteAffineAnimTable + +gMapObjectGraphicsInfo_83A3FC4:: @ 83A3FC4 + .2byte 0xFFFF, 0x1103, 0x11FF, 0x100, 16, 32 + .byte 2 | (1 << 4) | (0 << 6) | (0 << 7) + .byte 1 + .align 2 + .4byte gEventObjectBaseOam_16x32 + .4byte gSubspriteTables_83A379C + .4byte gAnimTable_83A3368 + .4byte gSpriteImages_83A0BA0 + .4byte gDummySpriteAffineAnimTable + +gMapObjectGraphicsInfo_83A3FE8:: @ 83A3FE8 + .2byte 0xFFFF, 0x1103, 0x11FF, 0x100, 16, 32 + .byte 2 | (1 << 4) | (0 << 6) | (0 << 7) + .byte 1 + .align 2 + .4byte gEventObjectBaseOam_16x32 + .4byte gSubspriteTables_83A379C + .4byte gAnimTable_83A3368 + .4byte gSpriteImages_83A0BF0 + .4byte gDummySpriteAffineAnimTable + +gMapObjectGraphicsInfo_83A400C:: @ 83A400C + .2byte 0xFFFF, 0x1104, 0x11FF, 0x100, 16, 32 + .byte 3 | (1 << 4) | (0 << 6) | (0 << 7) + .byte 1 + .align 2 + .4byte gEventObjectBaseOam_16x32 + .4byte gSubspriteTables_83A379C + .4byte gAnimTable_83A3368 + .4byte gSpriteImages_83A0C90 + .4byte gDummySpriteAffineAnimTable + +gMapObjectGraphicsInfo_83A4030:: @ 83A4030 + .2byte 0xFFFF, 0x1106, 0x11FF, 0x100, 16, 32 + .byte 5 | (1 << 4) | (0 << 6) | (0 << 7) + .byte 1 + .align 2 + .4byte gEventObjectBaseOam_16x32 + .4byte gSubspriteTables_83A379C + .4byte gAnimTable_83A3368 + .4byte gSpriteImages_83A0CE0 + .4byte gDummySpriteAffineAnimTable + +gMapObjectGraphicsInfo_83A4054:: @ 83A4054 + .2byte 0xFFFF, 0x1106, 0x11FF, 0x100, 16, 32 + .byte 5 | (1 << 4) | (0 << 6) | (0 << 7) + .byte 1 + .align 2 + .4byte gEventObjectBaseOam_16x32 + .4byte gSubspriteTables_83A379C + .4byte gAnimTable_83A3368 + .4byte gSpriteImages_83A0D30 + .4byte gDummySpriteAffineAnimTable + +gMapObjectGraphicsInfo_83A4078:: @ 83A4078 + .2byte 0xFFFF, 0x1106, 0x11FF, 0x100, 16, 32 + .byte 5 | (1 << 4) | (0 << 6) | (0 << 7) + .byte 1 + .align 2 + .4byte gEventObjectBaseOam_16x32 + .4byte gSubspriteTables_83A379C + .4byte gAnimTable_83A3368 + .4byte gSpriteImages_83A0D78 + .4byte gDummySpriteAffineAnimTable + +gMapObjectGraphicsInfo_83A409C:: @ 83A409C + .2byte 0xFFFF, 0x1105, 0x11FF, 0x100, 16, 32 + .byte 4 | (1 << 4) | (0 << 6) | (0 << 7) + .byte 1 + .align 2 + .4byte gEventObjectBaseOam_16x32 + .4byte gSubspriteTables_83A379C + .4byte gAnimTable_83A3368 + .4byte gSpriteImages_83A0DC8 + .4byte gDummySpriteAffineAnimTable + +gMapObjectGraphicsInfo_83A40C0:: @ 83A40C0 + .2byte 0xFFFF, 0x1106, 0x11FF, 0x100, 16, 32 + .byte 5 | (1 << 4) | (0 << 6) | (0 << 7) + .byte 1 + .align 2 + .4byte gEventObjectBaseOam_16x32 + .4byte gSubspriteTables_83A379C + .4byte gAnimTable_83A3368 + .4byte gSpriteImages_83A0E18 + .4byte gDummySpriteAffineAnimTable + +gMapObjectGraphicsInfo_83A40E4:: @ 83A40E4 + .2byte 0xFFFF, 0x1103, 0x11FF, 0x100, 16, 32 + .byte 2 | (1 << 4) | (0 << 6) | (0 << 7) + .byte 1 + .align 2 + .4byte gEventObjectBaseOam_16x32 + .4byte gSubspriteTables_83A379C + .4byte gAnimTable_83A3368 + .4byte gSpriteImages_83A0E68 + .4byte gDummySpriteAffineAnimTable + +gMapObjectGraphicsInfo_83A4108:: @ 83A4108 + .2byte 0xFFFF, 0x1106, 0x11FF, 0x100, 16, 32 + .byte 5 | (1 << 4) | (0 << 6) | (0 << 7) + .byte 1 + .align 2 + .4byte gEventObjectBaseOam_16x32 + .4byte gSubspriteTables_83A379C + .4byte gAnimTable_83A3368 + .4byte gSpriteImages_83A0EB8 + .4byte gDummySpriteAffineAnimTable + +gMapObjectGraphicsInfo_83A412C:: @ 83A412C + .2byte 0xFFFF, 0x1106, 0x11FF, 0x100, 16, 32 + .byte 5 | (1 << 4) | (0 << 6) | (0 << 7) + .byte 1 + .align 2 + .4byte gEventObjectBaseOam_16x32 + .4byte gSubspriteTables_83A379C + .4byte gAnimTable_83A3368 + .4byte gSpriteImages_83A0F08 + .4byte gDummySpriteAffineAnimTable + +gMapObjectGraphicsInfo_83A4150:: @ 83A4150 + .2byte 0xFFFF, 0x1106, 0x11FF, 0x100, 16, 32 + .byte 5 | (1 << 4) | (0 << 6) | (0 << 7) + .byte 1 + .align 2 + .4byte gEventObjectBaseOam_16x32 + .4byte gSubspriteTables_83A379C + .4byte gAnimTable_83A3368 + .4byte gSpriteImages_83A0F58 + .4byte gDummySpriteAffineAnimTable + +gMapObjectGraphicsInfo_83A4174:: @ 83A4174 + .2byte 0xFFFF, 0x1104, 0x11FF, 0x100, 16, 32 + .byte 3 | (1 << 4) | (0 << 6) | (0 << 7) + .byte 1 + .align 2 + .4byte gEventObjectBaseOam_16x32 + .4byte gSubspriteTables_83A379C + .4byte gAnimTable_83A3368 + .4byte gSpriteImages_83A0FA8 + .4byte gDummySpriteAffineAnimTable + +gMapObjectGraphicsInfo_83A4198:: @ 83A4198 + .2byte 0xFFFF, 0x1106, 0x11FF, 0x100, 16, 32 + .byte 5 | (1 << 4) | (0 << 6) | (0 << 7) + .byte 1 + .align 2 + .4byte gEventObjectBaseOam_16x32 + .4byte gSubspriteTables_83A379C + .4byte gAnimTable_83A3368 + .4byte gSpriteImages_83A0FF8 + .4byte gDummySpriteAffineAnimTable + +gMapObjectGraphicsInfo_83A41BC:: @ 83A41BC + .2byte 0xFFFF, 0x1106, 0x11FF, 0x100, 16, 32 + .byte 5 | (1 << 4) | (0 << 6) | (0 << 7) + .byte 1 + .align 2 + .4byte gEventObjectBaseOam_16x32 + .4byte gSubspriteTables_83A379C + .4byte gAnimTable_83A3368 + .4byte gSpriteImages_83A1040 + .4byte gDummySpriteAffineAnimTable + +gMapObjectGraphicsInfo_83A41E0:: @ 83A41E0 + .2byte 0xFFFF, 0x1106, 0x11FF, 0x100, 16, 32 + .byte 5 | (1 << 4) | (0 << 6) | (0 << 7) + .byte 1 + .align 2 + .4byte gEventObjectBaseOam_16x32 + .4byte gSubspriteTables_83A379C + .4byte gAnimTable_83A3368 + .4byte gSpriteImages_83A1090 + .4byte gDummySpriteAffineAnimTable + +gMapObjectGraphicsInfo_83A4204:: @ 83A4204 + .2byte 0xFFFF, 0x1104, 0x11FF, 0x100, 16, 32 + .byte 3 | (1 << 4) | (0 << 6) | (0 << 7) + .byte 1 + .align 2 + .4byte gEventObjectBaseOam_16x32 + .4byte gSubspriteTables_83A379C + .4byte gAnimTable_83A3368 + .4byte gSpriteImages_83A10D8 + .4byte gDummySpriteAffineAnimTable + +gMapObjectGraphicsInfo_83A4228:: @ 83A4228 + .2byte 0xFFFF, 0x1106, 0x11FF, 0x80, 16, 16 + .byte 5 | (1 << 4) | (0 << 6) | (0 << 7) + .byte 1 + .align 2 + .4byte gEventObjectBaseOam_16x16 + .4byte gSubspriteTables_83A3748 + .4byte gAnimTable_83A3368 + .4byte gSpriteImages_83A1120 + .4byte gDummySpriteAffineAnimTable + +gMapObjectGraphicsInfo_83A424C:: @ 83A424C + .2byte 0xFFFF, 0x1103, 0x11FF, 0x80, 16, 16 + .byte 2 | (1 << 4) | (0 << 6) | (0 << 7) + .byte 1 + .align 2 + .4byte gEventObjectBaseOam_16x16 + .4byte gSubspriteTables_83A3748 + .4byte gAnimTable_83A3368 + .4byte gSpriteImages_83A1170 + .4byte gDummySpriteAffineAnimTable + +gMapObjectGraphicsInfo_83A4270:: @ 83A4270 + .2byte 0xFFFF, 0x1103, 0x11FF, 0x80, 16, 16 + .byte 2 | (1 << 4) | (0 << 6) | (0 << 7) + .byte 1 + .align 2 + .4byte gEventObjectBaseOam_16x16 + .4byte gSubspriteTables_83A3748 + .4byte gAnimTable_83A3368 + .4byte gSpriteImages_83A11C0 + .4byte gDummySpriteAffineAnimTable + +gMapObjectGraphicsInfo_83A4294:: @ 83A4294 + .2byte 0xFFFF, 0x1106, 0x11FF, 0x100, 16, 32 + .byte 5 | (1 << 4) | (0 << 6) | (0 << 7) + .byte 1 + .align 2 + .4byte gEventObjectBaseOam_16x32 + .4byte gSubspriteTables_83A379C + .4byte gAnimTable_83A3368 + .4byte gSpriteImages_83A1210 + .4byte gDummySpriteAffineAnimTable + +gMapObjectGraphicsInfo_83A42B8:: @ 83A42B8 + .2byte 0xFFFF, 0x1104, 0x11FF, 0x200, 32, 32 + .byte 3 | (1 << 4) | (0 << 6) | (0 << 7) + .byte 2 + .align 2 + .4byte gEventObjectBaseOam_32x32 + .4byte gSubspriteTables_83A37F0 + .4byte gAnimTable_83A3368 + .4byte gSpriteImages_83A1260 + .4byte gDummySpriteAffineAnimTable + +gMapObjectGraphicsInfo_83A42DC:: @ 83A42DC + .2byte 0xFFFF, 0x1104, 0x11FF, 0x100, 16, 32 + .byte 3 | (1 << 4) | (0 << 6) | (0 << 7) + .byte 2 + .align 2 + .4byte gEventObjectBaseOam_16x32 + .4byte gSubspriteTables_83A379C + .4byte gAnimTable_83A3368 + .4byte gSpriteImages_83A12B0 + .4byte gDummySpriteAffineAnimTable + +gMapObjectGraphicsInfo_83A4300:: @ 83A4300 + .2byte 0xFFFF, 0x1104, 0x11FF, 0x100, 16, 32 + .byte 3 | (1 << 4) | (0 << 6) | (0 << 7) + .byte 1 + .align 2 + .4byte gEventObjectBaseOam_16x32 + .4byte gSubspriteTables_83A379C + .4byte gAnimTable_83A35E4 + .4byte gSpriteImages_83A12F8 + .4byte gDummySpriteAffineAnimTable + +gMapObjectGraphicsInfo_83A4324:: @ 83A4324 + .2byte 0xFFFF, 0x1106, 0x11FF, 0x100, 16, 32 + .byte 5 | (1 << 4) | (0 << 6) | (0 << 7) + .byte 1 + .align 2 + .4byte gEventObjectBaseOam_16x32 + .4byte gSubspriteTables_83A379C + .4byte gAnimTable_83A3368 + .4byte gSpriteImages_83A1348 + .4byte gDummySpriteAffineAnimTable + +gMapObjectGraphicsInfo_83A4348:: @ 83A4348 + .2byte 0xFFFF, 0x1106, 0x11FF, 0x80, 16, 16 + .byte 5 | (0 << 4) | (1 << 6) | (0 << 7) + .byte 0 + .align 2 + .4byte gEventObjectBaseOam_16x16 + .4byte gSubspriteTables_83A3748 + .4byte gAnimTable_83A3314 + .4byte gSpriteImages_83A1390 + .4byte gDummySpriteAffineAnimTable + +gMapObjectGraphicsInfo_83A436C:: @ 83A436C + .2byte 0xFFFF, 0x1106, 0x11FF, 0x100, 16, 32 + .byte 5 | (1 << 4) | (0 << 6) | (0 << 7) + .byte 1 + .align 2 + .4byte gEventObjectBaseOam_16x32 + .4byte gSubspriteTables_83A379C + .4byte gAnimTable_83A3368 + .4byte gSpriteImages_83A1398 + .4byte gDummySpriteAffineAnimTable + +gMapObjectGraphicsInfo_83A4390:: @ 83A4390 + .2byte 0xFFFF, 0x1106, 0x11FF, 0x100, 16, 32 + .byte 5 | (1 << 4) | (0 << 6) | (0 << 7) + .byte 1 + .align 2 + .4byte gEventObjectBaseOam_16x32 + .4byte gSubspriteTables_83A379C + .4byte gAnimTable_83A3368 + .4byte gSpriteImages_83A13E0 + .4byte gDummySpriteAffineAnimTable + +gMapObjectGraphicsInfo_83A43B4:: @ 83A43B4 + .2byte 0xFFFF, 0x1103, 0x11FF, 0x100, 16, 32 + .byte 2 | (1 << 4) | (0 << 6) | (0 << 7) + .byte 1 + .align 2 + .4byte gEventObjectBaseOam_16x32 + .4byte gSubspriteTables_83A379C + .4byte gAnimTable_83A3368 + .4byte gSpriteImages_83A1430 + .4byte gDummySpriteAffineAnimTable + +gMapObjectGraphicsInfo_83A43D8:: @ 83A43D8 + .2byte 0xFFFF, 0x1106, 0x11FF, 0x100, 16, 32 + .byte 5 | (1 << 4) | (0 << 6) | (0 << 7) + .byte 1 + .align 2 + .4byte gEventObjectBaseOam_16x32 + .4byte gSubspriteTables_83A379C + .4byte gAnimTable_83A3368 + .4byte gSpriteImages_83A1480 + .4byte gDummySpriteAffineAnimTable + +gMapObjectGraphicsInfo_83A43FC:: @ 83A43FC + .2byte 0xFFFF, 0x1106, 0x11FF, 0x100, 16, 32 + .byte 5 | (1 << 4) | (0 << 6) | (0 << 7) + .byte 1 + .align 2 + .4byte gEventObjectBaseOam_16x32 + .4byte gSubspriteTables_83A379C + .4byte gAnimTable_83A3368 + .4byte gSpriteImages_83A14C8 + .4byte gDummySpriteAffineAnimTable + +gMapObjectGraphicsInfo_83A4420:: @ 83A4420 + .2byte 0xFFFF, 0x1104, 0x11FF, 0x200, 32, 32 + .byte 3 | (1 << 4) | (0 << 6) | (0 << 7) + .byte 1 + .align 2 + .4byte gEventObjectBaseOam_32x32 + .4byte gSubspriteTables_83A37F0 + .4byte gAnimTable_83A3368 + .4byte gSpriteImages_83A0A70 + .4byte gDummySpriteAffineAnimTable + +gMapObjectGraphicsInfo_83A4444:: @ 83A4444 + .2byte 0xFFFF, 0x1105, 0x11FF, 0x80, 16, 16 + .byte 4 | (0 << 4) | (1 << 6) | (0 << 7) + .byte 0 + .align 2 + .4byte gEventObjectBaseOam_16x16 + .4byte gSubspriteTables_83A3748 + .4byte gAnimTable_83A3660 + .4byte gSpriteImages_83A1510 + .4byte gDummySpriteAffineAnimTable + +gMapObjectGraphicsInfo_83A4468:: @ 83A4468 + .2byte 0xFFFF, 0x1106, 0x11FF, 0x100, 16, 32 + .byte 5 | (1 << 4) | (0 << 6) | (0 << 7) + .byte 1 + .align 2 + .4byte gEventObjectBaseOam_16x32 + .4byte gSubspriteTables_83A379C + .4byte gAnimTable_83A3368 + .4byte gSpriteImages_83A1530 + .4byte gDummySpriteAffineAnimTable + +gMapObjectGraphicsInfo_83A448C:: @ 83A448C + .2byte 0xFFFF, 0x1105, 0x11FF, 0x100, 16, 32 + .byte 4 | (1 << 4) | (0 << 6) | (0 << 7) + .byte 1 + .align 2 + .4byte gEventObjectBaseOam_16x32 + .4byte gSubspriteTables_83A379C + .4byte gAnimTable_83A3368 + .4byte gSpriteImages_83A1578 + .4byte gDummySpriteAffineAnimTable + +gMapObjectGraphicsInfo_83A44B0:: @ 83A44B0 + .2byte 0xFFFF, 0x1106, 0x11FF, 0x100, 16, 32 + .byte 5 | (1 << 4) | (0 << 6) | (0 << 7) + .byte 1 + .align 2 + .4byte gEventObjectBaseOam_16x32 + .4byte gSubspriteTables_83A379C + .4byte gAnimTable_83A3368 + .4byte gSpriteImages_83A15C0 + .4byte gDummySpriteAffineAnimTable + +gMapObjectGraphicsInfo_83A44D4:: @ 83A44D4 + .2byte 0xFFFF, 0x1106, 0x11FF, 0x100, 16, 32 + .byte 5 | (1 << 4) | (0 << 6) | (0 << 7) + .byte 1 + .align 2 + .4byte gEventObjectBaseOam_16x32 + .4byte gSubspriteTables_83A379C + .4byte gAnimTable_83A3368 + .4byte gSpriteImages_83A1608 + .4byte gDummySpriteAffineAnimTable + +gMapObjectGraphicsInfo_83A44F8:: @ 83A44F8 + .2byte 0xFFFF, 0x1106, 0x11FF, 0x100, 16, 32 + .byte 5 | (1 << 4) | (0 << 6) | (0 << 7) + .byte 1 + .align 2 + .4byte gEventObjectBaseOam_16x32 + .4byte gSubspriteTables_83A379C + .4byte gAnimTable_83A3368 + .4byte gSpriteImages_83A1650 + .4byte gDummySpriteAffineAnimTable + +gMapObjectGraphicsInfo_83A451C:: @ 83A451C + .2byte 0xFFFF, 0x1106, 0x11FF, 0x80, 16, 16 + .byte 5 | (0 << 4) | (1 << 6) | (0 << 7) + .byte 0 + .align 2 + .4byte gEventObjectBaseOam_16x16 + .4byte gSubspriteTables_83A3748 + .4byte gAnimTable_83A3658 + .4byte gSpriteImages_83A1698 + .4byte gDummySpriteAffineAnimTable + +gMapObjectGraphicsInfo_83A4540:: @ 83A4540 + .2byte 0xFFFF, 0x1106, 0x11FF, 0x80, 16, 16 + .byte 5 | (0 << 4) | (1 << 6) | (0 << 7) + .byte 0 + .align 2 + .4byte gEventObjectBaseOam_16x16 + .4byte gSubspriteTables_83A3748 + .4byte gAnimTable_83A3314 + .4byte gSpriteImages_83A16B8 + .4byte gDummySpriteAffineAnimTable + +gMapObjectGraphicsInfo_83A4564:: @ 83A4564 + .2byte 0xFFFF, 0x1110, 0x1102, 0x200, 16, 32 + .byte 0 | (1 << 4) | (0 << 6) | (0 << 7) + .byte 1 + .align 2 + .4byte gEventObjectBaseOam_16x32 + .4byte gSubspriteTables_83A379C + .4byte gAnimTable_83A3470 + .4byte gSpriteImages_83A0188 + .4byte gDummySpriteAffineAnimTable + +gMapObjectGraphicsInfo_83A4588:: @ 83A4588 + .2byte 0xFFFF, 0x1110, 0x1102, 0x200, 32, 32 + .byte 0 | (1 << 4) | (0 << 6) | (0 << 7) + .byte 2 + .align 2 + .4byte gEventObjectBaseOam_32x32 + .4byte gSubspriteTables_83A37F0 + .4byte gAnimTable_83A3368 + .4byte gSpriteImages_83A0228 + .4byte gDummySpriteAffineAnimTable + +gMapObjectGraphicsInfo_83A45AC:: @ 83A45AC + .2byte 0xFFFF, 0x1110, 0x11FF, 0x100, 16, 32 + .byte 0 | (1 << 4) | (0 << 6) | (1 << 7) + .byte 1 + .align 2 + .4byte gEventObjectBaseOam_16x32 + .4byte gSubspriteTables_83A379C + .4byte gAnimTable_83A3584 + .4byte gSpriteImages_83A02D0 + .4byte gDummySpriteAffineAnimTable + +gMapObjectGraphicsInfo_83A45D0:: @ 83A45D0 + .2byte 0xFFFF, 0x1110, 0x1102, 0x100, 16, 32 + .byte 0 | (1 << 4) | (0 << 6) | (0 << 7) + .byte 1 + .align 2 + .4byte gEventObjectBaseOam_16x32 + .4byte gSubspriteTables_83A379C + .4byte gAnimTable_83A3638 + .4byte gSpriteImages_83A0378 + .4byte gDummySpriteAffineAnimTable + +gMapObjectGraphicsInfo_83A45F4:: @ 83A45F4 + .2byte 0xFFFF, 0x1100, 0x1102, 0x200, 32, 32 + .byte 10 | (1 << 4) | (0 << 6) | (0 << 7) + .byte 2 + .align 2 + .4byte gEventObjectBaseOam_32x32 + .4byte gSubspriteTables_83A37F0 + .4byte gAnimTable_83A3368 + .4byte gSpriteImages_83A0140 + .4byte gDummySpriteAffineAnimTable + +gMapObjectGraphicsInfo_83A4618:: @ 83A4618 + .2byte 0xFFFF, 0x1106, 0x11FF, 0x100, 16, 32 + .byte 5 | (1 << 4) | (0 << 6) | (0 << 7) + .byte 1 + .align 2 + .4byte gEventObjectBaseOam_16x32 + .4byte gSubspriteTables_83A379C + .4byte gAnimTable_83A3368 + .4byte gSpriteImages_83A16C0 + .4byte gDummySpriteAffineAnimTable + +gMapObjectGraphicsInfo_83A463C:: @ 83A463C + .2byte 0xFFFF, 0x1106, 0x11FF, 0x100, 16, 32 + .byte 5 | (1 << 4) | (0 << 6) | (0 << 7) + .byte 1 + .align 2 + .4byte gEventObjectBaseOam_16x32 + .4byte gSubspriteTables_83A379C + .4byte gAnimTable_83A3368 + .4byte gSpriteImages_83A1708 + .4byte gDummySpriteAffineAnimTable + +gMapObjectGraphicsInfo_83A4660:: @ 83A4660 + .2byte 0xFFFF, 0x1104, 0x11FF, 0x100, 16, 32 + .byte 3 | (1 << 4) | (0 << 6) | (0 << 7) + .byte 1 + .align 2 + .4byte gEventObjectBaseOam_16x32 + .4byte gSubspriteTables_83A379C + .4byte gAnimTable_83A3368 + .4byte gSpriteImages_83A1750 + .4byte gDummySpriteAffineAnimTable + +gMapObjectGraphicsInfo_83A4684:: @ 83A4684 + .2byte 0xFFFF, 0x1105, 0x11FF, 0x100, 16, 32 + .byte 4 | (1 << 4) | (0 << 6) | (0 << 7) + .byte 1 + .align 2 + .4byte gEventObjectBaseOam_16x32 + .4byte gSubspriteTables_83A379C + .4byte gAnimTable_83A3368 + .4byte gSpriteImages_83A1798 + .4byte gDummySpriteAffineAnimTable + +gMapObjectGraphicsInfo_83A46A8:: @ 83A46A8 + .2byte 0xFFFF, 0x1103, 0x11FF, 0x100, 16, 32 + .byte 2 | (1 << 4) | (0 << 6) | (0 << 7) + .byte 1 + .align 2 + .4byte gEventObjectBaseOam_16x32 + .4byte gSubspriteTables_83A379C + .4byte gAnimTable_83A3368 + .4byte gSpriteImages_83A17E0 + .4byte gDummySpriteAffineAnimTable + +gMapObjectGraphicsInfo_83A46CC:: @ 83A46CC + .2byte 0xFFFF, 0x1105, 0x11FF, 0x100, 16, 32 + .byte 4 | (1 << 4) | (0 << 6) | (0 << 7) + .byte 1 + .align 2 + .4byte gEventObjectBaseOam_16x32 + .4byte gSubspriteTables_83A379C + .4byte gAnimTable_83A3368 + .4byte gSpriteImages_83A1828 + .4byte gDummySpriteAffineAnimTable + +gMapObjectGraphicsInfo_83A46F0:: @ 83A46F0 + .2byte 0xFFFF, 0x1103, 0x11FF, 0x100, 16, 32 + .byte 2 | (1 << 4) | (0 << 6) | (0 << 7) + .byte 1 + .align 2 + .4byte gEventObjectBaseOam_16x32 + .4byte gSubspriteTables_83A379C + .4byte gAnimTable_83A3368 + .4byte gSpriteImages_83A1870 + .4byte gDummySpriteAffineAnimTable + +gMapObjectGraphicsInfo_83A4714:: @ 83A4714 + .2byte 0xFFFF, 0x1106, 0x11FF, 0x100, 16, 32 + .byte 5 | (1 << 4) | (0 << 6) | (0 << 7) + .byte 1 + .align 2 + .4byte gEventObjectBaseOam_16x32 + .4byte gSubspriteTables_83A379C + .4byte gAnimTable_83A3368 + .4byte gSpriteImages_83A18B8 + .4byte gDummySpriteAffineAnimTable + +gMapObjectGraphicsInfo_83A4738:: @ 83A4738 + .2byte 0xFFFF, 0x1106, 0x11FF, 0x100, 16, 32 + .byte 5 | (1 << 4) | (0 << 6) | (0 << 7) + .byte 1 + .align 2 + .4byte gEventObjectBaseOam_16x32 + .4byte gSubspriteTables_83A379C + .4byte gAnimTable_83A3368 + .4byte gSpriteImages_83A1900 + .4byte gDummySpriteAffineAnimTable + +gMapObjectGraphicsInfo_83A475C:: @ 83A475C + .2byte 0xFFFF, 0x1104, 0x11FF, 0x100, 16, 32 + .byte 3 | (1 << 4) | (0 << 6) | (0 << 7) + .byte 1 + .align 2 + .4byte gEventObjectBaseOam_16x32 + .4byte gSubspriteTables_83A379C + .4byte gAnimTable_83A3368 + .4byte gSpriteImages_83A1948 + .4byte gDummySpriteAffineAnimTable + +gMapObjectGraphicsInfo_83A4780:: @ 83A4780 + .2byte 0xFFFF, 0x1103, 0x11FF, 0x100, 16, 32 + .byte 2 | (1 << 4) | (0 << 6) | (0 << 7) + .byte 1 + .align 2 + .4byte gEventObjectBaseOam_16x32 + .4byte gSubspriteTables_83A379C + .4byte gAnimTable_83A3368 + .4byte gSpriteImages_83A1990 + .4byte gDummySpriteAffineAnimTable + +gMapObjectGraphicsInfo_83A47A4:: @ 83A47A4 + .2byte 0xFFFF, 0x1103, 0x11FF, 0x100, 16, 32 + .byte 2 | (1 << 4) | (0 << 6) | (0 << 7) + .byte 1 + .align 2 + .4byte gEventObjectBaseOam_16x32 + .4byte gSubspriteTables_83A379C + .4byte gAnimTable_83A3368 + .4byte gSpriteImages_83A19D8 + .4byte gDummySpriteAffineAnimTable + +gMapObjectGraphicsInfo_83A47C8:: @ 83A47C8 + .2byte 0xFFFF, 0x1105, 0x11FF, 0x100, 16, 32 + .byte 4 | (1 << 4) | (0 << 6) | (0 << 7) + .byte 1 + .align 2 + .4byte gEventObjectBaseOam_16x32 + .4byte gSubspriteTables_83A379C + .4byte gAnimTable_83A3368 + .4byte gSpriteImages_83A1A20 + .4byte gDummySpriteAffineAnimTable + +gMapObjectGraphicsInfo_83A47EC:: @ 83A47EC + .2byte 0xFFFF, 0x1106, 0x11FF, 0x100, 16, 32 + .byte 5 | (1 << 4) | (0 << 6) | (0 << 7) + .byte 1 + .align 2 + .4byte gEventObjectBaseOam_16x32 + .4byte gSubspriteTables_83A379C + .4byte gAnimTable_83A3368 + .4byte gSpriteImages_83A1A68 + .4byte gDummySpriteAffineAnimTable + +gMapObjectGraphicsInfo_83A4810:: @ 83A4810 + .2byte 0xFFFF, 0x1106, 0x11FF, 0x100, 16, 32 + .byte 5 | (1 << 4) | (0 << 6) | (0 << 7) + .byte 1 + .align 2 + .4byte gEventObjectBaseOam_16x32 + .4byte gSubspriteTables_83A379C + .4byte gAnimTable_83A3368 + .4byte gSpriteImages_83A1AB0 + .4byte gDummySpriteAffineAnimTable + +gMapObjectGraphicsInfo_83A4834:: @ 83A4834 + .2byte 0xFFFF, 0x1105, 0x11FF, 0x100, 16, 32 + .byte 4 | (1 << 4) | (0 << 6) | (0 << 7) + .byte 1 + .align 2 + .4byte gEventObjectBaseOam_16x32 + .4byte gSubspriteTables_83A379C + .4byte gAnimTable_83A3368 + .4byte gSpriteImages_83A1AF8 + .4byte gDummySpriteAffineAnimTable + +gMapObjectGraphicsInfo_83A4858:: @ 83A4858 + .2byte 0xFFFF, 0x1100, 0x1102, 0x200, 32, 32 + .byte 0 | (1 << 4) | (0 << 6) | (0 << 7) + .byte 1 + .align 2 + .4byte gEventObjectBaseOam_32x32 + .4byte gSubspriteTables_83A37F0 + .4byte gAnimTable_83A3668 + .4byte gSpriteImages_83A1B40 + .4byte gDummySpriteAffineAnimTable + +gMapObjectGraphicsInfo_83A487C:: @ 83A487C + .2byte 0xFFFF, 0x1110, 0x1102, 0x200, 32, 32 + .byte 0 | (1 << 4) | (0 << 6) | (0 << 7) + .byte 1 + .align 2 + .4byte gEventObjectBaseOam_32x32 + .4byte gSubspriteTables_83A37F0 + .4byte gAnimTable_83A3668 + .4byte gSpriteImages_83A1BA0 + .4byte gDummySpriteAffineAnimTable + +gMapObjectGraphicsInfo_83A48A0:: @ 83A48A0 + .2byte 0xFFFF, 0x1100, 0x1102, 0x100, 16, 32 + .byte 0 | (1 << 4) | (0 << 6) | (0 << 7) + .byte 1 + .align 2 + .4byte gEventObjectBaseOam_16x32 + .4byte gSubspriteTables_83A379C + .4byte gAnimTable_83A363C + .4byte gSpriteImages_83A0330 + .4byte gDummySpriteAffineAnimTable + +gMapObjectGraphicsInfo_83A48C4:: @ 83A48C4 + .2byte 0xFFFF, 0x1100, 0x1102, 0x200, 32, 32 + .byte 0 | (1 << 4) | (0 << 6) | (0 << 7) + .byte 1 + .align 2 + .4byte gEventObjectBaseOam_32x32 + .4byte gSubspriteTables_83A37F0 + .4byte gAnimTable_83A3640 + .4byte gSpriteImages_83A03C0 + .4byte gDummySpriteAffineAnimTable + +gMapObjectGraphicsInfo_83A48E8:: @ 83A48E8 + .2byte 0xFFFF, 0x1100, 0x1102, 0x100, 16, 32 + .byte 0 | (1 << 4) | (0 << 6) | (0 << 7) + .byte 1 + .align 2 + .4byte gEventObjectBaseOam_16x32 + .4byte gSubspriteTables_83A379C + .4byte gAnimTable_83A363C + .4byte gSpriteImages_83A0378 + .4byte gDummySpriteAffineAnimTable + +gMapObjectGraphicsInfo_83A490C:: @ 83A490C + .2byte 0xFFFF, 0x1100, 0x1102, 0x200, 32, 32 + .byte 0 | (1 << 4) | (0 << 6) | (0 << 7) + .byte 1 + .align 2 + .4byte gEventObjectBaseOam_32x32 + .4byte gSubspriteTables_83A37F0 + .4byte gAnimTable_83A3640 + .4byte gSpriteImages_83A03F0 + .4byte gDummySpriteAffineAnimTable + +gMapObjectGraphicsInfo_83A4930:: @ 83A4930 + .2byte 0xFFFF, 0x1103, 0x11FF, 0x100, 32, 16 + .byte 2 | (0 << 4) | (1 << 6) | (0 << 7) + .byte 0 + .align 2 + .4byte gEventObjectBaseOam_32x16 + .4byte gSubspriteTables_83A3748 + .4byte gAnimTable_83A3314 + .4byte gSpriteImages_83A1C00 + .4byte gDummySpriteAffineAnimTable + +gMapObjectGraphicsInfo_83A4954:: @ 83A4954 + .2byte 0xFFFF, 0x1103, 0x11FF, 0x80, 16, 16 + .byte 2 | (0 << 4) | (1 << 6) | (0 << 7) + .byte 0 + .align 2 + .4byte gEventObjectBaseOam_16x16 + .4byte gSubspriteTables_83A3748 + .4byte gAnimTable_83A3314 + .4byte gSpriteImages_83A1C08 + .4byte gDummySpriteAffineAnimTable + +gMapObjectGraphicsInfo_83A4978:: @ 83A4978 + .2byte 0xFFFF, 0x1104, 0x11FF, 0x100, 16, 32 + .byte 3 | (1 << 4) | (0 << 6) | (0 << 7) + .byte 1 + .align 2 + .4byte gEventObjectBaseOam_16x32 + .4byte gSubspriteTables_83A379C + .4byte gAnimTable_83A3368 + .4byte gSpriteImages_83A1C10 + .4byte gDummySpriteAffineAnimTable + +gMapObjectGraphicsInfo_83A499C:: @ 83A499C + .2byte 0xFFFF, 0x1103, 0x11FF, 0x200, 32, 32 + .byte 2 | (1 << 4) | (0 << 6) | (0 << 7) + .byte 1 + .align 2 + .4byte gEventObjectBaseOam_32x32 + .4byte gSubspriteTables_83A37F0 + .4byte gAnimTable_83A3368 + .4byte gSpriteImages_83A1D38 + .4byte gDummySpriteAffineAnimTable + +gMapObjectGraphicsInfo_83A49C0:: @ 83A49C0 + .2byte 0xFFFF, 0x1106, 0x11FF, 0x80, 16, 16 + .byte 5 | (0 << 4) | (1 << 6) | (0 << 7) + .byte 0 + .align 2 + .4byte gEventObjectBaseOam_16x16 + .4byte gSubspriteTables_83A3748 + .4byte gAnimTable_83A3314 + .4byte gSpriteImages_83A1C58 + .4byte gDummySpriteAffineAnimTable + +gMapObjectGraphicsInfo_83A49E4:: @ 83A49E4 + .2byte 0xFFFF, 0x1103, 0x11FF, 0x80, 16, 16 + .byte 2 | (0 << 4) | (1 << 6) | (0 << 7) + .byte 0 + .align 2 + .4byte gEventObjectBaseOam_16x16 + .4byte gSubspriteTables_83A3748 + .4byte gAnimTable_83A3314 + .4byte gSpriteImages_83A1C60 + .4byte gDummySpriteAffineAnimTable + +gMapObjectGraphicsInfo_83A4A08:: @ 83A4A08 + .2byte 0xFFFF, 0x1103, 0x11FF, 0x80, 16, 16 + .byte 2 | (0 << 4) | (1 << 6) | (0 << 7) + .byte 0 + .align 2 + .4byte gEventObjectBaseOam_16x16 + .4byte gSubspriteTables_83A3748 + .4byte gAnimTable_83A3314 + .4byte gSpriteImages_83A1C68 + .4byte gDummySpriteAffineAnimTable + +gMapObjectGraphicsInfo_83A4A2C:: @ 83A4A2C + .2byte 0xFFFF, 0x1103, 0x11FF, 0x80, 16, 16 + .byte 2 | (0 << 4) | (1 << 6) | (0 << 7) + .byte 0 + .align 2 + .4byte gEventObjectBaseOam_16x16 + .4byte gSubspriteTables_83A3748 + .4byte gAnimTable_83A3314 + .4byte gSpriteImages_83A1C70 + .4byte gDummySpriteAffineAnimTable + +gMapObjectGraphicsInfo_83A4A50:: @ 83A4A50 + .2byte 0xFFFF, 0x1106, 0x11FF, 0x100, 16, 32 + .byte 5 | (0 << 4) | (1 << 6) | (0 << 7) + .byte 0 + .align 2 + .4byte gEventObjectBaseOam_16x32 + .4byte gSubspriteTables_83A379C + .4byte gAnimTable_83A3314 + .4byte gSpriteImages_83A1C78 + .4byte gDummySpriteAffineAnimTable + +gMapObjectGraphicsInfo_83A4A74:: @ 83A4A74 + .2byte 0xFFFF, 0x1106, 0x11FF, 0x80, 16, 16 + .byte 5 | (0 << 4) | (1 << 6) | (0 << 7) + .byte 0 + .align 2 + .4byte gEventObjectBaseOam_16x16 + .4byte gSubspriteTables_83A3748 + .4byte gAnimTable_83A3314 + .4byte gSpriteImages_83A1C80 + .4byte gDummySpriteAffineAnimTable + +gMapObjectGraphicsInfo_83A4A98:: @ 83A4A98 + .2byte 0xFFFF, 0x1106, 0x11FF, 0x80, 16, 16 + .byte 5 | (0 << 4) | (1 << 6) | (0 << 7) + .byte 0 + .align 2 + .4byte gEventObjectBaseOam_16x16 + .4byte gSubspriteTables_83A3748 + .4byte gAnimTable_83A3314 + .4byte gSpriteImages_83A1C88 + .4byte gDummySpriteAffineAnimTable + +gMapObjectGraphicsInfo_83A4ABC:: @ 83A4ABC + .2byte 0xFFFF, 0x1106, 0x11FF, 0x80, 16, 16 + .byte 5 | (0 << 4) | (1 << 6) | (0 << 7) + .byte 0 + .align 2 + .4byte gEventObjectBaseOam_16x16 + .4byte gSubspriteTables_83A3748 + .4byte gAnimTable_83A3314 + .4byte gSpriteImages_83A1C90 + .4byte gDummySpriteAffineAnimTable + +gMapObjectGraphicsInfo_83A4AE0:: @ 83A4AE0 + .2byte 0xFFFF, 0x1113, 0x11FF, 0x200, 32, 32 + .byte 10 | (0 << 4) | (1 << 6) | (0 << 7) + .byte 0 + .align 2 + .4byte gEventObjectBaseOam_32x32 + .4byte gSubspriteTables_83A37F0 + .4byte gAnimTable_83A3314 + .4byte gSpriteImages_83A1C98 + .4byte gDummySpriteAffineAnimTable + +gMapObjectGraphicsInfo_83A4B04:: @ 83A4B04 + .2byte 0xFFFF, 0x1104, 0x11FF, 0x200, 32, 32 + .byte 3 | (0 << 4) | (1 << 6) | (0 << 7) + .byte 0 + .align 2 + .4byte gEventObjectBaseOam_32x32 + .4byte gSubspriteTables_83A37F0 + .4byte gAnimTable_83A3314 + .4byte gSpriteImages_83A1CA0 + .4byte gDummySpriteAffineAnimTable + +gMapObjectGraphicsInfo_83A4B28:: @ 83A4B28 + .2byte 0xFFFF, 0x1106, 0x11FF, 0x80, 16, 16 + .byte 5 | (1 << 4) | (0 << 6) | (0 << 7) + .byte 1 + .align 2 + .4byte gEventObjectBaseOam_16x16 + .4byte gSubspriteTables_83A3748 + .4byte gAnimTable_83A3368 + .4byte gSpriteImages_83A1D80 + .4byte gDummySpriteAffineAnimTable + +gMapObjectGraphicsInfo_83A4B4C:: @ 83A4B4C + .2byte 0xFFFF, 0x1103, 0x11FF, 0x80, 16, 16 + .byte 2 | (1 << 4) | (0 << 6) | (0 << 7) + .byte 1 + .align 2 + .4byte gEventObjectBaseOam_16x16 + .4byte gSubspriteTables_83A3748 + .4byte gAnimTable_83A3368 + .4byte gSpriteImages_83A1E10 + .4byte gDummySpriteAffineAnimTable + +gMapObjectGraphicsInfo_83A4B70:: @ 83A4B70 + .2byte 0xFFFF, 0x1103, 0x11FF, 0x80, 16, 16 + .byte 2 | (1 << 4) | (0 << 6) | (0 << 7) + .byte 1 + .align 2 + .4byte gEventObjectBaseOam_16x16 + .4byte gSubspriteTables_83A3748 + .4byte gAnimTable_83A3368 + .4byte gSpriteImages_83A1E58 + .4byte gDummySpriteAffineAnimTable + +gMapObjectGraphicsInfo_83A4B94:: @ 83A4B94 + .2byte 0xFFFF, 0x1103, 0x11FF, 0x80, 16, 16 + .byte 2 | (1 << 4) | (0 << 6) | (0 << 7) + .byte 1 + .align 2 + .4byte gEventObjectBaseOam_16x16 + .4byte gSubspriteTables_83A3748 + .4byte gAnimTable_83A3368 + .4byte gSpriteImages_83A1EA0 + .4byte gDummySpriteAffineAnimTable + +gMapObjectGraphicsInfo_83A4BB8:: @ 83A4BB8 + .2byte 0xFFFF, 0x1104, 0x11FF, 0x80, 16, 16 + .byte 3 | (1 << 4) | (0 << 6) | (0 << 7) + .byte 1 + .align 2 + .4byte gEventObjectBaseOam_16x16 + .4byte gSubspriteTables_83A3748 + .4byte gAnimTable_83A3368 + .4byte gSpriteImages_83A1EE8 + .4byte gDummySpriteAffineAnimTable + +gMapObjectGraphicsInfo_83A4BDC:: @ 83A4BDC + .2byte 0xFFFF, 0x1105, 0x11FF, 0x80, 16, 16 + .byte 4 | (1 << 4) | (0 << 6) | (0 << 7) + .byte 1 + .align 2 + .4byte gEventObjectBaseOam_16x16 + .4byte gSubspriteTables_83A3748 + .4byte gAnimTable_83A3368 + .4byte gSpriteImages_83A1F30 + .4byte gDummySpriteAffineAnimTable + +gMapObjectGraphicsInfo_83A4C00:: @ 83A4C00 + .2byte 0xFFFF, 0x1105, 0x11FF, 0x80, 16, 16 + .byte 4 | (1 << 4) | (0 << 6) | (0 << 7) + .byte 1 + .align 2 + .4byte gEventObjectBaseOam_16x16 + .4byte gSubspriteTables_83A3748 + .4byte gAnimTable_83A3368 + .4byte gSpriteImages_83A1F78 + .4byte gDummySpriteAffineAnimTable + +gMapObjectGraphicsInfo_83A4C24:: @ 83A4C24 + .2byte 0xFFFF, 0x1103, 0x11FF, 0x80, 16, 16 + .byte 2 | (1 << 4) | (0 << 6) | (0 << 7) + .byte 1 + .align 2 + .4byte gEventObjectBaseOam_16x16 + .4byte gSubspriteTables_83A3748 + .4byte gAnimTable_83A3368 + .4byte gSpriteImages_83A1FC0 + .4byte gDummySpriteAffineAnimTable + +gMapObjectGraphicsInfo_83A4C48:: @ 83A4C48 + .2byte 0xFFFF, 0x1104, 0x11FF, 0x80, 16, 16 + .byte 3 | (1 << 4) | (0 << 6) | (0 << 7) + .byte 1 + .align 2 + .4byte gEventObjectBaseOam_16x16 + .4byte gSubspriteTables_83A3748 + .4byte gAnimTable_83A3368 + .4byte gSpriteImages_83A2008 + .4byte gDummySpriteAffineAnimTable + +gMapObjectGraphicsInfo_83A4C6C:: @ 83A4C6C + .2byte 0xFFFF, 0x1106, 0x11FF, 0x80, 16, 16 + .byte 5 | (1 << 4) | (0 << 6) | (0 << 7) + .byte 1 + .align 2 + .4byte gEventObjectBaseOam_16x16 + .4byte gSubspriteTables_83A3748 + .4byte gAnimTable_83A3368 + .4byte gSpriteImages_83A2050 + .4byte gDummySpriteAffineAnimTable + +gMapObjectGraphicsInfo_83A4C90:: @ 83A4C90 + .2byte 0xFFFF, 0x1104, 0x11FF, 0x80, 16, 16 + .byte 3 | (1 << 4) | (0 << 6) | (0 << 7) + .byte 1 + .align 2 + .4byte gEventObjectBaseOam_16x16 + .4byte gSubspriteTables_83A3748 + .4byte gAnimTable_83A3368 + .4byte gSpriteImages_83A2098 + .4byte gDummySpriteAffineAnimTable + +gMapObjectGraphicsInfo_83A4CB4:: @ 83A4CB4 + .2byte 0xFFFF, 0x1104, 0x11FF, 0x80, 16, 16 + .byte 3 | (1 << 4) | (0 << 6) | (0 << 7) + .byte 1 + .align 2 + .4byte gEventObjectBaseOam_16x16 + .4byte gSubspriteTables_83A3748 + .4byte gAnimTable_83A3368 + .4byte gSpriteImages_83A20E0 + .4byte gDummySpriteAffineAnimTable + +gMapObjectGraphicsInfo_83A4CD8:: @ 83A4CD8 + .2byte 0xFFFF, 0x1104, 0x11FF, 0x80, 16, 16 + .byte 3 | (1 << 4) | (0 << 6) | (0 << 7) + .byte 1 + .align 2 + .4byte gEventObjectBaseOam_16x16 + .4byte gSubspriteTables_83A3748 + .4byte gAnimTable_83A3368 + .4byte gSpriteImages_83A2128 + .4byte gDummySpriteAffineAnimTable + +gMapObjectGraphicsInfo_83A4CFC:: @ 83A4CFC + .2byte 0xFFFF, 0x1104, 0x11FF, 0x80, 16, 16 + .byte 3 | (1 << 4) | (0 << 6) | (0 << 7) + .byte 1 + .align 2 + .4byte gEventObjectBaseOam_16x16 + .4byte gSubspriteTables_83A3748 + .4byte gAnimTable_83A3368 + .4byte gSpriteImages_83A2170 + .4byte gDummySpriteAffineAnimTable + +gMapObjectGraphicsInfo_83A4D20:: @ 83A4D20 + .2byte 0xFFFF, 0x1103, 0x11FF, 0x80, 16, 16 + .byte 2 | (1 << 4) | (0 << 6) | (0 << 7) + .byte 1 + .align 2 + .4byte gEventObjectBaseOam_16x16 + .4byte gSubspriteTables_83A3748 + .4byte gAnimTable_83A3368 + .4byte gSpriteImages_83A21B8 + .4byte gDummySpriteAffineAnimTable + +gMapObjectGraphicsInfo_83A4D44:: @ 83A4D44 + .2byte 0xFFFF, 0x1106, 0x11FF, 0x80, 16, 16 + .byte 5 | (1 << 4) | (0 << 6) | (0 << 7) + .byte 1 + .align 2 + .4byte gEventObjectBaseOam_16x16 + .4byte gSubspriteTables_83A3748 + .4byte gAnimTable_83A3368 + .4byte gSpriteImages_83A2200 + .4byte gDummySpriteAffineAnimTable + +gMapObjectGraphicsInfo_83A4D68:: @ 83A4D68 + .2byte 0xFFFF, 0x1104, 0x11FF, 0x80, 16, 16 + .byte 3 | (1 << 4) | (0 << 6) | (0 << 7) + .byte 1 + .align 2 + .4byte gEventObjectBaseOam_16x16 + .4byte gSubspriteTables_83A3748 + .4byte gAnimTable_83A3368 + .4byte gSpriteImages_83A2248 + .4byte gDummySpriteAffineAnimTable + +gMapObjectGraphicsInfo_83A4D8C:: @ 83A4D8C + .2byte 0xFFFF, 0x1103, 0x11FF, 0x200, 32, 32 + .byte 2 | (1 << 4) | (0 << 6) | (0 << 7) + .byte 1 + .align 2 + .4byte gEventObjectBaseOam_32x32 + .4byte gSubspriteTables_83A37F0 + .4byte gAnimTable_83A3368 + .4byte gSpriteImages_83A2290 + .4byte gDummySpriteAffineAnimTable + +gMapObjectGraphicsInfo_83A4DB0:: @ 83A4DB0 + .2byte 0xFFFF, 0x1103, 0x11FF, 0x200, 32, 32 + .byte 2 | (1 << 4) | (0 << 6) | (0 << 7) + .byte 1 + .align 2 + .4byte gEventObjectBaseOam_32x32 + .4byte gSubspriteTables_83A37F0 + .4byte gAnimTable_83A3368 + .4byte gSpriteImages_83A22D8 + .4byte gDummySpriteAffineAnimTable + +gMapObjectGraphicsInfo_83A4DD4:: @ 83A4DD4 + .2byte 0xFFFF, 0x1104, 0x11FF, 0x200, 32, 32 + .byte 3 | (1 << 4) | (0 << 6) | (0 << 7) + .byte 1 + .align 2 + .4byte gEventObjectBaseOam_32x32 + .4byte gSubspriteTables_83A37F0 + .4byte gAnimTable_83A3368 + .4byte gSpriteImages_83A2320 + .4byte gDummySpriteAffineAnimTable + +gMapObjectGraphicsInfo_83A4DF8:: @ 83A4DF8 + .2byte 0xFFFF, 0x1103, 0x11FF, 0x200, 32, 32 + .byte 2 | (1 << 4) | (0 << 6) | (0 << 7) + .byte 1 + .align 2 + .4byte gEventObjectBaseOam_32x32 + .4byte gSubspriteTables_83A37F0 + .4byte gAnimTable_83A3368 + .4byte gSpriteImages_83A2368 + .4byte gDummySpriteAffineAnimTable + +gMapObjectGraphicsInfo_83A4E1C:: @ 83A4E1C + .2byte 0xFFFF, 0x1103, 0x11FF, 0x200, 32, 32 + .byte 2 | (1 << 4) | (0 << 6) | (0 << 7) + .byte 1 + .align 2 + .4byte gEventObjectBaseOam_32x32 + .4byte gSubspriteTables_83A37F0 + .4byte gAnimTable_83A3368 + .4byte gSpriteImages_83A23B0 + .4byte gDummySpriteAffineAnimTable + +gMapObjectGraphicsInfo_83A4E40:: @ 83A4E40 + .2byte 0xFFFF, 0x1103, 0x11FF, 0x200, 32, 32 + .byte 2 | (1 << 4) | (0 << 6) | (0 << 7) + .byte 1 + .align 2 + .4byte gEventObjectBaseOam_32x32 + .4byte gSubspriteTables_83A37F0 + .4byte gAnimTable_83A3368 + .4byte gSpriteImages_83A23F8 + .4byte gDummySpriteAffineAnimTable + +gMapObjectGraphicsInfo_83A4E64:: @ 83A4E64 + .2byte 0xFFFF, 0x1104, 0x11FF, 0x80, 16, 16 + .byte 3 | (1 << 4) | (0 << 6) | (0 << 7) + .byte 1 + .align 2 + .4byte gEventObjectBaseOam_16x16 + .4byte gSubspriteTables_83A3748 + .4byte gAnimTable_83A3368 + .4byte gSpriteImages_83A2440 + .4byte gDummySpriteAffineAnimTable + +gMapObjectGraphicsInfo_83A4E88:: @ 83A4E88 + .2byte 0xFFFF, 0x1105, 0x11FF, 0x80, 16, 16 + .byte 4 | (1 << 4) | (0 << 6) | (0 << 7) + .byte 1 + .align 2 + .4byte gEventObjectBaseOam_16x16 + .4byte gSubspriteTables_83A3748 + .4byte gAnimTable_83A3368 + .4byte gSpriteImages_83A2488 + .4byte gDummySpriteAffineAnimTable + +gMapObjectGraphicsInfo_83A4EAC:: @ 83A4EAC + .2byte 0xFFFF, 0x1103, 0x11FF, 0x80, 16, 16 + .byte 2 | (1 << 4) | (0 << 6) | (0 << 7) + .byte 1 + .align 2 + .4byte gEventObjectBaseOam_16x16 + .4byte gSubspriteTables_83A3748 + .4byte gAnimTable_83A3368 + .4byte gSpriteImages_83A24D0 + .4byte gDummySpriteAffineAnimTable + +gMapObjectGraphicsInfo_83A4ED0:: @ 83A4ED0 + .2byte 0xFFFF, 0x1105, 0x11FF, 0x80, 16, 16 + .byte 4 | (1 << 4) | (0 << 6) | (0 << 7) + .byte 1 + .align 2 + .4byte gEventObjectBaseOam_16x16 + .4byte gSubspriteTables_83A3748 + .4byte gAnimTable_83A3368 + .4byte gSpriteImages_83A2518 + .4byte gDummySpriteAffineAnimTable + +gMapObjectGraphicsInfo_83A4EF4:: @ 83A4EF4 + .2byte 0xFFFF, 0x1104, 0x11FF, 0x80, 16, 16 + .byte 3 | (1 << 4) | (0 << 6) | (0 << 7) + .byte 1 + .align 2 + .4byte gEventObjectBaseOam_16x16 + .4byte gSubspriteTables_83A3748 + .4byte gAnimTable_83A3368 + .4byte gSpriteImages_83A2560 + .4byte gDummySpriteAffineAnimTable + +gMapObjectGraphicsInfo_83A4F18:: @ 83A4F18 + .2byte 0xFFFF, 0x1104, 0x11FF, 0x200, 32, 32 + .byte 3 | (1 << 4) | (0 << 6) | (0 << 7) + .byte 1 + .align 2 + .4byte gEventObjectBaseOam_32x32 + .4byte gSubspriteTables_83A37F0 + .4byte gAnimTable_83A3368 + .4byte gSpriteImages_83A25A8 + .4byte gDummySpriteAffineAnimTable + +gMapObjectGraphicsInfo_83A4F3C:: @ 83A4F3C + .2byte 0xFFFF, 0x1103, 0x11FF, 0x200, 32, 32 + .byte 2 | (1 << 4) | (0 << 6) | (0 << 7) + .byte 1 + .align 2 + .4byte gEventObjectBaseOam_32x32 + .4byte gSubspriteTables_83A37F0 + .4byte gAnimTable_83A33BC + .4byte gSpriteImages_83A25F0 + .4byte gDummySpriteAffineAnimTable + +gMapObjectGraphicsInfo_83A4F60:: @ 83A4F60 + .2byte 0xFFFF, 0x1105, 0x11FF, 0x80, 16, 16 + .byte 4 | (1 << 4) | (0 << 6) | (0 << 7) + .byte 1 + .align 2 + .4byte gEventObjectBaseOam_16x16 + .4byte gSubspriteTables_83A3748 + .4byte gAnimTable_83A3368 + .4byte gSpriteImages_83A2638 + .4byte gDummySpriteAffineAnimTable + +gMapObjectGraphicsInfo_83A4F84:: @ 83A4F84 + .2byte 0xFFFF, 0x1106, 0x11FF, 0x80, 16, 16 + .byte 5 | (1 << 4) | (0 << 6) | (0 << 7) + .byte 1 + .align 2 + .4byte gEventObjectBaseOam_16x16 + .4byte gSubspriteTables_83A3748 + .4byte gAnimTable_83A3368 + .4byte gSpriteImages_83A2680 + .4byte gDummySpriteAffineAnimTable + +gMapObjectGraphicsInfo_83A4FA8:: @ 83A4FA8 + .2byte 0xFFFF, 0x1103, 0x11FF, 0x80, 16, 16 + .byte 2 | (1 << 4) | (0 << 6) | (0 << 7) + .byte 1 + .align 2 + .4byte gEventObjectBaseOam_16x16 + .4byte gSubspriteTables_83A3748 + .4byte gAnimTable_83A3368 + .4byte gSpriteImages_83A2878 + .4byte gDummySpriteAffineAnimTable + +gMapObjectGraphicsInfo_83A4FCC:: @ 83A4FCC + .2byte 0xFFFF, 0x1103, 0x11FF, 0x80, 16, 16 + .byte 2 | (1 << 4) | (0 << 6) | (0 << 7) + .byte 1 + .align 2 + .4byte gEventObjectBaseOam_16x16 + .4byte gSubspriteTables_83A3748 + .4byte gAnimTable_83A3368 + .4byte gSpriteImages_83A28C0 + .4byte gDummySpriteAffineAnimTable + +gMapObjectGraphicsInfo_83A4FF0:: @ 83A4FF0 + .2byte 0xFFFF, 0x1103, 0x11FF, 0x80, 16, 16 + .byte 2 | (1 << 4) | (0 << 6) | (0 << 7) + .byte 1 + .align 2 + .4byte gEventObjectBaseOam_16x16 + .4byte gSubspriteTables_83A3748 + .4byte gAnimTable_83A3368 + .4byte gSpriteImages_83A26C8 + .4byte gDummySpriteAffineAnimTable + +gMapObjectGraphicsInfo_83A5014:: @ 83A5014 + .2byte 0xFFFF, 0x1103, 0x11FF, 0x80, 16, 16 + .byte 2 | (1 << 4) | (0 << 6) | (0 << 7) + .byte 1 + .align 2 + .4byte gEventObjectBaseOam_16x16 + .4byte gSubspriteTables_83A3748 + .4byte gAnimTable_83A3368 + .4byte gSpriteImages_83A1DC8 + .4byte gDummySpriteAffineAnimTable + +gMapObjectGraphicsInfo_83A5038:: @ 83A5038 + .2byte 0xFFFF, 0x1104, 0x11FF, 0x80, 16, 16 + .byte 3 | (1 << 4) | (0 << 6) | (0 << 7) + .byte 1 + .align 2 + .4byte gEventObjectBaseOam_16x16 + .4byte gSubspriteTables_83A3748 + .4byte gAnimTable_83A3368 + .4byte gSpriteImages_83A2710 + .4byte gDummySpriteAffineAnimTable + +gMapObjectGraphicsInfo_83A505C:: @ 83A505C + .2byte 0xFFFF, 0x1103, 0x11FF, 0x80, 16, 16 + .byte 2 | (1 << 4) | (0 << 6) | (0 << 7) + .byte 1 + .align 2 + .4byte gEventObjectBaseOam_16x16 + .4byte gSubspriteTables_83A3748 + .4byte gAnimTable_83A3368 + .4byte gSpriteImages_83A2758 + .4byte gDummySpriteAffineAnimTable + +gMapObjectGraphicsInfo_83A5080:: @ 83A5080 + .2byte 0xFFFF, 0x1104, 0x11FF, 0x80, 16, 16 + .byte 3 | (1 << 4) | (0 << 6) | (0 << 7) + .byte 1 + .align 2 + .4byte gEventObjectBaseOam_16x16 + .4byte gSubspriteTables_83A3748 + .4byte gAnimTable_83A3368 + .4byte gSpriteImages_83A27A0 + .4byte gDummySpriteAffineAnimTable + +gMapObjectGraphicsInfo_83A50A4:: @ 83A50A4 + .2byte 0xFFFF, 0x1103, 0x11FF, 0x80, 16, 16 + .byte 2 | (1 << 4) | (0 << 6) | (0 << 7) + .byte 1 + .align 2 + .4byte gEventObjectBaseOam_16x16 + .4byte gSubspriteTables_83A3748 + .4byte gAnimTable_83A3368 + .4byte gSpriteImages_83A27E8 + .4byte gDummySpriteAffineAnimTable + +gMapObjectGraphicsInfo_83A50C8:: @ 83A50C8 + .2byte 0xFFFF, 0x1104, 0x11FF, 0x80, 16, 16 + .byte 3 | (1 << 4) | (0 << 6) | (0 << 7) + .byte 1 + .align 2 + .4byte gEventObjectBaseOam_16x16 + .4byte gSubspriteTables_83A3748 + .4byte gAnimTable_83A3368 + .4byte gSpriteImages_83A2830 + .4byte gDummySpriteAffineAnimTable + +gMapObjectGraphicsInfo_83A50EC:: @ 83A50EC + .2byte 0xFFFF, 0x1103, 0x11FF, 0x100, 16, 32 + .byte 2 | (1 << 4) | (0 << 6) | (0 << 7) + .byte 1 + .align 2 + .4byte gEventObjectBaseOam_16x32 + .4byte gSubspriteTables_83A379C + .4byte gAnimTable_83A3368 + .4byte gSpriteImages_83A2908 + .4byte gDummySpriteAffineAnimTable + +gMapObjectGraphicsInfo_83A5110:: @ 83A5110 + .2byte 0xFFFF, 0x1114, 0x11FF, 0x800, 64, 64 + .byte 10 | (1 << 4) | (0 << 6) | (0 << 7) + .byte 0 + .align 2 + .4byte gEventObjectBaseOam_64x64 + .4byte gSubspriteTables_83A38D0 + .4byte gAnimTable_83A3368 + .4byte gSpriteImages_83A1CA8 + .4byte gDummySpriteAffineAnimTable + +gMapObjectGraphicsInfo_83A5134:: @ 83A5134 + .2byte 0xFFFF, 0x1115, 0x11FF, 0x1000, 128, 64 + .byte 10 | (1 << 4) | (0 << 6) | (0 << 7) + .byte 0 + .align 2 + .4byte gEventObjectBaseOam_128x64 + .4byte gSubspriteTables_83A3A50 + .4byte gAnimTable_83A3368 + .4byte gSpriteImages_83A1CF0 + .4byte gDummySpriteAffineAnimTable gUnknown_83A5158:: @ 83A5158 .incbin "baserom.gba", 0x3A5158, 0xB0 diff --git a/data/field_specials/unk_83F5F50.pal b/data/field_specials/unk_83F5F50.pal new file mode 100644 index 000000000..6528f9f75 --- /dev/null +++ b/data/field_specials/unk_83F5F50.pal @@ -0,0 +1,19 @@ +JASC-PAL +0100 +16 +0 0 0 +82 82 106 +123 123 123 +255 74 0 +255 213 131 +230 164 98 +197 115 74 +164 82 65 +255 255 180 +189 189 115 +82 82 106 +82 82 106 +82 82 106 +82 82 106 +82 82 106 +82 82 106 diff --git a/data/field_specials/unk_83F5F70.pal b/data/field_specials/unk_83F5F70.pal new file mode 100644 index 000000000..934306488 --- /dev/null +++ b/data/field_specials/unk_83F5F70.pal @@ -0,0 +1,19 @@ +JASC-PAL +0100 +16 +0 0 0 +82 82 106 +123 123 123 +255 74 0 +255 213 131 +230 164 98 +197 115 74 +164 82 65 +255 255 180 +189 189 115 +82 82 106 +82 82 106 +82 82 106 +82 82 106 +41 115 205 +82 82 106 diff --git a/data/field_specials/unk_83F5F90.pal b/data/field_specials/unk_83F5F90.pal new file mode 100644 index 000000000..624c69448 --- /dev/null +++ b/data/field_specials/unk_83F5F90.pal @@ -0,0 +1,19 @@ +JASC-PAL +0100 +16 +0 0 0 +82 82 106 +123 123 123 +255 74 0 +255 213 131 +230 164 98 +197 115 74 +164 82 65 +255 255 180 +189 189 115 +82 82 106 +82 82 106 +82 82 106 +41 115 205 +131 238 255 +0 41 156 diff --git a/data/field_specials/unk_83F5FB0.pal b/data/field_specials/unk_83F5FB0.pal new file mode 100644 index 000000000..fb3cdebd0 --- /dev/null +++ b/data/field_specials/unk_83F5FB0.pal @@ -0,0 +1,19 @@ +JASC-PAL +0100 +16 +0 0 0 +82 82 106 +123 123 123 +255 74 0 +255 213 131 +230 164 98 +197 115 74 +164 82 65 +255 255 180 +189 189 115 +82 82 106 +82 82 106 +41 115 205 +131 238 255 +82 172 230 +0 65 189 diff --git a/data/field_specials/unk_83F5FD0.pal b/data/field_specials/unk_83F5FD0.pal new file mode 100644 index 000000000..f2c6c78af --- /dev/null +++ b/data/field_specials/unk_83F5FD0.pal @@ -0,0 +1,19 @@ +JASC-PAL +0100 +16 +0 0 0 +82 82 106 +123 123 123 +255 74 0 +255 213 131 +230 164 98 +197 115 74 +164 82 65 +255 255 180 +189 189 115 +82 82 106 +41 115 205 +131 238 255 +82 172 230 +41 115 205 +41 115 205 diff --git a/data/field_specials/unk_83F5FF0.pal b/data/field_specials/unk_83F5FF0.pal new file mode 100644 index 000000000..3e2c5757a --- /dev/null +++ b/data/field_specials/unk_83F5FF0.pal @@ -0,0 +1,19 @@ +JASC-PAL +0100 +16 +0 0 0 +82 82 106 +123 123 123 +255 74 0 +255 213 131 +230 164 98 +197 115 74 +164 82 65 +255 255 180 +189 189 115 +41 115 205 +131 238 255 +82 172 230 +41 115 205 +0 65 189 +82 172 230 diff --git a/data/field_specials/unk_83F6010.pal b/data/field_specials/unk_83F6010.pal new file mode 100644 index 000000000..84e6e811a --- /dev/null +++ b/data/field_specials/unk_83F6010.pal @@ -0,0 +1,19 @@ +JASC-PAL +0100 +16 +0 0 0 +82 82 106 +123 123 123 +255 74 0 +255 213 131 +230 164 98 +197 115 74 +164 82 65 +255 255 180 +189 189 115 +131 238 255 +82 172 230 +41 115 205 +0 65 189 +0 41 156 +131 238 255 diff --git a/data/field_specials/unk_83F6030.pal b/data/field_specials/unk_83F6030.pal new file mode 100644 index 000000000..f49f8ef99 --- /dev/null +++ b/data/field_specials/unk_83F6030.pal @@ -0,0 +1,19 @@ +JASC-PAL +0100 +16 +0 0 0 +82 82 106 +123 123 123 +255 74 0 +255 213 131 +230 164 98 +197 115 74 +164 82 65 +255 255 180 +189 189 115 +82 172 230 +41 115 205 +0 65 189 +0 41 156 +82 82 106 +90 180 238 diff --git a/data/field_specials/unk_83F6050.pal b/data/field_specials/unk_83F6050.pal new file mode 100644 index 000000000..538ebf789 --- /dev/null +++ b/data/field_specials/unk_83F6050.pal @@ -0,0 +1,19 @@ +JASC-PAL +0100 +16 +0 0 0 +82 82 106 +123 123 123 +255 74 0 +255 213 131 +230 164 98 +197 115 74 +164 82 65 +255 255 180 +189 189 115 +41 115 205 +0 65 189 +0 41 156 +82 82 106 +82 82 106 +41 115 205 diff --git a/data/field_specials/unk_83F6070.pal b/data/field_specials/unk_83F6070.pal new file mode 100644 index 000000000..49b9d85b6 --- /dev/null +++ b/data/field_specials/unk_83F6070.pal @@ -0,0 +1,19 @@ +JASC-PAL +0100 +16 +0 0 0 +82 82 106 +123 123 123 +255 74 0 +255 213 131 +230 164 98 +197 115 74 +164 82 65 +255 255 180 +189 189 115 +0 65 189 +0 41 156 +82 82 106 +82 82 106 +82 82 106 +0 65 189 diff --git a/data/field_specials/unk_83F6090.pal b/data/field_specials/unk_83F6090.pal new file mode 100644 index 000000000..ff81da8b3 --- /dev/null +++ b/data/field_specials/unk_83F6090.pal @@ -0,0 +1,19 @@ +JASC-PAL +0100 +16 +0 0 0 +82 82 106 +123 123 123 +255 74 0 +255 213 131 +230 164 98 +197 115 74 +164 82 65 +255 255 180 +189 189 115 +0 41 156 +82 82 106 +82 82 106 +82 82 106 +82 82 106 +0 41 156 diff --git a/data/field_specials/unk_83F60B0.pal b/data/field_specials/unk_83F60B0.pal new file mode 100644 index 000000000..a0763ff47 --- /dev/null +++ b/data/field_specials/unk_83F60B0.pal @@ -0,0 +1,19 @@ +JASC-PAL +0100 +16 +0 0 0 +82 82 106 +123 123 123 +131 238 255 +255 213 131 +230 164 98 +197 115 74 +164 82 65 +172 172 98 +148 148 74 +82 82 106 +82 82 106 +82 82 106 +82 82 106 +82 82 106 +82 82 106 diff --git a/data/field_specials/unk_83F60D0.pal b/data/field_specials/unk_83F60D0.pal new file mode 100644 index 000000000..6528f9f75 --- /dev/null +++ b/data/field_specials/unk_83F60D0.pal @@ -0,0 +1,19 @@ +JASC-PAL +0100 +16 +0 0 0 +82 82 106 +123 123 123 +255 74 0 +255 213 131 +230 164 98 +197 115 74 +164 82 65 +255 255 180 +189 189 115 +82 82 106 +82 82 106 +82 82 106 +82 82 106 +82 82 106 +82 82 106 diff --git a/data/field_specials/unk_83F60F0.pal b/data/field_specials/unk_83F60F0.pal new file mode 100644 index 000000000..75dfaa19a --- /dev/null +++ b/data/field_specials/unk_83F60F0.pal @@ -0,0 +1,19 @@ +JASC-PAL +0100 +16 +0 0 0 +82 82 106 +123 123 123 +255 74 0 +255 213 131 +230 164 98 +197 115 74 +164 82 65 +255 255 180 +189 189 115 +82 82 106 +82 82 106 +82 82 106 +82 82 106 +82 172 230 +41 115 205 diff --git a/data/field_specials/unk_83F6110.pal b/data/field_specials/unk_83F6110.pal new file mode 100644 index 000000000..092544dec --- /dev/null +++ b/data/field_specials/unk_83F6110.pal @@ -0,0 +1,19 @@ +JASC-PAL +0100 +16 +0 0 0 +82 82 106 +123 123 123 +255 74 0 +255 213 131 +230 164 98 +197 115 74 +164 82 65 +255 255 180 +189 189 115 +82 82 106 +82 82 106 +82 172 230 +41 115 205 +131 238 255 +82 172 230 diff --git a/data/field_specials/unk_83F6130.pal b/data/field_specials/unk_83F6130.pal new file mode 100644 index 000000000..3b93965ad --- /dev/null +++ b/data/field_specials/unk_83F6130.pal @@ -0,0 +1,19 @@ +JASC-PAL +0100 +16 +0 0 0 +82 82 106 +123 123 123 +255 74 0 +255 213 131 +230 164 98 +197 115 74 +164 82 65 +255 255 180 +189 189 115 +82 172 230 +41 115 205 +131 238 255 +82 172 230 +82 172 230 +41 115 205 diff --git a/data/field_specials/unk_83F6150.pal b/data/field_specials/unk_83F6150.pal new file mode 100644 index 000000000..be23edc23 --- /dev/null +++ b/data/field_specials/unk_83F6150.pal @@ -0,0 +1,19 @@ +JASC-PAL +0100 +16 +0 0 0 +82 82 106 +123 123 123 +255 74 0 +255 213 131 +230 164 98 +197 115 74 +164 82 65 +255 255 180 +189 189 115 +131 238 255 +82 172 230 +82 172 230 +41 115 205 +41 115 205 +0 65 189 diff --git a/data/field_specials/unk_83F6170.pal b/data/field_specials/unk_83F6170.pal new file mode 100644 index 000000000..788d0bd65 --- /dev/null +++ b/data/field_specials/unk_83F6170.pal @@ -0,0 +1,19 @@ +JASC-PAL +0100 +16 +0 0 0 +82 82 106 +123 123 123 +255 74 0 +255 213 131 +230 164 98 +197 115 74 +164 82 65 +255 255 180 +189 189 115 +82 172 230 +41 115 205 +41 115 205 +0 65 189 +0 65 189 +82 82 106 diff --git a/data/field_specials/unk_83F6190.pal b/data/field_specials/unk_83F6190.pal new file mode 100644 index 000000000..8ca385f0d --- /dev/null +++ b/data/field_specials/unk_83F6190.pal @@ -0,0 +1,19 @@ +JASC-PAL +0100 +16 +0 0 0 +82 82 106 +123 123 123 +255 74 0 +255 213 131 +230 164 98 +197 115 74 +164 82 65 +255 255 180 +189 189 115 +41 115 205 +0 65 189 +0 65 189 +82 82 106 +82 82 106 +82 82 106 diff --git a/data/field_specials/unk_83F61B0.pal b/data/field_specials/unk_83F61B0.pal new file mode 100644 index 000000000..63fe8e97e --- /dev/null +++ b/data/field_specials/unk_83F61B0.pal @@ -0,0 +1,19 @@ +JASC-PAL +0100 +16 +0 0 0 +82 82 106 +123 123 123 +255 74 0 +255 213 131 +230 164 98 +197 115 74 +164 82 65 +255 255 180 +189 189 115 +0 65 189 +82 82 106 +82 82 106 +82 82 106 +82 82 106 +82 82 106 diff --git a/data/field_specials/unk_83F61D0.pal b/data/field_specials/unk_83F61D0.pal new file mode 100644 index 000000000..a0763ff47 --- /dev/null +++ b/data/field_specials/unk_83F61D0.pal @@ -0,0 +1,19 @@ +JASC-PAL +0100 +16 +0 0 0 +82 82 106 +123 123 123 +131 238 255 +255 213 131 +230 164 98 +197 115 74 +164 82 65 +172 172 98 +148 148 74 +82 82 106 +82 82 106 +82 82 106 +82 82 106 +82 82 106 +82 82 106 diff --git a/data/field_specials/unk_83F6206.pal b/data/field_specials/unk_83F6206.pal new file mode 100644 index 000000000..c20bacb57 --- /dev/null +++ b/data/field_specials/unk_83F6206.pal @@ -0,0 +1,19 @@ +JASC-PAL +0100 +16 +106 156 197 +32 32 32 +82 82 82 +139 139 139 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 diff --git a/data/field_specials/unk_83F6226.pal b/data/field_specials/unk_83F6226.pal new file mode 100644 index 000000000..2c106a4ae --- /dev/null +++ b/data/field_specials/unk_83F6226.pal @@ -0,0 +1,19 @@ +JASC-PAL +0100 +16 +106 156 197 +41 32 32 +82 82 82 +139 139 139 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 diff --git a/data/field_specials/unk_83F6246.pal b/data/field_specials/unk_83F6246.pal new file mode 100644 index 000000000..38fe7d084 --- /dev/null +++ b/data/field_specials/unk_83F6246.pal @@ -0,0 +1,19 @@ +JASC-PAL +0100 +16 +0 0 0 +49 32 32 +90 82 82 +148 148 139 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 diff --git a/data/field_specials/unk_83F6266.pal b/data/field_specials/unk_83F6266.pal new file mode 100644 index 000000000..7b7fb7c44 --- /dev/null +++ b/data/field_specials/unk_83F6266.pal @@ -0,0 +1,19 @@ +JASC-PAL +0100 +16 +0 0 0 +65 32 32 +115 82 82 +156 148 139 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 diff --git a/data/field_specials/unk_83F6286.pal b/data/field_specials/unk_83F6286.pal new file mode 100644 index 000000000..4eda607b7 --- /dev/null +++ b/data/field_specials/unk_83F6286.pal @@ -0,0 +1,19 @@ +JASC-PAL +0100 +16 +0 0 0 +74 32 32 +123 82 82 +164 156 139 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 diff --git a/data/field_specials/unk_83F62A6.pal b/data/field_specials/unk_83F62A6.pal new file mode 100644 index 000000000..a92bc65fd --- /dev/null +++ b/data/field_specials/unk_83F62A6.pal @@ -0,0 +1,19 @@ +JASC-PAL +0100 +16 +0 0 0 +98 32 32 +139 82 82 +172 156 139 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 diff --git a/data/field_specials/unk_83F62C6.pal b/data/field_specials/unk_83F62C6.pal new file mode 100644 index 000000000..0de8519c6 --- /dev/null +++ b/data/field_specials/unk_83F62C6.pal @@ -0,0 +1,19 @@ +JASC-PAL +0100 +16 +0 0 0 +98 32 32 +148 82 82 +180 164 139 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 diff --git a/data/field_specials/unk_83F62E6.pal b/data/field_specials/unk_83F62E6.pal new file mode 100644 index 000000000..ae67047d4 --- /dev/null +++ b/data/field_specials/unk_83F62E6.pal @@ -0,0 +1,19 @@ +JASC-PAL +0100 +16 +0 0 0 +106 32 32 +156 82 82 +189 164 139 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 diff --git a/data/field_specials/unk_83F6306.pal b/data/field_specials/unk_83F6306.pal new file mode 100644 index 000000000..27cf345e4 --- /dev/null +++ b/data/field_specials/unk_83F6306.pal @@ -0,0 +1,19 @@ +JASC-PAL +0100 +16 +0 0 0 +123 32 32 +172 82 82 +197 172 148 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 diff --git a/data/field_specials/unk_83F6326.pal b/data/field_specials/unk_83F6326.pal new file mode 100644 index 000000000..fcca0b4de --- /dev/null +++ b/data/field_specials/unk_83F6326.pal @@ -0,0 +1,19 @@ +JASC-PAL +0100 +16 +0 0 0 +131 32 32 +180 82 82 +205 172 148 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 diff --git a/data/field_specials/unk_83F6346.pal b/data/field_specials/unk_83F6346.pal new file mode 100644 index 000000000..6c7540611 --- /dev/null +++ b/data/field_specials/unk_83F6346.pal @@ -0,0 +1,19 @@ +JASC-PAL +0100 +16 +106 156 197 +205 32 32 +255 82 82 +255 205 156 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 diff --git a/data/graphics.s b/data/graphics.s index 379411a67..93c5b6614 100644 --- a/data/graphics.s +++ b/data/graphics.s @@ -11,18 +11,18 @@ gFile_graphics_interface_menu_map_tilemap:: @ 8D0051C .incbin "graphics/interface/menu_map.bin.lz" .align 2 -gUnknown_8D00748:: @ 8D00748 +gMonFrontPic_CircledQuestionMark:: @ 8D00748 .incbin "baserom.gba", 0xD00748, 0x244 -gUnknown_8D0098C:: @ 8D0098C +gMonBackPic_CircledQuestionMark:: @ 8D0098C .incbin "baserom.gba", 0xD0098C, 0x244 .align 2 -gFile_graphics_pokemon_palettes_circled_question_mark_palette:: @ 8D00BD0 +gMonPalette_CircledQuestionMark:: @ 8D00BD0 .incbin "graphics/pokemon/question_mark/circled/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_palettes_circled_question_mark_shiny_palette:: @ 8D00BE8 +gMonShinyPalette_CircledQuestionMark:: @ 8D00BE8 .incbin "graphics/pokemon/question_mark/circled/shiny.gbapal.lz" .align 2 @@ -1063,14 +1063,18 @@ gFile_graphics_unused_basic_frame_tilemap:: @ 8D11A78 .align 2 gBattleInterface_BallStatusBarPal:: @ 8D11B84 - .incbin "baserom.gba", 0xD11B84, 0x20 + .incbin "graphics/battle_interface/ball_status_bar.gbapal" gBattleInterface_BallDisplayPal:: @ 8D11BA4 - .incbin "baserom.gba", 0xD11BA4, 0x20 + .incbin "graphics/battle_interface/ball_display.gbapal" gUnknown_8D11BC4:: @ 8D11BC4 - .incbin "baserom.gba", 0xD11BC4, 0xF00 - + .incbin "baserom.gba", 0xD11BC4, 0x840 + +gUnknown_8D12404:: + .incbin "graphics/battle_interface/ball_display.4bpp" + .incbin "baserom.gba", 0xD12484, 0x640 + .align 2 gFile_graphics_battle_interface_unused_window3_sheet:: @ 8D12AC4 .incbin "graphics/battle_interface/unused_window3.4bpp.lz" @@ -2589,10860 +2593,10858 @@ gFile_graphics_battle_anims_sprites_257_palette:: @ 8D2FB94 .align 2 gUnknown_8D2FBB4:: @ 8D2FBB4 - .incbin "baserom.gba", 0xD2FBB4, 0x20 + .incbin "graphics/interface/unk_8D2FBB4.gbapal" .align 2 -gFile_graphics_pokemon_front_pics_bulbasaur_still_front_pic:: @ 8D2FBD4 +gMonFrontPic_Bulbasaur:: @ 8D2FBD4 .incbin "graphics/pokemon/bulbasaur/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_bulbasaur_palette:: @ 8D2FE78 +gMonPalette_Bulbasaur:: @ 8D2FE78 .incbin "graphics/pokemon/bulbasaur/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_bulbasaur_back_pic:: @ 8D2FEA0 +gMonBackPic_Bulbasaur:: @ 8D2FEA0 .incbin "graphics/pokemon/bulbasaur/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_bulbasaur_shiny_palette:: @ 8D30164 +gMonShinyPalette_Bulbasaur:: @ 8D30164 .incbin "graphics/pokemon/bulbasaur/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_bulbasaur_icon:: @ 8D3018C +gMonIcon_Bulbasaur:: @ 8D3018C .incbin "graphics/pokemon/bulbasaur/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_bulbasaur_footprint:: @ 8D3058C +gMonFootprint_Bulbasaur:: @ 8D3058C .incbin "graphics/pokemon/bulbasaur/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_ivysaur_still_front_pic:: @ 8D305AC +gMonFrontPic_Ivysaur:: @ 8D305AC .incbin "graphics/pokemon/ivysaur/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_ivysaur_palette:: @ 8D308E8 +gMonPalette_Ivysaur:: @ 8D308E8 .incbin "graphics/pokemon/ivysaur/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_ivysaur_back_pic:: @ 8D30910 +gMonBackPic_Ivysaur:: @ 8D30910 .incbin "graphics/pokemon/ivysaur/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_ivysaur_shiny_palette:: @ 8D30C64 +gMonShinyPalette_Ivysaur:: @ 8D30C64 .incbin "graphics/pokemon/ivysaur/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_ivysaur_icon:: @ 8D30C8C +gMonIcon_Ivysaur:: @ 8D30C8C .incbin "graphics/pokemon/ivysaur/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_ivysaur_footprint:: @ 8D3108C +gMonFootprint_Ivysaur:: @ 8D3108C .incbin "graphics/pokemon/ivysaur/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_venusaur_still_front_pic:: @ 8D310AC +gMonFrontPic_Venusaur:: @ 8D310AC .incbin "graphics/pokemon/venusaur/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_venusaur_palette:: @ 8D315EC +gMonPalette_Venusaur:: @ 8D315EC .incbin "graphics/pokemon/venusaur/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_venusaur_back_pic:: @ 8D31614 +gMonBackPic_Venusaur:: @ 8D31614 .incbin "graphics/pokemon/venusaur/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_venusaur_shiny_palette:: @ 8D31ADC +gMonShinyPalette_Venusaur:: @ 8D31ADC .incbin "graphics/pokemon/venusaur/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_venusaur_icon:: @ 8D31B04 +gMonIcon_Venusaur:: @ 8D31B04 .incbin "graphics/pokemon/venusaur/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_venusaur_footprint:: @ 8D31F04 +gMonFootprint_Venusaur:: @ 8D31F04 .incbin "graphics/pokemon/venusaur/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_charmander_still_front_pic:: @ 8D31F24 +gMonFrontPic_Charmander:: @ 8D31F24 .incbin "graphics/pokemon/charmander/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_charmander_palette:: @ 8D321C4 +gMonPalette_Charmander:: @ 8D321C4 .incbin "graphics/pokemon/charmander/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_charmander_back_pic:: @ 8D321EC +gMonBackPic_Charmander:: @ 8D321EC .incbin "graphics/pokemon/charmander/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_charmander_shiny_palette:: @ 8D32470 +gMonShinyPalette_Charmander:: @ 8D32470 .incbin "graphics/pokemon/charmander/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_charmander_icon:: @ 8D32498 +gMonIcon_Charmander:: @ 8D32498 .incbin "graphics/pokemon/charmander/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_charmander_footprint:: @ 8D32898 +gMonFootprint_Charmander:: @ 8D32898 .incbin "graphics/pokemon/charmander/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_charmeleon_still_front_pic:: @ 8D328B8 +gMonFrontPic_Charmeleon:: @ 8D328B8 .incbin "graphics/pokemon/charmeleon/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_charmeleon_palette:: @ 8D32C64 +gMonPalette_Charmeleon:: @ 8D32C64 .incbin "graphics/pokemon/charmeleon/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_charmeleon_back_pic:: @ 8D32C8C +gMonBackPic_Charmeleon:: @ 8D32C8C .incbin "graphics/pokemon/charmeleon/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_charmeleon_shiny_palette:: @ 8D32F80 +gMonShinyPalette_Charmeleon:: @ 8D32F80 .incbin "graphics/pokemon/charmeleon/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_charmeleon_icon:: @ 8D32FA8 +gMonIcon_Charmeleon:: @ 8D32FA8 .incbin "graphics/pokemon/charmeleon/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_charmeleon_footprint:: @ 8D333A8 +gMonFootprint_Charmeleon:: @ 8D333A8 .incbin "graphics/pokemon/charmeleon/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_charizard_still_front_pic:: @ 8D333C8 +gMonFrontPic_Charizard:: @ 8D333C8 .incbin "graphics/pokemon/charizard/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_charizard_palette:: @ 8D338C4 +gMonPalette_Charizard:: @ 8D338C4 .incbin "graphics/pokemon/charizard/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_charizard_back_pic:: @ 8D338EC +gMonBackPic_Charizard:: @ 8D338EC .incbin "graphics/pokemon/charizard/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_charizard_shiny_palette:: @ 8D33CF8 +gMonShinyPalette_Charizard:: @ 8D33CF8 .incbin "graphics/pokemon/charizard/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_charizard_icon:: @ 8D33D20 +gMonIcon_Charizard:: @ 8D33D20 .incbin "graphics/pokemon/charizard/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_charizard_footprint:: @ 8D34120 +gMonFootprint_Charizard:: @ 8D34120 .incbin "graphics/pokemon/charizard/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_squirtle_still_front_pic:: @ 8D34140 +gMonFrontPic_Squirtle:: @ 8D34140 .incbin "graphics/pokemon/squirtle/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_squirtle_palette:: @ 8D343DC +gMonPalette_Squirtle:: @ 8D343DC .incbin "graphics/pokemon/squirtle/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_squirtle_back_pic:: @ 8D34404 +gMonBackPic_Squirtle:: @ 8D34404 .incbin "graphics/pokemon/squirtle/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_squirtle_shiny_palette:: @ 8D3468C +gMonShinyPalette_Squirtle:: @ 8D3468C .incbin "graphics/pokemon/squirtle/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_squirtle_icon:: @ 8D346B4 +gMonIcon_Squirtle:: @ 8D346B4 .incbin "graphics/pokemon/squirtle/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_squirtle_footprint:: @ 8D34AB4 +gMonFootprint_Squirtle:: @ 8D34AB4 .incbin "graphics/pokemon/squirtle/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_wartortle_still_front_pic:: @ 8D34AD4 +gMonFrontPic_Wartortle:: @ 8D34AD4 .incbin "graphics/pokemon/wartortle/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_wartortle_palette:: @ 8D34E80 +gMonPalette_Wartortle:: @ 8D34E80 .incbin "graphics/pokemon/wartortle/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_wartortle_back_pic:: @ 8D34EA8 +gMonBackPic_Wartortle:: @ 8D34EA8 .incbin "graphics/pokemon/wartortle/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_wartortle_shiny_palette:: @ 8D351F0 +gMonShinyPalette_Wartortle:: @ 8D351F0 .incbin "graphics/pokemon/wartortle/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_wartortle_icon:: @ 8D35218 +gMonIcon_Wartortle:: @ 8D35218 .incbin "graphics/pokemon/wartortle/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_wartortle_footprint:: @ 8D35618 +gMonFootprint_Wartortle:: @ 8D35618 .incbin "graphics/pokemon/wartortle/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_blastoise_still_front_pic:: @ 8D35638 +gMonFrontPic_Blastoise:: @ 8D35638 .incbin "graphics/pokemon/blastoise/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_blastoise_palette:: @ 8D35B3C +gMonPalette_Blastoise:: @ 8D35B3C .incbin "graphics/pokemon/blastoise/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_blastoise_back_pic:: @ 8D35B64 +gMonBackPic_Blastoise:: @ 8D35B64 .incbin "graphics/pokemon/blastoise/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_blastoise_shiny_palette:: @ 8D35F78 +gMonShinyPalette_Blastoise:: @ 8D35F78 .incbin "graphics/pokemon/blastoise/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_blastoise_icon:: @ 8D35FA0 +gMonIcon_Blastoise:: @ 8D35FA0 .incbin "graphics/pokemon/blastoise/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_blastoise_footprint:: @ 8D363A0 +gMonFootprint_Blastoise:: @ 8D363A0 .incbin "graphics/pokemon/blastoise/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_caterpie_still_front_pic:: @ 8D363C0 +gMonFrontPic_Caterpie:: @ 8D363C0 .incbin "graphics/pokemon/caterpie/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_caterpie_palette:: @ 8D36618 +gMonPalette_Caterpie:: @ 8D36618 .incbin "graphics/pokemon/caterpie/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_caterpie_back_pic:: @ 8D36640 +gMonBackPic_Caterpie:: @ 8D36640 .incbin "graphics/pokemon/caterpie/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_caterpie_shiny_palette:: @ 8D368C8 +gMonShinyPalette_Caterpie:: @ 8D368C8 .incbin "graphics/pokemon/caterpie/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_caterpie_icon:: @ 8D368F0 +gMonIcon_Caterpie:: @ 8D368F0 .incbin "graphics/pokemon/caterpie/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_caterpie_footprint:: @ 8D36CF0 +gMonFootprint_Caterpie:: @ 8D36CF0 .incbin "graphics/pokemon/caterpie/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_metapod_still_front_pic:: @ 8D36D10 +gMonFrontPic_Metapod:: @ 8D36D10 .incbin "graphics/pokemon/metapod/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_metapod_palette:: @ 8D36F2C +gMonPalette_Metapod:: @ 8D36F2C .incbin "graphics/pokemon/metapod/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_metapod_back_pic:: @ 8D36F4C +gMonBackPic_Metapod:: @ 8D36F4C .incbin "graphics/pokemon/metapod/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_metapod_shiny_palette:: @ 8D37168 +gMonShinyPalette_Metapod:: @ 8D37168 .incbin "graphics/pokemon/metapod/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_metapod_icon:: @ 8D37188 +gMonIcon_Metapod:: @ 8D37188 .incbin "graphics/pokemon/metapod/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_metapod_footprint:: @ 8D37588 +gMonFootprint_Metapod:: @ 8D37588 .incbin "graphics/pokemon/metapod/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_butterfree_still_front_pic:: @ 8D375A8 +gMonFrontPic_Butterfree:: @ 8D375A8 .incbin "graphics/pokemon/butterfree/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_butterfree_palette:: @ 8D37920 +gMonPalette_Butterfree:: @ 8D37920 .incbin "graphics/pokemon/butterfree/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_butterfree_back_pic:: @ 8D37948 +gMonBackPic_Butterfree:: @ 8D37948 .incbin "graphics/pokemon/butterfree/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_butterfree_shiny_palette:: @ 8D37D4C +gMonShinyPalette_Butterfree:: @ 8D37D4C .incbin "graphics/pokemon/butterfree/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_butterfree_icon:: @ 8D37D74 +gMonIcon_Butterfree:: @ 8D37D74 .incbin "graphics/pokemon/butterfree/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_butterfree_footprint:: @ 8D38174 +gMonFootprint_Butterfree:: @ 8D38174 .incbin "graphics/pokemon/butterfree/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_weedle_still_front_pic:: @ 8D38194 +gMonFrontPic_Weedle:: @ 8D38194 .incbin "graphics/pokemon/weedle/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_weedle_palette:: @ 8D383D0 +gMonPalette_Weedle:: @ 8D383D0 .incbin "graphics/pokemon/weedle/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_weedle_back_pic:: @ 8D383F8 +gMonBackPic_Weedle:: @ 8D383F8 .incbin "graphics/pokemon/weedle/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_weedle_shiny_palette:: @ 8D38660 +gMonShinyPalette_Weedle:: @ 8D38660 .incbin "graphics/pokemon/weedle/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_weedle_icon:: @ 8D38688 +gMonIcon_Weedle:: @ 8D38688 .incbin "graphics/pokemon/weedle/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_weedle_footprint:: @ 8D38A88 +gMonFootprint_Weedle:: @ 8D38A88 .incbin "graphics/pokemon/weedle/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_kakuna_still_front_pic:: @ 8D38AA8 +gMonFrontPic_Kakuna:: @ 8D38AA8 .incbin "graphics/pokemon/kakuna/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_kakuna_palette:: @ 8D38CE8 +gMonPalette_Kakuna:: @ 8D38CE8 .incbin "graphics/pokemon/kakuna/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_kakuna_back_pic:: @ 8D38D0C +gMonBackPic_Kakuna:: @ 8D38D0C .incbin "graphics/pokemon/kakuna/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_kakuna_shiny_palette:: @ 8D38F90 +gMonShinyPalette_Kakuna:: @ 8D38F90 .incbin "graphics/pokemon/kakuna/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_kakuna_icon:: @ 8D38FB4 +gMonIcon_Kakuna:: @ 8D38FB4 .incbin "graphics/pokemon/kakuna/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_kakuna_footprint:: @ 8D393B4 +gMonFootprint_Kakuna:: @ 8D393B4 .incbin "graphics/pokemon/kakuna/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_beedrill_still_front_pic:: @ 8D393D4 +gMonFrontPic_Beedrill:: @ 8D393D4 .incbin "graphics/pokemon/beedrill/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_beedrill_palette:: @ 8D397F4 +gMonPalette_Beedrill:: @ 8D397F4 .incbin "graphics/pokemon/beedrill/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_beedrill_back_pic:: @ 8D3981C +gMonBackPic_Beedrill:: @ 8D3981C .incbin "graphics/pokemon/beedrill/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_beedrill_shiny_palette:: @ 8D39B90 +gMonShinyPalette_Beedrill:: @ 8D39B90 .incbin "graphics/pokemon/beedrill/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_beedrill_icon:: @ 8D39BB8 +gMonIcon_Beedrill:: @ 8D39BB8 .incbin "graphics/pokemon/beedrill/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_beedrill_footprint:: @ 8D39FB8 +gMonFootprint_Beedrill:: @ 8D39FB8 .incbin "graphics/pokemon/beedrill/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_pidgey_still_front_pic:: @ 8D39FD8 +gMonFrontPic_Pidgey:: @ 8D39FD8 .incbin "graphics/pokemon/pidgey/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_pidgey_palette:: @ 8D3A250 +gMonPalette_Pidgey:: @ 8D3A250 .incbin "graphics/pokemon/pidgey/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_pidgey_back_pic:: @ 8D3A278 +gMonBackPic_Pidgey:: @ 8D3A278 .incbin "graphics/pokemon/pidgey/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_pidgey_shiny_palette:: @ 8D3A5CC +gMonShinyPalette_Pidgey:: @ 8D3A5CC .incbin "graphics/pokemon/pidgey/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_pidgey_icon:: @ 8D3A5F4 +gMonIcon_Pidgey:: @ 8D3A5F4 .incbin "graphics/pokemon/pidgey/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_pidgey_footprint:: @ 8D3A9F4 +gMonFootprint_Pidgey:: @ 8D3A9F4 .incbin "graphics/pokemon/pidgey/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_pidgeotto_still_front_pic:: @ 8D3AA14 +gMonFrontPic_Pidgeotto:: @ 8D3AA14 .incbin "graphics/pokemon/pidgeotto/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_pidgeotto_palette:: @ 8D3ADAC +gMonPalette_Pidgeotto:: @ 8D3ADAC .incbin "graphics/pokemon/pidgeotto/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_pidgeotto_back_pic:: @ 8D3ADD4 +gMonBackPic_Pidgeotto:: @ 8D3ADD4 .incbin "graphics/pokemon/pidgeotto/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_pidgeotto_shiny_palette:: @ 8D3B120 +gMonShinyPalette_Pidgeotto:: @ 8D3B120 .incbin "graphics/pokemon/pidgeotto/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_pidgeotto_icon:: @ 8D3B148 +gMonIcon_Pidgeotto:: @ 8D3B148 .incbin "graphics/pokemon/pidgeotto/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_pidgeotto_footprint:: @ 8D3B548 +gMonFootprint_Pidgeotto:: @ 8D3B548 .incbin "graphics/pokemon/pidgeotto/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_pidgeot_still_front_pic:: @ 8D3B568 +gMonFrontPic_Pidgeot:: @ 8D3B568 .incbin "graphics/pokemon/pidgeot/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_pidgeot_palette:: @ 8D3BA54 +gMonPalette_Pidgeot:: @ 8D3BA54 .incbin "graphics/pokemon/pidgeot/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_pidgeot_back_pic:: @ 8D3BA7C +gMonBackPic_Pidgeot:: @ 8D3BA7C .incbin "graphics/pokemon/pidgeot/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_pidgeot_shiny_palette:: @ 8D3BE64 +gMonShinyPalette_Pidgeot:: @ 8D3BE64 .incbin "graphics/pokemon/pidgeot/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_pidgeot_icon:: @ 8D3BE8C +gMonIcon_Pidgeot:: @ 8D3BE8C .incbin "graphics/pokemon/pidgeot/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_pidgeot_footprint:: @ 8D3C28C +gMonFootprint_Pidgeot:: @ 8D3C28C .incbin "graphics/pokemon/pidgeot/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_rattata_still_front_pic:: @ 8D3C2AC +gMonFrontPic_Rattata:: @ 8D3C2AC .incbin "graphics/pokemon/rattata/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_rattata_palette:: @ 8D3C504 +gMonPalette_Rattata:: @ 8D3C504 .incbin "graphics/pokemon/rattata/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_rattata_back_pic:: @ 8D3C52C +gMonBackPic_Rattata:: @ 8D3C52C .incbin "graphics/pokemon/rattata/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_rattata_shiny_palette:: @ 8D3C7E4 +gMonShinyPalette_Rattata:: @ 8D3C7E4 .incbin "graphics/pokemon/rattata/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_rattata_icon:: @ 8D3C80C +gMonIcon_Rattata:: @ 8D3C80C .incbin "graphics/pokemon/rattata/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_rattata_footprint:: @ 8D3CC0C +gMonFootprint_Rattata:: @ 8D3CC0C .incbin "graphics/pokemon/rattata/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_raticate_still_front_pic:: @ 8D3CC2C +gMonFrontPic_Raticate:: @ 8D3CC2C .incbin "graphics/pokemon/raticate/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_raticate_palette:: @ 8D3CFBC +gMonPalette_Raticate:: @ 8D3CFBC .incbin "graphics/pokemon/raticate/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_raticate_back_pic:: @ 8D3CFE4 +gMonBackPic_Raticate:: @ 8D3CFE4 .incbin "graphics/pokemon/raticate/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_raticate_shiny_palette:: @ 8D3D2F4 +gMonShinyPalette_Raticate:: @ 8D3D2F4 .incbin "graphics/pokemon/raticate/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_raticate_icon:: @ 8D3D31C +gMonIcon_Raticate:: @ 8D3D31C .incbin "graphics/pokemon/raticate/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_raticate_footprint:: @ 8D3D71C +gMonFootprint_Raticate:: @ 8D3D71C .incbin "graphics/pokemon/raticate/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_spearow_still_front_pic:: @ 8D3D73C +gMonFrontPic_Spearow:: @ 8D3D73C .incbin "graphics/pokemon/spearow/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_spearow_palette:: @ 8D3D9FC +gMonPalette_Spearow:: @ 8D3D9FC .incbin "graphics/pokemon/spearow/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_spearow_back_pic:: @ 8D3DA24 +gMonBackPic_Spearow:: @ 8D3DA24 .incbin "graphics/pokemon/spearow/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_spearow_shiny_palette:: @ 8D3DD00 +gMonShinyPalette_Spearow:: @ 8D3DD00 .incbin "graphics/pokemon/spearow/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_spearow_icon:: @ 8D3DD28 +gMonIcon_Spearow:: @ 8D3DD28 .incbin "graphics/pokemon/spearow/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_spearow_footprint:: @ 8D3E128 +gMonFootprint_Spearow:: @ 8D3E128 .incbin "graphics/pokemon/spearow/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_fearow_still_front_pic:: @ 8D3E148 +gMonFrontPic_Fearow:: @ 8D3E148 .incbin "graphics/pokemon/fearow/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_fearow_palette:: @ 8D3E604 +gMonPalette_Fearow:: @ 8D3E604 .incbin "graphics/pokemon/fearow/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_fearow_back_pic:: @ 8D3E62C +gMonBackPic_Fearow:: @ 8D3E62C .incbin "graphics/pokemon/fearow/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_fearow_shiny_palette:: @ 8D3E924 +gMonShinyPalette_Fearow:: @ 8D3E924 .incbin "graphics/pokemon/fearow/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_fearow_icon:: @ 8D3E94C +gMonIcon_Fearow:: @ 8D3E94C .incbin "graphics/pokemon/fearow/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_fearow_footprint:: @ 8D3ED4C +gMonFootprint_Fearow:: @ 8D3ED4C .incbin "graphics/pokemon/fearow/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_ekans_still_front_pic:: @ 8D3ED6C +gMonFrontPic_Ekans:: @ 8D3ED6C .incbin "graphics/pokemon/ekans/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_ekans_palette:: @ 8D3F034 +gMonPalette_Ekans:: @ 8D3F034 .incbin "graphics/pokemon/ekans/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_ekans_back_pic:: @ 8D3F05C +gMonBackPic_Ekans:: @ 8D3F05C .incbin "graphics/pokemon/ekans/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_ekans_shiny_palette:: @ 8D3F34C +gMonShinyPalette_Ekans:: @ 8D3F34C .incbin "graphics/pokemon/ekans/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_ekans_icon:: @ 8D3F374 +gMonIcon_Ekans:: @ 8D3F374 .incbin "graphics/pokemon/ekans/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_ekans_footprint:: @ 8D3F774 +gMonFootprint_Ekans:: @ 8D3F774 .incbin "graphics/pokemon/ekans/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_arbok_still_front_pic:: @ 8D3F794 +gMonFrontPic_Arbok:: @ 8D3F794 .incbin "graphics/pokemon/arbok/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_arbok_palette:: @ 8D3FC08 +gMonPalette_Arbok:: @ 8D3FC08 .incbin "graphics/pokemon/arbok/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_arbok_back_pic:: @ 8D3FC30 +gMonBackPic_Arbok:: @ 8D3FC30 .incbin "graphics/pokemon/arbok/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_arbok_shiny_palette:: @ 8D3FEB8 +gMonShinyPalette_Arbok:: @ 8D3FEB8 .incbin "graphics/pokemon/arbok/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_arbok_icon:: @ 8D3FEE0 +gMonIcon_Arbok:: @ 8D3FEE0 .incbin "graphics/pokemon/arbok/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_arbok_footprint:: @ 8D402E0 +gMonFootprint_Arbok:: @ 8D402E0 .incbin "graphics/pokemon/arbok/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_pikachu_still_front_pic:: @ 8D40300 +gMonFrontPic_Pikachu:: @ 8D40300 .incbin "graphics/pokemon/pikachu/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_pikachu_palette:: @ 8D405D0 +gMonPalette_Pikachu:: @ 8D405D0 .incbin "graphics/pokemon/pikachu/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_pikachu_back_pic:: @ 8D405F8 +gMonBackPic_Pikachu:: @ 8D405F8 .incbin "graphics/pokemon/pikachu/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_pikachu_shiny_palette:: @ 8D408D0 +gMonShinyPalette_Pikachu:: @ 8D408D0 .incbin "graphics/pokemon/pikachu/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_pikachu_icon:: @ 8D408F8 +gMonIcon_Pikachu:: @ 8D408F8 .incbin "graphics/pokemon/pikachu/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_pikachu_footprint:: @ 8D40CF8 +gMonFootprint_Pikachu:: @ 8D40CF8 .incbin "graphics/pokemon/pikachu/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_raichu_still_front_pic:: @ 8D40D18 +gMonFrontPic_Raichu:: @ 8D40D18 .incbin "graphics/pokemon/raichu/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_raichu_palette:: @ 8D41110 +gMonPalette_Raichu:: @ 8D41110 .incbin "graphics/pokemon/raichu/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_raichu_back_pic:: @ 8D41138 +gMonBackPic_Raichu:: @ 8D41138 .incbin "graphics/pokemon/raichu/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_raichu_shiny_palette:: @ 8D41458 +gMonShinyPalette_Raichu:: @ 8D41458 .incbin "graphics/pokemon/raichu/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_raichu_icon:: @ 8D41480 +gMonIcon_Raichu:: @ 8D41480 .incbin "graphics/pokemon/raichu/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_raichu_footprint:: @ 8D41880 +gMonFootprint_Raichu:: @ 8D41880 .incbin "graphics/pokemon/raichu/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_sandshrew_still_front_pic:: @ 8D418A0 +gMonFrontPic_Sandshrew:: @ 8D418A0 .incbin "graphics/pokemon/sandshrew/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_sandshrew_palette:: @ 8D41B7C +gMonPalette_Sandshrew:: @ 8D41B7C .incbin "graphics/pokemon/sandshrew/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_sandshrew_back_pic:: @ 8D41BA4 +gMonBackPic_Sandshrew:: @ 8D41BA4 .incbin "graphics/pokemon/sandshrew/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_sandshrew_shiny_palette:: @ 8D41ECC +gMonShinyPalette_Sandshrew:: @ 8D41ECC .incbin "graphics/pokemon/sandshrew/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_sandshrew_icon:: @ 8D41EF4 +gMonIcon_Sandshrew:: @ 8D41EF4 .incbin "graphics/pokemon/sandshrew/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_sandshrew_footprint:: @ 8D422F4 +gMonFootprint_Sandshrew:: @ 8D422F4 .incbin "graphics/pokemon/sandshrew/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_sandslash_still_front_pic:: @ 8D42314 +gMonFrontPic_Sandslash:: @ 8D42314 .incbin "graphics/pokemon/sandslash/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_sandslash_palette:: @ 8D4272C +gMonPalette_Sandslash:: @ 8D4272C .incbin "graphics/pokemon/sandslash/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_sandslash_back_pic:: @ 8D42754 +gMonBackPic_Sandslash:: @ 8D42754 .incbin "graphics/pokemon/sandslash/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_sandslash_shiny_palette:: @ 8D42B70 +gMonShinyPalette_Sandslash:: @ 8D42B70 .incbin "graphics/pokemon/sandslash/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_sandslash_icon:: @ 8D42B98 +gMonIcon_Sandslash:: @ 8D42B98 .incbin "graphics/pokemon/sandslash/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_sandslash_footprint:: @ 8D42F98 +gMonFootprint_Sandslash:: @ 8D42F98 .incbin "graphics/pokemon/sandslash/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_nidoran_f_still_front_pic:: @ 8D42FB8 +gMonFrontPic_NidoranF:: @ 8D42FB8 .incbin "graphics/pokemon/nidoran_f/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_nidoran_f_palette:: @ 8D4321C +gMonPalette_NidoranF:: @ 8D4321C .incbin "graphics/pokemon/nidoran_f/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_nidoran_f_back_pic:: @ 8D43244 +gMonBackPic_NidoranF:: @ 8D43244 .incbin "graphics/pokemon/nidoran_f/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_nidoran_f_shiny_palette:: @ 8D43524 +gMonShinyPalette_NidoranF:: @ 8D43524 .incbin "graphics/pokemon/nidoran_f/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_nidoran_f_icon:: @ 8D4354C +gMonIcon_NidoranF:: @ 8D4354C .incbin "graphics/pokemon/nidoran_f/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_nidoran_f_footprint:: @ 8D4394C +gMonFootprint_NidoranF:: @ 8D4394C .incbin "graphics/pokemon/nidoran_f/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_nidorina_still_front_pic:: @ 8D4396C +gMonFrontPic_Nidorina:: @ 8D4396C .incbin "graphics/pokemon/nidorina/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_nidorina_palette:: @ 8D43C8C +gMonPalette_Nidorina:: @ 8D43C8C .incbin "graphics/pokemon/nidorina/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_nidorina_back_pic:: @ 8D43CB4 +gMonBackPic_Nidorina:: @ 8D43CB4 .incbin "graphics/pokemon/nidorina/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_nidorina_shiny_palette:: @ 8D44048 +gMonShinyPalette_Nidorina:: @ 8D44048 .incbin "graphics/pokemon/nidorina/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_nidorina_icon:: @ 8D44070 +gMonIcon_Nidorina:: @ 8D44070 .incbin "graphics/pokemon/nidorina/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_nidorina_footprint:: @ 8D44470 +gMonFootprint_Nidorina:: @ 8D44470 .incbin "graphics/pokemon/nidorina/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_nidoqueen_still_front_pic:: @ 8D44490 +gMonFrontPic_Nidoqueen:: @ 8D44490 .incbin "graphics/pokemon/nidoqueen/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_nidoqueen_palette:: @ 8D448BC +gMonPalette_Nidoqueen:: @ 8D448BC .incbin "graphics/pokemon/nidoqueen/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_nidoqueen_back_pic:: @ 8D448E4 +gMonBackPic_Nidoqueen:: @ 8D448E4 .incbin "graphics/pokemon/nidoqueen/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_nidoqueen_shiny_palette:: @ 8D44CA8 +gMonShinyPalette_Nidoqueen:: @ 8D44CA8 .incbin "graphics/pokemon/nidoqueen/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_nidoqueen_icon:: @ 8D44CD0 +gMonIcon_Nidoqueen:: @ 8D44CD0 .incbin "graphics/pokemon/nidoqueen/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_nidoqueen_footprint:: @ 8D450D0 +gMonFootprint_Nidoqueen:: @ 8D450D0 .incbin "graphics/pokemon/nidoqueen/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_nidoran_m_still_front_pic:: @ 8D450F0 +gMonFrontPic_NidoranM:: @ 8D450F0 .incbin "graphics/pokemon/nidoran_m/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_nidoran_m_palette:: @ 8D4537C +gMonPalette_NidoranM:: @ 8D4537C .incbin "graphics/pokemon/nidoran_m/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_nidoran_m_back_pic:: @ 8D453A4 +gMonBackPic_NidoranM:: @ 8D453A4 .incbin "graphics/pokemon/nidoran_m/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_nidoran_m_shiny_palette:: @ 8D456D8 +gMonShinyPalette_NidoranM:: @ 8D456D8 .incbin "graphics/pokemon/nidoran_m/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_nidoran_m_icon:: @ 8D45700 +gMonIcon_NidoranM:: @ 8D45700 .incbin "graphics/pokemon/nidoran_m/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_nidoran_m_footprint:: @ 8D45B00 +gMonFootprint_NidoranM:: @ 8D45B00 .incbin "graphics/pokemon/nidoran_m/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_nidorino_still_front_pic:: @ 8D45B20 +gMonFrontPic_Nidorino:: @ 8D45B20 .incbin "graphics/pokemon/nidorino/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_nidorino_palette:: @ 8D45EA4 +gMonPalette_Nidorino:: @ 8D45EA4 .incbin "graphics/pokemon/nidorino/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_nidorino_back_pic:: @ 8D45ECC +gMonBackPic_Nidorino:: @ 8D45ECC .incbin "graphics/pokemon/nidorino/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_nidorino_shiny_palette:: @ 8D46288 +gMonShinyPalette_Nidorino:: @ 8D46288 .incbin "graphics/pokemon/nidorino/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_nidorino_icon:: @ 8D462B0 +gMonIcon_Nidorino:: @ 8D462B0 .incbin "graphics/pokemon/nidorino/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_nidorino_footprint:: @ 8D466B0 +gMonFootprint_Nidorino:: @ 8D466B0 .incbin "graphics/pokemon/nidorino/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_nidoking_still_front_pic:: @ 8D466D0 +gMonFrontPic_Nidoking:: @ 8D466D0 .incbin "graphics/pokemon/nidoking/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_nidoking_palette:: @ 8D46C0C +gMonPalette_Nidoking:: @ 8D46C0C .incbin "graphics/pokemon/nidoking/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_nidoking_back_pic:: @ 8D46C34 +gMonBackPic_Nidoking:: @ 8D46C34 .incbin "graphics/pokemon/nidoking/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_nidoking_shiny_palette:: @ 8D47070 +gMonShinyPalette_Nidoking:: @ 8D47070 .incbin "graphics/pokemon/nidoking/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_nidoking_icon:: @ 8D47098 +gMonIcon_Nidoking:: @ 8D47098 .incbin "graphics/pokemon/nidoking/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_nidoking_footprint:: @ 8D47498 +gMonFootprint_Nidoking:: @ 8D47498 .incbin "graphics/pokemon/nidoking/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_clefairy_still_front_pic:: @ 8D474B8 +gMonFrontPic_Clefairy:: @ 8D474B8 .incbin "graphics/pokemon/clefairy/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_clefairy_palette:: @ 8D47754 +gMonPalette_Clefairy:: @ 8D47754 .incbin "graphics/pokemon/clefairy/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_clefairy_back_pic:: @ 8D4777C +gMonBackPic_Clefairy:: @ 8D4777C .incbin "graphics/pokemon/clefairy/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_clefairy_shiny_palette:: @ 8D47A4C +gMonShinyPalette_Clefairy:: @ 8D47A4C .incbin "graphics/pokemon/clefairy/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_clefairy_icon:: @ 8D47A74 +gMonIcon_Clefairy:: @ 8D47A74 .incbin "graphics/pokemon/clefairy/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_clefairy_footprint:: @ 8D47E74 +gMonFootprint_Clefairy:: @ 8D47E74 .incbin "graphics/pokemon/clefairy/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_clefable_still_front_pic:: @ 8D47E94 +gMonFrontPic_Clefable:: @ 8D47E94 .incbin "graphics/pokemon/clefable/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_clefable_palette:: @ 8D481D4 +gMonPalette_Clefable:: @ 8D481D4 .incbin "graphics/pokemon/clefable/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_clefable_back_pic:: @ 8D481FC +gMonBackPic_Clefable:: @ 8D481FC .incbin "graphics/pokemon/clefable/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_clefable_shiny_palette:: @ 8D48534 +gMonShinyPalette_Clefable:: @ 8D48534 .incbin "graphics/pokemon/clefable/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_clefable_icon:: @ 8D4855C +gMonIcon_Clefable:: @ 8D4855C .incbin "graphics/pokemon/clefable/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_clefable_footprint:: @ 8D4895C +gMonFootprint_Clefable:: @ 8D4895C .incbin "graphics/pokemon/clefable/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_vulpix_still_front_pic:: @ 8D4897C +gMonFrontPic_Vulpix:: @ 8D4897C .incbin "graphics/pokemon/vulpix/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_vulpix_palette:: @ 8D48CA8 +gMonPalette_Vulpix:: @ 8D48CA8 .incbin "graphics/pokemon/vulpix/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_vulpix_back_pic:: @ 8D48CD0 +gMonBackPic_Vulpix:: @ 8D48CD0 .incbin "graphics/pokemon/vulpix/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_vulpix_shiny_palette:: @ 8D48FD4 +gMonShinyPalette_Vulpix:: @ 8D48FD4 .incbin "graphics/pokemon/vulpix/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_vulpix_icon:: @ 8D48FFC +gMonIcon_Vulpix:: @ 8D48FFC .incbin "graphics/pokemon/vulpix/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_vulpix_footprint:: @ 8D493FC +gMonFootprint_Vulpix:: @ 8D493FC .incbin "graphics/pokemon/vulpix/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_ninetales_still_front_pic:: @ 8D4941C +gMonFrontPic_Ninetales:: @ 8D4941C .incbin "graphics/pokemon/ninetales/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_ninetales_palette:: @ 8D49870 +gMonPalette_Ninetales:: @ 8D49870 .incbin "graphics/pokemon/ninetales/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_ninetales_back_pic:: @ 8D49894 +gMonBackPic_Ninetales:: @ 8D49894 .incbin "graphics/pokemon/ninetales/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_ninetales_shiny_palette:: @ 8D49C84 +gMonShinyPalette_Ninetales:: @ 8D49C84 .incbin "graphics/pokemon/ninetales/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_ninetales_icon:: @ 8D49CA8 +gMonIcon_Ninetales:: @ 8D49CA8 .incbin "graphics/pokemon/ninetales/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_ninetales_footprint:: @ 8D4A0A8 +gMonFootprint_Ninetales:: @ 8D4A0A8 .incbin "graphics/pokemon/ninetales/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_jigglypuff_still_front_pic:: @ 8D4A0C8 +gMonFrontPic_Jigglypuff:: @ 8D4A0C8 .incbin "graphics/pokemon/jigglypuff/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_jigglypuff_palette:: @ 8D4A34C +gMonPalette_Jigglypuff:: @ 8D4A34C .incbin "graphics/pokemon/jigglypuff/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_jigglypuff_back_pic:: @ 8D4A374 +gMonBackPic_Jigglypuff:: @ 8D4A374 .incbin "graphics/pokemon/jigglypuff/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_jigglypuff_shiny_palette:: @ 8D4A5D0 +gMonShinyPalette_Jigglypuff:: @ 8D4A5D0 .incbin "graphics/pokemon/jigglypuff/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_jigglypuff_icon:: @ 8D4A5F8 +gMonIcon_Jigglypuff:: @ 8D4A5F8 .incbin "graphics/pokemon/jigglypuff/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_jigglypuff_footprint:: @ 8D4A9F8 +gMonFootprint_Jigglypuff:: @ 8D4A9F8 .incbin "graphics/pokemon/jigglypuff/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_wigglytuff_still_front_pic:: @ 8D4AA18 +gMonFrontPic_Wigglytuff:: @ 8D4AA18 .incbin "graphics/pokemon/wigglytuff/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_wigglytuff_palette:: @ 8D4AD8C +gMonPalette_Wigglytuff:: @ 8D4AD8C .incbin "graphics/pokemon/wigglytuff/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_wigglytuff_back_pic:: @ 8D4ADB4 +gMonBackPic_Wigglytuff:: @ 8D4ADB4 .incbin "graphics/pokemon/wigglytuff/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_wigglytuff_shiny_palette:: @ 8D4B04C +gMonShinyPalette_Wigglytuff:: @ 8D4B04C .incbin "graphics/pokemon/wigglytuff/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_wigglytuff_icon:: @ 8D4B074 +gMonIcon_Wigglytuff:: @ 8D4B074 .incbin "graphics/pokemon/wigglytuff/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_wigglytuff_footprint:: @ 8D4B474 +gMonFootprint_Wigglytuff:: @ 8D4B474 .incbin "graphics/pokemon/wigglytuff/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_zubat_still_front_pic:: @ 8D4B494 +gMonFrontPic_Zubat:: @ 8D4B494 .incbin "graphics/pokemon/zubat/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_zubat_palette:: @ 8D4B750 +gMonPalette_Zubat:: @ 8D4B750 .incbin "graphics/pokemon/zubat/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_zubat_back_pic:: @ 8D4B778 +gMonBackPic_Zubat:: @ 8D4B778 .incbin "graphics/pokemon/zubat/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_zubat_shiny_palette:: @ 8D4BA34 +gMonShinyPalette_Zubat:: @ 8D4BA34 .incbin "graphics/pokemon/zubat/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_zubat_icon:: @ 8D4BA5C +gMonIcon_Zubat:: @ 8D4BA5C .incbin "graphics/pokemon/zubat/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_zubat_footprint:: @ 8D4BE5C +gMonFootprint_Zubat:: @ 8D4BE5C .incbin "graphics/pokemon/zubat/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_golbat_still_front_pic:: @ 8D4BE7C +gMonFrontPic_Golbat:: @ 8D4BE7C .incbin "graphics/pokemon/golbat/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_golbat_palette:: @ 8D4C21C +gMonPalette_Golbat:: @ 8D4C21C .incbin "graphics/pokemon/golbat/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_golbat_back_pic:: @ 8D4C244 +gMonBackPic_Golbat:: @ 8D4C244 .incbin "graphics/pokemon/golbat/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_golbat_shiny_palette:: @ 8D4C500 +gMonShinyPalette_Golbat:: @ 8D4C500 .incbin "graphics/pokemon/golbat/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_golbat_icon:: @ 8D4C528 +gMonIcon_Golbat:: @ 8D4C528 .incbin "graphics/pokemon/golbat/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_golbat_footprint:: @ 8D4C928 +gMonFootprint_Golbat:: @ 8D4C928 .incbin "graphics/pokemon/golbat/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_oddish_still_front_pic:: @ 8D4C948 +gMonFrontPic_Oddish:: @ 8D4C948 .incbin "graphics/pokemon/oddish/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_oddish_palette:: @ 8D4CB88 +gMonPalette_Oddish:: @ 8D4CB88 .incbin "graphics/pokemon/oddish/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_oddish_back_pic:: @ 8D4CBB0 +gMonBackPic_Oddish:: @ 8D4CBB0 .incbin "graphics/pokemon/oddish/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_oddish_shiny_palette:: @ 8D4CE74 +gMonShinyPalette_Oddish:: @ 8D4CE74 .incbin "graphics/pokemon/oddish/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_oddish_icon:: @ 8D4CE9C +gMonIcon_Oddish:: @ 8D4CE9C .incbin "graphics/pokemon/oddish/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_oddish_footprint:: @ 8D4D29C +gMonFootprint_Oddish:: @ 8D4D29C .incbin "graphics/pokemon/oddish/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_gloom_still_front_pic:: @ 8D4D2BC +gMonFrontPic_Gloom:: @ 8D4D2BC .incbin "graphics/pokemon/gloom/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_gloom_palette:: @ 8D4D624 +gMonPalette_Gloom:: @ 8D4D624 .incbin "graphics/pokemon/gloom/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_gloom_back_pic:: @ 8D4D64C +gMonBackPic_Gloom:: @ 8D4D64C .incbin "graphics/pokemon/gloom/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_gloom_shiny_palette:: @ 8D4D9CC +gMonShinyPalette_Gloom:: @ 8D4D9CC .incbin "graphics/pokemon/gloom/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_gloom_icon:: @ 8D4D9F4 +gMonIcon_Gloom:: @ 8D4D9F4 .incbin "graphics/pokemon/gloom/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_gloom_footprint:: @ 8D4DDF4 +gMonFootprint_Gloom:: @ 8D4DDF4 .incbin "graphics/pokemon/gloom/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_vileplume_still_front_pic:: @ 8D4DE14 +gMonFrontPic_Vileplume:: @ 8D4DE14 .incbin "graphics/pokemon/vileplume/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_vileplume_palette:: @ 8D4E168 +gMonPalette_Vileplume:: @ 8D4E168 .incbin "graphics/pokemon/vileplume/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_vileplume_back_pic:: @ 8D4E190 +gMonBackPic_Vileplume:: @ 8D4E190 .incbin "graphics/pokemon/vileplume/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_vileplume_shiny_palette:: @ 8D4E5DC +gMonShinyPalette_Vileplume:: @ 8D4E5DC .incbin "graphics/pokemon/vileplume/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_vileplume_icon:: @ 8D4E604 +gMonIcon_Vileplume:: @ 8D4E604 .incbin "graphics/pokemon/vileplume/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_vileplume_footprint:: @ 8D4EA04 +gMonFootprint_Vileplume:: @ 8D4EA04 .incbin "graphics/pokemon/vileplume/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_paras_still_front_pic:: @ 8D4EA24 +gMonFrontPic_Paras:: @ 8D4EA24 .incbin "graphics/pokemon/paras/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_paras_palette:: @ 8D4EC90 +gMonPalette_Paras:: @ 8D4EC90 .incbin "graphics/pokemon/paras/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_paras_back_pic:: @ 8D4ECB8 +gMonBackPic_Paras:: @ 8D4ECB8 .incbin "graphics/pokemon/paras/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_paras_shiny_palette:: @ 8D4EF58 +gMonShinyPalette_Paras:: @ 8D4EF58 .incbin "graphics/pokemon/paras/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_paras_icon:: @ 8D4EF80 +gMonIcon_Paras:: @ 8D4EF80 .incbin "graphics/pokemon/paras/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_paras_footprint:: @ 8D4F380 +gMonFootprint_Paras:: @ 8D4F380 .incbin "graphics/pokemon/paras/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_parasect_still_front_pic:: @ 8D4F3A0 +gMonFrontPic_Parasect:: @ 8D4F3A0 .incbin "graphics/pokemon/parasect/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_parasect_palette:: @ 8D4F730 +gMonPalette_Parasect:: @ 8D4F730 .incbin "graphics/pokemon/parasect/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_parasect_back_pic:: @ 8D4F758 +gMonBackPic_Parasect:: @ 8D4F758 .incbin "graphics/pokemon/parasect/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_parasect_shiny_palette:: @ 8D4FA54 +gMonShinyPalette_Parasect:: @ 8D4FA54 .incbin "graphics/pokemon/parasect/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_parasect_icon:: @ 8D4FA7C +gMonIcon_Parasect:: @ 8D4FA7C .incbin "graphics/pokemon/parasect/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_parasect_footprint:: @ 8D4FE7C +gMonFootprint_Parasect:: @ 8D4FE7C .incbin "graphics/pokemon/parasect/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_venonat_still_front_pic:: @ 8D4FE9C +gMonFrontPic_Venonat:: @ 8D4FE9C .incbin "graphics/pokemon/venonat/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_venonat_palette:: @ 8D501BC +gMonPalette_Venonat:: @ 8D501BC .incbin "graphics/pokemon/venonat/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_venonat_back_pic:: @ 8D501E4 +gMonBackPic_Venonat:: @ 8D501E4 .incbin "graphics/pokemon/venonat/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_venonat_shiny_palette:: @ 8D50514 +gMonShinyPalette_Venonat:: @ 8D50514 .incbin "graphics/pokemon/venonat/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_venonat_icon:: @ 8D5053C +gMonIcon_Venonat:: @ 8D5053C .incbin "graphics/pokemon/venonat/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_venonat_footprint:: @ 8D5093C +gMonFootprint_Venonat:: @ 8D5093C .incbin "graphics/pokemon/venonat/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_venomoth_still_front_pic:: @ 8D5095C +gMonFrontPic_Venomoth:: @ 8D5095C .incbin "graphics/pokemon/venomoth/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_venomoth_palette:: @ 8D50D60 +gMonPalette_Venomoth:: @ 8D50D60 .incbin "graphics/pokemon/venomoth/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_venomoth_back_pic:: @ 8D50D88 +gMonBackPic_Venomoth:: @ 8D50D88 .incbin "graphics/pokemon/venomoth/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_venomoth_shiny_palette:: @ 8D5112C +gMonShinyPalette_Venomoth:: @ 8D5112C .incbin "graphics/pokemon/venomoth/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_venomoth_icon:: @ 8D51154 +gMonIcon_Venomoth:: @ 8D51154 .incbin "graphics/pokemon/venomoth/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_venomoth_footprint:: @ 8D51554 +gMonFootprint_Venomoth:: @ 8D51554 .incbin "graphics/pokemon/venomoth/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_diglett_still_front_pic:: @ 8D51574 +gMonFrontPic_Diglett:: @ 8D51574 .incbin "graphics/pokemon/diglett/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_diglett_palette:: @ 8D51784 +gMonPalette_Diglett:: @ 8D51784 .incbin "graphics/pokemon/diglett/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_diglett_back_pic:: @ 8D517AC +gMonBackPic_Diglett:: @ 8D517AC .incbin "graphics/pokemon/diglett/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_diglett_shiny_palette:: @ 8D519B8 +gMonShinyPalette_Diglett:: @ 8D519B8 .incbin "graphics/pokemon/diglett/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_diglett_icon:: @ 8D519E0 +gMonIcon_Diglett:: @ 8D519E0 .incbin "graphics/pokemon/diglett/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_diglett_footprint:: @ 8D51DE0 +gMonFootprint_Diglett:: @ 8D51DE0 .incbin "graphics/pokemon/diglett/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_dugtrio_still_front_pic:: @ 8D51E00 +gMonFrontPic_Dugtrio:: @ 8D51E00 .incbin "graphics/pokemon/dugtrio/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_dugtrio_palette:: @ 8D5212C +gMonPalette_Dugtrio:: @ 8D5212C .incbin "graphics/pokemon/dugtrio/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_dugtrio_back_pic:: @ 8D52154 +gMonBackPic_Dugtrio:: @ 8D52154 .incbin "graphics/pokemon/dugtrio/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_dugtrio_shiny_palette:: @ 8D52400 +gMonShinyPalette_Dugtrio:: @ 8D52400 .incbin "graphics/pokemon/dugtrio/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_dugtrio_icon:: @ 8D52428 +gMonIcon_Dugtrio:: @ 8D52428 .incbin "graphics/pokemon/dugtrio/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_dugtrio_footprint:: @ 8D52828 +gMonFootprint_Dugtrio:: @ 8D52828 .incbin "graphics/pokemon/dugtrio/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_meowth_still_front_pic:: @ 8D52848 +gMonFrontPic_Meowth:: @ 8D52848 .incbin "graphics/pokemon/meowth/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_meowth_palette:: @ 8D52B34 +gMonPalette_Meowth:: @ 8D52B34 .incbin "graphics/pokemon/meowth/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_meowth_back_pic:: @ 8D52B5C +gMonBackPic_Meowth:: @ 8D52B5C .incbin "graphics/pokemon/meowth/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_meowth_shiny_palette:: @ 8D52E40 +gMonShinyPalette_Meowth:: @ 8D52E40 .incbin "graphics/pokemon/meowth/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_meowth_icon:: @ 8D52E68 +gMonIcon_Meowth:: @ 8D52E68 .incbin "graphics/pokemon/meowth/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_meowth_footprint:: @ 8D53268 +gMonFootprint_Meowth:: @ 8D53268 .incbin "graphics/pokemon/meowth/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_persian_still_front_pic:: @ 8D53288 +gMonFrontPic_Persian:: @ 8D53288 .incbin "graphics/pokemon/persian/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_persian_palette:: @ 8D53600 +gMonPalette_Persian:: @ 8D53600 .incbin "graphics/pokemon/persian/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_persian_back_pic:: @ 8D53628 +gMonBackPic_Persian:: @ 8D53628 .incbin "graphics/pokemon/persian/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_persian_shiny_palette:: @ 8D53968 +gMonShinyPalette_Persian:: @ 8D53968 .incbin "graphics/pokemon/persian/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_persian_icon:: @ 8D53990 +gMonIcon_Persian:: @ 8D53990 .incbin "graphics/pokemon/persian/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_persian_footprint:: @ 8D53D90 +gMonFootprint_Persian:: @ 8D53D90 .incbin "graphics/pokemon/persian/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_psyduck_still_front_pic:: @ 8D53DB0 +gMonFrontPic_Psyduck:: @ 8D53DB0 .incbin "graphics/pokemon/psyduck/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_psyduck_palette:: @ 8D54094 +gMonPalette_Psyduck:: @ 8D54094 .incbin "graphics/pokemon/psyduck/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_psyduck_back_pic:: @ 8D540BC +gMonBackPic_Psyduck:: @ 8D540BC .incbin "graphics/pokemon/psyduck/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_psyduck_shiny_palette:: @ 8D54358 +gMonShinyPalette_Psyduck:: @ 8D54358 .incbin "graphics/pokemon/psyduck/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_psyduck_icon:: @ 8D54380 +gMonIcon_Psyduck:: @ 8D54380 .incbin "graphics/pokemon/psyduck/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_psyduck_footprint:: @ 8D54780 +gMonFootprint_Psyduck:: @ 8D54780 .incbin "graphics/pokemon/psyduck/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_golduck_still_front_pic:: @ 8D547A0 +gMonFrontPic_Golduck:: @ 8D547A0 .incbin "graphics/pokemon/golduck/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_golduck_palette:: @ 8D54B58 +gMonPalette_Golduck:: @ 8D54B58 .incbin "graphics/pokemon/golduck/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_golduck_back_pic:: @ 8D54B80 +gMonBackPic_Golduck:: @ 8D54B80 .incbin "graphics/pokemon/golduck/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_golduck_shiny_palette:: @ 8D54EAC +gMonShinyPalette_Golduck:: @ 8D54EAC .incbin "graphics/pokemon/golduck/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_golduck_icon:: @ 8D54ED4 +gMonIcon_Golduck:: @ 8D54ED4 .incbin "graphics/pokemon/golduck/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_golduck_footprint:: @ 8D552D4 +gMonFootprint_Golduck:: @ 8D552D4 .incbin "graphics/pokemon/golduck/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_mankey_still_front_pic:: @ 8D552F4 +gMonFrontPic_Mankey:: @ 8D552F4 .incbin "graphics/pokemon/mankey/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_mankey_palette:: @ 8D555EC +gMonPalette_Mankey:: @ 8D555EC .incbin "graphics/pokemon/mankey/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_mankey_back_pic:: @ 8D55614 +gMonBackPic_Mankey:: @ 8D55614 .incbin "graphics/pokemon/mankey/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_mankey_shiny_palette:: @ 8D5597C +gMonShinyPalette_Mankey:: @ 8D5597C .incbin "graphics/pokemon/mankey/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_mankey_icon:: @ 8D559A4 +gMonIcon_Mankey:: @ 8D559A4 .incbin "graphics/pokemon/mankey/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_mankey_footprint:: @ 8D55DA4 +gMonFootprint_Mankey:: @ 8D55DA4 .incbin "graphics/pokemon/mankey/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_primeape_still_front_pic:: @ 8D55DC4 +gMonFrontPic_Primeape:: @ 8D55DC4 .incbin "graphics/pokemon/primeape/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_primeape_palette:: @ 8D56150 +gMonPalette_Primeape:: @ 8D56150 .incbin "graphics/pokemon/primeape/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_primeape_back_pic:: @ 8D56178 +gMonBackPic_Primeape:: @ 8D56178 .incbin "graphics/pokemon/primeape/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_primeape_shiny_palette:: @ 8D564E8 +gMonShinyPalette_Primeape:: @ 8D564E8 .incbin "graphics/pokemon/primeape/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_primeape_icon:: @ 8D56510 +gMonIcon_Primeape:: @ 8D56510 .incbin "graphics/pokemon/primeape/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_primeape_footprint:: @ 8D56910 +gMonFootprint_Primeape:: @ 8D56910 .incbin "graphics/pokemon/primeape/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_growlithe_still_front_pic:: @ 8D56930 +gMonFrontPic_Growlithe:: @ 8D56930 .incbin "graphics/pokemon/growlithe/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_growlithe_palette:: @ 8D56C58 +gMonPalette_Growlithe:: @ 8D56C58 .incbin "graphics/pokemon/growlithe/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_growlithe_back_pic:: @ 8D56C80 +gMonBackPic_Growlithe:: @ 8D56C80 .incbin "graphics/pokemon/growlithe/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_growlithe_shiny_palette:: @ 8D56FBC +gMonShinyPalette_Growlithe:: @ 8D56FBC .incbin "graphics/pokemon/growlithe/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_growlithe_icon:: @ 8D56FE4 +gMonIcon_Growlithe:: @ 8D56FE4 .incbin "graphics/pokemon/growlithe/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_growlithe_footprint:: @ 8D573E4 +gMonFootprint_Growlithe:: @ 8D573E4 .incbin "graphics/pokemon/growlithe/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_arcanine_still_front_pic:: @ 8D57404 +gMonFrontPic_Arcanine:: @ 8D57404 .incbin "graphics/pokemon/arcanine/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_arcanine_palette:: @ 8D57900 +gMonPalette_Arcanine:: @ 8D57900 .incbin "graphics/pokemon/arcanine/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_arcanine_back_pic:: @ 8D57928 +gMonBackPic_Arcanine:: @ 8D57928 .incbin "graphics/pokemon/arcanine/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_arcanine_shiny_palette:: @ 8D57D08 +gMonShinyPalette_Arcanine:: @ 8D57D08 .incbin "graphics/pokemon/arcanine/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_arcanine_icon:: @ 8D57D30 +gMonIcon_Arcanine:: @ 8D57D30 .incbin "graphics/pokemon/arcanine/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_arcanine_footprint:: @ 8D58130 +gMonFootprint_Arcanine:: @ 8D58130 .incbin "graphics/pokemon/arcanine/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_poliwag_still_front_pic:: @ 8D58150 +gMonFrontPic_Poliwag:: @ 8D58150 .incbin "graphics/pokemon/poliwag/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_poliwag_palette:: @ 8D583EC +gMonPalette_Poliwag:: @ 8D583EC .incbin "graphics/pokemon/poliwag/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_poliwag_back_pic:: @ 8D58414 +gMonBackPic_Poliwag:: @ 8D58414 .incbin "graphics/pokemon/poliwag/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_poliwag_shiny_palette:: @ 8D58678 +gMonShinyPalette_Poliwag:: @ 8D58678 .incbin "graphics/pokemon/poliwag/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_poliwag_icon:: @ 8D586A0 +gMonIcon_Poliwag:: @ 8D586A0 .incbin "graphics/pokemon/poliwag/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_poliwag_footprint:: @ 8D58AA0 +gMonFootprint_Poliwag:: @ 8D58AA0 .incbin "graphics/pokemon/poliwag/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_poliwhirl_still_front_pic:: @ 8D58AC0 +gMonFrontPic_Poliwhirl:: @ 8D58AC0 .incbin "graphics/pokemon/poliwhirl/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_poliwhirl_palette:: @ 8D58E40 +gMonPalette_Poliwhirl:: @ 8D58E40 .incbin "graphics/pokemon/poliwhirl/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_poliwhirl_back_pic:: @ 8D58E68 +gMonBackPic_Poliwhirl:: @ 8D58E68 .incbin "graphics/pokemon/poliwhirl/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_poliwhirl_shiny_palette:: @ 8D590E4 +gMonShinyPalette_Poliwhirl:: @ 8D590E4 .incbin "graphics/pokemon/poliwhirl/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_poliwhirl_icon:: @ 8D5910C +gMonIcon_Poliwhirl:: @ 8D5910C .incbin "graphics/pokemon/poliwhirl/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_poliwhirl_footprint:: @ 8D5950C +gMonFootprint_Poliwhirl:: @ 8D5950C .incbin "graphics/pokemon/poliwhirl/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_poliwrath_still_front_pic:: @ 8D5952C +gMonFrontPic_Poliwrath:: @ 8D5952C .incbin "graphics/pokemon/poliwrath/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_poliwrath_palette:: @ 8D598F0 +gMonPalette_Poliwrath:: @ 8D598F0 .incbin "graphics/pokemon/poliwrath/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_poliwrath_back_pic:: @ 8D59918 +gMonBackPic_Poliwrath:: @ 8D59918 .incbin "graphics/pokemon/poliwrath/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_poliwrath_shiny_palette:: @ 8D59C0C +gMonShinyPalette_Poliwrath:: @ 8D59C0C .incbin "graphics/pokemon/poliwrath/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_poliwrath_icon:: @ 8D59C34 +gMonIcon_Poliwrath:: @ 8D59C34 .incbin "graphics/pokemon/poliwrath/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_poliwrath_footprint:: @ 8D5A034 +gMonFootprint_Poliwrath:: @ 8D5A034 .incbin "graphics/pokemon/poliwrath/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_abra_still_front_pic:: @ 8D5A054 +gMonFrontPic_Abra:: @ 8D5A054 .incbin "graphics/pokemon/abra/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_abra_palette:: @ 8D5A328 +gMonPalette_Abra:: @ 8D5A328 .incbin "graphics/pokemon/abra/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_abra_back_pic:: @ 8D5A34C +gMonBackPic_Abra:: @ 8D5A34C .incbin "graphics/pokemon/abra/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_abra_shiny_palette:: @ 8D5A620 +gMonShinyPalette_Abra:: @ 8D5A620 .incbin "graphics/pokemon/abra/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_abra_icon:: @ 8D5A644 +gMonIcon_Abra:: @ 8D5A644 .incbin "graphics/pokemon/abra/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_abra_footprint:: @ 8D5AA44 +gMonFootprint_Abra:: @ 8D5AA44 .incbin "graphics/pokemon/abra/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_kadabra_still_front_pic:: @ 8D5AA64 +gMonFrontPic_Kadabra:: @ 8D5AA64 .incbin "graphics/pokemon/kadabra/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_kadabra_palette:: @ 8D5AF2C +gMonPalette_Kadabra:: @ 8D5AF2C .incbin "graphics/pokemon/kadabra/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_kadabra_back_pic:: @ 8D5AF54 +gMonBackPic_Kadabra:: @ 8D5AF54 .incbin "graphics/pokemon/kadabra/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_kadabra_shiny_palette:: @ 8D5B300 +gMonShinyPalette_Kadabra:: @ 8D5B300 .incbin "graphics/pokemon/kadabra/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_kadabra_icon:: @ 8D5B328 +gMonIcon_Kadabra:: @ 8D5B328 .incbin "graphics/pokemon/kadabra/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_kadabra_footprint:: @ 8D5B728 +gMonFootprint_Kadabra:: @ 8D5B728 .incbin "graphics/pokemon/kadabra/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_alakazam_still_front_pic:: @ 8D5B748 +gMonFrontPic_Alakazam:: @ 8D5B748 .incbin "graphics/pokemon/alakazam/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_alakazam_palette:: @ 8D5BBE0 +gMonPalette_Alakazam:: @ 8D5BBE0 .incbin "graphics/pokemon/alakazam/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_alakazam_back_pic:: @ 8D5BC08 +gMonBackPic_Alakazam:: @ 8D5BC08 .incbin "graphics/pokemon/alakazam/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_alakazam_shiny_palette:: @ 8D5BF88 +gMonShinyPalette_Alakazam:: @ 8D5BF88 .incbin "graphics/pokemon/alakazam/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_alakazam_icon:: @ 8D5BFB0 +gMonIcon_Alakazam:: @ 8D5BFB0 .incbin "graphics/pokemon/alakazam/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_alakazam_footprint:: @ 8D5C3B0 +gMonFootprint_Alakazam:: @ 8D5C3B0 .incbin "graphics/pokemon/alakazam/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_machop_still_front_pic:: @ 8D5C3D0 +gMonFrontPic_Machop:: @ 8D5C3D0 .incbin "graphics/pokemon/machop/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_machop_palette:: @ 8D5C65C +gMonPalette_Machop:: @ 8D5C65C .incbin "graphics/pokemon/machop/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_machop_back_pic:: @ 8D5C684 +gMonBackPic_Machop:: @ 8D5C684 .incbin "graphics/pokemon/machop/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_machop_shiny_palette:: @ 8D5C964 +gMonShinyPalette_Machop:: @ 8D5C964 .incbin "graphics/pokemon/machop/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_machop_icon:: @ 8D5C98C +gMonIcon_Machop:: @ 8D5C98C .incbin "graphics/pokemon/machop/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_machop_footprint:: @ 8D5CD8C +gMonFootprint_Machop:: @ 8D5CD8C .incbin "graphics/pokemon/machop/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_machoke_still_front_pic:: @ 8D5CDAC +gMonFrontPic_Machoke:: @ 8D5CDAC .incbin "graphics/pokemon/machoke/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_machoke_palette:: @ 8D5D178 +gMonPalette_Machoke:: @ 8D5D178 .incbin "graphics/pokemon/machoke/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_machoke_back_pic:: @ 8D5D1A0 +gMonBackPic_Machoke:: @ 8D5D1A0 .incbin "graphics/pokemon/machoke/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_machoke_shiny_palette:: @ 8D5D4F0 +gMonShinyPalette_Machoke:: @ 8D5D4F0 .incbin "graphics/pokemon/machoke/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_machoke_icon:: @ 8D5D518 +gMonIcon_Machoke:: @ 8D5D518 .incbin "graphics/pokemon/machoke/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_machoke_footprint:: @ 8D5D918 +gMonFootprint_Machoke:: @ 8D5D918 .incbin "graphics/pokemon/machoke/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_machamp_still_front_pic:: @ 8D5D938 +gMonFrontPic_Machamp:: @ 8D5D938 .incbin "graphics/pokemon/machamp/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_machamp_palette:: @ 8D5DE24 +gMonPalette_Machamp:: @ 8D5DE24 .incbin "graphics/pokemon/machamp/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_machamp_back_pic:: @ 8D5DE4C +gMonBackPic_Machamp:: @ 8D5DE4C .incbin "graphics/pokemon/machamp/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_machamp_shiny_palette:: @ 8D5E2A8 +gMonShinyPalette_Machamp:: @ 8D5E2A8 .incbin "graphics/pokemon/machamp/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_machamp_icon:: @ 8D5E2D0 +gMonIcon_Machamp:: @ 8D5E2D0 .incbin "graphics/pokemon/machamp/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_machamp_footprint:: @ 8D5E6D0 +gMonFootprint_Machamp:: @ 8D5E6D0 .incbin "graphics/pokemon/machamp/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_bellsprout_still_front_pic:: @ 8D5E6F0 +gMonFrontPic_Bellsprout:: @ 8D5E6F0 .incbin "graphics/pokemon/bellsprout/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_bellsprout_palette:: @ 8D5E97C +gMonPalette_Bellsprout:: @ 8D5E97C .incbin "graphics/pokemon/bellsprout/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_bellsprout_back_pic:: @ 8D5E9A4 +gMonBackPic_Bellsprout:: @ 8D5E9A4 .incbin "graphics/pokemon/bellsprout/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_bellsprout_shiny_palette:: @ 8D5EC40 +gMonShinyPalette_Bellsprout:: @ 8D5EC40 .incbin "graphics/pokemon/bellsprout/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_bellsprout_icon:: @ 8D5EC68 +gMonIcon_Bellsprout:: @ 8D5EC68 .incbin "graphics/pokemon/bellsprout/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_bellsprout_footprint:: @ 8D5F068 +gMonFootprint_Bellsprout:: @ 8D5F068 .incbin "graphics/pokemon/bellsprout/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_weepinbell_still_front_pic:: @ 8D5F088 +gMonFrontPic_Weepinbell:: @ 8D5F088 .incbin "graphics/pokemon/weepinbell/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_weepinbell_palette:: @ 8D5F3AC +gMonPalette_Weepinbell:: @ 8D5F3AC .incbin "graphics/pokemon/weepinbell/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_weepinbell_back_pic:: @ 8D5F3D4 +gMonBackPic_Weepinbell:: @ 8D5F3D4 .incbin "graphics/pokemon/weepinbell/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_weepinbell_shiny_palette:: @ 8D5F6D0 +gMonShinyPalette_Weepinbell:: @ 8D5F6D0 .incbin "graphics/pokemon/weepinbell/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_weepinbell_icon:: @ 8D5F6F8 +gMonIcon_Weepinbell:: @ 8D5F6F8 .incbin "graphics/pokemon/weepinbell/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_weepinbell_footprint:: @ 8D5FAF8 +gMonFootprint_Weepinbell:: @ 8D5FAF8 .incbin "graphics/pokemon/weepinbell/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_victreebel_still_front_pic:: @ 8D5FB18 +gMonFrontPic_Victreebel:: @ 8D5FB18 .incbin "graphics/pokemon/victreebel/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_victreebel_palette:: @ 8D5FF44 +gMonPalette_Victreebel:: @ 8D5FF44 .incbin "graphics/pokemon/victreebel/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_victreebel_back_pic:: @ 8D5FF6C +gMonBackPic_Victreebel:: @ 8D5FF6C .incbin "graphics/pokemon/victreebel/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_victreebel_shiny_palette:: @ 8D60304 +gMonShinyPalette_Victreebel:: @ 8D60304 .incbin "graphics/pokemon/victreebel/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_victreebel_icon:: @ 8D6032C +gMonIcon_Victreebel:: @ 8D6032C .incbin "graphics/pokemon/victreebel/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_victreebel_footprint:: @ 8D6072C +gMonFootprint_Victreebel:: @ 8D6072C .incbin "graphics/pokemon/victreebel/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_tentacool_still_front_pic:: @ 8D6074C +gMonFrontPic_Tentacool:: @ 8D6074C .incbin "graphics/pokemon/tentacool/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_tentacool_palette:: @ 8D609F4 +gMonPalette_Tentacool:: @ 8D609F4 .incbin "graphics/pokemon/tentacool/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_tentacool_back_pic:: @ 8D60A1C +gMonBackPic_Tentacool:: @ 8D60A1C .incbin "graphics/pokemon/tentacool/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_tentacool_shiny_palette:: @ 8D60CE8 +gMonShinyPalette_Tentacool:: @ 8D60CE8 .incbin "graphics/pokemon/tentacool/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_tentacool_icon:: @ 8D60D10 +gMonIcon_Tentacool:: @ 8D60D10 .incbin "graphics/pokemon/tentacool/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_tentacool_footprint:: @ 8D61110 +gMonFootprint_Tentacool:: @ 8D61110 .incbin "graphics/pokemon/tentacool/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_tentacruel_still_front_pic:: @ 8D61130 +gMonFrontPic_Tentacruel:: @ 8D61130 .incbin "graphics/pokemon/tentacruel/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_tentacruel_palette:: @ 8D61624 +gMonPalette_Tentacruel:: @ 8D61624 .incbin "graphics/pokemon/tentacruel/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_tentacruel_back_pic:: @ 8D6164C +gMonBackPic_Tentacruel:: @ 8D6164C .incbin "graphics/pokemon/tentacruel/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_tentacruel_shiny_palette:: @ 8D619E8 +gMonShinyPalette_Tentacruel:: @ 8D619E8 .incbin "graphics/pokemon/tentacruel/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_tentacruel_icon:: @ 8D61A10 +gMonIcon_Tentacruel:: @ 8D61A10 .incbin "graphics/pokemon/tentacruel/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_tentacruel_footprint:: @ 8D61E10 +gMonFootprint_Tentacruel:: @ 8D61E10 .incbin "graphics/pokemon/tentacruel/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_geodude_still_front_pic:: @ 8D61E30 +gMonFrontPic_Geodude:: @ 8D61E30 .incbin "graphics/pokemon/geodude/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_geodude_palette:: @ 8D620C4 +gMonPalette_Geodude:: @ 8D620C4 .incbin "graphics/pokemon/geodude/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_geodude_back_pic:: @ 8D620E0 +gMonBackPic_Geodude:: @ 8D620E0 .incbin "graphics/pokemon/geodude/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_geodude_shiny_palette:: @ 8D62374 +gMonShinyPalette_Geodude:: @ 8D62374 .incbin "graphics/pokemon/geodude/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_geodude_icon:: @ 8D62390 +gMonIcon_Geodude:: @ 8D62390 .incbin "graphics/pokemon/geodude/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_geodude_footprint:: @ 8D62790 +gMonFootprint_Geodude:: @ 8D62790 .incbin "graphics/pokemon/geodude/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_graveler_still_front_pic:: @ 8D627B0 +gMonFrontPic_Graveler:: @ 8D627B0 .incbin "graphics/pokemon/graveler/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_graveler_palette:: @ 8D62BAC +gMonPalette_Graveler:: @ 8D62BAC .incbin "graphics/pokemon/graveler/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_graveler_back_pic:: @ 8D62BD0 +gMonBackPic_Graveler:: @ 8D62BD0 .incbin "graphics/pokemon/graveler/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_graveler_shiny_palette:: @ 8D62E4C +gMonShinyPalette_Graveler:: @ 8D62E4C .incbin "graphics/pokemon/graveler/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_graveler_icon:: @ 8D62E70 +gMonIcon_Graveler:: @ 8D62E70 .incbin "graphics/pokemon/graveler/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_graveler_footprint:: @ 8D63270 +gMonFootprint_Graveler:: @ 8D63270 .incbin "graphics/pokemon/graveler/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_golem_still_front_pic:: @ 8D63290 +gMonFrontPic_Golem:: @ 8D63290 .incbin "graphics/pokemon/golem/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_golem_palette:: @ 8D636C0 +gMonPalette_Golem:: @ 8D636C0 .incbin "graphics/pokemon/golem/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_golem_back_pic:: @ 8D636E8 +gMonBackPic_Golem:: @ 8D636E8 .incbin "graphics/pokemon/golem/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_golem_shiny_palette:: @ 8D639A8 +gMonShinyPalette_Golem:: @ 8D639A8 .incbin "graphics/pokemon/golem/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_golem_icon:: @ 8D639D0 +gMonIcon_Golem:: @ 8D639D0 .incbin "graphics/pokemon/golem/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_golem_footprint:: @ 8D63DD0 +gMonFootprint_Golem:: @ 8D63DD0 .incbin "graphics/pokemon/golem/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_ponyta_still_front_pic:: @ 8D63DF0 +gMonFrontPic_Ponyta:: @ 8D63DF0 .incbin "graphics/pokemon/ponyta/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_ponyta_palette:: @ 8D64180 +gMonPalette_Ponyta:: @ 8D64180 .incbin "graphics/pokemon/ponyta/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_ponyta_back_pic:: @ 8D641A8 +gMonBackPic_Ponyta:: @ 8D641A8 .incbin "graphics/pokemon/ponyta/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_ponyta_shiny_palette:: @ 8D644E4 +gMonShinyPalette_Ponyta:: @ 8D644E4 .incbin "graphics/pokemon/ponyta/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_ponyta_icon:: @ 8D6450C +gMonIcon_Ponyta:: @ 8D6450C .incbin "graphics/pokemon/ponyta/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_ponyta_footprint:: @ 8D6490C +gMonFootprint_Ponyta:: @ 8D6490C .incbin "graphics/pokemon/ponyta/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_rapidash_still_front_pic:: @ 8D6492C +gMonFrontPic_Rapidash:: @ 8D6492C .incbin "graphics/pokemon/rapidash/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_rapidash_palette:: @ 8D64DB4 +gMonPalette_Rapidash:: @ 8D64DB4 .incbin "graphics/pokemon/rapidash/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_rapidash_back_pic:: @ 8D64DDC +gMonBackPic_Rapidash:: @ 8D64DDC .incbin "graphics/pokemon/rapidash/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_rapidash_shiny_palette:: @ 8D651EC +gMonShinyPalette_Rapidash:: @ 8D651EC .incbin "graphics/pokemon/rapidash/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_rapidash_icon:: @ 8D65214 +gMonIcon_Rapidash:: @ 8D65214 .incbin "graphics/pokemon/rapidash/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_rapidash_footprint:: @ 8D65614 +gMonFootprint_Rapidash:: @ 8D65614 .incbin "graphics/pokemon/rapidash/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_slowpoke_still_front_pic:: @ 8D65634 +gMonFrontPic_Slowpoke:: @ 8D65634 .incbin "graphics/pokemon/slowpoke/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_slowpoke_palette:: @ 8D65908 +gMonPalette_Slowpoke:: @ 8D65908 .incbin "graphics/pokemon/slowpoke/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_slowpoke_back_pic:: @ 8D65930 +gMonBackPic_Slowpoke:: @ 8D65930 .incbin "graphics/pokemon/slowpoke/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_slowpoke_shiny_palette:: @ 8D65B94 +gMonShinyPalette_Slowpoke:: @ 8D65B94 .incbin "graphics/pokemon/slowpoke/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_slowpoke_icon:: @ 8D65BBC +gMonIcon_Slowpoke:: @ 8D65BBC .incbin "graphics/pokemon/slowpoke/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_slowpoke_footprint:: @ 8D65FBC +gMonFootprint_Slowpoke:: @ 8D65FBC .incbin "graphics/pokemon/slowpoke/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_slowbro_still_front_pic:: @ 8D65FDC +gMonFrontPic_Slowbro:: @ 8D65FDC .incbin "graphics/pokemon/slowbro/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_slowbro_palette:: @ 8D6647C +gMonPalette_Slowbro:: @ 8D6647C .incbin "graphics/pokemon/slowbro/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_slowbro_back_pic:: @ 8D664A4 +gMonBackPic_Slowbro:: @ 8D664A4 .incbin "graphics/pokemon/slowbro/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_slowbro_shiny_palette:: @ 8D66840 +gMonShinyPalette_Slowbro:: @ 8D66840 .incbin "graphics/pokemon/slowbro/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_slowbro_icon:: @ 8D66868 +gMonIcon_Slowbro:: @ 8D66868 .incbin "graphics/pokemon/slowbro/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_slowbro_footprint:: @ 8D66C68 +gMonFootprint_Slowbro:: @ 8D66C68 .incbin "graphics/pokemon/slowbro/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_magnemite_still_front_pic:: @ 8D66C88 +gMonFrontPic_Magnemite:: @ 8D66C88 .incbin "graphics/pokemon/magnemite/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_magnemite_palette:: @ 8D66E60 +gMonPalette_Magnemite:: @ 8D66E60 .incbin "graphics/pokemon/magnemite/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_magnemite_back_pic:: @ 8D66E88 +gMonBackPic_Magnemite:: @ 8D66E88 .incbin "graphics/pokemon/magnemite/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_magnemite_shiny_palette:: @ 8D67070 +gMonShinyPalette_Magnemite:: @ 8D67070 .incbin "graphics/pokemon/magnemite/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_magnemite_icon:: @ 8D67094 +gMonIcon_Magnemite:: @ 8D67094 .incbin "graphics/pokemon/magnemite/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_magnemite_footprint:: @ 8D67494 +gMonFootprint_Magnemite:: @ 8D67494 .incbin "graphics/pokemon/magnemite/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_magneton_still_front_pic:: @ 8D674B4 +gMonFrontPic_Magneton:: @ 8D674B4 .incbin "graphics/pokemon/magneton/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_magneton_palette:: @ 8D677F0 +gMonPalette_Magneton:: @ 8D677F0 .incbin "graphics/pokemon/magneton/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_magneton_back_pic:: @ 8D67818 +gMonBackPic_Magneton:: @ 8D67818 .incbin "graphics/pokemon/magneton/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_magneton_shiny_palette:: @ 8D67B98 +gMonShinyPalette_Magneton:: @ 8D67B98 .incbin "graphics/pokemon/magneton/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_magneton_icon:: @ 8D67BC0 +gMonIcon_Magneton:: @ 8D67BC0 .incbin "graphics/pokemon/magneton/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_magneton_footprint:: @ 8D67FC0 +gMonFootprint_Magneton:: @ 8D67FC0 .incbin "graphics/pokemon/magneton/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_farfetch_d_still_front_pic:: @ 8D67FE0 +gMonFrontPic_Farfetchd:: @ 8D67FE0 .incbin "graphics/pokemon/farfetch_d/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_farfetch_d_palette:: @ 8D68334 +gMonPalette_Farfetchd:: @ 8D68334 .incbin "graphics/pokemon/farfetch_d/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_farfetch_d_back_pic:: @ 8D6835C +gMonBackPic_Farfetchd:: @ 8D6835C .incbin "graphics/pokemon/farfetch_d/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_farfetch_d_shiny_palette:: @ 8D686C8 +gMonShinyPalette_Farfetchd:: @ 8D686C8 .incbin "graphics/pokemon/farfetch_d/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_farfetch_d_icon:: @ 8D686F0 +gMonIcon_Farfetchd:: @ 8D686F0 .incbin "graphics/pokemon/farfetch_d/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_farfetch_d_footprint:: @ 8D68AF0 +gMonFootprint_Farfetchd:: @ 8D68AF0 .incbin "graphics/pokemon/farfetch_d/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_doduo_still_front_pic:: @ 8D68B10 +gMonFrontPic_Doduo:: @ 8D68B10 .incbin "graphics/pokemon/doduo/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_doduo_palette:: @ 8D68DFC +gMonPalette_Doduo:: @ 8D68DFC .incbin "graphics/pokemon/doduo/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_doduo_back_pic:: @ 8D68E20 +gMonBackPic_Doduo:: @ 8D68E20 .incbin "graphics/pokemon/doduo/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_doduo_shiny_palette:: @ 8D69138 +gMonShinyPalette_Doduo:: @ 8D69138 .incbin "graphics/pokemon/doduo/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_doduo_icon:: @ 8D6915C +gMonIcon_Doduo:: @ 8D6915C .incbin "graphics/pokemon/doduo/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_doduo_footprint:: @ 8D6955C +gMonFootprint_Doduo:: @ 8D6955C .incbin "graphics/pokemon/doduo/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_dodrio_still_front_pic:: @ 8D6957C +gMonFrontPic_Dodrio:: @ 8D6957C .incbin "graphics/pokemon/dodrio/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_dodrio_palette:: @ 8D699BC +gMonPalette_Dodrio:: @ 8D699BC .incbin "graphics/pokemon/dodrio/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_dodrio_back_pic:: @ 8D699E4 +gMonBackPic_Dodrio:: @ 8D699E4 .incbin "graphics/pokemon/dodrio/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_dodrio_shiny_palette:: @ 8D69E48 +gMonShinyPalette_Dodrio:: @ 8D69E48 .incbin "graphics/pokemon/dodrio/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_dodrio_icon:: @ 8D69E70 +gMonIcon_Dodrio:: @ 8D69E70 .incbin "graphics/pokemon/dodrio/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_dodrio_footprint:: @ 8D6A270 +gMonFootprint_Dodrio:: @ 8D6A270 .incbin "graphics/pokemon/dodrio/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_seel_still_front_pic:: @ 8D6A290 +gMonFrontPic_Seel:: @ 8D6A290 .incbin "graphics/pokemon/seel/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_seel_palette:: @ 8D6A5B4 +gMonPalette_Seel:: @ 8D6A5B4 .incbin "graphics/pokemon/seel/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_seel_back_pic:: @ 8D6A5DC +gMonBackPic_Seel:: @ 8D6A5DC .incbin "graphics/pokemon/seel/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_seel_shiny_palette:: @ 8D6A8C8 +gMonShinyPalette_Seel:: @ 8D6A8C8 .incbin "graphics/pokemon/seel/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_seel_icon:: @ 8D6A8F0 +gMonIcon_Seel:: @ 8D6A8F0 .incbin "graphics/pokemon/seel/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_seel_footprint:: @ 8D6ACF0 +gMonFootprint_Seel:: @ 8D6ACF0 .incbin "graphics/pokemon/seel/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_dewgong_still_front_pic:: @ 8D6AD10 +gMonFrontPic_Dewgong:: @ 8D6AD10 .incbin "graphics/pokemon/dewgong/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_dewgong_palette:: @ 8D6B0E0 +gMonPalette_Dewgong:: @ 8D6B0E0 .incbin "graphics/pokemon/dewgong/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_dewgong_back_pic:: @ 8D6B104 +gMonBackPic_Dewgong:: @ 8D6B104 .incbin "graphics/pokemon/dewgong/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_dewgong_shiny_palette:: @ 8D6B398 +gMonShinyPalette_Dewgong:: @ 8D6B398 .incbin "graphics/pokemon/dewgong/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_dewgong_icon:: @ 8D6B3BC +gMonIcon_Dewgong:: @ 8D6B3BC .incbin "graphics/pokemon/dewgong/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_dewgong_footprint:: @ 8D6B7BC +gMonFootprint_Dewgong:: @ 8D6B7BC .incbin "graphics/pokemon/dewgong/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_grimer_still_front_pic:: @ 8D6B7DC +gMonFrontPic_Grimer:: @ 8D6B7DC .incbin "graphics/pokemon/grimer/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_grimer_palette:: @ 8D6BB04 +gMonPalette_Grimer:: @ 8D6BB04 .incbin "graphics/pokemon/grimer/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_grimer_back_pic:: @ 8D6BB28 +gMonBackPic_Grimer:: @ 8D6BB28 .incbin "graphics/pokemon/grimer/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_grimer_shiny_palette:: @ 8D6BDEC +gMonShinyPalette_Grimer:: @ 8D6BDEC .incbin "graphics/pokemon/grimer/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_grimer_icon:: @ 8D6BE10 +gMonIcon_Grimer:: @ 8D6BE10 .incbin "graphics/pokemon/grimer/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_grimer_footprint:: @ 8D6C210 +gMonFootprint_Grimer:: @ 8D6C210 .incbin "graphics/pokemon/grimer/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_muk_still_front_pic:: @ 8D6C230 +gMonFrontPic_Muk:: @ 8D6C230 .incbin "graphics/pokemon/muk/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_muk_palette:: @ 8D6C5C0 +gMonPalette_Muk:: @ 8D6C5C0 .incbin "graphics/pokemon/muk/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_muk_back_pic:: @ 8D6C5E4 +gMonBackPic_Muk:: @ 8D6C5E4 .incbin "graphics/pokemon/muk/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_muk_shiny_palette:: @ 8D6C8DC +gMonShinyPalette_Muk:: @ 8D6C8DC .incbin "graphics/pokemon/muk/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_muk_icon:: @ 8D6C900 +gMonIcon_Muk:: @ 8D6C900 .incbin "graphics/pokemon/muk/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_muk_footprint:: @ 8D6CD00 +gMonFootprint_Muk:: @ 8D6CD00 .incbin "graphics/pokemon/muk/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_shellder_still_front_pic:: @ 8D6CD20 +gMonFrontPic_Shellder:: @ 8D6CD20 .incbin "graphics/pokemon/shellder/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_shellder_palette:: @ 8D6CF94 +gMonPalette_Shellder:: @ 8D6CF94 .incbin "graphics/pokemon/shellder/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_shellder_back_pic:: @ 8D6CFB8 +gMonBackPic_Shellder:: @ 8D6CFB8 .incbin "graphics/pokemon/shellder/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_shellder_shiny_palette:: @ 8D6D2CC +gMonShinyPalette_Shellder:: @ 8D6D2CC .incbin "graphics/pokemon/shellder/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_shellder_icon:: @ 8D6D2F0 +gMonIcon_Shellder:: @ 8D6D2F0 .incbin "graphics/pokemon/shellder/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_shellder_footprint:: @ 8D6D6F0 +gMonFootprint_Shellder:: @ 8D6D6F0 .incbin "graphics/pokemon/shellder/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_cloyster_still_front_pic:: @ 8D6D710 +gMonFrontPic_Cloyster:: @ 8D6D710 .incbin "graphics/pokemon/cloyster/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_cloyster_palette:: @ 8D6DB4C +gMonPalette_Cloyster:: @ 8D6DB4C .incbin "graphics/pokemon/cloyster/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_cloyster_back_pic:: @ 8D6DB70 +gMonBackPic_Cloyster:: @ 8D6DB70 .incbin "graphics/pokemon/cloyster/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_cloyster_shiny_palette:: @ 8D6DF7C +gMonShinyPalette_Cloyster:: @ 8D6DF7C .incbin "graphics/pokemon/cloyster/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_cloyster_icon:: @ 8D6DFA0 +gMonIcon_Cloyster:: @ 8D6DFA0 .incbin "graphics/pokemon/cloyster/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_cloyster_footprint:: @ 8D6E3A0 +gMonFootprint_Cloyster:: @ 8D6E3A0 .incbin "graphics/pokemon/cloyster/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_gastly_still_front_pic:: @ 8D6E3C0 +gMonFrontPic_Gastly:: @ 8D6E3C0 .incbin "graphics/pokemon/gastly/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_gastly_palette:: @ 8D6E778 +gMonPalette_Gastly:: @ 8D6E778 .incbin "graphics/pokemon/gastly/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_gastly_back_pic:: @ 8D6E7A0 +gMonBackPic_Gastly:: @ 8D6E7A0 .incbin "graphics/pokemon/gastly/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_gastly_shiny_palette:: @ 8D6EAC4 +gMonShinyPalette_Gastly:: @ 8D6EAC4 .incbin "graphics/pokemon/gastly/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_gastly_icon:: @ 8D6EAEC +gMonIcon_Gastly:: @ 8D6EAEC .incbin "graphics/pokemon/gastly/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_gastly_footprint:: @ 8D6EEEC +gMonFootprint_Gastly:: @ 8D6EEEC .incbin "graphics/pokemon/gastly/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_haunter_still_front_pic:: @ 8D6EF0C +gMonFrontPic_Haunter:: @ 8D6EF0C .incbin "graphics/pokemon/haunter/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_haunter_palette:: @ 8D6F2F4 +gMonPalette_Haunter:: @ 8D6F2F4 .incbin "graphics/pokemon/haunter/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_haunter_back_pic:: @ 8D6F318 +gMonBackPic_Haunter:: @ 8D6F318 .incbin "graphics/pokemon/haunter/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_haunter_shiny_palette:: @ 8D6F5FC +gMonShinyPalette_Haunter:: @ 8D6F5FC .incbin "graphics/pokemon/haunter/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_haunter_icon:: @ 8D6F620 +gMonIcon_Haunter:: @ 8D6F620 .incbin "graphics/pokemon/haunter/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_haunter_footprint:: @ 8D6FA20 +gMonFootprint_Haunter:: @ 8D6FA20 .incbin "graphics/pokemon/haunter/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_gengar_still_front_pic:: @ 8D6FA40 +gMonFrontPic_Gengar:: @ 8D6FA40 .incbin "graphics/pokemon/gengar/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_gengar_palette:: @ 8D6FD9C +gMonPalette_Gengar:: @ 8D6FD9C .incbin "graphics/pokemon/gengar/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_gengar_back_pic:: @ 8D6FDC0 +gMonBackPic_Gengar:: @ 8D6FDC0 .incbin "graphics/pokemon/gengar/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_gengar_shiny_palette:: @ 8D70104 +gMonShinyPalette_Gengar:: @ 8D70104 .incbin "graphics/pokemon/gengar/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_gengar_icon:: @ 8D70128 +gMonIcon_Gengar:: @ 8D70128 .incbin "graphics/pokemon/gengar/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_gengar_footprint:: @ 8D70528 +gMonFootprint_Gengar:: @ 8D70528 .incbin "graphics/pokemon/gengar/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_onix_still_front_pic:: @ 8D70548 +gMonFrontPic_Onix:: @ 8D70548 .incbin "graphics/pokemon/onix/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_onix_palette:: @ 8D70A18 +gMonPalette_Onix:: @ 8D70A18 .incbin "graphics/pokemon/onix/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_onix_back_pic:: @ 8D70A34 +gMonBackPic_Onix:: @ 8D70A34 .incbin "graphics/pokemon/onix/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_onix_shiny_palette:: @ 8D70DB0 +gMonShinyPalette_Onix:: @ 8D70DB0 .incbin "graphics/pokemon/onix/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_onix_icon:: @ 8D70DCC +gMonIcon_Onix:: @ 8D70DCC .incbin "graphics/pokemon/onix/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_onix_footprint:: @ 8D711CC +gMonFootprint_Onix:: @ 8D711CC .incbin "graphics/pokemon/onix/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_drowzee_still_front_pic:: @ 8D711EC +gMonFrontPic_Drowzee:: @ 8D711EC .incbin "graphics/pokemon/drowzee/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_drowzee_palette:: @ 8D7152C +gMonPalette_Drowzee:: @ 8D7152C .incbin "graphics/pokemon/drowzee/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_drowzee_back_pic:: @ 8D71550 +gMonBackPic_Drowzee:: @ 8D71550 .incbin "graphics/pokemon/drowzee/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_drowzee_shiny_palette:: @ 8D7178C +gMonShinyPalette_Drowzee:: @ 8D7178C .incbin "graphics/pokemon/drowzee/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_drowzee_icon:: @ 8D717B0 +gMonIcon_Drowzee:: @ 8D717B0 .incbin "graphics/pokemon/drowzee/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_drowzee_footprint:: @ 8D71BB0 +gMonFootprint_Drowzee:: @ 8D71BB0 .incbin "graphics/pokemon/drowzee/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_hypno_still_front_pic:: @ 8D71BD0 +gMonFrontPic_Hypno:: @ 8D71BD0 .incbin "graphics/pokemon/hypno/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_hypno_palette:: @ 8D72008 +gMonPalette_Hypno:: @ 8D72008 .incbin "graphics/pokemon/hypno/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_hypno_back_pic:: @ 8D7202C +gMonBackPic_Hypno:: @ 8D7202C .incbin "graphics/pokemon/hypno/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_hypno_shiny_palette:: @ 8D7235C +gMonShinyPalette_Hypno:: @ 8D7235C .incbin "graphics/pokemon/hypno/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_hypno_icon:: @ 8D72380 +gMonIcon_Hypno:: @ 8D72380 .incbin "graphics/pokemon/hypno/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_hypno_footprint:: @ 8D72780 +gMonFootprint_Hypno:: @ 8D72780 .incbin "graphics/pokemon/hypno/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_krabby_still_front_pic:: @ 8D727A0 +gMonFrontPic_Krabby:: @ 8D727A0 .incbin "graphics/pokemon/krabby/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_krabby_palette:: @ 8D72AC4 +gMonPalette_Krabby:: @ 8D72AC4 .incbin "graphics/pokemon/krabby/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_krabby_back_pic:: @ 8D72AEC +gMonBackPic_Krabby:: @ 8D72AEC .incbin "graphics/pokemon/krabby/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_krabby_shiny_palette:: @ 8D72E78 +gMonShinyPalette_Krabby:: @ 8D72E78 .incbin "graphics/pokemon/krabby/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_krabby_icon:: @ 8D72EA0 +gMonIcon_Krabby:: @ 8D72EA0 .incbin "graphics/pokemon/krabby/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_krabby_footprint:: @ 8D732A0 +gMonFootprint_Krabby:: @ 8D732A0 .incbin "graphics/pokemon/krabby/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_kingler_still_front_pic:: @ 8D732C0 +gMonFrontPic_Kingler:: @ 8D732C0 .incbin "graphics/pokemon/kingler/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_kingler_palette:: @ 8D73740 +gMonPalette_Kingler:: @ 8D73740 .incbin "graphics/pokemon/kingler/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_kingler_back_pic:: @ 8D73768 +gMonBackPic_Kingler:: @ 8D73768 .incbin "graphics/pokemon/kingler/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_kingler_shiny_palette:: @ 8D73AEC +gMonShinyPalette_Kingler:: @ 8D73AEC .incbin "graphics/pokemon/kingler/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_kingler_icon:: @ 8D73B14 +gMonIcon_Kingler:: @ 8D73B14 .incbin "graphics/pokemon/kingler/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_kingler_footprint:: @ 8D73F14 +gMonFootprint_Kingler:: @ 8D73F14 .incbin "graphics/pokemon/kingler/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_voltorb_still_front_pic:: @ 8D73F34 +gMonFrontPic_Voltorb:: @ 8D73F34 .incbin "graphics/pokemon/voltorb/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_voltorb_palette:: @ 8D7413C +gMonPalette_Voltorb:: @ 8D7413C .incbin "graphics/pokemon/voltorb/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_voltorb_back_pic:: @ 8D74160 +gMonBackPic_Voltorb:: @ 8D74160 .incbin "graphics/pokemon/voltorb/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_voltorb_shiny_palette:: @ 8D743D4 +gMonShinyPalette_Voltorb:: @ 8D743D4 .incbin "graphics/pokemon/voltorb/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_voltorb_icon:: @ 8D743F8 +gMonIcon_Voltorb:: @ 8D743F8 .incbin "graphics/pokemon/voltorb/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_voltorb_footprint:: @ 8D747F8 +gMonFootprint_Voltorb:: @ 8D747F8 .incbin "graphics/pokemon/voltorb/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_electrode_still_front_pic:: @ 8D74818 +gMonFrontPic_Electrode:: @ 8D74818 .incbin "graphics/pokemon/electrode/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_electrode_palette:: @ 8D74A84 +gMonPalette_Electrode:: @ 8D74A84 .incbin "graphics/pokemon/electrode/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_electrode_back_pic:: @ 8D74AA8 +gMonBackPic_Electrode:: @ 8D74AA8 .incbin "graphics/pokemon/electrode/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_electrode_shiny_palette:: @ 8D74D18 +gMonShinyPalette_Electrode:: @ 8D74D18 .incbin "graphics/pokemon/electrode/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_electrode_icon:: @ 8D74D3C +gMonIcon_Electrode:: @ 8D74D3C .incbin "graphics/pokemon/electrode/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_electrode_footprint:: @ 8D7513C +gMonFootprint_Electrode:: @ 8D7513C .incbin "graphics/pokemon/electrode/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_exeggcute_still_front_pic:: @ 8D7515C +gMonFrontPic_Exeggcute:: @ 8D7515C .incbin "graphics/pokemon/exeggcute/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_exeggcute_palette:: @ 8D754EC +gMonPalette_Exeggcute:: @ 8D754EC .incbin "graphics/pokemon/exeggcute/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_exeggcute_back_pic:: @ 8D75510 +gMonBackPic_Exeggcute:: @ 8D75510 .incbin "graphics/pokemon/exeggcute/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_exeggcute_shiny_palette:: @ 8D75818 +gMonShinyPalette_Exeggcute:: @ 8D75818 .incbin "graphics/pokemon/exeggcute/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_exeggcute_icon:: @ 8D7583C +gMonIcon_Exeggcute:: @ 8D7583C .incbin "graphics/pokemon/exeggcute/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_exeggcute_footprint:: @ 8D75C3C +gMonFootprint_Exeggcute:: @ 8D75C3C .incbin "graphics/pokemon/exeggcute/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_exeggutor_still_front_pic:: @ 8D75C5C +gMonFrontPic_Exeggutor:: @ 8D75C5C .incbin "graphics/pokemon/exeggutor/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_exeggutor_palette:: @ 8D760AC +gMonPalette_Exeggutor:: @ 8D760AC .incbin "graphics/pokemon/exeggutor/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_exeggutor_back_pic:: @ 8D760D4 +gMonBackPic_Exeggutor:: @ 8D760D4 .incbin "graphics/pokemon/exeggutor/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_exeggutor_shiny_palette:: @ 8D764A0 +gMonShinyPalette_Exeggutor:: @ 8D764A0 .incbin "graphics/pokemon/exeggutor/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_exeggutor_icon:: @ 8D764C8 +gMonIcon_Exeggutor:: @ 8D764C8 .incbin "graphics/pokemon/exeggutor/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_exeggutor_footprint:: @ 8D768C8 +gMonFootprint_Exeggutor:: @ 8D768C8 .incbin "graphics/pokemon/exeggutor/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_cubone_still_front_pic:: @ 8D768E8 +gMonFrontPic_Cubone:: @ 8D768E8 .incbin "graphics/pokemon/cubone/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_cubone_palette:: @ 8D76BA4 +gMonPalette_Cubone:: @ 8D76BA4 .incbin "graphics/pokemon/cubone/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_cubone_back_pic:: @ 8D76BCC +gMonBackPic_Cubone:: @ 8D76BCC .incbin "graphics/pokemon/cubone/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_cubone_shiny_palette:: @ 8D76F0C +gMonShinyPalette_Cubone:: @ 8D76F0C .incbin "graphics/pokemon/cubone/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_cubone_icon:: @ 8D76F34 +gMonIcon_Cubone:: @ 8D76F34 .incbin "graphics/pokemon/cubone/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_cubone_footprint:: @ 8D77334 +gMonFootprint_Cubone:: @ 8D77334 .incbin "graphics/pokemon/cubone/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_marowak_still_front_pic:: @ 8D77354 +gMonFrontPic_Marowak:: @ 8D77354 .incbin "graphics/pokemon/marowak/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_marowak_palette:: @ 8D776D4 +gMonPalette_Marowak:: @ 8D776D4 .incbin "graphics/pokemon/marowak/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_marowak_back_pic:: @ 8D776FC +gMonBackPic_Marowak:: @ 8D776FC .incbin "graphics/pokemon/marowak/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_marowak_shiny_palette:: @ 8D77A10 +gMonShinyPalette_Marowak:: @ 8D77A10 .incbin "graphics/pokemon/marowak/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_marowak_icon:: @ 8D77A38 +gMonIcon_Marowak:: @ 8D77A38 .incbin "graphics/pokemon/marowak/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_marowak_footprint:: @ 8D77E38 +gMonFootprint_Marowak:: @ 8D77E38 .incbin "graphics/pokemon/marowak/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_hitmonlee_still_front_pic:: @ 8D77E58 +gMonFrontPic_Hitmonlee:: @ 8D77E58 .incbin "graphics/pokemon/hitmonlee/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_hitmonlee_palette:: @ 8D781CC +gMonPalette_Hitmonlee:: @ 8D781CC .incbin "graphics/pokemon/hitmonlee/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_hitmonlee_back_pic:: @ 8D781F4 +gMonBackPic_Hitmonlee:: @ 8D781F4 .incbin "graphics/pokemon/hitmonlee/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_hitmonlee_shiny_palette:: @ 8D78498 +gMonShinyPalette_Hitmonlee:: @ 8D78498 .incbin "graphics/pokemon/hitmonlee/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_hitmonlee_icon:: @ 8D784C0 +gMonIcon_Hitmonlee:: @ 8D784C0 .incbin "graphics/pokemon/hitmonlee/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_hitmonlee_footprint:: @ 8D788C0 +gMonFootprint_Hitmonlee:: @ 8D788C0 .incbin "graphics/pokemon/hitmonlee/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_hitmonchan_still_front_pic:: @ 8D788E0 +gMonFrontPic_Hitmonchan:: @ 8D788E0 .incbin "graphics/pokemon/hitmonchan/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_hitmonchan_palette:: @ 8D78C20 +gMonPalette_Hitmonchan:: @ 8D78C20 .incbin "graphics/pokemon/hitmonchan/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_hitmonchan_back_pic:: @ 8D78C48 +gMonBackPic_Hitmonchan:: @ 8D78C48 .incbin "graphics/pokemon/hitmonchan/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_hitmonchan_shiny_palette:: @ 8D78F8C +gMonShinyPalette_Hitmonchan:: @ 8D78F8C .incbin "graphics/pokemon/hitmonchan/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_hitmonchan_icon:: @ 8D78FB4 +gMonIcon_Hitmonchan:: @ 8D78FB4 .incbin "graphics/pokemon/hitmonchan/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_hitmonchan_footprint:: @ 8D793B4 +gMonFootprint_Hitmonchan:: @ 8D793B4 .incbin "graphics/pokemon/hitmonchan/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_lickitung_still_front_pic:: @ 8D793D4 +gMonFrontPic_Lickitung:: @ 8D793D4 .incbin "graphics/pokemon/lickitung/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_lickitung_palette:: @ 8D797AC +gMonPalette_Lickitung:: @ 8D797AC .incbin "graphics/pokemon/lickitung/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_lickitung_back_pic:: @ 8D797D4 +gMonBackPic_Lickitung:: @ 8D797D4 .incbin "graphics/pokemon/lickitung/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_lickitung_shiny_palette:: @ 8D79A78 +gMonShinyPalette_Lickitung:: @ 8D79A78 .incbin "graphics/pokemon/lickitung/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_lickitung_icon:: @ 8D79AA0 +gMonIcon_Lickitung:: @ 8D79AA0 .incbin "graphics/pokemon/lickitung/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_lickitung_footprint:: @ 8D79EA0 +gMonFootprint_Lickitung:: @ 8D79EA0 .incbin "graphics/pokemon/lickitung/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_koffing_still_front_pic:: @ 8D79EC0 +gMonFrontPic_Koffing:: @ 8D79EC0 .incbin "graphics/pokemon/koffing/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_koffing_palette:: @ 8D7A1C0 +gMonPalette_Koffing:: @ 8D7A1C0 .incbin "graphics/pokemon/koffing/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_koffing_back_pic:: @ 8D7A1E8 +gMonBackPic_Koffing:: @ 8D7A1E8 .incbin "graphics/pokemon/koffing/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_koffing_shiny_palette:: @ 8D7A4E8 +gMonShinyPalette_Koffing:: @ 8D7A4E8 .incbin "graphics/pokemon/koffing/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_koffing_icon:: @ 8D7A510 +gMonIcon_Koffing:: @ 8D7A510 .incbin "graphics/pokemon/koffing/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_koffing_footprint:: @ 8D7A910 +gMonFootprint_Koffing:: @ 8D7A910 .incbin "graphics/pokemon/koffing/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_weezing_still_front_pic:: @ 8D7A930 +gMonFrontPic_Weezing:: @ 8D7A930 .incbin "graphics/pokemon/weezing/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_weezing_palette:: @ 8D7ADEC +gMonPalette_Weezing:: @ 8D7ADEC .incbin "graphics/pokemon/weezing/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_weezing_back_pic:: @ 8D7AE14 +gMonBackPic_Weezing:: @ 8D7AE14 .incbin "graphics/pokemon/weezing/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_weezing_shiny_palette:: @ 8D7B198 +gMonShinyPalette_Weezing:: @ 8D7B198 .incbin "graphics/pokemon/weezing/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_weezing_icon:: @ 8D7B1C0 +gMonIcon_Weezing:: @ 8D7B1C0 .incbin "graphics/pokemon/weezing/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_weezing_footprint:: @ 8D7B5C0 +gMonFootprint_Weezing:: @ 8D7B5C0 .incbin "graphics/pokemon/weezing/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_rhyhorn_still_front_pic:: @ 8D7B5E0 +gMonFrontPic_Rhyhorn:: @ 8D7B5E0 .incbin "graphics/pokemon/rhyhorn/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_rhyhorn_palette:: @ 8D7B9DC +gMonPalette_Rhyhorn:: @ 8D7B9DC .incbin "graphics/pokemon/rhyhorn/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_rhyhorn_back_pic:: @ 8D7B9FC +gMonBackPic_Rhyhorn:: @ 8D7B9FC .incbin "graphics/pokemon/rhyhorn/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_rhyhorn_shiny_palette:: @ 8D7BD44 +gMonShinyPalette_Rhyhorn:: @ 8D7BD44 .incbin "graphics/pokemon/rhyhorn/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_rhyhorn_icon:: @ 8D7BD64 +gMonIcon_Rhyhorn:: @ 8D7BD64 .incbin "graphics/pokemon/rhyhorn/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_rhyhorn_footprint:: @ 8D7C164 +gMonFootprint_Rhyhorn:: @ 8D7C164 .incbin "graphics/pokemon/rhyhorn/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_rhydon_still_front_pic:: @ 8D7C184 +gMonFrontPic_Rhydon:: @ 8D7C184 .incbin "graphics/pokemon/rhydon/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_rhydon_palette:: @ 8D7C678 +gMonPalette_Rhydon:: @ 8D7C678 .incbin "graphics/pokemon/rhydon/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_rhydon_back_pic:: @ 8D7C6A0 +gMonBackPic_Rhydon:: @ 8D7C6A0 .incbin "graphics/pokemon/rhydon/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_rhydon_shiny_palette:: @ 8D7CAF0 +gMonShinyPalette_Rhydon:: @ 8D7CAF0 .incbin "graphics/pokemon/rhydon/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_rhydon_icon:: @ 8D7CB18 +gMonIcon_Rhydon:: @ 8D7CB18 .incbin "graphics/pokemon/rhydon/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_rhydon_footprint:: @ 8D7CF18 +gMonFootprint_Rhydon:: @ 8D7CF18 .incbin "graphics/pokemon/rhydon/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_chansey_still_front_pic:: @ 8D7CF38 +gMonFrontPic_Chansey:: @ 8D7CF38 .incbin "graphics/pokemon/chansey/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_chansey_palette:: @ 8D7D274 +gMonPalette_Chansey:: @ 8D7D274 .incbin "graphics/pokemon/chansey/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_chansey_back_pic:: @ 8D7D298 +gMonBackPic_Chansey:: @ 8D7D298 .incbin "graphics/pokemon/chansey/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_chansey_shiny_palette:: @ 8D7D4E8 +gMonShinyPalette_Chansey:: @ 8D7D4E8 .incbin "graphics/pokemon/chansey/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_chansey_icon:: @ 8D7D50C +gMonIcon_Chansey:: @ 8D7D50C .incbin "graphics/pokemon/chansey/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_chansey_footprint:: @ 8D7D90C +gMonFootprint_Chansey:: @ 8D7D90C .incbin "graphics/pokemon/chansey/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_tangela_still_front_pic:: @ 8D7D92C +gMonFrontPic_Tangela:: @ 8D7D92C .incbin "graphics/pokemon/tangela/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_tangela_palette:: @ 8D7DD00 +gMonPalette_Tangela:: @ 8D7DD00 .incbin "graphics/pokemon/tangela/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_tangela_back_pic:: @ 8D7DD24 +gMonBackPic_Tangela:: @ 8D7DD24 .incbin "graphics/pokemon/tangela/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_tangela_shiny_palette:: @ 8D7E0D0 +gMonShinyPalette_Tangela:: @ 8D7E0D0 .incbin "graphics/pokemon/tangela/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_tangela_icon:: @ 8D7E0F4 +gMonIcon_Tangela:: @ 8D7E0F4 .incbin "graphics/pokemon/tangela/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_tangela_footprint:: @ 8D7E4F4 +gMonFootprint_Tangela:: @ 8D7E4F4 .incbin "graphics/pokemon/tangela/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_kangaskhan_still_front_pic:: @ 8D7E514 +gMonFrontPic_Kangaskhan:: @ 8D7E514 .incbin "graphics/pokemon/kangaskhan/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_kangaskhan_palette:: @ 8D7E9BC +gMonPalette_Kangaskhan:: @ 8D7E9BC .incbin "graphics/pokemon/kangaskhan/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_kangaskhan_back_pic:: @ 8D7E9E4 +gMonBackPic_Kangaskhan:: @ 8D7E9E4 .incbin "graphics/pokemon/kangaskhan/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_kangaskhan_shiny_palette:: @ 8D7EE14 +gMonShinyPalette_Kangaskhan:: @ 8D7EE14 .incbin "graphics/pokemon/kangaskhan/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_kangaskhan_icon:: @ 8D7EE3C +gMonIcon_Kangaskhan:: @ 8D7EE3C .incbin "graphics/pokemon/kangaskhan/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_kangaskhan_footprint:: @ 8D7F23C +gMonFootprint_Kangaskhan:: @ 8D7F23C .incbin "graphics/pokemon/kangaskhan/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_horsea_still_front_pic:: @ 8D7F25C +gMonFrontPic_Horsea:: @ 8D7F25C .incbin "graphics/pokemon/horsea/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_horsea_palette:: @ 8D7F4C8 +gMonPalette_Horsea:: @ 8D7F4C8 .incbin "graphics/pokemon/horsea/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_horsea_back_pic:: @ 8D7F4F0 +gMonBackPic_Horsea:: @ 8D7F4F0 .incbin "graphics/pokemon/horsea/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_horsea_shiny_palette:: @ 8D7F7D0 +gMonShinyPalette_Horsea:: @ 8D7F7D0 .incbin "graphics/pokemon/horsea/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_horsea_icon:: @ 8D7F7F8 +gMonIcon_Horsea:: @ 8D7F7F8 .incbin "graphics/pokemon/horsea/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_horsea_footprint:: @ 8D7FBF8 +gMonFootprint_Horsea:: @ 8D7FBF8 .incbin "graphics/pokemon/horsea/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_seadra_still_front_pic:: @ 8D7FC18 +gMonFrontPic_Seadra:: @ 8D7FC18 .incbin "graphics/pokemon/seadra/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_seadra_palette:: @ 8D7FFA0 +gMonPalette_Seadra:: @ 8D7FFA0 .incbin "graphics/pokemon/seadra/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_seadra_back_pic:: @ 8D7FFC8 +gMonBackPic_Seadra:: @ 8D7FFC8 .incbin "graphics/pokemon/seadra/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_seadra_shiny_palette:: @ 8D80368 +gMonShinyPalette_Seadra:: @ 8D80368 .incbin "graphics/pokemon/seadra/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_seadra_icon:: @ 8D80390 +gMonIcon_Seadra:: @ 8D80390 .incbin "graphics/pokemon/seadra/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_seadra_footprint:: @ 8D80790 +gMonFootprint_Seadra:: @ 8D80790 .incbin "graphics/pokemon/seadra/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_goldeen_still_front_pic:: @ 8D807B0 +gMonFrontPic_Goldeen:: @ 8D807B0 .incbin "graphics/pokemon/goldeen/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_goldeen_palette:: @ 8D80B18 +gMonPalette_Goldeen:: @ 8D80B18 .incbin "graphics/pokemon/goldeen/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_goldeen_back_pic:: @ 8D80B40 +gMonBackPic_Goldeen:: @ 8D80B40 .incbin "graphics/pokemon/goldeen/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_goldeen_shiny_palette:: @ 8D80EB0 +gMonShinyPalette_Goldeen:: @ 8D80EB0 .incbin "graphics/pokemon/goldeen/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_goldeen_icon:: @ 8D80ED8 +gMonIcon_Goldeen:: @ 8D80ED8 .incbin "graphics/pokemon/goldeen/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_goldeen_footprint:: @ 8D812D8 +gMonFootprint_Goldeen:: @ 8D812D8 .incbin "graphics/pokemon/goldeen/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_seaking_still_front_pic:: @ 8D812F8 +gMonFrontPic_Seaking:: @ 8D812F8 .incbin "graphics/pokemon/seaking/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_seaking_palette:: @ 8D8176C +gMonPalette_Seaking:: @ 8D8176C .incbin "graphics/pokemon/seaking/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_seaking_back_pic:: @ 8D81794 +gMonBackPic_Seaking:: @ 8D81794 .incbin "graphics/pokemon/seaking/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_seaking_shiny_palette:: @ 8D81AE4 +gMonShinyPalette_Seaking:: @ 8D81AE4 .incbin "graphics/pokemon/seaking/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_seaking_icon:: @ 8D81B0C +gMonIcon_Seaking:: @ 8D81B0C .incbin "graphics/pokemon/seaking/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_seaking_footprint:: @ 8D81F0C +gMonFootprint_Seaking:: @ 8D81F0C .incbin "graphics/pokemon/seaking/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_staryu_still_front_pic:: @ 8D81F2C +gMonFrontPic_Staryu:: @ 8D81F2C .incbin "graphics/pokemon/staryu/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_staryu_palette:: @ 8D821DC +gMonPalette_Staryu:: @ 8D821DC .incbin "graphics/pokemon/staryu/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_staryu_back_pic:: @ 8D82204 +gMonBackPic_Staryu:: @ 8D82204 .incbin "graphics/pokemon/staryu/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_staryu_shiny_palette:: @ 8D8246C +gMonShinyPalette_Staryu:: @ 8D8246C .incbin "graphics/pokemon/staryu/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_staryu_icon:: @ 8D82494 +gMonIcon_Staryu:: @ 8D82494 .incbin "graphics/pokemon/staryu/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_staryu_footprint:: @ 8D82894 +gMonFootprint_Staryu:: @ 8D82894 .incbin "graphics/pokemon/staryu/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_starmie_still_front_pic:: @ 8D828B4 +gMonFrontPic_Starmie:: @ 8D828B4 .incbin "graphics/pokemon/starmie/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_starmie_palette:: @ 8D82C54 +gMonPalette_Starmie:: @ 8D82C54 .incbin "graphics/pokemon/starmie/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_starmie_back_pic:: @ 8D82C7C +gMonBackPic_Starmie:: @ 8D82C7C .incbin "graphics/pokemon/starmie/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_starmie_shiny_palette:: @ 8D82F20 +gMonShinyPalette_Starmie:: @ 8D82F20 .incbin "graphics/pokemon/starmie/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_starmie_icon:: @ 8D82F48 +gMonIcon_Starmie:: @ 8D82F48 .incbin "graphics/pokemon/starmie/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_starmie_footprint:: @ 8D83348 +gMonFootprint_Starmie:: @ 8D83348 .incbin "graphics/pokemon/starmie/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_mr_mime_still_front_pic:: @ 8D83368 +gMonFrontPic_Mrmime:: @ 8D83368 .incbin "graphics/pokemon/mr_mime/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_mr_mime_palette:: @ 8D83724 +gMonPalette_Mrmime:: @ 8D83724 .incbin "graphics/pokemon/mr_mime/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_mr_mime_back_pic:: @ 8D8374C +gMonBackPic_Mrmime:: @ 8D8374C .incbin "graphics/pokemon/mr_mime/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_mr_mime_shiny_palette:: @ 8D83A80 +gMonShinyPalette_Mrmime:: @ 8D83A80 .incbin "graphics/pokemon/mr_mime/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_mr_mime_icon:: @ 8D83AA8 +gMonIcon_Mrmime:: @ 8D83AA8 .incbin "graphics/pokemon/mr_mime/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_mr_mime_footprint:: @ 8D83EA8 +gMonFootprint_Mrmime:: @ 8D83EA8 .incbin "graphics/pokemon/mr_mime/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_scyther_still_front_pic:: @ 8D83EC8 +gMonFrontPic_Scyther:: @ 8D83EC8 .incbin "graphics/pokemon/scyther/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_scyther_palette:: @ 8D842F0 +gMonPalette_Scyther:: @ 8D842F0 .incbin "graphics/pokemon/scyther/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_scyther_back_pic:: @ 8D84318 +gMonBackPic_Scyther:: @ 8D84318 .incbin "graphics/pokemon/scyther/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_scyther_shiny_palette:: @ 8D84730 +gMonShinyPalette_Scyther:: @ 8D84730 .incbin "graphics/pokemon/scyther/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_scyther_icon:: @ 8D84758 +gMonIcon_Scyther:: @ 8D84758 .incbin "graphics/pokemon/scyther/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_scyther_footprint:: @ 8D84B58 +gMonFootprint_Scyther:: @ 8D84B58 .incbin "graphics/pokemon/scyther/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_jynx_still_front_pic:: @ 8D84B78 +gMonFrontPic_Jynx:: @ 8D84B78 .incbin "graphics/pokemon/jynx/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_jynx_palette:: @ 8D84F44 +gMonPalette_Jynx:: @ 8D84F44 .incbin "graphics/pokemon/jynx/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_jynx_back_pic:: @ 8D84F6C +gMonBackPic_Jynx:: @ 8D84F6C .incbin "graphics/pokemon/jynx/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_jynx_shiny_palette:: @ 8D85258 +gMonShinyPalette_Jynx:: @ 8D85258 .incbin "graphics/pokemon/jynx/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_jynx_icon:: @ 8D85280 +gMonIcon_Jynx:: @ 8D85280 .incbin "graphics/pokemon/jynx/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_jynx_footprint:: @ 8D85680 +gMonFootprint_Jynx:: @ 8D85680 .incbin "graphics/pokemon/jynx/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_electabuzz_still_front_pic:: @ 8D856A0 +gMonFrontPic_Electabuzz:: @ 8D856A0 .incbin "graphics/pokemon/electabuzz/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_electabuzz_palette:: @ 8D85AF8 +gMonPalette_Electabuzz:: @ 8D85AF8 .incbin "graphics/pokemon/electabuzz/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_electabuzz_back_pic:: @ 8D85B20 +gMonBackPic_Electabuzz:: @ 8D85B20 .incbin "graphics/pokemon/electabuzz/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_electabuzz_shiny_palette:: @ 8D85E30 +gMonShinyPalette_Electabuzz:: @ 8D85E30 .incbin "graphics/pokemon/electabuzz/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_electabuzz_icon:: @ 8D85E58 +gMonIcon_Electabuzz:: @ 8D85E58 .incbin "graphics/pokemon/electabuzz/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_electabuzz_footprint:: @ 8D86258 +gMonFootprint_Electabuzz:: @ 8D86258 .incbin "graphics/pokemon/electabuzz/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_magmar_still_front_pic:: @ 8D86278 +gMonFrontPic_Magmar:: @ 8D86278 .incbin "graphics/pokemon/magmar/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_magmar_palette:: @ 8D866A8 +gMonPalette_Magmar:: @ 8D866A8 .incbin "graphics/pokemon/magmar/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_magmar_back_pic:: @ 8D866D0 +gMonBackPic_Magmar:: @ 8D866D0 .incbin "graphics/pokemon/magmar/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_magmar_shiny_palette:: @ 8D86A08 +gMonShinyPalette_Magmar:: @ 8D86A08 .incbin "graphics/pokemon/magmar/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_magmar_icon:: @ 8D86A30 +gMonIcon_Magmar:: @ 8D86A30 .incbin "graphics/pokemon/magmar/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_magmar_footprint:: @ 8D86E30 +gMonFootprint_Magmar:: @ 8D86E30 .incbin "graphics/pokemon/magmar/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_pinsir_still_front_pic:: @ 8D86E50 +gMonFrontPic_Pinsir:: @ 8D86E50 .incbin "graphics/pokemon/pinsir/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_pinsir_palette:: @ 8D87280 +gMonPalette_Pinsir:: @ 8D87280 .incbin "graphics/pokemon/pinsir/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_pinsir_back_pic:: @ 8D872A4 +gMonBackPic_Pinsir:: @ 8D872A4 .incbin "graphics/pokemon/pinsir/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_pinsir_shiny_palette:: @ 8D875F8 +gMonShinyPalette_Pinsir:: @ 8D875F8 .incbin "graphics/pokemon/pinsir/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_pinsir_icon:: @ 8D8761C +gMonIcon_Pinsir:: @ 8D8761C .incbin "graphics/pokemon/pinsir/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_pinsir_footprint:: @ 8D87A1C +gMonFootprint_Pinsir:: @ 8D87A1C .incbin "graphics/pokemon/pinsir/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_tauros_still_front_pic:: @ 8D87A3C +gMonFrontPic_Tauros:: @ 8D87A3C .incbin "graphics/pokemon/tauros/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_tauros_palette:: @ 8D87E9C +gMonPalette_Tauros:: @ 8D87E9C .incbin "graphics/pokemon/tauros/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_tauros_back_pic:: @ 8D87EC4 +gMonBackPic_Tauros:: @ 8D87EC4 .incbin "graphics/pokemon/tauros/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_tauros_shiny_palette:: @ 8D88178 +gMonShinyPalette_Tauros:: @ 8D88178 .incbin "graphics/pokemon/tauros/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_tauros_icon:: @ 8D881A0 +gMonIcon_Tauros:: @ 8D881A0 .incbin "graphics/pokemon/tauros/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_tauros_footprint:: @ 8D885A0 +gMonFootprint_Tauros:: @ 8D885A0 .incbin "graphics/pokemon/tauros/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_magikarp_still_front_pic:: @ 8D885C0 +gMonFrontPic_Magikarp:: @ 8D885C0 .incbin "graphics/pokemon/magikarp/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_magikarp_palette:: @ 8D88908 +gMonPalette_Magikarp:: @ 8D88908 .incbin "graphics/pokemon/magikarp/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_magikarp_back_pic:: @ 8D88930 +gMonBackPic_Magikarp:: @ 8D88930 .incbin "graphics/pokemon/magikarp/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_magikarp_shiny_palette:: @ 8D88C60 +gMonShinyPalette_Magikarp:: @ 8D88C60 .incbin "graphics/pokemon/magikarp/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_magikarp_icon:: @ 8D88C88 +gMonIcon_Magikarp:: @ 8D88C88 .incbin "graphics/pokemon/magikarp/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_magikarp_footprint:: @ 8D89088 +gMonFootprint_Magikarp:: @ 8D89088 .incbin "graphics/pokemon/magikarp/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_gyarados_still_front_pic:: @ 8D890A8 +gMonFrontPic_Gyarados:: @ 8D890A8 .incbin "graphics/pokemon/gyarados/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_gyarados_palette:: @ 8D8964C +gMonPalette_Gyarados:: @ 8D8964C .incbin "graphics/pokemon/gyarados/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_gyarados_back_pic:: @ 8D89674 +gMonBackPic_Gyarados:: @ 8D89674 .incbin "graphics/pokemon/gyarados/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_gyarados_shiny_palette:: @ 8D89B2C +gMonShinyPalette_Gyarados:: @ 8D89B2C .incbin "graphics/pokemon/gyarados/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_gyarados_icon:: @ 8D89B54 +gMonIcon_Gyarados:: @ 8D89B54 .incbin "graphics/pokemon/gyarados/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_gyarados_footprint:: @ 8D89F54 +gMonFootprint_Gyarados:: @ 8D89F54 .incbin "graphics/pokemon/gyarados/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_lapras_still_front_pic:: @ 8D89F74 +gMonFrontPic_Lapras:: @ 8D89F74 .incbin "graphics/pokemon/lapras/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_lapras_palette:: @ 8D8A354 +gMonPalette_Lapras:: @ 8D8A354 .incbin "graphics/pokemon/lapras/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_lapras_back_pic:: @ 8D8A37C +gMonBackPic_Lapras:: @ 8D8A37C .incbin "graphics/pokemon/lapras/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_lapras_shiny_palette:: @ 8D8A6C0 +gMonShinyPalette_Lapras:: @ 8D8A6C0 .incbin "graphics/pokemon/lapras/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_lapras_icon:: @ 8D8A6E8 +gMonIcon_Lapras:: @ 8D8A6E8 .incbin "graphics/pokemon/lapras/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_lapras_footprint:: @ 8D8AAE8 +gMonFootprint_Lapras:: @ 8D8AAE8 .incbin "graphics/pokemon/lapras/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_ditto_still_front_pic:: @ 8D8AB08 +gMonFrontPic_Ditto:: @ 8D8AB08 .incbin "graphics/pokemon/ditto/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_ditto_palette:: @ 8D8ACF8 +gMonPalette_Ditto:: @ 8D8ACF8 .incbin "graphics/pokemon/ditto/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_ditto_back_pic:: @ 8D8AD18 +gMonBackPic_Ditto:: @ 8D8AD18 .incbin "graphics/pokemon/ditto/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_ditto_shiny_palette:: @ 8D8AF18 +gMonShinyPalette_Ditto:: @ 8D8AF18 .incbin "graphics/pokemon/ditto/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_ditto_icon:: @ 8D8AF38 +gMonIcon_Ditto:: @ 8D8AF38 .incbin "graphics/pokemon/ditto/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_ditto_footprint:: @ 8D8B338 +gMonFootprint_Ditto:: @ 8D8B338 .incbin "graphics/pokemon/ditto/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_eevee_still_front_pic:: @ 8D8B358 +gMonFrontPic_Eevee:: @ 8D8B358 .incbin "graphics/pokemon/eevee/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_eevee_palette:: @ 8D8B644 +gMonPalette_Eevee:: @ 8D8B644 .incbin "graphics/pokemon/eevee/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_eevee_back_pic:: @ 8D8B66C +gMonBackPic_Eevee:: @ 8D8B66C .incbin "graphics/pokemon/eevee/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_eevee_shiny_palette:: @ 8D8B994 +gMonShinyPalette_Eevee:: @ 8D8B994 .incbin "graphics/pokemon/eevee/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_eevee_icon:: @ 8D8B9BC +gMonIcon_Eevee:: @ 8D8B9BC .incbin "graphics/pokemon/eevee/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_eevee_footprint:: @ 8D8BDBC +gMonFootprint_Eevee:: @ 8D8BDBC .incbin "graphics/pokemon/eevee/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_vaporeon_still_front_pic:: @ 8D8BDDC +gMonFrontPic_Vaporeon:: @ 8D8BDDC .incbin "graphics/pokemon/vaporeon/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_vaporeon_palette:: @ 8D8C170 +gMonPalette_Vaporeon:: @ 8D8C170 .incbin "graphics/pokemon/vaporeon/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_vaporeon_back_pic:: @ 8D8C198 +gMonBackPic_Vaporeon:: @ 8D8C198 .incbin "graphics/pokemon/vaporeon/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_vaporeon_shiny_palette:: @ 8D8C460 +gMonShinyPalette_Vaporeon:: @ 8D8C460 .incbin "graphics/pokemon/vaporeon/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_vaporeon_icon:: @ 8D8C488 +gMonIcon_Vaporeon:: @ 8D8C488 .incbin "graphics/pokemon/vaporeon/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_vaporeon_footprint:: @ 8D8C888 +gMonFootprint_Vaporeon:: @ 8D8C888 .incbin "graphics/pokemon/vaporeon/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_jolteon_still_front_pic:: @ 8D8C8A8 +gMonFrontPic_Jolteon:: @ 8D8C8A8 .incbin "graphics/pokemon/jolteon/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_jolteon_palette:: @ 8D8CBF8 +gMonPalette_Jolteon:: @ 8D8CBF8 .incbin "graphics/pokemon/jolteon/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_jolteon_back_pic:: @ 8D8CC20 +gMonBackPic_Jolteon:: @ 8D8CC20 .incbin "graphics/pokemon/jolteon/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_jolteon_shiny_palette:: @ 8D8CFCC +gMonShinyPalette_Jolteon:: @ 8D8CFCC .incbin "graphics/pokemon/jolteon/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_jolteon_icon:: @ 8D8CFF4 +gMonIcon_Jolteon:: @ 8D8CFF4 .incbin "graphics/pokemon/jolteon/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_jolteon_footprint:: @ 8D8D3F4 +gMonFootprint_Jolteon:: @ 8D8D3F4 .incbin "graphics/pokemon/jolteon/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_flareon_still_front_pic:: @ 8D8D414 +gMonFrontPic_Flareon:: @ 8D8D414 .incbin "graphics/pokemon/flareon/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_flareon_palette:: @ 8D8D798 +gMonPalette_Flareon:: @ 8D8D798 .incbin "graphics/pokemon/flareon/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_flareon_back_pic:: @ 8D8D7C0 +gMonBackPic_Flareon:: @ 8D8D7C0 .incbin "graphics/pokemon/flareon/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_flareon_shiny_palette:: @ 8D8DB50 +gMonShinyPalette_Flareon:: @ 8D8DB50 .incbin "graphics/pokemon/flareon/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_flareon_icon:: @ 8D8DB78 +gMonIcon_Flareon:: @ 8D8DB78 .incbin "graphics/pokemon/flareon/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_flareon_footprint:: @ 8D8DF78 +gMonFootprint_Flareon:: @ 8D8DF78 .incbin "graphics/pokemon/flareon/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_porygon_still_front_pic:: @ 8D8DF98 +gMonFrontPic_Porygon:: @ 8D8DF98 .incbin "graphics/pokemon/porygon/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_porygon_palette:: @ 8D8E250 +gMonPalette_Porygon:: @ 8D8E250 .incbin "graphics/pokemon/porygon/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_porygon_back_pic:: @ 8D8E274 +gMonBackPic_Porygon:: @ 8D8E274 .incbin "graphics/pokemon/porygon/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_porygon_shiny_palette:: @ 8D8E52C +gMonShinyPalette_Porygon:: @ 8D8E52C .incbin "graphics/pokemon/porygon/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_porygon_icon:: @ 8D8E550 +gMonIcon_Porygon:: @ 8D8E550 .incbin "graphics/pokemon/porygon/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_porygon_footprint:: @ 8D8E950 +gMonFootprint_Porygon:: @ 8D8E950 .incbin "graphics/pokemon/porygon/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_omanyte_still_front_pic:: @ 8D8E970 +gMonFrontPic_Omanyte:: @ 8D8E970 .incbin "graphics/pokemon/omanyte/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_omanyte_palette:: @ 8D8EC00 +gMonPalette_Omanyte:: @ 8D8EC00 .incbin "graphics/pokemon/omanyte/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_omanyte_back_pic:: @ 8D8EC28 +gMonBackPic_Omanyte:: @ 8D8EC28 .incbin "graphics/pokemon/omanyte/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_omanyte_shiny_palette:: @ 8D8EF74 +gMonShinyPalette_Omanyte:: @ 8D8EF74 .incbin "graphics/pokemon/omanyte/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_omanyte_icon:: @ 8D8EF9C +gMonIcon_Omanyte:: @ 8D8EF9C .incbin "graphics/pokemon/omanyte/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_omanyte_footprint:: @ 8D8F39C +gMonFootprint_Omanyte:: @ 8D8F39C .incbin "graphics/pokemon/omanyte/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_omastar_still_front_pic:: @ 8D8F3BC +gMonFrontPic_Omastar:: @ 8D8F3BC .incbin "graphics/pokemon/omastar/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_omastar_palette:: @ 8D8F77C +gMonPalette_Omastar:: @ 8D8F77C .incbin "graphics/pokemon/omastar/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_omastar_back_pic:: @ 8D8F7A4 +gMonBackPic_Omastar:: @ 8D8F7A4 .incbin "graphics/pokemon/omastar/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_omastar_shiny_palette:: @ 8D8FAE4 +gMonShinyPalette_Omastar:: @ 8D8FAE4 .incbin "graphics/pokemon/omastar/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_omastar_icon:: @ 8D8FB0C +gMonIcon_Omastar:: @ 8D8FB0C .incbin "graphics/pokemon/omastar/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_omastar_footprint:: @ 8D8FF0C +gMonFootprint_Omastar:: @ 8D8FF0C .incbin "graphics/pokemon/omastar/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_kabuto_still_front_pic:: @ 8D8FF2C +gMonFrontPic_Kabuto:: @ 8D8FF2C .incbin "graphics/pokemon/kabuto/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_kabuto_palette:: @ 8D90154 +gMonPalette_Kabuto:: @ 8D90154 .incbin "graphics/pokemon/kabuto/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_kabuto_back_pic:: @ 8D9017C +gMonBackPic_Kabuto:: @ 8D9017C .incbin "graphics/pokemon/kabuto/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_kabuto_shiny_palette:: @ 8D90414 +gMonShinyPalette_Kabuto:: @ 8D90414 .incbin "graphics/pokemon/kabuto/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_kabuto_icon:: @ 8D9043C +gMonIcon_Kabuto:: @ 8D9043C .incbin "graphics/pokemon/kabuto/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_kabuto_footprint:: @ 8D9083C +gMonFootprint_Kabuto:: @ 8D9083C .incbin "graphics/pokemon/kabuto/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_kabutops_still_front_pic:: @ 8D9085C +gMonFrontPic_Kabutops:: @ 8D9085C .incbin "graphics/pokemon/kabutops/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_kabutops_palette:: @ 8D90C6C +gMonPalette_Kabutops:: @ 8D90C6C .incbin "graphics/pokemon/kabutops/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_kabutops_back_pic:: @ 8D90C90 +gMonBackPic_Kabutops:: @ 8D90C90 .incbin "graphics/pokemon/kabutops/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_kabutops_shiny_palette:: @ 8D91034 +gMonShinyPalette_Kabutops:: @ 8D91034 .incbin "graphics/pokemon/kabutops/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_kabutops_icon:: @ 8D91058 +gMonIcon_Kabutops:: @ 8D91058 .incbin "graphics/pokemon/kabutops/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_kabutops_footprint:: @ 8D91458 +gMonFootprint_Kabutops:: @ 8D91458 .incbin "graphics/pokemon/kabutops/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_aerodactyl_still_front_pic:: @ 8D91478 +gMonFrontPic_Aerodactyl:: @ 8D91478 .incbin "graphics/pokemon/aerodactyl/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_aerodactyl_palette:: @ 8D918C8 +gMonPalette_Aerodactyl:: @ 8D918C8 .incbin "graphics/pokemon/aerodactyl/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_aerodactyl_back_pic:: @ 8D918F0 +gMonBackPic_Aerodactyl:: @ 8D918F0 .incbin "graphics/pokemon/aerodactyl/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_aerodactyl_shiny_palette:: @ 8D91BF4 +gMonShinyPalette_Aerodactyl:: @ 8D91BF4 .incbin "graphics/pokemon/aerodactyl/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_aerodactyl_icon:: @ 8D91C1C +gMonIcon_Aerodactyl:: @ 8D91C1C .incbin "graphics/pokemon/aerodactyl/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_aerodactyl_footprint:: @ 8D9201C +gMonFootprint_Aerodactyl:: @ 8D9201C .incbin "graphics/pokemon/aerodactyl/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_snorlax_still_front_pic:: @ 8D9203C +gMonFrontPic_Snorlax:: @ 8D9203C .incbin "graphics/pokemon/snorlax/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_snorlax_palette:: @ 8D92410 +gMonPalette_Snorlax:: @ 8D92410 .incbin "graphics/pokemon/snorlax/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_snorlax_back_pic:: @ 8D92438 +gMonBackPic_Snorlax:: @ 8D92438 .incbin "graphics/pokemon/snorlax/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_snorlax_shiny_palette:: @ 8D92654 +gMonShinyPalette_Snorlax:: @ 8D92654 .incbin "graphics/pokemon/snorlax/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_snorlax_icon:: @ 8D9267C +gMonIcon_Snorlax:: @ 8D9267C .incbin "graphics/pokemon/snorlax/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_snorlax_footprint:: @ 8D92A7C +gMonFootprint_Snorlax:: @ 8D92A7C .incbin "graphics/pokemon/snorlax/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_articuno_still_front_pic:: @ 8D92A9C +gMonFrontPic_Articuno:: @ 8D92A9C .incbin "graphics/pokemon/articuno/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_articuno_palette:: @ 8D92F94 +gMonPalette_Articuno:: @ 8D92F94 .incbin "graphics/pokemon/articuno/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_articuno_back_pic:: @ 8D92FBC +gMonBackPic_Articuno:: @ 8D92FBC .incbin "graphics/pokemon/articuno/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_articuno_shiny_palette:: @ 8D93218 +gMonShinyPalette_Articuno:: @ 8D93218 .incbin "graphics/pokemon/articuno/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_articuno_icon:: @ 8D93240 +gMonIcon_Articuno:: @ 8D93240 .incbin "graphics/pokemon/articuno/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_articuno_footprint:: @ 8D93640 +gMonFootprint_Articuno:: @ 8D93640 .incbin "graphics/pokemon/articuno/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_zapdos_still_front_pic:: @ 8D93660 +gMonFrontPic_Zapdos:: @ 8D93660 .incbin "graphics/pokemon/zapdos/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_zapdos_palette:: @ 8D93AB0 +gMonPalette_Zapdos:: @ 8D93AB0 .incbin "graphics/pokemon/zapdos/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_zapdos_back_pic:: @ 8D93AD8 +gMonBackPic_Zapdos:: @ 8D93AD8 .incbin "graphics/pokemon/zapdos/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_zapdos_shiny_palette:: @ 8D93E14 +gMonShinyPalette_Zapdos:: @ 8D93E14 .incbin "graphics/pokemon/zapdos/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_zapdos_icon:: @ 8D93E3C +gMonIcon_Zapdos:: @ 8D93E3C .incbin "graphics/pokemon/zapdos/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_zapdos_footprint:: @ 8D9423C +gMonFootprint_Zapdos:: @ 8D9423C .incbin "graphics/pokemon/zapdos/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_moltres_still_front_pic:: @ 8D9425C +gMonFrontPic_Moltres:: @ 8D9425C .incbin "graphics/pokemon/moltres/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_moltres_palette:: @ 8D94728 +gMonPalette_Moltres:: @ 8D94728 .incbin "graphics/pokemon/moltres/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_moltres_back_pic:: @ 8D94750 +gMonBackPic_Moltres:: @ 8D94750 .incbin "graphics/pokemon/moltres/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_moltres_shiny_palette:: @ 8D94A8C +gMonShinyPalette_Moltres:: @ 8D94A8C .incbin "graphics/pokemon/moltres/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_moltres_icon:: @ 8D94AB4 +gMonIcon_Moltres:: @ 8D94AB4 .incbin "graphics/pokemon/moltres/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_moltres_footprint:: @ 8D94EB4 +gMonFootprint_Moltres:: @ 8D94EB4 .incbin "graphics/pokemon/moltres/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_dratini_still_front_pic:: @ 8D94ED4 +gMonFrontPic_Dratini:: @ 8D94ED4 .incbin "graphics/pokemon/dratini/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_dratini_palette:: @ 8D95190 +gMonPalette_Dratini:: @ 8D95190 .incbin "graphics/pokemon/dratini/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_dratini_back_pic:: @ 8D951B4 +gMonBackPic_Dratini:: @ 8D951B4 .incbin "graphics/pokemon/dratini/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_dratini_shiny_palette:: @ 8D95444 +gMonShinyPalette_Dratini:: @ 8D95444 .incbin "graphics/pokemon/dratini/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_dratini_icon:: @ 8D95468 +gMonIcon_Dratini:: @ 8D95468 .incbin "graphics/pokemon/dratini/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_dratini_footprint:: @ 8D95868 +gMonFootprint_Dratini:: @ 8D95868 .incbin "graphics/pokemon/dratini/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_dragonair_still_front_pic:: @ 8D95888 +gMonFrontPic_Dragonair:: @ 8D95888 .incbin "graphics/pokemon/dragonair/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_dragonair_palette:: @ 8D95C20 +gMonPalette_Dragonair:: @ 8D95C20 .incbin "graphics/pokemon/dragonair/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_dragonair_back_pic:: @ 8D95C48 +gMonBackPic_Dragonair:: @ 8D95C48 .incbin "graphics/pokemon/dragonair/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_dragonair_shiny_palette:: @ 8D95F58 +gMonShinyPalette_Dragonair:: @ 8D95F58 .incbin "graphics/pokemon/dragonair/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_dragonair_icon:: @ 8D95F80 +gMonIcon_Dragonair:: @ 8D95F80 .incbin "graphics/pokemon/dragonair/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_dragonair_footprint:: @ 8D96380 +gMonFootprint_Dragonair:: @ 8D96380 .incbin "graphics/pokemon/dragonair/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_dragonite_still_front_pic:: @ 8D963A0 +gMonFrontPic_Dragonite:: @ 8D963A0 .incbin "graphics/pokemon/dragonite/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_dragonite_palette:: @ 8D968F0 +gMonPalette_Dragonite:: @ 8D968F0 .incbin "graphics/pokemon/dragonite/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_dragonite_back_pic:: @ 8D96918 +gMonBackPic_Dragonite:: @ 8D96918 .incbin "graphics/pokemon/dragonite/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_dragonite_shiny_palette:: @ 8D96C10 +gMonShinyPalette_Dragonite:: @ 8D96C10 .incbin "graphics/pokemon/dragonite/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_dragonite_icon:: @ 8D96C38 +gMonIcon_Dragonite:: @ 8D96C38 .incbin "graphics/pokemon/dragonite/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_dragonite_footprint:: @ 8D97038 +gMonFootprint_Dragonite:: @ 8D97038 .incbin "graphics/pokemon/dragonite/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_mewtwo_still_front_pic:: @ 8D97058 +gMonFrontPic_Mewtwo:: @ 8D97058 .incbin "graphics/pokemon/mewtwo/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_mewtwo_palette:: @ 8D97494 +gMonPalette_Mewtwo:: @ 8D97494 .incbin "graphics/pokemon/mewtwo/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_mewtwo_back_pic:: @ 8D974B8 +gMonBackPic_Mewtwo:: @ 8D974B8 .incbin "graphics/pokemon/mewtwo/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_mewtwo_shiny_palette:: @ 8D97884 +gMonShinyPalette_Mewtwo:: @ 8D97884 .incbin "graphics/pokemon/mewtwo/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_mewtwo_icon:: @ 8D978A8 +gMonIcon_Mewtwo:: @ 8D978A8 .incbin "graphics/pokemon/mewtwo/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_mewtwo_footprint:: @ 8D97CA8 +gMonFootprint_Mewtwo:: @ 8D97CA8 .incbin "graphics/pokemon/mewtwo/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_mew_still_front_pic:: @ 8D97CC8 +gMonFrontPic_Mew:: @ 8D97CC8 .incbin "graphics/pokemon/mew/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_mew_palette:: @ 8D97F88 +gMonPalette_Mew:: @ 8D97F88 .incbin "graphics/pokemon/mew/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_mew_back_pic:: @ 8D97FAC +gMonBackPic_Mew:: @ 8D97FAC .incbin "graphics/pokemon/mew/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_mew_shiny_palette:: @ 8D982FC +gMonShinyPalette_Mew:: @ 8D982FC .incbin "graphics/pokemon/mew/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_mew_icon:: @ 8D98320 +gMonIcon_Mew:: @ 8D98320 .incbin "graphics/pokemon/mew/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_mew_footprint:: @ 8D98720 +gMonFootprint_Mew:: @ 8D98720 .incbin "graphics/pokemon/mew/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_chikorita_still_front_pic:: @ 8D98740 +gMonFrontPic_Chikorita:: @ 8D98740 .incbin "graphics/pokemon/chikorita/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_chikorita_palette:: @ 8D989A8 +gMonPalette_Chikorita:: @ 8D989A8 .incbin "graphics/pokemon/chikorita/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_chikorita_back_pic:: @ 8D989D0 +gMonBackPic_Chikorita:: @ 8D989D0 .incbin "graphics/pokemon/chikorita/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_chikorita_shiny_palette:: @ 8D98C94 +gMonShinyPalette_Chikorita:: @ 8D98C94 .incbin "graphics/pokemon/chikorita/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_chikorita_icon:: @ 8D98CBC +gMonIcon_Chikorita:: @ 8D98CBC .incbin "graphics/pokemon/chikorita/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_chikorita_footprint:: @ 8D990BC +gMonFootprint_Chikorita:: @ 8D990BC .incbin "graphics/pokemon/chikorita/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_bayleef_still_front_pic:: @ 8D990DC +gMonFrontPic_Bayleef:: @ 8D990DC .incbin "graphics/pokemon/bayleef/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_bayleef_palette:: @ 8D994B0 +gMonPalette_Bayleef:: @ 8D994B0 .incbin "graphics/pokemon/bayleef/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_bayleef_back_pic:: @ 8D994D8 +gMonBackPic_Bayleef:: @ 8D994D8 .incbin "graphics/pokemon/bayleef/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_bayleef_shiny_palette:: @ 8D99868 +gMonShinyPalette_Bayleef:: @ 8D99868 .incbin "graphics/pokemon/bayleef/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_bayleef_icon:: @ 8D99890 +gMonIcon_Bayleef:: @ 8D99890 .incbin "graphics/pokemon/bayleef/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_bayleef_footprint:: @ 8D99C90 +gMonFootprint_Bayleef:: @ 8D99C90 .incbin "graphics/pokemon/bayleef/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_meganium_still_front_pic:: @ 8D99CB0 +gMonFrontPic_Meganium:: @ 8D99CB0 .incbin "graphics/pokemon/meganium/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_meganium_palette:: @ 8D9A20C +gMonPalette_Meganium:: @ 8D9A20C .incbin "graphics/pokemon/meganium/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_meganium_back_pic:: @ 8D9A234 +gMonBackPic_Meganium:: @ 8D9A234 .incbin "graphics/pokemon/meganium/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_meganium_shiny_palette:: @ 8D9A584 +gMonShinyPalette_Meganium:: @ 8D9A584 .incbin "graphics/pokemon/meganium/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_meganium_icon:: @ 8D9A5AC +gMonIcon_Meganium:: @ 8D9A5AC .incbin "graphics/pokemon/meganium/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_meganium_footprint:: @ 8D9A9AC +gMonFootprint_Meganium:: @ 8D9A9AC .incbin "graphics/pokemon/meganium/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_cyndaquil_still_front_pic:: @ 8D9A9CC +gMonFrontPic_Cyndaquil:: @ 8D9A9CC .incbin "graphics/pokemon/cyndaquil/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_cyndaquil_palette:: @ 8D9AC58 +gMonPalette_Cyndaquil:: @ 8D9AC58 .incbin "graphics/pokemon/cyndaquil/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_cyndaquil_back_pic:: @ 8D9AC80 +gMonBackPic_Cyndaquil:: @ 8D9AC80 .incbin "graphics/pokemon/cyndaquil/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_cyndaquil_shiny_palette:: @ 8D9AFAC +gMonShinyPalette_Cyndaquil:: @ 8D9AFAC .incbin "graphics/pokemon/cyndaquil/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_cyndaquil_icon:: @ 8D9AFD4 +gMonIcon_Cyndaquil:: @ 8D9AFD4 .incbin "graphics/pokemon/cyndaquil/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_cyndaquil_footprint:: @ 8D9B3D4 +gMonFootprint_Cyndaquil:: @ 8D9B3D4 .incbin "graphics/pokemon/cyndaquil/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_quilava_still_front_pic:: @ 8D9B3F4 +gMonFrontPic_Quilava:: @ 8D9B3F4 .incbin "graphics/pokemon/quilava/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_quilava_palette:: @ 8D9B710 +gMonPalette_Quilava:: @ 8D9B710 .incbin "graphics/pokemon/quilava/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_quilava_back_pic:: @ 8D9B738 +gMonBackPic_Quilava:: @ 8D9B738 .incbin "graphics/pokemon/quilava/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_quilava_shiny_palette:: @ 8D9BAAC +gMonShinyPalette_Quilava:: @ 8D9BAAC .incbin "graphics/pokemon/quilava/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_quilava_icon:: @ 8D9BAD4 +gMonIcon_Quilava:: @ 8D9BAD4 .incbin "graphics/pokemon/quilava/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_quilava_footprint:: @ 8D9BED4 +gMonFootprint_Quilava:: @ 8D9BED4 .incbin "graphics/pokemon/quilava/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_typhlosion_still_front_pic:: @ 8D9BEF4 +gMonFrontPic_Typhlosion:: @ 8D9BEF4 .incbin "graphics/pokemon/typhlosion/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_typhlosion_palette:: @ 8D9C31C +gMonPalette_Typhlosion:: @ 8D9C31C .incbin "graphics/pokemon/typhlosion/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_typhlosion_back_pic:: @ 8D9C344 +gMonBackPic_Typhlosion:: @ 8D9C344 .incbin "graphics/pokemon/typhlosion/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_typhlosion_shiny_palette:: @ 8D9C748 +gMonShinyPalette_Typhlosion:: @ 8D9C748 .incbin "graphics/pokemon/typhlosion/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_typhlosion_icon:: @ 8D9C770 +gMonIcon_Typhlosion:: @ 8D9C770 .incbin "graphics/pokemon/typhlosion/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_typhlosion_footprint:: @ 8D9CB70 +gMonFootprint_Typhlosion:: @ 8D9CB70 .incbin "graphics/pokemon/typhlosion/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_totodile_still_front_pic:: @ 8D9CB90 +gMonFrontPic_Totodile:: @ 8D9CB90 .incbin "graphics/pokemon/totodile/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_totodile_palette:: @ 8D9CE34 +gMonPalette_Totodile:: @ 8D9CE34 .incbin "graphics/pokemon/totodile/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_totodile_back_pic:: @ 8D9CE5C +gMonBackPic_Totodile:: @ 8D9CE5C .incbin "graphics/pokemon/totodile/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_totodile_shiny_palette:: @ 8D9D13C +gMonShinyPalette_Totodile:: @ 8D9D13C .incbin "graphics/pokemon/totodile/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_totodile_icon:: @ 8D9D164 +gMonIcon_Totodile:: @ 8D9D164 .incbin "graphics/pokemon/totodile/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_totodile_footprint:: @ 8D9D564 +gMonFootprint_Totodile:: @ 8D9D564 .incbin "graphics/pokemon/totodile/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_croconaw_still_front_pic:: @ 8D9D584 +gMonFrontPic_Croconaw:: @ 8D9D584 .incbin "graphics/pokemon/croconaw/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_croconaw_palette:: @ 8D9D8EC +gMonPalette_Croconaw:: @ 8D9D8EC .incbin "graphics/pokemon/croconaw/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_croconaw_back_pic:: @ 8D9D914 +gMonBackPic_Croconaw:: @ 8D9D914 .incbin "graphics/pokemon/croconaw/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_croconaw_shiny_palette:: @ 8D9DC64 +gMonShinyPalette_Croconaw:: @ 8D9DC64 .incbin "graphics/pokemon/croconaw/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_croconaw_icon:: @ 8D9DC8C +gMonIcon_Croconaw:: @ 8D9DC8C .incbin "graphics/pokemon/croconaw/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_croconaw_footprint:: @ 8D9E08C +gMonFootprint_Croconaw:: @ 8D9E08C .incbin "graphics/pokemon/croconaw/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_feraligatr_still_front_pic:: @ 8D9E0AC +gMonFrontPic_Feraligatr:: @ 8D9E0AC .incbin "graphics/pokemon/feraligatr/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_feraligatr_palette:: @ 8D9E618 +gMonPalette_Feraligatr:: @ 8D9E618 .incbin "graphics/pokemon/feraligatr/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_feraligatr_back_pic:: @ 8D9E640 +gMonBackPic_Feraligatr:: @ 8D9E640 .incbin "graphics/pokemon/feraligatr/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_feraligatr_shiny_palette:: @ 8D9EB0C +gMonShinyPalette_Feraligatr:: @ 8D9EB0C .incbin "graphics/pokemon/feraligatr/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_feraligatr_icon:: @ 8D9EB34 +gMonIcon_Feraligatr:: @ 8D9EB34 .incbin "graphics/pokemon/feraligatr/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_feraligatr_footprint:: @ 8D9EF34 +gMonFootprint_Feraligatr:: @ 8D9EF34 .incbin "graphics/pokemon/feraligatr/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_sentret_still_front_pic:: @ 8D9EF54 +gMonFrontPic_Sentret:: @ 8D9EF54 .incbin "graphics/pokemon/sentret/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_sentret_palette:: @ 8D9F230 +gMonPalette_Sentret:: @ 8D9F230 .incbin "graphics/pokemon/sentret/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_sentret_back_pic:: @ 8D9F258 +gMonBackPic_Sentret:: @ 8D9F258 .incbin "graphics/pokemon/sentret/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_sentret_shiny_palette:: @ 8D9F4FC +gMonShinyPalette_Sentret:: @ 8D9F4FC .incbin "graphics/pokemon/sentret/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_sentret_icon:: @ 8D9F524 +gMonIcon_Sentret:: @ 8D9F524 .incbin "graphics/pokemon/sentret/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_sentret_footprint:: @ 8D9F924 +gMonFootprint_Sentret:: @ 8D9F924 .incbin "graphics/pokemon/sentret/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_furret_still_front_pic:: @ 8D9F944 +gMonFrontPic_Furret:: @ 8D9F944 .incbin "graphics/pokemon/furret/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_furret_palette:: @ 8D9FC78 +gMonPalette_Furret:: @ 8D9FC78 .incbin "graphics/pokemon/furret/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_furret_back_pic:: @ 8D9FCA0 +gMonBackPic_Furret:: @ 8D9FCA0 .incbin "graphics/pokemon/furret/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_furret_shiny_palette:: @ 8D9FFC8 +gMonShinyPalette_Furret:: @ 8D9FFC8 .incbin "graphics/pokemon/furret/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_furret_icon:: @ 8D9FFF0 +gMonIcon_Furret:: @ 8D9FFF0 .incbin "graphics/pokemon/furret/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_furret_footprint:: @ 8DA03F0 +gMonFootprint_Furret:: @ 8DA03F0 .incbin "graphics/pokemon/furret/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_hoothoot_still_front_pic:: @ 8DA0410 +gMonFrontPic_Hoothoot:: @ 8DA0410 .incbin "graphics/pokemon/hoothoot/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_hoothoot_palette:: @ 8DA0694 +gMonPalette_Hoothoot:: @ 8DA0694 .incbin "graphics/pokemon/hoothoot/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_hoothoot_back_pic:: @ 8DA06BC +gMonBackPic_Hoothoot:: @ 8DA06BC .incbin "graphics/pokemon/hoothoot/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_hoothoot_shiny_palette:: @ 8DA09C4 +gMonShinyPalette_Hoothoot:: @ 8DA09C4 .incbin "graphics/pokemon/hoothoot/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_hoothoot_icon:: @ 8DA09EC +gMonIcon_Hoothoot:: @ 8DA09EC .incbin "graphics/pokemon/hoothoot/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_hoothoot_footprint:: @ 8DA0DEC +gMonFootprint_Hoothoot:: @ 8DA0DEC .incbin "graphics/pokemon/hoothoot/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_noctowl_still_front_pic:: @ 8DA0E0C +gMonFrontPic_Noctowl:: @ 8DA0E0C .incbin "graphics/pokemon/noctowl/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_noctowl_palette:: @ 8DA1160 +gMonPalette_Noctowl:: @ 8DA1160 .incbin "graphics/pokemon/noctowl/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_noctowl_back_pic:: @ 8DA1188 +gMonBackPic_Noctowl:: @ 8DA1188 .incbin "graphics/pokemon/noctowl/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_noctowl_shiny_palette:: @ 8DA14E4 +gMonShinyPalette_Noctowl:: @ 8DA14E4 .incbin "graphics/pokemon/noctowl/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_noctowl_icon:: @ 8DA150C +gMonIcon_Noctowl:: @ 8DA150C .incbin "graphics/pokemon/noctowl/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_noctowl_footprint:: @ 8DA190C +gMonFootprint_Noctowl:: @ 8DA190C .incbin "graphics/pokemon/noctowl/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_ledyba_still_front_pic:: @ 8DA192C +gMonFrontPic_Ledyba:: @ 8DA192C .incbin "graphics/pokemon/ledyba/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_ledyba_palette:: @ 8DA1C20 +gMonPalette_Ledyba:: @ 8DA1C20 .incbin "graphics/pokemon/ledyba/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_ledyba_back_pic:: @ 8DA1C48 +gMonBackPic_Ledyba:: @ 8DA1C48 .incbin "graphics/pokemon/ledyba/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_ledyba_shiny_palette:: @ 8DA1F78 +gMonShinyPalette_Ledyba:: @ 8DA1F78 .incbin "graphics/pokemon/ledyba/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_ledyba_icon:: @ 8DA1FA0 +gMonIcon_Ledyba:: @ 8DA1FA0 .incbin "graphics/pokemon/ledyba/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_ledyba_footprint:: @ 8DA23A0 +gMonFootprint_Ledyba:: @ 8DA23A0 .incbin "graphics/pokemon/ledyba/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_ledian_still_front_pic:: @ 8DA23C0 +gMonFrontPic_Ledian:: @ 8DA23C0 .incbin "graphics/pokemon/ledian/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_ledian_palette:: @ 8DA2748 +gMonPalette_Ledian:: @ 8DA2748 .incbin "graphics/pokemon/ledian/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_ledian_back_pic:: @ 8DA2770 +gMonBackPic_Ledian:: @ 8DA2770 .incbin "graphics/pokemon/ledian/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_ledian_shiny_palette:: @ 8DA2AC8 +gMonShinyPalette_Ledian:: @ 8DA2AC8 .incbin "graphics/pokemon/ledian/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_ledian_icon:: @ 8DA2AF0 +gMonIcon_Ledian:: @ 8DA2AF0 .incbin "graphics/pokemon/ledian/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_ledian_footprint:: @ 8DA2EF0 +gMonFootprint_Ledian:: @ 8DA2EF0 .incbin "graphics/pokemon/ledian/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_spinarak_still_front_pic:: @ 8DA2F10 +gMonFrontPic_Spinarak:: @ 8DA2F10 .incbin "graphics/pokemon/spinarak/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_spinarak_palette:: @ 8DA3184 +gMonPalette_Spinarak:: @ 8DA3184 .incbin "graphics/pokemon/spinarak/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_spinarak_back_pic:: @ 8DA31AC +gMonBackPic_Spinarak:: @ 8DA31AC .incbin "graphics/pokemon/spinarak/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_spinarak_shiny_palette:: @ 8DA3410 +gMonShinyPalette_Spinarak:: @ 8DA3410 .incbin "graphics/pokemon/spinarak/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_spinarak_icon:: @ 8DA3438 +gMonIcon_Spinarak:: @ 8DA3438 .incbin "graphics/pokemon/spinarak/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_spinarak_footprint:: @ 8DA3838 +gMonFootprint_Spinarak:: @ 8DA3838 .incbin "graphics/pokemon/spinarak/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_ariados_still_front_pic:: @ 8DA3858 +gMonFrontPic_Ariados:: @ 8DA3858 .incbin "graphics/pokemon/ariados/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_ariados_palette:: @ 8DA3C18 +gMonPalette_Ariados:: @ 8DA3C18 .incbin "graphics/pokemon/ariados/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_ariados_back_pic:: @ 8DA3C40 +gMonBackPic_Ariados:: @ 8DA3C40 .incbin "graphics/pokemon/ariados/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_ariados_shiny_palette:: @ 8DA3FB8 +gMonShinyPalette_Ariados:: @ 8DA3FB8 .incbin "graphics/pokemon/ariados/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_ariados_icon:: @ 8DA3FE0 +gMonIcon_Ariados:: @ 8DA3FE0 .incbin "graphics/pokemon/ariados/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_ariados_footprint:: @ 8DA43E0 +gMonFootprint_Ariados:: @ 8DA43E0 .incbin "graphics/pokemon/ariados/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_crobat_still_front_pic:: @ 8DA4400 +gMonFrontPic_Crobat:: @ 8DA4400 .incbin "graphics/pokemon/crobat/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_crobat_palette:: @ 8DA47B0 +gMonPalette_Crobat:: @ 8DA47B0 .incbin "graphics/pokemon/crobat/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_crobat_back_pic:: @ 8DA47D8 +gMonBackPic_Crobat:: @ 8DA47D8 .incbin "graphics/pokemon/crobat/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_crobat_shiny_palette:: @ 8DA4AE0 +gMonShinyPalette_Crobat:: @ 8DA4AE0 .incbin "graphics/pokemon/crobat/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_crobat_icon:: @ 8DA4B08 +gMonIcon_Crobat:: @ 8DA4B08 .incbin "graphics/pokemon/crobat/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_crobat_footprint:: @ 8DA4F08 +gMonFootprint_Crobat:: @ 8DA4F08 .incbin "graphics/pokemon/crobat/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_chinchou_still_front_pic:: @ 8DA4F28 +gMonFrontPic_Chinchou:: @ 8DA4F28 .incbin "graphics/pokemon/chinchou/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_chinchou_palette:: @ 8DA5200 +gMonPalette_Chinchou:: @ 8DA5200 .incbin "graphics/pokemon/chinchou/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_chinchou_back_pic:: @ 8DA5228 +gMonBackPic_Chinchou:: @ 8DA5228 .incbin "graphics/pokemon/chinchou/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_chinchou_shiny_palette:: @ 8DA5520 +gMonShinyPalette_Chinchou:: @ 8DA5520 .incbin "graphics/pokemon/chinchou/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_chinchou_icon:: @ 8DA5548 +gMonIcon_Chinchou:: @ 8DA5548 .incbin "graphics/pokemon/chinchou/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_chinchou_footprint:: @ 8DA5948 +gMonFootprint_Chinchou:: @ 8DA5948 .incbin "graphics/pokemon/chinchou/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_lanturn_still_front_pic:: @ 8DA5968 +gMonFrontPic_Lanturn:: @ 8DA5968 .incbin "graphics/pokemon/lanturn/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_lanturn_palette:: @ 8DA5CD8 +gMonPalette_Lanturn:: @ 8DA5CD8 .incbin "graphics/pokemon/lanturn/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_lanturn_back_pic:: @ 8DA5D00 +gMonBackPic_Lanturn:: @ 8DA5D00 .incbin "graphics/pokemon/lanturn/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_lanturn_shiny_palette:: @ 8DA6000 +gMonShinyPalette_Lanturn:: @ 8DA6000 .incbin "graphics/pokemon/lanturn/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_lanturn_icon:: @ 8DA6028 +gMonIcon_Lanturn:: @ 8DA6028 .incbin "graphics/pokemon/lanturn/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_lanturn_footprint:: @ 8DA6428 +gMonFootprint_Lanturn:: @ 8DA6428 .incbin "graphics/pokemon/lanturn/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_pichu_still_front_pic:: @ 8DA6448 +gMonFrontPic_Pichu:: @ 8DA6448 .incbin "graphics/pokemon/pichu/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_pichu_palette:: @ 8DA6664 +gMonPalette_Pichu:: @ 8DA6664 .incbin "graphics/pokemon/pichu/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_pichu_back_pic:: @ 8DA668C +gMonBackPic_Pichu:: @ 8DA668C .incbin "graphics/pokemon/pichu/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_pichu_shiny_palette:: @ 8DA68E8 +gMonShinyPalette_Pichu:: @ 8DA68E8 .incbin "graphics/pokemon/pichu/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_pichu_icon:: @ 8DA6910 +gMonIcon_Pichu:: @ 8DA6910 .incbin "graphics/pokemon/pichu/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_pichu_footprint:: @ 8DA6D10 +gMonFootprint_Pichu:: @ 8DA6D10 .incbin "graphics/pokemon/pichu/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_cleffa_still_front_pic:: @ 8DA6D30 +gMonFrontPic_Cleffa:: @ 8DA6D30 .incbin "graphics/pokemon/cleffa/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_cleffa_palette:: @ 8DA6F10 +gMonPalette_Cleffa:: @ 8DA6F10 .incbin "graphics/pokemon/cleffa/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_cleffa_back_pic:: @ 8DA6F38 +gMonBackPic_Cleffa:: @ 8DA6F38 .incbin "graphics/pokemon/cleffa/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_cleffa_shiny_palette:: @ 8DA7174 +gMonShinyPalette_Cleffa:: @ 8DA7174 .incbin "graphics/pokemon/cleffa/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_cleffa_icon:: @ 8DA719C +gMonIcon_Cleffa:: @ 8DA719C .incbin "graphics/pokemon/cleffa/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_cleffa_footprint:: @ 8DA759C +gMonFootprint_Cleffa:: @ 8DA759C .incbin "graphics/pokemon/cleffa/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_igglybuff_still_front_pic:: @ 8DA75BC +gMonFrontPic_Igglybuff:: @ 8DA75BC .incbin "graphics/pokemon/igglybuff/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_igglybuff_palette:: @ 8DA77A4 +gMonPalette_Igglybuff:: @ 8DA77A4 .incbin "graphics/pokemon/igglybuff/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_igglybuff_back_pic:: @ 8DA77CC +gMonBackPic_Igglybuff:: @ 8DA77CC .incbin "graphics/pokemon/igglybuff/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_igglybuff_shiny_palette:: @ 8DA7A08 +gMonShinyPalette_Igglybuff:: @ 8DA7A08 .incbin "graphics/pokemon/igglybuff/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_igglybuff_icon:: @ 8DA7A30 +gMonIcon_Igglybuff:: @ 8DA7A30 .incbin "graphics/pokemon/igglybuff/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_igglybuff_footprint:: @ 8DA7E30 +gMonFootprint_Igglybuff:: @ 8DA7E30 .incbin "graphics/pokemon/igglybuff/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_togepi_still_front_pic:: @ 8DA7E50 +gMonFrontPic_Togepi:: @ 8DA7E50 .incbin "graphics/pokemon/togepi/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_togepi_palette:: @ 8DA8024 +gMonPalette_Togepi:: @ 8DA8024 .incbin "graphics/pokemon/togepi/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_togepi_back_pic:: @ 8DA804C +gMonBackPic_Togepi:: @ 8DA804C .incbin "graphics/pokemon/togepi/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_togepi_shiny_palette:: @ 8DA82C0 +gMonShinyPalette_Togepi:: @ 8DA82C0 .incbin "graphics/pokemon/togepi/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_togepi_icon:: @ 8DA82E8 +gMonIcon_Togepi:: @ 8DA82E8 .incbin "graphics/pokemon/togepi/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_togepi_footprint:: @ 8DA86E8 +gMonFootprint_Togepi:: @ 8DA86E8 .incbin "graphics/pokemon/togepi/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_togetic_still_front_pic:: @ 8DA8708 +gMonFrontPic_Togetic:: @ 8DA8708 .incbin "graphics/pokemon/togetic/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_togetic_palette:: @ 8DA897C +gMonPalette_Togetic:: @ 8DA897C .incbin "graphics/pokemon/togetic/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_togetic_back_pic:: @ 8DA89A4 +gMonBackPic_Togetic:: @ 8DA89A4 .incbin "graphics/pokemon/togetic/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_togetic_shiny_palette:: @ 8DA8CD0 +gMonShinyPalette_Togetic:: @ 8DA8CD0 .incbin "graphics/pokemon/togetic/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_togetic_icon:: @ 8DA8CF8 +gMonIcon_Togetic:: @ 8DA8CF8 .incbin "graphics/pokemon/togetic/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_togetic_footprint:: @ 8DA90F8 +gMonFootprint_Togetic:: @ 8DA90F8 .incbin "graphics/pokemon/togetic/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_natu_still_front_pic:: @ 8DA9118 +gMonFrontPic_Natu:: @ 8DA9118 .incbin "graphics/pokemon/natu/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_natu_palette:: @ 8DA92E4 +gMonPalette_Natu:: @ 8DA92E4 .incbin "graphics/pokemon/natu/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_natu_back_pic:: @ 8DA930C +gMonBackPic_Natu:: @ 8DA930C .incbin "graphics/pokemon/natu/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_natu_shiny_palette:: @ 8DA9520 +gMonShinyPalette_Natu:: @ 8DA9520 .incbin "graphics/pokemon/natu/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_natu_icon:: @ 8DA9548 +gMonIcon_Natu:: @ 8DA9548 .incbin "graphics/pokemon/natu/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_natu_footprint:: @ 8DA9948 +gMonFootprint_Natu:: @ 8DA9948 .incbin "graphics/pokemon/natu/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_xatu_still_front_pic:: @ 8DA9968 +gMonFrontPic_Xatu:: @ 8DA9968 .incbin "graphics/pokemon/xatu/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_xatu_palette:: @ 8DA9C44 +gMonPalette_Xatu:: @ 8DA9C44 .incbin "graphics/pokemon/xatu/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_xatu_back_pic:: @ 8DA9C6C +gMonBackPic_Xatu:: @ 8DA9C6C .incbin "graphics/pokemon/xatu/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_xatu_shiny_palette:: @ 8DA9FE4 +gMonShinyPalette_Xatu:: @ 8DA9FE4 .incbin "graphics/pokemon/xatu/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_xatu_icon:: @ 8DAA00C +gMonIcon_Xatu:: @ 8DAA00C .incbin "graphics/pokemon/xatu/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_xatu_footprint:: @ 8DAA40C +gMonFootprint_Xatu:: @ 8DAA40C .incbin "graphics/pokemon/xatu/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_mareep_still_front_pic:: @ 8DAA42C +gMonFrontPic_Mareep:: @ 8DAA42C .incbin "graphics/pokemon/mareep/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_mareep_palette:: @ 8DAA6E0 +gMonPalette_Mareep:: @ 8DAA6E0 .incbin "graphics/pokemon/mareep/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_mareep_back_pic:: @ 8DAA708 +gMonBackPic_Mareep:: @ 8DAA708 .incbin "graphics/pokemon/mareep/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_mareep_shiny_palette:: @ 8DAA9FC +gMonShinyPalette_Mareep:: @ 8DAA9FC .incbin "graphics/pokemon/mareep/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_mareep_icon:: @ 8DAAA24 +gMonIcon_Mareep:: @ 8DAAA24 .incbin "graphics/pokemon/mareep/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_mareep_footprint:: @ 8DAAE24 +gMonFootprint_Mareep:: @ 8DAAE24 .incbin "graphics/pokemon/mareep/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_flaaffy_still_front_pic:: @ 8DAAE44 +gMonFrontPic_Flaaffy:: @ 8DAAE44 .incbin "graphics/pokemon/flaaffy/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_flaaffy_palette:: @ 8DAB144 +gMonPalette_Flaaffy:: @ 8DAB144 .incbin "graphics/pokemon/flaaffy/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_flaaffy_back_pic:: @ 8DAB16C +gMonBackPic_Flaaffy:: @ 8DAB16C .incbin "graphics/pokemon/flaaffy/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_flaaffy_shiny_palette:: @ 8DAB488 +gMonShinyPalette_Flaaffy:: @ 8DAB488 .incbin "graphics/pokemon/flaaffy/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_flaaffy_icon:: @ 8DAB4B0 +gMonIcon_Flaaffy:: @ 8DAB4B0 .incbin "graphics/pokemon/flaaffy/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_flaaffy_footprint:: @ 8DAB8B0 +gMonFootprint_Flaaffy:: @ 8DAB8B0 .incbin "graphics/pokemon/flaaffy/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_ampharos_still_front_pic:: @ 8DAB8D0 +gMonFrontPic_Ampharos:: @ 8DAB8D0 .incbin "graphics/pokemon/ampharos/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_ampharos_palette:: @ 8DABC2C +gMonPalette_Ampharos:: @ 8DABC2C .incbin "graphics/pokemon/ampharos/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_ampharos_back_pic:: @ 8DABC54 +gMonBackPic_Ampharos:: @ 8DABC54 .incbin "graphics/pokemon/ampharos/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_ampharos_shiny_palette:: @ 8DABFCC +gMonShinyPalette_Ampharos:: @ 8DABFCC .incbin "graphics/pokemon/ampharos/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_ampharos_icon:: @ 8DABFF4 +gMonIcon_Ampharos:: @ 8DABFF4 .incbin "graphics/pokemon/ampharos/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_ampharos_footprint:: @ 8DAC3F4 +gMonFootprint_Ampharos:: @ 8DAC3F4 .incbin "graphics/pokemon/ampharos/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_bellossom_still_front_pic:: @ 8DAC414 +gMonFrontPic_Bellossom:: @ 8DAC414 .incbin "graphics/pokemon/bellossom/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_bellossom_palette:: @ 8DAC684 +gMonPalette_Bellossom:: @ 8DAC684 .incbin "graphics/pokemon/bellossom/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_bellossom_back_pic:: @ 8DAC6AC +gMonBackPic_Bellossom:: @ 8DAC6AC .incbin "graphics/pokemon/bellossom/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_bellossom_shiny_palette:: @ 8DAC9D0 +gMonShinyPalette_Bellossom:: @ 8DAC9D0 .incbin "graphics/pokemon/bellossom/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_bellossom_icon:: @ 8DAC9F8 +gMonIcon_Bellossom:: @ 8DAC9F8 .incbin "graphics/pokemon/bellossom/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_bellossom_footprint:: @ 8DACDF8 +gMonFootprint_Bellossom:: @ 8DACDF8 .incbin "graphics/pokemon/bellossom/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_marill_still_front_pic:: @ 8DACE18 +gMonFrontPic_Marill:: @ 8DACE18 .incbin "graphics/pokemon/marill/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_marill_palette:: @ 8DAD0DC +gMonPalette_Marill:: @ 8DAD0DC .incbin "graphics/pokemon/marill/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_marill_back_pic:: @ 8DAD104 +gMonBackPic_Marill:: @ 8DAD104 .incbin "graphics/pokemon/marill/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_marill_shiny_palette:: @ 8DAD3B0 +gMonShinyPalette_Marill:: @ 8DAD3B0 .incbin "graphics/pokemon/marill/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_marill_icon:: @ 8DAD3D8 +gMonIcon_Marill:: @ 8DAD3D8 .incbin "graphics/pokemon/marill/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_marill_footprint:: @ 8DAD7D8 +gMonFootprint_Marill:: @ 8DAD7D8 .incbin "graphics/pokemon/marill/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_azumarill_still_front_pic:: @ 8DAD7F8 +gMonFrontPic_Azumarill:: @ 8DAD7F8 .incbin "graphics/pokemon/azumarill/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_azumarill_palette:: @ 8DADAF8 +gMonPalette_Azumarill:: @ 8DADAF8 .incbin "graphics/pokemon/azumarill/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_azumarill_back_pic:: @ 8DADB20 +gMonBackPic_Azumarill:: @ 8DADB20 .incbin "graphics/pokemon/azumarill/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_azumarill_shiny_palette:: @ 8DADDDC +gMonShinyPalette_Azumarill:: @ 8DADDDC .incbin "graphics/pokemon/azumarill/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_azumarill_icon:: @ 8DADE04 +gMonIcon_Azumarill:: @ 8DADE04 .incbin "graphics/pokemon/azumarill/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_azumarill_footprint:: @ 8DAE204 +gMonFootprint_Azumarill:: @ 8DAE204 .incbin "graphics/pokemon/azumarill/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_sudowoodo_still_front_pic:: @ 8DAE224 +gMonFrontPic_Sudowoodo:: @ 8DAE224 .incbin "graphics/pokemon/sudowoodo/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_sudowoodo_palette:: @ 8DAE53C +gMonPalette_Sudowoodo:: @ 8DAE53C .incbin "graphics/pokemon/sudowoodo/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_sudowoodo_back_pic:: @ 8DAE564 +gMonBackPic_Sudowoodo:: @ 8DAE564 .incbin "graphics/pokemon/sudowoodo/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_sudowoodo_shiny_palette:: @ 8DAE8C0 +gMonShinyPalette_Sudowoodo:: @ 8DAE8C0 .incbin "graphics/pokemon/sudowoodo/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_sudowoodo_icon:: @ 8DAE8E8 +gMonIcon_Sudowoodo:: @ 8DAE8E8 .incbin "graphics/pokemon/sudowoodo/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_sudowoodo_footprint:: @ 8DAECE8 +gMonFootprint_Sudowoodo:: @ 8DAECE8 .incbin "graphics/pokemon/sudowoodo/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_politoed_still_front_pic:: @ 8DAED08 +gMonFrontPic_Politoed:: @ 8DAED08 .incbin "graphics/pokemon/politoed/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_politoed_palette:: @ 8DAF044 +gMonPalette_Politoed:: @ 8DAF044 .incbin "graphics/pokemon/politoed/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_politoed_back_pic:: @ 8DAF06C +gMonBackPic_Politoed:: @ 8DAF06C .incbin "graphics/pokemon/politoed/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_politoed_shiny_palette:: @ 8DAF328 +gMonShinyPalette_Politoed:: @ 8DAF328 .incbin "graphics/pokemon/politoed/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_politoed_icon:: @ 8DAF350 +gMonIcon_Politoed:: @ 8DAF350 .incbin "graphics/pokemon/politoed/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_politoed_footprint:: @ 8DAF750 +gMonFootprint_Politoed:: @ 8DAF750 .incbin "graphics/pokemon/politoed/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_hoppip_still_front_pic:: @ 8DAF770 +gMonFrontPic_Hoppip:: @ 8DAF770 .incbin "graphics/pokemon/hoppip/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_hoppip_palette:: @ 8DAFA24 +gMonPalette_Hoppip:: @ 8DAFA24 .incbin "graphics/pokemon/hoppip/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_hoppip_back_pic:: @ 8DAFA4C +gMonBackPic_Hoppip:: @ 8DAFA4C .incbin "graphics/pokemon/hoppip/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_hoppip_shiny_palette:: @ 8DAFD2C +gMonShinyPalette_Hoppip:: @ 8DAFD2C .incbin "graphics/pokemon/hoppip/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_hoppip_icon:: @ 8DAFD54 +gMonIcon_Hoppip:: @ 8DAFD54 .incbin "graphics/pokemon/hoppip/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_hoppip_footprint:: @ 8DB0154 +gMonFootprint_Hoppip:: @ 8DB0154 .incbin "graphics/pokemon/hoppip/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_skiploom_still_front_pic:: @ 8DB0174 +gMonFrontPic_Skiploom:: @ 8DB0174 .incbin "graphics/pokemon/skiploom/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_skiploom_palette:: @ 8DB03FC +gMonPalette_Skiploom:: @ 8DB03FC .incbin "graphics/pokemon/skiploom/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_skiploom_back_pic:: @ 8DB0424 +gMonBackPic_Skiploom:: @ 8DB0424 .incbin "graphics/pokemon/skiploom/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_skiploom_shiny_palette:: @ 8DB0704 +gMonShinyPalette_Skiploom:: @ 8DB0704 .incbin "graphics/pokemon/skiploom/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_skiploom_icon:: @ 8DB072C +gMonIcon_Skiploom:: @ 8DB072C .incbin "graphics/pokemon/skiploom/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_skiploom_footprint:: @ 8DB0B2C +gMonFootprint_Skiploom:: @ 8DB0B2C .incbin "graphics/pokemon/skiploom/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_jumpluff_still_front_pic:: @ 8DB0B4C +gMonFrontPic_Jumpluff:: @ 8DB0B4C .incbin "graphics/pokemon/jumpluff/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_jumpluff_palette:: @ 8DB0EB8 +gMonPalette_Jumpluff:: @ 8DB0EB8 .incbin "graphics/pokemon/jumpluff/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_jumpluff_back_pic:: @ 8DB0EE0 +gMonBackPic_Jumpluff:: @ 8DB0EE0 .incbin "graphics/pokemon/jumpluff/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_jumpluff_shiny_palette:: @ 8DB12D8 +gMonShinyPalette_Jumpluff:: @ 8DB12D8 .incbin "graphics/pokemon/jumpluff/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_jumpluff_icon:: @ 8DB1300 +gMonIcon_Jumpluff:: @ 8DB1300 .incbin "graphics/pokemon/jumpluff/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_jumpluff_footprint:: @ 8DB1700 +gMonFootprint_Jumpluff:: @ 8DB1700 .incbin "graphics/pokemon/jumpluff/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_aipom_still_front_pic:: @ 8DB1720 +gMonFrontPic_Aipom:: @ 8DB1720 .incbin "graphics/pokemon/aipom/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_aipom_palette:: @ 8DB1A1C +gMonPalette_Aipom:: @ 8DB1A1C .incbin "graphics/pokemon/aipom/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_aipom_back_pic:: @ 8DB1A44 +gMonBackPic_Aipom:: @ 8DB1A44 .incbin "graphics/pokemon/aipom/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_aipom_shiny_palette:: @ 8DB1D38 +gMonShinyPalette_Aipom:: @ 8DB1D38 .incbin "graphics/pokemon/aipom/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_aipom_icon:: @ 8DB1D60 +gMonIcon_Aipom:: @ 8DB1D60 .incbin "graphics/pokemon/aipom/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_aipom_footprint:: @ 8DB2160 +gMonFootprint_Aipom:: @ 8DB2160 .incbin "graphics/pokemon/aipom/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_sunkern_still_front_pic:: @ 8DB2180 +gMonFrontPic_Sunkern:: @ 8DB2180 .incbin "graphics/pokemon/sunkern/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_sunkern_palette:: @ 8DB23B8 +gMonPalette_Sunkern:: @ 8DB23B8 .incbin "graphics/pokemon/sunkern/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_sunkern_back_pic:: @ 8DB23E0 +gMonBackPic_Sunkern:: @ 8DB23E0 .incbin "graphics/pokemon/sunkern/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_sunkern_shiny_palette:: @ 8DB26A4 +gMonShinyPalette_Sunkern:: @ 8DB26A4 .incbin "graphics/pokemon/sunkern/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_sunkern_icon:: @ 8DB26CC +gMonIcon_Sunkern:: @ 8DB26CC .incbin "graphics/pokemon/sunkern/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_sunkern_footprint:: @ 8DB2ACC +gMonFootprint_Sunkern:: @ 8DB2ACC .incbin "graphics/pokemon/sunkern/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_sunflora_still_front_pic:: @ 8DB2AEC +gMonFrontPic_Sunflora:: @ 8DB2AEC .incbin "graphics/pokemon/sunflora/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_sunflora_palette:: @ 8DB2E44 +gMonPalette_Sunflora:: @ 8DB2E44 .incbin "graphics/pokemon/sunflora/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_sunflora_back_pic:: @ 8DB2E6C +gMonBackPic_Sunflora:: @ 8DB2E6C .incbin "graphics/pokemon/sunflora/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_sunflora_shiny_palette:: @ 8DB320C +gMonShinyPalette_Sunflora:: @ 8DB320C .incbin "graphics/pokemon/sunflora/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_sunflora_icon:: @ 8DB3234 +gMonIcon_Sunflora:: @ 8DB3234 .incbin "graphics/pokemon/sunflora/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_sunflora_footprint:: @ 8DB3634 +gMonFootprint_Sunflora:: @ 8DB3634 .incbin "graphics/pokemon/sunflora/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_yanma_still_front_pic:: @ 8DB3654 +gMonFrontPic_Yanma:: @ 8DB3654 .incbin "graphics/pokemon/yanma/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_yanma_palette:: @ 8DB39D8 +gMonPalette_Yanma:: @ 8DB39D8 .incbin "graphics/pokemon/yanma/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_yanma_back_pic:: @ 8DB3A00 +gMonBackPic_Yanma:: @ 8DB3A00 .incbin "graphics/pokemon/yanma/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_yanma_shiny_palette:: @ 8DB3DB4 +gMonShinyPalette_Yanma:: @ 8DB3DB4 .incbin "graphics/pokemon/yanma/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_yanma_icon:: @ 8DB3DDC +gMonIcon_Yanma:: @ 8DB3DDC .incbin "graphics/pokemon/yanma/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_yanma_footprint:: @ 8DB41DC +gMonFootprint_Yanma:: @ 8DB41DC .incbin "graphics/pokemon/yanma/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_wooper_still_front_pic:: @ 8DB41FC +gMonFrontPic_Wooper:: @ 8DB41FC .incbin "graphics/pokemon/wooper/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_wooper_palette:: @ 8DB443C +gMonPalette_Wooper:: @ 8DB443C .incbin "graphics/pokemon/wooper/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_wooper_back_pic:: @ 8DB4464 +gMonBackPic_Wooper:: @ 8DB4464 .incbin "graphics/pokemon/wooper/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_wooper_shiny_palette:: @ 8DB46F0 +gMonShinyPalette_Wooper:: @ 8DB46F0 .incbin "graphics/pokemon/wooper/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_wooper_icon:: @ 8DB4718 +gMonIcon_Wooper:: @ 8DB4718 .incbin "graphics/pokemon/wooper/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_wooper_footprint:: @ 8DB4B18 +gMonFootprint_Wooper:: @ 8DB4B18 .incbin "graphics/pokemon/wooper/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_quagsire_still_front_pic:: @ 8DB4B38 +gMonFrontPic_Quagsire:: @ 8DB4B38 .incbin "graphics/pokemon/quagsire/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_quagsire_palette:: @ 8DB4EAC +gMonPalette_Quagsire:: @ 8DB4EAC .incbin "graphics/pokemon/quagsire/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_quagsire_back_pic:: @ 8DB4ED4 +gMonBackPic_Quagsire:: @ 8DB4ED4 .incbin "graphics/pokemon/quagsire/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_quagsire_shiny_palette:: @ 8DB51D0 +gMonShinyPalette_Quagsire:: @ 8DB51D0 .incbin "graphics/pokemon/quagsire/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_quagsire_icon:: @ 8DB51F8 +gMonIcon_Quagsire:: @ 8DB51F8 .incbin "graphics/pokemon/quagsire/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_quagsire_footprint:: @ 8DB55F8 +gMonFootprint_Quagsire:: @ 8DB55F8 .incbin "graphics/pokemon/quagsire/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_espeon_still_front_pic:: @ 8DB5618 +gMonFrontPic_Espeon:: @ 8DB5618 .incbin "graphics/pokemon/espeon/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_espeon_palette:: @ 8DB5958 +gMonPalette_Espeon:: @ 8DB5958 .incbin "graphics/pokemon/espeon/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_espeon_back_pic:: @ 8DB597C +gMonBackPic_Espeon:: @ 8DB597C .incbin "graphics/pokemon/espeon/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_espeon_shiny_palette:: @ 8DB5C58 +gMonShinyPalette_Espeon:: @ 8DB5C58 .incbin "graphics/pokemon/espeon/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_espeon_icon:: @ 8DB5C7C +gMonIcon_Espeon:: @ 8DB5C7C .incbin "graphics/pokemon/espeon/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_espeon_footprint:: @ 8DB607C +gMonFootprint_Espeon:: @ 8DB607C .incbin "graphics/pokemon/espeon/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_umbreon_still_front_pic:: @ 8DB609C +gMonFrontPic_Umbreon:: @ 8DB609C .incbin "graphics/pokemon/umbreon/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_umbreon_palette:: @ 8DB63B0 +gMonPalette_Umbreon:: @ 8DB63B0 .incbin "graphics/pokemon/umbreon/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_umbreon_back_pic:: @ 8DB63D8 +gMonBackPic_Umbreon:: @ 8DB63D8 .incbin "graphics/pokemon/umbreon/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_umbreon_shiny_palette:: @ 8DB66EC +gMonShinyPalette_Umbreon:: @ 8DB66EC .incbin "graphics/pokemon/umbreon/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_umbreon_icon:: @ 8DB6714 +gMonIcon_Umbreon:: @ 8DB6714 .incbin "graphics/pokemon/umbreon/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_umbreon_footprint:: @ 8DB6B14 +gMonFootprint_Umbreon:: @ 8DB6B14 .incbin "graphics/pokemon/umbreon/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_murkrow_still_front_pic:: @ 8DB6B34 +gMonFrontPic_Murkrow:: @ 8DB6B34 .incbin "graphics/pokemon/murkrow/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_murkrow_palette:: @ 8DB6E14 +gMonPalette_Murkrow:: @ 8DB6E14 .incbin "graphics/pokemon/murkrow/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_murkrow_back_pic:: @ 8DB6E3C +gMonBackPic_Murkrow:: @ 8DB6E3C .incbin "graphics/pokemon/murkrow/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_murkrow_shiny_palette:: @ 8DB7154 +gMonShinyPalette_Murkrow:: @ 8DB7154 .incbin "graphics/pokemon/murkrow/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_murkrow_icon:: @ 8DB717C +gMonIcon_Murkrow:: @ 8DB717C .incbin "graphics/pokemon/murkrow/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_murkrow_footprint:: @ 8DB757C +gMonFootprint_Murkrow:: @ 8DB757C .incbin "graphics/pokemon/murkrow/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_slowking_still_front_pic:: @ 8DB759C +gMonFrontPic_Slowking:: @ 8DB759C .incbin "graphics/pokemon/slowking/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_slowking_palette:: @ 8DB7950 +gMonPalette_Slowking:: @ 8DB7950 .incbin "graphics/pokemon/slowking/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_slowking_back_pic:: @ 8DB7978 +gMonBackPic_Slowking:: @ 8DB7978 .incbin "graphics/pokemon/slowking/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_slowking_shiny_palette:: @ 8DB7D04 +gMonShinyPalette_Slowking:: @ 8DB7D04 .incbin "graphics/pokemon/slowking/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_slowking_icon:: @ 8DB7D2C +gMonIcon_Slowking:: @ 8DB7D2C .incbin "graphics/pokemon/slowking/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_slowking_footprint:: @ 8DB812C +gMonFootprint_Slowking:: @ 8DB812C .incbin "graphics/pokemon/slowking/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_misdreavus_still_front_pic:: @ 8DB814C +gMonFrontPic_Misdreavus:: @ 8DB814C .incbin "graphics/pokemon/misdreavus/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_misdreavus_palette:: @ 8DB840C +gMonPalette_Misdreavus:: @ 8DB840C .incbin "graphics/pokemon/misdreavus/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_misdreavus_back_pic:: @ 8DB8434 +gMonBackPic_Misdreavus:: @ 8DB8434 .incbin "graphics/pokemon/misdreavus/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_misdreavus_shiny_palette:: @ 8DB8758 +gMonShinyPalette_Misdreavus:: @ 8DB8758 .incbin "graphics/pokemon/misdreavus/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_misdreavus_icon:: @ 8DB8780 +gMonIcon_Misdreavus:: @ 8DB8780 .incbin "graphics/pokemon/misdreavus/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_misdreavus_footprint:: @ 8DB8B80 +gMonFootprint_Misdreavus:: @ 8DB8B80 .incbin "graphics/pokemon/misdreavus/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_unown_a_still_front_pic:: @ 8DB8BA0 +gMonFrontPic_UnownA:: @ 8DB8BA0 .incbin "graphics/pokemon/unown/a/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_unown_palette:: @ 8DB8D74 +gMonPalette_Unown:: @ 8DB8D74 .incbin "graphics/pokemon/unown/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_unown_a_back_pic:: @ 8DB8D94 +gMonBackPic_UnownA:: @ 8DB8D94 .incbin "graphics/pokemon/unown/a/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_unown_shiny_palette:: @ 8DB8F94 +gMonShinyPalette_Unown:: @ 8DB8F94 .incbin "graphics/pokemon/unown/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_unown_a_icon:: @ 8DB8FB4 +gMonIcon_UnownA:: @ 8DB8FB4 .incbin "graphics/pokemon/unown/a/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_unown_footprint:: @ 8DB93B4 +gMonFootprint_Unown:: @ 8DB93B4 .incbin "graphics/pokemon/unown/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_wobbuffet_still_front_pic:: @ 8DB93D4 +gMonFrontPic_Wobbuffet:: @ 8DB93D4 .incbin "graphics/pokemon/wobbuffet/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_wobbuffet_palette:: @ 8DB9724 +gMonPalette_Wobbuffet:: @ 8DB9724 .incbin "graphics/pokemon/wobbuffet/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_wobbuffet_back_pic:: @ 8DB974C +gMonBackPic_Wobbuffet:: @ 8DB974C .incbin "graphics/pokemon/wobbuffet/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_wobbuffet_shiny_palette:: @ 8DB9990 +gMonShinyPalette_Wobbuffet:: @ 8DB9990 .incbin "graphics/pokemon/wobbuffet/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_wobbuffet_icon:: @ 8DB99B8 +gMonIcon_Wobbuffet:: @ 8DB99B8 .incbin "graphics/pokemon/wobbuffet/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_wobbuffet_footprint:: @ 8DB9DB8 +gMonFootprint_Wobbuffet:: @ 8DB9DB8 .incbin "graphics/pokemon/wobbuffet/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_girafarig_still_front_pic:: @ 8DB9DD8 +gMonFrontPic_Girafarig:: @ 8DB9DD8 .incbin "graphics/pokemon/girafarig/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_girafarig_palette:: @ 8DBA1DC +gMonPalette_Girafarig:: @ 8DBA1DC .incbin "graphics/pokemon/girafarig/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_girafarig_back_pic:: @ 8DBA204 +gMonBackPic_Girafarig:: @ 8DBA204 .incbin "graphics/pokemon/girafarig/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_girafarig_shiny_palette:: @ 8DBA5B0 +gMonShinyPalette_Girafarig:: @ 8DBA5B0 .incbin "graphics/pokemon/girafarig/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_girafarig_icon:: @ 8DBA5D8 +gMonIcon_Girafarig:: @ 8DBA5D8 .incbin "graphics/pokemon/girafarig/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_girafarig_footprint:: @ 8DBA9D8 +gMonFootprint_Girafarig:: @ 8DBA9D8 .incbin "graphics/pokemon/girafarig/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_pineco_still_front_pic:: @ 8DBA9F8 +gMonFrontPic_Pineco:: @ 8DBA9F8 .incbin "graphics/pokemon/pineco/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_pineco_palette:: @ 8DBAD38 +gMonPalette_Pineco:: @ 8DBAD38 .incbin "graphics/pokemon/pineco/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_pineco_back_pic:: @ 8DBAD5C +gMonBackPic_Pineco:: @ 8DBAD5C .incbin "graphics/pokemon/pineco/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_pineco_shiny_palette:: @ 8DBB034 +gMonShinyPalette_Pineco:: @ 8DBB034 .incbin "graphics/pokemon/pineco/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_pineco_icon:: @ 8DBB058 +gMonIcon_Pineco:: @ 8DBB058 .incbin "graphics/pokemon/pineco/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_pineco_footprint:: @ 8DBB458 +gMonFootprint_Pineco:: @ 8DBB458 .incbin "graphics/pokemon/pineco/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_forretress_still_front_pic:: @ 8DBB478 +gMonFrontPic_Forretress:: @ 8DBB478 .incbin "graphics/pokemon/forretress/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_forretress_palette:: @ 8DBB894 +gMonPalette_Forretress:: @ 8DBB894 .incbin "graphics/pokemon/forretress/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_forretress_back_pic:: @ 8DBB8BC +gMonBackPic_Forretress:: @ 8DBB8BC .incbin "graphics/pokemon/forretress/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_forretress_shiny_palette:: @ 8DBBB7C +gMonShinyPalette_Forretress:: @ 8DBBB7C .incbin "graphics/pokemon/forretress/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_forretress_icon:: @ 8DBBBA4 +gMonIcon_Forretress:: @ 8DBBBA4 .incbin "graphics/pokemon/forretress/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_forretress_footprint:: @ 8DBBFA4 +gMonFootprint_Forretress:: @ 8DBBFA4 .incbin "graphics/pokemon/forretress/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_dunsparce_still_front_pic:: @ 8DBBFC4 +gMonFrontPic_Dunsparce:: @ 8DBBFC4 .incbin "graphics/pokemon/dunsparce/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_dunsparce_palette:: @ 8DBC2D4 +gMonPalette_Dunsparce:: @ 8DBC2D4 .incbin "graphics/pokemon/dunsparce/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_dunsparce_back_pic:: @ 8DBC2FC +gMonBackPic_Dunsparce:: @ 8DBC2FC .incbin "graphics/pokemon/dunsparce/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_dunsparce_shiny_palette:: @ 8DBC5F8 +gMonShinyPalette_Dunsparce:: @ 8DBC5F8 .incbin "graphics/pokemon/dunsparce/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_dunsparce_icon:: @ 8DBC620 +gMonIcon_Dunsparce:: @ 8DBC620 .incbin "graphics/pokemon/dunsparce/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_dunsparce_footprint:: @ 8DBCA20 +gMonFootprint_Dunsparce:: @ 8DBCA20 .incbin "graphics/pokemon/dunsparce/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_gligar_still_front_pic:: @ 8DBCA40 +gMonFrontPic_Gligar:: @ 8DBCA40 .incbin "graphics/pokemon/gligar/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_gligar_palette:: @ 8DBCE68 +gMonPalette_Gligar:: @ 8DBCE68 .incbin "graphics/pokemon/gligar/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_gligar_back_pic:: @ 8DBCE90 +gMonBackPic_Gligar:: @ 8DBCE90 .incbin "graphics/pokemon/gligar/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_gligar_shiny_palette:: @ 8DBD268 +gMonShinyPalette_Gligar:: @ 8DBD268 .incbin "graphics/pokemon/gligar/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_gligar_icon:: @ 8DBD290 +gMonIcon_Gligar:: @ 8DBD290 .incbin "graphics/pokemon/gligar/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_gligar_footprint:: @ 8DBD690 +gMonFootprint_Gligar:: @ 8DBD690 .incbin "graphics/pokemon/gligar/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_steelix_still_front_pic:: @ 8DBD6B0 +gMonFrontPic_Steelix:: @ 8DBD6B0 .incbin "graphics/pokemon/steelix/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_steelix_palette:: @ 8DBDB78 +gMonPalette_Steelix:: @ 8DBDB78 .incbin "graphics/pokemon/steelix/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_steelix_back_pic:: @ 8DBDB9C +gMonBackPic_Steelix:: @ 8DBDB9C .incbin "graphics/pokemon/steelix/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_steelix_shiny_palette:: @ 8DBDFA8 +gMonShinyPalette_Steelix:: @ 8DBDFA8 .incbin "graphics/pokemon/steelix/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_steelix_icon:: @ 8DBDFCC +gMonIcon_Steelix:: @ 8DBDFCC .incbin "graphics/pokemon/steelix/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_steelix_footprint:: @ 8DBE3CC +gMonFootprint_Steelix:: @ 8DBE3CC .incbin "graphics/pokemon/steelix/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_snubbull_still_front_pic:: @ 8DBE3EC +gMonFrontPic_Snubbull:: @ 8DBE3EC .incbin "graphics/pokemon/snubbull/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_snubbull_palette:: @ 8DBE6C0 +gMonPalette_Snubbull:: @ 8DBE6C0 .incbin "graphics/pokemon/snubbull/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_snubbull_back_pic:: @ 8DBE6E8 +gMonBackPic_Snubbull:: @ 8DBE6E8 .incbin "graphics/pokemon/snubbull/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_snubbull_shiny_palette:: @ 8DBEA10 +gMonShinyPalette_Snubbull:: @ 8DBEA10 .incbin "graphics/pokemon/snubbull/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_snubbull_icon:: @ 8DBEA38 +gMonIcon_Snubbull:: @ 8DBEA38 .incbin "graphics/pokemon/snubbull/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_snubbull_footprint:: @ 8DBEE38 +gMonFootprint_Snubbull:: @ 8DBEE38 .incbin "graphics/pokemon/snubbull/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_granbull_still_front_pic:: @ 8DBEE58 +gMonFrontPic_Granbull:: @ 8DBEE58 .incbin "graphics/pokemon/granbull/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_granbull_palette:: @ 8DBF1E4 +gMonPalette_Granbull:: @ 8DBF1E4 .incbin "graphics/pokemon/granbull/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_granbull_back_pic:: @ 8DBF20C +gMonBackPic_Granbull:: @ 8DBF20C .incbin "graphics/pokemon/granbull/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_granbull_shiny_palette:: @ 8DBF530 +gMonShinyPalette_Granbull:: @ 8DBF530 .incbin "graphics/pokemon/granbull/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_granbull_icon:: @ 8DBF558 +gMonIcon_Granbull:: @ 8DBF558 .incbin "graphics/pokemon/granbull/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_granbull_footprint:: @ 8DBF958 +gMonFootprint_Granbull:: @ 8DBF958 .incbin "graphics/pokemon/granbull/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_qwilfish_still_front_pic:: @ 8DBF978 +gMonFrontPic_Qwilfish:: @ 8DBF978 .incbin "graphics/pokemon/qwilfish/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_qwilfish_palette:: @ 8DBFC38 +gMonPalette_Qwilfish:: @ 8DBFC38 .incbin "graphics/pokemon/qwilfish/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_qwilfish_back_pic:: @ 8DBFC60 +gMonBackPic_Qwilfish:: @ 8DBFC60 .incbin "graphics/pokemon/qwilfish/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_qwilfish_shiny_palette:: @ 8DBFF40 +gMonShinyPalette_Qwilfish:: @ 8DBFF40 .incbin "graphics/pokemon/qwilfish/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_qwilfish_icon:: @ 8DBFF68 +gMonIcon_Qwilfish:: @ 8DBFF68 .incbin "graphics/pokemon/qwilfish/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_qwilfish_footprint:: @ 8DC0368 +gMonFootprint_Qwilfish:: @ 8DC0368 .incbin "graphics/pokemon/qwilfish/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_scizor_still_front_pic:: @ 8DC0388 +gMonFrontPic_Scizor:: @ 8DC0388 .incbin "graphics/pokemon/scizor/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_scizor_palette:: @ 8DC0870 +gMonPalette_Scizor:: @ 8DC0870 .incbin "graphics/pokemon/scizor/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_scizor_back_pic:: @ 8DC0898 +gMonBackPic_Scizor:: @ 8DC0898 .incbin "graphics/pokemon/scizor/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_scizor_shiny_palette:: @ 8DC0C18 +gMonShinyPalette_Scizor:: @ 8DC0C18 .incbin "graphics/pokemon/scizor/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_scizor_icon:: @ 8DC0C40 +gMonIcon_Scizor:: @ 8DC0C40 .incbin "graphics/pokemon/scizor/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_scizor_footprint:: @ 8DC1040 +gMonFootprint_Scizor:: @ 8DC1040 .incbin "graphics/pokemon/scizor/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_shuckle_still_front_pic:: @ 8DC1060 +gMonFrontPic_Shuckle:: @ 8DC1060 .incbin "graphics/pokemon/shuckle/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_shuckle_palette:: @ 8DC1328 +gMonPalette_Shuckle:: @ 8DC1328 .incbin "graphics/pokemon/shuckle/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_shuckle_back_pic:: @ 8DC1350 +gMonBackPic_Shuckle:: @ 8DC1350 .incbin "graphics/pokemon/shuckle/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_shuckle_shiny_palette:: @ 8DC15A8 +gMonShinyPalette_Shuckle:: @ 8DC15A8 .incbin "graphics/pokemon/shuckle/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_shuckle_icon:: @ 8DC15D0 +gMonIcon_Shuckle:: @ 8DC15D0 .incbin "graphics/pokemon/shuckle/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_shuckle_footprint:: @ 8DC19D0 +gMonFootprint_Shuckle:: @ 8DC19D0 .incbin "graphics/pokemon/shuckle/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_heracross_still_front_pic:: @ 8DC19F0 +gMonFrontPic_Heracross:: @ 8DC19F0 .incbin "graphics/pokemon/heracross/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_heracross_palette:: @ 8DC1DE0 +gMonPalette_Heracross:: @ 8DC1DE0 .incbin "graphics/pokemon/heracross/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_heracross_back_pic:: @ 8DC1E08 +gMonBackPic_Heracross:: @ 8DC1E08 .incbin "graphics/pokemon/heracross/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_heracross_shiny_palette:: @ 8DC2178 +gMonShinyPalette_Heracross:: @ 8DC2178 .incbin "graphics/pokemon/heracross/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_heracross_icon:: @ 8DC21A0 +gMonIcon_Heracross:: @ 8DC21A0 .incbin "graphics/pokemon/heracross/icon.4bpp" gUnknown_heracross_icon:: @ 8DC25A0 - .incbin "baserom.gba", 0xDC25A0, 0x400 + .incbin "graphics/pokemon/heracross/unk_icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_heracross_footprint:: @ 8DC29A0 +gMonFootprint_Heracross:: @ 8DC29A0 .incbin "graphics/pokemon/heracross/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_sneasel_still_front_pic:: @ 8DC29C0 +gMonFrontPic_Sneasel:: @ 8DC29C0 .incbin "graphics/pokemon/sneasel/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_sneasel_palette:: @ 8DC2D04 +gMonPalette_Sneasel:: @ 8DC2D04 .incbin "graphics/pokemon/sneasel/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_sneasel_back_pic:: @ 8DC2D2C +gMonBackPic_Sneasel:: @ 8DC2D2C .incbin "graphics/pokemon/sneasel/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_sneasel_shiny_palette:: @ 8DC3050 +gMonShinyPalette_Sneasel:: @ 8DC3050 .incbin "graphics/pokemon/sneasel/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_sneasel_icon:: @ 8DC3078 +gMonIcon_Sneasel:: @ 8DC3078 .incbin "graphics/pokemon/sneasel/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_sneasel_footprint:: @ 8DC3478 +gMonFootprint_Sneasel:: @ 8DC3478 .incbin "graphics/pokemon/sneasel/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_teddiursa_still_front_pic:: @ 8DC3498 +gMonFrontPic_Teddiursa:: @ 8DC3498 .incbin "graphics/pokemon/teddiursa/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_teddiursa_palette:: @ 8DC3740 +gMonPalette_Teddiursa:: @ 8DC3740 .incbin "graphics/pokemon/teddiursa/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_teddiursa_back_pic:: @ 8DC3768 +gMonBackPic_Teddiursa:: @ 8DC3768 .incbin "graphics/pokemon/teddiursa/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_teddiursa_shiny_palette:: @ 8DC39E0 +gMonShinyPalette_Teddiursa:: @ 8DC39E0 .incbin "graphics/pokemon/teddiursa/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_teddiursa_icon:: @ 8DC3A08 +gMonIcon_Teddiursa:: @ 8DC3A08 .incbin "graphics/pokemon/teddiursa/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_teddiursa_footprint:: @ 8DC3E08 +gMonFootprint_Teddiursa:: @ 8DC3E08 .incbin "graphics/pokemon/teddiursa/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_ursaring_still_front_pic:: @ 8DC3E28 +gMonFrontPic_Ursaring:: @ 8DC3E28 .incbin "graphics/pokemon/ursaring/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_ursaring_palette:: @ 8DC4260 +gMonPalette_Ursaring:: @ 8DC4260 .incbin "graphics/pokemon/ursaring/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_ursaring_back_pic:: @ 8DC4288 +gMonBackPic_Ursaring:: @ 8DC4288 .incbin "graphics/pokemon/ursaring/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_ursaring_shiny_palette:: @ 8DC4610 +gMonShinyPalette_Ursaring:: @ 8DC4610 .incbin "graphics/pokemon/ursaring/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_ursaring_icon:: @ 8DC4638 +gMonIcon_Ursaring:: @ 8DC4638 .incbin "graphics/pokemon/ursaring/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_ursaring_footprint:: @ 8DC4A38 +gMonFootprint_Ursaring:: @ 8DC4A38 .incbin "graphics/pokemon/ursaring/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_slugma_still_front_pic:: @ 8DC4A58 +gMonFrontPic_Slugma:: @ 8DC4A58 .incbin "graphics/pokemon/slugma/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_slugma_palette:: @ 8DC4CCC +gMonPalette_Slugma:: @ 8DC4CCC .incbin "graphics/pokemon/slugma/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_slugma_back_pic:: @ 8DC4CF0 +gMonBackPic_Slugma:: @ 8DC4CF0 .incbin "graphics/pokemon/slugma/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_slugma_shiny_palette:: @ 8DC4FD8 +gMonShinyPalette_Slugma:: @ 8DC4FD8 .incbin "graphics/pokemon/slugma/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_slugma_icon:: @ 8DC4FFC +gMonIcon_Slugma:: @ 8DC4FFC .incbin "graphics/pokemon/slugma/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_slugma_footprint:: @ 8DC53FC +gMonFootprint_Slugma:: @ 8DC53FC .incbin "graphics/pokemon/slugma/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_magcargo_still_front_pic:: @ 8DC541C +gMonFrontPic_Magcargo:: @ 8DC541C .incbin "graphics/pokemon/magcargo/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_magcargo_palette:: @ 8DC5764 +gMonPalette_Magcargo:: @ 8DC5764 .incbin "graphics/pokemon/magcargo/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_magcargo_back_pic:: @ 8DC578C +gMonBackPic_Magcargo:: @ 8DC578C .incbin "graphics/pokemon/magcargo/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_magcargo_shiny_palette:: @ 8DC5BA4 +gMonShinyPalette_Magcargo:: @ 8DC5BA4 .incbin "graphics/pokemon/magcargo/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_magcargo_icon:: @ 8DC5BCC +gMonIcon_Magcargo:: @ 8DC5BCC .incbin "graphics/pokemon/magcargo/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_magcargo_footprint:: @ 8DC5FCC +gMonFootprint_Magcargo:: @ 8DC5FCC .incbin "graphics/pokemon/magcargo/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_swinub_still_front_pic:: @ 8DC5FEC +gMonFrontPic_Swinub:: @ 8DC5FEC .incbin "graphics/pokemon/swinub/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_swinub_palette:: @ 8DC61E8 +gMonPalette_Swinub:: @ 8DC61E8 .incbin "graphics/pokemon/swinub/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_swinub_back_pic:: @ 8DC6210 +gMonBackPic_Swinub:: @ 8DC6210 .incbin "graphics/pokemon/swinub/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_swinub_shiny_palette:: @ 8DC644C +gMonShinyPalette_Swinub:: @ 8DC644C .incbin "graphics/pokemon/swinub/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_swinub_icon:: @ 8DC6474 +gMonIcon_Swinub:: @ 8DC6474 .incbin "graphics/pokemon/swinub/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_swinub_footprint:: @ 8DC6874 +gMonFootprint_Swinub:: @ 8DC6874 .incbin "graphics/pokemon/swinub/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_piloswine_still_front_pic:: @ 8DC6894 +gMonFrontPic_Piloswine:: @ 8DC6894 .incbin "graphics/pokemon/piloswine/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_piloswine_palette:: @ 8DC6BBC +gMonPalette_Piloswine:: @ 8DC6BBC .incbin "graphics/pokemon/piloswine/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_piloswine_back_pic:: @ 8DC6BE4 +gMonBackPic_Piloswine:: @ 8DC6BE4 .incbin "graphics/pokemon/piloswine/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_piloswine_shiny_palette:: @ 8DC6E30 +gMonShinyPalette_Piloswine:: @ 8DC6E30 .incbin "graphics/pokemon/piloswine/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_piloswine_icon:: @ 8DC6E58 +gMonIcon_Piloswine:: @ 8DC6E58 .incbin "graphics/pokemon/piloswine/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_piloswine_footprint:: @ 8DC7258 +gMonFootprint_Piloswine:: @ 8DC7258 .incbin "graphics/pokemon/piloswine/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_corsola_still_front_pic:: @ 8DC7278 +gMonFrontPic_Corsola:: @ 8DC7278 .incbin "graphics/pokemon/corsola/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_corsola_palette:: @ 8DC7560 +gMonPalette_Corsola:: @ 8DC7560 .incbin "graphics/pokemon/corsola/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_corsola_back_pic:: @ 8DC7588 +gMonBackPic_Corsola:: @ 8DC7588 .incbin "graphics/pokemon/corsola/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_corsola_shiny_palette:: @ 8DC7848 +gMonShinyPalette_Corsola:: @ 8DC7848 .incbin "graphics/pokemon/corsola/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_corsola_icon:: @ 8DC7870 +gMonIcon_Corsola:: @ 8DC7870 .incbin "graphics/pokemon/corsola/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_corsola_footprint:: @ 8DC7C70 +gMonFootprint_Corsola:: @ 8DC7C70 .incbin "graphics/pokemon/corsola/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_remoraid_still_front_pic:: @ 8DC7C90 +gMonFrontPic_Remoraid:: @ 8DC7C90 .incbin "graphics/pokemon/remoraid/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_remoraid_palette:: @ 8DC7EF8 +gMonPalette_Remoraid:: @ 8DC7EF8 .incbin "graphics/pokemon/remoraid/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_remoraid_back_pic:: @ 8DC7F20 +gMonBackPic_Remoraid:: @ 8DC7F20 .incbin "graphics/pokemon/remoraid/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_remoraid_shiny_palette:: @ 8DC8234 +gMonShinyPalette_Remoraid:: @ 8DC8234 .incbin "graphics/pokemon/remoraid/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_remoraid_icon:: @ 8DC825C +gMonIcon_Remoraid:: @ 8DC825C .incbin "graphics/pokemon/remoraid/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_remoraid_footprint:: @ 8DC865C +gMonFootprint_Remoraid:: @ 8DC865C .incbin "graphics/pokemon/remoraid/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_octillery_still_front_pic:: @ 8DC867C +gMonFrontPic_Octillery:: @ 8DC867C .incbin "graphics/pokemon/octillery/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_octillery_palette:: @ 8DC89B0 +gMonPalette_Octillery:: @ 8DC89B0 .incbin "graphics/pokemon/octillery/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_octillery_back_pic:: @ 8DC89D8 +gMonBackPic_Octillery:: @ 8DC89D8 .incbin "graphics/pokemon/octillery/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_octillery_shiny_palette:: @ 8DC8C90 +gMonShinyPalette_Octillery:: @ 8DC8C90 .incbin "graphics/pokemon/octillery/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_octillery_icon:: @ 8DC8CB8 +gMonIcon_Octillery:: @ 8DC8CB8 .incbin "graphics/pokemon/octillery/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_octillery_footprint:: @ 8DC90B8 +gMonFootprint_Octillery:: @ 8DC90B8 .incbin "graphics/pokemon/octillery/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_delibird_still_front_pic:: @ 8DC90D8 +gMonFrontPic_Delibird:: @ 8DC90D8 .incbin "graphics/pokemon/delibird/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_delibird_palette:: @ 8DC9448 +gMonPalette_Delibird:: @ 8DC9448 .incbin "graphics/pokemon/delibird/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_delibird_back_pic:: @ 8DC9470 +gMonBackPic_Delibird:: @ 8DC9470 .incbin "graphics/pokemon/delibird/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_delibird_shiny_palette:: @ 8DC9830 +gMonShinyPalette_Delibird:: @ 8DC9830 .incbin "graphics/pokemon/delibird/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_delibird_icon:: @ 8DC9858 +gMonIcon_Delibird:: @ 8DC9858 .incbin "graphics/pokemon/delibird/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_delibird_footprint:: @ 8DC9C58 +gMonFootprint_Delibird:: @ 8DC9C58 .incbin "graphics/pokemon/delibird/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_mantine_still_front_pic:: @ 8DC9C78 +gMonFrontPic_Mantine:: @ 8DC9C78 .incbin "graphics/pokemon/mantine/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_mantine_palette:: @ 8DCA114 +gMonPalette_Mantine:: @ 8DCA114 .incbin "graphics/pokemon/mantine/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_mantine_back_pic:: @ 8DCA13C +gMonBackPic_Mantine:: @ 8DCA13C .incbin "graphics/pokemon/mantine/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_mantine_shiny_palette:: @ 8DCA3DC +gMonShinyPalette_Mantine:: @ 8DCA3DC .incbin "graphics/pokemon/mantine/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_mantine_icon:: @ 8DCA404 +gMonIcon_Mantine:: @ 8DCA404 .incbin "graphics/pokemon/mantine/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_mantine_footprint:: @ 8DCA804 +gMonFootprint_Mantine:: @ 8DCA804 .incbin "graphics/pokemon/mantine/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_skarmory_still_front_pic:: @ 8DCA824 +gMonFrontPic_Skarmory:: @ 8DCA824 .incbin "graphics/pokemon/skarmory/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_skarmory_palette:: @ 8DCAD04 +gMonPalette_Skarmory:: @ 8DCAD04 .incbin "graphics/pokemon/skarmory/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_skarmory_back_pic:: @ 8DCAD2C +gMonBackPic_Skarmory:: @ 8DCAD2C .incbin "graphics/pokemon/skarmory/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_skarmory_shiny_palette:: @ 8DCB030 +gMonShinyPalette_Skarmory:: @ 8DCB030 .incbin "graphics/pokemon/skarmory/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_skarmory_icon:: @ 8DCB058 +gMonIcon_Skarmory:: @ 8DCB058 .incbin "graphics/pokemon/skarmory/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_skarmory_footprint:: @ 8DCB458 +gMonFootprint_Skarmory:: @ 8DCB458 .incbin "graphics/pokemon/skarmory/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_houndour_still_front_pic:: @ 8DCB478 +gMonFrontPic_Houndour:: @ 8DCB478 .incbin "graphics/pokemon/houndour/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_houndour_palette:: @ 8DCB730 +gMonPalette_Houndour:: @ 8DCB730 .incbin "graphics/pokemon/houndour/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_houndour_back_pic:: @ 8DCB758 +gMonBackPic_Houndour:: @ 8DCB758 .incbin "graphics/pokemon/houndour/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_houndour_shiny_palette:: @ 8DCB9D8 +gMonShinyPalette_Houndour:: @ 8DCB9D8 .incbin "graphics/pokemon/houndour/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_houndour_icon:: @ 8DCBA00 +gMonIcon_Houndour:: @ 8DCBA00 .incbin "graphics/pokemon/houndour/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_houndour_footprint:: @ 8DCBE00 +gMonFootprint_Houndour:: @ 8DCBE00 .incbin "graphics/pokemon/houndour/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_houndoom_still_front_pic:: @ 8DCBE20 +gMonFrontPic_Houndoom:: @ 8DCBE20 .incbin "graphics/pokemon/houndoom/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_houndoom_palette:: @ 8DCC220 +gMonPalette_Houndoom:: @ 8DCC220 .incbin "graphics/pokemon/houndoom/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_houndoom_back_pic:: @ 8DCC248 +gMonBackPic_Houndoom:: @ 8DCC248 .incbin "graphics/pokemon/houndoom/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_houndoom_shiny_palette:: @ 8DCC56C +gMonShinyPalette_Houndoom:: @ 8DCC56C .incbin "graphics/pokemon/houndoom/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_houndoom_icon:: @ 8DCC594 +gMonIcon_Houndoom:: @ 8DCC594 .incbin "graphics/pokemon/houndoom/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_houndoom_footprint:: @ 8DCC994 +gMonFootprint_Houndoom:: @ 8DCC994 .incbin "graphics/pokemon/houndoom/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_kingdra_still_front_pic:: @ 8DCC9B4 +gMonFrontPic_Kingdra:: @ 8DCC9B4 .incbin "graphics/pokemon/kingdra/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_kingdra_palette:: @ 8DCCDD4 +gMonPalette_Kingdra:: @ 8DCCDD4 .incbin "graphics/pokemon/kingdra/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_kingdra_back_pic:: @ 8DCCDFC +gMonBackPic_Kingdra:: @ 8DCCDFC .incbin "graphics/pokemon/kingdra/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_kingdra_shiny_palette:: @ 8DCD1B0 +gMonShinyPalette_Kingdra:: @ 8DCD1B0 .incbin "graphics/pokemon/kingdra/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_kingdra_icon:: @ 8DCD1D8 +gMonIcon_Kingdra:: @ 8DCD1D8 .incbin "graphics/pokemon/kingdra/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_kingdra_footprint:: @ 8DCD5D8 +gMonFootprint_Kingdra:: @ 8DCD5D8 .incbin "graphics/pokemon/kingdra/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_phanpy_still_front_pic:: @ 8DCD5F8 +gMonFrontPic_Phanpy:: @ 8DCD5F8 .incbin "graphics/pokemon/phanpy/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_phanpy_palette:: @ 8DCD854 +gMonPalette_Phanpy:: @ 8DCD854 .incbin "graphics/pokemon/phanpy/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_phanpy_back_pic:: @ 8DCD87C +gMonBackPic_Phanpy:: @ 8DCD87C .incbin "graphics/pokemon/phanpy/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_phanpy_shiny_palette:: @ 8DCDB40 +gMonShinyPalette_Phanpy:: @ 8DCDB40 .incbin "graphics/pokemon/phanpy/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_phanpy_icon:: @ 8DCDB68 +gMonIcon_Phanpy:: @ 8DCDB68 .incbin "graphics/pokemon/phanpy/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_phanpy_footprint:: @ 8DCDF68 +gMonFootprint_Phanpy:: @ 8DCDF68 .incbin "graphics/pokemon/phanpy/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_donphan_still_front_pic:: @ 8DCDF88 +gMonFrontPic_Donphan:: @ 8DCDF88 .incbin "graphics/pokemon/donphan/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_donphan_palette:: @ 8DCE3FC +gMonPalette_Donphan:: @ 8DCE3FC .incbin "graphics/pokemon/donphan/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_donphan_back_pic:: @ 8DCE424 +gMonBackPic_Donphan:: @ 8DCE424 .incbin "graphics/pokemon/donphan/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_donphan_shiny_palette:: @ 8DCE720 +gMonShinyPalette_Donphan:: @ 8DCE720 .incbin "graphics/pokemon/donphan/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_donphan_icon:: @ 8DCE748 +gMonIcon_Donphan:: @ 8DCE748 .incbin "graphics/pokemon/donphan/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_donphan_footprint:: @ 8DCEB48 +gMonFootprint_Donphan:: @ 8DCEB48 .incbin "graphics/pokemon/donphan/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_porygon2_still_front_pic:: @ 8DCEB68 +gMonFrontPic_Porygon2:: @ 8DCEB68 .incbin "graphics/pokemon/porygon2/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_porygon2_palette:: @ 8DCEDF0 +gMonPalette_Porygon2:: @ 8DCEDF0 .incbin "graphics/pokemon/porygon2/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_porygon2_back_pic:: @ 8DCEE18 +gMonBackPic_Porygon2:: @ 8DCEE18 .incbin "graphics/pokemon/porygon2/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_porygon2_shiny_palette:: @ 8DCF134 +gMonShinyPalette_Porygon2:: @ 8DCF134 .incbin "graphics/pokemon/porygon2/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_porygon2_icon:: @ 8DCF15C +gMonIcon_Porygon2:: @ 8DCF15C .incbin "graphics/pokemon/porygon2/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_porygon2_footprint:: @ 8DCF55C +gMonFootprint_Porygon2:: @ 8DCF55C .incbin "graphics/pokemon/porygon2/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_stantler_still_front_pic:: @ 8DCF57C +gMonFrontPic_Stantler:: @ 8DCF57C .incbin "graphics/pokemon/stantler/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_stantler_palette:: @ 8DCF990 +gMonPalette_Stantler:: @ 8DCF990 .incbin "graphics/pokemon/stantler/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_stantler_back_pic:: @ 8DCF9B8 +gMonBackPic_Stantler:: @ 8DCF9B8 .incbin "graphics/pokemon/stantler/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_stantler_shiny_palette:: @ 8DCFD04 +gMonShinyPalette_Stantler:: @ 8DCFD04 .incbin "graphics/pokemon/stantler/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_stantler_icon:: @ 8DCFD2C +gMonIcon_Stantler:: @ 8DCFD2C .incbin "graphics/pokemon/stantler/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_stantler_footprint:: @ 8DD012C +gMonFootprint_Stantler:: @ 8DD012C .incbin "graphics/pokemon/stantler/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_smeargle_still_front_pic:: @ 8DD014C +gMonFrontPic_Smeargle:: @ 8DD014C .incbin "graphics/pokemon/smeargle/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_smeargle_palette:: @ 8DD04E0 +gMonPalette_Smeargle:: @ 8DD04E0 .incbin "graphics/pokemon/smeargle/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_smeargle_back_pic:: @ 8DD0508 +gMonBackPic_Smeargle:: @ 8DD0508 .incbin "graphics/pokemon/smeargle/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_smeargle_shiny_palette:: @ 8DD082C +gMonShinyPalette_Smeargle:: @ 8DD082C .incbin "graphics/pokemon/smeargle/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_smeargle_icon:: @ 8DD0854 +gMonIcon_Smeargle:: @ 8DD0854 .incbin "graphics/pokemon/smeargle/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_smeargle_footprint:: @ 8DD0C54 +gMonFootprint_Smeargle:: @ 8DD0C54 .incbin "graphics/pokemon/smeargle/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_tyrogue_still_front_pic:: @ 8DD0C74 +gMonFrontPic_Tyrogue:: @ 8DD0C74 .incbin "graphics/pokemon/tyrogue/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_tyrogue_palette:: @ 8DD0F00 +gMonPalette_Tyrogue:: @ 8DD0F00 .incbin "graphics/pokemon/tyrogue/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_tyrogue_back_pic:: @ 8DD0F28 +gMonBackPic_Tyrogue:: @ 8DD0F28 .incbin "graphics/pokemon/tyrogue/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_tyrogue_shiny_palette:: @ 8DD1244 +gMonShinyPalette_Tyrogue:: @ 8DD1244 .incbin "graphics/pokemon/tyrogue/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_tyrogue_icon:: @ 8DD126C +gMonIcon_Tyrogue:: @ 8DD126C .incbin "graphics/pokemon/tyrogue/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_tyrogue_footprint:: @ 8DD166C +gMonFootprint_Tyrogue:: @ 8DD166C .incbin "graphics/pokemon/tyrogue/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_hitmontop_still_front_pic:: @ 8DD168C +gMonFrontPic_Hitmontop:: @ 8DD168C .incbin "graphics/pokemon/hitmontop/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_hitmontop_palette:: @ 8DD1A18 +gMonPalette_Hitmontop:: @ 8DD1A18 .incbin "graphics/pokemon/hitmontop/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_hitmontop_back_pic:: @ 8DD1A40 +gMonBackPic_Hitmontop:: @ 8DD1A40 .incbin "graphics/pokemon/hitmontop/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_hitmontop_shiny_palette:: @ 8DD1E68 +gMonShinyPalette_Hitmontop:: @ 8DD1E68 .incbin "graphics/pokemon/hitmontop/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_hitmontop_icon:: @ 8DD1E90 +gMonIcon_Hitmontop:: @ 8DD1E90 .incbin "graphics/pokemon/hitmontop/icon.4bpp" gUnknown_hitmontop_unknown_data:: @ 8DD2290 .incbin "baserom.gba", 0xDD2290, 0x200 .align 2 -gFile_graphics_pokemon_footprints_hitmontop_footprint:: @ 8DD2490 +gMonFootprint_Hitmontop:: @ 8DD2490 .incbin "graphics/pokemon/hitmontop/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_smoochum_still_front_pic:: @ 8DD24B0 +gMonFrontPic_Smoochum:: @ 8DD24B0 .incbin "graphics/pokemon/smoochum/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_smoochum_palette:: @ 8DD2708 +gMonPalette_Smoochum:: @ 8DD2708 .incbin "graphics/pokemon/smoochum/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_smoochum_back_pic:: @ 8DD2730 +gMonBackPic_Smoochum:: @ 8DD2730 .incbin "graphics/pokemon/smoochum/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_smoochum_shiny_palette:: @ 8DD29A8 +gMonShinyPalette_Smoochum:: @ 8DD29A8 .incbin "graphics/pokemon/smoochum/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_smoochum_icon:: @ 8DD29D0 +gMonIcon_Smoochum:: @ 8DD29D0 .incbin "graphics/pokemon/smoochum/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_smoochum_footprint:: @ 8DD2DD0 +gMonFootprint_Smoochum:: @ 8DD2DD0 .incbin "graphics/pokemon/smoochum/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_elekid_still_front_pic:: @ 8DD2DF0 +gMonFrontPic_Elekid:: @ 8DD2DF0 .incbin "graphics/pokemon/elekid/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_elekid_palette:: @ 8DD30F8 +gMonPalette_Elekid:: @ 8DD30F8 .incbin "graphics/pokemon/elekid/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_elekid_back_pic:: @ 8DD3120 +gMonBackPic_Elekid:: @ 8DD3120 .incbin "graphics/pokemon/elekid/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_elekid_shiny_palette:: @ 8DD3478 +gMonShinyPalette_Elekid:: @ 8DD3478 .incbin "graphics/pokemon/elekid/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_elekid_icon:: @ 8DD34A0 +gMonIcon_Elekid:: @ 8DD34A0 .incbin "graphics/pokemon/elekid/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_elekid_footprint:: @ 8DD38A0 +gMonFootprint_Elekid:: @ 8DD38A0 .incbin "graphics/pokemon/elekid/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_magby_still_front_pic:: @ 8DD38C0 +gMonFrontPic_Magby:: @ 8DD38C0 .incbin "graphics/pokemon/magby/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_magby_palette:: @ 8DD3B44 +gMonPalette_Magby:: @ 8DD3B44 .incbin "graphics/pokemon/magby/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_magby_back_pic:: @ 8DD3B6C +gMonBackPic_Magby:: @ 8DD3B6C .incbin "graphics/pokemon/magby/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_magby_shiny_palette:: @ 8DD3E18 +gMonShinyPalette_Magby:: @ 8DD3E18 .incbin "graphics/pokemon/magby/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_magby_icon:: @ 8DD3E40 +gMonIcon_Magby:: @ 8DD3E40 .incbin "graphics/pokemon/magby/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_magby_footprint:: @ 8DD4240 +gMonFootprint_Magby:: @ 8DD4240 .incbin "graphics/pokemon/magby/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_miltank_still_front_pic:: @ 8DD4260 +gMonFrontPic_Miltank:: @ 8DD4260 .incbin "graphics/pokemon/miltank/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_miltank_palette:: @ 8DD4610 +gMonPalette_Miltank:: @ 8DD4610 .incbin "graphics/pokemon/miltank/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_miltank_back_pic:: @ 8DD4638 +gMonBackPic_Miltank:: @ 8DD4638 .incbin "graphics/pokemon/miltank/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_miltank_shiny_palette:: @ 8DD49D4 +gMonShinyPalette_Miltank:: @ 8DD49D4 .incbin "graphics/pokemon/miltank/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_miltank_icon:: @ 8DD49FC +gMonIcon_Miltank:: @ 8DD49FC .incbin "graphics/pokemon/miltank/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_miltank_footprint:: @ 8DD4DFC +gMonFootprint_Miltank:: @ 8DD4DFC .incbin "graphics/pokemon/miltank/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_blissey_still_front_pic:: @ 8DD4E1C +gMonFrontPic_Blissey:: @ 8DD4E1C .incbin "graphics/pokemon/blissey/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_blissey_palette:: @ 8DD5204 +gMonPalette_Blissey:: @ 8DD5204 .incbin "graphics/pokemon/blissey/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_blissey_back_pic:: @ 8DD522C +gMonBackPic_Blissey:: @ 8DD522C .incbin "graphics/pokemon/blissey/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_blissey_shiny_palette:: @ 8DD54F8 +gMonShinyPalette_Blissey:: @ 8DD54F8 .incbin "graphics/pokemon/blissey/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_blissey_icon:: @ 8DD5520 +gMonIcon_Blissey:: @ 8DD5520 .incbin "graphics/pokemon/blissey/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_blissey_footprint:: @ 8DD5920 +gMonFootprint_Blissey:: @ 8DD5920 .incbin "graphics/pokemon/blissey/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_raikou_still_front_pic:: @ 8DD5940 +gMonFrontPic_Raikou:: @ 8DD5940 .incbin "graphics/pokemon/raikou/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_raikou_palette:: @ 8DD5EBC +gMonPalette_Raikou:: @ 8DD5EBC .incbin "graphics/pokemon/raikou/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_raikou_back_pic:: @ 8DD5EE4 +gMonBackPic_Raikou:: @ 8DD5EE4 .incbin "graphics/pokemon/raikou/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_raikou_shiny_palette:: @ 8DD628C +gMonShinyPalette_Raikou:: @ 8DD628C .incbin "graphics/pokemon/raikou/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_raikou_icon:: @ 8DD62B4 +gMonIcon_Raikou:: @ 8DD62B4 .incbin "graphics/pokemon/raikou/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_raikou_footprint:: @ 8DD66B4 +gMonFootprint_Raikou:: @ 8DD66B4 .incbin "graphics/pokemon/raikou/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_entei_still_front_pic:: @ 8DD66D4 +gMonFrontPic_Entei:: @ 8DD66D4 .incbin "graphics/pokemon/entei/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_entei_palette:: @ 8DD6CD0 +gMonPalette_Entei:: @ 8DD6CD0 .incbin "graphics/pokemon/entei/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_entei_back_pic:: @ 8DD6CF8 +gMonBackPic_Entei:: @ 8DD6CF8 .incbin "graphics/pokemon/entei/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_entei_shiny_palette:: @ 8DD711C +gMonShinyPalette_Entei:: @ 8DD711C .incbin "graphics/pokemon/entei/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_entei_icon:: @ 8DD7144 +gMonIcon_Entei:: @ 8DD7144 .incbin "graphics/pokemon/entei/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_entei_footprint:: @ 8DD7544 +gMonFootprint_Entei:: @ 8DD7544 .incbin "graphics/pokemon/entei/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_suicune_still_front_pic:: @ 8DD7564 +gMonFrontPic_Suicune:: @ 8DD7564 .incbin "graphics/pokemon/suicune/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_suicune_palette:: @ 8DD7AE8 +gMonPalette_Suicune:: @ 8DD7AE8 .incbin "graphics/pokemon/suicune/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_suicune_back_pic:: @ 8DD7B10 +gMonBackPic_Suicune:: @ 8DD7B10 .incbin "graphics/pokemon/suicune/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_suicune_shiny_palette:: @ 8DD7FEC +gMonShinyPalette_Suicune:: @ 8DD7FEC .incbin "graphics/pokemon/suicune/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_suicune_icon:: @ 8DD8014 +gMonIcon_Suicune:: @ 8DD8014 .incbin "graphics/pokemon/suicune/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_suicune_footprint:: @ 8DD8414 +gMonFootprint_Suicune:: @ 8DD8414 .incbin "graphics/pokemon/suicune/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_larvitar_still_front_pic:: @ 8DD8434 +gMonFrontPic_Larvitar:: @ 8DD8434 .incbin "graphics/pokemon/larvitar/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_larvitar_palette:: @ 8DD8690 +gMonPalette_Larvitar:: @ 8DD8690 .incbin "graphics/pokemon/larvitar/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_larvitar_back_pic:: @ 8DD86B8 +gMonBackPic_Larvitar:: @ 8DD86B8 .incbin "graphics/pokemon/larvitar/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_larvitar_shiny_palette:: @ 8DD8964 +gMonShinyPalette_Larvitar:: @ 8DD8964 .incbin "graphics/pokemon/larvitar/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_larvitar_icon:: @ 8DD898C +gMonIcon_Larvitar:: @ 8DD898C .incbin "graphics/pokemon/larvitar/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_larvitar_footprint:: @ 8DD8D8C +gMonFootprint_Larvitar:: @ 8DD8D8C .incbin "graphics/pokemon/larvitar/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_pupitar_still_front_pic:: @ 8DD8DAC +gMonFrontPic_Pupitar:: @ 8DD8DAC .incbin "graphics/pokemon/pupitar/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_pupitar_palette:: @ 8DD909C +gMonPalette_Pupitar:: @ 8DD909C .incbin "graphics/pokemon/pupitar/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_pupitar_back_pic:: @ 8DD90C4 +gMonBackPic_Pupitar:: @ 8DD90C4 .incbin "graphics/pokemon/pupitar/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_pupitar_shiny_palette:: @ 8DD93FC +gMonShinyPalette_Pupitar:: @ 8DD93FC .incbin "graphics/pokemon/pupitar/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_pupitar_icon:: @ 8DD9424 +gMonIcon_Pupitar:: @ 8DD9424 .incbin "graphics/pokemon/pupitar/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_pupitar_footprint:: @ 8DD9824 +gMonFootprint_Pupitar:: @ 8DD9824 .incbin "graphics/pokemon/pupitar/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_tyranitar_still_front_pic:: @ 8DD9844 +gMonFrontPic_Tyranitar:: @ 8DD9844 .incbin "graphics/pokemon/tyranitar/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_tyranitar_palette:: @ 8DD9D80 +gMonPalette_Tyranitar:: @ 8DD9D80 .incbin "graphics/pokemon/tyranitar/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_tyranitar_back_pic:: @ 8DD9DA8 +gMonBackPic_Tyranitar:: @ 8DD9DA8 .incbin "graphics/pokemon/tyranitar/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_tyranitar_shiny_palette:: @ 8DDA194 +gMonShinyPalette_Tyranitar:: @ 8DDA194 .incbin "graphics/pokemon/tyranitar/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_tyranitar_icon:: @ 8DDA1BC +gMonIcon_Tyranitar:: @ 8DDA1BC .incbin "graphics/pokemon/tyranitar/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_tyranitar_footprint:: @ 8DDA5BC +gMonFootprint_Tyranitar:: @ 8DDA5BC .incbin "graphics/pokemon/tyranitar/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_lugia_still_front_pic:: @ 8DDA5DC +gMonFrontPic_Lugia:: @ 8DDA5DC .incbin "graphics/pokemon/lugia/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_lugia_palette:: @ 8DDAAA0 +gMonPalette_Lugia:: @ 8DDAAA0 .incbin "graphics/pokemon/lugia/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_lugia_back_pic:: @ 8DDAAC8 +gMonBackPic_Lugia:: @ 8DDAAC8 .incbin "graphics/pokemon/lugia/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_lugia_shiny_palette:: @ 8DDAE9C +gMonShinyPalette_Lugia:: @ 8DDAE9C .incbin "graphics/pokemon/lugia/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_lugia_icon:: @ 8DDAEC4 +gMonIcon_Lugia:: @ 8DDAEC4 .incbin "graphics/pokemon/lugia/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_lugia_footprint:: @ 8DDB2C4 +gMonFootprint_Lugia:: @ 8DDB2C4 .incbin "graphics/pokemon/lugia/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_ho_oh_still_front_pic:: @ 8DDB2E4 +gMonFrontPic_HoOh:: @ 8DDB2E4 .incbin "graphics/pokemon/ho_oh/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_ho_oh_palette:: @ 8DDB938 +gMonPalette_HoOh:: @ 8DDB938 .incbin "graphics/pokemon/ho_oh/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_ho_oh_back_pic:: @ 8DDB960 +gMonBackPic_HoOh:: @ 8DDB960 .incbin "graphics/pokemon/ho_oh/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_ho_oh_shiny_palette:: @ 8DDBD70 +gMonShinyPalette_HoOh:: @ 8DDBD70 .incbin "graphics/pokemon/ho_oh/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_ho_oh_icon:: @ 8DDBD98 +gMonIcon_HoOh:: @ 8DDBD98 .incbin "graphics/pokemon/ho_oh/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_ho_oh_footprint:: @ 8DDC198 +gMonFootprint_HoOh:: @ 8DDC198 .incbin "graphics/pokemon/ho_oh/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_celebi_still_front_pic:: @ 8DDC1B8 +gMonFrontPic_Celebi:: @ 8DDC1B8 .incbin "graphics/pokemon/celebi/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_celebi_palette:: @ 8DDC430 +gMonPalette_Celebi:: @ 8DDC430 .incbin "graphics/pokemon/celebi/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_celebi_back_pic:: @ 8DDC458 +gMonBackPic_Celebi:: @ 8DDC458 .incbin "graphics/pokemon/celebi/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_celebi_shiny_palette:: @ 8DDC804 +gMonShinyPalette_Celebi:: @ 8DDC804 .incbin "graphics/pokemon/celebi/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_celebi_icon:: @ 8DDC82C +gMonIcon_Celebi:: @ 8DDC82C .incbin "graphics/pokemon/celebi/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_celebi_footprint:: @ 8DDCC2C +gMonFootprint_Celebi:: @ 8DDCC2C .incbin "graphics/pokemon/celebi/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_double_question_mark_still_front_pic:: @ 8DDCC4C +gMonFrontPic_DoubleQuestionMark:: @ 8DDCC4C .incbin "graphics/pokemon/question_mark/double/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_double_question_mark_palette:: @ 8DDCDD0 +gMonPalette_DoubleQuestionMark:: @ 8DDCDD0 .incbin "graphics/pokemon/question_mark/double/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_double_question_mark_back_pic:: @ 8DDCDE4 +gMonBackPic_DoubleQuestionMark:: @ 8DDCDE4 .incbin "graphics/pokemon/question_mark/double/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_double_question_mark_shiny_palette:: @ 8DDCF68 +gMonShinyPalette_DoubleQuestionMark:: @ 8DDCF68 .incbin "graphics/pokemon/question_mark/double/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_front_pics_treecko_still_front_pic:: @ 8DDCF7C +gMonFrontPic_Treecko:: @ 8DDCF7C .incbin "graphics/pokemon/treecko/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_treecko_palette:: @ 8DDD284 +gMonPalette_Treecko:: @ 8DDD284 .incbin "graphics/pokemon/treecko/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_treecko_back_pic:: @ 8DDD2AC +gMonBackPic_Treecko:: @ 8DDD2AC .incbin "graphics/pokemon/treecko/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_treecko_shiny_palette:: @ 8DDD5AC +gMonShinyPalette_Treecko:: @ 8DDD5AC .incbin "graphics/pokemon/treecko/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_treecko_icon:: @ 8DDD5D4 +gMonIcon_Treecko:: @ 8DDD5D4 .incbin "graphics/pokemon/treecko/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_treecko_footprint:: @ 8DDD9D4 +gMonFootprint_Treecko:: @ 8DDD9D4 .incbin "graphics/pokemon/treecko/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_grovyle_still_front_pic:: @ 8DDD9F4 +gMonFrontPic_Grovyle:: @ 8DDD9F4 .incbin "graphics/pokemon/grovyle/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_grovyle_palette:: @ 8DDDE80 +gMonPalette_Grovyle:: @ 8DDDE80 .incbin "graphics/pokemon/grovyle/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_grovyle_back_pic:: @ 8DDDEA8 +gMonBackPic_Grovyle:: @ 8DDDEA8 .incbin "graphics/pokemon/grovyle/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_grovyle_shiny_palette:: @ 8DDE1E4 +gMonShinyPalette_Grovyle:: @ 8DDE1E4 .incbin "graphics/pokemon/grovyle/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_grovyle_icon:: @ 8DDE20C +gMonIcon_Grovyle:: @ 8DDE20C .incbin "graphics/pokemon/grovyle/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_grovyle_footprint:: @ 8DDE60C +gMonFootprint_Grovyle:: @ 8DDE60C .incbin "graphics/pokemon/grovyle/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_sceptile_still_front_pic:: @ 8DDE62C +gMonFrontPic_Sceptile:: @ 8DDE62C .incbin "graphics/pokemon/sceptile/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_sceptile_palette:: @ 8DDEB30 +gMonPalette_Sceptile:: @ 8DDEB30 .incbin "graphics/pokemon/sceptile/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_sceptile_back_pic:: @ 8DDEB58 +gMonBackPic_Sceptile:: @ 8DDEB58 .incbin "graphics/pokemon/sceptile/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_sceptile_shiny_palette:: @ 8DDEF54 +gMonShinyPalette_Sceptile:: @ 8DDEF54 .incbin "graphics/pokemon/sceptile/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_sceptile_icon:: @ 8DDEF7C +gMonIcon_Sceptile:: @ 8DDEF7C .incbin "graphics/pokemon/sceptile/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_sceptile_footprint:: @ 8DDF37C +gMonFootprint_Sceptile:: @ 8DDF37C .incbin "graphics/pokemon/sceptile/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_torchic_still_front_pic:: @ 8DDF39C +gMonFrontPic_Torchic:: @ 8DDF39C .incbin "graphics/pokemon/torchic/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_torchic_palette:: @ 8DDF638 +gMonPalette_Torchic:: @ 8DDF638 .incbin "graphics/pokemon/torchic/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_torchic_back_pic:: @ 8DDF660 +gMonBackPic_Torchic:: @ 8DDF660 .incbin "graphics/pokemon/torchic/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_torchic_shiny_palette:: @ 8DDF938 +gMonShinyPalette_Torchic:: @ 8DDF938 .incbin "graphics/pokemon/torchic/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_torchic_icon:: @ 8DDF960 +gMonIcon_Torchic:: @ 8DDF960 .incbin "graphics/pokemon/torchic/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_torchic_footprint:: @ 8DDFD60 +gMonFootprint_Torchic:: @ 8DDFD60 .incbin "graphics/pokemon/torchic/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_combusken_still_front_pic:: @ 8DDFD80 +gMonFrontPic_Combusken:: @ 8DDFD80 .incbin "graphics/pokemon/combusken/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_combusken_palette:: @ 8DE016C +gMonPalette_Combusken:: @ 8DE016C .incbin "graphics/pokemon/combusken/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_combusken_back_pic:: @ 8DE0194 +gMonBackPic_Combusken:: @ 8DE0194 .incbin "graphics/pokemon/combusken/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_combusken_shiny_palette:: @ 8DE0564 +gMonShinyPalette_Combusken:: @ 8DE0564 .incbin "graphics/pokemon/combusken/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_combusken_icon:: @ 8DE058C +gMonIcon_Combusken:: @ 8DE058C .incbin "graphics/pokemon/combusken/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_combusken_footprint:: @ 8DE098C +gMonFootprint_Combusken:: @ 8DE098C .incbin "graphics/pokemon/combusken/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_blaziken_still_front_pic:: @ 8DE09AC +gMonFrontPic_Blaziken:: @ 8DE09AC .incbin "graphics/pokemon/blaziken/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_blaziken_palette:: @ 8DE0E24 +gMonPalette_Blaziken:: @ 8DE0E24 .incbin "graphics/pokemon/blaziken/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_blaziken_back_pic:: @ 8DE0E4C +gMonBackPic_Blaziken:: @ 8DE0E4C .incbin "graphics/pokemon/blaziken/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_blaziken_shiny_palette:: @ 8DE1228 +gMonShinyPalette_Blaziken:: @ 8DE1228 .incbin "graphics/pokemon/blaziken/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_blaziken_icon:: @ 8DE1250 +gMonIcon_Blaziken:: @ 8DE1250 .incbin "graphics/pokemon/blaziken/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_blaziken_footprint:: @ 8DE1650 +gMonFootprint_Blaziken:: @ 8DE1650 .incbin "graphics/pokemon/blaziken/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_mudkip_still_front_pic:: @ 8DE1670 +gMonFrontPic_Mudkip:: @ 8DE1670 .incbin "graphics/pokemon/mudkip/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_mudkip_palette:: @ 8DE1928 +gMonPalette_Mudkip:: @ 8DE1928 .incbin "graphics/pokemon/mudkip/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_mudkip_back_pic:: @ 8DE1950 +gMonBackPic_Mudkip:: @ 8DE1950 .incbin "graphics/pokemon/mudkip/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_mudkip_shiny_palette:: @ 8DE1C30 +gMonShinyPalette_Mudkip:: @ 8DE1C30 .incbin "graphics/pokemon/mudkip/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_mudkip_icon:: @ 8DE1C58 +gMonIcon_Mudkip:: @ 8DE1C58 .incbin "graphics/pokemon/mudkip/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_mudkip_footprint:: @ 8DE2058 +gMonFootprint_Mudkip:: @ 8DE2058 .incbin "graphics/pokemon/mudkip/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_marshtomp_still_front_pic:: @ 8DE2078 +gMonFrontPic_Marshtomp:: @ 8DE2078 .incbin "graphics/pokemon/marshtomp/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_marshtomp_palette:: @ 8DE2400 +gMonPalette_Marshtomp:: @ 8DE2400 .incbin "graphics/pokemon/marshtomp/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_marshtomp_back_pic:: @ 8DE2428 +gMonBackPic_Marshtomp:: @ 8DE2428 .incbin "graphics/pokemon/marshtomp/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_marshtomp_shiny_palette:: @ 8DE27D8 +gMonShinyPalette_Marshtomp:: @ 8DE27D8 .incbin "graphics/pokemon/marshtomp/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_marshtomp_icon:: @ 8DE2800 +gMonIcon_Marshtomp:: @ 8DE2800 .incbin "graphics/pokemon/marshtomp/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_marshtomp_footprint:: @ 8DE2C00 +gMonFootprint_Marshtomp:: @ 8DE2C00 .incbin "graphics/pokemon/marshtomp/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_swampert_still_front_pic:: @ 8DE2C20 +gMonFrontPic_Swampert:: @ 8DE2C20 .incbin "graphics/pokemon/swampert/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_swampert_palette:: @ 8DE319C +gMonPalette_Swampert:: @ 8DE319C .incbin "graphics/pokemon/swampert/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_swampert_back_pic:: @ 8DE31C4 +gMonBackPic_Swampert:: @ 8DE31C4 .incbin "graphics/pokemon/swampert/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_swampert_shiny_palette:: @ 8DE3578 +gMonShinyPalette_Swampert:: @ 8DE3578 .incbin "graphics/pokemon/swampert/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_swampert_icon:: @ 8DE35A0 +gMonIcon_Swampert:: @ 8DE35A0 .incbin "graphics/pokemon/swampert/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_swampert_footprint:: @ 8DE39A0 +gMonFootprint_Swampert:: @ 8DE39A0 .incbin "graphics/pokemon/swampert/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_poochyena_still_front_pic:: @ 8DE39C0 +gMonFrontPic_Poochyena:: @ 8DE39C0 .incbin "graphics/pokemon/poochyena/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_poochyena_palette:: @ 8DE3C88 +gMonPalette_Poochyena:: @ 8DE3C88 .incbin "graphics/pokemon/poochyena/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_poochyena_back_pic:: @ 8DE3CB0 +gMonBackPic_Poochyena:: @ 8DE3CB0 .incbin "graphics/pokemon/poochyena/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_poochyena_shiny_palette:: @ 8DE3FDC +gMonShinyPalette_Poochyena:: @ 8DE3FDC .incbin "graphics/pokemon/poochyena/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_poochyena_icon:: @ 8DE4004 +gMonIcon_Poochyena:: @ 8DE4004 .incbin "graphics/pokemon/poochyena/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_poochyena_footprint:: @ 8DE4404 +gMonFootprint_Poochyena:: @ 8DE4404 .incbin "graphics/pokemon/poochyena/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_mightyena_still_front_pic:: @ 8DE4424 +gMonFrontPic_Mightyena:: @ 8DE4424 .incbin "graphics/pokemon/mightyena/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_mightyena_palette:: @ 8DE485C +gMonPalette_Mightyena:: @ 8DE485C .incbin "graphics/pokemon/mightyena/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_mightyena_back_pic:: @ 8DE4884 +gMonBackPic_Mightyena:: @ 8DE4884 .incbin "graphics/pokemon/mightyena/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_mightyena_shiny_palette:: @ 8DE4BFC +gMonShinyPalette_Mightyena:: @ 8DE4BFC .incbin "graphics/pokemon/mightyena/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_mightyena_icon:: @ 8DE4C24 +gMonIcon_Mightyena:: @ 8DE4C24 .incbin "graphics/pokemon/mightyena/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_mightyena_footprint:: @ 8DE5024 +gMonFootprint_Mightyena:: @ 8DE5024 .incbin "graphics/pokemon/mightyena/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_zigzagoon_still_front_pic:: @ 8DE5044 +gMonFrontPic_Zigzagoon:: @ 8DE5044 .incbin "graphics/pokemon/zigzagoon/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_zigzagoon_palette:: @ 8DE5414 +gMonPalette_Zigzagoon:: @ 8DE5414 .incbin "graphics/pokemon/zigzagoon/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_zigzagoon_back_pic:: @ 8DE543C +gMonBackPic_Zigzagoon:: @ 8DE543C .incbin "graphics/pokemon/zigzagoon/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_zigzagoon_shiny_palette:: @ 8DE577C +gMonShinyPalette_Zigzagoon:: @ 8DE577C .incbin "graphics/pokemon/zigzagoon/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_zigzagoon_icon:: @ 8DE57A4 +gMonIcon_Zigzagoon:: @ 8DE57A4 .incbin "graphics/pokemon/zigzagoon/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_zigzagoon_footprint:: @ 8DE5BA4 +gMonFootprint_Zigzagoon:: @ 8DE5BA4 .incbin "graphics/pokemon/zigzagoon/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_linoone_still_front_pic:: @ 8DE5BC4 +gMonFrontPic_Linoone:: @ 8DE5BC4 .incbin "graphics/pokemon/linoone/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_linoone_palette:: @ 8DE5F34 +gMonPalette_Linoone:: @ 8DE5F34 .incbin "graphics/pokemon/linoone/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_linoone_back_pic:: @ 8DE5F5C +gMonBackPic_Linoone:: @ 8DE5F5C .incbin "graphics/pokemon/linoone/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_linoone_shiny_palette:: @ 8DE6230 +gMonShinyPalette_Linoone:: @ 8DE6230 .incbin "graphics/pokemon/linoone/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_linoone_icon:: @ 8DE6258 +gMonIcon_Linoone:: @ 8DE6258 .incbin "graphics/pokemon/linoone/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_linoone_footprint:: @ 8DE6658 +gMonFootprint_Linoone:: @ 8DE6658 .incbin "graphics/pokemon/linoone/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_wurmple_still_front_pic:: @ 8DE6678 +gMonFrontPic_Wurmple:: @ 8DE6678 .incbin "graphics/pokemon/wurmple/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_wurmple_palette:: @ 8DE6900 +gMonPalette_Wurmple:: @ 8DE6900 .incbin "graphics/pokemon/wurmple/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_wurmple_back_pic:: @ 8DE6928 +gMonBackPic_Wurmple:: @ 8DE6928 .incbin "graphics/pokemon/wurmple/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_wurmple_shiny_palette:: @ 8DE6B74 +gMonShinyPalette_Wurmple:: @ 8DE6B74 .incbin "graphics/pokemon/wurmple/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_wurmple_icon:: @ 8DE6B9C +gMonIcon_Wurmple:: @ 8DE6B9C .incbin "graphics/pokemon/wurmple/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_wurmple_footprint:: @ 8DE6F9C +gMonFootprint_Wurmple:: @ 8DE6F9C .incbin "graphics/pokemon/wurmple/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_silcoon_still_front_pic:: @ 8DE6FBC +gMonFrontPic_Silcoon:: @ 8DE6FBC .incbin "graphics/pokemon/silcoon/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_silcoon_palette:: @ 8DE723C +gMonPalette_Silcoon:: @ 8DE723C .incbin "graphics/pokemon/silcoon/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_silcoon_back_pic:: @ 8DE7264 +gMonBackPic_Silcoon:: @ 8DE7264 .incbin "graphics/pokemon/silcoon/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_silcoon_shiny_palette:: @ 8DE7480 +gMonShinyPalette_Silcoon:: @ 8DE7480 .incbin "graphics/pokemon/silcoon/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_silcoon_icon:: @ 8DE74A8 +gMonIcon_Silcoon:: @ 8DE74A8 .incbin "graphics/pokemon/silcoon/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_silcoon_footprint:: @ 8DE78A8 +gMonFootprint_Silcoon:: @ 8DE78A8 .incbin "graphics/pokemon/silcoon/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_beautifly_still_front_pic:: @ 8DE78C8 +gMonFrontPic_Beautifly:: @ 8DE78C8 .incbin "graphics/pokemon/beautifly/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_beautifly_palette:: @ 8DE7C20 +gMonPalette_Beautifly:: @ 8DE7C20 .incbin "graphics/pokemon/beautifly/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_beautifly_back_pic:: @ 8DE7C48 +gMonBackPic_Beautifly:: @ 8DE7C48 .incbin "graphics/pokemon/beautifly/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_beautifly_shiny_palette:: @ 8DE7FF8 +gMonShinyPalette_Beautifly:: @ 8DE7FF8 .incbin "graphics/pokemon/beautifly/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_beautifly_icon:: @ 8DE8020 +gMonIcon_Beautifly:: @ 8DE8020 .incbin "graphics/pokemon/beautifly/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_beautifly_footprint:: @ 8DE8420 +gMonFootprint_Beautifly:: @ 8DE8420 .incbin "graphics/pokemon/beautifly/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_cascoon_still_front_pic:: @ 8DE8440 +gMonFrontPic_Cascoon:: @ 8DE8440 .incbin "graphics/pokemon/cascoon/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_cascoon_palette:: @ 8DE86AC +gMonPalette_Cascoon:: @ 8DE86AC .incbin "graphics/pokemon/cascoon/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_cascoon_back_pic:: @ 8DE86D4 +gMonBackPic_Cascoon:: @ 8DE86D4 .incbin "graphics/pokemon/cascoon/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_cascoon_shiny_palette:: @ 8DE88E4 +gMonShinyPalette_Cascoon:: @ 8DE88E4 .incbin "graphics/pokemon/cascoon/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_cascoon_icon:: @ 8DE890C +gMonIcon_Cascoon:: @ 8DE890C .incbin "graphics/pokemon/cascoon/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_cascoon_footprint:: @ 8DE8D0C +gMonFootprint_Cascoon:: @ 8DE8D0C .incbin "graphics/pokemon/cascoon/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_dustox_still_front_pic:: @ 8DE8D2C +gMonFrontPic_Dustox:: @ 8DE8D2C .incbin "graphics/pokemon/dustox/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_dustox_palette:: @ 8DE9094 +gMonPalette_Dustox:: @ 8DE9094 .incbin "graphics/pokemon/dustox/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_dustox_back_pic:: @ 8DE90BC +gMonBackPic_Dustox:: @ 8DE90BC .incbin "graphics/pokemon/dustox/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_dustox_shiny_palette:: @ 8DE9314 +gMonShinyPalette_Dustox:: @ 8DE9314 .incbin "graphics/pokemon/dustox/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_dustox_icon:: @ 8DE933C +gMonIcon_Dustox:: @ 8DE933C .incbin "graphics/pokemon/dustox/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_dustox_footprint:: @ 8DE973C +gMonFootprint_Dustox:: @ 8DE973C .incbin "graphics/pokemon/dustox/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_lotad_still_front_pic:: @ 8DE975C +gMonFrontPic_Lotad:: @ 8DE975C .incbin "graphics/pokemon/lotad/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_lotad_palette:: @ 8DE99BC +gMonPalette_Lotad:: @ 8DE99BC .incbin "graphics/pokemon/lotad/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_lotad_back_pic:: @ 8DE99E4 +gMonBackPic_Lotad:: @ 8DE99E4 .incbin "graphics/pokemon/lotad/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_lotad_shiny_palette:: @ 8DE9CCC +gMonShinyPalette_Lotad:: @ 8DE9CCC .incbin "graphics/pokemon/lotad/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_lotad_icon:: @ 8DE9CF4 +gMonIcon_Lotad:: @ 8DE9CF4 .incbin "graphics/pokemon/lotad/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_lotad_footprint:: @ 8DEA0F4 +gMonFootprint_Lotad:: @ 8DEA0F4 .incbin "graphics/pokemon/lotad/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_lombre_still_front_pic:: @ 8DEA114 +gMonFrontPic_Lombre:: @ 8DEA114 .incbin "graphics/pokemon/lombre/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_lombre_palette:: @ 8DEA42C +gMonPalette_Lombre:: @ 8DEA42C .incbin "graphics/pokemon/lombre/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_lombre_back_pic:: @ 8DEA454 +gMonBackPic_Lombre:: @ 8DEA454 .incbin "graphics/pokemon/lombre/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_lombre_shiny_palette:: @ 8DEA750 +gMonShinyPalette_Lombre:: @ 8DEA750 .incbin "graphics/pokemon/lombre/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_lombre_icon:: @ 8DEA778 +gMonIcon_Lombre:: @ 8DEA778 .incbin "graphics/pokemon/lombre/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_lombre_footprint:: @ 8DEAB78 +gMonFootprint_Lombre:: @ 8DEAB78 .incbin "graphics/pokemon/lombre/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_ludicolo_still_front_pic:: @ 8DEAB98 +gMonFrontPic_Ludicolo:: @ 8DEAB98 .incbin "graphics/pokemon/ludicolo/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_ludicolo_palette:: @ 8DEB07C +gMonPalette_Ludicolo:: @ 8DEB07C .incbin "graphics/pokemon/ludicolo/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_ludicolo_back_pic:: @ 8DEB0A4 +gMonBackPic_Ludicolo:: @ 8DEB0A4 .incbin "graphics/pokemon/ludicolo/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_ludicolo_shiny_palette:: @ 8DEB3A0 +gMonShinyPalette_Ludicolo:: @ 8DEB3A0 .incbin "graphics/pokemon/ludicolo/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_ludicolo_icon:: @ 8DEB3C8 +gMonIcon_Ludicolo:: @ 8DEB3C8 .incbin "graphics/pokemon/ludicolo/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_ludicolo_footprint:: @ 8DEB7C8 +gMonFootprint_Ludicolo:: @ 8DEB7C8 .incbin "graphics/pokemon/ludicolo/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_seedot_still_front_pic:: @ 8DEB7E8 +gMonFrontPic_Seedot:: @ 8DEB7E8 .incbin "graphics/pokemon/seedot/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_seedot_palette:: @ 8DEBA7C +gMonPalette_Seedot:: @ 8DEBA7C .incbin "graphics/pokemon/seedot/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_seedot_back_pic:: @ 8DEBAA4 +gMonBackPic_Seedot:: @ 8DEBAA4 .incbin "graphics/pokemon/seedot/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_seedot_shiny_palette:: @ 8DEBD84 +gMonShinyPalette_Seedot:: @ 8DEBD84 .incbin "graphics/pokemon/seedot/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_seedot_icon:: @ 8DEBDAC +gMonIcon_Seedot:: @ 8DEBDAC .incbin "graphics/pokemon/seedot/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_seedot_footprint:: @ 8DEC1AC +gMonFootprint_Seedot:: @ 8DEC1AC .incbin "graphics/pokemon/seedot/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_nuzleaf_still_front_pic:: @ 8DEC1CC +gMonFrontPic_Nuzleaf:: @ 8DEC1CC .incbin "graphics/pokemon/nuzleaf/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_nuzleaf_palette:: @ 8DEC4B8 +gMonPalette_Nuzleaf:: @ 8DEC4B8 .incbin "graphics/pokemon/nuzleaf/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_nuzleaf_back_pic:: @ 8DEC4E0 +gMonBackPic_Nuzleaf:: @ 8DEC4E0 .incbin "graphics/pokemon/nuzleaf/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_nuzleaf_shiny_palette:: @ 8DEC7A8 +gMonShinyPalette_Nuzleaf:: @ 8DEC7A8 .incbin "graphics/pokemon/nuzleaf/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_nuzleaf_icon:: @ 8DEC7D0 +gMonIcon_Nuzleaf:: @ 8DEC7D0 .incbin "graphics/pokemon/nuzleaf/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_nuzleaf_footprint:: @ 8DECBD0 +gMonFootprint_Nuzleaf:: @ 8DECBD0 .incbin "graphics/pokemon/nuzleaf/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_shiftry_still_front_pic:: @ 8DECBF0 +gMonFrontPic_Shiftry:: @ 8DECBF0 .incbin "graphics/pokemon/shiftry/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_shiftry_palette:: @ 8DED0AC +gMonPalette_Shiftry:: @ 8DED0AC .incbin "graphics/pokemon/shiftry/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_shiftry_back_pic:: @ 8DED0D4 +gMonBackPic_Shiftry:: @ 8DED0D4 .incbin "graphics/pokemon/shiftry/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_shiftry_shiny_palette:: @ 8DED398 +gMonShinyPalette_Shiftry:: @ 8DED398 .incbin "graphics/pokemon/shiftry/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_shiftry_icon:: @ 8DED3C0 +gMonIcon_Shiftry:: @ 8DED3C0 .incbin "graphics/pokemon/shiftry/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_shiftry_footprint:: @ 8DED7C0 +gMonFootprint_Shiftry:: @ 8DED7C0 .incbin "graphics/pokemon/shiftry/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_nincada_still_front_pic:: @ 8DED7E0 +gMonFrontPic_Nincada:: @ 8DED7E0 .incbin "graphics/pokemon/nincada/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_nincada_palette:: @ 8DEDA80 +gMonPalette_Nincada:: @ 8DEDA80 .incbin "graphics/pokemon/nincada/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_nincada_back_pic:: @ 8DEDAA8 +gMonBackPic_Nincada:: @ 8DEDAA8 .incbin "graphics/pokemon/nincada/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_nincada_shiny_palette:: @ 8DEDD60 +gMonShinyPalette_Nincada:: @ 8DEDD60 .incbin "graphics/pokemon/nincada/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_nincada_icon:: @ 8DEDD88 +gMonIcon_Nincada:: @ 8DEDD88 .incbin "graphics/pokemon/nincada/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_nincada_footprint:: @ 8DEE188 +gMonFootprint_Nincada:: @ 8DEE188 .incbin "graphics/pokemon/nincada/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_ninjask_still_front_pic:: @ 8DEE1A8 +gMonFrontPic_Ninjask:: @ 8DEE1A8 .incbin "graphics/pokemon/ninjask/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_ninjask_palette:: @ 8DEE518 +gMonPalette_Ninjask:: @ 8DEE518 .incbin "graphics/pokemon/ninjask/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_ninjask_back_pic:: @ 8DEE540 +gMonBackPic_Ninjask:: @ 8DEE540 .incbin "graphics/pokemon/ninjask/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_ninjask_shiny_palette:: @ 8DEE90C +gMonShinyPalette_Ninjask:: @ 8DEE90C .incbin "graphics/pokemon/ninjask/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_ninjask_icon:: @ 8DEE934 +gMonIcon_Ninjask:: @ 8DEE934 .incbin "graphics/pokemon/ninjask/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_ninjask_footprint:: @ 8DEED34 +gMonFootprint_Ninjask:: @ 8DEED34 .incbin "graphics/pokemon/ninjask/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_shedinja_still_front_pic:: @ 8DEED54 +gMonFrontPic_Shedinja:: @ 8DEED54 .incbin "graphics/pokemon/shedinja/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_shedinja_palette:: @ 8DEF074 +gMonPalette_Shedinja:: @ 8DEF074 .incbin "graphics/pokemon/shedinja/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_shedinja_back_pic:: @ 8DEF09C +gMonBackPic_Shedinja:: @ 8DEF09C .incbin "graphics/pokemon/shedinja/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_shedinja_shiny_palette:: @ 8DEF43C +gMonShinyPalette_Shedinja:: @ 8DEF43C .incbin "graphics/pokemon/shedinja/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_shedinja_icon:: @ 8DEF464 +gMonIcon_Shedinja:: @ 8DEF464 .incbin "graphics/pokemon/shedinja/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_shedinja_footprint:: @ 8DEF864 +gMonFootprint_Shedinja:: @ 8DEF864 .incbin "graphics/pokemon/shedinja/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_taillow_still_front_pic:: @ 8DEF884 +gMonFrontPic_Taillow:: @ 8DEF884 .incbin "graphics/pokemon/taillow/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_taillow_palette:: @ 8DEFADC +gMonPalette_Taillow:: @ 8DEFADC .incbin "graphics/pokemon/taillow/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_taillow_back_pic:: @ 8DEFB04 +gMonBackPic_Taillow:: @ 8DEFB04 .incbin "graphics/pokemon/taillow/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_taillow_shiny_palette:: @ 8DEFD24 +gMonShinyPalette_Taillow:: @ 8DEFD24 .incbin "graphics/pokemon/taillow/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_taillow_icon:: @ 8DEFD4C +gMonIcon_Taillow:: @ 8DEFD4C .incbin "graphics/pokemon/taillow/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_taillow_footprint:: @ 8DF014C +gMonFootprint_Taillow:: @ 8DF014C .incbin "graphics/pokemon/taillow/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_swellow_still_front_pic:: @ 8DF016C +gMonFrontPic_Swellow:: @ 8DF016C .incbin "graphics/pokemon/swellow/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_swellow_palette:: @ 8DF0530 +gMonPalette_Swellow:: @ 8DF0530 .incbin "graphics/pokemon/swellow/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_swellow_back_pic:: @ 8DF0558 +gMonBackPic_Swellow:: @ 8DF0558 .incbin "graphics/pokemon/swellow/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_swellow_shiny_palette:: @ 8DF0890 +gMonShinyPalette_Swellow:: @ 8DF0890 .incbin "graphics/pokemon/swellow/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_swellow_icon:: @ 8DF08B8 +gMonIcon_Swellow:: @ 8DF08B8 .incbin "graphics/pokemon/swellow/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_swellow_footprint:: @ 8DF0CB8 +gMonFootprint_Swellow:: @ 8DF0CB8 .incbin "graphics/pokemon/swellow/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_shroomish_still_front_pic:: @ 8DF0CD8 +gMonFrontPic_Shroomish:: @ 8DF0CD8 .incbin "graphics/pokemon/shroomish/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_shroomish_palette:: @ 8DF0F40 +gMonPalette_Shroomish:: @ 8DF0F40 .incbin "graphics/pokemon/shroomish/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_shroomish_back_pic:: @ 8DF0F68 +gMonBackPic_Shroomish:: @ 8DF0F68 .incbin "graphics/pokemon/shroomish/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_shroomish_shiny_palette:: @ 8DF1248 +gMonShinyPalette_Shroomish:: @ 8DF1248 .incbin "graphics/pokemon/shroomish/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_shroomish_icon:: @ 8DF1270 +gMonIcon_Shroomish:: @ 8DF1270 .incbin "graphics/pokemon/shroomish/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_shroomish_footprint:: @ 8DF1670 +gMonFootprint_Shroomish:: @ 8DF1670 .incbin "graphics/pokemon/shroomish/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_breloom_still_front_pic:: @ 8DF1690 +gMonFrontPic_Breloom:: @ 8DF1690 .incbin "graphics/pokemon/breloom/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_breloom_palette:: @ 8DF1A78 +gMonPalette_Breloom:: @ 8DF1A78 .incbin "graphics/pokemon/breloom/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_breloom_back_pic:: @ 8DF1AA0 +gMonBackPic_Breloom:: @ 8DF1AA0 .incbin "graphics/pokemon/breloom/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_breloom_shiny_palette:: @ 8DF1E80 +gMonShinyPalette_Breloom:: @ 8DF1E80 .incbin "graphics/pokemon/breloom/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_breloom_icon:: @ 8DF1EA8 +gMonIcon_Breloom:: @ 8DF1EA8 .incbin "graphics/pokemon/breloom/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_breloom_footprint:: @ 8DF22A8 +gMonFootprint_Breloom:: @ 8DF22A8 .incbin "graphics/pokemon/breloom/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_spinda_still_front_pic:: @ 8DF22C8 +gMonFrontPic_Spinda:: @ 8DF22C8 .incbin "graphics/pokemon/spinda/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_spinda_palette:: @ 8DF25C8 +gMonPalette_Spinda:: @ 8DF25C8 .incbin "graphics/pokemon/spinda/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_spinda_back_pic:: @ 8DF25F0 +gMonBackPic_Spinda:: @ 8DF25F0 .incbin "graphics/pokemon/spinda/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_spinda_shiny_palette:: @ 8DF292C +gMonShinyPalette_Spinda:: @ 8DF292C .incbin "graphics/pokemon/spinda/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_spinda_icon:: @ 8DF2954 +gMonIcon_Spinda:: @ 8DF2954 .incbin "graphics/pokemon/spinda/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_spinda_footprint:: @ 8DF2D54 +gMonFootprint_Spinda:: @ 8DF2D54 .incbin "graphics/pokemon/spinda/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_wingull_still_front_pic:: @ 8DF2D74 +gMonFrontPic_Wingull:: @ 8DF2D74 .incbin "graphics/pokemon/wingull/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_wingull_palette:: @ 8DF2FB0 +gMonPalette_Wingull:: @ 8DF2FB0 .incbin "graphics/pokemon/wingull/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_wingull_back_pic:: @ 8DF2FD8 +gMonBackPic_Wingull:: @ 8DF2FD8 .incbin "graphics/pokemon/wingull/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_wingull_shiny_palette:: @ 8DF3328 +gMonShinyPalette_Wingull:: @ 8DF3328 .incbin "graphics/pokemon/wingull/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_wingull_icon:: @ 8DF3350 +gMonIcon_Wingull:: @ 8DF3350 .incbin "graphics/pokemon/wingull/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_wingull_footprint:: @ 8DF3750 +gMonFootprint_Wingull:: @ 8DF3750 .incbin "graphics/pokemon/wingull/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_pelipper_still_front_pic:: @ 8DF3770 +gMonFrontPic_Pelipper:: @ 8DF3770 .incbin "graphics/pokemon/pelipper/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_pelipper_palette:: @ 8DF3B08 +gMonPalette_Pelipper:: @ 8DF3B08 .incbin "graphics/pokemon/pelipper/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_pelipper_back_pic:: @ 8DF3B30 +gMonBackPic_Pelipper:: @ 8DF3B30 .incbin "graphics/pokemon/pelipper/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_pelipper_shiny_palette:: @ 8DF3EB0 +gMonShinyPalette_Pelipper:: @ 8DF3EB0 .incbin "graphics/pokemon/pelipper/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_pelipper_icon:: @ 8DF3ED8 +gMonIcon_Pelipper:: @ 8DF3ED8 .incbin "graphics/pokemon/pelipper/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_pelipper_footprint:: @ 8DF42D8 +gMonFootprint_Pelipper:: @ 8DF42D8 .incbin "graphics/pokemon/pelipper/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_surskit_still_front_pic:: @ 8DF42F8 +gMonFrontPic_Surskit:: @ 8DF42F8 .incbin "graphics/pokemon/surskit/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_surskit_palette:: @ 8DF4504 +gMonPalette_Surskit:: @ 8DF4504 .incbin "graphics/pokemon/surskit/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_surskit_back_pic:: @ 8DF452C +gMonBackPic_Surskit:: @ 8DF452C .incbin "graphics/pokemon/surskit/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_surskit_shiny_palette:: @ 8DF4764 +gMonShinyPalette_Surskit:: @ 8DF4764 .incbin "graphics/pokemon/surskit/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_surskit_icon:: @ 8DF478C +gMonIcon_Surskit:: @ 8DF478C .incbin "graphics/pokemon/surskit/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_surskit_footprint:: @ 8DF4B8C +gMonFootprint_Surskit:: @ 8DF4B8C .incbin "graphics/pokemon/surskit/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_masquerain_still_front_pic:: @ 8DF4BAC +gMonFrontPic_Masquerain:: @ 8DF4BAC .incbin "graphics/pokemon/masquerain/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_masquerain_palette:: @ 8DF4F48 +gMonPalette_Masquerain:: @ 8DF4F48 .incbin "graphics/pokemon/masquerain/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_masquerain_back_pic:: @ 8DF4F70 +gMonBackPic_Masquerain:: @ 8DF4F70 .incbin "graphics/pokemon/masquerain/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_masquerain_shiny_palette:: @ 8DF52C8 +gMonShinyPalette_Masquerain:: @ 8DF52C8 .incbin "graphics/pokemon/masquerain/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_masquerain_icon:: @ 8DF52F0 +gMonIcon_Masquerain:: @ 8DF52F0 .incbin "graphics/pokemon/masquerain/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_masquerain_footprint:: @ 8DF56F0 +gMonFootprint_Masquerain:: @ 8DF56F0 .incbin "graphics/pokemon/masquerain/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_wailmer_still_front_pic:: @ 8DF5710 +gMonFrontPic_Wailmer:: @ 8DF5710 .incbin "graphics/pokemon/wailmer/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_wailmer_palette:: @ 8DF59F0 +gMonPalette_Wailmer:: @ 8DF59F0 .incbin "graphics/pokemon/wailmer/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_wailmer_back_pic:: @ 8DF5A18 +gMonBackPic_Wailmer:: @ 8DF5A18 .incbin "graphics/pokemon/wailmer/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_wailmer_shiny_palette:: @ 8DF5BFC +gMonShinyPalette_Wailmer:: @ 8DF5BFC .incbin "graphics/pokemon/wailmer/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_wailmer_icon:: @ 8DF5C24 +gMonIcon_Wailmer:: @ 8DF5C24 .incbin "graphics/pokemon/wailmer/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_wailmer_footprint:: @ 8DF6024 +gMonFootprint_Wailmer:: @ 8DF6024 .incbin "graphics/pokemon/wailmer/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_wailord_still_front_pic:: @ 8DF6044 +gMonFrontPic_Wailord:: @ 8DF6044 .incbin "graphics/pokemon/wailord/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_wailord_palette:: @ 8DF6408 +gMonPalette_Wailord:: @ 8DF6408 .incbin "graphics/pokemon/wailord/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_wailord_back_pic:: @ 8DF6430 +gMonBackPic_Wailord:: @ 8DF6430 .incbin "graphics/pokemon/wailord/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_wailord_shiny_palette:: @ 8DF6648 +gMonShinyPalette_Wailord:: @ 8DF6648 .incbin "graphics/pokemon/wailord/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_wailord_icon:: @ 8DF6670 +gMonIcon_Wailord:: @ 8DF6670 .incbin "graphics/pokemon/wailord/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_wailord_footprint:: @ 8DF6A70 +gMonFootprint_Wailord:: @ 8DF6A70 .incbin "graphics/pokemon/wailord/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_skitty_still_front_pic:: @ 8DF6A90 +gMonFrontPic_Skitty:: @ 8DF6A90 .incbin "graphics/pokemon/skitty/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_skitty_palette:: @ 8DF6D90 +gMonPalette_Skitty:: @ 8DF6D90 .incbin "graphics/pokemon/skitty/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_skitty_back_pic:: @ 8DF6DB8 +gMonBackPic_Skitty:: @ 8DF6DB8 .incbin "graphics/pokemon/skitty/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_skitty_shiny_palette:: @ 8DF7100 +gMonShinyPalette_Skitty:: @ 8DF7100 .incbin "graphics/pokemon/skitty/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_skitty_icon:: @ 8DF7128 +gMonIcon_Skitty:: @ 8DF7128 .incbin "graphics/pokemon/skitty/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_skitty_footprint:: @ 8DF7528 +gMonFootprint_Skitty:: @ 8DF7528 .incbin "graphics/pokemon/skitty/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_delcatty_still_front_pic:: @ 8DF7548 +gMonFrontPic_Delcatty:: @ 8DF7548 .incbin "graphics/pokemon/delcatty/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_delcatty_palette:: @ 8DF78D4 +gMonPalette_Delcatty:: @ 8DF78D4 .incbin "graphics/pokemon/delcatty/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_delcatty_back_pic:: @ 8DF78FC +gMonBackPic_Delcatty:: @ 8DF78FC .incbin "graphics/pokemon/delcatty/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_delcatty_shiny_palette:: @ 8DF7C98 +gMonShinyPalette_Delcatty:: @ 8DF7C98 .incbin "graphics/pokemon/delcatty/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_delcatty_icon:: @ 8DF7CC0 +gMonIcon_Delcatty:: @ 8DF7CC0 .incbin "graphics/pokemon/delcatty/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_delcatty_footprint:: @ 8DF80C0 +gMonFootprint_Delcatty:: @ 8DF80C0 .incbin "graphics/pokemon/delcatty/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_kecleon_still_front_pic:: @ 8DF80E0 +gMonFrontPic_Kecleon:: @ 8DF80E0 .incbin "graphics/pokemon/kecleon/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_kecleon_palette:: @ 8DF8460 +gMonPalette_Kecleon:: @ 8DF8460 .incbin "graphics/pokemon/kecleon/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_kecleon_back_pic:: @ 8DF8488 +gMonBackPic_Kecleon:: @ 8DF8488 .incbin "graphics/pokemon/kecleon/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_kecleon_shiny_palette:: @ 8DF8860 +gMonShinyPalette_Kecleon:: @ 8DF8860 .incbin "graphics/pokemon/kecleon/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_kecleon_icon:: @ 8DF8888 +gMonIcon_Kecleon:: @ 8DF8888 .incbin "graphics/pokemon/kecleon/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_kecleon_footprint:: @ 8DF8C88 +gMonFootprint_Kecleon:: @ 8DF8C88 .incbin "graphics/pokemon/kecleon/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_baltoy_still_front_pic:: @ 8DF8CA8 +gMonFrontPic_Baltoy:: @ 8DF8CA8 .incbin "graphics/pokemon/baltoy/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_baltoy_palette:: @ 8DF8ECC +gMonPalette_Baltoy:: @ 8DF8ECC .incbin "graphics/pokemon/baltoy/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_baltoy_back_pic:: @ 8DF8EEC +gMonBackPic_Baltoy:: @ 8DF8EEC .incbin "graphics/pokemon/baltoy/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_baltoy_shiny_palette:: @ 8DF9194 +gMonShinyPalette_Baltoy:: @ 8DF9194 .incbin "graphics/pokemon/baltoy/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_baltoy_icon:: @ 8DF91B4 +gMonIcon_Baltoy:: @ 8DF91B4 .incbin "graphics/pokemon/baltoy/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_baltoy_footprint:: @ 8DF95B4 +gMonFootprint_Baltoy:: @ 8DF95B4 .incbin "graphics/pokemon/baltoy/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_claydol_still_front_pic:: @ 8DF95D4 +gMonFrontPic_Claydol:: @ 8DF95D4 .incbin "graphics/pokemon/claydol/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_claydol_palette:: @ 8DF998C +gMonPalette_Claydol:: @ 8DF998C .incbin "graphics/pokemon/claydol/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_claydol_back_pic:: @ 8DF99B4 +gMonBackPic_Claydol:: @ 8DF99B4 .incbin "graphics/pokemon/claydol/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_claydol_shiny_palette:: @ 8DF9D88 +gMonShinyPalette_Claydol:: @ 8DF9D88 .incbin "graphics/pokemon/claydol/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_claydol_icon:: @ 8DF9DB0 +gMonIcon_Claydol:: @ 8DF9DB0 .incbin "graphics/pokemon/claydol/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_claydol_footprint:: @ 8DFA1B0 +gMonFootprint_Claydol:: @ 8DFA1B0 .incbin "graphics/pokemon/claydol/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_nosepass_still_front_pic:: @ 8DFA1D0 +gMonFrontPic_Nosepass:: @ 8DFA1D0 .incbin "graphics/pokemon/nosepass/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_nosepass_palette:: @ 8DFA49C +gMonPalette_Nosepass:: @ 8DFA49C .incbin "graphics/pokemon/nosepass/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_nosepass_back_pic:: @ 8DFA4C4 +gMonBackPic_Nosepass:: @ 8DFA4C4 .incbin "graphics/pokemon/nosepass/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_nosepass_shiny_palette:: @ 8DFA764 +gMonShinyPalette_Nosepass:: @ 8DFA764 .incbin "graphics/pokemon/nosepass/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_nosepass_icon:: @ 8DFA78C +gMonIcon_Nosepass:: @ 8DFA78C .incbin "graphics/pokemon/nosepass/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_nosepass_footprint:: @ 8DFAB8C +gMonFootprint_Nosepass:: @ 8DFAB8C .incbin "graphics/pokemon/nosepass/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_torkoal_still_front_pic:: @ 8DFABAC +gMonFrontPic_Torkoal:: @ 8DFABAC .incbin "graphics/pokemon/torkoal/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_torkoal_palette:: @ 8DFB058 +gMonPalette_Torkoal:: @ 8DFB058 .incbin "graphics/pokemon/torkoal/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_torkoal_back_pic:: @ 8DFB080 +gMonBackPic_Torkoal:: @ 8DFB080 .incbin "graphics/pokemon/torkoal/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_torkoal_shiny_palette:: @ 8DFB348 +gMonShinyPalette_Torkoal:: @ 8DFB348 .incbin "graphics/pokemon/torkoal/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_torkoal_icon:: @ 8DFB370 +gMonIcon_Torkoal:: @ 8DFB370 .incbin "graphics/pokemon/torkoal/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_torkoal_footprint:: @ 8DFB770 +gMonFootprint_Torkoal:: @ 8DFB770 .incbin "graphics/pokemon/torkoal/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_sableye_still_front_pic:: @ 8DFB790 +gMonFrontPic_Sableye:: @ 8DFB790 .incbin "graphics/pokemon/sableye/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_sableye_palette:: @ 8DFBA64 +gMonPalette_Sableye:: @ 8DFBA64 .incbin "graphics/pokemon/sableye/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_sableye_back_pic:: @ 8DFBA8C +gMonBackPic_Sableye:: @ 8DFBA8C .incbin "graphics/pokemon/sableye/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_sableye_shiny_palette:: @ 8DFBDB4 +gMonShinyPalette_Sableye:: @ 8DFBDB4 .incbin "graphics/pokemon/sableye/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_sableye_icon:: @ 8DFBDDC +gMonIcon_Sableye:: @ 8DFBDDC .incbin "graphics/pokemon/sableye/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_sableye_footprint:: @ 8DFC1DC +gMonFootprint_Sableye:: @ 8DFC1DC .incbin "graphics/pokemon/sableye/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_barboach_still_front_pic:: @ 8DFC1FC +gMonFrontPic_Barboach:: @ 8DFC1FC .incbin "graphics/pokemon/barboach/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_barboach_palette:: @ 8DFC48C +gMonPalette_Barboach:: @ 8DFC48C .incbin "graphics/pokemon/barboach/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_barboach_back_pic:: @ 8DFC4B4 +gMonBackPic_Barboach:: @ 8DFC4B4 .incbin "graphics/pokemon/barboach/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_barboach_shiny_palette:: @ 8DFC744 +gMonShinyPalette_Barboach:: @ 8DFC744 .incbin "graphics/pokemon/barboach/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_barboach_icon:: @ 8DFC76C +gMonIcon_Barboach:: @ 8DFC76C .incbin "graphics/pokemon/barboach/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_barboach_footprint:: @ 8DFCB6C +gMonFootprint_Barboach:: @ 8DFCB6C .incbin "graphics/pokemon/barboach/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_whiscash_still_front_pic:: @ 8DFCB8C +gMonFrontPic_Whiscash:: @ 8DFCB8C .incbin "graphics/pokemon/whiscash/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_whiscash_palette:: @ 8DFCF04 +gMonPalette_Whiscash:: @ 8DFCF04 .incbin "graphics/pokemon/whiscash/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_whiscash_back_pic:: @ 8DFCF2C +gMonBackPic_Whiscash:: @ 8DFCF2C .incbin "graphics/pokemon/whiscash/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_whiscash_shiny_palette:: @ 8DFD278 +gMonShinyPalette_Whiscash:: @ 8DFD278 .incbin "graphics/pokemon/whiscash/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_whiscash_icon:: @ 8DFD2A0 +gMonIcon_Whiscash:: @ 8DFD2A0 .incbin "graphics/pokemon/whiscash/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_whiscash_footprint:: @ 8DFD6A0 +gMonFootprint_Whiscash:: @ 8DFD6A0 .incbin "graphics/pokemon/whiscash/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_luvdisc_still_front_pic:: @ 8DFD6C0 +gMonFrontPic_Luvdisc:: @ 8DFD6C0 .incbin "graphics/pokemon/luvdisc/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_luvdisc_palette:: @ 8DFD880 +gMonPalette_Luvdisc:: @ 8DFD880 .incbin "graphics/pokemon/luvdisc/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_luvdisc_back_pic:: @ 8DFD8A4 +gMonBackPic_Luvdisc:: @ 8DFD8A4 .incbin "graphics/pokemon/luvdisc/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_luvdisc_shiny_palette:: @ 8DFDA78 +gMonShinyPalette_Luvdisc:: @ 8DFDA78 .incbin "graphics/pokemon/luvdisc/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_luvdisc_icon:: @ 8DFDA9C +gMonIcon_Luvdisc:: @ 8DFDA9C .incbin "graphics/pokemon/luvdisc/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_luvdisc_footprint:: @ 8DFDE9C +gMonFootprint_Luvdisc:: @ 8DFDE9C .incbin "graphics/pokemon/luvdisc/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_corphish_still_front_pic:: @ 8DFDEBC +gMonFrontPic_Corphish:: @ 8DFDEBC .incbin "graphics/pokemon/corphish/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_corphish_palette:: @ 8DFE218 +gMonPalette_Corphish:: @ 8DFE218 .incbin "graphics/pokemon/corphish/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_corphish_back_pic:: @ 8DFE240 +gMonBackPic_Corphish:: @ 8DFE240 .incbin "graphics/pokemon/corphish/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_corphish_shiny_palette:: @ 8DFE55C +gMonShinyPalette_Corphish:: @ 8DFE55C .incbin "graphics/pokemon/corphish/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_corphish_icon:: @ 8DFE584 +gMonIcon_Corphish:: @ 8DFE584 .incbin "graphics/pokemon/corphish/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_corphish_footprint:: @ 8DFE984 +gMonFootprint_Corphish:: @ 8DFE984 .incbin "graphics/pokemon/corphish/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_crawdaunt_still_front_pic:: @ 8DFE9A4 +gMonFrontPic_Crawdaunt:: @ 8DFE9A4 .incbin "graphics/pokemon/crawdaunt/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_crawdaunt_palette:: @ 8DFEE34 +gMonPalette_Crawdaunt:: @ 8DFEE34 .incbin "graphics/pokemon/crawdaunt/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_crawdaunt_back_pic:: @ 8DFEE5C +gMonBackPic_Crawdaunt:: @ 8DFEE5C .incbin "graphics/pokemon/crawdaunt/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_crawdaunt_shiny_palette:: @ 8DFF240 +gMonShinyPalette_Crawdaunt:: @ 8DFF240 .incbin "graphics/pokemon/crawdaunt/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_crawdaunt_icon:: @ 8DFF268 +gMonIcon_Crawdaunt:: @ 8DFF268 .incbin "graphics/pokemon/crawdaunt/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_crawdaunt_footprint:: @ 8DFF668 +gMonFootprint_Crawdaunt:: @ 8DFF668 .incbin "graphics/pokemon/crawdaunt/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_feebas_still_front_pic:: @ 8DFF688 +gMonFrontPic_Feebas:: @ 8DFF688 .incbin "graphics/pokemon/feebas/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_feebas_palette:: @ 8DFF914 +gMonPalette_Feebas:: @ 8DFF914 .incbin "graphics/pokemon/feebas/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_feebas_back_pic:: @ 8DFF93C +gMonBackPic_Feebas:: @ 8DFF93C .incbin "graphics/pokemon/feebas/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_feebas_shiny_palette:: @ 8DFFC74 +gMonShinyPalette_Feebas:: @ 8DFFC74 .incbin "graphics/pokemon/feebas/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_feebas_icon:: @ 8DFFC9C +gMonIcon_Feebas:: @ 8DFFC9C .incbin "graphics/pokemon/feebas/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_feebas_footprint:: @ 8E0009C +gMonFootprint_Feebas:: @ 8E0009C .incbin "graphics/pokemon/feebas/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_milotic_still_front_pic:: @ 8E000BC +gMonFrontPic_Milotic:: @ 8E000BC .incbin "graphics/pokemon/milotic/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_milotic_palette:: @ 8E0054C +gMonPalette_Milotic:: @ 8E0054C .incbin "graphics/pokemon/milotic/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_milotic_back_pic:: @ 8E00574 +gMonBackPic_Milotic:: @ 8E00574 .incbin "graphics/pokemon/milotic/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_milotic_shiny_palette:: @ 8E00868 +gMonShinyPalette_Milotic:: @ 8E00868 .incbin "graphics/pokemon/milotic/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_milotic_icon:: @ 8E00890 +gMonIcon_Milotic:: @ 8E00890 .incbin "graphics/pokemon/milotic/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_milotic_footprint:: @ 8E00C90 +gMonFootprint_Milotic:: @ 8E00C90 .incbin "graphics/pokemon/milotic/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_carvanha_still_front_pic:: @ 8E00CB0 +gMonFrontPic_Carvanha:: @ 8E00CB0 .incbin "graphics/pokemon/carvanha/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_carvanha_palette:: @ 8E00FDC +gMonPalette_Carvanha:: @ 8E00FDC .incbin "graphics/pokemon/carvanha/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_carvanha_back_pic:: @ 8E01004 +gMonBackPic_Carvanha:: @ 8E01004 .incbin "graphics/pokemon/carvanha/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_carvanha_shiny_palette:: @ 8E01314 +gMonShinyPalette_Carvanha:: @ 8E01314 .incbin "graphics/pokemon/carvanha/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_carvanha_icon:: @ 8E0133C +gMonIcon_Carvanha:: @ 8E0133C .incbin "graphics/pokemon/carvanha/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_carvanha_footprint:: @ 8E0173C +gMonFootprint_Carvanha:: @ 8E0173C .incbin "graphics/pokemon/carvanha/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_sharpedo_still_front_pic:: @ 8E0175C +gMonFrontPic_Sharpedo:: @ 8E0175C .incbin "graphics/pokemon/sharpedo/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_sharpedo_palette:: @ 8E01AEC +gMonPalette_Sharpedo:: @ 8E01AEC .incbin "graphics/pokemon/sharpedo/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_sharpedo_back_pic:: @ 8E01B14 +gMonBackPic_Sharpedo:: @ 8E01B14 .incbin "graphics/pokemon/sharpedo/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_sharpedo_shiny_palette:: @ 8E01E6C +gMonShinyPalette_Sharpedo:: @ 8E01E6C .incbin "graphics/pokemon/sharpedo/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_sharpedo_icon:: @ 8E01E94 +gMonIcon_Sharpedo:: @ 8E01E94 .incbin "graphics/pokemon/sharpedo/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_sharpedo_footprint:: @ 8E02294 +gMonFootprint_Sharpedo:: @ 8E02294 .incbin "graphics/pokemon/sharpedo/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_trapinch_still_front_pic:: @ 8E022B4 +gMonFrontPic_Trapinch:: @ 8E022B4 .incbin "graphics/pokemon/trapinch/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_trapinch_palette:: @ 8E024D0 +gMonPalette_Trapinch:: @ 8E024D0 .incbin "graphics/pokemon/trapinch/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_trapinch_back_pic:: @ 8E024F8 +gMonBackPic_Trapinch:: @ 8E024F8 .incbin "graphics/pokemon/trapinch/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_trapinch_shiny_palette:: @ 8E02718 +gMonShinyPalette_Trapinch:: @ 8E02718 .incbin "graphics/pokemon/trapinch/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_trapinch_icon:: @ 8E02740 +gMonIcon_Trapinch:: @ 8E02740 .incbin "graphics/pokemon/trapinch/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_trapinch_footprint:: @ 8E02B40 +gMonFootprint_Trapinch:: @ 8E02B40 .incbin "graphics/pokemon/trapinch/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_vibrava_still_front_pic:: @ 8E02B60 +gMonFrontPic_Vibrava:: @ 8E02B60 .incbin "graphics/pokemon/vibrava/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_vibrava_palette:: @ 8E02ED0 +gMonPalette_Vibrava:: @ 8E02ED0 .incbin "graphics/pokemon/vibrava/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_vibrava_back_pic:: @ 8E02EF8 +gMonBackPic_Vibrava:: @ 8E02EF8 .incbin "graphics/pokemon/vibrava/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_vibrava_shiny_palette:: @ 8E03170 +gMonShinyPalette_Vibrava:: @ 8E03170 .incbin "graphics/pokemon/vibrava/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_vibrava_icon:: @ 8E03198 +gMonIcon_Vibrava:: @ 8E03198 .incbin "graphics/pokemon/vibrava/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_vibrava_footprint:: @ 8E03598 +gMonFootprint_Vibrava:: @ 8E03598 .incbin "graphics/pokemon/vibrava/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_flygon_still_front_pic:: @ 8E035B8 +gMonFrontPic_Flygon:: @ 8E035B8 .incbin "graphics/pokemon/flygon/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_flygon_palette:: @ 8E03AA8 +gMonPalette_Flygon:: @ 8E03AA8 .incbin "graphics/pokemon/flygon/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_flygon_back_pic:: @ 8E03AD0 +gMonBackPic_Flygon:: @ 8E03AD0 .incbin "graphics/pokemon/flygon/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_flygon_shiny_palette:: @ 8E03F0C +gMonShinyPalette_Flygon:: @ 8E03F0C .incbin "graphics/pokemon/flygon/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_flygon_icon:: @ 8E03F34 +gMonIcon_Flygon:: @ 8E03F34 .incbin "graphics/pokemon/flygon/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_flygon_footprint:: @ 8E04334 +gMonFootprint_Flygon:: @ 8E04334 .incbin "graphics/pokemon/flygon/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_makuhita_still_front_pic:: @ 8E04354 +gMonFrontPic_Makuhita:: @ 8E04354 .incbin "graphics/pokemon/makuhita/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_makuhita_palette:: @ 8E0466C +gMonPalette_Makuhita:: @ 8E0466C .incbin "graphics/pokemon/makuhita/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_makuhita_back_pic:: @ 8E04694 +gMonBackPic_Makuhita:: @ 8E04694 .incbin "graphics/pokemon/makuhita/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_makuhita_shiny_palette:: @ 8E04984 +gMonShinyPalette_Makuhita:: @ 8E04984 .incbin "graphics/pokemon/makuhita/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_makuhita_icon:: @ 8E049A8 +gMonIcon_Makuhita:: @ 8E049A8 .incbin "graphics/pokemon/makuhita/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_makuhita_footprint:: @ 8E04DA8 +gMonFootprint_Makuhita:: @ 8E04DA8 .incbin "graphics/pokemon/makuhita/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_hariyama_still_front_pic:: @ 8E04DC8 +gMonFrontPic_Hariyama:: @ 8E04DC8 .incbin "graphics/pokemon/hariyama/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_hariyama_palette:: @ 8E05278 +gMonPalette_Hariyama:: @ 8E05278 .incbin "graphics/pokemon/hariyama/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_hariyama_back_pic:: @ 8E052A0 +gMonBackPic_Hariyama:: @ 8E052A0 .incbin "graphics/pokemon/hariyama/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_hariyama_shiny_palette:: @ 8E05680 +gMonShinyPalette_Hariyama:: @ 8E05680 .incbin "graphics/pokemon/hariyama/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_hariyama_icon:: @ 8E056A8 +gMonIcon_Hariyama:: @ 8E056A8 .incbin "graphics/pokemon/hariyama/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_hariyama_footprint:: @ 8E05AA8 +gMonFootprint_Hariyama:: @ 8E05AA8 .incbin "graphics/pokemon/hariyama/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_electrike_still_front_pic:: @ 8E05AC8 +gMonFrontPic_Electrike:: @ 8E05AC8 .incbin "graphics/pokemon/electrike/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_electrike_palette:: @ 8E05D58 +gMonPalette_Electrike:: @ 8E05D58 .incbin "graphics/pokemon/electrike/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_electrike_back_pic:: @ 8E05D80 +gMonBackPic_Electrike:: @ 8E05D80 .incbin "graphics/pokemon/electrike/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_electrike_shiny_palette:: @ 8E0600C +gMonShinyPalette_Electrike:: @ 8E0600C .incbin "graphics/pokemon/electrike/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_electrike_icon:: @ 8E06034 +gMonIcon_Electrike:: @ 8E06034 .incbin "graphics/pokemon/electrike/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_electrike_footprint:: @ 8E06434 +gMonFootprint_Electrike:: @ 8E06434 .incbin "graphics/pokemon/electrike/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_manectric_still_front_pic:: @ 8E06454 +gMonFrontPic_Manectric:: @ 8E06454 .incbin "graphics/pokemon/manectric/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_manectric_palette:: @ 8E06784 +gMonPalette_Manectric:: @ 8E06784 .incbin "graphics/pokemon/manectric/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_manectric_back_pic:: @ 8E067AC +gMonBackPic_Manectric:: @ 8E067AC .incbin "graphics/pokemon/manectric/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_manectric_shiny_palette:: @ 8E069D8 +gMonShinyPalette_Manectric:: @ 8E069D8 .incbin "graphics/pokemon/manectric/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_manectric_icon:: @ 8E06A00 +gMonIcon_Manectric:: @ 8E06A00 .incbin "graphics/pokemon/manectric/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_manectric_footprint:: @ 8E06E00 +gMonFootprint_Manectric:: @ 8E06E00 .incbin "graphics/pokemon/manectric/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_numel_still_front_pic:: @ 8E06E20 +gMonFrontPic_Numel:: @ 8E06E20 .incbin "graphics/pokemon/numel/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_numel_palette:: @ 8E070F0 +gMonPalette_Numel:: @ 8E070F0 .incbin "graphics/pokemon/numel/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_numel_back_pic:: @ 8E07118 +gMonBackPic_Numel:: @ 8E07118 .incbin "graphics/pokemon/numel/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_numel_shiny_palette:: @ 8E073D4 +gMonShinyPalette_Numel:: @ 8E073D4 .incbin "graphics/pokemon/numel/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_numel_icon:: @ 8E073FC +gMonIcon_Numel:: @ 8E073FC .incbin "graphics/pokemon/numel/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_numel_footprint:: @ 8E077FC +gMonFootprint_Numel:: @ 8E077FC .incbin "graphics/pokemon/numel/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_camerupt_still_front_pic:: @ 8E0781C +gMonFrontPic_Camerupt:: @ 8E0781C .incbin "graphics/pokemon/camerupt/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_camerupt_palette:: @ 8E07C34 +gMonPalette_Camerupt:: @ 8E07C34 .incbin "graphics/pokemon/camerupt/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_camerupt_back_pic:: @ 8E07C5C +gMonBackPic_Camerupt:: @ 8E07C5C .incbin "graphics/pokemon/camerupt/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_camerupt_shiny_palette:: @ 8E07F20 +gMonShinyPalette_Camerupt:: @ 8E07F20 .incbin "graphics/pokemon/camerupt/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_camerupt_icon:: @ 8E07F48 +gMonIcon_Camerupt:: @ 8E07F48 .incbin "graphics/pokemon/camerupt/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_camerupt_footprint:: @ 8E08348 +gMonFootprint_Camerupt:: @ 8E08348 .incbin "graphics/pokemon/camerupt/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_spheal_still_front_pic:: @ 8E08368 +gMonFrontPic_Spheal:: @ 8E08368 .incbin "graphics/pokemon/spheal/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_spheal_palette:: @ 8E085DC +gMonPalette_Spheal:: @ 8E085DC .incbin "graphics/pokemon/spheal/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_spheal_back_pic:: @ 8E08604 +gMonBackPic_Spheal:: @ 8E08604 .incbin "graphics/pokemon/spheal/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_spheal_shiny_palette:: @ 8E08800 +gMonShinyPalette_Spheal:: @ 8E08800 .incbin "graphics/pokemon/spheal/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_spheal_icon:: @ 8E08828 +gMonIcon_Spheal:: @ 8E08828 .incbin "graphics/pokemon/spheal/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_spheal_footprint:: @ 8E08C28 +gMonFootprint_Spheal:: @ 8E08C28 .incbin "graphics/pokemon/spheal/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_sealeo_still_front_pic:: @ 8E08C48 +gMonFrontPic_Sealeo:: @ 8E08C48 .incbin "graphics/pokemon/sealeo/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_sealeo_palette:: @ 8E08FC8 +gMonPalette_Sealeo:: @ 8E08FC8 .incbin "graphics/pokemon/sealeo/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_sealeo_back_pic:: @ 8E08FF0 +gMonBackPic_Sealeo:: @ 8E08FF0 .incbin "graphics/pokemon/sealeo/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_sealeo_shiny_palette:: @ 8E0926C +gMonShinyPalette_Sealeo:: @ 8E0926C .incbin "graphics/pokemon/sealeo/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_sealeo_icon:: @ 8E09294 +gMonIcon_Sealeo:: @ 8E09294 .incbin "graphics/pokemon/sealeo/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_sealeo_footprint:: @ 8E09694 +gMonFootprint_Sealeo:: @ 8E09694 .incbin "graphics/pokemon/sealeo/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_walrein_still_front_pic:: @ 8E096B4 +gMonFrontPic_Walrein:: @ 8E096B4 .incbin "graphics/pokemon/walrein/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_walrein_palette:: @ 8E09B54 +gMonPalette_Walrein:: @ 8E09B54 .incbin "graphics/pokemon/walrein/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_walrein_back_pic:: @ 8E09B7C +gMonBackPic_Walrein:: @ 8E09B7C .incbin "graphics/pokemon/walrein/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_walrein_shiny_palette:: @ 8E09F04 +gMonShinyPalette_Walrein:: @ 8E09F04 .incbin "graphics/pokemon/walrein/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_walrein_icon:: @ 8E09F2C +gMonIcon_Walrein:: @ 8E09F2C .incbin "graphics/pokemon/walrein/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_walrein_footprint:: @ 8E0A32C +gMonFootprint_Walrein:: @ 8E0A32C .incbin "graphics/pokemon/walrein/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_cacnea_still_front_pic:: @ 8E0A34C +gMonFrontPic_Cacnea:: @ 8E0A34C .incbin "graphics/pokemon/cacnea/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_cacnea_palette:: @ 8E0A65C +gMonPalette_Cacnea:: @ 8E0A65C .incbin "graphics/pokemon/cacnea/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_cacnea_back_pic:: @ 8E0A684 +gMonBackPic_Cacnea:: @ 8E0A684 .incbin "graphics/pokemon/cacnea/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_cacnea_shiny_palette:: @ 8E0A9E4 +gMonShinyPalette_Cacnea:: @ 8E0A9E4 .incbin "graphics/pokemon/cacnea/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_cacnea_icon:: @ 8E0AA0C +gMonIcon_Cacnea:: @ 8E0AA0C .incbin "graphics/pokemon/cacnea/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_cacnea_footprint:: @ 8E0AE0C +gMonFootprint_Cacnea:: @ 8E0AE0C .incbin "graphics/pokemon/cacnea/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_cacturne_still_front_pic:: @ 8E0AE2C +gMonFrontPic_Cacturne:: @ 8E0AE2C .incbin "graphics/pokemon/cacturne/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_cacturne_palette:: @ 8E0B264 +gMonPalette_Cacturne:: @ 8E0B264 .incbin "graphics/pokemon/cacturne/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_cacturne_back_pic:: @ 8E0B28C +gMonBackPic_Cacturne:: @ 8E0B28C .incbin "graphics/pokemon/cacturne/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_cacturne_shiny_palette:: @ 8E0B58C +gMonShinyPalette_Cacturne:: @ 8E0B58C .incbin "graphics/pokemon/cacturne/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_cacturne_icon:: @ 8E0B5B4 +gMonIcon_Cacturne:: @ 8E0B5B4 .incbin "graphics/pokemon/cacturne/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_cacturne_footprint:: @ 8E0B9B4 +gMonFootprint_Cacturne:: @ 8E0B9B4 .incbin "graphics/pokemon/cacturne/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_snorunt_still_front_pic:: @ 8E0B9D4 +gMonFrontPic_Snorunt:: @ 8E0B9D4 .incbin "graphics/pokemon/snorunt/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_snorunt_palette:: @ 8E0BC98 +gMonPalette_Snorunt:: @ 8E0BC98 .incbin "graphics/pokemon/snorunt/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_snorunt_back_pic:: @ 8E0BCC0 +gMonBackPic_Snorunt:: @ 8E0BCC0 .incbin "graphics/pokemon/snorunt/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_snorunt_shiny_palette:: @ 8E0BFA4 +gMonShinyPalette_Snorunt:: @ 8E0BFA4 .incbin "graphics/pokemon/snorunt/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_snorunt_icon:: @ 8E0BFCC +gMonIcon_Snorunt:: @ 8E0BFCC .incbin "graphics/pokemon/snorunt/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_snorunt_footprint:: @ 8E0C3CC +gMonFootprint_Snorunt:: @ 8E0C3CC .incbin "graphics/pokemon/snorunt/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_glalie_still_front_pic:: @ 8E0C3EC +gMonFrontPic_Glalie:: @ 8E0C3EC .incbin "graphics/pokemon/glalie/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_glalie_palette:: @ 8E0C7B4 +gMonPalette_Glalie:: @ 8E0C7B4 .incbin "graphics/pokemon/glalie/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_glalie_back_pic:: @ 8E0C7DC +gMonBackPic_Glalie:: @ 8E0C7DC .incbin "graphics/pokemon/glalie/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_glalie_shiny_palette:: @ 8E0CB8C +gMonShinyPalette_Glalie:: @ 8E0CB8C .incbin "graphics/pokemon/glalie/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_glalie_icon:: @ 8E0CBB4 +gMonIcon_Glalie:: @ 8E0CBB4 .incbin "graphics/pokemon/glalie/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_glalie_footprint:: @ 8E0CFB4 +gMonFootprint_Glalie:: @ 8E0CFB4 .incbin "graphics/pokemon/glalie/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_lunatone_still_front_pic:: @ 8E0CFD4 +gMonFrontPic_Lunatone:: @ 8E0CFD4 .incbin "graphics/pokemon/lunatone/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_lunatone_palette:: @ 8E0D2FC +gMonPalette_Lunatone:: @ 8E0D2FC .incbin "graphics/pokemon/lunatone/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_lunatone_back_pic:: @ 8E0D324 +gMonBackPic_Lunatone:: @ 8E0D324 .incbin "graphics/pokemon/lunatone/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_lunatone_shiny_palette:: @ 8E0D67C +gMonShinyPalette_Lunatone:: @ 8E0D67C .incbin "graphics/pokemon/lunatone/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_lunatone_icon:: @ 8E0D6A4 +gMonIcon_Lunatone:: @ 8E0D6A4 .incbin "graphics/pokemon/lunatone/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_lunatone_footprint:: @ 8E0DAA4 +gMonFootprint_Lunatone:: @ 8E0DAA4 .incbin "graphics/pokemon/lunatone/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_solrock_still_front_pic:: @ 8E0DAC4 +gMonFrontPic_Solrock:: @ 8E0DAC4 .incbin "graphics/pokemon/solrock/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_solrock_palette:: @ 8E0DF10 +gMonPalette_Solrock:: @ 8E0DF10 .incbin "graphics/pokemon/solrock/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_solrock_back_pic:: @ 8E0DF38 +gMonBackPic_Solrock:: @ 8E0DF38 .incbin "graphics/pokemon/solrock/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_solrock_shiny_palette:: @ 8E0E324 +gMonShinyPalette_Solrock:: @ 8E0E324 .incbin "graphics/pokemon/solrock/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_solrock_icon:: @ 8E0E34C +gMonIcon_Solrock:: @ 8E0E34C .incbin "graphics/pokemon/solrock/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_solrock_footprint:: @ 8E0E74C +gMonFootprint_Solrock:: @ 8E0E74C .incbin "graphics/pokemon/solrock/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_azurill_still_front_pic:: @ 8E0E76C +gMonFrontPic_Azurill:: @ 8E0E76C .incbin "graphics/pokemon/azurill/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_azurill_palette:: @ 8E0EA34 +gMonPalette_Azurill:: @ 8E0EA34 .incbin "graphics/pokemon/azurill/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_azurill_back_pic:: @ 8E0EA5C +gMonBackPic_Azurill:: @ 8E0EA5C .incbin "graphics/pokemon/azurill/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_azurill_shiny_palette:: @ 8E0ED74 +gMonShinyPalette_Azurill:: @ 8E0ED74 .incbin "graphics/pokemon/azurill/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_azurill_icon:: @ 8E0ED9C +gMonIcon_Azurill:: @ 8E0ED9C .incbin "graphics/pokemon/azurill/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_azurill_footprint:: @ 8E0F19C +gMonFootprint_Azurill:: @ 8E0F19C .incbin "graphics/pokemon/azurill/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_spoink_still_front_pic:: @ 8E0F1BC +gMonFrontPic_Spoink:: @ 8E0F1BC .incbin "graphics/pokemon/spoink/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_spoink_palette:: @ 8E0F428 +gMonPalette_Spoink:: @ 8E0F428 .incbin "graphics/pokemon/spoink/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_spoink_back_pic:: @ 8E0F450 +gMonBackPic_Spoink:: @ 8E0F450 .incbin "graphics/pokemon/spoink/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_spoink_shiny_palette:: @ 8E0F690 +gMonShinyPalette_Spoink:: @ 8E0F690 .incbin "graphics/pokemon/spoink/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_spoink_icon:: @ 8E0F6B8 +gMonIcon_Spoink:: @ 8E0F6B8 .incbin "graphics/pokemon/spoink/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_spoink_footprint:: @ 8E0FAB8 +gMonFootprint_Spoink:: @ 8E0FAB8 .incbin "graphics/pokemon/spoink/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_grumpig_still_front_pic:: @ 8E0FAD8 +gMonFrontPic_Grumpig:: @ 8E0FAD8 .incbin "graphics/pokemon/grumpig/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_grumpig_palette:: @ 8E0FE94 +gMonPalette_Grumpig:: @ 8E0FE94 .incbin "graphics/pokemon/grumpig/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_grumpig_back_pic:: @ 8E0FEBC +gMonBackPic_Grumpig:: @ 8E0FEBC .incbin "graphics/pokemon/grumpig/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_grumpig_shiny_palette:: @ 8E1021C +gMonShinyPalette_Grumpig:: @ 8E1021C .incbin "graphics/pokemon/grumpig/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_grumpig_icon:: @ 8E10244 +gMonIcon_Grumpig:: @ 8E10244 .incbin "graphics/pokemon/grumpig/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_grumpig_footprint:: @ 8E10644 +gMonFootprint_Grumpig:: @ 8E10644 .incbin "graphics/pokemon/grumpig/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_plusle_still_front_pic:: @ 8E10664 +gMonFrontPic_Plusle:: @ 8E10664 .incbin "graphics/pokemon/plusle/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_plusle_palette:: @ 8E108F0 +gMonPalette_Plusle:: @ 8E108F0 .incbin "graphics/pokemon/plusle/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_plusle_back_pic:: @ 8E10918 +gMonBackPic_Plusle:: @ 8E10918 .incbin "graphics/pokemon/plusle/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_plusle_shiny_palette:: @ 8E10BD0 +gMonShinyPalette_Plusle:: @ 8E10BD0 .incbin "graphics/pokemon/plusle/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_plusle_icon:: @ 8E10BF8 +gMonIcon_Plusle:: @ 8E10BF8 .incbin "graphics/pokemon/plusle/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_plusle_footprint:: @ 8E10FF8 +gMonFootprint_Plusle:: @ 8E10FF8 .incbin "graphics/pokemon/plusle/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_minun_still_front_pic:: @ 8E11018 +gMonFrontPic_Minun:: @ 8E11018 .incbin "graphics/pokemon/minun/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_minun_palette:: @ 8E11280 +gMonPalette_Minun:: @ 8E11280 .incbin "graphics/pokemon/minun/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_minun_back_pic:: @ 8E112A8 +gMonBackPic_Minun:: @ 8E112A8 .incbin "graphics/pokemon/minun/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_minun_shiny_palette:: @ 8E11570 +gMonShinyPalette_Minun:: @ 8E11570 .incbin "graphics/pokemon/minun/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_minun_icon:: @ 8E11598 +gMonIcon_Minun:: @ 8E11598 .incbin "graphics/pokemon/minun/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_minun_footprint:: @ 8E11998 +gMonFootprint_Minun:: @ 8E11998 .incbin "graphics/pokemon/minun/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_mawile_still_front_pic:: @ 8E119B8 +gMonFrontPic_Mawile:: @ 8E119B8 .incbin "graphics/pokemon/mawile/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_mawile_palette:: @ 8E11D74 +gMonPalette_Mawile:: @ 8E11D74 .incbin "graphics/pokemon/mawile/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_mawile_back_pic:: @ 8E11D9C +gMonBackPic_Mawile:: @ 8E11D9C .incbin "graphics/pokemon/mawile/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_mawile_shiny_palette:: @ 8E1219C +gMonShinyPalette_Mawile:: @ 8E1219C .incbin "graphics/pokemon/mawile/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_mawile_icon:: @ 8E121C4 +gMonIcon_Mawile:: @ 8E121C4 .incbin "graphics/pokemon/mawile/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_mawile_footprint:: @ 8E125C4 +gMonFootprint_Mawile:: @ 8E125C4 .incbin "graphics/pokemon/mawile/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_meditite_still_front_pic:: @ 8E125E4 +gMonFrontPic_Meditite:: @ 8E125E4 .incbin "graphics/pokemon/meditite/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_meditite_palette:: @ 8E1289C +gMonPalette_Meditite:: @ 8E1289C .incbin "graphics/pokemon/meditite/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_meditite_back_pic:: @ 8E128C4 +gMonBackPic_Meditite:: @ 8E128C4 .incbin "graphics/pokemon/meditite/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_meditite_shiny_palette:: @ 8E12B8C +gMonShinyPalette_Meditite:: @ 8E12B8C .incbin "graphics/pokemon/meditite/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_meditite_icon:: @ 8E12BB0 +gMonIcon_Meditite:: @ 8E12BB0 .incbin "graphics/pokemon/meditite/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_meditite_footprint:: @ 8E12FB0 +gMonFootprint_Meditite:: @ 8E12FB0 .incbin "graphics/pokemon/meditite/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_medicham_still_front_pic:: @ 8E12FD0 +gMonFrontPic_Medicham:: @ 8E12FD0 .incbin "graphics/pokemon/medicham/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_medicham_palette:: @ 8E13300 +gMonPalette_Medicham:: @ 8E13300 .incbin "graphics/pokemon/medicham/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_medicham_back_pic:: @ 8E13328 +gMonBackPic_Medicham:: @ 8E13328 .incbin "graphics/pokemon/medicham/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_medicham_shiny_palette:: @ 8E13660 +gMonShinyPalette_Medicham:: @ 8E13660 .incbin "graphics/pokemon/medicham/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_medicham_icon:: @ 8E13688 +gMonIcon_Medicham:: @ 8E13688 .incbin "graphics/pokemon/medicham/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_medicham_footprint:: @ 8E13A88 +gMonFootprint_Medicham:: @ 8E13A88 .incbin "graphics/pokemon/medicham/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_swablu_still_front_pic:: @ 8E13AA8 +gMonFrontPic_Swablu:: @ 8E13AA8 .incbin "graphics/pokemon/swablu/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_swablu_palette:: @ 8E13D80 +gMonPalette_Swablu:: @ 8E13D80 .incbin "graphics/pokemon/swablu/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_swablu_back_pic:: @ 8E13DA8 +gMonBackPic_Swablu:: @ 8E13DA8 .incbin "graphics/pokemon/swablu/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_swablu_shiny_palette:: @ 8E14160 +gMonShinyPalette_Swablu:: @ 8E14160 .incbin "graphics/pokemon/swablu/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_swablu_icon:: @ 8E14188 +gMonIcon_Swablu:: @ 8E14188 .incbin "graphics/pokemon/swablu/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_swablu_footprint:: @ 8E14588 +gMonFootprint_Swablu:: @ 8E14588 .incbin "graphics/pokemon/swablu/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_altaria_still_front_pic:: @ 8E145A8 +gMonFrontPic_Altaria:: @ 8E145A8 .incbin "graphics/pokemon/altaria/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_altaria_palette:: @ 8E14984 +gMonPalette_Altaria:: @ 8E14984 .incbin "graphics/pokemon/altaria/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_altaria_back_pic:: @ 8E149AC +gMonBackPic_Altaria:: @ 8E149AC .incbin "graphics/pokemon/altaria/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_altaria_shiny_palette:: @ 8E14D24 +gMonShinyPalette_Altaria:: @ 8E14D24 .incbin "graphics/pokemon/altaria/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_altaria_icon:: @ 8E14D4C +gMonIcon_Altaria:: @ 8E14D4C .incbin "graphics/pokemon/altaria/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_altaria_footprint:: @ 8E1514C +gMonFootprint_Altaria:: @ 8E1514C .incbin "graphics/pokemon/altaria/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_wynaut_still_front_pic:: @ 8E1516C +gMonFrontPic_Wynaut:: @ 8E1516C .incbin "graphics/pokemon/wynaut/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_wynaut_palette:: @ 8E15404 +gMonPalette_Wynaut:: @ 8E15404 .incbin "graphics/pokemon/wynaut/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_wynaut_back_pic:: @ 8E1542C +gMonBackPic_Wynaut:: @ 8E1542C .incbin "graphics/pokemon/wynaut/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_wynaut_shiny_palette:: @ 8E156BC +gMonShinyPalette_Wynaut:: @ 8E156BC .incbin "graphics/pokemon/wynaut/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_wynaut_icon:: @ 8E156E4 +gMonIcon_Wynaut:: @ 8E156E4 .incbin "graphics/pokemon/wynaut/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_wynaut_footprint:: @ 8E15AE4 +gMonFootprint_Wynaut:: @ 8E15AE4 .incbin "graphics/pokemon/wynaut/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_duskull_still_front_pic:: @ 8E15B04 +gMonFrontPic_Duskull:: @ 8E15B04 .incbin "graphics/pokemon/duskull/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_duskull_palette:: @ 8E15DF4 +gMonPalette_Duskull:: @ 8E15DF4 .incbin "graphics/pokemon/duskull/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_duskull_back_pic:: @ 8E15E1C +gMonBackPic_Duskull:: @ 8E15E1C .incbin "graphics/pokemon/duskull/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_duskull_shiny_palette:: @ 8E160CC +gMonShinyPalette_Duskull:: @ 8E160CC .incbin "graphics/pokemon/duskull/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_duskull_icon:: @ 8E160F4 +gMonIcon_Duskull:: @ 8E160F4 .incbin "graphics/pokemon/duskull/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_duskull_footprint:: @ 8E164F4 +gMonFootprint_Duskull:: @ 8E164F4 .incbin "graphics/pokemon/duskull/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_dusclops_still_front_pic:: @ 8E16514 +gMonFrontPic_Dusclops:: @ 8E16514 .incbin "graphics/pokemon/dusclops/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_dusclops_palette:: @ 8E168B4 +gMonPalette_Dusclops:: @ 8E168B4 .incbin "graphics/pokemon/dusclops/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_dusclops_back_pic:: @ 8E168DC +gMonBackPic_Dusclops:: @ 8E168DC .incbin "graphics/pokemon/dusclops/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_dusclops_shiny_palette:: @ 8E16BC8 +gMonShinyPalette_Dusclops:: @ 8E16BC8 .incbin "graphics/pokemon/dusclops/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_dusclops_icon:: @ 8E16BF0 +gMonIcon_Dusclops:: @ 8E16BF0 .incbin "graphics/pokemon/dusclops/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_dusclops_footprint:: @ 8E16FF0 +gMonFootprint_Dusclops:: @ 8E16FF0 .incbin "graphics/pokemon/dusclops/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_roselia_still_front_pic:: @ 8E17010 +gMonFrontPic_Roselia:: @ 8E17010 .incbin "graphics/pokemon/roselia/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_roselia_palette:: @ 8E1737C +gMonPalette_Roselia:: @ 8E1737C .incbin "graphics/pokemon/roselia/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_roselia_back_pic:: @ 8E173A4 +gMonBackPic_Roselia:: @ 8E173A4 .incbin "graphics/pokemon/roselia/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_roselia_shiny_palette:: @ 8E1776C +gMonShinyPalette_Roselia:: @ 8E1776C .incbin "graphics/pokemon/roselia/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_roselia_icon:: @ 8E17794 +gMonIcon_Roselia:: @ 8E17794 .incbin "graphics/pokemon/roselia/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_roselia_footprint:: @ 8E17B94 +gMonFootprint_Roselia:: @ 8E17B94 .incbin "graphics/pokemon/roselia/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_slakoth_still_front_pic:: @ 8E17BB4 +gMonFrontPic_Slakoth:: @ 8E17BB4 .incbin "graphics/pokemon/slakoth/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_slakoth_palette:: @ 8E17E9C +gMonPalette_Slakoth:: @ 8E17E9C .incbin "graphics/pokemon/slakoth/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_slakoth_back_pic:: @ 8E17EC4 +gMonBackPic_Slakoth:: @ 8E17EC4 .incbin "graphics/pokemon/slakoth/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_slakoth_shiny_palette:: @ 8E181AC +gMonShinyPalette_Slakoth:: @ 8E181AC .incbin "graphics/pokemon/slakoth/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_slakoth_icon:: @ 8E181D4 +gMonIcon_Slakoth:: @ 8E181D4 .incbin "graphics/pokemon/slakoth/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_slakoth_footprint:: @ 8E185D4 +gMonFootprint_Slakoth:: @ 8E185D4 .incbin "graphics/pokemon/slakoth/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_vigoroth_still_front_pic:: @ 8E185F4 +gMonFrontPic_Vigoroth:: @ 8E185F4 .incbin "graphics/pokemon/vigoroth/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_vigoroth_palette:: @ 8E189F0 +gMonPalette_Vigoroth:: @ 8E189F0 .incbin "graphics/pokemon/vigoroth/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_vigoroth_back_pic:: @ 8E18A18 +gMonBackPic_Vigoroth:: @ 8E18A18 .incbin "graphics/pokemon/vigoroth/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_vigoroth_shiny_palette:: @ 8E18CE0 +gMonShinyPalette_Vigoroth:: @ 8E18CE0 .incbin "graphics/pokemon/vigoroth/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_vigoroth_icon:: @ 8E18D08 +gMonIcon_Vigoroth:: @ 8E18D08 .incbin "graphics/pokemon/vigoroth/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_vigoroth_footprint:: @ 8E19108 +gMonFootprint_Vigoroth:: @ 8E19108 .incbin "graphics/pokemon/vigoroth/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_slaking_still_front_pic:: @ 8E19128 +gMonFrontPic_Slaking:: @ 8E19128 .incbin "graphics/pokemon/slaking/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_slaking_palette:: @ 8E195FC +gMonPalette_Slaking:: @ 8E195FC .incbin "graphics/pokemon/slaking/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_slaking_back_pic:: @ 8E19624 +gMonBackPic_Slaking:: @ 8E19624 .incbin "graphics/pokemon/slaking/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_slaking_shiny_palette:: @ 8E199E8 +gMonShinyPalette_Slaking:: @ 8E199E8 .incbin "graphics/pokemon/slaking/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_slaking_icon:: @ 8E19A10 +gMonIcon_Slaking:: @ 8E19A10 .incbin "graphics/pokemon/slaking/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_slaking_footprint:: @ 8E19E10 +gMonFootprint_Slaking:: @ 8E19E10 .incbin "graphics/pokemon/slaking/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_gulpin_still_front_pic:: @ 8E19E30 +gMonFrontPic_Gulpin:: @ 8E19E30 .incbin "graphics/pokemon/gulpin/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_gulpin_palette:: @ 8E1A048 +gMonPalette_Gulpin:: @ 8E1A048 .incbin "graphics/pokemon/gulpin/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_gulpin_back_pic:: @ 8E1A070 +gMonBackPic_Gulpin:: @ 8E1A070 .incbin "graphics/pokemon/gulpin/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_gulpin_shiny_palette:: @ 8E1A2F4 +gMonShinyPalette_Gulpin:: @ 8E1A2F4 .incbin "graphics/pokemon/gulpin/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_gulpin_icon:: @ 8E1A31C +gMonIcon_Gulpin:: @ 8E1A31C .incbin "graphics/pokemon/gulpin/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_gulpin_footprint:: @ 8E1A71C +gMonFootprint_Gulpin:: @ 8E1A71C .incbin "graphics/pokemon/gulpin/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_swalot_still_front_pic:: @ 8E1A73C +gMonFrontPic_Swalot:: @ 8E1A73C .incbin "graphics/pokemon/swalot/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_swalot_palette:: @ 8E1AA80 +gMonPalette_Swalot:: @ 8E1AA80 .incbin "graphics/pokemon/swalot/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_swalot_back_pic:: @ 8E1AAA8 +gMonBackPic_Swalot:: @ 8E1AAA8 .incbin "graphics/pokemon/swalot/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_swalot_shiny_palette:: @ 8E1ADF0 +gMonShinyPalette_Swalot:: @ 8E1ADF0 .incbin "graphics/pokemon/swalot/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_swalot_icon:: @ 8E1AE18 +gMonIcon_Swalot:: @ 8E1AE18 .incbin "graphics/pokemon/swalot/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_swalot_footprint:: @ 8E1B218 +gMonFootprint_Swalot:: @ 8E1B218 .incbin "graphics/pokemon/swalot/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_tropius_still_front_pic:: @ 8E1B238 +gMonFrontPic_Tropius:: @ 8E1B238 .incbin "graphics/pokemon/tropius/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_tropius_palette:: @ 8E1B7B0 +gMonPalette_Tropius:: @ 8E1B7B0 .incbin "graphics/pokemon/tropius/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_tropius_back_pic:: @ 8E1B7D8 +gMonBackPic_Tropius:: @ 8E1B7D8 .incbin "graphics/pokemon/tropius/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_tropius_shiny_palette:: @ 8E1BAFC +gMonShinyPalette_Tropius:: @ 8E1BAFC .incbin "graphics/pokemon/tropius/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_tropius_icon:: @ 8E1BB24 +gMonIcon_Tropius:: @ 8E1BB24 .incbin "graphics/pokemon/tropius/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_tropius_footprint:: @ 8E1BF24 +gMonFootprint_Tropius:: @ 8E1BF24 .incbin "graphics/pokemon/tropius/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_whismur_still_front_pic:: @ 8E1BF44 +gMonFrontPic_Whismur:: @ 8E1BF44 .incbin "graphics/pokemon/whismur/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_whismur_palette:: @ 8E1C1D8 +gMonPalette_Whismur:: @ 8E1C1D8 .incbin "graphics/pokemon/whismur/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_whismur_back_pic:: @ 8E1C200 +gMonBackPic_Whismur:: @ 8E1C200 .incbin "graphics/pokemon/whismur/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_whismur_shiny_palette:: @ 8E1C470 +gMonShinyPalette_Whismur:: @ 8E1C470 .incbin "graphics/pokemon/whismur/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_whismur_icon:: @ 8E1C498 +gMonIcon_Whismur:: @ 8E1C498 .incbin "graphics/pokemon/whismur/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_whismur_footprint:: @ 8E1C898 +gMonFootprint_Whismur:: @ 8E1C898 .incbin "graphics/pokemon/whismur/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_loudred_still_front_pic:: @ 8E1C8B8 +gMonFrontPic_Loudred:: @ 8E1C8B8 .incbin "graphics/pokemon/loudred/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_loudred_palette:: @ 8E1CD30 +gMonPalette_Loudred:: @ 8E1CD30 .incbin "graphics/pokemon/loudred/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_loudred_back_pic:: @ 8E1CD58 +gMonBackPic_Loudred:: @ 8E1CD58 .incbin "graphics/pokemon/loudred/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_loudred_shiny_palette:: @ 8E1D0C8 +gMonShinyPalette_Loudred:: @ 8E1D0C8 .incbin "graphics/pokemon/loudred/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_loudred_icon:: @ 8E1D0F0 +gMonIcon_Loudred:: @ 8E1D0F0 .incbin "graphics/pokemon/loudred/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_loudred_footprint:: @ 8E1D4F0 +gMonFootprint_Loudred:: @ 8E1D4F0 .incbin "graphics/pokemon/loudred/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_exploud_still_front_pic:: @ 8E1D510 +gMonFrontPic_Exploud:: @ 8E1D510 .incbin "graphics/pokemon/exploud/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_exploud_palette:: @ 8E1DA78 +gMonPalette_Exploud:: @ 8E1DA78 .incbin "graphics/pokemon/exploud/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_exploud_back_pic:: @ 8E1DAA0 +gMonBackPic_Exploud:: @ 8E1DAA0 .incbin "graphics/pokemon/exploud/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_exploud_shiny_palette:: @ 8E1DEAC +gMonShinyPalette_Exploud:: @ 8E1DEAC .incbin "graphics/pokemon/exploud/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_exploud_icon:: @ 8E1DED4 +gMonIcon_Exploud:: @ 8E1DED4 .incbin "graphics/pokemon/exploud/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_exploud_footprint:: @ 8E1E2D4 +gMonFootprint_Exploud:: @ 8E1E2D4 .incbin "graphics/pokemon/exploud/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_clamperl_still_front_pic:: @ 8E1E2F4 +gMonFrontPic_Clamperl:: @ 8E1E2F4 .incbin "graphics/pokemon/clamperl/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_clamperl_palette:: @ 8E1E5CC +gMonPalette_Clamperl:: @ 8E1E5CC .incbin "graphics/pokemon/clamperl/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_clamperl_back_pic:: @ 8E1E5F4 +gMonBackPic_Clamperl:: @ 8E1E5F4 .incbin "graphics/pokemon/clamperl/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_clamperl_shiny_palette:: @ 8E1E888 +gMonShinyPalette_Clamperl:: @ 8E1E888 .incbin "graphics/pokemon/clamperl/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_clamperl_icon:: @ 8E1E8B0 +gMonIcon_Clamperl:: @ 8E1E8B0 .incbin "graphics/pokemon/clamperl/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_clamperl_footprint:: @ 8E1ECB0 +gMonFootprint_Clamperl:: @ 8E1ECB0 .incbin "graphics/pokemon/clamperl/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_huntail_still_front_pic:: @ 8E1ECD0 +gMonFrontPic_Huntail:: @ 8E1ECD0 .incbin "graphics/pokemon/huntail/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_huntail_palette:: @ 8E1F09C +gMonPalette_Huntail:: @ 8E1F09C .incbin "graphics/pokemon/huntail/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_huntail_back_pic:: @ 8E1F0C4 +gMonBackPic_Huntail:: @ 8E1F0C4 .incbin "graphics/pokemon/huntail/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_huntail_shiny_palette:: @ 8E1F418 +gMonShinyPalette_Huntail:: @ 8E1F418 .incbin "graphics/pokemon/huntail/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_huntail_icon:: @ 8E1F440 +gMonIcon_Huntail:: @ 8E1F440 .incbin "graphics/pokemon/huntail/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_huntail_footprint:: @ 8E1F840 +gMonFootprint_Huntail:: @ 8E1F840 .incbin "graphics/pokemon/huntail/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_gorebyss_still_front_pic:: @ 8E1F860 +gMonFrontPic_Gorebyss:: @ 8E1F860 .incbin "graphics/pokemon/gorebyss/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_gorebyss_palette:: @ 8E1FB70 +gMonPalette_Gorebyss:: @ 8E1FB70 .incbin "graphics/pokemon/gorebyss/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_gorebyss_back_pic:: @ 8E1FB98 +gMonBackPic_Gorebyss:: @ 8E1FB98 .incbin "graphics/pokemon/gorebyss/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_gorebyss_shiny_palette:: @ 8E1FE80 +gMonShinyPalette_Gorebyss:: @ 8E1FE80 .incbin "graphics/pokemon/gorebyss/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_gorebyss_icon:: @ 8E1FEA8 +gMonIcon_Gorebyss:: @ 8E1FEA8 .incbin "graphics/pokemon/gorebyss/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_gorebyss_footprint:: @ 8E202A8 +gMonFootprint_Gorebyss:: @ 8E202A8 .incbin "graphics/pokemon/gorebyss/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_absol_still_front_pic:: @ 8E202C8 +gMonFrontPic_Absol:: @ 8E202C8 .incbin "graphics/pokemon/absol/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_absol_palette:: @ 8E206F8 +gMonPalette_Absol:: @ 8E206F8 .incbin "graphics/pokemon/absol/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_absol_back_pic:: @ 8E20720 +gMonBackPic_Absol:: @ 8E20720 .incbin "graphics/pokemon/absol/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_absol_shiny_palette:: @ 8E20A80 +gMonShinyPalette_Absol:: @ 8E20A80 .incbin "graphics/pokemon/absol/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_absol_icon:: @ 8E20AA8 +gMonIcon_Absol:: @ 8E20AA8 .incbin "graphics/pokemon/absol/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_absol_footprint:: @ 8E20EA8 +gMonFootprint_Absol:: @ 8E20EA8 .incbin "graphics/pokemon/absol/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_shuppet_still_front_pic:: @ 8E20EC8 +gMonFrontPic_Shuppet:: @ 8E20EC8 .incbin "graphics/pokemon/shuppet/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_shuppet_palette:: @ 8E21100 +gMonPalette_Shuppet:: @ 8E21100 .incbin "graphics/pokemon/shuppet/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_shuppet_back_pic:: @ 8E21128 +gMonBackPic_Shuppet:: @ 8E21128 .incbin "graphics/pokemon/shuppet/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_shuppet_shiny_palette:: @ 8E213C0 +gMonShinyPalette_Shuppet:: @ 8E213C0 .incbin "graphics/pokemon/shuppet/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_shuppet_icon:: @ 8E213E8 +gMonIcon_Shuppet:: @ 8E213E8 .incbin "graphics/pokemon/shuppet/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_shuppet_footprint:: @ 8E217E8 +gMonFootprint_Shuppet:: @ 8E217E8 .incbin "graphics/pokemon/shuppet/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_banette_still_front_pic:: @ 8E21808 +gMonFrontPic_Banette:: @ 8E21808 .incbin "graphics/pokemon/banette/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_banette_palette:: @ 8E21ABC +gMonPalette_Banette:: @ 8E21ABC .incbin "graphics/pokemon/banette/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_banette_back_pic:: @ 8E21AE4 +gMonBackPic_Banette:: @ 8E21AE4 .incbin "graphics/pokemon/banette/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_banette_shiny_palette:: @ 8E21D60 +gMonShinyPalette_Banette:: @ 8E21D60 .incbin "graphics/pokemon/banette/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_banette_icon:: @ 8E21D88 +gMonIcon_Banette:: @ 8E21D88 .incbin "graphics/pokemon/banette/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_banette_footprint:: @ 8E22188 +gMonFootprint_Banette:: @ 8E22188 .incbin "graphics/pokemon/banette/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_seviper_still_front_pic:: @ 8E221A8 +gMonFrontPic_Seviper:: @ 8E221A8 .incbin "graphics/pokemon/seviper/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_seviper_palette:: @ 8E225C8 +gMonPalette_Seviper:: @ 8E225C8 .incbin "graphics/pokemon/seviper/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_seviper_back_pic:: @ 8E225F0 +gMonBackPic_Seviper:: @ 8E225F0 .incbin "graphics/pokemon/seviper/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_seviper_shiny_palette:: @ 8E22A7C +gMonShinyPalette_Seviper:: @ 8E22A7C .incbin "graphics/pokemon/seviper/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_seviper_icon:: @ 8E22AA4 +gMonIcon_Seviper:: @ 8E22AA4 .incbin "graphics/pokemon/seviper/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_seviper_footprint:: @ 8E22EA4 +gMonFootprint_Seviper:: @ 8E22EA4 .incbin "graphics/pokemon/seviper/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_zangoose_still_front_pic:: @ 8E22EC4 +gMonFrontPic_Zangoose:: @ 8E22EC4 .incbin "graphics/pokemon/zangoose/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_zangoose_palette:: @ 8E23290 +gMonPalette_Zangoose:: @ 8E23290 .incbin "graphics/pokemon/zangoose/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_zangoose_back_pic:: @ 8E232B8 +gMonBackPic_Zangoose:: @ 8E232B8 .incbin "graphics/pokemon/zangoose/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_zangoose_shiny_palette:: @ 8E2362C +gMonShinyPalette_Zangoose:: @ 8E2362C .incbin "graphics/pokemon/zangoose/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_zangoose_icon:: @ 8E23654 +gMonIcon_Zangoose:: @ 8E23654 .incbin "graphics/pokemon/zangoose/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_zangoose_footprint:: @ 8E23A54 +gMonFootprint_Zangoose:: @ 8E23A54 .incbin "graphics/pokemon/zangoose/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_relicanth_still_front_pic:: @ 8E23A74 +gMonFrontPic_Relicanth:: @ 8E23A74 .incbin "graphics/pokemon/relicanth/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_relicanth_palette:: @ 8E23E08 +gMonPalette_Relicanth:: @ 8E23E08 .incbin "graphics/pokemon/relicanth/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_relicanth_back_pic:: @ 8E23E30 +gMonBackPic_Relicanth:: @ 8E23E30 .incbin "graphics/pokemon/relicanth/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_relicanth_shiny_palette:: @ 8E24188 +gMonShinyPalette_Relicanth:: @ 8E24188 .incbin "graphics/pokemon/relicanth/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_relicanth_icon:: @ 8E241B0 +gMonIcon_Relicanth:: @ 8E241B0 .incbin "graphics/pokemon/relicanth/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_relicanth_footprint:: @ 8E245B0 +gMonFootprint_Relicanth:: @ 8E245B0 .incbin "graphics/pokemon/relicanth/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_aron_still_front_pic:: @ 8E245D0 +gMonFrontPic_Aron:: @ 8E245D0 .incbin "graphics/pokemon/aron/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_aron_palette:: @ 8E247B8 +gMonPalette_Aron:: @ 8E247B8 .incbin "graphics/pokemon/aron/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_aron_back_pic:: @ 8E247E0 +gMonBackPic_Aron:: @ 8E247E0 .incbin "graphics/pokemon/aron/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_aron_shiny_palette:: @ 8E24A08 +gMonShinyPalette_Aron:: @ 8E24A08 .incbin "graphics/pokemon/aron/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_aron_icon:: @ 8E24A30 +gMonIcon_Aron:: @ 8E24A30 .incbin "graphics/pokemon/aron/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_aron_footprint:: @ 8E24E30 +gMonFootprint_Aron:: @ 8E24E30 .incbin "graphics/pokemon/aron/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_lairon_still_front_pic:: @ 8E24E50 +gMonFrontPic_Lairon:: @ 8E24E50 .incbin "graphics/pokemon/lairon/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_lairon_palette:: @ 8E2521C +gMonPalette_Lairon:: @ 8E2521C .incbin "graphics/pokemon/lairon/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_lairon_back_pic:: @ 8E25244 +gMonBackPic_Lairon:: @ 8E25244 .incbin "graphics/pokemon/lairon/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_lairon_shiny_palette:: @ 8E25530 +gMonShinyPalette_Lairon:: @ 8E25530 .incbin "graphics/pokemon/lairon/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_lairon_icon:: @ 8E25558 +gMonIcon_Lairon:: @ 8E25558 .incbin "graphics/pokemon/lairon/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_lairon_footprint:: @ 8E25958 +gMonFootprint_Lairon:: @ 8E25958 .incbin "graphics/pokemon/lairon/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_aggron_still_front_pic:: @ 8E25978 +gMonFrontPic_Aggron:: @ 8E25978 .incbin "graphics/pokemon/aggron/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_aggron_palette:: @ 8E25EF4 +gMonPalette_Aggron:: @ 8E25EF4 .incbin "graphics/pokemon/aggron/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_aggron_back_pic:: @ 8E25F1C +gMonBackPic_Aggron:: @ 8E25F1C .incbin "graphics/pokemon/aggron/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_aggron_shiny_palette:: @ 8E26344 +gMonShinyPalette_Aggron:: @ 8E26344 .incbin "graphics/pokemon/aggron/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_aggron_icon:: @ 8E2636C +gMonIcon_Aggron:: @ 8E2636C .incbin "graphics/pokemon/aggron/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_aggron_footprint:: @ 8E2676C +gMonFootprint_Aggron:: @ 8E2676C .incbin "graphics/pokemon/aggron/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_castform_still_front_pic:: @ 8E2678C +gMonFrontPic_Castform:: @ 8E2678C .incbin "graphics/pokemon/castform/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_castform_palette:: @ 8E27214 +gMonPalette_Castform:: @ 8E27214 .incbin "graphics/pokemon/castform/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_castform_back_pic:: @ 8E27294 +gMonBackPic_Castform:: @ 8E27294 .incbin "graphics/pokemon/castform/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_castform_shiny_palette:: @ 8E27C50 +gMonShinyPalette_Castform:: @ 8E27C50 .incbin "graphics/pokemon/castform/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_castform_icon:: @ 8E27CCC +gMonIcon_Castform:: @ 8E27CCC .incbin "graphics/pokemon/castform/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_castform_footprint:: @ 8E280CC +gMonFootprint_Castform:: @ 8E280CC .incbin "graphics/pokemon/castform/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_volbeat_still_front_pic:: @ 8E280EC +gMonFrontPic_Volbeat:: @ 8E280EC .incbin "graphics/pokemon/volbeat/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_volbeat_palette:: @ 8E2847C +gMonPalette_Volbeat:: @ 8E2847C .incbin "graphics/pokemon/volbeat/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_volbeat_back_pic:: @ 8E284A4 +gMonBackPic_Volbeat:: @ 8E284A4 .incbin "graphics/pokemon/volbeat/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_volbeat_shiny_palette:: @ 8E28804 +gMonShinyPalette_Volbeat:: @ 8E28804 .incbin "graphics/pokemon/volbeat/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_volbeat_icon:: @ 8E2882C +gMonIcon_Volbeat:: @ 8E2882C .incbin "graphics/pokemon/volbeat/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_volbeat_footprint:: @ 8E28C2C +gMonFootprint_Volbeat:: @ 8E28C2C .incbin "graphics/pokemon/volbeat/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_illumise_still_front_pic:: @ 8E28C4C +gMonFrontPic_Illumise:: @ 8E28C4C .incbin "graphics/pokemon/illumise/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_illumise_palette:: @ 8E28FC0 +gMonPalette_Illumise:: @ 8E28FC0 .incbin "graphics/pokemon/illumise/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_illumise_back_pic:: @ 8E28FE8 +gMonBackPic_Illumise:: @ 8E28FE8 .incbin "graphics/pokemon/illumise/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_illumise_shiny_palette:: @ 8E29304 +gMonShinyPalette_Illumise:: @ 8E29304 .incbin "graphics/pokemon/illumise/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_illumise_icon:: @ 8E2932C +gMonIcon_Illumise:: @ 8E2932C .incbin "graphics/pokemon/illumise/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_illumise_footprint:: @ 8E2972C +gMonFootprint_Illumise:: @ 8E2972C .incbin "graphics/pokemon/illumise/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_lileep_still_front_pic:: @ 8E2974C +gMonFrontPic_Lileep:: @ 8E2974C .incbin "graphics/pokemon/lileep/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_lileep_palette:: @ 8E29A90 +gMonPalette_Lileep:: @ 8E29A90 .incbin "graphics/pokemon/lileep/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_lileep_back_pic:: @ 8E29AB8 +gMonBackPic_Lileep:: @ 8E29AB8 .incbin "graphics/pokemon/lileep/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_lileep_shiny_palette:: @ 8E29DFC +gMonShinyPalette_Lileep:: @ 8E29DFC .incbin "graphics/pokemon/lileep/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_lileep_icon:: @ 8E29E24 +gMonIcon_Lileep:: @ 8E29E24 .incbin "graphics/pokemon/lileep/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_lileep_footprint:: @ 8E2A224 +gMonFootprint_Lileep:: @ 8E2A224 .incbin "graphics/pokemon/lileep/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_cradily_still_front_pic:: @ 8E2A244 +gMonFrontPic_Cradily:: @ 8E2A244 .incbin "graphics/pokemon/cradily/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_cradily_palette:: @ 8E2A660 +gMonPalette_Cradily:: @ 8E2A660 .incbin "graphics/pokemon/cradily/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_cradily_back_pic:: @ 8E2A688 +gMonBackPic_Cradily:: @ 8E2A688 .incbin "graphics/pokemon/cradily/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_cradily_shiny_palette:: @ 8E2AA84 +gMonShinyPalette_Cradily:: @ 8E2AA84 .incbin "graphics/pokemon/cradily/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_cradily_icon:: @ 8E2AAAC +gMonIcon_Cradily:: @ 8E2AAAC .incbin "graphics/pokemon/cradily/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_cradily_footprint:: @ 8E2AEAC +gMonFootprint_Cradily:: @ 8E2AEAC .incbin "graphics/pokemon/cradily/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_anorith_still_front_pic:: @ 8E2AECC +gMonFrontPic_Anorith:: @ 8E2AECC .incbin "graphics/pokemon/anorith/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_anorith_palette:: @ 8E2B1F0 +gMonPalette_Anorith:: @ 8E2B1F0 .incbin "graphics/pokemon/anorith/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_anorith_back_pic:: @ 8E2B218 +gMonBackPic_Anorith:: @ 8E2B218 .incbin "graphics/pokemon/anorith/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_anorith_shiny_palette:: @ 8E2B460 +gMonShinyPalette_Anorith:: @ 8E2B460 .incbin "graphics/pokemon/anorith/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_anorith_icon:: @ 8E2B488 +gMonIcon_Anorith:: @ 8E2B488 .incbin "graphics/pokemon/anorith/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_anorith_footprint:: @ 8E2B888 +gMonFootprint_Anorith:: @ 8E2B888 .incbin "graphics/pokemon/anorith/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_armaldo_still_front_pic:: @ 8E2B8A8 +gMonFrontPic_Armaldo:: @ 8E2B8A8 .incbin "graphics/pokemon/armaldo/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_armaldo_palette:: @ 8E2BE28 +gMonPalette_Armaldo:: @ 8E2BE28 .incbin "graphics/pokemon/armaldo/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_armaldo_back_pic:: @ 8E2BE50 +gMonBackPic_Armaldo:: @ 8E2BE50 .incbin "graphics/pokemon/armaldo/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_armaldo_shiny_palette:: @ 8E2C288 +gMonShinyPalette_Armaldo:: @ 8E2C288 .incbin "graphics/pokemon/armaldo/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_armaldo_icon:: @ 8E2C2B0 +gMonIcon_Armaldo:: @ 8E2C2B0 .incbin "graphics/pokemon/armaldo/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_armaldo_footprint:: @ 8E2C6B0 +gMonFootprint_Armaldo:: @ 8E2C6B0 .incbin "graphics/pokemon/armaldo/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_ralts_still_front_pic:: @ 8E2C6D0 +gMonFrontPic_Ralts:: @ 8E2C6D0 .incbin "graphics/pokemon/ralts/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_ralts_palette:: @ 8E2C900 +gMonPalette_Ralts:: @ 8E2C900 .incbin "graphics/pokemon/ralts/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_ralts_back_pic:: @ 8E2C928 +gMonBackPic_Ralts:: @ 8E2C928 .incbin "graphics/pokemon/ralts/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_ralts_shiny_palette:: @ 8E2CB64 +gMonShinyPalette_Ralts:: @ 8E2CB64 .incbin "graphics/pokemon/ralts/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_ralts_icon:: @ 8E2CB8C +gMonIcon_Ralts:: @ 8E2CB8C .incbin "graphics/pokemon/ralts/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_ralts_footprint:: @ 8E2CF8C +gMonFootprint_Ralts:: @ 8E2CF8C .incbin "graphics/pokemon/ralts/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_kirlia_still_front_pic:: @ 8E2CFAC +gMonFrontPic_Kirlia:: @ 8E2CFAC .incbin "graphics/pokemon/kirlia/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_kirlia_palette:: @ 8E2D2A8 +gMonPalette_Kirlia:: @ 8E2D2A8 .incbin "graphics/pokemon/kirlia/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_kirlia_back_pic:: @ 8E2D2D0 +gMonBackPic_Kirlia:: @ 8E2D2D0 .incbin "graphics/pokemon/kirlia/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_kirlia_shiny_palette:: @ 8E2D644 +gMonShinyPalette_Kirlia:: @ 8E2D644 .incbin "graphics/pokemon/kirlia/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_kirlia_icon:: @ 8E2D66C +gMonIcon_Kirlia:: @ 8E2D66C .incbin "graphics/pokemon/kirlia/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_kirlia_footprint:: @ 8E2DA6C +gMonFootprint_Kirlia:: @ 8E2DA6C .incbin "graphics/pokemon/kirlia/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_gardevoir_still_front_pic:: @ 8E2DA8C +gMonFrontPic_Gardevoir:: @ 8E2DA8C .incbin "graphics/pokemon/gardevoir/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_gardevoir_palette:: @ 8E2DE08 +gMonPalette_Gardevoir:: @ 8E2DE08 .incbin "graphics/pokemon/gardevoir/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_gardevoir_back_pic:: @ 8E2DE30 +gMonBackPic_Gardevoir:: @ 8E2DE30 .incbin "graphics/pokemon/gardevoir/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_gardevoir_shiny_palette:: @ 8E2E164 +gMonShinyPalette_Gardevoir:: @ 8E2E164 .incbin "graphics/pokemon/gardevoir/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_gardevoir_icon:: @ 8E2E18C +gMonIcon_Gardevoir:: @ 8E2E18C .incbin "graphics/pokemon/gardevoir/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_gardevoir_footprint:: @ 8E2E58C +gMonFootprint_Gardevoir:: @ 8E2E58C .incbin "graphics/pokemon/gardevoir/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_bagon_still_front_pic:: @ 8E2E5AC +gMonFrontPic_Bagon:: @ 8E2E5AC .incbin "graphics/pokemon/bagon/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_bagon_palette:: @ 8E2E824 +gMonPalette_Bagon:: @ 8E2E824 .incbin "graphics/pokemon/bagon/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_bagon_back_pic:: @ 8E2E84C +gMonBackPic_Bagon:: @ 8E2E84C .incbin "graphics/pokemon/bagon/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_bagon_shiny_palette:: @ 8E2EB34 +gMonShinyPalette_Bagon:: @ 8E2EB34 .incbin "graphics/pokemon/bagon/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_bagon_icon:: @ 8E2EB5C +gMonIcon_Bagon:: @ 8E2EB5C .incbin "graphics/pokemon/bagon/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_bagon_footprint:: @ 8E2EF5C +gMonFootprint_Bagon:: @ 8E2EF5C .incbin "graphics/pokemon/bagon/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_shelgon_still_front_pic:: @ 8E2EF7C +gMonFrontPic_Shelgon:: @ 8E2EF7C .incbin "graphics/pokemon/shelgon/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_shelgon_palette:: @ 8E2F280 +gMonPalette_Shelgon:: @ 8E2F280 .incbin "graphics/pokemon/shelgon/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_shelgon_back_pic:: @ 8E2F2A8 +gMonBackPic_Shelgon:: @ 8E2F2A8 .incbin "graphics/pokemon/shelgon/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_shelgon_shiny_palette:: @ 8E2F590 +gMonShinyPalette_Shelgon:: @ 8E2F590 .incbin "graphics/pokemon/shelgon/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_shelgon_icon:: @ 8E2F5B8 +gMonIcon_Shelgon:: @ 8E2F5B8 .incbin "graphics/pokemon/shelgon/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_shelgon_footprint:: @ 8E2F9B8 +gMonFootprint_Shelgon:: @ 8E2F9B8 .incbin "graphics/pokemon/shelgon/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_salamence_still_front_pic:: @ 8E2F9D8 +gMonFrontPic_Salamence:: @ 8E2F9D8 .incbin "graphics/pokemon/salamence/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_salamence_palette:: @ 8E2FE3C +gMonPalette_Salamence:: @ 8E2FE3C .incbin "graphics/pokemon/salamence/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_salamence_back_pic:: @ 8E2FE64 +gMonBackPic_Salamence:: @ 8E2FE64 .incbin "graphics/pokemon/salamence/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_salamence_shiny_palette:: @ 8E30148 +gMonShinyPalette_Salamence:: @ 8E30148 .incbin "graphics/pokemon/salamence/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_salamence_icon:: @ 8E30170 +gMonIcon_Salamence:: @ 8E30170 .incbin "graphics/pokemon/salamence/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_salamence_footprint:: @ 8E30570 +gMonFootprint_Salamence:: @ 8E30570 .incbin "graphics/pokemon/salamence/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_beldum_still_front_pic:: @ 8E30590 +gMonFrontPic_Beldum:: @ 8E30590 .incbin "graphics/pokemon/beldum/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_beldum_palette:: @ 8E30800 +gMonPalette_Beldum:: @ 8E30800 .incbin "graphics/pokemon/beldum/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_beldum_back_pic:: @ 8E30828 +gMonBackPic_Beldum:: @ 8E30828 .incbin "graphics/pokemon/beldum/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_beldum_shiny_palette:: @ 8E30B18 +gMonShinyPalette_Beldum:: @ 8E30B18 .incbin "graphics/pokemon/beldum/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_beldum_icon:: @ 8E30B40 +gMonIcon_Beldum:: @ 8E30B40 .incbin "graphics/pokemon/beldum/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_beldum_footprint:: @ 8E30F40 +gMonFootprint_Beldum:: @ 8E30F40 .incbin "graphics/pokemon/beldum/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_metang_still_front_pic:: @ 8E30F60 +gMonFrontPic_Metang:: @ 8E30F60 .incbin "graphics/pokemon/metang/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_metang_palette:: @ 8E313BC +gMonPalette_Metang:: @ 8E313BC .incbin "graphics/pokemon/metang/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_metang_back_pic:: @ 8E313E4 +gMonBackPic_Metang:: @ 8E313E4 .incbin "graphics/pokemon/metang/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_metang_shiny_palette:: @ 8E31708 +gMonShinyPalette_Metang:: @ 8E31708 .incbin "graphics/pokemon/metang/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_metang_icon:: @ 8E31730 +gMonIcon_Metang:: @ 8E31730 .incbin "graphics/pokemon/metang/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_metang_footprint:: @ 8E31B30 +gMonFootprint_Metang:: @ 8E31B30 .incbin "graphics/pokemon/metang/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_metagross_still_front_pic:: @ 8E31B50 +gMonFrontPic_Metagross:: @ 8E31B50 .incbin "graphics/pokemon/metagross/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_metagross_palette:: @ 8E31FB4 +gMonPalette_Metagross:: @ 8E31FB4 .incbin "graphics/pokemon/metagross/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_metagross_back_pic:: @ 8E31FDC +gMonBackPic_Metagross:: @ 8E31FDC .incbin "graphics/pokemon/metagross/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_metagross_shiny_palette:: @ 8E322A8 +gMonShinyPalette_Metagross:: @ 8E322A8 .incbin "graphics/pokemon/metagross/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_metagross_icon:: @ 8E322D0 +gMonIcon_Metagross:: @ 8E322D0 .incbin "graphics/pokemon/metagross/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_metagross_footprint:: @ 8E326D0 +gMonFootprint_Metagross:: @ 8E326D0 .incbin "graphics/pokemon/metagross/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_regirock_still_front_pic:: @ 8E326F0 +gMonFrontPic_Regirock:: @ 8E326F0 .incbin "graphics/pokemon/regirock/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_regirock_palette:: @ 8E32BAC +gMonPalette_Regirock:: @ 8E32BAC .incbin "graphics/pokemon/regirock/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_regirock_back_pic:: @ 8E32BD4 +gMonBackPic_Regirock:: @ 8E32BD4 .incbin "graphics/pokemon/regirock/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_regirock_shiny_palette:: @ 8E33020 +gMonShinyPalette_Regirock:: @ 8E33020 .incbin "graphics/pokemon/regirock/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_regirock_icon:: @ 8E33048 +gMonIcon_Regirock:: @ 8E33048 .incbin "graphics/pokemon/regirock/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_regirock_footprint:: @ 8E33448 +gMonFootprint_Regirock:: @ 8E33448 .incbin "graphics/pokemon/regirock/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_regice_still_front_pic:: @ 8E33468 +gMonFrontPic_Regice:: @ 8E33468 .incbin "graphics/pokemon/regice/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_regice_palette:: @ 8E338B0 +gMonPalette_Regice:: @ 8E338B0 .incbin "graphics/pokemon/regice/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_regice_back_pic:: @ 8E338D8 +gMonBackPic_Regice:: @ 8E338D8 .incbin "graphics/pokemon/regice/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_regice_shiny_palette:: @ 8E33BC8 +gMonShinyPalette_Regice:: @ 8E33BC8 .incbin "graphics/pokemon/regice/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_regice_icon:: @ 8E33BF0 +gMonIcon_Regice:: @ 8E33BF0 .incbin "graphics/pokemon/regice/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_regice_footprint:: @ 8E33FF0 +gMonFootprint_Regice:: @ 8E33FF0 .incbin "graphics/pokemon/regice/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_registeel_still_front_pic:: @ 8E34010 +gMonFrontPic_Registeel:: @ 8E34010 .incbin "graphics/pokemon/registeel/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_registeel_palette:: @ 8E34498 +gMonPalette_Registeel:: @ 8E34498 .incbin "graphics/pokemon/registeel/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_registeel_back_pic:: @ 8E344C0 +gMonBackPic_Registeel:: @ 8E344C0 .incbin "graphics/pokemon/registeel/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_registeel_shiny_palette:: @ 8E347F8 +gMonShinyPalette_Registeel:: @ 8E347F8 .incbin "graphics/pokemon/registeel/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_registeel_icon:: @ 8E34820 +gMonIcon_Registeel:: @ 8E34820 .incbin "graphics/pokemon/registeel/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_registeel_footprint:: @ 8E34C20 +gMonFootprint_Registeel:: @ 8E34C20 .incbin "graphics/pokemon/registeel/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_kyogre_still_front_pic:: @ 8E34C40 +gMonFrontPic_Kyogre:: @ 8E34C40 .incbin "graphics/pokemon/kyogre/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_kyogre_palette:: @ 8E350B0 +gMonPalette_Kyogre:: @ 8E350B0 .incbin "graphics/pokemon/kyogre/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_kyogre_back_pic:: @ 8E350D8 +gMonBackPic_Kyogre:: @ 8E350D8 .incbin "graphics/pokemon/kyogre/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_kyogre_shiny_palette:: @ 8E35350 +gMonShinyPalette_Kyogre:: @ 8E35350 .incbin "graphics/pokemon/kyogre/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_kyogre_icon:: @ 8E35378 +gMonIcon_Kyogre:: @ 8E35378 .incbin "graphics/pokemon/kyogre/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_kyogre_footprint:: @ 8E35778 +gMonFootprint_Kyogre:: @ 8E35778 .incbin "graphics/pokemon/kyogre/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_groudon_still_front_pic:: @ 8E35798 +gMonFrontPic_Groudon:: @ 8E35798 .incbin "graphics/pokemon/groudon/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_groudon_palette:: @ 8E35D2C +gMonPalette_Groudon:: @ 8E35D2C .incbin "graphics/pokemon/groudon/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_groudon_back_pic:: @ 8E35D54 +gMonBackPic_Groudon:: @ 8E35D54 .incbin "graphics/pokemon/groudon/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_groudon_shiny_palette:: @ 8E361BC +gMonShinyPalette_Groudon:: @ 8E361BC .incbin "graphics/pokemon/groudon/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_groudon_icon:: @ 8E361E4 +gMonIcon_Groudon:: @ 8E361E4 .incbin "graphics/pokemon/groudon/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_groudon_footprint:: @ 8E365E4 +gMonFootprint_Groudon:: @ 8E365E4 .incbin "graphics/pokemon/groudon/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_rayquaza_still_front_pic:: @ 8E36604 +gMonFrontPic_Rayquaza:: @ 8E36604 .incbin "graphics/pokemon/rayquaza/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_rayquaza_palette:: @ 8E36B14 +gMonPalette_Rayquaza:: @ 8E36B14 .incbin "graphics/pokemon/rayquaza/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_rayquaza_back_pic:: @ 8E36B3C +gMonBackPic_Rayquaza:: @ 8E36B3C .incbin "graphics/pokemon/rayquaza/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_rayquaza_shiny_palette:: @ 8E36E74 +gMonShinyPalette_Rayquaza:: @ 8E36E74 .incbin "graphics/pokemon/rayquaza/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_rayquaza_icon:: @ 8E36E9C +gMonIcon_Rayquaza:: @ 8E36E9C .incbin "graphics/pokemon/rayquaza/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_rayquaza_footprint:: @ 8E3729C +gMonFootprint_Rayquaza:: @ 8E3729C .incbin "graphics/pokemon/rayquaza/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_latias_still_front_pic:: @ 8E372BC +gMonFrontPic_Latias:: @ 8E372BC .incbin "graphics/pokemon/latias/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_latias_palette:: @ 8E376E0 +gMonPalette_Latias:: @ 8E376E0 .incbin "graphics/pokemon/latias/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_latias_back_pic:: @ 8E37708 +gMonBackPic_Latias:: @ 8E37708 .incbin "graphics/pokemon/latias/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_latias_shiny_palette:: @ 8E37A04 +gMonShinyPalette_Latias:: @ 8E37A04 .incbin "graphics/pokemon/latias/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_latias_icon:: @ 8E37A2C +gMonIcon_Latias:: @ 8E37A2C .incbin "graphics/pokemon/latias/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_latias_footprint:: @ 8E37E2C +gMonFootprint_Latias:: @ 8E37E2C .incbin "graphics/pokemon/latias/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_latios_still_front_pic:: @ 8E37E4C +gMonFrontPic_Latios:: @ 8E37E4C .incbin "graphics/pokemon/latios/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_latios_palette:: @ 8E382A0 +gMonPalette_Latios:: @ 8E382A0 .incbin "graphics/pokemon/latios/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_latios_back_pic:: @ 8E382C8 +gMonBackPic_Latios:: @ 8E382C8 .incbin "graphics/pokemon/latios/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_latios_shiny_palette:: @ 8E38628 +gMonShinyPalette_Latios:: @ 8E38628 .incbin "graphics/pokemon/latios/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_latios_icon:: @ 8E38650 +gMonIcon_Latios:: @ 8E38650 .incbin "graphics/pokemon/latios/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_latios_footprint:: @ 8E38A50 +gMonFootprint_Latios:: @ 8E38A50 .incbin "graphics/pokemon/latios/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_jirachi_still_front_pic:: @ 8E38A70 +gMonFrontPic_Jirachi:: @ 8E38A70 .incbin "graphics/pokemon/jirachi/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_jirachi_palette:: @ 8E38D7C +gMonPalette_Jirachi:: @ 8E38D7C .incbin "graphics/pokemon/jirachi/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_jirachi_back_pic:: @ 8E38DA4 +gMonBackPic_Jirachi:: @ 8E38DA4 .incbin "graphics/pokemon/jirachi/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_jirachi_shiny_palette:: @ 8E39144 +gMonShinyPalette_Jirachi:: @ 8E39144 .incbin "graphics/pokemon/jirachi/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_jirachi_icon:: @ 8E3916C +gMonIcon_Jirachi:: @ 8E3916C .incbin "graphics/pokemon/jirachi/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_jirachi_footprint:: @ 8E3956C +gMonFootprint_Jirachi:: @ 8E3956C .incbin "graphics/pokemon/jirachi/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_deoxys_still_front_pic:: @ 8E3958C +gMonFrontPic_Deoxys:: @ 8E3958C .incbin "graphics/pokemon/deoxys/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_deoxys_palette:: @ 8E39D48 +gMonPalette_Deoxys:: @ 8E39D48 .incbin "graphics/pokemon/deoxys/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_deoxys_back_pic:: @ 8E39D70 +gMonBackPic_Deoxys:: @ 8E39D70 .incbin "graphics/pokemon/deoxys/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_deoxys_shiny_palette:: @ 8E3A360 +gMonShinyPalette_Deoxys:: @ 8E3A360 .incbin "graphics/pokemon/deoxys/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_deoxys_icon:: @ 8E3A388 +gMonIcon_Deoxys:: @ 8E3A388 .incbin "graphics/pokemon/deoxys/icon.4bpp" + @ Referenced as part of the same array as normal deoxys + .incbin "graphics/pokemon/deoxys/icon_attack.4bpp" .align 2 -gFile_graphics_pokemon_icons_deoxys_speed_icon:: @ 8E3A788 - .incbin "graphics/pokemon/deoxys/speed_icon.4bpp" - - .align 2 -gFile_graphics_pokemon_footprints_deoxys_footprint:: @ 8E3AB88 +gMonFootprint_Deoxys:: @ 8E3AB88 .incbin "graphics/pokemon/deoxys/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_chimecho_still_front_pic:: @ 8E3ABA8 +gMonFrontPic_Chimecho:: @ 8E3ABA8 .incbin "graphics/pokemon/chimecho/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_chimecho_palette:: @ 8E3ADF4 +gMonPalette_Chimecho:: @ 8E3ADF4 .incbin "graphics/pokemon/chimecho/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_back_pics_chimecho_back_pic:: @ 8E3AE1C +gMonBackPic_Chimecho:: @ 8E3AE1C .incbin "graphics/pokemon/chimecho/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_chimecho_shiny_palette:: @ 8E3B090 +gMonShinyPalette_Chimecho:: @ 8E3B090 .incbin "graphics/pokemon/chimecho/shiny.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_chimecho_icon:: @ 8E3B0B8 +gMonIcon_Chimecho:: @ 8E3B0B8 .incbin "graphics/pokemon/chimecho/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_chimecho_footprint:: @ 8E3B4B8 +gMonFootprint_Chimecho:: @ 8E3B4B8 .incbin "graphics/pokemon/chimecho/footprint.1bpp" .align 2 -gFile_graphics_pokemon_front_pics_egg_still_front_pic:: @ 8E3B4D8 +gMonFrontPic_Egg:: @ 8E3B4D8 .incbin "graphics/pokemon/egg/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_palettes_egg_palette:: @ 8E3B68C +gMonPalette_Egg:: @ 8E3B68C .incbin "graphics/pokemon/egg/normal.gbapal.lz" .align 2 -gFile_graphics_pokemon_front_pics_unown_b_still_front_pic:: @ 8E3B6AC +gMonFrontPic_UnownB:: @ 8E3B6AC .incbin "graphics/pokemon/unown/b/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_back_pics_unown_b_back_pic:: @ 8E3B884 +gMonBackPic_UnownB:: @ 8E3B884 .incbin "graphics/pokemon/unown/b/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_icons_unown_B_icon:: @ 8E3BA88 +gMonIcon_UnownB:: @ 8E3BA88 .incbin "graphics/pokemon/unown/b/icon.4bpp" .align 2 -gFile_graphics_pokemon_front_pics_unown_c_still_front_pic:: @ 8E3BE88 +gMonFrontPic_UnownC:: @ 8E3BE88 .incbin "graphics/pokemon/unown/c/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_back_pics_unown_c_back_pic:: @ 8E3C09C +gMonBackPic_UnownC:: @ 8E3C09C .incbin "graphics/pokemon/unown/c/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_icons_unown_C_icon:: @ 8E3C348 +gMonIcon_UnownC:: @ 8E3C348 .incbin "graphics/pokemon/unown/c/icon.4bpp" .align 2 -gFile_graphics_pokemon_front_pics_unown_d_still_front_pic:: @ 8E3C748 +gMonFrontPic_UnownD:: @ 8E3C748 .incbin "graphics/pokemon/unown/d/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_back_pics_unown_d_back_pic:: @ 8E3C940 +gMonBackPic_UnownD:: @ 8E3C940 .incbin "graphics/pokemon/unown/d/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_icons_unown_D_icon:: @ 8E3CB98 +gMonIcon_UnownD:: @ 8E3CB98 .incbin "graphics/pokemon/unown/d/icon.4bpp" .align 2 -gFile_graphics_pokemon_front_pics_unown_e_still_front_pic:: @ 8E3CF98 +gMonFrontPic_UnownE:: @ 8E3CF98 .incbin "graphics/pokemon/unown/e/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_back_pics_unown_e_back_pic:: @ 8E3D150 +gMonBackPic_UnownE:: @ 8E3D150 .incbin "graphics/pokemon/unown/e/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_icons_unown_E_icon:: @ 8E3D350 +gMonIcon_UnownE:: @ 8E3D350 .incbin "graphics/pokemon/unown/e/icon.4bpp" .align 2 -gFile_graphics_pokemon_front_pics_unown_f_still_front_pic:: @ 8E3D750 +gMonFrontPic_UnownF:: @ 8E3D750 .incbin "graphics/pokemon/unown/f/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_back_pics_unown_f_back_pic:: @ 8E3D944 +gMonBackPic_UnownF:: @ 8E3D944 .incbin "graphics/pokemon/unown/f/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_icons_unown_F_icon:: @ 8E3DB60 +gMonIcon_UnownF:: @ 8E3DB60 .incbin "graphics/pokemon/unown/f/icon.4bpp" .align 2 -gFile_graphics_pokemon_front_pics_unown_g_still_front_pic:: @ 8E3DF60 +gMonFrontPic_UnownG:: @ 8E3DF60 .incbin "graphics/pokemon/unown/g/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_back_pics_unown_g_back_pic:: @ 8E3E13C +gMonBackPic_UnownG:: @ 8E3E13C .incbin "graphics/pokemon/unown/g/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_icons_unown_G_icon:: @ 8E3E388 +gMonIcon_UnownG:: @ 8E3E388 .incbin "graphics/pokemon/unown/g/icon.4bpp" .align 2 -gFile_graphics_pokemon_front_pics_unown_h_still_front_pic:: @ 8E3E788 +gMonFrontPic_UnownH:: @ 8E3E788 .incbin "graphics/pokemon/unown/h/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_back_pics_unown_h_back_pic:: @ 8E3E9CC +gMonBackPic_UnownH:: @ 8E3E9CC .incbin "graphics/pokemon/unown/h/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_icons_unown_H_icon:: @ 8E3EC90 +gMonIcon_UnownH:: @ 8E3EC90 .incbin "graphics/pokemon/unown/h/icon.4bpp" .align 2 -gFile_graphics_pokemon_front_pics_unown_i_still_front_pic:: @ 8E3F090 +gMonFrontPic_UnownI:: @ 8E3F090 .incbin "graphics/pokemon/unown/i/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_back_pics_unown_i_back_pic:: @ 8E3F228 +gMonBackPic_UnownI:: @ 8E3F228 .incbin "graphics/pokemon/unown/i/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_icons_unown_I_icon:: @ 8E3F3D0 +gMonIcon_UnownI:: @ 8E3F3D0 .incbin "graphics/pokemon/unown/i/icon.4bpp" .align 2 -gFile_graphics_pokemon_front_pics_unown_j_still_front_pic:: @ 8E3F7D0 +gMonFrontPic_UnownJ:: @ 8E3F7D0 .incbin "graphics/pokemon/unown/j/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_back_pics_unown_j_back_pic:: @ 8E3F994 +gMonBackPic_UnownJ:: @ 8E3F994 .incbin "graphics/pokemon/unown/j/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_icons_unown_J_icon:: @ 8E3FB7C +gMonIcon_UnownJ:: @ 8E3FB7C .incbin "graphics/pokemon/unown/j/icon.4bpp" .align 2 -gFile_graphics_pokemon_front_pics_unown_k_still_front_pic:: @ 8E3FF7C +gMonFrontPic_UnownK:: @ 8E3FF7C .incbin "graphics/pokemon/unown/k/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_back_pics_unown_k_back_pic:: @ 8E4014C +gMonBackPic_UnownK:: @ 8E4014C .incbin "graphics/pokemon/unown/k/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_icons_unown_K_icon:: @ 8E40344 +gMonIcon_UnownK:: @ 8E40344 .incbin "graphics/pokemon/unown/k/icon.4bpp" .align 2 -gFile_graphics_pokemon_front_pics_unown_l_still_front_pic:: @ 8E40744 +gMonFrontPic_UnownL:: @ 8E40744 .incbin "graphics/pokemon/unown/l/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_back_pics_unown_l_back_pic:: @ 8E408F4 +gMonBackPic_UnownL:: @ 8E408F4 .incbin "graphics/pokemon/unown/l/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_icons_unown_L_icon:: @ 8E40AC8 +gMonIcon_UnownL:: @ 8E40AC8 .incbin "graphics/pokemon/unown/l/icon.4bpp" .align 2 -gFile_graphics_pokemon_front_pics_unown_m_still_front_pic:: @ 8E40EC8 +gMonFrontPic_UnownM:: @ 8E40EC8 .incbin "graphics/pokemon/unown/m/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_back_pics_unown_m_back_pic:: @ 8E410EC +gMonBackPic_UnownM:: @ 8E410EC .incbin "graphics/pokemon/unown/m/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_icons_unown_M_icon:: @ 8E41394 +gMonIcon_UnownM:: @ 8E41394 .incbin "graphics/pokemon/unown/m/icon.4bpp" .align 2 -gFile_graphics_pokemon_front_pics_unown_n_still_front_pic:: @ 8E41794 +gMonFrontPic_UnownN:: @ 8E41794 .incbin "graphics/pokemon/unown/n/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_back_pics_unown_n_back_pic:: @ 8E4198C +gMonBackPic_UnownN:: @ 8E4198C .incbin "graphics/pokemon/unown/n/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_icons_unown_N_icon:: @ 8E41BF8 +gMonIcon_UnownN:: @ 8E41BF8 .incbin "graphics/pokemon/unown/n/icon.4bpp" .align 2 -gFile_graphics_pokemon_front_pics_unown_o_still_front_pic:: @ 8E41FF8 +gMonFrontPic_UnownO:: @ 8E41FF8 .incbin "graphics/pokemon/unown/o/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_back_pics_unown_o_back_pic:: @ 8E42230 +gMonBackPic_UnownO:: @ 8E42230 .incbin "graphics/pokemon/unown/o/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_icons_unown_O_icon:: @ 8E424F0 +gMonIcon_UnownO:: @ 8E424F0 .incbin "graphics/pokemon/unown/o/icon.4bpp" .align 2 -gFile_graphics_pokemon_front_pics_unown_p_still_front_pic:: @ 8E428F0 +gMonFrontPic_UnownP:: @ 8E428F0 .incbin "graphics/pokemon/unown/p/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_back_pics_unown_p_back_pic:: @ 8E42A90 +gMonBackPic_UnownP:: @ 8E42A90 .incbin "graphics/pokemon/unown/p/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_icons_unown_P_icon:: @ 8E42C54 +gMonIcon_UnownP:: @ 8E42C54 .incbin "graphics/pokemon/unown/p/icon.4bpp" .align 2 -gFile_graphics_pokemon_front_pics_unown_q_still_front_pic:: @ 8E43054 +gMonFrontPic_UnownQ:: @ 8E43054 .incbin "graphics/pokemon/unown/q/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_back_pics_unown_q_back_pic:: @ 8E43208 +gMonBackPic_UnownQ:: @ 8E43208 .incbin "graphics/pokemon/unown/q/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_icons_unown_Q_icon:: @ 8E433D4 +gMonIcon_UnownQ:: @ 8E433D4 .incbin "graphics/pokemon/unown/q/icon.4bpp" .align 2 -gFile_graphics_pokemon_front_pics_unown_r_still_front_pic:: @ 8E437D4 +gMonFrontPic_UnownR:: @ 8E437D4 .incbin "graphics/pokemon/unown/r/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_back_pics_unown_r_back_pic:: @ 8E43978 +gMonBackPic_UnownR:: @ 8E43978 .incbin "graphics/pokemon/unown/r/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_icons_unown_R_icon:: @ 8E43B40 +gMonIcon_UnownR:: @ 8E43B40 .incbin "graphics/pokemon/unown/r/icon.4bpp" .align 2 -gFile_graphics_pokemon_front_pics_unown_s_still_front_pic:: @ 8E43F40 +gMonFrontPic_UnownS:: @ 8E43F40 .incbin "graphics/pokemon/unown/s/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_back_pics_unown_s_back_pic:: @ 8E44128 +gMonBackPic_UnownS:: @ 8E44128 .incbin "graphics/pokemon/unown/s/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_icons_unown_S_icon:: @ 8E4437C +gMonIcon_UnownS:: @ 8E4437C .incbin "graphics/pokemon/unown/s/icon.4bpp" .align 2 -gFile_graphics_pokemon_front_pics_unown_t_still_front_pic:: @ 8E4477C +gMonFrontPic_UnownT:: @ 8E4477C .incbin "graphics/pokemon/unown/t/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_back_pics_unown_t_back_pic:: @ 8E4492C +gMonBackPic_UnownT:: @ 8E4492C .incbin "graphics/pokemon/unown/t/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_icons_unown_T_icon:: @ 8E44AE0 +gMonIcon_UnownT:: @ 8E44AE0 .incbin "graphics/pokemon/unown/t/icon.4bpp" .align 2 -gFile_graphics_pokemon_front_pics_unown_u_still_front_pic:: @ 8E44EE0 +gMonFrontPic_UnownU:: @ 8E44EE0 .incbin "graphics/pokemon/unown/u/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_back_pics_unown_u_back_pic:: @ 8E450F8 +gMonBackPic_UnownU:: @ 8E450F8 .incbin "graphics/pokemon/unown/u/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_icons_unown_U_icon:: @ 8E4534C +gMonIcon_UnownU:: @ 8E4534C .incbin "graphics/pokemon/unown/u/icon.4bpp" .align 2 -gFile_graphics_pokemon_front_pics_unown_v_still_front_pic:: @ 8E4574C +gMonFrontPic_UnownV:: @ 8E4574C .incbin "graphics/pokemon/unown/v/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_back_pics_unown_v_back_pic:: @ 8E45930 +gMonBackPic_UnownV:: @ 8E45930 .incbin "graphics/pokemon/unown/v/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_icons_unown_V_icon:: @ 8E45B60 +gMonIcon_UnownV:: @ 8E45B60 .incbin "graphics/pokemon/unown/v/icon.4bpp" .align 2 -gFile_graphics_pokemon_front_pics_unown_w_still_front_pic:: @ 8E45F60 +gMonFrontPic_UnownW:: @ 8E45F60 .incbin "graphics/pokemon/unown/w/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_back_pics_unown_w_back_pic:: @ 8E46134 +gMonBackPic_UnownW:: @ 8E46134 .incbin "graphics/pokemon/unown/w/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_icons_unown_W_icon:: @ 8E46338 +gMonIcon_UnownW:: @ 8E46338 .incbin "graphics/pokemon/unown/w/icon.4bpp" .align 2 -gFile_graphics_pokemon_front_pics_unown_x_still_front_pic:: @ 8E46738 +gMonFrontPic_UnownX:: @ 8E46738 .incbin "graphics/pokemon/unown/x/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_back_pics_unown_x_back_pic:: @ 8E468FC +gMonBackPic_UnownX:: @ 8E468FC .incbin "graphics/pokemon/unown/x/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_icons_unown_X_icon:: @ 8E46AEC +gMonIcon_UnownX:: @ 8E46AEC .incbin "graphics/pokemon/unown/x/icon.4bpp" .align 2 -gFile_graphics_pokemon_front_pics_unown_y_still_front_pic:: @ 8E46EEC +gMonFrontPic_UnownY:: @ 8E46EEC .incbin "graphics/pokemon/unown/y/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_back_pics_unown_y_back_pic:: @ 8E470C4 +gMonBackPic_UnownY:: @ 8E470C4 .incbin "graphics/pokemon/unown/y/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_icons_unown_Y_icon:: @ 8E472B8 +gMonIcon_UnownY:: @ 8E472B8 .incbin "graphics/pokemon/unown/y/icon.4bpp" .align 2 -gFile_graphics_pokemon_front_pics_unown_z_still_front_pic:: @ 8E476B8 +gMonFrontPic_UnownZ:: @ 8E476B8 .incbin "graphics/pokemon/unown/z/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_back_pics_unown_z_back_pic:: @ 8E47868 +gMonBackPic_UnownZ:: @ 8E47868 .incbin "graphics/pokemon/unown/z/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_icons_unown_Z_icon:: @ 8E47A44 +gMonIcon_UnownZ:: @ 8E47A44 .incbin "graphics/pokemon/unown/z/icon.4bpp" .align 2 -gFile_graphics_pokemon_front_pics_unown_exclamation_mark_still_front_pic:: @ 8E47E44 +gMonFrontPic_UnownExclamationMark:: @ 8E47E44 .incbin "graphics/pokemon/unown/exclamation_mark/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_back_pics_unown_exclamation_mark_back_pic:: @ 8E47FD4 +gMonBackPic_UnownExclamationMark:: @ 8E47FD4 .incbin "graphics/pokemon/unown/exclamation_mark/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_icons_unown_exclamation_mark_icon:: @ 8E4819C +gMonIcon_UnownExclamationMark:: @ 8E4819C .incbin "graphics/pokemon/unown/exclamation_mark/icon.4bpp" .align 2 -gFile_graphics_pokemon_front_pics_unown_question_mark_still_front_pic:: @ 8E4859C +gMonFrontPic_UnownQuestionMark:: @ 8E4859C .incbin "graphics/pokemon/unown/question_mark/front.4bpp.lz" .align 2 -gFile_graphics_pokemon_back_pics_unown_question_mark_back_pic:: @ 8E48758 +gMonBackPic_UnownQuestionMark:: @ 8E48758 .incbin "graphics/pokemon/unown/question_mark/back.4bpp.lz" .align 2 -gFile_graphics_pokemon_icons_unown_question_mark_icon:: @ 8E48958 +gMonIcon_UnownQuestionMark:: @ 8E48958 .incbin "graphics/pokemon/unown/question_mark/icon.4bpp" .align 2 -gFile_graphics_trainers_front_pics_aqua_leader_archie_front_pic:: @ 8E48D58 +gTrainerFrontPic_AquaLeaderArchie:: @ 8E48D58 .incbin "graphics/trainers/front_pics/aqua_leader_archie_front_pic.4bpp.lz" .align 2 -gFile_graphics_trainers_palettes_aqua_leader_archie:: @ 8E49094 +gTrainerPalette_AquaLeaderArchie:: @ 8E49094 .incbin "graphics/trainers/palettes/aqua_leader_archie.gbapal.lz" .align 2 -gFile_graphics_trainers_front_pics_aqua_grunt_m_front_pic:: @ 8E490BC +gTrainerFrontPic_AquaGruntM:: @ 8E490BC .incbin "graphics/trainers/front_pics/aqua_grunt_m_front_pic.4bpp.lz" .align 2 -gFile_graphics_trainers_palettes_aqua_grunt_m:: @ 8E4941C +gTrainerPalette_AquaGruntM:: @ 8E4941C .incbin "graphics/trainers/palettes/aqua_grunt_m.gbapal.lz" .align 2 -gFile_graphics_trainers_front_pics_aqua_grunt_f_front_pic:: @ 8E49444 +gTrainerFrontPic_AquaGruntF:: @ 8E49444 .incbin "graphics/trainers/front_pics/aqua_grunt_f_front_pic.4bpp.lz" .align 2 -gFile_graphics_trainers_palettes_aqua_grunt_f:: @ 8E49780 +gTrainerPalette_AquaGruntF:: @ 8E49780 .incbin "graphics/trainers/palettes/aqua_grunt_f.gbapal.lz" .align 2 -gFile_graphics_trainers_front_pics_emerald_aroma_lady_front_pic:: @ 8E497A8 - .incbin "graphics/trainers/front_pics/emerald_aroma_lady_front_pic.4bpp.lz" +gTrainerFrontPic_RSAromaLady:: @ 8E497A8 + .incbin "graphics/trainers/front_pics/rs_aroma_lady_front_pic.4bpp.lz" .align 2 -gFile_graphics_trainers_palettes_emerald_aroma_lady:: @ 8E49A6C - .incbin "graphics/trainers/palettes/emerald_aroma_lady.gbapal.lz" +gTrainerPalette_RSAromaLady:: @ 8E49A6C + .incbin "graphics/trainers/palettes/rs_aroma_lady.gbapal.lz" .align 2 -gFile_graphics_trainers_front_pics_emerald_ruin_maniac_front_pic:: @ 8E49A94 - .incbin "graphics/trainers/front_pics/emerald_ruin_maniac_front_pic.4bpp.lz" +gTrainerFrontPic_RSRuinManiac:: @ 8E49A94 + .incbin "graphics/trainers/front_pics/rs_ruin_maniac_front_pic.4bpp.lz" .align 2 -gFile_graphics_trainers_palettes_emerald_ruin_maniac:: @ 8E49E30 - .incbin "graphics/trainers/palettes/emerald_ruin_maniac.gbapal.lz" +gTrainerPalette_RSRuinManiac:: @ 8E49E30 + .incbin "graphics/trainers/palettes/rs_ruin_maniac.gbapal.lz" .align 2 -gFile_graphics_trainers_front_pics_interviewer_front_pic:: @ 8E49E58 +gTrainerFrontPic_Interviewer:: @ 8E49E58 .incbin "graphics/trainers/front_pics/interviewer_front_pic.4bpp.lz" .align 2 -gFile_graphics_trainers_palettes_interviewer:: @ 8E4A2FC +gTrainerPalette_Interviewer:: @ 8E4A2FC .incbin "graphics/trainers/palettes/interviewer.gbapal.lz" .align 2 -gFile_graphics_trainers_front_pics_emerald_tuber_f_front_pic:: @ 8E4A324 - .incbin "graphics/trainers/front_pics/emerald_tuber_f_front_pic.4bpp.lz" +gTrainerFrontPic_RSTuberF:: @ 8E4A324 + .incbin "graphics/trainers/front_pics/rs_tuber_f_front_pic.4bpp.lz" .align 2 -gFile_graphics_trainers_palettes_emerald_tuber_f:: @ 8E4A5C8 - .incbin "graphics/trainers/palettes/emerald_tuber_f.gbapal.lz" +gTrainerPalette_RSTuberF:: @ 8E4A5C8 + .incbin "graphics/trainers/palettes/rs_tuber_f.gbapal.lz" .align 2 -gFile_graphics_trainers_front_pics_emerald_tuber_m_front_pic:: @ 8E4A5F0 - .incbin "graphics/trainers/front_pics/emerald_tuber_m_front_pic.4bpp.lz" +gTrainerFrontPic_TuberM:: @ 8E4A5F0 + .incbin "graphics/trainers/front_pics/tuber_m_front_pic.4bpp.lz" .align 2 -gFile_graphics_trainers_palettes_emerald_tuber_m:: @ 8E4A87C - .incbin "graphics/trainers/palettes/emerald_tuber_m.gbapal.lz" +gTrainerPalette_TuberM:: @ 8E4A87C + .incbin "graphics/trainers/palettes/tuber_m.gbapal.lz" .align 2 -gFile_graphics_trainers_front_pics_emerald_cool_trainer_m_front_pic:: @ 8E4A8A4 - .incbin "graphics/trainers/front_pics/emerald_cool_trainer_m_front_pic.4bpp.lz" +gTrainerFrontPic_RSCooltrainerM:: @ 8E4A8A4 + .incbin "graphics/trainers/front_pics/rs_cool_trainer_m_front_pic.4bpp.lz" .align 2 -gFile_graphics_trainers_palettes_emerald_cool_trainer_m:: @ 8E4AB8C - .incbin "graphics/trainers/palettes/emerald_cool_trainer_m.gbapal.lz" +gTrainerPalette_RSCooltrainerM:: @ 8E4AB8C + .incbin "graphics/trainers/palettes/rs_cool_trainer_m.gbapal.lz" .align 2 -gFile_graphics_trainers_front_pics_emerald_cool_trainer_f_front_pic:: @ 8E4ABB4 - .incbin "graphics/trainers/front_pics/emerald_cool_trainer_f_front_pic.4bpp.lz" +gTrainerFrontPic_RSCooltrainerF:: @ 8E4ABB4 + .incbin "graphics/trainers/front_pics/rs_cool_trainer_f_front_pic.4bpp.lz" .align 2 -gFile_graphics_trainers_palettes_emerald_cool_trainer_f:: @ 8E4AEC8 - .incbin "graphics/trainers/palettes/emerald_cool_trainer_f.gbapal.lz" +gTrainerPalette_RSCooltrainerF:: @ 8E4AEC8 + .incbin "graphics/trainers/palettes/rs_cool_trainer_f.gbapal.lz" .align 2 -gFile_graphics_trainers_front_pics_hex_maniac_front_pic:: @ 8E4AEF0 +gTrainerFrontPic_HexManiac:: @ 8E4AEF0 .incbin "graphics/trainers/front_pics/hex_maniac_front_pic.4bpp.lz" .align 2 -gFile_graphics_trainers_palettes_hex_maniac:: @ 8E4B25C +gTrainerPalette_HexManiac:: @ 8E4B25C .incbin "graphics/trainers/palettes/hex_maniac.gbapal.lz" .align 2 -gFile_graphics_trainers_front_pics_emerald_lady_front_pic:: @ 8E4B284 - .incbin "graphics/trainers/front_pics/emerald_lady_front_pic.4bpp.lz" +gTrainerFrontPic_RSLady:: @ 8E4B284 + .incbin "graphics/trainers/front_pics/rs_lady_front_pic.4bpp.lz" .align 2 -gFile_graphics_trainers_palettes_emerald_lady:: @ 8E4B638 - .incbin "graphics/trainers/palettes/emerald_lady.gbapal.lz" +gTrainerPalette_RSLady:: @ 8E4B638 + .incbin "graphics/trainers/palettes/rs_lady.gbapal.lz" .align 2 -gFile_graphics_trainers_front_pics_emerald_beauty_front_pic:: @ 8E4B660 - .incbin "graphics/trainers/front_pics/emerald_beauty_front_pic.4bpp.lz" +gTrainerFrontPic_RSBeauty:: @ 8E4B660 + .incbin "graphics/trainers/front_pics/rs_beauty_front_pic.4bpp.lz" .align 2 -gFile_graphics_trainers_palettes_emerald_beauty:: @ 8E4B948 - .incbin "graphics/trainers/palettes/emerald_beauty.gbapal.lz" +gTrainerPalette_RSBeauty:: @ 8E4B948 + .incbin "graphics/trainers/palettes/rs_beauty.gbapal.lz" .align 2 -gFile_graphics_trainers_front_pics_rich_boy_front_pic:: @ 8E4B970 +gTrainerFrontPic_RichBoy:: @ 8E4B970 .incbin "graphics/trainers/front_pics/rich_boy_front_pic.4bpp.lz" .align 2 -gFile_graphics_trainers_palettes_rich_boy:: @ 8E4BC24 +gTrainerPalette_RichBoy:: @ 8E4BC24 .incbin "graphics/trainers/palettes/rich_boy.gbapal.lz" .align 2 -gFile_graphics_trainers_front_pics_emerald_pokemaniac_front_pic:: @ 8E4BC4C - .incbin "graphics/trainers/front_pics/emerald_pokemaniac_front_pic.4bpp.lz" +gTrainerFrontPic_RSPokeManiac:: @ 8E4BC4C + .incbin "graphics/trainers/front_pics/rs_pokemaniac_front_pic.4bpp.lz" .align 2 -gFile_graphics_trainers_palettes_emerald_pokemaniac:: @ 8E4BFBC - .incbin "graphics/trainers/palettes/emerald_pokemaniac.gbapal.lz" +gTrainerPalette_RSPokeManiac:: @ 8E4BFBC + .incbin "graphics/trainers/palettes/rs_pokemaniac.gbapal.lz" .align 2 -gFile_graphics_trainers_front_pics_emerald_swimmer_m_front_pic:: @ 8E4BFE4 - .incbin "graphics/trainers/front_pics/emerald_swimmer_m_front_pic.4bpp.lz" +gTrainerFrontPic_RSSwimmerM:: @ 8E4BFE4 + .incbin "graphics/trainers/front_pics/rs_swimmer_m_front_pic.4bpp.lz" .align 2 -gFile_graphics_trainers_palettes_emerald_swimmer_m:: @ 8E4C2A4 - .incbin "graphics/trainers/palettes/emerald_swimmer_m.gbapal.lz" +gTrainerPalette_RSSwimmerM:: @ 8E4C2A4 + .incbin "graphics/trainers/palettes/rs_swimmer_m.gbapal.lz" .align 2 -gFile_graphics_trainers_front_pics_emerald_black_belt_front_pic:: @ 8E4C2CC - .incbin "graphics/trainers/front_pics/emerald_black_belt_front_pic.4bpp.lz" +gTrainerFrontPic_RSBlackBelt:: @ 8E4C2CC + .incbin "graphics/trainers/front_pics/rs_black_belt_front_pic.4bpp.lz" .align 2 -gFile_graphics_trainers_palettes_emerald_black_belt:: @ 8E4C630 - .incbin "graphics/trainers/palettes/emerald_black_belt.gbapal.lz" +gTrainerPalette_RSBlackBelt:: @ 8E4C630 + .incbin "graphics/trainers/palettes/rs_black_belt.gbapal.lz" .align 2 -gFile_graphics_trainers_front_pics_guitarist_front_pic:: @ 8E4C658 +gTrainerFrontPic_Guitarist:: @ 8E4C658 .incbin "graphics/trainers/front_pics/guitarist_front_pic.4bpp.lz" .align 2 -gFile_graphics_trainers_palettes_guitarist:: @ 8E4C9DC +gTrainerPalette_Guitarist:: @ 8E4C9DC .incbin "graphics/trainers/palettes/guitarist.gbapal.lz" .align 2 -gFile_graphics_trainers_front_pics_kindler_front_pic:: @ 8E4CA04 +gTrainerFrontPic_Kindler:: @ 8E4CA04 .incbin "graphics/trainers/front_pics/kindler_front_pic.4bpp.lz" .align 2 -gFile_graphics_trainers_palettes_kindler:: @ 8E4CD70 +gTrainerPalette_Kindler:: @ 8E4CD70 .incbin "graphics/trainers/palettes/kindler.gbapal.lz" .align 2 -gFile_graphics_trainers_front_pics_emerald_camper_front_pic:: @ 8E4CD98 - .incbin "graphics/trainers/front_pics/emerald_camper_front_pic.4bpp.lz" +gTrainerFrontPic_RSCamper:: @ 8E4CD98 + .incbin "graphics/trainers/front_pics/rs_camper_front_pic.4bpp.lz" .align 2 -gFile_graphics_trainers_palettes_emerald_camper:: @ 8E4D080 - .incbin "graphics/trainers/palettes/emerald_camper.gbapal.lz" +gTrainerPalette_RSCamper:: @ 8E4D080 + .incbin "graphics/trainers/palettes/rs_camper.gbapal.lz" .align 2 -gFile_graphics_trainers_front_pics_bug_maniac_front_pic:: @ 8E4D0A8 +gTrainerFrontPic_BugManiac:: @ 8E4D0A8 .incbin "graphics/trainers/front_pics/bug_maniac_front_pic.4bpp.lz" .align 2 -gFile_graphics_trainers_palettes_bug_maniac:: @ 8E4D4F8 +gTrainerPalette_BugManiac:: @ 8E4D4F8 .incbin "graphics/trainers/palettes/bug_maniac.gbapal.lz" .align 2 -gFile_graphics_trainers_front_pics_emerald_psychic_m_front_pic:: @ 8E4D520 - .incbin "graphics/trainers/front_pics/emerald_psychic_m_front_pic.4bpp.lz" +gTrainerFrontPic_RSPsychicM:: @ 8E4D520 + .incbin "graphics/trainers/front_pics/rs_psychic_m_front_pic.4bpp.lz" .align 2 -gFile_graphics_trainers_palettes_emerald_psychic_m:: @ 8E4D84C - .incbin "graphics/trainers/palettes/emerald_psychic_m.gbapal.lz" +gTrainerPalette_RSPsychicM:: @ 8E4D84C + .incbin "graphics/trainers/palettes/rs_psychic_m.gbapal.lz" .align 2 -gFile_graphics_trainers_front_pics_emerald_psychic_f_front_pic:: @ 8E4D874 - .incbin "graphics/trainers/front_pics/emerald_psychic_f_front_pic.4bpp.lz" +gTrainerFrontPic_RSPsychicF:: @ 8E4D874 + .incbin "graphics/trainers/front_pics/rs_psychic_f_front_pic.4bpp.lz" .align 2 -gFile_graphics_trainers_palettes_emerald_psychic_f:: @ 8E4DB9C - .incbin "graphics/trainers/palettes/emerald_psychic_f.gbapal.lz" +gTrainerPalette_RSPsychicF:: @ 8E4DB9C + .incbin "graphics/trainers/palettes/rs_psychic_f.gbapal.lz" .align 2 -gFile_graphics_trainers_front_pics_emerald_gentleman_front_pic:: @ 8E4DBC4 - .incbin "graphics/trainers/front_pics/emerald_gentleman_front_pic.4bpp.lz" +gTrainerFrontPic_RSGentleman:: @ 8E4DBC4 + .incbin "graphics/trainers/front_pics/rs_gentleman_front_pic.4bpp.lz" .align 2 -gFile_graphics_trainers_palettes_emerald_gentleman:: @ 8E4DEC4 - .incbin "graphics/trainers/palettes/emerald_gentleman.gbapal.lz" +gTrainerPalette_RSGentleman:: @ 8E4DEC4 + .incbin "graphics/trainers/palettes/rs_gentleman.gbapal.lz" .align 2 -gFile_graphics_trainers_front_pics_elite_four_sidney_front_pic:: @ 8E4DEEC +gTrainerFrontPic_EliteFourSidney:: @ 8E4DEEC .incbin "graphics/trainers/front_pics/elite_four_sidney_front_pic.4bpp.lz" .align 2 -gFile_graphics_trainers_palettes_elite_four_sidney:: @ 8E4E220 +gTrainerPalette_EliteFourSidney:: @ 8E4E220 .incbin "graphics/trainers/palettes/elite_four_sidney.gbapal.lz" .align 2 -gFile_graphics_trainers_front_pics_elite_four_phoebe_front_pic:: @ 8E4E248 +gTrainerFrontPic_EliteFourPhoebe:: @ 8E4E248 .incbin "graphics/trainers/front_pics/elite_four_phoebe_front_pic.4bpp.lz" .align 2 -gFile_graphics_trainers_palettes_elite_four_phoebe:: @ 8E4E548 +gTrainerPalette_EliteFourPhoebe:: @ 8E4E548 .incbin "graphics/trainers/palettes/elite_four_phoebe.gbapal.lz" .align 2 -gFile_graphics_trainers_front_pics_leader_roxanne_front_pic:: @ 8E4E570 +gTrainerFrontPic_LeaderRoxanne:: @ 8E4E570 .incbin "graphics/trainers/front_pics/leader_roxanne_front_pic.4bpp.lz" .align 2 -gFile_graphics_trainers_palettes_leader_roxanne:: @ 8E4E85C +gTrainerPalette_LeaderRoxanne:: @ 8E4E85C .incbin "graphics/trainers/palettes/leader_roxanne.gbapal.lz" .align 2 -gFile_graphics_trainers_front_pics_leader_brawly_front_pic:: @ 8E4E884 +gTrainerFrontPic_LeaderBrawly:: @ 8E4E884 .incbin "graphics/trainers/front_pics/leader_brawly_front_pic.4bpp.lz" .align 2 -gFile_graphics_trainers_palettes_leader_brawly:: @ 8E4EC18 +gTrainerPalette_LeaderBrawly:: @ 8E4EC18 .incbin "graphics/trainers/palettes/leader_brawly.gbapal.lz" .align 2 -gFile_graphics_trainers_front_pics_leader_tate_and_liza_front_pic:: @ 8E4EC40 +gTrainerFrontPic_LeaderTateAndLiza:: @ 8E4EC40 .incbin "graphics/trainers/front_pics/leader_tate_and_liza_front_pic.4bpp.lz" .align 2 -gFile_graphics_trainers_palettes_leader_tate_and_liza:: @ 8E4F084 +gTrainerPalette_LeaderTateAndLiza:: @ 8E4F084 .incbin "graphics/trainers/palettes/leader_tate_and_liza.gbapal.lz" .align 2 -gFile_graphics_trainers_front_pics_school_kid_m_front_pic:: @ 8E4F0AC +gTrainerFrontPic_SchoolKidM:: @ 8E4F0AC .incbin "graphics/trainers/front_pics/school_kid_m_front_pic.4bpp.lz" .align 2 -gFile_graphics_trainers_palettes_school_kid_m:: @ 8E4F36C +gTrainerPalette_SchoolKidM:: @ 8E4F36C .incbin "graphics/trainers/palettes/school_kid_m.gbapal.lz" .align 2 -gFile_graphics_trainers_front_pics_school_kid_f_front_pic:: @ 8E4F394 +gTrainerFrontPic_SchoolKidF:: @ 8E4F394 .incbin "graphics/trainers/front_pics/school_kid_f_front_pic.4bpp.lz" .align 2 -gFile_graphics_trainers_palettes_school_kid_f:: @ 8E4F630 +gTrainerPalette_SchoolKidF:: @ 8E4F630 .incbin "graphics/trainers/palettes/school_kid_f.gbapal.lz" .align 2 -gFile_graphics_trainers_front_pics_sr_and_jr_front_pic:: @ 8E4F658 +gTrainerFrontPic_SrAndJr:: @ 8E4F658 .incbin "graphics/trainers/front_pics/sr_and_jr_front_pic.4bpp.lz" .align 2 -gFile_graphics_trainers_palettes_sr_and_jr:: @ 8E4FAC8 +gTrainerPalette_SrAndJr:: @ 8E4FAC8 .incbin "graphics/trainers/palettes/sr_and_jr.gbapal.lz" .align 2 -gFile_graphics_trainers_front_pics_winstrate_m_front_pic:: @ 8E4FAF0 - .incbin "graphics/trainers/front_pics/winstrate_m_front_pic.4bpp.lz" +gTrainerFrontPic_PokefanM:: @ 8E4FAF0 + .incbin "graphics/trainers/front_pics/pokefan_m_front_pic.4bpp.lz" .align 2 -gFile_graphics_trainers_palettes_winstrate_m:: @ 8E4FEAC - .incbin "graphics/trainers/palettes/winstrate_m.gbapal.lz" +gTrainerPalette_PokefanM:: @ 8E4FEAC + .incbin "graphics/trainers/palettes/pokefan_m.gbapal.lz" .align 2 -gFile_graphics_trainers_front_pics_winstrate_f_front_pic:: @ 8E4FED4 - .incbin "graphics/trainers/front_pics/winstrate_f_front_pic.4bpp.lz" +gTrainerFrontPic_PokefanF:: @ 8E4FED4 + .incbin "graphics/trainers/front_pics/pokefan_f_front_pic.4bpp.lz" .align 2 -gFile_graphics_trainers_palettes_winstrate_f:: @ 8E502A0 - .incbin "graphics/trainers/palettes/winstrate_f.gbapal.lz" +gTrainerPalette_PokefanF:: @ 8E502A0 + .incbin "graphics/trainers/palettes/pokefan_f.gbapal.lz" .align 2 -gFile_graphics_trainers_front_pics_expert_m_front_pic:: @ 8E502C8 +gTrainerFrontPic_ExpertM:: @ 8E502C8 .incbin "graphics/trainers/front_pics/expert_m_front_pic.4bpp.lz" .align 2 -gFile_graphics_trainers_palettes_expert_m:: @ 8E50608 +gTrainerPalette_ExpertM:: @ 8E50608 .incbin "graphics/trainers/palettes/expert_m.gbapal.lz" .align 2 -gFile_graphics_trainers_front_pics_expert_f_front_pic:: @ 8E50630 +gTrainerFrontPic_ExpertF:: @ 8E50630 .incbin "graphics/trainers/front_pics/expert_f_front_pic.4bpp.lz" .align 2 -gFile_graphics_trainers_palettes_expert_f:: @ 8E5094C +gTrainerPalette_ExpertF:: @ 8E5094C .incbin "graphics/trainers/palettes/expert_f.gbapal.lz" .align 2 -gFile_graphics_trainers_front_pics_emerald_youngster_front_pic:: @ 8E50974 - .incbin "graphics/trainers/front_pics/emerald_youngster_front_pic.4bpp.lz" +gTrainerFrontPic_RSYoungster:: @ 8E50974 + .incbin "graphics/trainers/front_pics/rs_youngster_front_pic.4bpp.lz" .align 2 -gFile_graphics_trainers_palettes_emerald_youngster:: @ 8E50C1C - .incbin "graphics/trainers/palettes/emerald_youngster.gbapal.lz" +gTrainerPalette_RSYoungster:: @ 8E50C1C + .incbin "graphics/trainers/palettes/rs_youngster.gbapal.lz" .align 2 -gFile_graphics_trainers_front_pics_steven_front_pic:: @ 8E50C44 - .incbin "graphics/trainers/front_pics/steven_front_pic.4bpp.lz" +gTrainerFrontPic_ChampionSteven:: @ 8E50C44 + .incbin "graphics/trainers/front_pics/champion_steven_front_pic.4bpp.lz" .align 2 -gFile_graphics_trainers_palettes_steven:: @ 8E50F7C - .incbin "graphics/trainers/palettes/steven.gbapal.lz" +gTrainerPalette_ChampionSteven:: @ 8E50F7C + .incbin "graphics/trainers/palettes/champion_steven.gbapal.lz" .align 2 -gFile_graphics_trainers_front_pics_emerald_fisherman_front_pic:: @ 8E50FA4 - .incbin "graphics/trainers/front_pics/emerald_fisherman_front_pic.4bpp.lz" +gTrainerFrontPic_RSFisherman:: @ 8E50FA4 + .incbin "graphics/trainers/front_pics/rs_fisherman_front_pic.4bpp.lz" .align 2 -gFile_graphics_trainers_palettes_emerald_fisherman:: @ 8E51388 - .incbin "graphics/trainers/palettes/emerald_fisherman.gbapal.lz" +gTrainerPalette_RSFisherman:: @ 8E51388 + .incbin "graphics/trainers/palettes/rs_fisherman.gbapal.lz" .align 2 -gFile_graphics_trainers_front_pics_cycling_triathlete_m_front_pic:: @ 8E513B0 +gTrainerFrontPic_CyclingTriathleteM:: @ 8E513B0 .incbin "graphics/trainers/front_pics/cycling_triathlete_m_front_pic.4bpp.lz" .align 2 -gFile_graphics_trainers_palettes_cycling_triathlete_m:: @ 8E517C0 +gTrainerPalette_CyclingTriathleteM:: @ 8E517C0 .incbin "graphics/trainers/palettes/cycling_triathlete_m.gbapal.lz" .align 2 -gFile_graphics_trainers_front_pics_cycling_triathlete_f_front_pic:: @ 8E517E8 +gTrainerFrontPic_CyclingTriathleteF:: @ 8E517E8 .incbin "graphics/trainers/front_pics/cycling_triathlete_f_front_pic.4bpp.lz" .align 2 -gFile_graphics_trainers_palettes_cycling_triathlete_f:: @ 8E51BF4 +gTrainerPalette_CyclingTriathleteF:: @ 8E51BF4 .incbin "graphics/trainers/palettes/cycling_triathlete_f.gbapal.lz" .align 2 -gFile_graphics_trainers_front_pics_running_triathlete_m_front_pic:: @ 8E51C1C +gTrainerFrontPic_RunningTriathleteM:: @ 8E51C1C .incbin "graphics/trainers/front_pics/running_triathlete_m_front_pic.4bpp.lz" .align 2 -gFile_graphics_trainers_palettes_running_triathlete_m:: @ 8E51ED4 +gTrainerPalette_RunningTriathleteM:: @ 8E51ED4 .incbin "graphics/trainers/palettes/running_triathlete_m.gbapal.lz" .align 2 -gFile_graphics_trainers_front_pics_running_triathlete_f_front_pic:: @ 8E51EFC +gTrainerFrontPic_RunningTriathleteF:: @ 8E51EFC .incbin "graphics/trainers/front_pics/running_triathlete_f_front_pic.4bpp.lz" .align 2 -gFile_graphics_trainers_palettes_running_triathlete_f:: @ 8E521A0 +gTrainerPalette_RunningTriathleteF:: @ 8E521A0 .incbin "graphics/trainers/palettes/running_triathlete_f.gbapal.lz" .align 2 -gFile_graphics_trainers_front_pics_swimming_triathlete_m_front_pic:: @ 8E521C8 +gTrainerFrontPic_SwimmingTriathleteM:: @ 8E521C8 .incbin "graphics/trainers/front_pics/swimming_triathlete_m_front_pic.4bpp.lz" .align 2 -gFile_graphics_trainers_palettes_swimming_triathlete_m:: @ 8E524F4 +gTrainerPalette_SwimmingTriathleteM:: @ 8E524F4 .incbin "graphics/trainers/palettes/swimming_triathlete_m.gbapal.lz" .align 2 -gFile_graphics_trainers_front_pics_swimming_triathlete_f_front_pic:: @ 8E5251C +gTrainerFrontPic_SwimmingTriathleteF:: @ 8E5251C .incbin "graphics/trainers/front_pics/swimming_triathlete_f_front_pic.4bpp.lz" .align 2 -gFile_graphics_trainers_palettes_swimming_triathlete_f:: @ 8E527F8 +gTrainerPalette_SwimmingTriathleteF:: @ 8E527F8 .incbin "graphics/trainers/palettes/swimming_triathlete_f.gbapal.lz" .align 2 -gFile_graphics_trainers_front_pics_dragon_tamer_front_pic:: @ 8E52820 +gTrainerFrontPic_DragonTamer:: @ 8E52820 .incbin "graphics/trainers/front_pics/dragon_tamer_front_pic.4bpp.lz" .align 2 -gFile_graphics_trainers_palettes_dragon_tamer:: @ 8E52B74 +gTrainerPalette_DragonTamer:: @ 8E52B74 .incbin "graphics/trainers/palettes/dragon_tamer.gbapal.lz" .align 2 -gFile_graphics_trainers_front_pics_emerald_bird_keeper_front_pic:: @ 8E52B9C - .incbin "graphics/trainers/front_pics/emerald_bird_keeper_front_pic.4bpp.lz" +gTrainerFrontPic_RSBirdKeeper:: @ 8E52B9C + .incbin "graphics/trainers/front_pics/rs_bird_keeper_front_pic.4bpp.lz" .align 2 -gFile_graphics_trainers_palettes_emerald_bird_keeper:: @ 8E52ED4 - .incbin "graphics/trainers/palettes/emerald_bird_keeper.gbapal.lz" +gTrainerPalette_RSBirdKeeper:: @ 8E52ED4 + .incbin "graphics/trainers/palettes/rs_bird_keeper.gbapal.lz" .align 2 -gFile_graphics_trainers_front_pics_ninja_boy_front_pic:: @ 8E52EFC +gTrainerFrontPic_NinjaBoy:: @ 8E52EFC .incbin "graphics/trainers/front_pics/ninja_boy_front_pic.4bpp.lz" .align 2 -gFile_graphics_trainers_palettes_ninja_boy:: @ 8E531D8 +gTrainerPalette_NinjaBoy:: @ 8E531D8 .incbin "graphics/trainers/palettes/ninja_boy.gbapal.lz" .align 2 -gFile_graphics_trainers_front_pics_battle_girl_front_pic:: @ 8E53200 +gTrainerFrontPic_BattleGirl:: @ 8E53200 .incbin "graphics/trainers/front_pics/battle_girl_front_pic.4bpp.lz" .align 2 -gFile_graphics_trainers_palettes_battle_girl:: @ 8E53520 +gTrainerPalette_BattleGirl:: @ 8E53520 .incbin "graphics/trainers/palettes/battle_girl.gbapal.lz" .align 2 -gFile_graphics_trainers_front_pics_parasol_lady_front_pic:: @ 8E53548 +gTrainerFrontPic_ParasolLady:: @ 8E53548 .incbin "graphics/trainers/front_pics/parasol_lady_front_pic.4bpp.lz" .align 2 -gFile_graphics_trainers_palettes_parasol_lady:: @ 8E53880 +gTrainerPalette_ParasolLady:: @ 8E53880 .incbin "graphics/trainers/palettes/parasol_lady.gbapal.lz" .align 2 -gFile_graphics_trainers_front_pics_emerald_swimmer_f_front_pic:: @ 8E538A8 - .incbin "graphics/trainers/front_pics/emerald_swimmer_f_front_pic.4bpp.lz" +gTrainerFrontPic_RSSwimmerF:: @ 8E538A8 + .incbin "graphics/trainers/front_pics/rs_swimmer_f_front_pic.4bpp.lz" .align 2 -gFile_graphics_trainers_palettes_emerald_swimmer_f:: @ 8E53B78 - .incbin "graphics/trainers/palettes/emerald_swimmer_f.gbapal.lz" +gTrainerPalette_RSSwimmerF:: @ 8E53B78 + .incbin "graphics/trainers/palettes/rs_swimmer_f.gbapal.lz" .align 2 -gFile_graphics_trainers_front_pics_emerald_picnicker_front_pic:: @ 8E53BA0 - .incbin "graphics/trainers/front_pics/emerald_picnicker_front_pic.4bpp.lz" +gTrainerFrontPic_RSPicnicker:: @ 8E53BA0 + .incbin "graphics/trainers/front_pics/rs_picnicker_front_pic.4bpp.lz" .align 2 -gFile_graphics_trainers_palettes_emerald_picnicker:: @ 8E53E80 - .incbin "graphics/trainers/palettes/emerald_picnicker.gbapal.lz" +gTrainerPalette_RSPicnicker:: @ 8E53E80 + .incbin "graphics/trainers/palettes/rs_picnicker.gbapal.lz" .align 2 -gFile_graphics_trainers_front_pics_emerald_twins_front_pic:: @ 8E53EA8 - .incbin "graphics/trainers/front_pics/emerald_twins_front_pic.4bpp.lz" +gTrainerFrontPic_RSTwins:: @ 8E53EA8 + .incbin "graphics/trainers/front_pics/rs_twins_front_pic.4bpp.lz" .align 2 -gFile_graphics_trainers_palettes_emerald_twins:: @ 8E5426C - .incbin "graphics/trainers/palettes/emerald_twins.gbapal.lz" +gTrainerPalette_RSTwins:: @ 8E5426C + .incbin "graphics/trainers/palettes/rs_twins.gbapal.lz" .align 2 -gFile_graphics_trainers_front_pics_emerald_sailor_front_pic:: @ 8E54294 - .incbin "graphics/trainers/front_pics/emerald_sailor_front_pic.4bpp.lz" +gTrainerFrontPic_RSSailor:: @ 8E54294 + .incbin "graphics/trainers/front_pics/rs_sailor_front_pic.4bpp.lz" .align 2 -gFile_graphics_trainers_palettes_emerald_sailor:: @ 8E54644 - .incbin "graphics/trainers/palettes/emerald_sailor.gbapal.lz" +gTrainerPalette_RSSailor:: @ 8E54644 + .incbin "graphics/trainers/palettes/rs_sailor.gbapal.lz" .align 2 -gFile_graphics_trainers_front_pics_collector_front_pic:: @ 8E5466C +gTrainerFrontPic_Collector:: @ 8E5466C .incbin "graphics/trainers/front_pics/collector_front_pic.4bpp.lz" .align 2 -gFile_graphics_trainers_palettes_collector:: @ 8E54A70 +gTrainerPalette_Collector:: @ 8E54A70 .incbin "graphics/trainers/palettes/collector.gbapal.lz" .align 2 -gFile_graphics_trainers_front_pics_wally_front_pic:: @ 8E54A98 +gTrainerFrontPic_Wally:: @ 8E54A98 .incbin "graphics/trainers/front_pics/wally_front_pic.4bpp.lz" .align 2 -gFile_graphics_trainers_palettes_wally:: @ 8E54D68 +gTrainerPalette_Wally:: @ 8E54D68 .incbin "graphics/trainers/palettes/wally.gbapal.lz" .align 2 -gFile_graphics_trainers_front_pics_ruby_sapphire_brendan_front_pic:: @ 8E54D90 +gTrainerFrontPic_RSBrendan1:: @ 8E54D90 .incbin "graphics/trainers/front_pics/ruby_sapphire_brendan_front_pic.4bpp.lz" .align 2 -gFile_graphics_trainers_palettes_ruby_sapphire_brendan:: @ 8E550A4 +gTrainerPalette_RSBrendan1:: @ 8E550A4 .incbin "graphics/trainers/palettes/ruby_sapphire_brendan.gbapal.lz" .align 2 -gFile_graphics_trainers_front_pics_ruby_sapphire_may_front_pic:: @ 8E550CC +gTrainerFrontPic_RSMay1:: @ 8E550CC .incbin "graphics/trainers/front_pics/ruby_sapphire_may_front_pic.4bpp.lz" .align 2 -gFile_graphics_trainers_palettes_ruby_sapphire_may:: @ 8E553CC +gTrainerPalette_RSMay1:: @ 8E553CC .incbin "graphics/trainers/palettes/ruby_sapphire_may.gbapal.lz" .align 2 -gFile_graphics_trainers_front_pics_emerald_pokemon_breeder_m_front_pic:: @ 8E553F4 - .incbin "graphics/trainers/front_pics/emerald_pokemon_breeder_m_front_pic.4bpp.lz" +gTrainerFrontPic_PokemonBreederM:: @ 8E553F4 + .incbin "graphics/trainers/front_pics/pokemon_breeder_m_front_pic.4bpp.lz" .align 2 -gFile_graphics_trainers_palettes_emerald_pokemon_breeder_m:: @ 8E55724 - .incbin "graphics/trainers/palettes/emerald_pokemon_breeder_m.gbapal.lz" +gTrainerPalette_PokemonBreederM:: @ 8E55724 + .incbin "graphics/trainers/palettes/pokemon_breeder_m.gbapal.lz" .align 2 -gFile_graphics_trainers_front_pics_emerald_pokemon_breeder_f_front_pic:: @ 8E5574C - .incbin "graphics/trainers/front_pics/emerald_pokemon_breeder_f_front_pic.4bpp.lz" +gTrainerFrontPic_RSPokemonBreederF:: @ 8E5574C + .incbin "graphics/trainers/front_pics/rs_pokemon_breeder_f_front_pic.4bpp.lz" .align 2 -gFile_graphics_trainers_palettes_emerald_pokemon_breeder_f:: @ 8E55A80 - .incbin "graphics/trainers/palettes/emerald_pokemon_breeder_f.gbapal.lz" +gTrainerPalette_RSPokemonBreederF:: @ 8E55A80 + .incbin "graphics/trainers/palettes/rs_pokemon_breeder_f.gbapal.lz" .align 2 -gFile_graphics_trainers_front_pics_emerald_pokemon_ranger_m_front_pic:: @ 8E55AA8 - .incbin "graphics/trainers/front_pics/emerald_pokemon_ranger_m_front_pic.4bpp.lz" +gTrainerFrontPic_RSPokemonRangerM:: @ 8E55AA8 + .incbin "graphics/trainers/front_pics/rs_pokemon_ranger_m_front_pic.4bpp.lz" .align 2 -gFile_graphics_trainers_palettes_emerald_pokemon_ranger_m:: @ 8E55DF0 - .incbin "graphics/trainers/palettes/emerald_pokemon_ranger_m.gbapal.lz" +gTrainerPalette_RSPokemonRangerM:: @ 8E55DF0 + .incbin "graphics/trainers/palettes/rs_pokemon_ranger_m.gbapal.lz" .align 2 -gFile_graphics_trainers_front_pics_emerald_pokemon_ranger_f_front_pic:: @ 8E55E18 - .incbin "graphics/trainers/front_pics/emerald_pokemon_ranger_f_front_pic.4bpp.lz" +gTrainerFrontPic_RSPokemonRangerF:: @ 8E55E18 + .incbin "graphics/trainers/front_pics/rs_pokemon_ranger_f_front_pic.4bpp.lz" .align 2 -gFile_graphics_trainers_palettes_emerald_pokemon_ranger_f:: @ 8E5614C - .incbin "graphics/trainers/palettes/emerald_pokemon_ranger_f.gbapal.lz" +gTrainerPalette_RSPokemonRangerF:: @ 8E5614C + .incbin "graphics/trainers/palettes/rs_pokemon_ranger_f.gbapal.lz" .align 2 -gFile_graphics_trainers_front_pics_magma_leader_maxie_front_pic:: @ 8E56174 +gTrainerFrontPic_MagmaLeaderMaxie:: @ 8E56174 .incbin "graphics/trainers/front_pics/magma_leader_maxie_front_pic.4bpp.lz" .align 2 -gFile_graphics_trainers_palettes_magma_leader_maxie:: @ 8E56468 +gTrainerPalette_MagmaLeaderMaxie:: @ 8E56468 .incbin "graphics/trainers/palettes/magma_leader_maxie.gbapal.lz" .align 2 -gFile_graphics_trainers_front_pics_magma_grunt_m_front_pic:: @ 8E56490 +gTrainerFrontPic_MagmaGruntM:: @ 8E56490 .incbin "graphics/trainers/front_pics/magma_grunt_m_front_pic.4bpp.lz" .align 2 -gFile_graphics_trainers_palettes_magma_grunt_m:: @ 8E56810 +gTrainerPalette_MagmaGruntM:: @ 8E56810 .incbin "graphics/trainers/palettes/magma_grunt_m.gbapal.lz" .align 2 -gFile_graphics_trainers_front_pics_magma_grunt_f_front_pic:: @ 8E56838 +gTrainerFrontPic_MagmaGruntF:: @ 8E56838 .incbin "graphics/trainers/front_pics/magma_grunt_f_front_pic.4bpp.lz" .align 2 -gFile_graphics_trainers_palettes_magma_grunt_f:: @ 8E56BC4 +gTrainerPalette_MagmaGruntF:: @ 8E56BC4 .incbin "graphics/trainers/palettes/magma_grunt_f.gbapal.lz" .align 2 -gFile_graphics_trainers_front_pics_emerald_lass_front_pic:: @ 8E56BEC - .incbin "graphics/trainers/front_pics/emerald_lass_front_pic.4bpp.lz" +gTrainerFrontPic_RSLass:: @ 8E56BEC + .incbin "graphics/trainers/front_pics/rs_lass_front_pic.4bpp.lz" .align 2 -gFile_graphics_trainers_palettes_emerald_lass:: @ 8E56EC4 - .incbin "graphics/trainers/palettes/emerald_lass.gbapal.lz" +gTrainerPalette_RSLass:: @ 8E56EC4 + .incbin "graphics/trainers/palettes/rs_lass.gbapal.lz" .align 2 -gFile_graphics_trainers_front_pics_emerald_bug_catcher_front_pic:: @ 8E56EEC - .incbin "graphics/trainers/front_pics/emerald_bug_catcher_front_pic.4bpp.lz" +gTrainerFrontPic_RSBugCatcher:: @ 8E56EEC + .incbin "graphics/trainers/front_pics/rs_bug_catcher_front_pic.4bpp.lz" .align 2 -gFile_graphics_trainers_palettes_emerald_bug_catcher:: @ 8E57218 - .incbin "graphics/trainers/palettes/emerald_bug_catcher.gbapal.lz" +gTrainerPalette_RSBugCatcher:: @ 8E57218 + .incbin "graphics/trainers/palettes/rs_bug_catcher.gbapal.lz" .align 2 -gFile_graphics_trainers_front_pics_emerald_hiker_front_pic:: @ 8E57240 - .incbin "graphics/trainers/front_pics/emerald_hiker_front_pic.4bpp.lz" +gTrainerFrontPic_RSHiker:: @ 8E57240 + .incbin "graphics/trainers/front_pics/rs_hiker_front_pic.4bpp.lz" .align 2 -gFile_graphics_trainers_palettes_emerald_hiker:: @ 8E576C0 - .incbin "graphics/trainers/palettes/emerald_hiker.gbapal.lz" +gTrainerPalette_RSHiker:: @ 8E576C0 + .incbin "graphics/trainers/palettes/rs_hiker.gbapal.lz" .align 2 -gFile_graphics_trainers_front_pics_emerald_young_couple_front_pic:: @ 8E576E8 - .incbin "graphics/trainers/front_pics/emerald_young_couple_front_pic.4bpp.lz" +gTrainerFrontPic_RSYoungCouple:: @ 8E576E8 + .incbin "graphics/trainers/front_pics/rs_young_couple_front_pic.4bpp.lz" .align 2 -gFile_graphics_trainers_palettes_emerald_young_couple:: @ 8E57AA8 - .incbin "graphics/trainers/palettes/emerald_young_couple.gbapal.lz" +gTrainerPalette_RSYoungCouple:: @ 8E57AA8 + .incbin "graphics/trainers/palettes/rs_young_couple.gbapal.lz" .align 2 -gFile_graphics_trainers_front_pics_old_couple_front_pic:: @ 8E57AD0 +gTrainerFrontPic_OldCouple:: @ 8E57AD0 .incbin "graphics/trainers/front_pics/old_couple_front_pic.4bpp.lz" .align 2 -gFile_graphics_trainers_palettes_old_couple:: @ 8E57FE0 +gTrainerPalette_OldCouple:: @ 8E57FE0 .incbin "graphics/trainers/palettes/old_couple.gbapal.lz" .align 2 -gFile_graphics_trainers_front_pics_emerald_sis_and_bro_front_pic:: @ 8E58008 - .incbin "graphics/trainers/front_pics/emerald_sis_and_bro_front_pic.4bpp.lz" +gTrainerFrontPic_RSSisAndBro:: @ 8E58008 + .incbin "graphics/trainers/front_pics/rs_sis_and_bro_front_pic.4bpp.lz" .align 2 -gFile_graphics_trainers_palettes_emerald_sis_and_bro:: @ 8E58454 - .incbin "graphics/trainers/palettes/emerald_sis_and_bro.gbapal.lz" +gTrainerPalette_RSSisAndBro:: @ 8E58454 + .incbin "graphics/trainers/palettes/rs_sis_and_bro.gbapal.lz" .align 2 -gFile_graphics_trainers_front_pics_aqua_admin_m_front_pic:: @ 8E5847C +gTrainerFrontPic_AquaAdminM:: @ 8E5847C .incbin "graphics/trainers/front_pics/aqua_admin_m_front_pic.4bpp.lz" .align 2 -gFile_graphics_trainers_palettes_aqua_admin_m:: @ 8E58830 +gTrainerPalette_AquaAdminM:: @ 8E58830 .incbin "graphics/trainers/palettes/aqua_admin_m.gbapal.lz" .align 2 -gFile_graphics_trainers_front_pics_aqua_admin_f_front_pic:: @ 8E58858 +gTrainerFrontPic_AquaAdminF:: @ 8E58858 .incbin "graphics/trainers/front_pics/aqua_admin_f_front_pic.4bpp.lz" .align 2 -gFile_graphics_trainers_palettes_aqua_admin_f:: @ 8E58C1C +gTrainerPalette_AquaAdminF:: @ 8E58C1C .incbin "graphics/trainers/palettes/aqua_admin_f.gbapal.lz" .align 2 -gFile_graphics_trainers_front_pics_magma_admin_front_pic:: @ 8E58C44 - .incbin "graphics/trainers/front_pics/magma_admin_front_pic.4bpp.lz" +gTrainerFrontPic_MagmaAdminM:: @ 8E58C44 + .incbin "graphics/trainers/front_pics/magma_admin_m_front_pic.4bpp.lz" .align 2 -gFile_graphics_trainers_palettes_magma_admin:: @ 8E5901C - .incbin "graphics/trainers/palettes/magma_admin.gbapal.lz" +gTrainerPalette_MagmaAdminM:: @ 8E5901C + .incbin "graphics/trainers/palettes/magma_admin_m.gbapal.lz" .align 2 -gFile_graphics_trainers_front_pics_ruby_magma_admin_f_front_pic:: @ 8E59044 - .incbin "graphics/trainers/front_pics/ruby_magma_admin_f_front_pic.4bpp.lz" +gTrainerFrontPic_MagmaAdminF:: @ 8E59044 + .incbin "graphics/trainers/front_pics/magma_admin_f_front_pic.4bpp.lz" .align 2 -gFile_graphics_trainers_palettes_ruby_magma_admin_f:: @ 8E593F4 - .incbin "graphics/trainers/palettes/ruby_magma_admin_f.gbapal.lz" +gTrainerPalette_MagmaAdminF:: @ 8E593F4 + .incbin "graphics/trainers/palettes/magma_admin_f.gbapal.lz" .align 2 -gFile_graphics_trainers_front_pics_leader_wattson_front_pic:: @ 8E5941C +gTrainerFrontPic_LeaderWattson:: @ 8E5941C .incbin "graphics/trainers/front_pics/leader_wattson_front_pic.4bpp.lz" .align 2 -gFile_graphics_trainers_palettes_leader_wattson:: @ 8E59764 +gTrainerPalette_LeaderWattson:: @ 8E59764 .incbin "graphics/trainers/palettes/leader_wattson.gbapal.lz" .align 2 -gFile_graphics_trainers_front_pics_leader_flannery_front_pic:: @ 8E5978C +gTrainerFrontPic_LeaderFlannery:: @ 8E5978C .incbin "graphics/trainers/front_pics/leader_flannery_front_pic.4bpp.lz" .align 2 -gFile_graphics_trainers_palettes_leader_flannery:: @ 8E59B0C +gTrainerPalette_LeaderFlannery:: @ 8E59B0C .incbin "graphics/trainers/palettes/leader_flannery.gbapal.lz" .align 2 -gFile_graphics_trainers_front_pics_leader_norman_front_pic:: @ 8E59B34 +gTrainerFrontPic_LeaderNorman:: @ 8E59B34 .incbin "graphics/trainers/front_pics/leader_norman_front_pic.4bpp.lz" .align 2 -gFile_graphics_trainers_palettes_leader_norman:: @ 8E59E70 +gTrainerPalette_LeaderNorman:: @ 8E59E70 .incbin "graphics/trainers/palettes/leader_norman.gbapal.lz" .align 2 -gFile_graphics_trainers_front_pics_leader_winona_front_pic:: @ 8E59E98 +gTrainerFrontPic_LeaderWinona:: @ 8E59E98 .incbin "graphics/trainers/front_pics/leader_winona_front_pic.4bpp.lz" .align 2 -gFile_graphics_trainers_palettes_leader_winona:: @ 8E5A218 +gTrainerPalette_LeaderWinona:: @ 8E5A218 .incbin "graphics/trainers/palettes/leader_winona.gbapal.lz" .align 2 -gFile_graphics_trainers_front_pics_ruby_sapphire_champion_wallace_front_pic:: @ 8E5A240 - .incbin "graphics/trainers/front_pics/ruby_sapphire_champion_wallace_front_pic.4bpp.lz" +gTrainerFrontPic_LeaderWallace:: @ 8E5A240 + .incbin "graphics/trainers/front_pics/leader_wallace_front_pic.4bpp.lz" .align 2 -gFile_graphics_trainers_palettes_champion_wallace:: @ 8E5A5B8 - .incbin "graphics/trainers/palettes/champion_wallace.gbapal.lz" +gTrainerPalette_LeaderWallace:: @ 8E5A5B8 + .incbin "graphics/trainers/palettes/leader_wallace.gbapal.lz" .align 2 -gFile_graphics_trainers_front_pics_elite_four_glacia_front_pic:: @ 8E5A5E0 +gTrainerFrontPic_EliteFourGlacia:: @ 8E5A5E0 .incbin "graphics/trainers/front_pics/elite_four_glacia_front_pic.4bpp.lz" .align 2 -gFile_graphics_trainers_palettes_elite_four_glacia:: @ 8E5A964 +gTrainerPalette_EliteFourGlacia:: @ 8E5A964 .incbin "graphics/trainers/palettes/elite_four_glacia.gbapal.lz" .align 2 -gFile_graphics_trainers_front_pics_elite_four_drake_front_pic:: @ 8E5A98C +gTrainerFrontPic_EliteFourDrake:: @ 8E5A98C .incbin "graphics/trainers/front_pics/elite_four_drake_front_pic.4bpp.lz" .align 2 -gFile_graphics_trainers_palettes_elite_four_drake:: @ 8E5AD34 +gTrainerPalette_EliteFourDrake:: @ 8E5AD34 .incbin "graphics/trainers/palettes/elite_four_drake.gbapal.lz" .align 2 -gFile_graphics_trainers_front_pics_youngster_front_pic:: @ 8E5AD5C +gTrainerFrontPic_Youngster:: @ 8E5AD5C .incbin "graphics/trainers/front_pics/youngster_front_pic.4bpp.lz" .align 2 -gFile_graphics_trainers_palettes_youngster:: @ 8E5AFFC +gTrainerPalette_Youngster:: @ 8E5AFFC .incbin "graphics/trainers/palettes/youngster.gbapal.lz" .align 2 -gFile_graphics_trainers_front_pics_bug_catcher_front_pic:: @ 8E5B024 +gTrainerFrontPic_BugCatcher:: @ 8E5B024 .incbin "graphics/trainers/front_pics/bug_catcher_front_pic.4bpp.lz" .align 2 -gFile_graphics_trainers_palettes_bug_catcher:: @ 8E5B36C +gTrainerPalette_BugCatcher:: @ 8E5B36C .incbin "graphics/trainers/palettes/bug_catcher.gbapal.lz" .align 2 -gFile_graphics_trainers_front_pics_lass_front_pic:: @ 8E5B394 +gTrainerFrontPic_Lass:: @ 8E5B394 .incbin "graphics/trainers/front_pics/lass_front_pic.4bpp.lz" .align 2 -gFile_graphics_trainers_palettes_lass:: @ 8E5B680 +gTrainerPalette_Lass:: @ 8E5B680 .incbin "graphics/trainers/palettes/lass.gbapal.lz" .align 2 -gFile_graphics_trainers_front_pics_sailor_front_pic:: @ 8E5B6A8 +gTrainerFrontPic_Sailor:: @ 8E5B6A8 .incbin "graphics/trainers/front_pics/sailor_front_pic.4bpp.lz" .align 2 -gFile_graphics_trainers_palettes_sailor:: @ 8E5B9C8 +gTrainerPalette_Sailor:: @ 8E5B9C8 .incbin "graphics/trainers/palettes/sailor.gbapal.lz" .align 2 -gFile_graphics_trainers_front_pics_camper_front_pic:: @ 8E5B9F0 +gTrainerFrontPic_Camper:: @ 8E5B9F0 .incbin "graphics/trainers/front_pics/camper_front_pic.4bpp.lz" .align 2 -gFile_graphics_trainers_palettes_camper:: @ 8E5BCD0 +gTrainerPalette_Camper:: @ 8E5BCD0 .incbin "graphics/trainers/palettes/camper.gbapal.lz" .align 2 -gFile_graphics_trainers_front_pics_picnicker_front_pic:: @ 8E5BCF8 +gTrainerFrontPic_Picnicker:: @ 8E5BCF8 .incbin "graphics/trainers/front_pics/picnicker_front_pic.4bpp.lz" .align 2 -gFile_graphics_trainers_palettes_picnicker:: @ 8E5BFE0 +gTrainerPalette_Picnicker:: @ 8E5BFE0 .incbin "graphics/trainers/palettes/picnicker.gbapal.lz" .align 2 -gFile_graphics_trainers_front_pics_pokemaniac_front_pic:: @ 8E5C008 +gTrainerFrontPic_PokeManiac:: @ 8E5C008 .incbin "graphics/trainers/front_pics/pokemaniac_front_pic.4bpp.lz" .align 2 -gFile_graphics_trainers_palettes_pokemaniac:: @ 8E5C3C4 +gTrainerPalette_PokeManiac:: @ 8E5C3C4 .incbin "graphics/trainers/palettes/pokemaniac.gbapal.lz" .align 2 -gFile_graphics_trainers_front_pics_super_nerd_front_pic:: @ 8E5C3EC +gTrainerFrontPic_SuperNerd:: @ 8E5C3EC .incbin "graphics/trainers/front_pics/super_nerd_front_pic.4bpp.lz" .align 2 -gFile_graphics_trainers_palettes_super_nerd:: @ 8E5C704 +gTrainerPalette_SuperNerd:: @ 8E5C704 .incbin "graphics/trainers/palettes/super_nerd.gbapal.lz" .align 2 -gFile_graphics_trainers_front_pics_hiker_front_pic:: @ 8E5C72C +gTrainerFrontPic_Hiker:: @ 8E5C72C .incbin "graphics/trainers/front_pics/hiker_front_pic.4bpp.lz" .align 2 -gFile_graphics_trainers_palettes_hiker:: @ 8E5CB9C +gTrainerPalette_Hiker:: @ 8E5CB9C .incbin "graphics/trainers/palettes/hiker.gbapal.lz" .align 2 -gFile_graphics_trainers_front_pics_biker_front_pic:: @ 8E5CBC4 +gTrainerFrontPic_Biker:: @ 8E5CBC4 .incbin "graphics/trainers/front_pics/biker_front_pic.4bpp.lz" .align 2 -gFile_graphics_trainers_palettes_biker:: @ 8E5D12C +gTrainerPalette_Biker:: @ 8E5D12C .incbin "graphics/trainers/palettes/biker.gbapal.lz" .align 2 -gFile_graphics_trainers_front_pics_burglar_front_pic:: @ 8E5D154 +gTrainerFrontPic_Burglar:: @ 8E5D154 .incbin "graphics/trainers/front_pics/burglar_front_pic.4bpp.lz" .align 2 -gFile_graphics_trainers_palettes_burglar:: @ 8E5D4A0 +gTrainerPalette_Burglar:: @ 8E5D4A0 .incbin "graphics/trainers/palettes/burglar.gbapal.lz" .align 2 -gFile_graphics_trainers_front_pics_engineer_front_pic:: @ 8E5D4C8 +gTrainerFrontPic_Engineer:: @ 8E5D4C8 .incbin "graphics/trainers/front_pics/engineer_front_pic.4bpp.lz" .align 2 -gFile_graphics_trainers_palettes_engineer:: @ 8E5D8D4 +gTrainerPalette_Engineer:: @ 8E5D8D4 .incbin "graphics/trainers/palettes/engineer.gbapal.lz" .align 2 -gFile_graphics_trainers_front_pics_fisherman_front_pic:: @ 8E5D8FC +gTrainerFrontPic_Fisherman:: @ 8E5D8FC .incbin "graphics/trainers/front_pics/fisherman_front_pic.4bpp.lz" .align 2 -gFile_graphics_trainers_palettes_fisherman:: @ 8E5DCA8 +gTrainerPalette_Fisherman:: @ 8E5DCA8 .incbin "graphics/trainers/palettes/fisherman.gbapal.lz" .align 2 -gFile_graphics_trainers_front_pics_swimmer_m_front_pic:: @ 8E5DCD0 +gTrainerFrontPic_SwimmerM:: @ 8E5DCD0 .incbin "graphics/trainers/front_pics/swimmer_m_front_pic.4bpp.lz" .align 2 -gFile_graphics_trainers_palettes_swimmer_m:: @ 8E5DFA8 +gTrainerPalette_SwimmerM:: @ 8E5DFA8 .incbin "graphics/trainers/palettes/swimmer_m.gbapal.lz" .align 2 -gFile_graphics_trainers_front_pics_roughneck_front_pic:: @ 8E5DFD0 - .incbin "graphics/trainers/front_pics/roughneck_front_pic.4bpp.lz" +gTrainerFrontPic_CueBall:: @ 8E5DFD0 + .incbin "graphics/trainers/front_pics/cue_ball_front_pic.4bpp.lz" .align 2 -gFile_graphics_trainers_palettes_roughneck:: @ 8E5E598 - .incbin "graphics/trainers/palettes/roughneck.gbapal.lz" +gTrainerPalette_CueBall:: @ 8E5E598 + .incbin "graphics/trainers/palettes/cue_ball.gbapal.lz" .align 2 -gFile_graphics_trainers_front_pics_gamer_front_pic:: @ 8E5E5C0 +gTrainerFrontPic_Gamer:: @ 8E5E5C0 .incbin "graphics/trainers/front_pics/gamer_front_pic.4bpp.lz" .align 2 -gFile_graphics_trainers_palettes_gamer:: @ 8E5E954 +gTrainerPalette_Gamer:: @ 8E5E954 .incbin "graphics/trainers/palettes/gamer.gbapal.lz" .align 2 -gFile_graphics_trainers_front_pics_beauty_front_pic:: @ 8E5E97C +gTrainerFrontPic_Beauty:: @ 8E5E97C .incbin "graphics/trainers/front_pics/beauty_front_pic.4bpp.lz" .align 2 -gFile_graphics_trainers_palettes_beauty:: @ 8E5ECD8 +gTrainerPalette_Beauty:: @ 8E5ECD8 .incbin "graphics/trainers/palettes/beauty.gbapal.lz" .align 2 -gFile_graphics_trainers_front_pics_swimmer_f_front_pic:: @ 8E5ED00 +gTrainerFrontPic_SwimmerF:: @ 8E5ED00 .incbin "graphics/trainers/front_pics/swimmer_f_front_pic.4bpp.lz" .align 2 -gFile_graphics_trainers_palettes_swimmer_f:: @ 8E5EFEC +gTrainerPalette_SwimmerF:: @ 8E5EFEC .incbin "graphics/trainers/palettes/swimmer_f.gbapal.lz" .align 2 -gFile_graphics_trainers_front_pics_psychic_m_front_pic:: @ 8E5F014 +gTrainerFrontPic_PsychicM:: @ 8E5F014 .incbin "graphics/trainers/front_pics/psychic_m_front_pic.4bpp.lz" .align 2 -gFile_graphics_trainers_palettes_psychic_m:: @ 8E5F374 +gTrainerPalette_PsychicM:: @ 8E5F374 .incbin "graphics/trainers/palettes/psychic_m.gbapal.lz" .align 2 -gFile_graphics_trainers_front_pics_rocker_front_pic:: @ 8E5F39C +gTrainerFrontPic_Rocker:: @ 8E5F39C .incbin "graphics/trainers/front_pics/rocker_front_pic.4bpp.lz" .align 2 -gFile_graphics_trainers_palettes_rocker:: @ 8E5F7F8 +gTrainerPalette_Rocker:: @ 8E5F7F8 .incbin "graphics/trainers/palettes/rocker.gbapal.lz" .align 2 -gFile_graphics_trainers_front_pics_juggler_front_pic:: @ 8E5F820 +gTrainerFrontPic_Juggler:: @ 8E5F820 .incbin "graphics/trainers/front_pics/juggler_front_pic.4bpp.lz" .align 2 -gFile_graphics_trainers_palettes_juggler:: @ 8E5FC5C +gTrainerPalette_Juggler:: @ 8E5FC5C .incbin "graphics/trainers/palettes/juggler.gbapal.lz" .align 2 -gFile_graphics_trainers_front_pics_tamer_front_pic:: @ 8E5FC84 +gTrainerFrontPic_Tamer:: @ 8E5FC84 .incbin "graphics/trainers/front_pics/tamer_front_pic.4bpp.lz" .align 2 -gFile_graphics_trainers_palettes_tamer:: @ 8E60038 +gTrainerPalette_Tamer:: @ 8E60038 .incbin "graphics/trainers/palettes/tamer.gbapal.lz" .align 2 -gFile_graphics_trainers_front_pics_bird_keeper_front_pic:: @ 8E60060 +gTrainerFrontPic_BirdKeeper:: @ 8E60060 .incbin "graphics/trainers/front_pics/bird_keeper_front_pic.4bpp.lz" .align 2 -gFile_graphics_trainers_palettes_bird_keeper:: @ 8E60424 +gTrainerPalette_BirdKeeper:: @ 8E60424 .incbin "graphics/trainers/palettes/bird_keeper.gbapal.lz" .align 2 -gFile_graphics_trainers_front_pics_black_belt_front_pic:: @ 8E6044C +gTrainerFrontPic_BlackBelt:: @ 8E6044C .incbin "graphics/trainers/front_pics/black_belt_front_pic.4bpp.lz" .align 2 -gFile_graphics_trainers_palettes_black_belt:: @ 8E6086C +gTrainerPalette_BlackBelt:: @ 8E6086C .incbin "graphics/trainers/palettes/black_belt.gbapal.lz" .align 2 -gFile_graphics_trainers_front_pics_blue_1_front_pic:: @ 8E60894 - .incbin "graphics/trainers/front_pics/blue_1_front_pic.4bpp.lz" +gTrainerFrontPic_Rival1:: @ 8E60894 + .incbin "graphics/trainers/front_pics/rival_1_front_pic.4bpp.lz" .align 2 -gFile_graphics_trainers_palettes_blue_1:: @ 8E60B4C - .incbin "graphics/trainers/palettes/blue_1.gbapal.lz" +gTrainerPalette_Rival1:: @ 8E60B4C + .incbin "graphics/trainers/palettes/rival_1.gbapal.lz" .align 2 -gFile_graphics_trainers_front_pics_scientist_front_pic:: @ 8E60B74 +gTrainerFrontPic_Scientist:: @ 8E60B74 .incbin "graphics/trainers/front_pics/scientist_front_pic.4bpp.lz" .align 2 -gFile_graphics_trainers_palettes_scientist:: @ 8E60F50 +gTrainerPalette_Scientist:: @ 8E60F50 .incbin "graphics/trainers/palettes/scientist.gbapal.lz" .align 2 -gFile_graphics_trainers_front_pics_giovanni_front_pic:: @ 8E60F78 - .incbin "graphics/trainers/front_pics/giovanni_front_pic.4bpp.lz" +gTrainerFrontPic_LeaderGiovanni:: @ 8E60F78 + .incbin "graphics/trainers/front_pics/leader_giovanni_front_pic.4bpp.lz" .align 2 -gFile_graphics_trainers_palettes_giovanni:: @ 8E61288 - .incbin "graphics/trainers/palettes/giovanni.gbapal.lz" +gTrainerPalette_LeaderGiovanni:: @ 8E61288 + .incbin "graphics/trainers/palettes/leader_giovanni.gbapal.lz" .align 2 -gFile_graphics_trainers_front_pics_rocket_grunt_m_front_pic:: @ 8E612B0 +gTrainerFrontPic_RocketGruntM:: @ 8E612B0 .incbin "graphics/trainers/front_pics/rocket_grunt_m_front_pic.4bpp.lz" .align 2 -gFile_graphics_trainers_palettes_rocket_grunt_m:: @ 8E615E4 +gTrainerPalette_RocketGruntM:: @ 8E615E4 .incbin "graphics/trainers/palettes/rocket_grunt_m.gbapal.lz" .align 2 -gFile_graphics_trainers_front_pics_cool_trainer_m_front_pic:: @ 8E6160C +gTrainerFrontPic_CooltrainerM:: @ 8E6160C .incbin "graphics/trainers/front_pics/cool_trainer_m_front_pic.4bpp.lz" .align 2 -gFile_graphics_trainers_palettes_cool_trainer_m:: @ 8E618DC +gTrainerPalette_CooltrainerM:: @ 8E618DC .incbin "graphics/trainers/palettes/cool_trainer_m.gbapal.lz" .align 2 -gFile_graphics_trainers_front_pics_cool_trainer_f_front_pic:: @ 8E61904 +gTrainerFrontPic_CooltrainerF:: @ 8E61904 .incbin "graphics/trainers/front_pics/cool_trainer_f_front_pic.4bpp.lz" .align 2 -gFile_graphics_trainers_palettes_cool_trainer_f:: @ 8E61C1C +gTrainerPalette_CooltrainerF:: @ 8E61C1C .incbin "graphics/trainers/palettes/cool_trainer_f.gbapal.lz" .align 2 -gFile_graphics_trainers_front_pics_elite_four_lorelei_front_pic:: @ 8E61C44 +gTrainerFrontPic_EliteFourLorelei:: @ 8E61C44 .incbin "graphics/trainers/front_pics/elite_four_lorelei_front_pic.4bpp.lz" .align 2 -gFile_graphics_trainers_palettes_elite_four_lorelei:: @ 8E61F70 +gTrainerPalette_EliteFourLorelei:: @ 8E61F70 .incbin "graphics/trainers/palettes/elite_four_lorelei.gbapal.lz" .align 2 -gFile_graphics_trainers_front_pics_elite_four_bruno_front_pic:: @ 8E61F98 +gTrainerFrontPic_EliteFourBruno:: @ 8E61F98 .incbin "graphics/trainers/front_pics/elite_four_bruno_front_pic.4bpp.lz" .align 2 -gFile_graphics_trainers_palettes_elite_four_bruno:: @ 8E623E4 +gTrainerPalette_EliteFourBruno:: @ 8E623E4 .incbin "graphics/trainers/palettes/elite_four_bruno.gbapal.lz" .align 2 -gFile_graphics_trainers_front_pics_elite_four_agatha_front_pic:: @ 8E6240C +gTrainerFrontPic_EliteFourAgatha:: @ 8E6240C .incbin "graphics/trainers/front_pics/elite_four_agatha_front_pic.4bpp.lz" .align 2 -gFile_graphics_trainers_palettes_elite_four_agatha:: @ 8E62728 +gTrainerPalette_EliteFourAgatha:: @ 8E62728 .incbin "graphics/trainers/palettes/elite_four_agatha.gbapal.lz" .align 2 -gFile_graphics_trainers_front_pics_elite_four_lance_front_pic:: @ 8E62750 +gTrainerFrontPic_EliteFourLance:: @ 8E62750 .incbin "graphics/trainers/front_pics/elite_four_lance_front_pic.4bpp.lz" .align 2 -gFile_graphics_trainers_palettes_elite_four_lance:: @ 8E62B18 +gTrainerPalette_EliteFourLance:: @ 8E62B18 .incbin "graphics/trainers/palettes/elite_four_lance.gbapal.lz" .align 2 -gFile_graphics_trainers_front_pics_leader_brock_front_pic:: @ 8E62B40 +gTrainerFrontPic_LeaderBrock:: @ 8E62B40 .incbin "graphics/trainers/front_pics/leader_brock_front_pic.4bpp.lz" .align 2 -gFile_graphics_trainers_palettes_leader_brock:: @ 8E62E8C +gTrainerPalette_LeaderBrock:: @ 8E62E8C .incbin "graphics/trainers/palettes/leader_brock.gbapal.lz" .align 2 -gFile_graphics_trainers_front_pics_leader_misty_front_pic:: @ 8E62EB4 +gTrainerFrontPic_LeaderMisty:: @ 8E62EB4 .incbin "graphics/trainers/front_pics/leader_misty_front_pic.4bpp.lz" .align 2 -gFile_graphics_trainers_palettes_leader_misty:: @ 8E631B4 +gTrainerPalette_LeaderMisty:: @ 8E631B4 .incbin "graphics/trainers/palettes/leader_misty.gbapal.lz" .align 2 -gFile_graphics_trainers_front_pics_leader_lt_surge_front_pic:: @ 8E631DC +gTrainerFrontPic_LeaderLtSurge:: @ 8E631DC .incbin "graphics/trainers/front_pics/leader_lt_surge_front_pic.4bpp.lz" .align 2 -gFile_graphics_trainers_palettes_leader_lt_surge:: @ 8E6356C +gTrainerPalette_LeaderLtSurge:: @ 8E6356C .incbin "graphics/trainers/palettes/leader_lt_surge.gbapal.lz" .align 2 -gFile_graphics_trainers_front_pics_leader_erika_front_pic:: @ 8E63594 +gTrainerFrontPic_LeaderErika:: @ 8E63594 .incbin "graphics/trainers/front_pics/leader_erika_front_pic.4bpp.lz" .align 2 -gFile_graphics_trainers_palettes_leader_erika:: @ 8E63888 +gTrainerPalette_LeaderErika:: @ 8E63888 .incbin "graphics/trainers/palettes/leader_erika.gbapal.lz" .align 2 -gFile_graphics_trainers_front_pics_leader_koga_front_pic:: @ 8E638B0 +gTrainerFrontPic_LeaderKoga:: @ 8E638B0 .incbin "graphics/trainers/front_pics/leader_koga_front_pic.4bpp.lz" .align 2 -gFile_graphics_trainers_palettes_leader_koga:: @ 8E63C18 +gTrainerPalette_LeaderKoga:: @ 8E63C18 .incbin "graphics/trainers/palettes/leader_koga.gbapal.lz" .align 2 -gFile_graphics_trainers_front_pics_leader_blaine_front_pic:: @ 8E63C40 +gTrainerFrontPic_LeaderBlaine:: @ 8E63C40 .incbin "graphics/trainers/front_pics/leader_blaine_front_pic.4bpp.lz" .align 2 -gFile_graphics_trainers_palettes_leader_blaine:: @ 8E6404C +gTrainerPalette_LeaderBlaine:: @ 8E6404C .incbin "graphics/trainers/palettes/leader_blaine.gbapal.lz" .align 2 -gFile_graphics_trainers_front_pics_leader_sabrina_front_pic:: @ 8E64074 +gTrainerFrontPic_LeaderSabrina:: @ 8E64074 .incbin "graphics/trainers/front_pics/leader_sabrina_front_pic.4bpp.lz" .align 2 -gFile_graphics_trainers_palettes_leader_sabrina:: @ 8E6437C +gTrainerPalette_LeaderSabrina:: @ 8E6437C .incbin "graphics/trainers/palettes/leader_sabrina.gbapal.lz" .align 2 -gFile_graphics_trainers_front_pics_gentleman_front_pic:: @ 8E643A4 +gTrainerFrontPic_Gentleman:: @ 8E643A4 .incbin "graphics/trainers/front_pics/gentleman_front_pic.4bpp.lz" .align 2 -gFile_graphics_trainers_palettes_gentleman:: @ 8E646DC +gTrainerPalette_Gentleman:: @ 8E646DC .incbin "graphics/trainers/palettes/gentleman.gbapal.lz" .align 2 -gFile_graphics_trainers_front_pics_blue_2_front_pic:: @ 8E64704 - .incbin "graphics/trainers/front_pics/blue_2_front_pic.4bpp.lz" +gTrainerFrontPic_Rival2:: @ 8E64704 + .incbin "graphics/trainers/front_pics/rival_2_front_pic.4bpp.lz" .align 2 -gFile_graphics_trainers_palettes_blue_2:: @ 8E649F8 - .incbin "graphics/trainers/palettes/blue_2.gbapal.lz" +gTrainerPalette_Rival2:: @ 8E649F8 + .incbin "graphics/trainers/palettes/rival_2.gbapal.lz" .align 2 -gFile_graphics_trainers_front_pics_champion_blue_front_pic:: @ 8E64A20 - .incbin "graphics/trainers/front_pics/champion_blue_front_pic.4bpp.lz" +gTrainerFrontPic_ChampionRival:: @ 8E64A20 + .incbin "graphics/trainers/front_pics/champion_rival_front_pic.4bpp.lz" .align 2 -gFile_graphics_trainers_palettes_champion_blue:: @ 8E64D1C - .incbin "graphics/trainers/palettes/champion_blue.gbapal.lz" +gTrainerPalette_ChampionRival:: @ 8E64D1C + .incbin "graphics/trainers/palettes/champion_rival.gbapal.lz" .align 2 -gFile_graphics_trainers_front_pics_channeler_front_pic:: @ 8E64D44 +gTrainerFrontPic_Channeler:: @ 8E64D44 .incbin "graphics/trainers/front_pics/channeler_front_pic.4bpp.lz" .align 2 -gFile_graphics_trainers_palettes_channeler:: @ 8E6511C +gTrainerPalette_Channeler:: @ 8E6511C .incbin "graphics/trainers/palettes/channeler.gbapal.lz" .align 2 -gFile_graphics_trainers_front_pics_twins_front_pic:: @ 8E65144 +gTrainerFrontPic_Twins:: @ 8E65144 .incbin "graphics/trainers/front_pics/twins_front_pic.4bpp.lz" .align 2 -gFile_graphics_trainers_palettes_twins:: @ 8E65494 +gTrainerPalette_Twins:: @ 8E65494 .incbin "graphics/trainers/palettes/twins.gbapal.lz" .align 2 -gFile_graphics_trainers_front_pics_cool_couple_front_pic:: @ 8E654BC +gTrainerFrontPic_CoolCouple:: @ 8E654BC .incbin "graphics/trainers/front_pics/cool_couple_front_pic.4bpp.lz" .align 2 -gFile_graphics_trainers_palettes_cool_couple:: @ 8E6599C +gTrainerPalette_CoolCouple:: @ 8E6599C .incbin "graphics/trainers/palettes/cool_couple.gbapal.lz" .align 2 -gFile_graphics_trainers_front_pics_young_couple_front_pic:: @ 8E659C4 +gTrainerFrontPic_YoungCouple:: @ 8E659C4 .incbin "graphics/trainers/front_pics/young_couple_front_pic.4bpp.lz" .align 2 -gFile_graphics_trainers_palettes_young_couple:: @ 8E65E10 +gTrainerPalette_YoungCouple:: @ 8E65E10 .incbin "graphics/trainers/palettes/young_couple.gbapal.lz" .align 2 -gFile_graphics_trainers_front_pics_crush_kin_front_pic:: @ 8E65E38 +gTrainerFrontPic_CrushKin:: @ 8E65E38 .incbin "graphics/trainers/front_pics/crush_kin_front_pic.4bpp.lz" .align 2 -gFile_graphics_trainers_palettes_crush_kin:: @ 8E663D8 +gTrainerPalette_CrushKin:: @ 8E663D8 .incbin "graphics/trainers/palettes/crush_kin.gbapal.lz" .align 2 -gFile_graphics_trainers_front_pics_sis_and_bro_front_pic:: @ 8E66400 +gTrainerFrontPic_SisAndBro:: @ 8E66400 .incbin "graphics/trainers/front_pics/sis_and_bro_front_pic.4bpp.lz" .align 2 -gFile_graphics_trainers_palettes_sis_and_bro:: @ 8E66860 +gTrainerPalette_SisAndBro:: @ 8E66860 .incbin "graphics/trainers/palettes/sis_and_bro.gbapal.lz" .align 2 -gFile_graphics_trainers_front_pics_oak_front_pic:: @ 8E66888 - .incbin "graphics/trainers/front_pics/oak_front_pic.4bpp.lz" +gTrainerFrontPic_ProfessorOak:: @ 8E66888 + .incbin "graphics/trainers/front_pics/professor_oak_front_pic.4bpp.lz" .align 2 -gFile_graphics_trainers_palettes_oak:: @ 8E66BF4 - .incbin "graphics/trainers/palettes/oak.gbapal.lz" +gTrainerPalette_ProfessorOak:: @ 8E66BF4 + .incbin "graphics/trainers/palettes/professor_oak.gbapal.lz" .align 2 -gFile_graphics_trainers_front_pics_ruby_sapphire_brendan_front_pic2:: @ 8E66C1C +gTrainerFrontPic_RSBrendan2:: @ 8E66C1C .incbin "graphics/trainers/front_pics/ruby_sapphire_brendan_front_pic.4bpp.lz" .align 2 -gFile_graphics_trainers_palettes_ruby_sapphire_brendan2:: @ 8E66F30 +gTrainerPalette_RSBrendan2:: @ 8E66F30 .incbin "graphics/trainers/palettes/ruby_sapphire_brendan.gbapal.lz" .align 2 -gFile_graphics_trainers_front_pics_ruby_sapphire_may_front_pic2:: @ 8E66F58 +gTrainerFrontPic_RSMay2:: @ 8E66F58 .incbin "graphics/trainers/front_pics/ruby_sapphire_may_front_pic.4bpp.lz" .align 2 -gFile_graphics_trainers_palettes_ruby_sapphire_may2:: @ 8E67258 +gTrainerPalette_RSMay2:: @ 8E67258 .incbin "graphics/trainers/palettes/ruby_sapphire_may.gbapal.lz" .align 2 -gFile_graphics_trainers_front_pics_red_front_pic:: @ 8E67280 +gTrainerFrontPic_Red:: @ 8E67280 .incbin "graphics/trainers/front_pics/red_front_pic.4bpp.lz" .align 2 -gFile_graphics_trainers_palettes_red:: @ 8E6758C +gTrainerPalette_Red:: @ 8E6758C .incbin "graphics/trainers/palettes/red.gbapal.lz" .align 2 -gFile_graphics_trainers_front_pics_leaf_front_pic:: @ 8E675B4 +gTrainerFrontPic_Leaf:: @ 8E675B4 .incbin "graphics/trainers/front_pics/leaf_front_pic.4bpp.lz" .align 2 -gFile_graphics_trainers_palettes_leaf:: @ 8E678F0 +gTrainerPalette_Leaf:: @ 8E678F0 .incbin "graphics/trainers/palettes/leaf.gbapal.lz" .align 2 -gFile_graphics_trainers_front_pics_rocket_grunt_f_front_pic:: @ 8E67918 +gTrainerFrontPic_RocketGruntF:: @ 8E67918 .incbin "graphics/trainers/front_pics/rocket_grunt_f_front_pic.4bpp.lz" .align 2 -gFile_graphics_trainers_palettes_rocket_grunt_f:: @ 8E67C30 +gTrainerPalette_RocketGruntF:: @ 8E67C30 .incbin "graphics/trainers/palettes/rocket_grunt_f.gbapal.lz" .align 2 -gFile_graphics_trainers_front_pics_psychic_f_front_pic:: @ 8E67C58 +gTrainerFrontPic_PsychicF:: @ 8E67C58 .incbin "graphics/trainers/front_pics/psychic_f_front_pic.4bpp.lz" .align 2 -gFile_graphics_trainers_palettes_psychic_f:: @ 8E67FF8 +gTrainerPalette_PsychicF:: @ 8E67FF8 .incbin "graphics/trainers/palettes/psychic_f.gbapal.lz" .align 2 -gFile_graphics_trainers_front_pics_crush_girl_front_pic:: @ 8E68020 +gTrainerFrontPic_CrushGirl:: @ 8E68020 .incbin "graphics/trainers/front_pics/crush_girl_front_pic.4bpp.lz" .align 2 -gFile_graphics_trainers_palettes_crush_girl:: @ 8E6832C +gTrainerPalette_CrushGirl:: @ 8E6832C .incbin "graphics/trainers/palettes/crush_girl.gbapal.lz" .align 2 -gFile_graphics_trainers_front_pics_tuber_front_pic:: @ 8E68354 - .incbin "graphics/trainers/front_pics/tuber_front_pic.4bpp.lz" +gTrainerFrontPic_TuberF:: @ 8E68354 + .incbin "graphics/trainers/front_pics/tuber_f_front_pic.4bpp.lz" .align 2 -gFile_graphics_trainers_palettes_tuber:: @ 8E68658 - .incbin "graphics/trainers/palettes/tuber.gbapal.lz" +gTrainerPalette_TuberF:: @ 8E68658 + .incbin "graphics/trainers/palettes/tuber_f.gbapal.lz" .align 2 -gFile_graphics_trainers_front_pics_pokemon_breeder_front_pic:: @ 8E68680 - .incbin "graphics/trainers/front_pics/pokemon_breeder_front_pic.4bpp.lz" +gTrainerFrontPic_PokemonBreederF:: @ 8E68680 + .incbin "graphics/trainers/front_pics/pokemon_breeder_f_front_pic.4bpp.lz" .align 2 -gFile_graphics_trainers_palettes_pokemon_breeder:: @ 8E689C0 - .incbin "graphics/trainers/palettes/pokemon_breeder.gbapal.lz" +gTrainerPalette_PokemonBreederF:: @ 8E689C0 + .incbin "graphics/trainers/palettes/pokemon_breeder_f.gbapal.lz" .align 2 -gFile_graphics_trainers_front_pics_pokemon_ranger_m_front_pic:: @ 8E689E8 +gTrainerFrontPic_PokemonRangerM:: @ 8E689E8 .incbin "graphics/trainers/front_pics/pokemon_ranger_m_front_pic.4bpp.lz" .align 2 -gFile_graphics_trainers_palettes_pokemon_ranger_m:: @ 8E68D48 +gTrainerPalette_PokemonRangerM:: @ 8E68D48 .incbin "graphics/trainers/palettes/pokemon_ranger_m.gbapal.lz" .align 2 -gFile_graphics_trainers_front_pics_pokemon_ranger_f_front_pic:: @ 8E68D70 +gTrainerFrontPic_PokemonRangerF:: @ 8E68D70 .incbin "graphics/trainers/front_pics/pokemon_ranger_f_front_pic.4bpp.lz" .align 2 -gFile_graphics_trainers_palettes_pokemon_ranger_f:: @ 8E690A4 +gTrainerPalette_PokemonRangerF:: @ 8E690A4 .incbin "graphics/trainers/palettes/pokemon_ranger_f.gbapal.lz" .align 2 -gFile_graphics_trainers_front_pics_aroma_lady_front_pic:: @ 8E690CC +gTrainerFrontPic_AromaLady:: @ 8E690CC .incbin "graphics/trainers/front_pics/aroma_lady_front_pic.4bpp.lz" .align 2 -gFile_graphics_trainers_palettes_aroma_lady:: @ 8E6941C +gTrainerPalette_AromaLady:: @ 8E6941C .incbin "graphics/trainers/palettes/aroma_lady.gbapal.lz" .align 2 -gFile_graphics_trainers_front_pics_ruin_maniac_front_pic:: @ 8E69444 +gTrainerFrontPic_RuinManiac:: @ 8E69444 .incbin "graphics/trainers/front_pics/ruin_maniac_front_pic.4bpp.lz" .align 2 -gFile_graphics_trainers_palettes_ruin_maniac:: @ 8E69850 +gTrainerPalette_RuinManiac:: @ 8E69850 .incbin "graphics/trainers/palettes/ruin_maniac.gbapal.lz" .align 2 -gFile_graphics_trainers_front_pics_lady_front_pic:: @ 8E69878 +gTrainerFrontPic_Lady:: @ 8E69878 .incbin "graphics/trainers/front_pics/lady_front_pic.4bpp.lz" .align 2 -gFile_graphics_trainers_palettes_lady:: @ 8E69BA0 +gTrainerPalette_Lady:: @ 8E69BA0 .incbin "graphics/trainers/palettes/lady.gbapal.lz" .align 2 -gFile_graphics_trainers_front_pics_painter_front_pic:: @ 8E69BC8 +gTrainerFrontPic_Painter:: @ 8E69BC8 .incbin "graphics/trainers/front_pics/painter_front_pic.4bpp.lz" .align 2 -gFile_graphics_trainers_palettes_painter:: @ 8E69E94 +gTrainerPalette_Painter:: @ 8E69E94 .incbin "graphics/trainers/palettes/painter.gbapal.lz" .align 2 -gFile_graphics_trainers_back_pics_red_back_pic:: @ 8E69EBC +gTrainerBackPic_Red:: @ 8E69EBC .incbin "graphics/trainers/back_pics/red_back_pic.4bpp" .align 2 -gFile_graphics_trainers_back_pics_leaf_back_pic:: @ 8E6C6BC +gTrainerBackPic_Leaf:: @ 8E6C6BC .incbin "graphics/trainers/back_pics/leaf_back_pic.4bpp" .align 2 -gFile_graphics_trainers_back_pics_pokedude_back_pic:: @ 8E6EEBC +gTrainerBackPic_PokeDude:: @ 8E6EEBC .incbin "graphics/trainers/back_pics/pokedude_back_pic.4bpp" .align 2 -gFile_graphics_trainers_back_pics_old_man_back_pic:: @ 8E70EBC +gTrainerBackPic_OldMan:: @ 8E70EBC .incbin "graphics/trainers/back_pics/old_man_back_pic.4bpp" .align 2 -gFile_graphics_trainers_back_pics_ruby_sapphire_brendan_back_pic:: @ 8E72EBC +gTrainerBackPic_RSBrendan:: @ 8E72EBC .incbin "graphics/trainers/back_pics/ruby_sapphire_brendan_back_pic.4bpp" .align 2 -gFile_graphics_trainers_back_pics_ruby_sapphire_may_back_pic:: @ 8E74EBC +gTrainerBackPic_RSMay:: @ 8E74EBC .incbin "graphics/trainers/back_pics/ruby_sapphire_may_back_pic.4bpp" .align 2 -gFile_graphics_trainers_palettes_leaf_back_pic:: @ 8E76EBC +gTrainerPalette_RedBackPic:: @ 8E76EBC .incbin "graphics/trainers/palettes/leaf_back_pic.gbapal.lz" .align 2 -gFile_graphics_trainers_palettes_red_back_pic:: @ 8E76EE4 +gTrainerPalette_LeafBackPic:: @ 8E76EE4 .incbin "graphics/trainers/palettes/red_back_pic.gbapal.lz" .align 2 -gFile_graphics_trainers_palettes_pokedude_back_pic:: @ 8E76F0C +gTrainerPalette_PokeDudeBackPic:: @ 8E76F0C .incbin "graphics/trainers/palettes/pokedude_back_pic.gbapal.lz" .align 2 -gFile_graphics_trainers_palettes_old_man_back_pic:: @ 8E76F34 +gTrainerPalette_OldManBackPic:: @ 8E76F34 .incbin "graphics/trainers/palettes/old_man_back_pic.gbapal.lz" .align 2 -gFile_graphics_pokemon_icons_question_mark_icon:: @ 8E76F5C +gMonIcon_QuestionMark:: @ 8E76F5C .incbin "graphics/pokemon/question_mark/icon.4bpp" .align 2 -gFile_graphics_pokemon_footprints_question_mark_footprint:: @ 8E7735C +gMonFootprint_QuestionMark:: @ 8E7735C .incbin "graphics/pokemon/question_mark/footprint.1bpp" .align 2 @@ -13698,7 +13700,7 @@ gFile_graphics_battle_interface_ball_status_bar_sheet:: @ 8E7BB04 .incbin "graphics/battle_interface/ball_status_bar.4bpp.lz" .align 2 -gUnknown_8E7BBB8:: @ 8E7BB88 +gMonIcon_Egg:: @ 8E7BB88 .incbin "baserom.gba", 0xE7BB88, 0x400 @UNKNOWN .align 2 @@ -13938,13 +13940,13 @@ gUnknown_8E83604:: @ 8E83604 .incbin "baserom.gba", 0xE83604, 0x28 gUnknown_8E8362C:: @ 8E8362C - .incbin "baserom.gba", 0xE8362C, 0x790 + .incbin "graphics/interface/unk_8E8362C.4bpp.lz" gUnknown_8E83DBC:: @ 8E83DBC - .incbin "baserom.gba", 0xE83DBC, 0x7A4 + .incbin "graphics/interface/unk_8E83DBC.4bpp.lz" gUnknown_8E84560:: @ 8E84560 - .incbin "baserom.gba", 0xE84560, 0x28 + .incbin "graphics/interface/unk_8E84560.gbapal.lz" .align 2 gFile_graphics_interface_bag_swap_sheet:: @ 8E84588 @@ -15932,9 +15934,42 @@ gGhostPalette:: @ 8E93B14 gGhostFrontPic:: @ 8E93B38 .incbin "baserom.gba", 0xE93B38, 0x368 -gUnknown_8E93EA0:: @ 8E93EA0 - .incbin "baserom.gba", 0xE93EA0, 0x180 @UNKNOWN - +gFile_graphics_mail_orange_palette_pal:: @ 8E93EA0 + .incbin "graphics/mail/orange/palette.gbapal" + +gFile_graphics_mail_harbor_palette_pal:: @ 8E93EC0 + .incbin "graphics/mail/harbor/palette.gbapal" + +gFile_graphics_mail_glitter_palette_pal:: @ 8E93EE0 + .incbin "graphics/mail/glitter/palette.gbapal" + +gFile_graphics_mail_mech_palette_pal:: @ 8E93F00 + .incbin "graphics/mail/mech/palette.gbapal" + +gFile_graphics_mail_wood_palette_pal:: @ 8E93F20 + .incbin "graphics/mail/wood/palette.gbapal" + +gFile_graphics_mail_wave_palette_pal:: @ 8E93F40 + .incbin "graphics/mail/wave/palette.gbapal" + +gFile_graphics_mail_bead_palette_pal:: @ 8E93F60 + .incbin "graphics/mail/bead/palette.gbapal" + +gFile_graphics_mail_shadow_palette_pal:: @ 8E93F80 + .incbin "graphics/mail/shadow/palette.gbapal" + +gFile_graphics_mail_tropic_palette_pal:: @ 8E93FA0 + .incbin "graphics/mail/tropic/palette.gbapal" + +gFile_graphics_mail_dream_palette_pal:: @ 8E93FC0 + .incbin "graphics/mail/dream/palette.gbapal" + +gFile_graphics_mail_fab_palette_pal:: @ 8E93FE0 + .incbin "graphics/mail/fab/palette.gbapal" + +gFile_graphics_mail_retro_palette_pal:: @ 8E94000 + .incbin "graphics/mail/retro/palette.gbapal" + .align 2 gFile_graphics_mail_orange_tiles_sheet:: @ 8E94020 .incbin "graphics/mail/orange/tiles.4bpp.lz" @@ -16180,10 +16215,19 @@ gUnknown_8E9CBBC:: @ 8E9CBBC .incbin "baserom.gba", 0xE9CBBC, 0x320 @UNKNOWN gUnknown_8E9CEDC:: @ 8E9CEDC - .incbin "baserom.gba", 0xE9CEDC, 0x80 @UNKNOWN + .incbin "baserom.gba", 0xE9CEDC, 0x60 @UNKNOWN + +gUnknown_8E9CF3C:: + .incbin "baserom.gba", 0xE9CF3C, 0x20 @UNKNOWN gUnknown_8E9CF5C:: @ 8E9CF5C - .incbin "baserom.gba", 0xE9CF5C, 0x1AA0 @UNKNOWN + .incbin "baserom.gba", 0xE9CF5C, 0x1280 @UNKNOWN + +gUnknown_8E9E1DC:: + .incbin "baserom.gba", 0xE9E1DC, 0x800 @UNKNOWN + +gUnknown_8E9E9DC:: + .incbin "baserom.gba", 0xE9E9DC, 0x20 @UNKNOWN gUnknown_8E9E9FC:: @ 8E9E9FC .incbin "baserom.gba", 0xE9E9FC, 0x800 @UNKNOWN diff --git a/data/layouts/SevenIsland_SeavaultCanyon_TanobyKey/border.bin b/data/layouts/SevenIsland_SevaultCanyon_TanobyKey/border.bin similarity index 100% rename from data/layouts/SevenIsland_SeavaultCanyon_TanobyKey/border.bin rename to data/layouts/SevenIsland_SevaultCanyon_TanobyKey/border.bin diff --git a/data/layouts/SevenIsland_SeavaultCanyon_TanobyKey/map.bin b/data/layouts/SevenIsland_SevaultCanyon_TanobyKey/map.bin similarity index 100% rename from data/layouts/SevenIsland_SeavaultCanyon_TanobyKey/map.bin rename to data/layouts/SevenIsland_SevaultCanyon_TanobyKey/map.bin diff --git a/data/layouts/layouts.json b/data/layouts/layouts.json index 2f0942f7e..fbeee8c39 100644 --- a/data/layouts/layouts.json +++ b/data/layouts/layouts.json @@ -3620,7 +3620,7 @@ "blockdata_filepath": "data/layouts/ThreeIsland_DunsparceTunnel/map.bin" }, { - "id": "LAYOUT_UNUSED_LAYOUT_83453C0", + "id": "LAYOUT_THREE_ISLAND_DUNSPARCE_TUNNEL_2", "name": "UnusedLayout_83453C0_Layout", "width": 30, "height": 7, @@ -3884,16 +3884,16 @@ "blockdata_filepath": "data/layouts/SixIsland_AlteringCave/map.bin" }, { - "id": "LAYOUT_SEVEN_ISLAND_SEAVAULT_CANYON_TANOBY_KEY", - "name": "SevenIsland_SeavaultCanyon_TanobyKey_Layout", + "id": "LAYOUT_SEVEN_ISLAND_SEVAULT_CANYON_TANOBY_KEY", + "name": "SevenIsland_SevaultCanyon_TanobyKey_Layout", "width": 15, "height": 16, "border_width": 2, "border_height": 2, "primary_tileset": "gTileset_82D4A94", "secondary_tileset": "gTileset_82D4E0C", - "border_filepath": "data/layouts/SevenIsland_SeavaultCanyon_TanobyKey/border.bin", - "blockdata_filepath": "data/layouts/SevenIsland_SeavaultCanyon_TanobyKey/map.bin" + "border_filepath": "data/layouts/SevenIsland_SevaultCanyon_TanobyKey/border.bin", + "blockdata_filepath": "data/layouts/SevenIsland_SevaultCanyon_TanobyKey/map.bin" }, { "id": "LAYOUT_BIRTH_ISLAND_EXTERIOR", diff --git a/data/map_event_scripts.inc b/data/map_event_scripts.inc deleted file mode 100644 index 62a34d33c..000000000 --- a/data/map_event_scripts.inc +++ /dev/null @@ -1,4868 +0,0 @@ - - .include "data/maps/UnknownMap_00_00/scripts.inc" - .include "data/maps/UnknownMap_00_01/scripts.inc" - .include "data/maps/UnknownMap_00_02/scripts.inc" - .include "data/maps/UnknownMap_00_03/scripts.inc" - .include "data/maps/UnknownMap_00_04/scripts.inc" - .include "data/maps/ViridianForest/scripts.inc" - .include "data/maps/MtMoon_1F/scripts.inc" - .include "data/maps/MtMoon_B1F/scripts.inc" - .include "data/maps/MtMoon_B2F/scripts.inc" - .include "data/maps/SSAnne_Exterior/scripts.inc" - .include "data/maps/SSAnne_1F_Corridor/scripts.inc" - .include "data/maps/SSAnne_2F_Corridor/scripts.inc" - .include "data/maps/SSAnne_3F_Corridor/scripts.inc" - .include "data/maps/SSAnne_B1F_Corridor/scripts.inc" - .include "data/maps/SSAnne_Deck/scripts.inc" - .include "data/maps/SSAnne_Kitchen/scripts.inc" - .include "data/maps/SSAnne_CaptainsOffice/scripts.inc" - .include "data/maps/SSAnne_1F_Room1/scripts.inc" - .include "data/maps/SSAnne_1F_Room2/scripts.inc" - .include "data/maps/SSAnne_1F_Room3/scripts.inc" - .include "data/maps/SSAnne_1F_Room4/scripts.inc" - .include "data/maps/SSAnne_1F_Room5/scripts.inc" - .include "data/maps/SSAnne_1F_Room7/scripts.inc" - .include "data/maps/SSAnne_2F_Room1/scripts.inc" - .include "data/maps/SSAnne_2F_Room2/scripts.inc" - .include "data/maps/SSAnne_2F_Room3/scripts.inc" - .include "data/maps/SSAnne_2F_Room4/scripts.inc" - .include "data/maps/SSAnne_2F_Room5/scripts.inc" - .include "data/maps/SSAnne_2F_Room6/scripts.inc" - .include "data/maps/SSAnne_B1F_Room1/scripts.inc" - .include "data/maps/SSAnne_B1F_Room2/scripts.inc" - .include "data/maps/SSAnne_B1F_Room3/scripts.inc" - .include "data/maps/SSAnne_B1F_Room4/scripts.inc" - .include "data/maps/SSAnne_B1F_Room5/scripts.inc" - .include "data/maps/SSAnne_1F_Room6/scripts.inc" - .include "data/maps/UndergroundPath_NorthEntrance/scripts.inc" - .include "data/maps/UndergroundPath_NorthSouthTunnel/scripts.inc" - .include "data/maps/UndergroundPath_SouthEntrance/scripts.inc" - .include "data/maps/UndergroundPath_WestEntrance/scripts.inc" - .include "data/maps/UndergroundPath_EastWestTunnel/scripts.inc" - .include "data/maps/UndergroundPath_EastEntrance/scripts.inc" - .include "data/maps/DiglettsCave_NorthEntrance/scripts.inc" - .include "data/maps/DiglettsCave_B1F/scripts.inc" - .include "data/maps/DiglettsCave_SouthEntrance/scripts.inc" - .include "data/maps/VictoryRoad_1F/scripts.inc" - .include "data/maps/VictoryRoad_2F/scripts.inc" - .include "data/maps/VictoryRoad_3F/scripts.inc" - .include "data/maps/RocketHideout_B1F/scripts.inc" - .include "data/maps/RocketHideout_B2F/scripts.inc" - .include "data/maps/RocketHideout_B3F/scripts.inc" - .include "data/maps/RocketHideout_B4F/scripts.inc" - .include "data/maps/RocketHideout_Elevator/scripts.inc" - .include "data/maps/SilphCo_1F/scripts.inc" - .include "data/maps/SilphCo_2F/scripts.inc" - .include "data/maps/SilphCo_3F/scripts.inc" - .include "data/maps/SilphCo_4F/scripts.inc" - .include "data/maps/SilphCo_5F/scripts.inc" - .include "data/maps/SilphCo_6F/scripts.inc" - .include "data/maps/SilphCo_7F/scripts.inc" - .include "data/maps/SilphCo_8F/scripts.inc" - .include "data/maps/SilphCo_9F/scripts.inc" - .include "data/maps/SilphCo_10F/scripts.inc" - .include "data/maps/SilphCo_11F/scripts.inc" - .include "data/maps/SilphCo_Elevator/scripts.inc" - .include "data/maps/PokemonMansion_1F/scripts.inc" - .include "data/maps/PokemonMansion_2F/scripts.inc" - .include "data/maps/PokemonMansion_3F/scripts.inc" - .include "data/maps/PokemonMansion_B1F/scripts.inc" - .include "data/maps/SafariZone_Center/scripts.inc" - .include "data/maps/SafariZone_East/scripts.inc" - .include "data/maps/SafariZone_North/scripts.inc" - .include "data/maps/SafariZone_West/scripts.inc" - .include "data/maps/SafariZone_Building1/scripts.inc" - .include "data/maps/SafariZone_Building2/scripts.inc" - .include "data/maps/SafariZone_Building3/scripts.inc" - .include "data/maps/SafariZone_Building4/scripts.inc" - .include "data/maps/SafariZone_SecretHouse/scripts.inc" - .include "data/maps/CeruleanCave_1F/scripts.inc" - .include "data/maps/CeruleanCave_2F/scripts.inc" - .include "data/maps/CeruleanCave_B1F/scripts.inc" - .include "data/maps/PokemonLeague_LoreleisRoom/scripts.inc" - .include "data/maps/PokemonLeague_BrunosRoom/scripts.inc" - .include "data/maps/PokemonLeague_AgathasRoom/scripts.inc" - .include "data/maps/PokemonLeague_LancesRoom/scripts.inc" - .include "data/maps/PokemonLeague_ChampionsRoom/scripts.inc" - .include "data/maps/PokemonLeague_HallOfFame/scripts.inc" - .include "data/maps/RockTunnel_1F/scripts.inc" - .include "data/maps/RockTunnel_B1F/scripts.inc" - .include "data/maps/SeafoamIslands_1F/scripts.inc" - .include "data/maps/SeafoamIslands_B1F/scripts.inc" - .include "data/maps/SeafoamIslands_B2F/scripts.inc" - .include "data/maps/SeafoamIslands_B3F/scripts.inc" - .include "data/maps/SeafoamIslands_B4F/scripts.inc" - .include "data/maps/PokemonTower_1F/scripts.inc" - .include "data/maps/PokemonTower_2F/scripts.inc" - .include "data/maps/PokemonTower_3F/scripts.inc" - .include "data/maps/PokemonTower_4F/scripts.inc" - .include "data/maps/PokemonTower_5F/scripts.inc" - .include "data/maps/PokemonTower_6F/scripts.inc" - .include "data/maps/PokemonTower_7F/scripts.inc" - .include "data/maps/PowerPlant/scripts.inc" - .include "data/maps/MtEmber_RubyPath_B4F/scripts.inc" - .include "data/maps/MtEmber_Exterior/scripts.inc" - .include "data/maps/MtEmber_SummitPath_1F/scripts.inc" - .include "data/maps/MtEmber_SummitPath_2F/scripts.inc" - .include "data/maps/MtEmber_SummitPath_3F/scripts.inc" - .include "data/maps/MtEmber_Summit/scripts.inc" - .include "data/maps/MtEmber_RubyPath_B5F/scripts.inc" - .include "data/maps/MtEmber_RubyPath_1F/scripts.inc" - .include "data/maps/MtEmber_RubyPath_B1F/scripts.inc" - .include "data/maps/MtEmber_RubyPath_B2F/scripts.inc" - .include "data/maps/MtEmber_RubyPath_B3F/scripts.inc" - .include "data/maps/MtEmber_RubyPath_B1F_Stairs/scripts.inc" - .include "data/maps/MtEmber_RubyPath_B2F_Stairs/scripts.inc" - .include "data/maps/ThreeIsland_BerryForest/scripts.inc" - .include "data/maps/FourIsland_IcefallCave_Entrance/scripts.inc" - .include "data/maps/FourIsland_IcefallCave_1F/scripts.inc" - .include "data/maps/FourIsland_IcefallCave_B1F/scripts.inc" - .include "data/maps/FourIsland_IcefallCave_Back/scripts.inc" - .include "data/maps/FiveIsland_RocketWarehouse/scripts.inc" - .include "data/maps/SixIsland_DottedHole_1F/scripts.inc" - .include "data/maps/SixIsland_DottedHole_B1F/scripts.inc" - .include "data/maps/SixIsland_DottedHole_B2F/scripts.inc" - .include "data/maps/SixIsland_DottedHole_B3F/scripts.inc" - .include "data/maps/SixIsland_DottedHole_B4F/scripts.inc" - .include "data/maps/SixIsland_DottedHole_SapphireRoom/scripts.inc" - .include "data/maps/SixIsland_PatternBush/scripts.inc" - .include "data/maps/SixIsland_AlteringCave/scripts.inc" - .include "data/maps/NavelRock_Exterior/scripts.inc" - .include "data/maps/SevenIsland_TrainerTower_1F/scripts.inc" - .include "data/maps/SevenIsland_TrainerTower_2F/scripts.inc" - .include "data/maps/SevenIsland_TrainerTower_3F/scripts.inc" - .include "data/maps/SevenIsland_TrainerTower_4F/scripts.inc" - .include "data/maps/SevenIsland_TrainerTower_5F/scripts.inc" - .include "data/maps/SevenIsland_TrainerTower_6F/scripts.inc" - .include "data/maps/SevenIsland_TrainerTower_7F/scripts.inc" - .include "data/maps/SevenIsland_TrainerTower_8F/scripts.inc" - .include "data/maps/SevenIsland_TrainerTower_Roof/scripts.inc" - .include "data/maps/SevenIsland_TrainerTower_Lobby/scripts.inc" - .include "data/maps/SevenIsland_TrainerTower_Elevator/scripts.inc" - .include "data/maps/FiveIsland_LostCave_Entrance/scripts.inc" - .include "data/maps/FiveIsland_LostCave_Room1/scripts.inc" - .include "data/maps/FiveIsland_LostCave_Room2/scripts.inc" - .include "data/maps/FiveIsland_LostCave_Room3/scripts.inc" - .include "data/maps/FiveIsland_LostCave_Room4/scripts.inc" - .include "data/maps/FiveIsland_LostCave_Room5/scripts.inc" - .include "data/maps/FiveIsland_LostCave_Room6/scripts.inc" - .include "data/maps/FiveIsland_LostCave_Room7/scripts.inc" - .include "data/maps/FiveIsland_LostCave_Room8/scripts.inc" - .include "data/maps/FiveIsland_LostCave_Room9/scripts.inc" - .include "data/maps/FiveIsland_LostCave_Room10/scripts.inc" - .include "data/maps/FiveIsland_LostCave_Room11/scripts.inc" - .include "data/maps/FiveIsland_LostCave_Room12/scripts.inc" - .include "data/maps/FiveIsland_LostCave_Room13/scripts.inc" - .include "data/maps/FiveIsland_LostCave_Room14/scripts.inc" - .include "data/maps/SevenIsland_TanobyRuins_MoneanChamber/scripts.inc" - .include "data/maps/SevenIsland_TanobyRuins_LiptooChamber/scripts.inc" - .include "data/maps/SevenIsland_TanobyRuins_WeepthChamber/scripts.inc" - .include "data/maps/SevenIsland_TanobyRuins_DilfordChamber/scripts.inc" - .include "data/maps/SevenIsland_TanobyRuins_ScufibChamber/scripts.inc" - .include "data/maps/SevenIsland_TanobyRuins_RixyChamber/scripts.inc" - .include "data/maps/SevenIsland_TanobyRuins_ViapoisChamber/scripts.inc" - .include "data/maps/ThreeIsland_DunsparceTunnel/scripts.inc" - .include "data/maps/SevenIsland_SeavaultCanyon_TanobyKey/scripts.inc" - .include "data/maps/NavelRock_1F/scripts.inc" - .include "data/maps/NavelRock_Summit/scripts.inc" - .include "data/maps/NavelRock_Base/scripts.inc" - .include "data/maps/NavelRock_SummitPath_2F/scripts.inc" - .include "data/maps/NavelRock_SummitPath_3F/scripts.inc" - .include "data/maps/NavelRock_SummitPath_4F/scripts.inc" - .include "data/maps/NavelRock_SummitPath_5F/scripts.inc" - .include "data/maps/NavelRock_BasePath_B1F/scripts.inc" - .include "data/maps/NavelRock_BasePath_B2F/scripts.inc" - .include "data/maps/NavelRock_BasePath_B3F/scripts.inc" - .include "data/maps/NavelRock_BasePath_B4F/scripts.inc" - .include "data/maps/NavelRock_BasePath_B5F/scripts.inc" - .include "data/maps/NavelRock_BasePath_B6F/scripts.inc" - .include "data/maps/NavelRock_BasePath_B7F/scripts.inc" - .include "data/maps/NavelRock_BasePath_B8F/scripts.inc" - .include "data/maps/NavelRock_BasePath_B9F/scripts.inc" - .include "data/maps/NavelRock_BasePath_B10F/scripts.inc" - .include "data/maps/NavelRock_BasePath_B11F/scripts.inc" - .include "data/maps/NavelRock_B1F/scripts.inc" - .include "data/maps/NavelRock_Fork/scripts.inc" - .include "data/maps/BirthIsland_Exterior/scripts.inc" - .include "data/maps/OneIsland_KindleRoad_EmberSpa/scripts.inc" - .include "data/maps/BirthIsland_Harbor/scripts.inc" - .include "data/maps/PalletTown/scripts.inc" - .include "data/maps/ViridianCity/scripts.inc" - .include "data/maps/PewterCity/scripts.inc" - .include "data/maps/CeruleanCity/scripts.inc" - .include "data/maps/LavenderTown/scripts.inc" - .include "data/maps/VermilionCity/scripts.inc" - .include "data/maps/CeladonCity/scripts.inc" - .include "data/maps/FuchsiaCity/scripts.inc" - .include "data/maps/CinnabarIsland/scripts.inc" - .include "data/maps/IndigoPlateau_Exterior/scripts.inc" - .include "data/maps/SaffronCity/scripts.inc" - .include "data/maps/SaffronCity_Classic/scripts.inc" - .include "data/maps/OneIsland/scripts.inc" - .include "data/maps/TwoIsland/scripts.inc" - .include "data/maps/ThreeIsland/scripts.inc" - .include "data/maps/FourIsland/scripts.inc" - .include "data/maps/FiveIsland/scripts.inc" - .include "data/maps/SevenIsland/scripts.inc" - .include "data/maps/SixIsland/scripts.inc" - .include "data/maps/Route1/scripts.inc" - .include "data/maps/Route2/scripts.inc" - .include "data/maps/Route3/scripts.inc" - .include "data/maps/Route4/scripts.inc" - .include "data/maps/Route5/scripts.inc" - .include "data/maps/Route6/scripts.inc" - .include "data/maps/Route7/scripts.inc" - .include "data/maps/Route8/scripts.inc" - .include "data/maps/Route9/scripts.inc" - .include "data/maps/Route10/scripts.inc" - .include "data/maps/Route11/scripts.inc" - .include "data/maps/Route12/scripts.inc" - .include "data/maps/Route13/scripts.inc" - .include "data/maps/Route14/scripts.inc" - .include "data/maps/Route15/scripts.inc" - .include "data/maps/Route16/scripts.inc" - .include "data/maps/Route17/scripts.inc" - .include "data/maps/Route18/scripts.inc" - .include "data/maps/Route19/scripts.inc" - .include "data/maps/Route20/scripts.inc" - .include "data/maps/Route21_North/scripts.inc" - .include "data/maps/Route21_South/scripts.inc" - .include "data/maps/Route22/scripts.inc" - .include "data/maps/Route23/scripts.inc" - .include "data/maps/Route24/scripts.inc" - .include "data/maps/Route25/scripts.inc" - .include "data/maps/OneIsland_KindleRoad/scripts.inc" - .include "data/maps/OneIsland_TreasureBeach/scripts.inc" - .include "data/maps/TwoIsland_CapeBrink/scripts.inc" - .include "data/maps/ThreeIsland_BondBridge/scripts.inc" - .include "data/maps/ThreeIsland_Port/scripts.inc" - .include "data/maps/UnknownMap_03_50/scripts.inc" - .include "data/maps/UnknownMap_03_51/scripts.inc" - .include "data/maps/UnknownMap_03_52/scripts.inc" - .include "data/maps/UnknownMap_03_53/scripts.inc" - .include "data/maps/FiveIsland_ResortGorgeous/scripts.inc" - .include "data/maps/FiveIsland_WaterLabyrinth/scripts.inc" - .include "data/maps/FiveIsland_Meadow/scripts.inc" - .include "data/maps/FiveIsland_MemorialPillar/scripts.inc" - .include "data/maps/SixIsland_OutcastIsland/scripts.inc" - .include "data/maps/SixIsland_GreenPath/scripts.inc" - .include "data/maps/SixIsland_WaterPath/scripts.inc" - .include "data/maps/SixIsland_RuinValley/scripts.inc" - .include "data/maps/SevenIsland_TrainerTower/scripts.inc" - .include "data/maps/SevenIsland_SevaultCanyon_Entrance/scripts.inc" - .include "data/maps/SevenIsland_SevaultCanyon/scripts.inc" - .include "data/maps/SevenIsland_TanobyRuins/scripts.inc" - .include "data/maps/PalletTown_PlayersHouse_1F/scripts.inc" - .include "data/maps/PalletTown_PlayersHouse_2F/scripts.inc" - .include "data/maps/PalletTown_GarysHouse/scripts.inc" - .include "data/maps/PalletTown_ProfessorOaksLab/scripts.inc" - .include "data/maps/ViridianCity_House1/scripts.inc" - .include "data/maps/ViridianCity_Gym/scripts.inc" - .include "data/maps/ViridianCity_House2/scripts.inc" - .include "data/maps/ViridianCity_Mart/scripts.inc" - .include "data/maps/ViridianCity_PokemonCenter_1F/scripts.inc" - .include "data/maps/ViridianCity_PokemonCenter_2F/scripts.inc" - .include "data/maps/PewterCity_Museum_1F/scripts.inc" - .include "data/maps/PewterCity_Museum_2F/scripts.inc" - .include "data/maps/PewterCity_Gym/scripts.inc" - .include "data/maps/PewterCity_Mart/scripts.inc" - .include "data/maps/PewterCity_House1/scripts.inc" - .include "data/maps/PewterCity_PokemonCenter_1F/scripts.inc" - .include "data/maps/PewterCity_PokemonCenter_2F/scripts.inc" - .include "data/maps/PewterCity_House2/scripts.inc" - .include "data/maps/CeruleanCity_House1/scripts.inc" - .include "data/maps/CeruleanCity_House2/scripts.inc" - .include "data/maps/CeruleanCity_House3/scripts.inc" - .include "data/maps/CeruleanCity_PokemonCenter_1F/scripts.inc" - .include "data/maps/CeruleanCity_PokemonCenter_2F/scripts.inc" - .include "data/maps/CeruleanCity_Gym/scripts.inc" - .include "data/maps/CeruleanCity_BikeShop/scripts.inc" - .include "data/maps/CeruleanCity_Mart/scripts.inc" - .include "data/maps/CeruleanCity_House4/scripts.inc" - .include "data/maps/CeruleanCity_House5/scripts.inc" - .include "data/maps/LavenderTown_PokemonCenter_1F/scripts.inc" - .include "data/maps/LavenderTown_PokemonCenter_2F/scripts.inc" - .include "data/maps/LavenderTown_VolunteerPokemonHouse/scripts.inc" - .include "data/maps/LavenderTown_House1/scripts.inc" - .include "data/maps/LavenderTown_House2/scripts.inc" - .include "data/maps/LavenderTown_Mart/scripts.inc" - .include "data/maps/VermilionCity_House1/scripts.inc" - .include "data/maps/VermilionCity_PokemonCenter_1F/scripts.inc" - .include "data/maps/VermilionCity_PokemonCenter_2F/scripts.inc" - .include "data/maps/VermilionCity_PokemonFanClub/scripts.inc" - .include "data/maps/VermilionCity_Mart/scripts.inc" - .include "data/maps/VermilionCity_Gym/scripts.inc" - .include "data/maps/VermilionCity_House3/scripts.inc" - .include "data/maps/CeladonCity_DepartmentStore_1F/scripts.inc" - .include "data/maps/CeladonCity_DepartmentStore_2F/scripts.inc" - .include "data/maps/CeladonCity_DepartmentStore_3F/scripts.inc" - .include "data/maps/CeladonCity_DepartmentStore_4F/scripts.inc" - .include "data/maps/CeladonCity_DepartmentStore_5F/scripts.inc" - .include "data/maps/CeladonCity_DepartmentStore_Roof/scripts.inc" - .include "data/maps/CeladonCity_DepartmentStore_Elevator/scripts.inc" - .include "data/maps/CeladonCity_Condominiums_1F/scripts.inc" - .include "data/maps/CeladonCity_Condominiums_2F/scripts.inc" - .include "data/maps/CeladonCity_Condominiums_3F/scripts.inc" - .include "data/maps/CeladonCity_Condominiums_Roof/scripts.inc" - .include "data/maps/CeladonCity_Condominiums_RoofRoom/scripts.inc" - .include "data/maps/CeladonCity_PokemonCenter_1F/scripts.inc" - .include "data/maps/CeladonCity_PokemonCenter_2F/scripts.inc" - .include "data/maps/CeladonCity_GameCorner/scripts.inc" - .include "data/maps/CeladonCity_GameCorner_PrizeRoom/scripts.inc" - .include "data/maps/CeladonCity_Gym/scripts.inc" - .include "data/maps/CeladonCity_Restaurant/scripts.inc" - .include "data/maps/CeladonCity_House1/scripts.inc" - .include "data/maps/CeladonCity_Hotel/scripts.inc" - .include "data/maps/FuchsiaCity_SafariZone_Entrance/scripts.inc" - .include "data/maps/FuchsiaCity_Mart/scripts.inc" - .include "data/maps/FuchsiaCity_ZooBuilding/scripts.inc" - .include "data/maps/FuchsiaCity_Gym/scripts.inc" - .include "data/maps/FuchsiaCity_House1/scripts.inc" - .include "data/maps/FuchsiaCity_PokemonCenter_1F/scripts.inc" - .include "data/maps/FuchsiaCity_PokemonCenter_2F/scripts.inc" - .include "data/maps/FuchsiaCity_Building1/scripts.inc" - .include "data/maps/FuchsiaCity_House2/scripts.inc" - .include "data/maps/FuchsiaCity_House3/scripts.inc" - .include "data/maps/CinnabarIsland_Gym/scripts.inc" - .include "data/maps/CinnabarIsland_PokemonLab_Entrance/scripts.inc" - .include "data/maps/CinnabarIsland_PokemonLab_Lounge/scripts.inc" - .include "data/maps/CinnabarIsland_PokemonLab_ResearchRoom/scripts.inc" - .include "data/maps/CinnabarIsland_PokemonLab_ExperimentRoom/scripts.inc" - .include "data/maps/CinnabarIsland_PokemonCenter_1F/scripts.inc" - .include "data/maps/CinnabarIsland_PokemonCenter_2F/scripts.inc" - .include "data/maps/CinnabarIsland_Mart/scripts.inc" - .include "data/maps/IndigoPlateau_PokemonCenter_1F/scripts.inc" - .include "data/maps/IndigoPlateau_PokemonCenter_2F/scripts.inc" - .include "data/maps/SaffronCity_House1_1F/scripts.inc" - .include "data/maps/SaffronCity_House1_2F/scripts.inc" - .include "data/maps/SaffronCity_Dojo/scripts.inc" - .include "data/maps/SaffronCity_Gym/scripts.inc" - .include "data/maps/SaffronCity_House2/scripts.inc" - .include "data/maps/SaffronCity_Mart/scripts.inc" - .include "data/maps/SaffronCity_PokemonCenter_1F/scripts.inc" - .include "data/maps/SaffronCity_PokemonCenter_2F/scripts.inc" - .include "data/maps/SaffronCity_House3/scripts.inc" - .include "data/maps/SaffronCity_PokemonTrainerFanClub/scripts.inc" - .include "data/maps/Route2_ViridianForest_SouthEntrance/scripts.inc" - .include "data/maps/Route2_House/scripts.inc" - .include "data/maps/Route2_EastBuilding/scripts.inc" - .include "data/maps/Route2_ViridianForest_NorthEntrance/scripts.inc" - .include "data/maps/Route4_PokemonCenter_1F/scripts.inc" - .include "data/maps/Route4_PokemonCenter_2F/scripts.inc" - .include "data/maps/Route5_PokemonDayCare/scripts.inc" - .include "data/maps/Route5_SouthEntrance/scripts.inc" - .include "data/maps/Route6_NorthEntrance/scripts.inc" - .include "data/maps/UnknownMap_18_01/scripts.inc" - .include "data/maps/Route7_EastEntrance/scripts.inc" - .include "data/maps/Route8_WestEntrance/scripts.inc" - .include "data/maps/Route10_PokemonCenter_1F/scripts.inc" - .include "data/maps/Route10_PokemonCenter_2F/scripts.inc" - .include "data/maps/Route11_EastEntrance_1F/scripts.inc" - .include "data/maps/Route11_EastEntrance_2F/scripts.inc" - .include "data/maps/Route12_NorthEntrance_1F/scripts.inc" - .include "data/maps/Route12_NorthEntrance_2F/scripts.inc" - .include "data/maps/Route12_FishingHouse/scripts.inc" - .include "data/maps/Route15_WestEntrance_1F/scripts.inc" - .include "data/maps/Route15_WestEntrance_2F/scripts.inc" - .include "data/maps/Route16_House/scripts.inc" - .include "data/maps/Route16_NorthEntrance_1F/scripts.inc" - .include "data/maps/Route16_NorthEntrance_2F/scripts.inc" - .include "data/maps/Route18_EastEntrance_1F/scripts.inc" - .include "data/maps/Route18_EastEntrance_2F/scripts.inc" - .include "data/maps/UnusedHouse_27_00/scripts.inc" - .include "data/maps/Route22_NorthEntrance/scripts.inc" - .include "data/maps/UnusedHouse_29_00/scripts.inc" - .include "data/maps/Route25_SeaCottage/scripts.inc" - .include "data/maps/SevenIsland_House_Room1/scripts.inc" - .include "data/maps/SevenIsland_House_Room2/scripts.inc" - .include "data/maps/SevenIsland_Mart/scripts.inc" - .include "data/maps/SevenIsland_PokemonCenter_1F/scripts.inc" - .include "data/maps/SevenIsland_PokemonCenter_2F/scripts.inc" - .include "data/maps/UnusedHouse_31_05/scripts.inc" - .include "data/maps/SevenIsland_Harbor/scripts.inc" - .include "data/maps/OneIsland_PokemonCenter_1F/scripts.inc" - .include "data/maps/OneIsland_PokemonCenter_2F/scripts.inc" - .include "data/maps/OneIsland_House1/scripts.inc" - .include "data/maps/OneIsland_House2/scripts.inc" - .include "data/maps/OneIsland_Harbor/scripts.inc" - .include "data/maps/TwoIsland_JoyfulGameCorner/scripts.inc" - .include "data/maps/TwoIsland_House/scripts.inc" - .include "data/maps/TwoIsland_PokemonCenter_1F/scripts.inc" - .include "data/maps/TwoIsland_PokemonCenter_2F/scripts.inc" - .include "data/maps/TwoIsland_Harbor/scripts.inc" - .include "data/maps/ThreeIsland_House1/scripts.inc" - .include "data/maps/ThreeIsland_PokemonCenter_1F/scripts.inc" - .include "data/maps/ThreeIsland_PokemonCenter_2F/scripts.inc" - .include "data/maps/ThreeIsland_Mart/scripts.inc" - .include "data/maps/ThreeIsland_House2/scripts.inc" - .include "data/maps/ThreeIsland_House3/scripts.inc" - .include "data/maps/ThreeIsland_House4/scripts.inc" - .include "data/maps/ThreeIsland_House5/scripts.inc" - .include "data/maps/FourIsland_PokemonDayCare/scripts.inc" - .include "data/maps/FourIsland_PokemonCenter_1F/scripts.inc" - .include "data/maps/FourIsland_PokemonCenter_2F/scripts.inc" - .include "data/maps/FourIsland_House1/scripts.inc" - .include "data/maps/FourIsland_LoreleisHouse/scripts.inc" - .include "data/maps/FourIsland_Harbor/scripts.inc" - .include "data/maps/FourIsland_House2/scripts.inc" - .include "data/maps/FourIsland_Mart/scripts.inc" - .include "data/maps/FiveIsland_PokemonCenter_1F/scripts.inc" - .include "data/maps/FiveIsland_PokemonCenter_2F/scripts.inc" - .include "data/maps/FiveIsland_Harbor/scripts.inc" - .include "data/maps/FiveIsland_House1/scripts.inc" - .include "data/maps/FiveIsland_House2/scripts.inc" - .include "data/maps/SixIsland_PokemonCenter_1F/scripts.inc" - .include "data/maps/SixIsland_PokemonCenter_2F/scripts.inc" - .include "data/maps/SixIsland_Harbor/scripts.inc" - .include "data/maps/SixIsland_House/scripts.inc" - .include "data/maps/SixIsland_Mart/scripts.inc" - .include "data/maps/ThreeIsland_Harbor/scripts.inc" - .include "data/maps/FiveIsland_ResortGorgeous_House/scripts.inc" - .include "data/maps/TwoIsland_CapeBrink_House/scripts.inc" - .include "data/maps/SixIsland_WaterPath_House1/scripts.inc" - .include "data/maps/SixIsland_WaterPath_House2/scripts.inc" - .include "data/maps/SevenIsland_SevaultCanyon_House/scripts.inc" - - - - .include "data/maps/ViridianForest/text.inc" - .include "data/maps/MtMoon_1F/text.inc" - .include "data/maps/MtMoon_B2F/text.inc" - .include "data/maps/SSAnne_1F_Corridor/text.inc" - .include "data/maps/SSAnne_2F_Corridor/text.inc" - .include "data/maps/SSAnne_3F_Corridor/text.inc" - .include "data/maps/SSAnne_Deck/text.inc" - .include "data/maps/SSAnne_Kitchen/text.inc" - .include "data/maps/SSAnne_CaptainsOffice/text.inc" - .include "data/maps/SSAnne_1F_Room1/text.inc" - .include "data/maps/SSAnne_1F_Room2/text.inc" - .include "data/maps/SSAnne_1F_Room3/text.inc" - .include "data/maps/SSAnne_1F_Room4/text.inc" - .include "data/maps/SSAnne_1F_Room5/text.inc" - .include "data/maps/SSAnne_1F_Room7/text.inc" - .include "data/maps/SSAnne_2F_Room1/text.inc" - .include "data/maps/SSAnne_2F_Room2/text.inc" - .include "data/maps/SSAnne_2F_Room3/text.inc" - .include "data/maps/SSAnne_2F_Room4/text.inc" - .include "data/maps/SSAnne_2F_Room5/text.inc" - .include "data/maps/SSAnne_2F_Room6/text.inc" - .include "data/maps/SSAnne_B1F_Room1/text.inc" - .include "data/maps/SSAnne_B1F_Room2/text.inc" - .include "data/maps/SSAnne_B1F_Room3/text.inc" - .include "data/maps/SSAnne_B1F_Room4/text.inc" - .include "data/maps/SSAnne_B1F_Room5/text.inc" - .include "data/maps/SSAnne_1F_Room6/text.inc" - .include "data/maps/UndergroundPath_SouthEntrance/text.inc" - .include "data/maps/UndergroundPath_WestEntrance/text.inc" - .include "data/maps/UndergroundPath_EastEntrance/text.inc" - .include "data/maps/DiglettsCave_NorthEntrance/text.inc" - .include "data/maps/DiglettsCave_SouthEntrance/text.inc" - .include "data/maps/VictoryRoad_1F/text.inc" - .include "data/maps/VictoryRoad_2F/text.inc" - .include "data/maps/VictoryRoad_3F/text.inc" - .include "data/maps/RocketHideout_B1F/text.inc" - .include "data/maps/RocketHideout_B2F/text.inc" - .include "data/maps/RocketHideout_B3F/text.inc" - .include "data/maps/RocketHideout_B4F/text.inc" - .include "data/maps/RocketHideout_Elevator/text.inc" - .include "data/maps/SilphCo_1F/text.inc" - .include "data/maps/SilphCo_2F/text.inc" - .include "data/maps/SilphCo_3F/text.inc" - .include "data/maps/SilphCo_4F/text.inc" - .include "data/maps/SilphCo_5F/text.inc" - .include "data/maps/SilphCo_6F/text.inc" - .include "data/maps/SilphCo_7F/text.inc" - .include "data/maps/SilphCo_8F/text.inc" - .include "data/maps/SilphCo_9F/text.inc" - .include "data/maps/SilphCo_10F/text.inc" - .include "data/maps/SilphCo_11F/text.inc" - .include "data/maps/PokemonMansion_1F/text.inc" - .include "data/maps/PokemonMansion_2F/text.inc" - .include "data/maps/PokemonMansion_3F/text.inc" - .include "data/maps/PokemonMansion_B1F/text.inc" - .include "data/maps/SafariZone_Center/text.inc" - .include "data/maps/SafariZone_East/text.inc" - .include "data/maps/SafariZone_North/text.inc" - .include "data/maps/SafariZone_West/text.inc" - .include "data/maps/SafariZone_Building1/text.inc" - .include "data/maps/SafariZone_Building2/text.inc" - .include "data/maps/SafariZone_Building3/text.inc" - .include "data/maps/SafariZone_Building4/text.inc" - .include "data/maps/SafariZone_SecretHouse/text.inc" - .include "data/maps/CeruleanCave_B1F/text.inc" - .include "data/maps/PokemonLeague_LoreleisRoom/text.inc" - .include "data/maps/PokemonLeague_BrunosRoom/text.inc" - .include "data/maps/PokemonLeague_AgathasRoom/text.inc" - .include "data/maps/PokemonLeague_LancesRoom/text.inc" - .include "data/maps/PokemonLeague_ChampionsRoom/text.inc" - .include "data/maps/PokemonLeague_HallOfFame/text.inc" - .include "data/maps/RockTunnel_1F/text.inc" - .include "data/maps/RockTunnel_B1F/text.inc" - .include "data/maps/SeafoamIslands_B4F/text.inc" - .include "data/maps/PokemonTower_1F/text.inc" - .include "data/maps/PokemonTower_2F/text.inc" - .include "data/maps/PokemonTower_3F/text.inc" - .include "data/maps/PokemonTower_4F/text.inc" - .include "data/maps/PokemonTower_5F/text.inc" - .include "data/maps/PokemonTower_6F/text.inc" - .include "data/maps/PokemonTower_7F/text.inc" - .include "data/maps/MtEmber_Exterior/text.inc" - .include "data/maps/MtEmber_RubyPath_B3F/text.inc" - .include "data/maps/ThreeIsland_BerryForest/text.inc" - .include "data/maps/FourIsland_IcefallCave_Back/text.inc" - .include "data/maps/FiveIsland_RocketWarehouse/text.inc" - .include "data/maps/SixIsland_DottedHole_SapphireRoom/text.inc" - .include "data/maps/SixIsland_PatternBush/text.inc" - .include "data/maps/SevenIsland_TrainerTower_Lobby/text.inc" - .include "data/maps/FiveIsland_LostCave_Room1/text.inc" - .include "data/maps/FiveIsland_LostCave_Room4/text.inc" - .include "data/maps/FiveIsland_LostCave_Room10/text.inc" - .include "data/maps/ThreeIsland_DunsparceTunnel/text.inc" - .include "data/maps/SevenIsland_SeavaultCanyon_TanobyKey/text.inc" - .include "data/maps/OneIsland_KindleRoad_EmberSpa/text.inc" - .include "data/maps/PalletTown/text.inc" - .include "data/maps/ViridianCity/text.inc" - .include "data/maps/PewterCity/text.inc" - .include "data/maps/CeruleanCity/text.inc" - .include "data/maps/LavenderTown/text.inc" - .include "data/maps/VermilionCity/text.inc" - .include "data/maps/CeladonCity/text.inc" - .include "data/maps/FuchsiaCity/text.inc" - .include "data/maps/CinnabarIsland/text.inc" - .include "data/maps/SaffronCity/text.inc" - .include "data/maps/OneIsland/text.inc" - .include "data/maps/TwoIsland/text.inc" - .include "data/maps/ThreeIsland/text.inc" - .include "data/maps/FourIsland/text.inc" - .include "data/maps/FiveIsland/text.inc" - .include "data/maps/SevenIsland/text.inc" - .include "data/maps/SixIsland/text.inc" - .include "data/maps/Route1/text.inc" - .include "data/maps/Route2/text.inc" - .include "data/maps/Route3/text.inc" - .include "data/maps/Route4/text.inc" - .include "data/maps/Route5/text.inc" - .include "data/maps/Route6/text.inc" - .include "data/maps/Route7/text.inc" - .include "data/maps/Route8/text.inc" - .include "data/maps/Route9/text.inc" - .include "data/maps/Route10/text.inc" - .include "data/maps/Route11/text.inc" - .include "data/maps/Route12/text.inc" - .include "data/maps/Route13/text.inc" - .include "data/maps/Route14/text.inc" - .include "data/maps/Route15/text.inc" - .include "data/maps/Route16/text.inc" - .include "data/maps/Route17/text.inc" - .include "data/maps/Route18/text.inc" - .include "data/maps/Route19/text.inc" - .include "data/maps/Route20/text.inc" - .include "data/maps/Route22/text.inc" - .include "data/maps/Route23/text.inc" - .include "data/maps/Route24/text.inc" - .include "data/maps/Route25/text.inc" - .include "data/maps/OneIsland_KindleRoad/text.inc" - .include "data/maps/OneIsland_TreasureBeach/text.inc" - .include "data/maps/ThreeIsland_BondBridge/text.inc" - .include "data/maps/ThreeIsland_Port/text.inc" - .include "data/maps/FiveIsland_ResortGorgeous/text.inc" - .include "data/maps/FiveIsland_WaterLabyrinth/text.inc" - .include "data/maps/FiveIsland_Meadow/text.inc" - .include "data/maps/FiveIsland_MemorialPillar/text.inc" - .include "data/maps/SixIsland_OutcastIsland/text.inc" - .include "data/maps/SixIsland_GreenPath/text.inc" - .include "data/maps/SixIsland_WaterPath/text.inc" - .include "data/maps/SixIsland_RuinValley/text.inc" - .include "data/maps/SevenIsland_TrainerTower/text.inc" - .include "data/maps/SevenIsland_SevaultCanyon_Entrance/text.inc" - .include "data/maps/SevenIsland_SevaultCanyon/text.inc" - .include "data/maps/PalletTown_PlayersHouse_1F/text.inc" - .include "data/maps/PalletTown_PlayersHouse_2F/text.inc" - .include "data/maps/PalletTown_GarysHouse/text.inc" - .include "data/maps/PalletTown_ProfessorOaksLab/text.inc" - .include "data/maps/ViridianCity_House1/text.inc" - .include "data/maps/ViridianCity_Gym/text.inc" - .include "data/maps/ViridianCity_House2/text.inc" - .include "data/maps/ViridianCity_Mart/text.inc" - .include "data/maps/ViridianCity_PokemonCenter_1F/text.inc" - .include "data/maps/PewterCity_Museum_1F/text.inc" - .include "data/maps/PewterCity_Museum_2F/text.inc" - .include "data/maps/PewterCity_Gym/text.inc" - .include "data/maps/PewterCity_Mart/text.inc" - .include "data/maps/PewterCity_House1/text.inc" - .include "data/maps/PewterCity_PokemonCenter_1F/text.inc" - .include "data/maps/PewterCity_House2/text.inc" - .include "data/maps/CeruleanCity_House1/text.inc" - .include "data/maps/CeruleanCity_House2/text.inc" - .include "data/maps/CeruleanCity_House3/text.inc" - .include "data/maps/CeruleanCity_PokemonCenter_1F/text.inc" - .include "data/maps/CeruleanCity_Gym/text.inc" - .include "data/maps/CeruleanCity_BikeShop/text.inc" - .include "data/maps/CeruleanCity_Mart/text.inc" - .include "data/maps/CeruleanCity_House4/text.inc" - .include "data/maps/CeruleanCity_House5/text.inc" - .include "data/maps/LavenderTown_PokemonCenter_1F/text.inc" - .include "data/maps/LavenderTown_VolunteerPokemonHouse/text.inc" - .include "data/maps/LavenderTown_House1/text.inc" - .include "data/maps/LavenderTown_House2/text.inc" - .include "data/maps/LavenderTown_Mart/text.inc" - .include "data/maps/VermilionCity_House1/text.inc" - .include "data/maps/VermilionCity_PokemonCenter_1F/text.inc" - .include "data/maps/VermilionCity_PokemonFanClub/text.inc" - .include "data/maps/VermilionCity_Mart/text.inc" - .include "data/maps/VermilionCity_Gym/text.inc" - .include "data/maps/VermilionCity_House3/text.inc" - .include "data/maps/CeladonCity_DepartmentStore_1F/text.inc" - .include "data/maps/CeladonCity_DepartmentStore_2F/text.inc" - .include "data/maps/CeladonCity_DepartmentStore_3F/text.inc" - .include "data/maps/CeladonCity_DepartmentStore_4F/text.inc" - .include "data/maps/CeladonCity_DepartmentStore_5F/text.inc" - .include "data/maps/CeladonCity_DepartmentStore_Roof/text.inc" - .include "data/maps/CeladonCity_Condominiums_1F/text.inc" - .include "data/maps/CeladonCity_Condominiums_2F/text.inc" - .include "data/maps/CeladonCity_Condominiums_3F/text.inc" - .include "data/maps/CeladonCity_Condominiums_Roof/text.inc" - .include "data/maps/CeladonCity_Condominiums_RoofRoom/text.inc" - .include "data/maps/CeladonCity_PokemonCenter_1F/text.inc" - .include "data/maps/CeladonCity_GameCorner/text.inc" - .include "data/maps/CeladonCity_GameCorner_PrizeRoom/text.inc" - .include "data/maps/CeladonCity_Gym/text.inc" - .include "data/maps/CeladonCity_Restaurant/text.inc" - .include "data/maps/CeladonCity_House1/text.inc" - .include "data/maps/CeladonCity_Hotel/text.inc" - .include "data/maps/FuchsiaCity_SafariZone_Entrance/text.inc" - .include "data/maps/FuchsiaCity_Mart/text.inc" - .include "data/maps/FuchsiaCity_ZooBuilding/text.inc" - .include "data/maps/FuchsiaCity_Gym/text.inc" - .include "data/maps/FuchsiaCity_House1/text.inc" - .include "data/maps/FuchsiaCity_PokemonCenter_1F/text.inc" - .include "data/maps/FuchsiaCity_Building1/text.inc" - .include "data/maps/FuchsiaCity_House2/text.inc" - .include "data/maps/FuchsiaCity_House3/text.inc" - .include "data/maps/CinnabarIsland_Gym/text.inc" - .include "data/maps/CinnabarIsland_PokemonLab_Entrance/text.inc" - .include "data/maps/CinnabarIsland_PokemonLab_Lounge/text.inc" - .include "data/maps/CinnabarIsland_PokemonLab_ResearchRoom/text.inc" - .include "data/maps/CinnabarIsland_PokemonLab_ExperimentRoom/text.inc" - .include "data/maps/CinnabarIsland_PokemonCenter_1F/text.inc" - .include "data/maps/CinnabarIsland_Mart/text.inc" - .include "data/maps/IndigoPlateau_PokemonCenter_1F/text.inc" - .include "data/maps/SaffronCity_House1_1F/text.inc" - .include "data/maps/SaffronCity_House1_2F/text.inc" - .include "data/maps/SaffronCity_Dojo/text.inc" - .include "data/maps/SaffronCity_Gym/text.inc" - .include "data/maps/SaffronCity_House2/text.inc" - .include "data/maps/SaffronCity_Mart/text.inc" - .include "data/maps/SaffronCity_PokemonCenter_1F/text.inc" - .include "data/maps/SaffronCity_House3/text.inc" - .include "data/maps/SaffronCity_PokemonTrainerFanClub/text.inc" - .include "data/maps/Route2_ViridianForest_SouthEntrance/text.inc" - .include "data/maps/Route2_House/text.inc" - .include "data/maps/Route2_EastBuilding/text.inc" - .include "data/maps/Route2_ViridianForest_NorthEntrance/text.inc" - .include "data/maps/Route4_PokemonCenter_1F/text.inc" - .include "data/maps/Route5_SouthEntrance/text.inc" - .include "data/maps/Route6_NorthEntrance/text.inc" - .include "data/maps/Route7_EastEntrance/text.inc" - .include "data/maps/Route8_WestEntrance/text.inc" - .include "data/maps/Route10_PokemonCenter_1F/text.inc" - .include "data/maps/Route11_EastEntrance_1F/text.inc" - .include "data/maps/Route11_EastEntrance_2F/text.inc" - .include "data/maps/Route12_NorthEntrance_1F/text.inc" - .include "data/maps/Route12_NorthEntrance_2F/text.inc" - .include "data/maps/Route12_FishingHouse/text.inc" - .include "data/maps/Route15_WestEntrance_1F/text.inc" - .include "data/maps/Route15_WestEntrance_2F/text.inc" - .include "data/maps/Route16_House/text.inc" - .include "data/maps/Route16_NorthEntrance_1F/text.inc" - .include "data/maps/Route16_NorthEntrance_2F/text.inc" - .include "data/maps/Route18_EastEntrance_1F/text.inc" - .include "data/maps/Route18_EastEntrance_2F/text.inc" - .include "data/maps/Route25_SeaCottage/text.inc" - .include "data/maps/SevenIsland_House_Room1/text.inc" - .include "data/maps/SevenIsland_Mart/text.inc" - .include "data/maps/SevenIsland_PokemonCenter_1F/text.inc" - .include "data/maps/OneIsland_PokemonCenter_1F/text.inc" - .include "data/maps/OneIsland_House1/text.inc" - .include "data/maps/OneIsland_House2/text.inc" - .include "data/maps/TwoIsland_JoyfulGameCorner/text.inc" - .include "data/maps/TwoIsland_House/text.inc" - .include "data/maps/TwoIsland_PokemonCenter_1F/text.inc" - .include "data/maps/ThreeIsland_House1/text.inc" - .include "data/maps/ThreeIsland_PokemonCenter_1F/text.inc" - .include "data/maps/ThreeIsland_Mart/text.inc" - .include "data/maps/ThreeIsland_House2/text.inc" - .include "data/maps/ThreeIsland_House3/text.inc" - .include "data/maps/ThreeIsland_House4/text.inc" - .include "data/maps/ThreeIsland_House5/text.inc" - .include "data/maps/FourIsland_PokemonCenter_1F/text.inc" - .include "data/maps/FourIsland_House1/text.inc" - .include "data/maps/FourIsland_LoreleisHouse/text.inc" - .include "data/maps/FourIsland_Mart/text.inc" - .include "data/maps/FiveIsland_PokemonCenter_1F/text.inc" - .include "data/maps/FiveIsland_House1/text.inc" - .include "data/maps/FiveIsland_House2/text.inc" - .include "data/maps/SixIsland_PokemonCenter_1F/text.inc" - .include "data/maps/SixIsland_House/text.inc" - .include "data/maps/SixIsland_Mart/text.inc" - .include "data/maps/FiveIsland_ResortGorgeous_House/text.inc" - .include "data/maps/SixIsland_WaterPath_House1/text.inc" - .include "data/maps/SixIsland_WaterPath_House2/text.inc" - .include "data/maps/SevenIsland_SevaultCanyon_House/text.inc" - - - -gStdScript_2:: @ 81A4E3F - lock - faceplayer - message 0x0 - waitmessage - waitbuttonpress - release - return - -gStdScript_3:: @ 81A4E4A - lockall - message 0x0 - waitmessage - waitbuttonpress - releaseall - return - -gStdScript_4:: @ 81A4E54 - message 0x0 - waitmessage - waitbuttonpress - return - -gStdScript_5:: @ 81A4E5C - message 0x0 - waitmessage - yesnobox 20, 8 - return - -gStdScript_ItemMessageAndFanfare:: @ 81A4E66 - textcolor 3 - compare_var_to_value VAR_0x8002, MUS_FANFA1 - call_if 1, EventScript_1A4EA2 - compare_var_to_value VAR_0x8002, MUS_FAN5 - call_if 1, EventScript_1A4EA6 - message 0x0 - waitmessage - waitfanfare - compare_var_to_value VAR_0x8002, MUS_FANFA1 - call_if 1, EventScript_1A4EAA - setorcopyvar VAR_0x8000, VAR_0x8000 - setorcopyvar VAR_0x8001, VAR_0x8001 - callstd 8 - call EventScript_1A6675 - return - -EventScript_1A4EA2:: @ 81A4EA2 - playfanfare MUS_FANFA1 - return - -EventScript_1A4EA6:: @ 81A4EA6 - playfanfare MUS_FAN5 - return - -EventScript_1A4EAA:: @ 81A4EAA - delay 50 - return - -EventScript_1A4EAE:: @ 81A4EAE - return - -EventScript_1A4EAF:: @ 81A4EAF - special Field_AskSaveTheGame - waitstate - return - -gUnknown_81A4EB4:: @ 81A4EB4 - lock - special sub_8080628 - special ScrSpecial_EndTrainerApproach - waitstate - goto EventScript_1A4FC7 - -gUnknown_81A4EC1:: @ 81A4EC1 - lock - faceplayer - applymovement VAR_LAST_TALKED, Movement_1A4FC5 - waitmovement 0 - specialvar VAR_RESULT, ScrSpecial_HasTrainerBeenFought - compare_var_to_value VAR_RESULT, 0 - goto_if 5, EventScript_1A4EE8 - special sub_8080628 - special sub_8080398 - goto EventScript_1A4FC7 - -EventScript_1A4EE8:: @ 81A4EE8 - ontrainerbattleend - -gUnknown_81A4EE9:: @ 81A4EE9 - lock - faceplayer - call EventScript_1A4FBA - specialvar VAR_RESULT, ScrSpecial_HasTrainerBeenFought - compare_var_to_value VAR_RESULT, 0 - goto_if 5, EventScript_1A4F20 - special CheckForAlivePartyMons - compare_var_to_value VAR_RESULT, 0 - goto_if 5, EventScript_1A4F19 - special sub_8080628 - special sub_8080398 - goto EventScript_1A4FC7 - -EventScript_1A4F19:: @ 81A4F19 - special sub_8080618 - waitmessage - waitbuttonpress - release - end - -EventScript_1A4F20:: @ 81A4F20 - ontrainerbattleend - -gUnknown_81A4F21:: @ 81A4F21 - applymovement VAR_LAST_TALKED, Movement_1A4FC5 - waitmovement 0 - special sub_8080628 - special sub_8110AB4 - compare_var_to_value VAR_RESULT, 2 - goto_if_eq EventScript_1A501A - battlebegin - ontrainerbattleend - -gUnknown_81A4F3E:: @ 81A4F3E - call EventScript_1A4FBA - specialvar VAR_RESULT, sub_810CEB4 - compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_1A4F72 - special sub_8080628 - special sub_8080398 - special sub_80805D8 - waitmessage - waitbuttonpress - special sub_8110AB4 - compare_var_to_value VAR_RESULT, 2 - goto_if_eq EventScript_1A4FB8 - special sub_80805B0 - waitstate - releaseall - end - -EventScript_1A4F72:: @ 81A4F72 - ontrainerbattleend - -gUnknown_81A4F73:: @ 81A4F73 - specialvar VAR_RESULT, sub_810CEB4 - compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_1A4FB0 - special CheckForAlivePartyMons - compare_var_to_value VAR_RESULT, 0 - goto_if 5, EventScript_1A4FB1 - special sub_8080628 - special sub_8080398 - special sub_80805D8 - waitmessage - waitbuttonpress - special sub_8110AB4 - compare_var_to_value VAR_RESULT, 2 - goto_if_eq EventScript_1A4FB8 - special sub_80805B0 - waitstate - releaseall - end - -EventScript_1A4FB0:: @ 81A4FB0 - ontrainerbattleend - -EventScript_1A4FB1:: @ 81A4FB1 - special sub_8080618 - waitmessage - waitbuttonpress - release - end - -EventScript_1A4FB8:: @ 81A4FB8 - releaseall - end - -EventScript_1A4FBA:: @ 81A4FBA - applymovement VAR_LAST_TALKED, Movement_1A4FC5 - waitmovement 0 - return - -Movement_1A4FC5:: @ 81A4FC5 - step_67 - step_end - -EventScript_1A4FC7:: @ 81A4FC7 - special sub_80805D8 - waitmessage - waitbuttonpress - special sub_8110AB4 - compare_var_to_value VAR_RESULT, 2 - goto_if_eq EventScript_1A501A - battlebegin - specialvar VAR_RESULT, sub_80803CC - compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_1A5017 - compare_var_to_value VAR_RESULT, 2 - goto_if_eq EventScript_1A5019 - compare_var_to_value VAR_RESULT, 1 - goto_if_eq EventScript_1A5019 - compare_var_to_value VAR_RESULT, 6 - goto_if_eq EventScript_1A5019 - compare_var_to_value VAR_RESULT, 8 - goto_if_eq EventScript_1A5019 - -EventScript_1A5017:: @ 81A5017 - releaseall - end - -EventScript_1A5019:: @ 81A5019 - ontrainerbattleendgoto - -EventScript_1A501A:: @ 81A501A - special sub_80803FC - releaseall - end - -gStdScript_Message_WaitButton_AndRelease:: @ 81A501F - message 0x0 - waitmessage - waitbuttonpress - release - return - - - -gUnknown_81A5028:: @ 81A5028 - .string "Would you like to mix records with\n" - .string "other TRAINERS?$" - -Text_1A505B:: @ 81A505B - .string "We hope to see you again!$" - -Text_1A5075:: @ 81A5075 - .string "{PLAYER} booted up the PC.$" - -gUnknown_81A508A:: @ 81A508A - .string "Which PC should be accessed?$" - -Text_1A50A7:: @ 81A50A7 - .string "Accessed Someone's PC.$" - -Text_1A50BE:: @ 81A50BE - .string "POKéMON Storage System opened.$" - -Text_1A50DD:: @ 81A50DD - .string "Accessed {PLAYER}'s PC.$" - -Text_1A50EF:: @ 81A50EF - .string "Accessed BILL's PC.$" - -Text_1A5103:: @ 81A5103 - .string "Welcome to the POKéMON CABLE CLUB\n" - .string "TRADE CENTER.$" - -Text_1A5133:: @ 81A5133 - .string "Welcome to the POKéMON CABLE CLUB\n" - .string "COLOSSEUM.$" - -Text_1A5160:: @ 81A5160 - .string "Welcome to the POKéMON CABLE CLUB\n" - .string "TIME CAPSULE.$" - -gUnknown_81A5190:: @ 81A5190 - .string "Please come again!$" - -Text_1A51A3:: @ 81A51A3 - .string "Welcome!\p" - .string "We're having a discount sale today!$" - -Text_1A51D0:: @ 81A51D0 - .string "{PLAYER}{KUN}, welcome!\p" - .string "What can I do for you?$" - -Text_1A51F6:: @ 81A51F6 - .string "Obtained the {STR_VAR_2}!$" - -gUnknown_81A5207:: @ 81A5207 - .string "The BAG is full…$" - -gUnknown_81A5218:: @ 81A5218 - .string "{PLAYER} put the {STR_VAR_2}\n" - .string "in the {STR_VAR_3}.$" - -Text_1A5231:: @ 81A5231 - .string "{PLAYER} found one {STR_VAR_2}!$" - -gUnknown_81A5242:: @ 81A5242 - .string "Too bad!\n" - .string "The BAG is full…$" - -Text_1A525C:: @ 81A525C - .string "{PLAYER} found\n" - .string "{STR_VAR_1} {STR_VAR_2}!$" - -Text_1A526C:: @ 81A526C - .string "{PLAYER} put the COINS away in\n" - .string "the COIN CASE.$" - -Text_1A5294:: @ 81A5294 - .string "Too bad!\n" - .string "The COIN CASE is full…$" - -Text_1A52B4:: @ 81A52B4 - .string "Too bad!\n" - .string "There's nothing to put them in…$" - -Text_1A52DD:: @ 81A52DD - .string "{PLAYER} found\n" - .string "{STR_VAR_1} {STR_VAR_2}(s)!$" - -Text_1A52F0:: @ 81A52F0 - .string "Obtained the {STR_VAR_2}!$" - -Text_1A5301:: @ 81A5301 - .string "Too bad! There's no room left for\n" - .string "another {STR_VAR_2}…$" - -gUnknown_81A532F:: @ 81A532F - .string "The {STR_VAR_2} was transferred\n" - .string "to the PC.$" - -Text_1A5351:: @ 81A5351 - .string "ã˜ã‚…ã‚“ã³ã¡ã‚…ã†ã§ã™ï¼$" - -Text_1A535C:: @ 81A535C - .string "Which floor do you want?$" - -Text_1A5375:: @ 81A5375 - .string "An item in the BAG can be\n" - .string "registered to SELECT for easy use.$" - -Text_1A53B2:: @ 81A53B2 - .string "パソコンã«\n" - .string "ãƒã‚±ãƒ¢ãƒ³ã€€ãƒˆãƒ¬ãƒ¼ãƒŠãƒ¼ã€€ã“ã†ã–ã®\l" - .string "メールãŒã€€ãã¦ã„ã‚‹ï¼\p" - .string "‥‥ ‥‥ ‥‥\p" - .string "ãƒã‚±ãƒ¢ãƒ³ãŒã€€ãŠã¼ãˆã‚‰ã‚Œã‚‹ã€€ã‚ã–ã¯ã€€4ã¤ï¼\p" - .string "ã©ã‚“ãªã€€ã‚ã–を ãŠã¼ãˆã•ã›ã‚‹ã‹ã§\n" - .string "トレーナーã®ã€€ã˜ã¤ã‚Šã‚‡ããŒã€€ã¨ã‚れã¾ã™ï¼\p" - .string "‥‥ ‥‥ ‥‥$" - -gUnknown_81A5420:: @ 81A5420 - .string "{PLAYER} booted up the PC.$" - -Text_1A5435:: @ 81A5435 - .string "ã¤ã†ã—ã‚“ã¯ã€€ã‚­ãƒ£ãƒ³ã‚»ãƒ«ã•れã¾ã—ãŸ$" - -Text_1A5446:: @ 81A5446 - .string "Want to give a nickname to the\n" - .string "{STR_VAR_2} you received?$" - -gText_PkmnFainted3:: @ 81A5476 - .string "{STR_VAR_1} fainted…\p" - .string "$" - -Text_1A5483:: @ 81A5483 - .string "Welcome to our POKéMON CENTER!\p" - .string "Would you like me to heal your\n" - .string "POKéMON back to perfect health?$" - -Text_1A54E1:: @ 81A54E1 - .string "Okay, I'll take your POKéMON for a\n" - .string "few seconds.$" - -Text_1A5511:: @ 81A5511 - .string "We hope to see you again!$" - -Text_1A552B:: @ 81A552B - .string "Thank you for waiting.\n" - .string "We've restored your POKéMON to\l" - .string "full health.$" - -Text_1A556E:: @ 81A556E - .string "The water is dyed a deep blue…\n" - .string "Would you like to SURF?$" - -Text_1A55A5:: @ 81A55A5 - .string "{STR_VAR_1} used SURF!$" - -Text_1A55B3:: @ 81A55B3 - .string "The current is much too fast!\n" - .string "SURF can't be used here…$" - -Text_1A55EA:: @ 81A55EA - .string "ã©ã“ã‹ã€€ã¨ãŠãã®ã€€ã¨ã³ã‚‰ãŒ\n" - .string "ã²ã‚‰ã„ãŸã‚ˆã†ãªã€€ãŠã¨ã â€¥â€¥$" - -Text_1A5606:: @ 81A5606 - .string "ã‹ã¹ã«\n" - .string "ãŠãŠããªã€€ã‚ãªãŒã€€ã‚ã„ã¦ã„ã‚‹ï¼$" - -Text_1A561A:: @ 81A561A - .string "I'm terribly sorry.\n" - .string "The POKéMON WIRELESS CLUB is\l" - .string "undergoing adjustments now.$" - -Text_1A5667:: @ 81A5667 - .string "It appears to be undergoing\n" - .string "adjustments…$" - -Text_1A5690:: @ 81A5690 - .string "{PLAYER} handed over the\n" - .string "{STR_VAR_1}.$" - -gUnknown_81A56A7:: @ 81A56A7 - .string "Do you want to give a nickname to\n" - .string "this {STR_VAR_1}?$" - -Text_1A56D2:: @ 81A56D2 - .string "ãŠãƒƒï¼ã€€ãƒ€ã‚¦ã‚¸ãƒ³ã‚°ãƒžã‚·ãƒ³ãŒ\n" - .string "ã¯ã‚“ã®ã†ã€€ã—ã¦ã‚‹ãžï¼\p" - .string "ã¾ã—ãŸã«ã€€ã©ã†ããŒã€€ã†ã¾ã£ã¦ã‚‹ï¼\n" - .string "‥‥‥$" - -Text_1A5700:: @ 81A5700 - .string "{PLAYER} dug up one {STR_VAR_2}\n" - .string "from deep in the ground.$" - -Text_1A572A:: @ 81A572A - .string "Only truly skilled TRAINERS are\n" - .string "allowed through.\p" - .string "You don't have the {STR_VAR_1}\n" - .string "yet!$" - -Text_1A5776:: @ 81A5776 - .string "Rules are rules.\n" - .string "I can't let you pass.$" - -Text_1A579D:: @ 81A579D - .string "Oh! That is the {STR_VAR_1}!\n" - .string "Go right ahead.$" - -Text_1A57C1:: @ 81A57C1 - .string "You can pass here only if you have\n" - .string "the {STR_VAR_1}.\p" - .string "You don't have the {STR_VAR_1}\n" - .string "yet.\p" - .string "You have to have it to get to\n" - .string "the POKéMON LEAGUE.$" - -Text_1A5839:: @ 81A5839 - .string "You can pass here only if you have\n" - .string "the {STR_VAR_1}.\p" - .string "Oh! That is the {STR_VAR_1}!{PAUSE_MUSIC}{PLAY_BGM}{MUS_FANFA1}{PAUSE 0x60}{RESUME_MUSIC}\p" - .string "Okay, then.\n" - .string "Please, go right ahead.$" - -Text_1A58A7:: @ 81A58A7 - .string "Let's see…\n" - .string "Uh-oh! You have caught only\l" - .string "{STR_VAR_3} kinds of POKéMON!\p" - .string "You need {STR_VAR_1} kinds\n" - .string "if you want the {STR_VAR_2}.$" - -Text_1A5909:: @ 81A5909 - .string "…Oh. I see.\p" - .string "When you get {STR_VAR_1} kinds of POKéMON,\n" - .string "come back for the {STR_VAR_2}.$" - -Text_1A594D:: @ 81A594D - .string "Oh! I see you don't have any\n" - .string "room for the {STR_VAR_2}.$" - -gUnknown_81A597B:: @ 81A597B - .string "I'm looking for the POKéMON\n" - .string "{STR_VAR_1}!\p" - .string "Wanna trade one for my\n" - .string "{STR_VAR_2}?$" - -gUnknown_81A59B6:: @ 81A59B6 - .string "Awww!\n" - .string "Oh, well…$" - -gUnknown_81A59C6:: @ 81A59C6 - .string "What?\n" - .string "That's no {STR_VAR_1}!$" - -gUnknown_81A59DA:: @ 81A59DA - .string "Hey, thanks!$" - -gUnknown_81A59E7:: @ 81A59E7 - .string "Isn't my old {STR_VAR_2} great?$" - -gUnknown_81A59FE:: @ 81A59FE - .string "Hello, there! Do you happen to\n" - .string "have a {STR_VAR_1}?\p" - .string "Would you agree to a trade for\n" - .string "my {STR_VAR_2}?$" - -gUnknown_81A5A4E:: @ 81A5A4E - .string "Well, if you don't want to…$" - -gUnknown_81A5A6A:: @ 81A5A6A - .string "Hmmm?\n" - .string "This isn't a {STR_VAR_1}.\p" - .string "Think of me if you get one.$" - -gUnknown_81A5A9D:: @ 81A5A9D - .string "Thanks!$" - -gUnknown_81A5AA5:: @ 81A5AA5 - .string "The {STR_VAR_2} that I traded you,\n" - .string "has it grown stronger?$" - -gUnknown_81A5AD6:: @ 81A5AD6 - .string "Hi!\n" - .string "Do you have a {STR_VAR_1}?\p" - .string "Want to trade it for my\n" - .string "{STR_VAR_2}?$" - -gUnknown_81A5B08:: @ 81A5B08 - .string "That's too bad.$" - -gUnknown_81A5B18:: @ 81A5B18 - .string "…This is no {STR_VAR_1}.\p" - .string "If you get one, trade it with me.$" - -gUnknown_81A5B4A:: @ 81A5B4A - .string "Thanks, you're a pal!$" - -gUnknown_81A5B60:: @ 81A5B60 - .string "How is my old {STR_VAR_2}?\n" - .string "My {STR_VAR_1} is doing great!$" - -Text_1A5B88:: @ 81A5B88 - .string "Bingo!\n" - .string "The CARD KEY opened the door!$" - -Text_1A5BAD:: @ 81A5BAD - .string "No!\n" - .string "It needs a CARD KEY!$" - -Text_1A5BC6:: @ 81A5BC6 - .string "Accessed PROF. OAK's PC…\p" - .string "Accessed the POKéDEX Rating\n" - .string "System…$" - -Text_1A5C03:: @ 81A5C03 - .string "Would you like to have your\n" - .string "POKéDEX rated?$" - -Text_1A5C2E:: @ 81A5C2E - .string "Closed link to PROF. OAK's PC.$" - -Text_1A5C4D:: @ 81A5C4D - .string "Someone's voice rang out,\n" - .string "“Don't run away!â€$" - -Text_1A5C79:: @ 81A5C79 - .string "ãˆã£ã¨ãƒ¼\n" - .string "{STR_VAR_2}ãŒã€€ã¿ã¦ã¿ãŸã„ãªãƒ¼\p" - .string "ãれも {STR_VAR_1}{STR_VAR_3}\n" - .string "{STR_VAR_2}ãŒã€€ã¿ã¦ã¿ãŸã„ãªãƒ¼$" - -Text_1A5C9F:: @ 81A5C9F - .string "ã‚ãー ã™ã”ã„ï¼\n" - .string "{STR_VAR_1}{STR_VAR_3}{STR_VAR_2}ã ãƒ¼ï¼\p" - .string "ã‚りãŒã¨ãƒ¼\n" - .string "ã¾ãŸã€€ã‚ˆã‚ã—ãã­ãƒ¼ï¼$" - -Text_1A5CC3:: @ 81A5CC3 - .string "ãれã£ã€€ã¡ãŒã†ã‚ˆãƒ¼ï¼$" - -Text_1A5CCE:: @ 81A5CCE - .string "ãã£ã‹â€¥$" - -Text_1A5CD3:: @ 81A5CD3 - .string "ドアã¯ã€€ã—ã¾ã£ã¦ã„る‥$" - -Text_1A5CDF:: @ 81A5CDF - .string "The door is open…$" - -Text_1A5CF1:: @ 81A5CF1 - .string "{STR_VAR_2} was transferred to\n" - .string "Someone's PC.\p" - .string "It was placed in \n" - .string "BOX “{STR_VAR_1}.â€$" - -Text_1A5D31:: @ 81A5D31 - .string "{STR_VAR_2} was transferred to\n" - .string "BILL'S PC.\p" - .string "It was placed in \n" - .string "BOX “{STR_VAR_1}.â€$" - -Text_1A5D6E:: @ 81A5D6E - .string "BOX “{STR_VAR_3}†on\n" - .string "Someone's PC was full.\p" - .string "{STR_VAR_2} was transferred to\n" - .string "BOX “{STR_VAR_1}.â€$" - -Text_1A5DB1:: @ 81A5DB1 - .string "BOX “{STR_VAR_3}†on\n" - .string "BILL'S PC was full.\p" - .string "{STR_VAR_2} was transferred to\n" - .string "BOX “{STR_VAR_1}.â€$" - -Text_1A5DF1:: @ 81A5DF1 - .string "{PLAYER} obtained\n" - .string "the {STR_VAR_1}!$" - -Text_1A5E05:: @ 81A5E05 - .string "ãƒã‚±ãƒ¢ãƒ³ã‚’ もã¡ãれãªã„ã®ã§\n" - .string "パソコンã®ã€€ãƒœãƒƒã‚¯ã‚¹â€œ{STR_VAR_1}â€ã€€ã«\l" - .string "{STR_VAR_2}を ã¦ã‚“ãã†ã—ãŸï¼$" - -gUnknown_81A5E31:: @ 81A5E31 - .string "There's no more room for POKéMON!\p" - .string "The POKéMON BOXES are full and\n" - .string "can't accept any more!$" - -Text_1A5E89:: @ 81A5E89 - .string "First, you should restore your\n" - .string "POKéMON to full health.$" - -Text_1A5EC0:: @ 81A5EC0 - .string "Your POKéMON have been healed\n" - .string "to perfect health.\p" - .string "If your POKéMON's energy, HP,\n" - .string "is down, please come see us.\p" - .string "If you're planning to go far in the\n" - .string "field, you should buy some POTIONS\l" - .string "at the POKéMON MART.\p" - .string "We hope you excel!$" - -Text_1A5F9B:: @ 81A5F9B - .string "Your POKéMON have been healed\n" - .string "to perfect health.\p" - .string "We hope you excel!$" - -Text_1A5FDF:: @ 81A5FDF - .string "MOM: {PLAYER}!\n" - .string "Welcome home.\p" - .string "It sounds like you had quite\n" - .string "an experience.\p" - .string "Maybe you should take a quick\n" - .string "rest.$" - -Text_1A6046:: @ 81A6046 - .string "MOM: Oh, good! You and your\n" - .string "POKéMON are looking great.\p" - .string "I just heard from PROF. OAK.\p" - .string "He said that POKéMON's energy is\n" - .string "measured in HP.\p" - .string "If your POKéMON lose their HP,\n" - .string "you can restore them at any\l" - .string "POKéMON CENTER.\p" - .string "If you're going to travel far away,\n" - .string "the smart TRAINER stocks up on\l" - .string "POTIONS at the POKéMON MART.\p" - .string "Make me proud, honey!\p" - .string "Take care!$" - -Text_1A6197:: @ 81A6197 - .string "{PLAYER} is out of usable\n" - .string "POKéMON!\p" - .string "{PLAYER} panicked and lost Â¥{STR_VAR_1}…\p" - .string "… … … …\p" - .string "{PLAYER} whited out!$" - -Text_1A61E5:: @ 81A61E5 - .string "{PLAYER} is out of usable\n" - .string "POKéMON!\p" - .string "{PLAYER} whited out!$" - -Text_1A6211:: @ 81A6211 - .string "Hi, there!\n" - .string "May I help you?$" - -Text_1A622C:: @ 81A622C - .string "There is a questionnaire.\n" - .string "Would you like to fill it out?$" - -Text_1A6265:: @ 81A6265 - .string "Thank you for taking the time to\n" - .string "fill out our questionnaire.\p" - .string "Your feedback will be used for\n" - .string "future reference.$" - -Text_1A62D3:: @ 81A62D3 - .string "Oh, hello!\n" - .string "You know those words?\p" - .string "That means you must know about\n" - .string "the MYSTERY GIFT.\p" - .string "From now on, you should be\n" - .string "receiving MYSTERY GIFTS!$" - -Text_1A6359:: @ 81A6359 - .string "Once you save your game, you can\n" - .string "access the MYSTERY GIFT.$" - -Text_1A6393:: @ 81A6393 - .string "Thank you for accessing the\n" - .string "MYSTERY GIFT System.$" - -Text_1A63C4:: @ 81A63C4 - .string "The {STR_VAR_1} flew away!$" - -Text_1A63D6:: @ 81A63D6 - .string "ベッドãŒã€€ã‚る‥‥\n" - .string "ã‚„ã™ã‚“ã§ã„ã“ã†$" - -Text_1A63E8:: @ 81A63E8 - .string "{PLAYER} found a {STR_VAR_2}!\n" - .string "It contains {STR_VAR_1}.$" - -Text_1A6407:: @ 81A6407 - .string "ãŠã¤ã‹ã‚Œã•ã‚“ï¼\n" - .string "ã©ã“ã«ã€€ã„ããŸã„ã‚“ã ï¼Ÿ$" - -Text_1A641B:: @ 81A641B - .string "All right!\n" - .string "All aboard SEAGALLOP HI-SPEED {STR_VAR_1}!$" - -Text_1A6448:: @ 81A6448 - .string "Gyaoo!$" - -Text_1A644F:: @ 81A644F - .string "This move can be learned only\n" - .string "once. Is that okay?$" - - -EventScript_ResetAllMapFlags:: @ 81A6481 - setflag FLAG_0x02B - setflag FLAG_0x02C - setflag FLAG_0x033 - setflag FLAG_0x092 - setflag FLAG_0x035 - setflag FLAG_0x036 - setflag FLAG_0x037 - setflag FLAG_0x03C - setflag FLAG_0x03D - setflag FLAG_0x0A1 - setflag FLAG_0x03F - setflag FLAG_0x04F - setflag FLAG_0x05A - setflag FLAG_0x0A3 - setflag FLAG_0x0A4 - setflag FLAG_0x062 - setflag FLAG_0x06B - setflag FLAG_0x0A2 - setflag FLAG_0x08C - setflag FLAG_0x06C - setflag FLAG_0x06D - setflag FLAG_0x06E - setflag FLAG_0x06F - setflag FLAG_0x075 - setflag FLAG_0x074 - setflag FLAG_0x07B - setflag FLAG_0x07C - setflag FLAG_0x07D - setflag FLAG_0x076 - setflag FLAG_0x091 - setflag FLAG_0x097 - setflag FLAG_0x090 - setflag FLAG_0x094 - setflag FLAG_0x095 - setflag FLAG_0x096 - setflag FLAG_0x099 - setflag FLAG_0x0A5 - setflag FLAG_0x0A6 - setflag FLAG_0x0A7 - setflag FLAG_0x0A8 - setflag FLAG_0x0A9 - setflag FLAG_0x0AA - setflag FLAG_0x0AB - setflag FLAG_0x0AC - setflag FLAG_0x09D - setflag FLAG_0x09E - setflag FLAG_0x09F - setflag FLAG_0x0A0 - setflag FLAG_0x0AE - setvar VAR_0x4025, 500 - end - -EventScript_1A651A:: @ 81A651A - clearflag FLAG_0x09D - call EventScript_1A6551 - special sub_81130A8 - specialvar VAR_RESULT, IsNationalPokedexEnabled - compare_var_to_value VAR_RESULT, 0 - call_if 1, EventScript_1A653B - call EventScript_1A6541 - return - -EventScript_1A653B:: @ 81A653B - setvar VAR_MAP_SCENE_PALLET_TOWN, 2 - return - -EventScript_1A6541:: @ 81A6541 - clearflag FLAG_0x2F5 - clearflag FLAG_0x2F6 - clearflag FLAG_0x2F7 - return - -gUnknown_81A654B:: @ 81A654B - call EventScript_1A6551 - end - -EventScript_1A6551:: @ 81A6551 - clearflag FLAG_0x4B8 - clearflag FLAG_0x4B9 - clearflag FLAG_0x4BA - clearflag FLAG_0x4BB - clearflag FLAG_0x4BC - cleartrainerflag 438 - cleartrainerflag 439 - cleartrainerflag 440 - cleartrainerflag 739 - cleartrainerflag 740 - cleartrainerflag 741 - setvar VAR_0x4068, 0 - return - -EventScript_1A6578:: @ 81A6578 - special sub_8110AB4 - compare_var_to_value VAR_RESULT, 2 - goto_if_eq EventScript_1A7AE0 - message Text_1A5483 - waitmessage - multichoice 19, 8, 0, 2 - switch VAR_RESULT - case 0, EventScript_1A65B8 - case 1 EventScript_1A6663 - case 127, EventScript_1A6663 - end - -EventScript_1A65B8:: @ 81A65B8 - incrementgamestat 15 - message Text_1A54E1 - waitmessage - call EventScript_1A65CE - special sub_80CC524 - goto EventScript_1A65EC - end - -EventScript_1A65CE:: @ 81A65CE - applymovement VAR_LAST_TALKED, Movement_1A75E7 - waitmovement 0 - dofieldeffect 25 - waitfieldeffect 25 - applymovement VAR_LAST_TALKED, Movement_1A75ED - waitmovement 0 - special sp000_heal_pokemon - return - -EventScript_1A65EC:: @ 81A65EC - specialvar VAR_RESULT, sub_80CD074 - compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_1A661D - specialvar VAR_RESULT, sp182_move_string - copyvar VAR_0x8008, VAR_RESULT - compare_var_to_value VAR_0x8008, 0 - goto_if_eq EventScript_1A661D - compare_var_to_value VAR_0x8008, 1 - goto_if_eq EventScript_1A6636 - end - -EventScript_1A661D:: @ 81A661D - message Text_1A552B - waitmessage - applymovement VAR_LAST_TALKED, Movement_1A666C - waitmovement 0 - msgbox Text_1A5511 - return - -EventScript_1A6636:: @ 81A6636 - checkflag 2114 - goto_if_eq EventScript_1A661D - msgbox Text_1A552B - setflag 2114 - message Text_1BCCCA - waitmessage - applymovement VAR_LAST_TALKED, Movement_1A666C - waitmovement 0 - msgbox Text_1A5511 - return - -EventScript_1A6663:: @ 81A6663 - msgbox Text_1A5511 - return - -Movement_1A666C:: @ 81A666C - step_5b - step_1a - step_end - -EventScript_1A666F:: @ 81A666F - copyvar VAR_MON_BOX_POS, VAR_MON_BOX_ID - return - -EventScript_1A6675:: @ 81A6675 - copyvar VAR_MON_BOX_ID, VAR_MON_BOX_POS - return - - - -gStdScript_0:: @ 81A667B - copyvar VAR_MON_BOX_POS, VAR_MON_BOX_ID - textcolor 3 - additem VAR_0x8000, VAR_0x8001 - copyvar VAR_0x8007, VAR_RESULT - call EventScript_1A6697 - copyvar VAR_MON_BOX_ID, VAR_MON_BOX_POS - return - -EventScript_1A6697:: @ 81A6697 - bufferitemnameplural 1, VAR_0x8000, VAR_0x8001 - checkitemtype VAR_0x8000 - call EventScript_1A66BC - compare_var_to_value VAR_0x8007, 1 - call_if 1, EventScript_1A6749 - compare_var_to_value VAR_0x8007, 0 - call_if 1, EventScript_1A675E - return - -EventScript_1A66BC:: @ 81A66BC - copyvar VAR_0x8000, VAR_RESULT - compare_var_to_value VAR_0x8000, 1 - goto_if_eq EventScript_1A66F9 - compare_var_to_value VAR_0x8000, 2 - goto_if_eq EventScript_1A6709 - compare_var_to_value VAR_0x8000, 3 - goto_if_eq EventScript_1A6719 - compare_var_to_value VAR_0x8000, 4 - goto_if_eq EventScript_1A6729 - compare_var_to_value VAR_0x8000, 5 - goto_if_eq EventScript_1A6739 - end - -EventScript_1A66F9:: @ 81A66F9 - getstdstring 2, 24 - compare_var_to_value VAR_0x8007, 1 - call_if 1, EventScript_1A6764 - return - -EventScript_1A6709:: @ 81A6709 - getstdstring 2, 25 - compare_var_to_value VAR_0x8007, 1 - call_if 1, EventScript_1A6764 - return - -EventScript_1A6719:: @ 81A6719 - getstdstring 2, 26 - compare_var_to_value VAR_0x8007, 1 - call_if 1, EventScript_1A6764 - return - -EventScript_1A6729:: @ 81A6729 - getstdstring 2, 27 - compare_var_to_value VAR_0x8007, 1 - call_if 1, EventScript_1A6768 - return - -EventScript_1A6739:: @ 81A6739 - getstdstring 2, 28 - compare_var_to_value VAR_0x8007, 1 - call_if 1, EventScript_1A6764 - return - -EventScript_1A6749:: @ 81A6749 - message Text_1A51F6 - waitfanfare - waitmessage - msgbox gUnknown_81A5218 - setvar VAR_RESULT, 1 - return - -EventScript_1A675E:: @ 81A675E - setvar VAR_RESULT, 0 - return - -EventScript_1A6764:: @ 81A6764 - playfanfare MUS_FANFA1 - return - -EventScript_1A6768:: @ 81A6768 - playfanfare MUS_FANFA1 - return - -gStdScript_7:: @ 81A676C - adddecor VAR_0x8000 - copyvar VAR_0x8007, VAR_RESULT - call EventScript_1A677A - return - -EventScript_1A677A:: @ 81A677A - getdecorname 1, VAR_0x8000 - compare_var_to_value VAR_0x8007, 1 - call_if 1, EventScript_1A6795 - compare_var_to_value VAR_0x8007, 0 - call_if 1, EventScript_1A67AD - return - -EventScript_1A6795:: @ 81A6795 - playfanfare MUS_FANFA4 - message Text_1A52F0 - waitfanfare - waitmessage - msgbox gUnknown_81A532F - setvar VAR_RESULT, 1 - return - -EventScript_1A67AD:: @ 81A67AD - setvar VAR_RESULT, 0 - return - -gStdScript_1:: @ 81A67B3 - lock - faceplayer - waitse - copyvar VAR_0x8004, VAR_0x8000 - copyvar VAR_0x8005, VAR_0x8001 - checkitemspace VAR_0x8000, VAR_0x8001 - copyvar VAR_0x8007, VAR_RESULT - getitemname 1, VAR_0x8000 - checkitemtype VAR_0x8000 - call EventScript_1A66BC - compare_var_to_value VAR_0x8007, 1 - call_if 1, EventScript_1A67EE - compare_var_to_value VAR_0x8007, 0 - call_if 1, EventScript_1A682D - release - return - -EventScript_1A67EE:: @ 81A67EE - removeobject VAR_LAST_TALKED - additem VAR_0x8004, VAR_0x8005 - specialvar VAR_RESULT, sub_80CC8CC - copyvar VAR_0x8008, VAR_RESULT - compare_var_to_value VAR_0x8008, 1 - call_if 1, EventScript_1A6821 - compare_var_to_value VAR_0x8008, 0 - call_if 1, EventScript_1A6827 - waitfanfare - waitmessage - msgbox gUnknown_81A5218 - return - -EventScript_1A6821:: @ 81A6821 - message Text_1A63E8 - return - -EventScript_1A6827:: @ 81A6827 - message Text_1A5231 - return - -EventScript_1A682D:: @ 81A682D - msgbox Text_1A51F6 - msgbox gUnknown_81A5242 - setvar VAR_RESULT, 0 - return - -EventScript_PickUpHiddenItem:: @ 81A6843 - lockall - textcolor 3 - waitse - compare_var_to_value VAR_0x8005, 0 - goto_if_eq EventScript_PickUpHiddenCoins - call EventScript_GiveItem - compare_var_to_value VAR_0x8007, 1 - goto_if_eq EventScript_ItemInPocketMessage - compare_var_to_value VAR_0x8007, 0 - goto_if_eq EventScript_BagIsFullMessage - end - -EventScript_GiveItem:: - additem VAR_0x8005, VAR_0x8006 - copyvar VAR_0x8007, VAR_RESULT - getitemname 1, VAR_0x8005 - checkitemtype VAR_0x8005 - call EventScript_1A66BC - return - -EventScript_ItemInPocketMessage:: - compare_var_to_value VAR_0x8006, 1 - call_if 1, EventScript_FoundSingleItemMessage - compare_var_to_value VAR_0x8006, 1 - call_if 5, EventScript_FoundMultipleItemsMessage - waitfanfare - waitmessage - msgbox gUnknown_81A5218 - special Special_SetHiddenItemFlag - releaseall - end - -EventScript_FoundSingleItemMessage:: - message Text_1A5231 - return - -EventScript_FoundCoinsMessage:: - getnumberstring 0, VAR_0x8006 - message Text_1A525C - return - -EventScript_FoundMultipleItemsMessage:: - getnumberstring 0, VAR_0x8006 - message Text_1A52DD - return - -EventScript_BagIsFullMessage:: - msgbox Text_1A5231 - msgbox gUnknown_81A5242 - setvar VAR_RESULT, 0 - releaseall - end - -EventScript_PickUpHiddenCoins:: - checkflag FLAG_GOT_COIN_CASE - goto_if 0, EventScript_HiddenCoinsButNoCoinCase - checkcoins VAR_RESULT - specialvar VAR_RESULT, Special_CheckAddCoins - compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_HiddenCoinsButTheCoinCaseIsFull - givecoins VAR_0x8006 - getstdstring 1, 0x17 - call EventScript_1A6764 - call EventScript_FoundCoinsMessage - waitfanfare - waitmessage - msgbox Text_1A526C - special Special_SetHiddenItemFlag - releaseall - end - -EventScript_HiddenCoinsButTheCoinCaseIsFull:: - getnumberstring 0, VAR_0x8006 - getstdstring 1, 0x17 - msgbox Text_1A525C - msgbox Text_1A5294 - setvar VAR_RESULT, 0 - releaseall - end - -EventScript_HiddenCoinsButNoCoinCase:: - getnumberstring 0, VAR_0x8006 - getstdstring 1, 0x17 - msgbox Text_1A525C - msgbox Text_1A52B4 - setvar VAR_RESULT, 0 - releaseall - end - -gUnknown_81A6955:: @ 81A6955 - .incbin "baserom.gba", 0x1A6955, 0x173 - -gUnknown_81A6AC8:: @ 81A6AC8 - .incbin "baserom.gba", 0x1A6AC8, 0x45 - -gUnknown_81A6B0D:: @ 81A6B0D - .incbin "baserom.gba", 0x1A6B0D, 0xB - -EventScript_1A6B18:: @ 81A6B18 - .incbin "baserom.gba", 0x1A6B18, 0xE1 - -EventScript_1A6BF9:: @ 81A6BF9 - .incbin "baserom.gba", 0x1A6BF9, 0x2D - -EventScript_1A6C26:: @ 81A6C26 - .incbin "baserom.gba", 0x1A6C26, 0xC - -gUnknown_81A6C32:: @ 81A6C32 - .incbin "baserom.gba", 0x1A6C32, 0xE5 - -gUnknown_81A6D17:: @ 81A6D17 - .incbin "baserom.gba", 0x1A6D17, 0x56 - -gUnknown_81A6D6D:: @ 81A6D6D - .incbin "baserom.gba", 0x1A6D6D, 0x72 - -gUnknown_81A6DDF:: @ 81A6DDF - .incbin "baserom.gba", 0x1A6DDF, 0x57 - -gUnknown_81A6E36:: @ 81A6E36 - .incbin "baserom.gba", 0x1A6E36, 0x6E - -gUnknown_81A6EA4:: @ 81A6EA4 - .incbin "baserom.gba", 0x1A6EA4, 0x67 - -gUnknown_81A6F0B:: @ 81A6F0B - .incbin "baserom.gba", 0x1A6F0B, 0x66 - -gUnknown_81A6F71:: @ 81A6F71 - .incbin "baserom.gba", 0x1A6F71, 0x3A - -gUnknown_81A6FAB:: @ 81A6FAB - .incbin "baserom.gba", 0x1A6FAB, 0x46 - -gUnknown_81A6FF1:: @ 81A6FF1 - .incbin "baserom.gba", 0x1A6FF1, 0x40 - -gUnknown_81A7031:: @ 81A7031 - .incbin "baserom.gba", 0x1A7031, 0x32 - -gUnknown_81A7063:: @ 81A7063 - .incbin "baserom.gba", 0x1A7063, 0x42 - -gUnknown_81A70A5:: @ 81A70A5 - .incbin "baserom.gba", 0x1A70A5, 0x33 - -gUnknown_81A70D8:: @ 81A70D8 - .incbin "baserom.gba", 0x1A70D8, 0x30 - -gUnknown_81A7108:: @ 81A7108 - .incbin "baserom.gba", 0x1A7108, 0x2F - -gUnknown_81A7137:: @ 81A7137 - .incbin "baserom.gba", 0x1A7137, 0x3E - -gUnknown_81A7175:: @ 81A7175 - .incbin "baserom.gba", 0x1A7175, 0x11C - -Text_1A7291:: @ 81A7291 - .incbin "baserom.gba", 0x1A7291, 0x1C - -gUnknown_81A72AD:: @ 81A72AD - .incbin "baserom.gba", 0x1A72AD, 0xCE - -EventScript_1A737B:: @ 81A737B - .incbin "baserom.gba", 0x1A737B, 0x170 - -EventScript_1A74EB:: @ 81A74EB - .incbin "baserom.gba", 0x1A74EB, 0x1B - -EventScript_1A7506:: @ 81A7506 - .incbin "baserom.gba", 0x1A7506, 0x19 - -EventScript_1A751F:: @ 81A751F - .incbin "baserom.gba", 0x1A751F, 0x19 - -EventScript_1A7538:: @ 81A7538 - .incbin "baserom.gba", 0x1A7538, 0x2B - -EventScript_1A7563:: @ 81A7563 - .incbin "baserom.gba", 0x1A7563, 0x26 - -EventScript_1A7589:: @ 81A7589 - .incbin "baserom.gba", 0x1A7589, 0x13 - -EventScript_1A759C:: @ 81A759C - .incbin "baserom.gba", 0x1A759C, 0x39 - -EventScript_1A75D5:: @ 81A75D5 - .incbin "baserom.gba", 0x1A75D5, 0x4 - -Movement_1A75D9:: @ 81A75D9 - .incbin "baserom.gba", 0x1A75D9, 0x2 - -Movement_1A75DB:: @ 81A75DB - .incbin "baserom.gba", 0x1A75DB, 0x2 - -Movement_1A75DD:: @ 81A75DD - .incbin "baserom.gba", 0x1A75DD, 0x4 - -Movement_1A75E1:: @ 81A75E1 - .incbin "baserom.gba", 0x1A75E1, 0x4 - -Movement_1A75E5:: @ 81A75E5 - .incbin "baserom.gba", 0x1A75E5, 0x2 - -Movement_1A75E7:: @ 81A75E7 - .incbin "baserom.gba", 0x1A75E7, 0x2 - -Movement_1A75E9:: @ 81A75E9 - .incbin "baserom.gba", 0x1A75E9, 0x2 - -Movement_1A75EB:: @ 81A75EB - .incbin "baserom.gba", 0x1A75EB, 0x2 - -Movement_1A75ED:: @ 81A75ED - .incbin "baserom.gba", 0x1A75ED, 0x2 - -Movement_1A75EF:: @ 81A75EF - .incbin "baserom.gba", 0x1A75EF, 0x2 - -Movement_1A75F1:: @ 81A75F1 - .incbin "baserom.gba", 0x1A75F1, 0x15 - -gUnknown_81A7606:: @ 81A7606 - .incbin "baserom.gba", 0x1A7606, 0x9 - -gUnknown_81A760F:: @ 81A760F - .incbin "baserom.gba", 0x1A760F, 0x9 - -gUnknown_81A7618:: @ 81A7618 - .incbin "baserom.gba", 0x1A7618, 0x9 - -gUnknown_81A7621:: @ 81A7621 - .incbin "baserom.gba", 0x1A7621, 0x9 - -gUnknown_81A762A:: @ 81A762A - .incbin "baserom.gba", 0x1A762A, 0x9 - -gUnknown_81A7633:: @ 81A7633 - .incbin "baserom.gba", 0x1A7633, 0x9 - -gUnknown_81A763C:: @ 81A763C - .incbin "baserom.gba", 0x1A763C, 0x9 - -gUnknown_81A7645:: @ 81A7645 - .incbin "baserom.gba", 0x1A7645, 0x9 - -gUnknown_81A764E:: @ 81A764E - .incbin "baserom.gba", 0x1A764E, 0x9 - -gUnknown_81A7657:: @ 81A7657 - .incbin "baserom.gba", 0x1A7657, 0x9 - -gUnknown_81A7660:: @ 81A7660 - .incbin "baserom.gba", 0x1A7660, 0x9 - -gUnknown_81A7669:: @ 81A7669 - .incbin "baserom.gba", 0x1A7669, 0x9 - -gUnknown_81A7672:: @ 81A7672 - .incbin "baserom.gba", 0x1A7672, 0x9 - -gUnknown_81A767B:: @ 81A767B - .incbin "baserom.gba", 0x1A767B, 0x9 - -gUnknown_81A7684:: @ 81A7684 - .incbin "baserom.gba", 0x1A7684, 0x9 - -gUnknown_81A768D:: @ 81A768D - .incbin "baserom.gba", 0x1A768D, 0x9 - -gUnknown_81A7696:: @ 81A7696 - .incbin "baserom.gba", 0x1A7696, 0x9 - -gUnknown_81A769F:: @ 81A769F - .incbin "baserom.gba", 0x1A769F, 0x9 - -gUnknown_81A76A8:: @ 81A76A8 - .incbin "baserom.gba", 0x1A76A8, 0x9 - -gUnknown_81A76B1:: @ 81A76B1 - .incbin "baserom.gba", 0x1A76B1, 0x9 - -gUnknown_81A76BA:: @ 81A76BA - .incbin "baserom.gba", 0x1A76BA, 0x9 - -gUnknown_81A76C3:: @ 81A76C3 - .incbin "baserom.gba", 0x1A76C3, 0x9 - -gUnknown_81A76CC:: @ 81A76CC - .incbin "baserom.gba", 0x1A76CC, 0x9 - -gUnknown_81A76D5:: @ 81A76D5 - .incbin "baserom.gba", 0x1A76D5, 0x9 - -gUnknown_81A76DE:: @ 81A76DE - .incbin "baserom.gba", 0x1A76DE, 0x9 - -gUnknown_81A76E7:: @ 81A76E7 - .incbin "baserom.gba", 0x1A76E7, 0x9 - -gUnknown_81A76F0:: @ 81A76F0 - .incbin "baserom.gba", 0x1A76F0, 0x9 - -gUnknown_81A76F9:: @ 81A76F9 - .incbin "baserom.gba", 0x1A76F9, 0x9 - -gUnknown_81A7702:: @ 81A7702 - .incbin "baserom.gba", 0x1A7702, 0x9E - -gUnknown_81A77A0:: @ 81A77A0 - .incbin "baserom.gba", 0x1A77A0, 0x9 - -EventScript_1A77A9:: @ 81A77A9 - .incbin "baserom.gba", 0x1A77A9, 0x1 - -EventScript_1A77AA:: @ 81A77AA - .incbin "baserom.gba", 0x1A77AA, 0x6 - -EventScript_1A77B0:: @ 81A77B0 - .incbin "baserom.gba", 0x1A77B0, 0x6 - -Route16_NorthEntrance_1F_EventScript_1A77B6:: @ 81A77B6 -Route18_EastEntrance_1F_EventScript_1A77B6:: @ 81A77B6 - .incbin "baserom.gba", 0x1A77B6, 0xB - -Route16_NorthEntrance_1F_EventScript_1A77C1:: @ 81A77C1 -Route18_EastEntrance_1F_EventScript_1A77C1:: @ 81A77C1 - .incbin "baserom.gba", 0x1A77C1, 0x42 - -EventScript_1A7803:: @ 81A7803 - .incbin "baserom.gba", 0x1A7803, 0x69 - -EventScript_1A786C:: @ 81A786C - .incbin "baserom.gba", 0x1A786C, 0x102 - -EventScript_1A796E:: @ 81A796E - .incbin "baserom.gba", 0x1A796E, 0x14B - -EventScript_1A7AB9:: @ 81A7AB9 - .incbin "baserom.gba", 0x1A7AB9, 0x4 - -EventScript_1A7ABD:: @ 81A7ABD - .incbin "baserom.gba", 0x1A7ABD, 0xA - -EventScript_1A7AC7:: @ 81A7AC7 - .incbin "baserom.gba", 0x1A7AC7, 0xA - -EventScript_1A7AD1:: @ 81A7AD1 - .incbin "baserom.gba", 0x1A7AD1, 0xA - -gUnknown_81A7ADB:: @ 81A7ADB - .incbin "baserom.gba", 0x1A7ADB, 0x5 - -EventScript_1A7AE0:: @ 81A7AE0 - .incbin "baserom.gba", 0x1A7AE0, 0x2 - -EventScript_1A7AE2:: @ 81A7AE2 - .incbin "baserom.gba", 0x1A7AE2, 0x98 - -EventScript_1A7B7A:: @ 81A7B7A - .incbin "baserom.gba", 0x1A7B7A, 0x1C4 - -EventScript_1A7D3E:: @ 81A7D3E - .incbin "baserom.gba", 0x1A7D3E, 0x134 - -EventScript_1A7E72:: @ 81A7E72 - .incbin "baserom.gba", 0x1A7E72, 0xDA - -EventScript_1A7F4C:: @ 81A7F4C - .incbin "baserom.gba", 0x1A7F4C, 0x1FD - -EventScript_1A8149:: @ 81A8149 - .incbin "baserom.gba", 0x1A8149, 0x2E - -EventScript_1A8177:: @ 81A8177 - .incbin "baserom.gba", 0x1A8177, 0x2E - -EventScript_1A81A5:: @ 81A81A5 - .incbin "baserom.gba", 0x1A81A5, 0x37 - -EventScript_1A81DC:: @ 81A81DC - .incbin "baserom.gba", 0x1A81DC, 0x37 - -EventScript_1A8213:: @ 81A8213 - .incbin "baserom.gba", 0x1A8213, 0x2E - -EventScript_1A8241:: @ 81A8241 - .incbin "baserom.gba", 0x1A8241, 0x2E - -EventScript_1A826F:: @ 81A826F - .incbin "baserom.gba", 0x1A826F, 0x37 - -EventScript_1A82A6:: @ 81A82A6 - .incbin "baserom.gba", 0x1A82A6, 0x37 - -EventScript_1A82DD:: @ 81A82DD - .incbin "baserom.gba", 0x1A82DD, 0x37 - -EventScript_1A8314:: @ 81A8314 - .incbin "baserom.gba", 0x1A8314, 0x37 - -EventScript_1A834B:: @ 81A834B - .incbin "baserom.gba", 0x1A834B, 0x2E - -EventScript_1A8379:: @ 81A8379 - .incbin "baserom.gba", 0x1A8379, 0x2E - -EventScript_1A83A7:: @ 81A83A7 - .incbin "baserom.gba", 0x1A83A7, 0x2E - -EventScript_1A83D5:: @ 81A83D5 - .incbin "baserom.gba", 0x1A83D5, 0x37 - -EventScript_1A840C:: @ 81A840C - .incbin "baserom.gba", 0x1A840C, 0x37 - -EventScript_1A8443:: @ 81A8443 - .incbin "baserom.gba", 0x1A8443, 0x37 - -EventScript_1A847A:: @ 81A847A - .incbin "baserom.gba", 0x1A847A, 0x2E - -EventScript_1A84A8:: @ 81A84A8 - .incbin "baserom.gba", 0x1A84A8, 0x2E - -EventScript_1A84D6:: @ 81A84D6 - .incbin "baserom.gba", 0x1A84D6, 0x2E - -EventScript_1A8504:: @ 81A8504 - .incbin "baserom.gba", 0x1A8504, 0x417 - -SilphCo_2F_EventScript_1A891B:: @ 81A891B - .incbin "baserom.gba", 0x1A891B, 0x1A - -SilphCo_2F_EventScript_1A8935:: @ 81A8935 - .incbin "baserom.gba", 0x1A8935, 0x1A - -SilphCo_3F_EventScript_1A894F:: @ 81A894F - .incbin "baserom.gba", 0x1A894F, 0x1A - -SilphCo_3F_EventScript_1A8969:: @ 81A8969 - .incbin "baserom.gba", 0x1A8969, 0x1A - -SilphCo_4F_EventScript_1A8983:: @ 81A8983 - .incbin "baserom.gba", 0x1A8983, 0x1A - -SilphCo_4F_EventScript_1A899D:: @ 81A899D - .incbin "baserom.gba", 0x1A899D, 0x1A - -SilphCo_5F_EventScript_1A89B7:: @ 81A89B7 - .incbin "baserom.gba", 0x1A89B7, 0x1A - -SilphCo_5F_EventScript_1A89D1:: @ 81A89D1 - .incbin "baserom.gba", 0x1A89D1, 0x1A - -SilphCo_5F_EventScript_1A89EB:: @ 81A89EB - .incbin "baserom.gba", 0x1A89EB, 0x1A - -SilphCo_6F_EventScript_1A8A05:: @ 81A8A05 - .incbin "baserom.gba", 0x1A8A05, 0x1A - -SilphCo_7F_EventScript_1A8A1F:: @ 81A8A1F - .incbin "baserom.gba", 0x1A8A1F, 0x1A - -SilphCo_7F_EventScript_1A8A39:: @ 81A8A39 - .incbin "baserom.gba", 0x1A8A39, 0x1A - -SilphCo_7F_EventScript_1A8A53:: @ 81A8A53 - .incbin "baserom.gba", 0x1A8A53, 0x1A - -SilphCo_8F_EventScript_1A8A6D:: @ 81A8A6D - .incbin "baserom.gba", 0x1A8A6D, 0x1A - -SilphCo_9F_EventScript_1A8A87:: @ 81A8A87 - .incbin "baserom.gba", 0x1A8A87, 0x1A - -SilphCo_9F_EventScript_1A8AA1:: @ 81A8AA1 - .incbin "baserom.gba", 0x1A8AA1, 0x1A - -SilphCo_9F_EventScript_1A8ABB:: @ 81A8ABB - .incbin "baserom.gba", 0x1A8ABB, 0x1A - -SilphCo_9F_EventScript_1A8AD5:: @ 81A8AD5 - .incbin "baserom.gba", 0x1A8AD5, 0x1A - -SilphCo_10F_EventScript_1A8AEF:: @ 81A8AEF - .incbin "baserom.gba", 0x1A8AEF, 0x1A - -SilphCo_11F_EventScript_1A8B09:: @ 81A8B09 - .incbin "baserom.gba", 0x1A8B09, 0x11E - -EventScript_1A8C27:: @ 81A8C27 - .incbin "baserom.gba", 0x1A8C27, 0xC - -EventScript_1A8C33:: @ 81A8C33 - .incbin "baserom.gba", 0x1A8C33, 0x9 - -EventScript_1A8C3C:: @ 81A8C3C - .incbin "baserom.gba", 0x1A8C3C, 0x71 - -EventScript_1A8CAD:: @ 81A8CAD - .incbin "baserom.gba", 0x1A8CAD, 0x10 - -EventScript_1A8CBD:: @ 81A8CBD - .incbin "baserom.gba", 0x1A8CBD, 0xC - -EventScript_1A8CC9:: @ 81A8CC9 - .incbin "baserom.gba", 0x1A8CC9, 0x10 - -EventScript_1A8CD9:: @ 81A8CD9 - .incbin "baserom.gba", 0x1A8CD9, 0x14 - -gUnknown_81A8CED:: @ 81A8CED - .incbin "baserom.gba", 0x1A8CED, 0x9 - -CeruleanCity_PokemonCenter_2F_EventScript_1A8CF6:: @ 81A8CF6 -CinnabarIsland_PokemonCenter_2F_EventScript_1A8CF6:: @ 81A8CF6 -FiveIsland_PokemonCenter_2F_EventScript_1A8CF6:: @ 81A8CF6 -FuchsiaCity_PokemonCenter_2F_EventScript_1A8CF6:: @ 81A8CF6 -OneIsland_PokemonCenter_2F_EventScript_1A8CF6:: @ 81A8CF6 -PewterCity_PokemonCenter_2F_EventScript_1A8CF6:: @ 81A8CF6 -SevenIsland_PokemonCenter_2F_EventScript_1A8CF6:: @ 81A8CF6 -VermilionCity_PokemonCenter_2F_EventScript_1A8CF6:: @ 81A8CF6 -FourIsland_PokemonCenter_2F_EventScript_1A8CF6:: @ 81A8CF6 -SixIsland_PokemonCenter_2F_EventScript_1A8CF6:: @ 81A8CF6 -ThreeIsland_PokemonCenter_2F_EventScript_1A8CF6:: @ 81A8CF6 -TwoIsland_PokemonCenter_2F_EventScript_1A8CF6:: @ 81A8CF6 -Route10_PokemonCenter_2F_EventScript_1A8CF6:: @ 81A8CF6 -Route10_PokemonCenter_2F_EventScript_1A8CF6:: @ 81A8CF6 -Route4_PokemonCenter_2F_EventScript_1A8CF6:: @ 81A8CF6 -SaffronCity_PokemonCenter_2F_EventScript_1A8CF6:: @ 81A8CF6 -IndigoPlateau_PokemonCenter_2F_EventScript_1A8CF6:: @ 81A8CF6 -CeladonCity_PokemonCenter_2F_EventScript_1A8CF6:: @ 81A8CF6 -LavenderTown_PokemonCenter_2F_EventScript_1A8CF6:: @ 81A8CF6 -ViridianCity_PokemonCenter_2F_EventScript_1A8CF6:: @ 81A8CF6 - .incbin "baserom.gba", 0x1A8CF6, 0x6 - -CeruleanCity_PokemonCenter_2F_EventScript_1A8CFC:: @ 81A8CFC -CinnabarIsland_PokemonCenter_2F_EventScript_1A8CFC:: @ 81A8CFC -FiveIsland_PokemonCenter_2F_EventScript_1A8CFC:: @ 81A8CFC -FuchsiaCity_PokemonCenter_2F_EventScript_1A8CFC:: @ 81A8CFC -OneIsland_PokemonCenter_2F_EventScript_1A8CFC:: @ 81A8CFC -PewterCity_PokemonCenter_2F_EventScript_1A8CFC:: @ 81A8CFC -SevenIsland_PokemonCenter_2F_EventScript_1A8CFC:: @ 81A8CFC -VermilionCity_PokemonCenter_2F_EventScript_1A8CFC:: @ 81A8CFC -FourIsland_PokemonCenter_2F_EventScript_1A8CFC:: @ 81A8CFC -SixIsland_PokemonCenter_2F_EventScript_1A8CFC:: @ 81A8CFC -ThreeIsland_PokemonCenter_2F_EventScript_1A8CFC:: @ 81A8CFC -TwoIsland_PokemonCenter_2F_EventScript_1A8CFC:: @ 81A8CFC -Route10_PokemonCenter_2F_EventScript_1A8CFC:: @ 81A8CFC -Route10_PokemonCenter_2F_EventScript_1A8CFC:: @ 81A8CFC -Route4_PokemonCenter_2F_EventScript_1A8CFC:: @ 81A8CFC -SaffronCity_PokemonCenter_2F_EventScript_1A8CFC:: @ 81A8CFC -IndigoPlateau_PokemonCenter_2F_EventScript_1A8CFC:: @ 81A8CFC -CeladonCity_PokemonCenter_2F_EventScript_1A8CFC:: @ 81A8CFC -LavenderTown_PokemonCenter_2F_EventScript_1A8CFC:: @ 81A8CFC -ViridianCity_PokemonCenter_2F_EventScript_1A8CFC:: @ 81A8CFC - .incbin "baserom.gba", 0x1A8CFC, 0x6 - -CeruleanCity_PokemonCenter_2F_EventScript_1A8D02:: @ 81A8D02 -CinnabarIsland_PokemonCenter_2F_EventScript_1A8D02:: @ 81A8D02 -FiveIsland_PokemonCenter_2F_EventScript_1A8D02:: @ 81A8D02 -FuchsiaCity_PokemonCenter_2F_EventScript_1A8D02:: @ 81A8D02 -OneIsland_PokemonCenter_2F_EventScript_1A8D02:: @ 81A8D02 -PewterCity_PokemonCenter_2F_EventScript_1A8D02:: @ 81A8D02 -SevenIsland_PokemonCenter_2F_EventScript_1A8D02:: @ 81A8D02 -VermilionCity_PokemonCenter_2F_EventScript_1A8D02:: @ 81A8D02 -FourIsland_PokemonCenter_2F_EventScript_1A8D02:: @ 81A8D02 -SixIsland_PokemonCenter_2F_EventScript_1A8D02:: @ 81A8D02 -ThreeIsland_PokemonCenter_2F_EventScript_1A8D02:: @ 81A8D02 -TwoIsland_PokemonCenter_2F_EventScript_1A8D02:: @ 81A8D02 -Route10_PokemonCenter_2F_EventScript_1A8D02:: @ 81A8D02 -Route10_PokemonCenter_2F_EventScript_1A8D02:: @ 81A8D02 -Route4_PokemonCenter_2F_EventScript_1A8D02:: @ 81A8D02 -SaffronCity_PokemonCenter_2F_EventScript_1A8D02:: @ 81A8D02 -IndigoPlateau_PokemonCenter_2F_EventScript_1A8D02:: @ 81A8D02 -CeladonCity_PokemonCenter_2F_EventScript_1A8D02:: @ 81A8D02 -LavenderTown_PokemonCenter_2F_EventScript_1A8D02:: @ 81A8D02 -ViridianCity_PokemonCenter_2F_EventScript_1A8D02:: @ 81A8D02 - .incbin "baserom.gba", 0x1A8D02, 0x6 - -VermilionCity_PokemonCenter_1F_EventScript_1A8D08:: @ 81A8D08 - .incbin "baserom.gba", 0x1A8D08, 0x41 - -EventScript_ItemfinderDigUpUnderfootItem:: @ 81A8D49 - lockall - textcolor 3 - waitse - call EventScript_GiveItem - compare_var_to_value VAR_0x8007, 1 - goto_if_eq EventScript_DigUpItemPutInPocket - compare_var_to_value VAR_0x8007, 0 - goto_if_eq EventScript_DigUpItemBagIsFull - end - -EventScript_DigUpItemPutInPocket:: - message Text_1A5700 - waitfanfare - waitmessage - delay 60 - msgbox gUnknown_81A5218 - special Special_SetHiddenItemFlag - releaseall - end - -EventScript_DigUpItemBagIsFull:: - msgbox Text_1A5700 - msgbox gUnknown_81A5242 - setvar VAR_RESULT, 0 - releaseall - end - -gUnknown_81A8D97:: @ 81A8D97 - .incbin "baserom.gba", 0x1A8D97, 0x41 - -gUnknown_81A8DD8:: @ 81A8DD8 - .incbin "baserom.gba", 0x1A8DD8, 0x25 - -gUnknown_81A8DFD:: @ 81A8DFD - .incbin "baserom.gba", 0x1A8DFD, 0x5B - -gStdScript_8:: @ 81A8E58 - .incbin "baserom.gba", 0x1A8E58, 0x6D - -EventScript_1A8EC5:: @ 81A8EC5 - .incbin "baserom.gba", 0x1A8EC5, 0x8F - -EventScript_1A8F54:: @ 81A8F54 - .incbin "baserom.gba", 0x1A8F54, 0x9A - -EventScript_1A8FEE:: @ 81A8FEE - .incbin "baserom.gba", 0x1A8FEE, 0xB - -EventScript_1A8FF9:: @ 81A8FF9 - .incbin "baserom.gba", 0x1A8FF9, 0xB - -EventScript_1A9004:: @ 81A9004 - .incbin "baserom.gba", 0x1A9004, 0xB - -EventScript_1A900F:: @ 81A900F - .incbin "baserom.gba", 0x1A900F, 0xCB - -EventScript_1A90DA:: @ 81A90DA - .incbin "baserom.gba", 0x1A90DA, 0x1C - -EventScript_1A90F6:: @ 81A90F6 - .incbin "baserom.gba", 0x1A90F6, 0x12 - -EventScript_1A9108:: @ 81A9108 - .incbin "baserom.gba", 0x1A9108, 0x16 - -EventScript_1A911E:: @ 81A911E - .incbin "baserom.gba", 0x1A911E, 0xB7 - -EventScript_1A91D5:: @ 81A91D5 - .incbin "baserom.gba", 0x1A91D5, 0x58 - -EventScript_1A922D:: @ 81A922D - .incbin "baserom.gba", 0x1A922D, 0x9 - -EventScript_1A9236:: @ 81A9236 - .incbin "baserom.gba", 0x1A9236, 0x15 - -EventScript_1A924B:: @ 81A924B - .incbin "baserom.gba", 0x1A924B, 0x13 - -EventScript_1A925E:: @ 81A925E - .incbin "baserom.gba", 0x1A925E, 0xE - -EventScript_1A926C:: @ 81A926C - .incbin "baserom.gba", 0x1A926C, 0x10 - -EventScript_1A927C:: @ 81A927C - .incbin "baserom.gba", 0x1A927C, 0xC - -gUnknown_81A9288:: @ 81A9288 - .incbin "baserom.gba", 0x1A9288, 0x3 - -gUnknown_81A928B:: @ 81A928B - .incbin "baserom.gba", 0x1A928B, 0x5 - -gUnknown_81A9290:: @ 81A9290 - .incbin "baserom.gba", 0x1A9290, 0x6 - -gUnknown_81A9296:: @ 81A9296 - .incbin "baserom.gba", 0x1A9296, 0x5 - -gUnknown_81A929B:: @ 81A929B - .incbin "baserom.gba", 0x1A929B, 0x4 - -gUnknown_81A929F:: @ 81A929F - .incbin "baserom.gba", 0x1A929F, 0x4 - -gUnknown_81A92A3:: @ 81A92A3 - .incbin "baserom.gba", 0x1A92A3, 0x4 - -gUnknown_81A92A7:: @ 81A92A7 - .incbin "baserom.gba", 0x1A92A7, 0x4 - -gUnknown_81A92AB:: @ 81A92AB - .incbin "baserom.gba", 0x1A92AB, 0x4 - -gUnknown_81A92AF:: @ 81A92AF - .incbin "baserom.gba", 0x1A92AF, 0x4 - -gUnknown_81A92B3:: @ 81A92B3 - .incbin "baserom.gba", 0x1A92B3, 0x4 - -gUnknown_81A92B7:: @ 81A92B7 - .incbin "baserom.gba", 0x1A92B7, 0x5 - -gUnknown_81A92BC:: @ 81A92BC - .incbin "baserom.gba", 0x1A92BC, 0x5 - -gUnknown_81A92C1:: @ 81A92C1 - .incbin "baserom.gba", 0x1A92C1, 0x2 - -gUnknown_81A92C3:: @ 81A92C3 - .incbin "baserom.gba", 0x1A92C3, 0x2 - -gUnknown_81A92C5:: @ 81A92C5 - .incbin "baserom.gba", 0x1A92C5, 0xB - -gUnknown_81A92D0:: @ 81A92D0 - .incbin "baserom.gba", 0x1A92D0, 0xC - -gUnknown_81A92DC:: @ 81A92DC - .incbin "baserom.gba", 0x1A92DC, 0xA - -gUnknown_81A92E6:: @ 81A92E6 - .incbin "baserom.gba", 0x1A92E6, 0xC - -gUnknown_81A92F2:: @ 81A92F2 - .incbin "baserom.gba", 0x1A92F2, 0xC - -gUnknown_81A92FE:: @ 81A92FE - .incbin "baserom.gba", 0x1A92FE, 0xC - -gUnknown_81A930A:: @ 81A930A - .incbin "baserom.gba", 0x1A930A, 0xC - -gUnknown_81A9316:: @ 81A9316 - .incbin "baserom.gba", 0x1A9316, 0xB - -gUnknown_81A9321:: @ 81A9321 - .incbin "baserom.gba", 0x1A9321, 0xC - -gUnknown_81A932D:: @ 81A932D - .incbin "baserom.gba", 0x1A932D, 0xB - -gUnknown_81A9338:: @ 81A9338 - .incbin "baserom.gba", 0x1A9338, 0x7 - -gUnknown_81A933F:: @ 81A933F - .incbin "baserom.gba", 0x1A933F, 0xB - -gUnknown_81A934A:: @ 81A934A - .incbin "baserom.gba", 0x1A934A, 0xC - -gUnknown_81A9356:: @ 81A9356 - .incbin "baserom.gba", 0x1A9356, 0xC - -gUnknown_81A9362:: @ 81A9362 - .incbin "baserom.gba", 0x1A9362, 0x6 - -gUnknown_81A9368:: @ 81A9368 - .incbin "baserom.gba", 0x1A9368, 0xC - -gUnknown_81A9374:: @ 81A9374 - .incbin "baserom.gba", 0x1A9374, 0x8 - -gUnknown_81A937C:: @ 81A937C - .incbin "baserom.gba", 0x1A937C, 0xB - -gUnknown_81A9387:: @ 81A9387 - .incbin "baserom.gba", 0x1A9387, 0xC - -gUnknown_81A9393:: @ 81A9393 - .incbin "baserom.gba", 0x1A9393, 0xC - -gUnknown_81A939F:: @ 81A939F - .incbin "baserom.gba", 0x1A939F, 0xC - -gUnknown_81A93AB:: @ 81A93AB - .incbin "baserom.gba", 0x1A93AB, 0x9 - -gUnknown_81A93B4:: @ 81A93B4 - .incbin "baserom.gba", 0x1A93B4, 0xC - -gUnknown_81A93C0:: @ 81A93C0 - .incbin "baserom.gba", 0x1A93C0, 0x9 - -Route3_EventScript_1A93C9:: @ 81A93C9 - .incbin "baserom.gba", 0x1A93C9, 0x3E - -Route3_EventScript_1A9407:: @ 81A9407 - .incbin "baserom.gba", 0x1A9407, 0x3E - -Route3_EventScript_1A9445:: @ 81A9445 - .incbin "baserom.gba", 0x1A9445, 0x3E - -Route3_EventScript_1A9483:: @ 81A9483 - .incbin "baserom.gba", 0x1A9483, 0x3E - -Route3_EventScript_1A94C1:: @ 81A94C1 - .incbin "baserom.gba", 0x1A94C1, 0x3E - -Route3_EventScript_1A94FF:: @ 81A94FF - .incbin "baserom.gba", 0x1A94FF, 0x3E - -Route3_EventScript_1A953D:: @ 81A953D - .incbin "baserom.gba", 0x1A953D, 0x3E - -Route3_EventScript_1A957B:: @ 81A957B - .incbin "baserom.gba", 0x1A957B, 0x3E - -Route4_EventScript_1A95B9:: @ 81A95B9 - .incbin "baserom.gba", 0x1A95B9, 0x3E - -Route24_EventScript_1A95F7:: @ 81A95F7 - .incbin "baserom.gba", 0x1A95F7, 0x3E - -Route24_EventScript_1A9635:: @ 81A9635 - .incbin "baserom.gba", 0x1A9635, 0x3E - -Route24_EventScript_1A9673:: @ 81A9673 - .incbin "baserom.gba", 0x1A9673, 0x3E - -Route24_EventScript_1A96B1:: @ 81A96B1 - .incbin "baserom.gba", 0x1A96B1, 0x3E - -Route24_EventScript_1A96EF:: @ 81A96EF - .incbin "baserom.gba", 0x1A96EF, 0x3E - -Route24_EventScript_1A972D:: @ 81A972D - .incbin "baserom.gba", 0x1A972D, 0x3E - -Route25_EventScript_1A976B:: @ 81A976B - .incbin "baserom.gba", 0x1A976B, 0x3E - -Route25_EventScript_1A97A9:: @ 81A97A9 - .incbin "baserom.gba", 0x1A97A9, 0x3E - -Route25_EventScript_1A97E7:: @ 81A97E7 - .incbin "baserom.gba", 0x1A97E7, 0x3E - -Route25_EventScript_1A9825:: @ 81A9825 - .incbin "baserom.gba", 0x1A9825, 0x3E - -Route25_EventScript_1A9863:: @ 81A9863 - .incbin "baserom.gba", 0x1A9863, 0x3E - -Route25_EventScript_1A98A1:: @ 81A98A1 - .incbin "baserom.gba", 0x1A98A1, 0x3E - -Route25_EventScript_1A98DF:: @ 81A98DF - .incbin "baserom.gba", 0x1A98DF, 0x3E - -Route25_EventScript_1A991D:: @ 81A991D - .incbin "baserom.gba", 0x1A991D, 0x3E - -Route25_EventScript_1A995B:: @ 81A995B - .incbin "baserom.gba", 0x1A995B, 0x3E - -Route6_EventScript_1A9999:: @ 81A9999 - .incbin "baserom.gba", 0x1A9999, 0x3E - -Route6_EventScript_1A99D7:: @ 81A99D7 - .incbin "baserom.gba", 0x1A99D7, 0x3E - -Route6_EventScript_1A9A15:: @ 81A9A15 - .incbin "baserom.gba", 0x1A9A15, 0x3E - -Route6_EventScript_1A9A53:: @ 81A9A53 - .incbin "baserom.gba", 0x1A9A53, 0x3E - -Route6_EventScript_1A9A91:: @ 81A9A91 - .incbin "baserom.gba", 0x1A9A91, 0x3E - -Route6_EventScript_1A9ACF:: @ 81A9ACF - .incbin "baserom.gba", 0x1A9ACF, 0x3E - -Route11_EventScript_1A9B0D:: @ 81A9B0D - .incbin "baserom.gba", 0x1A9B0D, 0x3E - -Route11_EventScript_1A9B4B:: @ 81A9B4B - .incbin "baserom.gba", 0x1A9B4B, 0x3E - -Route11_EventScript_1A9B89:: @ 81A9B89 - .incbin "baserom.gba", 0x1A9B89, 0x3E - -Route11_EventScript_1A9BC7:: @ 81A9BC7 - .incbin "baserom.gba", 0x1A9BC7, 0x3E - -Route11_EventScript_1A9C05:: @ 81A9C05 - .incbin "baserom.gba", 0x1A9C05, 0x3E - -Route11_EventScript_1A9C43:: @ 81A9C43 - .incbin "baserom.gba", 0x1A9C43, 0x3E - -Route11_EventScript_1A9C81:: @ 81A9C81 - .incbin "baserom.gba", 0x1A9C81, 0x3E - -Route11_EventScript_1A9CBF:: @ 81A9CBF - .incbin "baserom.gba", 0x1A9CBF, 0x3E - -Route11_EventScript_1A9CFD:: @ 81A9CFD - .incbin "baserom.gba", 0x1A9CFD, 0x3E - -Route11_EventScript_1A9D3B:: @ 81A9D3B - .incbin "baserom.gba", 0x1A9D3B, 0x3E - -Route9_EventScript_1A9D79:: @ 81A9D79 - .incbin "baserom.gba", 0x1A9D79, 0x3E - -Route9_EventScript_1A9DB7:: @ 81A9DB7 - .incbin "baserom.gba", 0x1A9DB7, 0x3E - -Route9_EventScript_1A9DF5:: @ 81A9DF5 - .incbin "baserom.gba", 0x1A9DF5, 0x3E - -Route9_EventScript_1A9E33:: @ 81A9E33 - .incbin "baserom.gba", 0x1A9E33, 0x3E - -Route9_EventScript_1A9E71:: @ 81A9E71 - .incbin "baserom.gba", 0x1A9E71, 0x3E - -Route9_EventScript_1A9EAF:: @ 81A9EAF - .incbin "baserom.gba", 0x1A9EAF, 0x3E - -Route9_EventScript_1A9EED:: @ 81A9EED - .incbin "baserom.gba", 0x1A9EED, 0x3E - -Route9_EventScript_1A9F2B:: @ 81A9F2B - .incbin "baserom.gba", 0x1A9F2B, 0x3E - -Route9_EventScript_1A9F69:: @ 81A9F69 - .incbin "baserom.gba", 0x1A9F69, 0x3E - -Route10_EventScript_1A9FA7:: @ 81A9FA7 - .incbin "baserom.gba", 0x1A9FA7, 0x3E - -Route10_EventScript_1A9FE5:: @ 81A9FE5 - .incbin "baserom.gba", 0x1A9FE5, 0x3E - -Route10_EventScript_1AA023:: @ 81AA023 - .incbin "baserom.gba", 0x1AA023, 0x3E - -Route10_EventScript_1AA061:: @ 81AA061 - .incbin "baserom.gba", 0x1AA061, 0x3E - -Route10_EventScript_1AA09F:: @ 81AA09F - .incbin "baserom.gba", 0x1AA09F, 0x3E - -Route10_EventScript_1AA0DD:: @ 81AA0DD - .incbin "baserom.gba", 0x1AA0DD, 0x3E - -Route8_EventScript_1AA11B:: @ 81AA11B - .incbin "baserom.gba", 0x1AA11B, 0x3E - -Route8_EventScript_1AA159:: @ 81AA159 - .incbin "baserom.gba", 0x1AA159, 0x3E - -Route8_EventScript_1AA197:: @ 81AA197 - .incbin "baserom.gba", 0x1AA197, 0x3E - -Route8_EventScript_1AA1D5:: @ 81AA1D5 - .incbin "baserom.gba", 0x1AA1D5, 0x3E - -Route8_EventScript_1AA213:: @ 81AA213 - .incbin "baserom.gba", 0x1AA213, 0x3E - -Route8_EventScript_1AA251:: @ 81AA251 - .incbin "baserom.gba", 0x1AA251, 0x3E - -Route8_EventScript_1AA28F:: @ 81AA28F - .incbin "baserom.gba", 0x1AA28F, 0x3E - -Route8_EventScript_1AA2CD:: @ 81AA2CD - .incbin "baserom.gba", 0x1AA2CD, 0x3E - -Route8_EventScript_1AA30B:: @ 81AA30B - .incbin "baserom.gba", 0x1AA30B, 0x3E - -Route8_EventScript_1AA349:: @ 81AA349 - .incbin "baserom.gba", 0x1AA349, 0x46 - -Route8_EventScript_1AA38F:: @ 81AA38F - .incbin "baserom.gba", 0x1AA38F, 0x46 - -Route8_EventScript_1AA3D5:: @ 81AA3D5 - .incbin "baserom.gba", 0x1AA3D5, 0x3E - -Route8_EventScript_1AA413:: @ 81AA413 - .incbin "baserom.gba", 0x1AA413, 0x3E - -Route12_EventScript_1AA451:: @ 81AA451 - .incbin "baserom.gba", 0x1AA451, 0x3E - -Route12_EventScript_1AA48F:: @ 81AA48F - .incbin "baserom.gba", 0x1AA48F, 0x3E - -Route12_EventScript_1AA4CD:: @ 81AA4CD - .incbin "baserom.gba", 0x1AA4CD, 0x3E - -Route12_EventScript_1AA50B:: @ 81AA50B - .incbin "baserom.gba", 0x1AA50B, 0x3E - -Route12_EventScript_1AA549:: @ 81AA549 - .incbin "baserom.gba", 0x1AA549, 0x3E - -Route12_EventScript_1AA587:: @ 81AA587 - .incbin "baserom.gba", 0x1AA587, 0x3E - -Route12_EventScript_1AA5C5:: @ 81AA5C5 - .incbin "baserom.gba", 0x1AA5C5, 0x3E - -Route12_EventScript_1AA603:: @ 81AA603 - .incbin "baserom.gba", 0x1AA603, 0x46 - -Route12_EventScript_1AA649:: @ 81AA649 - .incbin "baserom.gba", 0x1AA649, 0x46 - -Route13_EventScript_1AA68F:: @ 81AA68F - .incbin "baserom.gba", 0x1AA68F, 0x3E - -Route13_EventScript_1AA6CD:: @ 81AA6CD - .incbin "baserom.gba", 0x1AA6CD, 0x3E - -Route13_EventScript_1AA70B:: @ 81AA70B - .incbin "baserom.gba", 0x1AA70B, 0x3E - -Route13_EventScript_1AA749:: @ 81AA749 - .incbin "baserom.gba", 0x1AA749, 0x3E - -Route13_EventScript_1AA787:: @ 81AA787 - .incbin "baserom.gba", 0x1AA787, 0x3E - -Route13_EventScript_1AA7C5:: @ 81AA7C5 - .incbin "baserom.gba", 0x1AA7C5, 0x3E - -Route13_EventScript_1AA803:: @ 81AA803 - .incbin "baserom.gba", 0x1AA803, 0x3E - -Route13_EventScript_1AA841:: @ 81AA841 - .incbin "baserom.gba", 0x1AA841, 0x3E - -Route13_EventScript_1AA87F:: @ 81AA87F - .incbin "baserom.gba", 0x1AA87F, 0x3E - -Route13_EventScript_1AA8BD:: @ 81AA8BD - .incbin "baserom.gba", 0x1AA8BD, 0x3E - -Route14_EventScript_1AA8FB:: @ 81AA8FB - .incbin "baserom.gba", 0x1AA8FB, 0x3E - -Route14_EventScript_1AA939:: @ 81AA939 - .incbin "baserom.gba", 0x1AA939, 0x3E - -Route14_EventScript_1AA977:: @ 81AA977 - .incbin "baserom.gba", 0x1AA977, 0x3E - -Route14_EventScript_1AA9B5:: @ 81AA9B5 - .incbin "baserom.gba", 0x1AA9B5, 0x3E - -Route14_EventScript_1AA9F3:: @ 81AA9F3 - .incbin "baserom.gba", 0x1AA9F3, 0x3E - -Route14_EventScript_1AAA31:: @ 81AAA31 - .incbin "baserom.gba", 0x1AAA31, 0x3E - -Route14_EventScript_1AAA6F:: @ 81AAA6F - .incbin "baserom.gba", 0x1AAA6F, 0x3E - -Route14_EventScript_1AAAAD:: @ 81AAAAD - .incbin "baserom.gba", 0x1AAAAD, 0x3E - -Route14_EventScript_1AAAEB:: @ 81AAAEB - .incbin "baserom.gba", 0x1AAAEB, 0x3E - -Route14_EventScript_1AAB29:: @ 81AAB29 - .incbin "baserom.gba", 0x1AAB29, 0x3E - -Route14_EventScript_1AAB67:: @ 81AAB67 - .incbin "baserom.gba", 0x1AAB67, 0x46 - -Route14_EventScript_1AABAD:: @ 81AABAD - .incbin "baserom.gba", 0x1AABAD, 0x46 - -Route15_EventScript_1AABF3:: @ 81AABF3 - .incbin "baserom.gba", 0x1AABF3, 0x3E - -Route15_EventScript_1AAC31:: @ 81AAC31 - .incbin "baserom.gba", 0x1AAC31, 0x3E - -Route15_EventScript_1AAC6F:: @ 81AAC6F - .incbin "baserom.gba", 0x1AAC6F, 0x3E - -Route15_EventScript_1AACAD:: @ 81AACAD - .incbin "baserom.gba", 0x1AACAD, 0x3E - -Route15_EventScript_1AACEB:: @ 81AACEB - .incbin "baserom.gba", 0x1AACEB, 0x3E - -Route15_EventScript_1AAD29:: @ 81AAD29 - .incbin "baserom.gba", 0x1AAD29, 0x3E - -Route15_EventScript_1AAD67:: @ 81AAD67 - .incbin "baserom.gba", 0x1AAD67, 0x3E - -Route15_EventScript_1AADA5:: @ 81AADA5 - .incbin "baserom.gba", 0x1AADA5, 0x3E - -Route15_EventScript_1AADE3:: @ 81AADE3 - .incbin "baserom.gba", 0x1AADE3, 0x3E - -Route15_EventScript_1AAE21:: @ 81AAE21 - .incbin "baserom.gba", 0x1AAE21, 0x3E - -Route15_EventScript_1AAE5F:: @ 81AAE5F - .incbin "baserom.gba", 0x1AAE5F, 0x46 - -Route15_EventScript_1AAEA5:: @ 81AAEA5 - .incbin "baserom.gba", 0x1AAEA5, 0x46 - -Route16_EventScript_1AAEEB:: @ 81AAEEB - .incbin "baserom.gba", 0x1AAEEB, 0x3E - -Route16_EventScript_1AAF29:: @ 81AAF29 - .incbin "baserom.gba", 0x1AAF29, 0x3E - -Route16_EventScript_1AAF67:: @ 81AAF67 - .incbin "baserom.gba", 0x1AAF67, 0x3E - -Route16_EventScript_1AAFA5:: @ 81AAFA5 - .incbin "baserom.gba", 0x1AAFA5, 0x3E - -Route16_EventScript_1AAFE3:: @ 81AAFE3 - .incbin "baserom.gba", 0x1AAFE3, 0x3E - -Route16_EventScript_1AB021:: @ 81AB021 - .incbin "baserom.gba", 0x1AB021, 0x3E - -Route16_EventScript_1AB05F:: @ 81AB05F - .incbin "baserom.gba", 0x1AB05F, 0x46 - -Route16_EventScript_1AB0A5:: @ 81AB0A5 - .incbin "baserom.gba", 0x1AB0A5, 0x46 - -Route17_EventScript_1AB0EB:: @ 81AB0EB - .incbin "baserom.gba", 0x1AB0EB, 0x3E - -Route17_EventScript_1AB129:: @ 81AB129 - .incbin "baserom.gba", 0x1AB129, 0x3E - -Route17_EventScript_1AB167:: @ 81AB167 - .incbin "baserom.gba", 0x1AB167, 0x3E - -Route17_EventScript_1AB1A5:: @ 81AB1A5 - .incbin "baserom.gba", 0x1AB1A5, 0x3E - -Route17_EventScript_1AB1E3:: @ 81AB1E3 - .incbin "baserom.gba", 0x1AB1E3, 0x3E - -Route17_EventScript_1AB221:: @ 81AB221 - .incbin "baserom.gba", 0x1AB221, 0x3E - -Route17_EventScript_1AB25F:: @ 81AB25F - .incbin "baserom.gba", 0x1AB25F, 0x3E - -Route17_EventScript_1AB29D:: @ 81AB29D - .incbin "baserom.gba", 0x1AB29D, 0x3E - -Route17_EventScript_1AB2DB:: @ 81AB2DB - .incbin "baserom.gba", 0x1AB2DB, 0x3E - -Route17_EventScript_1AB319:: @ 81AB319 - .incbin "baserom.gba", 0x1AB319, 0x3E - -Route18_EventScript_1AB357:: @ 81AB357 - .incbin "baserom.gba", 0x1AB357, 0x3E - -Route18_EventScript_1AB395:: @ 81AB395 - .incbin "baserom.gba", 0x1AB395, 0x3E - -Route18_EventScript_1AB3D3:: @ 81AB3D3 - .incbin "baserom.gba", 0x1AB3D3, 0x3E - -Route19_EventScript_1AB411:: @ 81AB411 - .incbin "baserom.gba", 0x1AB411, 0x3E - -Route19_EventScript_1AB44F:: @ 81AB44F - .incbin "baserom.gba", 0x1AB44F, 0x3E - -Route19_EventScript_1AB48D:: @ 81AB48D - .incbin "baserom.gba", 0x1AB48D, 0x3E - -Route19_EventScript_1AB4CB:: @ 81AB4CB - .incbin "baserom.gba", 0x1AB4CB, 0x3E - -Route19_EventScript_1AB509:: @ 81AB509 - .incbin "baserom.gba", 0x1AB509, 0x3E - -Route19_EventScript_1AB547:: @ 81AB547 - .incbin "baserom.gba", 0x1AB547, 0x3E - -Route19_EventScript_1AB585:: @ 81AB585 - .incbin "baserom.gba", 0x1AB585, 0x3E - -Route19_EventScript_1AB5C3:: @ 81AB5C3 - .incbin "baserom.gba", 0x1AB5C3, 0x3E - -Route19_EventScript_1AB601:: @ 81AB601 - .incbin "baserom.gba", 0x1AB601, 0x3E - -Route19_EventScript_1AB63F:: @ 81AB63F - .incbin "baserom.gba", 0x1AB63F, 0x3E - -Route19_EventScript_1AB67D:: @ 81AB67D - .incbin "baserom.gba", 0x1AB67D, 0x46 - -Route19_EventScript_1AB6C3:: @ 81AB6C3 - .incbin "baserom.gba", 0x1AB6C3, 0x46 - -Route20_EventScript_1AB709:: @ 81AB709 - .incbin "baserom.gba", 0x1AB709, 0x3E - -Route20_EventScript_1AB747:: @ 81AB747 - .incbin "baserom.gba", 0x1AB747, 0x3E - -Route20_EventScript_1AB785:: @ 81AB785 - .incbin "baserom.gba", 0x1AB785, 0x3E - -Route20_EventScript_1AB7C3:: @ 81AB7C3 - .incbin "baserom.gba", 0x1AB7C3, 0x3E - -Route20_EventScript_1AB801:: @ 81AB801 - .incbin "baserom.gba", 0x1AB801, 0x3E - -Route20_EventScript_1AB83F:: @ 81AB83F - .incbin "baserom.gba", 0x1AB83F, 0x3E - -Route20_EventScript_1AB87D:: @ 81AB87D - .incbin "baserom.gba", 0x1AB87D, 0x3E - -Route20_EventScript_1AB8BB:: @ 81AB8BB - .incbin "baserom.gba", 0x1AB8BB, 0x3E - -Route20_EventScript_1AB8F9:: @ 81AB8F9 - .incbin "baserom.gba", 0x1AB8F9, 0x3E - -Route20_EventScript_1AB937:: @ 81AB937 - .incbin "baserom.gba", 0x1AB937, 0x3E - -Route21_North_EventScript_1AB975:: @ 81AB975 - .incbin "baserom.gba", 0x1AB975, 0x3E - -Route21_South_EventScript_1AB9B3:: @ 81AB9B3 - .incbin "baserom.gba", 0x1AB9B3, 0x3E - -Route21_North_EventScript_1AB9F1:: @ 81AB9F1 - .incbin "baserom.gba", 0x1AB9F1, 0x3E - -Route21_South_EventScript_1ABA2F:: @ 81ABA2F - .incbin "baserom.gba", 0x1ABA2F, 0x3E - -Route21_North_EventScript_1ABA6D:: @ 81ABA6D - .incbin "baserom.gba", 0x1ABA6D, 0x3E - -Route21_South_EventScript_1ABAAB:: @ 81ABAAB - .incbin "baserom.gba", 0x1ABAAB, 0x3E - -Route21_South_EventScript_1ABAE9:: @ 81ABAE9 - .incbin "baserom.gba", 0x1ABAE9, 0x3E - -Route21_South_EventScript_1ABB27:: @ 81ABB27 - .incbin "baserom.gba", 0x1ABB27, 0x3E - -Route21_North_EventScript_1ABB65:: @ 81ABB65 - .incbin "baserom.gba", 0x1ABB65, 0x46 - -Route21_North_EventScript_1ABBAB:: @ 81ABBAB - .incbin "baserom.gba", 0x1ABBAB, 0x46 - -OneIsland_KindleRoad_EventScript_1ABBF1:: @ 81ABBF1 - .incbin "baserom.gba", 0x1ABBF1, 0x3E - -OneIsland_KindleRoad_EventScript_1ABC2F:: @ 81ABC2F - .incbin "baserom.gba", 0x1ABC2F, 0x3E - -OneIsland_KindleRoad_EventScript_1ABC6D:: @ 81ABC6D - .incbin "baserom.gba", 0x1ABC6D, 0x3E - -OneIsland_KindleRoad_EventScript_1ABCAB:: @ 81ABCAB - .incbin "baserom.gba", 0x1ABCAB, 0x3E - -OneIsland_KindleRoad_EventScript_1ABCE9:: @ 81ABCE9 - .incbin "baserom.gba", 0x1ABCE9, 0x3E - -OneIsland_KindleRoad_EventScript_1ABD27:: @ 81ABD27 - .incbin "baserom.gba", 0x1ABD27, 0x3E - -OneIsland_KindleRoad_EventScript_1ABD65:: @ 81ABD65 - .incbin "baserom.gba", 0x1ABD65, 0x3E - -OneIsland_KindleRoad_EventScript_1ABDA3:: @ 81ABDA3 - .incbin "baserom.gba", 0x1ABDA3, 0x3E - -OneIsland_KindleRoad_EventScript_1ABDE1:: @ 81ABDE1 - .incbin "baserom.gba", 0x1ABDE1, 0x3E - -OneIsland_KindleRoad_EventScript_1ABE1F:: @ 81ABE1F - .incbin "baserom.gba", 0x1ABE1F, 0x3E - -OneIsland_KindleRoad_EventScript_1ABE5D:: @ 81ABE5D - .incbin "baserom.gba", 0x1ABE5D, 0x3E - -OneIsland_KindleRoad_EventScript_1ABE9B:: @ 81ABE9B - .incbin "baserom.gba", 0x1ABE9B, 0x46 - -OneIsland_KindleRoad_EventScript_1ABEE1:: @ 81ABEE1 - .incbin "baserom.gba", 0x1ABEE1, 0x46 - -OneIsland_TreasureBeach_EventScript_1ABF27:: @ 81ABF27 - .incbin "baserom.gba", 0x1ABF27, 0x3E - -ThreeIsland_BondBridge_EventScript_1ABF65:: @ 81ABF65 - .incbin "baserom.gba", 0x1ABF65, 0x3E - -ThreeIsland_BondBridge_EventScript_1ABFA3:: @ 81ABFA3 - .incbin "baserom.gba", 0x1ABFA3, 0x3E - -ThreeIsland_BondBridge_EventScript_1ABFE1:: @ 81ABFE1 - .incbin "baserom.gba", 0x1ABFE1, 0x3E - -ThreeIsland_BondBridge_EventScript_1AC01F:: @ 81AC01F - .incbin "baserom.gba", 0x1AC01F, 0x3E - -ThreeIsland_BondBridge_EventScript_1AC05D:: @ 81AC05D - .incbin "baserom.gba", 0x1AC05D, 0x3E - -ThreeIsland_BondBridge_EventScript_1AC09B:: @ 81AC09B - .incbin "baserom.gba", 0x1AC09B, 0x46 - -ThreeIsland_BondBridge_EventScript_1AC0E1:: @ 81AC0E1 - .incbin "baserom.gba", 0x1AC0E1, 0x46 - -FiveIsland_ResortGorgeous_EventScript_1AC127:: @ 81AC127 - .incbin "baserom.gba", 0x1AC127, 0x3E - -FiveIsland_ResortGorgeous_EventScript_1AC165:: @ 81AC165 - .incbin "baserom.gba", 0x1AC165, 0x3E - -FiveIsland_ResortGorgeous_EventScript_1AC1A3:: @ 81AC1A3 - .incbin "baserom.gba", 0x1AC1A3, 0x3E - -FiveIsland_ResortGorgeous_EventScript_1AC1E1:: @ 81AC1E1 - .incbin "baserom.gba", 0x1AC1E1, 0x3E - -FiveIsland_ResortGorgeous_EventScript_1AC21F:: @ 81AC21F - .incbin "baserom.gba", 0x1AC21F, 0x3E - -FiveIsland_ResortGorgeous_EventScript_1AC25D:: @ 81AC25D - .incbin "baserom.gba", 0x1AC25D, 0x3E - -FiveIsland_ResortGorgeous_EventScript_1AC29B:: @ 81AC29B - .incbin "baserom.gba", 0x1AC29B, 0x3E - -FiveIsland_WaterLabyrinth_EventScript_1AC2D9:: @ 81AC2D9 - .incbin "baserom.gba", 0x1AC2D9, 0x3E - -FiveIsland_MemorialPillar_EventScript_1AC317:: @ 81AC317 - .incbin "baserom.gba", 0x1AC317, 0x3E - -FiveIsland_MemorialPillar_EventScript_1AC355:: @ 81AC355 - .incbin "baserom.gba", 0x1AC355, 0x3E - -FiveIsland_MemorialPillar_EventScript_1AC393:: @ 81AC393 - .incbin "baserom.gba", 0x1AC393, 0x3E - -SixIsland_OutcastIsland_EventScript_1AC3D1:: @ 81AC3D1 - .incbin "baserom.gba", 0x1AC3D1, 0x3E - -SixIsland_OutcastIsland_EventScript_1AC40F:: @ 81AC40F - .incbin "baserom.gba", 0x1AC40F, 0x3E - -SixIsland_OutcastIsland_EventScript_1AC44D:: @ 81AC44D - .incbin "baserom.gba", 0x1AC44D, 0x3E - -SixIsland_OutcastIsland_EventScript_1AC48B:: @ 81AC48B - .incbin "baserom.gba", 0x1AC48B, 0x46 - -SixIsland_OutcastIsland_EventScript_1AC4D1:: @ 81AC4D1 - .incbin "baserom.gba", 0x1AC4D1, 0x46 - -SixIsland_GreenPath_EventScript_1AC517:: @ 81AC517 - .incbin "baserom.gba", 0x1AC517, 0x3E - -SixIsland_WaterPath_EventScript_1AC555:: @ 81AC555 - .incbin "baserom.gba", 0x1AC555, 0x3E - -SixIsland_WaterPath_EventScript_1AC593:: @ 81AC593 - .incbin "baserom.gba", 0x1AC593, 0x3E - -SixIsland_WaterPath_EventScript_1AC5D1:: @ 81AC5D1 - .incbin "baserom.gba", 0x1AC5D1, 0x3E - -SixIsland_WaterPath_EventScript_1AC60F:: @ 81AC60F - .incbin "baserom.gba", 0x1AC60F, 0x3E - -SixIsland_WaterPath_EventScript_1AC64D:: @ 81AC64D - .incbin "baserom.gba", 0x1AC64D, 0x46 - -SixIsland_WaterPath_EventScript_1AC693:: @ 81AC693 - .incbin "baserom.gba", 0x1AC693, 0x46 - -SixIsland_WaterPath_EventScript_1AC6D9:: @ 81AC6D9 - .incbin "baserom.gba", 0x1AC6D9, 0x3E - -SixIsland_RuinValley_EventScript_1AC717:: @ 81AC717 - .incbin "baserom.gba", 0x1AC717, 0x3E - -SixIsland_RuinValley_EventScript_1AC755:: @ 81AC755 - .incbin "baserom.gba", 0x1AC755, 0x3E - -SixIsland_RuinValley_EventScript_1AC793:: @ 81AC793 - .incbin "baserom.gba", 0x1AC793, 0x3E - -SixIsland_RuinValley_EventScript_1AC7D1:: @ 81AC7D1 - .incbin "baserom.gba", 0x1AC7D1, 0x3E - -SixIsland_RuinValley_EventScript_1AC80F:: @ 81AC80F - .incbin "baserom.gba", 0x1AC80F, 0x3E - -SevenIsland_TrainerTower_EventScript_1AC84D:: @ 81AC84D - .incbin "baserom.gba", 0x1AC84D, 0x3E - -SevenIsland_TrainerTower_EventScript_1AC88B:: @ 81AC88B - .incbin "baserom.gba", 0x1AC88B, 0x3E - -SevenIsland_SevaultCanyon_Entrance_EventScript_1AC8C9:: @ 81AC8C9 - .incbin "baserom.gba", 0x1AC8C9, 0x3E - -SevenIsland_SevaultCanyon_Entrance_EventScript_1AC907:: @ 81AC907 - .incbin "baserom.gba", 0x1AC907, 0x46 - -SevenIsland_SevaultCanyon_Entrance_EventScript_1AC94D:: @ 81AC94D - .incbin "baserom.gba", 0x1AC94D, 0x46 - -SevenIsland_SevaultCanyon_Entrance_EventScript_1AC993:: @ 81AC993 - .incbin "baserom.gba", 0x1AC993, 0x3E - -SevenIsland_SevaultCanyon_Entrance_EventScript_1AC9D1:: @ 81AC9D1 - .incbin "baserom.gba", 0x1AC9D1, 0x3E - -SevenIsland_SevaultCanyon_Entrance_EventScript_1ACA0F:: @ 81ACA0F - .incbin "baserom.gba", 0x1ACA0F, 0x3E - -SevenIsland_SevaultCanyon_EventScript_1ACA4D:: @ 81ACA4D - .incbin "baserom.gba", 0x1ACA4D, 0x3E - -SevenIsland_SevaultCanyon_EventScript_1ACA8B:: @ 81ACA8B - .incbin "baserom.gba", 0x1ACA8B, 0x3E - -SevenIsland_SevaultCanyon_EventScript_1ACAC9:: @ 81ACAC9 - .incbin "baserom.gba", 0x1ACAC9, 0x3E - -SevenIsland_SevaultCanyon_EventScript_1ACB07:: @ 81ACB07 - .incbin "baserom.gba", 0x1ACB07, 0x3E - -SevenIsland_SevaultCanyon_EventScript_1ACB45:: @ 81ACB45 - .incbin "baserom.gba", 0x1ACB45, 0x3E - -SevenIsland_SevaultCanyon_EventScript_1ACB83:: @ 81ACB83 - .incbin "baserom.gba", 0x1ACB83, 0x3E - -SevenIsland_SevaultCanyon_EventScript_1ACBC1:: @ 81ACBC1 - .incbin "baserom.gba", 0x1ACBC1, 0x46 - -SevenIsland_SevaultCanyon_EventScript_1ACC07:: @ 81ACC07 - .incbin "baserom.gba", 0x1ACC07, 0x46 - -SevenIsland_TanobyRuins_EventScript_1ACC4D:: @ 81ACC4D - .incbin "baserom.gba", 0x1ACC4D, 0x3E - -SevenIsland_TanobyRuins_EventScript_1ACC8B:: @ 81ACC8B - .incbin "baserom.gba", 0x1ACC8B, 0x3E - -SevenIsland_TanobyRuins_EventScript_1ACCC9:: @ 81ACCC9 - .incbin "baserom.gba", 0x1ACCC9, 0x3E - -SevenIsland_TanobyRuins_EventScript_1ACD07:: @ 81ACD07 - .incbin "baserom.gba", 0x1ACD07, 0x5E - -ViridianCity_House2_EventScript_1ACD65:: @ 81ACD65 - .incbin "baserom.gba", 0x1ACD65, 0x6B - -FourIsland_PokemonCenter_1F_EventScript_1ACDD0:: @ 81ACDD0 - .incbin "baserom.gba", 0x1ACDD0, 0x1A - -Route4_EventScript_1ACDEA:: @ 81ACDEA - .incbin "baserom.gba", 0x1ACDEA, 0x19 - -MtMoon_1F_EventScript_1ACE03:: @ 81ACE03 - .incbin "baserom.gba", 0x1ACE03, 0x19 - -PewterCity_Museum_1F_EventScript_1ACE1C:: @ 81ACE1C - .incbin "baserom.gba", 0x1ACE1C, 0x1A - -Route20_EventScript_1ACE36:: @ 81ACE36 - .incbin "baserom.gba", 0x1ACE36, 0x19 - -Route25_EventScript_1ACE4F:: @ 81ACE4F - .incbin "baserom.gba", 0x1ACE4F, 0x19 - -CeruleanCity_PokemonCenter_1F_EventScript_1ACE68:: @ 81ACE68 - .incbin "baserom.gba", 0x1ACE68, 0x1B - -VermilionCity_PokemonCenter_1F_EventScript_1ACE83:: @ 81ACE83 - .incbin "baserom.gba", 0x1ACE83, 0x1A - -CeladonCity_Condominiums_2F_EventScript_1ACE9D:: @ 81ACE9D - .incbin "baserom.gba", 0x1ACE9D, 0x1B - -FuchsiaCity_Building1_EventScript_1ACEB8:: @ 81ACEB8 - .incbin "baserom.gba", 0x1ACEB8, 0x1B - -SafariZone_Building3_EventScript_1ACED3:: @ 81ACED3 - .incbin "baserom.gba", 0x1ACED3, 0x19 - -SaffronCity_PokemonCenter_1F_EventScript_1ACEEC:: @ 81ACEEC - .incbin "baserom.gba", 0x1ACEEC, 0x1B - -CinnabarIsland_Gym_EventScript_1ACF07:: @ 81ACF07 - .incbin "baserom.gba", 0x1ACF07, 0x25 - -FiveIsland_ResortGorgeous_House_EventScript_1ACF2C:: @ 81ACF2C - .incbin "baserom.gba", 0x1ACF2C, 0x1A - -FourIsland_Mart_EventScript_1ACF46:: @ 81ACF46 - .incbin "baserom.gba", 0x1ACF46, 0x19 - -FiveIsland_PokemonCenter_1F_EventScript_1ACF5F:: @ 81ACF5F - .incbin "baserom.gba", 0x1ACF5F, 0x1B - -SaffronCity_PokemonTrainerFanClub_EventScript_1ACF7A:: @ 81ACF7A - .incbin "baserom.gba", 0x1ACF7A, 0x1B - -SevenIsland_SevaultCanyon_EventScript_1ACF95:: @ 81ACF95 - .incbin "baserom.gba", 0x1ACF95, 0x19 - -IndigoPlateau_PokemonCenter_1F_EventScript_1ACFAE:: @ 81ACFAE - .incbin "baserom.gba", 0x1ACFAE, 0x26 - -SevenIsland_PokemonCenter_1F_EventScript_1ACFD4:: @ 81ACFD4 - .incbin "baserom.gba", 0x1ACFD4, 0x1B - -SixIsland_Mart_EventScript_1ACFEF:: @ 81ACFEF - .incbin "baserom.gba", 0x1ACFEF, 0x4B - -SaffronCity_EventScript_1AD03A:: @ 81AD03A - .incbin "baserom.gba", 0x1AD03A, 0x19 - -CeladonCity_DepartmentStore_2F_EventScript_1AD053:: @ 81AD053 - .incbin "baserom.gba", 0x1AD053, 0x19 - -IndigoPlateau_PokemonCenter_1F_EventScript_1AD06C:: @ 81AD06C - .incbin "baserom.gba", 0x1AD06C, 0x1B - -IndigoPlateau_PokemonCenter_1F_EventScript_1AD087:: @ 81AD087 - .incbin "baserom.gba", 0x1AD087, 0x19 - -LavenderTown_PokemonCenter_1F_EventScript_1AD0A0:: @ 81AD0A0 - .incbin "baserom.gba", 0x1AD0A0, 0x19 - -CinnabarIsland_PokemonCenter_1F_EventScript_1AD0B9:: @ 81AD0B9 - .incbin "baserom.gba", 0x1AD0B9, 0x1B - -SilphCo_5F_EventScript_1AD0D4:: @ 81AD0D4 - .incbin "baserom.gba", 0x1AD0D4, 0x19 - -@ 0x19 -SilphCo_8F_EventScript_1AD0ED:: @ 81AD0ED - .incbin "baserom.gba", 0x1AD0ED, 0x19 - - .include "data/text/fame_checker.inc" - -CeladonCity_GameCorner_EventScript_1B2867:: @ 81B2867 - .incbin "baserom.gba", 0x1B2867, 0xD1 - -FourIsland_House2_EventScript_1B2938:: @ 81B2938 - .incbin "baserom.gba", 0x1B2938, 0x4C0 - - .include "data/text/help_system.inc" - -CeladonCity_PokemonCenter_2F_MapScript4_1BB1B4:: @ 81BB1B4 -CeruleanCity_PokemonCenter_2F_MapScript4_1BB1B4:: @ 81BB1B4 -CinnabarIsland_PokemonCenter_2F_MapScript4_1BB1B4:: @ 81BB1B4 -FiveIsland_PokemonCenter_2F_MapScript4_1BB1B4:: @ 81BB1B4 -FourIsland_PokemonCenter_2F_MapScript4_1BB1B4:: @ 81BB1B4 -FuchsiaCity_PokemonCenter_2F_MapScript4_1BB1B4:: @ 81BB1B4 -IndigoPlateau_PokemonCenter_2F_MapScript4_1BB1B4:: @ 81BB1B4 -LavenderTown_PokemonCenter_2F_MapScript4_1BB1B4:: @ 81BB1B4 -OneIsland_PokemonCenter_2F_MapScript4_1BB1B4:: @ 81BB1B4 -PewterCity_PokemonCenter_2F_MapScript4_1BB1B4:: @ 81BB1B4 -Route10_PokemonCenter_2F_MapScript4_1BB1B4:: @ 81BB1B4 -Route4_PokemonCenter_2F_MapScript4_1BB1B4:: @ 81BB1B4 -SaffronCity_PokemonCenter_2F_MapScript4_1BB1B4:: @ 81BB1B4 -SevenIsland_PokemonCenter_2F_MapScript4_1BB1B4:: @ 81BB1B4 -SixIsland_PokemonCenter_2F_MapScript4_1BB1B4:: @ 81BB1B4 -ThreeIsland_PokemonCenter_2F_MapScript4_1BB1B4:: @ 81BB1B4 -TwoIsland_PokemonCenter_2F_MapScript4_1BB1B4:: @ 81BB1B4 -VermilionCity_PokemonCenter_2F_MapScript4_1BB1B4:: @ 81BB1B4 -ViridianCity_PokemonCenter_2F_MapScript4_1BB1B4:: @ 81BB1B4 - .incbin "baserom.gba", 0x1BB1B4, 0x1E - -CeruleanCity_PokemonCenter_2F_EventScript_1BB1D2:: @ 81BB1D2 -CinnabarIsland_PokemonCenter_2F_EventScript_1BB1D2:: @ 81BB1D2 -FiveIsland_PokemonCenter_2F_EventScript_1BB1D2:: @ 81BB1D2 -FuchsiaCity_PokemonCenter_2F_EventScript_1BB1D2:: @ 81BB1D2 -OneIsland_PokemonCenter_2F_EventScript_1BB1D2:: @ 81BB1D2 -PewterCity_PokemonCenter_2F_EventScript_1BB1D2:: @ 81BB1D2 -SevenIsland_PokemonCenter_2F_EventScript_1BB1D2:: @ 81BB1D2 -VermilionCity_PokemonCenter_2F_EventScript_1BB1D2:: @ 81BB1D2 -FourIsland_PokemonCenter_2F_EventScript_1BB1D2:: @ 81BB1D2 -SixIsland_PokemonCenter_2F_EventScript_1BB1D2:: @ 81BB1D2 -ThreeIsland_PokemonCenter_2F_EventScript_1BB1D2:: @ 81BB1D2 -TwoIsland_PokemonCenter_2F_EventScript_1BB1D2:: @ 81BB1D2 -Route10_PokemonCenter_2F_EventScript_1BB1D2:: @ 81BB1D2 -Route10_PokemonCenter_2F_EventScript_1BB1D2:: @ 81BB1D2 -Route4_PokemonCenter_2F_EventScript_1BB1D2:: @ 81BB1D2 -SaffronCity_PokemonCenter_2F_EventScript_1BB1D2:: @ 81BB1D2 -IndigoPlateau_PokemonCenter_2F_EventScript_1BB1D2:: @ 81BB1D2 -CeladonCity_PokemonCenter_2F_EventScript_1BB1D2:: @ 81BB1D2 -LavenderTown_PokemonCenter_2F_EventScript_1BB1D2:: @ 81BB1D2 -ViridianCity_PokemonCenter_2F_EventScript_1BB1D2:: @ 81BB1D2 - .incbin "baserom.gba", 0x1BB1D2, 0x1B - -CeladonCity_PokemonCenter_2F_MapScript2_1BB1ED:: @ 81BB1ED -CeruleanCity_PokemonCenter_2F_MapScript2_1BB1ED:: @ 81BB1ED -CinnabarIsland_PokemonCenter_2F_MapScript2_1BB1ED:: @ 81BB1ED -FiveIsland_PokemonCenter_2F_MapScript2_1BB1ED:: @ 81BB1ED -FourIsland_PokemonCenter_2F_MapScript2_1BB1ED:: @ 81BB1ED -FuchsiaCity_PokemonCenter_2F_MapScript2_1BB1ED:: @ 81BB1ED -IndigoPlateau_PokemonCenter_2F_MapScript2_1BB1ED:: @ 81BB1ED -LavenderTown_PokemonCenter_2F_MapScript2_1BB1ED:: @ 81BB1ED -OneIsland_PokemonCenter_2F_MapScript2_1BB1ED:: @ 81BB1ED -PewterCity_PokemonCenter_2F_MapScript2_1BB1ED:: @ 81BB1ED -Route10_PokemonCenter_2F_MapScript2_1BB1ED:: @ 81BB1ED -Route4_PokemonCenter_2F_MapScript2_1BB1ED:: @ 81BB1ED -SaffronCity_PokemonCenter_2F_MapScript2_1BB1ED:: @ 81BB1ED -SevenIsland_PokemonCenter_2F_MapScript2_1BB1ED:: @ 81BB1ED -SixIsland_PokemonCenter_2F_MapScript2_1BB1ED:: @ 81BB1ED -ThreeIsland_PokemonCenter_2F_MapScript2_1BB1ED:: @ 81BB1ED -TwoIsland_PokemonCenter_2F_MapScript2_1BB1ED:: @ 81BB1ED -VermilionCity_PokemonCenter_2F_MapScript2_1BB1ED:: @ 81BB1ED -ViridianCity_PokemonCenter_2F_MapScript2_1BB1ED:: @ 81BB1ED - .incbin "baserom.gba", 0x1BB1ED, 0x3A - -EventScript_1BB227:: @ 81BB227 - .incbin "baserom.gba", 0x1BB227, 0x10 - -CeladonCity_PokemonCenter_2F_MapScript3_1BB237:: @ 81BB237 -CeruleanCity_PokemonCenter_2F_MapScript3_1BB237:: @ 81BB237 -CinnabarIsland_PokemonCenter_2F_MapScript3_1BB237:: @ 81BB237 -FiveIsland_PokemonCenter_2F_MapScript3_1BB237:: @ 81BB237 -FourIsland_PokemonCenter_2F_MapScript3_1BB237:: @ 81BB237 -FuchsiaCity_PokemonCenter_2F_MapScript3_1BB237:: @ 81BB237 -IndigoPlateau_PokemonCenter_2F_MapScript3_1BB237:: @ 81BB237 -LavenderTown_PokemonCenter_2F_MapScript3_1BB237:: @ 81BB237 -OneIsland_PokemonCenter_2F_MapScript3_1BB237:: @ 81BB237 -PewterCity_PokemonCenter_2F_MapScript3_1BB237:: @ 81BB237 -Route10_PokemonCenter_2F_MapScript3_1BB237:: @ 81BB237 -Route4_PokemonCenter_2F_MapScript3_1BB237:: @ 81BB237 -SaffronCity_PokemonCenter_2F_MapScript3_1BB237:: @ 81BB237 -SevenIsland_PokemonCenter_2F_MapScript3_1BB237:: @ 81BB237 -SixIsland_PokemonCenter_2F_MapScript3_1BB237:: @ 81BB237 -ThreeIsland_PokemonCenter_2F_MapScript3_1BB237:: @ 81BB237 -TwoIsland_JoyfulGameCorner_MapScript4_1BB237:: @ 81BB237 -TwoIsland_PokemonCenter_2F_MapScript3_1BB237:: @ 81BB237 -VermilionCity_PokemonCenter_2F_MapScript3_1BB237:: @ 81BB237 -ViridianCity_PokemonCenter_2F_MapScript3_1BB237:: @ 81BB237 - .incbin "baserom.gba", 0x1BB237, 0x6C - -CeladonCity_PokemonCenter_2F_MapScript1_1BB2A3:: @ 81BB2A3 -CeruleanCity_PokemonCenter_2F_MapScript1_1BB2A3:: @ 81BB2A3 -CinnabarIsland_PokemonCenter_2F_MapScript1_1BB2A3:: @ 81BB2A3 -FiveIsland_PokemonCenter_2F_MapScript1_1BB2A3:: @ 81BB2A3 -FourIsland_PokemonCenter_2F_MapScript1_1BB2A3:: @ 81BB2A3 -FuchsiaCity_PokemonCenter_2F_MapScript1_1BB2A3:: @ 81BB2A3 -IndigoPlateau_PokemonCenter_2F_MapScript1_1BB2A3:: @ 81BB2A3 -LavenderTown_PokemonCenter_2F_MapScript1_1BB2A3:: @ 81BB2A3 -OneIsland_PokemonCenter_2F_MapScript1_1BB2A3:: @ 81BB2A3 -PewterCity_PokemonCenter_2F_MapScript1_1BB2A3:: @ 81BB2A3 -Route10_PokemonCenter_2F_MapScript1_1BB2A3:: @ 81BB2A3 -Route4_PokemonCenter_2F_MapScript1_1BB2A3:: @ 81BB2A3 -SaffronCity_PokemonCenter_2F_MapScript1_1BB2A3:: @ 81BB2A3 -SevenIsland_PokemonCenter_2F_MapScript1_1BB2A3:: @ 81BB2A3 -SixIsland_PokemonCenter_2F_MapScript1_1BB2A3:: @ 81BB2A3 -ThreeIsland_PokemonCenter_2F_MapScript1_1BB2A3:: @ 81BB2A3 -TwoIsland_PokemonCenter_2F_MapScript1_1BB2A3:: @ 81BB2A3 -VermilionCity_PokemonCenter_2F_MapScript1_1BB2A3:: @ 81BB2A3 -ViridianCity_PokemonCenter_2F_MapScript1_1BB2A3:: @ 81BB2A3 - .incbin "baserom.gba", 0x1BB2A3, 0x5A - -EventScript_1BB2FD:: @ 81BB2FD - .incbin "baserom.gba", 0x1BB2FD, 0x1A6 - -EventScript_1BB4A3:: @ 81BB4A3 - .incbin "baserom.gba", 0x1BB4A3, 0x208 - -EventScript_1BB6AB:: @ 81BB6AB - .incbin "baserom.gba", 0x1BB6AB, 0x133 - -EventScript_1BB7DE:: @ 81BB7DE - .incbin "baserom.gba", 0x1BB7DE, 0xC9 - -gUnknown_81BB8A7:: @ 81BB8A7 - .incbin "baserom.gba", 0x1BB8A7, 0x1C - -gUnknown_81BB8C3:: @ 81BB8C3 -UnknownMap_00_00_EventScript_1BB8C3:: @ 81BB8C3 - .incbin "baserom.gba", 0x1BB8C3, 0xC - -gUnknown_81BB8CF:: @ 81BB8CF -UnknownMap_00_00_EventScript_1BB8CF:: @ 81BB8CF - .incbin "baserom.gba", 0x1BB8CF, 0xC - -gUnknown_81BB8DB:: @ 81BB8DB -UnknownMap_00_03_EventScript_1BB8DB:: @ 81BB8DB - .incbin "baserom.gba", 0x1BB8DB, 0x1D - -gUnknown_81BB8F8:: @ 81BB8F8 -UnknownMap_00_03_EventScript_1BB8F8:: @ 81BB8F8 - .incbin "baserom.gba", 0x1BB8F8, 0x1D - -gUnknown_81BB915:: @ 81BB915 -UnknownMap_00_03_EventScript_1BB915:: @ 81BB915 - .incbin "baserom.gba", 0x1BB915, 0x1D - -gUnknown_81BB932:: @ 81BB932 -UnknownMap_00_03_EventScript_1BB932:: @ 81BB932 - .incbin "baserom.gba", 0x1BB932, 0x1E - -gUnknown_81BB950:: @ 81BB950 -UnknownMap_00_01_EventScript_1BB950:: @ 81BB950 - .incbin "baserom.gba", 0x1BB950, 0xC - -gUnknown_81BB95C:: @ 81BB95C -UnknownMap_00_01_EventScript_1BB95C:: @ 81BB95C - .incbin "baserom.gba", 0x1BB95C, 0x24 - -gUnknown_81BB980:: @ 81BB980 -UnknownMap_00_02_EventScript_1BB980:: @ 81BB980 - .incbin "baserom.gba", 0x1BB980, 0x1 - -gUnknown_81BB981:: @ 81BB981 - .incbin "baserom.gba", 0x1BB981, 0x11 - -gUnknown_81BB992:: @ 81BB992 - .incbin "baserom.gba", 0x1BB992, 0x11 - -gUnknown_81BB9A3:: @ 81BB9A3 - .incbin "baserom.gba", 0x1BB9A3, 0xC - -UnknownMap_00_00_EventScript_1BB9AF:: @ 81BB9AF - .incbin "baserom.gba", 0x1BB9AF, 0x12 - -UnknownMap_00_01_EventScript_1BB9C1:: @ 81BB9C1 - .incbin "baserom.gba", 0x1BB9C1, 0x12 - -UnknownMap_00_02_EventScript_1BB9D3:: @ 81BB9D3 - .incbin "baserom.gba", 0x1BB9D3, 0x1 - -gUnknown_81BB9D4:: @ 81BB9D4 - .incbin "baserom.gba", 0x1BB9D4, 0x1C - -gUnknown_81BB9F0:: @ 81BB9F0 - .incbin "baserom.gba", 0x1BB9F0, 0xC - -gUnknown_81BB9FC:: @ 81BB9FC - .incbin "baserom.gba", 0x1BB9FC, 0x5DC - -gUnknown_81BBFD8:: @ 81BBFD8 - .incbin "baserom.gba", 0x1BBFD8, 0x84 - -CeladonCity_PokemonCenter_1F_MapScript2_1BC05C:: @ 81BC05C -CeruleanCity_PokemonCenter_1F_MapScript2_1BC05C:: @ 81BC05C -CinnabarIsland_PokemonCenter_1F_MapScript2_1BC05C:: @ 81BC05C -FiveIsland_PokemonCenter_1F_MapScript2_1BC05C:: @ 81BC05C -FourIsland_PokemonCenter_1F_MapScript2_1BC05C:: @ 81BC05C -FuchsiaCity_PokemonCenter_1F_MapScript2_1BC05C:: @ 81BC05C -IndigoPlateau_PokemonCenter_1F_MapScript2_1BC05C:: @ 81BC05C -LavenderTown_PokemonCenter_1F_MapScript2_1BC05C:: @ 81BC05C -OneIsland_PokemonCenter_1F_MapScript2_1BC05C:: @ 81BC05C -PewterCity_PokemonCenter_1F_MapScript2_1BC05C:: @ 81BC05C -Route10_PokemonCenter_1F_MapScript2_1BC05C:: @ 81BC05C -Route4_PokemonCenter_1F_MapScript2_1BC05C:: @ 81BC05C -SaffronCity_PokemonCenter_1F_MapScript2_1BC05C:: @ 81BC05C -SevenIsland_PokemonCenter_1F_MapScript2_1BC05C:: @ 81BC05C -SixIsland_PokemonCenter_1F_MapScript2_1BC05C:: @ 81BC05C -ThreeIsland_PokemonCenter_1F_MapScript2_1BC05C:: @ 81BC05C -TwoIsland_PokemonCenter_1F_MapScript2_1BC05C:: @ 81BC05C -VermilionCity_PokemonCenter_1F_MapScript2_1BC05C:: @ 81BC05C -ViridianCity_PokemonCenter_1F_MapScript2_1BC05C:: @ 81BC05C - .incbin "baserom.gba", 0x1BC05C, 0x4 - -EventScript_1BC060:: @ 81BC060 - .incbin "baserom.gba", 0x1BC060, 0x6E - -EventScript_1BC0CE:: @ 81BC0CE - .incbin "baserom.gba", 0x1BC0CE, 0x219 - -TwoIsland_JoyfulGameCorner_EventScript_1BC2E7:: @ 81BC2E7 - .incbin "baserom.gba", 0x1BC2E7, 0x15 - -TwoIsland_JoyfulGameCorner_EventScript_1BC2FC:: @ 81BC2FC - .incbin "baserom.gba", 0x1BC2FC, 0x1B0 - -gUnknown_81BC4AC:: @ 81BC4AC - .incbin "baserom.gba", 0x1BC4AC, 0x22 - -gUnknown_81BC4CE:: @ 81BC4CE - .incbin "baserom.gba", 0x1BC4CE, 0x3F - -gUnknown_81BC50D:: @ 81BC50D - .incbin "baserom.gba", 0x1BC50D, 0x3F - -gUnknown_81BC54C:: @ 81BC54C - .incbin "baserom.gba", 0x1BC54C, 0x77E - -Text_1BCCCA:: @ 81BCCCA - .incbin "baserom.gba", 0x1BCCCA, 0x1249 - -CeladonCity_EventScript_1BDF13:: @ 81BDF13 -CeladonCity_Gym_EventScript_1BDF13:: @ 81BDF13 -FiveIsland_Meadow_EventScript_1BDF13:: @ 81BDF13 -PewterCity_EventScript_1BDF13:: @ 81BDF13 -Route10_EventScript_1BDF13:: @ 81BDF13 -Route12_EventScript_1BDF13:: @ 81BDF13 -Route14_EventScript_1BDF13:: @ 81BDF13 -Route16_EventScript_1BDF13:: @ 81BDF13 -Route25_EventScript_1BDF13:: @ 81BDF13 -Route2_EventScript_1BDF13:: @ 81BDF13 -Route8_EventScript_1BDF13:: @ 81BDF13 -ThreeIsland_BerryForest_EventScript_1BDF13:: @ 81BDF13 -ThreeIsland_BondBridge_EventScript_1BDF13:: @ 81BDF13 -ThreeIsland_EventScript_1BDF13:: @ 81BDF13 -Route9_EventScript_1BDF13:: @ 81BDF13 -Route13_EventScript_1BDF13:: @ 81BDF13 -TwoIsland_EventScript_1BDF13:: @ 81BDF13 -FuchsiaCity_EventScript_1BDF13:: @ 81BDF13 -VermilionCity_EventScript_1BDF13:: @ 81BDF13 -VermilionCity_EventScript_1BDF13:: @ 81BDF13 -CeruleanCity_EventScript_1BDF13:: @ 81BDF13 -ViridianCity_EventScript_1BDF13:: @ 81BDF13 - .incbin "baserom.gba", 0x1BDF13, 0x58 - -gUnknown_81BDF6B:: @ 81BDF6B - .incbin "baserom.gba", 0x1BDF6B, 0xA1 - -CeruleanCave_2F_EventScript_1BE00C:: @ 81BE00C -MtEmber_Exterior_EventScript_1BE00C:: @ 81BE00C -MtEmber_RubyPath_B1F_Stairs_EventScript_1BE00C:: @ 81BE00C -MtEmber_RubyPath_B2F_EventScript_1BE00C:: @ 81BE00C -MtEmber_SummitPath_2F_EventScript_1BE00C:: @ 81BE00C -MtEmber_RubyPath_1F_EventScript_1BE00C:: @ 81BE00C -SevenIsland_SevaultCanyon_EventScript_1BE00C:: @ 81BE00C -FourIsland_EventScript_1BE00C:: @ 81BE00C -OneIsland_KindleRoad_EventScript_1BE00C:: @ 81BE00C -MtEmber_RubyPath_B2F_Stairs_EventScript_1BE00C:: @ 81BE00C -MtEmber_RubyPath_B3F_EventScript_1BE00C:: @ 81BE00C -MtEmber_RubyPath_B1F_EventScript_1BE00C:: @ 81BE00C -MtEmber_RubyPath_B1F_EventScript_1BE00C:: @ 81BE00C -RockTunnel_B1F_EventScript_1BE00C:: @ 81BE00C -CeruleanCave_B1F_EventScript_1BE00C:: @ 81BE00C -CeruleanCave_1F_EventScript_1BE00C:: @ 81BE00C - .incbin "baserom.gba", 0x1BE00C, 0x58 - -EventScript_FldEffRockSmash:: @ 81BE064 - .incbin "baserom.gba", 0x1BE064, 0xB9 - -MtEmber_Exterior_EventScript_1BE11D:: @ 81BE11D -MtEmber_RubyPath_B2F_EventScript_1BE11D:: @ 81BE11D -MtEmber_Summit_EventScript_1BE11D:: @ 81BE11D -SeafoamIslands_1F_EventScript_1BE11D:: @ 81BE11D -SeafoamIslands_B2F_EventScript_1BE11D:: @ 81BE11D -SevenIsland_SevaultCanyon_EventScript_1BE11D:: @ 81BE11D -VictoryRoad_1F_EventScript_1BE11D:: @ 81BE11D -VictoryRoad_3F_EventScript_1BE11D:: @ 81BE11D -SixIsland_RuinValley_EventScript_1BE11D:: @ 81BE11D -FuchsiaCity_Building1_EventScript_1BE11D:: @ 81BE11D -SevenIsland_SeavaultCanyon_TanobyKey_EventScript_1BE11D:: @ 81BE11D -MtEmber_RubyPath_B3F_EventScript_1BE11D:: @ 81BE11D -SeafoamIslands_B3F_EventScript_1BE11D:: @ 81BE11D -SeafoamIslands_B3F_EventScript_1BE11D:: @ 81BE11D -SeafoamIslands_B1F_EventScript_1BE11D:: @ 81BE11D -VictoryRoad_2F_EventScript_1BE11D:: @ 81BE11D - .incbin "baserom.gba", 0x1BE11D, 0x51 - -EventScript_FldEffStrength:: @ 81BE16E - .incbin "baserom.gba", 0x1BE16E, 0x149 - -gUnknown_81BE2B7:: @ 81BE2B7 - .incbin "baserom.gba", 0x1BE2B7, 0x48 - -gUnknown_81BE2FF:: @ 81BE2FF - .incbin "baserom.gba", 0x1BE2FF, 0x265 - -EventScript_FailSweetScent:: @ 81BE564 - .incbin "baserom.gba", 0x1BE564, 0x2A - -Route2_EventScript_1BE58E:: @ 81BE58E - .incbin "baserom.gba", 0x1BE58E, 0xD - -Route2_EventScript_1BE59B:: @ 81BE59B - .incbin "baserom.gba", 0x1BE59B, 0xD - -ViridianForest_EventScript_1BE5A8:: @ 81BE5A8 - .incbin "baserom.gba", 0x1BE5A8, 0xD - -ViridianForest_EventScript_1BE5B5:: @ 81BE5B5 - .incbin "baserom.gba", 0x1BE5B5, 0xD - -ViridianForest_EventScript_1BE5C2:: @ 81BE5C2 - .incbin "baserom.gba", 0x1BE5C2, 0xD - -MtMoon_1F_EventScript_1BE5CF:: @ 81BE5CF - .incbin "baserom.gba", 0x1BE5CF, 0xD - -MtMoon_1F_EventScript_1BE5DC:: @ 81BE5DC - .incbin "baserom.gba", 0x1BE5DC, 0xD - -MtMoon_1F_EventScript_1BE5E9:: @ 81BE5E9 - .incbin "baserom.gba", 0x1BE5E9, 0xD - -MtMoon_1F_EventScript_1BE5F6:: @ 81BE5F6 - .incbin "baserom.gba", 0x1BE5F6, 0xD - -MtMoon_1F_EventScript_1BE603:: @ 81BE603 - .incbin "baserom.gba", 0x1BE603, 0xD - -MtMoon_1F_EventScript_1BE610:: @ 81BE610 - .incbin "baserom.gba", 0x1BE610, 0xD - -MtMoon_B2F_EventScript_1BE61D:: @ 81BE61D - .incbin "baserom.gba", 0x1BE61D, 0xD - -MtMoon_B2F_EventScript_1BE62A:: @ 81BE62A - .incbin "baserom.gba", 0x1BE62A, 0xD - -Route4_EventScript_1BE637:: @ 81BE637 - .incbin "baserom.gba", 0x1BE637, 0xD - -Route24_EventScript_1BE644:: @ 81BE644 - .incbin "baserom.gba", 0x1BE644, 0xD - -Route25_EventScript_1BE651:: @ 81BE651 - .incbin "baserom.gba", 0x1BE651, 0xD - -SSAnne_1F_Room2_EventScript_1BE65E:: @ 81BE65E - .incbin "baserom.gba", 0x1BE65E, 0xD - -SSAnne_2F_Room2_EventScript_1BE66B:: @ 81BE66B - .incbin "baserom.gba", 0x1BE66B, 0xD - -SSAnne_2F_Room4_EventScript_1BE678:: @ 81BE678 - .incbin "baserom.gba", 0x1BE678, 0xD - -SSAnne_B1F_Room2_EventScript_1BE685:: @ 81BE685 - .incbin "baserom.gba", 0x1BE685, 0xD - -SSAnne_B1F_Room3_EventScript_1BE692:: @ 81BE692 - .incbin "baserom.gba", 0x1BE692, 0xD - -SSAnne_B1F_Room5_EventScript_1BE69F:: @ 81BE69F - .incbin "baserom.gba", 0x1BE69F, 0xD - -SSAnne_Kitchen_EventScript_1BE6AC:: @ 81BE6AC - .incbin "baserom.gba", 0x1BE6AC, 0xD - -Route9_EventScript_1BE6B9:: @ 81BE6B9 - .incbin "baserom.gba", 0x1BE6B9, 0xD - -RocketHideout_B1F_EventScript_1BE6C6:: @ 81BE6C6 - .incbin "baserom.gba", 0x1BE6C6, 0xD - -RocketHideout_B1F_EventScript_1BE6D3:: @ 81BE6D3 - .incbin "baserom.gba", 0x1BE6D3, 0xD - -RocketHideout_B2F_EventScript_1BE6E0:: @ 81BE6E0 - .incbin "baserom.gba", 0x1BE6E0, 0xD - -RocketHideout_B2F_EventScript_1BE6ED:: @ 81BE6ED - .incbin "baserom.gba", 0x1BE6ED, 0xD - -RocketHideout_B2F_EventScript_1BE6FA:: @ 81BE6FA - .incbin "baserom.gba", 0x1BE6FA, 0xD - -RocketHideout_B2F_EventScript_1BE707:: @ 81BE707 - .incbin "baserom.gba", 0x1BE707, 0xD - -RocketHideout_B3F_EventScript_1BE714:: @ 81BE714 - .incbin "baserom.gba", 0x1BE714, 0xD - -RocketHideout_B3F_EventScript_1BE721:: @ 81BE721 - .incbin "baserom.gba", 0x1BE721, 0xD - -RocketHideout_B4F_EventScript_1BE72E:: @ 81BE72E - .incbin "baserom.gba", 0x1BE72E, 0xD - -RocketHideout_B4F_EventScript_1BE73B:: @ 81BE73B - .incbin "baserom.gba", 0x1BE73B, 0xD - -RocketHideout_B4F_EventScript_1BE748:: @ 81BE748 - .incbin "baserom.gba", 0x1BE748, 0xD - -PokemonTower_3F_EventScript_1BE755:: @ 81BE755 - .incbin "baserom.gba", 0x1BE755, 0xD - -PokemonTower_4F_EventScript_1BE762:: @ 81BE762 - .incbin "baserom.gba", 0x1BE762, 0xD - -PokemonTower_4F_EventScript_1BE76F:: @ 81BE76F - .incbin "baserom.gba", 0x1BE76F, 0xD - -PokemonTower_4F_EventScript_1BE77C:: @ 81BE77C - .incbin "baserom.gba", 0x1BE77C, 0xD - -PokemonTower_5F_EventScript_1BE789:: @ 81BE789 - .incbin "baserom.gba", 0x1BE789, 0xD - -PokemonTower_6F_EventScript_1BE796:: @ 81BE796 - .incbin "baserom.gba", 0x1BE796, 0xD - -PokemonTower_6F_EventScript_1BE7A3:: @ 81BE7A3 - .incbin "baserom.gba", 0x1BE7A3, 0xD - -Route12_EventScript_1BE7B0:: @ 81BE7B0 - .incbin "baserom.gba", 0x1BE7B0, 0xD - -Route12_EventScript_1BE7BD:: @ 81BE7BD - .incbin "baserom.gba", 0x1BE7BD, 0xD - -Route15_EventScript_1BE7CA:: @ 81BE7CA - .incbin "baserom.gba", 0x1BE7CA, 0xD - -SafariZone_Center_EventScript_1BE7D7:: @ 81BE7D7 - .incbin "baserom.gba", 0x1BE7D7, 0xD - -SafariZone_East_EventScript_1BE7E4:: @ 81BE7E4 - .incbin "baserom.gba", 0x1BE7E4, 0xD - -SafariZone_East_EventScript_1BE7F1:: @ 81BE7F1 - .incbin "baserom.gba", 0x1BE7F1, 0xD - -SafariZone_East_EventScript_1BE7FE:: @ 81BE7FE - .incbin "baserom.gba", 0x1BE7FE, 0xD - -SafariZone_East_EventScript_1BE80B:: @ 81BE80B - .incbin "baserom.gba", 0x1BE80B, 0xD - -SafariZone_North_EventScript_1BE818:: @ 81BE818 - .incbin "baserom.gba", 0x1BE818, 0xD - -SafariZone_North_EventScript_1BE825:: @ 81BE825 - .incbin "baserom.gba", 0x1BE825, 0xD - -SafariZone_West_EventScript_1BE832:: @ 81BE832 - .incbin "baserom.gba", 0x1BE832, 0xD - -SafariZone_West_EventScript_1BE83F:: @ 81BE83F - .incbin "baserom.gba", 0x1BE83F, 0xD - -SafariZone_West_EventScript_1BE84C:: @ 81BE84C - .incbin "baserom.gba", 0x1BE84C, 0xD - -SafariZone_West_EventScript_1BE859:: @ 81BE859 - .incbin "baserom.gba", 0x1BE859, 0xD - -SilphCo_3F_EventScript_1BE866:: @ 81BE866 - .incbin "baserom.gba", 0x1BE866, 0xD - -SilphCo_4F_EventScript_1BE873:: @ 81BE873 - .incbin "baserom.gba", 0x1BE873, 0xD - -SilphCo_4F_EventScript_1BE880:: @ 81BE880 - .incbin "baserom.gba", 0x1BE880, 0xD - -SilphCo_4F_EventScript_1BE88D:: @ 81BE88D - .incbin "baserom.gba", 0x1BE88D, 0xD - -SilphCo_5F_EventScript_1BE89A:: @ 81BE89A - .incbin "baserom.gba", 0x1BE89A, 0xD - -SilphCo_5F_EventScript_1BE8A7:: @ 81BE8A7 - .incbin "baserom.gba", 0x1BE8A7, 0xD - -SilphCo_5F_EventScript_1BE8B4:: @ 81BE8B4 - .incbin "baserom.gba", 0x1BE8B4, 0xD - -SilphCo_6F_EventScript_1BE8C1:: @ 81BE8C1 - .incbin "baserom.gba", 0x1BE8C1, 0xD - -SilphCo_6F_EventScript_1BE8CE:: @ 81BE8CE - .incbin "baserom.gba", 0x1BE8CE, 0xD - -SilphCo_7F_EventScript_1BE8DB:: @ 81BE8DB - .incbin "baserom.gba", 0x1BE8DB, 0xD - -SilphCo_7F_EventScript_1BE8E8:: @ 81BE8E8 - .incbin "baserom.gba", 0x1BE8E8, 0xD - -SilphCo_10F_EventScript_1BE8F5:: @ 81BE8F5 - .incbin "baserom.gba", 0x1BE8F5, 0xD - -SilphCo_10F_EventScript_1BE902:: @ 81BE902 - .incbin "baserom.gba", 0x1BE902, 0xD - -SilphCo_10F_EventScript_1BE90F:: @ 81BE90F - .incbin "baserom.gba", 0x1BE90F, 0xD - -PowerPlant_EventScript_1BE91C:: @ 81BE91C - .incbin "baserom.gba", 0x1BE91C, 0xD - -PowerPlant_EventScript_1BE929:: @ 81BE929 - .incbin "baserom.gba", 0x1BE929, 0xD - -PowerPlant_EventScript_1BE936:: @ 81BE936 - .incbin "baserom.gba", 0x1BE936, 0xD - -PowerPlant_EventScript_1BE943:: @ 81BE943 - .incbin "baserom.gba", 0x1BE943, 0xD - -PowerPlant_EventScript_1BE950:: @ 81BE950 - .incbin "baserom.gba", 0x1BE950, 0xD - -PokemonMansion_1F_EventScript_1BE95D:: @ 81BE95D - .incbin "baserom.gba", 0x1BE95D, 0xD - -PokemonMansion_1F_EventScript_1BE96A:: @ 81BE96A - .incbin "baserom.gba", 0x1BE96A, 0xD - -PokemonMansion_2F_EventScript_1BE977:: @ 81BE977 - .incbin "baserom.gba", 0x1BE977, 0xD - -PokemonMansion_3F_EventScript_1BE984:: @ 81BE984 - .incbin "baserom.gba", 0x1BE984, 0xD - -PokemonMansion_3F_EventScript_1BE991:: @ 81BE991 - .incbin "baserom.gba", 0x1BE991, 0xD - -PokemonMansion_B1F_EventScript_1BE99E:: @ 81BE99E - .incbin "baserom.gba", 0x1BE99E, 0xD - -PokemonMansion_B1F_EventScript_1BE9AB:: @ 81BE9AB - .incbin "baserom.gba", 0x1BE9AB, 0xD - -PokemonMansion_B1F_EventScript_1BE9B8:: @ 81BE9B8 - .incbin "baserom.gba", 0x1BE9B8, 0xD - -PokemonMansion_B1F_EventScript_1BE9C5:: @ 81BE9C5 - .incbin "baserom.gba", 0x1BE9C5, 0xD - -VictoryRoad_1F_EventScript_1BE9D2:: @ 81BE9D2 - .incbin "baserom.gba", 0x1BE9D2, 0xD - -VictoryRoad_1F_EventScript_1BE9DF:: @ 81BE9DF - .incbin "baserom.gba", 0x1BE9DF, 0xD - -VictoryRoad_2F_EventScript_1BE9EC:: @ 81BE9EC - .incbin "baserom.gba", 0x1BE9EC, 0xD - -VictoryRoad_2F_EventScript_1BE9F9:: @ 81BE9F9 - .incbin "baserom.gba", 0x1BE9F9, 0xD - -VictoryRoad_2F_EventScript_1BEA06:: @ 81BEA06 - .incbin "baserom.gba", 0x1BEA06, 0xD - -VictoryRoad_2F_EventScript_1BEA13:: @ 81BEA13 - .incbin "baserom.gba", 0x1BEA13, 0xD - -VictoryRoad_3F_EventScript_1BEA20:: @ 81BEA20 - .incbin "baserom.gba", 0x1BEA20, 0xD - -VictoryRoad_3F_EventScript_1BEA2D:: @ 81BEA2D - .incbin "baserom.gba", 0x1BEA2D, 0xD - -CeruleanCave_1F_EventScript_1BEA3A:: @ 81BEA3A - .incbin "baserom.gba", 0x1BEA3A, 0xD - -CeruleanCave_1F_EventScript_1BEA47:: @ 81BEA47 - .incbin "baserom.gba", 0x1BEA47, 0xD - -CeruleanCave_1F_EventScript_1BEA54:: @ 81BEA54 - .incbin "baserom.gba", 0x1BEA54, 0xD - -CeruleanCave_2F_EventScript_1BEA61:: @ 81BEA61 - .incbin "baserom.gba", 0x1BEA61, 0xD - -CeruleanCave_2F_EventScript_1BEA6E:: @ 81BEA6E - .incbin "baserom.gba", 0x1BEA6E, 0xD - -CeruleanCave_2F_EventScript_1BEA7B:: @ 81BEA7B - .incbin "baserom.gba", 0x1BEA7B, 0xD - -CeruleanCave_B1F_EventScript_1BEA88:: @ 81BEA88 - .incbin "baserom.gba", 0x1BEA88, 0xD - -CeruleanCave_B1F_EventScript_1BEA95:: @ 81BEA95 - .incbin "baserom.gba", 0x1BEA95, 0xD - -FuchsiaCity_Building1_EventScript_1BEAA2:: @ 81BEAA2 - .incbin "baserom.gba", 0x1BEAA2, 0xD - -TwoIsland_EventScript_1BEAAF:: @ 81BEAAF - .incbin "baserom.gba", 0x1BEAAF, 0xD - -ThreeIsland_EventScript_1BEABC:: @ 81BEABC - .incbin "baserom.gba", 0x1BEABC, 0xD - -ViridianForest_EventScript_1BEAC9:: @ 81BEAC9 - .incbin "baserom.gba", 0x1BEAC9, 0xD - -MtMoon_B2F_EventScript_1BEAD6:: @ 81BEAD6 - .incbin "baserom.gba", 0x1BEAD6, 0xD - -MtMoon_B2F_EventScript_1BEAE3:: @ 81BEAE3 - .incbin "baserom.gba", 0x1BEAE3, 0xD - -Route11_EventScript_1BEAF0:: @ 81BEAF0 - .incbin "baserom.gba", 0x1BEAF0, 0xD - -Route9_EventScript_1BEAFD:: @ 81BEAFD - .incbin "baserom.gba", 0x1BEAFD, 0xD - -RockTunnel_1F_EventScript_1BEB0A:: @ 81BEB0A - .incbin "baserom.gba", 0x1BEB0A, 0xD - -RockTunnel_1F_EventScript_1BEB17:: @ 81BEB17 - .incbin "baserom.gba", 0x1BEB17, 0xD - -RockTunnel_1F_EventScript_1BEB24:: @ 81BEB24 - .incbin "baserom.gba", 0x1BEB24, 0xD - -RockTunnel_B1F_EventScript_1BEB31:: @ 81BEB31 - .incbin "baserom.gba", 0x1BEB31, 0xD - -RockTunnel_B1F_EventScript_1BEB3E:: @ 81BEB3E - .incbin "baserom.gba", 0x1BEB3E, 0xD - -SilphCo_8F_EventScript_1BEB4B:: @ 81BEB4B - .incbin "baserom.gba", 0x1BEB4B, 0xD - -SilphCo_11F_EventScript_1BEB58:: @ 81BEB58 - .incbin "baserom.gba", 0x1BEB58, 0xD - -PokemonMansion_1F_EventScript_1BEB65:: @ 81BEB65 - .incbin "baserom.gba", 0x1BEB65, 0xD - -PokemonMansion_2F_EventScript_1BEB72:: @ 81BEB72 - .incbin "baserom.gba", 0x1BEB72, 0xD - -PokemonMansion_2F_EventScript_1BEB7F:: @ 81BEB7F - .incbin "baserom.gba", 0x1BEB7F, 0xD - -ViridianCity_EventScript_1BEB8C:: @ 81BEB8C - .incbin "baserom.gba", 0x1BEB8C, 0xD - -Route11_EventScript_1BEB99:: @ 81BEB99 - .incbin "baserom.gba", 0x1BEB99, 0xD - -Route11_EventScript_1BEBA6:: @ 81BEBA6 - .incbin "baserom.gba", 0x1BEBA6, 0xD - -PokemonTower_5F_EventScript_1BEBB3:: @ 81BEBB3 - .incbin "baserom.gba", 0x1BEBB3, 0xD - -CeladonCity_EventScript_1BEBC0:: @ 81BEBC0 - .incbin "baserom.gba", 0x1BEBC0, 0xD - -RocketHideout_B3F_EventScript_1BEBCD:: @ 81BEBCD - .incbin "baserom.gba", 0x1BEBCD, 0xD - -SafariZone_North_EventScript_1BEBDA:: @ 81BEBDA - .incbin "baserom.gba", 0x1BEBDA, 0xD - -SeafoamIslands_1F_EventScript_1BEBE7:: @ 81BEBE7 - .incbin "baserom.gba", 0x1BEBE7, 0xD - -SeafoamIslands_B1F_EventScript_1BEBF4:: @ 81BEBF4 - .incbin "baserom.gba", 0x1BEBF4, 0xD - -SeafoamIslands_B1F_EventScript_1BEC01:: @ 81BEC01 - .incbin "baserom.gba", 0x1BEC01, 0xD - -SeafoamIslands_B2F_EventScript_1BEC0E:: @ 81BEC0E - .incbin "baserom.gba", 0x1BEC0E, 0xD - -SeafoamIslands_B4F_EventScript_1BEC1B:: @ 81BEC1B - .incbin "baserom.gba", 0x1BEC1B, 0xD - -FourIsland_EventScript_1BEC28:: @ 81BEC28 - .incbin "baserom.gba", 0x1BEC28, 0xD - -FourIsland_EventScript_1BEC35:: @ 81BEC35 - .incbin "baserom.gba", 0x1BEC35, 0xD - -OneIsland_KindleRoad_EventScript_1BEC42:: @ 81BEC42 - .incbin "baserom.gba", 0x1BEC42, 0xD - -OneIsland_KindleRoad_EventScript_1BEC4F:: @ 81BEC4F - .incbin "baserom.gba", 0x1BEC4F, 0xD - -OneIsland_KindleRoad_EventScript_1BEC5C:: @ 81BEC5C - .incbin "baserom.gba", 0x1BEC5C, 0xD - -FiveIsland_Meadow_EventScript_1BEC69:: @ 81BEC69 - .incbin "baserom.gba", 0x1BEC69, 0xD - -FiveIsland_Meadow_EventScript_1BEC76:: @ 81BEC76 - .incbin "baserom.gba", 0x1BEC76, 0xD - -FiveIsland_MemorialPillar_EventScript_1BEC83:: @ 81BEC83 - .incbin "baserom.gba", 0x1BEC83, 0xD - -SixIsland_OutcastIsland_EventScript_1BEC90:: @ 81BEC90 - .incbin "baserom.gba", 0x1BEC90, 0xD - -SixIsland_WaterPath_EventScript_1BEC9D:: @ 81BEC9D - .incbin "baserom.gba", 0x1BEC9D, 0xD - -SixIsland_WaterPath_EventScript_1BECAA:: @ 81BECAA - .incbin "baserom.gba", 0x1BECAA, 0xD - -SixIsland_RuinValley_EventScript_1BECB7:: @ 81BECB7 - .incbin "baserom.gba", 0x1BECB7, 0xD - -SixIsland_RuinValley_EventScript_1BECC4:: @ 81BECC4 - .incbin "baserom.gba", 0x1BECC4, 0xD - -SixIsland_RuinValley_EventScript_1BECD1:: @ 81BECD1 - .incbin "baserom.gba", 0x1BECD1, 0xD - -SevenIsland_SevaultCanyon_EventScript_1BECDE:: @ 81BECDE - .incbin "baserom.gba", 0x1BECDE, 0xD - -SevenIsland_SevaultCanyon_EventScript_1BECEB:: @ 81BECEB - .incbin "baserom.gba", 0x1BECEB, 0xD - -SevenIsland_SevaultCanyon_EventScript_1BECF8:: @ 81BECF8 - .incbin "baserom.gba", 0x1BECF8, 0xD - -ThreeIsland_BerryForest_EventScript_1BED05:: @ 81BED05 - .incbin "baserom.gba", 0x1BED05, 0xD - -ThreeIsland_BerryForest_EventScript_1BED12:: @ 81BED12 - .incbin "baserom.gba", 0x1BED12, 0xD - -ThreeIsland_BerryForest_EventScript_1BED1F:: @ 81BED1F - .incbin "baserom.gba", 0x1BED1F, 0xD - -MtEmber_Exterior_EventScript_1BED2C:: @ 81BED2C - .incbin "baserom.gba", 0x1BED2C, 0xD - -MtEmber_Exterior_EventScript_1BED39:: @ 81BED39 - .incbin "baserom.gba", 0x1BED39, 0xD - -MtEmber_Exterior_EventScript_1BED46:: @ 81BED46 - .incbin "baserom.gba", 0x1BED46, 0xD - -FourIsland_IcefallCave_1F_EventScript_1BED53:: @ 81BED53 - .incbin "baserom.gba", 0x1BED53, 0xD - -FourIsland_IcefallCave_1F_EventScript_1BED60:: @ 81BED60 - .incbin "baserom.gba", 0x1BED60, 0xD - -FourIsland_IcefallCave_B1F_EventScript_1BED6D:: @ 81BED6D - .incbin "baserom.gba", 0x1BED6D, 0xD - -FourIsland_IcefallCave_B1F_EventScript_1BED7A:: @ 81BED7A - .incbin "baserom.gba", 0x1BED7A, 0xD - -FiveIsland_RocketWarehouse_EventScript_1BED87:: @ 81BED87 - .incbin "baserom.gba", 0x1BED87, 0xD - -FiveIsland_RocketWarehouse_EventScript_1BED94:: @ 81BED94 - .incbin "baserom.gba", 0x1BED94, 0xD - -FiveIsland_RocketWarehouse_EventScript_1BEDA1:: @ 81BEDA1 - .incbin "baserom.gba", 0x1BEDA1, 0xD - -FiveIsland_RocketWarehouse_EventScript_1BEDAE:: @ 81BEDAE - .incbin "baserom.gba", 0x1BEDAE, 0xD - -FiveIsland_LostCave_Room10_EventScript_1BEDBB:: @ 81BEDBB - .incbin "baserom.gba", 0x1BEDBB, 0xD - -FiveIsland_LostCave_Room11_EventScript_1BEDC8:: @ 81BEDC8 - .incbin "baserom.gba", 0x1BEDC8, 0xD - -FiveIsland_LostCave_Room12_EventScript_1BEDD5:: @ 81BEDD5 - .incbin "baserom.gba", 0x1BEDD5, 0xD - -FiveIsland_LostCave_Room13_EventScript_1BEDE2:: @ 81BEDE2 - .incbin "baserom.gba", 0x1BEDE2, 0xD - -FiveIsland_LostCave_Room14_EventScript_1BEDEF:: @ 81BEDEF - .incbin "baserom.gba", 0x1BEDEF, 0xD - -SevenIsland_SevaultCanyon_House_EventScript_1BEDFC:: @ 81BEDFC - .incbin "baserom.gba", 0x1BEDFC, 0xD - -SilphCo_4F_EventScript_1BEE09:: @ 81BEE09 - .incbin "baserom.gba", 0x1BEE09, 0xD - -PewterCity_PokemonCenter_1F_EventScript_1BEE16:: @ 81BEE16 - .incbin "baserom.gba", 0x1BEE16, 0x582 - -Route5_PokemonDayCare_EventScript_1BF398:: @ 81BF398 - .incbin "baserom.gba", 0x1BF398, 0x1AE - -gUnknown_81BF546:: @ 81BF546 - .incbin "baserom.gba", 0x1BF546, 0xF - -gUnknown_81BF555:: @ 81BF555 - .incbin "baserom.gba", 0x1BF555, 0x8E - -gUnknown_81BF5E3:: @ 81BF5E3 - .incbin "baserom.gba", 0x1BF5E3, 0xB7 - -gUnknown_81BF69A:: @ 81BF69A - .incbin "baserom.gba", 0x1BF69A, 0x35 - -gUnknown_81BF6CF:: @ 81BF6CF - .incbin "baserom.gba", 0x1BF6CF, 0x21 - -gUnknown_81BF6F0:: @ 81BF6F0 - .incbin "baserom.gba", 0x1BF6F0, 0x3A - -Text_1BF72A:: @ 81BF72A - .incbin "baserom.gba", 0x1BF72A, 0x2B - -gUnknown_81BF755:: @ 81BF755 - .incbin "baserom.gba", 0x1BF755, 0x34 - -gUnknown_81BF789:: @ 81BF789 - .incbin "baserom.gba", 0x1BF789, 0x2D - -gUnknown_81BF7B6:: @ 81BF7B6 - .incbin "baserom.gba", 0x1BF7B6, 0x2E - -gUnknown_81BF7E4:: @ 81BF7E4 - .incbin "baserom.gba", 0x1BF7E4, 0x55 - -gUnknown_81BF839:: @ 81BF839 - .incbin "baserom.gba", 0x1BF839, 0x27 - -gUnknown_81BF860:: @ 81BF860 - .incbin "baserom.gba", 0x1BF860, 0x3F - -gUnknown_81BF89F:: @ 81BF89F - .incbin "baserom.gba", 0x1BF89F, 0x57 - -gUnknown_81BF8F6:: @ 81BF8F6 - .incbin "baserom.gba", 0x1BF8F6, 0x20 - -gUnknown_81BF916:: @ 81BF916 - .incbin "baserom.gba", 0x1BF916, 0x1C - -gUnknown_81BF932:: @ 81BF932 - .incbin "baserom.gba", 0x1BF932, 0x1D - -gUnknown_81BF94F:: @ 81BF94F - .incbin "baserom.gba", 0x1BF94F, 0x27 - -gUnknown_81BF976:: @ 81BF976 - .incbin "baserom.gba", 0x1BF976, 0x12 - -gUnknown_81BF988:: @ 81BF988 - .incbin "baserom.gba", 0x1BF988, 0x44 - -gUnknown_81BF9CC:: @ 81BF9CC - .incbin "baserom.gba", 0x1BF9CC, 0x23 - -gUnknown_81BF9EF:: @ 81BF9EF - .incbin "baserom.gba", 0x1BF9EF, 0x4C - -gUnknown_81BFA3B:: @ 81BFA3B - .incbin "baserom.gba", 0x1BFA3B, 0x2C - -gUnknown_81BFA67:: @ 81BFA67 - .incbin "baserom.gba", 0x1BFA67, 0x1E - -gUnknown_81BFA85:: @ 81BFA85 - .incbin "baserom.gba", 0x1BFA85, 0x28 - -gUnknown_81BFAAD:: @ 81BFAAD - .incbin "baserom.gba", 0x1BFAAD, 0x3B - -gUnknown_81BFAE8:: @ 81BFAE8 - .incbin "baserom.gba", 0x1BFAE8, 0x21 - -gUnknown_81BFB09:: @ 81BFB09 - .incbin "baserom.gba", 0x1BFB09, 0x56 - -gUnknown_81BFB5F:: @ 81BFB5F - .incbin "baserom.gba", 0x1BFB5F, 0x6 - -gUnknown_81BFB65:: @ 81BFB65 - .incbin "baserom.gba", 0x1BFB65, 0x22 - -EventScript_SafariWarpOut:: @ 81BFB87 - .incbin "baserom.gba", 0x1BFB87, 0x23 - -EventScript_SafariRetire:: @ 81BFBAA - .incbin "baserom.gba", 0x1BFBAA, 0x1B - -EventScript_SafariTimesUp:: @ 81BFBC5 - .incbin "baserom.gba", 0x1BFBC5, 0x12 - -EventScript_SafariOutOfBalls:: @ 81BFBD7 - .incbin "baserom.gba", 0x1BFBD7, 0x2D5 - -gUnknown_81BFEAC:: @ 81BFEAC - .incbin "baserom.gba", 0x1BFEAC, 0x1164 - -gUnknown_81C1010:: @ 81C1010 - .incbin "baserom.gba", 0x1C1010, 0xC - -gUnknown_81C101C:: @ 81C101C - .incbin "baserom.gba", 0x1C101C, 0x345 - -gUnknown_81C1361:: @ 81C1361 - .incbin "baserom.gba", 0x1C1361, 0x1B - -gUnknown_81C137C:: @ 81C137C - .incbin "baserom.gba", 0x1C137C, 0x5A - -gUnknown_81C13D6:: @ 81C13D6 - .incbin "baserom.gba", 0x1C13D6, 0x53 - -gUnknown_81C1429:: @ 81C1429 - .incbin "baserom.gba", 0x1C1429, 0x3385 - -VictoryRoad_2F_EventScript_1C47AE:: @ 81C47AE - .incbin "baserom.gba", 0x1C47AE, 0x68 - -EventScript_1C4816:: @ 81C4816 - .incbin "baserom.gba", 0x1C4816, 0x68 - -RockTunnel_B1F_EventScript_1C487E:: @ 81C487E - .incbin "baserom.gba", 0x1C487E, 0x68 - -MtEmber_Exterior_EventScript_1C48E6:: @ 81C48E6 - .incbin "baserom.gba", 0x1C48E6, 0x68 - -Route4_EventScript_1C494E:: @ 81C494E - .incbin "baserom.gba", 0x1C494E, 0x68 - -Route4_EventScript_1C49B6:: @ 81C49B6 - .incbin "baserom.gba", 0x1C49B6, 0x68 - -EventScript_1C4A1E:: @ 81C4A1E - .incbin "baserom.gba", 0x1C4A1E, 0x68 - -EventScript_1C4A86:: @ 81C4A86 - .incbin "baserom.gba", 0x1C4A86, 0x68 - -FuchsiaCity_EventScript_1C4AEE:: @ 81C4AEE - .incbin "baserom.gba", 0x1C4AEE, 0x68 - -SevenIsland_EventScript_1C4B56:: @ 81C4B56 - .incbin "baserom.gba", 0x1C4B56, 0x68 - -PewterCity_Museum_1F_EventScript_1C4BBE:: @ 81C4BBE - .incbin "baserom.gba", 0x1C4BBE, 0x68 - -EventScript_1C4C26:: @ 81C4C26 - .incbin "baserom.gba", 0x1C4C26, 0x68 - -EventScript_1C4C8E:: @ 81C4C8E - .incbin "baserom.gba", 0x1C4C8E, 0x68 - -EventScript_1C4CF6:: @ 81C4CF6 - .incbin "baserom.gba", 0x1C4CF6, 0x8E - -FourIsland_House1_EventScript_1C4D84:: @ 81C4D84 - .incbin "baserom.gba", 0x1C4D84, 0x68 - -TwoIsland_CapeBrink_House_EventScript_1C4DEC:: @ 81C4DEC - .incbin "baserom.gba", 0x1C4DEC, 0x168 - -SevenIsland_TrainerTower_1F_MapScript1_1C4F54:: @ 81C4F54 -SevenIsland_TrainerTower_2F_MapScript1_1C4F54:: @ 81C4F54 -SevenIsland_TrainerTower_3F_MapScript1_1C4F54:: @ 81C4F54 -SevenIsland_TrainerTower_4F_MapScript1_1C4F54:: @ 81C4F54 -SevenIsland_TrainerTower_5F_MapScript1_1C4F54:: @ 81C4F54 -SevenIsland_TrainerTower_6F_MapScript1_1C4F54:: @ 81C4F54 -SevenIsland_TrainerTower_7F_MapScript1_1C4F54:: @ 81C4F54 -SevenIsland_TrainerTower_8F_MapScript1_1C4F54:: @ 81C4F54 -SevenIsland_TrainerTower_Elevator_MapScript1_1C4F54:: @ 81C4F54 -SevenIsland_TrainerTower_Roof_MapScript1_1C4F54:: @ 81C4F54 - .incbin "baserom.gba", 0x1C4F54, 0xE - -SevenIsland_TrainerTower_1F_MapScript2_1C4F62:: @ 81C4F62 -SevenIsland_TrainerTower_2F_MapScript2_1C4F62:: @ 81C4F62 -SevenIsland_TrainerTower_3F_MapScript2_1C4F62:: @ 81C4F62 -SevenIsland_TrainerTower_4F_MapScript2_1C4F62:: @ 81C4F62 -SevenIsland_TrainerTower_5F_MapScript2_1C4F62:: @ 81C4F62 -SevenIsland_TrainerTower_6F_MapScript2_1C4F62:: @ 81C4F62 -SevenIsland_TrainerTower_7F_MapScript2_1C4F62:: @ 81C4F62 -SevenIsland_TrainerTower_8F_MapScript2_1C4F62:: @ 81C4F62 - .incbin "baserom.gba", 0x1C4F62, 0xE4 - -SevenIsland_TrainerTower_1F_MapScript3_1C5046:: @ 81C5046 -SevenIsland_TrainerTower_2F_MapScript3_1C5046:: @ 81C5046 -SevenIsland_TrainerTower_3F_MapScript3_1C5046:: @ 81C5046 -SevenIsland_TrainerTower_4F_MapScript3_1C5046:: @ 81C5046 -SevenIsland_TrainerTower_5F_MapScript3_1C5046:: @ 81C5046 -SevenIsland_TrainerTower_6F_MapScript3_1C5046:: @ 81C5046 -SevenIsland_TrainerTower_7F_MapScript3_1C5046:: @ 81C5046 -SevenIsland_TrainerTower_8F_MapScript3_1C5046:: @ 81C5046 -SevenIsland_TrainerTower_Elevator_MapScript2_1C5046:: @ 81C5046 -SevenIsland_TrainerTower_Roof_MapScript2_1C5046:: @ 81C5046 - .incbin "baserom.gba", 0x1C5046, 0x2AE - -EventScript_1C52F4:: @ 81C52F4 - .incbin "baserom.gba", 0x1C52F4, 0x47 - -EventScript_1C533B:: @ 81C533B - .incbin "baserom.gba", 0x1C533B, 0x47 - -EventScript_1C5382:: @ 81C5382 - .incbin "baserom.gba", 0x1C5382, 0xA - -EventScript_1C538C:: @ 81C538C - .incbin "baserom.gba", 0x1C538C, 0x1E - -EventScript_1C53AA:: @ 81C53AA - .incbin "baserom.gba", 0x1C53AA, 0xF2 - -gUnknown_81C549C:: @ 81C549C - .incbin "baserom.gba", 0x1C549C, 0x13 - -SevenIsland_TrainerTower_2F_EventScript_1C54AF:: @ 81C54AF -SevenIsland_TrainerTower_4F_EventScript_1C54AF:: @ 81C54AF -SevenIsland_TrainerTower_6F_EventScript_1C54AF:: @ 81C54AF -SevenIsland_TrainerTower_8F_EventScript_1C54AF:: @ 81C54AF -SevenIsland_TrainerTower_5F_EventScript_1C54AF:: @ 81C54AF -SevenIsland_TrainerTower_7F_EventScript_1C54AF:: @ 81C54AF -SevenIsland_TrainerTower_3F_EventScript_1C54AF:: @ 81C54AF -SevenIsland_TrainerTower_1F_EventScript_1C54AF:: @ 81C54AF - .incbin "baserom.gba", 0x1C54AF, 0x5 - -SevenIsland_TrainerTower_2F_EventScript_1C54B4:: @ 81C54B4 -SevenIsland_TrainerTower_4F_EventScript_1C54B4:: @ 81C54B4 -SevenIsland_TrainerTower_6F_EventScript_1C54B4:: @ 81C54B4 -SevenIsland_TrainerTower_8F_EventScript_1C54B4:: @ 81C54B4 -SevenIsland_TrainerTower_5F_EventScript_1C54B4:: @ 81C54B4 -SevenIsland_TrainerTower_7F_EventScript_1C54B4:: @ 81C54B4 -SevenIsland_TrainerTower_3F_EventScript_1C54B4:: @ 81C54B4 -SevenIsland_TrainerTower_1F_EventScript_1C54B4:: @ 81C54B4 - .incbin "baserom.gba", 0x1C54B4, 0x36 - -SevenIsland_TrainerTower_2F_EventScript_1C54EA:: @ 81C54EA -SevenIsland_TrainerTower_4F_EventScript_1C54EA:: @ 81C54EA -SevenIsland_TrainerTower_6F_EventScript_1C54EA:: @ 81C54EA -SevenIsland_TrainerTower_8F_EventScript_1C54EA:: @ 81C54EA -SevenIsland_TrainerTower_5F_EventScript_1C54EA:: @ 81C54EA -SevenIsland_TrainerTower_7F_EventScript_1C54EA:: @ 81C54EA -SevenIsland_TrainerTower_3F_EventScript_1C54EA:: @ 81C54EA -SevenIsland_TrainerTower_1F_EventScript_1C54EA:: @ 81C54EA - .incbin "baserom.gba", 0x1C54EA, 0x71 - -gUnknown_81C555B:: @ 81C555B - .incbin "baserom.gba", 0x1C555B, 0x6E - -gText_WouldYouLikeToSaveTheGame:: @ 81C55C9 - .string "Would you like to save the game?$" - -gText_AlreadySaveFile_WouldLikeToOverwrite:: @ 81C55EA - .string "There is already a saved file.\n" - .string "Is it okay to overwrite it?$" - -gText_SavingDontTurnOffThePower:: @ 81C5625 - .string "SAVING…\n" - .string "DON'T TURN OFF THE POWER.$" - -gText_PlayerSavedTheGame:: @ 81C5647 - .string "{PLAYER} saved the game.$" - -gUnknown_81C565A:: - .string "セーブã«ã€€ã—ã£ã±ã„ ã—ã¾ã—ãŸâ€¥$" - -@ 0xE5 -gText_DifferentGameFile:: @ 81C566A - .string "WARNING!\p" - .string "There is a different game file that\n" - .string "is already saved.\p" - .string "If you save now, the other file's\n" - .string "adventure, including items and\l" - .string "POKéMON, will be entirely lost.\p" - .string "Are you sure you want to save now\n" - .string "and overwrite the other save file?$" - -gOtherText_NewName:: @ 81C574F - .string "NEW NAME$" - -gNameChoice_Green:: @ 81C5758 - .string "GREEN$" - -gNameChoice_Red:: @ 81C575E - .string "RED$" - -gNameChoice_Leaf:: @ 81C5762 - .string "LEAF$" - -gNameChoice_Fire:: @ 81C5767 - .string "FIRE$" - -gNameChoice_Gary:: @ 81C576C - .string "GARY$" - -gNameChoice_Kaz:: @ 81C5771 - .string "KAZ$" - -gNameChoice_Toru:: @ 81C5775 - .string "TORU$" - -gNameChoice_Ash:: @ 81C577A - .string "ASH$" - -gNameChoice_Kene:: @ 81C577E - .string "KENE$" - -gNameChoice_Geki:: @ 81C5783 - .string "GEKI$" - -gNameChoice_Jak:: @ 81C5788 - .string "JAK$" - -gNameChoice_Janne:: @ 81C578C - .string "JANNE$" - -gNameChoice_Jonn:: @ 81C5792 - .string "JONN$" - -gNameChoice_Kamon:: @ 81C5797 - .string "KAMON$" - -gNameChoice_Karl:: @ 81C579D - .string "KARL$" - -gNameChoice_Taylor:: @ 81C57A2 - .string "TAYLOR$" - -gNameChoice_Oscar:: @ 81C57A9 - .string "OSCAR$" - -gNameChoice_Hiro:: @ 81C57AF - .string "HIRO$" - -gNameChoice_Max:: @ 81C57B4 - .string "MAX$" - -gNameChoice_Jon:: @ 81C57B8 - .string "JON$" - -gNameChoice_Ralph:: @ 81C57BC - .string "RALPH$" - -gNameChoice_Kay:: @ 81C57C2 - .string "KAY$" - -gNameChoice_Tosh:: @ 81C57C6 - .string "TOSH$" - -gNameChoice_Roak:: @ 81C57CB - .string "ROAK$" - -gNameChoice_Omi:: @ 81C57D0 - .string "OMI$" - -gNameChoice_Jodi:: @ 81C57D4 - .string "JODI$" - -gNameChoice_Amanda:: @ 81C57D9 - .string "AMANDA$" - -gNameChoice_Hillary:: @ 81C57E0 - .string "HILLARY$" - -gNameChoice_Makey:: @ 81C57E8 - .string "MAKEY$" - -gNameChoice_Michi:: @ 81C57EE - .string "MICHI$" - -gNameChoice_Paula:: @ 81C57F4 - .string "PAULA$" - -gNameChoice_June:: @ 81C57FA - .string "JUNE$" - -gNameChoice_Cassie:: @ 81C57FF - .string "CASSIE$" - -gNameChoice_Rey:: @ 81C5806 - .string "REY$" - -gNameChoice_Seda:: @ 81C580A - .string "SEDA$" - -gNameChoice_Kiko:: @ 81C580F - .string "KIKO$" - -gNameChoice_Mina:: @ 81C5814 - .string "MINA$" - -gNameChoice_Norie:: @ 81C5819 - .string "NORIE$" - -gNameChoice_Sai:: @ 81C581F - .string "SAI$" - -gNameChoice_Momo:: @ 81C5823 - .string "MOMO$" - -gNameChoice_Suzi:: @ 81C5828 - .string "SUZI$" - -gNewGame_HelpDocs1:: @ 81C582D - .string "The various buttons will be explained in\n" - .string "the order of their importance.$" - -gNewGame_HelpDocs2:: @ 81C5875 - .string "Moves the main character.\n" - .string "Also used to choose various data\n" - .string "headings.$" - -gNewGame_HelpDocs3:: @ 81C58BA - .string "Used to confirm a choice, check\n" - .string "things, chat, and scroll text.$" - -gNewGame_HelpDocs4:: @ 81C58F9 - .string "Used to exit, cancel a choice,\n" - .string "and cancel a mode.$" - -gNewGame_HelpDocs5:: @ 81C592B - .string "Press this button to open the\n" - .string "MENU.$" - -gNewGame_HelpDocs6:: @ 81C594F - .string "Used to shift items and to use\n" - .string "a registered item.$" - -gNewGame_HelpDocs7:: @ 81C5981 - .string "If you need help playing the\n" - .string "game, or on how to do things,\n" - .string "press the L or R Button.$" - -gOakText_AskPlayerGender:: @ 81C59D5 - .string "Now tell me. Are you a boy?\n" - .string "Or are you a girl?$" - -gNewGameAdventureIntro1:: - .string "In the world which you are about to\n" - .string "enter, you will embark on a grand\n" - .string "adventure with you as the hero.\n" - .string "\n" - .string "Speak to people and check things\n" - .string "wherever you go, be it towns, roads,\n" - .string "or caves. Gather information and\n" - .string "hints from every source.$" - -gNewGameAdventureIntro2:: - .string "New paths will open to you by helping\n" - .string "people in need, overcoming challenges,\n" - .string "and solving mysteries.\n" - .string "\n" - .string "At times, you will be challenged by\n" - .string "others and attacked by wild creatures.\n" - .string "Be brave and keep pushing on.$" - -gNewGameAdventureIntro3:: - .string "Through your adventure, we hope\n" - .string "that you will interact with all sorts\n" - .string "of people and achieve personal growth.\n" - .string "That is our biggest objective.\n" - .string "\n" - .string "Press the A Button, and let your\n" - .string "adventure begin!$" - -gOakText_WelcomeToTheWorld:: @ 81C5C78 - .string "Hello, there!\n" - .string "Glad to meet you!\pWelcome to the world of POKéMON!\pMy name is OAK.\pPeople affectionately refer to me\n" - .string "as the POKéMON PROFESSOR.\p$" - -gOakText_WorldInhabited1:: @ 81C5D06 - .string "This world…$" - -gOakText_WorldInhabited2:: @ 81C5D12 - .string "…is inhabited far and wide by\n" - .string "creatures called POKéMON.\p$" - -gOakText_PetsBattlingStudy:: @ 81C5D4B - .string "For some people, POKéMON are pets.\n" - .string "Others use them for battling.\pAs for myself…\pI study POKéMON as a profession.\p$" - -gOakText_TellMeALittleAboutYourself:: @ 81C5DBD - .string "But first, tell me a little about\n" - .string "yourself.\p$" - -gOakText_AskPlayerName:: @ 81C5DEA - .string "Let's begin with your name.\n" - .string "What is it?\p$" - -gOakText_FinalizePlayerName:: @ 81C5E13 - .string "Right…\n" - .string "So your name is {PLAYER}.$" - -gOakText_IntroduceRival:: @ 81C5E2E - .string "This is my grandson.\pHe's been your rival since you both\n" - .string "were babies.\p…Erm, what was his name now?$" - -gOakText_AskRivalName:: @ 81C5E91 - .string "Your rival's name, what was it now?$" - -gOakText_ConfirmRivalName:: @ 81C5EB5 - .string "…Er, was it {RIVAL}?$" - -gOakText_RememberRivalName:: @ 81C5EC5 - .string "That's right! I remember now!\n" - .string "His name is {RIVAL}!\p$" - -gOakText_LegendAboutToUnfold:: @ 81C5EF4 - .string "{PLAYER}!\pYour very own POKéMON legend is\n" - .string "about to unfold!\pA world of dreams and adventures\n" - .string "with POKéMON awaits! Let's go!$" - -@ pokedude data -gUnknown_81C5F69:: - .string "POKé DUDE: The speedier of the\n" - .string "battlers gets to attack first.$" - -gUnknown_81C5FA7:: - .string "It looks like my RATTATA was\n" - .string "faster than the PIDGEY.$" - -gUnknown_81C5FDC:: - .string "The battlers take turns attacking\n" - .string "and reducing each other's HP.$" - -gUnknown_81C601C:: - .string "My RATTATA reduced the foe's HP\n" - .string "to zero, so it wins!\p" - - .string "The POKéMON that took part in the\n" - .string "battle get EXP. Points.\p" - - .string "When a POKéMON collects enough\n" - .string "EXP. Points, it levels up.\p" - - .string "Leveling up makes your POKéMON\n" - .string "stronger than before.$" - -gUnknown_81C60FA:: - .string "POKé DUDE: Uh-oh…\n" - .string "My RATTATA has been poisoned…\p" - - .string "If a POKéMON is poisoned, it loses\n" - .string "HP steadily.$" - -gUnknown_81C615A:: - .string "If a POKéMON develops a status\n" - .string "problem, heal it right away.$" - -gUnknown_81C6196:: - .string "Using an item on a POKéMON uses\n" - .string "up one turn, though.\p" - - .string "Now, it's the opponent's turn!$" - -gUnknown_81C61EA:: - .string "Yay!\n" - .string "We managed to win!$" - -gUnknown_81C6202:: - .string "POKé DUDE: The move BUBBLE is\n" - .string "a WATER-type attack.\p" - - .string "The targeted ODDISH is a\n" - .string "GRASS/POISON-type POKéMON.\p" - - .string "The WATER-type attack is absorbed\n" - .string "by the GRASS-type POKéMON…\p" - - .string "As a result, the move becomes not\n" - .string "very effective, and inflicts only\l" - .string "half the usual damage.$" - -gUnknown_81C6301:: - .string "Uh-oh, this is not good!\p" - - .string "The ABSORB attack you just saw\n" - .string "is a GRASS-type move.\p" - - .string "POLIWAG is a WATER-type POKéMON.\p" - - .string "So, ABSORB becomes super\n" - .string "effective, doubling the damage.$" - -gUnknown_81C63A9:: - .string "It's not going to be easy to win\n" - .string "with this matchup…\p" - - .string "Let's try shifting POKéMON!$" - -gUnknown_81C63F9:: - .string "Shifting POKéMON in and out uses\n" - .string "up one turn.\p" - - .string "Now, it's the opponent's turn.$" - -gUnknown_81C6446:: - .string "BUTTERFREE is a BUG/FLYING-type\n" - .string "POKéMON.\p" - - .string "Against this POKéMON, a GRASS-\n" - .string "type attack…\p" - - .string "…inflicts only half the usual\n" - .string "damage on a BUG-type POKéMON…\p" - - .string "…And, it also causes only half the\n" - .string "damage on a FLYING-type POKéMON.\p" - - .string "Therefore, BUTTERFREE, being a\n" - .string "BUG/FLYING POKéMON, only takes\l" - .string "one quarter of the usual damage.$" - -gUnknown_81C657A:: - .string "ODDISH is a GRASS/POISON-type\n" - .string "POKéMON.\p" - - .string "A FLYING- or PSYCHIC-type attack\n" - .string "is super effective against it.\p" - - .string "One of those types of attacks will\n" - .string "inflict double the usual damage.\p" - - .string "Okay, here we go!$" - -gUnknown_81C6637:: - .string "Yeah!\n" - .string "We won!$" - -gUnknown_81C6645:: - .string "POKé DUDE: When you're trying to\n" - .string "catch a POKéMON, don't throw any\l" - .string "POKé BALLS right away.\p" - - .string "First, you need to weaken it by\n" - .string "reducing its HP.$" - -gUnknown_81C66CF:: - .string "Okay, that should be good enough.\p" - - .string "But, if it's possible, it would be\n" - .string "best if the target has a status\l" - .string "problem.\p" - - .string "For instance, it would be easier\n" - .string "to catch if it were asleep or\l" - .string "paralyzed.$" - -gUnknown_81C6787:: - .string "This will make the POKéMON a lot\n" - .string "easier to catch!\p" - - .string "Oh, yes. If you paralyze a\n" - .string "POKéMON, you can't make it fall\l" - .string "asleep on top of paralysis.\p" - - .string "In other words, you can't double\n" - .string "up status problems, okay?$" - -gUnknown_81C684B:: - .string "Okay!\n" - .string "Let me throw my POKé BALL!$" - -gUnknown_81C686C:: - .string "Before you throw a POKé BALL,\n" - .string "consider the condition and the\l" - .string "type of POKéMON, and pick the kind\l" - .string "of BALL that would work best.$" diff --git a/data/map_events.s b/data/map_events.s index 583802155..a36cd149f 100644 --- a/data/map_events.s +++ b/data/map_events.s @@ -10,6 +10,7 @@ #include "constants/vars.h" #include "constants/weather.h" @#include "constants/trainer_hill.h" +#include "constants/map_objects.h" .include "asm/macros.inc" .include "constants/constants.inc" .include "constants/item_data_constants.inc" diff --git a/data/maps/BirthIsland_Exterior/map.json b/data/maps/BirthIsland_Exterior/map.json index 5ee37131f..8e78364f6 100644 --- a/data/maps/BirthIsland_Exterior/map.json +++ b/data/maps/BirthIsland_Exterior/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "106", + "graphics_id": "MAP_OBJ_GFX_METEORITE", "x": 15, "y": 12, "elevation": 3, @@ -24,10 +24,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "BirthIsland_Exterior_EventScript_165271", - "flag": "154" + "flag": "FLAG_HIDE_BIRTH_ISLAND_METEORITE" }, { - "graphics_id": "240", + "graphics_id": "MAP_OBJ_GFX_VAR_0", "x": 15, "y": 3, "elevation": 3, @@ -37,7 +37,7 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "0x0", - "flag": "153" + "flag": "FLAG_HIDE_DEOXYS" } ], "warp_events": [ diff --git a/data/maps/BirthIsland_Exterior/scripts.inc b/data/maps/BirthIsland_Exterior/scripts.inc index 136a57b6a..0c20c59b8 100644 --- a/data/maps/BirthIsland_Exterior/scripts.inc +++ b/data/maps/BirthIsland_Exterior/scripts.inc @@ -5,41 +5,41 @@ BirthIsland_Exterior_MapScripts:: @ 8165203 .byte 0 BirthIsland_Exterior_MapScript3_165213:: @ 8165213 - special sub_80CD008 + special Special_SetDeoxysTriangleObjectPal end BirthIsland_Exterior_MapScript1_165217:: @ 8165217 setworldmapflag FLAG_WORLD_MAP_BIRTH_ISLAND_EXTERIOR - setvar VAR_0x4010, 150 - setvar VAR_SECRET_BASE_MAP, 0 - setvar VAR_ALTERING_CAVE_WILD_SET, 0 - checkflag FLAG_0x2E4 - call_if 1, EventScript_16523C - checkflag FLAG_0x2E4 - call_if 0, EventScript_165243 + setvar VAR_OBJ_GFX_ID_0, MAP_OBJ_GFX_DEOXYS_N + setvar VAR_DEOXYS_INTERACTION_STEP_COUNTER, 0 + setvar VAR_DEOXYS_INTERACTION_NUM, 0 + checkflag FLAG_FOUGHT_DEOXYS + call_if TRUE, EventScript_16523C + checkflag FLAG_FOUGHT_DEOXYS + call_if FALSE, EventScript_165243 end EventScript_16523C:: @ 816523C - setflag FLAG_0x099 - setflag FLAG_0x09A + setflag FLAG_HIDE_DEOXYS + setflag FLAG_HIDE_BIRTH_ISLAND_METEORITE return EventScript_165243:: @ 8165243 - checkflag FLAG_0x2F7 - goto_if_eq EventScript_1A77A9 - clearflag FLAG_0x09A - clearflag FLAG_0x848 + checkflag FLAG_DEOXYS_FLEW_AWAY + goto_if TRUE, EventScript_1A77A9 + clearflag FLAG_HIDE_BIRTH_ISLAND_METEORITE + clearflag FLAG_SYS_DEOXYS_AWAKENED return BirthIsland_Exterior_MapScript2_165253:: @ 8165253 - checkflag FLAG_0x807 - call_if 1, EventScript_16525D + checkflag FLAG_SYS_SPECIAL_WILD_BATTLE + call_if TRUE, EventScript_16525D end EventScript_16525D:: @ 816525D - specialvar VAR_RESULT, sub_80CA74C - compare_var_to_value VAR_RESULT, 7 - goto_if 5, EventScript_1A77A9 + specialvar VAR_RESULT, Special_GetBattleOutcome + compare_var_to_value VAR_RESULT, B_OUTCOME_CAUGHT + goto_if ne, EventScript_1A77A9 removeobject 2 return @@ -48,9 +48,9 @@ BirthIsland_Exterior_EventScript_165271:: @ 8165271 faceplayer special sub_8110AB4 compare_var_to_value VAR_RESULT, 2 - goto_if_eq EventScript_1A7AE0 + goto_if eq, EventScript_1A7AE0 special sub_8112364 - special sub_80CCDFC + special Special_DeoxysSound waitstate switch VAR_RESULT case 0, EventScript_1652BA @@ -91,23 +91,23 @@ EventScript_1652C0:: @ 81652C0 setvar VAR_0x8005, 30 setvar VAR_0x8006, 0 special CreateObedientEnemyMon - setflag FLAG_0x807 - special sub_807F9D8 + setflag FLAG_SYS_SPECIAL_WILD_BATTLE + special Special_StartLegendaryBattle waitstate - clearflag FLAG_0x807 - specialvar VAR_RESULT, sub_80CA74C - compare_var_to_value VAR_RESULT, 1 - goto_if_eq EventScript_16533A - compare_var_to_value VAR_RESULT, 4 - goto_if_eq EventScript_165348 - compare_var_to_value VAR_RESULT, 5 - goto_if_eq EventScript_165348 - setflag FLAG_0x2E4 + clearflag FLAG_SYS_SPECIAL_WILD_BATTLE + specialvar VAR_RESULT, Special_GetBattleOutcome + compare_var_to_value VAR_RESULT, B_OUTCOME_WON + goto_if eq, EventScript_16533A + compare_var_to_value VAR_RESULT, B_OUTCOME_RAN + goto_if eq, EventScript_165348 + compare_var_to_value VAR_RESULT, B_OUTCOME_PLAYER_TELEPORTED + goto_if eq, EventScript_165348 + setflag FLAG_FOUGHT_DEOXYS release end EventScript_16533A:: @ 816533A - setflag FLAG_0x2F7 + setflag FLAG_DEOXYS_FLEW_AWAY setvar VAR_0x8004, SPECIES_DEOXYS goto EventScript_1A9236 end diff --git a/data/maps/BirthIsland_Harbor/map.json b/data/maps/BirthIsland_Harbor/map.json index cecda6ec5..eed07d984 100644 --- a/data/maps/BirthIsland_Harbor/map.json +++ b/data/maps/BirthIsland_Harbor/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "108", + "graphics_id": "MAP_OBJ_GFX_SEAGALLOP", "x": 8, "y": 9, "elevation": 0, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "62", + "graphics_id": "MAP_OBJ_GFX_SAILOR", "x": 8, "y": 6, "elevation": 3, diff --git a/data/maps/BirthIsland_Harbor/scripts.inc b/data/maps/BirthIsland_Harbor/scripts.inc index 487cae2f1..6df635f1a 100644 --- a/data/maps/BirthIsland_Harbor/scripts.inc +++ b/data/maps/BirthIsland_Harbor/scripts.inc @@ -6,24 +6,8 @@ BirthIsland_Harbor_EventScript_1653E7:: @ 81653E7 faceplayer message Text_181726 waitmessage - setvar VAR_0x8004, 10 - multichoice 20, 8, 61, 0 - switch VAR_RESULT - case 0, EventScript_1A91D5 - case 1, EventScript_1A90F6 - case 127, EventScript_1A90F6 - end - -NavelRock_Harbor_MapScripts:: @ 8165420 - .byte 0 - -NavelRock_Harbor_EventScript_165421:: @ 8165421 - lock - faceplayer - message Text_181726 - waitmessage - setvar VAR_0x8004, 9 - multichoice 20, 8, 61, 0 + setvar VAR_0x8004, SEAGALLOP_BIRTH_ISLAND + multichoice 20, 8, MULTICHOICE_SEAGALLOP_VERMILION, FALSE switch VAR_RESULT case 0, EventScript_1A91D5 case 1, EventScript_1A90F6 diff --git a/data/maps/CeladonCity/map.json b/data/maps/CeladonCity/map.json index f1133090e..0f323d993 100644 --- a/data/maps/CeladonCity/map.json +++ b/data/maps/CeladonCity/map.json @@ -25,7 +25,7 @@ ], "object_events": [ { - "graphics_id": "49", + "graphics_id": "MAP_OBJ_GFX_ROCKET_M", "x": 48, "y": 15, "elevation": 3, @@ -35,10 +35,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "CeladonCity_EventScript_166CFA", - "flag": "95" + "flag": "FLAG_HIDE_CELADON_ROCKETS" }, { - "graphics_id": "27", + "graphics_id": "MAP_OBJ_GFX_FAT_MAN", "x": 38, "y": 14, "elevation": 3, @@ -51,7 +51,7 @@ "flag": "0" }, { - "graphics_id": "112", + "graphics_id": "MAP_OBJ_GFX_POLIWRATH", "x": 36, "y": 14, "elevation": 3, @@ -64,7 +64,7 @@ "flag": "0" }, { - "graphics_id": "17", + "graphics_id": "MAP_OBJ_GFX_LITTLE_GIRL", "x": 11, "y": 18, "elevation": 3, @@ -77,7 +77,7 @@ "flag": "0" }, { - "graphics_id": "28", + "graphics_id": "MAP_OBJ_GFX_WOMAN_2", "x": 18, "y": 22, "elevation": 3, @@ -90,7 +90,7 @@ "flag": "0" }, { - "graphics_id": "32", + "graphics_id": "MAP_OBJ_GFX_OLD_MAN_1", "x": 30, "y": 24, "elevation": 3, @@ -103,7 +103,7 @@ "flag": "0" }, { - "graphics_id": "33", + "graphics_id": "MAP_OBJ_GFX_OLD_MAN_2", "x": 26, "y": 19, "elevation": 3, @@ -116,7 +116,7 @@ "flag": "0" }, { - "graphics_id": "49", + "graphics_id": "MAP_OBJ_GFX_ROCKET_M", "x": 38, "y": 31, "elevation": 3, @@ -126,10 +126,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "CeladonCity_EventScript_166D03", - "flag": "95" + "flag": "FLAG_HIDE_CELADON_ROCKETS" }, { - "graphics_id": "32", + "graphics_id": "MAP_OBJ_GFX_OLD_MAN_1", "x": 9, "y": 30, "elevation": 3, @@ -142,7 +142,7 @@ "flag": "0" }, { - "graphics_id": "95", + "graphics_id": "MAP_OBJ_GFX_CUT_TREE", "x": 52, "y": 22, "elevation": 3, @@ -151,11 +151,11 @@ "movement_range_y": 1, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "CeladonCity_EventScript_1BDF13", - "flag": "20" + "script": "EventScript_InteractWithCutTreeObject", + "flag": "FLAG_TEMP_14" }, { - "graphics_id": "95", + "graphics_id": "MAP_OBJ_GFX_CUT_TREE", "x": 40, "y": 35, "elevation": 0, @@ -164,11 +164,11 @@ "movement_range_y": 1, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "CeladonCity_EventScript_1BDF13", - "flag": "19" + "script": "EventScript_InteractWithCutTreeObject", + "flag": "FLAG_TEMP_13" }, { - "graphics_id": "19", + "graphics_id": "MAP_OBJ_GFX_BOY", "x": 25, "y": 10, "elevation": 3, @@ -194,7 +194,7 @@ "flag": "0" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 5, "y": 3, "elevation": 3, @@ -204,10 +204,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "CeladonCity_EventScript_1BEBC0", - "flag": "465" + "flag": "FLAG_HIDE_CELADON_CITY_ETHER" }, { - "graphics_id": "55", + "graphics_id": "MAP_OBJ_GFX_SCIENTIST", "x": 47, "y": 24, "elevation": 3, @@ -217,7 +217,7 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "CeladonCity_EventScript_166D15", - "flag": "95" + "flag": "FLAG_HIDE_CELADON_ROCKETS" } ], "warp_events": [ @@ -377,8 +377,9 @@ "y": 20, "elevation": 3, "item": "ITEM_PP_UP", - "flag": "47", - "unknown": 1 + "flag": "HIDDEN_ITEM_CELADON_CITY_PP_UP", + "quantity": 1, + "underfoot": false } ] } diff --git a/data/maps/CeladonCity/scripts.inc b/data/maps/CeladonCity/scripts.inc index 9f7dc58c2..b5e32115f 100644 --- a/data/maps/CeladonCity/scripts.inc +++ b/data/maps/CeladonCity/scripts.inc @@ -77,9 +77,7 @@ CeladonCity_EventScript_166D27:: @ 8166D27 CeladonCity_EventScript_166D30:: @ 8166D30 lockall - setvar VAR_0x8004, 5 - setvar VAR_0x8005, 0 - special SetFlavorTextFlagFromSpecialVars + famechecker FAMECHECKER_ERIKA, 0 msgbox gUnknown_81801A2 releaseall end diff --git a/data/maps/CeladonCity_Condominiums_1F/map.json b/data/maps/CeladonCity_Condominiums_1F/map.json index cb315ade8..eed6a38a6 100644 --- a/data/maps/CeladonCity_Condominiums_1F/map.json +++ b/data/maps/CeladonCity_Condominiums_1F/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "125", + "graphics_id": "MAP_OBJ_GFX_MEOWTH", "x": 1, "y": 9, "elevation": 3, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "113", + "graphics_id": "MAP_OBJ_GFX_CLEFAIRY", "x": 5, "y": 13, "elevation": 3, @@ -40,7 +40,7 @@ "flag": "0" }, { - "graphics_id": "122", + "graphics_id": "MAP_OBJ_GFX_NIDORAN_F", "x": 5, "y": 8, "elevation": 3, @@ -53,7 +53,7 @@ "flag": "0" }, { - "graphics_id": "35", + "graphics_id": "MAP_OBJ_GFX_OLD_WOMAN", "x": 2, "y": 9, "elevation": 3, diff --git a/data/maps/CeladonCity_Condominiums_1F/scripts.inc b/data/maps/CeladonCity_Condominiums_1F/scripts.inc index c9f358f44..fe1da2c67 100644 --- a/data/maps/CeladonCity_Condominiums_1F/scripts.inc +++ b/data/maps/CeladonCity_Condominiums_1F/scripts.inc @@ -4,17 +4,17 @@ CeladonCity_Condominiums_1F_MapScripts:: @ 816C320 CeladonCity_Condominiums_1F_EventScript_16C321:: @ 816C321 lock faceplayer - checkflag FLAG_0x2F8 - goto_if_eq EventScript_16C36A - checkflag FLAG_0x82C - goto_if_eq EventScript_16C374 - checkflag FLAG_0x2A6 - goto_if_eq EventScript_16C36A + checkflag FLAG_TALKED_TO_TEA_LADY_AFTER_HOF + goto_if TRUE, EventScript_16C36A + checkflag FLAG_SYS_GAME_CLEAR + goto_if TRUE, EventScript_16C374 + checkflag FLAG_GOT_TEA + goto_if TRUE, EventScript_16C36A msgbox gUnknown_81960C9 - setflag FLAG_0x2A6 + setflag FLAG_GOT_TEA giveitem ITEM_TEA compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_1A6BF9 + goto_if eq, EventScript_1A6BF9 msgbox gUnknown_8196109 release end @@ -25,10 +25,8 @@ EventScript_16C36A:: @ 816C36A end EventScript_16C374:: @ 816C374 - setvar VAR_0x8004, 1 - setvar VAR_0x8005, 4 - special SetFlavorTextFlagFromSpecialVars - setflag FLAG_0x2F8 + famechecker FAMECHECKER_DAISY, 4 + setflag FLAG_TALKED_TO_TEA_LADY_AFTER_HOF msgbox gUnknown_8196188 release end diff --git a/data/maps/CeladonCity_Condominiums_2F/map.json b/data/maps/CeladonCity_Condominiums_2F/map.json index e460de793..9f80e8e96 100644 --- a/data/maps/CeladonCity_Condominiums_2F/map.json +++ b/data/maps/CeladonCity_Condominiums_2F/map.json @@ -24,7 +24,7 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "CeladonCity_Condominiums_2F_EventScript_1ACE9D", - "flag": "158" + "flag": "FLAG_HIDE_FAME_CHECKER_ERIKA_JOURNALS" }, { "graphics_id": "0", @@ -37,7 +37,7 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "CeladonCity_Condominiums_2F_EventScript_1ACE9D", - "flag": "158" + "flag": "FLAG_HIDE_FAME_CHECKER_ERIKA_JOURNALS" } ], "warp_events": [ diff --git a/data/maps/CeladonCity_Condominiums_3F/map.json b/data/maps/CeladonCity_Condominiums_3F/map.json index 4a405c3f1..41561f349 100644 --- a/data/maps/CeladonCity_Condominiums_3F/map.json +++ b/data/maps/CeladonCity_Condominiums_3F/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "26", + "graphics_id": "MAP_OBJ_GFX_ROCKER", "x": 0, "y": 10, "elevation": 3, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "25", + "graphics_id": "MAP_OBJ_GFX_MAN", "x": 3, "y": 8, "elevation": 3, @@ -40,7 +40,7 @@ "flag": "0" }, { - "graphics_id": "52", + "graphics_id": "MAP_OBJ_GFX_SUPER_NERD", "x": 4, "y": 10, "elevation": 3, @@ -53,7 +53,7 @@ "flag": "0" }, { - "graphics_id": "27", + "graphics_id": "MAP_OBJ_GFX_FAT_MAN", "x": 0, "y": 13, "elevation": 3, diff --git a/data/maps/CeladonCity_Condominiums_3F/scripts.inc b/data/maps/CeladonCity_Condominiums_3F/scripts.inc index 990b7adb3..258846f29 100644 --- a/data/maps/CeladonCity_Condominiums_3F/scripts.inc +++ b/data/maps/CeladonCity_Condominiums_3F/scripts.inc @@ -18,7 +18,7 @@ CeladonCity_Condominiums_3F_EventScript_16C3F6:: @ 816C3F6 faceplayer specialvar VAR_RESULT, HasAllKantoMons compare_var_to_value VAR_RESULT, 1 - goto_if_eq EventScript_16C412 + goto_if eq, EventScript_16C412 msgbox gUnknown_8196356 release end @@ -33,8 +33,8 @@ EventScript_16C418:: @ 816C418 delay 60 special sub_8110AB4 compare_var_to_value VAR_RESULT, 2 - goto_if_eq EventScript_1A7AE0 - special sub_80CA618 + goto_if eq, EventScript_1A7AE0 + special Special_ShowDiploma waitstate release end diff --git a/data/maps/CeladonCity_Condominiums_RoofRoom/map.json b/data/maps/CeladonCity_Condominiums_RoofRoom/map.json index aee589439..b66f7bc8a 100644 --- a/data/maps/CeladonCity_Condominiums_RoofRoom/map.json +++ b/data/maps/CeladonCity_Condominiums_RoofRoom/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "54", + "graphics_id": "MAP_OBJ_GFX_BLACKBELT", "x": 3, "y": 5, "elevation": 3, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 7, "y": 3, "elevation": 0, @@ -37,7 +37,7 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "CeladonCity_Condominiums_RoofRoom_EventScript_16C46D", - "flag": "87" + "flag": "FLAG_HIDE_EEVEE_BALL" } ], "warp_events": [ diff --git a/data/maps/CeladonCity_Condominiums_RoofRoom/scripts.inc b/data/maps/CeladonCity_Condominiums_RoofRoom/scripts.inc index 8e8bb2b6b..a18215910 100644 --- a/data/maps/CeladonCity_Condominiums_RoofRoom/scripts.inc +++ b/data/maps/CeladonCity_Condominiums_RoofRoom/scripts.inc @@ -11,11 +11,11 @@ CeladonCity_Condominiums_RoofRoom_EventScript_16C46D:: @ 816C46D setvar VAR_0x4001, SPECIES_EEVEE givemon SPECIES_EEVEE, 25, ITEM_NONE, 0, 0, 0 compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_16C4A6 + goto_if eq, EventScript_16C4A6 compare_var_to_value VAR_RESULT, 1 - goto_if_eq EventScript_16C4DA + goto_if eq, EventScript_16C4DA compare_var_to_value VAR_RESULT, 2 - goto_if_eq EventScript_1A927C + goto_if eq, EventScript_1A927C release end @@ -28,7 +28,7 @@ EventScript_16C4A6:: @ 816C4A6 getspeciesname 0, SPECIES_EEVEE msgbox gUnknown_81A56A7, MSGBOX_YESNO compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_16C514 + goto_if eq, EventScript_16C514 call EventScript_1A8C27 call EventScript_1A74EB goto EventScript_16C514 @@ -43,7 +43,7 @@ EventScript_16C4DA:: @ 816C4DA getspeciesname 0, SPECIES_EEVEE msgbox gUnknown_81A56A7, MSGBOX_YESNO compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_16C509 + goto_if eq, EventScript_16C509 call EventScript_1A8C33 goto EventScript_16C509 end @@ -54,7 +54,7 @@ EventScript_16C509:: @ 816C509 end EventScript_16C514:: @ 816C514 - setflag FLAG_0x263 + setflag FLAG_GOT_EEVEE release end @@ -68,7 +68,7 @@ CeladonCity_Condominiums_RoofRoom_EventScript_16C522:: @ 816C522 message Text_1965F4 waitmessage setvar VAR_0x8004, 4 - multichoice 0, 0, 43, 0 + multichoice 0, 0, MULTICHOICE_LINKED_DIRECT_UNION, FALSE switch VAR_RESULT case 0, EventScript_16C5C0 case 1, EventScript_16C5CE @@ -80,7 +80,7 @@ CeladonCity_Condominiums_RoofRoom_EventScript_16C522:: @ 816C522 EventScript_16C578:: @ 816C578 message Text_1965F4 waitmessage - multichoice 0, 0, 43, 0 + multichoice 0, 0, MULTICHOICE_LINKED_DIRECT_UNION, FALSE switch VAR_RESULT case 0, EventScript_16C5C0 case 1, EventScript_16C5CE diff --git a/data/maps/CeladonCity_DepartmentStore_1F/map.json b/data/maps/CeladonCity_DepartmentStore_1F/map.json index 412eb4008..f40f5c2fe 100644 --- a/data/maps/CeladonCity_DepartmentStore_1F/map.json +++ b/data/maps/CeladonCity_DepartmentStore_1F/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "48", + "graphics_id": "MAP_OBJ_GFX_WORKER_F", "x": 6, "y": 10, "elevation": 3, diff --git a/data/maps/CeladonCity_DepartmentStore_2F/map.json b/data/maps/CeladonCity_DepartmentStore_2F/map.json index 42d5c76f5..f5333e88a 100644 --- a/data/maps/CeladonCity_DepartmentStore_2F/map.json +++ b/data/maps/CeladonCity_DepartmentStore_2F/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "22", + "graphics_id": "MAP_OBJ_GFX_LASS", "x": 5, "y": 10, "elevation": 3, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "68", + "graphics_id": "MAP_OBJ_GFX_CLERK", "x": 1, "y": 8, "elevation": 0, @@ -40,7 +40,7 @@ "flag": "0" }, { - "graphics_id": "68", + "graphics_id": "MAP_OBJ_GFX_CLERK", "x": 1, "y": 6, "elevation": 3, @@ -53,7 +53,7 @@ "flag": "0" }, { - "graphics_id": "23", + "graphics_id": "MAP_OBJ_GFX_WOMAN_1", "x": 11, "y": 6, "elevation": 3, @@ -63,7 +63,7 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "CeladonCity_DepartmentStore_2F_EventScript_1AD053", - "flag": "157" + "flag": "FLAG_HIDE_POSTGAME_GOSSIPERS" } ], "warp_events": [ diff --git a/data/maps/CeladonCity_DepartmentStore_2F/scripts.inc b/data/maps/CeladonCity_DepartmentStore_2F/scripts.inc index 8d859502e..0627bf3a0 100644 --- a/data/maps/CeladonCity_DepartmentStore_2F/scripts.inc +++ b/data/maps/CeladonCity_DepartmentStore_2F/scripts.inc @@ -16,7 +16,7 @@ CeladonCity_DepartmentStore_2F_EventScript_16BB07:: @ 816BB07 CeladonCity_DepartmentStore_2F_EventScript_16BB10:: @ 816BB10 special sub_8110AB4 compare_var_to_value VAR_RESULT, 2 - goto_if_eq EventScript_1A7AE0 + goto_if eq, EventScript_1A7AE0 lock faceplayer message Text_1A6211 @@ -44,7 +44,7 @@ Items_16BB38:: @ 816BB38 CeladonCity_DepartmentStore_2F_EventScript_16BB4E:: @ 816BB4E special sub_8110AB4 compare_var_to_value VAR_RESULT, 2 - goto_if_eq EventScript_1A7AE0 + goto_if eq, EventScript_1A7AE0 lock faceplayer message Text_1A6211 diff --git a/data/maps/CeladonCity_DepartmentStore_3F/map.json b/data/maps/CeladonCity_DepartmentStore_3F/map.json index 21780d544..3ac411820 100644 --- a/data/maps/CeladonCity_DepartmentStore_3F/map.json +++ b/data/maps/CeladonCity_DepartmentStore_3F/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "68", + "graphics_id": "MAP_OBJ_GFX_CLERK", "x": 10, "y": 9, "elevation": 3, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "51", + "graphics_id": "MAP_OBJ_GFX_GBA_KID", "x": 11, "y": 6, "elevation": 3, @@ -40,7 +40,7 @@ "flag": "0" }, { - "graphics_id": "51", + "graphics_id": "MAP_OBJ_GFX_GBA_KID", "x": 4, "y": 9, "elevation": 3, @@ -53,7 +53,7 @@ "flag": "0" }, { - "graphics_id": "51", + "graphics_id": "MAP_OBJ_GFX_GBA_KID", "x": 1, "y": 9, "elevation": 3, @@ -66,7 +66,7 @@ "flag": "0" }, { - "graphics_id": "17", + "graphics_id": "MAP_OBJ_GFX_LITTLE_GIRL", "x": 9, "y": 14, "elevation": 3, diff --git a/data/maps/CeladonCity_DepartmentStore_4F/map.json b/data/maps/CeladonCity_DepartmentStore_4F/map.json index 8598fbae4..e68119e01 100644 --- a/data/maps/CeladonCity_DepartmentStore_4F/map.json +++ b/data/maps/CeladonCity_DepartmentStore_4F/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "25", + "graphics_id": "MAP_OBJ_GFX_MAN", "x": 6, "y": 6, "elevation": 3, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "18", + "graphics_id": "MAP_OBJ_GFX_YOUNGSTER", "x": 10, "y": 11, "elevation": 3, @@ -40,7 +40,7 @@ "flag": "0" }, { - "graphics_id": "68", + "graphics_id": "MAP_OBJ_GFX_CLERK", "x": 3, "y": 13, "elevation": 0, diff --git a/data/maps/CeladonCity_DepartmentStore_4F/scripts.inc b/data/maps/CeladonCity_DepartmentStore_4F/scripts.inc index 2aad6e02b..84f290500 100644 --- a/data/maps/CeladonCity_DepartmentStore_4F/scripts.inc +++ b/data/maps/CeladonCity_DepartmentStore_4F/scripts.inc @@ -16,7 +16,7 @@ CeladonCity_DepartmentStore_4F_EventScript_16BC01:: @ 816BC01 CeladonCity_DepartmentStore_4F_EventScript_16BC0A:: @ 816BC0A special sub_8110AB4 compare_var_to_value VAR_RESULT, 2 - goto_if_eq EventScript_1A7AE0 + goto_if eq, EventScript_1A7AE0 lock faceplayer message Text_1A6211 diff --git a/data/maps/CeladonCity_DepartmentStore_5F/map.json b/data/maps/CeladonCity_DepartmentStore_5F/map.json index 12e86270d..2c30cb8b5 100644 --- a/data/maps/CeladonCity_DepartmentStore_5F/map.json +++ b/data/maps/CeladonCity_DepartmentStore_5F/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "61", + "graphics_id": "MAP_OBJ_GFX_GENTLEMAN", "x": 11, "y": 6, "elevation": 3, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "62", + "graphics_id": "MAP_OBJ_GFX_SAILOR", "x": 6, "y": 8, "elevation": 3, @@ -40,7 +40,7 @@ "flag": "0" }, { - "graphics_id": "68", + "graphics_id": "MAP_OBJ_GFX_CLERK", "x": 1, "y": 7, "elevation": 3, @@ -53,7 +53,7 @@ "flag": "0" }, { - "graphics_id": "68", + "graphics_id": "MAP_OBJ_GFX_CLERK", "x": 1, "y": 6, "elevation": 3, diff --git a/data/maps/CeladonCity_DepartmentStore_5F/scripts.inc b/data/maps/CeladonCity_DepartmentStore_5F/scripts.inc index 05aff00cd..66bc95b26 100644 --- a/data/maps/CeladonCity_DepartmentStore_5F/scripts.inc +++ b/data/maps/CeladonCity_DepartmentStore_5F/scripts.inc @@ -16,7 +16,7 @@ CeladonCity_DepartmentStore_5F_EventScript_16BC53:: @ 816BC53 CeladonCity_DepartmentStore_5F_EventScript_16BC5C:: @ 816BC5C special sub_8110AB4 compare_var_to_value VAR_RESULT, 2 - goto_if_eq EventScript_1A7AE0 + goto_if eq, EventScript_1A7AE0 lock faceplayer message Text_1A6211 @@ -42,7 +42,7 @@ Items_16BC84:: @ 816BC84 CeladonCity_DepartmentStore_5F_EventScript_16BC96:: @ 816BC96 special sub_8110AB4 compare_var_to_value VAR_RESULT, 2 - goto_if_eq EventScript_1A7AE0 + goto_if eq, EventScript_1A7AE0 lock faceplayer message Text_1A6211 diff --git a/data/maps/CeladonCity_DepartmentStore_Elevator/scripts.inc b/data/maps/CeladonCity_DepartmentStore_Elevator/scripts.inc index 6f104041e..3fcd14e8a 100644 --- a/data/maps/CeladonCity_DepartmentStore_Elevator/scripts.inc +++ b/data/maps/CeladonCity_DepartmentStore_Elevator/scripts.inc @@ -4,14 +4,14 @@ CeladonCity_DepartmentStore_Elevator_MapScripts:: @ 816C152 CeladonCity_DepartmentStore_Elevator_EventScript_16C153:: @ 816C153 lockall setvar VAR_0x8004, 3 - checkflag FLAG_0x002 - call_if 0, EventScript_1A7AB9 - copyvar VAR_0x8005, VAR_0x403A - special sub_80CB580 + checkflag FLAG_TEMP_2 + call_if FALSE, EventScript_1A7AB9 + copyvar VAR_0x8005, VAR_ELEVATOR_FLOOR + special Special_DrawElevatorCurrentFloorWindow message Text_1A535C waitmessage setvar VAR_0x8004, 3 - specialvar VAR_RESULT, sub_80CB328 + specialvar VAR_RESULT, Special_InitElevatorFloorSelectMenuPos switch VAR_RESULT case 0, EventScript_16C1B7 case 1, EventScript_16C1C3 @@ -21,29 +21,29 @@ CeladonCity_DepartmentStore_Elevator_EventScript_16C153:: @ 816C153 end EventScript_16C1B7:: @ 816C1B7 - multichoicedefault 0, 0, 31, 0, 0 + multichoicedefault 0, 0, MULTICHOICE_DEPT_STORE_ELEVATOR, 0, FALSE goto EventScript_16C1F3 EventScript_16C1C2:: @ 816C1C2 end EventScript_16C1C3:: @ 816C1C3 - multichoicedefault 0, 0, 31, 1, 0 + multichoicedefault 0, 0, MULTICHOICE_DEPT_STORE_ELEVATOR, 1, FALSE goto EventScript_16C1F3 end EventScript_16C1CF:: @ 816C1CF - multichoicedefault 0, 0, 31, 2, 0 + multichoicedefault 0, 0, MULTICHOICE_DEPT_STORE_ELEVATOR, 2, FALSE goto EventScript_16C1F3 end EventScript_16C1DB:: @ 816C1DB - multichoicedefault 0, 0, 31, 3, 0 + multichoicedefault 0, 0, MULTICHOICE_DEPT_STORE_ELEVATOR, 3, FALSE goto EventScript_16C1F3 end EventScript_16C1E7:: @ 816C1E7 - multichoicedefault 0, 0, 31, 4, 0 + multichoicedefault 0, 0, MULTICHOICE_DEPT_STORE_ELEVATOR, 4, FALSE goto EventScript_16C1F3 end @@ -61,63 +61,63 @@ EventScript_16C1F3:: @ 816C1F3 EventScript_16C246:: @ 816C246 setvar VAR_0x8006, 4 setdynamicwarp MAP_CELADON_CITY_DEPARTMENT_STORE_1F, 255, 6, 1 - compare_var_to_value VAR_0x403A, 4 - goto_if_eq EventScript_16C30E + compare_var_to_value VAR_ELEVATOR_FLOOR, 4 + goto_if eq, EventScript_16C30E call EventScript_16C313 - setvar VAR_0x403A, 4 + setvar VAR_ELEVATOR_FLOOR, 4 goto EventScript_16C30E end EventScript_16C26E:: @ 816C26E setvar VAR_0x8006, 5 setdynamicwarp MAP_CELADON_CITY_DEPARTMENT_STORE_2F, 255, 6, 1 - compare_var_to_value VAR_0x403A, 5 - goto_if_eq EventScript_16C30E + compare_var_to_value VAR_ELEVATOR_FLOOR, 5 + goto_if eq, EventScript_16C30E call EventScript_16C313 - setvar VAR_0x403A, 5 + setvar VAR_ELEVATOR_FLOOR, 5 goto EventScript_16C30E end EventScript_16C296:: @ 816C296 setvar VAR_0x8006, 6 setdynamicwarp MAP_CELADON_CITY_DEPARTMENT_STORE_3F, 255, 6, 1 - compare_var_to_value VAR_0x403A, 6 - goto_if_eq EventScript_16C30E + compare_var_to_value VAR_ELEVATOR_FLOOR, 6 + goto_if eq, EventScript_16C30E call EventScript_16C313 - setvar VAR_0x403A, 6 + setvar VAR_ELEVATOR_FLOOR, 6 goto EventScript_16C30E end EventScript_16C2BE:: @ 816C2BE setvar VAR_0x8006, 7 setdynamicwarp MAP_CELADON_CITY_DEPARTMENT_STORE_4F, 255, 6, 1 - compare_var_to_value VAR_0x403A, 7 - goto_if_eq EventScript_16C30E + compare_var_to_value VAR_ELEVATOR_FLOOR, 7 + goto_if eq, EventScript_16C30E call EventScript_16C313 - setvar VAR_0x403A, 7 + setvar VAR_ELEVATOR_FLOOR, 7 goto EventScript_16C30E end EventScript_16C2E6:: @ 816C2E6 setvar VAR_0x8006, 8 setdynamicwarp MAP_CELADON_CITY_DEPARTMENT_STORE_5F, 255, 6, 1 - compare_var_to_value VAR_0x403A, 8 - goto_if_eq EventScript_16C30E + compare_var_to_value VAR_ELEVATOR_FLOOR, 8 + goto_if eq, EventScript_16C30E call EventScript_16C313 - setvar VAR_0x403A, 8 + setvar VAR_ELEVATOR_FLOOR, 8 goto EventScript_16C30E end EventScript_16C30E:: @ 816C30E - special sub_80CB63C + special Special_CloseElevatorCurrentFloorWindow releaseall end EventScript_16C313:: @ 816C313 - special sub_80CB63C + special Special_CloseElevatorCurrentFloorWindow closemessage waitse - special sub_80CB498 + special Special_AnimateElevator waitstate - setflag FLAG_0x002 + setflag FLAG_TEMP_2 return diff --git a/data/maps/CeladonCity_DepartmentStore_Roof/map.json b/data/maps/CeladonCity_DepartmentStore_Roof/map.json index fc4f32491..1d499c195 100644 --- a/data/maps/CeladonCity_DepartmentStore_Roof/map.json +++ b/data/maps/CeladonCity_DepartmentStore_Roof/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "41", + "graphics_id": "MAP_OBJ_GFX_COOLTRAINER_M", "x": 9, "y": 5, "elevation": 3, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "17", + "graphics_id": "MAP_OBJ_GFX_LITTLE_GIRL", "x": 5, "y": 4, "elevation": 3, diff --git a/data/maps/CeladonCity_DepartmentStore_Roof/scripts.inc b/data/maps/CeladonCity_DepartmentStore_Roof/scripts.inc index 9bdd93dee..6e5c8a284 100644 --- a/data/maps/CeladonCity_DepartmentStore_Roof/scripts.inc +++ b/data/maps/CeladonCity_DepartmentStore_Roof/scripts.inc @@ -4,13 +4,13 @@ CeladonCity_DepartmentStore_Roof_MapScripts:: @ 816BCCC CeladonCity_DepartmentStore_Roof_EventScript_16BCCD:: @ 816BCCD special sub_8110AB4 compare_var_to_value VAR_RESULT, 2 - goto_if_eq EventScript_1A7AE0 + goto_if eq, EventScript_1A7AE0 special sub_8112364 lock faceplayer call EventScript_16BCF6 compare_var_to_value VAR_0x4001, 0 - goto_if_eq EventScript_16C00E + goto_if eq, EventScript_16C00E goto EventScript_16BD3E end @@ -18,13 +18,13 @@ EventScript_16BCF6:: @ 816BCF6 setvar VAR_0x4001, 0 checkitem ITEM_FRESH_WATER, 1 compare_var_to_value VAR_RESULT, 1 - call_if 1, EventScript_16BD2C + call_if eq, EventScript_16BD2C checkitem ITEM_SODA_POP, 1 compare_var_to_value VAR_RESULT, 1 - call_if 1, EventScript_16BD32 + call_if eq, EventScript_16BD32 checkitem ITEM_LEMONADE, 1 compare_var_to_value VAR_RESULT, 1 - call_if 1, EventScript_16BD38 + call_if eq, EventScript_16BD38 return EventScript_16BD2C:: @ 816BD2C @@ -42,7 +42,7 @@ EventScript_16BD38:: @ 816BD38 EventScript_16BD3E:: @ 816BD3E msgbox gUnknown_8195D22, MSGBOX_YESNO compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_16C00C + goto_if eq, EventScript_16C00C textcolor 3 message Text_195D5F waitmessage @@ -58,7 +58,7 @@ EventScript_16BD3E:: @ 816BD3E end EventScript_16BDAE:: @ 816BDAE - multichoice 0, 0, 32, 0 + multichoice 0, 0, MULTICHOICE_THIRSTY_GIRL_FRESH_WATER, FALSE switch VAR_RESULT case 0, EventScript_16BF19 case 1, EventScript_16C00C @@ -66,7 +66,7 @@ EventScript_16BDAE:: @ 816BDAE end EventScript_16BDDA:: @ 816BDDA - multichoice 0, 0, 33, 0 + multichoice 0, 0, MULTICHOICE_THIRSTY_GIRL_SODA_POP, FALSE switch VAR_RESULT case 0, EventScript_16BF3A case 1, EventScript_16C00C @@ -74,7 +74,7 @@ EventScript_16BDDA:: @ 816BDDA end EventScript_16BE06:: @ 816BE06 - multichoice 0, 0, 34, 0 + multichoice 0, 0, MULTICHOICE_THIRSTY_GIRL_FRESH_WATER_SODA_POP, FALSE switch VAR_RESULT case 0, EventScript_16BF19 case 1, EventScript_16BF3A @@ -83,7 +83,7 @@ EventScript_16BE06:: @ 816BE06 end EventScript_16BE3D:: @ 816BE3D - multichoice 0, 0, 35, 0 + multichoice 0, 0, MULTICHOICE_THIRSTY_GIRL_LEMONADE, FALSE switch VAR_RESULT case 0, EventScript_16BF5B case 1, EventScript_16C00C @@ -91,7 +91,7 @@ EventScript_16BE3D:: @ 816BE3D end EventScript_16BE69:: @ 816BE69 - multichoice 0, 0, 36, 0 + multichoice 0, 0, MULTICHOICE_THIRSTY_GIRL_FRESH_WATER_LEMONADE, FALSE switch VAR_RESULT case 0, EventScript_16BF19 case 1, EventScript_16BF5B @@ -100,7 +100,7 @@ EventScript_16BE69:: @ 816BE69 end EventScript_16BEA0:: @ 816BEA0 - multichoice 0, 0, 37, 0 + multichoice 0, 0, MULTICHOICE_THIRSTY_GIRL_SODA_POP_LEMONADE, FALSE switch VAR_RESULT case 0, EventScript_16BF3A case 1, EventScript_16BF5B @@ -109,7 +109,7 @@ EventScript_16BEA0:: @ 816BEA0 end EventScript_16BED7:: @ 816BED7 - multichoice 0, 0, 38, 0 + multichoice 0, 0, MULTICHOICE_THIRSTY_GIRL_FRESH_WATER_SODA_POP_LEMONADE, FALSE switch VAR_RESULT case 0, EventScript_16BF19 case 1, EventScript_16BF3A @@ -121,8 +121,8 @@ EventScript_16BED7:: @ 816BED7 EventScript_16BF19:: @ 816BF19 setvar VAR_0x8008, ITEM_FRESH_WATER setvar VAR_0x8009, ITEM_TM16 - checkflag FLAG_0x296 - goto_if_eq EventScript_16C018 + checkflag FLAG_GOT_TM16_FROM_THIRSTY_GIRL + goto_if TRUE, EventScript_16C018 msgbox gUnknown_8195D75 goto EventScript_16BF7C end @@ -130,8 +130,8 @@ EventScript_16BF19:: @ 816BF19 EventScript_16BF3A:: @ 816BF3A setvar VAR_0x8008, ITEM_SODA_POP setvar VAR_0x8009, ITEM_TM20 - checkflag FLAG_0x295 - goto_if_eq EventScript_16C018 + checkflag FLAG_GOT_TM20_FROM_THIRSTY_GIRL + goto_if TRUE, EventScript_16C018 msgbox gUnknown_8195E33 goto EventScript_16BF7C end @@ -139,8 +139,8 @@ EventScript_16BF3A:: @ 816BF3A EventScript_16BF5B:: @ 816BF5B setvar VAR_0x8008, ITEM_LEMONADE setvar VAR_0x8009, ITEM_TM33 - checkflag FLAG_0x294 - goto_if_eq EventScript_16C018 + checkflag FLAG_GOT_TM33_FROM_THIRSTY_GIRL + goto_if TRUE, EventScript_16C018 msgbox gUnknown_8195EBF goto EventScript_16BF7C end @@ -151,7 +151,7 @@ EventScript_16BF7C:: @ 816BF7C removeitem VAR_0x8008, 1 checkitemspace VAR_0x8009, 1 compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_16C002 + goto_if eq, EventScript_16C002 additem VAR_0x8009, 1 textcolor 3 playfanfare MUS_FANFA1 @@ -161,26 +161,26 @@ EventScript_16BF7C:: @ 816BF7C giveitem VAR_0x8009, 1, 8 call EventScript_1A6675 compare_var_to_value VAR_0x8008, ITEM_FRESH_WATER - call_if 1, EventScript_16BFDE + call_if eq, EventScript_16BFDE compare_var_to_value VAR_0x8008, ITEM_SODA_POP - call_if 1, EventScript_16BFEA + call_if eq, EventScript_16BFEA compare_var_to_value VAR_0x8008, ITEM_LEMONADE - call_if 1, EventScript_16BFF6 + call_if eq, EventScript_16BFF6 release end EventScript_16BFDE:: @ 816BFDE - setflag FLAG_0x296 + setflag FLAG_GOT_TM16_FROM_THIRSTY_GIRL msgbox gUnknown_8195DD4 return EventScript_16BFEA:: @ 816BFEA - setflag FLAG_0x295 + setflag FLAG_GOT_TM20_FROM_THIRSTY_GIRL msgbox gUnknown_8195E68 return EventScript_16BFF6:: @ 816BFF6 - setflag FLAG_0x294 + setflag FLAG_GOT_TM33_FROM_THIRSTY_GIRL msgbox gUnknown_8195EF4 return @@ -220,7 +220,7 @@ CeladonCity_DepartmentStore_Roof_EventScript_16C034:: @ 816C034 end EventScript_16C045:: @ 816C045 - multichoice 12, 0, 26, 0 + multichoice 12, 0, MULTICHOICE_CELADON_VENDING_MACHINE, FALSE copyvar VAR_0x4001, VAR_RESULT switch VAR_0x4001 case 0, EventScript_16C083 @@ -262,16 +262,16 @@ EventScript_16C0C4:: @ 816C0C4 EventScript_16C0CB:: @ 816C0CB compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_16C131 + goto_if eq, EventScript_16C131 checkitemspace VAR_0x4000, 1 compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_16C13F + goto_if eq, EventScript_16C13F compare_var_to_value VAR_0x4001, 0 - call_if 1, EventScript_16C0B6 + call_if eq, EventScript_16C0B6 compare_var_to_value VAR_0x4001, 1 - call_if 1, EventScript_16C0BD + call_if eq, EventScript_16C0BD compare_var_to_value VAR_0x4001, 2 - call_if 1, EventScript_16C0C4 + call_if eq, EventScript_16C0C4 updatemoneybox 0, 0, 0 getitemname 0, VAR_0x4000 playse SE_JIHANKI diff --git a/data/maps/CeladonCity_GameCorner/map.json b/data/maps/CeladonCity_GameCorner/map.json index 006c6ae0b..31a03a047 100644 --- a/data/maps/CeladonCity_GameCorner/map.json +++ b/data/maps/CeladonCity_GameCorner/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "48", + "graphics_id": "MAP_OBJ_GFX_WORKER_F", "x": 4, "y": 2, "elevation": 3, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "47", + "graphics_id": "MAP_OBJ_GFX_WORKER_M", "x": 6, "y": 2, "elevation": 3, @@ -40,7 +40,7 @@ "flag": "0" }, { - "graphics_id": "30", + "graphics_id": "MAP_OBJ_GFX_BALDING_MAN", "x": 1, "y": 6, "elevation": 3, @@ -53,7 +53,7 @@ "flag": "0" }, { - "graphics_id": "28", + "graphics_id": "MAP_OBJ_GFX_WOMAN_2", "x": 1, "y": 8, "elevation": 3, @@ -66,7 +66,7 @@ "flag": "0" }, { - "graphics_id": "57", + "graphics_id": "MAP_OBJ_GFX_FISHER", "x": 4, "y": 7, "elevation": 3, @@ -79,7 +79,7 @@ "flag": "0" }, { - "graphics_id": "91", + "graphics_id": "MAP_OBJ_GFX_GYM_GUY", "x": 7, "y": 10, "elevation": 3, @@ -92,7 +92,7 @@ "flag": "0" }, { - "graphics_id": "23", + "graphics_id": "MAP_OBJ_GFX_WOMAN_1", "x": 7, "y": 8, "elevation": 3, @@ -105,7 +105,7 @@ "flag": "0" }, { - "graphics_id": "33", + "graphics_id": "MAP_OBJ_GFX_OLD_MAN_2", "x": 10, "y": 9, "elevation": 3, @@ -118,7 +118,7 @@ "flag": "0" }, { - "graphics_id": "55", + "graphics_id": "MAP_OBJ_GFX_SCIENTIST", "x": 13, "y": 7, "elevation": 3, @@ -131,7 +131,7 @@ "flag": "0" }, { - "graphics_id": "61", + "graphics_id": "MAP_OBJ_GFX_GENTLEMAN", "x": 16, "y": 10, "elevation": 3, @@ -144,7 +144,7 @@ "flag": "0" }, { - "graphics_id": "49", + "graphics_id": "MAP_OBJ_GFX_ROCKET_M", "x": 11, "y": 2, "elevation": 3, @@ -154,7 +154,7 @@ "trainer_type": 1, "trainer_sight_or_berry_tree_id": 0, "script": "CeladonCity_GameCorner_EventScript_16CAF5", - "flag": "91" + "flag": "FLAG_HIDE_GAME_CORNER_ROCKET" } ], "warp_events": [ @@ -195,8 +195,9 @@ "y": 4, "elevation": 3, "item": "ITEM_NONE", - "flag": "51", - "unknown": 10 + "flag": "HIDDEN_ITEM_CELADON_CITY_GAME_CORNER_COINS", + "quantity": 10, + "underfoot": false }, { "type": "hidden_item", @@ -204,8 +205,9 @@ "y": 8, "elevation": 3, "item": "ITEM_NONE", - "flag": "52", - "unknown": 10 + "flag": "HIDDEN_ITEM_CELADON_CITY_GAME_CORNER_COINS_2", + "quantity": 10, + "underfoot": false }, { "type": "hidden_item", @@ -213,8 +215,9 @@ "y": 11, "elevation": 3, "item": "ITEM_NONE", - "flag": "53", - "unknown": 20 + "flag": "HIDDEN_ITEM_CELADON_CITY_GAME_CORNER_COINS_3", + "quantity": 20, + "underfoot": false }, { "type": "hidden_item", @@ -222,8 +225,9 @@ "y": 12, "elevation": 3, "item": "ITEM_NONE", - "flag": "54", - "unknown": 10 + "flag": "HIDDEN_ITEM_CELADON_CITY_GAME_CORNER_COINS_4", + "quantity": 10, + "underfoot": false }, { "type": "hidden_item", @@ -231,8 +235,9 @@ "y": 9, "elevation": 3, "item": "ITEM_NONE", - "flag": "55", - "unknown": 10 + "flag": "HIDDEN_ITEM_CELADON_CITY_GAME_CORNER_COINS_5", + "quantity": 10, + "underfoot": false }, { "type": "hidden_item", @@ -240,8 +245,9 @@ "y": 5, "elevation": 3, "item": "ITEM_NONE", - "flag": "56", - "unknown": 20 + "flag": "HIDDEN_ITEM_CELADON_CITY_GAME_CORNER_COINS_6", + "quantity": 20, + "underfoot": false }, { "type": "hidden_item", @@ -249,8 +255,9 @@ "y": 4, "elevation": 3, "item": "ITEM_NONE", - "flag": "57", - "unknown": 10 + "flag": "HIDDEN_ITEM_CELADON_CITY_GAME_CORNER_COINS_7", + "quantity": 10, + "underfoot": false }, { "type": "hidden_item", @@ -258,8 +265,9 @@ "y": 3, "elevation": 3, "item": "ITEM_NONE", - "flag": "58", - "unknown": 10 + "flag": "HIDDEN_ITEM_CELADON_CITY_GAME_CORNER_COINS_8", + "quantity": 10, + "underfoot": false }, { "type": "hidden_item", @@ -267,8 +275,9 @@ "y": 5, "elevation": 3, "item": "ITEM_NONE", - "flag": "59", - "unknown": 10 + "flag": "HIDDEN_ITEM_CELADON_CITY_GAME_CORNER_COINS_9", + "quantity": 10, + "underfoot": false }, { "type": "hidden_item", @@ -276,8 +285,9 @@ "y": 5, "elevation": 3, "item": "ITEM_NONE", - "flag": "60", - "unknown": 40 + "flag": "HIDDEN_ITEM_CELADON_CITY_GAME_CORNER_COINS_10", + "quantity": 40, + "underfoot": false }, { "type": "hidden_item", @@ -285,8 +295,9 @@ "y": 13, "elevation": 3, "item": "ITEM_NONE", - "flag": "61", - "unknown": 100 + "flag": "HIDDEN_ITEM_CELADON_CITY_GAME_CORNER_COINS_11", + "quantity": 100, + "underfoot": false }, { "type": "hidden_item", @@ -294,8 +305,9 @@ "y": 12, "elevation": 3, "item": "ITEM_NONE", - "flag": "62", - "unknown": 10 + "flag": "HIDDEN_ITEM_CELADON_CITY_GAME_CORNER_COINS_12", + "quantity": 10, + "underfoot": false }, { "type": "bg_event_type_4", diff --git a/data/maps/CeladonCity_GameCorner/scripts.inc b/data/maps/CeladonCity_GameCorner/scripts.inc index 1ab7bcdf4..487d9fa64 100644 --- a/data/maps/CeladonCity_GameCorner/scripts.inc +++ b/data/maps/CeladonCity_GameCorner/scripts.inc @@ -3,8 +3,8 @@ CeladonCity_GameCorner_MapScripts:: @ 816C646 .byte 0 CeladonCity_GameCorner_MapScript1_16C64C:: @ 816C64C - checkflag FLAG_0x26D - call_if 0, EventScript_16C656 + checkflag FLAG_OPENED_ROCKET_HIDEOUT + call_if FALSE, EventScript_16C656 end EventScript_16C656:: @ 816C656 @@ -22,14 +22,14 @@ CeladonCity_GameCorner_EventScript_16C684:: @ 816C684 CeladonCity_GameCorner_EventScript_16C68D:: @ 816C68D special sub_8110AB4 compare_var_to_value VAR_RESULT, 2 - goto_if_eq EventScript_1A7AE0 + goto_if eq, EventScript_1A7AE0 lock faceplayer showmoneybox 0, 0, 0 showcoinsbox 0, 5 message Text_196984 waitmessage - multichoice 13, 0, 27, 0 + multichoice 13, 0, MULTICHOICE_GAME_CORNER_COIN_PURCHASE_COUNTER, FALSE copyvar VAR_0x8009, VAR_RESULT switch VAR_RESULT case 0, EventScript_16C6E6 @@ -40,20 +40,20 @@ CeladonCity_GameCorner_EventScript_16C68D:: @ 816C68D EventScript_16C6E6:: @ 816C6E6 checkflag FLAG_GOT_COIN_CASE - goto_if 0, EventScript_16C790 + goto_if FALSE, EventScript_16C790 compare_var_to_value VAR_0x8009, 0 - goto_if_eq EventScript_16C734 + goto_if eq, EventScript_16C734 compare_var_to_value VAR_0x8009, 1 - goto_if_eq EventScript_16C706 + goto_if eq, EventScript_16C706 end EventScript_16C706:: @ 816C706 checkcoins VAR_0x4001 compare_var_to_value VAR_0x4001, 9500 - goto_if 4, EventScript_16C79E + goto_if ge, EventScript_16C79E checkmoney 10000, 0 compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_16C7AC + goto_if eq, EventScript_16C7AC givecoins 500 takemoney 10000, 0 goto EventScript_16C762 @@ -62,10 +62,10 @@ EventScript_16C706:: @ 816C706 EventScript_16C734:: @ 816C734 checkcoins VAR_0x4001 compare_var_to_value VAR_0x4001, 9950 - goto_if 4, EventScript_16C79E + goto_if ge, EventScript_16C79E checkmoney 1000, 0 compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_16C7AC + goto_if eq, EventScript_16C7AC givecoins 50 takemoney 1000, 0 goto EventScript_16C762 @@ -131,20 +131,20 @@ CeladonCity_GameCorner_EventScript_16C7D7:: @ 816C7D7 CeladonCity_GameCorner_EventScript_16C7E7:: @ 816C7E7 lock faceplayer - checkflag FLAG_0x26E - goto_if_eq EventScript_16C849 + checkflag FLAG_GOT_10_COINS_FROM_GAMBLER + goto_if TRUE, EventScript_16C849 msgbox gUnknown_8196AF3 checkflag FLAG_GOT_COIN_CASE - goto_if 0, EventScript_16C839 + goto_if FALSE, EventScript_16C839 checkcoins VAR_0x4001 compare_var_to_value VAR_0x4001, 9990 - goto_if 4, EventScript_16C82B + goto_if ge, EventScript_16C82B givecoins 10 textcolor 3 msgbox gUnknown_8196B0D playse SE_SHOP waitse - setflag FLAG_0x26E + setflag FLAG_GOT_10_COINS_FROM_GAMBLER goto EventScript_16C7CA end @@ -167,8 +167,8 @@ EventScript_16C849:: @ 816C849 CeladonCity_GameCorner_EventScript_16C857:: @ 816C857 lock faceplayer - checkflag FLAG_0x4B3 - goto_if_eq EventScript_16C870 + checkflag FLAG_DEFEATED_ERIKA + goto_if TRUE, EventScript_16C870 msgbox gUnknown_8196BAD goto EventScript_16C7CA end @@ -195,20 +195,20 @@ CeladonCity_GameCorner_EventScript_16C88E:: @ 816C88E CeladonCity_GameCorner_EventScript_16C89E:: @ 816C89E lock faceplayer - checkflag FLAG_0x26F - goto_if_eq EventScript_16C8F0 + checkflag FLAG_GOT_20_COINS_FROM_GAMBLER + goto_if TRUE, EventScript_16C8F0 msgbox gUnknown_8196D2B checkflag FLAG_GOT_COIN_CASE - goto_if 0, EventScript_16C839 + goto_if FALSE, EventScript_16C839 checkcoins VAR_0x4001 compare_var_to_value VAR_0x4001, 9980 - goto_if 4, EventScript_16C8E2 + goto_if ge, EventScript_16C8E2 givecoins 20 textcolor 3 msgbox gUnknown_8196D47 playse SE_SHOP waitse - setflag FLAG_0x26F + setflag FLAG_GOT_20_COINS_FROM_GAMBLER goto EventScript_16C7CA end @@ -225,20 +225,20 @@ EventScript_16C8F0:: @ 816C8F0 CeladonCity_GameCorner_EventScript_16C8FE:: @ 816C8FE lock faceplayer - checkflag FLAG_0x270 - goto_if_eq EventScript_16C950 + checkflag FLAG_GOT_20_COINS_FROM_GAMBLER_2 + goto_if TRUE, EventScript_16C950 msgbox gUnknown_8196DB7 checkflag FLAG_GOT_COIN_CASE - goto_if 0, EventScript_16C839 + goto_if FALSE, EventScript_16C839 checkcoins VAR_0x4001 compare_var_to_value VAR_0x4001, 9980 - goto_if 4, EventScript_16C942 + goto_if ge, EventScript_16C942 givecoins 20 textcolor 3 msgbox gUnknown_8196DF8 playse SE_SHOP waitse - setflag FLAG_0x270 + setflag FLAG_GOT_20_COINS_FROM_GAMBLER_2 goto EventScript_16C7CA end @@ -264,16 +264,16 @@ EventScript_16C96A:: @ 816C96A EventScript_16C96C:: @ 816C96C checkflag FLAG_GOT_COIN_CASE - goto_if 0, EventScript_16CAA0 + goto_if FALSE, EventScript_16CAA0 msgbox gUnknown_8196F46, MSGBOX_YESNO compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_16C96A + goto_if eq, EventScript_16C96A setfieldeffectarg 0, 255 setfieldeffectarg 1, 10 setfieldeffectarg 2, 14 dofieldeffect 64 waitfieldeffect 64 - specialvar VAR_RESULT, sub_80CAABC + specialvar VAR_RESULT, Special_GetRandomSlotMachine playslotmachine VAR_RESULT releaseall end @@ -412,8 +412,8 @@ EventScript_16CAA0:: @ 816CAA0 CeladonCity_GameCorner_EventScript_16CAAA:: @ 816CAAA lockall msgbox gUnknown_8196EDC - checkflag FLAG_0x26D - call_if 0, EventScript_16CABE + checkflag FLAG_OPENED_ROCKET_HIDEOUT + call_if FALSE, EventScript_16CABE releaseall end @@ -425,11 +425,11 @@ EventScript_16CABE:: @ 816CABE setmetatile 16, 3, 678, 1 setmetatile 17, 3, 679, 1 special DrawWholeMapView - setflag FLAG_0x26D + setflag FLAG_OPENED_ROCKET_HIDEOUT return CeladonCity_GameCorner_EventScript_16CAF5:: @ 816CAF5 - trainerbattle 2, 357, 0, Text_196E69, Text_196E95, EventScript_16CB10 + trainerbattle TRAINER_BATTLE_CONTINUE_SCRIPT, TRAINER_TEAM_ROCKET_GRUNT_7, 0, Text_196E69, Text_196E95, EventScript_16CB10 msgbox gUnknown_8196E9B, 6 end @@ -437,9 +437,9 @@ EventScript_16CB10:: @ 816CB10 msgbox gUnknown_8196E9B closemessage compare_var_to_value VAR_FACING, 3 - call_if 1, EventScript_16CB34 + call_if eq, EventScript_16CB34 compare_var_to_value VAR_FACING, 3 - call_if 5, EventScript_16CB3F + call_if ne, EventScript_16CB3F removeobject 11 release end diff --git a/data/maps/CeladonCity_GameCorner_PrizeRoom/map.json b/data/maps/CeladonCity_GameCorner_PrizeRoom/map.json index d4085c047..658ec5bd4 100644 --- a/data/maps/CeladonCity_GameCorner_PrizeRoom/map.json +++ b/data/maps/CeladonCity_GameCorner_PrizeRoom/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "30", + "graphics_id": "MAP_OBJ_GFX_BALDING_MAN", "x": 2, "y": 6, "elevation": 3, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "33", + "graphics_id": "MAP_OBJ_GFX_OLD_MAN_2", "x": 6, "y": 7, "elevation": 3, @@ -40,7 +40,7 @@ "flag": "0" }, { - "graphics_id": "47", + "graphics_id": "MAP_OBJ_GFX_WORKER_M", "x": 4, "y": 2, "elevation": 3, @@ -53,7 +53,7 @@ "flag": "0" }, { - "graphics_id": "47", + "graphics_id": "MAP_OBJ_GFX_WORKER_M", "x": 6, "y": 2, "elevation": 3, @@ -66,7 +66,7 @@ "flag": "0" }, { - "graphics_id": "47", + "graphics_id": "MAP_OBJ_GFX_WORKER_M", "x": 2, "y": 2, "elevation": 3, diff --git a/data/maps/CeladonCity_GameCorner_PrizeRoom/scripts.inc b/data/maps/CeladonCity_GameCorner_PrizeRoom/scripts.inc index 4a60c9814..01ad2b414 100644 --- a/data/maps/CeladonCity_GameCorner_PrizeRoom/scripts.inc +++ b/data/maps/CeladonCity_GameCorner_PrizeRoom/scripts.inc @@ -13,10 +13,10 @@ CeladonCity_GameCorner_PrizeRoom_EventScript_16CB88:: @ 816CB88 lock faceplayer checkflag FLAG_GOT_COIN_CASE - goto_if 0, EventScript_16CD99 + goto_if FALSE, EventScript_16CD99 special sub_8110AB4 compare_var_to_value VAR_RESULT, 2 - goto_if_eq EventScript_1A7AE0 + goto_if eq, EventScript_1A7AE0 showcoinsbox 0, 0 msgbox gUnknown_8197057 goto EventScript_16CBB2 @@ -25,7 +25,7 @@ CeladonCity_GameCorner_PrizeRoom_EventScript_16CB88:: @ 816CB88 EventScript_16CBB2:: @ 816CBB2 message Text_19707A waitmessage - multichoice 11, 0, 14, 0 + multichoice 11, 0, MULTICHOICE_GAME_CORNER_POKEMON_PRIZES, FALSE switch VAR_RESULT case 0, EventScript_16CC15 case 1, EventScript_16CC25 @@ -75,10 +75,10 @@ EventScript_16CC65:: @ 816CC65 getspeciesname 0, VAR_0x4001 msgbox gUnknown_819709D, MSGBOX_YESNO compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_16CC10 + goto_if eq, EventScript_16CC10 checkcoins VAR_RESULT compare_var_to_var VAR_RESULT, VAR_0x4002 - goto_if 0, EventScript_16CDA5 + goto_if lt, EventScript_16CDA5 textcolor 3 switch VAR_0x4001 case SPECIES_ABRA, EventScript_16CCD4 @@ -121,11 +121,11 @@ EventScript_16CD3D:: @ 816CD3D EventScript_16CD52:: @ 816CD52 compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_16CDB3 + goto_if eq, EventScript_16CDB3 compare_var_to_value VAR_RESULT, 1 - goto_if_eq EventScript_16CDE0 + goto_if eq, EventScript_16CDE0 compare_var_to_value VAR_RESULT, 2 - goto_if_eq EventScript_16CD74 + goto_if eq, EventScript_16CD74 end EventScript_16CD74:: @ 816CD74 @@ -164,7 +164,7 @@ EventScript_16CDB3:: @ 816CDB3 waitfanfare msgbox gUnknown_81A56A7, MSGBOX_YESNO compare_var_to_value VAR_RESULT, 1 - goto_if_eq EventScript_16CD83 + goto_if eq, EventScript_16CD83 goto EventScript_16CC10 end @@ -178,7 +178,7 @@ EventScript_16CDE0:: @ 816CDE0 waitfanfare msgbox gUnknown_81A56A7, MSGBOX_YESNO compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_16CE12 + goto_if eq, EventScript_16CE12 call EventScript_1A8C33 goto EventScript_16CE12 end @@ -192,10 +192,10 @@ CeladonCity_GameCorner_PrizeRoom_EventScript_16CE1D:: @ 816CE1D lock faceplayer checkflag FLAG_GOT_COIN_CASE - goto_if 0, EventScript_16CD99 + goto_if FALSE, EventScript_16CD99 special sub_8110AB4 compare_var_to_value VAR_RESULT, 2 - goto_if_eq EventScript_1A7AE0 + goto_if eq, EventScript_1A7AE0 showcoinsbox 0, 0 msgbox gUnknown_8197057 goto EventScript_16CE47 @@ -204,7 +204,7 @@ CeladonCity_GameCorner_PrizeRoom_EventScript_16CE1D:: @ 816CE1D EventScript_16CE47:: @ 816CE47 message Text_19707A waitmessage - multichoice 11, 0, 30, 0 + multichoice 11, 0, MULTICHOICE_GAME_CORNER_TMPRIZES, FALSE switch VAR_RESULT case 0, EventScript_16CEA5 case 1, EventScript_16CEB9 @@ -253,7 +253,7 @@ EventScript_16CEF5:: @ 816CEF5 EventScript_16CF09:: @ 816CF09 msgbox gUnknown_81970B2, MSGBOX_YESNO compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_16CC10 + goto_if eq, EventScript_16CC10 goto EventScript_16CF3F end @@ -261,7 +261,7 @@ EventScript_16CF22:: @ 816CF22 getitemname 0, VAR_0x4001 msgbox gUnknown_819709D, MSGBOX_YESNO compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_16CC10 + goto_if eq, EventScript_16CC10 goto EventScript_16CF3F end @@ -269,10 +269,10 @@ EventScript_16CF3F:: @ 816CF3F getitemname 0, VAR_0x4001 checkcoins VAR_RESULT compare_var_to_var VAR_RESULT, VAR_0x4002 - goto_if 0, EventScript_16CDA5 + goto_if lt, EventScript_16CDA5 checkitemspace VAR_0x4001, 1 compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_16CF79 + goto_if eq, EventScript_16CF79 takecoins VAR_0x4002 updatecoinsbox 0, 5 giveitem VAR_0x4001 @@ -290,10 +290,10 @@ CeladonCity_GameCorner_PrizeRoom_EventScript_16CF88:: @ 816CF88 lock faceplayer checkflag FLAG_GOT_COIN_CASE - goto_if 0, EventScript_16CD99 + goto_if FALSE, EventScript_16CD99 special sub_8110AB4 compare_var_to_value VAR_RESULT, 2 - goto_if_eq EventScript_1A7AE0 + goto_if eq, EventScript_1A7AE0 showcoinsbox 0, 0 msgbox gUnknown_8197057 goto EventScript_16CFB2 @@ -302,7 +302,7 @@ CeladonCity_GameCorner_PrizeRoom_EventScript_16CF88:: @ 816CF88 EventScript_16CFB2:: @ 816CFB2 message Text_19707A waitmessage - multichoice 10, 0, 41, 0 + multichoice 10, 0, MULTICHOICE_GAME_CORNER_BATTLE_ITEM_PRIZES, FALSE switch VAR_RESULT case 0, EventScript_16D010 case 1, EventScript_16D020 diff --git a/data/maps/CeladonCity_Gym/map.json b/data/maps/CeladonCity_Gym/map.json index 15647d28f..539f0cb0d 100644 --- a/data/maps/CeladonCity_Gym/map.json +++ b/data/maps/CeladonCity_Gym/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "22", + "graphics_id": "MAP_OBJ_GFX_LASS", "x": 3, "y": 11, "elevation": 3, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "29", + "graphics_id": "MAP_OBJ_GFX_BEAUTY", "x": 9, "y": 10, "elevation": 3, @@ -40,7 +40,7 @@ "flag": "0" }, { - "graphics_id": "40", + "graphics_id": "MAP_OBJ_GFX_PICNICKER", "x": 10, "y": 7, "elevation": 3, @@ -53,7 +53,7 @@ "flag": "0" }, { - "graphics_id": "29", + "graphics_id": "MAP_OBJ_GFX_BEAUTY", "x": 2, "y": 6, "elevation": 3, @@ -66,7 +66,7 @@ "flag": "0" }, { - "graphics_id": "29", + "graphics_id": "MAP_OBJ_GFX_BEAUTY", "x": 5, "y": 4, "elevation": 3, @@ -79,7 +79,7 @@ "flag": "0" }, { - "graphics_id": "22", + "graphics_id": "MAP_OBJ_GFX_LASS", "x": 7, "y": 4, "elevation": 3, @@ -92,7 +92,7 @@ "flag": "0" }, { - "graphics_id": "83", + "graphics_id": "MAP_OBJ_GFX_ERIKA", "x": 6, "y": 4, "elevation": 3, @@ -105,7 +105,7 @@ "flag": "0" }, { - "graphics_id": "42", + "graphics_id": "MAP_OBJ_GFX_COOLTRAINER_F", "x": 8, "y": 7, "elevation": 3, @@ -118,7 +118,7 @@ "flag": "0" }, { - "graphics_id": "95", + "graphics_id": "MAP_OBJ_GFX_CUT_TREE", "x": 6, "y": 8, "elevation": 3, @@ -127,11 +127,11 @@ "movement_range_y": 1, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "CeladonCity_Gym_EventScript_1BDF13", - "flag": "18" + "script": "EventScript_InteractWithCutTreeObject", + "flag": "FLAG_TEMP_12" }, { - "graphics_id": "95", + "graphics_id": "MAP_OBJ_GFX_CUT_TREE", "x": 3, "y": 5, "elevation": 3, @@ -140,11 +140,11 @@ "movement_range_y": 1, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "CeladonCity_Gym_EventScript_1BDF13", - "flag": "19" + "script": "EventScript_InteractWithCutTreeObject", + "flag": "FLAG_TEMP_13" }, { - "graphics_id": "95", + "graphics_id": "MAP_OBJ_GFX_CUT_TREE", "x": 9, "y": 6, "elevation": 3, @@ -153,8 +153,8 @@ "movement_range_y": 1, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "CeladonCity_Gym_EventScript_1BDF13", - "flag": "20" + "script": "EventScript_InteractWithCutTreeObject", + "flag": "FLAG_TEMP_14" } ], "warp_events": [ diff --git a/data/maps/CeladonCity_Gym/scripts.inc b/data/maps/CeladonCity_Gym/scripts.inc index 9131602c2..b92e99fe1 100644 --- a/data/maps/CeladonCity_Gym/scripts.inc +++ b/data/maps/CeladonCity_Gym/scripts.inc @@ -2,28 +2,21 @@ CeladonCity_Gym_MapScripts:: @ 816D060 .byte 0 CeladonCity_Gym_EventScript_16D061:: @ 816D061 - setvar VAR_0x8004, 5 - setvar VAR_0x8005, 2 - special UpdatePickStateFromSpecialVar8005 - trainerbattle 1, 417, 0, Text_197114, Text_197260, EventScript_16D0A0 - checkflag FLAG_0x293 - goto_if 0, EventScript_16D0C6 - setvar VAR_0x8004, 5 - setvar VAR_0x8005, 4 - special SetFlavorTextFlagFromSpecialVars + famechecker FAMECHECKER_ERIKA, FCPICKSTATE_COLORED, UpdatePickStateFromSpecialVar8005 + trainerbattle TRAINER_BATTLE_CONTINUE_SCRIPT_NO_MUSIC, TRAINER_LEADER_ERIKA, 0, Text_197114, Text_197260, EventScript_16D0A0 + checkflag FLAG_GOT_TM19_FROM_ERIKA + goto_if FALSE, EventScript_16D0C6 + famechecker FAMECHECKER_ERIKA, 4 msgbox gUnknown_81972B8 release end EventScript_16D0A0:: @ 816D0A0 - setvar VAR_0x8004, 5 - setvar VAR_0x8005, 1 - special SetFlavorTextFlagFromSpecialVars - clearflag FLAG_0x09E - setflag FLAG_0x4B3 - setflag FLAG_0x823 - setvar VAR_0x8008, 4 - call EventScript_1A6B18 + famechecker FAMECHECKER_ERIKA, 1 + clearflag FLAG_HIDE_FAME_CHECKER_ERIKA_JOURNALS + setflag FLAG_DEFEATED_ERIKA + setflag FLAG_BADGE04_GET + set_gym_trainers 4 goto EventScript_16D0C6 end @@ -31,14 +24,10 @@ EventScript_16D0C6:: @ 816D0C6 msgbox gUnknown_8197327 checkitemspace ITEM_TM19, 1 compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_16D107 + goto_if eq, EventScript_16D107 additem ITEM_TM19, 1 - loadword 0, gUnknown_81973BA - setorcopyvar VAR_0x8000, ITEM_TM19 - setorcopyvar VAR_0x8001, 1 - setorcopyvar VAR_0x8002, MUS_FANFA1 - callstd 9 @ gStdScript_ItemMessageAndFanfare - setflag FLAG_0x293 + giveitemfanfaremsg gUnknown_81973BA, ITEM_TM19 + setflag FLAG_GOT_TM19_FROM_ERIKA msgbox gUnknown_81973D7 release end @@ -49,50 +38,46 @@ EventScript_16D107:: @ 816D107 end CeladonCity_Gym_EventScript_16D111:: @ 816D111 - trainerbattle 0, 132, 0, Text_19747C, Text_1974C4 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_LASS_KAY, 0, Text_19747C, Text_1974C4 msgbox gUnknown_81974D6, 6 end CeladonCity_Gym_EventScript_16D128:: @ 816D128 - trainerbattle 0, 133, 0, Text_1976C5, Text_1976FF - setvar VAR_0x8004, 5 - setvar VAR_0x8005, 2 - special SetFlavorTextFlagFromSpecialVars + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_LASS_LISA, 0, Text_1976C5, Text_1976FF + famechecker FAMECHECKER_ERIKA, 2 msgbox gUnknown_8197708, 6 end CeladonCity_Gym_EventScript_16D14C:: @ 816D14C - trainerbattle 0, 160, 0, Text_197595, Text_1975BB + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_PICNICKER_TINA, 0, Text_197595, Text_1975BB msgbox gUnknown_81975D1, 6 end CeladonCity_Gym_EventScript_16D163:: @ 816D163 - trainerbattle 0, 265, 0, Text_1974FA, Text_19751C + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_BEAUTY_BRIDGET, 0, Text_1974FA, Text_19751C msgbox gUnknown_8197527, 6 end CeladonCity_Gym_EventScript_16D17A:: @ 816D17A - trainerbattle 0, 266, 0, Text_19760B, Text_197660 - setvar VAR_0x8004, 5 - setvar VAR_0x8005, 3 - special SetFlavorTextFlagFromSpecialVars + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_BEAUTY_TAMIA, 0, Text_19760B, Text_197660 + famechecker FAMECHECKER_ERIKA, 3 msgbox gUnknown_8197664, 6 end CeladonCity_Gym_EventScript_16D19E:: @ 816D19E - trainerbattle 0, 267, 0, Text_197747, Text_19777A + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_BEAUTY_LORI, 0, Text_197747, Text_19777A msgbox gUnknown_8197788, 6 end CeladonCity_Gym_EventScript_16D1B5:: @ 816D1B5 - trainerbattle 0, 402, 0, Text_1977E5, Text_197832 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_COOLTRAINER_MARY, 0, Text_1977E5, Text_197832 msgbox gUnknown_819783E, 6 end CeladonCity_Gym_EventScript_16D1CC:: @ 816D1CC lockall - checkflag FLAG_0x823 - goto_if_eq EventScript_16D1E0 + checkflag FLAG_BADGE04_GET + goto_if TRUE, EventScript_16D1E0 msgbox gUnknown_8197874 releaseall end diff --git a/data/maps/CeladonCity_Hotel/map.json b/data/maps/CeladonCity_Hotel/map.json index 0bb559faf..4d1d99203 100644 --- a/data/maps/CeladonCity_Hotel/map.json +++ b/data/maps/CeladonCity_Hotel/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "35", + "graphics_id": "MAP_OBJ_GFX_OLD_WOMAN", "x": 5, "y": 4, "elevation": 3, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "29", + "graphics_id": "MAP_OBJ_GFX_BEAUTY", "x": 3, "y": 6, "elevation": 3, @@ -40,7 +40,7 @@ "flag": "0" }, { - "graphics_id": "25", + "graphics_id": "MAP_OBJ_GFX_MAN", "x": 9, "y": 7, "elevation": 3, @@ -53,7 +53,7 @@ "flag": "0" }, { - "graphics_id": "16", + "graphics_id": "MAP_OBJ_GFX_LITTLE_BOY", "x": 2, "y": 6, "elevation": 3, diff --git a/data/maps/CeladonCity_House1/map.json b/data/maps/CeladonCity_House1/map.json index 40d610292..ea37835d1 100644 --- a/data/maps/CeladonCity_House1/map.json +++ b/data/maps/CeladonCity_House1/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "33", + "graphics_id": "MAP_OBJ_GFX_OLD_MAN_2", "x": 5, "y": 2, "elevation": 3, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "49", + "graphics_id": "MAP_OBJ_GFX_ROCKET_M", "x": 2, "y": 4, "elevation": 3, @@ -40,7 +40,7 @@ "flag": "0" }, { - "graphics_id": "49", + "graphics_id": "MAP_OBJ_GFX_ROCKET_M", "x": 8, "y": 4, "elevation": 3, diff --git a/data/maps/CeladonCity_PokemonCenter_1F/map.json b/data/maps/CeladonCity_PokemonCenter_1F/map.json index 57eee5a1d..c29be0604 100644 --- a/data/maps/CeladonCity_PokemonCenter_1F/map.json +++ b/data/maps/CeladonCity_PokemonCenter_1F/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "64", + "graphics_id": "MAP_OBJ_GFX_NURSE", "x": 7, "y": 2, "elevation": 3, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "61", + "graphics_id": "MAP_OBJ_GFX_GENTLEMAN", "x": 4, "y": 4, "elevation": 3, @@ -40,7 +40,7 @@ "flag": "0" }, { - "graphics_id": "42", + "graphics_id": "MAP_OBJ_GFX_COOLTRAINER_F", "x": 10, "y": 6, "elevation": 3, @@ -53,7 +53,7 @@ "flag": "0" }, { - "graphics_id": "18", + "graphics_id": "MAP_OBJ_GFX_YOUNGSTER", "x": 12, "y": 5, "elevation": 3, diff --git a/data/maps/CeladonCity_PokemonCenter_2F/map.json b/data/maps/CeladonCity_PokemonCenter_2F/map.json index faa029c1f..e5bc26a2a 100644 --- a/data/maps/CeladonCity_PokemonCenter_2F/map.json +++ b/data/maps/CeladonCity_PokemonCenter_2F/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "65", + "graphics_id": "MAP_OBJ_GFX_CABLE_CLUB_RECEPTIONIST", "x": 6, "y": 2, "elevation": 3, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "65", + "graphics_id": "MAP_OBJ_GFX_CABLE_CLUB_RECEPTIONIST", "x": 2, "y": 2, "elevation": 3, @@ -40,7 +40,7 @@ "flag": "0" }, { - "graphics_id": "65", + "graphics_id": "MAP_OBJ_GFX_CABLE_CLUB_RECEPTIONIST", "x": 10, "y": 2, "elevation": 3, @@ -53,7 +53,7 @@ "flag": "0" }, { - "graphics_id": "69", + "graphics_id": "MAP_OBJ_GFX_MG_DELIVERYMAN", "x": 1, "y": 2, "elevation": 3, @@ -63,7 +63,7 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "CeladonCity_PokemonCenter_2F_EventScript_1BB1D2", - "flag": "112" + "flag": "FLAG_HIDE_MG_DELIVERYMEN" } ], "warp_events": [ diff --git a/data/maps/CeladonCity_Restaurant/map.json b/data/maps/CeladonCity_Restaurant/map.json index 1abb5c5ae..1e96149ad 100644 --- a/data/maps/CeladonCity_Restaurant/map.json +++ b/data/maps/CeladonCity_Restaurant/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "59", + "graphics_id": "MAP_OBJ_GFX_CHEF", "x": 12, "y": 7, "elevation": 3, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "28", + "graphics_id": "MAP_OBJ_GFX_WOMAN_2", "x": 11, "y": 4, "elevation": 3, @@ -40,7 +40,7 @@ "flag": "0" }, { - "graphics_id": "27", + "graphics_id": "MAP_OBJ_GFX_FAT_MAN", "x": 9, "y": 4, "elevation": 3, @@ -53,7 +53,7 @@ "flag": "0" }, { - "graphics_id": "30", + "graphics_id": "MAP_OBJ_GFX_BALDING_MAN", "x": 1, "y": 2, "elevation": 0, @@ -66,7 +66,7 @@ "flag": "0" }, { - "graphics_id": "47", + "graphics_id": "MAP_OBJ_GFX_WORKER_M", "x": 3, "y": 7, "elevation": 0, diff --git a/data/maps/CeladonCity_Restaurant/scripts.inc b/data/maps/CeladonCity_Restaurant/scripts.inc index 379d07271..82ecb417e 100644 --- a/data/maps/CeladonCity_Restaurant/scripts.inc +++ b/data/maps/CeladonCity_Restaurant/scripts.inc @@ -13,11 +13,11 @@ CeladonCity_Restaurant_EventScript_16D1FD:: @ 816D1FD lock faceplayer checkflag FLAG_GOT_COIN_CASE - goto_if_eq EventScript_16D24B + goto_if TRUE, EventScript_16D24B msgbox gUnknown_81979C1 checkitemspace ITEM_COIN_CASE, 1 compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_16D241 + goto_if eq, EventScript_16D241 additem ITEM_COIN_CASE, 1 giveitemfanfaremsg gUnknown_8197A38, ITEM_COIN_CASE setflag FLAG_GOT_COIN_CASE diff --git a/data/maps/CeruleanCave_1F/map.json b/data/maps/CeruleanCave_1F/map.json index 4479d1792..a2373d45c 100644 --- a/data/maps/CeruleanCave_1F/map.json +++ b/data/maps/CeruleanCave_1F/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 7, "y": 3, "elevation": 3, @@ -24,10 +24,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "CeruleanCave_1F_EventScript_1BEA47", - "flag": "434" + "flag": "FLAG_HIDE_CERULEAN_CAVE_1F_NUGGET" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 11, "y": 16, "elevation": 3, @@ -37,10 +37,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "CeruleanCave_1F_EventScript_1BEA54", - "flag": "435" + "flag": "FLAG_HIDE_CERULEAN_CAVE_1F_FULL_RESTORE" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 25, "y": 5, "elevation": 4, @@ -50,10 +50,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "CeruleanCave_1F_EventScript_1BEA3A", - "flag": "433" + "flag": "FLAG_HIDE_CERULEAN_CAVE_1F_MAX_ELIXIR" }, { - "graphics_id": "96", + "graphics_id": "MAP_OBJ_GFX_ROCK_SMASH_ROCK", "x": 7, "y": 21, "elevation": 3, @@ -62,11 +62,11 @@ "movement_range_y": 1, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "CeruleanCave_1F_EventScript_1BE00C", - "flag": "18" + "script": "EventScript_InteractWithRockSmashRockObject", + "flag": "FLAG_TEMP_12" }, { - "graphics_id": "96", + "graphics_id": "MAP_OBJ_GFX_ROCK_SMASH_ROCK", "x": 13, "y": 21, "elevation": 3, @@ -75,11 +75,11 @@ "movement_range_y": 1, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "CeruleanCave_1F_EventScript_1BE00C", - "flag": "19" + "script": "EventScript_InteractWithRockSmashRockObject", + "flag": "FLAG_TEMP_13" }, { - "graphics_id": "96", + "graphics_id": "MAP_OBJ_GFX_ROCK_SMASH_ROCK", "x": 5, "y": 20, "elevation": 3, @@ -88,11 +88,11 @@ "movement_range_y": 1, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "CeruleanCave_1F_EventScript_1BE00C", - "flag": "20" + "script": "EventScript_InteractWithRockSmashRockObject", + "flag": "FLAG_TEMP_14" }, { - "graphics_id": "96", + "graphics_id": "MAP_OBJ_GFX_ROCK_SMASH_ROCK", "x": 14, "y": 20, "elevation": 3, @@ -101,11 +101,11 @@ "movement_range_y": 1, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "CeruleanCave_1F_EventScript_1BE00C", - "flag": "21" + "script": "EventScript_InteractWithRockSmashRockObject", + "flag": "FLAG_TEMP_15" }, { - "graphics_id": "96", + "graphics_id": "MAP_OBJ_GFX_ROCK_SMASH_ROCK", "x": 11, "y": 21, "elevation": 3, @@ -114,11 +114,11 @@ "movement_range_y": 1, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "CeruleanCave_1F_EventScript_1BE00C", - "flag": "22" + "script": "EventScript_InteractWithRockSmashRockObject", + "flag": "FLAG_TEMP_16" }, { - "graphics_id": "96", + "graphics_id": "MAP_OBJ_GFX_ROCK_SMASH_ROCK", "x": 9, "y": 18, "elevation": 3, @@ -127,8 +127,8 @@ "movement_range_y": 1, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "CeruleanCave_1F_EventScript_1BE00C", - "flag": "23" + "script": "EventScript_InteractWithRockSmashRockObject", + "flag": "FLAG_TEMP_17" } ], "warp_events": [ @@ -196,9 +196,10 @@ "x": 12, "y": 2, "elevation": 3, - "item": "POCKET_KEY_ITEMS", - "flag": "39", - "unknown": 1 + "item": "ITEM_ULTRA_BALL", + "flag": "HIDDEN_ITEM_CERULEAN_CAVE_1F_ULTRA_BALL", + "quantity": 1, + "underfoot": false } ] } diff --git a/data/maps/CeruleanCave_2F/map.json b/data/maps/CeruleanCave_2F/map.json index 73fd1877f..d52fa3da5 100644 --- a/data/maps/CeruleanCave_2F/map.json +++ b/data/maps/CeruleanCave_2F/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 9, "y": 18, "elevation": 3, @@ -24,10 +24,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "CeruleanCave_2F_EventScript_1BEA6E", - "flag": "437" + "flag": "FLAG_HIDE_CERULEAN_CAVE_2F_PP_UP" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 29, "y": 16, "elevation": 3, @@ -37,10 +37,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "CeruleanCave_2F_EventScript_1BEA7B", - "flag": "438" + "flag": "FLAG_HIDE_CERULEAN_CAVE_2F_ULTRA_BALL" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 33, "y": 12, "elevation": 3, @@ -50,10 +50,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "CeruleanCave_2F_EventScript_1BEA61", - "flag": "436" + "flag": "FLAG_HIDE_CERULEAN_CAVE_2F_FULL_RESTORE" }, { - "graphics_id": "96", + "graphics_id": "MAP_OBJ_GFX_ROCK_SMASH_ROCK", "x": 33, "y": 10, "elevation": 3, @@ -62,11 +62,11 @@ "movement_range_y": 1, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "CeruleanCave_2F_EventScript_1BE00C", - "flag": "18" + "script": "EventScript_InteractWithRockSmashRockObject", + "flag": "FLAG_TEMP_12" }, { - "graphics_id": "96", + "graphics_id": "MAP_OBJ_GFX_ROCK_SMASH_ROCK", "x": 33, "y": 9, "elevation": 3, @@ -75,11 +75,11 @@ "movement_range_y": 1, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "CeruleanCave_2F_EventScript_1BE00C", - "flag": "19" + "script": "EventScript_InteractWithRockSmashRockObject", + "flag": "FLAG_TEMP_13" }, { - "graphics_id": "96", + "graphics_id": "MAP_OBJ_GFX_ROCK_SMASH_ROCK", "x": 25, "y": 11, "elevation": 3, @@ -88,11 +88,11 @@ "movement_range_y": 1, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "CeruleanCave_2F_EventScript_1BE00C", - "flag": "20" + "script": "EventScript_InteractWithRockSmashRockObject", + "flag": "FLAG_TEMP_14" }, { - "graphics_id": "96", + "graphics_id": "MAP_OBJ_GFX_ROCK_SMASH_ROCK", "x": 28, "y": 20, "elevation": 3, @@ -101,11 +101,11 @@ "movement_range_y": 1, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "CeruleanCave_2F_EventScript_1BE00C", - "flag": "21" + "script": "EventScript_InteractWithRockSmashRockObject", + "flag": "FLAG_TEMP_15" }, { - "graphics_id": "96", + "graphics_id": "MAP_OBJ_GFX_ROCK_SMASH_ROCK", "x": 30, "y": 20, "elevation": 3, @@ -114,11 +114,11 @@ "movement_range_y": 1, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "CeruleanCave_2F_EventScript_1BE00C", - "flag": "22" + "script": "EventScript_InteractWithRockSmashRockObject", + "flag": "FLAG_TEMP_16" }, { - "graphics_id": "96", + "graphics_id": "MAP_OBJ_GFX_ROCK_SMASH_ROCK", "x": 9, "y": 13, "elevation": 3, @@ -127,11 +127,11 @@ "movement_range_y": 1, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "CeruleanCave_2F_EventScript_1BE00C", - "flag": "23" + "script": "EventScript_InteractWithRockSmashRockObject", + "flag": "FLAG_TEMP_17" }, { - "graphics_id": "96", + "graphics_id": "MAP_OBJ_GFX_ROCK_SMASH_ROCK", "x": 23, "y": 16, "elevation": 3, @@ -140,11 +140,11 @@ "movement_range_y": 1, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "CeruleanCave_2F_EventScript_1BE00C", - "flag": "24" + "script": "EventScript_InteractWithRockSmashRockObject", + "flag": "FLAG_TEMP_18" }, { - "graphics_id": "96", + "graphics_id": "MAP_OBJ_GFX_ROCK_SMASH_ROCK", "x": 13, "y": 6, "elevation": 3, @@ -153,11 +153,11 @@ "movement_range_y": 1, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "CeruleanCave_2F_EventScript_1BE00C", - "flag": "25" + "script": "EventScript_InteractWithRockSmashRockObject", + "flag": "FLAG_TEMP_19" }, { - "graphics_id": "96", + "graphics_id": "MAP_OBJ_GFX_ROCK_SMASH_ROCK", "x": 4, "y": 12, "elevation": 3, @@ -166,11 +166,11 @@ "movement_range_y": 1, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "CeruleanCave_2F_EventScript_1BE00C", - "flag": "26" + "script": "EventScript_InteractWithRockSmashRockObject", + "flag": "FLAG_TEMP_1A" }, { - "graphics_id": "96", + "graphics_id": "MAP_OBJ_GFX_ROCK_SMASH_ROCK", "x": 10, "y": 20, "elevation": 3, @@ -179,8 +179,8 @@ "movement_range_y": 1, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "CeruleanCave_2F_EventScript_1BE00C", - "flag": "27" + "script": "EventScript_InteractWithRockSmashRockObject", + "flag": "FLAG_TEMP_1B" } ], "warp_events": [ diff --git a/data/maps/CeruleanCave_B1F/map.json b/data/maps/CeruleanCave_B1F/map.json index 8ad1ef685..9f93a9557 100644 --- a/data/maps/CeruleanCave_B1F/map.json +++ b/data/maps/CeruleanCave_B1F/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 31, "y": 9, "elevation": 4, @@ -24,10 +24,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "CeruleanCave_B1F_EventScript_1BEA95", - "flag": "440" + "flag": "FLAG_HIDE_CERULEAN_CAVE_B1F_ULTRA_BALL" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 32, "y": 2, "elevation": 3, @@ -37,10 +37,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "CeruleanCave_B1F_EventScript_1BEA88", - "flag": "439" + "flag": "FLAG_HIDE_CERULEAN_CAVE_B1F_MAX_REVIVE" }, { - "graphics_id": "139", + "graphics_id": "MAP_OBJ_GFX_MEWTWO", "x": 7, "y": 12, "elevation": 3, @@ -50,10 +50,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "CeruleanCave_B1F_EventScript_1624F5", - "flag": "129" + "flag": "FLAG_HIDE_MEWTWO" }, { - "graphics_id": "96", + "graphics_id": "MAP_OBJ_GFX_ROCK_SMASH_ROCK", "x": 37, "y": 1, "elevation": 3, @@ -62,11 +62,11 @@ "movement_range_y": 1, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "CeruleanCave_B1F_EventScript_1BE00C", - "flag": "18" + "script": "EventScript_InteractWithRockSmashRockObject", + "flag": "FLAG_TEMP_12" }, { - "graphics_id": "96", + "graphics_id": "MAP_OBJ_GFX_ROCK_SMASH_ROCK", "x": 38, "y": 2, "elevation": 3, @@ -75,11 +75,11 @@ "movement_range_y": 1, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "CeruleanCave_B1F_EventScript_1BE00C", - "flag": "19" + "script": "EventScript_InteractWithRockSmashRockObject", + "flag": "FLAG_TEMP_13" }, { - "graphics_id": "96", + "graphics_id": "MAP_OBJ_GFX_ROCK_SMASH_ROCK", "x": 35, "y": 1, "elevation": 3, @@ -88,11 +88,11 @@ "movement_range_y": 1, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "CeruleanCave_B1F_EventScript_1BE00C", - "flag": "20" + "script": "EventScript_InteractWithRockSmashRockObject", + "flag": "FLAG_TEMP_14" }, { - "graphics_id": "96", + "graphics_id": "MAP_OBJ_GFX_ROCK_SMASH_ROCK", "x": 37, "y": 4, "elevation": 3, @@ -101,11 +101,11 @@ "movement_range_y": 1, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "CeruleanCave_B1F_EventScript_1BE00C", - "flag": "21" + "script": "EventScript_InteractWithRockSmashRockObject", + "flag": "FLAG_TEMP_15" }, { - "graphics_id": "96", + "graphics_id": "MAP_OBJ_GFX_ROCK_SMASH_ROCK", "x": 35, "y": 5, "elevation": 3, @@ -114,11 +114,11 @@ "movement_range_y": 1, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "CeruleanCave_B1F_EventScript_1BE00C", - "flag": "22" + "script": "EventScript_InteractWithRockSmashRockObject", + "flag": "FLAG_TEMP_16" }, { - "graphics_id": "96", + "graphics_id": "MAP_OBJ_GFX_ROCK_SMASH_ROCK", "x": 2, "y": 2, "elevation": 3, @@ -127,11 +127,11 @@ "movement_range_y": 1, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "CeruleanCave_B1F_EventScript_1BE00C", - "flag": "23" + "script": "EventScript_InteractWithRockSmashRockObject", + "flag": "FLAG_TEMP_17" }, { - "graphics_id": "96", + "graphics_id": "MAP_OBJ_GFX_ROCK_SMASH_ROCK", "x": 4, "y": 1, "elevation": 3, @@ -140,11 +140,11 @@ "movement_range_y": 1, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "CeruleanCave_B1F_EventScript_1BE00C", - "flag": "24" + "script": "EventScript_InteractWithRockSmashRockObject", + "flag": "FLAG_TEMP_18" }, { - "graphics_id": "96", + "graphics_id": "MAP_OBJ_GFX_ROCK_SMASH_ROCK", "x": 6, "y": 1, "elevation": 3, @@ -153,11 +153,11 @@ "movement_range_y": 1, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "CeruleanCave_B1F_EventScript_1BE00C", - "flag": "25" + "script": "EventScript_InteractWithRockSmashRockObject", + "flag": "FLAG_TEMP_19" }, { - "graphics_id": "96", + "graphics_id": "MAP_OBJ_GFX_ROCK_SMASH_ROCK", "x": 3, "y": 4, "elevation": 3, @@ -166,8 +166,8 @@ "movement_range_y": 1, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "CeruleanCave_B1F_EventScript_1BE00C", - "flag": "26" + "script": "EventScript_InteractWithRockSmashRockObject", + "flag": "FLAG_TEMP_1A" } ], "warp_events": [ diff --git a/data/maps/CeruleanCave_B1F/scripts.inc b/data/maps/CeruleanCave_B1F/scripts.inc index c12eaff5a..5c51d2601 100644 --- a/data/maps/CeruleanCave_B1F/scripts.inc +++ b/data/maps/CeruleanCave_B1F/scripts.inc @@ -4,30 +4,30 @@ CeruleanCave_B1F_MapScripts:: @ 81624BE .byte 0 CeruleanCave_B1F_MapScript1_1624C9:: @ 81624C9 - checkflag FLAG_0x807 - call_if 1, EventScript_1624D3 + checkflag FLAG_SYS_SPECIAL_WILD_BATTLE + call_if TRUE, EventScript_1624D3 end EventScript_1624D3:: @ 81624D3 - specialvar VAR_RESULT, sub_80CA74C - compare_var_to_value VAR_RESULT, 7 - goto_if 5, EventScript_1A77A9 + specialvar VAR_RESULT, Special_GetBattleOutcome + compare_var_to_value VAR_RESULT, B_OUTCOME_CAUGHT + goto_if ne, EventScript_1A77A9 removeobject VAR_LAST_TALKED return CeruleanCave_B1F_MapScript2_1624E7:: @ 81624E7 - checkflag FLAG_0x2BC - call_if 0, EventScript_1624F1 + checkflag FLAG_FOUGHT_MEWTWO + call_if FALSE, EventScript_1624F1 end EventScript_1624F1:: @ 81624F1 - clearflag FLAG_0x081 + clearflag FLAG_HIDE_MEWTWO return CeruleanCave_B1F_EventScript_1624F5:: @ 81624F5 special sub_8110AB4 compare_var_to_value VAR_RESULT, 2 - goto_if_eq EventScript_1A7AE0 + goto_if eq, EventScript_1A7AE0 special sub_8112364 lock faceplayer @@ -40,23 +40,23 @@ CeruleanCave_B1F_EventScript_1624F5:: @ 81624F5 playbgm MUS_EXEYE, 0 waitbuttonpress setwildbattle SPECIES_MEWTWO, 70, ITEM_NONE - setflag FLAG_0x807 - special sub_807F9D8 + setflag FLAG_SYS_SPECIAL_WILD_BATTLE + special Special_StartLegendaryBattle waitstate - clearflag FLAG_0x807 - specialvar VAR_RESULT, sub_80CA74C - compare_var_to_value VAR_RESULT, 1 - goto_if_eq EventScript_162558 - compare_var_to_value VAR_RESULT, 4 - goto_if_eq EventScript_162561 - compare_var_to_value VAR_RESULT, 5 - goto_if_eq EventScript_162561 - setflag FLAG_0x2BC + clearflag FLAG_SYS_SPECIAL_WILD_BATTLE + specialvar VAR_RESULT, Special_GetBattleOutcome + compare_var_to_value VAR_RESULT, B_OUTCOME_WON + goto_if eq, EventScript_162558 + compare_var_to_value VAR_RESULT, B_OUTCOME_RAN + goto_if eq, EventScript_162561 + compare_var_to_value VAR_RESULT, B_OUTCOME_PLAYER_TELEPORTED + goto_if eq, EventScript_162561 + setflag FLAG_FOUGHT_MEWTWO release end EventScript_162558:: @ 8162558 - setflag FLAG_0x2BC + setflag FLAG_FOUGHT_MEWTWO goto EventScript_1A922D EventScript_162560:: @ 8162560 diff --git a/data/maps/CeruleanCity/events_bad.inc b/data/maps/CeruleanCity/events_bad.inc deleted file mode 100644 index f523a18d5..000000000 --- a/data/maps/CeruleanCity/events_bad.inc +++ /dev/null @@ -1,43 +0,0 @@ -CeruleanCity_EventObjects: - object_event 1, 60, 0, 31, 0, 12, 0, 3, 8, 17, 0, 0, 0 - object_event 2, 49, 0, 33, 0, 6, 0, 3, 1, 17, 0, 0, 0 - object_event 3, 16, 0, 16, 0, 21, 0, 3, 3, 49, 0, 0, 0 - object_event 4, 30, 0, 9, 0, 23, 0, 3, 2, 17, 0, 0, 0 - object_event 5, 129, 0, 32, 0, 29, 0, 3, 8, 17, 0, 0, 0 - object_event 6, 22, 0, 33, 0, 29, 0, 3, 9, 17, 0, 0, 0 - object_event 7, 18, 0, 34, 0, 22, 0, 3, 8, 17, 0, 0, 0 - object_event 8, 72, 0, 22, 0, 0, 0, 3, 8, 17, 0, 0, 0 - object_event 9, 95, 0, 26, 0, 32, 0, 3, 8, 17, 0, 0, 0 - object_event 10, 65375, 0, 50, 0, 18, 0, 10, 0, 0, 0, 27, 0 - object_event 11, 23, 0, 12, 0, 30, 0, 3, 7, 17, 0, 0, 0 - object_event 12, 41, 0, 1, 0, 13, 0, 3, 8, 17, 0, 0, 0 - -CeruleanCity_MapWarps: - warp_def 10, 11, 0, 1, MAP_CERULEAN_CITY_HOUSE1 - warp_def 30, 11, 0, 1, MAP_CERULEAN_CITY_HOUSE2 - warp_def 15, 17, 0, 1, MAP_CERULEAN_CITY_HOUSE3 - warp_def 22, 19, 0, 1, MAP_CERULEAN_CITY_POKEMONCENTER_1F - warp_def 31, 21, 0, 1, MAP_CERULEAN_CITY_GYM - warp_def 13, 28, 3, 1, MAP_CERULEAN_CITY_BIKESHOP - warp_def 29, 28, 0, 1, MAP_CERULEAN_CITY_MART - warp_def 1, 12, 0, 0, MAP_CERULEAN_CAVE_1F - warp_def 10, 8, 3, 3, MAP_CERULEAN_CITY_HOUSE1 - warp_def 31, 8, 3, 3, MAP_CERULEAN_CITY_HOUSE2 - warp_def 31, 9, 3, 3, MAP_CERULEAN_CITY_HOUSE2 - warp_def 14, 28, 3, 1, MAP_CERULEAN_CITY_BIKESHOP - warp_def 23, 28, 0, 0, MAP_CERULEAN_CITY_HOUSE4 - warp_def 17, 11, 0, 0, MAP_CERULEAN_CITY_HOUSE5 - -CeruleanCity_MapCoordEvents: - coord_event 22, 6, 3, VAR_0x4052, , CeruleanCity_EventScript_16649A - coord_event 23, 6, 3, VAR_0x4052, , CeruleanCity_EventScript_1664A6 - coord_event 24, 6, 3, VAR_0x4052, , CeruleanCity_EventScript_1664B9 - coord_event 33, 5, 3, VAR_0x407D, , CeruleanCity_EventScript_166683 - coord_event 33, 7, 3, VAR_0x407D, , CeruleanCity_EventScript_1666A3 - -CeruleanCity_MapBGEvents: - bg_hidden_item_event 18, 7, 3, ITEM_RARE_CANDY, - -CeruleanCity_MapEvents:: - map_events CeruleanCity_EventObjects, CeruleanCity_MapWarps, CeruleanCity_MapCoordEvents, CeruleanCity_MapBGEvents - diff --git a/data/maps/CeruleanCity/map.json b/data/maps/CeruleanCity/map.json index a387eeb28..f3fcae4ab 100644 --- a/data/maps/CeruleanCity/map.json +++ b/data/maps/CeruleanCity/map.json @@ -35,7 +35,7 @@ ], "object_events": [ { - "graphics_id": "60", + "graphics_id": "MAP_OBJ_GFX_POLICEMAN", "x": 31, "y": 12, "elevation": 3, @@ -48,7 +48,7 @@ "flag": "0" }, { - "graphics_id": "49", + "graphics_id": "MAP_OBJ_GFX_ROCKET_M", "x": 33, "y": 6, "elevation": 3, @@ -58,10 +58,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "CeruleanCity_EventScript_166603", - "flag": "59" + "flag": "FLAG_HIDE_CERULEAN_ROCKET" }, { - "graphics_id": "16", + "graphics_id": "MAP_OBJ_GFX_LITTLE_BOY", "x": 16, "y": 21, "elevation": 3, @@ -74,7 +74,7 @@ "flag": "0" }, { - "graphics_id": "30", + "graphics_id": "MAP_OBJ_GFX_BALDING_MAN", "x": 9, "y": 23, "elevation": 3, @@ -87,7 +87,7 @@ "flag": "0" }, { - "graphics_id": "129", + "graphics_id": "MAP_OBJ_GFX_SLOWBRO", "x": 32, "y": 29, "elevation": 3, @@ -100,7 +100,7 @@ "flag": "0" }, { - "graphics_id": "22", + "graphics_id": "MAP_OBJ_GFX_LASS", "x": 33, "y": 29, "elevation": 3, @@ -113,7 +113,7 @@ "flag": "0" }, { - "graphics_id": "18", + "graphics_id": "MAP_OBJ_GFX_YOUNGSTER", "x": 34, "y": 22, "elevation": 3, @@ -126,7 +126,7 @@ "flag": "0" }, { - "graphics_id": "72", + "graphics_id": "MAP_OBJ_GFX_BLUE", "x": 22, "y": 0, "elevation": 3, @@ -136,10 +136,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "0x0", - "flag": "60" + "flag": "FLAG_HIDE_CERULEAN_RIVAL" }, { - "graphics_id": "95", + "graphics_id": "MAP_OBJ_GFX_CUT_TREE", "x": 26, "y": 32, "elevation": 3, @@ -148,8 +148,8 @@ "movement_range_y": 1, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "CeruleanCity_EventScript_1BDF13", - "flag": "19" + "script": "EventScript_InteractWithCutTreeObject", + "flag": "FLAG_TEMP_13" }, { "graphics_id": "65375", @@ -165,7 +165,7 @@ "flag": "0" }, { - "graphics_id": "23", + "graphics_id": "MAP_OBJ_GFX_WOMAN_1", "x": 12, "y": 30, "elevation": 3, @@ -178,7 +178,7 @@ "flag": "0" }, { - "graphics_id": "41", + "graphics_id": "MAP_OBJ_GFX_COOLTRAINER_M", "x": 1, "y": 13, "elevation": 3, @@ -188,7 +188,7 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "CeruleanCity_EventScript_16672F", - "flag": "92" + "flag": "FLAG_HIDE_CERULEAN_CAVE_GUARD" } ], "warp_events": [ @@ -297,7 +297,7 @@ "x": 22, "y": 6, "elevation": 3, - "var": "VAR_0x4052", + "var": "VAR_MAP_SCENE_CERULEAN_CITY_RIVAL", "var_value": 0, "script": "CeruleanCity_EventScript_16649A" }, @@ -306,7 +306,7 @@ "x": 23, "y": 6, "elevation": 3, - "var": "VAR_0x4052", + "var": "VAR_MAP_SCENE_CERULEAN_CITY_RIVAL", "var_value": 0, "script": "CeruleanCity_EventScript_1664A6" }, @@ -315,7 +315,7 @@ "x": 24, "y": 6, "elevation": 3, - "var": "VAR_0x4052", + "var": "VAR_MAP_SCENE_CERULEAN_CITY_RIVAL", "var_value": 0, "script": "CeruleanCity_EventScript_1664B9" }, @@ -324,7 +324,7 @@ "x": 33, "y": 5, "elevation": 3, - "var": "VAR_0x407D", + "var": "VAR_MAP_SCENE_CERULEAN_CITY_ROCKET", "var_value": 0, "script": "CeruleanCity_EventScript_166683" }, @@ -333,7 +333,7 @@ "x": 33, "y": 7, "elevation": 3, - "var": "VAR_0x407D", + "var": "VAR_MAP_SCENE_CERULEAN_CITY_ROCKET", "var_value": 0, "script": "CeruleanCity_EventScript_1666A3" } @@ -373,8 +373,9 @@ "y": 7, "elevation": 3, "item": "ITEM_RARE_CANDY", - "flag": "49", - "unknown": 1 + "flag": "HIDDEN_ITEM_CERULEAN_CITY_RARE_CANDY", + "quantity": 1, + "underfoot": false }, { "type": "bg_event_type_0", diff --git a/data/maps/CeruleanCity/scripts.inc b/data/maps/CeruleanCity/scripts.inc index 658d2a393..bd660c660 100644 --- a/data/maps/CeruleanCity/scripts.inc +++ b/data/maps/CeruleanCity/scripts.inc @@ -4,8 +4,8 @@ CeruleanCity_MapScripts:: @ 8166471 CeruleanCity_MapScript1_166477:: @ 8166477 setworldmapflag FLAG_WORLD_MAP_CERULEAN_CITY - checkflag FLAG_0x234 - call_if 0, EventScript_166484 + checkflag FLAG_GOT_SS_TICKET + call_if FALSE, EventScript_166484 end EventScript_166484:: @ 8166484 @@ -36,7 +36,7 @@ CeruleanCity_EventScript_1664B9:: @ 81664B9 EventScript_1664CC:: @ 81664CC textcolor 0 - setvar VAR_0x4054, 2 + setvar VAR_MAP_SCENE_ROUTE22, 2 playbgm MUS_RIVAL1, 0 addobject 8 applymovement 8, Movement_1665D3 @@ -44,26 +44,24 @@ EventScript_1664CC:: @ 81664CC msgbox gUnknown_817EAD7 setvar VAR_LAST_TALKED, 8 compare_var_to_value VAR_STARTER_MON, 2 - call_if 1, EventScript_166582 + call_if eq, EventScript_166582 compare_var_to_value VAR_STARTER_MON, 1 - call_if 1, EventScript_16658D + call_if eq, EventScript_16658D compare_var_to_value VAR_STARTER_MON, 0 - call_if 1, EventScript_166598 - setvar VAR_0x8004, 13 - setvar VAR_0x8005, 0 - special SetFlavorTextFlagFromSpecialVars + call_if eq, EventScript_166598 + famechecker FAMECHECKER_BILL, 0 msgbox gUnknown_817EB95 closemessage playbgm MUS_RIVAL2, 0 compare_var_to_value VAR_0x4001, 0 - call_if 1, EventScript_1665A3 + call_if eq, EventScript_1665A3 compare_var_to_value VAR_0x4001, 1 - call_if 1, EventScript_1665A3 + call_if eq, EventScript_1665A3 compare_var_to_value VAR_0x4001, 2 - call_if 1, EventScript_1665B5 + call_if eq, EventScript_1665B5 msgbox gUnknown_817ECD4 - setvar VAR_0x4052, 1 - setflag FLAG_0x29B + setvar VAR_MAP_SCENE_CERULEAN_CITY_RIVAL, 1 + setflag FLAG_GOT_FAME_CHECKER giveitem ITEM_FAME_CHECKER msgbox gUnknown_817ED5D closemessage @@ -75,15 +73,15 @@ EventScript_1664CC:: @ 81664CC end EventScript_166582:: @ 8166582 - trainerbattle 3, 332, 0, Text_17EB71 + trainerbattle TRAINER_BATTLE_SINGLE_NO_INTRO_TEXT, TRAINER_RIVAL_CERULEAN_SQUIRTLE, 0, Text_17EB71 return EventScript_16658D:: @ 816658D - trainerbattle 3, 333, 0, Text_17EB71 + trainerbattle TRAINER_BATTLE_SINGLE_NO_INTRO_TEXT, TRAINER_RIVAL_CERULEAN_BULBASAUR, 0, Text_17EB71 return EventScript_166598:: @ 8166598 - trainerbattle 3, 334, 0, Text_17EB71 + trainerbattle TRAINER_BATTLE_SINGLE_NO_INTRO_TEXT, TRAINER_RIVAL_CERULEAN_CHARMANDER, 0, Text_17EB71 return EventScript_1665A3:: @ 81665A3 @@ -173,14 +171,14 @@ Movement_1665FB:: @ 81665FB CeruleanCity_EventScript_166603:: @ 8166603 lock faceplayer - checktrainerflag FLAG_0x163 - goto_if_eq EventScript_16662E + checktrainerflag TRAINER_TEAM_ROCKET_GRUNT_5 + goto_if eq, EventScript_16662E message Text_17EE0E waitmessage playbgm MUS_ROCKET, 0 waitbuttonpress - trainerbattle 3, 355, 0, Text_17EE70 - setvar VAR_0x407D, 1 + trainerbattle TRAINER_BATTLE_SINGLE_NO_INTRO_TEXT, TRAINER_TEAM_ROCKET_GRUNT_5, 0, Text_17EE70 + setvar VAR_MAP_SCENE_CERULEAN_CITY_ROCKET, 1 goto EventScript_16662E end @@ -188,7 +186,7 @@ EventScript_16662E:: @ 816662E msgbox gUnknown_817EE9C checkitemspace ITEM_TM28, 1 compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_166677 + goto_if eq, EventScript_166677 additem ITEM_TM28, 1 giveitemfanfaremsg gUnknown_817EEBF, ITEM_TM28 msgbox gUnknown_817EEED @@ -196,7 +194,7 @@ EventScript_16662E:: @ 816662E fadescreen 1 removeobject 2 fadescreen 0 - setflag FLAG_0x23F + setflag FLAG_GOT_TM28_FROM_ROCKET release end @@ -230,8 +228,8 @@ EventScript_1666C3:: @ 81666C3 textcolor 0 msgbox Text_17EE0E setvar VAR_LAST_TALKED, 2 - trainerbattle 3, 355, 0, Text_17EE70 - setvar VAR_0x407D, 1 + trainerbattle TRAINER_BATTLE_SINGLE_NO_INTRO_TEXT, TRAINER_TEAM_ROCKET_GRUNT_5, 0, Text_17EE70 + setvar VAR_MAP_SCENE_CERULEAN_CITY_ROCKET, 1 goto EventScript_16662E end @@ -248,8 +246,8 @@ CeruleanCity_EventScript_1666E7:: @ 81666E7 CeruleanCity_EventScript_1666FE:: @ 81666FE lock faceplayer - checkflag FLAG_0x234 - goto_if_eq EventScript_166713 + checkflag FLAG_GOT_SS_TICKET + goto_if TRUE, EventScript_166713 msgbox gUnknown_817F01D release end @@ -286,11 +284,11 @@ CeruleanCity_EventScript_16674F:: @ 816674F random 3 copyvar VAR_0x8008, VAR_RESULT compare_var_to_value VAR_0x8008, 0 - call_if 1, EventScript_1667B0 + call_if eq, EventScript_1667B0 compare_var_to_value VAR_0x8008, 1 - call_if 1, EventScript_1667B6 + call_if eq, EventScript_1667B6 compare_var_to_value VAR_0x8008, 2 - call_if 1, EventScript_1667BC + call_if eq, EventScript_1667BC waitmessage delay 40 playse SE_PIN @@ -298,11 +296,11 @@ CeruleanCity_EventScript_16674F:: @ 816674F waitmovement 0 delay 30 compare_var_to_value VAR_0x8008, 0 - call_if 1, EventScript_1667C2 + call_if eq, EventScript_1667C2 compare_var_to_value VAR_0x8008, 1 - call_if 1, EventScript_1667CB + call_if eq, EventScript_1667CB compare_var_to_value VAR_0x8008, 2 - call_if 1, EventScript_1667D4 + call_if eq, EventScript_1667D4 release end @@ -335,13 +333,13 @@ CeruleanCity_EventScript_1667DD:: @ 81667DD random 4 copyvar VAR_0x8008, VAR_RESULT compare_var_to_value VAR_0x8008, 0 - call_if 1, EventScript_166814 + call_if eq, EventScript_166814 compare_var_to_value VAR_0x8008, 1 - call_if 1, EventScript_16681D + call_if eq, EventScript_16681D compare_var_to_value VAR_0x8008, 2 - call_if 1, EventScript_166826 + call_if eq, EventScript_166826 compare_var_to_value VAR_0x8008, 3 - call_if 1, EventScript_16682F + call_if eq, EventScript_16682F release end @@ -375,9 +373,7 @@ CeruleanCity_EventScript_16684A:: @ 816684A CeruleanCity_EventScript_166853:: @ 8166853 lockall - setvar VAR_0x8004, 3 - setvar VAR_0x8005, 0 - special SetFlavorTextFlagFromSpecialVars + famechecker FAMECHECKER_MISTY, 0 msgbox gUnknown_817F4EF releaseall end diff --git a/data/maps/CeruleanCity_BikeShop/map.json b/data/maps/CeruleanCity_BikeShop/map.json index 0f56bc949..34b8b351a 100644 --- a/data/maps/CeruleanCity_BikeShop/map.json +++ b/data/maps/CeruleanCity_BikeShop/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "25", + "graphics_id": "MAP_OBJ_GFX_MAN", "x": 9, "y": 3, "elevation": 3, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "18", + "graphics_id": "MAP_OBJ_GFX_YOUNGSTER", "x": 9, "y": 7, "elevation": 3, @@ -40,7 +40,7 @@ "flag": "0" }, { - "graphics_id": "28", + "graphics_id": "MAP_OBJ_GFX_WOMAN_2", "x": 5, "y": 5, "elevation": 3, diff --git a/data/maps/CeruleanCity_BikeShop/scripts.inc b/data/maps/CeruleanCity_BikeShop/scripts.inc index df14fb201..40302e25f 100644 --- a/data/maps/CeruleanCity_BikeShop/scripts.inc +++ b/data/maps/CeruleanCity_BikeShop/scripts.inc @@ -4,14 +4,14 @@ CeruleanCity_BikeShop_MapScripts:: @ 816ABBC CeruleanCity_BikeShop_EventScript_16ABBD:: @ 816ABBD lock faceplayer - checkflag FLAG_0x271 - goto_if_eq EventScript_16AC58 - checkflag FLAG_0x241 - goto_if_eq EventScript_16AC22 + checkflag FLAG_GOT_BICYCLE + goto_if TRUE, EventScript_16AC58 + checkflag FLAG_GOT_BIKE_VOUCHER + goto_if TRUE, EventScript_16AC22 showmoneybox 0, 0, 0 message Text_192755 waitmessage - multichoice 11, 0, 13, 0 + multichoice 11, 0, MULTICHOICE_BIKE_SHOP, FALSE switch VAR_RESULT case 0, EventScript_16AC07 case 1, EventScript_16AC15 @@ -34,7 +34,7 @@ EventScript_16AC15:: @ 816AC15 EventScript_16AC22:: @ 816AC22 msgbox gUnknown_81927B2 giveitemfanfaremsg gUnknown_81927E1, ITEM_BICYCLE, 1, MUS_FAN5 - setflag FLAG_0x271 + setflag FLAG_GOT_BICYCLE additem ITEM_BICYCLE, 1 removeitem ITEM_BIKE_VOUCHER, 1 msgbox gUnknown_819280E @@ -58,8 +58,8 @@ CeruleanCity_BikeShop_EventScript_16AC6C:: @ 816AC6C CeruleanCity_BikeShop_EventScript_16AC75:: @ 816AC75 lock faceplayer - checkflag FLAG_0x271 - goto_if_eq EventScript_16AC8A + checkflag FLAG_GOT_BICYCLE + goto_if TRUE, EventScript_16AC8A msgbox gUnknown_8192937 release end diff --git a/data/maps/CeruleanCity_Gym/map.json b/data/maps/CeruleanCity_Gym/map.json index ad41f1e70..6cf69cf3e 100644 --- a/data/maps/CeruleanCity_Gym/map.json +++ b/data/maps/CeruleanCity_Gym/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "43", + "graphics_id": "MAP_OBJ_GFX_SWIMMER_M_WATER", "x": 10, "y": 12, "elevation": 0, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "40", + "graphics_id": "MAP_OBJ_GFX_PICNICKER", "x": 4, "y": 7, "elevation": 3, @@ -40,7 +40,7 @@ "flag": "0" }, { - "graphics_id": "81", + "graphics_id": "MAP_OBJ_GFX_MISTY", "x": 8, "y": 6, "elevation": 3, @@ -53,7 +53,7 @@ "flag": "0" }, { - "graphics_id": "91", + "graphics_id": "MAP_OBJ_GFX_GYM_GUY", "x": 7, "y": 16, "elevation": 3, diff --git a/data/maps/CeruleanCity_Gym/scripts.inc b/data/maps/CeruleanCity_Gym/scripts.inc index d8fe70407..a37d3435b 100644 --- a/data/maps/CeruleanCity_Gym/scripts.inc +++ b/data/maps/CeruleanCity_Gym/scripts.inc @@ -2,25 +2,20 @@ CeruleanCity_Gym_MapScripts:: @ 816AAA0 .byte 0 CeruleanCity_Gym_EventScript_16AAA1:: @ 816AAA1 - setvar VAR_0x8004, 3 - setvar VAR_0x8005, 2 - special UpdatePickStateFromSpecialVar8005 - trainerbattle 1, 415, 0, Text_1921EF, Text_19242D, EventScript_16AAD3 - checkflag FLAG_0x297 - goto_if 0, EventScript_16AAF9 + famechecker FAMECHECKER_MISTY, FCPICKSTATE_COLORED, UpdatePickStateFromSpecialVar8005 + trainerbattle TRAINER_BATTLE_CONTINUE_SCRIPT_NO_MUSIC, TRAINER_LEADER_MISTY, 0, Text_1921EF, Text_19242D, EventScript_16AAD3 + checkflag FLAG_GOT_TM03_FROM_MISTY + goto_if FALSE, EventScript_16AAF9 msgbox gUnknown_81922BF release end EventScript_16AAD3:: @ 816AAD3 - setvar VAR_0x8004, 3 - setvar VAR_0x8005, 1 - special SetFlavorTextFlagFromSpecialVars - setflag FLAG_0x4B1 - setflag FLAG_0x821 + famechecker FAMECHECKER_MISTY, 1 + setflag FLAG_DEFEATED_MISTY + setflag FLAG_BADGE02_GET setrespawn SPAWN_CERULEAN_CITY - setvar VAR_0x8008, 2 - call EventScript_1A6B18 + set_gym_trainers 2 goto EventScript_16AAF9 end @@ -28,10 +23,10 @@ EventScript_16AAF9:: @ 816AAF9 msgbox gUnknown_81922F7 checkitemspace ITEM_TM03, 1 compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_16AB3A + goto_if eq, EventScript_16AB3A additem ITEM_TM03, 1 giveitemfanfaremsg gUnknown_81923F1, ITEM_TM03 - setflag FLAG_0x297 + setflag FLAG_GOT_TM03_FROM_MISTY msgbox gUnknown_81922BF release end @@ -42,23 +37,21 @@ EventScript_16AB3A:: @ 816AB3A end CeruleanCity_Gym_EventScript_16AB44:: @ 816AB44 - trainerbattle 0, 150, 0, Text_192481, Text_1924D0 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_PICNICKER_DIANA, 0, Text_192481, Text_1924D0 msgbox gUnknown_81924E4, 6 end CeruleanCity_Gym_EventScript_16AB5B:: @ 816AB5B - trainerbattle 0, 234, 0, Text_192524, Text_192547 - setvar VAR_0x8004, 3 - setvar VAR_0x8005, 2 - special SetFlavorTextFlagFromSpecialVars + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_SWIMMER_MALE_LUIS, 0, Text_192524, Text_192547 + famechecker FAMECHECKER_MISTY, 2 msgbox gUnknown_8192556, 6 end CeruleanCity_Gym_EventScript_16AB7F:: @ 816AB7F lock faceplayer - checkflag FLAG_0x4B1 - goto_if_eq EventScript_16AB94 + checkflag FLAG_DEFEATED_MISTY + goto_if TRUE, EventScript_16AB94 msgbox gUnknown_81925AC release end @@ -70,8 +63,8 @@ EventScript_16AB94:: @ 816AB94 CeruleanCity_Gym_EventScript_16AB9E:: @ 816AB9E lockall - checkflag FLAG_0x821 - goto_if_eq EventScript_16ABB2 + checkflag FLAG_BADGE02_GET + goto_if TRUE, EventScript_16ABB2 msgbox gUnknown_81926E1 releaseall end diff --git a/data/maps/CeruleanCity_House1/map.json b/data/maps/CeruleanCity_House1/map.json index 51f0db0ca..9326a9234 100644 --- a/data/maps/CeruleanCity_House1/map.json +++ b/data/maps/CeruleanCity_House1/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "61", + "graphics_id": "MAP_OBJ_GFX_GENTLEMAN", "x": 6, "y": 5, "elevation": 3, diff --git a/data/maps/CeruleanCity_House1/scripts.inc b/data/maps/CeruleanCity_House1/scripts.inc index 18bc90fb6..26995d532 100644 --- a/data/maps/CeruleanCity_House1/scripts.inc +++ b/data/maps/CeruleanCity_House1/scripts.inc @@ -8,7 +8,7 @@ CeruleanCity_House1_EventScript_16A7F0:: @ 816A7F0 message Text_191967 waitmessage setvar VAR_0x8004, 0 - special sub_80CB7C4 + special Special_ListMenu waitstate switch VAR_RESULT case 0, EventScript_16A8FB @@ -26,7 +26,7 @@ CeruleanCity_House1_EventScript_16A7F0:: @ 816A7F0 EventScript_16A87D:: @ 816A87D message Text_191967 waitmessage - special sub_80CBC5C + special Special_ReturnToListMenu waitstate switch VAR_RESULT case 0, EventScript_16A8FB diff --git a/data/maps/CeruleanCity_House2/map.json b/data/maps/CeruleanCity_House2/map.json index 6865c93a0..44fcd2b45 100644 --- a/data/maps/CeruleanCity_House2/map.json +++ b/data/maps/CeruleanCity_House2/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "56", + "graphics_id": "MAP_OBJ_GFX_HIKER", "x": 1, "y": 2, "elevation": 3, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "22", + "graphics_id": "MAP_OBJ_GFX_LASS", "x": 7, "y": 6, "elevation": 3, diff --git a/data/maps/CeruleanCity_House2/scripts.inc b/data/maps/CeruleanCity_House2/scripts.inc index 092e7d1a6..bdd52e3b0 100644 --- a/data/maps/CeruleanCity_House2/scripts.inc +++ b/data/maps/CeruleanCity_House2/scripts.inc @@ -4,8 +4,8 @@ CeruleanCity_House2_MapScripts:: @ 816A975 CeruleanCity_House2_EventScript_16A976:: @ 816A976 lock faceplayer - checkflag FLAG_0x23F - goto_if_eq EventScript_16A98B + checkflag FLAG_GOT_TM28_FROM_ROCKET + goto_if TRUE, EventScript_16A98B msgbox gUnknown_8191E13 release end diff --git a/data/maps/CeruleanCity_House3/map.json b/data/maps/CeruleanCity_House3/map.json index 829ae2084..c1ce74bf3 100644 --- a/data/maps/CeruleanCity_House3/map.json +++ b/data/maps/CeruleanCity_House3/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "32", + "graphics_id": "MAP_OBJ_GFX_OLD_MAN_1", "x": 2, "y": 2, "elevation": 3, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "35", + "graphics_id": "MAP_OBJ_GFX_OLD_WOMAN", "x": 7, "y": 5, "elevation": 3, diff --git a/data/maps/CeruleanCity_House3/scripts.inc b/data/maps/CeruleanCity_House3/scripts.inc index 5bcdb0bea..36ce99bdb 100644 --- a/data/maps/CeruleanCity_House3/scripts.inc +++ b/data/maps/CeruleanCity_House3/scripts.inc @@ -10,20 +10,20 @@ CeruleanCity_House3_EventScript_16A9B1:: @ 816A9B1 faceplayer setvar VAR_0x8008, 1 call EventScript_1A8CAD - checkflag FLAG_0x24A - goto_if_eq EventScript_16AA23 + checkflag FLAG_DID_ZYNX_TRADE + goto_if TRUE, EventScript_16AA23 msgbox gUnknown_81A59FE, MSGBOX_YESNO compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_16AA0B + goto_if eq, EventScript_16AA0B call EventScript_1A8CBD compare_var_to_value VAR_0x8004, 6 - goto_if 4, EventScript_16AA0B + goto_if ge, EventScript_16AA0B call EventScript_1A8CC9 compare_var_to_var VAR_RESULT, VAR_0x8009 - goto_if 5, EventScript_16AA15 + goto_if ne, EventScript_16AA15 call EventScript_1A8CD9 msgbox gUnknown_81A5A9D - setflag FLAG_0x24A + setflag FLAG_DID_ZYNX_TRADE release end diff --git a/data/maps/CeruleanCity_House4/map.json b/data/maps/CeruleanCity_House4/map.json index ee56f7d91..13ef69f13 100644 --- a/data/maps/CeruleanCity_House4/map.json +++ b/data/maps/CeruleanCity_House4/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "32", + "graphics_id": "MAP_OBJ_GFX_OLD_MAN_1", "x": 5, "y": 3, "elevation": 3, diff --git a/data/maps/CeruleanCity_House4/scripts.inc b/data/maps/CeruleanCity_House4/scripts.inc index bbc762b3f..afbb35c5f 100644 --- a/data/maps/CeruleanCity_House4/scripts.inc +++ b/data/maps/CeruleanCity_House4/scripts.inc @@ -4,83 +4,83 @@ CeruleanCity_House4_MapScripts:: @ 816ACEE CeruleanCity_House4_EventScript_16ACEF:: @ 816ACEF special sub_8110AB4 compare_var_to_value VAR_RESULT, 2 - goto_if_eq EventScript_1A7AE0 + goto_if eq, EventScript_1A7AE0 special sub_8112364 lock - specialvar VAR_0x8004, sub_8146CE8 + specialvar VAR_0x8004, Special_GetMENewsJisanItemAndState copyvar VAR_0x8008, VAR_RESULT compare_var_to_value VAR_0x8004, 0 - goto_if_eq EventScript_16AD59 + goto_if eq, EventScript_CeruleanCity_House4_NoNews compare_var_to_value VAR_0x8004, 1 - goto_if_eq EventScript_16AD63 + goto_if eq, EventScript_CeruleanCity_House4_News1 compare_var_to_value VAR_0x8004, 2 - goto_if_eq EventScript_16AD89 + goto_if eq, EventScript_CeruleanCity_House4_News2 compare_var_to_value VAR_0x8004, 3 - goto_if_eq EventScript_16ADAF + goto_if eq, EventScript_CeruleanCity_House4_NewsNotSpread compare_var_to_value VAR_0x8004, 4 - goto_if_eq EventScript_16ADC3 + goto_if eq, EventScript_CeruleanCity_House4_NewsSpread1 compare_var_to_value VAR_0x8004, 5 - goto_if_eq EventScript_16ADE9 + goto_if eq, EventScript_CeruleanCity_House4_NewsSpread2 compare_var_to_value VAR_0x8004, 6 - goto_if_eq EventScript_16AE0F + goto_if eq, EventScript_CeruleanCity_House4_NewsDone end -EventScript_16AD59:: @ 816AD59 +EventScript_CeruleanCity_House4_NoNews:: @ 816AD59 msgbox gUnknown_8192AF0 release end -EventScript_16AD63:: @ 816AD63 - call EventScript_16AE23 +EventScript_CeruleanCity_House4_News1:: @ 816AD63 + call EventScript_CeruleanCity_House4_MovementReactionToNews msgbox gUnknown_8192B43 giveitem VAR_0x8008 compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_16AE45 + goto_if eq, EventScript_16AE45 release end -EventScript_16AD89:: @ 816AD89 - call EventScript_16AE23 +EventScript_CeruleanCity_House4_News2:: @ 816AD89 + call EventScript_CeruleanCity_House4_MovementReactionToNews msgbox gUnknown_8192C07 giveitem VAR_0x8008, 4 compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_16AE45 + goto_if eq, EventScript_16AE45 release end -EventScript_16ADAF:: @ 816ADAF +EventScript_CeruleanCity_House4_NewsNotSpread:: @ 816ADAF applymovement 1, Movement_1A75E1 waitmovement 0 msgbox gUnknown_8192CD5 release end -EventScript_16ADC3:: @ 816ADC3 - call EventScript_16AE23 +EventScript_CeruleanCity_House4_NewsSpread1:: @ 816ADC3 + call EventScript_CeruleanCity_House4_MovementReactionToNews msgbox gUnknown_8192D4B giveitem VAR_0x8008 compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_16AE45 + goto_if eq, EventScript_16AE45 release end -EventScript_16ADE9:: @ 816ADE9 - call EventScript_16AE23 +EventScript_CeruleanCity_House4_NewsSpread2:: @ 816ADE9 + call EventScript_CeruleanCity_House4_MovementReactionToNews msgbox gUnknown_8192DE3 giveitem VAR_0x8008, 4 compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_16AE45 + goto_if eq, EventScript_16AE45 release end -EventScript_16AE0F:: @ 816AE0F +EventScript_CeruleanCity_House4_NewsDone:: @ 816AE0F applymovement 1, Movement_1A75E1 waitmovement 0 msgbox gUnknown_8192EC5 release end -EventScript_16AE23:: @ 816AE23 +EventScript_CeruleanCity_House4_MovementReactionToNews:: @ 816AE23 playse SE_PIN applymovement 1, Movement_1A75DB waitmovement 0 diff --git a/data/maps/CeruleanCity_House5/map.json b/data/maps/CeruleanCity_House5/map.json index 489ae791f..9feb1ced4 100644 --- a/data/maps/CeruleanCity_House5/map.json +++ b/data/maps/CeruleanCity_House5/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "33", + "graphics_id": "MAP_OBJ_GFX_OLD_MAN_2", "x": 7, "y": 4, "elevation": 3, diff --git a/data/maps/CeruleanCity_House5/scripts.inc b/data/maps/CeruleanCity_House5/scripts.inc index d7d3e0222..79cd75785 100644 --- a/data/maps/CeruleanCity_House5/scripts.inc +++ b/data/maps/CeruleanCity_House5/scripts.inc @@ -4,18 +4,18 @@ CeruleanCity_House5_MapScripts:: @ 816AE4F CeruleanCity_House5_EventScript_16AE50:: @ 816AE50 lock faceplayer - checkflag FLAG_0x2BB - goto_if_eq EventScript_16AEB7 + checkflag FLAG_GOT_POWDER_JAR + goto_if TRUE, EventScript_16AEB7 msgbox gUnknown_8192F67, MSGBOX_YESNO compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_16AEAD - checkflag FLAG_0x847 - goto_if 0, EventScript_16AEA3 + goto_if eq, EventScript_16AEAD + checkflag FLAG_SYS_GOT_BERRY_POUCH + goto_if FALSE, EventScript_16AEA3 msgbox gUnknown_8193003 - setflag FLAG_0x2BB + setflag FLAG_GOT_POWDER_JAR giveitem ITEM_POWDER_JAR compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_1A6BF9 + goto_if eq, EventScript_1A6BF9 msgbox gUnknown_8193033 release end @@ -40,7 +40,7 @@ EventScript_16AEC8:: @ 816AEC8 message Text_1932F4 waitmessage setvar VAR_0x8004, 5 - special sub_80CB7C4 + special Special_ListMenu waitstate switch VAR_RESULT case 0, EventScript_16AF6C @@ -144,20 +144,20 @@ EventScript_16B048:: @ 816B048 EventScript_16B055:: @ 816B055 msgbox gUnknown_819331E, MSGBOX_YESNO compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_16AEC8 + goto_if eq, EventScript_16AEC8 copyvar VAR_0x8004, VAR_0x8009 specialvar VAR_RESULT, sub_815EEB0 compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_16B0CC + goto_if eq, EventScript_16B0CC giveitem VAR_0x8008 compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_16B0BF + goto_if eq, EventScript_16B0BF copyvar VAR_0x8004, VAR_0x8009 special sub_815EF5C special sub_815F070 msgbox gUnknown_819337A, MSGBOX_YESNO compare_var_to_value VAR_RESULT, 1 - goto_if_eq EventScript_16AEC8 + goto_if eq, EventScript_16AEC8 msgbox gUnknown_81933FB special sub_815F114 release @@ -178,7 +178,7 @@ CeruleanCity_House5_EventScript_16B0DA:: @ 816B0DA lockall special sub_8110AB4 compare_var_to_value VAR_RESULT, 2 - goto_if_eq EventScript_1A7AE0 + goto_if eq, EventScript_1A7AE0 special sub_814EA7C waitstate releaseall diff --git a/data/maps/CeruleanCity_Mart/map.json b/data/maps/CeruleanCity_Mart/map.json index e29ff56dd..182e8ccf6 100644 --- a/data/maps/CeruleanCity_Mart/map.json +++ b/data/maps/CeruleanCity_Mart/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "68", + "graphics_id": "MAP_OBJ_GFX_CLERK", "x": 2, "y": 3, "elevation": 0, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "23", + "graphics_id": "MAP_OBJ_GFX_WOMAN_1", "x": 9, "y": 2, "elevation": 3, @@ -40,7 +40,7 @@ "flag": "0" }, { - "graphics_id": "18", + "graphics_id": "MAP_OBJ_GFX_YOUNGSTER", "x": 1, "y": 7, "elevation": 3, diff --git a/data/maps/CeruleanCity_Mart/scripts.inc b/data/maps/CeruleanCity_Mart/scripts.inc index 6f05c3e80..c99795d35 100644 --- a/data/maps/CeruleanCity_Mart/scripts.inc +++ b/data/maps/CeruleanCity_Mart/scripts.inc @@ -12,7 +12,7 @@ CeruleanCity_Mart_EventScript_16ACA7:: @ 816ACA7 CeruleanCity_Mart_EventScript_16ACB0:: @ 816ACB0 special sub_8110AB4 compare_var_to_value VAR_RESULT, 2 - goto_if_eq EventScript_1A7AE0 + goto_if eq, EventScript_1A7AE0 lock faceplayer message Text_1A6211 diff --git a/data/maps/CeruleanCity_PokemonCenter_1F/map.json b/data/maps/CeruleanCity_PokemonCenter_1F/map.json index f80669fac..85e02720a 100644 --- a/data/maps/CeruleanCity_PokemonCenter_1F/map.json +++ b/data/maps/CeruleanCity_PokemonCenter_1F/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "64", + "graphics_id": "MAP_OBJ_GFX_NURSE", "x": 7, "y": 2, "elevation": 3, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "61", + "graphics_id": "MAP_OBJ_GFX_GENTLEMAN", "x": 12, "y": 5, "elevation": 3, @@ -40,7 +40,7 @@ "flag": "0" }, { - "graphics_id": "26", + "graphics_id": "MAP_OBJ_GFX_ROCKER", "x": 5, "y": 4, "elevation": 3, @@ -53,7 +53,7 @@ "flag": "0" }, { - "graphics_id": "18", + "graphics_id": "MAP_OBJ_GFX_YOUNGSTER", "x": 4, "y": 8, "elevation": 3, @@ -66,7 +66,7 @@ "flag": "0" }, { - "graphics_id": "22", + "graphics_id": "MAP_OBJ_GFX_LASS", "x": 3, "y": 3, "elevation": 3, @@ -89,7 +89,7 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "CeruleanCity_PokemonCenter_1F_EventScript_1ACE68", - "flag": "157" + "flag": "FLAG_HIDE_POSTGAME_GOSSIPERS" }, { "graphics_id": "0", @@ -102,7 +102,7 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "CeruleanCity_PokemonCenter_1F_EventScript_1ACE68", - "flag": "157" + "flag": "FLAG_HIDE_POSTGAME_GOSSIPERS" } ], "warp_events": [ diff --git a/data/maps/CeruleanCity_PokemonCenter_1F/scripts.inc b/data/maps/CeruleanCity_PokemonCenter_1F/scripts.inc index dcace7aee..6a67f0fe1 100644 --- a/data/maps/CeruleanCity_PokemonCenter_1F/scripts.inc +++ b/data/maps/CeruleanCity_PokemonCenter_1F/scripts.inc @@ -25,9 +25,7 @@ CeruleanCity_PokemonCenter_1F_EventScript_16AA4E:: @ 816AA4E CeruleanCity_PokemonCenter_1F_EventScript_16AA57:: @ 816AA57 lock faceplayer - setvar VAR_0x8004, 13 - setvar VAR_0x8005, 1 - special SetFlavorTextFlagFromSpecialVars + famechecker FAMECHECKER_BILL, 1 msgbox gUnknown_8192116 release end diff --git a/data/maps/CeruleanCity_PokemonCenter_2F/map.json b/data/maps/CeruleanCity_PokemonCenter_2F/map.json index 228bfa8a3..a5f191ced 100644 --- a/data/maps/CeruleanCity_PokemonCenter_2F/map.json +++ b/data/maps/CeruleanCity_PokemonCenter_2F/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "65", + "graphics_id": "MAP_OBJ_GFX_CABLE_CLUB_RECEPTIONIST", "x": 6, "y": 2, "elevation": 3, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "65", + "graphics_id": "MAP_OBJ_GFX_CABLE_CLUB_RECEPTIONIST", "x": 2, "y": 2, "elevation": 3, @@ -40,7 +40,7 @@ "flag": "0" }, { - "graphics_id": "65", + "graphics_id": "MAP_OBJ_GFX_CABLE_CLUB_RECEPTIONIST", "x": 10, "y": 2, "elevation": 3, @@ -53,7 +53,7 @@ "flag": "0" }, { - "graphics_id": "69", + "graphics_id": "MAP_OBJ_GFX_MG_DELIVERYMAN", "x": 1, "y": 2, "elevation": 3, @@ -63,7 +63,7 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "CeruleanCity_PokemonCenter_2F_EventScript_1BB1D2", - "flag": "112" + "flag": "FLAG_HIDE_MG_DELIVERYMEN" } ], "warp_events": [ diff --git a/data/maps/CinnabarIsland/map.json b/data/maps/CinnabarIsland/map.json index 5e2726a36..f5ab2fb9f 100644 --- a/data/maps/CinnabarIsland/map.json +++ b/data/maps/CinnabarIsland/map.json @@ -25,7 +25,7 @@ ], "object_events": [ { - "graphics_id": "28", + "graphics_id": "MAP_OBJ_GFX_WOMAN_2", "x": 14, "y": 6, "elevation": 3, @@ -38,7 +38,7 @@ "flag": "0" }, { - "graphics_id": "32", + "graphics_id": "MAP_OBJ_GFX_OLD_MAN_1", "x": 11, "y": 11, "elevation": 3, @@ -51,7 +51,7 @@ "flag": "0" }, { - "graphics_id": "73", + "graphics_id": "MAP_OBJ_GFX_BILL", "x": 20, "y": 7, "elevation": 3, @@ -61,10 +61,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "0x0", - "flag": "98" + "flag": "FLAG_HIDE_CINNABAR_BILL" }, { - "graphics_id": "108", + "graphics_id": "MAP_OBJ_GFX_SEAGALLOP", "x": 23, "y": 7, "elevation": 1, @@ -74,7 +74,7 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "0x0", - "flag": "107" + "flag": "FLAG_HIDE_CINNABAR_SEAGALLOP" } ], "warp_events": [ diff --git a/data/maps/CinnabarIsland/scripts.inc b/data/maps/CinnabarIsland/scripts.inc index 556fde4de..2ebce51b7 100644 --- a/data/maps/CinnabarIsland/scripts.inc +++ b/data/maps/CinnabarIsland/scripts.inc @@ -6,17 +6,17 @@ CinnabarIsland_MapScripts:: @ 8166ED6 CinnabarIsland_MapScript1_166EE1:: @ 8166EE1 setworldmapflag FLAG_WORLD_MAP_CINNABAR_ISLAND call EventScript_166F5E - compare_var_to_value VAR_0x4071, 1 - call_if 1, EventScript_166F24 - compare_var_to_value VAR_0x4071, 3 - call_if 1, EventScript_166F52 compare_var_to_value VAR_MAP_SCENE_CINNABAR_ISLAND, 1 - call_if 1, EventScript_166F0B + call_if eq, EventScript_166F24 + compare_var_to_value VAR_MAP_SCENE_CINNABAR_ISLAND, 3 + call_if eq, EventScript_166F52 + compare_var_to_value VAR_MAP_SCENE_CINNABAR_ISLAND_2, 1 + call_if eq, EventScript_166F0B end EventScript_166F0B:: @ 8166F0B savebgm MUS_ANNAI - setflag FLAG_0x002 + setflag FLAG_TEMP_2 setobjectxyperm 3, 15, 12 setobjectmovementtype 3, 9 setobjectxyperm 4, 30, 12 @@ -25,8 +25,8 @@ EventScript_166F0B:: @ 8166F0B EventScript_166F24:: @ 8166F24 getplayerxy VAR_0x8004, VAR_0x8005 compare_var_to_value VAR_0x8004, 18 - goto_if 4, EventScript_166F4A - setflag FLAG_0x002 + goto_if ge, EventScript_166F4A + setflag FLAG_TEMP_2 setobjectxyperm 3, 18, 12 setobjectmovementtype 3, 7 setobjectxyperm 4, 30, 12 @@ -42,8 +42,8 @@ EventScript_166F52:: @ 8166F52 return EventScript_166F5E:: @ 8166F5E - checkflag FLAG_0x1A8 - goto_if_eq EventScript_166F68 + checkflag FLAG_HIDE_POKEMON_MANSION_B1F_SECRET_KEY + goto_if TRUE, EventScript_166F68 return EventScript_166F68:: @ 8166F68 @@ -51,9 +51,9 @@ EventScript_166F68:: @ 8166F68 return CinnabarIsland_MapScript2_166F6E:: @ 8166F6E - map_script_2 VAR_MAP_SCENE_CINNABAR_ISLAND, 1, EventScript_166F88 - map_script_2 VAR_0x4071, 1, EventScript_166FCD - map_script_2 VAR_0x4071, 3, EventScript_166FA0 + map_script_2 VAR_MAP_SCENE_CINNABAR_ISLAND_2, 1, EventScript_166F88 + map_script_2 VAR_MAP_SCENE_CINNABAR_ISLAND, 1, EventScript_166FCD + map_script_2 VAR_MAP_SCENE_CINNABAR_ISLAND, 3, EventScript_166FA0 .2byte 0 EventScript_166F88:: @ 8166F88 @@ -61,7 +61,7 @@ EventScript_166F88:: @ 8166F88 clearflag FLAG_SPECIAL_FLAG_0x4001 savebgm MUS_DUMMY textcolor 0 - setvar VAR_MAP_SCENE_CINNABAR_ISLAND, 2 + setvar VAR_MAP_SCENE_CINNABAR_ISLAND_2, 2 delay 20 call EventScript_1670E6 releaseall @@ -75,9 +75,9 @@ EventScript_166FA0:: @ 8166FA0 applymovement 3, Movement_166FC6 waitmovement 0 removeobject 3 - setvar VAR_0x4071, 4 - setflag FLAG_0x075 - clearflag FLAG_0x076 + setvar VAR_MAP_SCENE_CINNABAR_ISLAND, 4 + setflag FLAG_HIDE_TWO_ISLAND_GAME_CORNER_LOSTELLE + clearflag FLAG_HIDE_LOSTELLE_IN_HER_HOME releaseall end @@ -93,25 +93,25 @@ Movement_166FC6:: @ 8166FC6 EventScript_166FCD:: @ 8166FCD lockall textcolor 0 - checkflag FLAG_0x002 - call_if 0, EventScript_167032 - checkflag FLAG_0x002 - call_if 1, EventScript_16703D + checkflag FLAG_TEMP_2 + call_if FALSE, EventScript_167032 + checkflag FLAG_TEMP_2 + call_if TRUE, EventScript_16703D playse SE_PIN applymovement 3, Movement_1A75DB waitmovement 0 applymovement 3, Movement_1A75DD waitmovement 0 - checkflag FLAG_0x002 - call_if 0, EventScript_167048 - checkflag FLAG_0x002 - call_if 1, EventScript_167053 + checkflag FLAG_TEMP_2 + call_if FALSE, EventScript_167048 + checkflag FLAG_TEMP_2 + call_if TRUE, EventScript_167053 msgbox gUnknown_8180C90 msgbox gUnknown_8180CAA, MSGBOX_YESNO compare_var_to_value VAR_RESULT, 1 - goto_if_eq EventScript_167068 + goto_if eq, EventScript_167068 compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_167078 + goto_if eq, EventScript_167078 end EventScript_167032:: @ 8167032 @@ -146,13 +146,13 @@ EventScript_167068:: @ 8167068 EventScript_167078:: @ 8167078 msgbox gUnknown_8180DF8 closemessage - checkflag FLAG_0x002 - call_if 0, EventScript_1670A0 - checkflag FLAG_0x002 - call_if 1, EventScript_1670B3 + checkflag FLAG_TEMP_2 + call_if FALSE, EventScript_1670A0 + checkflag FLAG_TEMP_2 + call_if TRUE, EventScript_1670B3 removeobject 3 - setvar VAR_0x4071, 2 - clearflag FLAG_0x0A2 + setvar VAR_MAP_SCENE_CINNABAR_ISLAND, 2 + clearflag FLAG_HIDE_CINNABAR_POKECENTER_BILL releaseall end @@ -201,26 +201,26 @@ Movement_1670E2:: @ 81670E2 step_end EventScript_1670E6:: @ 81670E6 - checkflag FLAG_0x002 - call_if 1, EventScript_167142 + checkflag FLAG_TEMP_2 + call_if TRUE, EventScript_167142 addobject 4 - checkflag FLAG_0x002 - call_if 0, EventScript_167154 - checkflag FLAG_0x002 - call_if 1, EventScript_167166 + checkflag FLAG_TEMP_2 + call_if FALSE, EventScript_167154 + checkflag FLAG_TEMP_2 + call_if TRUE, EventScript_167166 msgbox gUnknown_8180EAD closemessage - checkflag FLAG_0x002 - call_if 0, EventScript_167171 - checkflag FLAG_0x002 - call_if 1, EventScript_167183 - setvar VAR_0x4071, 2 + checkflag FLAG_TEMP_2 + call_if FALSE, EventScript_167171 + checkflag FLAG_TEMP_2 + call_if TRUE, EventScript_167183 + setvar VAR_MAP_SCENE_CINNABAR_ISLAND, 2 removeobject 3 delay 40 - setflag FLAG_0x06B + setflag FLAG_HIDE_CINNABAR_SEAGALLOP setvar VAR_MAP_SCENE_ONE_ISLAND_HARBOR, 1 - setvar VAR_0x8004, 8 - setvar VAR_0x8006, 1 + setvar VAR_0x8004, SEAGALLOP_CINNABAR_ISLAND + setvar VAR_0x8006, SEAGALLOP_ONE_ISLAND goto EventScript_1A90DA end @@ -343,9 +343,7 @@ Movement_1671ED:: @ 81671ED CinnabarIsland_EventScript_1671EF:: @ 81671EF lock faceplayer - setvar VAR_0x8004, 8 - setvar VAR_0x8005, 3 - special SetFlavorTextFlagFromSpecialVars + famechecker FAMECHECKER_BLAINE, 3 msgbox gUnknown_8180B34 release end @@ -364,9 +362,7 @@ CinnabarIsland_EventScript_16721A:: @ 816721A CinnabarIsland_EventScript_167223:: @ 8167223 lockall - setvar VAR_0x8004, 8 - setvar VAR_0x8005, 0 - special SetFlavorTextFlagFromSpecialVars + famechecker FAMECHECKER_BLAINE, 0 msgbox gUnknown_8180C4A releaseall end diff --git a/data/maps/CinnabarIsland_Gym/map.json b/data/maps/CinnabarIsland_Gym/map.json index 83cc3ffc0..f442fb26a 100644 --- a/data/maps/CinnabarIsland_Gym/map.json +++ b/data/maps/CinnabarIsland_Gym/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "52", + "graphics_id": "MAP_OBJ_GFX_SUPER_NERD", "x": 25, "y": 11, "elevation": 3, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "55", + "graphics_id": "MAP_OBJ_GFX_SCIENTIST", "x": 25, "y": 4, "elevation": 3, @@ -40,7 +40,7 @@ "flag": "0" }, { - "graphics_id": "55", + "graphics_id": "MAP_OBJ_GFX_SCIENTIST", "x": 17, "y": 5, "elevation": 3, @@ -53,7 +53,7 @@ "flag": "0" }, { - "graphics_id": "52", + "graphics_id": "MAP_OBJ_GFX_SUPER_NERD", "x": 16, "y": 11, "elevation": 3, @@ -66,7 +66,7 @@ "flag": "0" }, { - "graphics_id": "55", + "graphics_id": "MAP_OBJ_GFX_SCIENTIST", "x": 16, "y": 18, "elevation": 3, @@ -79,7 +79,7 @@ "flag": "0" }, { - "graphics_id": "52", + "graphics_id": "MAP_OBJ_GFX_SUPER_NERD", "x": 4, "y": 19, "elevation": 3, @@ -92,7 +92,7 @@ "flag": "0" }, { - "graphics_id": "55", + "graphics_id": "MAP_OBJ_GFX_SCIENTIST", "x": 4, "y": 11, "elevation": 3, @@ -105,7 +105,7 @@ "flag": "0" }, { - "graphics_id": "86", + "graphics_id": "MAP_OBJ_GFX_BLAINE", "x": 5, "y": 4, "elevation": 3, @@ -118,7 +118,7 @@ "flag": "0" }, { - "graphics_id": "91", + "graphics_id": "MAP_OBJ_GFX_GYM_GUY", "x": 24, "y": 20, "elevation": 3, diff --git a/data/maps/CinnabarIsland_Gym/scripts.inc b/data/maps/CinnabarIsland_Gym/scripts.inc index 20c00f117..9e67b156d 100644 --- a/data/maps/CinnabarIsland_Gym/scripts.inc +++ b/data/maps/CinnabarIsland_Gym/scripts.inc @@ -3,20 +3,20 @@ CinnabarIsland_Gym_MapScripts:: @ 816D94B .byte 0 CinnabarIsland_Gym_MapScript1_16D951:: @ 816D951 - checkflag FLAG_0x4B6 - goto_if_eq EventScript_16D991 - checkflag FLAG_0x265 - call_if 1, EventScript_16D9B0 - checkflag FLAG_0x267 - call_if 1, EventScript_16D9B6 - checkflag FLAG_0x268 - call_if 1, EventScript_16D9BC - checkflag FLAG_0x269 - call_if 1, EventScript_16D9C2 - checkflag FLAG_0x26A - call_if 1, EventScript_16D9C8 - checkflag FLAG_0x26B - call_if 1, EventScript_16D9CE + checkflag FLAG_DEFEATED_BLAINE + goto_if TRUE, EventScript_16D991 + checkflag FLAG_CINNABAR_GYM_QUIZ_1 + call_if TRUE, EventScript_16D9B0 + checkflag FLAG_CINNABAR_GYM_QUIZ_2 + call_if TRUE, EventScript_16D9B6 + checkflag FLAG_CINNABAR_GYM_QUIZ_3 + call_if TRUE, EventScript_16D9BC + checkflag FLAG_CINNABAR_GYM_QUIZ_4 + call_if TRUE, EventScript_16D9C2 + checkflag FLAG_CINNABAR_GYM_QUIZ_5 + call_if TRUE, EventScript_16D9C8 + checkflag FLAG_CINNABAR_GYM_QUIZ_6 + call_if TRUE, EventScript_16D9CE end EventScript_16D991:: @ 816D991 @@ -53,27 +53,22 @@ EventScript_16D9CE:: @ 816D9CE return CinnabarIsland_Gym_EventScript_16D9D4:: @ 816D9D4 - setvar VAR_0x8004, 8 - setvar VAR_0x8005, 2 - special UpdatePickStateFromSpecialVar8005 - trainerbattle 1, 419, 0, Text_199543, Text_1995FA, EventScript_16DA06 - checkflag FLAG_0x24E - goto_if 0, EventScript_16DA34 + famechecker FAMECHECKER_BLAINE, FCPICKSTATE_COLORED, UpdatePickStateFromSpecialVar8005 + trainerbattle TRAINER_BATTLE_CONTINUE_SCRIPT_NO_MUSIC, TRAINER_LEADER_BLAINE, 0, Text_199543, Text_1995FA, EventScript_16DA06 + checkflag FLAG_GOT_TM38_FROM_BLAINE + goto_if FALSE, EventScript_16DA34 msgbox gUnknown_819971D release end EventScript_16DA06:: @ 816DA06 - setvar VAR_0x8004, 8 - setvar VAR_0x8005, 1 - special SetFlavorTextFlagFromSpecialVars - setflag FLAG_0x4B6 - setflag FLAG_UNK826 + famechecker FAMECHECKER_BLAINE, 1 + setflag FLAG_DEFEATED_BLAINE + setflag FLAG_BADGE07_GET setrespawn SPAWN_CINNABAR_ISLAND - setvar VAR_0x4071, 1 - clearflag FLAG_0x062 - setvar VAR_0x8008, 7 - call EventScript_1A6B18 + setvar VAR_MAP_SCENE_CINNABAR_ISLAND, 1 + clearflag FLAG_HIDE_CINNABAR_BILL + set_gym_trainers 7 goto EventScript_16DA34 end @@ -81,10 +76,10 @@ EventScript_16DA34:: @ 816DA34 msgbox gUnknown_819969E checkitemspace ITEM_TM38, 1 compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_16DA75 + goto_if eq, EventScript_16DA75 additem ITEM_TM38, 1 giveitemfanfaremsg gUnknown_81996FF, ITEM_TM38 - setflag FLAG_0x24E + setflag FLAG_GOT_TM38_FROM_BLAINE msgbox gUnknown_8199652 release end @@ -95,18 +90,18 @@ EventScript_16DA75:: @ 816DA75 end CinnabarIsland_Gym_EventScript_16DA7F:: @ 816DA7F - trainerbattle 0, 177, 0, Text_1997A5, Text_1997D6 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_SUPER_NERD_ERIK, 0, Text_1997A5, Text_1997D6 msgbox gUnknown_81997EA, 6 end CinnabarIsland_Gym_EventScript_16DA96:: @ 816DA96 - trainerbattle 2, 178, 0, Text_1998BD, Text_1998ED, EventScript_16DAB1 + trainerbattle TRAINER_BATTLE_CONTINUE_SCRIPT, TRAINER_SUPER_NERD_AVERY, 0, Text_1998BD, Text_1998ED, EventScript_16DAB1 msgbox gUnknown_8199911, 6 end EventScript_16DAB1:: @ 816DAB1 - checkflag FLAG_0x267 - call_if 0, EventScript_16DABC + checkflag FLAG_CINNABAR_GYM_QUIZ_2 + call_if FALSE, EventScript_16DABC release end @@ -115,16 +110,14 @@ EventScript_16DABC:: @ 816DABC return CinnabarIsland_Gym_EventScript_16DAC2:: @ 816DAC2 - trainerbattle 2, 179, 0, Text_1999B7, Text_1999DB, EventScript_16DAEA - setvar VAR_0x8004, 8 - setvar VAR_0x8005, 2 - special SetFlavorTextFlagFromSpecialVars + trainerbattle TRAINER_BATTLE_CONTINUE_SCRIPT, TRAINER_SUPER_NERD_DEREK, 0, Text_1999B7, Text_1999DB, EventScript_16DAEA + famechecker FAMECHECKER_BLAINE, 2 msgbox gUnknown_81999DF, 6 end EventScript_16DAEA:: @ 816DAEA - checkflag FLAG_0x269 - call_if 0, EventScript_16DAF5 + checkflag FLAG_CINNABAR_GYM_QUIZ_4 + call_if FALSE, EventScript_16DAF5 release end @@ -133,13 +126,13 @@ EventScript_16DAF5:: @ 816DAF5 return CinnabarIsland_Gym_EventScript_16DAFB:: @ 816DAFB - trainerbattle 2, 180, 0, Text_199AFC, Text_199B16, EventScript_16DB16 + trainerbattle TRAINER_BATTLE_CONTINUE_SCRIPT, TRAINER_SUPER_NERD_ZAC, 0, Text_199AFC, Text_199B16, EventScript_16DB16 msgbox gUnknown_8199B27, 6 end EventScript_16DB16:: @ 816DB16 - checkflag FLAG_0x26B - call_if 0, EventScript_16DB21 + checkflag FLAG_CINNABAR_GYM_QUIZ_6 + call_if FALSE, EventScript_16DB21 release end @@ -148,13 +141,13 @@ EventScript_16DB21:: @ 816DB21 return CinnabarIsland_Gym_EventScript_16DB27:: @ 816DB27 - trainerbattle 2, 213, 0, Text_19983F, Text_199870, EventScript_16DB42 + trainerbattle TRAINER_BATTLE_CONTINUE_SCRIPT, TRAINER_BURGLAR_QUINN, 0, Text_19983F, Text_199870, EventScript_16DB42 msgbox gUnknown_819987D, 6 end EventScript_16DB42:: @ 816DB42 - checkflag FLAG_0x265 - call_if 0, EventScript_16DB4D + checkflag FLAG_CINNABAR_GYM_QUIZ_1 + call_if FALSE, EventScript_16DB4D release end @@ -163,13 +156,13 @@ EventScript_16DB4D:: @ 816DB4D return CinnabarIsland_Gym_EventScript_16DB53:: @ 816DB53 - trainerbattle 2, 214, 0, Text_199948, Text_199973, EventScript_16DB6E + trainerbattle TRAINER_BATTLE_CONTINUE_SCRIPT, TRAINER_BURGLAR_RAMON, 0, Text_199948, Text_199973, EventScript_16DB6E msgbox gUnknown_8199986, 6 end EventScript_16DB6E:: @ 816DB6E - checkflag FLAG_0x268 - call_if 0, EventScript_16DB79 + checkflag FLAG_CINNABAR_GYM_QUIZ_3 + call_if FALSE, EventScript_16DB79 release end @@ -178,13 +171,13 @@ EventScript_16DB79:: @ 816DB79 return CinnabarIsland_Gym_EventScript_16DB7F:: @ 816DB7F - trainerbattle 2, 215, 0, Text_199A7F, Text_199AB9, EventScript_16DB9A + trainerbattle TRAINER_BATTLE_CONTINUE_SCRIPT, TRAINER_BURGLAR_DUSTY, 0, Text_199A7F, Text_199AB9, EventScript_16DB9A msgbox gUnknown_8199AC9, 6 end EventScript_16DB9A:: @ 816DB9A - checkflag FLAG_0x26A - call_if 0, EventScript_16DBA5 + checkflag FLAG_CINNABAR_GYM_QUIZ_5 + call_if FALSE, EventScript_16DBA5 release end @@ -195,8 +188,8 @@ EventScript_16DBA5:: @ 816DBA5 CinnabarIsland_Gym_EventScript_16DBAB:: @ 816DBAB lock faceplayer - checkflag FLAG_0x4B6 - goto_if_eq EventScript_16DBC0 + checkflag FLAG_DEFEATED_BLAINE + goto_if TRUE, EventScript_16DBC0 msgbox gUnknown_8199B81 release end @@ -208,8 +201,8 @@ EventScript_16DBC0:: @ 816DBC0 CinnabarIsland_Gym_EventScript_16DBCA:: @ 816DBCA lockall - checkflag FLAG_UNK826 - goto_if_eq EventScript_16DBDE + checkflag FLAG_BADGE07_GET + goto_if TRUE, EventScript_16DBDE msgbox gUnknown_8199C29 releaseall end @@ -235,9 +228,9 @@ EventScript_16DC00:: @ 816DC00 msgbox gUnknown_8199C9F msgbox gUnknown_8199D5A, MSGBOX_YESNO compare_var_to_value VAR_RESULT, 1 - goto_if_eq EventScript_16DC43 + goto_if eq, EventScript_16DC43 compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_16DC6A + goto_if eq, EventScript_16DC6A end EventScript_16DC27:: @ 816DC27 @@ -256,8 +249,8 @@ EventScript_16DC34:: @ 816DC34 EventScript_16DC43:: @ 816DC43 call EventScript_16DC27 - checkflag FLAG_0x265 - goto_if_eq EventScript_16DC68 + checkflag FLAG_CINNABAR_GYM_QUIZ_1 + goto_if TRUE, EventScript_16DC68 call EventScript_16DC58 releaseall end @@ -267,7 +260,7 @@ EventScript_16DC58:: @ 816DC58 waitse call EventScript_16E117 special DrawWholeMapView - setflag FLAG_0x265 + setflag FLAG_CINNABAR_GYM_QUIZ_1 return EventScript_16DC68:: @ 816DC68 @@ -276,21 +269,21 @@ EventScript_16DC68:: @ 816DC68 EventScript_16DC6A:: @ 816DC6A call EventScript_16DC34 - checktrainerflag FLAG_0x0D5 - goto_if 0, EventScript_16DC7A + checktrainerflag TRAINER_BURGLAR_QUINN + goto_if lt, EventScript_16DC7A releaseall end EventScript_16DC7A:: @ 816DC7A compare_var_to_value VAR_0x4001, 0 - call_if 1, EventScript_16DCB4 + call_if eq, EventScript_16DCB4 compare_var_to_value VAR_0x4001, 1 - call_if 1, EventScript_16DCC6 + call_if eq, EventScript_16DCC6 textcolor 0 msgbox gUnknown_819983F - trainerbattle 3, 213, 0, Text_199870 - checkflag FLAG_0x265 - goto_if_eq EventScript_16DC68 + trainerbattle TRAINER_BATTLE_SINGLE_NO_INTRO_TEXT, TRAINER_BURGLAR_QUINN, 0, Text_199870 + checkflag FLAG_CINNABAR_GYM_QUIZ_1 + goto_if TRUE, EventScript_16DC68 call EventScript_16DC58 releaseall end @@ -332,15 +325,15 @@ EventScript_16DCF5:: @ 816DCF5 msgbox gUnknown_8199C9F msgbox gUnknown_8199D79, MSGBOX_YESNO compare_var_to_value VAR_RESULT, 1 - goto_if_eq EventScript_16DD41 + goto_if eq, EventScript_16DD41 compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_16DD1C + goto_if eq, EventScript_16DD1C end EventScript_16DD1C:: @ 816DD1C call EventScript_16DC27 - checkflag FLAG_0x267 - goto_if_eq EventScript_16DC68 + checkflag FLAG_CINNABAR_GYM_QUIZ_2 + goto_if TRUE, EventScript_16DC68 call EventScript_16DD31 releaseall end @@ -350,26 +343,26 @@ EventScript_16DD31:: @ 816DD31 waitse call EventScript_16E157 special DrawWholeMapView - setflag FLAG_0x267 + setflag FLAG_CINNABAR_GYM_QUIZ_2 return EventScript_16DD41:: @ 816DD41 call EventScript_16DC34 - checktrainerflag FLAG_0x0B2 - goto_if 0, EventScript_16DD51 + checktrainerflag TRAINER_SUPER_NERD_AVERY + goto_if lt, EventScript_16DD51 releaseall end EventScript_16DD51:: @ 816DD51 compare_var_to_value VAR_0x4001, 0 - call_if 1, EventScript_16DD8B + call_if eq, EventScript_16DD8B compare_var_to_value VAR_0x4001, 1 - call_if 1, EventScript_16DD9D + call_if eq, EventScript_16DD9D textcolor 0 msgbox gUnknown_81998BD - trainerbattle 3, 178, 0, Text_1998ED - checkflag FLAG_0x267 - goto_if_eq EventScript_16DC68 + trainerbattle TRAINER_BATTLE_SINGLE_NO_INTRO_TEXT, TRAINER_SUPER_NERD_AVERY, 0, Text_1998ED + checkflag FLAG_CINNABAR_GYM_QUIZ_2 + goto_if TRUE, EventScript_16DC68 call EventScript_16DD31 releaseall end @@ -420,15 +413,15 @@ EventScript_16DDD3:: @ 816DDD3 msgbox gUnknown_8199C9F msgbox gUnknown_8199DA9, MSGBOX_YESNO compare_var_to_value VAR_RESULT, 1 - goto_if_eq EventScript_16DE1F + goto_if eq, EventScript_16DE1F compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_16DDFA + goto_if eq, EventScript_16DDFA end EventScript_16DDFA:: @ 816DDFA call EventScript_16DC27 - checkflag FLAG_0x268 - goto_if_eq EventScript_16DC68 + checkflag FLAG_CINNABAR_GYM_QUIZ_3 + goto_if TRUE, EventScript_16DC68 call EventScript_16DE0F releaseall end @@ -438,26 +431,26 @@ EventScript_16DE0F:: @ 816DE0F waitse call EventScript_16E197 special DrawWholeMapView - setflag FLAG_0x268 + setflag FLAG_CINNABAR_GYM_QUIZ_3 return EventScript_16DE1F:: @ 816DE1F call EventScript_16DC34 - checktrainerflag FLAG_0x0D6 - goto_if 0, EventScript_16DE2F + checktrainerflag TRAINER_BURGLAR_RAMON + goto_if lt, EventScript_16DE2F releaseall end EventScript_16DE2F:: @ 816DE2F compare_var_to_value VAR_0x4001, 0 - call_if 1, EventScript_16DE69 + call_if eq, EventScript_16DE69 compare_var_to_value VAR_0x4001, 1 - call_if 1, EventScript_16DE7B + call_if eq, EventScript_16DE7B textcolor 0 msgbox gUnknown_8199948 - trainerbattle 3, 214, 0, Text_199973 - checkflag FLAG_0x268 - goto_if_eq EventScript_16DC68 + trainerbattle TRAINER_BATTLE_SINGLE_NO_INTRO_TEXT, TRAINER_BURGLAR_RAMON, 0, Text_199973 + checkflag FLAG_CINNABAR_GYM_QUIZ_3 + goto_if TRUE, EventScript_16DC68 call EventScript_16DE0F releaseall end @@ -499,15 +492,15 @@ EventScript_16DEAA:: @ 816DEAA msgbox gUnknown_8199C9F msgbox gUnknown_8199DC6, MSGBOX_YESNO compare_var_to_value VAR_RESULT, 1 - goto_if_eq EventScript_16DEF6 + goto_if eq, EventScript_16DEF6 compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_16DED1 + goto_if eq, EventScript_16DED1 end EventScript_16DED1:: @ 816DED1 call EventScript_16DC27 - checkflag FLAG_0x269 - goto_if_eq EventScript_16DC68 + checkflag FLAG_CINNABAR_GYM_QUIZ_4 + goto_if TRUE, EventScript_16DC68 call EventScript_16DEE6 releaseall end @@ -517,26 +510,26 @@ EventScript_16DEE6:: @ 816DEE6 waitse call EventScript_16E1D7 special DrawWholeMapView - setflag FLAG_0x269 + setflag FLAG_CINNABAR_GYM_QUIZ_4 return EventScript_16DEF6:: @ 816DEF6 call EventScript_16DC34 - checktrainerflag FLAG_0x0B3 - goto_if 0, EventScript_16DF06 + checktrainerflag TRAINER_SUPER_NERD_DEREK + goto_if lt, EventScript_16DF06 releaseall end EventScript_16DF06:: @ 816DF06 compare_var_to_value VAR_0x4001, 0 - call_if 1, EventScript_16DF40 + call_if eq, EventScript_16DF40 compare_var_to_value VAR_0x4001, 1 - call_if 1, EventScript_16DF52 + call_if eq, EventScript_16DF52 textcolor 0 msgbox gUnknown_81999B7 - trainerbattle 3, 179, 0, Text_1999DB - checkflag FLAG_0x269 - goto_if_eq EventScript_16DC68 + trainerbattle TRAINER_BATTLE_SINGLE_NO_INTRO_TEXT, TRAINER_SUPER_NERD_DEREK, 0, Text_1999DB + checkflag FLAG_CINNABAR_GYM_QUIZ_4 + goto_if TRUE, EventScript_16DC68 call EventScript_16DEE6 releaseall end @@ -578,15 +571,15 @@ EventScript_16DF81:: @ 816DF81 msgbox gUnknown_8199C9F msgbox gUnknown_8199E00, MSGBOX_YESNO compare_var_to_value VAR_RESULT, 1 - goto_if_eq EventScript_16DFA8 + goto_if eq, EventScript_16DFA8 compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_16DFCD + goto_if eq, EventScript_16DFCD end EventScript_16DFA8:: @ 816DFA8 call EventScript_16DC27 - checkflag FLAG_0x26A - goto_if_eq EventScript_16DC68 + checkflag FLAG_CINNABAR_GYM_QUIZ_5 + goto_if TRUE, EventScript_16DC68 call EventScript_16DFBD releaseall end @@ -596,26 +589,26 @@ EventScript_16DFBD:: @ 816DFBD waitse call EventScript_16E1F3 special DrawWholeMapView - setflag FLAG_0x26A + setflag FLAG_CINNABAR_GYM_QUIZ_5 return EventScript_16DFCD:: @ 816DFCD call EventScript_16DC34 - checktrainerflag FLAG_0x0D7 - goto_if 0, EventScript_16DFDD + checktrainerflag TRAINER_BURGLAR_DUSTY + goto_if lt, EventScript_16DFDD releaseall end EventScript_16DFDD:: @ 816DFDD compare_var_to_value VAR_0x4001, 0 - call_if 1, EventScript_16E017 + call_if eq, EventScript_16E017 compare_var_to_value VAR_0x4001, 1 - call_if 1, EventScript_16E029 + call_if eq, EventScript_16E029 textcolor 0 msgbox gUnknown_8199A7F - trainerbattle 3, 215, 0, Text_199AB9 - checkflag FLAG_0x26A - goto_if_eq EventScript_16DC68 + trainerbattle TRAINER_BATTLE_SINGLE_NO_INTRO_TEXT, TRAINER_BURGLAR_DUSTY, 0, Text_199AB9 + checkflag FLAG_CINNABAR_GYM_QUIZ_5 + goto_if TRUE, EventScript_16DC68 call EventScript_16DFBD releaseall end @@ -657,15 +650,15 @@ EventScript_16E058:: @ 816E058 msgbox gUnknown_8199C9F msgbox gUnknown_8199E36, MSGBOX_YESNO compare_var_to_value VAR_RESULT, 1 - goto_if_eq EventScript_16E0A4 + goto_if eq, EventScript_16E0A4 compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_16E07F + goto_if eq, EventScript_16E07F end EventScript_16E07F:: @ 816E07F call EventScript_16DC27 - checkflag FLAG_0x26B - goto_if_eq EventScript_16DC68 + checkflag FLAG_CINNABAR_GYM_QUIZ_6 + goto_if TRUE, EventScript_16DC68 call EventScript_16E094 releaseall end @@ -675,26 +668,26 @@ EventScript_16E094:: @ 816E094 waitse call EventScript_16E233 special DrawWholeMapView - setflag FLAG_0x26B + setflag FLAG_CINNABAR_GYM_QUIZ_6 return EventScript_16E0A4:: @ 816E0A4 call EventScript_16DC34 - checktrainerflag FLAG_0x0B4 - goto_if 0, EventScript_16E0B4 + checktrainerflag TRAINER_SUPER_NERD_ZAC + goto_if lt, EventScript_16E0B4 releaseall end EventScript_16E0B4:: @ 816E0B4 compare_var_to_value VAR_0x4001, 0 - call_if 1, EventScript_16E0EE + call_if eq, EventScript_16E0EE compare_var_to_value VAR_0x4001, 1 - call_if 1, EventScript_16E100 + call_if eq, EventScript_16E100 textcolor 0 msgbox gUnknown_8199AFC - trainerbattle 3, 180, 0, Text_199B16 - checkflag FLAG_0x26B - goto_if_eq EventScript_16DC68 + trainerbattle TRAINER_BATTLE_SINGLE_NO_INTRO_TEXT, TRAINER_SUPER_NERD_ZAC, 0, Text_199B16 + checkflag FLAG_CINNABAR_GYM_QUIZ_6 + goto_if TRUE, EventScript_16DC68 call EventScript_16E094 releaseall end diff --git a/data/maps/CinnabarIsland_Mart/map.json b/data/maps/CinnabarIsland_Mart/map.json index 1d40fc33d..59430b7ed 100644 --- a/data/maps/CinnabarIsland_Mart/map.json +++ b/data/maps/CinnabarIsland_Mart/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "68", + "graphics_id": "MAP_OBJ_GFX_CLERK", "x": 2, "y": 3, "elevation": 0, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "28", + "graphics_id": "MAP_OBJ_GFX_WOMAN_2", "x": 6, "y": 2, "elevation": 3, @@ -40,7 +40,7 @@ "flag": "0" }, { - "graphics_id": "55", + "graphics_id": "MAP_OBJ_GFX_SCIENTIST", "x": 8, "y": 2, "elevation": 3, diff --git a/data/maps/CinnabarIsland_Mart/scripts.inc b/data/maps/CinnabarIsland_Mart/scripts.inc index c82034dd0..85ad79e4e 100644 --- a/data/maps/CinnabarIsland_Mart/scripts.inc +++ b/data/maps/CinnabarIsland_Mart/scripts.inc @@ -12,7 +12,7 @@ CinnabarIsland_Mart_EventScript_16EA19:: @ 816EA19 CinnabarIsland_Mart_EventScript_16EA22:: @ 816EA22 special sub_8110AB4 compare_var_to_value VAR_RESULT, 2 - goto_if_eq EventScript_1A7AE0 + goto_if eq, EventScript_1A7AE0 lock faceplayer message Text_1A6211 diff --git a/data/maps/CinnabarIsland_PokemonCenter_1F/map.json b/data/maps/CinnabarIsland_PokemonCenter_1F/map.json index e14c68123..e45fcd735 100644 --- a/data/maps/CinnabarIsland_PokemonCenter_1F/map.json +++ b/data/maps/CinnabarIsland_PokemonCenter_1F/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "64", + "graphics_id": "MAP_OBJ_GFX_NURSE", "x": 7, "y": 2, "elevation": 3, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "42", + "graphics_id": "MAP_OBJ_GFX_COOLTRAINER_F", "x": 2, "y": 4, "elevation": 3, @@ -40,7 +40,7 @@ "flag": "0" }, { - "graphics_id": "61", + "graphics_id": "MAP_OBJ_GFX_GENTLEMAN", "x": 9, "y": 7, "elevation": 3, @@ -53,7 +53,7 @@ "flag": "0" }, { - "graphics_id": "18", + "graphics_id": "MAP_OBJ_GFX_YOUNGSTER", "x": 14, "y": 6, "elevation": 3, @@ -76,7 +76,7 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "CinnabarIsland_PokemonCenter_1F_EventScript_1AD0B9", - "flag": "157" + "flag": "FLAG_HIDE_POSTGAME_GOSSIPERS" }, { "graphics_id": "0", @@ -89,10 +89,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "CinnabarIsland_PokemonCenter_1F_EventScript_1AD0B9", - "flag": "157" + "flag": "FLAG_HIDE_POSTGAME_GOSSIPERS" }, { - "graphics_id": "73", + "graphics_id": "MAP_OBJ_GFX_BILL", "x": 11, "y": 5, "elevation": 3, @@ -102,7 +102,7 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "CinnabarIsland_PokemonCenter_1F_EventScript_16E90A", - "flag": "162" + "flag": "FLAG_HIDE_CINNABAR_POKECENTER_BILL" } ], "warp_events": [ diff --git a/data/maps/CinnabarIsland_PokemonCenter_1F/scripts.inc b/data/maps/CinnabarIsland_PokemonCenter_1F/scripts.inc index e85ebefc9..640446bf0 100644 --- a/data/maps/CinnabarIsland_PokemonCenter_1F/scripts.inc +++ b/data/maps/CinnabarIsland_PokemonCenter_1F/scripts.inc @@ -31,23 +31,23 @@ CinnabarIsland_PokemonCenter_1F_EventScript_16E90A:: @ 816E90A faceplayer msgbox gUnknown_819A725, MSGBOX_YESNO compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_16E9A5 + goto_if eq, EventScript_16E9A5 msgbox gUnknown_819A785 closemessage playbgm MUS_ANNAI, 1 savebgm MUS_ANNAI setflag FLAG_SPECIAL_FLAG_0x4001 - setflag FLAG_0x0A2 + setflag FLAG_HIDE_CINNABAR_POKECENTER_BILL delay 20 compare_var_to_value VAR_FACING, 1 - call_if 1, EventScript_16E96F + call_if eq, EventScript_16E96F compare_var_to_value VAR_FACING, 4 - call_if 1, EventScript_16E981 + call_if eq, EventScript_16E981 compare_var_to_value VAR_FACING, 3 - call_if 1, EventScript_16E993 + call_if eq, EventScript_16E993 removeobject 7 - setvar VAR_MAP_SCENE_CINNABAR_ISLAND, 1 - clearflag FLAG_0x062 + setvar VAR_MAP_SCENE_CINNABAR_ISLAND_2, 1 + clearflag FLAG_HIDE_CINNABAR_BILL warp MAP_CINNABAR_ISLAND, 255, 14, 11 waitstate release diff --git a/data/maps/CinnabarIsland_PokemonCenter_2F/map.json b/data/maps/CinnabarIsland_PokemonCenter_2F/map.json index 258320b9b..527b4a67d 100644 --- a/data/maps/CinnabarIsland_PokemonCenter_2F/map.json +++ b/data/maps/CinnabarIsland_PokemonCenter_2F/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "65", + "graphics_id": "MAP_OBJ_GFX_CABLE_CLUB_RECEPTIONIST", "x": 6, "y": 2, "elevation": 3, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "65", + "graphics_id": "MAP_OBJ_GFX_CABLE_CLUB_RECEPTIONIST", "x": 2, "y": 2, "elevation": 3, @@ -40,7 +40,7 @@ "flag": "0" }, { - "graphics_id": "65", + "graphics_id": "MAP_OBJ_GFX_CABLE_CLUB_RECEPTIONIST", "x": 10, "y": 2, "elevation": 3, @@ -53,7 +53,7 @@ "flag": "0" }, { - "graphics_id": "69", + "graphics_id": "MAP_OBJ_GFX_MG_DELIVERYMAN", "x": 1, "y": 2, "elevation": 3, @@ -63,7 +63,7 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "CinnabarIsland_PokemonCenter_2F_EventScript_1BB1D2", - "flag": "112" + "flag": "FLAG_HIDE_MG_DELIVERYMEN" } ], "warp_events": [ diff --git a/data/maps/CinnabarIsland_PokemonLab_Entrance/map.json b/data/maps/CinnabarIsland_PokemonLab_Entrance/map.json index 4c0d5d33a..1e35330d9 100644 --- a/data/maps/CinnabarIsland_PokemonLab_Entrance/map.json +++ b/data/maps/CinnabarIsland_PokemonLab_Entrance/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "55", + "graphics_id": "MAP_OBJ_GFX_SCIENTIST", "x": 2, "y": 4, "elevation": 3, diff --git a/data/maps/CinnabarIsland_PokemonLab_Entrance/scripts.inc b/data/maps/CinnabarIsland_PokemonLab_Entrance/scripts.inc index 5da8c3e89..780103629 100644 --- a/data/maps/CinnabarIsland_PokemonLab_Entrance/scripts.inc +++ b/data/maps/CinnabarIsland_PokemonLab_Entrance/scripts.inc @@ -3,12 +3,12 @@ CinnabarIsland_PokemonLab_Entrance_MapScripts:: @ 816E273 .byte 0 CinnabarIsland_PokemonLab_Entrance_MapScript1_16E279:: @ 816E279 - compare_var_to_value VAR_0x406A, 1 - call_if 1, EventScript_16E285 + compare_var_to_value VAR_MAP_SCENE_CINNABAR_ISLAND_POKEMON_LAB_EXPERIMENT_ROOM_REVIVE_STATE, 1 + call_if eq, EventScript_16E285 end EventScript_16E285:: @ 816E285 - setvar VAR_0x406A, 2 + setvar VAR_MAP_SCENE_CINNABAR_ISLAND_POKEMON_LAB_EXPERIMENT_ROOM_REVIVE_STATE, 2 return CinnabarIsland_PokemonLab_Entrance_EventScript_16E28B:: @ 816E28B diff --git a/data/maps/CinnabarIsland_PokemonLab_ExperimentRoom/map.json b/data/maps/CinnabarIsland_PokemonLab_ExperimentRoom/map.json index c0bd22e9d..a942a9ca8 100644 --- a/data/maps/CinnabarIsland_PokemonLab_ExperimentRoom/map.json +++ b/data/maps/CinnabarIsland_PokemonLab_ExperimentRoom/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "19", + "graphics_id": "MAP_OBJ_GFX_BOY", "x": 11, "y": 8, "elevation": 3, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "55", + "graphics_id": "MAP_OBJ_GFX_SCIENTIST", "x": 12, "y": 3, "elevation": 3, diff --git a/data/maps/CinnabarIsland_PokemonLab_ExperimentRoom/scripts.inc b/data/maps/CinnabarIsland_PokemonLab_ExperimentRoom/scripts.inc index 3b415bfab..27fb47f63 100644 --- a/data/maps/CinnabarIsland_PokemonLab_ExperimentRoom/scripts.inc +++ b/data/maps/CinnabarIsland_PokemonLab_ExperimentRoom/scripts.inc @@ -6,20 +6,20 @@ CinnabarIsland_PokemonLab_ExperimentRoom_EventScript_16E401:: @ 816E401 faceplayer setvar VAR_0x8008, 8 call EventScript_1A8CAD - checkflag FLAG_0x276 - goto_if_eq EventScript_16E473 + checkflag FLAG_DID_SEELOR_TRADE + goto_if TRUE, EventScript_16E473 msgbox gUnknown_81A597B, MSGBOX_YESNO compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_16E45B + goto_if eq, EventScript_16E45B call EventScript_1A8CBD compare_var_to_value VAR_0x8004, 6 - goto_if 4, EventScript_16E45B + goto_if ge, EventScript_16E45B call EventScript_1A8CC9 compare_var_to_var VAR_RESULT, VAR_0x8009 - goto_if 5, EventScript_16E465 + goto_if ne, EventScript_16E465 call EventScript_1A8CD9 msgbox gUnknown_81A59DA - setflag FLAG_0x276 + setflag FLAG_DID_SEELOR_TRADE release end @@ -43,48 +43,48 @@ CinnabarIsland_PokemonLab_ExperimentRoom_EventScript_16E47D:: @ 816E47D lock faceplayer setvar VAR_RESULT, 0 - checkflag FLAG_0x2EE - call_if 1, EventScript_16E8A1 + checkflag FLAG_REVIVED_AMBER + call_if TRUE, EventScript_16E8A1 compare_var_to_value VAR_RESULT, 1 - goto_if_eq EventScript_16E897 - compare_var_to_value VAR_0x406A, 2 - goto_if_eq EventScript_16E736 - compare_var_to_value VAR_0x406A, 1 - goto_if_eq EventScript_16E72C + goto_if eq, EventScript_16E897 + compare_var_to_value VAR_MAP_SCENE_CINNABAR_ISLAND_POKEMON_LAB_EXPERIMENT_ROOM_REVIVE_STATE, 2 + goto_if eq, EventScript_16E736 + compare_var_to_value VAR_MAP_SCENE_CINNABAR_ISLAND_POKEMON_LAB_EXPERIMENT_ROOM_REVIVE_STATE, 1 + goto_if eq, EventScript_16E72C call EventScript_16E4EC compare_var_to_value VAR_RESULT, 1 - goto_if_eq EventScript_16E544 + goto_if eq, EventScript_16E544 call EventScript_16E504 compare_var_to_value VAR_RESULT, 1 - goto_if_eq EventScript_16E586 + goto_if eq, EventScript_16E586 call EventScript_16E51C compare_var_to_value VAR_RESULT, 1 - goto_if_eq EventScript_16E5C8 + goto_if eq, EventScript_16E5C8 msgbox gUnknown_819A282 goto EventScript_16E53A end EventScript_16E4EC:: @ 816E4EC - checkflag FLAG_0x273 - goto_if 0, EventScript_16E534 - checkflag FLAG_0x2ED - goto_if_eq EventScript_16E534 + checkflag FLAG_GOT_HELIX_FOSSIL + goto_if FALSE, EventScript_16E534 + checkflag FLAG_REVIVED_HELIX + goto_if TRUE, EventScript_16E534 setvar VAR_RESULT, 1 return EventScript_16E504:: @ 816E504 - checkflag FLAG_0x272 - goto_if 0, EventScript_16E534 - checkflag FLAG_0x2EC - goto_if_eq EventScript_16E534 + checkflag FLAG_GOT_DOME_FOSSIL + goto_if FALSE, EventScript_16E534 + checkflag FLAG_REVIVED_DOME + goto_if TRUE, EventScript_16E534 setvar VAR_RESULT, 1 return EventScript_16E51C:: @ 816E51C - checkflag FLAG_0x25E - goto_if 0, EventScript_16E534 - checkflag FLAG_0x2EE - goto_if_eq EventScript_16E534 + checkflag FLAG_GOT_OLD_AMBER + goto_if FALSE, EventScript_16E534 + checkflag FLAG_REVIVED_AMBER + goto_if TRUE, EventScript_16E534 setvar VAR_RESULT, 1 return @@ -102,8 +102,8 @@ EventScript_16E544:: @ 816E544 waitmessage call EventScript_16E51C compare_var_to_value VAR_RESULT, 1 - goto_if_eq EventScript_16E5FA - multichoice 0, 0, 21, 0 + goto_if eq, EventScript_16E5FA + multichoice 0, 0, MULTICHOICE_HELIX, FALSE switch VAR_RESULT case 0, EventScript_16E668 case 1, EventScript_16E53A @@ -115,8 +115,8 @@ EventScript_16E586:: @ 816E586 waitmessage call EventScript_16E51C compare_var_to_value VAR_RESULT, 1 - goto_if_eq EventScript_16E631 - multichoice 0, 0, 22, 0 + goto_if eq, EventScript_16E631 + multichoice 0, 0, MULTICHOICE_DOME, FALSE switch VAR_RESULT case 0, EventScript_16E6A6 case 1, EventScript_16E53A @@ -126,7 +126,7 @@ EventScript_16E586:: @ 816E586 EventScript_16E5C8:: @ 816E5C8 message Text_19A282 waitmessage - multichoice 0, 0, 23, 0 + multichoice 0, 0, MULTICHOICE_AMBER, FALSE switch VAR_RESULT case 0, EventScript_16E6E4 case 1, EventScript_16E53A @@ -134,7 +134,7 @@ EventScript_16E5C8:: @ 816E5C8 end EventScript_16E5FA:: @ 816E5FA - multichoice 0, 0, 24, 0 + multichoice 0, 0, MULTICHOICE_HELIX_AMBER, FALSE switch VAR_RESULT case 0, EventScript_16E668 case 1, EventScript_16E6E4 @@ -143,7 +143,7 @@ EventScript_16E5FA:: @ 816E5FA end EventScript_16E631:: @ 816E631 - multichoice 0, 0, 25, 0 + multichoice 0, 0, MULTICHOICE_DOME_AMBER, FALSE switch VAR_RESULT case 0, EventScript_16E6A6 case 1, EventScript_16E6E4 @@ -156,13 +156,13 @@ EventScript_16E668:: @ 816E668 getitemname 1, ITEM_HELIX_FOSSIL msgbox gUnknown_819A3D4, MSGBOX_YESNO compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_16E722 + goto_if eq, EventScript_16E722 msgbox gUnknown_819A45D textcolor 0 removeitem ITEM_HELIX_FOSSIL, 1 msgbox gUnknown_819A4AB - setvar VAR_0x406A, 1 - setvar VAR_0x4069, 1 + setvar VAR_MAP_SCENE_CINNABAR_ISLAND_POKEMON_LAB_EXPERIMENT_ROOM_REVIVE_STATE, 1 + setvar VAR_MAP_SCENE_CINNABAR_ISLAND_POKEMON_LAB_EXPERIMENT_ROOM_WHICH_FOSSIL, 1 release end @@ -171,13 +171,13 @@ EventScript_16E6A6:: @ 816E6A6 getitemname 1, ITEM_DOME_FOSSIL msgbox gUnknown_819A3D4, MSGBOX_YESNO compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_16E722 + goto_if eq, EventScript_16E722 msgbox gUnknown_819A45D textcolor 0 removeitem ITEM_DOME_FOSSIL, 1 msgbox gUnknown_819A4AB - setvar VAR_0x406A, 1 - setvar VAR_0x4069, 2 + setvar VAR_MAP_SCENE_CINNABAR_ISLAND_POKEMON_LAB_EXPERIMENT_ROOM_REVIVE_STATE, 1 + setvar VAR_MAP_SCENE_CINNABAR_ISLAND_POKEMON_LAB_EXPERIMENT_ROOM_WHICH_FOSSIL, 2 release end @@ -186,13 +186,13 @@ EventScript_16E6E4:: @ 816E6E4 getitemname 1, ITEM_OLD_AMBER msgbox gUnknown_819A3D4, MSGBOX_YESNO compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_16E722 + goto_if eq, EventScript_16E722 msgbox gUnknown_819A45D textcolor 0 removeitem ITEM_OLD_AMBER, 1 msgbox gUnknown_819A4AB - setvar VAR_0x406A, 1 - setvar VAR_0x4069, 3 + setvar VAR_MAP_SCENE_CINNABAR_ISLAND_POKEMON_LAB_EXPERIMENT_ROOM_REVIVE_STATE, 1 + setvar VAR_MAP_SCENE_CINNABAR_ISLAND_POKEMON_LAB_EXPERIMENT_ROOM_WHICH_FOSSIL, 3 release end @@ -207,54 +207,54 @@ EventScript_16E72C:: @ 816E72C end EventScript_16E736:: @ 816E736 - compare_var_to_value VAR_0x4069, 1 - goto_if_eq EventScript_16E758 - compare_var_to_value VAR_0x4069, 2 - goto_if_eq EventScript_16E79D - compare_var_to_value VAR_0x4069, 3 - goto_if_eq EventScript_16E7E2 + compare_var_to_value VAR_MAP_SCENE_CINNABAR_ISLAND_POKEMON_LAB_EXPERIMENT_ROOM_WHICH_FOSSIL, 1 + goto_if eq, EventScript_16E758 + compare_var_to_value VAR_MAP_SCENE_CINNABAR_ISLAND_POKEMON_LAB_EXPERIMENT_ROOM_WHICH_FOSSIL, 2 + goto_if eq, EventScript_16E79D + compare_var_to_value VAR_MAP_SCENE_CINNABAR_ISLAND_POKEMON_LAB_EXPERIMENT_ROOM_WHICH_FOSSIL, 3 + goto_if eq, EventScript_16E7E2 end EventScript_16E758:: @ 816E758 - setvar VAR_0x4001, 138 + setvar VAR_0x4001, SPECIES_OMANYTE getspeciesname 0, SPECIES_OMANYTE msgbox gUnknown_819A34F givemon SPECIES_OMANYTE, 5, ITEM_NONE, 0, 0, 0 compare_var_to_value VAR_RESULT, 2 - goto_if_eq EventScript_1A927C - setflag FLAG_0x2ED + goto_if eq, EventScript_1A927C + setflag FLAG_REVIVED_HELIX compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_16E827 + goto_if eq, EventScript_16E827 compare_var_to_value VAR_RESULT, 1 - goto_if_eq EventScript_16E85B + goto_if eq, EventScript_16E85B end EventScript_16E79D:: @ 816E79D - setvar VAR_0x4001, 140 + setvar VAR_0x4001, SPECIES_KABUTO getspeciesname 0, SPECIES_KABUTO msgbox gUnknown_819A34F givemon SPECIES_KABUTO, 5, ITEM_NONE, 0, 0, 0 compare_var_to_value VAR_RESULT, 2 - goto_if_eq EventScript_1A927C - setflag FLAG_0x2EC + goto_if eq, EventScript_1A927C + setflag FLAG_REVIVED_DOME compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_16E827 + goto_if eq, EventScript_16E827 compare_var_to_value VAR_RESULT, 1 - goto_if_eq EventScript_16E85B + goto_if eq, EventScript_16E85B end EventScript_16E7E2:: @ 816E7E2 - setvar VAR_0x4001, 142 + setvar VAR_0x4001, SPECIES_AERODACTYL getspeciesname 0, SPECIES_AERODACTYL msgbox gUnknown_819A34F givemon SPECIES_AERODACTYL, 5, ITEM_NONE, 0, 0, 0 compare_var_to_value VAR_RESULT, 2 - goto_if_eq EventScript_1A927C - setflag FLAG_0x2EE + goto_if eq, EventScript_1A927C + setflag FLAG_REVIVED_AMBER compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_16E827 + goto_if eq, EventScript_16E827 compare_var_to_value VAR_RESULT, 1 - goto_if_eq EventScript_16E85B + goto_if eq, EventScript_16E85B end EventScript_16E827:: @ 816E827 @@ -263,10 +263,10 @@ EventScript_16E827:: @ 816E827 message Text_19A39E waitmessage waitfanfare - setvar VAR_0x406A, 0 + setvar VAR_MAP_SCENE_CINNABAR_ISLAND_POKEMON_LAB_EXPERIMENT_ROOM_REVIVE_STATE, 0 msgbox gUnknown_81A56A7, MSGBOX_YESNO compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_16E895 + goto_if eq, EventScript_16E895 call EventScript_1A8C27 call EventScript_1A74EB goto EventScript_16E895 @@ -278,10 +278,10 @@ EventScript_16E85B:: @ 816E85B message Text_19A39E waitmessage waitfanfare - setvar VAR_0x406A, 0 + setvar VAR_MAP_SCENE_CINNABAR_ISLAND_POKEMON_LAB_EXPERIMENT_ROOM_REVIVE_STATE, 0 msgbox gUnknown_81A56A7, MSGBOX_YESNO compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_16E88A + goto_if eq, EventScript_16E88A call EventScript_1A8C33 goto EventScript_16E88A end @@ -301,21 +301,21 @@ EventScript_16E897:: @ 816E897 end EventScript_16E8A1:: @ 816E8A1 - checkflag FLAG_0x273 - goto_if_eq EventScript_16E8B9 - checkflag FLAG_0x272 - goto_if_eq EventScript_16E8C8 + checkflag FLAG_GOT_HELIX_FOSSIL + goto_if TRUE, EventScript_16E8B9 + checkflag FLAG_GOT_DOME_FOSSIL + goto_if TRUE, EventScript_16E8C8 goto EventScript_16E534 end EventScript_16E8B9:: @ 816E8B9 - checkflag FLAG_0x2ED - goto_if 0, EventScript_16E534 + checkflag FLAG_REVIVED_HELIX + goto_if FALSE, EventScript_16E534 setvar VAR_RESULT, 1 return EventScript_16E8C8:: @ 816E8C8 - checkflag FLAG_0x2EC - goto_if 0, EventScript_16E534 + checkflag FLAG_REVIVED_DOME + goto_if FALSE, EventScript_16E534 setvar VAR_RESULT, 1 return diff --git a/data/maps/CinnabarIsland_PokemonLab_Lounge/map.json b/data/maps/CinnabarIsland_PokemonLab_Lounge/map.json index a7af3e0c9..6542e543c 100644 --- a/data/maps/CinnabarIsland_PokemonLab_Lounge/map.json +++ b/data/maps/CinnabarIsland_PokemonLab_Lounge/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "55", + "graphics_id": "MAP_OBJ_GFX_SCIENTIST", "x": 5, "y": 3, "elevation": 3, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "33", + "graphics_id": "MAP_OBJ_GFX_OLD_MAN_2", "x": 4, "y": 6, "elevation": 3, @@ -40,7 +40,7 @@ "flag": "0" }, { - "graphics_id": "28", + "graphics_id": "MAP_OBJ_GFX_WOMAN_2", "x": 10, "y": 5, "elevation": 3, diff --git a/data/maps/CinnabarIsland_PokemonLab_Lounge/scripts.inc b/data/maps/CinnabarIsland_PokemonLab_Lounge/scripts.inc index 651fe0c76..8a7dc8df1 100644 --- a/data/maps/CinnabarIsland_PokemonLab_Lounge/scripts.inc +++ b/data/maps/CinnabarIsland_PokemonLab_Lounge/scripts.inc @@ -10,20 +10,20 @@ CinnabarIsland_PokemonLab_Lounge_EventScript_16E2C2:: @ 816E2C2 faceplayer setvar VAR_0x8008, 6 call EventScript_1A8CAD - checkflag FLAG_0x274 - goto_if_eq EventScript_16E334 + checkflag FLAG_DID_ESPHERE_TRADE + goto_if TRUE, EventScript_16E334 msgbox gUnknown_81A59FE, MSGBOX_YESNO compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_16E31C + goto_if eq, EventScript_16E31C call EventScript_1A8CBD compare_var_to_value VAR_0x8004, 6 - goto_if 4, EventScript_16E31C + goto_if ge, EventScript_16E31C call EventScript_1A8CC9 compare_var_to_var VAR_RESULT, VAR_0x8009 - goto_if 5, EventScript_16E326 + goto_if ne, EventScript_16E326 call EventScript_1A8CD9 msgbox gUnknown_81A5A9D - setflag FLAG_0x274 + setflag FLAG_DID_ESPHERE_TRADE release end @@ -48,30 +48,30 @@ CinnabarIsland_PokemonLab_Lounge_EventScript_16E33E:: @ 816E33E faceplayer setvar VAR_0x8008, 7 copyvar VAR_0x8004, VAR_0x8008 - specialvar VAR_RESULT, sub_8053A9C + specialvar VAR_RESULT, GetInGameTradeSpeciesInfo copyvar VAR_0x8009, VAR_RESULT - checkflag FLAG_0x275 - goto_if_eq EventScript_16E3D4 + checkflag FLAG_DID_TANGENY_TRADE + goto_if TRUE, EventScript_16E3D4 msgbox gUnknown_81A5AD6, MSGBOX_YESNO compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_16E3BC - special sub_80BF8FC + goto_if eq, EventScript_16E3BC + special Special_ChooseMonFromParty waitstate copyvar VAR_0x800A, VAR_0x8004 compare_var_to_value VAR_0x8004, 6 - goto_if 4, EventScript_16E3BC + goto_if ge, EventScript_16E3BC copyvar VAR_0x8005, VAR_0x800A - specialvar VAR_RESULT, sub_8053D2C + specialvar VAR_RESULT, GetTradeSpecies copyvar VAR_0x800B, VAR_RESULT compare_var_to_var VAR_RESULT, VAR_0x8009 - goto_if 5, EventScript_16E3C6 + goto_if ne, EventScript_16E3C6 copyvar VAR_0x8004, VAR_0x8008 copyvar VAR_0x8005, VAR_0x800A - special sub_8053D68 - special sub_8054440 + special CreateInGameTradePokemon + special DoInGameTradeScene waitstate msgbox gUnknown_81A5B4A - setflag FLAG_0x275 + setflag FLAG_DID_TANGENY_TRADE release end diff --git a/data/maps/CinnabarIsland_PokemonLab_ResearchRoom/map.json b/data/maps/CinnabarIsland_PokemonLab_ResearchRoom/map.json index 42fc53a4c..0402b218a 100644 --- a/data/maps/CinnabarIsland_PokemonLab_ResearchRoom/map.json +++ b/data/maps/CinnabarIsland_PokemonLab_ResearchRoom/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "52", + "graphics_id": "MAP_OBJ_GFX_SUPER_NERD", "x": 5, "y": 4, "elevation": 3, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "55", + "graphics_id": "MAP_OBJ_GFX_SCIENTIST", "x": 10, "y": 3, "elevation": 3, diff --git a/data/maps/DiglettsCave_NorthEntrance/map.json b/data/maps/DiglettsCave_NorthEntrance/map.json index 1ee6434d7..ac1360466 100644 --- a/data/maps/DiglettsCave_NorthEntrance/map.json +++ b/data/maps/DiglettsCave_NorthEntrance/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "56", + "graphics_id": "MAP_OBJ_GFX_HIKER", "x": 4, "y": 4, "elevation": 3, diff --git a/data/maps/DiglettsCave_SouthEntrance/map.json b/data/maps/DiglettsCave_SouthEntrance/map.json index c62cc1258..9b1a1ce89 100644 --- a/data/maps/DiglettsCave_SouthEntrance/map.json +++ b/data/maps/DiglettsCave_SouthEntrance/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "32", + "graphics_id": "MAP_OBJ_GFX_OLD_MAN_1", "x": 4, "y": 4, "elevation": 3, diff --git a/data/maps/FiveIsland/map.json b/data/maps/FiveIsland/map.json index 5dd4a4ac4..ecb5fb9d9 100644 --- a/data/maps/FiveIsland/map.json +++ b/data/maps/FiveIsland/map.json @@ -25,7 +25,7 @@ ], "object_events": [ { - "graphics_id": "57", + "graphics_id": "MAP_OBJ_GFX_FISHER", "x": 8, "y": 5, "elevation": 3, @@ -38,7 +38,7 @@ "flag": "0" }, { - "graphics_id": "20", + "graphics_id": "MAP_OBJ_GFX_BUG_CATCHER", "x": 16, "y": 10, "elevation": 3, diff --git a/data/maps/FiveIsland_Harbor/map.json b/data/maps/FiveIsland_Harbor/map.json index 835b1ef31..d1220b637 100644 --- a/data/maps/FiveIsland_Harbor/map.json +++ b/data/maps/FiveIsland_Harbor/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "108", + "graphics_id": "MAP_OBJ_GFX_SEAGALLOP", "x": 8, "y": 9, "elevation": 0, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "62", + "graphics_id": "MAP_OBJ_GFX_SAILOR", "x": 8, "y": 6, "elevation": 3, diff --git a/data/maps/FiveIsland_Harbor/scripts.inc b/data/maps/FiveIsland_Harbor/scripts.inc index f5d12f8a4..9ab26aa3a 100644 --- a/data/maps/FiveIsland_Harbor/scripts.inc +++ b/data/maps/FiveIsland_Harbor/scripts.inc @@ -6,6 +6,6 @@ FiveIsland_Harbor_EventScript_171D43:: @ 8171D43 faceplayer message Text_181726 waitmessage - setvar VAR_0x8004, 5 + setvar VAR_0x8004, SEAGALLOP_FIVE_ISLAND goto EventScript_1A900F end diff --git a/data/maps/FiveIsland_House1/map.json b/data/maps/FiveIsland_House1/map.json index 45ac73f0f..00af7faf1 100644 --- a/data/maps/FiveIsland_House1/map.json +++ b/data/maps/FiveIsland_House1/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "31", + "graphics_id": "MAP_OBJ_GFX_WOMAN_3", "x": 10, "y": 2, "elevation": 3, diff --git a/data/maps/FiveIsland_House2/map.json b/data/maps/FiveIsland_House2/map.json index d9b1ca36e..b7e3229c8 100644 --- a/data/maps/FiveIsland_House2/map.json +++ b/data/maps/FiveIsland_House2/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "32", + "graphics_id": "MAP_OBJ_GFX_OLD_MAN_1", "x": 2, "y": 3, "elevation": 3, diff --git a/data/maps/FiveIsland_LostCave_Room1/map.json b/data/maps/FiveIsland_LostCave_Room1/map.json index 46a9371be..05d20f0d4 100644 --- a/data/maps/FiveIsland_LostCave_Room1/map.json +++ b/data/maps/FiveIsland_LostCave_Room1/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "56", + "graphics_id": "MAP_OBJ_GFX_HIKER", "x": 5, "y": 4, "elevation": 3, diff --git a/data/maps/FiveIsland_LostCave_Room1/scripts.inc b/data/maps/FiveIsland_LostCave_Room1/scripts.inc index 49ab5a14f..62880594c 100644 --- a/data/maps/FiveIsland_LostCave_Room1/scripts.inc +++ b/data/maps/FiveIsland_LostCave_Room1/scripts.inc @@ -2,6 +2,6 @@ FiveIsland_LostCave_Room1_MapScripts:: @ 8164BF6 .byte 0 FiveIsland_LostCave_Room1_EventScript_164BF7:: @ 8164BF7 - trainerbattle 0, 607, 0, Text_17CEF5, Text_17CF42 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_RUIN_MANIAC_LAWSON, 0, Text_17CEF5, Text_17CF42 msgbox gUnknown_817CF54, 6 end diff --git a/data/maps/FiveIsland_LostCave_Room10/map.json b/data/maps/FiveIsland_LostCave_Room10/map.json index af59dbf68..5626f8a64 100644 --- a/data/maps/FiveIsland_LostCave_Room10/map.json +++ b/data/maps/FiveIsland_LostCave_Room10/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "28", + "graphics_id": "MAP_OBJ_GFX_WOMAN_2", "x": 5, "y": 5, "elevation": 3, @@ -24,10 +24,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "0x0", - "flag": "147" + "flag": "FLAG_HIDE_LOST_CAVE_SELPHY" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 5, "y": 2, "elevation": 3, @@ -37,7 +37,7 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "FiveIsland_LostCave_Room10_EventScript_1BEDBB", - "flag": "504" + "flag": "FLAG_HIDE_FIVE_ISLAND_LOST_CAVE_ROOM10_SILK_SCARF" } ], "warp_events": [ diff --git a/data/maps/FiveIsland_LostCave_Room10/scripts.inc b/data/maps/FiveIsland_LostCave_Room10/scripts.inc index cd21dbcbd..b214279d1 100644 --- a/data/maps/FiveIsland_LostCave_Room10/scripts.inc +++ b/data/maps/FiveIsland_LostCave_Room10/scripts.inc @@ -4,8 +4,8 @@ FiveIsland_LostCave_Room10_MapScripts:: @ 8164C2D .byte 0 FiveIsland_LostCave_Room10_MapScript1_164C38:: @ 8164C38 - checktrainerflag FLAG_0x25E - call_if 1, EventScript_164C42 + checktrainerflag TRAINER_LADY_SELPHY + call_if eq, EventScript_164C42 end EventScript_164C42:: @ 8164C42 @@ -27,8 +27,8 @@ EventScript_164C52:: @ 8164C52 msgbox gUnknown_817D062 special sub_8110AB4 compare_var_to_value VAR_RESULT, 2 - goto_if_eq EventScript_164CB6 - trainerbattle 3, 606, 0, Text_17D086 + goto_if eq, EventScript_164CB6 + trainerbattle TRAINER_BATTLE_SINGLE_NO_INTRO_TEXT, TRAINER_LADY_SELPHY, 0, Text_17D086 msgbox gUnknown_817D0B2 closemessage call EventScript_164CA5 @@ -38,14 +38,14 @@ EventScript_164C52:: @ 8164C52 end EventScript_164CA5:: @ 8164CA5 - setflag FLAG_0x093 - clearflag FLAG_0x094 + setflag FLAG_HIDE_LOST_CAVE_SELPHY + clearflag FLAG_HIDE_RESORT_GORGEOUS_SELPHY setvar VAR_MAP_SCENE_FIVE_ISLAND_LOST_CAVE_ROOM10, 1 setvar VAR_MAP_SCENE_FIVE_ISLAND_RESORT_GORGEOUS, 1 return EventScript_164CB6:: @ 8164CB6 - settrainerflag FLAG_0x25E + settrainerflag TRAINER_LADY_SELPHY call EventScript_164CA5 releaseall end diff --git a/data/maps/FiveIsland_LostCave_Room11/map.json b/data/maps/FiveIsland_LostCave_Room11/map.json index 1bb718599..82463cc38 100644 --- a/data/maps/FiveIsland_LostCave_Room11/map.json +++ b/data/maps/FiveIsland_LostCave_Room11/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 5, "y": 5, "elevation": 3, @@ -24,7 +24,7 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "FiveIsland_LostCave_Room11_EventScript_1BEDC8", - "flag": "505" + "flag": "FLAG_HIDE_FIVE_ISLAND_LOST_CAVE_ROOM11_LAX_INCENSE" } ], "warp_events": [ diff --git a/data/maps/FiveIsland_LostCave_Room12/map.json b/data/maps/FiveIsland_LostCave_Room12/map.json index 19a4d07fb..6e3a0ffc7 100644 --- a/data/maps/FiveIsland_LostCave_Room12/map.json +++ b/data/maps/FiveIsland_LostCave_Room12/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 5, "y": 5, "elevation": 3, @@ -24,7 +24,7 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "FiveIsland_LostCave_Room12_EventScript_1BEDD5", - "flag": "506" + "flag": "FLAG_HIDE_FIVE_ISLAND_LOST_CAVE_ROOM12_SEA_INCENSE" } ], "warp_events": [ diff --git a/data/maps/FiveIsland_LostCave_Room13/map.json b/data/maps/FiveIsland_LostCave_Room13/map.json index 12c0a2295..dc558c6b2 100644 --- a/data/maps/FiveIsland_LostCave_Room13/map.json +++ b/data/maps/FiveIsland_LostCave_Room13/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 5, "y": 5, "elevation": 3, @@ -24,7 +24,7 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "FiveIsland_LostCave_Room13_EventScript_1BEDE2", - "flag": "507" + "flag": "FLAG_HIDE_FIVE_ISLAND_LOST_CAVE_ROOM13_MAX_REVIVE" } ], "warp_events": [ diff --git a/data/maps/FiveIsland_LostCave_Room14/map.json b/data/maps/FiveIsland_LostCave_Room14/map.json index 0d5204697..046685c55 100644 --- a/data/maps/FiveIsland_LostCave_Room14/map.json +++ b/data/maps/FiveIsland_LostCave_Room14/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 5, "y": 5, "elevation": 3, @@ -24,7 +24,7 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "FiveIsland_LostCave_Room14_EventScript_1BEDEF", - "flag": "508" + "flag": "FLAG_HIDE_FIVE_ISLAND_LOST_CAVE_ROOM14_RARE_CANDY" } ], "warp_events": [ diff --git a/data/maps/FiveIsland_LostCave_Room4/map.json b/data/maps/FiveIsland_LostCave_Room4/map.json index da9555287..5a6782d59 100644 --- a/data/maps/FiveIsland_LostCave_Room4/map.json +++ b/data/maps/FiveIsland_LostCave_Room4/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "23", + "graphics_id": "MAP_OBJ_GFX_WOMAN_1", "x": 6, "y": 4, "elevation": 3, diff --git a/data/maps/FiveIsland_LostCave_Room4/scripts.inc b/data/maps/FiveIsland_LostCave_Room4/scripts.inc index 68104231a..28913bb80 100644 --- a/data/maps/FiveIsland_LostCave_Room4/scripts.inc +++ b/data/maps/FiveIsland_LostCave_Room4/scripts.inc @@ -2,6 +2,6 @@ FiveIsland_LostCave_Room4_MapScripts:: @ 8164C10 .byte 0 FiveIsland_LostCave_Room4_EventScript_164C11:: @ 8164C11 - trainerbattle 0, 608, 0, Text_17CFC1, Text_17CFFB + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_PSYCHIC_LAURA, 0, Text_17CFC1, Text_17CFFB msgbox gUnknown_817D037, 6 end diff --git a/data/maps/FiveIsland_Meadow/map.json b/data/maps/FiveIsland_Meadow/map.json index 2d374bd56..1ac91ff3c 100644 --- a/data/maps/FiveIsland_Meadow/map.json +++ b/data/maps/FiveIsland_Meadow/map.json @@ -25,7 +25,7 @@ ], "object_events": [ { - "graphics_id": "50", + "graphics_id": "MAP_OBJ_GFX_ROCKET_F", "x": 18, "y": 18, "elevation": 3, @@ -35,10 +35,10 @@ "trainer_type": 1, "trainer_sight_or_berry_tree_id": 1, "script": "FiveIsland_Meadow_EventScript_1689BB", - "flag": "136" + "flag": "FLAG_HIDE_FIVE_ISLAND_ROCKETS" }, { - "graphics_id": "49", + "graphics_id": "MAP_OBJ_GFX_ROCKET_M", "x": 17, "y": 5, "elevation": 3, @@ -48,10 +48,10 @@ "trainer_type": 1, "trainer_sight_or_berry_tree_id": 5, "script": "FiveIsland_Meadow_EventScript_16898D", - "flag": "136" + "flag": "FLAG_HIDE_FIVE_ISLAND_ROCKETS" }, { - "graphics_id": "49", + "graphics_id": "MAP_OBJ_GFX_ROCKET_M", "x": 11, "y": 27, "elevation": 3, @@ -61,10 +61,10 @@ "trainer_type": 1, "trainer_sight_or_berry_tree_id": 3, "script": "FiveIsland_Meadow_EventScript_1689A4", - "flag": "136" + "flag": "FLAG_HIDE_FIVE_ISLAND_ROCKETS" }, { - "graphics_id": "95", + "graphics_id": "MAP_OBJ_GFX_CUT_TREE", "x": 8, "y": 9, "elevation": 3, @@ -73,11 +73,11 @@ "movement_range_y": 1, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "FiveIsland_Meadow_EventScript_1BDF13", - "flag": "18" + "script": "EventScript_InteractWithCutTreeObject", + "flag": "FLAG_TEMP_12" }, { - "graphics_id": "95", + "graphics_id": "MAP_OBJ_GFX_CUT_TREE", "x": 19, "y": 12, "elevation": 3, @@ -86,11 +86,11 @@ "movement_range_y": 1, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "FiveIsland_Meadow_EventScript_1BDF13", - "flag": "19" + "script": "EventScript_InteractWithCutTreeObject", + "flag": "FLAG_TEMP_13" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 12, "y": 11, "elevation": 3, @@ -100,10 +100,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "FiveIsland_Meadow_EventScript_1BEC69", - "flag": "478" + "flag": "FLAG_HIDE_FIVE_ISLAND_MEADOW_MAX_POTION" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 3, "y": 22, "elevation": 3, @@ -113,7 +113,7 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "FiveIsland_Meadow_EventScript_1BEC76", - "flag": "479" + "flag": "FLAG_HIDE_FIVE_ISLAND_MEADOW_PP_UP" } ], "warp_events": [ diff --git a/data/maps/FiveIsland_Meadow/scripts.inc b/data/maps/FiveIsland_Meadow/scripts.inc index 4b3b4d895..51ddd9dd9 100644 --- a/data/maps/FiveIsland_Meadow/scripts.inc +++ b/data/maps/FiveIsland_Meadow/scripts.inc @@ -3,22 +3,22 @@ FiveIsland_Meadow_MapScripts:: @ 8168932 .byte 0 FiveIsland_Meadow_MapScript1_168938:: @ 8168938 - checkflag FLAG_0x2D6 - call_if 1, EventScript_168983 + checkflag FLAG_UNLOCKED_ROCKET_WAREHOUSE + call_if TRUE, EventScript_168983 end FiveIsland_Meadow_EventScript_168942:: @ 8168942 lockall - checkflag FLAG_0x2D6 - goto_if_eq EventScript_168979 - checkflag FLAG_0x2D8 - goto_if_eq EventScript_16895F + checkflag FLAG_UNLOCKED_ROCKET_WAREHOUSE + goto_if TRUE, EventScript_168979 + checkflag FLAG_LEARNED_YES_NAH_CHANSEY + goto_if TRUE, EventScript_16895F msgbox gUnknown_818AB8E releaseall end EventScript_16895F:: @ 816895F - setflag FLAG_0x2D6 + setflag FLAG_UNLOCKED_ROCKET_WAREHOUSE message Text_18ABF4 waitmessage delay 60 @@ -39,16 +39,16 @@ EventScript_168983:: @ 8168983 return FiveIsland_Meadow_EventScript_16898D:: @ 816898D - trainerbattle 0, 567, 0, Text_18AC88, Text_18ACB3 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_TEAM_ROCKET_GRUNT_49, 0, Text_18AC88, Text_18ACB3 msgbox gUnknown_818ACC5, 6 end FiveIsland_Meadow_EventScript_1689A4:: @ 81689A4 - trainerbattle 0, 568, 0, Text_18ACF0, Text_18AD39 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_TEAM_ROCKET_GRUNT_50, 0, Text_18ACF0, Text_18AD39 msgbox gUnknown_818AD59, 6 end FiveIsland_Meadow_EventScript_1689BB:: @ 81689BB - trainerbattle 0, 569, 0, Text_18ADC6, Text_18ADFB + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_TEAM_ROCKET_GRUNT_51, 0, Text_18ADC6, Text_18ADFB msgbox gUnknown_818AE16, 6 end diff --git a/data/maps/FiveIsland_MemorialPillar/map.json b/data/maps/FiveIsland_MemorialPillar/map.json index 0f7ba8199..33ee6f13c 100644 --- a/data/maps/FiveIsland_MemorialPillar/map.json +++ b/data/maps/FiveIsland_MemorialPillar/map.json @@ -20,7 +20,7 @@ ], "object_events": [ { - "graphics_id": "25", + "graphics_id": "MAP_OBJ_GFX_MAN", "x": 8, "y": 44, "elevation": 4, @@ -33,7 +33,7 @@ "flag": "0" }, { - "graphics_id": "26", + "graphics_id": "MAP_OBJ_GFX_ROCKER", "x": 12, "y": 6, "elevation": 3, @@ -46,7 +46,7 @@ "flag": "0" }, { - "graphics_id": "26", + "graphics_id": "MAP_OBJ_GFX_ROCKER", "x": 14, "y": 17, "elevation": 3, @@ -59,7 +59,7 @@ "flag": "0" }, { - "graphics_id": "26", + "graphics_id": "MAP_OBJ_GFX_ROCKER", "x": 17, "y": 31, "elevation": 3, @@ -72,7 +72,7 @@ "flag": "0" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 4, "y": 47, "elevation": 3, @@ -82,7 +82,7 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "FiveIsland_MemorialPillar_EventScript_1BEC83", - "flag": "480" + "flag": "FLAG_HIDE_FIVE_ISLAND_MEMORIAL_PILLAR_METAL_COAT" } ], "warp_events": [], @@ -101,8 +101,9 @@ "y": 52, "elevation": 3, "item": "ITEM_BIG_PEARL", - "flag": "170", - "unknown": 1 + "flag": "HIDDEN_ITEM_FIVE_ISLAND_MEMORIAL_PILLAR_BIG_PEARL", + "quantity": 1, + "underfoot": false }, { "type": "hidden_item", @@ -110,8 +111,9 @@ "y": 7, "elevation": 3, "item": "ITEM_RAZZ_BERRY", - "flag": "171", - "unknown": 1 + "flag": "HIDDEN_ITEM_FIVE_ISLAND_MEMORIAL_PILLAR_RAZZ_BERRY", + "quantity": 1, + "underfoot": false }, { "type": "hidden_item", @@ -119,8 +121,9 @@ "y": 22, "elevation": 3, "item": "ITEM_SITRUS_BERRY", - "flag": "172", - "unknown": 1 + "flag": "HIDDEN_ITEM_FIVE_ISLAND_MEMORIAL_PILLAR_SITRUS_BERRY", + "quantity": 1, + "underfoot": false }, { "type": "hidden_item", @@ -128,8 +131,9 @@ "y": 25, "elevation": 3, "item": "ITEM_BLUK_BERRY", - "flag": "173", - "unknown": 1 + "flag": "HIDDEN_ITEM_FIVE_ISLAND_MEMORIAL_PILLAR_BLUK_BERRY", + "quantity": 1, + "underfoot": false } ] } diff --git a/data/maps/FiveIsland_MemorialPillar/scripts.inc b/data/maps/FiveIsland_MemorialPillar/scripts.inc index 23b3527f7..a47767ca0 100644 --- a/data/maps/FiveIsland_MemorialPillar/scripts.inc +++ b/data/maps/FiveIsland_MemorialPillar/scripts.inc @@ -3,10 +3,10 @@ FiveIsland_MemorialPillar_MapScripts:: @ 81689D2 FiveIsland_MemorialPillar_EventScript_1689D3:: @ 81689D3 lock - checkflag FLAG_0x236 - goto_if_eq EventScript_168A18 - checkflag FLAG_0x2D7 - goto_if_eq EventScript_168A22 + checkflag FLAG_GOT_TM42_AT_MEMORIAL_PILLAR + goto_if TRUE, EventScript_168A18 + checkflag FLAG_NO_ROOM_FOR_TM42_AT_MEMORIAL_PILLAR + goto_if TRUE, EventScript_168A22 msgbox gUnknown_818B02E closemessage applymovement 1, Movement_1A75E1 @@ -28,7 +28,7 @@ EventScript_168A22:: @ 8168A22 msgbox gUnknown_818B282 giveitem ITEM_TM42 compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_168AFE + goto_if eq, EventScript_168AFE call EventScript_168AE8 release end @@ -36,24 +36,24 @@ EventScript_168A22:: @ 8168A22 FiveIsland_MemorialPillar_EventScript_168A48:: @ 8168A48 special sub_8110AB4 compare_var_to_value VAR_RESULT, 2 - goto_if_eq EventScript_1A7AE0 + goto_if eq, EventScript_1A7AE0 special sub_8112364 lockall - checkflag FLAG_0x236 - goto_if_eq EventScript_168B0B - checkflag FLAG_0x2D7 - goto_if_eq EventScript_168B0B + checkflag FLAG_GOT_TM42_AT_MEMORIAL_PILLAR + goto_if TRUE, EventScript_168B0B + checkflag FLAG_NO_ROOM_FOR_TM42_AT_MEMORIAL_PILLAR + goto_if TRUE, EventScript_168B0B msgbox gUnknown_818B095 checkitem ITEM_LEMONADE, 1 compare_var_to_value VAR_RESULT, 1 - goto_if_eq EventScript_168A86 + goto_if eq, EventScript_168A86 releaseall end EventScript_168A86:: @ 8168A86 msgbox gUnknown_818B105, MSGBOX_YESNO compare_var_to_value VAR_RESULT, 1 - goto_if_eq EventScript_168A9B + goto_if eq, EventScript_168A9B releaseall end @@ -70,7 +70,7 @@ EventScript_168A9B:: @ 8168A9B msgbox gUnknown_818B171 giveitem ITEM_TM42 compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_168AFE + goto_if eq, EventScript_168AFE call EventScript_168AE8 releaseall end @@ -79,11 +79,11 @@ EventScript_168AE8:: @ 8168AE8 msgbox gUnknown_818B219 applymovement 1, Movement_1A75E9 waitmovement 0 - setflag FLAG_0x236 + setflag FLAG_GOT_TM42_AT_MEMORIAL_PILLAR return EventScript_168AFE:: @ 8168AFE - setflag FLAG_0x2D7 + setflag FLAG_NO_ROOM_FOR_TM42_AT_MEMORIAL_PILLAR msgbox gUnknown_818B23E releaseall end diff --git a/data/maps/FiveIsland_PokemonCenter_1F/map.json b/data/maps/FiveIsland_PokemonCenter_1F/map.json index af0f12fde..053a14a62 100644 --- a/data/maps/FiveIsland_PokemonCenter_1F/map.json +++ b/data/maps/FiveIsland_PokemonCenter_1F/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "64", + "graphics_id": "MAP_OBJ_GFX_NURSE", "x": 7, "y": 2, "elevation": 3, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "42", + "graphics_id": "MAP_OBJ_GFX_COOLTRAINER_F", "x": 9, "y": 4, "elevation": 3, @@ -40,7 +40,7 @@ "flag": "0" }, { - "graphics_id": "59", + "graphics_id": "MAP_OBJ_GFX_CHEF", "x": 4, "y": 8, "elevation": 3, @@ -63,7 +63,7 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "FiveIsland_PokemonCenter_1F_EventScript_1ACF5F", - "flag": "157" + "flag": "FLAG_HIDE_POSTGAME_GOSSIPERS" }, { "graphics_id": "0", @@ -76,7 +76,7 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "FiveIsland_PokemonCenter_1F_EventScript_1ACF5F", - "flag": "157" + "flag": "FLAG_HIDE_POSTGAME_GOSSIPERS" } ], "warp_events": [ diff --git a/data/maps/FiveIsland_PokemonCenter_2F/map.json b/data/maps/FiveIsland_PokemonCenter_2F/map.json index d1c083cb7..8a64b44fa 100644 --- a/data/maps/FiveIsland_PokemonCenter_2F/map.json +++ b/data/maps/FiveIsland_PokemonCenter_2F/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "65", + "graphics_id": "MAP_OBJ_GFX_CABLE_CLUB_RECEPTIONIST", "x": 6, "y": 2, "elevation": 3, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "65", + "graphics_id": "MAP_OBJ_GFX_CABLE_CLUB_RECEPTIONIST", "x": 2, "y": 2, "elevation": 3, @@ -40,7 +40,7 @@ "flag": "0" }, { - "graphics_id": "65", + "graphics_id": "MAP_OBJ_GFX_CABLE_CLUB_RECEPTIONIST", "x": 10, "y": 2, "elevation": 3, @@ -53,7 +53,7 @@ "flag": "0" }, { - "graphics_id": "69", + "graphics_id": "MAP_OBJ_GFX_MG_DELIVERYMAN", "x": 1, "y": 2, "elevation": 3, @@ -63,7 +63,7 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "FiveIsland_PokemonCenter_2F_EventScript_1BB1D2", - "flag": "112" + "flag": "FLAG_HIDE_MG_DELIVERYMEN" } ], "warp_events": [ diff --git a/data/maps/FiveIsland_ResortGorgeous/map.json b/data/maps/FiveIsland_ResortGorgeous/map.json index b9f0c8179..ba96caa5a 100644 --- a/data/maps/FiveIsland_ResortGorgeous/map.json +++ b/data/maps/FiveIsland_ResortGorgeous/map.json @@ -20,7 +20,7 @@ ], "object_events": [ { - "graphics_id": "22", + "graphics_id": "MAP_OBJ_GFX_LASS", "x": 44, "y": 10, "elevation": 3, @@ -33,7 +33,7 @@ "flag": "0" }, { - "graphics_id": "22", + "graphics_id": "MAP_OBJ_GFX_LASS", "x": 33, "y": 12, "elevation": 3, @@ -46,7 +46,7 @@ "flag": "0" }, { - "graphics_id": "22", + "graphics_id": "MAP_OBJ_GFX_LASS", "x": 12, "y": 10, "elevation": 3, @@ -59,7 +59,7 @@ "flag": "0" }, { - "graphics_id": "28", + "graphics_id": "MAP_OBJ_GFX_WOMAN_2", "x": 23, "y": 9, "elevation": 3, @@ -72,7 +72,7 @@ "flag": "0" }, { - "graphics_id": "28", + "graphics_id": "MAP_OBJ_GFX_WOMAN_2", "x": 33, "y": 8, "elevation": 3, @@ -85,7 +85,7 @@ "flag": "0" }, { - "graphics_id": "18", + "graphics_id": "MAP_OBJ_GFX_YOUNGSTER", "x": 33, "y": 3, "elevation": 3, @@ -98,7 +98,7 @@ "flag": "0" }, { - "graphics_id": "43", + "graphics_id": "MAP_OBJ_GFX_SWIMMER_M_WATER", "x": 56, "y": 7, "elevation": 1, @@ -111,7 +111,7 @@ "flag": "0" }, { - "graphics_id": "28", + "graphics_id": "MAP_OBJ_GFX_WOMAN_2", "x": 39, "y": 9, "elevation": 3, @@ -121,7 +121,7 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "0x0", - "flag": "148" + "flag": "FLAG_HIDE_RESORT_GORGEOUS_SELPHY" } ], "warp_events": [ @@ -148,8 +148,9 @@ "y": 7, "elevation": 3, "item": "ITEM_NEST_BALL", - "flag": "174", - "unknown": 1 + "flag": "HIDDEN_ITEM_FIVE_ISLAND_RESORT_GORGEOUS_NEST_BALL", + "quantity": 1, + "underfoot": false }, { "type": "hidden_item", @@ -157,8 +158,9 @@ "y": 11, "elevation": 3, "item": "ITEM_STARDUST", - "flag": "175", - "unknown": 1 + "flag": "HIDDEN_ITEM_FIVE_ISLAND_RESORT_GORGEOUS_STARDUST", + "quantity": 1, + "underfoot": false }, { "type": "hidden_item", @@ -166,8 +168,9 @@ "y": 12, "elevation": 3, "item": "ITEM_STAR_PIECE", - "flag": "176", - "unknown": 1 + "flag": "HIDDEN_ITEM_FIVE_ISLAND_RESORT_GORGEOUS_STAR_PIECE", + "quantity": 1, + "underfoot": false }, { "type": "hidden_item", @@ -175,8 +178,9 @@ "y": 5, "elevation": 3, "item": "ITEM_STARDUST", - "flag": "177", - "unknown": 1 + "flag": "HIDDEN_ITEM_FIVE_ISLAND_RESORT_GORGEOUS_STARDUST_2", + "quantity": 1, + "underfoot": false }, { "type": "bg_event_type_0", diff --git a/data/maps/FiveIsland_ResortGorgeous/scripts.inc b/data/maps/FiveIsland_ResortGorgeous/scripts.inc index a37695954..a4d49de1b 100644 --- a/data/maps/FiveIsland_ResortGorgeous/scripts.inc +++ b/data/maps/FiveIsland_ResortGorgeous/scripts.inc @@ -29,7 +29,7 @@ EventScript_168808:: @ 8168808 closedoor 39, 8 waitdooranim removeobject 8 - clearflag FLAG_0x095 + clearflag FLAG_HIDE_RESORT_GORGEOUS_INSIDE_SELPHY setvar VAR_MAP_SCENE_FIVE_ISLAND_RESORT_GORGEOUS, 2 releaseall end diff --git a/data/maps/FiveIsland_ResortGorgeous_House/map.json b/data/maps/FiveIsland_ResortGorgeous_House/map.json index 60c8196d3..cb950d16f 100644 --- a/data/maps/FiveIsland_ResortGorgeous_House/map.json +++ b/data/maps/FiveIsland_ResortGorgeous_House/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "28", + "graphics_id": "MAP_OBJ_GFX_WOMAN_2", "x": 4, "y": 4, "elevation": 3, @@ -24,10 +24,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "FiveIsland_ResortGorgeous_House_EventScript_171EBE", - "flag": "149" + "flag": "FLAG_HIDE_RESORT_GORGEOUS_INSIDE_SELPHY" }, { - "graphics_id": "61", + "graphics_id": "MAP_OBJ_GFX_GENTLEMAN", "x": 6, "y": 2, "elevation": 3, @@ -37,7 +37,7 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "FiveIsland_ResortGorgeous_House_EventScript_172062", - "flag": "150" + "flag": "FLAG_HIDE_SELPHYS_BUTLER" } ], "warp_events": [ diff --git a/data/maps/FiveIsland_ResortGorgeous_House/scripts.inc b/data/maps/FiveIsland_ResortGorgeous_House/scripts.inc index a4dc96f91..1d1610ace 100644 --- a/data/maps/FiveIsland_ResortGorgeous_House/scripts.inc +++ b/data/maps/FiveIsland_ResortGorgeous_House/scripts.inc @@ -4,22 +4,22 @@ FiveIsland_ResortGorgeous_House_MapScripts:: @ 8171EBD FiveIsland_ResortGorgeous_House_EventScript_171EBE:: @ 8171EBE special sub_8110AB4 compare_var_to_value VAR_RESULT, 2 - goto_if_eq EventScript_1A7AE0 + goto_if eq, EventScript_1A7AE0 special sub_8112364 lock faceplayer - checkflag FLAG_0x002 - goto_if_eq EventScript_172043 - compare_var_to_value VAR_STORAGE_UNKNOWN, 65535 - goto_if_eq EventScript_171F0B - compare_var_to_value VAR_STORAGE_UNKNOWN, 0 - goto_if 5, EventScript_171F19 + checkflag FLAG_TEMP_2 + goto_if TRUE, EventScript_172043 + compare_var_to_value VAR_RESORT_GORGEOUS_REQUESTED_MON, 0xFFFF + goto_if eq, EventScript_171F0B + compare_var_to_value VAR_RESORT_GORGEOUS_REQUESTED_MON, SPECIES_NONE + goto_if ne, EventScript_171F19 msgbox gUnknown_81A42A0 goto EventScript_171EFE end EventScript_171EFE:: @ 8171EFE - special sub_80CB0A8 + special Special_SampleResortGorgeousMonAndReward msgbox gUnknown_81A4315 release end @@ -30,15 +30,15 @@ EventScript_171F0B:: @ 8171F0B end EventScript_171F19:: @ 8171F19 - copyvar VAR_0x8004, VAR_STORAGE_UNKNOWN - specialvar VAR_RESULT, sub_80CC48C + copyvar VAR_0x8004, VAR_RESORT_GORGEOUS_REQUESTED_MON + specialvar VAR_RESULT, Special_PlayerPartyContainsSpecies compare_var_to_value VAR_RESULT, 1 - goto_if_eq EventScript_171F34 + goto_if eq, EventScript_171F34 goto EventScript_171EFE end EventScript_171F34:: @ 8171F34 - special sub_80CB0A8 + special Special_SampleResortGorgeousMonAndReward msgbox gUnknown_81A43F7 addobject 2 applymovement 2, Movement_172060 @@ -53,20 +53,20 @@ EventScript_171F34:: @ 8171F34 msgbox gUnknown_81A4566 closemessage compare_var_to_value VAR_FACING, 2 - call_if 1, EventScript_171FCD + call_if eq, EventScript_171FCD compare_var_to_value VAR_FACING, 1 - call_if 1, EventScript_171FE9 + call_if eq, EventScript_171FE9 compare_var_to_value VAR_FACING, 4 - call_if 1, EventScript_171FFE + call_if eq, EventScript_171FFE compare_var_to_value VAR_FACING, 3 - call_if 1, EventScript_17201A + call_if eq, EventScript_17201A moveobjectoffscreen 2 msgbox gUnknown_81A458E - giveitem VAR_0x403B + giveitem VAR_RESORT_GORGEOUS_REWARD compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_172025 - setflag FLAG_0x002 - setvar VAR_STORAGE_UNKNOWN, 0 + goto_if eq, EventScript_172025 + setflag FLAG_TEMP_2 + setvar VAR_RESORT_GORGEOUS_REQUESTED_MON, 0 release end @@ -103,8 +103,8 @@ EventScript_172025:: @ 8172025 msgbox gUnknown_81A45E8 textcolor 1 msgbox gUnknown_81A461B - setflag FLAG_0x002 - setvar VAR_STORAGE_UNKNOWN, 0 + setflag FLAG_TEMP_2 + setvar VAR_RESORT_GORGEOUS_REQUESTED_MON, 0 release end diff --git a/data/maps/FiveIsland_RocketWarehouse/map.json b/data/maps/FiveIsland_RocketWarehouse/map.json index bf53c4597..7ac00f1cc 100644 --- a/data/maps/FiveIsland_RocketWarehouse/map.json +++ b/data/maps/FiveIsland_RocketWarehouse/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "49", + "graphics_id": "MAP_OBJ_GFX_ROCKET_M", "x": 15, "y": 11, "elevation": 3, @@ -24,10 +24,10 @@ "trainer_type": 1, "trainer_sight_or_berry_tree_id": 1, "script": "FiveIsland_RocketWarehouse_EventScript_163FE6", - "flag": "136" + "flag": "FLAG_HIDE_FIVE_ISLAND_ROCKETS" }, { - "graphics_id": "49", + "graphics_id": "MAP_OBJ_GFX_ROCKET_M", "x": 17, "y": 15, "elevation": 3, @@ -37,10 +37,10 @@ "trainer_type": 1, "trainer_sight_or_berry_tree_id": 1, "script": "FiveIsland_RocketWarehouse_EventScript_163FFD", - "flag": "136" + "flag": "FLAG_HIDE_FIVE_ISLAND_ROCKETS" }, { - "graphics_id": "50", + "graphics_id": "MAP_OBJ_GFX_ROCKET_F", "x": 27, "y": 16, "elevation": 3, @@ -50,10 +50,10 @@ "trainer_type": 1, "trainer_sight_or_berry_tree_id": 3, "script": "FiveIsland_RocketWarehouse_EventScript_164087", - "flag": "136" + "flag": "FLAG_HIDE_FIVE_ISLAND_ROCKETS" }, { - "graphics_id": "49", + "graphics_id": "MAP_OBJ_GFX_ROCKET_M", "x": 25, "y": 11, "elevation": 3, @@ -63,10 +63,10 @@ "trainer_type": 1, "trainer_sight_or_berry_tree_id": 3, "script": "FiveIsland_RocketWarehouse_EventScript_164014", - "flag": "136" + "flag": "FLAG_HIDE_FIVE_ISLAND_ROCKETS" }, { - "graphics_id": "50", + "graphics_id": "MAP_OBJ_GFX_ROCKET_F", "x": 6, "y": 6, "elevation": 3, @@ -76,10 +76,10 @@ "trainer_type": 1, "trainer_sight_or_berry_tree_id": 3, "script": "FiveIsland_RocketWarehouse_EventScript_164070", - "flag": "136" + "flag": "FLAG_HIDE_FIVE_ISLAND_ROCKETS" }, { - "graphics_id": "55", + "graphics_id": "MAP_OBJ_GFX_SCIENTIST", "x": 27, "y": 4, "elevation": 3, @@ -92,7 +92,7 @@ "flag": "0" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 8, "y": 25, "elevation": 3, @@ -102,10 +102,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "FiveIsland_RocketWarehouse_EventScript_1BED87", - "flag": "500" + "flag": "FLAG_HIDE_FIVE_ISLAND_ROCKET_WAREHOUSE_BIG_PEARL" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 17, "y": 3, "elevation": 0, @@ -115,10 +115,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "FiveIsland_RocketWarehouse_EventScript_1BED94", - "flag": "501" + "flag": "FLAG_HIDE_FIVE_ISLAND_ROCKET_WAREHOUSE_TM36" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 1, "y": 16, "elevation": 3, @@ -128,10 +128,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "FiveIsland_RocketWarehouse_EventScript_1BEDA1", - "flag": "502" + "flag": "FLAG_HIDE_FIVE_ISLAND_ROCKET_WAREHOUSE_PEARL" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 4, "y": 5, "elevation": 3, @@ -141,7 +141,7 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "FiveIsland_RocketWarehouse_EventScript_1BEDAE", - "flag": "503" + "flag": "FLAG_HIDE_FIVE_ISLAND_ROCKET_WAREHOUSE_UP_GRADE" } ], "warp_events": [ @@ -159,7 +159,7 @@ "x": 22, "y": 11, "elevation": 3, - "var": "VAR_0x4088", + "var": "VAR_MAP_SCENE_ROCKET_WAREHOUSE", "var_value": 0, "script": "FiveIsland_RocketWarehouse_EventScript_163F81" }, @@ -168,7 +168,7 @@ "x": 23, "y": 11, "elevation": 3, - "var": "VAR_0x4088", + "var": "VAR_MAP_SCENE_ROCKET_WAREHOUSE", "var_value": 0, "script": "FiveIsland_RocketWarehouse_EventScript_163F81" }, @@ -177,7 +177,7 @@ "x": 24, "y": 11, "elevation": 3, - "var": "VAR_0x4088", + "var": "VAR_MAP_SCENE_ROCKET_WAREHOUSE", "var_value": 0, "script": "FiveIsland_RocketWarehouse_EventScript_163F81" } @@ -203,8 +203,9 @@ "y": 2, "elevation": 0, "item": "ITEM_NEST_BALL", - "flag": "68", - "unknown": 1 + "flag": "HIDDEN_ITEM_FIVE_ISLAND_ROCKET_WAREHOUSE_NEST_BALL", + "quantity": 1, + "underfoot": false }, { "type": "hidden_item", @@ -212,8 +213,9 @@ "y": 16, "elevation": 0, "item": "ITEM_NET_BALL", - "flag": "69", - "unknown": 1 + "flag": "HIDDEN_ITEM_FIVE_ISLAND_ROCKET_WAREHOUSE_NET_BALL", + "quantity": 1, + "underfoot": false }, { "type": "bg_event_type_0", diff --git a/data/maps/FiveIsland_RocketWarehouse/scripts.inc b/data/maps/FiveIsland_RocketWarehouse/scripts.inc index 490afe501..e6fb90088 100644 --- a/data/maps/FiveIsland_RocketWarehouse/scripts.inc +++ b/data/maps/FiveIsland_RocketWarehouse/scripts.inc @@ -8,8 +8,8 @@ FiveIsland_RocketWarehouse_MapScript2_163F39:: @ 8163F39 end FiveIsland_RocketWarehouse_MapScript1_163F3D:: @ 8163F3D - checktrainerflag FLAG_0x21F - call_if 1, EventScript_163F47 + checktrainerflag TRAINER_TEAM_ROCKET_ADMIN + call_if eq, EventScript_163F47 end EventScript_163F47:: @ 8163F47 @@ -19,8 +19,8 @@ EventScript_163F47:: @ 8163F47 FiveIsland_RocketWarehouse_EventScript_163F5A:: @ 8163F5A lockall - checkflag FLAG_0x2D5 - goto_if_eq EventScript_163F6E + checkflag FLAG_DEFEATED_ROCKETS_IN_WAREHOUSE + goto_if TRUE, EventScript_163F6E msgbox gUnknown_817B4E3 releaseall end @@ -38,50 +38,48 @@ FiveIsland_RocketWarehouse_EventScript_163F81:: @ 8163F81 lockall applymovement 4, Movement_1A75E7 waitmovement 0 - setvar VAR_0x4088, 1 + setvar VAR_MAP_SCENE_ROCKET_WAREHOUSE, 1 releaseall end FiveIsland_RocketWarehouse_EventScript_163F93:: @ 8163F93 - trainerbattle 2, 545, 0, Text_17BBAF, Text_17BC55, EventScript_163FCD - checkflag FLAG_0x844 - goto_if_eq EventScript_163FB7 + trainerbattle TRAINER_BATTLE_CONTINUE_SCRIPT, TRAINER_SCIENTIST_GIDEON, 0, Text_17BBAF, Text_17BC55, EventScript_163FCD + checkflag FLAG_SYS_CAN_LINK_WITH_RS + goto_if TRUE, EventScript_163FB7 msgbox gUnknown_817BCA3, 6 end EventScript_163FB7:: @ 8163FB7 - setvar VAR_0x8004, 15 - setvar VAR_0x8005, 5 - special SetFlavorTextFlagFromSpecialVars + famechecker FAMECHECKER_GIOVANNI, 5 msgbox gUnknown_817BCD7, 6 end EventScript_163FCD:: @ 8163FCD msgbox gUnknown_817BC6C - setflag FLAG_0x2DC + setflag FLAG_RECOVERED_SAPPHIRE giveitem ITEM_SAPPHIRE release end FiveIsland_RocketWarehouse_EventScript_163FE6:: @ 8163FE6 - trainerbattle 0, 541, 0, Text_17B54D, Text_17B585 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_TEAM_ROCKET_GRUNT_47, 0, Text_17B54D, Text_17B585 msgbox gUnknown_817B5A6, 6 end FiveIsland_RocketWarehouse_EventScript_163FFD:: @ 8163FFD - trainerbattle 0, 542, 0, Text_17B677, Text_17B6D9 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_TEAM_ROCKET_GRUNT_48, 0, Text_17B677, Text_17B6D9 msgbox gUnknown_817B6EF, 6 end FiveIsland_RocketWarehouse_EventScript_164014:: @ 8164014 - trainerbattle 2, 544, 0, Text_17B8DA, Text_17B9FB, EventScript_16402F + trainerbattle TRAINER_BATTLE_CONTINUE_SCRIPT, TRAINER_TEAM_ROCKET_ADMIN_2, 0, Text_17B8DA, Text_17B9FB, EventScript_16402F msgbox gUnknown_817BA64, 6 end EventScript_16402F:: @ 816402F getplayerxy VAR_0x8004, VAR_0x8005 compare_var_to_value VAR_0x8004, 24 - call_if 3, EventScript_164065 + call_if le, EventScript_164065 msgbox gUnknown_817BA64 closemessage fadescreen 1 @@ -89,10 +87,10 @@ EventScript_16402F:: @ 816402F removeobject 2 removeobject 4 removeobject 3 - setflag FLAG_0x088 + setflag FLAG_HIDE_FIVE_ISLAND_ROCKETS fadescreen 0 - setvar VAR_0x4088, 1 - setflag FLAG_0x2D5 + setvar VAR_MAP_SCENE_ROCKET_WAREHOUSE, 1 + setflag FLAG_DEFEATED_ROCKETS_IN_WAREHOUSE release end @@ -102,12 +100,12 @@ EventScript_164065:: @ 8164065 return FiveIsland_RocketWarehouse_EventScript_164070:: @ 8164070 - trainerbattle 0, 516, 0, Text_17B5D6, Text_17B62F + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_TEAM_ROCKET_GRUNT_42, 0, Text_17B5D6, Text_17B62F msgbox gUnknown_817B642, 6 end FiveIsland_RocketWarehouse_EventScript_164087:: @ 8164087 - trainerbattle 2, 543, 0, Text_17B72D, Text_17B79C, EventScript_1640A2 + trainerbattle TRAINER_BATTLE_CONTINUE_SCRIPT, TRAINER_TEAM_ROCKET_ADMIN, 0, Text_17B72D, Text_17B79C, EventScript_1640A2 msgbox gUnknown_817B7FA, 6 end @@ -115,36 +113,36 @@ EventScript_1640A2:: @ 81640A2 getplayerxy VAR_0x8004, VAR_0x8005 specialvar VAR_RESULT, GetPlayerFacingDirection compare_var_to_value VAR_RESULT, 2 - call_if 1, EventScript_16412E + call_if eq, EventScript_16412E msgbox gUnknown_817B7AE closemessage compare_var_to_value VAR_0x8004, 24 - call_if 3, EventScript_164144 + call_if le, EventScript_164144 compare_var_to_value VAR_0x8004, 25 - call_if 1, EventScript_16414F + call_if eq, EventScript_16414F compare_var_to_value VAR_0x8004, 26 - call_if 1, EventScript_16415A + call_if eq, EventScript_16415A compare_var_to_value VAR_0x8004, 27 - call_if 1, EventScript_16415A + call_if eq, EventScript_16415A playse SE_PIN call EventScript_163F47 special DrawWholeMapView waitse compare_var_to_value VAR_0x8004, 24 - call_if 3, EventScript_164165 + call_if le, EventScript_164165 compare_var_to_value VAR_0x8004, 25 - call_if 1, EventScript_164165 + call_if eq, EventScript_164165 compare_var_to_value VAR_0x8004, 26 - call_if 1, EventScript_164165 + call_if eq, EventScript_164165 compare_var_to_value VAR_0x8004, 27 - call_if 1, EventScript_164170 + call_if eq, EventScript_164170 msgbox gUnknown_817B7FA release end EventScript_16412E:: @ 816412E compare_var_to_value VAR_0x8004, 27 - goto_if_eq EventScript_1A77A9 + goto_if eq, EventScript_1A77A9 applymovement 255, Movement_1A75EB waitmovement 0 return diff --git a/data/maps/FiveIsland_WaterLabyrinth/map.json b/data/maps/FiveIsland_WaterLabyrinth/map.json index 173c247da..e9f0eb16a 100644 --- a/data/maps/FiveIsland_WaterLabyrinth/map.json +++ b/data/maps/FiveIsland_WaterLabyrinth/map.json @@ -25,7 +25,7 @@ ], "object_events": [ { - "graphics_id": "61", + "graphics_id": "MAP_OBJ_GFX_GENTLEMAN", "x": 14, "y": 11, "elevation": 3, @@ -38,7 +38,7 @@ "flag": "0" }, { - "graphics_id": "28", + "graphics_id": "MAP_OBJ_GFX_WOMAN_2", "x": 9, "y": 7, "elevation": 3, diff --git a/data/maps/FiveIsland_WaterLabyrinth/scripts.inc b/data/maps/FiveIsland_WaterLabyrinth/scripts.inc index b3b6243ab..a334ab2df 100644 --- a/data/maps/FiveIsland_WaterLabyrinth/scripts.inc +++ b/data/maps/FiveIsland_WaterLabyrinth/scripts.inc @@ -4,26 +4,24 @@ FiveIsland_WaterLabyrinth_MapScripts:: @ 816884D FiveIsland_WaterLabyrinth_EventScript_16884E:: @ 816884E special sub_8110AB4 compare_var_to_value VAR_RESULT, 2 - goto_if_eq EventScript_1A7AE0 + goto_if eq, EventScript_1A7AE0 special sub_8112364 lock faceplayer - checkflag FLAG_0x2DA - goto_if_eq EventScript_1688E3 - checkflag FLAG_0x2DB - goto_if_eq EventScript_16892C + checkflag FLAG_GOT_TOGEPI_EGG + goto_if TRUE, EventScript_1688E3 + checkflag FLAG_NO_ROOM_FOR_TOGEPI_EGG + goto_if TRUE, EventScript_16892C msgbox gUnknown_818A80D - specialvar VAR_RESULT, sub_80CA76C + specialvar VAR_RESULT, Special_GetLeadMonFriendship compare_var_to_value VAR_RESULT, 6 - goto_if_eq EventScript_1688AC + goto_if eq, EventScript_1688AC msgbox gUnknown_818A88F release end EventScript_168895:: @ 8168895 - setvar VAR_0x8004, 1 - setvar VAR_0x8005, 2 - special SetFlavorTextFlagFromSpecialVars + famechecker FAMECHECKER_DAISY, 2 msgbox gUnknown_818AA0C release end @@ -36,8 +34,8 @@ EventScript_1688AC:: @ 81688AC EventScript_1688BA:: @ 81688BA countpokemon compare_var_to_value VAR_RESULT, 6 - goto_if_eq EventScript_16891F - setflag FLAG_0x2DA + goto_if eq, EventScript_16891F + setflag FLAG_GOT_TOGEPI_EGG giveegg SPECIES_TOGEPI textcolor 3 playfanfare MUS_FANFA1 @@ -50,21 +48,21 @@ EventScript_1688BA:: @ 81688BA EventScript_1688E3:: @ 81688E3 getspeciesname 1, SPECIES_TOGEPI - setvar VAR_0x8004, 175 - specialvar VAR_RESULT, sub_80CD0F4 + setvar VAR_0x8004, SPECIES_TOGEPI + specialvar VAR_RESULT, Special_PlayerPartyContainsSpeciesWithPlayerID compare_var_to_value VAR_RESULT, 1 - goto_if_eq EventScript_168895 + goto_if eq, EventScript_168895 getspeciesname 1, SPECIES_TOGETIC - setvar VAR_0x8004, 176 - specialvar VAR_RESULT, sub_80CD0F4 + setvar VAR_0x8004, SPECIES_TOGETIC + specialvar VAR_RESULT, Special_PlayerPartyContainsSpeciesWithPlayerID compare_var_to_value VAR_RESULT, 1 - goto_if_eq EventScript_168895 + goto_if eq, EventScript_168895 msgbox gUnknown_818A9C0 release end EventScript_16891F:: @ 816891F - setflag FLAG_0x2DB + setflag FLAG_NO_ROOM_FOR_TOGEPI_EGG msgbox gUnknown_818A940 release end diff --git a/data/maps/FourIsland/map.json b/data/maps/FourIsland/map.json index e920ba0af..54e4e9849 100644 --- a/data/maps/FourIsland/map.json +++ b/data/maps/FourIsland/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "32", + "graphics_id": "MAP_OBJ_GFX_OLD_MAN_1", "x": 16, "y": 13, "elevation": 3, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "132", + "graphics_id": "MAP_OBJ_GFX_DODUO", "x": 12, "y": 9, "elevation": 3, @@ -40,7 +40,7 @@ "flag": "0" }, { - "graphics_id": "122", + "graphics_id": "MAP_OBJ_GFX_NIDORAN_F", "x": 13, "y": 7, "elevation": 3, @@ -53,7 +53,7 @@ "flag": "0" }, { - "graphics_id": "123", + "graphics_id": "MAP_OBJ_GFX_NIDORAN_M", "x": 14, "y": 7, "elevation": 3, @@ -66,7 +66,7 @@ "flag": "0" }, { - "graphics_id": "121", + "graphics_id": "MAP_OBJ_GFX_PSYDUCK", "x": 17, "y": 9, "elevation": 3, @@ -79,7 +79,7 @@ "flag": "0" }, { - "graphics_id": "35", + "graphics_id": "MAP_OBJ_GFX_OLD_WOMAN", "x": 26, "y": 19, "elevation": 3, @@ -92,7 +92,7 @@ "flag": "0" }, { - "graphics_id": "96", + "graphics_id": "MAP_OBJ_GFX_ROCK_SMASH_ROCK", "x": 5, "y": 11, "elevation": 3, @@ -101,11 +101,11 @@ "movement_range_y": 1, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "FourIsland_EventScript_1BE00C", - "flag": "18" + "script": "EventScript_InteractWithRockSmashRockObject", + "flag": "FLAG_TEMP_12" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 5, "y": 6, "elevation": 3, @@ -115,10 +115,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "FourIsland_EventScript_1BEC28", - "flag": "473" + "flag": "FLAG_HIDE_FOUR_ISLAND_STAR_PIECE" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 32, "y": 19, "elevation": 3, @@ -128,10 +128,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "FourIsland_EventScript_1BEC35", - "flag": "474" + "flag": "FLAG_HIDE_FOUR_ISLAND_STARDUST" }, { - "graphics_id": "72", + "graphics_id": "MAP_OBJ_GFX_BLUE", "x": 8, "y": 25, "elevation": 3, @@ -141,10 +141,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "0x0", - "flag": "151" + "flag": "FLAG_HIDE_FOUR_ISLAND_RIVAL" }, { - "graphics_id": "27", + "graphics_id": "MAP_OBJ_GFX_FAT_MAN", "x": 36, "y": 13, "elevation": 3, @@ -157,7 +157,7 @@ "flag": "0" }, { - "graphics_id": "17", + "graphics_id": "MAP_OBJ_GFX_LITTLE_GIRL", "x": 31, "y": 21, "elevation": 3, @@ -243,17 +243,19 @@ "y": 34, "elevation": 3, "item": "ITEM_PEARL", - "flag": "168", - "unknown": 1 + "flag": "HIDDEN_ITEM_FOUR_ISLAND_PEARL", + "quantity": 1, + "underfoot": false }, { "type": "hidden_item", "x": 6, "y": 21, "elevation": 3, - "item": "POCKET_KEY_ITEMS", - "flag": "169", - "unknown": 1 + "item": "ITEM_ULTRA_BALL", + "flag": "HIDDEN_ITEM_FOUR_ISLAND_ULTRA_BALL", + "quantity": 1, + "underfoot": false }, { "type": "bg_event_type_0", diff --git a/data/maps/FourIsland/scripts.inc b/data/maps/FourIsland/scripts.inc index 8da7aef54..68788f93a 100644 --- a/data/maps/FourIsland/scripts.inc +++ b/data/maps/FourIsland/scripts.inc @@ -6,17 +6,17 @@ FourIsland_MapScripts:: @ 8167CAE FourIsland_MapScript1_167CB9:: @ 8167CB9 setworldmapflag FLAG_WORLD_MAP_FOUR_ISLAND compare_var_to_value VAR_MAP_SCENE_FOUR_ISLAND, 0 - call_if 1, EventScript_167CCD + call_if eq, EventScript_167CCD call EventScript_167CD1 end EventScript_167CCD:: @ 8167CCD - clearflag FLAG_0x097 + clearflag FLAG_HIDE_FOUR_ISLAND_RIVAL return EventScript_167CD1:: @ 8167CD1 checkflag FLAG_PENDING_DAYCARE_EGG - goto_if 0, EventScript_167CE1 + goto_if FALSE, EventScript_167CE1 setobjectxyperm 1, 16, 14 EventScript_167CE1:: @ 8167CE1 @@ -73,18 +73,18 @@ Movement_167D52:: @ 8167D52 FourIsland_EventScript_167D55:: @ 8167D55 special sub_8110AB4 compare_var_to_value VAR_RESULT, 2 - goto_if_eq EventScript_1A7AE0 + goto_if eq, EventScript_1A7AE0 special sub_8112364 lock faceplayer special GetDaycareMonNicknames specialvar VAR_RESULT, GetDaycareState compare_var_to_value VAR_RESULT, 1 - goto_if_eq EventScript_167D9B + goto_if eq, EventScript_167D9B compare_var_to_value VAR_RESULT, 2 - goto_if_eq EventScript_167E0C + goto_if eq, EventScript_167E0C compare_var_to_value VAR_RESULT, 3 - goto_if_eq EventScript_167E19 + goto_if eq, EventScript_167E19 msgbox gUnknown_81BF555 release end @@ -92,10 +92,10 @@ FourIsland_EventScript_167D55:: @ 8167D55 EventScript_167D9B:: @ 8167D9B msgbox gUnknown_81BF5E3, MSGBOX_YESNO compare_var_to_value VAR_RESULT, 1 - goto_if_eq EventScript_167DD1 + goto_if eq, EventScript_167DD1 msgbox gUnknown_81BF7B6, MSGBOX_YESNO compare_var_to_value VAR_RESULT, 1 - goto_if_eq EventScript_167DD1 + goto_if eq, EventScript_167DD1 msgbox gUnknown_81BF6CF clearflag FLAG_PENDING_DAYCARE_EGG special RejectEggFromDayCare @@ -105,7 +105,7 @@ EventScript_167D9B:: @ 8167D9B EventScript_167DD1:: @ 8167DD1 specialvar VAR_RESULT, CalculatePlayerPartyCount compare_var_to_value VAR_RESULT, 6 - goto_if 5, EventScript_167DEB + goto_if ne, EventScript_167DEB msgbox gUnknown_81BF6F0 release end @@ -133,7 +133,7 @@ EventScript_167E19:: @ 8167E19 special GetDaycareMonNicknames msgbox gUnknown_81BF789 special SetDaycareCompatibilityString - special sub_80CA68C + special Special_ShowStringVar4AsFieldMessage waitmessage waitbuttonpress release @@ -142,16 +142,14 @@ EventScript_167E19:: @ 8167E19 FourIsland_EventScript_167E2E:: @ 8167E2E lock faceplayer - checkflag FLAG_0x844 - goto_if_eq EventScript_167E43 + checkflag FLAG_SYS_CAN_LINK_WITH_RS + goto_if TRUE, EventScript_167E43 msgbox gUnknown_8182A2B release end EventScript_167E43:: @ 8167E43 - setvar VAR_0x8004, 9 - setvar VAR_0x8005, 5 - special SetFlavorTextFlagFromSpecialVars + famechecker FAMECHECKER_LORELEI, 5 msgbox gUnknown_8182A75 release end @@ -159,9 +157,7 @@ EventScript_167E43:: @ 8167E43 FourIsland_EventScript_167E5A:: @ 8167E5A lock faceplayer - setvar VAR_0x8004, 9 - setvar VAR_0x8005, 4 - special SetFlavorTextFlagFromSpecialVars + famechecker FAMECHECKER_LORELEI, 4 msgbox gUnknown_8182CE3 release end diff --git a/data/maps/FourIsland_Harbor/map.json b/data/maps/FourIsland_Harbor/map.json index e7507d3fe..5b550da70 100644 --- a/data/maps/FourIsland_Harbor/map.json +++ b/data/maps/FourIsland_Harbor/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "108", + "graphics_id": "MAP_OBJ_GFX_SEAGALLOP", "x": 8, "y": 9, "elevation": 0, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "62", + "graphics_id": "MAP_OBJ_GFX_SAILOR", "x": 8, "y": 6, "elevation": 3, diff --git a/data/maps/FourIsland_Harbor/scripts.inc b/data/maps/FourIsland_Harbor/scripts.inc index 2c7fce02f..b9c632972 100644 --- a/data/maps/FourIsland_Harbor/scripts.inc +++ b/data/maps/FourIsland_Harbor/scripts.inc @@ -6,6 +6,6 @@ FourIsland_Harbor_EventScript_171C99:: @ 8171C99 faceplayer message Text_181726 waitmessage - setvar VAR_0x8004, 4 + setvar VAR_0x8004, SEAGALLOP_FOUR_ISLAND goto EventScript_1A900F end diff --git a/data/maps/FourIsland_House1/map.json b/data/maps/FourIsland_House1/map.json index a33509d0c..c47859aff 100644 --- a/data/maps/FourIsland_House1/map.json +++ b/data/maps/FourIsland_House1/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "27", + "graphics_id": "MAP_OBJ_GFX_FAT_MAN", "x": 8, "y": 3, "elevation": 3, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "27", + "graphics_id": "MAP_OBJ_GFX_FAT_MAN", "x": 9, "y": 3, "elevation": 3, diff --git a/data/maps/FourIsland_House2/map.json b/data/maps/FourIsland_House2/map.json index bfb59deeb..a11437ab1 100644 --- a/data/maps/FourIsland_House2/map.json +++ b/data/maps/FourIsland_House2/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "25", + "graphics_id": "MAP_OBJ_GFX_MAN", "x": 4, "y": 4, "elevation": 3, diff --git a/data/maps/FourIsland_IcefallCave_1F/map.json b/data/maps/FourIsland_IcefallCave_1F/map.json index 9a9bb955a..995ac7728 100644 --- a/data/maps/FourIsland_IcefallCave_1F/map.json +++ b/data/maps/FourIsland_IcefallCave_1F/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 11, "y": 7, "elevation": 3, @@ -24,10 +24,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "FourIsland_IcefallCave_1F_EventScript_1BED53", - "flag": "496" + "flag": "FLAG_HIDE_FOUR_ISLAND_ICEFALL_CAVE_1F_ULTRA_BALL" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 12, "y": 16, "elevation": 3, @@ -37,7 +37,7 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "FourIsland_IcefallCave_1F_EventScript_1BED60", - "flag": "497" + "flag": "FLAG_HIDE_FOUR_ISLAND_ICEFALL_CAVE_1F_HM07" } ], "warp_events": [ diff --git a/data/maps/FourIsland_IcefallCave_B1F/map.json b/data/maps/FourIsland_IcefallCave_B1F/map.json index 709b24259..0fbf41a57 100644 --- a/data/maps/FourIsland_IcefallCave_B1F/map.json +++ b/data/maps/FourIsland_IcefallCave_B1F/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 10, "y": 14, "elevation": 3, @@ -24,10 +24,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "FourIsland_IcefallCave_B1F_EventScript_1BED6D", - "flag": "498" + "flag": "FLAG_HIDE_FOUR_ISLAND_ICEFALL_CAVE_B1F_FULL_RESTORE" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 21, "y": 7, "elevation": 3, @@ -37,7 +37,7 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "FourIsland_IcefallCave_B1F_EventScript_1BED7A", - "flag": "499" + "flag": "FLAG_HIDE_FOUR_ISLAND_ICEFALL_CAVE_B1F_NEVER_MELT_ICE" } ], "warp_events": [ diff --git a/data/maps/FourIsland_IcefallCave_Back/map.json b/data/maps/FourIsland_IcefallCave_Back/map.json index 6be98b468..12e4daece 100644 --- a/data/maps/FourIsland_IcefallCave_Back/map.json +++ b/data/maps/FourIsland_IcefallCave_Back/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "49", + "graphics_id": "MAP_OBJ_GFX_ROCKET_M", "x": 11, "y": 14, "elevation": 3, @@ -24,10 +24,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "0x0", - "flag": "141" + "flag": "FLAG_HIDE_ICEFALL_CAVE_ROCKETS" }, { - "graphics_id": "49", + "graphics_id": "MAP_OBJ_GFX_ROCKET_M", "x": 13, "y": 14, "elevation": 3, @@ -37,10 +37,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "0x0", - "flag": "141" + "flag": "FLAG_HIDE_ICEFALL_CAVE_ROCKETS" }, { - "graphics_id": "77", + "graphics_id": "MAP_OBJ_GFX_LORELEI", "x": 12, "y": 16, "elevation": 3, @@ -50,10 +50,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "FourIsland_IcefallCave_Back_EventScript_163F25", - "flag": "139" + "flag": "FLAG_HIDE_ICEFALL_CAVE_LORELEI" }, { - "graphics_id": "49", + "graphics_id": "MAP_OBJ_GFX_ROCKET_M", "x": 10, "y": 15, "elevation": 3, @@ -63,7 +63,7 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "0x0", - "flag": "141" + "flag": "FLAG_HIDE_ICEFALL_CAVE_ROCKETS" } ], "warp_events": [ @@ -81,7 +81,7 @@ "x": 11, "y": 18, "elevation": 3, - "var": "VAR_0x4080", + "var": "VAR_MAP_SCENE_ICEFALL_CAVE_BACK", "var_value": 0, "script": "FourIsland_IcefallCave_Back_EventScript_163D98" }, @@ -90,7 +90,7 @@ "x": 12, "y": 18, "elevation": 3, - "var": "VAR_0x4080", + "var": "VAR_MAP_SCENE_ICEFALL_CAVE_BACK", "var_value": 0, "script": "FourIsland_IcefallCave_Back_EventScript_163D98" }, @@ -99,7 +99,7 @@ "x": 13, "y": 18, "elevation": 3, - "var": "VAR_0x4080", + "var": "VAR_MAP_SCENE_ICEFALL_CAVE_BACK", "var_value": 0, "script": "FourIsland_IcefallCave_Back_EventScript_163D98" } diff --git a/data/maps/FourIsland_IcefallCave_Back/scripts.inc b/data/maps/FourIsland_IcefallCave_Back/scripts.inc index 7054d0a18..684c7506c 100644 --- a/data/maps/FourIsland_IcefallCave_Back/scripts.inc +++ b/data/maps/FourIsland_IcefallCave_Back/scripts.inc @@ -3,12 +3,12 @@ FourIsland_IcefallCave_Back_MapScripts:: @ 8163D82 .byte 0 FourIsland_IcefallCave_Back_MapScript1_163D88:: @ 8163D88 - compare_var_to_value VAR_0x4080, 1 - call_if 1, EventScript_163D94 + compare_var_to_value VAR_MAP_SCENE_ICEFALL_CAVE_BACK, 1 + call_if eq, EventScript_163D94 end EventScript_163D94:: @ 8163D94 - setflag FLAG_0x08B + setflag FLAG_HIDE_ICEFALL_CAVE_LORELEI return FourIsland_IcefallCave_Back_EventScript_163D98:: @ 8163D98 @@ -46,7 +46,7 @@ FourIsland_IcefallCave_Back_EventScript_163D98:: @ 8163D98 textcolor 0 msgbox gUnknown_817B20B setvar VAR_LAST_TALKED, 4 - trainerbattle 3, 539, 0, Text_17B251 + trainerbattle TRAINER_BATTLE_SINGLE_NO_INTRO_TEXT, TRAINER_TEAM_ROCKET_GRUNT_45, 0, Text_17B251 applymovement 3, Movement_163F1B waitmovement 0 textcolor 1 @@ -81,9 +81,9 @@ FourIsland_IcefallCave_Back_EventScript_163D98:: @ 8163D98 waitmovement 0 textcolor 1 msgbox gUnknown_817B457 - setflag FLAG_0x08E - clearflag FLAG_0x08C - setvar VAR_0x4080, 1 + setflag FLAG_HIDE_RUIN_VALLEY_SCIENTIST + clearflag FLAG_HIDE_LORELEI_IN_HER_HOUSE + setvar VAR_MAP_SCENE_ICEFALL_CAVE_BACK, 1 releaseall end diff --git a/data/maps/FourIsland_LoreleisHouse/map.json b/data/maps/FourIsland_LoreleisHouse/map.json index 45784f529..b40738201 100644 --- a/data/maps/FourIsland_LoreleisHouse/map.json +++ b/data/maps/FourIsland_LoreleisHouse/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "77", + "graphics_id": "MAP_OBJ_GFX_LORELEI", "x": 7, "y": 4, "elevation": 3, @@ -24,10 +24,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "FourIsland_LoreleisHouse_EventScript_171C58", - "flag": "140" + "flag": "FLAG_HIDE_LORELEI_IN_HER_HOUSE" }, { - "graphics_id": "131", + "graphics_id": "MAP_OBJ_GFX_WIGGLYTUFF", "x": 0, "y": 2, "elevation": 3, @@ -40,7 +40,7 @@ "flag": "0" }, { - "graphics_id": "126", + "graphics_id": "MAP_OBJ_GFX_SEEL", "x": 10, "y": 3, "elevation": 0, @@ -53,7 +53,7 @@ "flag": "0" }, { - "graphics_id": "120", + "graphics_id": "MAP_OBJ_GFX_PIKACHU", "x": 9, "y": 3, "elevation": 0, @@ -66,7 +66,7 @@ "flag": "0" }, { - "graphics_id": "128", + "graphics_id": "MAP_OBJ_GFX_SLOWPOKE", "x": 7, "y": 2, "elevation": 3, @@ -79,7 +79,7 @@ "flag": "0" }, { - "graphics_id": "129", + "graphics_id": "MAP_OBJ_GFX_SLOWBRO", "x": 6, "y": 2, "elevation": 3, @@ -92,7 +92,7 @@ "flag": "0" }, { - "graphics_id": "121", + "graphics_id": "MAP_OBJ_GFX_PSYDUCK", "x": 6, "y": 4, "elevation": 0, @@ -105,7 +105,7 @@ "flag": "0" }, { - "graphics_id": "125", + "graphics_id": "MAP_OBJ_GFX_MEOWTH", "x": 9, "y": 4, "elevation": 0, @@ -115,10 +115,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "FourIsland_LoreleisHouse_EventScript_171C8D", - "flag": "165" + "flag": "FLAG_HIDE_LORELEI_HOUSE_MEOWTH_DOLL" }, { - "graphics_id": "117", + "graphics_id": "MAP_OBJ_GFX_CHANSEY", "x": 10, "y": 4, "elevation": 0, @@ -128,10 +128,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "FourIsland_LoreleisHouse_EventScript_171C8D", - "flag": "166" + "flag": "FLAG_HIDE_LORELEI_HOUSE_CHANSEY_DOLL" }, { - "graphics_id": "115", + "graphics_id": "MAP_OBJ_GFX_JIGGLYPUFF", "x": 0, "y": 3, "elevation": 3, @@ -141,10 +141,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "FourIsland_LoreleisHouse_EventScript_171C8D", - "flag": "168" + "flag": "FLAG_HIDE_LORELEI_HOUSE_JIGGLYPUFF_DOLL" }, { - "graphics_id": "122", + "graphics_id": "MAP_OBJ_GFX_NIDORAN_F", "x": 0, "y": 5, "elevation": 3, @@ -154,10 +154,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "FourIsland_LoreleisHouse_EventScript_171C8D", - "flag": "167" + "flag": "FLAG_HIDE_LORELEIS_HOUSE_NIDORAN_F_DOLL" }, { - "graphics_id": "123", + "graphics_id": "MAP_OBJ_GFX_NIDORAN_M", "x": 1, "y": 5, "elevation": 3, @@ -167,10 +167,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "FourIsland_LoreleisHouse_EventScript_171C8D", - "flag": "169" + "flag": "FLAG_HIDE_LORELEIS_HOUSE_NIDORAN_M_DOLL" }, { - "graphics_id": "114", + "graphics_id": "MAP_OBJ_GFX_PIDGEOT", "x": 9, "y": 0, "elevation": 3, @@ -180,10 +180,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "FourIsland_LoreleisHouse_EventScript_171C8D", - "flag": "171" + "flag": "FLAG_HIDE_LORELEIS_HOUSE_PIDGEOT_DOLL" }, { - "graphics_id": "133", + "graphics_id": "MAP_OBJ_GFX_FEAROW", "x": 10, "y": 0, "elevation": 3, @@ -193,10 +193,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "FourIsland_LoreleisHouse_EventScript_171C8D", - "flag": "170" + "flag": "FLAG_HIDE_LORELEIS_HOUSE_FEAROW_DOLL" }, { - "graphics_id": "107", + "graphics_id": "MAP_OBJ_GFX_LAPRAS_DOLL", "x": 9, "y": 6, "elevation": 3, @@ -206,7 +206,7 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "FourIsland_LoreleisHouse_EventScript_171C8D", - "flag": "172" + "flag": "FLAG_HIDE_LORELEIS_HOUSE_LAPRAS_DOLL" } ], "warp_events": [ diff --git a/data/maps/FourIsland_LoreleisHouse/scripts.inc b/data/maps/FourIsland_LoreleisHouse/scripts.inc index ab7196c62..6a8915d83 100644 --- a/data/maps/FourIsland_LoreleisHouse/scripts.inc +++ b/data/maps/FourIsland_LoreleisHouse/scripts.inc @@ -3,22 +3,22 @@ FourIsland_LoreleisHouse_MapScripts:: @ 8171C4E .byte 0 FourIsland_LoreleisHouse_MapScript1_171C54:: @ 8171C54 - special sub_80CD154 + special Special_ComputeLoreleiDollCollection end FourIsland_LoreleisHouse_EventScript_171C58:: @ 8171C58 lock faceplayer - checkflag FLAG_0x2D4 - goto_if_eq EventScript_171C83 - checkflag FLAG_0x2D5 - goto_if_eq EventScript_171C76 + checkflag FLAG_TALKED_TO_LORELEI_AFTER_WAREHOUSE + goto_if TRUE, EventScript_171C83 + checkflag FLAG_DEFEATED_ROCKETS_IN_WAREHOUSE + goto_if TRUE, EventScript_171C76 msgbox gUnknown_81A3826 release end EventScript_171C76:: @ 8171C76 - setflag FLAG_0x2D4 + setflag FLAG_TALKED_TO_LORELEI_AFTER_WAREHOUSE msgbox gUnknown_81A390C release end diff --git a/data/maps/FourIsland_Mart/map.json b/data/maps/FourIsland_Mart/map.json index ca5cba0ec..5b9164382 100644 --- a/data/maps/FourIsland_Mart/map.json +++ b/data/maps/FourIsland_Mart/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "68", + "graphics_id": "MAP_OBJ_GFX_CLERK", "x": 2, "y": 3, "elevation": 0, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "32", + "graphics_id": "MAP_OBJ_GFX_OLD_MAN_1", "x": 6, "y": 5, "elevation": 3, @@ -40,7 +40,7 @@ "flag": "0" }, { - "graphics_id": "39", + "graphics_id": "MAP_OBJ_GFX_CAMPER", "x": 8, "y": 3, "elevation": 3, diff --git a/data/maps/FourIsland_Mart/scripts.inc b/data/maps/FourIsland_Mart/scripts.inc index 026d172a9..c74ac396a 100644 --- a/data/maps/FourIsland_Mart/scripts.inc +++ b/data/maps/FourIsland_Mart/scripts.inc @@ -4,7 +4,7 @@ FourIsland_Mart_MapScripts:: @ 8171CAD FourIsland_Mart_EventScript_171CAE:: @ 8171CAE special sub_8110AB4 compare_var_to_value VAR_RESULT, 2 - goto_if_eq EventScript_1A7AE0 + goto_if eq, EventScript_1A7AE0 lock faceplayer message Text_1A6211 diff --git a/data/maps/FourIsland_PokemonCenter_1F/map.json b/data/maps/FourIsland_PokemonCenter_1F/map.json index 45d65222d..f6db941e8 100644 --- a/data/maps/FourIsland_PokemonCenter_1F/map.json +++ b/data/maps/FourIsland_PokemonCenter_1F/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "64", + "graphics_id": "MAP_OBJ_GFX_NURSE", "x": 7, "y": 2, "elevation": 3, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "25", + "graphics_id": "MAP_OBJ_GFX_MAN", "x": 10, "y": 6, "elevation": 3, @@ -40,7 +40,7 @@ "flag": "0" }, { - "graphics_id": "31", + "graphics_id": "MAP_OBJ_GFX_WOMAN_3", "x": 5, "y": 5, "elevation": 3, @@ -53,7 +53,7 @@ "flag": "0" }, { - "graphics_id": "61", + "graphics_id": "MAP_OBJ_GFX_GENTLEMAN", "x": 2, "y": 2, "elevation": 3, diff --git a/data/maps/FourIsland_PokemonCenter_2F/map.json b/data/maps/FourIsland_PokemonCenter_2F/map.json index a118bf9bb..dbb6bb145 100644 --- a/data/maps/FourIsland_PokemonCenter_2F/map.json +++ b/data/maps/FourIsland_PokemonCenter_2F/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "65", + "graphics_id": "MAP_OBJ_GFX_CABLE_CLUB_RECEPTIONIST", "x": 6, "y": 2, "elevation": 3, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "65", + "graphics_id": "MAP_OBJ_GFX_CABLE_CLUB_RECEPTIONIST", "x": 2, "y": 2, "elevation": 3, @@ -40,7 +40,7 @@ "flag": "0" }, { - "graphics_id": "65", + "graphics_id": "MAP_OBJ_GFX_CABLE_CLUB_RECEPTIONIST", "x": 10, "y": 2, "elevation": 3, @@ -53,7 +53,7 @@ "flag": "0" }, { - "graphics_id": "69", + "graphics_id": "MAP_OBJ_GFX_MG_DELIVERYMAN", "x": 1, "y": 2, "elevation": 3, @@ -63,7 +63,7 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "FourIsland_PokemonCenter_2F_EventScript_1BB1D2", - "flag": "112" + "flag": "FLAG_HIDE_MG_DELIVERYMEN" } ], "warp_events": [ diff --git a/data/maps/FourIsland_PokemonDayCare/map.json b/data/maps/FourIsland_PokemonDayCare/map.json index 812097722..be2f8dc9d 100644 --- a/data/maps/FourIsland_PokemonDayCare/map.json +++ b/data/maps/FourIsland_PokemonDayCare/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "35", + "graphics_id": "MAP_OBJ_GFX_OLD_WOMAN", "x": 2, "y": 2, "elevation": 3, diff --git a/data/maps/FourIsland_PokemonDayCare/scripts.inc b/data/maps/FourIsland_PokemonDayCare/scripts.inc index 394b29334..c91cc86e5 100644 --- a/data/maps/FourIsland_PokemonDayCare/scripts.inc +++ b/data/maps/FourIsland_PokemonDayCare/scripts.inc @@ -4,19 +4,19 @@ FourIsland_PokemonDayCare_MapScripts:: @ 817193F FourIsland_PokemonDayCare_EventScript_171940:: @ 8171940 special sub_8110AB4 compare_var_to_value VAR_RESULT, 2 - goto_if_eq EventScript_1A7AE0 + goto_if eq, EventScript_1A7AE0 lock faceplayer specialvar VAR_RESULT, GetDaycareState compare_var_to_value VAR_RESULT, 1 - goto_if_eq EventScript_171A2E + goto_if eq, EventScript_171A2E compare_var_to_value VAR_RESULT, 2 - goto_if_eq EventScript_171A52 + goto_if eq, EventScript_171A52 compare_var_to_value VAR_RESULT, 3 - goto_if_eq EventScript_171B86 + goto_if eq, EventScript_171B86 msgbox gUnknown_81BF7E4, MSGBOX_YESNO compare_var_to_value VAR_RESULT, 1 - goto_if_eq EventScript_171993 + goto_if eq, EventScript_171993 msgbox gUnknown_81BF916 release end @@ -24,26 +24,26 @@ FourIsland_PokemonDayCare_EventScript_171940:: @ 8171940 EventScript_171993:: @ 8171993 specialvar VAR_RESULT, CountPartyNonEggMons compare_var_to_value VAR_RESULT, 1 - goto_if_eq EventScript_171A1A + goto_if eq, EventScript_171A1A msgbox gUnknown_81BF839 fadescreen 1 special ChooseSendDaycareMon waitstate compare_var_to_value VAR_0x8004, 6 - goto_if 4, EventScript_1719F7 + goto_if ge, EventScript_1719F7 specialvar VAR_RESULT, CountPartyAliveNonEggMons_IgnoreVar0x8004Slot compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_171A24 + goto_if eq, EventScript_171A24 specialvar VAR_0x8005, GetSelectedMonNickAndSpecies waitse playmoncry VAR_0x8005, 0 msgbox gUnknown_81BF860 waitmoncry special StoreSelectedPokemonInDaycare - incrementgamestat 47 + incrementgamestat GAME_STAT_USED_DAYCARE specialvar VAR_RESULT, GetDaycareState compare_var_to_value VAR_RESULT, 2 - goto_if_eq EventScript_171A01 + goto_if eq, EventScript_171A01 release end @@ -55,7 +55,7 @@ EventScript_1719F7:: @ 81719F7 EventScript_171A01:: @ 8171A01 msgbox gUnknown_81BF89F, MSGBOX_YESNO compare_var_to_value VAR_RESULT, 1 - goto_if_eq EventScript_171993 + goto_if eq, EventScript_171993 goto EventScript_1719F7 end @@ -81,7 +81,7 @@ EventScript_171A38:: @ 8171A38 EventScript_171A41:: @ 8171A41 specialvar VAR_RESULT, GetNumLevelsGainedFromDaycare compare_var_to_value VAR_RESULT, 0 - call_if 5, EventScript_171A38 + call_if ne, EventScript_171A38 return EventScript_171A52:: @ 8171A52 @@ -90,26 +90,26 @@ EventScript_171A52:: @ 8171A52 call EventScript_171A41 msgbox gUnknown_81BF89F, MSGBOX_YESNO compare_var_to_value VAR_RESULT, 1 - goto_if_eq EventScript_171993 + goto_if eq, EventScript_171993 msgbox gUnknown_81BFAE8, MSGBOX_YESNO compare_var_to_value VAR_RESULT, 1 - goto_if_eq EventScript_171A90 + goto_if eq, EventScript_171A90 goto EventScript_1719F7 end EventScript_171A90:: @ 8171A90 specialvar VAR_RESULT, CalculatePlayerPartyCount compare_var_to_value VAR_RESULT, 6 - goto_if_eq EventScript_171B67 + goto_if eq, EventScript_171B67 specialvar VAR_RESULT, GetDaycareState setvar VAR_0x8004, 0 compare_var_to_value VAR_RESULT, 2 - goto_if_eq EventScript_171ACF + goto_if eq, EventScript_171ACF special ShowDaycareLevelMenu waitstate copyvar VAR_0x8004, VAR_RESULT compare_var_to_value VAR_RESULT, 2 - goto_if_eq EventScript_1719F7 + goto_if eq, EventScript_1719F7 goto EventScript_171ACF end @@ -117,14 +117,14 @@ EventScript_171ACF:: @ 8171ACF special GetDaycareCost msgbox gUnknown_81BFA3B, MSGBOX_YESNO compare_var_to_value VAR_RESULT, 1 - goto_if_eq EventScript_171AEB + goto_if eq, EventScript_171AEB goto EventScript_1719F7 end EventScript_171AEB:: @ 8171AEB specialvar VAR_RESULT, IsEnoughForCostInVar0x8005 compare_var_to_value VAR_RESULT, 1 - goto_if_eq EventScript_171B05 + goto_if eq, EventScript_171B05 msgbox gUnknown_81BF932 release end @@ -144,14 +144,14 @@ EventScript_171B05:: @ 8171B05 waitmoncry specialvar VAR_RESULT, GetDaycareState compare_var_to_value VAR_RESULT, 2 - goto_if_eq EventScript_171B4E + goto_if eq, EventScript_171B4E goto EventScript_1719F7 end EventScript_171B4E:: @ 8171B4E msgbox gUnknown_81BF94F, MSGBOX_YESNO compare_var_to_value VAR_RESULT, 1 - goto_if_eq EventScript_171A90 + goto_if eq, EventScript_171A90 goto EventScript_1719F7 end @@ -193,7 +193,7 @@ EventScript_171B86:: @ 8171B86 call EventScript_171A41 msgbox gUnknown_81BFAE8, MSGBOX_YESNO compare_var_to_value VAR_RESULT, 1 - goto_if_eq EventScript_171A90 + goto_if eq, EventScript_171A90 msgbox gUnknown_81BF976 release end @@ -202,7 +202,7 @@ EventScript_171BBF:: @ 8171BBF special ShowDaycareLevelMenu waitstate compare_var_to_value VAR_RESULT, 2 - goto_if_eq EventScript_1719F7 + goto_if eq, EventScript_1719F7 copyvar VAR_0x8004, VAR_RESULT specialvar VAR_RESULT, TakePokemonFromDaycare msgbox gUnknown_81BFA67 diff --git a/data/maps/FuchsiaCity/map.json b/data/maps/FuchsiaCity/map.json index deb0dc7c0..9b484daec 100644 --- a/data/maps/FuchsiaCity/map.json +++ b/data/maps/FuchsiaCity/map.json @@ -30,7 +30,7 @@ ], "object_events": [ { - "graphics_id": "27", + "graphics_id": "MAP_OBJ_GFX_FAT_MAN", "x": 37, "y": 17, "elevation": 3, @@ -43,7 +43,7 @@ "flag": "0" }, { - "graphics_id": "128", + "graphics_id": "MAP_OBJ_GFX_SLOWPOKE", "x": 36, "y": 15, "elevation": 3, @@ -56,7 +56,7 @@ "flag": "0" }, { - "graphics_id": "127", + "graphics_id": "MAP_OBJ_GFX_VOLTORB", "x": 33, "y": 8, "elevation": 3, @@ -69,7 +69,7 @@ "flag": "0" }, { - "graphics_id": "18", + "graphics_id": "MAP_OBJ_GFX_YOUNGSTER", "x": 33, "y": 11, "elevation": 3, @@ -82,7 +82,7 @@ "flag": "0" }, { - "graphics_id": "117", + "graphics_id": "MAP_OBJ_GFX_CHANSEY", "x": 39, "y": 8, "elevation": 3, @@ -95,7 +95,7 @@ "flag": "0" }, { - "graphics_id": "16", + "graphics_id": "MAP_OBJ_GFX_LITTLE_BOY", "x": 14, "y": 15, "elevation": 3, @@ -108,7 +108,7 @@ "flag": "0" }, { - "graphics_id": "135", + "graphics_id": "MAP_OBJ_GFX_LAPRAS", "x": 12, "y": 20, "elevation": 1, @@ -121,7 +121,7 @@ "flag": "0" }, { - "graphics_id": "32", + "graphics_id": "MAP_OBJ_GFX_OLD_MAN_1", "x": 36, "y": 20, "elevation": 3, @@ -134,7 +134,7 @@ "flag": "0" }, { - "graphics_id": "240", + "graphics_id": "MAP_OBJ_GFX_VAR_0", "x": 8, "y": 8, "elevation": 1, @@ -147,7 +147,7 @@ "flag": "0" }, { - "graphics_id": "119", + "graphics_id": "MAP_OBJ_GFX_KANGASKHAN", "x": 16, "y": 9, "elevation": 3, @@ -160,7 +160,7 @@ "flag": "0" }, { - "graphics_id": "95", + "graphics_id": "MAP_OBJ_GFX_CUT_TREE", "x": 30, "y": 10, "elevation": 3, @@ -169,11 +169,11 @@ "movement_range_y": 1, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "FuchsiaCity_EventScript_1BDF13", - "flag": "18" + "script": "EventScript_InteractWithCutTreeObject", + "flag": "FLAG_TEMP_12" }, { - "graphics_id": "95", + "graphics_id": "MAP_OBJ_GFX_CUT_TREE", "x": 21, "y": 13, "elevation": 3, @@ -182,11 +182,11 @@ "movement_range_y": 1, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "FuchsiaCity_EventScript_1BDF13", - "flag": "19" + "script": "EventScript_InteractWithCutTreeObject", + "flag": "FLAG_TEMP_13" }, { - "graphics_id": "95", + "graphics_id": "MAP_OBJ_GFX_CUT_TREE", "x": 32, "y": 16, "elevation": 3, @@ -195,11 +195,11 @@ "movement_range_y": 1, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "FuchsiaCity_EventScript_1BDF13", - "flag": "20" + "script": "EventScript_InteractWithCutTreeObject", + "flag": "FLAG_TEMP_14" }, { - "graphics_id": "95", + "graphics_id": "MAP_OBJ_GFX_CUT_TREE", "x": 24, "y": 22, "elevation": 3, @@ -208,11 +208,11 @@ "movement_range_y": 1, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "FuchsiaCity_EventScript_1BDF13", - "flag": "21" + "script": "EventScript_InteractWithCutTreeObject", + "flag": "FLAG_TEMP_15" }, { - "graphics_id": "20", + "graphics_id": "MAP_OBJ_GFX_BUG_CATCHER", "x": 15, "y": 11, "elevation": 3, @@ -225,7 +225,7 @@ "flag": "0" }, { - "graphics_id": "22", + "graphics_id": "MAP_OBJ_GFX_LASS", "x": 40, "y": 6, "elevation": 3, @@ -235,7 +235,7 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "FuchsiaCity_EventScript_166DC1", - "flag": "157" + "flag": "FLAG_HIDE_POSTGAME_GOSSIPERS" } ], "warp_events": [ @@ -402,8 +402,9 @@ "y": 26, "elevation": 3, "item": "ITEM_MAX_REVIVE", - "flag": "133", - "unknown": 1 + "flag": "HIDDEN_ITEM_FUCHSIA_CITY_MAX_REVIVE", + "quantity": 1, + "underfoot": false } ] } diff --git a/data/maps/FuchsiaCity/scripts.inc b/data/maps/FuchsiaCity/scripts.inc index 9fefb3d86..ea921b4d1 100644 --- a/data/maps/FuchsiaCity/scripts.inc +++ b/data/maps/FuchsiaCity/scripts.inc @@ -4,18 +4,18 @@ FuchsiaCity_MapScripts:: @ 8166D75 FuchsiaCity_MapScript1_166D7B:: @ 8166D7B setworldmapflag FLAG_WORLD_MAP_FUCHSIA_CITY - checkflag FLAG_0x272 - call_if 1, EventScript_166D91 - checkflag FLAG_0x272 - call_if 0, EventScript_166D97 + checkflag FLAG_GOT_DOME_FOSSIL + call_if TRUE, EventScript_166D91 + checkflag FLAG_GOT_DOME_FOSSIL + call_if FALSE, EventScript_166D97 end EventScript_166D91:: @ 8166D91 - setvar VAR_0x4010, 118 + setvar VAR_OBJ_GFX_ID_0, MAP_OBJ_GFX_OMANYTE return EventScript_166D97:: @ 8166D97 - setvar VAR_0x4010, 147 + setvar VAR_OBJ_GFX_ID_0, MAP_OBJ_GFX_KABUTO return FuchsiaCity_EventScript_166D9D:: @ 8166D9D @@ -37,9 +37,7 @@ FuchsiaCity_EventScript_166DB8:: @ 8166DB8 FuchsiaCity_EventScript_166DC1:: @ 8166DC1 lock faceplayer - setvar VAR_0x8004, 6 - setvar VAR_0x8005, 3 - special SetFlavorTextFlagFromSpecialVars + famechecker FAMECHECKER_KOGA, 3 msgbox gUnknown_8180ABD release end @@ -66,9 +64,7 @@ EventScript_166DFE:: @ 8166DFE FuchsiaCity_EventScript_166E07:: @ 8166E07 lockall - setvar VAR_0x8004, 6 - setvar VAR_0x8005, 0 - special SetFlavorTextFlagFromSpecialVars + famechecker FAMECHECKER_KOGA, 0 msgbox gUnknown_8180768 releaseall end @@ -76,7 +72,7 @@ FuchsiaCity_EventScript_166E07:: @ 8166E07 FuchsiaCity_EventScript_166E1F:: @ 8166E1F lockall setvar VAR_0x8004, SPECIES_CHANSEY - special sub_80CBDCC + special Special_SetSeenMon drawmonpic SPECIES_CHANSEY, 10, 3 msgbox gUnknown_81807A9 erasemonpic @@ -86,7 +82,7 @@ FuchsiaCity_EventScript_166E1F:: @ 8166E1F FuchsiaCity_EventScript_166E38:: @ 8166E38 lockall setvar VAR_0x8004, SPECIES_VOLTORB - special sub_80CBDCC + special Special_SetSeenMon drawmonpic SPECIES_VOLTORB, 10, 3 msgbox gUnknown_81807D9 erasemonpic @@ -96,7 +92,7 @@ FuchsiaCity_EventScript_166E38:: @ 8166E38 FuchsiaCity_EventScript_166E51:: @ 8166E51 lockall setvar VAR_0x8004, SPECIES_KANGASKHAN - special sub_80CBDCC + special Special_SetSeenMon drawmonpic SPECIES_KANGASKHAN, 10, 3 msgbox gUnknown_8180806 erasemonpic @@ -106,7 +102,7 @@ FuchsiaCity_EventScript_166E51:: @ 8166E51 FuchsiaCity_EventScript_166E6A:: @ 8166E6A lockall setvar VAR_0x8004, SPECIES_SLOWPOKE - special sub_80CBDCC + special Special_SetSeenMon drawmonpic SPECIES_SLOWPOKE, 10, 3 msgbox gUnknown_8180859 erasemonpic @@ -116,7 +112,7 @@ FuchsiaCity_EventScript_166E6A:: @ 8166E6A FuchsiaCity_EventScript_166E83:: @ 8166E83 lockall setvar VAR_0x8004, SPECIES_LAPRAS - special sub_80CBDCC + special Special_SetSeenMon drawmonpic SPECIES_LAPRAS, 10, 3 msgbox gUnknown_8180887 erasemonpic @@ -125,10 +121,10 @@ FuchsiaCity_EventScript_166E83:: @ 8166E83 FuchsiaCity_EventScript_166E9C:: @ 8166E9C lockall - checkflag FLAG_0x272 - goto_if_eq EventScript_166EBE + checkflag FLAG_GOT_DOME_FOSSIL + goto_if TRUE, EventScript_166EBE setvar VAR_0x8004, SPECIES_KABUTO - special sub_80CBDCC + special Special_SetSeenMon drawmonpic SPECIES_KABUTO, 10, 3 msgbox gUnknown_81808FA erasemonpic @@ -137,7 +133,7 @@ FuchsiaCity_EventScript_166E9C:: @ 8166E9C EventScript_166EBE:: @ 8166EBE setvar VAR_0x8004, SPECIES_OMANYTE - special sub_80CBDCC + special Special_SetSeenMon drawmonpic SPECIES_OMANYTE, 10, 3 msgbox gUnknown_81808AE erasemonpic diff --git a/data/maps/FuchsiaCity_Building1/map.json b/data/maps/FuchsiaCity_Building1/map.json index 2d567eaaf..7fbd2870c 100644 --- a/data/maps/FuchsiaCity_Building1/map.json +++ b/data/maps/FuchsiaCity_Building1/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "33", + "graphics_id": "MAP_OBJ_GFX_OLD_MAN_2", "x": 3, "y": 5, "elevation": 3, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "97", + "graphics_id": "MAP_OBJ_GFX_STRENGTH_BOULDER", "x": 11, "y": 6, "elevation": 3, @@ -36,11 +36,11 @@ "movement_range_y": 0, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "FuchsiaCity_Building1_EventScript_1BE11D", + "script": "EventScript_InteractWithStrengthBoulderObject", "flag": "0" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 11, "y": 5, "elevation": 3, @@ -50,7 +50,7 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "FuchsiaCity_Building1_EventScript_1BEAA2", - "flag": "441" + "flag": "FLAG_HIDE_FUCHSIA_CITY_BUILDING1_RARE_CANDY" }, { "graphics_id": "0", @@ -63,7 +63,7 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "FuchsiaCity_Building1_EventScript_1ACEB8", - "flag": "159" + "flag": "FLAG_HIDE_FAME_CHECKER_KOGA_JOURNAL" } ], "warp_events": [ diff --git a/data/maps/FuchsiaCity_Building1/scripts.inc b/data/maps/FuchsiaCity_Building1/scripts.inc index 58cacf92e..2a07b6bb0 100644 --- a/data/maps/FuchsiaCity_Building1/scripts.inc +++ b/data/maps/FuchsiaCity_Building1/scripts.inc @@ -4,15 +4,15 @@ FuchsiaCity_Building1_MapScripts:: @ 816D74B FuchsiaCity_Building1_EventScript_16D74C:: @ 816D74C lock faceplayer - checkflag FLAG_0x23A - goto_if_eq EventScript_16D7FA - checkflag FLAG_0x189 - goto_if_eq EventScript_16D780 + checkflag FLAG_GOT_HM04 + goto_if TRUE, EventScript_16D7FA + checkflag FLAG_HIDE_SAFARI_ZONE_WEST_GOLD_TEETH + goto_if TRUE, EventScript_16D780 msgbox gUnknown_8198DF9, MSGBOX_YESNO compare_var_to_value VAR_RESULT, 1 - call_if 1, EventScript_16D7E8 + call_if eq, EventScript_16D7E8 compare_var_to_value VAR_RESULT, 0 - call_if 1, EventScript_16D7F1 + call_if eq, EventScript_16D7F1 release end @@ -26,12 +26,12 @@ EventScript_16D780:: @ 816D780 call EventScript_1A6675 checkplayergender compare_var_to_value VAR_RESULT, 0 - call_if 1, EventScript_16D7D6 + call_if eq, EventScript_16D7D6 compare_var_to_value VAR_RESULT, 1 - call_if 1, EventScript_16D7DF + call_if eq, EventScript_16D7DF additem ITEM_HM04, 1 giveitemfanfaremsg gUnknown_8199068, ITEM_HM04 - setflag FLAG_0x23A + setflag FLAG_GOT_HM04 removeitem ITEM_GOLD_TEETH, 1 release end diff --git a/data/maps/FuchsiaCity_Gym/map.json b/data/maps/FuchsiaCity_Gym/map.json index ff7e432c2..4ee96a265 100644 --- a/data/maps/FuchsiaCity_Gym/map.json +++ b/data/maps/FuchsiaCity_Gym/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "26", + "graphics_id": "MAP_OBJ_GFX_ROCKER", "x": 12, "y": 16, "elevation": 3, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "26", + "graphics_id": "MAP_OBJ_GFX_ROCKER", "x": 2, "y": 9, "elevation": 3, @@ -40,7 +40,7 @@ "flag": "0" }, { - "graphics_id": "26", + "graphics_id": "MAP_OBJ_GFX_ROCKER", "x": 11, "y": 11, "elevation": 3, @@ -53,7 +53,7 @@ "flag": "0" }, { - "graphics_id": "25", + "graphics_id": "MAP_OBJ_GFX_MAN", "x": 13, "y": 4, "elevation": 3, @@ -66,7 +66,7 @@ "flag": "0" }, { - "graphics_id": "25", + "graphics_id": "MAP_OBJ_GFX_MAN", "x": 4, "y": 6, "elevation": 3, @@ -79,7 +79,7 @@ "flag": "0" }, { - "graphics_id": "26", + "graphics_id": "MAP_OBJ_GFX_ROCKER", "x": 2, "y": 16, "elevation": 3, @@ -92,7 +92,7 @@ "flag": "0" }, { - "graphics_id": "84", + "graphics_id": "MAP_OBJ_GFX_KOGA", "x": 7, "y": 13, "elevation": 3, @@ -105,7 +105,7 @@ "flag": "0" }, { - "graphics_id": "91", + "graphics_id": "MAP_OBJ_GFX_GYM_GUY", "x": 11, "y": 19, "elevation": 3, diff --git a/data/maps/FuchsiaCity_Gym/scripts.inc b/data/maps/FuchsiaCity_Gym/scripts.inc index 6b57f6377..8160e0fb3 100644 --- a/data/maps/FuchsiaCity_Gym/scripts.inc +++ b/data/maps/FuchsiaCity_Gym/scripts.inc @@ -2,25 +2,20 @@ FuchsiaCity_Gym_MapScripts:: @ 816D54D .byte 0 FuchsiaCity_Gym_EventScript_16D54E:: @ 816D54E - setvar VAR_0x8004, 6 - setvar VAR_0x8005, 2 - special UpdatePickStateFromSpecialVar8005 - trainerbattle 1, 418, 0, Text_19832E, Text_198444, EventScript_16D580 - checkflag FLAG_0x259 - goto_if 0, EventScript_16D5A6 + famechecker FAMECHECKER_KOGA, FCPICKSTATE_COLORED, UpdatePickStateFromSpecialVar8005 + trainerbattle TRAINER_BATTLE_CONTINUE_SCRIPT_NO_MUSIC, TRAINER_LEADER_KOGA, 0, Text_19832E, Text_198444, EventScript_16D580 + checkflag FLAG_GOT_TM06_FROM_KOGA + goto_if FALSE, EventScript_16D5A6 msgbox gUnknown_8198481 release end EventScript_16D580:: @ 816D580 - setvar VAR_0x8004, 6 - setvar VAR_0x8005, 1 - special SetFlavorTextFlagFromSpecialVars - clearflag FLAG_0x09F - setflag FLAG_0x4B4 - setflag FLAG_UNK824 - setvar VAR_0x8008, 5 - call EventScript_1A6B18 + famechecker FAMECHECKER_KOGA, 1 + clearflag FLAG_HIDE_FAME_CHECKER_KOGA_JOURNAL + setflag FLAG_DEFEATED_KOGA + setflag FLAG_BADGE05_GET + set_gym_trainers 5 goto EventScript_16D5A6 end @@ -28,10 +23,10 @@ EventScript_16D5A6:: @ 816D5A6 msgbox gUnknown_819850E checkitemspace ITEM_TM06, 1 compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_16D5E7 + goto_if eq, EventScript_16D5E7 additem ITEM_TM06, 1 giveitemfanfaremsg gUnknown_819858F, ITEM_TM06 - setflag FLAG_0x259 + setflag FLAG_GOT_TM06_FROM_KOGA msgbox gUnknown_81985AB release end @@ -42,43 +37,41 @@ EventScript_16D5E7:: @ 816D5E7 end FuchsiaCity_Gym_EventScript_16D5F1:: @ 816D5F1 - trainerbattle 0, 294, 0, Text_198866, Text_1988B6 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_TAMER_PHIL, 0, Text_198866, Text_1988B6 msgbox gUnknown_81988CB, 6 end FuchsiaCity_Gym_EventScript_16D608:: @ 816D608 - trainerbattle 0, 295, 0, Text_19891F, Text_19897F + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_TAMER_EDGAR, 0, Text_19891F, Text_19897F msgbox gUnknown_8198985, 6 end FuchsiaCity_Gym_EventScript_16D61F:: @ 816D61F - trainerbattle 0, 288, 0, Text_19871E, Text_198779 - setvar VAR_0x8004, 6 - setvar VAR_0x8005, 2 - special SetFlavorTextFlagFromSpecialVars + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_JUGGLER_KIRK, 0, Text_19871E, Text_198779 + famechecker FAMECHECKER_KOGA, 2 msgbox gUnknown_8198787, 6 end FuchsiaCity_Gym_EventScript_16D643:: @ 816D643 - trainerbattle 0, 289, 0, Text_1989A1, Text_1989EA + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_JUGGLER_SHAWN, 0, Text_1989A1, Text_1989EA msgbox gUnknown_8198A10, 6 end FuchsiaCity_Gym_EventScript_16D65A:: @ 816D65A - trainerbattle 0, 292, 0, Text_198629, Text_1986B4 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_JUGGLER_KAYDEN, 0, Text_198629, Text_1986B4 msgbox gUnknown_81986C9, 6 end FuchsiaCity_Gym_EventScript_16D671:: @ 816D671 - trainerbattle 0, 293, 0, Text_1987E8, Text_198812 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_JUGGLER_NATE, 0, Text_1987E8, Text_198812 msgbox gUnknown_8198825, 6 end FuchsiaCity_Gym_EventScript_16D688:: @ 816D688 lock faceplayer - checkflag FLAG_0x4B4 - goto_if_eq EventScript_16D69D + checkflag FLAG_DEFEATED_KOGA + goto_if TRUE, EventScript_16D69D msgbox gUnknown_8198A5E release end @@ -90,8 +83,8 @@ EventScript_16D69D:: @ 816D69D FuchsiaCity_Gym_EventScript_16D6A7:: @ 816D6A7 lockall - checkflag FLAG_UNK824 - goto_if_eq EventScript_16D6BB + checkflag FLAG_BADGE05_GET + goto_if TRUE, EventScript_16D6BB msgbox gUnknown_8198B4B releaseall end diff --git a/data/maps/FuchsiaCity_House1/map.json b/data/maps/FuchsiaCity_House1/map.json index 7f6e645b4..a0b11d62e 100644 --- a/data/maps/FuchsiaCity_House1/map.json +++ b/data/maps/FuchsiaCity_House1/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "32", + "graphics_id": "MAP_OBJ_GFX_OLD_MAN_1", "x": 7, "y": 4, "elevation": 3, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "28", + "graphics_id": "MAP_OBJ_GFX_WOMAN_2", "x": 1, "y": 2, "elevation": 3, @@ -40,7 +40,7 @@ "flag": "0" }, { - "graphics_id": "16", + "graphics_id": "MAP_OBJ_GFX_LITTLE_BOY", "x": 2, "y": 5, "elevation": 3, diff --git a/data/maps/FuchsiaCity_House1/scripts.inc b/data/maps/FuchsiaCity_House1/scripts.inc index 9ff2ecb93..32be06c57 100644 --- a/data/maps/FuchsiaCity_House1/scripts.inc +++ b/data/maps/FuchsiaCity_House1/scripts.inc @@ -8,9 +8,7 @@ FuchsiaCity_House1_EventScript_16D6C6:: @ 816D6C6 FuchsiaCity_House1_EventScript_16D6CF:: @ 816D6CF lock faceplayer - setvar VAR_0x8004, 13 @ FAMECHECKER_BILL - setvar VAR_0x8005, 2 - special SetFlavorTextFlagFromSpecialVars + famechecker FAMECHECKER_BILL, 2 msgbox gUnknown_8198C1F release end diff --git a/data/maps/FuchsiaCity_House2/map.json b/data/maps/FuchsiaCity_House2/map.json index 5aeaa2b32..2f57e17fb 100644 --- a/data/maps/FuchsiaCity_House2/map.json +++ b/data/maps/FuchsiaCity_House2/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "57", + "graphics_id": "MAP_OBJ_GFX_FISHER", "x": 6, "y": 5, "elevation": 3, diff --git a/data/maps/FuchsiaCity_House2/scripts.inc b/data/maps/FuchsiaCity_House2/scripts.inc index 0568d4e4f..4470655ff 100644 --- a/data/maps/FuchsiaCity_House2/scripts.inc +++ b/data/maps/FuchsiaCity_House2/scripts.inc @@ -4,11 +4,11 @@ FuchsiaCity_House2_MapScripts:: @ 816D816 FuchsiaCity_House2_EventScript_16D817:: @ 816D817 lock faceplayer - checkflag FLAG_0x244 - goto_if_eq EventScript_16D83F + checkflag FLAG_GOT_GOOD_ROD + goto_if TRUE, EventScript_16D83F msgbox gUnknown_819918E, MSGBOX_YESNO compare_var_to_value VAR_RESULT, 1 - goto_if_eq EventScript_16D849 + goto_if eq, EventScript_16D849 msgbox gUnknown_8199337 release end @@ -22,11 +22,11 @@ EventScript_16D849:: @ 816D849 msgbox gUnknown_8199207 checkitemspace ITEM_GOOD_ROD, 1 compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_16D88A + goto_if eq, EventScript_16D88A additem ITEM_GOOD_ROD, 1 giveitemfanfaremsg gUnknown_819925E, ITEM_GOOD_ROD msgbox gUnknown_8199296 - setflag FLAG_0x244 + setflag FLAG_GOT_GOOD_ROD release end diff --git a/data/maps/FuchsiaCity_House3/map.json b/data/maps/FuchsiaCity_House3/map.json index 2267848fc..4e47edc91 100644 --- a/data/maps/FuchsiaCity_House3/map.json +++ b/data/maps/FuchsiaCity_House3/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "30", + "graphics_id": "MAP_OBJ_GFX_BALDING_MAN", "x": 4, "y": 4, "elevation": 3, diff --git a/data/maps/FuchsiaCity_House3/scripts.inc b/data/maps/FuchsiaCity_House3/scripts.inc index e295ad46d..da4f19e60 100644 --- a/data/maps/FuchsiaCity_House3/scripts.inc +++ b/data/maps/FuchsiaCity_House3/scripts.inc @@ -6,37 +6,37 @@ FuchsiaCity_House3_EventScript_16D895:: @ 816D895 faceplayer msgbox gUnknown_81993B9, MSGBOX_YESNO compare_var_to_value VAR_RESULT, 1 - goto_if_eq EventScript_16D8B0 + goto_if eq, EventScript_16D8B0 goto EventScript_16D941 end EventScript_16D8B0:: @ 816D8B0 msgbox gUnknown_8199421 - special sub_80BF8FC + special Special_ChooseMonFromParty waitstate compare_var_to_value VAR_0x8004, 6 - goto_if 4, EventScript_16D941 - special sub_80BFC14 + goto_if ge, EventScript_16D941 + special IsSelectedMonEgg compare_var_to_value VAR_RESULT, 1 - goto_if_eq EventScript_16D937 + goto_if eq, EventScript_16D937 special ScrSpecial_CountPokemonMoves compare_var_to_value VAR_RESULT, 1 - goto_if_eq EventScript_16D92A + goto_if eq, EventScript_16D92A msgbox gUnknown_8199445 fadescreen 1 - special sub_80BF9BC + special SelectMove fadescreen 0 compare_var_to_value VAR_0x8005, 4 - goto_if_eq EventScript_16D8B0 + goto_if eq, EventScript_16D8B0 special ScrSpecial_GetPokemonNicknameAndMoveName msgbox gUnknown_8199485, MSGBOX_YESNO compare_var_to_value VAR_RESULT, 1 - goto_if_eq EventScript_16D919 + goto_if eq, EventScript_16D919 goto EventScript_16D941 end EventScript_16D919:: @ 816D919 - special sub_80BFBA8 + special DeleteMonMove playfanfare MUS_ME_WASURE waitfanfare msgbox gUnknown_81994B1 diff --git a/data/maps/FuchsiaCity_Mart/map.json b/data/maps/FuchsiaCity_Mart/map.json index fcdd61d33..d8da727b1 100644 --- a/data/maps/FuchsiaCity_Mart/map.json +++ b/data/maps/FuchsiaCity_Mart/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "68", + "graphics_id": "MAP_OBJ_GFX_CLERK", "x": 2, "y": 3, "elevation": 0, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "61", + "graphics_id": "MAP_OBJ_GFX_GENTLEMAN", "x": 6, "y": 3, "elevation": 3, @@ -40,7 +40,7 @@ "flag": "0" }, { - "graphics_id": "42", + "graphics_id": "MAP_OBJ_GFX_COOLTRAINER_F", "x": 9, "y": 5, "elevation": 3, diff --git a/data/maps/FuchsiaCity_Mart/scripts.inc b/data/maps/FuchsiaCity_Mart/scripts.inc index fe95c748c..dea51b320 100644 --- a/data/maps/FuchsiaCity_Mart/scripts.inc +++ b/data/maps/FuchsiaCity_Mart/scripts.inc @@ -12,7 +12,7 @@ FuchsiaCity_Mart_EventScript_16D4EA:: @ 816D4EA FuchsiaCity_Mart_EventScript_16D4F3:: @ 816D4F3 special sub_8110AB4 compare_var_to_value VAR_RESULT, 2 - goto_if_eq EventScript_1A7AE0 + goto_if eq, EventScript_1A7AE0 lock faceplayer message Text_1A6211 diff --git a/data/maps/FuchsiaCity_PokemonCenter_1F/map.json b/data/maps/FuchsiaCity_PokemonCenter_1F/map.json index 4b711686d..6246ddfb2 100644 --- a/data/maps/FuchsiaCity_PokemonCenter_1F/map.json +++ b/data/maps/FuchsiaCity_PokemonCenter_1F/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "64", + "graphics_id": "MAP_OBJ_GFX_NURSE", "x": 7, "y": 2, "elevation": 3, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "25", + "graphics_id": "MAP_OBJ_GFX_MAN", "x": 12, "y": 5, "elevation": 3, @@ -40,7 +40,7 @@ "flag": "0" }, { - "graphics_id": "42", + "graphics_id": "MAP_OBJ_GFX_COOLTRAINER_F", "x": 13, "y": 3, "elevation": 3, @@ -53,7 +53,7 @@ "flag": "0" }, { - "graphics_id": "18", + "graphics_id": "MAP_OBJ_GFX_YOUNGSTER", "x": 4, "y": 8, "elevation": 3, diff --git a/data/maps/FuchsiaCity_PokemonCenter_2F/map.json b/data/maps/FuchsiaCity_PokemonCenter_2F/map.json index 6b0547ad4..c54ed2085 100644 --- a/data/maps/FuchsiaCity_PokemonCenter_2F/map.json +++ b/data/maps/FuchsiaCity_PokemonCenter_2F/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "65", + "graphics_id": "MAP_OBJ_GFX_CABLE_CLUB_RECEPTIONIST", "x": 6, "y": 2, "elevation": 3, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "65", + "graphics_id": "MAP_OBJ_GFX_CABLE_CLUB_RECEPTIONIST", "x": 2, "y": 2, "elevation": 3, @@ -40,7 +40,7 @@ "flag": "0" }, { - "graphics_id": "65", + "graphics_id": "MAP_OBJ_GFX_CABLE_CLUB_RECEPTIONIST", "x": 10, "y": 2, "elevation": 3, @@ -53,7 +53,7 @@ "flag": "0" }, { - "graphics_id": "69", + "graphics_id": "MAP_OBJ_GFX_MG_DELIVERYMAN", "x": 1, "y": 2, "elevation": 3, @@ -63,7 +63,7 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "FuchsiaCity_PokemonCenter_2F_EventScript_1BB1D2", - "flag": "112" + "flag": "FLAG_HIDE_MG_DELIVERYMEN" } ], "warp_events": [ diff --git a/data/maps/FuchsiaCity_SafariZone_Entrance/map.json b/data/maps/FuchsiaCity_SafariZone_Entrance/map.json index bbfc3846f..d0451f0aa 100644 --- a/data/maps/FuchsiaCity_SafariZone_Entrance/map.json +++ b/data/maps/FuchsiaCity_SafariZone_Entrance/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "47", + "graphics_id": "MAP_OBJ_GFX_WORKER_M", "x": 7, "y": 3, "elevation": 3, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "47", + "graphics_id": "MAP_OBJ_GFX_WORKER_M", "x": 1, "y": 6, "elevation": 3, diff --git a/data/maps/FuchsiaCity_SafariZone_Entrance/scripts.inc b/data/maps/FuchsiaCity_SafariZone_Entrance/scripts.inc index d9bcea13d..16b796efe 100644 --- a/data/maps/FuchsiaCity_SafariZone_Entrance/scripts.inc +++ b/data/maps/FuchsiaCity_SafariZone_Entrance/scripts.inc @@ -39,7 +39,7 @@ EventScript_16D312:: @ 816D312 textcolor 0 msgbox gUnknown_8197E1A, MSGBOX_YESNO compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_16D345 + goto_if eq, EventScript_16D345 msgbox gUnknown_8197E48 closemessage applymovement 255, Movement_16D362 @@ -103,7 +103,7 @@ EventScript_16D391:: @ 816D391 showmoneybox 0, 0, 0 msgbox gUnknown_8197C87, MSGBOX_YESNO compare_var_to_value VAR_RESULT, 1 - goto_if_eq EventScript_16D3CA + goto_if eq, EventScript_16D3CA msgbox gUnknown_8197DE9 goto EventScript_16D49A end @@ -112,7 +112,7 @@ EventScript_16D3CA:: @ 816D3CA call EventScript_16D462 checkmoney 500, 0 compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_16D48C + goto_if eq, EventScript_16D48C takemoney 500, 0 updatemoneybox 0, 0, 0 msgbox gUnknown_8197D07 @@ -127,11 +127,11 @@ EventScript_16D3CA:: @ 816D3CA .byte 0 .byte 0 compare_var_to_value VAR_0x4002, 0 - call_if 1, EventScript_16D44C + call_if eq, EventScript_16D44C compare_var_to_value VAR_0x4002, 1 - call_if 1, EventScript_16D441 + call_if eq, EventScript_16D441 compare_var_to_value VAR_0x4002, 2 - call_if 1, EventScript_16D457 + call_if eq, EventScript_16D457 special EnterSafariMode setvar VAR_MAP_SCENE_FUCHSIA_CITY_SAFARI_ZONE_ENTRANCE, 2 warp MAP_SAFARI_ZONE_CENTER, 255, 26, 30 @@ -156,10 +156,10 @@ EventScript_16D457:: @ 816D457 EventScript_16D462:: @ 816D462 countpokemon compare_var_to_value VAR_RESULT, 6 - goto_if 5, EventScript_1A77A9 - specialvar VAR_RESULT, sub_80CABD0 + goto_if ne, EventScript_1A77A9 + specialvar VAR_RESULT, Special_IsThereRoomInAnyBoxForMorePokemon compare_var_to_value VAR_RESULT, 1 - goto_if_eq EventScript_1A77A9 + goto_if eq, EventScript_1A77A9 msgbox gUnknown_81BFEAC goto EventScript_16D49A end @@ -205,7 +205,7 @@ FuchsiaCity_SafariZone_Entrance_EventScript_16D4B7:: @ 816D4B7 faceplayer msgbox gUnknown_8197EB0, MSGBOX_YESNO compare_var_to_value VAR_RESULT, 1 - goto_if_eq EventScript_16D4D6 + goto_if eq, EventScript_16D4D6 msgbox gUnknown_819809E release end diff --git a/data/maps/FuchsiaCity_ZooBuilding/map.json b/data/maps/FuchsiaCity_ZooBuilding/map.json index 39114ccdb..42e36142c 100644 --- a/data/maps/FuchsiaCity_ZooBuilding/map.json +++ b/data/maps/FuchsiaCity_ZooBuilding/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "47", + "graphics_id": "MAP_OBJ_GFX_WORKER_M", "x": 2, "y": 2, "elevation": 3, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "47", + "graphics_id": "MAP_OBJ_GFX_WORKER_M", "x": 12, "y": 3, "elevation": 3, @@ -40,7 +40,7 @@ "flag": "0" }, { - "graphics_id": "47", + "graphics_id": "MAP_OBJ_GFX_WORKER_M", "x": 6, "y": 4, "elevation": 3, @@ -53,7 +53,7 @@ "flag": "0" }, { - "graphics_id": "47", + "graphics_id": "MAP_OBJ_GFX_WORKER_M", "x": 10, "y": 8, "elevation": 3, diff --git a/data/maps/IndigoPlateau_Exterior/map.json b/data/maps/IndigoPlateau_Exterior/map.json index 90973993a..9a4761ba7 100644 --- a/data/maps/IndigoPlateau_Exterior/map.json +++ b/data/maps/IndigoPlateau_Exterior/map.json @@ -20,7 +20,7 @@ ], "object_events": [ { - "graphics_id": "72", + "graphics_id": "MAP_OBJ_GFX_BLUE", "x": 11, "y": 6, "elevation": 0, @@ -30,10 +30,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "0x0", - "flag": "163" + "flag": "FLAG_HIDE_CREDITS_RIVAL" }, { - "graphics_id": "71", + "graphics_id": "MAP_OBJ_GFX_PROF_OAK", "x": 11, "y": 6, "elevation": 0, @@ -43,7 +43,7 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "0x0", - "flag": "164" + "flag": "FLAG_HIDE_CREDITS_OAK" } ], "warp_events": [ diff --git a/data/maps/IndigoPlateau_Exterior/scripts.inc b/data/maps/IndigoPlateau_Exterior/scripts.inc index a3112a2cf..01f9f6a62 100644 --- a/data/maps/IndigoPlateau_Exterior/scripts.inc +++ b/data/maps/IndigoPlateau_Exterior/scripts.inc @@ -6,33 +6,43 @@ IndigoPlateau_Exterior_MapScripts:: @ 816723B IndigoPlateau_Exterior_MapScript1_167246:: @ 8167246 setworldmapflag FLAG_WORLD_MAP_INDIGO_PLATEAU_EXTERIOR compare_var_to_value VAR_MAP_SCENE_INDIGO_PLATEAU_EXTERIOR, 1 - call_if 1, EventScript_167255 + call_if eq, EventScript_IndigoPlateau_Exterior_PlayCreditsMusic end -EventScript_167255:: @ 8167255 +EventScript_IndigoPlateau_Exterior_PlayCreditsMusic:: @ 8167255 playbgm MUS_ENDING, 0 return IndigoPlateau_Exterior_MapScript2_16725A:: @ 816725A - map_script_2 VAR_MAP_SCENE_INDIGO_PLATEAU_EXTERIOR, 1, EventScript_167264 + map_script_2 VAR_MAP_SCENE_INDIGO_PLATEAU_EXTERIOR, 1, EventScript_IndigoPlateau_Exterior_Credits .2byte 0 -EventScript_167264:: @ 8167264 +EventScript_IndigoPlateau_Exterior_Credits:: @ 8167264 + @ After beating the champion, you are warped to the main + @ entrance of Indigo Plateau. This script starts running + @ immediately after your walking animation. + @ The script is timed to the music. lockall delay 105 + + @ Rival exits building. Spawn a dummy object to lock the camera. opendoor 11, 6 waitdooranim - special SpawnScriptFieldObject + special SpawnCameraObject addobject 1 applymovement 1, Movement_167346 applymovement 255, Movement_167337 waitmovement 0 closedoor 11, 6 waitdooranim + + @ Rival runs off applymovement 255, Movement_16731B applymovement 1, Movement_16733E waitmovement 0 delay 100 + + @ Oak exits building opendoor 11, 6 waitdooranim addobject 2 @@ -41,6 +51,8 @@ EventScript_167264:: @ 8167264 closedoor 11, 6 waitdooranim delay 160 + + @ Oak looks at player, then walks off applymovement 255, Movement_16731F applymovement 2, Movement_167348 waitmovement 0 @@ -48,18 +60,24 @@ EventScript_167264:: @ 8167264 applymovement 255, Movement_16732E waitmovement 0 delay 155 + + @ Player turns to face the League applymovement 255, Movement_16733C waitmovement 0 delay 90 + + @ Player runs off applymovement 255, Movement_167335 waitmovement 0 applymovement 255, Movement_167311 waitmovement 0 - special RemoveScriptFieldObject + + @ Reset the map state and roll the credits + special RemoveCameraObject setvar VAR_MAP_SCENE_INDIGO_PLATEAU_EXTERIOR, 0 removeobject 1 removeobject 2 - special Special_Credits + special Special_Credits @ noreturn waitstate releaseall end diff --git a/data/maps/IndigoPlateau_PokemonCenter_1F/map.json b/data/maps/IndigoPlateau_PokemonCenter_1F/map.json index 3d9919ed1..f86588559 100644 --- a/data/maps/IndigoPlateau_PokemonCenter_1F/map.json +++ b/data/maps/IndigoPlateau_PokemonCenter_1F/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "68", + "graphics_id": "MAP_OBJ_GFX_CLERK", "x": 0, "y": 7, "elevation": 3, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "64", + "graphics_id": "MAP_OBJ_GFX_NURSE", "x": 13, "y": 10, "elevation": 3, @@ -40,7 +40,7 @@ "flag": "0" }, { - "graphics_id": "91", + "graphics_id": "MAP_OBJ_GFX_GYM_GUY", "x": 7, "y": 14, "elevation": 3, @@ -53,7 +53,7 @@ "flag": "0" }, { - "graphics_id": "42", + "graphics_id": "MAP_OBJ_GFX_COOLTRAINER_F", "x": 5, "y": 3, "elevation": 3, @@ -66,7 +66,7 @@ "flag": "0" }, { - "graphics_id": "54", + "graphics_id": "MAP_OBJ_GFX_BLACKBELT", "x": 23, "y": 13, "elevation": 3, @@ -76,7 +76,7 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "IndigoPlateau_PokemonCenter_1F_EventScript_1ACFAE", - "flag": "157" + "flag": "FLAG_HIDE_POSTGAME_GOSSIPERS" }, { "graphics_id": "0", @@ -89,10 +89,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "IndigoPlateau_PokemonCenter_1F_EventScript_1AD06C", - "flag": "157" + "flag": "FLAG_HIDE_POSTGAME_GOSSIPERS" }, { - "graphics_id": "41", + "graphics_id": "MAP_OBJ_GFX_COOLTRAINER_M", "x": 16, "y": 15, "elevation": 3, @@ -102,7 +102,7 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "IndigoPlateau_PokemonCenter_1F_EventScript_1AD087", - "flag": "157" + "flag": "FLAG_HIDE_POSTGAME_GOSSIPERS" }, { "graphics_id": "0", @@ -115,7 +115,7 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "IndigoPlateau_PokemonCenter_1F_EventScript_1AD06C", - "flag": "157" + "flag": "FLAG_HIDE_POSTGAME_GOSSIPERS" } ], "warp_events": [ diff --git a/data/maps/IndigoPlateau_PokemonCenter_1F/scripts.inc b/data/maps/IndigoPlateau_PokemonCenter_1F/scripts.inc index 048ca96d6..f3c9c7c3f 100644 --- a/data/maps/IndigoPlateau_PokemonCenter_1F/scripts.inc +++ b/data/maps/IndigoPlateau_PokemonCenter_1F/scripts.inc @@ -7,12 +7,12 @@ IndigoPlateau_PokemonCenter_1F_MapScript1_16EA65:: @ 816EA65 setrespawn SPAWN_INDIGO_PLATEAU specialvar VAR_RESULT, IsNationalPokedexEnabled compare_var_to_value VAR_RESULT, 1 - call_if 1, EventScript_16EA79 + call_if eq, EventScript_16EA79 end EventScript_16EA79:: @ 816EA79 - checkflag FLAG_0x844 - goto_if_eq EventScript_1A77A9 + checkflag FLAG_SYS_CAN_LINK_WITH_RS + goto_if TRUE, EventScript_1A77A9 setobjectxyperm 4, 4, 2 return @@ -21,14 +21,14 @@ IndigoPlateau_PokemonCenter_1F_EventScript_16EA8A:: @ 816EA8A faceplayer specialvar VAR_RESULT, IsNationalPokedexEnabled compare_var_to_value VAR_RESULT, 1 - goto_if_eq EventScript_16EAA6 + goto_if eq, EventScript_16EAA6 msgbox gUnknown_819A8D8 release end EventScript_16EAA6:: @ 816EAA6 - checkflag FLAG_0x844 - goto_if_eq EventScript_16EAB9 + checkflag FLAG_SYS_CAN_LINK_WITH_RS + goto_if TRUE, EventScript_16EAB9 msgbox gUnknown_819A943 release end @@ -45,7 +45,7 @@ IndigoPlateau_PokemonCenter_1F_EventScript_16EAC3:: @ 816EAC3 IndigoPlateau_PokemonCenter_1F_EventScript_16EACC:: @ 816EACC special sub_8110AB4 compare_var_to_value VAR_RESULT, 2 - goto_if_eq EventScript_1A7AE0 + goto_if eq, EventScript_1A7AE0 lock faceplayer message Text_1A6211 diff --git a/data/maps/IndigoPlateau_PokemonCenter_2F/map.json b/data/maps/IndigoPlateau_PokemonCenter_2F/map.json index 646c4d178..7da5e0706 100644 --- a/data/maps/IndigoPlateau_PokemonCenter_2F/map.json +++ b/data/maps/IndigoPlateau_PokemonCenter_2F/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "65", + "graphics_id": "MAP_OBJ_GFX_CABLE_CLUB_RECEPTIONIST", "x": 6, "y": 2, "elevation": 3, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "65", + "graphics_id": "MAP_OBJ_GFX_CABLE_CLUB_RECEPTIONIST", "x": 2, "y": 2, "elevation": 3, @@ -40,7 +40,7 @@ "flag": "0" }, { - "graphics_id": "65", + "graphics_id": "MAP_OBJ_GFX_CABLE_CLUB_RECEPTIONIST", "x": 10, "y": 2, "elevation": 3, @@ -53,7 +53,7 @@ "flag": "0" }, { - "graphics_id": "69", + "graphics_id": "MAP_OBJ_GFX_MG_DELIVERYMAN", "x": 1, "y": 2, "elevation": 3, @@ -63,7 +63,7 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "IndigoPlateau_PokemonCenter_2F_EventScript_1BB1D2", - "flag": "112" + "flag": "FLAG_HIDE_MG_DELIVERYMEN" } ], "warp_events": [ diff --git a/data/maps/LavenderTown/map.json b/data/maps/LavenderTown/map.json index a7c2dcd10..ff8bd94a4 100644 --- a/data/maps/LavenderTown/map.json +++ b/data/maps/LavenderTown/map.json @@ -30,7 +30,7 @@ ], "object_events": [ { - "graphics_id": "17", + "graphics_id": "MAP_OBJ_GFX_LITTLE_GIRL", "x": 19, "y": 10, "elevation": 3, @@ -43,7 +43,7 @@ "flag": "0" }, { - "graphics_id": "47", + "graphics_id": "MAP_OBJ_GFX_WORKER_M", "x": 12, "y": 12, "elevation": 3, @@ -56,7 +56,7 @@ "flag": "0" }, { - "graphics_id": "19", + "graphics_id": "MAP_OBJ_GFX_BOY", "x": 10, "y": 7, "elevation": 3, diff --git a/data/maps/LavenderTown/scripts.inc b/data/maps/LavenderTown/scripts.inc index 999662e6e..dfd6cb3d7 100644 --- a/data/maps/LavenderTown/scripts.inc +++ b/data/maps/LavenderTown/scripts.inc @@ -4,8 +4,8 @@ LavenderTown_MapScripts:: @ 816686B LavenderTown_MapScript1_166871:: @ 8166871 setworldmapflag FLAG_WORLD_MAP_LAVENDER_TOWN - setvar VAR_0x405B, 1 - setflag FLAG_0x03D + setvar VAR_MAP_SCENE_S_S_ANNE_2F_CORRIDOR, 1 + setflag FLAG_HIDE_SS_ANNE_RIVAL end LavenderTown_EventScript_16687D:: @ 816687D @@ -13,7 +13,7 @@ LavenderTown_EventScript_16687D:: @ 816687D faceplayer msgbox gUnknown_817F52E, MSGBOX_YESNO compare_var_to_value VAR_RESULT, 1 - goto_if_eq EventScript_16689C + goto_if eq, EventScript_16689C msgbox gUnknown_817F568 release end diff --git a/data/maps/LavenderTown_House1/map.json b/data/maps/LavenderTown_House1/map.json index d733b6630..8cd810223 100644 --- a/data/maps/LavenderTown_House1/map.json +++ b/data/maps/LavenderTown_House1/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "42", + "graphics_id": "MAP_OBJ_GFX_COOLTRAINER_F", "x": 4, "y": 4, "elevation": 3, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "111", + "graphics_id": "MAP_OBJ_GFX_CUBONE", "x": 8, "y": 6, "elevation": 3, diff --git a/data/maps/LavenderTown_House1/scripts.inc b/data/maps/LavenderTown_House1/scripts.inc index 8f7ba9d44..2469d4503 100644 --- a/data/maps/LavenderTown_House1/scripts.inc +++ b/data/maps/LavenderTown_House1/scripts.inc @@ -4,8 +4,8 @@ LavenderTown_House1_MapScripts:: @ 816B232 LavenderTown_House1_EventScript_16B233:: @ 816B233 lock faceplayer - checkflag FLAG_0x23C - goto_if_eq EventScript_16B248 + checkflag FLAG_RESCUED_MR_FUJI + goto_if TRUE, EventScript_16B248 msgbox gUnknown_819397D release end diff --git a/data/maps/LavenderTown_House2/map.json b/data/maps/LavenderTown_House2/map.json index aa17b7d39..5d754bc7c 100644 --- a/data/maps/LavenderTown_House2/map.json +++ b/data/maps/LavenderTown_House2/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "61", + "graphics_id": "MAP_OBJ_GFX_GENTLEMAN", "x": 4, "y": 4, "elevation": 3, diff --git a/data/maps/LavenderTown_House2/scripts.inc b/data/maps/LavenderTown_House2/scripts.inc index 0a5c708ab..cd9e5e8d7 100644 --- a/data/maps/LavenderTown_House2/scripts.inc +++ b/data/maps/LavenderTown_House2/scripts.inc @@ -6,19 +6,19 @@ LavenderTown_House2_EventScript_16B266:: @ 816B266 faceplayer msgbox gUnknown_8193A4B, MSGBOX_YESNO compare_var_to_value VAR_RESULT, 1 - goto_if_eq EventScript_16B287 + goto_if eq, EventScript_16B287 compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_16B2AA + goto_if eq, EventScript_16B2AA end EventScript_16B287:: @ 816B287 msgbox gUnknown_8193AA6 - special sub_80BF8FC + special Special_ChooseMonFromParty waitstate compare_var_to_value VAR_0x8004, 6 - goto_if 0, EventScript_16B2B4 + goto_if lt, EventScript_16B2B4 compare_var_to_value VAR_0x8004, 6 - goto_if 4, EventScript_16B2AA + goto_if ge, EventScript_16B2AA end EventScript_16B2AA:: @ 816B2AA @@ -27,22 +27,22 @@ EventScript_16B2AA:: @ 816B2AA end EventScript_16B2B4:: @ 816B2B4 - specialvar VAR_RESULT, sub_80CAD54 + specialvar VAR_RESULT, Special_GetSpeciesOfPartySlot_x8004 compare_var_to_value VAR_RESULT, SPECIES_EGG - goto_if_eq EventScript_16B307 + goto_if eq, EventScript_16B307 special TV_CopyNicknameToStringVar1AndEnsureTerminated special TV_CheckMonOTIDEqualsPlayerID compare_var_to_value VAR_RESULT, 1 - goto_if_eq EventScript_16B311 - specialvar VAR_RESULT, sub_80CAD7C + goto_if eq, EventScript_16B311 + specialvar VAR_RESULT, Special_BufferMonOTNameAndCompareToPlayerName special TV_CopyNicknameToStringVar1AndEnsureTerminated compare_var_to_value VAR_RESULT, 1 - goto_if_eq EventScript_16B311 + goto_if eq, EventScript_16B311 msgbox gUnknown_8193AD2, MSGBOX_YESNO compare_var_to_value VAR_RESULT, 1 - goto_if_eq EventScript_16B31B + goto_if eq, EventScript_16B31B compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_16B2AA + goto_if eq, EventScript_16B2AA end EventScript_16B307:: @ 816B307 @@ -58,10 +58,10 @@ EventScript_16B311:: @ 816B311 EventScript_16B31B:: @ 816B31B msgbox gUnknown_8193B36 call EventScript_1A74EB - specialvar VAR_RESULT, sub_80CBFA0 + specialvar VAR_RESULT, NameRaterWasNicknameChanged special TV_CopyNicknameToStringVar1AndEnsureTerminated compare_var_to_value VAR_RESULT, 1 - goto_if_eq EventScript_16B345 + goto_if eq, EventScript_16B345 msgbox gUnknown_8193BF0 release end diff --git a/data/maps/LavenderTown_Mart/map.json b/data/maps/LavenderTown_Mart/map.json index b944ac24e..fab6c58ac 100644 --- a/data/maps/LavenderTown_Mart/map.json +++ b/data/maps/LavenderTown_Mart/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "68", + "graphics_id": "MAP_OBJ_GFX_CLERK", "x": 2, "y": 3, "elevation": 0, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "30", + "graphics_id": "MAP_OBJ_GFX_BALDING_MAN", "x": 6, "y": 2, "elevation": 3, @@ -40,7 +40,7 @@ "flag": "0" }, { - "graphics_id": "26", + "graphics_id": "MAP_OBJ_GFX_ROCKER", "x": 9, "y": 2, "elevation": 3, @@ -53,7 +53,7 @@ "flag": "0" }, { - "graphics_id": "18", + "graphics_id": "MAP_OBJ_GFX_YOUNGSTER", "x": 9, "y": 5, "elevation": 3, diff --git a/data/maps/LavenderTown_Mart/scripts.inc b/data/maps/LavenderTown_Mart/scripts.inc index 380af6e9d..47cef8633 100644 --- a/data/maps/LavenderTown_Mart/scripts.inc +++ b/data/maps/LavenderTown_Mart/scripts.inc @@ -16,7 +16,7 @@ LavenderTown_Mart_EventScript_16B362:: @ 816B362 LavenderTown_Mart_EventScript_16B36B:: @ 816B36B special sub_8110AB4 compare_var_to_value VAR_RESULT, 2 - goto_if_eq EventScript_1A7AE0 + goto_if eq, EventScript_1A7AE0 lock faceplayer message Text_1A6211 diff --git a/data/maps/LavenderTown_PokemonCenter_1F/map.json b/data/maps/LavenderTown_PokemonCenter_1F/map.json index 4ef87ccf2..3c3062b4b 100644 --- a/data/maps/LavenderTown_PokemonCenter_1F/map.json +++ b/data/maps/LavenderTown_PokemonCenter_1F/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "64", + "graphics_id": "MAP_OBJ_GFX_NURSE", "x": 7, "y": 2, "elevation": 3, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "61", + "graphics_id": "MAP_OBJ_GFX_GENTLEMAN", "x": 9, "y": 4, "elevation": 3, @@ -40,7 +40,7 @@ "flag": "0" }, { - "graphics_id": "22", + "graphics_id": "MAP_OBJ_GFX_LASS", "x": 5, "y": 6, "elevation": 3, @@ -53,7 +53,7 @@ "flag": "0" }, { - "graphics_id": "18", + "graphics_id": "MAP_OBJ_GFX_YOUNGSTER", "x": 2, "y": 2, "elevation": 3, @@ -66,7 +66,7 @@ "flag": "0" }, { - "graphics_id": "30", + "graphics_id": "MAP_OBJ_GFX_BALDING_MAN", "x": 14, "y": 6, "elevation": 3, @@ -76,7 +76,7 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "LavenderTown_PokemonCenter_1F_EventScript_1AD0A0", - "flag": "157" + "flag": "FLAG_HIDE_POSTGAME_GOSSIPERS" } ], "warp_events": [ diff --git a/data/maps/LavenderTown_PokemonCenter_2F/map.json b/data/maps/LavenderTown_PokemonCenter_2F/map.json index 31112697f..c99020e41 100644 --- a/data/maps/LavenderTown_PokemonCenter_2F/map.json +++ b/data/maps/LavenderTown_PokemonCenter_2F/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "65", + "graphics_id": "MAP_OBJ_GFX_CABLE_CLUB_RECEPTIONIST", "x": 6, "y": 2, "elevation": 3, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "65", + "graphics_id": "MAP_OBJ_GFX_CABLE_CLUB_RECEPTIONIST", "x": 2, "y": 2, "elevation": 3, @@ -40,7 +40,7 @@ "flag": "0" }, { - "graphics_id": "65", + "graphics_id": "MAP_OBJ_GFX_CABLE_CLUB_RECEPTIONIST", "x": 10, "y": 2, "elevation": 3, @@ -53,7 +53,7 @@ "flag": "0" }, { - "graphics_id": "69", + "graphics_id": "MAP_OBJ_GFX_MG_DELIVERYMAN", "x": 1, "y": 2, "elevation": 3, @@ -63,7 +63,7 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "LavenderTown_PokemonCenter_2F_EventScript_1BB1D2", - "flag": "112" + "flag": "FLAG_HIDE_MG_DELIVERYMEN" } ], "warp_events": [ diff --git a/data/maps/LavenderTown_VolunteerPokemonHouse/map.json b/data/maps/LavenderTown_VolunteerPokemonHouse/map.json index 7a917e264..617fae94b 100644 --- a/data/maps/LavenderTown_VolunteerPokemonHouse/map.json +++ b/data/maps/LavenderTown_VolunteerPokemonHouse/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "78", + "graphics_id": "MAP_OBJ_GFX_MR_FUJI", "x": 3, "y": 3, "elevation": 3, @@ -24,10 +24,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "LavenderTown_VolunteerPokemonHouse_EventScript_16B14A", - "flag": "53" + "flag": "FLAG_HIDE_POKEHOUSE_FUJI" }, { - "graphics_id": "124", + "graphics_id": "MAP_OBJ_GFX_NIDORINO", "x": 1, "y": 4, "elevation": 3, @@ -40,7 +40,7 @@ "flag": "0" }, { - "graphics_id": "121", + "graphics_id": "MAP_OBJ_GFX_PSYDUCK", "x": 9, "y": 6, "elevation": 3, @@ -53,7 +53,7 @@ "flag": "0" }, { - "graphics_id": "16", + "graphics_id": "MAP_OBJ_GFX_LITTLE_BOY", "x": 9, "y": 5, "elevation": 3, @@ -66,7 +66,7 @@ "flag": "0" }, { - "graphics_id": "18", + "graphics_id": "MAP_OBJ_GFX_YOUNGSTER", "x": 3, "y": 5, "elevation": 3, @@ -79,7 +79,7 @@ "flag": "0" }, { - "graphics_id": "17", + "graphics_id": "MAP_OBJ_GFX_LITTLE_GIRL", "x": 7, "y": 2, "elevation": 3, diff --git a/data/maps/LavenderTown_VolunteerPokemonHouse/scripts.inc b/data/maps/LavenderTown_VolunteerPokemonHouse/scripts.inc index 6229bf246..d82308203 100644 --- a/data/maps/LavenderTown_VolunteerPokemonHouse/scripts.inc +++ b/data/maps/LavenderTown_VolunteerPokemonHouse/scripts.inc @@ -4,13 +4,13 @@ LavenderTown_VolunteerPokemonHouse_MapScripts:: @ 816B149 LavenderTown_VolunteerPokemonHouse_EventScript_16B14A:: @ 816B14A lock faceplayer - checkflag FLAG_0x23D - goto_if_eq EventScript_16B196 + checkflag FLAG_GOT_POKE_FLUTE + goto_if TRUE, EventScript_16B196 msgbox gUnknown_81936FF checkitemspace ITEM_POKE_FLUTE, 1 compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_16B1A0 - setflag FLAG_0x23D + goto_if eq, EventScript_16B1A0 + setflag FLAG_GOT_POKE_FLUTE additem ITEM_POKE_FLUTE, 1 giveitemfanfaremsg gUnknown_81937BD, ITEM_POKE_FLUTE, 1, MUS_FAN5 msgbox gUnknown_81937E5 @@ -30,9 +30,7 @@ EventScript_16B1A0:: @ 816B1A0 LavenderTown_VolunteerPokemonHouse_EventScript_16B1AA:: @ 816B1AA lock faceplayer - setvar VAR_0x8004, 14 - setvar VAR_0x8005, 0 - special SetFlavorTextFlagFromSpecialVars + famechecker FAMECHECKER_MRFUJI, 0 msgbox gUnknown_8193652 release end @@ -44,8 +42,8 @@ LavenderTown_VolunteerPokemonHouse_EventScript_16B1C3:: @ 816B1C3 LavenderTown_VolunteerPokemonHouse_EventScript_16B1CC:: @ 816B1CC lock faceplayer - checkflag FLAG_0x23C - goto_if_eq EventScript_16B1E1 + checkflag FLAG_RESCUED_MR_FUJI + goto_if TRUE, EventScript_16B1E1 msgbox gUnknown_81935ED release end @@ -77,9 +75,7 @@ LavenderTown_VolunteerPokemonHouse_EventScript_16B1FE:: @ 816B1FE LavenderTown_VolunteerPokemonHouse_EventScript_16B211:: @ 816B211 lockall - setvar VAR_0x8004, 14 - setvar VAR_0x8005, 2 - special SetFlavorTextFlagFromSpecialVars + famechecker FAMECHECKER_MRFUJI, 2 msgbox gUnknown_81938A0 releaseall end diff --git a/data/maps/MtEmber_Exterior/map.json b/data/maps/MtEmber_Exterior/map.json index 7da817efd..1b6927eb8 100644 --- a/data/maps/MtEmber_Exterior/map.json +++ b/data/maps/MtEmber_Exterior/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "56", + "graphics_id": "MAP_OBJ_GFX_HIKER", "x": 29, "y": 45, "elevation": 3, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "49", + "graphics_id": "MAP_OBJ_GFX_ROCKET_M", "x": 41, "y": 40, "elevation": 3, @@ -37,10 +37,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "MtEmber_Exterior_EventScript_16397F", - "flag": "137" + "flag": "FLAG_HIDE_MT_EMBER_EXTERIOR_ROCKETS" }, { - "graphics_id": "49", + "graphics_id": "MAP_OBJ_GFX_ROCKET_M", "x": 42, "y": 40, "elevation": 3, @@ -50,10 +50,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "MtEmber_Exterior_EventScript_1639F0", - "flag": "137" + "flag": "FLAG_HIDE_MT_EMBER_EXTERIOR_ROCKETS" }, { - "graphics_id": "24", + "graphics_id": "MAP_OBJ_GFX_BATTLE_GIRL", "x": 22, "y": 35, "elevation": 3, @@ -66,7 +66,7 @@ "flag": "0" }, { - "graphics_id": "39", + "graphics_id": "MAP_OBJ_GFX_CAMPER", "x": 15, "y": 28, "elevation": 3, @@ -79,7 +79,7 @@ "flag": "0" }, { - "graphics_id": "40", + "graphics_id": "MAP_OBJ_GFX_PICNICKER", "x": 14, "y": 42, "elevation": 3, @@ -92,7 +92,7 @@ "flag": "0" }, { - "graphics_id": "96", + "graphics_id": "MAP_OBJ_GFX_ROCK_SMASH_ROCK", "x": 29, "y": 41, "elevation": 3, @@ -101,11 +101,11 @@ "movement_range_y": 1, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "MtEmber_Exterior_EventScript_1BE00C", - "flag": "18" + "script": "EventScript_InteractWithRockSmashRockObject", + "flag": "FLAG_TEMP_12" }, { - "graphics_id": "96", + "graphics_id": "MAP_OBJ_GFX_ROCK_SMASH_ROCK", "x": 30, "y": 42, "elevation": 3, @@ -114,11 +114,11 @@ "movement_range_y": 1, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "MtEmber_Exterior_EventScript_1BE00C", - "flag": "19" + "script": "EventScript_InteractWithRockSmashRockObject", + "flag": "FLAG_TEMP_13" }, { - "graphics_id": "97", + "graphics_id": "MAP_OBJ_GFX_STRENGTH_BOULDER", "x": 22, "y": 45, "elevation": 3, @@ -127,11 +127,11 @@ "movement_range_y": 0, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "MtEmber_Exterior_EventScript_1BE11D", + "script": "EventScript_InteractWithStrengthBoulderObject", "flag": "0" }, { - "graphics_id": "97", + "graphics_id": "MAP_OBJ_GFX_STRENGTH_BOULDER", "x": 17, "y": 46, "elevation": 3, @@ -140,11 +140,11 @@ "movement_range_y": 0, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "MtEmber_Exterior_EventScript_1BE11D", + "script": "EventScript_InteractWithStrengthBoulderObject", "flag": "0" }, { - "graphics_id": "97", + "graphics_id": "MAP_OBJ_GFX_STRENGTH_BOULDER", "x": 36, "y": 14, "elevation": 3, @@ -153,11 +153,11 @@ "movement_range_y": 0, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "MtEmber_Exterior_EventScript_1BE11D", + "script": "EventScript_InteractWithStrengthBoulderObject", "flag": "0" }, { - "graphics_id": "96", + "graphics_id": "MAP_OBJ_GFX_ROCK_SMASH_ROCK", "x": 34, "y": 14, "elevation": 3, @@ -166,11 +166,11 @@ "movement_range_y": 1, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "MtEmber_Exterior_EventScript_1BE00C", - "flag": "20" + "script": "EventScript_InteractWithRockSmashRockObject", + "flag": "FLAG_TEMP_14" }, { - "graphics_id": "96", + "graphics_id": "MAP_OBJ_GFX_ROCK_SMASH_ROCK", "x": 36, "y": 15, "elevation": 3, @@ -179,11 +179,11 @@ "movement_range_y": 1, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "MtEmber_Exterior_EventScript_1BE00C", - "flag": "21" + "script": "EventScript_InteractWithRockSmashRockObject", + "flag": "FLAG_TEMP_15" }, { - "graphics_id": "97", + "graphics_id": "MAP_OBJ_GFX_STRENGTH_BOULDER", "x": 35, "y": 14, "elevation": 3, @@ -192,11 +192,11 @@ "movement_range_y": 0, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "MtEmber_Exterior_EventScript_1BE11D", + "script": "EventScript_InteractWithStrengthBoulderObject", "flag": "0" }, { - "graphics_id": "97", + "graphics_id": "MAP_OBJ_GFX_STRENGTH_BOULDER", "x": 35, "y": 17, "elevation": 3, @@ -205,11 +205,11 @@ "movement_range_y": 0, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "MtEmber_Exterior_EventScript_1BE11D", + "script": "EventScript_InteractWithStrengthBoulderObject", "flag": "0" }, { - "graphics_id": "96", + "graphics_id": "MAP_OBJ_GFX_ROCK_SMASH_ROCK", "x": 18, "y": 39, "elevation": 3, @@ -218,11 +218,11 @@ "movement_range_y": 1, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "MtEmber_Exterior_EventScript_1BE00C", - "flag": "22" + "script": "EventScript_InteractWithRockSmashRockObject", + "flag": "FLAG_TEMP_16" }, { - "graphics_id": "96", + "graphics_id": "MAP_OBJ_GFX_ROCK_SMASH_ROCK", "x": 19, "y": 40, "elevation": 3, @@ -231,11 +231,11 @@ "movement_range_y": 1, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "MtEmber_Exterior_EventScript_1BE00C", - "flag": "23" + "script": "EventScript_InteractWithRockSmashRockObject", + "flag": "FLAG_TEMP_17" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 13, "y": 6, "elevation": 3, @@ -245,10 +245,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "MtEmber_Exterior_EventScript_1BED2C", - "flag": "493" + "flag": "FLAG_HIDE_MT_EMBER_EXTERIOR_ULTRA_BALL" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 38, "y": 10, "elevation": 3, @@ -258,10 +258,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "MtEmber_Exterior_EventScript_1BED39", - "flag": "494" + "flag": "FLAG_HIDE_MT_EMBER_EXTERIOR_FIRE_STONE" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 48, "y": 20, "elevation": 3, @@ -271,7 +271,7 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "MtEmber_Exterior_EventScript_1BED46", - "flag": "495" + "flag": "FLAG_HIDE_MT_EMBER_EXTERIOR_DIRE_HIT" } ], "warp_events": [ @@ -324,7 +324,7 @@ "x": 37, "y": 43, "elevation": 0, - "var": "VAR_0x407F", + "var": "VAR_MAP_SCENE_MT_EMBER_EXTERIOR", "var_value": 1, "script": "MtEmber_Exterior_EventScript_163A4E" }, @@ -333,7 +333,7 @@ "x": 38, "y": 43, "elevation": 0, - "var": "VAR_0x407F", + "var": "VAR_MAP_SCENE_MT_EMBER_EXTERIOR", "var_value": 1, "script": "MtEmber_Exterior_EventScript_163A4E" }, @@ -342,7 +342,7 @@ "x": 39, "y": 43, "elevation": 0, - "var": "VAR_0x407F", + "var": "VAR_MAP_SCENE_MT_EMBER_EXTERIOR", "var_value": 1, "script": "MtEmber_Exterior_EventScript_163A4E" } @@ -354,17 +354,19 @@ "y": 17, "elevation": 0, "item": "ITEM_FIRE_STONE", - "flag": "158", - "unknown": 1 + "flag": "HIDDEN_ITEM_MT_EMBER_EXTERIOR_FIRE_STONE", + "quantity": 1, + "underfoot": false }, { "type": "hidden_item", "x": 8, "y": 30, "elevation": 3, - "item": "POCKET_KEY_ITEMS", - "flag": "162", - "unknown": 1 + "item": "ITEM_ULTRA_BALL", + "flag": "HIDDEN_ITEM_MT_EMBER_EXTERIOR_ULTRA_BALL", + "quantity": 1, + "underfoot": false } ] } diff --git a/data/maps/MtEmber_Exterior/scripts.inc b/data/maps/MtEmber_Exterior/scripts.inc index acd440a97..1ee18f696 100644 --- a/data/maps/MtEmber_Exterior/scripts.inc +++ b/data/maps/MtEmber_Exterior/scripts.inc @@ -5,8 +5,8 @@ MtEmber_Exterior_MapScripts:: @ 8163946 MtEmber_Exterior_MapScript1_163951:: @ 8163951 setworldmapflag FLAG_WORLD_MAP_MT_EMBER_EXTERIOR - compare_var_to_value VAR_0x407F, 2 - call_if 1, EventScript_163960 + compare_var_to_value VAR_MAP_SCENE_MT_EMBER_EXTERIOR, 2 + call_if eq, EventScript_163960 end EventScript_163960:: @ 8163960 @@ -16,7 +16,7 @@ EventScript_163960:: @ 8163960 MtEmber_Exterior_MapScript2_163969:: @ 8163969 compare_var_to_value VAR_MAP_SCENE_ONE_ISLAND_POKEMON_CENTER_1F, 4 - call_if 4, EventScript_163975 + call_if ge, EventScript_163975 end EventScript_163975:: @ 8163975 @@ -25,10 +25,10 @@ EventScript_163975:: @ 8163975 MtEmber_Exterior_EventScript_16397F:: @ 816397F lock - checktrainerflag FLAG_0x219 - goto_if_eq EventScript_16399E + checktrainerflag TRAINER_TEAM_ROCKET_GRUNT_43 + goto_if eq, EventScript_16399E compare_var_to_value VAR_MAP_SCENE_ONE_ISLAND_POKEMON_CENTER_1F, 4 - goto_if_eq EventScript_1639A8 + goto_if eq, EventScript_1639A8 msgbox gUnknown_817A82A release end @@ -43,10 +43,10 @@ EventScript_1639A8:: @ 81639A8 waitmovement 0 playbgm MUS_ROCKET, 0 msgbox gUnknown_817AA06 - trainerbattle 3, 537, 0, Text_17AA34 + trainerbattle TRAINER_BATTLE_SINGLE_NO_INTRO_TEXT, TRAINER_TEAM_ROCKET_GRUNT_43, 0, Text_17AA34 msgbox gUnknown_817AA3F - checktrainerflag FLAG_0x21A - goto_if_eq EventScript_1639DB + checktrainerflag TRAINER_TEAM_ROCKET_GRUNT_44 + goto_if eq, EventScript_1639DB release end @@ -63,10 +63,10 @@ EventScript_1639DB:: @ 81639DB MtEmber_Exterior_EventScript_1639F0:: @ 81639F0 lock faceplayer - checktrainerflag FLAG_0x21A - goto_if_eq EventScript_163A1B + checktrainerflag TRAINER_TEAM_ROCKET_GRUNT_44 + goto_if eq, EventScript_163A1B compare_var_to_value VAR_MAP_SCENE_ONE_ISLAND_POKEMON_CENTER_1F, 4 - goto_if_eq EventScript_163A25 + goto_if eq, EventScript_163A25 msgbox gUnknown_817A88C closemessage applymovement 3, Movement_1A75E5 @@ -82,10 +82,10 @@ EventScript_163A1B:: @ 8163A1B EventScript_163A25:: @ 8163A25 playbgm MUS_ROCKET, 0 msgbox gUnknown_817AA56 - trainerbattle 3, 538, 0, Text_17AA8A + trainerbattle TRAINER_BATTLE_SINGLE_NO_INTRO_TEXT, TRAINER_TEAM_ROCKET_GRUNT_44, 0, Text_17AA8A msgbox gUnknown_817AA99 - checktrainerflag FLAG_0x219 - goto_if_eq EventScript_1639DB + checktrainerflag TRAINER_TEAM_ROCKET_GRUNT_43 + goto_if eq, EventScript_1639DB release end @@ -111,21 +111,21 @@ MtEmber_Exterior_EventScript_163A4E:: @ 8163A4E waitmovement 0 call EventScript_163960 msgbox gUnknown_817A9E1 - setvar VAR_0x407F, 2 + setvar VAR_MAP_SCENE_MT_EMBER_EXTERIOR, 2 releaseall end MtEmber_Exterior_EventScript_163AB4:: @ 8163AB4 - trainerbattle 0, 595, 0, Text_17AB73, Text_17ABAA + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_PKMN_RANGER_LOGAN, 0, Text_17AB73, Text_17ABAA msgbox gUnknown_817ABD8, 6 end MtEmber_Exterior_EventScript_163ACB:: @ 8163ACB - trainerbattle 0, 597, 0, Text_17AC55, Text_17AC82 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_PKMN_RANGER_BETH, 0, Text_17AC55, Text_17AC82 msgbox gUnknown_817ACA2, 6 end MtEmber_Exterior_EventScript_163AE2:: @ 8163AE2 - trainerbattle 0, 592, 0, Text_17AD06, Text_17AD6B + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_CRUSH_GIRL_JOCELYN, 0, Text_17AD06, Text_17AD6B msgbox gUnknown_817AD89, 6 end diff --git a/data/maps/MtEmber_RubyPath_1F/map.json b/data/maps/MtEmber_RubyPath_1F/map.json index af7c2032f..b0d678752 100644 --- a/data/maps/MtEmber_RubyPath_1F/map.json +++ b/data/maps/MtEmber_RubyPath_1F/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "96", + "graphics_id": "MAP_OBJ_GFX_ROCK_SMASH_ROCK", "x": 18, "y": 11, "elevation": 3, @@ -23,11 +23,11 @@ "movement_range_y": 1, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "MtEmber_RubyPath_1F_EventScript_1BE00C", - "flag": "18" + "script": "EventScript_InteractWithRockSmashRockObject", + "flag": "FLAG_TEMP_12" }, { - "graphics_id": "96", + "graphics_id": "MAP_OBJ_GFX_ROCK_SMASH_ROCK", "x": 23, "y": 16, "elevation": 3, @@ -36,11 +36,11 @@ "movement_range_y": 1, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "MtEmber_RubyPath_1F_EventScript_1BE00C", - "flag": "19" + "script": "EventScript_InteractWithRockSmashRockObject", + "flag": "FLAG_TEMP_13" }, { - "graphics_id": "96", + "graphics_id": "MAP_OBJ_GFX_ROCK_SMASH_ROCK", "x": 20, "y": 12, "elevation": 3, @@ -49,11 +49,11 @@ "movement_range_y": 1, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "MtEmber_RubyPath_1F_EventScript_1BE00C", - "flag": "20" + "script": "EventScript_InteractWithRockSmashRockObject", + "flag": "FLAG_TEMP_14" }, { - "graphics_id": "96", + "graphics_id": "MAP_OBJ_GFX_ROCK_SMASH_ROCK", "x": 19, "y": 7, "elevation": 3, @@ -62,11 +62,11 @@ "movement_range_y": 1, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "MtEmber_RubyPath_1F_EventScript_1BE00C", - "flag": "21" + "script": "EventScript_InteractWithRockSmashRockObject", + "flag": "FLAG_TEMP_15" }, { - "graphics_id": "96", + "graphics_id": "MAP_OBJ_GFX_ROCK_SMASH_ROCK", "x": 21, "y": 15, "elevation": 3, @@ -75,8 +75,8 @@ "movement_range_y": 1, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "MtEmber_RubyPath_1F_EventScript_1BE00C", - "flag": "22" + "script": "EventScript_InteractWithRockSmashRockObject", + "flag": "FLAG_TEMP_16" } ], "warp_events": [ diff --git a/data/maps/MtEmber_RubyPath_B1F/map.json b/data/maps/MtEmber_RubyPath_B1F/map.json index 3a95580b2..b56e52770 100644 --- a/data/maps/MtEmber_RubyPath_B1F/map.json +++ b/data/maps/MtEmber_RubyPath_B1F/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "96", + "graphics_id": "MAP_OBJ_GFX_ROCK_SMASH_ROCK", "x": 1, "y": 8, "elevation": 3, @@ -23,11 +23,11 @@ "movement_range_y": 1, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "MtEmber_RubyPath_B1F_EventScript_1BE00C", - "flag": "18" + "script": "EventScript_InteractWithRockSmashRockObject", + "flag": "FLAG_TEMP_12" }, { - "graphics_id": "96", + "graphics_id": "MAP_OBJ_GFX_ROCK_SMASH_ROCK", "x": 1, "y": 11, "elevation": 3, @@ -36,11 +36,11 @@ "movement_range_y": 1, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "MtEmber_RubyPath_B1F_EventScript_1BE00C", - "flag": "19" + "script": "EventScript_InteractWithRockSmashRockObject", + "flag": "FLAG_TEMP_13" }, { - "graphics_id": "96", + "graphics_id": "MAP_OBJ_GFX_ROCK_SMASH_ROCK", "x": 3, "y": 12, "elevation": 3, @@ -49,11 +49,11 @@ "movement_range_y": 1, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "MtEmber_RubyPath_B1F_EventScript_1BE00C", - "flag": "20" + "script": "EventScript_InteractWithRockSmashRockObject", + "flag": "FLAG_TEMP_14" }, { - "graphics_id": "96", + "graphics_id": "MAP_OBJ_GFX_ROCK_SMASH_ROCK", "x": 5, "y": 14, "elevation": 3, @@ -62,8 +62,8 @@ "movement_range_y": 1, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "MtEmber_RubyPath_B1F_EventScript_1BE00C", - "flag": "21" + "script": "EventScript_InteractWithRockSmashRockObject", + "flag": "FLAG_TEMP_15" } ], "warp_events": [ diff --git a/data/maps/MtEmber_RubyPath_B1F_Stairs/map.json b/data/maps/MtEmber_RubyPath_B1F_Stairs/map.json index 78149246d..76a7c17e2 100644 --- a/data/maps/MtEmber_RubyPath_B1F_Stairs/map.json +++ b/data/maps/MtEmber_RubyPath_B1F_Stairs/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "96", + "graphics_id": "MAP_OBJ_GFX_ROCK_SMASH_ROCK", "x": 4, "y": 2, "elevation": 3, @@ -23,8 +23,8 @@ "movement_range_y": 1, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "MtEmber_RubyPath_B1F_Stairs_EventScript_1BE00C", - "flag": "18" + "script": "EventScript_InteractWithRockSmashRockObject", + "flag": "FLAG_TEMP_12" } ], "warp_events": [ diff --git a/data/maps/MtEmber_RubyPath_B2F/map.json b/data/maps/MtEmber_RubyPath_B2F/map.json index e296e9318..5fd04b480 100644 --- a/data/maps/MtEmber_RubyPath_B2F/map.json +++ b/data/maps/MtEmber_RubyPath_B2F/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "97", + "graphics_id": "MAP_OBJ_GFX_STRENGTH_BOULDER", "x": 9, "y": 3, "elevation": 3, @@ -23,11 +23,11 @@ "movement_range_y": 0, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "MtEmber_RubyPath_B2F_EventScript_1BE11D", + "script": "EventScript_InteractWithStrengthBoulderObject", "flag": "0" }, { - "graphics_id": "97", + "graphics_id": "MAP_OBJ_GFX_STRENGTH_BOULDER", "x": 12, "y": 5, "elevation": 3, @@ -36,11 +36,11 @@ "movement_range_y": 0, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "MtEmber_RubyPath_B2F_EventScript_1BE11D", + "script": "EventScript_InteractWithStrengthBoulderObject", "flag": "0" }, { - "graphics_id": "97", + "graphics_id": "MAP_OBJ_GFX_STRENGTH_BOULDER", "x": 12, "y": 2, "elevation": 3, @@ -49,11 +49,11 @@ "movement_range_y": 0, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "MtEmber_RubyPath_B2F_EventScript_1BE11D", + "script": "EventScript_InteractWithStrengthBoulderObject", "flag": "0" }, { - "graphics_id": "96", + "graphics_id": "MAP_OBJ_GFX_ROCK_SMASH_ROCK", "x": 4, "y": 8, "elevation": 3, @@ -62,11 +62,11 @@ "movement_range_y": 1, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "MtEmber_RubyPath_B2F_EventScript_1BE00C", - "flag": "18" + "script": "EventScript_InteractWithRockSmashRockObject", + "flag": "FLAG_TEMP_12" }, { - "graphics_id": "96", + "graphics_id": "MAP_OBJ_GFX_ROCK_SMASH_ROCK", "x": 1, "y": 8, "elevation": 3, @@ -75,11 +75,11 @@ "movement_range_y": 1, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "MtEmber_RubyPath_B2F_EventScript_1BE00C", - "flag": "19" + "script": "EventScript_InteractWithRockSmashRockObject", + "flag": "FLAG_TEMP_13" }, { - "graphics_id": "96", + "graphics_id": "MAP_OBJ_GFX_ROCK_SMASH_ROCK", "x": 4, "y": 5, "elevation": 3, @@ -88,11 +88,11 @@ "movement_range_y": 1, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "MtEmber_RubyPath_B2F_EventScript_1BE00C", - "flag": "20" + "script": "EventScript_InteractWithRockSmashRockObject", + "flag": "FLAG_TEMP_14" }, { - "graphics_id": "96", + "graphics_id": "MAP_OBJ_GFX_ROCK_SMASH_ROCK", "x": 5, "y": 5, "elevation": 3, @@ -101,8 +101,8 @@ "movement_range_y": 1, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "MtEmber_RubyPath_B2F_EventScript_1BE00C", - "flag": "21" + "script": "EventScript_InteractWithRockSmashRockObject", + "flag": "FLAG_TEMP_15" } ], "warp_events": [ diff --git a/data/maps/MtEmber_RubyPath_B2F_Stairs/map.json b/data/maps/MtEmber_RubyPath_B2F_Stairs/map.json index 42576cb8d..5b72aa5c3 100644 --- a/data/maps/MtEmber_RubyPath_B2F_Stairs/map.json +++ b/data/maps/MtEmber_RubyPath_B2F_Stairs/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "96", + "graphics_id": "MAP_OBJ_GFX_ROCK_SMASH_ROCK", "x": 4, "y": 3, "elevation": 3, @@ -23,11 +23,11 @@ "movement_range_y": 1, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "MtEmber_RubyPath_B2F_Stairs_EventScript_1BE00C", - "flag": "18" + "script": "EventScript_InteractWithRockSmashRockObject", + "flag": "FLAG_TEMP_12" }, { - "graphics_id": "96", + "graphics_id": "MAP_OBJ_GFX_ROCK_SMASH_ROCK", "x": 6, "y": 2, "elevation": 3, @@ -36,8 +36,8 @@ "movement_range_y": 1, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "MtEmber_RubyPath_B2F_Stairs_EventScript_1BE00C", - "flag": "19" + "script": "EventScript_InteractWithRockSmashRockObject", + "flag": "FLAG_TEMP_13" } ], "warp_events": [ diff --git a/data/maps/MtEmber_RubyPath_B3F/map.json b/data/maps/MtEmber_RubyPath_B3F/map.json index 5bc2edf77..ac41ffbcb 100644 --- a/data/maps/MtEmber_RubyPath_B3F/map.json +++ b/data/maps/MtEmber_RubyPath_B3F/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "97", + "graphics_id": "MAP_OBJ_GFX_STRENGTH_BOULDER", "x": 10, "y": 4, "elevation": 3, @@ -23,11 +23,11 @@ "movement_range_y": 0, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "MtEmber_RubyPath_B3F_EventScript_1BE11D", + "script": "EventScript_InteractWithStrengthBoulderObject", "flag": "0" }, { - "graphics_id": "97", + "graphics_id": "MAP_OBJ_GFX_STRENGTH_BOULDER", "x": 26, "y": 12, "elevation": 3, @@ -36,11 +36,11 @@ "movement_range_y": 0, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "MtEmber_RubyPath_B3F_EventScript_1BE11D", + "script": "EventScript_InteractWithStrengthBoulderObject", "flag": "0" }, { - "graphics_id": "97", + "graphics_id": "MAP_OBJ_GFX_STRENGTH_BOULDER", "x": 28, "y": 8, "elevation": 3, @@ -49,11 +49,11 @@ "movement_range_y": 0, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "MtEmber_RubyPath_B3F_EventScript_1BE11D", + "script": "EventScript_InteractWithStrengthBoulderObject", "flag": "0" }, { - "graphics_id": "96", + "graphics_id": "MAP_OBJ_GFX_ROCK_SMASH_ROCK", "x": 7, "y": 2, "elevation": 3, @@ -62,11 +62,11 @@ "movement_range_y": 1, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "MtEmber_RubyPath_B3F_EventScript_1BE00C", - "flag": "18" + "script": "EventScript_InteractWithRockSmashRockObject", + "flag": "FLAG_TEMP_12" }, { - "graphics_id": "96", + "graphics_id": "MAP_OBJ_GFX_ROCK_SMASH_ROCK", "x": 4, "y": 3, "elevation": 3, @@ -75,11 +75,11 @@ "movement_range_y": 1, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "MtEmber_RubyPath_B3F_EventScript_1BE00C", - "flag": "19" + "script": "EventScript_InteractWithRockSmashRockObject", + "flag": "FLAG_TEMP_13" }, { - "graphics_id": "96", + "graphics_id": "MAP_OBJ_GFX_ROCK_SMASH_ROCK", "x": 6, "y": 6, "elevation": 3, @@ -88,11 +88,11 @@ "movement_range_y": 1, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "MtEmber_RubyPath_B3F_EventScript_1BE00C", - "flag": "20" + "script": "EventScript_InteractWithRockSmashRockObject", + "flag": "FLAG_TEMP_14" }, { - "graphics_id": "96", + "graphics_id": "MAP_OBJ_GFX_ROCK_SMASH_ROCK", "x": 7, "y": 6, "elevation": 3, @@ -101,11 +101,11 @@ "movement_range_y": 1, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "MtEmber_RubyPath_B3F_EventScript_1BE00C", - "flag": "21" + "script": "EventScript_InteractWithRockSmashRockObject", + "flag": "FLAG_TEMP_15" }, { - "graphics_id": "96", + "graphics_id": "MAP_OBJ_GFX_ROCK_SMASH_ROCK", "x": 4, "y": 5, "elevation": 3, @@ -114,11 +114,11 @@ "movement_range_y": 1, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "MtEmber_RubyPath_B3F_EventScript_1BE00C", - "flag": "22" + "script": "EventScript_InteractWithRockSmashRockObject", + "flag": "FLAG_TEMP_16" }, { - "graphics_id": "96", + "graphics_id": "MAP_OBJ_GFX_ROCK_SMASH_ROCK", "x": 5, "y": 2, "elevation": 3, @@ -127,11 +127,11 @@ "movement_range_y": 1, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "MtEmber_RubyPath_B3F_EventScript_1BE00C", - "flag": "23" + "script": "EventScript_InteractWithRockSmashRockObject", + "flag": "FLAG_TEMP_17" }, { - "graphics_id": "97", + "graphics_id": "MAP_OBJ_GFX_STRENGTH_BOULDER", "x": 15, "y": 13, "elevation": 3, @@ -140,7 +140,7 @@ "movement_range_y": 0, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "MtEmber_RubyPath_B3F_EventScript_1BE11D", + "script": "EventScript_InteractWithStrengthBoulderObject", "flag": "0" } ], diff --git a/data/maps/MtEmber_RubyPath_B3F/scripts.inc b/data/maps/MtEmber_RubyPath_B3F/scripts.inc index fb7b397e2..17d276620 100644 --- a/data/maps/MtEmber_RubyPath_B3F/scripts.inc +++ b/data/maps/MtEmber_RubyPath_B3F/scripts.inc @@ -5,7 +5,7 @@ MtEmber_RubyPath_B3F_EventScript_163C49:: @ 8163C49 MtEmber_RubyPath_B5F_EventScript_163C49:: @ 8163C49 lock faceplayer - setflag FLAG_0x2DD + setflag FLAG_GOT_RUBY removeobject 1 additem ITEM_RUBY, 1 giveitemfanfaremsg gUnknown_817ADC5, ITEM_RUBY, 1, MUS_FAN5 diff --git a/data/maps/MtEmber_RubyPath_B5F/map.json b/data/maps/MtEmber_RubyPath_B5F/map.json index 637afcde5..ce5dbc269 100644 --- a/data/maps/MtEmber_RubyPath_B5F/map.json +++ b/data/maps/MtEmber_RubyPath_B5F/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "99", + "graphics_id": "MAP_OBJ_GFX_RUBY", "x": 7, "y": 7, "elevation": 0, @@ -24,7 +24,7 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "MtEmber_RubyPath_B5F_EventScript_163C49", - "flag": "138" + "flag": "FLAG_HIDE_RUBY" } ], "warp_events": [ diff --git a/data/maps/MtEmber_RubyPath_B5F/scripts.inc b/data/maps/MtEmber_RubyPath_B5F/scripts.inc index c3d8b7320..53aec5282 100644 --- a/data/maps/MtEmber_RubyPath_B5F/scripts.inc +++ b/data/maps/MtEmber_RubyPath_B5F/scripts.inc @@ -7,31 +7,31 @@ MtEmber_RubyPath_B5F_EventScript_163BAB:: @ 8163BAB setvar VAR_0x8006, 0 braillemessage gUnknown_81A92C5 getbraillestringwidth gUnknown_81A92C5 - call EventScript_1A926C + call EventScript_BrailleCursorWaitButton setvar VAR_0x8006, 0 braillemessage gUnknown_81A92D0 getbraillestringwidth gUnknown_81A92D0 - call EventScript_1A926C + call EventScript_BrailleCursorWaitButton setvar VAR_0x8006, 0 braillemessage gUnknown_81A92DC getbraillestringwidth gUnknown_81A92DC - call EventScript_1A926C + call EventScript_BrailleCursorWaitButton setvar VAR_0x8006, 0 braillemessage gUnknown_81A92E6 getbraillestringwidth gUnknown_81A92E6 - call EventScript_1A926C + call EventScript_BrailleCursorWaitButton setvar VAR_0x8006, 0 braillemessage gUnknown_81A92F2 getbraillestringwidth gUnknown_81A92F2 - call EventScript_1A926C + call EventScript_BrailleCursorWaitButton setvar VAR_0x8006, 0 braillemessage gUnknown_81A92FE getbraillestringwidth gUnknown_81A92FE - call EventScript_1A926C + call EventScript_BrailleCursorWaitButton setvar VAR_0x8006, 0 braillemessage gUnknown_81A930A getbraillestringwidth gUnknown_81A930A - call EventScript_1A926C + call EventScript_BrailleCursorWaitButton braillemessage gUnknown_81A9316 waitbuttonpress releaseall diff --git a/data/maps/MtEmber_Summit/map.json b/data/maps/MtEmber_Summit/map.json index 34eb9d6a7..1715ccf58 100644 --- a/data/maps/MtEmber_Summit/map.json +++ b/data/maps/MtEmber_Summit/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "137", + "graphics_id": "MAP_OBJ_GFX_MOLTRES", "x": 9, "y": 6, "elevation": 3, @@ -24,10 +24,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "MtEmber_Summit_EventScript_163B33", - "flag": "82" + "flag": "FLAG_HIDE_MOLTRES" }, { - "graphics_id": "97", + "graphics_id": "MAP_OBJ_GFX_STRENGTH_BOULDER", "x": 10, "y": 12, "elevation": 3, @@ -36,11 +36,11 @@ "movement_range_y": 0, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "MtEmber_Summit_EventScript_1BE11D", + "script": "EventScript_InteractWithStrengthBoulderObject", "flag": "0" }, { - "graphics_id": "97", + "graphics_id": "MAP_OBJ_GFX_STRENGTH_BOULDER", "x": 9, "y": 12, "elevation": 3, @@ -49,11 +49,11 @@ "movement_range_y": 0, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "MtEmber_Summit_EventScript_1BE11D", + "script": "EventScript_InteractWithStrengthBoulderObject", "flag": "0" }, { - "graphics_id": "97", + "graphics_id": "MAP_OBJ_GFX_STRENGTH_BOULDER", "x": 8, "y": 11, "elevation": 3, @@ -62,11 +62,11 @@ "movement_range_y": 0, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "MtEmber_Summit_EventScript_1BE11D", + "script": "EventScript_InteractWithStrengthBoulderObject", "flag": "0" }, { - "graphics_id": "97", + "graphics_id": "MAP_OBJ_GFX_STRENGTH_BOULDER", "x": 8, "y": 10, "elevation": 3, @@ -75,7 +75,7 @@ "movement_range_y": 0, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "MtEmber_Summit_EventScript_1BE11D", + "script": "EventScript_InteractWithStrengthBoulderObject", "flag": "0" } ], diff --git a/data/maps/MtEmber_Summit/scripts.inc b/data/maps/MtEmber_Summit/scripts.inc index 05472f91c..3f8256837 100644 --- a/data/maps/MtEmber_Summit/scripts.inc +++ b/data/maps/MtEmber_Summit/scripts.inc @@ -4,30 +4,30 @@ MtEmber_Summit_MapScripts:: @ 8163AFC .byte 0 MtEmber_Summit_MapScript2_163B07:: @ 8163B07 - checkflag FLAG_0x807 - call_if 1, EventScript_163B11 + checkflag FLAG_SYS_SPECIAL_WILD_BATTLE + call_if TRUE, EventScript_163B11 end EventScript_163B11:: @ 8163B11 - specialvar VAR_RESULT, sub_80CA74C - compare_var_to_value VAR_RESULT, 7 - goto_if 5, EventScript_1A77A9 + specialvar VAR_RESULT, Special_GetBattleOutcome + compare_var_to_value VAR_RESULT, B_OUTCOME_CAUGHT + goto_if ne, EventScript_1A77A9 removeobject VAR_LAST_TALKED return MtEmber_Summit_MapScript1_163B25:: @ 8163B25 - checkflag FLAG_0x2BD - call_if 0, EventScript_163B2F + checkflag FLAG_FOUGHT_MOLTRES + call_if FALSE, EventScript_163B2F end EventScript_163B2F:: @ 8163B2F - clearflag FLAG_0x052 + clearflag FLAG_HIDE_MOLTRES return MtEmber_Summit_EventScript_163B33:: @ 8163B33 special sub_8110AB4 compare_var_to_value VAR_RESULT, 2 - goto_if_eq EventScript_1A7AE0 + goto_if eq, EventScript_1A7AE0 special sub_8112364 lock faceplayer @@ -40,23 +40,23 @@ MtEmber_Summit_EventScript_163B33:: @ 8163B33 delay 10 playbgm MUS_EXEYE, 0 waitbuttonpress - setflag FLAG_0x807 - special sub_807F9D8 + setflag FLAG_SYS_SPECIAL_WILD_BATTLE + special Special_StartLegendaryBattle waitstate - clearflag FLAG_0x807 - specialvar VAR_RESULT, sub_80CA74C - compare_var_to_value VAR_RESULT, 1 - goto_if_eq EventScript_163B96 - compare_var_to_value VAR_RESULT, 4 - goto_if_eq EventScript_163B9F - compare_var_to_value VAR_RESULT, 5 - goto_if_eq EventScript_163B9F - setflag FLAG_0x2BD + clearflag FLAG_SYS_SPECIAL_WILD_BATTLE + specialvar VAR_RESULT, Special_GetBattleOutcome + compare_var_to_value VAR_RESULT, B_OUTCOME_WON + goto_if eq, EventScript_163B96 + compare_var_to_value VAR_RESULT, B_OUTCOME_RAN + goto_if eq, EventScript_163B9F + compare_var_to_value VAR_RESULT, B_OUTCOME_PLAYER_TELEPORTED + goto_if eq, EventScript_163B9F + setflag FLAG_FOUGHT_MOLTRES release end EventScript_163B96:: @ 8163B96 - setflag FLAG_0x2BD + setflag FLAG_FOUGHT_MOLTRES goto EventScript_1A922D end diff --git a/data/maps/MtEmber_SummitPath_2F/map.json b/data/maps/MtEmber_SummitPath_2F/map.json index 62da287fd..5712426b2 100644 --- a/data/maps/MtEmber_SummitPath_2F/map.json +++ b/data/maps/MtEmber_SummitPath_2F/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "96", + "graphics_id": "MAP_OBJ_GFX_ROCK_SMASH_ROCK", "x": 40, "y": 7, "elevation": 3, @@ -23,11 +23,11 @@ "movement_range_y": 1, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "MtEmber_SummitPath_2F_EventScript_1BE00C", - "flag": "18" + "script": "EventScript_InteractWithRockSmashRockObject", + "flag": "FLAG_TEMP_12" }, { - "graphics_id": "96", + "graphics_id": "MAP_OBJ_GFX_ROCK_SMASH_ROCK", "x": 33, "y": 5, "elevation": 3, @@ -36,11 +36,11 @@ "movement_range_y": 1, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "MtEmber_SummitPath_2F_EventScript_1BE00C", - "flag": "19" + "script": "EventScript_InteractWithRockSmashRockObject", + "flag": "FLAG_TEMP_13" }, { - "graphics_id": "96", + "graphics_id": "MAP_OBJ_GFX_ROCK_SMASH_ROCK", "x": 15, "y": 19, "elevation": 3, @@ -49,11 +49,11 @@ "movement_range_y": 1, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "MtEmber_SummitPath_2F_EventScript_1BE00C", - "flag": "20" + "script": "EventScript_InteractWithRockSmashRockObject", + "flag": "FLAG_TEMP_14" }, { - "graphics_id": "96", + "graphics_id": "MAP_OBJ_GFX_ROCK_SMASH_ROCK", "x": 13, "y": 23, "elevation": 3, @@ -62,11 +62,11 @@ "movement_range_y": 1, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "MtEmber_SummitPath_2F_EventScript_1BE00C", - "flag": "21" + "script": "EventScript_InteractWithRockSmashRockObject", + "flag": "FLAG_TEMP_15" }, { - "graphics_id": "96", + "graphics_id": "MAP_OBJ_GFX_ROCK_SMASH_ROCK", "x": 13, "y": 21, "elevation": 3, @@ -75,11 +75,11 @@ "movement_range_y": 1, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "MtEmber_SummitPath_2F_EventScript_1BE00C", - "flag": "22" + "script": "EventScript_InteractWithRockSmashRockObject", + "flag": "FLAG_TEMP_16" }, { - "graphics_id": "96", + "graphics_id": "MAP_OBJ_GFX_ROCK_SMASH_ROCK", "x": 7, "y": 38, "elevation": 3, @@ -88,11 +88,11 @@ "movement_range_y": 1, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "MtEmber_SummitPath_2F_EventScript_1BE00C", - "flag": "23" + "script": "EventScript_InteractWithRockSmashRockObject", + "flag": "FLAG_TEMP_17" }, { - "graphics_id": "96", + "graphics_id": "MAP_OBJ_GFX_ROCK_SMASH_ROCK", "x": 9, "y": 35, "elevation": 3, @@ -101,11 +101,11 @@ "movement_range_y": 1, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "MtEmber_SummitPath_2F_EventScript_1BE00C", - "flag": "24" + "script": "EventScript_InteractWithRockSmashRockObject", + "flag": "FLAG_TEMP_18" }, { - "graphics_id": "96", + "graphics_id": "MAP_OBJ_GFX_ROCK_SMASH_ROCK", "x": 7, "y": 34, "elevation": 3, @@ -114,11 +114,11 @@ "movement_range_y": 1, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "MtEmber_SummitPath_2F_EventScript_1BE00C", - "flag": "25" + "script": "EventScript_InteractWithRockSmashRockObject", + "flag": "FLAG_TEMP_19" }, { - "graphics_id": "96", + "graphics_id": "MAP_OBJ_GFX_ROCK_SMASH_ROCK", "x": 15, "y": 26, "elevation": 3, @@ -127,8 +127,8 @@ "movement_range_y": 1, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "MtEmber_SummitPath_2F_EventScript_1BE00C", - "flag": "26" + "script": "EventScript_InteractWithRockSmashRockObject", + "flag": "FLAG_TEMP_1A" } ], "warp_events": [ diff --git a/data/maps/MtMoon_1F/map.json b/data/maps/MtMoon_1F/map.json index 135f731fc..2701adad6 100644 --- a/data/maps/MtMoon_1F/map.json +++ b/data/maps/MtMoon_1F/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "22", + "graphics_id": "MAP_OBJ_GFX_LASS", "x": 20, "y": 26, "elevation": 3, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "20", + "graphics_id": "MAP_OBJ_GFX_BUG_CATCHER", "x": 36, "y": 30, "elevation": 3, @@ -40,7 +40,7 @@ "flag": "0" }, { - "graphics_id": "55", + "graphics_id": "MAP_OBJ_GFX_SCIENTIST", "x": 30, "y": 35, "elevation": 3, @@ -53,7 +53,7 @@ "flag": "0" }, { - "graphics_id": "22", + "graphics_id": "MAP_OBJ_GFX_LASS", "x": 33, "y": 4, "elevation": 3, @@ -66,7 +66,7 @@ "flag": "0" }, { - "graphics_id": "20", + "graphics_id": "MAP_OBJ_GFX_BUG_CATCHER", "x": 7, "y": 26, "elevation": 3, @@ -79,7 +79,7 @@ "flag": "0" }, { - "graphics_id": "18", + "graphics_id": "MAP_OBJ_GFX_YOUNGSTER", "x": 13, "y": 17, "elevation": 3, @@ -92,7 +92,7 @@ "flag": "0" }, { - "graphics_id": "56", + "graphics_id": "MAP_OBJ_GFX_HIKER", "x": 7, "y": 10, "elevation": 3, @@ -105,7 +105,7 @@ "flag": "0" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 2, "y": 22, "elevation": 3, @@ -115,10 +115,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "MtMoon_1F_EventScript_1BE5CF", - "flag": "345" + "flag": "FLAG_HIDE_MT_MOON_1F_PARALYZE_HEAL" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 11, "y": 35, "elevation": 3, @@ -128,10 +128,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "MtMoon_1F_EventScript_1BE5DC", - "flag": "346" + "flag": "FLAG_HIDE_MT_MOON_1F_TM09" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 26, "y": 32, "elevation": 3, @@ -141,10 +141,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "MtMoon_1F_EventScript_1BE5E9", - "flag": "347" + "flag": "FLAG_HIDE_MT_MOON_1F_POTION" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 42, "y": 35, "elevation": 3, @@ -154,10 +154,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "MtMoon_1F_EventScript_1BE5F6", - "flag": "348" + "flag": "FLAG_HIDE_MT_MOON_1F_RARE_CANDY" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 44, "y": 21, "elevation": 3, @@ -167,10 +167,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "MtMoon_1F_EventScript_1BE603", - "flag": "349" + "flag": "FLAG_HIDE_MT_MOON_1F_ESCAPE_ROPE" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 3, "y": 2, "elevation": 3, @@ -180,10 +180,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "MtMoon_1F_EventScript_1BE610", - "flag": "350" + "flag": "FLAG_HIDE_MT_MOON_1F_MOON_STONE" }, { - "graphics_id": "30", + "graphics_id": "MAP_OBJ_GFX_BALDING_MAN", "x": 42, "y": 7, "elevation": 3, diff --git a/data/maps/MtMoon_1F/scripts.inc b/data/maps/MtMoon_1F/scripts.inc index cd8feb26c..28bc65ec9 100644 --- a/data/maps/MtMoon_1F/scripts.inc +++ b/data/maps/MtMoon_1F/scripts.inc @@ -11,36 +11,36 @@ MtMoon_1F_EventScript_1605EE:: @ 81605EE end MtMoon_1F_EventScript_1605F7:: @ 81605F7 - trainerbattle 0, 181, 0, Text_17279D, Text_1727CB + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_HIKER_MARCOS, 0, Text_17279D, Text_1727CB msgbox gUnknown_81727DF, 6 end MtMoon_1F_EventScript_16060E:: @ 816060E - trainerbattle 0, 91, 0, Text_17281D, Text_172844 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_YOUNGSTER_JOSH, 0, Text_17281D, Text_172844 msgbox gUnknown_8172863, 6 end MtMoon_1F_EventScript_160625:: @ 8160625 - trainerbattle 0, 120, 0, Text_172896, Text_1728C3 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_LASS_MIRIAM, 0, Text_172896, Text_1728C3 msgbox gUnknown_81728D2, 6 end MtMoon_1F_EventScript_16063C:: @ 816063C - trainerbattle 0, 121, 0, Text_172972, Text_1729A4 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_LASS_IRIS, 0, Text_172972, Text_1729A4 msgbox gUnknown_81729AC, 6 end MtMoon_1F_EventScript_160653:: @ 8160653 - trainerbattle 0, 169, 0, Text_17290B, Text_172927 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_SUPER_NERD_JOVAN, 0, Text_17290B, Text_172927 msgbox gUnknown_817293C, 6 end MtMoon_1F_EventScript_16066A:: @ 816066A - trainerbattle 0, 108, 0, Text_1729EA, Text_172A1A + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_BUG_CATCHER_KENT, 0, Text_1729EA, Text_172A1A msgbox gUnknown_8172A26, 6 end MtMoon_1F_EventScript_160681:: @ 8160681 - trainerbattle 0, 109, 0, Text_172A55, Text_172A8F + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_BUG_CATCHER_ROBBY, 0, Text_172A55, Text_172A8F msgbox gUnknown_8172A97, 6 end diff --git a/data/maps/MtMoon_B1F/map.json b/data/maps/MtMoon_B1F/map.json index efa18b859..8bb52bddf 100644 --- a/data/maps/MtMoon_B1F/map.json +++ b/data/maps/MtMoon_B1F/map.json @@ -79,8 +79,9 @@ "y": 2, "elevation": 0, "item": "ITEM_TINY_MUSHROOM", - "flag": "84", - "unknown": 1 + "flag": "HIDDEN_ITEM_MT_MOON_B1F_TINY_MUSHROOM", + "quantity": 1, + "underfoot": false }, { "type": "hidden_item", @@ -88,8 +89,9 @@ "y": 2, "elevation": 0, "item": "ITEM_TINY_MUSHROOM", - "flag": "85", - "unknown": 1 + "flag": "HIDDEN_ITEM_MT_MOON_B1F_TINY_MUSHROOM_2", + "quantity": 1, + "underfoot": false }, { "type": "hidden_item", @@ -97,8 +99,9 @@ "y": 34, "elevation": 0, "item": "ITEM_TINY_MUSHROOM", - "flag": "86", - "unknown": 1 + "flag": "HIDDEN_ITEM_MT_MOON_B1F_TINY_MUSHROOM_3", + "quantity": 1, + "underfoot": false }, { "type": "hidden_item", @@ -106,8 +109,9 @@ "y": 35, "elevation": 0, "item": "ITEM_BIG_MUSHROOM", - "flag": "87", - "unknown": 1 + "flag": "HIDDEN_ITEM_MT_MOON_B1F_BIG_MUSHROOM", + "quantity": 1, + "underfoot": false }, { "type": "hidden_item", @@ -115,8 +119,9 @@ "y": 12, "elevation": 0, "item": "ITEM_BIG_MUSHROOM", - "flag": "88", - "unknown": 1 + "flag": "HIDDEN_ITEM_MT_MOON_B1F_BIG_MUSHROOM_2", + "quantity": 1, + "underfoot": false }, { "type": "hidden_item", @@ -124,8 +129,9 @@ "y": 34, "elevation": 0, "item": "ITEM_BIG_MUSHROOM", - "flag": "89", - "unknown": 1 + "flag": "HIDDEN_ITEM_MT_MOON_B1F_BIG_MUSHROOM_3", + "quantity": 1, + "underfoot": false } ] } diff --git a/data/maps/MtMoon_B2F/map.json b/data/maps/MtMoon_B2F/map.json index ad5ea2d86..652a883b3 100644 --- a/data/maps/MtMoon_B2F/map.json +++ b/data/maps/MtMoon_B2F/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "98", + "graphics_id": "MAP_OBJ_GFX_FOSSIL", "x": 13, "y": 7, "elevation": 3, @@ -24,10 +24,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "MtMoon_B2F_EventScript_16071B", - "flag": "47" + "flag": "FLAG_HIDE_DOME_FOSSIL" }, { - "graphics_id": "98", + "graphics_id": "MAP_OBJ_GFX_FOSSIL", "x": 14, "y": 7, "elevation": 3, @@ -37,10 +37,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "MtMoon_B2F_EventScript_16077F", - "flag": "48" + "flag": "FLAG_HIDE_HELIX_FOSSIL" }, { - "graphics_id": "55", + "graphics_id": "MAP_OBJ_GFX_SCIENTIST", "x": 13, "y": 11, "elevation": 3, @@ -53,7 +53,7 @@ "flag": "0" }, { - "graphics_id": "49", + "graphics_id": "MAP_OBJ_GFX_ROCKET_M", "x": 37, "y": 21, "elevation": 3, @@ -63,10 +63,10 @@ "trainer_type": 1, "trainer_sight_or_berry_tree_id": 3, "script": "MtMoon_B2F_EventScript_160829", - "flag": "173" + "flag": "FLAG_HIDE_MISC_KANTO_ROCKETS" }, { - "graphics_id": "49", + "graphics_id": "MAP_OBJ_GFX_ROCKET_M", "x": 12, "y": 20, "elevation": 3, @@ -76,10 +76,10 @@ "trainer_type": 1, "trainer_sight_or_berry_tree_id": 2, "script": "MtMoon_B2F_EventScript_1607E4", - "flag": "173" + "flag": "FLAG_HIDE_MISC_KANTO_ROCKETS" }, { - "graphics_id": "49", + "graphics_id": "MAP_OBJ_GFX_ROCKET_M", "x": 35, "y": 12, "elevation": 3, @@ -89,10 +89,10 @@ "trainer_type": 1, "trainer_sight_or_berry_tree_id": 4, "script": "MtMoon_B2F_EventScript_160812", - "flag": "173" + "flag": "FLAG_HIDE_MISC_KANTO_ROCKETS" }, { - "graphics_id": "49", + "graphics_id": "MAP_OBJ_GFX_ROCKET_M", "x": 18, "y": 27, "elevation": 3, @@ -102,10 +102,10 @@ "trainer_type": 1, "trainer_sight_or_berry_tree_id": 4, "script": "MtMoon_B2F_EventScript_1607FB", - "flag": "173" + "flag": "FLAG_HIDE_MISC_KANTO_ROCKETS" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 30, "y": 26, "elevation": 3, @@ -115,10 +115,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "MtMoon_B2F_EventScript_1BE61D", - "flag": "351" + "flag": "FLAG_HIDE_MT_MOON_B2F_STAR_PIECE" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 35, "y": 5, "elevation": 3, @@ -128,10 +128,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "MtMoon_B2F_EventScript_1BE62A", - "flag": "352" + "flag": "FLAG_HIDE_MT_MOON_B2F_TM46" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 24, "y": 6, "elevation": 3, @@ -141,10 +141,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "MtMoon_B2F_EventScript_1BEAD6", - "flag": "447" + "flag": "FLAG_HIDE_MT_MOON_B2F_REVIVE" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 3, "y": 11, "elevation": 3, @@ -154,7 +154,7 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "MtMoon_B2F_EventScript_1BEAE3", - "flag": "448" + "flag": "FLAG_HIDE_MT_MOON_B2F_ANTIDOTE" } ], "warp_events": [ @@ -193,7 +193,7 @@ "x": 14, "y": 11, "elevation": 3, - "var": "VAR_0x408B", + "var": "VAR_MAP_SCENE_MT_MOON_B2F", "var_value": 0, "script": "MtMoon_B2F_EventScript_1606B0" } @@ -205,8 +205,9 @@ "y": 16, "elevation": 3, "item": "ITEM_MOON_STONE", - "flag": "2", - "unknown": 1 + "flag": "HIDDEN_ITEM_MT_MOON_B2F_MOON_STONE", + "quantity": 1, + "underfoot": false }, { "type": "hidden_item", @@ -214,8 +215,9 @@ "y": 11, "elevation": 3, "item": "ITEM_ETHER", - "flag": "3", - "unknown": 1 + "flag": "HIDDEN_ITEM_MT_MOON_B2F_ETHER", + "quantity": 1, + "underfoot": false } ] } diff --git a/data/maps/MtMoon_B2F/scripts.inc b/data/maps/MtMoon_B2F/scripts.inc index c8cf811c0..5c26a3ad1 100644 --- a/data/maps/MtMoon_B2F/scripts.inc +++ b/data/maps/MtMoon_B2F/scripts.inc @@ -3,13 +3,13 @@ MtMoon_B2F_MapScripts:: @ 8160699 .byte 0 MtMoon_B2F_MapScript1_16069F:: @ 816069F - checkflag FLAG_0x232 - call_if 0, EventScript_1606A9 + checkflag FLAG_GOT_FOSSIL_FROM_MT_MOON + call_if FALSE, EventScript_1606A9 end EventScript_1606A9:: @ 81606A9 - clearflag FLAG_0x02F - clearflag FLAG_0x030 + clearflag FLAG_HIDE_DOME_FOSSIL + clearflag FLAG_HIDE_HELIX_FOSSIL return MtMoon_B2F_EventScript_1606B0:: @ 81606B0 @@ -23,10 +23,10 @@ MtMoon_B2F_EventScript_1606B0:: @ 81606B0 MtMoon_B2F_EventScript_1606C2:: @ 81606C2 lock faceplayer - checkflag FLAG_0x232 - goto_if_eq EventScript_160707 - checktrainerflag FLAG_0x0AA - goto_if_eq EventScript_160711 + checkflag FLAG_GOT_FOSSIL_FROM_MT_MOON + goto_if TRUE, EventScript_160707 + checktrainerflag TRAINER_SUPER_NERD_MIGUEL + goto_if eq, EventScript_160711 call EventScript_1606DD release end @@ -38,8 +38,8 @@ EventScript_1606DD:: @ 81606DD playbgm MUS_EXEYE, 0 waitbuttonpress setvar VAR_LAST_TALKED, 3 - trainerbattle 3, 170, 0, Text_172B99 - setvar VAR_0x408B, 1 + trainerbattle TRAINER_BATTLE_SINGLE_NO_INTRO_TEXT, TRAINER_SUPER_NERD_MIGUEL, 0, Text_172B99 + setvar VAR_MAP_SCENE_MT_MOON_B2F, 1 msgbox gUnknown_8172BAB return @@ -58,7 +58,7 @@ MtMoon_B2F_EventScript_16071B:: @ 816071B faceplayer msgbox gUnknown_8172E77, MSGBOX_YESNO compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_1607DE + goto_if eq, EventScript_1607DE removeobject 1 additem ITEM_DOME_FOSSIL, 1 giveitemfanfaremsg gUnknown_8172ECD, ITEM_DOME_FOSSIL, 1, MUS_FAN5 @@ -74,8 +74,8 @@ MtMoon_B2F_EventScript_16071B:: @ 816071B waitmessage waitfanfare removeobject 2 - setflag FLAG_0x272 - setflag FLAG_0x232 + setflag FLAG_GOT_DOME_FOSSIL + setflag FLAG_GOT_FOSSIL_FROM_MT_MOON release end @@ -91,7 +91,7 @@ MtMoon_B2F_EventScript_16077F:: @ 816077F faceplayer msgbox gUnknown_8172E94, MSGBOX_YESNO compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_1607DE + goto_if eq, EventScript_1607DE removeobject 2 additem ITEM_HELIX_FOSSIL, 1 giveitemfanfaremsg gUnknown_8172EB2, ITEM_HELIX_FOSSIL, 1, MUS_FAN5 @@ -107,8 +107,8 @@ MtMoon_B2F_EventScript_16077F:: @ 816077F waitmessage waitfanfare removeobject 1 - setflag FLAG_0x273 - setflag FLAG_0x232 + setflag FLAG_GOT_HELIX_FOSSIL + setflag FLAG_GOT_FOSSIL_FROM_MT_MOON release end @@ -123,21 +123,21 @@ Movement_1607E0:: @ 81607E0 step_end MtMoon_B2F_EventScript_1607E4:: @ 81607E4 - trainerbattle 0, 351, 0, Text_172C5A, Text_172CB8 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_TEAM_ROCKET_GRUNT, 0, Text_172C5A, Text_172CB8 msgbox gUnknown_8172CCB, 6 end MtMoon_B2F_EventScript_1607FB:: @ 81607FB - trainerbattle 0, 352, 0, Text_172CFC, Text_172D46 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_TEAM_ROCKET_GRUNT_2, 0, Text_172CFC, Text_172D46 msgbox gUnknown_8172D51, 6 end MtMoon_B2F_EventScript_160812:: @ 8160812 - trainerbattle 0, 353, 0, Text_172D82, Text_172DAF + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_TEAM_ROCKET_GRUNT_3, 0, Text_172D82, Text_172DAF msgbox gUnknown_8172DC1, 6 end MtMoon_B2F_EventScript_160829:: @ 8160829 - trainerbattle 0, 354, 0, Text_172DF0, Text_172E3E + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_TEAM_ROCKET_GRUNT_4, 0, Text_172DF0, Text_172E3E msgbox gUnknown_8172E4B, 6 end diff --git a/data/maps/NavelRock_Base/map.json b/data/maps/NavelRock_Base/map.json index aa97091ec..0441624ed 100644 --- a/data/maps/NavelRock_Base/map.json +++ b/data/maps/NavelRock_Base/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "144", + "graphics_id": "MAP_OBJ_GFX_LUGIA", "x": 10, "y": 15, "elevation": 3, @@ -24,7 +24,7 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "NavelRock_Base_EventScript_165134", - "flag": "155" + "flag": "FLAG_HIDE_LUGIA" } ], "warp_events": [ diff --git a/data/maps/NavelRock_Base/scripts.inc b/data/maps/NavelRock_Base/scripts.inc index 78c468022..20cff0f8f 100644 --- a/data/maps/NavelRock_Base/scripts.inc +++ b/data/maps/NavelRock_Base/scripts.inc @@ -4,38 +4,38 @@ NavelRock_Base_MapScripts:: @ 81650E7 .byte 0 NavelRock_Base_MapScript1_1650F2:: @ 81650F2 - checkflag FLAG_0x2F2 - call_if 1, EventScript_165105 - checkflag FLAG_0x2F2 - call_if 0, EventScript_165109 + checkflag FLAG_FOUGHT_LUGIA + call_if TRUE, EventScript_165105 + checkflag FLAG_FOUGHT_LUGIA + call_if FALSE, EventScript_165109 end EventScript_165105:: @ 8165105 - setflag FLAG_0x09B + setflag FLAG_HIDE_LUGIA return EventScript_165109:: @ 8165109 - checkflag FLAG_0x2F5 - goto_if_eq EventScript_1A77A9 - clearflag FLAG_0x09B + checkflag FLAG_LUGIA_FLEW_AWAY + goto_if TRUE, EventScript_1A77A9 + clearflag FLAG_HIDE_LUGIA return NavelRock_Base_MapScript2_165116:: @ 8165116 - checkflag FLAG_0x807 - call_if 1, EventScript_165120 + checkflag FLAG_SYS_SPECIAL_WILD_BATTLE + call_if TRUE, EventScript_165120 end EventScript_165120:: @ 8165120 - specialvar VAR_RESULT, sub_80CA74C - compare_var_to_value VAR_RESULT, 7 - goto_if 5, EventScript_1A77A9 + specialvar VAR_RESULT, Special_GetBattleOutcome + compare_var_to_value VAR_RESULT, B_OUTCOME_CAUGHT + goto_if ne, EventScript_1A77A9 removeobject 1 return NavelRock_Base_EventScript_165134:: @ 8165134 special sub_8110AB4 compare_var_to_value VAR_RESULT, 2 - goto_if_eq EventScript_1A7AE0 + goto_if eq, EventScript_1A7AE0 special sub_8112364 lock faceplayer @@ -46,14 +46,14 @@ NavelRock_Base_EventScript_165134:: @ 8165134 setvar VAR_0x8005, 3 setvar VAR_0x8006, 4 setvar VAR_0x8007, 2 - special sub_80CAC28 + special Special_ShakeScreen delay 30 playse SE_T_AME_E setvar VAR_0x8004, 0 setvar VAR_0x8005, 3 setvar VAR_0x8006, 4 setvar VAR_0x8007, 2 - special sub_80CAC28 + special Special_ShakeScreen delay 30 delay 50 waitse @@ -64,23 +64,23 @@ NavelRock_Base_EventScript_165134:: @ 8165134 setvar VAR_0x8005, 70 setvar VAR_0x8006, 0 special CreateObedientEnemyMon - setflag FLAG_0x807 - special sub_807F9D8 + setflag FLAG_SYS_SPECIAL_WILD_BATTLE + special Special_StartLegendaryBattle waitstate - clearflag FLAG_0x807 - specialvar VAR_RESULT, sub_80CA74C - compare_var_to_value VAR_RESULT, 1 - goto_if_eq EventScript_1651D9 - compare_var_to_value VAR_RESULT, 4 - goto_if_eq EventScript_1651E7 - compare_var_to_value VAR_RESULT, 5 - goto_if_eq EventScript_1651E7 - setflag FLAG_0x2F2 + clearflag FLAG_SYS_SPECIAL_WILD_BATTLE + specialvar VAR_RESULT, Special_GetBattleOutcome + compare_var_to_value VAR_RESULT, B_OUTCOME_WON + goto_if eq, EventScript_1651D9 + compare_var_to_value VAR_RESULT, B_OUTCOME_RAN + goto_if eq, EventScript_1651E7 + compare_var_to_value VAR_RESULT, B_OUTCOME_PLAYER_TELEPORTED + goto_if eq, EventScript_1651E7 + setflag FLAG_FOUGHT_LUGIA release end EventScript_1651D9:: @ 81651D9 - setflag FLAG_0x2F5 + setflag FLAG_LUGIA_FLEW_AWAY setvar VAR_0x8004, SPECIES_LUGIA goto EventScript_1A9236 end diff --git a/data/maps/NavelRock_Harbor/map.json b/data/maps/NavelRock_Harbor/map.json index dee041a54..cdbf54da8 100644 --- a/data/maps/NavelRock_Harbor/map.json +++ b/data/maps/NavelRock_Harbor/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "108", + "graphics_id": "MAP_OBJ_GFX_SEAGALLOP", "x": 8, "y": 9, "elevation": 0, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "62", + "graphics_id": "MAP_OBJ_GFX_SAILOR", "x": 8, "y": 6, "elevation": 3, diff --git a/data/maps/NavelRock_Harbor/scripts.inc b/data/maps/NavelRock_Harbor/scripts.inc index 6e630ca01..60832d168 100644 --- a/data/maps/NavelRock_Harbor/scripts.inc +++ b/data/maps/NavelRock_Harbor/scripts.inc @@ -1 +1,16 @@ -@ .include "data/maps/NavelRock_Harbor/scripts.inc" + +NavelRock_Harbor_MapScripts:: @ 8165420 + .byte 0 + +NavelRock_Harbor_EventScript_165421:: @ 8165421 + lock + faceplayer + message Text_181726 + waitmessage + setvar VAR_0x8004, SEAGALLOP_NAVEL_ROCK + multichoice 20, 8, MULTICHOICE_SEAGALLOP_VERMILION, FALSE + switch VAR_RESULT + case 0, EventScript_1A91D5 + case 1, EventScript_1A90F6 + case 127, EventScript_1A90F6 + end diff --git a/data/maps/NavelRock_Summit/map.json b/data/maps/NavelRock_Summit/map.json index 62a375525..fe7c5dd8b 100644 --- a/data/maps/NavelRock_Summit/map.json +++ b/data/maps/NavelRock_Summit/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "145", + "graphics_id": "MAP_OBJ_GFX_HO_OH", "x": 9, "y": 6, "elevation": 0, @@ -24,7 +24,7 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "0x0", - "flag": "156" + "flag": "FLAG_HIDE_HO_OH" } ], "warp_events": [ @@ -54,8 +54,9 @@ "y": 11, "elevation": 3, "item": "ITEM_SACRED_ASH", - "flag": "160", - "unknown": 129 + "flag": "HIDDEN_ITEM_NAVEL_ROCK_SUMMIT_SACRED_ASH", + "quantity": 1, + "underfoot": true } ] } diff --git a/data/maps/NavelRock_Summit/scripts.inc b/data/maps/NavelRock_Summit/scripts.inc index d359d4d25..563ef520f 100644 --- a/data/maps/NavelRock_Summit/scripts.inc +++ b/data/maps/NavelRock_Summit/scripts.inc @@ -4,48 +4,48 @@ NavelRock_Summit_MapScripts:: @ 8164F9F .byte 0 NavelRock_Summit_MapScript1_164FAA:: @ 8164FAA - checkflag FLAG_0x2F3 - call_if 1, EventScript_164FBD - checkflag FLAG_0x2F3 - call_if 0, EventScript_164FC6 + checkflag FLAG_FOUGHT_HO_OH + call_if TRUE, EventScript_164FBD + checkflag FLAG_FOUGHT_HO_OH + call_if FALSE, EventScript_164FC6 end EventScript_164FBD:: @ 8164FBD setvar VAR_0x4001, 1 - setflag FLAG_0x09C + setflag FLAG_HIDE_HO_OH return EventScript_164FC6:: @ 8164FC6 setvar VAR_0x4001, 1 - checkflag FLAG_0x2F6 - goto_if_eq EventScript_1A77A9 + checkflag FLAG_HO_OH_FLEW_AWAY + goto_if TRUE, EventScript_1A77A9 setvar VAR_0x4001, 0 - clearflag FLAG_0x09C + clearflag FLAG_HIDE_HO_OH return NavelRock_Summit_MapScript2_164FDD:: @ 8164FDD - checkflag FLAG_0x807 - call_if 1, EventScript_164FE7 + checkflag FLAG_SYS_SPECIAL_WILD_BATTLE + call_if TRUE, EventScript_164FE7 end EventScript_164FE7:: @ 8164FE7 - specialvar VAR_RESULT, sub_80CA74C - compare_var_to_value VAR_RESULT, 7 - goto_if 5, EventScript_1A77A9 + specialvar VAR_RESULT, Special_GetBattleOutcome + compare_var_to_value VAR_RESULT, B_OUTCOME_CAUGHT + goto_if ne, EventScript_1A77A9 removeobject 1 return NavelRock_Summit_EventScript_164FFB:: @ 8164FFB special sub_8110AB4 compare_var_to_value VAR_RESULT, 2 - goto_if_eq EventScript_1A7AE0 + goto_if eq, EventScript_1A7AE0 special sub_8112364 lockall setvar VAR_0x4001, 1 - special SpawnScriptFieldObject + special SpawnCameraObject setvar VAR_0x8004, 3 setvar VAR_0x8005, 35 - special sub_80CD1B4 + special Special_LoopWingFlapSound applymovement 1, Movement_1650E0 applymovement 127, Movement_1650CD waitmovement 0 @@ -59,33 +59,33 @@ NavelRock_Summit_EventScript_164FFB:: @ 8164FFB delay 60 setvar VAR_0x8004, 3 setvar VAR_0x8005, 35 - special sub_80CD1B4 + special Special_LoopWingFlapSound applymovement 127, Movement_1650D1 applymovement 1, Movement_1650D7 waitmovement 0 - special RemoveScriptFieldObject + special RemoveCameraObject setvar VAR_0x8004, SPECIES_HO_OH setvar VAR_0x8005, 70 setvar VAR_0x8006, 0 special CreateObedientEnemyMon - setflag FLAG_0x807 - special sub_807F9D8 + setflag FLAG_SYS_SPECIAL_WILD_BATTLE + special Special_StartLegendaryBattle waitstate - clearflag FLAG_0x807 + clearflag FLAG_SYS_SPECIAL_WILD_BATTLE setvar VAR_LAST_TALKED, 1 - specialvar VAR_RESULT, sub_80CA74C - compare_var_to_value VAR_RESULT, 1 - goto_if_eq EventScript_1650B4 - compare_var_to_value VAR_RESULT, 4 - goto_if_eq EventScript_1650C2 - compare_var_to_value VAR_RESULT, 5 - goto_if_eq EventScript_1650C2 - setflag FLAG_0x2F3 + specialvar VAR_RESULT, Special_GetBattleOutcome + compare_var_to_value VAR_RESULT, B_OUTCOME_WON + goto_if eq, EventScript_1650B4 + compare_var_to_value VAR_RESULT, B_OUTCOME_RAN + goto_if eq, EventScript_1650C2 + compare_var_to_value VAR_RESULT, B_OUTCOME_PLAYER_TELEPORTED + goto_if eq, EventScript_1650C2 + setflag FLAG_FOUGHT_HO_OH releaseall end EventScript_1650B4:: @ 81650B4 - setflag FLAG_0x2F6 + setflag FLAG_HO_OH_FLEW_AWAY setvar VAR_0x8004, SPECIES_HO_OH goto EventScript_1A9236 end diff --git a/data/maps/OneIsland/map.json b/data/maps/OneIsland/map.json index 0bd30ba71..fb1e43775 100644 --- a/data/maps/OneIsland/map.json +++ b/data/maps/OneIsland/map.json @@ -25,7 +25,7 @@ ], "object_events": [ { - "graphics_id": "73", + "graphics_id": "MAP_OBJ_GFX_BILL", "x": 12, "y": 16, "elevation": 3, @@ -35,10 +35,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "0x0", - "flag": "113" + "flag": "FLAG_HIDE_ONE_ISLAND_BILL" }, { - "graphics_id": "32", + "graphics_id": "MAP_OBJ_GFX_OLD_MAN_1", "x": 16, "y": 12, "elevation": 3, @@ -51,7 +51,7 @@ "flag": "0" }, { - "graphics_id": "30", + "graphics_id": "MAP_OBJ_GFX_BALDING_MAN", "x": 13, "y": 9, "elevation": 3, diff --git a/data/maps/OneIsland/scripts.inc b/data/maps/OneIsland/scripts.inc index 540980a3e..16830e056 100644 --- a/data/maps/OneIsland/scripts.inc +++ b/data/maps/OneIsland/scripts.inc @@ -83,10 +83,10 @@ Movement_167514:: @ 8167514 OneIsland_EventScript_167517:: @ 8167517 lock faceplayer - checkflag FLAG_0x844 - goto_if_eq EventScript_16753F - checkflag FLAG_0x2A1 - goto_if_eq EventScript_167535 + checkflag FLAG_SYS_CAN_LINK_WITH_RS + goto_if TRUE, EventScript_16753F + checkflag FLAG_SEVII_DETOUR_FINISHED + goto_if TRUE, EventScript_167535 msgbox gUnknown_818174E release end diff --git a/data/maps/OneIsland_Harbor/map.json b/data/maps/OneIsland_Harbor/map.json index 6a8cbe4b2..861731295 100644 --- a/data/maps/OneIsland_Harbor/map.json +++ b/data/maps/OneIsland_Harbor/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "108", + "graphics_id": "MAP_OBJ_GFX_SEAGALLOP", "x": 8, "y": 9, "elevation": 0, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "62", + "graphics_id": "MAP_OBJ_GFX_SAILOR", "x": 8, "y": 6, "elevation": 3, diff --git a/data/maps/OneIsland_Harbor/scripts.inc b/data/maps/OneIsland_Harbor/scripts.inc index 44c18ff60..75e74dad7 100644 --- a/data/maps/OneIsland_Harbor/scripts.inc +++ b/data/maps/OneIsland_Harbor/scripts.inc @@ -37,6 +37,6 @@ OneIsland_Harbor_EventScript_1713BD:: @ 81713BD faceplayer message Text_181726 waitmessage - setvar VAR_0x8004, 1 + setvar VAR_0x8004, SEAGALLOP_ONE_ISLAND goto EventScript_1A8EC5 end diff --git a/data/maps/OneIsland_House1/map.json b/data/maps/OneIsland_House1/map.json index 7367836f7..216436861 100644 --- a/data/maps/OneIsland_House1/map.json +++ b/data/maps/OneIsland_House1/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "32", + "graphics_id": "MAP_OBJ_GFX_OLD_MAN_1", "x": 4, "y": 5, "elevation": 3, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "35", + "graphics_id": "MAP_OBJ_GFX_OLD_WOMAN", "x": 7, "y": 5, "elevation": 3, diff --git a/data/maps/OneIsland_House2/map.json b/data/maps/OneIsland_House2/map.json index d88b79750..06f7031e1 100644 --- a/data/maps/OneIsland_House2/map.json +++ b/data/maps/OneIsland_House2/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "22", + "graphics_id": "MAP_OBJ_GFX_LASS", "x": 9, "y": 4, "elevation": 3, diff --git a/data/maps/OneIsland_KindleRoad/map.json b/data/maps/OneIsland_KindleRoad/map.json index 74023f6d0..b618253aa 100644 --- a/data/maps/OneIsland_KindleRoad/map.json +++ b/data/maps/OneIsland_KindleRoad/map.json @@ -20,7 +20,7 @@ ], "object_events": [ { - "graphics_id": "44", + "graphics_id": "MAP_OBJ_GFX_SWIMMER_F_WATER", "x": 11, "y": 32, "elevation": 1, @@ -33,7 +33,7 @@ "flag": "0" }, { - "graphics_id": "46", + "graphics_id": "MAP_OBJ_GFX_SWIMMER_F_LAND", "x": 17, "y": 132, "elevation": 3, @@ -46,7 +46,7 @@ "flag": "0" }, { - "graphics_id": "43", + "graphics_id": "MAP_OBJ_GFX_SWIMMER_M_WATER", "x": 7, "y": 39, "elevation": 1, @@ -59,7 +59,7 @@ "flag": "0" }, { - "graphics_id": "45", + "graphics_id": "MAP_OBJ_GFX_SWIMMER_M_LAND", "x": 19, "y": 79, "elevation": 3, @@ -72,7 +72,7 @@ "flag": "0" }, { - "graphics_id": "57", + "graphics_id": "MAP_OBJ_GFX_FISHER", "x": 15, "y": 25, "elevation": 3, @@ -85,7 +85,7 @@ "flag": "0" }, { - "graphics_id": "24", + "graphics_id": "MAP_OBJ_GFX_BATTLE_GIRL", "x": 9, "y": 53, "elevation": 3, @@ -98,7 +98,7 @@ "flag": "0" }, { - "graphics_id": "24", + "graphics_id": "MAP_OBJ_GFX_BATTLE_GIRL", "x": 18, "y": 105, "elevation": 4, @@ -111,7 +111,7 @@ "flag": "0" }, { - "graphics_id": "54", + "graphics_id": "MAP_OBJ_GFX_BLACKBELT", "x": 16, "y": 64, "elevation": 3, @@ -124,7 +124,7 @@ "flag": "0" }, { - "graphics_id": "54", + "graphics_id": "MAP_OBJ_GFX_BLACKBELT", "x": 11, "y": 64, "elevation": 3, @@ -137,7 +137,7 @@ "flag": "0" }, { - "graphics_id": "39", + "graphics_id": "MAP_OBJ_GFX_CAMPER", "x": 11, "y": 89, "elevation": 3, @@ -150,7 +150,7 @@ "flag": "0" }, { - "graphics_id": "40", + "graphics_id": "MAP_OBJ_GFX_PICNICKER", "x": 9, "y": 108, "elevation": 3, @@ -163,7 +163,7 @@ "flag": "0" }, { - "graphics_id": "54", + "graphics_id": "MAP_OBJ_GFX_BLACKBELT", "x": 8, "y": 68, "elevation": 3, @@ -176,7 +176,7 @@ "flag": "0" }, { - "graphics_id": "24", + "graphics_id": "MAP_OBJ_GFX_BATTLE_GIRL", "x": 9, "y": 68, "elevation": 3, @@ -189,7 +189,7 @@ "flag": "0" }, { - "graphics_id": "96", + "graphics_id": "MAP_OBJ_GFX_ROCK_SMASH_ROCK", "x": 8, "y": 104, "elevation": 3, @@ -198,11 +198,11 @@ "movement_range_y": 1, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "OneIsland_KindleRoad_EventScript_1BE00C", - "flag": "19" + "script": "EventScript_InteractWithRockSmashRockObject", + "flag": "FLAG_TEMP_13" }, { - "graphics_id": "96", + "graphics_id": "MAP_OBJ_GFX_ROCK_SMASH_ROCK", "x": 11, "y": 95, "elevation": 3, @@ -211,11 +211,11 @@ "movement_range_y": 1, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "OneIsland_KindleRoad_EventScript_1BE00C", - "flag": "21" + "script": "EventScript_InteractWithRockSmashRockObject", + "flag": "FLAG_TEMP_15" }, { - "graphics_id": "96", + "graphics_id": "MAP_OBJ_GFX_ROCK_SMASH_ROCK", "x": 12, "y": 96, "elevation": 3, @@ -224,11 +224,11 @@ "movement_range_y": 1, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "OneIsland_KindleRoad_EventScript_1BE00C", - "flag": "22" + "script": "EventScript_InteractWithRockSmashRockObject", + "flag": "FLAG_TEMP_16" }, { - "graphics_id": "96", + "graphics_id": "MAP_OBJ_GFX_ROCK_SMASH_ROCK", "x": 10, "y": 95, "elevation": 3, @@ -237,11 +237,11 @@ "movement_range_y": 1, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "OneIsland_KindleRoad_EventScript_1BE00C", - "flag": "23" + "script": "EventScript_InteractWithRockSmashRockObject", + "flag": "FLAG_TEMP_17" }, { - "graphics_id": "96", + "graphics_id": "MAP_OBJ_GFX_ROCK_SMASH_ROCK", "x": 9, "y": 105, "elevation": 3, @@ -250,11 +250,11 @@ "movement_range_y": 1, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "OneIsland_KindleRoad_EventScript_1BE00C", - "flag": "24" + "script": "EventScript_InteractWithRockSmashRockObject", + "flag": "FLAG_TEMP_18" }, { - "graphics_id": "96", + "graphics_id": "MAP_OBJ_GFX_ROCK_SMASH_ROCK", "x": 15, "y": 75, "elevation": 3, @@ -263,11 +263,11 @@ "movement_range_y": 1, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "OneIsland_KindleRoad_EventScript_1BE00C", - "flag": "25" + "script": "EventScript_InteractWithRockSmashRockObject", + "flag": "FLAG_TEMP_19" }, { - "graphics_id": "96", + "graphics_id": "MAP_OBJ_GFX_ROCK_SMASH_ROCK", "x": 9, "y": 84, "elevation": 3, @@ -276,11 +276,11 @@ "movement_range_y": 1, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "OneIsland_KindleRoad_EventScript_1BE00C", - "flag": "26" + "script": "EventScript_InteractWithRockSmashRockObject", + "flag": "FLAG_TEMP_1A" }, { - "graphics_id": "96", + "graphics_id": "MAP_OBJ_GFX_ROCK_SMASH_ROCK", "x": 15, "y": 74, "elevation": 3, @@ -289,11 +289,11 @@ "movement_range_y": 1, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "OneIsland_KindleRoad_EventScript_1BE00C", - "flag": "27" + "script": "EventScript_InteractWithRockSmashRockObject", + "flag": "FLAG_TEMP_1B" }, { - "graphics_id": "96", + "graphics_id": "MAP_OBJ_GFX_ROCK_SMASH_ROCK", "x": 15, "y": 73, "elevation": 3, @@ -302,11 +302,11 @@ "movement_range_y": 1, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "OneIsland_KindleRoad_EventScript_1BE00C", - "flag": "28" + "script": "EventScript_InteractWithRockSmashRockObject", + "flag": "FLAG_TEMP_1C" }, { - "graphics_id": "96", + "graphics_id": "MAP_OBJ_GFX_ROCK_SMASH_ROCK", "x": 18, "y": 111, "elevation": 4, @@ -315,11 +315,11 @@ "movement_range_y": 1, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "OneIsland_KindleRoad_EventScript_1BE00C", - "flag": "29" + "script": "EventScript_InteractWithRockSmashRockObject", + "flag": "FLAG_TEMP_1D" }, { - "graphics_id": "96", + "graphics_id": "MAP_OBJ_GFX_ROCK_SMASH_ROCK", "x": 10, "y": 86, "elevation": 3, @@ -328,11 +328,11 @@ "movement_range_y": 1, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "OneIsland_KindleRoad_EventScript_1BE00C", - "flag": "30" + "script": "EventScript_InteractWithRockSmashRockObject", + "flag": "FLAG_TEMP_1E" }, { - "graphics_id": "96", + "graphics_id": "MAP_OBJ_GFX_ROCK_SMASH_ROCK", "x": 9, "y": 110, "elevation": 3, @@ -341,11 +341,11 @@ "movement_range_y": 1, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "OneIsland_KindleRoad_EventScript_1BE00C", - "flag": "31" + "script": "EventScript_InteractWithRockSmashRockObject", + "flag": "FLAG_TEMP_1F" }, { - "graphics_id": "96", + "graphics_id": "MAP_OBJ_GFX_ROCK_SMASH_ROCK", "x": 18, "y": 112, "elevation": 4, @@ -354,11 +354,11 @@ "movement_range_y": 1, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "OneIsland_KindleRoad_EventScript_1BE00C", - "flag": "17" + "script": "EventScript_InteractWithRockSmashRockObject", + "flag": "FLAG_TEMP_11" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 15, "y": 70, "elevation": 3, @@ -368,10 +368,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "OneIsland_KindleRoad_EventScript_1BEC42", - "flag": "475" + "flag": "FLAG_HIDE_ONE_ISLAND_KINDLE_ROAD_ETHER" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 17, "y": 103, "elevation": 3, @@ -381,10 +381,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "OneIsland_KindleRoad_EventScript_1BEC4F", - "flag": "476" + "flag": "FLAG_HIDE_ONE_ISLAND_KINDLE_ROAD_MAX_REPEL" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 18, "y": 114, "elevation": 4, @@ -394,7 +394,7 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "OneIsland_KindleRoad_EventScript_1BEC5C", - "flag": "477" + "flag": "FLAG_HIDE_ONE_ISLAND_KINDLE_ROAD_CARBOS" } ], "warp_events": [ diff --git a/data/maps/OneIsland_KindleRoad_EmberSpa/map.json b/data/maps/OneIsland_KindleRoad_EmberSpa/map.json index 71bbbe0dd..cefa0b75b 100644 --- a/data/maps/OneIsland_KindleRoad_EmberSpa/map.json +++ b/data/maps/OneIsland_KindleRoad_EmberSpa/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "32", + "graphics_id": "MAP_OBJ_GFX_OLD_MAN_1", "x": 11, "y": 13, "elevation": 3, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "30", + "graphics_id": "MAP_OBJ_GFX_BALDING_MAN", "x": 15, "y": 11, "elevation": 3, @@ -40,7 +40,7 @@ "flag": "0" }, { - "graphics_id": "54", + "graphics_id": "MAP_OBJ_GFX_BLACKBELT", "x": 6, "y": 8, "elevation": 3, @@ -50,10 +50,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "OneIsland_KindleRoad_EmberSpa_EventScript_165380", - "flag": "157" + "flag": "FLAG_HIDE_POSTGAME_GOSSIPERS" }, { - "graphics_id": "35", + "graphics_id": "MAP_OBJ_GFX_OLD_WOMAN", "x": 20, "y": 7, "elevation": 3, @@ -66,7 +66,7 @@ "flag": "0" }, { - "graphics_id": "32", + "graphics_id": "MAP_OBJ_GFX_OLD_MAN_1", "x": 10, "y": 5, "elevation": 3, @@ -79,7 +79,7 @@ "flag": "0" }, { - "graphics_id": "30", + "graphics_id": "MAP_OBJ_GFX_BALDING_MAN", "x": 11, "y": 20, "elevation": 3, diff --git a/data/maps/OneIsland_KindleRoad_EmberSpa/scripts.inc b/data/maps/OneIsland_KindleRoad_EmberSpa/scripts.inc index fbb4fb622..71c8cf0ee 100644 --- a/data/maps/OneIsland_KindleRoad_EmberSpa/scripts.inc +++ b/data/maps/OneIsland_KindleRoad_EmberSpa/scripts.inc @@ -20,9 +20,7 @@ OneIsland_KindleRoad_EmberSpa_EventScript_165377:: @ 8165377 OneIsland_KindleRoad_EmberSpa_EventScript_165380:: @ 8165380 lock faceplayer - setvar VAR_0x8004, 10 - setvar VAR_0x8005, 3 - special SetFlavorTextFlagFromSpecialVars + famechecker FAMECHECKER_BRUNO, 3 msgbox gUnknown_817D550 release end @@ -30,11 +28,11 @@ OneIsland_KindleRoad_EmberSpa_EventScript_165380:: @ 8165380 OneIsland_KindleRoad_EmberSpa_EventScript_165399:: @ 8165399 lock faceplayer - checkflag FLAG_0x2EF - goto_if_eq EventScript_1653C5 + checkflag FLAG_GOT_HM06 + goto_if TRUE, EventScript_1653C5 msgbox gUnknown_817D622 giveitem ITEM_HM06 - setflag FLAG_0x2EF + setflag FLAG_GOT_HM06 msgbox gUnknown_817D6F3 release end diff --git a/data/maps/OneIsland_PokemonCenter_1F/map.json b/data/maps/OneIsland_PokemonCenter_1F/map.json index 4c6527a0a..b5575d3fd 100644 --- a/data/maps/OneIsland_PokemonCenter_1F/map.json +++ b/data/maps/OneIsland_PokemonCenter_1F/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "64", + "graphics_id": "MAP_OBJ_GFX_NURSE", "x": 5, "y": 2, "elevation": 3, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "73", + "graphics_id": "MAP_OBJ_GFX_BILL", "x": 14, "y": 6, "elevation": 3, @@ -37,10 +37,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "OneIsland_PokemonCenter_1F_EventScript_170E9D", - "flag": "114" + "flag": "FLAG_HIDE_ONE_ISLAND_POKECENTER_BILL" }, { - "graphics_id": "89", + "graphics_id": "MAP_OBJ_GFX_CELIO", "x": 15, "y": 6, "elevation": 3, @@ -50,10 +50,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "OneIsland_PokemonCenter_1F_EventScript_170EC5", - "flag": "115" + "flag": "FLAG_HIDE_ONE_ISLAND_POKECENTER_CELIO" }, { - "graphics_id": "16", + "graphics_id": "MAP_OBJ_GFX_LITTLE_BOY", "x": 6, "y": 8, "elevation": 3, @@ -66,7 +66,7 @@ "flag": "0" }, { - "graphics_id": "56", + "graphics_id": "MAP_OBJ_GFX_HIKER", "x": 3, "y": 7, "elevation": 3, @@ -79,7 +79,7 @@ "flag": "0" }, { - "graphics_id": "24", + "graphics_id": "MAP_OBJ_GFX_BATTLE_GIRL", "x": 7, "y": 4, "elevation": 3, diff --git a/data/maps/OneIsland_PokemonCenter_1F/scripts.inc b/data/maps/OneIsland_PokemonCenter_1F/scripts.inc index bb4e0f765..a1d5b25a7 100644 --- a/data/maps/OneIsland_PokemonCenter_1F/scripts.inc +++ b/data/maps/OneIsland_PokemonCenter_1F/scripts.inc @@ -7,9 +7,9 @@ OneIsland_PokemonCenter_1F_MapScripts:: @ 8170BF8 OneIsland_PokemonCenter_1F_MapScript3_170C0D:: @ 8170C0D compare_var_to_value VAR_MAP_SCENE_ONE_ISLAND_POKEMON_CENTER_1F, 5 - call_if 4, EventScript_170C22 - checkflag FLAG_0x844 - call_if 1, EventScript_170C36 + call_if ge, EventScript_170C22 + checkflag FLAG_SYS_CAN_LINK_WITH_RS + call_if TRUE, EventScript_170C36 end EventScript_170C22:: @ 8170C22 @@ -29,11 +29,11 @@ EventScript_170C36:: @ 8170C36 OneIsland_PokemonCenter_1F_MapScript1_170C4E:: @ 8170C4E setrespawn SPAWN_ONE_ISLAND compare_var_to_value VAR_MAP_SCENE_ONE_ISLAND_POKEMON_CENTER_1F, 6 - call_if 1, EventScript_170C73 + call_if eq, EventScript_170C73 compare_var_to_value VAR_MAP_SCENE_ONE_ISLAND_POKEMON_CENTER_1F, 0 - call_if 1, EventScript_170C79 + call_if eq, EventScript_170C79 compare_var_to_value VAR_MAP_SCENE_ONE_ISLAND_POKEMON_CENTER_1F, 2 - call_if 1, EventScript_170C90 + call_if eq, EventScript_170C90 end EventScript_170C73:: @ 8170C73 @@ -84,10 +84,10 @@ EventScript_170CB1:: @ 8170CB1 waitmovement 0 applymovement 255, Movement_1A75EB waitmovement 0 - checkflag FLAG_0x82C - call_if 1, EventScript_170E34 - checkflag FLAG_0x82C - call_if 0, EventScript_170E3D + checkflag FLAG_SYS_GAME_CLEAR + call_if TRUE, EventScript_170E34 + checkflag FLAG_SYS_GAME_CLEAR + call_if FALSE, EventScript_170E3D applymovement 3, Movement_1A75ED waitmovement 0 msgbox gUnknown_81A0E17 @@ -112,18 +112,18 @@ EventScript_170CB1:: @ 8170CB1 additem ITEM_TRI_PASS, 1 giveitemfanfaremsg gUnknown_81A231B, ITEM_TRI_PASS, 1, MUS_FAN5 msgbox gUnknown_81A1150 - compare_var_to_value VAR_0x4058, 2 - call_if 4, EventScript_170E46 - compare_var_to_value VAR_0x4058, 2 - call_if 0, EventScript_170E58 - setflag FLAG_0x845 + compare_var_to_value VAR_MAP_SCENE_PALLET_TOWN_GARYS_HOUSE, 2 + call_if ge, EventScript_170E46 + compare_var_to_value VAR_MAP_SCENE_PALLET_TOWN_GARYS_HOUSE, 2 + call_if lt, EventScript_170E58 + setflag FLAG_SYS_SEVII_MAP_123 msgbox gUnknown_81A1230 closemessage applymovement 2, Movement_1A75E9 waitmovement 0 applymovement 3, Movement_1A75E9 waitmovement 0 - setflag FLAG_0x841 + setflag FLAG_SYS_PC_STORAGE_DISABLED setvar VAR_MAP_SCENE_ONE_ISLAND_POKEMON_CENTER_1F, 1 releaseall end @@ -146,8 +146,8 @@ EventScript_170E46:: @ 8170E46 return EventScript_170E58:: @ 8170E58 - setflag FLAG_0x039 - setvar VAR_0x4058, 2 + setflag FLAG_HIDE_TOWN_MAP + setvar VAR_MAP_SCENE_PALLET_TOWN_GARYS_HOUSE, 2 additem ITEM_TOWN_MAP, 1 giveitemfanfaremsg gUnknown_81A1218, ITEM_TOWN_MAP, 1, MUS_FAN5 return @@ -192,8 +192,8 @@ OneIsland_PokemonCenter_1F_EventScript_170E94:: @ 8170E94 OneIsland_PokemonCenter_1F_EventScript_170E9D:: @ 8170E9D lock - checkflag FLAG_0x2A1 - goto_if_eq EventScript_170EB1 + checkflag FLAG_SEVII_DETOUR_FINISHED + goto_if TRUE, EventScript_170EB1 msgbox gUnknown_81A1266 release end @@ -209,22 +209,22 @@ OneIsland_PokemonCenter_1F_EventScript_170EC5:: @ 8170EC5 lock faceplayer compare_var_to_value VAR_MAP_SCENE_ONE_ISLAND_POKEMON_CENTER_1F, 7 - goto_if_eq EventScript_170F35 + goto_if eq, EventScript_170F35 compare_var_to_value VAR_MAP_SCENE_ONE_ISLAND_POKEMON_CENTER_1F, 6 - goto_if_eq EventScript_170F9B - checkflag FLAG_0x2DC - goto_if_eq EventScript_170FA5 + goto_if eq, EventScript_170F9B + checkflag FLAG_RECOVERED_SAPPHIRE + goto_if TRUE, EventScript_170FA5 compare_var_to_value VAR_MAP_SCENE_ONE_ISLAND_POKEMON_CENTER_1F, 5 - goto_if_eq EventScript_17103A - checkflag FLAG_0x2DD - goto_if_eq EventScript_171044 + goto_if eq, EventScript_17103A + checkflag FLAG_GOT_RUBY + goto_if TRUE, EventScript_171044 compare_var_to_value VAR_MAP_SCENE_ONE_ISLAND_POKEMON_CENTER_1F, 4 - goto_if_eq EventScript_1710F2 + goto_if eq, EventScript_1710F2 specialvar VAR_RESULT, IsNationalPokedexEnabled compare_var_to_value VAR_RESULT, 1 - goto_if_eq EventScript_1710FC + goto_if eq, EventScript_1710FC compare_var_to_value VAR_MAP_SCENE_ONE_ISLAND_POKEMON_CENTER_1F, 3 - goto_if_eq EventScript_171134 + goto_if eq, EventScript_171134 msgbox gUnknown_81A1321 closemessage applymovement 3, Movement_1A75E5 @@ -236,28 +236,22 @@ EventScript_170F35:: @ 8170F35 msgbox gUnknown_81A1EBD random 3 compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_170F6D + goto_if eq, EventScript_170F6D compare_var_to_value VAR_RESULT, 1 - goto_if_eq EventScript_170F84 - setvar VAR_0x8004, 13 - setvar VAR_0x8005, 5 - special SetFlavorTextFlagFromSpecialVars + goto_if eq, EventScript_170F84 + famechecker FAMECHECKER_BILL, 5 msgbox gUnknown_81A2076 release end EventScript_170F6D:: @ 8170F6D - setvar VAR_0x8004, 13 - setvar VAR_0x8005, 3 - special SetFlavorTextFlagFromSpecialVars + famechecker FAMECHECKER_BILL, 3 msgbox gUnknown_81A1EF3 release end EventScript_170F84:: @ 8170F84 - setvar VAR_0x8004, 13 - setvar VAR_0x8005, 4 - special SetFlavorTextFlagFromSpecialVars + famechecker FAMECHECKER_BILL, 4 msgbox gUnknown_81A1F7C release end @@ -299,9 +293,9 @@ EventScript_170FA5:: @ 8170FA5 waitmovement 0 msgbox gUnknown_81A1D7D special sub_810B82C - setflag FLAG_0x844 - setflag FLAG_0x05C - setflag FLAG_0x08C + setflag FLAG_SYS_CAN_LINK_WITH_RS + setflag FLAG_HIDE_CERULEAN_CAVE_GUARD + setflag FLAG_HIDE_LORELEI_IN_HER_HOUSE setvar VAR_MAP_SCENE_ONE_ISLAND_POKEMON_CENTER_1F, 6 special InitRoamer release @@ -331,14 +325,14 @@ EventScript_171044:: @ 8171044 waitmovement 0 msgbox gUnknown_81A19AA, MSGBOX_YESNO compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_171099 + goto_if eq, EventScript_171099 goto EventScript_1710B2 end EventScript_171099:: @ 8171099 msgbox gUnknown_81A1A08, MSGBOX_YESNO compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_171099 + goto_if eq, EventScript_171099 goto EventScript_1710B2 end @@ -348,7 +342,7 @@ EventScript_1710B2:: @ 81710B2 removeitem ITEM_TRI_PASS, 1 setvar VAR_MAP_SCENE_ONE_ISLAND_POKEMON_CENTER_1F, 5 additem ITEM_RAINBOW_PASS, 1 - setflag FLAG_0x846 + setflag FLAG_SYS_SEVII_MAP_4567 textcolor 3 playfanfare MUS_FAN5 message Text_1A1B56 @@ -375,7 +369,7 @@ EventScript_1710FC:: @ 81710FC applymovement 3, Movement_1A75E1 waitmovement 0 msgbox gUnknown_81A17DF - setvar VAR_0x407F, 1 + setvar VAR_MAP_SCENE_MT_EMBER_EXTERIOR, 1 setvar VAR_MAP_SCENE_ONE_ISLAND_POKEMON_CENTER_1F, 4 release end @@ -410,8 +404,8 @@ OneIsland_PokemonCenter_1F_EventScript_171151:: @ 8171151 OneIsland_PokemonCenter_1F_EventScript_17115A:: @ 817115A lock faceplayer - checkflag FLAG_0x844 - goto_if_eq EventScript_17116F + checkflag FLAG_SYS_CAN_LINK_WITH_RS + goto_if TRUE, EventScript_17116F msgbox gUnknown_81A218D release end @@ -423,10 +417,10 @@ EventScript_17116F:: @ 817116F OneIsland_PokemonCenter_1F_EventScript_171179:: @ 8171179 lockall - checkflag FLAG_0x844 - goto_if_eq EventScript_1711A0 - checkflag FLAG_0x2A1 - goto_if_eq EventScript_171196 + checkflag FLAG_SYS_CAN_LINK_WITH_RS + goto_if TRUE, EventScript_1711A0 + checkflag FLAG_SEVII_DETOUR_FINISHED + goto_if TRUE, EventScript_171196 msgbox gUnknown_81A223F releaseall end @@ -473,13 +467,13 @@ EventScript_1711DA:: @ 81711DA msgbox gUnknown_81A13B8 closemessage compare_var_to_value VAR_0x4001, 1 - call_if 1, EventScript_1712E4 + call_if eq, EventScript_1712E4 compare_var_to_value VAR_0x4001, 2 - call_if 1, EventScript_1712EF + call_if eq, EventScript_1712EF compare_var_to_value VAR_0x4001, 3 - call_if 1, EventScript_1712FA + call_if eq, EventScript_1712FA compare_var_to_value VAR_0x4001, 4 - call_if 1, EventScript_171305 + call_if eq, EventScript_171305 delay 10 msgbox gUnknown_81A13CB applymovement 255, Movement_1A75ED @@ -514,12 +508,12 @@ EventScript_1711DA:: @ 81711DA applymovement 2, Movement_17132D waitmovement 0 playse SE_KAIDAN - setflag FLAG_0x072 + setflag FLAG_HIDE_ONE_ISLAND_POKECENTER_BILL setvar VAR_MAP_SCENE_ONE_ISLAND_POKEMON_CENTER_1F, 3 - clearflag FLAG_0x062 - setvar VAR_0x4071, 3 - setvar VAR_0x8004, 1 - setvar VAR_0x8006, 8 + clearflag FLAG_HIDE_CINNABAR_BILL + setvar VAR_MAP_SCENE_CINNABAR_ISLAND, 3 + setvar VAR_0x8004, SEAGALLOP_ONE_ISLAND + setvar VAR_0x8006, SEAGALLOP_CINNABAR_ISLAND goto EventScript_1A90DA end diff --git a/data/maps/OneIsland_PokemonCenter_2F/map.json b/data/maps/OneIsland_PokemonCenter_2F/map.json index 616c96a7c..aacfae373 100644 --- a/data/maps/OneIsland_PokemonCenter_2F/map.json +++ b/data/maps/OneIsland_PokemonCenter_2F/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "65", + "graphics_id": "MAP_OBJ_GFX_CABLE_CLUB_RECEPTIONIST", "x": 6, "y": 2, "elevation": 3, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "65", + "graphics_id": "MAP_OBJ_GFX_CABLE_CLUB_RECEPTIONIST", "x": 2, "y": 2, "elevation": 3, @@ -40,7 +40,7 @@ "flag": "0" }, { - "graphics_id": "65", + "graphics_id": "MAP_OBJ_GFX_CABLE_CLUB_RECEPTIONIST", "x": 10, "y": 2, "elevation": 3, @@ -53,7 +53,7 @@ "flag": "0" }, { - "graphics_id": "69", + "graphics_id": "MAP_OBJ_GFX_MG_DELIVERYMAN", "x": 1, "y": 2, "elevation": 3, @@ -63,7 +63,7 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "OneIsland_PokemonCenter_2F_EventScript_1BB1D2", - "flag": "112" + "flag": "FLAG_HIDE_MG_DELIVERYMEN" } ], "warp_events": [ diff --git a/data/maps/OneIsland_TreasureBeach/map.json b/data/maps/OneIsland_TreasureBeach/map.json index b1e946ea0..2d351ae47 100644 --- a/data/maps/OneIsland_TreasureBeach/map.json +++ b/data/maps/OneIsland_TreasureBeach/map.json @@ -20,7 +20,7 @@ ], "object_events": [ { - "graphics_id": "44", + "graphics_id": "MAP_OBJ_GFX_SWIMMER_F_WATER", "x": 8, "y": 11, "elevation": 1, @@ -33,7 +33,7 @@ "flag": "0" }, { - "graphics_id": "19", + "graphics_id": "MAP_OBJ_GFX_BOY", "x": 13, "y": 20, "elevation": 3, @@ -55,8 +55,9 @@ "y": 20, "elevation": 3, "item": "ITEM_STARDUST", - "flag": "103", - "unknown": 1 + "flag": "HIDDEN_ITEM_ONE_ISLAND_TREASURE_BEACH_STARDUST", + "quantity": 1, + "underfoot": false }, { "type": "hidden_item", @@ -64,8 +65,9 @@ "y": 27, "elevation": 3, "item": "ITEM_STARDUST", - "flag": "104", - "unknown": 1 + "flag": "HIDDEN_ITEM_ONE_ISLAND_TREASURE_BEACH_STARDUST_2", + "quantity": 1, + "underfoot": false }, { "type": "hidden_item", @@ -73,8 +75,9 @@ "y": 31, "elevation": 3, "item": "ITEM_PEARL", - "flag": "105", - "unknown": 1 + "flag": "HIDDEN_ITEM_ONE_ISLAND_TREASURE_BEACH_PEARL", + "quantity": 1, + "underfoot": false }, { "type": "hidden_item", @@ -82,26 +85,29 @@ "y": 34, "elevation": 3, "item": "ITEM_PEARL", - "flag": "106", - "unknown": 1 + "flag": "HIDDEN_ITEM_ONE_ISLAND_TREASURE_BEACH_PEARL_2", + "quantity": 1, + "underfoot": false }, { "type": "hidden_item", "x": 15, "y": 22, "elevation": 3, - "item": "POCKET_KEY_ITEMS", - "flag": "107", - "unknown": 1 + "item": "ITEM_ULTRA_BALL", + "flag": "HIDDEN_ITEM_ONE_ISLAND_TREASURE_BEACH_ULTRA_BALL", + "quantity": 1, + "underfoot": false }, { "type": "hidden_item", "x": 16, "y": 33, "elevation": 3, - "item": "POCKET_KEY_ITEMS", - "flag": "108", - "unknown": 1 + "item": "ITEM_ULTRA_BALL", + "flag": "HIDDEN_ITEM_ONE_ISLAND_TREASURE_BEACH_ULTRA_BALL_2", + "quantity": 1, + "underfoot": false }, { "type": "hidden_item", @@ -109,8 +115,9 @@ "y": 29, "elevation": 3, "item": "ITEM_STAR_PIECE", - "flag": "109", - "unknown": 1 + "flag": "HIDDEN_ITEM_ONE_ISLAND_TREASURE_BEACH_STAR_PIECE", + "quantity": 1, + "underfoot": false }, { "type": "hidden_item", @@ -118,8 +125,9 @@ "y": 27, "elevation": 3, "item": "ITEM_BIG_PEARL", - "flag": "110", - "unknown": 1 + "flag": "HIDDEN_ITEM_ONE_ISLAND_TREASURE_BEACH_BIG_PEARL", + "quantity": 1, + "underfoot": false } ] } diff --git a/data/maps/PalletTown/map.json b/data/maps/PalletTown/map.json index 4b4acaf09..344d30be7 100644 --- a/data/maps/PalletTown/map.json +++ b/data/maps/PalletTown/map.json @@ -25,7 +25,7 @@ ], "object_events": [ { - "graphics_id": "23", + "graphics_id": "MAP_OBJ_GFX_WOMAN_1", "x": 3, "y": 10, "elevation": 3, @@ -38,7 +38,7 @@ "flag": "0" }, { - "graphics_id": "27", + "graphics_id": "MAP_OBJ_GFX_FAT_MAN", "x": 13, "y": 17, "elevation": 3, @@ -51,7 +51,7 @@ "flag": "0" }, { - "graphics_id": "71", + "graphics_id": "MAP_OBJ_GFX_PROF_OAK", "x": 10, "y": 8, "elevation": 3, @@ -61,7 +61,7 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "0x0", - "flag": "44" + "flag": "FLAG_HIDE_OAK_IN_PALLET_TOWN" } ], "warp_events": [ @@ -93,7 +93,7 @@ "x": 12, "y": 1, "elevation": 3, - "var": "VAR_MAP_SCENE_PALLET_TOWN", + "var": "VAR_MAP_SCENE_PALLET_TOWN_OAK", "var_value": 0, "script": "PalletTown_EventScript_1655ED" }, @@ -102,7 +102,7 @@ "x": 13, "y": 1, "elevation": 3, - "var": "VAR_MAP_SCENE_PALLET_TOWN", + "var": "VAR_MAP_SCENE_PALLET_TOWN_OAK", "var_value": 0, "script": "PalletTown_EventScript_1655F9" }, diff --git a/data/maps/PalletTown/scripts.inc b/data/maps/PalletTown/scripts.inc index ed53b8518..d4e6c0cf3 100644 --- a/data/maps/PalletTown/scripts.inc +++ b/data/maps/PalletTown/scripts.inc @@ -5,29 +5,29 @@ PalletTown_MapScripts:: @ 816545A PalletTown_MapScript1_165465:: @ 8165465 setworldmapflag FLAG_WORLD_MAP_PALLET_TOWN - checkflag FLAG_0x291 - call_if 1, EventScript_165488 - compare_var_to_value VAR_0x4070, 0 - call_if 1, EventScript_1654A8 - compare_var_to_value VAR_0x4070, 1 - call_if 1, EventScript_1654A2 + checkflag FLAG_PALLET_LADY_NOT_BLOCKING_SIGN + call_if TRUE, EventScript_165488 + compare_var_to_value VAR_MAP_SCENE_PALLET_TOWN_SIGN_LADY, 0 + call_if eq, EventScript_1654A8 + compare_var_to_value VAR_MAP_SCENE_PALLET_TOWN_SIGN_LADY, 1 + call_if eq, EventScript_1654A2 end EventScript_165488:: @ 8165488 - checkflag FLAG_0x83E - goto_if 0, EventScript_1A77A9 - compare_var_to_value VAR_0x4070, 1 - goto_if 4, EventScript_1A77A9 - setvar VAR_0x4070, 1 + checkflag FLAG_PALLET_TOWN_LADY_MOVED_FROM_SIGN + goto_if FALSE, EventScript_1A77A9 + compare_var_to_value VAR_MAP_SCENE_PALLET_TOWN_SIGN_LADY, 1 + goto_if ge, EventScript_1A77A9 + setvar VAR_MAP_SCENE_PALLET_TOWN_SIGN_LADY, 1 return EventScript_1654A2:: @ 81654A2 - setvar VAR_0x4070, 2 + setvar VAR_MAP_SCENE_PALLET_TOWN_SIGN_LADY, 2 return EventScript_1654A8:: @ 81654A8 - checkflag FLAG_0x291 - goto_if_eq EventScript_1654BD + checkflag FLAG_PALLET_LADY_NOT_BLOCKING_SIGN + goto_if TRUE, EventScript_1654BD setobjectxyperm 1, 5, 15 setobjectmovementtype 1, 7 return @@ -39,7 +39,7 @@ EventScript_1654BD:: @ 81654BD return PalletTown_MapScript2_1654CE:: @ 81654CE - map_script_2 VAR_MAP_SCENE_PALLET_TOWN, 2, EventScript_1654D8 + map_script_2 VAR_MAP_SCENE_PALLET_TOWN_OAK, 2, EventScript_1654D8 .2byte 0 EventScript_1654D8:: @ 81654D8 @@ -50,8 +50,8 @@ EventScript_1654D8:: @ 81654D8 addobject 3 applymovement 3, Movement_1655AF waitmovement 0 - checkflag FLAG_SYS_RIBBON_GET - goto_if 0, EventScript_1655A1 + checkflag FLAG_WORLD_MAP_ONE_ISLAND + goto_if FALSE, EventScript_1655A1 msgbox gUnknown_817D8BF setvar VAR_0x8004, 0 specialvar VAR_RESULT, Special_GetPokedexCount @@ -60,7 +60,7 @@ EventScript_1654D8:: @ 81654D8 getnumberstring 0, VAR_0x8008 getnumberstring 1, VAR_0x8009 compare_var_to_value VAR_0x8009, 60 - goto_if 0, EventScript_165593 + goto_if lt, EventScript_165593 msgbox gUnknown_817D9AA closemessage playbgm MUS_ANNAI, 0 @@ -75,8 +75,8 @@ EventScript_1654D8:: @ 81654D8 closedoor 16, 13 waitdooranim setvar VAR_MAP_SCENE_PALLET_TOWN_PROFESSOR_OAKS_LAB, 7 - setvar VAR_MAP_SCENE_PALLET_TOWN, 3 - setflag FLAG_0x02C + setvar VAR_MAP_SCENE_PALLET_TOWN_OAK, 3 + setflag FLAG_HIDE_OAK_IN_PALLET_TOWN warp MAP_PALLET_TOWN_PROFESSOR_OAKS_LAB, 255, 6, 12 waitstate releaseall @@ -87,7 +87,7 @@ EventScript_16557E:: @ 816557E applymovement 3, Movement_1655BE waitmovement 0 removeobject 3 - setvar VAR_MAP_SCENE_PALLET_TOWN, 3 + setvar VAR_MAP_SCENE_PALLET_TOWN_OAK, 3 releaseall end @@ -184,9 +184,7 @@ PalletTown_EventScript_1655F9:: @ 81655F9 end EventScript_165605:: @ 8165605 - setvar VAR_0x8004, 0 - setvar VAR_0x8005, 2 - special UpdatePickStateFromSpecialVar8005 + famechecker FAMECHECKER_OAK, FCPICKSTATE_COLORED, UpdatePickStateFromSpecialVar8005 textcolor 0 delay 30 playbgm MUS_OHKIDO, 0 @@ -202,17 +200,17 @@ EventScript_165605:: @ 8165605 delay 30 addobject 3 compare_var_to_value VAR_0x4001, 0 - call_if 1, EventScript_1656B8 + call_if eq, EventScript_1656B8 compare_var_to_value VAR_0x4001, 1 - call_if 1, EventScript_1656C3 + call_if eq, EventScript_1656C3 delay 30 msgbox gUnknown_817D74A closemessage delay 30 compare_var_to_value VAR_0x4001, 0 - call_if 1, EventScript_1656CE + call_if eq, EventScript_1656CE compare_var_to_value VAR_0x4001, 1 - call_if 1, EventScript_1656E0 + call_if eq, EventScript_1656E0 opendoor 16, 13 waitdooranim applymovement 3, Movement_16572E @@ -221,9 +219,9 @@ EventScript_165605:: @ 8165605 closedoor 16, 13 waitdooranim setvar VAR_MAP_SCENE_PALLET_TOWN_PROFESSOR_OAKS_LAB, 1 - clearflag FLAG_0x02B - setvar VAR_MAP_SCENE_PALLET_TOWN, 1 - setflag FLAG_0x02C + clearflag FLAG_HIDE_OAK_IN_HIS_LAB + setvar VAR_MAP_SCENE_PALLET_TOWN_OAK, 1 + setflag FLAG_HIDE_OAK_IN_PALLET_TOWN setflag FLAG_SPECIAL_FLAG_0x4001 warp MAP_PALLET_TOWN_PROFESSOR_OAKS_LAB, 255, 6, 12 waitstate @@ -376,14 +374,14 @@ Movement_165758:: @ 8165758 PalletTown_EventScript_16575C:: @ 816575C lock - compare_var_to_value VAR_0x4070, 2 - goto_if_eq EventScript_1657ED - compare_var_to_value VAR_0x4070, 1 - goto_if_eq EventScript_165815 + compare_var_to_value VAR_MAP_SCENE_PALLET_TOWN_SIGN_LADY, 2 + goto_if eq, EventScript_1657ED + compare_var_to_value VAR_MAP_SCENE_PALLET_TOWN_SIGN_LADY, 1 + goto_if eq, EventScript_165815 compare_var_to_value VAR_0x4002, 1 - goto_if_eq EventScript_1658C2 - checkflag FLAG_0x002 - goto_if_eq EventScript_165801 + goto_if eq, EventScript_1658C2 + checkflag FLAG_TEMP_2 + goto_if TRUE, EventScript_165801 msgbox gUnknown_81B1C8B applymovement 1, Movement_1A75E1 waitmovement 0 @@ -395,11 +393,11 @@ PalletTown_EventScript_16575C:: @ 816575C msgbox gUnknown_81B1C9F closemessage compare_var_to_value VAR_FACING, 4 - call_if 1, EventScript_1657D7 + call_if eq, EventScript_1657D7 compare_var_to_value VAR_FACING, 4 - call_if 5, EventScript_1657E2 + call_if ne, EventScript_1657E2 moveobjectoffscreen 1 - setflag FLAG_0x002 + setflag FLAG_TEMP_2 release end @@ -450,9 +448,7 @@ PalletTown_EventScript_16582F:: @ 816582F PalletTown_EventScript_165838:: @ 8165838 lockall - setvar VAR_0x8004, 0 - setvar VAR_0x8005, 0 - special SetFlavorTextFlagFromSpecialVars + famechecker FAMECHECKER_OAK, 0 msgbox gUnknown_817D866 releaseall end @@ -472,7 +468,7 @@ PalletTown_EventScript_165862:: @ 8165862 PalletTown_EventScript_16586B:: @ 816586B lockall msgbox gUnknown_81B1CC1 - setvar VAR_0x4070, 1 + setvar VAR_MAP_SCENE_PALLET_TOWN_SIGN_LADY, 1 releaseall end @@ -491,8 +487,8 @@ EventScript_165894:: @ 8165894 closemessage delay 20 textcolor 3 - setflag FLAG_0x83E - setvar VAR_0x4070, 1 + setflag FLAG_PALLET_TOWN_LADY_MOVED_FROM_SIGN + setvar VAR_MAP_SCENE_PALLET_TOWN_SIGN_LADY, 1 setvar VAR_0x4002, 0 special sub_80699E0 special sub_80699BC diff --git a/data/maps/PalletTown_GarysHouse/map.json b/data/maps/PalletTown_GarysHouse/map.json index c5522db0b..c2c15b1b8 100644 --- a/data/maps/PalletTown_GarysHouse/map.json +++ b/data/maps/PalletTown_GarysHouse/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "76", + "graphics_id": "MAP_OBJ_GFX_DAISY", "x": 10, "y": 6, "elevation": 3, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "93", + "graphics_id": "MAP_OBJ_GFX_TOWN_MAP", "x": 6, "y": 4, "elevation": 3, @@ -37,7 +37,7 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "PalletTown_GarysHouse_EventScript_168F63", - "flag": "57" + "flag": "FLAG_HIDE_TOWN_MAP" } ], "warp_events": [ diff --git a/data/maps/PalletTown_GarysHouse/scripts.inc b/data/maps/PalletTown_GarysHouse/scripts.inc index d165036fb..42c7d44ad 100644 --- a/data/maps/PalletTown_GarysHouse/scripts.inc +++ b/data/maps/PalletTown_GarysHouse/scripts.inc @@ -3,10 +3,10 @@ PalletTown_GarysHouse_MapScripts:: @ 8168D27 .byte 0 PalletTown_GarysHouse_MapScript1_168D2D:: @ 8168D2D - compare_var_to_value VAR_0x4058, 2 - call_if 0, EventScript_168D44 - compare_var_to_value VAR_0x4058, 2 - call_if 4, EventScript_168D50 + compare_var_to_value VAR_MAP_SCENE_PALLET_TOWN_GARYS_HOUSE, 2 + call_if lt, EventScript_168D44 + compare_var_to_value VAR_MAP_SCENE_PALLET_TOWN_GARYS_HOUSE, 2 + call_if ge, EventScript_168D50 end EventScript_168D44:: @ 8168D44 @@ -21,19 +21,17 @@ EventScript_168D50:: @ 8168D50 PalletTown_GarysHouse_EventScript_168D56:: @ 8168D56 lock faceplayer - setvar VAR_0x8004, 1 - setvar VAR_0x8005, 2 - special UpdatePickStateFromSpecialVar8005 - checkflag FLAG_0x82C - goto_if_eq EventScript_168DB9 + famechecker FAMECHECKER_DAISY, FCPICKSTATE_COLORED, UpdatePickStateFromSpecialVar8005 + checkflag FLAG_SYS_GAME_CLEAR + goto_if TRUE, EventScript_168DB9 compare_var_to_value VAR_0x4001, 1 - goto_if_eq EventScript_168EEC - compare_var_to_value VAR_0x4058, 2 - goto_if_eq EventScript_168F59 - compare_var_to_value VAR_0x4058, 1 - goto_if_eq EventScript_168EF6 + goto_if eq, EventScript_168EEC + compare_var_to_value VAR_MAP_SCENE_PALLET_TOWN_GARYS_HOUSE, 2 + goto_if eq, EventScript_168F59 + compare_var_to_value VAR_MAP_SCENE_PALLET_TOWN_GARYS_HOUSE, 1 + goto_if eq, EventScript_168EF6 compare_var_to_value VAR_MAP_SCENE_PALLET_TOWN_PROFESSOR_OAKS_LAB, 1 - goto_if 4, EventScript_168DAF + goto_if ge, EventScript_168DAF msgbox gUnknown_818D58C closemessage applymovement 1, Movement_1A75E5 @@ -49,29 +47,29 @@ EventScript_168DAF:: @ 8168DAF EventScript_168DB9:: @ 8168DB9 special sub_8110AB4 compare_var_to_value VAR_RESULT, 2 - goto_if_eq EventScript_1A7AE0 + goto_if eq, EventScript_1A7AE0 special sub_8112364 - compare_var_to_value VAR_0x4025, 500 - goto_if 0, EventScript_168E46 + compare_var_to_value VAR_MASSAGE_COOLDOWN_STEP_COUNTER, 500 + goto_if lt, EventScript_168E46 msgbox gUnknown_818D7D3, MSGBOX_YESNO compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_168E3C + goto_if eq, EventScript_168E3C msgbox gUnknown_818D8B2 - special sub_80BF8FC + special Special_ChooseMonFromParty waitstate lock faceplayer compare_var_to_value VAR_0x8004, 6 - goto_if 4, EventScript_168E3C - specialvar VAR_RESULT, sub_80CAD54 + goto_if ge, EventScript_168E3C + specialvar VAR_RESULT, Special_GetSpeciesOfPartySlot_x8004 compare_var_to_value VAR_RESULT, SPECIES_EGG - goto_if_eq EventScript_168E32 + goto_if eq, EventScript_168E32 msgbox gUnknown_818D8CC closemessage fadescreen 1 playfanfare MUS_ME_ASA waitfanfare - special sub_80CC948 + special Special_DaisyMassageServices fadescreen 0 special TV_CopyNicknameToStringVar1AndEnsureTerminated msgbox gUnknown_818D8FE @@ -90,7 +88,7 @@ EventScript_168E3C:: @ 8168E3C EventScript_168E46:: @ 8168E46 msgbox gUnknown_818D9A5 - specialvar VAR_RESULT, sub_80CA76C + specialvar VAR_RESULT, Special_GetLeadMonFriendship switch VAR_RESULT case 0, EventScript_168EA6 case 1, EventScript_168EB0 @@ -146,11 +144,11 @@ EventScript_168EF6:: @ 8168EF6 closemessage checkitemspace ITEM_TOWN_MAP, 1 compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_168F4F + goto_if eq, EventScript_168F4F applymovement 1, Movement_1A75EB waitmovement 0 removeobject 2 - setvar VAR_0x4058, 2 + setvar VAR_MAP_SCENE_PALLET_TOWN_GARYS_HOUSE, 2 delay 15 applymovement 1, Movement_1A75E1 waitmovement 0 diff --git a/data/maps/PalletTown_PlayersHouse_1F/map.json b/data/maps/PalletTown_PlayersHouse_1F/map.json index ad29c0e04..4e281c43a 100644 --- a/data/maps/PalletTown_PlayersHouse_1F/map.json +++ b/data/maps/PalletTown_PlayersHouse_1F/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "88", + "graphics_id": "MAP_OBJ_GFX_MOM", "x": 8, "y": 4, "elevation": 3, diff --git a/data/maps/PalletTown_PlayersHouse_1F/scripts.inc b/data/maps/PalletTown_PlayersHouse_1F/scripts.inc index 89eabeea1..900dd06aa 100644 --- a/data/maps/PalletTown_PlayersHouse_1F/scripts.inc +++ b/data/maps/PalletTown_PlayersHouse_1F/scripts.inc @@ -4,13 +4,13 @@ PalletTown_PlayersHouse_1F_MapScripts:: @ 8168C08 PalletTown_PlayersHouse_1F_EventScript_168C09:: @ 8168C09 lock faceplayer - checkflag FLAG_0x258 - goto_if_eq EventScript_168C4A + checkflag FLAG_BEAT_RIVAL_IN_OAKS_LAB + goto_if TRUE, EventScript_168C4A checkplayergender compare_var_to_value VAR_RESULT, 0 - call_if 1, EventScript_168C38 + call_if eq, EventScript_168C38 compare_var_to_value VAR_RESULT, 1 - call_if 1, EventScript_168C41 + call_if eq, EventScript_168C41 closemessage applymovement 1, Movement_1A75E5 waitmovement 0 @@ -28,7 +28,7 @@ EventScript_168C41:: @ 8168C41 EventScript_168C4A:: @ 8168C4A msgbox gUnknown_818D3D1 closemessage - call EventScript_1A6C26 + call EventScript_FadeOut_Heal_FadeIn msgbox gUnknown_818D3F8 release end @@ -36,7 +36,7 @@ EventScript_168C4A:: @ 8168C4A PalletTown_PlayersHouse_1F_EventScript_168C62:: @ 8168C62 lockall compare_var_to_value VAR_FACING, 2 - goto_if_eq EventScript_168C78 + goto_if eq, EventScript_168C78 msgbox gUnknown_818D4F9 releaseall end @@ -44,9 +44,9 @@ PalletTown_PlayersHouse_1F_EventScript_168C62:: @ 8168C62 EventScript_168C78:: @ 8168C78 checkplayergender compare_var_to_value VAR_RESULT, 0 - call_if 1, EventScript_168C91 + call_if eq, EventScript_168C91 compare_var_to_value VAR_RESULT, 1 - call_if 1, EventScript_168C9A + call_if eq, EventScript_168C9A releaseall end diff --git a/data/maps/PalletTown_PlayersHouse_2F/scripts.inc b/data/maps/PalletTown_PlayersHouse_2F/scripts.inc index 51865301c..dc90bc7bf 100644 --- a/data/maps/PalletTown_PlayersHouse_2F/scripts.inc +++ b/data/maps/PalletTown_PlayersHouse_2F/scripts.inc @@ -5,7 +5,7 @@ PalletTown_PlayersHouse_2F_MapScripts:: @ 8168CA3 PalletTown_PlayersHouse_2F_MapScript1_168CAE:: @ 8168CAE compare_var_to_value VAR_MAP_SCENE_PALLET_TOWN_PLAYERS_HOUSE_2F, 0 - call_if 1, EventScript_168CBA + call_if eq, EventScript_168CBA end EventScript_168CBA:: @ 8168CBA @@ -33,15 +33,15 @@ gUnknown_8168CE4:: @ 8168CE4 PalletTown_PlayersHouse_2F_EventScript_168CE4:: @ 8168CE4 special sub_8110AB4 compare_var_to_value VAR_RESULT, 2 - goto_if_eq EventScript_1A7AE0 + goto_if eq, EventScript_1A7AE0 lockall setvar VAR_0x8004, 32 special Special_SetSomeVariable setvar VAR_0x8004, 1 - special sub_80CA86C + special Special_AnimatePcTurnOn playse SE_PC_ON msgbox gUnknown_81A5420 - special sub_80EB6AC + special BedroomPC waitstate special sub_812B35C releaseall @@ -50,7 +50,7 @@ PalletTown_PlayersHouse_2F_EventScript_168CE4:: @ 8168CE4 EventScript_PalletTown_PlayersHouse_2F_ShutDownPC:: @ 8168D17 setvar VAR_0x8004, 1 playse SE_PC_OFF - special sub_80CA9A8 + special Special_AnimatePcTurnOff special sub_812B35C releaseall end diff --git a/data/maps/PalletTown_ProfessorOaksLab/map.json b/data/maps/PalletTown_ProfessorOaksLab/map.json index c7440708c..9ff650466 100644 --- a/data/maps/PalletTown_ProfessorOaksLab/map.json +++ b/data/maps/PalletTown_ProfessorOaksLab/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "55", + "graphics_id": "MAP_OBJ_GFX_SCIENTIST", "x": 3, "y": 11, "elevation": 3, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "48", + "graphics_id": "MAP_OBJ_GFX_WORKER_F", "x": 2, "y": 10, "elevation": 3, @@ -40,7 +40,7 @@ "flag": "0" }, { - "graphics_id": "55", + "graphics_id": "MAP_OBJ_GFX_SCIENTIST", "x": 11, "y": 10, "elevation": 3, @@ -53,7 +53,7 @@ "flag": "0" }, { - "graphics_id": "71", + "graphics_id": "MAP_OBJ_GFX_PROF_OAK", "x": 6, "y": 3, "elevation": 3, @@ -63,10 +63,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "PalletTown_ProfessorOaksLab_EventScript_169595", - "flag": "43" + "flag": "FLAG_HIDE_OAK_IN_HIS_LAB" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 8, "y": 4, "elevation": 0, @@ -76,10 +76,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "PalletTown_ProfessorOaksLab_EventScript_169BAB", - "flag": "40" + "flag": "FLAG_HIDE_BULBASAUR_BALL" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 9, "y": 4, "elevation": 0, @@ -89,10 +89,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "PalletTown_ProfessorOaksLab_EventScript_169D78", - "flag": "41" + "flag": "FLAG_HIDE_SQUIRTLE_BALL" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 10, "y": 4, "elevation": 0, @@ -102,10 +102,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "PalletTown_ProfessorOaksLab_EventScript_169DAE", - "flag": "42" + "flag": "FLAG_HIDE_CHARMANDER_BALL" }, { - "graphics_id": "72", + "graphics_id": "MAP_OBJ_GFX_BLUE", "x": 5, "y": 4, "elevation": 3, @@ -115,10 +115,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "PalletTown_ProfessorOaksLab_EventScript_16955F", - "flag": "45" + "flag": "FLAG_HIDE_RIVAL_IN_LAB" }, { - "graphics_id": "94", + "graphics_id": "MAP_OBJ_GFX_POKEDEX", "x": 4, "y": 1, "elevation": 0, @@ -128,10 +128,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "PalletTown_ProfessorOaksLab_EventScript_169E5F", - "flag": "58" + "flag": "FLAG_HIDE_POKEDEX" }, { - "graphics_id": "94", + "graphics_id": "MAP_OBJ_GFX_POKEDEX", "x": 5, "y": 1, "elevation": 0, @@ -141,7 +141,7 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "PalletTown_ProfessorOaksLab_EventScript_169E5F", - "flag": "58" + "flag": "FLAG_HIDE_POKEDEX" } ], "warp_events": [ diff --git a/data/maps/PalletTown_ProfessorOaksLab/scripts.inc b/data/maps/PalletTown_ProfessorOaksLab/scripts.inc index 64bec30b1..850182c08 100644 --- a/data/maps/PalletTown_ProfessorOaksLab/scripts.inc +++ b/data/maps/PalletTown_ProfessorOaksLab/scripts.inc @@ -5,19 +5,19 @@ PalletTown_ProfessorOaksLab_MapScripts:: @ 8168F7E .byte 0 PalletTown_ProfessorOaksLab_MapScript1_168F8E:: @ 8168F8E - setflag FLAG_0x2CF + setflag FLAG_VISITED_OAKS_LAB compare_var_to_value VAR_MAP_SCENE_PALLET_TOWN_PROFESSOR_OAKS_LAB, 1 - call_if 1, EventScript_168FC6 + call_if eq, EventScript_168FC6 compare_var_to_value VAR_MAP_SCENE_PALLET_TOWN_PROFESSOR_OAKS_LAB, 7 - call_if 1, EventScript_168FD5 + call_if eq, EventScript_168FD5 compare_var_to_value VAR_MAP_SCENE_PALLET_TOWN_PROFESSOR_OAKS_LAB, 8 - call_if 1, EventScript_168FC0 - checkflag FLAG_0x247 - call_if 1, EventScript_168FBC + call_if eq, EventScript_168FC0 + checkflag FLAG_GOT_POKEBALLS_FROM_OAK_AFTER_22_RIVAL + call_if TRUE, EventScript_168FBC end EventScript_168FBC:: @ 8168FBC - setflag FLAG_0x24F + setflag FLAG_OAK_SKIP_22_RIVAL_CHECK return EventScript_168FC0:: @ 8168FC0 @@ -57,7 +57,7 @@ EventScript_169002:: @ 8169002 removeobject 4 setobjectxyperm 4, 6, 3 setobjectmovementtype 4, 8 - clearflag FLAG_0x02B + clearflag FLAG_HIDE_OAK_IN_HIS_LAB applymovement 255, Movement_1692B7 waitmovement 0 goto EventScript_169035 @@ -67,32 +67,32 @@ EventScript_169035:: @ 8169035 msgbox gUnknown_818EE60 closemessage compare_var_to_value VAR_FACING, 2 - call_if 1, EventScript_169174 + call_if eq, EventScript_169174 compare_var_to_value VAR_FACING, 1 - call_if 1, EventScript_1691BB + call_if eq, EventScript_1691BB compare_var_to_value VAR_FACING, 4 - call_if 1, EventScript_169194 + call_if eq, EventScript_169194 compare_var_to_value VAR_FACING, 3 - call_if 1, EventScript_169194 + call_if eq, EventScript_169194 msgbox gUnknown_818EF59 fadedefaultbgm msgbox gUnknown_818F004 compare_var_to_value VAR_FACING, 2 - call_if 1, EventScript_1691DB + call_if eq, EventScript_1691DB compare_var_to_value VAR_FACING, 3 - call_if 1, EventScript_1691E6 + call_if eq, EventScript_1691E6 textcolor 3 msgbox gUnknown_818F062 closemessage call EventScript_1A6675 compare_var_to_value VAR_FACING, 2 - call_if 1, EventScript_1691F1 + call_if eq, EventScript_1691F1 compare_var_to_value VAR_FACING, 1 - call_if 1, EventScript_1691FC + call_if eq, EventScript_1691FC compare_var_to_value VAR_FACING, 4 - call_if 1, EventScript_169215 + call_if eq, EventScript_169215 compare_var_to_value VAR_FACING, 3 - call_if 1, EventScript_169227 + call_if eq, EventScript_169227 addobject 9 addobject 10 delay 30 @@ -102,13 +102,13 @@ EventScript_169035:: @ 8169035 removeobject 10 delay 30 compare_var_to_value VAR_FACING, 2 - call_if 1, EventScript_169845 + call_if eq, EventScript_169845 compare_var_to_value VAR_FACING, 1 - call_if 1, EventScript_169850 + call_if eq, EventScript_169850 compare_var_to_value VAR_FACING, 4 - call_if 1, EventScript_16985B + call_if eq, EventScript_16985B compare_var_to_value VAR_FACING, 3 - call_if 1, EventScript_16986D + call_if eq, EventScript_16986D textcolor 3 playfanfare MUS_FAN5 message Text_18F0E8 @@ -121,13 +121,13 @@ EventScript_169035:: @ 8169035 closemessage playbgm MUS_RIVAL2, 0 compare_var_to_value VAR_FACING, 2 - call_if 1, EventScript_169B69 + call_if eq, EventScript_169B69 compare_var_to_value VAR_FACING, 1 - call_if 1, EventScript_169B7B + call_if eq, EventScript_169B7B compare_var_to_value VAR_FACING, 4 - call_if 1, EventScript_169B7B + call_if eq, EventScript_169B7B compare_var_to_value VAR_FACING, 3 - call_if 1, EventScript_169B7B + call_if eq, EventScript_169B7B removeobject 8 fadedefaultbgm setvar VAR_MAP_SCENE_PALLET_TOWN_PROFESSOR_OAKS_LAB, 8 @@ -219,7 +219,7 @@ EventScript_16923E:: @ 816923E removeobject 4 setobjectxyperm 4, 6, 3 setobjectmovementtype 4, 8 - clearflag FLAG_0x02B + clearflag FLAG_HIDE_OAK_IN_HIS_LAB applymovement 255, Movement_1692B7 waitmovement 0 applymovement 8, Movement_1A75E9 @@ -312,20 +312,20 @@ EventScript_16930B:: @ 816930B applymovement 4, Movement_1A75F1 waitmovement 0 compare_var_to_value VAR_STARTER_MON, 0 - goto_if_eq EventScript_1693D2 + goto_if eq, EventScript_1693D2 compare_var_to_value VAR_STARTER_MON, 1 - goto_if_eq EventScript_16944D + goto_if eq, EventScript_16944D compare_var_to_value VAR_STARTER_MON, 2 - goto_if_eq EventScript_16935A + goto_if eq, EventScript_16935A end EventScript_16935A:: @ 816935A compare_var_to_value VAR_0x4002, 1 - goto_if_eq EventScript_16937C + goto_if eq, EventScript_16937C compare_var_to_value VAR_0x4002, 2 - goto_if_eq EventScript_16938C + goto_if eq, EventScript_16938C compare_var_to_value VAR_0x4002, 3 - goto_if_eq EventScript_16939C + goto_if eq, EventScript_16939C end EventScript_16937C:: @ 816937C @@ -347,7 +347,7 @@ EventScript_16939C:: @ 816939C end EventScript_1693AC:: @ 81693AC - trainerbattle 9, 326, 3, Text_18DDEA, Text_18DE1A + trainerbattle TRAINER_BATTLE_TUTORIAL, TRAINER_RIVAL_OAKS_LAB_SQUIRTLE, 3, Text_18DDEA, Text_18DE1A goto EventScript_1694C2 end @@ -377,11 +377,11 @@ Movement_1693CD:: @ 81693CD EventScript_1693D2:: @ 81693D2 compare_var_to_value VAR_0x4002, 1 - goto_if_eq EventScript_1693F4 + goto_if eq, EventScript_1693F4 compare_var_to_value VAR_0x4002, 2 - goto_if_eq EventScript_169404 + goto_if eq, EventScript_169404 compare_var_to_value VAR_0x4002, 3 - goto_if_eq EventScript_169414 + goto_if eq, EventScript_169414 end EventScript_1693F4:: @ 81693F4 @@ -403,7 +403,7 @@ EventScript_169414:: @ 8169414 end EventScript_169424:: @ 8169424 - trainerbattle 9, 328, 3, Text_18DDEA, Text_18DE1A + trainerbattle TRAINER_BATTLE_TUTORIAL, TRAINER_RIVAL_OAKS_LAB_CHARMANDER, 3, Text_18DDEA, Text_18DE1A goto EventScript_1694C2 end @@ -436,11 +436,11 @@ Movement_169447:: @ 8169447 EventScript_16944D:: @ 816944D compare_var_to_value VAR_0x4002, 1 - goto_if_eq EventScript_16946F + goto_if eq, EventScript_16946F compare_var_to_value VAR_0x4002, 2 - goto_if_eq EventScript_16947F + goto_if eq, EventScript_16947F compare_var_to_value VAR_0x4002, 3 - goto_if_eq EventScript_16948F + goto_if eq, EventScript_16948F end EventScript_16946F:: @ 816946F @@ -462,7 +462,7 @@ EventScript_16948F:: @ 816948F end EventScript_16949F:: @ 816949F - trainerbattle 9, 327, 3, Text_18DDEA, Text_18DE1A + trainerbattle TRAINER_BATTLE_TUTORIAL, TRAINER_RIVAL_OAKS_LAB_BULBASAUR, 3, Text_18DDEA, Text_18DE1A goto EventScript_1694C2 end @@ -493,16 +493,16 @@ EventScript_1694C2:: @ 81694C2 closemessage playbgm MUS_RIVAL2, 0 compare_var_to_value VAR_0x4002, 1 - call_if 1, EventScript_169504 + call_if eq, EventScript_169504 compare_var_to_value VAR_0x4002, 2 - call_if 1, EventScript_169516 + call_if eq, EventScript_169516 compare_var_to_value VAR_0x4002, 3 - call_if 1, EventScript_169528 + call_if eq, EventScript_169528 removeobject 8 playse SE_KAIDAN fadedefaultbgm setvar VAR_MAP_SCENE_PALLET_TOWN_PROFESSOR_OAKS_LAB, 4 - setflag FLAG_0x258 + setflag FLAG_BEAT_RIVAL_IN_OAKS_LAB releaseall end @@ -575,9 +575,9 @@ PalletTown_ProfessorOaksLab_EventScript_16955F:: @ 816955F lock faceplayer compare_var_to_value VAR_MAP_SCENE_PALLET_TOWN_PROFESSOR_OAKS_LAB, 3 - goto_if_eq EventScript_16958B + goto_if eq, EventScript_16958B compare_var_to_value VAR_MAP_SCENE_PALLET_TOWN_PROFESSOR_OAKS_LAB, 2 - goto_if_eq EventScript_169581 + goto_if eq, EventScript_169581 msgbox gUnknown_818DC67 release end @@ -595,24 +595,24 @@ EventScript_16958B:: @ 816958B PalletTown_ProfessorOaksLab_EventScript_169595:: @ 8169595 lock faceplayer - checkflag FLAG_0x002 - goto_if_eq EventScript_169600 + checkflag FLAG_TEMP_2 + goto_if TRUE, EventScript_169600 compare_var_to_value VAR_MAP_SCENE_PALLET_TOWN_PROFESSOR_OAKS_LAB, 9 - goto_if_eq EventScript_169903 + goto_if eq, EventScript_169903 compare_var_to_value VAR_MAP_SCENE_PALLET_TOWN_PROFESSOR_OAKS_LAB, 8 - goto_if_eq EventScript_169A6E - checkflag FLAG_0x82C - goto_if_eq EventScript_1699CE - compare_var_to_value VAR_0x4052, 1 - goto_if_eq EventScript_169903 + goto_if eq, EventScript_169A6E + checkflag FLAG_SYS_GAME_CLEAR + goto_if TRUE, EventScript_1699CE + compare_var_to_value VAR_MAP_SCENE_CERULEAN_CITY_RIVAL, 1 + goto_if eq, EventScript_169903 compare_var_to_value VAR_MAP_SCENE_PALLET_TOWN_PROFESSOR_OAKS_LAB, 6 - goto_if_eq EventScript_1698D6 + goto_if eq, EventScript_1698D6 compare_var_to_value VAR_MAP_SCENE_VIRIDIAN_CITY_MART, 1 - goto_if 4, EventScript_16961E + goto_if ge, EventScript_16961E compare_var_to_value VAR_MAP_SCENE_PALLET_TOWN_PROFESSOR_OAKS_LAB, 4 - goto_if_eq EventScript_169614 + goto_if eq, EventScript_169614 compare_var_to_value VAR_MAP_SCENE_PALLET_TOWN_PROFESSOR_OAKS_LAB, 3 - goto_if_eq EventScript_16960A + goto_if eq, EventScript_16960A msgbox gUnknown_818E116 release end @@ -646,13 +646,13 @@ EventScript_16961E:: @ 816961E msgbox gUnknown_818DE8D closemessage compare_var_to_value VAR_FACING, 2 - call_if 1, EventScript_169A82 + call_if eq, EventScript_169A82 compare_var_to_value VAR_FACING, 1 - call_if 1, EventScript_169AC1 + call_if eq, EventScript_169AC1 compare_var_to_value VAR_FACING, 4 - call_if 1, EventScript_169A9E + call_if eq, EventScript_169A9E compare_var_to_value VAR_FACING, 3 - call_if 1, EventScript_169A9E + call_if eq, EventScript_169A9E fadedefaultbgm msgbox gUnknown_818DE99 closemessage @@ -663,23 +663,23 @@ EventScript_16961E:: @ 816961E applymovement 4, Movement_1A75DD waitmovement 0 compare_var_to_value VAR_FACING, 1 - call_if 1, EventScript_169ADD + call_if eq, EventScript_169ADD compare_var_to_value VAR_FACING, 4 - call_if 1, EventScript_169B14 + call_if eq, EventScript_169B14 compare_var_to_value VAR_FACING, 3 - call_if 1, EventScript_169AF5 + call_if eq, EventScript_169AF5 compare_var_to_value VAR_FACING, 2 - call_if 1, EventScript_169B86 + call_if eq, EventScript_169B86 msgbox gUnknown_818E508 closemessage compare_var_to_value VAR_FACING, 2 - call_if 1, EventScript_169882 + call_if eq, EventScript_169882 compare_var_to_value VAR_FACING, 1 - call_if 1, EventScript_16988D + call_if eq, EventScript_16988D compare_var_to_value VAR_FACING, 4 - call_if 1, EventScript_1698A6 + call_if eq, EventScript_1698A6 compare_var_to_value VAR_FACING, 3 - call_if 1, EventScript_1698B8 + call_if eq, EventScript_1698B8 msgbox gUnknown_818E536 closemessage delay 40 @@ -692,13 +692,13 @@ EventScript_16961E:: @ 816961E removeobject 10 delay 25 compare_var_to_value VAR_FACING, 2 - call_if 1, EventScript_169845 + call_if eq, EventScript_169845 compare_var_to_value VAR_FACING, 1 - call_if 1, EventScript_169850 + call_if eq, EventScript_169850 compare_var_to_value VAR_FACING, 4 - call_if 1, EventScript_16985B + call_if eq, EventScript_16985B compare_var_to_value VAR_FACING, 3 - call_if 1, EventScript_16986D + call_if eq, EventScript_16986D delay 10 textcolor 3 playfanfare MUS_FAN5 @@ -706,44 +706,42 @@ EventScript_16961E:: @ 816961E waitmessage waitfanfare call EventScript_1A6675 - setflag FLAG_0x829 + setflag FLAG_SYS_POKEDEX_GET special sub_810B810 - setvar VAR_0x407C, 1 + setvar VAR_MAP_SCENE_POKEMON_CENTER_TEALA, 1 msgbox gUnknown_818E612 additem ITEM_POKE_BALL, 5 giveitemfanfaremsg gUnknown_818E6B3, ITEM_POKE_BALL, 5 msgbox gUnknown_818E6D0 - setvar VAR_0x8004, 0 - setvar VAR_0x8005, 1 - special SetFlavorTextFlagFromSpecialVars + famechecker FAMECHECKER_OAK, 1 msgbox gUnknown_818E784 msgbox gUnknown_818DEC8 compare_var_to_value VAR_FACING, 2 - call_if 1, EventScript_169B33 + call_if eq, EventScript_169B33 compare_var_to_value VAR_FACING, 1 - call_if 1, EventScript_169B45 + call_if eq, EventScript_169B45 compare_var_to_value VAR_FACING, 4 - call_if 1, EventScript_169B57 + call_if eq, EventScript_169B57 compare_var_to_value VAR_FACING, 3 - call_if 1, EventScript_169B57 + call_if eq, EventScript_169B57 msgbox gUnknown_818DEF3 closemessage playbgm MUS_RIVAL2, 0 compare_var_to_value VAR_FACING, 2 - call_if 1, EventScript_169B69 + call_if eq, EventScript_169B69 compare_var_to_value VAR_FACING, 1 - call_if 1, EventScript_169B7B + call_if eq, EventScript_169B7B compare_var_to_value VAR_FACING, 4 - call_if 1, EventScript_169B7B + call_if eq, EventScript_169B7B compare_var_to_value VAR_FACING, 3 - call_if 1, EventScript_169B7B + call_if eq, EventScript_169B7B removeobject 8 fadedefaultbgm setvar VAR_MAP_SCENE_PALLET_TOWN_PROFESSOR_OAKS_LAB, 6 setvar VAR_MAP_SCENE_VIRIDIAN_CITY_MART, 2 - setvar VAR_0x4051, 1 - setvar VAR_0x4058, 1 - setvar VAR_0x4054, 1 + setvar VAR_MAP_SCENE_VIRIDIAN_CITY_OLD_MAN, 1 + setvar VAR_MAP_SCENE_PALLET_TOWN_GARYS_HOUSE, 1 + setvar VAR_MAP_SCENE_ROUTE22, 1 release end @@ -842,14 +840,14 @@ EventScript_1698D6:: @ 81698D6 getnumberstring 0, VAR_0x8008 getnumberstring 1, VAR_0x8009 compare_var_to_value VAR_0x8009, 1 - goto_if_eq EventScript_1699FB + goto_if eq, EventScript_1699FB goto EventScript_169903 end EventScript_169903:: @ 8169903 call EventScript_1A737B - checkflag FLAG_0x2F4 - goto_if_eq EventScript_169913 + checkflag FLAG_OAK_SAW_DEX_COMPLETION + goto_if TRUE, EventScript_169913 release end @@ -859,19 +857,19 @@ EventScript_169913:: @ 8169913 message Text_1A7291 waitmessage compare_var_to_value VAR_FACING, 2 - call_if 1, EventScript_169964 + call_if eq, EventScript_169964 compare_var_to_value VAR_FACING, 1 - call_if 1, EventScript_16996F + call_if eq, EventScript_16996F compare_var_to_value VAR_FACING, 4 - call_if 1, EventScript_16997A + call_if eq, EventScript_16997A compare_var_to_value VAR_FACING, 3 - call_if 1, EventScript_169985 + call_if eq, EventScript_169985 applymovement 4, Movement_1A75E1 waitmovement 0 closemessage delay 70 msgbox gUnknown_81A72AD - setflag FLAG_0x002 + setflag FLAG_TEMP_2 release end @@ -973,9 +971,9 @@ EventScript_1699CE:: @ 81699CE call EventScript_1A737B closemessage compare_var_to_value VAR_0x8009, 60 - goto_if 0, EventScript_1699F9 - checkflag FLAG_SYS_RIBBON_GET - goto_if 0, EventScript_1699F9 + goto_if lt, EventScript_1699F9 + checkflag FLAG_WORLD_MAP_ONE_ISLAND + goto_if FALSE, EventScript_1699F9 delay 30 msgbox gUnknown_818EDF5 goto EventScript_169035 @@ -988,21 +986,21 @@ EventScript_1699F9:: @ 81699F9 EventScript_1699FB:: @ 81699FB special sub_8110AB4 compare_var_to_value VAR_RESULT, 2 - goto_if_eq EventScript_1A7AE0 + goto_if eq, EventScript_1A7AE0 special sub_8112364 - checkflag FLAG_0x24F - goto_if_eq EventScript_169A6E - checkflag FLAG_0x247 - goto_if_eq EventScript_169A78 + checkflag FLAG_OAK_SKIP_22_RIVAL_CHECK + goto_if TRUE, EventScript_169A6E + checkflag FLAG_GOT_POKEBALLS_FROM_OAK_AFTER_22_RIVAL + goto_if TRUE, EventScript_169A78 checkitem ITEM_POKE_BALL, 1 compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_169A34 + goto_if eq, EventScript_169A34 goto EventScript_169A6E end EventScript_169A34:: @ 8169A34 - compare_var_to_value VAR_0x4054, 2 - goto_if 4, EventScript_169A45 + compare_var_to_value VAR_MAP_SCENE_ROUTE22, 2 + goto_if ge, EventScript_169A45 goto EventScript_169A6E end @@ -1010,7 +1008,7 @@ EventScript_169A45:: @ 8169A45 msgbox gUnknown_818E89C additem ITEM_POKE_BALL, 5 giveitemfanfaremsg gUnknown_818E6B3, ITEM_POKE_BALL, 5 - setflag FLAG_0x247 + setflag FLAG_GOT_POKEBALLS_FROM_OAK_AFTER_22_RIVAL release end @@ -1143,17 +1141,22 @@ Movement_169BA4:: @ 8169BA4 step_10 step_end + .equ VAR_OAKSLAB_PLAYER_STARTER_NO, VAR_0x4001 + .equ VAR_OAKSLAB_PLAYER_STARTER_SPECIES, VAR_0x4002 + .equ VAR_OAKSLAB_RIVAL_STARTER_SPECIES, VAR_0x4003 + .equ VAR_OAKSLAB_RIVAL_STARTER_OBJID, VAR_0x4004 + PalletTown_ProfessorOaksLab_EventScript_169BAB:: @ 8169BAB lock faceplayer - setvar VAR_0x4001, 0 - setvar VAR_0x4002, 1 - setvar VAR_0x4003, 4 - setvar VAR_0x4004, 7 + setvar VAR_OAKSLAB_PLAYER_STARTER_NO, 0 + setvar VAR_OAKSLAB_PLAYER_STARTER_SPECIES, SPECIES_BULBASAUR + setvar VAR_OAKSLAB_RIVAL_STARTER_SPECIES, SPECIES_CHARMANDER + setvar VAR_OAKSLAB_RIVAL_STARTER_OBJID, 7 compare_var_to_value VAR_MAP_SCENE_PALLET_TOWN_PROFESSOR_OAKS_LAB, 3 - goto_if 4, EventScript_169DE4 + goto_if ge, EventScript_169DE4 compare_var_to_value VAR_MAP_SCENE_PALLET_TOWN_PROFESSOR_OAKS_LAB, 2 - goto_if_eq EventScript_169BE1 + goto_if eq, EventScript_169BE1 msgbox gUnknown_818EA19 release end @@ -1161,121 +1164,121 @@ PalletTown_ProfessorOaksLab_EventScript_169BAB:: @ 8169BAB EventScript_169BE1:: @ 8169BE1 applymovement 4, Movement_1A75EF waitmovement 0 - drawmonpic VAR_0x4002, 10, 3 + drawmonpic VAR_OAKSLAB_PLAYER_STARTER_SPECIES, 10, 3 textcolor 0 - compare_var_to_value VAR_0x4001, 0 - goto_if_eq EventScript_169C14 - compare_var_to_value VAR_0x4001, 1 - goto_if_eq EventScript_169C33 - compare_var_to_value VAR_0x4001, 2 - goto_if_eq EventScript_169C52 + compare_var_to_value VAR_OAKSLAB_PLAYER_STARTER_NO, 0 + goto_if eq, EventScript_OakDescribesBulbasaur + compare_var_to_value VAR_OAKSLAB_PLAYER_STARTER_NO, 1 + goto_if eq, EventScript_OakDescribesCharmander + compare_var_to_value VAR_OAKSLAB_PLAYER_STARTER_NO, 2 + goto_if eq, EventScript_OakDescribesSquirtle end -EventScript_169C14:: @ 8169C14 +EventScript_OakDescribesBulbasaur:: @ 8169C14 msgbox gUnknown_818E272, MSGBOX_YESNO compare_var_to_value VAR_RESULT, 1 - goto_if_eq EventScript_169C74 + goto_if eq, EventScript_ThisPokeIsRealyEnergetic compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_169C71 + goto_if eq, EventScript_DeclinedStarter end -EventScript_169C33:: @ 8169C33 +EventScript_OakDescribesCharmander:: @ 8169C33 msgbox gUnknown_818E207, MSGBOX_YESNO compare_var_to_value VAR_RESULT, 1 - goto_if_eq EventScript_169C74 + goto_if eq, EventScript_ThisPokeIsRealyEnergetic compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_169C71 + goto_if eq, EventScript_DeclinedStarter end -EventScript_169C52:: @ 8169C52 +EventScript_OakDescribesSquirtle:: @ 8169C52 msgbox gUnknown_818E194, MSGBOX_YESNO compare_var_to_value VAR_RESULT, 1 - goto_if_eq EventScript_169C74 + goto_if eq, EventScript_ThisPokeIsRealyEnergetic compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_169C71 + goto_if eq, EventScript_DeclinedStarter end -EventScript_169C71:: @ 8169C71 +EventScript_DeclinedStarter:: @ 8169C71 erasemonpic release end -EventScript_169C74:: @ 8169C74 +EventScript_ThisPokeIsRealyEnergetic:: @ 8169C74 erasemonpic removeobject VAR_LAST_TALKED msgbox gUnknown_818E2E5 call EventScript_1A6675 - setflag FLAG_0x828 - setflag FLAG_0x291 - givemon VAR_0x4002, 5, ITEM_NONE, 0, 0, 0 - copyvar VAR_STARTER_MON, VAR_0x4001 - getspeciesname 0, VAR_0x4002 + setflag FLAG_SYS_POKEMON_GET + setflag FLAG_PALLET_LADY_NOT_BLOCKING_SIGN + givemon VAR_OAKSLAB_PLAYER_STARTER_SPECIES, 5, ITEM_NONE, 0, 0, 0 + copyvar VAR_STARTER_MON, VAR_OAKSLAB_PLAYER_STARTER_NO + getspeciesname 0, VAR_OAKSLAB_PLAYER_STARTER_SPECIES message Text_18E30D waitmessage playfanfare MUS_FAN5 waitfanfare msgbox gUnknown_81A56A7, MSGBOX_YESNO compare_var_to_value VAR_RESULT, 1 - goto_if_eq EventScript_169CCC + goto_if eq, EventScript_GiveNicknameToStarter compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_169CDC + goto_if eq, EventScript_SkipGiveNicknameToStarter end -EventScript_169CCC:: @ 8169CCC +EventScript_GiveNicknameToStarter:: @ 8169CCC setvar VAR_0x8004, 0 call EventScript_1A74EB - goto EventScript_169CDC + goto EventScript_SkipGiveNicknameToStarter end -EventScript_169CDC:: @ 8169CDC +EventScript_SkipGiveNicknameToStarter:: @ 8169CDC closemessage - compare_var_to_value VAR_0x4001, 0 - goto_if_eq EventScript_169CFF - compare_var_to_value VAR_0x4001, 1 - goto_if_eq EventScript_169D1F - compare_var_to_value VAR_0x4001, 2 - goto_if_eq EventScript_169D0F + compare_var_to_value VAR_OAKSLAB_PLAYER_STARTER_NO, 0 + goto_if eq, EventScript_RivalWalksToCharmander + compare_var_to_value VAR_OAKSLAB_PLAYER_STARTER_NO, 1 + goto_if eq, EventScript_RivalWalksToSquirtle + compare_var_to_value VAR_OAKSLAB_PLAYER_STARTER_NO, 2 + goto_if eq, EventScript_RivalWalksToBulbasaur end -EventScript_169CFF:: @ 8169CFF - applymovement 8, Movement_169D62 +EventScript_RivalWalksToCharmander:: @ 8169CFF + applymovement 8, Movement_RivalWalksToCharmander waitmovement 0 - goto EventScript_169D2F + goto Movement_RivalTakesHisStarter end -EventScript_169D0F:: @ 8169D0F - applymovement 8, Movement_169D6B +EventScript_RivalWalksToBulbasaur:: @ 8169D0F + applymovement 8, Movement_RivalWalksToBulbasaur waitmovement 0 - goto EventScript_169D2F + goto Movement_RivalTakesHisStarter end -EventScript_169D1F:: @ 8169D1F - applymovement 8, Movement_169D72 +EventScript_RivalWalksToSquirtle:: @ 8169D1F + applymovement 8, Movement_RivalWalksToSquirtle waitmovement 0 - goto EventScript_169D2F + goto Movement_RivalTakesHisStarter end -EventScript_169D2F:: @ 8169D2F +Movement_RivalTakesHisStarter:: @ 8169D2F textcolor 0 msgbox gUnknown_818DD34 - removeobject VAR_0x4004 + removeobject VAR_OAKSLAB_RIVAL_STARTER_OBJID textcolor 3 - getspeciesname 0, VAR_0x4003 + getspeciesname 0, VAR_OAKSLAB_RIVAL_STARTER_SPECIES message Text_18DD52 waitmessage playfanfare MUS_FAN5 waitfanfare setvar VAR_MAP_SCENE_PALLET_TOWN_PROFESSOR_OAKS_LAB, 3 - checkflag FLAG_0x83E - call_if 1, EventScript_169D5C + checkflag FLAG_PALLET_TOWN_LADY_MOVED_FROM_SIGN + call_if TRUE, EventScript_169D5C release end EventScript_169D5C:: @ 8169D5C - setvar VAR_0x4070, 1 + setvar VAR_MAP_SCENE_PALLET_TOWN_SIGN_LADY, 1 return -Movement_169D62:: @ 8169D62 +Movement_RivalWalksToCharmander:: @ 8169D62 step_10 step_10 step_13 @@ -1286,7 +1289,7 @@ Movement_169D62:: @ 8169D62 step_11 step_end -Movement_169D6B:: @ 8169D6B +Movement_RivalWalksToBulbasaur:: @ 8169D6B step_10 step_13 step_13 @@ -1295,7 +1298,7 @@ Movement_169D6B:: @ 8169D6B step_2e step_end -Movement_169D72:: @ 8169D72 +Movement_RivalWalksToSquirtle:: @ 8169D72 step_10 step_13 step_13 @@ -1306,14 +1309,14 @@ Movement_169D72:: @ 8169D72 PalletTown_ProfessorOaksLab_EventScript_169D78:: @ 8169D78 lock faceplayer - setvar VAR_0x4001, 1 - setvar VAR_0x4002, 7 - setvar VAR_0x4003, 1 - setvar VAR_0x4004, 5 + setvar VAR_OAKSLAB_PLAYER_STARTER_NO, 1 + setvar VAR_OAKSLAB_PLAYER_STARTER_SPECIES, SPECIES_SQUIRTLE + setvar VAR_OAKSLAB_RIVAL_STARTER_SPECIES, SPECIES_BULBASAUR + setvar VAR_OAKSLAB_RIVAL_STARTER_OBJID, 5 compare_var_to_value VAR_MAP_SCENE_PALLET_TOWN_PROFESSOR_OAKS_LAB, 3 - goto_if 4, EventScript_169DE4 + goto_if ge, EventScript_169DE4 compare_var_to_value VAR_MAP_SCENE_PALLET_TOWN_PROFESSOR_OAKS_LAB, 2 - goto_if_eq EventScript_169BE1 + goto_if eq, EventScript_169BE1 msgbox gUnknown_818EA19 release end @@ -1321,14 +1324,14 @@ PalletTown_ProfessorOaksLab_EventScript_169D78:: @ 8169D78 PalletTown_ProfessorOaksLab_EventScript_169DAE:: @ 8169DAE lock faceplayer - setvar VAR_0x4001, 2 - setvar VAR_0x4002, 4 - setvar VAR_0x4003, 7 - setvar VAR_0x4004, 6 + setvar VAR_OAKSLAB_PLAYER_STARTER_NO, 2 + setvar VAR_OAKSLAB_PLAYER_STARTER_SPECIES, SPECIES_CHARMANDER + setvar VAR_OAKSLAB_RIVAL_STARTER_SPECIES, SPECIES_SQUIRTLE + setvar VAR_OAKSLAB_RIVAL_STARTER_OBJID, 6 compare_var_to_value VAR_MAP_SCENE_PALLET_TOWN_PROFESSOR_OAKS_LAB, 3 - goto_if 4, EventScript_169DE4 + goto_if ge, EventScript_169DE4 compare_var_to_value VAR_MAP_SCENE_PALLET_TOWN_PROFESSOR_OAKS_LAB, 2 - goto_if_eq EventScript_169BE1 + goto_if eq, EventScript_169BE1 msgbox gUnknown_818EA19 release end @@ -1341,16 +1344,14 @@ EventScript_169DE4:: @ 8169DE4 PalletTown_ProfessorOaksLab_EventScript_169DEE:: @ 8169DEE lock faceplayer - checkflag FLAG_0x82C - goto_if_eq EventScript_169E03 + checkflag FLAG_SYS_GAME_CLEAR + goto_if TRUE, EventScript_169E03 msgbox gUnknown_818EBE6 release end EventScript_169E03:: @ 8169E03 - setvar VAR_0x8004, 0 - setvar VAR_0x8005, 5 - special SetFlavorTextFlagFromSpecialVars + famechecker FAMECHECKER_OAK, 5 msgbox gUnknown_818ED15 release end @@ -1358,16 +1359,14 @@ EventScript_169E03:: @ 8169E03 PalletTown_ProfessorOaksLab_EventScript_169E1A:: @ 8169E1A lock faceplayer - checkflag FLAG_0x82C - goto_if_eq EventScript_169E2F + checkflag FLAG_SYS_GAME_CLEAR + goto_if TRUE, EventScript_169E2F msgbox gUnknown_818EBE6 release end EventScript_169E2F:: @ 8169E2F - setvar VAR_0x8004, 1 - setvar VAR_0x8005, 0 - special SetFlavorTextFlagFromSpecialVars + famechecker FAMECHECKER_DAISY, 0 msgbox gUnknown_818EC0B release end @@ -1375,9 +1374,7 @@ EventScript_169E2F:: @ 8169E2F PalletTown_ProfessorOaksLab_EventScript_169E46:: @ 8169E46 lock faceplayer - setvar VAR_0x8004, 0 - setvar VAR_0x8005, 2 - special SetFlavorTextFlagFromSpecialVars + famechecker FAMECHECKER_OAK, 2 msgbox gUnknown_818ED81 release end @@ -1397,7 +1394,7 @@ PalletTown_ProfessorOaksLab_EventScript_169E71:: @ 8169E71 PalletTown_ProfessorOaksLab_EventScript_169E7A:: @ 8169E7A lockall compare_var_to_value VAR_MAP_SCENE_PALLET_TOWN_PROFESSOR_OAKS_LAB, 6 - goto_if 4, EventScript_169E90 + goto_if ge, EventScript_169E90 msgbox gUnknown_818EA84 releaseall end diff --git a/data/maps/PewterCity/map.json b/data/maps/PewterCity/map.json index a3e8f4d40..2f51e7462 100644 --- a/data/maps/PewterCity/map.json +++ b/data/maps/PewterCity/map.json @@ -25,7 +25,7 @@ ], "object_events": [ { - "graphics_id": "22", + "graphics_id": "MAP_OBJ_GFX_LASS", "x": 6, "y": 15, "elevation": 3, @@ -38,7 +38,7 @@ "flag": "0" }, { - "graphics_id": "25", + "graphics_id": "MAP_OBJ_GFX_MAN", "x": 33, "y": 17, "elevation": 3, @@ -48,10 +48,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "PewterCity_EventScript_16607E", - "flag": "80" + "flag": "FLAG_HIDE_PEWTER_MUSEUM_GUIDE" }, { - "graphics_id": "27", + "graphics_id": "MAP_OBJ_GFX_FAT_MAN", "x": 21, "y": 28, "elevation": 3, @@ -64,7 +64,7 @@ "flag": "0" }, { - "graphics_id": "20", + "graphics_id": "MAP_OBJ_GFX_BUG_CATCHER", "x": 33, "y": 27, "elevation": 3, @@ -77,7 +77,7 @@ "flag": "0" }, { - "graphics_id": "19", + "graphics_id": "MAP_OBJ_GFX_BOY", "x": 42, "y": 20, "elevation": 3, @@ -87,10 +87,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "PewterCity_EventScript_165B9D", - "flag": "46" + "flag": "FLAG_HIDE_PEWTER_CITY_GYM_GUIDE" }, { - "graphics_id": "95", + "graphics_id": "MAP_OBJ_GFX_CUT_TREE", "x": 30, "y": 5, "elevation": 3, @@ -99,11 +99,11 @@ "movement_range_y": 1, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "PewterCity_EventScript_1BDF13", - "flag": "18" + "script": "EventScript_InteractWithCutTreeObject", + "flag": "FLAG_TEMP_12" }, { - "graphics_id": "55", + "graphics_id": "MAP_OBJ_GFX_SCIENTIST", "x": 46, "y": 20, "elevation": 3, @@ -113,7 +113,7 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "PewterCity_EventScript_1662A9", - "flag": "146" + "flag": "FLAG_HIDE_PEWTER_CITY_RUNNING_SHOES_GUY" } ], "warp_events": [ @@ -173,7 +173,7 @@ "x": 42, "y": 21, "elevation": 3, - "var": "VAR_0x406C", + "var": "VAR_MAP_SCENE_PEWTER_CITY", "var_value": 0, "script": "PewterCity_EventScript_165D8E" }, @@ -182,7 +182,7 @@ "x": 42, "y": 22, "elevation": 3, - "var": "VAR_0x406C", + "var": "VAR_MAP_SCENE_PEWTER_CITY", "var_value": 0, "script": "PewterCity_EventScript_165D9A" }, @@ -191,7 +191,7 @@ "x": 42, "y": 23, "elevation": 3, - "var": "VAR_0x406C", + "var": "VAR_MAP_SCENE_PEWTER_CITY", "var_value": 0, "script": "PewterCity_EventScript_165DA6" }, @@ -200,7 +200,7 @@ "x": 43, "y": 23, "elevation": 3, - "var": "VAR_0x406C", + "var": "VAR_MAP_SCENE_PEWTER_CITY", "var_value": 0, "script": "PewterCity_EventScript_165DB2" }, @@ -209,7 +209,7 @@ "x": 46, "y": 21, "elevation": 3, - "var": "VAR_0x406C", + "var": "VAR_MAP_SCENE_PEWTER_CITY", "var_value": 1, "script": "PewterCity_EventScript_1662B7" }, @@ -218,7 +218,7 @@ "x": 46, "y": 22, "elevation": 3, - "var": "VAR_0x406C", + "var": "VAR_MAP_SCENE_PEWTER_CITY", "var_value": 1, "script": "PewterCity_EventScript_1662C4" }, @@ -227,7 +227,7 @@ "x": 46, "y": 23, "elevation": 3, - "var": "VAR_0x406C", + "var": "VAR_MAP_SCENE_PEWTER_CITY", "var_value": 1, "script": "PewterCity_EventScript_1662D1" } @@ -273,9 +273,10 @@ "x": 6, "y": 3, "elevation": 3, - "item": "POCKET_TM_CASE", - "flag": "112", - "unknown": 1 + "item": "ITEM_POKE_BALL", + "flag": "HIDDEN_ITEM_PEWTER_CITY_POKE_BALL", + "quantity": 1, + "underfoot": false } ] } diff --git a/data/maps/PewterCity/scripts.inc b/data/maps/PewterCity/scripts.inc index d4c461de2..352da6d31 100644 --- a/data/maps/PewterCity/scripts.inc +++ b/data/maps/PewterCity/scripts.inc @@ -4,7 +4,7 @@ PewterCity_MapScripts:: @ 8165B8E PewterCity_MapScript1_165B94:: @ 8165B94 setworldmapflag FLAG_WORLD_MAP_PEWTER_CITY - setvar VAR_0x4061, 0 + setvar VAR_MAP_SCENE_PEWTER_CITY_MUSEUM_1F, 0 end PewterCity_EventScript_165B9D:: @ 8165B9D @@ -14,14 +14,14 @@ PewterCity_EventScript_165B9D:: @ 8165B9D closemessage playbgm MUS_ANNAI, 0 compare_var_to_value VAR_FACING, 4 - call_if 1, EventScript_165BD3 + call_if eq, EventScript_165BD3 msgbox gUnknown_817E6C7 closemessage applymovement 5, Movement_165D83 waitmovement 0 fadedefaultbgm removeobject 5 - clearflag FLAG_0x02E + clearflag FLAG_HIDE_PEWTER_CITY_GYM_GUIDE release end @@ -446,18 +446,18 @@ EventScript_165DBE:: @ 8165DBE closemessage playbgm MUS_ANNAI, 0 compare_var_to_value VAR_0x4001, 0 - call_if 1, EventScript_165E0A + call_if eq, EventScript_165E0A compare_var_to_value VAR_0x4001, 1 - call_if 1, EventScript_165E26 + call_if eq, EventScript_165E26 compare_var_to_value VAR_0x4001, 2 - call_if 1, EventScript_165E42 + call_if eq, EventScript_165E42 msgbox gUnknown_817E6C7 closemessage applymovement 5, Movement_165D83 waitmovement 0 fadedefaultbgm removeobject 5 - clearflag FLAG_0x02E + clearflag FLAG_HIDE_PEWTER_CITY_GYM_GUIDE releaseall end @@ -1033,19 +1033,19 @@ PewterCity_EventScript_16607E:: @ 816607E faceplayer msgbox gUnknown_817E53E, MSGBOX_YESNO compare_var_to_value VAR_RESULT, 1 - goto_if_eq EventScript_166136 + goto_if eq, EventScript_166136 msgbox gUnknown_817E589 closemessage delay 10 playbgm MUS_ANNAI, 0 compare_var_to_value VAR_FACING, 2 - call_if 1, EventScript_1660EE + call_if eq, EventScript_1660EE compare_var_to_value VAR_FACING, 1 - call_if 1, EventScript_166100 + call_if eq, EventScript_166100 compare_var_to_value VAR_FACING, 3 - call_if 1, EventScript_166112 + call_if eq, EventScript_166112 compare_var_to_value VAR_FACING, 4 - call_if 1, EventScript_166124 + call_if eq, EventScript_166124 msgbox gUnknown_817E5AC closemessage delay 10 @@ -1053,7 +1053,7 @@ PewterCity_EventScript_16607E:: @ 816607E waitmovement 0 fadedefaultbgm removeobject 2 - clearflag FLAG_0x050 + clearflag FLAG_HIDE_PEWTER_MUSEUM_GUIDE release end @@ -1342,9 +1342,7 @@ Movement_16621C:: @ 816621C PewterCity_EventScript_16622B:: @ 816622B lock faceplayer - setvar VAR_0x8004, 2 - setvar VAR_0x8005, 2 - special SetFlavorTextFlagFromSpecialVars + famechecker FAMECHECKER_BROCK, 2 msgbox gUnknown_817E49F release end @@ -1354,7 +1352,7 @@ PewterCity_EventScript_166244:: @ 8166244 faceplayer msgbox gUnknown_817E602, MSGBOX_YESNO compare_var_to_value VAR_RESULT, 1 - goto_if_eq EventScript_166263 + goto_if eq, EventScript_166263 msgbox gUnknown_817E644 release end @@ -1378,9 +1376,7 @@ PewterCity_EventScript_16627F:: @ 816627F PewterCity_EventScript_166288:: @ 8166288 lockall - setvar VAR_0x8004, 2 - setvar VAR_0x8005, 0 - special SetFlavorTextFlagFromSpecialVars + famechecker FAMECHECKER_BROCK, 0 msgbox gUnknown_817E7DE releaseall end @@ -1421,11 +1417,11 @@ PewterCity_EventScript_1662D1:: @ 81662D1 EventScript_1662DE:: @ 81662DE textcolor 0 compare_var_to_value VAR_0x4001, 1 - call_if 1, EventScript_1663CA + call_if eq, EventScript_1663CA compare_var_to_value VAR_0x4001, 2 - call_if 1, EventScript_1663CA + call_if eq, EventScript_1663CA compare_var_to_value VAR_0x4001, 3 - call_if 1, EventScript_1663CA + call_if eq, EventScript_1663CA waitse playse SE_PIN applymovement 7, Movement_1A75DB @@ -1434,13 +1430,13 @@ EventScript_1662DE:: @ 81662DE waitmovement 0 msgbox gUnknown_817E902 compare_var_to_value VAR_0x4001, 0 - call_if 1, EventScript_1663D5 + call_if eq, EventScript_1663D5 compare_var_to_value VAR_0x4001, 1 - call_if 1, EventScript_1663DA + call_if eq, EventScript_1663DA compare_var_to_value VAR_0x4001, 2 - call_if 1, EventScript_1663E6 + call_if eq, EventScript_1663E6 compare_var_to_value VAR_0x4001, 3 - call_if 1, EventScript_1663FC + call_if eq, EventScript_1663FC msgbox gUnknown_817E90C textcolor 3 playfanfare MUS_FAN5 @@ -1456,20 +1452,20 @@ EventScript_1662DE:: @ 81662DE msgbox gUnknown_817EA06 closemessage compare_var_to_value VAR_0x4001, 0 - call_if 1, EventScript_166412 + call_if eq, EventScript_166412 compare_var_to_value VAR_0x4001, 1 - call_if 1, EventScript_16641D + call_if eq, EventScript_16641D compare_var_to_value VAR_0x4001, 2 - call_if 1, EventScript_166428 + call_if eq, EventScript_166428 compare_var_to_value VAR_0x4001, 3 - call_if 1, EventScript_166433 + call_if eq, EventScript_166433 delay 30 textcolor 3 msgbox gUnknown_817EA36 closemessage removeobject 7 - setflag FLAG_0x82F - setvar VAR_0x406C, 2 + setflag FLAG_SYS_RUNNING_SHOES + setvar VAR_MAP_SCENE_PEWTER_CITY, 2 return EventScript_1663CA:: @ 81663CA diff --git a/data/maps/PewterCity_Gym/map.json b/data/maps/PewterCity_Gym/map.json index 5893d6954..16d0992be 100644 --- a/data/maps/PewterCity_Gym/map.json +++ b/data/maps/PewterCity_Gym/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "80", + "graphics_id": "MAP_OBJ_GFX_BROCK", "x": 6, "y": 5, "elevation": 3, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "39", + "graphics_id": "MAP_OBJ_GFX_CAMPER", "x": 3, "y": 8, "elevation": 3, @@ -40,7 +40,7 @@ "flag": "0" }, { - "graphics_id": "91", + "graphics_id": "MAP_OBJ_GFX_GYM_GUY", "x": 7, "y": 12, "elevation": 3, diff --git a/data/maps/PewterCity_Gym/scripts.inc b/data/maps/PewterCity_Gym/scripts.inc index 5990bf1e3..39a6be51b 100644 --- a/data/maps/PewterCity_Gym/scripts.inc +++ b/data/maps/PewterCity_Gym/scripts.inc @@ -2,27 +2,22 @@ PewterCity_Gym_MapScripts:: @ 816A592 .byte 0 PewterCity_Gym_EventScript_16A593:: @ 816A593 - setvar VAR_0x8004, 2 - setvar VAR_0x8005, 2 - special UpdatePickStateFromSpecialVar8005 - trainerbattle 1, 414, 0, Text_190CD4, Text_190E4F, EventScript_16A5C5 - checkflag FLAG_0x254 - goto_if 0, EventScript_16A5F3 + famechecker FAMECHECKER_BROCK, FCPICKSTATE_COLORED, UpdatePickStateFromSpecialVar8005 + trainerbattle TRAINER_BATTLE_CONTINUE_SCRIPT_NO_MUSIC, TRAINER_LEADER_BROCK, 0, Text_190CD4, Text_190E4F, EventScript_16A5C5 + checkflag FLAG_GOT_TM39_FROM_BROCK + goto_if FALSE, EventScript_16A5F3 msgbox gUnknown_819110F release end EventScript_16A5C5:: @ 816A5C5 - setvar VAR_0x8004, 2 - setvar VAR_0x8005, 1 - special SetFlavorTextFlagFromSpecialVars - setflag FLAG_0x4B0 - setflag FLAG_UNK820 - setvar VAR_0x406C, 1 - setflag FLAG_0x02E - clearflag FLAG_0x092 - setvar VAR_0x8008, 1 - call EventScript_1A6B18 + famechecker FAMECHECKER_BROCK, 1 + setflag FLAG_DEFEATED_BROCK + setflag FLAG_BADGE01_GET + setvar VAR_MAP_SCENE_PEWTER_CITY, 1 + setflag FLAG_HIDE_PEWTER_CITY_GYM_GUIDE + clearflag FLAG_HIDE_PEWTER_CITY_RUNNING_SHOES_GUY + set_gym_trainers 1 goto EventScript_16A5F3 end @@ -30,10 +25,10 @@ EventScript_16A5F3:: @ 816A5F3 msgbox gUnknown_8190FC1 checkitemspace ITEM_TM39, 1 compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_16A634 + goto_if eq, EventScript_16A634 additem ITEM_TM39, 1 giveitemfanfaremsg gUnknown_8190FDB, ITEM_TM39 - setflag FLAG_0x254 + setflag FLAG_GOT_TM39_FROM_BROCK msgbox gUnknown_8190FF8 release end @@ -44,20 +39,20 @@ EventScript_16A634:: @ 816A634 end PewterCity_Gym_EventScript_16A63E:: @ 816A63E - trainerbattle 0, 142, 0, Text_1911EC, Text_191237 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_CAMPER_LIAM, 0, Text_1911EC, Text_191237 msgbox gUnknown_819126B, 6 end PewterCity_Gym_EventScript_16A655:: @ 816A655 lock faceplayer - checkflag FLAG_0x4B0 - goto_if_eq EventScript_16A67F + checkflag FLAG_DEFEATED_BROCK + goto_if TRUE, EventScript_16A67F msgbox gUnknown_8191298, MSGBOX_YESNO compare_var_to_value VAR_RESULT, 1 - goto_if_eq EventScript_16A689 + goto_if eq, EventScript_16A689 compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_16A697 + goto_if eq, EventScript_16A697 end EventScript_16A67F:: @ 816A67F @@ -82,8 +77,8 @@ EventScript_16A6A5:: @ 816A6A5 PewterCity_Gym_EventScript_16A6AF:: @ 816A6AF lockall - checkflag FLAG_UNK820 - goto_if_eq EventScript_16A6C3 + checkflag FLAG_BADGE01_GET + goto_if TRUE, EventScript_16A6C3 msgbox gUnknown_819146E releaseall end diff --git a/data/maps/PewterCity_House1/map.json b/data/maps/PewterCity_House1/map.json index d44ec63bf..5f177362a 100644 --- a/data/maps/PewterCity_House1/map.json +++ b/data/maps/PewterCity_House1/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "30", + "graphics_id": "MAP_OBJ_GFX_BALDING_MAN", "x": 1, "y": 2, "elevation": 3, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "16", + "graphics_id": "MAP_OBJ_GFX_LITTLE_BOY", "x": 5, "y": 3, "elevation": 3, @@ -40,7 +40,7 @@ "flag": "0" }, { - "graphics_id": "123", + "graphics_id": "MAP_OBJ_GFX_NIDORAN_M", "x": 6, "y": 3, "elevation": 3, diff --git a/data/maps/PewterCity_House2/map.json b/data/maps/PewterCity_House2/map.json index 83aaf23bf..83699d95f 100644 --- a/data/maps/PewterCity_House2/map.json +++ b/data/maps/PewterCity_House2/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "32", + "graphics_id": "MAP_OBJ_GFX_OLD_MAN_1", "x": 3, "y": 3, "elevation": 3, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "16", + "graphics_id": "MAP_OBJ_GFX_LITTLE_BOY", "x": 5, "y": 3, "elevation": 3, diff --git a/data/maps/PewterCity_Mart/map.json b/data/maps/PewterCity_Mart/map.json index 8b9c5e575..08555943c 100644 --- a/data/maps/PewterCity_Mart/map.json +++ b/data/maps/PewterCity_Mart/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "18", + "graphics_id": "MAP_OBJ_GFX_YOUNGSTER", "x": 8, "y": 2, "elevation": 3, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "19", + "graphics_id": "MAP_OBJ_GFX_BOY", "x": 6, "y": 4, "elevation": 3, @@ -40,7 +40,7 @@ "flag": "0" }, { - "graphics_id": "68", + "graphics_id": "MAP_OBJ_GFX_CLERK", "x": 2, "y": 3, "elevation": 0, diff --git a/data/maps/PewterCity_Mart/scripts.inc b/data/maps/PewterCity_Mart/scripts.inc index 9e6fc4375..e45959442 100644 --- a/data/maps/PewterCity_Mart/scripts.inc +++ b/data/maps/PewterCity_Mart/scripts.inc @@ -12,7 +12,7 @@ PewterCity_Mart_EventScript_16A6D7:: @ 816A6D7 PewterCity_Mart_EventScript_16A6E0:: @ 816A6E0 special sub_8110AB4 compare_var_to_value VAR_RESULT, 2 - goto_if_eq EventScript_1A7AE0 + goto_if eq, EventScript_1A7AE0 lock faceplayer message Text_1A6211 diff --git a/data/maps/PewterCity_Museum_1F/map.json b/data/maps/PewterCity_Museum_1F/map.json index 8a4e54380..7dcbbe776 100644 --- a/data/maps/PewterCity_Museum_1F/map.json +++ b/data/maps/PewterCity_Museum_1F/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "47", + "graphics_id": "MAP_OBJ_GFX_WORKER_M", "x": 16, "y": 5, "elevation": 3, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "32", + "graphics_id": "MAP_OBJ_GFX_OLD_MAN_1", "x": 2, "y": 4, "elevation": 3, @@ -40,7 +40,7 @@ "flag": "0" }, { - "graphics_id": "55", + "graphics_id": "MAP_OBJ_GFX_SCIENTIST", "x": 21, "y": 3, "elevation": 3, @@ -53,7 +53,7 @@ "flag": "0" }, { - "graphics_id": "101", + "graphics_id": "MAP_OBJ_GFX_OLD_AMBER", "x": 22, "y": 3, "elevation": 0, @@ -63,10 +63,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "PewterCity_Museum_1F_EventScript_16A509", - "flag": "86" + "flag": "FLAG_HIDE_OLD_AMBER" }, { - "graphics_id": "55", + "graphics_id": "MAP_OBJ_GFX_SCIENTIST", "x": 26, "y": 4, "elevation": 3, @@ -79,7 +79,7 @@ "flag": "0" }, { - "graphics_id": "55", + "graphics_id": "MAP_OBJ_GFX_SCIENTIST", "x": 26, "y": 7, "elevation": 3, @@ -142,7 +142,7 @@ "x": 12, "y": 5, "elevation": 3, - "var": "VAR_0x4061", + "var": "VAR_MAP_SCENE_PEWTER_CITY_MUSEUM_1F", "var_value": 0, "script": "PewterCity_Museum_1F_EventScript_16A38F" }, @@ -151,7 +151,7 @@ "x": 13, "y": 5, "elevation": 3, - "var": "VAR_0x4061", + "var": "VAR_MAP_SCENE_PEWTER_CITY_MUSEUM_1F", "var_value": 0, "script": "PewterCity_Museum_1F_EventScript_16A3A5" }, @@ -160,7 +160,7 @@ "x": 14, "y": 5, "elevation": 3, - "var": "VAR_0x4061", + "var": "VAR_MAP_SCENE_PEWTER_CITY_MUSEUM_1F", "var_value": 0, "script": "PewterCity_Museum_1F_EventScript_16A3BB" } diff --git a/data/maps/PewterCity_Museum_1F/scripts.inc b/data/maps/PewterCity_Museum_1F/scripts.inc index 275282638..8d4f9dc6d 100644 --- a/data/maps/PewterCity_Museum_1F/scripts.inc +++ b/data/maps/PewterCity_Museum_1F/scripts.inc @@ -5,11 +5,11 @@ PewterCity_Museum_1F_EventScript_16A31B:: @ 816A31B lock faceplayer compare_var_to_value VAR_FACING, 3 - goto_if_eq EventScript_16A348 + goto_if eq, EventScript_16A348 compare_var_to_value VAR_FACING, 1 - goto_if_eq EventScript_16A348 + goto_if eq, EventScript_16A348 compare_var_to_value VAR_FACING, 2 - goto_if_eq EventScript_16A348 + goto_if eq, EventScript_16A348 msgbox gUnknown_8190539 release end @@ -17,9 +17,9 @@ PewterCity_Museum_1F_EventScript_16A31B:: @ 816A31B EventScript_16A348:: @ 816A348 msgbox gUnknown_8190550, MSGBOX_YESNO compare_var_to_value VAR_RESULT, 1 - goto_if_eq EventScript_16A367 + goto_if eq, EventScript_16A367 compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_16A37B + goto_if eq, EventScript_16A37B end EventScript_16A367:: @ 816A367 @@ -65,7 +65,7 @@ EventScript_16A3D1:: @ 816A3D1 showmoneybox 0, 0, 0 msgbox gUnknown_81904B5, MSGBOX_YESNO compare_var_to_value VAR_RESULT, 1 - goto_if_eq EventScript_16A402 + goto_if eq, EventScript_16A402 msgbox gUnknown_81904F9 closemessage hidemoneybox @@ -79,20 +79,20 @@ EventScript_16A3D1:: @ 816A3D1 EventScript_16A402:: @ 816A402 checkmoney 50, 0 compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_16A476 + goto_if eq, EventScript_16A476 closemessage compare_var_to_value VAR_0x4001, 0 - call_if 1, EventScript_16A455 + call_if eq, EventScript_16A455 compare_var_to_value VAR_0x4001, 1 - call_if 1, EventScript_16A460 + call_if eq, EventScript_16A460 compare_var_to_value VAR_0x4001, 2 - call_if 1, EventScript_16A46B + call_if eq, EventScript_16A46B playse SE_SHOP takemoney 50, 0 updatemoneybox 0, 0, 0 waitse msgbox gUnknown_8190505 - setvar VAR_0x4061, 1 + setvar VAR_MAP_SCENE_PEWTER_CITY_MUSEUM_1F, 1 hidemoneybox .byte 0 .byte 0 @@ -158,13 +158,13 @@ PewterCity_Museum_1F_EventScript_16A4A5:: @ 816A4A5 PewterCity_Museum_1F_EventScript_16A4AE:: @ 816A4AE lock faceplayer - checkflag FLAG_0x25E - goto_if_eq EventScript_16A4FF + checkflag FLAG_GOT_OLD_AMBER + goto_if TRUE, EventScript_16A4FF msgbox gUnknown_8190717 checkitemspace ITEM_OLD_AMBER, 1 compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_16A4F5 - setflag FLAG_0x25E + goto_if eq, EventScript_16A4F5 + setflag FLAG_GOT_OLD_AMBER removeobject 4 additem ITEM_OLD_AMBER, 1 giveitemfanfaremsg gUnknown_8190866, ITEM_OLD_AMBER, 1, MUS_FAN5 @@ -190,9 +190,9 @@ PewterCity_Museum_1F_EventScript_16A512:: @ 816A512 setvar VAR_0x8004, SPECIES_AERODACTYL setvar VAR_0x8005, 10 setvar VAR_0x8006, 3 - special sub_809D504 + special Special_OpenMuseumFossilPic msgbox gUnknown_8190945 - special sub_809D620 + special Special_CloseMuseumFossilPic releaseall end @@ -201,8 +201,8 @@ PewterCity_Museum_1F_EventScript_16A532:: @ 816A532 setvar VAR_0x8004, SPECIES_KABUTOPS setvar VAR_0x8005, 10 setvar VAR_0x8006, 3 - special sub_809D504 + special Special_OpenMuseumFossilPic msgbox gUnknown_8190975 - special sub_809D620 + special Special_CloseMuseumFossilPic releaseall end diff --git a/data/maps/PewterCity_Museum_2F/map.json b/data/maps/PewterCity_Museum_2F/map.json index 317926b39..069f33249 100644 --- a/data/maps/PewterCity_Museum_2F/map.json +++ b/data/maps/PewterCity_Museum_2F/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "55", + "graphics_id": "MAP_OBJ_GFX_SCIENTIST", "x": 10, "y": 5, "elevation": 3, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "25", + "graphics_id": "MAP_OBJ_GFX_MAN", "x": 4, "y": 9, "elevation": 3, @@ -40,7 +40,7 @@ "flag": "0" }, { - "graphics_id": "33", + "graphics_id": "MAP_OBJ_GFX_OLD_MAN_2", "x": 0, "y": 6, "elevation": 3, @@ -53,7 +53,7 @@ "flag": "0" }, { - "graphics_id": "17", + "graphics_id": "MAP_OBJ_GFX_LITTLE_GIRL", "x": 15, "y": 8, "elevation": 3, @@ -66,7 +66,7 @@ "flag": "0" }, { - "graphics_id": "30", + "graphics_id": "MAP_OBJ_GFX_BALDING_MAN", "x": 16, "y": 8, "elevation": 3, diff --git a/data/maps/PewterCity_PokemonCenter_1F/map.json b/data/maps/PewterCity_PokemonCenter_1F/map.json index 6807511b1..a4a4bee9f 100644 --- a/data/maps/PewterCity_PokemonCenter_1F/map.json +++ b/data/maps/PewterCity_PokemonCenter_1F/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "115", + "graphics_id": "MAP_OBJ_GFX_JIGGLYPUFF", "x": 2, "y": 2, "elevation": 3, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "61", + "graphics_id": "MAP_OBJ_GFX_GENTLEMAN", "x": 4, "y": 8, "elevation": 3, @@ -40,7 +40,7 @@ "flag": "0" }, { - "graphics_id": "64", + "graphics_id": "MAP_OBJ_GFX_NURSE", "x": 7, "y": 2, "elevation": 3, @@ -53,7 +53,7 @@ "flag": "0" }, { - "graphics_id": "18", + "graphics_id": "MAP_OBJ_GFX_YOUNGSTER", "x": 1, "y": 2, "elevation": 3, @@ -66,7 +66,7 @@ "flag": "0" }, { - "graphics_id": "23", + "graphics_id": "MAP_OBJ_GFX_WOMAN_1", "x": 13, "y": 2, "elevation": 3, @@ -79,7 +79,7 @@ "flag": "0" }, { - "graphics_id": "51", + "graphics_id": "MAP_OBJ_GFX_GBA_KID", "x": 10, "y": 7, "elevation": 3, @@ -92,7 +92,7 @@ "flag": "0" }, { - "graphics_id": "51", + "graphics_id": "MAP_OBJ_GFX_GBA_KID", "x": 14, "y": 6, "elevation": 3, diff --git a/data/maps/PewterCity_PokemonCenter_2F/map.json b/data/maps/PewterCity_PokemonCenter_2F/map.json index 37dd74cef..32a9afe45 100644 --- a/data/maps/PewterCity_PokemonCenter_2F/map.json +++ b/data/maps/PewterCity_PokemonCenter_2F/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "65", + "graphics_id": "MAP_OBJ_GFX_CABLE_CLUB_RECEPTIONIST", "x": 6, "y": 2, "elevation": 3, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "65", + "graphics_id": "MAP_OBJ_GFX_CABLE_CLUB_RECEPTIONIST", "x": 2, "y": 2, "elevation": 3, @@ -40,7 +40,7 @@ "flag": "0" }, { - "graphics_id": "65", + "graphics_id": "MAP_OBJ_GFX_CABLE_CLUB_RECEPTIONIST", "x": 10, "y": 2, "elevation": 3, @@ -53,7 +53,7 @@ "flag": "0" }, { - "graphics_id": "69", + "graphics_id": "MAP_OBJ_GFX_MG_DELIVERYMAN", "x": 1, "y": 2, "elevation": 3, @@ -63,7 +63,7 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "PewterCity_PokemonCenter_2F_EventScript_1BB1D2", - "flag": "112" + "flag": "FLAG_HIDE_MG_DELIVERYMEN" } ], "warp_events": [ diff --git a/data/maps/PokemonLeague_AgathasRoom/map.json b/data/maps/PokemonLeague_AgathasRoom/map.json index 16b98cfda..30d6cc36c 100644 --- a/data/maps/PokemonLeague_AgathasRoom/map.json +++ b/data/maps/PokemonLeague_AgathasRoom/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "75", + "graphics_id": "MAP_OBJ_GFX_AGATHA", "x": 6, "y": 5, "elevation": 3, diff --git a/data/maps/PokemonLeague_AgathasRoom/scripts.inc b/data/maps/PokemonLeague_AgathasRoom/scripts.inc index 2a46b544d..260a2acff 100644 --- a/data/maps/PokemonLeague_AgathasRoom/scripts.inc +++ b/data/maps/PokemonLeague_AgathasRoom/scripts.inc @@ -11,10 +11,10 @@ PokemonLeague_AgathasRoom_MapScript1_162825:: @ 8162825 end PokemonLeague_AgathasRoom_MapScript2_162830:: @ 8162830 - checkflag FLAG_0x4BA - call_if 1, EventScript_16284B - compare_var_to_value VAR_0x4068, 3 - call_if 1, EventScript_162845 + checkflag FLAG_DEFEATED_AGATHA + call_if TRUE, EventScript_16284B + compare_var_to_value VAR_MAP_SCENE_POKEMON_LEAGUE, 3 + call_if eq, EventScript_162845 end EventScript_162845:: @ 8162845 @@ -34,44 +34,36 @@ EventScript_16285B:: @ 816285B end PokemonLeague_AgathasRoom_MapScript4_162860:: @ 8162860 - map_script_2 VAR_0x4068, 2, EventScript_16286A + map_script_2 VAR_MAP_SCENE_POKEMON_LEAGUE, 2, EventScript_16286A .2byte 0 EventScript_16286A:: @ 816286A lockall call EventScript_1A751F - setvar VAR_0x4068, 3 + setvar VAR_MAP_SCENE_POKEMON_LEAGUE, 3 releaseall end PokemonLeague_AgathasRoom_EventScript_162877:: @ 8162877 lock faceplayer - setvar VAR_0x8004, 11 - setvar VAR_0x8005, 2 - special UpdatePickStateFromSpecialVar8005 - checkflag FLAG_0x4BA - goto_if_eq EventScript_162911 - setvar VAR_0x8004, 11 - setvar VAR_0x8005, 0 - special SetFlavorTextFlagFromSpecialVars - setvar VAR_0x8004, 11 - setvar VAR_0x8005, 4 - special SetFlavorTextFlagFromSpecialVars - setvar VAR_0x8004, 0 - setvar VAR_0x8005, 4 - special SetFlavorTextFlagFromSpecialVars - checkflag FLAG_0x82C - call_if 0, EventScript_1628E9 - checkflag FLAG_0x82C - call_if 1, EventScript_1628F2 - setflag FLAG_0x003 - setflag FLAG_0x005 - checkflag FLAG_0x844 - call_if 0, EventScript_1628FB - checkflag FLAG_0x844 - call_if 1, EventScript_162906 - clearflag FLAG_0x005 + famechecker FAMECHECKER_AGATHA, FCPICKSTATE_COLORED, UpdatePickStateFromSpecialVar8005 + checkflag FLAG_DEFEATED_AGATHA + goto_if TRUE, EventScript_162911 + famechecker FAMECHECKER_AGATHA, 0 + famechecker FAMECHECKER_AGATHA, 4 + famechecker FAMECHECKER_OAK, 4 + checkflag FLAG_SYS_GAME_CLEAR + call_if FALSE, EventScript_1628E9 + checkflag FLAG_SYS_GAME_CLEAR + call_if TRUE, EventScript_1628F2 + setflag FLAG_TEMP_3 + setflag FLAG_TEMP_5 + checkflag FLAG_SYS_CAN_LINK_WITH_RS + call_if FALSE, EventScript_1628FB + checkflag FLAG_SYS_CAN_LINK_WITH_RS + call_if TRUE, EventScript_162906 + clearflag FLAG_TEMP_5 goto EventScript_16291B EventScript_1628E8:: @ 81628E8 @@ -86,11 +78,11 @@ EventScript_1628F2:: @ 81628F2 return EventScript_1628FB:: @ 81628FB - trainerbattle 3, 412, 0, Text_1786D7 + trainerbattle TRAINER_BATTLE_SINGLE_NO_INTRO_TEXT, TRAINER_ELITE_FOUR_AGATHA, 0, Text_1786D7 return EventScript_162906:: @ 8162906 - trainerbattle 3, 737, 0, Text_1786D7 + trainerbattle TRAINER_BATTLE_SINGLE_NO_INTRO_TEXT, TRAINER_ELITE_FOUR_AGATHA_2, 0, Text_1786D7 return EventScript_162911:: @ 8162911 @@ -99,7 +91,7 @@ EventScript_162911:: @ 8162911 end EventScript_16291B:: @ 816291B - setflag FLAG_0x4BA + setflag FLAG_DEFEATED_AGATHA call EventScript_1A7506 msgbox gUnknown_8178700 release diff --git a/data/maps/PokemonLeague_BrunosRoom/map.json b/data/maps/PokemonLeague_BrunosRoom/map.json index 05cc19dbe..b3ff9a6e6 100644 --- a/data/maps/PokemonLeague_BrunosRoom/map.json +++ b/data/maps/PokemonLeague_BrunosRoom/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "79", + "graphics_id": "MAP_OBJ_GFX_BRUNO", "x": 6, "y": 5, "elevation": 3, diff --git a/data/maps/PokemonLeague_BrunosRoom/scripts.inc b/data/maps/PokemonLeague_BrunosRoom/scripts.inc index 6cc4a23a4..afbaad9e6 100644 --- a/data/maps/PokemonLeague_BrunosRoom/scripts.inc +++ b/data/maps/PokemonLeague_BrunosRoom/scripts.inc @@ -11,10 +11,10 @@ PokemonLeague_BrunosRoom_MapScript1_16269A:: @ 816269A end PokemonLeague_BrunosRoom_MapScript2_1626A5:: @ 81626A5 - checkflag FLAG_0x4B9 - call_if 1, EventScript_1626C0 - compare_var_to_value VAR_0x4068, 2 - call_if 1, EventScript_1626BA + checkflag FLAG_DEFEATED_BRUNO + call_if TRUE, EventScript_1626C0 + compare_var_to_value VAR_MAP_SCENE_POKEMON_LEAGUE, 2 + call_if eq, EventScript_1626BA end EventScript_1626BA:: @ 81626BA @@ -34,41 +34,35 @@ EventScript_1626D0:: @ 81626D0 end PokemonLeague_BrunosRoom_MapScript4_1626D5:: @ 81626D5 - map_script_2 VAR_0x4068, 1, EventScript_1626DF + map_script_2 VAR_MAP_SCENE_POKEMON_LEAGUE, 1, EventScript_1626DF .2byte 0 EventScript_1626DF:: @ 81626DF lockall call EventScript_1A751F - setvar VAR_0x4068, 2 + setvar VAR_MAP_SCENE_POKEMON_LEAGUE, 2 releaseall end PokemonLeague_BrunosRoom_EventScript_1626EC:: @ 81626EC lock faceplayer - setvar VAR_0x8004, 10 - setvar VAR_0x8005, 2 - special UpdatePickStateFromSpecialVar8005 - checkflag FLAG_0x4B9 - goto_if_eq EventScript_162779 - setvar VAR_0x8004, 10 - setvar VAR_0x8005, 0 - special SetFlavorTextFlagFromSpecialVars - setvar VAR_0x8004, 10 - setvar VAR_0x8005, 1 - special SetFlavorTextFlagFromSpecialVars - checkflag FLAG_0x82C - call_if 0, EventScript_162751 - checkflag FLAG_0x82C - call_if 1, EventScript_16275A - setflag FLAG_0x003 - setflag FLAG_0x005 - checkflag FLAG_0x844 - call_if 0, EventScript_162763 - checkflag FLAG_0x844 - call_if 1, EventScript_16276E - clearflag FLAG_0x005 + famechecker FAMECHECKER_BRUNO, FCPICKSTATE_COLORED, UpdatePickStateFromSpecialVar8005 + checkflag FLAG_DEFEATED_BRUNO + goto_if TRUE, EventScript_162779 + famechecker FAMECHECKER_BRUNO, 0 + famechecker FAMECHECKER_BRUNO, 1 + checkflag FLAG_SYS_GAME_CLEAR + call_if FALSE, EventScript_162751 + checkflag FLAG_SYS_GAME_CLEAR + call_if TRUE, EventScript_16275A + setflag FLAG_TEMP_3 + setflag FLAG_TEMP_5 + checkflag FLAG_SYS_CAN_LINK_WITH_RS + call_if FALSE, EventScript_162763 + checkflag FLAG_SYS_CAN_LINK_WITH_RS + call_if TRUE, EventScript_16276E + clearflag FLAG_TEMP_5 goto EventScript_1627B0 EventScript_162750:: @ 8162750 @@ -83,40 +77,40 @@ EventScript_16275A:: @ 816275A return EventScript_162763:: @ 8162763 - trainerbattle 3, 411, 0, Text_178409 + trainerbattle TRAINER_BATTLE_SINGLE_NO_INTRO_TEXT, TRAINER_ELITE_FOUR_BRUNO, 0, Text_178409 return EventScript_16276E:: @ 816276E - trainerbattle 3, 736, 0, Text_178409 + trainerbattle TRAINER_BATTLE_SINGLE_NO_INTRO_TEXT, TRAINER_ELITE_FOUR_BRUNO_2, 0, Text_178409 return EventScript_162779:: @ 8162779 msgbox gUnknown_8178420 closemessage compare_var_to_value VAR_FACING, 2 - call_if 1, EventScript_1627FA + call_if eq, EventScript_1627FA compare_var_to_value VAR_FACING, 1 - call_if 1, EventScript_1627EF + call_if eq, EventScript_1627EF compare_var_to_value VAR_FACING, 3 - call_if 1, EventScript_162805 + call_if eq, EventScript_162805 compare_var_to_value VAR_FACING, 4 - call_if 1, EventScript_162805 + call_if eq, EventScript_162805 release end EventScript_1627B0:: @ 81627B0 - setflag FLAG_0x4B9 + setflag FLAG_DEFEATED_BRUNO call EventScript_1A7506 msgbox gUnknown_8178420 closemessage compare_var_to_value VAR_FACING, 2 - call_if 1, EventScript_1627FA + call_if eq, EventScript_1627FA compare_var_to_value VAR_FACING, 1 - call_if 1, EventScript_1627EF + call_if eq, EventScript_1627EF compare_var_to_value VAR_FACING, 3 - call_if 1, EventScript_162805 + call_if eq, EventScript_162805 compare_var_to_value VAR_FACING, 4 - call_if 1, EventScript_162805 + call_if eq, EventScript_162805 release end diff --git a/data/maps/PokemonLeague_ChampionsRoom/map.json b/data/maps/PokemonLeague_ChampionsRoom/map.json index 90e243652..2154adc3a 100644 --- a/data/maps/PokemonLeague_ChampionsRoom/map.json +++ b/data/maps/PokemonLeague_ChampionsRoom/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "72", + "graphics_id": "MAP_OBJ_GFX_BLUE", "x": 6, "y": 8, "elevation": 3, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "71", + "graphics_id": "MAP_OBJ_GFX_PROF_OAK", "x": 6, "y": 15, "elevation": 0, @@ -37,7 +37,7 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "0x0", - "flag": "90" + "flag": "FLAG_HIDE_OAK_IN_CHAMP_ROOM" } ], "warp_events": [ diff --git a/data/maps/PokemonLeague_ChampionsRoom/scripts.inc b/data/maps/PokemonLeague_ChampionsRoom/scripts.inc index b705e8c54..8b0fff2ce 100644 --- a/data/maps/PokemonLeague_ChampionsRoom/scripts.inc +++ b/data/maps/PokemonLeague_ChampionsRoom/scripts.inc @@ -8,32 +8,32 @@ PokemonLeague_ChampionsRoom_MapScript2_162AF2:: @ 8162AF2 setvar VAR_0x8004, 4 call EventScript_1A75D5 compare_var_to_value VAR_STARTER_MON, 2 - call_if 1, EventScript_162B1E + call_if eq, EventScript_162B1E compare_var_to_value VAR_STARTER_MON, 1 - call_if 1, EventScript_162B31 + call_if eq, EventScript_162B31 compare_var_to_value VAR_STARTER_MON, 0 - call_if 1, EventScript_162B44 + call_if eq, EventScript_162B44 end EventScript_162B1E:: @ 8162B1E - checktrainerflag FLAG_0x1B6 - goto_if_eq EventScript_162B57 - checktrainerflag FLAG_0x2E3 - goto_if_eq EventScript_162B57 + checktrainerflag TRAINER_CHAMPION_FIRST_SQUIRTLE + goto_if eq, EventScript_162B57 + checktrainerflag TRAINER_CHAMPION_REMATCH_SQUIRTLE + goto_if eq, EventScript_162B57 return EventScript_162B31:: @ 8162B31 - checktrainerflag FLAG_0x1B7 - goto_if_eq EventScript_162B57 - checktrainerflag FLAG_0x2E4 - goto_if_eq EventScript_162B57 + checktrainerflag TRAINER_CHAMPION_FIRST_BULBASAUR + goto_if eq, EventScript_162B57 + checktrainerflag TRAINER_CHAMPION_REMATCH_BULBASAUR + goto_if eq, EventScript_162B57 return EventScript_162B44:: @ 8162B44 - checktrainerflag FLAG_0x1B8 - goto_if_eq EventScript_162B57 - checktrainerflag FLAG_0x2E5 - goto_if_eq EventScript_162B57 + checktrainerflag TRAINER_CHAMPION_FIRST_CHARMANDER + goto_if eq, EventScript_162B57 + checktrainerflag TRAINER_CHAMPION_REMATCH_CHARMANDER + goto_if eq, EventScript_162B57 return EventScript_162B57:: @ 8162B57 @@ -55,28 +55,28 @@ PokemonLeague_ChampionsRoom_MapScript3_162B6C:: @ 8162B6C EventScript_162B76:: @ 8162B76 lockall textcolor 0 - setflag FLAG_0x002 + setflag FLAG_TEMP_2 applymovement 255, Movement_162D07 waitmovement 0 delay 20 - checkflag FLAG_0x82C - call_if 0, EventScript_162CB3 - checkflag FLAG_0x82C - call_if 1, EventScript_162CBC + checkflag FLAG_SYS_GAME_CLEAR + call_if FALSE, EventScript_162CB3 + checkflag FLAG_SYS_GAME_CLEAR + call_if TRUE, EventScript_162CBC special sub_8110AB4 compare_var_to_value VAR_RESULT, 2 - goto_if_eq EventScript_162C68 - setflag FLAG_0x003 - setflag FLAG_0x005 + goto_if eq, EventScript_162C68 + setflag FLAG_TEMP_3 + setflag FLAG_TEMP_5 savebgm MUS_WIN_GYM - checkflag FLAG_0x844 - call_if 0, EventScript_162C6F - checkflag FLAG_0x844 - call_if 1, EventScript_162C91 - setflag FLAG_0x004 - clearflag FLAG_0x005 - setflag FLAG_0x4BC - setflag FLAG_0x004 + checkflag FLAG_SYS_CAN_LINK_WITH_RS + call_if FALSE, EventScript_162C6F + checkflag FLAG_SYS_CAN_LINK_WITH_RS + call_if TRUE, EventScript_162C91 + setflag FLAG_TEMP_4 + clearflag FLAG_TEMP_5 + setflag FLAG_DEFEATED_CHAMP + setflag FLAG_TEMP_4 msgbox gUnknown_8178F2F playbgm MUS_SLOWMASARA, 0 addobject 2 @@ -117,20 +117,20 @@ EventScript_162C68:: @ 8162C68 EventScript_162C6F:: @ 8162C6F compare_var_to_value VAR_STARTER_MON, 2 - call_if 1, EventScript_162CC5 + call_if eq, EventScript_162CC5 compare_var_to_value VAR_STARTER_MON, 1 - call_if 1, EventScript_162CD0 + call_if eq, EventScript_162CD0 compare_var_to_value VAR_STARTER_MON, 0 - call_if 1, EventScript_162CDB + call_if eq, EventScript_162CDB return EventScript_162C91:: @ 8162C91 compare_var_to_value VAR_STARTER_MON, 2 - call_if 1, EventScript_162CE6 + call_if eq, EventScript_162CE6 compare_var_to_value VAR_STARTER_MON, 1 - call_if 1, EventScript_162CF1 + call_if eq, EventScript_162CF1 compare_var_to_value VAR_STARTER_MON, 0 - call_if 1, EventScript_162CFC + call_if eq, EventScript_162CFC return EventScript_162CB3:: @ 8162CB3 @@ -142,27 +142,27 @@ EventScript_162CBC:: @ 8162CBC return EventScript_162CC5:: @ 8162CC5 - trainerbattle 3, 438, 0, Text_178E3F + trainerbattle TRAINER_BATTLE_SINGLE_NO_INTRO_TEXT, TRAINER_CHAMPION_FIRST_SQUIRTLE, 0, Text_178E3F return EventScript_162CD0:: @ 8162CD0 - trainerbattle 3, 439, 0, Text_178E3F + trainerbattle TRAINER_BATTLE_SINGLE_NO_INTRO_TEXT, TRAINER_CHAMPION_FIRST_BULBASAUR, 0, Text_178E3F return EventScript_162CDB:: @ 8162CDB - trainerbattle 3, 440, 0, Text_178E3F + trainerbattle TRAINER_BATTLE_SINGLE_NO_INTRO_TEXT, TRAINER_CHAMPION_FIRST_CHARMANDER, 0, Text_178E3F return EventScript_162CE6:: @ 8162CE6 - trainerbattle 3, 739, 0, Text_178E3F + trainerbattle TRAINER_BATTLE_SINGLE_NO_INTRO_TEXT, TRAINER_CHAMPION_REMATCH_SQUIRTLE, 0, Text_178E3F return EventScript_162CF1:: @ 8162CF1 - trainerbattle 3, 740, 0, Text_178E3F + trainerbattle TRAINER_BATTLE_SINGLE_NO_INTRO_TEXT, TRAINER_CHAMPION_REMATCH_BULBASAUR, 0, Text_178E3F return EventScript_162CFC:: @ 8162CFC - trainerbattle 3, 741, 0, Text_178E3F + trainerbattle TRAINER_BATTLE_SINGLE_NO_INTRO_TEXT, TRAINER_CHAMPION_REMATCH_CHARMANDER, 0, Text_178E3F return Movement_162D07:: @ 8162D07 diff --git a/data/maps/PokemonLeague_HallOfFame/map.json b/data/maps/PokemonLeague_HallOfFame/map.json index a2146d74b..cacd686ab 100644 --- a/data/maps/PokemonLeague_HallOfFame/map.json +++ b/data/maps/PokemonLeague_HallOfFame/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "71", + "graphics_id": "MAP_OBJ_GFX_PROF_OAK", "x": 6, "y": 4, "elevation": 3, diff --git a/data/maps/PokemonLeague_LancesRoom/map.json b/data/maps/PokemonLeague_LancesRoom/map.json index 1d962ccba..0a995986e 100644 --- a/data/maps/PokemonLeague_LancesRoom/map.json +++ b/data/maps/PokemonLeague_LancesRoom/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "74", + "graphics_id": "MAP_OBJ_GFX_LANCE", "x": 6, "y": 8, "elevation": 3, diff --git a/data/maps/PokemonLeague_LancesRoom/scripts.inc b/data/maps/PokemonLeague_LancesRoom/scripts.inc index b0a378a98..0ec0cb7e6 100644 --- a/data/maps/PokemonLeague_LancesRoom/scripts.inc +++ b/data/maps/PokemonLeague_LancesRoom/scripts.inc @@ -11,10 +11,10 @@ PokemonLeague_LancesRoom_MapScript1_162942:: @ 8162942 end PokemonLeague_LancesRoom_MapScript2_16294D:: @ 816294D - compare_var_to_value VAR_0x4068, 4 - call_if 1, EventScript_162962 - checkflag FLAG_0x4BB - call_if 1, EventScript_162968 + compare_var_to_value VAR_MAP_SCENE_POKEMON_LEAGUE, 4 + call_if eq, EventScript_162962 + checkflag FLAG_DEFEATED_LANCE + call_if TRUE, EventScript_162968 end EventScript_162962:: @ 8162962 @@ -34,19 +34,19 @@ EventScript_162978:: @ 8162978 end PokemonLeague_LancesRoom_MapScript4_16297D:: @ 816297D - map_script_2 VAR_0x4068, 3, EventScript_162987 + map_script_2 VAR_MAP_SCENE_POKEMON_LEAGUE, 3, EventScript_162987 .2byte 0 EventScript_162987:: @ 8162987 lockall applymovement 255, Movement_1629F1 waitmovement 0 - setflag FLAG_0x002 + setflag FLAG_TEMP_2 call EventScript_1629A8 playse SE_KI_GASYAN special DrawWholeMapView waitse - setvar VAR_0x4068, 4 + setvar VAR_MAP_SCENE_POKEMON_LEAGUE, 4 releaseall end @@ -101,28 +101,22 @@ Movement_1629F1:: @ 81629F1 PokemonLeague_LancesRoom_EventScript_162A14:: @ 8162A14 lock faceplayer - setvar VAR_0x8004, 12 - setvar VAR_0x8005, 2 - special UpdatePickStateFromSpecialVar8005 - checkflag FLAG_0x4BB - goto_if_eq EventScript_162AA1 - setvar VAR_0x8004, 12 - setvar VAR_0x8005, 0 - special SetFlavorTextFlagFromSpecialVars - setvar VAR_0x8004, 12 - setvar VAR_0x8005, 1 - special SetFlavorTextFlagFromSpecialVars - checkflag FLAG_0x82C - call_if 0, EventScript_162A79 - checkflag FLAG_0x82C - call_if 1, EventScript_162A82 - setflag FLAG_0x003 - setflag FLAG_0x005 - checkflag FLAG_0x844 - call_if 0, EventScript_162A8B - checkflag FLAG_0x844 - call_if 1, EventScript_162A96 - clearflag FLAG_0x005 + famechecker FAMECHECKER_LANCE, FCPICKSTATE_COLORED, UpdatePickStateFromSpecialVar8005 + checkflag FLAG_DEFEATED_LANCE + goto_if TRUE, EventScript_162AA1 + famechecker FAMECHECKER_LANCE, 0 + famechecker FAMECHECKER_LANCE, 1 + checkflag FLAG_SYS_GAME_CLEAR + call_if FALSE, EventScript_162A79 + checkflag FLAG_SYS_GAME_CLEAR + call_if TRUE, EventScript_162A82 + setflag FLAG_TEMP_3 + setflag FLAG_TEMP_5 + checkflag FLAG_SYS_CAN_LINK_WITH_RS + call_if FALSE, EventScript_162A8B + checkflag FLAG_SYS_CAN_LINK_WITH_RS + call_if TRUE, EventScript_162A96 + clearflag FLAG_TEMP_5 goto EventScript_162AAB EventScript_162A78:: @ 8162A78 @@ -137,11 +131,11 @@ EventScript_162A82:: @ 8162A82 return EventScript_162A8B:: @ 8162A8B - trainerbattle 3, 413, 0, Text_178A15 + trainerbattle TRAINER_BATTLE_SINGLE_NO_INTRO_TEXT, TRAINER_ELITE_FOUR_LANCE, 0, Text_178A15 return EventScript_162A96:: @ 8162A96 - trainerbattle 3, 738, 0, Text_178A15 + trainerbattle TRAINER_BATTLE_SINGLE_NO_INTRO_TEXT, TRAINER_ELITE_FOUR_LANCE_2, 0, Text_178A15 return EventScript_162AA1:: @ 8162AA1 @@ -152,7 +146,7 @@ EventScript_162AA1:: @ 8162AA1 EventScript_162AAB:: @ 8162AAB setvar VAR_0x8004, 0 special sub_8113530 - setflag FLAG_0x4BB + setflag FLAG_DEFEATED_LANCE call EventScript_1A7563 msgbox gUnknown_8178A52 closemessage diff --git a/data/maps/PokemonLeague_LoreleisRoom/map.json b/data/maps/PokemonLeague_LoreleisRoom/map.json index 6435fd40f..1a8512901 100644 --- a/data/maps/PokemonLeague_LoreleisRoom/map.json +++ b/data/maps/PokemonLeague_LoreleisRoom/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "77", + "graphics_id": "MAP_OBJ_GFX_LORELEI", "x": 6, "y": 5, "elevation": 3, diff --git a/data/maps/PokemonLeague_LoreleisRoom/scripts.inc b/data/maps/PokemonLeague_LoreleisRoom/scripts.inc index 60e2b5086..df1cf1579 100644 --- a/data/maps/PokemonLeague_LoreleisRoom/scripts.inc +++ b/data/maps/PokemonLeague_LoreleisRoom/scripts.inc @@ -12,10 +12,10 @@ PokemonLeague_LoreleisRoom_MapScript1_162586:: @ 8162586 end PokemonLeague_LoreleisRoom_MapScript2_162591:: @ 8162591 - checkflag FLAG_0x4B8 - call_if 1, EventScript_1625AC - compare_var_to_value VAR_0x4068, 1 - call_if 1, EventScript_1625A6 + checkflag FLAG_DEFEATED_LORELEI + call_if TRUE, EventScript_1625AC + compare_var_to_value VAR_MAP_SCENE_POKEMON_LEAGUE, 1 + call_if eq, EventScript_1625A6 end EventScript_1625A6:: @ 81625A6 @@ -39,41 +39,35 @@ EventScript_1625C0:: @ 81625C0 end PokemonLeague_LoreleisRoom_MapScript5_1625C5:: @ 81625C5 - map_script_2 VAR_0x4068, 0, EventScript_1625CF + map_script_2 VAR_MAP_SCENE_POKEMON_LEAGUE, 0, EventScript_1625CF .2byte 0 EventScript_1625CF:: @ 81625CF lockall call EventScript_1A751F - setvar VAR_0x4068, 1 + setvar VAR_MAP_SCENE_POKEMON_LEAGUE, 1 releaseall end PokemonLeague_LoreleisRoom_EventScript_1625DC:: @ 81625DC lock faceplayer - setvar VAR_0x8004, 9 - setvar VAR_0x8005, 2 - special UpdatePickStateFromSpecialVar8005 - checkflag FLAG_0x4B8 - goto_if_eq EventScript_162669 - setvar VAR_0x8004, 9 - setvar VAR_0x8005, 0 - special SetFlavorTextFlagFromSpecialVars - setvar VAR_0x8004, 9 - setvar VAR_0x8005, 1 - special SetFlavorTextFlagFromSpecialVars - checkflag FLAG_0x844 - call_if 0, EventScript_162641 - checkflag FLAG_0x844 - call_if 1, EventScript_16264A - setflag FLAG_0x003 - setflag FLAG_0x005 - checkflag FLAG_0x844 - call_if 0, EventScript_162653 - checkflag FLAG_0x844 - call_if 1, EventScript_16265E - clearflag FLAG_0x005 + famechecker FAMECHECKER_LORELEI, FCPICKSTATE_COLORED, UpdatePickStateFromSpecialVar8005 + checkflag FLAG_DEFEATED_LORELEI + goto_if TRUE, EventScript_162669 + famechecker FAMECHECKER_LORELEI, 0 + famechecker FAMECHECKER_LORELEI, 1 + checkflag FLAG_SYS_CAN_LINK_WITH_RS + call_if FALSE, EventScript_162641 + checkflag FLAG_SYS_CAN_LINK_WITH_RS + call_if TRUE, EventScript_16264A + setflag FLAG_TEMP_3 + setflag FLAG_TEMP_5 + checkflag FLAG_SYS_CAN_LINK_WITH_RS + call_if FALSE, EventScript_162653 + checkflag FLAG_SYS_CAN_LINK_WITH_RS + call_if TRUE, EventScript_16265E + clearflag FLAG_TEMP_5 goto EventScript_162673 EventScript_162640:: @ 8162640 @@ -88,11 +82,11 @@ EventScript_16264A:: @ 816264A return EventScript_162653:: @ 8162653 - trainerbattle 3, 410, 0, Text_178191 + trainerbattle TRAINER_BATTLE_SINGLE_NO_INTRO_TEXT, TRAINER_ELITE_FOUR_LORELEI, 0, Text_178191 return EventScript_16265E:: @ 816265E - trainerbattle 3, 735, 0, Text_178191 + trainerbattle TRAINER_BATTLE_SINGLE_NO_INTRO_TEXT, TRAINER_ELITE_FOUR_LORELEI_2, 0, Text_178191 return EventScript_162669:: @ 8162669 @@ -101,7 +95,7 @@ EventScript_162669:: @ 8162669 end EventScript_162673:: @ 8162673 - setflag FLAG_0x4B8 + setflag FLAG_DEFEATED_LORELEI call EventScript_1A7506 msgbox gUnknown_81781B0 release diff --git a/data/maps/PokemonMansion_1F/map.json b/data/maps/PokemonMansion_1F/map.json index 8c28b8d4a..3c015536e 100644 --- a/data/maps/PokemonMansion_1F/map.json +++ b/data/maps/PokemonMansion_1F/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "55", + "graphics_id": "MAP_OBJ_GFX_SCIENTIST", "x": 22, "y": 24, "elevation": 3, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 29, "y": 32, "elevation": 3, @@ -37,10 +37,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "PokemonMansion_1F_EventScript_1BE95D", - "flag": "415" + "flag": "FLAG_HIDE_POKEMON_MANSION_1F_CARBOS" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 22, "y": 6, "elevation": 3, @@ -50,10 +50,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "PokemonMansion_1F_EventScript_1BE96A", - "flag": "416" + "flag": "FLAG_HIDE_POKEMON_MANSION_1F_ESCAPE_ROPE" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 27, "y": 15, "elevation": 3, @@ -63,10 +63,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "PokemonMansion_1F_EventScript_1BEB65", - "flag": "458" + "flag": "FLAG_HIDE_POKEMON_MANSION_1F_PROTEIN" }, { - "graphics_id": "18", + "graphics_id": "MAP_OBJ_GFX_YOUNGSTER", "x": 8, "y": 8, "elevation": 3, @@ -166,8 +166,9 @@ "y": 21, "elevation": 0, "item": "ITEM_MOON_STONE", - "flag": "31", - "unknown": 1 + "flag": "HIDDEN_ITEM_POKEMON_MANSION_1F_MOON_STONE", + "quantity": 1, + "underfoot": false } ] } diff --git a/data/maps/PokemonMansion_1F/scripts.inc b/data/maps/PokemonMansion_1F/scripts.inc index 04a15a5e5..ceb59874a 100644 --- a/data/maps/PokemonMansion_1F/scripts.inc +++ b/data/maps/PokemonMansion_1F/scripts.inc @@ -4,8 +4,8 @@ PokemonMansion_1F_MapScripts:: @ 81621F9 .byte 0 PokemonMansion_1F_MapScript1_162204:: @ 8162204 - checkflag FLAG_0x26C - call_if 1, EventScript_1A7B7A + checkflag FLAG_POKEMON_MANSION_SWITCH_STATE + call_if TRUE, EventScript_1A7B7A end PokemonMansion_1F_MapScript2_16220E:: @ 816220E @@ -23,11 +23,11 @@ PokemonMansion_1F_EventScript_162212:: @ 8162212 end PokemonMansion_1F_EventScript_162226:: @ 8162226 - trainerbattle 0, 335, 0, Text_177364, Text_177391 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_SCIENTIST_TED, 0, Text_177364, Text_177391 msgbox gUnknown_8177397, 6 end PokemonMansion_1F_EventScript_16223D:: @ 816223D - trainerbattle 0, 534, 0, Text_1773C6, Text_1773FD + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_YOUNGSTER_JOHNSON, 0, Text_1773C6, Text_1773FD msgbox gUnknown_8177418, 6 end diff --git a/data/maps/PokemonMansion_2F/map.json b/data/maps/PokemonMansion_2F/map.json index 6a85dbb1e..4a618c86d 100644 --- a/data/maps/PokemonMansion_2F/map.json +++ b/data/maps/PokemonMansion_2F/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "52", + "graphics_id": "MAP_OBJ_GFX_SUPER_NERD", "x": 5, "y": 23, "elevation": 3, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 36, "y": 8, "elevation": 3, @@ -37,10 +37,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "PokemonMansion_2F_EventScript_1BE977", - "flag": "417" + "flag": "FLAG_HIDE_POKEMON_MANSION_2F_CALCIUM" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 18, "y": 23, "elevation": 3, @@ -50,10 +50,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "PokemonMansion_2F_EventScript_1BEB72", - "flag": "459" + "flag": "FLAG_HIDE_POKEMON_MANSION_2F_ZINC" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 35, "y": 17, "elevation": 3, @@ -63,7 +63,7 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "PokemonMansion_2F_EventScript_1BEB7F", - "flag": "460" + "flag": "FLAG_HIDE_POKEMON_MANSION_2F_HP_UP" } ], "warp_events": [ diff --git a/data/maps/PokemonMansion_2F/scripts.inc b/data/maps/PokemonMansion_2F/scripts.inc index b9f052a4f..c0bdae1e9 100644 --- a/data/maps/PokemonMansion_2F/scripts.inc +++ b/data/maps/PokemonMansion_2F/scripts.inc @@ -3,8 +3,8 @@ PokemonMansion_2F_MapScripts:: @ 8162254 .byte 0 PokemonMansion_2F_MapScript1_16225A:: @ 816225A - checkflag FLAG_0x26C - call_if 1, EventScript_1A7D3E + checkflag FLAG_POKEMON_MANSION_SWITCH_STATE + call_if TRUE, EventScript_1A7D3E end PokemonMansion_2F_EventScript_162264:: @ 8162264 @@ -26,6 +26,6 @@ PokemonMansion_2F_EventScript_162281:: @ 8162281 end PokemonMansion_2F_EventScript_16228A:: @ 816228A - trainerbattle 0, 216, 0, Text_177498, Text_1774CB + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_BURGLAR_ARNIE, 0, Text_177498, Text_1774CB msgbox gUnknown_81774E3, 6 end diff --git a/data/maps/PokemonMansion_3F/map.json b/data/maps/PokemonMansion_3F/map.json index c693a9d7a..b76f6bb0b 100644 --- a/data/maps/PokemonMansion_3F/map.json +++ b/data/maps/PokemonMansion_3F/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "52", + "graphics_id": "MAP_OBJ_GFX_SUPER_NERD", "x": 7, "y": 13, "elevation": 3, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "55", + "graphics_id": "MAP_OBJ_GFX_SCIENTIST", "x": 22, "y": 13, "elevation": 3, @@ -40,7 +40,7 @@ "flag": "0" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 9, "y": 19, "elevation": 3, @@ -50,10 +50,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "PokemonMansion_3F_EventScript_1BE984", - "flag": "418" + "flag": "FLAG_HIDE_POKEMON_MANSION_3F_MAX_POTION" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 32, "y": 6, "elevation": 3, @@ -63,7 +63,7 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "PokemonMansion_3F_EventScript_1BE991", - "flag": "419" + "flag": "FLAG_HIDE_POKEMON_MANSION_3F_IRON" } ], "warp_events": [ @@ -146,8 +146,9 @@ "y": 13, "elevation": 3, "item": "ITEM_RARE_CANDY", - "flag": "32", - "unknown": 1 + "flag": "HIDDEN_ITEM_POKEMON_MANSION_3F_RARE_CANDY", + "quantity": 1, + "underfoot": false } ] } diff --git a/data/maps/PokemonMansion_3F/scripts.inc b/data/maps/PokemonMansion_3F/scripts.inc index 4fb9e8bf0..6546b024e 100644 --- a/data/maps/PokemonMansion_3F/scripts.inc +++ b/data/maps/PokemonMansion_3F/scripts.inc @@ -3,8 +3,8 @@ PokemonMansion_3F_MapScripts:: @ 81622A1 .byte 0 PokemonMansion_3F_MapScript1_1622A7:: @ 81622A7 - checkflag FLAG_0x26C - call_if 1, EventScript_1A7E72 + checkflag FLAG_POKEMON_MANSION_SWITCH_STATE + call_if TRUE, EventScript_1A7E72 end PokemonMansion_3F_EventScript_1622B1:: @ 81622B1 @@ -22,11 +22,11 @@ PokemonMansion_3F_EventScript_1622C5:: @ 81622C5 end PokemonMansion_3F_EventScript_1622CE:: @ 81622CE - trainerbattle 0, 218, 0, Text_1775E7, Text_177602 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_BURGLAR_SIMON, 0, Text_1775E7, Text_177602 msgbox gUnknown_8177608, 6 end PokemonMansion_3F_EventScript_1622E5:: @ 81622E5 - trainerbattle 0, 346, 0, Text_177628, Text_177643 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_SCIENTIST_BRAYDON, 0, Text_177628, Text_177643 msgbox gUnknown_8177657, 6 end diff --git a/data/maps/PokemonMansion_B1F/map.json b/data/maps/PokemonMansion_B1F/map.json index 15627f664..cbbc3f9a2 100644 --- a/data/maps/PokemonMansion_B1F/map.json +++ b/data/maps/PokemonMansion_B1F/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 6, "y": 21, "elevation": 3, @@ -24,10 +24,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "PokemonMansion_B1F_EventScript_1BE9B8", - "flag": "423" + "flag": "FLAG_HIDE_POKEMON_MANSION_B1F_TM22" }, { - "graphics_id": "52", + "graphics_id": "MAP_OBJ_GFX_SUPER_NERD", "x": 20, "y": 25, "elevation": 3, @@ -40,7 +40,7 @@ "flag": "0" }, { - "graphics_id": "55", + "graphics_id": "MAP_OBJ_GFX_SCIENTIST", "x": 34, "y": 13, "elevation": 3, @@ -53,7 +53,7 @@ "flag": "0" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 23, "y": 4, "elevation": 3, @@ -63,10 +63,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "PokemonMansion_B1F_EventScript_1BE99E", - "flag": "420" + "flag": "FLAG_HIDE_POKEMON_MANSION_B1F_TM14" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 2, "y": 29, "elevation": 3, @@ -76,10 +76,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "PokemonMansion_B1F_EventScript_1BE9AB", - "flag": "421" + "flag": "FLAG_HIDE_POKEMON_MANSION_B1F_FULL_RESTORE" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 5, "y": 7, "elevation": 3, @@ -89,7 +89,7 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "PokemonMansion_B1F_EventScript_1BE9C5", - "flag": "424" + "flag": "FLAG_HIDE_POKEMON_MANSION_B1F_SECRET_KEY" } ], "warp_events": [ @@ -130,8 +130,9 @@ "y": 5, "elevation": 3, "item": "ITEM_ELIXIR", - "flag": "33", - "unknown": 1 + "flag": "HIDDEN_ITEM_POKEMON_MANSION_B1F_ELIXIR", + "quantity": 1, + "underfoot": false } ] } diff --git a/data/maps/PokemonMansion_B1F/scripts.inc b/data/maps/PokemonMansion_B1F/scripts.inc index 0997ae9f9..3baba4c34 100644 --- a/data/maps/PokemonMansion_B1F/scripts.inc +++ b/data/maps/PokemonMansion_B1F/scripts.inc @@ -3,8 +3,8 @@ PokemonMansion_B1F_MapScripts:: @ 81622FC .byte 0 PokemonMansion_B1F_MapScript1_162302:: @ 8162302 - checkflag FLAG_0x26C - call_if 1, EventScript_1A7F4C + checkflag FLAG_POKEMON_MANSION_SWITCH_STATE + call_if TRUE, EventScript_1A7F4C end PokemonMansion_B1F_EventScript_16230C:: @ 816230C @@ -22,11 +22,11 @@ PokemonMansion_B1F_EventScript_162320:: @ 8162320 end PokemonMansion_B1F_EventScript_162329:: @ 8162329 - trainerbattle 0, 219, 0, Text_1776C0, Text_1776D7 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_BURGLAR_LEWIS, 0, Text_1776C0, Text_1776D7 msgbox gUnknown_81776DE, 6 end PokemonMansion_B1F_EventScript_162340:: @ 8162340 - trainerbattle 0, 347, 0, Text_177720, Text_177757 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_SCIENTIST_IVAN, 0, Text_177720, Text_177757 msgbox gUnknown_817776A, 6 end diff --git a/data/maps/PokemonTower_1F/map.json b/data/maps/PokemonTower_1F/map.json index ad49dce83..5185ebec7 100644 --- a/data/maps/PokemonTower_1F/map.json +++ b/data/maps/PokemonTower_1F/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "48", + "graphics_id": "MAP_OBJ_GFX_WORKER_F", "x": 18, "y": 13, "elevation": 3, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "58", + "graphics_id": "MAP_OBJ_GFX_CHANNELER", "x": 18, "y": 7, "elevation": 3, @@ -40,7 +40,7 @@ "flag": "0" }, { - "graphics_id": "28", + "graphics_id": "MAP_OBJ_GFX_WOMAN_2", "x": 15, "y": 6, "elevation": 3, @@ -53,7 +53,7 @@ "flag": "0" }, { - "graphics_id": "31", + "graphics_id": "MAP_OBJ_GFX_WOMAN_3", "x": 7, "y": 8, "elevation": 3, @@ -66,7 +66,7 @@ "flag": "0" }, { - "graphics_id": "30", + "graphics_id": "MAP_OBJ_GFX_BALDING_MAN", "x": 8, "y": 12, "elevation": 3, diff --git a/data/maps/PokemonTower_1F/scripts.inc b/data/maps/PokemonTower_1F/scripts.inc index c86280b74..e98796864 100644 --- a/data/maps/PokemonTower_1F/scripts.inc +++ b/data/maps/PokemonTower_1F/scripts.inc @@ -23,7 +23,7 @@ PokemonTower_1F_EventScript_16325A:: @ 816325A faceplayer checkplayergender compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_163272 + goto_if eq, EventScript_163272 msgbox gUnknown_8179BFC release end diff --git a/data/maps/PokemonTower_2F/map.json b/data/maps/PokemonTower_2F/map.json index 4aea2b3b7..a155ee492 100644 --- a/data/maps/PokemonTower_2F/map.json +++ b/data/maps/PokemonTower_2F/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "72", + "graphics_id": "MAP_OBJ_GFX_BLUE", "x": 16, "y": 5, "elevation": 3, @@ -24,10 +24,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "0x0", - "flag": "81" + "flag": "FLAG_HIDE_TOWER_RIVAL" }, { - "graphics_id": "58", + "graphics_id": "MAP_OBJ_GFX_CHANNELER", "x": 3, "y": 7, "elevation": 0, @@ -62,7 +62,7 @@ "x": 17, "y": 5, "elevation": 3, - "var": "VAR_0x405D", + "var": "VAR_MAP_SCENE_POKEMON_TOWER_2F", "var_value": 0, "script": "PokemonTower_2F_EventScript_16328F" }, @@ -71,7 +71,7 @@ "x": 16, "y": 6, "elevation": 3, - "var": "VAR_0x405D", + "var": "VAR_MAP_SCENE_POKEMON_TOWER_2F", "var_value": 0, "script": "PokemonTower_2F_EventScript_16329B" } diff --git a/data/maps/PokemonTower_2F/scripts.inc b/data/maps/PokemonTower_2F/scripts.inc index 929c24f60..ff5fd8b9b 100644 --- a/data/maps/PokemonTower_2F/scripts.inc +++ b/data/maps/PokemonTower_2F/scripts.inc @@ -21,9 +21,9 @@ EventScript_1632A7:: @ 81632A7 textcolor 0 playbgm MUS_RIVAL1, 0 compare_var_to_value VAR_0x4001, 0 - call_if 1, EventScript_163339 + call_if eq, EventScript_163339 compare_var_to_value VAR_0x4001, 1 - call_if 1, EventScript_16334B + call_if eq, EventScript_16334B applymovement 1, Movement_1A75DB waitmovement 0 applymovement 1, Movement_1A75DD @@ -31,23 +31,23 @@ EventScript_1632A7:: @ 81632A7 msgbox gUnknown_8179CFF setvar VAR_LAST_TALKED, 1 compare_var_to_value VAR_STARTER_MON, 2 - call_if 1, EventScript_16335D + call_if eq, EventScript_16335D compare_var_to_value VAR_STARTER_MON, 1 - call_if 1, EventScript_163368 + call_if eq, EventScript_163368 compare_var_to_value VAR_STARTER_MON, 0 - call_if 1, EventScript_163373 + call_if eq, EventScript_163373 msgbox gUnknown_8179DD4 closemessage playbgm MUS_RIVAL2, 0 compare_var_to_value VAR_0x4001, 0 - call_if 1, EventScript_16337E + call_if eq, EventScript_16337E compare_var_to_value VAR_0x4001, 1 - call_if 1, EventScript_163389 + call_if eq, EventScript_163389 playse SE_KAIDAN delay 25 fadedefaultbgm removeobject 1 - setvar VAR_0x405D, 1 + setvar VAR_MAP_SCENE_POKEMON_TOWER_2F, 1 releaseall end @@ -64,15 +64,15 @@ EventScript_16334B:: @ 816334B return EventScript_16335D:: @ 816335D - trainerbattle 3, 429, 0, Text_179D73 + trainerbattle TRAINER_BATTLE_SINGLE_NO_INTRO_TEXT, TRAINER_RIVAL_POKENON_TOWER_SQUIRTLE, 0, Text_179D73 return EventScript_163368:: @ 8163368 - trainerbattle 3, 430, 0, Text_179D73 + trainerbattle TRAINER_BATTLE_SINGLE_NO_INTRO_TEXT, TRAINER_RIVAL_POKENON_TOWER_BULBASAUR, 0, Text_179D73 return EventScript_163373:: @ 8163373 - trainerbattle 3, 431, 0, Text_179D73 + trainerbattle TRAINER_BATTLE_SINGLE_NO_INTRO_TEXT, TRAINER_RIVAL_POKENON_TOWER_CHARMANDER, 0, Text_179D73 return EventScript_16337E:: @ 816337E diff --git a/data/maps/PokemonTower_3F/map.json b/data/maps/PokemonTower_3F/map.json index dcba6c23f..49ca729a0 100644 --- a/data/maps/PokemonTower_3F/map.json +++ b/data/maps/PokemonTower_3F/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "58", + "graphics_id": "MAP_OBJ_GFX_CHANNELER", "x": 10, "y": 14, "elevation": 3, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "58", + "graphics_id": "MAP_OBJ_GFX_CHANNELER", "x": 9, "y": 9, "elevation": 3, @@ -40,7 +40,7 @@ "flag": "0" }, { - "graphics_id": "58", + "graphics_id": "MAP_OBJ_GFX_CHANNELER", "x": 12, "y": 4, "elevation": 3, @@ -53,7 +53,7 @@ "flag": "0" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 13, "y": 2, "elevation": 3, @@ -63,7 +63,7 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "PokemonTower_3F_EventScript_1BE755", - "flag": "375" + "flag": "FLAG_HIDE_POKEMON_TOWER_3F_ESCAPE_ROPE" } ], "warp_events": [ diff --git a/data/maps/PokemonTower_3F/scripts.inc b/data/maps/PokemonTower_3F/scripts.inc index 30591aba5..653a4e434 100644 --- a/data/maps/PokemonTower_3F/scripts.inc +++ b/data/maps/PokemonTower_3F/scripts.inc @@ -2,16 +2,16 @@ PokemonTower_3F_MapScripts:: @ 81633A6 .byte 0 PokemonTower_3F_EventScript_1633A7:: @ 81633A7 - trainerbattle 0, 441, 0, Text_179FA0, Text_179FBC + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_CHANNELER_PATRICIA, 0, Text_179FA0, Text_179FBC msgbox gUnknown_8179FD3, 6 end PokemonTower_3F_EventScript_1633BE:: @ 81633BE - trainerbattle 0, 442, 0, Text_179F62, Text_179F72 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_CHANNELER_CARLY, 0, Text_179F62, Text_179F72 msgbox gUnknown_8179F88, 6 end PokemonTower_3F_EventScript_1633D5:: @ 81633D5 - trainerbattle 0, 443, 0, Text_179F09, Text_179F21 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_CHANNELER_HOPE, 0, Text_179F09, Text_179F21 msgbox gUnknown_8179F31, 6 end diff --git a/data/maps/PokemonTower_4F/map.json b/data/maps/PokemonTower_4F/map.json index b567872bf..94832e3da 100644 --- a/data/maps/PokemonTower_4F/map.json +++ b/data/maps/PokemonTower_4F/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "58", + "graphics_id": "MAP_OBJ_GFX_CHANNELER", "x": 17, "y": 7, "elevation": 3, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "58", + "graphics_id": "MAP_OBJ_GFX_CHANNELER", "x": 15, "y": 13, "elevation": 3, @@ -40,7 +40,7 @@ "flag": "0" }, { - "graphics_id": "58", + "graphics_id": "MAP_OBJ_GFX_CHANNELER", "x": 4, "y": 12, "elevation": 3, @@ -53,7 +53,7 @@ "flag": "0" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 12, "y": 11, "elevation": 3, @@ -63,10 +63,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "PokemonTower_4F_EventScript_1BE762", - "flag": "376" + "flag": "FLAG_HIDE_POKEMON_TOWER_4F_ELIXIR" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 8, "y": 11, "elevation": 3, @@ -76,10 +76,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "PokemonTower_4F_EventScript_1BE76F", - "flag": "377" + "flag": "FLAG_HIDE_POKEMON_TOWER_4F_AWAKENING" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 11, "y": 16, "elevation": 3, @@ -89,7 +89,7 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "PokemonTower_4F_EventScript_1BE77C", - "flag": "378" + "flag": "FLAG_HIDE_POKEMON_TOWER_4F_GREAT_BALL" } ], "warp_events": [ diff --git a/data/maps/PokemonTower_4F/scripts.inc b/data/maps/PokemonTower_4F/scripts.inc index 0837c5b9b..7aa23fbe8 100644 --- a/data/maps/PokemonTower_4F/scripts.inc +++ b/data/maps/PokemonTower_4F/scripts.inc @@ -2,16 +2,16 @@ PokemonTower_4F_MapScripts:: @ 81633EC .byte 0 PokemonTower_4F_EventScript_1633ED:: @ 81633ED - trainerbattle 0, 444, 0, Text_17A004, Text_17A017 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_CHANNELER_PAULA, 0, Text_17A004, Text_17A017 msgbox gUnknown_817A02B, 6 end PokemonTower_4F_EventScript_163404:: @ 8163404 - trainerbattle 0, 445, 0, Text_17A046, Text_17A061 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_CHANNELER_LAUREL, 0, Text_17A046, Text_17A061 msgbox gUnknown_817A067, 6 end PokemonTower_4F_EventScript_16341B:: @ 816341B - trainerbattle 0, 446, 0, Text_17A096, Text_17A0AB + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_CHANNELER_JODY, 0, Text_17A096, Text_17A0AB msgbox gUnknown_817A0BB, 6 end diff --git a/data/maps/PokemonTower_5F/map.json b/data/maps/PokemonTower_5F/map.json index f8fb23938..7f06f059d 100644 --- a/data/maps/PokemonTower_5F/map.json +++ b/data/maps/PokemonTower_5F/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "58", + "graphics_id": "MAP_OBJ_GFX_CHANNELER", "x": 11, "y": 4, "elevation": 3, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "58", + "graphics_id": "MAP_OBJ_GFX_CHANNELER", "x": 19, "y": 7, "elevation": 3, @@ -40,7 +40,7 @@ "flag": "0" }, { - "graphics_id": "58", + "graphics_id": "MAP_OBJ_GFX_CHANNELER", "x": 7, "y": 12, "elevation": 3, @@ -53,7 +53,7 @@ "flag": "0" }, { - "graphics_id": "58", + "graphics_id": "MAP_OBJ_GFX_CHANNELER", "x": 11, "y": 16, "elevation": 3, @@ -66,7 +66,7 @@ "flag": "0" }, { - "graphics_id": "58", + "graphics_id": "MAP_OBJ_GFX_CHANNELER", "x": 12, "y": 8, "elevation": 3, @@ -79,7 +79,7 @@ "flag": "0" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 6, "y": 16, "elevation": 3, @@ -89,10 +89,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "PokemonTower_5F_EventScript_1BE789", - "flag": "379" + "flag": "FLAG_HIDE_POKEMON_TOWER_5F_NUGGET" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 11, "y": 9, "elevation": 3, @@ -102,7 +102,7 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "PokemonTower_5F_EventScript_1BEBB3", - "flag": "464" + "flag": "FLAG_HIDE_POKEMON_TOWER_5F_CLEANSE_TAG" } ], "warp_events": [ @@ -283,8 +283,9 @@ "y": 3, "elevation": 3, "item": "ITEM_BIG_MUSHROOM", - "flag": "14", - "unknown": 1 + "flag": "HIDDEN_ITEM_POKEMON_TOWER_5F_BIG_MUSHROOM", + "quantity": 1, + "underfoot": false } ] } diff --git a/data/maps/PokemonTower_5F/scripts.inc b/data/maps/PokemonTower_5F/scripts.inc index 67c6b27f4..85517e241 100644 --- a/data/maps/PokemonTower_5F/scripts.inc +++ b/data/maps/PokemonTower_5F/scripts.inc @@ -22,21 +22,21 @@ PokemonTower_5F_EventScript_163453:: @ 8163453 end PokemonTower_5F_EventScript_16345B:: @ 816345B - trainerbattle 0, 447, 0, Text_17A11F, Text_17A132 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_CHANNELER_TAMMY, 0, Text_17A11F, Text_17A132 msgbox gUnknown_817A138, 6 end PokemonTower_5F_EventScript_163472:: @ 8163472 - trainerbattle 0, 448, 0, Text_17A150, Text_17A164 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_CHANNELER_RUTH, 0, Text_17A150, Text_17A164 msgbox gUnknown_817A176, 6 end PokemonTower_5F_EventScript_163489:: @ 8163489 - trainerbattle 0, 449, 0, Text_17A187, Text_17A190 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_CHANNELER_KARINA, 0, Text_17A187, Text_17A190 msgbox gUnknown_817A194, 6 end PokemonTower_5F_EventScript_1634A0:: @ 81634A0 - trainerbattle 0, 450, 0, Text_17A1AA, Text_17A1B7 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_CHANNELER_JANAE, 0, Text_17A1AA, Text_17A1B7 msgbox gUnknown_817A1BD, 6 end diff --git a/data/maps/PokemonTower_6F/map.json b/data/maps/PokemonTower_6F/map.json index b331bed20..4f1934e2c 100644 --- a/data/maps/PokemonTower_6F/map.json +++ b/data/maps/PokemonTower_6F/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "58", + "graphics_id": "MAP_OBJ_GFX_CHANNELER", "x": 13, "y": 10, "elevation": 3, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "58", + "graphics_id": "MAP_OBJ_GFX_CHANNELER", "x": 18, "y": 6, "elevation": 3, @@ -40,7 +40,7 @@ "flag": "0" }, { - "graphics_id": "58", + "graphics_id": "MAP_OBJ_GFX_CHANNELER", "x": 9, "y": 6, "elevation": 3, @@ -53,7 +53,7 @@ "flag": "0" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 5, "y": 15, "elevation": 3, @@ -63,10 +63,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "PokemonTower_6F_EventScript_1BE796", - "flag": "380" + "flag": "FLAG_HIDE_POKEMON_TOWER_6F_RARE_CANDY" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 15, "y": 15, "elevation": 3, @@ -76,7 +76,7 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "PokemonTower_6F_EventScript_1BE7A3", - "flag": "381" + "flag": "FLAG_HIDE_POKEMON_TOWER_6F_X_ACCURACY" } ], "warp_events": [ @@ -101,7 +101,7 @@ "x": 11, "y": 15, "elevation": 3, - "var": "VAR_0x4059", + "var": "VAR_MAP_SCENE_POKEMON_TOWER_6F", "var_value": 0, "script": "PokemonTower_6F_EventScript_1634B8" }, @@ -110,7 +110,7 @@ "x": 12, "y": 16, "elevation": 3, - "var": "VAR_0x4059", + "var": "VAR_MAP_SCENE_POKEMON_TOWER_6F", "var_value": 0, "script": "PokemonTower_6F_EventScript_1634B8" } diff --git a/data/maps/PokemonTower_6F/scripts.inc b/data/maps/PokemonTower_6F/scripts.inc index dd2bdff80..1f889c052 100644 --- a/data/maps/PokemonTower_6F/scripts.inc +++ b/data/maps/PokemonTower_6F/scripts.inc @@ -7,13 +7,13 @@ PokemonTower_6F_EventScript_1634B8:: @ 81634B8 msgbox gUnknown_817A2F8 special sub_8110AB4 compare_var_to_value VAR_RESULT, 2 - goto_if_eq EventScript_1A7AE0 + goto_if eq, EventScript_1A7AE0 setwildbattle SPECIES_MAROWAK, 30, ITEM_NONE - special sub_807F904 + special ScrSpecial_StartMarowakBattle waitstate special sub_8112364 compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_1634F5 + goto_if eq, EventScript_1634F5 applymovement 255, Movement_163512 waitmovement 0 releaseall @@ -27,7 +27,7 @@ EventScript_1634F5:: @ 81634F5 waitbuttonpress waitmoncry msgbox gUnknown_817A342 - setvar VAR_0x4059, 1 + setvar VAR_MAP_SCENE_POKEMON_TOWER_6F, 1 releaseall end @@ -36,16 +36,16 @@ Movement_163512:: @ 8163512 step_end PokemonTower_6F_EventScript_163514:: @ 8163514 - trainerbattle 0, 451, 0, Text_17A243, Text_17A253 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_CHANNELER_ANGELICA, 0, Text_17A243, Text_17A253 msgbox gUnknown_817A25A, 6 end PokemonTower_6F_EventScript_16352B:: @ 816352B - trainerbattle 0, 452, 0, Text_17A272, Text_17A27F + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_CHANNELER_EMILIA, 0, Text_17A272, Text_17A27F msgbox gUnknown_817A293, 6 end PokemonTower_6F_EventScript_163542:: @ 8163542 - trainerbattle 0, 453, 0, Text_17A2C8, Text_17A2DC + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_CHANNELER_JENNIFER, 0, Text_17A2C8, Text_17A2DC msgbox gUnknown_817A2E2, 6 end diff --git a/data/maps/PokemonTower_7F/map.json b/data/maps/PokemonTower_7F/map.json index 3f2fd739d..bb49bbecd 100644 --- a/data/maps/PokemonTower_7F/map.json +++ b/data/maps/PokemonTower_7F/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "78", + "graphics_id": "MAP_OBJ_GFX_MR_FUJI", "x": 11, "y": 4, "elevation": 3, @@ -24,10 +24,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "PokemonTower_7F_EventScript_16355A", - "flag": "52" + "flag": "FLAG_HIDE_TOWER_FUJI" }, { - "graphics_id": "49", + "graphics_id": "MAP_OBJ_GFX_ROCKET_M", "x": 9, "y": 10, "elevation": 3, @@ -37,10 +37,10 @@ "trainer_type": 1, "trainer_sight_or_berry_tree_id": 4, "script": "PokemonTower_7F_EventScript_163586", - "flag": "94" + "flag": "FLAG_HIDE_TOWER_ROCKET_1" }, { - "graphics_id": "49", + "graphics_id": "MAP_OBJ_GFX_ROCKET_M", "x": 13, "y": 8, "elevation": 3, @@ -50,10 +50,10 @@ "trainer_type": 1, "trainer_sight_or_berry_tree_id": 4, "script": "PokemonTower_7F_EventScript_16363D", - "flag": "131" + "flag": "FLAG_HIDE_TOWER_ROCKET_2" }, { - "graphics_id": "49", + "graphics_id": "MAP_OBJ_GFX_ROCKET_M", "x": 9, "y": 6, "elevation": 3, @@ -63,7 +63,7 @@ "trainer_type": 1, "trainer_sight_or_berry_tree_id": 4, "script": "PokemonTower_7F_EventScript_1636D6", - "flag": "132" + "flag": "FLAG_HIDE_TOWER_ROCKET_3" } ], "warp_events": [ @@ -83,8 +83,9 @@ "y": 4, "elevation": 3, "item": "ITEM_SOOTHE_BELL", - "flag": "159", - "unknown": 129 + "flag": "HIDDEN_ITEM_POKEMON_TOWER_7F_SOOTHE_BELL", + "quantity": 1, + "underfoot": true } ] } diff --git a/data/maps/PokemonTower_7F/scripts.inc b/data/maps/PokemonTower_7F/scripts.inc index 7f319287e..f39d15c7e 100644 --- a/data/maps/PokemonTower_7F/scripts.inc +++ b/data/maps/PokemonTower_7F/scripts.inc @@ -4,12 +4,10 @@ PokemonTower_7F_MapScripts:: @ 8163559 PokemonTower_7F_EventScript_16355A:: @ 816355A lock faceplayer - setvar VAR_0x8004, 14 - setvar VAR_0x8005, 2 - special UpdatePickStateFromSpecialVar8005 - setflag FLAG_0x034 - clearflag FLAG_0x035 - setflag FLAG_0x23C + famechecker FAMECHECKER_MRFUJI, FCPICKSTATE_COLORED, UpdatePickStateFromSpecialVar8005 + setflag FLAG_HIDE_TOWER_FUJI + clearflag FLAG_HIDE_POKEHOUSE_FUJI + setflag FLAG_RESCUED_MR_FUJI msgbox gUnknown_817A529 closemessage warp MAP_LAVENDER_TOWN_VOLUNTEER_POKEMON_HOUSE, 255, 4, 7 @@ -18,7 +16,7 @@ PokemonTower_7F_EventScript_16355A:: @ 816355A end PokemonTower_7F_EventScript_163586:: @ 8163586 - trainerbattle 2, 369, 0, Text_17A380, Text_17A3A4, EventScript_1635A1 + trainerbattle TRAINER_BATTLE_CONTINUE_SCRIPT, TRAINER_TEAM_ROCKET_GRUNT_19, 0, Text_17A380, Text_17A3A4, EventScript_1635A1 msgbox gUnknown_817A3AF, 6 end @@ -27,11 +25,11 @@ EventScript_1635A1:: @ 81635A1 closemessage getplayerxy VAR_0x8004, VAR_0x8005 compare_var_to_value VAR_0x8004, 10 - goto_if_eq EventScript_1635E0 + goto_if eq, EventScript_1635E0 compare_var_to_value VAR_0x8004, 11 - goto_if_eq EventScript_1635F0 + goto_if eq, EventScript_1635F0 compare_var_to_value VAR_0x8004, 9 - goto_if_eq EventScript_163600 + goto_if eq, EventScript_163600 applymovement 2, Movement_16362C waitmovement 0 goto EventScript_163616 @@ -105,21 +103,19 @@ Movement_163633:: @ 8163633 step_end PokemonTower_7F_EventScript_16363D:: @ 816363D - trainerbattle 2, 370, 0, Text_17A3CD, Text_17A466, EventScript_163658 + trainerbattle TRAINER_BATTLE_CONTINUE_SCRIPT, TRAINER_TEAM_ROCKET_GRUNT_20, 0, Text_17A3CD, Text_17A466, EventScript_163658 msgbox gUnknown_817A477, 6 end EventScript_163658:: @ 8163658 - setvar VAR_0x8004, 14 - setvar VAR_0x8005, 1 - special SetFlavorTextFlagFromSpecialVars + famechecker FAMECHECKER_MRFUJI, 1 msgbox gUnknown_817A477 closemessage getplayerxy VAR_0x8004, VAR_0x8005 compare_var_to_value VAR_0x8004, 12 - goto_if_eq EventScript_163699 + goto_if eq, EventScript_163699 compare_var_to_value VAR_0x8004, 13 - goto_if_eq EventScript_1636A9 + goto_if eq, EventScript_1636A9 applymovement 3, Movement_1636C6 waitmovement 0 goto EventScript_1636B9 @@ -173,7 +169,7 @@ Movement_1636CD:: @ 81636CD step_end PokemonTower_7F_EventScript_1636D6:: @ 81636D6 - trainerbattle 2, 371, 0, Text_17A4CF, Text_17A4EE, EventScript_1636F1 + trainerbattle TRAINER_BATTLE_CONTINUE_SCRIPT, TRAINER_TEAM_ROCKET_GRUNT_21, 0, Text_17A4CF, Text_17A4EE, EventScript_1636F1 msgbox gUnknown_817A506, 6 end @@ -182,9 +178,9 @@ EventScript_1636F1:: @ 81636F1 closemessage getplayerxy VAR_0x8004, VAR_0x8005 compare_var_to_value VAR_0x8004, 10 - goto_if_eq EventScript_163725 + goto_if eq, EventScript_163725 compare_var_to_value VAR_0x8004, 9 - goto_if_eq EventScript_163735 + goto_if eq, EventScript_163735 applymovement 4, Movement_163754 waitmovement 0 goto EventScript_163745 diff --git a/data/maps/PowerPlant/map.json b/data/maps/PowerPlant/map.json index 8647b0ae1..7a8d2c1f2 100644 --- a/data/maps/PowerPlant/map.json +++ b/data/maps/PowerPlant/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 7, "y": 27, "elevation": 3, @@ -24,10 +24,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "PowerPlant_EventScript_1BE91C", - "flag": "410" + "flag": "FLAG_HIDE_POWER_PLANT_MAX_POTION" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 40, "y": 22, "elevation": 3, @@ -37,10 +37,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "PowerPlant_EventScript_1BE929", - "flag": "411" + "flag": "FLAG_HIDE_POWER_PLANT_TM17" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 46, "y": 37, "elevation": 3, @@ -50,10 +50,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "PowerPlant_EventScript_1BE936", - "flag": "412" + "flag": "FLAG_HIDE_POWER_PLANT_TM25" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 45, "y": 4, "elevation": 3, @@ -63,10 +63,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "PowerPlant_EventScript_1BE943", - "flag": "413" + "flag": "FLAG_HIDE_POWER_PLANT_THUNDER_STONE" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 26, "y": 22, "elevation": 3, @@ -76,10 +76,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "PowerPlant_EventScript_1BE950", - "flag": "414" + "flag": "FLAG_HIDE_POWER_PLANT_ELIXIR" }, { - "graphics_id": "136", + "graphics_id": "MAP_OBJ_GFX_ZAPDOS", "x": 5, "y": 11, "elevation": 3, @@ -89,10 +89,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "PowerPlant_EventScript_1637B8", - "flag": "93" + "flag": "FLAG_HIDE_ZAPDOS" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 36, "y": 5, "elevation": 3, @@ -102,10 +102,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "PowerPlant_EventScript_16388D", - "flag": "134" + "flag": "FLAG_HIDE_POWER_PLANT_ELECTRODE_2" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 30, "y": 38, "elevation": 3, @@ -115,7 +115,7 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "PowerPlant_EventScript_16382F", - "flag": "133" + "flag": "FLAG_HIDE_POWER_PLANT_ELECTRODE_1" } ], "warp_events": [ @@ -163,8 +163,9 @@ "y": 16, "elevation": 3, "item": "ITEM_MAX_ELIXIR", - "flag": "27", - "unknown": 1 + "flag": "HIDDEN_ITEM_POWER_PLANT_MAX_ELIXIR", + "quantity": 1, + "underfoot": false }, { "type": "hidden_item", @@ -172,8 +173,9 @@ "y": 12, "elevation": 3, "item": "ITEM_THUNDER_STONE", - "flag": "28", - "unknown": 1 + "flag": "HIDDEN_ITEM_POWER_PLANT_THUNDER_STONE", + "quantity": 1, + "underfoot": false } ] } diff --git a/data/maps/PowerPlant/scripts.inc b/data/maps/PowerPlant/scripts.inc index b70dc0f22..aa16e1881 100644 --- a/data/maps/PowerPlant/scripts.inc +++ b/data/maps/PowerPlant/scripts.inc @@ -4,43 +4,43 @@ PowerPlant_MapScripts:: @ 8163764 .byte 0 PowerPlant_MapScript1_16376F:: @ 816376F - checkflag FLAG_0x807 - call_if 1, EventScript_163779 + checkflag FLAG_SYS_SPECIAL_WILD_BATTLE + call_if TRUE, EventScript_163779 end EventScript_163779:: @ 8163779 - specialvar VAR_RESULT, sub_80CA74C - compare_var_to_value VAR_RESULT, 7 - goto_if 5, EventScript_1A77A9 + specialvar VAR_RESULT, Special_GetBattleOutcome + compare_var_to_value VAR_RESULT, B_OUTCOME_CAUGHT + goto_if ne, EventScript_1A77A9 removeobject VAR_LAST_TALKED return PowerPlant_MapScript2_16378D:: @ 816378D setworldmapflag FLAG_WORLD_MAP_POWER_PLANT - checkflag FLAG_0x2BF - call_if 0, EventScript_1637AC - checkflag FLAG_0x2D0 - call_if 0, EventScript_1637B0 - checkflag FLAG_0x2D1 - call_if 0, EventScript_1637B4 + checkflag FLAG_FOUGHT_ZAPDOS + call_if FALSE, EventScript_1637AC + checkflag FLAG_FOUGHT_POWER_PLANT_ELECTRODE_1 + call_if FALSE, EventScript_1637B0 + checkflag FLAG_FOUGHT_POWER_PLANT_ELECTRODE_2 + call_if FALSE, EventScript_1637B4 end EventScript_1637AC:: @ 81637AC - clearflag FLAG_0x05D + clearflag FLAG_HIDE_ZAPDOS return EventScript_1637B0:: @ 81637B0 - clearflag FLAG_0x085 + clearflag FLAG_HIDE_POWER_PLANT_ELECTRODE_1 return EventScript_1637B4:: @ 81637B4 - clearflag FLAG_0x086 + clearflag FLAG_HIDE_POWER_PLANT_ELECTRODE_2 return PowerPlant_EventScript_1637B8:: @ 81637B8 special sub_8110AB4 compare_var_to_value VAR_RESULT, 2 - goto_if_eq EventScript_1A7AE0 + goto_if eq, EventScript_1A7AE0 special sub_8112364 lock faceplayer @@ -53,23 +53,23 @@ PowerPlant_EventScript_1637B8:: @ 81637B8 delay 10 playbgm MUS_EXEYE, 0 waitbuttonpress - setflag FLAG_0x807 - special sub_807F9D8 + setflag FLAG_SYS_SPECIAL_WILD_BATTLE + special Special_StartLegendaryBattle waitstate - clearflag FLAG_0x807 - specialvar VAR_RESULT, sub_80CA74C - compare_var_to_value VAR_RESULT, 1 - goto_if_eq EventScript_16381B - compare_var_to_value VAR_RESULT, 4 - goto_if_eq EventScript_163824 - compare_var_to_value VAR_RESULT, 5 - goto_if_eq EventScript_163824 - setflag FLAG_0x2BF + clearflag FLAG_SYS_SPECIAL_WILD_BATTLE + specialvar VAR_RESULT, Special_GetBattleOutcome + compare_var_to_value VAR_RESULT, B_OUTCOME_WON + goto_if eq, EventScript_16381B + compare_var_to_value VAR_RESULT, B_OUTCOME_RAN + goto_if eq, EventScript_163824 + compare_var_to_value VAR_RESULT, B_OUTCOME_PLAYER_TELEPORTED + goto_if eq, EventScript_163824 + setflag FLAG_FOUGHT_ZAPDOS release end EventScript_16381B:: @ 816381B - setflag FLAG_0x2BF + setflag FLAG_FOUGHT_ZAPDOS goto EventScript_1A922D end @@ -81,7 +81,7 @@ EventScript_163824:: @ 8163824 PowerPlant_EventScript_16382F:: @ 816382F special sub_8110AB4 compare_var_to_value VAR_RESULT, 2 - goto_if_eq EventScript_1A7AE0 + goto_if eq, EventScript_1A7AE0 lock faceplayer setwildbattle SPECIES_ELECTRODE, 34, ITEM_NONE @@ -89,30 +89,30 @@ PowerPlant_EventScript_16382F:: @ 816382F playmoncry SPECIES_ELECTRODE, 2 delay 40 waitmoncry - setflag FLAG_0x807 + setflag FLAG_SYS_SPECIAL_WILD_BATTLE dowildbattle - clearflag FLAG_0x807 + clearflag FLAG_SYS_SPECIAL_WILD_BATTLE special sub_8112364 - specialvar VAR_RESULT, sub_80CA74C - compare_var_to_value VAR_RESULT, 1 - goto_if_eq EventScript_163884 - compare_var_to_value VAR_RESULT, 4 - goto_if_eq EventScript_163884 - compare_var_to_value VAR_RESULT, 5 - goto_if_eq EventScript_163884 - setflag FLAG_0x2D0 + specialvar VAR_RESULT, Special_GetBattleOutcome + compare_var_to_value VAR_RESULT, B_OUTCOME_WON + goto_if eq, EventScript_163884 + compare_var_to_value VAR_RESULT, B_OUTCOME_RAN + goto_if eq, EventScript_163884 + compare_var_to_value VAR_RESULT, B_OUTCOME_PLAYER_TELEPORTED + goto_if eq, EventScript_163884 + setflag FLAG_FOUGHT_POWER_PLANT_ELECTRODE_1 release end EventScript_163884:: @ 8163884 - setflag FLAG_0x2D0 + setflag FLAG_FOUGHT_POWER_PLANT_ELECTRODE_1 goto EventScript_1A922D end PowerPlant_EventScript_16388D:: @ 816388D special sub_8110AB4 compare_var_to_value VAR_RESULT, 2 - goto_if_eq EventScript_1A7AE0 + goto_if eq, EventScript_1A7AE0 lock faceplayer setwildbattle SPECIES_ELECTRODE, 34, ITEM_NONE @@ -120,22 +120,22 @@ PowerPlant_EventScript_16388D:: @ 816388D playmoncry SPECIES_ELECTRODE, 2 delay 40 waitmoncry - setflag FLAG_0x807 + setflag FLAG_SYS_SPECIAL_WILD_BATTLE dowildbattle - clearflag FLAG_0x807 + clearflag FLAG_SYS_SPECIAL_WILD_BATTLE special sub_8112364 - specialvar VAR_RESULT, sub_80CA74C - compare_var_to_value VAR_RESULT, 1 - goto_if_eq EventScript_1638E2 - compare_var_to_value VAR_RESULT, 4 - goto_if_eq EventScript_1638E2 - compare_var_to_value VAR_RESULT, 5 - goto_if_eq EventScript_1638E2 - setflag FLAG_0x2D1 + specialvar VAR_RESULT, Special_GetBattleOutcome + compare_var_to_value VAR_RESULT, B_OUTCOME_WON + goto_if eq, EventScript_1638E2 + compare_var_to_value VAR_RESULT, B_OUTCOME_RAN + goto_if eq, EventScript_1638E2 + compare_var_to_value VAR_RESULT, B_OUTCOME_PLAYER_TELEPORTED + goto_if eq, EventScript_1638E2 + setflag FLAG_FOUGHT_POWER_PLANT_ELECTRODE_2 release end EventScript_1638E2:: @ 81638E2 - setflag FLAG_0x2D1 + setflag FLAG_FOUGHT_POWER_PLANT_ELECTRODE_2 goto EventScript_1A922D end diff --git a/data/maps/RockTunnel_1F/map.json b/data/maps/RockTunnel_1F/map.json index 59abc79f0..ab85b27d2 100644 --- a/data/maps/RockTunnel_1F/map.json +++ b/data/maps/RockTunnel_1F/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "40", + "graphics_id": "MAP_OBJ_GFX_PICNICKER", "x": 26, "y": 28, "elevation": 3, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "40", + "graphics_id": "MAP_OBJ_GFX_PICNICKER", "x": 39, "y": 27, "elevation": 3, @@ -40,7 +40,7 @@ "flag": "0" }, { - "graphics_id": "40", + "graphics_id": "MAP_OBJ_GFX_PICNICKER", "x": 45, "y": 24, "elevation": 3, @@ -53,7 +53,7 @@ "flag": "0" }, { - "graphics_id": "56", + "graphics_id": "MAP_OBJ_GFX_HIKER", "x": 20, "y": 17, "elevation": 3, @@ -66,7 +66,7 @@ "flag": "0" }, { - "graphics_id": "56", + "graphics_id": "MAP_OBJ_GFX_HIKER", "x": 5, "y": 20, "elevation": 3, @@ -79,7 +79,7 @@ "flag": "0" }, { - "graphics_id": "56", + "graphics_id": "MAP_OBJ_GFX_HIKER", "x": 7, "y": 5, "elevation": 3, @@ -92,7 +92,7 @@ "flag": "0" }, { - "graphics_id": "52", + "graphics_id": "MAP_OBJ_GFX_SUPER_NERD", "x": 27, "y": 10, "elevation": 3, @@ -105,7 +105,7 @@ "flag": "0" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 37, "y": 5, "elevation": 3, @@ -115,10 +115,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "RockTunnel_1F_EventScript_1BEB0A", - "flag": "451" + "flag": "FLAG_HIDE_ROCK_TUNNEL_1F_REPEL" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 33, "y": 22, "elevation": 3, @@ -128,10 +128,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "RockTunnel_1F_EventScript_1BEB17", - "flag": "452" + "flag": "FLAG_HIDE_ROCK_TUNNEL_1F_PEARL" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 22, "y": 22, "elevation": 3, @@ -141,7 +141,7 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "RockTunnel_1F_EventScript_1BEB24", - "flag": "453" + "flag": "FLAG_HIDE_ROCK_TUNNEL_1F_ESCAPE_ROPE" } ], "warp_events": [ diff --git a/data/maps/RockTunnel_1F/scripts.inc b/data/maps/RockTunnel_1F/scripts.inc index 846154c97..c2bb38afc 100644 --- a/data/maps/RockTunnel_1F/scripts.inc +++ b/data/maps/RockTunnel_1F/scripts.inc @@ -11,36 +11,36 @@ RockTunnel_1F_EventScript_162DE0:: @ 8162DE0 end RockTunnel_1F_EventScript_162DE9:: @ 8162DE9 - trainerbattle 0, 192, 0, Text_179366, Text_179388 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_HIKER_LENNY, 0, Text_179366, Text_179388 msgbox gUnknown_8179396, 6 end RockTunnel_1F_EventScript_162E00:: @ 8162E00 - trainerbattle 0, 193, 0, Text_1793F1, Text_17940E + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_HIKER_OLIVER, 0, Text_1793F1, Text_17940E msgbox gUnknown_817943A, 6 end RockTunnel_1F_EventScript_162E17:: @ 8162E17 - trainerbattle 0, 194, 0, Text_17947B, Text_1794AC + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_HIKER_LUCAS, 0, Text_17947B, Text_1794AC msgbox gUnknown_81794B4, 6 end RockTunnel_1F_EventScript_162E2E:: @ 8162E2E - trainerbattle 0, 168, 0, Text_1794D4, Text_1794EE + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_POKEMANIAC_ASHTON, 0, Text_1794D4, Text_1794EE msgbox gUnknown_81794F9, 6 end RockTunnel_1F_EventScript_162E45:: @ 8162E45 - trainerbattle 0, 476, 0, Text_17951C, Text_179547 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_PICNICKER_LEAH, 0, Text_17951C, Text_179547 msgbox gUnknown_8179558, 6 end RockTunnel_1F_EventScript_162E5C:: @ 8162E5C - trainerbattle 0, 475, 0, Text_1795E5, Text_179604 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_PICNICKER_ARIANA, 0, Text_1795E5, Text_179604 msgbox gUnknown_8179613, 6 end RockTunnel_1F_EventScript_162E73:: @ 8162E73 - trainerbattle 0, 474, 0, Text_179577, Text_1795A1 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_PICNICKER_DANA, 0, Text_179577, Text_1795A1 msgbox gUnknown_81795B5, 6 end diff --git a/data/maps/RockTunnel_B1F/map.json b/data/maps/RockTunnel_B1F/map.json index 0d2d1696e..c904e3b4b 100644 --- a/data/maps/RockTunnel_B1F/map.json +++ b/data/maps/RockTunnel_B1F/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "52", + "graphics_id": "MAP_OBJ_GFX_SUPER_NERD", "x": 2, "y": 6, "elevation": 3, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "56", + "graphics_id": "MAP_OBJ_GFX_HIKER", "x": 5, "y": 11, "elevation": 3, @@ -40,7 +40,7 @@ "flag": "0" }, { - "graphics_id": "40", + "graphics_id": "MAP_OBJ_GFX_PICNICKER", "x": 11, "y": 15, "elevation": 3, @@ -53,7 +53,7 @@ "flag": "0" }, { - "graphics_id": "56", + "graphics_id": "MAP_OBJ_GFX_HIKER", "x": 36, "y": 11, "elevation": 3, @@ -66,7 +66,7 @@ "flag": "0" }, { - "graphics_id": "56", + "graphics_id": "MAP_OBJ_GFX_HIKER", "x": 41, "y": 5, "elevation": 3, @@ -79,7 +79,7 @@ "flag": "0" }, { - "graphics_id": "52", + "graphics_id": "MAP_OBJ_GFX_SUPER_NERD", "x": 23, "y": 23, "elevation": 3, @@ -92,7 +92,7 @@ "flag": "0" }, { - "graphics_id": "40", + "graphics_id": "MAP_OBJ_GFX_PICNICKER", "x": 15, "y": 33, "elevation": 3, @@ -105,7 +105,7 @@ "flag": "0" }, { - "graphics_id": "52", + "graphics_id": "MAP_OBJ_GFX_SUPER_NERD", "x": 29, "y": 35, "elevation": 3, @@ -118,7 +118,7 @@ "flag": "0" }, { - "graphics_id": "18", + "graphics_id": "MAP_OBJ_GFX_YOUNGSTER", "x": 2, "y": 29, "elevation": 3, @@ -131,7 +131,7 @@ "flag": "0" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 2, "y": 37, "elevation": 3, @@ -141,10 +141,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "RockTunnel_B1F_EventScript_1BEB31", - "flag": "454" + "flag": "FLAG_HIDE_ROCK_TUNNEL_B1F_REVIVE" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 9, "y": 2, "elevation": 3, @@ -154,10 +154,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "RockTunnel_B1F_EventScript_1BEB3E", - "flag": "455" + "flag": "FLAG_HIDE_ROCK_TUNNEL_B1F_MAX_ETHER" }, { - "graphics_id": "96", + "graphics_id": "MAP_OBJ_GFX_ROCK_SMASH_ROCK", "x": 1, "y": 20, "elevation": 3, @@ -166,11 +166,11 @@ "movement_range_y": 1, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "RockTunnel_B1F_EventScript_1BE00C", - "flag": "18" + "script": "EventScript_InteractWithRockSmashRockObject", + "flag": "FLAG_TEMP_12" }, { - "graphics_id": "96", + "graphics_id": "MAP_OBJ_GFX_ROCK_SMASH_ROCK", "x": 1, "y": 22, "elevation": 3, @@ -179,11 +179,11 @@ "movement_range_y": 1, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "RockTunnel_B1F_EventScript_1BE00C", - "flag": "19" + "script": "EventScript_InteractWithRockSmashRockObject", + "flag": "FLAG_TEMP_13" }, { - "graphics_id": "96", + "graphics_id": "MAP_OBJ_GFX_ROCK_SMASH_ROCK", "x": 4, "y": 23, "elevation": 3, @@ -192,11 +192,11 @@ "movement_range_y": 1, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "RockTunnel_B1F_EventScript_1BE00C", - "flag": "20" + "script": "EventScript_InteractWithRockSmashRockObject", + "flag": "FLAG_TEMP_14" }, { - "graphics_id": "96", + "graphics_id": "MAP_OBJ_GFX_ROCK_SMASH_ROCK", "x": 2, "y": 23, "elevation": 3, @@ -205,11 +205,11 @@ "movement_range_y": 1, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "RockTunnel_B1F_EventScript_1BE00C", - "flag": "21" + "script": "EventScript_InteractWithRockSmashRockObject", + "flag": "FLAG_TEMP_15" }, { - "graphics_id": "96", + "graphics_id": "MAP_OBJ_GFX_ROCK_SMASH_ROCK", "x": 39, "y": 26, "elevation": 3, @@ -218,11 +218,11 @@ "movement_range_y": 1, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "RockTunnel_B1F_EventScript_1BE00C", - "flag": "22" + "script": "EventScript_InteractWithRockSmashRockObject", + "flag": "FLAG_TEMP_16" }, { - "graphics_id": "96", + "graphics_id": "MAP_OBJ_GFX_ROCK_SMASH_ROCK", "x": 42, "y": 26, "elevation": 3, @@ -231,11 +231,11 @@ "movement_range_y": 1, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "RockTunnel_B1F_EventScript_1BE00C", - "flag": "23" + "script": "EventScript_InteractWithRockSmashRockObject", + "flag": "FLAG_TEMP_17" }, { - "graphics_id": "96", + "graphics_id": "MAP_OBJ_GFX_ROCK_SMASH_ROCK", "x": 43, "y": 28, "elevation": 3, @@ -244,11 +244,11 @@ "movement_range_y": 1, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "RockTunnel_B1F_EventScript_1BE00C", - "flag": "24" + "script": "EventScript_InteractWithRockSmashRockObject", + "flag": "FLAG_TEMP_18" }, { - "graphics_id": "96", + "graphics_id": "MAP_OBJ_GFX_ROCK_SMASH_ROCK", "x": 45, "y": 30, "elevation": 3, @@ -257,11 +257,11 @@ "movement_range_y": 1, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "RockTunnel_B1F_EventScript_1BE00C", - "flag": "25" + "script": "EventScript_InteractWithRockSmashRockObject", + "flag": "FLAG_TEMP_19" }, { - "graphics_id": "96", + "graphics_id": "MAP_OBJ_GFX_ROCK_SMASH_ROCK", "x": 45, "y": 33, "elevation": 3, @@ -270,11 +270,11 @@ "movement_range_y": 1, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "RockTunnel_B1F_EventScript_1BE00C", - "flag": "26" + "script": "EventScript_InteractWithRockSmashRockObject", + "flag": "FLAG_TEMP_1A" }, { - "graphics_id": "96", + "graphics_id": "MAP_OBJ_GFX_ROCK_SMASH_ROCK", "x": 25, "y": 1, "elevation": 3, @@ -283,11 +283,11 @@ "movement_range_y": 1, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "RockTunnel_B1F_EventScript_1BE00C", - "flag": "27" + "script": "EventScript_InteractWithRockSmashRockObject", + "flag": "FLAG_TEMP_1B" }, { - "graphics_id": "96", + "graphics_id": "MAP_OBJ_GFX_ROCK_SMASH_ROCK", "x": 27, "y": 4, "elevation": 3, @@ -296,11 +296,11 @@ "movement_range_y": 1, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "RockTunnel_B1F_EventScript_1BE00C", - "flag": "28" + "script": "EventScript_InteractWithRockSmashRockObject", + "flag": "FLAG_TEMP_1C" }, { - "graphics_id": "96", + "graphics_id": "MAP_OBJ_GFX_ROCK_SMASH_ROCK", "x": 23, "y": 2, "elevation": 3, @@ -309,11 +309,11 @@ "movement_range_y": 1, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "RockTunnel_B1F_EventScript_1BE00C", - "flag": "29" + "script": "EventScript_InteractWithRockSmashRockObject", + "flag": "FLAG_TEMP_1D" }, { - "graphics_id": "96", + "graphics_id": "MAP_OBJ_GFX_ROCK_SMASH_ROCK", "x": 26, "y": 2, "elevation": 3, @@ -322,11 +322,11 @@ "movement_range_y": 1, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "RockTunnel_B1F_EventScript_1BE00C", - "flag": "30" + "script": "EventScript_InteractWithRockSmashRockObject", + "flag": "FLAG_TEMP_1E" }, { - "graphics_id": "96", + "graphics_id": "MAP_OBJ_GFX_ROCK_SMASH_ROCK", "x": 24, "y": 7, "elevation": 3, @@ -335,11 +335,11 @@ "movement_range_y": 1, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "RockTunnel_B1F_EventScript_1BE00C", - "flag": "31" + "script": "EventScript_InteractWithRockSmashRockObject", + "flag": "FLAG_TEMP_1F" }, { - "graphics_id": "96", + "graphics_id": "MAP_OBJ_GFX_ROCK_SMASH_ROCK", "x": 27, "y": 6, "elevation": 3, @@ -348,8 +348,8 @@ "movement_range_y": 1, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "RockTunnel_B1F_EventScript_1BE00C", - "flag": "17" + "script": "EventScript_InteractWithRockSmashRockObject", + "flag": "FLAG_TEMP_11" } ], "warp_events": [ diff --git a/data/maps/RockTunnel_B1F/scripts.inc b/data/maps/RockTunnel_B1F/scripts.inc index 12611a767..27650f752 100644 --- a/data/maps/RockTunnel_B1F/scripts.inc +++ b/data/maps/RockTunnel_B1F/scripts.inc @@ -2,41 +2,41 @@ RockTunnel_B1F_MapScripts:: @ 8162E8A .byte 0 RockTunnel_B1F_EventScript_162E8B:: @ 8162E8B - trainerbattle 0, 158, 0, Text_179657, Text_1796B9 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_PICNICKER_SOFIA, 0, Text_179657, Text_1796B9 msgbox gUnknown_81796CE, 6 end RockTunnel_B1F_EventScript_162EA2:: @ 8162EA2 - trainerbattle 0, 159, 0, Text_1798AD, Text_1798DD + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_PICNICKER_MARTHA, 0, Text_1798AD, Text_1798DD msgbox gUnknown_81798E9, 6 end RockTunnel_B1F_EventScript_162EB9:: @ 8162EB9 - trainerbattle 0, 189, 0, Text_1796E1, Text_179700 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_HIKER_DUDLEY, 0, Text_1796E1, Text_179700 msgbox gUnknown_8179712, 6 end RockTunnel_B1F_EventScript_162ED0:: @ 8162ED0 - trainerbattle 0, 190, 0, Text_179829, Text_179856 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_HIKER_ALLEN, 0, Text_179829, Text_179856 msgbox gUnknown_817987A, 6 end RockTunnel_B1F_EventScript_162EE7:: @ 8162EE7 - trainerbattle 0, 191, 0, Text_179916, Text_179932 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_HIKER_ERIC, 0, Text_179916, Text_179932 msgbox gUnknown_817993E, 6 end RockTunnel_B1F_EventScript_162EFE:: @ 8162EFE - trainerbattle 0, 164, 0, Text_17973A, Text_17975F + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_POKEMANIAC_COOPER, 0, Text_17973A, Text_17975F msgbox gUnknown_8179777, 6 end RockTunnel_B1F_EventScript_162F15:: @ 8162F15 - trainerbattle 0, 165, 0, Text_1797A4, Text_1797CB + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_POKEMANIAC_STEVE, 0, Text_1797A4, Text_1797CB msgbox gUnknown_81797DE, 6 end RockTunnel_B1F_EventScript_162F2C:: @ 8162F2C - trainerbattle 0, 166, 0, Text_179968, Text_179997 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_POKEMANIAC_WINSTON, 0, Text_179968, Text_179997 msgbox gUnknown_81799AC, 6 end diff --git a/data/maps/RocketHideout_B1F/map.json b/data/maps/RocketHideout_B1F/map.json index 66aa5aad7..5e1e205d8 100644 --- a/data/maps/RocketHideout_B1F/map.json +++ b/data/maps/RocketHideout_B1F/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "49", + "graphics_id": "MAP_OBJ_GFX_ROCKET_M", "x": 4, "y": 9, "elevation": 3, @@ -24,10 +24,10 @@ "trainer_type": 1, "trainer_sight_or_berry_tree_id": 5, "script": "RocketHideout_B1F_EventScript_1611C5", - "flag": "173" + "flag": "FLAG_HIDE_MISC_KANTO_ROCKETS" }, { - "graphics_id": "49", + "graphics_id": "MAP_OBJ_GFX_ROCKET_M", "x": 24, "y": 12, "elevation": 3, @@ -37,10 +37,10 @@ "trainer_type": 1, "trainer_sight_or_berry_tree_id": 2, "script": "RocketHideout_B1F_EventScript_1611AE", - "flag": "173" + "flag": "FLAG_HIDE_MISC_KANTO_ROCKETS" }, { - "graphics_id": "49", + "graphics_id": "MAP_OBJ_GFX_ROCKET_M", "x": 6, "y": 32, "elevation": 3, @@ -50,10 +50,10 @@ "trainer_type": 1, "trainer_sight_or_berry_tree_id": 4, "script": "RocketHideout_B1F_EventScript_1611F3", - "flag": "173" + "flag": "FLAG_HIDE_MISC_KANTO_ROCKETS" }, { - "graphics_id": "49", + "graphics_id": "MAP_OBJ_GFX_ROCKET_M", "x": 10, "y": 22, "elevation": 3, @@ -63,10 +63,10 @@ "trainer_type": 1, "trainer_sight_or_berry_tree_id": 3, "script": "RocketHideout_B1F_EventScript_1611DC", - "flag": "173" + "flag": "FLAG_HIDE_MISC_KANTO_ROCKETS" }, { - "graphics_id": "49", + "graphics_id": "MAP_OBJ_GFX_ROCKET_M", "x": 21, "y": 27, "elevation": 3, @@ -76,10 +76,10 @@ "trainer_type": 1, "trainer_sight_or_berry_tree_id": 3, "script": "RocketHideout_B1F_EventScript_16120A", - "flag": "173" + "flag": "FLAG_HIDE_MISC_KANTO_ROCKETS" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 5, "y": 16, "elevation": 0, @@ -89,10 +89,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "RocketHideout_B1F_EventScript_1BE6C6", - "flag": "364" + "flag": "FLAG_HIDE_ROCKET_HIDEOUT_B1F_ESCAPE_ROPE" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 1, "y": 22, "elevation": 3, @@ -102,7 +102,7 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "RocketHideout_B1F_EventScript_1BE6D3", - "flag": "365" + "flag": "FLAG_HIDE_ROCKET_HIDEOUT_B1F_HYPER_POTION" } ], "warp_events": [ @@ -157,8 +157,9 @@ "y": 17, "elevation": 0, "item": "ITEM_PP_UP", - "flag": "11", - "unknown": 1 + "flag": "HIDDEN_ITEM_ROCKET_HIDEOUT_B1F_PP_UP", + "quantity": 1, + "underfoot": false } ] } diff --git a/data/maps/RocketHideout_B1F/scripts.inc b/data/maps/RocketHideout_B1F/scripts.inc index 1b4068e14..6e2f8eeb3 100644 --- a/data/maps/RocketHideout_B1F/scripts.inc +++ b/data/maps/RocketHideout_B1F/scripts.inc @@ -4,8 +4,8 @@ RocketHideout_B1F_MapScripts:: @ 8161195 .byte 0 RocketHideout_B1F_MapScript1_1611A0:: @ 81611A0 - checktrainerflag FLAG_0x16A - call_if 0, EventScript_161233 + checktrainerflag TRAINER_TEAM_ROCKET_GRUNT_12 + call_if lt, EventScript_161233 end RocketHideout_B1F_MapScript2_1611AA:: @ 81611AA @@ -13,27 +13,27 @@ RocketHideout_B1F_MapScript2_1611AA:: @ 81611AA end RocketHideout_B1F_EventScript_1611AE:: @ 81611AE - trainerbattle 0, 358, 0, Text_174ECA, Text_174EED + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_TEAM_ROCKET_GRUNT_8, 0, Text_174ECA, Text_174EED msgbox gUnknown_8174EFA, 6 end RocketHideout_B1F_EventScript_1611C5:: @ 81611C5 - trainerbattle 0, 359, 0, Text_174F2C, Text_174F60 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_TEAM_ROCKET_GRUNT_9, 0, Text_174F2C, Text_174F60 msgbox gUnknown_8174F66, 6 end RocketHideout_B1F_EventScript_1611DC:: @ 81611DC - trainerbattle 0, 360, 0, Text_174F94, Text_174FA4 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_TEAM_ROCKET_GRUNT_10, 0, Text_174F94, Text_174FA4 msgbox gUnknown_8174FB3, 6 end RocketHideout_B1F_EventScript_1611F3:: @ 81611F3 - trainerbattle 0, 361, 0, Text_174FE1, Text_174FF8 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_TEAM_ROCKET_GRUNT_11, 0, Text_174FE1, Text_174FF8 msgbox gUnknown_8175007, 6 end RocketHideout_B1F_EventScript_16120A:: @ 816120A - trainerbattle 2, 362, 0, Text_17503A, Text_17505A, EventScript_161225 + trainerbattle TRAINER_BATTLE_CONTINUE_SCRIPT, TRAINER_TEAM_ROCKET_GRUNT_12, 0, Text_17503A, Text_17505A, EventScript_161225 msgbox gUnknown_8175060, 6 end diff --git a/data/maps/RocketHideout_B2F/map.json b/data/maps/RocketHideout_B2F/map.json index eff2b29af..c306907fd 100644 --- a/data/maps/RocketHideout_B2F/map.json +++ b/data/maps/RocketHideout_B2F/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "49", + "graphics_id": "MAP_OBJ_GFX_ROCKET_M", "x": 20, "y": 6, "elevation": 3, @@ -24,10 +24,10 @@ "trainer_type": 1, "trainer_sight_or_berry_tree_id": 2, "script": "RocketHideout_B2F_EventScript_1612A2", - "flag": "173" + "flag": "FLAG_HIDE_MISC_KANTO_ROCKETS" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 15, "y": 3, "elevation": 3, @@ -37,10 +37,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "RocketHideout_B2F_EventScript_1BE6E0", - "flag": "366" + "flag": "FLAG_HIDE_ROCKET_HIDEOUT_B2F_X_SPEED" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 2, "y": 5, "elevation": 3, @@ -50,10 +50,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "RocketHideout_B2F_EventScript_1BE6ED", - "flag": "367" + "flag": "FLAG_HIDE_ROCKET_HIDEOUT_B2F_MOON_STONE" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 5, "y": 7, "elevation": 3, @@ -63,10 +63,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "RocketHideout_B2F_EventScript_1BE6FA", - "flag": "368" + "flag": "FLAG_HIDE_ROCKET_HIDEOUT_B2F_TM12" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 0, "y": 14, "elevation": 3, @@ -76,7 +76,7 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "RocketHideout_B2F_EventScript_1BE707", - "flag": "369" + "flag": "FLAG_HIDE_ROCKET_HIDEOUT_B2F_SUPER_POTION" } ], "warp_events": [ diff --git a/data/maps/RocketHideout_B2F/scripts.inc b/data/maps/RocketHideout_B2F/scripts.inc index 80c102179..6264371b7 100644 --- a/data/maps/RocketHideout_B2F/scripts.inc +++ b/data/maps/RocketHideout_B2F/scripts.inc @@ -2,6 +2,6 @@ RocketHideout_B2F_MapScripts:: @ 81612A1 .byte 0 RocketHideout_B2F_EventScript_1612A2:: @ 81612A2 - trainerbattle 0, 363, 0, Text_17508C, Text_1750BF + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_TEAM_ROCKET_GRUNT_13, 0, Text_17508C, Text_1750BF msgbox gUnknown_81750CC, 6 end diff --git a/data/maps/RocketHideout_B3F/map.json b/data/maps/RocketHideout_B3F/map.json index 77790c353..84326943e 100644 --- a/data/maps/RocketHideout_B3F/map.json +++ b/data/maps/RocketHideout_B3F/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "49", + "graphics_id": "MAP_OBJ_GFX_ROCKET_M", "x": 19, "y": 9, "elevation": 3, @@ -24,10 +24,10 @@ "trainer_type": 1, "trainer_sight_or_berry_tree_id": 4, "script": "RocketHideout_B3F_EventScript_1612D1", - "flag": "173" + "flag": "FLAG_HIDE_MISC_KANTO_ROCKETS" }, { - "graphics_id": "49", + "graphics_id": "MAP_OBJ_GFX_ROCKET_M", "x": 2, "y": 20, "elevation": 3, @@ -37,10 +37,10 @@ "trainer_type": 1, "trainer_sight_or_berry_tree_id": 2, "script": "RocketHideout_B3F_EventScript_1612BA", - "flag": "173" + "flag": "FLAG_HIDE_MISC_KANTO_ROCKETS" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 12, "y": 12, "elevation": 3, @@ -50,10 +50,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "RocketHideout_B3F_EventScript_1BE714", - "flag": "370" + "flag": "FLAG_HIDE_ROCKET_HIDEOUT_B3F_RARE_CANDY" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 19, "y": 14, "elevation": 3, @@ -63,10 +63,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "RocketHideout_B3F_EventScript_1BE721", - "flag": "371" + "flag": "FLAG_HIDE_ROCKET_HIDEOUT_B3F_TM21" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 14, "y": 24, "elevation": 3, @@ -76,7 +76,7 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "RocketHideout_B3F_EventScript_1BEBCD", - "flag": "466" + "flag": "FLAG_HIDE_ROCKET_HIDEOUT_B3F_BLACK_GLASSES" } ], "warp_events": [ @@ -103,8 +103,9 @@ "y": 3, "elevation": 3, "item": "ITEM_NUGGET", - "flag": "12", - "unknown": 1 + "flag": "HIDDEN_ITEM_ROCKET_HIDEOUT_B3F_NUGGET", + "quantity": 1, + "underfoot": false } ] } diff --git a/data/maps/RocketHideout_B3F/scripts.inc b/data/maps/RocketHideout_B3F/scripts.inc index 82fc7aa26..5cc7fc7d8 100644 --- a/data/maps/RocketHideout_B3F/scripts.inc +++ b/data/maps/RocketHideout_B3F/scripts.inc @@ -2,11 +2,11 @@ RocketHideout_B3F_MapScripts:: @ 81612B9 .byte 0 RocketHideout_B3F_EventScript_1612BA:: @ 81612BA - trainerbattle 0, 364, 0, Text_17511A, Text_17514A + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_TEAM_ROCKET_GRUNT_14, 0, Text_17511A, Text_17514A msgbox gUnknown_817515B, 6 end RocketHideout_B3F_EventScript_1612D1:: @ 81612D1 - trainerbattle 0, 365, 0, Text_17519E, Text_1751CE + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_TEAM_ROCKET_GRUNT_15, 0, Text_17519E, Text_1751CE msgbox gUnknown_81751E0, 6 end diff --git a/data/maps/RocketHideout_B4F/map.json b/data/maps/RocketHideout_B4F/map.json index 37df23d8f..6a88db1a7 100644 --- a/data/maps/RocketHideout_B4F/map.json +++ b/data/maps/RocketHideout_B4F/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "87", + "graphics_id": "MAP_OBJ_GFX_GIOVANNI", "x": 19, "y": 4, "elevation": 3, @@ -24,10 +24,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "RocketHideout_B4F_EventScript_161317", - "flag": "56" + "flag": "FLAG_HIDE_HIDEOUT_GIOVANNI" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 20, "y": 5, "elevation": 3, @@ -37,10 +37,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "RocketHideout_B4F_EventScript_161363", - "flag": "55" + "flag": "FLAG_HIDE_SILPH_SCOPE" }, { - "graphics_id": "49", + "graphics_id": "MAP_OBJ_GFX_ROCKET_M", "x": 4, "y": 2, "elevation": 3, @@ -50,10 +50,10 @@ "trainer_type": 1, "trainer_sight_or_berry_tree_id": 1, "script": "RocketHideout_B4F_EventScript_161381", - "flag": "173" + "flag": "FLAG_HIDE_MISC_KANTO_ROCKETS" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 3, "y": 2, "elevation": 3, @@ -63,10 +63,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "RocketHideout_B4F_EventScript_1613AD", - "flag": "54" + "flag": "FLAG_HIDE_LIFT_KEY" }, { - "graphics_id": "49", + "graphics_id": "MAP_OBJ_GFX_ROCKET_M", "x": 19, "y": 14, "elevation": 3, @@ -76,10 +76,10 @@ "trainer_type": 1, "trainer_sight_or_berry_tree_id": 0, "script": "RocketHideout_B4F_EventScript_161418", - "flag": "173" + "flag": "FLAG_HIDE_MISC_KANTO_ROCKETS" }, { - "graphics_id": "49", + "graphics_id": "MAP_OBJ_GFX_ROCKET_M", "x": 16, "y": 14, "elevation": 3, @@ -89,10 +89,10 @@ "trainer_type": 1, "trainer_sight_or_berry_tree_id": 0, "script": "RocketHideout_B4F_EventScript_1613CE", - "flag": "173" + "flag": "FLAG_HIDE_MISC_KANTO_ROCKETS" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 1, "y": 6, "elevation": 3, @@ -102,10 +102,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "RocketHideout_B4F_EventScript_1BE72E", - "flag": "372" + "flag": "FLAG_HIDE_ROCKET_HIDEOUT_B4F_TM49" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 4, "y": 14, "elevation": 0, @@ -115,10 +115,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "RocketHideout_B4F_EventScript_1BE73B", - "flag": "373" + "flag": "FLAG_HIDE_ROCKET_HIDEOUT_B4F_MAX_ETHER" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 6, "y": 23, "elevation": 0, @@ -128,7 +128,7 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "RocketHideout_B4F_EventScript_1BE748", - "flag": "374" + "flag": "FLAG_HIDE_ROCKET_HIDEOUT_B4F_CALCIUM" } ], "warp_events": [ @@ -162,8 +162,9 @@ "y": 6, "elevation": 3, "item": "ITEM_NEST_BALL", - "flag": "13", - "unknown": 1 + "flag": "HIDDEN_ITEM_ROCKET_HIDEOUT_B4F_NEST_BALL", + "quantity": 1, + "underfoot": false }, { "type": "hidden_item", @@ -171,8 +172,9 @@ "y": 6, "elevation": 3, "item": "ITEM_NET_BALL", - "flag": "134", - "unknown": 1 + "flag": "HIDDEN_ITEM_ROCKET_HIDEOUT_B4F_NET_BALL", + "quantity": 1, + "underfoot": false } ] } diff --git a/data/maps/RocketHideout_B4F/scripts.inc b/data/maps/RocketHideout_B4F/scripts.inc index f56e0a211..0ab5b0490 100644 --- a/data/maps/RocketHideout_B4F/scripts.inc +++ b/data/maps/RocketHideout_B4F/scripts.inc @@ -4,12 +4,12 @@ RocketHideout_B4F_MapScripts:: @ 81612E8 RocketHideout_B4F_MapScript1_1612EE:: @ 81612EE setvar VAR_0x4001, 0 - checktrainerflag FLAG_0x16E - call_if 1, EventScript_161311 - checktrainerflag FLAG_0x16F - call_if 1, EventScript_161311 + checktrainerflag TRAINER_TEAM_ROCKET_GRUNT_16 + call_if eq, EventScript_161311 + checktrainerflag TRAINER_TEAM_ROCKET_GRUNT_17 + call_if eq, EventScript_161311 compare_var_to_value VAR_0x4001, 2 - call_if 5, EventScript_16146A + call_if ne, EventScript_16146A end EventScript_161311:: @ 8161311 @@ -19,24 +19,20 @@ EventScript_161311:: @ 8161311 RocketHideout_B4F_EventScript_161317:: @ 8161317 lock faceplayer - setvar VAR_0x8004, 15 - setvar VAR_0x8005, 0 - special SetFlavorTextFlagFromSpecialVars + famechecker FAMECHECKER_GIOVANNI, 0 message Text_175226 waitmessage playbgm MUS_ROCKET, 0 waitbuttonpress - trainerbattle 3, 348, 0, Text_175318 + trainerbattle TRAINER_BATTLE_SINGLE_NO_INTRO_TEXT, TRAINER_BOSS_GIOVANNI, 0, Text_175318 msgbox gUnknown_817532D fadescreen 1 closemessage removeobject 1 addobject 2 - clearflag FLAG_0x037 - setflag FLAG_0x05F - setvar VAR_0x8004, 15 - setvar VAR_0x8005, 2 - special UpdatePickStateFromSpecialVar8005 + clearflag FLAG_HIDE_SILPH_SCOPE + setflag FLAG_HIDE_CELADON_ROCKETS + famechecker FAMECHECKER_GIOVANNI, FCPICKSTATE_COLORED, UpdatePickStateFromSpecialVar8005 fadescreen 0 release end @@ -47,12 +43,12 @@ RocketHideout_B4F_EventScript_161363:: @ 8161363 removeobject 2 giveitem ITEM_SILPH_SCOPE compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_1A6BF9 + goto_if eq, EventScript_1A6BF9 release end RocketHideout_B4F_EventScript_161381:: @ 8161381 - trainerbattle 2, 368, 0, Text_175488, Text_1754B9, EventScript_16139D + trainerbattle TRAINER_BATTLE_CONTINUE_SCRIPT, TRAINER_TEAM_ROCKET_GRUNT_18, 0, Text_175488, Text_1754B9, EventScript_16139D msgbox gUnknown_81754BD release end @@ -60,54 +56,54 @@ RocketHideout_B4F_EventScript_161381:: @ 8161381 EventScript_16139D:: @ 816139D msgbox gUnknown_81754BD addobject 4 - clearflag FLAG_0x036 + clearflag FLAG_HIDE_LIFT_KEY release end RocketHideout_B4F_EventScript_1613AD:: @ 81613AD lock faceplayer - setflag FLAG_0x2A5 + setflag FLAG_CAN_USE_ROCKET_HIDEOUT_LIFT removeobject 4 giveitem ITEM_LIFT_KEY compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_1A6BF9 + goto_if eq, EventScript_1A6BF9 release end RocketHideout_B4F_EventScript_1613CE:: @ 81613CE - trainerbattle 2, 366, 0, Text_1753D0, Text_1753FE, EventScript_1613E9 + trainerbattle TRAINER_BATTLE_CONTINUE_SCRIPT, TRAINER_TEAM_ROCKET_GRUNT_16, 0, Text_1753D0, Text_1753FE, EventScript_1613E9 msgbox gUnknown_817540C, 6 end EventScript_1613E9:: @ 81613E9 setvar VAR_0x4001, 0 - checktrainerflag FLAG_0x16E - call_if 1, EventScript_161311 - checktrainerflag FLAG_0x16F - call_if 1, EventScript_161311 + checktrainerflag TRAINER_TEAM_ROCKET_GRUNT_16 + call_if eq, EventScript_161311 + checktrainerflag TRAINER_TEAM_ROCKET_GRUNT_17 + call_if eq, EventScript_161311 compare_var_to_value VAR_0x4001, 2 - call_if 1, EventScript_1614A1 + call_if eq, EventScript_1614A1 compare_var_to_value VAR_0x4001, 2 - call_if 1, EventScript_161462 + call_if eq, EventScript_161462 release end RocketHideout_B4F_EventScript_161418:: @ 8161418 - trainerbattle 2, 367, 0, Text_175437, Text_175463, EventScript_161433 + trainerbattle TRAINER_BATTLE_CONTINUE_SCRIPT, TRAINER_TEAM_ROCKET_GRUNT_17, 0, Text_175437, Text_175463, EventScript_161433 msgbox gUnknown_817546A, 6 end EventScript_161433:: @ 8161433 setvar VAR_0x4001, 0 - checktrainerflag FLAG_0x16E - call_if 1, EventScript_161311 - checktrainerflag FLAG_0x16F - call_if 1, EventScript_161311 + checktrainerflag TRAINER_TEAM_ROCKET_GRUNT_16 + call_if eq, EventScript_161311 + checktrainerflag TRAINER_TEAM_ROCKET_GRUNT_17 + call_if eq, EventScript_161311 compare_var_to_value VAR_0x4001, 2 - call_if 1, EventScript_1614A1 + call_if eq, EventScript_1614A1 compare_var_to_value VAR_0x4001, 2 - call_if 1, EventScript_161462 + call_if eq, EventScript_161462 release end diff --git a/data/maps/RocketHideout_Elevator/scripts.inc b/data/maps/RocketHideout_Elevator/scripts.inc index 884335234..2b593b1bb 100644 --- a/data/maps/RocketHideout_Elevator/scripts.inc +++ b/data/maps/RocketHideout_Elevator/scripts.inc @@ -3,17 +3,17 @@ RocketHideout_Elevator_MapScripts:: @ 81614D8 RocketHideout_Elevator_EventScript_1614D9:: @ 81614D9 lockall - checkflag FLAG_0x2A5 - goto_if 0, EventScript_16161B + checkflag FLAG_CAN_USE_ROCKET_HIDEOUT_LIFT + goto_if FALSE, EventScript_16161B setvar VAR_0x8004, 2 - checkflag FLAG_0x002 - call_if 0, EventScript_1A7AB9 - copyvar VAR_0x8005, VAR_0x403A - special sub_80CB580 + checkflag FLAG_TEMP_2 + call_if FALSE, EventScript_1A7AB9 + copyvar VAR_0x8005, VAR_ELEVATOR_FLOOR + special Special_DrawElevatorCurrentFloorWindow message Text_1A535C waitmessage setvar VAR_0x8004, 2 - specialvar VAR_RESULT, sub_80CB328 + specialvar VAR_RESULT, Special_InitElevatorFloorSelectMenuPos switch VAR_RESULT case 0, EventScript_161530 case 1, EventScript_16153C @@ -21,21 +21,21 @@ RocketHideout_Elevator_EventScript_1614D9:: @ 81614D9 end EventScript_161530:: @ 8161530 - multichoicedefault 0, 0, 42, 0, 0 + multichoicedefault 0, 0, MULTICHOICE_ROCKET_HIDEOUT_ELEVATOR, 0, FALSE goto EventScript_161554 EventScript_16153B:: @ 816153B end EventScript_16153C:: @ 816153C - multichoicedefault 0, 0, 42, 1, 0 + multichoicedefault 0, 0, MULTICHOICE_ROCKET_HIDEOUT_ELEVATOR, 1, FALSE goto EventScript_161554 EventScript_161547:: @ 8161547 end EventScript_161548:: @ 8161548 - multichoicedefault 0, 0, 42, 2, 0 + multichoicedefault 0, 0, MULTICHOICE_ROCKET_HIDEOUT_ELEVATOR, 2, FALSE goto EventScript_161554 EventScript_161553:: @ 8161553 @@ -53,10 +53,10 @@ EventScript_161554:: @ 8161554 EventScript_161591:: @ 8161591 setvar VAR_0x8006, 3 setdynamicwarp MAP_ROCKET_HIDEOUT_B1F, 255, 24, 25 - compare_var_to_value VAR_0x403A, 3 - goto_if_eq EventScript_161609 + compare_var_to_value VAR_ELEVATOR_FLOOR, 3 + goto_if eq, EventScript_161609 call EventScript_16160E - setvar VAR_0x403A, 3 + setvar VAR_ELEVATOR_FLOOR, 3 goto EventScript_161609 EventScript_1615B8:: @ 81615B8 @@ -65,10 +65,10 @@ EventScript_1615B8:: @ 81615B8 EventScript_1615B9:: @ 81615B9 setvar VAR_0x8006, 2 setdynamicwarp MAP_ROCKET_HIDEOUT_B2F, 255, 28, 16 - compare_var_to_value VAR_0x403A, 2 - goto_if_eq EventScript_161609 + compare_var_to_value VAR_ELEVATOR_FLOOR, 2 + goto_if eq, EventScript_161609 call EventScript_16160E - setvar VAR_0x403A, 2 + setvar VAR_ELEVATOR_FLOOR, 2 goto EventScript_161609 EventScript_1615E0:: @ 81615E0 @@ -77,27 +77,27 @@ EventScript_1615E0:: @ 81615E0 EventScript_1615E1:: @ 81615E1 setvar VAR_0x8006, 0 setdynamicwarp MAP_ROCKET_HIDEOUT_B4F, 255, 20, 23 - compare_var_to_value VAR_0x403A, 0 - goto_if_eq EventScript_161609 + compare_var_to_value VAR_ELEVATOR_FLOOR, 0 + goto_if eq, EventScript_161609 call EventScript_16160E - setvar VAR_0x403A, 0 + setvar VAR_ELEVATOR_FLOOR, 0 goto EventScript_161609 EventScript_161608:: @ 8161608 end EventScript_161609:: @ 8161609 - special sub_80CB63C + special Special_CloseElevatorCurrentFloorWindow releaseall end EventScript_16160E:: @ 816160E - special sub_80CB63C + special Special_CloseElevatorCurrentFloorWindow closemessage waitse - special sub_80CB498 + special Special_AnimateElevator waitstate - setflag FLAG_0x002 + setflag FLAG_TEMP_2 return EventScript_16161B:: @ 816161B diff --git a/data/maps/Route1/map.json b/data/maps/Route1/map.json index 9532ffe65..265822796 100644 --- a/data/maps/Route1/map.json +++ b/data/maps/Route1/map.json @@ -25,7 +25,7 @@ ], "object_events": [ { - "graphics_id": "68", + "graphics_id": "MAP_OBJ_GFX_CLERK", "x": 6, "y": 28, "elevation": 3, @@ -38,7 +38,7 @@ "flag": "0" }, { - "graphics_id": "19", + "graphics_id": "MAP_OBJ_GFX_BOY", "x": 19, "y": 16, "elevation": 3, diff --git a/data/maps/Route1/scripts.inc b/data/maps/Route1/scripts.inc index 16bd02597..ef784e8ee 100644 --- a/data/maps/Route1/scripts.inc +++ b/data/maps/Route1/scripts.inc @@ -4,13 +4,13 @@ Route1_MapScripts:: @ 8167EFD Route1_EventScript_167EFE:: @ 8167EFE lock faceplayer - checkflag FLAG_0x230 - goto_if_eq EventScript_167F48 + checkflag FLAG_GOT_POTION_ON_ROUTE_1 + goto_if TRUE, EventScript_167F48 msgbox gUnknown_818329D textcolor 3 checkitemspace ITEM_POTION, 1 compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_1A6BF9 + goto_if eq, EventScript_1A6BF9 getitemname 1, ITEM_POTION playfanfare MUS_FANFA1 message Text_1A51F6 @@ -19,7 +19,7 @@ Route1_EventScript_167EFE:: @ 8167EFE additem ITEM_POTION, 1 msgbox gUnknown_8183387 call EventScript_1A6675 - setflag FLAG_0x230 + setflag FLAG_GOT_POTION_ON_ROUTE_1 release end diff --git a/data/maps/Route10/map.json b/data/maps/Route10/map.json index d7ec8b3c9..04ea2bf57 100644 --- a/data/maps/Route10/map.json +++ b/data/maps/Route10/map.json @@ -25,7 +25,7 @@ ], "object_events": [ { - "graphics_id": "40", + "graphics_id": "MAP_OBJ_GFX_PICNICKER", "x": 7, "y": 60, "elevation": 3, @@ -38,7 +38,7 @@ "flag": "0" }, { - "graphics_id": "56", + "graphics_id": "MAP_OBJ_GFX_HIKER", "x": 4, "y": 62, "elevation": 3, @@ -51,7 +51,7 @@ "flag": "0" }, { - "graphics_id": "52", + "graphics_id": "MAP_OBJ_GFX_SUPER_NERD", "x": 15, "y": 70, "elevation": 3, @@ -64,7 +64,7 @@ "flag": "0" }, { - "graphics_id": "56", + "graphics_id": "MAP_OBJ_GFX_HIKER", "x": 4, "y": 68, "elevation": 3, @@ -77,7 +77,7 @@ "flag": "0" }, { - "graphics_id": "52", + "graphics_id": "MAP_OBJ_GFX_SUPER_NERD", "x": 13, "y": 44, "elevation": 3, @@ -90,7 +90,7 @@ "flag": "0" }, { - "graphics_id": "40", + "graphics_id": "MAP_OBJ_GFX_PICNICKER", "x": 9, "y": 27, "elevation": 3, @@ -103,7 +103,7 @@ "flag": "0" }, { - "graphics_id": "95", + "graphics_id": "MAP_OBJ_GFX_CUT_TREE", "x": 10, "y": 20, "elevation": 0, @@ -112,11 +112,11 @@ "movement_range_y": 1, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "Route10_EventScript_1BDF13", - "flag": "18" + "script": "EventScript_InteractWithCutTreeObject", + "flag": "FLAG_TEMP_12" }, { - "graphics_id": "95", + "graphics_id": "MAP_OBJ_GFX_CUT_TREE", "x": 10, "y": 22, "elevation": 0, @@ -125,11 +125,11 @@ "movement_range_y": 1, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "Route10_EventScript_1BDF13", - "flag": "19" + "script": "EventScript_InteractWithCutTreeObject", + "flag": "FLAG_TEMP_13" }, { - "graphics_id": "95", + "graphics_id": "MAP_OBJ_GFX_CUT_TREE", "x": 10, "y": 24, "elevation": 0, @@ -138,11 +138,11 @@ "movement_range_y": 1, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "Route10_EventScript_1BDF13", - "flag": "20" + "script": "EventScript_InteractWithCutTreeObject", + "flag": "FLAG_TEMP_14" }, { - "graphics_id": "95", + "graphics_id": "MAP_OBJ_GFX_CUT_TREE", "x": 10, "y": 26, "elevation": 0, @@ -151,8 +151,8 @@ "movement_range_y": 1, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "Route10_EventScript_1BDF13", - "flag": "21" + "script": "EventScript_InteractWithCutTreeObject", + "flag": "FLAG_TEMP_15" } ], "warp_events": [ @@ -221,8 +221,9 @@ "y": 19, "elevation": 0, "item": "ITEM_SUPER_POTION", - "flag": "9", - "unknown": 1 + "flag": "HIDDEN_ITEM_ROUTE10_SUPER_POTION", + "quantity": 1, + "underfoot": false }, { "type": "hidden_item", @@ -230,8 +231,9 @@ "y": 40, "elevation": 3, "item": "ITEM_MAX_ETHER", - "flag": "10", - "unknown": 1 + "flag": "HIDDEN_ITEM_ROUTE10_MAX_ETHER", + "quantity": 1, + "underfoot": false }, { "type": "hidden_item", @@ -239,8 +241,9 @@ "y": 26, "elevation": 3, "item": "ITEM_CHERI_BERRY", - "flag": "126", - "unknown": 1 + "flag": "HIDDEN_ITEM_ROUTE10_CHERI_BERRY", + "quantity": 1, + "underfoot": false }, { "type": "hidden_item", @@ -248,8 +251,9 @@ "y": 29, "elevation": 3, "item": "ITEM_PERSIM_BERRY", - "flag": "125", - "unknown": 1 + "flag": "HIDDEN_ITEM_ROUTE10_PERSIM_BERRY", + "quantity": 1, + "underfoot": false }, { "type": "hidden_item", @@ -257,8 +261,9 @@ "y": 57, "elevation": 3, "item": "ITEM_NANAB_BERRY", - "flag": "151", - "unknown": 1 + "flag": "HIDDEN_ITEM_ROUTE10_NANAB_BERRY", + "quantity": 1, + "underfoot": false } ] } diff --git a/data/maps/Route10_PokemonCenter_1F/map.json b/data/maps/Route10_PokemonCenter_1F/map.json index ad6d1d426..c6a6d57c6 100644 --- a/data/maps/Route10_PokemonCenter_1F/map.json +++ b/data/maps/Route10_PokemonCenter_1F/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "64", + "graphics_id": "MAP_OBJ_GFX_NURSE", "x": 7, "y": 2, "elevation": 0, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "61", + "graphics_id": "MAP_OBJ_GFX_GENTLEMAN", "x": 9, "y": 4, "elevation": 3, @@ -40,7 +40,7 @@ "flag": "0" }, { - "graphics_id": "27", + "graphics_id": "MAP_OBJ_GFX_FAT_MAN", "x": 2, "y": 3, "elevation": 3, @@ -53,7 +53,7 @@ "flag": "0" }, { - "graphics_id": "18", + "graphics_id": "MAP_OBJ_GFX_YOUNGSTER", "x": 14, "y": 6, "elevation": 3, @@ -66,7 +66,7 @@ "flag": "0" }, { - "graphics_id": "55", + "graphics_id": "MAP_OBJ_GFX_SCIENTIST", "x": 12, "y": 5, "elevation": 3, diff --git a/data/maps/Route10_PokemonCenter_1F/scripts.inc b/data/maps/Route10_PokemonCenter_1F/scripts.inc index 7d47d07df..44d9939c0 100644 --- a/data/maps/Route10_PokemonCenter_1F/scripts.inc +++ b/data/maps/Route10_PokemonCenter_1F/scripts.inc @@ -31,24 +31,24 @@ Route10_PokemonCenter_1F_EventScript_16FC65:: @ 816FC65 lock faceplayer call EventScript_16FCF1 - checkflag FLAG_0x2FA - goto_if_eq EventScript_16FCE7 + checkflag FLAG_GOT_EVERSTONE_FROM_OAKS_AIDE + goto_if TRUE, EventScript_16FCE7 msgbox gUnknown_819E5FB, MSGBOX_YESNO compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_1A7AD1 + goto_if eq, EventScript_1A7AD1 setvar VAR_0x8004, 0 specialvar VAR_RESULT, Special_GetPokedexCount getnumberstring 2, VAR_0x8006 call EventScript_16FCF1 compare_var_to_value VAR_0x8006, 20 - goto_if 0, EventScript_1A7ABD + goto_if lt, EventScript_1A7ABD msgbox gUnknown_819E733 checkitemspace ITEM_EVERSTONE, 1 compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_1A7AC7 + goto_if eq, EventScript_1A7AC7 additem ITEM_EVERSTONE, 1 giveitemfanfaremsg gUnknown_819E786, ITEM_EVERSTONE - setflag FLAG_0x2FA + setflag FLAG_GOT_EVERSTONE_FROM_OAKS_AIDE msgbox gUnknown_819E7AF release end diff --git a/data/maps/Route10_PokemonCenter_2F/map.json b/data/maps/Route10_PokemonCenter_2F/map.json index ccb14b3db..ba0d61e30 100644 --- a/data/maps/Route10_PokemonCenter_2F/map.json +++ b/data/maps/Route10_PokemonCenter_2F/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "65", + "graphics_id": "MAP_OBJ_GFX_CABLE_CLUB_RECEPTIONIST", "x": 6, "y": 2, "elevation": 3, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "65", + "graphics_id": "MAP_OBJ_GFX_CABLE_CLUB_RECEPTIONIST", "x": 2, "y": 2, "elevation": 3, @@ -40,7 +40,7 @@ "flag": "0" }, { - "graphics_id": "65", + "graphics_id": "MAP_OBJ_GFX_CABLE_CLUB_RECEPTIONIST", "x": 10, "y": 2, "elevation": 3, @@ -53,7 +53,7 @@ "flag": "0" }, { - "graphics_id": "69", + "graphics_id": "MAP_OBJ_GFX_MG_DELIVERYMAN", "x": 1, "y": 2, "elevation": 3, @@ -63,7 +63,7 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "Route10_PokemonCenter_2F_EventScript_1BB1D2", - "flag": "112" + "flag": "FLAG_HIDE_MG_DELIVERYMEN" } ], "warp_events": [ diff --git a/data/maps/Route11/map.json b/data/maps/Route11/map.json index 27e2a7d76..a7cf69d51 100644 --- a/data/maps/Route11/map.json +++ b/data/maps/Route11/map.json @@ -25,7 +25,7 @@ ], "object_events": [ { - "graphics_id": "18", + "graphics_id": "MAP_OBJ_GFX_YOUNGSTER", "x": 19, "y": 8, "elevation": 3, @@ -38,7 +38,7 @@ "flag": "0" }, { - "graphics_id": "32", + "graphics_id": "MAP_OBJ_GFX_OLD_MAN_1", "x": 16, "y": 17, "elevation": 3, @@ -51,7 +51,7 @@ "flag": "0" }, { - "graphics_id": "18", + "graphics_id": "MAP_OBJ_GFX_YOUNGSTER", "x": 31, "y": 8, "elevation": 3, @@ -64,7 +64,7 @@ "flag": "0" }, { - "graphics_id": "18", + "graphics_id": "MAP_OBJ_GFX_YOUNGSTER", "x": 28, "y": 10, "elevation": 3, @@ -77,7 +77,7 @@ "flag": "0" }, { - "graphics_id": "32", + "graphics_id": "MAP_OBJ_GFX_OLD_MAN_1", "x": 38, "y": 15, "elevation": 3, @@ -90,7 +90,7 @@ "flag": "0" }, { - "graphics_id": "32", + "graphics_id": "MAP_OBJ_GFX_OLD_MAN_1", "x": 50, "y": 4, "elevation": 3, @@ -103,7 +103,7 @@ "flag": "0" }, { - "graphics_id": "30", + "graphics_id": "MAP_OBJ_GFX_BALDING_MAN", "x": 42, "y": 8, "elevation": 3, @@ -116,7 +116,7 @@ "flag": "0" }, { - "graphics_id": "18", + "graphics_id": "MAP_OBJ_GFX_YOUNGSTER", "x": 50, "y": 14, "elevation": 3, @@ -129,7 +129,7 @@ "flag": "0" }, { - "graphics_id": "32", + "graphics_id": "MAP_OBJ_GFX_OLD_MAN_1", "x": 57, "y": 16, "elevation": 3, @@ -142,7 +142,7 @@ "flag": "0" }, { - "graphics_id": "30", + "graphics_id": "MAP_OBJ_GFX_BALDING_MAN", "x": 32, "y": 18, "elevation": 3, @@ -155,7 +155,7 @@ "flag": "0" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 42, "y": 12, "elevation": 3, @@ -165,10 +165,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "Route11_EventScript_1BEAF0", - "flag": "449" + "flag": "FLAG_HIDE_ROUTE11_X_DEFEND" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 63, "y": 13, "elevation": 3, @@ -178,10 +178,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "Route11_EventScript_1BEB99", - "flag": "462" + "flag": "FLAG_HIDE_ROUTE11_GREAT_BALL" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 13, "y": 3, "elevation": 3, @@ -191,7 +191,7 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "Route11_EventScript_1BEBA6", - "flag": "463" + "flag": "FLAG_HIDE_ROUTE11_AWAKENING" } ], "warp_events": [ @@ -232,8 +232,9 @@ "y": 5, "elevation": 0, "item": "ITEM_ESCAPE_ROPE", - "flag": "41", - "unknown": 1 + "flag": "HIDDEN_ITEM_ROUTE11_ESCAPE_ROPE", + "quantity": 1, + "underfoot": false } ] } diff --git a/data/maps/Route11_EastEntrance_1F/map.json b/data/maps/Route11_EastEntrance_1F/map.json index 752346bbd..2806f681c 100644 --- a/data/maps/Route11_EastEntrance_1F/map.json +++ b/data/maps/Route11_EastEntrance_1F/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "60", + "graphics_id": "MAP_OBJ_GFX_POLICEMAN", "x": 6, "y": 2, "elevation": 3, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "60", + "graphics_id": "MAP_OBJ_GFX_POLICEMAN", "x": 4, "y": 10, "elevation": 0, diff --git a/data/maps/Route11_EastEntrance_2F/map.json b/data/maps/Route11_EastEntrance_2F/map.json index 767612c7b..dfe0c5030 100644 --- a/data/maps/Route11_EastEntrance_2F/map.json +++ b/data/maps/Route11_EastEntrance_2F/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "18", + "graphics_id": "MAP_OBJ_GFX_YOUNGSTER", "x": 7, "y": 3, "elevation": 3, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "55", + "graphics_id": "MAP_OBJ_GFX_SCIENTIST", "x": 2, "y": 6, "elevation": 3, diff --git a/data/maps/Route11_EastEntrance_2F/scripts.inc b/data/maps/Route11_EastEntrance_2F/scripts.inc index 334e71ec4..0140d8de3 100644 --- a/data/maps/Route11_EastEntrance_2F/scripts.inc +++ b/data/maps/Route11_EastEntrance_2F/scripts.inc @@ -3,8 +3,8 @@ Route11_EastEntrance_2F_MapScripts:: @ 816FD34 Route11_EastEntrance_2F_EventScript_16FD35:: @ 816FD35 lockall - checkflag FLAG_0x253 - goto_if_eq EventScript_16FD49 + checkflag FLAG_WOKE_UP_ROUTE_12_SNORLAX + goto_if TRUE, EventScript_16FD49 msgbox gUnknown_819EC8A releaseall end @@ -23,20 +23,20 @@ Route11_EastEntrance_2F_EventScript_16FD5C:: @ 816FD5C faceplayer setvar VAR_0x8008, 4 call EventScript_1A8CAD - checkflag FLAG_0x251 - goto_if_eq EventScript_16FDCE + checkflag FLAG_DID_NINA_TRADE + goto_if TRUE, EventScript_16FDCE msgbox gUnknown_81A597B, MSGBOX_YESNO compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_16FDB6 + goto_if eq, EventScript_16FDB6 call EventScript_1A8CBD compare_var_to_value VAR_0x8004, 6 - goto_if 4, EventScript_16FDB6 + goto_if ge, EventScript_16FDB6 call EventScript_1A8CC9 compare_var_to_var VAR_RESULT, VAR_0x8009 - goto_if 5, EventScript_16FDC0 + goto_if ne, EventScript_16FDC0 call EventScript_1A8CD9 msgbox gUnknown_81A59DA - setflag FLAG_0x251 + setflag FLAG_DID_NINA_TRADE release end @@ -60,24 +60,24 @@ Route11_EastEntrance_2F_EventScript_16FDD8:: @ 816FDD8 lock faceplayer call EventScript_16FE64 - checkflag FLAG_0x252 - goto_if_eq EventScript_16FE5A + checkflag FLAG_GOT_ITEMFINDER + goto_if TRUE, EventScript_16FE5A msgbox gUnknown_819E9E5, MSGBOX_YESNO compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_1A7AD1 + goto_if eq, EventScript_1A7AD1 setvar VAR_0x8004, 0 specialvar VAR_RESULT, Special_GetPokedexCount getnumberstring 2, VAR_0x8006 call EventScript_16FE64 compare_var_to_value VAR_0x8006, 30 - goto_if 0, EventScript_1A7ABD + goto_if lt, EventScript_1A7ABD msgbox gUnknown_819EAE4 checkitemspace ITEM_ITEMFINDER, 1 compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_1A7AC7 + goto_if eq, EventScript_1A7AC7 additem ITEM_ITEMFINDER, 1 giveitemfanfaremsg gUnknown_819EB37, ITEM_ITEMFINDER - setflag FLAG_0x252 + setflag FLAG_GOT_ITEMFINDER msgbox gUnknown_819EB59 release end diff --git a/data/maps/Route12/map.json b/data/maps/Route12/map.json index b15dc4525..9d660528e 100644 --- a/data/maps/Route12/map.json +++ b/data/maps/Route12/map.json @@ -30,7 +30,7 @@ ], "object_events": [ { - "graphics_id": "57", + "graphics_id": "MAP_OBJ_GFX_FISHER", "x": 17, "y": 32, "elevation": 3, @@ -43,7 +43,7 @@ "flag": "0" }, { - "graphics_id": "57", + "graphics_id": "MAP_OBJ_GFX_FISHER", "x": 9, "y": 40, "elevation": 3, @@ -56,7 +56,7 @@ "flag": "0" }, { - "graphics_id": "57", + "graphics_id": "MAP_OBJ_GFX_FISHER", "x": 16, "y": 47, "elevation": 3, @@ -69,7 +69,7 @@ "flag": "0" }, { - "graphics_id": "57", + "graphics_id": "MAP_OBJ_GFX_FISHER", "x": 13, "y": 59, "elevation": 3, @@ -82,7 +82,7 @@ "flag": "0" }, { - "graphics_id": "109", + "graphics_id": "MAP_OBJ_GFX_SNORLAX", "x": 14, "y": 70, "elevation": 3, @@ -92,10 +92,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "Route12_EventScript_168014", - "flag": "84" + "flag": "FLAG_HIDE_ROUTE_12_SNORLAX" }, { - "graphics_id": "26", + "graphics_id": "MAP_OBJ_GFX_ROCKER", "x": 13, "y": 92, "elevation": 3, @@ -108,7 +108,7 @@ "flag": "0" }, { - "graphics_id": "39", + "graphics_id": "MAP_OBJ_GFX_CAMPER", "x": 10, "y": 99, "elevation": 3, @@ -121,7 +121,7 @@ "flag": "0" }, { - "graphics_id": "57", + "graphics_id": "MAP_OBJ_GFX_FISHER", "x": 18, "y": 108, "elevation": 3, @@ -134,7 +134,7 @@ "flag": "0" }, { - "graphics_id": "95", + "graphics_id": "MAP_OBJ_GFX_CUT_TREE", "x": 11, "y": 100, "elevation": 3, @@ -143,11 +143,11 @@ "movement_range_y": 1, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "Route12_EventScript_1BDF13", - "flag": "18" + "script": "EventScript_InteractWithCutTreeObject", + "flag": "FLAG_TEMP_12" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 18, "y": 36, "elevation": 3, @@ -157,10 +157,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "Route12_EventScript_1BE7B0", - "flag": "382" + "flag": "FLAG_HIDE_ROUTE12_TM48" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 9, "y": 101, "elevation": 3, @@ -170,10 +170,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "Route12_EventScript_1BE7BD", - "flag": "383" + "flag": "FLAG_HIDE_ROUTE12_IRON" }, { - "graphics_id": "29", + "graphics_id": "MAP_OBJ_GFX_BEAUTY", "x": 19, "y": 64, "elevation": 3, @@ -186,7 +186,7 @@ "flag": "0" }, { - "graphics_id": "25", + "graphics_id": "MAP_OBJ_GFX_MAN", "x": 19, "y": 63, "elevation": 3, @@ -199,7 +199,7 @@ "flag": "0" }, { - "graphics_id": "95", + "graphics_id": "MAP_OBJ_GFX_CUT_TREE", "x": 12, "y": 111, "elevation": 3, @@ -208,8 +208,8 @@ "movement_range_y": 1, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "Route12_EventScript_1BDF13", - "flag": "19" + "script": "EventScript_InteractWithCutTreeObject", + "flag": "FLAG_TEMP_13" } ], "warp_events": [ @@ -264,8 +264,9 @@ "y": 57, "elevation": 3, "item": "ITEM_HYPER_POTION", - "flag": "42", - "unknown": 1 + "flag": "HIDDEN_ITEM_ROUTE12_HYPER_POTION", + "quantity": 1, + "underfoot": false }, { "type": "hidden_item", @@ -273,8 +274,9 @@ "y": 70, "elevation": 3, "item": "ITEM_LEFTOVERS", - "flag": "131", - "unknown": 129 + "flag": "HIDDEN_ITEM_ROUTE12_LEFTOVERS", + "quantity": 1, + "underfoot": true }, { "type": "hidden_item", @@ -282,8 +284,9 @@ "y": 116, "elevation": 3, "item": "ITEM_RARE_CANDY", - "flag": "130", - "unknown": 1 + "flag": "HIDDEN_ITEM_ROUTE12_RARE_CANDY", + "quantity": 1, + "underfoot": false } ] } diff --git a/data/maps/Route12/scripts.inc b/data/maps/Route12/scripts.inc index 81be7952e..446d9047d 100644 --- a/data/maps/Route12/scripts.inc +++ b/data/maps/Route12/scripts.inc @@ -3,8 +3,8 @@ Route12_MapScripts:: @ 8168000 .byte 0 Route12_MapScript1_168006:: @ 8168006 - checkflag FLAG_0x807 - call_if 1, EventScript_168010 + checkflag FLAG_SYS_SPECIAL_WILD_BATTLE + call_if TRUE, EventScript_168010 end EventScript_168010:: @ 8168010 @@ -14,33 +14,33 @@ EventScript_168010:: @ 8168010 Route12_EventScript_168014:: @ 8168014 lock faceplayer - checkflag FLAG_0x23D - goto_if 0, EventScript_168099 + checkflag FLAG_GOT_POKE_FLUTE + goto_if FALSE, EventScript_168099 special sub_8110AB4 compare_var_to_value VAR_RESULT, 2 - goto_if_eq EventScript_1A7AE0 + goto_if eq, EventScript_1A7AE0 special sub_8112364 msgbox gUnknown_81853CC, MSGBOX_YESNO compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_16808D + goto_if eq, EventScript_16808D call EventScript_1A924B setwildbattle SPECIES_SNORLAX, 30, ITEM_NONE waitse playmoncry SPECIES_SNORLAX, 2 delay 40 waitmoncry - setflag FLAG_0x054 - setflag FLAG_0x807 - setflag FLAG_0x253 + setflag FLAG_HIDE_ROUTE_12_SNORLAX + setflag FLAG_SYS_SPECIAL_WILD_BATTLE + setflag FLAG_WOKE_UP_ROUTE_12_SNORLAX dowildbattle - clearflag FLAG_0x807 - specialvar VAR_RESULT, sub_80CA74C - compare_var_to_value VAR_RESULT, 1 - goto_if_eq EventScript_16808F - compare_var_to_value VAR_RESULT, 4 - goto_if_eq EventScript_16808F - compare_var_to_value VAR_RESULT, 5 - goto_if_eq EventScript_16808F + clearflag FLAG_SYS_SPECIAL_WILD_BATTLE + specialvar VAR_RESULT, Special_GetBattleOutcome + compare_var_to_value VAR_RESULT, B_OUTCOME_WON + goto_if eq, EventScript_16808F + compare_var_to_value VAR_RESULT, B_OUTCOME_RAN + goto_if eq, EventScript_16808F + compare_var_to_value VAR_RESULT, B_OUTCOME_PLAYER_TELEPORTED + goto_if eq, EventScript_16808F release end diff --git a/data/maps/Route12_FishingHouse/map.json b/data/maps/Route12_FishingHouse/map.json index 6706d8b02..366c3e2c7 100644 --- a/data/maps/Route12_FishingHouse/map.json +++ b/data/maps/Route12_FishingHouse/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "57", + "graphics_id": "MAP_OBJ_GFX_FISHER", "x": 4, "y": 4, "elevation": 3, diff --git a/data/maps/Route12_FishingHouse/scripts.inc b/data/maps/Route12_FishingHouse/scripts.inc index d4472473f..0f0aa4f68 100644 --- a/data/maps/Route12_FishingHouse/scripts.inc +++ b/data/maps/Route12_FishingHouse/scripts.inc @@ -4,11 +4,11 @@ Route12_FishingHouse_MapScripts:: @ 816FF0B Route12_FishingHouse_EventScript_16FF0C:: @ 816FF0C lock faceplayer - checkflag FLAG_0x255 - goto_if_eq EventScript_16FF7F + checkflag FLAG_GOT_SUPER_ROD + goto_if TRUE, EventScript_16FF7F msgbox gUnknown_819EFE0, MSGBOX_YESNO compare_var_to_value VAR_RESULT, 1 - goto_if_eq EventScript_16FF34 + goto_if eq, EventScript_16FF34 msgbox gUnknown_819F1FA release end @@ -16,11 +16,11 @@ Route12_FishingHouse_EventScript_16FF0C:: @ 816FF0C EventScript_16FF34:: @ 816FF34 checkitemspace ITEM_SUPER_ROD, 1 compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_16FF75 + goto_if eq, EventScript_16FF75 additem ITEM_SUPER_ROD, 1 msgbox gUnknown_819F05B giveitemfanfaremsg gUnknown_819F0B2, ITEM_SUPER_ROD - setflag FLAG_0x255 + setflag FLAG_GOT_SUPER_ROD msgbox gUnknown_819F0EB release end @@ -33,28 +33,28 @@ EventScript_16FF75:: @ 816FF75 EventScript_16FF7F:: @ 816FF7F special sub_8110AB4 compare_var_to_value VAR_RESULT, 2 - goto_if_eq EventScript_1A7AE0 + goto_if eq, EventScript_1A7AE0 special sub_8112364 setvar VAR_0x8004, SPECIES_MAGIKARP - specialvar VAR_RESULT, sub_80CC48C + specialvar VAR_RESULT, Special_PlayerPartyContainsSpecies compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_16FFF5 - special sub_80A096C + goto_if eq, EventScript_16FFF5 + special GetMagikarpSizeRecordInfo msgbox gUnknown_819F2DB - special sub_80BF8FC + special Special_ChooseMonFromParty waitstate copyvar VAR_RESULT, VAR_0x8004 compare_var_to_value VAR_RESULT, 6 - goto_if 4, EventScript_16FFFF - special sub_80A0984 + goto_if ge, EventScript_16FFFF + special CompareMagikarpSize compare_var_to_value VAR_RESULT, 1 - goto_if_eq EventScript_170001 + goto_if eq, EventScript_170001 compare_var_to_value VAR_RESULT, 2 - goto_if_eq EventScript_17000B + goto_if eq, EventScript_17000B compare_var_to_value VAR_RESULT, 3 - goto_if_eq EventScript_170031 + goto_if eq, EventScript_170031 compare_var_to_value VAR_RESULT, 4 - goto_if_eq EventScript_17001E + goto_if eq, EventScript_17001E release end @@ -73,25 +73,25 @@ EventScript_170001:: @ 8170001 end EventScript_17000B:: @ 817000B - checkflag FLAG_0x29C - goto_if 0, EventScript_170031 + checkflag FLAG_GOT_RECORD_SETTING_MAGIKARP + goto_if FALSE, EventScript_170031 msgbox gUnknown_819F40A release end EventScript_17001E:: @ 817001E - checkflag FLAG_0x29C - goto_if 0, EventScript_170031 + checkflag FLAG_GOT_RECORD_SETTING_MAGIKARP + goto_if FALSE, EventScript_170031 msgbox gUnknown_819F3CB release end EventScript_170031:: @ 8170031 - setflag FLAG_0x29C + setflag FLAG_GOT_RECORD_SETTING_MAGIKARP msgbox gUnknown_819F31B giveitem ITEM_NET_BALL compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_17005D + goto_if eq, EventScript_17005D msgbox gUnknown_819F395 release end @@ -103,14 +103,14 @@ EventScript_17005D:: @ 817005D Route12_FishingHouse_EventScript_170067:: @ 8170067 lockall - checkflag FLAG_0x29C - goto_if_eq EventScript_17007B + checkflag FLAG_GOT_RECORD_SETTING_MAGIKARP + goto_if TRUE, EventScript_17007B msgbox gUnknown_819F50C releaseall end EventScript_17007B:: @ 817007B - special sub_80A096C + special GetMagikarpSizeRecordInfo msgbox gUnknown_819F4CF releaseall end diff --git a/data/maps/Route12_NorthEntrance_1F/map.json b/data/maps/Route12_NorthEntrance_1F/map.json index 7c4beb37a..a133ae23f 100644 --- a/data/maps/Route12_NorthEntrance_1F/map.json +++ b/data/maps/Route12_NorthEntrance_1F/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "60", + "graphics_id": "MAP_OBJ_GFX_POLICEMAN", "x": 1, "y": 5, "elevation": 3, diff --git a/data/maps/Route12_NorthEntrance_2F/map.json b/data/maps/Route12_NorthEntrance_2F/map.json index 4b1ed933e..687ac9bf6 100644 --- a/data/maps/Route12_NorthEntrance_2F/map.json +++ b/data/maps/Route12_NorthEntrance_2F/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "22", + "graphics_id": "MAP_OBJ_GFX_LASS", "x": 7, "y": 5, "elevation": 3, diff --git a/data/maps/Route12_NorthEntrance_2F/scripts.inc b/data/maps/Route12_NorthEntrance_2F/scripts.inc index 3c8727208..fe288a6d1 100644 --- a/data/maps/Route12_NorthEntrance_2F/scripts.inc +++ b/data/maps/Route12_NorthEntrance_2F/scripts.inc @@ -12,20 +12,20 @@ Route12_NorthEntrance_2F_EventScript_16FE81:: @ 816FE81 Route12_NorthEntrance_2F_EventScript_16FE8A:: @ 816FE8A lock faceplayer - checkflag FLAG_0x25B - goto_if_eq EventScript_16FF01 + checkflag FLAG_GOT_TM27 + goto_if TRUE, EventScript_16FF01 checkplayergender compare_var_to_value VAR_RESULT, 0 - call_if 1, EventScript_16FEE5 + call_if eq, EventScript_16FEE5 compare_var_to_value VAR_RESULT, 1 - call_if 1, EventScript_16FEEE + call_if eq, EventScript_16FEEE checkitemspace ITEM_TM27, 1 compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_16FEF7 + goto_if eq, EventScript_16FEF7 additem ITEM_TM27, 1 giveitemfanfaremsg gUnknown_819EE9F, ITEM_TM27 msgbox gUnknown_819EEC6 - setflag FLAG_0x25B + setflag FLAG_GOT_TM27 release end diff --git a/data/maps/Route13/map.json b/data/maps/Route13/map.json index 919048b8d..86a682dfb 100644 --- a/data/maps/Route13/map.json +++ b/data/maps/Route13/map.json @@ -25,7 +25,7 @@ ], "object_events": [ { - "graphics_id": "40", + "graphics_id": "MAP_OBJ_GFX_PICNICKER", "x": 62, "y": 6, "elevation": 3, @@ -38,7 +38,7 @@ "flag": "0" }, { - "graphics_id": "26", + "graphics_id": "MAP_OBJ_GFX_ROCKER", "x": 63, "y": 12, "elevation": 3, @@ -51,7 +51,7 @@ "flag": "0" }, { - "graphics_id": "40", + "graphics_id": "MAP_OBJ_GFX_PICNICKER", "x": 54, "y": 11, "elevation": 3, @@ -64,7 +64,7 @@ "flag": "0" }, { - "graphics_id": "29", + "graphics_id": "MAP_OBJ_GFX_BEAUTY", "x": 42, "y": 7, "elevation": 3, @@ -77,7 +77,7 @@ "flag": "0" }, { - "graphics_id": "29", + "graphics_id": "MAP_OBJ_GFX_BEAUTY", "x": 43, "y": 7, "elevation": 3, @@ -90,7 +90,7 @@ "flag": "0" }, { - "graphics_id": "40", + "graphics_id": "MAP_OBJ_GFX_PICNICKER", "x": 35, "y": 10, "elevation": 3, @@ -103,7 +103,7 @@ "flag": "0" }, { - "graphics_id": "40", + "graphics_id": "MAP_OBJ_GFX_PICNICKER", "x": 29, "y": 11, "elevation": 3, @@ -116,7 +116,7 @@ "flag": "0" }, { - "graphics_id": "26", + "graphics_id": "MAP_OBJ_GFX_ROCKER", "x": 9, "y": 14, "elevation": 3, @@ -129,7 +129,7 @@ "flag": "0" }, { - "graphics_id": "26", + "graphics_id": "MAP_OBJ_GFX_ROCKER", "x": 16, "y": 5, "elevation": 3, @@ -142,7 +142,7 @@ "flag": "0" }, { - "graphics_id": "53", + "graphics_id": "MAP_OBJ_GFX_BIKER", "x": 14, "y": 8, "elevation": 3, @@ -155,7 +155,7 @@ "flag": "0" }, { - "graphics_id": "95", + "graphics_id": "MAP_OBJ_GFX_CUT_TREE", "x": 44, "y": 5, "elevation": 3, @@ -164,8 +164,8 @@ "movement_range_y": 1, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "Route13_EventScript_1BDF13", - "flag": "18" + "script": "EventScript_InteractWithCutTreeObject", + "flag": "FLAG_TEMP_12" } ], "warp_events": [], @@ -198,8 +198,9 @@ "y": 14, "elevation": 3, "item": "ITEM_PP_UP", - "flag": "15", - "unknown": 1 + "flag": "HIDDEN_ITEM_ROUTE13_PP_UP", + "quantity": 1, + "underfoot": false } ] } diff --git a/data/maps/Route14/map.json b/data/maps/Route14/map.json index 38dc65678..831e178d6 100644 --- a/data/maps/Route14/map.json +++ b/data/maps/Route14/map.json @@ -25,7 +25,7 @@ ], "object_events": [ { - "graphics_id": "53", + "graphics_id": "MAP_OBJ_GFX_BIKER", "x": 7, "y": 37, "elevation": 3, @@ -38,7 +38,7 @@ "flag": "0" }, { - "graphics_id": "26", + "graphics_id": "MAP_OBJ_GFX_ROCKER", "x": 18, "y": 35, "elevation": 3, @@ -51,7 +51,7 @@ "flag": "0" }, { - "graphics_id": "26", + "graphics_id": "MAP_OBJ_GFX_ROCKER", "x": 10, "y": 14, "elevation": 3, @@ -64,7 +64,7 @@ "flag": "0" }, { - "graphics_id": "26", + "graphics_id": "MAP_OBJ_GFX_ROCKER", "x": 16, "y": 16, "elevation": 3, @@ -77,7 +77,7 @@ "flag": "0" }, { - "graphics_id": "53", + "graphics_id": "MAP_OBJ_GFX_BIKER", "x": 7, "y": 31, "elevation": 3, @@ -90,7 +90,7 @@ "flag": "0" }, { - "graphics_id": "53", + "graphics_id": "MAP_OBJ_GFX_BIKER", "x": 7, "y": 34, "elevation": 3, @@ -103,7 +103,7 @@ "flag": "0" }, { - "graphics_id": "26", + "graphics_id": "MAP_OBJ_GFX_ROCKER", "x": 8, "y": 9, "elevation": 3, @@ -116,7 +116,7 @@ "flag": "0" }, { - "graphics_id": "26", + "graphics_id": "MAP_OBJ_GFX_ROCKER", "x": 7, "y": 6, "elevation": 3, @@ -129,7 +129,7 @@ "flag": "0" }, { - "graphics_id": "53", + "graphics_id": "MAP_OBJ_GFX_BIKER", "x": 10, "y": 37, "elevation": 3, @@ -142,7 +142,7 @@ "flag": "0" }, { - "graphics_id": "26", + "graphics_id": "MAP_OBJ_GFX_ROCKER", "x": 18, "y": 47, "elevation": 3, @@ -155,7 +155,7 @@ "flag": "0" }, { - "graphics_id": "95", + "graphics_id": "MAP_OBJ_GFX_CUT_TREE", "x": 7, "y": 26, "elevation": 3, @@ -164,11 +164,11 @@ "movement_range_y": 1, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "Route14_EventScript_1BDF13", - "flag": "18" + "script": "EventScript_InteractWithCutTreeObject", + "flag": "FLAG_TEMP_12" }, { - "graphics_id": "95", + "graphics_id": "MAP_OBJ_GFX_CUT_TREE", "x": 12, "y": 35, "elevation": 3, @@ -177,11 +177,11 @@ "movement_range_y": 1, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "Route14_EventScript_1BDF13", - "flag": "19" + "script": "EventScript_InteractWithCutTreeObject", + "flag": "FLAG_TEMP_13" }, { - "graphics_id": "95", + "graphics_id": "MAP_OBJ_GFX_CUT_TREE", "x": 1, "y": 47, "elevation": 3, @@ -190,11 +190,11 @@ "movement_range_y": 1, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "Route14_EventScript_1BDF13", - "flag": "20" + "script": "EventScript_InteractWithCutTreeObject", + "flag": "FLAG_TEMP_14" }, { - "graphics_id": "17", + "graphics_id": "MAP_OBJ_GFX_LITTLE_GIRL", "x": 13, "y": 51, "elevation": 3, @@ -207,7 +207,7 @@ "flag": "0" }, { - "graphics_id": "17", + "graphics_id": "MAP_OBJ_GFX_LITTLE_GIRL", "x": 12, "y": 51, "elevation": 3, @@ -236,8 +236,9 @@ "y": 20, "elevation": 3, "item": "ITEM_ZINC", - "flag": "149", - "unknown": 1 + "flag": "HIDDEN_ITEM_ROUTE14_ZINC", + "quantity": 1, + "underfoot": false }, { "type": "hidden_item", @@ -245,8 +246,9 @@ "y": 53, "elevation": 3, "item": "ITEM_PINAP_BERRY", - "flag": "157", - "unknown": 1 + "flag": "HIDDEN_ITEM_ROUTE14_PINAP_BERRY", + "quantity": 1, + "underfoot": false } ] } diff --git a/data/maps/Route15/map.json b/data/maps/Route15/map.json index cdf6e21d1..6d33098a6 100644 --- a/data/maps/Route15/map.json +++ b/data/maps/Route15/map.json @@ -25,7 +25,7 @@ ], "object_events": [ { - "graphics_id": "40", + "graphics_id": "MAP_OBJ_GFX_PICNICKER", "x": 22, "y": 13, "elevation": 3, @@ -38,7 +38,7 @@ "flag": "0" }, { - "graphics_id": "26", + "graphics_id": "MAP_OBJ_GFX_ROCKER", "x": 31, "y": 12, "elevation": 3, @@ -51,7 +51,7 @@ "flag": "0" }, { - "graphics_id": "26", + "graphics_id": "MAP_OBJ_GFX_ROCKER", "x": 37, "y": 14, "elevation": 3, @@ -64,7 +64,7 @@ "flag": "0" }, { - "graphics_id": "40", + "graphics_id": "MAP_OBJ_GFX_PICNICKER", "x": 44, "y": 13, "elevation": 3, @@ -77,7 +77,7 @@ "flag": "0" }, { - "graphics_id": "29", + "graphics_id": "MAP_OBJ_GFX_BEAUTY", "x": 50, "y": 12, "elevation": 3, @@ -90,7 +90,7 @@ "flag": "0" }, { - "graphics_id": "53", + "graphics_id": "MAP_OBJ_GFX_BIKER", "x": 59, "y": 12, "elevation": 3, @@ -103,7 +103,7 @@ "flag": "0" }, { - "graphics_id": "53", + "graphics_id": "MAP_OBJ_GFX_BIKER", "x": 63, "y": 13, "elevation": 3, @@ -116,7 +116,7 @@ "flag": "0" }, { - "graphics_id": "40", + "graphics_id": "MAP_OBJ_GFX_PICNICKER", "x": 52, "y": 8, "elevation": 3, @@ -129,7 +129,7 @@ "flag": "0" }, { - "graphics_id": "29", + "graphics_id": "MAP_OBJ_GFX_BEAUTY", "x": 54, "y": 12, "elevation": 3, @@ -142,7 +142,7 @@ "flag": "0" }, { - "graphics_id": "40", + "graphics_id": "MAP_OBJ_GFX_PICNICKER", "x": 28, "y": 6, "elevation": 3, @@ -155,7 +155,7 @@ "flag": "0" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 20, "y": 6, "elevation": 3, @@ -165,10 +165,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "Route15_EventScript_1BE7CA", - "flag": "384" + "flag": "FLAG_HIDE_ROUTE15_TM18" }, { - "graphics_id": "54", + "graphics_id": "MAP_OBJ_GFX_BLACKBELT", "x": 39, "y": 7, "elevation": 3, @@ -181,7 +181,7 @@ "flag": "0" }, { - "graphics_id": "24", + "graphics_id": "MAP_OBJ_GFX_BATTLE_GIRL", "x": 40, "y": 7, "elevation": 3, diff --git a/data/maps/Route15_WestEntrance_1F/map.json b/data/maps/Route15_WestEntrance_1F/map.json index 5d94699d2..745e9e2c2 100644 --- a/data/maps/Route15_WestEntrance_1F/map.json +++ b/data/maps/Route15_WestEntrance_1F/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "60", + "graphics_id": "MAP_OBJ_GFX_POLICEMAN", "x": 6, "y": 2, "elevation": 3, diff --git a/data/maps/Route15_WestEntrance_2F/map.json b/data/maps/Route15_WestEntrance_2F/map.json index aa86a9719..fc6391217 100644 --- a/data/maps/Route15_WestEntrance_2F/map.json +++ b/data/maps/Route15_WestEntrance_2F/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "55", + "graphics_id": "MAP_OBJ_GFX_SCIENTIST", "x": 5, "y": 5, "elevation": 3, diff --git a/data/maps/Route15_WestEntrance_2F/scripts.inc b/data/maps/Route15_WestEntrance_2F/scripts.inc index 1e06c0394..1b491d4e5 100644 --- a/data/maps/Route15_WestEntrance_2F/scripts.inc +++ b/data/maps/Route15_WestEntrance_2F/scripts.inc @@ -9,7 +9,7 @@ Route15_WestEntrance_2F_EventScript_170093:: @ 8170093 waitbuttonpress erasemonpic setvar VAR_0x8004, SPECIES_ARTICUNO - special sub_80CBDCC + special Special_SetSeenMon releaseall end @@ -21,24 +21,24 @@ Route15_WestEntrance_2F_EventScript_1700B9:: @ 81700B9 lock faceplayer call EventScript_170145 - checkflag FLAG_0x256 - goto_if_eq EventScript_17013B + checkflag FLAG_GOT_EXP_SHARE_FROM_OAKS_AIDE + goto_if TRUE, EventScript_17013B msgbox gUnknown_819F5AB, MSGBOX_YESNO compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_1A7AD1 + goto_if eq, EventScript_1A7AD1 setvar VAR_0x8004, 0 specialvar VAR_RESULT, Special_GetPokedexCount getnumberstring 2, VAR_0x8006 call EventScript_170145 compare_var_to_value VAR_0x8006, 50 - goto_if 0, EventScript_1A7ABD + goto_if lt, EventScript_1A7ABD msgbox gUnknown_819F6AA checkitemspace ITEM_EXP_SHARE, 1 compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_1A7AC7 + goto_if eq, EventScript_1A7AC7 additem ITEM_EXP_SHARE, 1 giveitemfanfaremsg gUnknown_819F6FD, ITEM_EXP_SHARE - setflag FLAG_0x256 + setflag FLAG_GOT_EXP_SHARE_FROM_OAKS_AIDE msgbox gUnknown_819F71F release end diff --git a/data/maps/Route16/map.json b/data/maps/Route16/map.json index 528dd30b6..f6dc03f3e 100644 --- a/data/maps/Route16/map.json +++ b/data/maps/Route16/map.json @@ -25,7 +25,7 @@ ], "object_events": [ { - "graphics_id": "53", + "graphics_id": "MAP_OBJ_GFX_BIKER", "x": 16, "y": 12, "elevation": 3, @@ -38,7 +38,7 @@ "flag": "0" }, { - "graphics_id": "53", + "graphics_id": "MAP_OBJ_GFX_BIKER", "x": 14, "y": 14, "elevation": 3, @@ -51,7 +51,7 @@ "flag": "0" }, { - "graphics_id": "53", + "graphics_id": "MAP_OBJ_GFX_BIKER", "x": 12, "y": 12, "elevation": 3, @@ -64,7 +64,7 @@ "flag": "0" }, { - "graphics_id": "53", + "graphics_id": "MAP_OBJ_GFX_BIKER", "x": 8, "y": 12, "elevation": 3, @@ -77,7 +77,7 @@ "flag": "0" }, { - "graphics_id": "53", + "graphics_id": "MAP_OBJ_GFX_BIKER", "x": 10, "y": 14, "elevation": 3, @@ -90,7 +90,7 @@ "flag": "0" }, { - "graphics_id": "53", + "graphics_id": "MAP_OBJ_GFX_BIKER", "x": 6, "y": 14, "elevation": 3, @@ -103,7 +103,7 @@ "flag": "0" }, { - "graphics_id": "95", + "graphics_id": "MAP_OBJ_GFX_CUT_TREE", "x": 41, "y": 11, "elevation": 3, @@ -112,11 +112,11 @@ "movement_range_y": 1, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "Route16_EventScript_1BDF13", - "flag": "18" + "script": "EventScript_InteractWithCutTreeObject", + "flag": "FLAG_TEMP_12" }, { - "graphics_id": "29", + "graphics_id": "MAP_OBJ_GFX_BEAUTY", "x": 30, "y": 5, "elevation": 3, @@ -129,7 +129,7 @@ "flag": "0" }, { - "graphics_id": "25", + "graphics_id": "MAP_OBJ_GFX_MAN", "x": 31, "y": 5, "elevation": 3, @@ -142,7 +142,7 @@ "flag": "0" }, { - "graphics_id": "109", + "graphics_id": "MAP_OBJ_GFX_SNORLAX", "x": 31, "y": 13, "elevation": 3, @@ -152,7 +152,7 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "Route16_EventScript_168121", - "flag": "128" + "flag": "FLAG_HIDE_ROUTE_16_SNORLAX" } ], "warp_events": [ @@ -214,8 +214,9 @@ "y": 13, "elevation": 3, "item": "ITEM_LEFTOVERS", - "flag": "132", - "unknown": 129 + "flag": "HIDDEN_ITEM_ROUTE16_LEFTOVERS", + "quantity": 1, + "underfoot": true } ] } diff --git a/data/maps/Route16/scripts.inc b/data/maps/Route16/scripts.inc index e5fd83934..0bc8d6c8a 100644 --- a/data/maps/Route16/scripts.inc +++ b/data/maps/Route16/scripts.inc @@ -5,8 +5,8 @@ Route16_MapScripts:: @ 81680E5 .byte 0 Route16_MapScript1_1680F5:: @ 81680F5 - checkflag FLAG_0x807 - call_if 1, EventScript_1680FF + checkflag FLAG_SYS_SPECIAL_WILD_BATTLE + call_if TRUE, EventScript_1680FF end EventScript_1680FF:: @ 81680FF @@ -15,11 +15,11 @@ EventScript_1680FF:: @ 81680FF Route16_MapScript2_168103:: @ 8168103 compare_var_to_value VAR_MAP_SCENE_ROUTE16, 1 - call_if 1, EventScript_16810F + call_if eq, EventScript_16810F end EventScript_16810F:: @ 816810F - setflag FLAG_0x830 + setflag FLAG_SYS_ON_CYCLING_ROAD return Route16_MapScript3_168113:: @ 8168113 @@ -27,38 +27,38 @@ Route16_MapScript3_168113:: @ 8168113 .2byte 0 EventScript_16811D:: @ 816811D - special sub_80CA630 + special Special_ForcePlayerOntoBike end Route16_EventScript_168121:: @ 8168121 lock faceplayer - checkflag FLAG_0x23D - goto_if 0, EventScript_1681A3 + checkflag FLAG_GOT_POKE_FLUTE + goto_if FALSE, EventScript_1681A3 special sub_8110AB4 compare_var_to_value VAR_RESULT, 2 - goto_if_eq EventScript_1A7AE0 + goto_if eq, EventScript_1A7AE0 special sub_8112364 msgbox gUnknown_81853CC, MSGBOX_YESNO compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_168197 + goto_if eq, EventScript_168197 call EventScript_1A924B setwildbattle SPECIES_SNORLAX, 30, ITEM_NONE waitse playmoncry SPECIES_SNORLAX, 2 delay 40 waitmoncry - setflag FLAG_0x080 - setflag FLAG_0x807 + setflag FLAG_HIDE_ROUTE_16_SNORLAX + setflag FLAG_SYS_SPECIAL_WILD_BATTLE dowildbattle - clearflag FLAG_0x807 - specialvar VAR_RESULT, sub_80CA74C - compare_var_to_value VAR_RESULT, 1 - goto_if_eq EventScript_168199 - compare_var_to_value VAR_RESULT, 4 - goto_if_eq EventScript_168199 - compare_var_to_value VAR_RESULT, 5 - goto_if_eq EventScript_168199 + clearflag FLAG_SYS_SPECIAL_WILD_BATTLE + specialvar VAR_RESULT, Special_GetBattleOutcome + compare_var_to_value VAR_RESULT, B_OUTCOME_WON + goto_if eq, EventScript_168199 + compare_var_to_value VAR_RESULT, B_OUTCOME_RAN + goto_if eq, EventScript_168199 + compare_var_to_value VAR_RESULT, B_OUTCOME_PLAYER_TELEPORTED + goto_if eq, EventScript_168199 release end diff --git a/data/maps/Route16_House/map.json b/data/maps/Route16_House/map.json index c848e5b76..eb7e79232 100644 --- a/data/maps/Route16_House/map.json +++ b/data/maps/Route16_House/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "23", + "graphics_id": "MAP_OBJ_GFX_WOMAN_1", "x": 4, "y": 2, "elevation": 3, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "133", + "graphics_id": "MAP_OBJ_GFX_FEAROW", "x": 9, "y": 3, "elevation": 3, diff --git a/data/maps/Route16_House/scripts.inc b/data/maps/Route16_House/scripts.inc index 82cc7a6f4..6da2bb12a 100644 --- a/data/maps/Route16_House/scripts.inc +++ b/data/maps/Route16_House/scripts.inc @@ -4,16 +4,16 @@ Route16_House_MapScripts:: @ 817014E Route16_House_EventScript_17014F:: @ 817014F lock faceplayer - checkflag FLAG_0x238 - goto_if_eq EventScript_1701A5 + checkflag FLAG_GOT_HM02 + goto_if TRUE, EventScript_1701A5 msgbox gUnknown_819F851 checkitemspace ITEM_HM02, 1 compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_17019B + goto_if eq, EventScript_17019B additem ITEM_HM02, 1 giveitemfanfaremsg gUnknown_819F8C0, ITEM_HM02 msgbox gUnknown_819F8E0 - setflag FLAG_0x238 + setflag FLAG_GOT_HM02 release end diff --git a/data/maps/Route16_NorthEntrance_1F/map.json b/data/maps/Route16_NorthEntrance_1F/map.json index 8ee9a145a..52272f873 100644 --- a/data/maps/Route16_NorthEntrance_1F/map.json +++ b/data/maps/Route16_NorthEntrance_1F/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "60", + "graphics_id": "MAP_OBJ_GFX_POLICEMAN", "x": 6, "y": 8, "elevation": 3, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "32", + "graphics_id": "MAP_OBJ_GFX_OLD_MAN_1", "x": 7, "y": 4, "elevation": 3, diff --git a/data/maps/Route16_NorthEntrance_1F/scripts.inc b/data/maps/Route16_NorthEntrance_1F/scripts.inc index c30f309fd..32d392818 100644 --- a/data/maps/Route16_NorthEntrance_1F/scripts.inc +++ b/data/maps/Route16_NorthEntrance_1F/scripts.inc @@ -3,9 +3,9 @@ Route16_NorthEntrance_1F_MapScripts:: @ 81701C2 .byte 0 Route16_NorthEntrance_1F_MapScript1_1701C8:: @ 81701C8 - clearflag FLAG_0x830 - checkflag FLAG_0x271 - call_if 1, EventScript_1701D5 + clearflag FLAG_SYS_ON_CYCLING_ROAD + checkflag FLAG_GOT_BICYCLE + call_if TRUE, EventScript_1701D5 end EventScript_1701D5:: @ 81701D5 @@ -54,13 +54,13 @@ EventScript_170220:: @ 8170220 waitmovement 0 delay 20 compare_var_to_value VAR_0x8008, 1 - call_if 1, EventScript_170279 + call_if eq, EventScript_170279 compare_var_to_value VAR_0x8008, 2 - call_if 1, EventScript_170284 + call_if eq, EventScript_170284 compare_var_to_value VAR_0x8008, 3 - call_if 1, EventScript_17028F + call_if eq, EventScript_17028F compare_var_to_value VAR_0x8008, 4 - call_if 1, EventScript_17029A + call_if eq, EventScript_17029A msgbox gUnknown_819F95F closemessage applymovement 255, Movement_1702B3 diff --git a/data/maps/Route16_NorthEntrance_2F/map.json b/data/maps/Route16_NorthEntrance_2F/map.json index 22f87439e..adec1e6b3 100644 --- a/data/maps/Route16_NorthEntrance_2F/map.json +++ b/data/maps/Route16_NorthEntrance_2F/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "16", + "graphics_id": "MAP_OBJ_GFX_LITTLE_BOY", "x": 6, "y": 3, "elevation": 3, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "17", + "graphics_id": "MAP_OBJ_GFX_LITTLE_GIRL", "x": 4, "y": 8, "elevation": 3, @@ -40,7 +40,7 @@ "flag": "0" }, { - "graphics_id": "55", + "graphics_id": "MAP_OBJ_GFX_SCIENTIST", "x": 10, "y": 6, "elevation": 0, diff --git a/data/maps/Route16_NorthEntrance_2F/scripts.inc b/data/maps/Route16_NorthEntrance_2F/scripts.inc index 6fa870c27..777967038 100644 --- a/data/maps/Route16_NorthEntrance_2F/scripts.inc +++ b/data/maps/Route16_NorthEntrance_2F/scripts.inc @@ -21,24 +21,24 @@ Route16_NorthEntrance_2F_EventScript_1702E3:: @ 81702E3 lock faceplayer call EventScript_17036F - checkflag FLAG_0x2FD - goto_if_eq EventScript_170365 + checkflag FLAG_GOT_AMULET_COIN_FROM_OAKS_AIDE + goto_if TRUE, EventScript_170365 msgbox gUnknown_819FB0E, MSGBOX_YESNO compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_1A7AD1 + goto_if eq, EventScript_1A7AD1 setvar VAR_0x8004, 0 specialvar VAR_RESULT, Special_GetPokedexCount getnumberstring 2, VAR_0x8006 call EventScript_17036F compare_var_to_value VAR_0x8006, 40 - goto_if 0, EventScript_1A7ABD + goto_if lt, EventScript_1A7ABD msgbox gUnknown_819FC15 checkitemspace ITEM_AMULET_COIN, 1 compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_1A7AC7 + goto_if eq, EventScript_1A7AC7 additem ITEM_AMULET_COIN, 1 giveitemfanfaremsg gUnknown_819FC68, ITEM_AMULET_COIN - setflag FLAG_0x2FD + setflag FLAG_GOT_AMULET_COIN_FROM_OAKS_AIDE msgbox gUnknown_819FC93 release end diff --git a/data/maps/Route17/map.json b/data/maps/Route17/map.json index 104649674..7158ae516 100644 --- a/data/maps/Route17/map.json +++ b/data/maps/Route17/map.json @@ -25,7 +25,7 @@ ], "object_events": [ { - "graphics_id": "53", + "graphics_id": "MAP_OBJ_GFX_BIKER", "x": 4, "y": 18, "elevation": 3, @@ -38,7 +38,7 @@ "flag": "0" }, { - "graphics_id": "53", + "graphics_id": "MAP_OBJ_GFX_BIKER", "x": 11, "y": 15, "elevation": 3, @@ -51,7 +51,7 @@ "flag": "0" }, { - "graphics_id": "53", + "graphics_id": "MAP_OBJ_GFX_BIKER", "x": 15, "y": 24, "elevation": 3, @@ -64,7 +64,7 @@ "flag": "0" }, { - "graphics_id": "53", + "graphics_id": "MAP_OBJ_GFX_BIKER", "x": 18, "y": 41, "elevation": 3, @@ -77,7 +77,7 @@ "flag": "0" }, { - "graphics_id": "53", + "graphics_id": "MAP_OBJ_GFX_BIKER", "x": 7, "y": 38, "elevation": 3, @@ -90,7 +90,7 @@ "flag": "0" }, { - "graphics_id": "53", + "graphics_id": "MAP_OBJ_GFX_BIKER", "x": 2, "y": 61, "elevation": 3, @@ -103,7 +103,7 @@ "flag": "0" }, { - "graphics_id": "53", + "graphics_id": "MAP_OBJ_GFX_BIKER", "x": 21, "y": 61, "elevation": 3, @@ -116,7 +116,7 @@ "flag": "0" }, { - "graphics_id": "53", + "graphics_id": "MAP_OBJ_GFX_BIKER", "x": 18, "y": 94, "elevation": 3, @@ -129,7 +129,7 @@ "flag": "0" }, { - "graphics_id": "53", + "graphics_id": "MAP_OBJ_GFX_BIKER", "x": 16, "y": 134, "elevation": 3, @@ -142,7 +142,7 @@ "flag": "0" }, { - "graphics_id": "53", + "graphics_id": "MAP_OBJ_GFX_BIKER", "x": 4, "y": 116, "elevation": 3, @@ -206,8 +206,9 @@ "y": 83, "elevation": 3, "item": "ITEM_RARE_CANDY", - "flag": "17", - "unknown": 1 + "flag": "HIDDEN_ITEM_ROUTE17_RARE_CANDY", + "quantity": 1, + "underfoot": false }, { "type": "hidden_item", @@ -215,8 +216,9 @@ "y": 53, "elevation": 3, "item": "ITEM_FULL_RESTORE", - "flag": "18", - "unknown": 1 + "flag": "HIDDEN_ITEM_ROUTE17_FULL_RESTORE", + "quantity": 1, + "underfoot": false }, { "type": "hidden_item", @@ -224,8 +226,9 @@ "y": 68, "elevation": 3, "item": "ITEM_PP_UP", - "flag": "19", - "unknown": 1 + "flag": "HIDDEN_ITEM_ROUTE17_PP_UP", + "quantity": 1, + "underfoot": false }, { "type": "hidden_item", @@ -233,8 +236,9 @@ "y": 125, "elevation": 3, "item": "ITEM_MAX_REVIVE", - "flag": "20", - "unknown": 1 + "flag": "HIDDEN_ITEM_ROUTE17_MAX_REVIVE", + "quantity": 1, + "underfoot": false }, { "type": "hidden_item", @@ -242,8 +246,9 @@ "y": 157, "elevation": 3, "item": "ITEM_MAX_ELIXIR", - "flag": "21", - "unknown": 1 + "flag": "HIDDEN_ITEM_ROUTE17_MAX_ELIXIR", + "quantity": 1, + "underfoot": false } ] } diff --git a/data/maps/Route18/map.json b/data/maps/Route18/map.json index 48301e386..9ced2a41f 100644 --- a/data/maps/Route18/map.json +++ b/data/maps/Route18/map.json @@ -25,7 +25,7 @@ ], "object_events": [ { - "graphics_id": "26", + "graphics_id": "MAP_OBJ_GFX_ROCKER", "x": 46, "y": 14, "elevation": 3, @@ -38,7 +38,7 @@ "flag": "0" }, { - "graphics_id": "26", + "graphics_id": "MAP_OBJ_GFX_ROCKER", "x": 41, "y": 15, "elevation": 3, @@ -51,7 +51,7 @@ "flag": "0" }, { - "graphics_id": "26", + "graphics_id": "MAP_OBJ_GFX_ROCKER", "x": 39, "y": 12, "elevation": 3, diff --git a/data/maps/Route18/scripts.inc b/data/maps/Route18/scripts.inc index 548fdeeb6..cc6d11221 100644 --- a/data/maps/Route18/scripts.inc +++ b/data/maps/Route18/scripts.inc @@ -5,11 +5,11 @@ Route18_MapScripts:: @ 81681F6 Route18_MapScript1_168201:: @ 8168201 compare_var_to_value VAR_MAP_SCENE_ROUTE16, 1 - call_if 1, EventScript_16820D + call_if eq, EventScript_16820D end EventScript_16820D:: @ 816820D - setflag FLAG_0x830 + setflag FLAG_SYS_ON_CYCLING_ROAD return Route18_MapScript2_168211:: @ 8168211 @@ -17,7 +17,7 @@ Route18_MapScript2_168211:: @ 8168211 .2byte 0 EventScript_16821B:: @ 816821B - special sub_80CA630 + special Special_ForcePlayerOntoBike end Route18_EventScript_16821F:: @ 816821F diff --git a/data/maps/Route18_EastEntrance_1F/map.json b/data/maps/Route18_EastEntrance_1F/map.json index 610a84f34..803722807 100644 --- a/data/maps/Route18_EastEntrance_1F/map.json +++ b/data/maps/Route18_EastEntrance_1F/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "60", + "graphics_id": "MAP_OBJ_GFX_POLICEMAN", "x": 6, "y": 2, "elevation": 3, diff --git a/data/maps/Route18_EastEntrance_1F/scripts.inc b/data/maps/Route18_EastEntrance_1F/scripts.inc index 70a8d196b..784d1d37f 100644 --- a/data/maps/Route18_EastEntrance_1F/scripts.inc +++ b/data/maps/Route18_EastEntrance_1F/scripts.inc @@ -3,9 +3,9 @@ Route18_EastEntrance_1F_MapScripts:: @ 8170378 .byte 0 Route18_EastEntrance_1F_MapScript1_17037E:: @ 817037E - clearflag FLAG_0x830 - checkflag FLAG_0x271 - call_if 1, EventScript_17038B + clearflag FLAG_SYS_ON_CYCLING_ROAD + checkflag FLAG_GOT_BICYCLE + call_if TRUE, EventScript_17038B end EventScript_17038B:: @ 817038B @@ -54,13 +54,13 @@ EventScript_1703D6:: @ 81703D6 waitmovement 0 delay 20 compare_var_to_value VAR_0x8008, 1 - call_if 1, EventScript_17042F + call_if eq, EventScript_17042F compare_var_to_value VAR_0x8008, 2 - call_if 1, EventScript_17043A + call_if eq, EventScript_17043A compare_var_to_value VAR_0x8008, 3 - call_if 1, EventScript_170445 + call_if eq, EventScript_170445 compare_var_to_value VAR_0x8008, 4 - call_if 1, EventScript_170450 + call_if eq, EventScript_170450 msgbox gUnknown_819FD0C closemessage applymovement 255, Movement_170469 diff --git a/data/maps/Route18_EastEntrance_2F/map.json b/data/maps/Route18_EastEntrance_2F/map.json index 3f981016e..5731ecd8c 100644 --- a/data/maps/Route18_EastEntrance_2F/map.json +++ b/data/maps/Route18_EastEntrance_2F/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "19", + "graphics_id": "MAP_OBJ_GFX_BOY", "x": 5, "y": 3, "elevation": 3, diff --git a/data/maps/Route18_EastEntrance_2F/scripts.inc b/data/maps/Route18_EastEntrance_2F/scripts.inc index 204a0f879..d262aad30 100644 --- a/data/maps/Route18_EastEntrance_2F/scripts.inc +++ b/data/maps/Route18_EastEntrance_2F/scripts.inc @@ -14,20 +14,20 @@ Route18_EastEntrance_2F_EventScript_17047E:: @ 817047E faceplayer setvar VAR_0x8008, 5 call EventScript_1A8CAD - checkflag FLAG_0x257 - goto_if_eq EventScript_1704F0 + checkflag FLAG_DID_MARC_TRADE + goto_if TRUE, EventScript_1704F0 msgbox gUnknown_81A597B, MSGBOX_YESNO compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_1704D8 + goto_if eq, EventScript_1704D8 call EventScript_1A8CBD compare_var_to_value VAR_0x8004, 6 - goto_if 4, EventScript_1704D8 + goto_if ge, EventScript_1704D8 call EventScript_1A8CC9 compare_var_to_var VAR_RESULT, VAR_0x8009 - goto_if 5, EventScript_1704E2 + goto_if ne, EventScript_1704E2 call EventScript_1A8CD9 msgbox gUnknown_81A59DA - setflag FLAG_0x257 + setflag FLAG_DID_MARC_TRADE release end diff --git a/data/maps/Route19/map.json b/data/maps/Route19/map.json index 111cf1b71..439c5f405 100644 --- a/data/maps/Route19/map.json +++ b/data/maps/Route19/map.json @@ -25,7 +25,7 @@ ], "object_events": [ { - "graphics_id": "45", + "graphics_id": "MAP_OBJ_GFX_SWIMMER_M_LAND", "x": 15, "y": 10, "elevation": 3, @@ -38,7 +38,7 @@ "flag": "0" }, { - "graphics_id": "45", + "graphics_id": "MAP_OBJ_GFX_SWIMMER_M_LAND", "x": 10, "y": 9, "elevation": 3, @@ -51,7 +51,7 @@ "flag": "0" }, { - "graphics_id": "43", + "graphics_id": "MAP_OBJ_GFX_SWIMMER_M_WATER", "x": 12, "y": 17, "elevation": 1, @@ -64,7 +64,7 @@ "flag": "0" }, { - "graphics_id": "43", + "graphics_id": "MAP_OBJ_GFX_SWIMMER_M_WATER", "x": 18, "y": 33, "elevation": 1, @@ -77,7 +77,7 @@ "flag": "0" }, { - "graphics_id": "43", + "graphics_id": "MAP_OBJ_GFX_SWIMMER_M_WATER", "x": 8, "y": 27, "elevation": 1, @@ -90,7 +90,7 @@ "flag": "0" }, { - "graphics_id": "43", + "graphics_id": "MAP_OBJ_GFX_SWIMMER_M_WATER", "x": 16, "y": 22, "elevation": 1, @@ -103,7 +103,7 @@ "flag": "0" }, { - "graphics_id": "43", + "graphics_id": "MAP_OBJ_GFX_SWIMMER_M_WATER", "x": 11, "y": 47, "elevation": 1, @@ -116,7 +116,7 @@ "flag": "0" }, { - "graphics_id": "44", + "graphics_id": "MAP_OBJ_GFX_SWIMMER_F_WATER", "x": 14, "y": 48, "elevation": 1, @@ -129,7 +129,7 @@ "flag": "0" }, { - "graphics_id": "44", + "graphics_id": "MAP_OBJ_GFX_SWIMMER_F_WATER", "x": 12, "y": 49, "elevation": 1, @@ -142,7 +142,7 @@ "flag": "0" }, { - "graphics_id": "44", + "graphics_id": "MAP_OBJ_GFX_SWIMMER_F_WATER", "x": 9, "y": 48, "elevation": 1, @@ -155,7 +155,7 @@ "flag": "0" }, { - "graphics_id": "44", + "graphics_id": "MAP_OBJ_GFX_SWIMMER_F_WATER", "x": 8, "y": 41, "elevation": 1, @@ -168,7 +168,7 @@ "flag": "0" }, { - "graphics_id": "36", + "graphics_id": "MAP_OBJ_GFX_TUBER_M_1", "x": 9, "y": 41, "elevation": 1, diff --git a/data/maps/Route2/map.json b/data/maps/Route2/map.json index 33ed43697..c211c5b72 100644 --- a/data/maps/Route2/map.json +++ b/data/maps/Route2/map.json @@ -25,7 +25,7 @@ ], "object_events": [ { - "graphics_id": "95", + "graphics_id": "MAP_OBJ_GFX_CUT_TREE", "x": 16, "y": 62, "elevation": 3, @@ -34,11 +34,11 @@ "movement_range_y": 1, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "Route2_EventScript_1BDF13", - "flag": "20" + "script": "EventScript_InteractWithCutTreeObject", + "flag": "FLAG_TEMP_14" }, { - "graphics_id": "95", + "graphics_id": "MAP_OBJ_GFX_CUT_TREE", "x": 15, "y": 69, "elevation": 3, @@ -47,11 +47,11 @@ "movement_range_y": 1, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "Route2_EventScript_1BDF13", - "flag": "19" + "script": "EventScript_InteractWithCutTreeObject", + "flag": "FLAG_TEMP_13" }, { - "graphics_id": "95", + "graphics_id": "MAP_OBJ_GFX_CUT_TREE", "x": 11, "y": 13, "elevation": 3, @@ -60,11 +60,11 @@ "movement_range_y": 1, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "Route2_EventScript_1BDF13", - "flag": "21" + "script": "EventScript_InteractWithCutTreeObject", + "flag": "FLAG_TEMP_15" }, { - "graphics_id": "95", + "graphics_id": "MAP_OBJ_GFX_CUT_TREE", "x": 18, "y": 26, "elevation": 3, @@ -73,11 +73,11 @@ "movement_range_y": 1, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "Route2_EventScript_1BDF13", - "flag": "22" + "script": "EventScript_InteractWithCutTreeObject", + "flag": "FLAG_TEMP_16" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 17, "y": 54, "elevation": 3, @@ -87,10 +87,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "Route2_EventScript_1BE58E", - "flag": "340" + "flag": "FLAG_HIDE_ROUTE2_ETHER" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 17, "y": 64, "elevation": 3, @@ -100,7 +100,7 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "Route2_EventScript_1BE59B", - "flag": "341" + "flag": "FLAG_HIDE_ROUTE2_PARALYZE_HEAL" }, { "graphics_id": "65375", diff --git a/data/maps/Route20/map.json b/data/maps/Route20/map.json index 8f1011ad4..231efcf51 100644 --- a/data/maps/Route20/map.json +++ b/data/maps/Route20/map.json @@ -25,7 +25,7 @@ ], "object_events": [ { - "graphics_id": "44", + "graphics_id": "MAP_OBJ_GFX_SWIMMER_F_WATER", "x": 8, "y": 11, "elevation": 1, @@ -38,7 +38,7 @@ "flag": "0" }, { - "graphics_id": "40", + "graphics_id": "MAP_OBJ_GFX_PICNICKER", "x": 16, "y": 14, "elevation": 3, @@ -51,7 +51,7 @@ "flag": "0" }, { - "graphics_id": "44", + "graphics_id": "MAP_OBJ_GFX_SWIMMER_F_WATER", "x": 34, "y": 7, "elevation": 1, @@ -64,7 +64,7 @@ "flag": "0" }, { - "graphics_id": "26", + "graphics_id": "MAP_OBJ_GFX_ROCKER", "x": 43, "y": 9, "elevation": 3, @@ -77,7 +77,7 @@ "flag": "0" }, { - "graphics_id": "43", + "graphics_id": "MAP_OBJ_GFX_SWIMMER_M_WATER", "x": 23, "y": 10, "elevation": 1, @@ -90,7 +90,7 @@ "flag": "0" }, { - "graphics_id": "40", + "graphics_id": "MAP_OBJ_GFX_PICNICKER", "x": 73, "y": 16, "elevation": 3, @@ -103,7 +103,7 @@ "flag": "0" }, { - "graphics_id": "43", + "graphics_id": "MAP_OBJ_GFX_SWIMMER_M_WATER", "x": 111, "y": 9, "elevation": 1, @@ -116,7 +116,7 @@ "flag": "0" }, { - "graphics_id": "43", + "graphics_id": "MAP_OBJ_GFX_SWIMMER_M_WATER", "x": 106, "y": 11, "elevation": 1, @@ -129,7 +129,7 @@ "flag": "0" }, { - "graphics_id": "44", + "graphics_id": "MAP_OBJ_GFX_SWIMMER_F_WATER", "x": 93, "y": 10, "elevation": 1, @@ -142,7 +142,7 @@ "flag": "0" }, { - "graphics_id": "44", + "graphics_id": "MAP_OBJ_GFX_SWIMMER_F_WATER", "x": 54, "y": 11, "elevation": 1, @@ -155,7 +155,7 @@ "flag": "0" }, { - "graphics_id": "39", + "graphics_id": "MAP_OBJ_GFX_CAMPER", "x": 69, "y": 3, "elevation": 3, @@ -206,8 +206,9 @@ "y": 6, "elevation": 3, "item": "ITEM_STARDUST", - "flag": "153", - "unknown": 1 + "flag": "HIDDEN_ITEM_ROUTE20_STARDUST", + "quantity": 1, + "underfoot": false } ] } diff --git a/data/maps/Route20/scripts.inc b/data/maps/Route20/scripts.inc index d99bebdd7..be0098a71 100644 --- a/data/maps/Route20/scripts.inc +++ b/data/maps/Route20/scripts.inc @@ -3,30 +3,30 @@ Route20_MapScripts:: @ 816823B .byte 0 Route20_MapScript1_168241:: @ 8168241 - checkflag FLAG_0x2D2 - call_if 0, EventScript_168254 - checkflag FLAG_0x2D3 - call_if 0, EventScript_16826D + checkflag FLAG_STOPPED_SEAFOAM_B3F_CURRENT + call_if FALSE, EventScript_168254 + checkflag FLAG_STOPPED_SEAFOAM_B4F_CURRENT + call_if FALSE, EventScript_16826D end EventScript_168254:: @ 8168254 - clearflag FLAG_0x040 - clearflag FLAG_0x041 - setflag FLAG_0x042 - setflag FLAG_0x043 - setflag FLAG_0x044 - setflag FLAG_0x045 - setflag FLAG_0x046 - setflag FLAG_0x047 + clearflag FLAG_HIDE_SEAFOAM_1F_BOULDER_1 + clearflag FLAG_HIDE_SEAFOAM_1F_BOULDER_2 + setflag FLAG_HIDE_SEAFOAM_B1F_BOULDER_1 + setflag FLAG_HIDE_SEAFOAM_B1F_BOULDER_2 + setflag FLAG_HIDE_SEAFOAM_B2F_BOULDER_1 + setflag FLAG_HIDE_SEAFOAM_B2F_BOULDER_2 + setflag FLAG_HIDE_SEAFOAM_B3F_BOULDER_1 + setflag FLAG_HIDE_SEAFOAM_B3F_BOULDER_2 return EventScript_16826D:: @ 816826D - clearflag FLAG_0x048 - clearflag FLAG_0x049 - clearflag FLAG_0x04A - clearflag FLAG_0x04B - setflag FLAG_0x04C - setflag FLAG_0x04D + clearflag FLAG_HIDE_SEAFOAM_B3F_BOULDER_3 + clearflag FLAG_HIDE_SEAFOAM_B3F_BOULDER_4 + clearflag FLAG_HIDE_SEAFOAM_B3F_BOULDER_5 + clearflag FLAG_HIDE_SEAFOAM_B3F_BOULDER_6 + setflag FLAG_HIDE_SEAFOAM_B4F_BOULDER_1 + setflag FLAG_HIDE_SEAFOAM_B4F_BOULDER_2 return Route20_EventScript_168280:: @ 8168280 diff --git a/data/maps/Route21_North/map.json b/data/maps/Route21_North/map.json index e52d7ff94..8d504c75c 100644 --- a/data/maps/Route21_North/map.json +++ b/data/maps/Route21_North/map.json @@ -25,7 +25,7 @@ ], "object_events": [ { - "graphics_id": "57", + "graphics_id": "MAP_OBJ_GFX_FISHER", "x": 7, "y": 27, "elevation": 3, @@ -38,7 +38,7 @@ "flag": "0" }, { - "graphics_id": "57", + "graphics_id": "MAP_OBJ_GFX_FISHER", "x": 16, "y": 26, "elevation": 3, @@ -51,7 +51,7 @@ "flag": "0" }, { - "graphics_id": "43", + "graphics_id": "MAP_OBJ_GFX_SWIMMER_M_WATER", "x": 12, "y": 44, "elevation": 1, @@ -64,7 +64,7 @@ "flag": "0" }, { - "graphics_id": "44", + "graphics_id": "MAP_OBJ_GFX_SWIMMER_F_WATER", "x": 14, "y": 35, "elevation": 1, @@ -77,7 +77,7 @@ "flag": "0" }, { - "graphics_id": "36", + "graphics_id": "MAP_OBJ_GFX_TUBER_M_1", "x": 15, "y": 35, "elevation": 1, @@ -112,8 +112,9 @@ "y": 42, "elevation": 3, "item": "ITEM_PEARL", - "flag": "154", - "unknown": 1 + "flag": "HIDDEN_ITEM_ROUTE21_NORTH_PEARL", + "quantity": 1, + "underfoot": false } ] } diff --git a/data/maps/Route21_South/map.json b/data/maps/Route21_South/map.json index e863fbdb9..0895e18f1 100644 --- a/data/maps/Route21_South/map.json +++ b/data/maps/Route21_South/map.json @@ -25,7 +25,7 @@ ], "object_events": [ { - "graphics_id": "57", + "graphics_id": "MAP_OBJ_GFX_FISHER", "x": 11, "y": 8, "elevation": 3, @@ -38,7 +38,7 @@ "flag": "0" }, { - "graphics_id": "57", + "graphics_id": "MAP_OBJ_GFX_FISHER", "x": 14, "y": 15, "elevation": 3, @@ -51,7 +51,7 @@ "flag": "0" }, { - "graphics_id": "43", + "graphics_id": "MAP_OBJ_GFX_SWIMMER_M_WATER", "x": 15, "y": 24, "elevation": 1, @@ -64,7 +64,7 @@ "flag": "0" }, { - "graphics_id": "43", + "graphics_id": "MAP_OBJ_GFX_SWIMMER_M_WATER", "x": 15, "y": 38, "elevation": 1, @@ -77,7 +77,7 @@ "flag": "0" }, { - "graphics_id": "43", + "graphics_id": "MAP_OBJ_GFX_SWIMMER_M_WATER", "x": 10, "y": 29, "elevation": 1, diff --git a/data/maps/Route22/map.json b/data/maps/Route22/map.json index c03b8068d..1b3e558b4 100644 --- a/data/maps/Route22/map.json +++ b/data/maps/Route22/map.json @@ -25,7 +25,7 @@ ], "object_events": [ { - "graphics_id": "72", + "graphics_id": "MAP_OBJ_GFX_BLUE", "x": 25, "y": 4, "elevation": 3, @@ -35,7 +35,7 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "0x0", - "flag": "79" + "flag": "FLAG_HIDE_ROUTE_22_RIVAL" } ], "warp_events": [ @@ -60,7 +60,7 @@ "x": 33, "y": 4, "elevation": 3, - "var": "VAR_0x4054", + "var": "VAR_MAP_SCENE_ROUTE22", "var_value": 1, "script": "Route22_EventScript_16828C" }, @@ -69,7 +69,7 @@ "x": 33, "y": 5, "elevation": 3, - "var": "VAR_0x4054", + "var": "VAR_MAP_SCENE_ROUTE22", "var_value": 1, "script": "Route22_EventScript_168298" }, @@ -78,7 +78,7 @@ "x": 33, "y": 6, "elevation": 0, - "var": "VAR_0x4054", + "var": "VAR_MAP_SCENE_ROUTE22", "var_value": 1, "script": "Route22_EventScript_1682AB" }, @@ -87,7 +87,7 @@ "x": 33, "y": 4, "elevation": 3, - "var": "VAR_0x4054", + "var": "VAR_MAP_SCENE_ROUTE22", "var_value": 3, "script": "Route22_EventScript_1683ED" }, @@ -96,7 +96,7 @@ "x": 33, "y": 5, "elevation": 3, - "var": "VAR_0x4054", + "var": "VAR_MAP_SCENE_ROUTE22", "var_value": 3, "script": "Route22_EventScript_1683F9" }, @@ -105,7 +105,7 @@ "x": 33, "y": 6, "elevation": 0, - "var": "VAR_0x4054", + "var": "VAR_MAP_SCENE_ROUTE22", "var_value": 3, "script": "Route22_EventScript_16840C" } diff --git a/data/maps/Route22/scripts.inc b/data/maps/Route22/scripts.inc index 6df018f2f..8a775e09c 100644 --- a/data/maps/Route22/scripts.inc +++ b/data/maps/Route22/scripts.inc @@ -32,32 +32,32 @@ EventScript_1682BE:: @ 81682BE playbgm MUS_RIVAL1, 0 addobject 1 compare_var_to_value VAR_0x4001, 0 - call_if 1, EventScript_168350 + call_if eq, EventScript_168350 compare_var_to_value VAR_0x4001, 1 - call_if 1, EventScript_168350 + call_if eq, EventScript_168350 compare_var_to_value VAR_0x4001, 2 - call_if 1, EventScript_16835B + call_if eq, EventScript_16835B delay 6 msgbox gUnknown_8188890 compare_var_to_value VAR_STARTER_MON, 2 - call_if 1, EventScript_16836D + call_if eq, EventScript_16836D compare_var_to_value VAR_STARTER_MON, 1 - call_if 1, EventScript_16837C + call_if eq, EventScript_16837C compare_var_to_value VAR_STARTER_MON, 0 - call_if 1, EventScript_16838B + call_if eq, EventScript_16838B msgbox gUnknown_8188974 closemessage delay 10 playbgm MUS_RIVAL2, 0 compare_var_to_value VAR_0x4001, 0 - call_if 1, EventScript_16839A + call_if eq, EventScript_16839A compare_var_to_value VAR_0x4001, 1 - call_if 1, EventScript_16839A + call_if eq, EventScript_16839A compare_var_to_value VAR_0x4001, 2 - call_if 1, EventScript_1683A5 + call_if eq, EventScript_1683A5 fadedefaultbgm removeobject 1 - setvar VAR_0x4054, 2 + setvar VAR_MAP_SCENE_ROUTE22, 2 releaseall end @@ -73,15 +73,15 @@ EventScript_16835B:: @ 816835B return EventScript_16836D:: @ 816836D - trainerbattle 9, 329, 0, Text_188959, Text_18DE1A + trainerbattle TRAINER_BATTLE_TUTORIAL, TRAINER_RIVAL_ROUTE22_EARLY_SQUIRTLE, 0, Text_188959, Text_18DE1A return EventScript_16837C:: @ 816837C - trainerbattle 9, 330, 0, Text_188959, Text_18DE1A + trainerbattle TRAINER_BATTLE_TUTORIAL, TRAINER_RIVAL_ROUTE22_EARLY_BULBASAUR, 0, Text_188959, Text_18DE1A return EventScript_16838B:: @ 816838B - trainerbattle 9, 331, 0, Text_188959, Text_18DE1A + trainerbattle TRAINER_BATTLE_TUTORIAL, TRAINER_RIVAL_ROUTE22_EARLY_CHARMANDER, 0, Text_188959, Text_18DE1A return EventScript_16839A:: @ 816839A @@ -198,19 +198,19 @@ EventScript_16841F:: @ 816841F playbgm MUS_RIVAL1, 0 addobject 1 compare_var_to_value VAR_0x4001, 0 - call_if 1, EventScript_16849C + call_if eq, EventScript_16849C compare_var_to_value VAR_0x4001, 1 - call_if 1, EventScript_16849C + call_if eq, EventScript_16849C compare_var_to_value VAR_0x4001, 2 - call_if 1, EventScript_1684A7 + call_if eq, EventScript_1684A7 msgbox gUnknown_8188A3C setvar VAR_LAST_TALKED, 1 compare_var_to_value VAR_STARTER_MON, 2 - call_if 1, EventScript_1684B9 + call_if eq, EventScript_1684B9 compare_var_to_value VAR_STARTER_MON, 1 - call_if 1, EventScript_1684C4 + call_if eq, EventScript_1684C4 compare_var_to_value VAR_STARTER_MON, 0 - call_if 1, EventScript_1684CF + call_if eq, EventScript_1684CF msgbox gUnknown_8188B29 closemessage delay 10 @@ -219,7 +219,7 @@ EventScript_16841F:: @ 816841F waitmovement 0 fadedefaultbgm removeobject 1 - setvar VAR_0x4054, 4 + setvar VAR_MAP_SCENE_ROUTE22, 4 releaseall end @@ -235,15 +235,15 @@ EventScript_1684A7:: @ 81684A7 return EventScript_1684B9:: @ 81684B9 - trainerbattle 3, 435, 0, Text_188B08 + trainerbattle TRAINER_BATTLE_SINGLE_NO_INTRO_TEXT, TRAINER_RIVAL_ROUTE22_LATE_SQUIRTLE, 0, Text_188B08 return EventScript_1684C4:: @ 81684C4 - trainerbattle 3, 436, 0, Text_188B08 + trainerbattle TRAINER_BATTLE_SINGLE_NO_INTRO_TEXT, TRAINER_RIVAL_ROUTE22_LATE_BULBASAUR, 0, Text_188B08 return EventScript_1684CF:: @ 81684CF - trainerbattle 3, 437, 0, Text_188B08 + trainerbattle TRAINER_BATTLE_SINGLE_NO_INTRO_TEXT, TRAINER_RIVAL_ROUTE22_LATE_CHARMANDER, 0, Text_188B08 return Movement_1684DA:: @ 81684DA diff --git a/data/maps/Route22_NorthEntrance/map.json b/data/maps/Route22_NorthEntrance/map.json index f1f379416..1a034d844 100644 --- a/data/maps/Route22_NorthEntrance/map.json +++ b/data/maps/Route22_NorthEntrance/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "60", + "graphics_id": "MAP_OBJ_GFX_POLICEMAN", "x": 8, "y": 2, "elevation": 3, @@ -63,7 +63,7 @@ "x": 7, "y": 2, "elevation": 3, - "var": "VAR_0x405F", + "var": "VAR_MAP_SCENE_ROUTE23", "var_value": 0, "script": "Route22_NorthEntrance_EventScript_17050D" } diff --git a/data/maps/Route23/map.json b/data/maps/Route23/map.json index 0daa60650..f9d0f142e 100644 --- a/data/maps/Route23/map.json +++ b/data/maps/Route23/map.json @@ -25,7 +25,7 @@ ], "object_events": [ { - "graphics_id": "60", + "graphics_id": "MAP_OBJ_GFX_POLICEMAN", "x": 15, "y": 149, "elevation": 3, @@ -38,7 +38,7 @@ "flag": "0" }, { - "graphics_id": "60", + "graphics_id": "MAP_OBJ_GFX_POLICEMAN", "x": 8, "y": 140, "elevation": 3, @@ -51,7 +51,7 @@ "flag": "0" }, { - "graphics_id": "60", + "graphics_id": "MAP_OBJ_GFX_POLICEMAN", "x": 14, "y": 123, "elevation": 3, @@ -64,7 +64,7 @@ "flag": "0" }, { - "graphics_id": "60", + "graphics_id": "MAP_OBJ_GFX_POLICEMAN", "x": 16, "y": 112, "elevation": 3, @@ -77,7 +77,7 @@ "flag": "0" }, { - "graphics_id": "60", + "graphics_id": "MAP_OBJ_GFX_POLICEMAN", "x": 10, "y": 94, "elevation": 3, @@ -90,7 +90,7 @@ "flag": "0" }, { - "graphics_id": "60", + "graphics_id": "MAP_OBJ_GFX_POLICEMAN", "x": 14, "y": 61, "elevation": 3, @@ -103,7 +103,7 @@ "flag": "0" }, { - "graphics_id": "60", + "graphics_id": "MAP_OBJ_GFX_POLICEMAN", "x": 6, "y": 35, "elevation": 3, @@ -152,7 +152,7 @@ "x": 13, "y": 149, "elevation": 3, - "var": "VAR_0x405F", + "var": "VAR_MAP_SCENE_ROUTE23", "var_value": 1, "script": "Route23_EventScript_168583" }, @@ -161,7 +161,7 @@ "x": 7, "y": 140, "elevation": 3, - "var": "VAR_0x405F", + "var": "VAR_MAP_SCENE_ROUTE23", "var_value": 2, "script": "Route23_EventScript_168598" }, @@ -170,7 +170,7 @@ "x": 12, "y": 123, "elevation": 3, - "var": "VAR_0x405F", + "var": "VAR_MAP_SCENE_ROUTE23", "var_value": 3, "script": "Route23_EventScript_1685AD" }, @@ -179,7 +179,7 @@ "x": 11, "y": 111, "elevation": 0, - "var": "VAR_0x405F", + "var": "VAR_MAP_SCENE_ROUTE23", "var_value": 4, "script": "Route23_EventScript_1685C2" }, @@ -188,7 +188,7 @@ "x": 9, "y": 94, "elevation": 1, - "var": "VAR_0x405F", + "var": "VAR_MAP_SCENE_ROUTE23", "var_value": 5, "script": "Route23_EventScript_1685D7" }, @@ -197,7 +197,7 @@ "x": 12, "y": 61, "elevation": 3, - "var": "VAR_0x405F", + "var": "VAR_MAP_SCENE_ROUTE23", "var_value": 6, "script": "Route23_EventScript_1685EC" }, @@ -206,7 +206,7 @@ "x": 1, "y": 35, "elevation": 0, - "var": "VAR_0x405F", + "var": "VAR_MAP_SCENE_ROUTE23", "var_value": 7, "script": "Route23_EventScript_168601" }, @@ -215,7 +215,7 @@ "x": 1, "y": 34, "elevation": 0, - "var": "VAR_0x405F", + "var": "VAR_MAP_SCENE_ROUTE23", "var_value": 7, "script": "Route23_EventScript_168601" }, @@ -224,7 +224,7 @@ "x": 1, "y": 32, "elevation": 3, - "var": "VAR_0x405F", + "var": "VAR_MAP_SCENE_ROUTE23", "var_value": 7, "script": "Route23_EventScript_168601" }, @@ -233,7 +233,7 @@ "x": 1, "y": 33, "elevation": 0, - "var": "VAR_0x405F", + "var": "VAR_MAP_SCENE_ROUTE23", "var_value": 7, "script": "Route23_EventScript_168601" }, @@ -242,7 +242,7 @@ "x": 1, "y": 31, "elevation": 0, - "var": "VAR_0x405F", + "var": "VAR_MAP_SCENE_ROUTE23", "var_value": 7, "script": "Route23_EventScript_168601" }, @@ -251,7 +251,7 @@ "x": 1, "y": 36, "elevation": 0, - "var": "VAR_0x405F", + "var": "VAR_MAP_SCENE_ROUTE23", "var_value": 7, "script": "Route23_EventScript_168601" }, @@ -260,7 +260,7 @@ "x": 5, "y": 35, "elevation": 3, - "var": "VAR_0x405F", + "var": "VAR_MAP_SCENE_ROUTE23", "var_value": 7, "script": "Route23_EventScript_168601" }, @@ -269,7 +269,7 @@ "x": 4, "y": 35, "elevation": 3, - "var": "VAR_0x405F", + "var": "VAR_MAP_SCENE_ROUTE23", "var_value": 7, "script": "Route23_EventScript_168601" }, @@ -278,7 +278,7 @@ "x": 10, "y": 60, "elevation": 0, - "var": "VAR_0x405F", + "var": "VAR_MAP_SCENE_ROUTE23", "var_value": 6, "script": "Route23_EventScript_1685EC" }, @@ -287,7 +287,7 @@ "x": 13, "y": 61, "elevation": 3, - "var": "VAR_0x405F", + "var": "VAR_MAP_SCENE_ROUTE23", "var_value": 6, "script": "Route23_EventScript_1685EC" }, @@ -296,7 +296,7 @@ "x": 11, "y": 60, "elevation": 0, - "var": "VAR_0x405F", + "var": "VAR_MAP_SCENE_ROUTE23", "var_value": 6, "script": "Route23_EventScript_1685EC" }, @@ -305,7 +305,7 @@ "x": 8, "y": 94, "elevation": 1, - "var": "VAR_0x405F", + "var": "VAR_MAP_SCENE_ROUTE23", "var_value": 5, "script": "Route23_EventScript_1685D7" }, @@ -314,7 +314,7 @@ "x": 5, "y": 92, "elevation": 1, - "var": "VAR_0x405F", + "var": "VAR_MAP_SCENE_ROUTE23", "var_value": 5, "script": "Route23_EventScript_1685D7" }, @@ -323,7 +323,7 @@ "x": 7, "y": 94, "elevation": 1, - "var": "VAR_0x405F", + "var": "VAR_MAP_SCENE_ROUTE23", "var_value": 5, "script": "Route23_EventScript_1685D7" }, @@ -332,7 +332,7 @@ "x": 4, "y": 92, "elevation": 1, - "var": "VAR_0x405F", + "var": "VAR_MAP_SCENE_ROUTE23", "var_value": 5, "script": "Route23_EventScript_1685D7" }, @@ -341,7 +341,7 @@ "x": 3, "y": 92, "elevation": 1, - "var": "VAR_0x405F", + "var": "VAR_MAP_SCENE_ROUTE23", "var_value": 5, "script": "Route23_EventScript_1685D7" }, @@ -350,7 +350,7 @@ "x": 2, "y": 92, "elevation": 1, - "var": "VAR_0x405F", + "var": "VAR_MAP_SCENE_ROUTE23", "var_value": 5, "script": "Route23_EventScript_1685D7" }, @@ -359,7 +359,7 @@ "x": 4, "y": 139, "elevation": 0, - "var": "VAR_0x405F", + "var": "VAR_MAP_SCENE_ROUTE23", "var_value": 2, "script": "Route23_EventScript_168598" }, @@ -368,7 +368,7 @@ "x": 5, "y": 139, "elevation": 0, - "var": "VAR_0x405F", + "var": "VAR_MAP_SCENE_ROUTE23", "var_value": 2, "script": "Route23_EventScript_168598" }, @@ -377,7 +377,7 @@ "x": 6, "y": 140, "elevation": 3, - "var": "VAR_0x405F", + "var": "VAR_MAP_SCENE_ROUTE23", "var_value": 2, "script": "Route23_EventScript_168598" }, @@ -386,7 +386,7 @@ "x": 10, "y": 122, "elevation": 0, - "var": "VAR_0x405F", + "var": "VAR_MAP_SCENE_ROUTE23", "var_value": 3, "script": "Route23_EventScript_1685AD" }, @@ -395,7 +395,7 @@ "x": 11, "y": 122, "elevation": 0, - "var": "VAR_0x405F", + "var": "VAR_MAP_SCENE_ROUTE23", "var_value": 3, "script": "Route23_EventScript_1685AD" }, @@ -404,7 +404,7 @@ "x": 13, "y": 123, "elevation": 3, - "var": "VAR_0x405F", + "var": "VAR_MAP_SCENE_ROUTE23", "var_value": 3, "script": "Route23_EventScript_1685AD" }, @@ -413,7 +413,7 @@ "x": 8, "y": 109, "elevation": 1, - "var": "VAR_0x405F", + "var": "VAR_MAP_SCENE_ROUTE23", "var_value": 4, "script": "Route23_EventScript_1685C2" }, @@ -422,7 +422,7 @@ "x": 9, "y": 109, "elevation": 1, - "var": "VAR_0x405F", + "var": "VAR_MAP_SCENE_ROUTE23", "var_value": 4, "script": "Route23_EventScript_1685C2" }, @@ -431,7 +431,7 @@ "x": 10, "y": 109, "elevation": 1, - "var": "VAR_0x405F", + "var": "VAR_MAP_SCENE_ROUTE23", "var_value": 4, "script": "Route23_EventScript_1685C2" }, @@ -440,7 +440,7 @@ "x": 11, "y": 109, "elevation": 1, - "var": "VAR_0x405F", + "var": "VAR_MAP_SCENE_ROUTE23", "var_value": 4, "script": "Route23_EventScript_1685C2" }, @@ -449,7 +449,7 @@ "x": 12, "y": 109, "elevation": 1, - "var": "VAR_0x405F", + "var": "VAR_MAP_SCENE_ROUTE23", "var_value": 4, "script": "Route23_EventScript_1685C2" }, @@ -458,7 +458,7 @@ "x": 12, "y": 111, "elevation": 0, - "var": "VAR_0x405F", + "var": "VAR_MAP_SCENE_ROUTE23", "var_value": 4, "script": "Route23_EventScript_1685C2" }, @@ -467,7 +467,7 @@ "x": 14, "y": 112, "elevation": 1, - "var": "VAR_0x405F", + "var": "VAR_MAP_SCENE_ROUTE23", "var_value": 4, "script": "Route23_EventScript_1685C2" }, @@ -476,7 +476,7 @@ "x": 13, "y": 112, "elevation": 1, - "var": "VAR_0x405F", + "var": "VAR_MAP_SCENE_ROUTE23", "var_value": 4, "script": "Route23_EventScript_1685C2" }, @@ -485,7 +485,7 @@ "x": 15, "y": 112, "elevation": 1, - "var": "VAR_0x405F", + "var": "VAR_MAP_SCENE_ROUTE23", "var_value": 4, "script": "Route23_EventScript_1685C2" }, @@ -494,7 +494,7 @@ "x": 12, "y": 148, "elevation": 0, - "var": "VAR_0x405F", + "var": "VAR_MAP_SCENE_ROUTE23", "var_value": 1, "script": "Route23_EventScript_168583" }, @@ -503,7 +503,7 @@ "x": 11, "y": 148, "elevation": 0, - "var": "VAR_0x405F", + "var": "VAR_MAP_SCENE_ROUTE23", "var_value": 1, "script": "Route23_EventScript_168583" }, @@ -512,7 +512,7 @@ "x": 14, "y": 149, "elevation": 3, - "var": "VAR_0x405F", + "var": "VAR_MAP_SCENE_ROUTE23", "var_value": 1, "script": "Route23_EventScript_168583" }, @@ -521,7 +521,7 @@ "x": 10, "y": 148, "elevation": 0, - "var": "VAR_0x405F", + "var": "VAR_MAP_SCENE_ROUTE23", "var_value": 1, "script": "Route23_EventScript_168583" } @@ -533,17 +533,19 @@ "y": 42, "elevation": 0, "item": "ITEM_FULL_RESTORE", - "flag": "34", - "unknown": 1 + "flag": "HIDDEN_ITEM_ROUTE23_FULL_RESTORE", + "quantity": 1, + "underfoot": false }, { "type": "hidden_item", "x": 20, "y": 72, "elevation": 0, - "item": "POCKET_KEY_ITEMS", - "flag": "35", - "unknown": 1 + "item": "ITEM_ULTRA_BALL", + "flag": "HIDDEN_ITEM_ROUTE23_ULTRA_BALL", + "quantity": 1, + "underfoot": false }, { "type": "hidden_item", @@ -551,8 +553,9 @@ "y": 101, "elevation": 3, "item": "ITEM_MAX_ETHER", - "flag": "36", - "unknown": 1 + "flag": "HIDDEN_ITEM_ROUTE23_MAX_ETHER", + "quantity": 1, + "underfoot": false }, { "type": "hidden_item", @@ -560,8 +563,9 @@ "y": 18, "elevation": 3, "item": "ITEM_LUM_BERRY", - "flag": "145", - "unknown": 1 + "flag": "HIDDEN_ITEM_ROUTE23_LUM_BERRY", + "quantity": 1, + "underfoot": false }, { "type": "hidden_item", @@ -569,8 +573,9 @@ "y": 29, "elevation": 3, "item": "ITEM_SITRUS_BERRY", - "flag": "146", - "unknown": 1 + "flag": "HIDDEN_ITEM_ROUTE23_SITRUS_BERRY", + "quantity": 1, + "underfoot": false }, { "type": "hidden_item", @@ -578,8 +583,9 @@ "y": 67, "elevation": 3, "item": "ITEM_ASPEAR_BERRY", - "flag": "147", - "unknown": 1 + "flag": "HIDDEN_ITEM_ROUTE23_ASPEAR_BERRY", + "quantity": 1, + "underfoot": false }, { "type": "hidden_item", @@ -587,8 +593,9 @@ "y": 128, "elevation": 3, "item": "ITEM_LEPPA_BERRY", - "flag": "148", - "unknown": 1 + "flag": "HIDDEN_ITEM_ROUTE23_LEPPA_BERRY", + "quantity": 1, + "underfoot": false }, { "type": "hidden_item", @@ -596,8 +603,9 @@ "y": 8, "elevation": 3, "item": "ITEM_MAX_ELIXIR", - "flag": "155", - "unknown": 1 + "flag": "HIDDEN_ITEM_ROUTE23_MAX_ELIXIR", + "quantity": 1, + "underfoot": false }, { "type": "bg_event_type_0", diff --git a/data/maps/Route23/scripts.inc b/data/maps/Route23/scripts.inc index f5c504650..ed827114c 100644 --- a/data/maps/Route23/scripts.inc +++ b/data/maps/Route23/scripts.inc @@ -3,12 +3,12 @@ Route23_MapScripts:: @ 81684EB .byte 0 Route23_MapScript1_1684F1:: @ 81684F1 - clearflag FLAG_0x059 - setflag FLAG_0x058 - setvar VAR_0x4064, 0 - setvar VAR_0x4065, 0 - setvar VAR_0x4066, 0 - setvar VAR_0x4067, 0 + clearflag FLAG_HIDE_VICTORY_ROAD_3F_BOULDER + setflag FLAG_HIDE_VICTORY_ROAD_2F_BOULDER + setvar VAR_MAP_SCENE_VICTORY_ROAD_1F, 0 + setvar VAR_MAP_SCENE_VICTORY_ROAD_2F_BOULDER1, 0 + setvar VAR_MAP_SCENE_VICTORY_ROAD_2F_BOULDER2, 0 + setvar VAR_MAP_SCENE_VICTORY_ROAD_3F, 0 end Route23_EventScript_16850C:: @ 816850C diff --git a/data/maps/Route24/map.json b/data/maps/Route24/map.json index 93dd519c1..9fe5db518 100644 --- a/data/maps/Route24/map.json +++ b/data/maps/Route24/map.json @@ -25,7 +25,7 @@ ], "object_events": [ { - "graphics_id": "25", + "graphics_id": "MAP_OBJ_GFX_MAN", "x": 12, "y": 15, "elevation": 3, @@ -35,10 +35,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "Route24_EventScript_168620", - "flag": "49" + "flag": "FLAG_HIDE_NUGGET_BRIDGE_ROCKET" }, { - "graphics_id": "39", + "graphics_id": "MAP_OBJ_GFX_CAMPER", "x": 12, "y": 19, "elevation": 3, @@ -51,7 +51,7 @@ "flag": "0" }, { - "graphics_id": "22", + "graphics_id": "MAP_OBJ_GFX_LASS", "x": 10, "y": 22, "elevation": 3, @@ -64,7 +64,7 @@ "flag": "0" }, { - "graphics_id": "18", + "graphics_id": "MAP_OBJ_GFX_YOUNGSTER", "x": 12, "y": 25, "elevation": 3, @@ -77,7 +77,7 @@ "flag": "0" }, { - "graphics_id": "22", + "graphics_id": "MAP_OBJ_GFX_LASS", "x": 10, "y": 28, "elevation": 3, @@ -90,7 +90,7 @@ "flag": "0" }, { - "graphics_id": "20", + "graphics_id": "MAP_OBJ_GFX_BUG_CATCHER", "x": 12, "y": 31, "elevation": 3, @@ -103,7 +103,7 @@ "flag": "0" }, { - "graphics_id": "39", + "graphics_id": "MAP_OBJ_GFX_CAMPER", "x": 5, "y": 21, "elevation": 3, @@ -116,7 +116,7 @@ "flag": "0" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 11, "y": 4, "elevation": 3, @@ -126,7 +126,7 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "Route24_EventScript_1BE644", - "flag": "354" + "flag": "FLAG_HIDE_ROUTE24_TM45" } ], "warp_events": [], @@ -136,7 +136,7 @@ "x": 10, "y": 15, "elevation": 3, - "var": "VAR_0x406B", + "var": "VAR_MAP_SCENE_ROUTE24", "var_value": 0, "script": "Route24_EventScript_168660" }, @@ -145,7 +145,7 @@ "x": 11, "y": 15, "elevation": 3, - "var": "VAR_0x406B", + "var": "VAR_MAP_SCENE_ROUTE24", "var_value": 0, "script": "Route24_EventScript_16866C" } @@ -157,8 +157,9 @@ "y": 4, "elevation": 3, "item": "ITEM_PECHA_BERRY", - "flag": "115", - "unknown": 1 + "flag": "HIDDEN_ITEM_ROUTE24_PECHA_BERRY", + "quantity": 1, + "underfoot": false } ] } diff --git a/data/maps/Route24/scripts.inc b/data/maps/Route24/scripts.inc index dede3df50..2760e17a3 100644 --- a/data/maps/Route24/scripts.inc +++ b/data/maps/Route24/scripts.inc @@ -4,12 +4,12 @@ Route24_MapScripts:: @ 816861F Route24_EventScript_168620:: @ 8168620 lock faceplayer - compare_var_to_value VAR_0x406B, 1 - goto_if_eq EventScript_168656 + compare_var_to_value VAR_MAP_SCENE_ROUTE24, 1 + goto_if eq, EventScript_168656 msgbox gUnknown_8188C3C checkitemspace ITEM_NUGGET, 1 compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_16864C + goto_if eq, EventScript_16864C call EventScript_1686B9 release end @@ -39,15 +39,15 @@ Route24_EventScript_16866C:: @ 816866C EventScript_168678:: @ 8168678 textcolor 0 compare_var_to_value VAR_0x4001, 0 - call_if 1, EventScript_1686FD + call_if eq, EventScript_1686FD compare_var_to_value VAR_0x4001, 1 - call_if 1, EventScript_168708 + call_if eq, EventScript_168708 applymovement 255, Movement_1A75EB waitmovement 0 msgbox gUnknown_8188C3C checkitemspace ITEM_NUGGET, 1 compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_168713 + goto_if eq, EventScript_168713 call EventScript_1686B9 releaseall end @@ -60,9 +60,9 @@ EventScript_1686B9:: @ 81686B9 playbgm MUS_ROCKET, 0 waitbuttonpress setvar VAR_LAST_TALKED, 1 - trainerbattle 3, 356, 0, Text_188DDC + trainerbattle TRAINER_BATTLE_SINGLE_NO_INTRO_TEXT, TRAINER_TEAM_ROCKET_GRUNT_6, 0, Text_188DDC msgbox gUnknown_8188DF1 - setvar VAR_0x406B, 1 + setvar VAR_MAP_SCENE_ROUTE24, 1 return EventScript_1686FD:: @ 81686FD @@ -81,7 +81,7 @@ EventScript_168713:: @ 8168713 applymovement 255, Movement_168743 waitmovement 0 compare_var_to_value VAR_0x4001, 0 - call_if 1, EventScript_168733 + call_if eq, EventScript_168733 release end diff --git a/data/maps/Route25/map.json b/data/maps/Route25/map.json index 9e10ec246..a17f32488 100644 --- a/data/maps/Route25/map.json +++ b/data/maps/Route25/map.json @@ -20,7 +20,7 @@ ], "object_events": [ { - "graphics_id": "56", + "graphics_id": "MAP_OBJ_GFX_HIKER", "x": 11, "y": 4, "elevation": 3, @@ -33,7 +33,7 @@ "flag": "0" }, { - "graphics_id": "18", + "graphics_id": "MAP_OBJ_GFX_YOUNGSTER", "x": 18, "y": 2, "elevation": 3, @@ -46,7 +46,7 @@ "flag": "0" }, { - "graphics_id": "56", + "graphics_id": "MAP_OBJ_GFX_HIKER", "x": 17, "y": 7, "elevation": 3, @@ -59,7 +59,7 @@ "flag": "0" }, { - "graphics_id": "18", + "graphics_id": "MAP_OBJ_GFX_YOUNGSTER", "x": 22, "y": 4, "elevation": 3, @@ -72,7 +72,7 @@ "flag": "0" }, { - "graphics_id": "40", + "graphics_id": "MAP_OBJ_GFX_PICNICKER", "x": 22, "y": 8, "elevation": 3, @@ -85,7 +85,7 @@ "flag": "0" }, { - "graphics_id": "56", + "graphics_id": "MAP_OBJ_GFX_HIKER", "x": 27, "y": 9, "elevation": 3, @@ -98,7 +98,7 @@ "flag": "0" }, { - "graphics_id": "39", + "graphics_id": "MAP_OBJ_GFX_CAMPER", "x": 28, "y": 4, "elevation": 3, @@ -111,7 +111,7 @@ "flag": "0" }, { - "graphics_id": "18", + "graphics_id": "MAP_OBJ_GFX_YOUNGSTER", "x": 36, "y": 4, "elevation": 3, @@ -124,7 +124,7 @@ "flag": "0" }, { - "graphics_id": "22", + "graphics_id": "MAP_OBJ_GFX_LASS", "x": 42, "y": 5, "elevation": 3, @@ -137,7 +137,7 @@ "flag": "0" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 26, "y": 2, "elevation": 3, @@ -147,10 +147,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "Route25_EventScript_1BE651", - "flag": "355" + "flag": "FLAG_HIDE_ROUTE25_TM43" }, { - "graphics_id": "95", + "graphics_id": "MAP_OBJ_GFX_CUT_TREE", "x": 30, "y": 3, "elevation": 3, @@ -159,11 +159,11 @@ "movement_range_y": 1, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "Route25_EventScript_1BDF13", - "flag": "18" + "script": "EventScript_InteractWithCutTreeObject", + "flag": "FLAG_TEMP_12" }, { - "graphics_id": "29", + "graphics_id": "MAP_OBJ_GFX_BEAUTY", "x": 49, "y": 10, "elevation": 3, @@ -176,7 +176,7 @@ "flag": "0" }, { - "graphics_id": "25", + "graphics_id": "MAP_OBJ_GFX_MAN", "x": 49, "y": 11, "elevation": 3, @@ -213,8 +213,9 @@ "y": 2, "elevation": 3, "item": "ITEM_ELIXIR", - "flag": "4", - "unknown": 1 + "flag": "HIDDEN_ITEM_ROUTE25_ELIXIR", + "quantity": 1, + "underfoot": false }, { "type": "hidden_item", @@ -222,8 +223,9 @@ "y": 6, "elevation": 3, "item": "ITEM_ETHER", - "flag": "5", - "unknown": 1 + "flag": "HIDDEN_ITEM_ROUTE25_ETHER", + "quantity": 1, + "underfoot": false }, { "type": "hidden_item", @@ -231,8 +233,9 @@ "y": 8, "elevation": 3, "item": "ITEM_ORAN_BERRY", - "flag": "116", - "unknown": 1 + "flag": "HIDDEN_ITEM_ROUTE25_ORAN_BERRY", + "quantity": 1, + "underfoot": false }, { "type": "hidden_item", @@ -240,8 +243,9 @@ "y": 3, "elevation": 3, "item": "ITEM_BLUK_BERRY", - "flag": "117", - "unknown": 1 + "flag": "HIDDEN_ITEM_ROUTE25_BLUK_BERRY", + "quantity": 1, + "underfoot": false } ] } diff --git a/data/maps/Route25_SeaCottage/map.json b/data/maps/Route25_SeaCottage/map.json index ec9a5c284..ac63be354 100644 --- a/data/maps/Route25_SeaCottage/map.json +++ b/data/maps/Route25_SeaCottage/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "73", + "graphics_id": "MAP_OBJ_GFX_BILL", "x": 7, "y": 5, "elevation": 3, @@ -24,10 +24,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "Route25_SeaCottage_EventScript_17054B", - "flag": "51" + "flag": "FLAG_HIDE_BILL_HUMAN_SEA_COTTAGE" }, { - "graphics_id": "113", + "graphics_id": "MAP_OBJ_GFX_CLEFAIRY", "x": 10, "y": 6, "elevation": 3, @@ -37,7 +37,7 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "Route25_SeaCottage_EventScript_17054B", - "flag": "50" + "flag": "FLAG_HIDE_BILL_CLEFAIRY" } ], "warp_events": [ diff --git a/data/maps/Route25_SeaCottage/scripts.inc b/data/maps/Route25_SeaCottage/scripts.inc index d613b42a5..e8d016a02 100644 --- a/data/maps/Route25_SeaCottage/scripts.inc +++ b/data/maps/Route25_SeaCottage/scripts.inc @@ -3,35 +3,35 @@ Route25_SeaCottage_MapScripts:: @ 8170523 .byte 0 Route25_SeaCottage_MapScript1_170529:: @ 8170529 - checkflag FLAG_0x233 - call_if 0, EventScript_17053C - checkflag FLAG_0x234 - call_if 1, EventScript_170547 + checkflag FLAG_HELPED_BILL_IN_SEA_COTTAGE + call_if FALSE, EventScript_17053C + checkflag FLAG_GOT_SS_TICKET + call_if TRUE, EventScript_170547 end EventScript_17053C:: @ 817053C - clearflag FLAG_0x032 + clearflag FLAG_HIDE_BILL_CLEFAIRY setobjectxyperm 1, 3, 3 return EventScript_170547:: @ 8170547 - setflag FLAG_0x003 + setflag FLAG_TEMP_3 return Route25_SeaCottage_EventScript_17054B:: @ 817054B lock faceplayer - checkflag FLAG_0x003 - goto_if_eq EventScript_1706C8 - checkflag FLAG_0x234 - goto_if_eq EventScript_170640 - checkflag FLAG_0x233 - goto_if_eq EventScript_17064A + checkflag FLAG_TEMP_3 + goto_if TRUE, EventScript_1706C8 + checkflag FLAG_GOT_SS_TICKET + goto_if TRUE, EventScript_170640 + checkflag FLAG_HELPED_BILL_IN_SEA_COTTAGE + goto_if TRUE, EventScript_17064A checkplayergender compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_170580 + goto_if eq, EventScript_170580 compare_var_to_value VAR_RESULT, 1 - goto_if_eq EventScript_17058E + goto_if eq, EventScript_17058E end EventScript_170580:: @ 8170580 @@ -46,18 +46,18 @@ EventScript_17058E:: @ 817058E EventScript_17059C:: @ 817059C compare_var_to_value VAR_RESULT, 0 - call_if 1, EventScript_170600 + call_if eq, EventScript_170600 msgbox gUnknown_819FFD3 closemessage delay 10 compare_var_to_value VAR_FACING, 1 - call_if 1, EventScript_17062A + call_if eq, EventScript_17062A compare_var_to_value VAR_FACING, 2 - call_if 1, EventScript_170635 + call_if eq, EventScript_170635 compare_var_to_value VAR_FACING, 3 - call_if 1, EventScript_170635 + call_if eq, EventScript_170635 compare_var_to_value VAR_FACING, 4 - call_if 1, EventScript_170635 + call_if eq, EventScript_170635 opendoor 10, 3 waitdooranim applymovement 2, Movement_1706DB @@ -66,16 +66,16 @@ EventScript_17059C:: @ 817059C playse SE_C_MAKU_D closedoor 10, 3 waitdooranim - setflag FLAG_0x002 + setflag FLAG_TEMP_2 release end EventScript_170600:: @ 8170600 checkplayergender compare_var_to_value VAR_RESULT, 0 - call_if 1, EventScript_170618 + call_if eq, EventScript_170618 compare_var_to_value VAR_RESULT, 1 - call_if 1, EventScript_170621 + call_if eq, EventScript_170621 return EventScript_170618:: @ 8170618 @@ -102,22 +102,20 @@ EventScript_170640:: @ 8170640 end EventScript_17064A:: @ 817064A - setvar VAR_0x8004, 13 - setvar VAR_0x8005, 2 - special UpdatePickStateFromSpecialVar8005 + famechecker FAMECHECKER_BILL, FCPICKSTATE_COLORED, UpdatePickStateFromSpecialVar8005 checkplayergender compare_var_to_value VAR_RESULT, 0 - call_if 1, EventScript_1706AC + call_if eq, EventScript_1706AC compare_var_to_value VAR_RESULT, 1 - call_if 1, EventScript_1706B5 + call_if eq, EventScript_1706B5 checkitemspace ITEM_SS_TICKET, 1 compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_1706BE + goto_if eq, EventScript_1706BE additem ITEM_SS_TICKET, 1 giveitemfanfaremsg gUnknown_81A028E, ITEM_SS_TICKET, 1, MUS_FAN5 - setflag FLAG_0x235 - setflag FLAG_0x031 - setflag FLAG_0x234 + setflag FLAG_GOT_SS_TICKET_DUP + setflag FLAG_HIDE_NUGGET_BRIDGE_ROCKET + setflag FLAG_GOT_SS_TICKET setflag FLAG_SYS_NOT_SOMEONES_PC goto EventScript_170640 end @@ -159,10 +157,10 @@ Movement_1706DB:: @ 81706DB Route25_SeaCottage_EventScript_1706DD:: @ 81706DD lockall - checkflag FLAG_0x003 - goto_if_eq EventScript_1707CA - checkflag FLAG_0x002 - goto_if_eq EventScript_1706FA + checkflag FLAG_TEMP_3 + goto_if TRUE, EventScript_1707CA + checkflag FLAG_TEMP_2 + goto_if TRUE, EventScript_1706FA msgbox gUnknown_81A0402 releaseall end @@ -171,9 +169,9 @@ EventScript_1706FA:: @ 81706FA fadeoutbgm 0 msgbox gUnknown_81A042D closemessage - clearflag FLAG_0x002 - setflag FLAG_0x233 - special SpawnScriptFieldObject + clearflag FLAG_TEMP_2 + setflag FLAG_HELPED_BILL_IN_SEA_COTTAGE + special SpawnCameraObject applymovement 127, Movement_1707BE waitmovement 0 delay 35 @@ -203,7 +201,7 @@ EventScript_1706FA:: @ 81706FA waitdooranim fadeinbgm 0 addobject 1 - clearflag FLAG_0x033 + clearflag FLAG_HIDE_BILL_HUMAN_SEA_COTTAGE delay 50 playfanfare MUS_FANFA1 applymovement 1, Movement_170888 @@ -216,7 +214,7 @@ EventScript_1706FA:: @ 81706FA waitdooranim applymovement 1, Movement_170881 waitmovement 0 - special RemoveScriptFieldObject + special RemoveCameraObject releaseall end @@ -250,7 +248,7 @@ EventScript_1707CA:: @ 81707CA EventScript_1707D8:: @ 81707D8 message Text_1A0479 waitmessage - multichoice 0, 0, 1, 0 + multichoice 0, 0, MULTICHOICE_EEVEELUTIONS, FALSE switch VAR_RESULT case 0, EventScript_17082B case 1, EventScript_170840 @@ -265,7 +263,7 @@ EventScript_17082B:: @ 817082B waitbuttonpress erasemonpic setvar VAR_0x8004, SPECIES_EEVEE - special sub_80CBDCC + special Special_SetSeenMon goto EventScript_1707D8 end @@ -274,7 +272,7 @@ EventScript_170840:: @ 8170840 waitbuttonpress erasemonpic setvar VAR_0x8004, SPECIES_FLAREON - special sub_80CBDCC + special Special_SetSeenMon goto EventScript_1707D8 end @@ -283,7 +281,7 @@ EventScript_170855:: @ 8170855 waitbuttonpress erasemonpic setvar VAR_0x8004, SPECIES_JOLTEON - special sub_80CBDCC + special Special_SetSeenMon goto EventScript_1707D8 end @@ -292,7 +290,7 @@ EventScript_17086A:: @ 817086A waitbuttonpress erasemonpic setvar VAR_0x8004, SPECIES_VAPOREON - special sub_80CBDCC + special Special_SetSeenMon goto EventScript_1707D8 end diff --git a/data/maps/Route2_EastBuilding/map.json b/data/maps/Route2_EastBuilding/map.json index de3df77b1..e895e6c89 100644 --- a/data/maps/Route2_EastBuilding/map.json +++ b/data/maps/Route2_EastBuilding/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "55", + "graphics_id": "MAP_OBJ_GFX_SCIENTIST", "x": 4, "y": 6, "elevation": 3, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "26", + "graphics_id": "MAP_OBJ_GFX_ROCKER", "x": 10, "y": 3, "elevation": 3, diff --git a/data/maps/Route2_EastBuilding/scripts.inc b/data/maps/Route2_EastBuilding/scripts.inc index a1b2d0e7a..de3889bf4 100644 --- a/data/maps/Route2_EastBuilding/scripts.inc +++ b/data/maps/Route2_EastBuilding/scripts.inc @@ -5,24 +5,24 @@ Route2_EastBuilding_EventScript_16F67F:: @ 816F67F lock faceplayer call EventScript_16F70B - checkflag FLAG_0x23B - goto_if_eq EventScript_16F701 + checkflag FLAG_GOT_HM05 + goto_if TRUE, EventScript_16F701 msgbox gUnknown_819D64F, MSGBOX_YESNO compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_1A7AD1 + goto_if eq, EventScript_1A7AD1 setvar VAR_0x8004, 0 specialvar VAR_RESULT, Special_GetPokedexCount getnumberstring 2, VAR_0x8006 call EventScript_16F70B compare_var_to_value VAR_0x8006, 10 - goto_if 0, EventScript_1A7ABD + goto_if lt, EventScript_1A7ABD msgbox gUnknown_819D74E checkitemspace ITEM_HM05, 1 compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_1A7AC7 + goto_if eq, EventScript_1A7AC7 additem ITEM_HM05, 1 giveitemfanfaremsg gUnknown_819D7A1, ITEM_HM05 - setflag FLAG_0x23B + setflag FLAG_GOT_HM05 msgbox gUnknown_819D7C1 release end diff --git a/data/maps/Route2_House/map.json b/data/maps/Route2_House/map.json index 639be8eb0..9833021a2 100644 --- a/data/maps/Route2_House/map.json +++ b/data/maps/Route2_House/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "55", + "graphics_id": "MAP_OBJ_GFX_SCIENTIST", "x": 4, "y": 5, "elevation": 3, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "51", + "graphics_id": "MAP_OBJ_GFX_GBA_KID", "x": 7, "y": 2, "elevation": 3, diff --git a/data/maps/Route2_House/scripts.inc b/data/maps/Route2_House/scripts.inc index fd7ac6c05..62367586d 100644 --- a/data/maps/Route2_House/scripts.inc +++ b/data/maps/Route2_House/scripts.inc @@ -10,20 +10,20 @@ Route2_House_EventScript_16F602:: @ 816F602 faceplayer setvar VAR_0x8008, 0 call EventScript_1A8CAD - checkflag FLAG_0x248 - goto_if_eq EventScript_16F674 + checkflag FLAG_DID_MIMIEN_TRADE + goto_if TRUE, EventScript_16F674 msgbox gUnknown_81A597B, MSGBOX_YESNO compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_16F65C + goto_if eq, EventScript_16F65C call EventScript_1A8CBD compare_var_to_value VAR_0x8004, 6 - goto_if 4, EventScript_16F65C + goto_if ge, EventScript_16F65C call EventScript_1A8CC9 compare_var_to_var VAR_RESULT, VAR_0x8009 - goto_if 5, EventScript_16F666 + goto_if ne, EventScript_16F666 call EventScript_1A8CD9 msgbox gUnknown_81A59DA - setflag FLAG_0x248 + setflag FLAG_DID_MIMIEN_TRADE release end diff --git a/data/maps/Route2_ViridianForest_NorthEntrance/map.json b/data/maps/Route2_ViridianForest_NorthEntrance/map.json index fab8a8b03..1ee618faa 100644 --- a/data/maps/Route2_ViridianForest_NorthEntrance/map.json +++ b/data/maps/Route2_ViridianForest_NorthEntrance/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "18", + "graphics_id": "MAP_OBJ_GFX_YOUNGSTER", "x": 5, "y": 4, "elevation": 3, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "32", + "graphics_id": "MAP_OBJ_GFX_OLD_MAN_1", "x": 4, "y": 7, "elevation": 3, @@ -40,7 +40,7 @@ "flag": "0" }, { - "graphics_id": "42", + "graphics_id": "MAP_OBJ_GFX_COOLTRAINER_F", "x": 10, "y": 5, "elevation": 3, diff --git a/data/maps/Route2_ViridianForest_SouthEntrance/map.json b/data/maps/Route2_ViridianForest_SouthEntrance/map.json index 3f4e03f3e..808232f30 100644 --- a/data/maps/Route2_ViridianForest_SouthEntrance/map.json +++ b/data/maps/Route2_ViridianForest_SouthEntrance/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "28", + "graphics_id": "MAP_OBJ_GFX_WOMAN_2", "x": 10, "y": 6, "elevation": 3, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "23", + "graphics_id": "MAP_OBJ_GFX_WOMAN_1", "x": 4, "y": 7, "elevation": 3, diff --git a/data/maps/Route3/map.json b/data/maps/Route3/map.json index de3d20cc8..837e483b8 100644 --- a/data/maps/Route3/map.json +++ b/data/maps/Route3/map.json @@ -25,7 +25,7 @@ ], "object_events": [ { - "graphics_id": "18", + "graphics_id": "MAP_OBJ_GFX_YOUNGSTER", "x": 70, "y": 13, "elevation": 3, @@ -38,7 +38,7 @@ "flag": "0" }, { - "graphics_id": "22", + "graphics_id": "MAP_OBJ_GFX_LASS", "x": 40, "y": 11, "elevation": 3, @@ -51,7 +51,7 @@ "flag": "0" }, { - "graphics_id": "20", + "graphics_id": "MAP_OBJ_GFX_BUG_CATCHER", "x": 32, "y": 6, "elevation": 3, @@ -64,7 +64,7 @@ "flag": "0" }, { - "graphics_id": "22", + "graphics_id": "MAP_OBJ_GFX_LASS", "x": 30, "y": 3, "elevation": 3, @@ -77,7 +77,7 @@ "flag": "0" }, { - "graphics_id": "20", + "graphics_id": "MAP_OBJ_GFX_BUG_CATCHER", "x": 25, "y": 4, "elevation": 3, @@ -90,7 +90,7 @@ "flag": "0" }, { - "graphics_id": "18", + "graphics_id": "MAP_OBJ_GFX_YOUNGSTER", "x": 29, "y": 10, "elevation": 3, @@ -103,7 +103,7 @@ "flag": "0" }, { - "graphics_id": "22", + "graphics_id": "MAP_OBJ_GFX_LASS", "x": 19, "y": 9, "elevation": 3, @@ -116,7 +116,7 @@ "flag": "0" }, { - "graphics_id": "20", + "graphics_id": "MAP_OBJ_GFX_BUG_CATCHER", "x": 12, "y": 6, "elevation": 3, @@ -129,7 +129,7 @@ "flag": "0" }, { - "graphics_id": "18", + "graphics_id": "MAP_OBJ_GFX_YOUNGSTER", "x": 17, "y": 4, "elevation": 3, @@ -158,8 +158,9 @@ "y": 9, "elevation": 3, "item": "ITEM_ORAN_BERRY", - "flag": "113", - "unknown": 1 + "flag": "HIDDEN_ITEM_ROUTE3_ORAN_BERRY", + "quantity": 1, + "underfoot": false } ] } diff --git a/data/maps/Route4/map.json b/data/maps/Route4/map.json index 7f4958b26..dc2f902d7 100644 --- a/data/maps/Route4/map.json +++ b/data/maps/Route4/map.json @@ -25,7 +25,7 @@ ], "object_events": [ { - "graphics_id": "23", + "graphics_id": "MAP_OBJ_GFX_WOMAN_1", "x": 9, "y": 8, "elevation": 3, @@ -38,7 +38,7 @@ "flag": "0" }, { - "graphics_id": "22", + "graphics_id": "MAP_OBJ_GFX_LASS", "x": 75, "y": 3, "elevation": 3, @@ -51,7 +51,7 @@ "flag": "0" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 67, "y": 5, "elevation": 3, @@ -61,10 +61,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "Route4_EventScript_1BE637", - "flag": "353" + "flag": "FLAG_HIDE_ROUTE4_TM05" }, { - "graphics_id": "19", + "graphics_id": "MAP_OBJ_GFX_BOY", "x": 15, "y": 14, "elevation": 3, @@ -77,7 +77,7 @@ "flag": "0" }, { - "graphics_id": "54", + "graphics_id": "MAP_OBJ_GFX_BLACKBELT", "x": 47, "y": 3, "elevation": 3, @@ -90,7 +90,7 @@ "flag": "0" }, { - "graphics_id": "54", + "graphics_id": "MAP_OBJ_GFX_BLACKBELT", "x": 50, "y": 3, "elevation": 3, @@ -160,9 +160,10 @@ "x": 43, "y": 2, "elevation": 3, - "item": "POCKET_POKE_BALLS", - "flag": "50", - "unknown": 1 + "item": "ITEM_GREAT_BALL", + "flag": "HIDDEN_ITEM_ROUTE4_GREAT_BALL", + "quantity": 1, + "underfoot": false }, { "type": "hidden_item", @@ -170,8 +171,9 @@ "y": 4, "elevation": 3, "item": "ITEM_PERSIM_BERRY", - "flag": "114", - "unknown": 1 + "flag": "HIDDEN_ITEM_ROUTE4_PERSIM_BERRY", + "quantity": 1, + "underfoot": false }, { "type": "hidden_item", @@ -179,8 +181,9 @@ "y": 17, "elevation": 3, "item": "ITEM_RAZZ_BERRY", - "flag": "156", - "unknown": 1 + "flag": "HIDDEN_ITEM_ROUTE4_RAZZ_BERRY", + "quantity": 1, + "underfoot": false } ] } diff --git a/data/maps/Route4_PokemonCenter_1F/map.json b/data/maps/Route4_PokemonCenter_1F/map.json index f3401744c..936900208 100644 --- a/data/maps/Route4_PokemonCenter_1F/map.json +++ b/data/maps/Route4_PokemonCenter_1F/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "64", + "graphics_id": "MAP_OBJ_GFX_NURSE", "x": 7, "y": 2, "elevation": 0, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "30", + "graphics_id": "MAP_OBJ_GFX_BALDING_MAN", "x": 1, "y": 3, "elevation": 3, @@ -40,7 +40,7 @@ "flag": "0" }, { - "graphics_id": "61", + "graphics_id": "MAP_OBJ_GFX_GENTLEMAN", "x": 12, "y": 5, "elevation": 3, @@ -53,7 +53,7 @@ "flag": "0" }, { - "graphics_id": "19", + "graphics_id": "MAP_OBJ_GFX_BOY", "x": 5, "y": 4, "elevation": 3, @@ -66,7 +66,7 @@ "flag": "0" }, { - "graphics_id": "18", + "graphics_id": "MAP_OBJ_GFX_YOUNGSTER", "x": 14, "y": 4, "elevation": 3, @@ -79,7 +79,7 @@ "flag": "0" }, { - "graphics_id": "105", + "graphics_id": "MAP_OBJ_GFX_CLIPBOARD", "x": 12, "y": 6, "elevation": 0, diff --git a/data/maps/Route4_PokemonCenter_1F/scripts.inc b/data/maps/Route4_PokemonCenter_1F/scripts.inc index 6788cc0c8..e1a823cb5 100644 --- a/data/maps/Route4_PokemonCenter_1F/scripts.inc +++ b/data/maps/Route4_PokemonCenter_1F/scripts.inc @@ -21,14 +21,14 @@ Route4_PokemonCenter_1F_EventScript_16F754:: @ 816F754 Route4_PokemonCenter_1F_EventScript_16F75F:: @ 816F75F lock faceplayer - checkflag FLAG_0x249 - goto_if_eq EventScript_16F8A2 + checkflag FLAG_BOUGHT_MAGIKARP + goto_if TRUE, EventScript_16F8A2 showmoneybox 0, 0, 0 checkplayergender compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_16F786 + goto_if eq, EventScript_16F786 compare_var_to_value VAR_RESULT, 1 - goto_if_eq EventScript_16F794 + goto_if eq, EventScript_16F794 end EventScript_16F786:: @ 816F786 @@ -43,26 +43,26 @@ EventScript_16F794:: @ 816F794 EventScript_16F7A2:: @ 816F7A2 compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_16F888 + goto_if eq, EventScript_16F888 checkmoney 500, 0 compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_16F895 + goto_if eq, EventScript_16F895 textcolor 3 setvar VAR_0x4001, 129 givemon SPECIES_MAGIKARP, 5, ITEM_NONE, 0, 0, 0 compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_16F7F6 + goto_if eq, EventScript_16F7F6 compare_var_to_value VAR_RESULT, 1 - goto_if_eq EventScript_16F822 + goto_if eq, EventScript_16F822 compare_var_to_value VAR_RESULT, 2 - goto_if_eq EventScript_16F8AC + goto_if eq, EventScript_16F8AC end EventScript_16F7F6:: @ 816F7F6 call EventScript_16F86F msgbox gUnknown_81A56A7, MSGBOX_YESNO compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_16F861 + goto_if eq, EventScript_16F861 call EventScript_1A8C27 fadescreen 1 hidemoneybox @@ -77,7 +77,7 @@ EventScript_16F822:: @ 816F822 call EventScript_16F86F msgbox gUnknown_81A56A7, MSGBOX_YESNO compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_16F84B + goto_if eq, EventScript_16F84B fadescreen 1 hidemoneybox .byte 0 @@ -107,7 +107,7 @@ EventScript_16F861:: @ 816F861 end EventScript_16F86A:: @ 816F86A - setflag FLAG_0x249 + setflag FLAG_BOUGHT_MAGIKARP release end diff --git a/data/maps/Route4_PokemonCenter_2F/map.json b/data/maps/Route4_PokemonCenter_2F/map.json index c6f93c618..a4189df66 100644 --- a/data/maps/Route4_PokemonCenter_2F/map.json +++ b/data/maps/Route4_PokemonCenter_2F/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "65", + "graphics_id": "MAP_OBJ_GFX_CABLE_CLUB_RECEPTIONIST", "x": 6, "y": 2, "elevation": 3, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "65", + "graphics_id": "MAP_OBJ_GFX_CABLE_CLUB_RECEPTIONIST", "x": 2, "y": 2, "elevation": 3, @@ -40,7 +40,7 @@ "flag": "0" }, { - "graphics_id": "65", + "graphics_id": "MAP_OBJ_GFX_CABLE_CLUB_RECEPTIONIST", "x": 10, "y": 2, "elevation": 3, @@ -53,7 +53,7 @@ "flag": "0" }, { - "graphics_id": "69", + "graphics_id": "MAP_OBJ_GFX_MG_DELIVERYMAN", "x": 1, "y": 2, "elevation": 3, @@ -63,7 +63,7 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "Route4_PokemonCenter_2F_EventScript_1BB1D2", - "flag": "112" + "flag": "FLAG_HIDE_MG_DELIVERYMEN" } ], "warp_events": [ diff --git a/data/maps/Route5_PokemonDayCare/map.json b/data/maps/Route5_PokemonDayCare/map.json index ca5aec3d2..efa1789d8 100644 --- a/data/maps/Route5_PokemonDayCare/map.json +++ b/data/maps/Route5_PokemonDayCare/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "61", + "graphics_id": "MAP_OBJ_GFX_GENTLEMAN", "x": 4, "y": 4, "elevation": 3, diff --git a/data/maps/Route5_SouthEntrance/map.json b/data/maps/Route5_SouthEntrance/map.json index d4b2409d3..7cf88dbcb 100644 --- a/data/maps/Route5_SouthEntrance/map.json +++ b/data/maps/Route5_SouthEntrance/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "60", + "graphics_id": "MAP_OBJ_GFX_POLICEMAN", "x": 1, "y": 5, "elevation": 3, @@ -63,7 +63,7 @@ "x": 3, "y": 5, "elevation": 3, - "var": "VAR_0x4062", + "var": "VAR_MAP_SCENE_ROUTE5_ROUTE6_ROUTE7_ROUTE8_GATES", "var_value": 0, "script": "Route5_SouthEntrance_EventScript_16F90A" }, @@ -72,7 +72,7 @@ "x": 4, "y": 5, "elevation": 3, - "var": "VAR_0x4062", + "var": "VAR_MAP_SCENE_ROUTE5_ROUTE6_ROUTE7_ROUTE8_GATES", "var_value": 0, "script": "Route5_SouthEntrance_EventScript_16F916" }, @@ -81,7 +81,7 @@ "x": 5, "y": 5, "elevation": 3, - "var": "VAR_0x4062", + "var": "VAR_MAP_SCENE_ROUTE5_ROUTE6_ROUTE7_ROUTE8_GATES", "var_value": 0, "script": "Route5_SouthEntrance_EventScript_16F922" } diff --git a/data/maps/Route5_SouthEntrance/scripts.inc b/data/maps/Route5_SouthEntrance/scripts.inc index 1ac21c6b1..fd8a5f6fc 100644 --- a/data/maps/Route5_SouthEntrance/scripts.inc +++ b/data/maps/Route5_SouthEntrance/scripts.inc @@ -27,8 +27,8 @@ EventScript_16F92E:: @ 816F92E textcolor 0 applymovement 255, Movement_1A75E7 waitmovement 0 - checkflag FLAG_0x2A6 - goto_if_eq EventScript_16F958 + checkflag FLAG_GOT_TEA + goto_if TRUE, EventScript_16F958 msgbox gUnknown_819E04B closemessage applymovement 255, Movement_16F9C4 @@ -45,13 +45,13 @@ EventScript_16F963:: @ 816F963 msgbox gUnknown_819E09B closemessage compare_var_to_value VAR_0x4001, 0 - call_if 1, EventScript_16F99C + call_if eq, EventScript_16F99C compare_var_to_value VAR_0x4001, 1 - call_if 1, EventScript_16F9A7 + call_if eq, EventScript_16F9A7 compare_var_to_value VAR_0x4001, 2 - call_if 1, EventScript_16F9B2 + call_if eq, EventScript_16F9B2 msgbox gUnknown_819E0C1 - setvar VAR_0x4062, 1 + setvar VAR_MAP_SCENE_ROUTE5_ROUTE6_ROUTE7_ROUTE8_GATES, 1 releaseall end diff --git a/data/maps/Route6/map.json b/data/maps/Route6/map.json index 24a67ce53..b5f66bf88 100644 --- a/data/maps/Route6/map.json +++ b/data/maps/Route6/map.json @@ -25,7 +25,7 @@ ], "object_events": [ { - "graphics_id": "20", + "graphics_id": "MAP_OBJ_GFX_BUG_CATCHER", "x": 3, "y": 16, "elevation": 3, @@ -38,7 +38,7 @@ "flag": "0" }, { - "graphics_id": "39", + "graphics_id": "MAP_OBJ_GFX_CAMPER", "x": 12, "y": 21, "elevation": 3, @@ -51,7 +51,7 @@ "flag": "0" }, { - "graphics_id": "40", + "graphics_id": "MAP_OBJ_GFX_PICNICKER", "x": 13, "y": 21, "elevation": 3, @@ -64,7 +64,7 @@ "flag": "0" }, { - "graphics_id": "20", + "graphics_id": "MAP_OBJ_GFX_BUG_CATCHER", "x": 20, "y": 25, "elevation": 3, @@ -77,7 +77,7 @@ "flag": "0" }, { - "graphics_id": "40", + "graphics_id": "MAP_OBJ_GFX_PICNICKER", "x": 13, "y": 32, "elevation": 3, @@ -90,7 +90,7 @@ "flag": "0" }, { - "graphics_id": "39", + "graphics_id": "MAP_OBJ_GFX_CAMPER", "x": 13, "y": 33, "elevation": 3, @@ -141,8 +141,9 @@ "y": 5, "elevation": 3, "item": "ITEM_SITRUS_BERRY", - "flag": "118", - "unknown": 1 + "flag": "HIDDEN_ITEM_ROUTE6_SITRUS_BERRY", + "quantity": 1, + "underfoot": false }, { "type": "hidden_item", @@ -150,8 +151,9 @@ "y": 5, "elevation": 3, "item": "ITEM_RARE_CANDY", - "flag": "119", - "unknown": 1 + "flag": "HIDDEN_ITEM_ROUTE6_RARE_CANDY", + "quantity": 1, + "underfoot": false } ] } diff --git a/data/maps/Route6_NorthEntrance/map.json b/data/maps/Route6_NorthEntrance/map.json index efa911ca9..f354d825c 100644 --- a/data/maps/Route6_NorthEntrance/map.json +++ b/data/maps/Route6_NorthEntrance/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "60", + "graphics_id": "MAP_OBJ_GFX_POLICEMAN", "x": 7, "y": 5, "elevation": 3, @@ -63,7 +63,7 @@ "x": 3, "y": 5, "elevation": 3, - "var": "VAR_0x4062", + "var": "VAR_MAP_SCENE_ROUTE5_ROUTE6_ROUTE7_ROUTE8_GATES", "var_value": 0, "script": "Route6_NorthEntrance_EventScript_16F9D0" }, @@ -72,7 +72,7 @@ "x": 4, "y": 5, "elevation": 3, - "var": "VAR_0x4062", + "var": "VAR_MAP_SCENE_ROUTE5_ROUTE6_ROUTE7_ROUTE8_GATES", "var_value": 0, "script": "Route6_NorthEntrance_EventScript_16F9DC" }, @@ -81,7 +81,7 @@ "x": 5, "y": 5, "elevation": 3, - "var": "VAR_0x4062", + "var": "VAR_MAP_SCENE_ROUTE5_ROUTE6_ROUTE7_ROUTE8_GATES", "var_value": 0, "script": "Route6_NorthEntrance_EventScript_16F9E8" } diff --git a/data/maps/Route6_NorthEntrance/scripts.inc b/data/maps/Route6_NorthEntrance/scripts.inc index 9537d2e82..6edd20f21 100644 --- a/data/maps/Route6_NorthEntrance/scripts.inc +++ b/data/maps/Route6_NorthEntrance/scripts.inc @@ -27,8 +27,8 @@ EventScript_16F9F4:: @ 816F9F4 textcolor 0 applymovement 255, Movement_1A75EB waitmovement 0 - checkflag FLAG_0x2A6 - goto_if_eq EventScript_16FA1E + checkflag FLAG_GOT_TEA + goto_if TRUE, EventScript_16FA1E msgbox gUnknown_819E181 closemessage applymovement 255, Movement_16FA8A @@ -45,13 +45,13 @@ EventScript_16FA29:: @ 816FA29 msgbox gUnknown_819E1D1 closemessage compare_var_to_value VAR_0x4001, 0 - call_if 1, EventScript_16FA62 + call_if eq, EventScript_16FA62 compare_var_to_value VAR_0x4001, 1 - call_if 1, EventScript_16FA6D + call_if eq, EventScript_16FA6D compare_var_to_value VAR_0x4001, 2 - call_if 1, EventScript_16FA78 + call_if eq, EventScript_16FA78 msgbox gUnknown_819E1F7 - setvar VAR_0x4062, 1 + setvar VAR_MAP_SCENE_ROUTE5_ROUTE6_ROUTE7_ROUTE8_GATES, 1 releaseall end diff --git a/data/maps/Route7/map.json b/data/maps/Route7/map.json index 72556b9fd..76d9ab07c 100644 --- a/data/maps/Route7/map.json +++ b/data/maps/Route7/map.json @@ -69,8 +69,9 @@ "y": 15, "elevation": 3, "item": "ITEM_WEPEAR_BERRY", - "flag": "152", - "unknown": 1 + "flag": "HIDDEN_ITEM_ROUTE7_WEPEAR_BERRY", + "quantity": 1, + "underfoot": false } ] } diff --git a/data/maps/Route7_EastEntrance/map.json b/data/maps/Route7_EastEntrance/map.json index 1609edf7d..baf05fc78 100644 --- a/data/maps/Route7_EastEntrance/map.json +++ b/data/maps/Route7_EastEntrance/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "60", + "graphics_id": "MAP_OBJ_GFX_POLICEMAN", "x": 6, "y": 2, "elevation": 3, @@ -63,7 +63,7 @@ "x": 6, "y": 4, "elevation": 3, - "var": "VAR_0x4062", + "var": "VAR_MAP_SCENE_ROUTE5_ROUTE6_ROUTE7_ROUTE8_GATES", "var_value": 0, "script": "Route7_EastEntrance_EventScript_16FA97" }, @@ -72,7 +72,7 @@ "x": 6, "y": 5, "elevation": 3, - "var": "VAR_0x4062", + "var": "VAR_MAP_SCENE_ROUTE5_ROUTE6_ROUTE7_ROUTE8_GATES", "var_value": 0, "script": "Route7_EastEntrance_EventScript_16FAA3" }, @@ -81,7 +81,7 @@ "x": 6, "y": 6, "elevation": 3, - "var": "VAR_0x4062", + "var": "VAR_MAP_SCENE_ROUTE5_ROUTE6_ROUTE7_ROUTE8_GATES", "var_value": 0, "script": "Route7_EastEntrance_EventScript_16FAAF" } diff --git a/data/maps/Route7_EastEntrance/scripts.inc b/data/maps/Route7_EastEntrance/scripts.inc index 845eab835..f8885b53d 100644 --- a/data/maps/Route7_EastEntrance/scripts.inc +++ b/data/maps/Route7_EastEntrance/scripts.inc @@ -27,8 +27,8 @@ EventScript_16FABB:: @ 816FABB textcolor 0 applymovement 255, Movement_1A75E9 waitmovement 0 - checkflag FLAG_0x2A6 - goto_if_eq EventScript_16FAE5 + checkflag FLAG_GOT_TEA + goto_if TRUE, EventScript_16FAE5 msgbox gUnknown_819E2B7 closemessage applymovement 255, Movement_16FB51 @@ -45,13 +45,13 @@ EventScript_16FAF0:: @ 816FAF0 msgbox gUnknown_819E307 closemessage compare_var_to_value VAR_0x4001, 0 - call_if 1, EventScript_16FB29 + call_if eq, EventScript_16FB29 compare_var_to_value VAR_0x4001, 1 - call_if 1, EventScript_16FB34 + call_if eq, EventScript_16FB34 compare_var_to_value VAR_0x4001, 2 - call_if 1, EventScript_16FB3F + call_if eq, EventScript_16FB3F msgbox gUnknown_819E32D - setvar VAR_0x4062, 1 + setvar VAR_MAP_SCENE_ROUTE5_ROUTE6_ROUTE7_ROUTE8_GATES, 1 releaseall end diff --git a/data/maps/Route8/map.json b/data/maps/Route8/map.json index 45b8cbec0..9a15eca59 100644 --- a/data/maps/Route8/map.json +++ b/data/maps/Route8/map.json @@ -25,7 +25,7 @@ ], "object_events": [ { - "graphics_id": "22", + "graphics_id": "MAP_OBJ_GFX_LASS", "x": 62, "y": 14, "elevation": 3, @@ -38,7 +38,7 @@ "flag": "0" }, { - "graphics_id": "32", + "graphics_id": "MAP_OBJ_GFX_OLD_MAN_1", "x": 55, "y": 15, "elevation": 3, @@ -51,7 +51,7 @@ "flag": "0" }, { - "graphics_id": "55", + "graphics_id": "MAP_OBJ_GFX_SCIENTIST", "x": 51, "y": 6, "elevation": 3, @@ -64,7 +64,7 @@ "flag": "0" }, { - "graphics_id": "22", + "graphics_id": "MAP_OBJ_GFX_LASS", "x": 29, "y": 3, "elevation": 3, @@ -77,7 +77,7 @@ "flag": "0" }, { - "graphics_id": "55", + "graphics_id": "MAP_OBJ_GFX_SCIENTIST", "x": 29, "y": 4, "elevation": 3, @@ -90,7 +90,7 @@ "flag": "0" }, { - "graphics_id": "22", + "graphics_id": "MAP_OBJ_GFX_LASS", "x": 29, "y": 5, "elevation": 3, @@ -103,7 +103,7 @@ "flag": "0" }, { - "graphics_id": "22", + "graphics_id": "MAP_OBJ_GFX_LASS", "x": 29, "y": 6, "elevation": 3, @@ -116,7 +116,7 @@ "flag": "0" }, { - "graphics_id": "32", + "graphics_id": "MAP_OBJ_GFX_OLD_MAN_1", "x": 21, "y": 3, "elevation": 3, @@ -129,7 +129,7 @@ "flag": "0" }, { - "graphics_id": "55", + "graphics_id": "MAP_OBJ_GFX_SCIENTIST", "x": 9, "y": 6, "elevation": 3, @@ -142,7 +142,7 @@ "flag": "0" }, { - "graphics_id": "95", + "graphics_id": "MAP_OBJ_GFX_CUT_TREE", "x": 33, "y": 15, "elevation": 3, @@ -151,11 +151,11 @@ "movement_range_y": 1, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "Route8_EventScript_1BDF13", - "flag": "18" + "script": "EventScript_InteractWithCutTreeObject", + "flag": "FLAG_TEMP_12" }, { - "graphics_id": "95", + "graphics_id": "MAP_OBJ_GFX_CUT_TREE", "x": 47, "y": 12, "elevation": 3, @@ -164,11 +164,11 @@ "movement_range_y": 1, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "Route8_EventScript_1BDF13", - "flag": "19" + "script": "EventScript_InteractWithCutTreeObject", + "flag": "FLAG_TEMP_13" }, { - "graphics_id": "17", + "graphics_id": "MAP_OBJ_GFX_LITTLE_GIRL", "x": 40, "y": 3, "elevation": 3, @@ -181,7 +181,7 @@ "flag": "0" }, { - "graphics_id": "17", + "graphics_id": "MAP_OBJ_GFX_LITTLE_GIRL", "x": 41, "y": 3, "elevation": 3, @@ -194,7 +194,7 @@ "flag": "0" }, { - "graphics_id": "53", + "graphics_id": "MAP_OBJ_GFX_BIKER", "x": 14, "y": 16, "elevation": 3, @@ -207,7 +207,7 @@ "flag": "0" }, { - "graphics_id": "53", + "graphics_id": "MAP_OBJ_GFX_BIKER", "x": 24, "y": 17, "elevation": 3, @@ -251,8 +251,9 @@ "y": 10, "elevation": 3, "item": "ITEM_RAWST_BERRY", - "flag": "127", - "unknown": 1 + "flag": "HIDDEN_ITEM_ROUTE8_RAWST_BERRY", + "quantity": 1, + "underfoot": false }, { "type": "hidden_item", @@ -260,8 +261,9 @@ "y": 11, "elevation": 3, "item": "ITEM_LUM_BERRY", - "flag": "128", - "unknown": 1 + "flag": "HIDDEN_ITEM_ROUTE8_LUM_BERRY", + "quantity": 1, + "underfoot": false }, { "type": "hidden_item", @@ -269,8 +271,9 @@ "y": 15, "elevation": 3, "item": "ITEM_LEPPA_BERRY", - "flag": "129", - "unknown": 1 + "flag": "HIDDEN_ITEM_ROUTE8_LEPPA_BERRY", + "quantity": 1, + "underfoot": false } ] } diff --git a/data/maps/Route8_WestEntrance/map.json b/data/maps/Route8_WestEntrance/map.json index 2ad2abb9b..9a8bd58ba 100644 --- a/data/maps/Route8_WestEntrance/map.json +++ b/data/maps/Route8_WestEntrance/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "60", + "graphics_id": "MAP_OBJ_GFX_POLICEMAN", "x": 6, "y": 2, "elevation": 3, @@ -63,7 +63,7 @@ "x": 6, "y": 4, "elevation": 3, - "var": "VAR_0x4062", + "var": "VAR_MAP_SCENE_ROUTE5_ROUTE6_ROUTE7_ROUTE8_GATES", "var_value": 0, "script": "Route8_WestEntrance_EventScript_16FB5D" }, @@ -72,7 +72,7 @@ "x": 6, "y": 5, "elevation": 3, - "var": "VAR_0x4062", + "var": "VAR_MAP_SCENE_ROUTE5_ROUTE6_ROUTE7_ROUTE8_GATES", "var_value": 0, "script": "Route8_WestEntrance_EventScript_16FB69" }, @@ -81,7 +81,7 @@ "x": 6, "y": 6, "elevation": 3, - "var": "VAR_0x4062", + "var": "VAR_MAP_SCENE_ROUTE5_ROUTE6_ROUTE7_ROUTE8_GATES", "var_value": 0, "script": "Route8_WestEntrance_EventScript_16FB75" } diff --git a/data/maps/Route8_WestEntrance/scripts.inc b/data/maps/Route8_WestEntrance/scripts.inc index 1d347d2d0..dfdb0b7ae 100644 --- a/data/maps/Route8_WestEntrance/scripts.inc +++ b/data/maps/Route8_WestEntrance/scripts.inc @@ -27,8 +27,8 @@ EventScript_16FB81:: @ 816FB81 textcolor 0 applymovement 255, Movement_1A75E9 waitmovement 0 - checkflag FLAG_0x2A6 - goto_if_eq EventScript_16FBAB + checkflag FLAG_GOT_TEA + goto_if TRUE, EventScript_16FBAB msgbox gUnknown_819E3ED closemessage applymovement 255, Movement_16FC2D @@ -55,13 +55,13 @@ EventScript_16FBCC:: @ 816FBCC msgbox gUnknown_819E43D closemessage compare_var_to_value VAR_0x4001, 0 - call_if 1, EventScript_16FC05 + call_if eq, EventScript_16FC05 compare_var_to_value VAR_0x4001, 1 - call_if 1, EventScript_16FC10 + call_if eq, EventScript_16FC10 compare_var_to_value VAR_0x4001, 2 - call_if 1, EventScript_16FC1B + call_if eq, EventScript_16FC1B msgbox gUnknown_819E463 - setvar VAR_0x4062, 1 + setvar VAR_MAP_SCENE_ROUTE5_ROUTE6_ROUTE7_ROUTE8_GATES, 1 releaseall end diff --git a/data/maps/Route9/map.json b/data/maps/Route9/map.json index fa56d8ed2..e6fff0498 100644 --- a/data/maps/Route9/map.json +++ b/data/maps/Route9/map.json @@ -25,7 +25,7 @@ ], "object_events": [ { - "graphics_id": "40", + "graphics_id": "MAP_OBJ_GFX_PICNICKER", "x": 14, "y": 10, "elevation": 3, @@ -38,7 +38,7 @@ "flag": "0" }, { - "graphics_id": "56", + "graphics_id": "MAP_OBJ_GFX_HIKER", "x": 20, "y": 17, "elevation": 3, @@ -51,7 +51,7 @@ "flag": "0" }, { - "graphics_id": "56", + "graphics_id": "MAP_OBJ_GFX_HIKER", "x": 61, "y": 16, "elevation": 3, @@ -64,7 +64,7 @@ "flag": "0" }, { - "graphics_id": "39", + "graphics_id": "MAP_OBJ_GFX_CAMPER", "x": 26, "y": 7, "elevation": 3, @@ -77,7 +77,7 @@ "flag": "0" }, { - "graphics_id": "20", + "graphics_id": "MAP_OBJ_GFX_BUG_CATCHER", "x": 26, "y": 1, "elevation": 3, @@ -90,7 +90,7 @@ "flag": "0" }, { - "graphics_id": "20", + "graphics_id": "MAP_OBJ_GFX_BUG_CATCHER", "x": 49, "y": 7, "elevation": 3, @@ -103,7 +103,7 @@ "flag": "0" }, { - "graphics_id": "56", + "graphics_id": "MAP_OBJ_GFX_HIKER", "x": 53, "y": 2, "elevation": 3, @@ -116,7 +116,7 @@ "flag": "0" }, { - "graphics_id": "40", + "graphics_id": "MAP_OBJ_GFX_PICNICKER", "x": 60, "y": 9, "elevation": 3, @@ -129,7 +129,7 @@ "flag": "0" }, { - "graphics_id": "39", + "graphics_id": "MAP_OBJ_GFX_CAMPER", "x": 36, "y": 6, "elevation": 3, @@ -142,7 +142,7 @@ "flag": "0" }, { - "graphics_id": "95", + "graphics_id": "MAP_OBJ_GFX_CUT_TREE", "x": 2, "y": 8, "elevation": 3, @@ -151,11 +151,11 @@ "movement_range_y": 1, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "Route9_EventScript_1BDF13", - "flag": "18" + "script": "EventScript_InteractWithCutTreeObject", + "flag": "FLAG_TEMP_12" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 12, "y": 17, "elevation": 3, @@ -165,10 +165,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "Route9_EventScript_1BE6B9", - "flag": "363" + "flag": "FLAG_HIDE_ROUTE9_TM40" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 65, "y": 17, "elevation": 3, @@ -178,7 +178,7 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "Route9_EventScript_1BEAFD", - "flag": "450" + "flag": "FLAG_HIDE_ROUTE9_BURN_HEAL" } ], "warp_events": [], @@ -197,8 +197,9 @@ "y": 7, "elevation": 0, "item": "ITEM_ETHER", - "flag": "6", - "unknown": 1 + "flag": "HIDDEN_ITEM_ROUTE9_ETHER", + "quantity": 1, + "underfoot": false }, { "type": "hidden_item", @@ -206,8 +207,9 @@ "y": 2, "elevation": 3, "item": "ITEM_RARE_CANDY", - "flag": "123", - "unknown": 1 + "flag": "HIDDEN_ITEM_ROUTE9_RARE_CANDY", + "quantity": 1, + "underfoot": false }, { "type": "hidden_item", @@ -215,8 +217,9 @@ "y": 2, "elevation": 3, "item": "ITEM_CHESTO_BERRY", - "flag": "150", - "unknown": 1 + "flag": "HIDDEN_ITEM_ROUTE9_CHESTO_BERRY", + "quantity": 1, + "underfoot": false } ] } diff --git a/data/maps/SSAnne_1F_Corridor/map.json b/data/maps/SSAnne_1F_Corridor/map.json index b2ceb6810..fff50854a 100644 --- a/data/maps/SSAnne_1F_Corridor/map.json +++ b/data/maps/SSAnne_1F_Corridor/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "62", + "graphics_id": "MAP_OBJ_GFX_SAILOR", "x": 18, "y": 8, "elevation": 3, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "47", + "graphics_id": "MAP_OBJ_GFX_WORKER_M", "x": 12, "y": 9, "elevation": 3, diff --git a/data/maps/SSAnne_1F_Room1/map.json b/data/maps/SSAnne_1F_Room1/map.json index 104a568ab..784405a63 100644 --- a/data/maps/SSAnne_1F_Room1/map.json +++ b/data/maps/SSAnne_1F_Room1/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "61", + "graphics_id": "MAP_OBJ_GFX_GENTLEMAN", "x": 2, "y": 5, "elevation": 3, diff --git a/data/maps/SSAnne_1F_Room2/map.json b/data/maps/SSAnne_1F_Room2/map.json index fcc3d6bf0..1895ff07a 100644 --- a/data/maps/SSAnne_1F_Room2/map.json +++ b/data/maps/SSAnne_1F_Room2/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "22", + "graphics_id": "MAP_OBJ_GFX_LASS", "x": 5, "y": 3, "elevation": 3, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "18", + "graphics_id": "MAP_OBJ_GFX_YOUNGSTER", "x": 0, "y": 4, "elevation": 3, @@ -40,7 +40,7 @@ "flag": "0" }, { - "graphics_id": "28", + "graphics_id": "MAP_OBJ_GFX_WOMAN_2", "x": 2, "y": 6, "elevation": 3, @@ -53,7 +53,7 @@ "flag": "0" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 5, "y": 7, "elevation": 3, @@ -63,7 +63,7 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "SSAnne_1F_Room2_EventScript_1BE65E", - "flag": "356" + "flag": "FLAG_HIDE_SSANNE_1F_ROOM2_TM31" } ], "warp_events": [ diff --git a/data/maps/SSAnne_1F_Room2/scripts.inc b/data/maps/SSAnne_1F_Room2/scripts.inc index 4f1ef996b..ef73a522a 100644 --- a/data/maps/SSAnne_1F_Room2/scripts.inc +++ b/data/maps/SSAnne_1F_Room2/scripts.inc @@ -6,11 +6,11 @@ SSAnne_1F_Room2_EventScript_160BE6:: @ 8160BE6 end SSAnne_1F_Room2_EventScript_160BEF:: @ 8160BEF - trainerbattle 0, 126, 0, Text_173A1A, Text_173A4F + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_LASS_ANN, 0, Text_173A1A, Text_173A4F msgbox gUnknown_8173A7A, 6 end SSAnne_1F_Room2_EventScript_160C06:: @ 8160C06 - trainerbattle 0, 96, 0, Text_173999, Text_1739B1 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_YOUNGSTER_TYLER, 0, Text_173999, Text_1739B1 msgbox gUnknown_81739C5, 6 end diff --git a/data/maps/SSAnne_1F_Room3/map.json b/data/maps/SSAnne_1F_Room3/map.json index 615f4c9b1..da0466b37 100644 --- a/data/maps/SSAnne_1F_Room3/map.json +++ b/data/maps/SSAnne_1F_Room3/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "17", + "graphics_id": "MAP_OBJ_GFX_LITTLE_GIRL", "x": 3, "y": 4, "elevation": 3, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "131", + "graphics_id": "MAP_OBJ_GFX_WIGGLYTUFF", "x": 4, "y": 2, "elevation": 3, @@ -40,7 +40,7 @@ "flag": "0" }, { - "graphics_id": "30", + "graphics_id": "MAP_OBJ_GFX_BALDING_MAN", "x": 0, "y": 4, "elevation": 3, diff --git a/data/maps/SSAnne_1F_Room4/map.json b/data/maps/SSAnne_1F_Room4/map.json index c12b81c2d..4f8d00d91 100644 --- a/data/maps/SSAnne_1F_Room4/map.json +++ b/data/maps/SSAnne_1F_Room4/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "23", + "graphics_id": "MAP_OBJ_GFX_WOMAN_1", "x": 2, "y": 4, "elevation": 3, diff --git a/data/maps/SSAnne_1F_Room4/scripts.inc b/data/maps/SSAnne_1F_Room4/scripts.inc index aa243949e..2bede7e12 100644 --- a/data/maps/SSAnne_1F_Room4/scripts.inc +++ b/data/maps/SSAnne_1F_Room4/scripts.inc @@ -6,7 +6,7 @@ SSAnne_1F_Room4_EventScript_160C44:: @ 8160C44 faceplayer checkplayergender compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_160C5C + goto_if eq, EventScript_160C5C msgbox gUnknown_8173BA4 release end diff --git a/data/maps/SSAnne_1F_Room5/map.json b/data/maps/SSAnne_1F_Room5/map.json index 6e86a11e8..bd987f990 100644 --- a/data/maps/SSAnne_1F_Room5/map.json +++ b/data/maps/SSAnne_1F_Room5/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "61", + "graphics_id": "MAP_OBJ_GFX_GENTLEMAN", "x": 2, "y": 6, "elevation": 3, diff --git a/data/maps/SSAnne_1F_Room5/scripts.inc b/data/maps/SSAnne_1F_Room5/scripts.inc index 553a72b52..11040e58f 100644 --- a/data/maps/SSAnne_1F_Room5/scripts.inc +++ b/data/maps/SSAnne_1F_Room5/scripts.inc @@ -2,6 +2,6 @@ SSAnne_1F_Room5_MapScripts:: @ 8160C66 .byte 0 SSAnne_1F_Room5_EventScript_160C67:: @ 8160C67 - trainerbattle 0, 422, 0, Text_173BD1, Text_173BFA + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_GENTLEMAN_ARTHUR, 0, Text_173BD1, Text_173BFA msgbox gUnknown_8173C30, 6 end diff --git a/data/maps/SSAnne_1F_Room6/map.json b/data/maps/SSAnne_1F_Room6/map.json index c8e98e62a..8eca10460 100644 --- a/data/maps/SSAnne_1F_Room6/map.json +++ b/data/maps/SSAnne_1F_Room6/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "28", + "graphics_id": "MAP_OBJ_GFX_WOMAN_2", "x": 3, "y": 5, "elevation": 3, diff --git a/data/maps/SSAnne_1F_Room6/scripts.inc b/data/maps/SSAnne_1F_Room6/scripts.inc index 1c6c0004c..755c01a91 100644 --- a/data/maps/SSAnne_1F_Room6/scripts.inc +++ b/data/maps/SSAnne_1F_Room6/scripts.inc @@ -6,9 +6,9 @@ SSAnne_1F_Room6_EventScript_160DF3:: @ 8160DF3 faceplayer msgbox gUnknown_817445B, MSGBOX_YESNO compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_160E18 + goto_if eq, EventScript_160E18 closemessage - call EventScript_1A6C26 + call EventScript_FadeOut_Heal_FadeIn msgbox gUnknown_8174490 release end @@ -16,7 +16,7 @@ SSAnne_1F_Room6_EventScript_160DF3:: @ 8160DF3 EventScript_160E18:: @ 8160E18 checkplayergender compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_160E2E + goto_if eq, EventScript_160E2E msgbox gUnknown_8174515 release end diff --git a/data/maps/SSAnne_1F_Room7/map.json b/data/maps/SSAnne_1F_Room7/map.json index aa2732f36..b93710fe4 100644 --- a/data/maps/SSAnne_1F_Room7/map.json +++ b/data/maps/SSAnne_1F_Room7/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "61", + "graphics_id": "MAP_OBJ_GFX_GENTLEMAN", "x": 4, "y": 3, "elevation": 3, diff --git a/data/maps/SSAnne_1F_Room7/scripts.inc b/data/maps/SSAnne_1F_Room7/scripts.inc index bc6e0cd88..96b0ae20a 100644 --- a/data/maps/SSAnne_1F_Room7/scripts.inc +++ b/data/maps/SSAnne_1F_Room7/scripts.inc @@ -2,6 +2,6 @@ SSAnne_1F_Room7_MapScripts:: @ 8160C7E .byte 0 SSAnne_1F_Room7_EventScript_160C7F:: @ 8160C7F - trainerbattle 0, 421, 0, Text_173C52, Text_173CB4 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_GENTLEMAN_THOMAS, 0, Text_173C52, Text_173CB4 msgbox gUnknown_8173CC4, 6 end diff --git a/data/maps/SSAnne_2F_Corridor/map.json b/data/maps/SSAnne_2F_Corridor/map.json index 80641f2ed..b45106629 100644 --- a/data/maps/SSAnne_2F_Corridor/map.json +++ b/data/maps/SSAnne_2F_Corridor/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "72", + "graphics_id": "MAP_OBJ_GFX_BLUE", "x": 30, "y": 2, "elevation": 3, @@ -24,10 +24,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "0x0", - "flag": "61" + "flag": "FLAG_HIDE_SS_ANNE_RIVAL" }, { - "graphics_id": "62", + "graphics_id": "MAP_OBJ_GFX_SAILOR", "x": 2, "y": 7, "elevation": 3, @@ -111,7 +111,7 @@ "x": 30, "y": 6, "elevation": 3, - "var": "VAR_0x405B", + "var": "VAR_MAP_SCENE_S_S_ANNE_2F_CORRIDOR", "var_value": 0, "script": "SSAnne_2F_Corridor_EventScript_1608DF" }, @@ -120,7 +120,7 @@ "x": 31, "y": 6, "elevation": 3, - "var": "VAR_0x405B", + "var": "VAR_MAP_SCENE_S_S_ANNE_2F_CORRIDOR", "var_value": 0, "script": "SSAnne_2F_Corridor_EventScript_1608EB" }, @@ -129,7 +129,7 @@ "x": 32, "y": 6, "elevation": 3, - "var": "VAR_0x405B", + "var": "VAR_MAP_SCENE_S_S_ANNE_2F_CORRIDOR", "var_value": 0, "script": "SSAnne_2F_Corridor_EventScript_1608F7" } diff --git a/data/maps/SSAnne_2F_Corridor/scripts.inc b/data/maps/SSAnne_2F_Corridor/scripts.inc index 12871cff0..82d75a686 100644 --- a/data/maps/SSAnne_2F_Corridor/scripts.inc +++ b/data/maps/SSAnne_2F_Corridor/scripts.inc @@ -36,32 +36,32 @@ EventScript_160903:: @ 8160903 waitmovement 0 delay 20 compare_var_to_value VAR_0x4001, 0 - call_if 1, EventScript_1609AD + call_if eq, EventScript_1609AD compare_var_to_value VAR_0x4001, 1 - call_if 1, EventScript_1609B8 + call_if eq, EventScript_1609B8 compare_var_to_value VAR_0x4001, 2 - call_if 1, EventScript_1609CA + call_if eq, EventScript_1609CA msgbox gUnknown_8173035 setvar VAR_LAST_TALKED, 1 compare_var_to_value VAR_STARTER_MON, 2 - call_if 1, EventScript_1609DC + call_if eq, EventScript_1609DC compare_var_to_value VAR_STARTER_MON, 1 - call_if 1, EventScript_1609E7 + call_if eq, EventScript_1609E7 compare_var_to_value VAR_STARTER_MON, 0 - call_if 1, EventScript_1609F2 + call_if eq, EventScript_1609F2 msgbox gUnknown_8173164 closemessage delay 10 playbgm MUS_RIVAL2, 0 compare_var_to_value VAR_0x4001, 0 - call_if 1, EventScript_1609FD + call_if eq, EventScript_1609FD compare_var_to_value VAR_0x4001, 1 - call_if 1, EventScript_160A08 + call_if eq, EventScript_160A08 compare_var_to_value VAR_0x4001, 2 - call_if 1, EventScript_160A13 + call_if eq, EventScript_160A13 fadedefaultbgm removeobject 1 - setvar VAR_0x405B, 1 + setvar VAR_MAP_SCENE_S_S_ANNE_2F_CORRIDOR, 1 releaseall end @@ -83,15 +83,15 @@ EventScript_1609CA:: @ 81609CA return EventScript_1609DC:: @ 81609DC - trainerbattle 3, 426, 0, Text_173110 + trainerbattle TRAINER_BATTLE_SINGLE_NO_INTRO_TEXT, TRAINER_RIVAL_SS_ANNE_SQUIRTLE, 0, Text_173110 return EventScript_1609E7:: @ 81609E7 - trainerbattle 3, 427, 0, Text_173110 + trainerbattle TRAINER_BATTLE_SINGLE_NO_INTRO_TEXT, TRAINER_RIVAL_SS_ANNE_BULBASAUR, 0, Text_173110 return EventScript_1609F2:: @ 81609F2 - trainerbattle 3, 428, 0, Text_173110 + trainerbattle TRAINER_BATTLE_SINGLE_NO_INTRO_TEXT, TRAINER_RIVAL_SS_ANNE_CHARMANDER, 0, Text_173110 return EventScript_1609FD:: @ 81609FD diff --git a/data/maps/SSAnne_2F_Room1/map.json b/data/maps/SSAnne_2F_Room1/map.json index 6b7950e26..c590cad89 100644 --- a/data/maps/SSAnne_2F_Room1/map.json +++ b/data/maps/SSAnne_2F_Room1/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "61", + "graphics_id": "MAP_OBJ_GFX_GENTLEMAN", "x": 1, "y": 4, "elevation": 3, diff --git a/data/maps/SSAnne_2F_Room1/scripts.inc b/data/maps/SSAnne_2F_Room1/scripts.inc index f3dc1f136..9748777c7 100644 --- a/data/maps/SSAnne_2F_Room1/scripts.inc +++ b/data/maps/SSAnne_2F_Room1/scripts.inc @@ -7,7 +7,7 @@ SSAnne_2F_Room1_EventScript_160C97:: @ 8160C97 message Text_173CE3 waitmessage setvar VAR_0x8004, SPECIES_SNORLAX - special sub_80CBDCC + special Special_SetSeenMon drawmonpic SPECIES_SNORLAX, 10, 3 waitbuttonpress erasemonpic diff --git a/data/maps/SSAnne_2F_Room2/map.json b/data/maps/SSAnne_2F_Room2/map.json index 66f6c2e97..124f37b4f 100644 --- a/data/maps/SSAnne_2F_Room2/map.json +++ b/data/maps/SSAnne_2F_Room2/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "57", + "graphics_id": "MAP_OBJ_GFX_FISHER", "x": 5, "y": 5, "elevation": 3, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "61", + "graphics_id": "MAP_OBJ_GFX_GENTLEMAN", "x": 1, "y": 4, "elevation": 3, @@ -40,7 +40,7 @@ "flag": "0" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 3, "y": 3, "elevation": 0, @@ -50,7 +50,7 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "SSAnne_2F_Room2_EventScript_1BE66B", - "flag": "357" + "flag": "FLAG_HIDE_SSANNE_2F_ROOM2_STARDUST" } ], "warp_events": [ diff --git a/data/maps/SSAnne_2F_Room2/scripts.inc b/data/maps/SSAnne_2F_Room2/scripts.inc index cb18a010a..cabf92f28 100644 --- a/data/maps/SSAnne_2F_Room2/scripts.inc +++ b/data/maps/SSAnne_2F_Room2/scripts.inc @@ -2,11 +2,11 @@ SSAnne_2F_Room2_MapScripts:: @ 8160CB0 .byte 0 SSAnne_2F_Room2_EventScript_160CB1:: @ 8160CB1 - trainerbattle 0, 223, 0, Text_173DDB, Text_173DF7 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_FISHERMAN_DALE, 0, Text_173DDB, Text_173DF7 msgbox gUnknown_8173E04, 6 end SSAnne_2F_Room2_EventScript_160CC8:: @ 8160CC8 - trainerbattle 0, 482, 0, Text_173D63, Text_173D92 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_GENTLEMAN_BROOKS, 0, Text_173D63, Text_173D92 msgbox gUnknown_8173DB6, 6 end diff --git a/data/maps/SSAnne_2F_Room3/map.json b/data/maps/SSAnne_2F_Room3/map.json index ed032b4b3..cec02b750 100644 --- a/data/maps/SSAnne_2F_Room3/map.json +++ b/data/maps/SSAnne_2F_Room3/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "61", + "graphics_id": "MAP_OBJ_GFX_GENTLEMAN", "x": 2, "y": 5, "elevation": 3, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "32", + "graphics_id": "MAP_OBJ_GFX_OLD_MAN_1", "x": 3, "y": 2, "elevation": 3, diff --git a/data/maps/SSAnne_2F_Room4/map.json b/data/maps/SSAnne_2F_Room4/map.json index 5fee6f393..966b86cf6 100644 --- a/data/maps/SSAnne_2F_Room4/map.json +++ b/data/maps/SSAnne_2F_Room4/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "61", + "graphics_id": "MAP_OBJ_GFX_GENTLEMAN", "x": 0, "y": 5, "elevation": 3, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "22", + "graphics_id": "MAP_OBJ_GFX_LASS", "x": 3, "y": 3, "elevation": 3, @@ -40,7 +40,7 @@ "flag": "0" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 2, "y": 4, "elevation": 3, @@ -50,7 +50,7 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "SSAnne_2F_Room4_EventScript_1BE678", - "flag": "358" + "flag": "FLAG_HIDE_SSANNE_2F_ROOM4_X_ATTACK" } ], "warp_events": [ diff --git a/data/maps/SSAnne_2F_Room4/scripts.inc b/data/maps/SSAnne_2F_Room4/scripts.inc index 26efb8bd5..330b18acc 100644 --- a/data/maps/SSAnne_2F_Room4/scripts.inc +++ b/data/maps/SSAnne_2F_Room4/scripts.inc @@ -2,11 +2,11 @@ SSAnne_2F_Room4_MapScripts:: @ 8160CF2 .byte 0 SSAnne_2F_Room4_EventScript_160CF3:: @ 8160CF3 - trainerbattle 0, 483, 0, Text_173F07, Text_173F42 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_GENTLEMAN_LAMAR, 0, Text_173F07, Text_173F42 msgbox gUnknown_8173F55, 6 end SSAnne_2F_Room4_EventScript_160D0A:: @ 8160D0A - trainerbattle 0, 127, 0, Text_173F83, Text_173FAB + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_LASS_DAWN, 0, Text_173F83, Text_173FAB msgbox gUnknown_8173FB9, 6 end diff --git a/data/maps/SSAnne_2F_Room5/map.json b/data/maps/SSAnne_2F_Room5/map.json index c9f3fe809..3759a810b 100644 --- a/data/maps/SSAnne_2F_Room5/map.json +++ b/data/maps/SSAnne_2F_Room5/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "61", + "graphics_id": "MAP_OBJ_GFX_GENTLEMAN", "x": 5, "y": 2, "elevation": 3, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "16", + "graphics_id": "MAP_OBJ_GFX_LITTLE_BOY", "x": 3, "y": 5, "elevation": 3, diff --git a/data/maps/SSAnne_2F_Room6/map.json b/data/maps/SSAnne_2F_Room6/map.json index 4f92d7599..4583c0fcb 100644 --- a/data/maps/SSAnne_2F_Room6/map.json +++ b/data/maps/SSAnne_2F_Room6/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "31", + "graphics_id": "MAP_OBJ_GFX_WOMAN_3", "x": 1, "y": 4, "elevation": 3, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "23", + "graphics_id": "MAP_OBJ_GFX_WOMAN_1", "x": 4, "y": 4, "elevation": 3, diff --git a/data/maps/SSAnne_3F_Corridor/map.json b/data/maps/SSAnne_3F_Corridor/map.json index 3318b3553..654973f7d 100644 --- a/data/maps/SSAnne_3F_Corridor/map.json +++ b/data/maps/SSAnne_3F_Corridor/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "62", + "graphics_id": "MAP_OBJ_GFX_SAILOR", "x": 10, "y": 4, "elevation": 3, diff --git a/data/maps/SSAnne_B1F_Corridor/map.json b/data/maps/SSAnne_B1F_Corridor/map.json index 1ac031188..c50752f50 100644 --- a/data/maps/SSAnne_B1F_Corridor/map.json +++ b/data/maps/SSAnne_B1F_Corridor/map.json @@ -65,8 +65,9 @@ "y": 5, "elevation": 3, "item": "ITEM_HYPER_POTION", - "flag": "8", - "unknown": 1 + "flag": "HIDDEN_ITEM_SSANNE_B1F_CORRIDOR_HYPER_POTION", + "quantity": 1, + "underfoot": false } ] } diff --git a/data/maps/SSAnne_B1F_Room1/map.json b/data/maps/SSAnne_B1F_Room1/map.json index 2db8e4478..4a7460d85 100644 --- a/data/maps/SSAnne_B1F_Room1/map.json +++ b/data/maps/SSAnne_B1F_Room1/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "57", + "graphics_id": "MAP_OBJ_GFX_FISHER", "x": 5, "y": 2, "elevation": 3, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "62", + "graphics_id": "MAP_OBJ_GFX_SAILOR", "x": 3, "y": 2, "elevation": 3, diff --git a/data/maps/SSAnne_B1F_Room1/scripts.inc b/data/maps/SSAnne_B1F_Room1/scripts.inc index ec931102e..06903353d 100644 --- a/data/maps/SSAnne_B1F_Room1/scripts.inc +++ b/data/maps/SSAnne_B1F_Room1/scripts.inc @@ -2,11 +2,11 @@ SSAnne_B1F_Room1_MapScripts:: @ 8160D47 .byte 0 SSAnne_B1F_Room1_EventScript_160D48:: @ 8160D48 - trainerbattle 0, 224, 0, Text_174177, Text_1741EF + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_FISHERMAN_BARNY, 0, Text_174177, Text_1741EF msgbox gUnknown_817420E, 6 end SSAnne_B1F_Room1_EventScript_160D5F:: @ 8160D5F - trainerbattle 0, 140, 0, Text_1740F6, Text_174123 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_SAILOR_PHILLIP, 0, Text_1740F6, Text_174123 msgbox gUnknown_817413A, 6 end diff --git a/data/maps/SSAnne_B1F_Room2/map.json b/data/maps/SSAnne_B1F_Room2/map.json index 635c1aadc..c69229610 100644 --- a/data/maps/SSAnne_B1F_Room2/map.json +++ b/data/maps/SSAnne_B1F_Room2/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "62", + "graphics_id": "MAP_OBJ_GFX_SAILOR", "x": 3, "y": 5, "elevation": 3, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 3, "y": 2, "elevation": 3, @@ -37,7 +37,7 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "SSAnne_B1F_Room2_EventScript_1BE685", - "flag": "359" + "flag": "FLAG_HIDE_SSANNE_B1F_ROOM2_TM44" } ], "warp_events": [ diff --git a/data/maps/SSAnne_B1F_Room2/scripts.inc b/data/maps/SSAnne_B1F_Room2/scripts.inc index 71acf74be..01772cab8 100644 --- a/data/maps/SSAnne_B1F_Room2/scripts.inc +++ b/data/maps/SSAnne_B1F_Room2/scripts.inc @@ -2,6 +2,6 @@ SSAnne_B1F_Room2_MapScripts:: @ 8160D76 .byte 0 SSAnne_B1F_Room2_EventScript_160D77:: @ 8160D77 - trainerbattle 0, 138, 0, Text_174239, Text_17425C + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_SAILOR_HUEY, 0, Text_174239, Text_17425C msgbox gUnknown_8174272, 6 end diff --git a/data/maps/SSAnne_B1F_Room3/map.json b/data/maps/SSAnne_B1F_Room3/map.json index caf5fb525..d4f6b9c97 100644 --- a/data/maps/SSAnne_B1F_Room3/map.json +++ b/data/maps/SSAnne_B1F_Room3/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "62", + "graphics_id": "MAP_OBJ_GFX_SAILOR", "x": 4, "y": 4, "elevation": 3, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 1, "y": 5, "elevation": 3, @@ -37,7 +37,7 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "SSAnne_B1F_Room3_EventScript_1BE692", - "flag": "360" + "flag": "FLAG_HIDE_SSANNE_B1F_ROOM3_ETHER" } ], "warp_events": [ diff --git a/data/maps/SSAnne_B1F_Room3/scripts.inc b/data/maps/SSAnne_B1F_Room3/scripts.inc index 3a1ff97c6..da4ed9aaf 100644 --- a/data/maps/SSAnne_B1F_Room3/scripts.inc +++ b/data/maps/SSAnne_B1F_Room3/scripts.inc @@ -2,6 +2,6 @@ SSAnne_B1F_Room3_MapScripts:: @ 8160D8E .byte 0 SSAnne_B1F_Room3_EventScript_160D8F:: @ 8160D8F - trainerbattle 0, 139, 0, Text_1742A6, Text_1742C3 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_SAILOR_DYLAN, 0, Text_1742A6, Text_1742C3 msgbox gUnknown_81742D2, 6 end diff --git a/data/maps/SSAnne_B1F_Room4/map.json b/data/maps/SSAnne_B1F_Room4/map.json index fbbf0545e..8fb8e9349 100644 --- a/data/maps/SSAnne_B1F_Room4/map.json +++ b/data/maps/SSAnne_B1F_Room4/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "62", + "graphics_id": "MAP_OBJ_GFX_SAILOR", "x": 3, "y": 3, "elevation": 3, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "62", + "graphics_id": "MAP_OBJ_GFX_SAILOR", "x": 2, "y": 6, "elevation": 3, diff --git a/data/maps/SSAnne_B1F_Room4/scripts.inc b/data/maps/SSAnne_B1F_Room4/scripts.inc index 02860ab54..e9730a19e 100644 --- a/data/maps/SSAnne_B1F_Room4/scripts.inc +++ b/data/maps/SSAnne_B1F_Room4/scripts.inc @@ -2,11 +2,11 @@ SSAnne_B1F_Room4_MapScripts:: @ 8160DA6 .byte 0 SSAnne_B1F_Room4_EventScript_160DA7:: @ 8160DA7 - trainerbattle 0, 136, 0, Text_174315, Text_174348 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_SAILOR_LEONARD, 0, Text_174315, Text_174348 msgbox gUnknown_8174362, 6 end SSAnne_B1F_Room4_EventScript_160DBE:: @ 8160DBE - trainerbattle 0, 137, 0, Text_174385, Text_1743B3 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_SAILOR_DUNCAN, 0, Text_174385, Text_1743B3 msgbox gUnknown_81743C8, 6 end diff --git a/data/maps/SSAnne_B1F_Room5/map.json b/data/maps/SSAnne_B1F_Room5/map.json index f80ab4f82..bd70e785b 100644 --- a/data/maps/SSAnne_B1F_Room5/map.json +++ b/data/maps/SSAnne_B1F_Room5/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "19", + "graphics_id": "MAP_OBJ_GFX_BOY", "x": 3, "y": 5, "elevation": 3, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "134", + "graphics_id": "MAP_OBJ_GFX_MACHOKE", "x": 2, "y": 5, "elevation": 3, @@ -40,7 +40,7 @@ "flag": "0" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 2, "y": 2, "elevation": 0, @@ -50,7 +50,7 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "SSAnne_B1F_Room5_EventScript_1BE69F", - "flag": "361" + "flag": "FLAG_HIDE_SSANNE_B1F_ROOM5_SUPER_POTION" } ], "warp_events": [ diff --git a/data/maps/SSAnne_CaptainsOffice/map.json b/data/maps/SSAnne_CaptainsOffice/map.json index 664266e47..3c5b166f4 100644 --- a/data/maps/SSAnne_CaptainsOffice/map.json +++ b/data/maps/SSAnne_CaptainsOffice/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "63", + "graphics_id": "MAP_OBJ_GFX_CAPTAIN", "x": 5, "y": 4, "elevation": 3, diff --git a/data/maps/SSAnne_CaptainsOffice/scripts.inc b/data/maps/SSAnne_CaptainsOffice/scripts.inc index 4dad097a0..114ba084a 100644 --- a/data/maps/SSAnne_CaptainsOffice/scripts.inc +++ b/data/maps/SSAnne_CaptainsOffice/scripts.inc @@ -3,8 +3,8 @@ SSAnne_CaptainsOffice_MapScripts:: @ 8160B39 SSAnne_CaptainsOffice_EventScript_160B3A:: @ 8160B3A lock - checkflag FLAG_0x237 - goto_if_eq EventScript_160BB5 + checkflag FLAG_GOT_HM01 + goto_if TRUE, EventScript_160BB5 msgbox gUnknown_8173646 textcolor 3 message Text_173676 @@ -19,7 +19,7 @@ SSAnne_CaptainsOffice_EventScript_160B3A:: @ 8160B3A additem ITEM_HM01, 1 giveitemfanfaremsg gUnknown_81737AF, ITEM_HM01, 1, MUS_FAN5 msgbox gUnknown_81737D2 - setflag FLAG_0x237 + setflag FLAG_GOT_HM01 setvar VAR_MAP_SCENE_VERMILION_CITY, 1 release end diff --git a/data/maps/SSAnne_Deck/map.json b/data/maps/SSAnne_Deck/map.json index bd1e16bf3..fcf2204fe 100644 --- a/data/maps/SSAnne_Deck/map.json +++ b/data/maps/SSAnne_Deck/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "62", + "graphics_id": "MAP_OBJ_GFX_SAILOR", "x": 12, "y": 10, "elevation": 3, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "30", + "graphics_id": "MAP_OBJ_GFX_BALDING_MAN", "x": 14, "y": 11, "elevation": 3, @@ -40,7 +40,7 @@ "flag": "0" }, { - "graphics_id": "62", + "graphics_id": "MAP_OBJ_GFX_SAILOR", "x": 13, "y": 13, "elevation": 3, @@ -53,7 +53,7 @@ "flag": "0" }, { - "graphics_id": "62", + "graphics_id": "MAP_OBJ_GFX_SAILOR", "x": 6, "y": 9, "elevation": 3, @@ -66,7 +66,7 @@ "flag": "0" }, { - "graphics_id": "18", + "graphics_id": "MAP_OBJ_GFX_YOUNGSTER", "x": 11, "y": 5, "elevation": 3, diff --git a/data/maps/SSAnne_Deck/scripts.inc b/data/maps/SSAnne_Deck/scripts.inc index 3f835e568..955625e2e 100644 --- a/data/maps/SSAnne_Deck/scripts.inc +++ b/data/maps/SSAnne_Deck/scripts.inc @@ -14,11 +14,11 @@ SSAnne_Deck_EventScript_160A7B:: @ 8160A7B end SSAnne_Deck_EventScript_160A84:: @ 8160A84 - trainerbattle 0, 134, 0, Text_173308, Text_17332B + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_SAILOR_EDMOND, 0, Text_173308, Text_17332B msgbox gUnknown_817333E, 6 end SSAnne_Deck_EventScript_160A9B:: @ 8160A9B - trainerbattle 0, 135, 0, Text_173382, Text_1733A0 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_SAILOR_TREVOR, 0, Text_173382, Text_1733A0 msgbox gUnknown_81733B5, 6 end diff --git a/data/maps/SSAnne_Exterior/map.json b/data/maps/SSAnne_Exterior/map.json index b0a63e5c9..65461e33a 100644 --- a/data/maps/SSAnne_Exterior/map.json +++ b/data/maps/SSAnne_Exterior/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "151", + "graphics_id": "MAP_OBJ_GFX_SS_ANNE", "x": 30, "y": 16, "elevation": 1, @@ -24,7 +24,7 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "0x0", - "flag": "135" + "flag": "FLAG_HIDE_SS_ANNE" } ], "warp_events": [ @@ -72,8 +72,9 @@ "y": 28, "elevation": 3, "item": "ITEM_LAVA_COOKIE", - "flag": "190", - "unknown": 1 + "flag": "HIDDEN_ITEM_SSANNE_EXTERIOR_LAVA_COOKIE", + "quantity": 1, + "underfoot": false } ] } diff --git a/data/maps/SSAnne_Exterior/scripts.inc b/data/maps/SSAnne_Exterior/scripts.inc index 8b622c54a..15cc43b1f 100644 --- a/data/maps/SSAnne_Exterior/scripts.inc +++ b/data/maps/SSAnne_Exterior/scripts.inc @@ -15,9 +15,9 @@ SSAnne_Exterior_160859:: @ 8160859 lockall getplayerxy VAR_0x8004, VAR_0x8005 compare_var_to_value VAR_0x8005, 6 - call_if 3, EventScript_1608A1 + call_if le, EventScript_1608A1 compare_var_to_value VAR_0x8005, 7 - call_if 4, EventScript_1608AC + call_if ge, EventScript_1608AC fadenewbgm MUS_NAMINORI delay 50 special Special_SSAnneDepartureCutscene diff --git a/data/maps/SSAnne_Kitchen/map.json b/data/maps/SSAnne_Kitchen/map.json index 19e7eac4e..45404e0cc 100644 --- a/data/maps/SSAnne_Kitchen/map.json +++ b/data/maps/SSAnne_Kitchen/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "59", + "graphics_id": "MAP_OBJ_GFX_CHEF", "x": 1, "y": 5, "elevation": 3, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "59", + "graphics_id": "MAP_OBJ_GFX_CHEF", "x": 6, "y": 6, "elevation": 3, @@ -40,7 +40,7 @@ "flag": "0" }, { - "graphics_id": "59", + "graphics_id": "MAP_OBJ_GFX_CHEF", "x": 10, "y": 4, "elevation": 3, @@ -53,7 +53,7 @@ "flag": "0" }, { - "graphics_id": "59", + "graphics_id": "MAP_OBJ_GFX_CHEF", "x": 8, "y": 9, "elevation": 3, @@ -66,7 +66,7 @@ "flag": "0" }, { - "graphics_id": "59", + "graphics_id": "MAP_OBJ_GFX_CHEF", "x": 14, "y": 5, "elevation": 3, @@ -79,7 +79,7 @@ "flag": "0" }, { - "graphics_id": "59", + "graphics_id": "MAP_OBJ_GFX_CHEF", "x": 14, "y": 7, "elevation": 3, @@ -92,7 +92,7 @@ "flag": "0" }, { - "graphics_id": "59", + "graphics_id": "MAP_OBJ_GFX_CHEF", "x": 14, "y": 9, "elevation": 3, @@ -105,7 +105,7 @@ "flag": "0" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 1, "y": 10, "elevation": 3, @@ -115,7 +115,7 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "SSAnne_Kitchen_EventScript_1BE6AC", - "flag": "362" + "flag": "FLAG_HIDE_SSANNE_KITCHEN_GREAT_BALL" } ], "warp_events": [ @@ -135,8 +135,9 @@ "y": 8, "elevation": 0, "item": "ITEM_CHESTO_BERRY", - "flag": "122", - "unknown": 1 + "flag": "HIDDEN_ITEM_SSANNE_KITCHEN_CHESTO_BERRY", + "quantity": 1, + "underfoot": false }, { "type": "hidden_item", @@ -144,8 +145,9 @@ "y": 4, "elevation": 0, "item": "ITEM_PECHA_BERRY", - "flag": "120", - "unknown": 1 + "flag": "HIDDEN_ITEM_SSANNE_KITCHEN_PECHA_BERRY", + "quantity": 1, + "underfoot": false }, { "type": "hidden_item", @@ -153,8 +155,9 @@ "y": 6, "elevation": 0, "item": "ITEM_CHERI_BERRY", - "flag": "121", - "unknown": 1 + "flag": "HIDDEN_ITEM_SSANNE_KITCHEN_CHERI_BERRY", + "quantity": 1, + "underfoot": false } ] } diff --git a/data/maps/SSAnne_Kitchen/scripts.inc b/data/maps/SSAnne_Kitchen/scripts.inc index b1b60056d..8ab022028 100644 --- a/data/maps/SSAnne_Kitchen/scripts.inc +++ b/data/maps/SSAnne_Kitchen/scripts.inc @@ -20,11 +20,11 @@ SSAnne_Kitchen_EventScript_160ACE:: @ 8160ACE random 3 copyvar VAR_0x8008, VAR_RESULT compare_var_to_value VAR_0x8008, 0 - call_if 1, EventScript_160B03 + call_if eq, EventScript_160B03 compare_var_to_value VAR_0x8008, 1 - call_if 1, EventScript_160B0C + call_if eq, EventScript_160B0C compare_var_to_value VAR_0x8008, 2 - call_if 1, EventScript_160B15 + call_if eq, EventScript_160B15 release end diff --git a/data/maps/SafariZone_Building1/map.json b/data/maps/SafariZone_Building1/map.json index 3173c5dae..700aa87d1 100644 --- a/data/maps/SafariZone_Building1/map.json +++ b/data/maps/SafariZone_Building1/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "55", + "graphics_id": "MAP_OBJ_GFX_SCIENTIST", "x": 3, "y": 4, "elevation": 3, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "23", + "graphics_id": "MAP_OBJ_GFX_WOMAN_1", "x": 7, "y": 3, "elevation": 3, diff --git a/data/maps/SafariZone_Building2/map.json b/data/maps/SafariZone_Building2/map.json index 2aade6512..17b2fb57a 100644 --- a/data/maps/SafariZone_Building2/map.json +++ b/data/maps/SafariZone_Building2/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "55", + "graphics_id": "MAP_OBJ_GFX_SCIENTIST", "x": 3, "y": 5, "elevation": 3, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "26", + "graphics_id": "MAP_OBJ_GFX_ROCKER", "x": 6, "y": 3, "elevation": 3, @@ -40,7 +40,7 @@ "flag": "0" }, { - "graphics_id": "30", + "graphics_id": "MAP_OBJ_GFX_BALDING_MAN", "x": 7, "y": 3, "elevation": 3, diff --git a/data/maps/SafariZone_Building3/map.json b/data/maps/SafariZone_Building3/map.json index fae8637ea..de59e1575 100644 --- a/data/maps/SafariZone_Building3/map.json +++ b/data/maps/SafariZone_Building3/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "61", + "graphics_id": "MAP_OBJ_GFX_GENTLEMAN", "x": 3, "y": 4, "elevation": 3, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "55", + "graphics_id": "MAP_OBJ_GFX_SCIENTIST", "x": 7, "y": 5, "elevation": 3, @@ -40,7 +40,7 @@ "flag": "0" }, { - "graphics_id": "57", + "graphics_id": "MAP_OBJ_GFX_FISHER", "x": 6, "y": 2, "elevation": 3, @@ -53,7 +53,7 @@ "flag": "0" }, { - "graphics_id": "30", + "graphics_id": "MAP_OBJ_GFX_BALDING_MAN", "x": 11, "y": 2, "elevation": 3, diff --git a/data/maps/SafariZone_Building4/map.json b/data/maps/SafariZone_Building4/map.json index a2ccec451..09b1e09a7 100644 --- a/data/maps/SafariZone_Building4/map.json +++ b/data/maps/SafariZone_Building4/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "55", + "graphics_id": "MAP_OBJ_GFX_SCIENTIST", "x": 3, "y": 4, "elevation": 3, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "25", + "graphics_id": "MAP_OBJ_GFX_MAN", "x": 2, "y": 2, "elevation": 0, @@ -40,7 +40,7 @@ "flag": "0" }, { - "graphics_id": "42", + "graphics_id": "MAP_OBJ_GFX_COOLTRAINER_F", "x": 7, "y": 3, "elevation": 3, diff --git a/data/maps/SafariZone_Center/map.json b/data/maps/SafariZone_Center/map.json index 6a21b2a3e..39b950060 100644 --- a/data/maps/SafariZone_Center/map.json +++ b/data/maps/SafariZone_Center/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 24, "y": 15, "elevation": 3, @@ -24,7 +24,7 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "SafariZone_Center_EventScript_1BE7D7", - "flag": "385" + "flag": "FLAG_HIDE_SAFARI_ZONE_CENTER_NUGGET" } ], "warp_events": [ @@ -142,8 +142,9 @@ "y": 15, "elevation": 3, "item": "ITEM_LEAF_STONE", - "flag": "22", - "unknown": 1 + "flag": "HIDDEN_ITEM_SAFARI_ZONE_CENTER_LEAF_STONE", + "quantity": 1, + "underfoot": false }, { "type": "bg_event_type_0", diff --git a/data/maps/SafariZone_East/map.json b/data/maps/SafariZone_East/map.json index e9b4475cf..dae5d93f8 100644 --- a/data/maps/SafariZone_East/map.json +++ b/data/maps/SafariZone_East/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 13, "y": 12, "elevation": 3, @@ -24,10 +24,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "SafariZone_East_EventScript_1BE7E4", - "flag": "386" + "flag": "FLAG_HIDE_SAFARI_ZONE_EAST_MAX_POTION" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 37, "y": 15, "elevation": 3, @@ -37,10 +37,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "SafariZone_East_EventScript_1BE7F1", - "flag": "387" + "flag": "FLAG_HIDE_SAFARI_ZONE_EAST_FULL_RESTORE" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 31, "y": 18, "elevation": 3, @@ -50,10 +50,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "SafariZone_East_EventScript_1BE7FE", - "flag": "388" + "flag": "FLAG_HIDE_SAFARI_ZONE_EAST_TM11" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 36, "y": 17, "elevation": 4, @@ -63,7 +63,7 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "SafariZone_East_EventScript_1BE80B", - "flag": "389" + "flag": "FLAG_HIDE_SAFARI_ZONE_EAST_LEAF_STONE" } ], "warp_events": [ diff --git a/data/maps/SafariZone_North/map.json b/data/maps/SafariZone_North/map.json index e02b44909..5d15f61f9 100644 --- a/data/maps/SafariZone_North/map.json +++ b/data/maps/SafariZone_North/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 33, "y": 5, "elevation": 3, @@ -24,10 +24,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "SafariZone_North_EventScript_1BE818", - "flag": "390" + "flag": "FLAG_HIDE_SAFARI_ZONE_NORTH_PROTEIN" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 28, "y": 9, "elevation": 3, @@ -37,10 +37,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "SafariZone_North_EventScript_1BE825", - "flag": "391" + "flag": "FLAG_HIDE_SAFARI_ZONE_NORTH_TM47" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 29, "y": 17, "elevation": 3, @@ -50,7 +50,7 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "SafariZone_North_EventScript_1BEBDA", - "flag": "467" + "flag": "FLAG_HIDE_SAFARI_ZONE_NORTH_QUICK_CLAW" } ], "warp_events": [ diff --git a/data/maps/SafariZone_SecretHouse/map.json b/data/maps/SafariZone_SecretHouse/map.json index 7eff5e68f..88838d5ff 100644 --- a/data/maps/SafariZone_SecretHouse/map.json +++ b/data/maps/SafariZone_SecretHouse/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "47", + "graphics_id": "MAP_OBJ_GFX_WORKER_M", "x": 6, "y": 5, "elevation": 3, diff --git a/data/maps/SafariZone_SecretHouse/scripts.inc b/data/maps/SafariZone_SecretHouse/scripts.inc index 67987618d..a4b3b1910 100644 --- a/data/maps/SafariZone_SecretHouse/scripts.inc +++ b/data/maps/SafariZone_SecretHouse/scripts.inc @@ -4,16 +4,16 @@ SafariZone_SecretHouse_MapScripts:: @ 8162452 SafariZone_SecretHouse_EventScript_162453:: @ 8162453 lock faceplayer - checkflag FLAG_0x239 - goto_if_eq EventScript_1624A9 + checkflag FLAG_GOT_HM03 + goto_if TRUE, EventScript_1624A9 msgbox gUnknown_8177DC1 checkitemspace ITEM_HM03, 1 compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_16249F + goto_if eq, EventScript_16249F additem ITEM_HM03, 1 giveitemfanfaremsg gUnknown_8177E92, ITEM_HM03 msgbox gUnknown_8177EB7 - setflag FLAG_0x239 + setflag FLAG_GOT_HM03 release end diff --git a/data/maps/SafariZone_West/map.json b/data/maps/SafariZone_West/map.json index 4a9558841..bad880c1b 100644 --- a/data/maps/SafariZone_West/map.json +++ b/data/maps/SafariZone_West/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 28, "y": 14, "elevation": 3, @@ -24,10 +24,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "SafariZone_West_EventScript_1BE83F", - "flag": "393" + "flag": "FLAG_HIDE_SAFARI_ZONE_WEST_GOLD_TEETH" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 17, "y": 13, "elevation": 3, @@ -37,10 +37,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "SafariZone_West_EventScript_1BE832", - "flag": "392" + "flag": "FLAG_HIDE_SAFARI_ZONE_WEST_TM32" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 16, "y": 27, "elevation": 3, @@ -50,10 +50,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "SafariZone_West_EventScript_1BE84C", - "flag": "394" + "flag": "FLAG_HIDE_SAFARI_ZONE_WEST_MAX_POTION" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 27, "y": 24, "elevation": 3, @@ -63,7 +63,7 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "SafariZone_West_EventScript_1BE859", - "flag": "395" + "flag": "FLAG_HIDE_SAFARI_ZONE_WEST_MAX_REVIVE" } ], "warp_events": [ @@ -181,8 +181,9 @@ "y": 11, "elevation": 3, "item": "ITEM_REVIVE", - "flag": "23", - "unknown": 1 + "flag": "HIDDEN_ITEM_SAFARI_ZONE_WEST_REVIVE", + "quantity": 1, + "underfoot": false } ] } diff --git a/data/maps/SaffronCity/map.json b/data/maps/SaffronCity/map.json index 48eba64e0..b70aa83c1 100644 --- a/data/maps/SaffronCity/map.json +++ b/data/maps/SaffronCity/map.json @@ -36,7 +36,7 @@ "connections_no_include": true, "object_events": [ { - "graphics_id": "49", + "graphics_id": "MAP_OBJ_GFX_ROCKET_M", "x": 22, "y": 15, "elevation": 3, @@ -46,10 +46,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "SaffronCity_EventScript_16737A", - "flag": "62" + "flag": "FLAG_HIDE_SAFFRON_ROCKETS" }, { - "graphics_id": "49", + "graphics_id": "MAP_OBJ_GFX_ROCKET_M", "x": 26, "y": 16, "elevation": 3, @@ -59,10 +59,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "SaffronCity_EventScript_167383", - "flag": "62" + "flag": "FLAG_HIDE_SAFFRON_ROCKETS" }, { - "graphics_id": "49", + "graphics_id": "MAP_OBJ_GFX_ROCKET_M", "x": 46, "y": 13, "elevation": 3, @@ -72,10 +72,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "SaffronCity_EventScript_16738C", - "flag": "62" + "flag": "FLAG_HIDE_SAFFRON_ROCKETS" }, { - "graphics_id": "49", + "graphics_id": "MAP_OBJ_GFX_ROCKET_M", "x": 27, "y": 22, "elevation": 3, @@ -85,10 +85,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "SaffronCity_EventScript_167395", - "flag": "62" + "flag": "FLAG_HIDE_SAFFRON_ROCKETS" }, { - "graphics_id": "49", + "graphics_id": "MAP_OBJ_GFX_ROCKET_M", "x": 25, "y": 33, "elevation": 3, @@ -98,10 +98,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "SaffronCity_EventScript_16739E", - "flag": "62" + "flag": "FLAG_HIDE_SAFFRON_ROCKETS" }, { - "graphics_id": "49", + "graphics_id": "MAP_OBJ_GFX_ROCKET_M", "x": 34, "y": 31, "elevation": 3, @@ -111,10 +111,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "SaffronCity_EventScript_1673B9", - "flag": "62" + "flag": "FLAG_HIDE_SAFFRON_ROCKETS" }, { - "graphics_id": "49", + "graphics_id": "MAP_OBJ_GFX_ROCKET_M", "x": 30, "y": 39, "elevation": 3, @@ -124,10 +124,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "SaffronCity_EventScript_1673B0", - "flag": "62" + "flag": "FLAG_HIDE_SAFFRON_ROCKETS" }, { - "graphics_id": "49", + "graphics_id": "MAP_OBJ_GFX_ROCKET_M", "x": 48, "y": 24, "elevation": 3, @@ -137,10 +137,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "SaffronCity_EventScript_1673A7", - "flag": "62" + "flag": "FLAG_HIDE_SAFFRON_ROCKETS" }, { - "graphics_id": "18", + "graphics_id": "MAP_OBJ_GFX_YOUNGSTER", "x": 37, "y": 32, "elevation": 3, @@ -150,10 +150,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "SaffronCity_EventScript_1673EC", - "flag": "63" + "flag": "FLAG_HIDE_SAFFRON_CIVILIANS" }, { - "graphics_id": "47", + "graphics_id": "MAP_OBJ_GFX_WORKER_M", "x": 21, "y": 23, "elevation": 3, @@ -163,10 +163,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "SaffronCity_EventScript_1673E3", - "flag": "63" + "flag": "FLAG_HIDE_SAFFRON_CIVILIANS" }, { - "graphics_id": "25", + "graphics_id": "MAP_OBJ_GFX_MAN", "x": 39, "y": 16, "elevation": 3, @@ -176,10 +176,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "SaffronCity_EventScript_16741A", - "flag": "63" + "flag": "FLAG_HIDE_SAFFRON_CIVILIANS" }, { - "graphics_id": "19", + "graphics_id": "MAP_OBJ_GFX_BOY", "x": 44, "y": 22, "elevation": 3, @@ -189,10 +189,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "SaffronCity_EventScript_1673FE", - "flag": "63" + "flag": "FLAG_HIDE_SAFFRON_CIVILIANS" }, { - "graphics_id": "114", + "graphics_id": "MAP_OBJ_GFX_PIDGEOT", "x": 45, "y": 22, "elevation": 3, @@ -202,10 +202,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "SaffronCity_EventScript_167407", - "flag": "63" + "flag": "FLAG_HIDE_SAFFRON_CIVILIANS" }, { - "graphics_id": "22", + "graphics_id": "MAP_OBJ_GFX_LASS", "x": 32, "y": 39, "elevation": 3, @@ -215,10 +215,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "SaffronCity_EventScript_1673F5", - "flag": "63" + "flag": "FLAG_HIDE_SAFFRON_CIVILIANS" }, { - "graphics_id": "24", + "graphics_id": "MAP_OBJ_GFX_BATTLE_GIRL", "x": 47, "y": 24, "elevation": 3, @@ -228,7 +228,7 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "SaffronCity_EventScript_1AD03A", - "flag": "157" + "flag": "FLAG_HIDE_POSTGAME_GOSSIPERS" } ], "warp_events": [ diff --git a/data/maps/SaffronCity/scripts.inc b/data/maps/SaffronCity/scripts.inc index 9d591eec0..498557ddb 100644 --- a/data/maps/SaffronCity/scripts.inc +++ b/data/maps/SaffronCity/scripts.inc @@ -4,8 +4,8 @@ SaffronCity_MapScripts:: @ 816735F SaffronCity_MapScript1_167365:: @ 8167365 setworldmapflag FLAG_WORLD_MAP_SAFFRON_CITY - checkflag FLAG_0x23C - call_if 0, EventScript_167372 + checkflag FLAG_RESCUED_MR_FUJI + call_if FALSE, EventScript_167372 end EventScript_167372:: @ 8167372 @@ -42,8 +42,8 @@ SaffronCity_EventScript_1673B0:: @ 81673B0 SaffronCity_EventScript_1673B9:: @ 81673B9 lock - checkflag FLAG_0x23C - goto_if_eq EventScript_1673D7 + checkflag FLAG_RESCUED_MR_FUJI + goto_if TRUE, EventScript_1673D7 applymovement 6, Movement_1A75E1 waitmovement 0 msgbox gUnknown_81812CA @@ -96,9 +96,7 @@ SaffronCity_EventScript_16742C:: @ 816742C SaffronCity_EventScript_167435:: @ 8167435 lockall - setvar VAR_0x8004, 7 - setvar VAR_0x8005, 0 - special SetFlavorTextFlagFromSpecialVars + famechecker FAMECHECKER_SABRINA, 0 msgbox gUnknown_8181362 releaseall end diff --git a/data/maps/SaffronCity_Dojo/map.json b/data/maps/SaffronCity_Dojo/map.json index 85f44168e..91bf8e662 100644 --- a/data/maps/SaffronCity_Dojo/map.json +++ b/data/maps/SaffronCity_Dojo/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "54", + "graphics_id": "MAP_OBJ_GFX_BLACKBELT", "x": 11, "y": 10, "elevation": 3, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "54", + "graphics_id": "MAP_OBJ_GFX_BLACKBELT", "x": 1, "y": 10, "elevation": 3, @@ -40,7 +40,7 @@ "flag": "0" }, { - "graphics_id": "54", + "graphics_id": "MAP_OBJ_GFX_BLACKBELT", "x": 11, "y": 8, "elevation": 3, @@ -53,7 +53,7 @@ "flag": "0" }, { - "graphics_id": "54", + "graphics_id": "MAP_OBJ_GFX_BLACKBELT", "x": 1, "y": 8, "elevation": 3, @@ -66,7 +66,7 @@ "flag": "0" }, { - "graphics_id": "54", + "graphics_id": "MAP_OBJ_GFX_BLACKBELT", "x": 6, "y": 5, "elevation": 3, @@ -79,7 +79,7 @@ "flag": "0" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 5, "y": 3, "elevation": 3, @@ -89,10 +89,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "SaffronCity_Dojo_EventScript_16EC00", - "flag": "96" + "flag": "FLAG_HIDE_DOJO_HITMONLEE_BALL" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 7, "y": 3, "elevation": 3, @@ -102,7 +102,7 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "SaffronCity_Dojo_EventScript_16EC46", - "flag": "97" + "flag": "FLAG_HIDE_DOJO_HITMONCHAN_BALL" } ], "warp_events": [ @@ -134,7 +134,7 @@ "x": 5, "y": 5, "elevation": 3, - "var": "VAR_0x4081", + "var": "VAR_MAP_SCENE_SAFFRON_CITY_DOJO", "var_value": 0, "script": "SaffronCity_Dojo_EventScript_16EBDC" }, @@ -143,7 +143,7 @@ "x": 7, "y": 5, "elevation": 3, - "var": "VAR_0x4081", + "var": "VAR_MAP_SCENE_SAFFRON_CITY_DOJO", "var_value": 0, "script": "SaffronCity_Dojo_EventScript_16EBEE" } diff --git a/data/maps/SaffronCity_Dojo/scripts.inc b/data/maps/SaffronCity_Dojo/scripts.inc index 8be7e27a6..8481db66c 100644 --- a/data/maps/SaffronCity_Dojo/scripts.inc +++ b/data/maps/SaffronCity_Dojo/scripts.inc @@ -3,7 +3,7 @@ SaffronCity_Dojo_MapScripts:: @ 816EBDB SaffronCity_Dojo_EventScript_16EBDC:: @ 816EBDC lockall - setvar VAR_0x4081, 1 + setvar VAR_MAP_SCENE_SAFFRON_CITY_DOJO, 1 applymovement 5, Movement_1A75E7 waitmovement 0 releaseall @@ -11,7 +11,7 @@ SaffronCity_Dojo_EventScript_16EBDC:: @ 816EBDC SaffronCity_Dojo_EventScript_16EBEE:: @ 816EBEE lockall - setvar VAR_0x4081, 1 + setvar VAR_MAP_SCENE_SAFFRON_CITY_DOJO, 1 applymovement 5, Movement_1A75EB waitmovement 0 releaseall @@ -20,8 +20,8 @@ SaffronCity_Dojo_EventScript_16EBEE:: @ 816EBEE SaffronCity_Dojo_EventScript_16EC00:: @ 816EC00 lock faceplayer - checkflag FLAG_0x278 - goto_if_eq EventScript_16EC3C + checkflag FLAG_GOT_HITMON_FROM_DOJO + goto_if TRUE, EventScript_16EC3C drawmonpic SPECIES_HITMONLEE, 10, 3 setvar VAR_0x4001, SPECIES_HITMONLEE applymovement 5, Movement_1A75E9 @@ -30,7 +30,7 @@ SaffronCity_Dojo_EventScript_16EC00:: @ 816EC00 msgbox gUnknown_819B44E, MSGBOX_YESNO call EventScript_1A6675 compare_var_to_value VAR_RESULT, 1 - goto_if_eq EventScript_16EC82 + goto_if eq, EventScript_16EC82 erasemonpic release end @@ -43,8 +43,8 @@ EventScript_16EC3C:: @ 816EC3C SaffronCity_Dojo_EventScript_16EC46:: @ 816EC46 lock faceplayer - checkflag FLAG_0x278 - goto_if_eq EventScript_16EC3C + checkflag FLAG_GOT_HITMON_FROM_DOJO + goto_if TRUE, EventScript_16EC3C drawmonpic SPECIES_HITMONCHAN, 10, 3 setvar VAR_0x4001, SPECIES_HITMONCHAN applymovement 5, Movement_1A75E9 @@ -53,7 +53,7 @@ SaffronCity_Dojo_EventScript_16EC46:: @ 816EC46 msgbox gUnknown_819B49E, MSGBOX_YESNO call EventScript_1A6675 compare_var_to_value VAR_RESULT, 1 - goto_if_eq EventScript_16EC82 + goto_if eq, EventScript_16EC82 erasemonpic release end @@ -62,11 +62,11 @@ EventScript_16EC82:: @ 816EC82 erasemonpic givemon VAR_0x4001, 25, ITEM_NONE, 0, 0, 0 compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_16ECB5 + goto_if eq, EventScript_16ECB5 compare_var_to_value VAR_RESULT, 1 - goto_if_eq EventScript_16ECEC + goto_if eq, EventScript_16ECEC compare_var_to_value VAR_RESULT, 2 - goto_if_eq EventScript_1A927C + goto_if eq, EventScript_1A927C release end @@ -77,10 +77,10 @@ EventScript_16ECB5:: @ 816ECB5 message Text_19B473 waitmessage waitfanfare - setflag FLAG_0x278 + setflag FLAG_GOT_HITMON_FROM_DOJO msgbox gUnknown_81A56A7, MSGBOX_YESNO compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_16ED29 + goto_if eq, EventScript_16ED29 call EventScript_1A8C27 call EventScript_1A74EB goto EventScript_16ED29 @@ -93,10 +93,10 @@ EventScript_16ECEC:: @ 816ECEC message Text_19B473 waitmessage waitfanfare - setflag FLAG_0x278 + setflag FLAG_GOT_HITMON_FROM_DOJO msgbox gUnknown_81A56A7, MSGBOX_YESNO compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_16ED1E + goto_if eq, EventScript_16ED1E call EventScript_1A8C33 goto EventScript_16ED1E end @@ -123,29 +123,29 @@ SaffronCity_Dojo_EventScript_16ED3D:: @ 816ED3D end SaffronCity_Dojo_EventScript_16ED46:: @ 816ED46 - trainerbattle 0, 321, 0, Text_19B3DF, Text_19B40F + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_BLACK_BELT_HITOSHI, 0, Text_19B3DF, Text_19B40F msgbox gUnknown_819B41F, 6 end SaffronCity_Dojo_EventScript_16ED5D:: @ 816ED5D - trainerbattle 0, 319, 0, Text_19B2E0, Text_19B2FD + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_BLACK_BELT_HIDEKI, 0, Text_19B2E0, Text_19B2FD msgbox gUnknown_819B30F, 6 end SaffronCity_Dojo_EventScript_16ED74:: @ 816ED74 - trainerbattle 0, 320, 0, Text_19B341, Text_19B396 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_BLACK_BELT_AARON, 0, Text_19B341, Text_19B396 msgbox gUnknown_819B3AC, 6 end SaffronCity_Dojo_EventScript_16ED8B:: @ 816ED8B - trainerbattle 0, 318, 0, Text_19B275, Text_19B292 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_BLACK_BELT_MIKE, 0, Text_19B275, Text_19B292 msgbox gUnknown_819B29D, 6 end SaffronCity_Dojo_EventScript_16EDA2:: @ 816EDA2 - trainerbattle 2, 317, 0, Text_19B12C, Text_19B193, EventScript_16EDD0 - checkflag FLAG_0x278 - goto_if_eq EventScript_16EDC6 + trainerbattle TRAINER_BATTLE_CONTINUE_SCRIPT, TRAINER_BLACK_BELT_KOICHI, 0, Text_19B12C, Text_19B193, EventScript_16EDD0 + checkflag FLAG_GOT_HITMON_FROM_DOJO + goto_if TRUE, EventScript_16EDC6 msgbox gUnknown_819B1A7, 6 end @@ -155,6 +155,6 @@ EventScript_16EDC6:: @ 816EDC6 end EventScript_16EDD0:: @ 816EDD0 - setvar VAR_0x4081, 1 + setvar VAR_MAP_SCENE_SAFFRON_CITY_DOJO, 1 release end diff --git a/data/maps/SaffronCity_Gym/map.json b/data/maps/SaffronCity_Gym/map.json index 24cd66c55..4f6f13afc 100644 --- a/data/maps/SaffronCity_Gym/map.json +++ b/data/maps/SaffronCity_Gym/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "41", + "graphics_id": "MAP_OBJ_GFX_COOLTRAINER_M", "x": 24, "y": 18, "elevation": 3, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "41", + "graphics_id": "MAP_OBJ_GFX_COOLTRAINER_M", "x": 24, "y": 2, "elevation": 3, @@ -40,7 +40,7 @@ "flag": "0" }, { - "graphics_id": "41", + "graphics_id": "MAP_OBJ_GFX_COOLTRAINER_M", "x": 4, "y": 2, "elevation": 3, @@ -53,7 +53,7 @@ "flag": "0" }, { - "graphics_id": "58", + "graphics_id": "MAP_OBJ_GFX_CHANNELER", "x": 14, "y": 2, "elevation": 3, @@ -66,7 +66,7 @@ "flag": "0" }, { - "graphics_id": "58", + "graphics_id": "MAP_OBJ_GFX_CHANNELER", "x": 4, "y": 10, "elevation": 3, @@ -79,7 +79,7 @@ "flag": "0" }, { - "graphics_id": "58", + "graphics_id": "MAP_OBJ_GFX_CHANNELER", "x": 4, "y": 18, "elevation": 3, @@ -92,7 +92,7 @@ "flag": "0" }, { - "graphics_id": "85", + "graphics_id": "MAP_OBJ_GFX_SABRINA", "x": 14, "y": 11, "elevation": 3, @@ -105,7 +105,7 @@ "flag": "0" }, { - "graphics_id": "41", + "graphics_id": "MAP_OBJ_GFX_COOLTRAINER_M", "x": 24, "y": 10, "elevation": 3, @@ -118,7 +118,7 @@ "flag": "0" }, { - "graphics_id": "91", + "graphics_id": "MAP_OBJ_GFX_GYM_GUY", "x": 15, "y": 20, "elevation": 3, diff --git a/data/maps/SaffronCity_Gym/scripts.inc b/data/maps/SaffronCity_Gym/scripts.inc index cbd8b2d02..159cb1729 100644 --- a/data/maps/SaffronCity_Gym/scripts.inc +++ b/data/maps/SaffronCity_Gym/scripts.inc @@ -2,28 +2,21 @@ SaffronCity_Gym_MapScripts:: @ 816EDD7 .byte 0 SaffronCity_Gym_EventScript_16EDD8:: @ 816EDD8 - setvar VAR_0x8004, 7 - setvar VAR_0x8005, 2 - special UpdatePickStateFromSpecialVar8005 - trainerbattle 1, 420, 0, Text_19B53C, Text_19B602, EventScript_16EE0A - checkflag FLAG_0x29A - goto_if 0, EventScript_16EE3D + famechecker FAMECHECKER_SABRINA, FCPICKSTATE_COLORED, UpdatePickStateFromSpecialVar8005 + trainerbattle TRAINER_BATTLE_CONTINUE_SCRIPT_NO_MUSIC, TRAINER_LEADER_SABRINA, 0, Text_19B53C, Text_19B602, EventScript_16EE0A + checkflag FLAG_GOT_TM04_FROM_SABRINA + goto_if FALSE, EventScript_16EE3D msgbox gUnknown_819B7F2 release end EventScript_16EE0A:: @ 816EE0A - setvar VAR_0x8004, 7 - setvar VAR_0x8005, 2 - special SetFlavorTextFlagFromSpecialVars - setvar VAR_0x8004, 7 - setvar VAR_0x8005, 3 - special SetFlavorTextFlagFromSpecialVars - clearflag FLAG_0x0AE - setflag FLAG_0x4B5 - setflag FLAG_0x825 - setvar VAR_0x8008, 6 - call EventScript_1A6B18 + famechecker FAMECHECKER_SABRINA, 2 + famechecker FAMECHECKER_SABRINA, 3 + clearflag FLAG_HIDE_SAFFRON_CITY_POKECENTER_SABRINA_JOURNALS + setflag FLAG_DEFEATED_SABRINA + setflag FLAG_BADGE06_GET + set_gym_trainers 6 goto EventScript_16EE3D end @@ -31,10 +24,10 @@ EventScript_16EE3D:: @ 816EE3D msgbox gUnknown_819B6FA checkitemspace ITEM_TM04, 1 compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_16EE7E + goto_if eq, EventScript_16EE7E additem ITEM_TM04, 1 giveitemfanfaremsg gUnknown_819B7D3, ITEM_TM04 - setflag FLAG_0x29A + setflag FLAG_GOT_TM04_FROM_SABRINA msgbox gUnknown_819B685 release end @@ -45,48 +38,46 @@ EventScript_16EE7E:: @ 816EE7E end SaffronCity_Gym_EventScript_16EE88:: @ 816EE88 - trainerbattle 0, 280, 0, Text_19B936, Text_19B957 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_PSYCHIC_JOHAN, 0, Text_19B936, Text_19B957 msgbox gUnknown_819B96D, 6 end SaffronCity_Gym_EventScript_16EE9F:: @ 816EE9F - trainerbattle 0, 281, 0, Text_19BA45, Text_19BA9E - setvar VAR_0x8004, 7 - setvar VAR_0x8005, 5 - special SetFlavorTextFlagFromSpecialVars + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_PSYCHIC_TYRON, 0, Text_19BA45, Text_19BA9E + famechecker FAMECHECKER_SABRINA, 5 msgbox gUnknown_819BAB4, 6 end SaffronCity_Gym_EventScript_16EEC3:: @ 816EEC3 - trainerbattle 0, 282, 0, Text_19BB49, Text_19BBA1 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_PSYCHIC_CAMERON, 0, Text_19BB49, Text_19BBA1 msgbox gUnknown_819BBB3, 6 end SaffronCity_Gym_EventScript_16EEDA:: @ 816EEDA - trainerbattle 0, 283, 0, Text_19BC57, Text_19BCBC + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_PSYCHIC_PRESTON, 0, Text_19BC57, Text_19BCBC msgbox gUnknown_819BCC4, 6 end SaffronCity_Gym_EventScript_16EEF1:: @ 816EEF1 - trainerbattle 0, 462, 0, Text_19B86A, Text_19B8A8 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_CHANNELER_AMANDA, 0, Text_19B86A, Text_19B8A8 msgbox gUnknown_819B8B9, 6 end SaffronCity_Gym_EventScript_16EF08:: @ 816EF08 - trainerbattle 0, 463, 0, Text_19B998, Text_19B9EC + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_CHANNELER_STACY, 0, Text_19B998, Text_19B9EC msgbox gUnknown_819B9F7, 6 end SaffronCity_Gym_EventScript_16EF1F:: @ 816EF1F - trainerbattle 0, 464, 0, Text_19BAE8, Text_19BB0D + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_CHANNELER_TASHA, 0, Text_19BAE8, Text_19BB0D msgbox gUnknown_819BB1F, 6 end SaffronCity_Gym_EventScript_16EF36:: @ 816EF36 lock faceplayer - checkflag FLAG_0x4B5 - goto_if_eq EventScript_16EF4B + checkflag FLAG_DEFEATED_SABRINA + goto_if TRUE, EventScript_16EF4B msgbox gUnknown_819BCF6 release end @@ -98,8 +89,8 @@ EventScript_16EF4B:: @ 816EF4B SaffronCity_Gym_EventScript_16EF55:: @ 816EF55 lockall - checkflag FLAG_0x825 - goto_if_eq EventScript_16EF69 + checkflag FLAG_BADGE06_GET + goto_if TRUE, EventScript_16EF69 msgbox gUnknown_819BDFE releaseall end diff --git a/data/maps/SaffronCity_House1_1F/map.json b/data/maps/SaffronCity_House1_1F/map.json index 287f760d8..6a233f785 100644 --- a/data/maps/SaffronCity_House1_1F/map.json +++ b/data/maps/SaffronCity_House1_1F/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "30", + "graphics_id": "MAP_OBJ_GFX_BALDING_MAN", "x": 8, "y": 4, "elevation": 3, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "31", + "graphics_id": "MAP_OBJ_GFX_WOMAN_3", "x": 3, "y": 3, "elevation": 3, @@ -40,7 +40,7 @@ "flag": "0" }, { - "graphics_id": "117", + "graphics_id": "MAP_OBJ_GFX_CHANSEY", "x": 4, "y": 4, "elevation": 3, diff --git a/data/maps/SaffronCity_House1_2F/map.json b/data/maps/SaffronCity_House1_2F/map.json index fe34076ae..8598b129a 100644 --- a/data/maps/SaffronCity_House1_2F/map.json +++ b/data/maps/SaffronCity_House1_2F/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "132", + "graphics_id": "MAP_OBJ_GFX_DODUO", "x": 6, "y": 8, "elevation": 3, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "120", + "graphics_id": "MAP_OBJ_GFX_PIKACHU", "x": 4, "y": 6, "elevation": 3, @@ -40,7 +40,7 @@ "flag": "0" }, { - "graphics_id": "115", + "graphics_id": "MAP_OBJ_GFX_JIGGLYPUFF", "x": 7, "y": 2, "elevation": 3, @@ -53,7 +53,7 @@ "flag": "0" }, { - "graphics_id": "17", + "graphics_id": "MAP_OBJ_GFX_LITTLE_GIRL", "x": 9, "y": 6, "elevation": 3, @@ -97,8 +97,9 @@ "y": 1, "elevation": 0, "item": "ITEM_NUGGET", - "flag": "26", - "unknown": 1 + "flag": "HIDDEN_ITEM_SAFFRON_CITY_HOUSE1_2F_NUGGET", + "quantity": 1, + "underfoot": false } ] } diff --git a/data/maps/SaffronCity_House1_2F/scripts.inc b/data/maps/SaffronCity_House1_2F/scripts.inc index 8a6227b38..54b0a5a65 100644 --- a/data/maps/SaffronCity_House1_2F/scripts.inc +++ b/data/maps/SaffronCity_House1_2F/scripts.inc @@ -20,18 +20,18 @@ SaffronCity_House1_2F_EventScript_16EB70:: @ 816EB70 SaffronCity_House1_2F_EventScript_16EB7B:: @ 816EB7B special sub_8110AB4 compare_var_to_value VAR_RESULT, 2 - goto_if_eq EventScript_1A7AE0 + goto_if eq, EventScript_1A7AE0 special sub_8112364 lock faceplayer checkitem ITEM_POKE_DOLL, 1 compare_var_to_value VAR_RESULT, 1 - goto_if_eq EventScript_1C4CF6 + goto_if eq, EventScript_1C4CF6 checkplayergender compare_var_to_value VAR_RESULT, 0 - call_if 1, EventScript_16EBB7 + call_if eq, EventScript_16EBB7 compare_var_to_value VAR_RESULT, 1 - call_if 1, EventScript_16EBC0 + call_if eq, EventScript_16EBC0 release end diff --git a/data/maps/SaffronCity_House2/map.json b/data/maps/SaffronCity_House2/map.json index 0b87576cd..4c6e64a1d 100644 --- a/data/maps/SaffronCity_House2/map.json +++ b/data/maps/SaffronCity_House2/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "116", + "graphics_id": "MAP_OBJ_GFX_PIDGEY", "x": 0, "y": 5, "elevation": 3, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "22", + "graphics_id": "MAP_OBJ_GFX_LASS", "x": 4, "y": 4, "elevation": 3, @@ -40,7 +40,7 @@ "flag": "0" }, { - "graphics_id": "18", + "graphics_id": "MAP_OBJ_GFX_YOUNGSTER", "x": 6, "y": 2, "elevation": 3, @@ -53,7 +53,7 @@ "flag": "0" }, { - "graphics_id": "105", + "graphics_id": "MAP_OBJ_GFX_CLIPBOARD", "x": 5, "y": 4, "elevation": 0, diff --git a/data/maps/SaffronCity_House3/map.json b/data/maps/SaffronCity_House3/map.json index f4b227795..51f9c8294 100644 --- a/data/maps/SaffronCity_House3/map.json +++ b/data/maps/SaffronCity_House3/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "30", + "graphics_id": "MAP_OBJ_GFX_BALDING_MAN", "x": 7, "y": 4, "elevation": 3, diff --git a/data/maps/SaffronCity_House3/scripts.inc b/data/maps/SaffronCity_House3/scripts.inc index 89a44eecd..8a1ec97b5 100644 --- a/data/maps/SaffronCity_House3/scripts.inc +++ b/data/maps/SaffronCity_House3/scripts.inc @@ -4,16 +4,16 @@ SaffronCity_House3_MapScripts:: @ 816F05E SaffronCity_House3_EventScript_16F05F:: @ 816F05F lock faceplayer - checkflag FLAG_0x245 - goto_if_eq EventScript_16F0B5 + checkflag FLAG_GOT_TM29_FROM_MR_PSYCHIC + goto_if TRUE, EventScript_16F0B5 msgbox gUnknown_819C142 checkitemspace ITEM_TM29, 1 compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_16F0AB + goto_if eq, EventScript_16F0AB additem ITEM_TM29, 1 giveitemfanfaremsg gUnknown_819C16C, ITEM_TM29 msgbox gUnknown_819C18F - setflag FLAG_0x245 + setflag FLAG_GOT_TM29_FROM_MR_PSYCHIC release end diff --git a/data/maps/SaffronCity_Mart/map.json b/data/maps/SaffronCity_Mart/map.json index 1bfe45aca..d4248d680 100644 --- a/data/maps/SaffronCity_Mart/map.json +++ b/data/maps/SaffronCity_Mart/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "68", + "graphics_id": "MAP_OBJ_GFX_CLERK", "x": 2, "y": 3, "elevation": 0, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "18", + "graphics_id": "MAP_OBJ_GFX_YOUNGSTER", "x": 1, "y": 7, "elevation": 3, @@ -40,7 +40,7 @@ "flag": "0" }, { - "graphics_id": "22", + "graphics_id": "MAP_OBJ_GFX_LASS", "x": 9, "y": 5, "elevation": 3, diff --git a/data/maps/SaffronCity_Mart/scripts.inc b/data/maps/SaffronCity_Mart/scripts.inc index 509fd37b6..5b77e5864 100644 --- a/data/maps/SaffronCity_Mart/scripts.inc +++ b/data/maps/SaffronCity_Mart/scripts.inc @@ -12,7 +12,7 @@ SaffronCity_Mart_EventScript_16EFAC:: @ 816EFAC SaffronCity_Mart_EventScript_16EFB5:: @ 816EFB5 special sub_8110AB4 compare_var_to_value VAR_RESULT, 2 - goto_if_eq EventScript_1A7AE0 + goto_if eq, EventScript_1A7AE0 lock faceplayer message Text_1A6211 diff --git a/data/maps/SaffronCity_PokemonCenter_1F/map.json b/data/maps/SaffronCity_PokemonCenter_1F/map.json index 118936b0e..9fbefc7f3 100644 --- a/data/maps/SaffronCity_PokemonCenter_1F/map.json +++ b/data/maps/SaffronCity_PokemonCenter_1F/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "64", + "graphics_id": "MAP_OBJ_GFX_NURSE", "x": 7, "y": 2, "elevation": 3, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "61", + "graphics_id": "MAP_OBJ_GFX_GENTLEMAN", "x": 14, "y": 6, "elevation": 3, @@ -40,7 +40,7 @@ "flag": "0" }, { - "graphics_id": "31", + "graphics_id": "MAP_OBJ_GFX_WOMAN_3", "x": 4, "y": 4, "elevation": 3, @@ -53,7 +53,7 @@ "flag": "0" }, { - "graphics_id": "18", + "graphics_id": "MAP_OBJ_GFX_YOUNGSTER", "x": 9, "y": 6, "elevation": 3, @@ -76,7 +76,7 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "SaffronCity_PokemonCenter_1F_EventScript_1ACEEC", - "flag": "174" + "flag": "FLAG_HIDE_SAFFRON_CITY_POKECENTER_SABRINA_JOURNALS" }, { "graphics_id": "0", @@ -89,7 +89,7 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "SaffronCity_PokemonCenter_1F_EventScript_1ACEEC", - "flag": "174" + "flag": "FLAG_HIDE_SAFFRON_CITY_POKECENTER_SABRINA_JOURNALS" } ], "warp_events": [ diff --git a/data/maps/SaffronCity_PokemonCenter_1F/scripts.inc b/data/maps/SaffronCity_PokemonCenter_1F/scripts.inc index 65c37eaf3..0f2b92262 100644 --- a/data/maps/SaffronCity_PokemonCenter_1F/scripts.inc +++ b/data/maps/SaffronCity_PokemonCenter_1F/scripts.inc @@ -25,8 +25,8 @@ SaffronCity_PokemonCenter_1F_EventScript_16F00D:: @ 816F00D SaffronCity_PokemonCenter_1F_EventScript_16F016:: @ 816F016 lock faceplayer - compare_var_to_value VAR_0x4060, 1 - goto_if_eq EventScript_16F02D + compare_var_to_value VAR_MAP_SCENE_SILPH_CO_11F, 1 + goto_if eq, EventScript_16F02D msgbox gUnknown_819C0B4 release end diff --git a/data/maps/SaffronCity_PokemonCenter_2F/map.json b/data/maps/SaffronCity_PokemonCenter_2F/map.json index 8fdf8ac26..dd7076a54 100644 --- a/data/maps/SaffronCity_PokemonCenter_2F/map.json +++ b/data/maps/SaffronCity_PokemonCenter_2F/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "65", + "graphics_id": "MAP_OBJ_GFX_CABLE_CLUB_RECEPTIONIST", "x": 6, "y": 2, "elevation": 3, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "65", + "graphics_id": "MAP_OBJ_GFX_CABLE_CLUB_RECEPTIONIST", "x": 2, "y": 2, "elevation": 3, @@ -40,7 +40,7 @@ "flag": "0" }, { - "graphics_id": "65", + "graphics_id": "MAP_OBJ_GFX_CABLE_CLUB_RECEPTIONIST", "x": 10, "y": 2, "elevation": 3, @@ -53,7 +53,7 @@ "flag": "0" }, { - "graphics_id": "69", + "graphics_id": "MAP_OBJ_GFX_MG_DELIVERYMAN", "x": 1, "y": 2, "elevation": 3, @@ -63,7 +63,7 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "SaffronCity_PokemonCenter_2F_EventScript_1BB1D2", - "flag": "112" + "flag": "FLAG_HIDE_MG_DELIVERYMEN" } ], "warp_events": [ diff --git a/data/maps/SaffronCity_PokemonTrainerFanClub/map.json b/data/maps/SaffronCity_PokemonTrainerFanClub/map.json index e702db16e..dbeccc674 100644 --- a/data/maps/SaffronCity_PokemonTrainerFanClub/map.json +++ b/data/maps/SaffronCity_PokemonTrainerFanClub/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "24", + "graphics_id": "MAP_OBJ_GFX_BATTLE_GIRL", "x": 7, "y": 13, "elevation": 3, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "17", + "graphics_id": "MAP_OBJ_GFX_LITTLE_GIRL", "x": 6, "y": 11, "elevation": 3, @@ -40,7 +40,7 @@ "flag": "0" }, { - "graphics_id": "18", + "graphics_id": "MAP_OBJ_GFX_YOUNGSTER", "x": 3, "y": 13, "elevation": 3, @@ -53,7 +53,7 @@ "flag": "0" }, { - "graphics_id": "61", + "graphics_id": "MAP_OBJ_GFX_GENTLEMAN", "x": 3, "y": 12, "elevation": 3, @@ -66,7 +66,7 @@ "flag": "0" }, { - "graphics_id": "31", + "graphics_id": "MAP_OBJ_GFX_WOMAN_3", "x": 9, "y": 11, "elevation": 3, @@ -76,10 +76,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "SaffronCity_PokemonTrainerFanClub_EventScript_16F45D", - "flag": "110" + "flag": "FLAG_HIDE_SAFFRON_FAN_CLUB_WOMAN" }, { - "graphics_id": "26", + "graphics_id": "MAP_OBJ_GFX_ROCKER", "x": 7, "y": 12, "elevation": 3, @@ -89,10 +89,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "SaffronCity_PokemonTrainerFanClub_EventScript_16F4BF", - "flag": "109" + "flag": "FLAG_HIDE_SAFFRON_FAN_CLUB_ROCKER" }, { - "graphics_id": "29", + "graphics_id": "MAP_OBJ_GFX_BEAUTY", "x": 9, "y": 12, "elevation": 3, @@ -102,10 +102,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "SaffronCity_PokemonTrainerFanClub_EventScript_16F521", - "flag": "111" + "flag": "FLAG_HIDE_SAFFRON_FAN_CLUB_BEAUTY" }, { - "graphics_id": "54", + "graphics_id": "MAP_OBJ_GFX_BLACKBELT", "x": 5, "y": 11, "elevation": 3, @@ -115,7 +115,7 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "SaffronCity_PokemonTrainerFanClub_EventScript_16F583", - "flag": "108" + "flag": "FLAG_HIDE_SAFFRON_FAN_CLUB_BLACKBELT" }, { "graphics_id": "0", @@ -128,7 +128,7 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "SaffronCity_PokemonTrainerFanClub_EventScript_1ACF7A", - "flag": "157" + "flag": "FLAG_HIDE_POSTGAME_GOSSIPERS" }, { "graphics_id": "0", @@ -141,7 +141,7 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "SaffronCity_PokemonTrainerFanClub_EventScript_1ACF7A", - "flag": "157" + "flag": "FLAG_HIDE_POSTGAME_GOSSIPERS" } ], "warp_events": [ diff --git a/data/maps/SaffronCity_PokemonTrainerFanClub/scripts.inc b/data/maps/SaffronCity_PokemonTrainerFanClub/scripts.inc index dce3faa1b..426226422 100644 --- a/data/maps/SaffronCity_PokemonTrainerFanClub/scripts.inc +++ b/data/maps/SaffronCity_PokemonTrainerFanClub/scripts.inc @@ -72,45 +72,45 @@ Movement_16F13E:: @ 816F13E SaffronCity_PokemonTrainerFanClub_MapScript2_16F144:: @ 816F144 compare_var_to_value VAR_MAP_SCENE_SAFFRON_CITY_POKEMON_TRAINER_FAN_CLUB, 1 - goto_if_eq EventScript_16F267 + goto_if eq, EventScript_16F267 compare_var_to_value VAR_MAP_SCENE_SAFFRON_CITY_POKEMON_TRAINER_FAN_CLUB, 2 - goto_if_eq EventScript_16F15B + goto_if eq, EventScript_16F15B end EventScript_16F15B:: @ 816F15B - special sub_81132CC + special UpdateMovedSaffronFanClubMembers setvar VAR_0x8004, 0 - specialvar VAR_RESULT, sub_8113364 + specialvar VAR_RESULT, ShouldMoveSaffronFanClubMember compare_var_to_value VAR_RESULT, 0 - call_if 1, EventScript_16F207 + call_if eq, EventScript_16F207 setvar VAR_0x8004, 1 - specialvar VAR_RESULT, sub_8113364 + specialvar VAR_RESULT, ShouldMoveSaffronFanClubMember compare_var_to_value VAR_RESULT, 0 - call_if 1, EventScript_16F213 + call_if eq, EventScript_16F213 setvar VAR_0x8004, 2 - specialvar VAR_RESULT, sub_8113364 + specialvar VAR_RESULT, ShouldMoveSaffronFanClubMember compare_var_to_value VAR_RESULT, 0 - call_if 1, EventScript_16F21F + call_if eq, EventScript_16F21F setvar VAR_0x8004, 3 - specialvar VAR_RESULT, sub_8113364 + specialvar VAR_RESULT, ShouldMoveSaffronFanClubMember compare_var_to_value VAR_RESULT, 0 - call_if 1, EventScript_16F22B + call_if eq, EventScript_16F22B setvar VAR_0x8004, 4 - specialvar VAR_RESULT, sub_8113364 + specialvar VAR_RESULT, ShouldMoveSaffronFanClubMember compare_var_to_value VAR_RESULT, 0 - call_if 1, EventScript_16F237 + call_if eq, EventScript_16F237 setvar VAR_0x8004, 5 - specialvar VAR_RESULT, sub_8113364 + specialvar VAR_RESULT, ShouldMoveSaffronFanClubMember compare_var_to_value VAR_RESULT, 0 - call_if 1, EventScript_16F243 + call_if eq, EventScript_16F243 setvar VAR_0x8004, 6 - specialvar VAR_RESULT, sub_8113364 + specialvar VAR_RESULT, ShouldMoveSaffronFanClubMember compare_var_to_value VAR_RESULT, 0 - call_if 1, EventScript_16F24F + call_if eq, EventScript_16F24F setvar VAR_0x8004, 7 - specialvar VAR_RESULT, sub_8113364 + specialvar VAR_RESULT, ShouldMoveSaffronFanClubMember compare_var_to_value VAR_RESULT, 0 - call_if 1, EventScript_16F25B + call_if eq, EventScript_16F25B end EventScript_16F207:: @ 816F207 @@ -165,23 +165,23 @@ SaffronCity_PokemonTrainerFanClub_EventScript_16F281:: @ 816F281 lock faceplayer setvar VAR_0x8004, 0 - special sub_81133A4 + special BufferStreakTrainerText compare_var_to_value VAR_MAP_SCENE_SAFFRON_CITY_POKEMON_TRAINER_FAN_CLUB, 0 - goto_if_eq EventScript_16F2EE - specialvar VAR_RESULT, sub_8113364 + goto_if eq, EventScript_16F2EE + specialvar VAR_RESULT, ShouldMoveSaffronFanClubMember compare_var_to_value VAR_RESULT, 1 - goto_if_eq EventScript_16F2C0 - specialvar VAR_RESULT, sub_8113288 + goto_if eq, EventScript_16F2C0 + specialvar VAR_RESULT, GetNumMovedSaffronFanClubMembers compare_var_to_value VAR_RESULT, 7 - goto_if_eq EventScript_16F2E4 + goto_if eq, EventScript_16F2E4 msgbox gUnknown_819C420 release end EventScript_16F2C0:: @ 816F2C0 - specialvar VAR_RESULT, sub_8113288 + specialvar VAR_RESULT, GetNumMovedSaffronFanClubMembers compare_var_to_value VAR_RESULT, 1 - goto_if_eq EventScript_16F2DA + goto_if eq, EventScript_16F2DA msgbox gUnknown_819C390 release end @@ -205,23 +205,23 @@ SaffronCity_PokemonTrainerFanClub_EventScript_16F2F8:: @ 816F2F8 lock faceplayer setvar VAR_0x8004, 3 - special sub_81133A4 + special BufferStreakTrainerText compare_var_to_value VAR_MAP_SCENE_SAFFRON_CITY_POKEMON_TRAINER_FAN_CLUB, 0 - goto_if_eq EventScript_16F365 - specialvar VAR_RESULT, sub_8113364 + goto_if eq, EventScript_16F365 + specialvar VAR_RESULT, ShouldMoveSaffronFanClubMember compare_var_to_value VAR_RESULT, 1 - goto_if_eq EventScript_16F337 - specialvar VAR_RESULT, sub_8113288 + goto_if eq, EventScript_16F337 + specialvar VAR_RESULT, GetNumMovedSaffronFanClubMembers compare_var_to_value VAR_RESULT, 7 - goto_if_eq EventScript_16F35B + goto_if eq, EventScript_16F35B msgbox gUnknown_819CBD3 release end EventScript_16F337:: @ 816F337 - specialvar VAR_RESULT, sub_8113288 + specialvar VAR_RESULT, GetNumMovedSaffronFanClubMembers compare_var_to_value VAR_RESULT, 1 - goto_if_eq EventScript_16F351 + goto_if eq, EventScript_16F351 msgbox gUnknown_819CB32 release end @@ -245,23 +245,23 @@ SaffronCity_PokemonTrainerFanClub_EventScript_16F36F:: @ 816F36F lock faceplayer setvar VAR_0x8004, 1 - special sub_81133A4 + special BufferStreakTrainerText compare_var_to_value VAR_MAP_SCENE_SAFFRON_CITY_POKEMON_TRAINER_FAN_CLUB, 0 - goto_if_eq EventScript_16F3DC - specialvar VAR_RESULT, sub_8113364 + goto_if eq, EventScript_16F3DC + specialvar VAR_RESULT, ShouldMoveSaffronFanClubMember compare_var_to_value VAR_RESULT, 1 - goto_if_eq EventScript_16F3AE - specialvar VAR_RESULT, sub_8113288 + goto_if eq, EventScript_16F3AE + specialvar VAR_RESULT, GetNumMovedSaffronFanClubMembers compare_var_to_value VAR_RESULT, 7 - goto_if_eq EventScript_16F3D2 + goto_if eq, EventScript_16F3D2 msgbox gUnknown_819C6BA release end EventScript_16F3AE:: @ 816F3AE - specialvar VAR_RESULT, sub_8113288 + specialvar VAR_RESULT, GetNumMovedSaffronFanClubMembers compare_var_to_value VAR_RESULT, 1 - goto_if_eq EventScript_16F3C8 + goto_if eq, EventScript_16F3C8 msgbox gUnknown_819C5A9 release end @@ -285,23 +285,23 @@ SaffronCity_PokemonTrainerFanClub_EventScript_16F3E6:: @ 816F3E6 lock faceplayer setvar VAR_0x8004, 2 - special sub_81133A4 + special BufferStreakTrainerText compare_var_to_value VAR_MAP_SCENE_SAFFRON_CITY_POKEMON_TRAINER_FAN_CLUB, 0 - goto_if_eq EventScript_16F453 - specialvar VAR_RESULT, sub_8113364 + goto_if eq, EventScript_16F453 + specialvar VAR_RESULT, ShouldMoveSaffronFanClubMember compare_var_to_value VAR_RESULT, 1 - goto_if_eq EventScript_16F425 - specialvar VAR_RESULT, sub_8113288 + goto_if eq, EventScript_16F425 + specialvar VAR_RESULT, GetNumMovedSaffronFanClubMembers compare_var_to_value VAR_RESULT, 7 - goto_if_eq EventScript_16F449 + goto_if eq, EventScript_16F449 msgbox gUnknown_819C986 release end EventScript_16F425:: @ 816F425 - specialvar VAR_RESULT, sub_8113288 + specialvar VAR_RESULT, GetNumMovedSaffronFanClubMembers compare_var_to_value VAR_RESULT, 1 - goto_if_eq EventScript_16F43F + goto_if eq, EventScript_16F43F msgbox gUnknown_819C81E release end @@ -325,21 +325,21 @@ SaffronCity_PokemonTrainerFanClub_EventScript_16F45D:: @ 816F45D lock faceplayer setvar VAR_0x8004, 5 - special sub_81133A4 - specialvar VAR_RESULT, sub_8113364 + special BufferStreakTrainerText + specialvar VAR_RESULT, ShouldMoveSaffronFanClubMember compare_var_to_value VAR_RESULT, 1 - goto_if_eq EventScript_16F491 - specialvar VAR_RESULT, sub_8113288 + goto_if eq, EventScript_16F491 + specialvar VAR_RESULT, GetNumMovedSaffronFanClubMembers compare_var_to_value VAR_RESULT, 7 - goto_if_eq EventScript_16F4B5 + goto_if eq, EventScript_16F4B5 msgbox gUnknown_819D01F release end EventScript_16F491:: @ 816F491 - specialvar VAR_RESULT, sub_8113288 + specialvar VAR_RESULT, GetNumMovedSaffronFanClubMembers compare_var_to_value VAR_RESULT, 1 - goto_if_eq EventScript_16F4AB + goto_if eq, EventScript_16F4AB msgbox gUnknown_819CEDF release end @@ -358,21 +358,21 @@ SaffronCity_PokemonTrainerFanClub_EventScript_16F4BF:: @ 816F4BF lock faceplayer setvar VAR_0x8004, 4 - special sub_81133A4 - specialvar VAR_RESULT, sub_8113364 + special BufferStreakTrainerText + specialvar VAR_RESULT, ShouldMoveSaffronFanClubMember compare_var_to_value VAR_RESULT, 1 - goto_if_eq EventScript_16F4F3 - specialvar VAR_RESULT, sub_8113288 + goto_if eq, EventScript_16F4F3 + specialvar VAR_RESULT, GetNumMovedSaffronFanClubMembers compare_var_to_value VAR_RESULT, 7 - goto_if_eq EventScript_16F517 + goto_if eq, EventScript_16F517 msgbox gUnknown_819CDDA release end EventScript_16F4F3:: @ 816F4F3 - specialvar VAR_RESULT, sub_8113288 + specialvar VAR_RESULT, GetNumMovedSaffronFanClubMembers compare_var_to_value VAR_RESULT, 1 - goto_if_eq EventScript_16F50D + goto_if eq, EventScript_16F50D msgbox gUnknown_819CCF3 release end @@ -391,21 +391,21 @@ SaffronCity_PokemonTrainerFanClub_EventScript_16F521:: @ 816F521 lock faceplayer setvar VAR_0x8004, 6 - special sub_81133A4 - specialvar VAR_RESULT, sub_8113364 + special BufferStreakTrainerText + specialvar VAR_RESULT, ShouldMoveSaffronFanClubMember compare_var_to_value VAR_RESULT, 1 - goto_if_eq EventScript_16F555 - specialvar VAR_RESULT, sub_8113288 + goto_if eq, EventScript_16F555 + specialvar VAR_RESULT, GetNumMovedSaffronFanClubMembers compare_var_to_value VAR_RESULT, 7 - goto_if_eq EventScript_16F579 + goto_if eq, EventScript_16F579 msgbox gUnknown_819D1AE release end EventScript_16F555:: @ 816F555 - specialvar VAR_RESULT, sub_8113288 + specialvar VAR_RESULT, GetNumMovedSaffronFanClubMembers compare_var_to_value VAR_RESULT, 1 - goto_if_eq EventScript_16F56F + goto_if eq, EventScript_16F56F msgbox gUnknown_819D0E3 release end @@ -424,21 +424,21 @@ SaffronCity_PokemonTrainerFanClub_EventScript_16F583:: @ 816F583 lock faceplayer setvar VAR_0x8004, 7 - special sub_81133A4 - specialvar VAR_RESULT, sub_8113364 + special BufferStreakTrainerText + specialvar VAR_RESULT, ShouldMoveSaffronFanClubMember compare_var_to_value VAR_RESULT, 1 - goto_if_eq EventScript_16F5B7 - specialvar VAR_RESULT, sub_8113288 + goto_if eq, EventScript_16F5B7 + specialvar VAR_RESULT, GetNumMovedSaffronFanClubMembers compare_var_to_value VAR_RESULT, 7 - goto_if_eq EventScript_16F5DB + goto_if eq, EventScript_16F5DB msgbox gUnknown_819D3D2 release end EventScript_16F5B7:: @ 816F5B7 - specialvar VAR_RESULT, sub_8113288 + specialvar VAR_RESULT, GetNumMovedSaffronFanClubMembers compare_var_to_value VAR_RESULT, 1 - goto_if_eq EventScript_16F5D1 + goto_if eq, EventScript_16F5D1 msgbox gUnknown_819D2B4 release end diff --git a/data/maps/SeafoamIslands_1F/map.json b/data/maps/SeafoamIslands_1F/map.json index a40335f0d..95261f368 100644 --- a/data/maps/SeafoamIslands_1F/map.json +++ b/data/maps/SeafoamIslands_1F/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "97", + "graphics_id": "MAP_OBJ_GFX_STRENGTH_BOULDER", "x": 22, "y": 12, "elevation": 3, @@ -23,11 +23,11 @@ "movement_range_y": 0, "trainer_type": 66, "trainer_sight_or_berry_tree_id": 0, - "script": "SeafoamIslands_1F_EventScript_1BE11D", - "flag": "64" + "script": "EventScript_InteractWithStrengthBoulderObject", + "flag": "FLAG_HIDE_SEAFOAM_1F_BOULDER_1" }, { - "graphics_id": "97", + "graphics_id": "MAP_OBJ_GFX_STRENGTH_BOULDER", "x": 32, "y": 9, "elevation": 3, @@ -36,11 +36,11 @@ "movement_range_y": 0, "trainer_type": 67, "trainer_sight_or_berry_tree_id": 0, - "script": "SeafoamIslands_1F_EventScript_1BE11D", - "flag": "65" + "script": "EventScript_InteractWithStrengthBoulderObject", + "flag": "FLAG_HIDE_SEAFOAM_1F_BOULDER_2" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 11, "y": 8, "elevation": 3, @@ -50,7 +50,7 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "SeafoamIslands_1F_EventScript_1BEBE7", - "flag": "468" + "flag": "FLAG_HIDE_SEAFOAM_ISLANDS_1F_ICE_HEAL" } ], "warp_events": [ diff --git a/data/maps/SeafoamIslands_B1F/map.json b/data/maps/SeafoamIslands_B1F/map.json index c1003895d..ded9935d2 100644 --- a/data/maps/SeafoamIslands_B1F/map.json +++ b/data/maps/SeafoamIslands_B1F/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "97", + "graphics_id": "MAP_OBJ_GFX_STRENGTH_BOULDER", "x": 22, "y": 8, "elevation": 3, @@ -23,11 +23,11 @@ "movement_range_y": 0, "trainer_type": 68, "trainer_sight_or_berry_tree_id": 0, - "script": "SeafoamIslands_B1F_EventScript_1BE11D", - "flag": "66" + "script": "EventScript_InteractWithStrengthBoulderObject", + "flag": "FLAG_HIDE_SEAFOAM_B1F_BOULDER_1" }, { - "graphics_id": "97", + "graphics_id": "MAP_OBJ_GFX_STRENGTH_BOULDER", "x": 30, "y": 8, "elevation": 3, @@ -36,11 +36,11 @@ "movement_range_y": 0, "trainer_type": 69, "trainer_sight_or_berry_tree_id": 0, - "script": "SeafoamIslands_B1F_EventScript_1BE11D", - "flag": "67" + "script": "EventScript_InteractWithStrengthBoulderObject", + "flag": "FLAG_HIDE_SEAFOAM_B1F_BOULDER_2" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 19, "y": 18, "elevation": 3, @@ -50,10 +50,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "SeafoamIslands_B1F_EventScript_1BEBF4", - "flag": "469" + "flag": "FLAG_HIDE_SEAFOAM_ISLANDS_B1F_WATER_STONE" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 24, "y": 14, "elevation": 4, @@ -63,7 +63,7 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "SeafoamIslands_B1F_EventScript_1BEC01", - "flag": "470" + "flag": "FLAG_HIDE_SEAFOAM_ISLANDS_B1F_REVIVE" } ], "warp_events": [ diff --git a/data/maps/SeafoamIslands_B2F/map.json b/data/maps/SeafoamIslands_B2F/map.json index fdc44c9a5..cc9d54955 100644 --- a/data/maps/SeafoamIslands_B2F/map.json +++ b/data/maps/SeafoamIslands_B2F/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "97", + "graphics_id": "MAP_OBJ_GFX_STRENGTH_BOULDER", "x": 22, "y": 8, "elevation": 3, @@ -23,11 +23,11 @@ "movement_range_y": 0, "trainer_type": 70, "trainer_sight_or_berry_tree_id": 0, - "script": "SeafoamIslands_B2F_EventScript_1BE11D", - "flag": "68" + "script": "EventScript_InteractWithStrengthBoulderObject", + "flag": "FLAG_HIDE_SEAFOAM_B2F_BOULDER_1" }, { - "graphics_id": "97", + "graphics_id": "MAP_OBJ_GFX_STRENGTH_BOULDER", "x": 30, "y": 8, "elevation": 3, @@ -36,11 +36,11 @@ "movement_range_y": 0, "trainer_type": 71, "trainer_sight_or_berry_tree_id": 0, - "script": "SeafoamIslands_B2F_EventScript_1BE11D", - "flag": "69" + "script": "EventScript_InteractWithStrengthBoulderObject", + "flag": "FLAG_HIDE_SEAFOAM_B2F_BOULDER_2" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 18, "y": 15, "elevation": 3, @@ -50,7 +50,7 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "SeafoamIslands_B2F_EventScript_1BEC0E", - "flag": "471" + "flag": "FLAG_HIDE_SEAFOAM_ISLANDS_B2F_BIG_PEARL" } ], "warp_events": [ diff --git a/data/maps/SeafoamIslands_B3F/map.json b/data/maps/SeafoamIslands_B3F/map.json index 043dea721..a1068f489 100644 --- a/data/maps/SeafoamIslands_B3F/map.json +++ b/data/maps/SeafoamIslands_B3F/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "97", + "graphics_id": "MAP_OBJ_GFX_STRENGTH_BOULDER", "x": 23, "y": 8, "elevation": 1, @@ -24,10 +24,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "0x0", - "flag": "70" + "flag": "FLAG_HIDE_SEAFOAM_B3F_BOULDER_1" }, { - "graphics_id": "97", + "graphics_id": "MAP_OBJ_GFX_STRENGTH_BOULDER", "x": 24, "y": 8, "elevation": 1, @@ -37,10 +37,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "0x0", - "flag": "71" + "flag": "FLAG_HIDE_SEAFOAM_B3F_BOULDER_2" }, { - "graphics_id": "97", + "graphics_id": "MAP_OBJ_GFX_STRENGTH_BOULDER", "x": 12, "y": 16, "elevation": 3, @@ -49,11 +49,11 @@ "movement_range_y": 0, "trainer_type": 77, "trainer_sight_or_berry_tree_id": 0, - "script": "SeafoamIslands_B3F_EventScript_1BE11D", - "flag": "74" + "script": "EventScript_InteractWithStrengthBoulderObject", + "flag": "FLAG_HIDE_SEAFOAM_B3F_BOULDER_5" }, { - "graphics_id": "97", + "graphics_id": "MAP_OBJ_GFX_STRENGTH_BOULDER", "x": 13, "y": 16, "elevation": 3, @@ -62,11 +62,11 @@ "movement_range_y": 0, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "SeafoamIslands_B3F_EventScript_1BE11D", - "flag": "75" + "script": "EventScript_InteractWithStrengthBoulderObject", + "flag": "FLAG_HIDE_SEAFOAM_B3F_BOULDER_6" }, { - "graphics_id": "97", + "graphics_id": "MAP_OBJ_GFX_STRENGTH_BOULDER", "x": 9, "y": 16, "elevation": 3, @@ -75,11 +75,11 @@ "movement_range_y": 0, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "SeafoamIslands_B3F_EventScript_1BE11D", - "flag": "73" + "script": "EventScript_InteractWithStrengthBoulderObject", + "flag": "FLAG_HIDE_SEAFOAM_B3F_BOULDER_4" }, { - "graphics_id": "97", + "graphics_id": "MAP_OBJ_GFX_STRENGTH_BOULDER", "x": 6, "y": 17, "elevation": 3, @@ -88,8 +88,8 @@ "movement_range_y": 0, "trainer_type": 76, "trainer_sight_or_berry_tree_id": 0, - "script": "SeafoamIslands_B3F_EventScript_1BE11D", - "flag": "72" + "script": "EventScript_InteractWithStrengthBoulderObject", + "flag": "FLAG_HIDE_SEAFOAM_B3F_BOULDER_3" } ], "warp_events": [ @@ -165,8 +165,9 @@ "y": 12, "elevation": 0, "item": "ITEM_NUGGET", - "flag": "29", - "unknown": 1 + "flag": "HIDDEN_ITEM_SEAFOAM_ISLANDS_B3F_NUGGET", + "quantity": 1, + "underfoot": false } ] } diff --git a/data/maps/SeafoamIslands_B3F/scripts.inc b/data/maps/SeafoamIslands_B3F/scripts.inc index e54e7ceb7..c566ab522 100644 --- a/data/maps/SeafoamIslands_B3F/scripts.inc +++ b/data/maps/SeafoamIslands_B3F/scripts.inc @@ -4,24 +4,24 @@ SeafoamIslands_B3F_MapScripts:: @ 8162F4F .byte 0 SeafoamIslands_B3F_MapScript1_162F5A:: @ 8162F5A - checkflag FLAG_0x2D2 - call_if 0, EventScript_162F6D - checkflag FLAG_0x2D2 - call_if 1, EventScript_162F94 + checkflag FLAG_STOPPED_SEAFOAM_B3F_CURRENT + call_if FALSE, EventScript_162F6D + checkflag FLAG_STOPPED_SEAFOAM_B3F_CURRENT + call_if TRUE, EventScript_162F94 end EventScript_162F6D:: @ 8162F6D setvar VAR_0x4002, 0 - checkflag FLAG_0x046 - call_if 0, EventScript_162FF0 - checkflag FLAG_0x047 - call_if 0, EventScript_162FF0 + checkflag FLAG_HIDE_SEAFOAM_B3F_BOULDER_1 + call_if FALSE, EventScript_162FF0 + checkflag FLAG_HIDE_SEAFOAM_B3F_BOULDER_2 + call_if FALSE, EventScript_162FF0 compare_var_to_value VAR_0x4002, 2 - call_if 1, EventScript_162F90 + call_if eq, EventScript_162F90 return EventScript_162F90:: @ 8162F90 - setflag FLAG_0x2D2 + setflag FLAG_STOPPED_SEAFOAM_B3F_CURRENT return EventScript_162F94:: @ 8162F94 @@ -35,17 +35,17 @@ SeafoamIslands_B3F_MapScript2_162F98:: @ 8162F98 EventScript_162FA2:: @ 8162FA2 lockall setvar VAR_0x4002, 0 - checkflag FLAG_0x046 - call_if 0, EventScript_162FF0 - checkflag FLAG_0x047 - call_if 0, EventScript_162FF0 + checkflag FLAG_HIDE_SEAFOAM_B3F_BOULDER_1 + call_if FALSE, EventScript_162FF0 + checkflag FLAG_HIDE_SEAFOAM_B3F_BOULDER_2 + call_if FALSE, EventScript_162FF0 compare_var_to_value VAR_0x4002, 2 - goto_if_eq EventScript_16300C + goto_if eq, EventScript_16300C getplayerxy VAR_0x8008, VAR_0x8009 compare_var_to_value VAR_0x8008, 24 - call_if 0, EventScript_162FF6 + call_if lt, EventScript_162FF6 compare_var_to_value VAR_0x8008, 24 - call_if 4, EventScript_163001 + call_if ge, EventScript_163001 setvar VAR_MAP_SCENE_SEAFOAM_ISLANDS_B4F, 1 warp MAP_SEAFOAM_ISLANDS_B4F, 255, 27, 21 waitstate diff --git a/data/maps/SeafoamIslands_B4F/map.json b/data/maps/SeafoamIslands_B4F/map.json index 09da347d3..8ef4ca3b2 100644 --- a/data/maps/SeafoamIslands_B4F/map.json +++ b/data/maps/SeafoamIslands_B4F/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "97", + "graphics_id": "MAP_OBJ_GFX_STRENGTH_BOULDER", "x": 8, "y": 18, "elevation": 1, @@ -24,10 +24,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "0x0", - "flag": "76" + "flag": "FLAG_HIDE_SEAFOAM_B4F_BOULDER_1" }, { - "graphics_id": "97", + "graphics_id": "MAP_OBJ_GFX_STRENGTH_BOULDER", "x": 9, "y": 18, "elevation": 1, @@ -37,10 +37,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "0x0", - "flag": "77" + "flag": "FLAG_HIDE_SEAFOAM_B4F_BOULDER_2" }, { - "graphics_id": "138", + "graphics_id": "MAP_OBJ_GFX_ARTICUNO", "x": 9, "y": 2, "elevation": 4, @@ -50,10 +50,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "SeafoamIslands_B4F_EventScript_1631AC", - "flag": "130" + "flag": "FLAG_HIDE_ARTICUNO" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 22, "y": 19, "elevation": 4, @@ -63,7 +63,7 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "SeafoamIslands_B4F_EventScript_1BEC1B", - "flag": "472" + "flag": "FLAG_HIDE_SEAFOAM_ISLANDS_B4F_ULTRA_BALL" } ], "warp_events": [ @@ -132,8 +132,9 @@ "y": 8, "elevation": 0, "item": "ITEM_WATER_STONE", - "flag": "30", - "unknown": 1 + "flag": "HIDDEN_ITEM_SEAFOAM_ISLANDS_B4F_WATER_STONE", + "quantity": 1, + "underfoot": false }, { "type": "bg_event_type_0", diff --git a/data/maps/SeafoamIslands_B4F/scripts.inc b/data/maps/SeafoamIslands_B4F/scripts.inc index c0bcc1196..8d69a4808 100644 --- a/data/maps/SeafoamIslands_B4F/scripts.inc +++ b/data/maps/SeafoamIslands_B4F/scripts.inc @@ -7,38 +7,38 @@ SeafoamIslands_B4F_MapScripts:: @ 816302E .byte 0 SeafoamIslands_B4F_MapScript2_163048:: @ 8163048 - checkflag FLAG_0x807 - call_if 1, EventScript_163052 + checkflag FLAG_SYS_SPECIAL_WILD_BATTLE + call_if TRUE, EventScript_163052 end EventScript_163052:: @ 8163052 - specialvar VAR_RESULT, sub_80CA74C - compare_var_to_value VAR_RESULT, 7 - goto_if 5, EventScript_1A77A9 + specialvar VAR_RESULT, Special_GetBattleOutcome + compare_var_to_value VAR_RESULT, B_OUTCOME_CAUGHT + goto_if ne, EventScript_1A77A9 removeobject VAR_LAST_TALKED return SeafoamIslands_B4F_MapScript1_163066:: @ 8163066 - checkflag FLAG_0x2BE - call_if 0, EventScript_1630AD - checkflag FLAG_0x2D3 - call_if 0, EventScript_163082 - checkflag FLAG_0x2D3 - call_if 1, EventScript_1630A9 + checkflag FLAG_FOUGHT_ARTICUNO + call_if FALSE, EventScript_1630AD + checkflag FLAG_STOPPED_SEAFOAM_B4F_CURRENT + call_if FALSE, EventScript_163082 + checkflag FLAG_STOPPED_SEAFOAM_B4F_CURRENT + call_if TRUE, EventScript_1630A9 end EventScript_163082:: @ 8163082 setvar VAR_0x4002, 0 - checkflag FLAG_0x04C - call_if 0, EventScript_163169 - checkflag FLAG_0x04D - call_if 0, EventScript_163169 + checkflag FLAG_HIDE_SEAFOAM_B4F_BOULDER_1 + call_if FALSE, EventScript_163169 + checkflag FLAG_HIDE_SEAFOAM_B4F_BOULDER_2 + call_if FALSE, EventScript_163169 compare_var_to_value VAR_0x4002, 2 - call_if 1, EventScript_1630A5 + call_if eq, EventScript_1630A5 return EventScript_1630A5:: @ 81630A5 - setflag FLAG_0x2D3 + setflag FLAG_STOPPED_SEAFOAM_B4F_CURRENT return EventScript_1630A9:: @ 81630A9 @@ -46,17 +46,17 @@ EventScript_1630A9:: @ 81630A9 return EventScript_1630AD:: @ 81630AD - clearflag FLAG_0x082 + clearflag FLAG_HIDE_ARTICUNO return SeafoamIslands_B4F_MapScript3_1630B1:: @ 81630B1 setvar VAR_0x4002, 0 - checkflag FLAG_0x04C - call_if 0, EventScript_163169 - checkflag FLAG_0x04D - call_if 0, EventScript_163169 + checkflag FLAG_HIDE_SEAFOAM_B4F_BOULDER_1 + call_if FALSE, EventScript_163169 + checkflag FLAG_HIDE_SEAFOAM_B4F_BOULDER_2 + call_if FALSE, EventScript_163169 compare_var_to_value VAR_0x4002, 2 - goto_if_eq EventScript_1630D4 + goto_if eq, EventScript_1630D4 end EventScript_1630D4:: @ 81630D4 @@ -70,7 +70,7 @@ SeafoamIslands_B4F_MapScript4_1630E7:: @ 81630E7 EventScript_1630F1:: @ 81630F1 turnobject 255, 2 - special sub_80CBD80 + special Special_ForcePlayerToStartSurfing end SeafoamIslands_B4F_MapScript5_1630F9:: @ 81630F9 @@ -95,17 +95,17 @@ Movement_16311D:: @ 816311D EventScript_163121:: @ 8163121 lockall setvar VAR_0x4002, 0 - checkflag FLAG_0x04C - call_if 0, EventScript_163169 - checkflag FLAG_0x04D - call_if 0, EventScript_163169 + checkflag FLAG_HIDE_SEAFOAM_B4F_BOULDER_1 + call_if FALSE, EventScript_163169 + checkflag FLAG_HIDE_SEAFOAM_B4F_BOULDER_2 + call_if FALSE, EventScript_163169 compare_var_to_value VAR_0x4002, 2 - goto_if_eq EventScript_163185 + goto_if eq, EventScript_163185 getplayerxy VAR_0x8008, VAR_0x8009 compare_var_to_value VAR_0x8008, 9 - call_if 0, EventScript_16316F + call_if lt, EventScript_16316F compare_var_to_value VAR_0x8008, 9 - call_if 4, EventScript_16317A + call_if ge, EventScript_16317A special sub_805D1A8 setvar VAR_0x4001, 0 releaseall @@ -165,7 +165,7 @@ Movement_1631AA:: @ 81631AA SeafoamIslands_B4F_EventScript_1631AC:: @ 81631AC special sub_8110AB4 compare_var_to_value VAR_RESULT, 2 - goto_if_eq EventScript_1A7AE0 + goto_if eq, EventScript_1A7AE0 special sub_8112364 lock faceplayer @@ -178,23 +178,23 @@ SeafoamIslands_B4F_EventScript_1631AC:: @ 81631AC delay 10 playbgm MUS_EXEYE, 0 waitbuttonpress - setflag FLAG_0x807 - special sub_807F9D8 + setflag FLAG_SYS_SPECIAL_WILD_BATTLE + special Special_StartLegendaryBattle waitstate - clearflag FLAG_0x807 - specialvar VAR_RESULT, sub_80CA74C - compare_var_to_value VAR_RESULT, 1 - goto_if_eq EventScript_16320F - compare_var_to_value VAR_RESULT, 4 - goto_if_eq EventScript_163218 - compare_var_to_value VAR_RESULT, 5 - goto_if_eq EventScript_163218 - setflag FLAG_0x2BE + clearflag FLAG_SYS_SPECIAL_WILD_BATTLE + specialvar VAR_RESULT, Special_GetBattleOutcome + compare_var_to_value VAR_RESULT, B_OUTCOME_WON + goto_if eq, EventScript_16320F + compare_var_to_value VAR_RESULT, B_OUTCOME_RAN + goto_if eq, EventScript_163218 + compare_var_to_value VAR_RESULT, B_OUTCOME_PLAYER_TELEPORTED + goto_if eq, EventScript_163218 + setflag FLAG_FOUGHT_ARTICUNO release end EventScript_16320F:: @ 816320F - setflag FLAG_0x2BE + setflag FLAG_FOUGHT_ARTICUNO goto EventScript_1A922D EventScript_163217:: @ 8163217 diff --git a/data/maps/SevenIsland/map.json b/data/maps/SevenIsland/map.json index a227a7121..c9fe0c17b 100644 --- a/data/maps/SevenIsland/map.json +++ b/data/maps/SevenIsland/map.json @@ -25,7 +25,7 @@ ], "object_events": [ { - "graphics_id": "41", + "graphics_id": "MAP_OBJ_GFX_COOLTRAINER_M", "x": 7, "y": 18, "elevation": 3, @@ -38,7 +38,7 @@ "flag": "0" }, { - "graphics_id": "35", + "graphics_id": "MAP_OBJ_GFX_OLD_WOMAN", "x": 9, "y": 7, "elevation": 3, @@ -51,7 +51,7 @@ "flag": "0" }, { - "graphics_id": "55", + "graphics_id": "MAP_OBJ_GFX_SCIENTIST", "x": 15, "y": 5, "elevation": 3, diff --git a/data/maps/SevenIsland_Harbor/map.json b/data/maps/SevenIsland_Harbor/map.json index d33245efd..cd88eae20 100644 --- a/data/maps/SevenIsland_Harbor/map.json +++ b/data/maps/SevenIsland_Harbor/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "108", + "graphics_id": "MAP_OBJ_GFX_SEAGALLOP", "x": 8, "y": 9, "elevation": 0, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "62", + "graphics_id": "MAP_OBJ_GFX_SAILOR", "x": 8, "y": 6, "elevation": 3, diff --git a/data/maps/SevenIsland_Harbor/scripts.inc b/data/maps/SevenIsland_Harbor/scripts.inc index c4777e1ac..8fa30cfa5 100644 --- a/data/maps/SevenIsland_Harbor/scripts.inc +++ b/data/maps/SevenIsland_Harbor/scripts.inc @@ -6,6 +6,6 @@ SevenIsland_Harbor_EventScript_170BE5:: @ 8170BE5 faceplayer message Text_181726 waitmessage - setvar VAR_0x8004, 7 + setvar VAR_0x8004, SEAGALLOP_SEVEN_ISLAND goto EventScript_1A900F end diff --git a/data/maps/SevenIsland_House_Room1/map.json b/data/maps/SevenIsland_House_Room1/map.json index d319db640..066f3d18d 100644 --- a/data/maps/SevenIsland_House_Room1/map.json +++ b/data/maps/SevenIsland_House_Room1/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "35", + "graphics_id": "MAP_OBJ_GFX_OLD_WOMAN", "x": 4, "y": 4, "elevation": 3, diff --git a/data/maps/SevenIsland_House_Room1/scripts.inc b/data/maps/SevenIsland_House_Room1/scripts.inc index 107b91ad7..fd83fa051 100644 --- a/data/maps/SevenIsland_House_Room1/scripts.inc +++ b/data/maps/SevenIsland_House_Room1/scripts.inc @@ -6,9 +6,9 @@ SevenIsland_House_Room1_MapScripts:: @ 817088A SevenIsland_House_Room1_MapScript1_170895:: @ 8170895 special ValidateEReaderTrainer compare_var_to_value VAR_RESULT, 0 - call_if 1, EventScript_1708AF + call_if eq, EventScript_1708AF compare_var_to_value VAR_MAP_SCENE_SEVEN_ISLAND_HOUSE_ROOM1, 0 - call_if 5, EventScript_1708C3 + call_if ne, EventScript_1708C3 end EventScript_1708AF:: @ 81708AF @@ -40,11 +40,11 @@ EventScript_1708E9:: @ 1708E9 applymovement 255, Movement_1A75E9 waitmovement 0 compare_var_to_value VAR_MAP_SCENE_SEVEN_ISLAND_HOUSE_ROOM1, 1 - call_if 1, EventScript_170938 + call_if eq, EventScript_170938 compare_var_to_value VAR_MAP_SCENE_SEVEN_ISLAND_HOUSE_ROOM1, 2 - call_if 1, EventScript_170941 + call_if eq, EventScript_170941 compare_var_to_value VAR_MAP_SCENE_SEVEN_ISLAND_HOUSE_ROOM1, 3 - call_if 1, EventScript_17094A + call_if eq, EventScript_17094A special LoadPlayerParty setvar VAR_MAP_SCENE_SEVEN_ISLAND_HOUSE_ROOM1, 0 releaseall @@ -76,9 +76,9 @@ SevenIsland_House_Room1_EventScript_170958:: @ 8170958 faceplayer special ValidateEReaderTrainer compare_var_to_value VAR_RESULT, 1 - call_if 1, EventScript_17097D + call_if eq, EventScript_17097D compare_var_to_value VAR_0x4001, 1 - goto_if_eq EventScript_170987 + goto_if eq, EventScript_170987 msgbox gUnknown_81A049B release end @@ -90,30 +90,30 @@ EventScript_17097D:: @ 817097D EventScript_170987:: @ 8170987 special SavePlayerParty - special sub_80CAAAC + special Special_BufferEReaderTrainerName5 msgbox gUnknown_81A0598, MSGBOX_YESNO compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_170A11 + goto_if eq, EventScript_170A11 call EventScript_170A1E compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_170A11 + goto_if eq, EventScript_170A11 msgbox gUnknown_81A0788, MSGBOX_YESNO compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_170A11 + goto_if eq, EventScript_170A11 special LoadPlayerParty call EventScript_1A4EAF compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_170A11 + goto_if eq, EventScript_170A11 special SavePlayerParty - special sub_80A03D8 + special ReducePlayerPartyToThree msgbox gUnknown_81A07C4 closemessage compare_var_to_value VAR_FACING, 2 - call_if 1, EventScript_170A2D + call_if eq, EventScript_170A2D compare_var_to_value VAR_FACING, 4 - call_if 1, EventScript_170A3F + call_if eq, EventScript_170A3F compare_var_to_value VAR_FACING, 3 - call_if 1, EventScript_170A51 + call_if eq, EventScript_170A51 warp MAP_SEVEN_ISLAND_HOUSE_ROOM2, 255, 3, 1 waitstate release diff --git a/data/maps/SevenIsland_House_Room2/map.json b/data/maps/SevenIsland_House_Room2/map.json index 131c2531f..2336916fa 100644 --- a/data/maps/SevenIsland_House_Room2/map.json +++ b/data/maps/SevenIsland_House_Room2/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "240", + "graphics_id": "MAP_OBJ_GFX_VAR_0", "x": 6, "y": 5, "elevation": 0, diff --git a/data/maps/SevenIsland_House_Room2/scripts.inc b/data/maps/SevenIsland_House_Room2/scripts.inc index db52423e4..f2928f916 100644 --- a/data/maps/SevenIsland_House_Room2/scripts.inc +++ b/data/maps/SevenIsland_House_Room2/scripts.inc @@ -4,7 +4,7 @@ SevenIsland_House_Room2_MapScripts:: @ 8170A7E .byte 0 SevenIsland_House_Room2_MapScript1_170A89:: @ 8170A89 - special sub_80E5E70 + special SetEReaderTrainerGfxId end SevenIsland_House_Room2_MapScript2_170A8D:: @ 8170A8D @@ -15,20 +15,19 @@ EventScript_170A97:: @ 8170A97 lockall applymovement 255, Movement_170B22 waitmovement 0 - special sub_80E7538 - loadword 0, gStringVar4 @ 2021D18 - callstd 4 + special PrintEReaderTrainerGreeting + msgbox gStringVar4 closemessage setvar VAR_0x8004, 2 setvar VAR_0x8005, 0 - special sub_80E6900 + special StartSpecialBattle waitstate compare_var_to_value VAR_RESULT, 3 - call_if 1, EventScript_170AFE + call_if eq, EventScript_170AFE compare_var_to_value VAR_RESULT, 1 - call_if 1, EventScript_170B0C + call_if eq, EventScript_170B0C compare_var_to_value VAR_RESULT, 2 - call_if 1, EventScript_170B17 + call_if eq, EventScript_170B17 closemessage special sp000_heal_pokemon applymovement 255, Movement_170B28 @@ -47,14 +46,14 @@ EventScript_170AFE:: @ 8170AFE EventScript_170B0C:: @ 8170B0C setvar VAR_MAP_SCENE_SEVEN_ISLAND_HOUSE_ROOM1, 1 - special sub_80CA68C + special Special_ShowStringVar4AsFieldMessage waitmessage waitbuttonpress return EventScript_170B17:: @ 8170B17 setvar VAR_MAP_SCENE_SEVEN_ISLAND_HOUSE_ROOM1, 2 - special sub_80CA68C + special Special_ShowStringVar4AsFieldMessage waitmessage waitbuttonpress return diff --git a/data/maps/SevenIsland_Mart/map.json b/data/maps/SevenIsland_Mart/map.json index 64f56ce7f..94f07f060 100644 --- a/data/maps/SevenIsland_Mart/map.json +++ b/data/maps/SevenIsland_Mart/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "68", + "graphics_id": "MAP_OBJ_GFX_CLERK", "x": 2, "y": 3, "elevation": 0, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "22", + "graphics_id": "MAP_OBJ_GFX_LASS", "x": 6, "y": 2, "elevation": 3, @@ -40,7 +40,7 @@ "flag": "0" }, { - "graphics_id": "57", + "graphics_id": "MAP_OBJ_GFX_FISHER", "x": 9, "y": 5, "elevation": 3, @@ -53,7 +53,7 @@ "flag": "0" }, { - "graphics_id": "56", + "graphics_id": "MAP_OBJ_GFX_HIKER", "x": 5, "y": 4, "elevation": 3, diff --git a/data/maps/SevenIsland_Mart/scripts.inc b/data/maps/SevenIsland_Mart/scripts.inc index ce9ad21ed..58312009f 100644 --- a/data/maps/SevenIsland_Mart/scripts.inc +++ b/data/maps/SevenIsland_Mart/scripts.inc @@ -4,7 +4,7 @@ SevenIsland_Mart_MapScripts:: @ 8170B30 SevenIsland_Mart_EventScript_170B31:: @ 8170B31 special sub_8110AB4 compare_var_to_value VAR_RESULT, 2 - goto_if_eq EventScript_1A7AE0 + goto_if eq, EventScript_1A7AE0 lock faceplayer message Text_1A6211 diff --git a/data/maps/SevenIsland_PokemonCenter_1F/map.json b/data/maps/SevenIsland_PokemonCenter_1F/map.json index cac3cd8f6..702c10d3b 100644 --- a/data/maps/SevenIsland_PokemonCenter_1F/map.json +++ b/data/maps/SevenIsland_PokemonCenter_1F/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "64", + "graphics_id": "MAP_OBJ_GFX_NURSE", "x": 7, "y": 2, "elevation": 3, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "32", + "graphics_id": "MAP_OBJ_GFX_OLD_MAN_1", "x": 11, "y": 5, "elevation": 3, @@ -40,7 +40,7 @@ "flag": "0" }, { - "graphics_id": "62", + "graphics_id": "MAP_OBJ_GFX_SAILOR", "x": 14, "y": 6, "elevation": 3, @@ -53,7 +53,7 @@ "flag": "0" }, { - "graphics_id": "29", + "graphics_id": "MAP_OBJ_GFX_BEAUTY", "x": 4, "y": 4, "elevation": 3, @@ -76,7 +76,7 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "SevenIsland_PokemonCenter_1F_EventScript_1ACFD4", - "flag": "157" + "flag": "FLAG_HIDE_POSTGAME_GOSSIPERS" }, { "graphics_id": "0", @@ -89,7 +89,7 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "SevenIsland_PokemonCenter_1F_EventScript_1ACFD4", - "flag": "157" + "flag": "FLAG_HIDE_POSTGAME_GOSSIPERS" } ], "warp_events": [ diff --git a/data/maps/SevenIsland_PokemonCenter_2F/map.json b/data/maps/SevenIsland_PokemonCenter_2F/map.json index 5952fb9b3..9817d6ff1 100644 --- a/data/maps/SevenIsland_PokemonCenter_2F/map.json +++ b/data/maps/SevenIsland_PokemonCenter_2F/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "65", + "graphics_id": "MAP_OBJ_GFX_CABLE_CLUB_RECEPTIONIST", "x": 6, "y": 2, "elevation": 3, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "65", + "graphics_id": "MAP_OBJ_GFX_CABLE_CLUB_RECEPTIONIST", "x": 2, "y": 2, "elevation": 3, @@ -40,7 +40,7 @@ "flag": "0" }, { - "graphics_id": "65", + "graphics_id": "MAP_OBJ_GFX_CABLE_CLUB_RECEPTIONIST", "x": 10, "y": 2, "elevation": 3, @@ -53,7 +53,7 @@ "flag": "0" }, { - "graphics_id": "69", + "graphics_id": "MAP_OBJ_GFX_MG_DELIVERYMAN", "x": 1, "y": 2, "elevation": 3, @@ -63,7 +63,7 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "SevenIsland_PokemonCenter_2F_EventScript_1BB1D2", - "flag": "112" + "flag": "FLAG_HIDE_MG_DELIVERYMEN" } ], "warp_events": [ diff --git a/data/maps/SevenIsland_SevaultCanyon/map.json b/data/maps/SevenIsland_SevaultCanyon/map.json index 96721c128..cf4f14540 100644 --- a/data/maps/SevenIsland_SevaultCanyon/map.json +++ b/data/maps/SevenIsland_SevaultCanyon/map.json @@ -25,7 +25,7 @@ ], "object_events": [ { - "graphics_id": "24", + "graphics_id": "MAP_OBJ_GFX_BATTLE_GIRL", "x": 13, "y": 43, "elevation": 3, @@ -38,7 +38,7 @@ "flag": "0" }, { - "graphics_id": "25", + "graphics_id": "MAP_OBJ_GFX_MAN", "x": 13, "y": 36, "elevation": 3, @@ -51,7 +51,7 @@ "flag": "0" }, { - "graphics_id": "39", + "graphics_id": "MAP_OBJ_GFX_CAMPER", "x": 3, "y": 35, "elevation": 3, @@ -64,7 +64,7 @@ "flag": "0" }, { - "graphics_id": "40", + "graphics_id": "MAP_OBJ_GFX_PICNICKER", "x": 3, "y": 36, "elevation": 3, @@ -77,7 +77,7 @@ "flag": "0" }, { - "graphics_id": "41", + "graphics_id": "MAP_OBJ_GFX_COOLTRAINER_M", "x": 7, "y": 56, "elevation": 3, @@ -90,7 +90,7 @@ "flag": "0" }, { - "graphics_id": "42", + "graphics_id": "MAP_OBJ_GFX_COOLTRAINER_F", "x": 11, "y": 63, "elevation": 3, @@ -103,7 +103,7 @@ "flag": "0" }, { - "graphics_id": "41", + "graphics_id": "MAP_OBJ_GFX_COOLTRAINER_M", "x": 14, "y": 13, "elevation": 3, @@ -116,7 +116,7 @@ "flag": "0" }, { - "graphics_id": "42", + "graphics_id": "MAP_OBJ_GFX_COOLTRAINER_F", "x": 14, "y": 14, "elevation": 3, @@ -129,7 +129,7 @@ "flag": "0" }, { - "graphics_id": "96", + "graphics_id": "MAP_OBJ_GFX_ROCK_SMASH_ROCK", "x": 3, "y": 41, "elevation": 3, @@ -138,11 +138,11 @@ "movement_range_y": 1, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "SevenIsland_SevaultCanyon_EventScript_1BE00C", - "flag": "18" + "script": "EventScript_InteractWithRockSmashRockObject", + "flag": "FLAG_TEMP_12" }, { - "graphics_id": "97", + "graphics_id": "MAP_OBJ_GFX_STRENGTH_BOULDER", "x": 13, "y": 47, "elevation": 3, @@ -151,11 +151,11 @@ "movement_range_y": 0, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "SevenIsland_SevaultCanyon_EventScript_1BE11D", + "script": "EventScript_InteractWithStrengthBoulderObject", "flag": "0" }, { - "graphics_id": "96", + "graphics_id": "MAP_OBJ_GFX_ROCK_SMASH_ROCK", "x": 7, "y": 44, "elevation": 3, @@ -164,11 +164,11 @@ "movement_range_y": 1, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "SevenIsland_SevaultCanyon_EventScript_1BE00C", - "flag": "19" + "script": "EventScript_InteractWithRockSmashRockObject", + "flag": "FLAG_TEMP_13" }, { - "graphics_id": "96", + "graphics_id": "MAP_OBJ_GFX_ROCK_SMASH_ROCK", "x": 12, "y": 47, "elevation": 3, @@ -177,11 +177,11 @@ "movement_range_y": 1, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "SevenIsland_SevaultCanyon_EventScript_1BE00C", - "flag": "21" + "script": "EventScript_InteractWithRockSmashRockObject", + "flag": "FLAG_TEMP_15" }, { - "graphics_id": "96", + "graphics_id": "MAP_OBJ_GFX_ROCK_SMASH_ROCK", "x": 15, "y": 46, "elevation": 3, @@ -190,11 +190,11 @@ "movement_range_y": 1, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "SevenIsland_SevaultCanyon_EventScript_1BE00C", - "flag": "22" + "script": "EventScript_InteractWithRockSmashRockObject", + "flag": "FLAG_TEMP_16" }, { - "graphics_id": "96", + "graphics_id": "MAP_OBJ_GFX_ROCK_SMASH_ROCK", "x": 16, "y": 47, "elevation": 3, @@ -203,11 +203,11 @@ "movement_range_y": 1, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "SevenIsland_SevaultCanyon_EventScript_1BE00C", - "flag": "23" + "script": "EventScript_InteractWithRockSmashRockObject", + "flag": "FLAG_TEMP_17" }, { - "graphics_id": "97", + "graphics_id": "MAP_OBJ_GFX_STRENGTH_BOULDER", "x": 17, "y": 47, "elevation": 3, @@ -216,11 +216,11 @@ "movement_range_y": 0, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "SevenIsland_SevaultCanyon_EventScript_1BE11D", + "script": "EventScript_InteractWithStrengthBoulderObject", "flag": "0" }, { - "graphics_id": "96", + "graphics_id": "MAP_OBJ_GFX_ROCK_SMASH_ROCK", "x": 11, "y": 31, "elevation": 3, @@ -229,11 +229,11 @@ "movement_range_y": 1, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "SevenIsland_SevaultCanyon_EventScript_1BE00C", - "flag": "27" + "script": "EventScript_InteractWithRockSmashRockObject", + "flag": "FLAG_TEMP_1B" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 18, "y": 45, "elevation": 3, @@ -243,10 +243,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "SevenIsland_SevaultCanyon_EventScript_1BECDE", - "flag": "487" + "flag": "FLAG_HIDE_SEVEN_ISLAND_SEVAULT_CANYON_KINGS_ROCK" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 7, "y": 38, "elevation": 3, @@ -256,10 +256,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "SevenIsland_SevaultCanyon_EventScript_1BECEB", - "flag": "488" + "flag": "FLAG_HIDE_SEVEN_ISLAND_SEVAULT_CANYON_MAX_ELIXIR" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 17, "y": 23, "elevation": 3, @@ -269,10 +269,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "SevenIsland_SevaultCanyon_EventScript_1BECF8", - "flag": "489" + "flag": "FLAG_HIDE_SEVEN_ISLAND_SEVAULT_CANYON_NUGGET" }, { - "graphics_id": "54", + "graphics_id": "MAP_OBJ_GFX_BLACKBELT", "x": 8, "y": 26, "elevation": 3, @@ -290,7 +290,7 @@ "x": 7, "y": 17, "elevation": 5, - "dest_map": "MAP_SEVEN_ISLAND_SEAVAULT_CANYON_TANOBY_KEY", + "dest_map": "MAP_SEVEN_ISLAND_SEVAULT_CANYON_TANOBY_KEY", "dest_warp_id": 0 }, { @@ -309,8 +309,9 @@ "y": 66, "elevation": 3, "item": "ITEM_CHERI_BERRY", - "flag": "63", - "unknown": 1 + "flag": "HIDDEN_ITEM_SEVEN_ISLAND_SEVAULT_CANYON_CHERI_BERRY", + "quantity": 1, + "underfoot": false }, { "type": "bg_event_type_0", diff --git a/data/maps/SevenIsland_SevaultCanyon_Entrance/map.json b/data/maps/SevenIsland_SevaultCanyon_Entrance/map.json index 32435d020..90a26bff2 100644 --- a/data/maps/SevenIsland_SevaultCanyon_Entrance/map.json +++ b/data/maps/SevenIsland_SevaultCanyon_Entrance/map.json @@ -25,7 +25,7 @@ ], "object_events": [ { - "graphics_id": "28", + "graphics_id": "MAP_OBJ_GFX_WOMAN_2", "x": 12, "y": 6, "elevation": 3, @@ -38,7 +38,7 @@ "flag": "0" }, { - "graphics_id": "29", + "graphics_id": "MAP_OBJ_GFX_BEAUTY", "x": 3, "y": 34, "elevation": 3, @@ -51,7 +51,7 @@ "flag": "0" }, { - "graphics_id": "25", + "graphics_id": "MAP_OBJ_GFX_MAN", "x": 4, "y": 34, "elevation": 3, @@ -64,7 +64,7 @@ "flag": "0" }, { - "graphics_id": "39", + "graphics_id": "MAP_OBJ_GFX_CAMPER", "x": 11, "y": 26, "elevation": 3, @@ -77,7 +77,7 @@ "flag": "0" }, { - "graphics_id": "40", + "graphics_id": "MAP_OBJ_GFX_PICNICKER", "x": 10, "y": 26, "elevation": 3, @@ -90,7 +90,7 @@ "flag": "0" }, { - "graphics_id": "26", + "graphics_id": "MAP_OBJ_GFX_ROCKER", "x": 11, "y": 17, "elevation": 5, @@ -125,8 +125,9 @@ "y": 29, "elevation": 5, "item": "ITEM_RAWST_BERRY", - "flag": "188", - "unknown": 1 + "flag": "HIDDEN_ITEM_SEVEN_ISLAND_SEVAULT_CANYON_ENTRANCE_RAWST_BERRY", + "quantity": 1, + "underfoot": false }, { "type": "bg_event_type_0", diff --git a/data/maps/SevenIsland_SevaultCanyon_House/map.json b/data/maps/SevenIsland_SevaultCanyon_House/map.json index 3b38de1a7..8fa5f28fb 100644 --- a/data/maps/SevenIsland_SevaultCanyon_House/map.json +++ b/data/maps/SevenIsland_SevaultCanyon_House/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "30", + "graphics_id": "MAP_OBJ_GFX_BALDING_MAN", "x": 2, "y": 4, "elevation": 3, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "117", + "graphics_id": "MAP_OBJ_GFX_CHANSEY", "x": 4, "y": 2, "elevation": 3, @@ -40,7 +40,7 @@ "flag": "0" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 6, "y": 4, "elevation": 0, @@ -50,7 +50,7 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "SevenIsland_SevaultCanyon_House_EventScript_1BEDFC", - "flag": "509" + "flag": "FLAG_HIDE_SEVEN_ISLAND_SEVAULT_CANYON_HOUSE_LUCKY_PUNCH" } ], "warp_events": [ diff --git a/data/maps/SevenIsland_SevaultCanyon_House/scripts.inc b/data/maps/SevenIsland_SevaultCanyon_House/scripts.inc index ed5f0d95d..dcf37028d 100644 --- a/data/maps/SevenIsland_SevaultCanyon_House/scripts.inc +++ b/data/maps/SevenIsland_SevaultCanyon_House/scripts.inc @@ -3,8 +3,8 @@ SevenIsland_SevaultCanyon_House_MapScripts:: @ 8172182 SevenIsland_SevaultCanyon_House_EventScript_172183:: @ 8172183 lock - checkflag FLAG_0x002 - goto_if_eq EventScript_172211 + checkflag FLAG_TEMP_2 + goto_if TRUE, EventScript_172211 playbgm MUS_P_SCHOOL, 0 applymovement 1, Movement_172231 waitmovement 0 @@ -16,21 +16,21 @@ SevenIsland_SevaultCanyon_House_EventScript_172183:: @ 8172183 textcolor 3 msgbox gUnknown_81A4DAF, MSGBOX_YESNO compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_172225 + goto_if eq, EventScript_172225 msgbox gUnknown_81A4DD8 closemessage call EventScript_1A6675 compare_var_to_value VAR_FACING, 1 - call_if 5, EventScript_172206 + call_if ne, EventScript_172206 delay 30 playbgm MUS_P_SCHOOL, 0 applymovement 255, Movement_172231 waitmovement 0 fadedefaultbgm delay 30 - call EventScript_1A6C26 + call EventScript_FadeOut_Heal_FadeIn msgbox gUnknown_81A4DF5 - setflag FLAG_0x002 + setflag FLAG_TEMP_2 release end diff --git a/data/maps/SevenIsland_SeavaultCanyon_TanobyKey/map.json b/data/maps/SevenIsland_SevaultCanyon_TanobyKey/map.json similarity index 67% rename from data/maps/SevenIsland_SeavaultCanyon_TanobyKey/map.json rename to data/maps/SevenIsland_SevaultCanyon_TanobyKey/map.json index f6af3773a..4f492d72d 100644 --- a/data/maps/SevenIsland_SeavaultCanyon_TanobyKey/map.json +++ b/data/maps/SevenIsland_SevaultCanyon_TanobyKey/map.json @@ -1,7 +1,7 @@ { - "id": "MAP_SEVEN_ISLAND_SEAVAULT_CANYON_TANOBY_KEY", - "name": "SevenIsland_SeavaultCanyon_TanobyKey", - "layout": "LAYOUT_SEVEN_ISLAND_SEAVAULT_CANYON_TANOBY_KEY", + "id": "MAP_SEVEN_ISLAND_SEVAULT_CANYON_TANOBY_KEY", + "name": "SevenIsland_SevaultCanyon_TanobyKey", + "layout": "LAYOUT_SEVEN_ISLAND_SEVAULT_CANYON_TANOBY_KEY", "music": "MUS_NANAISEKI", "region_map_section": "MAPSEC_TANOBY_KEY", "requires_flash": false, @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "97", + "graphics_id": "MAP_OBJ_GFX_STRENGTH_BOULDER", "x": 7, "y": 6, "elevation": 3, @@ -23,11 +23,11 @@ "movement_range_y": 0, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "SevenIsland_SeavaultCanyon_TanobyKey_EventScript_1BE11D", + "script": "EventScript_InteractWithStrengthBoulderObject", "flag": "0" }, { - "graphics_id": "97", + "graphics_id": "MAP_OBJ_GFX_STRENGTH_BOULDER", "x": 8, "y": 6, "elevation": 3, @@ -36,11 +36,11 @@ "movement_range_y": 0, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "SevenIsland_SeavaultCanyon_TanobyKey_EventScript_1BE11D", + "script": "EventScript_InteractWithStrengthBoulderObject", "flag": "0" }, { - "graphics_id": "97", + "graphics_id": "MAP_OBJ_GFX_STRENGTH_BOULDER", "x": 8, "y": 9, "elevation": 3, @@ -49,11 +49,11 @@ "movement_range_y": 0, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "SevenIsland_SeavaultCanyon_TanobyKey_EventScript_1BE11D", + "script": "EventScript_InteractWithStrengthBoulderObject", "flag": "0" }, { - "graphics_id": "97", + "graphics_id": "MAP_OBJ_GFX_STRENGTH_BOULDER", "x": 6, "y": 10, "elevation": 3, @@ -62,11 +62,11 @@ "movement_range_y": 0, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "SevenIsland_SeavaultCanyon_TanobyKey_EventScript_1BE11D", + "script": "EventScript_InteractWithStrengthBoulderObject", "flag": "0" }, { - "graphics_id": "97", + "graphics_id": "MAP_OBJ_GFX_STRENGTH_BOULDER", "x": 8, "y": 10, "elevation": 3, @@ -75,11 +75,11 @@ "movement_range_y": 0, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "SevenIsland_SeavaultCanyon_TanobyKey_EventScript_1BE11D", + "script": "EventScript_InteractWithStrengthBoulderObject", "flag": "0" }, { - "graphics_id": "97", + "graphics_id": "MAP_OBJ_GFX_STRENGTH_BOULDER", "x": 6, "y": 9, "elevation": 3, @@ -88,11 +88,11 @@ "movement_range_y": 0, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "SevenIsland_SeavaultCanyon_TanobyKey_EventScript_1BE11D", + "script": "EventScript_InteractWithStrengthBoulderObject", "flag": "0" }, { - "graphics_id": "97", + "graphics_id": "MAP_OBJ_GFX_STRENGTH_BOULDER", "x": 6, "y": 6, "elevation": 3, @@ -101,7 +101,7 @@ "movement_range_y": 0, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "SevenIsland_SeavaultCanyon_TanobyKey_EventScript_1BE11D", + "script": "EventScript_InteractWithStrengthBoulderObject", "flag": "0" } ], @@ -122,7 +122,7 @@ "elevation": 3, "var": "VAR_0x4001", "var_value": 99, - "script": "SevenIsland_SeavaultCanyon_TanobyKey_EventScript_164E39" + "script": "SevenIsland_SevaultCanyon_TanobyKey_EventScript_164E39" }, { "type": "trigger", @@ -131,7 +131,7 @@ "elevation": 3, "var": "VAR_0x4007", "var_value": 99, - "script": "SevenIsland_SeavaultCanyon_TanobyKey_EventScript_164F0B" + "script": "SevenIsland_SevaultCanyon_TanobyKey_EventScript_164F0B" }, { "type": "trigger", @@ -140,7 +140,7 @@ "elevation": 3, "var": "VAR_0x4006", "var_value": 99, - "script": "SevenIsland_SeavaultCanyon_TanobyKey_EventScript_164EE8" + "script": "SevenIsland_SevaultCanyon_TanobyKey_EventScript_164EE8" }, { "type": "trigger", @@ -149,7 +149,7 @@ "elevation": 3, "var": "VAR_0x4005", "var_value": 99, - "script": "SevenIsland_SeavaultCanyon_TanobyKey_EventScript_164EC5" + "script": "SevenIsland_SevaultCanyon_TanobyKey_EventScript_164EC5" }, { "type": "trigger", @@ -158,7 +158,7 @@ "elevation": 3, "var": "VAR_0x4004", "var_value": 99, - "script": "SevenIsland_SeavaultCanyon_TanobyKey_EventScript_164EA2" + "script": "SevenIsland_SevaultCanyon_TanobyKey_EventScript_164EA2" }, { "type": "trigger", @@ -167,7 +167,7 @@ "elevation": 3, "var": "VAR_0x4003", "var_value": 99, - "script": "SevenIsland_SeavaultCanyon_TanobyKey_EventScript_164E7F" + "script": "SevenIsland_SevaultCanyon_TanobyKey_EventScript_164E7F" }, { "type": "trigger", @@ -176,7 +176,7 @@ "elevation": 3, "var": "VAR_0x4002", "var_value": 99, - "script": "SevenIsland_SeavaultCanyon_TanobyKey_EventScript_164E5C" + "script": "SevenIsland_SevaultCanyon_TanobyKey_EventScript_164E5C" } ], "bg_events": [] diff --git a/data/maps/SevenIsland_SeavaultCanyon_TanobyKey/scripts.inc b/data/maps/SevenIsland_SevaultCanyon_TanobyKey/scripts.inc similarity index 59% rename from data/maps/SevenIsland_SeavaultCanyon_TanobyKey/scripts.inc rename to data/maps/SevenIsland_SevaultCanyon_TanobyKey/scripts.inc index b1cf1bc89..442e13942 100644 --- a/data/maps/SevenIsland_SeavaultCanyon_TanobyKey/scripts.inc +++ b/data/maps/SevenIsland_SevaultCanyon_TanobyKey/scripts.inc @@ -1,11 +1,11 @@ -SevenIsland_SeavaultCanyon_TanobyKey_MapScripts:: @ 8164DCC - map_script 3, SevenIsland_SeavaultCanyon_TanobyKey_MapScript1_164DD2 +SevenIsland_SevaultCanyon_TanobyKey_MapScripts:: @ 8164DCC + map_script 3, SevenIsland_SevaultCanyon_TanobyKey_MapScript1_164DD2 .byte 0 -SevenIsland_SeavaultCanyon_TanobyKey_MapScript1_164DD2:: @ 8164DD2 - setworldmapflag FLAG_WORLD_MAP_SEVEN_ISLAND_SEAVAULT_CANYON_TANOBY_KEY - checkflag FLAG_0x849 - call_if 1, EventScript_164E07 +SevenIsland_SevaultCanyon_TanobyKey_MapScript1_164DD2:: @ 8164DD2 + setworldmapflag FLAG_WORLD_MAP_SEVEN_ISLAND_SEVAULT_CANYON_TANOBY_KEY + checkflag FLAG_SYS_UNLOCKED_TANOBY_RUINS + call_if TRUE, EventScript_164E07 setvar VAR_0x4001, 0 setvar VAR_0x4002, 0 setvar VAR_0x4003, 0 @@ -26,80 +26,80 @@ EventScript_164E07:: @ 8164E07 setobjectxyperm 7, 9, 8 return -SevenIsland_SeavaultCanyon_TanobyKey_EventScript_164E39:: @ 8164E39 +SevenIsland_SevaultCanyon_TanobyKey_EventScript_164E39:: @ 8164E39 lockall compare_var_to_value VAR_0x4001, 100 - goto_if_eq EventScript_164F8A + goto_if eq, EventScript_164F8A call EventScript_164F2E setvar VAR_0x4001, 100 compare_var_to_value VAR_0x4008, 7 - goto_if_eq EventScript_164F8C + goto_if eq, EventScript_164F8C releaseall end -SevenIsland_SeavaultCanyon_TanobyKey_EventScript_164E5C:: @ 8164E5C +SevenIsland_SevaultCanyon_TanobyKey_EventScript_164E5C:: @ 8164E5C lockall compare_var_to_value VAR_0x4002, 100 - goto_if_eq EventScript_164F8A + goto_if eq, EventScript_164F8A call EventScript_164F2E setvar VAR_0x4002, 100 compare_var_to_value VAR_0x4008, 7 - goto_if_eq EventScript_164F8C + goto_if eq, EventScript_164F8C releaseall end -SevenIsland_SeavaultCanyon_TanobyKey_EventScript_164E7F:: @ 8164E7F +SevenIsland_SevaultCanyon_TanobyKey_EventScript_164E7F:: @ 8164E7F lockall compare_var_to_value VAR_0x4003, 100 - goto_if_eq EventScript_164F8A + goto_if eq, EventScript_164F8A call EventScript_164F2E setvar VAR_0x4003, 100 compare_var_to_value VAR_0x4008, 7 - goto_if_eq EventScript_164F8C + goto_if eq, EventScript_164F8C releaseall end -SevenIsland_SeavaultCanyon_TanobyKey_EventScript_164EA2:: @ 8164EA2 +SevenIsland_SevaultCanyon_TanobyKey_EventScript_164EA2:: @ 8164EA2 lockall compare_var_to_value VAR_0x4004, 100 - goto_if_eq EventScript_164F8A + goto_if eq, EventScript_164F8A call EventScript_164F2E setvar VAR_0x4004, 100 compare_var_to_value VAR_0x4008, 7 - goto_if_eq EventScript_164F8C + goto_if eq, EventScript_164F8C releaseall end -SevenIsland_SeavaultCanyon_TanobyKey_EventScript_164EC5:: @ 8164EC5 +SevenIsland_SevaultCanyon_TanobyKey_EventScript_164EC5:: @ 8164EC5 lockall compare_var_to_value VAR_0x4005, 100 - goto_if_eq EventScript_164F8A + goto_if eq, EventScript_164F8A call EventScript_164F2E setvar VAR_0x4005, 100 compare_var_to_value VAR_0x4008, 7 - goto_if_eq EventScript_164F8C + goto_if eq, EventScript_164F8C releaseall end -SevenIsland_SeavaultCanyon_TanobyKey_EventScript_164EE8:: @ 8164EE8 +SevenIsland_SevaultCanyon_TanobyKey_EventScript_164EE8:: @ 8164EE8 lockall compare_var_to_value VAR_0x4006, 100 - goto_if_eq EventScript_164F8A + goto_if eq, EventScript_164F8A call EventScript_164F2E setvar VAR_0x4006, 100 compare_var_to_value VAR_0x4008, 7 - goto_if_eq EventScript_164F8C + goto_if eq, EventScript_164F8C releaseall end -SevenIsland_SeavaultCanyon_TanobyKey_EventScript_164F0B:: @ 8164F0B +SevenIsland_SevaultCanyon_TanobyKey_EventScript_164F0B:: @ 8164F0B lockall compare_var_to_value VAR_0x4007, 100 - goto_if_eq EventScript_164F8A + goto_if eq, EventScript_164F8A call EventScript_164F2E setvar VAR_0x4007, 100 compare_var_to_value VAR_0x4008, 7 - goto_if_eq EventScript_164F8C + goto_if eq, EventScript_164F8C releaseall end @@ -110,7 +110,7 @@ EventScript_164F2E:: @ 8164F2E setvar VAR_0x8005, 1 setvar VAR_0x8006, 8 setvar VAR_0x8007, 3 - special sub_80CAC28 + special Special_ShakeScreen delay 60 return @@ -119,13 +119,13 @@ EventScript_164F51:: @ 8164F51 setvar VAR_0x8005, 2 setvar VAR_0x8006, 10 setvar VAR_0x8007, 3 - special sub_80CAC28 + special Special_ShakeScreen delay 60 setvar VAR_0x8004, 3 setvar VAR_0x8005, 3 setvar VAR_0x8006, 12 setvar VAR_0x8007, 2 - special sub_80CAC28 + special Special_ShakeScreen delay 60 playse SE_FU_ZUZUZU waitse @@ -138,6 +138,6 @@ EventScript_164F8A:: @ 8164F8A EventScript_164F8C:: @ 8164F8C call EventScript_164F51 msgbox gUnknown_817D31B - setflag FLAG_0x849 + setflag FLAG_SYS_UNLOCKED_TANOBY_RUINS releaseall end diff --git a/data/maps/SevenIsland_SeavaultCanyon_TanobyKey/text.inc b/data/maps/SevenIsland_SevaultCanyon_TanobyKey/text.inc similarity index 100% rename from data/maps/SevenIsland_SeavaultCanyon_TanobyKey/text.inc rename to data/maps/SevenIsland_SevaultCanyon_TanobyKey/text.inc diff --git a/data/maps/SevenIsland_TanobyRuins/map.json b/data/maps/SevenIsland_TanobyRuins/map.json index 46cd52796..812fa7fc3 100644 --- a/data/maps/SevenIsland_TanobyRuins/map.json +++ b/data/maps/SevenIsland_TanobyRuins/map.json @@ -20,7 +20,7 @@ ], "object_events": [ { - "graphics_id": "56", + "graphics_id": "MAP_OBJ_GFX_HIKER", "x": 35, "y": 7, "elevation": 3, @@ -33,7 +33,7 @@ "flag": "0" }, { - "graphics_id": "56", + "graphics_id": "MAP_OBJ_GFX_HIKER", "x": 121, "y": 11, "elevation": 3, @@ -46,7 +46,7 @@ "flag": "0" }, { - "graphics_id": "22", + "graphics_id": "MAP_OBJ_GFX_LASS", "x": 85, "y": 8, "elevation": 3, @@ -59,7 +59,7 @@ "flag": "0" }, { - "graphics_id": "61", + "graphics_id": "MAP_OBJ_GFX_GENTLEMAN", "x": 85, "y": 5, "elevation": 3, @@ -131,8 +131,9 @@ "y": 10, "elevation": 3, "item": "ITEM_HEART_SCALE", - "flag": "65", - "unknown": 1 + "flag": "HIDDEN_ITEM_SEVEN_ISLAND_TANOBY_RUINS_HEART_SCALE", + "quantity": 1, + "underfoot": false }, { "type": "hidden_item", @@ -140,8 +141,9 @@ "y": 9, "elevation": 3, "item": "ITEM_HEART_SCALE", - "flag": "66", - "unknown": 1 + "flag": "HIDDEN_ITEM_SEVEN_ISLAND_TANOBY_RUINS_HEART_SCALE_2", + "quantity": 1, + "underfoot": false }, { "type": "hidden_item", @@ -149,8 +151,9 @@ "y": 5, "elevation": 3, "item": "ITEM_HEART_SCALE", - "flag": "67", - "unknown": 1 + "flag": "HIDDEN_ITEM_SEVEN_ISLAND_TANOBY_RUINS_HEART_SCALE_3", + "quantity": 1, + "underfoot": false }, { "type": "hidden_item", @@ -158,8 +161,9 @@ "y": 2, "elevation": 3, "item": "ITEM_HEART_SCALE", - "flag": "64", - "unknown": 1 + "flag": "HIDDEN_ITEM_SEVEN_ISLAND_TANOBY_RUINS_HEART_SCALE_4", + "quantity": 1, + "underfoot": false } ] } diff --git a/data/maps/SevenIsland_TrainerTower/map.json b/data/maps/SevenIsland_TrainerTower/map.json index fcf63e782..9d9244f89 100644 --- a/data/maps/SevenIsland_TrainerTower/map.json +++ b/data/maps/SevenIsland_TrainerTower/map.json @@ -20,7 +20,7 @@ ], "object_events": [ { - "graphics_id": "19", + "graphics_id": "MAP_OBJ_GFX_BOY", "x": 56, "y": 26, "elevation": 3, @@ -33,7 +33,7 @@ "flag": "0" }, { - "graphics_id": "23", + "graphics_id": "MAP_OBJ_GFX_WOMAN_1", "x": 56, "y": 29, "elevation": 3, @@ -63,8 +63,9 @@ "y": 27, "elevation": 3, "item": "ITEM_BIG_PEARL", - "flag": "185", - "unknown": 1 + "flag": "HIDDEN_ITEM_SEVEN_ISLAND_TRAINER_TOWER_BIG_PEARL", + "quantity": 1, + "underfoot": false }, { "type": "hidden_item", @@ -72,8 +73,9 @@ "y": 30, "elevation": 3, "item": "ITEM_PEARL", - "flag": "186", - "unknown": 1 + "flag": "HIDDEN_ITEM_SEVEN_ISLAND_TRAINER_TOWER_PEARL", + "quantity": 1, + "underfoot": false }, { "type": "hidden_item", @@ -81,8 +83,9 @@ "y": 32, "elevation": 3, "item": "ITEM_NANAB_BERRY", - "flag": "187", - "unknown": 1 + "flag": "HIDDEN_ITEM_SEVEN_ISLAND_TRAINER_TOWER_NANAB_BERRY", + "quantity": 1, + "underfoot": false }, { "type": "bg_event_type_0", diff --git a/data/maps/SevenIsland_TrainerTower/scripts.inc b/data/maps/SevenIsland_TrainerTower/scripts.inc index 74902ebc8..e0b5f78c0 100644 --- a/data/maps/SevenIsland_TrainerTower/scripts.inc +++ b/data/maps/SevenIsland_TrainerTower/scripts.inc @@ -3,7 +3,7 @@ SevenIsland_TrainerTower_MapScripts:: @ 8168BD5 .byte 0 SevenIsland_TrainerTower_MapScript1_168BDB:: @ 8168BDB - setvar VAR_0x4082, 0 + setvar VAR_MAP_SCENE_TRAINER_TOWER, 0 end SevenIsland_TrainerTower_EventScript_168BE1:: @ 8168BE1 diff --git a/data/maps/SevenIsland_TrainerTower_1F/map.json b/data/maps/SevenIsland_TrainerTower_1F/map.json index a830c85d0..8340ada47 100644 --- a/data/maps/SevenIsland_TrainerTower_1F/map.json +++ b/data/maps/SevenIsland_TrainerTower_1F/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "70", + "graphics_id": "MAP_OBJ_GFX_TRAINER_TOWER_DUDE", "x": 9, "y": 7, "elevation": 3, @@ -24,10 +24,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "0x0", - "flag": "6" + "flag": "FLAG_TEMP_6" }, { - "graphics_id": "240", + "graphics_id": "MAP_OBJ_GFX_VAR_0", "x": 11, "y": 10, "elevation": 3, @@ -37,10 +37,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "SevenIsland_TrainerTower_1F_EventScript_1646C8", - "flag": "2" + "flag": "FLAG_TEMP_2" }, { - "graphics_id": "241", + "graphics_id": "MAP_OBJ_GFX_VAR_1", "x": 15, "y": 13, "elevation": 3, @@ -50,10 +50,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "SevenIsland_TrainerTower_1F_EventScript_1646CE", - "flag": "3" + "flag": "FLAG_TEMP_3" }, { - "graphics_id": "242", + "graphics_id": "MAP_OBJ_GFX_VAR_2", "x": 10, "y": 16, "elevation": 3, @@ -63,10 +63,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "SevenIsland_TrainerTower_1F_EventScript_1646D4", - "flag": "4" + "flag": "FLAG_TEMP_4" }, { - "graphics_id": "243", + "graphics_id": "MAP_OBJ_GFX_VAR_3", "x": 10, "y": 10, "elevation": 3, @@ -76,7 +76,7 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "SevenIsland_TrainerTower_1F_EventScript_1646DA", - "flag": "5" + "flag": "FLAG_TEMP_5" } ], "warp_events": [ diff --git a/data/maps/SevenIsland_TrainerTower_2F/map.json b/data/maps/SevenIsland_TrainerTower_2F/map.json index 6fdc50198..3cab31165 100644 --- a/data/maps/SevenIsland_TrainerTower_2F/map.json +++ b/data/maps/SevenIsland_TrainerTower_2F/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "70", + "graphics_id": "MAP_OBJ_GFX_TRAINER_TOWER_DUDE", "x": 9, "y": 7, "elevation": 3, @@ -24,10 +24,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "SevenIsland_TrainerTower_2F_EventScript_1646E0", - "flag": "6" + "flag": "FLAG_TEMP_6" }, { - "graphics_id": "240", + "graphics_id": "MAP_OBJ_GFX_VAR_0", "x": 10, "y": 10, "elevation": 3, @@ -37,10 +37,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "SevenIsland_TrainerTower_2F_EventScript_1646C8", - "flag": "2" + "flag": "FLAG_TEMP_2" }, { - "graphics_id": "241", + "graphics_id": "MAP_OBJ_GFX_VAR_1", "x": 15, "y": 13, "elevation": 3, @@ -50,10 +50,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "SevenIsland_TrainerTower_2F_EventScript_1646CE", - "flag": "3" + "flag": "FLAG_TEMP_3" }, { - "graphics_id": "242", + "graphics_id": "MAP_OBJ_GFX_VAR_2", "x": 10, "y": 16, "elevation": 3, @@ -63,10 +63,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "SevenIsland_TrainerTower_2F_EventScript_1646D4", - "flag": "4" + "flag": "FLAG_TEMP_4" }, { - "graphics_id": "243", + "graphics_id": "MAP_OBJ_GFX_VAR_3", "x": 11, "y": 10, "elevation": 3, @@ -76,7 +76,7 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "SevenIsland_TrainerTower_2F_EventScript_1646DA", - "flag": "5" + "flag": "FLAG_TEMP_5" } ], "warp_events": [ diff --git a/data/maps/SevenIsland_TrainerTower_3F/map.json b/data/maps/SevenIsland_TrainerTower_3F/map.json index d697f3adb..32b53f781 100644 --- a/data/maps/SevenIsland_TrainerTower_3F/map.json +++ b/data/maps/SevenIsland_TrainerTower_3F/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "70", + "graphics_id": "MAP_OBJ_GFX_TRAINER_TOWER_DUDE", "x": 9, "y": 7, "elevation": 3, @@ -24,10 +24,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "SevenIsland_TrainerTower_3F_EventScript_1646E0", - "flag": "6" + "flag": "FLAG_TEMP_6" }, { - "graphics_id": "240", + "graphics_id": "MAP_OBJ_GFX_VAR_0", "x": 10, "y": 10, "elevation": 3, @@ -37,10 +37,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "SevenIsland_TrainerTower_3F_EventScript_1646C8", - "flag": "2" + "flag": "FLAG_TEMP_2" }, { - "graphics_id": "241", + "graphics_id": "MAP_OBJ_GFX_VAR_1", "x": 15, "y": 13, "elevation": 3, @@ -50,10 +50,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "SevenIsland_TrainerTower_3F_EventScript_1646CE", - "flag": "3" + "flag": "FLAG_TEMP_3" }, { - "graphics_id": "242", + "graphics_id": "MAP_OBJ_GFX_VAR_2", "x": 10, "y": 16, "elevation": 3, @@ -63,10 +63,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "SevenIsland_TrainerTower_3F_EventScript_1646D4", - "flag": "4" + "flag": "FLAG_TEMP_4" }, { - "graphics_id": "243", + "graphics_id": "MAP_OBJ_GFX_VAR_3", "x": 11, "y": 10, "elevation": 3, @@ -76,7 +76,7 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "SevenIsland_TrainerTower_3F_EventScript_1646DA", - "flag": "5" + "flag": "FLAG_TEMP_5" } ], "warp_events": [ diff --git a/data/maps/SevenIsland_TrainerTower_4F/map.json b/data/maps/SevenIsland_TrainerTower_4F/map.json index f6b7336ee..cfb7f97c7 100644 --- a/data/maps/SevenIsland_TrainerTower_4F/map.json +++ b/data/maps/SevenIsland_TrainerTower_4F/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "70", + "graphics_id": "MAP_OBJ_GFX_TRAINER_TOWER_DUDE", "x": 9, "y": 7, "elevation": 3, @@ -24,10 +24,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "SevenIsland_TrainerTower_4F_EventScript_1646E0", - "flag": "6" + "flag": "FLAG_TEMP_6" }, { - "graphics_id": "240", + "graphics_id": "MAP_OBJ_GFX_VAR_0", "x": 10, "y": 10, "elevation": 3, @@ -37,10 +37,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "SevenIsland_TrainerTower_4F_EventScript_1646C8", - "flag": "2" + "flag": "FLAG_TEMP_2" }, { - "graphics_id": "241", + "graphics_id": "MAP_OBJ_GFX_VAR_1", "x": 15, "y": 13, "elevation": 3, @@ -50,10 +50,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "SevenIsland_TrainerTower_4F_EventScript_1646CE", - "flag": "3" + "flag": "FLAG_TEMP_3" }, { - "graphics_id": "242", + "graphics_id": "MAP_OBJ_GFX_VAR_2", "x": 10, "y": 16, "elevation": 3, @@ -63,10 +63,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "SevenIsland_TrainerTower_4F_EventScript_1646D4", - "flag": "4" + "flag": "FLAG_TEMP_4" }, { - "graphics_id": "243", + "graphics_id": "MAP_OBJ_GFX_VAR_3", "x": 11, "y": 10, "elevation": 3, @@ -76,7 +76,7 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "SevenIsland_TrainerTower_4F_EventScript_1646DA", - "flag": "5" + "flag": "FLAG_TEMP_5" } ], "warp_events": [ diff --git a/data/maps/SevenIsland_TrainerTower_5F/map.json b/data/maps/SevenIsland_TrainerTower_5F/map.json index c5ce3d4c7..7aae856d4 100644 --- a/data/maps/SevenIsland_TrainerTower_5F/map.json +++ b/data/maps/SevenIsland_TrainerTower_5F/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "70", + "graphics_id": "MAP_OBJ_GFX_TRAINER_TOWER_DUDE", "x": 9, "y": 7, "elevation": 3, @@ -24,10 +24,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "SevenIsland_TrainerTower_5F_EventScript_1646E0", - "flag": "6" + "flag": "FLAG_TEMP_6" }, { - "graphics_id": "240", + "graphics_id": "MAP_OBJ_GFX_VAR_0", "x": 10, "y": 10, "elevation": 3, @@ -37,10 +37,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "SevenIsland_TrainerTower_5F_EventScript_1646C8", - "flag": "2" + "flag": "FLAG_TEMP_2" }, { - "graphics_id": "241", + "graphics_id": "MAP_OBJ_GFX_VAR_1", "x": 15, "y": 13, "elevation": 3, @@ -50,10 +50,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "SevenIsland_TrainerTower_5F_EventScript_1646CE", - "flag": "3" + "flag": "FLAG_TEMP_3" }, { - "graphics_id": "242", + "graphics_id": "MAP_OBJ_GFX_VAR_2", "x": 10, "y": 16, "elevation": 3, @@ -63,10 +63,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "SevenIsland_TrainerTower_5F_EventScript_1646D4", - "flag": "4" + "flag": "FLAG_TEMP_4" }, { - "graphics_id": "243", + "graphics_id": "MAP_OBJ_GFX_VAR_3", "x": 11, "y": 10, "elevation": 3, @@ -76,7 +76,7 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "SevenIsland_TrainerTower_5F_EventScript_1646DA", - "flag": "5" + "flag": "FLAG_TEMP_5" } ], "warp_events": [ diff --git a/data/maps/SevenIsland_TrainerTower_6F/map.json b/data/maps/SevenIsland_TrainerTower_6F/map.json index 5fc6fc1df..6c9ab9fa5 100644 --- a/data/maps/SevenIsland_TrainerTower_6F/map.json +++ b/data/maps/SevenIsland_TrainerTower_6F/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "70", + "graphics_id": "MAP_OBJ_GFX_TRAINER_TOWER_DUDE", "x": 9, "y": 7, "elevation": 3, @@ -24,10 +24,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "SevenIsland_TrainerTower_6F_EventScript_1646E0", - "flag": "6" + "flag": "FLAG_TEMP_6" }, { - "graphics_id": "240", + "graphics_id": "MAP_OBJ_GFX_VAR_0", "x": 10, "y": 10, "elevation": 3, @@ -37,10 +37,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "SevenIsland_TrainerTower_6F_EventScript_1646C8", - "flag": "2" + "flag": "FLAG_TEMP_2" }, { - "graphics_id": "241", + "graphics_id": "MAP_OBJ_GFX_VAR_1", "x": 15, "y": 13, "elevation": 3, @@ -50,10 +50,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "SevenIsland_TrainerTower_6F_EventScript_1646CE", - "flag": "3" + "flag": "FLAG_TEMP_3" }, { - "graphics_id": "242", + "graphics_id": "MAP_OBJ_GFX_VAR_2", "x": 10, "y": 16, "elevation": 3, @@ -63,10 +63,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "SevenIsland_TrainerTower_6F_EventScript_1646D4", - "flag": "4" + "flag": "FLAG_TEMP_4" }, { - "graphics_id": "243", + "graphics_id": "MAP_OBJ_GFX_VAR_3", "x": 11, "y": 10, "elevation": 3, @@ -76,7 +76,7 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "SevenIsland_TrainerTower_6F_EventScript_1646DA", - "flag": "5" + "flag": "FLAG_TEMP_5" } ], "warp_events": [ diff --git a/data/maps/SevenIsland_TrainerTower_7F/map.json b/data/maps/SevenIsland_TrainerTower_7F/map.json index 2ede0ac79..e3984966b 100644 --- a/data/maps/SevenIsland_TrainerTower_7F/map.json +++ b/data/maps/SevenIsland_TrainerTower_7F/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "70", + "graphics_id": "MAP_OBJ_GFX_TRAINER_TOWER_DUDE", "x": 9, "y": 7, "elevation": 3, @@ -24,10 +24,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "SevenIsland_TrainerTower_7F_EventScript_1646E0", - "flag": "6" + "flag": "FLAG_TEMP_6" }, { - "graphics_id": "240", + "graphics_id": "MAP_OBJ_GFX_VAR_0", "x": 10, "y": 10, "elevation": 3, @@ -37,10 +37,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "SevenIsland_TrainerTower_7F_EventScript_1646C8", - "flag": "2" + "flag": "FLAG_TEMP_2" }, { - "graphics_id": "241", + "graphics_id": "MAP_OBJ_GFX_VAR_1", "x": 15, "y": 13, "elevation": 3, @@ -50,10 +50,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "SevenIsland_TrainerTower_7F_EventScript_1646CE", - "flag": "3" + "flag": "FLAG_TEMP_3" }, { - "graphics_id": "242", + "graphics_id": "MAP_OBJ_GFX_VAR_2", "x": 10, "y": 16, "elevation": 3, @@ -63,10 +63,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "SevenIsland_TrainerTower_7F_EventScript_1646D4", - "flag": "4" + "flag": "FLAG_TEMP_4" }, { - "graphics_id": "243", + "graphics_id": "MAP_OBJ_GFX_VAR_3", "x": 11, "y": 10, "elevation": 3, @@ -76,7 +76,7 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "SevenIsland_TrainerTower_7F_EventScript_1646DA", - "flag": "5" + "flag": "FLAG_TEMP_5" } ], "warp_events": [ diff --git a/data/maps/SevenIsland_TrainerTower_8F/map.json b/data/maps/SevenIsland_TrainerTower_8F/map.json index a04a282bf..c83e9128b 100644 --- a/data/maps/SevenIsland_TrainerTower_8F/map.json +++ b/data/maps/SevenIsland_TrainerTower_8F/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "70", + "graphics_id": "MAP_OBJ_GFX_TRAINER_TOWER_DUDE", "x": 9, "y": 7, "elevation": 3, @@ -24,10 +24,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "SevenIsland_TrainerTower_8F_EventScript_1646E0", - "flag": "6" + "flag": "FLAG_TEMP_6" }, { - "graphics_id": "240", + "graphics_id": "MAP_OBJ_GFX_VAR_0", "x": 10, "y": 10, "elevation": 3, @@ -37,10 +37,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "SevenIsland_TrainerTower_8F_EventScript_1646C8", - "flag": "2" + "flag": "FLAG_TEMP_2" }, { - "graphics_id": "241", + "graphics_id": "MAP_OBJ_GFX_VAR_1", "x": 15, "y": 13, "elevation": 3, @@ -50,10 +50,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "SevenIsland_TrainerTower_8F_EventScript_1646CE", - "flag": "3" + "flag": "FLAG_TEMP_3" }, { - "graphics_id": "242", + "graphics_id": "MAP_OBJ_GFX_VAR_2", "x": 10, "y": 16, "elevation": 3, @@ -63,10 +63,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "SevenIsland_TrainerTower_8F_EventScript_1646D4", - "flag": "4" + "flag": "FLAG_TEMP_4" }, { - "graphics_id": "243", + "graphics_id": "MAP_OBJ_GFX_VAR_3", "x": 11, "y": 10, "elevation": 3, @@ -76,7 +76,7 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "SevenIsland_TrainerTower_8F_EventScript_1646DA", - "flag": "5" + "flag": "FLAG_TEMP_5" } ], "warp_events": [ diff --git a/data/maps/SevenIsland_TrainerTower_Elevator/scripts.inc b/data/maps/SevenIsland_TrainerTower_Elevator/scripts.inc index de508c706..e8ee2450f 100644 --- a/data/maps/SevenIsland_TrainerTower_Elevator/scripts.inc +++ b/data/maps/SevenIsland_TrainerTower_Elevator/scripts.inc @@ -6,26 +6,26 @@ SevenIsland_TrainerTower_Elevator_MapScripts:: @ 8164AF8 SevenIsland_TrainerTower_Elevator_EventScript_164B03:: @ 8164B03 lockall setvar VAR_0x8004, 6 - checkflag FLAG_0x002 - call_if 0, EventScript_1A7AB9 - copyvar VAR_0x8005, VAR_0x403A - special sub_80CB580 + checkflag FLAG_TEMP_2 + call_if FALSE, EventScript_1A7AB9 + copyvar VAR_0x8005, VAR_ELEVATOR_FLOOR + special Special_DrawElevatorCurrentFloorWindow message Text_1A535C waitmessage setvar VAR_0x8004, 6 - specialvar VAR_RESULT, sub_80CB328 + specialvar VAR_RESULT, Special_InitElevatorFloorSelectMenuPos switch VAR_RESULT case 0, EventScript_164B46 case 1, EventScript_164B52 end EventScript_164B46:: @ 8164B46 - multichoicedefault 0, 0, 20, 0, 0 + multichoicedefault 0, 0, MULTICHOICE_ROOFTOP_B1F, 0, FALSE goto EventScript_164B5E end EventScript_164B52:: @ 8164B52 - multichoicedefault 0, 0, 20, 1, 0 + multichoicedefault 0, 0, MULTICHOICE_ROOFTOP_B1F, 1, FALSE goto EventScript_164B5E end @@ -40,11 +40,11 @@ EventScript_164B5E:: @ 8164B5E EventScript_164B90:: @ 8164B90 setvar VAR_0x8006, 3 setdynamicwarp MAP_SEVEN_ISLAND_TRAINER_TOWER_LOBBY, 255, 17, 8 - compare_var_to_value VAR_0x403A, 3 - goto_if_eq EventScript_164BD3 + compare_var_to_value VAR_ELEVATOR_FLOOR, 3 + goto_if eq, EventScript_164BD3 call EventScript_164BD8 - setvar VAR_0x403A, 3 - special sub_80CB63C + setvar VAR_ELEVATOR_FLOOR, 3 + special Special_CloseElevatorCurrentFloorWindow delay 25 applymovement 255, Movement_164BE5 waitmovement 0 @@ -58,17 +58,17 @@ EventScript_164BCD:: @ 8164BCD end EventScript_164BD3:: @ 8164BD3 - special sub_80CB63C + special Special_CloseElevatorCurrentFloorWindow releaseall end EventScript_164BD8:: @ 8164BD8 - special sub_80CB63C + special Special_CloseElevatorCurrentFloorWindow closemessage waitse - special sub_80CB498 + special Special_AnimateElevator waitstate - setflag FLAG_0x002 + setflag FLAG_TEMP_2 return Movement_164BE5:: @ 8164BE5 diff --git a/data/maps/SevenIsland_TrainerTower_Lobby/map.json b/data/maps/SevenIsland_TrainerTower_Lobby/map.json index ac93f0992..0b3bc2fc5 100644 --- a/data/maps/SevenIsland_TrainerTower_Lobby/map.json +++ b/data/maps/SevenIsland_TrainerTower_Lobby/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "64", + "graphics_id": "MAP_OBJ_GFX_NURSE", "x": 4, "y": 9, "elevation": 3, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "66", + "graphics_id": "MAP_OBJ_GFX_UNION_ROOM_RECEPTIONIST", "x": 14, "y": 9, "elevation": 3, @@ -40,7 +40,7 @@ "flag": "0" }, { - "graphics_id": "66", + "graphics_id": "MAP_OBJ_GFX_UNION_ROOM_RECEPTIONIST", "x": 11, "y": 7, "elevation": 3, @@ -53,7 +53,7 @@ "flag": "0" }, { - "graphics_id": "42", + "graphics_id": "MAP_OBJ_GFX_COOLTRAINER_F", "x": 12, "y": 13, "elevation": 3, @@ -66,7 +66,7 @@ "flag": "0" }, { - "graphics_id": "30", + "graphics_id": "MAP_OBJ_GFX_BALDING_MAN", "x": 2, "y": 12, "elevation": 3, @@ -108,7 +108,7 @@ "x": 9, "y": 7, "elevation": 3, - "var": "VAR_0x4082", + "var": "VAR_MAP_SCENE_TRAINER_TOWER", "var_value": 0, "script": "SevenIsland_TrainerTower_Lobby_EventScript_1649CE" } diff --git a/data/maps/SevenIsland_TrainerTower_Lobby/scripts.inc b/data/maps/SevenIsland_TrainerTower_Lobby/scripts.inc index 5515316cb..142f33ee3 100644 --- a/data/maps/SevenIsland_TrainerTower_Lobby/scripts.inc +++ b/data/maps/SevenIsland_TrainerTower_Lobby/scripts.inc @@ -13,7 +13,7 @@ SevenIsland_TrainerTower_Lobby_MapScript1_164853:: @ 8164853 setvar VAR_0x8004, 18 special sub_815D9E8 compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_164886 + goto_if eq, EventScript_164886 setvar VAR_0x4000, 0 setobjectxy 255, 9, 7 applymovement 255, Movement_164AD4 @@ -31,7 +31,7 @@ SevenIsland_TrainerTower_Lobby_MapScript2_164887:: @ 8164887 SevenIsland_TrainerTower_Lobby_MapScript4_164897:: @ 8164897 compare_var_to_value VAR_0x400D, 17 - call_if 1, EventScript_1648A3 + call_if eq, EventScript_1648A3 end EventScript_1648A3:: @ 81648A3 @@ -93,7 +93,7 @@ EventScript_16494B:: @ 816494B closemessage applymovement 255, Movement_164AD6 waitmovement 0 - setvar VAR_0x4082, 0 + setvar VAR_MAP_SCENE_TRAINER_TOWER, 0 release EventScript_16495C:: @ 816495C @@ -112,7 +112,7 @@ SevenIsland_TrainerTower_Lobby_EventScript_164966:: @ 8164966 setvar VAR_0x8004, 20 special sub_815D9E8 compare_var_to_value VAR_RESULT, 1 - goto_if_eq EventScript_164988 + goto_if eq, EventScript_164988 msgbox gUnknown_817C9A2 goto EventScript_164990 @@ -126,7 +126,7 @@ EventScript_164990:: @ 8164990 SevenIsland_TrainerTower_Lobby_EventScript_164992:: @ 8164992 special sub_8110AB4 compare_var_to_value VAR_RESULT, 2 - goto_if_eq EventScript_1A7AE0 + goto_if eq, EventScript_1A7AE0 lock faceplayer message Text_1A6211 @@ -159,7 +159,7 @@ SevenIsland_TrainerTower_Lobby_EventScript_1649CE:: @ 81649CE setvar VAR_0x8004, 17 special sub_815D9E8 compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_164A00 + goto_if eq, EventScript_164A00 msgbox gUnknown_817C7D9 goto EventScript_164A08 @@ -169,7 +169,7 @@ EventScript_164A00:: @ 8164A00 EventScript_164A08:: @ 8164A08 message Text_17C88D waitmessage - multichoice 18, 6, 16, 0 + multichoice 18, 6, MULTICHOICE_YES_NO_INFO, FALSE switch VAR_RESULT case 0, EventScript_164A53 case 1, EventScript_164ABF @@ -183,7 +183,7 @@ EventScript_164A45:: @ 8164A45 end EventScript_164A53:: @ 8164A53 - multichoice 13, 3, 64, 0 + multichoice 13, 3, MULTICHOICE_TRAINER_TOWER_MODE, FALSE switch VAR_RESULT case 0, EventScript_164AA0 case 1, EventScript_164AA0 @@ -195,7 +195,7 @@ EventScript_164A53:: @ 8164A53 EventScript_164AA0:: @ 8164AA0 copyvar VAR_0x8005, VAR_RESULT - setvar VAR_0x4082, 1 + setvar VAR_MAP_SCENE_TRAINER_TOWER, 1 special sp000_heal_pokemon msgbox gUnknown_817C8BF setvar VAR_0x8004, 6 diff --git a/data/maps/SevenIsland_TrainerTower_Roof/map.json b/data/maps/SevenIsland_TrainerTower_Roof/map.json index ade5bc46c..4fb265a15 100644 --- a/data/maps/SevenIsland_TrainerTower_Roof/map.json +++ b/data/maps/SevenIsland_TrainerTower_Roof/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "70", + "graphics_id": "MAP_OBJ_GFX_TRAINER_TOWER_DUDE", "x": 9, "y": 7, "elevation": 3, @@ -24,7 +24,7 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "SevenIsland_TrainerTower_Roof_EventScript_1646E0", - "flag": "6" + "flag": "FLAG_TEMP_6" } ], "warp_events": [ diff --git a/data/maps/SilphCo_10F/map.json b/data/maps/SilphCo_10F/map.json index bc8c5fe00..666d811f8 100644 --- a/data/maps/SilphCo_10F/map.json +++ b/data/maps/SilphCo_10F/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "55", + "graphics_id": "MAP_OBJ_GFX_SCIENTIST", "x": 2, "y": 7, "elevation": 3, @@ -24,10 +24,10 @@ "trainer_type": 1, "trainer_sight_or_berry_tree_id": 1, "script": "SilphCo_10F_EventScript_161DC0", - "flag": "83" + "flag": "FLAG_HIDE_SILPH_ROCKETS" }, { - "graphics_id": "48", + "graphics_id": "MAP_OBJ_GFX_WORKER_F", "x": 10, "y": 17, "elevation": 3, @@ -40,7 +40,7 @@ "flag": "0" }, { - "graphics_id": "49", + "graphics_id": "MAP_OBJ_GFX_ROCKET_M", "x": 0, "y": 13, "elevation": 3, @@ -50,10 +50,10 @@ "trainer_type": 1, "trainer_sight_or_berry_tree_id": 4, "script": "SilphCo_10F_EventScript_161DD7", - "flag": "83" + "flag": "FLAG_HIDE_SILPH_ROCKETS" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 5, "y": 15, "elevation": 3, @@ -63,10 +63,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "SilphCo_10F_EventScript_1BE8F5", - "flag": "407" + "flag": "FLAG_HIDE_SILPH_CO_10F_CARBOS" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 2, "y": 15, "elevation": 3, @@ -76,10 +76,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "SilphCo_10F_EventScript_1BE902", - "flag": "408" + "flag": "FLAG_HIDE_SILPH_CO_10F_ULTRA_BALL" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 3, "y": 17, "elevation": 3, @@ -89,7 +89,7 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "SilphCo_10F_EventScript_1BE90F", - "flag": "409" + "flag": "FLAG_HIDE_SILPH_CO_10F_RARE_CANDY" } ], "warp_events": [ @@ -172,8 +172,9 @@ "y": 9, "elevation": 0, "item": "ITEM_HP_UP", - "flag": "143", - "unknown": 1 + "flag": "HIDDEN_ITEM_SILPH_CO_10F_HP_UP", + "quantity": 1, + "underfoot": false }, { "type": "bg_event_type_0", diff --git a/data/maps/SilphCo_10F/scripts.inc b/data/maps/SilphCo_10F/scripts.inc index dea6b7af4..0b8e0e2cb 100644 --- a/data/maps/SilphCo_10F/scripts.inc +++ b/data/maps/SilphCo_10F/scripts.inc @@ -3,15 +3,15 @@ SilphCo_10F_MapScripts:: @ 8161D86 .byte 0 SilphCo_10F_MapScript1_161D8C:: @ 8161D8C - checkflag FLAG_0x28C - call_if 0, EventScript_1A84D6 + checkflag FLAG_SILPH_10F_DOOR + call_if FALSE, EventScript_1A84D6 end SilphCo_10F_EventScript_161D96:: @ 8161D96 lock faceplayer - compare_var_to_value VAR_0x4060, 1 - goto_if 4, EventScript_161DAD + compare_var_to_value VAR_MAP_SCENE_SILPH_CO_11F, 1 + goto_if ge, EventScript_161DAD msgbox gUnknown_8176DBA release end @@ -26,11 +26,11 @@ SilphCo_10F_EventScript_161DB7:: @ 8161DB7 end SilphCo_10F_EventScript_161DC0:: @ 8161DC0 - trainerbattle 0, 345, 0, Text_176D57, Text_176D73 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_SCIENTIST_TRAVIS, 0, Text_176D57, Text_176D73 msgbox gUnknown_8176D86, 6 end SilphCo_10F_EventScript_161DD7:: @ 8161DD7 - trainerbattle 0, 389, 0, Text_176CED, Text_176D18 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_TEAM_ROCKET_GRUNT_39, 0, Text_176CED, Text_176D18 msgbox gUnknown_8176D25, 6 end diff --git a/data/maps/SilphCo_11F/map.json b/data/maps/SilphCo_11F/map.json index 3406c6a7b..10f0bc778 100644 --- a/data/maps/SilphCo_11F/map.json +++ b/data/maps/SilphCo_11F/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "33", + "graphics_id": "MAP_OBJ_GFX_OLD_MAN_2", "x": 9, "y": 9, "elevation": 3, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "48", + "graphics_id": "MAP_OBJ_GFX_WORKER_F", "x": 11, "y": 9, "elevation": 3, @@ -40,7 +40,7 @@ "flag": "0" }, { - "graphics_id": "87", + "graphics_id": "MAP_OBJ_GFX_GIOVANNI", "x": 6, "y": 11, "elevation": 3, @@ -50,10 +50,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "0x0", - "flag": "83" + "flag": "FLAG_HIDE_SILPH_ROCKETS" }, { - "graphics_id": "49", + "graphics_id": "MAP_OBJ_GFX_ROCKET_M", "x": 16, "y": 12, "elevation": 3, @@ -63,10 +63,10 @@ "trainer_type": 1, "trainer_sight_or_berry_tree_id": 5, "script": "SilphCo_11F_EventScript_161F40", - "flag": "83" + "flag": "FLAG_HIDE_SILPH_ROCKETS" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 16, "y": 18, "elevation": 3, @@ -76,10 +76,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "SilphCo_11F_EventScript_1BEB58", - "flag": "457" + "flag": "FLAG_HIDE_SILPH_CO_11F_ZINC" }, { - "graphics_id": "49", + "graphics_id": "MAP_OBJ_GFX_ROCKET_M", "x": 2, "y": 19, "elevation": 3, @@ -89,7 +89,7 @@ "trainer_type": 1, "trainer_sight_or_berry_tree_id": 5, "script": "SilphCo_11F_EventScript_161F57", - "flag": "83" + "flag": "FLAG_HIDE_SILPH_ROCKETS" } ], "warp_events": [ @@ -121,7 +121,7 @@ "x": 5, "y": 15, "elevation": 3, - "var": "VAR_0x4060", + "var": "VAR_MAP_SCENE_SILPH_CO_11F", "var_value": 0, "script": "SilphCo_11F_EventScript_161E88" }, @@ -130,7 +130,7 @@ "x": 6, "y": 15, "elevation": 3, - "var": "VAR_0x4060", + "var": "VAR_MAP_SCENE_SILPH_CO_11F", "var_value": 0, "script": "SilphCo_11F_EventScript_161E94" } @@ -170,8 +170,9 @@ "y": 18, "elevation": 0, "item": "ITEM_REVIVE", - "flag": "144", - "unknown": 1 + "flag": "HIDDEN_ITEM_SILPH_CO_11F_REVIVE", + "quantity": 1, + "underfoot": false }, { "type": "bg_event_type_0", diff --git a/data/maps/SilphCo_11F/scripts.inc b/data/maps/SilphCo_11F/scripts.inc index 3eade43f5..292498c7b 100644 --- a/data/maps/SilphCo_11F/scripts.inc +++ b/data/maps/SilphCo_11F/scripts.inc @@ -3,27 +3,27 @@ SilphCo_11F_MapScripts:: @ 8161DEE .byte 0 SilphCo_11F_MapScript1_161DF4:: @ 8161DF4 - checkflag FLAG_0x28D - call_if 0, EventScript_1A8504 + checkflag FLAG_SILPH_11F_DOOR + call_if FALSE, EventScript_1A8504 end SilphCo_11F_EventScript_161DFE:: @ 8161DFE lock faceplayer - checkflag FLAG_0x250 - goto_if_eq EventScript_161E75 + checkflag FLAG_GOT_MASTER_BALL_FROM_SILPH + goto_if TRUE, EventScript_161E75 checkplayergender compare_var_to_value VAR_RESULT, 0 - call_if 1, EventScript_161E59 + call_if eq, EventScript_161E59 compare_var_to_value VAR_RESULT, 1 - call_if 1, EventScript_161E62 + call_if eq, EventScript_161E62 checkitemspace ITEM_MASTER_BALL, 1 compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_161E6B + goto_if eq, EventScript_161E6B additem ITEM_MASTER_BALL, 1 giveitemfanfaremsg gUnknown_8176FBD, ITEM_MASTER_BALL, 1, MUS_FAN5 msgbox gUnknown_8176FEB - setflag FLAG_0x250 + setflag FLAG_GOT_MASTER_BALL_FROM_SILPH release end @@ -73,11 +73,11 @@ EventScript_161EA0:: @ 8161EA0 msgbox gUnknown_8177108 closemessage compare_var_to_value VAR_0x4001, 0 - call_if 1, EventScript_161F00 + call_if eq, EventScript_161F00 compare_var_to_value VAR_0x4001, 1 - call_if 1, EventScript_161F12 + call_if eq, EventScript_161F12 setvar VAR_LAST_TALKED, 3 - trainerbattle 3, 349, 0, Text_1771AB + trainerbattle TRAINER_BATTLE_SINGLE_NO_INTRO_TEXT, TRAINER_BOSS_GIOVANNI_2, 0, Text_1771AB msgbox gUnknown_81771C2 closemessage fadescreen 1 @@ -85,9 +85,9 @@ EventScript_161EA0:: @ 8161EA0 removeobject 4 removeobject 6 fadescreen 0 - setvar VAR_0x4060, 1 - setflag FLAG_0x03E - clearflag FLAG_0x03F + setvar VAR_MAP_SCENE_SILPH_CO_11F, 1 + setflag FLAG_HIDE_SAFFRON_ROCKETS + clearflag FLAG_HIDE_SAFFRON_CIVILIANS releaseall end @@ -134,11 +134,11 @@ SilphCo_11F_EventScript_161F37:: @ 8161F37 end SilphCo_11F_EventScript_161F40:: @ 8161F40 - trainerbattle 0, 390, 0, Text_1772B8, Text_1772E7 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_TEAM_ROCKET_GRUNT_40, 0, Text_1772B8, Text_1772E7 msgbox gUnknown_81772F9, 6 end SilphCo_11F_EventScript_161F57:: @ 8161F57 - trainerbattle 0, 391, 0, Text_17726A, Text_17728C + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_TEAM_ROCKET_GRUNT_41, 0, Text_17726A, Text_17728C msgbox gUnknown_817729B, 6 end diff --git a/data/maps/SilphCo_1F/map.json b/data/maps/SilphCo_1F/map.json index d82ff755d..1adffa9bf 100644 --- a/data/maps/SilphCo_1F/map.json +++ b/data/maps/SilphCo_1F/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "48", + "graphics_id": "MAP_OBJ_GFX_WORKER_F", "x": 3, "y": 7, "elevation": 3, @@ -24,7 +24,7 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "SilphCo_1F_EventScript_16162F", - "flag": "63" + "flag": "FLAG_HIDE_SAFFRON_CIVILIANS" } ], "warp_events": [ diff --git a/data/maps/SilphCo_2F/map.json b/data/maps/SilphCo_2F/map.json index 13c6b8584..8abb2ed86 100644 --- a/data/maps/SilphCo_2F/map.json +++ b/data/maps/SilphCo_2F/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "49", + "graphics_id": "MAP_OBJ_GFX_ROCKET_M", "x": 29, "y": 12, "elevation": 3, @@ -24,10 +24,10 @@ "trainer_type": 1, "trainer_sight_or_berry_tree_id": 5, "script": "SilphCo_2F_EventScript_1616AE", - "flag": "83" + "flag": "FLAG_HIDE_SILPH_ROCKETS" }, { - "graphics_id": "55", + "graphics_id": "MAP_OBJ_GFX_SCIENTIST", "x": 28, "y": 18, "elevation": 3, @@ -37,10 +37,10 @@ "trainer_type": 1, "trainer_sight_or_berry_tree_id": 4, "script": "SilphCo_2F_EventScript_161680", - "flag": "83" + "flag": "FLAG_HIDE_SILPH_ROCKETS" }, { - "graphics_id": "49", + "graphics_id": "MAP_OBJ_GFX_ROCKET_M", "x": 20, "y": 14, "elevation": 3, @@ -50,10 +50,10 @@ "trainer_type": 1, "trainer_sight_or_berry_tree_id": 3, "script": "SilphCo_2F_EventScript_161697", - "flag": "83" + "flag": "FLAG_HIDE_SILPH_ROCKETS" }, { - "graphics_id": "55", + "graphics_id": "MAP_OBJ_GFX_SCIENTIST", "x": 5, "y": 19, "elevation": 3, @@ -63,10 +63,10 @@ "trainer_type": 1, "trainer_sight_or_berry_tree_id": 0, "script": "SilphCo_2F_EventScript_161669", - "flag": "83" + "flag": "FLAG_HIDE_SILPH_ROCKETS" }, { - "graphics_id": "28", + "graphics_id": "MAP_OBJ_GFX_WOMAN_2", "x": 10, "y": 4, "elevation": 0, @@ -193,9 +193,10 @@ "x": 11, "y": 21, "elevation": 0, - "item": "POCKET_KEY_ITEMS", - "flag": "135", - "unknown": 1 + "item": "ITEM_ULTRA_BALL", + "flag": "HIDDEN_ITEM_SILPH_CO_2F_ULTRA_BALL", + "quantity": 1, + "underfoot": false }, { "type": "bg_event_type_0", diff --git a/data/maps/SilphCo_2F/scripts.inc b/data/maps/SilphCo_2F/scripts.inc index 309ee5d13..1d08e777b 100644 --- a/data/maps/SilphCo_2F/scripts.inc +++ b/data/maps/SilphCo_2F/scripts.inc @@ -3,10 +3,10 @@ SilphCo_2F_MapScripts:: @ 8161641 .byte 0 SilphCo_2F_MapScript1_161647:: @ 8161647 - checkflag FLAG_0x27A - call_if 0, EventScript_1A8149 - checkflag FLAG_0x27B - call_if 0, EventScript_1A8177 + checkflag FLAG_SILPH_2F_DOOR_1 + call_if FALSE, EventScript_1A8149 + checkflag FLAG_SILPH_2F_DOOR_2 + call_if FALSE, EventScript_1A8177 end SilphCo_2F_EventScript_16165A:: @ 816165A @@ -20,21 +20,21 @@ SilphCo_2F_EventScript_161660:: @ 8161660 end SilphCo_2F_EventScript_161669:: @ 8161669 - trainerbattle 0, 336, 0, Text_175562, Text_17557E + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_SCIENTIST_CONNOR, 0, Text_175562, Text_17557E msgbox gUnknown_817559F, 6 end SilphCo_2F_EventScript_161680:: @ 8161680 - trainerbattle 0, 337, 0, Text_1755C6, Text_1755E5 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_SCIENTIST_JERRY, 0, Text_1755C6, Text_1755E5 msgbox gUnknown_81755F2, 6 end SilphCo_2F_EventScript_161697:: @ 8161697 - trainerbattle 0, 373, 0, Text_17562D, Text_17564A + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_TEAM_ROCKET_GRUNT_23, 0, Text_17562D, Text_17564A msgbox gUnknown_8175651, 6 end SilphCo_2F_EventScript_1616AE:: @ 81616AE - trainerbattle 0, 374, 0, Text_1756AD, Text_1756D8 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_TEAM_ROCKET_GRUNT_24, 0, Text_1756AD, Text_1756D8 msgbox gUnknown_81756E2, 6 end diff --git a/data/maps/SilphCo_3F/map.json b/data/maps/SilphCo_3F/map.json index 99ef61e01..ced5b0efa 100644 --- a/data/maps/SilphCo_3F/map.json +++ b/data/maps/SilphCo_3F/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "49", + "graphics_id": "MAP_OBJ_GFX_ROCKET_M", "x": 25, "y": 9, "elevation": 3, @@ -24,10 +24,10 @@ "trainer_type": 1, "trainer_sight_or_berry_tree_id": 3, "script": "SilphCo_3F_EventScript_16171F", - "flag": "83" + "flag": "FLAG_HIDE_SILPH_ROCKETS" }, { - "graphics_id": "47", + "graphics_id": "MAP_OBJ_GFX_WORKER_M", "x": 31, "y": 13, "elevation": 3, @@ -40,7 +40,7 @@ "flag": "0" }, { - "graphics_id": "55", + "graphics_id": "MAP_OBJ_GFX_SCIENTIST", "x": 4, "y": 12, "elevation": 3, @@ -50,10 +50,10 @@ "trainer_type": 1, "trainer_sight_or_berry_tree_id": 0, "script": "SilphCo_3F_EventScript_161708", - "flag": "83" + "flag": "FLAG_HIDE_SILPH_ROCKETS" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 8, "y": 10, "elevation": 3, @@ -63,7 +63,7 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "SilphCo_3F_EventScript_1BE866", - "flag": "396" + "flag": "FLAG_HIDE_SILPH_CO_3F_HYPER_POTION" } ], "warp_events": [ @@ -202,8 +202,9 @@ "y": 18, "elevation": 0, "item": "ITEM_PROTEIN", - "flag": "136", - "unknown": 1 + "flag": "HIDDEN_ITEM_SILPH_CO_3F_PROTEIN", + "quantity": 1, + "underfoot": false }, { "type": "bg_event_type_0", diff --git a/data/maps/SilphCo_3F/scripts.inc b/data/maps/SilphCo_3F/scripts.inc index d4b7458ce..8187e8e45 100644 --- a/data/maps/SilphCo_3F/scripts.inc +++ b/data/maps/SilphCo_3F/scripts.inc @@ -3,17 +3,17 @@ SilphCo_3F_MapScripts:: @ 81616C5 .byte 0 SilphCo_3F_MapScript1_1616CB:: @ 81616CB - checkflag FLAG_0x27C - call_if 0, EventScript_1A81A5 - checkflag FLAG_0x27D - call_if 0, EventScript_1A81DC + checkflag FLAG_SILPH_3F_DOOR_1 + call_if FALSE, EventScript_1A81A5 + checkflag FLAG_SILPH_3F_DOOR_2 + call_if FALSE, EventScript_1A81DC end SilphCo_3F_EventScript_1616DE:: @ 81616DE lock faceplayer - compare_var_to_value VAR_0x4060, 1 - goto_if 4, EventScript_1616F5 + compare_var_to_value VAR_MAP_SCENE_SILPH_CO_11F, 1 + goto_if ge, EventScript_1616F5 msgbox gUnknown_81758AD release end @@ -28,11 +28,11 @@ SilphCo_3F_EventScript_1616FF:: @ 81616FF end SilphCo_3F_EventScript_161708:: @ 8161708 - trainerbattle 0, 338, 0, Text_175948, Text_17597D + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_SCIENTIST_JOSE, 0, Text_175948, Text_17597D msgbox gUnknown_8175990, 6 end SilphCo_3F_EventScript_16171F:: @ 816171F - trainerbattle 0, 375, 0, Text_1758F6, Text_175911 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_TEAM_ROCKET_GRUNT_25, 0, Text_1758F6, Text_175911 msgbox gUnknown_817591C, 6 end diff --git a/data/maps/SilphCo_4F/map.json b/data/maps/SilphCo_4F/map.json index aed1bd4a5..37566a737 100644 --- a/data/maps/SilphCo_4F/map.json +++ b/data/maps/SilphCo_4F/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "49", + "graphics_id": "MAP_OBJ_GFX_ROCKET_M", "x": 33, "y": 16, "elevation": 3, @@ -24,10 +24,10 @@ "trainer_type": 1, "trainer_sight_or_berry_tree_id": 1, "script": "SilphCo_4F_EventScript_1617A7", - "flag": "83" + "flag": "FLAG_HIDE_SILPH_ROCKETS" }, { - "graphics_id": "49", + "graphics_id": "MAP_OBJ_GFX_ROCKET_M", "x": 10, "y": 19, "elevation": 3, @@ -37,10 +37,10 @@ "trainer_type": 1, "trainer_sight_or_berry_tree_id": 5, "script": "SilphCo_4F_EventScript_161790", - "flag": "83" + "flag": "FLAG_HIDE_SILPH_ROCKETS" }, { - "graphics_id": "55", + "graphics_id": "MAP_OBJ_GFX_SCIENTIST", "x": 14, "y": 8, "elevation": 3, @@ -50,10 +50,10 @@ "trainer_type": 1, "trainer_sight_or_berry_tree_id": 2, "script": "SilphCo_4F_EventScript_161779", - "flag": "83" + "flag": "FLAG_HIDE_SILPH_ROCKETS" }, { - "graphics_id": "47", + "graphics_id": "MAP_OBJ_GFX_WORKER_M", "x": 5, "y": 5, "elevation": 3, @@ -66,7 +66,7 @@ "flag": "0" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 3, "y": 11, "elevation": 3, @@ -76,10 +76,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "SilphCo_4F_EventScript_1BE873", - "flag": "397" + "flag": "FLAG_HIDE_SILPH_CO_4F_MAX_REVIVE" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 4, "y": 12, "elevation": 3, @@ -89,10 +89,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "SilphCo_4F_EventScript_1BE880", - "flag": "398" + "flag": "FLAG_HIDE_SILPH_CO_4F_ESCAPE_ROPE" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 2, "y": 13, "elevation": 3, @@ -102,10 +102,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "SilphCo_4F_EventScript_1BE88D", - "flag": "399" + "flag": "FLAG_HIDE_SILPH_CO_4F_FULL_HEAL" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 30, "y": 18, "elevation": 0, @@ -115,7 +115,7 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "SilphCo_4F_EventScript_1BEE09", - "flag": "510" + "flag": "FLAG_HIDE_SILPH_CO_4F_TM41" } ], "warp_events": [ @@ -233,8 +233,9 @@ "y": 20, "elevation": 0, "item": "ITEM_IRON", - "flag": "137", - "unknown": 1 + "flag": "HIDDEN_ITEM_SILPH_CO_4F_IRON", + "quantity": 1, + "underfoot": false }, { "type": "bg_event_type_0", diff --git a/data/maps/SilphCo_4F/scripts.inc b/data/maps/SilphCo_4F/scripts.inc index 884f2e410..176b6a4d3 100644 --- a/data/maps/SilphCo_4F/scripts.inc +++ b/data/maps/SilphCo_4F/scripts.inc @@ -3,17 +3,17 @@ SilphCo_4F_MapScripts:: @ 8161736 .byte 0 SilphCo_4F_MapScript1_16173C:: @ 816173C - checkflag FLAG_0x27E - call_if 0, EventScript_1A8213 - checkflag FLAG_0x27F - call_if 0, EventScript_1A8241 + checkflag FLAG_SILPH_4F_DOOR_1 + call_if FALSE, EventScript_1A8213 + checkflag FLAG_SILPH_4F_DOOR_2 + call_if FALSE, EventScript_1A8241 end SilphCo_4F_EventScript_16174F:: @ 816174F lock faceplayer - compare_var_to_value VAR_0x4060, 1 - goto_if 4, EventScript_161766 + compare_var_to_value VAR_MAP_SCENE_SILPH_CO_11F, 1 + goto_if ge, EventScript_161766 msgbox gUnknown_81759F5 release end @@ -28,16 +28,16 @@ SilphCo_4F_EventScript_161770:: @ 8161770 end SilphCo_4F_EventScript_161779:: @ 8161779 - trainerbattle 0, 339, 0, Text_175A90, Text_175AB0 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_SCIENTIST_RODNEY, 0, Text_175A90, Text_175AB0 msgbox gUnknown_8175AC8, 6 end SilphCo_4F_EventScript_161790:: @ 8161790 - trainerbattle 0, 376, 0, Text_175A2F, Text_175A5B + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_TEAM_ROCKET_GRUNT_26, 0, Text_175A2F, Text_175A5B msgbox gUnknown_8175A62, 6 end SilphCo_4F_EventScript_1617A7:: @ 81617A7 - trainerbattle 0, 377, 0, Text_175B19, Text_175B2B + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_TEAM_ROCKET_GRUNT_27, 0, Text_175B19, Text_175B2B msgbox gUnknown_8175B38, 6 end diff --git a/data/maps/SilphCo_5F/map.json b/data/maps/SilphCo_5F/map.json index 5582db2ca..0391f0718 100644 --- a/data/maps/SilphCo_5F/map.json +++ b/data/maps/SilphCo_5F/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "49", + "graphics_id": "MAP_OBJ_GFX_ROCKET_M", "x": 35, "y": 7, "elevation": 3, @@ -24,10 +24,10 @@ "trainer_type": 1, "trainer_sight_or_berry_tree_id": 2, "script": "SilphCo_5F_EventScript_161853", - "flag": "83" + "flag": "FLAG_HIDE_SILPH_ROCKETS" }, { - "graphics_id": "26", + "graphics_id": "MAP_OBJ_GFX_ROCKER", "x": 23, "y": 13, "elevation": 3, @@ -37,10 +37,10 @@ "trainer_type": 1, "trainer_sight_or_berry_tree_id": 4, "script": "SilphCo_5F_EventScript_16186A", - "flag": "83" + "flag": "FLAG_HIDE_SILPH_ROCKETS" }, { - "graphics_id": "47", + "graphics_id": "MAP_OBJ_GFX_WORKER_M", "x": 16, "y": 13, "elevation": 3, @@ -53,7 +53,7 @@ "flag": "0" }, { - "graphics_id": "55", + "graphics_id": "MAP_OBJ_GFX_SCIENTIST", "x": 11, "y": 6, "elevation": 3, @@ -63,10 +63,10 @@ "trainer_type": 1, "trainer_sight_or_berry_tree_id": 1, "script": "SilphCo_5F_EventScript_161825", - "flag": "83" + "flag": "FLAG_HIDE_SILPH_ROCKETS" }, { - "graphics_id": "49", + "graphics_id": "MAP_OBJ_GFX_ROCKET_M", "x": 9, "y": 21, "elevation": 3, @@ -76,10 +76,10 @@ "trainer_type": 1, "trainer_sight_or_berry_tree_id": 3, "script": "SilphCo_5F_EventScript_16183C", - "flag": "83" + "flag": "FLAG_HIDE_SILPH_ROCKETS" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 4, "y": 9, "elevation": 3, @@ -89,10 +89,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "SilphCo_5F_EventScript_1BE89A", - "flag": "400" + "flag": "FLAG_HIDE_SILPH_CO_5F_PROTEIN" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 1, "y": 18, "elevation": 3, @@ -102,10 +102,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "SilphCo_5F_EventScript_1BE8A7", - "flag": "401" + "flag": "FLAG_HIDE_SILPH_CO_5F_TM01" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 22, "y": 21, "elevation": 3, @@ -115,10 +115,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "SilphCo_5F_EventScript_1BE8B4", - "flag": "402" + "flag": "FLAG_HIDE_SILPH_CO_5F_CARD_KEY" }, { - "graphics_id": "55", + "graphics_id": "MAP_OBJ_GFX_SCIENTIST", "x": 2, "y": 7, "elevation": 3, @@ -190,8 +190,9 @@ "y": 16, "elevation": 0, "item": "ITEM_ELIXIR", - "flag": "24", - "unknown": 1 + "flag": "HIDDEN_ITEM_SILPH_CO_5F_ELIXIR", + "quantity": 1, + "underfoot": false }, { "type": "bg_event_type_0", @@ -304,8 +305,9 @@ "y": 9, "elevation": 0, "item": "ITEM_PP_UP", - "flag": "138", - "unknown": 1 + "flag": "HIDDEN_ITEM_SILPH_CO_5F_PP_UP", + "quantity": 1, + "underfoot": false }, { "type": "bg_event_type_0", diff --git a/data/maps/SilphCo_5F/scripts.inc b/data/maps/SilphCo_5F/scripts.inc index e17c791b9..a87e88d33 100644 --- a/data/maps/SilphCo_5F/scripts.inc +++ b/data/maps/SilphCo_5F/scripts.inc @@ -3,19 +3,19 @@ SilphCo_5F_MapScripts:: @ 81617BE .byte 0 SilphCo_5F_MapScript1_1617C4:: @ 81617C4 - checkflag FLAG_0x280 - call_if 0, EventScript_1A826F - checkflag FLAG_0x281 - call_if 0, EventScript_1A82A6 - checkflag FLAG_0x282 - call_if 0, EventScript_1A82DD + checkflag FLAG_SILPH_5F_DOOR_1 + call_if FALSE, EventScript_1A826F + checkflag FLAG_SILPH_5F_DOOR_2 + call_if FALSE, EventScript_1A82A6 + checkflag FLAG_SILPH_5F_DOOR_3 + call_if FALSE, EventScript_1A82DD end SilphCo_5F_EventScript_1617E0:: @ 81617E0 lock faceplayer - compare_var_to_value VAR_0x4060, 1 - goto_if 4, EventScript_1617F7 + compare_var_to_value VAR_MAP_SCENE_SILPH_CO_11F, 1 + goto_if ge, EventScript_1617F7 msgbox gUnknown_8175B70 release end @@ -42,21 +42,21 @@ SilphCo_5F_EventScript_16181C:: @ 816181C end SilphCo_5F_EventScript_161825:: @ 8161825 - trainerbattle 0, 340, 0, Text_175C40, Text_175C6D + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_SCIENTIST_BEAU, 0, Text_175C40, Text_175C6D msgbox gUnknown_8175C7D, 6 end SilphCo_5F_EventScript_16183C:: @ 816183C - trainerbattle 0, 378, 0, Text_175BE5, Text_175C09 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_TEAM_ROCKET_GRUNT_28, 0, Text_175BE5, Text_175C09 msgbox gUnknown_8175C0F, 6 end SilphCo_5F_EventScript_161853:: @ 8161853 - trainerbattle 0, 379, 0, Text_175D28, Text_175D4B + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_TEAM_ROCKET_GRUNT_29, 0, Text_175D28, Text_175D4B msgbox gUnknown_8175D59, 6 end SilphCo_5F_EventScript_16186A:: @ 816186A - trainerbattle 0, 286, 0, Text_175CBD, Text_175CEB + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_JUGGLER_DALTON, 0, Text_175CBD, Text_175CEB msgbox gUnknown_8175CF9, 6 end diff --git a/data/maps/SilphCo_6F/map.json b/data/maps/SilphCo_6F/map.json index 2d057a7c2..bdb8020b4 100644 --- a/data/maps/SilphCo_6F/map.json +++ b/data/maps/SilphCo_6F/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "49", + "graphics_id": "MAP_OBJ_GFX_ROCKET_M", "x": 21, "y": 5, "elevation": 3, @@ -24,10 +24,10 @@ "trainer_type": 1, "trainer_sight_or_berry_tree_id": 2, "script": "SilphCo_6F_EventScript_161956", - "flag": "83" + "flag": "FLAG_HIDE_SILPH_ROCKETS" }, { - "graphics_id": "47", + "graphics_id": "MAP_OBJ_GFX_WORKER_M", "x": 23, "y": 9, "elevation": 3, @@ -40,7 +40,7 @@ "flag": "0" }, { - "graphics_id": "48", + "graphics_id": "MAP_OBJ_GFX_WORKER_F", "x": 24, "y": 9, "elevation": 3, @@ -53,7 +53,7 @@ "flag": "0" }, { - "graphics_id": "47", + "graphics_id": "MAP_OBJ_GFX_WORKER_M", "x": 22, "y": 13, "elevation": 3, @@ -66,7 +66,7 @@ "flag": "0" }, { - "graphics_id": "47", + "graphics_id": "MAP_OBJ_GFX_WORKER_M", "x": 14, "y": 9, "elevation": 3, @@ -79,7 +79,7 @@ "flag": "0" }, { - "graphics_id": "48", + "graphics_id": "MAP_OBJ_GFX_WORKER_F", "x": 16, "y": 12, "elevation": 3, @@ -92,7 +92,7 @@ "flag": "0" }, { - "graphics_id": "55", + "graphics_id": "MAP_OBJ_GFX_SCIENTIST", "x": 9, "y": 11, "elevation": 3, @@ -102,10 +102,10 @@ "trainer_type": 1, "trainer_sight_or_berry_tree_id": 4, "script": "SilphCo_6F_EventScript_16193F", - "flag": "83" + "flag": "FLAG_HIDE_SILPH_ROCKETS" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 2, "y": 14, "elevation": 3, @@ -115,10 +115,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "SilphCo_6F_EventScript_1BE8C1", - "flag": "403" + "flag": "FLAG_HIDE_SILPH_CO_6F_HP_UP" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 1, "y": 17, "elevation": 3, @@ -128,10 +128,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "SilphCo_6F_EventScript_1BE8CE", - "flag": "404" + "flag": "FLAG_HIDE_SILPH_CO_6F_X_SPECIAL" }, { - "graphics_id": "49", + "graphics_id": "MAP_OBJ_GFX_ROCKET_M", "x": 18, "y": 17, "elevation": 3, @@ -141,7 +141,7 @@ "trainer_type": 1, "trainer_sight_or_berry_tree_id": 2, "script": "SilphCo_6F_EventScript_16196D", - "flag": "83" + "flag": "FLAG_HIDE_SILPH_ROCKETS" } ], "warp_events": [ @@ -217,8 +217,9 @@ "y": 8, "elevation": 0, "item": "ITEM_CARBOS", - "flag": "139", - "unknown": 1 + "flag": "HIDDEN_ITEM_SILPH_CO_6F_CARBOS", + "quantity": 1, + "underfoot": false }, { "type": "bg_event_type_0", diff --git a/data/maps/SilphCo_6F/scripts.inc b/data/maps/SilphCo_6F/scripts.inc index caeedd216..fd4d470eb 100644 --- a/data/maps/SilphCo_6F/scripts.inc +++ b/data/maps/SilphCo_6F/scripts.inc @@ -3,15 +3,15 @@ SilphCo_6F_MapScripts:: @ 8161881 .byte 0 SilphCo_6F_MapScript1_161887:: @ 8161887 - checkflag FLAG_0x283 - call_if 0, EventScript_1A8314 + checkflag FLAG_SILPH_6F_DOOR + call_if FALSE, EventScript_1A8314 end SilphCo_6F_EventScript_161891:: @ 8161891 lock faceplayer - compare_var_to_value VAR_0x4060, 1 - goto_if 4, EventScript_1618A8 + compare_var_to_value VAR_MAP_SCENE_SILPH_CO_11F, 1 + goto_if ge, EventScript_1618A8 msgbox gUnknown_817607E release end @@ -24,8 +24,8 @@ EventScript_1618A8:: @ 81618A8 SilphCo_6F_EventScript_1618B2:: @ 81618B2 lock faceplayer - compare_var_to_value VAR_0x4060, 1 - goto_if 4, EventScript_1618C9 + compare_var_to_value VAR_MAP_SCENE_SILPH_CO_11F, 1 + goto_if ge, EventScript_1618C9 msgbox gUnknown_8175F24 release end @@ -38,8 +38,8 @@ EventScript_1618C9:: @ 81618C9 SilphCo_6F_EventScript_1618D3:: @ 81618D3 lock faceplayer - compare_var_to_value VAR_0x4060, 1 - goto_if 4, EventScript_1618EA + compare_var_to_value VAR_MAP_SCENE_SILPH_CO_11F, 1 + goto_if ge, EventScript_1618EA msgbox gUnknown_8175F70 release end @@ -52,8 +52,8 @@ EventScript_1618EA:: @ 81618EA SilphCo_6F_EventScript_1618F4:: @ 81618F4 lock faceplayer - compare_var_to_value VAR_0x4060, 1 - goto_if 4, EventScript_16190B + compare_var_to_value VAR_MAP_SCENE_SILPH_CO_11F, 1 + goto_if ge, EventScript_16190B msgbox gUnknown_8175FAA release end @@ -66,8 +66,8 @@ EventScript_16190B:: @ 816190B SilphCo_6F_EventScript_161915:: @ 8161915 lock faceplayer - compare_var_to_value VAR_0x4060, 1 - goto_if 4, EventScript_16192C + compare_var_to_value VAR_MAP_SCENE_SILPH_CO_11F, 1 + goto_if ge, EventScript_16192C msgbox gUnknown_8176012 release end @@ -82,16 +82,16 @@ SilphCo_6F_EventScript_161936:: @ 8161936 end SilphCo_6F_EventScript_16193F:: @ 816193F - trainerbattle 0, 341, 0, Text_176136, Text_1761BD + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_SCIENTIST_TAYLOR, 0, Text_176136, Text_1761BD msgbox gUnknown_81761C4, 6 end SilphCo_6F_EventScript_161956:: @ 8161956 - trainerbattle 0, 380, 0, Text_1760DE, Text_176104 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_TEAM_ROCKET_GRUNT_30, 0, Text_1760DE, Text_176104 msgbox gUnknown_817610F, 6 end SilphCo_6F_EventScript_16196D:: @ 816196D - trainerbattle 0, 381, 0, Text_1761F1, Text_17620E + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_TEAM_ROCKET_GRUNT_31, 0, Text_1761F1, Text_17620E msgbox gUnknown_817621B, 6 end diff --git a/data/maps/SilphCo_7F/map.json b/data/maps/SilphCo_7F/map.json index e106c5ad8..fcaeaef00 100644 --- a/data/maps/SilphCo_7F/map.json +++ b/data/maps/SilphCo_7F/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "72", + "graphics_id": "MAP_OBJ_GFX_BLUE", "x": 2, "y": 6, "elevation": 3, @@ -24,10 +24,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "0x0", - "flag": "78" + "flag": "FLAG_HIDE_SILPH_RIVAL" }, { - "graphics_id": "47", + "graphics_id": "MAP_OBJ_GFX_WORKER_M", "x": 0, "y": 7, "elevation": 3, @@ -40,7 +40,7 @@ "flag": "0" }, { - "graphics_id": "49", + "graphics_id": "MAP_OBJ_GFX_ROCKET_M", "x": 24, "y": 5, "elevation": 3, @@ -50,10 +50,10 @@ "trainer_type": 1, "trainer_sight_or_berry_tree_id": 4, "script": "SilphCo_7F_EventScript_161C1A", - "flag": "83" + "flag": "FLAG_HIDE_SILPH_ROCKETS" }, { - "graphics_id": "49", + "graphics_id": "MAP_OBJ_GFX_ROCKET_M", "x": 24, "y": 15, "elevation": 3, @@ -63,10 +63,10 @@ "trainer_type": 1, "trainer_sight_or_berry_tree_id": 2, "script": "SilphCo_7F_EventScript_161C31", - "flag": "83" + "flag": "FLAG_HIDE_SILPH_ROCKETS" }, { - "graphics_id": "49", + "graphics_id": "MAP_OBJ_GFX_ROCKET_M", "x": 13, "y": 4, "elevation": 3, @@ -76,10 +76,10 @@ "trainer_type": 1, "trainer_sight_or_berry_tree_id": 3, "script": "SilphCo_7F_EventScript_161C48", - "flag": "83" + "flag": "FLAG_HIDE_SILPH_ROCKETS" }, { - "graphics_id": "48", + "graphics_id": "MAP_OBJ_GFX_WORKER_F", "x": 10, "y": 10, "elevation": 3, @@ -92,7 +92,7 @@ "flag": "0" }, { - "graphics_id": "47", + "graphics_id": "MAP_OBJ_GFX_WORKER_M", "x": 13, "y": 14, "elevation": 3, @@ -105,7 +105,7 @@ "flag": "0" }, { - "graphics_id": "47", + "graphics_id": "MAP_OBJ_GFX_WORKER_M", "x": 9, "y": 14, "elevation": 3, @@ -118,7 +118,7 @@ "flag": "0" }, { - "graphics_id": "55", + "graphics_id": "MAP_OBJ_GFX_SCIENTIST", "x": 3, "y": 13, "elevation": 3, @@ -128,10 +128,10 @@ "trainer_type": 1, "trainer_sight_or_berry_tree_id": 1, "script": "SilphCo_7F_EventScript_161C03", - "flag": "83" + "flag": "FLAG_HIDE_SILPH_ROCKETS" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 0, "y": 12, "elevation": 3, @@ -141,10 +141,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "SilphCo_7F_EventScript_1BE8DB", - "flag": "405" + "flag": "FLAG_HIDE_SILPH_CO_7F_CALCIUM" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 30, "y": 11, "elevation": 3, @@ -154,7 +154,7 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "SilphCo_7F_EventScript_1BE8E8", - "flag": "406" + "flag": "FLAG_HIDE_SILPH_CO_7F_TM08" } ], "warp_events": [ @@ -207,7 +207,7 @@ "x": 2, "y": 4, "elevation": 3, - "var": "VAR_0x405C", + "var": "VAR_MAP_SCENE_SILPH_CO_7F", "var_value": 0, "script": "SilphCo_7F_EventScript_1619BC" }, @@ -216,7 +216,7 @@ "x": 2, "y": 5, "elevation": 3, - "var": "VAR_0x405C", + "var": "VAR_MAP_SCENE_SILPH_CO_7F", "var_value": 0, "script": "SilphCo_7F_EventScript_1619C8" } @@ -312,8 +312,9 @@ "y": 11, "elevation": 0, "item": "ITEM_ZINC", - "flag": "140", - "unknown": 1 + "flag": "HIDDEN_ITEM_SILPH_CO_7F_ZINC", + "quantity": 1, + "underfoot": false }, { "type": "bg_event_type_0", diff --git a/data/maps/SilphCo_7F/scripts.inc b/data/maps/SilphCo_7F/scripts.inc index 22fd4114c..8f1fa6648 100644 --- a/data/maps/SilphCo_7F/scripts.inc +++ b/data/maps/SilphCo_7F/scripts.inc @@ -4,17 +4,17 @@ SilphCo_7F_MapScripts:: @ 8161984 .byte 0 SilphCo_7F_MapScript1_16198F:: @ 816198F - checkflag FLAG_0x284 - call_if 0, EventScript_1A834B - checkflag FLAG_0x285 - call_if 0, EventScript_1A8379 - checkflag FLAG_0x286 - call_if 0, EventScript_1A83A7 + checkflag FLAG_SILPH_7F_DOOR_1 + call_if FALSE, EventScript_1A834B + checkflag FLAG_SILPH_7F_DOOR_2 + call_if FALSE, EventScript_1A8379 + checkflag FLAG_SILPH_7F_DOOR_3 + call_if FALSE, EventScript_1A83A7 end SilphCo_7F_MapScript2_1619AB:: @ 81619AB - compare_var_to_value VAR_0x4060, 1 - call_if 4, EventScript_1619B7 + compare_var_to_value VAR_MAP_SCENE_SILPH_CO_11F, 1 + call_if ge, EventScript_1619B7 end EventScript_1619B7:: @ 81619B7 @@ -47,29 +47,29 @@ EventScript_1619D4:: @ 81619D4 waitmovement 0 msgbox gUnknown_8176710 compare_var_to_value VAR_0x4001, 0 - call_if 1, EventScript_161A73 + call_if eq, EventScript_161A73 compare_var_to_value VAR_0x4001, 1 - call_if 1, EventScript_161A7F + call_if eq, EventScript_161A7F msgbox gUnknown_8176727 setvar VAR_LAST_TALKED, 1 compare_var_to_value VAR_STARTER_MON, 2 - call_if 1, EventScript_161A80 + call_if eq, EventScript_161A80 compare_var_to_value VAR_STARTER_MON, 1 - call_if 1, EventScript_161A8B + call_if eq, EventScript_161A8B compare_var_to_value VAR_STARTER_MON, 0 - call_if 1, EventScript_161A96 + call_if eq, EventScript_161A96 msgbox gUnknown_8176827 closemessage playbgm MUS_RIVAL2, 0 compare_var_to_value VAR_0x4001, 0 - call_if 1, EventScript_161AA1 + call_if eq, EventScript_161AA1 compare_var_to_value VAR_0x4001, 1 - call_if 1, EventScript_161AAC + call_if eq, EventScript_161AAC playse SE_TK_WARPIN fadedefaultbgm removeobject 1 waitse - setvar VAR_0x405C, 1 + setvar VAR_MAP_SCENE_SILPH_CO_7F, 1 releaseall end @@ -83,15 +83,15 @@ EventScript_161A7F:: @ 8161A7F return EventScript_161A80:: @ 8161A80 - trainerbattle 3, 432, 0, Text_1767D0 + trainerbattle TRAINER_BATTLE_SINGLE_NO_INTRO_TEXT, TRAINER_RIVAL_SILPH_SQUIRTLE, 0, Text_1767D0 return EventScript_161A8B:: @ 8161A8B - trainerbattle 3, 433, 0, Text_1767D0 + trainerbattle TRAINER_BATTLE_SINGLE_NO_INTRO_TEXT, TRAINER_RIVAL_SILPH_BULBASAUR, 0, Text_1767D0 return EventScript_161A96:: @ 8161A96 - trainerbattle 3, 434, 0, Text_1767D0 + trainerbattle TRAINER_BATTLE_SINGLE_NO_INTRO_TEXT, TRAINER_RIVAL_SILPH_CHARMANDER, 0, Text_1767D0 return EventScript_161AA1:: @ 8161AA1 @@ -130,17 +130,17 @@ Movement_161ABF:: @ 8161ABF SilphCo_7F_EventScript_161AC8:: @ 8161AC8 lock faceplayer - checkflag FLAG_0x246 - goto_if_eq EventScript_161B8D + checkflag FLAG_GOT_LAPRAS_FROM_SILPH + goto_if TRUE, EventScript_161B8D msgbox gUnknown_8176266 setvar VAR_0x4001, SPECIES_LAPRAS givemon SPECIES_LAPRAS, 25, ITEM_NONE, 0, 0, 0 compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_161B12 + goto_if eq, EventScript_161B12 compare_var_to_value VAR_RESULT, 1 - goto_if_eq EventScript_161B45 + goto_if eq, EventScript_161B45 compare_var_to_value VAR_RESULT, 2 - goto_if_eq EventScript_1A927C + goto_if eq, EventScript_1A927C release end @@ -153,7 +153,7 @@ EventScript_161B12:: @ 8161B12 getspeciesname 0, SPECIES_LAPRAS msgbox gUnknown_81A56A7, MSGBOX_YESNO compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_161B7E + goto_if eq, EventScript_161B7E call EventScript_1A8C27 call EventScript_1A74EB goto EventScript_161B7E @@ -170,7 +170,7 @@ EventScript_161B45:: @ 8161B45 getspeciesname 0, SPECIES_LAPRAS msgbox gUnknown_81A56A7, MSGBOX_YESNO compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_161B73 + goto_if eq, EventScript_161B73 call EventScript_1A8C33 goto EventScript_161B73 @@ -187,7 +187,7 @@ EventScript_161B7D:: @ 8161B7D EventScript_161B7E:: @ 8161B7E textcolor 0 msgbox gUnknown_8176305 - setflag FLAG_0x246 + setflag FLAG_GOT_LAPRAS_FROM_SILPH release end @@ -199,8 +199,8 @@ EventScript_161B8D:: @ 8161B8D SilphCo_7F_EventScript_161B97:: @ 8161B97 lock faceplayer - compare_var_to_value VAR_0x4060, 1 - goto_if 4, EventScript_161BAE + compare_var_to_value VAR_MAP_SCENE_SILPH_CO_11F, 1 + goto_if ge, EventScript_161BAE msgbox gUnknown_8176444 release end @@ -213,8 +213,8 @@ EventScript_161BAE:: @ 8161BAE SilphCo_7F_EventScript_161BB8:: @ 8161BB8 lock faceplayer - compare_var_to_value VAR_0x4060, 1 - goto_if 4, EventScript_161BCF + compare_var_to_value VAR_MAP_SCENE_SILPH_CO_11F, 1 + goto_if ge, EventScript_161BCF msgbox gUnknown_81764C2 release end @@ -227,8 +227,8 @@ EventScript_161BCF:: @ 8161BCF SilphCo_7F_EventScript_161BD9:: @ 8161BD9 lock faceplayer - compare_var_to_value VAR_0x4060, 1 - goto_if 4, EventScript_161BF0 + compare_var_to_value VAR_MAP_SCENE_SILPH_CO_11F, 1 + goto_if ge, EventScript_161BF0 msgbox gUnknown_8176532 release end @@ -243,21 +243,21 @@ SilphCo_7F_EventScript_161BFA:: @ 8161BFA end SilphCo_7F_EventScript_161C03:: @ 8161C03 - trainerbattle 0, 342, 0, Text_1765E2, Text_17660C + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_SCIENTIST_JOSHUA, 0, Text_1765E2, Text_17660C msgbox gUnknown_8176616, 6 end SilphCo_7F_EventScript_161C1A:: @ 8161C1A - trainerbattle 0, 383, 0, Text_176643, Text_176669 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_TEAM_ROCKET_GRUNT_33, 0, Text_176643, Text_176669 msgbox gUnknown_8176681, 6 end SilphCo_7F_EventScript_161C31:: @ 8161C31 - trainerbattle 0, 384, 0, Text_1766B3, Text_1766D7 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_TEAM_ROCKET_GRUNT_34, 0, Text_1766B3, Text_1766D7 msgbox gUnknown_81766E5, 6 end SilphCo_7F_EventScript_161C48:: @ 8161C48 - trainerbattle 0, 385, 0, Text_176586, Text_1765A5 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_TEAM_ROCKET_GRUNT_35, 0, Text_176586, Text_1765A5 msgbox gUnknown_81765B1, 6 end diff --git a/data/maps/SilphCo_8F/map.json b/data/maps/SilphCo_8F/map.json index 437b935dd..05f29bbd3 100644 --- a/data/maps/SilphCo_8F/map.json +++ b/data/maps/SilphCo_8F/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "49", + "graphics_id": "MAP_OBJ_GFX_ROCKET_M", "x": 28, "y": 5, "elevation": 3, @@ -24,10 +24,10 @@ "trainer_type": 1, "trainer_sight_or_berry_tree_id": 4, "script": "SilphCo_8F_EventScript_161CB0", - "flag": "83" + "flag": "FLAG_HIDE_SILPH_ROCKETS" }, { - "graphics_id": "49", + "graphics_id": "MAP_OBJ_GFX_ROCKET_M", "x": 10, "y": 17, "elevation": 3, @@ -37,10 +37,10 @@ "trainer_type": 1, "trainer_sight_or_berry_tree_id": 5, "script": "SilphCo_8F_EventScript_161CC7", - "flag": "83" + "flag": "FLAG_HIDE_SILPH_ROCKETS" }, { - "graphics_id": "55", + "graphics_id": "MAP_OBJ_GFX_SCIENTIST", "x": 9, "y": 4, "elevation": 3, @@ -50,10 +50,10 @@ "trainer_type": 1, "trainer_sight_or_berry_tree_id": 2, "script": "SilphCo_8F_EventScript_161C99", - "flag": "83" + "flag": "FLAG_HIDE_SILPH_ROCKETS" }, { - "graphics_id": "47", + "graphics_id": "MAP_OBJ_GFX_WORKER_M", "x": 2, "y": 5, "elevation": 3, @@ -66,7 +66,7 @@ "flag": "0" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 24, "y": 8, "elevation": 3, @@ -76,10 +76,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "SilphCo_8F_EventScript_1BEB4B", - "flag": "456" + "flag": "FLAG_HIDE_SILPH_CO_8F_IRON" }, { - "graphics_id": "55", + "graphics_id": "MAP_OBJ_GFX_SCIENTIST", "x": 29, "y": 9, "elevation": 3, @@ -179,8 +179,9 @@ "y": 10, "elevation": 0, "item": "ITEM_NUGGET", - "flag": "141", - "unknown": 1 + "flag": "HIDDEN_ITEM_SILPH_CO_8F_NUGGET", + "quantity": 1, + "underfoot": false }, { "type": "bg_event_type_0", diff --git a/data/maps/SilphCo_8F/scripts.inc b/data/maps/SilphCo_8F/scripts.inc index 99112ee5e..30b19804b 100644 --- a/data/maps/SilphCo_8F/scripts.inc +++ b/data/maps/SilphCo_8F/scripts.inc @@ -3,15 +3,15 @@ SilphCo_8F_MapScripts:: @ 8161C5F .byte 0 SilphCo_8F_MapScript1_161C65:: @ 8161C65 - checkflag FLAG_0x287 - call_if 0, EventScript_1A83D5 + checkflag FLAG_SILPH_8F_DOOR + call_if FALSE, EventScript_1A83D5 end SilphCo_8F_EventScript_161C6F:: @ 8161C6F lock faceplayer - compare_var_to_value VAR_0x4060, 1 - goto_if 4, EventScript_161C86 + compare_var_to_value VAR_MAP_SCENE_SILPH_CO_11F, 1 + goto_if ge, EventScript_161C86 msgbox gUnknown_817696D release end @@ -26,16 +26,16 @@ SilphCo_8F_EventScript_161C90:: @ 8161C90 end SilphCo_8F_EventScript_161C99:: @ 8161C99 - trainerbattle 0, 343, 0, Text_1769FD, Text_176A19 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_SCIENTIST_PARKER, 0, Text_1769FD, Text_176A19 msgbox gUnknown_8176A26, 6 end SilphCo_8F_EventScript_161CB0:: @ 8161CB0 - trainerbattle 0, 382, 0, Text_1769A2, Text_1769BE + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_TEAM_ROCKET_GRUNT_32, 0, Text_1769A2, Text_1769BE msgbox gUnknown_81769CF, 6 end SilphCo_8F_EventScript_161CC7:: @ 8161CC7 - trainerbattle 0, 386, 0, Text_176A56, Text_176A7C + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_TEAM_ROCKET_GRUNT_36, 0, Text_176A56, Text_176A7C msgbox gUnknown_8176A90, 6 end diff --git a/data/maps/SilphCo_9F/map.json b/data/maps/SilphCo_9F/map.json index 026b8d83c..7d3227d08 100644 --- a/data/maps/SilphCo_9F/map.json +++ b/data/maps/SilphCo_9F/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "55", + "graphics_id": "MAP_OBJ_GFX_SCIENTIST", "x": 26, "y": 16, "elevation": 3, @@ -24,10 +24,10 @@ "trainer_type": 1, "trainer_sight_or_berry_tree_id": 2, "script": "SilphCo_9F_EventScript_161D41", - "flag": "83" + "flag": "FLAG_HIDE_SILPH_ROCKETS" }, { - "graphics_id": "49", + "graphics_id": "MAP_OBJ_GFX_ROCKET_M", "x": 15, "y": 18, "elevation": 3, @@ -37,10 +37,10 @@ "trainer_type": 1, "trainer_sight_or_berry_tree_id": 3, "script": "SilphCo_9F_EventScript_161D6F", - "flag": "83" + "flag": "FLAG_HIDE_SILPH_ROCKETS" }, { - "graphics_id": "28", + "graphics_id": "MAP_OBJ_GFX_WOMAN_2", "x": 2, "y": 16, "elevation": 0, @@ -53,7 +53,7 @@ "flag": "0" }, { - "graphics_id": "49", + "graphics_id": "MAP_OBJ_GFX_ROCKET_M", "x": 1, "y": 6, "elevation": 3, @@ -63,7 +63,7 @@ "trainer_type": 1, "trainer_sight_or_berry_tree_id": 5, "script": "SilphCo_9F_EventScript_161D58", - "flag": "83" + "flag": "FLAG_HIDE_SILPH_ROCKETS" } ], "warp_events": [ @@ -111,8 +111,9 @@ "y": 14, "elevation": 3, "item": "ITEM_MAX_POTION", - "flag": "25", - "unknown": 1 + "flag": "HIDDEN_ITEM_SILPH_CO_9F_MAX_POTION", + "quantity": 1, + "underfoot": false }, { "type": "bg_event_type_0", @@ -232,8 +233,9 @@ "y": 8, "elevation": 0, "item": "ITEM_CALCIUM", - "flag": "142", - "unknown": 1 + "flag": "HIDDEN_ITEM_SILPH_CO_9F_CALCIUM", + "quantity": 1, + "underfoot": false }, { "type": "bg_event_type_0", diff --git a/data/maps/SilphCo_9F/scripts.inc b/data/maps/SilphCo_9F/scripts.inc index 530ae7c1a..b19f5a182 100644 --- a/data/maps/SilphCo_9F/scripts.inc +++ b/data/maps/SilphCo_9F/scripts.inc @@ -3,24 +3,24 @@ SilphCo_9F_MapScripts:: @ 8161CDE .byte 0 SilphCo_9F_MapScript1_161CE4:: @ 8161CE4 - checkflag FLAG_0x288 - call_if 0, EventScript_1A840C - checkflag FLAG_0x289 - call_if 0, EventScript_1A8443 - checkflag FLAG_0x28A - call_if 0, EventScript_1A847A - checkflag FLAG_0x28B - call_if 0, EventScript_1A84A8 + checkflag FLAG_SILPH_9F_DOOR_1 + call_if FALSE, EventScript_1A840C + checkflag FLAG_SILPH_9F_DOOR_2 + call_if FALSE, EventScript_1A8443 + checkflag FLAG_SILPH_9F_DOOR_3 + call_if FALSE, EventScript_1A847A + checkflag FLAG_SILPH_9F_DOOR_4 + call_if FALSE, EventScript_1A84A8 end SilphCo_9F_EventScript_161D09:: @ 8161D09 lock faceplayer - compare_var_to_value VAR_0x4060, 1 - goto_if 4, EventScript_161D2E + compare_var_to_value VAR_MAP_SCENE_SILPH_CO_11F, 1 + goto_if ge, EventScript_161D2E msgbox gUnknown_8176B54 closemessage - call EventScript_1A6C26 + call EventScript_FadeOut_Heal_FadeIn msgbox gUnknown_8176B81 release end @@ -35,16 +35,16 @@ SilphCo_9F_EventScript_161D38:: @ 8161D38 end SilphCo_9F_EventScript_161D41:: @ 8161D41 - trainerbattle 0, 344, 0, Text_176BFB, Text_176C2B + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_SCIENTIST_ED, 0, Text_176BFB, Text_176C2B msgbox gUnknown_8176C3C, 6 end SilphCo_9F_EventScript_161D58:: @ 8161D58 - trainerbattle 0, 387, 0, Text_176BA3, Text_176BC8 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_TEAM_ROCKET_GRUNT_37, 0, Text_176BA3, Text_176BC8 msgbox gUnknown_8176BD0, 6 end SilphCo_9F_EventScript_161D6F:: @ 8161D6F - trainerbattle 0, 388, 0, Text_176C7A, Text_176CA0 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_TEAM_ROCKET_GRUNT_38, 0, Text_176C7A, Text_176CA0 msgbox gUnknown_8176CB8, 6 end diff --git a/data/maps/SilphCo_Elevator/scripts.inc b/data/maps/SilphCo_Elevator/scripts.inc index d36334429..4d75eec38 100644 --- a/data/maps/SilphCo_Elevator/scripts.inc +++ b/data/maps/SilphCo_Elevator/scripts.inc @@ -4,15 +4,15 @@ SilphCo_Elevator_MapScripts:: @ 8161F6E SilphCo_Elevator_EventScript_161F6F:: @ 8161F6F lockall setvar VAR_0x8004, 1 - checkflag FLAG_0x002 - call_if 0, EventScript_1A7AB9 - copyvar VAR_0x8005, VAR_0x403A - special sub_80CB580 + checkflag FLAG_TEMP_2 + call_if FALSE, EventScript_1A7AB9 + copyvar VAR_0x8005, VAR_ELEVATOR_FLOOR + special Special_DrawElevatorCurrentFloorWindow message Text_1A535C waitmessage setvar VAR_0x8004, 1 - specialvar VAR_RESULT, sub_80CB328 - special sub_80CB7C4 + specialvar VAR_RESULT, Special_InitElevatorFloorSelectMenuPos + special Special_ListMenu waitstate switch VAR_RESULT case 0, EventScript_1621BF @@ -33,10 +33,10 @@ SilphCo_Elevator_EventScript_161F6F:: @ 8161F6F EventScript_16202F:: @ 816202F setvar VAR_0x8006, 4 setdynamicwarp MAP_SILPH_CO_1F, 255, 22, 3 - compare_var_to_value VAR_0x403A, 4 - goto_if_eq EventScript_1621E7 + compare_var_to_value VAR_ELEVATOR_FLOOR, 4 + goto_if eq, EventScript_1621E7 call EventScript_1621EC - setvar VAR_0x403A, 4 + setvar VAR_ELEVATOR_FLOOR, 4 goto EventScript_1621E7 EventScript_162056:: @ 8162056 @@ -45,10 +45,10 @@ EventScript_162056:: @ 8162056 EventScript_162057:: @ 8162057 setvar VAR_0x8006, 5 setdynamicwarp MAP_SILPH_CO_2F, 255, 22, 3 - compare_var_to_value VAR_0x403A, 5 - goto_if_eq EventScript_1621E7 + compare_var_to_value VAR_ELEVATOR_FLOOR, 5 + goto_if eq, EventScript_1621E7 call EventScript_1621EC - setvar VAR_0x403A, 5 + setvar VAR_ELEVATOR_FLOOR, 5 goto EventScript_1621E7 EventScript_16207E:: @ 816207E @@ -57,10 +57,10 @@ EventScript_16207E:: @ 816207E EventScript_16207F:: @ 816207F setvar VAR_0x8006, 6 setdynamicwarp MAP_SILPH_CO_3F, 255, 22, 3 - compare_var_to_value VAR_0x403A, 6 - goto_if_eq EventScript_1621E7 + compare_var_to_value VAR_ELEVATOR_FLOOR, 6 + goto_if eq, EventScript_1621E7 call EventScript_1621EC - setvar VAR_0x403A, 6 + setvar VAR_ELEVATOR_FLOOR, 6 goto EventScript_1621E7 EventScript_1620A6:: @ 81620A6 @@ -69,10 +69,10 @@ EventScript_1620A6:: @ 81620A6 EventScript_1620A7:: @ 81620A7 setvar VAR_0x8006, 7 setdynamicwarp MAP_SILPH_CO_4F, 255, 22, 3 - compare_var_to_value VAR_0x403A, 7 - goto_if_eq EventScript_1621E7 + compare_var_to_value VAR_ELEVATOR_FLOOR, 7 + goto_if eq, EventScript_1621E7 call EventScript_1621EC - setvar VAR_0x403A, 7 + setvar VAR_ELEVATOR_FLOOR, 7 goto EventScript_1621E7 EventScript_1620CE:: @ 81620CE @@ -81,10 +81,10 @@ EventScript_1620CE:: @ 81620CE EventScript_1620CF:: @ 81620CF setvar VAR_0x8006, 8 setdynamicwarp MAP_SILPH_CO_5F, 255, 22, 3 - compare_var_to_value VAR_0x403A, 8 - goto_if_eq EventScript_1621E7 + compare_var_to_value VAR_ELEVATOR_FLOOR, 8 + goto_if eq, EventScript_1621E7 call EventScript_1621EC - setvar VAR_0x403A, 8 + setvar VAR_ELEVATOR_FLOOR, 8 goto EventScript_1621E7 EventScript_1620F6:: @ 81620F6 @@ -93,10 +93,10 @@ EventScript_1620F6:: @ 81620F6 EventScript_1620F7:: @ 81620F7 setvar VAR_0x8006, 9 setdynamicwarp MAP_SILPH_CO_6F, 255, 20, 3 - compare_var_to_value VAR_0x403A, 9 - goto_if_eq EventScript_1621E7 + compare_var_to_value VAR_ELEVATOR_FLOOR, 9 + goto_if eq, EventScript_1621E7 call EventScript_1621EC - setvar VAR_0x403A, 9 + setvar VAR_ELEVATOR_FLOOR, 9 goto EventScript_1621E7 EventScript_16211E:: @ 816211E @@ -105,10 +105,10 @@ EventScript_16211E:: @ 816211E EventScript_16211F:: @ 816211F setvar VAR_0x8006, 10 setdynamicwarp MAP_SILPH_CO_7F, 255, 23, 3 - compare_var_to_value VAR_0x403A, 10 - goto_if_eq EventScript_1621E7 + compare_var_to_value VAR_ELEVATOR_FLOOR, 10 + goto_if eq, EventScript_1621E7 call EventScript_1621EC - setvar VAR_0x403A, 10 + setvar VAR_ELEVATOR_FLOOR, 10 goto EventScript_1621E7 EventScript_162146:: @ 8162146 @@ -117,10 +117,10 @@ EventScript_162146:: @ 8162146 EventScript_162147:: @ 8162147 setvar VAR_0x8006, 11 setdynamicwarp MAP_SILPH_CO_8F, 255, 22, 3 - compare_var_to_value VAR_0x403A, 11 - goto_if_eq EventScript_1621E7 + compare_var_to_value VAR_ELEVATOR_FLOOR, 11 + goto_if eq, EventScript_1621E7 call EventScript_1621EC - setvar VAR_0x403A, 11 + setvar VAR_ELEVATOR_FLOOR, 11 goto EventScript_1621E7 EventScript_16216E:: @ 816216E @@ -129,10 +129,10 @@ EventScript_16216E:: @ 816216E EventScript_16216F:: @ 816216F setvar VAR_0x8006, 12 setdynamicwarp MAP_SILPH_CO_9F, 255, 24, 3 - compare_var_to_value VAR_0x403A, 12 - goto_if_eq EventScript_1621E7 + compare_var_to_value VAR_ELEVATOR_FLOOR, 12 + goto_if eq, EventScript_1621E7 call EventScript_1621EC - setvar VAR_0x403A, 12 + setvar VAR_ELEVATOR_FLOOR, 12 goto EventScript_1621E7 EventScript_162196:: @ 8162196 @@ -141,10 +141,10 @@ EventScript_162196:: @ 8162196 EventScript_162197:: @ 8162197 setvar VAR_0x8006, 13 setdynamicwarp MAP_SILPH_CO_10F, 255, 13, 3 - compare_var_to_value VAR_0x403A, 13 - goto_if_eq EventScript_1621E7 + compare_var_to_value VAR_ELEVATOR_FLOOR, 13 + goto_if eq, EventScript_1621E7 call EventScript_1621EC - setvar VAR_0x403A, 13 + setvar VAR_ELEVATOR_FLOOR, 13 goto EventScript_1621E7 EventScript_1621BE:: @ 81621BE @@ -153,25 +153,25 @@ EventScript_1621BE:: @ 81621BE EventScript_1621BF:: @ 81621BF setvar VAR_0x8006, 14 setdynamicwarp MAP_SILPH_CO_11F, 255, 13, 3 - compare_var_to_value VAR_0x403A, 14 - goto_if_eq EventScript_1621E7 + compare_var_to_value VAR_ELEVATOR_FLOOR, 14 + goto_if eq, EventScript_1621E7 call EventScript_1621EC - setvar VAR_0x403A, 14 + setvar VAR_ELEVATOR_FLOOR, 14 goto EventScript_1621E7 EventScript_1621E6:: @ 81621E6 end EventScript_1621E7:: @ 81621E7 - special sub_80CB63C + special Special_CloseElevatorCurrentFloorWindow releaseall end EventScript_1621EC:: @ 81621EC - special sub_80CB63C + special Special_CloseElevatorCurrentFloorWindow closemessage waitse - special sub_80CB498 + special Special_AnimateElevator waitstate - setflag FLAG_0x002 + setflag FLAG_TEMP_2 return diff --git a/data/maps/SixIsland/map.json b/data/maps/SixIsland/map.json index a45d77e70..072d78313 100644 --- a/data/maps/SixIsland/map.json +++ b/data/maps/SixIsland/map.json @@ -20,7 +20,7 @@ ], "object_events": [ { - "graphics_id": "19", + "graphics_id": "MAP_OBJ_GFX_BOY", "x": 10, "y": 15, "elevation": 3, @@ -33,7 +33,7 @@ "flag": "0" }, { - "graphics_id": "56", + "graphics_id": "MAP_OBJ_GFX_HIKER", "x": 15, "y": 13, "elevation": 3, @@ -91,8 +91,9 @@ "y": 7, "elevation": 3, "item": "ITEM_LEPPA_BERRY", - "flag": "184", - "unknown": 1 + "flag": "HIDDEN_ITEM_SIX_ISLAND_LEPPA_BERRY", + "quantity": 1, + "underfoot": false } ] } diff --git a/data/maps/SixIsland_DottedHole_SapphireRoom/map.json b/data/maps/SixIsland_DottedHole_SapphireRoom/map.json index 0f78765b5..9f1c986c9 100644 --- a/data/maps/SixIsland_DottedHole_SapphireRoom/map.json +++ b/data/maps/SixIsland_DottedHole_SapphireRoom/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "100", + "graphics_id": "MAP_OBJ_GFX_SAPPHIRE", "x": 7, "y": 7, "elevation": 0, @@ -24,10 +24,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "SixIsland_DottedHole_SapphireRoom_EventScript_1641B5", - "flag": "143" + "flag": "FLAG_HIDE_SAPPHIRE" }, { - "graphics_id": "55", + "graphics_id": "MAP_OBJ_GFX_SCIENTIST", "x": 5, "y": 9, "elevation": 3, @@ -37,7 +37,7 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "0x0", - "flag": "144" + "flag": "FLAG_HIDE_DOTTED_HOLE_SCIENTIST" } ], "warp_events": [ diff --git a/data/maps/SixIsland_DottedHole_SapphireRoom/scripts.inc b/data/maps/SixIsland_DottedHole_SapphireRoom/scripts.inc index 618a5dd4c..64ef24b72 100644 --- a/data/maps/SixIsland_DottedHole_SapphireRoom/scripts.inc +++ b/data/maps/SixIsland_DottedHole_SapphireRoom/scripts.inc @@ -17,61 +17,61 @@ SixIsland_DottedHole_SapphireRoom_EventScript_1641B5:: @ 81641B5 waitmovement 0 playse SE_W070 compare_var_to_value VAR_FACING, 2 - call_if 1, EventScript_16430F + call_if eq, EventScript_16430F compare_var_to_value VAR_FACING, 1 - call_if 1, EventScript_16430F + call_if eq, EventScript_16430F compare_var_to_value VAR_FACING, 4 - call_if 1, EventScript_16431A + call_if eq, EventScript_16431A compare_var_to_value VAR_FACING, 3 - call_if 1, EventScript_16431A + call_if eq, EventScript_16431A setvar VAR_0x8004, 3 setvar VAR_0x8005, 0 setvar VAR_0x8006, 12 setvar VAR_0x8007, 3 - special sub_80CAC28 + special Special_ShakeScreen delay 60 compare_var_to_value VAR_FACING, 2 - call_if 1, EventScript_164325 + call_if eq, EventScript_164325 compare_var_to_value VAR_FACING, 1 - call_if 1, EventScript_164330 + call_if eq, EventScript_164330 compare_var_to_value VAR_FACING, 4 - call_if 1, EventScript_16433B + call_if eq, EventScript_16433B compare_var_to_value VAR_FACING, 3 - call_if 1, EventScript_164346 + call_if eq, EventScript_164346 textcolor 0 msgbox gUnknown_817BD97 closemessage compare_var_to_value VAR_FACING, 2 - call_if 1, EventScript_164351 + call_if eq, EventScript_164351 compare_var_to_value VAR_FACING, 1 - call_if 1, EventScript_164366 + call_if eq, EventScript_164366 compare_var_to_value VAR_FACING, 4 - call_if 1, EventScript_16437B + call_if eq, EventScript_16437B compare_var_to_value VAR_FACING, 3 - call_if 1, EventScript_164390 + call_if eq, EventScript_164390 removeobject 1 compare_var_to_value VAR_FACING, 2 - call_if 1, EventScript_1642F9 + call_if eq, EventScript_1642F9 compare_var_to_value VAR_FACING, 1 - call_if 1, EventScript_1642F9 + call_if eq, EventScript_1642F9 compare_var_to_value VAR_FACING, 4 - call_if 1, EventScript_164304 + call_if eq, EventScript_164304 compare_var_to_value VAR_FACING, 3 - call_if 1, EventScript_164304 + call_if eq, EventScript_164304 msgbox gUnknown_817BDD4 closemessage compare_var_to_value VAR_FACING, 2 - call_if 1, EventScript_1643A5 + call_if eq, EventScript_1643A5 compare_var_to_value VAR_FACING, 1 - call_if 1, EventScript_1643B7 + call_if eq, EventScript_1643B7 compare_var_to_value VAR_FACING, 4 - call_if 1, EventScript_1643C9 + call_if eq, EventScript_1643C9 compare_var_to_value VAR_FACING, 3 - call_if 1, EventScript_1643DB + call_if eq, EventScript_1643DB playse SE_KAIDAN delay 35 removeobject 2 - setflag FLAG_0x2D8 + setflag FLAG_LEARNED_YES_NAH_CHANSEY release end @@ -241,63 +241,63 @@ SixIsland_DottedHole_SapphireRoom_EventScript_16441F:: @ 816441F setvar VAR_0x8006, 0 braillemessage gUnknown_81A9321 getbraillestringwidth gUnknown_81A9321 - call EventScript_1A926C + call EventScript_BrailleCursorWaitButton setvar VAR_0x8006, 0 braillemessage gUnknown_81A932D getbraillestringwidth gUnknown_81A932D - call EventScript_1A926C + call EventScript_BrailleCursorWaitButton setvar VAR_0x8006, 0 braillemessage gUnknown_81A9338 getbraillestringwidth gUnknown_81A9338 - call EventScript_1A926C + call EventScript_BrailleCursorWaitButton setvar VAR_0x8006, 0 braillemessage gUnknown_81A933F getbraillestringwidth gUnknown_81A933F - call EventScript_1A926C + call EventScript_BrailleCursorWaitButton setvar VAR_0x8006, 0 braillemessage gUnknown_81A934A getbraillestringwidth gUnknown_81A934A - call EventScript_1A926C + call EventScript_BrailleCursorWaitButton setvar VAR_0x8006, 0 braillemessage gUnknown_81A9356 getbraillestringwidth gUnknown_81A9356 - call EventScript_1A926C + call EventScript_BrailleCursorWaitButton setvar VAR_0x8006, 0 braillemessage gUnknown_81A9362 getbraillestringwidth gUnknown_81A9362 - call EventScript_1A926C + call EventScript_BrailleCursorWaitButton setvar VAR_0x8006, 0 braillemessage gUnknown_81A9368 getbraillestringwidth gUnknown_81A9368 - call EventScript_1A926C + call EventScript_BrailleCursorWaitButton setvar VAR_0x8006, 0 braillemessage gUnknown_81A9374 getbraillestringwidth gUnknown_81A9374 - call EventScript_1A926C + call EventScript_BrailleCursorWaitButton setvar VAR_0x8006, 0 braillemessage gUnknown_81A937C getbraillestringwidth gUnknown_81A937C - call EventScript_1A926C + call EventScript_BrailleCursorWaitButton setvar VAR_0x8006, 0 braillemessage gUnknown_81A9387 getbraillestringwidth gUnknown_81A9387 - call EventScript_1A926C + call EventScript_BrailleCursorWaitButton setvar VAR_0x8006, 0 braillemessage gUnknown_81A9393 getbraillestringwidth gUnknown_81A9393 - call EventScript_1A926C + call EventScript_BrailleCursorWaitButton setvar VAR_0x8006, 0 braillemessage gUnknown_81A939F getbraillestringwidth gUnknown_81A939F - call EventScript_1A926C + call EventScript_BrailleCursorWaitButton setvar VAR_0x8006, 0 braillemessage gUnknown_81A93AB getbraillestringwidth gUnknown_81A93AB - call EventScript_1A926C + call EventScript_BrailleCursorWaitButton setvar VAR_0x8006, 0 braillemessage gUnknown_81A93B4 getbraillestringwidth gUnknown_81A93B4 - call EventScript_1A926C + call EventScript_BrailleCursorWaitButton braillemessage gUnknown_81A93C0 waitbuttonpress releaseall diff --git a/data/maps/SixIsland_GreenPath/map.json b/data/maps/SixIsland_GreenPath/map.json index bb106cb7f..c104478d5 100644 --- a/data/maps/SixIsland_GreenPath/map.json +++ b/data/maps/SixIsland_GreenPath/map.json @@ -25,7 +25,7 @@ ], "object_events": [ { - "graphics_id": "23", + "graphics_id": "MAP_OBJ_GFX_WOMAN_1", "x": 11, "y": 8, "elevation": 3, @@ -89,9 +89,10 @@ "x": 12, "y": 9, "elevation": 3, - "item": "POCKET_KEY_ITEMS", - "flag": "180", - "unknown": 1 + "item": "ITEM_ULTRA_BALL", + "flag": "HIDDEN_ITEM_SIX_ISLAND_GREEN_PATH_ULTRA_BALL", + "quantity": 1, + "underfoot": false } ] } diff --git a/data/maps/SixIsland_Harbor/map.json b/data/maps/SixIsland_Harbor/map.json index c86d93e32..4469af84e 100644 --- a/data/maps/SixIsland_Harbor/map.json +++ b/data/maps/SixIsland_Harbor/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "108", + "graphics_id": "MAP_OBJ_GFX_SEAGALLOP", "x": 8, "y": 9, "elevation": 0, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "62", + "graphics_id": "MAP_OBJ_GFX_SAILOR", "x": 8, "y": 6, "elevation": 3, diff --git a/data/maps/SixIsland_Harbor/scripts.inc b/data/maps/SixIsland_Harbor/scripts.inc index 1e4e34a16..0730e3b72 100644 --- a/data/maps/SixIsland_Harbor/scripts.inc +++ b/data/maps/SixIsland_Harbor/scripts.inc @@ -6,6 +6,6 @@ SixIsland_Harbor_EventScript_171E48:: @ 8171E48 faceplayer message Text_181726 waitmessage - setvar VAR_0x8004, 6 + setvar VAR_0x8004, SEAGALLOP_SIX_ISLAND goto EventScript_1A900F end diff --git a/data/maps/SixIsland_House/map.json b/data/maps/SixIsland_House/map.json index 1e82148ef..447c0a10c 100644 --- a/data/maps/SixIsland_House/map.json +++ b/data/maps/SixIsland_House/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "32", + "graphics_id": "MAP_OBJ_GFX_OLD_MAN_1", "x": 7, "y": 5, "elevation": 3, diff --git a/data/maps/SixIsland_Mart/map.json b/data/maps/SixIsland_Mart/map.json index 74cf54daa..e0852cc49 100644 --- a/data/maps/SixIsland_Mart/map.json +++ b/data/maps/SixIsland_Mart/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "68", + "graphics_id": "MAP_OBJ_GFX_CLERK", "x": 2, "y": 3, "elevation": 0, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "35", + "graphics_id": "MAP_OBJ_GFX_OLD_WOMAN", "x": 8, "y": 3, "elevation": 3, @@ -40,7 +40,7 @@ "flag": "0" }, { - "graphics_id": "40", + "graphics_id": "MAP_OBJ_GFX_PICNICKER", "x": 7, "y": 7, "elevation": 3, diff --git a/data/maps/SixIsland_Mart/scripts.inc b/data/maps/SixIsland_Mart/scripts.inc index 495a0a991..1bdf7756b 100644 --- a/data/maps/SixIsland_Mart/scripts.inc +++ b/data/maps/SixIsland_Mart/scripts.inc @@ -4,7 +4,7 @@ SixIsland_Mart_MapScripts:: @ 8171E65 SixIsland_Mart_EventScript_171E66:: @ 8171E66 special sub_8110AB4 compare_var_to_value VAR_RESULT, 2 - goto_if_eq EventScript_1A7AE0 + goto_if eq, EventScript_1A7AE0 lock faceplayer message Text_1A6211 diff --git a/data/maps/SixIsland_OutcastIsland/map.json b/data/maps/SixIsland_OutcastIsland/map.json index a643d0dcd..47e361882 100644 --- a/data/maps/SixIsland_OutcastIsland/map.json +++ b/data/maps/SixIsland_OutcastIsland/map.json @@ -20,7 +20,7 @@ ], "object_events": [ { - "graphics_id": "49", + "graphics_id": "MAP_OBJ_GFX_ROCKET_M", "x": 9, "y": 24, "elevation": 3, @@ -30,10 +30,10 @@ "trainer_type": 1, "trainer_sight_or_berry_tree_id": 1, "script": "SixIsland_OutcastIsland_EventScript_168B16", - "flag": "136" + "flag": "FLAG_HIDE_FIVE_ISLAND_ROCKETS" }, { - "graphics_id": "57", + "graphics_id": "MAP_OBJ_GFX_FISHER", "x": 12, "y": 15, "elevation": 3, @@ -46,7 +46,7 @@ "flag": "0" }, { - "graphics_id": "43", + "graphics_id": "MAP_OBJ_GFX_SWIMMER_M_WATER", "x": 13, "y": 34, "elevation": 1, @@ -59,7 +59,7 @@ "flag": "0" }, { - "graphics_id": "44", + "graphics_id": "MAP_OBJ_GFX_SWIMMER_F_WATER", "x": 14, "y": 61, "elevation": 1, @@ -72,7 +72,7 @@ "flag": "0" }, { - "graphics_id": "44", + "graphics_id": "MAP_OBJ_GFX_SWIMMER_F_WATER", "x": 10, "y": 44, "elevation": 1, @@ -85,7 +85,7 @@ "flag": "0" }, { - "graphics_id": "36", + "graphics_id": "MAP_OBJ_GFX_TUBER_M_1", "x": 11, "y": 44, "elevation": 1, @@ -98,7 +98,7 @@ "flag": "0" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 11, "y": 16, "elevation": 3, @@ -108,7 +108,7 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "SixIsland_OutcastIsland_EventScript_1BEC90", - "flag": "481" + "flag": "FLAG_HIDE_SIX_ISLAND_OUTCAST_ISLAND_PP_UP" } ], "warp_events": [ @@ -128,8 +128,9 @@ "y": 23, "elevation": 3, "item": "ITEM_STAR_PIECE", - "flag": "178", - "unknown": 1 + "flag": "HIDDEN_ITEM_SIX_ISLAND_OUTCAST_ISLAND_STAR_PIECE", + "quantity": 1, + "underfoot": false }, { "type": "hidden_item", @@ -137,8 +138,9 @@ "y": 24, "elevation": 3, "item": "ITEM_NET_BALL", - "flag": "179", - "unknown": 1 + "flag": "HIDDEN_ITEM_SIX_ISLAND_OUTCAST_ISLAND_NET_BALL", + "quantity": 1, + "underfoot": false } ] } diff --git a/data/maps/SixIsland_OutcastIsland/scripts.inc b/data/maps/SixIsland_OutcastIsland/scripts.inc index 9682f1cbe..3d7069cc8 100644 --- a/data/maps/SixIsland_OutcastIsland/scripts.inc +++ b/data/maps/SixIsland_OutcastIsland/scripts.inc @@ -2,6 +2,6 @@ SixIsland_OutcastIsland_MapScripts:: @ 8168B15 .byte 0 SixIsland_OutcastIsland_EventScript_168B16:: @ 8168B16 - trainerbattle 0, 540, 0, Text_18B35A, Text_18B3C2 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_TEAM_ROCKET_GRUNT_46, 0, Text_18B35A, Text_18B3C2 msgbox gUnknown_818B3C8, 6 end diff --git a/data/maps/SixIsland_PatternBush/map.json b/data/maps/SixIsland_PatternBush/map.json index 52ce32061..8763c72fa 100644 --- a/data/maps/SixIsland_PatternBush/map.json +++ b/data/maps/SixIsland_PatternBush/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "28", + "graphics_id": "MAP_OBJ_GFX_WOMAN_2", "x": 48, "y": 15, "elevation": 3, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "28", + "graphics_id": "MAP_OBJ_GFX_WOMAN_2", "x": 10, "y": 5, "elevation": 3, @@ -40,7 +40,7 @@ "flag": "0" }, { - "graphics_id": "20", + "graphics_id": "MAP_OBJ_GFX_BUG_CATCHER", "x": 51, "y": 6, "elevation": 3, @@ -53,7 +53,7 @@ "flag": "0" }, { - "graphics_id": "20", + "graphics_id": "MAP_OBJ_GFX_BUG_CATCHER", "x": 12, "y": 13, "elevation": 3, @@ -66,7 +66,7 @@ "flag": "0" }, { - "graphics_id": "20", + "graphics_id": "MAP_OBJ_GFX_BUG_CATCHER", "x": 37, "y": 23, "elevation": 3, @@ -79,7 +79,7 @@ "flag": "0" }, { - "graphics_id": "18", + "graphics_id": "MAP_OBJ_GFX_YOUNGSTER", "x": 32, "y": 5, "elevation": 3, @@ -92,7 +92,7 @@ "flag": "0" }, { - "graphics_id": "18", + "graphics_id": "MAP_OBJ_GFX_YOUNGSTER", "x": 52, "y": 20, "elevation": 3, @@ -105,7 +105,7 @@ "flag": "0" }, { - "graphics_id": "22", + "graphics_id": "MAP_OBJ_GFX_LASS", "x": 8, "y": 21, "elevation": 3, @@ -118,7 +118,7 @@ "flag": "0" }, { - "graphics_id": "22", + "graphics_id": "MAP_OBJ_GFX_LASS", "x": 39, "y": 6, "elevation": 3, @@ -131,7 +131,7 @@ "flag": "0" }, { - "graphics_id": "39", + "graphics_id": "MAP_OBJ_GFX_CAMPER", "x": 3, "y": 9, "elevation": 3, @@ -144,7 +144,7 @@ "flag": "0" }, { - "graphics_id": "40", + "graphics_id": "MAP_OBJ_GFX_PICNICKER", "x": 19, "y": 24, "elevation": 3, @@ -157,7 +157,7 @@ "flag": "0" }, { - "graphics_id": "56", + "graphics_id": "MAP_OBJ_GFX_HIKER", "x": 30, "y": 19, "elevation": 3, diff --git a/data/maps/SixIsland_PatternBush/scripts.inc b/data/maps/SixIsland_PatternBush/scripts.inc index 0575b4855..11192b895 100644 --- a/data/maps/SixIsland_PatternBush/scripts.inc +++ b/data/maps/SixIsland_PatternBush/scripts.inc @@ -6,9 +6,9 @@ SixIsland_PatternBush_MapScript1_16455F:: @ 816455F setworldmapflag FLAG_WORLD_MAP_SIX_ISLAND_PATTERN_BUSH getplayerxy VAR_0x4001, VAR_0x4002 compare_var_to_value VAR_0x4001, 50 - call_if 4, EventScript_16457E + call_if ge, EventScript_16457E compare_var_to_value VAR_0x4001, 49 - call_if 3, EventScript_164587 + call_if le, EventScript_164587 end EventScript_16457E:: @ 816457E @@ -20,61 +20,61 @@ EventScript_164587:: @ 8164587 return SixIsland_PatternBush_EventScript_164590:: @ 8164590 - trainerbattle 0, 609, 0, Text_17BF3A, Text_17BF66 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_PKMN_BREEDER_BETHANY, 0, Text_17BF3A, Text_17BF66 msgbox gUnknown_817BF97, 6 end SixIsland_PatternBush_EventScript_1645A7:: @ 81645A7 - trainerbattle 0, 610, 0, Text_17BFEB, Text_17C028 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_PKMN_BREEDER_ALLISON, 0, Text_17BFEB, Text_17C028 msgbox gUnknown_817C056, 6 end SixIsland_PatternBush_EventScript_1645BE:: @ 81645BE - trainerbattle 0, 611, 0, Text_17C0BE, Text_17C0F2 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_BUG_CATCHER_GARRET, 0, Text_17C0BE, Text_17C0F2 msgbox gUnknown_817C113, 6 end SixIsland_PatternBush_EventScript_1645D5:: @ 81645D5 - trainerbattle 0, 612, 0, Text_17C155, Text_17C196 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_BUG_CATCHER_JONAH, 0, Text_17C155, Text_17C196 msgbox gUnknown_817C1D0, 6 end SixIsland_PatternBush_EventScript_1645EC:: @ 81645EC - trainerbattle 0, 613, 0, Text_17C246, Text_17C275 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_BUG_CATCHER_VANCE, 0, Text_17C246, Text_17C275 msgbox gUnknown_817C2A4, 6 end SixIsland_PatternBush_EventScript_164603:: @ 8164603 - trainerbattle 0, 614, 0, Text_17C2D9, Text_17C30D + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_YOUNGSTER_NASH, 0, Text_17C2D9, Text_17C30D msgbox gUnknown_817C31C, 6 end SixIsland_PatternBush_EventScript_16461A:: @ 816461A - trainerbattle 0, 615, 0, Text_17C373, Text_17C3A5 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_YOUNGSTER_CORDELL, 0, Text_17C373, Text_17C3A5 msgbox gUnknown_817C3CE, 6 end SixIsland_PatternBush_EventScript_164631:: @ 8164631 - trainerbattle 0, 616, 0, Text_17C42B, Text_17C458 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_LASS_DALIA, 0, Text_17C42B, Text_17C458 msgbox gUnknown_817C490, 6 end SixIsland_PatternBush_EventScript_164648:: @ 8164648 - trainerbattle 0, 617, 0, Text_17C4FE, Text_17C552 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_LASS_JOANA, 0, Text_17C4FE, Text_17C552 msgbox gUnknown_817C590, 6 end SixIsland_PatternBush_EventScript_16465F:: @ 816465F - trainerbattle 0, 618, 0, Text_17C5DB, Text_17C609 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_CAMPER_RILEY, 0, Text_17C5DB, Text_17C609 msgbox gUnknown_817C615, 6 end SixIsland_PatternBush_EventScript_164676:: @ 8164676 - trainerbattle 0, 619, 0, Text_17C63E, Text_17C660 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_PICNICKER_MARCY, 0, Text_17C63E, Text_17C660 msgbox gUnknown_817C68E, 6 end SixIsland_PatternBush_EventScript_16468D:: @ 816468D - trainerbattle 0, 620, 0, Text_17C6C9, Text_17C6FB + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_RUIN_MANIAC_LAYTON, 0, Text_17C6C9, Text_17C6FB msgbox gUnknown_817C728, 6 end diff --git a/data/maps/SixIsland_PokemonCenter_1F/map.json b/data/maps/SixIsland_PokemonCenter_1F/map.json index 9b3a2b671..eae20e595 100644 --- a/data/maps/SixIsland_PokemonCenter_1F/map.json +++ b/data/maps/SixIsland_PokemonCenter_1F/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "64", + "graphics_id": "MAP_OBJ_GFX_NURSE", "x": 7, "y": 2, "elevation": 3, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "72", + "graphics_id": "MAP_OBJ_GFX_BLUE", "x": 5, "y": 5, "elevation": 3, @@ -37,10 +37,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "0x0", - "flag": "152" + "flag": "FLAG_HIDE_SIX_ISLAND_POKECENTER_RIVAL" }, { - "graphics_id": "56", + "graphics_id": "MAP_OBJ_GFX_HIKER", "x": 13, "y": 3, "elevation": 3, @@ -53,7 +53,7 @@ "flag": "0" }, { - "graphics_id": "33", + "graphics_id": "MAP_OBJ_GFX_OLD_MAN_2", "x": 12, "y": 5, "elevation": 3, diff --git a/data/maps/SixIsland_PokemonCenter_1F/scripts.inc b/data/maps/SixIsland_PokemonCenter_1F/scripts.inc index 769a5d86f..1ad4df1ed 100644 --- a/data/maps/SixIsland_PokemonCenter_1F/scripts.inc +++ b/data/maps/SixIsland_PokemonCenter_1F/scripts.inc @@ -7,11 +7,11 @@ SixIsland_PokemonCenter_1F_MapScripts:: @ 8171D6A SixIsland_PokemonCenter_1F_MapScript1_171D7A:: @ 8171D7A setrespawn SPAWN_SIX_ISLAND compare_var_to_value VAR_MAP_SCENE_SIX_ISLAND_POKEMON_CENTER_1F, 0 - call_if 1, EventScript_171D89 + call_if eq, EventScript_171D89 end EventScript_171D89:: @ 8171D89 - clearflag FLAG_0x098 + clearflag FLAG_HIDE_SIX_ISLAND_POKECENTER_RIVAL return SixIsland_PokemonCenter_1F_MapScript3_171D8D:: @ 8171D8D diff --git a/data/maps/SixIsland_PokemonCenter_2F/map.json b/data/maps/SixIsland_PokemonCenter_2F/map.json index 2a0b353b1..bf48ee91c 100644 --- a/data/maps/SixIsland_PokemonCenter_2F/map.json +++ b/data/maps/SixIsland_PokemonCenter_2F/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "65", + "graphics_id": "MAP_OBJ_GFX_CABLE_CLUB_RECEPTIONIST", "x": 6, "y": 2, "elevation": 3, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "65", + "graphics_id": "MAP_OBJ_GFX_CABLE_CLUB_RECEPTIONIST", "x": 2, "y": 2, "elevation": 3, @@ -40,7 +40,7 @@ "flag": "0" }, { - "graphics_id": "65", + "graphics_id": "MAP_OBJ_GFX_CABLE_CLUB_RECEPTIONIST", "x": 10, "y": 2, "elevation": 3, @@ -53,7 +53,7 @@ "flag": "0" }, { - "graphics_id": "69", + "graphics_id": "MAP_OBJ_GFX_MG_DELIVERYMAN", "x": 1, "y": 2, "elevation": 3, @@ -63,7 +63,7 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "SixIsland_PokemonCenter_2F_EventScript_1BB1D2", - "flag": "112" + "flag": "FLAG_HIDE_MG_DELIVERYMEN" } ], "warp_events": [ diff --git a/data/maps/SixIsland_RuinValley/map.json b/data/maps/SixIsland_RuinValley/map.json index eea1088f5..d31b0fe31 100644 --- a/data/maps/SixIsland_RuinValley/map.json +++ b/data/maps/SixIsland_RuinValley/map.json @@ -20,7 +20,7 @@ ], "object_events": [ { - "graphics_id": "55", + "graphics_id": "MAP_OBJ_GFX_SCIENTIST", "x": 24, "y": 25, "elevation": 3, @@ -30,10 +30,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "SixIsland_RuinValley_EventScript_168B6D", - "flag": "142" + "flag": "FLAG_HIDE_RUIN_VALLEY_SCIENTIST" }, { - "graphics_id": "56", + "graphics_id": "MAP_OBJ_GFX_HIKER", "x": 32, "y": 11, "elevation": 5, @@ -46,7 +46,7 @@ "flag": "0" }, { - "graphics_id": "56", + "graphics_id": "MAP_OBJ_GFX_HIKER", "x": 33, "y": 16, "elevation": 5, @@ -59,7 +59,7 @@ "flag": "0" }, { - "graphics_id": "56", + "graphics_id": "MAP_OBJ_GFX_HIKER", "x": 31, "y": 24, "elevation": 5, @@ -72,7 +72,7 @@ "flag": "0" }, { - "graphics_id": "56", + "graphics_id": "MAP_OBJ_GFX_HIKER", "x": 14, "y": 10, "elevation": 5, @@ -85,7 +85,7 @@ "flag": "0" }, { - "graphics_id": "52", + "graphics_id": "MAP_OBJ_GFX_SUPER_NERD", "x": 21, "y": 29, "elevation": 5, @@ -98,7 +98,7 @@ "flag": "0" }, { - "graphics_id": "97", + "graphics_id": "MAP_OBJ_GFX_STRENGTH_BOULDER", "x": 17, "y": 10, "elevation": 5, @@ -107,11 +107,11 @@ "movement_range_y": 0, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "SixIsland_RuinValley_EventScript_1BE11D", + "script": "EventScript_InteractWithStrengthBoulderObject", "flag": "0" }, { - "graphics_id": "97", + "graphics_id": "MAP_OBJ_GFX_STRENGTH_BOULDER", "x": 17, "y": 12, "elevation": 5, @@ -120,11 +120,11 @@ "movement_range_y": 0, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "SixIsland_RuinValley_EventScript_1BE11D", + "script": "EventScript_InteractWithStrengthBoulderObject", "flag": "0" }, { - "graphics_id": "97", + "graphics_id": "MAP_OBJ_GFX_STRENGTH_BOULDER", "x": 18, "y": 11, "elevation": 5, @@ -133,11 +133,11 @@ "movement_range_y": 0, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "SixIsland_RuinValley_EventScript_1BE11D", + "script": "EventScript_InteractWithStrengthBoulderObject", "flag": "0" }, { - "graphics_id": "97", + "graphics_id": "MAP_OBJ_GFX_STRENGTH_BOULDER", "x": 6, "y": 33, "elevation": 3, @@ -146,11 +146,11 @@ "movement_range_y": 0, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "SixIsland_RuinValley_EventScript_1BE11D", + "script": "EventScript_InteractWithStrengthBoulderObject", "flag": "0" }, { - "graphics_id": "97", + "graphics_id": "MAP_OBJ_GFX_STRENGTH_BOULDER", "x": 6, "y": 34, "elevation": 3, @@ -159,11 +159,11 @@ "movement_range_y": 0, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "SixIsland_RuinValley_EventScript_1BE11D", + "script": "EventScript_InteractWithStrengthBoulderObject", "flag": "0" }, { - "graphics_id": "97", + "graphics_id": "MAP_OBJ_GFX_STRENGTH_BOULDER", "x": 41, "y": 32, "elevation": 3, @@ -172,11 +172,11 @@ "movement_range_y": 0, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "SixIsland_RuinValley_EventScript_1BE11D", + "script": "EventScript_InteractWithStrengthBoulderObject", "flag": "0" }, { - "graphics_id": "97", + "graphics_id": "MAP_OBJ_GFX_STRENGTH_BOULDER", "x": 41, "y": 33, "elevation": 3, @@ -185,11 +185,11 @@ "movement_range_y": 0, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "SixIsland_RuinValley_EventScript_1BE11D", + "script": "EventScript_InteractWithStrengthBoulderObject", "flag": "0" }, { - "graphics_id": "97", + "graphics_id": "MAP_OBJ_GFX_STRENGTH_BOULDER", "x": 42, "y": 33, "elevation": 3, @@ -198,11 +198,11 @@ "movement_range_y": 0, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "SixIsland_RuinValley_EventScript_1BE11D", + "script": "EventScript_InteractWithStrengthBoulderObject", "flag": "0" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 5, "y": 33, "elevation": 3, @@ -212,10 +212,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "SixIsland_RuinValley_EventScript_1BECC4", - "flag": "485" + "flag": "FLAG_HIDE_SIX_ISLAND_RUIN_VALLEY_HP_UP" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 19, "y": 11, "elevation": 5, @@ -225,10 +225,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "SixIsland_RuinValley_EventScript_1BECB7", - "flag": "484" + "flag": "FLAG_HIDE_SIX_ISLAND_RUIN_VALLEY_FULL_RESTORE" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 43, "y": 32, "elevation": 3, @@ -238,7 +238,7 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "SixIsland_RuinValley_EventScript_1BECD1", - "flag": "486" + "flag": "FLAG_HIDE_SIX_ISLAND_RUIN_VALLEY_SUN_STONE" } ], "warp_events": [ diff --git a/data/maps/SixIsland_RuinValley/scripts.inc b/data/maps/SixIsland_RuinValley/scripts.inc index 11c1b730f..2b7ecf655 100644 --- a/data/maps/SixIsland_RuinValley/scripts.inc +++ b/data/maps/SixIsland_RuinValley/scripts.inc @@ -3,8 +3,8 @@ SixIsland_RuinValley_MapScripts:: @ 8168B53 .byte 0 SixIsland_RuinValley_MapScript1_168B59:: @ 8168B59 - checkflag FLAG_0x2E3 - call_if 1, EventScript_168B63 + checkflag FLAG_USED_CUT_ON_RUIN_VALLEY_BRAILLE + call_if TRUE, EventScript_168B63 end EventScript_168B63:: @ 8168B63 @@ -24,11 +24,11 @@ SixIsland_RuinValley_EventScript_168B6D:: @ 8168B6D SixIsland_RuinValley_EventScript_168B94:: @ 8168B94 lockall - checkflag FLAG_0x2E3 - goto_if_eq EventScript_168BC1 + checkflag FLAG_USED_CUT_ON_RUIN_VALLEY_BRAILLE + goto_if TRUE, EventScript_168BC1 msgbox gUnknown_818BDC0, MSGBOX_YESNO compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_168BCB + goto_if eq, EventScript_168BCB msgbox gUnknown_818BE11 braillemessage gUnknown_81A929B waitbuttonpress diff --git a/data/maps/SixIsland_WaterPath/map.json b/data/maps/SixIsland_WaterPath/map.json index dc5768d72..470b708c5 100644 --- a/data/maps/SixIsland_WaterPath/map.json +++ b/data/maps/SixIsland_WaterPath/map.json @@ -30,7 +30,7 @@ ], "object_events": [ { - "graphics_id": "28", + "graphics_id": "MAP_OBJ_GFX_WOMAN_2", "x": 12, "y": 13, "elevation": 3, @@ -43,7 +43,7 @@ "flag": "0" }, { - "graphics_id": "26", + "graphics_id": "MAP_OBJ_GFX_ROCKER", "x": 11, "y": 52, "elevation": 3, @@ -56,7 +56,7 @@ "flag": "0" }, { - "graphics_id": "43", + "graphics_id": "MAP_OBJ_GFX_SWIMMER_M_WATER", "x": 13, "y": 35, "elevation": 1, @@ -69,7 +69,7 @@ "flag": "0" }, { - "graphics_id": "44", + "graphics_id": "MAP_OBJ_GFX_SWIMMER_F_WATER", "x": 15, "y": 45, "elevation": 1, @@ -82,7 +82,7 @@ "flag": "0" }, { - "graphics_id": "17", + "graphics_id": "MAP_OBJ_GFX_LITTLE_GIRL", "x": 6, "y": 21, "elevation": 3, @@ -95,7 +95,7 @@ "flag": "0" }, { - "graphics_id": "17", + "graphics_id": "MAP_OBJ_GFX_LITTLE_GIRL", "x": 7, "y": 21, "elevation": 3, @@ -108,7 +108,7 @@ "flag": "0" }, { - "graphics_id": "56", + "graphics_id": "MAP_OBJ_GFX_HIKER", "x": 11, "y": 76, "elevation": 3, @@ -121,7 +121,7 @@ "flag": "0" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 17, "y": 19, "elevation": 0, @@ -131,10 +131,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "SixIsland_WaterPath_EventScript_1BEC9D", - "flag": "482" + "flag": "FLAG_HIDE_SIX_ISLAND_WATER_PATH_ELIXIR" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 17, "y": 87, "elevation": 3, @@ -144,7 +144,7 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "SixIsland_WaterPath_EventScript_1BECAA", - "flag": "483" + "flag": "FLAG_HIDE_SIX_ISLAND_WATER_PATH_DRAGON_SCALE" } ], "warp_events": [ @@ -178,8 +178,9 @@ "y": 76, "elevation": 3, "item": "ITEM_ASPEAR_BERRY", - "flag": "181", - "unknown": 1 + "flag": "HIDDEN_ITEM_SIX_ISLAND_WATER_PATH_ASPEAR_BERRY", + "quantity": 1, + "underfoot": false }, { "type": "hidden_item", @@ -187,8 +188,9 @@ "y": 8, "elevation": 3, "item": "ITEM_ORAN_BERRY", - "flag": "182", - "unknown": 1 + "flag": "HIDDEN_ITEM_SIX_ISLAND_WATER_PATH_ORAN_BERRY", + "quantity": 1, + "underfoot": false }, { "type": "hidden_item", @@ -196,8 +198,9 @@ "y": 63, "elevation": 3, "item": "ITEM_PINAP_BERRY", - "flag": "183", - "unknown": 1 + "flag": "HIDDEN_ITEM_SIX_ISLAND_WATER_PATH_PINAP_BERRY", + "quantity": 1, + "underfoot": false }, { "type": "bg_event_type_0", diff --git a/data/maps/SixIsland_WaterPath_House1/map.json b/data/maps/SixIsland_WaterPath_House1/map.json index 482b278be..c889d7a5a 100644 --- a/data/maps/SixIsland_WaterPath_House1/map.json +++ b/data/maps/SixIsland_WaterPath_House1/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "29", + "graphics_id": "MAP_OBJ_GFX_BEAUTY", "x": 3, "y": 4, "elevation": 3, diff --git a/data/maps/SixIsland_WaterPath_House1/scripts.inc b/data/maps/SixIsland_WaterPath_House1/scripts.inc index f9df42396..d38e40aac 100644 --- a/data/maps/SixIsland_WaterPath_House1/scripts.inc +++ b/data/maps/SixIsland_WaterPath_House1/scripts.inc @@ -6,28 +6,28 @@ SixIsland_WaterPath_House1_EventScript_17206D:: @ 817206D faceplayer special sub_8110AB4 compare_var_to_value VAR_RESULT, 2 - goto_if_eq EventScript_1A7AE0 + goto_if eq, EventScript_1A7AE0 special sub_8112364 setvar VAR_0x8004, SPECIES_HERACROSS - specialvar VAR_RESULT, sub_80CC48C + specialvar VAR_RESULT, Special_PlayerPartyContainsSpecies compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_1720E5 - special sub_80A0918 + goto_if eq, EventScript_1720E5 + special GetHeracrossSizeRecordInfo msgbox gUnknown_81A4A3F - special sub_80BF8FC + special Special_ChooseMonFromParty waitstate copyvar VAR_RESULT, VAR_0x8004 compare_var_to_value VAR_RESULT, 6 - goto_if 4, EventScript_1720EF - special sub_80A0930 + goto_if ge, EventScript_1720EF + special CompareHeracrossSize compare_var_to_value VAR_RESULT, 1 - goto_if_eq EventScript_1720F1 + goto_if eq, EventScript_1720F1 compare_var_to_value VAR_RESULT, 2 - goto_if_eq EventScript_1720FB + goto_if eq, EventScript_1720FB compare_var_to_value VAR_RESULT, 3 - goto_if_eq EventScript_172121 + goto_if eq, EventScript_172121 compare_var_to_value VAR_RESULT, 4 - goto_if_eq EventScript_17210E + goto_if eq, EventScript_17210E release end @@ -46,25 +46,25 @@ EventScript_1720F1:: @ 81720F1 end EventScript_1720FB:: @ 81720FB - checkflag FLAG_0x2D9 - goto_if 0, EventScript_172121 + checkflag FLAG_GOT_NEST_BALL_FROM_WATER_PATH_HOUSE_1 + goto_if FALSE, EventScript_172121 msgbox gUnknown_81A4B7A release end EventScript_17210E:: @ 817210E - checkflag FLAG_0x2D9 - goto_if 0, EventScript_172121 + checkflag FLAG_GOT_NEST_BALL_FROM_WATER_PATH_HOUSE_1 + goto_if FALSE, EventScript_172121 msgbox gUnknown_81A4B39 release end EventScript_172121:: @ 8172121 - setflag FLAG_0x2D9 + setflag FLAG_GOT_NEST_BALL_FROM_WATER_PATH_HOUSE_1 msgbox gUnknown_81A4A88 giveitem ITEM_NEST_BALL compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_17214D + goto_if eq, EventScript_17214D msgbox gUnknown_81A4AD9 release end @@ -76,14 +76,14 @@ EventScript_17214D:: @ 817214D SixIsland_WaterPath_House1_EventScript_172157:: @ 8172157 lockall - checkflag FLAG_0x2D9 - goto_if_eq EventScript_17216B + checkflag FLAG_GOT_NEST_BALL_FROM_WATER_PATH_HOUSE_1 + goto_if TRUE, EventScript_17216B msgbox gUnknown_81A4CB9 releaseall end EventScript_17216B:: @ 817216B - special sub_80A0918 + special GetHeracrossSizeRecordInfo msgbox gUnknown_81A4C6E releaseall end diff --git a/data/maps/SixIsland_WaterPath_House2/map.json b/data/maps/SixIsland_WaterPath_House2/map.json index dbe2dfc1e..818e179f4 100644 --- a/data/maps/SixIsland_WaterPath_House2/map.json +++ b/data/maps/SixIsland_WaterPath_House2/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "25", + "graphics_id": "MAP_OBJ_GFX_MAN", "x": 7, "y": 4, "elevation": 3, diff --git a/data/maps/ThreeIsland/map.json b/data/maps/ThreeIsland/map.json index 635f1a356..49100e7a0 100644 --- a/data/maps/ThreeIsland/map.json +++ b/data/maps/ThreeIsland/map.json @@ -25,7 +25,7 @@ ], "object_events": [ { - "graphics_id": "25", + "graphics_id": "MAP_OBJ_GFX_MAN", "x": 7, "y": 24, "elevation": 3, @@ -35,10 +35,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "ThreeIsland_EventScript_1677E5", - "flag": "126" + "flag": "FLAG_HIDE_THREE_ISLAND_ANTIBIKERS" }, { - "graphics_id": "25", + "graphics_id": "MAP_OBJ_GFX_MAN", "x": 8, "y": 23, "elevation": 3, @@ -48,10 +48,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "ThreeIsland_EventScript_167989", - "flag": "126" + "flag": "FLAG_HIDE_THREE_ISLAND_ANTIBIKERS" }, { - "graphics_id": "53", + "graphics_id": "MAP_OBJ_GFX_BIKER", "x": 8, "y": 24, "elevation": 3, @@ -61,10 +61,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "ThreeIsland_EventScript_1677D8", - "flag": "145" + "flag": "FLAG_HIDE_THREE_ISLAND_LONE_BIKER" }, { - "graphics_id": "53", + "graphics_id": "MAP_OBJ_GFX_BIKER", "x": 9, "y": 23, "elevation": 3, @@ -74,10 +74,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "ThreeIsland_EventScript_1677D8", - "flag": "121" + "flag": "FLAG_HIDE_THREE_ISLAND_BIKERS" }, { - "graphics_id": "53", + "graphics_id": "MAP_OBJ_GFX_BIKER", "x": 9, "y": 24, "elevation": 3, @@ -87,10 +87,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "ThreeIsland_EventScript_1677D8", - "flag": "121" + "flag": "FLAG_HIDE_THREE_ISLAND_BIKERS" }, { - "graphics_id": "53", + "graphics_id": "MAP_OBJ_GFX_BIKER", "x": 10, "y": 22, "elevation": 3, @@ -100,10 +100,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "ThreeIsland_EventScript_1677D8", - "flag": "121" + "flag": "FLAG_HIDE_THREE_ISLAND_BIKERS" }, { - "graphics_id": "53", + "graphics_id": "MAP_OBJ_GFX_BIKER", "x": 10, "y": 24, "elevation": 3, @@ -113,10 +113,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "ThreeIsland_EventScript_1677D8", - "flag": "121" + "flag": "FLAG_HIDE_THREE_ISLAND_BIKERS" }, { - "graphics_id": "53", + "graphics_id": "MAP_OBJ_GFX_BIKER", "x": 11, "y": 23, "elevation": 3, @@ -126,10 +126,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "ThreeIsland_EventScript_1677D8", - "flag": "121" + "flag": "FLAG_HIDE_THREE_ISLAND_BIKERS" }, { - "graphics_id": "95", + "graphics_id": "MAP_OBJ_GFX_CUT_TREE", "x": 20, "y": 7, "elevation": 3, @@ -138,11 +138,11 @@ "movement_range_y": 1, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "ThreeIsland_EventScript_1BDF13", - "flag": "18" + "script": "EventScript_InteractWithCutTreeObject", + "flag": "FLAG_TEMP_12" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 18, "y": 17, "elevation": 3, @@ -152,10 +152,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "ThreeIsland_EventScript_1BEABC", - "flag": "443" + "flag": "FLAG_HIDE_THREE_ISLAND_ZINC" }, { - "graphics_id": "23", + "graphics_id": "MAP_OBJ_GFX_WOMAN_1", "x": 15, "y": 7, "elevation": 3, @@ -168,7 +168,7 @@ "flag": "0" }, { - "graphics_id": "16", + "graphics_id": "MAP_OBJ_GFX_LITTLE_BOY", "x": 14, "y": 14, "elevation": 3, @@ -181,7 +181,7 @@ "flag": "0" }, { - "graphics_id": "132", + "graphics_id": "MAP_OBJ_GFX_DODUO", "x": 15, "y": 14, "elevation": 3, @@ -194,7 +194,7 @@ "flag": "0" }, { - "graphics_id": "53", + "graphics_id": "MAP_OBJ_GFX_BIKER", "x": 15, "y": 31, "elevation": 3, @@ -204,7 +204,7 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "ThreeIsland_EventScript_167CA5", - "flag": "121" + "flag": "FLAG_HIDE_THREE_ISLAND_BIKERS" } ], "warp_events": [ @@ -264,7 +264,7 @@ "x": 7, "y": 27, "elevation": 3, - "var": "VAR_0x407B", + "var": "VAR_MAP_SCENE_THREE_ISLAND", "var_value": 2, "script": "ThreeIsland_EventScript_1679B5" }, @@ -273,7 +273,7 @@ "x": 8, "y": 27, "elevation": 3, - "var": "VAR_0x407B", + "var": "VAR_MAP_SCENE_THREE_ISLAND", "var_value": 2, "script": "ThreeIsland_EventScript_1679B5" }, @@ -282,7 +282,7 @@ "x": 9, "y": 27, "elevation": 3, - "var": "VAR_0x407B", + "var": "VAR_MAP_SCENE_THREE_ISLAND", "var_value": 2, "script": "ThreeIsland_EventScript_1679B5" }, @@ -291,7 +291,7 @@ "x": 10, "y": 27, "elevation": 3, - "var": "VAR_0x407B", + "var": "VAR_MAP_SCENE_THREE_ISLAND", "var_value": 2, "script": "ThreeIsland_EventScript_1679B5" }, @@ -300,7 +300,7 @@ "x": 7, "y": 26, "elevation": 3, - "var": "VAR_0x407B", + "var": "VAR_MAP_SCENE_THREE_ISLAND", "var_value": 3, "script": "ThreeIsland_EventScript_167A1D" }, @@ -309,7 +309,7 @@ "x": 8, "y": 26, "elevation": 3, - "var": "VAR_0x407B", + "var": "VAR_MAP_SCENE_THREE_ISLAND", "var_value": 3, "script": "ThreeIsland_EventScript_167A29" }, @@ -318,7 +318,7 @@ "x": 9, "y": 26, "elevation": 3, - "var": "VAR_0x407B", + "var": "VAR_MAP_SCENE_THREE_ISLAND", "var_value": 3, "script": "ThreeIsland_EventScript_167A35" }, @@ -327,7 +327,7 @@ "x": 11, "y": 27, "elevation": 3, - "var": "VAR_0x407B", + "var": "VAR_MAP_SCENE_THREE_ISLAND", "var_value": 2, "script": "ThreeIsland_EventScript_1679B5" }, @@ -336,7 +336,7 @@ "x": 10, "y": 26, "elevation": 3, - "var": "VAR_0x407B", + "var": "VAR_MAP_SCENE_THREE_ISLAND", "var_value": 3, "script": "ThreeIsland_EventScript_167A41" }, @@ -345,7 +345,7 @@ "x": 11, "y": 26, "elevation": 3, - "var": "VAR_0x407B", + "var": "VAR_MAP_SCENE_THREE_ISLAND", "var_value": 3, "script": "ThreeIsland_EventScript_167A4D" } @@ -364,8 +364,9 @@ "y": 13, "elevation": 3, "item": "ITEM_PP_UP", - "flag": "164", - "unknown": 1 + "flag": "HIDDEN_ITEM_THREE_ISLAND_PP_UP", + "quantity": 1, + "underfoot": false } ] } diff --git a/data/maps/ThreeIsland/scripts.inc b/data/maps/ThreeIsland/scripts.inc index 39a3688fe..93fdc39a5 100644 --- a/data/maps/ThreeIsland/scripts.inc +++ b/data/maps/ThreeIsland/scripts.inc @@ -4,14 +4,14 @@ ThreeIsland_MapScripts:: @ 81677AD ThreeIsland_MapScript1_1677B3:: @ 81677B3 setworldmapflag FLAG_WORLD_MAP_THREE_ISLAND - checkflag FLAG_0x2A3 - call_if 1, EventScript_1677CB - compare_var_to_value VAR_0x407B, 4 - call_if 1, EventScript_1677CF + checkflag FLAG_RESCUED_LOSTELLE + call_if TRUE, EventScript_1677CB + compare_var_to_value VAR_MAP_SCENE_THREE_ISLAND, 4 + call_if eq, EventScript_1677CF end EventScript_1677CB:: @ 81677CB - setflag FLAG_0x07E + setflag FLAG_HIDE_THREE_ISLAND_ANTIBIKERS return EventScript_1677CF:: @ 81677CF @@ -28,10 +28,10 @@ ThreeIsland_EventScript_1677D8:: @ 81677D8 ThreeIsland_EventScript_1677E5:: @ 81677E5 lock - checkflag FLAG_0x2FC - goto_if_eq EventScript_167806 - compare_var_to_value VAR_0x407B, 4 - goto_if_eq EventScript_16781A + checkflag FLAG_GOT_FULL_RESTORE_FROM_THREE_ISLAND_DEFENDER + goto_if TRUE, EventScript_167806 + compare_var_to_value VAR_MAP_SCENE_THREE_ISLAND, 4 + goto_if eq, EventScript_16781A setvar VAR_0x4001, 0 call EventScript_16786F release @@ -50,10 +50,10 @@ EventScript_16781A:: @ 816781A msgbox gUnknown_818275A checkitemspace ITEM_FULL_RESTORE, 1 compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_167865 + goto_if eq, EventScript_167865 giveitemfanfaremsg gUnknown_81827BE, ITEM_FULL_RESTORE additem ITEM_FULL_RESTORE, 1 - setflag FLAG_0x2FC + setflag FLAG_GOT_FULL_RESTORE_FROM_THREE_ISLAND_DEFENDER msgbox gUnknown_81827F1 release end @@ -65,36 +65,36 @@ EventScript_167865:: @ 8167865 EventScript_16786F:: @ 816786F compare_var_to_value VAR_0x4001, 1 - call_if 1, EventScript_167947 + call_if eq, EventScript_167947 compare_var_to_value VAR_0x4001, 2 - call_if 1, EventScript_167947 + call_if eq, EventScript_167947 applymovement 1, Movement_167A1B waitmovement 0 msgbox gUnknown_81820C0 compare_var_to_value VAR_0x4001, 0 - call_if 1, EventScript_167952 + call_if eq, EventScript_167952 compare_var_to_value VAR_0x4001, 1 - call_if 1, EventScript_167952 + call_if eq, EventScript_167952 compare_var_to_value VAR_0x4001, 2 - call_if 1, EventScript_16795D + call_if eq, EventScript_16795D applymovement 5, Movement_167A19 waitmovement 0 msgbox gUnknown_8182125 compare_var_to_value VAR_0x4001, 0 - call_if 1, EventScript_167931 + call_if eq, EventScript_167931 compare_var_to_value VAR_0x4001, 1 - call_if 1, EventScript_167931 + call_if eq, EventScript_167931 compare_var_to_value VAR_0x4001, 2 - call_if 1, EventScript_167973 + call_if eq, EventScript_167973 applymovement 2, Movement_167A1B waitmovement 0 msgbox gUnknown_81821A9 compare_var_to_value VAR_0x4001, 0 - call_if 1, EventScript_167952 + call_if eq, EventScript_167952 compare_var_to_value VAR_0x4001, 1 - call_if 1, EventScript_167952 + call_if eq, EventScript_167952 compare_var_to_value VAR_0x4001, 2 - call_if 1, EventScript_16795D + call_if eq, EventScript_16795D applymovement 4, Movement_167A19 waitmovement 0 msgbox gUnknown_81821DC @@ -123,21 +123,21 @@ EventScript_167952:: @ 8167952 EventScript_16795D:: @ 816795D getplayerxy VAR_0x8004, VAR_0x8005 compare_var_to_value VAR_0x8004, 9 - goto_if 4, EventScript_167931 + goto_if ge, EventScript_167931 goto EventScript_167952 end EventScript_167973:: @ 8167973 getplayerxy VAR_0x8004, VAR_0x8005 compare_var_to_value VAR_0x8004, 9 - goto_if 4, EventScript_167947 + goto_if ge, EventScript_167947 goto EventScript_167931 end ThreeIsland_EventScript_167989:: @ 8167989 lock - compare_var_to_value VAR_0x407B, 4 - goto_if_eq EventScript_1679A1 + compare_var_to_value VAR_MAP_SCENE_THREE_ISLAND, 4 + goto_if eq, EventScript_1679A1 setvar VAR_0x4001, 1 call EventScript_16786F release @@ -168,7 +168,7 @@ ThreeIsland_EventScript_1679B5:: @ 81679B5 applymovement 1, Movement_167A1B waitmovement 0 msgbox gUnknown_81823C7 - setvar VAR_0x407B, 3 + setvar VAR_MAP_SCENE_THREE_ISLAND, 3 releaseall end @@ -224,10 +224,10 @@ EventScript_167A59:: @ 8167A59 playbgm MUS_SHOUNEN, 0 msgbox gUnknown_81823ED, MSGBOX_YESNO compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_167C35 + goto_if eq, EventScript_167C35 msgbox gUnknown_818247D setvar VAR_LAST_TALKED, 5 - trainerbattle 3, 527, 0, Text_1824B7 + trainerbattle TRAINER_BATTLE_SINGLE_NO_INTRO_TEXT, TRAINER_BIKER_GOON, 0, Text_1824B7 applymovement 5, Movement_167C5C waitmovement 0 msgbox gUnknown_81824CF @@ -237,7 +237,7 @@ EventScript_167A59:: @ 8167A59 playbgm MUS_SHOUNEN, 0 msgbox gUnknown_81824EF setvar VAR_LAST_TALKED, 7 - trainerbattle 3, 528, 0, Text_182521 + trainerbattle TRAINER_BATTLE_SINGLE_NO_INTRO_TEXT, TRAINER_BIKER_GOON_2, 0, Text_182521 applymovement 7, Movement_167C5C waitmovement 0 msgbox gUnknown_8182536 @@ -247,7 +247,7 @@ EventScript_167A59:: @ 8167A59 playbgm MUS_SHOUNEN, 0 msgbox gUnknown_8182582 setvar VAR_LAST_TALKED, 4 - trainerbattle 3, 529, 0, Text_1825D4 + trainerbattle TRAINER_BATTLE_SINGLE_NO_INTRO_TEXT, TRAINER_BIKER_GOON_3, 0, Text_1825D4 applymovement 4, Movement_1A75E7 waitmovement 0 applymovement 6, Movement_1A75ED @@ -257,19 +257,19 @@ EventScript_167A59:: @ 8167A59 closemessage delay 45 compare_var_to_value VAR_0x4001, 0 - call_if 1, EventScript_167BC6 + call_if eq, EventScript_167BC6 compare_var_to_value VAR_0x4001, 1 - call_if 1, EventScript_167BD8 + call_if eq, EventScript_167BD8 compare_var_to_value VAR_0x4001, 2 - call_if 1, EventScript_167BEA + call_if eq, EventScript_167BEA compare_var_to_value VAR_0x4001, 3 - call_if 1, EventScript_167C03 + call_if eq, EventScript_167C03 compare_var_to_value VAR_0x4001, 4 - call_if 1, EventScript_167C1C + call_if eq, EventScript_167C1C playbgm MUS_SHOUNEN, 0 msgbox gUnknown_8182623 setvar VAR_LAST_TALKED, 3 - trainerbattle 3, 742, 0, Text_1826B7 + trainerbattle TRAINER_BATTLE_SINGLE_NO_INTRO_TEXT, TRAINER_CUE_BALL_PAXTON, 0, Text_1826B7 msgbox gUnknown_818271D closemessage fadescreen 1 @@ -281,7 +281,7 @@ EventScript_167A59:: @ 8167A59 removeobject 8 removeobject 14 fadescreen 0 - setvar VAR_0x407B, 4 + setvar VAR_MAP_SCENE_THREE_ISLAND, 4 releaseall end diff --git a/data/maps/ThreeIsland_BerryForest/map.json b/data/maps/ThreeIsland_BerryForest/map.json index 04ccdb273..0e14592f6 100644 --- a/data/maps/ThreeIsland_BerryForest/map.json +++ b/data/maps/ThreeIsland_BerryForest/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "17", + "graphics_id": "MAP_OBJ_GFX_LITTLE_GIRL", "x": 4, "y": 8, "elevation": 3, @@ -24,10 +24,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "ThreeIsland_BerryForest_EventScript_163C83", - "flag": "122" + "flag": "FLAG_HIDE_LOSTELLE_IN_BERRY_FOREST" }, { - "graphics_id": "95", + "graphics_id": "MAP_OBJ_GFX_CUT_TREE", "x": 12, "y": 11, "elevation": 3, @@ -36,11 +36,11 @@ "movement_range_y": 1, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "ThreeIsland_BerryForest_EventScript_1BDF13", - "flag": "18" + "script": "EventScript_InteractWithCutTreeObject", + "flag": "FLAG_TEMP_12" }, { - "graphics_id": "95", + "graphics_id": "MAP_OBJ_GFX_CUT_TREE", "x": 19, "y": 7, "elevation": 3, @@ -49,11 +49,11 @@ "movement_range_y": 1, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "ThreeIsland_BerryForest_EventScript_1BDF13", - "flag": "19" + "script": "EventScript_InteractWithCutTreeObject", + "flag": "FLAG_TEMP_13" }, { - "graphics_id": "95", + "graphics_id": "MAP_OBJ_GFX_CUT_TREE", "x": 23, "y": 17, "elevation": 3, @@ -62,11 +62,11 @@ "movement_range_y": 1, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "ThreeIsland_BerryForest_EventScript_1BDF13", - "flag": "20" + "script": "EventScript_InteractWithCutTreeObject", + "flag": "FLAG_TEMP_14" }, { - "graphics_id": "95", + "graphics_id": "MAP_OBJ_GFX_CUT_TREE", "x": 38, "y": 23, "elevation": 3, @@ -75,11 +75,11 @@ "movement_range_y": 1, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "ThreeIsland_BerryForest_EventScript_1BDF13", - "flag": "21" + "script": "EventScript_InteractWithCutTreeObject", + "flag": "FLAG_TEMP_15" }, { - "graphics_id": "95", + "graphics_id": "MAP_OBJ_GFX_CUT_TREE", "x": 44, "y": 23, "elevation": 3, @@ -88,11 +88,11 @@ "movement_range_y": 1, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "ThreeIsland_BerryForest_EventScript_1BDF13", - "flag": "22" + "script": "EventScript_InteractWithCutTreeObject", + "flag": "FLAG_TEMP_16" }, { - "graphics_id": "95", + "graphics_id": "MAP_OBJ_GFX_CUT_TREE", "x": 44, "y": 29, "elevation": 3, @@ -101,11 +101,11 @@ "movement_range_y": 1, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "ThreeIsland_BerryForest_EventScript_1BDF13", - "flag": "23" + "script": "EventScript_InteractWithCutTreeObject", + "flag": "FLAG_TEMP_17" }, { - "graphics_id": "95", + "graphics_id": "MAP_OBJ_GFX_CUT_TREE", "x": 16, "y": 43, "elevation": 3, @@ -114,11 +114,11 @@ "movement_range_y": 1, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "ThreeIsland_BerryForest_EventScript_1BDF13", - "flag": "24" + "script": "EventScript_InteractWithCutTreeObject", + "flag": "FLAG_TEMP_18" }, { - "graphics_id": "95", + "graphics_id": "MAP_OBJ_GFX_CUT_TREE", "x": 17, "y": 39, "elevation": 3, @@ -127,11 +127,11 @@ "movement_range_y": 1, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "ThreeIsland_BerryForest_EventScript_1BDF13", - "flag": "25" + "script": "EventScript_InteractWithCutTreeObject", + "flag": "FLAG_TEMP_19" }, { - "graphics_id": "95", + "graphics_id": "MAP_OBJ_GFX_CUT_TREE", "x": 14, "y": 39, "elevation": 3, @@ -140,11 +140,11 @@ "movement_range_y": 1, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "ThreeIsland_BerryForest_EventScript_1BDF13", - "flag": "26" + "script": "EventScript_InteractWithCutTreeObject", + "flag": "FLAG_TEMP_1A" }, { - "graphics_id": "95", + "graphics_id": "MAP_OBJ_GFX_CUT_TREE", "x": 11, "y": 39, "elevation": 3, @@ -153,11 +153,11 @@ "movement_range_y": 1, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "ThreeIsland_BerryForest_EventScript_1BDF13", - "flag": "27" + "script": "EventScript_InteractWithCutTreeObject", + "flag": "FLAG_TEMP_1B" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 12, "y": 5, "elevation": 3, @@ -167,10 +167,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "ThreeIsland_BerryForest_EventScript_1BED05", - "flag": "490" + "flag": "FLAG_HIDE_THREE_ISLAND_BERRY_FOREST_MAX_ETHER" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 27, "y": 11, "elevation": 3, @@ -180,10 +180,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "ThreeIsland_BerryForest_EventScript_1BED12", - "flag": "491" + "flag": "FLAG_HIDE_THREE_ISLAND_BERRY_FOREST_FULL_HEAL" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 12, "y": 43, "elevation": 3, @@ -193,7 +193,7 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "ThreeIsland_BerryForest_EventScript_1BED1F", - "flag": "492" + "flag": "FLAG_HIDE_THREE_ISLAND_BERRY_FOREST_MAX_ELIXIR" } ], "warp_events": [ @@ -241,8 +241,9 @@ "y": 25, "elevation": 3, "item": "ITEM_RAZZ_BERRY", - "flag": "90", - "unknown": 1 + "flag": "HIDDEN_ITEM_THREE_ISLAND_BERRY_FOREST_RAZZ_BERRY", + "quantity": 1, + "underfoot": false }, { "type": "hidden_item", @@ -250,8 +251,9 @@ "y": 15, "elevation": 3, "item": "ITEM_BLUK_BERRY", - "flag": "91", - "unknown": 1 + "flag": "HIDDEN_ITEM_THREE_ISLAND_BERRY_FOREST_BLUK_BERRY", + "quantity": 1, + "underfoot": false }, { "type": "hidden_item", @@ -259,8 +261,9 @@ "y": 24, "elevation": 3, "item": "ITEM_NANAB_BERRY", - "flag": "92", - "unknown": 1 + "flag": "HIDDEN_ITEM_THREE_ISLAND_BERRY_FOREST_NANAB_BERRY", + "quantity": 1, + "underfoot": false }, { "type": "hidden_item", @@ -268,8 +271,9 @@ "y": 24, "elevation": 3, "item": "ITEM_WEPEAR_BERRY", - "flag": "93", - "unknown": 1 + "flag": "HIDDEN_ITEM_THREE_ISLAND_BERRY_FOREST_WEPEAR_BERRY", + "quantity": 1, + "underfoot": false }, { "type": "hidden_item", @@ -277,8 +281,9 @@ "y": 18, "elevation": 3, "item": "ITEM_ORAN_BERRY", - "flag": "94", - "unknown": 1 + "flag": "HIDDEN_ITEM_THREE_ISLAND_BERRY_FOREST_ORAN_BERRY", + "quantity": 1, + "underfoot": false }, { "type": "hidden_item", @@ -286,8 +291,9 @@ "y": 23, "elevation": 3, "item": "ITEM_CHERI_BERRY", - "flag": "95", - "unknown": 1 + "flag": "HIDDEN_ITEM_THREE_ISLAND_BERRY_FOREST_CHERI_BERRY", + "quantity": 1, + "underfoot": false }, { "type": "hidden_item", @@ -295,8 +301,9 @@ "y": 5, "elevation": 3, "item": "ITEM_CHESTO_BERRY", - "flag": "96", - "unknown": 1 + "flag": "HIDDEN_ITEM_THREE_ISLAND_BERRY_FOREST_CHESTO_BERRY", + "quantity": 1, + "underfoot": false }, { "type": "hidden_item", @@ -304,8 +311,9 @@ "y": 30, "elevation": 3, "item": "ITEM_PECHA_BERRY", - "flag": "97", - "unknown": 1 + "flag": "HIDDEN_ITEM_THREE_ISLAND_BERRY_FOREST_PECHA_BERRY", + "quantity": 1, + "underfoot": false }, { "type": "hidden_item", @@ -313,8 +321,9 @@ "y": 5, "elevation": 3, "item": "ITEM_RAWST_BERRY", - "flag": "98", - "unknown": 1 + "flag": "HIDDEN_ITEM_THREE_ISLAND_BERRY_FOREST_RAWST_BERRY", + "quantity": 1, + "underfoot": false }, { "type": "hidden_item", @@ -322,8 +331,9 @@ "y": 6, "elevation": 3, "item": "ITEM_ASPEAR_BERRY", - "flag": "99", - "unknown": 1 + "flag": "HIDDEN_ITEM_THREE_ISLAND_BERRY_FOREST_ASPEAR_BERRY", + "quantity": 1, + "underfoot": false }, { "type": "hidden_item", @@ -331,8 +341,9 @@ "y": 32, "elevation": 3, "item": "ITEM_PERSIM_BERRY", - "flag": "100", - "unknown": 1 + "flag": "HIDDEN_ITEM_THREE_ISLAND_BERRY_FOREST_PERSIM_BERRY", + "quantity": 1, + "underfoot": false }, { "type": "hidden_item", @@ -340,8 +351,9 @@ "y": 16, "elevation": 3, "item": "ITEM_PINAP_BERRY", - "flag": "101", - "unknown": 1 + "flag": "HIDDEN_ITEM_THREE_ISLAND_BERRY_FOREST_PINAP_BERRY", + "quantity": 1, + "underfoot": false }, { "type": "hidden_item", @@ -349,8 +361,9 @@ "y": 5, "elevation": 3, "item": "ITEM_LUM_BERRY", - "flag": "102", - "unknown": 1 + "flag": "HIDDEN_ITEM_THREE_ISLAND_BERRY_FOREST_LUM_BERRY", + "quantity": 1, + "underfoot": false } ] } diff --git a/data/maps/ThreeIsland_BerryForest/scripts.inc b/data/maps/ThreeIsland_BerryForest/scripts.inc index ec85582ef..3119a1d44 100644 --- a/data/maps/ThreeIsland_BerryForest/scripts.inc +++ b/data/maps/ThreeIsland_BerryForest/scripts.inc @@ -19,7 +19,7 @@ ThreeIsland_BerryForest_EventScript_163C83:: @ 8163C83 msgbox gUnknown_817AE8E special sub_8110AB4 compare_var_to_value VAR_RESULT, 2 - goto_if_eq EventScript_1A7AE0 + goto_if eq, EventScript_1A7AE0 waitse playmoncry SPECIES_HYPNO, 2 waitmoncry @@ -31,14 +31,14 @@ ThreeIsland_BerryForest_EventScript_163C83:: @ 8163C83 msgbox gUnknown_817AEE1 giveitem ITEM_IAPAPA_BERRY compare_var_to_value VAR_RESULT, 0 - call_if 1, EventScript_163D19 - special sub_80CA6DC + call_if eq, EventScript_163D19 + special Special_BufferBigGuyOrBigGirlString msgbox gUnknown_817AF3B closemessage - setflag FLAG_0x2A3 - setflag FLAG_0x07A + setflag FLAG_RESCUED_LOSTELLE + setflag FLAG_HIDE_LOSTELLE_IN_BERRY_FOREST setvar VAR_MAP_SCENE_TWO_ISLAND_JOYFUL_GAME_CORNER, 2 - clearflag FLAG_0x075 + clearflag FLAG_HIDE_TWO_ISLAND_GAME_CORNER_LOSTELLE warp MAP_TWO_ISLAND_JOYFUL_GAME_CORNER, 255, 6, 6 waitstate release diff --git a/data/maps/ThreeIsland_BondBridge/map.json b/data/maps/ThreeIsland_BondBridge/map.json index 474a4063a..02ac7426c 100644 --- a/data/maps/ThreeIsland_BondBridge/map.json +++ b/data/maps/ThreeIsland_BondBridge/map.json @@ -20,7 +20,7 @@ ], "object_events": [ { - "graphics_id": "28", + "graphics_id": "MAP_OBJ_GFX_WOMAN_2", "x": 27, "y": 10, "elevation": 3, @@ -33,7 +33,7 @@ "flag": "0" }, { - "graphics_id": "28", + "graphics_id": "MAP_OBJ_GFX_WOMAN_2", "x": 68, "y": 10, "elevation": 3, @@ -46,7 +46,7 @@ "flag": "0" }, { - "graphics_id": "37", + "graphics_id": "MAP_OBJ_GFX_TUBER_F", "x": 33, "y": 13, "elevation": 3, @@ -59,7 +59,7 @@ "flag": "0" }, { - "graphics_id": "37", + "graphics_id": "MAP_OBJ_GFX_TUBER_F", "x": 50, "y": 11, "elevation": 3, @@ -72,7 +72,7 @@ "flag": "0" }, { - "graphics_id": "44", + "graphics_id": "MAP_OBJ_GFX_SWIMMER_F_WATER", "x": 36, "y": 4, "elevation": 1, @@ -85,7 +85,7 @@ "flag": "0" }, { - "graphics_id": "17", + "graphics_id": "MAP_OBJ_GFX_LITTLE_GIRL", "x": 77, "y": 5, "elevation": 3, @@ -98,7 +98,7 @@ "flag": "0" }, { - "graphics_id": "17", + "graphics_id": "MAP_OBJ_GFX_LITTLE_GIRL", "x": 78, "y": 5, "elevation": 3, @@ -111,7 +111,7 @@ "flag": "0" }, { - "graphics_id": "95", + "graphics_id": "MAP_OBJ_GFX_CUT_TREE", "x": 72, "y": 8, "elevation": 3, @@ -120,11 +120,11 @@ "movement_range_y": 1, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "ThreeIsland_BondBridge_EventScript_1BDF13", - "flag": "18" + "script": "EventScript_InteractWithCutTreeObject", + "flag": "FLAG_TEMP_12" }, { - "graphics_id": "95", + "graphics_id": "MAP_OBJ_GFX_CUT_TREE", "x": 86, "y": 13, "elevation": 3, @@ -133,8 +133,8 @@ "movement_range_y": 1, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "ThreeIsland_BondBridge_EventScript_1BDF13", - "flag": "19" + "script": "EventScript_InteractWithCutTreeObject", + "flag": "FLAG_TEMP_13" } ], "warp_events": [ @@ -168,8 +168,9 @@ "y": 5, "elevation": 0, "item": "ITEM_MAX_REPEL", - "flag": "165", - "unknown": 1 + "flag": "HIDDEN_ITEM_THREE_ISLAND_BOND_BRIDGE_MAX_REPEL", + "quantity": 1, + "underfoot": false }, { "type": "hidden_item", @@ -177,8 +178,9 @@ "y": 12, "elevation": 3, "item": "ITEM_PEARL", - "flag": "166", - "unknown": 1 + "flag": "HIDDEN_ITEM_THREE_ISLAND_BOND_BRIDGE_PEARL", + "quantity": 1, + "underfoot": false }, { "type": "hidden_item", @@ -186,8 +188,9 @@ "y": 7, "elevation": 3, "item": "ITEM_STARDUST", - "flag": "167", - "unknown": 1 + "flag": "HIDDEN_ITEM_THREE_ISLAND_BOND_BRIDGE_STARDUST", + "quantity": 1, + "underfoot": false }, { "type": "bg_event_type_0", diff --git a/data/maps/ThreeIsland_DunsparceTunnel/map.json b/data/maps/ThreeIsland_DunsparceTunnel/map.json index c4616ad9c..317fb6580 100644 --- a/data/maps/ThreeIsland_DunsparceTunnel/map.json +++ b/data/maps/ThreeIsland_DunsparceTunnel/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "27", + "graphics_id": "MAP_OBJ_GFX_FAT_MAN", "x": 23, "y": 2, "elevation": 3, @@ -51,8 +51,9 @@ "y": 3, "elevation": 0, "item": "ITEM_NUGGET", - "flag": "163", - "unknown": 1 + "flag": "HIDDEN_ITEM_THREE_ISLAND_DUNSPARCE_TUNNEL_NUGGET", + "quantity": 1, + "underfoot": false } ] } diff --git a/data/maps/ThreeIsland_DunsparceTunnel/scripts.inc b/data/maps/ThreeIsland_DunsparceTunnel/scripts.inc index 7cdedc60c..8d5b37ed7 100644 --- a/data/maps/ThreeIsland_DunsparceTunnel/scripts.inc +++ b/data/maps/ThreeIsland_DunsparceTunnel/scripts.inc @@ -7,13 +7,13 @@ ThreeIsland_DunsparceTunnel_MapScript1_164D2C:: @ 8164D2C specialvar VAR_RESULT, IsNationalPokedexEnabled copyvar VAR_0x8008, VAR_RESULT compare_var_to_value VAR_0x8008, 1 - call_if 1, EventScript_164D50 + call_if eq, EventScript_164D50 compare_var_to_value VAR_0x8008, 0 - call_if 1, EventScript_164D54 + call_if eq, EventScript_164D54 end EventScript_164D50:: @ 8164D50 - setmaplayoutindex LAYOUT_UNUSED_LAYOUT_83453C0 + setmaplayoutindex LAYOUT_THREE_ISLAND_DUNSPARCE_TUNNEL_2 return EventScript_164D54:: @ 8164D54 @@ -24,11 +24,11 @@ EventScript_164D54:: @ 8164D54 ThreeIsland_DunsparceTunnel_EventScript_164D60:: @ 8164D60 lock faceplayer - checkflag FLAG_0x2E2 - goto_if_eq EventScript_164DC2 + checkflag FLAG_GOT_NUGGET_FROM_DUNSPARCE_TUNNEL + goto_if TRUE, EventScript_164DC2 specialvar VAR_RESULT, IsNationalPokedexEnabled compare_var_to_value VAR_RESULT, 1 - goto_if_eq EventScript_164D90 + goto_if eq, EventScript_164D90 msgbox gUnknown_817D13B closemessage applymovement 1, Movement_1A75E5 @@ -40,8 +40,8 @@ EventScript_164D90:: @ 8164D90 msgbox gUnknown_817D1C9 giveitem ITEM_NUGGET compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_164DB8 - setflag FLAG_0x2E2 + goto_if eq, EventScript_164DB8 + setflag FLAG_GOT_NUGGET_FROM_DUNSPARCE_TUNNEL goto EventScript_164DC2 end diff --git a/data/maps/ThreeIsland_Harbor/map.json b/data/maps/ThreeIsland_Harbor/map.json index 58cee2b93..dfce743a3 100644 --- a/data/maps/ThreeIsland_Harbor/map.json +++ b/data/maps/ThreeIsland_Harbor/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "108", + "graphics_id": "MAP_OBJ_GFX_SEAGALLOP", "x": 8, "y": 9, "elevation": 0, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "62", + "graphics_id": "MAP_OBJ_GFX_SAILOR", "x": 8, "y": 6, "elevation": 3, diff --git a/data/maps/ThreeIsland_Harbor/scripts.inc b/data/maps/ThreeIsland_Harbor/scripts.inc index 3678385c0..9fd44c116 100644 --- a/data/maps/ThreeIsland_Harbor/scripts.inc +++ b/data/maps/ThreeIsland_Harbor/scripts.inc @@ -6,6 +6,6 @@ ThreeIsland_Harbor_EventScript_171EAA:: @ 8171EAA faceplayer message Text_181726 waitmessage - setvar VAR_0x8004, 3 + setvar VAR_0x8004, SEAGALLOP_THREE_ISLAND goto EventScript_1A900F end diff --git a/data/maps/ThreeIsland_House1/map.json b/data/maps/ThreeIsland_House1/map.json index dc2b5321f..e21901499 100644 --- a/data/maps/ThreeIsland_House1/map.json +++ b/data/maps/ThreeIsland_House1/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "17", + "graphics_id": "MAP_OBJ_GFX_LITTLE_GIRL", "x": 3, "y": 4, "elevation": 0, @@ -24,7 +24,7 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "ThreeIsland_House1_EventScript_17181A", - "flag": "118" + "flag": "FLAG_HIDE_LOSTELLE_IN_HER_HOME" } ], "warp_events": [ diff --git a/data/maps/ThreeIsland_House1/scripts.inc b/data/maps/ThreeIsland_House1/scripts.inc index 29952137a..7738d2e5c 100644 --- a/data/maps/ThreeIsland_House1/scripts.inc +++ b/data/maps/ThreeIsland_House1/scripts.inc @@ -4,7 +4,7 @@ ThreeIsland_House1_MapScripts:: @ 8171819 ThreeIsland_House1_EventScript_17181A:: @ 817181A lock faceplayer - special sub_80CA6DC + special Special_BufferBigGuyOrBigGirlString msgbox gUnknown_81A2F3E release end diff --git a/data/maps/ThreeIsland_House2/map.json b/data/maps/ThreeIsland_House2/map.json index a596b88c0..681380cc9 100644 --- a/data/maps/ThreeIsland_House2/map.json +++ b/data/maps/ThreeIsland_House2/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "26", + "graphics_id": "MAP_OBJ_GFX_ROCKER", "x": 4, "y": 4, "elevation": 3, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "25", + "graphics_id": "MAP_OBJ_GFX_MAN", "x": 7, "y": 4, "elevation": 3, diff --git a/data/maps/ThreeIsland_House2/scripts.inc b/data/maps/ThreeIsland_House2/scripts.inc index 297f6e3dc..6c45d3f2f 100644 --- a/data/maps/ThreeIsland_House2/scripts.inc +++ b/data/maps/ThreeIsland_House2/scripts.inc @@ -4,9 +4,7 @@ ThreeIsland_House2_MapScripts:: @ 81718DF ThreeIsland_House2_EventScript_1718E0:: @ 81718E0 lock faceplayer - setvar VAR_0x8004, 7 - setvar VAR_0x8005, 1 - special SetFlavorTextFlagFromSpecialVars + famechecker FAMECHECKER_SABRINA, 1 msgbox gUnknown_81A32CA release end diff --git a/data/maps/ThreeIsland_House3/map.json b/data/maps/ThreeIsland_House3/map.json index 0ba900bc6..df96d64eb 100644 --- a/data/maps/ThreeIsland_House3/map.json +++ b/data/maps/ThreeIsland_House3/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "29", + "graphics_id": "MAP_OBJ_GFX_BEAUTY", "x": 8, "y": 2, "elevation": 3, diff --git a/data/maps/ThreeIsland_House4/map.json b/data/maps/ThreeIsland_House4/map.json index c1ceda273..a518b76d8 100644 --- a/data/maps/ThreeIsland_House4/map.json +++ b/data/maps/ThreeIsland_House4/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "30", + "graphics_id": "MAP_OBJ_GFX_BALDING_MAN", "x": 7, "y": 4, "elevation": 3, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "16", + "graphics_id": "MAP_OBJ_GFX_LITTLE_BOY", "x": 6, "y": 3, "elevation": 3, diff --git a/data/maps/ThreeIsland_House5/map.json b/data/maps/ThreeIsland_House5/map.json index b36be2276..c5f567825 100644 --- a/data/maps/ThreeIsland_House5/map.json +++ b/data/maps/ThreeIsland_House5/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "17", + "graphics_id": "MAP_OBJ_GFX_LITTLE_GIRL", "x": 2, "y": 5, "elevation": 3, diff --git a/data/maps/ThreeIsland_House5/scripts.inc b/data/maps/ThreeIsland_House5/scripts.inc index d93696c0a..3dee5e153 100644 --- a/data/maps/ThreeIsland_House5/scripts.inc +++ b/data/maps/ThreeIsland_House5/scripts.inc @@ -4,8 +4,8 @@ ThreeIsland_House5_MapScripts:: @ 817191F ThreeIsland_House5_EventScript_171920:: @ 8171920 lock faceplayer - checkflag FLAG_0x2A3 - goto_if_eq EventScript_171935 + checkflag FLAG_RESCUED_LOSTELLE + goto_if TRUE, EventScript_171935 msgbox gUnknown_81A3469 release end diff --git a/data/maps/ThreeIsland_Mart/map.json b/data/maps/ThreeIsland_Mart/map.json index 14e94407b..f27177490 100644 --- a/data/maps/ThreeIsland_Mart/map.json +++ b/data/maps/ThreeIsland_Mart/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "68", + "graphics_id": "MAP_OBJ_GFX_CLERK", "x": 2, "y": 3, "elevation": 0, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "40", + "graphics_id": "MAP_OBJ_GFX_PICNICKER", "x": 2, "y": 7, "elevation": 3, @@ -40,7 +40,7 @@ "flag": "0" }, { - "graphics_id": "20", + "graphics_id": "MAP_OBJ_GFX_BUG_CATCHER", "x": 7, "y": 2, "elevation": 3, @@ -53,7 +53,7 @@ "flag": "0" }, { - "graphics_id": "18", + "graphics_id": "MAP_OBJ_GFX_YOUNGSTER", "x": 6, "y": 5, "elevation": 3, diff --git a/data/maps/ThreeIsland_Mart/scripts.inc b/data/maps/ThreeIsland_Mart/scripts.inc index 6986607e3..ec0caa100 100644 --- a/data/maps/ThreeIsland_Mart/scripts.inc +++ b/data/maps/ThreeIsland_Mart/scripts.inc @@ -4,7 +4,7 @@ ThreeIsland_Mart_MapScripts:: @ 817188C ThreeIsland_Mart_EventScript_17188D:: @ 817188D special sub_8110AB4 compare_var_to_value VAR_RESULT, 2 - goto_if_eq EventScript_1A7AE0 + goto_if eq, EventScript_1A7AE0 lock faceplayer message Text_1A6211 diff --git a/data/maps/ThreeIsland_PokemonCenter_1F/map.json b/data/maps/ThreeIsland_PokemonCenter_1F/map.json index b3e593a18..83fec9da8 100644 --- a/data/maps/ThreeIsland_PokemonCenter_1F/map.json +++ b/data/maps/ThreeIsland_PokemonCenter_1F/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "64", + "graphics_id": "MAP_OBJ_GFX_NURSE", "x": 7, "y": 2, "elevation": 0, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "26", + "graphics_id": "MAP_OBJ_GFX_ROCKER", "x": 12, "y": 2, "elevation": 3, @@ -40,7 +40,7 @@ "flag": "0" }, { - "graphics_id": "22", + "graphics_id": "MAP_OBJ_GFX_LASS", "x": 3, "y": 4, "elevation": 3, @@ -53,7 +53,7 @@ "flag": "0" }, { - "graphics_id": "62", + "graphics_id": "MAP_OBJ_GFX_SAILOR", "x": 11, "y": 5, "elevation": 3, diff --git a/data/maps/ThreeIsland_PokemonCenter_2F/map.json b/data/maps/ThreeIsland_PokemonCenter_2F/map.json index 02fd95e39..bb174d2f2 100644 --- a/data/maps/ThreeIsland_PokemonCenter_2F/map.json +++ b/data/maps/ThreeIsland_PokemonCenter_2F/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "65", + "graphics_id": "MAP_OBJ_GFX_CABLE_CLUB_RECEPTIONIST", "x": 6, "y": 2, "elevation": 3, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "65", + "graphics_id": "MAP_OBJ_GFX_CABLE_CLUB_RECEPTIONIST", "x": 2, "y": 2, "elevation": 3, @@ -40,7 +40,7 @@ "flag": "0" }, { - "graphics_id": "65", + "graphics_id": "MAP_OBJ_GFX_CABLE_CLUB_RECEPTIONIST", "x": 10, "y": 2, "elevation": 3, @@ -53,7 +53,7 @@ "flag": "0" }, { - "graphics_id": "69", + "graphics_id": "MAP_OBJ_GFX_MG_DELIVERYMAN", "x": 1, "y": 2, "elevation": 3, @@ -63,7 +63,7 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "ThreeIsland_PokemonCenter_2F_EventScript_1BB1D2", - "flag": "112" + "flag": "FLAG_HIDE_MG_DELIVERYMEN" } ], "warp_events": [ diff --git a/data/maps/ThreeIsland_Port/map.json b/data/maps/ThreeIsland_Port/map.json index bbc809fc1..e49bb1224 100644 --- a/data/maps/ThreeIsland_Port/map.json +++ b/data/maps/ThreeIsland_Port/map.json @@ -20,7 +20,7 @@ ], "object_events": [ { - "graphics_id": "31", + "graphics_id": "MAP_OBJ_GFX_WOMAN_3", "x": 14, "y": 9, "elevation": 3, @@ -33,7 +33,7 @@ "flag": "0" }, { - "graphics_id": "53", + "graphics_id": "MAP_OBJ_GFX_BIKER", "x": 8, "y": 8, "elevation": 3, @@ -43,10 +43,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "ThreeIsland_Port_EventScript_1687CC", - "flag": "121" + "flag": "FLAG_HIDE_THREE_ISLAND_BIKERS" }, { - "graphics_id": "53", + "graphics_id": "MAP_OBJ_GFX_BIKER", "x": 13, "y": 10, "elevation": 3, @@ -56,7 +56,7 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "ThreeIsland_Port_EventScript_1687D5", - "flag": "121" + "flag": "FLAG_HIDE_THREE_ISLAND_BIKERS" } ], "warp_events": [ diff --git a/data/maps/ThreeIsland_Port/scripts.inc b/data/maps/ThreeIsland_Port/scripts.inc index 8fb20ce26..1aff12731 100644 --- a/data/maps/ThreeIsland_Port/scripts.inc +++ b/data/maps/ThreeIsland_Port/scripts.inc @@ -3,17 +3,17 @@ ThreeIsland_Port_MapScripts:: @ 8168789 .byte 0 ThreeIsland_Port_MapScript1_16878F:: @ 816878F - clearflag FLAG_0x841 - setflag FLAG_0x2A1 + clearflag FLAG_SYS_PC_STORAGE_DISABLED + setflag FLAG_SEVII_DETOUR_FINISHED end ThreeIsland_Port_EventScript_168796:: @ 8168796 lock faceplayer compare_var_to_value VAR_MAP_SCENE_TWO_ISLAND_JOYFUL_GAME_CORNER, 2 - goto_if 4, EventScript_1687B8 - compare_var_to_value VAR_0x407B, 4 - goto_if 4, EventScript_1687C2 + goto_if ge, EventScript_1687B8 + compare_var_to_value VAR_MAP_SCENE_THREE_ISLAND, 4 + goto_if ge, EventScript_1687C2 msgbox gUnknown_818A307 release end diff --git a/data/maps/TwoIsland/map.json b/data/maps/TwoIsland/map.json index ff7b3c601..64aba9d7f 100644 --- a/data/maps/TwoIsland/map.json +++ b/data/maps/TwoIsland/map.json @@ -20,7 +20,7 @@ ], "object_events": [ { - "graphics_id": "68", + "graphics_id": "MAP_OBJ_GFX_CLERK", "x": 28, "y": 4, "elevation": 3, @@ -33,7 +33,7 @@ "flag": "0" }, { - "graphics_id": "23", + "graphics_id": "MAP_OBJ_GFX_WOMAN_1", "x": 31, "y": 6, "elevation": 3, @@ -43,10 +43,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "TwoIsland_EventScript_167755", - "flag": "123" + "flag": "FLAG_HIDE_TWO_ISLAND_WOMAN" }, { - "graphics_id": "29", + "graphics_id": "MAP_OBJ_GFX_BEAUTY", "x": 30, "y": 11, "elevation": 3, @@ -56,10 +56,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "TwoIsland_EventScript_16775E", - "flag": "124" + "flag": "FLAG_HIDE_TWO_ISLAND_BEAUTY" }, { - "graphics_id": "62", + "graphics_id": "MAP_OBJ_GFX_SAILOR", "x": 26, "y": 5, "elevation": 3, @@ -72,7 +72,7 @@ "flag": "0" }, { - "graphics_id": "52", + "graphics_id": "MAP_OBJ_GFX_SUPER_NERD", "x": 27, "y": 6, "elevation": 3, @@ -82,10 +82,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "TwoIsland_EventScript_167777", - "flag": "125" + "flag": "FLAG_HIDE_TWO_ISLAND_SUPER_NERD" }, { - "graphics_id": "95", + "graphics_id": "MAP_OBJ_GFX_CUT_TREE", "x": 30, "y": 16, "elevation": 3, @@ -94,11 +94,11 @@ "movement_range_y": 1, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "TwoIsland_EventScript_1BDF13", - "flag": "18" + "script": "EventScript_InteractWithCutTreeObject", + "flag": "FLAG_TEMP_12" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 39, "y": 16, "elevation": 3, @@ -108,10 +108,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "TwoIsland_EventScript_1BEAAF", - "flag": "442" + "flag": "FLAG_HIDE_TWO_ISLAND_REVIVE" }, { - "graphics_id": "16", + "graphics_id": "MAP_OBJ_GFX_LITTLE_BOY", "x": 37, "y": 12, "elevation": 3, @@ -124,7 +124,7 @@ "flag": "0" }, { - "graphics_id": "19", + "graphics_id": "MAP_OBJ_GFX_BOY", "x": 24, "y": 12, "elevation": 3, diff --git a/data/maps/TwoIsland/scripts.inc b/data/maps/TwoIsland/scripts.inc index a9a42eda5..3d35a89c1 100644 --- a/data/maps/TwoIsland/scripts.inc +++ b/data/maps/TwoIsland/scripts.inc @@ -4,43 +4,43 @@ TwoIsland_MapScripts:: @ 8167564 TwoIsland_MapScript1_16756A:: @ 816756A setworldmapflag FLAG_WORLD_MAP_TWO_ISLAND - setflag FLAG_0x2A2 + setflag FLAG_VISITED_TWO_ISLAND call EventScript_167576 end EventScript_167576:: @ 8167576 - checkflag FLAG_0x844 - goto_if_eq EventScript_167597 - checkflag FLAG_0x82C - goto_if_eq EventScript_1675B8 - checkflag FLAG_0x2A3 - goto_if_eq EventScript_1675D9 + checkflag FLAG_SYS_CAN_LINK_WITH_RS + goto_if TRUE, EventScript_167597 + checkflag FLAG_SYS_GAME_CLEAR + goto_if TRUE, EventScript_1675B8 + checkflag FLAG_RESCUED_LOSTELLE + goto_if TRUE, EventScript_1675D9 goto EventScript_1675E8 end EventScript_167597:: @ 8167597 - checkflag FLAG_0x29D - goto_if 0, EventScript_1675EE - checkflag FLAG_0x29E - goto_if 0, EventScript_1675F4 - checkflag FLAG_0x29F - goto_if 0, EventScript_1675FD + checkflag FLAG_TWO_ISLAND_SHOP_INTRODUCED + goto_if FALSE, EventScript_1675EE + checkflag FLAG_TWO_ISLAND_SHOP_EXPANDED_1 + goto_if FALSE, EventScript_1675F4 + checkflag FLAG_TWO_ISLAND_SHOP_EXPANDED_2 + goto_if FALSE, EventScript_1675FD goto EventScript_167606 end EventScript_1675B8:: @ 81675B8 - checkflag FLAG_0x29D - goto_if 0, EventScript_1675EE - checkflag FLAG_0x2A3 - goto_if 0, EventScript_1675EE - checkflag FLAG_0x29E - goto_if 0, EventScript_1675F4 + checkflag FLAG_TWO_ISLAND_SHOP_INTRODUCED + goto_if FALSE, EventScript_1675EE + checkflag FLAG_RESCUED_LOSTELLE + goto_if FALSE, EventScript_1675EE + checkflag FLAG_TWO_ISLAND_SHOP_EXPANDED_1 + goto_if FALSE, EventScript_1675F4 goto EventScript_1675FD end EventScript_1675D9:: @ 81675D9 - checkflag FLAG_0x29D - goto_if 0, EventScript_1675EE + checkflag FLAG_TWO_ISLAND_SHOP_INTRODUCED + goto_if FALSE, EventScript_1675EE goto EventScript_1675F4 end @@ -49,70 +49,70 @@ EventScript_1675E8:: @ 81675E8 end EventScript_1675EE:: @ 81675EE - setvar VAR_0x4078, 1 + setvar VAR_MAP_SCENE_TWO_ISLAND, 1 return EventScript_1675F4:: @ 81675F4 - setvar VAR_0x4078, 2 - clearflag FLAG_0x07B + setvar VAR_MAP_SCENE_TWO_ISLAND, 2 + clearflag FLAG_HIDE_TWO_ISLAND_WOMAN return EventScript_1675FD:: @ 81675FD - setvar VAR_0x4078, 3 - clearflag FLAG_0x07C + setvar VAR_MAP_SCENE_TWO_ISLAND, 3 + clearflag FLAG_HIDE_TWO_ISLAND_BEAUTY return EventScript_167606:: @ 8167606 - setvar VAR_0x4078, 4 - clearflag FLAG_0x07D + setvar VAR_MAP_SCENE_TWO_ISLAND, 4 + clearflag FLAG_HIDE_TWO_ISLAND_SUPER_NERD return TwoIsland_EventScript_16760F:: @ 816760F special sub_8110AB4 compare_var_to_value VAR_RESULT, 2 - goto_if_eq EventScript_1A7AE0 + goto_if eq, EventScript_1A7AE0 lock faceplayer - compare_var_to_value VAR_0x4078, 4 - goto_if_eq EventScript_167646 - compare_var_to_value VAR_0x4078, 3 - goto_if_eq EventScript_16765E - compare_var_to_value VAR_0x4078, 2 - goto_if_eq EventScript_167676 + compare_var_to_value VAR_MAP_SCENE_TWO_ISLAND, 4 + goto_if eq, EventScript_167646 + compare_var_to_value VAR_MAP_SCENE_TWO_ISLAND, 3 + goto_if eq, EventScript_16765E + compare_var_to_value VAR_MAP_SCENE_TWO_ISLAND, 2 + goto_if eq, EventScript_167676 goto EventScript_16768E end EventScript_167646:: @ 8167646 - checkflag FLAG_0x2A0 - goto_if_eq EventScript_1676A6 - setflag FLAG_0x2A0 + checkflag FLAG_TWO_ISLAND_SHOP_EXPANDED_3 + goto_if TRUE, EventScript_1676A6 + setflag FLAG_TWO_ISLAND_SHOP_EXPANDED_3 message Text_181CAE waitmessage goto EventScript_167728 end EventScript_16765E:: @ 816765E - checkflag FLAG_0x29F - goto_if_eq EventScript_1676A6 - setflag FLAG_0x29F + checkflag FLAG_TWO_ISLAND_SHOP_EXPANDED_2 + goto_if TRUE, EventScript_1676A6 + setflag FLAG_TWO_ISLAND_SHOP_EXPANDED_2 message Text_181C77 waitmessage goto EventScript_167708 end EventScript_167676:: @ 8167676 - checkflag FLAG_0x29E - goto_if_eq EventScript_1676A6 - setflag FLAG_0x29E + checkflag FLAG_TWO_ISLAND_SHOP_EXPANDED_1 + goto_if TRUE, EventScript_1676A6 + setflag FLAG_TWO_ISLAND_SHOP_EXPANDED_1 message Text_181B7C waitmessage goto EventScript_1676EC end EventScript_16768E:: @ 816768E - checkflag FLAG_0x29D - goto_if_eq EventScript_1676A6 - setflag FLAG_0x29D + checkflag FLAG_TWO_ISLAND_SHOP_INTRODUCED + goto_if TRUE, EventScript_1676A6 + setflag FLAG_TWO_ISLAND_SHOP_INTRODUCED message Text_181AFE waitmessage goto EventScript_1676D3 @@ -121,12 +121,12 @@ EventScript_16768E:: @ 816768E EventScript_1676A6:: @ 81676A6 message Text_1A6211 waitmessage - compare_var_to_value VAR_0x4078, 4 - goto_if_eq EventScript_167728 - compare_var_to_value VAR_0x4078, 3 - goto_if_eq EventScript_167708 - compare_var_to_value VAR_0x4078, 2 - goto_if_eq EventScript_1676EC + compare_var_to_value VAR_MAP_SCENE_TWO_ISLAND, 4 + goto_if eq, EventScript_167728 + compare_var_to_value VAR_MAP_SCENE_TWO_ISLAND, 3 + goto_if eq, EventScript_167708 + compare_var_to_value VAR_MAP_SCENE_TWO_ISLAND, 2 + goto_if eq, EventScript_1676EC goto EventScript_1676D3 end @@ -209,9 +209,7 @@ TwoIsland_EventScript_167755:: @ 8167755 TwoIsland_EventScript_16775E:: @ 816775E lock faceplayer - setvar VAR_0x8004, 10 - setvar VAR_0x8005, 4 - special SetFlavorTextFlagFromSpecialVars + famechecker FAMECHECKER_BRUNO, 4 msgbox gUnknown_8181E47 release end diff --git a/data/maps/TwoIsland_CapeBrink/map.json b/data/maps/TwoIsland_CapeBrink/map.json index 39a203e72..a6a957d2c 100644 --- a/data/maps/TwoIsland_CapeBrink/map.json +++ b/data/maps/TwoIsland_CapeBrink/map.json @@ -36,8 +36,9 @@ "y": 28, "elevation": 3, "item": "ITEM_PP_MAX", - "flag": "161", - "unknown": 129 + "flag": "HIDDEN_ITEM_TWO_ISLAND_CAPE_BRINK_PP_MAX", + "quantity": 1, + "underfoot": true }, { "type": "hidden_item", @@ -45,8 +46,9 @@ "y": 13, "elevation": 3, "item": "ITEM_RARE_CANDY", - "flag": "111", - "unknown": 1 + "flag": "HIDDEN_ITEM_TWO_ISLAND_CAPE_BRINK_RARE_CANDY", + "quantity": 1, + "underfoot": false } ] } diff --git a/data/maps/TwoIsland_CapeBrink_House/map.json b/data/maps/TwoIsland_CapeBrink_House/map.json index 75b7fb2eb..93538a4c9 100644 --- a/data/maps/TwoIsland_CapeBrink_House/map.json +++ b/data/maps/TwoIsland_CapeBrink_House/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "58", + "graphics_id": "MAP_OBJ_GFX_CHANNELER", "x": 4, "y": 4, "elevation": 3, diff --git a/data/maps/TwoIsland_Harbor/map.json b/data/maps/TwoIsland_Harbor/map.json index 0fed41496..0fb8e4f6b 100644 --- a/data/maps/TwoIsland_Harbor/map.json +++ b/data/maps/TwoIsland_Harbor/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "108", + "graphics_id": "MAP_OBJ_GFX_SEAGALLOP", "x": 8, "y": 9, "elevation": 0, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "62", + "graphics_id": "MAP_OBJ_GFX_SAILOR", "x": 8, "y": 6, "elevation": 3, diff --git a/data/maps/TwoIsland_Harbor/scripts.inc b/data/maps/TwoIsland_Harbor/scripts.inc index 0fd4e9789..919239a0b 100644 --- a/data/maps/TwoIsland_Harbor/scripts.inc +++ b/data/maps/TwoIsland_Harbor/scripts.inc @@ -6,6 +6,6 @@ TwoIsland_Harbor_EventScript_171806:: @ 8171806 faceplayer message Text_181726 waitmessage - setvar VAR_0x8004, 2 + setvar VAR_0x8004, SEAGALLOP_TWO_ISLAND goto EventScript_1A8F54 end diff --git a/data/maps/TwoIsland_House/map.json b/data/maps/TwoIsland_House/map.json index fe6e2a80c..66f6aabed 100644 --- a/data/maps/TwoIsland_House/map.json +++ b/data/maps/TwoIsland_House/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "27", + "graphics_id": "MAP_OBJ_GFX_FAT_MAN", "x": 7, "y": 5, "elevation": 3, diff --git a/data/maps/TwoIsland_House/scripts.inc b/data/maps/TwoIsland_House/scripts.inc index 0f940dd39..40c68cb7e 100644 --- a/data/maps/TwoIsland_House/scripts.inc +++ b/data/maps/TwoIsland_House/scripts.inc @@ -4,79 +4,79 @@ TwoIsland_House_MapScripts:: @ 8171618 TwoIsland_House_EventScript_171619:: @ 8171619 special sub_8110AB4 compare_var_to_value VAR_RESULT, 2 - goto_if_eq EventScript_1A7AE0 + goto_if eq, EventScript_1A7AE0 special sub_8112364 lock faceplayer - clearflag FLAG_0x002 - clearflag FLAG_0x003 - clearflag FLAG_0x004 - checkflag FLAG_0x001 - goto_if_eq EventScript_17164F + clearflag FLAG_TEMP_2 + clearflag FLAG_TEMP_3 + clearflag FLAG_TEMP_4 + checkflag FLAG_TEMP_1 + goto_if TRUE, EventScript_17164F msgbox gUnknown_81A2B88 - setflag FLAG_0x001 + setflag FLAG_TEMP_1 goto EventScript_17164F end EventScript_17164F:: @ 817164F checkitem ITEM_BIG_MUSHROOM, 1 compare_var_to_value VAR_RESULT, 1 - call_if 1, EventScript_1717A8 + call_if eq, EventScript_1717A8 checkitem ITEM_TINY_MUSHROOM, 2 compare_var_to_value VAR_RESULT, 1 - call_if 1, EventScript_1717AC - checkflag FLAG_0x002 - goto_if_eq EventScript_171687 - checkflag FLAG_0x003 - goto_if_eq EventScript_171696 + call_if eq, EventScript_1717AC + checkflag FLAG_TEMP_2 + goto_if TRUE, EventScript_171687 + checkflag FLAG_TEMP_3 + goto_if TRUE, EventScript_171696 goto EventScript_17179E end EventScript_171687:: @ 8171687 - checkflag FLAG_0x003 - call_if 1, EventScript_1717B0 + checkflag FLAG_TEMP_3 + call_if TRUE, EventScript_1717B0 goto EventScript_1716A5 end EventScript_171696:: @ 8171696 - checkflag FLAG_0x002 - call_if 1, EventScript_1717B0 + checkflag FLAG_TEMP_2 + call_if TRUE, EventScript_1717B0 goto EventScript_1716A5 end EventScript_1716A5:: @ 81716A5 msgbox gUnknown_81A2C63, MSGBOX_YESNO compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_17179E + goto_if eq, EventScript_17179E goto EventScript_1716BE end EventScript_1716BE:: @ 81716BE msgbox gUnknown_81A2CC3 - special sub_80BF93C + special SelectMoveTutorMon waitstate compare_var_to_value VAR_0x8004, 6 - goto_if 4, EventScript_17179E - special sub_80BFC14 + goto_if ge, EventScript_17179E + special IsSelectedMonEgg compare_var_to_value VAR_RESULT, 1 - goto_if_eq EventScript_171790 + goto_if eq, EventScript_171790 compare_var_to_value VAR_0x8005, 0 - goto_if_eq EventScript_171782 + goto_if eq, EventScript_171782 goto EventScript_1716F4 end EventScript_1716F4:: @ 81716F4 msgbox gUnknown_81A2CE1 - special sub_80E4634 + special DisplayMoveTutorMenu waitstate compare_var_to_value VAR_0x8004, 0 - goto_if_eq EventScript_1716BE - checkflag FLAG_0x004 - goto_if_eq EventScript_17175B - checkflag FLAG_0x002 - goto_if_eq EventScript_171727 - checkflag FLAG_0x003 - goto_if_eq EventScript_171741 + goto_if eq, EventScript_1716BE + checkflag FLAG_TEMP_4 + goto_if TRUE, EventScript_17175B + checkflag FLAG_TEMP_2 + goto_if TRUE, EventScript_171727 + checkflag FLAG_TEMP_3 + goto_if TRUE, EventScript_171741 end EventScript_171727:: @ 8171727 @@ -98,7 +98,7 @@ EventScript_171741:: @ 8171741 EventScript_17175B:: @ 817175B message Text_1A2D43 waitmessage - multichoice 0, 0, 51, 1 + multichoice 0, 0, MULTICHOICE_MUSHROOMS, TRUE switch VAR_RESULT case 0, EventScript_171741 case 1, EventScript_171727 @@ -120,13 +120,13 @@ EventScript_17179E:: @ 817179E end EventScript_1717A8:: @ 81717A8 - setflag FLAG_0x002 + setflag FLAG_TEMP_2 return EventScript_1717AC:: @ 81717AC - setflag FLAG_0x003 + setflag FLAG_TEMP_3 return EventScript_1717B0:: @ 81717B0 - setflag FLAG_0x004 + setflag FLAG_TEMP_4 return diff --git a/data/maps/TwoIsland_JoyfulGameCorner/map.json b/data/maps/TwoIsland_JoyfulGameCorner/map.json index 3b0ef6e54..fd3c9fac2 100644 --- a/data/maps/TwoIsland_JoyfulGameCorner/map.json +++ b/data/maps/TwoIsland_JoyfulGameCorner/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "30", + "graphics_id": "MAP_OBJ_GFX_BALDING_MAN", "x": 5, "y": 5, "elevation": 1, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "53", + "graphics_id": "MAP_OBJ_GFX_BIKER", "x": 5, "y": 8, "elevation": 3, @@ -37,10 +37,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "0x0", - "flag": "116" + "flag": "FLAG_HIDE_TWO_ISLAND_GAME_CORNER_BIKER" }, { - "graphics_id": "17", + "graphics_id": "MAP_OBJ_GFX_LITTLE_GIRL", "x": 6, "y": 5, "elevation": 1, @@ -50,10 +50,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "TwoIsland_JoyfulGameCorner_EventScript_17160C", - "flag": "117" + "flag": "FLAG_HIDE_TWO_ISLAND_GAME_CORNER_LOSTELLE" }, { - "graphics_id": "25", + "graphics_id": "MAP_OBJ_GFX_MAN", "x": 4, "y": 2, "elevation": 3, diff --git a/data/maps/TwoIsland_JoyfulGameCorner/scripts.inc b/data/maps/TwoIsland_JoyfulGameCorner/scripts.inc index 94a0e4445..798435eaf 100644 --- a/data/maps/TwoIsland_JoyfulGameCorner/scripts.inc +++ b/data/maps/TwoIsland_JoyfulGameCorner/scripts.inc @@ -6,8 +6,8 @@ TwoIsland_JoyfulGameCorner_MapScripts:: @ 81713D0 .byte 0 TwoIsland_JoyfulGameCorner_MapScript1_1713E5:: @ 81713E5 - checkflag FLAG_0x2FB - call_if 1, EventScript_1713EF + checkflag FLAG_GOT_MOON_STONE_FROM_JOYFUL_GAME_CORNER + call_if TRUE, EventScript_1713EF end EventScript_1713EF:: @ 81713EF @@ -37,7 +37,7 @@ EventScript_171435:: @ 8171435 textcolor 0 msgbox gUnknown_81A28B2 textcolor 1 - special sub_80CA6DC + special Special_BufferBigGuyOrBigGirlString msgbox gUnknown_81A2931 closemessage applymovement 3, Movement_1A75ED @@ -87,8 +87,8 @@ EventScript_17145F:: @ 817145F fadedefaultbgm delay 60 msgbox gUnknown_81A270C - clearflag FLAG_0x091 - setvar VAR_0x407B, 2 + clearflag FLAG_HIDE_THREE_ISLAND_LONE_BIKER + setvar VAR_MAP_SCENE_THREE_ISLAND, 2 setvar VAR_MAP_SCENE_TWO_ISLAND_JOYFUL_GAME_CORNER, 1 releaseall end @@ -126,9 +126,9 @@ TwoIsland_JoyfulGameCorner_EventScript_171535:: @ 8171535 lock faceplayer compare_var_to_value VAR_MAP_SCENE_TWO_ISLAND_JOYFUL_GAME_CORNER, 4 - goto_if_eq EventScript_1BC060 - checkflag FLAG_0x2A3 - goto_if_eq EventScript_171555 + goto_if eq, EventScript_1BC060 + checkflag FLAG_RESCUED_LOSTELLE + goto_if TRUE, EventScript_171555 msgbox gUnknown_81A285C release end @@ -142,18 +142,18 @@ TwoIsland_JoyfulGameCorner_EventScript_17155F:: @ 817155F lock faceplayer compare_var_to_value VAR_MAP_SCENE_TWO_ISLAND_JOYFUL_GAME_CORNER, 4 - goto_if_eq EventScript_1BC0CE - checkflag FLAG_0x2FB - goto_if_eq EventScript_1715F5 + goto_if eq, EventScript_1BC0CE + checkflag FLAG_GOT_MOON_STONE_FROM_JOYFUL_GAME_CORNER + goto_if TRUE, EventScript_1715F5 compare_var_to_value VAR_MAP_SCENE_TWO_ISLAND_JOYFUL_GAME_CORNER, 3 - goto_if_eq EventScript_17158A + goto_if eq, EventScript_17158A msgbox gUnknown_81A2743 release end EventScript_17158A:: @ 817158A - checkflag FLAG_0x2FE - goto_if_eq EventScript_1715C4 + checkflag FLAG_NO_ROOM_FOR_JOYFUL_GAME_CORNER_MOON_STONE + goto_if TRUE, EventScript_1715C4 msgbox gUnknown_81A296A setvar VAR_MAP_SCENE_ONE_ISLAND_POKEMON_CENTER_1F, 2 textcolor 3 @@ -170,9 +170,9 @@ EventScript_17158A:: @ 817158A EventScript_1715C4:: @ 81715C4 checkitemspace ITEM_MOON_STONE, 1 compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_1715FF + goto_if eq, EventScript_1715FF additem ITEM_MOON_STONE, 1 - setflag FLAG_0x2FB + setflag FLAG_GOT_MOON_STONE_FROM_JOYFUL_GAME_CORNER giveitemfanfaremsg gUnknown_81A2A9A, ITEM_MOON_STONE release end @@ -183,7 +183,7 @@ EventScript_1715F5:: @ 81715F5 end EventScript_1715FF:: @ 81715FF - setflag FLAG_0x2FE + setflag FLAG_NO_ROOM_FOR_JOYFUL_GAME_CORNER_MOON_STONE msgbox gUnknown_81A2ACA release end diff --git a/data/maps/TwoIsland_PokemonCenter_1F/map.json b/data/maps/TwoIsland_PokemonCenter_1F/map.json index 104e8fb2e..4b227d7b7 100644 --- a/data/maps/TwoIsland_PokemonCenter_1F/map.json +++ b/data/maps/TwoIsland_PokemonCenter_1F/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "64", + "graphics_id": "MAP_OBJ_GFX_NURSE", "x": 7, "y": 2, "elevation": 3, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "51", + "graphics_id": "MAP_OBJ_GFX_GBA_KID", "x": 11, "y": 5, "elevation": 3, @@ -40,7 +40,7 @@ "flag": "0" }, { - "graphics_id": "20", + "graphics_id": "MAP_OBJ_GFX_BUG_CATCHER", "x": 4, "y": 4, "elevation": 3, diff --git a/data/maps/TwoIsland_PokemonCenter_2F/map.json b/data/maps/TwoIsland_PokemonCenter_2F/map.json index 89ef1c015..43f5eb4ad 100644 --- a/data/maps/TwoIsland_PokemonCenter_2F/map.json +++ b/data/maps/TwoIsland_PokemonCenter_2F/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "65", + "graphics_id": "MAP_OBJ_GFX_CABLE_CLUB_RECEPTIONIST", "x": 6, "y": 2, "elevation": 3, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "65", + "graphics_id": "MAP_OBJ_GFX_CABLE_CLUB_RECEPTIONIST", "x": 2, "y": 2, "elevation": 3, @@ -40,7 +40,7 @@ "flag": "0" }, { - "graphics_id": "65", + "graphics_id": "MAP_OBJ_GFX_CABLE_CLUB_RECEPTIONIST", "x": 10, "y": 2, "elevation": 3, @@ -53,7 +53,7 @@ "flag": "0" }, { - "graphics_id": "69", + "graphics_id": "MAP_OBJ_GFX_MG_DELIVERYMAN", "x": 1, "y": 2, "elevation": 3, @@ -63,7 +63,7 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "TwoIsland_PokemonCenter_2F_EventScript_1BB1D2", - "flag": "112" + "flag": "FLAG_HIDE_MG_DELIVERYMEN" } ], "warp_events": [ diff --git a/data/maps/UndergroundPath_EastEntrance/map.json b/data/maps/UndergroundPath_EastEntrance/map.json index c6a7a20ef..107b622f6 100644 --- a/data/maps/UndergroundPath_EastEntrance/map.json +++ b/data/maps/UndergroundPath_EastEntrance/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "28", + "graphics_id": "MAP_OBJ_GFX_WOMAN_2", "x": 5, "y": 6, "elevation": 3, diff --git a/data/maps/UndergroundPath_EastWestTunnel/map.json b/data/maps/UndergroundPath_EastWestTunnel/map.json index a1acbf716..6a4f5d9b4 100644 --- a/data/maps/UndergroundPath_EastWestTunnel/map.json +++ b/data/maps/UndergroundPath_EastWestTunnel/map.json @@ -37,8 +37,9 @@ "y": 3, "elevation": 3, "item": "ITEM_POTION", - "flag": "77", - "unknown": 1 + "flag": "HIDDEN_ITEM_UNDERGROUND_PATH_EAST_WEST_TUNNEL_POTION", + "quantity": 1, + "underfoot": false }, { "type": "hidden_item", @@ -46,8 +47,9 @@ "y": 5, "elevation": 3, "item": "ITEM_PARALYZE_HEAL", - "flag": "79", - "unknown": 1 + "flag": "HIDDEN_ITEM_UNDERGROUND_PATH_EAST_WEST_TUNNEL_PARALYZE_HEAL", + "quantity": 1, + "underfoot": false }, { "type": "hidden_item", @@ -55,8 +57,9 @@ "y": 4, "elevation": 3, "item": "ITEM_AWAKENING", - "flag": "80", - "unknown": 1 + "flag": "HIDDEN_ITEM_UNDERGROUND_PATH_EAST_WEST_TUNNEL_AWAKENING", + "quantity": 1, + "underfoot": false }, { "type": "hidden_item", @@ -64,8 +67,9 @@ "y": 3, "elevation": 3, "item": "ITEM_BURN_HEAL", - "flag": "81", - "unknown": 1 + "flag": "HIDDEN_ITEM_UNDERGROUND_PATH_EAST_WEST_TUNNEL_BURN_HEAL", + "quantity": 1, + "underfoot": false }, { "type": "hidden_item", @@ -73,8 +77,9 @@ "y": 3, "elevation": 3, "item": "ITEM_ICE_HEAL", - "flag": "82", - "unknown": 1 + "flag": "HIDDEN_ITEM_UNDERGROUND_PATH_EAST_WEST_TUNNEL_ICE_HEAL", + "quantity": 1, + "underfoot": false }, { "type": "hidden_item", @@ -82,8 +87,9 @@ "y": 2, "elevation": 3, "item": "ITEM_ETHER", - "flag": "83", - "unknown": 1 + "flag": "HIDDEN_ITEM_UNDERGROUND_PATH_EAST_WEST_TUNNEL_ETHER", + "quantity": 1, + "underfoot": false }, { "type": "hidden_item", @@ -91,8 +97,9 @@ "y": 5, "elevation": 3, "item": "ITEM_ANTIDOTE", - "flag": "78", - "unknown": 1 + "flag": "HIDDEN_ITEM_UNDERGROUND_PATH_EAST_WEST_TUNNEL_ANTIDOTE", + "quantity": 1, + "underfoot": false } ] } diff --git a/data/maps/UndergroundPath_NorthEntrance/map.json b/data/maps/UndergroundPath_NorthEntrance/map.json index 3620937c7..a839da159 100644 --- a/data/maps/UndergroundPath_NorthEntrance/map.json +++ b/data/maps/UndergroundPath_NorthEntrance/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "17", + "graphics_id": "MAP_OBJ_GFX_LITTLE_GIRL", "x": 5, "y": 6, "elevation": 3, diff --git a/data/maps/UndergroundPath_NorthEntrance/scripts.inc b/data/maps/UndergroundPath_NorthEntrance/scripts.inc index a88b1a55c..4d5a806e2 100644 --- a/data/maps/UndergroundPath_NorthEntrance/scripts.inc +++ b/data/maps/UndergroundPath_NorthEntrance/scripts.inc @@ -6,20 +6,20 @@ UndergroundPath_NorthEntrance_EventScript_160E39:: @ 8160E39 faceplayer setvar VAR_0x8008, 2 call EventScript_1A8CAD - checkflag FLAG_0x24B - goto_if_eq EventScript_160EAB + checkflag FLAG_DID_MS_NIDO_TRADE + goto_if TRUE, EventScript_160EAB msgbox gUnknown_81A5AD6, MSGBOX_YESNO compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_160E93 + goto_if eq, EventScript_160E93 call EventScript_1A8CBD compare_var_to_value VAR_0x8004, 6 - goto_if 4, EventScript_160E93 + goto_if ge, EventScript_160E93 call EventScript_1A8CC9 compare_var_to_var VAR_RESULT, VAR_0x8009 - goto_if 5, EventScript_160E9D + goto_if ne, EventScript_160E9D call EventScript_1A8CD9 msgbox gUnknown_81A5B4A - setflag FLAG_0x24B + setflag FLAG_DID_MS_NIDO_TRADE release end diff --git a/data/maps/UndergroundPath_NorthSouthTunnel/map.json b/data/maps/UndergroundPath_NorthSouthTunnel/map.json index 9d0408768..0f0482504 100644 --- a/data/maps/UndergroundPath_NorthSouthTunnel/map.json +++ b/data/maps/UndergroundPath_NorthSouthTunnel/map.json @@ -37,8 +37,9 @@ "y": 30, "elevation": 3, "item": "ITEM_POTION", - "flag": "70", - "unknown": 1 + "flag": "HIDDEN_ITEM_UNDERGROUND_PATH_NORTH_SOUTH_TUNNEL_POTION", + "quantity": 1, + "underfoot": false }, { "type": "hidden_item", @@ -46,8 +47,9 @@ "y": 6, "elevation": 3, "item": "ITEM_ANTIDOTE", - "flag": "71", - "unknown": 1 + "flag": "HIDDEN_ITEM_UNDERGROUND_PATH_NORTH_SOUTH_TUNNEL_ANTIDOTE", + "quantity": 1, + "underfoot": false }, { "type": "hidden_item", @@ -55,8 +57,9 @@ "y": 57, "elevation": 3, "item": "ITEM_BURN_HEAL", - "flag": "74", - "unknown": 1 + "flag": "HIDDEN_ITEM_UNDERGROUND_PATH_NORTH_SOUTH_TUNNEL_BURN_HEAL", + "quantity": 1, + "underfoot": false }, { "type": "hidden_item", @@ -64,8 +67,9 @@ "y": 24, "elevation": 3, "item": "ITEM_AWAKENING", - "flag": "73", - "unknown": 1 + "flag": "HIDDEN_ITEM_UNDERGROUND_PATH_NORTH_SOUTH_TUNNEL_AWAKENING", + "quantity": 1, + "underfoot": false }, { "type": "hidden_item", @@ -73,8 +77,9 @@ "y": 53, "elevation": 3, "item": "ITEM_ICE_HEAL", - "flag": "75", - "unknown": 1 + "flag": "HIDDEN_ITEM_UNDERGROUND_PATH_NORTH_SOUTH_TUNNEL_ICE_HEAL", + "quantity": 1, + "underfoot": false }, { "type": "hidden_item", @@ -82,8 +87,9 @@ "y": 15, "elevation": 3, "item": "ITEM_PARALYZE_HEAL", - "flag": "72", - "unknown": 1 + "flag": "HIDDEN_ITEM_UNDERGROUND_PATH_NORTH_SOUTH_TUNNEL_PARALYZE_HEAL", + "quantity": 1, + "underfoot": false }, { "type": "hidden_item", @@ -91,8 +97,9 @@ "y": 39, "elevation": 3, "item": "ITEM_ETHER", - "flag": "76", - "unknown": 1 + "flag": "HIDDEN_ITEM_UNDERGROUND_PATH_NORTH_SOUTH_TUNNEL_ETHER", + "quantity": 1, + "underfoot": false } ] } diff --git a/data/maps/UndergroundPath_SouthEntrance/map.json b/data/maps/UndergroundPath_SouthEntrance/map.json index ef8888b06..cce927999 100644 --- a/data/maps/UndergroundPath_SouthEntrance/map.json +++ b/data/maps/UndergroundPath_SouthEntrance/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "28", + "graphics_id": "MAP_OBJ_GFX_WOMAN_2", "x": 5, "y": 6, "elevation": 3, diff --git a/data/maps/UndergroundPath_WestEntrance/map.json b/data/maps/UndergroundPath_WestEntrance/map.json index 6791d7100..dd73060a4 100644 --- a/data/maps/UndergroundPath_WestEntrance/map.json +++ b/data/maps/UndergroundPath_WestEntrance/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "30", + "graphics_id": "MAP_OBJ_GFX_BALDING_MAN", "x": 5, "y": 6, "elevation": 3, diff --git a/data/maps/UnknownMap_00_00/map.json b/data/maps/UnknownMap_00_00/map.json index ffebedc43..dc4ac7d19 100644 --- a/data/maps/UnknownMap_00_00/map.json +++ b/data/maps/UnknownMap_00_00/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "66", + "graphics_id": "MAP_OBJ_GFX_UNION_ROOM_RECEPTIONIST", "x": 9, "y": 3, "elevation": 3, diff --git a/data/maps/UnknownMap_00_01/map.json b/data/maps/UnknownMap_00_01/map.json index 5d40fa820..65c7875bb 100644 --- a/data/maps/UnknownMap_00_01/map.json +++ b/data/maps/UnknownMap_00_01/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "66", + "graphics_id": "MAP_OBJ_GFX_UNION_ROOM_RECEPTIONIST", "x": 9, "y": 6, "elevation": 3, diff --git a/data/maps/UnknownMap_00_02/map.json b/data/maps/UnknownMap_00_02/map.json index 742239cd3..de002c33f 100644 --- a/data/maps/UnknownMap_00_02/map.json +++ b/data/maps/UnknownMap_00_02/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "66", + "graphics_id": "MAP_OBJ_GFX_UNION_ROOM_RECEPTIONIST", "x": 10, "y": 5, "elevation": 0, diff --git a/data/maps/UnknownMap_00_04/map.json b/data/maps/UnknownMap_00_04/map.json index ed9be424f..3c0340f01 100644 --- a/data/maps/UnknownMap_00_04/map.json +++ b/data/maps/UnknownMap_00_04/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "66", + "graphics_id": "MAP_OBJ_GFX_UNION_ROOM_RECEPTIONIST", "x": 3, "y": 2, "elevation": 3, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "243", + "graphics_id": "MAP_OBJ_GFX_VAR_3", "x": 1, "y": 8, "elevation": 3, @@ -37,10 +37,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "UnknownMap_00_04_EventScript_1604DA", - "flag": "102" + "flag": "FLAG_HIDE_UNION_ROOM_4" }, { - "graphics_id": "247", + "graphics_id": "MAP_OBJ_GFX_VAR_7", "x": 7, "y": 8, "elevation": 3, @@ -50,10 +50,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "UnknownMap_00_04_EventScript_160502", - "flag": "106" + "flag": "FLAG_HIDE_UNION_ROOM_8" }, { - "graphics_id": "246", + "graphics_id": "MAP_OBJ_GFX_VAR_6", "x": 1, "y": 4, "elevation": 3, @@ -63,10 +63,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "UnknownMap_00_04_EventScript_1604F8", - "flag": "105" + "flag": "FLAG_HIDE_UNION_ROOM_7" }, { - "graphics_id": "245", + "graphics_id": "MAP_OBJ_GFX_VAR_5", "x": 7, "y": 4, "elevation": 3, @@ -76,10 +76,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "UnknownMap_00_04_EventScript_1604EE", - "flag": "104" + "flag": "FLAG_HIDE_UNION_ROOM_6" }, { - "graphics_id": "244", + "graphics_id": "MAP_OBJ_GFX_VAR_4", "x": 13, "y": 4, "elevation": 3, @@ -89,10 +89,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "UnknownMap_00_04_EventScript_1604E4", - "flag": "103" + "flag": "FLAG_HIDE_UNION_ROOM_5" }, { - "graphics_id": "242", + "graphics_id": "MAP_OBJ_GFX_VAR_2", "x": 10, "y": 6, "elevation": 3, @@ -102,10 +102,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "UnknownMap_00_04_EventScript_1604D0", - "flag": "101" + "flag": "FLAG_HIDE_UNION_ROOM_3" }, { - "graphics_id": "241", + "graphics_id": "MAP_OBJ_GFX_VAR_1", "x": 13, "y": 8, "elevation": 3, @@ -115,10 +115,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "UnknownMap_00_04_EventScript_1604C6", - "flag": "100" + "flag": "FLAG_HIDE_UNION_ROOM_2" }, { - "graphics_id": "240", + "graphics_id": "MAP_OBJ_GFX_VAR_0", "x": 4, "y": 6, "elevation": 3, @@ -128,7 +128,7 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "UnknownMap_00_04_EventScript_1604BC", - "flag": "99" + "flag": "FLAG_HIDE_UNION_ROOM_1" } ], "warp_events": [ diff --git a/data/maps/UnknownMap_00_04/scripts.inc b/data/maps/UnknownMap_00_04/scripts.inc index 94056b155..0358b7d8a 100644 --- a/data/maps/UnknownMap_00_04/scripts.inc +++ b/data/maps/UnknownMap_00_04/scripts.inc @@ -4,14 +4,14 @@ UnknownMap_00_04_MapScripts:: @ 816047C .byte 0 UnknownMap_00_04_MapScript1_160487:: @ 8160487 - setflag FLAG_0x063 - setflag FLAG_0x064 - setflag FLAG_0x065 - setflag FLAG_0x066 - setflag FLAG_0x067 - setflag FLAG_0x068 - setflag FLAG_0x069 - setflag FLAG_0x06A + setflag FLAG_HIDE_UNION_ROOM_1 + setflag FLAG_HIDE_UNION_ROOM_2 + setflag FLAG_HIDE_UNION_ROOM_3 + setflag FLAG_HIDE_UNION_ROOM_4 + setflag FLAG_HIDE_UNION_ROOM_5 + setflag FLAG_HIDE_UNION_ROOM_6 + setflag FLAG_HIDE_UNION_ROOM_7 + setflag FLAG_HIDE_UNION_ROOM_8 removeobject 9 removeobject 8 removeobject 7 diff --git a/data/maps/VermilionCity/map.json b/data/maps/VermilionCity/map.json index 88387daef..e9d3a097d 100644 --- a/data/maps/VermilionCity/map.json +++ b/data/maps/VermilionCity/map.json @@ -25,7 +25,7 @@ ], "object_events": [ { - "graphics_id": "23", + "graphics_id": "MAP_OBJ_GFX_WOMAN_1", "x": 22, "y": 11, "elevation": 3, @@ -38,7 +38,7 @@ "flag": "0" }, { - "graphics_id": "32", + "graphics_id": "MAP_OBJ_GFX_OLD_MAN_1", "x": 17, "y": 9, "elevation": 3, @@ -51,7 +51,7 @@ "flag": "0" }, { - "graphics_id": "33", + "graphics_id": "MAP_OBJ_GFX_OLD_MAN_2", "x": 36, "y": 10, "elevation": 0, @@ -64,7 +64,7 @@ "flag": "0" }, { - "graphics_id": "130", + "graphics_id": "MAP_OBJ_GFX_MACHOP", "x": 35, "y": 11, "elevation": 3, @@ -77,7 +77,7 @@ "flag": "0" }, { - "graphics_id": "62", + "graphics_id": "MAP_OBJ_GFX_SAILOR", "x": 31, "y": 30, "elevation": 3, @@ -90,7 +90,7 @@ "flag": "0" }, { - "graphics_id": "62", + "graphics_id": "MAP_OBJ_GFX_SAILOR", "x": 24, "y": 33, "elevation": 3, @@ -103,7 +103,7 @@ "flag": "0" }, { - "graphics_id": "95", + "graphics_id": "MAP_OBJ_GFX_CUT_TREE", "x": 19, "y": 24, "elevation": 3, @@ -112,11 +112,11 @@ "movement_range_y": 1, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "VermilionCity_EventScript_1BDF13", - "flag": "18" + "script": "EventScript_InteractWithCutTreeObject", + "flag": "FLAG_TEMP_12" }, { - "graphics_id": "55", + "graphics_id": "MAP_OBJ_GFX_SCIENTIST", "x": 25, "y": 7, "elevation": 3, @@ -126,7 +126,7 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "VermilionCity_EventScript_166C20", - "flag": "161" + "flag": "FLAG_HIDE_VERMILION_CITY_OAKS_AIDE" } ], "warp_events": [ @@ -281,8 +281,9 @@ "y": 11, "elevation": 3, "item": "ITEM_MAX_ETHER", - "flag": "48", - "unknown": 1 + "flag": "HIDDEN_ITEM_VERMILION_CITY_MAX_ETHER", + "quantity": 1, + "underfoot": false } ] } diff --git a/data/maps/VermilionCity/scripts.inc b/data/maps/VermilionCity/scripts.inc index c809fd7bd..fcacff2e3 100644 --- a/data/maps/VermilionCity/scripts.inc +++ b/data/maps/VermilionCity/scripts.inc @@ -22,12 +22,12 @@ Movement_166903:: @ 8166903 VermilionCity_MapScript1_166906:: @ 8166906 setworldmapflag FLAG_WORLD_MAP_VERMILION_CITY - checkflag FLAG_0x2F9 - call_if 1, EventScript_166913 + checkflag FLAG_TALKED_TO_OAKS_AIDE_IN_VERMILION + call_if TRUE, EventScript_166913 end EventScript_166913:: @ 8166913 - setflag FLAG_0x0A1 + setflag FLAG_HIDE_VERMILION_CITY_OAKS_AIDE return VermilionCity_EventScript_166917:: @ 8166917 @@ -38,7 +38,7 @@ VermilionCity_EventScript_166920:: @ 8166920 lock faceplayer compare_var_to_value VAR_MAP_SCENE_VERMILION_CITY, 3 - goto_if_eq EventScript_166937 + goto_if eq, EventScript_166937 msgbox gUnknown_817F776 release end @@ -52,35 +52,35 @@ VermilionCity_EventScript_166941:: @ 8166941 lock faceplayer compare_var_to_value VAR_MAP_SCENE_VERMILION_CITY, 3 - goto_if_eq EventScript_166996 + goto_if eq, EventScript_166996 msgbox gUnknown_817FA22 release end EventScript_166958:: @ 8166958 - checkflag FLAG_0x84A - goto_if 0, EventScript_1A77B0 + checkflag FLAG_SYS_GOT_MYSTIC_TICKET + goto_if FALSE, EventScript_1A77B0 checkitem ITEM_MYSTIC_TICKET, 1 compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_1A77B0 + goto_if eq, EventScript_1A77B0 goto EventScript_1A77AA end EventScript_166977:: @ 8166977 - checkflag FLAG_0x84B - goto_if 0, EventScript_1A77B0 + checkflag FLAG_SYS_GOT_AURORA_TICKET + goto_if FALSE, EventScript_1A77B0 checkitem ITEM_AURORA_TICKET, 1 compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_1A77B0 + goto_if eq, EventScript_1A77B0 goto EventScript_1A77AA end EventScript_166996:: @ 8166996 - setvar VAR_0x8004, 0 + setvar VAR_0x8004, SEAGALLOP_VERMILION_CITY compare_var_to_value VAR_MAP_SCENE_ONE_ISLAND_POKEMON_CENTER_1F, 5 - goto_if 4, EventScript_1669BB + goto_if ge, EventScript_1669BB compare_var_to_value VAR_MAP_SCENE_ONE_ISLAND_POKEMON_CENTER_1F, 1 - goto_if 4, EventScript_166B3B + goto_if ge, EventScript_166B3B msgbox gUnknown_817FB10 release end @@ -88,15 +88,15 @@ EventScript_166996:: @ 8166996 EventScript_1669BB:: @ 81669BB special sub_8110AB4 compare_var_to_value VAR_RESULT, 2 - goto_if_eq EventScript_1A7AE0 + goto_if eq, EventScript_1A7AE0 special sub_8112364 call EventScript_166958 compare_var_to_value VAR_RESULT, 1 - goto_if_eq EventScript_1669FD + goto_if eq, EventScript_1669FD call EventScript_166977 compare_var_to_value VAR_RESULT, 1 - goto_if_eq EventScript_166A5F - setvar VAR_0x8004, 0 + goto_if eq, EventScript_166A5F + setvar VAR_0x8004, SEAGALLOP_VERMILION_CITY message Text_17FBB8 waitmessage goto EventScript_1A911E @@ -105,12 +105,12 @@ EventScript_1669BB:: @ 81669BB EventScript_1669FD:: @ 81669FD call EventScript_166977 compare_var_to_value VAR_RESULT, 1 - goto_if_eq EventScript_166AB1 - checkflag FLAG_0x2F0 - call_if 0, EventScript_166A53 + goto_if eq, EventScript_166AB1 + checkflag FLAG_SHOWED_MYSTICTICKET_TO_CAPTAIN + call_if FALSE, EventScript_166A53 message Text_17FCC1 waitmessage - multichoice 17, 6, 54, 0 + multichoice 17, 6, MULTICHOICE_SEVII_NAVEL, FALSE switch VAR_RESULT case 0, EventScript_1A911E case 1, EventScript_166B0B @@ -119,16 +119,16 @@ EventScript_1669FD:: @ 81669FD end EventScript_166A53:: @ 8166A53 - setflag FLAG_0x2F0 + setflag FLAG_SHOWED_MYSTICTICKET_TO_CAPTAIN msgbox gUnknown_817FC00 return EventScript_166A5F:: @ 8166A5F - checkflag FLAG_0x2F1 - call_if 0, EventScript_166AA5 + checkflag FLAG_SHOWED_AURORATICKET_TO_CAPTAIN + call_if FALSE, EventScript_166AA5 message Text_17FCC1 waitmessage - multichoice 13, 6, 55, 0 + multichoice 13, 6, MULTICHOICE_SEVII_BIRTH, FALSE switch VAR_RESULT case 0, EventScript_1A911E case 1, EventScript_166B23 @@ -137,18 +137,18 @@ EventScript_166A5F:: @ 8166A5F end EventScript_166AA5:: @ 8166AA5 - setflag FLAG_0x2F1 + setflag FLAG_SHOWED_AURORATICKET_TO_CAPTAIN msgbox gUnknown_817FC5F return EventScript_166AB1:: @ 8166AB1 - checkflag FLAG_0x2F0 - call_if 0, EventScript_166A53 - checkflag FLAG_0x2F1 - call_if 0, EventScript_166AA5 + checkflag FLAG_SHOWED_MYSTICTICKET_TO_CAPTAIN + call_if FALSE, EventScript_166A53 + checkflag FLAG_SHOWED_AURORATICKET_TO_CAPTAIN + call_if FALSE, EventScript_166AA5 message Text_17FCC1 waitmessage - multichoice 13, 5, 56, 0 + multichoice 13, 5, MULTICHOICE_SEVII_NAVEL_BIRTH, FALSE switch VAR_RESULT case 0, EventScript_1A911E case 1, EventScript_166B0B @@ -159,23 +159,23 @@ EventScript_166AB1:: @ 8166AB1 EventScript_166B0B:: @ 8166B0B msgbox gUnknown_817FCEC - setvar VAR_0x8004, 0 - setvar VAR_0x8006, 9 + setvar VAR_0x8004, SEAGALLOP_VERMILION_CITY + setvar VAR_0x8006, SEAGALLOP_NAVEL_ROCK goto EventScript_1A90DA end EventScript_166B23:: @ 8166B23 msgbox gUnknown_817FD5F - setvar VAR_0x8004, 0 - setvar VAR_0x8006, 10 + setvar VAR_0x8004, SEAGALLOP_VERMILION_CITY + setvar VAR_0x8006, SEAGALLOP_BIRTH_ISLAND goto EventScript_1A90DA end EventScript_166B3B:: @ 8166B3B message Text_17FB23 waitmessage - setvar VAR_0x8004, 0 - multichoice 19, 5, 57, 0 + setvar VAR_0x8004, SEAGALLOP_VERMILION_CITY + multichoice 19, 5, MULTICHOICE_SEAGALLOP_123, FALSE switch VAR_RESULT case 0, EventScript_1A8FEE case 1, EventScript_1A8FF9 @@ -210,10 +210,10 @@ EventScript_166BA0:: @ 8166BA0 applymovement 255, Movement_1A75EB waitmovement 0 compare_var_to_value VAR_MAP_SCENE_VERMILION_CITY, 3 - goto_if_eq EventScript_166BED + goto_if eq, EventScript_166BED msgbox gUnknown_817FA3C - checkflag FLAG_0x234 - goto_if 0, EventScript_166BDE + checkflag FLAG_GOT_SS_TICKET + goto_if FALSE, EventScript_166BDE msgbox gUnknown_817FA77 setvar VAR_VERMILION_CITY_TICKET_CHECK_TRIGGER, 1 releaseall @@ -226,11 +226,11 @@ EventScript_166BDE:: @ 8166BDE end EventScript_166BED:: @ 8166BED - setvar VAR_0x8004, 0 + setvar VAR_0x8004, SEAGALLOP_VERMILION_CITY compare_var_to_value VAR_MAP_SCENE_ONE_ISLAND_POKEMON_CENTER_1F, 5 - goto_if 4, EventScript_1669BB + goto_if ge, EventScript_1669BB compare_var_to_value VAR_MAP_SCENE_ONE_ISLAND_POKEMON_CENTER_1F, 1 - goto_if 4, EventScript_166B3B + goto_if ge, EventScript_166B3B msgbox gUnknown_817FB10 closemessage goto EventScript_1A9108 @@ -243,7 +243,7 @@ VermilionCity_EventScript_166C17:: @ 8166C17 VermilionCity_EventScript_166C20:: @ 8166C20 lock faceplayer - setflag FLAG_0x2F9 + setflag FLAG_TALKED_TO_OAKS_AIDE_IN_VERMILION msgbox gUnknown_817FDD2 release end @@ -277,9 +277,7 @@ VermilionCity_EventScript_166C65:: @ 8166C65 VermilionCity_EventScript_166C6E:: @ 8166C6E lockall - setvar VAR_0x8004, 4 - setvar VAR_0x8005, 0 - special SetFlavorTextFlagFromSpecialVars + famechecker FAMECHECKER_LTSURGE, 0 msgbox gUnknown_817F9CC releaseall end diff --git a/data/maps/VermilionCity_Gym/map.json b/data/maps/VermilionCity_Gym/map.json index dfb904da2..c5a9d6d38 100644 --- a/data/maps/VermilionCity_Gym/map.json +++ b/data/maps/VermilionCity_Gym/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "82", + "graphics_id": "MAP_OBJ_GFX_LT_SURGE", "x": 5, "y": 2, "elevation": 3, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "30", + "graphics_id": "MAP_OBJ_GFX_BALDING_MAN", "x": 2, "y": 11, "elevation": 3, @@ -40,7 +40,7 @@ "flag": "0" }, { - "graphics_id": "62", + "graphics_id": "MAP_OBJ_GFX_SAILOR", "x": 8, "y": 13, "elevation": 3, @@ -53,7 +53,7 @@ "flag": "0" }, { - "graphics_id": "91", + "graphics_id": "MAP_OBJ_GFX_GYM_GUY", "x": 4, "y": 17, "elevation": 3, @@ -66,7 +66,7 @@ "flag": "0" }, { - "graphics_id": "61", + "graphics_id": "MAP_OBJ_GFX_GENTLEMAN", "x": 7, "y": 8, "elevation": 3, diff --git a/data/maps/VermilionCity_Gym/scripts.inc b/data/maps/VermilionCity_Gym/scripts.inc index 36430c676..5d08e2b3a 100644 --- a/data/maps/VermilionCity_Gym/scripts.inc +++ b/data/maps/VermilionCity_Gym/scripts.inc @@ -4,10 +4,10 @@ VermilionCity_Gym_MapScripts:: @ 816B69E .byte 0 VermilionCity_Gym_MapScript1_16B6A9:: @ 816B6A9 - checkflag FLAG_0x001 - call_if 1, EventScript_16B6BC - checkflag FLAG_0x264 - call_if 1, EventScript_16B717 + checkflag FLAG_TEMP_1 + call_if TRUE, EventScript_16B6BC + checkflag FLAG_FOUND_BOTH_VERMILION_GYM_SWITCHES + call_if TRUE, EventScript_16B717 end EventScript_16B6BC:: @ 816B6BC @@ -41,9 +41,9 @@ VermilionCity_Gym_MapScript2_16B772:: @ 816B772 end EventScript_16B778:: @ 816B778 - checkflag FLAG_0x264 - goto_if_eq EventScript_1A77A9 - special sub_80CADEC + checkflag FLAG_FOUND_BOTH_VERMILION_GYM_SWITCHES + goto_if TRUE, EventScript_1A77A9 + special Special_SetVermilionTrashCans copyvar VAR_0x4000, VAR_0x8004 copyvar VAR_0x4001, VAR_0x8005 return @@ -141,16 +141,16 @@ VermilionCity_Gym_EventScript_16B837:: @ 816B837 EventScript_16B843:: @ 816B843 special sub_8110AB4 compare_var_to_value VAR_RESULT, 2 - goto_if_eq EventScript_1A7AE0 + goto_if eq, EventScript_1A7AE0 special sub_8112364 copyvar VAR_0x8004, VAR_0x4000 copyvar VAR_0x8005, VAR_0x4001 - checkflag FLAG_0x264 - goto_if_eq EventScript_16B8E5 - checkflag FLAG_0x001 - goto_if_eq EventScript_16B89E + checkflag FLAG_FOUND_BOTH_VERMILION_GYM_SWITCHES + goto_if TRUE, EventScript_16B8E5 + checkflag FLAG_TEMP_1 + goto_if TRUE, EventScript_16B89E compare_var_to_var VAR_0x8004, VAR_0x8008 - goto_if_eq EventScript_16B885 + goto_if eq, EventScript_16B885 msgbox gUnknown_8195289 releaseall end @@ -161,16 +161,16 @@ EventScript_16B885:: @ 816B885 waitse call EventScript_16B6BC special DrawWholeMapView - setflag FLAG_0x001 + setflag FLAG_TEMP_1 releaseall end EventScript_16B89E:: @ 816B89E compare_var_to_var VAR_0x8005, VAR_0x8008 - goto_if_eq EventScript_16B8CB + goto_if eq, EventScript_16B8CB msgbox gUnknown_819536C - clearflag FLAG_0x001 - special sub_80CADEC + clearflag FLAG_TEMP_1 + special Special_SetVermilionTrashCans copyvar VAR_0x4000, VAR_0x8004 copyvar VAR_0x4001, VAR_0x8005 call EventScript_16B8EF @@ -185,7 +185,7 @@ EventScript_16B8CB:: @ 816B8CB special DrawWholeMapView playse SE_KI_GASYAN waitse - setflag FLAG_0x264 + setflag FLAG_FOUND_BOTH_VERMILION_GYM_SWITCHES releaseall end @@ -208,42 +208,37 @@ EventScript_16B8EF:: @ 816B8EF return VermilionCity_Gym_EventScript_16B94A:: @ 816B94A - setvar VAR_0x8004, 4 - setvar VAR_0x8005, 2 - special UpdatePickStateFromSpecialVar8005 - trainerbattle 1, 416, 0, Text_194BA4, Text_194E03, EventScript_16B97C - checkflag FLAG_0x231 - goto_if 0, EventScript_16B9AF + famechecker FAMECHECKER_LTSURGE, FCPICKSTATE_COLORED, UpdatePickStateFromSpecialVar8005 + trainerbattle TRAINER_BATTLE_CONTINUE_SCRIPT_NO_MUSIC, TRAINER_LEADER_LT_SURGE, 0, Text_194BA4, Text_194E03, EventScript_16B97C + checkflag FLAG_GOT_TM34_FROM_SURGE + goto_if FALSE, EventScript_16B9AF msgbox gUnknown_8194C8E release end EventScript_16B97C:: @ 816B97C - setvar VAR_0x8004, 4 - setvar VAR_0x8005, 1 - special SetFlavorTextFlagFromSpecialVars - checkflag FLAG_0x23B - call_if 0, EventScript_16B9AB - clearflag FLAG_0x0A0 - setflag FLAG_0x4B2 - setflag FLAG_0x822 - setvar VAR_0x8008, 3 - call EventScript_1A6B18 + famechecker FAMECHECKER_LTSURGE, 1 + checkflag FLAG_GOT_HM05 + call_if FALSE, EventScript_16B9AB + clearflag FLAG_HIDE_FAME_CHECKER_LT_SURGE_JOURNAL + setflag FLAG_DEFEATED_LT_SURGE + setflag FLAG_BADGE03_GET + set_gym_trainers 3 goto EventScript_16B9AF end EventScript_16B9AB:: @ 816B9AB - clearflag FLAG_0x0A1 + clearflag FLAG_HIDE_VERMILION_CITY_OAKS_AIDE return EventScript_16B9AF:: @ 816B9AF msgbox gUnknown_8194CFA checkitemspace ITEM_TM34, 1 compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_16B9F0 + goto_if eq, EventScript_16B9F0 additem ITEM_TM34, 1 giveitemfanfaremsg gUnknown_8194D87, ITEM_TM34 - setflag FLAG_0x231 + setflag FLAG_GOT_TM34_FROM_SURGE msgbox gUnknown_8194DA8 release end @@ -254,38 +249,32 @@ EventScript_16B9F0:: @ 816B9F0 end VermilionCity_Gym_EventScript_16B9FA:: @ 816B9FA - trainerbattle 0, 141, 0, Text_194FBD, Text_194FF1 - setvar VAR_0x8004, 4 - setvar VAR_0x8005, 4 - special SetFlavorTextFlagFromSpecialVars + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_SAILOR_DWAYNE, 0, Text_194FBD, Text_194FF1 + famechecker FAMECHECKER_LTSURGE, 4 msgbox gUnknown_8195004, 6 end VermilionCity_Gym_EventScript_16BA1E:: @ 816BA1E - trainerbattle 0, 220, 0, Text_194F1F, Text_194F6F + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_ENGINEER_BAILY, 0, Text_194F1F, Text_194F6F msgbox gUnknown_8194F76, 6 end VermilionCity_Gym_EventScript_16BA35:: @ 816BA35 - trainerbattle 2, 423, 0, Text_194E57, Text_194EA5, EventScript_16BA5D - setvar VAR_0x8004, 4 - setvar VAR_0x8005, 3 - special SetFlavorTextFlagFromSpecialVars + trainerbattle TRAINER_BATTLE_CONTINUE_SCRIPT, TRAINER_GENTLEMAN_TUCKER, 0, Text_194E57, Text_194EA5, EventScript_16BA5D + famechecker FAMECHECKER_LTSURGE, 3 msgbox gUnknown_8194EBD, 6 end EventScript_16BA5D:: @ 816BA5D - setvar VAR_0x8004, 4 - setvar VAR_0x8005, 2 - special SetFlavorTextFlagFromSpecialVars + famechecker FAMECHECKER_LTSURGE, 2 release end VermilionCity_Gym_EventScript_16BA6C:: @ 816BA6C lock faceplayer - checkflag FLAG_0x4B2 - goto_if_eq EventScript_16BA81 + checkflag FLAG_DEFEATED_LT_SURGE + goto_if TRUE, EventScript_16BA81 msgbox gUnknown_81950B4 release end @@ -297,8 +286,8 @@ EventScript_16BA81:: @ 816BA81 VermilionCity_Gym_EventScript_16BA8B:: @ 816BA8B lockall - checkflag FLAG_0x822 - goto_if_eq EventScript_16BA9F + checkflag FLAG_BADGE03_GET + goto_if TRUE, EventScript_16BA9F msgbox gUnknown_819520B releaseall end diff --git a/data/maps/VermilionCity_House1/map.json b/data/maps/VermilionCity_House1/map.json index f83e884a9..c45c3f65f 100644 --- a/data/maps/VermilionCity_House1/map.json +++ b/data/maps/VermilionCity_House1/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "57", + "graphics_id": "MAP_OBJ_GFX_FISHER", "x": 4, "y": 5, "elevation": 3, diff --git a/data/maps/VermilionCity_House1/scripts.inc b/data/maps/VermilionCity_House1/scripts.inc index a7de85e8f..6020f9cb0 100644 --- a/data/maps/VermilionCity_House1/scripts.inc +++ b/data/maps/VermilionCity_House1/scripts.inc @@ -4,11 +4,11 @@ VermilionCity_House1_MapScripts:: @ 816B3A6 VermilionCity_House1_EventScript_16B3A7:: @ 816B3A7 lock faceplayer - checkflag FLAG_0x240 - goto_if_eq EventScript_16B3CF + checkflag FLAG_GOT_OLD_ROD + goto_if TRUE, EventScript_16B3CF msgbox gUnknown_8193EC1, MSGBOX_YESNO compare_var_to_value VAR_RESULT, 1 - goto_if_eq EventScript_16B3D9 + goto_if eq, EventScript_16B3D9 msgbox gUnknown_8194028 release end @@ -21,11 +21,11 @@ EventScript_16B3CF:: @ 816B3CF EventScript_16B3D9:: @ 816B3D9 checkitemspace ITEM_OLD_ROD, 1 compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_16B41A + goto_if eq, EventScript_16B41A additem ITEM_OLD_ROD, 1 msgbox gUnknown_8193F2A giveitemfanfaremsg gUnknown_8193F81, ITEM_OLD_ROD - setflag FLAG_0x240 + setflag FLAG_GOT_OLD_ROD msgbox gUnknown_8193FAF release end diff --git a/data/maps/VermilionCity_House2/map.json b/data/maps/VermilionCity_House2/map.json index 980e3eae8..94cbf7c94 100644 --- a/data/maps/VermilionCity_House2/map.json +++ b/data/maps/VermilionCity_House2/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "17", + "graphics_id": "MAP_OBJ_GFX_LITTLE_GIRL", "x": 4, "y": 4, "elevation": 3, diff --git a/data/maps/VermilionCity_House2/scripts.inc b/data/maps/VermilionCity_House2/scripts.inc index 9179fa716..fa9fd6453 100644 --- a/data/maps/VermilionCity_House2/scripts.inc +++ b/data/maps/VermilionCity_House2/scripts.inc @@ -1 +1,40 @@ -@ .include "data/maps/VermilionCity_House2/scripts.inc" +VermilionCity_House2_MapScripts:: @ 816B5D6 + .byte 0 + +VermilionCity_House2_EventScript_16B5D7:: @ 816B5D7 + lock + faceplayer + setvar VAR_0x8008, 3 + call EventScript_1A8CAD + checkflag FLAG_DID_CH_DING_TRADE + goto_if TRUE, EventScript_16B649 + msgbox gUnknown_81949CB, MSGBOX_YESNO + compare_var_to_value VAR_RESULT, 0 + goto_if eq, EventScript_16B631 + call EventScript_1A8CBD + compare_var_to_value VAR_0x8004, 6 + goto_if ge, EventScript_16B631 + call EventScript_1A8CC9 + compare_var_to_var VAR_RESULT, VAR_0x8009 + goto_if ne, EventScript_16B63B + call EventScript_1A8CD9 + msgbox gUnknown_8194A44 + setflag FLAG_DID_CH_DING_TRADE + release + end + +EventScript_16B631:: @ 816B631 + msgbox gUnknown_81949FD + release + end + +EventScript_16B63B:: @ 816B63B + getspeciesname 0, VAR_0x8009 + msgbox gUnknown_8194A0D + release + end + +EventScript_16B649:: @ 816B649 + msgbox gUnknown_8194A4F + release + end diff --git a/data/maps/VermilionCity_House3/map.json b/data/maps/VermilionCity_House3/map.json index 4ef4347b3..d1a3688f0 100644 --- a/data/maps/VermilionCity_House3/map.json +++ b/data/maps/VermilionCity_House3/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "19", + "graphics_id": "MAP_OBJ_GFX_BOY", "x": 7, "y": 4, "elevation": 3, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "116", + "graphics_id": "MAP_OBJ_GFX_PIDGEY", "x": 2, "y": 5, "elevation": 3, @@ -40,7 +40,7 @@ "flag": "0" }, { - "graphics_id": "105", + "graphics_id": "MAP_OBJ_GFX_CLIPBOARD", "x": 6, "y": 4, "elevation": 0, @@ -53,7 +53,7 @@ "flag": "0" }, { - "graphics_id": "22", + "graphics_id": "MAP_OBJ_GFX_LASS", "x": 2, "y": 4, "elevation": 3, diff --git a/data/maps/VermilionCity_Mart/map.json b/data/maps/VermilionCity_Mart/map.json index 519227231..f53ba795a 100644 --- a/data/maps/VermilionCity_Mart/map.json +++ b/data/maps/VermilionCity_Mart/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "68", + "graphics_id": "MAP_OBJ_GFX_CLERK", "x": 2, "y": 3, "elevation": 0, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "42", + "graphics_id": "MAP_OBJ_GFX_COOLTRAINER_F", "x": 4, "y": 2, "elevation": 3, @@ -40,7 +40,7 @@ "flag": "0" }, { - "graphics_id": "30", + "graphics_id": "MAP_OBJ_GFX_BALDING_MAN", "x": 9, "y": 4, "elevation": 3, diff --git a/data/maps/VermilionCity_Mart/scripts.inc b/data/maps/VermilionCity_Mart/scripts.inc index c83e239d9..d7beb6e7e 100644 --- a/data/maps/VermilionCity_Mart/scripts.inc +++ b/data/maps/VermilionCity_Mart/scripts.inc @@ -12,7 +12,7 @@ VermilionCity_Mart_EventScript_16B65D:: @ 816B65D VermilionCity_Mart_EventScript_16B666:: @ 816B666 special sub_8110AB4 compare_var_to_value VAR_RESULT, 2 - goto_if_eq EventScript_1A7AE0 + goto_if eq, EventScript_1A7AE0 lock faceplayer message Text_1A6211 diff --git a/data/maps/VermilionCity_PokemonCenter_1F/map.json b/data/maps/VermilionCity_PokemonCenter_1F/map.json index 750104631..aaf4bc861 100644 --- a/data/maps/VermilionCity_PokemonCenter_1F/map.json +++ b/data/maps/VermilionCity_PokemonCenter_1F/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "64", + "graphics_id": "MAP_OBJ_GFX_NURSE", "x": 7, "y": 2, "elevation": 3, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "25", + "graphics_id": "MAP_OBJ_GFX_MAN", "x": 4, "y": 8, "elevation": 3, @@ -40,7 +40,7 @@ "flag": "0" }, { - "graphics_id": "56", + "graphics_id": "MAP_OBJ_GFX_HIKER", "x": 12, "y": 5, "elevation": 3, @@ -53,7 +53,7 @@ "flag": "0" }, { - "graphics_id": "18", + "graphics_id": "MAP_OBJ_GFX_YOUNGSTER", "x": 14, "y": 4, "elevation": 3, @@ -66,7 +66,7 @@ "flag": "0" }, { - "graphics_id": "42", + "graphics_id": "MAP_OBJ_GFX_COOLTRAINER_F", "x": 6, "y": 4, "elevation": 3, @@ -89,7 +89,7 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "VermilionCity_PokemonCenter_1F_EventScript_1ACE83", - "flag": "160" + "flag": "FLAG_HIDE_FAME_CHECKER_LT_SURGE_JOURNAL" }, { "graphics_id": "0", @@ -102,7 +102,7 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "VermilionCity_PokemonCenter_1F_EventScript_1ACE83", - "flag": "160" + "flag": "FLAG_HIDE_FAME_CHECKER_LT_SURGE_JOURNAL" } ], "warp_events": [ diff --git a/data/maps/VermilionCity_PokemonCenter_2F/map.json b/data/maps/VermilionCity_PokemonCenter_2F/map.json index 7c0a45d41..789cc891a 100644 --- a/data/maps/VermilionCity_PokemonCenter_2F/map.json +++ b/data/maps/VermilionCity_PokemonCenter_2F/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "65", + "graphics_id": "MAP_OBJ_GFX_CABLE_CLUB_RECEPTIONIST", "x": 6, "y": 2, "elevation": 3, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "65", + "graphics_id": "MAP_OBJ_GFX_CABLE_CLUB_RECEPTIONIST", "x": 2, "y": 2, "elevation": 3, @@ -40,7 +40,7 @@ "flag": "0" }, { - "graphics_id": "65", + "graphics_id": "MAP_OBJ_GFX_CABLE_CLUB_RECEPTIONIST", "x": 10, "y": 2, "elevation": 3, @@ -53,7 +53,7 @@ "flag": "0" }, { - "graphics_id": "69", + "graphics_id": "MAP_OBJ_GFX_MG_DELIVERYMAN", "x": 1, "y": 2, "elevation": 3, @@ -63,7 +63,7 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "VermilionCity_PokemonCenter_2F_EventScript_1BB1D2", - "flag": "112" + "flag": "FLAG_HIDE_MG_DELIVERYMEN" } ], "warp_events": [ diff --git a/data/maps/VermilionCity_PokemonFanClub/map.json b/data/maps/VermilionCity_PokemonFanClub/map.json index 4d5c86771..f4ec8fe14 100644 --- a/data/maps/VermilionCity_PokemonFanClub/map.json +++ b/data/maps/VermilionCity_PokemonFanClub/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "61", + "graphics_id": "MAP_OBJ_GFX_GENTLEMAN", "x": 5, "y": 4, "elevation": 4, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "48", + "graphics_id": "MAP_OBJ_GFX_WORKER_F", "x": 6, "y": 4, "elevation": 4, @@ -40,7 +40,7 @@ "flag": "0" }, { - "graphics_id": "120", + "graphics_id": "MAP_OBJ_GFX_PIKACHU", "x": 7, "y": 6, "elevation": 3, @@ -53,7 +53,7 @@ "flag": "0" }, { - "graphics_id": "126", + "graphics_id": "MAP_OBJ_GFX_SEEL", "x": 4, "y": 6, "elevation": 3, @@ -66,7 +66,7 @@ "flag": "0" }, { - "graphics_id": "23", + "graphics_id": "MAP_OBJ_GFX_WOMAN_1", "x": 4, "y": 5, "elevation": 0, @@ -79,7 +79,7 @@ "flag": "0" }, { - "graphics_id": "27", + "graphics_id": "MAP_OBJ_GFX_FAT_MAN", "x": 7, "y": 5, "elevation": 0, diff --git a/data/maps/VermilionCity_PokemonFanClub/scripts.inc b/data/maps/VermilionCity_PokemonFanClub/scripts.inc index fc1625e39..397c174ea 100644 --- a/data/maps/VermilionCity_PokemonFanClub/scripts.inc +++ b/data/maps/VermilionCity_PokemonFanClub/scripts.inc @@ -4,11 +4,11 @@ VermilionCity_PokemonFanClub_MapScripts:: @ 816B47E VermilionCity_PokemonFanClub_EventScript_16B47F:: @ 816B47F lock faceplayer - checkflag FLAG_0x241 - goto_if_eq EventScript_16B4A7 + checkflag FLAG_GOT_BIKE_VOUCHER + goto_if TRUE, EventScript_16B4A7 msgbox gUnknown_819457E, MSGBOX_YESNO compare_var_to_value VAR_RESULT, 1 - goto_if_eq EventScript_16B4B1 + goto_if eq, EventScript_16B4B1 msgbox gUnknown_8194860 release end @@ -22,8 +22,8 @@ EventScript_16B4B1:: @ 816B4B1 msgbox gUnknown_8194628 checkitemspace ITEM_BIKE_VOUCHER, 1 compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_16B4F2 - setflag FLAG_0x241 + goto_if eq, EventScript_16B4F2 + setflag FLAG_GOT_BIKE_VOUCHER additem ITEM_BIKE_VOUCHER, 1 giveitemfanfaremsg gUnknown_819474E, ITEM_BIKE_VOUCHER, 1, MUS_FAN5 msgbox gUnknown_819477C @@ -38,16 +38,14 @@ EventScript_16B4F2:: @ 816B4F2 VermilionCity_PokemonFanClub_EventScript_16B4FC:: @ 816B4FC lock faceplayer - checkflag FLAG_0x82C - goto_if_eq EventScript_16B511 + checkflag FLAG_SYS_GAME_CLEAR + goto_if TRUE, EventScript_16B511 msgbox gUnknown_81948E6 release end EventScript_16B511:: @ 816B511 - setvar VAR_0x8004, 1 - setvar VAR_0x8005, 1 - special SetFlavorTextFlagFromSpecialVars + famechecker FAMECHECKER_DAISY, 1 msgbox gUnknown_8194960 release end @@ -55,13 +53,13 @@ EventScript_16B511:: @ 816B511 VermilionCity_PokemonFanClub_EventScript_16B528:: @ 816B528 lock faceplayer - checkflag FLAG_0x003 - goto_if_eq EventScript_16B54B + checkflag FLAG_TEMP_3 + goto_if TRUE, EventScript_16B54B msgbox gUnknown_81944CC closemessage applymovement 5, Movement_1A75E5 waitmovement 0 - setflag FLAG_0x002 + setflag FLAG_TEMP_2 release end @@ -70,20 +68,20 @@ EventScript_16B54B:: @ 816B54B closemessage applymovement 5, Movement_1A75E5 waitmovement 0 - clearflag FLAG_0x003 + clearflag FLAG_TEMP_3 release end VermilionCity_PokemonFanClub_EventScript_16B563:: @ 816B563 lock faceplayer - checkflag FLAG_0x002 - goto_if_eq EventScript_16B586 + checkflag FLAG_TEMP_2 + goto_if TRUE, EventScript_16B586 msgbox gUnknown_819446F closemessage applymovement 6, Movement_1A75E5 waitmovement 0 - setflag FLAG_0x003 + setflag FLAG_TEMP_3 release end @@ -92,7 +90,7 @@ EventScript_16B586:: @ 816B586 closemessage applymovement 6, Movement_1A75E5 waitmovement 0 - clearflag FLAG_0x002 + clearflag FLAG_TEMP_2 release end @@ -123,44 +121,3 @@ VermilionCity_PokemonFanClub_EventScript_16B5C4:: @ 816B5C4 VermilionCity_PokemonFanClub_EventScript_16B5CD:: @ 816B5CD msgbox gUnknown_819493D, 3 end - -VermilionCity_House2_MapScripts:: @ 816B5D6 - .byte 0 - -VermilionCity_House2_EventScript_16B5D7:: @ 816B5D7 - lock - faceplayer - setvar VAR_0x8008, 3 - call EventScript_1A8CAD - checkflag FLAG_0x24D - goto_if_eq EventScript_16B649 - msgbox gUnknown_81949CB, MSGBOX_YESNO - compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_16B631 - call EventScript_1A8CBD - compare_var_to_value VAR_0x8004, 6 - goto_if 4, EventScript_16B631 - call EventScript_1A8CC9 - compare_var_to_var VAR_RESULT, VAR_0x8009 - goto_if 5, EventScript_16B63B - call EventScript_1A8CD9 - msgbox gUnknown_8194A44 - setflag FLAG_0x24D - release - end - -EventScript_16B631:: @ 816B631 - msgbox gUnknown_81949FD - release - end - -EventScript_16B63B:: @ 816B63B - getspeciesname 0, VAR_0x8009 - msgbox gUnknown_8194A0D - release - end - -EventScript_16B649:: @ 816B649 - msgbox gUnknown_8194A4F - release - end diff --git a/data/maps/VictoryRoad_1F/map.json b/data/maps/VictoryRoad_1F/map.json index f509d6232..4fb068476 100644 --- a/data/maps/VictoryRoad_1F/map.json +++ b/data/maps/VictoryRoad_1F/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "41", + "graphics_id": "MAP_OBJ_GFX_COOLTRAINER_M", "x": 5, "y": 2, "elevation": 3, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "42", + "graphics_id": "MAP_OBJ_GFX_COOLTRAINER_F", "x": 14, "y": 6, "elevation": 4, @@ -40,7 +40,7 @@ "flag": "0" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 12, "y": 3, "elevation": 3, @@ -50,10 +50,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "VictoryRoad_1F_EventScript_1BE9D2", - "flag": "425" + "flag": "FLAG_HIDE_VICTORY_ROAD_1F_RARE_CANDY" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 14, "y": 1, "elevation": 3, @@ -63,10 +63,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "VictoryRoad_1F_EventScript_1BE9DF", - "flag": "426" + "flag": "FLAG_HIDE_VICTORY_ROAD_1F_TM02" }, { - "graphics_id": "97", + "graphics_id": "MAP_OBJ_GFX_STRENGTH_BOULDER", "x": 7, "y": 18, "elevation": 3, @@ -75,11 +75,11 @@ "movement_range_y": 0, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "VictoryRoad_1F_EventScript_1BE11D", + "script": "EventScript_InteractWithStrengthBoulderObject", "flag": "0" }, { - "graphics_id": "97", + "graphics_id": "MAP_OBJ_GFX_STRENGTH_BOULDER", "x": 4, "y": 12, "elevation": 3, @@ -88,11 +88,11 @@ "movement_range_y": 0, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "VictoryRoad_1F_EventScript_1BE11D", + "script": "EventScript_InteractWithStrengthBoulderObject", "flag": "0" }, { - "graphics_id": "97", + "graphics_id": "MAP_OBJ_GFX_STRENGTH_BOULDER", "x": 16, "y": 3, "elevation": 3, @@ -101,7 +101,7 @@ "movement_range_y": 0, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "VictoryRoad_1F_EventScript_1BE11D", + "script": "EventScript_InteractWithStrengthBoulderObject", "flag": "0" } ], @@ -127,7 +127,7 @@ "x": 20, "y": 16, "elevation": 3, - "var": "VAR_0x4064", + "var": "VAR_MAP_SCENE_VICTORY_ROAD_1F", "var_value": 99, "script": "VictoryRoad_1F_EventScript_160F33" } @@ -138,9 +138,10 @@ "x": 12, "y": 12, "elevation": 0, - "item": "POCKET_KEY_ITEMS", - "flag": "37", - "unknown": 1 + "item": "ITEM_ULTRA_BALL", + "flag": "HIDDEN_ITEM_VICTORY_ROAD_1F_ULTRA_BALL", + "quantity": 1, + "underfoot": false }, { "type": "hidden_item", @@ -148,8 +149,9 @@ "y": 1, "elevation": 0, "item": "ITEM_FULL_RESTORE", - "flag": "38", - "unknown": 1 + "flag": "HIDDEN_ITEM_VICTORY_ROAD_1F_FULL_RESTORE", + "quantity": 1, + "underfoot": false } ] } diff --git a/data/maps/VictoryRoad_1F/scripts.inc b/data/maps/VictoryRoad_1F/scripts.inc index 1406ef4e5..20759c714 100644 --- a/data/maps/VictoryRoad_1F/scripts.inc +++ b/data/maps/VictoryRoad_1F/scripts.inc @@ -4,8 +4,8 @@ VictoryRoad_1F_MapScripts:: @ 8160F05 .byte 0 VictoryRoad_1F_MapScript1_160F10:: @ 8160F10 - compare_var_to_value VAR_0x4064, 100 - call_if 5, EventScript_160F1C + compare_var_to_value VAR_MAP_SCENE_VICTORY_ROAD_1F, 100 + call_if ne, EventScript_160F1C end EventScript_160F1C:: @ 8160F1C @@ -19,15 +19,15 @@ VictoryRoad_1F_MapScript2_160F2F:: @ 8160F2F VictoryRoad_1F_EventScript_160F33:: @ 8160F33 lockall - compare_var_to_value VAR_0x4064, 100 - goto_if_eq EventScript_160F62 + compare_var_to_value VAR_MAP_SCENE_VICTORY_ROAD_1F, 100 + goto_if eq, EventScript_160F62 setmetatile 12, 14, 721, 0 setmetatile 12, 15, 737, 0 playse SE_RU_GASYAN special DrawWholeMapView waitse moveobjectoffscreen 5 - setvar VAR_0x4064, 100 + setvar VAR_MAP_SCENE_VICTORY_ROAD_1F, 100 releaseall end @@ -36,11 +36,11 @@ EventScript_160F62:: @ 8160F62 end VictoryRoad_1F_EventScript_160F64:: @ 8160F64 - trainerbattle 0, 406, 0, Text_174710, Text_174738 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_COOLTRAINER_NAOMI, 0, Text_174710, Text_174738 msgbox gUnknown_8174744, 6 end VictoryRoad_1F_EventScript_160F7B:: @ 8160F7B - trainerbattle 0, 396, 0, Text_174784, Text_1747B8 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_COOLTRAINER_ROLANDO, 0, Text_174784, Text_1747B8 msgbox gUnknown_81747C8, 6 end diff --git a/data/maps/VictoryRoad_2F/map.json b/data/maps/VictoryRoad_2F/map.json index 1591bf1ee..dfbe906bd 100644 --- a/data/maps/VictoryRoad_2F/map.json +++ b/data/maps/VictoryRoad_2F/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "52", + "graphics_id": "MAP_OBJ_GFX_SUPER_NERD", "x": 7, "y": 4, "elevation": 3, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "54", + "graphics_id": "MAP_OBJ_GFX_BLACKBELT", "x": 20, "y": 11, "elevation": 4, @@ -40,7 +40,7 @@ "flag": "0" }, { - "graphics_id": "26", + "graphics_id": "MAP_OBJ_GFX_ROCKER", "x": 31, "y": 16, "elevation": 4, @@ -53,7 +53,7 @@ "flag": "0" }, { - "graphics_id": "25", + "graphics_id": "MAP_OBJ_GFX_MAN", "x": 26, "y": 6, "elevation": 3, @@ -66,7 +66,7 @@ "flag": "0" }, { - "graphics_id": "26", + "graphics_id": "MAP_OBJ_GFX_ROCKER", "x": 36, "y": 5, "elevation": 3, @@ -79,7 +79,7 @@ "flag": "0" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 17, "y": 6, "elevation": 3, @@ -89,10 +89,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "VictoryRoad_2F_EventScript_1BE9EC", - "flag": "427" + "flag": "FLAG_HIDE_VICTORY_ROAD_2F_GUARD_SPEC" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 40, "y": 7, "elevation": 3, @@ -102,10 +102,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "VictoryRoad_2F_EventScript_1BE9F9", - "flag": "428" + "flag": "FLAG_HIDE_VICTORY_ROAD_2F_TM07" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 25, "y": 13, "elevation": 3, @@ -115,10 +115,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "VictoryRoad_2F_EventScript_1BEA06", - "flag": "429" + "flag": "FLAG_HIDE_VICTORY_ROAD_2F_FULL_HEAL" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 14, "y": 13, "elevation": 3, @@ -128,10 +128,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "VictoryRoad_2F_EventScript_1BEA13", - "flag": "430" + "flag": "FLAG_HIDE_VICTORY_ROAD_2F_TM37" }, { - "graphics_id": "97", + "graphics_id": "MAP_OBJ_GFX_STRENGTH_BOULDER", "x": 8, "y": 7, "elevation": 3, @@ -140,11 +140,11 @@ "movement_range_y": 0, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "VictoryRoad_2F_EventScript_1BE11D", + "script": "EventScript_InteractWithStrengthBoulderObject", "flag": "0" }, { - "graphics_id": "97", + "graphics_id": "MAP_OBJ_GFX_STRENGTH_BOULDER", "x": 6, "y": 17, "elevation": 3, @@ -153,11 +153,11 @@ "movement_range_y": 0, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "VictoryRoad_2F_EventScript_1BE11D", + "script": "EventScript_InteractWithStrengthBoulderObject", "flag": "0" }, { - "graphics_id": "97", + "graphics_id": "MAP_OBJ_GFX_STRENGTH_BOULDER", "x": 33, "y": 19, "elevation": 3, @@ -166,11 +166,11 @@ "movement_range_y": 0, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "VictoryRoad_2F_EventScript_1BE11D", - "flag": "88" + "script": "EventScript_InteractWithStrengthBoulderObject", + "flag": "FLAG_HIDE_VICTORY_ROAD_2F_BOULDER" }, { - "graphics_id": "41", + "graphics_id": "MAP_OBJ_GFX_COOLTRAINER_M", "x": 40, "y": 9, "elevation": 3, @@ -254,7 +254,7 @@ "x": 2, "y": 19, "elevation": 3, - "var": "VAR_0x4065", + "var": "VAR_MAP_SCENE_VICTORY_ROAD_2F_BOULDER1", "var_value": 99, "script": "VictoryRoad_2F_EventScript_160FD5" }, @@ -263,7 +263,7 @@ "x": 14, "y": 19, "elevation": 3, - "var": "VAR_0x4066", + "var": "VAR_MAP_SCENE_VICTORY_ROAD_2F_BOULDER2", "var_value": 99, "script": "VictoryRoad_2F_EventScript_161006" } diff --git a/data/maps/VictoryRoad_2F/scripts.inc b/data/maps/VictoryRoad_2F/scripts.inc index ba4d835f4..d2fa2e8b4 100644 --- a/data/maps/VictoryRoad_2F/scripts.inc +++ b/data/maps/VictoryRoad_2F/scripts.inc @@ -3,10 +3,10 @@ VictoryRoad_2F_MapScripts:: @ 8160F92 .byte 0 VictoryRoad_2F_MapScript1_160F98:: @ 8160F98 - compare_var_to_value VAR_0x4065, 100 - call_if 5, EventScript_160FAF - compare_var_to_value VAR_0x4066, 100 - call_if 5, EventScript_160FC2 + compare_var_to_value VAR_MAP_SCENE_VICTORY_ROAD_2F_BOULDER1, 100 + call_if ne, EventScript_160FAF + compare_var_to_value VAR_MAP_SCENE_VICTORY_ROAD_2F_BOULDER2, 100 + call_if ne, EventScript_160FC2 end EventScript_160FAF:: @ 8160FAF @@ -21,15 +21,15 @@ EventScript_160FC2:: @ 8160FC2 VictoryRoad_2F_EventScript_160FD5:: @ 8160FD5 lockall - compare_var_to_value VAR_0x4065, 100 - goto_if_eq EventScript_161004 + compare_var_to_value VAR_MAP_SCENE_VICTORY_ROAD_2F_BOULDER1, 100 + goto_if eq, EventScript_161004 setmetatile 13, 10, 721, 0 setmetatile 13, 11, 737, 0 playse SE_RU_GASYAN special DrawWholeMapView waitse moveobjectoffscreen 11 - setvar VAR_0x4065, 100 + setvar VAR_MAP_SCENE_VICTORY_ROAD_2F_BOULDER1, 100 releaseall end @@ -39,15 +39,15 @@ EventScript_161004:: @ 8161004 VictoryRoad_2F_EventScript_161006:: @ 8161006 lockall - compare_var_to_value VAR_0x4066, 100 - goto_if_eq EventScript_161035 + compare_var_to_value VAR_MAP_SCENE_VICTORY_ROAD_2F_BOULDER2, 100 + goto_if eq, EventScript_161035 setmetatile 33, 16, 721, 0 setmetatile 33, 17, 737, 0 playse SE_RU_GASYAN special DrawWholeMapView waitse moveobjectoffscreen 12 - setvar VAR_0x4066, 100 + setvar VAR_MAP_SCENE_VICTORY_ROAD_2F_BOULDER2, 100 releaseall end @@ -56,26 +56,26 @@ EventScript_161035:: @ 8161035 end VictoryRoad_2F_EventScript_161037:: @ 8161037 - trainerbattle 0, 167, 0, Text_1747EF, Text_17482C + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_POKEMANIAC_DAWSON, 0, Text_1747EF, Text_17482C msgbox gUnknown_817483E, 6 end VictoryRoad_2F_EventScript_16104E:: @ 816104E - trainerbattle 0, 325, 0, Text_174877, Text_1748B4 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_BLACK_BELT_DAISUKE, 0, Text_174877, Text_1748B4 msgbox gUnknown_81748BB, 6 end VictoryRoad_2F_EventScript_161065:: @ 8161065 - trainerbattle 0, 287, 0, Text_1748EE, Text_17491B + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_JUGGLER_NELSON, 0, Text_1748EE, Text_17491B msgbox gUnknown_8174927, 6 end VictoryRoad_2F_EventScript_16107C:: @ 816107C - trainerbattle 0, 290, 0, Text_174995, Text_1749B0 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_JUGGLER_GREGORY, 0, Text_174995, Text_1749B0 msgbox gUnknown_81749BB, 6 end VictoryRoad_2F_EventScript_161093:: @ 8161093 - trainerbattle 0, 298, 0, Text_174942, Text_17495A + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_TAMER_VINCENT, 0, Text_174942, Text_17495A msgbox gUnknown_8174969, 6 end diff --git a/data/maps/VictoryRoad_3F/map.json b/data/maps/VictoryRoad_3F/map.json index 32eb36734..13e9e1481 100644 --- a/data/maps/VictoryRoad_3F/map.json +++ b/data/maps/VictoryRoad_3F/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "41", + "graphics_id": "MAP_OBJ_GFX_COOLTRAINER_M", "x": 40, "y": 7, "elevation": 3, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "42", + "graphics_id": "MAP_OBJ_GFX_COOLTRAINER_F", "x": 21, "y": 5, "elevation": 4, @@ -40,7 +40,7 @@ "flag": "0" }, { - "graphics_id": "41", + "graphics_id": "MAP_OBJ_GFX_COOLTRAINER_M", "x": 10, "y": 17, "elevation": 3, @@ -53,7 +53,7 @@ "flag": "0" }, { - "graphics_id": "42", + "graphics_id": "MAP_OBJ_GFX_COOLTRAINER_F", "x": 11, "y": 16, "elevation": 3, @@ -66,7 +66,7 @@ "flag": "0" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 38, "y": 7, "elevation": 3, @@ -76,10 +76,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "VictoryRoad_3F_EventScript_1BEA20", - "flag": "431" + "flag": "FLAG_HIDE_VICTORY_ROAD_3F_MAX_REVIVE" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 12, "y": 9, "elevation": 3, @@ -89,10 +89,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "VictoryRoad_3F_EventScript_1BEA2D", - "flag": "432" + "flag": "FLAG_HIDE_VICTORY_ROAD_3F_TM50" }, { - "graphics_id": "97", + "graphics_id": "MAP_OBJ_GFX_STRENGTH_BOULDER", "x": 19, "y": 15, "elevation": 3, @@ -101,11 +101,11 @@ "movement_range_y": 0, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "VictoryRoad_3F_EventScript_1BE11D", + "script": "EventScript_InteractWithStrengthBoulderObject", "flag": "0" }, { - "graphics_id": "97", + "graphics_id": "MAP_OBJ_GFX_STRENGTH_BOULDER", "x": 33, "y": 18, "elevation": 0, @@ -114,11 +114,11 @@ "movement_range_y": 0, "trainer_type": 88, "trainer_sight_or_berry_tree_id": 0, - "script": "VictoryRoad_3F_EventScript_1BE11D", - "flag": "89" + "script": "EventScript_InteractWithStrengthBoulderObject", + "flag": "FLAG_HIDE_VICTORY_ROAD_3F_BOULDER" }, { - "graphics_id": "97", + "graphics_id": "MAP_OBJ_GFX_STRENGTH_BOULDER", "x": 35, "y": 13, "elevation": 3, @@ -127,11 +127,11 @@ "movement_range_y": 0, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "VictoryRoad_3F_EventScript_1BE11D", + "script": "EventScript_InteractWithStrengthBoulderObject", "flag": "0" }, { - "graphics_id": "97", + "graphics_id": "MAP_OBJ_GFX_STRENGTH_BOULDER", "x": 32, "y": 5, "elevation": 3, @@ -140,11 +140,11 @@ "movement_range_y": 0, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "VictoryRoad_3F_EventScript_1BE11D", + "script": "EventScript_InteractWithStrengthBoulderObject", "flag": "0" }, { - "graphics_id": "41", + "graphics_id": "MAP_OBJ_GFX_COOLTRAINER_M", "x": 38, "y": 13, "elevation": 3, @@ -157,7 +157,7 @@ "flag": "0" }, { - "graphics_id": "42", + "graphics_id": "MAP_OBJ_GFX_COOLTRAINER_F", "x": 39, "y": 13, "elevation": 3, @@ -213,7 +213,7 @@ "x": 7, "y": 7, "elevation": 3, - "var": "VAR_0x4067", + "var": "VAR_MAP_SCENE_VICTORY_ROAD_3F", "var_value": 99, "script": "VictoryRoad_3F_EventScript_1610CF" } diff --git a/data/maps/VictoryRoad_3F/scripts.inc b/data/maps/VictoryRoad_3F/scripts.inc index 1a4c42953..fe77da24d 100644 --- a/data/maps/VictoryRoad_3F/scripts.inc +++ b/data/maps/VictoryRoad_3F/scripts.inc @@ -3,8 +3,8 @@ VictoryRoad_3F_MapScripts:: @ 81610AA .byte 0 VictoryRoad_3F_MapScript1_1610B0:: @ 81610B0 - compare_var_to_value VAR_0x4067, 100 - call_if 5, EventScript_1610BC + compare_var_to_value VAR_MAP_SCENE_VICTORY_ROAD_3F, 100 + call_if ne, EventScript_1610BC end EventScript_1610BC:: @ 81610BC @@ -14,8 +14,8 @@ EventScript_1610BC:: @ 81610BC VictoryRoad_3F_EventScript_1610CF:: @ 81610CF lockall - compare_var_to_value VAR_0x4067, 100 - goto_if_eq EventScript_161101 + compare_var_to_value VAR_MAP_SCENE_VICTORY_ROAD_3F, 100 + goto_if eq, EventScript_161101 setmetatile 12, 12, 721, 0 setmetatile 12, 13, 737, 0 playse SE_RU_GASYAN @@ -23,7 +23,7 @@ VictoryRoad_3F_EventScript_1610CF:: @ 81610CF waitse moveobjectoffscreen 7 moveobjectoffscreen 10 - setvar VAR_0x4067, 100 + setvar VAR_MAP_SCENE_VICTORY_ROAD_3F, 100 releaseall end @@ -32,31 +32,31 @@ EventScript_161101:: @ 8161101 end VictoryRoad_3F_EventScript_161103:: @ 8161103 - trainerbattle 0, 393, 0, Text_174B60, Text_174B83 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_COOLTRAINER_GEORGE, 0, Text_174B60, Text_174B83 msgbox gUnknown_8174B99, 6 end VictoryRoad_3F_EventScript_16111A:: @ 816111A - trainerbattle 0, 394, 0, Text_174C8A, Text_174CA9 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_COOLTRAINER_COLBY, 0, Text_174C8A, Text_174CA9 msgbox gUnknown_8174CBD, 6 end VictoryRoad_3F_EventScript_161131:: @ 8161131 - trainerbattle 0, 403, 0, Text_174C30, Text_174C5A + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_COOLTRAINER_CAROLINE, 0, Text_174C30, Text_174C5A msgbox gUnknown_8174C67, 6 end VictoryRoad_3F_EventScript_161148:: @ 8161148 - trainerbattle 0, 404, 0, Text_174BCA, Text_174BF4 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_COOLTRAINER_ALEXA, 0, Text_174BCA, Text_174BF4 msgbox gUnknown_8174C03, 6 end VictoryRoad_3F_EventScript_16115F:: @ 816115F - trainerbattle 4, 485, 0, Text_174D0C, Text_174D45, Text_174D96 + trainerbattle TRAINER_BATTLE_DOUBLE, TRAINER_COOL_COUPLE_RAY_TYRA, 0, Text_174D0C, Text_174D45, Text_174D96 msgbox gUnknown_8174D64, 6 end VictoryRoad_3F_EventScript_16117A:: @ 816117A - trainerbattle 4, 485, 0, Text_174E08, Text_174E39, Text_174E8D + trainerbattle TRAINER_BATTLE_DOUBLE, TRAINER_COOL_COUPLE_RAY_TYRA, 0, Text_174E08, Text_174E39, Text_174E8D msgbox gUnknown_8174E48, 6 end diff --git a/data/maps/ViridianCity/map.json b/data/maps/ViridianCity/map.json index de9ff3465..081e17e98 100644 --- a/data/maps/ViridianCity/map.json +++ b/data/maps/ViridianCity/map.json @@ -30,7 +30,7 @@ ], "object_events": [ { - "graphics_id": "27", + "graphics_id": "MAP_OBJ_GFX_FAT_MAN", "x": 8, "y": 26, "elevation": 3, @@ -43,7 +43,7 @@ "flag": "0" }, { - "graphics_id": "95", + "graphics_id": "MAP_OBJ_GFX_CUT_TREE", "x": 11, "y": 24, "elevation": 3, @@ -52,11 +52,11 @@ "movement_range_y": 1, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "ViridianCity_EventScript_1BDF13", - "flag": "17" + "script": "EventScript_InteractWithCutTreeObject", + "flag": "FLAG_TEMP_11" }, { - "graphics_id": "32", + "graphics_id": "MAP_OBJ_GFX_OLD_MAN_1", "x": 34, "y": 11, "elevation": 3, @@ -69,7 +69,7 @@ "flag": "0" }, { - "graphics_id": "240", + "graphics_id": "MAP_OBJ_GFX_VAR_0", "x": 21, "y": 6, "elevation": 3, @@ -82,7 +82,7 @@ "flag": "0" }, { - "graphics_id": "31", + "graphics_id": "MAP_OBJ_GFX_WOMAN_3", "x": 20, "y": 12, "elevation": 3, @@ -95,7 +95,7 @@ "flag": "0" }, { - "graphics_id": "18", + "graphics_id": "MAP_OBJ_GFX_YOUNGSTER", "x": 33, "y": 26, "elevation": 3, @@ -108,7 +108,7 @@ "flag": "0" }, { - "graphics_id": "19", + "graphics_id": "MAP_OBJ_GFX_BOY", "x": 16, "y": 22, "elevation": 3, @@ -121,7 +121,7 @@ "flag": "0" }, { - "graphics_id": "95", + "graphics_id": "MAP_OBJ_GFX_CUT_TREE", "x": 18, "y": 5, "elevation": 3, @@ -130,11 +130,11 @@ "movement_range_y": 1, "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, - "script": "ViridianCity_EventScript_1BDF13", - "flag": "18" + "script": "EventScript_InteractWithCutTreeObject", + "flag": "FLAG_TEMP_12" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 17, "y": 5, "elevation": 3, @@ -144,7 +144,7 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "ViridianCity_EventScript_1BEB8C", - "flag": "461" + "flag": "FLAG_HIDE_VIRIDIAN_CITY_POTION" } ], "warp_events": [ @@ -190,7 +190,7 @@ "x": 22, "y": 11, "elevation": 3, - "var": "VAR_0x4051", + "var": "VAR_MAP_SCENE_VIRIDIAN_CITY_OLD_MAN", "var_value": 0, "script": "ViridianCity_EventScript_165AF6" }, @@ -199,7 +199,7 @@ "x": 36, "y": 11, "elevation": 3, - "var": "VAR_0x405A", + "var": "VAR_MAP_SCENE_VIRIDIAN_CITY_GYM_DOOR", "var_value": 0, "script": "ViridianCity_EventScript_16596D" }, @@ -208,7 +208,7 @@ "x": 20, "y": 8, "elevation": 3, - "var": "VAR_0x4051", + "var": "VAR_MAP_SCENE_VIRIDIAN_CITY_OLD_MAN", "var_value": 1, "script": "ViridianCity_EventScript_165B10" }, @@ -217,7 +217,7 @@ "x": 22, "y": 8, "elevation": 3, - "var": "VAR_0x4051", + "var": "VAR_MAP_SCENE_VIRIDIAN_CITY_OLD_MAN", "var_value": 1, "script": "ViridianCity_EventScript_165B2E" } diff --git a/data/maps/ViridianCity/scripts.inc b/data/maps/ViridianCity/scripts.inc index 5434fa1fa..24c38bfd7 100644 --- a/data/maps/ViridianCity/scripts.inc +++ b/data/maps/ViridianCity/scripts.inc @@ -4,46 +4,46 @@ ViridianCity_MapScripts:: @ 81658D3 ViridianCity_MapScript1_1658D9:: @ 81658D9 setworldmapflag FLAG_WORLD_MAP_VIRIDIAN_CITY - compare_var_to_value VAR_0x4051, 0 - call_if 1, EventScript_165920 - compare_var_to_value VAR_0x4051, 1 - call_if 1, EventScript_16590F - compare_var_to_value VAR_0x4051, 2 - call_if 4, EventScript_165909 - compare_var_to_value VAR_0x405A, 0 - call_if 1, EventScript_165931 + compare_var_to_value VAR_MAP_SCENE_VIRIDIAN_CITY_OLD_MAN, 0 + call_if eq, EventScript_165920 + compare_var_to_value VAR_MAP_SCENE_VIRIDIAN_CITY_OLD_MAN, 1 + call_if eq, EventScript_16590F + compare_var_to_value VAR_MAP_SCENE_VIRIDIAN_CITY_OLD_MAN, 2 + call_if ge, EventScript_165909 + compare_var_to_value VAR_MAP_SCENE_VIRIDIAN_CITY_GYM_DOOR, 0 + call_if eq, EventScript_165931 end EventScript_165909:: @ 8165909 - setvar VAR_0x4010, 32 + setvar VAR_OBJ_GFX_ID_0, MAP_OBJ_GFX_OLD_MAN_1 return EventScript_16590F:: @ 816590F - setvar VAR_0x4010, 32 + setvar VAR_OBJ_GFX_ID_0, MAP_OBJ_GFX_OLD_MAN_1 setobjectxyperm 4, 21, 8 setobjectmovementtype 4, 1 return EventScript_165920:: @ 8165920 - setvar VAR_0x4010, 34 + setvar VAR_OBJ_GFX_ID_0, MAP_OBJ_GFX_VIRIDIAN_DRUNK setobjectxyperm 4, 21, 11 setobjectmovementtype 4, 8 return EventScript_165931:: @ 8165931 - checkflag FLAG_0x821 - goto_if 0, EventScript_1A77A9 - checkflag FLAG_0x822 - goto_if 0, EventScript_1A77A9 - checkflag FLAG_0x823 - goto_if 0, EventScript_1A77A9 - checkflag FLAG_UNK824 - goto_if 0, EventScript_1A77A9 - checkflag FLAG_0x825 - goto_if 0, EventScript_1A77A9 - checkflag FLAG_UNK826 - goto_if 0, EventScript_1A77A9 - setvar VAR_0x405A, 1 + checkflag FLAG_BADGE02_GET + goto_if FALSE, EventScript_1A77A9 + checkflag FLAG_BADGE03_GET + goto_if FALSE, EventScript_1A77A9 + checkflag FLAG_BADGE04_GET + goto_if FALSE, EventScript_1A77A9 + checkflag FLAG_BADGE05_GET + goto_if FALSE, EventScript_1A77A9 + checkflag FLAG_BADGE06_GET + goto_if FALSE, EventScript_1A77A9 + checkflag FLAG_BADGE07_GET + goto_if FALSE, EventScript_1A77A9 + setvar VAR_MAP_SCENE_VIRIDIAN_CITY_GYM_DOOR, 1 return ViridianCity_EventScript_16596D:: @ 816596D @@ -90,8 +90,8 @@ ViridianCity_EventScript_1659C1:: @ 81659C1 ViridianCity_EventScript_1659CA:: @ 81659CA lock faceplayer - compare_var_to_value VAR_0x405A, 1 - goto_if_eq EventScript_1659EC + compare_var_to_value VAR_MAP_SCENE_VIRIDIAN_CITY_GYM_DOOR, 1 + goto_if eq, EventScript_1659EC msgbox gUnknown_817DB39 closemessage applymovement 3, Movement_1A75E5 @@ -107,20 +107,20 @@ EventScript_1659EC:: @ 81659EC ViridianCity_EventScript_1659F6:: @ 81659F6 lock faceplayer - checkflag FLAG_UNK820 - goto_if_eq EventScript_165A23 - compare_var_to_value VAR_0x4051, 2 - goto_if 4, EventScript_165A4A - compare_var_to_value VAR_0x4051, 1 - goto_if_eq EventScript_165A54 - compare_var_to_value VAR_0x4051, 0 - goto_if_eq EventScript_165A84 + checkflag FLAG_BADGE01_GET + goto_if TRUE, EventScript_165A23 + compare_var_to_value VAR_MAP_SCENE_VIRIDIAN_CITY_OLD_MAN, 2 + goto_if ge, EventScript_165A4A + compare_var_to_value VAR_MAP_SCENE_VIRIDIAN_CITY_OLD_MAN, 1 + goto_if eq, EventScript_165A54 + compare_var_to_value VAR_MAP_SCENE_VIRIDIAN_CITY_OLD_MAN, 0 + goto_if eq, EventScript_165A84 end EventScript_165A23:: @ 8165A23 msgbox gUnknown_817E046, MSGBOX_YESNO compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_165A40 + goto_if eq, EventScript_165A40 msgbox gUnknown_817E0EA release end @@ -149,9 +149,9 @@ EventScript_165A65:: @ 8165A65 msgbox gUnknown_817DE9B special sub_8110AB4 compare_var_to_value VAR_RESULT, 2 - goto_if_eq EventScript_1A7AE0 + goto_if eq, EventScript_1A7AE0 special sub_8112364 - special sub_807F888 + special ScrSpecial_StartOldManTutorialBattle waitstate release end @@ -167,9 +167,9 @@ ViridianCity_EventScript_165A8F:: @ 8165A8F faceplayer msgbox gUnknown_817DB98, MSGBOX_YESNO compare_var_to_value VAR_RESULT, 1 - goto_if_eq EventScript_165AB0 + goto_if eq, EventScript_165AB0 compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_165ABA + goto_if eq, EventScript_165ABA end EventScript_165AB0:: @ 8165AB0 @@ -185,8 +185,8 @@ EventScript_165ABA:: @ 8165ABA ViridianCity_EventScript_165AC4:: @ 8165AC4 lock faceplayer - compare_var_to_value VAR_0x4051, 0 - goto_if_eq EventScript_165ADB + compare_var_to_value VAR_MAP_SCENE_VIRIDIAN_CITY_OLD_MAN, 0 + goto_if eq, EventScript_165ADB msgbox gUnknown_817DC99 release end @@ -244,14 +244,14 @@ EventScript_165B4C:: @ 8165B4C closemessage special sub_8110AB4 compare_var_to_value VAR_RESULT, 2 - goto_if_eq EventScript_1A7AE0 + goto_if eq, EventScript_1A7AE0 special sub_8112364 - special sub_807F888 + special ScrSpecial_StartOldManTutorialBattle waitstate lock faceplayer msgbox gUnknown_817DE9B - setvar VAR_0x4051, 2 + setvar VAR_MAP_SCENE_VIRIDIAN_CITY_OLD_MAN, 2 giveitem ITEM_TEACHY_TV msgbox gUnknown_817DEEB return diff --git a/data/maps/ViridianCity_Gym/map.json b/data/maps/ViridianCity_Gym/map.json index f862217e0..451a6a6e2 100644 --- a/data/maps/ViridianCity_Gym/map.json +++ b/data/maps/ViridianCity_Gym/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "54", + "graphics_id": "MAP_OBJ_GFX_BLACKBELT", "x": 10, "y": 2, "elevation": 3, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "41", + "graphics_id": "MAP_OBJ_GFX_COOLTRAINER_M", "x": 12, "y": 10, "elevation": 3, @@ -40,7 +40,7 @@ "flag": "0" }, { - "graphics_id": "54", + "graphics_id": "MAP_OBJ_GFX_BLACKBELT", "x": 11, "y": 14, "elevation": 3, @@ -53,7 +53,7 @@ "flag": "0" }, { - "graphics_id": "25", + "graphics_id": "MAP_OBJ_GFX_MAN", "x": 10, "y": 10, "elevation": 3, @@ -66,7 +66,7 @@ "flag": "0" }, { - "graphics_id": "25", + "graphics_id": "MAP_OBJ_GFX_MAN", "x": 2, "y": 21, "elevation": 3, @@ -79,7 +79,7 @@ "flag": "0" }, { - "graphics_id": "54", + "graphics_id": "MAP_OBJ_GFX_BLACKBELT", "x": 3, "y": 11, "elevation": 3, @@ -92,7 +92,7 @@ "flag": "0" }, { - "graphics_id": "41", + "graphics_id": "MAP_OBJ_GFX_COOLTRAINER_M", "x": 6, "y": 8, "elevation": 3, @@ -105,7 +105,7 @@ "flag": "0" }, { - "graphics_id": "87", + "graphics_id": "MAP_OBJ_GFX_GIOVANNI", "x": 2, "y": 2, "elevation": 3, @@ -115,10 +115,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "ViridianCity_Gym_EventScript_169ECA", - "flag": "85" + "flag": "FLAG_HIDE_VIRIDIAN_GIOVANNI" }, { - "graphics_id": "41", + "graphics_id": "MAP_OBJ_GFX_COOLTRAINER_M", "x": 13, "y": 7, "elevation": 3, @@ -131,7 +131,7 @@ "flag": "0" }, { - "graphics_id": "91", + "graphics_id": "MAP_OBJ_GFX_GYM_GUY", "x": 16, "y": 20, "elevation": 3, @@ -189,8 +189,9 @@ "y": 2, "elevation": 3, "item": "ITEM_MACHO_BRACE", - "flag": "189", - "unknown": 129 + "flag": "HIDDEN_ITEM_VIRIDIAN_CITY_GYM_MACHO_BRACE", + "quantity": 1, + "underfoot": true } ] } diff --git a/data/maps/ViridianCity_Gym/scripts.inc b/data/maps/ViridianCity_Gym/scripts.inc index b03bc5d93..f3d9bfe10 100644 --- a/data/maps/ViridianCity_Gym/scripts.inc +++ b/data/maps/ViridianCity_Gym/scripts.inc @@ -2,12 +2,10 @@ ViridianCity_Gym_MapScripts:: @ 8169EC9 .byte 0 ViridianCity_Gym_EventScript_169ECA:: @ 8169ECA - setvar VAR_0x8004, 15 - setvar VAR_0x8005, 2 - special UpdatePickStateFromSpecialVar8005 - trainerbattle 1, 350, 0, Text_18F352, Text_18F43F, EventScript_169F04 - checkflag FLAG_0x298 - goto_if 0, EventScript_169F2F + famechecker FAMECHECKER_GIOVANNI, FCPICKSTATE_COLORED, UpdatePickStateFromSpecialVar8005 + trainerbattle TRAINER_BATTLE_CONTINUE_SCRIPT_NO_MUSIC, TRAINER_LEADER_GIOVANNI, 0, Text_18F352, Text_18F43F, EventScript_169F04 + checkflag FLAG_GOT_TM26_FROM_GIOVANNI + goto_if FALSE, EventScript_169F2F msgbox gUnknown_818F4A2 closemessage fadescreen 1 @@ -17,15 +15,12 @@ ViridianCity_Gym_EventScript_169ECA:: @ 8169ECA end EventScript_169F04:: @ 8169F04 - setvar VAR_0x8004, 15 - setvar VAR_0x8005, 3 - special SetFlavorTextFlagFromSpecialVars - setflag FLAG_0x0AD - setflag FLAG_0x4B7 - setflag FLAG_0x827 - setvar VAR_0x4054, 3 - setvar VAR_0x8008, 8 - call EventScript_1A6B18 + famechecker FAMECHECKER_GIOVANNI, 3 + setflag FLAG_HIDE_MISC_KANTO_ROCKETS + setflag FLAG_DEFEATED_LEADER_GIOVANNI + setflag FLAG_BADGE08_GET + setvar VAR_MAP_SCENE_ROUTE22, 3 + set_gym_trainers 8 goto EventScript_169F2F end @@ -33,10 +28,10 @@ EventScript_169F2F:: @ 8169F2F msgbox gUnknown_818F586 checkitemspace ITEM_TM26, 1 compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_169F70 + goto_if eq, EventScript_169F70 additem ITEM_TM26, 1 giveitemfanfaremsg gUnknown_818F675, ITEM_TM26 - setflag FLAG_0x298 + setflag FLAG_GOT_TM26_FROM_GIOVANNI msgbox gUnknown_818F695 release end @@ -47,66 +42,64 @@ EventScript_169F70:: @ 8169F70 end ViridianCity_Gym_EventScript_169F7A:: @ 8169F7A - trainerbattle 0, 296, 0, Text_18F7F3, Text_18F824 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_TAMER_JASON, 0, Text_18F7F3, Text_18F824 msgbox gUnknown_818F840, 6 end ViridianCity_Gym_EventScript_169F91:: @ 8169F91 - trainerbattle 0, 297, 0, Text_18F98A, Text_18F9BB + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_TAMER_COLE, 0, Text_18F98A, Text_18F9BB msgbox gUnknown_818F9CC, 6 end ViridianCity_Gym_EventScript_169FA8:: @ 8169FA8 - trainerbattle 0, 322, 0, Text_18F7AD, Text_18F7D6 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_BLACK_BELT_ATSUSHI, 0, Text_18F7AD, Text_18F7D6 msgbox gUnknown_818F7DD, 6 end ViridianCity_Gym_EventScript_169FBF:: @ 8169FBF - trainerbattle 0, 323, 0, Text_18F86C, Text_18F899 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_BLACK_BELT_KIYO, 0, Text_18F86C, Text_18F899 msgbox gUnknown_818F8A0, 6 end ViridianCity_Gym_EventScript_169FD6:: @ 8169FD6 - trainerbattle 0, 324, 0, Text_18F92C, Text_18F95A + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_BLACK_BELT_TAKASHI, 0, Text_18F92C, Text_18F95A msgbox gUnknown_818F960, 6 end ViridianCity_Gym_EventScript_169FED:: @ 8169FED - trainerbattle 0, 392, 0, Text_18F9E7, Text_18FA2D + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_COOLTRAINER_SAMUEL, 0, Text_18F9E7, Text_18FA2D msgbox gUnknown_818FA3B, 6 end ViridianCity_Gym_EventScript_16A004:: @ 816A004 - trainerbattle 0, 400, 0, Text_18F73B, Text_18F769 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_COOLTRAINER_YUJI, 0, Text_18F73B, Text_18F769 msgbox gUnknown_818F77B, 6 end ViridianCity_Gym_EventScript_16A01B:: @ 816A01B - trainerbattle 0, 401, 0, Text_18F8CB, Text_18F8EE + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_COOLTRAINER_WARREN, 0, Text_18F8CB, Text_18F8EE msgbox gUnknown_818F8FE, 6 end ViridianCity_Gym_EventScript_16A032:: @ 816A032 lock faceplayer - checkflag FLAG_0x4B7 - goto_if_eq EventScript_16A047 + checkflag FLAG_DEFEATED_LEADER_GIOVANNI + goto_if TRUE, EventScript_16A047 msgbox gUnknown_818FA81 release end EventScript_16A047:: @ 816A047 - setvar VAR_0x8004, 15 - setvar VAR_0x8005, 4 - special SetFlavorTextFlagFromSpecialVars + famechecker FAMECHECKER_GIOVANNI, 4 msgbox gUnknown_818FB56 release end ViridianCity_Gym_EventScript_16A05E:: @ 816A05E lockall - checkflag FLAG_0x827 - goto_if_eq EventScript_16A072 + checkflag FLAG_BADGE08_GET + goto_if TRUE, EventScript_16A072 msgbox gUnknown_818FB8D releaseall end diff --git a/data/maps/ViridianCity_House1/map.json b/data/maps/ViridianCity_House1/map.json index 628b66dd0..edc6072ab 100644 --- a/data/maps/ViridianCity_House1/map.json +++ b/data/maps/ViridianCity_House1/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "30", + "graphics_id": "MAP_OBJ_GFX_BALDING_MAN", "x": 7, "y": 4, "elevation": 3, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "17", + "graphics_id": "MAP_OBJ_GFX_LITTLE_GIRL", "x": 2, "y": 5, "elevation": 3, @@ -40,7 +40,7 @@ "flag": "0" }, { - "graphics_id": "110", + "graphics_id": "MAP_OBJ_GFX_SPEAROW", "x": 6, "y": 6, "elevation": 3, diff --git a/data/maps/ViridianCity_House2/map.json b/data/maps/ViridianCity_House2/map.json index 3b3bc76a0..a3abf9f9d 100644 --- a/data/maps/ViridianCity_House2/map.json +++ b/data/maps/ViridianCity_House2/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "28", + "graphics_id": "MAP_OBJ_GFX_WOMAN_2", "x": 6, "y": 2, "elevation": 3, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "22", + "graphics_id": "MAP_OBJ_GFX_LASS", "x": 4, "y": 5, "elevation": 3, diff --git a/data/maps/ViridianCity_House2/scripts.inc b/data/maps/ViridianCity_House2/scripts.inc index c8388e2f7..1c25dd3e4 100644 --- a/data/maps/ViridianCity_House2/scripts.inc +++ b/data/maps/ViridianCity_House2/scripts.inc @@ -26,15 +26,15 @@ ViridianCity_House2_EventScript_16A0AB:: @ 816A0AB msgbox gUnknown_818FC65 msgbox gUnknown_818FF19, MSGBOX_YESNO compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_16A11B + goto_if eq, EventScript_16A11B msgbox gUnknown_818FD23 msgbox gUnknown_818FF19, MSGBOX_YESNO compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_16A11B + goto_if eq, EventScript_16A11B msgbox gUnknown_818FDA8 msgbox gUnknown_818FF19, MSGBOX_YESNO compare_var_to_value VAR_RESULT, 0 - goto_if_eq EventScript_16A11B + goto_if eq, EventScript_16A11B msgbox gUnknown_818FE5C applymovement 2, Movement_1A75E9 waitmovement 0 @@ -56,7 +56,7 @@ ViridianCity_House2_EventScript_16A11D:: @ 816A11D EventScript_16A12C:: @ 816A12C message Text_18FF88 waitmessage - multichoicegrid 7, 1, 15, 3, 0 + multichoicegrid 7, 1, MULTICHOICE_TRAINER_SCHOOL_WHITEBOARD, 3, FALSE switch VAR_RESULT case 0, EventScript_16A18B case 1, EventScript_16A1A7 diff --git a/data/maps/ViridianCity_Mart/map.json b/data/maps/ViridianCity_Mart/map.json index 122ef65d3..350ed4020 100644 --- a/data/maps/ViridianCity_Mart/map.json +++ b/data/maps/ViridianCity_Mart/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "68", + "graphics_id": "MAP_OBJ_GFX_CLERK", "x": 2, "y": 3, "elevation": 0, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "18", + "graphics_id": "MAP_OBJ_GFX_YOUNGSTER", "x": 6, "y": 2, "elevation": 3, @@ -40,7 +40,7 @@ "flag": "0" }, { - "graphics_id": "23", + "graphics_id": "MAP_OBJ_GFX_WOMAN_1", "x": 9, "y": 5, "elevation": 3, diff --git a/data/maps/ViridianCity_Mart/scripts.inc b/data/maps/ViridianCity_Mart/scripts.inc index 02ed8b57c..95c45ea7d 100644 --- a/data/maps/ViridianCity_Mart/scripts.inc +++ b/data/maps/ViridianCity_Mart/scripts.inc @@ -4,8 +4,8 @@ ViridianCity_Mart_MapScripts:: @ 816A1D3 .byte 0 ViridianCity_Mart_MapScript1_16A1DE:: @ 816A1DE - checkflag FLAG_0x829 - goto_if 0, EventScript_16A1E8 + checkflag FLAG_SYS_POKEDEX_GET + goto_if FALSE, EventScript_16A1E8 end EventScript_16A1E8:: @ 816A1E8 @@ -55,10 +55,10 @@ ViridianCity_Mart_EventScript_16A268:: @ 816A268 lock faceplayer compare_var_to_value VAR_MAP_SCENE_VIRIDIAN_CITY_MART, 1 - goto_if_eq EventScript_16A2A4 + goto_if eq, EventScript_16A2A4 special sub_8110AB4 compare_var_to_value VAR_RESULT, 2 - goto_if_eq EventScript_1A7AE0 + goto_if eq, EventScript_1A7AE0 message Text_1A6211 waitmessage pokemart Items_16A298 diff --git a/data/maps/ViridianCity_PokemonCenter_1F/map.json b/data/maps/ViridianCity_PokemonCenter_1F/map.json index 0d2f95957..419e7b4ca 100644 --- a/data/maps/ViridianCity_PokemonCenter_1F/map.json +++ b/data/maps/ViridianCity_PokemonCenter_1F/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "64", + "graphics_id": "MAP_OBJ_GFX_NURSE", "x": 7, "y": 2, "elevation": 3, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "61", + "graphics_id": "MAP_OBJ_GFX_GENTLEMAN", "x": 12, "y": 5, "elevation": 3, @@ -40,7 +40,7 @@ "flag": "0" }, { - "graphics_id": "19", + "graphics_id": "MAP_OBJ_GFX_BOY", "x": 4, "y": 7, "elevation": 3, @@ -53,7 +53,7 @@ "flag": "0" }, { - "graphics_id": "18", + "graphics_id": "MAP_OBJ_GFX_YOUNGSTER", "x": 2, "y": 3, "elevation": 3, diff --git a/data/maps/ViridianCity_PokemonCenter_2F/map.json b/data/maps/ViridianCity_PokemonCenter_2F/map.json index 16c5033d1..3711140e9 100644 --- a/data/maps/ViridianCity_PokemonCenter_2F/map.json +++ b/data/maps/ViridianCity_PokemonCenter_2F/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "65", + "graphics_id": "MAP_OBJ_GFX_CABLE_CLUB_RECEPTIONIST", "x": 6, "y": 2, "elevation": 3, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "65", + "graphics_id": "MAP_OBJ_GFX_CABLE_CLUB_RECEPTIONIST", "x": 2, "y": 2, "elevation": 3, @@ -40,7 +40,7 @@ "flag": "0" }, { - "graphics_id": "65", + "graphics_id": "MAP_OBJ_GFX_CABLE_CLUB_RECEPTIONIST", "x": 10, "y": 2, "elevation": 3, @@ -53,7 +53,7 @@ "flag": "0" }, { - "graphics_id": "69", + "graphics_id": "MAP_OBJ_GFX_MG_DELIVERYMAN", "x": 1, "y": 2, "elevation": 3, @@ -63,7 +63,7 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "ViridianCity_PokemonCenter_2F_EventScript_1BB1D2", - "flag": "112" + "flag": "FLAG_HIDE_MG_DELIVERYMEN" } ], "warp_events": [ diff --git a/data/maps/ViridianForest/map.json b/data/maps/ViridianForest/map.json index 89d9a9f03..7a17aca4c 100644 --- a/data/maps/ViridianForest/map.json +++ b/data/maps/ViridianForest/map.json @@ -14,7 +14,7 @@ "connections": null, "object_events": [ { - "graphics_id": "18", + "graphics_id": "MAP_OBJ_GFX_YOUNGSTER", "x": 29, "y": 58, "elevation": 3, @@ -27,7 +27,7 @@ "flag": "0" }, { - "graphics_id": "19", + "graphics_id": "MAP_OBJ_GFX_BOY", "x": 45, "y": 58, "elevation": 3, @@ -40,7 +40,7 @@ "flag": "0" }, { - "graphics_id": "20", + "graphics_id": "MAP_OBJ_GFX_BUG_CATCHER", "x": 47, "y": 45, "elevation": 3, @@ -53,7 +53,7 @@ "flag": "0" }, { - "graphics_id": "20", + "graphics_id": "MAP_OBJ_GFX_BUG_CATCHER", "x": 47, "y": 29, "elevation": 3, @@ -66,7 +66,7 @@ "flag": "0" }, { - "graphics_id": "20", + "graphics_id": "MAP_OBJ_GFX_BUG_CATCHER", "x": 7, "y": 22, "elevation": 3, @@ -79,7 +79,7 @@ "flag": "0" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 5, "y": 41, "elevation": 3, @@ -89,10 +89,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "ViridianForest_EventScript_1BE5A8", - "flag": "342" + "flag": "FLAG_HIDE_VIRIDIAN_FOREST_POKE_BALL" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 40, "y": 21, "elevation": 3, @@ -102,10 +102,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "ViridianForest_EventScript_1BE5B5", - "flag": "343" + "flag": "FLAG_HIDE_VIRIDIAN_FOREST_ANTIDOTE" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 21, "y": 34, "elevation": 3, @@ -115,10 +115,10 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "ViridianForest_EventScript_1BE5C2", - "flag": "344" + "flag": "FLAG_HIDE_VIRIDIAN_FOREST_POTION" }, { - "graphics_id": "20", + "graphics_id": "MAP_OBJ_GFX_BUG_CATCHER", "x": 43, "y": 6, "elevation": 3, @@ -131,7 +131,7 @@ "flag": "0" }, { - "graphics_id": "20", + "graphics_id": "MAP_OBJ_GFX_BUG_CATCHER", "x": 16, "y": 5, "elevation": 3, @@ -144,7 +144,7 @@ "flag": "0" }, { - "graphics_id": "92", + "graphics_id": "MAP_OBJ_GFX_ITEM_BALL", "x": 49, "y": 60, "elevation": 3, @@ -154,7 +154,7 @@ "trainer_type": 0, "trainer_sight_or_berry_tree_id": 0, "script": "ViridianForest_EventScript_1BEAC9", - "flag": "446" + "flag": "FLAG_HIDE_VIRIDIAN_FOREST_POTION_2" } ], "warp_events": [ @@ -251,8 +251,9 @@ "y": 22, "elevation": 3, "item": "ITEM_POTION", - "flag": "0", - "unknown": 1 + "flag": "HIDDEN_ITEM_VIRIDIAN_FOREST_POTION", + "quantity": 1, + "underfoot": false }, { "type": "hidden_item", @@ -260,8 +261,9 @@ "y": 57, "elevation": 0, "item": "ITEM_ANTIDOTE", - "flag": "1", - "unknown": 1 + "flag": "HIDDEN_ITEM_VIRIDIAN_FOREST_ANTIDOTE", + "quantity": 1, + "underfoot": false } ] } diff --git a/data/maps/ViridianForest/scripts.inc b/data/maps/ViridianForest/scripts.inc index bf8438d65..84c22e5fb 100644 --- a/data/maps/ViridianForest/scripts.inc +++ b/data/maps/ViridianForest/scripts.inc @@ -39,26 +39,26 @@ ViridianForest_EventScript_160568:: @ 8160568 end ViridianForest_EventScript_160571:: @ 8160571 - trainerbattle 0, 102, 0, Text_1722C7, Text_1722F9 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_BUG_CATCHER_RICK, 0, Text_1722C7, Text_1722F9 msgbox gUnknown_8172315, 6 end ViridianForest_EventScript_160588:: @ 8160588 - trainerbattle 0, 103, 0, Text_17234A, Text_17237D + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_BUG_CATCHER_DOUG, 0, Text_17234A, Text_17237D msgbox gUnknown_8172398, 6 end ViridianForest_EventScript_16059F:: @ 816059F - trainerbattle 0, 104, 0, Text_1723D4, Text_172402 + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_BUG_CATCHER_SAMMY, 0, Text_1723D4, Text_172402 msgbox gUnknown_817241F, 6 end ViridianForest_EventScript_1605B6:: @ 81605B6 - trainerbattle 0, 531, 0, Text_172482, Text_1724BF + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_BUG_CATCHER_ANTHONY, 0, Text_172482, Text_1724BF msgbox gUnknown_81724DC, 6 end ViridianForest_EventScript_1605CD:: @ 81605CD - trainerbattle 0, 532, 0, Text_1724F9, Text_17251B + trainerbattle TRAINER_BATTLE_SINGLE, TRAINER_BUG_CATCHER_CHARLIE, 0, Text_1724F9, Text_17251B msgbox gUnknown_8172527, 6 end diff --git a/data/maps/map_groups.json b/data/maps/map_groups.json index 3bf3c6982..8619c19ad 100644 --- a/data/maps/map_groups.json +++ b/data/maps/map_groups.json @@ -212,7 +212,7 @@ "SevenIsland_TanobyRuins_RixyChamber", "SevenIsland_TanobyRuins_ViapoisChamber", "ThreeIsland_DunsparceTunnel", - "SevenIsland_SeavaultCanyon_TanobyKey", + "SevenIsland_SevaultCanyon_TanobyKey", "NavelRock_1F", "NavelRock_Summit", "NavelRock_Base", diff --git a/data/mystery_event_msg.s b/data/mystery_event_msg.s index c33228bb6..a62ebb8b8 100644 --- a/data/mystery_event_msg.s +++ b/data/mystery_event_msg.s @@ -1,8 +1,11 @@ +@ These are event scripts. They should not be moved to C. + #include "constants/flags.h" #include "constants/moves.h" #include "constants/songs.h" #include "constants/species.h" #include "constants/vars.h" +#include "constants/items.h" .include "asm/macros.inc" .include "asm/macros/event.inc" .include "constants/constants.inc" @@ -10,333 +13,353 @@ .section .rodata .align 2 -MysteryEventScript_StampCard:: @ 8488E2 - .incbin "baserom.gba", 0x488E28, 0xB40 +MysteryEventScript_StampCard:: @ 8488E28 + setvaddress MysteryEventScript_StampCard + setorcopyvar VAR_RESULT, 1 + specialvar VAR_0x8008, Special_BattleCardAction + setorcopyvar VAR_RESULT, 0 + specialvar VAR_0x8009, Special_BattleCardAction + subvar VAR_0x8008, VAR_0x8009 + getnumberstring 0, VAR_0x8008 + lock + faceplayer + vmessage sText_MysteryGiftStampCard + waitmessage + waitbuttonpress + release + end -@ setvaddress MysteryEventScript_StampCard -@ setorcopyvar VAR_RESULT, 1 -@ specialvar VAR_0x8008, sub_813986C -@ setorcopyvar VAR_RESULT, 0 -@ specialvar VAR_0x8009, sub_813986C -@ subvar VAR_0x8008, 32777 -@ getnumberstring 0, VAR_0x8008 -@ lock -@ faceplayer -@ vmessage sText_MysteryGiftStampCard -@ waitmessage -@ waitbutton -@ release -@ end -@ -@ sText_MysteryGiftStampCard: -@ .string "Thank you for using the STAMP CARD\nSystem.\pYou have {STR_VAR_1} more to collect to\nfill your STAMP CARD.$" -@ -@ MysteryEventScript_SurfPichu:: @ 8674D3D -@ setvaddress MysteryEventScript_SurfPichu -@ checkflag FLAG_MYSTERY_EVENT_DONE -@ vgoto_if 0, SurfPichu_GiveIfPossible -@ gotoram -@ -@ SurfPichu_GiveIfPossible: @ 8674D4C -@ specialvar VAR_EVENT_PICHU_SLOT, CalculatePlayerPartyCount -@ compare_var_to_value VAR_EVENT_PICHU_SLOT, 6 -@ vgoto_if 1, SurfPichu_FullParty -@ setflag FLAG_MYSTERY_EVENT_DONE -@ vcall SurfPichu_GiveEgg -@ lock -@ faceplayer -@ vmessage sText_MysteryGiftEgg -@ waitmessage -@ waitbutton -@ playfanfare MUS_FANFA4 -@ waitfanfare -@ release -@ end -@ -@ SurfPichu_FullParty: @ 8674D73 -@ lock -@ faceplayer -@ vmessage sText_FullParty -@ waitmessage -@ waitbutton -@ release -@ end -@ -@ SurfPichu_GiveEgg: @ 8674D7E -@ giveegg SPECIES_PICHU -@ setobedience VAR_EVENT_PICHU_SLOT -@ setcatchlocale VAR_EVENT_PICHU_SLOT, 255 -@ compare_var_to_value VAR_EVENT_PICHU_SLOT, 1 -@ vgoto_if 1, SurfPichu_Slot1 -@ compare_var_to_value VAR_EVENT_PICHU_SLOT, 2 -@ vgoto_if 1, SurfPichu_Slot2 -@ compare_var_to_value VAR_EVENT_PICHU_SLOT, 3 -@ vgoto_if 1, SurfPichu_Slot3 -@ compare_var_to_value VAR_EVENT_PICHU_SLOT, 4 -@ vgoto_if 1, SurfPichu_Slot4 -@ compare_var_to_value VAR_EVENT_PICHU_SLOT, 5 -@ vgoto_if 1, SurfPichu_Slot5 -@ return -@ -@ SurfPichu_Slot1: @ 8674DC0 -@ setpokemove 1, 2, MOVE_SURF -@ return -@ -@ SurfPichu_Slot2:: @ 8674DC6 -@ setpokemove 2, 2, MOVE_SURF -@ return -@ -@ SurfPichu_Slot3: @ 8674DCC -@ setpokemove 3, 2, MOVE_SURF -@ return -@ -@ SurfPichu_Slot4: @ 8674DD2 -@ setpokemove 4, 2, MOVE_SURF -@ return -@ -@ SurfPichu_Slot5: @ 8674DD8 -@ setpokemove 5, 2, MOVE_SURF -@ return -@ -@ sText_MysteryGiftEgg: -@ .string "Thank you for using the MYSTERY\nGIFT System.\pFrom the POKéMON CENTER we\nhave a gift--a POKéMON EGG!\pPlease raise it with love and\nkindness.$" -@ -@ sText_FullParty: -@ .string "Oh, your party appears to be full.\pPlease come see me after storing\na POKéMON on a PC.$" -@ -@ MysteryEventScript_VisitingTrainer:: @ 8674EC1 -@ setvaddress MysteryEventScript_VisitingTrainer -@ special ValidateEReaderTrainer -@ compare_var_to_value VAR_RESULT, 0 -@ vgoto_if 1, MysteryEventScript_VisitingTrainerArrived -@ lock -@ faceplayer -@ vmessage sText_MysteryGiftVisitingTrainer -@ waitmessage -@ waitbutton -@ release -@ end -@ -@ MysteryEventScript_VisitingTrainerArrived: @ 8674EDF -@ lock -@ faceplayer -@ vmessage sText_MysteryGiftVisitingTrainer_2 -@ waitmessage -@ waitbutton -@ release -@ end -@ -@ sText_MysteryGiftVisitingTrainer: -@ .string "Thank you for using the MYSTERY\nGIFT System.\pBy holding this WONDER CARD, you\nmay take part in a survey at a\lPOKéMON MART.\pUse these surveys to invite\nTRAINERS to SOOTOPOLIS CITY.\p…Let me give you a secret\npassword for a survey:\p“GIVE ME\nAWESOME TRAINERâ€\pWrite that in on a survey and send\nit to the WIRELESS\lCOMMUNICATION SYSTEM.$" -@ -@ sText_MysteryGiftVisitingTrainer_2: -@ .string "Thank you for using the MYSTERY\nGIFT System.\pA TRAINER has arrived in\nSOOTOPOLIS CITY looking for you.\pWe hope you will enjoy\nbattling the visiting TRAINER.\pYou may invite other TRAINERS by\nentering other passwords.\pTry looking for other passwords\nthat may work.$" -@ -@ MysteryEventScript_BattleCard:: @ 867513C -@ setvaddress MysteryEventScript_BattleCard -@ checkflag FLAG_MYSTERY_EVENT_DONE -@ vgoto_if 1, MysteryEventScript_BattleCardInfo -@ setorcopyvar VAR_RESULT, 2 -@ specialvar VAR_0x8008, sub_813986C -@ compare_var_to_value VAR_0x8008, 3 -@ vgoto_if 0, MysteryEventScript_BattleCardInfo -@ lock -@ faceplayer -@ vmessage sText_MysteryGiftBattleCountCard_2 -@ waitmessage -@ waitbutton -@ giveitem ITEM_POTION -@ release -@ setflag FLAG_MYSTERY_EVENT_DONE -@ end -@ -@ MysteryEventScript_BattleCardInfo: @ 8675179 -@ lock -@ faceplayer -@ vmessage sText_MysteryGiftBattleCountCard -@ waitmessage -@ waitbutton -@ release -@ end -@ -@ sText_MysteryGiftBattleCountCard: -@ .string "Thank you for using the MYSTERY\nGIFT System.\pYour BATTLE COUNT CARD keeps\ntrack of your battle record against\lTRAINERS with the same CARD.\pLook for and battle TRAINERS who\nhave the same CARD as you.\pYou may check the overall rankings\nby reading the NEWS.\pPlease do give it a try!$" -@ -@ sText_MysteryGiftBattleCountCard_2: -@ .string "Thank you for using the MYSTERY\nGIFT System.\pCongratulations!\pYou have won a prize for winning\nthree battles!\pWe hope you will be inspired to\nbattle some more.$" -@ -@ MysteryEventScript_AuroraTicket:: @ 867533C -@ setvaddress MysteryEventScript_AuroraTicket -@ lock -@ faceplayer -@ checkflag FLAG_0x13A -@ vgoto_if 1, AuroraTicket_Obtained -@ checkflag FLAG_0x1AD -@ vgoto_if 1, AuroraTicket_Obtained -@ checkitem ITEM_AURORA_TICKET, 1 -@ compare_var_to_value VAR_RESULT, 1 -@ vgoto_if 1, AuroraTicket_Obtained -@ vmessage sText_AuroraTicket1 -@ waitmessage -@ waitbutton -@ checkitemspace ITEM_AURORA_TICKET, 1 -@ compare_var_to_value VAR_RESULT, 0 -@ vgoto_if 1, AuroraTicket_NoBagSpace -@ giveitem ITEM_AURORA_TICKET -@ setflag FLAG_0x8D5 -@ setflag FLAG_0x13A -@ vmessage sText_AuroraTicket2 -@ waitmessage -@ waitbutton -@ release -@ end -@ -@ AuroraTicket_NoBagSpace: @ 8675397 -@ vmessage sText_AuroraTicketNoPlace -@ waitmessage -@ waitbutton -@ release -@ end -@ -@ AuroraTicket_Obtained: @ 86753A0 -@ vmessage sText_AuroraTicketGot -@ waitmessage -@ waitbutton -@ release -@ end -@ -@ sText_AuroraTicket1: -@ .string "Thank you for using the MYSTERY\nGIFT System.\pYou must be {PLAYER}.\nThere is a ticket here for you.$" -@ -@ sText_AuroraTicket2: -@ .string "It appears to be for use at the\nLILYCOVE CITY port.\pWhy not give it a try and see what\nit is about?$" -@ -@ sText_AuroraTicketGot: -@ .string "Thank you for using the MYSTERY\nGIFT System.$" -@ -@ sText_AuroraTicketNoPlace: -@ .string "Oh, I'm sorry, {PLAYER}.\nYour BAG’s KEY ITEMS POCKET is full.\pPlease store something on your PC,\nthen come back for this.$" -@ -@ MysteryEventScript_MysticTicket:: @ 867550B -@ setvaddress MysteryEventScript_MysticTicket -@ lock -@ faceplayer -@ checkflag FLAG_0x13B -@ vgoto_if 1, MysticTicket_Obtained -@ checkflag FLAG_0x091 -@ vgoto_if 1, MysticTicket_Obtained -@ checkflag FLAG_0x092 -@ vgoto_if 1, MysticTicket_Obtained -@ checkitem ITEM_MYSTIC_TICKET, 1 -@ compare_var_to_value VAR_RESULT, 1 -@ vgoto_if 1, MysticTicket_Obtained -@ vmessage sText_MysticTicket2 -@ waitmessage -@ waitbutton -@ checkitemspace ITEM_MYSTIC_TICKET, 1 -@ compare_var_to_value VAR_RESULT, 0 -@ vgoto_if 1, MysticTicket_NoBagSpace -@ giveitem ITEM_MYSTIC_TICKET -@ setflag FLAG_0x8E0 -@ setflag FLAG_0x13B -@ vmessage sText_MysticTicket1 -@ waitmessage -@ waitbutton -@ release -@ end -@ -@ MysticTicket_NoBagSpace: @ 867556F -@ vmessage sText_MysticTicketNoPlace -@ waitmessage -@ waitbutton -@ release -@ end -@ -@ MysticTicket_Obtained: @ 8675578 -@ vmessage sText_MysticTicketGot -@ waitmessage -@ waitbutton -@ release -@ end -@ -@ sText_MysticTicket2: -@ .string "Thank you for using the MYSTERY\nGIFT System.\pYou must be {PLAYER}.\nThere is a ticket here for you.$" -@ -@ sText_MysticTicket1: -@ .string "It appears to be for use at the\nLILYCOVE CITY port.\pWhy not give it a try and see what\nit is about?$" -@ -@ sText_MysticTicketGot: -@ .string "Thank you for using the MYSTERY\nGIFT System.$" -@ -@ sText_MysticTicketNoPlace: -@ .string "Oh, I'm sorry, {PLAYER}.\nYour BAG’s KEY ITEMS POCKET is full.\pPlease store something on your PC,\nthen come back for this.$" -@ -@ MysteryEventScript_AlteringCave:: @ 86756E3 -@ setvaddress MysteryEventScript_AlteringCave -@ addvar VAR_ALTERING_CAVE_WILD_SET, 1 -@ compare_var_to_value VAR_ALTERING_CAVE_WILD_SET, 10 -@ vgoto_if 0, MysteryEventScript_AlteringCave_ -@ setvar VAR_ALTERING_CAVE_WILD_SET, 0 -@ MysteryEventScript_AlteringCave_: @ 86756FD -@ lock -@ faceplayer -@ vmessage sText_MysteryGiftAlteringCave -@ waitmessage -@ waitbutton -@ release -@ end -@ -@ sText_MysteryGiftAlteringCave:: -@ .string "Thank you for using the MYSTERY\nGIFT System.\pThere appears to be a rumor about\nrare POKéMON sightings.\pThe sightings reportedly came from\nthe ALTERING CAVE on ROUTE 103.\pPerhaps it would be worthwhile for\nyou to investigate this rumor.$" -@ -@ MysteryEventScript_OldSeaMap:: @ 86757F4 -@ setvaddress MysteryEventScript_OldSeaMap -@ lock -@ faceplayer -@ checkflag FLAG_0x13C -@ vgoto_if 1, OldSeaMap_Obtained -@ checkflag FLAG_0x1CA -@ vgoto_if 1, OldSeaMap_Obtained -@ checkitem ITEM_OLD_SEA_MAP, 1 -@ compare_var_to_value VAR_RESULT, 1 -@ vgoto_if 1, OldSeaMap_Obtained -@ vmessage sText_MysteryGiftOldSeaMap -@ waitmessage -@ waitbutton -@ checkitemspace ITEM_OLD_SEA_MAP, 1 -@ compare_var_to_value VAR_RESULT, 0 -@ vgoto_if 1, OldSeaMap_NoBagSpace -@ giveitem ITEM_OLD_SEA_MAP -@ setflag FLAG_0x8D6 -@ setflag FLAG_0x13C -@ vmessage sText_MysteryGiftOldSeaMap_1 -@ waitmessage -@ waitbutton -@ release -@ end -@ -@ OldSeaMap_NoBagSpace: @ 867584F -@ vmessage sText_MysteryGiftOldSeaMap_3 -@ waitmessage -@ waitbutton -@ release -@ end -@ -@ OldSeaMap_Obtained: @ 8675858 -@ vmessage sText_MysteryGiftOldSeaMap_2 -@ waitmessage -@ waitbutton -@ release -@ end -@ -@ sText_MysteryGiftOldSeaMap: -@ .string "Thank you for using the MYSTERY\nGIFT System.\pLet me confirm--you are {PLAYER}?\pWe received this OLD SEA MAP\naddressed to you.$" -@ -@ sText_MysteryGiftOldSeaMap_1: -@ .string "It appears to be for use at the\nLILYCOVE CITY port.\pWhy not give it a try and see what\nit is about?$" -@ -@ sText_MysteryGiftOldSeaMap_2: -@ .string "Thank you for using the MYSTERY\nGIFT System.$" -@ -@ sText_MysteryGiftOldSeaMap_3: -@ .string "Oh, I'm sorry, {PLAYER}.\nYour BAG’s KEY ITEMS POCKET is full.\pPlease store something on your PC,\nthen come back for this.$" +sText_MysteryGiftStampCard: @ 8488E55 + .string "Thank you for using the STAMP CARD\n" + .string "System.\p" + .string "You have {STR_VAR_1} more to collect to\n" + .string "fill your STAMP CARD.$" + +MysteryEventScript_SurfPichu:: @ 8488EB5 + setvaddress MysteryEventScript_SurfPichu + checkflag FLAG_MYSTERY_EVENT_DONE + vgoto_if FALSE, SurfPichu_GiveIfPossible + gotoram + +SurfPichu_GiveIfPossible: @ 8488EC4 + specialvar VAR_EVENT_PICHU_SLOT, CalculatePlayerPartyCount + compare_var_to_value VAR_EVENT_PICHU_SLOT, 6 + vgoto_if TRUE, SurfPichu_FullParty + setflag FLAG_MYSTERY_EVENT_DONE + vcall SurfPichu_GiveEgg + lock + faceplayer + vmessage sText_MysteryGiftEgg + waitmessage + waitbuttonpress + playfanfare MUS_FANFA4 + waitfanfare + release + end + +SurfPichu_FullParty: @ 8488EEB + lock + faceplayer + vmessage sText_FullParty + waitmessage + waitbuttonpress + release + end + +SurfPichu_GiveEgg: @ 8488EF6 + giveegg SPECIES_PICHU + setmonobedient VAR_EVENT_PICHU_SLOT + setmonmetlocation VAR_EVENT_PICHU_SLOT, 0xff + compare_var_to_value VAR_EVENT_PICHU_SLOT, 1 + vgoto_if TRUE, SurfPichu_Slot1 + compare_var_to_value VAR_EVENT_PICHU_SLOT, 2 + vgoto_if TRUE, SurfPichu_Slot2 + compare_var_to_value VAR_EVENT_PICHU_SLOT, 3 + vgoto_if TRUE, SurfPichu_Slot3 + compare_var_to_value VAR_EVENT_PICHU_SLOT, 4 + vgoto_if TRUE, SurfPichu_Slot4 + compare_var_to_value VAR_EVENT_PICHU_SLOT, 5 + vgoto_if TRUE, SurfPichu_Slot5 + return + +SurfPichu_Slot1: @ 8488F38 + setmonmove 1, 2, MOVE_SURF + return + +SurfPichu_Slot2: @ 8488F3E + setmonmove 2, 2, MOVE_SURF + return + +SurfPichu_Slot3: @ 8488F44 + setmonmove 3, 2, MOVE_SURF + return + +SurfPichu_Slot4: @ 8488F4A + setmonmove 4, 2, MOVE_SURF + return + +SurfPichu_Slot5: @ 8488F50 + setmonmove 5, 2, MOVE_SURF + return + +sText_MysteryGiftEgg: @ 8488F56 + .string "Thank you for using the MYSTERY\n" + .string "GIFT System.\p" + .string "From the POKéMON CENTER we\n" + .string "have a gift - a POKéMON EGG!\p" + .string "Please raise it with love and\n" + .string "kindness.$" + +sText_FullParty: @ 8488FE3 + .string "Oh, your party appears to be full.\p" + .string "Please come see me after storing\n" + .string "a POKéMON on a PC.$" + +MysteryEventScript_VisitingTrainer:: @ 848903A + setvaddress MysteryEventScript_VisitingTrainer + special ValidateEReaderTrainer + compare_var_to_value VAR_RESULT, 0 + vgoto_if TRUE, MysteryEventScript_VisitingTrainerArrived + lock + faceplayer + vmessage sText_MysteryGiftVisitingTrainer + waitmessage + waitbuttonpress + release + end + +MysteryEventScript_VisitingTrainerArrived: @ 8489058 + lock + faceplayer + vmessage sText_MysteryGiftVisitingTrainer_2 + waitmessage + waitbuttonpress + release + end + +sText_MysteryGiftVisitingTrainer: @ 8489063 + .string "Thank you for using the MYSTERY\n" + .string "GIFT System.\p" + .string "By holding this WONDER CARD, you\n" + .string "may take part in a survey at a\l" + .string "POKéMON MART.\p" + .string "Use these surveys to invite\n" + .string "TRAINERS to the SEVII ISLANDS.\p" + .string "…Let me give you a secret\n" + .string "password for a survey:\p" + .string "“GIVE ME\n" + .string "AWESOME TRAINERâ€\p" + .string "Write that in on a survey and send\n" + .string "it to the WIRELESS\l" + .string "COMMUNICATION SYSTEM.$" + +sText_MysteryGiftVisitingTrainer_2: @ 84891B0 + .string "Thank you for using the MYSTERY\n" + .string "GIFT System.\p" + .string "A TRAINER has arrived in the SEVII\n" + .string "ISLANDS looking for you.\p" + .string "We hope you will enjoy\n" + .string "battling the visiting TRAINER.\p" + .string "You may invite other TRAINERS by\n" + .string "entering other passwords.\p" + .string "Try looking for other passwords\n" + .string "that may work.$" + +MysteryEventScript_BattleCard:: @ 84892B9 + setvaddress MysteryEventScript_BattleCard + checkflag FLAG_MYSTERY_EVENT_DONE + vgoto_if TRUE, MysteryEventScript_BattleCardInfo + setorcopyvar VAR_RESULT, 2 + specialvar VAR_0x8008, Special_BattleCardAction + compare_var_to_value VAR_0x8008, 3 + vgoto_if FALSE, MysteryEventScript_BattleCardInfo + lock + faceplayer + vmessage sText_MysteryGiftBattleCountCard_2 + waitmessage + waitbuttonpress + giveitem ITEM_POTION + release + setflag FLAG_MYSTERY_EVENT_DONE + end + +MysteryEventScript_BattleCardInfo: @ 84892F6 + lock + faceplayer + vmessage sText_MysteryGiftBattleCountCard + waitmessage + waitbuttonpress + release + end + +sText_MysteryGiftBattleCountCard: @ 8489301 + .string "Thank you for using the MYSTERY\n" + .string "GIFT System.\p" + .string "Your BATTLE COUNT CARD keeps\n" + .string "track of your battle record against\l" + .string "TRAINERS with the same CARD.\p" + .string "Look for and battle TRAINERS who\n" + .string "have the same CARD as you.\p" + .string "You may check the overall rankings\n" + .string "by reading the NEWS.\p" + .string "Please do give it a try!$" + +sText_MysteryGiftBattleCountCard_2: @ 8489419 + .string "Thank you for using the MYSTERY\n" + .string "GIFT System.\p" + .string "Congratulations!\p" + .string "You have won a prize for winning\n" + .string "three battles!\p" + .string "We hope you will be inspired to\n" + .string "battle some more.$" + +MysteryEventScript_AuroraTicket:: @ 84894B9 + setvaddress MysteryEventScript_AuroraTicket + lock + faceplayer + checkflag FLAG_GOT_AURORA_TICKET + vgoto_if TRUE, AuroraTicket_Obtained + checkflag FLAG_FOUGHT_DEOXYS + vgoto_if TRUE, AuroraTicket_Obtained + checkitem ITEM_AURORA_TICKET, 1 + compare_var_to_value VAR_RESULT, 1 + vgoto_if TRUE, AuroraTicket_Obtained + vmessage sText_AuroraTicket1 + waitmessage + waitbuttonpress + checkitemspace ITEM_AURORA_TICKET, 1 + compare_var_to_value VAR_RESULT, 0 + vgoto_if TRUE, AuroraTicket_NoBagSpace + giveitem ITEM_AURORA_TICKET + setflag FLAG_SYS_GOT_AURORA_TICKET + setflag FLAG_GOT_AURORA_TICKET + vmessage sText_AuroraTicket2 + waitmessage + waitbuttonpress + release + end + +AuroraTicket_NoBagSpace: @ 8489514 + vmessage sText_AuroraTicketNoPlace + waitmessage + waitbuttonpress + release + end + +AuroraTicket_Obtained: @ 848951D + vmessage sText_AuroraTicketGot + waitmessage + waitbuttonpress + release + end + +sText_AuroraTicket1: @ 8489526 + .string "Thank you for using the MYSTERY\n" + .string "GIFT System.\p" + .string "You must be {PLAYER}.\n" + .string "There is a ticket here for you.$" + +sText_AuroraTicket2: @ 8489583 + .string "It appears to be for use at the\n" + .string "VERMILION CITY port.\p" + .string "Why not give it a try and see what\n" + .string "it is about?$" + +sText_AuroraTicketGot: @ 84895E8 + .string "Thank you for using the MYSTERY\n" + .string "GIFT System.$" + +sText_AuroraTicketNoPlace: @ 8489615 + .string "Oh, I'm sorry, {PLAYER}. Your BAG's\n" + .string "KEY ITEMS POCKET is full.\p" + .string "Please store something on your PC,\n" + .string "then come back for this.$" + +MysteryEventScript_MysticTicket:: @ 8489689 + setvaddress MysteryEventScript_MysticTicket + lock + faceplayer + checkflag FLAG_GOT_MYSTIC_TICKET + vgoto_if TRUE, MysticTicket_Obtained + checkflag FLAG_FOUGHT_LUGIA + vgoto_if TRUE, MysticTicket_Obtained + checkflag FLAG_FOUGHT_HO_OH + vgoto_if TRUE, MysticTicket_Obtained + checkitem ITEM_MYSTIC_TICKET, 1 + compare_var_to_value VAR_RESULT, 1 + vgoto_if TRUE, MysticTicket_Obtained + vmessage sText_MysticTicket2 + waitmessage + waitbuttonpress + checkitemspace ITEM_MYSTIC_TICKET, 1 + compare_var_to_value VAR_RESULT, 0 + vgoto_if TRUE, MysticTicket_NoBagSpace + giveitem ITEM_MYSTIC_TICKET + setflag FLAG_SYS_GOT_MYSTIC_TICKET + setflag FLAG_GOT_MYSTIC_TICKET + vmessage sText_MysticTicket1 + waitmessage + waitbuttonpress + release + end + +MysticTicket_NoBagSpace: @ 84896ED + vmessage sText_MysticTicketNoPlace + waitmessage + waitbuttonpress + release + end + +MysticTicket_Obtained: @ 84896F6 + vmessage sText_MysticTicketGot + waitmessage + waitbuttonpress + release + end + +sText_MysticTicket2: @ 84896FF + .string "Thank you for using the MYSTERY\n" + .string "GIFT System.\p" + .string "You must be {PLAYER}.\n" + .string "There is a ticket here for you.$" + +sText_MysticTicket1: @ 848975C + .string "It appears to be for use at the\n" + .string "VERMILION CITY port.\p" + .string "Why not give it a try and see what\n" + .string "it is about?$" + +sText_MysticTicketGot: @ 84897C1 + .string "Thank you for using the MYSTERY\n" + .string "GIFT System.$" + +sText_MysticTicketNoPlace: @ 84897EE + .string "Oh, I'm sorry, {PLAYER}. Your BAG's\n" + .string "KEY ITEMS POCKET is full.\p" + .string "Please store something on your PC,\n" + .string "then come back for this.$" + +MysteryEventScript_AlteringCave:: @ 8489862 + setvaddress MysteryEventScript_AlteringCave + addvar VAR_ALTERING_CAVE_WILD_SET, 1 + compare_var_to_value VAR_ALTERING_CAVE_WILD_SET, 10 + vgoto_if FALSE, MysteryEventScript_AlteringCave_ + setvar VAR_ALTERING_CAVE_WILD_SET, 0 +MysteryEventScript_AlteringCave_: @ 848987C + lock + faceplayer + vmessage sText_MysteryGiftAlteringCave + waitmessage + waitbuttonpress + release + end + +sText_MysteryGiftAlteringCave: @ 8489887 + .string "Thank you for using the MYSTERY\n" + .string "GIFT System.\p" + .string "Recently, there have been rumors\n" + .string "of rare POKéMON appearances.\p" + .string "The rumors are about ALTERING\n" + .string "CAVE on OUTCAST ISLAND.\p" + .string "Why not visit there and check if\n" + .string "the rumors are indeed true?$" diff --git a/data/overworld.s b/data/overworld.s new file mode 100644 index 000000000..b305b3002 --- /dev/null +++ b/data/overworld.s @@ -0,0 +1,126 @@ +#include "constants/flags.h" +#include "constants/maps.h" + .include "asm/macros.inc" + .include "constants/constants.inc" + .section .rodata + .align 2, 0 + +sWhiteOutMoneyLossMultipliers:: @ 826D294 + .byte 2 + .byte 4 + .byte 6 + .byte 9 + .byte 12 + .byte 16 + .byte 20 + .byte 25 + .byte 30 + + .align 1 +sWhiteOutMoneyLossBadgeFlagIDs:: @ 826D29E + .2byte FLAG_BADGE01_GET + .2byte FLAG_BADGE02_GET + .2byte FLAG_BADGE03_GET + .2byte FLAG_BADGE04_GET + .2byte FLAG_BADGE05_GET + .2byte FLAG_BADGE06_GET + .2byte FLAG_BADGE07_GET + .2byte FLAG_BADGE08_GET + + .align 2 +sDummyWarpData:: @ 826D2B0 + map MAP_UNDEFINED + .byte 0xFF + .align 1 + .2byte 0xFFFF, 0xFFFF + +sUnusedData:: @ 826D2B8 + .4byte 1200 + .4byte 3600 + .4byte 1200 + .4byte 2400 + .4byte 50 + .4byte 80 + .4byte -44 + .4byte 44 + +gDirectionToVectors:: @ 826D2D8 + .4byte 0, 0 + .4byte 0, 1 + .4byte 0, -1 + .4byte -1, 0 + .4byte 1, 0 + .4byte -1, 1 + .4byte 1, 1 + .4byte -1, -1 + .4byte 1, -1 + +gUnknown_826D320:: @ 826D320 + .4byte 0x000001f8 + @ { + @ .bg = 0, + @ .charBaseIndex = 2, + @ .mapBaseIndex = 31, + @ .screenSize = 0, + @ .paletteMode = 0, + @ .priority = 0, + @ .baseTile = 0x0000 + @ } + .4byte 0x000011d1 + @ { + @ .bg = 1, + @ .charBaseIndex = 0, + @ .mapBaseIndex = 29, + @ .screenSize = 0, + @ .paletteMode = 0, + @ .priority = 1, + @ .baseTile = 0x0000 + @ } + .4byte 0x000021c2 + @ { + @ .bg = 2, + @ .charBaseIndex = 0, + @ .mapBaseIndex = 28, + @ .screenSize = 0, + @ .paletteMode = 0, + @ .priority = 2, + @ .baseTile = 0x0000 + @ } + .4byte 0x000031e3 + @ { + @ .bg = 3, + @ .charBaseIndex = 0, + @ .mapBaseIndex = 30, + @ .screenSize = 0, + @ .paletteMode = 0, + @ .priority = 3, + @ .baseTile = 0x0000 + @ } + +gUnknown_826D330:: @ 826D330 + .4byte REG_WIN0H + .4byte (2 >> 1) | ((DMA_16BIT | DMA_DEST_RELOAD | DMA_SRC_INC | DMA_REPEAT | DMA_START_HBLANK | DMA_ENABLE) << 16) + .byte 1, 0 + + .align 2 +gUnknown_826D33C:: @ 826D33C + .4byte sub_8058684 + .4byte sub_80586A4 + .4byte sub_80586A8 + +gUnknown_826D348:: @ 826D348 + .4byte sub_80586C8 + .4byte sub_80586CC + .4byte sub_80586CC + .4byte sub_80586CC + .4byte sub_80586CC + .4byte sub_80586C8 + .4byte sub_80586C8 + .4byte sub_8058734 + .4byte sub_8058734 + .4byte sub_8058734 + .4byte sub_8058734 + +gUnknown_826D374:: @ 826D374 + .4byte sub_805874C + .4byte sub_8058754 diff --git a/data/pokeball.s b/data/pokeball.s new file mode 100644 index 000000000..db8dbfef5 --- /dev/null +++ b/data/pokeball.s @@ -0,0 +1,116 @@ + .include "asm/macros.inc" + .include "constants/constants.inc" + + .section .rodata + .align 2, 0 + +gUnknown_826056C:: @ 826056C + obj_tiles gFile_graphics_interface_ball_Poke_sheet, 0x180, 55000 + obj_tiles gFile_graphics_interface_ball_Great_sheet, 0x180, 55001 + obj_tiles gFile_graphics_interface_ball_Safari_sheet, 0x180, 55002 + obj_tiles gFile_graphics_interface_ball_Ultra_sheet, 0x180, 55003 + obj_tiles gFile_graphics_interface_ball_Master_sheet, 0x180, 55004 + obj_tiles gFile_graphics_interface_ball_Net_sheet, 0x180, 55005 + obj_tiles gFile_graphics_interface_ball_Dive_sheet, 0x180, 55006 + obj_tiles gFile_graphics_interface_ball_Nest_sheet, 0x180, 55007 + obj_tiles gFile_graphics_interface_ball_Repeat_sheet, 0x180, 55008 + obj_tiles gFile_graphics_interface_ball_Timer_sheet, 0x180, 55009 + obj_tiles gFile_graphics_interface_ball_Luxury_sheet, 0x180, 55010 + obj_tiles gFile_graphics_interface_ball_Premier_sheet, 0x180, 55011 + +gUnknown_82605CC:: @ 82605CC + obj_pal gFile_graphics_interface_ball_Poke_palette, 55000 + obj_pal gFile_graphics_interface_ball_Great_palette, 55001 + obj_pal gFile_graphics_interface_ball_Safari_palette, 55002 + obj_pal gFile_graphics_interface_ball_Ultra_palette, 55003 + obj_pal gFile_graphics_interface_ball_Master_palette, 55004 + obj_pal gFile_graphics_interface_ball_Net_palette, 55005 + obj_pal gFile_graphics_interface_ball_Dive_palette, 55006 + obj_pal gFile_graphics_interface_ball_Nest_palette, 55007 + obj_pal gFile_graphics_interface_ball_Repeat_palette, 55008 + obj_pal gFile_graphics_interface_ball_Timer_palette, 55009 + obj_pal gFile_graphics_interface_ball_Luxury_palette, 55010 + obj_pal gFile_graphics_interface_ball_Premier_palette, 55011 + +gOamData_826062C:: @ 826062C + .4byte 0x40000300, 0x00000800 + +gSpriteAnim_8260634:: @ 8260634 + obj_image_anim_frame 0x0, 0x5 + obj_image_anim_jump 0 + +gSpriteAnim_826063C:: @ 826063C + obj_image_anim_frame 0x4, 0x1 + obj_image_anim_jump 0 + +gSpriteAnim_8260644:: @ 8260644 + obj_image_anim_frame 0x8, 0x5 + obj_image_anim_jump 0 + +gSpriteAnim_826064C:: @ 826064C + obj_image_anim_frame 0xc, 0x1 + obj_image_anim_jump 0 + +gSpriteAnim_8260654:: @ 8260654 + obj_image_anim_frame 0x0, 0x1 + obj_image_anim_end + +gSpriteAnim_826065C:: @ 826065C + obj_image_anim_frame 0x4, 0x5 + obj_image_anim_frame 0x8, 0x5 + obj_image_anim_end + +gSpriteAnim_8260668:: @ 8260668 + obj_image_anim_frame 0x4, 0x5 + obj_image_anim_frame 0x0, 0x5 + obj_image_anim_end + +gSpriteAnimTable_8260674:: + .4byte gSpriteAnim_8260654 + .4byte gSpriteAnim_826065C + .4byte gSpriteAnim_8260668 + .4byte gSpriteAnim_8260634 + .4byte gSpriteAnim_8260644 + .4byte gSpriteAnim_826063C + .4byte gSpriteAnim_826064C + +gSpriteAffineAnims_8260690:: + obj_rot_scal_anim_frame 0x0, 0x0, 0x0, 0x1 + obj_rot_scal_anim_jump 0 + +gSpriteAffineAnims_82606A0:: + obj_rot_scal_anim_frame 0x0, 0x0, 0xfd, 0x1 + obj_rot_scal_anim_jump 0 + +gSpriteAffineAnims_82606B0:: + obj_rot_scal_anim_frame 0x0, 0x0, 0x3, 0x1 + obj_rot_scal_anim_jump 0 + +gSpriteAffineAnims_82606C0:: + obj_rot_scal_anim_frame 0x100, 0x100, 0x0, 0x0 + obj_rot_scal_anim_end + +gSpriteAffineAnims_82606D0:: + obj_rot_scal_anim_frame 0x0, 0x0, 0x19, 0x1 + obj_rot_scal_anim_jump 0 + +gSpriteAffineAnimTable_82606E0:: + .4byte gSpriteAffineAnims_8260690 + .4byte gSpriteAffineAnims_82606A0 + .4byte gSpriteAffineAnims_82606B0 + .4byte gSpriteAffineAnims_82606C0 + .4byte gSpriteAffineAnims_82606D0 + +gUnknown_82606F4:: @ 82606F4 + spr_template 55000, 55000, gOamData_826062C, gSpriteAnimTable_8260674, NULL, gSpriteAffineAnimTable_82606E0, SpriteCB_TestBallThrow + spr_template 55001, 55001, gOamData_826062C, gSpriteAnimTable_8260674, NULL, gSpriteAffineAnimTable_82606E0, SpriteCB_TestBallThrow + spr_template 55002, 55002, gOamData_826062C, gSpriteAnimTable_8260674, NULL, gSpriteAffineAnimTable_82606E0, SpriteCB_TestBallThrow + spr_template 55003, 55003, gOamData_826062C, gSpriteAnimTable_8260674, NULL, gSpriteAffineAnimTable_82606E0, SpriteCB_TestBallThrow + spr_template 55004, 55004, gOamData_826062C, gSpriteAnimTable_8260674, NULL, gSpriteAffineAnimTable_82606E0, SpriteCB_TestBallThrow + spr_template 55005, 55005, gOamData_826062C, gSpriteAnimTable_8260674, NULL, gSpriteAffineAnimTable_82606E0, SpriteCB_TestBallThrow + spr_template 55006, 55006, gOamData_826062C, gSpriteAnimTable_8260674, NULL, gSpriteAffineAnimTable_82606E0, SpriteCB_TestBallThrow + spr_template 55007, 55007, gOamData_826062C, gSpriteAnimTable_8260674, NULL, gSpriteAffineAnimTable_82606E0, SpriteCB_TestBallThrow + spr_template 55008, 55008, gOamData_826062C, gSpriteAnimTable_8260674, NULL, gSpriteAffineAnimTable_82606E0, SpriteCB_TestBallThrow + spr_template 55009, 55009, gOamData_826062C, gSpriteAnimTable_8260674, NULL, gSpriteAffineAnimTable_82606E0, SpriteCB_TestBallThrow + spr_template 55010, 55010, gOamData_826062C, gSpriteAnimTable_8260674, NULL, gSpriteAffineAnimTable_82606E0, SpriteCB_TestBallThrow + spr_template 55011, 55011, gOamData_826062C, gSpriteAnimTable_8260674, NULL, gSpriteAffineAnimTable_82606E0, SpriteCB_TestBallThrow diff --git a/data/script_menu/aerodactyl_fossil.png b/data/script_menu/aerodactyl_fossil.png new file mode 100644 index 000000000..067483d6e Binary files /dev/null and b/data/script_menu/aerodactyl_fossil.png differ diff --git a/data/script_menu/kabutops_fossil.png b/data/script_menu/kabutops_fossil.png new file mode 100644 index 000000000..e396b080a Binary files /dev/null and b/data/script_menu/kabutops_fossil.png differ diff --git a/data/sound_data.s b/data/sound_data.s index 244902335..cd33950e1 100644 --- a/data/sound_data.s +++ b/data/sound_data.s @@ -1,2548 +1,13 @@ - .include "asm/macros/m4a.inc" - .include "asm/macros/music_voice.inc" .section .rodata -voicegroup000:: @ 8489C8C - .incbin "baserom.gba", 0x489C8C, 0xF24 - -voicegroup012:: @ 848ABB0 - .incbin "baserom.gba", 0x48ABB0, 0x4C8 - -voicegroup026:: @ 848B078 - .incbin "baserom.gba", 0x48B078, 0x3FC - -voicegroup120:: @ 848B474 - .incbin "baserom.gba", 0x48B474, 0x444 - -voicegroup119:: @ 848B8B8 - .incbin "baserom.gba", 0x48B8B8, 0x444 - -voicegroup081:: @ 848BCFC - .incbin "baserom.gba", 0x48BCFC, 0x18 - -voicegroup127:: @ 848BD14 - .incbin "baserom.gba", 0x48BD14, 0x600 - -voicegroup128:: @ 848C314 - .incbin "baserom.gba", 0x48C314, 0x600 - - .align 2 -gCryTable:: @ 848C914 - cry Cry_Bulbasaur - cry Cry_Ivysaur - cry Cry_Venusaur - cry Cry_Charmander - cry Cry_Charmeleon - cry Cry_Charizard - cry Cry_Squirtle - cry Cry_Wartortle - cry Cry_Blastoise - cry Cry_Caterpie - cry Cry_Metapod - cry Cry_Butterfree - cry Cry_Weedle - cry Cry_Kakuna - cry Cry_Beedrill - cry Cry_Pidgey - cry Cry_Pidgeotto - cry Cry_Pidgeot - cry Cry_Rattata - cry Cry_Raticate - cry Cry_Spearow - cry Cry_Fearow - cry Cry_Ekans - cry Cry_Arbok - cry Cry_Pikachu - cry Cry_Raichu - cry Cry_Sandshrew - cry Cry_Sandslash - cry Cry_NidoranF - cry Cry_Nidorina - cry Cry_Nidoqueen - cry Cry_NidoranM - cry Cry_Nidorino - cry Cry_Nidoking - cry Cry_Clefairy - cry Cry_Clefable - cry Cry_Vulpix - cry Cry_Ninetales - cry Cry_Jigglypuff - cry Cry_Wigglytuff - cry Cry_Zubat - cry Cry_Golbat - cry Cry_Oddish - cry Cry_Gloom - cry Cry_Vileplume - cry Cry_Paras - cry Cry_Parasect - cry Cry_Venonat - cry Cry_Venomoth - cry Cry_Diglett - cry Cry_Dugtrio - cry Cry_Meowth - cry Cry_Persian - cry Cry_Psyduck - cry Cry_Golduck - cry Cry_Mankey - cry Cry_Primeape - cry Cry_Growlithe - cry Cry_Arcanine - cry Cry_Poliwag - cry Cry_Poliwhirl - cry Cry_Poliwrath - cry Cry_Abra - cry Cry_Kadabra - cry Cry_Alakazam - cry Cry_Machop - cry Cry_Machoke - cry Cry_Machamp - cry Cry_Bellsprout - cry Cry_Weepinbell - cry Cry_Victreebel - cry Cry_Tentacool - cry Cry_Tentacruel - cry Cry_Geodude - cry Cry_Graveler - cry Cry_Golem - cry Cry_Ponyta - cry Cry_Rapidash - cry Cry_Slowpoke - cry Cry_Slowbro - cry Cry_Magnemite - cry Cry_Magneton - cry Cry_Farfetchd - cry Cry_Doduo - cry Cry_Dodrio - cry Cry_Seel - cry Cry_Dewgong - cry Cry_Grimer - cry Cry_Muk - cry Cry_Shellder - cry Cry_Cloyster - cry Cry_Gastly - cry Cry_Haunter - cry Cry_Gengar - cry Cry_Onix - cry Cry_Drowzee - cry Cry_Hypno - cry Cry_Krabby - cry Cry_Kingler - cry Cry_Voltorb - cry Cry_Electrode - cry Cry_Exeggcute - cry Cry_Exeggutor - cry Cry_Cubone - cry Cry_Marowak - cry Cry_Hitmonlee - cry Cry_Hitmonchan - cry Cry_Lickitung - cry Cry_Koffing - cry Cry_Weezing - cry Cry_Rhyhorn - cry Cry_Rhydon - cry Cry_Chansey - cry Cry_Tangela - cry Cry_Kangaskhan - cry Cry_Horsea - cry Cry_Seadra - cry Cry_Goldeen - cry Cry_Seaking - cry Cry_Staryu - cry Cry_Starmie - cry Cry_MrMime - cry Cry_Scyther - cry Cry_Jynx - cry Cry_Electabuzz - cry Cry_Magmar - cry Cry_Pinsir - cry Cry_Tauros - cry Cry_Magikarp - cry Cry_Gyarados - cry Cry_Lapras - cry Cry_Ditto - cry Cry_Eevee - cry Cry_Vaporeon - cry Cry_Jolteon - cry Cry_Flareon - cry Cry_Porygon - cry Cry_Omanyte - cry Cry_Omastar - cry Cry_Kabuto - cry Cry_Kabutops - cry Cry_Aerodactyl - cry Cry_Snorlax - cry Cry_Articuno - cry Cry_Zapdos - cry Cry_Moltres - cry Cry_Dratini - cry Cry_Dragonair - cry Cry_Dragonite - cry Cry_Mewtwo - cry Cry_Mew - cry Cry_Chikorita - cry Cry_Bayleef - cry Cry_Meganium - cry Cry_Cyndaquil - cry Cry_Quilava - cry Cry_Typhlosion - cry Cry_Totodile - cry Cry_Croconaw - cry Cry_Feraligatr - cry Cry_Sentret - cry Cry_Furret - cry Cry_Hoothoot - cry Cry_Noctowl - cry Cry_Ledyba - cry Cry_Ledian - cry Cry_Spinarak - cry Cry_Ariados - cry Cry_Crobat - cry Cry_Chinchou - cry Cry_Lanturn - cry Cry_Pichu - cry Cry_Cleffa - cry Cry_Igglybuff - cry Cry_Togepi - cry Cry_Togetic - cry Cry_Natu - cry Cry_Xatu - cry Cry_Mareep - cry Cry_Flaaffy - cry Cry_Ampharos - cry Cry_Bellossom - cry Cry_Marill - cry Cry_Azumarill - cry Cry_Sudowoodo - cry Cry_Politoed - cry Cry_Hoppip - cry Cry_Skiploom - cry Cry_Jumpluff - cry Cry_Aipom - cry Cry_Sunkern - cry Cry_Sunflora - cry Cry_Yanma - cry Cry_Wooper - cry Cry_Quagsire - cry Cry_Espeon - cry Cry_Umbreon - cry Cry_Murkrow - cry Cry_Slowking - cry Cry_Misdreavus - cry Cry_Unown - cry Cry_Wobbuffet - cry Cry_Girafarig - cry Cry_Pineco - cry Cry_Forretress - cry Cry_Dunsparce - cry Cry_Gligar - cry Cry_Steelix - cry Cry_Snubbull - cry Cry_Granbull - cry Cry_Qwilfish - cry Cry_Scizor - cry Cry_Shuckle - cry Cry_Heracross - cry Cry_Sneasel - cry Cry_Teddiursa - cry Cry_Ursaring - cry Cry_Slugma - cry Cry_Magcargo - cry Cry_Swinub - cry Cry_Piloswine - cry Cry_Corsola - cry Cry_Remoraid - cry Cry_Octillery - cry Cry_Delibird - cry Cry_Mantine - cry Cry_Skarmory - cry Cry_Houndour - cry Cry_Houndoom - cry Cry_Kingdra - cry Cry_Phanpy - cry Cry_Donphan - cry Cry_Porygon2 - cry Cry_Stantler - cry Cry_Smeargle - cry Cry_Tyrogue - cry Cry_Hitmontop - cry Cry_Smoochum - cry Cry_Elekid - cry Cry_Magby - cry Cry_Miltank - cry Cry_Blissey - cry Cry_Raikou - cry Cry_Entei - cry Cry_Suicune - cry Cry_Larvitar - cry Cry_Pupitar - cry Cry_Tyranitar - cry Cry_Lugia - cry Cry_HoOh - cry Cry_Celebi - cry Cry_Kecleon - cry Cry_Roselia - cry Cry_Torkoal - cry Cry_Electrike - cry Cry_Manectric - cry Cry_Duskull - cry Cry_Latias - cry Cry_Wynaut - cry Cry_Seviper - cry Cry_Sharpedo - cry Cry_Zangoose - cry Cry_Azurill - cry Cry_Swablu - cry Cry_Altaria - cry Cry_Unused265 - cry Cry_Taillow - cry Cry_Swellow - cry Cry_Unused268 - cry Cry_Spinda - cry Cry_Torchic - cry Cry_Combusken - cry Cry_Blaziken - cry Cry_Treecko - cry Cry_Grovyle - cry Cry_Sceptile - cry Cry_Mudkip - cry Cry_Marshtomp - cry Cry_Swampert - cry Cry_Pelipper - cry Cry_Wingull - cry Cry_Banette - cry Cry_Shuppet - cry Cry_Lotad - cry Cry_Lombre - cry Cry_Ludicolo - cry Cry_Seedot - cry Cry_Nuzleaf - cry Cry_Shiftry - cry Cry_Carvanha - cry Cry_Wurmple - cry Cry_Silcoon - cry Cry_Beautifly - cry Cry_Cascoon - cry Cry_Dustox - cry Cry_Ralts - cry Cry_Kirlia - cry Cry_Gardevoir - cry Cry_Slakoth - cry Cry_Vigoroth - cry Cry_Slaking - cry Cry_Nincada - cry Cry_Ninjask - cry Cry_Shedinja - cry Cry_Makuhita - cry Cry_Hariyama - cry Cry_Nosepass - cry Cry_Glalie - cry Cry_Plusle - cry Cry_Minun - cry Cry_Surskit - cry Cry_Masquerain - cry Cry_Skitty - cry Cry_Delcatty - cry Cry_Gulpin - cry Cry_Swalot - cry Cry_Numel - cry Cry_Camerupt - cry Cry_Barboach - cry Cry_Whiscash - cry Cry_Corphish - cry Cry_Crawdaunt - cry Cry_Spoink - cry Cry_Grumpig - cry Cry_Trapinch - cry Cry_Vibrava - cry Cry_Flygon - cry Cry_Cacnea - cry Cry_Cacturne - cry Cry_Baltoy - cry Cry_Claydol - cry Cry_Lunatone - cry Cry_Solrock - cry Cry_Feebas - cry Cry_Milotic - cry Cry_Absol - cry Cry_Meditite - cry Cry_Medicham - cry Cry_Spheal - cry Cry_Sealeo - cry Cry_Walrein - cry Cry_Clamperl - cry Cry_Huntail - cry Cry_Gorebyss - cry Cry_Lileep - cry Cry_Cradily - cry Cry_Anorith - cry Cry_Armaldo - cry Cry_Beldum - cry Cry_Metang - cry Cry_Metagross - cry Cry_Bagon - cry Cry_Shelgon - cry Cry_Regirock - cry Cry_Regice - cry Cry_Registeel - cry Cry_Castform - cry Cry_Volbeat - cry Cry_Illumise - cry Cry_Poochyena - cry Cry_Mightyena - cry Cry_Dusclops - cry Cry_Sableye - cry Cry_Mawile - cry Cry_Aron - cry Cry_Lairon - cry Cry_Aggron - cry Cry_Relicanth - cry Cry_Luvdisc - cry Cry_Groudon - cry Cry_Kyogre - cry Cry_Rayquaza - cry Cry_Salamence - cry Cry_Breloom - cry Cry_Shroomish - cry Cry_Linoone - cry Cry_Tropius - cry Cry_Wailmer - cry Cry_Zigzagoon - cry Cry_Exploud - cry Cry_Loudred - cry Cry_Wailord - cry Cry_Whismur - cry Cry_Snorunt - cry Cry_Latios - cry Cry_Jirachi - cry Cry_Deoxys - cry Cry_Chimecho - - .align 2 -gCryTable2:: @ 848DB44 - cry2 Cry_Bulbasaur - cry2 Cry_Ivysaur - cry2 Cry_Venusaur - cry2 Cry_Charmander - cry2 Cry_Charmeleon - cry2 Cry_Charizard - cry2 Cry_Squirtle - cry2 Cry_Wartortle - cry2 Cry_Blastoise - cry2 Cry_Caterpie - cry2 Cry_Metapod - cry2 Cry_Butterfree - cry2 Cry_Weedle - cry2 Cry_Kakuna - cry2 Cry_Beedrill - cry2 Cry_Pidgey - cry2 Cry_Pidgeotto - cry2 Cry_Pidgeot - cry2 Cry_Rattata - cry2 Cry_Raticate - cry2 Cry_Spearow - cry2 Cry_Fearow - cry2 Cry_Ekans - cry2 Cry_Arbok - cry2 Cry_Pikachu - cry2 Cry_Raichu - cry2 Cry_Sandshrew - cry2 Cry_Sandslash - cry2 Cry_NidoranF - cry2 Cry_Nidorina - cry2 Cry_Nidoqueen - cry2 Cry_NidoranM - cry2 Cry_Nidorino - cry2 Cry_Nidoking - cry2 Cry_Clefairy - cry2 Cry_Clefable - cry2 Cry_Vulpix - cry2 Cry_Ninetales - cry2 Cry_Jigglypuff - cry2 Cry_Wigglytuff - cry2 Cry_Zubat - cry2 Cry_Golbat - cry2 Cry_Oddish - cry2 Cry_Gloom - cry2 Cry_Vileplume - cry2 Cry_Paras - cry2 Cry_Parasect - cry2 Cry_Venonat - cry2 Cry_Venomoth - cry2 Cry_Diglett - cry2 Cry_Dugtrio - cry2 Cry_Meowth - cry2 Cry_Persian - cry2 Cry_Psyduck - cry2 Cry_Golduck - cry2 Cry_Mankey - cry2 Cry_Primeape - cry2 Cry_Growlithe - cry2 Cry_Arcanine - cry2 Cry_Poliwag - cry2 Cry_Poliwhirl - cry2 Cry_Poliwrath - cry2 Cry_Abra - cry2 Cry_Kadabra - cry2 Cry_Alakazam - cry2 Cry_Machop - cry2 Cry_Machoke - cry2 Cry_Machamp - cry2 Cry_Bellsprout - cry2 Cry_Weepinbell - cry2 Cry_Victreebel - cry2 Cry_Tentacool - cry2 Cry_Tentacruel - cry2 Cry_Geodude - cry2 Cry_Graveler - cry2 Cry_Golem - cry2 Cry_Ponyta - cry2 Cry_Rapidash - cry2 Cry_Slowpoke - cry2 Cry_Slowbro - cry2 Cry_Magnemite - cry2 Cry_Magneton - cry2 Cry_Farfetchd - cry2 Cry_Doduo - cry2 Cry_Dodrio - cry2 Cry_Seel - cry2 Cry_Dewgong - cry2 Cry_Grimer - cry2 Cry_Muk - cry2 Cry_Shellder - cry2 Cry_Cloyster - cry2 Cry_Gastly - cry2 Cry_Haunter - cry2 Cry_Gengar - cry2 Cry_Onix - cry2 Cry_Drowzee - cry2 Cry_Hypno - cry2 Cry_Krabby - cry2 Cry_Kingler - cry2 Cry_Voltorb - cry2 Cry_Electrode - cry2 Cry_Exeggcute - cry2 Cry_Exeggutor - cry2 Cry_Cubone - cry2 Cry_Marowak - cry2 Cry_Hitmonlee - cry2 Cry_Hitmonchan - cry2 Cry_Lickitung - cry2 Cry_Koffing - cry2 Cry_Weezing - cry2 Cry_Rhyhorn - cry2 Cry_Rhydon - cry2 Cry_Chansey - cry2 Cry_Tangela - cry2 Cry_Kangaskhan - cry2 Cry_Horsea - cry2 Cry_Seadra - cry2 Cry_Goldeen - cry2 Cry_Seaking - cry2 Cry_Staryu - cry2 Cry_Starmie - cry2 Cry_MrMime - cry2 Cry_Scyther - cry2 Cry_Jynx - cry2 Cry_Electabuzz - cry2 Cry_Magmar - cry2 Cry_Pinsir - cry2 Cry_Tauros - cry2 Cry_Magikarp - cry2 Cry_Gyarados - cry2 Cry_Lapras - cry2 Cry_Ditto - cry2 Cry_Eevee - cry2 Cry_Vaporeon - cry2 Cry_Jolteon - cry2 Cry_Flareon - cry2 Cry_Porygon - cry2 Cry_Omanyte - cry2 Cry_Omastar - cry2 Cry_Kabuto - cry2 Cry_Kabutops - cry2 Cry_Aerodactyl - cry2 Cry_Snorlax - cry2 Cry_Articuno - cry2 Cry_Zapdos - cry2 Cry_Moltres - cry2 Cry_Dratini - cry2 Cry_Dragonair - cry2 Cry_Dragonite - cry2 Cry_Mewtwo - cry2 Cry_Mew - cry2 Cry_Chikorita - cry2 Cry_Bayleef - cry2 Cry_Meganium - cry2 Cry_Cyndaquil - cry2 Cry_Quilava - cry2 Cry_Typhlosion - cry2 Cry_Totodile - cry2 Cry_Croconaw - cry2 Cry_Feraligatr - cry2 Cry_Sentret - cry2 Cry_Furret - cry2 Cry_Hoothoot - cry2 Cry_Noctowl - cry2 Cry_Ledyba - cry2 Cry_Ledian - cry2 Cry_Spinarak - cry2 Cry_Ariados - cry2 Cry_Crobat - cry2 Cry_Chinchou - cry2 Cry_Lanturn - cry2 Cry_Pichu - cry2 Cry_Cleffa - cry2 Cry_Igglybuff - cry2 Cry_Togepi - cry2 Cry_Togetic - cry2 Cry_Natu - cry2 Cry_Xatu - cry2 Cry_Mareep - cry2 Cry_Flaaffy - cry2 Cry_Ampharos - cry2 Cry_Bellossom - cry2 Cry_Marill - cry2 Cry_Azumarill - cry2 Cry_Sudowoodo - cry2 Cry_Politoed - cry2 Cry_Hoppip - cry2 Cry_Skiploom - cry2 Cry_Jumpluff - cry2 Cry_Aipom - cry2 Cry_Sunkern - cry2 Cry_Sunflora - cry2 Cry_Yanma - cry2 Cry_Wooper - cry2 Cry_Quagsire - cry2 Cry_Espeon - cry2 Cry_Umbreon - cry2 Cry_Murkrow - cry2 Cry_Slowking - cry2 Cry_Misdreavus - cry2 Cry_Unown - cry2 Cry_Wobbuffet - cry2 Cry_Girafarig - cry2 Cry_Pineco - cry2 Cry_Forretress - cry2 Cry_Dunsparce - cry2 Cry_Gligar - cry2 Cry_Steelix - cry2 Cry_Snubbull - cry2 Cry_Granbull - cry2 Cry_Qwilfish - cry2 Cry_Scizor - cry2 Cry_Shuckle - cry2 Cry_Heracross - cry2 Cry_Sneasel - cry2 Cry_Teddiursa - cry2 Cry_Ursaring - cry2 Cry_Slugma - cry2 Cry_Magcargo - cry2 Cry_Swinub - cry2 Cry_Piloswine - cry2 Cry_Corsola - cry2 Cry_Remoraid - cry2 Cry_Octillery - cry2 Cry_Delibird - cry2 Cry_Mantine - cry2 Cry_Skarmory - cry2 Cry_Houndour - cry2 Cry_Houndoom - cry2 Cry_Kingdra - cry2 Cry_Phanpy - cry2 Cry_Donphan - cry2 Cry_Porygon2 - cry2 Cry_Stantler - cry2 Cry_Smeargle - cry2 Cry_Tyrogue - cry2 Cry_Hitmontop - cry2 Cry_Smoochum - cry2 Cry_Elekid - cry2 Cry_Magby - cry2 Cry_Miltank - cry2 Cry_Blissey - cry2 Cry_Raikou - cry2 Cry_Entei - cry2 Cry_Suicune - cry2 Cry_Larvitar - cry2 Cry_Pupitar - cry2 Cry_Tyranitar - cry2 Cry_Lugia - cry2 Cry_HoOh - cry2 Cry_Celebi - cry2 Cry_Kecleon - cry2 Cry_Roselia - cry2 Cry_Torkoal - cry2 Cry_Electrike - cry2 Cry_Manectric - cry2 Cry_Duskull - cry2 Cry_Latias - cry2 Cry_Wynaut - cry2 Cry_Seviper - cry2 Cry_Sharpedo - cry2 Cry_Zangoose - cry2 Cry_Azurill - cry2 Cry_Swablu - cry2 Cry_Altaria - cry2 Cry_Unused265 - cry2 Cry_Taillow - cry2 Cry_Swellow - cry2 Cry_Unused268 - cry2 Cry_Spinda - cry2 Cry_Torchic - cry2 Cry_Combusken - cry2 Cry_Blaziken - cry2 Cry_Treecko - cry2 Cry_Grovyle - cry2 Cry_Sceptile - cry2 Cry_Mudkip - cry2 Cry_Marshtomp - cry2 Cry_Swampert - cry2 Cry_Pelipper - cry2 Cry_Wingull - cry2 Cry_Banette - cry2 Cry_Shuppet - cry2 Cry_Lotad - cry2 Cry_Lombre - cry2 Cry_Ludicolo - cry2 Cry_Seedot - cry2 Cry_Nuzleaf - cry2 Cry_Shiftry - cry2 Cry_Carvanha - cry2 Cry_Wurmple - cry2 Cry_Silcoon - cry2 Cry_Beautifly - cry2 Cry_Cascoon - cry2 Cry_Dustox - cry2 Cry_Ralts - cry2 Cry_Kirlia - cry2 Cry_Gardevoir - cry2 Cry_Slakoth - cry2 Cry_Vigoroth - cry2 Cry_Slaking - cry2 Cry_Nincada - cry2 Cry_Ninjask - cry2 Cry_Shedinja - cry2 Cry_Makuhita - cry2 Cry_Hariyama - cry2 Cry_Nosepass - cry2 Cry_Glalie - cry2 Cry_Plusle - cry2 Cry_Minun - cry2 Cry_Surskit - cry2 Cry_Masquerain - cry2 Cry_Skitty - cry2 Cry_Delcatty - cry2 Cry_Gulpin - cry2 Cry_Swalot - cry2 Cry_Numel - cry2 Cry_Camerupt - cry2 Cry_Barboach - cry2 Cry_Whiscash - cry2 Cry_Corphish - cry2 Cry_Crawdaunt - cry2 Cry_Spoink - cry2 Cry_Grumpig - cry2 Cry_Trapinch - cry2 Cry_Vibrava - cry2 Cry_Flygon - cry2 Cry_Cacnea - cry2 Cry_Cacturne - cry2 Cry_Baltoy - cry2 Cry_Claydol - cry2 Cry_Lunatone - cry2 Cry_Solrock - cry2 Cry_Feebas - cry2 Cry_Milotic - cry2 Cry_Absol - cry2 Cry_Meditite - cry2 Cry_Medicham - cry2 Cry_Spheal - cry2 Cry_Sealeo - cry2 Cry_Walrein - cry2 Cry_Clamperl - cry2 Cry_Huntail - cry2 Cry_Gorebyss - cry2 Cry_Lileep - cry2 Cry_Cradily - cry2 Cry_Anorith - cry2 Cry_Armaldo - cry2 Cry_Beldum - cry2 Cry_Metang - cry2 Cry_Metagross - cry2 Cry_Bagon - cry2 Cry_Shelgon - cry2 Cry_Regirock - cry2 Cry_Regice - cry2 Cry_Registeel - cry2 Cry_Castform - cry2 Cry_Volbeat - cry2 Cry_Illumise - cry2 Cry_Poochyena - cry2 Cry_Mightyena - cry2 Cry_Dusclops - cry2 Cry_Sableye - cry2 Cry_Mawile - cry2 Cry_Aron - cry2 Cry_Lairon - cry2 Cry_Aggron - cry2 Cry_Relicanth - cry2 Cry_Luvdisc - cry2 Cry_Groudon - cry2 Cry_Kyogre - cry2 Cry_Rayquaza - cry2 Cry_Salamence - cry2 Cry_Breloom - cry2 Cry_Shroomish - cry2 Cry_Linoone - cry2 Cry_Tropius - cry2 Cry_Wailmer - cry2 Cry_Zigzagoon - cry2 Cry_Exploud - cry2 Cry_Loudred - cry2 Cry_Wailord - cry2 Cry_Whismur - cry2 Cry_Snorunt - cry2 Cry_Latios - cry2 Cry_Jirachi - cry2 Cry_Deoxys - cry2 Cry_Chimecho - -voicegroup129:: @ 848ED74 - .incbin "baserom.gba", 0x48ED74, 0x600 - -voicegroup130:: @ 848F374 - .incbin "baserom.gba", 0x48F374, 0x600 - -voicegroup131:: @ 848F974 - .incbin "baserom.gba", 0x48F974, 0x600 - -voicegroup132:: @ 848FF74 - .incbin "baserom.gba", 0x48FF74, 0x600 - -voicegroup133:: @ 8490574 - .incbin "baserom.gba", 0x490574, 0x600 - -voicegroup134:: @ 8490B74 - .incbin "baserom.gba", 0x490B74, 0x438 - -voicegroup135:: @ 8490FAC - .incbin "baserom.gba", 0x490FAC, 0x3E4 - -voicegroup136:: @ 8491390 - .incbin "baserom.gba", 0x491390, 0x600 - -voicegroup137:: @ 8491990 - .incbin "baserom.gba", 0x491990, 0x600 - -voicegroup138:: @ 8491F90 - .incbin "baserom.gba", 0x491F90, 0x600 - -voicegroup139:: @ 8492590 - .incbin "baserom.gba", 0x492590, 0x600 - -voicegroup140:: @ 8492B90 - .incbin "baserom.gba", 0x492B90, 0x30 - -voicegroup141:: @ 8492BC0 - .incbin "baserom.gba", 0x492BC0, 0x600 - -voicegroup142:: @ 84931C0 - .incbin "baserom.gba", 0x4931C0, 0x3F0 - -voicegroup143:: @ 84935B0 - .incbin "baserom.gba", 0x4935B0, 0x600 - -voicegroup144:: @ 8493BB0 - .incbin "baserom.gba", 0x493BB0, 0x600 - -voicegroup145:: @ 84941B0 - .incbin "baserom.gba", 0x4941B0, 0x600 - -voicegroup146:: @ 84947B0 - .incbin "baserom.gba", 0x4947B0, 0x600 - -voicegroup147:: @ 8494DB0 - .incbin "baserom.gba", 0x494DB0, 0x3F0 - -voicegroup148:: @ 84951A0 - .incbin "baserom.gba", 0x4951A0, 0x600 - -voicegroup149:: @ 84957A0 - .incbin "baserom.gba", 0x4957A0, 0x45C - -voicegroup150:: @ 8495BFC - .incbin "baserom.gba", 0x495BFC, 0x600 - -voicegroup151:: @ 84961FC - .incbin "baserom.gba", 0x4961FC, 0x420 - -voicegroup152:: @ 849661C - .incbin "baserom.gba", 0x49661C, 0x600 - -voicegroup153:: @ 8496C1C - .incbin "baserom.gba", 0x496C1C, 0x600 - -voicegroup154:: @ 849721C - .incbin "baserom.gba", 0x49721C, 0x45C - -voicegroup155:: @ 8497678 - .incbin "baserom.gba", 0x497678, 0x600 - -voicegroup156:: @ 8497C78 - .incbin "baserom.gba", 0x497C78, 0x600 - -voicegroup157:: @ 8498278 - .incbin "baserom.gba", 0x498278, 0x600 - -voicegroup158:: @ 8498878 - .incbin "baserom.gba", 0x498878, 0x600 - -voicegroup159:: @ 8498E78 - .incbin "baserom.gba", 0x498E78, 0x600 - -voicegroup160:: @ 8499478 - .incbin "baserom.gba", 0x499478, 0x420 - -voicegroup161:: @ 8499898 - .incbin "baserom.gba", 0x499898, 0x600 - -voicegroup162:: @ 8499E98 - .incbin "baserom.gba", 0x499E98, 0x45C - -voicegroup163:: @ 849A2F4 - .incbin "baserom.gba", 0x49A2F4, 0x600 - -voicegroup164:: @ 849A8F4 - .incbin "baserom.gba", 0x49A8F4, 0x600 - -voicegroup165:: @ 849AEF4 - .incbin "baserom.gba", 0x49AEF4, 0x600 - -voicegroup166:: @ 849B4F4 - .incbin "baserom.gba", 0x49B4F4, 0x600 - -voicegroup167:: @ 849BAF4 - .incbin "baserom.gba", 0x49BAF4, 0x600 - -voicegroup168:: @ 849C0F4 - .incbin "baserom.gba", 0x49C0F4, 0x600 - -voicegroup169:: @ 849C6F4 - .incbin "baserom.gba", 0x49C6F4, 0x600 - -voicegroup170:: @ 849CCF4 - .incbin "baserom.gba", 0x49CCF4, 0x3F0 - -voicegroup171:: @ 849D0E4 - .incbin "baserom.gba", 0x49D0E4, 0x444 - -voicegroup172:: @ 849D528 - .incbin "baserom.gba", 0x49D528, 0x600 - -voicegroup173:: @ 849DB28 - .incbin "baserom.gba", 0x49DB28, 0x600 - -voicegroup174:: @ 849E128 - .incbin "baserom.gba", 0x49E128, 0x75C - -voicegroup175:: @ 849E884 - .incbin "baserom.gba", 0x49E884, 0x8E8 - -voicegroup178:: @ 849F16C - .incbin "baserom.gba", 0x49F16C, 0x420 - -voicegroup179:: @ 849F58C - .incbin "baserom.gba", 0x49F58C, 0x420 - -voicegroup180:: @ 849F9AC - .incbin "baserom.gba", 0x49F9AC, 0x600 - -voicegroup181:: @ 849FFAC - .incbin "baserom.gba", 0x49FFAC, 0x234 - -voicegroup182:: @ 84A01E0 - .incbin "baserom.gba", 0x4A01E0, 0x420 - -voicegroup183:: @ 84A0600 - .incbin "baserom.gba", 0x4A0600, 0x600 - -voicegroup184:: @ 84A0C00 - .incbin "baserom.gba", 0x4A0C00, 0x408 - -voicegroup185:: @ 84A1008 - .incbin "baserom.gba", 0x4A1008, 0x600 - -voicegroup186:: @ 84A1608 - .incbin "baserom.gba", 0x4A1608, 0x600 - -voicegroup187:: @ 84A1C08 - .incbin "baserom.gba", 0x4A1C08, 0x600 - -voicegroup188:: @ 84A2208 - .incbin "baserom.gba", 0x4A2208, 0x600 - -voicegroup189:: @ 84A2808 - .incbin "baserom.gba", 0x4A2808, 0xA94 + .include "asm/macros/m4a.inc" + .include "asm/macros/music_voice.inc" + .include "sound/voice_groups.inc" + .include "sound/keysplit_tables.inc" + .include "sound/programmable_wave_data.inc" .include "sound/music_player_table.inc" .include "sound/song_table.inc" + .include "sound/direct_sound_data.inc" .align 2 -gDirectSoundWaveData_0:: @ 84A3DA8 - .incbin "baserom.gba", 0x4A3DA8, 0x6BE1C - - .align 2 -Cry_Bulbasaur:: @ 850FBC4 - .incbin "sound/direct_sound_samples/cry_bulbasaur.bin" - - .align 2 -Cry_Ivysaur:: @ 8510C50 - .incbin "sound/direct_sound_samples/cry_ivysaur.bin" - - .align 2 -Cry_Venusaur:: @ 8511CE0 - .incbin "sound/direct_sound_samples/cry_venusaur.bin" - - .align 2 -Cry_Charmander:: @ 8513038 - .incbin "sound/direct_sound_samples/cry_charmander.bin" - - .align 2 -Cry_Charmeleon:: @ 8513EA8 - .incbin "sound/direct_sound_samples/cry_charmeleon.bin" - - .align 2 -Cry_Charizard:: @ 8514D28 - .incbin "sound/direct_sound_samples/cry_charizard.bin" - - .align 2 -Cry_Squirtle:: @ 8516070 - .incbin "sound/direct_sound_samples/cry_squirtle.bin" - - .align 2 -Cry_Wartortle:: @ 8516EE4 - .incbin "sound/direct_sound_samples/cry_wartortle.bin" - - .align 2 -Cry_Blastoise:: @ 8518024 - .incbin "sound/direct_sound_samples/cry_blastoise.bin" - - .align 2 -Cry_Caterpie:: @ 851936C - .incbin "sound/direct_sound_samples/cry_caterpie.bin" - - .align 2 -Cry_Metapod:: @ 8519BC4 - .incbin "sound/direct_sound_samples/cry_metapod.bin" - - .align 2 -Cry_Butterfree:: @ 851B314 - .incbin "sound/direct_sound_samples/cry_butterfree.bin" - - .align 2 -Cry_Weedle:: @ 851BD1C - .incbin "sound/direct_sound_samples/cry_weedle.bin" - - .align 2 -Cry_Kakuna:: @ 851CD60 - .incbin "sound/direct_sound_samples/cry_kakuna.bin" - - .align 2 -Cry_Beedrill:: @ 851DF9C - .incbin "sound/direct_sound_samples/cry_beedrill.bin" - - .align 2 -Cry_Pidgey:: @ 851F2F8 - .incbin "sound/direct_sound_samples/cry_pidgey.bin" - - .align 2 -Cry_Pidgeotto:: @ 851F6E0 - .incbin "sound/direct_sound_samples/cry_pidgeotto.bin" - - .align 2 -Cry_Pidgeot:: @ 85205E8 - .incbin "sound/direct_sound_samples/cry_pidgeot.bin" - - .align 2 -Cry_Rattata:: @ 852171C - .incbin "sound/direct_sound_samples/cry_rattata.bin" - - .align 2 -Cry_Raticate:: @ 8521EFC - .incbin "sound/direct_sound_samples/cry_raticate.bin" - - .align 2 -Cry_Spearow:: @ 8522880 - .incbin "sound/direct_sound_samples/cry_spearow.bin" - - .align 2 -Cry_Fearow:: @ 8523A24 - .incbin "sound/direct_sound_samples/cry_fearow.bin" - - .align 2 -Cry_Ekans:: @ 8524B60 - .incbin "sound/direct_sound_samples/cry_ekans.bin" - - .align 2 -Cry_Arbok:: @ 8525EAC - .incbin "sound/direct_sound_samples/cry_arbok.bin" - - .align 2 -Cry_Pikachu:: @ 8527204 - .incbin "sound/direct_sound_samples/cry_pikachu.bin" - - .align 2 -Cry_Raichu:: @ 85282AC - .incbin "sound/direct_sound_samples/cry_raichu.bin" - - .align 2 -Cry_Sandshrew:: @ 8529A6C - .incbin "sound/direct_sound_samples/cry_sandshrew.bin" - - .align 2 -Cry_Sandslash:: @ 852A3C0 - .incbin "sound/direct_sound_samples/cry_sandslash.bin" - - .align 2 -Cry_NidoranF:: @ 852B150 - .incbin "sound/direct_sound_samples/cry_nidoran_f.bin" - - .align 2 -Cry_Nidorina:: @ 852BB00 - .incbin "sound/direct_sound_samples/cry_nidorina.bin" - - .align 2 -Cry_Nidoqueen:: @ 852C7C8 - .incbin "sound/direct_sound_samples/cry_nidoqueen.bin" - - .align 2 -Cry_NidoranM:: @ 852D8A8 - .incbin "sound/direct_sound_samples/cry_nidoran_m.bin" - - .align 2 -Cry_Nidorino:: @ 852E310 - .incbin "sound/direct_sound_samples/cry_nidorino.bin" - - .align 2 -Cry_Nidoking:: @ 852EF24 - .incbin "sound/direct_sound_samples/cry_nidoking.bin" - - .align 2 -Cry_Clefairy:: @ 8530790 - .incbin "sound/direct_sound_samples/cry_clefairy.bin" - - .align 2 -Cry_Clefable:: @ 8531000 - .incbin "sound/direct_sound_samples/cry_clefable.bin" - - .align 2 -Cry_Vulpix:: @ 8531A90 - .incbin "sound/direct_sound_samples/cry_vulpix.bin" - - .align 2 -Cry_Ninetales:: @ 8533260 - .incbin "sound/direct_sound_samples/cry_ninetales.bin" - - .align 2 -Cry_Jigglypuff:: @ 8534ACC - .incbin "sound/direct_sound_samples/cry_jigglypuff.bin" - - .align 2 -Cry_Wigglytuff:: @ 8535030 - .incbin "sound/direct_sound_samples/cry_wigglytuff.bin" - - .align 2 -Cry_Zubat:: @ 85356F8 - .incbin "sound/direct_sound_samples/cry_zubat.bin" - - .align 2 -Cry_Golbat:: @ 8536A64 - .incbin "sound/direct_sound_samples/cry_golbat.bin" - - .align 2 -Cry_Oddish:: @ 8537DC8 - .incbin "sound/direct_sound_samples/cry_oddish.bin" - - .align 2 -Cry_Gloom:: @ 8538C64 - .incbin "sound/direct_sound_samples/cry_gloom.bin" - - .align 2 -Cry_Vileplume:: @ 85398E0 - .incbin "sound/direct_sound_samples/cry_vileplume.bin" - - .align 2 -Cry_Paras:: @ 853B27C - .incbin "sound/direct_sound_samples/cry_paras.bin" - - .align 2 -Cry_Parasect:: @ 853CE70 - .incbin "sound/direct_sound_samples/cry_parasect.bin" - - .align 2 -Cry_Venonat:: @ 853ECD8 - .incbin "sound/direct_sound_samples/cry_venonat.bin" - - .align 2 -Cry_Venomoth:: @ 853FC58 - .incbin "sound/direct_sound_samples/cry_venomoth.bin" - - .align 2 -Cry_Diglett:: @ 8540C5C - .incbin "sound/direct_sound_samples/cry_diglett.bin" - - .align 2 -Cry_Dugtrio:: @ 8541FCC - .incbin "sound/direct_sound_samples/cry_dugtrio.bin" - - .align 2 -Cry_Meowth:: @ 8543338 - .incbin "sound/direct_sound_samples/cry_meowth.bin" - - .align 2 -Cry_Persian:: @ 8543CC8 - .incbin "sound/direct_sound_samples/cry_persian.bin" - - .align 2 -Cry_Psyduck:: @ 8544FA4 - .incbin "sound/direct_sound_samples/cry_psyduck.bin" - - .align 2 -Cry_Golduck:: @ 8545CCC - .incbin "sound/direct_sound_samples/cry_golduck.bin" - - .align 2 -Cry_Mankey:: @ 8546814 - .incbin "sound/direct_sound_samples/cry_mankey.bin" - - .align 2 -Cry_Primeape:: @ 8547874 - .incbin "sound/direct_sound_samples/cry_primeape.bin" - - .align 2 -Cry_Growlithe:: @ 85488A4 - .incbin "sound/direct_sound_samples/cry_growlithe.bin" - - .align 2 -Cry_Arcanine:: @ 8549608 - .incbin "sound/direct_sound_samples/cry_arcanine.bin" - - .align 2 -Cry_Poliwag:: @ 854A744 - .incbin "sound/direct_sound_samples/cry_poliwag.bin" - - .align 2 -Cry_Poliwhirl:: @ 854B260 - .incbin "sound/direct_sound_samples/cry_poliwhirl.bin" - - .align 2 -Cry_Poliwrath:: @ 854B908 - .incbin "sound/direct_sound_samples/cry_poliwrath.bin" - - .align 2 -Cry_Abra:: @ 854C42C - .incbin "sound/direct_sound_samples/cry_abra.bin" - - .align 2 -Cry_Kadabra:: @ 854DB90 - .incbin "sound/direct_sound_samples/cry_kadabra.bin" - - .align 2 -Cry_Alakazam:: @ 854F678 - .incbin "sound/direct_sound_samples/cry_alakazam.bin" - - .align 2 -Cry_Machop:: @ 8551614 - .incbin "sound/direct_sound_samples/cry_machop.bin" - - .align 2 -Cry_Machoke:: @ 8552378 - .incbin "sound/direct_sound_samples/cry_machoke.bin" - - .align 2 -Cry_Machamp:: @ 8553108 - .incbin "sound/direct_sound_samples/cry_machamp.bin" - - .align 2 -Cry_Bellsprout:: @ 8554190 - .incbin "sound/direct_sound_samples/cry_bellsprout.bin" - - .align 2 -Cry_Weepinbell:: @ 855491C - .incbin "sound/direct_sound_samples/cry_weepinbell.bin" - - .align 2 -Cry_Victreebel:: @ 85557BC - .incbin "sound/direct_sound_samples/cry_victreebel.bin" - - .align 2 -Cry_Tentacool:: @ 8556B08 - .incbin "sound/direct_sound_samples/cry_tentacool.bin" - - .align 2 -Cry_Tentacruel:: @ 8557AF8 - .incbin "sound/direct_sound_samples/cry_tentacruel.bin" - - .align 2 -Cry_Geodude:: @ 85591F4 - .incbin "sound/direct_sound_samples/cry_geodude.bin" - - .align 2 -Cry_Graveler:: @ 855A9A8 - .incbin "sound/direct_sound_samples/cry_graveler.bin" - - .align 2 -Cry_Golem:: @ 855C590 - .incbin "sound/direct_sound_samples/cry_golem.bin" - - .align 2 -Cry_Ponyta:: @ 855D3BC - .incbin "sound/direct_sound_samples/cry_ponyta.bin" - - .align 2 -Cry_Rapidash:: @ 855E2CC - .incbin "sound/direct_sound_samples/cry_rapidash.bin" - - .align 2 -Cry_Slowpoke:: @ 855F56C - .incbin "sound/direct_sound_samples/cry_slowpoke.bin" - - .align 2 -Cry_Slowbro:: @ 855FCD4 - .incbin "sound/direct_sound_samples/cry_slowbro.bin" - - .align 2 -Cry_Magnemite:: @ 8560A44 - .incbin "sound/direct_sound_samples/cry_magnemite.bin" - - .align 2 -Cry_Magneton:: @ 8561D88 - .incbin "sound/direct_sound_samples/cry_magneton.bin" - - .align 2 -Cry_Farfetchd:: @ 8563570 - .incbin "sound/direct_sound_samples/cry_farfetchd.bin" - - .align 2 -Cry_Doduo:: @ 8563CEC - .incbin "sound/direct_sound_samples/cry_doduo.bin" - - .align 2 -Cry_Dodrio:: @ 8565030 - .incbin "sound/direct_sound_samples/cry_dodrio.bin" - - .align 2 -Cry_Seel:: @ 85663A8 - .incbin "sound/direct_sound_samples/cry_seel.bin" - - .align 2 -Cry_Dewgong:: @ 8567598 - .incbin "sound/direct_sound_samples/cry_dewgong.bin" - - .align 2 -Cry_Grimer:: @ 8568ABC - .incbin "sound/direct_sound_samples/cry_grimer.bin" - - .align 2 -Cry_Muk:: @ 8569544 - .incbin "sound/direct_sound_samples/cry_muk.bin" - - .align 2 -Cry_Shellder:: @ 856A404 - .incbin "sound/direct_sound_samples/cry_shellder.bin" - - .align 2 -Cry_Cloyster:: @ 856B378 - .incbin "sound/direct_sound_samples/cry_cloyster.bin" - - .align 2 -Cry_Gastly:: @ 856C83C - .incbin "sound/direct_sound_samples/cry_gastly.bin" - - .align 2 -Cry_Haunter:: @ 856DF8C - .incbin "sound/direct_sound_samples/cry_haunter.bin" - - .align 2 -Cry_Gengar:: @ 856F70C - .incbin "sound/direct_sound_samples/cry_gengar.bin" - - .align 2 -Cry_Onix:: @ 85705CC - .incbin "sound/direct_sound_samples/cry_onix.bin" - - .align 2 -Cry_Drowzee:: @ 8571E90 - .incbin "sound/direct_sound_samples/cry_drowzee.bin" - - .align 2 -Cry_Hypno:: @ 8573BA8 - .incbin "sound/direct_sound_samples/cry_hypno.bin" - - .align 2 -Cry_Krabby:: @ 85758AC - .incbin "sound/direct_sound_samples/cry_krabby.bin" - - .align 2 -Cry_Kingler:: @ 85770F8 - .incbin "sound/direct_sound_samples/cry_kingler.bin" - - .align 2 -Cry_Voltorb:: @ 8578950 - .incbin "sound/direct_sound_samples/cry_voltorb.bin" - - .align 2 -Cry_Electrode:: @ 857A214 - .incbin "sound/direct_sound_samples/cry_electrode.bin" - - .align 2 -Cry_Exeggcute:: @ 857BB4C - .incbin "sound/direct_sound_samples/cry_exeggcute.bin" - - .align 2 -Cry_Exeggutor:: @ 857CE2C - .incbin "sound/direct_sound_samples/cry_exeggutor.bin" - - .align 2 -Cry_Cubone:: @ 857EE10 - .incbin "sound/direct_sound_samples/cry_cubone.bin" - - .align 2 -Cry_Marowak:: @ 857FD30 - .incbin "sound/direct_sound_samples/cry_marowak.bin" - - .align 2 -Cry_Hitmonlee:: @ 8580BA0 - .incbin "sound/direct_sound_samples/cry_hitmonlee.bin" - - .align 2 -Cry_Hitmonchan:: @ 8581E4C - .incbin "sound/direct_sound_samples/cry_hitmonchan.bin" - - .align 2 -Cry_Lickitung:: @ 8583024 - .incbin "sound/direct_sound_samples/cry_lickitung.bin" - - .align 2 -Cry_Koffing:: @ 8583F4C - .incbin "sound/direct_sound_samples/cry_koffing.bin" - - .align 2 -Cry_Weezing:: @ 85853A8 - .incbin "sound/direct_sound_samples/cry_weezing.bin" - - .align 2 -Cry_Rhyhorn:: @ 8586954 - .incbin "sound/direct_sound_samples/cry_rhyhorn.bin" - - .align 2 -Cry_Rhydon:: @ 8587CC0 - .incbin "sound/direct_sound_samples/cry_rhydon.bin" - - .align 2 -Cry_Chansey:: @ 858912C - .incbin "sound/direct_sound_samples/cry_chansey.bin" - - .align 2 -Cry_Tangela:: @ 8589FF8 - .incbin "sound/direct_sound_samples/cry_tangela.bin" - - .align 2 -Cry_Kangaskhan:: @ 858AF14 - .incbin "sound/direct_sound_samples/cry_kangaskhan.bin" - - .align 2 -Cry_Horsea:: @ 858C1C8 - .incbin "sound/direct_sound_samples/cry_horsea.bin" - - .align 2 -Cry_Seadra:: @ 858CB44 - .incbin "sound/direct_sound_samples/cry_seadra.bin" - - .align 2 -Cry_Goldeen:: @ 858D3B0 - .incbin "sound/direct_sound_samples/cry_goldeen.bin" - - .align 2 -Cry_Seaking:: @ 858DD88 - .incbin "sound/direct_sound_samples/cry_seaking.bin" - - .align 2 -Cry_Staryu:: @ 858F0E0 - .incbin "sound/direct_sound_samples/cry_staryu.bin" - - .align 2 -Cry_Starmie:: @ 85904C8 - .incbin "sound/direct_sound_samples/cry_starmie.bin" - - .align 2 -Cry_MrMime:: @ 85919A4 - .incbin "sound/direct_sound_samples/cry_mr_mime.bin" - - .align 2 -Cry_Scyther:: @ 8592C94 - .incbin "sound/direct_sound_samples/cry_scyther.bin" - - .align 2 -Cry_Jynx:: @ 85939F0 - .incbin "sound/direct_sound_samples/cry_jynx.bin" - - .align 2 -Cry_Electabuzz:: @ 8596964 - .incbin "sound/direct_sound_samples/cry_electabuzz.bin" - - .align 2 -Cry_Magmar:: @ 8598848 - .incbin "sound/direct_sound_samples/cry_magmar.bin" - - .align 2 -Cry_Pinsir:: @ 85997C4 - .incbin "sound/direct_sound_samples/cry_pinsir.bin" - - .align 2 -Cry_Tauros:: @ 859A420 - .incbin "sound/direct_sound_samples/cry_tauros.bin" - - .align 2 -Cry_Magikarp:: @ 859B674 - .incbin "sound/direct_sound_samples/cry_magikarp.bin" - - .align 2 -Cry_Gyarados:: @ 859C97C - .incbin "sound/direct_sound_samples/cry_gyarados.bin" - - .align 2 -Cry_Lapras:: @ 859DDB0 - .incbin "sound/direct_sound_samples/cry_lapras.bin" - - .align 2 -Cry_Ditto:: @ 859EC84 - .incbin "sound/direct_sound_samples/cry_ditto.bin" - - .align 2 -Cry_Eevee:: @ 859F7A0 - .incbin "sound/direct_sound_samples/cry_eevee.bin" - - .align 2 -Cry_Vaporeon:: @ 85A05D8 - .incbin "sound/direct_sound_samples/cry_vaporeon.bin" - - .align 2 -Cry_Jolteon:: @ 85A1BF0 - .incbin "sound/direct_sound_samples/cry_jolteon.bin" - - .align 2 -Cry_Flareon:: @ 85A2BC4 - .incbin "sound/direct_sound_samples/cry_flareon.bin" - - .align 2 -Cry_Porygon:: @ 85A3B48 - .incbin "sound/direct_sound_samples/cry_porygon.bin" - - .align 2 -Cry_Omanyte:: @ 85A4F54 - .incbin "sound/direct_sound_samples/cry_omanyte.bin" - - .align 2 -Cry_Omastar:: @ 85A5CAC - .incbin "sound/direct_sound_samples/cry_omastar.bin" - - .align 2 -Cry_Kabuto:: @ 85A6A00 - .incbin "sound/direct_sound_samples/cry_kabuto.bin" - - .align 2 -Cry_Kabutops:: @ 85A7654 - .incbin "sound/direct_sound_samples/cry_kabutops.bin" - - .align 2 -Cry_Aerodactyl:: @ 85A8410 - .incbin "sound/direct_sound_samples/cry_aerodactyl.bin" - - .align 2 -Cry_Snorlax:: @ 85A9C6C - .incbin "sound/direct_sound_samples/cry_snorlax.bin" - - .align 2 -Cry_Articuno:: @ 85AA1A8 - .incbin "sound/direct_sound_samples/cry_articuno.bin" - - .align 2 -Cry_Zapdos:: @ 85AB950 - .incbin "sound/direct_sound_samples/cry_zapdos.bin" - - .align 2 -Cry_Moltres:: @ 85AC8C8 - .incbin "sound/direct_sound_samples/cry_moltres.bin" - - .align 2 -Cry_Dratini:: @ 85AE074 - .incbin "sound/direct_sound_samples/cry_dratini.bin" - - .align 2 -Cry_Dragonair:: @ 85AEC10 - .incbin "sound/direct_sound_samples/cry_dragonair.bin" - - .align 2 -Cry_Dragonite:: @ 85AFCB8 - .incbin "sound/direct_sound_samples/cry_dragonite.bin" - - .align 2 -Cry_Mewtwo:: @ 85B0FC4 - .incbin "sound/direct_sound_samples/cry_mewtwo.bin" - - .align 2 -Cry_Mew:: @ 85B2E2C - .incbin "sound/direct_sound_samples/cry_mew.bin" - - .align 2 -Cry_Chikorita:: @ 85B4C94 - .incbin "sound/direct_sound_samples/cry_chikorita.bin" - - .align 2 -Cry_Bayleef:: @ 85B51D4 - .incbin "sound/direct_sound_samples/cry_bayleef.bin" - - .align 2 -Cry_Meganium:: @ 85B5AA0 - .incbin "sound/direct_sound_samples/cry_meganium.bin" - - .align 2 -Cry_Cyndaquil:: @ 85B6AD8 - .incbin "sound/direct_sound_samples/cry_cyndaquil.bin" - - .align 2 -Cry_Quilava:: @ 85B71DC - .incbin "sound/direct_sound_samples/cry_quilava.bin" - - .align 2 -Cry_Typhlosion:: @ 85B7DC4 - .incbin "sound/direct_sound_samples/cry_typhlosion.bin" - - .align 2 -Cry_Totodile:: @ 85BA3D4 - .incbin "sound/direct_sound_samples/cry_totodile.bin" - - .align 2 -Cry_Croconaw:: @ 85BB62C - .incbin "sound/direct_sound_samples/cry_croconaw.bin" - - .align 2 -Cry_Feraligatr:: @ 85BCA68 - .incbin "sound/direct_sound_samples/cry_feraligatr.bin" - - .align 2 -Cry_Sentret:: @ 85BE3EC - .incbin "sound/direct_sound_samples/cry_sentret.bin" - - .align 2 -Cry_Furret:: @ 85BE814 - .incbin "sound/direct_sound_samples/cry_furret.bin" - - .align 2 -Cry_Hoothoot:: @ 85BEE5C - .incbin "sound/direct_sound_samples/cry_hoothoot.bin" - - .align 2 -Cry_Noctowl:: @ 85BF940 - .incbin "sound/direct_sound_samples/cry_noctowl.bin" - - .align 2 -Cry_Ledyba:: @ 85C0E70 - .incbin "sound/direct_sound_samples/cry_ledyba.bin" - - .align 2 -Cry_Ledian:: @ 85C1568 - .incbin "sound/direct_sound_samples/cry_ledian.bin" - - .align 2 -Cry_Spinarak:: @ 85C1DCC - .incbin "sound/direct_sound_samples/cry_spinarak.bin" - - .align 2 -Cry_Ariados:: @ 85C2B30 - .incbin "sound/direct_sound_samples/cry_ariados.bin" - - .align 2 -Cry_Crobat:: @ 85C3784 - .incbin "sound/direct_sound_samples/cry_crobat.bin" - - .align 2 -Cry_Chinchou:: @ 85C4EB4 - .incbin "sound/direct_sound_samples/cry_chinchou.bin" - - .align 2 -Cry_Lanturn:: @ 85C5B64 - .incbin "sound/direct_sound_samples/cry_lanturn.bin" - - .align 2 -Cry_Pichu:: @ 85C65F0 - .incbin "sound/direct_sound_samples/cry_pichu.bin" - - .align 2 -Cry_Cleffa:: @ 85C6D44 - .incbin "sound/direct_sound_samples/cry_cleffa.bin" - - .align 2 -Cry_Igglybuff:: @ 85C7334 - .incbin "sound/direct_sound_samples/cry_igglybuff.bin" - - .align 2 -Cry_Togepi:: @ 85C7A30 - .incbin "sound/direct_sound_samples/cry_togepi.bin" - - .align 2 -Cry_Togetic:: @ 85C8518 - .incbin "sound/direct_sound_samples/cry_togetic.bin" - - .align 2 -Cry_Natu:: @ 85C8C18 - .incbin "sound/direct_sound_samples/cry_natu.bin" - - .align 2 -Cry_Xatu:: @ 85C96A8 - .incbin "sound/direct_sound_samples/cry_xatu.bin" - - .align 2 -Cry_Mareep:: @ 85CA574 - .incbin "sound/direct_sound_samples/cry_mareep.bin" - - .align 2 -Cry_Flaaffy:: @ 85CACCC - .incbin "sound/direct_sound_samples/cry_flaaffy.bin" - - .align 2 -Cry_Ampharos:: @ 85CBA80 - .incbin "sound/direct_sound_samples/cry_ampharos.bin" - - .align 2 -Cry_Bellossom:: @ 85CCB00 - .incbin "sound/direct_sound_samples/cry_bellossom.bin" - - .align 2 -Cry_Marill:: @ 85CD918 - .incbin "sound/direct_sound_samples/cry_marill.bin" - - .align 2 -Cry_Azumarill:: @ 85CE62C - .incbin "sound/direct_sound_samples/cry_azumarill.bin" - - .align 2 -Cry_Sudowoodo:: @ 85CF718 - .incbin "sound/direct_sound_samples/cry_sudowoodo.bin" - - .align 2 -Cry_Politoed:: @ 85D0748 - .incbin "sound/direct_sound_samples/cry_politoed.bin" - - .align 2 -Cry_Hoppip:: @ 85D198C - .incbin "sound/direct_sound_samples/cry_hoppip.bin" - - .align 2 -Cry_Skiploom:: @ 85D21F8 - .incbin "sound/direct_sound_samples/cry_skiploom.bin" - - .align 2 -Cry_Jumpluff:: @ 85D2F00 - .incbin "sound/direct_sound_samples/cry_jumpluff.bin" - - .align 2 -Cry_Aipom:: @ 85D3F3C - .incbin "sound/direct_sound_samples/cry_aipom.bin" - - .align 2 -Cry_Sunkern:: @ 85D4D5C - .incbin "sound/direct_sound_samples/cry_sunkern.bin" - - .align 2 -Cry_Sunflora:: @ 85D5570 - .incbin "sound/direct_sound_samples/cry_sunflora.bin" - - .align 2 -Cry_Yanma:: @ 85D6550 - .incbin "sound/direct_sound_samples/cry_yanma.bin" - - .align 2 -Cry_Wooper:: @ 85D7658 - .incbin "sound/direct_sound_samples/cry_wooper.bin" - - .align 2 -Cry_Quagsire:: @ 85D7DB8 - .incbin "sound/direct_sound_samples/cry_quagsire.bin" - - .align 2 -Cry_Espeon:: @ 85D8B18 - .incbin "sound/direct_sound_samples/cry_espeon.bin" - - .align 2 -Cry_Umbreon:: @ 85D9ECC - .incbin "sound/direct_sound_samples/cry_umbreon.bin" - - .align 2 -Cry_Murkrow:: @ 85DAE4C - .incbin "sound/direct_sound_samples/cry_murkrow.bin" - - .align 2 -Cry_Slowking:: @ 85DBF10 - .incbin "sound/direct_sound_samples/cry_slowking.bin" - - .align 2 -Cry_Misdreavus:: @ 85DD6F4 - .incbin "sound/direct_sound_samples/cry_misdreavus.bin" - - .align 2 -Cry_Unown:: @ 85DE294 - .incbin "sound/direct_sound_samples/cry_unown.bin" - - .align 2 -Cry_Wobbuffet:: @ 85DEFBC - .incbin "sound/direct_sound_samples/cry_wobbuffet.bin" - - .align 2 -Cry_Girafarig:: @ 85E0458 - .incbin "sound/direct_sound_samples/cry_girafarig.bin" - - .align 2 -Cry_Pineco:: @ 85E130C - .incbin "sound/direct_sound_samples/cry_pineco.bin" - - .align 2 -Cry_Forretress:: @ 85E206C - .incbin "sound/direct_sound_samples/cry_forretress.bin" - - .align 2 -Cry_Dunsparce:: @ 85E3474 - .incbin "sound/direct_sound_samples/cry_dunsparce.bin" - - .align 2 -Cry_Gligar:: @ 85E4454 - .incbin "sound/direct_sound_samples/cry_gligar.bin" - - .align 2 -Cry_Steelix:: @ 85E5074 - .incbin "sound/direct_sound_samples/cry_steelix.bin" - - .align 2 -Cry_Snubbull:: @ 85E769C - .incbin "sound/direct_sound_samples/cry_snubbull.bin" - - .align 2 -Cry_Granbull:: @ 85E8510 - .incbin "sound/direct_sound_samples/cry_granbull.bin" - - .align 2 -Cry_Qwilfish:: @ 85E9CB4 - .incbin "sound/direct_sound_samples/cry_qwilfish.bin" - - .align 2 -Cry_Scizor:: @ 85EA850 - .incbin "sound/direct_sound_samples/cry_scizor.bin" - - .align 2 -Cry_Shuckle:: @ 85EBF4C - .incbin "sound/direct_sound_samples/cry_shuckle.bin" - - .align 2 -Cry_Heracross:: @ 85EC980 - .incbin "sound/direct_sound_samples/cry_heracross.bin" - - .align 2 -Cry_Sneasel:: @ 85EDBD4 - .incbin "sound/direct_sound_samples/cry_sneasel.bin" - - .align 2 -Cry_Teddiursa:: @ 85EE4F8 - .incbin "sound/direct_sound_samples/cry_teddiursa.bin" - - .align 2 -Cry_Ursaring:: @ 85EF584 - .incbin "sound/direct_sound_samples/cry_ursaring.bin" - - .align 2 -Cry_Slugma:: @ 85F135C - .incbin "sound/direct_sound_samples/cry_slugma.bin" - - .align 2 -Cry_Magcargo:: @ 85F2474 - .incbin "sound/direct_sound_samples/cry_magcargo.bin" - - .align 2 -Cry_Swinub:: @ 85F397C - .incbin "sound/direct_sound_samples/cry_swinub.bin" - - .align 2 -Cry_Piloswine:: @ 85F4624 - .incbin "sound/direct_sound_samples/cry_piloswine.bin" - - .align 2 -Cry_Corsola:: @ 85F5318 - .incbin "sound/direct_sound_samples/cry_corsola.bin" - - .align 2 -Cry_Remoraid:: @ 85F5FF8 - .incbin "sound/direct_sound_samples/cry_remoraid.bin" - - .align 2 -Cry_Octillery:: @ 85F6A88 - .incbin "sound/direct_sound_samples/cry_octillery.bin" - - .align 2 -Cry_Delibird:: @ 85F84CC - .incbin "sound/direct_sound_samples/cry_delibird.bin" - - .align 2 -Cry_Mantine:: @ 85F9500 - .incbin "sound/direct_sound_samples/cry_mantine.bin" - - .align 2 -Cry_Skarmory:: @ 85FA4C8 - .incbin "sound/direct_sound_samples/cry_skarmory.bin" - - .align 2 -Cry_Houndour:: @ 85FBCD0 - .incbin "sound/direct_sound_samples/cry_houndour.bin" - - .align 2 -Cry_Houndoom:: @ 85FC978 - .incbin "sound/direct_sound_samples/cry_houndoom.bin" - - .align 2 -Cry_Kingdra:: @ 85FDD28 - .incbin "sound/direct_sound_samples/cry_kingdra.bin" - - .align 2 -Cry_Phanpy:: @ 85FEB00 - .incbin "sound/direct_sound_samples/cry_phanpy.bin" - - .align 2 -Cry_Donphan:: @ 85FF650 - .incbin "sound/direct_sound_samples/cry_donphan.bin" - - .align 2 -Cry_Porygon2:: @ 8600774 - .incbin "sound/direct_sound_samples/cry_porygon2.bin" - - .align 2 -Cry_Stantler:: @ 860172C - .incbin "sound/direct_sound_samples/cry_stantler.bin" - - .align 2 -Cry_Smeargle:: @ 8602DA8 - .incbin "sound/direct_sound_samples/cry_smeargle.bin" - - .align 2 -Cry_Tyrogue:: @ 86037DC - .incbin "sound/direct_sound_samples/cry_tyrogue.bin" - - .align 2 -Cry_Hitmontop:: @ 8604804 - .incbin "sound/direct_sound_samples/cry_hitmontop.bin" - - .align 2 -Cry_Smoochum:: @ 86055E4 - .incbin "sound/direct_sound_samples/cry_smoochum.bin" - - .align 2 -Cry_Elekid:: @ 8606198 - .incbin "sound/direct_sound_samples/cry_elekid.bin" - - .align 2 -Cry_Magby:: @ 8606C24 - .incbin "sound/direct_sound_samples/cry_magby.bin" - - .align 2 -Cry_Miltank:: @ 8607A94 - .incbin "sound/direct_sound_samples/cry_miltank.bin" - - .align 2 -Cry_Blissey:: @ 8608970 - .incbin "sound/direct_sound_samples/cry_blissey.bin" - - .align 2 -Cry_Raikou:: @ 8609A04 - .incbin "sound/direct_sound_samples/cry_raikou.bin" - - .align 2 -Cry_Entei:: @ 860AB74 - .incbin "sound/direct_sound_samples/cry_entei.bin" - - .align 2 -Cry_Suicune:: @ 860BFE8 - .incbin "sound/direct_sound_samples/cry_suicune.bin" - - .align 2 -Cry_Larvitar:: @ 860D230 - .incbin "sound/direct_sound_samples/cry_larvitar.bin" - - .align 2 -Cry_Pupitar:: @ 860DEE0 - .incbin "sound/direct_sound_samples/cry_pupitar.bin" - - .align 2 -Cry_Tyranitar:: @ 860E750 - .incbin "sound/direct_sound_samples/cry_tyranitar.bin" - - .align 2 -Cry_Lugia:: @ 860FEB0 - .incbin "sound/direct_sound_samples/cry_lugia.bin" - - .align 2 -Cry_HoOh:: @ 86124A8 - .incbin "sound/direct_sound_samples/cry_ho_oh.bin" - - .align 2 -Cry_Celebi:: @ 8613B3C - .incbin "sound/direct_sound_samples/cry_celebi.bin" - - .align 2 -Cry_Kecleon:: @ 86149B4 - .incbin "sound/direct_sound_samples/cry_kecleon.bin" - - .align 2 -Cry_Roselia:: @ 8615214 - .incbin "sound/direct_sound_samples/cry_roselia.bin" - - .align 2 -Cry_Torkoal:: @ 8615CD4 - .incbin "sound/direct_sound_samples/cry_torkoal.bin" - - .align 2 -Cry_Electrike:: @ 8616620 - .incbin "sound/direct_sound_samples/cry_electrike.bin" - - .align 2 -Cry_Manectric:: @ 861727C - .incbin "sound/direct_sound_samples/cry_manectric.bin" - - .align 2 -Cry_Duskull:: @ 8618784 - .incbin "sound/direct_sound_samples/cry_duskull.bin" - - .align 2 -Cry_Latias:: @ 861921C - .incbin "sound/direct_sound_samples/cry_latias.bin" - - .align 2 -Cry_Wynaut:: @ 8619E4C - .incbin "sound/direct_sound_samples/cry_wynaut.bin" - - .align 2 -Cry_Seviper:: @ 861AC2C - .incbin "sound/direct_sound_samples/cry_seviper.bin" - - .align 2 -Cry_Sharpedo:: @ 861B7CC - .incbin "sound/direct_sound_samples/cry_sharpedo.bin" - - .align 2 -Cry_Zangoose:: @ 861CED8 - .incbin "sound/direct_sound_samples/cry_zangoose.bin" - - .align 2 -Cry_Azurill:: @ 861D868 - .incbin "sound/direct_sound_samples/cry_azurill.bin" - - .align 2 -Cry_Swablu:: @ 861E2D0 - .incbin "sound/direct_sound_samples/cry_swablu.bin" - - .align 2 -Cry_Altaria:: @ 861E868 - .incbin "sound/direct_sound_samples/cry_altaria.bin" - - .align 2 -Cry_Unused265:: @ 861F384 - .incbin "sound/direct_sound_samples/cry_unused_265.bin" - - .align 2 -Cry_Taillow:: @ 861FCD8 - .incbin "sound/direct_sound_samples/cry_taillow.bin" - - .align 2 -Cry_Swellow:: @ 86202D8 - .incbin "sound/direct_sound_samples/cry_swellow.bin" - - .align 2 -Cry_Unused268:: @ 8620BDC - .incbin "sound/direct_sound_samples/cry_unused_268.bin" - - .align 2 -Cry_Spinda:: @ 8621D8C - .incbin "sound/direct_sound_samples/cry_spinda.bin" - - .align 2 -Cry_Torchic:: @ 86229F8 - .incbin "sound/direct_sound_samples/cry_torchic.bin" - - .align 2 -Cry_Combusken:: @ 86233A0 - .incbin "sound/direct_sound_samples/cry_combusken.bin" - - .align 2 -Cry_Blaziken:: @ 8625074 - .incbin "sound/direct_sound_samples/cry_blaziken.bin" - - .align 2 -Cry_Treecko:: @ 8626FF4 - .incbin "sound/direct_sound_samples/cry_treecko.bin" - - .align 2 -Cry_Grovyle:: @ 8627B9C - .incbin "sound/direct_sound_samples/cry_grovyle.bin" - - .align 2 -Cry_Sceptile:: @ 8629010 - .incbin "sound/direct_sound_samples/cry_sceptile.bin" - - .align 2 -Cry_Mudkip:: @ 862AA2C - .incbin "sound/direct_sound_samples/cry_mudkip.bin" - - .align 2 -Cry_Marshtomp:: @ 862B1B0 - .incbin "sound/direct_sound_samples/cry_marshtomp.bin" - - .align 2 -Cry_Swampert:: @ 862C2B4 - .incbin "sound/direct_sound_samples/cry_swampert.bin" - - .align 2 -Cry_Pelipper:: @ 862D934 - .incbin "sound/direct_sound_samples/cry_pelipper.bin" - - .align 2 -Cry_Wingull:: @ 862E4FC - .incbin "sound/direct_sound_samples/cry_wingull.bin" - - .align 2 -Cry_Banette:: @ 862F13C - .incbin "sound/direct_sound_samples/cry_banette.bin" - - .align 2 -Cry_Shuppet:: @ 862FDE4 - .incbin "sound/direct_sound_samples/cry_shuppet.bin" - - .align 2 -Cry_Lotad:: @ 8630624 - .incbin "sound/direct_sound_samples/cry_lotad.bin" - - .align 2 -Cry_Lombre:: @ 8630A8C - .incbin "sound/direct_sound_samples/cry_lombre.bin" - - .align 2 -Cry_Ludicolo:: @ 8631920 - .incbin "sound/direct_sound_samples/cry_ludicolo.bin" - - .align 2 -Cry_Seedot:: @ 86329F0 - .incbin "sound/direct_sound_samples/cry_seedot.bin" - - .align 2 -Cry_Nuzleaf:: @ 863321C - .incbin "sound/direct_sound_samples/cry_nuzleaf.bin" - - .align 2 -Cry_Shiftry:: @ 8633D84 - .incbin "sound/direct_sound_samples/cry_shiftry.bin" - - .align 2 -Cry_Carvanha:: @ 8635148 - .incbin "sound/direct_sound_samples/cry_carvanha.bin" - - .align 2 -Cry_Wurmple:: @ 8635B5C - .incbin "sound/direct_sound_samples/cry_wurmple.bin" - - .align 2 -Cry_Silcoon:: @ 8636428 - .incbin "sound/direct_sound_samples/cry_silcoon.bin" - - .align 2 -Cry_Beautifly:: @ 8637454 - .incbin "sound/direct_sound_samples/cry_beautifly.bin" - - .align 2 -Cry_Cascoon:: @ 8637C8C - .incbin "sound/direct_sound_samples/cry_cascoon.bin" - - .align 2 -Cry_Dustox:: @ 8638CD0 - .incbin "sound/direct_sound_samples/cry_dustox.bin" - - .align 2 -Cry_Ralts:: @ 863997C - .incbin "sound/direct_sound_samples/cry_ralts.bin" - - .align 2 -Cry_Kirlia:: @ 863A398 - .incbin "sound/direct_sound_samples/cry_kirlia.bin" - - .align 2 -Cry_Gardevoir:: @ 863AFC8 - .incbin "sound/direct_sound_samples/cry_gardevoir.bin" - - .align 2 -Cry_Slakoth:: @ 863C82C - .incbin "sound/direct_sound_samples/cry_slakoth.bin" - - .align 2 -Cry_Vigoroth:: @ 863D0B0 - .incbin "sound/direct_sound_samples/cry_vigoroth.bin" - - .align 2 -Cry_Slaking:: @ 863DF08 - .incbin "sound/direct_sound_samples/cry_slaking.bin" - - .align 2 -Cry_Nincada:: @ 863E8F4 - .incbin "sound/direct_sound_samples/cry_nincada.bin" - - .align 2 -Cry_Ninjask:: @ 863EF64 - .incbin "sound/direct_sound_samples/cry_ninjask.bin" - - .align 2 -Cry_Shedinja:: @ 863FB8C - .incbin "sound/direct_sound_samples/cry_shedinja.bin" - - .align 2 -Cry_Makuhita:: @ 8640344 - .incbin "sound/direct_sound_samples/cry_makuhita.bin" - - .align 2 -Cry_Hariyama:: @ 8640AA0 - .incbin "sound/direct_sound_samples/cry_hariyama.bin" - - .align 2 -Cry_Nosepass:: @ 8641B58 - .incbin "sound/direct_sound_samples/cry_nosepass.bin" - - .align 2 -Cry_Glalie:: @ 86428BC - .incbin "sound/direct_sound_samples/cry_glalie.bin" - - .align 2 -Cry_Plusle:: @ 8643DA0 - .incbin "sound/direct_sound_samples/cry_plusle.bin" - - .align 2 -Cry_Minun:: @ 864469C - .incbin "sound/direct_sound_samples/cry_minun.bin" - - .align 2 -Cry_Surskit:: @ 86456A4 - .incbin "sound/direct_sound_samples/cry_surskit.bin" - - .align 2 -Cry_Masquerain:: @ 8646124 - .incbin "sound/direct_sound_samples/cry_masquerain.bin" - - .align 2 -Cry_Skitty:: @ 86474D8 - .incbin "sound/direct_sound_samples/cry_skitty.bin" - - .align 2 -Cry_Delcatty:: @ 8647BEC - .incbin "sound/direct_sound_samples/cry_delcatty.bin" - - .align 2 -Cry_Gulpin:: @ 8649104 - .incbin "sound/direct_sound_samples/cry_gulpin.bin" - - .align 2 -Cry_Swalot:: @ 8649908 - .incbin "sound/direct_sound_samples/cry_swalot.bin" - - .align 2 -Cry_Numel:: @ 864AA68 - .incbin "sound/direct_sound_samples/cry_numel.bin" - - .align 2 -Cry_Camerupt:: @ 864B3B4 - .incbin "sound/direct_sound_samples/cry_camerupt.bin" - - .align 2 -Cry_Barboach:: @ 864CAD4 - .incbin "sound/direct_sound_samples/cry_barboach.bin" - - .align 2 -Cry_Whiscash:: @ 864D410 - .incbin "sound/direct_sound_samples/cry_whiscash.bin" - - .align 2 -Cry_Corphish:: @ 864E50C - .incbin "sound/direct_sound_samples/cry_corphish.bin" - - .align 2 -Cry_Crawdaunt:: @ 864F110 - .incbin "sound/direct_sound_samples/cry_crawdaunt.bin" - - .align 2 -Cry_Spoink:: @ 86509C8 - .incbin "sound/direct_sound_samples/cry_spoink.bin" - - .align 2 -Cry_Grumpig:: @ 8651108 - .incbin "sound/direct_sound_samples/cry_grumpig.bin" - - .align 2 -Cry_Trapinch:: @ 8651DA8 - .incbin "sound/direct_sound_samples/cry_trapinch.bin" - - .align 2 -Cry_Vibrava:: @ 86527CC - .incbin "sound/direct_sound_samples/cry_vibrava.bin" - - .align 2 -Cry_Flygon:: @ 86535D0 - .incbin "sound/direct_sound_samples/cry_flygon.bin" - - .align 2 -Cry_Cacnea:: @ 8654FD8 - .incbin "sound/direct_sound_samples/cry_cacnea.bin" - - .align 2 -Cry_Cacturne:: @ 86558C8 - .incbin "sound/direct_sound_samples/cry_cacturne.bin" - - .align 2 -Cry_Baltoy:: @ 8656F78 - .incbin "sound/direct_sound_samples/cry_baltoy.bin" - - .align 2 -Cry_Claydol:: @ 8657BFC - .incbin "sound/direct_sound_samples/cry_claydol.bin" - - .align 2 -Cry_Lunatone:: @ 8658F5C - .incbin "sound/direct_sound_samples/cry_lunatone.bin" - - .align 2 -Cry_Solrock:: @ 865A758 - .incbin "sound/direct_sound_samples/cry_solrock.bin" - - .align 2 -Cry_Feebas:: @ 865B784 - .incbin "sound/direct_sound_samples/cry_feebas.bin" - - .align 2 -Cry_Milotic:: @ 865BF58 - .incbin "sound/direct_sound_samples/cry_milotic.bin" - - .align 2 -Cry_Absol:: @ 865E69C - .incbin "sound/direct_sound_samples/cry_absol.bin" - - .align 2 -Cry_Meditite:: @ 865F118 - .incbin "sound/direct_sound_samples/cry_meditite.bin" - - .align 2 -Cry_Medicham:: @ 865F938 - .incbin "sound/direct_sound_samples/cry_medicham.bin" - - .align 2 -Cry_Spheal:: @ 86609BC - .incbin "sound/direct_sound_samples/cry_spheal.bin" - - .align 2 -Cry_Sealeo:: @ 8660F70 - .incbin "sound/direct_sound_samples/cry_sealeo.bin" - - .align 2 -Cry_Walrein:: @ 8661B48 - .incbin "sound/direct_sound_samples/cry_walrein.bin" - - .align 2 -Cry_Clamperl:: @ 8663F94 - .incbin "sound/direct_sound_samples/cry_clamperl.bin" - - .align 2 -Cry_Huntail:: @ 86651E4 - .incbin "sound/direct_sound_samples/cry_huntail.bin" - - .align 2 -Cry_Gorebyss:: @ 86661CC - .incbin "sound/direct_sound_samples/cry_gorebyss.bin" - - .align 2 -Cry_Lileep:: @ 8667838 - .incbin "sound/direct_sound_samples/cry_lileep.bin" - - .align 2 -Cry_Cradily:: @ 86681E0 - .incbin "sound/direct_sound_samples/cry_cradily.bin" - - .align 2 -Cry_Anorith:: @ 8669F10 - .incbin "sound/direct_sound_samples/cry_anorith.bin" - - .align 2 -Cry_Armaldo:: @ 866AAC8 - .incbin "sound/direct_sound_samples/cry_armaldo.bin" - - .align 2 -Cry_Beldum:: @ 866C19C - .incbin "sound/direct_sound_samples/cry_beldum.bin" - - .align 2 -Cry_Metang:: @ 866CB3C - .incbin "sound/direct_sound_samples/cry_metang.bin" - - .align 2 -Cry_Metagross:: @ 866DE10 - .incbin "sound/direct_sound_samples/cry_metagross.bin" - - .align 2 -Cry_Bagon:: @ 8670588 - .incbin "sound/direct_sound_samples/cry_bagon.bin" - - .align 2 -Cry_Shelgon:: @ 8670D5C - .incbin "sound/direct_sound_samples/cry_shelgon.bin" - - .align 2 -Cry_Regirock:: @ 8672164 - .incbin "sound/direct_sound_samples/cry_regirock.bin" - - .align 2 -Cry_Regice:: @ 8674140 - .incbin "sound/direct_sound_samples/cry_regice.bin" - - .align 2 -Cry_Registeel:: @ 8676140 - .incbin "sound/direct_sound_samples/cry_registeel.bin" - - .align 2 -Cry_Castform:: @ 8677844 - .incbin "sound/direct_sound_samples/cry_castform.bin" - - .align 2 -Cry_Volbeat:: @ 86784DC - .incbin "sound/direct_sound_samples/cry_volbeat.bin" - - .align 2 -Cry_Illumise:: @ 8679064 - .incbin "sound/direct_sound_samples/cry_illumise.bin" - - .align 2 -Cry_Poochyena:: @ 867A17C - .incbin "sound/direct_sound_samples/cry_poochyena.bin" - - .align 2 -Cry_Mightyena:: @ 867AAC4 - .incbin "sound/direct_sound_samples/cry_mightyena.bin" - - .align 2 -Cry_Dusclops:: @ 867BE50 - .incbin "sound/direct_sound_samples/cry_dusclops.bin" - - .align 2 -Cry_Sableye:: @ 867CC08 - .incbin "sound/direct_sound_samples/cry_sableye.bin" - - .align 2 -Cry_Mawile:: @ 867D7AC - .incbin "sound/direct_sound_samples/cry_mawile.bin" - - .align 2 -Cry_Aron:: @ 867E32C - .incbin "sound/direct_sound_samples/cry_aron.bin" - - .align 2 -Cry_Lairon:: @ 867EC58 - .incbin "sound/direct_sound_samples/cry_lairon.bin" - - .align 2 -Cry_Aggron:: @ 8680130 - .incbin "sound/direct_sound_samples/cry_aggron.bin" - - .align 2 -Cry_Relicanth:: @ 8681AD4 - .incbin "sound/direct_sound_samples/cry_relicanth.bin" - - .align 2 -Cry_Luvdisc:: @ 8682F04 - .incbin "sound/direct_sound_samples/cry_luvdisc.bin" - - .align 2 -Cry_Groudon:: @ 86833E0 - .incbin "sound/direct_sound_samples/cry_groudon.bin" - - .align 2 -Cry_Kyogre:: @ 86858EC - .incbin "sound/direct_sound_samples/cry_kyogre.bin" - - .align 2 -Cry_Rayquaza:: @ 8687CA4 - .incbin "sound/direct_sound_samples/cry_rayquaza.bin" - - .align 2 -Cry_Salamence:: @ 86899D0 - .incbin "sound/direct_sound_samples/cry_salamence.bin" - - .align 2 -Cry_Breloom:: @ 868B2EC - .incbin "sound/direct_sound_samples/cry_breloom.bin" - - .align 2 -Cry_Shroomish:: @ 868BFAC - .incbin "sound/direct_sound_samples/cry_shroomish.bin" - - .align 2 -Cry_Linoone:: @ 868C884 - .incbin "sound/direct_sound_samples/cry_linoone.bin" - - .align 2 -Cry_Tropius:: @ 868E720 - .incbin "sound/direct_sound_samples/cry_tropius.bin" - - .align 2 -Cry_Wailmer:: @ 86907E4 - .incbin "sound/direct_sound_samples/cry_wailmer.bin" - - .align 2 -Cry_Zigzagoon:: @ 8692444 - .incbin "sound/direct_sound_samples/cry_zigzagoon.bin" - - .align 2 -Cry_Exploud:: @ 8692FD4 - .incbin "sound/direct_sound_samples/cry_exploud.bin" - - .align 2 -Cry_Loudred:: @ 8694C1C - .incbin "sound/direct_sound_samples/cry_loudred.bin" - - .align 2 -Cry_Wailord:: @ 8695944 - .incbin "sound/direct_sound_samples/cry_wailord.bin" - - .align 2 -Cry_Whismur:: @ 8698354 - .incbin "sound/direct_sound_samples/cry_whismur.bin" - - .align 2 -Cry_Snorunt:: @ 8698B78 - .incbin "sound/direct_sound_samples/cry_snorunt.bin" - - .align 2 -Cry_Latios:: @ 8699C80 - .incbin "sound/direct_sound_samples/cry_latios.bin" - - .align 2 -Cry_Jirachi:: @ 869B278 - .incbin "sound/direct_sound_samples/cry_jirachi.bin" - - .align 2 -Cry_Deoxys:: @ 869BFFC - .incbin "sound/direct_sound_samples/cry_deoxys.bin" - - .align 2 -Cry_Chimecho:: @ 869D4D0 - .incbin "sound/direct_sound_samples/cry_chimecho.bin" - - .align 2 - .incbin "baserom.gba", 0x69DEE0, 0x17760 diff --git a/data/specials.inc b/data/specials.inc index d8d208d43..516b5f768 100644 --- a/data/specials.inc +++ b/data/specials.inc @@ -7,11 +7,10 @@ .set __special__, 0 .align 2 - gSpecials:: @ 815FD60 def_special sp000_heal_pokemon def_special SetCableClubWarp - def_special sub_807E654 + def_special DoCableClubWarp def_special sub_807E704 def_special sub_8081744 def_special sub_8081770 @@ -60,16 +59,16 @@ gSpecials:: @ 815FD60 def_special nullsub_75 def_special nullsub_75 def_special IsEnigmaBerryValid - def_special sub_80803CC - def_special sub_80805D8 - def_special sub_8080618 + def_special ScrSpecial_GetTrainerBattleMode + def_special ScrSpecial_ShowTrainerIntroSpeech + def_special ScrSpecial_ShowTrainerNonBattlingSpeech def_special ScrSpecial_HasTrainerBeenFought def_special ScrSpecial_EndTrainerApproach - def_special sub_8080628 - def_special sub_810CD4C - def_special sub_810CEB4 - def_special sub_80805B0 - def_special sub_808C6A8 + def_special PlayTrainerEncounterMusic + def_special ShouldTryRematchBattle + def_special ScrSpecial_GetTrainerEyeRematchFlag + def_special ScrSpecial_StartTrainerEyeRematch + def_special ShowPokemonStorageSystem def_special CheckForAlivePartyMons def_special nullsub_75 def_special nullsub_75 @@ -78,7 +77,7 @@ gSpecials:: @ 815FD60 def_special nullsub_75 def_special nullsub_75 def_special nullsub_75 - def_special sub_80CBEBC + def_special Special_HasLeadMonBeenRenamed def_special nullsub_75 def_special nullsub_75 def_special nullsub_75 @@ -128,16 +127,16 @@ gSpecials:: @ 815FD60 def_special nullsub_75 def_special nullsub_75 def_special nullsub_75 - def_special sub_80A0918 - def_special sub_80A0930 - def_special sub_80A096C - def_special sub_80A0984 - def_special sub_80CBFA0 + def_special GetHeracrossSizeRecordInfo + def_special CompareHeracrossSize + def_special GetMagikarpSizeRecordInfo + def_special CompareMagikarpSize + def_special NameRaterWasNicknameChanged def_special TV_CopyNicknameToStringVar1AndEnsureTerminated def_special TV_CheckMonOTIDEqualsPlayerID def_special nullsub_75 def_special nullsub_75 - def_special sub_80BDB1C + def_special BufferRandomHobbyOrLifestyleString def_special nullsub_75 def_special RegisteredItemHandleBikeSwap def_special CalculatePlayerPartyCount @@ -150,15 +149,15 @@ gSpecials:: @ 815FD60 def_special nullsub_75 def_special nullsub_75 def_special nullsub_75 - def_special sub_80CA68C + def_special Special_ShowStringVar4AsFieldMessage def_special DrawWholeMapView - def_special sub_80CA69C + def_special Special_GetPlayerXY def_special nullsub_75 def_special nullsub_75 def_special nullsub_75 - def_special sub_80CA6BC - def_special sub_80CA6DC - def_special sub_80CA714 + def_special Special_GetPlayerTrainerIdOnesDigit + def_special Special_BufferBigGuyOrBigGirlString + def_special Special_BufferSonOrDaughterString def_special Special_SetHiddenItemFlag def_special nullsub_75 def_special nullsub_75 @@ -166,21 +165,21 @@ gSpecials:: @ 815FD60 def_special nullsub_75 def_special nullsub_75 def_special nullsub_75 - def_special sub_807F888 + def_special ScrSpecial_StartOldManTutorialBattle def_special ChangePokemonNickname - def_special sub_80BF8FC + def_special Special_ChooseMonFromParty def_special nullsub_75 def_special nullsub_75 def_special nullsub_75 - def_special sub_8113364 - def_special sub_8113288 - def_special sub_81133A4 + def_special ShouldMoveSaffronFanClubMember + def_special GetNumMovedSaffronFanClubMembers + def_special BufferStreakTrainerText def_special sub_8113064 - def_special sub_81132CC + def_special UpdateMovedSaffronFanClubMembers def_special sub_8113510 def_special sub_81130A8 def_special sub_8113530 - def_special sub_8082E54 + def_special Special_RockSmashEncounter def_special nullsub_75 def_special nullsub_75 def_special nullsub_75 @@ -189,7 +188,7 @@ gSpecials:: @ 815FD60 def_special nullsub_75 def_special nullsub_75 def_special nullsub_75 - def_special sub_80CA74C + def_special Special_GetBattleOutcome def_special GetDaycareMonNicknames def_special GetDaycareState def_special RejectEggFromDayCare @@ -204,12 +203,12 @@ gSpecials:: @ 815FD60 def_special TakePokemonFromDaycare def_special ScriptHatchMon def_special EggHatch - def_special sub_8046EAC + def_special DaycareMonReceivedMail def_special Special_BattleRecords def_special IsEnoughForCostInVar0x8005 def_special SubtractMoneyFromVar0x8005 def_special ExecuteWhiteOut - def_special sub_80CA3C4 + def_special sp0C8_whiteout_maybe def_special nullsub_75 def_special nullsub_75 def_special nullsub_75 @@ -222,49 +221,49 @@ gSpecials:: @ 815FD60 def_special nullsub_75 def_special nullsub_75 def_special Special_GetPokedexCount - def_special sub_80CA524 - def_special sub_80CA86C - def_special sub_80CA9A8 - def_special sub_80CB204 + def_special Special_GetProfOaksRatingMessage + def_special Special_AnimatePcTurnOn + def_special Special_AnimatePcTurnOff + def_special Special_GetElevatorFloor def_special nullsub_75 def_special nullsub_75 - def_special sub_80BF93C - def_special sub_80BF9BC - def_special sub_80BFBA8 + def_special SelectMoveTutorMon + def_special SelectMove + def_special DeleteMonMove def_special ScrSpecial_GetPokemonNicknameAndMoveName def_special ScrSpecial_CountPokemonMoves - def_special sub_80E4634 + def_special DisplayMoveTutorMenu def_special nullsub_75 def_special nullsub_75 - def_special sub_80CA664 + def_special Special_GetPlayerAvatarBike def_special nullsub_75 def_special nullsub_75 - def_special sub_80CA76C + def_special Special_GetLeadMonFriendship def_special sub_80E5970 - def_special sub_80E5C28 - def_special sub_80E6648 - def_special sub_80E67FC - def_special sub_80E7538 - def_special sub_80E6900 - def_special sub_80E6A0C - def_special sub_80E6C8C - def_special sub_80E6E14 - def_special sub_80E6FB8 - def_special sub_80E7058 - def_special sub_80E71D0 - def_special sub_80E724C - def_special sub_80E72B8 - def_special sub_80A0380 + def_special ChooseNextBattleTowerTrainer + def_special CheckPartyBattleTowerBanlist + def_special PrintBattleTowerTrainerGreeting + def_special PrintEReaderTrainerGreeting + def_special StartSpecialBattle + def_special SetBattleTowerProperty + def_special BattleTowerUtil + def_special SetBattleTowerParty + def_special SaveBattleTowerProgress + def_special BattleTower_SoftReset + def_special DetermineBattleTowerPrize + def_special GiveBattleTowerPrize + def_special AwardBattleTowerRibbons + def_special ChooseBattleTowerPlayerParty def_special ValidateEReaderTrainer def_special nullsub_75 - def_special sub_80A03D8 - def_special sub_80EB6AC - def_special sub_80EB6FC - def_special sub_80CA7EC - def_special sub_8053A9C - def_special sub_8053D68 - def_special sub_8054440 - def_special sub_8053D2C + def_special ReducePlayerPartyToThree + def_special BedroomPC + def_special PlayerPC + def_special Special_TownMap + def_special GetInGameTradeSpeciesInfo + def_special CreateInGameTradePokemon + def_special DoInGameTradeScene + def_special GetTradeSpecies def_special nullsub_75 def_special nullsub_75 def_special nullsub_75 @@ -273,7 +272,7 @@ gSpecials:: @ 815FD60 def_special nullsub_75 def_special ScrSpecial_CreatePCMenu def_special HallOfFamePCBeginFade - def_special sub_80CA618 + def_special Special_ShowDiploma def_special nullsub_75 def_special nullsub_75 def_special nullsub_75 @@ -282,10 +281,10 @@ gSpecials:: @ 815FD60 def_special nullsub_61 def_special DoSoftReset def_special Special_HallOfFame - def_special sub_80CB498 + def_special Special_AnimateElevator def_special nullsub_75 - def_special SpawnScriptFieldObject - def_special RemoveScriptFieldObject + def_special SpawnCameraObject + def_special RemoveCameraObject def_special nullsub_75 def_special nullsub_75 def_special nullsub_75 @@ -294,36 +293,36 @@ gSpecials:: @ 815FD60 def_special nullsub_75 def_special nullsub_75 def_special nullsub_75 - def_special sub_80CAAAC - def_special sub_80CAABC + def_special Special_BufferEReaderTrainerName5 + def_special Special_GetRandomSlotMachine def_special GetPlayerFacingDirection def_special nullsub_75 def_special nullsub_75 def_special nullsub_75 def_special nullsub_75 def_special LeadMonHasEffortRibbon - def_special GivLeadMonEffortRibbon + def_special GiveLeadMonEffortRibbon def_special ScrSpecial_AreLeadMonEVsMaxedOut def_special sub_8069740 def_special sub_8069768 def_special InitRoamer def_special nullsub_75 - def_special sub_80CA804 + def_special Special_PlayerHasGrassPokemonInParty def_special nullsub_75 def_special nullsub_75 - def_special sub_80CAB78 + def_special Special_IsStarterFirstStageInParty def_special nullsub_75 - def_special sub_80CABD0 + def_special Special_IsThereRoomInAnyBoxForMorePokemon def_special nullsub_75 - def_special sub_80CB580 + def_special Special_DrawElevatorCurrentFloorWindow def_special nullsub_75 - def_special sub_80CAC08 + def_special Special_CheckPartyPokerus def_special sub_806E99C - def_special sub_80CAC28 - def_special sub_807FA68 - def_special sub_807F9D8 - def_special sub_807FABC - def_special sub_8080398 + def_special Special_ShakeScreen + def_special Special_StartGroudonKyogreBattle + def_special Special_StartLegendaryBattle + def_special Special_StartRegiBattle + def_special SetUpTrainerMovement def_special nullsub_75 def_special nullsub_75 def_special sub_807B6C0 @@ -331,13 +330,13 @@ gSpecials:: @ 815FD60 def_special DoFallWarp def_special nullsub_75 def_special nullsub_75 - def_special sub_80E5E70 - def_special sub_807F998 + def_special SetEReaderTrainerGfxId + def_special ScrSpecial_StartSouthernIslandBattle def_special nullsub_75 def_special nullsub_75 def_special nullsub_75 - def_special sub_80CAD54 - def_special sub_80BFC14 + def_special Special_GetSpeciesOfPartySlot_x8004 + def_special IsSelectedMonEgg def_special nullsub_75 def_special nullsub_75 def_special LoadPlayerBag @@ -345,31 +344,31 @@ gSpecials:: @ 815FD60 def_special nullsub_75 def_special nullsub_75 def_special HasAllKantoMons - def_special sub_80CAD7C + def_special Special_BufferMonOTNameAndCompareToPlayerName def_special nullsub_75 - def_special sub_80E759C + def_special Dummy_TryEnableBravoTrainerBattleTower def_special GetNameOfEnigmaBerryInPlayerParty def_special nullsub_75 def_special sub_810B82C - def_special sub_807F904 - def_special sub_80CA630 - def_special sub_80CB7C4 - def_special sub_80CBC5C + def_special ScrSpecial_StartMarowakBattle + def_special Special_ForcePlayerOntoBike + def_special Special_ListMenu + def_special Special_ReturnToListMenu def_special sub_80CADC4 - def_special sub_80CADEC + def_special Special_SetVermilionTrashCans def_special sub_805D1A8 - def_special sub_80CB0A8 + def_special Special_SampleResortGorgeousMonAndReward def_special Special_CheckAddCoins def_special GetDaycarePokemonCount - def_special sub_80CB63C - def_special sub_80CBD80 + def_special Special_CloseElevatorCurrentFloorWindow + def_special Special_ForcePlayerToStartSurfing def_special ScrSpecial_GetStarter - def_special sub_80CBDCC + def_special Special_SetSeenMon def_special sub_810C444 def_special sub_80CC7B4 def_special ChangeBoxPokemonNickname - def_special sub_80CC2BC - def_special sub_80CC3CC + def_special Special_UpdateTrainerCardPhotoIcons + def_special Special_StickerLadyGetBragFlags def_special sub_80CC524 def_special IsWirelessAdapterConnected def_special sub_8115A24 @@ -382,14 +381,14 @@ gSpecials:: @ 815FD60 def_special sub_810C3A4 def_special SetFlavorTextFlagFromSpecialVars def_special UpdatePickStateFromSpecialVar8005 - def_special sub_8054C48 + def_special Special_OverworldWhiteOutGetMoneyLoss def_special PutMonInRoute5Daycare def_special GetCostToWithdrawRoute5DaycareMon def_special IsThereMonInRoute5Daycare def_special GetNumLevelsGainedForRoute5DaycareMon def_special TakePokemonFromRoute5Daycare - def_special ScrSpecial_SeaGallopFerry - def_special sub_80CC48C + def_special ScrSpecial_SeagallopFerry + def_special Special_PlayerPartyContainsSpecies def_special Special_SetSomeVariable def_special HelpSystem_BackupSomeVariable def_special HelpSystem_RestoreSomeVariable @@ -398,25 +397,25 @@ gSpecials:: @ 815FD60 def_special sub_811999C def_special sp182_move_string def_special sub_811390C - def_special sub_80CC4D4 - def_special sub_80CC730 + def_special Special_GetMartClerkObjectId + def_special Special_BattleCardAction def_special sub_8110AB4 def_special sub_8112364 - def_special sub_8146CE8 + def_special Special_GetMENewsJisanItemAndState def_special get_unknown_box_id - def_special sub_809D504 - def_special sub_809D620 + def_special Special_OpenMuseumFossilPic + def_special Special_CloseMuseumFossilPic def_special sub_812781C def_special sub_8127888 - def_special sub_80803FC + def_special SetBattledTrainerFlag def_special sub_812B35C def_special Special_SSAnneDepartureCutscene def_special sub_8149A18 def_special IsNationalPokedexEnabled def_special sub_815D9E8 def_special sub_814B504 - def_special sub_80CC8CC - def_special sub_80CC948 + def_special Special_ItemIsTM_GetMoveName + def_special Special_DaisyMassageServices def_special HelpSystem_Disable def_special HelpSystem_Enable def_special sub_810B82C @@ -426,31 +425,31 @@ gSpecials:: @ 815FD60 def_special sub_815EEB0 def_special sub_815EF5C def_special sub_815F070 - def_special sub_80CC974 + def_special Special_PokemonLeagueLightingEffect def_special sub_814EA7C - def_special sub_80CCB94 - def_special sub_80CCCF8 + def_special Special_CapeBrinkGetMoveToTeachLeadPokemon + def_special Special_HasLearnedAllMovesFromCapeBrinkTutor def_special Special_Credits def_special sub_8153810 - def_special sub_809D764 - def_special sub_809D8C0 + def_special Special_DrawSeagallopDestinationMenu + def_special Special_GetSelectedSeagallopDestination def_special sub_8147500 def_special GetPlayerFacingDirection - def_special sub_80CCDFC - def_special sub_80CD008 + def_special Special_DeoxysSound + def_special Special_SetDeoxysTriangleObjectPal def_special sub_8147594 - def_special sub_80CD034 + def_special Special_BadEggInParty def_special sub_815D834 def_special HasAllMons - def_special sub_80CD074 - def_special sub_80CD098 + def_special Special_PlayerIsNotInTrainerTowerLobby + def_special Special_BrailleCursorToggle def_special sub_811B15C - def_special sub_80CD0F4 + def_special Special_PlayerPartyContainsSpeciesWithPlayerID def_special sub_809C4A8 def_special sub_81537C0 def_special sub_809C5FC - def_special sub_80CB328 - def_special sub_80CD154 - def_special sub_80CD1B4 + def_special Special_InitElevatorFloorSelectMenuPos + def_special Special_ComputeLoreleiDollCollection + def_special Special_LoopWingFlapSound def_special CreateObedientEnemyMon gSpecialsEnd:: diff --git a/data/strings.s b/data/strings.s index 52abc36de..5305352b7 100644 --- a/data/strings.s +++ b/data/strings.s @@ -1358,34 +1358,34 @@ gUnknown_84178DA:: @ 84178DA gUnknown_84178DF:: @ 0x84178DF .string "ã•ã‚“ã‹ ã™ã‚‹$" -gUnknown_84178E6:: @ 0x84178E6 +gText_Info:: @ 0x84178E6 .string "INFO$" -gUnknown_84178EB:: @ 0x84178EB +gText_Eggs:: @ 0x84178EB .string "EGGS$" -gUnknown_84178F0:: @ 0x84178F0 +gText_HallOfFame:: @ 0x84178F0 .string "HALL OF FAME$" -gUnknown_84178FD:: @ 0x84178FD +gText_Victories:: @ 0x84178FD .string "VICTORIES$" -gUnknown_8417907:: @ 0x8417907 +gText_Quit:: @ 0x8417907 .string "QUIT$" -gUnknown_841790C:: @ 0x841790C +gText_Psn:: @ 0x841790C .string "PSN$" -gUnknown_8417910:: @ 0x8417910 +gText_Par:: @ 0x8417910 .string "PAR$" -gUnknown_8417914:: @ 0x8417914 +gText_Slp:: @ 0x8417914 .string "SLP$" -gUnknown_8417918:: @ 0x8417918 +gText_Brn:: @ 0x8417918 .string "BRN$" -gUnknown_841791C:: @ 0x841791C +gText_Frz:: @ 0x841791C .string "FRZ$" gUnknown_8417920:: @ 0x8417920 @@ -1394,7 +1394,7 @@ gUnknown_8417920:: @ 0x8417920 gUnknown_8417926:: @ 0x8417926 .string "OK$" -gUnknown_8417929:: @ 0x8417929 +gOtherText_Quit:: @ 0x8417929 .string "QUIT$" gUnknown_841792E:: @ 0x841792E @@ -1403,406 +1403,406 @@ gUnknown_841792E:: @ 0x841792E gUnknown_8417933:: @ 0x8417933 .string "ã“れã‹ã‚‰$" -gUnknown_8417938:: @ 8417938 +gText_Yes:: @ 8417938 .string "YES$" -gUnknown_841793C:: @ 841793C +gText_No:: @ 841793C .string "NO$" gUnknown_841793F:: @ 0x841793F .string "ã›ã¤ã‚ã„$" -gUnknown_8417944:: @ 0x8417944 +gText_SingleBattle:: @ 0x8417944 .string "SINGLE BATTLE$" -gUnknown_8417952:: @ 0x8417952 +gText_DoubleBattle:: @ 0x8417952 .string "DOUBLE BATTLE$" -gUnknown_8417960:: @ 0x8417960 +gText_MultiBattle:: @ 0x8417960 .string "MULTI BATTLE$" -gUnknown_841796D:: @ 0x841796D +gText_MakeAChallenge:: @ 0x841796D .string "Make a challenge.$" -gUnknown_841797F:: @ 0x841797F +gText_Info_2:: @ 0x841797F .string "INFO$" -gUnknown_8417984:: @ 0x8417984 +gText_FreshWater_200:: @ 0x8417984 .string "FRESH WATER{CLEAR_TO 0x57}{SMALL}Â¥200$" -gUnknown_841799A:: @ 0x841799A +gText_SodaPop_300:: @ 0x841799A .string "SODA POP{CLEAR_TO 0x57}{SMALL}Â¥300$" -gUnknown_84179AD:: @ 0x84179AD +gText_Lemonade_350:: @ 0x84179AD .string "LEMONADE{CLEAR_TO 0x57}{SMALL}Â¥350$" -gUnknown_84179C0:: @ 0x84179C0 +gText_50Coins_1000:: @ 0x84179C0 .string "{SMALL} 50 COINS{CLEAR_TO 0x45}Â¥1,000$" -gUnknown_84179D6:: @ 0x84179D6 +gText_500Coins_10000:: @ 0x84179D6 .string "{SMALL}500 COINS{CLEAR_TO 0x40}Â¥10,000$" -gUnknown_84179ED:: @ 0x84179ED +gText_Excellent:: @ 0x84179ED .string "Excellent$" -gUnknown_84179F7:: @ 0x84179F7 +gText_NotSoBad:: @ 0x84179F7 .string "Not so bad$" -gUnknown_8417A02:: @ 0x8417A02 +gText_RedShard:: @ 0x8417A02 .string "RED SHARD$" -gUnknown_8417A0C:: @ 0x8417A0C +gText_YellowShard:: @ 0x8417A0C .string "YELLOW SHARD$" -gUnknown_8417A19:: @ 0x8417A19 +gText_BlueShard:: @ 0x8417A19 .string "BLUE SHARD$" -gUnknown_8417A24:: @ 0x8417A24 +gText_GreenShard:: @ 0x8417A24 .string "GREEN SHARD$" gUnknown_8417A30:: @ 0x8417A30 .string "ãƒãƒˆãƒ«ã‚¿ãƒ¯-$" -gUnknown_8417A37:: @ 0x8417A37 +gText_Right:: @ 0x8417A37 .string "Right$" -gUnknown_8417A3D:: @ 0x8417A3D +gText_Left:: @ 0x8417A3D .string "Left$" -gUnknown_8417A42:: @ 0x8417A42 +gText_Tm13_4000Coins:: @ 0x8417A42 .string "TM13{CLEAR_TO 0x48}{SMALL}4,000 COINS$" -gUnknown_8417A58:: @ 0x8417A58 +gText_Tm23_3500Coins:: @ 0x8417A58 .string "TM23{CLEAR_TO 0x48}{SMALL}3,500 COINS$" -gUnknown_8417A6E:: @ 0x8417A6E +gText_Tm24_4000Coins:: @ 0x8417A6E .string "TM24{CLEAR_TO 0x48}{SMALL}4,000 COINS$" -gUnknown_8417A84:: @ 0x8417A84 +gText_Tm30_4500Coins:: @ 0x8417A84 .string "TM30{CLEAR_TO 0x48}{SMALL}4,500 COINS$" -gUnknown_8417A9A:: @ 0x8417A9A +gText_Tm35_4000Coins:: @ 0x8417A9A .string "TM35{CLEAR_TO 0x48}{SMALL}4,000 COINS$" -gUnknown_8417AB0:: @ 0x8417AB0 +gText_1F_2:: @ 0x8417AB0 .string "1F$" -gUnknown_8417AB3:: @ 0x8417AB3 +gText_2F_2:: @ 0x8417AB3 .string "2F$" -gUnknown_8417AB6:: @ 0x8417AB6 +gText_3F_2:: @ 0x8417AB6 .string "3F$" -gUnknown_8417AB9:: @ 0x8417AB9 +gText_4F_2:: @ 0x8417AB9 .string "4F$" -gUnknown_8417ABC:: @ 0x8417ABC +gText_5F_2:: @ 0x8417ABC .string "5F$" -gUnknown_8417ABF:: @ 0x8417ABF +gText_Cool:: @ 0x8417ABF .string "COOL$" -gUnknown_8417AC4:: @ 0x8417AC4 +gText_Beauty:: @ 0x8417AC4 .string "BEAUTY$" -gUnknown_8417ACB:: @ 0x8417ACB +gText_Cute:: @ 0x8417ACB .string "CUTE$" -gUnknown_8417AD0:: @ 0x8417AD0 +gText_Smart:: @ 0x8417AD0 .string "SMART$" -gUnknown_8417AD6:: @ 0x8417AD6 +gText_Tough:: @ 0x8417AD6 .string "TOUGH$" -gUnknown_8417ADC:: @ 0x8417ADC +gText_Normal:: @ 0x8417ADC .string "NORMAL$" -gUnknown_8417AE3:: @ 0x8417AE3 +gText_Black:: @ 0x8417AE3 .string "BLACK$" -gUnknown_8417AE9:: @ 0x8417AE9 +gText_Pink:: @ 0x8417AE9 .string "PINK$" -gUnknown_8417AEE:: @ 0x8417AEE +gText_Sepia:: @ 0x8417AEE .string "SEPIA$" -gUnknown_8417AF4:: @ 0x8417AF4 +gText_Cool_2:: @ 0x8417AF4 .string "COOL$" -gUnknown_8417AF9:: @ 0x8417AF9 +gText_Beauty_2:: @ 0x8417AF9 .string "BEAUTY$" -gUnknown_8417B00:: @ 0x8417B00 +gText_Cute_2:: @ 0x8417B00 .string "CUTE$" -gUnknown_8417B05:: @ 0x8417B05 +gText_Smart_2:: @ 0x8417B05 .string "SMART$" -gUnknown_8417B0B:: @ 0x8417B0B +gText_Tough_2:: @ 0x8417B0B .string "TOUGH$" -gUnknown_8417B11:: @ 0x8417B11 +gText_Items:: @ 0x8417B11 .string "ITEMS$" -gUnknown_8417B17:: @ 0x8417B17 +gText_KeyItems:: @ 0x8417B17 .string "KEY ITEMS$" -gUnknown_8417B21:: @ 0x8417B21 +gText_PokeBalls:: @ 0x8417B21 .string "POKé BALLS$" -gUnknown_8417B2C:: @ 0x8417B2C - .string "TMs ã‚’ HMs$" +gText_TmsgUnknown_8417B2CHms:: @ 0x8417B2C + .string "TMs & HMs$" -gUnknown_8417B36:: @ 0x8417B36 +gText_Berries:: @ 0x8417B36 .string "BERRIES$" -gUnknown_8417B3E:: @ 0x8417B3E +gText_Boulderbadge:: @ 0x8417B3E .string "BOULDERBADGE$" -gUnknown_8417B4B:: @ 0x8417B4B +gText_Cascadebadge:: @ 0x8417B4B .string "CASCADEBADGE$" -gUnknown_8417B58:: @ 0x8417B58 +gText_Thunderbadge:: @ 0x8417B58 .string "THUNDERBADGE$" -gUnknown_8417B65:: @ 0x8417B65 +gText_Rainbowbadge:: @ 0x8417B65 .string "RAINBOWBADGE$" -gUnknown_8417B72:: @ 0x8417B72 +gText_Soulbadge:: @ 0x8417B72 .string "SOULBADGE$" -gUnknown_8417B7C:: @ 0x8417B7C +gText_Marshbadge:: @ 0x8417B7C .string "MARSHBADGE$" -gUnknown_8417B87:: @ 0x8417B87 +gText_Volcanobadge:: @ 0x8417B87 .string "VOLCANOBADGE$" -gUnknown_8417B94:: @ 0x8417B94 +gText_Earthbadge:: @ 0x8417B94 .string "EARTHBADGE$" -gUnknown_8417B9F:: @ 8417B9F +gText_SomeoneSPc:: @ 8417B9F .string "SOMEONE'S PC$" -gUnknown_8417BAC:: @ 8417BAC +gText_BillSPc:: @ 8417BAC .string "BILL'S PC$" -gUnknown_8417BB6:: @ 8417BB6 +gText_SPc:: @ 8417BB6 .string "{PLAYER}'s PC$" -gUnknown_8417BBE:: @ 8417BBE +gText_HallOfFame_2:: @ 8417BBE .string "HALL OF FAME$" -gUnknown_8417BCB:: @ 8417BCB +gText_LogOff:: @ 8417BCB .string "LOG OFF$" -gUnknown_8417BD3:: @ 8417BD3 +gText_ProfOakSPc:: @ 8417BD3 .string "PROF. OAK's PC$" -gUnknown_8417BE2:: @ 0x8417BE2 +gText_Eevee:: @ 0x8417BE2 .string "EEVEE$" -gUnknown_8417BE8:: @ 0x8417BE8 +gText_Flareon:: @ 0x8417BE8 .string "FLAREON$" -gUnknown_8417BF0:: @ 0x8417BF0 +gText_Jolteon:: @ 0x8417BF0 .string "JOLTEON$" -gUnknown_8417BF8:: @ 0x8417BF8 +gText_Vaporeon:: @ 0x8417BF8 .string "VAPOREON$" -gUnknown_8417C01:: @ 0x8417C01 +gText_QuitLooking:: @ 0x8417C01 .string "Quit looking.$" -gUnknown_8417C0F:: @ 0x8417C0F +gText_FreshWater:: @ 0x8417C0F .string "FRESH WATER$" -gUnknown_8417C1B:: @ 0x8417C1B +gText_SodaPop:: @ 0x8417C1B .string "SODA POP$" -gUnknown_8417C24:: @ 0x8417C24 +gText_Lemonade:: @ 0x8417C24 .string "LEMONADE$" -gUnknown_8417C2D:: @ 8417C2D +gText_Coins_2:: @ 8417C2D .string "COINS$" -gUnknown_8417C33:: @ 0x8417C33 +gText_Bicycle_1000000:: @ 0x8417C33 .string "BICYCLE{CLEAR_TO 0x49}{SMALL}Â¥1,000,000$" -gUnknown_8417C4B:: @ 0x8417C4B +gText_NoThanks:: @ 0x8417C4B .string "NO THANKS$" -gUnknown_8417C55:: @ 0x8417C55 +gText_Abra_180Coins:: @ 0x8417C55 .string "ABRA{CLEAR_TO 0x55}{SMALL} 180 COINS$" -gUnknown_8417C6A:: @ 0x8417C6A +gText_Clefairy_500Coins:: @ 0x8417C6A .string "CLEFAIRY{CLEAR_TO 0x55}{SMALL} 500 COINS$" -gUnknown_8417C83:: @ 0x8417C83 +gText_Dratini_2800Coins:: @ 0x8417C83 .string "DRATINI{CLEAR_TO 0x4B}{SMALL} 2,800 COINS$" -gUnknown_8417C9D:: @ 0x8417C9D +gText_Scyther_5500Coins:: @ 0x8417C9D .string "SCYTHER{CLEAR_TO 0x4B}{SMALL} 5,500 COINS$" -gUnknown_8417CB7:: @ 0x8417CB7 +gText_Porygon_9999Coins:: @ 0x8417CB7 .string "PORYGON{CLEAR_TO 0x4B}{SMALL} 9,999 COINS$" -gUnknown_8417CD1:: @ 0x8417CD1 +gText_Abra_120Coins:: @ 0x8417CD1 .string "ABRA{CLEAR_TO 0x55}{SMALL} 120 COINS$" -gUnknown_8417CE6:: @ 0x8417CE6 +gText_Clefairy_750Coins:: @ 0x8417CE6 .string "CLEFAIRY{CLEAR_TO 0x55}{SMALL} 750 COINS$" -gUnknown_8417CFF:: @ 0x8417CFF +gText_Pinsir_2500Coins:: @ 0x8417CFF .string "PINSIR{CLEAR_TO 0x4B}{SMALL} 2,500 COINS$" -gUnknown_8417D18:: @ 0x8417D18 +gText_Dratini_4600Coins:: @ 0x8417D18 .string "DRATINI{CLEAR_TO 0x4B}{SMALL} 4,600 COINS$" -gUnknown_8417D32:: @ 0x8417D32 +gText_Porygon_6500Coins:: @ 0x8417D32 .string "PORYGON{CLEAR_TO 0x4B}{SMALL} 6,500 COINS$" -gUnknown_8417D4C:: @ 0x8417D4C +gText_NoThanks_2:: @ 0x8417D4C .string "NO THANKS$" -gUnknown_8417D56:: @ 0x8417D56 +gText_HelixFossil:: @ 0x8417D56 .string "HELIX FOSSIL$" -gUnknown_8417D63:: @ 0x8417D63 +gText_DomeFossil:: @ 0x8417D63 .string "DOME FOSSIL$" -gUnknown_8417D6F:: @ 0x8417D6F +gText_OldAmber:: @ 0x8417D6F .string "OLD AMBER$" -gUnknown_8417D79:: @ 0x8417D79 +gText_TradeCenter:: @ 0x8417D79 .string "TRADE CENTER$" -gUnknown_8417D86:: @ 0x8417D86 +gText_Colosseum:: @ 0x8417D86 .string "COLOSSEUM$" -gUnknown_8417D90:: @ 0x8417D90 +gText_GameLinkCable:: @ 0x8417D90 .string "Game Link cable$" -gUnknown_8417DA0:: @ 0x8417DA0 +gText_Wireless:: @ 0x8417DA0 .string "Wireless$" -gUnknown_8417DA9:: @ 0x8417DA9 +gText_ItemsPocket:: @ 0x8417DA9 .string "ITEMS POCKET$" -gUnknown_8417DB6:: @ 0x8417DB6 +gText_KeyItemsPocket:: @ 0x8417DB6 .string "KEY ITEMS POCKET$" -gUnknown_8417DC7:: @ 0x8417DC7 +gText_PokeBallsPocket:: @ 0x8417DC7 .string "POKé BALLS POCKET$" -gUnknown_8417DD9:: @ 0x8417DD9 +gText_TmCase:: @ 0x8417DD9 .string "TM CASE$" -gUnknown_8417DE1:: @ 0x8417DE1 +gText_BerryPouch_2:: @ 0x8417DE1 .string "BERRY POUCH$" -gUnknown_8417DED:: @ 8417DED +gText_Other:: @ 8417DED .string "OTHER$" -gUnknown_8417DF3:: @ 0x8417DF3 +gText_OneIsland:: @ 0x8417DF3 .string "ONE ISLAND$" -gUnknown_8417DFE:: @ 0x8417DFE +gText_TwoIsland:: @ 0x8417DFE .string "TWO ISLAND$" -gUnknown_8417E09:: @ 0x8417E09 +gText_ThreeIsland:: @ 0x8417E09 .string "THREE ISLAND$" -gUnknown_8417E16:: @ 0x8417E16 +gText_FourIsland:: @ 0x8417E16 .string "FOUR ISLAND$" -gUnknown_8417E22:: @ 0x8417E22 +gText_FiveIsland:: @ 0x8417E22 .string "FIVE ISLAND$" -gUnknown_8417E2E:: @ 0x8417E2E +gText_SixIsland:: @ 0x8417E2E .string "SIX ISLAND$" -gUnknown_8417E39:: @ 0x8417E39 +gText_SevenIsland:: @ 0x8417E39 .string "SEVEN ISLAND$" -gUnknown_8417E46:: @ 0x8417E46 +gText_Vermilion:: @ 0x8417E46 .string "VERMILION$" -gUnknown_8417E50:: @ 0x8417E50 +gText_Colosseum_2:: @ 0x8417E50 .string "COLOSSEUM$" -gUnknown_8417E5A:: @ 0x8417E5A +gText_BerryCrush:: @ 0x8417E5A .string "BERRY CRUSH$" -gUnknown_8417E66:: @ 0x8417E66 +gText_Dummy_8417E66:: @ 0x8417E66 .string "$" -gUnknown_8417E67:: @ 0x8417E67 +gText_Dummy_8417E67:: @ 0x8417E67 .string "$" gUnknown_8417E68:: @ 0x8417E68 .string "ã›ã¤ã‚ã„ã‚’ ãã$" -gUnknown_8417E71:: @ 0x8417E71 +gText_Dummy_8417E71:: @ 0x8417E71 .string "$" -gUnknown_8417E72:: @ 0x8417E72 +gText_PokemonJump:: @ 0x8417E72 .string "POKéMON JUMP$" -gUnknown_8417E7F:: @ 0x8417E7F +gText_DodrioBerryPicking:: @ 0x8417E7F .string "DODRIO BERRY-PICKING$" -gUnknown_8417E94:: @ 0x8417E94 +gText_2Tinymushrooms:: @ 0x8417E94 .string "2 TINYMUSHROOMS$" -gUnknown_8417EA4:: @ 0x8417EA4 +gText_1BigMushroom:: @ 0x8417EA4 .string "1 BIG MUSHROOM$" -gUnknown_8417EB3:: @ 0x8417EB3 +gText_SeviiIslands:: @ 0x8417EB3 .string "SEVII ISLANDS$" -gUnknown_8417EC1:: @ 0x8417EC1 +gText_NavelRock:: @ 0x8417EC1 .string "NAVEL ROCK$" -gUnknown_8417ECC:: @ 0x8417ECC +gText_BirthIsland:: @ 0x8417ECC .string "BIRTH ISLAND$" -gUnknown_8417ED9:: @ 0x8417ED9 +gText_MiracleSeed_1000Coins:: @ 0x8417ED9 .string "MIRACLE SEED{CLEAR_TO 0x50}{SMALL}1,000 COINS$" -gUnknown_8417EF7:: @ 0x8417EF7 +gText_Charcoal_1000Coins:: @ 0x8417EF7 .string "CHARCOAL{CLEAR_TO 0x50}{SMALL}1,000 COINS$" -gUnknown_8417F11:: @ 0x8417F11 +gText_MysticWater_1000Coins:: @ 0x8417F11 .string "MYSTIC WATER{CLEAR_TO 0x50}{SMALL}1,000 COINS$" -gUnknown_8417F2F:: @ 0x8417F2F +gText_YellowFlute_1600Coins:: @ 0x8417F2F .string "YELLOW FLUTE{CLEAR_TO 0x50}{SMALL}1,600 COINS$" -gUnknown_8417F4D:: @ 0x8417F4D +gText_SmokeBall_800Coins:: @ 0x8417F4D .string "SMOKE BALL{CLEAR_TO 0x5A}{SMALL}800 COINS$" -gUnknown_8417F67:: @ 0x8417F67 +gText_Dummy_8417F67:: @ 0x8417F67 .string "$" -gUnknown_8417F68:: @ 0x8417F68 +gText_Dummy_8417F68:: @ 0x8417F68 .string "$" -gUnknown_8417F69:: @ 0x8417F69 +gText_BecomeLeader:: @ 0x8417F69 .string "BECOME LEADER$" -gUnknown_8417F77:: @ 0x8417F77 +gText_JoinGroup:: @ 0x8417F77 .string "JOIN GROUP$" -gUnknown_8417F82:: @ 0x8417F82 +gOtherText_Single:: @ 0x8417F82 .string "SINGLE$" -gUnknown_8417F89:: @ 0x8417F89 +gOtherText_Double:: @ 0x8417F89 .string "DOUBLE$" -gUnknown_8417F90:: @ 0x8417F90 +gOtherText_Knockout:: @ 0x8417F90 .string "KNOCKOUT$" -gUnknown_8417F99:: @ 0x8417F99 +gOtherText_Mixed:: @ 0x8417F99 .string "MIXED$" gUnknown_8417F9F:: @ 0x8417F9F @@ -1820,133 +1820,133 @@ gUnknown_8417FB6:: @ 0x8417FB6 gUnknown_8417FB9:: @ 8417FB9 .string ".$" -gUnknown_8417FBB:: @ 8417FBB +gText_BigGuy:: @ 8417FBB .string "Big guy$" -gUnknown_8417FC3:: @ 8417FC3 +gText_BigGirl:: @ 8417FC3 .string "Big girl$" -gUnknown_8417FCC:: @ 8417FCC +gText_Daughter:: @ 8417FCC .string "son$" -gUnknown_8417FD0:: @ 8417FD0 +gText_Son:: @ 8417FD0 .string "daughter$" -gUnknown_8417FD9:: @ 0x8417FD9 +gText_BoulderBadge:: @ 0x8417FD9 .string "BOULDERBADGE$" -gUnknown_8417FE6:: @ 0x8417FE6 +gText_CascadeBadge:: @ 0x8417FE6 .string "CASCADEBADGE$" -gUnknown_8417FF3:: @ 0x8417FF3 +gText_ThunderBadge:: @ 0x8417FF3 .string "THUNDERBADGE$" -gUnknown_8418000:: @ 0x8418000 +gText_RainbowBadge:: @ 0x8418000 .string "RAINBOWBADGE$" -gUnknown_841800D:: @ 0x841800D +gText_SoulBadge:: @ 0x841800D .string "SOULBADGE$" -gUnknown_8418017:: @ 0x8418017 +gText_MarshBadge:: @ 0x8418017 .string "MARSHBADGE$" -gUnknown_8418022:: @ 0x8418022 +gText_VolcanoBadge:: @ 0x8418022 .string "VOLCANOBADGE$" -gUnknown_841802F:: @ 0x841802F +gText_EarthBadge:: @ 0x841802F .string "EARTHBADGE$" -gUnknown_841803A:: @ 0x841803A +gText_1F:: @ 0x841803A .string "1F$" -gUnknown_841803D:: @ 0x841803D +gText_2F:: @ 0x841803D .string "2F$" -gUnknown_8418040:: @ 0x8418040 +gText_3F:: @ 0x8418040 .string "3F$" -gUnknown_8418043:: @ 0x8418043 +gText_4F:: @ 0x8418043 .string "4F$" -gUnknown_8418046:: @ 0x8418046 +gText_5F:: @ 0x8418046 .string "5F$" -gUnknown_8418049:: @ 0x8418049 +gText_6F:: @ 0x8418049 .string "6F$" -gUnknown_841804C:: @ 0x841804C +gText_7F:: @ 0x841804C .string "7F$" -gUnknown_841804F:: @ 0x841804F +gText_8F:: @ 0x841804F .string "8F$" -gUnknown_8418052:: @ 0x8418052 +gText_9F:: @ 0x8418052 .string "9F$" -gUnknown_8418055:: @ 0x8418055 +gText_10F:: @ 0x8418055 .string "10F$" -gUnknown_8418059:: @ 0x8418059 +gText_11F:: @ 0x8418059 .string "11F$" -gUnknown_841805D:: @ 0x841805D +gText_B1F:: @ 0x841805D .string "B1F$" -gUnknown_8418061:: @ 0x8418061 +gText_B2F:: @ 0x8418061 .string "B2F$" -gUnknown_8418065:: @ 0x8418065 +gText_B3F:: @ 0x8418065 .string "B3F$" -gUnknown_8418069:: @ 0x8418069 +gText_B4F:: @ 0x8418069 .string "B4F$" -gUnknown_841806D:: @ 0x841806D +gText_Rooftop:: @ 0x841806D .string "ROOFTOP$" -gUnknown_8418075:: @ 8418075 +gText_NowOn:: @ 8418075 .string "Now on:$" -gUnknown_841807D:: @ 0x841807D +gText_LinkedGamePlay:: @ 0x841807D .string "LINKED GAME PLAY$" -gUnknown_841808E:: @ 0x841808E +gText_DirectCorner:: @ 0x841808E .string "DIRECT CORNER$" -gUnknown_841809C:: @ 0x841809C +gText_UnionRoom:: @ 0x841809C .string "UNION ROOM$" -gUnknown_84180A7:: @ 0x84180A7 +gText_Energypowder_50:: @ 0x84180A7 .string "ENERGYPOWDER{CLEAR_TO 0x74}{SMALL}50$" -gUnknown_84180BC:: @ 0x84180BC +gText_EnergyRoot_80:: @ 0x84180BC .string "ENERGY ROOT{CLEAR_TO 0x74}{SMALL}80$" -gUnknown_84180D0:: @ 0x84180D0 +gText_HealPowder_50:: @ 0x84180D0 .string "HEAL POWDER{CLEAR_TO 0x74}{SMALL}50$" -gUnknown_84180E4:: @ 0x84180E4 +gText_RevivalHerb_300:: @ 0x84180E4 .string "REVIVAL HERB{CLEAR_TO 0x6F}{SMALL}300$" -gUnknown_84180FA:: @ 0x84180FA +gText_Protein_1000:: @ 0x84180FA .string "PROTEIN{CLEAR_TO 0x65}{SMALL}1,000$" -gUnknown_841810D:: @ 0x841810D +gText_Iron_1000:: @ 0x841810D .string "IRON{CLEAR_TO 0x65}{SMALL}1,000$" -gUnknown_841811D:: @ 0x841811D +gText_Carbos_1000:: @ 0x841811D .string "CARBOS{CLEAR_TO 0x65}{SMALL}1,000$" -gUnknown_841812F:: @ 0x841812F +gText_Calcium_1000:: @ 0x841812F .string "CALCIUM{CLEAR_TO 0x65}{SMALL}1,000$" -gUnknown_8418142:: @ 0x8418142 +gText_Zinc_1000:: @ 0x8418142 .string "ZINC{CLEAR_TO 0x65}{SMALL}1,000$" -gUnknown_8418152:: @ 0x8418152 +gText_HpUp_1000:: @ 0x8418152 .string "HP UP{CLEAR_TO 0x65}{SMALL}1,000$" -gUnknown_8418163:: @ 0x8418163 +gText_PpUp_3000:: @ 0x8418163 .string "PP UP{CLEAR_TO 0x65}{SMALL}3,000$" gString_BattleRecords_PlayersBattleResults:: @ 8418174 @@ -2890,7 +2890,7 @@ gUnknown_8419D57:: @ 8419D57 .string "POKéMON TRADES$" gUnknown_8419D66:: @ 8419D66 - .string "UNION TRADES ã‚’ BATTLES$" + .string "UNION TRADES & BATTLES$" gUnknown_8419D7D:: @ 8419D7D .string "BERRY CRUSH$" @@ -4072,7 +4072,7 @@ gCreditsString_Teruki_Murakawa_Souichi_Yamamoto_Yuichiro_Ito_Akira_Kinashi:: @ 0 .align 2 gCreditsString_Environment_Tool_Programmers:: @ 0x841DB7C .string "\n" - .string "Environment ã‚’ Tool Programmers\n" + .string "Environment & Tool Programmers\n" .string "\n\n" .string "\n\n" .string "$" @@ -4359,33 +4359,46 @@ gUnknown_841E09F:: @ 841E09F gUnknown_841E0A5:: @ 841E0A5 .string "Is this trade okay?$" +gUnknown_841E0B9:: .string "CANCEL$" +gUnknown_841E0C0:: .string "Choose a POKéMON.$" +gUnknown_841E0D2:: .string "SUMMARY$" +gUnknown_841E0DA:: .string "TRADE$" +gUnknown_841E0E0:: .string "Cancel trade?$" +gUnknown_841E0EE:: .string "Press the B Button to exit.$" +gUnknown_841E10A:: .string "SUMMARY$" +gUnknown_841E112:: .string "TRADE$" +gUnknown_841E118:: .string "{COLOR RED}{HIGHLIGHT DARK_GREY}{SHADOW GREEN}Communication standby…\n" .string "Please wait.$" +gUnknown_841E145:: .string "{COLOR RED}{HIGHLIGHT DARK_GREY}{SHADOW GREEN}The trade has been canceled.$" +gUnknown_841E16B:: .string "{COLOR RED}{HIGHLIGHT DARK_GREY}{SHADOW GREEN}That's your only POKéMON\n" .string "for battle.$" +gUnknown_841E199:: .string "{COLOR RED}{HIGHLIGHT DARK_GREY}{SHADOW GREEN}Waiting for your friend\n" .string "to finish…$" +gUnknown_841E1C5:: .string "Your friend wants\n" .string "to trade POKéMON.$" @@ -4402,7 +4415,7 @@ gUnknown_841E20D:: @ 841E20D gUnknown_841E21E:: @ 841E21E .string "Take good care of {STR_VAR_3}!$" -gUnknown_841E234:: @ 841E234 +gText_From:: @ 841E234 .string "From $" gUnknown_841E23A:: @ 841E23A diff --git a/data/text/quest_log.inc b/data/text/quest_log.inc index 62315aed3..7a605b239 100644 --- a/data/text/quest_log.inc +++ b/data/text/quest_log.inc @@ -378,104 +378,104 @@ gUnknown_841B073:: @ 841B073 .string "And {PLAYER} saved the game at this\n" .string "location: {STR_VAR_1}.$" -gUnknown_841B09F:: @ 841B09F +gQuestLogString_Home:: @ 841B09F .string "HOME$" -gUnknown_841B0A4:: @ 841B0A4 +gQuestLogString_OakResearchLab:: @ 841B0A4 .string "OAK RESEARCH LAB$" -gUnknown_841B0B5:: @ 841B0B5 +gQuestLogString_Gym:: @ 841B0B5 .string "GYM$" -gUnknown_841B0B9:: @ 841B0B9 +gQuestLogString_PokemonLeagueGate:: @ 841B0B9 .string "POKéMON LEAGUE GATE$" -gUnknown_841B0CD:: @ 841B0CD +gQuestLogString_ViridianForest:: @ 841B0CD .string "VIRIDIAN FOREST$" -gUnknown_841B0DD:: @ 841B0DD +gQuestLogString_PewterMuseumOfScience:: @ 841B0DD .string "PEWTER MUSEUM OF SCIENCE$" -gUnknown_841B0F6:: @ 841B0F6 +gQuestLogString_MtMoon:: @ 841B0F6 .string "MT. MOON$" -gUnknown_841B0FF:: @ 841B0FF +gQuestLogString_BikeShop:: @ 841B0FF .string "BIKE SHOP$" -gUnknown_841B109:: @ 841B109 +gQuestLogString_BillSHouse:: @ 841B109 .string "BILL'S HOUSE$" -gUnknown_841B116:: @ 841B116 +gQuestLogString_DayCare:: @ 841B116 .string "DAY CARE$" -gUnknown_841B11F:: @ 841B11F +gQuestLogString_UndergroundPath:: @ 841B11F .string "UNDERGROUND PATH$" -gUnknown_841B130:: @ 841B130 +gQuestLogString_PokemonFanClub:: @ 841B130 .string "POKéMON FAN CLUB$" -gUnknown_841B141:: @ 841B141 +gQuestLogString_SSAnne:: @ 841B141 .string "S.S. ANNE$" -gUnknown_841B14B:: @ 841B14B +gQuestLogString_DiglettSCave:: @ 841B14B .string "DIGLETT'S CAVE$" -gUnknown_841B15A:: @ 841B15A +gQuestLogString_RockTunnel:: @ 841B15A .string "ROCK TUNNEL$" -gUnknown_841B166:: @ 841B166 +gQuestLogString_PowerPlant:: @ 841B166 .string "POWER PLANT$" -gUnknown_841B172:: @ 841B172 +gQuestLogString_PokemonTower:: @ 841B172 .string "POKéMON TOWER$" -gUnknown_841B180:: @ 841B180 +gQuestLogString_VolunteerHouse:: @ 841B180 .string "VOLUNTEER HOUSE$" -gUnknown_841B190:: @ 841B190 +gQuestLogString_NameRaterSHouse:: @ 841B190 .string "NAME RATER'S HOUSE$" -gUnknown_841B1A3:: @ 841B1A3 +gQuestLogString_CeladonDeptStore:: @ 841B1A3 .string "CELADON DEPT. STORE$" -gUnknown_841B1B7:: @ 841B1B7 +gQuestLogString_CeladonMansion:: @ 841B1B7 .string "CELADON MANSION$" -gUnknown_841B1C7:: @ 841B1C7 +gQuestLogString_RocketGameCorner:: @ 841B1C7 .string "ROCKET GAME CORNER$" -gUnknown_841B1DA:: @ 841B1DA +gQuestLogString_Restaurant:: @ 841B1DA .string "RESTAURANT$" -gUnknown_841B1E5:: @ 841B1E5 +gQuestLogString_RocketHideout:: @ 841B1E5 .string "ROCKET HIDEOUT$" -gUnknown_841B1F4:: @ 841B1F4 +gQuestLogString_SafariZone:: @ 841B1F4 .string "SAFARI ZONE$" -gUnknown_841B200:: @ 841B200 +gQuestLogString_WardenSHome:: @ 841B200 .string "WARDEN'S HOME$" -gUnknown_841B20E:: @ 841B20E +gQuestLogString_FightingDojo:: @ 841B20E .string "FIGHTING DOJO$" -gUnknown_841B21C:: @ 841B21C +gQuestLogString_SilphCo:: @ 841B21C .string "SILPH CO.$" -gUnknown_841B226:: @ 841B226 +gQuestLogString_SeafoamIslands:: @ 841B226 .string "SEAFOAM ISLANDS$" -gUnknown_841B236:: @ 841B236 +gQuestLogString_PokemonMansion:: @ 841B236 .string "POKéMON MANSION$" -gUnknown_841B246:: @ 841B246 +gQuestLogString_PokemonResearchLab:: @ 841B246 .string "POKéMON RESEARCH LAB$" -gUnknown_841B25B:: @ 841B25B +gQuestLogString_VictoryRoad:: @ 841B25B .string "VICTORY ROAD$" -gUnknown_841B268:: @ 841B268 +gQuestLogString_PokemonLeague:: @ 841B268 .string "POKéMON LEAGUE$" -gUnknown_841B277:: @ 841B277 +gQuestLogString_CeruleanCave:: @ 841B277 .string "CERULEAN CAVE$" diff --git a/data/text/species_names.inc b/data/text/species_names.inc deleted file mode 100644 index 04907c86e..000000000 --- a/data/text/species_names.inc +++ /dev/null @@ -1,412 +0,0 @@ - .string "??????????$", 11 - .string "BULBASAUR$", 11 - .string "IVYSAUR$", 11 - .string "VENUSAUR$", 11 - .string "CHARMANDER$", 11 - .string "CHARMELEON$", 11 - .string "CHARIZARD$", 11 - .string "SQUIRTLE$", 11 - .string "WARTORTLE$", 11 - .string "BLASTOISE$", 11 - .string "CATERPIE$", 11 - .string "METAPOD$", 11 - .string "BUTTERFREE$", 11 - .string "WEEDLE$", 11 - .string "KAKUNA$", 11 - .string "BEEDRILL$", 11 - .string "PIDGEY$", 11 - .string "PIDGEOTTO$", 11 - .string "PIDGEOT$", 11 - .string "RATTATA$", 11 - .string "RATICATE$", 11 - .string "SPEAROW$", 11 - .string "FEAROW$", 11 - .string "EKANS$", 11 - .string "ARBOK$", 11 - .string "PIKACHU$", 11 - .string "RAICHU$", 11 - .string "SANDSHREW$", 11 - .string "SANDSLASH$", 11 - .string "NIDORAN♀$", 11 - .string "NIDORINA$", 11 - .string "NIDOQUEEN$", 11 - .string "NIDORAN♂$", 11 - .string "NIDORINO$", 11 - .string "NIDOKING$", 11 - .string "CLEFAIRY$", 11 - .string "CLEFABLE$", 11 - .string "VULPIX$", 11 - .string "NINETALES$", 11 - .string "JIGGLYPUFF$", 11 - .string "WIGGLYTUFF$", 11 - .string "ZUBAT$", 11 - .string "GOLBAT$", 11 - .string "ODDISH$", 11 - .string "GLOOM$", 11 - .string "VILEPLUME$", 11 - .string "PARAS$", 11 - .string "PARASECT$", 11 - .string "VENONAT$", 11 - .string "VENOMOTH$", 11 - .string "DIGLETT$", 11 - .string "DUGTRIO$", 11 - .string "MEOWTH$", 11 - .string "PERSIAN$", 11 - .string "PSYDUCK$", 11 - .string "GOLDUCK$", 11 - .string "MANKEY$", 11 - .string "PRIMEAPE$", 11 - .string "GROWLITHE$", 11 - .string "ARCANINE$", 11 - .string "POLIWAG$", 11 - .string "POLIWHIRL$", 11 - .string "POLIWRATH$", 11 - .string "ABRA$", 11 - .string "KADABRA$", 11 - .string "ALAKAZAM$", 11 - .string "MACHOP$", 11 - .string "MACHOKE$", 11 - .string "MACHAMP$", 11 - .string "BELLSPROUT$", 11 - .string "WEEPINBELL$", 11 - .string "VICTREEBEL$", 11 - .string "TENTACOOL$", 11 - .string "TENTACRUEL$", 11 - .string "GEODUDE$", 11 - .string "GRAVELER$", 11 - .string "GOLEM$", 11 - .string "PONYTA$", 11 - .string "RAPIDASH$", 11 - .string "SLOWPOKE$", 11 - .string "SLOWBRO$", 11 - .string "MAGNEMITE$", 11 - .string "MAGNETON$", 11 - .string "FARFETCH'D$", 11 - .string "DODUO$", 11 - .string "DODRIO$", 11 - .string "SEEL$", 11 - .string "DEWGONG$", 11 - .string "GRIMER$", 11 - .string "MUK$", 11 - .string "SHELLDER$", 11 - .string "CLOYSTER$", 11 - .string "GASTLY$", 11 - .string "HAUNTER$", 11 - .string "GENGAR$", 11 - .string "ONIX$", 11 - .string "DROWZEE$", 11 - .string "HYPNO$", 11 - .string "KRABBY$", 11 - .string "KINGLER$", 11 - .string "VOLTORB$", 11 - .string "ELECTRODE$", 11 - .string "EXEGGCUTE$", 11 - .string "EXEGGUTOR$", 11 - .string "CUBONE$", 11 - .string "MAROWAK$", 11 - .string "HITMONLEE$", 11 - .string "HITMONCHAN$", 11 - .string "LICKITUNG$", 11 - .string "KOFFING$", 11 - .string "WEEZING$", 11 - .string "RHYHORN$", 11 - .string "RHYDON$", 11 - .string "CHANSEY$", 11 - .string "TANGELA$", 11 - .string "KANGASKHAN$", 11 - .string "HORSEA$", 11 - .string "SEADRA$", 11 - .string "GOLDEEN$", 11 - .string "SEAKING$", 11 - .string "STARYU$", 11 - .string "STARMIE$", 11 - .string "MR. MIME$", 11 - .string "SCYTHER$", 11 - .string "JYNX$", 11 - .string "ELECTABUZZ$", 11 - .string "MAGMAR$", 11 - .string "PINSIR$", 11 - .string "TAUROS$", 11 - .string "MAGIKARP$", 11 - .string "GYARADOS$", 11 - .string "LAPRAS$", 11 - .string "DITTO$", 11 - .string "EEVEE$", 11 - .string "VAPOREON$", 11 - .string "JOLTEON$", 11 - .string "FLAREON$", 11 - .string "PORYGON$", 11 - .string "OMANYTE$", 11 - .string "OMASTAR$", 11 - .string "KABUTO$", 11 - .string "KABUTOPS$", 11 - .string "AERODACTYL$", 11 - .string "SNORLAX$", 11 - .string "ARTICUNO$", 11 - .string "ZAPDOS$", 11 - .string "MOLTRES$", 11 - .string "DRATINI$", 11 - .string "DRAGONAIR$", 11 - .string "DRAGONITE$", 11 - .string "MEWTWO$", 11 - .string "MEW$", 11 - .string "CHIKORITA$", 11 - .string "BAYLEEF$", 11 - .string "MEGANIUM$", 11 - .string "CYNDAQUIL$", 11 - .string "QUILAVA$", 11 - .string "TYPHLOSION$", 11 - .string "TOTODILE$", 11 - .string "CROCONAW$", 11 - .string "FERALIGATR$", 11 - .string "SENTRET$", 11 - .string "FURRET$", 11 - .string "HOOTHOOT$", 11 - .string "NOCTOWL$", 11 - .string "LEDYBA$", 11 - .string "LEDIAN$", 11 - .string "SPINARAK$", 11 - .string "ARIADOS$", 11 - .string "CROBAT$", 11 - .string "CHINCHOU$", 11 - .string "LANTURN$", 11 - .string "PICHU$", 11 - .string "CLEFFA$", 11 - .string "IGGLYBUFF$", 11 - .string "TOGEPI$", 11 - .string "TOGETIC$", 11 - .string "NATU$", 11 - .string "XATU$", 11 - .string "MAREEP$", 11 - .string "FLAAFFY$", 11 - .string "AMPHAROS$", 11 - .string "BELLOSSOM$", 11 - .string "MARILL$", 11 - .string "AZUMARILL$", 11 - .string "SUDOWOODO$", 11 - .string "POLITOED$", 11 - .string "HOPPIP$", 11 - .string "SKIPLOOM$", 11 - .string "JUMPLUFF$", 11 - .string "AIPOM$", 11 - .string "SUNKERN$", 11 - .string "SUNFLORA$", 11 - .string "YANMA$", 11 - .string "WOOPER$", 11 - .string "QUAGSIRE$", 11 - .string "ESPEON$", 11 - .string "UMBREON$", 11 - .string "MURKROW$", 11 - .string "SLOWKING$", 11 - .string "MISDREAVUS$", 11 - .string "UNOWN$", 11 - .string "WOBBUFFET$", 11 - .string "GIRAFARIG$", 11 - .string "PINECO$", 11 - .string "FORRETRESS$", 11 - .string "DUNSPARCE$", 11 - .string "GLIGAR$", 11 - .string "STEELIX$", 11 - .string "SNUBBULL$", 11 - .string "GRANBULL$", 11 - .string "QWILFISH$", 11 - .string "SCIZOR$", 11 - .string "SHUCKLE$", 11 - .string "HERACROSS$", 11 - .string "SNEASEL$", 11 - .string "TEDDIURSA$", 11 - .string "URSARING$", 11 - .string "SLUGMA$", 11 - .string "MAGCARGO$", 11 - .string "SWINUB$", 11 - .string "PILOSWINE$", 11 - .string "CORSOLA$", 11 - .string "REMORAID$", 11 - .string "OCTILLERY$", 11 - .string "DELIBIRD$", 11 - .string "MANTINE$", 11 - .string "SKARMORY$", 11 - .string "HOUNDOUR$", 11 - .string "HOUNDOOM$", 11 - .string "KINGDRA$", 11 - .string "PHANPY$", 11 - .string "DONPHAN$", 11 - .string "PORYGON2$", 11 - .string "STANTLER$", 11 - .string "SMEARGLE$", 11 - .string "TYROGUE$", 11 - .string "HITMONTOP$", 11 - .string "SMOOCHUM$", 11 - .string "ELEKID$", 11 - .string "MAGBY$", 11 - .string "MILTANK$", 11 - .string "BLISSEY$", 11 - .string "RAIKOU$", 11 - .string "ENTEI$", 11 - .string "SUICUNE$", 11 - .string "LARVITAR$", 11 - .string "PUPITAR$", 11 - .string "TYRANITAR$", 11 - .string "LUGIA$", 11 - .string "HO-OH$", 11 - .string "CELEBI$", 11 - .string "?$", 11 - .string "?$", 11 - .string "?$", 11 - .string "?$", 11 - .string "?$", 11 - .string "?$", 11 - .string "?$", 11 - .string "?$", 11 - .string "?$", 11 - .string "?$", 11 - .string "?$", 11 - .string "?$", 11 - .string "?$", 11 - .string "?$", 11 - .string "?$", 11 - .string "?$", 11 - .string "?$", 11 - .string "?$", 11 - .string "?$", 11 - .string "?$", 11 - .string "?$", 11 - .string "?$", 11 - .string "?$", 11 - .string "?$", 11 - .string "?$", 11 - .string "TREECKO$", 11 - .string "GROVYLE$", 11 - .string "SCEPTILE$", 11 - .string "TORCHIC$", 11 - .string "COMBUSKEN$", 11 - .string "BLAZIKEN$", 11 - .string "MUDKIP$", 11 - .string "MARSHTOMP$", 11 - .string "SWAMPERT$", 11 - .string "POOCHYENA$", 11 - .string "MIGHTYENA$", 11 - .string "ZIGZAGOON$", 11 - .string "LINOONE$", 11 - .string "WURMPLE$", 11 - .string "SILCOON$", 11 - .string "BEAUTIFLY$", 11 - .string "CASCOON$", 11 - .string "DUSTOX$", 11 - .string "LOTAD$", 11 - .string "LOMBRE$", 11 - .string "LUDICOLO$", 11 - .string "SEEDOT$", 11 - .string "NUZLEAF$", 11 - .string "SHIFTRY$", 11 - .string "NINCADA$", 11 - .string "NINJASK$", 11 - .string "SHEDINJA$", 11 - .string "TAILLOW$", 11 - .string "SWELLOW$", 11 - .string "SHROOMISH$", 11 - .string "BRELOOM$", 11 - .string "SPINDA$", 11 - .string "WINGULL$", 11 - .string "PELIPPER$", 11 - .string "SURSKIT$", 11 - .string "MASQUERAIN$", 11 - .string "WAILMER$", 11 - .string "WAILORD$", 11 - .string "SKITTY$", 11 - .string "DELCATTY$", 11 - .string "KECLEON$", 11 - .string "BALTOY$", 11 - .string "CLAYDOL$", 11 - .string "NOSEPASS$", 11 - .string "TORKOAL$", 11 - .string "SABLEYE$", 11 - .string "BARBOACH$", 11 - .string "WHISCASH$", 11 - .string "LUVDISC$", 11 - .string "CORPHISH$", 11 - .string "CRAWDAUNT$", 11 - .string "FEEBAS$", 11 - .string "MILOTIC$", 11 - .string "CARVANHA$", 11 - .string "SHARPEDO$", 11 - .string "TRAPINCH$", 11 - .string "VIBRAVA$", 11 - .string "FLYGON$", 11 - .string "MAKUHITA$", 11 - .string "HARIYAMA$", 11 - .string "ELECTRIKE$", 11 - .string "MANECTRIC$", 11 - .string "NUMEL$", 11 - .string "CAMERUPT$", 11 - .string "SPHEAL$", 11 - .string "SEALEO$", 11 - .string "WALREIN$", 11 - .string "CACNEA$", 11 - .string "CACTURNE$", 11 - .string "SNORUNT$", 11 - .string "GLALIE$", 11 - .string "LUNATONE$", 11 - .string "SOLROCK$", 11 - .string "AZURILL$", 11 - .string "SPOINK$", 11 - .string "GRUMPIG$", 11 - .string "PLUSLE$", 11 - .string "MINUN$", 11 - .string "MAWILE$", 11 - .string "MEDITITE$", 11 - .string "MEDICHAM$", 11 - .string "SWABLU$", 11 - .string "ALTARIA$", 11 - .string "WYNAUT$", 11 - .string "DUSKULL$", 11 - .string "DUSCLOPS$", 11 - .string "ROSELIA$", 11 - .string "SLAKOTH$", 11 - .string "VIGOROTH$", 11 - .string "SLAKING$", 11 - .string "GULPIN$", 11 - .string "SWALOT$", 11 - .string "TROPIUS$", 11 - .string "WHISMUR$", 11 - .string "LOUDRED$", 11 - .string "EXPLOUD$", 11 - .string "CLAMPERL$", 11 - .string "HUNTAIL$", 11 - .string "GOREBYSS$", 11 - .string "ABSOL$", 11 - .string "SHUPPET$", 11 - .string "BANETTE$", 11 - .string "SEVIPER$", 11 - .string "ZANGOOSE$", 11 - .string "RELICANTH$", 11 - .string "ARON$", 11 - .string "LAIRON$", 11 - .string "AGGRON$", 11 - .string "CASTFORM$", 11 - .string "VOLBEAT$", 11 - .string "ILLUMISE$", 11 - .string "LILEEP$", 11 - .string "CRADILY$", 11 - .string "ANORITH$", 11 - .string "ARMALDO$", 11 - .string "RALTS$", 11 - .string "KIRLIA$", 11 - .string "GARDEVOIR$", 11 - .string "BAGON$", 11 - .string "SHELGON$", 11 - .string "SALAMENCE$", 11 - .string "BELDUM$", 11 - .string "METANG$", 11 - .string "METAGROSS$", 11 - .string "REGIROCK$", 11 - .string "REGICE$", 11 - .string "REGISTEEL$", 11 - .string "KYOGRE$", 11 - .string "GROUDON$", 11 - .string "RAYQUAZA$", 11 - .string "LATIAS$", 11 - .string "LATIOS$", 11 - .string "JIRACHI$", 11 - .string "DEOXYS$", 11 - .string "CHIMECHO$", 11 diff --git a/data/trade.s b/data/trade.s new file mode 100644 index 000000000..50cbeb488 --- /dev/null +++ b/data/trade.s @@ -0,0 +1,997 @@ +#include "constants/items.h" +#include "constants/species.h" +#include "constants/easy_chat.h" +#define RGB(r, g, b) ((r) | ((g) << 5) | ((b) << 10)) + .include "asm/macros.inc" + .include "constants/constants.inc" + + .section .rodata + .align 2, 0 + + @ unknown +gUnknown_8260814:: @ 8260814 + .4byte 0x00000f24 @ sizeof(struct SaveBlock2) + .4byte 0x00003d68 @ sizeof(struct SaveBlock1) + .4byte 0x0000001c @ sizeof(struct MapData) + .4byte 0x00000530 @ unk + .4byte 0x00000034 @ unk + .4byte 0x00000024 @ sizeof(struct MailStruct) + .4byte 0x00000064 @ sizeof(struct Pokemon) + .4byte 0x00000528 + +gUnknown_8260834:: @ 8260834 + .incbin "data/trade/unk_8260834.bin" + +gUnknown_8260A32:: @ 8260A32 + .incbin "data/trade/unk_8260A32.bin" + +gUnknown_8260C30:: @ 8260C30 + .incbin "data/trade/unk_8260C30.bin" + +gUnknown_8261430:: @ 8261430 + .incbin "data/trade/unk_8261430.bin" + +gOamdata_8261C30:: + .4byte 0x80004000, 0x00000400 + +gOamData_8261C38:: + .4byte 0xc0004000, 0x00000400 + +gSpriteAnim_8261C40:: + obj_image_anim_frame 0x00, 5 + obj_image_anim_end + +gSpriteAnim_8261C48:: + obj_image_anim_frame 0x20, 5 + obj_image_anim_end + +gSpriteAnimTable_8261C50:: + .4byte gSpriteAnim_8261C40 + .4byte gSpriteAnim_8261C48 + +gUnknown_8261C58:: @ 8261C58 + obj_tiles gUnknown_8E9E1DC, 0x0800, 300 + +gUnknown_8261C60:: @ 8261C60 + obj_pal gUnknown_8E9CF3C, 2345 + +gSpriteAnim_8261C68:: + obj_image_anim_frame 0x00, 5 + obj_image_anim_end + +gSpriteAnim_8261C70:: + obj_image_anim_frame 0x08, 5 + obj_image_anim_end + +gSpriteAnim_8261C78:: + obj_image_anim_frame 0x10, 5 + obj_image_anim_end + +gSpriteAnim_8261C80:: + obj_image_anim_frame 0x18, 5 + obj_image_anim_end + +gSpriteAnim_8261C88:: + obj_image_anim_frame 0x20, 5 + obj_image_anim_end + +gSpriteAnim_8261C90:: + obj_image_anim_frame 0x28, 5 + obj_image_anim_end + +gSpriteAnimTable_8261C98:: + .4byte gSpriteAnim_8261C68 + .4byte gSpriteAnim_8261C70 + .4byte gSpriteAnim_8261C78 + .4byte gSpriteAnim_8261C80 + .4byte gSpriteAnim_8261C88 + .4byte gSpriteAnim_8261C90 + +gUnknown_8261CB0:: @ 8261CB0 + spr_template 300, 2345, gOamData_8261C38, gSpriteAnimTable_8261C50, NULL, gDummySpriteAffineAnimTable, SpriteCallbackDummy + +gUnknown_8261CC8:: @ 8261CC8 + spr_template 200, 4925, gOamdata_8261C30, gSpriteAnimTable_8261C98, NULL, gDummySpriteAffineAnimTable, SpriteCallbackDummy + +gUnknown_8261CE0:: + .incbin "data/trade/unk_8261CE0.gbapal" + +gUnknown_8261D00:: @ 8261D00 + obj_pal gUnknown_8261CE0, 4925 + +gUnknown_8261D08:: @ 8261D08 + .byte 0x04, 0x02, 0x0c, 0x0c, 0x00, 0x00 + .byte 0x02, 0x04, 0x0c, 0x0c, 0x00, 0x00 + .byte 0x07, 0x06, 0x01, 0x00, 0x00, 0x00 + .byte 0x01, 0x06, 0x07, 0x00, 0x00, 0x00 + + .byte 0x05, 0x03, 0x0c, 0x0c, 0x00, 0x00 + .byte 0x03, 0x05, 0x0c, 0x0c, 0x00, 0x00 + .byte 0x00, 0x07, 0x06, 0x01, 0x00, 0x00 + .byte 0x06, 0x07, 0x00, 0x01, 0x00, 0x00 + + .byte 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 + .byte 0x04, 0x00, 0x00, 0x00, 0x00, 0x00 + .byte 0x09, 0x08, 0x07, 0x06, 0x00, 0x00 + .byte 0x03, 0x01, 0x00, 0x00, 0x00, 0x00 + + .byte 0x01, 0x01, 0x01, 0x01, 0x00, 0x00 + .byte 0x05, 0x01, 0x01, 0x01, 0x00, 0x00 + .byte 0x02, 0x09, 0x08, 0x07, 0x00, 0x00 + .byte 0x08, 0x09, 0x06, 0x06, 0x00, 0x00 + + .byte 0x02, 0x02, 0x02, 0x02, 0x00, 0x00 + .byte 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 + .byte 0x0b, 0x0a, 0x09, 0x08, 0x07, 0x06 + .byte 0x05, 0x03, 0x01, 0x00, 0x00, 0x00 + + .byte 0x03, 0x03, 0x03, 0x03, 0x00, 0x00 + .byte 0x01, 0x01, 0x01, 0x01, 0x00, 0x00 + .byte 0x04, 0x04, 0x04, 0x04, 0x00, 0x00 + .byte 0x0a, 0x08, 0x06, 0x00, 0x00, 0x00 + + .byte 0x0a, 0x08, 0x0c, 0x00, 0x00, 0x00 + .byte 0x08, 0x0a, 0x0c, 0x00, 0x00, 0x00 + .byte 0x01, 0x00, 0x00, 0x00, 0x00, 0x00 + .byte 0x07, 0x00, 0x01, 0x00, 0x00, 0x00 + + .byte 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00 + .byte 0x09, 0x0c, 0x00, 0x00, 0x00, 0x00 + .byte 0x06, 0x00, 0x00, 0x00, 0x00, 0x00 + .byte 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 + + .byte 0x06, 0x00, 0x00, 0x00, 0x00, 0x00 + .byte 0x0a, 0x06, 0x00, 0x00, 0x00, 0x00 + .byte 0x03, 0x02, 0x01, 0x00, 0x00, 0x00 + .byte 0x09, 0x07, 0x00, 0x00, 0x00, 0x00 + + .byte 0x07, 0x00, 0x00, 0x00, 0x00, 0x00 + .byte 0x0b, 0x0c, 0x00, 0x00, 0x00, 0x00 + .byte 0x08, 0x00, 0x00, 0x00, 0x00, 0x00 + .byte 0x02, 0x01, 0x00, 0x00, 0x00, 0x00 + + .byte 0x08, 0x00, 0x00, 0x00, 0x00, 0x00 + .byte 0x06, 0x00, 0x00, 0x00, 0x00, 0x00 + .byte 0x05, 0x04, 0x03, 0x02, 0x01, 0x00 + .byte 0x0b, 0x09, 0x07, 0x00, 0x00, 0x00 + + .byte 0x09, 0x00, 0x00, 0x00, 0x00, 0x00 + .byte 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00 + .byte 0x0a, 0x00, 0x00, 0x00, 0x00, 0x00 + .byte 0x04, 0x02, 0x00, 0x00, 0x00, 0x00 + + .byte 0x0b, 0x09, 0x07, 0x06, 0x00, 0x00 + .byte 0x07, 0x06, 0x00, 0x00, 0x00, 0x00 + .byte 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00 + .byte 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00 + +gTradeMonSpriteCoords:: @ 8261E40 + .byte 0x01, 0x05 + .byte 0x08, 0x05 + .byte 0x01, 0x0a + .byte 0x08, 0x0a + .byte 0x01, 0x0f + .byte 0x08, 0x0f + .byte 0x10, 0x05 + .byte 0x17, 0x05 + .byte 0x10, 0x0a + .byte 0x17, 0x0a + .byte 0x10, 0x0f + .byte 0x17, 0x0f + .byte 0x17, 0x12 + +gUnknown_8261E5A:: @ 8261E5A + .byte 0x05, 0x04 + .byte 0x0c, 0x04 + .byte 0x05, 0x09 + .byte 0x0c, 0x09 + .byte 0x05, 0x0e + .byte 0x0c, 0x0e + .byte 0x14, 0x04 + .byte 0x1b, 0x04 + .byte 0x14, 0x09 + .byte 0x1b, 0x09 + .byte 0x14, 0x0e + .byte 0x1b, 0x0e + +gUnknown_8261E72:: @ 8261E72 + .byte 0x01, 0x03 + .byte 0x08, 0x03 + .byte 0x01, 0x08 + .byte 0x08, 0x08 + .byte 0x01, 0x0d + .byte 0x08, 0x0d + + .byte 0x10, 0x03 + .byte 0x17, 0x03 + .byte 0x10, 0x08 + .byte 0x17, 0x08 + .byte 0x10, 0x0d + .byte 0x17, 0x0d + +gTradeUnknownSpriteCoords:: @ 8261E8A + .byte 0x3c, 0x09, 0xb4, 0x09 + .byte 0x30, 0x09, 0xa8, 0x09 + +gUnknown_8261E92:: + .byte 0x00, 0x0e, 0x0f, 0x1d + .byte 0x03, 0x05, 0x03, 0x07 + .byte 0x12, 0x05, 0x12, 0x07 + .byte 0x08, 0x07, 0x16, 0x0c + .byte 0x08, 0x07, 0x16, 0x0c + .byte 0x06, 0x07, 0x18, 0x0c + .byte 0x06, 0x07, 0x18, 0x0c + .byte 0x08, 0x07, 0x16, 0x0c + .byte 0x07, 0x07, 0x17, 0x0c + +gUnknown_8261EB6:: @ 8261EB6 + .string "$" + +gUnknown_8261EB7:: + .string "{COLOR DARK_GREY}{HIGHLIGHT TRANSPARENT}{SHADOW RED}$" + +gText_MaleSymbol4:: @ 8261EC1 + .string "♂$" + +gText_FemaleSymbol4:: @ 8261EC3 + .string "♀$" + +gText_GenderlessSymbol:: @ 8261EC5 + .string "$" + +gUnknown_8261EC6:: + .string "$" + +gUnknown_8261EC7:: @ 8261EC7 + .string "\n$" + +gUnknown_8261EC9:: + .string "/$" + + .align 2 +gUnknown_8261ECC:: @ 8261ECC + .4byte gUnknown_841E0B9 + .4byte gUnknown_841E0C0 + .4byte gUnknown_841E0D2 + .4byte gUnknown_841E0DA + .4byte gUnknown_841E0E0 + .4byte gUnknown_841E0EE + +gUnknown_8261EE4:: @ 8261EE4 + .4byte gUnknown_841E10A, sub_804F440 + .4byte gUnknown_841E112, sub_804F464 + +gUnknown_8261EF4:: @ 8261EF4 + .4byte gUnknown_841E118 + .4byte gUnknown_841E145 + .4byte gUnknown_841E16B + .4byte gUnknown_8417094 + .4byte gUnknown_841E199 + .4byte gUnknown_841E1C5 + .4byte gUnknown_84170BC + .4byte gUnknown_84170E0 + .4byte gUnknown_84170FC + +gUnknown_8261F18:: @ 8261F18 + .byte 0, 1, 2 + + .align 2 +gUnknown_8261F1C:: @ 8261F1C + .4byte 0x000001f8 + @ { + @ .bg = 0, + @ .charBaseIndex = 2, + @ .mapBaseIndex = 31, + @ .screenSize = 0, + @ .paletteMode = 0, + @ .priority = 0, + @ .baseTile = 0x0000 + @ } + .4byte 0x00001051 + @ { + @ .bg = 1, + @ .charBaseIndex = 0, + @ .mapBaseIndex = 5, + @ .screenSize = 0, + @ .paletteMode = 0, + @ .priority = 1, + @ .baseTile = 0x0000 + @ } + .4byte 0x00002062 + @ { + @ .bg = 2, + @ .charBaseIndex = 0, + @ .mapBaseIndex = 6, + @ .screenSize = 0, + @ .paletteMode = 0, + @ .priority = 2, + @ .baseTile = 0x0000 + @ } + .4byte 0x00003073 + @ { + @ .bg = 3, + @ .charBaseIndex = 0, + @ .mapBaseIndex = 7, + @ .screenSize = 0, + @ .paletteMode = 0, + @ .priority = 3, + @ .baseTile = 0x0000 + @ } + +gUnknown_8261F2C:: @ 8261F2C + .byte 0, 4, 7, 22, 4, 15 + .2byte 0x001e + @ { + @ .bg = 0, + @ .tilemapLeft = 4, + @ .tilemapTop = 7, + @ .width = 22, + @ .height = 4, + @ .paletteNum = 15, + @ .baseBlock = 0x001e + @ } + .byte 0, 17, 15, 12, 4, 15 + .2byte 0x0076 + @ { + @ .bg = 0, + @ .tilemapLeft = 17, + @ .tilemapTop = 15, + @ .width = 12, + @ .height = 4, + @ .paletteNum = 15, + @ .baseBlock = 0x0076 + @ } + .byte 0, 0, 5, 8, 2, 13 + .2byte 0x00a6 + @ { + @ .bg = 0, + @ .tilemapLeft = 0, + @ .tilemapTop = 5, + @ .width = 8, + @ .height = 2, + @ .paletteNum = 13, + @ .baseBlock = 0x00a6 + @ } + .byte 0, 7, 5, 8, 2, 13 + .2byte 0x00b6 + @ { + @ .bg = 0, + @ .tilemapLeft = 7, + @ .tilemapTop = 5, + @ .width = 8, + @ .height = 2, + @ .paletteNum = 13, + @ .baseBlock = 0x00b6 + @ } + .byte 0, 0, 10, 8, 2, 13 + .2byte 0x00c6 + @ { + @ .bg = 0, + @ .tilemapLeft = 0, + @ .tilemapTop = 10, + @ .width = 8, + @ .height = 2, + @ .paletteNum = 13, + @ .baseBlock = 0x00c6 + @ } + .byte 0, 7, 10, 8, 2, 13 + .2byte 0x00d6 + @ { + @ .bg = 0, + @ .tilemapLeft = 7, + @ .tilemapTop = 10, + @ .width = 8, + @ .height = 2, + @ .paletteNum = 13, + @ .baseBlock = 0x00d6 + @ } + .byte 0, 0, 15, 8, 2, 13 + .2byte 0x00e6 + @ { + @ .bg = 0, + @ .tilemapLeft = 0, + @ .tilemapTop = 15, + @ .width = 8, + @ .height = 2, + @ .paletteNum = 13, + @ .baseBlock = 0x00e6 + @ } + .byte 0, 7, 15, 8, 2, 13 + .2byte 0x00f6 + @ { + @ .bg = 0, + @ .tilemapLeft = 7, + @ .tilemapTop = 15, + @ .width = 8, + @ .height = 2, + @ .paletteNum = 13, + @ .baseBlock = 0x00f6 + @ } + .byte 0, 15, 5, 8, 2, 13 + .2byte 0x0106 + @ { + @ .bg = 0, + @ .tilemapLeft = 15, + @ .tilemapTop = 5, + @ .width = 8, + @ .height = 2, + @ .paletteNum = 13, + @ .baseBlock = 0x0106 + @ } + .byte 0, 22, 5, 8, 2, 13 + .2byte 0x0116 + @ { + @ .bg = 0, + @ .tilemapLeft = 22, + @ .tilemapTop = 5, + @ .width = 8, + @ .height = 2, + @ .paletteNum = 13, + @ .baseBlock = 0x0116 + @ } + .byte 0, 15, 10, 8, 2, 13 + .2byte 0x0126 + @ { + @ .bg = 0, + @ .tilemapLeft = 15, + @ .tilemapTop = 10, + @ .width = 8, + @ .height = 2, + @ .paletteNum = 13, + @ .baseBlock = 0x0126 + @ } + .byte 0, 22, 10, 8, 2, 13 + .2byte 0x0136 + @ { + @ .bg = 0, + @ .tilemapLeft = 22, + @ .tilemapTop = 10, + @ .width = 8, + @ .height = 2, + @ .paletteNum = 13, + @ .baseBlock = 0x0136 + @ } + .byte 0, 15, 15, 8, 2, 13 + .2byte 0x0146 + @ { + @ .bg = 0, + @ .tilemapLeft = 15, + @ .tilemapTop = 15, + @ .width = 8, + @ .height = 2, + @ .paletteNum = 13, + @ .baseBlock = 0x0146 + @ } + .byte 0, 22, 15, 8, 2, 13 + .2byte 0x0156 + @ { + @ .bg = 0, + @ .tilemapLeft = 22, + @ .tilemapTop = 15, + @ .width = 8, + @ .height = 2, + @ .paletteNum = 13, + @ .baseBlock = 0x0156 + @ } + .byte 0, 2, 5, 14, 2, 13 + .2byte 0x0166 + @ { + @ .bg = 0, + @ .tilemapLeft = 2, + @ .tilemapTop = 5, + @ .width = 14, + @ .height = 2, + @ .paletteNum = 13, + @ .baseBlock = 0x0166 + @ } + .byte 0, 3, 8, 11, 8, 15 + .2byte 0x0182 + @ { + @ .bg = 0, + @ .tilemapLeft = 3, + @ .tilemapTop = 8, + @ .width = 11, + @ .height = 8, + @ .paletteNum = 15, + @ .baseBlock = 0x0182 + @ } + .byte 0, 17, 5, 14, 2, 15 + .2byte 0x01da + @ { + @ .bg = 0, + @ .tilemapLeft = 17, + @ .tilemapTop = 5, + @ .width = 14, + @ .height = 2, + @ .paletteNum = 15, + @ .baseBlock = 0x01da + @ } + .byte 0, 18, 8, 11, 8, 15 + .2byte 0x01f6 + @ { + @ .bg = 0, + @ .tilemapLeft = 18, + @ .tilemapTop = 8, + @ .width = 11, + @ .height = 8, + @ .paletteNum = 15, + @ .baseBlock = 0x01f6 + @ } + .byte 255, 0, 0, 0, 0, 0 + .2byte 0x0000 + @ { + @ .bg = 255, + @ .tilemapLeft = 0, + @ .tilemapTop = 0, + @ .width = 0, + @ .height = 0, + @ .paletteNum = 0, + @ .baseBlock = 0x0000 + @ } + +gUnknown_8261FC4:: @ 8261FC4 + .byte 0, 21, 13, 6, 4, 15 + .2byte 0x024e + @ { + @ .bg = 0, + @ .tilemapLeft = 21, + @ .tilemapTop = 13, + @ .width = 6, + @ .height = 4, + @ .paletteNum = 15, + @ .baseBlock = 0x024e + @ } + + .string "ã‹ã„ã‚ã® ãã†ã—ã‚“$", 13 + .string "ã‹ã„ã‚ã® ã˜ã‚…ã—ã‚“$", 13 + .string "ãƒã‚±ãƒ¢ãƒ³ã‚¢ã‚¤ã‚³ãƒ³ã‚»ãƒƒãƒˆ$", 13 + .string "OBJテキストセット$", 13 + .string "セルセット$", 13 + .string "OBJテキストADD$", 13 + .string "システムメッセージADD$", 13 + .string "ã¯ã„ã‘ã„セット$", 13 + +gUnknown_8262034:: @ 8262034 + .string "ヌケニン$" + .string "ã“ã†ã‹ã‚“ã›ã„り㤠$" + .string "ã ã‚ã ãŸã‚‰ã—ã„よ $" + +gUnknown_8262055:: @ 8262055 + .byte 0x04, 0x03 + .byte 0x13, 0x03 + + .align 2 +gUnknown_826205C:: + .incbin "data/trade/unk_826207C.gbapal" + +gUnknown_826207C:: + .incbin "data/trade/unk_826207C.4bpp" + + .incbin "baserom.gba", 0x26267C, 0x1A00 + +gUnknown_826407C:: @ 826407C + .incbin "data/trade/unk_826407C.bin" + + .incbin "baserom.gba", 0x26487C, 0x120 + +gUnknown_826499C:: + .incbin "data/trade/unk_8264E1C.gbapal" + + .incbin "baserom.gba", 0x2649BC, 0x40 + +gUnknown_82649FC:: + .incbin "data/trade/unk_8264A1C.gbapal" + +gUnknown_8264A1C:: + .incbin "data/trade/unk_8264A1C.4bpp" + +gUnknown_8264C1C:: + .incbin "data/trade/unk_8264C1C.4bpp" + +gUnknown_8264E1C:: + .incbin "data/trade/unk_8264E1C.4bpp" + + .incbin "baserom.gba", 0x264F1C, 0x100 + +gUnknown_826501C:: + .incbin "data/trade/unk_826501C.4bpp" + +gUnknown_826601C:: @ 826601C + .incbin "data/trade/unk_826601C.bin" + +gUnknown_826701C:: @ 826701C + .incbin "data/trade/unk_826701C.8bpp" + +gUnknown_826985C:: @ 826985C + .incbin "data/trade/unk_826985C.bin" + +gUnknown_826995C:: @ 826995C + .incbin "data/trade/unk_826995C.bin" + +gUnknown_8269A5C:: @ 8269A5C + .incbin "data/trade/unk_8269A5C.bin" + +gUnknown_826AA5C:: @ 826AA5C + .incbin "data/trade/unk_826AA5C.bin" + + .align 2 +gUnknown_3379A0Bin:: @ 826BA5C + .incbin "graphics/trade/unknown_3379A0.bin.lz" + +gUnknown_826BB5C:: @ 826BB5C + .incbin "data/trade/unk_826BB5C.gbapal" + +gUnknown_826BD5C:: @ 826BD5C + .incbin "data/trade/unk_826BD5C.gbapal" + +gUnknown_826BF5C:: @ 826BF5C + .incbin "data/trade/unk_826BF5C.gbapal" + +gWirelessSignal4bpp:: @ 826BF7C + .incbin "graphics/trade/wireless_signal.4bpp.lz" + +gUnknown_826C60C:: @ 826C60C + .incbin "data/trade/unk_826C60C.bin.lz" + +gOamData_826CD00:: + .4byte 0x40000100, 0x00000000 + +gAnimCmd_826CD08:: + obj_image_anim_frame 0x00, 3 + obj_image_anim_frame 0x04, 3 + obj_image_anim_frame 0x08, 3 + obj_image_anim_frame 0x0c, 3 + obj_image_anim_frame 0x10, 3 + obj_image_anim_frame 0x14, 3 + obj_image_anim_frame 0x18, 3 + obj_image_anim_frame 0x1c, 3 + obj_image_anim_frame 0x20, 3 + obj_image_anim_frame 0x24, 3 + obj_image_anim_frame 0x28, 3 + obj_image_anim_frame 0x2c, 3 + obj_image_anim_loop 1 + obj_image_anim_frame 0x00, 3 + obj_image_anim_end + +gAnimCmd_826CD44:: + obj_image_anim_frame 0x00, 3 + obj_image_anim_frame 0x04, 3 + obj_image_anim_frame 0x08, 3 + obj_image_anim_frame 0x0c, 3 + obj_image_anim_frame 0x10, 3 + obj_image_anim_frame 0x14, 3 + obj_image_anim_frame 0x18, 3 + obj_image_anim_frame 0x1c, 3 + obj_image_anim_frame 0x20, 3 + obj_image_anim_frame 0x24, 3 + obj_image_anim_frame 0x28, 3 + obj_image_anim_frame 0x2c, 3 + obj_image_anim_loop 2 + obj_image_anim_frame 0x00, 3 + obj_image_anim_end + +gSpriteAnimTable_826CD80:: + .4byte gAnimCmd_826CD08 + .4byte gAnimCmd_826CD44 + +gAffineAnimCmd_826CD88:: + obj_rot_scal_anim_frame 0x0000, 0x0000, 0x00, 0x01 + obj_rot_scal_anim_end + +gAffineAnimCmd_826CD98:: + obj_rot_scal_anim_frame 0xfff8, 0x0000, 0x00, 0x14 + obj_rot_scal_anim_end + +gAffineAnimCmd_826CDA8:: + obj_rot_scal_anim_frame 0x0060, 0x0100, 0x00, 0x00 + obj_rot_scal_anim_frame 0x0000, 0x0000, 0x00, 0x05 + obj_rot_scal_anim_frame 0x0008, 0x0000, 0x00, 0x14 + obj_rot_scal_anim_end + +gSpriteAffineAnimTable_826CDC8:: + .4byte gAffineAnimCmd_826CD88 + .4byte gAffineAnimCmd_826CD98 + .4byte gAffineAnimCmd_826CDA8 + +gUnknown_826CDD4:: @ 826CDD4 + obj_tiles gUnknown_826207C, 0x0600, 5557 + +gUnknown_826CDDC:: @ 826CDDC + obj_pal gUnknown_826205C, 5558 + +gUnknown_826CDE4:: @ 826CDE4 + spr_template 5557, 5558, gOamData_826CD00, gSpriteAnimTable_826CD80, NULL, gSpriteAffineAnimTable_826CDC8, sub_80538BC + +gOamData_826CDFC:: + .4byte 0x80000500, 0x00000400 + +gAnimCmd_826CE04:: + obj_image_anim_frame 0, 5, OBJ_IMAGE_ANIM_H_FLIP | OBJ_IMAGE_ANIM_V_FLIP + obj_image_anim_end + +gSpriteAnimTable_826CE0C:: + .4byte gAnimCmd_826CE04 + +gAffineAnimCmd_826CE10:: + obj_rot_scal_anim_frame -10, -10, 0, 5 + obj_rot_scal_anim_frame 10, 10, 0, 5 + obj_rot_scal_anim_jump 0 + +gSpriteAffineAnimTable_826CE28:: + .4byte gAffineAnimCmd_826CE10 + +gUnknown_826CE2C:: @ 826CE2C + obj_tiles gUnknown_8264A1C, 0x0200, 5550 + +gUnknown_826CE34:: @ 826CE34 + obj_pal gUnknown_82649FC, 5551 + +gUnknown_826CE3C:: @ 826CE3C + obj_pal gUnknown_826499C, 5555 + +gUnknown_826CE44:: @ 826CE44 + spr_template 5550, 5551, gOamData_826CDFC, gSpriteAnimTable_826CE0C, NULL, gSpriteAffineAnimTable_826CE28, sub_804FD24 + +gOamData_826CE5C:: + .4byte 0x80008000, 0x00000400 + +gAnimCmd_826CE64:: + obj_image_anim_frame 0, 5, OBJ_IMAGE_ANIM_H_FLIP | OBJ_IMAGE_ANIM_V_FLIP + obj_image_anim_end + +gAnimCmd_826CE6C:: + obj_image_anim_frame 8, 5, OBJ_IMAGE_ANIM_H_FLIP | OBJ_IMAGE_ANIM_V_FLIP + obj_image_anim_end + +gSpriteAnimTable_826CE74:: + .4byte gAnimCmd_826CE64 + .4byte gAnimCmd_826CE6C + +gUnknown_826CE7C:: @ 826CE7C + obj_tiles gUnknown_8264C1C, 0x0300, 5552 + +gUnknown_826CE84:: @ 826CE84 + spr_template 5552, 5551, gOamData_826CE5C, gSpriteAnimTable_826CE74, NULL, gDummySpriteAffineAnimTable, sub_804FD78 + +gOamData_826CE9C:: + .4byte 0x80008000, 0x00000400 + +gAnimCmd_826CEA4:: + obj_image_anim_frame 0, 10 + obj_image_anim_end + +gSpriteAnimTable_826CEAC:: + .4byte gAnimCmd_826CEA4 + +gUnknown_826CEB0:: @ 826CEB0 + obj_tiles gUnknown_8264E1C, 0x0100, 5554 + +gUnknown_826CEB8:: @ 826CEB8 + spr_template 5554, 5555, gOamData_826CE9C, gSpriteAnimTable_826CEAC, NULL, gDummySpriteAffineAnimTable, sub_804FDB8 + +gOamData_826CED0:: + .4byte 0xc0004000, 0x00000400 + +gAnimCmd_826CED8:: + obj_image_anim_frame 0x00, 2, OBJ_IMAGE_ANIM_H_FLIP | OBJ_IMAGE_ANIM_V_FLIP + obj_image_anim_frame 0x20, 2, OBJ_IMAGE_ANIM_H_FLIP | OBJ_IMAGE_ANIM_V_FLIP + obj_image_anim_frame 0x40, 2, OBJ_IMAGE_ANIM_H_FLIP | OBJ_IMAGE_ANIM_V_FLIP + obj_image_anim_frame 0x60, 2, OBJ_IMAGE_ANIM_H_FLIP | OBJ_IMAGE_ANIM_V_FLIP + obj_image_anim_frame 0x40, 2, OBJ_IMAGE_ANIM_H_FLIP | OBJ_IMAGE_ANIM_V_FLIP + obj_image_anim_frame 0x20, 2, OBJ_IMAGE_ANIM_H_FLIP | OBJ_IMAGE_ANIM_V_FLIP + obj_image_anim_frame 0x00, 2, OBJ_IMAGE_ANIM_H_FLIP | OBJ_IMAGE_ANIM_V_FLIP + obj_image_anim_loop 8 + obj_image_anim_end + +gAnimCmd_826CEFC:: + obj_image_anim_frame 0x00, 2, OBJ_IMAGE_ANIM_H_FLIP | OBJ_IMAGE_ANIM_V_FLIP + obj_image_anim_frame 0x20, 2, OBJ_IMAGE_ANIM_H_FLIP | OBJ_IMAGE_ANIM_V_FLIP + obj_image_anim_frame 0x40, 2, OBJ_IMAGE_ANIM_H_FLIP | OBJ_IMAGE_ANIM_V_FLIP + obj_image_anim_frame 0x60, 2, OBJ_IMAGE_ANIM_H_FLIP | OBJ_IMAGE_ANIM_V_FLIP + obj_image_anim_frame 0x40, 2, OBJ_IMAGE_ANIM_H_FLIP | OBJ_IMAGE_ANIM_V_FLIP + obj_image_anim_frame 0x20, 2, OBJ_IMAGE_ANIM_H_FLIP | OBJ_IMAGE_ANIM_V_FLIP + obj_image_anim_frame 0x00, 2, OBJ_IMAGE_ANIM_H_FLIP | OBJ_IMAGE_ANIM_V_FLIP + obj_image_anim_loop 2 + obj_image_anim_end + +gSpriteAnimTable_826CF20:: + .4byte gAnimCmd_826CED8 + +gSpriteAnimTable_826CF24:: + .4byte gAnimCmd_826CEFC + +gUnknown_826CF28:: @ 826CF28 + obj_tiles gUnknown_826501C, 0x1000, 5556 + +gUnknown_826CF30:: @ 826CF30 + spr_template 5556, 5555, gOamData_826CED0, gSpriteAnimTable_826CF20, NULL, gDummySpriteAffineAnimTable, sub_804FE00 + +gUnknown_826CF48:: @ 826CF48 + spr_template 5556, 5555, gOamData_826CED0, gSpriteAnimTable_826CF24, NULL, gDummySpriteAffineAnimTable, sub_804FE00 + +gUnknown_826CF60:: @ 826CF60 + .2byte RGB(18, 24, 31) + .2byte RGB(18, 24, 31) + .2byte RGB(18, 24, 31) + .2byte RGB(31, 31, 31) + .2byte RGB(31, 31, 31) + .2byte RGB(31, 31, 31) + .2byte RGB(18, 24, 31) + .2byte RGB(18, 24, 31) + .2byte RGB(18, 24, 31) + .2byte RGB(31, 31, 31) + .2byte RGB(31, 31, 31) + .2byte RGB(31, 31, 31) + +gAffineAnimCmd_826CF78:: + obj_rot_scal_anim_frame 0xFF00, 0x0100, 0x00, 0x00 + obj_rot_scal_anim_jump 0 + +gUnknown_826CF88:: @ 826CF88 + .4byte gAffineAnimCmd_826CF78 + + .include "data/ingame_trades.inc" + +gUnknown_826D1BC:: @ 826D1BC + .byte 0, 2, 15, 26, 4, 0 + .2byte 0x0040 + @ { + @ .bg = 0, + @ .tilemapLeft = 2, + @ .tilemapTop = 15, + @ .width = 26, + @ .height = 4, + @ .paletteNum = 0, + @ .baseBlock = 0x0040 + @ } + .byte 255, 0, 0, 0, 0, 0 + .2byte 0x0000 + @ { + @ .bg = 255, + @ .tilemapLeft = 0, + @ .tilemapTop = 0, + @ .width = 0, + @ .height = 0, + @ .paletteNum = 0, + @ .baseBlock = 0x0000 + @ } + +gUnknown_826D1CC:: @ 826D1CC + .byte 0, 21, 9, 6, 4, 15 + .2byte 0x00bc + @ { + @ .bg = 0, + @ .tilemapLeft = 21, + @ .tilemapTop = 9, + @ .width = 6, + @ .height = 4, + @ .paletteNum = 15, + @ .baseBlock = 0x00bc + @ } + +gUnknown_826D1D4:: @ 826D1D4 + .4byte 0x000001fc + @ { + @ .bg = 0, + @ .charBaseIndex = 3, + @ .mapBaseIndex = 31, + @ .screenSize = 0, + @ .paletteMode = 0, + @ .priority = 0, + @ .baseTile = 0x0000 + @ } + .4byte 0x00002051 + @ { + @ .bg = 1, + @ .charBaseIndex = 0, + @ .mapBaseIndex = 5, + @ .screenSize = 0, + @ .paletteMode = 0, + @ .priority = 2, + @ .baseTile = 0x0000 + @ } + .4byte 0x00002326 + @ { + @ .bg = 2, + @ .charBaseIndex = 1, + @ .mapBaseIndex = 18, + @ .screenSize = 1, + @ .paletteMode = 0, + @ .priority = 2, + @ .baseTile = 0x0000 + @ } + .4byte 0x00003063 + @ { + @ .bg = 3, + @ .charBaseIndex = 0, + @ .mapBaseIndex = 6, + @ .screenSize = 0, + @ .paletteMode = 0, + @ .priority = 3, + @ .baseTile = 0x0000 + @ } + +gUnknown_826D1E4:: @ 826D1E4 + .byte 0x00 + .byte 0x00 + .byte 0x01 + .byte 0x00 + .byte 0x01 + .byte 0x00 + .byte 0x01 + .byte 0x01 + .byte 0x01 + .byte 0x01 + .byte 0x02 + .byte 0x02 + .byte 0x02 + .byte 0x02 + .byte 0x03 + .byte 0x03 + .byte 0x03 + .byte 0x03 + .byte 0x04 + .byte 0x04 + .byte 0x04 + .byte 0x04 + .byte 0xfc + .byte 0xfc + .byte 0xfc + .byte 0xfd + .byte 0xfd + .byte 0xfd + .byte 0xfd + .byte 0xfe + .byte 0xfe + .byte 0xfe + .byte 0xfe + .byte 0xff + .byte 0xff + .byte 0xff + .byte 0xff + .byte 0x00 + .byte 0xff + .byte 0x00 + .byte 0xff + .byte 0x00 + .byte 0x00 + .byte 0x00 + + .incbin "baserom.gba", 0x26D210, 0x40 + +gUnknown_826D250:: @ 826D250 + .byte 0x00, 0x01 + .byte 0x01, 0x01 + .byte 0x02, 0x01 + .byte 0x03, 0x01 + .byte 0x04, 0x01 + .byte 0x05, 0x02 + .byte 0x06, 0x02 + .byte 0x07, 0x02 + .byte 0x08, 0x02 + .byte 0x09, 0x02 + .byte 0x0a, 0x03 + .byte 0x0b, 0x03 + .byte 0x0c, 0x03 + .byte 0x0d, 0x04 + .byte 0x0e, 0x05 + .byte 0x0f, 0x02 + .byte 0x00, 0x01 + .byte 0x01, 0x01 + .byte 0x02, 0x01 + .byte 0x03, 0x01 + .byte 0x04, 0x01 + .byte 0x05, 0x02 + .byte 0x06, 0x02 + .byte 0x07, 0x02 + .byte 0x08, 0x02 + .byte 0x09, 0x02 + .byte 0x0a, 0x03 + .byte 0x0b, 0x03 + .byte 0x0c, 0x03 + .byte 0x0d, 0x04 + .byte 0x0e, 0x05 + .byte 0x10, 0x01 + .byte 0x10, 0xff + + .align 2, 0 diff --git a/data/trade/unk_8260834.bin b/data/trade/unk_8260834.bin new file mode 100644 index 000000000..123abf716 Binary files /dev/null and b/data/trade/unk_8260834.bin differ diff --git a/data/trade/unk_8260A32.bin b/data/trade/unk_8260A32.bin new file mode 100644 index 000000000..69304c5cb Binary files /dev/null and b/data/trade/unk_8260A32.bin differ diff --git a/data/trade/unk_8260C30.bin b/data/trade/unk_8260C30.bin new file mode 100644 index 000000000..22f8f3b71 --- /dev/null +++ b/data/trade/unk_8260C30.bin @@ -0,0 +1 @@ +@ABCDEFGHIJKLMNOONMLKJIHHHFDCBA@@ABCDEFGHIJKLMNOONMLKJIHHHFDCBA@@ABCDEFGHIJKLMNOONMLKJIHHHFDCBA@@ABCDEFGHIJKLMNOONMLKJIHHHFDCBA@@ABCDEFGHIJKLMNOONMLKJIHHHFDCBA@@ABCDEFGHIJKLMNOONMLKJIHHHFDCBA@@ABCDEFGHIJKLMNOONMLKJIHHHFDCBA@@ABCDEFGHIJKLMNOONMLKJIHHHFDCBA@@ABCDEFGHIJKLMNOONMLKJIHHHFDCBA@@ABCDEFGHIJKLMNOONMLKJIHHHFDCBA@@ABCDEFGHIJKLMNOONMLKJIHHHFDCBA@@ABCDEFGHIJKLMNOONMLKJIHHHFDCBA@@ABCDEFGHIJKLMNOONMLKJIHHHFDCBA@@ABCDEFGHIJKLMNOONMLKJIHHHFDCBA@@ABCDEFGHIJKLMNOONMLKJIHHHFDCBA@@ABCDEFGHIJKLMNOONMLKJIHHHFDCBA@@ABCDEFGHIJKLMNOONMLKJIHHHFDCBA@@ABCDEFGHIJKLMNOONMLKJIHHHFDCBA@@ABCDEFGHIJKLMNOONMLKJIHHHFDCBA@@ABCDEFGHIJKLMNOONMLKJIHHHFDCBA@@ABCDEFGHIJKLMNOONMLKJIHHHFDCBA@@ABCDEFGHIJKLMNOONMLKJIHHHFDCBA@@ABCDEFGHIJKLMNOONMLKJIHHHFDCBA@@ABCDEFGHIJKLMNOONMLKJIHHHFDCBA@@ABCDEFGHIJKLMNOONMLKJIHHHFDCBA@@ABCDEFGHIJKLMNOONMLKJIHHHFDCBA@@ABCDEFGHIJKLMNOONMLKJIHHHFDCBA@@ABCDEFGHIJKLMNOONMLKJIHHHFDCBA@@ABCDEFGHIJKLMNOONMLKJIHHHFDCBA@@ABCDEFGHIJKLMNOONMLKJIHHHFDCBA@@ABCDEFGHIJKLMNOONMLKJIHHHFDCBA@@ABCDEFGHIJKLMNOONMLKJIHHHFDCBA@ \ No newline at end of file diff --git a/data/trade/unk_8261430.bin b/data/trade/unk_8261430.bin new file mode 100644 index 000000000..e4168474a --- /dev/null +++ b/data/trade/unk_8261430.bin @@ -0,0 +1 @@ +P Q R S T U V W X Y Z [ \ ] ^ _ ^ ] \ [ Z Y X W V V U T S R Q P P Q R S T U V W X Y Z [ \ ] ^ _ ^ ] \ [ Z Y X W V V U T S R Q P P Q R S T U V W X Y Z [ \ ] ^ _ ^ ] \ [ Z Y X W V V U T S R Q P P Q R S T U V W X Y Z [ \ ] ^ _ ^ ] \ [ Z Y X W V V U T S R Q P P Q R S T U V W X Y Z [ \ ] ^ _ ^ ] \ [ Z Y X W V V U T S R Q P P Q R S T U V W X Y Z [ \ ] ^ _ ^ ] \ [ Z Y X W V V U T S R Q P P Q R S T U V W X Y Z [ \ ] ^ _ ^ ] \ [ Z Y X W V V U T S R Q P P Q R S T U V W X Y Z [ \ ] ^ _ ^ ] \ [ Z Y X W V V U T S R Q P P Q R S T U V W X Y Z [ \ ] ^ _ ^ ] \ [ Z Y X W V V U T S R Q P P Q R S T U V W X Y Z [ \ ] ^ _ ^ ] \ [ Z Y X W V V U T S R Q P P Q R S T U V W X Y Z [ \ ] ^ _ ^ ] \ [ Z Y X W V V U T S R Q P P Q R S T U V W X Y Z [ \ ] ^ _ ^ ] \ [ Z Y X W V V U T S R Q P P Q R S T U V W X Y Z [ \ ] ^ _ ^ ] \ [ Z Y X W V V U T S R Q P P Q R S T U V W X Y Z [ \ ] ^ _ ^ ] \ [ Z Y X W V V U T S R Q P P Q R S T U V W X Y Z [ \ ] ^ _ ^ ] \ [ Z Y X W V V U T S R Q P P Q R S T U V W X Y Z [ \ ] ^ _ ^ ] \ [ Z Y X W V V U T S R Q P P Q R S T U V W X Y Z [ \ ] ^ _ ^ ] \ [ Z Y X W V V U T S R Q P P Q R S T U V W X Y Z [ \ ] ^ _ ^ ] \ [ Z Y X W V V U T S R Q P P Q R S T U V W X Y Z [ \ ] ^ _ ^ ] \ [ Z Y X W V V U T S R Q P P Q R S T U V W X Y Z [ \ ] ^ _ ^ ] \ [ Z Y X W V V U T S R Q P P Q R S T U V W X Y Z [ \ ] ^ _ ^ ] \ [ Z Y X W V V U T S R Q P P Q R S T U V W X Y Z [ \ ] ^ _ ^ ] \ [ Z Y X W V V U T S R Q P P Q R S T U V W X Y Z [ \ ] ^ _ ^ ] \ [ Z Y X W V V U T S R Q P P Q R S T U V W X Y Z [ \ ] ^ _ ^ ] \ [ Z Y X W V V U T S R Q P P Q R S T U V W X Y Z [ \ ] ^ _ ^ ] \ [ Z Y X W V V U T S R Q P P Q R S T U V W X Y Z [ \ ] ^ _ ^ ] \ [ Z Y X W V V U T S R Q P P Q R S T U V W X Y Z [ \ ] ^ _ ^ ] \ [ Z Y X W V V U T S R Q P P Q R S T U V W X Y Z [ \ ] ^ _ ^ ] \ [ Z Y X W V V U T S R Q P P Q R S T U V W X Y Z [ \ ] ^ _ ^ ] \ [ Z Y X W V V U T S R Q P P Q R S T U V W X Y Z [ \ ] ^ _ ^ ] \ [ Z Y X W V V U T S R Q P P Q R S T U V W X Y Z [ \ ] ^ _ ^ ] \ [ Z Y X W V V U T S R Q P P Q R S T U V W X Y Z [ \ ] ^ _ ^ ] \ [ Z Y X W V V U T S R Q P \ No newline at end of file diff --git a/data/trade/unk_8261CE0.pal b/data/trade/unk_8261CE0.pal new file mode 100644 index 000000000..40426b71f --- /dev/null +++ b/data/trade/unk_8261CE0.pal @@ -0,0 +1,19 @@ +JASC-PAL +0100 +16 +0 0 0 +74 74 74 +255 0 0 +0 255 0 +0 0 255 +255 255 0 +0 255 255 +255 0 255 +213 213 205 +0 0 0 +0 0 0 +0 0 0 +255 255 255 +0 0 0 +115 115 115 +255 255 255 diff --git a/data/trade/unk_826207C.png b/data/trade/unk_826207C.png new file mode 100644 index 000000000..01e26de43 Binary files /dev/null and b/data/trade/unk_826207C.png differ diff --git a/data/trade/unk_826407C.bin b/data/trade/unk_826407C.bin new file mode 100644 index 000000000..aad25ed83 Binary files /dev/null and b/data/trade/unk_826407C.bin differ diff --git a/data/trade/unk_826499C.pal b/data/trade/unk_826499C.pal new file mode 100644 index 000000000..64a442293 --- /dev/null +++ b/data/trade/unk_826499C.pal @@ -0,0 +1,19 @@ +JASC-PAL +0100 +16 +0 0 0 +255 255 255 +222 230 238 +189 205 230 +156 180 222 +131 131 139 +98 98 123 +65 74 106 +41 49 90 +230 230 230 +205 205 205 +180 180 180 +156 156 156 +213 180 106 +205 156 82 +49 255 106 diff --git a/data/trade/unk_8264A1C.png b/data/trade/unk_8264A1C.png new file mode 100644 index 000000000..4197d701c Binary files /dev/null and b/data/trade/unk_8264A1C.png differ diff --git a/data/trade/unk_8264C1C.png b/data/trade/unk_8264C1C.png new file mode 100644 index 000000000..3dbbf845c Binary files /dev/null and b/data/trade/unk_8264C1C.png differ diff --git a/data/trade/unk_8264E1C.png b/data/trade/unk_8264E1C.png new file mode 100644 index 000000000..48b16f034 Binary files /dev/null and b/data/trade/unk_8264E1C.png differ diff --git a/data/trade/unk_826501C.png b/data/trade/unk_826501C.png new file mode 100644 index 000000000..a900dea3b Binary files /dev/null and b/data/trade/unk_826501C.png differ diff --git a/data/trade/unk_826601C.bin b/data/trade/unk_826601C.bin new file mode 100644 index 000000000..8846e2d7d Binary files /dev/null and b/data/trade/unk_826601C.bin differ diff --git a/data/trade/unk_826701C.png b/data/trade/unk_826701C.png new file mode 100644 index 000000000..91123d014 Binary files /dev/null and b/data/trade/unk_826701C.png differ diff --git a/data/trade/unk_826985C.bin b/data/trade/unk_826985C.bin new file mode 100644 index 000000000..19bab962b Binary files /dev/null and b/data/trade/unk_826985C.bin differ diff --git a/data/trade/unk_826995C.bin b/data/trade/unk_826995C.bin new file mode 100644 index 000000000..53a511321 Binary files /dev/null and b/data/trade/unk_826995C.bin differ diff --git a/data/trade/unk_8269A5C.bin b/data/trade/unk_8269A5C.bin new file mode 100644 index 000000000..52f6232fc Binary files /dev/null and b/data/trade/unk_8269A5C.bin differ diff --git a/data/trade/unk_826AA5C.bin b/data/trade/unk_826AA5C.bin new file mode 100644 index 000000000..80705aef5 Binary files /dev/null and b/data/trade/unk_826AA5C.bin differ diff --git a/data/trade/unk_826BB5C.pal b/data/trade/unk_826BB5C.pal new file mode 100644 index 000000000..a5da8a543 --- /dev/null +++ b/data/trade/unk_826BB5C.pal @@ -0,0 +1,259 @@ +JASC-PAL +0100 +256 +0 0 0 +255 255 255 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +172 172 172 +255 255 255 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +172 172 172 +255 255 255 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +172 172 172 +255 255 255 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +172 172 172 +255 255 255 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +172 172 172 +255 255 255 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +172 172 172 +255 255 255 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +172 172 172 +255 255 255 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +172 172 172 +255 255 255 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +172 172 172 +255 255 255 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +172 172 172 +255 255 255 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +172 172 172 +255 255 255 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +172 172 172 +255 255 255 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +172 172 172 +255 255 255 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +172 172 172 +255 255 255 +0 0 0 +255 255 255 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +172 172 172 diff --git a/data/trade/unk_826BD5C.pal b/data/trade/unk_826BD5C.pal new file mode 100644 index 000000000..218390aa2 --- /dev/null +++ b/data/trade/unk_826BD5C.pal @@ -0,0 +1,259 @@ +JASC-PAL +0100 +256 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +255 255 255 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +255 255 255 +172 172 172 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +255 255 255 +172 172 172 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +255 255 255 +172 172 172 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +255 255 255 +172 172 172 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +255 255 255 +172 172 172 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +255 255 255 +172 172 172 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +255 255 255 +172 172 172 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +255 255 255 +172 172 172 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +255 255 255 +172 172 172 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +255 255 255 +172 172 172 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +255 255 255 +172 172 172 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +255 255 255 +172 172 172 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +255 255 255 +172 172 172 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +255 255 255 +172 172 172 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +172 172 172 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +255 255 255 diff --git a/data/trade/unk_826BF5C.pal b/data/trade/unk_826BF5C.pal new file mode 100644 index 000000000..4b0812f09 --- /dev/null +++ b/data/trade/unk_826BF5C.pal @@ -0,0 +1,19 @@ +JASC-PAL +0100 +16 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 diff --git a/data/trade/unk_826C60C.bin b/data/trade/unk_826C60C.bin new file mode 100644 index 000000000..4ce5d18b8 Binary files /dev/null and b/data/trade/unk_826C60C.bin differ diff --git a/graphics/battle/unk_8248400.pal b/graphics/battle/unk_8248400.pal new file mode 100644 index 000000000..cc00b3dc2 --- /dev/null +++ b/graphics/battle/unk_8248400.pal @@ -0,0 +1,51 @@ +JASC-PAL +0100 +48 +0 0 0 +230 255 230 +164 246 123 +131 230 123 +197 255 148 +230 255 189 +156 238 115 +197 246 189 +172 238 164 +255 0 255 +238 246 246 +189 222 246 +205 230 246 +213 230 246 +222 238 246 +222 246 222 +0 0 0 +230 255 230 +148 230 106 +115 213 106 +172 246 115 +189 255 148 +139 222 98 +189 238 180 +164 230 156 +255 0 255 +238 246 246 +189 222 246 +205 230 246 +213 230 246 +222 238 246 +222 246 222 +0 0 0 +123 205 115 +164 222 148 +82 164 57 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 diff --git a/graphics/battle/unk_824844C.png b/graphics/battle/unk_824844C.png new file mode 100644 index 000000000..3c4a3f733 Binary files /dev/null and b/graphics/battle/unk_824844C.png differ diff --git a/graphics/battle/unk_82489A8.bin b/graphics/battle/unk_82489A8.bin new file mode 100644 index 000000000..e0da76dc2 Binary files /dev/null and b/graphics/battle/unk_82489A8.bin differ diff --git a/graphics/battle/unk_8248C68.png b/graphics/battle/unk_8248C68.png new file mode 100644 index 000000000..e927c982c Binary files /dev/null and b/graphics/battle/unk_8248C68.png differ diff --git a/graphics/battle/unk_8248F58.bin b/graphics/battle/unk_8248F58.bin new file mode 100644 index 000000000..03e4194fc Binary files /dev/null and b/graphics/battle/unk_8248F58.bin differ diff --git a/graphics/battle/unk_8249074.pal b/graphics/battle/unk_8249074.pal new file mode 100644 index 000000000..c390b8c44 --- /dev/null +++ b/graphics/battle/unk_8249074.pal @@ -0,0 +1,51 @@ +JASC-PAL +0100 +48 +0 0 0 +205 255 189 +148 230 106 +115 213 106 +180 238 131 +222 246 172 +139 222 98 +180 230 172 +156 222 148 +255 0 255 +197 255 180 +106 197 74 +131 213 98 +156 230 123 +172 238 148 +180 246 172 +0 0 0 +205 255 189 +139 222 98 +98 197 98 +164 230 131 +222 246 172 +123 213 90 +180 230 172 +156 222 148 +255 0 255 +197 255 180 +106 197 74 +123 205 98 +148 222 123 +172 238 148 +172 246 172 +0 0 0 +115 213 82 +98 180 90 +90 148 74 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 diff --git a/graphics/battle/unk_82490C4.png b/graphics/battle/unk_82490C4.png new file mode 100644 index 000000000..3c4a3f733 Binary files /dev/null and b/graphics/battle/unk_82490C4.png differ diff --git a/graphics/battle/unk_8249620.bin b/graphics/battle/unk_8249620.bin new file mode 100644 index 000000000..2b2634a14 Binary files /dev/null and b/graphics/battle/unk_8249620.bin differ diff --git a/graphics/battle/unk_82498DC.png b/graphics/battle/unk_82498DC.png new file mode 100644 index 000000000..a1f3cca52 Binary files /dev/null and b/graphics/battle/unk_82498DC.png differ diff --git a/graphics/battle/unk_8249E10.bin b/graphics/battle/unk_8249E10.bin new file mode 100644 index 000000000..5cb0de868 Binary files /dev/null and b/graphics/battle/unk_8249E10.bin differ diff --git a/graphics/battle/unk_8249F98.pal b/graphics/battle/unk_8249F98.pal new file mode 100644 index 000000000..dafc3eb7f --- /dev/null +++ b/graphics/battle/unk_8249F98.pal @@ -0,0 +1,51 @@ +JASC-PAL +0100 +48 +0 0 0 +255 255 238 +246 246 148 +238 230 123 +230 222 98 +238 238 156 +246 246 189 +255 255 246 +255 255 197 +230 230 131 +255 255 255 +189 222 246 +205 230 246 +222 238 246 +230 246 246 +246 246 222 +0 0 0 +255 255 238 +238 238 139 +230 222 139 +222 213 90 +238 230 156 +238 238 189 +255 255 246 +255 246 197 +230 222 106 +255 255 255 +189 222 246 +205 230 246 +222 238 246 +230 246 246 +246 246 222 +0 0 0 +197 197 74 +164 156 32 +222 222 131 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 diff --git a/graphics/battle/unk_8249FE4.png b/graphics/battle/unk_8249FE4.png new file mode 100644 index 000000000..b96c73fbd Binary files /dev/null and b/graphics/battle/unk_8249FE4.png differ diff --git a/graphics/battle/unk_824A37C.bin b/graphics/battle/unk_824A37C.bin new file mode 100644 index 000000000..365e1474f Binary files /dev/null and b/graphics/battle/unk_824A37C.bin differ diff --git a/graphics/battle/unk_824A618.png b/graphics/battle/unk_824A618.png new file mode 100644 index 000000000..cc9a3ebef Binary files /dev/null and b/graphics/battle/unk_824A618.png differ diff --git a/graphics/battle/unk_824A844.bin b/graphics/battle/unk_824A844.bin new file mode 100644 index 000000000..e4afe99ae Binary files /dev/null and b/graphics/battle/unk_824A844.bin differ diff --git a/graphics/battle/unk_824A940.pal b/graphics/battle/unk_824A940.pal new file mode 100644 index 000000000..5fa95cf21 --- /dev/null +++ b/graphics/battle/unk_824A940.pal @@ -0,0 +1,51 @@ +JASC-PAL +0100 +48 +0 0 0 +197 230 255 +139 156 213 +148 197 246 +172 205 255 +139 180 222 +189 213 255 +148 189 230 +205 222 255 +197 230 255 +205 230 255 +148 164 238 +156 189 238 +172 205 238 +189 213 246 +197 222 255 +0 0 0 +197 230 255 +131 139 197 +148 197 246 +172 205 255 +131 164 213 +189 213 255 +148 180 222 +205 222 255 +197 230 255 +205 230 255 +148 164 238 +156 189 238 +172 205 238 +189 213 246 +197 222 255 +0 0 0 +98 164 230 +131 197 255 +172 238 255 +255 255 255 +205 255 255 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +98 98 172 +131 131 230 +172 172 255 +255 255 255 diff --git a/graphics/battle/unk_824A990.png b/graphics/battle/unk_824A990.png new file mode 100644 index 000000000..f8f483342 Binary files /dev/null and b/graphics/battle/unk_824A990.png differ diff --git a/graphics/battle/unk_824ACD0.bin b/graphics/battle/unk_824ACD0.bin new file mode 100644 index 000000000..29843f17d Binary files /dev/null and b/graphics/battle/unk_824ACD0.bin differ diff --git a/graphics/battle/unk_824AF70.png b/graphics/battle/unk_824AF70.png new file mode 100644 index 000000000..9d8af70b8 Binary files /dev/null and b/graphics/battle/unk_824AF70.png differ diff --git a/graphics/battle/unk_824B0DC.bin b/graphics/battle/unk_824B0DC.bin new file mode 100644 index 000000000..9029c7c9d Binary files /dev/null and b/graphics/battle/unk_824B0DC.bin differ diff --git a/graphics/battle/unk_824B19C.pal b/graphics/battle/unk_824B19C.pal new file mode 100644 index 000000000..d31dce658 --- /dev/null +++ b/graphics/battle/unk_824B19C.pal @@ -0,0 +1,51 @@ +JASC-PAL +0100 +48 +0 0 0 +246 255 255 +131 180 238 +123 164 238 +139 205 246 +205 230 246 +230 246 255 +180 222 246 +156 213 255 +255 0 255 +255 255 255 +205 222 238 +222 238 238 +230 246 246 +246 246 255 +246 246 255 +0 0 0 +246 255 255 +106 189 238 +106 156 230 +131 197 238 +205 230 246 +230 246 255 +180 222 246 +156 213 255 +255 0 255 +255 255 255 +205 222 230 +213 230 238 +230 238 246 +246 255 255 +246 246 255 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +246 255 255 +180 230 255 +139 205 246 +106 172 238 +49 148 197 +16 98 180 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 diff --git a/graphics/battle/unk_824B1EC.png b/graphics/battle/unk_824B1EC.png new file mode 100644 index 000000000..91819a570 Binary files /dev/null and b/graphics/battle/unk_824B1EC.png differ diff --git a/graphics/battle/unk_824B608.bin b/graphics/battle/unk_824B608.bin new file mode 100644 index 000000000..0ee05129a Binary files /dev/null and b/graphics/battle/unk_824B608.bin differ diff --git a/graphics/battle/unk_824B8A8.png b/graphics/battle/unk_824B8A8.png new file mode 100644 index 000000000..f8323d44f Binary files /dev/null and b/graphics/battle/unk_824B8A8.png differ diff --git a/graphics/battle/unk_824BBE0.bin b/graphics/battle/unk_824BBE0.bin new file mode 100644 index 000000000..b6661cd3c Binary files /dev/null and b/graphics/battle/unk_824BBE0.bin differ diff --git a/graphics/battle/unk_824BCE0.pal b/graphics/battle/unk_824BCE0.pal new file mode 100644 index 000000000..041560cf4 --- /dev/null +++ b/graphics/battle/unk_824BCE0.pal @@ -0,0 +1,51 @@ +JASC-PAL +0100 +48 +0 0 0 +255 255 255 +115 189 246 +189 255 115 +205 255 156 +131 205 255 +222 255 205 +164 238 164 +246 255 238 +156 230 255 +255 255 255 +205 230 246 +213 230 246 +230 238 246 +238 246 255 +246 246 246 +0 0 0 +255 255 255 +98 164 230 +164 246 98 +197 255 139 +115 189 238 +205 255 197 +148 230 156 +230 255 222 +139 213 255 +255 255 255 +205 230 246 +213 230 246 +222 238 246 +230 238 246 +246 246 246 +0 0 0 +205 246 255 +148 213 238 +123 189 230 +90 148 222 +49 106 189 +16 74 156 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 diff --git a/graphics/battle/unk_824BD38.png b/graphics/battle/unk_824BD38.png new file mode 100644 index 000000000..c6a1d3c07 Binary files /dev/null and b/graphics/battle/unk_824BD38.png differ diff --git a/graphics/battle/unk_824C07C.bin b/graphics/battle/unk_824C07C.bin new file mode 100644 index 000000000..d4c3dedcb Binary files /dev/null and b/graphics/battle/unk_824C07C.bin differ diff --git a/graphics/battle/unk_824C314.png b/graphics/battle/unk_824C314.png new file mode 100644 index 000000000..8ebb6f162 Binary files /dev/null and b/graphics/battle/unk_824C314.png differ diff --git a/graphics/battle/unk_824C520.bin b/graphics/battle/unk_824C520.bin new file mode 100644 index 000000000..e012f647e Binary files /dev/null and b/graphics/battle/unk_824C520.bin differ diff --git a/graphics/battle/unk_824C5D8.pal b/graphics/battle/unk_824C5D8.pal new file mode 100644 index 000000000..bfe75be65 --- /dev/null +++ b/graphics/battle/unk_824C5D8.pal @@ -0,0 +1,51 @@ +JASC-PAL +0100 +48 +0 0 0 +255 255 255 +222 222 180 +197 189 148 +205 197 164 +246 246 213 +230 230 197 +230 230 230 +205 197 172 +222 222 213 +255 255 255 +222 230 230 +230 230 238 +230 238 238 +238 246 246 +246 246 255 +0 0 0 +255 255 255 +213 213 172 +189 172 139 +197 189 156 +238 238 205 +222 222 189 +230 230 230 +205 197 172 +222 222 213 +255 255 255 +222 230 230 +230 230 238 +230 238 238 +238 246 246 +246 246 255 +0 0 0 +131 98 90 +164 131 98 +197 156 106 +213 180 131 +230 213 156 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 diff --git a/graphics/battle/unk_824C624.png b/graphics/battle/unk_824C624.png new file mode 100644 index 000000000..90bc93e39 Binary files /dev/null and b/graphics/battle/unk_824C624.png differ diff --git a/graphics/battle/unk_824C958.bin b/graphics/battle/unk_824C958.bin new file mode 100644 index 000000000..16600f5f8 Binary files /dev/null and b/graphics/battle/unk_824C958.bin differ diff --git a/graphics/battle/unk_824CBF8.png b/graphics/battle/unk_824CBF8.png new file mode 100644 index 000000000..598697bdb Binary files /dev/null and b/graphics/battle/unk_824CBF8.png differ diff --git a/graphics/battle/unk_824CEC8.bin b/graphics/battle/unk_824CEC8.bin new file mode 100644 index 000000000..55c5730c0 Binary files /dev/null and b/graphics/battle/unk_824CEC8.bin differ diff --git a/graphics/battle/unk_824CF98.pal b/graphics/battle/unk_824CF98.pal new file mode 100644 index 000000000..f17a7bf9d --- /dev/null +++ b/graphics/battle/unk_824CF98.pal @@ -0,0 +1,51 @@ +JASC-PAL +0100 +48 +0 0 0 +197 172 106 +205 197 90 +156 131 98 +180 148 106 +180 164 106 +197 180 106 +255 0 255 +213 197 115 +230 222 106 +164 139 82 +205 180 106 +189 164 106 +180 156 98 +172 148 90 +189 156 106 +0 0 0 +197 172 106 +205 197 90 +148 123 82 +164 131 90 +172 156 90 +189 180 90 +255 0 255 +213 197 115 +230 222 106 +164 139 82 +197 172 106 +189 164 106 +180 156 98 +172 148 90 +189 156 106 +0 0 0 +106 74 65 +148 115 82 +180 139 90 +213 180 131 +230 213 156 +0 0 0 +180 139 90 +180 139 90 +180 139 90 +213 180 131 +106 74 65 +148 115 82 +0 0 0 +0 0 0 +0 0 0 diff --git a/graphics/battle/unk_824CFEC.png b/graphics/battle/unk_824CFEC.png new file mode 100644 index 000000000..87969aafc Binary files /dev/null and b/graphics/battle/unk_824CFEC.png differ diff --git a/graphics/battle/unk_824D418.bin b/graphics/battle/unk_824D418.bin new file mode 100644 index 000000000..255f2953d Binary files /dev/null and b/graphics/battle/unk_824D418.bin differ diff --git a/graphics/battle/unk_824D6B8.png b/graphics/battle/unk_824D6B8.png new file mode 100644 index 000000000..799facfeb Binary files /dev/null and b/graphics/battle/unk_824D6B8.png differ diff --git a/graphics/battle/unk_824DC98.bin b/graphics/battle/unk_824DC98.bin new file mode 100644 index 000000000..ad7724c67 Binary files /dev/null and b/graphics/battle/unk_824DC98.bin differ diff --git a/graphics/battle/unk_824DDF0.pal b/graphics/battle/unk_824DDF0.pal new file mode 100644 index 000000000..16421567f --- /dev/null +++ b/graphics/battle/unk_824DDF0.pal @@ -0,0 +1,51 @@ +JASC-PAL +0100 +48 +0 0 0 +246 255 255 +255 255 255 +230 230 230 +230 230 230 +246 246 246 +230 238 238 +238 238 238 +238 238 238 +246 255 255 +255 255 255 +255 255 180 +255 255 197 +255 255 222 +255 255 238 +246 246 246 +0 0 0 +246 255 255 +255 255 255 +213 213 213 +230 230 230 +238 238 238 +230 238 238 +222 230 222 +238 238 238 +246 255 255 +255 255 255 +255 255 180 +255 255 197 +255 255 222 +255 255 238 +246 246 246 +0 0 0 +164 213 255 +238 255 255 +180 230 255 +205 238 255 +222 246 255 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 diff --git a/graphics/battle/unk_824DE34.png b/graphics/battle/unk_824DE34.png new file mode 100644 index 000000000..b4ec20536 Binary files /dev/null and b/graphics/battle/unk_824DE34.png differ diff --git a/graphics/battle/unk_824E16C.bin b/graphics/battle/unk_824E16C.bin new file mode 100644 index 000000000..0710427da Binary files /dev/null and b/graphics/battle/unk_824E16C.bin differ diff --git a/graphics/battle/unk_824E410.png b/graphics/battle/unk_824E410.png new file mode 100644 index 000000000..ae71f8f2a Binary files /dev/null and b/graphics/battle/unk_824E410.png differ diff --git a/graphics/battle/unk_824E490.bin b/graphics/battle/unk_824E490.bin new file mode 100644 index 000000000..aba49c6f9 Binary files /dev/null and b/graphics/battle/unk_824E490.bin differ diff --git a/graphics/battle/unk_824E528.pal b/graphics/battle/unk_824E528.pal new file mode 100644 index 000000000..baa0fdf4f --- /dev/null +++ b/graphics/battle/unk_824E528.pal @@ -0,0 +1,51 @@ +JASC-PAL +0100 +48 +0 0 0 +246 255 255 +255 255 255 +230 230 230 +230 230 230 +246 246 246 +230 238 238 +238 238 238 +238 238 238 +246 255 255 +255 255 255 +213 213 213 +230 230 230 +238 238 238 +246 246 246 +246 246 246 +0 0 0 +246 255 255 +255 255 255 +213 213 213 +230 230 230 +238 238 246 +230 238 238 +222 230 222 +238 238 238 +238 246 246 +255 255 255 +213 213 213 +230 230 230 +238 238 238 +246 246 246 +246 246 246 +0 0 0 +164 213 255 +238 255 255 +180 230 255 +205 238 255 +222 246 255 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 diff --git a/graphics/battle/unk_824E56C.pal b/graphics/battle/unk_824E56C.pal new file mode 100644 index 000000000..187054476 --- /dev/null +++ b/graphics/battle/unk_824E56C.pal @@ -0,0 +1,51 @@ +JASC-PAL +0100 +48 +0 0 0 +246 255 255 +255 255 255 +230 230 230 +230 230 230 +246 246 246 +230 238 238 +238 238 238 +238 238 238 +246 255 255 +255 255 255 +222 222 189 +230 230 205 +238 238 222 +246 246 238 +246 246 246 +0 0 0 +246 255 255 +255 255 255 +213 213 213 +230 230 230 +238 238 246 +230 238 238 +222 230 222 +238 238 238 +246 255 255 +255 255 255 +213 213 213 +230 230 230 +238 238 238 +246 246 246 +246 246 246 +0 0 0 +131 197 255 +213 255 255 +164 222 255 +189 230 255 +197 246 255 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 diff --git a/graphics/battle/unk_824E5B8.pal b/graphics/battle/unk_824E5B8.pal new file mode 100644 index 000000000..581b6d596 --- /dev/null +++ b/graphics/battle/unk_824E5B8.pal @@ -0,0 +1,51 @@ +JASC-PAL +0100 +48 +0 0 0 +246 255 255 +255 255 255 +230 230 230 +230 230 230 +246 246 246 +230 238 238 +238 238 238 +238 238 238 +246 255 255 +255 255 255 +222 222 189 +230 230 205 +238 238 222 +246 246 238 +246 246 246 +0 0 0 +246 255 255 +255 255 255 +213 213 213 +230 230 230 +238 238 246 +230 238 238 +222 230 222 +238 238 238 +246 255 255 +255 255 255 +213 213 213 +230 230 230 +238 238 238 +246 246 246 +246 246 246 +0 0 0 +255 222 115 +255 255 213 +255 230 156 +255 238 172 +255 246 189 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 diff --git a/graphics/battle/unk_824E604.pal b/graphics/battle/unk_824E604.pal new file mode 100644 index 000000000..a1bc6b60c --- /dev/null +++ b/graphics/battle/unk_824E604.pal @@ -0,0 +1,51 @@ +JASC-PAL +0100 +48 +0 0 0 +238 238 238 +255 255 255 +213 213 213 +222 222 230 +238 238 246 +222 230 230 +222 230 222 +230 230 238 +246 246 255 +238 238 238 +189 189 189 +197 197 197 +205 205 205 +222 222 222 +230 230 230 +0 0 0 +230 238 238 +255 255 255 +205 205 205 +213 213 222 +230 238 238 +222 230 230 +222 230 222 +230 230 238 +246 246 255 +238 238 238 +189 189 189 +197 197 197 +205 205 205 +222 222 222 +230 230 230 +0 0 0 +115 180 255 +197 246 255 +148 213 255 +172 222 255 +180 238 255 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 diff --git a/graphics/battle/unk_824E650.pal b/graphics/battle/unk_824E650.pal new file mode 100644 index 000000000..597647872 --- /dev/null +++ b/graphics/battle/unk_824E650.pal @@ -0,0 +1,51 @@ +JASC-PAL +0100 +48 +0 0 0 +238 238 238 +255 255 255 +213 213 213 +222 222 230 +238 238 246 +222 230 230 +222 230 222 +230 230 238 +246 246 255 +238 238 238 +205 172 205 +213 189 213 +222 205 222 +238 222 238 +230 230 230 +0 0 0 +230 238 238 +255 255 255 +205 205 205 +213 213 222 +230 238 238 +222 230 230 +222 230 222 +230 230 238 +246 246 255 +238 238 238 +189 189 189 +197 197 197 +205 205 205 +222 222 222 +230 230 230 +0 0 0 +115 180 255 +197 246 255 +148 213 255 +172 222 255 +180 238 255 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 diff --git a/graphics/battle/unk_824E6A4.pal b/graphics/battle/unk_824E6A4.pal new file mode 100644 index 000000000..e63bad165 --- /dev/null +++ b/graphics/battle/unk_824E6A4.pal @@ -0,0 +1,51 @@ +JASC-PAL +0100 +48 +0 0 0 +238 255 255 +230 246 255 +156 189 230 +172 197 230 +205 230 238 +189 213 238 +189 222 230 +222 238 246 +213 238 246 +246 246 255 +222 197 148 +230 213 180 +238 230 205 +246 238 230 +230 246 246 +0 0 0 +238 255 255 +230 246 255 +139 172 213 +172 197 230 +197 222 230 +189 213 238 +164 197 222 +222 238 246 +213 230 238 +246 246 255 +222 197 148 +230 213 180 +238 230 205 +246 238 230 +230 246 246 +0 0 0 +115 205 255 +230 255 255 +148 213 255 +164 222 255 +205 238 255 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 diff --git a/graphics/battle/unk_824E6F0.pal b/graphics/battle/unk_824E6F0.pal new file mode 100644 index 000000000..21196b3e8 --- /dev/null +++ b/graphics/battle/unk_824E6F0.pal @@ -0,0 +1,51 @@ +JASC-PAL +0100 +48 +0 0 0 +246 246 246 +246 246 238 +213 205 156 +222 213 164 +238 230 197 +230 222 189 +222 213 172 +238 230 213 +238 238 205 +246 246 255 +222 197 148 +230 213 180 +238 230 205 +246 238 230 +238 238 238 +0 0 0 +246 246 246 +238 238 230 +197 189 139 +205 197 164 +230 222 189 +213 213 189 +213 205 164 +222 222 213 +230 230 205 +246 246 255 +222 197 148 +230 213 180 +238 230 205 +246 238 230 +238 238 238 +0 0 0 +82 238 164 +222 255 230 +148 238 164 +172 246 189 +197 246 205 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 diff --git a/graphics/battle/unk_824E740.pal b/graphics/battle/unk_824E740.pal new file mode 100644 index 000000000..8ea1eeae7 --- /dev/null +++ b/graphics/battle/unk_824E740.pal @@ -0,0 +1,51 @@ +JASC-PAL +0100 +48 +0 0 0 +255 238 255 +238 230 246 +205 156 222 +213 172 230 +222 189 238 +222 197 238 +213 172 230 +230 213 246 +230 213 238 +246 246 255 +222 197 148 +230 213 180 +238 230 205 +246 238 230 +238 230 255 +0 0 0 +255 238 255 +230 222 246 +189 139 205 +213 172 230 +213 180 230 +222 189 238 +197 156 213 +230 205 246 +222 197 238 +246 246 255 +222 197 148 +230 213 180 +238 230 205 +246 238 230 +238 230 255 +0 0 0 +255 213 106 +255 255 230 +255 230 148 +255 238 164 +255 255 189 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 diff --git a/graphics/battle/unk_824E78C.pal b/graphics/battle/unk_824E78C.pal new file mode 100644 index 000000000..c5fb745cf --- /dev/null +++ b/graphics/battle/unk_824E78C.pal @@ -0,0 +1,51 @@ +JASC-PAL +0100 +48 +0 0 0 +238 246 238 +222 238 246 +123 197 172 +148 205 189 +189 230 213 +180 222 205 +148 213 189 +205 230 222 +205 230 230 +246 246 255 +222 197 148 +230 213 180 +238 230 205 +246 238 230 +222 238 246 +0 0 0 +238 246 238 +213 230 246 +106 180 156 +148 205 189 +180 213 205 +180 222 205 +139 197 180 +205 230 222 +197 222 222 +246 246 255 +222 197 148 +230 213 180 +238 230 205 +246 238 230 +222 238 246 +0 0 0 +131 197 255 +213 255 255 +164 222 255 +189 230 255 +197 246 255 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 diff --git a/graphics/battle/unk_824E7DC.pal b/graphics/battle/unk_824E7DC.pal new file mode 100644 index 000000000..9ce470c9f --- /dev/null +++ b/graphics/battle/unk_824E7DC.pal @@ -0,0 +1,51 @@ +JASC-PAL +0100 +48 +0 0 0 +246 246 255 +246 255 255 +213 205 205 +213 213 213 +238 238 238 +230 222 230 +230 222 222 +238 230 238 +238 246 246 +255 255 255 +197 172 230 +222 197 238 +238 222 246 +246 230 255 +238 238 238 +0 0 0 +246 246 255 +246 255 255 +213 205 205 +213 205 213 +238 238 238 +230 222 230 +230 222 222 +238 230 238 +238 246 246 +255 255 255 +197 172 230 +222 197 238 +238 222 246 +246 230 255 +238 238 238 +0 0 0 +131 197 255 +213 255 255 +164 222 255 +189 230 255 +197 246 255 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 diff --git a/graphics/battle/unk_824E81C.pal b/graphics/battle/unk_824E81C.pal new file mode 100644 index 000000000..b47dc0a8d --- /dev/null +++ b/graphics/battle/unk_824E81C.pal @@ -0,0 +1,51 @@ +JASC-PAL +0100 +48 +0 0 0 +230 255 230 +197 255 148 +238 238 172 +230 238 180 +180 238 131 +230 246 197 +205 238 148 +230 246 213 +189 246 139 +238 246 246 +189 222 246 +205 230 246 +213 230 246 +222 238 246 +222 246 222 +0 0 0 +230 255 230 +197 255 148 +238 238 172 +230 238 180 +180 238 131 +230 246 197 +205 238 148 +230 246 213 +189 246 139 +238 246 246 +189 222 246 +205 230 246 +213 230 246 +222 238 246 +222 246 222 +0 0 0 +156 213 255 +238 255 255 +180 230 255 +205 238 255 +222 246 255 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 diff --git a/graphics/battle/unk_824E858.png b/graphics/battle/unk_824E858.png new file mode 100644 index 000000000..b4ec20536 Binary files /dev/null and b/graphics/battle/unk_824E858.png differ diff --git a/graphics/battle/unk_824EB90.bin b/graphics/battle/unk_824EB90.bin new file mode 100644 index 000000000..0710427da Binary files /dev/null and b/graphics/battle/unk_824EB90.bin differ diff --git a/graphics/battle_interface/ball_display.png b/graphics/battle_interface/ball_display.png new file mode 100644 index 000000000..3072a91ae Binary files /dev/null and b/graphics/battle_interface/ball_display.png differ diff --git a/graphics/battle_interface/unk_826404C.png b/graphics/battle_interface/unk_826404C.png new file mode 100644 index 000000000..8672ac614 Binary files /dev/null and b/graphics/battle_interface/unk_826404C.png differ diff --git a/graphics/interface/unk_8D2FBB4.pal b/graphics/interface/unk_8D2FBB4.pal new file mode 100644 index 000000000..46860b414 --- /dev/null +++ b/graphics/interface/unk_8D2FBB4.pal @@ -0,0 +1,19 @@ +JASC-PAL +0100 +16 +238 222 0 +255 246 139 +255 148 0 +255 238 115 +238 0 0 +246 222 156 +32 32 32 +222 222 222 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 diff --git a/graphics/interface/unk_8E8362C.png b/graphics/interface/unk_8E8362C.png new file mode 100644 index 000000000..104c26c84 Binary files /dev/null and b/graphics/interface/unk_8E8362C.png differ diff --git a/graphics/interface/unk_8E83DBC.png b/graphics/interface/unk_8E83DBC.png new file mode 100644 index 000000000..2024de528 Binary files /dev/null and b/graphics/interface/unk_8E83DBC.png differ diff --git a/graphics/interface/unk_8E84560.pal b/graphics/interface/unk_8E84560.pal new file mode 100644 index 000000000..6c36252b6 --- /dev/null +++ b/graphics/interface/unk_8E84560.pal @@ -0,0 +1,19 @@ +JASC-PAL +0100 +16 +82 205 180 +255 246 180 +255 230 123 +238 205 98 +213 172 98 +65 74 106 +123 123 123 +90 90 90 +172 172 172 +164 123 65 +255 255 255 +222 106 0 +189 74 0 +131 41 0 +213 222 230 +230 238 246 diff --git a/graphics/trainers/palettes/emerald_red_back_pic.pal b/graphics/map_objects/0.pal similarity index 100% rename from graphics/trainers/palettes/emerald_red_back_pic.pal rename to graphics/map_objects/0.pal diff --git a/graphics/map_objects/000.png b/graphics/map_objects/000.png new file mode 100644 index 000000000..8b72a852f Binary files /dev/null and b/graphics/map_objects/000.png differ diff --git a/graphics/map_objects/001.png b/graphics/map_objects/001.png new file mode 100644 index 000000000..ee7d0a1d3 Binary files /dev/null and b/graphics/map_objects/001.png differ diff --git a/graphics/map_objects/002.png b/graphics/map_objects/002.png new file mode 100644 index 000000000..961bff7a8 Binary files /dev/null and b/graphics/map_objects/002.png differ diff --git a/graphics/map_objects/004.png b/graphics/map_objects/004.png new file mode 100644 index 000000000..a5ae8b3d1 Binary files /dev/null and b/graphics/map_objects/004.png differ diff --git a/graphics/map_objects/005.png b/graphics/map_objects/005.png new file mode 100644 index 000000000..66d53ea88 Binary files /dev/null and b/graphics/map_objects/005.png differ diff --git a/graphics/map_objects/006.png b/graphics/map_objects/006.png new file mode 100644 index 000000000..90b198edb Binary files /dev/null and b/graphics/map_objects/006.png differ diff --git a/graphics/map_objects/007.png b/graphics/map_objects/007.png new file mode 100644 index 000000000..c65b97a5c Binary files /dev/null and b/graphics/map_objects/007.png differ diff --git a/graphics/map_objects/008.png b/graphics/map_objects/008.png new file mode 100644 index 000000000..b1e1ede7a Binary files /dev/null and b/graphics/map_objects/008.png differ diff --git a/graphics/map_objects/009.png b/graphics/map_objects/009.png new file mode 100644 index 000000000..7246e388d Binary files /dev/null and b/graphics/map_objects/009.png differ diff --git a/graphics/map_objects/011.png b/graphics/map_objects/011.png new file mode 100644 index 000000000..61446035c Binary files /dev/null and b/graphics/map_objects/011.png differ diff --git a/graphics/map_objects/012.png b/graphics/map_objects/012.png new file mode 100644 index 000000000..c1cd5c574 Binary files /dev/null and b/graphics/map_objects/012.png differ diff --git a/graphics/map_objects/013.png b/graphics/map_objects/013.png new file mode 100644 index 000000000..f4140b8d0 Binary files /dev/null and b/graphics/map_objects/013.png differ diff --git a/graphics/map_objects/014.png b/graphics/map_objects/014.png new file mode 100644 index 000000000..b79967c4b Binary files /dev/null and b/graphics/map_objects/014.png differ diff --git a/graphics/map_objects/015.png b/graphics/map_objects/015.png new file mode 100644 index 000000000..6cc84665c Binary files /dev/null and b/graphics/map_objects/015.png differ diff --git a/graphics/map_objects/016.png b/graphics/map_objects/016.png new file mode 100644 index 000000000..e53418256 Binary files /dev/null and b/graphics/map_objects/016.png differ diff --git a/graphics/map_objects/017.png b/graphics/map_objects/017.png new file mode 100644 index 000000000..2ce6d6355 Binary files /dev/null and b/graphics/map_objects/017.png differ diff --git a/graphics/map_objects/018.png b/graphics/map_objects/018.png new file mode 100644 index 000000000..13f4ee1f2 Binary files /dev/null and b/graphics/map_objects/018.png differ diff --git a/graphics/map_objects/019.png b/graphics/map_objects/019.png new file mode 100644 index 000000000..749051218 Binary files /dev/null and b/graphics/map_objects/019.png differ diff --git a/graphics/map_objects/020.png b/graphics/map_objects/020.png new file mode 100644 index 000000000..dd33a7921 Binary files /dev/null and b/graphics/map_objects/020.png differ diff --git a/graphics/map_objects/021.png b/graphics/map_objects/021.png new file mode 100644 index 000000000..15eabb0b3 Binary files /dev/null and b/graphics/map_objects/021.png differ diff --git a/graphics/map_objects/022.png b/graphics/map_objects/022.png new file mode 100644 index 000000000..82d08630c Binary files /dev/null and b/graphics/map_objects/022.png differ diff --git a/graphics/map_objects/023.png b/graphics/map_objects/023.png new file mode 100644 index 000000000..b3922d5f8 Binary files /dev/null and b/graphics/map_objects/023.png differ diff --git a/graphics/map_objects/024.png b/graphics/map_objects/024.png new file mode 100644 index 000000000..20125262a Binary files /dev/null and b/graphics/map_objects/024.png differ diff --git a/graphics/map_objects/025.png b/graphics/map_objects/025.png new file mode 100644 index 000000000..d3c38275a Binary files /dev/null and b/graphics/map_objects/025.png differ diff --git a/graphics/map_objects/026.png b/graphics/map_objects/026.png new file mode 100644 index 000000000..44b8b5c50 Binary files /dev/null and b/graphics/map_objects/026.png differ diff --git a/graphics/map_objects/027.png b/graphics/map_objects/027.png new file mode 100644 index 000000000..b5ed884fd Binary files /dev/null and b/graphics/map_objects/027.png differ diff --git a/graphics/map_objects/028.png b/graphics/map_objects/028.png new file mode 100644 index 000000000..95d3c5e0f Binary files /dev/null and b/graphics/map_objects/028.png differ diff --git a/graphics/map_objects/029.png b/graphics/map_objects/029.png new file mode 100644 index 000000000..006b67036 Binary files /dev/null and b/graphics/map_objects/029.png differ diff --git a/graphics/map_objects/030.png b/graphics/map_objects/030.png new file mode 100644 index 000000000..1c2d8eb63 Binary files /dev/null and b/graphics/map_objects/030.png differ diff --git a/graphics/map_objects/031.png b/graphics/map_objects/031.png new file mode 100644 index 000000000..fc278b97e Binary files /dev/null and b/graphics/map_objects/031.png differ diff --git a/graphics/map_objects/032.png b/graphics/map_objects/032.png new file mode 100644 index 000000000..87d1e4ce4 Binary files /dev/null and b/graphics/map_objects/032.png differ diff --git a/graphics/map_objects/033.png b/graphics/map_objects/033.png new file mode 100644 index 000000000..f6913ed9b Binary files /dev/null and b/graphics/map_objects/033.png differ diff --git a/graphics/map_objects/034.png b/graphics/map_objects/034.png new file mode 100644 index 000000000..05a775388 Binary files /dev/null and b/graphics/map_objects/034.png differ diff --git a/graphics/map_objects/035.png b/graphics/map_objects/035.png new file mode 100644 index 000000000..a99ab0238 Binary files /dev/null and b/graphics/map_objects/035.png differ diff --git a/graphics/map_objects/036.png b/graphics/map_objects/036.png new file mode 100644 index 000000000..23fe7c6e3 Binary files /dev/null and b/graphics/map_objects/036.png differ diff --git a/graphics/map_objects/037.png b/graphics/map_objects/037.png new file mode 100644 index 000000000..c4f962acb Binary files /dev/null and b/graphics/map_objects/037.png differ diff --git a/graphics/map_objects/038.png b/graphics/map_objects/038.png new file mode 100644 index 000000000..b53913af7 Binary files /dev/null and b/graphics/map_objects/038.png differ diff --git a/graphics/map_objects/039.png b/graphics/map_objects/039.png new file mode 100644 index 000000000..45d4400d8 Binary files /dev/null and b/graphics/map_objects/039.png differ diff --git a/graphics/map_objects/040.png b/graphics/map_objects/040.png new file mode 100644 index 000000000..8bff4d72e Binary files /dev/null and b/graphics/map_objects/040.png differ diff --git a/graphics/map_objects/041.png b/graphics/map_objects/041.png new file mode 100644 index 000000000..df48acad0 Binary files /dev/null and b/graphics/map_objects/041.png differ diff --git a/graphics/map_objects/042.png b/graphics/map_objects/042.png new file mode 100644 index 000000000..63a47e95b Binary files /dev/null and b/graphics/map_objects/042.png differ diff --git a/graphics/map_objects/043.png b/graphics/map_objects/043.png new file mode 100644 index 000000000..ded67966a Binary files /dev/null and b/graphics/map_objects/043.png differ diff --git a/graphics/map_objects/044.png b/graphics/map_objects/044.png new file mode 100644 index 000000000..a76e9bd47 Binary files /dev/null and b/graphics/map_objects/044.png differ diff --git a/graphics/map_objects/045.png b/graphics/map_objects/045.png new file mode 100644 index 000000000..9e862173a Binary files /dev/null and b/graphics/map_objects/045.png differ diff --git a/graphics/map_objects/046.png b/graphics/map_objects/046.png new file mode 100644 index 000000000..2f7a5f796 Binary files /dev/null and b/graphics/map_objects/046.png differ diff --git a/graphics/map_objects/047.png b/graphics/map_objects/047.png new file mode 100644 index 000000000..361e028c4 Binary files /dev/null and b/graphics/map_objects/047.png differ diff --git a/graphics/map_objects/048.png b/graphics/map_objects/048.png new file mode 100644 index 000000000..20a4e3a15 Binary files /dev/null and b/graphics/map_objects/048.png differ diff --git a/graphics/map_objects/049.png b/graphics/map_objects/049.png new file mode 100644 index 000000000..07222b9ba Binary files /dev/null and b/graphics/map_objects/049.png differ diff --git a/graphics/map_objects/050.png b/graphics/map_objects/050.png new file mode 100644 index 000000000..8c3817c82 Binary files /dev/null and b/graphics/map_objects/050.png differ diff --git a/graphics/map_objects/051.png b/graphics/map_objects/051.png new file mode 100644 index 000000000..358a4dd1b Binary files /dev/null and b/graphics/map_objects/051.png differ diff --git a/graphics/map_objects/052.png b/graphics/map_objects/052.png new file mode 100644 index 000000000..95089c7ee Binary files /dev/null and b/graphics/map_objects/052.png differ diff --git a/graphics/map_objects/053.png b/graphics/map_objects/053.png new file mode 100644 index 000000000..6671943dd Binary files /dev/null and b/graphics/map_objects/053.png differ diff --git a/graphics/map_objects/054.png b/graphics/map_objects/054.png new file mode 100644 index 000000000..7717ce43b Binary files /dev/null and b/graphics/map_objects/054.png differ diff --git a/graphics/map_objects/055.png b/graphics/map_objects/055.png new file mode 100644 index 000000000..b85011c3c Binary files /dev/null and b/graphics/map_objects/055.png differ diff --git a/graphics/map_objects/056.png b/graphics/map_objects/056.png new file mode 100644 index 000000000..7c4d443a2 Binary files /dev/null and b/graphics/map_objects/056.png differ diff --git a/graphics/map_objects/057.png b/graphics/map_objects/057.png new file mode 100644 index 000000000..8961c0765 Binary files /dev/null and b/graphics/map_objects/057.png differ diff --git a/graphics/map_objects/058.png b/graphics/map_objects/058.png new file mode 100644 index 000000000..f6925577d Binary files /dev/null and b/graphics/map_objects/058.png differ diff --git a/graphics/map_objects/059.png b/graphics/map_objects/059.png new file mode 100644 index 000000000..a251297b6 Binary files /dev/null and b/graphics/map_objects/059.png differ diff --git a/graphics/map_objects/060.png b/graphics/map_objects/060.png new file mode 100644 index 000000000..aedee9f67 Binary files /dev/null and b/graphics/map_objects/060.png differ diff --git a/graphics/map_objects/061.png b/graphics/map_objects/061.png new file mode 100644 index 000000000..de57e641f Binary files /dev/null and b/graphics/map_objects/061.png differ diff --git a/graphics/map_objects/062.png b/graphics/map_objects/062.png new file mode 100644 index 000000000..175e14e47 Binary files /dev/null and b/graphics/map_objects/062.png differ diff --git a/graphics/map_objects/063.png b/graphics/map_objects/063.png new file mode 100644 index 000000000..fbf6aa689 Binary files /dev/null and b/graphics/map_objects/063.png differ diff --git a/graphics/map_objects/064.png b/graphics/map_objects/064.png new file mode 100644 index 000000000..328d1f6b7 Binary files /dev/null and b/graphics/map_objects/064.png differ diff --git a/graphics/map_objects/065.png b/graphics/map_objects/065.png new file mode 100644 index 000000000..74e081153 Binary files /dev/null and b/graphics/map_objects/065.png differ diff --git a/graphics/map_objects/066.png b/graphics/map_objects/066.png new file mode 100644 index 000000000..ef0ecdba4 Binary files /dev/null and b/graphics/map_objects/066.png differ diff --git a/graphics/map_objects/067.png b/graphics/map_objects/067.png new file mode 100644 index 000000000..d1c20e818 Binary files /dev/null and b/graphics/map_objects/067.png differ diff --git a/graphics/map_objects/068.png b/graphics/map_objects/068.png new file mode 100644 index 000000000..485678492 Binary files /dev/null and b/graphics/map_objects/068.png differ diff --git a/graphics/map_objects/069.png b/graphics/map_objects/069.png new file mode 100644 index 000000000..f503cf0c9 Binary files /dev/null and b/graphics/map_objects/069.png differ diff --git a/graphics/map_objects/070.png b/graphics/map_objects/070.png new file mode 100644 index 000000000..a3f994a83 Binary files /dev/null and b/graphics/map_objects/070.png differ diff --git a/graphics/map_objects/071.png b/graphics/map_objects/071.png new file mode 100644 index 000000000..fab2b23ac Binary files /dev/null and b/graphics/map_objects/071.png differ diff --git a/graphics/map_objects/072.png b/graphics/map_objects/072.png new file mode 100644 index 000000000..a66593653 Binary files /dev/null and b/graphics/map_objects/072.png differ diff --git a/graphics/map_objects/073.png b/graphics/map_objects/073.png new file mode 100644 index 000000000..85b82a47f Binary files /dev/null and b/graphics/map_objects/073.png differ diff --git a/graphics/map_objects/074.png b/graphics/map_objects/074.png new file mode 100644 index 000000000..b7426b280 Binary files /dev/null and b/graphics/map_objects/074.png differ diff --git a/graphics/map_objects/075.png b/graphics/map_objects/075.png new file mode 100644 index 000000000..b8bf3ede6 Binary files /dev/null and b/graphics/map_objects/075.png differ diff --git a/graphics/map_objects/076.png b/graphics/map_objects/076.png new file mode 100644 index 000000000..5ba2f26f8 Binary files /dev/null and b/graphics/map_objects/076.png differ diff --git a/graphics/map_objects/077.png b/graphics/map_objects/077.png new file mode 100644 index 000000000..0b535572e Binary files /dev/null and b/graphics/map_objects/077.png differ diff --git a/graphics/map_objects/078.png b/graphics/map_objects/078.png new file mode 100644 index 000000000..4b6983de6 Binary files /dev/null and b/graphics/map_objects/078.png differ diff --git a/graphics/map_objects/079.png b/graphics/map_objects/079.png new file mode 100644 index 000000000..ac5ee5e9f Binary files /dev/null and b/graphics/map_objects/079.png differ diff --git a/graphics/map_objects/080.png b/graphics/map_objects/080.png new file mode 100644 index 000000000..bf48c8dd7 Binary files /dev/null and b/graphics/map_objects/080.png differ diff --git a/graphics/map_objects/081.png b/graphics/map_objects/081.png new file mode 100644 index 000000000..0e4a837b5 Binary files /dev/null and b/graphics/map_objects/081.png differ diff --git a/graphics/map_objects/082.png b/graphics/map_objects/082.png new file mode 100644 index 000000000..07435e777 Binary files /dev/null and b/graphics/map_objects/082.png differ diff --git a/graphics/map_objects/083.png b/graphics/map_objects/083.png new file mode 100644 index 000000000..015b6bbe3 Binary files /dev/null and b/graphics/map_objects/083.png differ diff --git a/graphics/map_objects/084.png b/graphics/map_objects/084.png new file mode 100644 index 000000000..b45ec3f25 Binary files /dev/null and b/graphics/map_objects/084.png differ diff --git a/graphics/map_objects/085.png b/graphics/map_objects/085.png new file mode 100644 index 000000000..101dfb0e0 Binary files /dev/null and b/graphics/map_objects/085.png differ diff --git a/graphics/map_objects/086.png b/graphics/map_objects/086.png new file mode 100644 index 000000000..19ccb8fcc Binary files /dev/null and b/graphics/map_objects/086.png differ diff --git a/graphics/map_objects/087.png b/graphics/map_objects/087.png new file mode 100644 index 000000000..5f9585a61 Binary files /dev/null and b/graphics/map_objects/087.png differ diff --git a/graphics/map_objects/088.png b/graphics/map_objects/088.png new file mode 100644 index 000000000..c7e79eefd Binary files /dev/null and b/graphics/map_objects/088.png differ diff --git a/graphics/map_objects/089.png b/graphics/map_objects/089.png new file mode 100644 index 000000000..1dc91873d Binary files /dev/null and b/graphics/map_objects/089.png differ diff --git a/graphics/map_objects/090.png b/graphics/map_objects/090.png new file mode 100644 index 000000000..320da6daa Binary files /dev/null and b/graphics/map_objects/090.png differ diff --git a/graphics/map_objects/091.png b/graphics/map_objects/091.png new file mode 100644 index 000000000..8a55cd3d3 Binary files /dev/null and b/graphics/map_objects/091.png differ diff --git a/graphics/map_objects/092.png b/graphics/map_objects/092.png new file mode 100644 index 000000000..5b91624c7 Binary files /dev/null and b/graphics/map_objects/092.png differ diff --git a/graphics/map_objects/093.png b/graphics/map_objects/093.png new file mode 100644 index 000000000..1092e5695 Binary files /dev/null and b/graphics/map_objects/093.png differ diff --git a/graphics/map_objects/094.png b/graphics/map_objects/094.png new file mode 100644 index 000000000..9089df959 Binary files /dev/null and b/graphics/map_objects/094.png differ diff --git a/graphics/map_objects/095.png b/graphics/map_objects/095.png new file mode 100644 index 000000000..ce110cd9e Binary files /dev/null and b/graphics/map_objects/095.png differ diff --git a/graphics/map_objects/096.png b/graphics/map_objects/096.png new file mode 100644 index 000000000..315fb0089 Binary files /dev/null and b/graphics/map_objects/096.png differ diff --git a/graphics/map_objects/097.png b/graphics/map_objects/097.png new file mode 100644 index 000000000..2f594708f Binary files /dev/null and b/graphics/map_objects/097.png differ diff --git a/graphics/map_objects/098.png b/graphics/map_objects/098.png new file mode 100644 index 000000000..2e87e553a Binary files /dev/null and b/graphics/map_objects/098.png differ diff --git a/graphics/map_objects/099.png b/graphics/map_objects/099.png new file mode 100644 index 000000000..099670aa3 Binary files /dev/null and b/graphics/map_objects/099.png differ diff --git a/graphics/map_objects/1.pal b/graphics/map_objects/1.pal new file mode 100644 index 000000000..5537faa0f --- /dev/null +++ b/graphics/map_objects/1.pal @@ -0,0 +1,19 @@ +JASC-PAL +0100 +16 +197 255 246 +238 189 180 +255 255 230 +255 230 197 +205 148 148 +123 164 238 +115 131 197 +172 213 255 +172 123 98 +255 255 255 +222 222 255 +255 230 172 +255 172 172 +255 255 172 +230 205 115 +82 82 82 diff --git a/graphics/map_objects/10.pal b/graphics/map_objects/10.pal new file mode 100644 index 000000000..ae8272ec4 --- /dev/null +++ b/graphics/map_objects/10.pal @@ -0,0 +1,19 @@ +JASC-PAL +0100 +16 +98 172 238 +255 255 255 +255 255 230 +255 230 197 +205 148 148 +230 205 131 +205 180 106 +164 139 65 +255 197 139 +246 156 106 +205 115 90 +222 222 230 +180 180 180 +139 139 148 +255 255 255 +82 82 82 diff --git a/graphics/map_objects/100.png b/graphics/map_objects/100.png new file mode 100644 index 000000000..97a278aa5 Binary files /dev/null and b/graphics/map_objects/100.png differ diff --git a/graphics/map_objects/101.png b/graphics/map_objects/101.png new file mode 100644 index 000000000..82d7d9424 Binary files /dev/null and b/graphics/map_objects/101.png differ diff --git a/graphics/map_objects/102.png b/graphics/map_objects/102.png new file mode 100644 index 000000000..537e9b718 Binary files /dev/null and b/graphics/map_objects/102.png differ diff --git a/graphics/map_objects/103.png b/graphics/map_objects/103.png new file mode 100644 index 000000000..c255ad15a Binary files /dev/null and b/graphics/map_objects/103.png differ diff --git a/graphics/map_objects/104.png b/graphics/map_objects/104.png new file mode 100644 index 000000000..2717cf7a9 Binary files /dev/null and b/graphics/map_objects/104.png differ diff --git a/graphics/map_objects/105.png b/graphics/map_objects/105.png new file mode 100644 index 000000000..d5cef50ea Binary files /dev/null and b/graphics/map_objects/105.png differ diff --git a/graphics/map_objects/106.png b/graphics/map_objects/106.png new file mode 100644 index 000000000..706049ee0 Binary files /dev/null and b/graphics/map_objects/106.png differ diff --git a/graphics/map_objects/107.png b/graphics/map_objects/107.png new file mode 100644 index 000000000..e0d216fb3 Binary files /dev/null and b/graphics/map_objects/107.png differ diff --git a/graphics/map_objects/108.png b/graphics/map_objects/108.png new file mode 100644 index 000000000..a28a5ab9a Binary files /dev/null and b/graphics/map_objects/108.png differ diff --git a/graphics/map_objects/109.png b/graphics/map_objects/109.png new file mode 100644 index 000000000..b8affc19b Binary files /dev/null and b/graphics/map_objects/109.png differ diff --git a/graphics/map_objects/11.pal b/graphics/map_objects/11.pal new file mode 100644 index 000000000..b36c29ab1 --- /dev/null +++ b/graphics/map_objects/11.pal @@ -0,0 +1,19 @@ +JASC-PAL +0100 +16 +0 0 0 +41 41 32 +41 41 41 +90 90 82 +139 139 115 +180 180 164 +213 156 16 +238 197 16 +255 222 98 +0 90 197 +0 131 238 +156 180 205 +213 230 238 +255 255 255 +0 139 0 +0 205 0 diff --git a/graphics/map_objects/110.png b/graphics/map_objects/110.png new file mode 100644 index 000000000..499f51e8c Binary files /dev/null and b/graphics/map_objects/110.png differ diff --git a/graphics/map_objects/111.png b/graphics/map_objects/111.png new file mode 100644 index 000000000..ba51eaddc Binary files /dev/null and b/graphics/map_objects/111.png differ diff --git a/graphics/map_objects/112.png b/graphics/map_objects/112.png new file mode 100644 index 000000000..0c8428fd3 Binary files /dev/null and b/graphics/map_objects/112.png differ diff --git a/graphics/map_objects/113.png b/graphics/map_objects/113.png new file mode 100644 index 000000000..e5817bac8 Binary files /dev/null and b/graphics/map_objects/113.png differ diff --git a/graphics/map_objects/114.png b/graphics/map_objects/114.png new file mode 100644 index 000000000..55748d9a0 Binary files /dev/null and b/graphics/map_objects/114.png differ diff --git a/graphics/map_objects/115.png b/graphics/map_objects/115.png new file mode 100644 index 000000000..ccd46b1f8 Binary files /dev/null and b/graphics/map_objects/115.png differ diff --git a/graphics/map_objects/116.png b/graphics/map_objects/116.png new file mode 100644 index 000000000..a109eb2c6 Binary files /dev/null and b/graphics/map_objects/116.png differ diff --git a/graphics/map_objects/117.png b/graphics/map_objects/117.png new file mode 100644 index 000000000..550a58260 Binary files /dev/null and b/graphics/map_objects/117.png differ diff --git a/graphics/map_objects/118.png b/graphics/map_objects/118.png new file mode 100644 index 000000000..083897483 Binary files /dev/null and b/graphics/map_objects/118.png differ diff --git a/graphics/map_objects/119.png b/graphics/map_objects/119.png new file mode 100644 index 000000000..ed82e390e Binary files /dev/null and b/graphics/map_objects/119.png differ diff --git a/graphics/map_objects/12.pal b/graphics/map_objects/12.pal new file mode 100644 index 000000000..b69e9ac0a --- /dev/null +++ b/graphics/map_objects/12.pal @@ -0,0 +1,19 @@ +JASC-PAL +0100 +16 +255 255 255 +139 139 131 +139 139 139 +189 189 180 +238 238 213 +255 255 255 +255 255 115 +255 255 115 +255 255 197 +98 189 255 +98 230 255 +255 255 255 +255 255 255 +255 255 255 +98 238 98 +98 255 98 diff --git a/graphics/map_objects/120.png b/graphics/map_objects/120.png new file mode 100644 index 000000000..7b837e11b Binary files /dev/null and b/graphics/map_objects/120.png differ diff --git a/graphics/map_objects/121.png b/graphics/map_objects/121.png new file mode 100644 index 000000000..1f0dd24e0 Binary files /dev/null and b/graphics/map_objects/121.png differ diff --git a/graphics/map_objects/122.png b/graphics/map_objects/122.png new file mode 100644 index 000000000..b25ee75f4 Binary files /dev/null and b/graphics/map_objects/122.png differ diff --git a/graphics/map_objects/123.png b/graphics/map_objects/123.png new file mode 100644 index 000000000..4a2768475 Binary files /dev/null and b/graphics/map_objects/123.png differ diff --git a/graphics/map_objects/124.png b/graphics/map_objects/124.png new file mode 100644 index 000000000..8cdfa0ef2 Binary files /dev/null and b/graphics/map_objects/124.png differ diff --git a/graphics/map_objects/125.png b/graphics/map_objects/125.png new file mode 100644 index 000000000..31203db01 Binary files /dev/null and b/graphics/map_objects/125.png differ diff --git a/graphics/map_objects/126.png b/graphics/map_objects/126.png new file mode 100644 index 000000000..2cd14040c Binary files /dev/null and b/graphics/map_objects/126.png differ diff --git a/graphics/map_objects/127.png b/graphics/map_objects/127.png new file mode 100644 index 000000000..973306673 Binary files /dev/null and b/graphics/map_objects/127.png differ diff --git a/graphics/map_objects/128.png b/graphics/map_objects/128.png new file mode 100644 index 000000000..9baab0bbe Binary files /dev/null and b/graphics/map_objects/128.png differ diff --git a/graphics/map_objects/129.png b/graphics/map_objects/129.png new file mode 100644 index 000000000..1cd63f1eb Binary files /dev/null and b/graphics/map_objects/129.png differ diff --git a/graphics/map_objects/130.png b/graphics/map_objects/130.png new file mode 100644 index 000000000..db791455b Binary files /dev/null and b/graphics/map_objects/130.png differ diff --git a/graphics/map_objects/131.png b/graphics/map_objects/131.png new file mode 100644 index 000000000..c8252a957 Binary files /dev/null and b/graphics/map_objects/131.png differ diff --git a/graphics/map_objects/132.png b/graphics/map_objects/132.png new file mode 100644 index 000000000..9a63cab7e Binary files /dev/null and b/graphics/map_objects/132.png differ diff --git a/graphics/map_objects/133.png b/graphics/map_objects/133.png new file mode 100644 index 000000000..c26ced826 Binary files /dev/null and b/graphics/map_objects/133.png differ diff --git a/graphics/map_objects/134.png b/graphics/map_objects/134.png new file mode 100644 index 000000000..74a29680c Binary files /dev/null and b/graphics/map_objects/134.png differ diff --git a/graphics/map_objects/135.png b/graphics/map_objects/135.png new file mode 100644 index 000000000..3fd66ec1d Binary files /dev/null and b/graphics/map_objects/135.png differ diff --git a/graphics/map_objects/136.png b/graphics/map_objects/136.png new file mode 100644 index 000000000..58dfd65fa Binary files /dev/null and b/graphics/map_objects/136.png differ diff --git a/graphics/map_objects/137.png b/graphics/map_objects/137.png new file mode 100644 index 000000000..d9b6a0b68 Binary files /dev/null and b/graphics/map_objects/137.png differ diff --git a/graphics/map_objects/138.png b/graphics/map_objects/138.png new file mode 100644 index 000000000..c062c6022 Binary files /dev/null and b/graphics/map_objects/138.png differ diff --git a/graphics/map_objects/139.png b/graphics/map_objects/139.png new file mode 100644 index 000000000..a587d78a9 Binary files /dev/null and b/graphics/map_objects/139.png differ diff --git a/graphics/map_objects/140.png b/graphics/map_objects/140.png new file mode 100644 index 000000000..934aec110 Binary files /dev/null and b/graphics/map_objects/140.png differ diff --git a/graphics/map_objects/141.png b/graphics/map_objects/141.png new file mode 100644 index 000000000..c646f7bce Binary files /dev/null and b/graphics/map_objects/141.png differ diff --git a/graphics/map_objects/142.png b/graphics/map_objects/142.png new file mode 100644 index 000000000..f471416e6 Binary files /dev/null and b/graphics/map_objects/142.png differ diff --git a/graphics/map_objects/143.png b/graphics/map_objects/143.png new file mode 100644 index 000000000..727d674e8 Binary files /dev/null and b/graphics/map_objects/143.png differ diff --git a/graphics/map_objects/144.png b/graphics/map_objects/144.png new file mode 100644 index 000000000..22794f5c6 Binary files /dev/null and b/graphics/map_objects/144.png differ diff --git a/graphics/map_objects/145.png b/graphics/map_objects/145.png new file mode 100644 index 000000000..3d2a7f11b Binary files /dev/null and b/graphics/map_objects/145.png differ diff --git a/graphics/map_objects/146.png b/graphics/map_objects/146.png new file mode 100644 index 000000000..743a072d2 Binary files /dev/null and b/graphics/map_objects/146.png differ diff --git a/graphics/map_objects/147.png b/graphics/map_objects/147.png new file mode 100644 index 000000000..50339fbc0 Binary files /dev/null and b/graphics/map_objects/147.png differ diff --git a/graphics/map_objects/148.png b/graphics/map_objects/148.png new file mode 100644 index 000000000..9079690f0 Binary files /dev/null and b/graphics/map_objects/148.png differ diff --git a/graphics/map_objects/149.png b/graphics/map_objects/149.png new file mode 100644 index 000000000..84c160d61 Binary files /dev/null and b/graphics/map_objects/149.png differ diff --git a/graphics/map_objects/150.png b/graphics/map_objects/150.png new file mode 100644 index 000000000..48695b960 Binary files /dev/null and b/graphics/map_objects/150.png differ diff --git a/graphics/map_objects/151.png b/graphics/map_objects/151.png new file mode 100644 index 000000000..0331e4440 Binary files /dev/null and b/graphics/map_objects/151.png differ diff --git a/graphics/map_objects/152.png b/graphics/map_objects/152.png new file mode 100644 index 000000000..d39504689 Binary files /dev/null and b/graphics/map_objects/152.png differ diff --git a/graphics/trainers/palettes/emerald_leaf_back_pic.pal b/graphics/map_objects/16.pal similarity index 93% rename from graphics/trainers/palettes/emerald_leaf_back_pic.pal rename to graphics/map_objects/16.pal index 27436be92..3097a6556 100644 --- a/graphics/trainers/palettes/emerald_leaf_back_pic.pal +++ b/graphics/map_objects/16.pal @@ -1,7 +1,7 @@ JASC-PAL 0100 16 -115 197 164 +131 123 164 172 123 65 255 197 148 222 148 115 diff --git a/graphics/map_objects/17.pal b/graphics/map_objects/17.pal new file mode 100644 index 000000000..5537faa0f --- /dev/null +++ b/graphics/map_objects/17.pal @@ -0,0 +1,19 @@ +JASC-PAL +0100 +16 +197 255 246 +238 189 180 +255 255 230 +255 230 197 +205 148 148 +123 164 238 +115 131 197 +172 213 255 +172 123 98 +255 255 255 +222 222 255 +255 230 172 +255 172 172 +255 255 172 +230 205 115 +82 82 82 diff --git a/graphics/map_objects/19.pal b/graphics/map_objects/19.pal new file mode 100644 index 000000000..c20bacb57 --- /dev/null +++ b/graphics/map_objects/19.pal @@ -0,0 +1,19 @@ +JASC-PAL +0100 +16 +106 156 197 +32 32 32 +82 82 82 +139 139 139 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 diff --git a/graphics/map_objects/2.pal b/graphics/map_objects/2.pal new file mode 100644 index 000000000..0cebd6c4d --- /dev/null +++ b/graphics/map_objects/2.pal @@ -0,0 +1,19 @@ +JASC-PAL +0100 +16 +74 115 172 +74 115 172 +74 115 172 +74 115 172 +74 115 172 +74 115 172 +74 115 172 +74 115 172 +74 115 172 +74 115 172 +74 115 172 +74 115 172 +74 115 172 +74 115 172 +74 115 172 +74 115 172 diff --git a/graphics/map_objects/20.pal b/graphics/map_objects/20.pal new file mode 100644 index 000000000..c25501332 --- /dev/null +++ b/graphics/map_objects/20.pal @@ -0,0 +1,19 @@ +JASC-PAL +0100 +16 +65 123 180 +238 246 255 +222 230 238 +189 205 230 +156 164 189 +139 139 156 +98 98 123 +57 57 106 +197 98 98 +172 65 106 +32 74 156 +197 148 0 +246 213 24 +222 238 255 +255 255 255 +74 106 139 diff --git a/graphics/map_objects/21.pal b/graphics/map_objects/21.pal new file mode 100644 index 000000000..cf19fedfa --- /dev/null +++ b/graphics/map_objects/21.pal @@ -0,0 +1,19 @@ +JASC-PAL +0100 +16 +57 115 180 +49 131 197 +65 65 82 +139 106 57 +32 82 139 +189 90 32 +222 156 49 +246 205 74 +172 148 90 +82 82 106 +213 213 238 +106 106 139 +131 139 172 +205 180 123 +255 255 255 +16 16 24 diff --git a/graphics/map_objects/3.pal b/graphics/map_objects/3.pal new file mode 100644 index 000000000..c62e8ce06 --- /dev/null +++ b/graphics/map_objects/3.pal @@ -0,0 +1,19 @@ +JASC-PAL +0100 +16 +115 197 164 +255 213 180 +246 189 148 +222 148 115 +123 65 65 +255 222 74 +213 172 32 +131 98 0 +164 139 238 +106 82 189 +65 57 98 +238 115 65 +172 65 57 +74 49 49 +255 255 255 +0 0 0 diff --git a/graphics/map_objects/4.pal b/graphics/map_objects/4.pal new file mode 100644 index 000000000..e245ba013 --- /dev/null +++ b/graphics/map_objects/4.pal @@ -0,0 +1,19 @@ +JASC-PAL +0100 +16 +115 197 164 +255 213 180 +246 189 148 +222 148 115 +123 65 65 +255 164 180 +213 106 123 +139 65 82 +148 197 238 +98 131 205 +57 57 74 +197 197 213 +139 139 148 +74 74 90 +255 255 255 +0 0 0 diff --git a/graphics/map_objects/5.pal b/graphics/map_objects/5.pal new file mode 100644 index 000000000..0c60b08a5 --- /dev/null +++ b/graphics/map_objects/5.pal @@ -0,0 +1,19 @@ +JASC-PAL +0100 +16 +115 197 164 +255 213 180 +246 189 148 +222 148 115 +123 65 65 +222 189 65 +164 131 32 +82 82 32 +131 205 49 +57 139 0 +32 65 16 +222 148 189 +164 74 131 +82 32 65 +255 255 255 +0 0 0 diff --git a/graphics/map_objects/6.pal b/graphics/map_objects/6.pal new file mode 100644 index 000000000..1646e805e --- /dev/null +++ b/graphics/map_objects/6.pal @@ -0,0 +1,19 @@ +JASC-PAL +0100 +16 +115 197 164 +255 213 180 +246 189 148 +222 148 115 +123 65 65 +205 172 98 +123 115 65 +57 57 24 +230 106 74 +148 57 41 +82 16 0 +197 197 213 +139 139 148 +74 74 90 +255 255 255 +0 0 0 diff --git a/graphics/map_objects/7.pal b/graphics/map_objects/7.pal new file mode 100644 index 000000000..9fdd95ccc --- /dev/null +++ b/graphics/map_objects/7.pal @@ -0,0 +1,19 @@ +JASC-PAL +0100 +16 +98 172 238 +255 255 255 +255 255 230 +255 230 197 +205 148 148 +255 255 139 +246 230 65 +238 197 32 +197 222 238 +156 180 230 +131 148 205 +255 197 139 +246 156 106 +205 115 90 +255 255 255 +82 82 82 diff --git a/graphics/map_objects/8.pal b/graphics/map_objects/8.pal new file mode 100644 index 000000000..d0e386c7c --- /dev/null +++ b/graphics/map_objects/8.pal @@ -0,0 +1,19 @@ +JASC-PAL +0100 +16 +98 172 238 +255 255 255 +255 255 230 +255 230 197 +205 148 148 +255 222 238 +255 180 205 +238 164 172 +205 255 255 +180 230 255 +123 164 213 +222 222 230 +180 180 180 +139 139 148 +255 255 255 +82 82 82 diff --git a/graphics/map_objects/9.pal b/graphics/map_objects/9.pal new file mode 100644 index 000000000..ae24bbfe4 --- /dev/null +++ b/graphics/map_objects/9.pal @@ -0,0 +1,19 @@ +JASC-PAL +0100 +16 +98 172 238 +255 255 255 +255 255 230 +255 230 197 +205 148 148 +238 222 98 +222 197 74 +197 172 65 +164 238 148 +131 205 123 +106 172 74 +246 156 213 +213 131 189 +189 115 148 +255 255 255 +82 82 82 diff --git a/graphics/map_objects/female_surf.png b/graphics/map_objects/female_surf.png new file mode 100644 index 000000000..325af3f5e Binary files /dev/null and b/graphics/map_objects/female_surf.png differ diff --git a/graphics/map_objects/male_surf.png b/graphics/map_objects/male_surf.png new file mode 100644 index 000000000..310e6900f Binary files /dev/null and b/graphics/map_objects/male_surf.png differ diff --git a/graphics/map_objects/unk_396B08.png b/graphics/map_objects/unk_396B08.png new file mode 100644 index 000000000..ae2222d45 Binary files /dev/null and b/graphics/map_objects/unk_396B08.png differ diff --git a/graphics/map_objects/unk_8369F28.png b/graphics/map_objects/unk_8369F28.png new file mode 100644 index 000000000..e01e3ea8e Binary files /dev/null and b/graphics/map_objects/unk_8369F28.png differ diff --git a/graphics/map_objects/unk_8372AA8.png b/graphics/map_objects/unk_8372AA8.png new file mode 100644 index 000000000..36f112e85 Binary files /dev/null and b/graphics/map_objects/unk_8372AA8.png differ diff --git a/graphics/map_objects/unk_838D5A8.png b/graphics/map_objects/unk_838D5A8.png new file mode 100644 index 000000000..bb0ca5d34 Binary files /dev/null and b/graphics/map_objects/unk_838D5A8.png differ diff --git a/graphics/pokemon/deoxys/speed_icon.png b/graphics/pokemon/deoxys/icon_attack.png similarity index 100% rename from graphics/pokemon/deoxys/speed_icon.png rename to graphics/pokemon/deoxys/icon_attack.png diff --git a/graphics/pokemon/heracross/unk_icon.png b/graphics/pokemon/heracross/unk_icon.png new file mode 100644 index 000000000..362f66fd9 Binary files /dev/null and b/graphics/pokemon/heracross/unk_icon.png differ diff --git a/graphics/trainers/front_pics/arena_tycoon_greta_front_pic.png b/graphics/trainers/front_pics/arena_tycoon_greta_front_pic.png deleted file mode 100644 index a15872c61..000000000 Binary files a/graphics/trainers/front_pics/arena_tycoon_greta_front_pic.png and /dev/null differ diff --git a/graphics/trainers/front_pics/brendan_front_pic.png b/graphics/trainers/front_pics/brendan_front_pic.png deleted file mode 100644 index b0c65b4be..000000000 Binary files a/graphics/trainers/front_pics/brendan_front_pic.png and /dev/null differ diff --git a/graphics/trainers/front_pics/champion_blue_front_pic.png b/graphics/trainers/front_pics/champion_rival_front_pic.png similarity index 100% rename from graphics/trainers/front_pics/champion_blue_front_pic.png rename to graphics/trainers/front_pics/champion_rival_front_pic.png diff --git a/graphics/trainers/front_pics/steven_front_pic.png b/graphics/trainers/front_pics/champion_steven_front_pic.png similarity index 100% rename from graphics/trainers/front_pics/steven_front_pic.png rename to graphics/trainers/front_pics/champion_steven_front_pic.png diff --git a/graphics/trainers/front_pics/champion_wallace_front_pic.png b/graphics/trainers/front_pics/champion_wallace_front_pic.png deleted file mode 100644 index 24c43eca8..000000000 Binary files a/graphics/trainers/front_pics/champion_wallace_front_pic.png and /dev/null differ diff --git a/graphics/trainers/front_pics/roughneck_front_pic.png b/graphics/trainers/front_pics/cue_ball_front_pic.png similarity index 100% rename from graphics/trainers/front_pics/roughneck_front_pic.png rename to graphics/trainers/front_pics/cue_ball_front_pic.png diff --git a/graphics/trainers/front_pics/dome_ace_tucker_front_pic.png b/graphics/trainers/front_pics/dome_ace_tucker_front_pic.png deleted file mode 100644 index 78b92b0c9..000000000 Binary files a/graphics/trainers/front_pics/dome_ace_tucker_front_pic.png and /dev/null differ diff --git a/graphics/trainers/front_pics/factory_head_noland_front_pic.png b/graphics/trainers/front_pics/factory_head_noland_front_pic.png deleted file mode 100644 index df420adf3..000000000 Binary files a/graphics/trainers/front_pics/factory_head_noland_front_pic.png and /dev/null differ diff --git a/graphics/trainers/front_pics/giovanni_front_pic.png b/graphics/trainers/front_pics/leader_giovanni_front_pic.png similarity index 100% rename from graphics/trainers/front_pics/giovanni_front_pic.png rename to graphics/trainers/front_pics/leader_giovanni_front_pic.png diff --git a/graphics/trainers/front_pics/leader_juan_front_pic.png b/graphics/trainers/front_pics/leader_juan_front_pic.png deleted file mode 100644 index ecd9f087b..000000000 Binary files a/graphics/trainers/front_pics/leader_juan_front_pic.png and /dev/null differ diff --git a/graphics/trainers/front_pics/ruby_sapphire_champion_wallace_front_pic.png b/graphics/trainers/front_pics/leader_wallace_front_pic.png similarity index 100% rename from graphics/trainers/front_pics/ruby_sapphire_champion_wallace_front_pic.png rename to graphics/trainers/front_pics/leader_wallace_front_pic.png diff --git a/graphics/trainers/front_pics/ruby_magma_admin_f_front_pic.png b/graphics/trainers/front_pics/magma_admin_f_front_pic.png similarity index 100% rename from graphics/trainers/front_pics/ruby_magma_admin_f_front_pic.png rename to graphics/trainers/front_pics/magma_admin_f_front_pic.png diff --git a/graphics/trainers/front_pics/magma_admin_front_pic.png b/graphics/trainers/front_pics/magma_admin_m_front_pic.png similarity index 100% rename from graphics/trainers/front_pics/magma_admin_front_pic.png rename to graphics/trainers/front_pics/magma_admin_m_front_pic.png diff --git a/graphics/trainers/front_pics/may_front_pic.png b/graphics/trainers/front_pics/may_front_pic.png deleted file mode 100644 index 47ebca40f..000000000 Binary files a/graphics/trainers/front_pics/may_front_pic.png and /dev/null differ diff --git a/graphics/trainers/front_pics/palace_maven_spenser_front_pic.png b/graphics/trainers/front_pics/palace_maven_spenser_front_pic.png deleted file mode 100644 index 0b33649a2..000000000 Binary files a/graphics/trainers/front_pics/palace_maven_spenser_front_pic.png and /dev/null differ diff --git a/graphics/trainers/front_pics/pike_queen_lucy_front_pic.png b/graphics/trainers/front_pics/pike_queen_lucy_front_pic.png deleted file mode 100644 index e57260e28..000000000 Binary files a/graphics/trainers/front_pics/pike_queen_lucy_front_pic.png and /dev/null differ diff --git a/graphics/trainers/front_pics/winstrate_f_front_pic.png b/graphics/trainers/front_pics/pokefan_f_front_pic.png similarity index 100% rename from graphics/trainers/front_pics/winstrate_f_front_pic.png rename to graphics/trainers/front_pics/pokefan_f_front_pic.png diff --git a/graphics/trainers/front_pics/winstrate_m_front_pic.png b/graphics/trainers/front_pics/pokefan_m_front_pic.png similarity index 100% rename from graphics/trainers/front_pics/winstrate_m_front_pic.png rename to graphics/trainers/front_pics/pokefan_m_front_pic.png diff --git a/graphics/trainers/front_pics/pokemon_breeder_front_pic.png b/graphics/trainers/front_pics/pokemon_breeder_f_front_pic.png similarity index 100% rename from graphics/trainers/front_pics/pokemon_breeder_front_pic.png rename to graphics/trainers/front_pics/pokemon_breeder_f_front_pic.png diff --git a/graphics/trainers/front_pics/emerald_pokemon_breeder_m_front_pic.png b/graphics/trainers/front_pics/pokemon_breeder_m_front_pic.png similarity index 100% rename from graphics/trainers/front_pics/emerald_pokemon_breeder_m_front_pic.png rename to graphics/trainers/front_pics/pokemon_breeder_m_front_pic.png diff --git a/graphics/trainers/front_pics/oak_front_pic.png b/graphics/trainers/front_pics/professor_oak_front_pic.png similarity index 100% rename from graphics/trainers/front_pics/oak_front_pic.png rename to graphics/trainers/front_pics/professor_oak_front_pic.png diff --git a/graphics/trainers/front_pics/pyramid_king_brandon_front_pic.png b/graphics/trainers/front_pics/pyramid_king_brandon_front_pic.png deleted file mode 100644 index 2f936092a..000000000 Binary files a/graphics/trainers/front_pics/pyramid_king_brandon_front_pic.png and /dev/null differ diff --git a/graphics/trainers/front_pics/blue_1_front_pic.png b/graphics/trainers/front_pics/rival_1_front_pic.png similarity index 100% rename from graphics/trainers/front_pics/blue_1_front_pic.png rename to graphics/trainers/front_pics/rival_1_front_pic.png diff --git a/graphics/trainers/front_pics/blue_2_front_pic.png b/graphics/trainers/front_pics/rival_2_front_pic.png similarity index 100% rename from graphics/trainers/front_pics/blue_2_front_pic.png rename to graphics/trainers/front_pics/rival_2_front_pic.png diff --git a/graphics/trainers/front_pics/emerald_aroma_lady_front_pic.png b/graphics/trainers/front_pics/rs_aroma_lady_front_pic.png similarity index 100% rename from graphics/trainers/front_pics/emerald_aroma_lady_front_pic.png rename to graphics/trainers/front_pics/rs_aroma_lady_front_pic.png diff --git a/graphics/trainers/front_pics/emerald_beauty_front_pic.png b/graphics/trainers/front_pics/rs_beauty_front_pic.png similarity index 100% rename from graphics/trainers/front_pics/emerald_beauty_front_pic.png rename to graphics/trainers/front_pics/rs_beauty_front_pic.png diff --git a/graphics/trainers/front_pics/emerald_bird_keeper_front_pic.png b/graphics/trainers/front_pics/rs_bird_keeper_front_pic.png similarity index 100% rename from graphics/trainers/front_pics/emerald_bird_keeper_front_pic.png rename to graphics/trainers/front_pics/rs_bird_keeper_front_pic.png diff --git a/graphics/trainers/front_pics/emerald_black_belt_front_pic.png b/graphics/trainers/front_pics/rs_black_belt_front_pic.png similarity index 100% rename from graphics/trainers/front_pics/emerald_black_belt_front_pic.png rename to graphics/trainers/front_pics/rs_black_belt_front_pic.png diff --git a/graphics/trainers/front_pics/emerald_bug_catcher_front_pic.png b/graphics/trainers/front_pics/rs_bug_catcher_front_pic.png similarity index 100% rename from graphics/trainers/front_pics/emerald_bug_catcher_front_pic.png rename to graphics/trainers/front_pics/rs_bug_catcher_front_pic.png diff --git a/graphics/trainers/front_pics/emerald_camper_front_pic.png b/graphics/trainers/front_pics/rs_camper_front_pic.png similarity index 100% rename from graphics/trainers/front_pics/emerald_camper_front_pic.png rename to graphics/trainers/front_pics/rs_camper_front_pic.png diff --git a/graphics/trainers/front_pics/emerald_cool_trainer_f_front_pic.png b/graphics/trainers/front_pics/rs_cool_trainer_f_front_pic.png similarity index 100% rename from graphics/trainers/front_pics/emerald_cool_trainer_f_front_pic.png rename to graphics/trainers/front_pics/rs_cool_trainer_f_front_pic.png diff --git a/graphics/trainers/front_pics/emerald_cool_trainer_m_front_pic.png b/graphics/trainers/front_pics/rs_cool_trainer_m_front_pic.png similarity index 100% rename from graphics/trainers/front_pics/emerald_cool_trainer_m_front_pic.png rename to graphics/trainers/front_pics/rs_cool_trainer_m_front_pic.png diff --git a/graphics/trainers/front_pics/emerald_fisherman_front_pic.png b/graphics/trainers/front_pics/rs_fisherman_front_pic.png similarity index 100% rename from graphics/trainers/front_pics/emerald_fisherman_front_pic.png rename to graphics/trainers/front_pics/rs_fisherman_front_pic.png diff --git a/graphics/trainers/front_pics/emerald_gentleman_front_pic.png b/graphics/trainers/front_pics/rs_gentleman_front_pic.png similarity index 100% rename from graphics/trainers/front_pics/emerald_gentleman_front_pic.png rename to graphics/trainers/front_pics/rs_gentleman_front_pic.png diff --git a/graphics/trainers/front_pics/emerald_hiker_front_pic.png b/graphics/trainers/front_pics/rs_hiker_front_pic.png similarity index 100% rename from graphics/trainers/front_pics/emerald_hiker_front_pic.png rename to graphics/trainers/front_pics/rs_hiker_front_pic.png diff --git a/graphics/trainers/front_pics/emerald_lady_front_pic.png b/graphics/trainers/front_pics/rs_lady_front_pic.png similarity index 100% rename from graphics/trainers/front_pics/emerald_lady_front_pic.png rename to graphics/trainers/front_pics/rs_lady_front_pic.png diff --git a/graphics/trainers/front_pics/emerald_lass_front_pic.png b/graphics/trainers/front_pics/rs_lass_front_pic.png similarity index 100% rename from graphics/trainers/front_pics/emerald_lass_front_pic.png rename to graphics/trainers/front_pics/rs_lass_front_pic.png diff --git a/graphics/trainers/front_pics/emerald_picnicker_front_pic.png b/graphics/trainers/front_pics/rs_picnicker_front_pic.png similarity index 100% rename from graphics/trainers/front_pics/emerald_picnicker_front_pic.png rename to graphics/trainers/front_pics/rs_picnicker_front_pic.png diff --git a/graphics/trainers/front_pics/emerald_pokemaniac_front_pic.png b/graphics/trainers/front_pics/rs_pokemaniac_front_pic.png similarity index 100% rename from graphics/trainers/front_pics/emerald_pokemaniac_front_pic.png rename to graphics/trainers/front_pics/rs_pokemaniac_front_pic.png diff --git a/graphics/trainers/front_pics/emerald_pokemon_breeder_f_front_pic.png b/graphics/trainers/front_pics/rs_pokemon_breeder_f_front_pic.png similarity index 100% rename from graphics/trainers/front_pics/emerald_pokemon_breeder_f_front_pic.png rename to graphics/trainers/front_pics/rs_pokemon_breeder_f_front_pic.png diff --git a/graphics/trainers/front_pics/emerald_pokemon_ranger_f_front_pic.png b/graphics/trainers/front_pics/rs_pokemon_ranger_f_front_pic.png similarity index 100% rename from graphics/trainers/front_pics/emerald_pokemon_ranger_f_front_pic.png rename to graphics/trainers/front_pics/rs_pokemon_ranger_f_front_pic.png diff --git a/graphics/trainers/front_pics/emerald_pokemon_ranger_m_front_pic.png b/graphics/trainers/front_pics/rs_pokemon_ranger_m_front_pic.png similarity index 100% rename from graphics/trainers/front_pics/emerald_pokemon_ranger_m_front_pic.png rename to graphics/trainers/front_pics/rs_pokemon_ranger_m_front_pic.png diff --git a/graphics/trainers/front_pics/emerald_psychic_f_front_pic.png b/graphics/trainers/front_pics/rs_psychic_f_front_pic.png similarity index 100% rename from graphics/trainers/front_pics/emerald_psychic_f_front_pic.png rename to graphics/trainers/front_pics/rs_psychic_f_front_pic.png diff --git a/graphics/trainers/front_pics/emerald_psychic_m_front_pic.png b/graphics/trainers/front_pics/rs_psychic_m_front_pic.png similarity index 100% rename from graphics/trainers/front_pics/emerald_psychic_m_front_pic.png rename to graphics/trainers/front_pics/rs_psychic_m_front_pic.png diff --git a/graphics/trainers/front_pics/emerald_ruin_maniac_front_pic.png b/graphics/trainers/front_pics/rs_ruin_maniac_front_pic.png similarity index 100% rename from graphics/trainers/front_pics/emerald_ruin_maniac_front_pic.png rename to graphics/trainers/front_pics/rs_ruin_maniac_front_pic.png diff --git a/graphics/trainers/front_pics/emerald_sailor_front_pic.png b/graphics/trainers/front_pics/rs_sailor_front_pic.png similarity index 100% rename from graphics/trainers/front_pics/emerald_sailor_front_pic.png rename to graphics/trainers/front_pics/rs_sailor_front_pic.png diff --git a/graphics/trainers/front_pics/emerald_sis_and_bro_front_pic.png b/graphics/trainers/front_pics/rs_sis_and_bro_front_pic.png similarity index 100% rename from graphics/trainers/front_pics/emerald_sis_and_bro_front_pic.png rename to graphics/trainers/front_pics/rs_sis_and_bro_front_pic.png diff --git a/graphics/trainers/front_pics/emerald_swimmer_f_front_pic.png b/graphics/trainers/front_pics/rs_swimmer_f_front_pic.png similarity index 100% rename from graphics/trainers/front_pics/emerald_swimmer_f_front_pic.png rename to graphics/trainers/front_pics/rs_swimmer_f_front_pic.png diff --git a/graphics/trainers/front_pics/emerald_swimmer_m_front_pic.png b/graphics/trainers/front_pics/rs_swimmer_m_front_pic.png similarity index 100% rename from graphics/trainers/front_pics/emerald_swimmer_m_front_pic.png rename to graphics/trainers/front_pics/rs_swimmer_m_front_pic.png diff --git a/graphics/trainers/front_pics/emerald_tuber_f_front_pic.png b/graphics/trainers/front_pics/rs_tuber_f_front_pic.png similarity index 100% rename from graphics/trainers/front_pics/emerald_tuber_f_front_pic.png rename to graphics/trainers/front_pics/rs_tuber_f_front_pic.png diff --git a/graphics/trainers/front_pics/emerald_twins_front_pic.png b/graphics/trainers/front_pics/rs_twins_front_pic.png similarity index 100% rename from graphics/trainers/front_pics/emerald_twins_front_pic.png rename to graphics/trainers/front_pics/rs_twins_front_pic.png diff --git a/graphics/trainers/front_pics/emerald_young_couple_front_pic.png b/graphics/trainers/front_pics/rs_young_couple_front_pic.png similarity index 100% rename from graphics/trainers/front_pics/emerald_young_couple_front_pic.png rename to graphics/trainers/front_pics/rs_young_couple_front_pic.png diff --git a/graphics/trainers/front_pics/emerald_youngster_front_pic.png b/graphics/trainers/front_pics/rs_youngster_front_pic.png similarity index 100% rename from graphics/trainers/front_pics/emerald_youngster_front_pic.png rename to graphics/trainers/front_pics/rs_youngster_front_pic.png diff --git a/graphics/trainers/front_pics/salon_maiden_anabel_front_pic.png b/graphics/trainers/front_pics/salon_maiden_anabel_front_pic.png deleted file mode 100644 index 28fedca38..000000000 Binary files a/graphics/trainers/front_pics/salon_maiden_anabel_front_pic.png and /dev/null differ diff --git a/graphics/trainers/front_pics/tuber_front_pic.png b/graphics/trainers/front_pics/tuber_f_front_pic.png similarity index 100% rename from graphics/trainers/front_pics/tuber_front_pic.png rename to graphics/trainers/front_pics/tuber_f_front_pic.png diff --git a/graphics/trainers/front_pics/emerald_tuber_m_front_pic.png b/graphics/trainers/front_pics/tuber_m_front_pic.png similarity index 100% rename from graphics/trainers/front_pics/emerald_tuber_m_front_pic.png rename to graphics/trainers/front_pics/tuber_m_front_pic.png diff --git a/graphics/trainers/palettes/arena_tycoon_greta.pal b/graphics/trainers/palettes/arena_tycoon_greta.pal deleted file mode 100644 index 60c45e8e9..000000000 --- a/graphics/trainers/palettes/arena_tycoon_greta.pal +++ /dev/null @@ -1,19 +0,0 @@ -JASC-PAL -0100 -16 -115 197 164 -255 222 205 -238 180 148 -197 139 106 -106 74 74 -139 172 213 -90 131 189 -255 230 106 -213 189 90 -213 222 230 -65 82 123 -189 156 90 -255 115 148 -213 82 115 -255 255 255 -0 0 0 diff --git a/graphics/trainers/palettes/brendan.pal b/graphics/trainers/palettes/brendan.pal deleted file mode 100644 index 7274e303e..000000000 --- a/graphics/trainers/palettes/brendan.pal +++ /dev/null @@ -1,19 +0,0 @@ -JASC-PAL -0100 -16 -115 197 164 -255 222 205 -222 164 148 -205 131 115 -123 90 82 -98 123 156 -74 90 131 -49 65 106 -24 41 82 -222 230 238 -139 222 115 -98 156 90 -255 98 90 -197 65 65 -255 255 255 -0 0 0 diff --git a/graphics/trainers/palettes/blue_1.pal b/graphics/trainers/palettes/champion_rival.pal similarity index 100% rename from graphics/trainers/palettes/blue_1.pal rename to graphics/trainers/palettes/champion_rival.pal diff --git a/graphics/trainers/palettes/steven.pal b/graphics/trainers/palettes/champion_steven.pal similarity index 100% rename from graphics/trainers/palettes/steven.pal rename to graphics/trainers/palettes/champion_steven.pal diff --git a/graphics/trainers/palettes/roughneck.pal b/graphics/trainers/palettes/cue_ball.pal similarity index 100% rename from graphics/trainers/palettes/roughneck.pal rename to graphics/trainers/palettes/cue_ball.pal diff --git a/graphics/trainers/palettes/dome_ace_tucker.pal b/graphics/trainers/palettes/dome_ace_tucker.pal deleted file mode 100644 index 33bb1aa68..000000000 --- a/graphics/trainers/palettes/dome_ace_tucker.pal +++ /dev/null @@ -1,19 +0,0 @@ -JASC-PAL -0100 -16 -115 197 164 -255 222 205 -238 180 148 -197 139 106 -106 74 74 -246 148 230 -230 115 213 -189 90 172 -139 74 115 -213 205 246 -230 213 106 -156 148 197 -238 238 139 -213 180 98 -255 255 255 -0 0 0 diff --git a/graphics/trainers/palettes/factory_head_noland.pal b/graphics/trainers/palettes/factory_head_noland.pal deleted file mode 100644 index 03bce8c77..000000000 --- a/graphics/trainers/palettes/factory_head_noland.pal +++ /dev/null @@ -1,19 +0,0 @@ -JASC-PAL -0100 -16 -115 197 164 -255 222 205 -238 180 148 -197 139 106 -106 74 74 -172 172 189 -131 131 164 -98 98 123 -65 65 90 -222 213 246 -238 213 106 -246 131 123 -213 90 90 -180 57 65 -255 255 255 -0 0 0 diff --git a/graphics/trainers/palettes/giovanni.pal b/graphics/trainers/palettes/leader_giovanni.pal similarity index 100% rename from graphics/trainers/palettes/giovanni.pal rename to graphics/trainers/palettes/leader_giovanni.pal diff --git a/graphics/trainers/palettes/leader_juan.pal b/graphics/trainers/palettes/leader_juan.pal deleted file mode 100644 index 96467bdc3..000000000 --- a/graphics/trainers/palettes/leader_juan.pal +++ /dev/null @@ -1,19 +0,0 @@ -JASC-PAL -0100 -16 -115 197 164 -255 222 205 -222 180 148 -180 131 98 -123 90 82 -213 115 222 -148 65 180 -106 148 255 -82 106 189 -74 74 148 -164 180 189 -98 115 123 -98 49 90 -213 213 222 -255 255 255 -0 0 0 diff --git a/graphics/trainers/palettes/champion_wallace.pal b/graphics/trainers/palettes/leader_wallace.pal similarity index 100% rename from graphics/trainers/palettes/champion_wallace.pal rename to graphics/trainers/palettes/leader_wallace.pal diff --git a/graphics/trainers/palettes/magma_admin.pal b/graphics/trainers/palettes/magma_admin_f.pal similarity index 100% rename from graphics/trainers/palettes/magma_admin.pal rename to graphics/trainers/palettes/magma_admin_f.pal diff --git a/graphics/trainers/palettes/ruby_magma_admin_f.pal b/graphics/trainers/palettes/magma_admin_m.pal similarity index 100% rename from graphics/trainers/palettes/ruby_magma_admin_f.pal rename to graphics/trainers/palettes/magma_admin_m.pal diff --git a/graphics/trainers/palettes/may.pal b/graphics/trainers/palettes/may.pal deleted file mode 100644 index fd706c07f..000000000 --- a/graphics/trainers/palettes/may.pal +++ /dev/null @@ -1,19 +0,0 @@ -JASC-PAL -0100 -16 -115 197 164 -255 222 205 -222 164 148 -205 131 115 -123 90 82 -98 98 115 -41 57 65 -164 106 82 -74 49 57 -205 205 222 -139 222 115 -98 156 90 -255 98 90 -197 65 65 -255 255 255 -0 0 0 diff --git a/graphics/trainers/palettes/palace_maven_spenser.pal b/graphics/trainers/palettes/palace_maven_spenser.pal deleted file mode 100644 index 40a634974..000000000 --- a/graphics/trainers/palettes/palace_maven_spenser.pal +++ /dev/null @@ -1,19 +0,0 @@ -JASC-PAL -0100 -16 -115 197 164 -230 205 156 -189 164 115 -164 131 82 -106 74 74 -172 172 213 -123 131 189 -90 98 148 -57 65 90 -222 213 246 -238 213 106 -246 230 180 -230 115 74 -222 180 98 -255 255 255 -0 0 0 diff --git a/graphics/trainers/palettes/pike_queen_lucy.pal b/graphics/trainers/palettes/pike_queen_lucy.pal deleted file mode 100644 index fd3b46b8b..000000000 --- a/graphics/trainers/palettes/pike_queen_lucy.pal +++ /dev/null @@ -1,19 +0,0 @@ -JASC-PAL -0100 -16 -115 197 164 -255 222 205 -238 180 148 -197 139 106 -106 74 74 -205 123 213 -148 90 148 -115 57 106 -57 57 57 -213 222 230 -172 65 65 -255 197 90 -115 106 123 -213 82 115 -255 255 255 -0 0 0 diff --git a/graphics/trainers/palettes/winstrate_f.pal b/graphics/trainers/palettes/pokefan_f.pal similarity index 100% rename from graphics/trainers/palettes/winstrate_f.pal rename to graphics/trainers/palettes/pokefan_f.pal diff --git a/graphics/trainers/palettes/winstrate_m.pal b/graphics/trainers/palettes/pokefan_m.pal similarity index 100% rename from graphics/trainers/palettes/winstrate_m.pal rename to graphics/trainers/palettes/pokefan_m.pal diff --git a/graphics/trainers/palettes/pokemon_breeder.pal b/graphics/trainers/palettes/pokemon_breeder_f.pal similarity index 100% rename from graphics/trainers/palettes/pokemon_breeder.pal rename to graphics/trainers/palettes/pokemon_breeder_f.pal diff --git a/graphics/trainers/palettes/emerald_pokemon_breeder_m.pal b/graphics/trainers/palettes/pokemon_breeder_m.pal similarity index 100% rename from graphics/trainers/palettes/emerald_pokemon_breeder_m.pal rename to graphics/trainers/palettes/pokemon_breeder_m.pal diff --git a/graphics/trainers/palettes/oak.pal b/graphics/trainers/palettes/professor_oak.pal similarity index 100% rename from graphics/trainers/palettes/oak.pal rename to graphics/trainers/palettes/professor_oak.pal diff --git a/graphics/trainers/palettes/pyramid_king_brandon.pal b/graphics/trainers/palettes/pyramid_king_brandon.pal deleted file mode 100644 index 77b5483b8..000000000 --- a/graphics/trainers/palettes/pyramid_king_brandon.pal +++ /dev/null @@ -1,19 +0,0 @@ -JASC-PAL -0100 -16 -115 197 164 -255 222 205 -238 180 148 -197 139 106 -106 74 74 -164 213 90 -123 172 65 -82 115 41 -57 82 41 -213 205 213 -172 123 90 -139 139 123 -131 98 65 -213 106 74 -255 255 255 -0 0 0 diff --git a/graphics/trainers/palettes/blue_2.pal b/graphics/trainers/palettes/rival_1.pal similarity index 100% rename from graphics/trainers/palettes/blue_2.pal rename to graphics/trainers/palettes/rival_1.pal diff --git a/graphics/trainers/palettes/champion_blue.pal b/graphics/trainers/palettes/rival_2.pal similarity index 100% rename from graphics/trainers/palettes/champion_blue.pal rename to graphics/trainers/palettes/rival_2.pal diff --git a/graphics/trainers/palettes/emerald_aroma_lady.pal b/graphics/trainers/palettes/rs_aroma_lady.pal similarity index 100% rename from graphics/trainers/palettes/emerald_aroma_lady.pal rename to graphics/trainers/palettes/rs_aroma_lady.pal diff --git a/graphics/trainers/palettes/emerald_beauty.pal b/graphics/trainers/palettes/rs_beauty.pal similarity index 100% rename from graphics/trainers/palettes/emerald_beauty.pal rename to graphics/trainers/palettes/rs_beauty.pal diff --git a/graphics/trainers/palettes/emerald_bird_keeper.pal b/graphics/trainers/palettes/rs_bird_keeper.pal similarity index 100% rename from graphics/trainers/palettes/emerald_bird_keeper.pal rename to graphics/trainers/palettes/rs_bird_keeper.pal diff --git a/graphics/trainers/palettes/emerald_black_belt.pal b/graphics/trainers/palettes/rs_black_belt.pal similarity index 100% rename from graphics/trainers/palettes/emerald_black_belt.pal rename to graphics/trainers/palettes/rs_black_belt.pal diff --git a/graphics/trainers/palettes/emerald_bug_catcher.pal b/graphics/trainers/palettes/rs_bug_catcher.pal similarity index 100% rename from graphics/trainers/palettes/emerald_bug_catcher.pal rename to graphics/trainers/palettes/rs_bug_catcher.pal diff --git a/graphics/trainers/palettes/emerald_camper.pal b/graphics/trainers/palettes/rs_camper.pal similarity index 100% rename from graphics/trainers/palettes/emerald_camper.pal rename to graphics/trainers/palettes/rs_camper.pal diff --git a/graphics/trainers/palettes/emerald_cool_trainer_f.pal b/graphics/trainers/palettes/rs_cool_trainer_f.pal similarity index 100% rename from graphics/trainers/palettes/emerald_cool_trainer_f.pal rename to graphics/trainers/palettes/rs_cool_trainer_f.pal diff --git a/graphics/trainers/palettes/emerald_cool_trainer_m.pal b/graphics/trainers/palettes/rs_cool_trainer_m.pal similarity index 100% rename from graphics/trainers/palettes/emerald_cool_trainer_m.pal rename to graphics/trainers/palettes/rs_cool_trainer_m.pal diff --git a/graphics/trainers/palettes/emerald_fisherman.pal b/graphics/trainers/palettes/rs_fisherman.pal similarity index 100% rename from graphics/trainers/palettes/emerald_fisherman.pal rename to graphics/trainers/palettes/rs_fisherman.pal diff --git a/graphics/trainers/palettes/emerald_gentleman.pal b/graphics/trainers/palettes/rs_gentleman.pal similarity index 100% rename from graphics/trainers/palettes/emerald_gentleman.pal rename to graphics/trainers/palettes/rs_gentleman.pal diff --git a/graphics/trainers/palettes/emerald_hiker.pal b/graphics/trainers/palettes/rs_hiker.pal similarity index 100% rename from graphics/trainers/palettes/emerald_hiker.pal rename to graphics/trainers/palettes/rs_hiker.pal diff --git a/graphics/trainers/palettes/emerald_lady.pal b/graphics/trainers/palettes/rs_lady.pal similarity index 100% rename from graphics/trainers/palettes/emerald_lady.pal rename to graphics/trainers/palettes/rs_lady.pal diff --git a/graphics/trainers/palettes/emerald_lass.pal b/graphics/trainers/palettes/rs_lass.pal similarity index 100% rename from graphics/trainers/palettes/emerald_lass.pal rename to graphics/trainers/palettes/rs_lass.pal diff --git a/graphics/trainers/palettes/emerald_picnicker.pal b/graphics/trainers/palettes/rs_picnicker.pal similarity index 100% rename from graphics/trainers/palettes/emerald_picnicker.pal rename to graphics/trainers/palettes/rs_picnicker.pal diff --git a/graphics/trainers/palettes/emerald_pokemaniac.pal b/graphics/trainers/palettes/rs_pokemaniac.pal similarity index 100% rename from graphics/trainers/palettes/emerald_pokemaniac.pal rename to graphics/trainers/palettes/rs_pokemaniac.pal diff --git a/graphics/trainers/palettes/emerald_pokemon_breeder_f.pal b/graphics/trainers/palettes/rs_pokemon_breeder_f.pal similarity index 100% rename from graphics/trainers/palettes/emerald_pokemon_breeder_f.pal rename to graphics/trainers/palettes/rs_pokemon_breeder_f.pal diff --git a/graphics/trainers/palettes/emerald_pokemon_ranger_f.pal b/graphics/trainers/palettes/rs_pokemon_ranger_f.pal similarity index 100% rename from graphics/trainers/palettes/emerald_pokemon_ranger_f.pal rename to graphics/trainers/palettes/rs_pokemon_ranger_f.pal diff --git a/graphics/trainers/palettes/emerald_pokemon_ranger_m.pal b/graphics/trainers/palettes/rs_pokemon_ranger_m.pal similarity index 100% rename from graphics/trainers/palettes/emerald_pokemon_ranger_m.pal rename to graphics/trainers/palettes/rs_pokemon_ranger_m.pal diff --git a/graphics/trainers/palettes/emerald_psychic_f.pal b/graphics/trainers/palettes/rs_psychic_f.pal similarity index 100% rename from graphics/trainers/palettes/emerald_psychic_f.pal rename to graphics/trainers/palettes/rs_psychic_f.pal diff --git a/graphics/trainers/palettes/emerald_psychic_m.pal b/graphics/trainers/palettes/rs_psychic_m.pal similarity index 100% rename from graphics/trainers/palettes/emerald_psychic_m.pal rename to graphics/trainers/palettes/rs_psychic_m.pal diff --git a/graphics/trainers/palettes/emerald_ruin_maniac.pal b/graphics/trainers/palettes/rs_ruin_maniac.pal similarity index 100% rename from graphics/trainers/palettes/emerald_ruin_maniac.pal rename to graphics/trainers/palettes/rs_ruin_maniac.pal diff --git a/graphics/trainers/palettes/emerald_sailor.pal b/graphics/trainers/palettes/rs_sailor.pal similarity index 100% rename from graphics/trainers/palettes/emerald_sailor.pal rename to graphics/trainers/palettes/rs_sailor.pal diff --git a/graphics/trainers/palettes/emerald_sis_and_bro.pal b/graphics/trainers/palettes/rs_sis_and_bro.pal similarity index 100% rename from graphics/trainers/palettes/emerald_sis_and_bro.pal rename to graphics/trainers/palettes/rs_sis_and_bro.pal diff --git a/graphics/trainers/palettes/emerald_swimmer_f.pal b/graphics/trainers/palettes/rs_swimmer_f.pal similarity index 100% rename from graphics/trainers/palettes/emerald_swimmer_f.pal rename to graphics/trainers/palettes/rs_swimmer_f.pal diff --git a/graphics/trainers/palettes/emerald_swimmer_m.pal b/graphics/trainers/palettes/rs_swimmer_m.pal similarity index 100% rename from graphics/trainers/palettes/emerald_swimmer_m.pal rename to graphics/trainers/palettes/rs_swimmer_m.pal diff --git a/graphics/trainers/palettes/emerald_tuber_f.pal b/graphics/trainers/palettes/rs_tuber_f.pal similarity index 100% rename from graphics/trainers/palettes/emerald_tuber_f.pal rename to graphics/trainers/palettes/rs_tuber_f.pal diff --git a/graphics/trainers/palettes/emerald_twins.pal b/graphics/trainers/palettes/rs_twins.pal similarity index 100% rename from graphics/trainers/palettes/emerald_twins.pal rename to graphics/trainers/palettes/rs_twins.pal diff --git a/graphics/trainers/palettes/emerald_young_couple.pal b/graphics/trainers/palettes/rs_young_couple.pal similarity index 100% rename from graphics/trainers/palettes/emerald_young_couple.pal rename to graphics/trainers/palettes/rs_young_couple.pal diff --git a/graphics/trainers/palettes/emerald_youngster.pal b/graphics/trainers/palettes/rs_youngster.pal similarity index 100% rename from graphics/trainers/palettes/emerald_youngster.pal rename to graphics/trainers/palettes/rs_youngster.pal diff --git a/graphics/trainers/palettes/salon_maiden_anabel.pal b/graphics/trainers/palettes/salon_maiden_anabel.pal deleted file mode 100644 index 91776562f..000000000 --- a/graphics/trainers/palettes/salon_maiden_anabel.pal +++ /dev/null @@ -1,19 +0,0 @@ -JASC-PAL -0100 -16 -115 197 164 -255 222 205 -238 180 148 -197 139 106 -106 74 74 -230 139 255 -189 115 213 -148 90 172 -123 74 139 -213 205 246 -255 197 90 -156 148 197 -255 222 115 -213 106 74 -255 255 255 -0 0 0 diff --git a/graphics/trainers/palettes/tuber.pal b/graphics/trainers/palettes/tuber_f.pal similarity index 100% rename from graphics/trainers/palettes/tuber.pal rename to graphics/trainers/palettes/tuber_f.pal diff --git a/graphics/trainers/palettes/emerald_tuber_m.pal b/graphics/trainers/palettes/tuber_m.pal similarity index 100% rename from graphics/trainers/palettes/emerald_tuber_m.pal rename to graphics/trainers/palettes/tuber_m.pal diff --git a/graphics_file_rules.mk b/graphics_file_rules.mk index 60bf4c73b..3a42a3cea 100644 --- a/graphics_file_rules.mk +++ b/graphics_file_rules.mk @@ -515,3 +515,9 @@ POKEDEXAREAMARKERFILES := \ $(POKEDEXAREAMARKERSDATADIR)/marker.4bpp: $(POKEDEXAREAMARKERFILES) cat $^ > $@ + +graphics/pokemon/heracross/unk_icon.4bpp: %.4bpp: %.png + $(GFX) $< $@ -mwidth 4 -mheight 4 + +graphics/map_objects/151.4bpp: %.4bpp: %.png + $(GFX) $< $@ -mwidth 8 -mheight 4 diff --git a/include/battle.h b/include/battle.h index 754e92997..40a2eba04 100644 --- a/include/battle.h +++ b/include/battle.h @@ -18,14 +18,6 @@ 0x2 bit is responsible for the id of sent out pokemon. 0 means it's the first sent out pokemon, 1 it's the second one. (Triple battle didn't exist at the time yet.) */ -#define IDENTITY_PLAYER_MON1 0 -#define IDENTITY_OPPONENT_MON1 1 -#define IDENTITY_PLAYER_MON2 2 -#define IDENTITY_OPPONENT_MON2 3 - -#define SIDE_PLAYER 0x0 -#define SIDE_OPPONENT 0x1 - #define GET_BATTLER_POSITION(battler)((gBattlerPositions[battler])) #define GET_BATTLER_SIDE(battler)((GetBattlerPosition(battler) & BIT_SIDE)) #define GET_BATTLER_SIDE2(battler)((GET_BATTLER_POSITION(battler) & BIT_SIDE)) @@ -36,40 +28,6 @@ #define STEVEN_PARTNER_ID 0xC03 #define SECRET_BASE_OPPONENT 0x400 -#define BATTLE_WON 0x1 -#define BATTLE_LOST 0x2 -#define BATTLE_DREW 0x3 -#define BATTLE_RAN 0x4 -#define BATTLE_PLAYER_TELEPORTED 0x5 -#define BATTLE_POKE_FLED 0x6 -#define BATTLE_CAUGHT 0x7 -#define BATTLE_SAFARI_OUT_OF_BALLS 0x8 -#define BATTLE_FORFEITED 0x9 -#define BATTLE_OPPONENT_TELEPORTED 0xA - -#define OUTCOME_LINK_BATTLE_RUN 0x80 - -#define STATUS_NONE 0x0 -#define STATUS_SLEEP 0x7 -#define STATUS_POISON 0x8 -#define STATUS_BURN 0x10 -#define STATUS_FREEZE 0x20 -#define STATUS_PARALYSIS 0x40 -#define STATUS_TOXIC_POISON 0x80 -#define STATUS_TOXIC_COUNTER 0xF00 - -#define STATUS_PSN_ANY ((STATUS_POISON | STATUS_TOXIC_POISON)) -#define STATUS_ANY ((STATUS_SLEEP | STATUS_POISON | STATUS_BURN | STATUS_FREEZE | STATUS_PARALYSIS | STATUS_TOXIC_POISON)) - -#define SIDE_STATUS_REFLECT (1 << 0) -#define SIDE_STATUS_LIGHTSCREEN (1 << 1) -#define SIDE_STATUS_X4 (1 << 2) -#define SIDE_STATUS_SPIKES (1 << 4) -#define SIDE_STATUS_SAFEGUARD (1 << 5) -#define SIDE_STATUS_FUTUREATTACK (1 << 6) -#define SIDE_STATUS_MIST (1 << 8) -#define SIDE_STATUS_SPIKES_DAMAGED (1 << 9) - #define B_ACTION_USE_MOVE 0 #define B_ACTION_USE_ITEM 1 #define B_ACTION_SWITCH 2 @@ -79,7 +37,7 @@ #define B_ACTION_SAFARI_POKEBLOCK 6 #define B_ACTION_SAFARI_GO_NEAR 7 #define B_ACTION_SAFARI_RUN 8 -#define B_ACTION_9 9 +#define B_ACTION_OLDMAN_THROW 9 #define B_ACTION_EXEC_SCRIPT 10 #define B_ACTION_TRY_FINISH 11 #define B_ACTION_FINISHED 12 @@ -87,31 +45,9 @@ #define B_ACTION_NOTHING_FAINTED 13 // when choosing an action #define B_ACTION_NONE 0xFF -#define MOVESTATUS_MISSED (1 << 0) -#define MOVESTATUS_SUPEREFFECTIVE (1 << 1) -#define MOVESTATUS_NOTVERYEFFECTIVE (1 << 2) -#define MOVESTATUS_NOTAFFECTED (1 << 3) -#define MOVESTATUS_ONEHITKO (1 << 4) -#define MOVESTATUS_FAILED (1 << 5) -#define MOVESTATUS_ENDURED (1 << 6) -#define MOVESTATUS_HUNGON (1 << 7) - -#define MOVESTATUS_NOEFFECT ((MOVESTATUS_MISSED | MOVESTATUS_NOTAFFECTED | MOVESTATUS_FAILED)) - #define MAX_TRAINER_ITEMS 4 #define MAX_MON_MOVES 4 -#define BATTLE_TERRAIN_GRASS 0 -#define BATTLE_TERRAIN_LONG_GRASS 1 -#define BATTLE_TERRAIN_SAND 2 -#define BATTLE_TERRAIN_UNDERWATER 3 -#define BATTLE_TERRAIN_WATER 4 -#define BATTLE_TERRAIN_POND 5 -#define BATTLE_TERRAIN_ROCK 6 -#define BATTLE_TERRAIN_CAVE 7 -#define BATTLE_TERRAIN_INSIDE 8 -#define BATTLE_TERRAIN_PLAIN 9 - // array entries for battle communication #define MULTIUSE_STATE 0x0 #define CURSOR_POSITION 0x1 @@ -133,29 +69,6 @@ #define MOVE_TARGET_FOES_AND_ALLY 0x20 #define MOVE_TARGET_OPPONENTS_FIELD 0x40 -// defines for the u8 array gTypeEffectiveness -#define TYPE_EFFECT_ATK_TYPE(i)((gTypeEffectiveness[i + 0])) -#define TYPE_EFFECT_DEF_TYPE(i)((gTypeEffectiveness[i + 1])) -#define TYPE_EFFECT_MULTIPLIER(i)((gTypeEffectiveness[i + 2])) - -// defines for the gTypeEffectiveness multipliers -#define TYPE_MUL_NO_EFFECT 0 -#define TYPE_MUL_NOT_EFFECTIVE 5 -#define TYPE_MUL_NORMAL 10 -#define TYPE_MUL_SUPER_EFFECTIVE 20 - -// special type table Ids -#define TYPE_FORESIGHT 0xFE -#define TYPE_ENDTABLE 0xFF - -// for battle script commands -#define CMP_EQUAL 0x0 -#define CMP_NOT_EQUAL 0x1 -#define CMP_GREATER_THAN 0x2 -#define CMP_LESS_THAN 0x3 -#define CMP_COMMON_BITS 0x4 -#define CMP_NO_COMMON_BITS 0x5 - struct TrainerMonNoItemDefaultMoves { u16 iv; @@ -190,10 +103,10 @@ struct TrainerMonItemCustomMoves union TrainerMonPtr { - struct TrainerMonNoItemDefaultMoves *NoItemDefaultMoves; - struct TrainerMonNoItemCustomMoves *NoItemCustomMoves; - struct TrainerMonItemDefaultMoves *ItemDefaultMoves; - struct TrainerMonItemCustomMoves *ItemCustomMoves; + const struct TrainerMonNoItemDefaultMoves *NoItemDefaultMoves; + const struct TrainerMonNoItemCustomMoves *NoItemCustomMoves; + const struct TrainerMonItemDefaultMoves *ItemDefaultMoves; + const struct TrainerMonItemCustomMoves *ItemCustomMoves; }; struct Trainer @@ -207,16 +120,11 @@ struct Trainer /*0x18*/ bool8 doubleBattle; /*0x1C*/ u32 aiFlags; /*0x20*/ u8 partySize; - /*0x24*/ union TrainerMonPtr party; + /*0x24*/ const union TrainerMonPtr party; }; -#define PARTY_FLAG_CUSTOM_MOVES 0x1 -#define PARTY_FLAG_HAS_ITEM 0x2 - extern const struct Trainer gTrainers[]; -#define TRAINER_ENCOUNTER_MUSIC(trainer)((gTrainers[trainer].encounterMusic_gender & 0x7F)) - struct ResourceFlags { u32 flags[4]; @@ -373,22 +281,6 @@ extern u8 gActiveBattler; extern u8 gBattlerTarget; extern u8 gAbsentBattlerFlags; -// script's table id to bit -#define AI_SCRIPT_CHECK_BAD_MOVE (1 << 0) -#define AI_SCRIPT_TRY_TO_FAINT (1 << 1) -#define AI_SCRIPT_CHECK_VIABILITY (1 << 2) -#define AI_SCRIPT_SETUP_FIRST_TURN (1 << 3) -#define AI_SCRIPT_RISKY (1 << 4) -#define AI_SCRIPT_PREFER_STRONGEST_MOVE (1 << 5) -#define AI_SCRIPT_PREFER_BATON_PASS (1 << 6) -#define AI_SCRIPT_DOUBLE_BATTLE (1 << 7) -#define AI_SCRIPT_HP_AWARE (1 << 8) -#define AI_SCRIPT_UNKNOWN (1 << 9) -// 10 - 28 are not used -#define AI_SCRIPT_ROAMING (1 << 29) -#define AI_SCRIPT_SAFARI (1 << 30) -#define AI_SCRIPT_FIRST_BATTLE (1 << 31) - extern struct BattlePokemon gBattleMons[MAX_BATTLERS_COUNT]; struct UsedMoves @@ -437,10 +329,6 @@ struct BattleResources extern struct BattleResources *gBattleResources; -#define BATTLESCRIPTS_STACK (gBattleResources->battleScriptsStack) -#define BATTLE_CALLBACKS_STACK (gBattleResources->battleCallbackStack) -#define BATTLE_LVLUP_STATS (gBattleResources->statsBeforeLvlUp) - struct BattleResults { u8 playerFaintCounter; // 0x0 @@ -521,22 +409,20 @@ struct BattleStruct u8 expGetterBattlerId; u8 field_90; u8 field_91; - u8 AI_monToSwitchIntoId[MAX_BATTLERS_COUNT]; + u8 AI_monToSwitchIntoId[2]; + u8 field_94; + u8 field_95; u8 field_96; u8 field_97; u8 lastTakenMove[MAX_BATTLERS_COUNT * 2 * 2]; // ask gamefreak why they declared it that way u16 hpOnSwitchout[2]; u8 abilityPreventingSwitchout; u8 hpScale; - u8 field_AE; - u8 field_AF; - u8 field_B0; - u8 field_B1; - u8 field_B2; - u8 field_B3; + u16 savedBattleTypeFlags; + void (*savedCallback)(void); u8 synchronizeMoveEffect; - u8 field_B5; - u8 field_B6; + u8 multiplayerId; + u8 overworldWeatherDone; u8 atkCancellerTracker; u16 usedHeldItems[MAX_BATTLERS_COUNT]; u8 chosenItem[4]; // why is this an u8? @@ -556,7 +442,12 @@ struct BattleStruct u8 wishPerishSongBattlerId; u8 field_182; u8 field_183; - u8 field_184[124]; // currently unknown + u8 field_184; + u8 field_185; + u8 field_186; + u8 field_187; + struct BattleEnigmaBerry battleEnigmaBerry; + u8 field_1A4[0x5C]; // currently unknown }; // size == 0x200 bytes extern struct BattleStruct *gBattleStruct; @@ -579,72 +470,6 @@ extern struct BattleStruct *gBattleStruct; gBattleMons[battlerId].type2 = type; \ } -#define MOVE_EFFECT_SLEEP 0x1 -#define MOVE_EFFECT_POISON 0x2 -#define MOVE_EFFECT_BURN 0x3 -#define MOVE_EFFECT_FREEZE 0x4 -#define MOVE_EFFECT_PARALYSIS 0x5 -#define MOVE_EFFECT_TOXIC 0x6 -#define MOVE_EFFECT_CONFUSION 0x7 -#define MOVE_EFFECT_FLINCH 0x8 -#define MOVE_EFFECT_TRI_ATTACK 0x9 -#define MOVE_EFFECT_UPROAR 0xA -#define MOVE_EFFECT_PAYDAY 0xB -#define MOVE_EFFECT_CHARGING 0xC -#define MOVE_EFFECT_WRAP 0xD -#define MOVE_EFFECT_RECOIL_25 0xE -#define MOVE_EFFECT_ATK_PLUS_1 0xF -#define MOVE_EFFECT_DEF_PLUS_1 0x10 -#define MOVE_EFFECT_SPD_PLUS_1 0x11 -#define MOVE_EFFECT_SP_ATK_PLUS_1 0x12 -#define MOVE_EFFECT_SP_DEF_PLUS_1 0x13 -#define MOVE_EFFECT_ACC_PLUS_1 0x14 -#define MOVE_EFFECT_EVS_PLUS_1 0x15 -#define MOVE_EFFECT_ATK_MINUS_1 0x16 -#define MOVE_EFFECT_DEF_MINUS_1 0x17 -#define MOVE_EFFECT_SPD_MINUS_1 0x18 -#define MOVE_EFFECT_SP_ATK_MINUS_1 0x19 -#define MOVE_EFFECT_SP_DEF_MINUS_1 0x1A -#define MOVE_EFFECT_ACC_MINUS_1 0x1B -#define MOVE_EFFECT_EVS_MINUS_1 0x1C -#define MOVE_EFFECT_RECHARGE 0x1D -#define MOVE_EFFECT_RAGE 0x1E -#define MOVE_EFFECT_STEAL_ITEM 0x1F -#define MOVE_EFFECT_PREVENT_ESCAPE 0x20 -#define MOVE_EFFECT_NIGHTMARE 0x21 -#define MOVE_EFFECT_ALL_STATS_UP 0x22 -#define MOVE_EFFECT_RAPIDSPIN 0x23 -#define MOVE_EFFECT_REMOVE_PARALYSIS 0x24 -#define MOVE_EFFECT_ATK_DEF_DOWN 0x25 -#define MOVE_EFFECT_RECOIL_33_PARALYSIS 0x26 -#define MOVE_EFFECT_ATK_PLUS_2 0x27 -#define MOVE_EFFECT_DEF_PLUS_2 0x28 -#define MOVE_EFFECT_SPD_PLUS_2 0x29 -#define MOVE_EFFECT_SP_ATK_PLUS_2 0x2A -#define MOVE_EFFECT_SP_DEF_PLUS_2 0x2B -#define MOVE_EFFECT_ACC_PLUS_2 0x2C -#define MOVE_EFFECT_EVS_PLUS_2 0x2D -#define MOVE_EFFECT_ATK_MINUS_2 0x2E -#define MOVE_EFFECT_DEF_MINUS_2 0x2F -#define MOVE_EFFECT_SPD_MINUS_2 0x30 -#define MOVE_EFFECT_SP_ATK_MINUS_2 0x31 -#define MOVE_EFFECT_SP_DEF_MINUS_2 0x32 -#define MOVE_EFFECT_ACC_MINUS_2 0x33 -#define MOVE_EFFECT_EVS_MINUS_2 0x34 -#define MOVE_EFFECT_THRASH 0x35 -#define MOVE_EFFECT_KNOCK_OFF 0x36 -#define MOVE_EFFECT_NOTHING_37 0x37 -#define MOVE_EFFECT_NOTHING_38 0x38 -#define MOVE_EFFECT_NOTHING_39 0x39 -#define MOVE_EFFECT_NOTHING_3A 0x3A -#define MOVE_EFFECT_SP_ATK_TWO_DOWN 0x3B -#define MOVE_EFFECT_NOTHING_3C 0x3C -#define MOVE_EFFECT_NOTHING_3D 0x3D -#define MOVE_EFFECT_NOTHING_3E 0x3E -#define MOVE_EFFECT_NOTHING_3F 0x3F -#define MOVE_EFFECT_AFFECTS_USER 0x40 -#define MOVE_EFFECT_CERTAIN 0x80 - #define GET_STAT_BUFF_ID(n)((n & 0xF)) // first four bits 0x1, 0x2, 0x4, 0x8 #define GET_STAT_BUFF_VALUE2(n)((n & 0xF0)) #define GET_STAT_BUFF_VALUE(n)(((n >> 4) & 7)) // 0x10, 0x20, 0x40 @@ -654,32 +479,6 @@ extern struct BattleStruct *gBattleStruct; #define SET_STATCHANGER(statId, stage, goesDown)(gBattleScripting.statChanger = (statId) + (stage << 4) + (goesDown << 7)) -// used in many battle files, it seems as though Hisashi Sogabe wrote -// some sort of macro to replace the use of actually calling memset. -// Perhaps it was thought calling memset was much slower? - -// The compiler wont allow us to locally declare ptr in this macro; some -// functions that invoke this macro will not match without this egregeous -// assumption about the variable names, so in order to avoid this assumption, -// we opt to pass the variables themselves, even though it is likely that -// Sogabe assumed the variables were named src and dest. Trust me: I tried to -// avoid assuming variable names, but the ROM just will not match without the -// assumptions. Therefore, these macros are bad practice, but I'm putting them -// here anyway. -#define MEMSET_ALT(data, c, size, var, dest) \ -{ \ - dest = (u8 *)data; \ - for(var = 0; var < (u32)size; var++) \ - dest[var] = c; \ -} \ - -#define MEMCPY_ALT(data, dest, size, var, src) \ -{ \ - src = (u8 *)data; \ - for(var = 0; var < (u32)size; var++) \ - dest[var] = src[var]; \ -} \ - struct BattleScripting { s32 painSplitHp; @@ -708,17 +507,6 @@ struct BattleScripting u8 field_23; }; -// functions - -// battle_1 -void LoadBattleTextboxAndBackground(void); -void LoadBattleEntryBackground(void); -void ApplyPlayerChosenFrameToBattleMenu(void); -bool8 LoadChosenBattleElement(u8 caseId); -void DrawMainBattleBackground(void); -void task00_0800F6FC(u8 taskId); -void sub_800F324(void); - enum { BACK_PIC_BRENDAN, @@ -731,11 +519,6 @@ enum BACK_PIC_STEVEN }; -// rom_80A5C6C -u8 GetBattlerSide(u8 bank); -u8 GetBattlerPosition(u8 bank); -u8 GetBattlerAtPosition(u8 bank); - struct BattleSpriteInfo { u16 invisible : 1; // 0x1 @@ -929,5 +712,8 @@ extern u16 gLastPrintedMoves[MAX_BATTLERS_COUNT]; extern u8 gActionsByTurnOrder[MAX_BATTLERS_COUNT]; extern u8 gChosenActionByBattler[MAX_BATTLERS_COUNT]; extern u8 gBattleTerrain; +extern struct UnknownPokemonStruct4 gUnknown_2022B58[3]; +extern u16 *gUnknown_2022BC0; +extern u16 gRandomTurnNumber; #endif // GUARD_BATTLE_H diff --git a/include/battle_anim.h b/include/battle_anim.h index feaa8816b..9db123f91 100644 --- a/include/battle_anim.h +++ b/include/battle_anim.h @@ -2,8 +2,9 @@ #define GUARD_BATTLE_ANIM_H #include "battle.h" -#include "constants/battle_anim.h" +#include "data.h" #include "task.h" +#include "constants/battle_anim.h" enum { @@ -166,8 +167,12 @@ void LaunchStatusAnimation(u8 bank, u8 statusAnimId); u8 ItemIdToBallId(u16 itemId); u8 LaunchBallStarsTask(u8 x, u8 y, u8 kindOfStars, u8 arg3, u8 ballId); u8 LaunchBallFadeMonTask(bool8 unFadeLater, u8 battlerId, u32 arg2, u8 ballId); +void sub_80EEFC8(u8 *, u8 *, u8 battlerId); +void sub_80EF0E0(u8 batterId); // battle_anim_mons.c +extern const struct MonCoords gCastformFrontSpriteCoords[]; + u8 GetBattlerSpriteCoord(u8 battlerId, u8 coordType); u8 GetBattlerSpriteCoord2(u8 battlerId, u8 coordType); u8 GetBattlerSpriteDefault_Y(u8 battlerId); @@ -237,9 +242,9 @@ void SetGreyscaleOrOriginalPalette(u16 paletteNum, bool8 restoreOriginalColor); u32 sub_8075BE8(u8 battleBackground, u8 attacker, u8 target, u8 attackerPartner, u8 targetPartner, u8 a6, u8 a7); u32 sub_8075CB8(u8 a1, u8 a2, u8 a3, u8 a4); u8 sub_8075D80(u8 a1); -void sub_8075D9C(struct Sprite *sprite); +void AnimSpriteOnMonPos(struct Sprite *sprite); void TranslateAnimSpriteToTargetMonLocation(struct Sprite *sprite); -void sub_8075E80(struct Sprite *sprite); +void AnimThrowProjectile(struct Sprite *sprite); void sub_8075F0C(struct Sprite *sprite); s16 CloneBattlerSpriteWithBlend(u8 animBattler); void obj_delete_but_dont_free_vram(struct Sprite *sprite); diff --git a/include/battle_bg.h b/include/battle_bg.h index 6bf90a104..29571b410 100644 --- a/include/battle_bg.h +++ b/include/battle_bg.h @@ -1,6 +1,15 @@ #ifndef GUARD_BATTLE_BG_H #define GUARD_BATTLE_BG_H +#include "bg.h" + +extern const struct BgTemplate gBattleBgTemplates[]; + void sub_800F34C(void); +void DrawBattleEntryBackground(void); +void sub_800F6FC(u8 taskId); +void LoadBattleMenuWindowGfx(void); +void LoadBattleTextboxAndBackground(void); +void sub_800F324(void); #endif // GUARD_BATTLE_BG_H diff --git a/include/battle_controllers.h b/include/battle_controllers.h index 6da4ca240..96f57c78a 100644 --- a/include/battle_controllers.h +++ b/include/battle_controllers.h @@ -260,16 +260,18 @@ void SetControllerToPlayerPartner(void); void SetControllerToSafari(void); // pokedude controller -void SetControllerToPokedude(void); +void SetControllerToPokeDude(void); -// oak controller -void SetControllerToOakOrOldman(void); +// oak and old man controller +void SetControllerToOakOrOldMan(void); bool8 sub_80EB2E0(u8); void sub_80EB2F4(u8); void sub_80E8570(void); void sub_80E85C0(void); void sub_80E8598(void); void sub_80E7988(void); +void sub_80EB30C(void); +void sub_80EB524(void); // link opponent void SetControllerToLinkOpponent(void); diff --git a/include/battle_main.h b/include/battle_main.h index 757ee3468..613171da9 100644 --- a/include/battle_main.h +++ b/include/battle_main.h @@ -1,6 +1,8 @@ #ifndef GUARD_BATTLE_MAIN_H #define GUARD_BATTLE_MAIN_H +#include "constants/abilities.h" + struct TrainerMoney { u8 classId; @@ -43,50 +45,10 @@ struct UnknownPokemonStruct4 #define BOUNCE_MON 0x0 #define BOUNCE_HEALTHBOX 0x1 -void CB2_InitBattle(void); -void BattleMainCB2(void); -void CB2_QuitRecordedBattle(void); -void sub_8038528(struct Sprite* sprite); -void sub_8038A04(void); // unused -void VBlankCB_Battle(void); -void sub_801182C(struct Sprite *sprite); -void sub_8011A1C(void); -u32 sub_80391E0(u8 arrayId, u8 caseId); -u32 sub_80397C4(u32 setId, u32 tableId); -void oac_poke_opponent(struct Sprite *sprite); -void SpriteCallbackDummy_2(struct Sprite *sprite); -void sub_8039934(struct Sprite *sprite); -void sub_8012098(struct Sprite *sprite); -void sub_8012044(struct Sprite *sprite); -void sub_8039B58(struct Sprite *sprite); -void sub_8039BB4(struct Sprite *sprite); -void sub_80105DC(struct Sprite *sprite); -void sub_8012110(struct Sprite *sprite); -void DoBounceEffect(u8 bank, u8 b, s8 c, s8 d); -void EndBounceEffect(u8 bank, bool8 b); -void sub_8039E44(struct Sprite *sprite); -void sub_8039E60(struct Sprite *sprite); -void sub_8039E84(struct Sprite *sprite); -void sub_801236C(struct Sprite *sprite); -void BeginBattleIntro(void); -void SwitchInClearSetData(void); -void FaintClearSetData(void); -void sub_803B3AC(void); // unused -void sub_803B598(void); // unused -void BattleTurnPassed(void); -u8 IsRunningFromBattleImpossible(void); -void sub_8013F6C(u8 battlerId); -void SwapTurnOrder(u8 id1, u8 id2); -u8 GetWhoStrikesFirst(u8 bank1, u8 bank2, bool8 ignoreChosenMoves); -void RunBattleScriptCommands_PopCallbacksStack(void); -void RunBattleScriptCommands(void); -bool8 TryRunFromBattle(u8 bank); -void sub_800FD9C(void); -void sub_80120C4(struct Sprite *); -void sub_8012100(struct Sprite *); -void nullsub_12(void); -void SpriteCB_FaintOpponentMon(struct Sprite *sprite); - +extern const struct SpriteTemplate gUnknown_824EFF0; +extern const struct OamData gOamData_824F010; +extern const struct OamData gOamData_824F018; +extern const u8 gTypeNames[][TYPE_NAME_LENGTH + 1]; extern const u8 gStatusConditionString_PoisonJpn[8]; extern const u8 gStatusConditionString_SleepJpn[8]; extern const u8 gStatusConditionString_ParalysisJpn[8]; @@ -94,10 +56,43 @@ extern const u8 gStatusConditionString_BurnJpn[8]; extern const u8 gStatusConditionString_IceJpn[8]; extern const u8 gStatusConditionString_ConfusionJpn[8]; extern const u8 gStatusConditionString_LoveJpn[8]; - -extern const u8 * const gStatusConditionStringsTable[7][2]; - +extern const u8 *const gStatusConditionStringsTable[7][2]; extern const u8 gTypeEffectiveness[336]; extern const struct TrainerMoney gTrainerMoneyTable[]; +extern const u8 *const gAbilityDescriptionPointers[ABILITIES_COUNT]; +extern const u8 gAbilityNames[ABILITIES_COUNT][ABILITY_NAME_LENGTH + 1]; + +void CB2_InitBattle(void); +void BattleMainCB2(void); +void FreeRestoreBattleData(void); +void VBlankCB_Battle(void); +void nullsub_9(struct Sprite *sprite); +void sub_801182C(struct Sprite *sprite); +void sub_8011A1C(void); +u32 sub_8011C44(u8 arrayId, u8 caseId); +void SpriteCB_WildMon(struct Sprite *sprite); +void SpriteCallbackDummy2(struct Sprite *sprite); +void SpriteCB_FaintOpponentMon(struct Sprite *sprite); +void sub_8012044(struct Sprite *sprite); +void sub_8012098(struct Sprite *sprite); +void sub_80120C4(struct Sprite *sprite); +void sub_8012100(struct Sprite *sprite); +void sub_8012110(struct Sprite *sprite); +void DoBounceEffect(u8 battler, u8 which, s8 delta, s8 amplitude); +void EndBounceEffect(u8 battler, u8 which); +void sub_8012354(struct Sprite *sprite); +void sub_801236C(struct Sprite *sprite); +void nullsub_12(void); +void BeginBattleIntro(void); +void SwitchInClearSetData(void); +void FaintClearSetData(void); +void BattleTurnPassed(void); +u8 IsRunningFromBattleImpossible(void); +void sub_8013F6C(u8 battler); +void SwapTurnOrder(u8 id1, u8 id2); +u8 GetWhoStrikesFirst(u8 battler1, u8 battler2, bool8 ignoreChosenMoves); +void RunBattleScriptCommands_PopCallbacksStack(void); +void RunBattleScriptCommands(void); +bool8 TryRunFromBattle(u8 battler); #endif // GUARD_BATTLE_MAIN_H diff --git a/include/battle_message.h b/include/battle_message.h index ffc9d5bb7..130dc7ce9 100644 --- a/include/battle_message.h +++ b/include/battle_message.h @@ -238,4 +238,12 @@ extern const u8* const gStatNamesTable2[]; extern const u16 gMissStringIds[]; extern const u16 gTrappingMoves[]; +extern const u8 gText_Sleep[]; +extern const u8 gText_Poison[]; +extern const u8 gText_Burn[]; +extern const u8 gText_Paralysis[]; +extern const u8 gText_Ice[]; +extern const u8 gText_Confusion[]; +extern const u8 gText_Love[]; + #endif // GUARD_BATTLE_MESSAGE_H diff --git a/include/battle_script_commands.h b/include/battle_script_commands.h index 3f2699064..983d9fce6 100644 --- a/include/battle_script_commands.h +++ b/include/battle_script_commands.h @@ -7,13 +7,6 @@ #define NO_ACC_CALC_CHECK_LOCK_ON 0xFFFF #define ACC_CURR_MOVE 0 -#define CMP_EQUAL 0x0 -#define CMP_NOT_EQUAL 0x1 -#define CMP_GREATER_THAN 0x2 -#define CMP_LESS_THAN 0x3 -#define CMP_COMMON_BITS 0x4 -#define CMP_NO_COMMON_BITS 0x5 - #define ATK48_STAT_NEGATIVE 0x1 #define ATK48_STAT_BY_TWO 0x2 #define ATK48_BIT_x4 0x4 diff --git a/include/battle_scripts.h b/include/battle_scripts.h index a13a8c097..184527587 100644 --- a/include/battle_scripts.h +++ b/include/battle_scripts.h @@ -227,5 +227,13 @@ extern const u8 BattleScript_FlushMessageBox[]; extern const u8 BattleScript_SpikesOnFaintedBattler[]; extern const u8 BattleScript_GhostBallDodge[]; extern const u8 gUnknown_81D9A88[]; +extern const u8 gUnknown_81D91A1[]; // knizz: silph scope unveil +extern const u8 gUnknown_81D88D7[]; + +extern const u8 *const gBattleScriptsForMoveEffects[]; +extern const u8 *const gBattlescriptsForBallThrow[]; +extern const u8 *const gBattlescriptsForRunningByItem[]; +extern const u8 *const gBattlescriptsForUsingItem[]; +extern const u8 *const gBattlescriptsForSafariActions[]; #endif // GUARD_BATTLE_SCRIPTS_H diff --git a/include/battle_setup.h b/include/battle_setup.h index 61395811b..809806e9b 100644 --- a/include/battle_setup.h +++ b/include/battle_setup.h @@ -3,20 +3,36 @@ #include "global.h" -void BattleSetup_StartScriptedWildBattle(void); -u8 BattleSetup_GetTerrainId(void); -u8 *BattleSetup_ConfigureTrainerBattle(const u8 *data); -void BattleSetup_StartBattlePikeWildBattle(void); void BattleSetup_StartWildBattle(void); void BattleSetup_StartRoamerBattle(void); - -u8 HasTrainerAlreadyBeenFought(u16); -void SetTrainerFlag(u16); -void ClearTrainerFlag(u16); -void BattleSetup_StartTrainerBattle(void); -u8 *BattleSetup_GetScriptAddrAfterBattle(void); -u8 *BattleSetup_GetTrainerPostBattleScript(void); -void sub_80803FC(void); +void ScrSpecial_StartOldManTutorialBattle(void); +void BattleSetup_StartScriptedWildBattle(void); +void ScrSpecial_StartMarowakBattle(void); +void ScrSpecial_StartSouthernIslandBattle(void); +void Special_StartLegendaryBattle(void); +void Special_StartGroudonKyogreBattle(void); +void Special_StartRegiBattle(void); +u8 BattleSetup_GetTerrainId(void); u8 sub_8080060(void); +const u8 *BattleSetup_ConfigureTrainerBattle(const u8 *data); +void ConfigureAndSetUpOneTrainerBattle(u8 trainerEventObjId, const u8 *trainerScript); +bool32 GetTrainerFlagFromScriptPointer(const u8 *data); +void SetUpTrainerMovement(void); +u8 ScrSpecial_GetTrainerBattleMode(void); +u16 sub_80803D8(void); +u16 ScrSpecial_HasTrainerBeenFought(void); +void SetBattledTrainerFlag(void); +bool8 HasTrainerBeenFought(u16 trainerId); +void SetTrainerFlag(u16 trainerId); +void ClearTrainerFlag(u16 trainerId); +void BattleSetup_StartTrainerBattle(void); +void ScrSpecial_StartTrainerEyeRematch(void); +void ScrSpecial_ShowTrainerIntroSpeech(void); +const u8 *BattleSetup_GetScriptAddrAfterBattle(void); +const u8 *BattleSetup_GetTrainerPostBattleScript(void); +void ScrSpecial_ShowTrainerNonBattlingSpeech(void); +void PlayTrainerEncounterMusic(void); +const u8 *GetTrainerALoseText(void); +const u8 *GetTrainerWonSpeech(void); #endif // GUARD_BATTLE_SETUP_H diff --git a/include/battle_tower.h b/include/battle_tower.h index 78e3f8e43..4c3c23e48 100644 --- a/include/battle_tower.h +++ b/include/battle_tower.h @@ -4,9 +4,10 @@ #include "global.h" u16 sub_8164FCC(u8, u8); -void sub_80E7524(u32 *); +void sub_80E7524(struct BattleTowerEReaderTrainer *); void ValidateEReaderTrainer(void); u8 GetBattleTowerTrainerFrontSpriteId(void); u8 GetEreaderTrainerFrontSpriteId(void); +void CopyEReaderTrainerName5(u8 *dest); #endif //GUARD_BATTLE_TOWER_H diff --git a/include/berry.h b/include/berry.h index 0e554a789..d55192301 100644 --- a/include/berry.h +++ b/include/berry.h @@ -63,7 +63,7 @@ void FieldObjectInteractionRemoveBerryTree(void); u8 PlayerHasBerries(void); void ResetBerryTreeSparkleFlags(void); void sub_809C794(void); -const struct Berry * sub_809C8A0(u8 berryIdx); +const struct Berry * GetBerryInfo(u8 berryIdx); extern const struct Berry gBerries[]; diff --git a/include/cereader_tool.h b/include/cereader_tool.h index f223bdaa5..5ae797ac0 100644 --- a/include/cereader_tool.h +++ b/include/cereader_tool.h @@ -3,25 +3,25 @@ #include "global.h" -struct TrainerTowerTrainer_004 -{ - /* 0x000 */ u8 unk_000[11]; - /* 0x00B */ u8 unk_00B; - /* 0x00C */ u8 unk_00C; - /* 0x00E */ u16 unk_00E[6]; - /* 0x01A */ u16 unk_01A[6]; - /* 0x026 */ u16 unk_026[6]; - /* 0x032 */ u16 unk_032[6]; - /* 0x040 */ struct BattleTowerPokemon unk_040[PARTY_SIZE]; -}; // size: 328 - struct TrainerTowerTrainer +{ + /* 0x000 */ u8 name[11]; + /* 0x00B */ u8 facilityClass; + /* 0x00C */ u8 gender; + /* 0x00E */ u16 speechBefore[6]; + /* 0x01A */ u16 speechWin[6]; + /* 0x026 */ u16 speechLose[6]; + /* 0x032 */ u16 speechAfter[6]; + /* 0x040 */ struct BattleTowerPokemon mons[PARTY_SIZE]; +}; // size: 328 + +struct TrainerTowerFloor { /* 0x000 */ u8 unk_000; - /* 0x000 */ u8 unk_001; - /* 0x002 */ u8 unk_002; - /* 0x003 */ u8 unk_003; - /* 0x004 */ struct TrainerTowerTrainer_004 unk_004[3]; + /* 0x001 */ u8 floorIdx; + /* 0x002 */ u8 challengeType; + /* 0x003 */ u8 prize; + /* 0x004 */ struct TrainerTowerTrainer trainers[3]; /* 0x3DC */ u32 checksum; }; @@ -32,16 +32,16 @@ struct Unk_203F458_Header u32 unk4; }; -struct TrainerTowerData +struct EReaderTrainerHillSet { u8 count; u8 id; u16 dummy; u32 checksum; - struct TrainerTowerTrainer trainers[8]; + struct TrainerTowerFloor floors[8]; }; -bool32 ValidateTrainerTowerData(struct TrainerTowerData * a0); -bool32 CEReaderTool_SaveTrainerTower(struct TrainerTowerData * a0); +bool32 ValidateTrainerTowerData(struct EReaderTrainerHillSet * a0); +bool32 CEReaderTool_SaveTrainerTower(struct EReaderTrainerHillSet * a0); #endif //GUARD_CEREADER_TOOL_H diff --git a/include/constants/abilities.h b/include/constants/abilities.h index 4e2c4056c..4ad54c86f 100644 --- a/include/constants/abilities.h +++ b/include/constants/abilities.h @@ -80,4 +80,6 @@ #define ABILITY_CACOPHONY 76 #define ABILITY_AIR_LOCK 77 +#define ABILITIES_COUNT 78 + #endif // GUARD_CONSTANTS_ABILITIES_H diff --git a/include/constants/battle.h b/include/constants/battle.h index a0099d23f..910b50562 100644 --- a/include/constants/battle.h +++ b/include/constants/battle.h @@ -44,38 +44,38 @@ #define BIT_FLANK 2 // Battle Type Flags -#define BATTLE_TYPE_DOUBLE 0x0001 -#define BATTLE_TYPE_LINK 0x0002 -#define BATTLE_TYPE_IS_MASTER 0x0004 // In not-link battles, it's always set. -#define BATTLE_TYPE_TRAINER 0x0008 -#define BATTLE_TYPE_FIRST_BATTLE 0x0010 -#define BATTLE_TYPE_20 0x0020 -#define BATTLE_TYPE_MULTI 0x0040 -#define BATTLE_TYPE_SAFARI 0x0080 -#define BATTLE_TYPE_BATTLE_TOWER 0x0100 -#define BATTLE_TYPE_OLDMAN_TUTORIAL 0x0200 -#define BATTLE_TYPE_ROAMER 0x0400 -#define BATTLE_TYPE_EREADER_TRAINER 0x0800 -#define BATTLE_TYPE_KYOGRE_GROUDON 0x1000 -#define BATTLE_TYPE_LEGENDARY 0x2000 -#define BATTLE_TYPE_REGI 0x4000 -#define BATTLE_TYPE_GHOST 0x8000 -#define BATTLE_TYPE_POKEDUDE 0x10000 -#define BATTLE_TYPE_PALACE 0x20000 -#define BATTLE_TYPE_ARENA 0x40000 -#define BATTLE_TYPE_TRAINER_TOWER 0x80000 -#define BATTLE_TYPE_PIKE 0x100000 -#define BATTLE_TYPE_PYRAMID 0x200000 -#define BATTLE_TYPE_INGAME_PARTNER 0x400000 -#define BATTLE_TYPE_x800000 0x800000 -#define BATTLE_TYPE_RECORDED 0x1000000 -#define BATTLE_TYPE_x2000000 0x2000000 -#define BATTLE_TYPE_TRAINER_HILL 0x4000000 -#define BATTLE_TYPE_SECRET_BASE 0x8000000 -#define BATTLE_TYPE_GROUDON 0x10000000 -#define BATTLE_TYPE_KYOGRE 0x20000000 -#define BATTLE_TYPE_RAYQUAZA 0x40000000 -#define BATTLE_TYPE_x80000000 0x80000000 +#define BATTLE_TYPE_DOUBLE 0x0001 +#define BATTLE_TYPE_LINK 0x0002 +#define BATTLE_TYPE_IS_MASTER 0x0004 // In not-link battles, it's always set. +#define BATTLE_TYPE_TRAINER 0x0008 +#define BATTLE_TYPE_FIRST_BATTLE 0x0010 +#define BATTLE_TYPE_20 0x0020 +#define BATTLE_TYPE_MULTI 0x0040 +#define BATTLE_TYPE_SAFARI 0x0080 +#define BATTLE_TYPE_BATTLE_TOWER 0x0100 +#define BATTLE_TYPE_OLD_MAN_TUTORIAL 0x0200 +#define BATTLE_TYPE_ROAMER 0x0400 +#define BATTLE_TYPE_EREADER_TRAINER 0x0800 +#define BATTLE_TYPE_KYOGRE_GROUDON 0x1000 +#define BATTLE_TYPE_LEGENDARY 0x2000 +#define BATTLE_TYPE_REGI 0x4000 +#define BATTLE_TYPE_GHOST 0x8000 +#define BATTLE_TYPE_POKEDUDE 0x10000 +#define BATTLE_TYPE_PALACE 0x20000 +#define BATTLE_TYPE_ARENA 0x40000 +#define BATTLE_TYPE_TRAINER_TOWER 0x80000 +#define BATTLE_TYPE_PIKE 0x100000 +#define BATTLE_TYPE_PYRAMID 0x200000 +#define BATTLE_TYPE_INGAME_PARTNER 0x400000 +#define BATTLE_TYPE_x800000 0x800000 +#define BATTLE_TYPE_RECORDED 0x1000000 +#define BATTLE_TYPE_x2000000 0x2000000 +#define BATTLE_TYPE_TRAINER_HILL 0x4000000 +#define BATTLE_TYPE_SECRET_BASE 0x8000000 +#define BATTLE_TYPE_GROUDON 0x10000000 +#define BATTLE_TYPE_KYOGRE 0x20000000 +#define BATTLE_TYPE_RAYQUAZA 0x40000000 +#define BATTLE_TYPE_x80000000 0x80000000 #define BATTLE_TYPE_FRONTIER (BATTLE_TYPE_BATTLE_TOWER | BATTLE_TYPE_DOME | BATTLE_TYPE_PALACE | BATTLE_TYPE_ARENA | BATTLE_TYPE_FACTORY | BATTLE_TYPE_PIKE | BATTLE_TYPE_PYRAMID) #define BATTLE_TYPE_FRONTIER_NO_PYRAMID (BATTLE_TYPE_BATTLE_TOWER | BATTLE_TYPE_DOME | BATTLE_TYPE_PALACE | BATTLE_TYPE_ARENA | BATTLE_TYPE_FACTORY | BATTLE_TYPE_PIKE) @@ -293,4 +293,9 @@ #define BATTLE_TERRAIN_BUILDING 8 #define BATTLE_TERRAIN_PLAIN 9 +// Return value for IsRunningFromBattleImpossible. +#define BATTLE_RUN_SUCCESS 0 +#define BATTLE_RUN_FORBIDDEN 1 +#define BATTLE_RUN_FAILURE 2 + #endif // GUARD_CONSTANTS_BATTLE_H diff --git a/include/constants/battle_setup.h b/include/constants/battle_setup.h new file mode 100644 index 000000000..8f700dc04 --- /dev/null +++ b/include/constants/battle_setup.h @@ -0,0 +1,15 @@ +#ifndef GUARD_CONSTANTS_BATTLE_SETUP_H +#define GUARD_CONSTANTS_BATTLE_SETUP_H + +#define TRAINER_BATTLE_SINGLE 0 +#define TRAINER_BATTLE_CONTINUE_SCRIPT_NO_MUSIC 1 +#define TRAINER_BATTLE_CONTINUE_SCRIPT 2 +#define TRAINER_BATTLE_SINGLE_NO_INTRO_TEXT 3 +#define TRAINER_BATTLE_DOUBLE 4 +#define TRAINER_BATTLE_REMATCH 5 +#define TRAINER_BATTLE_CONTINUE_SCRIPT_DOUBLE 6 +#define TRAINER_BATTLE_REMATCH_DOUBLE 7 +#define TRAINER_BATTLE_CONTINUE_SCRIPT_DOUBLE_NO_MUSIC 8 +#define TRAINER_BATTLE_TUTORIAL 9 + +#endif // GUARD_CONSTANTS_BATTLE_SETUP_H diff --git a/include/constants/fame_checker.h b/include/constants/fame_checker.h new file mode 100644 index 000000000..e09279bb4 --- /dev/null +++ b/include/constants/fame_checker.h @@ -0,0 +1,26 @@ +#ifndef GUARD_CONSTANTS_FAME_CHECKER_H +#define GUARD_CONSTANTS_FAME_CHECKER_H + +#define FAMECHECKER_OAK 0 +#define FAMECHECKER_DAISY 1 +#define FAMECHECKER_BROCK 2 +#define FAMECHECKER_MISTY 3 +#define FAMECHECKER_LTSURGE 4 +#define FAMECHECKER_ERIKA 5 +#define FAMECHECKER_KOGA 6 +#define FAMECHECKER_SABRINA 7 +#define FAMECHECKER_BLAINE 8 +#define FAMECHECKER_LORELEI 9 +#define FAMECHECKER_BRUNO 10 +#define FAMECHECKER_AGATHA 11 +#define FAMECHECKER_LANCE 12 +#define FAMECHECKER_BILL 13 +#define FAMECHECKER_MRFUJI 14 +#define FAMECHECKER_GIOVANNI 15 +#define NUM_FAMECHECKER_PERSONS 16 + +#define FCPICKSTATE_NO_DRAW 0 +#define FCPICKSTATE_SILHOUETTE 1 +#define FCPICKSTATE_COLORED 2 + +#endif //GUARD_CONSTANTS_FAME_CHECKER_H diff --git a/include/constants/field_effects.h b/include/constants/field_effects.h new file mode 100644 index 000000000..8a5e11fcf --- /dev/null +++ b/include/constants/field_effects.h @@ -0,0 +1,73 @@ +#ifndef GUARD_CONSTANTS_FIELD_EFFECTS_H +#define GUARD_CONSTANTS_FIELD_EFFECTS_H + +#define FLDEFF_EXCLAMATION_MARK_ICON_1 0 +#define FLDEFF_USE_CUT_ON_GRASS 1 +#define FLDEFF_USE_CUT_ON_TREE 2 +#define FLDEFF_SHADOW 3 +#define FLDEFF_TALL_GRASS 4 +#define FLDEFF_RIPPLE 5 +#define FLDEFF_FIELD_MOVE_SHOW_MON 6 +#define FLDEFF_ASH 7 +#define FLDEFF_SURF_BLOB 8 +#define FLDEFF_USE_SURF 9 +#define FLDEFF_DUST 10 +#define FLDEFF_USE_SECRET_POWER_CAVE 11 +#define FLDEFF_JUMP_TALL_GRASS 12 +#define FLDEFF_SAND_FOOTPRINTS 13 +#define FLDEFF_JUMP_BIG_SPLASH 14 +#define FLDEFF_SPLASH 15 +#define FLDEFF_JUMP_SMALL_SPLASH 16 +#define FLDEFF_LONG_GRASS 17 +#define FLDEFF_JUMP_LONG_GRASS 18 +#define FLDEFF_UNKNOWN_19 19 +#define FLDEFF_UNKNOWN_20 20 +#define FLDEFF_UNKNOWN_21 21 +#define FLDEFF_UNKNOWN_22 22 +#define FLDEFF_BERRY_TREE_GROWTH_SPARKLE 23 +#define FLDEFF_DEEP_SAND_FOOTPRINTS 24 +#define FLDEFF_POKECENTER_HEAL 25 +#define FLDEFF_USE_SECRET_POWER_TREE 26 +#define FLDEFF_USE_SECRET_POWER_SHRUB 27 +#define FLDEFF_TREE_DISGUISE 28 +#define FLDEFF_MOUNTAIN_DISGUISE 29 +#define FLDEFF_NPCFLY_OUT 30 +#define FLDEFF_USE_FLY 31 +#define FLDEFF_FLY_IN 32 +#define FLDEFF_EXCLAMATION_MARK_ICON_2 33 +#define FLDEFF_FEET_IN_FLOWING_WATER 34 +#define FLDEFF_BIKE_TIRE_TRACKS 35 +#define FLDEFF_SAND_DISGUISE 36 +#define FLDEFF_USE_ROCK_SMASH 37 +#define FLDEFF_USE_DIG 38 +#define FLDEFF_SAND_PILE 39 +#define FLDEFF_USE_STRENGTH 40 +#define FLDEFF_SHORT_GRASS 41 +#define FLDEFF_HOT_SPRINGS_WATER 42 +#define FLDEFF_USE_WATERFALL 43 +#define FLDEFF_USE_DIVE 44 +#define FLDEFF_POKEBALL 45 +#define FLDEFF_HEART_ICON 46 +#define FLDEFF_NOP_47 47 +#define FLDEFF_NOP_48 48 +#define FLDEFF_POP_OUT_OF_ASH 49 +#define FLDEFF_LAVARIDGE_GYM_WARP 50 +#define FLDEFF_SWEET_SCENT 51 +#define FLDEFF_SAND_PILLAR 52 +#define FLDEFF_BUBBLES 53 +#define FLDEFF_SPARKLE 54 +#define FLDEFF_SECRET_POWER_CAVE 55 +#define FLDEFF_SECRET_POWER_TREE 56 +#define FLDEFF_SECRET_POWER_SHRUB 57 +#define FLDEFF_CUT_GRASS 58 +#define FLDEFF_FIELD_MOVE_SHOW_MON_INIT 59 +#define FLDEFF_USE_FLY_ANCIENT_TOMB 60 +#define FLDEFF_PCTURN_ON 61 +#define FLDEFF_HALL_OF_FAME_RECORD 62 +#define FLDEFF_USE_TELEPORT 63 +#define FLDEFF_UNK_40 64 +#define FLDEFF_UNK_41 65 // TODO: related to vs_seeker +#define FLDEFF_UNK_43 67 // TODO: related to deoxys +#define FLDEFF_UNK_45 69 // TODO: related to fame checker photos + +#endif // GUARD_CONSTANTS_FIELD_EFFECTS_H diff --git a/include/constants/flags.h b/include/constants/flags.h index a4b891aca..082e12f87 100644 --- a/include/constants/flags.h +++ b/include/constants/flags.h @@ -1,350 +1,268 @@ #ifndef GUARD_CONSTANTS_FLAGS_H #define GUARD_CONSTANTS_FLAGS_H -// Sys Flags Maybe -#define FLAG_SYS_SAFARI_MODE 0x800 -#define FLAG_WHITE_FLUTE_ACTIVE 0x803 -#define FLAG_BLACK_FLUTE_ACTIVE 0x804 - -// World Map Flags -#define FLAG_WORLD_MAP_PALLET_TOWN 0x890 -#define FLAG_WORLD_MAP_VIRIDIAN_CITY 0x891 -#define FLAG_WORLD_MAP_PEWTER_CITY 0x892 -#define FLAG_WORLD_MAP_CERULEAN_CITY 0x893 -#define FLAG_WORLD_MAP_LAVENDER_TOWN 0x894 -#define FLAG_WORLD_MAP_VERMILION_CITY 0x895 -#define FLAG_WORLD_MAP_CELADON_CITY 0x896 -#define FLAG_WORLD_MAP_FUCHSIA_CITY 0x897 -#define FLAG_WORLD_MAP_CINNABAR_ISLAND 0x898 -#define FLAG_WORLD_MAP_INDIGO_PLATEAU_EXTERIOR 0x899 -#define FLAG_WORLD_MAP_SAFFRON_CITY 0x89a -#define FLAG_WORLD_MAP_ONE_ISLAND 0x89b -#define FLAG_WORLD_MAP_TWO_ISLAND 0x89c -#define FLAG_WORLD_MAP_THREE_ISLAND 0x89d -#define FLAG_WORLD_MAP_FOUR_ISLAND 0x89e -#define FLAG_WORLD_MAP_FIVE_ISLAND 0x89f -#define FLAG_WORLD_MAP_SEVEN_ISLAND 0x8a0 -#define FLAG_WORLD_MAP_SIX_ISLAND 0x8a1 -#define FLAG_WORLD_MAP_ROUTE4_POKEMON_CENTER_1F 0x8a2 -#define FLAG_WORLD_MAP_ROUTE10_POKEMON_CENTER_1F 0x8a3 -#define FLAG_WORLD_MAP_VIRIDIAN_FOREST 0x8a4 -#define FLAG_WORLD_MAP_MT_MOON_1F 0x8a5 -#define FLAG_WORLD_MAP_SSANNE_EXTERIOR 0x8a6 -#define FLAG_WORLD_MAP_UNDERGROUND_PATH_NORTH_SOUTH_TUNNEL 0x8a7 -#define FLAG_WORLD_MAP_UNDERGROUND_PATH_EAST_WEST_TUNNEL 0x8a8 -#define FLAG_WORLD_MAP_DIGLETTS_CAVE_B1F 0x8a9 -#define FLAG_WORLD_MAP_VICTORY_ROAD_1F 0x8aa -#define FLAG_WORLD_MAP_ROCKET_HIDEOUT_B1F 0x8ab -#define FLAG_WORLD_MAP_SILPH_CO_1F 0x8ac -#define FLAG_WORLD_MAP_POKEMON_MANSION_1F 0x8ad -#define FLAG_WORLD_MAP_SAFARI_ZONE_CENTER 0x8ae -#define FLAG_WORLD_MAP_POKEMON_LEAGUE_LORELEIS_ROOM 0x8af -#define FLAG_WORLD_MAP_ROCK_TUNNEL_1F 0x8b0 -#define FLAG_WORLD_MAP_SEAFOAM_ISLANDS_1F 0x8b1 -#define FLAG_WORLD_MAP_POKEMON_TOWER_1F 0x8b2 -#define FLAG_WORLD_MAP_CERULEAN_CAVE_1F 0x8b3 -#define FLAG_WORLD_MAP_POWER_PLANT 0x8b4 -#define FLAG_WORLD_MAP_NAVEL_ROCK_EXTERIOR 0x8b5 -#define FLAG_WORLD_MAP_MT_EMBER_EXTERIOR 0x8b6 -#define FLAG_WORLD_MAP_THREE_ISLAND_BERRY_FOREST 0x8b7 -#define FLAG_WORLD_MAP_FOUR_ISLAND_ICEFALL_CAVE_ENTRANCE 0x8b8 -#define FLAG_WORLD_MAP_FIVE_ISLAND_ROCKET_WAREHOUSE 0x8b9 -#define FLAG_WORLD_MAP_SEVEN_ISLAND_TRAINER_TOWER_LOBBY 0x8ba -#define FLAG_WORLD_MAP_SIX_ISLAND_DOTTED_HOLE_1F 0x8bb -#define FLAG_WORLD_MAP_FIVE_ISLAND_LOST_CAVE_ENTRANCE 0x8bc -#define FLAG_WORLD_MAP_SIX_ISLAND_PATTERN_BUSH 0x8bd -#define FLAG_WORLD_MAP_SIX_ISLAND_ALTERING_CAVE 0x8be -#define FLAG_WORLD_MAP_SEVEN_ISLAND_TANOBY_RUINS_MONEAN_CHAMBER 0x8bf -#define FLAG_WORLD_MAP_THREE_ISLAND_DUNSPARCE_TUNNEL 0x8c0 -#define FLAG_WORLD_MAP_SEVEN_ISLAND_SEAVAULT_CANYON_TANOBY_KEY 0x8c1 -#define FLAG_WORLD_MAP_BIRTH_ISLAND_EXTERIOR 0x8c2 - -// Unknown - -#define FLAG_0x807 0x807 -#define FLAG_0x821 0x821 -#define FLAG_0x822 0x822 -#define FLAG_0x823 0x823 -#define FLAG_0x825 0x825 -#define FLAG_0x827 0x827 -#define FLAG_0x828 0x828 -#define FLAG_0x829 0x829 -#define FLAG_0x82C 0x82C -#define FLAG_0x82F 0x82F -#define FLAG_0x830 0x830 -#define FLAG_SYS_NOT_SOMEONES_PC 0x834 -#define FLAG_0x83C 0x83C -#define FLAG_0x83E 0x83E -#define FLAG_0x841 0x841 -#define FLAG_0x844 0x844 -#define FLAG_0x845 0x845 -#define FLAG_0x846 0x846 -#define FLAG_0x847 0x847 -#define FLAG_0x848 0x848 -#define FLAG_0x849 0x849 -#define FLAG_0x84A 0x84A -#define FLAG_0x84B 0x84B - - -// Emerald Flags - // TODO: Get correct names and numbers -#define FLAG_0x001 0x1 -#define FLAG_0x002 0x2 -#define FLAG_0x003 0x3 -#define FLAG_0x004 0x4 -#define FLAG_0x005 0x5 -#define FLAG_0x006 0x6 -#define FLAG_0x007 0x7 -#define FLAG_0x008 0x8 -#define FLAG_0x009 0x9 -#define FLAG_0x00A 0xA -#define FLAG_0x00B 0xB -#define FLAG_0x00C 0xC -#define FLAG_0x00D 0xD -#define FLAG_0x00E 0xE -#define FLAG_0x00F 0xF -#define FLAG_0x010 0x10 -#define FLAG_0x011 0x11 -#define FLAG_0x012 0x12 -#define FLAG_0x013 0x13 -#define FLAG_0x014 0x14 -#define FLAG_0x015 0x15 -#define FLAG_0x016 0x16 -#define FLAG_0x017 0x17 -#define FLAG_0x018 0x18 -#define FLAG_0x019 0x19 -#define FLAG_0x01A 0x1A -#define FLAG_0x01B 0x1B -#define FLAG_0x01C 0x1C -#define FLAG_0x01D 0x1D -#define FLAG_0x01E 0x1E -#define FLAG_0x01F 0x1F -#define FLAG_0x020 0x20 -#define FLAG_0x021 0x21 -#define FLAG_0x022 0x22 -#define FLAG_0x023 0x23 -#define FLAG_0x024 0x24 -#define FLAG_0x025 0x25 -#define FLAG_0x026 0x26 -#define FLAG_0x027 0x27 -#define FLAG_0x028 0x28 -#define FLAG_0x029 0x29 -#define FLAG_0x02A 0x2A -#define FLAG_0x02B 0x2B -#define FLAG_0x02C 0x2C -#define FLAG_0x02D 0x2D -#define FLAG_0x02E 0x2E -#define FLAG_0x02F 0x2F -#define FLAG_0x030 0x30 -#define FLAG_0x031 0x31 -#define FLAG_0x032 0x32 -#define FLAG_0x033 0x33 -#define FLAG_0x034 0x34 -#define FLAG_0x035 0x35 -#define FLAG_0x036 0x36 -#define FLAG_0x037 0x37 -#define FLAG_0x038 0x38 -#define FLAG_0x039 0x39 -#define FLAG_0x03A 0x3A -#define FLAG_0x03B 0x3B -#define FLAG_0x03C 0x3C -#define FLAG_0x03D 0x3D -#define FLAG_0x03E 0x3E -#define FLAG_0x03F 0x3F -#define FLAG_0x040 0x40 -#define FLAG_0x041 0x41 -#define FLAG_0x042 0x42 -#define FLAG_0x043 0x43 -#define FLAG_0x044 0x44 -#define FLAG_0x045 0x45 -#define FLAG_0x046 0x46 -#define FLAG_0x047 0x47 -#define FLAG_0x048 0x48 -#define FLAG_0x049 0x49 -#define FLAG_0x04A 0x4A -#define FLAG_0x04B 0x4B -#define FLAG_0x04C 0x4C -#define FLAG_0x04D 0x4D -#define FLAG_0x04E 0x4E -#define FLAG_0x04F 0x4F -#define FLAG_0x050 0x50 -#define FLAG_0x051 0x51 -#define FLAG_0x052 0x52 -#define FLAG_LEGENDARIES_IN_SOOTOPOLIS 0x53 -#define FLAG_0x054 0x54 -#define FLAG_0x055 0x55 -#define FLAG_0x056 0x56 -#define FLAG_0x057 0x57 -#define FLAG_0x058 0x58 -#define FLAG_0x059 0x59 -#define FLAG_0x05A 0x5A -#define FLAG_0x05B 0x5B -#define FLAG_0x05C 0x5C -#define FLAG_0x05D 0x5D -#define FLAG_0x05E 0x5E -#define FLAG_0x05F 0x5F -#define FLAG_0x060 0x60 -#define FLAG_0x061 0x61 -#define FLAG_0x062 0x62 -#define FLAG_0x063 0x63 -#define FLAG_0x064 0x64 -#define FLAG_0x065 0x65 -#define FLAG_0x066 0x66 -#define FLAG_0x067 0x67 -#define FLAG_0x068 0x68 -#define FLAG_0x069 0x69 -#define FLAG_0x06A 0x6A -#define FLAG_0x06B 0x6B -#define FLAG_0x06C 0x6C -#define FLAG_0x06D 0x6D -#define FLAG_0x06E 0x6E -#define FLAG_0x06F 0x6F -#define FLAG_0x070 0x70 -#define FLAG_0x071 0x71 -#define FLAG_0x072 0x72 -#define FLAG_0x073 0x73 -#define FLAG_0x074 0x74 -#define FLAG_0x075 0x75 -#define FLAG_0x076 0x76 -#define FLAG_0x077 0x77 -#define FLAG_0x078 0x78 -#define FLAG_0x079 0x79 -#define FLAG_0x07A 0x7A -#define FLAG_0x07B 0x7B -#define FLAG_0x07C 0x7C -#define FLAG_0x07D 0x7D -#define FLAG_0x07E 0x7E -#define FLAG_0x07F 0x7F -#define FLAG_0x080 0x80 -#define FLAG_0x081 0x81 -#define FLAG_0x082 0x82 -#define FLAG_0x083 0x83 -#define FLAG_0x084 0x84 -#define FLAG_0x085 0x85 -#define FLAG_0x086 0x86 -#define FLAG_0x087 0x87 -#define FLAG_0x088 0x88 -#define FLAG_0x089 0x89 -#define FLAG_0x08A 0x8A -#define FLAG_0x08B 0x8B -#define FLAG_0x08C 0x8C -#define FLAG_0x08D 0x8D -#define FLAG_0x08E 0x8E -#define FLAG_0x08F 0x8F -#define FLAG_0x090 0x90 -#define FLAG_0x091 0x91 -#define FLAG_0x092 0x92 -#define FLAG_0x093 0x93 -#define FLAG_0x094 0x94 -#define FLAG_0x095 0x95 -#define FLAG_0x096 0x96 -#define FLAG_0x097 0x97 -#define FLAG_0x098 0x98 -#define FLAG_0x099 0x99 -#define FLAG_0x09A 0x9A -#define FLAG_0x09B 0x9B -#define FLAG_0x09C 0x9C -#define FLAG_0x09D 0x9D -#define FLAG_0x09E 0x9E -#define FLAG_0x09F 0x9F -#define FLAG_0x0A0 0xA0 -#define FLAG_0x0A1 0xA1 -#define FLAG_0x0A2 0xA2 -#define FLAG_0x0A3 0xA3 -#define FLAG_0x0A4 0xA4 -#define FLAG_0x0A5 0xA5 -#define FLAG_0x0A6 0xA6 -#define FLAG_0x0A7 0xA7 -#define FLAG_0x0A8 0xA8 -#define FLAG_0x0A9 0xA9 -#define FLAG_0x0AA 0xAA -#define FLAG_0x0AB 0xAB -#define FLAG_0x0AC 0xAC -#define FLAG_0x0AD 0xAD -#define FLAG_0x0AE 0xAE -#define FLAG_0x0AF 0xAF -#define FLAG_0x0B0 0xB0 -#define FLAG_0x0B1 0xB1 -#define FLAG_0x0B2 0xB2 -#define FLAG_0x0B3 0xB3 -#define FLAG_0x0B4 0xB4 -#define FLAG_0x0B5 0xB5 -#define FLAG_0x0B6 0xB6 -#define FLAG_0x0B7 0xB7 -#define FLAG_0x0B8 0xB8 -#define FLAG_0x0B9 0xB9 -#define FLAG_0x0BA 0xBA -#define FLAG_0x0BB 0xBB -#define FLAG_0x0BC 0xBC -#define FLAG_0x0BD 0xBD -#define FLAG_0x0BE 0xBE -#define FLAG_0x0BF 0xBF -#define FLAG_0x0C0 0xC0 -#define FLAG_0x0C1 0xC1 -#define FLAG_0x0C2 0xC2 -#define FLAG_0x0C3 0xC3 -#define FLAG_0x0C4 0xC4 -#define FLAG_0x0C5 0xC5 -#define FLAG_0x0C6 0xC6 -#define FLAG_0x0C7 0xC7 -#define FLAG_0x0C8 0xC8 -#define FLAG_0x0C9 0xC9 -#define FLAG_0x0CA 0xCA -#define FLAG_0x0CB 0xCB -#define FLAG_0x0CC 0xCC -#define FLAG_0x0CD 0xCD -#define FLAG_0x0CE 0xCE -#define FLAG_0x0CF 0xCF -#define FLAG_0x0D0 0xD0 -#define FLAG_0x0D1 0xD1 -#define FLAG_0x0D2 0xD2 -#define FLAG_0x0D3 0xD3 -#define FLAG_0x0D4 0xD4 -#define FLAG_0x0D5 0xD5 -#define FLAG_0x0D6 0xD6 -#define FLAG_0x0D7 0xD7 -#define FLAG_0x0D8 0xD8 -#define FLAG_0x0D9 0xD9 -#define FLAG_0x0DA 0xDA -#define FLAG_0x0DB 0xDB -#define FLAG_0x0DC 0xDC -#define FLAG_0x0DD 0xDD -#define FLAG_0x0DE 0xDE -#define FLAG_0x0DF 0xDF -#define FLAG_0x0E0 0xE0 -#define FLAG_0x0E1 0xE1 -#define FLAG_0x0E2 0xE2 -#define FLAG_0x0E3 0xE3 -#define FLAG_0x0E4 0xE4 -#define FLAG_0x0E5 0xE5 -#define FLAG_0x0E6 0xE6 -#define FLAG_0x0E7 0xE7 -#define FLAG_0x0E8 0xE8 -#define FLAG_0x0E9 0xE9 -#define FLAG_0x0EA 0xEA -#define FLAG_0x0EB 0xEB -#define FLAG_0x0EC 0xEC -#define FLAG_0x0ED 0xED -#define FLAG_0x0EE 0xEE -#define FLAG_0x0EF 0xEF -#define FLAG_0x0F0 0xF0 -#define FLAG_0x0F1 0xF1 -#define FLAG_0x0F2 0xF2 -#define FLAG_0x0F3 0xF3 -#define FLAG_0x0F4 0xF4 -#define FLAG_0x0F5 0xF5 -#define FLAG_0x0F6 0xF6 -#define FLAG_0x0F7 0xF7 -#define FLAG_0x0F8 0xF8 -#define FLAG_0x0F9 0xF9 -#define FLAG_0x0FA 0xFA -#define FLAG_0x0FB 0xFB -#define FLAG_0x0FC 0xFC -#define FLAG_0x0FD 0xFD -#define FLAG_0x0FE 0xFE -#define FLAG_0x0FF 0xFF +#define FLAG_TEMP_1 0x001 +#define FLAG_TEMP_2 0x002 +#define FLAG_TEMP_3 0x003 +#define FLAG_TEMP_4 0x004 +#define FLAG_TEMP_5 0x005 +#define FLAG_TEMP_6 0x006 +#define FLAG_TEMP_7 0x007 +#define FLAG_TEMP_8 0x008 +#define FLAG_TEMP_9 0x009 +#define FLAG_TEMP_A 0x00A +#define FLAG_TEMP_B 0x00B +#define FLAG_TEMP_C 0x00C +#define FLAG_TEMP_D 0x00D +#define FLAG_TEMP_E 0x00E +#define FLAG_TEMP_F 0x00F +#define FLAG_TEMP_10 0x010 +#define FLAG_TEMP_11 0x011 +#define FLAG_TEMP_12 0x012 +#define FLAG_TEMP_13 0x013 +#define FLAG_TEMP_14 0x014 +#define FLAG_TEMP_15 0x015 +#define FLAG_TEMP_16 0x016 +#define FLAG_TEMP_17 0x017 +#define FLAG_TEMP_18 0x018 +#define FLAG_TEMP_19 0x019 +#define FLAG_TEMP_1A 0x01A +#define FLAG_TEMP_1B 0x01B +#define FLAG_TEMP_1C 0x01C +#define FLAG_TEMP_1D 0x01D +#define FLAG_TEMP_1E 0x01E +#define FLAG_TEMP_1F 0x01F + +#define FLAG_0x020 0x020 +#define FLAG_0x021 0x021 +#define FLAG_0x022 0x022 +#define FLAG_0x023 0x023 +#define FLAG_0x024 0x024 +#define FLAG_0x025 0x025 +#define FLAG_0x026 0x026 +#define FLAG_0x027 0x027 + +// Hide/show flags +#define FLAG_HIDE_BULBASAUR_BALL 0x028 +#define FLAG_HIDE_SQUIRTLE_BALL 0x029 +#define FLAG_HIDE_CHARMANDER_BALL 0x02A +#define FLAG_HIDE_OAK_IN_HIS_LAB 0x02B +#define FLAG_HIDE_OAK_IN_PALLET_TOWN 0x02C +#define FLAG_HIDE_RIVAL_IN_LAB 0x02D +#define FLAG_HIDE_PEWTER_CITY_GYM_GUIDE 0x02E +#define FLAG_HIDE_DOME_FOSSIL 0x02F +#define FLAG_HIDE_HELIX_FOSSIL 0x030 +#define FLAG_HIDE_NUGGET_BRIDGE_ROCKET 0x031 +#define FLAG_HIDE_BILL_CLEFAIRY 0x032 +#define FLAG_HIDE_BILL_HUMAN_SEA_COTTAGE 0x033 +#define FLAG_HIDE_TOWER_FUJI 0x034 +#define FLAG_HIDE_POKEHOUSE_FUJI 0x035 +#define FLAG_HIDE_LIFT_KEY 0x036 +#define FLAG_HIDE_SILPH_SCOPE 0x037 +#define FLAG_HIDE_HIDEOUT_GIOVANNI 0x038 +#define FLAG_HIDE_TOWN_MAP 0x039 +#define FLAG_HIDE_POKEDEX 0x03A +#define FLAG_HIDE_CERULEAN_ROCKET 0x03B +#define FLAG_HIDE_CERULEAN_RIVAL 0x03C +#define FLAG_HIDE_SS_ANNE_RIVAL 0x03D +#define FLAG_HIDE_SAFFRON_ROCKETS 0x03E +#define FLAG_HIDE_SAFFRON_CIVILIANS 0x03F +#define FLAG_HIDE_SEAFOAM_1F_BOULDER_1 0x040 +#define FLAG_HIDE_SEAFOAM_1F_BOULDER_2 0x041 +#define FLAG_HIDE_SEAFOAM_B1F_BOULDER_1 0x042 +#define FLAG_HIDE_SEAFOAM_B1F_BOULDER_2 0x043 +#define FLAG_HIDE_SEAFOAM_B2F_BOULDER_1 0x044 +#define FLAG_HIDE_SEAFOAM_B2F_BOULDER_2 0x045 +#define FLAG_HIDE_SEAFOAM_B3F_BOULDER_1 0x046 +#define FLAG_HIDE_SEAFOAM_B3F_BOULDER_2 0x047 +#define FLAG_HIDE_SEAFOAM_B3F_BOULDER_3 0x048 +#define FLAG_HIDE_SEAFOAM_B3F_BOULDER_4 0x049 +#define FLAG_HIDE_SEAFOAM_B3F_BOULDER_5 0x04A +#define FLAG_HIDE_SEAFOAM_B3F_BOULDER_6 0x04B +#define FLAG_HIDE_SEAFOAM_B4F_BOULDER_1 0x04C +#define FLAG_HIDE_SEAFOAM_B4F_BOULDER_2 0x04D +#define FLAG_HIDE_SILPH_RIVAL 0x04E +#define FLAG_HIDE_ROUTE_22_RIVAL 0x04F +#define FLAG_HIDE_PEWTER_MUSEUM_GUIDE 0x050 +#define FLAG_HIDE_TOWER_RIVAL 0x051 +#define FLAG_HIDE_MOLTRES 0x052 +#define FLAG_HIDE_SILPH_ROCKETS 0x053 +#define FLAG_HIDE_ROUTE_12_SNORLAX 0x054 +#define FLAG_HIDE_VIRIDIAN_GIOVANNI 0x055 +#define FLAG_HIDE_OLD_AMBER 0x056 +#define FLAG_HIDE_EEVEE_BALL 0x057 +#define FLAG_HIDE_VICTORY_ROAD_2F_BOULDER 0x058 +#define FLAG_HIDE_VICTORY_ROAD_3F_BOULDER 0x059 +#define FLAG_HIDE_OAK_IN_CHAMP_ROOM 0x05A +#define FLAG_HIDE_GAME_CORNER_ROCKET 0x05B +#define FLAG_HIDE_CERULEAN_CAVE_GUARD 0x05C +#define FLAG_HIDE_ZAPDOS 0x05D +#define FLAG_HIDE_TOWER_ROCKET_1 0x05E +#define FLAG_HIDE_CELADON_ROCKETS 0x05F +#define FLAG_HIDE_DOJO_HITMONLEE_BALL 0x060 +#define FLAG_HIDE_DOJO_HITMONCHAN_BALL 0x061 +#define FLAG_HIDE_CINNABAR_BILL 0x062 +#define FLAG_HIDE_UNION_ROOM_1 0x063 +#define FLAG_HIDE_UNION_ROOM_2 0x064 +#define FLAG_HIDE_UNION_ROOM_3 0x065 +#define FLAG_HIDE_UNION_ROOM_4 0x066 +#define FLAG_HIDE_UNION_ROOM_5 0x067 +#define FLAG_HIDE_UNION_ROOM_6 0x068 +#define FLAG_HIDE_UNION_ROOM_7 0x069 +#define FLAG_HIDE_UNION_ROOM_8 0x06A +#define FLAG_HIDE_CINNABAR_SEAGALLOP 0x06B +#define FLAG_HIDE_SAFFRON_FAN_CLUB_BLACKBELT 0x06C +#define FLAG_HIDE_SAFFRON_FAN_CLUB_ROCKER 0x06D +#define FLAG_HIDE_SAFFRON_FAN_CLUB_WOMAN 0x06E +#define FLAG_HIDE_SAFFRON_FAN_CLUB_BEAUTY 0x06F +#define FLAG_HIDE_MG_DELIVERYMEN 0x070 +#define FLAG_HIDE_ONE_ISLAND_BILL 0x071 +#define FLAG_HIDE_ONE_ISLAND_POKECENTER_BILL 0x072 +#define FLAG_HIDE_ONE_ISLAND_POKECENTER_CELIO 0x073 +#define FLAG_HIDE_TWO_ISLAND_GAME_CORNER_BIKER 0x074 +#define FLAG_HIDE_TWO_ISLAND_GAME_CORNER_LOSTELLE 0x075 +#define FLAG_HIDE_LOSTELLE_IN_HER_HOME 0x076 +#define FLAG_0x077 0x077 +#define FLAG_0x078 0x078 +#define FLAG_HIDE_THREE_ISLAND_BIKERS 0x079 +#define FLAG_HIDE_LOSTELLE_IN_BERRY_FOREST 0x07A +#define FLAG_HIDE_TWO_ISLAND_WOMAN 0x07B +#define FLAG_HIDE_TWO_ISLAND_BEAUTY 0x07C +#define FLAG_HIDE_TWO_ISLAND_SUPER_NERD 0x07D +#define FLAG_HIDE_THREE_ISLAND_ANTIBIKERS 0x07E +#define FLAG_0x07F 0x07F +#define FLAG_HIDE_ROUTE_16_SNORLAX 0x080 +#define FLAG_HIDE_MEWTWO 0x081 +#define FLAG_HIDE_ARTICUNO 0x082 +#define FLAG_HIDE_TOWER_ROCKET_2 0x083 +#define FLAG_HIDE_TOWER_ROCKET_3 0x084 +#define FLAG_HIDE_POWER_PLANT_ELECTRODE_1 0x085 +#define FLAG_HIDE_POWER_PLANT_ELECTRODE_2 0x086 +#define FLAG_HIDE_SS_ANNE 0x087 +#define FLAG_HIDE_FIVE_ISLAND_ROCKETS 0x088 +#define FLAG_HIDE_MT_EMBER_EXTERIOR_ROCKETS 0x089 +#define FLAG_HIDE_RUBY 0x08A +#define FLAG_HIDE_ICEFALL_CAVE_LORELEI 0x08B +#define FLAG_HIDE_LORELEI_IN_HER_HOUSE 0x08C +#define FLAG_HIDE_ICEFALL_CAVE_ROCKETS 0x08D +#define FLAG_HIDE_RUIN_VALLEY_SCIENTIST 0x08E +#define FLAG_HIDE_SAPPHIRE 0x08F +#define FLAG_HIDE_DOTTED_HOLE_SCIENTIST 0x090 +#define FLAG_HIDE_THREE_ISLAND_LONE_BIKER 0x091 +#define FLAG_HIDE_PEWTER_CITY_RUNNING_SHOES_GUY 0x092 +#define FLAG_HIDE_LOST_CAVE_SELPHY 0x093 +#define FLAG_HIDE_RESORT_GORGEOUS_SELPHY 0x094 +#define FLAG_HIDE_RESORT_GORGEOUS_INSIDE_SELPHY 0x095 +#define FLAG_HIDE_SELPHYS_BUTLER 0x096 +#define FLAG_HIDE_FOUR_ISLAND_RIVAL 0x097 +#define FLAG_HIDE_SIX_ISLAND_POKECENTER_RIVAL 0x098 +#define FLAG_HIDE_DEOXYS 0x099 +#define FLAG_HIDE_BIRTH_ISLAND_METEORITE 0x09A +#define FLAG_HIDE_LUGIA 0x09B +#define FLAG_HIDE_HO_OH 0x09C +#define FLAG_HIDE_POSTGAME_GOSSIPERS 0x09D +#define FLAG_HIDE_FAME_CHECKER_ERIKA_JOURNALS 0x09E +#define FLAG_HIDE_FAME_CHECKER_KOGA_JOURNAL 0x09F +#define FLAG_HIDE_FAME_CHECKER_LT_SURGE_JOURNAL 0x0A0 +#define FLAG_HIDE_VERMILION_CITY_OAKS_AIDE 0x0A1 +#define FLAG_HIDE_CINNABAR_POKECENTER_BILL 0x0A2 +#define FLAG_HIDE_CREDITS_RIVAL 0x0A3 +#define FLAG_HIDE_CREDITS_OAK 0x0A4 +#define FLAG_HIDE_LORELEI_HOUSE_MEOWTH_DOLL 0x0A5 +#define FLAG_HIDE_LORELEI_HOUSE_CHANSEY_DOLL 0x0A6 +#define FLAG_HIDE_LORELEIS_HOUSE_NIDORAN_F_DOLL 0x0A7 +#define FLAG_HIDE_LORELEI_HOUSE_JIGGLYPUFF_DOLL 0x0A8 +#define FLAG_HIDE_LORELEIS_HOUSE_NIDORAN_M_DOLL 0x0A9 +#define FLAG_HIDE_LORELEIS_HOUSE_FEAROW_DOLL 0x0AA +#define FLAG_HIDE_LORELEIS_HOUSE_PIDGEOT_DOLL 0x0AB +#define FLAG_HIDE_LORELEIS_HOUSE_LAPRAS_DOLL 0x0AC +#define FLAG_HIDE_MISC_KANTO_ROCKETS 0x0AD +#define FLAG_HIDE_SAFFRON_CITY_POKECENTER_SABRINA_JOURNALS 0x0AE + +// Unused? +#define FLAG_0x0AF 0x0AF +#define FLAG_0x0B0 0x0B0 +#define FLAG_0x0B1 0x0B1 +#define FLAG_0x0B2 0x0B2 +#define FLAG_0x0B3 0x0B3 +#define FLAG_0x0B4 0x0B4 +#define FLAG_0x0B5 0x0B5 +#define FLAG_0x0B6 0x0B6 +#define FLAG_0x0B7 0x0B7 +#define FLAG_0x0B8 0x0B8 +#define FLAG_0x0B9 0x0B9 +#define FLAG_0x0BA 0x0BA +#define FLAG_0x0BB 0x0BB +#define FLAG_0x0BC 0x0BC +#define FLAG_0x0BD 0x0BD +#define FLAG_0x0BE 0x0BE +#define FLAG_0x0BF 0x0BF +#define FLAG_0x0C0 0x0C0 +#define FLAG_0x0C1 0x0C1 +#define FLAG_0x0C2 0x0C2 +#define FLAG_0x0C3 0x0C3 +#define FLAG_0x0C4 0x0C4 +#define FLAG_0x0C5 0x0C5 +#define FLAG_0x0C6 0x0C6 +#define FLAG_0x0C7 0x0C7 +#define FLAG_0x0C8 0x0C8 +#define FLAG_0x0C9 0x0C9 +#define FLAG_0x0CA 0x0CA +#define FLAG_0x0CB 0x0CB +#define FLAG_0x0CC 0x0CC +#define FLAG_0x0CD 0x0CD +#define FLAG_0x0CE 0x0CE +#define FLAG_0x0CF 0x0CF +#define FLAG_0x0D0 0x0D0 +#define FLAG_0x0D1 0x0D1 +#define FLAG_0x0D2 0x0D2 +#define FLAG_0x0D3 0x0D3 +#define FLAG_0x0D4 0x0D4 +#define FLAG_0x0D5 0x0D5 +#define FLAG_0x0D6 0x0D6 +#define FLAG_0x0D7 0x0D7 +#define FLAG_0x0D8 0x0D8 +#define FLAG_0x0D9 0x0D9 +#define FLAG_0x0DA 0x0DA +#define FLAG_0x0DB 0x0DB +#define FLAG_0x0DC 0x0DC +#define FLAG_0x0DD 0x0DD +#define FLAG_0x0DE 0x0DE +#define FLAG_0x0DF 0x0DF +#define FLAG_0x0E0 0x0E0 +#define FLAG_0x0E1 0x0E1 +#define FLAG_0x0E2 0x0E2 +#define FLAG_0x0E3 0x0E3 +#define FLAG_0x0E4 0x0E4 +#define FLAG_0x0E5 0x0E5 +#define FLAG_0x0E6 0x0E6 +#define FLAG_0x0E7 0x0E7 +#define FLAG_0x0E8 0x0E8 +#define FLAG_0x0E9 0x0E9 +#define FLAG_0x0EA 0x0EA +#define FLAG_0x0EB 0x0EB +#define FLAG_0x0EC 0x0EC +#define FLAG_0x0ED 0x0ED +#define FLAG_0x0EE 0x0EE +#define FLAG_0x0EF 0x0EF +#define FLAG_0x0F0 0x0F0 +#define FLAG_0x0F1 0x0F1 +#define FLAG_0x0F2 0x0F2 +#define FLAG_0x0F3 0x0F3 +#define FLAG_0x0F4 0x0F4 +#define FLAG_0x0F5 0x0F5 +#define FLAG_0x0F6 0x0F6 +#define FLAG_0x0F7 0x0F7 +#define FLAG_0x0F8 0x0F8 +#define FLAG_0x0F9 0x0F9 +#define FLAG_0x0FA 0x0FA +#define FLAG_0x0FB 0x0FB +#define FLAG_0x0FC 0x0FC +#define FLAG_0x0FD 0x0FD +#define FLAG_0x0FE 0x0FE +#define FLAG_0x0FF 0x0FF #define FLAG_0x100 0x100 #define FLAG_0x101 0x101 #define FLAG_0x102 0x102 @@ -429,177 +347,181 @@ #define FLAG_0x151 0x151 #define FLAG_0x152 0x152 #define FLAG_0x153 0x153 -#define FLAG_0x154 0x154 -#define FLAG_0x155 0x155 -#define FLAG_0x156 0x156 -#define FLAG_0x157 0x157 -#define FLAG_0x158 0x158 -#define FLAG_0x159 0x159 -#define FLAG_0x15A 0x15A -#define FLAG_0x15B 0x15B -#define FLAG_0x15C 0x15C -#define FLAG_0x15D 0x15D -#define FLAG_0x15E 0x15E -#define FLAG_0x15F 0x15F -#define FLAG_0x160 0x160 -#define FLAG_0x161 0x161 -#define FLAG_0x162 0x162 -#define FLAG_0x163 0x163 -#define FLAG_0x164 0x164 -#define FLAG_0x165 0x165 -#define FLAG_0x166 0x166 -#define FLAG_0x167 0x167 -#define FLAG_0x168 0x168 -#define FLAG_0x169 0x169 -#define FLAG_0x16A 0x16A -#define FLAG_0x16B 0x16B -#define FLAG_0x16C 0x16C -#define FLAG_0x16D 0x16D -#define FLAG_0x16E 0x16E -#define FLAG_0x16F 0x16F -#define FLAG_0x170 0x170 -#define FLAG_0x171 0x171 -#define FLAG_0x172 0x172 -#define FLAG_0x173 0x173 -#define FLAG_0x174 0x174 -#define FLAG_0x175 0x175 -#define FLAG_0x176 0x176 -#define FLAG_0x177 0x177 -#define FLAG_0x178 0x178 -#define FLAG_0x179 0x179 -#define FLAG_0x17A 0x17A -#define FLAG_0x17B 0x17B -#define FLAG_0x17C 0x17C -#define FLAG_0x17D 0x17D -#define FLAG_0x17E 0x17E -#define FLAG_0x17F 0x17F -#define FLAG_0x180 0x180 -#define FLAG_0x181 0x181 -#define FLAG_0x182 0x182 -#define FLAG_0x183 0x183 -#define FLAG_0x184 0x184 -#define FLAG_0x185 0x185 -#define FLAG_0x186 0x186 -#define FLAG_0x187 0x187 -#define FLAG_0x188 0x188 -#define FLAG_0x189 0x189 -#define FLAG_0x18A 0x18A -#define FLAG_0x18B 0x18B -#define FLAG_0x18C 0x18C -#define FLAG_0x18D 0x18D -#define FLAG_0x18E 0x18E -#define FLAG_0x18F 0x18F -#define FLAG_0x190 0x190 -#define FLAG_0x191 0x191 -#define FLAG_0x192 0x192 -#define FLAG_0x193 0x193 -#define FLAG_0x194 0x194 -#define FLAG_0x195 0x195 -#define FLAG_0x196 0x196 -#define FLAG_0x197 0x197 -#define FLAG_0x198 0x198 -#define FLAG_0x199 0x199 -#define FLAG_0x19A 0x19A -#define FLAG_0x19B 0x19B -#define FLAG_0x19C 0x19C -#define FLAG_0x19D 0x19D -#define FLAG_0x19E 0x19E -#define FLAG_0x19F 0x19F -#define FLAG_0x1A0 0x1A0 -#define FLAG_0x1A1 0x1A1 -#define FLAG_0x1A2 0x1A2 -#define FLAG_0x1A3 0x1A3 -#define FLAG_0x1A4 0x1A4 -#define FLAG_0x1A5 0x1A5 -#define FLAG_0x1A6 0x1A6 -#define FLAG_0x1A7 0x1A7 -#define FLAG_0x1A8 0x1A8 -#define FLAG_0x1A9 0x1A9 -#define FLAG_0x1AA 0x1AA -#define FLAG_0x1AB 0x1AB -#define FLAG_0x1AC 0x1AC -#define FLAG_0x1AD 0x1AD -#define FLAG_0x1AE 0x1AE -#define FLAG_0x1AF 0x1AF -#define FLAG_0x1B0 0x1B0 -#define FLAG_0x1B1 0x1B1 -#define FLAG_0x1B2 0x1B2 -#define FLAG_0x1B3 0x1B3 -#define FLAG_0x1B4 0x1B4 -#define FLAG_0x1B5 0x1B5 -#define FLAG_0x1B6 0x1B6 -#define FLAG_0x1B7 0x1B7 -#define FLAG_0x1B8 0x1B8 -#define FLAG_0x1B9 0x1B9 -#define FLAG_0x1BA 0x1BA -#define FLAG_0x1BB 0x1BB -#define FLAG_0x1BC 0x1BC -#define FLAG_0x1BD 0x1BD -#define FLAG_0x1BE 0x1BE -#define FLAG_0x1BF 0x1BF -#define FLAG_0x1C0 0x1C0 -#define FLAG_0x1C1 0x1C1 -#define FLAG_0x1C2 0x1C2 -#define FLAG_0x1C3 0x1C3 -#define FLAG_0x1C4 0x1C4 -#define FLAG_0x1C5 0x1C5 -#define FLAG_0x1C6 0x1C6 -#define FLAG_0x1C7 0x1C7 -#define FLAG_0x1C8 0x1C8 -#define FLAG_0x1C9 0x1C9 -#define FLAG_0x1CA 0x1CA -#define FLAG_0x1CB 0x1CB -#define FLAG_0x1CC 0x1CC -#define FLAG_0x1CD 0x1CD -#define FLAG_0x1CE 0x1CE -#define FLAG_0x1CF 0x1CF -#define FLAG_0x1D0 0x1D0 -#define FLAG_0x1D1 0x1D1 -#define FLAG_0x1D2 0x1D2 -#define FLAG_0x1D3 0x1D3 -#define FLAG_0x1D4 0x1D4 -#define FLAG_0x1D5 0x1D5 -#define FLAG_0x1D6 0x1D6 -#define FLAG_0x1D7 0x1D7 -#define FLAG_0x1D8 0x1D8 -#define FLAG_0x1D9 0x1D9 -#define FLAG_0x1DA 0x1DA -#define FLAG_0x1DB 0x1DB -#define FLAG_0x1DC 0x1DC -#define FLAG_0x1DD 0x1DD -#define FLAG_0x1DE 0x1DE -#define FLAG_0x1DF 0x1DF -#define FLAG_0x1E0 0x1E0 -#define FLAG_0x1E1 0x1E1 -#define FLAG_0x1E2 0x1E2 -#define FLAG_0x1E3 0x1E3 -#define FLAG_0x1E4 0x1E4 -#define FLAG_0x1E5 0x1E5 -#define FLAG_0x1E6 0x1E6 -#define FLAG_0x1E7 0x1E7 -#define FLAG_0x1E8 0x1E8 -#define FLAG_0x1E9 0x1E9 -#define FLAG_0x1EA 0x1EA -#define FLAG_0x1EB 0x1EB -#define FLAG_0x1EC 0x1EC -#define FLAG_0x1ED 0x1ED -#define FLAG_0x1EE 0x1EE -#define FLAG_0x1EF 0x1EF -#define FLAG_0x1F0 0x1F0 -#define FLAG_0x1F1 0x1F1 -#define FLAG_0x1F2 0x1F2 -#define FLAG_0x1F3 0x1F3 -#define FLAG_0x1F4 0x1F4 -#define FLAG_0x1F5 0x1F5 -#define FLAG_0x1F6 0x1F6 -#define FLAG_0x1F7 0x1F7 -#define FLAG_0x1F8 0x1F8 -#define FLAG_0x1F9 0x1F9 -#define FLAG_0x1FA 0x1FA -#define FLAG_0x1FB 0x1FB -#define FLAG_0x1FC 0x1FC -#define FLAG_0x1FD 0x1FD -#define FLAG_0x1FE 0x1FE + +// Item ball hide/show +#define FLAG_HIDE_ROUTE2_ETHER 0x154 +#define FLAG_HIDE_ROUTE2_PARALYZE_HEAL 0x155 +#define FLAG_HIDE_VIRIDIAN_FOREST_POKE_BALL 0x156 +#define FLAG_HIDE_VIRIDIAN_FOREST_ANTIDOTE 0x157 +#define FLAG_HIDE_VIRIDIAN_FOREST_POTION 0x158 +#define FLAG_HIDE_MT_MOON_1F_PARALYZE_HEAL 0x159 +#define FLAG_HIDE_MT_MOON_1F_TM09 0x15A +#define FLAG_HIDE_MT_MOON_1F_POTION 0x15B +#define FLAG_HIDE_MT_MOON_1F_RARE_CANDY 0x15C +#define FLAG_HIDE_MT_MOON_1F_ESCAPE_ROPE 0x15D +#define FLAG_HIDE_MT_MOON_1F_MOON_STONE 0x15E +#define FLAG_HIDE_MT_MOON_B2F_STAR_PIECE 0x15F +#define FLAG_HIDE_MT_MOON_B2F_TM46 0x160 +#define FLAG_HIDE_ROUTE4_TM05 0x161 +#define FLAG_HIDE_ROUTE24_TM45 0x162 +#define FLAG_HIDE_ROUTE25_TM43 0x163 +#define FLAG_HIDE_SSANNE_1F_ROOM2_TM31 0x164 +#define FLAG_HIDE_SSANNE_2F_ROOM2_STARDUST 0x165 +#define FLAG_HIDE_SSANNE_2F_ROOM4_X_ATTACK 0x166 +#define FLAG_HIDE_SSANNE_B1F_ROOM2_TM44 0x167 +#define FLAG_HIDE_SSANNE_B1F_ROOM3_ETHER 0x168 +#define FLAG_HIDE_SSANNE_B1F_ROOM5_SUPER_POTION 0x169 +#define FLAG_HIDE_SSANNE_KITCHEN_GREAT_BALL 0x16A +#define FLAG_HIDE_ROUTE9_TM40 0x16B +#define FLAG_HIDE_ROCKET_HIDEOUT_B1F_ESCAPE_ROPE 0x16C +#define FLAG_HIDE_ROCKET_HIDEOUT_B1F_HYPER_POTION 0x16D +#define FLAG_HIDE_ROCKET_HIDEOUT_B2F_X_SPEED 0x16E +#define FLAG_HIDE_ROCKET_HIDEOUT_B2F_MOON_STONE 0x16F +#define FLAG_HIDE_ROCKET_HIDEOUT_B2F_TM12 0x170 +#define FLAG_HIDE_ROCKET_HIDEOUT_B2F_SUPER_POTION 0x171 +#define FLAG_HIDE_ROCKET_HIDEOUT_B3F_RARE_CANDY 0x172 +#define FLAG_HIDE_ROCKET_HIDEOUT_B3F_TM21 0x173 +#define FLAG_HIDE_ROCKET_HIDEOUT_B4F_TM49 0x174 +#define FLAG_HIDE_ROCKET_HIDEOUT_B4F_MAX_ETHER 0x175 +#define FLAG_HIDE_ROCKET_HIDEOUT_B4F_CALCIUM 0x176 +#define FLAG_HIDE_POKEMON_TOWER_3F_ESCAPE_ROPE 0x177 +#define FLAG_HIDE_POKEMON_TOWER_4F_ELIXIR 0x178 +#define FLAG_HIDE_POKEMON_TOWER_4F_AWAKENING 0x179 +#define FLAG_HIDE_POKEMON_TOWER_4F_GREAT_BALL 0x17A +#define FLAG_HIDE_POKEMON_TOWER_5F_NUGGET 0x17B +#define FLAG_HIDE_POKEMON_TOWER_6F_RARE_CANDY 0x17C +#define FLAG_HIDE_POKEMON_TOWER_6F_X_ACCURACY 0x17D +#define FLAG_HIDE_ROUTE12_TM48 0x17E +#define FLAG_HIDE_ROUTE12_IRON 0x17F +#define FLAG_HIDE_ROUTE15_TM18 0x180 +#define FLAG_HIDE_SAFARI_ZONE_CENTER_NUGGET 0x181 +#define FLAG_HIDE_SAFARI_ZONE_EAST_MAX_POTION 0x182 +#define FLAG_HIDE_SAFARI_ZONE_EAST_FULL_RESTORE 0x183 +#define FLAG_HIDE_SAFARI_ZONE_EAST_TM11 0x184 +#define FLAG_HIDE_SAFARI_ZONE_EAST_LEAF_STONE 0x185 +#define FLAG_HIDE_SAFARI_ZONE_NORTH_PROTEIN 0x186 +#define FLAG_HIDE_SAFARI_ZONE_NORTH_TM47 0x187 +#define FLAG_HIDE_SAFARI_ZONE_WEST_TM32 0x188 +#define FLAG_HIDE_SAFARI_ZONE_WEST_GOLD_TEETH 0x189 +#define FLAG_HIDE_SAFARI_ZONE_WEST_MAX_POTION 0x18A +#define FLAG_HIDE_SAFARI_ZONE_WEST_MAX_REVIVE 0x18B +#define FLAG_HIDE_SILPH_CO_3F_HYPER_POTION 0x18C +#define FLAG_HIDE_SILPH_CO_4F_MAX_REVIVE 0x18D +#define FLAG_HIDE_SILPH_CO_4F_ESCAPE_ROPE 0x18E +#define FLAG_HIDE_SILPH_CO_4F_FULL_HEAL 0x18F +#define FLAG_HIDE_SILPH_CO_5F_PROTEIN 0x190 +#define FLAG_HIDE_SILPH_CO_5F_TM01 0x191 +#define FLAG_HIDE_SILPH_CO_5F_CARD_KEY 0x192 +#define FLAG_HIDE_SILPH_CO_6F_HP_UP 0x193 +#define FLAG_HIDE_SILPH_CO_6F_X_SPECIAL 0x194 +#define FLAG_HIDE_SILPH_CO_7F_CALCIUM 0x195 +#define FLAG_HIDE_SILPH_CO_7F_TM08 0x196 +#define FLAG_HIDE_SILPH_CO_10F_CARBOS 0x197 +#define FLAG_HIDE_SILPH_CO_10F_ULTRA_BALL 0x198 +#define FLAG_HIDE_SILPH_CO_10F_RARE_CANDY 0x199 +#define FLAG_HIDE_POWER_PLANT_MAX_POTION 0x19A +#define FLAG_HIDE_POWER_PLANT_TM17 0x19B +#define FLAG_HIDE_POWER_PLANT_TM25 0x19C +#define FLAG_HIDE_POWER_PLANT_THUNDER_STONE 0x19D +#define FLAG_HIDE_POWER_PLANT_ELIXIR 0x19E +#define FLAG_HIDE_POKEMON_MANSION_1F_CARBOS 0x19F +#define FLAG_HIDE_POKEMON_MANSION_1F_ESCAPE_ROPE 0x1A0 +#define FLAG_HIDE_POKEMON_MANSION_2F_CALCIUM 0x1A1 +#define FLAG_HIDE_POKEMON_MANSION_3F_MAX_POTION 0x1A2 +#define FLAG_HIDE_POKEMON_MANSION_3F_IRON 0x1A3 +#define FLAG_HIDE_POKEMON_MANSION_B1F_TM14 0x1A4 +#define FLAG_HIDE_POKEMON_MANSION_B1F_FULL_RESTORE 0x1A5 +#define FLAG_0x1A6 0x1A6 +#define FLAG_HIDE_POKEMON_MANSION_B1F_TM22 0x1A7 +#define FLAG_HIDE_POKEMON_MANSION_B1F_SECRET_KEY 0x1A8 +#define FLAG_HIDE_VICTORY_ROAD_1F_RARE_CANDY 0x1A9 +#define FLAG_HIDE_VICTORY_ROAD_1F_TM02 0x1AA +#define FLAG_HIDE_VICTORY_ROAD_2F_GUARD_SPEC 0x1AB +#define FLAG_HIDE_VICTORY_ROAD_2F_TM07 0x1AC +#define FLAG_HIDE_VICTORY_ROAD_2F_FULL_HEAL 0x1AD +#define FLAG_HIDE_VICTORY_ROAD_2F_TM37 0x1AE +#define FLAG_HIDE_VICTORY_ROAD_3F_MAX_REVIVE 0x1AF +#define FLAG_HIDE_VICTORY_ROAD_3F_TM50 0x1B0 +#define FLAG_HIDE_CERULEAN_CAVE_1F_MAX_ELIXIR 0x1B1 +#define FLAG_HIDE_CERULEAN_CAVE_1F_NUGGET 0x1B2 +#define FLAG_HIDE_CERULEAN_CAVE_1F_FULL_RESTORE 0x1B3 +#define FLAG_HIDE_CERULEAN_CAVE_2F_FULL_RESTORE 0x1B4 +#define FLAG_HIDE_CERULEAN_CAVE_2F_PP_UP 0x1B5 +#define FLAG_HIDE_CERULEAN_CAVE_2F_ULTRA_BALL 0x1B6 +#define FLAG_HIDE_CERULEAN_CAVE_B1F_MAX_REVIVE 0x1B7 +#define FLAG_HIDE_CERULEAN_CAVE_B1F_ULTRA_BALL 0x1B8 +#define FLAG_HIDE_FUCHSIA_CITY_BUILDING1_RARE_CANDY 0x1B9 +#define FLAG_HIDE_TWO_ISLAND_REVIVE 0x1BA +#define FLAG_HIDE_THREE_ISLAND_ZINC 0x1BB +#define FLAG_0x1BC 0x1BC +#define FLAG_0x1BD 0x1BD +#define FLAG_HIDE_VIRIDIAN_FOREST_POTION_2 0x1BE +#define FLAG_HIDE_MT_MOON_B2F_REVIVE 0x1BF +#define FLAG_HIDE_MT_MOON_B2F_ANTIDOTE 0x1C0 +#define FLAG_HIDE_ROUTE11_X_DEFEND 0x1C1 +#define FLAG_HIDE_ROUTE9_BURN_HEAL 0x1C2 +#define FLAG_HIDE_ROCK_TUNNEL_1F_REPEL 0x1C3 +#define FLAG_HIDE_ROCK_TUNNEL_1F_PEARL 0x1C4 +#define FLAG_HIDE_ROCK_TUNNEL_1F_ESCAPE_ROPE 0x1C5 +#define FLAG_HIDE_ROCK_TUNNEL_B1F_REVIVE 0x1C6 +#define FLAG_HIDE_ROCK_TUNNEL_B1F_MAX_ETHER 0x1C7 +#define FLAG_HIDE_SILPH_CO_8F_IRON 0x1C8 +#define FLAG_HIDE_SILPH_CO_11F_ZINC 0x1C9 +#define FLAG_HIDE_POKEMON_MANSION_1F_PROTEIN 0x1CA +#define FLAG_HIDE_POKEMON_MANSION_2F_ZINC 0x1CB +#define FLAG_HIDE_POKEMON_MANSION_2F_HP_UP 0x1CC +#define FLAG_HIDE_VIRIDIAN_CITY_POTION 0x1CD +#define FLAG_HIDE_ROUTE11_GREAT_BALL 0x1CE +#define FLAG_HIDE_ROUTE11_AWAKENING 0x1CF +#define FLAG_HIDE_POKEMON_TOWER_5F_CLEANSE_TAG 0x1D0 +#define FLAG_HIDE_CELADON_CITY_ETHER 0x1D1 +#define FLAG_HIDE_ROCKET_HIDEOUT_B3F_BLACK_GLASSES 0x1D2 +#define FLAG_HIDE_SAFARI_ZONE_NORTH_QUICK_CLAW 0x1D3 +#define FLAG_HIDE_SEAFOAM_ISLANDS_1F_ICE_HEAL 0x1D4 +#define FLAG_HIDE_SEAFOAM_ISLANDS_B1F_WATER_STONE 0x1D5 +#define FLAG_HIDE_SEAFOAM_ISLANDS_B1F_REVIVE 0x1D6 +#define FLAG_HIDE_SEAFOAM_ISLANDS_B2F_BIG_PEARL 0x1D7 +#define FLAG_HIDE_SEAFOAM_ISLANDS_B4F_ULTRA_BALL 0x1D8 +#define FLAG_HIDE_FOUR_ISLAND_STAR_PIECE 0x1D9 +#define FLAG_HIDE_FOUR_ISLAND_STARDUST 0x1DA +#define FLAG_HIDE_ONE_ISLAND_KINDLE_ROAD_ETHER 0x1DB +#define FLAG_HIDE_ONE_ISLAND_KINDLE_ROAD_MAX_REPEL 0x1DC +#define FLAG_HIDE_ONE_ISLAND_KINDLE_ROAD_CARBOS 0x1DD +#define FLAG_HIDE_FIVE_ISLAND_MEADOW_MAX_POTION 0x1DE +#define FLAG_HIDE_FIVE_ISLAND_MEADOW_PP_UP 0x1DF +#define FLAG_HIDE_FIVE_ISLAND_MEMORIAL_PILLAR_METAL_COAT 0x1E0 +#define FLAG_HIDE_SIX_ISLAND_OUTCAST_ISLAND_PP_UP 0x1E1 +#define FLAG_HIDE_SIX_ISLAND_WATER_PATH_ELIXIR 0x1E2 +#define FLAG_HIDE_SIX_ISLAND_WATER_PATH_DRAGON_SCALE 0x1E3 +#define FLAG_HIDE_SIX_ISLAND_RUIN_VALLEY_FULL_RESTORE 0x1E4 +#define FLAG_HIDE_SIX_ISLAND_RUIN_VALLEY_HP_UP 0x1E5 +#define FLAG_HIDE_SIX_ISLAND_RUIN_VALLEY_SUN_STONE 0x1E6 +#define FLAG_HIDE_SEVEN_ISLAND_SEVAULT_CANYON_KINGS_ROCK 0x1E7 +#define FLAG_HIDE_SEVEN_ISLAND_SEVAULT_CANYON_MAX_ELIXIR 0x1E8 +#define FLAG_HIDE_SEVEN_ISLAND_SEVAULT_CANYON_NUGGET 0x1E9 +#define FLAG_HIDE_THREE_ISLAND_BERRY_FOREST_MAX_ETHER 0x1EA +#define FLAG_HIDE_THREE_ISLAND_BERRY_FOREST_FULL_HEAL 0x1EB +#define FLAG_HIDE_THREE_ISLAND_BERRY_FOREST_MAX_ELIXIR 0x1EC +#define FLAG_HIDE_MT_EMBER_EXTERIOR_ULTRA_BALL 0x1ED +#define FLAG_HIDE_MT_EMBER_EXTERIOR_FIRE_STONE 0x1EE +#define FLAG_HIDE_MT_EMBER_EXTERIOR_DIRE_HIT 0x1EF +#define FLAG_HIDE_FOUR_ISLAND_ICEFALL_CAVE_1F_ULTRA_BALL 0x1F0 +#define FLAG_HIDE_FOUR_ISLAND_ICEFALL_CAVE_1F_HM07 0x1F1 +#define FLAG_HIDE_FOUR_ISLAND_ICEFALL_CAVE_B1F_FULL_RESTORE 0x1F2 +#define FLAG_HIDE_FOUR_ISLAND_ICEFALL_CAVE_B1F_NEVER_MELT_ICE 0x1F3 +#define FLAG_HIDE_FIVE_ISLAND_ROCKET_WAREHOUSE_BIG_PEARL 0x1F4 +#define FLAG_HIDE_FIVE_ISLAND_ROCKET_WAREHOUSE_TM36 0x1F5 +#define FLAG_HIDE_FIVE_ISLAND_ROCKET_WAREHOUSE_PEARL 0x1F6 +#define FLAG_HIDE_FIVE_ISLAND_ROCKET_WAREHOUSE_UP_GRADE 0x1F7 +#define FLAG_HIDE_FIVE_ISLAND_LOST_CAVE_ROOM10_SILK_SCARF 0x1F8 +#define FLAG_HIDE_FIVE_ISLAND_LOST_CAVE_ROOM11_LAX_INCENSE 0x1F9 +#define FLAG_HIDE_FIVE_ISLAND_LOST_CAVE_ROOM12_SEA_INCENSE 0x1FA +#define FLAG_HIDE_FIVE_ISLAND_LOST_CAVE_ROOM13_MAX_REVIVE 0x1FB +#define FLAG_HIDE_FIVE_ISLAND_LOST_CAVE_ROOM14_RARE_CANDY 0x1FC +#define FLAG_HIDE_SEVEN_ISLAND_SEVAULT_CANYON_HOUSE_LUCKY_PUNCH 0x1FD +#define FLAG_HIDE_SILPH_CO_4F_TM41 0x1FE + +// Unused? #define FLAG_0x1FF 0x1FF #define FLAG_0x200 0x200 #define FLAG_0x201 0x201 @@ -649,214 +571,219 @@ #define FLAG_0x22D 0x22D #define FLAG_0x22E 0x22E #define FLAG_0x22F 0x22F -#define FLAG_0x230 0x230 -#define FLAG_0x231 0x231 -#define FLAG_0x232 0x232 -#define FLAG_0x233 0x233 -#define FLAG_0x234 0x234 -#define FLAG_0x235 0x235 -#define FLAG_0x236 0x236 -#define FLAG_0x237 0x237 -#define FLAG_0x238 0x238 -#define FLAG_0x239 0x239 -#define FLAG_0x23A 0x23A -#define FLAG_0x23B 0x23B -#define FLAG_0x23C 0x23C -#define FLAG_0x23D 0x23D -#define FLAG_0x23E 0x23E -#define FLAG_0x23F 0x23F -#define FLAG_0x240 0x240 -#define FLAG_0x241 0x241 -#define FLAG_0x242 0x242 -#define FLAG_GOT_COIN_CASE 0x243 -#define FLAG_0x244 0x244 -#define FLAG_0x245 0x245 -#define FLAG_0x246 0x246 -#define FLAG_0x247 0x247 -#define FLAG_0x248 0x248 -#define FLAG_0x249 0x249 -#define FLAG_0x24A 0x24A -#define FLAG_0x24B 0x24B -#define FLAG_0x24C 0x24C -#define FLAG_0x24D 0x24D -#define FLAG_0x24E 0x24E -#define FLAG_0x24F 0x24F -#define FLAG_0x250 0x250 -#define FLAG_0x251 0x251 -#define FLAG_0x252 0x252 -#define FLAG_0x253 0x253 -#define FLAG_0x254 0x254 -#define FLAG_0x255 0x255 -#define FLAG_0x256 0x256 -#define FLAG_0x257 0x257 -#define FLAG_0x258 0x258 -#define FLAG_0x259 0x259 -#define FLAG_0x25A 0x25A -#define FLAG_0x25B 0x25B -#define FLAG_0x25C 0x25C -#define FLAG_0x25D 0x25D -#define FLAG_0x25E 0x25E -#define FLAG_0x25F 0x25F -#define FLAG_0x260 0x260 -#define FLAG_0x261 0x261 -#define FLAG_0x262 0x262 -#define FLAG_0x263 0x263 -#define FLAG_0x264 0x264 -#define FLAG_0x265 0x265 -#define FLAG_PENDING_DAYCARE_EGG 0x266 -#define FLAG_0x267 0x267 -#define FLAG_0x268 0x268 -#define FLAG_0x269 0x269 -#define FLAG_0x26A 0x26A -#define FLAG_0x26B 0x26B -#define FLAG_0x26C 0x26C -#define FLAG_0x26D 0x26D -#define FLAG_0x26E 0x26E -#define FLAG_0x26F 0x26F -#define FLAG_0x270 0x270 -#define FLAG_0x271 0x271 -#define FLAG_0x272 0x272 -#define FLAG_0x273 0x273 -#define FLAG_0x274 0x274 -#define FLAG_0x275 0x275 -#define FLAG_0x276 0x276 -#define FLAG_0x277 0x277 -#define FLAG_0x278 0x278 -#define FLAG_0x279 0x279 -#define FLAG_0x27A 0x27A -#define FLAG_0x27B 0x27B -#define FLAG_0x27C 0x27C -#define FLAG_0x27D 0x27D -#define FLAG_0x27E 0x27E -#define FLAG_0x27F 0x27F -#define FLAG_0x280 0x280 -#define FLAG_0x281 0x281 -#define FLAG_0x282 0x282 -#define FLAG_0x283 0x283 -#define FLAG_0x284 0x284 -#define FLAG_0x285 0x285 -#define FLAG_0x286 0x286 -#define FLAG_0x287 0x287 -#define FLAG_0x288 0x288 -#define FLAG_0x289 0x289 -#define FLAG_0x28A 0x28A -#define FLAG_0x28B 0x28B -#define FLAG_0x28C 0x28C -#define FLAG_0x28D 0x28D -#define FLAG_0x28E 0x28E -#define FLAG_0x28F 0x28F -#define FLAG_0x290 0x290 -#define FLAG_0x291 0x291 -#define FLAG_0x292 0x292 -#define FLAG_0x293 0x293 -#define FLAG_0x294 0x294 -#define FLAG_0x295 0x295 -#define FLAG_0x296 0x296 -#define FLAG_0x297 0x297 -#define FLAG_0x298 0x298 -#define FLAG_0x299 0x299 -#define FLAG_0x29A 0x29A -#define FLAG_0x29B 0x29B -#define FLAG_0x29C 0x29C -#define FLAG_0x29D 0x29D -#define FLAG_0x29E 0x29E -#define FLAG_0x29F 0x29F -#define FLAG_0x2A0 0x2A0 -#define FLAG_0x2A1 0x2A1 -#define FLAG_0x2A2 0x2A2 -#define FLAG_0x2A3 0x2A3 -#define FLAG_0x2A4 0x2A4 -#define FLAG_0x2A5 0x2A5 -#define FLAG_0x2A6 0x2A6 -#define FLAG_0x2A7 0x2A7 -#define FLAG_0x2A8 0x2A8 -#define FLAG_0x2A9 0x2A9 -#define FLAG_0x2AA 0x2AA -#define FLAG_0x2AB 0x2AB -#define FLAG_0x2AC 0x2AC -#define FLAG_0x2AD 0x2AD -#define FLAG_0x2AE 0x2AE -#define FLAG_0x2AF 0x2AF -#define FLAG_0x2B0 0x2B0 -#define FLAG_0x2B1 0x2B1 -#define FLAG_0x2B2 0x2B2 -#define FLAG_0x2B3 0x2B3 -#define FLAG_0x2B4 0x2B4 -#define FLAG_0x2B5 0x2B5 -#define FLAG_0x2B6 0x2B6 -#define FLAG_0x2B7 0x2B7 -#define FLAG_0x2B8 0x2B8 -#define FLAG_0x2B9 0x2B9 -#define FLAG_0x2BA 0x2BA -#define FLAG_0x2BB 0x2BB -#define FLAG_0x2BC 0x2BC -#define FLAG_0x2BD 0x2BD -#define FLAG_0x2BE 0x2BE -#define FLAG_0x2BF 0x2BF -#define FLAG_0x2C0 0x2C0 -#define FLAG_0x2C1 0x2C1 -#define FLAG_0x2C2 0x2C2 -#define FLAG_0x2C3 0x2C3 -#define FLAG_0x2C4 0x2C4 -#define FLAG_0x2C5 0x2C5 -#define FLAG_0x2C6 0x2C6 -#define FLAG_0x2C7 0x2C7 -#define FLAG_0x2C8 0x2C8 -#define FLAG_0x2C9 0x2C9 -#define FLAG_0x2CA 0x2CA -#define FLAG_0x2CB 0x2CB -#define FLAG_0x2CC 0x2CC -#define FLAG_0x2CD 0x2CD -#define FLAG_0x2CE 0x2CE -#define FLAG_0x2CF 0x2CF -#define FLAG_0x2D0 0x2D0 -#define FLAG_0x2D1 0x2D1 -#define FLAG_0x2D2 0x2D2 -#define FLAG_0x2D3 0x2D3 -#define FLAG_0x2D4 0x2D4 -#define FLAG_0x2D5 0x2D5 -#define FLAG_0x2D6 0x2D6 -#define FLAG_0x2D7 0x2D7 -#define FLAG_0x2D8 0x2D8 -#define FLAG_0x2D9 0x2D9 -#define FLAG_0x2DA 0x2DA -#define FLAG_0x2DB 0x2DB -#define FLAG_0x2DC 0x2DC -#define FLAG_0x2DD 0x2DD -#define FLAG_0x2DE 0x2DE -#define FLAG_0x2DF 0x2DF -#define FLAG_0x2E0 0x2E0 -#define FLAG_0x2E1 0x2E1 -#define FLAG_0x2E2 0x2E2 -#define FLAG_0x2E3 0x2E3 -#define FLAG_0x2E4 0x2E4 -#define FLAG_0x2E5 0x2E5 -#define FLAG_0x2E6 0x2E6 -#define FLAG_0x2E7 0x2E7 -#define FLAG_0x2E8 0x2E8 -#define FLAG_0x2E9 0x2E9 -#define FLAG_0x2EA 0x2EA -#define FLAG_0x2EB 0x2EB -#define FLAG_0x2EC 0x2EC -#define FLAG_0x2ED 0x2ED -#define FLAG_0x2EE 0x2EE -#define FLAG_0x2EF 0x2EF -#define FLAG_0x2F0 0x2F0 -#define FLAG_0x2F1 0x2F1 -#define FLAG_0x2F2 0x2F2 -#define FLAG_0x2F3 0x2F3 -#define FLAG_0x2F4 0x2F4 -#define FLAG_0x2F5 0x2F5 -#define FLAG_0x2F6 0x2F6 -#define FLAG_0x2F7 0x2F7 -#define FLAG_0x2F8 0x2F8 -#define FLAG_0x2F9 0x2F9 -#define FLAG_0x2FA 0x2FA -#define FLAG_0x2FB 0x2FB -#define FLAG_0x2FC 0x2FC -#define FLAG_0x2FD 0x2FD -#define FLAG_0x2FE 0x2FE -#define FLAG_0x2FF 0x2FF + +// Story flags +#define STORY_FLAGS_START 0x230 +#define FLAG_GOT_POTION_ON_ROUTE_1 0x230 +#define FLAG_GOT_TM34_FROM_SURGE 0x231 +#define FLAG_GOT_FOSSIL_FROM_MT_MOON 0x232 +#define FLAG_HELPED_BILL_IN_SEA_COTTAGE 0x233 +#define FLAG_GOT_SS_TICKET 0x234 +#define FLAG_GOT_SS_TICKET_DUP 0x235 +#define FLAG_GOT_TM42_AT_MEMORIAL_PILLAR 0x236 +#define FLAG_GOT_HM01 0x237 +#define FLAG_GOT_HM02 0x238 +#define FLAG_GOT_HM03 0x239 +#define FLAG_GOT_HM04 0x23A +#define FLAG_GOT_HM05 0x23B +#define FLAG_RESCUED_MR_FUJI 0x23C +#define FLAG_GOT_POKE_FLUTE 0x23D +#define FLAG_0x23E 0x23E +#define FLAG_GOT_TM28_FROM_ROCKET 0x23F +#define FLAG_GOT_OLD_ROD 0x240 +#define FLAG_GOT_BIKE_VOUCHER 0x241 +#define FLAG_0x242 0x242 +#define FLAG_GOT_COIN_CASE 0x243 +#define FLAG_GOT_GOOD_ROD 0x244 +#define FLAG_GOT_TM29_FROM_MR_PSYCHIC 0x245 +#define FLAG_GOT_LAPRAS_FROM_SILPH 0x246 +#define FLAG_GOT_POKEBALLS_FROM_OAK_AFTER_22_RIVAL 0x247 +#define FLAG_DID_MIMIEN_TRADE 0x248 +#define FLAG_BOUGHT_MAGIKARP 0x249 +#define FLAG_DID_ZYNX_TRADE 0x24A +#define FLAG_DID_MS_NIDO_TRADE 0x24B +#define FLAG_0x24C 0x24C +#define FLAG_DID_CH_DING_TRADE 0x24D +#define FLAG_GOT_TM38_FROM_BLAINE 0x24E +#define FLAG_OAK_SKIP_22_RIVAL_CHECK 0x24F +#define FLAG_GOT_MASTER_BALL_FROM_SILPH 0x250 +#define FLAG_DID_NINA_TRADE 0x251 +#define FLAG_GOT_ITEMFINDER 0x252 +#define FLAG_WOKE_UP_ROUTE_12_SNORLAX 0x253 +#define FLAG_GOT_TM39_FROM_BROCK 0x254 +#define FLAG_GOT_SUPER_ROD 0x255 +#define FLAG_GOT_EXP_SHARE_FROM_OAKS_AIDE 0x256 +#define FLAG_DID_MARC_TRADE 0x257 +#define FLAG_BEAT_RIVAL_IN_OAKS_LAB 0x258 +#define FLAG_GOT_TM06_FROM_KOGA 0x259 +#define FLAG_0x25A 0x25A +#define FLAG_GOT_TM27 0x25B +#define FLAG_0x25C 0x25C +#define FLAG_0x25D 0x25D +#define FLAG_GOT_OLD_AMBER 0x25E +#define FLAG_0x25F 0x25F +#define FLAG_0x260 0x260 +#define FLAG_0x261 0x261 +#define FLAG_0x262 0x262 +#define FLAG_GOT_EEVEE 0x263 +#define FLAG_FOUND_BOTH_VERMILION_GYM_SWITCHES 0x264 +#define FLAG_CINNABAR_GYM_QUIZ_1 0x265 +#define FLAG_PENDING_DAYCARE_EGG 0x266 +#define FLAG_CINNABAR_GYM_QUIZ_2 0x267 +#define FLAG_CINNABAR_GYM_QUIZ_3 0x268 +#define FLAG_CINNABAR_GYM_QUIZ_4 0x269 +#define FLAG_CINNABAR_GYM_QUIZ_5 0x26A +#define FLAG_CINNABAR_GYM_QUIZ_6 0x26B +#define FLAG_POKEMON_MANSION_SWITCH_STATE 0x26C +#define FLAG_OPENED_ROCKET_HIDEOUT 0x26D +#define FLAG_GOT_10_COINS_FROM_GAMBLER 0x26E +#define FLAG_GOT_20_COINS_FROM_GAMBLER 0x26F +#define FLAG_GOT_20_COINS_FROM_GAMBLER_2 0x270 +#define FLAG_GOT_BICYCLE 0x271 +#define FLAG_GOT_DOME_FOSSIL 0x272 +#define FLAG_GOT_HELIX_FOSSIL 0x273 +#define FLAG_DID_ESPHERE_TRADE 0x274 +#define FLAG_DID_TANGENY_TRADE 0x275 +#define FLAG_DID_SEELOR_TRADE 0x276 +#define FLAG_0x277 0x277 +#define FLAG_GOT_HITMON_FROM_DOJO 0x278 +#define FLAG_0x279 0x279 +#define FLAG_SILPH_2F_DOOR_1 0x27A +#define FLAG_SILPH_2F_DOOR_2 0x27B +#define FLAG_SILPH_3F_DOOR_1 0x27C +#define FLAG_SILPH_3F_DOOR_2 0x27D +#define FLAG_SILPH_4F_DOOR_1 0x27E +#define FLAG_SILPH_4F_DOOR_2 0x27F +#define FLAG_SILPH_5F_DOOR_1 0x280 +#define FLAG_SILPH_5F_DOOR_2 0x281 +#define FLAG_SILPH_5F_DOOR_3 0x282 +#define FLAG_SILPH_6F_DOOR 0x283 +#define FLAG_SILPH_7F_DOOR_1 0x284 +#define FLAG_SILPH_7F_DOOR_2 0x285 +#define FLAG_SILPH_7F_DOOR_3 0x286 +#define FLAG_SILPH_8F_DOOR 0x287 +#define FLAG_SILPH_9F_DOOR_1 0x288 +#define FLAG_SILPH_9F_DOOR_2 0x289 +#define FLAG_SILPH_9F_DOOR_3 0x28A +#define FLAG_SILPH_9F_DOOR_4 0x28B +#define FLAG_SILPH_10F_DOOR 0x28C +#define FLAG_SILPH_11F_DOOR 0x28D +#define FLAG_0x28E 0x28E +#define FLAG_0x28F 0x28F +#define FLAG_MET_STICKER_LADY 0x290 +#define FLAG_PALLET_LADY_NOT_BLOCKING_SIGN 0x291 +#define FLAG_GOT_VS_SEEKER 0x292 +#define FLAG_GOT_TM19_FROM_ERIKA 0x293 +#define FLAG_GOT_TM33_FROM_THIRSTY_GIRL 0x294 +#define FLAG_GOT_TM20_FROM_THIRSTY_GIRL 0x295 +#define FLAG_GOT_TM16_FROM_THIRSTY_GIRL 0x296 +#define FLAG_GOT_TM03_FROM_MISTY 0x297 +#define FLAG_GOT_TM26_FROM_GIOVANNI 0x298 +#define FLAG_0x299 0x299 +#define FLAG_GOT_TM04_FROM_SABRINA 0x29A +#define FLAG_GOT_FAME_CHECKER 0x29B +#define FLAG_GOT_RECORD_SETTING_MAGIKARP 0x29C +#define FLAG_TWO_ISLAND_SHOP_INTRODUCED 0x29D +#define FLAG_TWO_ISLAND_SHOP_EXPANDED_1 0x29E +#define FLAG_TWO_ISLAND_SHOP_EXPANDED_2 0x29F +#define FLAG_TWO_ISLAND_SHOP_EXPANDED_3 0x2A0 +#define FLAG_SEVII_DETOUR_FINISHED 0x2A1 +#define FLAG_VISITED_TWO_ISLAND 0x2A2 +#define FLAG_RESCUED_LOSTELLE 0x2A3 +#define FLAG_0x2A4 0x2A4 +#define FLAG_CAN_USE_ROCKET_HIDEOUT_LIFT 0x2A5 +#define FLAG_GOT_TEA 0x2A6 +#define FLAG_GOT_AURORA_TICKET 0x2A7 +#define FLAG_GOT_MYSTIC_TICKET 0x2A8 +#define FLAG_0x2A9 0x2A9 +#define FLAG_0x2AA 0x2AA +#define FLAG_0x2AB 0x2AB +#define FLAG_0x2AC 0x2AC +#define FLAG_0x2AD 0x2AD +#define FLAG_0x2AE 0x2AE +#define FLAG_0x2AF 0x2AF +#define FLAG_0x2B0 0x2B0 +#define FLAG_0x2B1 0x2B1 +#define FLAG_0x2B2 0x2B2 +#define FLAG_0x2B3 0x2B3 +#define FLAG_0x2B4 0x2B4 +#define FLAG_0x2B5 0x2B5 +#define FLAG_0x2B6 0x2B6 +#define FLAG_0x2B7 0x2B7 +#define FLAG_0x2B8 0x2B8 +#define FLAG_0x2B9 0x2B9 +#define FLAG_0x2BA 0x2BA +#define FLAG_GOT_POWDER_JAR 0x2BB +#define FLAG_FOUGHT_MEWTWO 0x2BC +#define FLAG_FOUGHT_MOLTRES 0x2BD +#define FLAG_FOUGHT_ARTICUNO 0x2BE +#define FLAG_FOUGHT_ZAPDOS 0x2BF +#define FLAG_TUTOR_DOUBLE_EDGE 0x2C0 +#define FLAG_TUTOR_THUNDER_WAVE 0x2C1 +#define FLAG_TUTOR_ROCK_SLIDE 0x2C2 +#define FLAG_TUTOR_EXPLOSION 0x2C3 +#define FLAG_TUTOR_META_PUNCH 0x2C4 +#define FLAG_TUTOR_MEGA_KICK 0x2C5 +#define FLAG_TUTOR_DREAM_EATER 0x2C6 +#define FLAG_TUTOR_SOFT_BOILED 0x2C7 +#define FLAG_TUTOR_SUBSTITUTE 0x2C8 +#define FLAG_TUTOR_SWORDS_DANCE 0x2C9 +#define FLAG_TUTOR_SEISMIC_TOSS 0x2CA +#define FLAG_TUTOR_COUNTER 0x2CB +#define FLAG_TUTOR_METRONOME 0x2CC +#define FLAG_TUTOR_MIMIC 0x2CD +#define FLAG_TUTOR_BODY_SLAM 0x2CE +#define FLAG_VISITED_OAKS_LAB 0x2CF +#define FLAG_FOUGHT_POWER_PLANT_ELECTRODE_1 0x2D0 +#define FLAG_FOUGHT_POWER_PLANT_ELECTRODE_2 0x2D1 +#define FLAG_STOPPED_SEAFOAM_B3F_CURRENT 0x2D2 +#define FLAG_STOPPED_SEAFOAM_B4F_CURRENT 0x2D3 +#define FLAG_TALKED_TO_LORELEI_AFTER_WAREHOUSE 0x2D4 +#define FLAG_DEFEATED_ROCKETS_IN_WAREHOUSE 0x2D5 +#define FLAG_UNLOCKED_ROCKET_WAREHOUSE 0x2D6 +#define FLAG_NO_ROOM_FOR_TM42_AT_MEMORIAL_PILLAR 0x2D7 +#define FLAG_LEARNED_YES_NAH_CHANSEY 0x2D8 +#define FLAG_GOT_NEST_BALL_FROM_WATER_PATH_HOUSE_1 0x2D9 +#define FLAG_GOT_TOGEPI_EGG 0x2DA +#define FLAG_NO_ROOM_FOR_TOGEPI_EGG 0x2DB +#define FLAG_RECOVERED_SAPPHIRE 0x2DC +#define FLAG_GOT_RUBY 0x2DD +#define FLAG_TUTOR_FRENZY_PLANT 0x2DE +#define FLAG_TUTOR_BLAST_BURN 0x2DF +#define FLAG_TUTOR_HYDRO_CANNON 0x2E0 +#define FLAG_LEARNED_ALL_MOVES_AT_CAPE_BRINK 0x2E1 +#define FLAG_GOT_NUGGET_FROM_DUNSPARCE_TUNNEL 0x2E2 +#define FLAG_USED_CUT_ON_RUIN_VALLEY_BRAILLE 0x2E3 +#define FLAG_FOUGHT_DEOXYS 0x2E4 +#define FLAG_0x2E5 0x2E5 +#define FLAG_0x2E6 0x2E6 +#define FLAG_0x2E7 0x2E7 +#define FLAG_0x2E8 0x2E8 +#define FLAG_0x2E9 0x2E9 +#define FLAG_0x2EA 0x2EA +#define FLAG_0x2EB 0x2EB +#define FLAG_REVIVED_DOME 0x2EC +#define FLAG_REVIVED_HELIX 0x2ED +#define FLAG_REVIVED_AMBER 0x2EE +#define FLAG_GOT_HM06 0x2EF +#define FLAG_SHOWED_MYSTICTICKET_TO_CAPTAIN 0x2F0 +#define FLAG_SHOWED_AURORATICKET_TO_CAPTAIN 0x2F1 +#define FLAG_FOUGHT_LUGIA 0x2F2 +#define FLAG_FOUGHT_HO_OH 0x2F3 +#define FLAG_OAK_SAW_DEX_COMPLETION 0x2F4 +#define FLAG_LUGIA_FLEW_AWAY 0x2F5 +#define FLAG_HO_OH_FLEW_AWAY 0x2F6 +#define FLAG_DEOXYS_FLEW_AWAY 0x2F7 +#define FLAG_TALKED_TO_TEA_LADY_AFTER_HOF 0x2F8 +#define FLAG_TALKED_TO_OAKS_AIDE_IN_VERMILION 0x2F9 +#define FLAG_GOT_EVERSTONE_FROM_OAKS_AIDE 0x2FA +#define FLAG_GOT_MOON_STONE_FROM_JOYFUL_GAME_CORNER 0x2FB +#define FLAG_GOT_FULL_RESTORE_FROM_THREE_ISLAND_DEFENDER 0x2FC +#define FLAG_GOT_AMULET_COIN_FROM_OAKS_AIDE 0x2FD +#define FLAG_NO_ROOM_FOR_JOYFUL_GAME_CORNER_MOON_STONE 0x2FE +#define FLAG_OAKS_RATING_IS_VIA_PC 0x2FF + +// Unused? #define FLAG_0x300 0x300 #define FLAG_0x301 0x301 #define FLAG_0x302 0x302 @@ -1073,7 +1000,7 @@ #define FLAG_0x3D5 0x3D5 #define FLAG_0x3D6 0x3D6 #define FLAG_0x3D7 0x3D7 -#define FLAG_0x3D8 0x3D8 +#define FLAG_MYSTERY_EVENT_DONE 0x3D8 #define FLAG_0x3D9 0x3D9 #define FLAG_0x3DA 0x3DA #define FLAG_0x3DB 0x3DB @@ -1090,198 +1017,202 @@ #define FLAG_0x3E6 0x3E6 #define FLAG_0x3E7 0x3E7 -#define FLAG_TRAINER_TOWER_START 1000 // 0x3E8 -#define FLAG_0x3E8 0x3E8 -#define FLAG_0x3E9 0x3E9 -#define FLAG_0x3EA 0x3EA -#define FLAG_0x3EB 0x3EB -#define FLAG_0x3EC 0x3EC -#define FLAG_0x3ED 0x3ED -#define FLAG_0x3EE 0x3EE -#define FLAG_0x3EF 0x3EF -#define FLAG_0x3F0 0x3F0 -#define FLAG_0x3F1 0x3F1 -#define FLAG_0x3F2 0x3F2 -#define FLAG_0x3F3 0x3F3 -#define FLAG_0x3F4 0x3F4 -#define FLAG_0x3F5 0x3F5 -#define FLAG_0x3F6 0x3F6 -#define FLAG_0x3F7 0x3F7 -#define FLAG_0x3F8 0x3F8 -#define FLAG_0x3F9 0x3F9 -#define FLAG_0x3FA 0x3FA -#define FLAG_0x3FB 0x3FB -#define FLAG_0x3FC 0x3FC -#define FLAG_0x3FD 0x3FD -#define FLAG_0x3FE 0x3FE -#define FLAG_0x3FF 0x3FF -#define FLAG_0x400 0x400 -#define FLAG_0x401 0x401 -#define FLAG_0x402 0x402 -#define FLAG_0x403 0x403 -#define FLAG_0x404 0x404 -#define FLAG_0x405 0x405 -#define FLAG_0x406 0x406 -#define FLAG_0x407 0x407 -#define FLAG_0x408 0x408 -#define FLAG_0x409 0x409 -#define FLAG_0x40A 0x40A -#define FLAG_0x40B 0x40B -#define FLAG_0x40C 0x40C -#define FLAG_0x40D 0x40D -#define FLAG_0x40E 0x40E -#define FLAG_0x40F 0x40F -#define FLAG_0x410 0x410 -#define FLAG_0x411 0x411 -#define FLAG_0x412 0x412 -#define FLAG_0x413 0x413 -#define FLAG_0x414 0x414 -#define FLAG_0x415 0x415 -#define FLAG_0x416 0x416 -#define FLAG_0x417 0x417 -#define FLAG_0x418 0x418 -#define FLAG_0x419 0x419 -#define FLAG_0x41A 0x41A -#define FLAG_0x41B 0x41B -#define FLAG_0x41C 0x41C -#define FLAG_0x41D 0x41D -#define FLAG_0x41E 0x41E -#define FLAG_0x41F 0x41F -#define FLAG_0x420 0x420 -#define FLAG_0x421 0x421 -#define FLAG_0x422 0x422 -#define FLAG_0x423 0x423 -#define FLAG_0x424 0x424 -#define FLAG_0x425 0x425 -#define FLAG_0x426 0x426 -#define FLAG_0x427 0x427 -#define FLAG_0x428 0x428 -#define FLAG_0x429 0x429 -#define FLAG_0x42A 0x42A -#define FLAG_0x42B 0x42B -#define FLAG_0x42C 0x42C -#define FLAG_0x42D 0x42D -#define FLAG_0x42E 0x42E -#define FLAG_0x42F 0x42F -#define FLAG_0x430 0x430 -#define FLAG_0x431 0x431 -#define FLAG_0x432 0x432 -#define FLAG_0x433 0x433 -#define FLAG_0x434 0x434 -#define FLAG_0x435 0x435 -#define FLAG_0x436 0x436 -#define FLAG_0x437 0x437 -#define FLAG_0x438 0x438 -#define FLAG_0x439 0x439 -#define FLAG_0x43A 0x43A -#define FLAG_0x43B 0x43B -#define FLAG_0x43C 0x43C -#define FLAG_0x43D 0x43D -#define FLAG_0x43E 0x43E -#define FLAG_0x43F 0x43F -#define FLAG_0x440 0x440 -#define FLAG_0x441 0x441 -#define FLAG_0x442 0x442 -#define FLAG_0x443 0x443 -#define FLAG_0x444 0x444 -#define FLAG_0x445 0x445 -#define FLAG_0x446 0x446 -#define FLAG_0x447 0x447 -#define FLAG_0x448 0x448 -#define FLAG_0x449 0x449 -#define FLAG_0x44A 0x44A -#define FLAG_0x44B 0x44B -#define FLAG_0x44C 0x44C -#define FLAG_0x44D 0x44D -#define FLAG_0x44E 0x44E -#define FLAG_0x44F 0x44F -#define FLAG_0x450 0x450 -#define FLAG_0x451 0x451 -#define FLAG_0x452 0x452 -#define FLAG_0x453 0x453 -#define FLAG_0x454 0x454 -#define FLAG_0x455 0x455 -#define FLAG_0x456 0x456 -#define FLAG_0x457 0x457 -#define FLAG_0x458 0x458 -#define FLAG_0x459 0x459 -#define FLAG_0x45A 0x45A -#define FLAG_0x45B 0x45B -#define FLAG_0x45C 0x45C -#define FLAG_0x45D 0x45D -#define FLAG_0x45E 0x45E -#define FLAG_0x45F 0x45F -#define FLAG_0x460 0x460 -#define FLAG_0x461 0x461 -#define FLAG_0x462 0x462 -#define FLAG_0x463 0x463 -#define FLAG_0x464 0x464 -#define FLAG_0x465 0x465 -#define FLAG_0x466 0x466 -#define FLAG_0x467 0x467 -#define FLAG_0x468 0x468 -#define FLAG_0x469 0x469 -#define FLAG_0x46A 0x46A -#define FLAG_0x46B 0x46B -#define FLAG_0x46C 0x46C -#define FLAG_0x46D 0x46D -#define FLAG_0x46E 0x46E -#define FLAG_0x46F 0x46F -#define FLAG_0x470 0x470 -#define FLAG_0x471 0x471 -#define FLAG_0x472 0x472 -#define FLAG_0x473 0x473 -#define FLAG_0x474 0x474 -#define FLAG_0x475 0x475 -#define FLAG_0x476 0x476 -#define FLAG_0x477 0x477 -#define FLAG_0x478 0x478 -#define FLAG_0x479 0x479 -#define FLAG_0x47A 0x47A -#define FLAG_0x47B 0x47B -#define FLAG_0x47C 0x47C -#define FLAG_0x47D 0x47D -#define FLAG_0x47E 0x47E -#define FLAG_0x47F 0x47F -#define FLAG_0x480 0x480 -#define FLAG_0x481 0x481 -#define FLAG_0x482 0x482 -#define FLAG_0x483 0x483 -#define FLAG_0x484 0x484 -#define FLAG_0x485 0x485 -#define FLAG_0x486 0x486 -#define FLAG_0x487 0x487 -#define FLAG_0x488 0x488 -#define FLAG_0x489 0x489 -#define FLAG_0x48A 0x48A -#define FLAG_0x48B 0x48B -#define FLAG_0x48C 0x48C -#define FLAG_0x48D 0x48D -#define FLAG_0x48E 0x48E -#define FLAG_0x48F 0x48F -#define FLAG_0x490 0x490 -#define FLAG_0x491 0x491 -#define FLAG_0x492 0x492 -#define FLAG_0x493 0x493 -#define FLAG_0x494 0x494 -#define FLAG_0x495 0x495 -#define FLAG_0x496 0x496 -#define FLAG_0x497 0x497 -#define FLAG_0x498 0x498 -#define FLAG_0x499 0x499 -#define FLAG_0x49A 0x49A -#define FLAG_0x49B 0x49B -#define FLAG_0x49C 0x49C -#define FLAG_0x49D 0x49D -#define FLAG_0x49E 0x49E -#define FLAG_0x49F 0x49F -#define FLAG_0x4A0 0x4A0 -#define FLAG_0x4A1 0x4A1 -#define FLAG_0x4A2 0x4A2 -#define FLAG_0x4A3 0x4A3 -#define FLAG_0x4A4 0x4A4 -#define FLAG_0x4A5 0x4A5 -#define FLAG_0x4A6 0x4A6 +#define FLAG_HIDDEN_ITEMS_START 1000 // 0x3E8 +#define FLAG_HIDDEN_ITEM(map, item) (FLAG_HIDDEN_ITEMS_START + HIDDEN_ITEM_##map##_##item) + +#define HIDDEN_ITEM_VIRIDIAN_FOREST_POTION 0 +#define HIDDEN_ITEM_VIRIDIAN_FOREST_ANTIDOTE 1 +#define HIDDEN_ITEM_MT_MOON_B2F_MOON_STONE 2 +#define HIDDEN_ITEM_MT_MOON_B2F_ETHER 3 +#define HIDDEN_ITEM_ROUTE25_ELIXIR 4 +#define HIDDEN_ITEM_ROUTE25_ETHER 5 +#define HIDDEN_ITEM_ROUTE9_ETHER 6 +#define HIDDEN_ITEM_UNUSED_0x07 7 +#define HIDDEN_ITEM_SSANNE_B1F_CORRIDOR_HYPER_POTION 8 +#define HIDDEN_ITEM_ROUTE10_SUPER_POTION 9 +#define HIDDEN_ITEM_ROUTE10_MAX_ETHER 10 +#define HIDDEN_ITEM_ROCKET_HIDEOUT_B1F_PP_UP 11 +#define HIDDEN_ITEM_ROCKET_HIDEOUT_B3F_NUGGET 12 +#define HIDDEN_ITEM_ROCKET_HIDEOUT_B4F_NEST_BALL 13 +#define HIDDEN_ITEM_POKEMON_TOWER_5F_BIG_MUSHROOM 14 +#define HIDDEN_ITEM_ROUTE13_PP_UP 15 +#define HIDDEN_ITEM_UNUSED_0x10 16 +#define HIDDEN_ITEM_ROUTE17_RARE_CANDY 17 +#define HIDDEN_ITEM_ROUTE17_FULL_RESTORE 18 +#define HIDDEN_ITEM_ROUTE17_PP_UP 19 +#define HIDDEN_ITEM_ROUTE17_MAX_REVIVE 20 +#define HIDDEN_ITEM_ROUTE17_MAX_ELIXIR 21 +#define HIDDEN_ITEM_SAFARI_ZONE_CENTER_LEAF_STONE 22 +#define HIDDEN_ITEM_SAFARI_ZONE_WEST_REVIVE 23 +#define HIDDEN_ITEM_SILPH_CO_5F_ELIXIR 24 +#define HIDDEN_ITEM_SILPH_CO_9F_MAX_POTION 25 +#define HIDDEN_ITEM_SAFFRON_CITY_HOUSE1_2F_NUGGET 26 +#define HIDDEN_ITEM_POWER_PLANT_MAX_ELIXIR 27 +#define HIDDEN_ITEM_POWER_PLANT_THUNDER_STONE 28 +#define HIDDEN_ITEM_SEAFOAM_ISLANDS_B3F_NUGGET 29 +#define HIDDEN_ITEM_SEAFOAM_ISLANDS_B4F_WATER_STONE 30 +#define HIDDEN_ITEM_POKEMON_MANSION_1F_MOON_STONE 31 +#define HIDDEN_ITEM_POKEMON_MANSION_3F_RARE_CANDY 32 +#define HIDDEN_ITEM_POKEMON_MANSION_B1F_ELIXIR 33 +#define HIDDEN_ITEM_ROUTE23_FULL_RESTORE 34 +#define HIDDEN_ITEM_ROUTE23_ULTRA_BALL 35 +#define HIDDEN_ITEM_ROUTE23_MAX_ETHER 36 +#define HIDDEN_ITEM_VICTORY_ROAD_1F_ULTRA_BALL 37 +#define HIDDEN_ITEM_VICTORY_ROAD_1F_FULL_RESTORE 38 +#define HIDDEN_ITEM_CERULEAN_CAVE_1F_ULTRA_BALL 39 +#define HIDDEN_ITEM_UNUSED_0x28 40 +#define HIDDEN_ITEM_ROUTE11_ESCAPE_ROPE 41 +#define HIDDEN_ITEM_ROUTE12_HYPER_POTION 42 +#define HIDDEN_ITEM_UNUSED_0x2B 43 +#define HIDDEN_ITEM_UNUSED_0x2C 44 +#define HIDDEN_ITEM_UNUSED_0x2D 45 +#define HIDDEN_ITEM_UNUSED_0x2E 46 +#define HIDDEN_ITEM_CELADON_CITY_PP_UP 47 +#define HIDDEN_ITEM_VERMILION_CITY_MAX_ETHER 48 +#define HIDDEN_ITEM_CERULEAN_CITY_RARE_CANDY 49 +#define HIDDEN_ITEM_ROUTE4_GREAT_BALL 50 +#define HIDDEN_ITEM_CELADON_CITY_GAME_CORNER_COINS 51 +#define HIDDEN_ITEM_CELADON_CITY_GAME_CORNER_COINS_2 52 +#define HIDDEN_ITEM_CELADON_CITY_GAME_CORNER_COINS_3 53 +#define HIDDEN_ITEM_CELADON_CITY_GAME_CORNER_COINS_4 54 +#define HIDDEN_ITEM_CELADON_CITY_GAME_CORNER_COINS_5 55 +#define HIDDEN_ITEM_CELADON_CITY_GAME_CORNER_COINS_6 56 +#define HIDDEN_ITEM_CELADON_CITY_GAME_CORNER_COINS_7 57 +#define HIDDEN_ITEM_CELADON_CITY_GAME_CORNER_COINS_8 58 +#define HIDDEN_ITEM_CELADON_CITY_GAME_CORNER_COINS_9 59 +#define HIDDEN_ITEM_CELADON_CITY_GAME_CORNER_COINS_10 60 +#define HIDDEN_ITEM_CELADON_CITY_GAME_CORNER_COINS_11 61 +#define HIDDEN_ITEM_CELADON_CITY_GAME_CORNER_COINS_12 62 +#define HIDDEN_ITEM_SEVEN_ISLAND_SEVAULT_CANYON_CHERI_BERRY 63 +#define HIDDEN_ITEM_SEVEN_ISLAND_TANOBY_RUINS_HEART_SCALE_4 64 +#define HIDDEN_ITEM_SEVEN_ISLAND_TANOBY_RUINS_HEART_SCALE 65 +#define HIDDEN_ITEM_SEVEN_ISLAND_TANOBY_RUINS_HEART_SCALE_2 66 +#define HIDDEN_ITEM_SEVEN_ISLAND_TANOBY_RUINS_HEART_SCALE_3 67 +#define HIDDEN_ITEM_FIVE_ISLAND_ROCKET_WAREHOUSE_NEST_BALL 68 +#define HIDDEN_ITEM_FIVE_ISLAND_ROCKET_WAREHOUSE_NET_BALL 69 +#define HIDDEN_ITEM_UNDERGROUND_PATH_NORTH_SOUTH_TUNNEL_POTION 70 +#define HIDDEN_ITEM_UNDERGROUND_PATH_NORTH_SOUTH_TUNNEL_ANTIDOTE 71 +#define HIDDEN_ITEM_UNDERGROUND_PATH_NORTH_SOUTH_TUNNEL_PARALYZE_HEAL 72 +#define HIDDEN_ITEM_UNDERGROUND_PATH_NORTH_SOUTH_TUNNEL_AWAKENING 73 +#define HIDDEN_ITEM_UNDERGROUND_PATH_NORTH_SOUTH_TUNNEL_BURN_HEAL 74 +#define HIDDEN_ITEM_UNDERGROUND_PATH_NORTH_SOUTH_TUNNEL_ICE_HEAL 75 +#define HIDDEN_ITEM_UNDERGROUND_PATH_NORTH_SOUTH_TUNNEL_ETHER 76 +#define HIDDEN_ITEM_UNDERGROUND_PATH_EAST_WEST_TUNNEL_POTION 77 +#define HIDDEN_ITEM_UNDERGROUND_PATH_EAST_WEST_TUNNEL_ANTIDOTE 78 +#define HIDDEN_ITEM_UNDERGROUND_PATH_EAST_WEST_TUNNEL_PARALYZE_HEAL 79 +#define HIDDEN_ITEM_UNDERGROUND_PATH_EAST_WEST_TUNNEL_AWAKENING 80 +#define HIDDEN_ITEM_UNDERGROUND_PATH_EAST_WEST_TUNNEL_BURN_HEAL 81 +#define HIDDEN_ITEM_UNDERGROUND_PATH_EAST_WEST_TUNNEL_ICE_HEAL 82 +#define HIDDEN_ITEM_UNDERGROUND_PATH_EAST_WEST_TUNNEL_ETHER 83 +#define HIDDEN_ITEM_MT_MOON_B1F_TINY_MUSHROOM 84 +#define HIDDEN_ITEM_MT_MOON_B1F_TINY_MUSHROOM_2 85 +#define HIDDEN_ITEM_MT_MOON_B1F_TINY_MUSHROOM_3 86 +#define HIDDEN_ITEM_MT_MOON_B1F_BIG_MUSHROOM 87 +#define HIDDEN_ITEM_MT_MOON_B1F_BIG_MUSHROOM_2 88 +#define HIDDEN_ITEM_MT_MOON_B1F_BIG_MUSHROOM_3 89 +#define HIDDEN_ITEM_THREE_ISLAND_BERRY_FOREST_RAZZ_BERRY 90 +#define HIDDEN_ITEM_THREE_ISLAND_BERRY_FOREST_BLUK_BERRY 91 +#define HIDDEN_ITEM_THREE_ISLAND_BERRY_FOREST_NANAB_BERRY 92 +#define HIDDEN_ITEM_THREE_ISLAND_BERRY_FOREST_WEPEAR_BERRY 93 +#define HIDDEN_ITEM_THREE_ISLAND_BERRY_FOREST_ORAN_BERRY 94 +#define HIDDEN_ITEM_THREE_ISLAND_BERRY_FOREST_CHERI_BERRY 95 +#define HIDDEN_ITEM_THREE_ISLAND_BERRY_FOREST_CHESTO_BERRY 96 +#define HIDDEN_ITEM_THREE_ISLAND_BERRY_FOREST_PECHA_BERRY 97 +#define HIDDEN_ITEM_THREE_ISLAND_BERRY_FOREST_RAWST_BERRY 98 +#define HIDDEN_ITEM_THREE_ISLAND_BERRY_FOREST_ASPEAR_BERRY 99 +#define HIDDEN_ITEM_THREE_ISLAND_BERRY_FOREST_PERSIM_BERRY 100 +#define HIDDEN_ITEM_THREE_ISLAND_BERRY_FOREST_PINAP_BERRY 101 +#define HIDDEN_ITEM_THREE_ISLAND_BERRY_FOREST_LUM_BERRY 102 +#define HIDDEN_ITEM_ONE_ISLAND_TREASURE_BEACH_STARDUST 103 +#define HIDDEN_ITEM_ONE_ISLAND_TREASURE_BEACH_STARDUST_2 104 +#define HIDDEN_ITEM_ONE_ISLAND_TREASURE_BEACH_PEARL 105 +#define HIDDEN_ITEM_ONE_ISLAND_TREASURE_BEACH_PEARL_2 106 +#define HIDDEN_ITEM_ONE_ISLAND_TREASURE_BEACH_ULTRA_BALL 107 +#define HIDDEN_ITEM_ONE_ISLAND_TREASURE_BEACH_ULTRA_BALL_2 108 +#define HIDDEN_ITEM_ONE_ISLAND_TREASURE_BEACH_STAR_PIECE 109 +#define HIDDEN_ITEM_ONE_ISLAND_TREASURE_BEACH_BIG_PEARL 110 +#define HIDDEN_ITEM_TWO_ISLAND_CAPE_BRINK_RARE_CANDY 111 +#define HIDDEN_ITEM_PEWTER_CITY_POKE_BALL 112 +#define HIDDEN_ITEM_ROUTE3_ORAN_BERRY 113 +#define HIDDEN_ITEM_ROUTE4_PERSIM_BERRY 114 +#define HIDDEN_ITEM_ROUTE24_PECHA_BERRY 115 +#define HIDDEN_ITEM_ROUTE25_ORAN_BERRY 116 +#define HIDDEN_ITEM_ROUTE25_BLUK_BERRY 117 +#define HIDDEN_ITEM_ROUTE6_SITRUS_BERRY 118 +#define HIDDEN_ITEM_ROUTE6_RARE_CANDY 119 +#define HIDDEN_ITEM_SSANNE_KITCHEN_PECHA_BERRY 120 +#define HIDDEN_ITEM_SSANNE_KITCHEN_CHERI_BERRY 121 +#define HIDDEN_ITEM_SSANNE_KITCHEN_CHESTO_BERRY 122 +#define HIDDEN_ITEM_ROUTE9_RARE_CANDY 123 +#define HIDDEN_ITEM_UNUSED_0x7C 124 +#define HIDDEN_ITEM_ROUTE10_PERSIM_BERRY 125 +#define HIDDEN_ITEM_ROUTE10_CHERI_BERRY 126 +#define HIDDEN_ITEM_ROUTE8_RAWST_BERRY 127 +#define HIDDEN_ITEM_ROUTE8_LUM_BERRY 128 +#define HIDDEN_ITEM_ROUTE8_LEPPA_BERRY 129 +#define HIDDEN_ITEM_ROUTE12_RARE_CANDY 130 +#define HIDDEN_ITEM_ROUTE12_LEFTOVERS 131 +#define HIDDEN_ITEM_ROUTE16_LEFTOVERS 132 +#define HIDDEN_ITEM_FUCHSIA_CITY_MAX_REVIVE 133 +#define HIDDEN_ITEM_ROCKET_HIDEOUT_B4F_NET_BALL 134 +#define HIDDEN_ITEM_SILPH_CO_2F_ULTRA_BALL 135 +#define HIDDEN_ITEM_SILPH_CO_3F_PROTEIN 136 +#define HIDDEN_ITEM_SILPH_CO_4F_IRON 137 +#define HIDDEN_ITEM_SILPH_CO_5F_PP_UP 138 +#define HIDDEN_ITEM_SILPH_CO_6F_CARBOS 139 +#define HIDDEN_ITEM_SILPH_CO_7F_ZINC 140 +#define HIDDEN_ITEM_SILPH_CO_8F_NUGGET 141 +#define HIDDEN_ITEM_SILPH_CO_9F_CALCIUM 142 +#define HIDDEN_ITEM_SILPH_CO_10F_HP_UP 143 +#define HIDDEN_ITEM_SILPH_CO_11F_REVIVE 144 +#define HIDDEN_ITEM_ROUTE23_LUM_BERRY 145 +#define HIDDEN_ITEM_ROUTE23_SITRUS_BERRY 146 +#define HIDDEN_ITEM_ROUTE23_ASPEAR_BERRY 147 +#define HIDDEN_ITEM_ROUTE23_LEPPA_BERRY 148 +#define HIDDEN_ITEM_ROUTE14_ZINC 149 +#define HIDDEN_ITEM_ROUTE9_CHESTO_BERRY 150 +#define HIDDEN_ITEM_ROUTE10_NANAB_BERRY 151 +#define HIDDEN_ITEM_ROUTE7_WEPEAR_BERRY 152 +#define HIDDEN_ITEM_ROUTE20_STARDUST 153 +#define HIDDEN_ITEM_ROUTE21_NORTH_PEARL 154 +#define HIDDEN_ITEM_ROUTE23_MAX_ELIXIR 155 +#define HIDDEN_ITEM_ROUTE4_RAZZ_BERRY 156 +#define HIDDEN_ITEM_ROUTE14_PINAP_BERRY 157 +#define HIDDEN_ITEM_MT_EMBER_EXTERIOR_FIRE_STONE 158 +#define HIDDEN_ITEM_POKEMON_TOWER_7F_SOOTHE_BELL 159 +#define HIDDEN_ITEM_NAVEL_ROCK_SUMMIT_SACRED_ASH 160 +#define HIDDEN_ITEM_TWO_ISLAND_CAPE_BRINK_PP_MAX 161 +#define HIDDEN_ITEM_MT_EMBER_EXTERIOR_ULTRA_BALL 162 +#define HIDDEN_ITEM_THREE_ISLAND_DUNSPARCE_TUNNEL_NUGGET 163 +#define HIDDEN_ITEM_THREE_ISLAND_PP_UP 164 +#define HIDDEN_ITEM_THREE_ISLAND_BOND_BRIDGE_MAX_REPEL 165 +#define HIDDEN_ITEM_THREE_ISLAND_BOND_BRIDGE_PEARL 166 +#define HIDDEN_ITEM_THREE_ISLAND_BOND_BRIDGE_STARDUST 167 +#define HIDDEN_ITEM_FOUR_ISLAND_PEARL 168 +#define HIDDEN_ITEM_FOUR_ISLAND_ULTRA_BALL 169 +#define HIDDEN_ITEM_FIVE_ISLAND_MEMORIAL_PILLAR_BIG_PEARL 170 +#define HIDDEN_ITEM_FIVE_ISLAND_MEMORIAL_PILLAR_RAZZ_BERRY 171 +#define HIDDEN_ITEM_FIVE_ISLAND_MEMORIAL_PILLAR_SITRUS_BERRY 172 +#define HIDDEN_ITEM_FIVE_ISLAND_MEMORIAL_PILLAR_BLUK_BERRY 173 +#define HIDDEN_ITEM_FIVE_ISLAND_RESORT_GORGEOUS_NEST_BALL 174 +#define HIDDEN_ITEM_FIVE_ISLAND_RESORT_GORGEOUS_STARDUST 175 +#define HIDDEN_ITEM_FIVE_ISLAND_RESORT_GORGEOUS_STAR_PIECE 176 +#define HIDDEN_ITEM_FIVE_ISLAND_RESORT_GORGEOUS_STARDUST_2 177 +#define HIDDEN_ITEM_SIX_ISLAND_OUTCAST_ISLAND_STAR_PIECE 178 +#define HIDDEN_ITEM_SIX_ISLAND_OUTCAST_ISLAND_NET_BALL 179 +#define HIDDEN_ITEM_SIX_ISLAND_GREEN_PATH_ULTRA_BALL 180 +#define HIDDEN_ITEM_SIX_ISLAND_WATER_PATH_ASPEAR_BERRY 181 +#define HIDDEN_ITEM_SIX_ISLAND_WATER_PATH_ORAN_BERRY 182 +#define HIDDEN_ITEM_SIX_ISLAND_WATER_PATH_PINAP_BERRY 183 +#define HIDDEN_ITEM_SIX_ISLAND_LEPPA_BERRY 184 +#define HIDDEN_ITEM_SEVEN_ISLAND_TRAINER_TOWER_BIG_PEARL 185 +#define HIDDEN_ITEM_SEVEN_ISLAND_TRAINER_TOWER_PEARL 186 +#define HIDDEN_ITEM_SEVEN_ISLAND_TRAINER_TOWER_NANAB_BERRY 187 +#define HIDDEN_ITEM_SEVEN_ISLAND_SEVAULT_CANYON_ENTRANCE_RAWST_BERRY 188 +#define HIDDEN_ITEM_VIRIDIAN_CITY_GYM_MACHO_BRACE 189 +#define HIDDEN_ITEM_SSANNE_EXTERIOR_LAVA_COOKIE 190 + +// Unused? #define FLAG_0x4A7 0x4A7 #define FLAG_0x4A8 0x4A8 #define FLAG_0x4A9 0x4A9 @@ -1291,19 +1222,23 @@ #define FLAG_0x4AD 0x4AD #define FLAG_0x4AE 0x4AE #define FLAG_0x4AF 0x4AF -#define FLAG_0x4B0 0x4B0 -#define FLAG_0x4B1 0x4B1 -#define FLAG_0x4B2 0x4B2 -#define FLAG_0x4B3 0x4B3 -#define FLAG_0x4B4 0x4B4 -#define FLAG_0x4B5 0x4B5 -#define FLAG_0x4B6 0x4B6 -#define FLAG_0x4B7 0x4B7 -#define FLAG_0x4B8 0x4B8 -#define FLAG_0x4B9 0x4B9 -#define FLAG_0x4BA 0x4BA -#define FLAG_0x4BB 0x4BB -#define FLAG_0x4BC 0x4BC + +// Boss clear flags, 1200 +#define FLAG_DEFEATED_BROCK 0x4B0 +#define FLAG_DEFEATED_MISTY 0x4B1 +#define FLAG_DEFEATED_LT_SURGE 0x4B2 +#define FLAG_DEFEATED_ERIKA 0x4B3 +#define FLAG_DEFEATED_KOGA 0x4B4 +#define FLAG_DEFEATED_SABRINA 0x4B5 +#define FLAG_DEFEATED_BLAINE 0x4B6 +#define FLAG_DEFEATED_LEADER_GIOVANNI 0x4B7 +#define FLAG_DEFEATED_LORELEI 0x4B8 +#define FLAG_DEFEATED_BRUNO 0x4B9 +#define FLAG_DEFEATED_AGATHA 0x4BA +#define FLAG_DEFEATED_LANCE 0x4BB +#define FLAG_DEFEATED_CHAMP 0x4BC + +// Unused? #define FLAG_0x4BD 0x4BD #define FLAG_0x4BE 0x4BE #define FLAG_0x4BF 0x4BF @@ -1374,299 +1309,131 @@ #define FLAG_TRAINER_FLAG_START 0x500 -#define TRAINERS_FLAG_NO 0x356 -#define CODE_FLAGS (FLAG_TRAINER_FLAG_START + TRAINERS_FLAG_NO + 0xA) // 0x860 +#define TRAINERS_FLAG_NO 0x2E7 // 743 +#define TRAINER_FLAGS_WORDS 0x300 -// TODO: These three are badge flags -#define FLAG_UNK820 0x820 -#define FLAG_UNK824 0x824 -#define FLAG_UNK826 0x826 - -#define FLAG_UNK843 0x843 +#define SYS_FLAGS (FLAG_TRAINER_FLAG_START + TRAINER_FLAGS_WORDS) // 0x800 // SYSTEM FLAGS -// 0x860 -#define FLAG_SYS_POKEMON_GET (CODE_FLAGS + 0) -#define FLAG_SYS_POKEDEX_GET (CODE_FLAGS + 1) -#define FLAG_SYS_POKENAV_GET (CODE_FLAGS + 2) -// third one appears unused -#define FLAG_SYS_GAME_CLEAR (CODE_FLAGS + 4) -#define FLAG_SYS_CHAT_USED (CODE_FLAGS + 5) -#define FLAG_SYS_HIPSTER_MEET (CODE_FLAGS + 6) +// 0x800 -// badges -#define FLAG_BADGE01_GET (CODE_FLAGS + 7) -#define FLAG_BADGE02_GET (CODE_FLAGS + 8) -#define FLAG_BADGE03_GET (CODE_FLAGS + 9) -#define FLAG_BADGE04_GET (CODE_FLAGS + 0xA) -#define FLAG_BADGE05_GET (CODE_FLAGS + 0xB) -#define FLAG_BADGE06_GET (CODE_FLAGS + 0xC) -#define FLAG_BADGE07_GET (CODE_FLAGS + 0xD) -#define FLAG_BADGE08_GET (CODE_FLAGS + 0xE) +#define FLAG_SYS_SAFARI_MODE (SYS_FLAGS + 0x0) +#define FLAG_SYS_VS_SEEKER_CHARGING (SYS_FLAGS + 0x1) +#define FLAG_SYS_WHITE_FLUTE_ACTIVE (SYS_FLAGS + 0x3) +#define FLAG_SYS_BLACK_FLUTE_ACTIVE (SYS_FLAGS + 0x4) +#define FLAG_SYS_STRENGTH_ACTIVE (SYS_FLAGS + 0x5) +#define FLAG_SYS_FLASH_ACTIVE (SYS_FLAGS + 0x6) +#define FLAG_SYS_SPECIAL_WILD_BATTLE (SYS_FLAGS + 0x7) +#define FLAG_0x808 (SYS_FLAGS + 0x8) -// cities and towns -#define FLAG_VISITED_LITTLEROOT_TOWN (CODE_FLAGS + 0xF) -#define FLAG_VISITED_OLDALE_TOWN (CODE_FLAGS + 0x10) -#define FLAG_VISITED_DEWFORD_TOWN (CODE_FLAGS + 0x11) -#define FLAG_VISITED_LAVARIDGE_TOWN (CODE_FLAGS + 0x12) -#define FLAG_VISITED_FALLARBOR_TOWN (CODE_FLAGS + 0x13) -#define FLAG_VISITED_VERDANTURF_TOWN (CODE_FLAGS + 0x14) -#define FLAG_VISITED_PACIFIDLOG_TOWN (CODE_FLAGS + 0x15) -#define FLAG_VISITED_PETALBURG_CITY (CODE_FLAGS + 0x16) -#define FLAG_VISITED_SLATEPORT_CITY (CODE_FLAGS + 0x17) -#define FLAG_VISITED_MAUVILLE_CITY (CODE_FLAGS + 0x18) -#define FLAG_VISITED_RUSTBORO_CITY (CODE_FLAGS + 0x19) -#define FLAG_VISITED_FORTREE_CITY (CODE_FLAGS + 0x1A) -#define FLAG_VISITED_LILYCOVE_CITY (CODE_FLAGS + 0x1B) -#define FLAG_VISITED_MOSSDEEP_CITY (CODE_FLAGS + 0x1C) -#define FLAG_VISITED_SOOTOPOLIS_CITY (CODE_FLAGS + 0x1D) -#define FLAG_VISITED_EVER_GRANDE_CITY (CODE_FLAGS + 0x1E) +#define PERMA_SYS_FLAGS_START 0x820 +#define FLAG_BADGE01_GET (SYS_FLAGS + 0x20) +#define FLAG_BADGE02_GET (SYS_FLAGS + 0x21) +#define FLAG_BADGE03_GET (SYS_FLAGS + 0x22) +#define FLAG_BADGE04_GET (SYS_FLAGS + 0x23) +#define FLAG_BADGE05_GET (SYS_FLAGS + 0x24) +#define FLAG_BADGE06_GET (SYS_FLAGS + 0x25) +#define FLAG_BADGE07_GET (SYS_FLAGS + 0x26) +#define FLAG_BADGE08_GET (SYS_FLAGS + 0x27) +#define FLAG_SYS_POKEMON_GET (SYS_FLAGS + 0x28) +#define FLAG_SYS_POKEDEX_GET (SYS_FLAGS + 0x29) +#define FLAG_0x82A (SYS_FLAGS + 0x2A) +#define FLAG_0x82B (SYS_FLAGS + 0x2B) +#define FLAG_SYS_GAME_CLEAR (SYS_FLAGS + 0x2C) +#define FLAG_SYS_SET_TRAINER_CARD_PROFILE (SYS_FLAGS + 0x2D) +#define FLAG_0x82E (SYS_FLAGS + 0x2E) +#define FLAG_SYS_RUNNING_SHOES (SYS_FLAGS + 0x2F) +#define FLAG_SYS_ON_CYCLING_ROAD (SYS_FLAGS + 0x30) +#define FLAG_0x831 (SYS_FLAGS + 0x31) +#define FLAG_0x832 (SYS_FLAGS + 0x32) +#define FLAG_0x833 (SYS_FLAGS + 0x33) +#define FLAG_SYS_NOT_SOMEONES_PC (SYS_FLAGS + 0x34) +#define FLAG_0x835 (SYS_FLAGS + 0x35) +#define FLAG_0x836 (SYS_FLAGS + 0x36) +#define FLAG_0x837 (SYS_FLAGS + 0x37) +#define FLAG_0x838 (SYS_FLAGS + 0x38) +#define FLAG_SYS_MYSTERY_GIFT_ENABLED (SYS_FLAGS + 0x39) +#define FLAG_0x83A (SYS_FLAGS + 0x3A) +#define FLAG_SYS_RIBBON_GET (SYS_FLAGS + 0x3B) +#define FLAG_SYS_SAW_HELP_SYSTEM_INTRO (SYS_FLAGS + 0x3C) +#define FLAG_0x83D (SYS_FLAGS + 0x3D) +#define FLAG_PALLET_TOWN_LADY_MOVED_FROM_SIGN (SYS_FLAGS + 0x3E) +#define FLAG_0x83F (SYS_FLAGS + 0x3F) +#define FLAG_SYS_NATIONAL_DEX (SYS_FLAGS + 0x40) +#define FLAG_SYS_PC_STORAGE_DISABLED (SYS_FLAGS + 0x41) +#define FLAG_SYS_INFORMED_OF_LOCAL_WIRELESS_PLAYER (SYS_FLAGS + 0x42) +#define FLAG_SYS_CHANGED_BOX_TO_STORE_MON (SYS_FLAGS + 0x43) +#define FLAG_SYS_CAN_LINK_WITH_RS (SYS_FLAGS + 0x44) +#define FLAG_SYS_SEVII_MAP_123 (SYS_FLAGS + 0x45) +#define FLAG_SYS_SEVII_MAP_4567 (SYS_FLAGS + 0x46) +#define FLAG_SYS_GOT_BERRY_POUCH (SYS_FLAGS + 0x47) +#define FLAG_SYS_DEOXYS_AWAKENED (SYS_FLAGS + 0x48) +#define FLAG_SYS_UNLOCKED_TANOBY_RUINS (SYS_FLAGS + 0x49) +#define FLAG_SYS_GOT_MYSTIC_TICKET (SYS_FLAGS + 0x4A) +#define FLAG_SYS_GOT_AURORA_TICKET (SYS_FLAGS + 0x4B) -#define FLAG_0x87F (CODE_FLAGS + 0x1F) -#define FLAG_0x880 (CODE_FLAGS + 0x20) -#define FLAG_0x881 (CODE_FLAGS + 0x21) -#define FLAG_0x882 (CODE_FLAGS + 0x22) -#define FLAG_0x883 (CODE_FLAGS + 0x23) -#define FLAG_0x884 (CODE_FLAGS + 0x24) -#define FLAG_0x885 (CODE_FLAGS + 0x25) -#define FLAG_0x886 (CODE_FLAGS + 0x26) -#define FLAG_0x887 (CODE_FLAGS + 0x27) +// World Map Flags +#define FLAG_WORLD_MAP_PALLET_TOWN (SYS_FLAGS + 0x90) +#define FLAG_WORLD_MAP_VIRIDIAN_CITY (SYS_FLAGS + 0x91) +#define FLAG_WORLD_MAP_PEWTER_CITY (SYS_FLAGS + 0x92) +#define FLAG_WORLD_MAP_CERULEAN_CITY (SYS_FLAGS + 0x93) +#define FLAG_WORLD_MAP_LAVENDER_TOWN (SYS_FLAGS + 0x94) +#define FLAG_WORLD_MAP_VERMILION_CITY (SYS_FLAGS + 0x95) +#define FLAG_WORLD_MAP_CELADON_CITY (SYS_FLAGS + 0x96) +#define FLAG_WORLD_MAP_FUCHSIA_CITY (SYS_FLAGS + 0x97) +#define FLAG_WORLD_MAP_CINNABAR_ISLAND (SYS_FLAGS + 0x98) +#define FLAG_WORLD_MAP_INDIGO_PLATEAU_EXTERIOR (SYS_FLAGS + 0x99) +#define FLAG_WORLD_MAP_SAFFRON_CITY (SYS_FLAGS + 0x9A) +#define FLAG_WORLD_MAP_ONE_ISLAND (SYS_FLAGS + 0x9B) +#define FLAG_WORLD_MAP_TWO_ISLAND (SYS_FLAGS + 0x9C) +#define FLAG_WORLD_MAP_THREE_ISLAND (SYS_FLAGS + 0x9D) +#define FLAG_WORLD_MAP_FOUR_ISLAND (SYS_FLAGS + 0x9E) +#define FLAG_WORLD_MAP_FIVE_ISLAND (SYS_FLAGS + 0x9F) +#define FLAG_WORLD_MAP_SEVEN_ISLAND (SYS_FLAGS + 0xA0) +#define FLAG_WORLD_MAP_SIX_ISLAND (SYS_FLAGS + 0xA1) +#define FLAG_WORLD_MAP_ROUTE4_POKEMON_CENTER_1F (SYS_FLAGS + 0xA2) +#define FLAG_WORLD_MAP_ROUTE10_POKEMON_CENTER_1F (SYS_FLAGS + 0xA3) +#define FLAG_WORLD_MAP_VIRIDIAN_FOREST (SYS_FLAGS + 0xA4) +#define FLAG_WORLD_MAP_MT_MOON_1F (SYS_FLAGS + 0xA5) +#define FLAG_WORLD_MAP_SSANNE_EXTERIOR (SYS_FLAGS + 0xA6) +#define FLAG_WORLD_MAP_UNDERGROUND_PATH_NORTH_SOUTH_TUNNEL (SYS_FLAGS + 0xA7) +#define FLAG_WORLD_MAP_UNDERGROUND_PATH_EAST_WEST_TUNNEL (SYS_FLAGS + 0xA8) +#define FLAG_WORLD_MAP_DIGLETTS_CAVE_B1F (SYS_FLAGS + 0xA9) +#define FLAG_WORLD_MAP_VICTORY_ROAD_1F (SYS_FLAGS + 0xAA) +#define FLAG_WORLD_MAP_ROCKET_HIDEOUT_B1F (SYS_FLAGS + 0xAB) +#define FLAG_WORLD_MAP_SILPH_CO_1F (SYS_FLAGS + 0xAC) +#define FLAG_WORLD_MAP_POKEMON_MANSION_1F (SYS_FLAGS + 0xAD) +#define FLAG_WORLD_MAP_SAFARI_ZONE_CENTER (SYS_FLAGS + 0xAE) +#define FLAG_WORLD_MAP_POKEMON_LEAGUE_LORELEIS_ROOM (SYS_FLAGS + 0xAF) +#define FLAG_WORLD_MAP_ROCK_TUNNEL_1F (SYS_FLAGS + 0xB0) +#define FLAG_WORLD_MAP_SEAFOAM_ISLANDS_1F (SYS_FLAGS + 0xB1) +#define FLAG_WORLD_MAP_POKEMON_TOWER_1F (SYS_FLAGS + 0xB2) +#define FLAG_WORLD_MAP_CERULEAN_CAVE_1F (SYS_FLAGS + 0xB3) +#define FLAG_WORLD_MAP_POWER_PLANT (SYS_FLAGS + 0xB4) +#define FLAG_WORLD_MAP_NAVEL_ROCK_EXTERIOR (SYS_FLAGS + 0xB5) +#define FLAG_WORLD_MAP_MT_EMBER_EXTERIOR (SYS_FLAGS + 0xB6) +#define FLAG_WORLD_MAP_THREE_ISLAND_BERRY_FOREST (SYS_FLAGS + 0xB7) +#define FLAG_WORLD_MAP_FOUR_ISLAND_ICEFALL_CAVE_ENTRANCE (SYS_FLAGS + 0xB8) +#define FLAG_WORLD_MAP_FIVE_ISLAND_ROCKET_WAREHOUSE (SYS_FLAGS + 0xB9) +#define FLAG_WORLD_MAP_SEVEN_ISLAND_TRAINER_TOWER_LOBBY (SYS_FLAGS + 0xBA) +#define FLAG_WORLD_MAP_SIX_ISLAND_DOTTED_HOLE_1F (SYS_FLAGS + 0xBB) +#define FLAG_WORLD_MAP_FIVE_ISLAND_LOST_CAVE_ENTRANCE (SYS_FLAGS + 0xBC) +#define FLAG_WORLD_MAP_SIX_ISLAND_PATTERN_BUSH (SYS_FLAGS + 0xBD) +#define FLAG_WORLD_MAP_SIX_ISLAND_ALTERING_CAVE (SYS_FLAGS + 0xBE) +#define FLAG_WORLD_MAP_SEVEN_ISLAND_TANOBY_RUINS_MONEAN_CHAMBER (SYS_FLAGS + 0xBF) +#define FLAG_WORLD_MAP_THREE_ISLAND_DUNSPARCE_TUNNEL (SYS_FLAGS + 0xC0) +#define FLAG_WORLD_MAP_SEVEN_ISLAND_SEVAULT_CANYON_TANOBY_KEY (SYS_FLAGS + 0xC1) +#define FLAG_WORLD_MAP_BIRTH_ISLAND_EXTERIOR (SYS_FLAGS + 0xC2) -#define FLAG_SYS_USE_FLASH (CODE_FLAGS + 0x28) -#define FLAG_SYS_USE_STRENGTH (CODE_FLAGS + 0x29) -#define FLAG_SYS_WEATHER_CTRL (CODE_FLAGS + 0x2A) -#define FLAG_SYS_CYCLING_ROAD (CODE_FLAGS + 0x2B) -#define FLAG_0x88C (CODE_FLAGS + 0x2C) -#define FLAG_SYS_CRUISE_MODE (CODE_FLAGS + 0x2D) +#define FLAG_0x8D5 (SYS_FLAGS + 0xD5) +#define FLAG_0x8D6 (SYS_FLAGS + 0xD6) -#define FLAG_0x88E (CODE_FLAGS + 0x2E) -#define FLAG_0x88F (CODE_FLAGS + 0x2F) - -#define FLAG_SYS_TV_HOME (CODE_FLAGS + 0x30) -#define FLAG_SYS_TV_WATCH (CODE_FLAGS + 0x31) -#define FLAG_SYS_TV_START (CODE_FLAGS + 0x32) -#define FLAG_SYS_POPWORD_INPUT (CODE_FLAGS + 0x33) -#define FLAG_SYS_MIX_RECORD (CODE_FLAGS + 0x34) -#define FLAG_SYS_CLOCK_SET (CODE_FLAGS + 0x35) -#define FLAG_SYS_NATIONAL_DEX (CODE_FLAGS + 0x36) -#define FLAG_SYS_CAVE_SHIP (CODE_FLAGS + 0x37) -#define FLAG_SYS_CAVE_WONDER (CODE_FLAGS + 0x38) -#define FLAG_SYS_CAVE_BATTLE (CODE_FLAGS + 0x39) -#define FLAG_SYS_SHOAL_TIDE (CODE_FLAGS + 0x3A) -#define FLAG_SYS_RIBBON_GET (CODE_FLAGS + 0x3B) - -#define FLAG_0x89C (CODE_FLAGS + 0x3C) -#define FLAG_0x89D (CODE_FLAGS + 0x3D) -#define FLAG_0x89E (CODE_FLAGS + 0x3E) -#define FLAG_0x89F (CODE_FLAGS + 0x3F) -#define FLAG_0x8A0 (CODE_FLAGS + 0x40) -#define FLAG_0x8A1 (CODE_FLAGS + 0x41) -#define FLAG_0x8A2 (CODE_FLAGS + 0x42) -#define FLAG_0x8A3 (CODE_FLAGS + 0x43) -#define FLAG_0x8A4 (CODE_FLAGS + 0x44) -#define FLAG_0x8A5 (CODE_FLAGS + 0x45) -#define FLAG_0x8A6 (CODE_FLAGS + 0x46) -#define FLAG_0x8A7 (CODE_FLAGS + 0x47) -#define FLAG_UNLOCK_BATTLE_FRONTIER (CODE_FLAGS + 0x48) -#define FLAG_UNLOCK_SOUTHERN_ISLAND (CODE_FLAGS + 0x49) -#define FLAG_0x8AA (CODE_FLAGS + 0x4A) - -#define FLAG_SYS_PC_LANETTE (CODE_FLAGS + 0x4B) -#define FLAG_SYS_MYSTERY_EVENT_ENABLE (CODE_FLAGS + 0x4C) -#define FLAG_SYS_ENC_UP_ITEM (CODE_FLAGS + 0x4D) -#define FLAG_SYS_ENC_DOWN_ITEM (CODE_FLAGS + 0x4E) -#define FLAG_SYS_BRAILLE_DIG (CODE_FLAGS + 0x4F) -#define FLAG_SYS_BRAILLE_STRENGTH (CODE_FLAGS + 0x50) -#define FLAG_SYS_BRAILLE_WAIT (CODE_FLAGS + 0x51) -#define FLAG_SYS_BRAILLE_FLY (CODE_FLAGS + 0x52) -#define FLAG_SYS_HAS_EON_TICKET (CODE_FLAGS + 0x53) - -#define FLAG_SYS_POKEMON_LEAGUE_FLY (CODE_FLAGS + 0x54) - -#define FLAG_0x8B5 (CODE_FLAGS + 0x55) -#define FLAG_0x8B6 (CODE_FLAGS + 0x56) -#define FLAG_0x8B7 (CODE_FLAGS + 0x57) -#define FLAG_0x8B8 (CODE_FLAGS + 0x58) -#define FLAG_0x8B9 (CODE_FLAGS + 0x59) -#define FLAG_0x8BA (CODE_FLAGS + 0x5A) -#define FLAG_0x8BB (CODE_FLAGS + 0x5B) -#define FLAG_0x8BC (CODE_FLAGS + 0x5C) - -#define FLAG_SYS_TV_LATI (CODE_FLAGS + 0x5D) - -#define FLAG_0x8BE (CODE_FLAGS + 0x5E) - -#define FLAG_SYS_SHOAL_ITEM (CODE_FLAGS + 0x5F) -#define FLAG_SYS_B_DASH (CODE_FLAGS + 0x60) // got Running Shoes -#define FLAG_SYS_CTRL_OBJ_DELETE (CODE_FLAGS + 0x61) -#define FLAG_SYS_RESET_RTC_ENABLE (CODE_FLAGS + 0x62) - -#define FLAG_0x8C3 (CODE_FLAGS + 0x63) - -#define FLAG_SYS_TOWER_SILVER (CODE_FLAGS + 0x64) -#define FLAG_SYS_TOWER_GOLD (CODE_FLAGS + 0x65) -#define FLAG_SYS_DOME_SILVER (CODE_FLAGS + 0x66) -#define FLAG_SYS_DOME_GOLD (CODE_FLAGS + 0x67) -#define FLAG_SYS_PALACE_SILVER (CODE_FLAGS + 0x68) -#define FLAG_SYS_PALACE_GOLD (CODE_FLAGS + 0x69) -#define FLAG_SYS_ARENA_SILVER (CODE_FLAGS + 0x6A) -#define FLAG_SYS_ARENA_GOLD (CODE_FLAGS + 0x6B) -#define FLAG_SYS_FACTORY_SILVER (CODE_FLAGS + 0x6C) -#define FLAG_SYS_FACTORY_GOLD (CODE_FLAGS + 0x6D) -#define FLAG_SYS_PIKE_SILVER (CODE_FLAGS + 0x6E) -#define FLAG_SYS_PIKE_GOLD (CODE_FLAGS + 0x6F) -#define FLAG_SYS_PYRAMID_SILVER (CODE_FLAGS + 0x70) -#define FLAG_SYS_PYRAMID_GOLD (CODE_FLAGS + 0x71) -#define FLAG_SYS_FRONTIER_PASS (CODE_FLAGS + 0x72) - -#define FLAG_0x8D3 (CODE_FLAGS + 0x73) -#define FLAG_0x8D4 (CODE_FLAGS + 0x74) -#define FLAG_0x8D5 (CODE_FLAGS + 0x75) -#define FLAG_0x8D6 (CODE_FLAGS + 0x76) - -#define FLAG_SYS_STORAGE_UNKNOWN_FLAG (CODE_FLAGS + 0x77) - -#define FLAG_0x8D8 (CODE_FLAGS + 0x78) -#define FLAG_0x8D9 (CODE_FLAGS + 0x79) -#define FLAG_0x8DA (CODE_FLAGS + 0x7A) - -#define FLAG_SYS_MYSTERY_GIFT_ENABLE (CODE_FLAGS + 0x7B) - -#define FLAG_0x8DC (CODE_FLAGS + 0x7C) -#define FLAG_0x8DD (CODE_FLAGS + 0x7D) -#define FLAG_0x8DE (CODE_FLAGS + 0x7E) -#define FLAG_0x8DF (CODE_FLAGS + 0x7F) -#define FLAG_0x8E0 (CODE_FLAGS + 0x80) -#define FLAG_0x8E1 (CODE_FLAGS + 0x81) -#define FLAG_0x8E2 (CODE_FLAGS + 0x82) -#define FLAG_0x8E3 (CODE_FLAGS + 0x83) -#define FLAG_0x8E4 (CODE_FLAGS + 0x84) -#define FLAG_0x8E5 (CODE_FLAGS + 0x85) -#define FLAG_0x8E6 (CODE_FLAGS + 0x86) -#define FLAG_0x8E7 (CODE_FLAGS + 0x87) -#define FLAG_0x8E8 (CODE_FLAGS + 0x88) -#define FLAG_0x8E9 (CODE_FLAGS + 0x89) -#define FLAG_0x8EA (CODE_FLAGS + 0x8A) -#define FLAG_0x8EB (CODE_FLAGS + 0x8B) -#define FLAG_0x8EC (CODE_FLAGS + 0x8C) -#define FLAG_0x8ED (CODE_FLAGS + 0x8D) -#define FLAG_0x8EE (CODE_FLAGS + 0x8E) -#define FLAG_0x8EF (CODE_FLAGS + 0x8F) -#define FLAG_0x8F0 (CODE_FLAGS + 0x90) -#define FLAG_0x8F1 (CODE_FLAGS + 0x91) -#define FLAG_0x8F2 (CODE_FLAGS + 0x92) -#define FLAG_0x8F3 (CODE_FLAGS + 0x93) -#define FLAG_0x8F4 (CODE_FLAGS + 0x94) -#define FLAG_0x8F5 (CODE_FLAGS + 0x95) -#define FLAG_0x8F6 (CODE_FLAGS + 0x96) -#define FLAG_0x8F7 (CODE_FLAGS + 0x97) -#define FLAG_0x8F8 (CODE_FLAGS + 0x98) -#define FLAG_0x8F9 (CODE_FLAGS + 0x99) -#define FLAG_0x8FA (CODE_FLAGS + 0x9A) -#define FLAG_0x8FB (CODE_FLAGS + 0x9B) -#define FLAG_0x8FC (CODE_FLAGS + 0x9C) -#define FLAG_0x8FD (CODE_FLAGS + 0x9D) -#define FLAG_0x8FE (CODE_FLAGS + 0x9E) -#define FLAG_0x8FF (CODE_FLAGS + 0x9F) -#define FLAG_0x900 (CODE_FLAGS + 0xA0) -#define FLAG_0x901 (CODE_FLAGS + 0xA1) -#define FLAG_0x902 (CODE_FLAGS + 0xA2) -#define FLAG_0x903 (CODE_FLAGS + 0xA3) -#define FLAG_0x904 (CODE_FLAGS + 0xA4) -#define FLAG_0x905 (CODE_FLAGS + 0xA5) -#define FLAG_0x906 (CODE_FLAGS + 0xA6) -#define FLAG_0x907 (CODE_FLAGS + 0xA7) -#define FLAG_0x908 (CODE_FLAGS + 0xA8) -#define FLAG_0x909 (CODE_FLAGS + 0xA9) -#define FLAG_0x90A (CODE_FLAGS + 0xAA) -#define FLAG_0x90B (CODE_FLAGS + 0xAB) -#define FLAG_0x90C (CODE_FLAGS + 0xAC) -#define FLAG_0x90D (CODE_FLAGS + 0xAD) -#define FLAG_0x90E (CODE_FLAGS + 0xAE) -#define FLAG_0x90F (CODE_FLAGS + 0xAF) -#define FLAG_0x910 (CODE_FLAGS + 0xB0) -#define FLAG_0x911 (CODE_FLAGS + 0xB1) -#define FLAG_0x912 (CODE_FLAGS + 0xB2) -#define FLAG_0x913 (CODE_FLAGS + 0xB3) -#define FLAG_0x914 (CODE_FLAGS + 0xB4) -#define FLAG_0x915 (CODE_FLAGS + 0xB5) -#define FLAG_0x916 (CODE_FLAGS + 0xB6) -#define FLAG_0x917 (CODE_FLAGS + 0xB7) -#define FLAG_0x918 (CODE_FLAGS + 0xB8) -#define FLAG_0x919 (CODE_FLAGS + 0xB9) -#define FLAG_0x91A (CODE_FLAGS + 0xBA) -#define FLAG_0x91B (CODE_FLAGS + 0xBB) -#define FLAG_0x91C (CODE_FLAGS + 0xBC) -#define FLAG_0x91D (CODE_FLAGS + 0xBD) -#define FLAG_0x91E (CODE_FLAGS + 0xBE) -#define FLAG_0x91F (CODE_FLAGS + 0xBF) -#define FLAG_0x920 (CODE_FLAGS + 0xC0) -#define FLAG_0x921 (CODE_FLAGS + 0xC1) -#define FLAG_0x922 (CODE_FLAGS + 0xC2) -#define FLAG_0x923 (CODE_FLAGS + 0xC3) -#define FLAG_0x924 (CODE_FLAGS + 0xC4) -#define FLAG_0x925 (CODE_FLAGS + 0xC5) -#define FLAG_0x926 (CODE_FLAGS + 0xC6) -#define FLAG_0x927 (CODE_FLAGS + 0xC7) -#define FLAG_0x928 (CODE_FLAGS + 0xC8) -#define FLAG_0x929 (CODE_FLAGS + 0xC9) -#define FLAG_0x92A (CODE_FLAGS + 0xCA) -#define FLAG_0x92B (CODE_FLAGS + 0xCB) -#define FLAG_0x92C (CODE_FLAGS + 0xCC) -#define FLAG_0x92D (CODE_FLAGS + 0xCD) -#define FLAG_0x92E (CODE_FLAGS + 0xCE) -#define FLAG_0x92F (CODE_FLAGS + 0xCF) -#define FLAG_0x930 (CODE_FLAGS + 0xD0) -#define FLAG_0x931 (CODE_FLAGS + 0xD1) -#define FLAG_0x932 (CODE_FLAGS + 0xD2) -#define FLAG_0x933 (CODE_FLAGS + 0xD3) -#define FLAG_0x934 (CODE_FLAGS + 0xD4) -#define FLAG_0x935 (CODE_FLAGS + 0xD5) -#define FLAG_0x936 (CODE_FLAGS + 0xD6) -#define FLAG_0x937 (CODE_FLAGS + 0xD7) -#define FLAG_0x938 (CODE_FLAGS + 0xD8) -#define FLAG_0x939 (CODE_FLAGS + 0xD9) -#define FLAG_0x93A (CODE_FLAGS + 0xDA) -#define FLAG_0x93B (CODE_FLAGS + 0xDB) -#define FLAG_0x93C (CODE_FLAGS + 0xDC) -#define FLAG_0x93D (CODE_FLAGS + 0xDD) -#define FLAG_0x93E (CODE_FLAGS + 0xDE) -#define FLAG_0x93F (CODE_FLAGS + 0xDF) -#define FLAG_0x940 (CODE_FLAGS + 0xE0) -#define FLAG_0x941 (CODE_FLAGS + 0xE1) -#define FLAG_0x942 (CODE_FLAGS + 0xE2) -#define FLAG_0x943 (CODE_FLAGS + 0xE3) -#define FLAG_0x944 (CODE_FLAGS + 0xE4) -#define FLAG_0x945 (CODE_FLAGS + 0xE5) -#define FLAG_0x946 (CODE_FLAGS + 0xE6) -#define FLAG_0x947 (CODE_FLAGS + 0xE7) -#define FLAG_0x948 (CODE_FLAGS + 0xE8) -#define FLAG_0x949 (CODE_FLAGS + 0xE9) -#define FLAG_0x94A (CODE_FLAGS + 0xEA) -#define FLAG_0x94B (CODE_FLAGS + 0xEB) -#define FLAG_0x94C (CODE_FLAGS + 0xEC) -#define FLAG_0x94D (CODE_FLAGS + 0xED) -#define FLAG_0x94E (CODE_FLAGS + 0xEE) -#define FLAG_0x94F (CODE_FLAGS + 0xEF) -#define FLAG_0x950 (CODE_FLAGS + 0xF0) -#define FLAG_0x951 (CODE_FLAGS + 0xF1) -#define FLAG_0x952 (CODE_FLAGS + 0xF2) -#define FLAG_0x953 (CODE_FLAGS + 0xF3) -#define FLAG_0x954 (CODE_FLAGS + 0xF4) -#define FLAG_0x955 (CODE_FLAGS + 0xF5) -#define FLAG_0x956 (CODE_FLAGS + 0xF6) -#define FLAG_0x957 (CODE_FLAGS + 0xF7) -#define FLAG_0x958 (CODE_FLAGS + 0xF8) -#define FLAG_0x959 (CODE_FLAGS + 0xF9) -#define FLAG_0x95A (CODE_FLAGS + 0xFA) -#define FLAG_0x95B (CODE_FLAGS + 0xFB) -#define FLAG_0x95C (CODE_FLAGS + 0xFC) -#define FLAG_0x95D (CODE_FLAGS + 0xFD) -#define FLAG_0x95E (CODE_FLAGS + 0xFE) -#define FLAG_0x95F (CODE_FLAGS + 0xFF) +#define FLAG_0x8E0 (SYS_FLAGS + 0xE0) // SPECIAL FLAGS (unknown purpose) +#define SPECIAL_FLAGS_START 0x4000 +#define SPECIAL_FLAGS_COUNT 16 #define FLAG_SPECIAL_FLAG_0x4000 0x4000 #define FLAG_SPECIAL_FLAG_0x4001 0x4001 #define FLAG_SPECIAL_FLAG_0x4002 0x4002 diff --git a/include/constants/layouts.h b/include/constants/layouts.h index f4f2a8a29..24cdcec13 100644 --- a/include/constants/layouts.h +++ b/include/constants/layouts.h @@ -301,7 +301,7 @@ #define LAYOUT_ONE_ISLAND_POKEMON_CENTER_2F 316 #define LAYOUT_SIX_ISLAND_PATTERN_BUSH 317 #define LAYOUT_THREE_ISLAND_DUNSPARCE_TUNNEL 318 -#define LAYOUT_UNUSED_LAYOUT_83453C0 319 +#define LAYOUT_THREE_ISLAND_DUNSPARCE_TUNNEL_2 319 #define LAYOUT_FIVE_ISLAND_LOST_CAVE_ENTRANCE 320 #define LAYOUT_FIVE_ISLAND_LOST_CAVE_ROOM1 321 #define LAYOUT_FIVE_ISLAND_LOST_CAVE_ROOM2 322 @@ -323,7 +323,7 @@ #define LAYOUT_SEVEN_ISLAND_TANOBY_RUINS_DILFORD_CHAMBER 338 #define LAYOUT_SEVEN_ISLAND_TANOBY_RUINS_SCUFIB_CHAMBER 339 #define LAYOUT_SIX_ISLAND_ALTERING_CAVE 340 -#define LAYOUT_SEVEN_ISLAND_SEAVAULT_CANYON_TANOBY_KEY 341 +#define LAYOUT_SEVEN_ISLAND_SEVAULT_CANYON_TANOBY_KEY 341 #define LAYOUT_BIRTH_ISLAND_EXTERIOR 342 #define LAYOUT_NAVEL_ROCK_EXTERIOR 343 #define LAYOUT_NAVEL_ROCK_1F 344 diff --git a/include/constants/map_groups.h b/include/constants/map_groups.h index 44fa03eda..13862d6c7 100644 --- a/include/constants/map_groups.h +++ b/include/constants/map_groups.h @@ -169,7 +169,7 @@ #define MAP_SEVEN_ISLAND_TANOBY_RUINS_RIXY_CHAMBER (32 | (2 << 8)) #define MAP_SEVEN_ISLAND_TANOBY_RUINS_VIAPOIS_CHAMBER (33 | (2 << 8)) #define MAP_THREE_ISLAND_DUNSPARCE_TUNNEL (34 | (2 << 8)) -#define MAP_SEVEN_ISLAND_SEAVAULT_CANYON_TANOBY_KEY (35 | (2 << 8)) +#define MAP_SEVEN_ISLAND_SEVAULT_CANYON_TANOBY_KEY (35 | (2 << 8)) #define MAP_NAVEL_ROCK_1F (36 | (2 << 8)) #define MAP_NAVEL_ROCK_SUMMIT (37 | (2 << 8)) #define MAP_NAVEL_ROCK_BASE (38 | (2 << 8)) diff --git a/include/constants/map_objects.h b/include/constants/map_objects.h index d5b983005..39c8871e1 100644 --- a/include/constants/map_objects.h +++ b/include/constants/map_objects.h @@ -1,252 +1,175 @@ #ifndef GUARD_CONSTANTS_MAP_OBJECTS_H #define GUARD_CONSTANTS_MAP_OBJECTS_H -#define MAP_OBJ_GFX_BRENDAN_NORMAL 0 -#define MAP_OBJ_GFX_BRENDAN_MACH_BIKE 1 -#define MAP_OBJ_GFX_BRENDAN_SURFING 2 -#define MAP_OBJ_GFX_BRENDAN_FIELD_MOVE 3 -#define MAP_OBJ_GFX_QUINTY_PLUMP 4 -#define MAP_OBJ_GFX_LITTLE_BOY_1 5 -#define MAP_OBJ_GFX_LITTLE_GIRL_1 6 -#define MAP_OBJ_GFX_BOY_1 7 -#define MAP_OBJ_GFX_GIRL_1 8 -#define MAP_OBJ_GFX_BOY_2 9 -#define MAP_OBJ_GFX_GIRL_2 10 -#define MAP_OBJ_GFX_LITTLE_BOY_2 11 -#define MAP_OBJ_GFX_LITTLE_GIRL_2 12 -#define MAP_OBJ_GFX_BOY_3 13 -#define MAP_OBJ_GFX_GIRL_3 14 -#define MAP_OBJ_GFX_BOY_4 15 -#define MAP_OBJ_GFX_WOMAN_1 16 -#define MAP_OBJ_GFX_FAT_MAN 17 -#define MAP_OBJ_GFX_WOMAN_2 18 -#define MAP_OBJ_GFX_MAN_1 19 -#define MAP_OBJ_GFX_WOMAN_3 20 -#define MAP_OBJ_GFX_OLD_MAN_1 21 -#define MAP_OBJ_GFX_OLD_WOMAN_1 22 -#define MAP_OBJ_GFX_MAN_2 23 -#define MAP_OBJ_GFX_WOMAN_4 24 -#define MAP_OBJ_GFX_MAN_3 25 -#define MAP_OBJ_GFX_WOMAN_5 26 -#define MAP_OBJ_GFX_COOK 27 -#define MAP_OBJ_GFX_WOMAN_6 28 -#define MAP_OBJ_GFX_OLD_MAN_2 29 -#define MAP_OBJ_GFX_OLD_WOMAN_2 30 -#define MAP_OBJ_GFX_CAMPER 31 -#define MAP_OBJ_GFX_PICNICKER 32 -#define MAP_OBJ_GFX_MAN_4 33 -#define MAP_OBJ_GFX_WOMAN_7 34 -#define MAP_OBJ_GFX_YOUNGSTER 35 -#define MAP_OBJ_GFX_BUG_CATCHER 36 -#define MAP_OBJ_GFX_PSYCHIC_M 37 -#define MAP_OBJ_GFX_SCHOOL_KID_M 38 -#define MAP_OBJ_GFX_MANIAC 39 -#define MAP_OBJ_GFX_HEX_MANIAC 40 -#define MAP_OBJ_GFX_RAYQUAZA_1 41 -#define MAP_OBJ_GFX_SWIMMER_M 42 -#define MAP_OBJ_GFX_SWIMMER_F 43 -#define MAP_OBJ_GFX_BLACK_BELT 44 -#define MAP_OBJ_GFX_BEAUTY 45 -#define MAP_OBJ_GFX_SCIENTIST_1 46 -#define MAP_OBJ_GFX_LASS 47 -#define MAP_OBJ_GFX_GENTLEMAN 48 -#define MAP_OBJ_GFX_SAILOR 49 -#define MAP_OBJ_GFX_FISHERMAN 50 -#define MAP_OBJ_GFX_RUNNING_TRIATHLETE_M 51 -#define MAP_OBJ_GFX_RUNNING_TRIATHLETE_F 52 -#define MAP_OBJ_GFX_TUBER_F 53 -#define MAP_OBJ_GFX_TUBER_M 54 -#define MAP_OBJ_GFX_HIKER 55 -#define MAP_OBJ_GFX_CYCLING_TRIATHLETE_M 56 -#define MAP_OBJ_GFX_CYCLING_TRIATHLETE_F 57 -#define MAP_OBJ_GFX_NURSE 58 -#define MAP_OBJ_GFX_ITEM_BALL 59 -#define MAP_OBJ_GFX_BERRY_TREE 60 -#define MAP_OBJ_GFX_BERRY_TREE_EARLY_STAGES 61 -#define MAP_OBJ_GFX_BERRY_TREE_LATE_STAGES 62 -#define MAP_OBJ_GFX_BRENDAN_ACRO_BIKE 63 -#define MAP_OBJ_GFX_PROF_BIRCH 64 -#define MAP_OBJ_GFX_MAN_5 65 -#define MAP_OBJ_GFX_MAN_6 66 -#define MAP_OBJ_GFX_REPORTER_M 67 -#define MAP_OBJ_GFX_REPORTER_F 68 -#define MAP_OBJ_GFX_BARD 69 -#define MAP_OBJ_GFX_ANABEL 70 -#define MAP_OBJ_GFX_TUCKER 71 -#define MAP_OBJ_GFX_GRETA 72 -#define MAP_OBJ_GFX_SPENSER 73 -#define MAP_OBJ_GFX_NOLAND 74 -#define MAP_OBJ_GFX_LUCY 75 -#define MAP_OBJ_GFX_UNUSED_NATU_DOLL 76 -#define MAP_OBJ_GFX_UNUSED_MAGNEMITE_DOLL 77 -#define MAP_OBJ_GFX_UNUSED_SQUIRTLE_DOLL 78 -#define MAP_OBJ_GFX_UNUSED_WOOPER_DOLL 79 -#define MAP_OBJ_GFX_UNUSED_PIKACHU_DOLL 80 -#define MAP_OBJ_GFX_UNUSED_PORYGON2_DOLL 81 -#define MAP_OBJ_GFX_CUTTABLE_TREE 82 -#define MAP_OBJ_GFX_MART_EMPLOYEE 83 -#define MAP_OBJ_GFX_ROOFTOP_SALE_WOMAN 84 -#define MAP_OBJ_GFX_TEALA 85 -#define MAP_OBJ_GFX_BREAKABLE_ROCK 86 -#define MAP_OBJ_GFX_PUSHABLE_BOULDER 87 -#define MAP_OBJ_GFX_MR_BRINEYS_BOAT 88 -#define MAP_OBJ_GFX_MAY_NORMAL 89 -#define MAP_OBJ_GFX_MAY_MACH_BIKE 90 -#define MAP_OBJ_GFX_MAY_ACRO_BIKE 91 -#define MAP_OBJ_GFX_MAY_SURFING 92 -#define MAP_OBJ_GFX_MAY_FIELD_MOVE 93 -#define MAP_OBJ_GFX_TRUCK 94 -#define MAP_OBJ_GFX_VIGAROTH_CARRYING_BOX 95 -#define MAP_OBJ_GFX_VIGAROTH_FACING_AWAY 96 -#define MAP_OBJ_GFX_BIRCHS_BAG 97 -#define MAP_OBJ_GFX_ZIGZAGOON_1 98 -#define MAP_OBJ_GFX_ARTIST 99 -#define MAP_OBJ_GFX_RIVAL_BRENDAN_NORMAL 100 -#define MAP_OBJ_GFX_RIVAL_BRENDAN_MACH_BIKE 101 -#define MAP_OBJ_GFX_RIVAL_BRENDAN_ACRO_BIKE 102 -#define MAP_OBJ_GFX_RIVAL_BRENDAN_SURFING 103 -#define MAP_OBJ_GFX_RIVAL_BRENDAN_FIELD_MOVE 104 -#define MAP_OBJ_GFX_RIVAL_MAY_NORMAL 105 -#define MAP_OBJ_GFX_RIVAL_MAY_MACH_BIKE 106 -#define MAP_OBJ_GFX_RIVAL_MAY_ACRO_BIKE 107 -#define MAP_OBJ_GFX_RIVAL_MAY_SURFING 108 -#define MAP_OBJ_GFX_RIVAL_MAY_FIELD_MOVE 109 -#define MAP_OBJ_GFX_CAMERAMAN 110 -#define MAP_OBJ_GFX_BRENDAN_UNDERWATER 111 -#define MAP_OBJ_GFX_MAY_UNDERWATER 112 -#define MAP_OBJ_GFX_MOVING_BOX 113 -#define MAP_OBJ_GFX_CABLE_CAR 114 -#define MAP_OBJ_GFX_SCIENTIST_2 115 -#define MAP_OBJ_GFX_MAN_7 116 -#define MAP_OBJ_GFX_AQUA_MEMBER_M 117 -#define MAP_OBJ_GFX_AQUA_MEMBER_F 118 -#define MAP_OBJ_GFX_MAGMA_MEMBER_M 119 -#define MAP_OBJ_GFX_MAGMA_MEMBER_F 120 -#define MAP_OBJ_GFX_SIDNEY 121 -#define MAP_OBJ_GFX_PHOEBE 122 -#define MAP_OBJ_GFX_GLACIA 123 -#define MAP_OBJ_GFX_DRAKE 124 -#define MAP_OBJ_GFX_ROXANNE 125 -#define MAP_OBJ_GFX_BRAWLY 126 -#define MAP_OBJ_GFX_WATTSON 127 -#define MAP_OBJ_GFX_FLANNERY 128 -#define MAP_OBJ_GFX_NORMAN 129 -#define MAP_OBJ_GFX_WINONA 130 -#define MAP_OBJ_GFX_LIZA 131 -#define MAP_OBJ_GFX_TATE 132 -#define MAP_OBJ_GFX_WALLACE 133 -#define MAP_OBJ_GFX_STEVEN 134 -#define MAP_OBJ_GFX_WALLY 135 -#define MAP_OBJ_GFX_LITTLE_BOY_3 136 -#define MAP_OBJ_GFX_BRENDAN_FISHING 137 -#define MAP_OBJ_GFX_MAY_FISHING 138 -#define MAP_OBJ_GFX_HOT_SPRINGS_OLD_WOMAN 139 -#define MAP_OBJ_GFX_SS_TIDAL 140 -#define MAP_OBJ_GFX_SUBMARINE_SHADOW 141 -#define MAP_OBJ_GFX_PICHU_DOLL 142 -#define MAP_OBJ_GFX_PIKACHU_DOLL 143 -#define MAP_OBJ_GFX_MARILL_DOLL 144 -#define MAP_OBJ_GFX_TOGEPI_DOLL 145 -#define MAP_OBJ_GFX_CYNDAQUIL_DOLL 146 -#define MAP_OBJ_GFX_CHIKORITA_DOLL 147 -#define MAP_OBJ_GFX_TOTODILE_DOLL 148 -#define MAP_OBJ_GFX_JIGGLYPUFF_DOLL 149 -#define MAP_OBJ_GFX_MEOWTH_DOLL 150 -#define MAP_OBJ_GFX_CLEFAIRY_DOLL 151 -#define MAP_OBJ_GFX_DITTO_DOLL 152 -#define MAP_OBJ_GFX_SMOOCHUM_DOLL 153 -#define MAP_OBJ_GFX_TREECKO_DOLL 154 -#define MAP_OBJ_GFX_TORCHIC_DOLL 155 -#define MAP_OBJ_GFX_MUDKIP_DOLL 156 -#define MAP_OBJ_GFX_DUSKULL_DOLL 157 -#define MAP_OBJ_GFX_WYNAUT_DOLL 158 -#define MAP_OBJ_GFX_BALTOY_DOLL 159 -#define MAP_OBJ_GFX_KECLEON_DOLL 160 -#define MAP_OBJ_GFX_AZURILL_DOLL 161 -#define MAP_OBJ_GFX_SKITTY_DOLL 162 -#define MAP_OBJ_GFX_SWABLU_DOLL 163 -#define MAP_OBJ_GFX_GULPIN_DOLL 164 -#define MAP_OBJ_GFX_LOTAD_DOLL 165 -#define MAP_OBJ_GFX_SEEDOT_DOLL 166 -#define MAP_OBJ_GFX_PIKA_CUSHION 167 -#define MAP_OBJ_GFX_ROUND_CUSHION 168 -#define MAP_OBJ_GFX_KISS_CUSHION 169 -#define MAP_OBJ_GFX_ZIGZAG_CUSHION 170 -#define MAP_OBJ_GFX_SPIN_CUSHION 171 -#define MAP_OBJ_GFX_DIAMOND_CUSHION 172 -#define MAP_OBJ_GFX_BALL_CUSHION 173 -#define MAP_OBJ_GFX_GRASS_CUSHION 174 -#define MAP_OBJ_GFX_FIRE_CUSHION 175 -#define MAP_OBJ_GFX_WATER_CUSHION 176 -#define MAP_OBJ_GFX_BIG_SNORLAX_DOLL 177 -#define MAP_OBJ_GFX_BIG_RHYDON_DOLL 178 -#define MAP_OBJ_GFX_BIG_LAPRAS_DOLL 179 -#define MAP_OBJ_GFX_BIG_VENUSAUR_DOLL 180 -#define MAP_OBJ_GFX_BIG_CHARIZARD_DOLL 181 -#define MAP_OBJ_GFX_BIG_BLASTOISE_DOLL 182 -#define MAP_OBJ_GFX_BIG_WAILMER_DOLL 183 -#define MAP_OBJ_GFX_BIG_REGIROCK_DOLL 184 -#define MAP_OBJ_GFX_BIG_REGICE_DOLL 185 -#define MAP_OBJ_GFX_BIG_REGISTEEL_DOLL 186 -#define MAP_OBJ_GFX_LATIAS 187 -#define MAP_OBJ_GFX_LATIOS 188 -#define MAP_OBJ_GFX_BOY_5 189 -#define MAP_OBJ_GFX_CONTEST_JUDGE 190 -#define MAP_OBJ_GFX_BRENDAN_WATERING 191 -#define MAP_OBJ_GFX_MAY_WATERING 192 -#define MAP_OBJ_GFX_BRENDAN_DECORATING 193 -#define MAP_OBJ_GFX_MAY_DECORATING 194 -#define MAP_OBJ_GFX_ARCHIE 195 -#define MAP_OBJ_GFX_MAXIE 196 -#define MAP_OBJ_GFX_KYOGRE_1 197 -#define MAP_OBJ_GFX_GROUDON_1 198 -#define MAP_OBJ_GFX_FOSSIL 199 -#define MAP_OBJ_GFX_REGIROCK 200 -#define MAP_OBJ_GFX_REGICE 201 -#define MAP_OBJ_GFX_REGISTEEL 202 -#define MAP_OBJ_GFX_SKITTY 203 -#define MAP_OBJ_GFX_KECLEON_1 204 -#define MAP_OBJ_GFX_KYOGRE_2 205 -#define MAP_OBJ_GFX_GROUDON_2 206 -#define MAP_OBJ_GFX_RAYQUAZA_2 207 -#define MAP_OBJ_GFX_ZIGZAGOON_2 208 -#define MAP_OBJ_GFX_PIKACHU 209 -#define MAP_OBJ_GFX_AZUMARILL 210 -#define MAP_OBJ_GFX_WINGULL 211 -#define MAP_OBJ_GFX_KECLEON_2 212 -#define MAP_OBJ_GFX_TUBER_M_SWIMMING 213 -#define MAP_OBJ_GFX_AZURILL 214 -#define MAP_OBJ_GFX_MOM 215 -#define MAP_OBJ_GFX_LINK_BRENDAN 216 -#define MAP_OBJ_GFX_LINK_MAY 217 -#define MAP_OBJ_GFX_JUAN 218 -#define MAP_OBJ_GFX_SCOTT 219 -#define MAP_OBJ_GFX_POOCHYENA 220 -#define MAP_OBJ_GFX_KYOGRE_3 221 -#define MAP_OBJ_GFX_GROUDON_3 222 -#define MAP_OBJ_GFX_MYSTERY_GIFT_MAN 223 -#define MAP_OBJ_GFX_TRICK_HOUSE_STATUE 224 -#define MAP_OBJ_GFX_KIRLIA 225 -#define MAP_OBJ_GFX_DUSCLOPS 226 -#define MAP_OBJ_GFX_UNION_ROOM_NURSE 227 -#define MAP_OBJ_GFX_SUDOWOODO 228 -#define MAP_OBJ_GFX_MEW 229 -#define MAP_OBJ_GFX_RED 230 -#define MAP_OBJ_GFX_LEAF 231 -#define MAP_OBJ_GFX_DEOXYS 232 -#define MAP_OBJ_GFX_DEOXYS_TRIANGLE 233 -#define MAP_OBJ_GFX_BRANDON 234 -#define MAP_OBJ_GFX_LINK_RS_BRENDAN 235 -#define MAP_OBJ_GFX_LINK_RS_MAY 236 -#define MAP_OBJ_GFX_LUGIA 237 -#define MAP_OBJ_GFX_HOOH 238 -#define MAP_OBJ_GFX_BARD_2 239 -#define MAP_OBJ_GFX_HIPSTER 240 -#define MAP_OBJ_GFX_TRADER 241 -#define MAP_OBJ_GFX_STORYTELLER 242 -#define MAP_OBJ_GFX_GIDDY 243 -#define MAP_OBJ_GFX_PLACEHOLDER_1 244 -#define MAP_OBJ_GFX_PLACEHOLDER_2 245 +#define MAP_OBJ_GFX_RED_NORMAL 0 +#define MAP_OBJ_GFX_RED_BIKE 1 +#define MAP_OBJ_GFX_RED_RUN 2 +#define MAP_OBJ_GFX_RED_ITEM 3 +#define MAP_OBJ_GFX_RED_FISH 4 +#define MAP_OBJ_GFX_RED_ITEM_COPY 5 +#define MAP_OBJ_GFX_RED_VS_SEEKER 6 +#define MAP_OBJ_GFX_GREEN_NORMAL 7 +#define MAP_OBJ_GFX_GREEN_BIKE 8 +#define MAP_OBJ_GFX_GREEN_RUN 9 +#define MAP_OBJ_GFX_GREEN_ITEM 10 +#define MAP_OBJ_GFX_GREEN_FISH 11 +#define MAP_OBJ_GFX_GREEN_ITEM_COPY 12 +#define MAP_OBJ_GFX_GREEN_VS_SEEKER 13 +#define MAP_OBJ_GFX_RS_BRENDAN 14 +#define MAP_OBJ_GFX_RS_MAY 15 +#define MAP_OBJ_GFX_LITTLE_BOY 16 +#define MAP_OBJ_GFX_LITTLE_GIRL 17 +#define MAP_OBJ_GFX_YOUNGSTER 18 +#define MAP_OBJ_GFX_BOY 19 +#define MAP_OBJ_GFX_BUG_CATCHER 20 +#define MAP_OBJ_GFX_SITTING_BOY 21 +#define MAP_OBJ_GFX_LASS 22 +#define MAP_OBJ_GFX_WOMAN_1 23 +#define MAP_OBJ_GFX_BATTLE_GIRL 24 +#define MAP_OBJ_GFX_MAN 25 +#define MAP_OBJ_GFX_ROCKER 26 +#define MAP_OBJ_GFX_FAT_MAN 27 +#define MAP_OBJ_GFX_WOMAN_2 28 +#define MAP_OBJ_GFX_BEAUTY 29 +#define MAP_OBJ_GFX_BALDING_MAN 30 +#define MAP_OBJ_GFX_WOMAN_3 31 +#define MAP_OBJ_GFX_OLD_MAN_1 32 +#define MAP_OBJ_GFX_OLD_MAN_2 33 +#define MAP_OBJ_GFX_VIRIDIAN_DRUNK 34 +#define MAP_OBJ_GFX_OLD_WOMAN 35 +#define MAP_OBJ_GFX_TUBER_M_1 36 +#define MAP_OBJ_GFX_TUBER_F 37 +#define MAP_OBJ_GFX_TUBER_M_2 38 +#define MAP_OBJ_GFX_CAMPER 39 +#define MAP_OBJ_GFX_PICNICKER 40 +#define MAP_OBJ_GFX_COOLTRAINER_M 41 +#define MAP_OBJ_GFX_COOLTRAINER_F 42 +#define MAP_OBJ_GFX_SWIMMER_M_WATER 43 +#define MAP_OBJ_GFX_SWIMMER_F_WATER 44 +#define MAP_OBJ_GFX_SWIMMER_M_LAND 45 +#define MAP_OBJ_GFX_SWIMMER_F_LAND 46 +#define MAP_OBJ_GFX_WORKER_M 47 +#define MAP_OBJ_GFX_WORKER_F 48 +#define MAP_OBJ_GFX_ROCKET_M 49 +#define MAP_OBJ_GFX_ROCKET_F 50 +#define MAP_OBJ_GFX_GBA_KID 51 +#define MAP_OBJ_GFX_SUPER_NERD 52 +#define MAP_OBJ_GFX_BIKER 53 +#define MAP_OBJ_GFX_BLACKBELT 54 +#define MAP_OBJ_GFX_SCIENTIST 55 +#define MAP_OBJ_GFX_HIKER 56 +#define MAP_OBJ_GFX_FISHER 57 +#define MAP_OBJ_GFX_CHANNELER 58 +#define MAP_OBJ_GFX_CHEF 59 +#define MAP_OBJ_GFX_POLICEMAN 60 +#define MAP_OBJ_GFX_GENTLEMAN 61 +#define MAP_OBJ_GFX_SAILOR 62 +#define MAP_OBJ_GFX_CAPTAIN 63 +#define MAP_OBJ_GFX_NURSE 64 +#define MAP_OBJ_GFX_CABLE_CLUB_RECEPTIONIST 65 +#define MAP_OBJ_GFX_UNION_ROOM_RECEPTIONIST 66 +#define MAP_OBJ_GFX_UNUSED_MALE_RECEPTIONIST 67 +#define MAP_OBJ_GFX_CLERK 68 +#define MAP_OBJ_GFX_MG_DELIVERYMAN 69 +#define MAP_OBJ_GFX_TRAINER_TOWER_DUDE 70 +#define MAP_OBJ_GFX_PROF_OAK 71 +#define MAP_OBJ_GFX_BLUE 72 +#define MAP_OBJ_GFX_BILL 73 +#define MAP_OBJ_GFX_LANCE 74 +#define MAP_OBJ_GFX_AGATHA 75 +#define MAP_OBJ_GFX_DAISY 76 +#define MAP_OBJ_GFX_LORELEI 77 +#define MAP_OBJ_GFX_MR_FUJI 78 +#define MAP_OBJ_GFX_BRUNO 79 +#define MAP_OBJ_GFX_BROCK 80 +#define MAP_OBJ_GFX_MISTY 81 +#define MAP_OBJ_GFX_LT_SURGE 82 +#define MAP_OBJ_GFX_ERIKA 83 +#define MAP_OBJ_GFX_KOGA 84 +#define MAP_OBJ_GFX_SABRINA 85 +#define MAP_OBJ_GFX_BLAINE 86 +#define MAP_OBJ_GFX_GIOVANNI 87 +#define MAP_OBJ_GFX_MOM 88 +#define MAP_OBJ_GFX_CELIO 89 +#define MAP_OBJ_GFX_TEACHY_TV_HOST 90 +#define MAP_OBJ_GFX_GYM_GUY 91 +#define MAP_OBJ_GFX_ITEM_BALL 92 +#define MAP_OBJ_GFX_TOWN_MAP 93 +#define MAP_OBJ_GFX_POKEDEX 94 +#define MAP_OBJ_GFX_CUT_TREE 95 +#define MAP_OBJ_GFX_ROCK_SMASH_ROCK 96 +#define MAP_OBJ_GFX_STRENGTH_BOULDER 97 +#define MAP_OBJ_GFX_FOSSIL 98 +#define MAP_OBJ_GFX_RUBY 99 +#define MAP_OBJ_GFX_SAPPHIRE 100 +#define MAP_OBJ_GFX_OLD_AMBER 101 +#define MAP_OBJ_GFX_GYM_SIGN 102 +#define MAP_OBJ_GFX_SIGN 103 +#define MAP_OBJ_GFX_TRAINER_TIPS 104 +#define MAP_OBJ_GFX_CLIPBOARD 105 +#define MAP_OBJ_GFX_METEORITE 106 +#define MAP_OBJ_GFX_LAPRAS_DOLL 107 +#define MAP_OBJ_GFX_SEAGALLOP 108 +#define MAP_OBJ_GFX_SNORLAX 109 +#define MAP_OBJ_GFX_SPEAROW 110 +#define MAP_OBJ_GFX_CUBONE 111 +#define MAP_OBJ_GFX_POLIWRATH 112 +#define MAP_OBJ_GFX_CLEFAIRY 113 +#define MAP_OBJ_GFX_PIDGEOT 114 +#define MAP_OBJ_GFX_JIGGLYPUFF 115 +#define MAP_OBJ_GFX_PIDGEY 116 +#define MAP_OBJ_GFX_CHANSEY 117 +#define MAP_OBJ_GFX_OMANYTE 118 +#define MAP_OBJ_GFX_KANGASKHAN 119 +#define MAP_OBJ_GFX_PIKACHU 120 +#define MAP_OBJ_GFX_PSYDUCK 121 +#define MAP_OBJ_GFX_NIDORAN_F 122 +#define MAP_OBJ_GFX_NIDORAN_M 123 +#define MAP_OBJ_GFX_NIDORINO 124 +#define MAP_OBJ_GFX_MEOWTH 125 +#define MAP_OBJ_GFX_SEEL 126 +#define MAP_OBJ_GFX_VOLTORB 127 +#define MAP_OBJ_GFX_SLOWPOKE 128 +#define MAP_OBJ_GFX_SLOWBRO 129 +#define MAP_OBJ_GFX_MACHOP 130 +#define MAP_OBJ_GFX_WIGGLYTUFF 131 +#define MAP_OBJ_GFX_DODUO 132 +#define MAP_OBJ_GFX_FEAROW 133 +#define MAP_OBJ_GFX_MACHOKE 134 +#define MAP_OBJ_GFX_LAPRAS 135 +#define MAP_OBJ_GFX_ZAPDOS 136 +#define MAP_OBJ_GFX_MOLTRES 137 +#define MAP_OBJ_GFX_ARTICUNO 138 +#define MAP_OBJ_GFX_MEWTWO 139 +#define MAP_OBJ_GFX_MEW 140 +#define MAP_OBJ_GFX_ENTEI 141 +#define MAP_OBJ_GFX_SUICUNE 142 +#define MAP_OBJ_GFX_RAIKOU 143 +#define MAP_OBJ_GFX_LUGIA 144 +#define MAP_OBJ_GFX_HO_OH 145 +#define MAP_OBJ_GFX_CELEBI 146 +#define MAP_OBJ_GFX_KABUTO 147 +#define MAP_OBJ_GFX_DEOXYS_D 148 +#define MAP_OBJ_GFX_DEOXYS_A 149 +#define MAP_OBJ_GFX_DEOXYS_N 150 +#define MAP_OBJ_GFX_SS_ANNE 151 + +#define MAP_OBJ_GFX_VAR_0 240 +#define MAP_OBJ_GFX_VAR_1 241 +#define MAP_OBJ_GFX_VAR_2 242 +#define MAP_OBJ_GFX_VAR_3 243 +#define MAP_OBJ_GFX_VAR_4 244 +#define MAP_OBJ_GFX_VAR_5 245 +#define MAP_OBJ_GFX_VAR_6 246 +#define MAP_OBJ_GFX_VAR_7 247 +#define MAP_OBJ_GFX_VAR_8 248 +#define MAP_OBJ_GFX_VAR_9 249 +#define MAP_OBJ_GFX_VAR_A 250 +#define MAP_OBJ_GFX_VAR_B 251 +#define MAP_OBJ_GFX_VAR_C 252 +#define MAP_OBJ_GFX_VAR_D 253 +#define MAP_OBJ_GFX_VAR_E 254 +#define MAP_OBJ_GFX_VAR_F 255 #define SHADOW_SIZE_S 0 #define SHADOW_SIZE_M 1 diff --git a/include/constants/map_types.h b/include/constants/map_types.h new file mode 100644 index 000000000..96ea73702 --- /dev/null +++ b/include/constants/map_types.h @@ -0,0 +1,15 @@ +#ifndef GUARD_CONSTANTS_MAP_TYPES_H +#define GUARD_CONSTANTS_MAP_TYPES_H + +#define MAP_TYPE_0 0 +#define MAP_TYPE_TOWN 1 +#define MAP_TYPE_CITY 2 +#define MAP_TYPE_ROUTE 3 +#define MAP_TYPE_UNDERGROUND 4 +#define MAP_TYPE_UNDERWATER 5 +#define MAP_TYPE_OCEAN_ROUTE 6 +#define MAP_TYPE_7 7 +#define MAP_TYPE_INDOOR 8 +#define MAP_TYPE_SECRET_BASE 9 + +#endif // GUARD_CONSTANTS_MAP_TYPES_H diff --git a/include/constants/menu.h b/include/constants/menu.h new file mode 100644 index 000000000..44df246d9 --- /dev/null +++ b/include/constants/menu.h @@ -0,0 +1,73 @@ +#ifndef GUARD_CONSTANTS_MENU_H +#define GUARD_CONSTANTS_MENU_H + +#define SCR_MENU_CANCEL 127 +#define SCR_MENU_UNSET 255 + +#define MULTICHOICE_YES_NO 0 +#define MULTICHOICE_EEVEELUTIONS 1 +#define MULTICHOICE_TRAINER_CARD_ICON_TINT 2 +#define MULTICHOICE_HOF_QUIT 3 +#define MULTICHOICE_EGGS_QUIT 4 +#define MULTICHOICE_VICTORIES_QUIT 5 +#define MULTICHOICE_HOF_EGGS_QUIT 6 +#define MULTICHOICE_HOF_VICTORIES_QUIT 7 +#define MULTICHOICE_EGGS_VICTORIES_QUIT 8 +#define MULTICHOICE_HOF_EGGS_VICTORIES_QUIT 9 +#define MULTICHOICE_EXIT 10 +#define MULTICHOICE_EXIT_2 11 +#define MULTICHOICE_EXIT_3 12 +#define MULTICHOICE_BIKE_SHOP 13 +#define MULTICHOICE_GAME_CORNER_POKEMON_PRIZES 14 +#define MULTICHOICE_TRAINER_SCHOOL_WHITEBOARD 15 +#define MULTICHOICE_YES_NO_INFO 16 +#define MULTICHOICE_SINGLE_DOUBLE_MULTI_INFO_EXIT 17 +#define MULTICHOICE_YES_NO_INFO_2 18 +#define MULTICHOICE_CHALLENGE_INFO_EXIT 19 +#define MULTICHOICE_ROOFTOP_B1F 20 +#define MULTICHOICE_HELIX 21 +#define MULTICHOICE_DOME 22 +#define MULTICHOICE_AMBER 23 +#define MULTICHOICE_HELIX_AMBER 24 +#define MULTICHOICE_DOME_AMBER 25 +#define MULTICHOICE_CELADON_VENDING_MACHINE 26 +#define MULTICHOICE_GAME_CORNER_COIN_PURCHASE_COUNTER 27 +#define MULTICHOICE_EXCELLENT_NOT_SO_BAD 28 +#define MULTICHOICE_RIGHT_LEFT 29 +#define MULTICHOICE_GAME_CORNER_TMPRIZES 30 +#define MULTICHOICE_DEPT_STORE_ELEVATOR 31 +#define MULTICHOICE_THIRSTY_GIRL_FRESH_WATER 32 +#define MULTICHOICE_THIRSTY_GIRL_SODA_POP 33 +#define MULTICHOICE_THIRSTY_GIRL_FRESH_WATER_SODA_POP 34 +#define MULTICHOICE_THIRSTY_GIRL_LEMONADE 35 +#define MULTICHOICE_THIRSTY_GIRL_FRESH_WATER_LEMONADE 36 +#define MULTICHOICE_THIRSTY_GIRL_SODA_POP_LEMONADE 37 +#define MULTICHOICE_THIRSTY_GIRL_FRESH_WATER_SODA_POP_LEMONADE 38 +#define MULTICHOICE_TRADE_CENTER_COLOSSEUM 39 +#define MULTICHOICE_LINK_WIRELESS 40 +#define MULTICHOICE_GAME_CORNER_BATTLE_ITEM_PRIZES 41 +#define MULTICHOICE_ROCKET_HIDEOUT_ELEVATOR 42 +#define MULTICHOICE_LINKED_DIRECT_UNION 43 +#define MULTICHOICE_ISLAND_23 44 +#define MULTICHOICE_ISLAND_13 45 +#define MULTICHOICE_ISLAND_12 46 +#define MULTICHOICE_TRADE_COLOSSEUM_CRUSH 47 +#define MULTICHOICE_48 48 +#define MULTICHOICE_POKEJUMP_DODRIO 49 +#define MULTICHOICE_TRADE_COLOSSEUM_2 50 +#define MULTICHOICE_MUSHROOMS 51 +#define MULTICHOICE_TRADE_COLOSSEUM_BLANK_CRUSH 52 +#define MULTICHOICE_TRADE_COLOSSEUM_BLANK 53 +#define MULTICHOICE_SEVII_NAVEL 54 +#define MULTICHOICE_SEVII_BIRTH 55 +#define MULTICHOICE_SEVII_NAVEL_BIRTH 56 +#define MULTICHOICE_SEAGALLOP_123 57 +#define MULTICHOICE_SEAGALLOP_V23 58 +#define MULTICHOICE_SEAGALLOP_V13 59 +#define MULTICHOICE_SEAGALLOP_V12 60 +#define MULTICHOICE_SEAGALLOP_VERMILION 61 +#define MULTICHOICE_62 62 +#define MULTICHOICE_JOIN_OR_LEAD 63 +#define MULTICHOICE_TRAINER_TOWER_MODE 64 + +#endif //GUARD_CONSTANTS_MENU_H diff --git a/include/constants/moves.h b/include/constants/moves.h index 62eacc5f1..8dace5670 100644 --- a/include/constants/moves.h +++ b/include/constants/moves.h @@ -361,4 +361,23 @@ #define MOVES_COUNT 355 +#define MOVETUTOR_MEGA_PUNCH 0 +#define MOVETUTOR_SWORDS_DANCE 1 +#define MOVETUTOR_MEGA_KICK 2 +#define MOVETUTOR_BODY_SLAM 3 +#define MOVETUTOR_DOUBLE_EDGE 4 +#define MOVETUTOR_COUNTER 5 +#define MOVETUTOR_SEISMIC_TOSS 6 +#define MOVETUTOR_MIMIC 7 +#define MOVETUTOR_METRONOME 8 +#define MOVETUTOR_SOFT_BOILED 9 +#define MOVETUTOR_DREAM_EATER 10 +#define MOVETUTOR_THUNDER_WAVE 11 +#define MOVETUTOR_EXPLOSION 12 +#define MOVETUTOR_ROCK_SLIDE 13 +#define MOVETUTOR_SUBSTITUTE 14 +#define MOVETUTOR_FRENZY_PLANT 15 +#define MOVETUTOR_BLAST_BURN 16 +#define MOVETUTOR_HYDRO_CANNON 17 + #endif // GUARD_CONSTANTS_MOVES_H diff --git a/include/constants/seagallop.h b/include/constants/seagallop.h new file mode 100644 index 000000000..68e847445 --- /dev/null +++ b/include/constants/seagallop.h @@ -0,0 +1,18 @@ +#ifndef GUARD_CONSTANTS_SEAGALLOP_H +#define GUARD_CONSTANTS_SEAGALLOP_H + +#define SEAGALLOP_VERMILION_CITY 0 +#define SEAGALLOP_ONE_ISLAND 1 +#define SEAGALLOP_TWO_ISLAND 2 +#define SEAGALLOP_THREE_ISLAND 3 +#define SEAGALLOP_FOUR_ISLAND 4 +#define SEAGALLOP_FIVE_ISLAND 5 +#define SEAGALLOP_SIX_ISLAND 6 +#define SEAGALLOP_SEVEN_ISLAND 7 +#define SEAGALLOP_CINNABAR_ISLAND 8 +#define SEAGALLOP_NAVEL_ROCK 9 +#define SEAGALLOP_BIRTH_ISLAND 10 + +#define SEAGALLOP_MORE 254 + +#endif //GUARD_CONSTANTS_SEAGALLOP_H diff --git a/include/constants/trainers.h b/include/constants/trainers.h index 1aad499a1..d8c429ed5 100644 --- a/include/constants/trainers.h +++ b/include/constants/trainers.h @@ -1,12 +1,1072 @@ -#ifndef GUARD_TRAINERS_H -#define GUARD_TRAINERS_H +#ifndef GUARD_CONSTANTS_TRAINERS_H +#define GUARD_CONSTANTS_TRAINERS_H + +#define TRAINER_ENCOUNTER_MUSIC_MALE 0 // standard male encounter music +#define TRAINER_ENCOUNTER_MUSIC_FEMALE 1 // standard female encounter music +#define TRAINER_ENCOUNTER_MUSIC_GIRL 2 // used for male Tubers and Young Couples too +#define TRAINER_ENCOUNTER_MUSIC_SUSPICIOUS 3 +#define TRAINER_ENCOUNTER_MUSIC_INTENSE 4 +#define TRAINER_ENCOUNTER_MUSIC_COOL 5 +#define TRAINER_ENCOUNTER_MUSIC_AQUA 6 +#define TRAINER_ENCOUNTER_MUSIC_MAGMA 7 +#define TRAINER_ENCOUNTER_MUSIC_SWIMMER 8 +#define TRAINER_ENCOUNTER_MUSIC_TWINS 9 // used for other trainer classes too +#define TRAINER_ENCOUNTER_MUSIC_ELITE_FOUR 10 +#define TRAINER_ENCOUNTER_MUSIC_HIKER 11 // used for other trainer classes too +#define TRAINER_ENCOUNTER_MUSIC_INTERVIEWER 12 +#define TRAINER_ENCOUNTER_MUSIC_RICH 13 // Rich Boys and Gentlemen + +#define TRAINER_PIC_AQUA_LEADER_ARCHIE 0 +#define TRAINER_PIC_AQUA_GRUNT_M 1 +#define TRAINER_PIC_AQUA_GRUNT_F 2 +#define TRAINER_PIC_RS_AROMA_LADY 3 +#define TRAINER_PIC_RS_RUIN_MANIAC 4 +#define TRAINER_PIC_INTERVIEWER 5 +#define TRAINER_PIC_RS_TUBER_F 6 +#define TRAINER_PIC_TUBER_M 7 +#define TRAINER_PIC_RS_COOLTRAINER_M 8 +#define TRAINER_PIC_RS_COOLTRAINER_F 9 +#define TRAINER_PIC_HEX_MANIAC 10 +#define TRAINER_PIC_RS_LADY 11 +#define TRAINER_PIC_RS_BEAUTY 12 +#define TRAINER_PIC_RICH_BOY 13 +#define TRAINER_PIC_RS_POKEMANIAC 14 +#define TRAINER_PIC_RS_SWIMMER_M 15 +#define TRAINER_PIC_RS_BLACK_BELT 16 +#define TRAINER_PIC_GUITARIST 17 +#define TRAINER_PIC_KINDLER 18 +#define TRAINER_PIC_RS_CAMPER 19 +#define TRAINER_PIC_BUG_MANIAC 20 +#define TRAINER_PIC_RS_PSYCHIC_M 21 +#define TRAINER_PIC_RS_PSYCHIC_F 22 +#define TRAINER_PIC_RS_GENTLEMAN 23 +#define TRAINER_PIC_ELITE_FOUR_SIDNEY 24 +#define TRAINER_PIC_ELITE_FOUR_PHOEBE 25 +#define TRAINER_PIC_LEADER_ROXANNE 26 +#define TRAINER_PIC_LEADER_BRAWLY 27 +#define TRAINER_PIC_LEADER_TATE_AND_LIZA 28 +#define TRAINER_PIC_SCHOOL_KID_M 29 +#define TRAINER_PIC_SCHOOL_KID_F 30 +#define TRAINER_PIC_SR_AND_JR 31 +#define TRAINER_PIC_POKEFAN_M 32 +#define TRAINER_PIC_POKEFAN_F 33 +#define TRAINER_PIC_EXPERT_M 34 +#define TRAINER_PIC_EXPERT_F 35 +#define TRAINER_PIC_RS_YOUNGSTER 36 +#define TRAINER_PIC_CHAMPION_STEVEN 37 +#define TRAINER_PIC_RS_FISHERMAN 38 +#define TRAINER_PIC_CYCLING_TRIATHLETE_M 39 +#define TRAINER_PIC_CYCLING_TRIATHLETE_F 40 +#define TRAINER_PIC_RUNNING_TRIATHLETE_M 41 +#define TRAINER_PIC_RUNNING_TRIATHLETE_F 42 +#define TRAINER_PIC_SWIMMING_TRIATHLETE_M 43 +#define TRAINER_PIC_SWIMMING_TRIATHLETE_F 44 +#define TRAINER_PIC_DRAGON_TAMER 45 +#define TRAINER_PIC_RS_BIRD_KEEPER 46 +#define TRAINER_PIC_NINJA_BOY 47 +#define TRAINER_PIC_BATTLE_GIRL 48 +#define TRAINER_PIC_PARASOL_LADY 49 +#define TRAINER_PIC_RS_SWIMMER_F 50 +#define TRAINER_PIC_RS_PICNICKER 51 +#define TRAINER_PIC_RS_TWINS 52 +#define TRAINER_PIC_RS_SAILOR 53 +#define TRAINER_PIC_COLLECTOR 54 +#define TRAINER_PIC_WALLY 55 +#define TRAINER_PIC_RS_BRENDAN_1 56 +#define TRAINER_PIC_RS_MAY_1 57 +#define TRAINER_PIC_POKEMON_BREEDER_M 58 +#define TRAINER_PIC_RS_POKEMON_BREEDER_F 59 +#define TRAINER_PIC_RS_POKEMON_RANGER_M 60 +#define TRAINER_PIC_RS_POKEMON_RANGER_F 61 +#define TRAINER_PIC_MAGMA_LEADER_MAXIE 62 +#define TRAINER_PIC_MAGMA_GRUNT_M 63 +#define TRAINER_PIC_MAGMA_GRUNT_F 64 +#define TRAINER_PIC_RS_LASS 65 +#define TRAINER_PIC_RS_BUG_CATCHER 66 +#define TRAINER_PIC_RS_HIKER 67 +#define TRAINER_PIC_RS_YOUNG_COUPLE 68 +#define TRAINER_PIC_OLD_COUPLE 69 +#define TRAINER_PIC_RS_SIS_AND_BRO 70 +#define TRAINER_PIC_AQUA_ADMIN_M 71 +#define TRAINER_PIC_AQUA_ADMIN_F 72 +#define TRAINER_PIC_MAGMA_ADMIN_M 73 +#define TRAINER_PIC_MAGMA_ADMIN_F 74 +#define TRAINER_PIC_LEADER_WATTSON 75 +#define TRAINER_PIC_LEADER_FLANNERY 76 +#define TRAINER_PIC_LEADER_NORMAN 77 +#define TRAINER_PIC_LEADER_WINONA 78 +#define TRAINER_PIC_LEADER_WALLACE 79 +#define TRAINER_PIC_ELITE_FOUR_GLACIA 80 +#define TRAINER_PIC_ELITE_FOUR_DRAKE 81 +#define TRAINER_PIC_YOUNGSTER 82 +#define TRAINER_PIC_BUG_CATCHER 83 +#define TRAINER_PIC_LASS 84 +#define TRAINER_PIC_SAILOR 85 +#define TRAINER_PIC_CAMPER 86 +#define TRAINER_PIC_PICNICKER 87 +#define TRAINER_PIC_POKEMANIAC 88 +#define TRAINER_PIC_SUPER_NERD 89 +#define TRAINER_PIC_HIKER 90 +#define TRAINER_PIC_BIKER 91 +#define TRAINER_PIC_BURGLAR 92 +#define TRAINER_PIC_ENGINEER 93 +#define TRAINER_PIC_FISHERMAN 94 +#define TRAINER_PIC_SWIMMER_M 95 +#define TRAINER_PIC_CUE_BALL 96 +#define TRAINER_PIC_GAMER 97 +#define TRAINER_PIC_BEAUTY 98 +#define TRAINER_PIC_SWIMMER_F 99 +#define TRAINER_PIC_PSYCHIC_M 100 +#define TRAINER_PIC_ROCKER 101 +#define TRAINER_PIC_JUGGLER 102 +#define TRAINER_PIC_TAMER 103 +#define TRAINER_PIC_BIRD_KEEPER 104 +#define TRAINER_PIC_BLACK_BELT 105 +#define TRAINER_PIC_RIVAL_1 106 +#define TRAINER_PIC_SCIENTIST 107 +#define TRAINER_PIC_LEADER_GIOVANNI 108 +#define TRAINER_PIC_ROCKET_GRUNT_M 109 +#define TRAINER_PIC_COOLTRAINER_M 110 +#define TRAINER_PIC_COOLTRAINER_F 111 +#define TRAINER_PIC_ELITE_FOUR_LORELEI 112 +#define TRAINER_PIC_ELITE_FOUR_BRUNO 113 +#define TRAINER_PIC_ELITE_FOUR_AGATHA 114 +#define TRAINER_PIC_ELITE_FOUR_LANCE 115 +#define TRAINER_PIC_LEADER_BROCK 116 +#define TRAINER_PIC_LEADER_MISTY 117 +#define TRAINER_PIC_LEADER_LT_SURGE 118 +#define TRAINER_PIC_LEADER_ERIKA 119 +#define TRAINER_PIC_LEADER_KOGA 120 +#define TRAINER_PIC_LEADER_BLAINE 121 +#define TRAINER_PIC_LEADER_SABRINA 122 +#define TRAINER_PIC_GENTLEMAN 123 +#define TRAINER_PIC_RIVAL_2 124 +#define TRAINER_PIC_CHAMPION_RIVAL 125 +#define TRAINER_PIC_CHANNELER 126 +#define TRAINER_PIC_TWINS 127 +#define TRAINER_PIC_COOL_COUPLE 128 +#define TRAINER_PIC_YOUNG_COUPLE 129 +#define TRAINER_PIC_CRUSH_KIN 130 +#define TRAINER_PIC_SIS_AND_BRO 131 +#define TRAINER_PIC_PROFESSOR_OAK 132 +#define TRAINER_PIC_RS_BRENDAN_2 133 +#define TRAINER_PIC_RS_MAY_2 134 +#define TRAINER_PIC_RED 135 +#define TRAINER_PIC_LEAF 136 +#define TRAINER_PIC_ROCKET_GRUNT_F 137 +#define TRAINER_PIC_PSYCHIC_F 138 +#define TRAINER_PIC_CRUSH_GIRL 139 +#define TRAINER_PIC_TUBER_F 140 +#define TRAINER_PIC_POKEMON_BREEDER_F 141 +#define TRAINER_PIC_POKEMON_RANGER_M 142 +#define TRAINER_PIC_POKEMON_RANGER_F 143 +#define TRAINER_PIC_AROMA_LADY 144 +#define TRAINER_PIC_RUIN_MANIAC 145 +#define TRAINER_PIC_LADY 146 +#define TRAINER_PIC_PAINTER 147 + +#define TRAINER_SECRET_BASE 1024 #define F_TRAINER_FEMALE (1 << 7) +#define TRAINER_PIC_AQUA_LEADER_ARCHIE 0 +#define TRAINER_PIC_AQUA_GRUNT_M 1 +#define TRAINER_PIC_AQUA_GRUNT_F 2 +#define TRAINER_PIC_RS_AROMA_LADY 3 +#define TRAINER_PIC_RS_RUIN_MANIAC 4 +#define TRAINER_PIC_INTERVIEWER 5 +#define TRAINER_PIC_RS_TUBER_F 6 +#define TRAINER_PIC_TUBER_M 7 +#define TRAINER_PIC_RS_COOLTRAINER_M 8 +#define TRAINER_PIC_RS_COOLTRAINER_F 9 +#define TRAINER_PIC_HEX_MANIAC 10 +#define TRAINER_PIC_RS_LADY 11 +#define TRAINER_PIC_RS_BEAUTY 12 +#define TRAINER_PIC_RICH_BOY 13 +#define TRAINER_PIC_RS_POKEMANIAC 14 +#define TRAINER_PIC_RS_SWIMMER_M 15 +#define TRAINER_PIC_RS_BLACK_BELT 16 +#define TRAINER_PIC_GUITARIST 17 +#define TRAINER_PIC_KINDLER 18 +#define TRAINER_PIC_RS_CAMPER 19 +#define TRAINER_PIC_BUG_MANIAC 20 +#define TRAINER_PIC_RS_PSYCHIC_M 21 +#define TRAINER_PIC_RS_PSYCHIC_F 22 +#define TRAINER_PIC_RS_GENTLEMAN 23 +#define TRAINER_PIC_ELITE_FOUR_SIDNEY 24 +#define TRAINER_PIC_ELITE_FOUR_PHOEBE 25 +#define TRAINER_PIC_LEADER_ROXANNE 26 +#define TRAINER_PIC_LEADER_BRAWLY 27 +#define TRAINER_PIC_LEADER_TATE_AND_LIZA 28 +#define TRAINER_PIC_SCHOOL_KID_M 29 +#define TRAINER_PIC_SCHOOL_KID_F 30 +#define TRAINER_PIC_SR_AND_JR 31 +#define TRAINER_PIC_POKEFAN_M 32 +#define TRAINER_PIC_POKEFAN_F 33 +#define TRAINER_PIC_EXPERT_M 34 +#define TRAINER_PIC_EXPERT_F 35 +#define TRAINER_PIC_RS_YOUNGSTER 36 +#define TRAINER_PIC_CHAMPION_STEVEN 37 +#define TRAINER_PIC_RS_FISHERMAN 38 +#define TRAINER_PIC_CYCLING_TRIATHLETE_M 39 +#define TRAINER_PIC_CYCLING_TRIATHLETE_F 40 +#define TRAINER_PIC_RUNNING_TRIATHLETE_M 41 +#define TRAINER_PIC_RUNNING_TRIATHLETE_F 42 +#define TRAINER_PIC_SWIMMING_TRIATHLETE_M 43 +#define TRAINER_PIC_SWIMMING_TRIATHLETE_F 44 +#define TRAINER_PIC_DRAGON_TAMER 45 +#define TRAINER_PIC_RS_BIRD_KEEPER 46 +#define TRAINER_PIC_NINJA_BOY 47 +#define TRAINER_PIC_BATTLE_GIRL 48 +#define TRAINER_PIC_PARASOL_LADY 49 +#define TRAINER_PIC_RS_SWIMMER_F 50 +#define TRAINER_PIC_RS_PICNICKER 51 +#define TRAINER_PIC_RS_TWINS 52 +#define TRAINER_PIC_RS_SAILOR 53 +#define TRAINER_PIC_COLLECTOR 54 +#define TRAINER_PIC_WALLY 55 +#define TRAINER_PIC_RS_BRENDAN_1 56 +#define TRAINER_PIC_RS_MAY_1 57 +#define TRAINER_PIC_POKEMON_BREEDER_M 58 +#define TRAINER_PIC_RS_POKEMON_BREEDER_F 59 +#define TRAINER_PIC_RS_POKEMON_RANGER_M 60 +#define TRAINER_PIC_RS_POKEMON_RANGER_F 61 +#define TRAINER_PIC_MAGMA_LEADER_MAXIE 62 +#define TRAINER_PIC_MAGMA_GRUNT_M 63 +#define TRAINER_PIC_MAGMA_GRUNT_F 64 +#define TRAINER_PIC_RS_LASS 65 +#define TRAINER_PIC_RS_BUG_CATCHER 66 +#define TRAINER_PIC_RS_HIKER 67 +#define TRAINER_PIC_RS_YOUNG_COUPLE 68 +#define TRAINER_PIC_OLD_COUPLE 69 +#define TRAINER_PIC_RS_SIS_AND_BRO 70 +#define TRAINER_PIC_AQUA_ADMIN_M 71 +#define TRAINER_PIC_AQUA_ADMIN_F 72 +#define TRAINER_PIC_MAGMA_ADMIN_M 73 +#define TRAINER_PIC_MAGMA_ADMIN_F 74 +#define TRAINER_PIC_LEADER_WATTSON 75 +#define TRAINER_PIC_LEADER_FLANNERY 76 +#define TRAINER_PIC_LEADER_NORMAN 77 +#define TRAINER_PIC_LEADER_WINONA 78 +#define TRAINER_PIC_LEADER_WALLACE 79 +#define TRAINER_PIC_ELITE_FOUR_GLACIA 80 +#define TRAINER_PIC_ELITE_FOUR_DRAKE 81 +#define TRAINER_PIC_YOUNGSTER 82 +#define TRAINER_PIC_BUG_CATCHER 83 +#define TRAINER_PIC_LASS 84 +#define TRAINER_PIC_SAILOR 85 +#define TRAINER_PIC_CAMPER 86 +#define TRAINER_PIC_PICNICKER 87 +#define TRAINER_PIC_POKEMANIAC 88 +#define TRAINER_PIC_SUPER_NERD 89 +#define TRAINER_PIC_HIKER 90 +#define TRAINER_PIC_BIKER 91 +#define TRAINER_PIC_BURGLAR 92 +#define TRAINER_PIC_ENGINEER 93 +#define TRAINER_PIC_FISHERMAN 94 +#define TRAINER_PIC_SWIMMER_M 95 +#define TRAINER_PIC_CUE_BALL 96 +#define TRAINER_PIC_GAMER 97 +#define TRAINER_PIC_BEAUTY 98 +#define TRAINER_PIC_SWIMMER_F 99 +#define TRAINER_PIC_PSYCHIC_M 100 +#define TRAINER_PIC_ROCKER 101 +#define TRAINER_PIC_JUGGLER 102 +#define TRAINER_PIC_TAMER 103 +#define TRAINER_PIC_BIRD_KEEPER 104 +#define TRAINER_PIC_BLACK_BELT 105 +#define TRAINER_PIC_RIVAL_1 106 +#define TRAINER_PIC_SCIENTIST 107 +#define TRAINER_PIC_LEADER_GIOVANNI 108 +#define TRAINER_PIC_ROCKET_GRUNT_M 109 +#define TRAINER_PIC_COOLTRAINER_M 110 +#define TRAINER_PIC_COOLTRAINER_F 111 +#define TRAINER_PIC_ELITE_FOUR_LORELEI 112 +#define TRAINER_PIC_ELITE_FOUR_BRUNO 113 +#define TRAINER_PIC_ELITE_FOUR_AGATHA 114 +#define TRAINER_PIC_ELITE_FOUR_LANCE 115 +#define TRAINER_PIC_LEADER_BROCK 116 +#define TRAINER_PIC_LEADER_MISTY 117 +#define TRAINER_PIC_LEADER_LT_SURGE 118 +#define TRAINER_PIC_LEADER_ERIKA 119 +#define TRAINER_PIC_LEADER_KOGA 120 +#define TRAINER_PIC_LEADER_BLAINE 121 +#define TRAINER_PIC_LEADER_SABRINA 122 +#define TRAINER_PIC_GENTLEMAN 123 +#define TRAINER_PIC_RIVAL_2 124 +#define TRAINER_PIC_CHAMPION_RIVAL 125 +#define TRAINER_PIC_CHANNELER 126 +#define TRAINER_PIC_TWINS 127 +#define TRAINER_PIC_COOL_COUPLE 128 +#define TRAINER_PIC_YOUNG_COUPLE 129 +#define TRAINER_PIC_CRUSH_KIN 130 +#define TRAINER_PIC_SIS_AND_BRO 131 +#define TRAINER_PIC_PROFESSOR_OAK 132 +#define TRAINER_PIC_RS_BRENDAN_2 133 +#define TRAINER_PIC_RS_MAY_2 134 +#define TRAINER_PIC_RED 135 +#define TRAINER_PIC_LEAF 136 +#define TRAINER_PIC_ROCKET_GRUNT_F 137 +#define TRAINER_PIC_PSYCHIC_F 138 +#define TRAINER_PIC_CRUSH_GIRL 139 +#define TRAINER_PIC_TUBER_F 140 +#define TRAINER_PIC_POKEMON_BREEDER_F 141 +#define TRAINER_PIC_POKEMON_RANGER_M 142 +#define TRAINER_PIC_POKEMON_RANGER_F 143 +#define TRAINER_PIC_AROMA_LADY 144 +#define TRAINER_PIC_RUIN_MANIAC 145 +#define TRAINER_PIC_LADY 146 +#define TRAINER_PIC_PAINTER 147 + +#define TRAINER_NONE 0 +#define TRAINER_AQUA_LEADER_1 1 +#define TRAINER_TEAM_AQUA_1 2 +#define TRAINER_TEAM_AQUA_2 3 +#define TRAINER_AROMA_LADY_1 4 +#define TRAINER_RUIN_MANIAC_1 5 +#define TRAINER_INTERVIEWER_1 6 +#define TRAINER_TUBER_1 7 +#define TRAINER_TUBER_2 8 +#define TRAINER_COOLTRAINER_1 9 +#define TRAINER_COOLTRAINER_2 10 +#define TRAINER_HEX_MANIAC_1 11 +#define TRAINER_LADY_1 12 +#define TRAINER_BEAUTY_1 13 +#define TRAINER_RICH_BOY_1 14 +#define TRAINER_POKEMANIAC_1 15 +#define TRAINER_SWIMMER_MALE_1 16 +#define TRAINER_BLACK_BELT_1 17 +#define TRAINER_GUITARIST_1 18 +#define TRAINER_KINDLER_1 19 +#define TRAINER_CAMPER_1 20 +#define TRAINER_BUG_MANIAC_1 21 +#define TRAINER_PSYCHIC_1 22 +#define TRAINER_PSYCHIC_2 23 +#define TRAINER_GENTLEMAN_1 24 +#define TRAINER_ELITE_FOUR_SIDNEY 25 +#define TRAINER_ELITE_FOUR_PHOEBE 26 +#define TRAINER_LEADER_ROXANNE 27 +#define TRAINER_LEADER_BRAWLY 28 +#define TRAINER_LEADER_TATE_LIZA 29 +#define TRAINER_SCHOOL_KID_1 30 +#define TRAINER_SCHOOL_KID_2 31 +#define TRAINER_SR_AND_JR_1 32 +#define TRAINER_POKEFAN_1 33 +#define TRAINER_POKEFAN_2 34 +#define TRAINER_EXPERT_1 35 +#define TRAINER_EXPERT_2 36 +#define TRAINER_YOUNGSTER_1 37 +#define TRAINER_CHAMPION_1 38 +#define TRAINER_FISHERMAN_1 39 +#define TRAINER_TRIATHLETE_1 40 +#define TRAINER_TRIATHLETE_2 41 +#define TRAINER_TRIATHLETE_3 42 +#define TRAINER_TRIATHLETE_4 43 +#define TRAINER_TRIATHLETE_5 44 +#define TRAINER_TRIATHLETE_6 45 +#define TRAINER_DRAGON_TAMER_1 46 +#define TRAINER_BIRD_KEEPER_1 47 +#define TRAINER_NINJA_BOY_1 48 +#define TRAINER_BATTLE_GIRL_1 49 +#define TRAINER_PARASOL_LADY_1 50 +#define TRAINER_SWIMMER_FEMALE_1 51 +#define TRAINER_PICNICKER_1 52 +#define TRAINER_TWINS_1 53 +#define TRAINER_SAILOR_1 54 +#define TRAINER_BOARDER_1 55 +#define TRAINER_BOARDER_2 56 +#define TRAINER_COLLECTOR_1 57 +#define TRAINER_PKMN_TRAINER_2 58 +#define TRAINER_PKMN_TRAINER_3 59 +#define TRAINER_PKMN_TRAINER_4 60 +#define TRAINER_PKMN_TRAINER_5 61 +#define TRAINER_PKMN_TRAINER_6 62 +#define TRAINER_PKMN_TRAINER_7 63 +#define TRAINER_PKMN_TRAINER_8 64 +#define TRAINER_PKMN_BREEDER_1 65 +#define TRAINER_PKMN_BREEDER_2 66 +#define TRAINER_PKMN_RANGER_1 67 +#define TRAINER_PKMN_RANGER_2 68 +#define TRAINER_MAGMA_LEADER_1 69 +#define TRAINER_TEAM_MAGMA_1 70 +#define TRAINER_TEAM_MAGMA_2 71 +#define TRAINER_LASS_1 72 +#define TRAINER_BUG_CATCHER_1 73 +#define TRAINER_HIKER_1 74 +#define TRAINER_YOUNG_COUPLE_1 75 +#define TRAINER_OLD_COUPLE_1 76 +#define TRAINER_SIS_AND_BRO_1 77 +#define TRAINER_AQUA_ADMIN_MATT 78 +#define TRAINER_AQUA_ADMIN_SHELLY 79 +#define TRAINER_MAGMA_ADMIN_TABITHA 80 +#define TRAINER_MAGMA_ADMIN_COURTNEY 81 +#define TRAINER_LEADER_WATTSON 82 +#define TRAINER_LEADER_FLANNERY 83 +#define TRAINER_LEADER_NORMAN 84 +#define TRAINER_LEADER_WINONA 85 +#define TRAINER_LEADER_WALLACE 86 +#define TRAINER_ELITE_FOUR_GLACIA 87 +#define TRAINER_ELITE_FOUR_DRAKE 88 +#define TRAINER_YOUNGSTER_BEN 89 +#define TRAINER_YOUNGSTER_CALVIN 90 +#define TRAINER_YOUNGSTER_JOSH 91 +#define TRAINER_YOUNGSTER_TIMMY 92 +#define TRAINER_YOUNGSTER_JOEY 93 +#define TRAINER_YOUNGSTER_DAN 94 +#define TRAINER_YOUNGSTER_CHAD 95 +#define TRAINER_YOUNGSTER_TYLER 96 +#define TRAINER_YOUNGSTER_EDDIE 97 +#define TRAINER_YOUNGSTER_DILLON 98 +#define TRAINER_YOUNGSTER_YASU 99 +#define TRAINER_YOUNGSTER_DAVE 100 +#define TRAINER_YOUNGSTER_BEN_2 101 +#define TRAINER_BUG_CATCHER_RICK 102 +#define TRAINER_BUG_CATCHER_DOUG 103 +#define TRAINER_BUG_CATCHER_SAMMY 104 +#define TRAINER_BUG_CATCHER_COLTON 105 +#define TRAINER_BUG_CATCHER_GREG 106 +#define TRAINER_BUG_CATCHER_JAMES 107 +#define TRAINER_BUG_CATCHER_KENT 108 +#define TRAINER_BUG_CATCHER_ROBBY 109 +#define TRAINER_BUG_CATCHER_CALE 110 +#define TRAINER_BUG_CATCHER_KEIGO 111 +#define TRAINER_BUG_CATCHER_ELIJAH 112 +#define TRAINER_BUG_CATCHER_2 113 +#define TRAINER_BUG_CATCHER_BRENT 114 +#define TRAINER_BUG_CATCHER_CONNER 115 +#define TRAINER_LASS_JANICE 116 +#define TRAINER_LASS_SALLY 117 +#define TRAINER_LASS_ROBIN 118 +#define TRAINER_LASS_CRISSY 119 +#define TRAINER_LASS_MIRIAM 120 +#define TRAINER_LASS_IRIS 121 +#define TRAINER_LASS_RELI 122 +#define TRAINER_LASS_ALI 123 +#define TRAINER_LASS_2 124 +#define TRAINER_LASS_HALEY 125 +#define TRAINER_LASS_ANN 126 +#define TRAINER_LASS_DAWN 127 +#define TRAINER_LASS_PAIGE 128 +#define TRAINER_LASS_ANDREA 129 +#define TRAINER_LASS_MEGAN 130 +#define TRAINER_LASS_JULIA 131 +#define TRAINER_LASS_KAY 132 +#define TRAINER_LASS_LISA 133 +#define TRAINER_SAILOR_EDMOND 134 +#define TRAINER_SAILOR_TREVOR 135 +#define TRAINER_SAILOR_LEONARD 136 +#define TRAINER_SAILOR_DUNCAN 137 +#define TRAINER_SAILOR_HUEY 138 +#define TRAINER_SAILOR_DYLAN 139 +#define TRAINER_SAILOR_PHILLIP 140 +#define TRAINER_SAILOR_DWAYNE 141 +#define TRAINER_CAMPER_LIAM 142 +#define TRAINER_CAMPER_SHANE 143 +#define TRAINER_CAMPER_ETHAN 144 +#define TRAINER_CAMPER_RICKY 145 +#define TRAINER_CAMPER_JEFF 146 +#define TRAINER_CAMPER_2 147 +#define TRAINER_CAMPER_CHRIS 148 +#define TRAINER_CAMPER_DREW 149 +#define TRAINER_PICNICKER_DIANA 150 +#define TRAINER_PICNICKER_NANCY 151 +#define TRAINER_PICNICKER_ISABELLE 152 +#define TRAINER_PICNICKER_KELSEY 153 +#define TRAINER_PICNICKER_ALICIA 154 +#define TRAINER_PICNICKER_CAITLIN 155 +#define TRAINER_PICNICKER_HEIDI 156 +#define TRAINER_PICNICKER_CAROL 157 +#define TRAINER_PICNICKER_SOFIA 158 +#define TRAINER_PICNICKER_MARTHA 159 +#define TRAINER_PICNICKER_TINA 160 +#define TRAINER_PICNICKER_HANNAH 161 +#define TRAINER_POKEMANIAC_MARK 162 +#define TRAINER_POKEMANIAC_HERMAN 163 +#define TRAINER_POKEMANIAC_COOPER 164 +#define TRAINER_POKEMANIAC_STEVE 165 +#define TRAINER_POKEMANIAC_WINSTON 166 +#define TRAINER_POKEMANIAC_DAWSON 167 +#define TRAINER_POKEMANIAC_ASHTON 168 +#define TRAINER_SUPER_NERD_JOVAN 169 +#define TRAINER_SUPER_NERD_MIGUEL 170 +#define TRAINER_SUPER_NERD_AIDAN 171 +#define TRAINER_SUPER_NERD_GLENN 172 +#define TRAINER_SUPER_NERD_LESLIE 173 +#define TRAINER_SUPER_NERD_1 174 +#define TRAINER_SUPER_NERD_2 175 +#define TRAINER_SUPER_NERD_3 176 +#define TRAINER_SUPER_NERD_ERIK 177 +#define TRAINER_SUPER_NERD_AVERY 178 +#define TRAINER_SUPER_NERD_DEREK 179 +#define TRAINER_SUPER_NERD_ZAC 180 +#define TRAINER_HIKER_MARCOS 181 +#define TRAINER_HIKER_FRANKLIN 182 +#define TRAINER_HIKER_NOB 183 +#define TRAINER_HIKER_WAYNE 184 +#define TRAINER_HIKER_ALAN 185 +#define TRAINER_HIKER_BRICE 186 +#define TRAINER_HIKER_CLARK 187 +#define TRAINER_HIKER_TRENT 188 +#define TRAINER_HIKER_DUDLEY 189 +#define TRAINER_HIKER_ALLEN 190 +#define TRAINER_HIKER_ERIC 191 +#define TRAINER_HIKER_LENNY 192 +#define TRAINER_HIKER_OLIVER 193 +#define TRAINER_HIKER_LUCAS 194 +#define TRAINER_BIKER_JARED 195 +#define TRAINER_BIKER_MALIK 196 +#define TRAINER_BIKER_ERNEST 197 +#define TRAINER_BIKER_ALEX 198 +#define TRAINER_BIKER_LAO 199 +#define TRAINER_BIKER_1 200 +#define TRAINER_BIKER_HIDEO 201 +#define TRAINER_BIKER_RUBEN 202 +#define TRAINER_BIKER_BILLY 203 +#define TRAINER_BIKER_NIKOLAS 204 +#define TRAINER_BIKER_JAXON 205 +#define TRAINER_BIKER_WILLIAM 206 +#define TRAINER_BIKER_LUKAS 207 +#define TRAINER_BIKER_ISAAC 208 +#define TRAINER_BIKER_GERALD 209 +#define TRAINER_BURGLAR_1 210 +#define TRAINER_BURGLAR_2 211 +#define TRAINER_BURGLAR_3 212 +#define TRAINER_BURGLAR_QUINN 213 +#define TRAINER_BURGLAR_RAMON 214 +#define TRAINER_BURGLAR_DUSTY 215 +#define TRAINER_BURGLAR_ARNIE 216 +#define TRAINER_BURGLAR_4 217 +#define TRAINER_BURGLAR_SIMON 218 +#define TRAINER_BURGLAR_LEWIS 219 +#define TRAINER_ENGINEER_BAILY 220 +#define TRAINER_ENGINEER_BRAXTON 221 +#define TRAINER_ENGINEER_BERNIE 222 +#define TRAINER_FISHERMAN_DALE 223 +#define TRAINER_FISHERMAN_BARNY 224 +#define TRAINER_FISHERMAN_NED 225 +#define TRAINER_FISHERMAN_CHIP 226 +#define TRAINER_FISHERMAN_HANK 227 +#define TRAINER_FISHERMAN_ELLIOT 228 +#define TRAINER_FISHERMAN_RONALD 229 +#define TRAINER_FISHERMAN_CLAUDE 230 +#define TRAINER_FISHERMAN_WADE 231 +#define TRAINER_FISHERMAN_NOLAN 232 +#define TRAINER_FISHERMAN_ANDREW 233 +#define TRAINER_SWIMMER_MALE_LUIS 234 +#define TRAINER_SWIMMER_MALE_RICHARD 235 +#define TRAINER_SWIMMER_MALE_REECE 236 +#define TRAINER_SWIMMER_MALE_MATTHEW 237 +#define TRAINER_SWIMMER_MALE_DOUGLAS 238 +#define TRAINER_SWIMMER_MALE_DAVID 239 +#define TRAINER_SWIMMER_MALE_TONY 240 +#define TRAINER_SWIMMER_MALE_AXLE 241 +#define TRAINER_SWIMMER_MALE_BARRY 242 +#define TRAINER_SWIMMER_MALE_DEAN 243 +#define TRAINER_SWIMMER_MALE_DARRIN 244 +#define TRAINER_SWIMMER_MALE_SPENCER 245 +#define TRAINER_SWIMMER_MALE_JACK 246 +#define TRAINER_SWIMMER_MALE_JEROME 247 +#define TRAINER_SWIMMER_MALE_ROLAND 248 +#define TRAINER_CUE_BALL_KOJI 249 +#define TRAINER_CUE_BALL_LUKE 250 +#define TRAINER_CUE_BALL_CAMRON 251 +#define TRAINER_CUE_BALL_RAUL 252 +#define TRAINER_CUE_BALL_ISAIAH 253 +#define TRAINER_CUE_BALL_ZEEK 254 +#define TRAINER_CUE_BALL_JAMAL 255 +#define TRAINER_CUE_BALL_COREY 256 +#define TRAINER_CUE_BALL_CHASE 257 +#define TRAINER_GAMER_HUGO 258 +#define TRAINER_GAMER_JASPER 259 +#define TRAINER_GAMER_DIRK 260 +#define TRAINER_GAMER_DARIAN 261 +#define TRAINER_GAMER_STAN 262 +#define TRAINER_GAMER_1 263 +#define TRAINER_GAMER_RICH 264 +#define TRAINER_BEAUTY_BRIDGET 265 +#define TRAINER_BEAUTY_TAMIA 266 +#define TRAINER_BEAUTY_LORI 267 +#define TRAINER_BEAUTY_LOLA 268 +#define TRAINER_BEAUTY_SHEILA 269 +#define TRAINER_SWIMMER_FEMALE_TIFFANY 270 +#define TRAINER_SWIMMER_FEMALE_NORA 271 +#define TRAINER_SWIMMER_FEMALE_MELISSA 272 +#define TRAINER_BEAUTY_GRACE 273 +#define TRAINER_BEAUTY_OLIVIA 274 +#define TRAINER_BEAUTY_LAUREN 275 +#define TRAINER_SWIMMER_FEMALE_ANYA 276 +#define TRAINER_SWIMMER_FEMALE_ALICE 277 +#define TRAINER_SWIMMER_FEMALE_CONNIE 278 +#define TRAINER_SWIMMER_FEMALE_SHIRLEY 279 +#define TRAINER_PSYCHIC_JOHAN 280 +#define TRAINER_PSYCHIC_TYRON 281 +#define TRAINER_PSYCHIC_CAMERON 282 +#define TRAINER_PSYCHIC_PRESTON 283 +#define TRAINER_ROCKER_RANDALL 284 +#define TRAINER_ROCKER_LUCA 285 +#define TRAINER_JUGGLER_DALTON 286 +#define TRAINER_JUGGLER_NELSON 287 +#define TRAINER_JUGGLER_KIRK 288 +#define TRAINER_JUGGLER_SHAWN 289 +#define TRAINER_JUGGLER_GREGORY 290 +#define TRAINER_JUGGLER_EDWARD 291 +#define TRAINER_JUGGLER_KAYDEN 292 +#define TRAINER_JUGGLER_NATE 293 +#define TRAINER_TAMER_PHIL 294 +#define TRAINER_TAMER_EDGAR 295 +#define TRAINER_TAMER_JASON 296 +#define TRAINER_TAMER_COLE 297 +#define TRAINER_TAMER_VINCENT 298 +#define TRAINER_TAMER_JOHN 299 +#define TRAINER_BIRD_KEEPER_SEBASTIAN 300 +#define TRAINER_BIRD_KEEPER_PERRY 301 +#define TRAINER_BIRD_KEEPER_ROBERT 302 +#define TRAINER_BIRD_KEEPER_DONALD 303 +#define TRAINER_BIRD_KEEPER_BENNY 304 +#define TRAINER_BIRD_KEEPER_EDWIN 305 +#define TRAINER_BIRD_KEEPER_CHESTER 306 +#define TRAINER_BIRD_KEEPER_WILTON 307 +#define TRAINER_BIRD_KEEPER_RAMIRO 308 +#define TRAINER_BIRD_KEEPER_JACOB 309 +#define TRAINER_BIRD_KEEPER_ROGER 310 +#define TRAINER_BIRD_KEEPER_REED 311 +#define TRAINER_BIRD_KEEPER_KEITH 312 +#define TRAINER_BIRD_KEEPER_CARTER 313 +#define TRAINER_BIRD_KEEPER_MITCH 314 +#define TRAINER_BIRD_KEEPER_BECK 315 +#define TRAINER_BIRD_KEEPER_MARLON 316 +#define TRAINER_BLACK_BELT_KOICHI 317 +#define TRAINER_BLACK_BELT_MIKE 318 +#define TRAINER_BLACK_BELT_HIDEKI 319 +#define TRAINER_BLACK_BELT_AARON 320 +#define TRAINER_BLACK_BELT_HITOSHI 321 +#define TRAINER_BLACK_BELT_ATSUSHI 322 +#define TRAINER_BLACK_BELT_KIYO 323 +#define TRAINER_BLACK_BELT_TAKASHI 324 +#define TRAINER_BLACK_BELT_DAISUKE 325 +#define TRAINER_RIVAL_OAKS_LAB_SQUIRTLE 326 +#define TRAINER_RIVAL_OAKS_LAB_BULBASAUR 327 +#define TRAINER_RIVAL_OAKS_LAB_CHARMANDER 328 +#define TRAINER_RIVAL_ROUTE22_EARLY_SQUIRTLE 329 +#define TRAINER_RIVAL_ROUTE22_EARLY_BULBASAUR 330 +#define TRAINER_RIVAL_ROUTE22_EARLY_CHARMANDER 331 +#define TRAINER_RIVAL_CERULEAN_SQUIRTLE 332 +#define TRAINER_RIVAL_CERULEAN_BULBASAUR 333 +#define TRAINER_RIVAL_CERULEAN_CHARMANDER 334 +#define TRAINER_SCIENTIST_TED 335 +#define TRAINER_SCIENTIST_CONNOR 336 +#define TRAINER_SCIENTIST_JERRY 337 +#define TRAINER_SCIENTIST_JOSE 338 +#define TRAINER_SCIENTIST_RODNEY 339 +#define TRAINER_SCIENTIST_BEAU 340 +#define TRAINER_SCIENTIST_TAYLOR 341 +#define TRAINER_SCIENTIST_JOSHUA 342 +#define TRAINER_SCIENTIST_PARKER 343 +#define TRAINER_SCIENTIST_ED 344 +#define TRAINER_SCIENTIST_TRAVIS 345 +#define TRAINER_SCIENTIST_BRAYDON 346 +#define TRAINER_SCIENTIST_IVAN 347 +#define TRAINER_BOSS_GIOVANNI 348 +#define TRAINER_BOSS_GIOVANNI_2 349 +#define TRAINER_LEADER_GIOVANNI 350 +#define TRAINER_TEAM_ROCKET_GRUNT 351 +#define TRAINER_TEAM_ROCKET_GRUNT_2 352 +#define TRAINER_TEAM_ROCKET_GRUNT_3 353 +#define TRAINER_TEAM_ROCKET_GRUNT_4 354 +#define TRAINER_TEAM_ROCKET_GRUNT_5 355 +#define TRAINER_TEAM_ROCKET_GRUNT_6 356 +#define TRAINER_TEAM_ROCKET_GRUNT_7 357 +#define TRAINER_TEAM_ROCKET_GRUNT_8 358 +#define TRAINER_TEAM_ROCKET_GRUNT_9 359 +#define TRAINER_TEAM_ROCKET_GRUNT_10 360 +#define TRAINER_TEAM_ROCKET_GRUNT_11 361 +#define TRAINER_TEAM_ROCKET_GRUNT_12 362 +#define TRAINER_TEAM_ROCKET_GRUNT_13 363 +#define TRAINER_TEAM_ROCKET_GRUNT_14 364 +#define TRAINER_TEAM_ROCKET_GRUNT_15 365 +#define TRAINER_TEAM_ROCKET_GRUNT_16 366 +#define TRAINER_TEAM_ROCKET_GRUNT_17 367 +#define TRAINER_TEAM_ROCKET_GRUNT_18 368 +#define TRAINER_TEAM_ROCKET_GRUNT_19 369 +#define TRAINER_TEAM_ROCKET_GRUNT_20 370 +#define TRAINER_TEAM_ROCKET_GRUNT_21 371 +#define TRAINER_TEAM_ROCKET_GRUNT_22 372 +#define TRAINER_TEAM_ROCKET_GRUNT_23 373 +#define TRAINER_TEAM_ROCKET_GRUNT_24 374 +#define TRAINER_TEAM_ROCKET_GRUNT_25 375 +#define TRAINER_TEAM_ROCKET_GRUNT_26 376 +#define TRAINER_TEAM_ROCKET_GRUNT_27 377 +#define TRAINER_TEAM_ROCKET_GRUNT_28 378 +#define TRAINER_TEAM_ROCKET_GRUNT_29 379 +#define TRAINER_TEAM_ROCKET_GRUNT_30 380 +#define TRAINER_TEAM_ROCKET_GRUNT_31 381 +#define TRAINER_TEAM_ROCKET_GRUNT_32 382 +#define TRAINER_TEAM_ROCKET_GRUNT_33 383 +#define TRAINER_TEAM_ROCKET_GRUNT_34 384 +#define TRAINER_TEAM_ROCKET_GRUNT_35 385 +#define TRAINER_TEAM_ROCKET_GRUNT_36 386 +#define TRAINER_TEAM_ROCKET_GRUNT_37 387 +#define TRAINER_TEAM_ROCKET_GRUNT_38 388 +#define TRAINER_TEAM_ROCKET_GRUNT_39 389 +#define TRAINER_TEAM_ROCKET_GRUNT_40 390 +#define TRAINER_TEAM_ROCKET_GRUNT_41 391 +#define TRAINER_COOLTRAINER_SAMUEL 392 +#define TRAINER_COOLTRAINER_GEORGE 393 +#define TRAINER_COOLTRAINER_COLBY 394 +#define TRAINER_COOLTRAINER_PAUL 395 +#define TRAINER_COOLTRAINER_ROLANDO 396 +#define TRAINER_COOLTRAINER_GILBERT 397 +#define TRAINER_COOLTRAINER_OWEN 398 +#define TRAINER_COOLTRAINER_BERKE 399 +#define TRAINER_COOLTRAINER_YUJI 400 +#define TRAINER_COOLTRAINER_WARREN 401 +#define TRAINER_COOLTRAINER_MARY 402 +#define TRAINER_COOLTRAINER_CAROLINE 403 +#define TRAINER_COOLTRAINER_ALEXA 404 +#define TRAINER_COOLTRAINER_SHANNON 405 +#define TRAINER_COOLTRAINER_NAOMI 406 +#define TRAINER_COOLTRAINER_BROOKE 407 +#define TRAINER_COOLTRAINER_AUSTINA 408 +#define TRAINER_COOLTRAINER_JULIE 409 +#define TRAINER_ELITE_FOUR_LORELEI 410 +#define TRAINER_ELITE_FOUR_BRUNO 411 +#define TRAINER_ELITE_FOUR_AGATHA 412 +#define TRAINER_ELITE_FOUR_LANCE 413 +#define TRAINER_LEADER_BROCK 414 +#define TRAINER_LEADER_MISTY 415 +#define TRAINER_LEADER_LT_SURGE 416 +#define TRAINER_LEADER_ERIKA 417 +#define TRAINER_LEADER_KOGA 418 +#define TRAINER_LEADER_BLAINE 419 +#define TRAINER_LEADER_SABRINA 420 +#define TRAINER_GENTLEMAN_THOMAS 421 +#define TRAINER_GENTLEMAN_ARTHUR 422 +#define TRAINER_GENTLEMAN_TUCKER 423 +#define TRAINER_GENTLEMAN_NORTON 424 +#define TRAINER_GENTLEMAN_WALTER 425 +#define TRAINER_RIVAL_SS_ANNE_SQUIRTLE 426 +#define TRAINER_RIVAL_SS_ANNE_BULBASAUR 427 +#define TRAINER_RIVAL_SS_ANNE_CHARMANDER 428 +#define TRAINER_RIVAL_POKENON_TOWER_SQUIRTLE 429 +#define TRAINER_RIVAL_POKENON_TOWER_BULBASAUR 430 +#define TRAINER_RIVAL_POKENON_TOWER_CHARMANDER 431 +#define TRAINER_RIVAL_SILPH_SQUIRTLE 432 +#define TRAINER_RIVAL_SILPH_BULBASAUR 433 +#define TRAINER_RIVAL_SILPH_CHARMANDER 434 +#define TRAINER_RIVAL_ROUTE22_LATE_SQUIRTLE 435 +#define TRAINER_RIVAL_ROUTE22_LATE_BULBASAUR 436 +#define TRAINER_RIVAL_ROUTE22_LATE_CHARMANDER 437 +#define TRAINER_CHAMPION_FIRST_SQUIRTLE 438 +#define TRAINER_CHAMPION_FIRST_BULBASAUR 439 +#define TRAINER_CHAMPION_FIRST_CHARMANDER 440 +#define TRAINER_CHANNELER_PATRICIA 441 +#define TRAINER_CHANNELER_CARLY 442 +#define TRAINER_CHANNELER_HOPE 443 +#define TRAINER_CHANNELER_PAULA 444 +#define TRAINER_CHANNELER_LAUREL 445 +#define TRAINER_CHANNELER_JODY 446 +#define TRAINER_CHANNELER_TAMMY 447 +#define TRAINER_CHANNELER_RUTH 448 +#define TRAINER_CHANNELER_KARINA 449 +#define TRAINER_CHANNELER_JANAE 450 +#define TRAINER_CHANNELER_ANGELICA 451 +#define TRAINER_CHANNELER_EMILIA 452 +#define TRAINER_CHANNELER_JENNIFER 453 +#define TRAINER_CHANNELER_1 454 +#define TRAINER_CHANNELER_2 455 +#define TRAINER_CHANNELER_3 456 +#define TRAINER_CHANNELER_4 457 +#define TRAINER_CHANNELER_5 458 +#define TRAINER_CHANNELER_6 459 +#define TRAINER_CHANNELER_7 460 +#define TRAINER_CHANNELER_8 461 +#define TRAINER_CHANNELER_AMANDA 462 +#define TRAINER_CHANNELER_STACY 463 +#define TRAINER_CHANNELER_TASHA 464 +#define TRAINER_HIKER_JEREMY 465 +#define TRAINER_PICNICKER_ALMA 466 +#define TRAINER_PICNICKER_SUSIE 467 +#define TRAINER_PICNICKER_VALERIE 468 +#define TRAINER_PICNICKER_GWEN 469 +#define TRAINER_BIKER_VIRGIL 470 +#define TRAINER_CAMPER_FLINT 471 +#define TRAINER_PICNICKER_MISSY 472 +#define TRAINER_PICNICKER_IRENE 473 +#define TRAINER_PICNICKER_DANA 474 +#define TRAINER_PICNICKER_ARIANA 475 +#define TRAINER_PICNICKER_LEAH 476 +#define TRAINER_CAMPER_JUSTIN 477 +#define TRAINER_PICNICKER_YAZMIN 478 +#define TRAINER_PICNICKER_KINDRA 479 +#define TRAINER_PICNICKER_BECKY 480 +#define TRAINER_PICNICKER_CELIA 481 +#define TRAINER_GENTLEMAN_BROOKS 482 +#define TRAINER_GENTLEMAN_LAMAR 483 +#define TRAINER_TWINS_ELI_ANNE 484 +#define TRAINER_COOL_COUPLE_RAY_TYRA 485 +#define TRAINER_YOUNG_COUPLE_GIA_JES 486 +#define TRAINER_TWINS_KIRI_JAN 487 +#define TRAINER_CRUSH_KIN_RON_MYA 488 +#define TRAINER_YOUNG_COUPLE_LEA_JED 489 +#define TRAINER_SIS_AND_BRO_LIA_LUC 490 +#define TRAINER_SIS_AND_BRO_LIL_IAN 491 +#define TRAINER_BUG_CATCHER_3 492 +#define TRAINER_BUG_CATCHER_4 493 +#define TRAINER_BUG_CATCHER_5 494 +#define TRAINER_BUG_CATCHER_6 495 +#define TRAINER_BUG_CATCHER_7 496 +#define TRAINER_BUG_CATCHER_8 497 +#define TRAINER_YOUNGSTER_BEN_3 498 +#define TRAINER_YOUNGSTER_BEN_4 499 +#define TRAINER_YOUNGSTER_CHAD_2 500 +#define TRAINER_LASS_RELI_2 501 +#define TRAINER_LASS_RELI_3 502 +#define TRAINER_YOUNGSTER_TIMMY_2 503 +#define TRAINER_YOUNGSTER_TIMMY_3 504 +#define TRAINER_YOUNGSTER_TIMMY_4 505 +#define TRAINER_YOUNGSTER_CHAD_3 506 +#define TRAINER_LASS_JANICE_2 507 +#define TRAINER_LASS_JANICE_3 508 +#define TRAINER_YOUNGSTER_CHAD_4 509 +#define TRAINER_HIKER_FRANKLIN_2 510 +#define TRAINER_PKMN_PROF_PROF_OAK 511 +#define TRAINER_PLAYER_BRENDAN 512 +#define TRAINER_PLAYER_MAY 513 +#define TRAINER_PLAYER_RED 514 +#define TRAINER_PLAYER_LEAF 515 +#define TRAINER_TEAM_ROCKET_GRUNT_42 516 +#define TRAINER_PSYCHIC_JACLYN 517 +#define TRAINER_CRUSH_GIRL_SHARON 518 +#define TRAINER_TUBER_AMIRA 519 +#define TRAINER_PKMN_BREEDER_ALIZE 520 +#define TRAINER_PKMN_RANGER_NICOLAS 521 +#define TRAINER_PKMN_RANGER_MADELINE 522 +#define TRAINER_AROMA_LADY_NIKKI 523 +#define TRAINER_RUIN_MANIAC_STANLY 524 +#define TRAINER_LADY_JACKI 525 +#define TRAINER_PAINTER_DAISY 526 +#define TRAINER_BIKER_GOON 527 +#define TRAINER_BIKER_GOON_2 528 +#define TRAINER_BIKER_GOON_3 529 +#define TRAINER_BIKER_2 530 +#define TRAINER_BUG_CATCHER_ANTHONY 531 +#define TRAINER_BUG_CATCHER_CHARLIE 532 +#define TRAINER_TWINS_ELI_ANNE_2 533 +#define TRAINER_YOUNGSTER_JOHNSON 534 +#define TRAINER_BIKER_RICARDO 535 +#define TRAINER_BIKER_JAREN 536 +#define TRAINER_TEAM_ROCKET_GRUNT_43 537 +#define TRAINER_TEAM_ROCKET_GRUNT_44 538 +#define TRAINER_TEAM_ROCKET_GRUNT_45 539 +#define TRAINER_TEAM_ROCKET_GRUNT_46 540 +#define TRAINER_TEAM_ROCKET_GRUNT_47 541 +#define TRAINER_TEAM_ROCKET_GRUNT_48 542 +#define TRAINER_TEAM_ROCKET_ADMIN 543 +#define TRAINER_TEAM_ROCKET_ADMIN_2 544 +#define TRAINER_SCIENTIST_GIDEON 545 +#define TRAINER_SWIMMER_FEMALE_AMARA 546 +#define TRAINER_SWIMMER_FEMALE_MARIA 547 +#define TRAINER_SWIMMER_FEMALE_ABIGAIL 548 +#define TRAINER_SWIMMER_MALE_FINN 549 +#define TRAINER_SWIMMER_MALE_GARRETT 550 +#define TRAINER_FISHERMAN_TOMMY 551 +#define TRAINER_CRUSH_GIRL_TANYA 552 +#define TRAINER_BLACK_BELT_SHEA 553 +#define TRAINER_BLACK_BELT_HUGH 554 +#define TRAINER_CAMPER_BRYCE 555 +#define TRAINER_PICNICKER_CLAIRE 556 +#define TRAINER_CRUSH_KIN_MIK_KIA 557 +#define TRAINER_AROMA_LADY_VIOLET 558 +#define TRAINER_TUBER_ALEXIS 559 +#define TRAINER_TWINS_JOY_MEG 560 +#define TRAINER_SWIMMER_FEMALE_TISHA 561 +#define TRAINER_PAINTER_CELINA 562 +#define TRAINER_PAINTER_RAYNA 563 +#define TRAINER_LADY_GILLIAN 564 +#define TRAINER_YOUNGSTER_DESTIN 565 +#define TRAINER_SWIMMER_MALE_TOBY 566 +#define TRAINER_TEAM_ROCKET_GRUNT_49 567 +#define TRAINER_TEAM_ROCKET_GRUNT_50 568 +#define TRAINER_TEAM_ROCKET_GRUNT_51 569 +#define TRAINER_BIRD_KEEPER_MILO 570 +#define TRAINER_BIRD_KEEPER_CHAZ 571 +#define TRAINER_BIRD_KEEPER_HAROLD 572 +#define TRAINER_FISHERMAN_TYLOR 573 +#define TRAINER_SWIMMER_MALE_MYMO 574 +#define TRAINER_SWIMMER_FEMALE_NICOLE 575 +#define TRAINER_SIS_AND_BRO_AVA_GEB 576 +#define TRAINER_AROMA_LADY_ROSE 577 +#define TRAINER_SWIMMER_MALE_SAMIR 578 +#define TRAINER_SWIMMER_FEMALE_DENISE 579 +#define TRAINER_TWINS_MIU_MIA 580 +#define TRAINER_HIKER_EARL 581 +#define TRAINER_RUIN_MANIAC_FOSTER 582 +#define TRAINER_RUIN_MANIAC_LARRY 583 +#define TRAINER_HIKER_DARYL 584 +#define TRAINER_POKEMANIAC_HECTOR 585 +#define TRAINER_PSYCHIC_DARIO 586 +#define TRAINER_PSYCHIC_RODETTE 587 +#define TRAINER_AROMA_LADY_MIAH 588 +#define TRAINER_YOUNG_COUPLE_EVE_JON 589 +#define TRAINER_JUGGLER_MASON 590 +#define TRAINER_CRUSH_GIRL_CYNDY 591 +#define TRAINER_CRUSH_GIRL_JOCELYN 592 +#define TRAINER_TAMER_EVAN 593 +#define TRAINER_POKEMANIAC_MARK_2 594 +#define TRAINER_PKMN_RANGER_LOGAN 595 +#define TRAINER_PKMN_RANGER_JACKSON 596 +#define TRAINER_PKMN_RANGER_BETH 597 +#define TRAINER_PKMN_RANGER_KATELYN 598 +#define TRAINER_COOLTRAINER_LEROY 599 +#define TRAINER_COOLTRAINER_MICHELLE 600 +#define TRAINER_COOL_COUPLE_LEX_NYA 601 +#define TRAINER_RUIN_MANIAC_BRANDON 602 +#define TRAINER_RUIN_MANIAC_BENJAMIN 603 +#define TRAINER_PAINTER_EDNA 604 +#define TRAINER_GENTLEMAN_CLIFFORD 605 +#define TRAINER_LADY_SELPHY 606 +#define TRAINER_RUIN_MANIAC_LAWSON 607 +#define TRAINER_PSYCHIC_LAURA 608 +#define TRAINER_PKMN_BREEDER_BETHANY 609 +#define TRAINER_PKMN_BREEDER_ALLISON 610 +#define TRAINER_BUG_CATCHER_GARRET 611 +#define TRAINER_BUG_CATCHER_JONAH 612 +#define TRAINER_BUG_CATCHER_VANCE 613 +#define TRAINER_YOUNGSTER_NASH 614 +#define TRAINER_YOUNGSTER_CORDELL 615 +#define TRAINER_LASS_DALIA 616 +#define TRAINER_LASS_JOANA 617 +#define TRAINER_CAMPER_RILEY 618 +#define TRAINER_PICNICKER_MARCY 619 +#define TRAINER_RUIN_MANIAC_LAYTON 620 +#define TRAINER_PICNICKER_KELSEY_2 621 +#define TRAINER_PICNICKER_KELSEY_3 622 +#define TRAINER_PICNICKER_KELSEY_4 623 +#define TRAINER_CAMPER_RICKY_2 624 +#define TRAINER_CAMPER_RICKY_3 625 +#define TRAINER_CAMPER_RICKY_4 626 +#define TRAINER_CAMPER_JEFF_2 627 +#define TRAINER_CAMPER_JEFF_3 628 +#define TRAINER_CAMPER_JEFF_4 629 +#define TRAINER_PICNICKER_ISABELLE_2 630 +#define TRAINER_PICNICKER_ISABELLE_3 631 +#define TRAINER_PICNICKER_ISABELLE_4 632 +#define TRAINER_YOUNGSTER_YASU_2 633 +#define TRAINER_YOUNGSTER_YASU_3 634 +#define TRAINER_ENGINEER_BERNIE_2 635 +#define TRAINER_GAMER_DARIAN_2 636 +#define TRAINER_CAMPER_CHRIS_2 637 +#define TRAINER_CAMPER_CHRIS_3 638 +#define TRAINER_CAMPER_CHRIS_4 639 +#define TRAINER_PICNICKER_ALICIA_2 640 +#define TRAINER_PICNICKER_ALICIA_3 641 +#define TRAINER_PICNICKER_ALICIA_4 642 +#define TRAINER_HIKER_JEREMY_2 643 +#define TRAINER_POKEMANIAC_MARK_3 644 +#define TRAINER_POKEMANIAC_HERMAN_2 645 +#define TRAINER_POKEMANIAC_HERMAN_3 646 +#define TRAINER_HIKER_TRENT_2 647 +#define TRAINER_LASS_MEGAN_2 648 +#define TRAINER_LASS_MEGAN_3 649 +#define TRAINER_SUPER_NERD_GLENN_2 650 +#define TRAINER_GAMER_RICH_2 651 +#define TRAINER_BIKER_JAREN_2 652 +#define TRAINER_FISHERMAN_ELLIOT_2 653 +#define TRAINER_ROCKER_LUCA_2 654 +#define TRAINER_BEAUTY_SHEILA_2 655 +#define TRAINER_BIRD_KEEPER_ROBERT_2 656 +#define TRAINER_BIRD_KEEPER_ROBERT_3 657 +#define TRAINER_PICNICKER_SUSIE_2 658 +#define TRAINER_PICNICKER_SUSIE_3 659 +#define TRAINER_PICNICKER_SUSIE_4 660 +#define TRAINER_BIKER_LUKAS_2 661 +#define TRAINER_BIRD_KEEPER_BENNY_2 662 +#define TRAINER_BIRD_KEEPER_BENNY_3 663 +#define TRAINER_BIRD_KEEPER_MARLON_2 664 +#define TRAINER_BIRD_KEEPER_MARLON_3 665 +#define TRAINER_BEAUTY_GRACE_2 666 +#define TRAINER_BIRD_KEEPER_CHESTER_2 667 +#define TRAINER_BIRD_KEEPER_CHESTER_3 668 +#define TRAINER_PICNICKER_BECKY_2 669 +#define TRAINER_PICNICKER_BECKY_3 670 +#define TRAINER_PICNICKER_BECKY_4 671 +#define TRAINER_CRUSH_KIN_RON_MYA_2 672 +#define TRAINER_CRUSH_KIN_RON_MYA_3 673 +#define TRAINER_CRUSH_KIN_RON_MYA_4 674 +#define TRAINER_BIKER_RUBEN_2 675 +#define TRAINER_CUE_BALL_CAMRON_2 676 +#define TRAINER_BIKER_JAXON_2 677 +#define TRAINER_CUE_BALL_ISAIAH_2 678 +#define TRAINER_CUE_BALL_COREY_2 679 +#define TRAINER_BIRD_KEEPER_JACOB_2 680 +#define TRAINER_BIRD_KEEPER_JACOB_3 681 +#define TRAINER_SWIMMER_FEMALE_ALICE_2 682 +#define TRAINER_SWIMMER_MALE_DARRIN_2 683 +#define TRAINER_PICNICKER_MISSY_2 684 +#define TRAINER_PICNICKER_MISSY_3 685 +#define TRAINER_FISHERMAN_WADE_2 686 +#define TRAINER_SWIMMER_MALE_JACK_2 687 +#define TRAINER_SIS_AND_BRO_LIL_IAN_2 688 +#define TRAINER_SIS_AND_BRO_LIL_IAN_3 689 +#define TRAINER_SWIMMER_MALE_FINN_2 690 +#define TRAINER_CRUSH_GIRL_SHARON_2 691 +#define TRAINER_CRUSH_GIRL_SHARON_3 692 +#define TRAINER_CRUSH_GIRL_TANYA_2 693 +#define TRAINER_CRUSH_GIRL_TANYA_3 694 +#define TRAINER_BLACK_BELT_SHEA_2 695 +#define TRAINER_BLACK_BELT_SHEA_3 696 +#define TRAINER_BLACK_BELT_HUGH_2 697 +#define TRAINER_BLACK_BELT_HUGH_3 698 +#define TRAINER_CRUSH_KIN_MIK_KIA_2 699 +#define TRAINER_CRUSH_KIN_MIK_KIA_3 700 +#define TRAINER_TUBER_AMIRA_2 701 +#define TRAINER_TWINS_JOY_MEG_2 702 +#define TRAINER_PAINTER_RAYNA_2 703 +#define TRAINER_YOUNGSTER_DESTIN_2 704 +#define TRAINER_PKMN_BREEDER_ALIZE_2 705 +#define TRAINER_YOUNG_COUPLE_GIA_JES_2 706 +#define TRAINER_YOUNG_COUPLE_GIA_JES_3 707 +#define TRAINER_BIRD_KEEPER_MILO_2 708 +#define TRAINER_BIRD_KEEPER_CHAZ_2 709 +#define TRAINER_BIRD_KEEPER_HAROLD_2 710 +#define TRAINER_SWIMMER_FEMALE_NICOLE_2 711 +#define TRAINER_PSYCHIC_JACLYN_2 712 +#define TRAINER_SWIMMER_MALE_SAMIR_2 713 +#define TRAINER_HIKER_EARL_2 714 +#define TRAINER_RUIN_MANIAC_LARRY_2 715 +#define TRAINER_POKEMANIAC_HECTOR_2 716 +#define TRAINER_PSYCHIC_DARIO_2 717 +#define TRAINER_PSYCHIC_RODETTE_2 718 +#define TRAINER_JUGGLER_MASON_2 719 +#define TRAINER_PKMN_RANGER_NICOLAS_2 720 +#define TRAINER_PKMN_RANGER_MADELINE_2 721 +#define TRAINER_CRUSH_GIRL_CYNDY_2 722 +#define TRAINER_TAMER_EVAN_2 723 +#define TRAINER_PKMN_RANGER_JACKSON_2 724 +#define TRAINER_PKMN_RANGER_KATELYN_2 725 +#define TRAINER_COOLTRAINER_LEROY_2 726 +#define TRAINER_COOLTRAINER_MICHELLE_2 727 +#define TRAINER_COOL_COUPLE_LEX_NYA_2 728 +#define TRAINER_BUG_CATCHER_COLTON_2 729 +#define TRAINER_BUG_CATCHER_COLTON_3 730 +#define TRAINER_BUG_CATCHER_COLTON_4 731 +#define TRAINER_SWIMMER_MALE_MATTHEW_2 732 +#define TRAINER_SWIMMER_MALE_TONY_2 733 +#define TRAINER_SWIMMER_FEMALE_MELISSA_2 734 +#define TRAINER_ELITE_FOUR_LORELEI_2 735 +#define TRAINER_ELITE_FOUR_BRUNO_2 736 +#define TRAINER_ELITE_FOUR_AGATHA_2 737 +#define TRAINER_ELITE_FOUR_LANCE_2 738 +#define TRAINER_CHAMPION_REMATCH_SQUIRTLE 739 +#define TRAINER_CHAMPION_REMATCH_BULBASAUR 740 +#define TRAINER_CHAMPION_REMATCH_CHARMANDER 741 +#define TRAINER_CUE_BALL_PAXTON 742 +#define NUM_TRAINERS 743 + // All trainer parties specify the IV, level, and species for each Pokémon in the // party. Some trainer parties also specify held items and custom moves for each // Pokémon. #define F_TRAINER_PARTY_CUSTOM_MOVESET (1 << 0) #define F_TRAINER_PARTY_HELD_ITEM (1 << 1) -#endif // GUARD_TRAINERS_H +#endif // GUARD_CONSTANTS_TRAINERS_H diff --git a/include/constants/vars.h b/include/constants/vars.h index a354320c2..3f171ede8 100644 --- a/include/constants/vars.h +++ b/include/constants/vars.h @@ -3,149 +3,189 @@ #define VAR_0x3F20 0x3F20 -#define VAR_0x4000 0x4000 -#define VAR_0x4001 0x4001 -#define VAR_0x4002 0x4002 -#define VAR_0x4003 0x4003 -#define VAR_0x4004 0x4004 -#define VAR_0x4005 0x4005 -#define VAR_0x4006 0x4006 -#define VAR_0x4007 0x4007 -#define VAR_0x4008 0x4008 -#define VAR_0x4009 0x4009 -#define VAR_0x400A 0x400A -#define VAR_0x400B 0x400B -#define VAR_0x400C 0x400C -#define VAR_0x400D 0x400D -#define VAR_0x400E 0x400E -#define VAR_0x400F 0x400F -#define VAR_0x4010 0x4010 -#define VAR_0x4011 0x4011 -#define VAR_0x4012 0x4012 -#define VAR_0x4013 0x4013 -#define VAR_0x4014 0x4014 -#define VAR_0x4015 0x4015 -#define VAR_0x4016 0x4016 -#define VAR_0x4017 0x4017 -#define VAR_0x4018 0x4018 -#define VAR_0x4019 0x4019 -#define VAR_0x401A 0x401A -#define VAR_0x401B 0x401B -#define VAR_0x401C 0x401C -#define VAR_0x401D 0x401D -#define VAR_0x401E 0x401E -#define VAR_0x401F 0x401F -#define VAR_REPEL_STEP_COUNT 0x4020 -#define VAR_0x4021 0x4021 -#define VAR_ICE_STEP_COUNT 0x4022 -#define VAR_0x4023 0x4023 -#define VAR_0x4024 0x4024 -#define VAR_0x4025 0x4025 -#define VAR_SECRET_BASE_MAP 0x4026 -#define VAR_0x4027 0x4027 -#define VAR_0x4028 0x4028 -#define VAR_0x4029 0x4029 -#define VAR_HAPPINESS_STEP_COUNTER 0x402A -#define VAR_POISON_STEP_COUNTER 0x402B -#define VAR_RESET_RTC_ENABLE 0x402C -#define VAR_0x402D 0x402D -#define VAR_0x402E 0x402E +#define VARS_START 0x4000 -#define VAR_0x402F 0x402F +// Temporary variables. Reset on map load. +#define VAR_0x4000 0x4000 +#define VAR_0x4001 0x4001 +#define VAR_0x4002 0x4002 +#define VAR_0x4003 0x4003 +#define VAR_0x4004 0x4004 +#define VAR_0x4005 0x4005 +#define VAR_0x4006 0x4006 +#define VAR_0x4007 0x4007 +#define VAR_0x4008 0x4008 +#define VAR_0x4009 0x4009 +#define VAR_0x400A 0x400A +#define VAR_0x400B 0x400B +#define VAR_0x400C 0x400C +#define VAR_0x400D 0x400D +#define VAR_0x400E 0x400E +#define VAR_0x400F 0x400F + +// Object event graphics IDs which can be changed by +// script commands. +#define VAR_OBJ_GFX_ID_0 0x4010 +#define VAR_OBJ_GFX_ID_1 0x4011 +#define VAR_OBJ_GFX_ID_2 0x4012 +#define VAR_OBJ_GFX_ID_3 0x4013 +#define VAR_OBJ_GFX_ID_4 0x4014 +#define VAR_OBJ_GFX_ID_5 0x4015 +#define VAR_OBJ_GFX_ID_6 0x4016 +#define VAR_OBJ_GFX_ID_7 0x4017 +#define VAR_OBJ_GFX_ID_8 0x4018 +#define VAR_OBJ_GFX_ID_9 0x4019 +#define VAR_OBJ_GFX_ID_A 0x401A +#define VAR_OBJ_GFX_ID_B 0x401B +#define VAR_OBJ_GFX_ID_C 0x401C +#define VAR_OBJ_GFX_ID_D 0x401D +#define VAR_OBJ_GFX_ID_E 0x401E +#define VAR_OBJ_GFX_ID_F 0x401F + +// If nonzero, counts down by one every step. +// When it hits zero, repel's effect wears off. +#define VAR_REPEL_STEP_COUNT 0x4020 + +// Counts up every step. Wraps around at 128. +// When wraparound occurs, the friendship of +// every party poke gets a slight boost. +#define VAR_FRIENDSHIP_STEP_COUNT 0x4021 + +// Maybe unused? +#define VAR_ICE_STEP_COUNT 0x4022 + +// Step counter. Caps at 1500. If you enter a map with +// renewable hidden items and this counter is capped, +// the counter resets to 0 and all renewable hidden +// item flags are resampled. +#define VAR_RENEWABLE_ITEM_STEP_COUNTER 0x4023 + +// Determines which wild encounter set to use in the +// Altering Cave. Incremented by Mystery Event. +// Wraps around at 10. +#define VAR_ALTERING_CAVE_WILD_SET 0x4024 + +// Step counter set to 500 at game start. When you get +// a massage from Daisy, it resets to 0. Caps at 500. +#define VAR_MASSAGE_COOLDOWN_STEP_COUNTER 0x4025 + +// Step counter. Wraps around at 100. Used to +// determine whether the player has reached the +// triangle in time. +#define VAR_DEOXYS_INTERACTION_STEP_COUNTER 0x4026 + +// Bits 0-11 are the number of mons in all boxes +// with the species sanity bit set. +// Bits 12-15 are the same for the player's party. +// Used by Quest Log. +#define VAR_QUEST_LOG_MON_COUNTS 0x4027 +#define VAR_MENEWS_JISAN_STEP_COUNTER 0x4028 +#define VAR_0x4029 0x4029 +#define VAR_HAPPINESS_STEP_COUNTER 0x402A +#define VAR_POISON_STEP_COUNTER 0x402B +#define VAR_RESET_RTC_ENABLE 0x402C +#define VAR_0x402D 0x402D +#define VAR_0x402E 0x402E + +#define VAR_0x402F 0x402F + +#define VAR_0x4030 0x4030 +#define VAR_STARTER_MON 0x4031 +#define VAR_0x4032 0x4032 +#define VAR_ENIGMA_BERRY_AVAILABLE 0x4033 + +#define VAR_0x4034 0x4034 +#define VAR_RESORT_GOREGEOUS_STEP_COUNTER 0x4035 +#define VAR_RESORT_GORGEOUS_REQUESTED_MON 0x4036 +#define VAR_0x4037 0x4037 +#define VAR_0x4038 0x4038 +#define VAR_0x4039 0x4039 +#define VAR_ELEVATOR_FLOOR 0x403A +#define VAR_RESORT_GORGEOUS_REWARD 0x403B +#define VAR_0x403C 0x403C +#define VAR_HERACROSS_SIZE_RECORD 0x403D +#define VAR_DEOXYS_INTERACTION_NUM 0x403E +#define VAR_0x403F 0x403F +#define VAR_MAGIKARP_SIZE_RECORD 0x4040 +#define VAR_0x4041 0x4041 +#define VAR_TRAINER_CARD_MON_ICON_TINT_IDX 0x4042 +#define VAR_TRAINER_CARD_MON_ICON_1 0x4043 +#define VAR_TRAINER_CARD_MON_ICON_2 0x4044 +#define VAR_TRAINER_CARD_MON_ICON_3 0x4045 +#define VAR_TRAINER_CARD_MON_ICON_4 0x4046 +#define VAR_TRAINER_CARD_MON_ICON_5 0x4047 +#define VAR_TRAINER_CARD_MON_ICON_6 0x4048 +#define VAR_HOF_BRAG_STATE 0x4049 +#define VAR_EGG_BRAG_STATE 0x404A +#define VAR_LINK_WIN_BRAG_STATE 0x404B +#define VAR_POKELOT_RND2 0x404C +#define VAR_0x404D 0x404D +#define VAR_0x404E 0x404E +#define VAR_LOTAD_SIZE_RECORD 0x404F + +// Map Scene +#define VAR_MAP_SCENE_PALLET_TOWN_OAK 0x4050 +#define VAR_MAP_SCENE_VIRIDIAN_CITY_OLD_MAN 0x4051 +#define VAR_MAP_SCENE_CERULEAN_CITY_RIVAL 0x4052 +#define VAR_VERMILION_CITY_TICKET_CHECK_TRIGGER 0x4053 +#define VAR_MAP_SCENE_ROUTE22 0x4054 +#define VAR_MAP_SCENE_PALLET_TOWN_PROFESSOR_OAKS_LAB 0x4055 +#define VAR_MAP_SCENE_PALLET_TOWN_PLAYERS_HOUSE_2F 0x4056 +#define VAR_MAP_SCENE_VIRIDIAN_CITY_MART 0x4057 +#define VAR_MAP_SCENE_PALLET_TOWN_GARYS_HOUSE 0x4058 +#define VAR_MAP_SCENE_POKEMON_TOWER_6F 0x4059 +#define VAR_MAP_SCENE_VIRIDIAN_CITY_GYM_DOOR 0x405A +#define VAR_MAP_SCENE_S_S_ANNE_2F_CORRIDOR 0x405B +#define VAR_MAP_SCENE_SILPH_CO_7F 0x405C +#define VAR_MAP_SCENE_POKEMON_TOWER_2F 0x405D +#define VAR_MAP_SCENE_ROUTE16 0x405E +#define VAR_MAP_SCENE_ROUTE23 0x405F +#define VAR_MAP_SCENE_SILPH_CO_11F 0x4060 +#define VAR_MAP_SCENE_PEWTER_CITY_MUSEUM_1F 0x4061 +#define VAR_MAP_SCENE_ROUTE5_ROUTE6_ROUTE7_ROUTE8_GATES 0x4062 +#define VAR_MAP_SCENE_SEAFOAM_ISLANDS_B4F 0x4063 +#define VAR_MAP_SCENE_VICTORY_ROAD_1F 0x4064 +#define VAR_MAP_SCENE_VICTORY_ROAD_2F_BOULDER1 0x4065 +#define VAR_MAP_SCENE_VICTORY_ROAD_2F_BOULDER2 0x4066 +#define VAR_MAP_SCENE_VICTORY_ROAD_3F 0x4067 +#define VAR_MAP_SCENE_POKEMON_LEAGUE 0x4068 +#define VAR_MAP_SCENE_CINNABAR_ISLAND_POKEMON_LAB_EXPERIMENT_ROOM_WHICH_FOSSIL 0x4069 +#define VAR_MAP_SCENE_CINNABAR_ISLAND_POKEMON_LAB_EXPERIMENT_ROOM_REVIVE_STATE 0x406A +#define VAR_MAP_SCENE_ROUTE24 0x406B +#define VAR_MAP_SCENE_PEWTER_CITY 0x406C +#define VAR_0x406D 0x406D +#define VAR_MAP_SCENE_FUCHSIA_CITY_SAFARI_ZONE_ENTRANCE 0x406E +#define VAR_0x406F 0x406F +#define VAR_MAP_SCENE_PALLET_TOWN_SIGN_LADY 0x4070 +#define VAR_MAP_SCENE_CINNABAR_ISLAND 0x4071 +#define VAR_0x4072 0x4072 +#define VAR_MAP_SCENE_SAFFRON_CITY_POKEMON_TRAINER_FAN_CLUB 0x4073 +#define VAR_MAP_SCENE_SEVEN_ISLAND_HOUSE_ROOM1 0x4074 +#define VAR_MAP_SCENE_ONE_ISLAND_HARBOR 0x4075 +#define VAR_MAP_SCENE_ONE_ISLAND_POKEMON_CENTER_1F 0x4076 +#define VAR_0x4077 0x4077 +#define VAR_MAP_SCENE_TWO_ISLAND 0x4078 +#define VAR_MAP_SCENE_TWO_ISLAND_JOYFUL_GAME_CORNER 0x4079 +#define VAR_0x407A 0x407A +#define VAR_MAP_SCENE_THREE_ISLAND 0x407B +#define VAR_MAP_SCENE_POKEMON_CENTER_TEALA 0x407C +#define VAR_MAP_SCENE_CERULEAN_CITY_ROCKET 0x407D +#define VAR_MAP_SCENE_VERMILION_CITY 0x407E +#define VAR_MAP_SCENE_MT_EMBER_EXTERIOR 0x407F +#define VAR_MAP_SCENE_ICEFALL_CAVE_BACK 0x4080 +#define VAR_MAP_SCENE_SAFFRON_CITY_DOJO 0x4081 +#define VAR_MAP_SCENE_TRAINER_TOWER 0x4082 +#define VAR_MAP_SCENE_FIVE_ISLAND_LOST_CAVE_ROOM10 0x4083 +#define VAR_MAP_SCENE_FIVE_ISLAND_RESORT_GORGEOUS 0x4084 +#define VAR_MAP_SCENE_INDIGO_PLATEAU_EXTERIOR 0x4085 +#define VAR_MAP_SCENE_FOUR_ISLAND 0x4086 +#define VAR_0x4087 0x4087 +#define VAR_MAP_SCENE_ROCKET_WAREHOUSE 0x4088 +#define VAR_MAP_SCENE_SIX_ISLAND_POKEMON_CENTER_1F 0x4089 +#define VAR_MAP_SCENE_CINNABAR_ISLAND_2 0x408A +#define VAR_MAP_SCENE_MT_MOON_B2F 0x408B -#define VAR_0x4030 0x4030 -#define VAR_STARTER_MON 0x4031 -#define VAR_0x4032 0x4032 -#define VAR_ENIGMA_BERRY_AVAILABLE 0x4033 -#define VAR_0x4034 0x4034 -#define VAR_0x4035 0x4035 -#define VAR_STORAGE_UNKNOWN 0x4036 -#define VAR_0x4037 0x4037 -#define VAR_0x4038 0x4038 -#define VAR_0x4039 0x4039 -#define VAR_0x403A 0x403A -#define VAR_0x403B 0x403B -#define VAR_0x403C 0x403C -#define VAR_0x403D 0x403D -#define VAR_ALTERING_CAVE_WILD_SET 0x403E -#define VAR_0x403F 0x403F -#define VAR_DAYS 0x4040 -#define VAR_0x4041 0x4041 -#define VAR_0x4042 0x4042 -#define VAR_DEPT_STORE_FLOOR 0x4043 -#define VAR_0x4044 0x4044 -#define VAR_POKELOT_PRIZE 0x4045 -#define VAR_NATIONAL_DEX 0x4046 -#define VAR_SEEDOT_SIZE_RECORD 0x4047 -#define VAR_ASH_GATHER_COUNT 0x4048 -#define VAR_BIRCH_STATE 0x4049 -#define VAR_CRUISE_STEP_COUNT 0x404A -#define VAR_POKELOT_RND1 0x404B -#define VAR_POKELOT_RND2 0x404C -#define VAR_0x404D 0x404D -#define VAR_0x404E 0x404E -#define VAR_LOTAD_SIZE_RECORD 0x404F -#define VAR_MAP_SCENE_PALLET_TOWN 0x4050 -#define VAR_0x4051 0x4051 -#define VAR_0x4052 0x4052 -#define VAR_VERMILION_CITY_TICKET_CHECK_TRIGGER 0x4053 -#define VAR_0x4054 0x4054 -#define VAR_MAP_SCENE_PALLET_TOWN_PROFESSOR_OAKS_LAB 0x4055 -#define VAR_MAP_SCENE_PALLET_TOWN_PLAYERS_HOUSE_2F 0x4056 -#define VAR_MAP_SCENE_VIRIDIAN_CITY_MART 0x4057 -#define VAR_0x4058 0x4058 -#define VAR_0x4059 0x4059 -#define VAR_0x405A 0x405A -#define VAR_0x405B 0x405B -#define VAR_0x405C 0x405C -#define VAR_0x405D 0x405D -#define VAR_MAP_SCENE_ROUTE16 0x405E -#define VAR_0x405F 0x405F -#define VAR_0x4060 0x4060 -#define VAR_0x4061 0x4061 -#define VAR_0x4062 0x4062 -#define VAR_MAP_SCENE_SEAFOAM_ISLANDS_B4F 0x4063 -#define VAR_0x4064 0x4064 -#define VAR_0x4065 0x4065 -#define VAR_0x4066 0x4066 -#define VAR_0x4067 0x4067 -#define VAR_0x4068 0x4068 -#define VAR_0x4069 0x4069 -#define VAR_0x406A 0x406A -#define VAR_0x406B 0x406B -#define VAR_0x406C 0x406C -#define VAR_0x406D 0x406D -#define VAR_MAP_SCENE_FUCHSIA_CITY_SAFARI_ZONE_ENTRANCE 0x406E -#define VAR_0x406F 0x406F -#define VAR_0x4070 0x4070 -#define VAR_0x4071 0x4071 -#define VAR_0x4072 0x4072 -#define VAR_MAP_SCENE_SAFFRON_CITY_POKEMON_TRAINER_FAN_CLUB 0x4073 -#define VAR_MAP_SCENE_SEVEN_ISLAND_HOUSE_ROOM1 0x4074 -#define VAR_MAP_SCENE_ONE_ISLAND_HARBOR 0x4075 -#define VAR_MAP_SCENE_ONE_ISLAND_POKEMON_CENTER_1F 0x4076 -#define VAR_0x4077 0x4077 -#define VAR_0x4078 0x4078 -#define VAR_MAP_SCENE_TWO_ISLAND_JOYFUL_GAME_CORNER 0x4079 -#define VAR_0x407A 0x407A -#define VAR_0x407B 0x407B -#define VAR_0x407C 0x407C -#define VAR_0x407D 0x407D -#define VAR_MAP_SCENE_VERMILION_CITY 0x407E -#define VAR_0x407F 0x407F -#define VAR_0x4080 0x4080 -#define VAR_0x4081 0x4081 -#define VAR_0x4082 0x4082 -#define VAR_MAP_SCENE_FIVE_ISLAND_LOST_CAVE_ROOM10 0x4083 -#define VAR_MAP_SCENE_FIVE_ISLAND_RESORT_GORGEOUS 0x4084 -#define VAR_MAP_SCENE_INDIGO_PLATEAU_EXTERIOR 0x4085 -#define VAR_MAP_SCENE_FOUR_ISLAND 0x4086 -#define VAR_0x4087 0x4087 -#define VAR_0x4088 0x4088 -#define VAR_MAP_SCENE_SIX_ISLAND_POKEMON_CENTER_1F 0x4089 -#define VAR_MAP_SCENE_CINNABAR_ISLAND 0x408A -#define VAR_0x408B 0x408B #define VAR_0x408C 0x408C #define VAR_0x408D 0x408D #define VAR_0x408E 0x408E @@ -187,7 +227,7 @@ #define VAR_0x40B2 0x40B2 #define VAR_0x40B3 0x40B3 #define VAR_PORTHOLE 0x40B4 -#define VAR_0x40B5 0x40B5 +#define VAR_EVENT_PICHU_SLOT 0x40B5 #define VAR_0x40B6 0x40B6 #define VAR_0x40B7 0x40B7 #define VAR_0x40B8 0x40B8 @@ -263,6 +303,7 @@ #define VAR_0x40FE 0x40FE #define VAR_0x40FF 0x40FF +#define SPECIAL_VARS_START 0x8000 #define VAR_0x8000 0x8000 #define VAR_0x8001 0x8001 #define VAR_0x8002 0x8002 @@ -283,6 +324,6 @@ #define VAR_CONTEST_CATEGORY 0x8011 #define VAR_MON_BOX_ID 0x8012 #define VAR_MON_BOX_POS 0x8013 -#define VAR_0x8014 0x8014 +#define VAR_TEXT_COLOR 0x8014 #endif // GUARD_CONSTANTS_VARS_H diff --git a/include/data.h b/include/data.h index d3bc77799..9ea1f7c96 100644 --- a/include/data.h +++ b/include/data.h @@ -4,6 +4,9 @@ #include "global.h" #include "constants/species.h" +#define SPECIES_SHINY_TAG 500 +#define TRAINER_ENCOUNTER_MUSIC(trainer)((gTrainers[trainer].encounterMusic_gender & 0x7F)) + struct MonCoords { // This would use a bitfield, but some function @@ -12,27 +15,26 @@ struct MonCoords u8 y_offset; }; -extern struct MonCoords gTrainerBackPicCoords[]; -extern struct MonCoords gTrainerFrontPicCoords[]; - extern const u8 gSpeciesNames[][POKEMON_NAME_LENGTH + 1]; extern const u8 gMoveNames[][13]; -extern const u8 gAbilityNames[][13]; -extern const u8 gTypeNames[][7]; extern const u16 gUnknown_8251CB8[]; extern const u16 gUnknown_8251FEE[]; extern const u16 gUnknown_8252324[]; extern const u16 gUnknown_82539D4[]; +extern const struct MonCoords gMonFrontPicCoords[]; extern const struct CompressedSpriteSheet gMonFrontPicTable[]; +extern const struct MonCoords gMonBackPicCoords[]; extern const struct CompressedSpriteSheet gMonBackPicTable[]; extern const struct CompressedSpritePalette gMonPaletteTable[]; extern const struct CompressedSpritePalette gMonShinyPaletteTable[]; +extern const union AnimCmd *const *const gTrainerFrontAnimsPtrTable[]; +extern const struct MonCoords gTrainerFrontPicCoords[]; extern const struct CompressedSpriteSheet gTrainerFrontPicTable[]; extern const struct CompressedSpritePalette gTrainerFrontPicPaletteTable[]; +extern const union AnimCmd *const *const gTrainerBackAnimsPtrTable[]; +extern const struct MonCoords gTrainerBackPicCoords[]; extern const struct CompressedSpritePalette gTrainerBackPicPaletteTable[]; -extern const struct MonCoords gMonFrontPicCoords[]; -extern const struct MonCoords gMonBackPicCoords[]; extern const struct CompressedSpriteSheet gSpriteSheet_EnemyShadow; extern const struct SpriteTemplate gSpriteTemplate_EnemyShadow; @@ -42,23 +44,20 @@ extern const u8 gEnemyMonElevation[NUM_SPECIES]; extern const u8 *const gBattleAnims_General[]; extern const u8 *const gBattleAnims_Special[]; -extern const union AnimCmd *const *const gTrainerBackAnimsPtrTable[]; -extern const union AnimCmd *const *const gTrainerFrontAnimsPtrTable[]; - extern const struct OamData gUnknown_824F010; extern const struct OamData gUnknown_824F018; -extern const union AnimCmd *const gUnknown_82349BC[]; -extern const union AffineAnimCmd *const gUnknown_82348C8[]; -extern const union AffineAnimCmd *const gUnknown_8234944[]; +extern const union AnimCmd *const gSpriteAnimTable_82349BC[]; +extern const union AffineAnimCmd *const gSpriteAffineAnimTable_82348C8[]; +extern const union AffineAnimCmd *const gSpriteAffineAnimTable_8234944[]; extern const struct SpriteFrameImage gUnknown_8234698[]; extern const struct SpriteFrameImage gUnknown_82346B8[]; extern const struct SpriteFrameImage gUnknown_82346D8[]; extern const struct SpriteFrameImage gUnknown_82346F8[]; -extern const struct SpriteFrameImage gUnknown_8234718[]; -extern const struct SpriteFrameImage gUnknown_8234740[]; -extern const struct SpriteFrameImage gUnknown_8234768[]; -extern const struct SpriteFrameImage gUnknown_8234788[]; -extern const struct SpriteFrameImage gUnknown_82347A8[]; -extern const struct SpriteFrameImage gUnknown_82347C8[]; +extern const struct SpriteFrameImage gTrainerBackPicTable_Red[]; +extern const struct SpriteFrameImage gTrainerBackPicTable_Leaf[]; +extern const struct SpriteFrameImage gTrainerBackPicTable_PokeDude[]; +extern const struct SpriteFrameImage gTrainerBackPicTable_OldMan[]; +extern const struct SpriteFrameImage gTrainerBackPicTable_RSBrendan[]; +extern const struct SpriteFrameImage gTrainerBackPicTable_RSMay[]; #endif // GUARD_DATA_H diff --git a/include/event_data.h b/include/event_data.h index 7c62ac92b..719ba37b2 100644 --- a/include/event_data.h +++ b/include/event_data.h @@ -6,6 +6,26 @@ #include "constants/flags.h" #include "constants/vars.h" +extern u16 gSpecialVar_0x8000; +extern u16 gSpecialVar_0x8001; +extern u16 gSpecialVar_0x8002; +extern u16 gSpecialVar_0x8003; +extern u16 gSpecialVar_0x8004; +extern u16 gSpecialVar_0x8005; +extern u16 gSpecialVar_0x8006; +extern u16 gSpecialVar_0x8007; +extern u16 gSpecialVar_0x8008; +extern u16 gSpecialVar_0x8009; +extern u16 gSpecialVar_0x800A; +extern u16 gSpecialVar_0x800B; +extern u16 gSpecialVar_Facing; +extern u16 gSpecialVar_Result; +extern u16 gSpecialVar_LastTalked; +extern u16 gSpecialVar_MonBoxId; +extern u16 gSpecialVar_MonBoxPos; +extern u16 gSpecialVar_TextColor; +extern u16 gSpecialVar_PrevTextColor; + void InitEventData(void); void ClearTempFieldEventData(void); void ClearUpperFlags(void); @@ -32,35 +52,11 @@ u8 FlagSet(u16 id); u8 FlagClear(u16 id); bool8 FlagGet(u16 id); u16 * GetVarPointer(u16 id); -bool32 Flag_0x839_IsSet(void); -void sub_806E6FC(void); +bool32 IsMysteryGiftEnabled(void); +void ResetSpecialVars(void); void sub_806E2D0(void); void sub_806E370(void); bool32 IsNationalPokedexEnabled(void); void sub_806E190(void); -extern u16 gSpecialVar_0x8000; -extern u16 gSpecialVar_0x8001; -extern u16 gSpecialVar_0x8002; -extern u16 gSpecialVar_0x8003; -extern u16 gSpecialVar_0x8004; -extern u16 gSpecialVar_0x8005; -extern u16 gSpecialVar_0x8006; -extern u16 gSpecialVar_0x8007; -extern u16 gSpecialVar_0x8008; -extern u16 gSpecialVar_0x8009; -extern u16 gSpecialVar_0x800A; -extern u16 gSpecialVar_0x800B; -extern u16 gSpecialVar_Result; -extern u16 gSpecialVar_LastTalked; -extern u16 gSpecialVar_Facing; -extern u16 gSpecialVar_MonBoxId; -extern u16 gSpecialVar_MonBoxPos; -extern u16 gSpecialVar_0x8014; - -extern u16 gSpecialVar_Result; -extern u16 gSpecialVar_0x8004; - -extern u16 gUnknown_20370DA; -extern u16 gUnknown_20370DC; #endif // GUARD_EVENT_DATA_H diff --git a/include/event_scripts.h b/include/event_scripts.h index 99b453c85..c0f0300b1 100644 --- a/include/event_scripts.h +++ b/include/event_scripts.h @@ -1155,6 +1155,15 @@ extern const u8 EventScript_SafariOutOfBalls[]; extern const u8 EventScript_ItemfinderDigUpUnderfootItem[]; +// battle_setup +extern const u8 EventScript_DoTrainerBattle[]; +extern const u8 EventScript_TryDoDoubleTrainerBattle[]; +extern const u8 EventScript_TryDoNormalTrainerBattle[]; +extern const u8 EventScript_TryDoDoubleRematchBattle[]; +extern const u8 EventScript_TryDoRematchBattle[]; +extern const u8 gUnknown_81A4EB4[]; +extern const u8 EventScript_1C555B[]; + // new_game extern const u8 EventScript_ResetAllMapFlags[]; @@ -1168,4 +1177,13 @@ extern const u8 gText_SavingDontTurnOffThePower[]; extern const u8 gText_PlayerSavedTheGame[]; extern const u8 gText_DifferentGameFile[]; +// script_menu +extern const u8 EventScript_1A7AE0[]; +extern const u8 Text_1BC388[]; +extern const u8 Text_1BC3C7[]; +extern const u8 Text_1BCB42[]; +extern const u8 Text_1BCA95[]; +extern const u8 Text_1BCACB[]; +extern const u8 Text_1BCAF2[]; + #endif //GUARD_EVENT_SCRIPTS_H diff --git a/include/evolution_scene.h b/include/evolution_scene.h index 1d87ceb76..6ceed99c1 100644 --- a/include/evolution_scene.h +++ b/include/evolution_scene.h @@ -3,8 +3,8 @@ #include "global.h" -void BeginEvolutionScene(struct Pokemon* mon, u16 speciesToEvolve, bool8 canStopEvo, u8 partyID); -void EvolutionScene(struct Pokemon* mon, u16 speciesToEvolve, bool8 canStopEvo, u8 partyID); +void BeginEvolutionScene(struct Pokemon* mon, u16 speciesToEvolve, u8, u8 partyID); +void EvolutionScene(struct Pokemon* mon, u16 speciesToEvolve, u8, u8 partyID); void TradeEvolutionScene(struct Pokemon* mon, u16 speciesToEvolve, u8 preEvoSpriteID, u8 partyID); extern void (*gCB2_AfterEvolution)(void); diff --git a/include/fame_checker.h b/include/fame_checker.h index 257431d8b..782a8df18 100644 --- a/include/fame_checker.h +++ b/include/fame_checker.h @@ -2,32 +2,7 @@ #define GUARD_FAME_CHECKER_H #include "main.h" - -enum { - FAMECHECKER_OAK, - FAMECHECKER_DAISY, - FAMECHECKER_BROCK, - FAMECHECKER_MISTY, - FAMECHECKER_LTSURGE, - FAMECHECKER_ERIKA, - FAMECHECKER_KOGA, - FAMECHECKER_SABRINA, - FAMECHECKER_BLAINE, - FAMECHECKER_LORELEI, - FAMECHECKER_BRUNO, - FAMECHECKER_AGATHA, - FAMECHECKER_LANCE, - FAMECHECKER_BILL, - FAMECHECKER_MRFUJI, - FAMECHECKER_GIOVANNI, - NUM_FAMECHECKER_PERSONS -}; - -enum { - FCPICKSTATE_NO_DRAW, - FCPICKSTATE_SILHOUETTE, - FCPICKSTATE_COLORED -}; +#include "constants/fame_checker.h" enum { FCWINDOWID_LIST, diff --git a/include/field_camera.h b/include/field_camera.h index d67523c8f..d2165780a 100644 --- a/include/field_camera.h +++ b/include/field_camera.h @@ -27,5 +27,8 @@ extern u16 gUnknown_03005DE8; void DrawWholeMapView(void); void CurrentMapDrawMetatileAt(int x, int y); void sub_805A658(s16 *x, s16 *y); +void SetCameraPanningCallback(void (*cb)(void)); +void SetCameraPanning(s16 x, s16 y); +void InstallCameraPanAheadCallback(void); #endif //GUARD_FIELD_CAMERA_H diff --git a/include/field_control_avatar.h b/include/field_control_avatar.h index 0a33138b3..ecb622de5 100644 --- a/include/field_control_avatar.h +++ b/include/field_control_avatar.h @@ -5,4 +5,7 @@ extern u32 gUnknown_3005078; +void RestartWildEncounterImmunitySteps(void); +void ClearPoisonStepCounter(void); + #endif //GUARD_FIELD_CONTROL_AVATAR_H diff --git a/include/field_effect.h b/include/field_effect.h index 8c89f8c9c..4afc5cace 100644 --- a/include/field_effect.h +++ b/include/field_effect.h @@ -2,76 +2,7 @@ #define GUARD_FIELD_EFFECTS_H #include "global.h" - -enum FieldEffectScriptIdx -{ - FLDEFF_EXCLAMATION_MARK_ICON_1, - FLDEFF_USE_CUT_ON_GRASS, - FLDEFF_USE_CUT_ON_TREE, - FLDEFF_SHADOW, - FLDEFF_TALL_GRASS, - FLDEFF_RIPPLE, - FLDEFF_FIELD_MOVE_SHOW_MON, - FLDEFF_ASH, - FLDEFF_SURF_BLOB, - FLDEFF_USE_SURF, - FLDEFF_DUST, - FLDEFF_USE_SECRET_POWER_CAVE, - FLDEFF_JUMP_TALL_GRASS, - FLDEFF_SAND_FOOTPRINTS, - FLDEFF_JUMP_BIG_SPLASH, - FLDEFF_SPLASH, - FLDEFF_JUMP_SMALL_SPLASH, - FLDEFF_LONG_GRASS, - FLDEFF_JUMP_LONG_GRASS, - FLDEFF_UNKNOWN_19, - FLDEFF_UNKNOWN_20, - FLDEFF_UNKNOWN_21, - FLDEFF_UNKNOWN_22, - FLDEFF_BERRY_TREE_GROWTH_SPARKLE, - FLDEFF_DEEP_SAND_FOOTPRINTS, - FLDEFF_POKECENTER_HEAL, - FLDEFF_USE_SECRET_POWER_TREE, - FLDEFF_USE_SECRET_POWER_SHRUB, - FLDEFF_TREE_DISGUISE, - FLDEFF_MOUNTAIN_DISGUISE, - FLDEFF_NPCFLY_OUT, - FLDEFF_USE_FLY, - FLDEFF_FLY_IN, - FLDEFF_EXCLAMATION_MARK_ICON_2, - FLDEFF_FEET_IN_FLOWING_WATER, - FLDEFF_BIKE_TIRE_TRACKS, - FLDEFF_SAND_DISGUISE, - FLDEFF_USE_ROCK_SMASH, - FLDEFF_USE_DIG, - FLDEFF_SAND_PILE, - FLDEFF_USE_STRENGTH, - FLDEFF_SHORT_GRASS, - FLDEFF_HOT_SPRINGS_WATER, - FLDEFF_USE_WATERFALL, - FLDEFF_USE_DIVE, - FLDEFF_POKEBALL, - FLDEFF_HEART_ICON, - FLDEFF_NOP_47, - FLDEFF_NOP_48, - FLDEFF_POP_OUT_OF_ASH, - FLDEFF_LAVARIDGE_GYM_WARP, - FLDEFF_SWEET_SCENT, - FLDEFF_SAND_PILLAR, - FLDEFF_BUBBLES, - FLDEFF_SPARKLE, - FLDEFF_SECRET_POWER_CAVE, - FLDEFF_SECRET_POWER_TREE, - FLDEFF_SECRET_POWER_SHRUB, - FLDEFF_CUT_GRASS, - FLDEFF_FIELD_MOVE_SHOW_MON_INIT, - FLDEFF_USE_FLY_ANCIENT_TOMB, - FLDEFF_PCTURN_ON, - FLDEFF_HALL_OF_FAME_RECORD, - FLDEFF_USE_TELEPORT, - FLDEFF_UNK_40, - FLDEFF_UNK_41 // TODO: related to vs_seeker -}; +#include "constants/field_effects.h" extern u32 gFieldEffectArguments[8]; extern void (*gPostMenuFieldCallback)(void); @@ -89,5 +20,8 @@ void sub_8084454(void); void sub_8084784(u8 a0, u8 a1); void sub_8084F2C(u8 a0); void sub_80853CC(u8 a0); +void sub_8083598(u8 a0); +void sub_8083A5C(struct Sprite * sprite, u8 spriteId); +u8 sub_8083970(u16 species, s16 x, s16 y, bool8 unused); #endif //GUARD_FIELD_EFFECTS_H diff --git a/include/field_map_obj.h b/include/field_map_obj.h index baed87ac6..6177cba1c 100644 --- a/include/field_map_obj.h +++ b/include/field_map_obj.h @@ -85,7 +85,7 @@ void sub_8063E28(struct MapObject *, struct Sprite *); void FieldObjectSetHeldMovement(struct MapObject *, u8); void npc_coords_shift_still(struct MapObject *); void sub_805FE7C(struct MapObject *, u8); -void npc_set_running_behaviour_etc(struct MapObject *, u8); +void SetTrainerMovementType(struct MapObject *, u8); u8 sub_80634F0(u8 direction); u8 sub_8063500(u8 a0); void EventObjectSetGraphicsId(struct MapObject *mapObject, u8 a1); @@ -94,6 +94,8 @@ void npc_paltag_set_load(u8 mode); bool8 FieldObjectIsMovementOverridden(struct MapObject *mapObject); u8 FieldObjectCheckHeldMovementStatus(struct MapObject *mapObject); u8 sub_8063F84(u8 direction); +u8 GetTrainerFacingDirectionMovementType(u8 direction); +void CameraObjectSetFollowedObjectId(u8 spriteId); // Exported data declarations diff --git a/include/field_player_avatar.h b/include/field_player_avatar.h index 2c408afc9..1d431771b 100644 --- a/include/field_player_avatar.h +++ b/include/field_player_avatar.h @@ -13,8 +13,8 @@ u8 player_get_direction_upper_nybble(void); u8 player_get_x22(void); void sub_808D074(u8); -void sub_805C270(); -void sub_805C780(); +void sub_805C270(void); +void sub_805C780(void); void GetXYCoordsOneStepInFrontOfPlayer(s16 *xPtr, s16 *yPtr); u8 sub_805C808(u8); void SetPlayerAvatarStateMask(u8 mask); diff --git a/include/field_specials.h b/include/field_specials.h index 2abe168e0..c435bdaee 100644 --- a/include/field_specials.h +++ b/include/field_specials.h @@ -12,17 +12,18 @@ enum HiddenItemAttr }; u8 GetLeadMonIndex(void); -u8 CountDigits(u16 number); +s32 CountDigits(s32 number); void TV_PrintIntToStringVar(u8, int); u16 ScrSpecial_GetStarter(void); -void sub_80CCB68(void); +void StopPokemonLeagueLightingEffectTask(void); void nullsub_60(void); void nullsub_61(void); u8 ContextNpcGetTextColor(void); void set_unknown_box_id(u8); u16 get_unknown_box_id(void); bool8 sub_80CC7B4(void); -u16 GetHiddenItemAttr(struct HiddenItemStruct hiddenItem, u8 attr); +u16 GetHiddenItemAttr(u32 hiddenItem, u8 attr); u8 GetUnlockedSeviiAreas(void); +u32 GetPlayerTrainerId(void); #endif // GUARD_FIELD_SPECIALS_H diff --git a/include/fieldmap.h b/include/fieldmap.h index dde05b7ed..c3709c616 100644 --- a/include/fieldmap.h +++ b/include/fieldmap.h @@ -25,6 +25,7 @@ bool32 CanCameraMoveInDirection(s32); u32 GetBehaviorByMetatileIdAndMapData(struct MapData *mapData, u16 metatile, u8 attr); const struct MapHeader * mapconnection_get_mapheader(struct MapConnection * connection); struct MapConnection * GetMapConnectionAtPos(s16 x, s16 y); +void sub_8059948(u8 a0, u8 a1); void save_serialize_map(void); diff --git a/include/global.fieldmap.h b/include/global.fieldmap.h index bf142d265..c0f25fa93 100644 --- a/include/global.fieldmap.h +++ b/include/global.fieldmap.h @@ -13,35 +13,6 @@ enum CONNECTION_EMERGE }; -// map types -enum -{ - MAP_TYPE_0, - MAP_TYPE_TOWN, - MAP_TYPE_CITY, - MAP_TYPE_ROUTE, - MAP_TYPE_UNDERGROUND, - MAP_TYPE_UNDERWATER, - MAP_TYPE_6, - MAP_TYPE_7, - MAP_TYPE_INDOOR, - MAP_TYPE_SECRET_BASE -}; - -// map battle scenes -enum -{ - MAP_BATTLE_SCENE_NORMAL, // 0 - MAP_BATTLE_SCENE_GYM, // 1 - MAP_BATTLE_SCENE_MAGMA, // 2 - MAP_BATTLE_SCENE_AQUA, // 3 - MAP_BATTLE_SCENE_SIDNEY, // 4 - MAP_BATTLE_SCENE_PHOEBE, // 5 - MAP_BATTLE_SCENE_GLACIA, // 6 - MAP_BATTLE_SCENE_DRAKE, // 7 - MAP_BATTLE_SCENE_BATTLE_TOWER, // 8 -}; - typedef void (*TilesetCB)(void); struct Tileset @@ -134,7 +105,8 @@ union BgUnion u8 *script; // hidden item type probably - struct HiddenItemStruct hiddenItem; + struct HiddenItemStruct hiddenItemStr; + u32 hiddenItem; // secret base type u32 secretBaseId; @@ -241,7 +213,7 @@ struct MapObject /*0x0C*/ struct Coords16 coords1; /*0x10*/ struct Coords16 coords2; /*0x14*/ struct Coords16 coords3; - /*0x18*/ u8 mapobj_unk_18:4; //current direction? + /*0x18*/ u8 facingDirection:4; //current direction? /*0x18*/ u8 placeholder18:4; /*0x19*/ union MapObjectRange range; /*0x1A*/ u8 mapobj_unk_1A; diff --git a/include/global.h b/include/global.h index 5ddf9a0a8..9588deae3 100644 --- a/include/global.h +++ b/include/global.h @@ -32,6 +32,13 @@ // GF's lingo #define NELEMS ARRAY_COUNT +#define SWAP(a, b, temp) \ +{ \ + temp = a; \ + a = b; \ + b = temp; \ +} + // useful math macros // Converts a number to Q8.8 fixed-point format @@ -127,7 +134,7 @@ struct Pokedex /*0x00*/ u8 order; /*0x01*/ u8 unknown1; /*0x02*/ u8 nationalMagic; // must equal 0xDA in order to have National mode - /*0x03*/ u8 unknown2; + /*0x03*/ u8 unknown2; // set to 0xB9 when national dex is first enabled /*0x04*/ u32 unownPersonality; // set when you first see Unown /*0x08*/ u32 spindaPersonality; // set when you first see Spinda /*0x0C*/ u32 unknown3; @@ -194,6 +201,11 @@ struct LinkBattleRecords u8 languages[LINK_B_RECORDS_COUNT]; }; +#include "constants/game_stat.h" +#include "global.fieldmap.h" +#include "global.berry.h" +#include "pokemon.h" + struct UnknownSaveBlock2Struct { u8 field_0; @@ -214,6 +226,20 @@ struct UnknownSaveBlock2Struct u8 field_EB; }; // sizeof = 0xEC +struct BattleTowerEReaderTrainer +{ + /*0x4A0 0x3F0 0x00*/ u8 unk0; + /*0x4A1 0x3F1 0x01*/ u8 facilityClass; + /*0x4A2 0x3F2 0x02*/ u16 winStreak; + /*0x4A4 0x3F4 0x04*/ u8 name[8]; + /*0x4AC 0x3FC 0x0C*/ u8 trainerId[4]; + /*0x4B0 0x400 0x10*/ u16 greeting[6]; + /*0x4BC 0x40C 0x1C*/ u16 farewellPlayerLost[6]; + /*0x4C8 0x418 0x28*/ u16 farewellPlayerWon[6]; + /*0x4D4 0x424 0x34*/ struct BattleTowerPokemon party[3]; + /*0x558 0x4A8 0xB8*/ u32 checksum; +}; + struct UnkSaveBlock2Substruct_55C { /* 0x000:0x55C */ u8 unk_00_0:1; @@ -232,7 +258,7 @@ struct UnkSaveBlock2Substruct_55C struct UnkSaveBlock2Substruct_B0 { /* 0x000:0x0B0 */ u8 field_0[0x3F0]; - /* 0x3F0:0x4A0 */ u32 field_3F0[0x2F]; + /* 0x3F0:0x4A0 */ struct BattleTowerEReaderTrainer field_3F0; /* 0x4AC:0x55C */ struct UnkSaveBlock2Substruct_55C field_4AC; /* 0x4C4:0x574 */ u8 field_4C4[0x324]; }; // size: 0x7E8 @@ -261,7 +287,6 @@ struct SaveBlock2 /*0x0A8*/ u32 field_A8; /*0x0AC*/ u8 field_AC; /*0x0AD*/ u8 field_AD; - /*0x0AE*/ u8 filler_AE[0x2]; /*0x0B0*/ struct UnkSaveBlock2Substruct_B0 unk_B0; /*0x898*/ u16 mapView[0x100]; /*0xA98*/ struct LinkBattleRecords linkBattleRecords; @@ -304,11 +329,6 @@ struct SecretBaseRecord /*0x1AD0*/ struct SecretBaseParty party; }; -#include "constants/game_stat.h" -#include "global.fieldmap.h" -#include "global.berry.h" -#include "pokemon.h" - struct WarpData { s8 mapGroup; @@ -493,12 +513,12 @@ struct RecordMixingDayCareMail bool16 holdsItem[DAYCARE_MON_COUNT]; }; -struct MysteryEventStruct +struct MENewsJisanStruct { u8 unk_0_0:2; u8 unk_0_2:3; u8 unk_0_5:3; - u8 unk_1; + u8 berry; }; struct QuestLogNPCData @@ -674,7 +694,7 @@ struct MEventBuffers /*0x1c0 0x32e0*/ struct MEventBuffer_32E0 buffer_1c0; /*0x310 0x3430*/ struct MEventBuffer_3430 buffer_310; /*0x338 0x3458*/ u16 unk_338[4]; - /*0x340 0x3460*/ struct MysteryEventStruct unk_340; + /*0x340 0x3460*/ struct MENewsJisanStruct unk_340; /*0x344 0x3464*/ u32 unk_344[2][5]; }; // 0x36C 0x348C diff --git a/include/graphics.h b/include/graphics.h index 1c0612fd1..638351be4 100644 --- a/include/graphics.h +++ b/include/graphics.h @@ -32,6 +32,2723 @@ extern const u8 gInterfacePal_LuxuryBall[]; extern const u8 gInterfaceGfx_PremierBall[]; extern const u8 gInterfacePal_PremierBall[]; extern const u8 gOpenPokeballGfx[]; + +// pokemon gfx +extern const u32 gMonFrontPic_Bulbasaur[]; +extern const u32 gMonPalette_Bulbasaur[]; +extern const u32 gMonBackPic_Bulbasaur[]; +extern const u32 gMonShinyPalette_Bulbasaur[]; +extern const u8 gMonIcon_Bulbasaur[]; +extern const u8 gMonFootprint_Bulbasaur[]; +extern const u32 gMonFrontPic_Ivysaur[]; +extern const u32 gMonPalette_Ivysaur[]; +extern const u32 gMonBackPic_Ivysaur[]; +extern const u32 gMonShinyPalette_Ivysaur[]; +extern const u8 gMonIcon_Ivysaur[]; +extern const u8 gMonFootprint_Ivysaur[]; +extern const u32 gMonFrontPic_Venusaur[]; +extern const u32 gMonPalette_Venusaur[]; +extern const u32 gMonBackPic_Venusaur[]; +extern const u32 gMonShinyPalette_Venusaur[]; +extern const u8 gMonIcon_Venusaur[]; +extern const u8 gMonFootprint_Venusaur[]; +extern const u32 gMonFrontPic_Charmander[]; +extern const u32 gMonPalette_Charmander[]; +extern const u32 gMonBackPic_Charmander[]; +extern const u32 gMonShinyPalette_Charmander[]; +extern const u8 gMonIcon_Charmander[]; +extern const u8 gMonFootprint_Charmander[]; +extern const u32 gMonFrontPic_Charmeleon[]; +extern const u32 gMonPalette_Charmeleon[]; +extern const u32 gMonBackPic_Charmeleon[]; +extern const u32 gMonShinyPalette_Charmeleon[]; +extern const u8 gMonIcon_Charmeleon[]; +extern const u8 gMonFootprint_Charmeleon[]; +extern const u32 gMonFrontPic_Charizard[]; +extern const u32 gMonPalette_Charizard[]; +extern const u32 gMonBackPic_Charizard[]; +extern const u32 gMonShinyPalette_Charizard[]; +extern const u8 gMonIcon_Charizard[]; +extern const u8 gMonFootprint_Charizard[]; +extern const u32 gMonFrontPic_Squirtle[]; +extern const u32 gMonPalette_Squirtle[]; +extern const u32 gMonBackPic_Squirtle[]; +extern const u32 gMonShinyPalette_Squirtle[]; +extern const u8 gMonIcon_Squirtle[]; +extern const u8 gMonFootprint_Squirtle[]; +extern const u32 gMonFrontPic_Wartortle[]; +extern const u32 gMonPalette_Wartortle[]; +extern const u32 gMonBackPic_Wartortle[]; +extern const u32 gMonShinyPalette_Wartortle[]; +extern const u8 gMonIcon_Wartortle[]; +extern const u8 gMonFootprint_Wartortle[]; +extern const u32 gMonFrontPic_Blastoise[]; +extern const u32 gMonPalette_Blastoise[]; +extern const u32 gMonBackPic_Blastoise[]; +extern const u32 gMonShinyPalette_Blastoise[]; +extern const u8 gMonIcon_Blastoise[]; +extern const u8 gMonFootprint_Blastoise[]; +extern const u32 gMonFrontPic_Caterpie[]; +extern const u32 gMonPalette_Caterpie[]; +extern const u32 gMonBackPic_Caterpie[]; +extern const u32 gMonShinyPalette_Caterpie[]; +extern const u8 gMonIcon_Caterpie[]; +extern const u8 gMonFootprint_Caterpie[]; +extern const u32 gMonFrontPic_Metapod[]; +extern const u32 gMonPalette_Metapod[]; +extern const u32 gMonBackPic_Metapod[]; +extern const u32 gMonShinyPalette_Metapod[]; +extern const u8 gMonIcon_Metapod[]; +extern const u8 gMonFootprint_Metapod[]; +extern const u32 gMonFrontPic_Butterfree[]; +extern const u32 gMonPalette_Butterfree[]; +extern const u32 gMonBackPic_Butterfree[]; +extern const u32 gMonShinyPalette_Butterfree[]; +extern const u8 gMonIcon_Butterfree[]; +extern const u8 gMonFootprint_Butterfree[]; +extern const u32 gMonFrontPic_Weedle[]; +extern const u32 gMonPalette_Weedle[]; +extern const u32 gMonBackPic_Weedle[]; +extern const u32 gMonShinyPalette_Weedle[]; +extern const u8 gMonIcon_Weedle[]; +extern const u8 gMonFootprint_Weedle[]; +extern const u32 gMonFrontPic_Kakuna[]; +extern const u32 gMonPalette_Kakuna[]; +extern const u32 gMonBackPic_Kakuna[]; +extern const u32 gMonShinyPalette_Kakuna[]; +extern const u8 gMonIcon_Kakuna[]; +extern const u8 gMonFootprint_Kakuna[]; +extern const u32 gMonFrontPic_Beedrill[]; +extern const u32 gMonPalette_Beedrill[]; +extern const u32 gMonBackPic_Beedrill[]; +extern const u32 gMonShinyPalette_Beedrill[]; +extern const u8 gMonIcon_Beedrill[]; +extern const u8 gMonFootprint_Beedrill[]; +extern const u32 gMonFrontPic_Pidgey[]; +extern const u32 gMonPalette_Pidgey[]; +extern const u32 gMonBackPic_Pidgey[]; +extern const u32 gMonShinyPalette_Pidgey[]; +extern const u8 gMonIcon_Pidgey[]; +extern const u8 gMonFootprint_Pidgey[]; +extern const u32 gMonFrontPic_Pidgeotto[]; +extern const u32 gMonPalette_Pidgeotto[]; +extern const u32 gMonBackPic_Pidgeotto[]; +extern const u32 gMonShinyPalette_Pidgeotto[]; +extern const u8 gMonIcon_Pidgeotto[]; +extern const u8 gMonFootprint_Pidgeotto[]; +extern const u32 gMonFrontPic_Pidgeot[]; +extern const u32 gMonPalette_Pidgeot[]; +extern const u32 gMonBackPic_Pidgeot[]; +extern const u32 gMonShinyPalette_Pidgeot[]; +extern const u8 gMonIcon_Pidgeot[]; +extern const u8 gMonFootprint_Pidgeot[]; +extern const u32 gMonFrontPic_Rattata[]; +extern const u32 gMonPalette_Rattata[]; +extern const u32 gMonBackPic_Rattata[]; +extern const u32 gMonShinyPalette_Rattata[]; +extern const u8 gMonIcon_Rattata[]; +extern const u8 gMonFootprint_Rattata[]; +extern const u32 gMonFrontPic_Raticate[]; +extern const u32 gMonPalette_Raticate[]; +extern const u32 gMonBackPic_Raticate[]; +extern const u32 gMonShinyPalette_Raticate[]; +extern const u8 gMonIcon_Raticate[]; +extern const u8 gMonFootprint_Raticate[]; +extern const u32 gMonFrontPic_Spearow[]; +extern const u32 gMonPalette_Spearow[]; +extern const u32 gMonBackPic_Spearow[]; +extern const u32 gMonShinyPalette_Spearow[]; +extern const u8 gMonIcon_Spearow[]; +extern const u8 gMonFootprint_Spearow[]; +extern const u32 gMonFrontPic_Fearow[]; +extern const u32 gMonPalette_Fearow[]; +extern const u32 gMonBackPic_Fearow[]; +extern const u32 gMonShinyPalette_Fearow[]; +extern const u8 gMonIcon_Fearow[]; +extern const u8 gMonFootprint_Fearow[]; +extern const u32 gMonFrontPic_Ekans[]; +extern const u32 gMonPalette_Ekans[]; +extern const u32 gMonBackPic_Ekans[]; +extern const u32 gMonShinyPalette_Ekans[]; +extern const u8 gMonIcon_Ekans[]; +extern const u8 gMonFootprint_Ekans[]; +extern const u32 gMonFrontPic_Arbok[]; +extern const u32 gMonPalette_Arbok[]; +extern const u32 gMonBackPic_Arbok[]; +extern const u32 gMonShinyPalette_Arbok[]; +extern const u8 gMonIcon_Arbok[]; +extern const u8 gMonFootprint_Arbok[]; +extern const u32 gMonFrontPic_Pikachu[]; +extern const u32 gMonPalette_Pikachu[]; +extern const u32 gMonBackPic_Pikachu[]; +extern const u32 gMonShinyPalette_Pikachu[]; +extern const u8 gMonIcon_Pikachu[]; +extern const u8 gMonFootprint_Pikachu[]; +extern const u32 gMonFrontPic_Raichu[]; +extern const u32 gMonPalette_Raichu[]; +extern const u32 gMonBackPic_Raichu[]; +extern const u32 gMonShinyPalette_Raichu[]; +extern const u8 gMonIcon_Raichu[]; +extern const u8 gMonFootprint_Raichu[]; +extern const u32 gMonFrontPic_Sandshrew[]; +extern const u32 gMonPalette_Sandshrew[]; +extern const u32 gMonBackPic_Sandshrew[]; +extern const u32 gMonShinyPalette_Sandshrew[]; +extern const u8 gMonIcon_Sandshrew[]; +extern const u8 gMonFootprint_Sandshrew[]; +extern const u32 gMonFrontPic_Sandslash[]; +extern const u32 gMonPalette_Sandslash[]; +extern const u32 gMonBackPic_Sandslash[]; +extern const u32 gMonShinyPalette_Sandslash[]; +extern const u8 gMonIcon_Sandslash[]; +extern const u8 gMonFootprint_Sandslash[]; +extern const u32 gMonFrontPic_NidoranF[]; +extern const u32 gMonPalette_NidoranF[]; +extern const u32 gMonBackPic_NidoranF[]; +extern const u32 gMonShinyPalette_NidoranF[]; +extern const u8 gMonIcon_NidoranF[]; +extern const u8 gMonFootprint_NidoranF[]; +extern const u32 gMonFrontPic_Nidorina[]; +extern const u32 gMonPalette_Nidorina[]; +extern const u32 gMonBackPic_Nidorina[]; +extern const u32 gMonShinyPalette_Nidorina[]; +extern const u8 gMonIcon_Nidorina[]; +extern const u8 gMonFootprint_Nidorina[]; +extern const u32 gMonFrontPic_Nidoqueen[]; +extern const u32 gMonPalette_Nidoqueen[]; +extern const u32 gMonBackPic_Nidoqueen[]; +extern const u32 gMonShinyPalette_Nidoqueen[]; +extern const u8 gMonIcon_Nidoqueen[]; +extern const u8 gMonFootprint_Nidoqueen[]; +extern const u32 gMonFrontPic_NidoranM[]; +extern const u32 gMonPalette_NidoranM[]; +extern const u32 gMonBackPic_NidoranM[]; +extern const u32 gMonShinyPalette_NidoranM[]; +extern const u8 gMonIcon_NidoranM[]; +extern const u8 gMonFootprint_NidoranM[]; +extern const u32 gMonFrontPic_Nidorino[]; +extern const u32 gMonPalette_Nidorino[]; +extern const u32 gMonBackPic_Nidorino[]; +extern const u32 gMonShinyPalette_Nidorino[]; +extern const u8 gMonIcon_Nidorino[]; +extern const u8 gMonFootprint_Nidorino[]; +extern const u32 gMonFrontPic_Nidoking[]; +extern const u32 gMonPalette_Nidoking[]; +extern const u32 gMonBackPic_Nidoking[]; +extern const u32 gMonShinyPalette_Nidoking[]; +extern const u8 gMonIcon_Nidoking[]; +extern const u8 gMonFootprint_Nidoking[]; +extern const u32 gMonFrontPic_Clefairy[]; +extern const u32 gMonPalette_Clefairy[]; +extern const u32 gMonBackPic_Clefairy[]; +extern const u32 gMonShinyPalette_Clefairy[]; +extern const u8 gMonIcon_Clefairy[]; +extern const u8 gMonFootprint_Clefairy[]; +extern const u32 gMonFrontPic_Clefable[]; +extern const u32 gMonPalette_Clefable[]; +extern const u32 gMonBackPic_Clefable[]; +extern const u32 gMonShinyPalette_Clefable[]; +extern const u8 gMonIcon_Clefable[]; +extern const u8 gMonFootprint_Clefable[]; +extern const u32 gMonFrontPic_Vulpix[]; +extern const u32 gMonPalette_Vulpix[]; +extern const u32 gMonBackPic_Vulpix[]; +extern const u32 gMonShinyPalette_Vulpix[]; +extern const u8 gMonIcon_Vulpix[]; +extern const u8 gMonFootprint_Vulpix[]; +extern const u32 gMonFrontPic_Ninetales[]; +extern const u32 gMonPalette_Ninetales[]; +extern const u32 gMonBackPic_Ninetales[]; +extern const u32 gMonShinyPalette_Ninetales[]; +extern const u8 gMonIcon_Ninetales[]; +extern const u8 gMonFootprint_Ninetales[]; +extern const u32 gMonFrontPic_Jigglypuff[]; +extern const u32 gMonPalette_Jigglypuff[]; +extern const u32 gMonBackPic_Jigglypuff[]; +extern const u32 gMonShinyPalette_Jigglypuff[]; +extern const u8 gMonIcon_Jigglypuff[]; +extern const u8 gMonFootprint_Jigglypuff[]; +extern const u32 gMonFrontPic_Wigglytuff[]; +extern const u32 gMonPalette_Wigglytuff[]; +extern const u32 gMonBackPic_Wigglytuff[]; +extern const u32 gMonShinyPalette_Wigglytuff[]; +extern const u8 gMonIcon_Wigglytuff[]; +extern const u8 gMonFootprint_Wigglytuff[]; +extern const u32 gMonFrontPic_Zubat[]; +extern const u32 gMonPalette_Zubat[]; +extern const u32 gMonBackPic_Zubat[]; +extern const u32 gMonShinyPalette_Zubat[]; +extern const u8 gMonIcon_Zubat[]; +extern const u8 gMonFootprint_Zubat[]; +extern const u32 gMonFrontPic_Golbat[]; +extern const u32 gMonPalette_Golbat[]; +extern const u32 gMonBackPic_Golbat[]; +extern const u32 gMonShinyPalette_Golbat[]; +extern const u8 gMonIcon_Golbat[]; +extern const u8 gMonFootprint_Golbat[]; +extern const u32 gMonFrontPic_Oddish[]; +extern const u32 gMonPalette_Oddish[]; +extern const u32 gMonBackPic_Oddish[]; +extern const u32 gMonShinyPalette_Oddish[]; +extern const u8 gMonIcon_Oddish[]; +extern const u8 gMonFootprint_Oddish[]; +extern const u32 gMonFrontPic_Gloom[]; +extern const u32 gMonPalette_Gloom[]; +extern const u32 gMonBackPic_Gloom[]; +extern const u32 gMonShinyPalette_Gloom[]; +extern const u8 gMonIcon_Gloom[]; +extern const u8 gMonFootprint_Gloom[]; +extern const u32 gMonFrontPic_Vileplume[]; +extern const u32 gMonPalette_Vileplume[]; +extern const u32 gMonBackPic_Vileplume[]; +extern const u32 gMonShinyPalette_Vileplume[]; +extern const u8 gMonIcon_Vileplume[]; +extern const u8 gMonFootprint_Vileplume[]; +extern const u32 gMonFrontPic_Paras[]; +extern const u32 gMonPalette_Paras[]; +extern const u32 gMonBackPic_Paras[]; +extern const u32 gMonShinyPalette_Paras[]; +extern const u8 gMonIcon_Paras[]; +extern const u8 gMonFootprint_Paras[]; +extern const u32 gMonFrontPic_Parasect[]; +extern const u32 gMonPalette_Parasect[]; +extern const u32 gMonBackPic_Parasect[]; +extern const u32 gMonShinyPalette_Parasect[]; +extern const u8 gMonIcon_Parasect[]; +extern const u8 gMonFootprint_Parasect[]; +extern const u32 gMonFrontPic_Venonat[]; +extern const u32 gMonPalette_Venonat[]; +extern const u32 gMonBackPic_Venonat[]; +extern const u32 gMonShinyPalette_Venonat[]; +extern const u8 gMonIcon_Venonat[]; +extern const u8 gMonFootprint_Venonat[]; +extern const u32 gMonFrontPic_Venomoth[]; +extern const u32 gMonPalette_Venomoth[]; +extern const u32 gMonBackPic_Venomoth[]; +extern const u32 gMonShinyPalette_Venomoth[]; +extern const u8 gMonIcon_Venomoth[]; +extern const u8 gMonFootprint_Venomoth[]; +extern const u32 gMonFrontPic_Diglett[]; +extern const u32 gMonPalette_Diglett[]; +extern const u32 gMonBackPic_Diglett[]; +extern const u32 gMonShinyPalette_Diglett[]; +extern const u8 gMonIcon_Diglett[]; +extern const u8 gMonFootprint_Diglett[]; +extern const u32 gMonFrontPic_Dugtrio[]; +extern const u32 gMonPalette_Dugtrio[]; +extern const u32 gMonBackPic_Dugtrio[]; +extern const u32 gMonShinyPalette_Dugtrio[]; +extern const u8 gMonIcon_Dugtrio[]; +extern const u8 gMonFootprint_Dugtrio[]; +extern const u32 gMonFrontPic_Meowth[]; +extern const u32 gMonPalette_Meowth[]; +extern const u32 gMonBackPic_Meowth[]; +extern const u32 gMonShinyPalette_Meowth[]; +extern const u8 gMonIcon_Meowth[]; +extern const u8 gMonFootprint_Meowth[]; +extern const u32 gMonFrontPic_Persian[]; +extern const u32 gMonPalette_Persian[]; +extern const u32 gMonBackPic_Persian[]; +extern const u32 gMonShinyPalette_Persian[]; +extern const u8 gMonIcon_Persian[]; +extern const u8 gMonFootprint_Persian[]; +extern const u32 gMonFrontPic_Psyduck[]; +extern const u32 gMonPalette_Psyduck[]; +extern const u32 gMonBackPic_Psyduck[]; +extern const u32 gMonShinyPalette_Psyduck[]; +extern const u8 gMonIcon_Psyduck[]; +extern const u8 gMonFootprint_Psyduck[]; +extern const u32 gMonFrontPic_Golduck[]; +extern const u32 gMonPalette_Golduck[]; +extern const u32 gMonBackPic_Golduck[]; +extern const u32 gMonShinyPalette_Golduck[]; +extern const u8 gMonIcon_Golduck[]; +extern const u8 gMonFootprint_Golduck[]; +extern const u32 gMonFrontPic_Mankey[]; +extern const u32 gMonPalette_Mankey[]; +extern const u32 gMonBackPic_Mankey[]; +extern const u32 gMonShinyPalette_Mankey[]; +extern const u8 gMonIcon_Mankey[]; +extern const u8 gMonFootprint_Mankey[]; +extern const u32 gMonFrontPic_Primeape[]; +extern const u32 gMonPalette_Primeape[]; +extern const u32 gMonBackPic_Primeape[]; +extern const u32 gMonShinyPalette_Primeape[]; +extern const u8 gMonIcon_Primeape[]; +extern const u8 gMonFootprint_Primeape[]; +extern const u32 gMonFrontPic_Growlithe[]; +extern const u32 gMonPalette_Growlithe[]; +extern const u32 gMonBackPic_Growlithe[]; +extern const u32 gMonShinyPalette_Growlithe[]; +extern const u8 gMonIcon_Growlithe[]; +extern const u8 gMonFootprint_Growlithe[]; +extern const u32 gMonFrontPic_Arcanine[]; +extern const u32 gMonPalette_Arcanine[]; +extern const u32 gMonBackPic_Arcanine[]; +extern const u32 gMonShinyPalette_Arcanine[]; +extern const u8 gMonIcon_Arcanine[]; +extern const u8 gMonFootprint_Arcanine[]; +extern const u32 gMonFrontPic_Poliwag[]; +extern const u32 gMonPalette_Poliwag[]; +extern const u32 gMonBackPic_Poliwag[]; +extern const u32 gMonShinyPalette_Poliwag[]; +extern const u8 gMonIcon_Poliwag[]; +extern const u8 gMonFootprint_Poliwag[]; +extern const u32 gMonFrontPic_Poliwhirl[]; +extern const u32 gMonPalette_Poliwhirl[]; +extern const u32 gMonBackPic_Poliwhirl[]; +extern const u32 gMonShinyPalette_Poliwhirl[]; +extern const u8 gMonIcon_Poliwhirl[]; +extern const u8 gMonFootprint_Poliwhirl[]; +extern const u32 gMonFrontPic_Poliwrath[]; +extern const u32 gMonPalette_Poliwrath[]; +extern const u32 gMonBackPic_Poliwrath[]; +extern const u32 gMonShinyPalette_Poliwrath[]; +extern const u8 gMonIcon_Poliwrath[]; +extern const u8 gMonFootprint_Poliwrath[]; +extern const u32 gMonFrontPic_Abra[]; +extern const u32 gMonPalette_Abra[]; +extern const u32 gMonBackPic_Abra[]; +extern const u32 gMonShinyPalette_Abra[]; +extern const u8 gMonIcon_Abra[]; +extern const u8 gMonFootprint_Abra[]; +extern const u32 gMonFrontPic_Kadabra[]; +extern const u32 gMonPalette_Kadabra[]; +extern const u32 gMonBackPic_Kadabra[]; +extern const u32 gMonShinyPalette_Kadabra[]; +extern const u8 gMonIcon_Kadabra[]; +extern const u8 gMonFootprint_Kadabra[]; +extern const u32 gMonFrontPic_Alakazam[]; +extern const u32 gMonPalette_Alakazam[]; +extern const u32 gMonBackPic_Alakazam[]; +extern const u32 gMonShinyPalette_Alakazam[]; +extern const u8 gMonIcon_Alakazam[]; +extern const u8 gMonFootprint_Alakazam[]; +extern const u32 gMonFrontPic_Machop[]; +extern const u32 gMonPalette_Machop[]; +extern const u32 gMonBackPic_Machop[]; +extern const u32 gMonShinyPalette_Machop[]; +extern const u8 gMonIcon_Machop[]; +extern const u8 gMonFootprint_Machop[]; +extern const u32 gMonFrontPic_Machoke[]; +extern const u32 gMonPalette_Machoke[]; +extern const u32 gMonBackPic_Machoke[]; +extern const u32 gMonShinyPalette_Machoke[]; +extern const u8 gMonIcon_Machoke[]; +extern const u8 gMonFootprint_Machoke[]; +extern const u32 gMonFrontPic_Machamp[]; +extern const u32 gMonPalette_Machamp[]; +extern const u32 gMonBackPic_Machamp[]; +extern const u32 gMonShinyPalette_Machamp[]; +extern const u8 gMonIcon_Machamp[]; +extern const u8 gMonFootprint_Machamp[]; +extern const u32 gMonFrontPic_Bellsprout[]; +extern const u32 gMonPalette_Bellsprout[]; +extern const u32 gMonBackPic_Bellsprout[]; +extern const u32 gMonShinyPalette_Bellsprout[]; +extern const u8 gMonIcon_Bellsprout[]; +extern const u8 gMonFootprint_Bellsprout[]; +extern const u32 gMonFrontPic_Weepinbell[]; +extern const u32 gMonPalette_Weepinbell[]; +extern const u32 gMonBackPic_Weepinbell[]; +extern const u32 gMonShinyPalette_Weepinbell[]; +extern const u8 gMonIcon_Weepinbell[]; +extern const u8 gMonFootprint_Weepinbell[]; +extern const u32 gMonFrontPic_Victreebel[]; +extern const u32 gMonPalette_Victreebel[]; +extern const u32 gMonBackPic_Victreebel[]; +extern const u32 gMonShinyPalette_Victreebel[]; +extern const u8 gMonIcon_Victreebel[]; +extern const u8 gMonFootprint_Victreebel[]; +extern const u32 gMonFrontPic_Tentacool[]; +extern const u32 gMonPalette_Tentacool[]; +extern const u32 gMonBackPic_Tentacool[]; +extern const u32 gMonShinyPalette_Tentacool[]; +extern const u8 gMonIcon_Tentacool[]; +extern const u8 gMonFootprint_Tentacool[]; +extern const u32 gMonFrontPic_Tentacruel[]; +extern const u32 gMonPalette_Tentacruel[]; +extern const u32 gMonBackPic_Tentacruel[]; +extern const u32 gMonShinyPalette_Tentacruel[]; +extern const u8 gMonIcon_Tentacruel[]; +extern const u8 gMonFootprint_Tentacruel[]; +extern const u32 gMonFrontPic_Geodude[]; +extern const u32 gMonPalette_Geodude[]; +extern const u32 gMonBackPic_Geodude[]; +extern const u32 gMonShinyPalette_Geodude[]; +extern const u8 gMonIcon_Geodude[]; +extern const u8 gMonFootprint_Geodude[]; +extern const u32 gMonFrontPic_Graveler[]; +extern const u32 gMonPalette_Graveler[]; +extern const u32 gMonBackPic_Graveler[]; +extern const u32 gMonShinyPalette_Graveler[]; +extern const u8 gMonIcon_Graveler[]; +extern const u8 gMonFootprint_Graveler[]; +extern const u32 gMonFrontPic_Golem[]; +extern const u32 gMonPalette_Golem[]; +extern const u32 gMonBackPic_Golem[]; +extern const u32 gMonShinyPalette_Golem[]; +extern const u8 gMonIcon_Golem[]; +extern const u8 gMonFootprint_Golem[]; +extern const u32 gMonFrontPic_Ponyta[]; +extern const u32 gMonPalette_Ponyta[]; +extern const u32 gMonBackPic_Ponyta[]; +extern const u32 gMonShinyPalette_Ponyta[]; +extern const u8 gMonIcon_Ponyta[]; +extern const u8 gMonFootprint_Ponyta[]; +extern const u32 gMonFrontPic_Rapidash[]; +extern const u32 gMonPalette_Rapidash[]; +extern const u32 gMonBackPic_Rapidash[]; +extern const u32 gMonShinyPalette_Rapidash[]; +extern const u8 gMonIcon_Rapidash[]; +extern const u8 gMonFootprint_Rapidash[]; +extern const u32 gMonFrontPic_Slowpoke[]; +extern const u32 gMonPalette_Slowpoke[]; +extern const u32 gMonBackPic_Slowpoke[]; +extern const u32 gMonShinyPalette_Slowpoke[]; +extern const u8 gMonIcon_Slowpoke[]; +extern const u8 gMonFootprint_Slowpoke[]; +extern const u32 gMonFrontPic_Slowbro[]; +extern const u32 gMonPalette_Slowbro[]; +extern const u32 gMonBackPic_Slowbro[]; +extern const u32 gMonShinyPalette_Slowbro[]; +extern const u8 gMonIcon_Slowbro[]; +extern const u8 gMonFootprint_Slowbro[]; +extern const u32 gMonFrontPic_Magnemite[]; +extern const u32 gMonPalette_Magnemite[]; +extern const u32 gMonBackPic_Magnemite[]; +extern const u32 gMonShinyPalette_Magnemite[]; +extern const u8 gMonIcon_Magnemite[]; +extern const u8 gMonFootprint_Magnemite[]; +extern const u32 gMonFrontPic_Magneton[]; +extern const u32 gMonPalette_Magneton[]; +extern const u32 gMonBackPic_Magneton[]; +extern const u32 gMonShinyPalette_Magneton[]; +extern const u8 gMonIcon_Magneton[]; +extern const u8 gMonFootprint_Magneton[]; +extern const u32 gMonFrontPic_Farfetchd[]; +extern const u32 gMonPalette_Farfetchd[]; +extern const u32 gMonBackPic_Farfetchd[]; +extern const u32 gMonShinyPalette_Farfetchd[]; +extern const u8 gMonIcon_Farfetchd[]; +extern const u8 gMonFootprint_Farfetchd[]; +extern const u32 gMonFrontPic_Doduo[]; +extern const u32 gMonPalette_Doduo[]; +extern const u32 gMonBackPic_Doduo[]; +extern const u32 gMonShinyPalette_Doduo[]; +extern const u8 gMonIcon_Doduo[]; +extern const u8 gMonFootprint_Doduo[]; +extern const u32 gMonFrontPic_Dodrio[]; +extern const u32 gMonPalette_Dodrio[]; +extern const u32 gMonBackPic_Dodrio[]; +extern const u32 gMonShinyPalette_Dodrio[]; +extern const u8 gMonIcon_Dodrio[]; +extern const u8 gMonFootprint_Dodrio[]; +extern const u32 gMonFrontPic_Seel[]; +extern const u32 gMonPalette_Seel[]; +extern const u32 gMonBackPic_Seel[]; +extern const u32 gMonShinyPalette_Seel[]; +extern const u8 gMonIcon_Seel[]; +extern const u8 gMonFootprint_Seel[]; +extern const u32 gMonFrontPic_Dewgong[]; +extern const u32 gMonPalette_Dewgong[]; +extern const u32 gMonBackPic_Dewgong[]; +extern const u32 gMonShinyPalette_Dewgong[]; +extern const u8 gMonIcon_Dewgong[]; +extern const u8 gMonFootprint_Dewgong[]; +extern const u32 gMonFrontPic_Grimer[]; +extern const u32 gMonPalette_Grimer[]; +extern const u32 gMonBackPic_Grimer[]; +extern const u32 gMonShinyPalette_Grimer[]; +extern const u8 gMonIcon_Grimer[]; +extern const u8 gMonFootprint_Grimer[]; +extern const u32 gMonFrontPic_Muk[]; +extern const u32 gMonPalette_Muk[]; +extern const u32 gMonBackPic_Muk[]; +extern const u32 gMonShinyPalette_Muk[]; +extern const u8 gMonIcon_Muk[]; +extern const u8 gMonFootprint_Muk[]; +extern const u32 gMonFrontPic_Shellder[]; +extern const u32 gMonPalette_Shellder[]; +extern const u32 gMonBackPic_Shellder[]; +extern const u32 gMonShinyPalette_Shellder[]; +extern const u8 gMonIcon_Shellder[]; +extern const u8 gMonFootprint_Shellder[]; +extern const u32 gMonFrontPic_Cloyster[]; +extern const u32 gMonPalette_Cloyster[]; +extern const u32 gMonBackPic_Cloyster[]; +extern const u32 gMonShinyPalette_Cloyster[]; +extern const u8 gMonIcon_Cloyster[]; +extern const u8 gMonFootprint_Cloyster[]; +extern const u32 gMonFrontPic_Gastly[]; +extern const u32 gMonPalette_Gastly[]; +extern const u32 gMonBackPic_Gastly[]; +extern const u32 gMonShinyPalette_Gastly[]; +extern const u8 gMonIcon_Gastly[]; +extern const u8 gMonFootprint_Gastly[]; +extern const u32 gMonFrontPic_Haunter[]; +extern const u32 gMonPalette_Haunter[]; +extern const u32 gMonBackPic_Haunter[]; +extern const u32 gMonShinyPalette_Haunter[]; +extern const u8 gMonIcon_Haunter[]; +extern const u8 gMonFootprint_Haunter[]; +extern const u32 gMonFrontPic_Gengar[]; +extern const u32 gMonPalette_Gengar[]; +extern const u32 gMonBackPic_Gengar[]; +extern const u32 gMonShinyPalette_Gengar[]; +extern const u8 gMonIcon_Gengar[]; +extern const u8 gMonFootprint_Gengar[]; +extern const u32 gMonFrontPic_Onix[]; +extern const u32 gMonPalette_Onix[]; +extern const u32 gMonBackPic_Onix[]; +extern const u32 gMonShinyPalette_Onix[]; +extern const u8 gMonIcon_Onix[]; +extern const u8 gMonFootprint_Onix[]; +extern const u32 gMonFrontPic_Drowzee[]; +extern const u32 gMonPalette_Drowzee[]; +extern const u32 gMonBackPic_Drowzee[]; +extern const u32 gMonShinyPalette_Drowzee[]; +extern const u8 gMonIcon_Drowzee[]; +extern const u8 gMonFootprint_Drowzee[]; +extern const u32 gMonFrontPic_Hypno[]; +extern const u32 gMonPalette_Hypno[]; +extern const u32 gMonBackPic_Hypno[]; +extern const u32 gMonShinyPalette_Hypno[]; +extern const u8 gMonIcon_Hypno[]; +extern const u8 gMonFootprint_Hypno[]; +extern const u32 gMonFrontPic_Krabby[]; +extern const u32 gMonPalette_Krabby[]; +extern const u32 gMonBackPic_Krabby[]; +extern const u32 gMonShinyPalette_Krabby[]; +extern const u8 gMonIcon_Krabby[]; +extern const u8 gMonFootprint_Krabby[]; +extern const u32 gMonFrontPic_Kingler[]; +extern const u32 gMonPalette_Kingler[]; +extern const u32 gMonBackPic_Kingler[]; +extern const u32 gMonShinyPalette_Kingler[]; +extern const u8 gMonIcon_Kingler[]; +extern const u8 gMonFootprint_Kingler[]; +extern const u32 gMonFrontPic_Voltorb[]; +extern const u32 gMonPalette_Voltorb[]; +extern const u32 gMonBackPic_Voltorb[]; +extern const u32 gMonShinyPalette_Voltorb[]; +extern const u8 gMonIcon_Voltorb[]; +extern const u8 gMonFootprint_Voltorb[]; +extern const u32 gMonFrontPic_Electrode[]; +extern const u32 gMonPalette_Electrode[]; +extern const u32 gMonBackPic_Electrode[]; +extern const u32 gMonShinyPalette_Electrode[]; +extern const u8 gMonIcon_Electrode[]; +extern const u8 gMonFootprint_Electrode[]; +extern const u32 gMonFrontPic_Exeggcute[]; +extern const u32 gMonPalette_Exeggcute[]; +extern const u32 gMonBackPic_Exeggcute[]; +extern const u32 gMonShinyPalette_Exeggcute[]; +extern const u8 gMonIcon_Exeggcute[]; +extern const u8 gMonFootprint_Exeggcute[]; +extern const u32 gMonFrontPic_Exeggutor[]; +extern const u32 gMonPalette_Exeggutor[]; +extern const u32 gMonBackPic_Exeggutor[]; +extern const u32 gMonShinyPalette_Exeggutor[]; +extern const u8 gMonIcon_Exeggutor[]; +extern const u8 gMonFootprint_Exeggutor[]; +extern const u32 gMonFrontPic_Cubone[]; +extern const u32 gMonPalette_Cubone[]; +extern const u32 gMonBackPic_Cubone[]; +extern const u32 gMonShinyPalette_Cubone[]; +extern const u8 gMonIcon_Cubone[]; +extern const u8 gMonFootprint_Cubone[]; +extern const u32 gMonFrontPic_Marowak[]; +extern const u32 gMonPalette_Marowak[]; +extern const u32 gMonBackPic_Marowak[]; +extern const u32 gMonShinyPalette_Marowak[]; +extern const u8 gMonIcon_Marowak[]; +extern const u8 gMonFootprint_Marowak[]; +extern const u32 gMonFrontPic_Hitmonlee[]; +extern const u32 gMonPalette_Hitmonlee[]; +extern const u32 gMonBackPic_Hitmonlee[]; +extern const u32 gMonShinyPalette_Hitmonlee[]; +extern const u8 gMonIcon_Hitmonlee[]; +extern const u8 gMonFootprint_Hitmonlee[]; +extern const u32 gMonFrontPic_Hitmonchan[]; +extern const u32 gMonPalette_Hitmonchan[]; +extern const u32 gMonBackPic_Hitmonchan[]; +extern const u32 gMonShinyPalette_Hitmonchan[]; +extern const u8 gMonIcon_Hitmonchan[]; +extern const u8 gMonFootprint_Hitmonchan[]; +extern const u32 gMonFrontPic_Lickitung[]; +extern const u32 gMonPalette_Lickitung[]; +extern const u32 gMonBackPic_Lickitung[]; +extern const u32 gMonShinyPalette_Lickitung[]; +extern const u8 gMonIcon_Lickitung[]; +extern const u8 gMonFootprint_Lickitung[]; +extern const u32 gMonFrontPic_Koffing[]; +extern const u32 gMonPalette_Koffing[]; +extern const u32 gMonBackPic_Koffing[]; +extern const u32 gMonShinyPalette_Koffing[]; +extern const u8 gMonIcon_Koffing[]; +extern const u8 gMonFootprint_Koffing[]; +extern const u32 gMonFrontPic_Weezing[]; +extern const u32 gMonPalette_Weezing[]; +extern const u32 gMonBackPic_Weezing[]; +extern const u32 gMonShinyPalette_Weezing[]; +extern const u8 gMonIcon_Weezing[]; +extern const u8 gMonFootprint_Weezing[]; +extern const u32 gMonFrontPic_Rhyhorn[]; +extern const u32 gMonPalette_Rhyhorn[]; +extern const u32 gMonBackPic_Rhyhorn[]; +extern const u32 gMonShinyPalette_Rhyhorn[]; +extern const u8 gMonIcon_Rhyhorn[]; +extern const u8 gMonFootprint_Rhyhorn[]; +extern const u32 gMonFrontPic_Rhydon[]; +extern const u32 gMonPalette_Rhydon[]; +extern const u32 gMonBackPic_Rhydon[]; +extern const u32 gMonShinyPalette_Rhydon[]; +extern const u8 gMonIcon_Rhydon[]; +extern const u8 gMonFootprint_Rhydon[]; +extern const u32 gMonFrontPic_Chansey[]; +extern const u32 gMonPalette_Chansey[]; +extern const u32 gMonBackPic_Chansey[]; +extern const u32 gMonShinyPalette_Chansey[]; +extern const u8 gMonIcon_Chansey[]; +extern const u8 gMonFootprint_Chansey[]; +extern const u32 gMonFrontPic_Tangela[]; +extern const u32 gMonPalette_Tangela[]; +extern const u32 gMonBackPic_Tangela[]; +extern const u32 gMonShinyPalette_Tangela[]; +extern const u8 gMonIcon_Tangela[]; +extern const u8 gMonFootprint_Tangela[]; +extern const u32 gMonFrontPic_Kangaskhan[]; +extern const u32 gMonPalette_Kangaskhan[]; +extern const u32 gMonBackPic_Kangaskhan[]; +extern const u32 gMonShinyPalette_Kangaskhan[]; +extern const u8 gMonIcon_Kangaskhan[]; +extern const u8 gMonFootprint_Kangaskhan[]; +extern const u32 gMonFrontPic_Horsea[]; +extern const u32 gMonPalette_Horsea[]; +extern const u32 gMonBackPic_Horsea[]; +extern const u32 gMonShinyPalette_Horsea[]; +extern const u8 gMonIcon_Horsea[]; +extern const u8 gMonFootprint_Horsea[]; +extern const u32 gMonFrontPic_Seadra[]; +extern const u32 gMonPalette_Seadra[]; +extern const u32 gMonBackPic_Seadra[]; +extern const u32 gMonShinyPalette_Seadra[]; +extern const u8 gMonIcon_Seadra[]; +extern const u8 gMonFootprint_Seadra[]; +extern const u32 gMonFrontPic_Goldeen[]; +extern const u32 gMonPalette_Goldeen[]; +extern const u32 gMonBackPic_Goldeen[]; +extern const u32 gMonShinyPalette_Goldeen[]; +extern const u8 gMonIcon_Goldeen[]; +extern const u8 gMonFootprint_Goldeen[]; +extern const u32 gMonFrontPic_Seaking[]; +extern const u32 gMonPalette_Seaking[]; +extern const u32 gMonBackPic_Seaking[]; +extern const u32 gMonShinyPalette_Seaking[]; +extern const u8 gMonIcon_Seaking[]; +extern const u8 gMonFootprint_Seaking[]; +extern const u32 gMonFrontPic_Staryu[]; +extern const u32 gMonPalette_Staryu[]; +extern const u32 gMonBackPic_Staryu[]; +extern const u32 gMonShinyPalette_Staryu[]; +extern const u8 gMonIcon_Staryu[]; +extern const u8 gMonFootprint_Staryu[]; +extern const u32 gMonFrontPic_Starmie[]; +extern const u32 gMonPalette_Starmie[]; +extern const u32 gMonBackPic_Starmie[]; +extern const u32 gMonShinyPalette_Starmie[]; +extern const u8 gMonIcon_Starmie[]; +extern const u8 gMonFootprint_Starmie[]; +extern const u32 gMonFrontPic_Mrmime[]; +extern const u32 gMonPalette_Mrmime[]; +extern const u32 gMonBackPic_Mrmime[]; +extern const u32 gMonShinyPalette_Mrmime[]; +extern const u8 gMonIcon_Mrmime[]; +extern const u8 gMonFootprint_Mrmime[]; +extern const u32 gMonFrontPic_Scyther[]; +extern const u32 gMonPalette_Scyther[]; +extern const u32 gMonBackPic_Scyther[]; +extern const u32 gMonShinyPalette_Scyther[]; +extern const u8 gMonIcon_Scyther[]; +extern const u8 gMonFootprint_Scyther[]; +extern const u32 gMonFrontPic_Jynx[]; +extern const u32 gMonPalette_Jynx[]; +extern const u32 gMonBackPic_Jynx[]; +extern const u32 gMonShinyPalette_Jynx[]; +extern const u8 gMonIcon_Jynx[]; +extern const u8 gMonFootprint_Jynx[]; +extern const u32 gMonFrontPic_Electabuzz[]; +extern const u32 gMonPalette_Electabuzz[]; +extern const u32 gMonBackPic_Electabuzz[]; +extern const u32 gMonShinyPalette_Electabuzz[]; +extern const u8 gMonIcon_Electabuzz[]; +extern const u8 gMonFootprint_Electabuzz[]; +extern const u32 gMonFrontPic_Magmar[]; +extern const u32 gMonPalette_Magmar[]; +extern const u32 gMonBackPic_Magmar[]; +extern const u32 gMonShinyPalette_Magmar[]; +extern const u8 gMonIcon_Magmar[]; +extern const u8 gMonFootprint_Magmar[]; +extern const u32 gMonFrontPic_Pinsir[]; +extern const u32 gMonPalette_Pinsir[]; +extern const u32 gMonBackPic_Pinsir[]; +extern const u32 gMonShinyPalette_Pinsir[]; +extern const u8 gMonIcon_Pinsir[]; +extern const u8 gMonFootprint_Pinsir[]; +extern const u32 gMonFrontPic_Tauros[]; +extern const u32 gMonPalette_Tauros[]; +extern const u32 gMonBackPic_Tauros[]; +extern const u32 gMonShinyPalette_Tauros[]; +extern const u8 gMonIcon_Tauros[]; +extern const u8 gMonFootprint_Tauros[]; +extern const u32 gMonFrontPic_Magikarp[]; +extern const u32 gMonPalette_Magikarp[]; +extern const u32 gMonBackPic_Magikarp[]; +extern const u32 gMonShinyPalette_Magikarp[]; +extern const u8 gMonIcon_Magikarp[]; +extern const u8 gMonFootprint_Magikarp[]; +extern const u32 gMonFrontPic_Gyarados[]; +extern const u32 gMonPalette_Gyarados[]; +extern const u32 gMonBackPic_Gyarados[]; +extern const u32 gMonShinyPalette_Gyarados[]; +extern const u8 gMonIcon_Gyarados[]; +extern const u8 gMonFootprint_Gyarados[]; +extern const u32 gMonFrontPic_Lapras[]; +extern const u32 gMonPalette_Lapras[]; +extern const u32 gMonBackPic_Lapras[]; +extern const u32 gMonShinyPalette_Lapras[]; +extern const u8 gMonIcon_Lapras[]; +extern const u8 gMonFootprint_Lapras[]; +extern const u32 gMonFrontPic_Ditto[]; +extern const u32 gMonPalette_Ditto[]; +extern const u32 gMonBackPic_Ditto[]; +extern const u32 gMonShinyPalette_Ditto[]; +extern const u8 gMonIcon_Ditto[]; +extern const u8 gMonFootprint_Ditto[]; +extern const u32 gMonFrontPic_Eevee[]; +extern const u32 gMonPalette_Eevee[]; +extern const u32 gMonBackPic_Eevee[]; +extern const u32 gMonShinyPalette_Eevee[]; +extern const u8 gMonIcon_Eevee[]; +extern const u8 gMonFootprint_Eevee[]; +extern const u32 gMonFrontPic_Vaporeon[]; +extern const u32 gMonPalette_Vaporeon[]; +extern const u32 gMonBackPic_Vaporeon[]; +extern const u32 gMonShinyPalette_Vaporeon[]; +extern const u8 gMonIcon_Vaporeon[]; +extern const u8 gMonFootprint_Vaporeon[]; +extern const u32 gMonFrontPic_Jolteon[]; +extern const u32 gMonPalette_Jolteon[]; +extern const u32 gMonBackPic_Jolteon[]; +extern const u32 gMonShinyPalette_Jolteon[]; +extern const u8 gMonIcon_Jolteon[]; +extern const u8 gMonFootprint_Jolteon[]; +extern const u32 gMonFrontPic_Flareon[]; +extern const u32 gMonPalette_Flareon[]; +extern const u32 gMonBackPic_Flareon[]; +extern const u32 gMonShinyPalette_Flareon[]; +extern const u8 gMonIcon_Flareon[]; +extern const u8 gMonFootprint_Flareon[]; +extern const u32 gMonFrontPic_Porygon[]; +extern const u32 gMonPalette_Porygon[]; +extern const u32 gMonBackPic_Porygon[]; +extern const u32 gMonShinyPalette_Porygon[]; +extern const u8 gMonIcon_Porygon[]; +extern const u8 gMonFootprint_Porygon[]; +extern const u32 gMonFrontPic_Omanyte[]; +extern const u32 gMonPalette_Omanyte[]; +extern const u32 gMonBackPic_Omanyte[]; +extern const u32 gMonShinyPalette_Omanyte[]; +extern const u8 gMonIcon_Omanyte[]; +extern const u8 gMonFootprint_Omanyte[]; +extern const u32 gMonFrontPic_Omastar[]; +extern const u32 gMonPalette_Omastar[]; +extern const u32 gMonBackPic_Omastar[]; +extern const u32 gMonShinyPalette_Omastar[]; +extern const u8 gMonIcon_Omastar[]; +extern const u8 gMonFootprint_Omastar[]; +extern const u32 gMonFrontPic_Kabuto[]; +extern const u32 gMonPalette_Kabuto[]; +extern const u32 gMonBackPic_Kabuto[]; +extern const u32 gMonShinyPalette_Kabuto[]; +extern const u8 gMonIcon_Kabuto[]; +extern const u8 gMonFootprint_Kabuto[]; +extern const u32 gMonFrontPic_Kabutops[]; +extern const u32 gMonPalette_Kabutops[]; +extern const u32 gMonBackPic_Kabutops[]; +extern const u32 gMonShinyPalette_Kabutops[]; +extern const u8 gMonIcon_Kabutops[]; +extern const u8 gMonFootprint_Kabutops[]; +extern const u32 gMonFrontPic_Aerodactyl[]; +extern const u32 gMonPalette_Aerodactyl[]; +extern const u32 gMonBackPic_Aerodactyl[]; +extern const u32 gMonShinyPalette_Aerodactyl[]; +extern const u8 gMonIcon_Aerodactyl[]; +extern const u8 gMonFootprint_Aerodactyl[]; +extern const u32 gMonFrontPic_Snorlax[]; +extern const u32 gMonPalette_Snorlax[]; +extern const u32 gMonBackPic_Snorlax[]; +extern const u32 gMonShinyPalette_Snorlax[]; +extern const u8 gMonIcon_Snorlax[]; +extern const u8 gMonFootprint_Snorlax[]; +extern const u32 gMonFrontPic_Articuno[]; +extern const u32 gMonPalette_Articuno[]; +extern const u32 gMonBackPic_Articuno[]; +extern const u32 gMonShinyPalette_Articuno[]; +extern const u8 gMonIcon_Articuno[]; +extern const u8 gMonFootprint_Articuno[]; +extern const u32 gMonFrontPic_Zapdos[]; +extern const u32 gMonPalette_Zapdos[]; +extern const u32 gMonBackPic_Zapdos[]; +extern const u32 gMonShinyPalette_Zapdos[]; +extern const u8 gMonIcon_Zapdos[]; +extern const u8 gMonFootprint_Zapdos[]; +extern const u32 gMonFrontPic_Moltres[]; +extern const u32 gMonPalette_Moltres[]; +extern const u32 gMonBackPic_Moltres[]; +extern const u32 gMonShinyPalette_Moltres[]; +extern const u8 gMonIcon_Moltres[]; +extern const u8 gMonFootprint_Moltres[]; +extern const u32 gMonFrontPic_Dratini[]; +extern const u32 gMonPalette_Dratini[]; +extern const u32 gMonBackPic_Dratini[]; +extern const u32 gMonShinyPalette_Dratini[]; +extern const u8 gMonIcon_Dratini[]; +extern const u8 gMonFootprint_Dratini[]; +extern const u32 gMonFrontPic_Dragonair[]; +extern const u32 gMonPalette_Dragonair[]; +extern const u32 gMonBackPic_Dragonair[]; +extern const u32 gMonShinyPalette_Dragonair[]; +extern const u8 gMonIcon_Dragonair[]; +extern const u8 gMonFootprint_Dragonair[]; +extern const u32 gMonFrontPic_Dragonite[]; +extern const u32 gMonPalette_Dragonite[]; +extern const u32 gMonBackPic_Dragonite[]; +extern const u32 gMonShinyPalette_Dragonite[]; +extern const u8 gMonIcon_Dragonite[]; +extern const u8 gMonFootprint_Dragonite[]; +extern const u32 gMonFrontPic_Mewtwo[]; +extern const u32 gMonPalette_Mewtwo[]; +extern const u32 gMonBackPic_Mewtwo[]; +extern const u32 gMonShinyPalette_Mewtwo[]; +extern const u8 gMonIcon_Mewtwo[]; +extern const u8 gMonFootprint_Mewtwo[]; +extern const u32 gMonFrontPic_Mew[]; +extern const u32 gMonPalette_Mew[]; +extern const u32 gMonBackPic_Mew[]; +extern const u32 gMonShinyPalette_Mew[]; +extern const u8 gMonIcon_Mew[]; +extern const u8 gMonFootprint_Mew[]; +extern const u32 gMonFrontPic_Chikorita[]; +extern const u32 gMonPalette_Chikorita[]; +extern const u32 gMonBackPic_Chikorita[]; +extern const u32 gMonShinyPalette_Chikorita[]; +extern const u8 gMonIcon_Chikorita[]; +extern const u8 gMonFootprint_Chikorita[]; +extern const u32 gMonFrontPic_Bayleef[]; +extern const u32 gMonPalette_Bayleef[]; +extern const u32 gMonBackPic_Bayleef[]; +extern const u32 gMonShinyPalette_Bayleef[]; +extern const u8 gMonIcon_Bayleef[]; +extern const u8 gMonFootprint_Bayleef[]; +extern const u32 gMonFrontPic_Meganium[]; +extern const u32 gMonPalette_Meganium[]; +extern const u32 gMonBackPic_Meganium[]; +extern const u32 gMonShinyPalette_Meganium[]; +extern const u8 gMonIcon_Meganium[]; +extern const u8 gMonFootprint_Meganium[]; +extern const u32 gMonFrontPic_Cyndaquil[]; +extern const u32 gMonPalette_Cyndaquil[]; +extern const u32 gMonBackPic_Cyndaquil[]; +extern const u32 gMonShinyPalette_Cyndaquil[]; +extern const u8 gMonIcon_Cyndaquil[]; +extern const u8 gMonFootprint_Cyndaquil[]; +extern const u32 gMonFrontPic_Quilava[]; +extern const u32 gMonPalette_Quilava[]; +extern const u32 gMonBackPic_Quilava[]; +extern const u32 gMonShinyPalette_Quilava[]; +extern const u8 gMonIcon_Quilava[]; +extern const u8 gMonFootprint_Quilava[]; +extern const u32 gMonFrontPic_Typhlosion[]; +extern const u32 gMonPalette_Typhlosion[]; +extern const u32 gMonBackPic_Typhlosion[]; +extern const u32 gMonShinyPalette_Typhlosion[]; +extern const u8 gMonIcon_Typhlosion[]; +extern const u8 gMonFootprint_Typhlosion[]; +extern const u32 gMonFrontPic_Totodile[]; +extern const u32 gMonPalette_Totodile[]; +extern const u32 gMonBackPic_Totodile[]; +extern const u32 gMonShinyPalette_Totodile[]; +extern const u8 gMonIcon_Totodile[]; +extern const u8 gMonFootprint_Totodile[]; +extern const u32 gMonFrontPic_Croconaw[]; +extern const u32 gMonPalette_Croconaw[]; +extern const u32 gMonBackPic_Croconaw[]; +extern const u32 gMonShinyPalette_Croconaw[]; +extern const u8 gMonIcon_Croconaw[]; +extern const u8 gMonFootprint_Croconaw[]; +extern const u32 gMonFrontPic_Feraligatr[]; +extern const u32 gMonPalette_Feraligatr[]; +extern const u32 gMonBackPic_Feraligatr[]; +extern const u32 gMonShinyPalette_Feraligatr[]; +extern const u8 gMonIcon_Feraligatr[]; +extern const u8 gMonFootprint_Feraligatr[]; +extern const u32 gMonFrontPic_Sentret[]; +extern const u32 gMonPalette_Sentret[]; +extern const u32 gMonBackPic_Sentret[]; +extern const u32 gMonShinyPalette_Sentret[]; +extern const u8 gMonIcon_Sentret[]; +extern const u8 gMonFootprint_Sentret[]; +extern const u32 gMonFrontPic_Furret[]; +extern const u32 gMonPalette_Furret[]; +extern const u32 gMonBackPic_Furret[]; +extern const u32 gMonShinyPalette_Furret[]; +extern const u8 gMonIcon_Furret[]; +extern const u8 gMonFootprint_Furret[]; +extern const u32 gMonFrontPic_Hoothoot[]; +extern const u32 gMonPalette_Hoothoot[]; +extern const u32 gMonBackPic_Hoothoot[]; +extern const u32 gMonShinyPalette_Hoothoot[]; +extern const u8 gMonIcon_Hoothoot[]; +extern const u8 gMonFootprint_Hoothoot[]; +extern const u32 gMonFrontPic_Noctowl[]; +extern const u32 gMonPalette_Noctowl[]; +extern const u32 gMonBackPic_Noctowl[]; +extern const u32 gMonShinyPalette_Noctowl[]; +extern const u8 gMonIcon_Noctowl[]; +extern const u8 gMonFootprint_Noctowl[]; +extern const u32 gMonFrontPic_Ledyba[]; +extern const u32 gMonPalette_Ledyba[]; +extern const u32 gMonBackPic_Ledyba[]; +extern const u32 gMonShinyPalette_Ledyba[]; +extern const u8 gMonIcon_Ledyba[]; +extern const u8 gMonFootprint_Ledyba[]; +extern const u32 gMonFrontPic_Ledian[]; +extern const u32 gMonPalette_Ledian[]; +extern const u32 gMonBackPic_Ledian[]; +extern const u32 gMonShinyPalette_Ledian[]; +extern const u8 gMonIcon_Ledian[]; +extern const u8 gMonFootprint_Ledian[]; +extern const u32 gMonFrontPic_Spinarak[]; +extern const u32 gMonPalette_Spinarak[]; +extern const u32 gMonBackPic_Spinarak[]; +extern const u32 gMonShinyPalette_Spinarak[]; +extern const u8 gMonIcon_Spinarak[]; +extern const u8 gMonFootprint_Spinarak[]; +extern const u32 gMonFrontPic_Ariados[]; +extern const u32 gMonPalette_Ariados[]; +extern const u32 gMonBackPic_Ariados[]; +extern const u32 gMonShinyPalette_Ariados[]; +extern const u8 gMonIcon_Ariados[]; +extern const u8 gMonFootprint_Ariados[]; +extern const u32 gMonFrontPic_Crobat[]; +extern const u32 gMonPalette_Crobat[]; +extern const u32 gMonBackPic_Crobat[]; +extern const u32 gMonShinyPalette_Crobat[]; +extern const u8 gMonIcon_Crobat[]; +extern const u8 gMonFootprint_Crobat[]; +extern const u32 gMonFrontPic_Chinchou[]; +extern const u32 gMonPalette_Chinchou[]; +extern const u32 gMonBackPic_Chinchou[]; +extern const u32 gMonShinyPalette_Chinchou[]; +extern const u8 gMonIcon_Chinchou[]; +extern const u8 gMonFootprint_Chinchou[]; +extern const u32 gMonFrontPic_Lanturn[]; +extern const u32 gMonPalette_Lanturn[]; +extern const u32 gMonBackPic_Lanturn[]; +extern const u32 gMonShinyPalette_Lanturn[]; +extern const u8 gMonIcon_Lanturn[]; +extern const u8 gMonFootprint_Lanturn[]; +extern const u32 gMonFrontPic_Pichu[]; +extern const u32 gMonPalette_Pichu[]; +extern const u32 gMonBackPic_Pichu[]; +extern const u32 gMonShinyPalette_Pichu[]; +extern const u8 gMonIcon_Pichu[]; +extern const u8 gMonFootprint_Pichu[]; +extern const u32 gMonFrontPic_Cleffa[]; +extern const u32 gMonPalette_Cleffa[]; +extern const u32 gMonBackPic_Cleffa[]; +extern const u32 gMonShinyPalette_Cleffa[]; +extern const u8 gMonIcon_Cleffa[]; +extern const u8 gMonFootprint_Cleffa[]; +extern const u32 gMonFrontPic_Igglybuff[]; +extern const u32 gMonPalette_Igglybuff[]; +extern const u32 gMonBackPic_Igglybuff[]; +extern const u32 gMonShinyPalette_Igglybuff[]; +extern const u8 gMonIcon_Igglybuff[]; +extern const u8 gMonFootprint_Igglybuff[]; +extern const u32 gMonFrontPic_Togepi[]; +extern const u32 gMonPalette_Togepi[]; +extern const u32 gMonBackPic_Togepi[]; +extern const u32 gMonShinyPalette_Togepi[]; +extern const u8 gMonIcon_Togepi[]; +extern const u8 gMonFootprint_Togepi[]; +extern const u32 gMonFrontPic_Togetic[]; +extern const u32 gMonPalette_Togetic[]; +extern const u32 gMonBackPic_Togetic[]; +extern const u32 gMonShinyPalette_Togetic[]; +extern const u8 gMonIcon_Togetic[]; +extern const u8 gMonFootprint_Togetic[]; +extern const u32 gMonFrontPic_Natu[]; +extern const u32 gMonPalette_Natu[]; +extern const u32 gMonBackPic_Natu[]; +extern const u32 gMonShinyPalette_Natu[]; +extern const u8 gMonIcon_Natu[]; +extern const u8 gMonFootprint_Natu[]; +extern const u32 gMonFrontPic_Xatu[]; +extern const u32 gMonPalette_Xatu[]; +extern const u32 gMonBackPic_Xatu[]; +extern const u32 gMonShinyPalette_Xatu[]; +extern const u8 gMonIcon_Xatu[]; +extern const u8 gMonFootprint_Xatu[]; +extern const u32 gMonFrontPic_Mareep[]; +extern const u32 gMonPalette_Mareep[]; +extern const u32 gMonBackPic_Mareep[]; +extern const u32 gMonShinyPalette_Mareep[]; +extern const u8 gMonIcon_Mareep[]; +extern const u8 gMonFootprint_Mareep[]; +extern const u32 gMonFrontPic_Flaaffy[]; +extern const u32 gMonPalette_Flaaffy[]; +extern const u32 gMonBackPic_Flaaffy[]; +extern const u32 gMonShinyPalette_Flaaffy[]; +extern const u8 gMonIcon_Flaaffy[]; +extern const u8 gMonFootprint_Flaaffy[]; +extern const u32 gMonFrontPic_Ampharos[]; +extern const u32 gMonPalette_Ampharos[]; +extern const u32 gMonBackPic_Ampharos[]; +extern const u32 gMonShinyPalette_Ampharos[]; +extern const u8 gMonIcon_Ampharos[]; +extern const u8 gMonFootprint_Ampharos[]; +extern const u32 gMonFrontPic_Bellossom[]; +extern const u32 gMonPalette_Bellossom[]; +extern const u32 gMonBackPic_Bellossom[]; +extern const u32 gMonShinyPalette_Bellossom[]; +extern const u8 gMonIcon_Bellossom[]; +extern const u8 gMonFootprint_Bellossom[]; +extern const u32 gMonFrontPic_Marill[]; +extern const u32 gMonPalette_Marill[]; +extern const u32 gMonBackPic_Marill[]; +extern const u32 gMonShinyPalette_Marill[]; +extern const u8 gMonIcon_Marill[]; +extern const u8 gMonFootprint_Marill[]; +extern const u32 gMonFrontPic_Azumarill[]; +extern const u32 gMonPalette_Azumarill[]; +extern const u32 gMonBackPic_Azumarill[]; +extern const u32 gMonShinyPalette_Azumarill[]; +extern const u8 gMonIcon_Azumarill[]; +extern const u8 gMonFootprint_Azumarill[]; +extern const u32 gMonFrontPic_Sudowoodo[]; +extern const u32 gMonPalette_Sudowoodo[]; +extern const u32 gMonBackPic_Sudowoodo[]; +extern const u32 gMonShinyPalette_Sudowoodo[]; +extern const u8 gMonIcon_Sudowoodo[]; +extern const u8 gMonFootprint_Sudowoodo[]; +extern const u32 gMonFrontPic_Politoed[]; +extern const u32 gMonPalette_Politoed[]; +extern const u32 gMonBackPic_Politoed[]; +extern const u32 gMonShinyPalette_Politoed[]; +extern const u8 gMonIcon_Politoed[]; +extern const u8 gMonFootprint_Politoed[]; +extern const u32 gMonFrontPic_Hoppip[]; +extern const u32 gMonPalette_Hoppip[]; +extern const u32 gMonBackPic_Hoppip[]; +extern const u32 gMonShinyPalette_Hoppip[]; +extern const u8 gMonIcon_Hoppip[]; +extern const u8 gMonFootprint_Hoppip[]; +extern const u32 gMonFrontPic_Skiploom[]; +extern const u32 gMonPalette_Skiploom[]; +extern const u32 gMonBackPic_Skiploom[]; +extern const u32 gMonShinyPalette_Skiploom[]; +extern const u8 gMonIcon_Skiploom[]; +extern const u8 gMonFootprint_Skiploom[]; +extern const u32 gMonFrontPic_Jumpluff[]; +extern const u32 gMonPalette_Jumpluff[]; +extern const u32 gMonBackPic_Jumpluff[]; +extern const u32 gMonShinyPalette_Jumpluff[]; +extern const u8 gMonIcon_Jumpluff[]; +extern const u8 gMonFootprint_Jumpluff[]; +extern const u32 gMonFrontPic_Aipom[]; +extern const u32 gMonPalette_Aipom[]; +extern const u32 gMonBackPic_Aipom[]; +extern const u32 gMonShinyPalette_Aipom[]; +extern const u8 gMonIcon_Aipom[]; +extern const u8 gMonFootprint_Aipom[]; +extern const u32 gMonFrontPic_Sunkern[]; +extern const u32 gMonPalette_Sunkern[]; +extern const u32 gMonBackPic_Sunkern[]; +extern const u32 gMonShinyPalette_Sunkern[]; +extern const u8 gMonIcon_Sunkern[]; +extern const u8 gMonFootprint_Sunkern[]; +extern const u32 gMonFrontPic_Sunflora[]; +extern const u32 gMonPalette_Sunflora[]; +extern const u32 gMonBackPic_Sunflora[]; +extern const u32 gMonShinyPalette_Sunflora[]; +extern const u8 gMonIcon_Sunflora[]; +extern const u8 gMonFootprint_Sunflora[]; +extern const u32 gMonFrontPic_Yanma[]; +extern const u32 gMonPalette_Yanma[]; +extern const u32 gMonBackPic_Yanma[]; +extern const u32 gMonShinyPalette_Yanma[]; +extern const u8 gMonIcon_Yanma[]; +extern const u8 gMonFootprint_Yanma[]; +extern const u32 gMonFrontPic_Wooper[]; +extern const u32 gMonPalette_Wooper[]; +extern const u32 gMonBackPic_Wooper[]; +extern const u32 gMonShinyPalette_Wooper[]; +extern const u8 gMonIcon_Wooper[]; +extern const u8 gMonFootprint_Wooper[]; +extern const u32 gMonFrontPic_Quagsire[]; +extern const u32 gMonPalette_Quagsire[]; +extern const u32 gMonBackPic_Quagsire[]; +extern const u32 gMonShinyPalette_Quagsire[]; +extern const u8 gMonIcon_Quagsire[]; +extern const u8 gMonFootprint_Quagsire[]; +extern const u32 gMonFrontPic_Espeon[]; +extern const u32 gMonPalette_Espeon[]; +extern const u32 gMonBackPic_Espeon[]; +extern const u32 gMonShinyPalette_Espeon[]; +extern const u8 gMonIcon_Espeon[]; +extern const u8 gMonFootprint_Espeon[]; +extern const u32 gMonFrontPic_Umbreon[]; +extern const u32 gMonPalette_Umbreon[]; +extern const u32 gMonBackPic_Umbreon[]; +extern const u32 gMonShinyPalette_Umbreon[]; +extern const u8 gMonIcon_Umbreon[]; +extern const u8 gMonFootprint_Umbreon[]; +extern const u32 gMonFrontPic_Murkrow[]; +extern const u32 gMonPalette_Murkrow[]; +extern const u32 gMonBackPic_Murkrow[]; +extern const u32 gMonShinyPalette_Murkrow[]; +extern const u8 gMonIcon_Murkrow[]; +extern const u8 gMonFootprint_Murkrow[]; +extern const u32 gMonFrontPic_Slowking[]; +extern const u32 gMonPalette_Slowking[]; +extern const u32 gMonBackPic_Slowking[]; +extern const u32 gMonShinyPalette_Slowking[]; +extern const u8 gMonIcon_Slowking[]; +extern const u8 gMonFootprint_Slowking[]; +extern const u32 gMonFrontPic_Misdreavus[]; +extern const u32 gMonPalette_Misdreavus[]; +extern const u32 gMonBackPic_Misdreavus[]; +extern const u32 gMonShinyPalette_Misdreavus[]; +extern const u8 gMonIcon_Misdreavus[]; +extern const u8 gMonFootprint_Misdreavus[]; +extern const u32 gMonFrontPic_UnownA[]; +extern const u32 gMonPalette_Unown[]; +extern const u32 gMonBackPic_UnownA[]; +extern const u32 gMonShinyPalette_Unown[]; +extern const u8 gMonIcon_UnownA[]; +extern const u8 gMonFootprint_Unown[]; +extern const u32 gMonFrontPic_Wobbuffet[]; +extern const u32 gMonPalette_Wobbuffet[]; +extern const u32 gMonBackPic_Wobbuffet[]; +extern const u32 gMonShinyPalette_Wobbuffet[]; +extern const u8 gMonIcon_Wobbuffet[]; +extern const u8 gMonFootprint_Wobbuffet[]; +extern const u32 gMonFrontPic_Girafarig[]; +extern const u32 gMonPalette_Girafarig[]; +extern const u32 gMonBackPic_Girafarig[]; +extern const u32 gMonShinyPalette_Girafarig[]; +extern const u8 gMonIcon_Girafarig[]; +extern const u8 gMonFootprint_Girafarig[]; +extern const u32 gMonFrontPic_Pineco[]; +extern const u32 gMonPalette_Pineco[]; +extern const u32 gMonBackPic_Pineco[]; +extern const u32 gMonShinyPalette_Pineco[]; +extern const u8 gMonIcon_Pineco[]; +extern const u8 gMonFootprint_Pineco[]; +extern const u32 gMonFrontPic_Forretress[]; +extern const u32 gMonPalette_Forretress[]; +extern const u32 gMonBackPic_Forretress[]; +extern const u32 gMonShinyPalette_Forretress[]; +extern const u8 gMonIcon_Forretress[]; +extern const u8 gMonFootprint_Forretress[]; +extern const u32 gMonFrontPic_Dunsparce[]; +extern const u32 gMonPalette_Dunsparce[]; +extern const u32 gMonBackPic_Dunsparce[]; +extern const u32 gMonShinyPalette_Dunsparce[]; +extern const u8 gMonIcon_Dunsparce[]; +extern const u8 gMonFootprint_Dunsparce[]; +extern const u32 gMonFrontPic_Gligar[]; +extern const u32 gMonPalette_Gligar[]; +extern const u32 gMonBackPic_Gligar[]; +extern const u32 gMonShinyPalette_Gligar[]; +extern const u8 gMonIcon_Gligar[]; +extern const u8 gMonFootprint_Gligar[]; +extern const u32 gMonFrontPic_Steelix[]; +extern const u32 gMonPalette_Steelix[]; +extern const u32 gMonBackPic_Steelix[]; +extern const u32 gMonShinyPalette_Steelix[]; +extern const u8 gMonIcon_Steelix[]; +extern const u8 gMonFootprint_Steelix[]; +extern const u32 gMonFrontPic_Snubbull[]; +extern const u32 gMonPalette_Snubbull[]; +extern const u32 gMonBackPic_Snubbull[]; +extern const u32 gMonShinyPalette_Snubbull[]; +extern const u8 gMonIcon_Snubbull[]; +extern const u8 gMonFootprint_Snubbull[]; +extern const u32 gMonFrontPic_Granbull[]; +extern const u32 gMonPalette_Granbull[]; +extern const u32 gMonBackPic_Granbull[]; +extern const u32 gMonShinyPalette_Granbull[]; +extern const u8 gMonIcon_Granbull[]; +extern const u8 gMonFootprint_Granbull[]; +extern const u32 gMonFrontPic_Qwilfish[]; +extern const u32 gMonPalette_Qwilfish[]; +extern const u32 gMonBackPic_Qwilfish[]; +extern const u32 gMonShinyPalette_Qwilfish[]; +extern const u8 gMonIcon_Qwilfish[]; +extern const u8 gMonFootprint_Qwilfish[]; +extern const u32 gMonFrontPic_Scizor[]; +extern const u32 gMonPalette_Scizor[]; +extern const u32 gMonBackPic_Scizor[]; +extern const u32 gMonShinyPalette_Scizor[]; +extern const u8 gMonIcon_Scizor[]; +extern const u8 gMonFootprint_Scizor[]; +extern const u32 gMonFrontPic_Shuckle[]; +extern const u32 gMonPalette_Shuckle[]; +extern const u32 gMonBackPic_Shuckle[]; +extern const u32 gMonShinyPalette_Shuckle[]; +extern const u8 gMonIcon_Shuckle[]; +extern const u8 gMonFootprint_Shuckle[]; +extern const u32 gMonFrontPic_Heracross[]; +extern const u32 gMonPalette_Heracross[]; +extern const u32 gMonBackPic_Heracross[]; +extern const u32 gMonShinyPalette_Heracross[]; +extern const u8 gMonIcon_Heracross[]; +extern const u8 gMonFootprint_Heracross[]; +extern const u32 gMonFrontPic_Sneasel[]; +extern const u32 gMonPalette_Sneasel[]; +extern const u32 gMonBackPic_Sneasel[]; +extern const u32 gMonShinyPalette_Sneasel[]; +extern const u8 gMonIcon_Sneasel[]; +extern const u8 gMonFootprint_Sneasel[]; +extern const u32 gMonFrontPic_Teddiursa[]; +extern const u32 gMonPalette_Teddiursa[]; +extern const u32 gMonBackPic_Teddiursa[]; +extern const u32 gMonShinyPalette_Teddiursa[]; +extern const u8 gMonIcon_Teddiursa[]; +extern const u8 gMonFootprint_Teddiursa[]; +extern const u32 gMonFrontPic_Ursaring[]; +extern const u32 gMonPalette_Ursaring[]; +extern const u32 gMonBackPic_Ursaring[]; +extern const u32 gMonShinyPalette_Ursaring[]; +extern const u8 gMonIcon_Ursaring[]; +extern const u8 gMonFootprint_Ursaring[]; +extern const u32 gMonFrontPic_Slugma[]; +extern const u32 gMonPalette_Slugma[]; +extern const u32 gMonBackPic_Slugma[]; +extern const u32 gMonShinyPalette_Slugma[]; +extern const u8 gMonIcon_Slugma[]; +extern const u8 gMonFootprint_Slugma[]; +extern const u32 gMonFrontPic_Magcargo[]; +extern const u32 gMonPalette_Magcargo[]; +extern const u32 gMonBackPic_Magcargo[]; +extern const u32 gMonShinyPalette_Magcargo[]; +extern const u8 gMonIcon_Magcargo[]; +extern const u8 gMonFootprint_Magcargo[]; +extern const u32 gMonFrontPic_Swinub[]; +extern const u32 gMonPalette_Swinub[]; +extern const u32 gMonBackPic_Swinub[]; +extern const u32 gMonShinyPalette_Swinub[]; +extern const u8 gMonIcon_Swinub[]; +extern const u8 gMonFootprint_Swinub[]; +extern const u32 gMonFrontPic_Piloswine[]; +extern const u32 gMonPalette_Piloswine[]; +extern const u32 gMonBackPic_Piloswine[]; +extern const u32 gMonShinyPalette_Piloswine[]; +extern const u8 gMonIcon_Piloswine[]; +extern const u8 gMonFootprint_Piloswine[]; +extern const u32 gMonFrontPic_Corsola[]; +extern const u32 gMonPalette_Corsola[]; +extern const u32 gMonBackPic_Corsola[]; +extern const u32 gMonShinyPalette_Corsola[]; +extern const u8 gMonIcon_Corsola[]; +extern const u8 gMonFootprint_Corsola[]; +extern const u32 gMonFrontPic_Remoraid[]; +extern const u32 gMonPalette_Remoraid[]; +extern const u32 gMonBackPic_Remoraid[]; +extern const u32 gMonShinyPalette_Remoraid[]; +extern const u8 gMonIcon_Remoraid[]; +extern const u8 gMonFootprint_Remoraid[]; +extern const u32 gMonFrontPic_Octillery[]; +extern const u32 gMonPalette_Octillery[]; +extern const u32 gMonBackPic_Octillery[]; +extern const u32 gMonShinyPalette_Octillery[]; +extern const u8 gMonIcon_Octillery[]; +extern const u8 gMonFootprint_Octillery[]; +extern const u32 gMonFrontPic_Delibird[]; +extern const u32 gMonPalette_Delibird[]; +extern const u32 gMonBackPic_Delibird[]; +extern const u32 gMonShinyPalette_Delibird[]; +extern const u8 gMonIcon_Delibird[]; +extern const u8 gMonFootprint_Delibird[]; +extern const u32 gMonFrontPic_Mantine[]; +extern const u32 gMonPalette_Mantine[]; +extern const u32 gMonBackPic_Mantine[]; +extern const u32 gMonShinyPalette_Mantine[]; +extern const u8 gMonIcon_Mantine[]; +extern const u8 gMonFootprint_Mantine[]; +extern const u32 gMonFrontPic_Skarmory[]; +extern const u32 gMonPalette_Skarmory[]; +extern const u32 gMonBackPic_Skarmory[]; +extern const u32 gMonShinyPalette_Skarmory[]; +extern const u8 gMonIcon_Skarmory[]; +extern const u8 gMonFootprint_Skarmory[]; +extern const u32 gMonFrontPic_Houndour[]; +extern const u32 gMonPalette_Houndour[]; +extern const u32 gMonBackPic_Houndour[]; +extern const u32 gMonShinyPalette_Houndour[]; +extern const u8 gMonIcon_Houndour[]; +extern const u8 gMonFootprint_Houndour[]; +extern const u32 gMonFrontPic_Houndoom[]; +extern const u32 gMonPalette_Houndoom[]; +extern const u32 gMonBackPic_Houndoom[]; +extern const u32 gMonShinyPalette_Houndoom[]; +extern const u8 gMonIcon_Houndoom[]; +extern const u8 gMonFootprint_Houndoom[]; +extern const u32 gMonFrontPic_Kingdra[]; +extern const u32 gMonPalette_Kingdra[]; +extern const u32 gMonBackPic_Kingdra[]; +extern const u32 gMonShinyPalette_Kingdra[]; +extern const u8 gMonIcon_Kingdra[]; +extern const u8 gMonFootprint_Kingdra[]; +extern const u32 gMonFrontPic_Phanpy[]; +extern const u32 gMonPalette_Phanpy[]; +extern const u32 gMonBackPic_Phanpy[]; +extern const u32 gMonShinyPalette_Phanpy[]; +extern const u8 gMonIcon_Phanpy[]; +extern const u8 gMonFootprint_Phanpy[]; +extern const u32 gMonFrontPic_Donphan[]; +extern const u32 gMonPalette_Donphan[]; +extern const u32 gMonBackPic_Donphan[]; +extern const u32 gMonShinyPalette_Donphan[]; +extern const u8 gMonIcon_Donphan[]; +extern const u8 gMonFootprint_Donphan[]; +extern const u32 gMonFrontPic_Porygon2[]; +extern const u32 gMonPalette_Porygon2[]; +extern const u32 gMonBackPic_Porygon2[]; +extern const u32 gMonShinyPalette_Porygon2[]; +extern const u8 gMonIcon_Porygon2[]; +extern const u8 gMonFootprint_Porygon2[]; +extern const u32 gMonFrontPic_Stantler[]; +extern const u32 gMonPalette_Stantler[]; +extern const u32 gMonBackPic_Stantler[]; +extern const u32 gMonShinyPalette_Stantler[]; +extern const u8 gMonIcon_Stantler[]; +extern const u8 gMonFootprint_Stantler[]; +extern const u32 gMonFrontPic_Smeargle[]; +extern const u32 gMonPalette_Smeargle[]; +extern const u32 gMonBackPic_Smeargle[]; +extern const u32 gMonShinyPalette_Smeargle[]; +extern const u8 gMonIcon_Smeargle[]; +extern const u8 gMonFootprint_Smeargle[]; +extern const u32 gMonFrontPic_Tyrogue[]; +extern const u32 gMonPalette_Tyrogue[]; +extern const u32 gMonBackPic_Tyrogue[]; +extern const u32 gMonShinyPalette_Tyrogue[]; +extern const u8 gMonIcon_Tyrogue[]; +extern const u8 gMonFootprint_Tyrogue[]; +extern const u32 gMonFrontPic_Hitmontop[]; +extern const u32 gMonPalette_Hitmontop[]; +extern const u32 gMonBackPic_Hitmontop[]; +extern const u32 gMonShinyPalette_Hitmontop[]; +extern const u8 gMonIcon_Hitmontop[]; +extern const u8 gMonFootprint_Hitmontop[]; +extern const u32 gMonFrontPic_Smoochum[]; +extern const u32 gMonPalette_Smoochum[]; +extern const u32 gMonBackPic_Smoochum[]; +extern const u32 gMonShinyPalette_Smoochum[]; +extern const u8 gMonIcon_Smoochum[]; +extern const u8 gMonFootprint_Smoochum[]; +extern const u32 gMonFrontPic_Elekid[]; +extern const u32 gMonPalette_Elekid[]; +extern const u32 gMonBackPic_Elekid[]; +extern const u32 gMonShinyPalette_Elekid[]; +extern const u8 gMonIcon_Elekid[]; +extern const u8 gMonFootprint_Elekid[]; +extern const u32 gMonFrontPic_Magby[]; +extern const u32 gMonPalette_Magby[]; +extern const u32 gMonBackPic_Magby[]; +extern const u32 gMonShinyPalette_Magby[]; +extern const u8 gMonIcon_Magby[]; +extern const u8 gMonFootprint_Magby[]; +extern const u32 gMonFrontPic_Miltank[]; +extern const u32 gMonPalette_Miltank[]; +extern const u32 gMonBackPic_Miltank[]; +extern const u32 gMonShinyPalette_Miltank[]; +extern const u8 gMonIcon_Miltank[]; +extern const u8 gMonFootprint_Miltank[]; +extern const u32 gMonFrontPic_Blissey[]; +extern const u32 gMonPalette_Blissey[]; +extern const u32 gMonBackPic_Blissey[]; +extern const u32 gMonShinyPalette_Blissey[]; +extern const u8 gMonIcon_Blissey[]; +extern const u8 gMonFootprint_Blissey[]; +extern const u32 gMonFrontPic_Raikou[]; +extern const u32 gMonPalette_Raikou[]; +extern const u32 gMonBackPic_Raikou[]; +extern const u32 gMonShinyPalette_Raikou[]; +extern const u8 gMonIcon_Raikou[]; +extern const u8 gMonFootprint_Raikou[]; +extern const u32 gMonFrontPic_Entei[]; +extern const u32 gMonPalette_Entei[]; +extern const u32 gMonBackPic_Entei[]; +extern const u32 gMonShinyPalette_Entei[]; +extern const u8 gMonIcon_Entei[]; +extern const u8 gMonFootprint_Entei[]; +extern const u32 gMonFrontPic_Suicune[]; +extern const u32 gMonPalette_Suicune[]; +extern const u32 gMonBackPic_Suicune[]; +extern const u32 gMonShinyPalette_Suicune[]; +extern const u8 gMonIcon_Suicune[]; +extern const u8 gMonFootprint_Suicune[]; +extern const u32 gMonFrontPic_Larvitar[]; +extern const u32 gMonPalette_Larvitar[]; +extern const u32 gMonBackPic_Larvitar[]; +extern const u32 gMonShinyPalette_Larvitar[]; +extern const u8 gMonIcon_Larvitar[]; +extern const u8 gMonFootprint_Larvitar[]; +extern const u32 gMonFrontPic_Pupitar[]; +extern const u32 gMonPalette_Pupitar[]; +extern const u32 gMonBackPic_Pupitar[]; +extern const u32 gMonShinyPalette_Pupitar[]; +extern const u8 gMonIcon_Pupitar[]; +extern const u8 gMonFootprint_Pupitar[]; +extern const u32 gMonFrontPic_Tyranitar[]; +extern const u32 gMonPalette_Tyranitar[]; +extern const u32 gMonBackPic_Tyranitar[]; +extern const u32 gMonShinyPalette_Tyranitar[]; +extern const u8 gMonIcon_Tyranitar[]; +extern const u8 gMonFootprint_Tyranitar[]; +extern const u32 gMonFrontPic_Lugia[]; +extern const u32 gMonPalette_Lugia[]; +extern const u32 gMonBackPic_Lugia[]; +extern const u32 gMonShinyPalette_Lugia[]; +extern const u8 gMonIcon_Lugia[]; +extern const u8 gMonFootprint_Lugia[]; +extern const u32 gMonFrontPic_HoOh[]; +extern const u32 gMonPalette_HoOh[]; +extern const u32 gMonBackPic_HoOh[]; +extern const u32 gMonShinyPalette_HoOh[]; +extern const u8 gMonIcon_HoOh[]; +extern const u8 gMonFootprint_HoOh[]; +extern const u32 gMonFrontPic_Celebi[]; +extern const u32 gMonPalette_Celebi[]; +extern const u32 gMonBackPic_Celebi[]; +extern const u32 gMonShinyPalette_Celebi[]; +extern const u8 gMonIcon_Celebi[]; +extern const u8 gMonFootprint_Celebi[]; +extern const u32 gMonFrontPic_Treecko[]; +extern const u32 gMonPalette_Treecko[]; +extern const u32 gMonBackPic_Treecko[]; +extern const u32 gMonShinyPalette_Treecko[]; +extern const u8 gMonIcon_Treecko[]; +extern const u8 gMonFootprint_Treecko[]; +extern const u32 gMonFrontPic_Grovyle[]; +extern const u32 gMonPalette_Grovyle[]; +extern const u32 gMonBackPic_Grovyle[]; +extern const u32 gMonShinyPalette_Grovyle[]; +extern const u8 gMonIcon_Grovyle[]; +extern const u8 gMonFootprint_Grovyle[]; +extern const u32 gMonFrontPic_Sceptile[]; +extern const u32 gMonPalette_Sceptile[]; +extern const u32 gMonBackPic_Sceptile[]; +extern const u32 gMonShinyPalette_Sceptile[]; +extern const u8 gMonIcon_Sceptile[]; +extern const u8 gMonFootprint_Sceptile[]; +extern const u32 gMonFrontPic_Torchic[]; +extern const u32 gMonPalette_Torchic[]; +extern const u32 gMonBackPic_Torchic[]; +extern const u32 gMonShinyPalette_Torchic[]; +extern const u8 gMonIcon_Torchic[]; +extern const u8 gMonFootprint_Torchic[]; +extern const u32 gMonFrontPic_Combusken[]; +extern const u32 gMonPalette_Combusken[]; +extern const u32 gMonBackPic_Combusken[]; +extern const u32 gMonShinyPalette_Combusken[]; +extern const u8 gMonIcon_Combusken[]; +extern const u8 gMonFootprint_Combusken[]; +extern const u32 gMonFrontPic_Blaziken[]; +extern const u32 gMonPalette_Blaziken[]; +extern const u32 gMonBackPic_Blaziken[]; +extern const u32 gMonShinyPalette_Blaziken[]; +extern const u8 gMonIcon_Blaziken[]; +extern const u8 gMonFootprint_Blaziken[]; +extern const u32 gMonFrontPic_Mudkip[]; +extern const u32 gMonPalette_Mudkip[]; +extern const u32 gMonBackPic_Mudkip[]; +extern const u32 gMonShinyPalette_Mudkip[]; +extern const u8 gMonIcon_Mudkip[]; +extern const u8 gMonFootprint_Mudkip[]; +extern const u32 gMonFrontPic_Marshtomp[]; +extern const u32 gMonPalette_Marshtomp[]; +extern const u32 gMonBackPic_Marshtomp[]; +extern const u32 gMonShinyPalette_Marshtomp[]; +extern const u8 gMonIcon_Marshtomp[]; +extern const u8 gMonFootprint_Marshtomp[]; +extern const u32 gMonFrontPic_Swampert[]; +extern const u32 gMonPalette_Swampert[]; +extern const u32 gMonBackPic_Swampert[]; +extern const u32 gMonShinyPalette_Swampert[]; +extern const u8 gMonIcon_Swampert[]; +extern const u8 gMonFootprint_Swampert[]; +extern const u32 gMonFrontPic_Poochyena[]; +extern const u32 gMonPalette_Poochyena[]; +extern const u32 gMonBackPic_Poochyena[]; +extern const u32 gMonShinyPalette_Poochyena[]; +extern const u8 gMonIcon_Poochyena[]; +extern const u8 gMonFootprint_Poochyena[]; +extern const u32 gMonFrontPic_Mightyena[]; +extern const u32 gMonPalette_Mightyena[]; +extern const u32 gMonBackPic_Mightyena[]; +extern const u32 gMonShinyPalette_Mightyena[]; +extern const u8 gMonIcon_Mightyena[]; +extern const u8 gMonFootprint_Mightyena[]; +extern const u32 gMonFrontPic_Zigzagoon[]; +extern const u32 gMonPalette_Zigzagoon[]; +extern const u32 gMonBackPic_Zigzagoon[]; +extern const u32 gMonShinyPalette_Zigzagoon[]; +extern const u8 gMonIcon_Zigzagoon[]; +extern const u8 gMonFootprint_Zigzagoon[]; +extern const u32 gMonFrontPic_Linoone[]; +extern const u32 gMonPalette_Linoone[]; +extern const u32 gMonBackPic_Linoone[]; +extern const u32 gMonShinyPalette_Linoone[]; +extern const u8 gMonIcon_Linoone[]; +extern const u8 gMonFootprint_Linoone[]; +extern const u32 gMonFrontPic_Wurmple[]; +extern const u32 gMonPalette_Wurmple[]; +extern const u32 gMonBackPic_Wurmple[]; +extern const u32 gMonShinyPalette_Wurmple[]; +extern const u8 gMonIcon_Wurmple[]; +extern const u8 gMonFootprint_Wurmple[]; +extern const u32 gMonFrontPic_Silcoon[]; +extern const u32 gMonPalette_Silcoon[]; +extern const u32 gMonBackPic_Silcoon[]; +extern const u32 gMonShinyPalette_Silcoon[]; +extern const u8 gMonIcon_Silcoon[]; +extern const u8 gMonFootprint_Silcoon[]; +extern const u32 gMonFrontPic_Beautifly[]; +extern const u32 gMonPalette_Beautifly[]; +extern const u32 gMonBackPic_Beautifly[]; +extern const u32 gMonShinyPalette_Beautifly[]; +extern const u8 gMonIcon_Beautifly[]; +extern const u8 gMonFootprint_Beautifly[]; +extern const u32 gMonFrontPic_Cascoon[]; +extern const u32 gMonPalette_Cascoon[]; +extern const u32 gMonBackPic_Cascoon[]; +extern const u32 gMonShinyPalette_Cascoon[]; +extern const u8 gMonIcon_Cascoon[]; +extern const u8 gMonFootprint_Cascoon[]; +extern const u32 gMonFrontPic_Dustox[]; +extern const u32 gMonPalette_Dustox[]; +extern const u32 gMonBackPic_Dustox[]; +extern const u32 gMonShinyPalette_Dustox[]; +extern const u8 gMonIcon_Dustox[]; +extern const u8 gMonFootprint_Dustox[]; +extern const u32 gMonFrontPic_Lotad[]; +extern const u32 gMonPalette_Lotad[]; +extern const u32 gMonBackPic_Lotad[]; +extern const u32 gMonShinyPalette_Lotad[]; +extern const u8 gMonIcon_Lotad[]; +extern const u8 gMonFootprint_Lotad[]; +extern const u32 gMonFrontPic_Lombre[]; +extern const u32 gMonPalette_Lombre[]; +extern const u32 gMonBackPic_Lombre[]; +extern const u32 gMonShinyPalette_Lombre[]; +extern const u8 gMonIcon_Lombre[]; +extern const u8 gMonFootprint_Lombre[]; +extern const u32 gMonFrontPic_Ludicolo[]; +extern const u32 gMonPalette_Ludicolo[]; +extern const u32 gMonBackPic_Ludicolo[]; +extern const u32 gMonShinyPalette_Ludicolo[]; +extern const u8 gMonIcon_Ludicolo[]; +extern const u8 gMonFootprint_Ludicolo[]; +extern const u32 gMonFrontPic_Seedot[]; +extern const u32 gMonPalette_Seedot[]; +extern const u32 gMonBackPic_Seedot[]; +extern const u32 gMonShinyPalette_Seedot[]; +extern const u8 gMonIcon_Seedot[]; +extern const u8 gMonFootprint_Seedot[]; +extern const u32 gMonFrontPic_Nuzleaf[]; +extern const u32 gMonPalette_Nuzleaf[]; +extern const u32 gMonBackPic_Nuzleaf[]; +extern const u32 gMonShinyPalette_Nuzleaf[]; +extern const u8 gMonIcon_Nuzleaf[]; +extern const u8 gMonFootprint_Nuzleaf[]; +extern const u32 gMonFrontPic_Shiftry[]; +extern const u32 gMonPalette_Shiftry[]; +extern const u32 gMonBackPic_Shiftry[]; +extern const u32 gMonShinyPalette_Shiftry[]; +extern const u8 gMonIcon_Shiftry[]; +extern const u8 gMonFootprint_Shiftry[]; +extern const u32 gMonFrontPic_Nincada[]; +extern const u32 gMonPalette_Nincada[]; +extern const u32 gMonBackPic_Nincada[]; +extern const u32 gMonShinyPalette_Nincada[]; +extern const u8 gMonIcon_Nincada[]; +extern const u8 gMonFootprint_Nincada[]; +extern const u32 gMonFrontPic_Ninjask[]; +extern const u32 gMonPalette_Ninjask[]; +extern const u32 gMonBackPic_Ninjask[]; +extern const u32 gMonShinyPalette_Ninjask[]; +extern const u8 gMonIcon_Ninjask[]; +extern const u8 gMonFootprint_Ninjask[]; +extern const u32 gMonFrontPic_Shedinja[]; +extern const u32 gMonPalette_Shedinja[]; +extern const u32 gMonBackPic_Shedinja[]; +extern const u32 gMonShinyPalette_Shedinja[]; +extern const u8 gMonIcon_Shedinja[]; +extern const u8 gMonFootprint_Shedinja[]; +extern const u32 gMonFrontPic_Taillow[]; +extern const u32 gMonPalette_Taillow[]; +extern const u32 gMonBackPic_Taillow[]; +extern const u32 gMonShinyPalette_Taillow[]; +extern const u8 gMonIcon_Taillow[]; +extern const u8 gMonFootprint_Taillow[]; +extern const u32 gMonFrontPic_Swellow[]; +extern const u32 gMonPalette_Swellow[]; +extern const u32 gMonBackPic_Swellow[]; +extern const u32 gMonShinyPalette_Swellow[]; +extern const u8 gMonIcon_Swellow[]; +extern const u8 gMonFootprint_Swellow[]; +extern const u32 gMonFrontPic_Shroomish[]; +extern const u32 gMonPalette_Shroomish[]; +extern const u32 gMonBackPic_Shroomish[]; +extern const u32 gMonShinyPalette_Shroomish[]; +extern const u8 gMonIcon_Shroomish[]; +extern const u8 gMonFootprint_Shroomish[]; +extern const u32 gMonFrontPic_Breloom[]; +extern const u32 gMonPalette_Breloom[]; +extern const u32 gMonBackPic_Breloom[]; +extern const u32 gMonShinyPalette_Breloom[]; +extern const u8 gMonIcon_Breloom[]; +extern const u8 gMonFootprint_Breloom[]; +extern const u32 gMonFrontPic_Spinda[]; +extern const u32 gMonPalette_Spinda[]; +extern const u32 gMonBackPic_Spinda[]; +extern const u32 gMonShinyPalette_Spinda[]; +extern const u8 gMonIcon_Spinda[]; +extern const u8 gMonFootprint_Spinda[]; +extern const u32 gMonFrontPic_Wingull[]; +extern const u32 gMonPalette_Wingull[]; +extern const u32 gMonBackPic_Wingull[]; +extern const u32 gMonShinyPalette_Wingull[]; +extern const u8 gMonIcon_Wingull[]; +extern const u8 gMonFootprint_Wingull[]; +extern const u32 gMonFrontPic_Pelipper[]; +extern const u32 gMonPalette_Pelipper[]; +extern const u32 gMonBackPic_Pelipper[]; +extern const u32 gMonShinyPalette_Pelipper[]; +extern const u8 gMonIcon_Pelipper[]; +extern const u8 gMonFootprint_Pelipper[]; +extern const u32 gMonFrontPic_Surskit[]; +extern const u32 gMonPalette_Surskit[]; +extern const u32 gMonBackPic_Surskit[]; +extern const u32 gMonShinyPalette_Surskit[]; +extern const u8 gMonIcon_Surskit[]; +extern const u8 gMonFootprint_Surskit[]; +extern const u32 gMonFrontPic_Masquerain[]; +extern const u32 gMonPalette_Masquerain[]; +extern const u32 gMonBackPic_Masquerain[]; +extern const u32 gMonShinyPalette_Masquerain[]; +extern const u8 gMonIcon_Masquerain[]; +extern const u8 gMonFootprint_Masquerain[]; +extern const u32 gMonFrontPic_Wailmer[]; +extern const u32 gMonPalette_Wailmer[]; +extern const u32 gMonBackPic_Wailmer[]; +extern const u32 gMonShinyPalette_Wailmer[]; +extern const u8 gMonIcon_Wailmer[]; +extern const u8 gMonFootprint_Wailmer[]; +extern const u32 gMonFrontPic_Wailord[]; +extern const u32 gMonPalette_Wailord[]; +extern const u32 gMonBackPic_Wailord[]; +extern const u32 gMonShinyPalette_Wailord[]; +extern const u8 gMonIcon_Wailord[]; +extern const u8 gMonFootprint_Wailord[]; +extern const u32 gMonFrontPic_Skitty[]; +extern const u32 gMonPalette_Skitty[]; +extern const u32 gMonBackPic_Skitty[]; +extern const u32 gMonShinyPalette_Skitty[]; +extern const u8 gMonIcon_Skitty[]; +extern const u8 gMonFootprint_Skitty[]; +extern const u32 gMonFrontPic_Delcatty[]; +extern const u32 gMonPalette_Delcatty[]; +extern const u32 gMonBackPic_Delcatty[]; +extern const u32 gMonShinyPalette_Delcatty[]; +extern const u8 gMonIcon_Delcatty[]; +extern const u8 gMonFootprint_Delcatty[]; +extern const u32 gMonFrontPic_Kecleon[]; +extern const u32 gMonPalette_Kecleon[]; +extern const u32 gMonBackPic_Kecleon[]; +extern const u32 gMonShinyPalette_Kecleon[]; +extern const u8 gMonIcon_Kecleon[]; +extern const u8 gMonFootprint_Kecleon[]; +extern const u32 gMonFrontPic_Baltoy[]; +extern const u32 gMonPalette_Baltoy[]; +extern const u32 gMonBackPic_Baltoy[]; +extern const u32 gMonShinyPalette_Baltoy[]; +extern const u8 gMonIcon_Baltoy[]; +extern const u8 gMonFootprint_Baltoy[]; +extern const u32 gMonFrontPic_Claydol[]; +extern const u32 gMonPalette_Claydol[]; +extern const u32 gMonBackPic_Claydol[]; +extern const u32 gMonShinyPalette_Claydol[]; +extern const u8 gMonIcon_Claydol[]; +extern const u8 gMonFootprint_Claydol[]; +extern const u32 gMonFrontPic_Nosepass[]; +extern const u32 gMonPalette_Nosepass[]; +extern const u32 gMonBackPic_Nosepass[]; +extern const u32 gMonShinyPalette_Nosepass[]; +extern const u8 gMonIcon_Nosepass[]; +extern const u8 gMonFootprint_Nosepass[]; +extern const u32 gMonFrontPic_Torkoal[]; +extern const u32 gMonPalette_Torkoal[]; +extern const u32 gMonBackPic_Torkoal[]; +extern const u32 gMonShinyPalette_Torkoal[]; +extern const u8 gMonIcon_Torkoal[]; +extern const u8 gMonFootprint_Torkoal[]; +extern const u32 gMonFrontPic_Sableye[]; +extern const u32 gMonPalette_Sableye[]; +extern const u32 gMonBackPic_Sableye[]; +extern const u32 gMonShinyPalette_Sableye[]; +extern const u8 gMonIcon_Sableye[]; +extern const u8 gMonFootprint_Sableye[]; +extern const u32 gMonFrontPic_Barboach[]; +extern const u32 gMonPalette_Barboach[]; +extern const u32 gMonBackPic_Barboach[]; +extern const u32 gMonShinyPalette_Barboach[]; +extern const u8 gMonIcon_Barboach[]; +extern const u8 gMonFootprint_Barboach[]; +extern const u32 gMonFrontPic_Whiscash[]; +extern const u32 gMonPalette_Whiscash[]; +extern const u32 gMonBackPic_Whiscash[]; +extern const u32 gMonShinyPalette_Whiscash[]; +extern const u8 gMonIcon_Whiscash[]; +extern const u8 gMonFootprint_Whiscash[]; +extern const u32 gMonFrontPic_Luvdisc[]; +extern const u32 gMonPalette_Luvdisc[]; +extern const u32 gMonBackPic_Luvdisc[]; +extern const u32 gMonShinyPalette_Luvdisc[]; +extern const u8 gMonIcon_Luvdisc[]; +extern const u8 gMonFootprint_Luvdisc[]; +extern const u32 gMonFrontPic_Corphish[]; +extern const u32 gMonPalette_Corphish[]; +extern const u32 gMonBackPic_Corphish[]; +extern const u32 gMonShinyPalette_Corphish[]; +extern const u8 gMonIcon_Corphish[]; +extern const u8 gMonFootprint_Corphish[]; +extern const u32 gMonFrontPic_Crawdaunt[]; +extern const u32 gMonPalette_Crawdaunt[]; +extern const u32 gMonBackPic_Crawdaunt[]; +extern const u32 gMonShinyPalette_Crawdaunt[]; +extern const u8 gMonIcon_Crawdaunt[]; +extern const u8 gMonFootprint_Crawdaunt[]; +extern const u32 gMonFrontPic_Feebas[]; +extern const u32 gMonPalette_Feebas[]; +extern const u32 gMonBackPic_Feebas[]; +extern const u32 gMonShinyPalette_Feebas[]; +extern const u8 gMonIcon_Feebas[]; +extern const u8 gMonFootprint_Feebas[]; +extern const u32 gMonFrontPic_Milotic[]; +extern const u32 gMonPalette_Milotic[]; +extern const u32 gMonBackPic_Milotic[]; +extern const u32 gMonShinyPalette_Milotic[]; +extern const u8 gMonIcon_Milotic[]; +extern const u8 gMonFootprint_Milotic[]; +extern const u32 gMonFrontPic_Carvanha[]; +extern const u32 gMonPalette_Carvanha[]; +extern const u32 gMonBackPic_Carvanha[]; +extern const u32 gMonShinyPalette_Carvanha[]; +extern const u8 gMonIcon_Carvanha[]; +extern const u8 gMonFootprint_Carvanha[]; +extern const u32 gMonFrontPic_Sharpedo[]; +extern const u32 gMonPalette_Sharpedo[]; +extern const u32 gMonBackPic_Sharpedo[]; +extern const u32 gMonShinyPalette_Sharpedo[]; +extern const u8 gMonIcon_Sharpedo[]; +extern const u8 gMonFootprint_Sharpedo[]; +extern const u32 gMonFrontPic_Trapinch[]; +extern const u32 gMonPalette_Trapinch[]; +extern const u32 gMonBackPic_Trapinch[]; +extern const u32 gMonShinyPalette_Trapinch[]; +extern const u8 gMonIcon_Trapinch[]; +extern const u8 gMonFootprint_Trapinch[]; +extern const u32 gMonFrontPic_Vibrava[]; +extern const u32 gMonPalette_Vibrava[]; +extern const u32 gMonBackPic_Vibrava[]; +extern const u32 gMonShinyPalette_Vibrava[]; +extern const u8 gMonIcon_Vibrava[]; +extern const u8 gMonFootprint_Vibrava[]; +extern const u32 gMonFrontPic_Flygon[]; +extern const u32 gMonPalette_Flygon[]; +extern const u32 gMonBackPic_Flygon[]; +extern const u32 gMonShinyPalette_Flygon[]; +extern const u8 gMonIcon_Flygon[]; +extern const u8 gMonFootprint_Flygon[]; +extern const u32 gMonFrontPic_Makuhita[]; +extern const u32 gMonPalette_Makuhita[]; +extern const u32 gMonBackPic_Makuhita[]; +extern const u32 gMonShinyPalette_Makuhita[]; +extern const u8 gMonIcon_Makuhita[]; +extern const u8 gMonFootprint_Makuhita[]; +extern const u32 gMonFrontPic_Hariyama[]; +extern const u32 gMonPalette_Hariyama[]; +extern const u32 gMonBackPic_Hariyama[]; +extern const u32 gMonShinyPalette_Hariyama[]; +extern const u8 gMonIcon_Hariyama[]; +extern const u8 gMonFootprint_Hariyama[]; +extern const u32 gMonFrontPic_Electrike[]; +extern const u32 gMonPalette_Electrike[]; +extern const u32 gMonBackPic_Electrike[]; +extern const u32 gMonShinyPalette_Electrike[]; +extern const u8 gMonIcon_Electrike[]; +extern const u8 gMonFootprint_Electrike[]; +extern const u32 gMonFrontPic_Manectric[]; +extern const u32 gMonPalette_Manectric[]; +extern const u32 gMonBackPic_Manectric[]; +extern const u32 gMonShinyPalette_Manectric[]; +extern const u8 gMonIcon_Manectric[]; +extern const u8 gMonFootprint_Manectric[]; +extern const u32 gMonFrontPic_Numel[]; +extern const u32 gMonPalette_Numel[]; +extern const u32 gMonBackPic_Numel[]; +extern const u32 gMonShinyPalette_Numel[]; +extern const u8 gMonIcon_Numel[]; +extern const u8 gMonFootprint_Numel[]; +extern const u32 gMonFrontPic_Camerupt[]; +extern const u32 gMonPalette_Camerupt[]; +extern const u32 gMonBackPic_Camerupt[]; +extern const u32 gMonShinyPalette_Camerupt[]; +extern const u8 gMonIcon_Camerupt[]; +extern const u8 gMonFootprint_Camerupt[]; +extern const u32 gMonFrontPic_Spheal[]; +extern const u32 gMonPalette_Spheal[]; +extern const u32 gMonBackPic_Spheal[]; +extern const u32 gMonShinyPalette_Spheal[]; +extern const u8 gMonIcon_Spheal[]; +extern const u8 gMonFootprint_Spheal[]; +extern const u32 gMonFrontPic_Sealeo[]; +extern const u32 gMonPalette_Sealeo[]; +extern const u32 gMonBackPic_Sealeo[]; +extern const u32 gMonShinyPalette_Sealeo[]; +extern const u8 gMonIcon_Sealeo[]; +extern const u8 gMonFootprint_Sealeo[]; +extern const u32 gMonFrontPic_Walrein[]; +extern const u32 gMonPalette_Walrein[]; +extern const u32 gMonBackPic_Walrein[]; +extern const u32 gMonShinyPalette_Walrein[]; +extern const u8 gMonIcon_Walrein[]; +extern const u8 gMonFootprint_Walrein[]; +extern const u32 gMonFrontPic_Cacnea[]; +extern const u32 gMonPalette_Cacnea[]; +extern const u32 gMonBackPic_Cacnea[]; +extern const u32 gMonShinyPalette_Cacnea[]; +extern const u8 gMonIcon_Cacnea[]; +extern const u8 gMonFootprint_Cacnea[]; +extern const u32 gMonFrontPic_Cacturne[]; +extern const u32 gMonPalette_Cacturne[]; +extern const u32 gMonBackPic_Cacturne[]; +extern const u32 gMonShinyPalette_Cacturne[]; +extern const u8 gMonIcon_Cacturne[]; +extern const u8 gMonFootprint_Cacturne[]; +extern const u32 gMonFrontPic_Snorunt[]; +extern const u32 gMonPalette_Snorunt[]; +extern const u32 gMonBackPic_Snorunt[]; +extern const u32 gMonShinyPalette_Snorunt[]; +extern const u8 gMonIcon_Snorunt[]; +extern const u8 gMonFootprint_Snorunt[]; +extern const u32 gMonFrontPic_Glalie[]; +extern const u32 gMonPalette_Glalie[]; +extern const u32 gMonBackPic_Glalie[]; +extern const u32 gMonShinyPalette_Glalie[]; +extern const u8 gMonIcon_Glalie[]; +extern const u8 gMonFootprint_Glalie[]; +extern const u32 gMonFrontPic_Lunatone[]; +extern const u32 gMonPalette_Lunatone[]; +extern const u32 gMonBackPic_Lunatone[]; +extern const u32 gMonShinyPalette_Lunatone[]; +extern const u8 gMonIcon_Lunatone[]; +extern const u8 gMonFootprint_Lunatone[]; +extern const u32 gMonFrontPic_Solrock[]; +extern const u32 gMonPalette_Solrock[]; +extern const u32 gMonBackPic_Solrock[]; +extern const u32 gMonShinyPalette_Solrock[]; +extern const u8 gMonIcon_Solrock[]; +extern const u8 gMonFootprint_Solrock[]; +extern const u32 gMonFrontPic_Azurill[]; +extern const u32 gMonPalette_Azurill[]; +extern const u32 gMonBackPic_Azurill[]; +extern const u32 gMonShinyPalette_Azurill[]; +extern const u8 gMonIcon_Azurill[]; +extern const u8 gMonFootprint_Azurill[]; +extern const u32 gMonFrontPic_Spoink[]; +extern const u32 gMonPalette_Spoink[]; +extern const u32 gMonBackPic_Spoink[]; +extern const u32 gMonShinyPalette_Spoink[]; +extern const u8 gMonIcon_Spoink[]; +extern const u8 gMonFootprint_Spoink[]; +extern const u32 gMonFrontPic_Grumpig[]; +extern const u32 gMonPalette_Grumpig[]; +extern const u32 gMonBackPic_Grumpig[]; +extern const u32 gMonShinyPalette_Grumpig[]; +extern const u8 gMonIcon_Grumpig[]; +extern const u8 gMonFootprint_Grumpig[]; +extern const u32 gMonFrontPic_Plusle[]; +extern const u32 gMonPalette_Plusle[]; +extern const u32 gMonBackPic_Plusle[]; +extern const u32 gMonShinyPalette_Plusle[]; +extern const u8 gMonIcon_Plusle[]; +extern const u8 gMonFootprint_Plusle[]; +extern const u32 gMonFrontPic_Minun[]; +extern const u32 gMonPalette_Minun[]; +extern const u32 gMonBackPic_Minun[]; +extern const u32 gMonShinyPalette_Minun[]; +extern const u8 gMonIcon_Minun[]; +extern const u8 gMonFootprint_Minun[]; +extern const u32 gMonFrontPic_Mawile[]; +extern const u32 gMonPalette_Mawile[]; +extern const u32 gMonBackPic_Mawile[]; +extern const u32 gMonShinyPalette_Mawile[]; +extern const u8 gMonIcon_Mawile[]; +extern const u8 gMonFootprint_Mawile[]; +extern const u32 gMonFrontPic_Meditite[]; +extern const u32 gMonPalette_Meditite[]; +extern const u32 gMonBackPic_Meditite[]; +extern const u32 gMonShinyPalette_Meditite[]; +extern const u8 gMonIcon_Meditite[]; +extern const u8 gMonFootprint_Meditite[]; +extern const u32 gMonFrontPic_Medicham[]; +extern const u32 gMonPalette_Medicham[]; +extern const u32 gMonBackPic_Medicham[]; +extern const u32 gMonShinyPalette_Medicham[]; +extern const u8 gMonIcon_Medicham[]; +extern const u8 gMonFootprint_Medicham[]; +extern const u32 gMonFrontPic_Swablu[]; +extern const u32 gMonPalette_Swablu[]; +extern const u32 gMonBackPic_Swablu[]; +extern const u32 gMonShinyPalette_Swablu[]; +extern const u8 gMonIcon_Swablu[]; +extern const u8 gMonFootprint_Swablu[]; +extern const u32 gMonFrontPic_Altaria[]; +extern const u32 gMonPalette_Altaria[]; +extern const u32 gMonBackPic_Altaria[]; +extern const u32 gMonShinyPalette_Altaria[]; +extern const u8 gMonIcon_Altaria[]; +extern const u8 gMonFootprint_Altaria[]; +extern const u32 gMonFrontPic_Wynaut[]; +extern const u32 gMonPalette_Wynaut[]; +extern const u32 gMonBackPic_Wynaut[]; +extern const u32 gMonShinyPalette_Wynaut[]; +extern const u8 gMonIcon_Wynaut[]; +extern const u8 gMonFootprint_Wynaut[]; +extern const u32 gMonFrontPic_Duskull[]; +extern const u32 gMonPalette_Duskull[]; +extern const u32 gMonBackPic_Duskull[]; +extern const u32 gMonShinyPalette_Duskull[]; +extern const u8 gMonIcon_Duskull[]; +extern const u8 gMonFootprint_Duskull[]; +extern const u32 gMonFrontPic_Dusclops[]; +extern const u32 gMonPalette_Dusclops[]; +extern const u32 gMonBackPic_Dusclops[]; +extern const u32 gMonShinyPalette_Dusclops[]; +extern const u8 gMonIcon_Dusclops[]; +extern const u8 gMonFootprint_Dusclops[]; +extern const u32 gMonFrontPic_Roselia[]; +extern const u32 gMonPalette_Roselia[]; +extern const u32 gMonBackPic_Roselia[]; +extern const u32 gMonShinyPalette_Roselia[]; +extern const u8 gMonIcon_Roselia[]; +extern const u8 gMonFootprint_Roselia[]; +extern const u32 gMonFrontPic_Slakoth[]; +extern const u32 gMonPalette_Slakoth[]; +extern const u32 gMonBackPic_Slakoth[]; +extern const u32 gMonShinyPalette_Slakoth[]; +extern const u8 gMonIcon_Slakoth[]; +extern const u8 gMonFootprint_Slakoth[]; +extern const u32 gMonFrontPic_Vigoroth[]; +extern const u32 gMonPalette_Vigoroth[]; +extern const u32 gMonBackPic_Vigoroth[]; +extern const u32 gMonShinyPalette_Vigoroth[]; +extern const u8 gMonIcon_Vigoroth[]; +extern const u8 gMonFootprint_Vigoroth[]; +extern const u32 gMonFrontPic_Slaking[]; +extern const u32 gMonPalette_Slaking[]; +extern const u32 gMonBackPic_Slaking[]; +extern const u32 gMonShinyPalette_Slaking[]; +extern const u8 gMonIcon_Slaking[]; +extern const u8 gMonFootprint_Slaking[]; +extern const u32 gMonFrontPic_Gulpin[]; +extern const u32 gMonPalette_Gulpin[]; +extern const u32 gMonBackPic_Gulpin[]; +extern const u32 gMonShinyPalette_Gulpin[]; +extern const u8 gMonIcon_Gulpin[]; +extern const u8 gMonFootprint_Gulpin[]; +extern const u32 gMonFrontPic_Swalot[]; +extern const u32 gMonPalette_Swalot[]; +extern const u32 gMonBackPic_Swalot[]; +extern const u32 gMonShinyPalette_Swalot[]; +extern const u8 gMonIcon_Swalot[]; +extern const u8 gMonFootprint_Swalot[]; +extern const u32 gMonFrontPic_Tropius[]; +extern const u32 gMonPalette_Tropius[]; +extern const u32 gMonBackPic_Tropius[]; +extern const u32 gMonShinyPalette_Tropius[]; +extern const u8 gMonIcon_Tropius[]; +extern const u8 gMonFootprint_Tropius[]; +extern const u32 gMonFrontPic_Whismur[]; +extern const u32 gMonPalette_Whismur[]; +extern const u32 gMonBackPic_Whismur[]; +extern const u32 gMonShinyPalette_Whismur[]; +extern const u8 gMonIcon_Whismur[]; +extern const u8 gMonFootprint_Whismur[]; +extern const u32 gMonFrontPic_Loudred[]; +extern const u32 gMonPalette_Loudred[]; +extern const u32 gMonBackPic_Loudred[]; +extern const u32 gMonShinyPalette_Loudred[]; +extern const u8 gMonIcon_Loudred[]; +extern const u8 gMonFootprint_Loudred[]; +extern const u32 gMonFrontPic_Exploud[]; +extern const u32 gMonPalette_Exploud[]; +extern const u32 gMonBackPic_Exploud[]; +extern const u32 gMonShinyPalette_Exploud[]; +extern const u8 gMonIcon_Exploud[]; +extern const u8 gMonFootprint_Exploud[]; +extern const u32 gMonFrontPic_Clamperl[]; +extern const u32 gMonPalette_Clamperl[]; +extern const u32 gMonBackPic_Clamperl[]; +extern const u32 gMonShinyPalette_Clamperl[]; +extern const u8 gMonIcon_Clamperl[]; +extern const u8 gMonFootprint_Clamperl[]; +extern const u32 gMonFrontPic_Huntail[]; +extern const u32 gMonPalette_Huntail[]; +extern const u32 gMonBackPic_Huntail[]; +extern const u32 gMonShinyPalette_Huntail[]; +extern const u8 gMonIcon_Huntail[]; +extern const u8 gMonFootprint_Huntail[]; +extern const u32 gMonFrontPic_Gorebyss[]; +extern const u32 gMonPalette_Gorebyss[]; +extern const u32 gMonBackPic_Gorebyss[]; +extern const u32 gMonShinyPalette_Gorebyss[]; +extern const u8 gMonIcon_Gorebyss[]; +extern const u8 gMonFootprint_Gorebyss[]; +extern const u32 gMonFrontPic_Absol[]; +extern const u32 gMonPalette_Absol[]; +extern const u32 gMonBackPic_Absol[]; +extern const u32 gMonShinyPalette_Absol[]; +extern const u8 gMonIcon_Absol[]; +extern const u8 gMonFootprint_Absol[]; +extern const u32 gMonFrontPic_Shuppet[]; +extern const u32 gMonPalette_Shuppet[]; +extern const u32 gMonBackPic_Shuppet[]; +extern const u32 gMonShinyPalette_Shuppet[]; +extern const u8 gMonIcon_Shuppet[]; +extern const u8 gMonFootprint_Shuppet[]; +extern const u32 gMonFrontPic_Banette[]; +extern const u32 gMonPalette_Banette[]; +extern const u32 gMonBackPic_Banette[]; +extern const u32 gMonShinyPalette_Banette[]; +extern const u8 gMonIcon_Banette[]; +extern const u8 gMonFootprint_Banette[]; +extern const u32 gMonFrontPic_Seviper[]; +extern const u32 gMonPalette_Seviper[]; +extern const u32 gMonBackPic_Seviper[]; +extern const u32 gMonShinyPalette_Seviper[]; +extern const u8 gMonIcon_Seviper[]; +extern const u8 gMonFootprint_Seviper[]; +extern const u32 gMonFrontPic_Zangoose[]; +extern const u32 gMonPalette_Zangoose[]; +extern const u32 gMonBackPic_Zangoose[]; +extern const u32 gMonShinyPalette_Zangoose[]; +extern const u8 gMonIcon_Zangoose[]; +extern const u8 gMonFootprint_Zangoose[]; +extern const u32 gMonFrontPic_Relicanth[]; +extern const u32 gMonPalette_Relicanth[]; +extern const u32 gMonBackPic_Relicanth[]; +extern const u32 gMonShinyPalette_Relicanth[]; +extern const u8 gMonIcon_Relicanth[]; +extern const u8 gMonFootprint_Relicanth[]; +extern const u32 gMonFrontPic_Aron[]; +extern const u32 gMonPalette_Aron[]; +extern const u32 gMonBackPic_Aron[]; +extern const u32 gMonShinyPalette_Aron[]; +extern const u8 gMonIcon_Aron[]; +extern const u8 gMonFootprint_Aron[]; +extern const u32 gMonFrontPic_Lairon[]; +extern const u32 gMonPalette_Lairon[]; +extern const u32 gMonBackPic_Lairon[]; +extern const u32 gMonShinyPalette_Lairon[]; +extern const u8 gMonIcon_Lairon[]; +extern const u8 gMonFootprint_Lairon[]; +extern const u32 gMonFrontPic_Aggron[]; +extern const u32 gMonPalette_Aggron[]; +extern const u32 gMonBackPic_Aggron[]; +extern const u32 gMonShinyPalette_Aggron[]; +extern const u8 gMonIcon_Aggron[]; +extern const u8 gMonFootprint_Aggron[]; +extern const u32 gMonFrontPic_Castform[]; +extern const u32 gMonPalette_Castform[]; +extern const u32 gMonBackPic_Castform[]; +extern const u32 gMonShinyPalette_Castform[]; +extern const u8 gMonIcon_Castform[]; +extern const u8 gMonFootprint_Castform[]; +extern const u32 gMonFrontPic_Volbeat[]; +extern const u32 gMonPalette_Volbeat[]; +extern const u32 gMonBackPic_Volbeat[]; +extern const u32 gMonShinyPalette_Volbeat[]; +extern const u8 gMonIcon_Volbeat[]; +extern const u8 gMonFootprint_Volbeat[]; +extern const u32 gMonFrontPic_Illumise[]; +extern const u32 gMonPalette_Illumise[]; +extern const u32 gMonBackPic_Illumise[]; +extern const u32 gMonShinyPalette_Illumise[]; +extern const u8 gMonIcon_Illumise[]; +extern const u8 gMonFootprint_Illumise[]; +extern const u32 gMonFrontPic_Lileep[]; +extern const u32 gMonPalette_Lileep[]; +extern const u32 gMonBackPic_Lileep[]; +extern const u32 gMonShinyPalette_Lileep[]; +extern const u8 gMonIcon_Lileep[]; +extern const u8 gMonFootprint_Lileep[]; +extern const u32 gMonFrontPic_Cradily[]; +extern const u32 gMonPalette_Cradily[]; +extern const u32 gMonBackPic_Cradily[]; +extern const u32 gMonShinyPalette_Cradily[]; +extern const u8 gMonIcon_Cradily[]; +extern const u8 gMonFootprint_Cradily[]; +extern const u32 gMonFrontPic_Anorith[]; +extern const u32 gMonPalette_Anorith[]; +extern const u32 gMonBackPic_Anorith[]; +extern const u32 gMonShinyPalette_Anorith[]; +extern const u8 gMonIcon_Anorith[]; +extern const u8 gMonFootprint_Anorith[]; +extern const u32 gMonFrontPic_Armaldo[]; +extern const u32 gMonPalette_Armaldo[]; +extern const u32 gMonBackPic_Armaldo[]; +extern const u32 gMonShinyPalette_Armaldo[]; +extern const u8 gMonIcon_Armaldo[]; +extern const u8 gMonFootprint_Armaldo[]; +extern const u32 gMonFrontPic_Ralts[]; +extern const u32 gMonPalette_Ralts[]; +extern const u32 gMonBackPic_Ralts[]; +extern const u32 gMonShinyPalette_Ralts[]; +extern const u8 gMonIcon_Ralts[]; +extern const u8 gMonFootprint_Ralts[]; +extern const u32 gMonFrontPic_Kirlia[]; +extern const u32 gMonPalette_Kirlia[]; +extern const u32 gMonBackPic_Kirlia[]; +extern const u32 gMonShinyPalette_Kirlia[]; +extern const u8 gMonIcon_Kirlia[]; +extern const u8 gMonFootprint_Kirlia[]; +extern const u32 gMonFrontPic_Gardevoir[]; +extern const u32 gMonPalette_Gardevoir[]; +extern const u32 gMonBackPic_Gardevoir[]; +extern const u32 gMonShinyPalette_Gardevoir[]; +extern const u8 gMonIcon_Gardevoir[]; +extern const u8 gMonFootprint_Gardevoir[]; +extern const u32 gMonFrontPic_Bagon[]; +extern const u32 gMonPalette_Bagon[]; +extern const u32 gMonBackPic_Bagon[]; +extern const u32 gMonShinyPalette_Bagon[]; +extern const u8 gMonIcon_Bagon[]; +extern const u8 gMonFootprint_Bagon[]; +extern const u32 gMonFrontPic_Shelgon[]; +extern const u32 gMonPalette_Shelgon[]; +extern const u32 gMonBackPic_Shelgon[]; +extern const u32 gMonShinyPalette_Shelgon[]; +extern const u8 gMonIcon_Shelgon[]; +extern const u8 gMonFootprint_Shelgon[]; +extern const u32 gMonFrontPic_Salamence[]; +extern const u32 gMonPalette_Salamence[]; +extern const u32 gMonBackPic_Salamence[]; +extern const u32 gMonShinyPalette_Salamence[]; +extern const u8 gMonIcon_Salamence[]; +extern const u8 gMonFootprint_Salamence[]; +extern const u32 gMonFrontPic_Beldum[]; +extern const u32 gMonPalette_Beldum[]; +extern const u32 gMonBackPic_Beldum[]; +extern const u32 gMonShinyPalette_Beldum[]; +extern const u8 gMonIcon_Beldum[]; +extern const u8 gMonFootprint_Beldum[]; +extern const u32 gMonFrontPic_Metang[]; +extern const u32 gMonPalette_Metang[]; +extern const u32 gMonBackPic_Metang[]; +extern const u32 gMonShinyPalette_Metang[]; +extern const u8 gMonIcon_Metang[]; +extern const u8 gMonFootprint_Metang[]; +extern const u32 gMonFrontPic_Metagross[]; +extern const u32 gMonPalette_Metagross[]; +extern const u32 gMonBackPic_Metagross[]; +extern const u32 gMonShinyPalette_Metagross[]; +extern const u8 gMonIcon_Metagross[]; +extern const u8 gMonFootprint_Metagross[]; +extern const u32 gMonFrontPic_Regirock[]; +extern const u32 gMonPalette_Regirock[]; +extern const u32 gMonBackPic_Regirock[]; +extern const u32 gMonShinyPalette_Regirock[]; +extern const u8 gMonIcon_Regirock[]; +extern const u8 gMonFootprint_Regirock[]; +extern const u32 gMonFrontPic_Regice[]; +extern const u32 gMonPalette_Regice[]; +extern const u32 gMonBackPic_Regice[]; +extern const u32 gMonShinyPalette_Regice[]; +extern const u8 gMonIcon_Regice[]; +extern const u8 gMonFootprint_Regice[]; +extern const u32 gMonFrontPic_Registeel[]; +extern const u32 gMonPalette_Registeel[]; +extern const u32 gMonBackPic_Registeel[]; +extern const u32 gMonShinyPalette_Registeel[]; +extern const u8 gMonIcon_Registeel[]; +extern const u8 gMonFootprint_Registeel[]; +extern const u32 gMonFrontPic_Kyogre[]; +extern const u32 gMonPalette_Kyogre[]; +extern const u32 gMonBackPic_Kyogre[]; +extern const u32 gMonShinyPalette_Kyogre[]; +extern const u8 gMonIcon_Kyogre[]; +extern const u8 gMonFootprint_Kyogre[]; +extern const u32 gMonFrontPic_Groudon[]; +extern const u32 gMonPalette_Groudon[]; +extern const u32 gMonBackPic_Groudon[]; +extern const u32 gMonShinyPalette_Groudon[]; +extern const u8 gMonIcon_Groudon[]; +extern const u8 gMonFootprint_Groudon[]; +extern const u32 gMonFrontPic_Rayquaza[]; +extern const u32 gMonPalette_Rayquaza[]; +extern const u32 gMonBackPic_Rayquaza[]; +extern const u32 gMonShinyPalette_Rayquaza[]; +extern const u8 gMonIcon_Rayquaza[]; +extern const u8 gMonFootprint_Rayquaza[]; +extern const u32 gMonFrontPic_Latias[]; +extern const u32 gMonPalette_Latias[]; +extern const u32 gMonBackPic_Latias[]; +extern const u32 gMonShinyPalette_Latias[]; +extern const u8 gMonIcon_Latias[]; +extern const u8 gMonFootprint_Latias[]; +extern const u32 gMonFrontPic_Latios[]; +extern const u32 gMonPalette_Latios[]; +extern const u32 gMonBackPic_Latios[]; +extern const u32 gMonShinyPalette_Latios[]; +extern const u8 gMonIcon_Latios[]; +extern const u8 gMonFootprint_Latios[]; +extern const u32 gMonFrontPic_Jirachi[]; +extern const u32 gMonPalette_Jirachi[]; +extern const u32 gMonBackPic_Jirachi[]; +extern const u32 gMonShinyPalette_Jirachi[]; +extern const u8 gMonIcon_Jirachi[]; +extern const u8 gMonFootprint_Jirachi[]; +extern const u32 gMonFrontPic_Deoxys[]; +extern const u32 gMonPalette_Deoxys[]; +extern const u32 gMonBackPic_Deoxys[]; +extern const u32 gMonShinyPalette_Deoxys[]; +extern const u8 gMonIcon_Deoxys[]; +extern const u8 gMonFootprint_Deoxys[]; +extern const u32 gMonFrontPic_Chimecho[]; +extern const u32 gMonPalette_Chimecho[]; +extern const u32 gMonBackPic_Chimecho[]; +extern const u32 gMonShinyPalette_Chimecho[]; +extern const u8 gMonIcon_Chimecho[]; +extern const u8 gMonFootprint_Chimecho[]; +extern const u32 gMonFrontPic_Egg[]; +extern const u32 gMonPalette_Egg[]; +extern const u8 gMonIcon_Egg[]; +extern const u32 gMonFrontPic_UnownB[]; +extern const u32 gMonBackPic_UnownB[]; +extern const u8 gMonIcon_UnownB[]; +extern const u32 gMonFrontPic_UnownC[]; +extern const u32 gMonBackPic_UnownC[]; +extern const u8 gMonIcon_UnownC[]; +extern const u32 gMonFrontPic_UnownD[]; +extern const u32 gMonBackPic_UnownD[]; +extern const u8 gMonIcon_UnownD[]; +extern const u32 gMonFrontPic_UnownE[]; +extern const u32 gMonBackPic_UnownE[]; +extern const u8 gMonIcon_UnownE[]; +extern const u32 gMonFrontPic_UnownF[]; +extern const u32 gMonBackPic_UnownF[]; +extern const u8 gMonIcon_UnownF[]; +extern const u32 gMonFrontPic_UnownG[]; +extern const u32 gMonBackPic_UnownG[]; +extern const u8 gMonIcon_UnownG[]; +extern const u32 gMonFrontPic_UnownH[]; +extern const u32 gMonBackPic_UnownH[]; +extern const u8 gMonIcon_UnownH[]; +extern const u32 gMonFrontPic_UnownI[]; +extern const u32 gMonBackPic_UnownI[]; +extern const u8 gMonIcon_UnownI[]; +extern const u32 gMonFrontPic_UnownJ[]; +extern const u32 gMonBackPic_UnownJ[]; +extern const u8 gMonIcon_UnownJ[]; +extern const u32 gMonFrontPic_UnownK[]; +extern const u32 gMonBackPic_UnownK[]; +extern const u8 gMonIcon_UnownK[]; +extern const u32 gMonFrontPic_UnownL[]; +extern const u32 gMonBackPic_UnownL[]; +extern const u8 gMonIcon_UnownL[]; +extern const u32 gMonFrontPic_UnownM[]; +extern const u32 gMonBackPic_UnownM[]; +extern const u8 gMonIcon_UnownM[]; +extern const u32 gMonFrontPic_UnownN[]; +extern const u32 gMonBackPic_UnownN[]; +extern const u8 gMonIcon_UnownN[]; +extern const u32 gMonFrontPic_UnownO[]; +extern const u32 gMonBackPic_UnownO[]; +extern const u8 gMonIcon_UnownO[]; +extern const u32 gMonFrontPic_UnownP[]; +extern const u32 gMonBackPic_UnownP[]; +extern const u8 gMonIcon_UnownP[]; +extern const u32 gMonFrontPic_UnownQ[]; +extern const u32 gMonBackPic_UnownQ[]; +extern const u8 gMonIcon_UnownQ[]; +extern const u32 gMonFrontPic_UnownR[]; +extern const u32 gMonBackPic_UnownR[]; +extern const u8 gMonIcon_UnownR[]; +extern const u32 gMonFrontPic_UnownS[]; +extern const u32 gMonBackPic_UnownS[]; +extern const u8 gMonIcon_UnownS[]; +extern const u32 gMonFrontPic_UnownT[]; +extern const u32 gMonBackPic_UnownT[]; +extern const u8 gMonIcon_UnownT[]; +extern const u32 gMonFrontPic_UnownU[]; +extern const u32 gMonBackPic_UnownU[]; +extern const u8 gMonIcon_UnownU[]; +extern const u32 gMonFrontPic_UnownV[]; +extern const u32 gMonBackPic_UnownV[]; +extern const u8 gMonIcon_UnownV[]; +extern const u32 gMonFrontPic_UnownW[]; +extern const u32 gMonBackPic_UnownW[]; +extern const u8 gMonIcon_UnownW[]; +extern const u32 gMonFrontPic_UnownX[]; +extern const u32 gMonBackPic_UnownX[]; +extern const u8 gMonIcon_UnownX[]; +extern const u32 gMonFrontPic_UnownY[]; +extern const u32 gMonBackPic_UnownY[]; +extern const u8 gMonIcon_UnownY[]; +extern const u32 gMonFrontPic_UnownZ[]; +extern const u32 gMonBackPic_UnownZ[]; +extern const u8 gMonIcon_UnownZ[]; +extern const u32 gMonFrontPic_UnownExclamationMark[]; +extern const u32 gMonBackPic_UnownExclamationMark[]; +extern const u8 gMonIcon_UnownExclamationMark[]; +extern const u32 gMonFrontPic_UnownQuestionMark[]; +extern const u32 gMonBackPic_UnownQuestionMark[]; +extern const u8 gMonIcon_UnownQuestionMark[]; + +extern const u32 gMonFrontPic_CircledQuestionMark[]; +extern const u32 gMonBackPic_CircledQuestionMark[]; +extern const u32 gMonPalette_CircledQuestionMark[]; +extern const u32 gMonShinyPalette_CircledQuestionMark[]; +extern const u8 gMonIcon_QuestionMark[]; +extern const u8 gMonFootprint_QuestionMark[]; +extern const u32 gMonFrontPic_DoubleQuestionMark[]; +extern const u32 gMonBackPic_DoubleQuestionMark[]; +extern const u32 gMonPalette_DoubleQuestionMark[]; +extern const u32 gMonShinyPalette_DoubleQuestionMark[]; + +// trainer sprites +extern const u32 gTrainerFrontPic_AquaLeaderArchie[]; +extern const u32 gTrainerFrontPic_AquaGruntM[]; +extern const u32 gTrainerFrontPic_AquaGruntF[]; +extern const u32 gTrainerFrontPic_RSAromaLady[]; +extern const u32 gTrainerFrontPic_RSRuinManiac[]; +extern const u32 gTrainerFrontPic_Interviewer[]; +extern const u32 gTrainerFrontPic_RSTuberF[]; +extern const u32 gTrainerFrontPic_TuberM[]; +extern const u32 gTrainerFrontPic_RSCooltrainerM[]; +extern const u32 gTrainerFrontPic_RSCooltrainerF[]; +extern const u32 gTrainerFrontPic_HexManiac[]; +extern const u32 gTrainerFrontPic_RSLady[]; +extern const u32 gTrainerFrontPic_RSBeauty[]; +extern const u32 gTrainerFrontPic_RichBoy[]; +extern const u32 gTrainerFrontPic_RSPokeManiac[]; +extern const u32 gTrainerFrontPic_RSSwimmerM[]; +extern const u32 gTrainerFrontPic_RSBlackBelt[]; +extern const u32 gTrainerFrontPic_Guitarist[]; +extern const u32 gTrainerFrontPic_Kindler[]; +extern const u32 gTrainerFrontPic_RSCamper[]; +extern const u32 gTrainerFrontPic_BugManiac[]; +extern const u32 gTrainerFrontPic_RSPsychicM[]; +extern const u32 gTrainerFrontPic_RSPsychicF[]; +extern const u32 gTrainerFrontPic_RSGentleman[]; +extern const u32 gTrainerFrontPic_EliteFourSidney[]; +extern const u32 gTrainerFrontPic_EliteFourPhoebe[]; +extern const u32 gTrainerFrontPic_LeaderRoxanne[]; +extern const u32 gTrainerFrontPic_LeaderBrawly[]; +extern const u32 gTrainerFrontPic_LeaderTateAndLiza[]; +extern const u32 gTrainerFrontPic_SchoolKidM[]; +extern const u32 gTrainerFrontPic_SchoolKidF[]; +extern const u32 gTrainerFrontPic_SrAndJr[]; +extern const u32 gTrainerFrontPic_PokefanM[]; +extern const u32 gTrainerFrontPic_PokefanF[]; +extern const u32 gTrainerFrontPic_ExpertM[]; +extern const u32 gTrainerFrontPic_ExpertF[]; +extern const u32 gTrainerFrontPic_RSYoungster[]; +extern const u32 gTrainerFrontPic_ChampionSteven[]; +extern const u32 gTrainerFrontPic_RSFisherman[]; +extern const u32 gTrainerFrontPic_CyclingTriathleteM[]; +extern const u32 gTrainerFrontPic_CyclingTriathleteF[]; +extern const u32 gTrainerFrontPic_RunningTriathleteM[]; +extern const u32 gTrainerFrontPic_RunningTriathleteF[]; +extern const u32 gTrainerFrontPic_SwimmingTriathleteM[]; +extern const u32 gTrainerFrontPic_SwimmingTriathleteF[]; +extern const u32 gTrainerFrontPic_DragonTamer[]; +extern const u32 gTrainerFrontPic_RSBirdKeeper[]; +extern const u32 gTrainerFrontPic_NinjaBoy[]; +extern const u32 gTrainerFrontPic_BattleGirl[]; +extern const u32 gTrainerFrontPic_ParasolLady[]; +extern const u32 gTrainerFrontPic_RSSwimmerF[]; +extern const u32 gTrainerFrontPic_RSPicnicker[]; +extern const u32 gTrainerFrontPic_RSTwins[]; +extern const u32 gTrainerFrontPic_RSSailor[]; +extern const u32 gTrainerFrontPic_Collector[]; +extern const u32 gTrainerFrontPic_Wally[]; +extern const u32 gTrainerFrontPic_RSBrendan1[]; +extern const u32 gTrainerFrontPic_RSMay1[]; +extern const u32 gTrainerFrontPic_PokemonBreederM[]; +extern const u32 gTrainerFrontPic_RSPokemonBreederF[]; +extern const u32 gTrainerFrontPic_RSPokemonRangerM[]; +extern const u32 gTrainerFrontPic_RSPokemonRangerF[]; +extern const u32 gTrainerFrontPic_MagmaLeaderMaxie[]; +extern const u32 gTrainerFrontPic_MagmaGruntM[]; +extern const u32 gTrainerFrontPic_MagmaGruntF[]; +extern const u32 gTrainerFrontPic_RSLass[]; +extern const u32 gTrainerFrontPic_RSBugCatcher[]; +extern const u32 gTrainerFrontPic_RSHiker[]; +extern const u32 gTrainerFrontPic_RSYoungCouple[]; +extern const u32 gTrainerFrontPic_OldCouple[]; +extern const u32 gTrainerFrontPic_RSSisAndBro[]; +extern const u32 gTrainerFrontPic_AquaAdminM[]; +extern const u32 gTrainerFrontPic_AquaAdminF[]; +extern const u32 gTrainerFrontPic_MagmaAdminM[]; +extern const u32 gTrainerFrontPic_MagmaAdminF[]; +extern const u32 gTrainerFrontPic_LeaderWattson[]; +extern const u32 gTrainerFrontPic_LeaderFlannery[]; +extern const u32 gTrainerFrontPic_LeaderNorman[]; +extern const u32 gTrainerFrontPic_LeaderWinona[]; +extern const u32 gTrainerFrontPic_LeaderWallace[]; +extern const u32 gTrainerFrontPic_EliteFourGlacia[]; +extern const u32 gTrainerFrontPic_EliteFourDrake[]; +extern const u32 gTrainerFrontPic_Youngster[]; +extern const u32 gTrainerFrontPic_BugCatcher[]; +extern const u32 gTrainerFrontPic_Lass[]; +extern const u32 gTrainerFrontPic_Sailor[]; +extern const u32 gTrainerFrontPic_Camper[]; +extern const u32 gTrainerFrontPic_Picnicker[]; +extern const u32 gTrainerFrontPic_PokeManiac[]; +extern const u32 gTrainerFrontPic_SuperNerd[]; +extern const u32 gTrainerFrontPic_Hiker[]; +extern const u32 gTrainerFrontPic_Biker[]; +extern const u32 gTrainerFrontPic_Burglar[]; +extern const u32 gTrainerFrontPic_Engineer[]; +extern const u32 gTrainerFrontPic_Fisherman[]; +extern const u32 gTrainerFrontPic_SwimmerM[]; +extern const u32 gTrainerFrontPic_CueBall[]; +extern const u32 gTrainerFrontPic_Gamer[]; +extern const u32 gTrainerFrontPic_Beauty[]; +extern const u32 gTrainerFrontPic_SwimmerF[]; +extern const u32 gTrainerFrontPic_PsychicM[]; +extern const u32 gTrainerFrontPic_Rocker[]; +extern const u32 gTrainerFrontPic_Juggler[]; +extern const u32 gTrainerFrontPic_Tamer[]; +extern const u32 gTrainerFrontPic_BirdKeeper[]; +extern const u32 gTrainerFrontPic_BlackBelt[]; +extern const u32 gTrainerFrontPic_Rival1[]; +extern const u32 gTrainerFrontPic_Scientist[]; +extern const u32 gTrainerFrontPic_LeaderGiovanni[]; +extern const u32 gTrainerFrontPic_RocketGruntM[]; +extern const u32 gTrainerFrontPic_CooltrainerM[]; +extern const u32 gTrainerFrontPic_CooltrainerF[]; +extern const u32 gTrainerFrontPic_EliteFourLorelei[]; +extern const u32 gTrainerFrontPic_EliteFourBruno[]; +extern const u32 gTrainerFrontPic_EliteFourAgatha[]; +extern const u32 gTrainerFrontPic_EliteFourLance[]; +extern const u32 gTrainerFrontPic_LeaderBrock[]; +extern const u32 gTrainerFrontPic_LeaderMisty[]; +extern const u32 gTrainerFrontPic_LeaderLtSurge[]; +extern const u32 gTrainerFrontPic_LeaderErika[]; +extern const u32 gTrainerFrontPic_LeaderKoga[]; +extern const u32 gTrainerFrontPic_LeaderBlaine[]; +extern const u32 gTrainerFrontPic_LeaderSabrina[]; +extern const u32 gTrainerFrontPic_Gentleman[]; +extern const u32 gTrainerFrontPic_Rival2[]; +extern const u32 gTrainerFrontPic_ChampionRival[]; +extern const u32 gTrainerFrontPic_Channeler[]; +extern const u32 gTrainerFrontPic_Twins[]; +extern const u32 gTrainerFrontPic_CoolCouple[]; +extern const u32 gTrainerFrontPic_YoungCouple[]; +extern const u32 gTrainerFrontPic_CrushKin[]; +extern const u32 gTrainerFrontPic_SisAndBro[]; +extern const u32 gTrainerFrontPic_ProfessorOak[]; +extern const u32 gTrainerFrontPic_RSBrendan2[]; +extern const u32 gTrainerFrontPic_RSMay2[]; +extern const u32 gTrainerFrontPic_Red[]; +extern const u32 gTrainerFrontPic_Leaf[]; +extern const u32 gTrainerFrontPic_RocketGruntF[]; +extern const u32 gTrainerFrontPic_PsychicF[]; +extern const u32 gTrainerFrontPic_CrushGirl[]; +extern const u32 gTrainerFrontPic_TuberF[]; +extern const u32 gTrainerFrontPic_PokemonBreederF[]; +extern const u32 gTrainerFrontPic_PokemonRangerM[]; +extern const u32 gTrainerFrontPic_PokemonRangerF[]; +extern const u32 gTrainerFrontPic_AromaLady[]; +extern const u32 gTrainerFrontPic_RuinManiac[]; +extern const u32 gTrainerFrontPic_Lady[]; +extern const u32 gTrainerFrontPic_Painter[]; + +extern const u32 gTrainerPalette_AquaLeaderArchie[]; +extern const u32 gTrainerPalette_AquaGruntM[]; +extern const u32 gTrainerPalette_AquaGruntF[]; +extern const u32 gTrainerPalette_RSAromaLady[]; +extern const u32 gTrainerPalette_RSRuinManiac[]; +extern const u32 gTrainerPalette_Interviewer[]; +extern const u32 gTrainerPalette_RSTuberF[]; +extern const u32 gTrainerPalette_TuberM[]; +extern const u32 gTrainerPalette_RSCooltrainerM[]; +extern const u32 gTrainerPalette_RSCooltrainerF[]; +extern const u32 gTrainerPalette_HexManiac[]; +extern const u32 gTrainerPalette_RSLady[]; +extern const u32 gTrainerPalette_RSBeauty[]; +extern const u32 gTrainerPalette_RichBoy[]; +extern const u32 gTrainerPalette_RSPokeManiac[]; +extern const u32 gTrainerPalette_RSSwimmerM[]; +extern const u32 gTrainerPalette_RSBlackBelt[]; +extern const u32 gTrainerPalette_Guitarist[]; +extern const u32 gTrainerPalette_Kindler[]; +extern const u32 gTrainerPalette_RSCamper[]; +extern const u32 gTrainerPalette_BugManiac[]; +extern const u32 gTrainerPalette_RSPsychicM[]; +extern const u32 gTrainerPalette_RSPsychicF[]; +extern const u32 gTrainerPalette_RSGentleman[]; +extern const u32 gTrainerPalette_EliteFourSidney[]; +extern const u32 gTrainerPalette_EliteFourPhoebe[]; +extern const u32 gTrainerPalette_LeaderRoxanne[]; +extern const u32 gTrainerPalette_LeaderBrawly[]; +extern const u32 gTrainerPalette_LeaderTateAndLiza[]; +extern const u32 gTrainerPalette_SchoolKidM[]; +extern const u32 gTrainerPalette_SchoolKidF[]; +extern const u32 gTrainerPalette_SrAndJr[]; +extern const u32 gTrainerPalette_PokefanM[]; +extern const u32 gTrainerPalette_PokefanF[]; +extern const u32 gTrainerPalette_ExpertM[]; +extern const u32 gTrainerPalette_ExpertF[]; +extern const u32 gTrainerPalette_RSYoungster[]; +extern const u32 gTrainerPalette_ChampionSteven[]; +extern const u32 gTrainerPalette_RSFisherman[]; +extern const u32 gTrainerPalette_CyclingTriathleteM[]; +extern const u32 gTrainerPalette_CyclingTriathleteF[]; +extern const u32 gTrainerPalette_RunningTriathleteM[]; +extern const u32 gTrainerPalette_RunningTriathleteF[]; +extern const u32 gTrainerPalette_SwimmingTriathleteM[]; +extern const u32 gTrainerPalette_SwimmingTriathleteF[]; +extern const u32 gTrainerPalette_DragonTamer[]; +extern const u32 gTrainerPalette_RSBirdKeeper[]; +extern const u32 gTrainerPalette_NinjaBoy[]; +extern const u32 gTrainerPalette_BattleGirl[]; +extern const u32 gTrainerPalette_ParasolLady[]; +extern const u32 gTrainerPalette_RSSwimmerF[]; +extern const u32 gTrainerPalette_RSPicnicker[]; +extern const u32 gTrainerPalette_RSTwins[]; +extern const u32 gTrainerPalette_RSSailor[]; +extern const u32 gTrainerPalette_Collector[]; +extern const u32 gTrainerPalette_Wally[]; +extern const u32 gTrainerPalette_RSBrendan1[]; +extern const u32 gTrainerPalette_RSMay1[]; +extern const u32 gTrainerPalette_LeafBackPic[]; +extern const u32 gTrainerPalette_RedBackPic[]; +extern const u32 gTrainerPalette_PokeDudeBackPic[]; +extern const u32 gTrainerPalette_OldManBackPic[]; +extern const u32 gTrainerPalette_PokemonBreederM[]; +extern const u32 gTrainerPalette_RSPokemonBreederF[]; +extern const u32 gTrainerPalette_RSPokemonRangerM[]; +extern const u32 gTrainerPalette_RSPokemonRangerF[]; +extern const u32 gTrainerPalette_MagmaLeaderMaxie[]; +extern const u32 gTrainerPalette_MagmaGruntM[]; +extern const u32 gTrainerPalette_MagmaGruntF[]; +extern const u32 gTrainerPalette_RSLass[]; +extern const u32 gTrainerPalette_RSBugCatcher[]; +extern const u32 gTrainerPalette_RSHiker[]; +extern const u32 gTrainerPalette_RSYoungCouple[]; +extern const u32 gTrainerPalette_OldCouple[]; +extern const u32 gTrainerPalette_RSSisAndBro[]; +extern const u32 gTrainerPalette_AquaAdminM[]; +extern const u32 gTrainerPalette_AquaAdminF[]; +extern const u32 gTrainerPalette_MagmaAdminM[]; +extern const u32 gTrainerPalette_MagmaAdminF[]; +extern const u32 gTrainerPalette_LeaderWattson[]; +extern const u32 gTrainerPalette_LeaderFlannery[]; +extern const u32 gTrainerPalette_LeaderNorman[]; +extern const u32 gTrainerPalette_LeaderWinona[]; +extern const u32 gTrainerPalette_LeaderWallace[]; +extern const u32 gTrainerPalette_EliteFourGlacia[]; +extern const u32 gTrainerPalette_EliteFourDrake[]; +extern const u32 gTrainerPalette_Youngster[]; +extern const u32 gTrainerPalette_BugCatcher[]; +extern const u32 gTrainerPalette_Lass[]; +extern const u32 gTrainerPalette_Sailor[]; +extern const u32 gTrainerPalette_Camper[]; +extern const u32 gTrainerPalette_Picnicker[]; +extern const u32 gTrainerPalette_PokeManiac[]; +extern const u32 gTrainerPalette_SuperNerd[]; +extern const u32 gTrainerPalette_Hiker[]; +extern const u32 gTrainerPalette_Biker[]; +extern const u32 gTrainerPalette_Burglar[]; +extern const u32 gTrainerPalette_Engineer[]; +extern const u32 gTrainerPalette_Fisherman[]; +extern const u32 gTrainerPalette_SwimmerM[]; +extern const u32 gTrainerPalette_CueBall[]; +extern const u32 gTrainerPalette_Gamer[]; +extern const u32 gTrainerPalette_Beauty[]; +extern const u32 gTrainerPalette_SwimmerF[]; +extern const u32 gTrainerPalette_PsychicM[]; +extern const u32 gTrainerPalette_Rocker[]; +extern const u32 gTrainerPalette_Juggler[]; +extern const u32 gTrainerPalette_Tamer[]; +extern const u32 gTrainerPalette_BirdKeeper[]; +extern const u32 gTrainerPalette_BlackBelt[]; +extern const u32 gTrainerPalette_Rival1[]; +extern const u32 gTrainerPalette_Scientist[]; +extern const u32 gTrainerPalette_LeaderGiovanni[]; +extern const u32 gTrainerPalette_RocketGruntM[]; +extern const u32 gTrainerPalette_CooltrainerM[]; +extern const u32 gTrainerPalette_CooltrainerF[]; +extern const u32 gTrainerPalette_EliteFourLorelei[]; +extern const u32 gTrainerPalette_EliteFourBruno[]; +extern const u32 gTrainerPalette_EliteFourAgatha[]; +extern const u32 gTrainerPalette_EliteFourLance[]; +extern const u32 gTrainerPalette_LeaderBrock[]; +extern const u32 gTrainerPalette_LeaderMisty[]; +extern const u32 gTrainerPalette_LeaderLtSurge[]; +extern const u32 gTrainerPalette_LeaderErika[]; +extern const u32 gTrainerPalette_LeaderKoga[]; +extern const u32 gTrainerPalette_LeaderBlaine[]; +extern const u32 gTrainerPalette_LeaderSabrina[]; +extern const u32 gTrainerPalette_Gentleman[]; +extern const u32 gTrainerPalette_Rival2[]; +extern const u32 gTrainerPalette_ChampionRival[]; +extern const u32 gTrainerPalette_Channeler[]; +extern const u32 gTrainerPalette_Twins[]; +extern const u32 gTrainerPalette_CoolCouple[]; +extern const u32 gTrainerPalette_YoungCouple[]; +extern const u32 gTrainerPalette_CrushKin[]; +extern const u32 gTrainerPalette_SisAndBro[]; +extern const u32 gTrainerPalette_ProfessorOak[]; +extern const u32 gTrainerPalette_RSBrendan2[]; +extern const u32 gTrainerPalette_RSMay2[]; +extern const u32 gTrainerPalette_Red[]; +extern const u32 gTrainerPalette_Leaf[]; +extern const u32 gTrainerPalette_RocketGruntF[]; +extern const u32 gTrainerPalette_PsychicF[]; +extern const u32 gTrainerPalette_CrushGirl[]; +extern const u32 gTrainerPalette_TuberF[]; +extern const u32 gTrainerPalette_PokemonBreederF[]; +extern const u32 gTrainerPalette_PokemonRangerM[]; +extern const u32 gTrainerPalette_PokemonRangerF[]; +extern const u32 gTrainerPalette_AromaLady[]; +extern const u32 gTrainerPalette_RuinManiac[]; +extern const u32 gTrainerPalette_Lady[]; +extern const u32 gTrainerPalette_Painter[]; + extern const u8 gFireRedMenuElements_Gfx[]; extern const u16 gFireRedMenuElements1_Pal[]; extern const u16 gFireRedMenuElements2_Pal[]; @@ -147,7 +2864,6 @@ extern const u8 gUnknown_08DDB2C4[]; extern const u16 gUnknown_08DDAFE0[]; // fame_checker - extern const u16 gFameCheckerBgPals[0x30]; extern const u16 gFameCheckerBgTiles[0xa50]; extern const u16 gFameCheckerBg3Tilemap[0x400]; @@ -1036,4 +3752,466 @@ extern const u32 gBerryPouchBgPal0FemaleOverride[]; extern const u32 gBerryPouchSpritePalette[]; extern const u8 gBerryPouchBg1Tilemap[]; +extern const u8 gTrainerBackPic_Red[]; +extern const u8 gTrainerBackPic_Leaf[]; +extern const u8 gTrainerBackPic_PokeDude[]; +extern const u8 gTrainerBackPic_OldMan[]; +extern const u8 gTrainerBackPic_RSBrendan[]; +extern const u8 gTrainerBackPic_RSMay[]; + +// mail +extern const u16 gFile_graphics_mail_orange_palette_pal[]; +extern const u16 gFile_graphics_mail_harbor_palette_pal[]; +extern const u16 gFile_graphics_mail_glitter_palette_pal[]; +extern const u16 gFile_graphics_mail_mech_palette_pal[]; +extern const u16 gFile_graphics_mail_wood_palette_pal[]; +extern const u16 gFile_graphics_mail_wave_palette_pal[]; +extern const u16 gFile_graphics_mail_bead_palette_pal[]; +extern const u16 gFile_graphics_mail_shadow_palette_pal[]; +extern const u16 gFile_graphics_mail_tropic_palette_pal[]; +extern const u16 gFile_graphics_mail_dream_palette_pal[]; +extern const u16 gFile_graphics_mail_fab_palette_pal[]; +extern const u16 gFile_graphics_mail_retro_palette_pal[]; +extern const u32 gFile_graphics_mail_orange_tiles_sheet[]; +extern const u32 gFile_graphics_mail_harbor_tiles_sheet[]; +extern const u32 gFile_graphics_mail_glitter_tiles_sheet[]; +extern const u32 gFile_graphics_mail_mech_tiles_sheet[]; +extern const u32 gFile_graphics_mail_wood_tiles_sheet[]; +extern const u32 gFile_graphics_mail_wave_tiles_sheet[]; +extern const u32 gFile_graphics_mail_bead_tiles_sheet[]; +extern const u32 gFile_graphics_mail_shadow_tiles_sheet[]; +extern const u32 gFile_graphics_mail_tropic_tiles_sheet[]; +extern const u32 gFile_graphics_mail_dream_tiles_sheet[]; +extern const u32 gFile_graphics_mail_fab_tiles_sheet[]; +extern const u32 gFile_graphics_mail_retro_tiles_sheet[]; +extern const u32 gFile_graphics_mail_orange_map_tilemap[]; +extern const u32 gFile_graphics_mail_harbor_map_tilemap[]; +extern const u32 gFile_graphics_mail_glitter_map_tilemap[]; +extern const u32 gFile_graphics_mail_mech_map_tilemap[]; +extern const u32 gFile_graphics_mail_wood_map_tilemap[]; +extern const u32 gFile_graphics_mail_wave_map_tilemap[]; +extern const u32 gFile_graphics_mail_bead_map_tilemap[]; +extern const u32 gFile_graphics_mail_shadow_map_tilemap[]; +extern const u32 gFile_graphics_mail_tropic_map_tilemap[]; +extern const u32 gFile_graphics_mail_dream_map_tilemap[]; +extern const u32 gFile_graphics_mail_fab_map_tilemap[]; +extern const u32 gFile_graphics_mail_retro_map_tilemap[]; + +// pokemon_icons +extern const u8 gMonIcon_Bulbasaur[]; +extern const u8 gMonIcon_Ivysaur[]; +extern const u8 gMonIcon_Venusaur[]; +extern const u8 gMonIcon_Charmander[]; +extern const u8 gMonIcon_Charmeleon[]; +extern const u8 gMonIcon_Charizard[]; +extern const u8 gMonIcon_Squirtle[]; +extern const u8 gMonIcon_Wartortle[]; +extern const u8 gMonIcon_Blastoise[]; +extern const u8 gMonIcon_Caterpie[]; +extern const u8 gMonIcon_Metapod[]; +extern const u8 gMonIcon_Butterfree[]; +extern const u8 gMonIcon_Weedle[]; +extern const u8 gMonIcon_Kakuna[]; +extern const u8 gMonIcon_Beedrill[]; +extern const u8 gMonIcon_Pidgey[]; +extern const u8 gMonIcon_Pidgeotto[]; +extern const u8 gMonIcon_Pidgeot[]; +extern const u8 gMonIcon_Rattata[]; +extern const u8 gMonIcon_Raticate[]; +extern const u8 gMonIcon_Spearow[]; +extern const u8 gMonIcon_Fearow[]; +extern const u8 gMonIcon_Ekans[]; +extern const u8 gMonIcon_Arbok[]; +extern const u8 gMonIcon_Pikachu[]; +extern const u8 gMonIcon_Raichu[]; +extern const u8 gMonIcon_Sandshrew[]; +extern const u8 gMonIcon_Sandslash[]; +extern const u8 gMonIcon_Nidoran_f[]; +extern const u8 gMonIcon_Nidorina[]; +extern const u8 gMonIcon_Nidoqueen[]; +extern const u8 gMonIcon_Nidoran_m[]; +extern const u8 gMonIcon_Nidorino[]; +extern const u8 gMonIcon_Nidoking[]; +extern const u8 gMonIcon_Clefairy[]; +extern const u8 gMonIcon_Clefable[]; +extern const u8 gMonIcon_Vulpix[]; +extern const u8 gMonIcon_Ninetales[]; +extern const u8 gMonIcon_Jigglypuff[]; +extern const u8 gMonIcon_Wigglytuff[]; +extern const u8 gMonIcon_Zubat[]; +extern const u8 gMonIcon_Golbat[]; +extern const u8 gMonIcon_Oddish[]; +extern const u8 gMonIcon_Gloom[]; +extern const u8 gMonIcon_Vileplume[]; +extern const u8 gMonIcon_Paras[]; +extern const u8 gMonIcon_Parasect[]; +extern const u8 gMonIcon_Venonat[]; +extern const u8 gMonIcon_Venomoth[]; +extern const u8 gMonIcon_Diglett[]; +extern const u8 gMonIcon_Dugtrio[]; +extern const u8 gMonIcon_Meowth[]; +extern const u8 gMonIcon_Persian[]; +extern const u8 gMonIcon_Psyduck[]; +extern const u8 gMonIcon_Golduck[]; +extern const u8 gMonIcon_Mankey[]; +extern const u8 gMonIcon_Primeape[]; +extern const u8 gMonIcon_Growlithe[]; +extern const u8 gMonIcon_Arcanine[]; +extern const u8 gMonIcon_Poliwag[]; +extern const u8 gMonIcon_Poliwhirl[]; +extern const u8 gMonIcon_Poliwrath[]; +extern const u8 gMonIcon_Abra[]; +extern const u8 gMonIcon_Kadabra[]; +extern const u8 gMonIcon_Alakazam[]; +extern const u8 gMonIcon_Machop[]; +extern const u8 gMonIcon_Machoke[]; +extern const u8 gMonIcon_Machamp[]; +extern const u8 gMonIcon_Bellsprout[]; +extern const u8 gMonIcon_Weepinbell[]; +extern const u8 gMonIcon_Victreebel[]; +extern const u8 gMonIcon_Tentacool[]; +extern const u8 gMonIcon_Tentacruel[]; +extern const u8 gMonIcon_Geodude[]; +extern const u8 gMonIcon_Graveler[]; +extern const u8 gMonIcon_Golem[]; +extern const u8 gMonIcon_Ponyta[]; +extern const u8 gMonIcon_Rapidash[]; +extern const u8 gMonIcon_Slowpoke[]; +extern const u8 gMonIcon_Slowbro[]; +extern const u8 gMonIcon_Magnemite[]; +extern const u8 gMonIcon_Magneton[]; +extern const u8 gMonIcon_Farfetch_d[]; +extern const u8 gMonIcon_Doduo[]; +extern const u8 gMonIcon_Dodrio[]; +extern const u8 gMonIcon_Seel[]; +extern const u8 gMonIcon_Dewgong[]; +extern const u8 gMonIcon_Grimer[]; +extern const u8 gMonIcon_Muk[]; +extern const u8 gMonIcon_Shellder[]; +extern const u8 gMonIcon_Cloyster[]; +extern const u8 gMonIcon_Gastly[]; +extern const u8 gMonIcon_Haunter[]; +extern const u8 gMonIcon_Gengar[]; +extern const u8 gMonIcon_Onix[]; +extern const u8 gMonIcon_Drowzee[]; +extern const u8 gMonIcon_Hypno[]; +extern const u8 gMonIcon_Krabby[]; +extern const u8 gMonIcon_Kingler[]; +extern const u8 gMonIcon_Voltorb[]; +extern const u8 gMonIcon_Electrode[]; +extern const u8 gMonIcon_Exeggcute[]; +extern const u8 gMonIcon_Exeggutor[]; +extern const u8 gMonIcon_Cubone[]; +extern const u8 gMonIcon_Marowak[]; +extern const u8 gMonIcon_Hitmonlee[]; +extern const u8 gMonIcon_Hitmonchan[]; +extern const u8 gMonIcon_Lickitung[]; +extern const u8 gMonIcon_Koffing[]; +extern const u8 gMonIcon_Weezing[]; +extern const u8 gMonIcon_Rhyhorn[]; +extern const u8 gMonIcon_Rhydon[]; +extern const u8 gMonIcon_Chansey[]; +extern const u8 gMonIcon_Tangela[]; +extern const u8 gMonIcon_Kangaskhan[]; +extern const u8 gMonIcon_Horsea[]; +extern const u8 gMonIcon_Seadra[]; +extern const u8 gMonIcon_Goldeen[]; +extern const u8 gMonIcon_Seaking[]; +extern const u8 gMonIcon_Staryu[]; +extern const u8 gMonIcon_Starmie[]; +extern const u8 gMonIcon_Mr_Mime[]; +extern const u8 gMonIcon_Scyther[]; +extern const u8 gMonIcon_Jynx[]; +extern const u8 gMonIcon_Electabuzz[]; +extern const u8 gMonIcon_Magmar[]; +extern const u8 gMonIcon_Pinsir[]; +extern const u8 gMonIcon_Tauros[]; +extern const u8 gMonIcon_Magikarp[]; +extern const u8 gMonIcon_Gyarados[]; +extern const u8 gMonIcon_Lapras[]; +extern const u8 gMonIcon_Ditto[]; +extern const u8 gMonIcon_Eevee[]; +extern const u8 gMonIcon_Vaporeon[]; +extern const u8 gMonIcon_Jolteon[]; +extern const u8 gMonIcon_Flareon[]; +extern const u8 gMonIcon_Porygon[]; +extern const u8 gMonIcon_Omanyte[]; +extern const u8 gMonIcon_Omastar[]; +extern const u8 gMonIcon_Kabuto[]; +extern const u8 gMonIcon_Kabutops[]; +extern const u8 gMonIcon_Aerodactyl[]; +extern const u8 gMonIcon_Snorlax[]; +extern const u8 gMonIcon_Articuno[]; +extern const u8 gMonIcon_Zapdos[]; +extern const u8 gMonIcon_Moltres[]; +extern const u8 gMonIcon_Dratini[]; +extern const u8 gMonIcon_Dragonair[]; +extern const u8 gMonIcon_Dragonite[]; +extern const u8 gMonIcon_Mewtwo[]; +extern const u8 gMonIcon_Mew[]; +extern const u8 gMonIcon_Chikorita[]; +extern const u8 gMonIcon_Bayleef[]; +extern const u8 gMonIcon_Meganium[]; +extern const u8 gMonIcon_Cyndaquil[]; +extern const u8 gMonIcon_Quilava[]; +extern const u8 gMonIcon_Typhlosion[]; +extern const u8 gMonIcon_Totodile[]; +extern const u8 gMonIcon_Croconaw[]; +extern const u8 gMonIcon_Feraligatr[]; +extern const u8 gMonIcon_Sentret[]; +extern const u8 gMonIcon_Furret[]; +extern const u8 gMonIcon_Hoothoot[]; +extern const u8 gMonIcon_Noctowl[]; +extern const u8 gMonIcon_Ledyba[]; +extern const u8 gMonIcon_Ledian[]; +extern const u8 gMonIcon_Spinarak[]; +extern const u8 gMonIcon_Ariados[]; +extern const u8 gMonIcon_Crobat[]; +extern const u8 gMonIcon_Chinchou[]; +extern const u8 gMonIcon_Lanturn[]; +extern const u8 gMonIcon_Pichu[]; +extern const u8 gMonIcon_Cleffa[]; +extern const u8 gMonIcon_Igglybuff[]; +extern const u8 gMonIcon_Togepi[]; +extern const u8 gMonIcon_Togetic[]; +extern const u8 gMonIcon_Natu[]; +extern const u8 gMonIcon_Xatu[]; +extern const u8 gMonIcon_Mareep[]; +extern const u8 gMonIcon_Flaaffy[]; +extern const u8 gMonIcon_Ampharos[]; +extern const u8 gMonIcon_Bellossom[]; +extern const u8 gMonIcon_Marill[]; +extern const u8 gMonIcon_Azumarill[]; +extern const u8 gMonIcon_Sudowoodo[]; +extern const u8 gMonIcon_Politoed[]; +extern const u8 gMonIcon_Hoppip[]; +extern const u8 gMonIcon_Skiploom[]; +extern const u8 gMonIcon_Jumpluff[]; +extern const u8 gMonIcon_Aipom[]; +extern const u8 gMonIcon_Sunkern[]; +extern const u8 gMonIcon_Sunflora[]; +extern const u8 gMonIcon_Yanma[]; +extern const u8 gMonIcon_Wooper[]; +extern const u8 gMonIcon_Quagsire[]; +extern const u8 gMonIcon_Espeon[]; +extern const u8 gMonIcon_Umbreon[]; +extern const u8 gMonIcon_Murkrow[]; +extern const u8 gMonIcon_Slowking[]; +extern const u8 gMonIcon_Misdreavus[]; +extern const u8 gMonIcon_Unown_A[]; +extern const u8 gMonIcon_Wobbuffet[]; +extern const u8 gMonIcon_Girafarig[]; +extern const u8 gMonIcon_Pineco[]; +extern const u8 gMonIcon_Forretress[]; +extern const u8 gMonIcon_Dunsparce[]; +extern const u8 gMonIcon_Gligar[]; +extern const u8 gMonIcon_Steelix[]; +extern const u8 gMonIcon_Snubbull[]; +extern const u8 gMonIcon_Granbull[]; +extern const u8 gMonIcon_Qwilfish[]; +extern const u8 gMonIcon_Scizor[]; +extern const u8 gMonIcon_Shuckle[]; +extern const u8 gMonIcon_Heracross[]; +extern const u8 gMonIcon_Sneasel[]; +extern const u8 gMonIcon_Teddiursa[]; +extern const u8 gMonIcon_Ursaring[]; +extern const u8 gMonIcon_Slugma[]; +extern const u8 gMonIcon_Magcargo[]; +extern const u8 gMonIcon_Swinub[]; +extern const u8 gMonIcon_Piloswine[]; +extern const u8 gMonIcon_Corsola[]; +extern const u8 gMonIcon_Remoraid[]; +extern const u8 gMonIcon_Octillery[]; +extern const u8 gMonIcon_Delibird[]; +extern const u8 gMonIcon_Mantine[]; +extern const u8 gMonIcon_Skarmory[]; +extern const u8 gMonIcon_Houndour[]; +extern const u8 gMonIcon_Houndoom[]; +extern const u8 gMonIcon_Kingdra[]; +extern const u8 gMonIcon_Phanpy[]; +extern const u8 gMonIcon_Donphan[]; +extern const u8 gMonIcon_Porygon2[]; +extern const u8 gMonIcon_Stantler[]; +extern const u8 gMonIcon_Smeargle[]; +extern const u8 gMonIcon_Tyrogue[]; +extern const u8 gMonIcon_Hitmontop[]; +extern const u8 gMonIcon_Smoochum[]; +extern const u8 gMonIcon_Elekid[]; +extern const u8 gMonIcon_Magby[]; +extern const u8 gMonIcon_Miltank[]; +extern const u8 gMonIcon_Blissey[]; +extern const u8 gMonIcon_Raikou[]; +extern const u8 gMonIcon_Entei[]; +extern const u8 gMonIcon_Suicune[]; +extern const u8 gMonIcon_Larvitar[]; +extern const u8 gMonIcon_Pupitar[]; +extern const u8 gMonIcon_Tyranitar[]; +extern const u8 gMonIcon_Lugia[]; +extern const u8 gMonIcon_Ho_Oh[]; +extern const u8 gMonIcon_Celebi[]; +extern const u8 gMonIcon_Treecko[]; +extern const u8 gMonIcon_Grovyle[]; +extern const u8 gMonIcon_Sceptile[]; +extern const u8 gMonIcon_Torchic[]; +extern const u8 gMonIcon_Combusken[]; +extern const u8 gMonIcon_Blaziken[]; +extern const u8 gMonIcon_Mudkip[]; +extern const u8 gMonIcon_Marshtomp[]; +extern const u8 gMonIcon_Swampert[]; +extern const u8 gMonIcon_Poochyena[]; +extern const u8 gMonIcon_Mightyena[]; +extern const u8 gMonIcon_Zigzagoon[]; +extern const u8 gMonIcon_Linoone[]; +extern const u8 gMonIcon_Wurmple[]; +extern const u8 gMonIcon_Silcoon[]; +extern const u8 gMonIcon_Beautifly[]; +extern const u8 gMonIcon_Cascoon[]; +extern const u8 gMonIcon_Dustox[]; +extern const u8 gMonIcon_Lotad[]; +extern const u8 gMonIcon_Lombre[]; +extern const u8 gMonIcon_Ludicolo[]; +extern const u8 gMonIcon_Seedot[]; +extern const u8 gMonIcon_Nuzleaf[]; +extern const u8 gMonIcon_Shiftry[]; +extern const u8 gMonIcon_Nincada[]; +extern const u8 gMonIcon_Ninjask[]; +extern const u8 gMonIcon_Shedinja[]; +extern const u8 gMonIcon_Taillow[]; +extern const u8 gMonIcon_Swellow[]; +extern const u8 gMonIcon_Shroomish[]; +extern const u8 gMonIcon_Breloom[]; +extern const u8 gMonIcon_Spinda[]; +extern const u8 gMonIcon_Wingull[]; +extern const u8 gMonIcon_Pelipper[]; +extern const u8 gMonIcon_Surskit[]; +extern const u8 gMonIcon_Masquerain[]; +extern const u8 gMonIcon_Wailmer[]; +extern const u8 gMonIcon_Wailord[]; +extern const u8 gMonIcon_Skitty[]; +extern const u8 gMonIcon_Delcatty[]; +extern const u8 gMonIcon_Kecleon[]; +extern const u8 gMonIcon_Baltoy[]; +extern const u8 gMonIcon_Claydol[]; +extern const u8 gMonIcon_Nosepass[]; +extern const u8 gMonIcon_Torkoal[]; +extern const u8 gMonIcon_Sableye[]; +extern const u8 gMonIcon_Barboach[]; +extern const u8 gMonIcon_Whiscash[]; +extern const u8 gMonIcon_Luvdisc[]; +extern const u8 gMonIcon_Corphish[]; +extern const u8 gMonIcon_Crawdaunt[]; +extern const u8 gMonIcon_Feebas[]; +extern const u8 gMonIcon_Milotic[]; +extern const u8 gMonIcon_Carvanha[]; +extern const u8 gMonIcon_Sharpedo[]; +extern const u8 gMonIcon_Trapinch[]; +extern const u8 gMonIcon_Vibrava[]; +extern const u8 gMonIcon_Flygon[]; +extern const u8 gMonIcon_Makuhita[]; +extern const u8 gMonIcon_Hariyama[]; +extern const u8 gMonIcon_Electrike[]; +extern const u8 gMonIcon_Manectric[]; +extern const u8 gMonIcon_Numel[]; +extern const u8 gMonIcon_Camerupt[]; +extern const u8 gMonIcon_Spheal[]; +extern const u8 gMonIcon_Sealeo[]; +extern const u8 gMonIcon_Walrein[]; +extern const u8 gMonIcon_Cacnea[]; +extern const u8 gMonIcon_Cacturne[]; +extern const u8 gMonIcon_Snorunt[]; +extern const u8 gMonIcon_Glalie[]; +extern const u8 gMonIcon_Lunatone[]; +extern const u8 gMonIcon_Solrock[]; +extern const u8 gMonIcon_Azurill[]; +extern const u8 gMonIcon_Spoink[]; +extern const u8 gMonIcon_Grumpig[]; +extern const u8 gMonIcon_Plusle[]; +extern const u8 gMonIcon_Minun[]; +extern const u8 gMonIcon_Mawile[]; +extern const u8 gMonIcon_Meditite[]; +extern const u8 gMonIcon_Medicham[]; +extern const u8 gMonIcon_Swablu[]; +extern const u8 gMonIcon_Altaria[]; +extern const u8 gMonIcon_Wynaut[]; +extern const u8 gMonIcon_Duskull[]; +extern const u8 gMonIcon_Dusclops[]; +extern const u8 gMonIcon_Roselia[]; +extern const u8 gMonIcon_Slakoth[]; +extern const u8 gMonIcon_Vigoroth[]; +extern const u8 gMonIcon_Slaking[]; +extern const u8 gMonIcon_Gulpin[]; +extern const u8 gMonIcon_Swalot[]; +extern const u8 gMonIcon_Tropius[]; +extern const u8 gMonIcon_Whismur[]; +extern const u8 gMonIcon_Loudred[]; +extern const u8 gMonIcon_Exploud[]; +extern const u8 gMonIcon_Clamperl[]; +extern const u8 gMonIcon_Huntail[]; +extern const u8 gMonIcon_Gorebyss[]; +extern const u8 gMonIcon_Absol[]; +extern const u8 gMonIcon_Shuppet[]; +extern const u8 gMonIcon_Banette[]; +extern const u8 gMonIcon_Seviper[]; +extern const u8 gMonIcon_Zangoose[]; +extern const u8 gMonIcon_Relicanth[]; +extern const u8 gMonIcon_Aron[]; +extern const u8 gMonIcon_Lairon[]; +extern const u8 gMonIcon_Aggron[]; +extern const u8 gMonIcon_Castform[]; +extern const u8 gMonIcon_Volbeat[]; +extern const u8 gMonIcon_Illumise[]; +extern const u8 gMonIcon_Lileep[]; +extern const u8 gMonIcon_Cradily[]; +extern const u8 gMonIcon_Anorith[]; +extern const u8 gMonIcon_Armaldo[]; +extern const u8 gMonIcon_Ralts[]; +extern const u8 gMonIcon_Kirlia[]; +extern const u8 gMonIcon_Gardevoir[]; +extern const u8 gMonIcon_Bagon[]; +extern const u8 gMonIcon_Shelgon[]; +extern const u8 gMonIcon_Salamence[]; +extern const u8 gMonIcon_Beldum[]; +extern const u8 gMonIcon_Metang[]; +extern const u8 gMonIcon_Metagross[]; +extern const u8 gMonIcon_Regirock[]; +extern const u8 gMonIcon_Regice[]; +extern const u8 gMonIcon_Registeel[]; +extern const u8 gMonIcon_Kyogre[]; +extern const u8 gMonIcon_Groudon[]; +extern const u8 gMonIcon_Rayquaza[]; +extern const u8 gMonIcon_Latias[]; +extern const u8 gMonIcon_Latios[]; +extern const u8 gMonIcon_Jirachi[]; +extern const u8 gMonIcon_Deoxys[]; +extern const u8 gMonIcon_Chimecho[]; +extern const u8 gMonIcon_Egg[]; +extern const u8 gMonIcon_Unown_B[]; +extern const u8 gMonIcon_Unown_C[]; +extern const u8 gMonIcon_Unown_D[]; +extern const u8 gMonIcon_Unown_E[]; +extern const u8 gMonIcon_Unown_F[]; +extern const u8 gMonIcon_Unown_G[]; +extern const u8 gMonIcon_Unown_H[]; +extern const u8 gMonIcon_Unown_I[]; +extern const u8 gMonIcon_Unown_J[]; +extern const u8 gMonIcon_Unown_K[]; +extern const u8 gMonIcon_Unown_L[]; +extern const u8 gMonIcon_Unown_M[]; +extern const u8 gMonIcon_Unown_N[]; +extern const u8 gMonIcon_Unown_O[]; +extern const u8 gMonIcon_Unown_P[]; +extern const u8 gMonIcon_Unown_Q[]; +extern const u8 gMonIcon_Unown_R[]; +extern const u8 gMonIcon_Unown_S[]; +extern const u8 gMonIcon_Unown_T[]; +extern const u8 gMonIcon_Unown_U[]; +extern const u8 gMonIcon_Unown_V[]; +extern const u8 gMonIcon_Unown_W[]; +extern const u8 gMonIcon_Unown_X[]; +extern const u8 gMonIcon_Unown_Y[]; +extern const u8 gMonIcon_Unown_Z[]; +extern const u8 gMonIcon_Unown_ExclamationMark[]; +extern const u8 gMonIcon_Unown_QuestionMark[]; +extern const u8 gMonIcon_QuestionMark[]; + #endif //GUARD_GRAPHICS_H diff --git a/include/item.h b/include/item.h index 69560a0e5..dd6271d13 100644 --- a/include/item.h +++ b/include/item.h @@ -37,7 +37,6 @@ void CopyItemNameHandlePlural(u16 itemId, u8 *string, u32 quantity); bool8 IsBagPocketNonEmpty(u8 pocket); bool8 CheckBagHasItem(u16 itemId, u16 count); bool8 CheckBagHasSpace(u16 itemId, u16 count); -bool8 AddBagItem(u16 itemId, u16 count); bool8 RemoveBagItem(u16 itemId, u16 count); u8 GetPocketByItemId(u16 itemId); void ClearItemSlots(struct ItemSlot *itemSlots, u8 b); diff --git a/include/item_menu.h b/include/item_menu.h index 166906ebe..d12b9f394 100644 --- a/include/item_menu.h +++ b/include/item_menu.h @@ -36,6 +36,7 @@ void ItemMenu_SetExitCallback(void (*)(void)); void DisplayItemMessageInBag(u8 taskId, u8 bgId, const u8 * string, TaskFunc followUpFunc); void sub_810A1F8(u8 taskId); void sub_8107ECC(void); +void sub_810AF74(void); void sub_8108DC8(u8 pocketId); void sub_81089F4(u8 pocketId); void sub_8107DB4(u8 menuType, u8 pocket, MainCallback callback); diff --git a/include/link_rfu.h b/include/link_rfu.h index c76758d4e..6e6e5f7a3 100644 --- a/include/link_rfu.h +++ b/include/link_rfu.h @@ -11,7 +11,7 @@ bool32 MG_PrintTextOnWindow1AndWaitButton(u8 * cmdPtr, const u8 * src); void sub_80FA190(void); void MG_DrawCheckerboardPattern(void); void task_add_05_task_del_08FA224_when_no_RfuFunc(void); -bool8 IsRfuTaskFinished(void); +bool8 IsLinkRfuTaskFinished(void); void DestroyWirelessStatusIndicatorSprite(void); void MEvent_CreateTask_CardOrNewsWithFriend(u8); void MEvent_CreateTask_CardOrNewsOverWireless(u8); diff --git a/include/mail.h b/include/mail.h index 3ba731c66..ca2fbfcc8 100644 --- a/include/mail.h +++ b/include/mail.h @@ -18,7 +18,10 @@ || itemId == ITEM_FAB_MAIL \ || itemId == ITEM_RETRO_MAIL)) +#define FIRST_MAIL_IDX ITEM_ORANGE_MAIL -void sub_80BEBEC(struct MailStruct * mail, void (* callback)(void), u8 a2); +#define ITEM_TO_MAIL(itemId) (itemId - FIRST_MAIL_IDX) + +void ReadMail(struct MailStruct * mail, void (*savedCallback)(void), bool8 messageExists); #endif // GUARD_MAIL_H diff --git a/include/map_obj_80688E4.h b/include/map_obj_80688E4.h index bfac00378..bfd5dd3c7 100644 --- a/include/map_obj_80688E4.h +++ b/include/map_obj_80688E4.h @@ -3,7 +3,7 @@ #include "global.h" -void player_bitmagic(void); +void FreezeEventObjects(void); void FreezeMapObject(struct MapObject *); void FreezeMapObjectsExceptOne(u8 mapObjectId); diff --git a/include/menews_jisan.h b/include/menews_jisan.h index ca09d4347..8e1c251f9 100644 --- a/include/menews_jisan.h +++ b/include/menews_jisan.h @@ -3,8 +3,8 @@ #include "global.h" -void GenerateRandomNews(u32 a0); -void sub_8146C88(void); -void sub_8146CA4(void); +void MENewsJisan_SetRandomReward(u32 a0); +void MENewsJisanReset(void); +void MENewsJisanStepCounter(void); #endif //GUARD_MENEWS_JISAN_H diff --git a/include/metatile_behavior.h b/include/metatile_behavior.h index 62bcfdd38..df03001bf 100644 --- a/include/metatile_behavior.h +++ b/include/metatile_behavior.h @@ -10,7 +10,7 @@ bool8 MetatileBehavior_IsJumpNorth(u8 metatileBehavior); bool8 MetatileBehavior_IsJumpSouth(u8 metatileBehavior); bool8 MetatileBehavior_IsTallGrass(u8 metatileBehavior); bool8 MetatileBehavior_IsMB21OrSand(u8 metatileBehavior); -bool8 MetatileBehavior_IsMB21OrWaterfallBottom(u8 metatileBehavior); +bool8 MetatileBehavior_IsSandOrDeepSand(u8 metatileBehavior); bool8 MetatileBehavior_ReturnFalse(u8 metatileBehavior); bool8 MetatileBehavior_IsReflective(u8 metatileBehavior); bool8 MetatileBehavior_IsIce(u8 metatileBehavior); @@ -53,15 +53,15 @@ bool8 MetatileBehavior_IsPC(u8 metatileBehavior); bool8 MetatileBehavior_IsPondWaterOrPuddle(u8 metatileBehavior); bool8 MetatileBehavior_IsPuddle(u8 metatileBehavior); bool8 MetatileBehavior_IsTallGrass_2(u8 metatileBehavior); -bool8 MetatileBehavior_ReturnFalse_3(u8 metatileBehavior); +bool8 MetatileBehavior_IsLongGrass(u8 metatileBehavior); bool8 MetatileBehavior_ReturnFalse_4(u8 metatileBehavior); bool8 MetatileBehavior_ReturnFalse_5(u8 metatileBehavior); -bool8 MetatileBehavior_ReturnFalse_6(u8 metatileBehavior); -bool8 MetatileBehavior_ReturnFalse_7(u8 metatileBehavior); +bool8 MetatileBehavior_IsBridge(u8 metatileBehavior); +bool8 MetatileBehavior_GetBridgeType(u8 metatileBehavior); bool8 MetatileBehavior_UnusedIsMB_01(u8 metatileBehavior); bool8 MetatileBehavior_UnusedIsTallGrass(u8 metatileBehavior); -bool8 MetatileBehavior_IsMB0B(u8 metatileBehavior); -bool8 MetatileBehavior_IsMB0C(u8 metatileBehavior); +bool8 MetatileBehavior_IsIndoorEncounter(u8 metatileBehavior); +bool8 MetatileBehavior_IsMountain(u8 metatileBehavior); bool8 MetatileBehavior_IsDeepOrSemiDeepWater(u8 metatileBehavior); bool8 MetatileBehavior_IsMB19(u8 metatileBehavior); bool8 MetatileBehavior_IsWaterfallBottom(u8 metatileBehavior); diff --git a/include/mevent.h b/include/mevent.h index cee88e403..98d184f60 100644 --- a/include/mevent.h +++ b/include/mevent.h @@ -36,7 +36,7 @@ struct MEvent_Str_2 struct MEventBuffer_3120_Sub * GetSavedWonderNews(void); struct MEventBuffer_32E0_Sub * GetSavedWonderCard(void); struct MEventBuffer_3430_Sub * sav1_get_mevent_buffer_2(void); -struct MysteryEventStruct * sub_8143D94(void); +struct MENewsJisanStruct * GetMENewsJisanStructPtr(void); bool32 sub_8143DC8(const struct MEventBuffer_3120_Sub * src); bool32 ValidateReceivedWonderNews(void); bool32 ValidateReceivedWonderCard(void); @@ -67,5 +67,6 @@ bool32 WonderNews_Test_Unk_02(void); bool32 WonderCard_Test_Unk_08_6(void); u32 MENews_GetInput(u16 input); void sub_8143D24(void); +u16 sub_81445C0(u32 command); #endif //GUARD_MEVENT_H diff --git a/include/overworld.h b/include/overworld.h index 38c213707..805ddc8a0 100644 --- a/include/overworld.h +++ b/include/overworld.h @@ -35,6 +35,7 @@ extern struct UCoords32 gDirectionToVectors[]; extern struct LinkPlayerMapObject gLinkPlayerMapObjects[4]; extern MainCallback gFieldCallback; +extern struct WarpData gUnknown_2031DB4; extern struct WarpData gUnknown_2031DBC; extern u8 gUnknown_2031DE0; @@ -61,7 +62,7 @@ void sub_8084EBC(s16, s16); void player_avatar_init_params_reset(void); void Overworld_SetFlashLevel(s32 a1); -//u8 Overworld_GetFlashLevel(void); +u8 Overworld_GetFlashLevel(void); void sub_8085524(u16); void Overworld_SetSavedMusic(u16); @@ -104,7 +105,7 @@ void SetWarpDestinationToFixedHoleWarp(s16 x, s16 y); void ResetInitialPlayerAvatarState(void); void sub_8055D40(u16 mapDataId); void CleanupOverworldWindowsAndTilemaps(void); -u32 sub_8054C04(void); +u32 ComputeWhiteOutMoneyLoss(void); extern u8 gDisableMapMusicChangeOnMapLoad; extern u8 gUnknown_2036E28; @@ -140,5 +141,6 @@ bool32 Overworld_DoScrollSceneForCredits(u8 *, const struct CreditsOverworldCmd bool32 sub_8058318(void); void CB2_ReturnToStartMenu(void); +void CB2_WhiteOut(void); #endif //GUARD_OVERWORLD_H diff --git a/include/party_menu.h b/include/party_menu.h index ca8ac1754..63db4a4d8 100644 --- a/include/party_menu.h +++ b/include/party_menu.h @@ -85,5 +85,7 @@ void sub_8126EDC(void); void sub_812256C(u8 *partyCount, u8 *icons, u8 side); void PartyMenuInit_FromPlayerPc(void); void CB2_PartyMenuFromStartMenu(void); +void sub_8128198(void); +void sub_8127FF4(u8 slot, u8 slot2); #endif // GUARD_PARTY_MENU_H diff --git a/include/player_pc.h b/include/player_pc.h index ecaf023e5..a1ebcddaa 100644 --- a/include/player_pc.h +++ b/include/player_pc.h @@ -19,6 +19,7 @@ struct PlayerPCItemPageStruct }; // Exported RAM declarations +extern struct PlayerPCItemPageStruct gPlayerPcMenuManager; // Exported ROM declarations diff --git a/include/pokemon.h b/include/pokemon.h index c5ee4eda5..79933a22c 100644 --- a/include/pokemon.h +++ b/include/pokemon.h @@ -169,35 +169,6 @@ enum EGG_GROUP_UNDISCOVERED }; -enum -{ - NATURE_HARDY, - NATURE_LONELY, - NATURE_BRAVE, - NATURE_ADAMANT, - NATURE_NAUGHTY, - NATURE_BOLD, - NATURE_DOCILE, - NATURE_RELAXED, - NATURE_IMPISH, - NATURE_LAX, - NATURE_TIMID, - NATURE_HASTY, - NATURE_SERIOUS, - NATURE_JOLLY, - NATURE_NAIVE, - NATURE_MODEST, - NATURE_MILD, - NATURE_QUIET, - NATURE_BASHFUL, - NATURE_RASH, - NATURE_CALM, - NATURE_GENTLE, - NATURE_SASSY, - NATURE_CAREFUL, - NATURE_QUIRKY, -}; - struct PokemonSubstruct0 { u16 species; @@ -346,7 +317,7 @@ struct BattleTowerPokemon u32 gap:1; u32 abilityNum:1; /*0x1C*/ u32 personality; - /*0x20*/ u8 nickname[POKEMON_NAME_LENGTH + 1]; + /*0x20*/ u8 nickname[11]; /*0x2B*/ u8 friendship; }; @@ -629,10 +600,10 @@ u8 GetTrainerEncounterMusicId(u16 trainer); void AdjustFriendship(struct Pokemon *mon, u8 event); void MonGainEVs(struct Pokemon *mon, u16 defeatedSpecies); u16 GetMonEVCount(struct Pokemon *mon); -void sub_8043A68(void); +void RandomlyGivePartyPokerus(struct Pokemon *party); u8 CheckPartyPokerus(struct Pokemon *party, u8 selection); u8 CheckPartyHasHadPokerus(struct Pokemon *party, u8 selection); -void sub_8043B40(void); +void PartySpreadPokerus(struct Pokemon *party); bool8 TryIncrementMonLevel(struct Pokemon *mon); u32 CanMonLearnTMHM(struct Pokemon *mon, u8 tm); u8 GetMoveRelearnerMoves(struct Pokemon *mon, u16 *moves); diff --git a/include/pokemon_icon.h b/include/pokemon_icon.h index db45bba32..e554d23e9 100644 --- a/include/pokemon_icon.h +++ b/include/pokemon_icon.h @@ -4,6 +4,7 @@ #include "global.h" const u8 *GetMonIconPtr(u16 speciesId, u32 personality, u32 frameNo); +const u8 *GetMonIconTiles(u16 iconSpecies, bool32 extra); const u16 *GetValidMonIconPalettePtr(u16 speciesId); u16 sub_80D2E84(u16 speciesId); void sub_80D2F68(u16 iconId); @@ -12,12 +13,14 @@ void sub_80D2FF0(u16 iconId); void sub_80D2EF8(struct Sprite *sprite); void LoadMonIconPalettes(void); void FreeMonIconPalettes(void); -u16 sub_8096FD4(u16); -u8 sub_8096ECC(u16, void (*)(struct Sprite *), s16, s16, u8, bool32); -void sub_8097070(struct Sprite *); +u16 MailSpeciesToIconSpecies(u16); +u8 CreateMonIcon_HandleDeoxys(u16 species, void (*callback)(struct Sprite *), s16 x, s16 y, u8 subpriority, bool32 extra); +void DestroyMonIcon(struct Sprite *); u16 GetUnownLetterByPersonality(u32 personality); -void sub_809718C(void); -u8 CreateMonIcon(u16 species, void (*callback)(void), s16 x, s16 y, u8 subpriority, u32 personality, bool32 extra); +void SpriteCB_MonIcon(struct Sprite *); +u8 CreateMonIcon(u16 species, SpriteCallback callback, s16 x, s16 y, u8 subpriority, u32 personality, bool32 extra); u8 UpdateMonIconFrame(struct Sprite *sprite); +void LoadMonIconPalette(u16 iconId); +void FreeMonIconPalette(u16 iconId); #endif // GUARD_POKEMON_ICON_H diff --git a/include/quest_log.h b/include/quest_log.h index d3ccbe3da..8165486ce 100644 --- a/include/quest_log.h +++ b/include/quest_log.h @@ -2,6 +2,7 @@ #define GUARD_QUEST_LOG_H #include "global.h" +#include "quest_log_battle.h" struct UnkStruct_3005E90 { @@ -14,8 +15,9 @@ struct UnkStruct_3005E90 u8 unk_2; }; +extern u8 gUnknown_203ADFA; extern u8 gUnknown_3005E88; -extern u16 gUnknown_3005E8C; +extern u16 sNumQuestLogs; extern struct UnkStruct_3005E90 gUnknown_3005E90; extern struct UnkStruct_203AE98 * gUnknown_3005E94; extern const u16 gUnknown_84566A8[]; @@ -25,7 +27,7 @@ void sub_8113550(u16, const u16 *); void sub_811539C(void); void sub_8115748(u16); u8 sub_8112CAC(void); -bool8 sub_81119D4(void (*func)(void)); +bool8 QuestLog_SchedulePlaybackCB(void (*func)(void)); void sub_8111F38(u16, u16); void sub_8111134(void); void DestroyHelpMessageWindow(u8 a0); @@ -40,6 +42,10 @@ void sub_8112450(void); void sub_8112364(void); u8 sub_8112CAC(void); void sub_81138F8(void); +void sub_811231C(void); +void sub_81139BC(void); +void *QuestLogGetFlagOrVarPtr(bool8 isFlag, u16 idx); +void QuestLogSetFlagOrVar(bool8 isFlag, u16 idx, u16 value); extern u8 gUnknown_203ADFA; diff --git a/include/quest_log_battle.h b/include/quest_log_battle.h new file mode 100644 index 000000000..45d656e14 --- /dev/null +++ b/include/quest_log_battle.h @@ -0,0 +1,9 @@ +#ifndef GUARD_QUEST_LOG_BATTLE_H +#define GUARD_QUEST_LOG_BATTLE_H + +#include "global.h" + +void sub_812BFDC(void); +void sub_812C224(void); + +#endif // GUARD_QUEST_LOG_BATTLE_H diff --git a/include/renewable_hidden_items.h b/include/renewable_hidden_items.h new file mode 100644 index 000000000..0de109528 --- /dev/null +++ b/include/renewable_hidden_items.h @@ -0,0 +1,9 @@ +#ifndef GUARD_RENEWABLE_HIDDEN_ITEMS_H +#define GUARD_RENEWABLE_HIDDEN_ITEMS_H + +bool32 sub_815D834(void); +void IncrementRenewableHiddenItemStepCounter(void); +void TryRegenerateRenewableHiddenItems(void); +void SetAllRenewableItemFlags(void); + +#endif //GUARD_RENEWABLE_HIDDEN_ITEMS_H diff --git a/include/safari_zone.h b/include/safari_zone.h index feaa93ed0..a50351570 100644 --- a/include/safari_zone.h +++ b/include/safari_zone.h @@ -16,4 +16,6 @@ void ExitSafariMode(void); bool8 SafariZoneTakeStep(void); void SafariZoneRetirePrompt(void); +void CB2_EndSafariBattle(void); + #endif // GUARD_SAFARI_ZONE_H diff --git a/include/script_menu.h b/include/script_menu.h index c1e32beae..d19e6d14d 100644 --- a/include/script_menu.h +++ b/include/script_menu.h @@ -3,17 +3,18 @@ #include "global.h" -extern const u8 *const gStdStringPtrs[9]; +extern const u8 *const gStdStringPtrs[]; bool8 ScriptMenu_Multichoice(u8 left, u8 top, u8 var3, u8 var4); bool8 ScriptMenu_MultichoiceWithDefault(u8 left, u8 top, u8 var3, u8 var4, u8 var5); bool8 ScriptMenu_YesNo(u8 var1, u8 var2); bool8 ScriptMenu_MultichoiceGrid(u8 left, u8 top, u8 multichoiceId, u8 a4, u8 columnCount); bool8 ScriptMenu_ShowPokemonPic(u16 var1, u8 var2, u8 var3); -bool32 ScrSpecial_CreatePCMenu(void); +bool8 ScrSpecial_CreatePCMenu(void); void ScriptMenu_DisplayPCStartupPrompt(void); bool8 (*ScriptMenu_GetPicboxWaitFunc(void))(void); -void sub_809D6D4(void); +void QLPlaybackCB_DestroyScriptMenuMonPicSprites(void); +void sub_809D424(void); #endif //GUARD_SCRIPT_MENU_H diff --git a/include/script_pokemon_util_80A0058.h b/include/script_pokemon_util_80A0058.h index e1d228589..768e838dd 100644 --- a/include/script_pokemon_util_80A0058.h +++ b/include/script_pokemon_util_80A0058.h @@ -4,5 +4,6 @@ bool8 ScriptGiveMon(u16 species, u8 level, u16 item, u32 unk1, u32 unk2, u8 unk3); bool8 ScriptGiveEgg(u16 species); void ScriptSetMonMoveSlot(u8 partyIdx, u16 move, u8 slot); +void sp000_heal_pokemon(void); #endif //GUARD_SCRIPT_POKEMON_UTIL_80A0058_H diff --git a/include/seagallop.h b/include/seagallop.h index cce6da8ff..50b128185 100644 --- a/include/seagallop.h +++ b/include/seagallop.h @@ -1,21 +1,8 @@ #ifndef GUARD_SEAGALLOP_H #define GUARD_SEAGALLOP_H -enum SeaGallopDestinations -{ - SEAGALLOP_VERMILION_CITY, - SEAGALLOP_ONE_ISLAND, - SEAGALLOP_TWO_ISLAND, - SEAGALLOP_THREE_ISLAND, - SEAGALLOP_FOUR_ISLAND, - SEAGALLOP_FIVE_ISLAND, - SEAGALLOP_SIX_ISLAND, - SEAGALLOP_SEVEN_ISLAND, - SEAGALLOP_CINNABAR_ISLAND, - SEAGALLOP_NAVEL_ROCK, - SEAGALLOP_BIRTH_ISLAND -}; +#include "constants/seagallop.h" -void ScrSpecial_SeaGallopFerry(void); +void ScrSpecial_SeagallopFerry(void); #endif //GUARD_SEAGALLOP_H diff --git a/include/strings.h b/include/strings.h index 2c2756eb5..9304b225d 100644 --- a/include/strings.h +++ b/include/strings.h @@ -91,7 +91,6 @@ extern const u8 gText_PkmnFainted3[]; extern const u8 gText_Coins[]; extern const u8 gText_EggNickname[]; extern const u8 gStartMenuText_Pokemon[]; -extern const u8 gText_PkmnFainted3[]; extern const u8 gOtherText_Use[]; extern const u8 gOtherText_Toss[]; @@ -99,7 +98,6 @@ extern const u8 gOtherText_Give[]; extern const u8 gOtherText_Exit[]; extern const u8 gText_ThreeHyphens[]; extern const u8 gOtherText_UnkF9_08_Clear_01[]; -extern const u8 gFameCheckerText_ListMenuCursor[]; extern const u8 gText_TimesStrVar1[]; extern const u8 gText_IsSelected[]; extern const u8 gText_ThereIsNoPokemon[]; @@ -116,6 +114,16 @@ extern const u8 gText_TurnedOverItemsWorthYen[]; extern const u8 gPokeDudeText_TMTypes[]; extern const u8 gPokeDudeText_ReadTMDescription[]; extern const u8 gFameCheckerText_Cancel[]; +extern const u8 gFameCheckerText_ListMenuCursor[]; +extern const u8 gFameCheckerText_FameCheckerWillBeClosed[]; +extern const u8 gFameCheckerText_ClearTextbox[]; +extern const u8 gFameCheckerText_MainScreenUI[]; // "{KEYGFX_DPAD_ANY}PICK {KEYGFX_DPAD_UP_DOWN}SELECT {KEYGFX_A_BUTTON}OK$" +extern const u8 gFameCheckerText_PickScreenUI[]; // "{KEYGFX_DPAD_ANY}PICK {KEYGFX_DPAD_UP_DOWN}SELECT {KEYGFX_B_BUTTON}CANCEL$" +extern const u8 gFameCheckerText_FlavorTextUI[]; // "{KEYGFX_START_BUTTON}PICK {KEYGFX_A_BUTTON}READ {KEYGFX_B_BUTTON}CANCEL$" +extern const u8 gFameCheckerOakName[]; // "OAK$" +extern const u8 gFameCheckerDaisyName[]; // "DAISY$" +extern const u8 gFameCheckerBillName[]; // "BILL$" +extern const u8 gFameCheckerMrFujiName[]; // "FUJI$" // teachy_tv extern const u8 gTeachyTvString_TeachBattle[]; @@ -151,8 +159,6 @@ extern const u8 gString_Someone[]; extern const u8 gString_Help[]; extern const u8 gString_HelpSystem_ClearTo8[]; -extern const u8 gOtherText_Give[]; -extern const u8 gFameCheckerText_Cancel[]; extern const u8 gOtherText_StrVar1[]; extern const u8 gOtherText_WhereShouldTheStrVar1BePlaced[]; extern const u8 gOtherText_Powder[]; @@ -185,7 +191,6 @@ extern const u8 BattleText_Rose[]; extern const u8 BattleText_UnknownString3[]; extern const u8 BattleText_GetPumped[]; extern const u8 BattleText_MistShroud[]; -extern const u8 gText_EggNickname[]; extern const u8 gText_BadEgg[]; extern const u8 gText_PkmnsXPreventsSwitching[]; extern u8 *gUnknown_83FD5D0[]; @@ -218,7 +223,6 @@ extern const u8 gUnknown_83FE6E6[]; extern const u8 gText_BattleSwitchWhich[]; extern const u8 gUnknown_83FE770[]; extern const u8 gText_MoveInterfacePP[]; -extern const u8 gUnknown_83FE770[]; extern const u8 gText_MoveInterfaceType[]; extern const u8 gText_LinkStandby[]; extern const u8 gUnknown_83FE725[]; @@ -227,6 +231,18 @@ extern const u8 gText_WhatWillPkmnDo[]; // battle_script_commands extern const u8 gText_BattleYesNoChoice[]; +// battle_controller_oak_old_man +extern const u8 gUnknown_83FDAE2[]; +extern const u8 gUnknown_83FDB92[]; +extern const u8 gUnknown_83FDBEF[]; +extern const u8 gUnknown_83FDC58[]; +extern const u8 gUnknown_83FDC95[]; +extern const u8 gUnknown_83FDD23[]; +extern const u8 gUnknown_83FDD64[]; +extern const u8 gUnknown_83FDDEB[]; +extern const u8 gUnknown_83FDCD2[]; +extern const u8 gUnknown_83FE6FA[]; + // credits extern const u8 gString_Dummy[]; extern const u8 gString_PokemonFireRed_Staff[]; // FR @@ -344,14 +360,6 @@ extern const u8 gText_NewGame[]; extern const u8 gText_Continue[]; extern const u8 gText_MysteryGift[]; extern const u8 gText_WirelessAdapterIsNotConnected[]; -extern const u8 gText_WirelessAdapterIsNotConnected[]; -extern const u8 gText_WirelessAdapterIsNotConnected[]; -extern const u8 gText_WirelessAdapterIsNotConnected[]; -extern const u8 gText_WirelessAdapterIsNotConnected[]; -extern const u8 gText_WirelessAdapterIsNotConnected[]; -extern const u8 gText_WirelessAdapterIsNotConnected[]; -extern const u8 gText_WirelessAdapterIsNotConnected[]; -extern const u8 gText_WirelessAdapterIsNotConnected[]; extern const u8 gText_MysteryGiftCantBeUsedWhileWirelessAdapterIsAttached[]; extern const u8 gText_Player[]; extern const u8 gText_Time[]; @@ -381,7 +389,6 @@ extern const u8 gText_WonderNews[]; extern const u8 gText_Exit3[]; extern const u8 gText_WirelessCommunication[]; extern const u8 gText_Friend2[]; -extern const u8 gFameCheckerText_Cancel[]; extern const u8 gText_Receive[]; extern const u8 gText_Send[]; extern const u8 gText_Toss[]; @@ -448,7 +455,6 @@ extern const u8 gText_MailReturnedToBagMessageErased[]; // start_menu extern const u8 gStartMenuText_Pokedex[]; -extern const u8 gStartMenuText_Pokemon[]; extern const u8 gStartMenuText_Bag[]; extern const u8 gStartMenuText_Player[]; extern const u8 gStartMenuText_Save[]; @@ -459,7 +465,6 @@ extern const u8 gUnknown_84162A9[]; extern const u8 gStartMenuDesc_Pokedex[]; extern const u8 gStartMenuDesc_Pokemon[]; extern const u8 gStartMenuDesc_Bag[]; -extern const u8 gStartMenuDesc_Player[]; extern const u8 gStartMenuDesc_Save[]; extern const u8 gStartMenuDesc_Option[]; extern const u8 gStartMenuDesc_Exit[]; @@ -472,4 +477,187 @@ extern const u8 gSaveStatName_Badges[]; extern const u8 gSaveStatName_Pokedex[]; extern const u8 gSaveStatName_Time[]; +// mail +extern const u8 gText_From[]; + +// field_specials +extern const u8 gText_BigGuy[]; +extern const u8 gText_BigGirl[]; +extern const u8 gText_Son[]; +extern const u8 gText_Daughter[]; +extern const u8 gText_NowOn[]; +extern const u8 gText_B4F[]; +extern const u8 gText_B3F[]; +extern const u8 gText_B2F[]; +extern const u8 gText_B1F[]; +extern const u8 gText_1F[]; +extern const u8 gText_2F[]; +extern const u8 gText_3F[]; +extern const u8 gText_4F[]; +extern const u8 gText_5F[]; +extern const u8 gText_6F[]; +extern const u8 gText_7F[]; +extern const u8 gText_8F[]; +extern const u8 gText_9F[]; +extern const u8 gText_10F[]; +extern const u8 gText_11F[]; +extern const u8 gText_Rooftop[]; +extern const u8 gText_BoulderBadge[]; +extern const u8 gText_CascadeBadge[]; +extern const u8 gText_ThunderBadge[]; +extern const u8 gText_RainbowBadge[]; +extern const u8 gText_SoulBadge[]; +extern const u8 gText_MarshBadge[]; +extern const u8 gText_VolcanoBadge[]; +extern const u8 gText_EarthBadge[]; +extern const u8 gText_LinkedGamePlay[]; +extern const u8 gText_DirectCorner[]; +extern const u8 gText_UnionRoom[]; +extern const u8 gOtherText_Quit[]; +extern const u8 gText_Energypowder_50[]; +extern const u8 gText_EnergyRoot_80[]; +extern const u8 gText_HealPowder_50[]; +extern const u8 gText_RevivalHerb_300[]; +extern const u8 gText_Protein_1000[]; +extern const u8 gText_Iron_1000[]; +extern const u8 gText_Carbos_1000[]; +extern const u8 gText_Calcium_1000[]; +extern const u8 gText_Zinc_1000[]; +extern const u8 gText_HpUp_1000[]; +extern const u8 gText_PpUp_3000[]; + +// script_menu +extern const u8 gText_SomeoneSPc[]; +extern const u8 gText_BillSPc[]; +extern const u8 gText_SPc[]; +extern const u8 gText_HallOfFame_2[]; +extern const u8 gText_LogOff[]; +extern const u8 gText_ProfOakSPc[]; +extern const u8 gText_Other[]; +extern const u8 gUnknown_81A508A[]; +extern const u8 gOtherText_Double[]; +extern const u8 gOtherText_Knockout[]; +extern const u8 gOtherText_Mixed[]; +extern const u8 gOtherText_Single[]; +extern const u8 gText_Info[]; +extern const u8 gText_Eggs[]; +extern const u8 gText_HallOfFame[]; +extern const u8 gText_Victories[]; +extern const u8 gText_Quit[]; +extern const u8 gText_Psn[]; +extern const u8 gText_Par[]; +extern const u8 gText_Slp[]; +extern const u8 gText_Brn[]; +extern const u8 gText_Frz[]; +extern const u8 gText_Yes[]; +extern const u8 gText_No[]; +extern const u8 gText_SingleBattle[]; +extern const u8 gText_DoubleBattle[]; +extern const u8 gText_MultiBattle[]; +extern const u8 gText_MakeAChallenge[]; +extern const u8 gText_Info_2[]; +extern const u8 gText_FreshWater_200[]; +extern const u8 gText_SodaPop_300[]; +extern const u8 gText_Lemonade_350[]; +extern const u8 gText_50Coins_1000[]; +extern const u8 gText_500Coins_10000[]; +extern const u8 gText_Excellent[]; +extern const u8 gText_NotSoBad[]; +extern const u8 gText_RedShard[]; +extern const u8 gText_YellowShard[]; +extern const u8 gText_BlueShard[]; +extern const u8 gText_GreenShard[]; +extern const u8 gText_Right[]; +extern const u8 gText_Left[]; +extern const u8 gText_Tm13_4000Coins[]; +extern const u8 gText_Tm23_3500Coins[]; +extern const u8 gText_Tm24_4000Coins[]; +extern const u8 gText_Tm30_4500Coins[]; +extern const u8 gText_Tm35_4000Coins[]; +extern const u8 gText_1F_2[]; +extern const u8 gText_2F_2[]; +extern const u8 gText_3F_2[]; +extern const u8 gText_4F_2[]; +extern const u8 gText_5F_2[]; +extern const u8 gText_Normal[]; +extern const u8 gText_Black[]; +extern const u8 gText_Pink[]; +extern const u8 gText_Sepia[]; +extern const u8 gText_Eevee[]; +extern const u8 gText_Flareon[]; +extern const u8 gText_Jolteon[]; +extern const u8 gText_Vaporeon[]; +extern const u8 gText_QuitLooking[]; +extern const u8 gText_FreshWater[]; +extern const u8 gText_SodaPop[]; +extern const u8 gText_Lemonade[]; +extern const u8 gText_Bicycle_1000000[]; +extern const u8 gText_NoThanks[]; +extern const u8 gText_Abra_180Coins[]; +extern const u8 gText_Clefairy_500Coins[]; +extern const u8 gText_Dratini_2800Coins[]; +extern const u8 gText_Scyther_5500Coins[]; +extern const u8 gText_Porygon_9999Coins[]; +extern const u8 gText_NoThanks_2[]; +extern const u8 gText_HelixFossil[]; +extern const u8 gText_DomeFossil[]; +extern const u8 gText_OldAmber[]; +extern const u8 gText_TradeCenter[]; +extern const u8 gText_Colosseum[]; +extern const u8 gText_GameLinkCable[]; +extern const u8 gText_Wireless[]; +extern const u8 gText_OneIsland[]; +extern const u8 gText_TwoIsland[]; +extern const u8 gText_ThreeIsland[]; +extern const u8 gText_Vermilion[]; +extern const u8 gText_Colosseum_2[]; +extern const u8 gText_BerryCrush[]; +extern const u8 gText_Dummy_8417E66[]; +extern const u8 gText_Dummy_8417E67[]; +extern const u8 gText_Dummy_8417E71[]; +extern const u8 gText_PokemonJump[]; +extern const u8 gText_DodrioBerryPicking[]; +extern const u8 gText_2Tinymushrooms[]; +extern const u8 gText_1BigMushroom[]; +extern const u8 gText_SeviiIslands[]; +extern const u8 gText_NavelRock[]; +extern const u8 gText_BirthIsland[]; +extern const u8 gText_MiracleSeed_1000Coins[]; +extern const u8 gText_Charcoal_1000Coins[]; +extern const u8 gText_MysticWater_1000Coins[]; +extern const u8 gText_YellowFlute_1600Coins[]; +extern const u8 gText_SmokeBall_800Coins[]; +extern const u8 gText_Dummy_8417F67[]; +extern const u8 gText_Dummy_8417F68[]; +extern const u8 gText_BecomeLeader[]; +extern const u8 gText_JoinGroup[]; +extern const u8 gText_Cool_2[]; +extern const u8 gText_Beauty_2[]; +extern const u8 gText_Cute_2[]; +extern const u8 gText_Smart_2[]; +extern const u8 gText_Tough_2[]; +extern const u8 gText_Items[]; +extern const u8 gText_KeyItems[]; +extern const u8 gText_PokeBalls[]; +extern const u8 gText_TmsgUnknown_8417B2CHms[]; +extern const u8 gText_Berries[]; +extern const u8 gText_Boulderbadge[]; +extern const u8 gText_Cascadebadge[]; +extern const u8 gText_Thunderbadge[]; +extern const u8 gText_Rainbowbadge[]; +extern const u8 gText_Soulbadge[]; +extern const u8 gText_Marshbadge[]; +extern const u8 gText_Volcanobadge[]; +extern const u8 gText_Earthbadge[]; +extern const u8 gText_Coins_2[]; +extern const u8 gText_ItemsPocket[]; +extern const u8 gText_KeyItemsPocket[]; +extern const u8 gText_PokeBallsPocket[]; +extern const u8 gText_TmCase[]; +extern const u8 gText_BerryPouch_2[]; +extern const u8 gText_FourIsland[]; +extern const u8 gText_FiveIsland[]; +extern const u8 gText_SixIsland[]; +extern const u8 gText_SevenIsland[]; + #endif //GUARD_STRINGS_H diff --git a/include/trainer_tower.h b/include/trainer_tower.h index 82a3e6cdc..810642a69 100644 --- a/include/trainer_tower.h +++ b/include/trainer_tower.h @@ -5,7 +5,6 @@ void PrintTrainerTowerRecords(void); void InitTrainerTowerBattleStruct(void); void FreeTrainerTowerBattleStruct(void); u8 GetTrainerTowerTrainerFrontSpriteId(void); -void sub_815D838(void); void ResetTrainerTowerResults(void); #endif //GUARD_TRAINER_TOWER_H diff --git a/include/unk_8159F40.h b/include/unk_8159F40.h index 7f6a98c3a..41db36aad 100644 --- a/include/unk_8159F40.h +++ b/include/unk_8159F40.h @@ -3,7 +3,7 @@ #include "global.h" -void sub_8159F40(void); +void InitPokedudePartyAndOpponent(void); void sub_815A008(struct QuestLog *); void sub_815A1F8(struct QuestLog *, struct MapObjectTemplate *); diff --git a/include/vs_seeker.h b/include/vs_seeker.h index efc014a4a..fdd6839df 100644 --- a/include/vs_seeker.h +++ b/include/vs_seeker.h @@ -6,9 +6,10 @@ void Task_VsSeeker_0(u8 taskId); void sub_810CB90(void); void sub_810CDE8(void); -int sub_810CE64(u16 a0); +int GetRematchTrainerId(u16 a0); bool8 sub_810CF04(u8 a0); u8 sub_810CF54(); void sub_810D0D0(void); +void sub_810CB90(void); #endif //GUARD_VS_SEEKER_H diff --git a/ld_script.txt b/ld_script.txt index 814d525da..1765ff6f1 100644 --- a/ld_script.txt +++ b/ld_script.txt @@ -65,8 +65,8 @@ SECTIONS { src/main_menu.o(.text); src/battle_controllers.o(.text); src/decompress.o(.text); - asm/battle_1.o(.text); - asm/battle_2.o(.text); + asm/battle_bg.o(.text); + src/battle_main.o(.text); src/battle_util.o(.text); src/battle_script_commands.o(.text); src/battle_util2.o(.text); @@ -104,7 +104,7 @@ SECTIONS { src/script.o(.text); src/scrcmd.o(.text); asm/field_control_avatar.o(.text); - asm/event_data.o(.text); + src/event_data.o(.text); src/coord_event_weather.o(.text); asm/field_tasks.o(.text); src/start_menu.o(.text); @@ -120,9 +120,9 @@ SECTIONS { src/reset_save_heap.o(.text); asm/field_weather.o(.text); asm/field_weather_effects.o(.text); - src/field_fadetransition.o(.text);; + src/field_fadetransition.o(.text); asm/field_screen_effect.o(.text); - asm/battle_setup.o(.text); + src/battle_setup.o(.text); asm/cable_club.o(.text); asm/trainer_see.o(.text); asm/wild_encounter.o(.text); @@ -132,7 +132,7 @@ SECTIONS { src/pokedex.o(.text); asm/trainer_card.o(.text); asm/pokemon_storage_system.o(.text); - asm/pokemon_icon.o(.text); + src/pokemon_icon.o(.text); asm/script_movement.o(.text); asm/fldeff_cut.o(.text); src/mail_data.o(.text); @@ -142,7 +142,7 @@ SECTIONS { src/item.o(.text); asm/shop.o(.text); src/berry.o(.text); - asm/script_menu.o(.text); + src/script_menu.o(.text); asm/naming_screen.o(.text); src/money.o(.text); asm/script_pokemon_util_80A0058.o(.text); @@ -176,7 +176,7 @@ SECTIONS { asm/bike.o(.text); asm/easy_chat.o(.text); asm/mon_markings.o(.text); - asm/mail.o(.text); + src/mail.o(.text); src/menu_helpers.o(.text); asm/script_pokemon_util_80BF8FC.o(.text); src/heal_location.o(.text); @@ -188,7 +188,7 @@ SECTIONS { asm/post_battle_event_funcs.o(.text); src/prof_pc.o(.text); src/hof_pc.o(.text); - asm/field_specials.o(.text); + src/field_specials.o(.text); src/battle_records.o(.text); asm/evolution_scene.o(.text); src/coins.o(.text); @@ -209,7 +209,7 @@ SECTIONS { asm/learn_move.o(.text); src/fldeff_softboiled.o(.text); asm/battle_tower.o(.text); - asm/battle_controller_oak.o(.text); + src/battle_controller_oak_old_man.o(.text); src/player_pc.o(.text); src/intro.o(.text); asm/battle_anim_special.o(.text); @@ -284,6 +284,7 @@ SECTIONS { src/unk_815C980.o(.text); src/ss_anne.o(.text); src/cereader_tool.o(.text); + src/renewable_hidden_items.o(.text); src/trainer_tower.o(.text); src/berry_powder.o(.text); src/unk_815F138.o(.text); @@ -383,7 +384,9 @@ SECTIONS { src/string_util.o(.rodata); src/link.o(.rodata); src/main_menu.o(.rodata); - data/data.o(.rodata); + src/data.o(.rodata); + data/battle_bg.o(.rodata); + src/battle_main.o(.rodata); src/battle_util.o(.rodata); src/battle_script_commands.o(.rodata); src/battle_controller_player.o(.rodata); @@ -395,7 +398,10 @@ SECTIONS { src/util.o(.rodata); src/daycare.o(.rodata); src/battle_gfx_sfx_util.o(.rodata); - data/data.o(.rodata.8260270); + data/battle_interface.o(.rodata); + data/pokeball.o(.rodata); + data/trade.o(.rodata); + data/overworld.o(.rodata); data/tilesets.o(.rodata); data/maps.o(.rodata); src/fieldmap.o(.rodata); @@ -420,10 +426,16 @@ SECTIONS { src/title_screen.o(.rodata); data/field_weather.o(.rodata); data/data_835B488.o(.rodata); + src/battle_setup.o(.rodata); + data/data_835B488.o(.rodata.83C6AB0); + src/pokemon_icon.o(.rodata); + data/data_835B488.o(.rodata.83D4100); src/item_menu_icons.o(.rodata); src/battle_anim_mon_movement.o(.rodata); src/item.o(.rodata); data/data_835B488.o(.rodata.83DF09C); + src/script_menu.o(.rodata); + data/data_835B488.o(.rodata.83E2280); src/flying.o(.rodata); src/psychic.o(.rodata); src/bug.o(.rodata); @@ -436,10 +448,12 @@ SECTIONS { src/battle_anim_utility_funcs.o(.rodata); src/battle_intro.o(.rodata); data/data_835B488.o(.rodata.83E7CFC); + src/mail.o(.rodata); src/heal_location.o(.rodata); data/data_835B488.o(.rodata.83EEC98); src/battle_ai_script_commands.o(.rodata); data/data_83F5738.o(.rodata); + src/field_specials.o(.rodata); src/battle_records.o(.rodata); data/data_83F5738.o(.rodata.83F6C90); src/battle_transition.o(.rodata); @@ -449,6 +463,7 @@ SECTIONS { data/data_83FECCC.o(.rodata); src/battle_controller_safari.o(.rodata); data/data_83FECCC.o(.rodata.83FEDE4); + src/battle_controller_oak_old_man.o(.rodata); src/player_pc.o(.rodata); src/intro.o(.rodata); data/data_83FECCC.o(.rodata.battle_anim_special); @@ -506,22 +521,26 @@ SECTIONS { src/text_window_graphics.o(.rodata); src/quest_log_8150454.o(.rodata); data/data_8471F00.o(.rodata); + src/unk_8159F40.o(.rodata); src/teachy_tv.o(.rodata); src/unk_815C980.o(.rodata); data/data_8471F00.o(.rodata.8479668); src/ss_anne.o(.rodata); src/cereader_tool.o(.rodata); + src/renewable_hidden_items.o(.rodata); src/trainer_tower.o(.rodata); src/unk_815F138.o(.rodata); src/berry_fix_program.o(.rodata); data/data_8471F00.o(.rodata.after_trainer_tower); + + /* These should not be moved to C files */ src/mystery_event_msg.o(.rodata); data/mystery_event_msg.o(.rodata); src/m4a_tables.o(.rodata); data/sound_data.o(.rodata); } =0 - songs : + song_data : ALIGN(4) { sound/songs/midi/mus_dummy.o(.rodata); @@ -765,7 +784,7 @@ SECTIONS { sound/songs/se_w287b.o(.rodata); sound/songs/se_w114.o(.rodata); sound/songs/se_w063b.o(.rodata); - sound/songs/mus_w_door.o(.rodata); + sound/songs/midi/mus_w_door.o(.rodata); sound/songs/se_card1.o(.rodata); sound/songs/se_card2.o(.rodata); sound/songs/se_card3.o(.rodata); @@ -781,19 +800,19 @@ SECTIONS { sound/songs/se_excellent.o(.rodata); sound/songs/se_nawamiss.o(.rodata); sound/songs/midi/mus_me_asa.o(.rodata); - sound/songs/mus_fanfa1.o(.rodata); - sound/songs/mus_fanfa4.o(.rodata); - sound/songs/mus_fanfa5.o(.rodata); - sound/songs/mus_me_bachi.o(.rodata); - sound/songs/mus_me_waza.o(.rodata); - sound/songs/mus_me_kinomi.o(.rodata); - sound/songs/mus_me_shinka.o(.rodata); - sound/songs/mus_shinka.o(.rodata); - sound/songs/mus_battle32.o(.rodata); - sound/songs/mus_battle20.o(.rodata); - sound/songs/mus_p_school.o(.rodata); - sound/songs/mus_me_b_big.o(.rodata); - sound/songs/mus_me_b_small.o(.rodata); + sound/songs/midi/mus_fanfa1.o(.rodata); + sound/songs/midi/mus_fanfa4.o(.rodata); + sound/songs/midi/mus_fanfa5.o(.rodata); + sound/songs/midi/mus_me_bachi.o(.rodata); + sound/songs/midi/mus_me_waza.o(.rodata); + sound/songs/midi/mus_me_kinomi.o(.rodata); + sound/songs/midi/mus_me_shinka.o(.rodata); + sound/songs/midi/mus_shinka.o(.rodata); + sound/songs/midi/mus_battle32.o(.rodata); + sound/songs/midi/mus_battle20.o(.rodata); + sound/songs/midi/mus_p_school.o(.rodata); + sound/songs/midi/mus_me_b_big.o(.rodata); + sound/songs/midi/mus_me_b_small.o(.rodata); sound/songs/midi/mus_me_wasure.o(.rodata); sound/songs/midi/mus_me_zannen.o(.rodata); sound/songs/midi/mus_annai.o(.rodata); diff --git a/songs.mk b/songs.mk index 12b924671..6458c2c9e 100644 --- a/songs.mk +++ b/songs.mk @@ -10,10 +10,10 @@ $(MID_SUBDIR)/mus_annai.s: %.s: %.mid $(MID) $< $@ -E -R$(STD_REVERB) -G131 -V068 $(MID_SUBDIR)/mus_battle20.s: %.s: %.mid - $(MID) $< $@ -E -R$(STD_REVERB) -G119 -V080 -P1 + $(MID) $< $@ -E -R$(STD_REVERB) -G011 -V080 -P1 $(MID_SUBDIR)/mus_battle32.s: %.s: %.mid - $(MID) $< $@ -E -R$(STD_REVERB) -G120 -V080 + $(MID) $< $@ -E -R$(STD_REVERB) -G010 -V080 $(MID_SUBDIR)/mus_champ_r.s: %.s: %.mid $(MID) $< $@ -E -R$(STD_REVERB) -G154 -V090 @@ -49,13 +49,13 @@ $(MID_SUBDIR)/mus_fan6.s: %.s: %.mid $(MID) $< $@ -E -R$(STD_REVERB) -G179 -V094 -P5 $(MID_SUBDIR)/mus_fanfa1.s: %.s: %.mid - $(MID) $< $@ -E -R$(STD_REVERB) -G012 -V090 -P5 + $(MID) $< $@ -E -R$(STD_REVERB) -G008 -V090 -P5 $(MID_SUBDIR)/mus_fanfa4.s: %.s: %.mid - $(MID) $< $@ -E -R$(STD_REVERB) -G012 -V090 -P5 + $(MID) $< $@ -E -R$(STD_REVERB) -G008 -V090 -P5 $(MID_SUBDIR)/mus_fanfa5.s: %.s: %.mid - $(MID) $< $@ -E -R$(STD_REVERB) -G012 -V090 -P5 + $(MID) $< $@ -E -R$(STD_REVERB) -G008 -V090 -P5 $(MID_SUBDIR)/mus_get_yasei.s: %.s: %.mid $(MID) $< $@ -E -R$(STD_REVERB) -G170 -V100 @@ -97,34 +97,34 @@ $(MID_SUBDIR)/mus_masara.s: %.s: %.mid $(MID) $< $@ -E -R$(STD_REVERB) -G159 -V100 $(MID_SUBDIR)/mus_me_asa.s: %.s: %.mid - $(MID) $< $@ -E -R$(STD_REVERB) -G012 -V090 -P5 + $(MID) $< $@ -E -R$(STD_REVERB) -G008 -V090 -P5 $(MID_SUBDIR)/mus_me_b_big.s: %.s: %.mid - $(MID) $< $@ -E -R$(STD_REVERB) -G012 -V090 -P5 + $(MID) $< $@ -E -R$(STD_REVERB) -G008 -V100 -P5 $(MID_SUBDIR)/mus_me_b_small.s: %.s: %.mid - $(MID) $< $@ -E -R$(STD_REVERB) -G012 -V090 -P5 + $(MID) $< $@ -E -R$(STD_REVERB) -G008 -V100 -P5 $(MID_SUBDIR)/mus_me_bachi.s: %.s: %.mid - $(MID) $< $@ -E -R$(STD_REVERB) -G012 -V090 -P5 + $(MID) $< $@ -E -R$(STD_REVERB) -G008 -V090 -P5 $(MID_SUBDIR)/mus_me_kinomi.s: %.s: %.mid - $(MID) $< $@ -E -R$(STD_REVERB) -G012 -V090 -P5 + $(MID) $< $@ -E -R$(STD_REVERB) -G008 -V090 -P5 $(MID_SUBDIR)/mus_me_photo.s: %.s: %.mid $(MID) $< $@ -E -R$(STD_REVERB) -G180 -V100 -P5 $(MID_SUBDIR)/mus_me_shinka.s: %.s: %.mid - $(MID) $< $@ -E -R$(STD_REVERB) -G026 -V080 -P1 + $(MID) $< $@ -E -R$(STD_REVERB) -G009 -V080 -P1 $(MID_SUBDIR)/mus_me_wasure.s: %.s: %.mid - $(MID) $< $@ -E -R$(STD_REVERB) -G012 -V090 -P5 + $(MID) $< $@ -E -R$(STD_REVERB) -G008 -V090 -P5 $(MID_SUBDIR)/mus_me_waza.s: %.s: %.mid - $(MID) $< $@ -E -R$(STD_REVERB) -G012 -V090 -P5 + $(MID) $< $@ -E -R$(STD_REVERB) -G008 -V090 -P5 $(MID_SUBDIR)/mus_me_zannen.s: %.s: %.mid - $(MID) $< $@ -E -R$(STD_REVERB) -G012 -V090 -P5 + $(MID) $< $@ -E -R$(STD_REVERB) -G008 -V090 -P5 $(MID_SUBDIR)/mus_naminori.s: %.s: %.mid $(MID) $< $@ -E -R$(STD_REVERB) -G164 -V071 @@ -169,7 +169,7 @@ $(MID_SUBDIR)/mus_otsukimi.s: %.s: %.mid $(MID) $< $@ -E -R$(STD_REVERB) -G147 -V090 $(MID_SUBDIR)/mus_p_school.s: %.s: %.mid - $(MID) $< $@ -E -R$(STD_REVERB) -G081 -V100 -P1 + $(MID) $< $@ -E -R$(STD_REVERB) -G012 -V100 -P1 $(MID_SUBDIR)/mus_p_tower.s: %.s: %.mid $(MID) $< $@ -E -R$(STD_REVERB) -G165 -V090 @@ -205,7 +205,7 @@ $(MID_SUBDIR)/mus_sekaikan.s: %.s: %.mid $(MID) $< $@ -E -R$(STD_REVERB) -G182 -V088 $(MID_SUBDIR)/mus_shinka.s: %.s: %.mid - $(MID) $< $@ -E -R$(STD_REVERB) -G026 -V080 -P1 + $(MID) $< $@ -E -R$(STD_REVERB) -G009 -V080 -P1 $(MID_SUBDIR)/mus_shion.s: %.s: %.mid $(MID) $< $@ -E -R$(STD_REVERB) -G139 -V090 @@ -270,6 +270,9 @@ $(MID_SUBDIR)/mus_vs_tore.s: %.s: %.mid $(MID_SUBDIR)/mus_vs_yasei.s: %.s: %.mid $(MID) $< $@ -E -R$(STD_REVERB) -G157 -V090 +$(MID_SUBDIR)/mus_w_door.s: %.s: %.mid + $(MID) $< $@ -E -R$(STD_REVERB) -G129 -V100 -P5 + $(MID_SUBDIR)/mus_win_gym.s: %.s: %.mid $(MID) $< $@ -E -R$(STD_REVERB) -G171 -V090 diff --git a/sound/direct_sound_data.inc b/sound/direct_sound_data.inc new file mode 100644 index 000000000..e95ba843c --- /dev/null +++ b/sound/direct_sound_data.inc @@ -0,0 +1,1822 @@ + + .align 2 +gDirectSoundWaveData_0:: @ 84A3DA8 + .incbin "sound/direct_sound_samples/wave_0.bin" + +gDirectSoundWaveData_1:: @ 84A444C + .incbin "sound/direct_sound_samples/wave_1.bin" + +gDirectSoundWaveData_2:: @ 84A4C44 + .incbin "sound/direct_sound_samples/wave_2.bin" + +gDirectSoundWaveData_3:: @ 84A5810 + .incbin "sound/direct_sound_samples/wave_3.bin" + +gDirectSoundWaveData_4:: @ 84A6748 + .incbin "sound/direct_sound_samples/wave_4.bin" + +gDirectSoundWaveData_5:: @ 84A73BC + .incbin "sound/direct_sound_samples/wave_5.bin" + +gDirectSoundWaveData_6:: @ 84A888C + .incbin "sound/direct_sound_samples/wave_6.bin" + +gDirectSoundWaveData_7:: @ 84A9F3C + .incbin "sound/direct_sound_samples/wave_7.bin" + +gDirectSoundWaveData_8:: @ 84AB280 + .incbin "sound/direct_sound_samples/wave_8.bin" + +gDirectSoundWaveData_9:: @ 84ABD24 + .incbin "sound/direct_sound_samples/wave_9.bin" + +gDirectSoundWaveData_10:: @ 84AD038 + .incbin "sound/direct_sound_samples/wave_10.bin" + +gDirectSoundWaveData_11:: @ 84B0634 + .incbin "sound/direct_sound_samples/wave_11.bin" + +gDirectSoundWaveData_12:: @ 84B0B0C + .incbin "sound/direct_sound_samples/wave_12.bin" + +gDirectSoundWaveData_13:: @ 84B23E8 + .incbin "sound/direct_sound_samples/wave_13.bin" + +gDirectSoundWaveData_14:: @ 84B3710 + .incbin "sound/direct_sound_samples/wave_14.bin" + +gDirectSoundWaveData_15:: @ 84B3BB0 + .incbin "sound/direct_sound_samples/wave_15.bin" + +gDirectSoundWaveData_16:: @ 84B42A4 + .incbin "sound/direct_sound_samples/wave_16.bin" + +gDirectSoundWaveData_17:: @ 84B4B34 + .incbin "sound/direct_sound_samples/wave_17.bin" + +gDirectSoundWaveData_18:: @ 84B53AC + .incbin "sound/direct_sound_samples/wave_18.bin" + +gDirectSoundWaveData_19:: @ 84B5C60 + .incbin "sound/direct_sound_samples/wave_19.bin" + +gDirectSoundWaveData_20:: @ 84B6544 + .incbin "sound/direct_sound_samples/wave_20.bin" + +gDirectSoundWaveData_21:: @ 84B7470 + .incbin "sound/direct_sound_samples/wave_21.bin" + +gDirectSoundWaveData_22:: @ 84B7988 + .incbin "sound/direct_sound_samples/wave_22.bin" + +gDirectSoundWaveData_23:: @ 84B7F50 + .incbin "sound/direct_sound_samples/wave_23.bin" + +gDirectSoundWaveData_24:: @ 84B8E68 + .incbin "sound/direct_sound_samples/wave_24.bin" + +gDirectSoundWaveData_25:: @ 84BA7DC + .incbin "sound/direct_sound_samples/wave_25.bin" + +gDirectSoundWaveData_26:: @ 84BC8B8 + .incbin "sound/direct_sound_samples/wave_26.bin" + +gDirectSoundWaveData_27:: @ 84C40E8 + .incbin "sound/direct_sound_samples/wave_27.bin" + +gDirectSoundWaveData_28:: @ 84C4AA0 + .incbin "sound/direct_sound_samples/wave_28.bin" + +gDirectSoundWaveData_29:: @ 84C5920 + .incbin "sound/direct_sound_samples/wave_29.bin" + +gDirectSoundWaveData_30:: @ 84C6794 + .incbin "sound/direct_sound_samples/wave_30.bin" + +gDirectSoundWaveData_31:: @ 84C7FA8 + .incbin "sound/direct_sound_samples/wave_31.bin" + +gDirectSoundWaveData_32:: @ 84C954C + .incbin "sound/direct_sound_samples/wave_32.bin" + +gDirectSoundWaveData_33:: @ 84CAB30 + .incbin "sound/direct_sound_samples/wave_33.bin" + +gDirectSoundWaveData_34:: @ 84CBC24 + .incbin "sound/direct_sound_samples/wave_34.bin" + +gDirectSoundWaveData_35:: @ 84CCB84 + .incbin "sound/direct_sound_samples/wave_35.bin" + +gDirectSoundWaveData_36:: @ 84CE1E4 + .incbin "sound/direct_sound_samples/wave_36.bin" + +gDirectSoundWaveData_37:: @ 84CF740 + .incbin "sound/direct_sound_samples/wave_37.bin" + +gDirectSoundWaveData_38:: @ 84D02CC + .incbin "sound/direct_sound_samples/wave_38.bin" + +gDirectSoundWaveData_39:: @ 84D3870 + .incbin "sound/direct_sound_samples/wave_39.bin" + +gDirectSoundWaveData_40:: @ 84D5B8C + .incbin "sound/direct_sound_samples/wave_40.bin" + +gDirectSoundWaveData_41:: @ 84D9258 + .incbin "sound/direct_sound_samples/wave_41.bin" + +gDirectSoundWaveData_42:: @ 84DA5A8 + .incbin "sound/direct_sound_samples/wave_42.bin" + +gDirectSoundWaveData_43:: @ 84DBAB8 + .incbin "sound/direct_sound_samples/wave_43.bin" + +gDirectSoundWaveData_44:: @ 84DCED8 + .incbin "sound/direct_sound_samples/wave_44.bin" + +gDirectSoundWaveData_45:: @ 84DDF74 + .incbin "sound/direct_sound_samples/wave_45.bin" + +gDirectSoundWaveData_46:: @ 84DEFD0 + .incbin "sound/direct_sound_samples/wave_46.bin" + +gDirectSoundWaveData_47:: @ 84E5F64 + .incbin "sound/direct_sound_samples/wave_47.bin" + +gDirectSoundWaveData_48:: @ 84EA4E8 + .incbin "sound/direct_sound_samples/wave_48.bin" + +gDirectSoundWaveData_49:: @ 84EAC4C + .incbin "sound/direct_sound_samples/wave_49.bin" + +gDirectSoundWaveData_50:: @ 84EC89C + .incbin "sound/direct_sound_samples/wave_50.bin" + +gDirectSoundWaveData_51:: @ 84EDD6C + .incbin "sound/direct_sound_samples/wave_51.bin" + +gDirectSoundWaveData_52:: @ 84EE778 + .incbin "sound/direct_sound_samples/wave_52.bin" + +gDirectSoundWaveData_53:: @ 84F038C + .incbin "sound/direct_sound_samples/wave_53.bin" + +gDirectSoundWaveData_54:: @ 84F1CEC + .incbin "sound/direct_sound_samples/wave_54.bin" + +gDirectSoundWaveData_55:: @ 84F31B0 + .incbin "sound/direct_sound_samples/wave_55.bin" + +gDirectSoundWaveData_56:: @ 84F38EC + .incbin "sound/direct_sound_samples/wave_56.bin" + +gDirectSoundWaveData_57:: @ 84F54DC + .incbin "sound/direct_sound_samples/wave_57.bin" + +gDirectSoundWaveData_58:: @ 84F6890 + .incbin "sound/direct_sound_samples/wave_58.bin" + +gDirectSoundWaveData_59:: @ 84F8F14 + .incbin "sound/direct_sound_samples/wave_59.bin" + +gDirectSoundWaveData_60:: @ 84FA158 + .incbin "sound/direct_sound_samples/wave_60.bin" + +gDirectSoundWaveData_61:: @ 84FB168 + .incbin "sound/direct_sound_samples/wave_61.bin" + +gDirectSoundWaveData_62:: @ 84FC470 + .incbin "sound/direct_sound_samples/wave_62.bin" + +gDirectSoundWaveData_63:: @ 84FE57C + .incbin "sound/direct_sound_samples/wave_63.bin" + +gDirectSoundWaveData_64:: @ 8500558 + .incbin "sound/direct_sound_samples/wave_64.bin" + +gDirectSoundWaveData_65:: @ 8502768 + .incbin "sound/direct_sound_samples/wave_65.bin" + +gDirectSoundWaveData_66:: @ 8502F34 + .incbin "sound/direct_sound_samples/wave_66.bin" + +gDirectSoundWaveData_67:: @ 85048A4 + .incbin "sound/direct_sound_samples/wave_67.bin" + +gDirectSoundWaveData_68:: @ 8504CB8 + .incbin "sound/direct_sound_samples/wave_68.bin" + +gDirectSoundWaveData_69:: @ 8506C68 + .incbin "sound/direct_sound_samples/wave_69.bin" + +gDirectSoundWaveData_70:: @ 8509F48 + .incbin "sound/direct_sound_samples/wave_70.bin" + +gDirectSoundWaveData_71:: @ 850A978 + .incbin "sound/direct_sound_samples/wave_71.bin" + +gDirectSoundWaveData_72:: @ 850B3AC + .incbin "sound/direct_sound_samples/wave_72.bin" + +gDirectSoundWaveData_73:: @ 850CEEC + .incbin "sound/direct_sound_samples/wave_73.bin" + +gDirectSoundWaveData_74:: @ 850D7B4 + .incbin "sound/direct_sound_samples/wave_74.bin" + +gDirectSoundWaveData_75:: @ 850EB84 + .incbin "sound/direct_sound_samples/wave_75.bin" + + .align 2 +Cry_Bulbasaur:: @ 850FBC4 + .incbin "sound/direct_sound_samples/cry_bulbasaur.bin" + + .align 2 +Cry_Ivysaur:: @ 8510C50 + .incbin "sound/direct_sound_samples/cry_ivysaur.bin" + + .align 2 +Cry_Venusaur:: @ 8511CE0 + .incbin "sound/direct_sound_samples/cry_venusaur.bin" + + .align 2 +Cry_Charmander:: @ 8513038 + .incbin "sound/direct_sound_samples/cry_charmander.bin" + + .align 2 +Cry_Charmeleon:: @ 8513EA8 + .incbin "sound/direct_sound_samples/cry_charmeleon.bin" + + .align 2 +Cry_Charizard:: @ 8514D28 + .incbin "sound/direct_sound_samples/cry_charizard.bin" + + .align 2 +Cry_Squirtle:: @ 8516070 + .incbin "sound/direct_sound_samples/cry_squirtle.bin" + + .align 2 +Cry_Wartortle:: @ 8516EE4 + .incbin "sound/direct_sound_samples/cry_wartortle.bin" + + .align 2 +Cry_Blastoise:: @ 8518024 + .incbin "sound/direct_sound_samples/cry_blastoise.bin" + + .align 2 +Cry_Caterpie:: @ 851936C + .incbin "sound/direct_sound_samples/cry_caterpie.bin" + + .align 2 +Cry_Metapod:: @ 8519BC4 + .incbin "sound/direct_sound_samples/cry_metapod.bin" + + .align 2 +Cry_Butterfree:: @ 851B314 + .incbin "sound/direct_sound_samples/cry_butterfree.bin" + + .align 2 +Cry_Weedle:: @ 851BD1C + .incbin "sound/direct_sound_samples/cry_weedle.bin" + + .align 2 +Cry_Kakuna:: @ 851CD60 + .incbin "sound/direct_sound_samples/cry_kakuna.bin" + + .align 2 +Cry_Beedrill:: @ 851DF9C + .incbin "sound/direct_sound_samples/cry_beedrill.bin" + + .align 2 +Cry_Pidgey:: @ 851F2F8 + .incbin "sound/direct_sound_samples/cry_pidgey.bin" + + .align 2 +Cry_Pidgeotto:: @ 851F6E0 + .incbin "sound/direct_sound_samples/cry_pidgeotto.bin" + + .align 2 +Cry_Pidgeot:: @ 85205E8 + .incbin "sound/direct_sound_samples/cry_pidgeot.bin" + + .align 2 +Cry_Rattata:: @ 852171C + .incbin "sound/direct_sound_samples/cry_rattata.bin" + + .align 2 +Cry_Raticate:: @ 8521EFC + .incbin "sound/direct_sound_samples/cry_raticate.bin" + + .align 2 +Cry_Spearow:: @ 8522880 + .incbin "sound/direct_sound_samples/cry_spearow.bin" + + .align 2 +Cry_Fearow:: @ 8523A24 + .incbin "sound/direct_sound_samples/cry_fearow.bin" + + .align 2 +Cry_Ekans:: @ 8524B60 + .incbin "sound/direct_sound_samples/cry_ekans.bin" + + .align 2 +Cry_Arbok:: @ 8525EAC + .incbin "sound/direct_sound_samples/cry_arbok.bin" + + .align 2 +Cry_Pikachu:: @ 8527204 + .incbin "sound/direct_sound_samples/cry_pikachu.bin" + + .align 2 +Cry_Raichu:: @ 85282AC + .incbin "sound/direct_sound_samples/cry_raichu.bin" + + .align 2 +Cry_Sandshrew:: @ 8529A6C + .incbin "sound/direct_sound_samples/cry_sandshrew.bin" + + .align 2 +Cry_Sandslash:: @ 852A3C0 + .incbin "sound/direct_sound_samples/cry_sandslash.bin" + + .align 2 +Cry_NidoranF:: @ 852B150 + .incbin "sound/direct_sound_samples/cry_nidoran_f.bin" + + .align 2 +Cry_Nidorina:: @ 852BB00 + .incbin "sound/direct_sound_samples/cry_nidorina.bin" + + .align 2 +Cry_Nidoqueen:: @ 852C7C8 + .incbin "sound/direct_sound_samples/cry_nidoqueen.bin" + + .align 2 +Cry_NidoranM:: @ 852D8A8 + .incbin "sound/direct_sound_samples/cry_nidoran_m.bin" + + .align 2 +Cry_Nidorino:: @ 852E310 + .incbin "sound/direct_sound_samples/cry_nidorino.bin" + + .align 2 +Cry_Nidoking:: @ 852EF24 + .incbin "sound/direct_sound_samples/cry_nidoking.bin" + + .align 2 +Cry_Clefairy:: @ 8530790 + .incbin "sound/direct_sound_samples/cry_clefairy.bin" + + .align 2 +Cry_Clefable:: @ 8531000 + .incbin "sound/direct_sound_samples/cry_clefable.bin" + + .align 2 +Cry_Vulpix:: @ 8531A90 + .incbin "sound/direct_sound_samples/cry_vulpix.bin" + + .align 2 +Cry_Ninetales:: @ 8533260 + .incbin "sound/direct_sound_samples/cry_ninetales.bin" + + .align 2 +Cry_Jigglypuff:: @ 8534ACC + .incbin "sound/direct_sound_samples/cry_jigglypuff.bin" + + .align 2 +Cry_Wigglytuff:: @ 8535030 + .incbin "sound/direct_sound_samples/cry_wigglytuff.bin" + + .align 2 +Cry_Zubat:: @ 85356F8 + .incbin "sound/direct_sound_samples/cry_zubat.bin" + + .align 2 +Cry_Golbat:: @ 8536A64 + .incbin "sound/direct_sound_samples/cry_golbat.bin" + + .align 2 +Cry_Oddish:: @ 8537DC8 + .incbin "sound/direct_sound_samples/cry_oddish.bin" + + .align 2 +Cry_Gloom:: @ 8538C64 + .incbin "sound/direct_sound_samples/cry_gloom.bin" + + .align 2 +Cry_Vileplume:: @ 85398E0 + .incbin "sound/direct_sound_samples/cry_vileplume.bin" + + .align 2 +Cry_Paras:: @ 853B27C + .incbin "sound/direct_sound_samples/cry_paras.bin" + + .align 2 +Cry_Parasect:: @ 853CE70 + .incbin "sound/direct_sound_samples/cry_parasect.bin" + + .align 2 +Cry_Venonat:: @ 853ECD8 + .incbin "sound/direct_sound_samples/cry_venonat.bin" + + .align 2 +Cry_Venomoth:: @ 853FC58 + .incbin "sound/direct_sound_samples/cry_venomoth.bin" + + .align 2 +Cry_Diglett:: @ 8540C5C + .incbin "sound/direct_sound_samples/cry_diglett.bin" + + .align 2 +Cry_Dugtrio:: @ 8541FCC + .incbin "sound/direct_sound_samples/cry_dugtrio.bin" + + .align 2 +Cry_Meowth:: @ 8543338 + .incbin "sound/direct_sound_samples/cry_meowth.bin" + + .align 2 +Cry_Persian:: @ 8543CC8 + .incbin "sound/direct_sound_samples/cry_persian.bin" + + .align 2 +Cry_Psyduck:: @ 8544FA4 + .incbin "sound/direct_sound_samples/cry_psyduck.bin" + + .align 2 +Cry_Golduck:: @ 8545CCC + .incbin "sound/direct_sound_samples/cry_golduck.bin" + + .align 2 +Cry_Mankey:: @ 8546814 + .incbin "sound/direct_sound_samples/cry_mankey.bin" + + .align 2 +Cry_Primeape:: @ 8547874 + .incbin "sound/direct_sound_samples/cry_primeape.bin" + + .align 2 +Cry_Growlithe:: @ 85488A4 + .incbin "sound/direct_sound_samples/cry_growlithe.bin" + + .align 2 +Cry_Arcanine:: @ 8549608 + .incbin "sound/direct_sound_samples/cry_arcanine.bin" + + .align 2 +Cry_Poliwag:: @ 854A744 + .incbin "sound/direct_sound_samples/cry_poliwag.bin" + + .align 2 +Cry_Poliwhirl:: @ 854B260 + .incbin "sound/direct_sound_samples/cry_poliwhirl.bin" + + .align 2 +Cry_Poliwrath:: @ 854B908 + .incbin "sound/direct_sound_samples/cry_poliwrath.bin" + + .align 2 +Cry_Abra:: @ 854C42C + .incbin "sound/direct_sound_samples/cry_abra.bin" + + .align 2 +Cry_Kadabra:: @ 854DB90 + .incbin "sound/direct_sound_samples/cry_kadabra.bin" + + .align 2 +Cry_Alakazam:: @ 854F678 + .incbin "sound/direct_sound_samples/cry_alakazam.bin" + + .align 2 +Cry_Machop:: @ 8551614 + .incbin "sound/direct_sound_samples/cry_machop.bin" + + .align 2 +Cry_Machoke:: @ 8552378 + .incbin "sound/direct_sound_samples/cry_machoke.bin" + + .align 2 +Cry_Machamp:: @ 8553108 + .incbin "sound/direct_sound_samples/cry_machamp.bin" + + .align 2 +Cry_Bellsprout:: @ 8554190 + .incbin "sound/direct_sound_samples/cry_bellsprout.bin" + + .align 2 +Cry_Weepinbell:: @ 855491C + .incbin "sound/direct_sound_samples/cry_weepinbell.bin" + + .align 2 +Cry_Victreebel:: @ 85557BC + .incbin "sound/direct_sound_samples/cry_victreebel.bin" + + .align 2 +Cry_Tentacool:: @ 8556B08 + .incbin "sound/direct_sound_samples/cry_tentacool.bin" + + .align 2 +Cry_Tentacruel:: @ 8557AF8 + .incbin "sound/direct_sound_samples/cry_tentacruel.bin" + + .align 2 +Cry_Geodude:: @ 85591F4 + .incbin "sound/direct_sound_samples/cry_geodude.bin" + + .align 2 +Cry_Graveler:: @ 855A9A8 + .incbin "sound/direct_sound_samples/cry_graveler.bin" + + .align 2 +Cry_Golem:: @ 855C590 + .incbin "sound/direct_sound_samples/cry_golem.bin" + + .align 2 +Cry_Ponyta:: @ 855D3BC + .incbin "sound/direct_sound_samples/cry_ponyta.bin" + + .align 2 +Cry_Rapidash:: @ 855E2CC + .incbin "sound/direct_sound_samples/cry_rapidash.bin" + + .align 2 +Cry_Slowpoke:: @ 855F56C + .incbin "sound/direct_sound_samples/cry_slowpoke.bin" + + .align 2 +Cry_Slowbro:: @ 855FCD4 + .incbin "sound/direct_sound_samples/cry_slowbro.bin" + + .align 2 +Cry_Magnemite:: @ 8560A44 + .incbin "sound/direct_sound_samples/cry_magnemite.bin" + + .align 2 +Cry_Magneton:: @ 8561D88 + .incbin "sound/direct_sound_samples/cry_magneton.bin" + + .align 2 +Cry_Farfetchd:: @ 8563570 + .incbin "sound/direct_sound_samples/cry_farfetchd.bin" + + .align 2 +Cry_Doduo:: @ 8563CEC + .incbin "sound/direct_sound_samples/cry_doduo.bin" + + .align 2 +Cry_Dodrio:: @ 8565030 + .incbin "sound/direct_sound_samples/cry_dodrio.bin" + + .align 2 +Cry_Seel:: @ 85663A8 + .incbin "sound/direct_sound_samples/cry_seel.bin" + + .align 2 +Cry_Dewgong:: @ 8567598 + .incbin "sound/direct_sound_samples/cry_dewgong.bin" + + .align 2 +Cry_Grimer:: @ 8568ABC + .incbin "sound/direct_sound_samples/cry_grimer.bin" + + .align 2 +Cry_Muk:: @ 8569544 + .incbin "sound/direct_sound_samples/cry_muk.bin" + + .align 2 +Cry_Shellder:: @ 856A404 + .incbin "sound/direct_sound_samples/cry_shellder.bin" + + .align 2 +Cry_Cloyster:: @ 856B378 + .incbin "sound/direct_sound_samples/cry_cloyster.bin" + + .align 2 +Cry_Gastly:: @ 856C83C + .incbin "sound/direct_sound_samples/cry_gastly.bin" + + .align 2 +Cry_Haunter:: @ 856DF8C + .incbin "sound/direct_sound_samples/cry_haunter.bin" + + .align 2 +Cry_Gengar:: @ 856F70C + .incbin "sound/direct_sound_samples/cry_gengar.bin" + + .align 2 +Cry_Onix:: @ 85705CC + .incbin "sound/direct_sound_samples/cry_onix.bin" + + .align 2 +Cry_Drowzee:: @ 8571E90 + .incbin "sound/direct_sound_samples/cry_drowzee.bin" + + .align 2 +Cry_Hypno:: @ 8573BA8 + .incbin "sound/direct_sound_samples/cry_hypno.bin" + + .align 2 +Cry_Krabby:: @ 85758AC + .incbin "sound/direct_sound_samples/cry_krabby.bin" + + .align 2 +Cry_Kingler:: @ 85770F8 + .incbin "sound/direct_sound_samples/cry_kingler.bin" + + .align 2 +Cry_Voltorb:: @ 8578950 + .incbin "sound/direct_sound_samples/cry_voltorb.bin" + + .align 2 +Cry_Electrode:: @ 857A214 + .incbin "sound/direct_sound_samples/cry_electrode.bin" + + .align 2 +Cry_Exeggcute:: @ 857BB4C + .incbin "sound/direct_sound_samples/cry_exeggcute.bin" + + .align 2 +Cry_Exeggutor:: @ 857CE2C + .incbin "sound/direct_sound_samples/cry_exeggutor.bin" + + .align 2 +Cry_Cubone:: @ 857EE10 + .incbin "sound/direct_sound_samples/cry_cubone.bin" + + .align 2 +Cry_Marowak:: @ 857FD30 + .incbin "sound/direct_sound_samples/cry_marowak.bin" + + .align 2 +Cry_Hitmonlee:: @ 8580BA0 + .incbin "sound/direct_sound_samples/cry_hitmonlee.bin" + + .align 2 +Cry_Hitmonchan:: @ 8581E4C + .incbin "sound/direct_sound_samples/cry_hitmonchan.bin" + + .align 2 +Cry_Lickitung:: @ 8583024 + .incbin "sound/direct_sound_samples/cry_lickitung.bin" + + .align 2 +Cry_Koffing:: @ 8583F4C + .incbin "sound/direct_sound_samples/cry_koffing.bin" + + .align 2 +Cry_Weezing:: @ 85853A8 + .incbin "sound/direct_sound_samples/cry_weezing.bin" + + .align 2 +Cry_Rhyhorn:: @ 8586954 + .incbin "sound/direct_sound_samples/cry_rhyhorn.bin" + + .align 2 +Cry_Rhydon:: @ 8587CC0 + .incbin "sound/direct_sound_samples/cry_rhydon.bin" + + .align 2 +Cry_Chansey:: @ 858912C + .incbin "sound/direct_sound_samples/cry_chansey.bin" + + .align 2 +Cry_Tangela:: @ 8589FF8 + .incbin "sound/direct_sound_samples/cry_tangela.bin" + + .align 2 +Cry_Kangaskhan:: @ 858AF14 + .incbin "sound/direct_sound_samples/cry_kangaskhan.bin" + + .align 2 +Cry_Horsea:: @ 858C1C8 + .incbin "sound/direct_sound_samples/cry_horsea.bin" + + .align 2 +Cry_Seadra:: @ 858CB44 + .incbin "sound/direct_sound_samples/cry_seadra.bin" + + .align 2 +Cry_Goldeen:: @ 858D3B0 + .incbin "sound/direct_sound_samples/cry_goldeen.bin" + + .align 2 +Cry_Seaking:: @ 858DD88 + .incbin "sound/direct_sound_samples/cry_seaking.bin" + + .align 2 +Cry_Staryu:: @ 858F0E0 + .incbin "sound/direct_sound_samples/cry_staryu.bin" + + .align 2 +Cry_Starmie:: @ 85904C8 + .incbin "sound/direct_sound_samples/cry_starmie.bin" + + .align 2 +Cry_MrMime:: @ 85919A4 + .incbin "sound/direct_sound_samples/cry_mr_mime.bin" + + .align 2 +Cry_Scyther:: @ 8592C94 + .incbin "sound/direct_sound_samples/cry_scyther.bin" + + .align 2 +Cry_Jynx:: @ 85939F0 + .incbin "sound/direct_sound_samples/cry_jynx.bin" + + .align 2 +Cry_Electabuzz:: @ 8596964 + .incbin "sound/direct_sound_samples/cry_electabuzz.bin" + + .align 2 +Cry_Magmar:: @ 8598848 + .incbin "sound/direct_sound_samples/cry_magmar.bin" + + .align 2 +Cry_Pinsir:: @ 85997C4 + .incbin "sound/direct_sound_samples/cry_pinsir.bin" + + .align 2 +Cry_Tauros:: @ 859A420 + .incbin "sound/direct_sound_samples/cry_tauros.bin" + + .align 2 +Cry_Magikarp:: @ 859B674 + .incbin "sound/direct_sound_samples/cry_magikarp.bin" + + .align 2 +Cry_Gyarados:: @ 859C97C + .incbin "sound/direct_sound_samples/cry_gyarados.bin" + + .align 2 +Cry_Lapras:: @ 859DDB0 + .incbin "sound/direct_sound_samples/cry_lapras.bin" + + .align 2 +Cry_Ditto:: @ 859EC84 + .incbin "sound/direct_sound_samples/cry_ditto.bin" + + .align 2 +Cry_Eevee:: @ 859F7A0 + .incbin "sound/direct_sound_samples/cry_eevee.bin" + + .align 2 +Cry_Vaporeon:: @ 85A05D8 + .incbin "sound/direct_sound_samples/cry_vaporeon.bin" + + .align 2 +Cry_Jolteon:: @ 85A1BF0 + .incbin "sound/direct_sound_samples/cry_jolteon.bin" + + .align 2 +Cry_Flareon:: @ 85A2BC4 + .incbin "sound/direct_sound_samples/cry_flareon.bin" + + .align 2 +Cry_Porygon:: @ 85A3B48 + .incbin "sound/direct_sound_samples/cry_porygon.bin" + + .align 2 +Cry_Omanyte:: @ 85A4F54 + .incbin "sound/direct_sound_samples/cry_omanyte.bin" + + .align 2 +Cry_Omastar:: @ 85A5CAC + .incbin "sound/direct_sound_samples/cry_omastar.bin" + + .align 2 +Cry_Kabuto:: @ 85A6A00 + .incbin "sound/direct_sound_samples/cry_kabuto.bin" + + .align 2 +Cry_Kabutops:: @ 85A7654 + .incbin "sound/direct_sound_samples/cry_kabutops.bin" + + .align 2 +Cry_Aerodactyl:: @ 85A8410 + .incbin "sound/direct_sound_samples/cry_aerodactyl.bin" + + .align 2 +Cry_Snorlax:: @ 85A9C6C + .incbin "sound/direct_sound_samples/cry_snorlax.bin" + + .align 2 +Cry_Articuno:: @ 85AA1A8 + .incbin "sound/direct_sound_samples/cry_articuno.bin" + + .align 2 +Cry_Zapdos:: @ 85AB950 + .incbin "sound/direct_sound_samples/cry_zapdos.bin" + + .align 2 +Cry_Moltres:: @ 85AC8C8 + .incbin "sound/direct_sound_samples/cry_moltres.bin" + + .align 2 +Cry_Dratini:: @ 85AE074 + .incbin "sound/direct_sound_samples/cry_dratini.bin" + + .align 2 +Cry_Dragonair:: @ 85AEC10 + .incbin "sound/direct_sound_samples/cry_dragonair.bin" + + .align 2 +Cry_Dragonite:: @ 85AFCB8 + .incbin "sound/direct_sound_samples/cry_dragonite.bin" + + .align 2 +Cry_Mewtwo:: @ 85B0FC4 + .incbin "sound/direct_sound_samples/cry_mewtwo.bin" + + .align 2 +Cry_Mew:: @ 85B2E2C + .incbin "sound/direct_sound_samples/cry_mew.bin" + + .align 2 +Cry_Chikorita:: @ 85B4C94 + .incbin "sound/direct_sound_samples/cry_chikorita.bin" + + .align 2 +Cry_Bayleef:: @ 85B51D4 + .incbin "sound/direct_sound_samples/cry_bayleef.bin" + + .align 2 +Cry_Meganium:: @ 85B5AA0 + .incbin "sound/direct_sound_samples/cry_meganium.bin" + + .align 2 +Cry_Cyndaquil:: @ 85B6AD8 + .incbin "sound/direct_sound_samples/cry_cyndaquil.bin" + + .align 2 +Cry_Quilava:: @ 85B71DC + .incbin "sound/direct_sound_samples/cry_quilava.bin" + + .align 2 +Cry_Typhlosion:: @ 85B7DC4 + .incbin "sound/direct_sound_samples/cry_typhlosion.bin" + + .align 2 +Cry_Totodile:: @ 85BA3D4 + .incbin "sound/direct_sound_samples/cry_totodile.bin" + + .align 2 +Cry_Croconaw:: @ 85BB62C + .incbin "sound/direct_sound_samples/cry_croconaw.bin" + + .align 2 +Cry_Feraligatr:: @ 85BCA68 + .incbin "sound/direct_sound_samples/cry_feraligatr.bin" + + .align 2 +Cry_Sentret:: @ 85BE3EC + .incbin "sound/direct_sound_samples/cry_sentret.bin" + + .align 2 +Cry_Furret:: @ 85BE814 + .incbin "sound/direct_sound_samples/cry_furret.bin" + + .align 2 +Cry_Hoothoot:: @ 85BEE5C + .incbin "sound/direct_sound_samples/cry_hoothoot.bin" + + .align 2 +Cry_Noctowl:: @ 85BF940 + .incbin "sound/direct_sound_samples/cry_noctowl.bin" + + .align 2 +Cry_Ledyba:: @ 85C0E70 + .incbin "sound/direct_sound_samples/cry_ledyba.bin" + + .align 2 +Cry_Ledian:: @ 85C1568 + .incbin "sound/direct_sound_samples/cry_ledian.bin" + + .align 2 +Cry_Spinarak:: @ 85C1DCC + .incbin "sound/direct_sound_samples/cry_spinarak.bin" + + .align 2 +Cry_Ariados:: @ 85C2B30 + .incbin "sound/direct_sound_samples/cry_ariados.bin" + + .align 2 +Cry_Crobat:: @ 85C3784 + .incbin "sound/direct_sound_samples/cry_crobat.bin" + + .align 2 +Cry_Chinchou:: @ 85C4EB4 + .incbin "sound/direct_sound_samples/cry_chinchou.bin" + + .align 2 +Cry_Lanturn:: @ 85C5B64 + .incbin "sound/direct_sound_samples/cry_lanturn.bin" + + .align 2 +Cry_Pichu:: @ 85C65F0 + .incbin "sound/direct_sound_samples/cry_pichu.bin" + + .align 2 +Cry_Cleffa:: @ 85C6D44 + .incbin "sound/direct_sound_samples/cry_cleffa.bin" + + .align 2 +Cry_Igglybuff:: @ 85C7334 + .incbin "sound/direct_sound_samples/cry_igglybuff.bin" + + .align 2 +Cry_Togepi:: @ 85C7A30 + .incbin "sound/direct_sound_samples/cry_togepi.bin" + + .align 2 +Cry_Togetic:: @ 85C8518 + .incbin "sound/direct_sound_samples/cry_togetic.bin" + + .align 2 +Cry_Natu:: @ 85C8C18 + .incbin "sound/direct_sound_samples/cry_natu.bin" + + .align 2 +Cry_Xatu:: @ 85C96A8 + .incbin "sound/direct_sound_samples/cry_xatu.bin" + + .align 2 +Cry_Mareep:: @ 85CA574 + .incbin "sound/direct_sound_samples/cry_mareep.bin" + + .align 2 +Cry_Flaaffy:: @ 85CACCC + .incbin "sound/direct_sound_samples/cry_flaaffy.bin" + + .align 2 +Cry_Ampharos:: @ 85CBA80 + .incbin "sound/direct_sound_samples/cry_ampharos.bin" + + .align 2 +Cry_Bellossom:: @ 85CCB00 + .incbin "sound/direct_sound_samples/cry_bellossom.bin" + + .align 2 +Cry_Marill:: @ 85CD918 + .incbin "sound/direct_sound_samples/cry_marill.bin" + + .align 2 +Cry_Azumarill:: @ 85CE62C + .incbin "sound/direct_sound_samples/cry_azumarill.bin" + + .align 2 +Cry_Sudowoodo:: @ 85CF718 + .incbin "sound/direct_sound_samples/cry_sudowoodo.bin" + + .align 2 +Cry_Politoed:: @ 85D0748 + .incbin "sound/direct_sound_samples/cry_politoed.bin" + + .align 2 +Cry_Hoppip:: @ 85D198C + .incbin "sound/direct_sound_samples/cry_hoppip.bin" + + .align 2 +Cry_Skiploom:: @ 85D21F8 + .incbin "sound/direct_sound_samples/cry_skiploom.bin" + + .align 2 +Cry_Jumpluff:: @ 85D2F00 + .incbin "sound/direct_sound_samples/cry_jumpluff.bin" + + .align 2 +Cry_Aipom:: @ 85D3F3C + .incbin "sound/direct_sound_samples/cry_aipom.bin" + + .align 2 +Cry_Sunkern:: @ 85D4D5C + .incbin "sound/direct_sound_samples/cry_sunkern.bin" + + .align 2 +Cry_Sunflora:: @ 85D5570 + .incbin "sound/direct_sound_samples/cry_sunflora.bin" + + .align 2 +Cry_Yanma:: @ 85D6550 + .incbin "sound/direct_sound_samples/cry_yanma.bin" + + .align 2 +Cry_Wooper:: @ 85D7658 + .incbin "sound/direct_sound_samples/cry_wooper.bin" + + .align 2 +Cry_Quagsire:: @ 85D7DB8 + .incbin "sound/direct_sound_samples/cry_quagsire.bin" + + .align 2 +Cry_Espeon:: @ 85D8B18 + .incbin "sound/direct_sound_samples/cry_espeon.bin" + + .align 2 +Cry_Umbreon:: @ 85D9ECC + .incbin "sound/direct_sound_samples/cry_umbreon.bin" + + .align 2 +Cry_Murkrow:: @ 85DAE4C + .incbin "sound/direct_sound_samples/cry_murkrow.bin" + + .align 2 +Cry_Slowking:: @ 85DBF10 + .incbin "sound/direct_sound_samples/cry_slowking.bin" + + .align 2 +Cry_Misdreavus:: @ 85DD6F4 + .incbin "sound/direct_sound_samples/cry_misdreavus.bin" + + .align 2 +Cry_Unown:: @ 85DE294 + .incbin "sound/direct_sound_samples/cry_unown.bin" + + .align 2 +Cry_Wobbuffet:: @ 85DEFBC + .incbin "sound/direct_sound_samples/cry_wobbuffet.bin" + + .align 2 +Cry_Girafarig:: @ 85E0458 + .incbin "sound/direct_sound_samples/cry_girafarig.bin" + + .align 2 +Cry_Pineco:: @ 85E130C + .incbin "sound/direct_sound_samples/cry_pineco.bin" + + .align 2 +Cry_Forretress:: @ 85E206C + .incbin "sound/direct_sound_samples/cry_forretress.bin" + + .align 2 +Cry_Dunsparce:: @ 85E3474 + .incbin "sound/direct_sound_samples/cry_dunsparce.bin" + + .align 2 +Cry_Gligar:: @ 85E4454 + .incbin "sound/direct_sound_samples/cry_gligar.bin" + + .align 2 +Cry_Steelix:: @ 85E5074 + .incbin "sound/direct_sound_samples/cry_steelix.bin" + + .align 2 +Cry_Snubbull:: @ 85E769C + .incbin "sound/direct_sound_samples/cry_snubbull.bin" + + .align 2 +Cry_Granbull:: @ 85E8510 + .incbin "sound/direct_sound_samples/cry_granbull.bin" + + .align 2 +Cry_Qwilfish:: @ 85E9CB4 + .incbin "sound/direct_sound_samples/cry_qwilfish.bin" + + .align 2 +Cry_Scizor:: @ 85EA850 + .incbin "sound/direct_sound_samples/cry_scizor.bin" + + .align 2 +Cry_Shuckle:: @ 85EBF4C + .incbin "sound/direct_sound_samples/cry_shuckle.bin" + + .align 2 +Cry_Heracross:: @ 85EC980 + .incbin "sound/direct_sound_samples/cry_heracross.bin" + + .align 2 +Cry_Sneasel:: @ 85EDBD4 + .incbin "sound/direct_sound_samples/cry_sneasel.bin" + + .align 2 +Cry_Teddiursa:: @ 85EE4F8 + .incbin "sound/direct_sound_samples/cry_teddiursa.bin" + + .align 2 +Cry_Ursaring:: @ 85EF584 + .incbin "sound/direct_sound_samples/cry_ursaring.bin" + + .align 2 +Cry_Slugma:: @ 85F135C + .incbin "sound/direct_sound_samples/cry_slugma.bin" + + .align 2 +Cry_Magcargo:: @ 85F2474 + .incbin "sound/direct_sound_samples/cry_magcargo.bin" + + .align 2 +Cry_Swinub:: @ 85F397C + .incbin "sound/direct_sound_samples/cry_swinub.bin" + + .align 2 +Cry_Piloswine:: @ 85F4624 + .incbin "sound/direct_sound_samples/cry_piloswine.bin" + + .align 2 +Cry_Corsola:: @ 85F5318 + .incbin "sound/direct_sound_samples/cry_corsola.bin" + + .align 2 +Cry_Remoraid:: @ 85F5FF8 + .incbin "sound/direct_sound_samples/cry_remoraid.bin" + + .align 2 +Cry_Octillery:: @ 85F6A88 + .incbin "sound/direct_sound_samples/cry_octillery.bin" + + .align 2 +Cry_Delibird:: @ 85F84CC + .incbin "sound/direct_sound_samples/cry_delibird.bin" + + .align 2 +Cry_Mantine:: @ 85F9500 + .incbin "sound/direct_sound_samples/cry_mantine.bin" + + .align 2 +Cry_Skarmory:: @ 85FA4C8 + .incbin "sound/direct_sound_samples/cry_skarmory.bin" + + .align 2 +Cry_Houndour:: @ 85FBCD0 + .incbin "sound/direct_sound_samples/cry_houndour.bin" + + .align 2 +Cry_Houndoom:: @ 85FC978 + .incbin "sound/direct_sound_samples/cry_houndoom.bin" + + .align 2 +Cry_Kingdra:: @ 85FDD28 + .incbin "sound/direct_sound_samples/cry_kingdra.bin" + + .align 2 +Cry_Phanpy:: @ 85FEB00 + .incbin "sound/direct_sound_samples/cry_phanpy.bin" + + .align 2 +Cry_Donphan:: @ 85FF650 + .incbin "sound/direct_sound_samples/cry_donphan.bin" + + .align 2 +Cry_Porygon2:: @ 8600774 + .incbin "sound/direct_sound_samples/cry_porygon2.bin" + + .align 2 +Cry_Stantler:: @ 860172C + .incbin "sound/direct_sound_samples/cry_stantler.bin" + + .align 2 +Cry_Smeargle:: @ 8602DA8 + .incbin "sound/direct_sound_samples/cry_smeargle.bin" + + .align 2 +Cry_Tyrogue:: @ 86037DC + .incbin "sound/direct_sound_samples/cry_tyrogue.bin" + + .align 2 +Cry_Hitmontop:: @ 8604804 + .incbin "sound/direct_sound_samples/cry_hitmontop.bin" + + .align 2 +Cry_Smoochum:: @ 86055E4 + .incbin "sound/direct_sound_samples/cry_smoochum.bin" + + .align 2 +Cry_Elekid:: @ 8606198 + .incbin "sound/direct_sound_samples/cry_elekid.bin" + + .align 2 +Cry_Magby:: @ 8606C24 + .incbin "sound/direct_sound_samples/cry_magby.bin" + + .align 2 +Cry_Miltank:: @ 8607A94 + .incbin "sound/direct_sound_samples/cry_miltank.bin" + + .align 2 +Cry_Blissey:: @ 8608970 + .incbin "sound/direct_sound_samples/cry_blissey.bin" + + .align 2 +Cry_Raikou:: @ 8609A04 + .incbin "sound/direct_sound_samples/cry_raikou.bin" + + .align 2 +Cry_Entei:: @ 860AB74 + .incbin "sound/direct_sound_samples/cry_entei.bin" + + .align 2 +Cry_Suicune:: @ 860BFE8 + .incbin "sound/direct_sound_samples/cry_suicune.bin" + + .align 2 +Cry_Larvitar:: @ 860D230 + .incbin "sound/direct_sound_samples/cry_larvitar.bin" + + .align 2 +Cry_Pupitar:: @ 860DEE0 + .incbin "sound/direct_sound_samples/cry_pupitar.bin" + + .align 2 +Cry_Tyranitar:: @ 860E750 + .incbin "sound/direct_sound_samples/cry_tyranitar.bin" + + .align 2 +Cry_Lugia:: @ 860FEB0 + .incbin "sound/direct_sound_samples/cry_lugia.bin" + + .align 2 +Cry_HoOh:: @ 86124A8 + .incbin "sound/direct_sound_samples/cry_ho_oh.bin" + + .align 2 +Cry_Celebi:: @ 8613B3C + .incbin "sound/direct_sound_samples/cry_celebi.bin" + + .align 2 +Cry_Kecleon:: @ 86149B4 + .incbin "sound/direct_sound_samples/cry_kecleon.bin" + + .align 2 +Cry_Roselia:: @ 8615214 + .incbin "sound/direct_sound_samples/cry_roselia.bin" + + .align 2 +Cry_Torkoal:: @ 8615CD4 + .incbin "sound/direct_sound_samples/cry_torkoal.bin" + + .align 2 +Cry_Electrike:: @ 8616620 + .incbin "sound/direct_sound_samples/cry_electrike.bin" + + .align 2 +Cry_Manectric:: @ 861727C + .incbin "sound/direct_sound_samples/cry_manectric.bin" + + .align 2 +Cry_Duskull:: @ 8618784 + .incbin "sound/direct_sound_samples/cry_duskull.bin" + + .align 2 +Cry_Latias:: @ 861921C + .incbin "sound/direct_sound_samples/cry_latias.bin" + + .align 2 +Cry_Wynaut:: @ 8619E4C + .incbin "sound/direct_sound_samples/cry_wynaut.bin" + + .align 2 +Cry_Seviper:: @ 861AC2C + .incbin "sound/direct_sound_samples/cry_seviper.bin" + + .align 2 +Cry_Sharpedo:: @ 861B7CC + .incbin "sound/direct_sound_samples/cry_sharpedo.bin" + + .align 2 +Cry_Zangoose:: @ 861CED8 + .incbin "sound/direct_sound_samples/cry_zangoose.bin" + + .align 2 +Cry_Azurill:: @ 861D868 + .incbin "sound/direct_sound_samples/cry_azurill.bin" + + .align 2 +Cry_Swablu:: @ 861E2D0 + .incbin "sound/direct_sound_samples/cry_swablu.bin" + + .align 2 +Cry_Altaria:: @ 861E868 + .incbin "sound/direct_sound_samples/cry_altaria.bin" + + .align 2 +Cry_Unused265:: @ 861F384 + .incbin "sound/direct_sound_samples/cry_unused_265.bin" + + .align 2 +Cry_Taillow:: @ 861FCD8 + .incbin "sound/direct_sound_samples/cry_taillow.bin" + + .align 2 +Cry_Swellow:: @ 86202D8 + .incbin "sound/direct_sound_samples/cry_swellow.bin" + + .align 2 +Cry_Unused268:: @ 8620BDC + .incbin "sound/direct_sound_samples/cry_unused_268.bin" + + .align 2 +Cry_Spinda:: @ 8621D8C + .incbin "sound/direct_sound_samples/cry_spinda.bin" + + .align 2 +Cry_Torchic:: @ 86229F8 + .incbin "sound/direct_sound_samples/cry_torchic.bin" + + .align 2 +Cry_Combusken:: @ 86233A0 + .incbin "sound/direct_sound_samples/cry_combusken.bin" + + .align 2 +Cry_Blaziken:: @ 8625074 + .incbin "sound/direct_sound_samples/cry_blaziken.bin" + + .align 2 +Cry_Treecko:: @ 8626FF4 + .incbin "sound/direct_sound_samples/cry_treecko.bin" + + .align 2 +Cry_Grovyle:: @ 8627B9C + .incbin "sound/direct_sound_samples/cry_grovyle.bin" + + .align 2 +Cry_Sceptile:: @ 8629010 + .incbin "sound/direct_sound_samples/cry_sceptile.bin" + + .align 2 +Cry_Mudkip:: @ 862AA2C + .incbin "sound/direct_sound_samples/cry_mudkip.bin" + + .align 2 +Cry_Marshtomp:: @ 862B1B0 + .incbin "sound/direct_sound_samples/cry_marshtomp.bin" + + .align 2 +Cry_Swampert:: @ 862C2B4 + .incbin "sound/direct_sound_samples/cry_swampert.bin" + + .align 2 +Cry_Pelipper:: @ 862D934 + .incbin "sound/direct_sound_samples/cry_pelipper.bin" + + .align 2 +Cry_Wingull:: @ 862E4FC + .incbin "sound/direct_sound_samples/cry_wingull.bin" + + .align 2 +Cry_Banette:: @ 862F13C + .incbin "sound/direct_sound_samples/cry_banette.bin" + + .align 2 +Cry_Shuppet:: @ 862FDE4 + .incbin "sound/direct_sound_samples/cry_shuppet.bin" + + .align 2 +Cry_Lotad:: @ 8630624 + .incbin "sound/direct_sound_samples/cry_lotad.bin" + + .align 2 +Cry_Lombre:: @ 8630A8C + .incbin "sound/direct_sound_samples/cry_lombre.bin" + + .align 2 +Cry_Ludicolo:: @ 8631920 + .incbin "sound/direct_sound_samples/cry_ludicolo.bin" + + .align 2 +Cry_Seedot:: @ 86329F0 + .incbin "sound/direct_sound_samples/cry_seedot.bin" + + .align 2 +Cry_Nuzleaf:: @ 863321C + .incbin "sound/direct_sound_samples/cry_nuzleaf.bin" + + .align 2 +Cry_Shiftry:: @ 8633D84 + .incbin "sound/direct_sound_samples/cry_shiftry.bin" + + .align 2 +Cry_Carvanha:: @ 8635148 + .incbin "sound/direct_sound_samples/cry_carvanha.bin" + + .align 2 +Cry_Wurmple:: @ 8635B5C + .incbin "sound/direct_sound_samples/cry_wurmple.bin" + + .align 2 +Cry_Silcoon:: @ 8636428 + .incbin "sound/direct_sound_samples/cry_silcoon.bin" + + .align 2 +Cry_Beautifly:: @ 8637454 + .incbin "sound/direct_sound_samples/cry_beautifly.bin" + + .align 2 +Cry_Cascoon:: @ 8637C8C + .incbin "sound/direct_sound_samples/cry_cascoon.bin" + + .align 2 +Cry_Dustox:: @ 8638CD0 + .incbin "sound/direct_sound_samples/cry_dustox.bin" + + .align 2 +Cry_Ralts:: @ 863997C + .incbin "sound/direct_sound_samples/cry_ralts.bin" + + .align 2 +Cry_Kirlia:: @ 863A398 + .incbin "sound/direct_sound_samples/cry_kirlia.bin" + + .align 2 +Cry_Gardevoir:: @ 863AFC8 + .incbin "sound/direct_sound_samples/cry_gardevoir.bin" + + .align 2 +Cry_Slakoth:: @ 863C82C + .incbin "sound/direct_sound_samples/cry_slakoth.bin" + + .align 2 +Cry_Vigoroth:: @ 863D0B0 + .incbin "sound/direct_sound_samples/cry_vigoroth.bin" + + .align 2 +Cry_Slaking:: @ 863DF08 + .incbin "sound/direct_sound_samples/cry_slaking.bin" + + .align 2 +Cry_Nincada:: @ 863E8F4 + .incbin "sound/direct_sound_samples/cry_nincada.bin" + + .align 2 +Cry_Ninjask:: @ 863EF64 + .incbin "sound/direct_sound_samples/cry_ninjask.bin" + + .align 2 +Cry_Shedinja:: @ 863FB8C + .incbin "sound/direct_sound_samples/cry_shedinja.bin" + + .align 2 +Cry_Makuhita:: @ 8640344 + .incbin "sound/direct_sound_samples/cry_makuhita.bin" + + .align 2 +Cry_Hariyama:: @ 8640AA0 + .incbin "sound/direct_sound_samples/cry_hariyama.bin" + + .align 2 +Cry_Nosepass:: @ 8641B58 + .incbin "sound/direct_sound_samples/cry_nosepass.bin" + + .align 2 +Cry_Glalie:: @ 86428BC + .incbin "sound/direct_sound_samples/cry_glalie.bin" + + .align 2 +Cry_Plusle:: @ 8643DA0 + .incbin "sound/direct_sound_samples/cry_plusle.bin" + + .align 2 +Cry_Minun:: @ 864469C + .incbin "sound/direct_sound_samples/cry_minun.bin" + + .align 2 +Cry_Surskit:: @ 86456A4 + .incbin "sound/direct_sound_samples/cry_surskit.bin" + + .align 2 +Cry_Masquerain:: @ 8646124 + .incbin "sound/direct_sound_samples/cry_masquerain.bin" + + .align 2 +Cry_Skitty:: @ 86474D8 + .incbin "sound/direct_sound_samples/cry_skitty.bin" + + .align 2 +Cry_Delcatty:: @ 8647BEC + .incbin "sound/direct_sound_samples/cry_delcatty.bin" + + .align 2 +Cry_Gulpin:: @ 8649104 + .incbin "sound/direct_sound_samples/cry_gulpin.bin" + + .align 2 +Cry_Swalot:: @ 8649908 + .incbin "sound/direct_sound_samples/cry_swalot.bin" + + .align 2 +Cry_Numel:: @ 864AA68 + .incbin "sound/direct_sound_samples/cry_numel.bin" + + .align 2 +Cry_Camerupt:: @ 864B3B4 + .incbin "sound/direct_sound_samples/cry_camerupt.bin" + + .align 2 +Cry_Barboach:: @ 864CAD4 + .incbin "sound/direct_sound_samples/cry_barboach.bin" + + .align 2 +Cry_Whiscash:: @ 864D410 + .incbin "sound/direct_sound_samples/cry_whiscash.bin" + + .align 2 +Cry_Corphish:: @ 864E50C + .incbin "sound/direct_sound_samples/cry_corphish.bin" + + .align 2 +Cry_Crawdaunt:: @ 864F110 + .incbin "sound/direct_sound_samples/cry_crawdaunt.bin" + + .align 2 +Cry_Spoink:: @ 86509C8 + .incbin "sound/direct_sound_samples/cry_spoink.bin" + + .align 2 +Cry_Grumpig:: @ 8651108 + .incbin "sound/direct_sound_samples/cry_grumpig.bin" + + .align 2 +Cry_Trapinch:: @ 8651DA8 + .incbin "sound/direct_sound_samples/cry_trapinch.bin" + + .align 2 +Cry_Vibrava:: @ 86527CC + .incbin "sound/direct_sound_samples/cry_vibrava.bin" + + .align 2 +Cry_Flygon:: @ 86535D0 + .incbin "sound/direct_sound_samples/cry_flygon.bin" + + .align 2 +Cry_Cacnea:: @ 8654FD8 + .incbin "sound/direct_sound_samples/cry_cacnea.bin" + + .align 2 +Cry_Cacturne:: @ 86558C8 + .incbin "sound/direct_sound_samples/cry_cacturne.bin" + + .align 2 +Cry_Baltoy:: @ 8656F78 + .incbin "sound/direct_sound_samples/cry_baltoy.bin" + + .align 2 +Cry_Claydol:: @ 8657BFC + .incbin "sound/direct_sound_samples/cry_claydol.bin" + + .align 2 +Cry_Lunatone:: @ 8658F5C + .incbin "sound/direct_sound_samples/cry_lunatone.bin" + + .align 2 +Cry_Solrock:: @ 865A758 + .incbin "sound/direct_sound_samples/cry_solrock.bin" + + .align 2 +Cry_Feebas:: @ 865B784 + .incbin "sound/direct_sound_samples/cry_feebas.bin" + + .align 2 +Cry_Milotic:: @ 865BF58 + .incbin "sound/direct_sound_samples/cry_milotic.bin" + + .align 2 +Cry_Absol:: @ 865E69C + .incbin "sound/direct_sound_samples/cry_absol.bin" + + .align 2 +Cry_Meditite:: @ 865F118 + .incbin "sound/direct_sound_samples/cry_meditite.bin" + + .align 2 +Cry_Medicham:: @ 865F938 + .incbin "sound/direct_sound_samples/cry_medicham.bin" + + .align 2 +Cry_Spheal:: @ 86609BC + .incbin "sound/direct_sound_samples/cry_spheal.bin" + + .align 2 +Cry_Sealeo:: @ 8660F70 + .incbin "sound/direct_sound_samples/cry_sealeo.bin" + + .align 2 +Cry_Walrein:: @ 8661B48 + .incbin "sound/direct_sound_samples/cry_walrein.bin" + + .align 2 +Cry_Clamperl:: @ 8663F94 + .incbin "sound/direct_sound_samples/cry_clamperl.bin" + + .align 2 +Cry_Huntail:: @ 86651E4 + .incbin "sound/direct_sound_samples/cry_huntail.bin" + + .align 2 +Cry_Gorebyss:: @ 86661CC + .incbin "sound/direct_sound_samples/cry_gorebyss.bin" + + .align 2 +Cry_Lileep:: @ 8667838 + .incbin "sound/direct_sound_samples/cry_lileep.bin" + + .align 2 +Cry_Cradily:: @ 86681E0 + .incbin "sound/direct_sound_samples/cry_cradily.bin" + + .align 2 +Cry_Anorith:: @ 8669F10 + .incbin "sound/direct_sound_samples/cry_anorith.bin" + + .align 2 +Cry_Armaldo:: @ 866AAC8 + .incbin "sound/direct_sound_samples/cry_armaldo.bin" + + .align 2 +Cry_Beldum:: @ 866C19C + .incbin "sound/direct_sound_samples/cry_beldum.bin" + + .align 2 +Cry_Metang:: @ 866CB3C + .incbin "sound/direct_sound_samples/cry_metang.bin" + + .align 2 +Cry_Metagross:: @ 866DE10 + .incbin "sound/direct_sound_samples/cry_metagross.bin" + + .align 2 +Cry_Bagon:: @ 8670588 + .incbin "sound/direct_sound_samples/cry_bagon.bin" + + .align 2 +Cry_Shelgon:: @ 8670D5C + .incbin "sound/direct_sound_samples/cry_shelgon.bin" + + .align 2 +Cry_Regirock:: @ 8672164 + .incbin "sound/direct_sound_samples/cry_regirock.bin" + + .align 2 +Cry_Regice:: @ 8674140 + .incbin "sound/direct_sound_samples/cry_regice.bin" + + .align 2 +Cry_Registeel:: @ 8676140 + .incbin "sound/direct_sound_samples/cry_registeel.bin" + + .align 2 +Cry_Castform:: @ 8677844 + .incbin "sound/direct_sound_samples/cry_castform.bin" + + .align 2 +Cry_Volbeat:: @ 86784DC + .incbin "sound/direct_sound_samples/cry_volbeat.bin" + + .align 2 +Cry_Illumise:: @ 8679064 + .incbin "sound/direct_sound_samples/cry_illumise.bin" + + .align 2 +Cry_Poochyena:: @ 867A17C + .incbin "sound/direct_sound_samples/cry_poochyena.bin" + + .align 2 +Cry_Mightyena:: @ 867AAC4 + .incbin "sound/direct_sound_samples/cry_mightyena.bin" + + .align 2 +Cry_Dusclops:: @ 867BE50 + .incbin "sound/direct_sound_samples/cry_dusclops.bin" + + .align 2 +Cry_Sableye:: @ 867CC08 + .incbin "sound/direct_sound_samples/cry_sableye.bin" + + .align 2 +Cry_Mawile:: @ 867D7AC + .incbin "sound/direct_sound_samples/cry_mawile.bin" + + .align 2 +Cry_Aron:: @ 867E32C + .incbin "sound/direct_sound_samples/cry_aron.bin" + + .align 2 +Cry_Lairon:: @ 867EC58 + .incbin "sound/direct_sound_samples/cry_lairon.bin" + + .align 2 +Cry_Aggron:: @ 8680130 + .incbin "sound/direct_sound_samples/cry_aggron.bin" + + .align 2 +Cry_Relicanth:: @ 8681AD4 + .incbin "sound/direct_sound_samples/cry_relicanth.bin" + + .align 2 +Cry_Luvdisc:: @ 8682F04 + .incbin "sound/direct_sound_samples/cry_luvdisc.bin" + + .align 2 +Cry_Groudon:: @ 86833E0 + .incbin "sound/direct_sound_samples/cry_groudon.bin" + + .align 2 +Cry_Kyogre:: @ 86858EC + .incbin "sound/direct_sound_samples/cry_kyogre.bin" + + .align 2 +Cry_Rayquaza:: @ 8687CA4 + .incbin "sound/direct_sound_samples/cry_rayquaza.bin" + + .align 2 +Cry_Salamence:: @ 86899D0 + .incbin "sound/direct_sound_samples/cry_salamence.bin" + + .align 2 +Cry_Breloom:: @ 868B2EC + .incbin "sound/direct_sound_samples/cry_breloom.bin" + + .align 2 +Cry_Shroomish:: @ 868BFAC + .incbin "sound/direct_sound_samples/cry_shroomish.bin" + + .align 2 +Cry_Linoone:: @ 868C884 + .incbin "sound/direct_sound_samples/cry_linoone.bin" + + .align 2 +Cry_Tropius:: @ 868E720 + .incbin "sound/direct_sound_samples/cry_tropius.bin" + + .align 2 +Cry_Wailmer:: @ 86907E4 + .incbin "sound/direct_sound_samples/cry_wailmer.bin" + + .align 2 +Cry_Zigzagoon:: @ 8692444 + .incbin "sound/direct_sound_samples/cry_zigzagoon.bin" + + .align 2 +Cry_Exploud:: @ 8692FD4 + .incbin "sound/direct_sound_samples/cry_exploud.bin" + + .align 2 +Cry_Loudred:: @ 8694C1C + .incbin "sound/direct_sound_samples/cry_loudred.bin" + + .align 2 +Cry_Wailord:: @ 8695944 + .incbin "sound/direct_sound_samples/cry_wailord.bin" + + .align 2 +Cry_Whismur:: @ 8698354 + .incbin "sound/direct_sound_samples/cry_whismur.bin" + + .align 2 +Cry_Snorunt:: @ 8698B78 + .incbin "sound/direct_sound_samples/cry_snorunt.bin" + + .align 2 +Cry_Latios:: @ 8699C80 + .incbin "sound/direct_sound_samples/cry_latios.bin" + + .align 2 +Cry_Jirachi:: @ 869B278 + .incbin "sound/direct_sound_samples/cry_jirachi.bin" + + .align 2 +Cry_Deoxys:: @ 869BFFC + .incbin "sound/direct_sound_samples/cry_deoxys.bin" + + .align 2 +Cry_Chimecho:: @ 869D4D0 + .incbin "sound/direct_sound_samples/cry_chimecho.bin" + + .align 2 + +gDirectSoundWaveData_76:: @ 869DEE0 + .incbin "sound/direct_sound_samples/wave_76.bin" + +gDirectSoundWaveData_77:: @ 869FE40 + .incbin "sound/direct_sound_samples/wave_77.bin" + +gDirectSoundWaveData_78:: @ 86A18E0 + .incbin "sound/direct_sound_samples/wave_78.bin" + +gDirectSoundWaveData_79:: @ 86A3850 + .incbin "sound/direct_sound_samples/wave_79.bin" + +gDirectSoundWaveData_80:: @ 86A5088 + .incbin "sound/direct_sound_samples/wave_80.bin" + +gDirectSoundWaveData_81:: @ 86A6458 + .incbin "sound/direct_sound_samples/wave_81.bin" + +gDirectSoundWaveData_82:: @ 86A761C + .incbin "sound/direct_sound_samples/wave_82.bin" + +gDirectSoundWaveData_83:: @ 86A948C + .incbin "sound/direct_sound_samples/wave_83.bin" + +gDirectSoundWaveData_84:: @ 86AC47C + .incbin "sound/direct_sound_samples/wave_84.bin" + +gDirectSoundWaveData_85:: @ 86AF0D0 + .incbin "sound/direct_sound_samples/wave_85.bin" + +gDirectSoundWaveData_86:: @ 86AFB30 + .incbin "sound/direct_sound_samples/wave_86.bin" + +gDirectSoundWaveData_87:: @ 86B2198 + .incbin "sound/direct_sound_samples/wave_87.bin" + +gDirectSoundWaveData_88:: @ 86B3540 + .incbin "sound/direct_sound_samples/wave_88.bin" diff --git a/sound/direct_sound_samples/wave_0.aif b/sound/direct_sound_samples/wave_0.aif new file mode 100644 index 000000000..22b8f1691 Binary files /dev/null and b/sound/direct_sound_samples/wave_0.aif differ diff --git a/sound/direct_sound_samples/wave_1.aif b/sound/direct_sound_samples/wave_1.aif new file mode 100644 index 000000000..6372bbc32 Binary files /dev/null and b/sound/direct_sound_samples/wave_1.aif differ diff --git a/sound/direct_sound_samples/wave_10.aif b/sound/direct_sound_samples/wave_10.aif new file mode 100644 index 000000000..c0ce144f6 Binary files /dev/null and b/sound/direct_sound_samples/wave_10.aif differ diff --git a/sound/direct_sound_samples/wave_11.aif b/sound/direct_sound_samples/wave_11.aif new file mode 100644 index 000000000..d8a81b503 Binary files /dev/null and b/sound/direct_sound_samples/wave_11.aif differ diff --git a/sound/direct_sound_samples/wave_12.aif b/sound/direct_sound_samples/wave_12.aif new file mode 100644 index 000000000..fa33ba810 Binary files /dev/null and b/sound/direct_sound_samples/wave_12.aif differ diff --git a/sound/direct_sound_samples/wave_13.aif b/sound/direct_sound_samples/wave_13.aif new file mode 100644 index 000000000..dcae315ec Binary files /dev/null and b/sound/direct_sound_samples/wave_13.aif differ diff --git a/sound/direct_sound_samples/wave_14.aif b/sound/direct_sound_samples/wave_14.aif new file mode 100644 index 000000000..d3caec2bf Binary files /dev/null and b/sound/direct_sound_samples/wave_14.aif differ diff --git a/sound/direct_sound_samples/wave_15.aif b/sound/direct_sound_samples/wave_15.aif new file mode 100644 index 000000000..115ebd3f8 Binary files /dev/null and b/sound/direct_sound_samples/wave_15.aif differ diff --git a/sound/direct_sound_samples/wave_16.aif b/sound/direct_sound_samples/wave_16.aif new file mode 100644 index 000000000..b11787ffc Binary files /dev/null and b/sound/direct_sound_samples/wave_16.aif differ diff --git a/sound/direct_sound_samples/wave_17.aif b/sound/direct_sound_samples/wave_17.aif new file mode 100644 index 000000000..3b30d894c Binary files /dev/null and b/sound/direct_sound_samples/wave_17.aif differ diff --git a/sound/direct_sound_samples/wave_18.aif b/sound/direct_sound_samples/wave_18.aif new file mode 100644 index 000000000..39ec57d29 Binary files /dev/null and b/sound/direct_sound_samples/wave_18.aif differ diff --git a/sound/direct_sound_samples/wave_19.aif b/sound/direct_sound_samples/wave_19.aif new file mode 100644 index 000000000..55b9f73ba Binary files /dev/null and b/sound/direct_sound_samples/wave_19.aif differ diff --git a/sound/direct_sound_samples/wave_2.aif b/sound/direct_sound_samples/wave_2.aif new file mode 100644 index 000000000..737a7200f Binary files /dev/null and b/sound/direct_sound_samples/wave_2.aif differ diff --git a/sound/direct_sound_samples/wave_20.aif b/sound/direct_sound_samples/wave_20.aif new file mode 100644 index 000000000..56286e494 Binary files /dev/null and b/sound/direct_sound_samples/wave_20.aif differ diff --git a/sound/direct_sound_samples/wave_21.aif b/sound/direct_sound_samples/wave_21.aif new file mode 100644 index 000000000..2e1bf9c64 Binary files /dev/null and b/sound/direct_sound_samples/wave_21.aif differ diff --git a/sound/direct_sound_samples/wave_22.aif b/sound/direct_sound_samples/wave_22.aif new file mode 100644 index 000000000..8e1cb620a Binary files /dev/null and b/sound/direct_sound_samples/wave_22.aif differ diff --git a/sound/direct_sound_samples/wave_23.aif b/sound/direct_sound_samples/wave_23.aif new file mode 100644 index 000000000..b82e9c208 Binary files /dev/null and b/sound/direct_sound_samples/wave_23.aif differ diff --git a/sound/direct_sound_samples/wave_24.aif b/sound/direct_sound_samples/wave_24.aif new file mode 100644 index 000000000..3343a53a3 Binary files /dev/null and b/sound/direct_sound_samples/wave_24.aif differ diff --git a/sound/direct_sound_samples/wave_25.aif b/sound/direct_sound_samples/wave_25.aif new file mode 100644 index 000000000..d6357accb Binary files /dev/null and b/sound/direct_sound_samples/wave_25.aif differ diff --git a/sound/direct_sound_samples/wave_26.aif b/sound/direct_sound_samples/wave_26.aif new file mode 100644 index 000000000..743451262 Binary files /dev/null and b/sound/direct_sound_samples/wave_26.aif differ diff --git a/sound/direct_sound_samples/wave_27.aif b/sound/direct_sound_samples/wave_27.aif new file mode 100644 index 000000000..5f3819310 Binary files /dev/null and b/sound/direct_sound_samples/wave_27.aif differ diff --git a/sound/direct_sound_samples/wave_28.aif b/sound/direct_sound_samples/wave_28.aif new file mode 100644 index 000000000..2e67f1d73 Binary files /dev/null and b/sound/direct_sound_samples/wave_28.aif differ diff --git a/sound/direct_sound_samples/wave_29.aif b/sound/direct_sound_samples/wave_29.aif new file mode 100644 index 000000000..fb1ce68f0 Binary files /dev/null and b/sound/direct_sound_samples/wave_29.aif differ diff --git a/sound/direct_sound_samples/wave_3.aif b/sound/direct_sound_samples/wave_3.aif new file mode 100644 index 000000000..b709d3aee Binary files /dev/null and b/sound/direct_sound_samples/wave_3.aif differ diff --git a/sound/direct_sound_samples/wave_30.aif b/sound/direct_sound_samples/wave_30.aif new file mode 100644 index 000000000..6d8330b86 Binary files /dev/null and b/sound/direct_sound_samples/wave_30.aif differ diff --git a/sound/direct_sound_samples/wave_31.aif b/sound/direct_sound_samples/wave_31.aif new file mode 100644 index 000000000..519c3b8a8 Binary files /dev/null and b/sound/direct_sound_samples/wave_31.aif differ diff --git a/sound/direct_sound_samples/wave_32.aif b/sound/direct_sound_samples/wave_32.aif new file mode 100644 index 000000000..2cb47ad90 Binary files /dev/null and b/sound/direct_sound_samples/wave_32.aif differ diff --git a/sound/direct_sound_samples/wave_33.aif b/sound/direct_sound_samples/wave_33.aif new file mode 100644 index 000000000..b161f72ee Binary files /dev/null and b/sound/direct_sound_samples/wave_33.aif differ diff --git a/sound/direct_sound_samples/wave_34.aif b/sound/direct_sound_samples/wave_34.aif new file mode 100644 index 000000000..dd30ae441 Binary files /dev/null and b/sound/direct_sound_samples/wave_34.aif differ diff --git a/sound/direct_sound_samples/wave_35.aif b/sound/direct_sound_samples/wave_35.aif new file mode 100644 index 000000000..df4773522 Binary files /dev/null and b/sound/direct_sound_samples/wave_35.aif differ diff --git a/sound/direct_sound_samples/wave_36.aif b/sound/direct_sound_samples/wave_36.aif new file mode 100644 index 000000000..81ebda139 Binary files /dev/null and b/sound/direct_sound_samples/wave_36.aif differ diff --git a/sound/direct_sound_samples/wave_37.aif b/sound/direct_sound_samples/wave_37.aif new file mode 100644 index 000000000..8ec870f7b Binary files /dev/null and b/sound/direct_sound_samples/wave_37.aif differ diff --git a/sound/direct_sound_samples/wave_38.aif b/sound/direct_sound_samples/wave_38.aif new file mode 100644 index 000000000..bfaa5c196 Binary files /dev/null and b/sound/direct_sound_samples/wave_38.aif differ diff --git a/sound/direct_sound_samples/wave_39.aif b/sound/direct_sound_samples/wave_39.aif new file mode 100644 index 000000000..17b03d91a Binary files /dev/null and b/sound/direct_sound_samples/wave_39.aif differ diff --git a/sound/direct_sound_samples/wave_4.aif b/sound/direct_sound_samples/wave_4.aif new file mode 100644 index 000000000..81b82c41c Binary files /dev/null and b/sound/direct_sound_samples/wave_4.aif differ diff --git a/sound/direct_sound_samples/wave_40.aif b/sound/direct_sound_samples/wave_40.aif new file mode 100644 index 000000000..ab3d5da53 Binary files /dev/null and b/sound/direct_sound_samples/wave_40.aif differ diff --git a/sound/direct_sound_samples/wave_41.aif b/sound/direct_sound_samples/wave_41.aif new file mode 100644 index 000000000..fe5ac0067 Binary files /dev/null and b/sound/direct_sound_samples/wave_41.aif differ diff --git a/sound/direct_sound_samples/wave_42.aif b/sound/direct_sound_samples/wave_42.aif new file mode 100644 index 000000000..fb862d2fc Binary files /dev/null and b/sound/direct_sound_samples/wave_42.aif differ diff --git a/sound/direct_sound_samples/wave_43.aif b/sound/direct_sound_samples/wave_43.aif new file mode 100644 index 000000000..f39c9fd79 Binary files /dev/null and b/sound/direct_sound_samples/wave_43.aif differ diff --git a/sound/direct_sound_samples/wave_44.aif b/sound/direct_sound_samples/wave_44.aif new file mode 100644 index 000000000..f8862cebf Binary files /dev/null and b/sound/direct_sound_samples/wave_44.aif differ diff --git a/sound/direct_sound_samples/wave_45.aif b/sound/direct_sound_samples/wave_45.aif new file mode 100644 index 000000000..6adda7673 Binary files /dev/null and b/sound/direct_sound_samples/wave_45.aif differ diff --git a/sound/direct_sound_samples/wave_46.aif b/sound/direct_sound_samples/wave_46.aif new file mode 100644 index 000000000..742c4385e Binary files /dev/null and b/sound/direct_sound_samples/wave_46.aif differ diff --git a/sound/direct_sound_samples/wave_47.aif b/sound/direct_sound_samples/wave_47.aif new file mode 100644 index 000000000..b7f98929f Binary files /dev/null and b/sound/direct_sound_samples/wave_47.aif differ diff --git a/sound/direct_sound_samples/wave_48.aif b/sound/direct_sound_samples/wave_48.aif new file mode 100644 index 000000000..f32c5a71e Binary files /dev/null and b/sound/direct_sound_samples/wave_48.aif differ diff --git a/sound/direct_sound_samples/wave_49.aif b/sound/direct_sound_samples/wave_49.aif new file mode 100644 index 000000000..ee52f958a Binary files /dev/null and b/sound/direct_sound_samples/wave_49.aif differ diff --git a/sound/direct_sound_samples/wave_5.aif b/sound/direct_sound_samples/wave_5.aif new file mode 100644 index 000000000..84829d634 Binary files /dev/null and b/sound/direct_sound_samples/wave_5.aif differ diff --git a/sound/direct_sound_samples/wave_50.aif b/sound/direct_sound_samples/wave_50.aif new file mode 100644 index 000000000..6147cf25c Binary files /dev/null and b/sound/direct_sound_samples/wave_50.aif differ diff --git a/sound/direct_sound_samples/wave_51.aif b/sound/direct_sound_samples/wave_51.aif new file mode 100644 index 000000000..eec199f07 Binary files /dev/null and b/sound/direct_sound_samples/wave_51.aif differ diff --git a/sound/direct_sound_samples/wave_52.aif b/sound/direct_sound_samples/wave_52.aif new file mode 100644 index 000000000..09e17f0ca Binary files /dev/null and b/sound/direct_sound_samples/wave_52.aif differ diff --git a/sound/direct_sound_samples/wave_53.aif b/sound/direct_sound_samples/wave_53.aif new file mode 100644 index 000000000..52191fa16 Binary files /dev/null and b/sound/direct_sound_samples/wave_53.aif differ diff --git a/sound/direct_sound_samples/wave_54.aif b/sound/direct_sound_samples/wave_54.aif new file mode 100644 index 000000000..ee6ff45b7 Binary files /dev/null and b/sound/direct_sound_samples/wave_54.aif differ diff --git a/sound/direct_sound_samples/wave_55.aif b/sound/direct_sound_samples/wave_55.aif new file mode 100644 index 000000000..c30d477ee Binary files /dev/null and b/sound/direct_sound_samples/wave_55.aif differ diff --git a/sound/direct_sound_samples/wave_56.aif b/sound/direct_sound_samples/wave_56.aif new file mode 100644 index 000000000..2e09d0822 Binary files /dev/null and b/sound/direct_sound_samples/wave_56.aif differ diff --git a/sound/direct_sound_samples/wave_57.aif b/sound/direct_sound_samples/wave_57.aif new file mode 100644 index 000000000..7c883ceb8 Binary files /dev/null and b/sound/direct_sound_samples/wave_57.aif differ diff --git a/sound/direct_sound_samples/wave_58.aif b/sound/direct_sound_samples/wave_58.aif new file mode 100644 index 000000000..582755ef0 Binary files /dev/null and b/sound/direct_sound_samples/wave_58.aif differ diff --git a/sound/direct_sound_samples/wave_59.aif b/sound/direct_sound_samples/wave_59.aif new file mode 100644 index 000000000..6b247df07 Binary files /dev/null and b/sound/direct_sound_samples/wave_59.aif differ diff --git a/sound/direct_sound_samples/wave_6.aif b/sound/direct_sound_samples/wave_6.aif new file mode 100644 index 000000000..25d766a6b Binary files /dev/null and b/sound/direct_sound_samples/wave_6.aif differ diff --git a/sound/direct_sound_samples/wave_60.aif b/sound/direct_sound_samples/wave_60.aif new file mode 100644 index 000000000..89872bf55 Binary files /dev/null and b/sound/direct_sound_samples/wave_60.aif differ diff --git a/sound/direct_sound_samples/wave_61.aif b/sound/direct_sound_samples/wave_61.aif new file mode 100644 index 000000000..22e5ce5e5 Binary files /dev/null and b/sound/direct_sound_samples/wave_61.aif differ diff --git a/sound/direct_sound_samples/wave_62.aif b/sound/direct_sound_samples/wave_62.aif new file mode 100644 index 000000000..b481b1ee7 Binary files /dev/null and b/sound/direct_sound_samples/wave_62.aif differ diff --git a/sound/direct_sound_samples/wave_63.aif b/sound/direct_sound_samples/wave_63.aif new file mode 100644 index 000000000..c2c7e46ec Binary files /dev/null and b/sound/direct_sound_samples/wave_63.aif differ diff --git a/sound/direct_sound_samples/wave_64.aif b/sound/direct_sound_samples/wave_64.aif new file mode 100644 index 000000000..556be0238 Binary files /dev/null and b/sound/direct_sound_samples/wave_64.aif differ diff --git a/sound/direct_sound_samples/wave_65.aif b/sound/direct_sound_samples/wave_65.aif new file mode 100644 index 000000000..f85ca6420 Binary files /dev/null and b/sound/direct_sound_samples/wave_65.aif differ diff --git a/sound/direct_sound_samples/wave_66.aif b/sound/direct_sound_samples/wave_66.aif new file mode 100644 index 000000000..9d00ecae6 Binary files /dev/null and b/sound/direct_sound_samples/wave_66.aif differ diff --git a/sound/direct_sound_samples/wave_67.aif b/sound/direct_sound_samples/wave_67.aif new file mode 100644 index 000000000..7ed48cd30 Binary files /dev/null and b/sound/direct_sound_samples/wave_67.aif differ diff --git a/sound/direct_sound_samples/wave_68.aif b/sound/direct_sound_samples/wave_68.aif new file mode 100644 index 000000000..59624fc7d Binary files /dev/null and b/sound/direct_sound_samples/wave_68.aif differ diff --git a/sound/direct_sound_samples/wave_69.aif b/sound/direct_sound_samples/wave_69.aif new file mode 100644 index 000000000..75d17efdf Binary files /dev/null and b/sound/direct_sound_samples/wave_69.aif differ diff --git a/sound/direct_sound_samples/wave_7.aif b/sound/direct_sound_samples/wave_7.aif new file mode 100644 index 000000000..83cb8c7d0 Binary files /dev/null and b/sound/direct_sound_samples/wave_7.aif differ diff --git a/sound/direct_sound_samples/wave_70.aif b/sound/direct_sound_samples/wave_70.aif new file mode 100644 index 000000000..083c45e3d Binary files /dev/null and b/sound/direct_sound_samples/wave_70.aif differ diff --git a/sound/direct_sound_samples/wave_71.aif b/sound/direct_sound_samples/wave_71.aif new file mode 100644 index 000000000..d9e2f840a Binary files /dev/null and b/sound/direct_sound_samples/wave_71.aif differ diff --git a/sound/direct_sound_samples/wave_72.aif b/sound/direct_sound_samples/wave_72.aif new file mode 100644 index 000000000..e0599eb36 Binary files /dev/null and b/sound/direct_sound_samples/wave_72.aif differ diff --git a/sound/direct_sound_samples/wave_73.aif b/sound/direct_sound_samples/wave_73.aif new file mode 100644 index 000000000..a0fb49f89 Binary files /dev/null and b/sound/direct_sound_samples/wave_73.aif differ diff --git a/sound/direct_sound_samples/wave_74.aif b/sound/direct_sound_samples/wave_74.aif new file mode 100644 index 000000000..e4c024cf5 Binary files /dev/null and b/sound/direct_sound_samples/wave_74.aif differ diff --git a/sound/direct_sound_samples/wave_75.aif b/sound/direct_sound_samples/wave_75.aif new file mode 100644 index 000000000..7d84c7b31 Binary files /dev/null and b/sound/direct_sound_samples/wave_75.aif differ diff --git a/sound/direct_sound_samples/wave_76.aif b/sound/direct_sound_samples/wave_76.aif new file mode 100644 index 000000000..e56c5c131 Binary files /dev/null and b/sound/direct_sound_samples/wave_76.aif differ diff --git a/sound/direct_sound_samples/wave_77.aif b/sound/direct_sound_samples/wave_77.aif new file mode 100644 index 000000000..f87b207bc Binary files /dev/null and b/sound/direct_sound_samples/wave_77.aif differ diff --git a/sound/direct_sound_samples/wave_78.aif b/sound/direct_sound_samples/wave_78.aif new file mode 100644 index 000000000..c1a575c12 Binary files /dev/null and b/sound/direct_sound_samples/wave_78.aif differ diff --git a/sound/direct_sound_samples/wave_79.aif b/sound/direct_sound_samples/wave_79.aif new file mode 100644 index 000000000..8b7a7da40 Binary files /dev/null and b/sound/direct_sound_samples/wave_79.aif differ diff --git a/sound/direct_sound_samples/wave_8.aif b/sound/direct_sound_samples/wave_8.aif new file mode 100644 index 000000000..2a0ea2a26 Binary files /dev/null and b/sound/direct_sound_samples/wave_8.aif differ diff --git a/sound/direct_sound_samples/wave_80.aif b/sound/direct_sound_samples/wave_80.aif new file mode 100644 index 000000000..e4c024cf5 Binary files /dev/null and b/sound/direct_sound_samples/wave_80.aif differ diff --git a/sound/direct_sound_samples/wave_81.aif b/sound/direct_sound_samples/wave_81.aif new file mode 100644 index 000000000..3124e31a0 Binary files /dev/null and b/sound/direct_sound_samples/wave_81.aif differ diff --git a/sound/direct_sound_samples/wave_82.aif b/sound/direct_sound_samples/wave_82.aif new file mode 100644 index 000000000..6bdc1beab Binary files /dev/null and b/sound/direct_sound_samples/wave_82.aif differ diff --git a/sound/direct_sound_samples/wave_83.aif b/sound/direct_sound_samples/wave_83.aif new file mode 100644 index 000000000..b0f0e82a1 Binary files /dev/null and b/sound/direct_sound_samples/wave_83.aif differ diff --git a/sound/direct_sound_samples/wave_84.aif b/sound/direct_sound_samples/wave_84.aif new file mode 100644 index 000000000..aa97fe3ef Binary files /dev/null and b/sound/direct_sound_samples/wave_84.aif differ diff --git a/sound/direct_sound_samples/wave_85.aif b/sound/direct_sound_samples/wave_85.aif new file mode 100644 index 000000000..357e348a7 Binary files /dev/null and b/sound/direct_sound_samples/wave_85.aif differ diff --git a/sound/direct_sound_samples/wave_86.aif b/sound/direct_sound_samples/wave_86.aif new file mode 100644 index 000000000..90359b459 Binary files /dev/null and b/sound/direct_sound_samples/wave_86.aif differ diff --git a/sound/direct_sound_samples/wave_87.aif b/sound/direct_sound_samples/wave_87.aif new file mode 100644 index 000000000..86ea0fa76 Binary files /dev/null and b/sound/direct_sound_samples/wave_87.aif differ diff --git a/sound/direct_sound_samples/wave_88.aif b/sound/direct_sound_samples/wave_88.aif new file mode 100644 index 000000000..2ae1b3021 Binary files /dev/null and b/sound/direct_sound_samples/wave_88.aif differ diff --git a/sound/direct_sound_samples/wave_9.aif b/sound/direct_sound_samples/wave_9.aif new file mode 100644 index 000000000..83f997481 Binary files /dev/null and b/sound/direct_sound_samples/wave_9.aif differ diff --git a/sound/keysplit_tables.inc b/sound/keysplit_tables.inc new file mode 100644 index 000000000..81301ef62 --- /dev/null +++ b/sound/keysplit_tables.inc @@ -0,0 +1,393 @@ +@ Due to the way mks4agb (Nintendo's tool) works, key split table labels can +@ appear before the actual start of the key split table data. If you look at +@ the first keysplit table (KeySplitTable1), you'll notice it's offset backwards +@ by 36 bytes. This is because the key split tables don't map instruments +@ for the entire note range (0-127)--they only map subsets, and the upper +@ and lower ranges aren't necessarily 0 or 127. +@ +@ For example if a key split table maps an note range of 10-20, then the key +@ split table label will be offset 10 bytes before the actual key split data +@ begins. Therefore, the notes naturally map to the key split table without +@ any extra offset calculation. + +.set KeySplitTable1, . - 36 + .byte 0 @ 36 + .byte 0 @ 37 + .byte 0 @ 38 + .byte 0 @ 39 + .byte 0 @ 40 + .byte 0 @ 41 + .byte 0 @ 42 + .byte 0 @ 43 + .byte 0 @ 44 + .byte 0 @ 45 + .byte 0 @ 46 + .byte 0 @ 47 + .byte 0 @ 48 + .byte 0 @ 49 + .byte 0 @ 50 + .byte 0 @ 51 + .byte 0 @ 52 + .byte 0 @ 53 + .byte 0 @ 54 + .byte 1 @ 55 + .byte 1 @ 56 + .byte 1 @ 57 + .byte 1 @ 58 + .byte 1 @ 59 + .byte 1 @ 60 + .byte 1 @ 61 + .byte 1 @ 62 + .byte 1 @ 63 + .byte 1 @ 64 + .byte 1 @ 65 + .byte 1 @ 66 + .byte 1 @ 67 + .byte 1 @ 68 + .byte 1 @ 69 + .byte 2 @ 70 + .byte 2 @ 71 + .byte 2 @ 72 + .byte 2 @ 73 + .byte 2 @ 74 + .byte 2 @ 75 + .byte 2 @ 76 + .byte 2 @ 77 + .byte 2 @ 78 + .byte 2 @ 79 + .byte 2 @ 80 + .byte 2 @ 81 + .byte 2 @ 82 + .byte 2 @ 83 + .byte 2 @ 84 + .byte 2 @ 85 + .byte 2 @ 86 + .byte 2 @ 87 + .byte 2 @ 88 + .byte 2 @ 89 + .byte 2 @ 90 + .byte 3 @ 91 + .byte 3 @ 92 + .byte 3 @ 93 + .byte 3 @ 94 + .byte 3 @ 95 + .byte 3 @ 96 + .byte 3 @ 97 + .byte 3 @ 98 + .byte 3 @ 99 + .byte 3 @ 100 + .byte 3 @ 101 + .byte 3 @ 102 + .byte 3 @ 103 + .byte 3 @ 104 + .byte 3 @ 105 + .byte 3 @ 106 + .byte 3 @ 107 + +.set KeySplitTable2, . - 36 + .byte 0 @ 36 + .byte 0 @ 37 + .byte 0 @ 38 + .byte 0 @ 39 + .byte 0 @ 40 + .byte 0 @ 41 + .byte 0 @ 42 + .byte 0 @ 43 + .byte 0 @ 44 + .byte 0 @ 45 + .byte 0 @ 46 + .byte 0 @ 47 + .byte 0 @ 48 + .byte 0 @ 49 + .byte 0 @ 50 + .byte 0 @ 51 + .byte 0 @ 52 + .byte 0 @ 53 + .byte 0 @ 54 + .byte 0 @ 55 + .byte 0 @ 56 + .byte 0 @ 57 + .byte 0 @ 58 + .byte 0 @ 59 + .byte 0 @ 60 + .byte 0 @ 61 + .byte 0 @ 62 + .byte 0 @ 63 + .byte 0 @ 64 + .byte 0 @ 65 + .byte 0 @ 66 + .byte 0 @ 67 + .byte 0 @ 68 + .byte 1 @ 69 + .byte 1 @ 70 + .byte 1 @ 71 + .byte 1 @ 72 + .byte 1 @ 73 + .byte 1 @ 74 + .byte 1 @ 75 + .byte 1 @ 76 + .byte 1 @ 77 + .byte 1 @ 78 + .byte 1 @ 79 + .byte 1 @ 80 + .byte 2 @ 81 + .byte 2 @ 82 + .byte 2 @ 83 + .byte 2 @ 84 + .byte 2 @ 85 + .byte 2 @ 86 + .byte 2 @ 87 + .byte 2 @ 88 + .byte 2 @ 89 + .byte 2 @ 90 + .byte 2 @ 91 + .byte 2 @ 92 + .byte 2 @ 93 + .byte 2 @ 94 + .byte 2 @ 95 + .byte 2 @ 96 + .byte 2 @ 97 + .byte 2 @ 98 + .byte 2 @ 99 + .byte 2 @ 100 + .byte 2 @ 101 + .byte 2 @ 102 + .byte 2 @ 103 + .byte 2 @ 104 + .byte 2 @ 105 + .byte 2 @ 106 + .byte 2 @ 107 + +.set KeySplitTable3, . - 36 + .byte 0 @ 36 + .byte 0 @ 37 + .byte 0 @ 38 + .byte 0 @ 39 + .byte 0 @ 40 + .byte 0 @ 41 + .byte 0 @ 42 + .byte 0 @ 43 + .byte 0 @ 44 + .byte 0 @ 45 + .byte 0 @ 46 + .byte 0 @ 47 + .byte 0 @ 48 + .byte 0 @ 49 + .byte 0 @ 50 + .byte 0 @ 51 + .byte 0 @ 52 + .byte 0 @ 53 + .byte 0 @ 54 + .byte 0 @ 55 + .byte 0 @ 56 + .byte 0 @ 57 + .byte 0 @ 58 + .byte 0 @ 59 + .byte 0 @ 60 + .byte 0 @ 61 + .byte 0 @ 62 + .byte 0 @ 63 + .byte 0 @ 64 + .byte 0 @ 65 + .byte 1 @ 66 + .byte 1 @ 67 + .byte 1 @ 68 + .byte 1 @ 69 + .byte 1 @ 70 + .byte 1 @ 71 + .byte 1 @ 72 + .byte 1 @ 73 + .byte 1 @ 74 + .byte 1 @ 75 + .byte 1 @ 76 + .byte 1 @ 77 + .byte 1 @ 78 + .byte 1 @ 79 + .byte 1 @ 80 + .byte 1 @ 81 + .byte 1 @ 82 + .byte 1 @ 83 + .byte 2 @ 84 + .byte 2 @ 85 + .byte 2 @ 86 + .byte 2 @ 87 + .byte 2 @ 88 + .byte 2 @ 89 + .byte 2 @ 90 + .byte 2 @ 91 + .byte 2 @ 92 + .byte 2 @ 93 + .byte 2 @ 94 + .byte 2 @ 95 + .byte 2 @ 96 + .byte 2 @ 97 + .byte 2 @ 98 + .byte 2 @ 99 + .byte 2 @ 100 + .byte 2 @ 101 + .byte 2 @ 102 + .byte 2 @ 103 + .byte 2 @ 104 + .byte 2 @ 105 + .byte 2 @ 106 + .byte 2 @ 107 + +.set KeySplitTable4, . - 24 + .byte 0 @ 24 + .byte 0 @ 25 + .byte 0 @ 26 + .byte 0 @ 27 + .byte 0 @ 28 + .byte 0 @ 29 + .byte 0 @ 30 + .byte 0 @ 31 + .byte 0 @ 32 + .byte 0 @ 33 + .byte 0 @ 34 + .byte 0 @ 35 + .byte 0 @ 36 + .byte 0 @ 37 + .byte 0 @ 38 + .byte 0 @ 39 + .byte 0 @ 40 + .byte 0 @ 41 + .byte 1 @ 42 + .byte 1 @ 43 + .byte 1 @ 44 + .byte 1 @ 45 + .byte 1 @ 46 + .byte 1 @ 47 + .byte 1 @ 48 + .byte 1 @ 49 + .byte 1 @ 50 + .byte 1 @ 51 + .byte 1 @ 52 + .byte 1 @ 53 + .byte 1 @ 54 + .byte 1 @ 55 + .byte 1 @ 56 + .byte 1 @ 57 + .byte 1 @ 58 + .byte 1 @ 59 + .byte 1 @ 60 + .byte 1 @ 61 + .byte 1 @ 62 + .byte 1 @ 63 + .byte 1 @ 64 + .byte 1 @ 65 + .byte 1 @ 66 + .byte 1 @ 67 + .byte 1 @ 68 + .byte 1 @ 69 + .byte 1 @ 70 + .byte 1 @ 71 + .byte 1 @ 72 + .byte 1 @ 73 + .byte 1 @ 74 + .byte 1 @ 75 + .byte 1 @ 76 + .byte 1 @ 77 + .byte 1 @ 78 + .byte 1 @ 79 + .byte 1 @ 80 + .byte 1 @ 81 + .byte 1 @ 82 + .byte 1 @ 83 + .byte 1 @ 84 + .byte 1 @ 85 + .byte 1 @ 86 + .byte 1 @ 87 + .byte 1 @ 88 + .byte 1 @ 89 + .byte 1 @ 90 + .byte 1 @ 91 + .byte 1 @ 92 + .byte 1 @ 93 + .byte 1 @ 94 + .byte 1 @ 95 + .byte 1 @ 96 + .byte 1 @ 97 + .byte 1 @ 98 + .byte 1 @ 99 + .byte 1 @ 100 + .byte 1 @ 101 + .byte 1 @ 102 + .byte 1 @ 103 + .byte 1 @ 104 + .byte 1 @ 105 + .byte 1 @ 106 + .byte 1 @ 107 + +.set KeySplitTable5, . - 36 + .byte 0 @ 36 + .byte 0 @ 37 + .byte 0 @ 38 + .byte 0 @ 39 + .byte 0 @ 40 + .byte 0 @ 41 + .byte 0 @ 42 + .byte 0 @ 43 + .byte 0 @ 44 + .byte 0 @ 45 + .byte 0 @ 46 + .byte 0 @ 47 + .byte 0 @ 48 + .byte 0 @ 49 + .byte 0 @ 50 + .byte 0 @ 51 + .byte 0 @ 52 + .byte 0 @ 53 + .byte 0 @ 54 + .byte 0 @ 55 + .byte 0 @ 56 + .byte 0 @ 57 + .byte 0 @ 58 + .byte 0 @ 59 + .byte 0 @ 60 + .byte 0 @ 61 + .byte 0 @ 62 + .byte 0 @ 63 + .byte 0 @ 64 + .byte 0 @ 65 + .byte 1 @ 66 + .byte 1 @ 67 + .byte 1 @ 68 + .byte 1 @ 69 + .byte 1 @ 70 + .byte 1 @ 71 + .byte 1 @ 72 + .byte 1 @ 73 + .byte 1 @ 74 + .byte 1 @ 75 + .byte 1 @ 76 + .byte 1 @ 77 + .byte 1 @ 78 + .byte 1 @ 79 + .byte 1 @ 80 + .byte 1 @ 81 + .byte 1 @ 82 + .byte 1 @ 83 + .byte 1 @ 84 + .byte 1 @ 85 + .byte 1 @ 86 + .byte 1 @ 87 + .byte 1 @ 88 + .byte 1 @ 89 + .byte 1 @ 90 + .byte 1 @ 91 + .byte 1 @ 92 + .byte 1 @ 93 + .byte 1 @ 94 + .byte 1 @ 95 + .byte 1 @ 96 + .byte 1 @ 97 + .byte 1 @ 98 + .byte 1 @ 99 + .byte 1 @ 100 + .byte 1 @ 101 + .byte 1 @ 102 + .byte 1 @ 103 + .byte 1 @ 104 + .byte 1 @ 105 + .byte 1 @ 106 + .byte 1 @ 107 diff --git a/sound/programmable_wave_data.inc b/sound/programmable_wave_data.inc new file mode 100644 index 000000000..bdb5cf4d2 --- /dev/null +++ b/sound/programmable_wave_data.inc @@ -0,0 +1,33 @@ + +gProgrammableWaveData_84A31EC:: @ 84A31EC + .incbin "sound/programmable_wave_samples/84A31EC.pcm" + +gProgrammableWaveData_84A31FC:: @ 84A31FC + .incbin "sound/programmable_wave_samples/84A31FC.pcm" + +gProgrammableWaveData_84A320C:: @ 84A320C + .incbin "sound/programmable_wave_samples/84A320C.pcm" + +gProgrammableWaveData_84A321C:: @ 84A321C + .incbin "sound/programmable_wave_samples/84A321C.pcm" + +gProgrammableWaveData_84A322C:: @ 84A322C + .incbin "sound/programmable_wave_samples/84A322C.pcm" + +gProgrammableWaveData_84A323C:: @ 84A323C + .incbin "sound/programmable_wave_samples/84A323C.pcm" + +gProgrammableWaveData_84A324C:: @ 84A324C + .incbin "sound/programmable_wave_samples/84A324C.pcm" + +gProgrammableWaveData_84A325C:: @ 84A325C + .incbin "sound/programmable_wave_samples/84A325C.pcm" + +gProgrammableWaveData_84A326C:: @ 84A326C + .incbin "sound/programmable_wave_samples/84A326C.pcm" + +gProgrammableWaveData_84A327C:: @ 84A327C + .incbin "sound/programmable_wave_samples/84A327C.pcm" + +gProgrammableWaveData_84A328C:: @ 84A328C + .incbin "sound/programmable_wave_samples/84A328C.pcm" diff --git a/sound/programmable_wave_samples/84A31EC.pcm b/sound/programmable_wave_samples/84A31EC.pcm new file mode 100644 index 000000000..a0ca8fed9 --- /dev/null +++ b/sound/programmable_wave_samples/84A31EC.pcm @@ -0,0 +1 @@ +%ŠÞþÉc%ŠÞþÉc \ No newline at end of file diff --git a/sound/programmable_wave_samples/84A31FC.pcm b/sound/programmable_wave_samples/84A31FC.pcm new file mode 100644 index 000000000..25be9c018 --- /dev/null +++ b/sound/programmable_wave_samples/84A31FC.pcm @@ -0,0 +1 @@ +FŠÎý¹u1FŠÎý¹u1 \ No newline at end of file diff --git a/sound/programmable_wave_samples/84A320C.pcm b/sound/programmable_wave_samples/84A320C.pcm new file mode 100644 index 000000000..5d9585aca --- /dev/null +++ b/sound/programmable_wave_samples/84A320C.pcm @@ -0,0 +1 @@ +þܺ˜vT2þܺ˜vT2 \ No newline at end of file diff --git a/sound/programmable_wave_samples/84A321C.pcm b/sound/programmable_wave_samples/84A321C.pcm new file mode 100644 index 000000000..25ff1b371 --- /dev/null +++ b/sound/programmable_wave_samples/84A321C.pcm @@ -0,0 +1 @@ +ý¹ˆˆwwe1ý¹ˆˆwwe1 \ No newline at end of file diff --git a/sound/programmable_wave_samples/84A322C.pcm b/sound/programmable_wave_samples/84A322C.pcm new file mode 100644 index 000000000..d0b69f04a --- /dev/null +++ b/sound/programmable_wave_samples/84A322C.pcm @@ -0,0 +1 @@ +ŒÊ†ÿíC!ŒÊ†ÿíC! \ No newline at end of file diff --git a/sound/programmable_wave_samples/84A323C.pcm b/sound/programmable_wave_samples/84A323C.pcm new file mode 100644 index 000000000..d0fa1932d --- /dev/null +++ b/sound/programmable_wave_samples/84A323C.pcm @@ -0,0 +1 @@ +ÿÿþ†CFŽÿÿþ†CFŽ \ No newline at end of file diff --git a/sound/programmable_wave_samples/84A324C.pcm b/sound/programmable_wave_samples/84A324C.pcm new file mode 100644 index 000000000..81afd79c5 Binary files /dev/null and b/sound/programmable_wave_samples/84A324C.pcm differ diff --git a/sound/programmable_wave_samples/84A325C.pcm b/sound/programmable_wave_samples/84A325C.pcm new file mode 100644 index 000000000..ce4c8ae12 Binary files /dev/null and b/sound/programmable_wave_samples/84A325C.pcm differ diff --git a/sound/programmable_wave_samples/84A326C.pcm b/sound/programmable_wave_samples/84A326C.pcm new file mode 100644 index 000000000..f5e51d5a9 --- /dev/null +++ b/sound/programmable_wave_samples/84A326C.pcm @@ -0,0 +1 @@ +g‰«È˜–VTg‰«È˜–VT \ No newline at end of file diff --git a/sound/programmable_wave_samples/84A327C.pcm b/sound/programmable_wave_samples/84A327C.pcm new file mode 100644 index 000000000..0d7192617 Binary files /dev/null and b/sound/programmable_wave_samples/84A327C.pcm differ diff --git a/sound/programmable_wave_samples/84A328C.pcm b/sound/programmable_wave_samples/84A328C.pcm new file mode 100644 index 000000000..2aae22d26 --- /dev/null +++ b/sound/programmable_wave_samples/84A328C.pcm @@ -0,0 +1 @@ +&8J\ZH6&8J\ZH6 \ No newline at end of file diff --git a/sound/songs/midi/mus_battle20.mid b/sound/songs/midi/mus_battle20.mid new file mode 100644 index 000000000..531b5fba1 Binary files /dev/null and b/sound/songs/midi/mus_battle20.mid differ diff --git a/sound/songs/midi/mus_battle32.mid b/sound/songs/midi/mus_battle32.mid new file mode 100644 index 000000000..0b7c49bd7 Binary files /dev/null and b/sound/songs/midi/mus_battle32.mid differ diff --git a/sound/songs/midi/mus_fanfa1.mid b/sound/songs/midi/mus_fanfa1.mid new file mode 100644 index 000000000..edf9c6e28 Binary files /dev/null and b/sound/songs/midi/mus_fanfa1.mid differ diff --git a/sound/songs/midi/mus_fanfa4.mid b/sound/songs/midi/mus_fanfa4.mid new file mode 100644 index 000000000..58cab9350 Binary files /dev/null and b/sound/songs/midi/mus_fanfa4.mid differ diff --git a/sound/songs/midi/mus_fanfa5.mid b/sound/songs/midi/mus_fanfa5.mid new file mode 100644 index 000000000..519ebf29a Binary files /dev/null and b/sound/songs/midi/mus_fanfa5.mid differ diff --git a/sound/songs/midi/mus_me_b_big.mid b/sound/songs/midi/mus_me_b_big.mid new file mode 100644 index 000000000..150a669b4 Binary files /dev/null and b/sound/songs/midi/mus_me_b_big.mid differ diff --git a/sound/songs/midi/mus_me_b_small.mid b/sound/songs/midi/mus_me_b_small.mid new file mode 100644 index 000000000..bf7aa33be Binary files /dev/null and b/sound/songs/midi/mus_me_b_small.mid differ diff --git a/sound/songs/midi/mus_me_bachi.mid b/sound/songs/midi/mus_me_bachi.mid new file mode 100644 index 000000000..05fe1516a Binary files /dev/null and b/sound/songs/midi/mus_me_bachi.mid differ diff --git a/sound/songs/midi/mus_me_kinomi.mid b/sound/songs/midi/mus_me_kinomi.mid new file mode 100644 index 000000000..e7eb4afd1 Binary files /dev/null and b/sound/songs/midi/mus_me_kinomi.mid differ diff --git a/sound/songs/midi/mus_me_shinka.mid b/sound/songs/midi/mus_me_shinka.mid new file mode 100644 index 000000000..231f25533 Binary files /dev/null and b/sound/songs/midi/mus_me_shinka.mid differ diff --git a/sound/songs/midi/mus_me_waza.mid b/sound/songs/midi/mus_me_waza.mid new file mode 100644 index 000000000..40f9c2ed8 Binary files /dev/null and b/sound/songs/midi/mus_me_waza.mid differ diff --git a/sound/songs/midi/mus_p_school.mid b/sound/songs/midi/mus_p_school.mid new file mode 100644 index 000000000..4e6fd3340 Binary files /dev/null and b/sound/songs/midi/mus_p_school.mid differ diff --git a/sound/songs/midi/mus_shinka.mid b/sound/songs/midi/mus_shinka.mid new file mode 100644 index 000000000..375e6d5db Binary files /dev/null and b/sound/songs/midi/mus_shinka.mid differ diff --git a/sound/songs/midi/mus_w_door.mid b/sound/songs/midi/mus_w_door.mid new file mode 100644 index 000000000..82ffd2ebe Binary files /dev/null and b/sound/songs/midi/mus_w_door.mid differ diff --git a/sound/songs/mus_battle20.s b/sound/songs/mus_battle20.s deleted file mode 100644 index 18cc3a3de..000000000 --- a/sound/songs/mus_battle20.s +++ /dev/null @@ -1,3569 +0,0 @@ - .include "MPlayDef.s" - .section .rodata - .global mus_battle20 - .align 2 - .equ mus_battle20_grp, voicegroup119 - .equ mus_battle20_pri, 1 - .equ mus_battle20_rev, reverb_set+50 - -mus_battle20_1: @ 86BE9EC - .byte KEYSH, 0x00 - .byte TEMPO, 0x63 - .byte VOICE, 0x01 - .byte PAN, 0x4F - .byte VOL, 0x50 - .byte N06 - .byte Cn5 - .byte v076 - .byte W06 - .byte Bn4 - .byte W06 - .byte As4 - .byte W06 - .byte An4 - .byte W06 - .byte As4 - .byte W06 - .byte An4 - .byte W06 - .byte Gs4 - .byte W06 - .byte Gn4 - .byte W06 - .byte Gs4 - .byte W06 - .byte Gn4 - .byte W06 - .byte Fs4 - .byte W06 - .byte Fn4 - .byte W06 - .byte Fs4 - .byte W06 - .byte Fn4 - .byte W06 - .byte En4 - .byte W06 - .byte Ds4 - .byte W06 - .byte En4 - .byte W06 - .byte Ds4 - .byte W06 - .byte Dn4 - .byte W06 - .byte Cs4 - .byte W06 - .byte Dn4 - .byte W06 - .byte Cs4 - .byte W06 - .byte Cn4 - .byte W06 - .byte Bn3 - .byte W06 - .byte Cn4 - .byte W06 - .byte Bn3 - .byte W06 - .byte As3 - .byte W06 - .byte An3 - .byte W06 - .byte As3 - .byte W06 - .byte An3 - .byte W06 - .byte As3 - .byte W06 - .byte Bn3 - .byte W06 - .byte VOICE, 0x11 - .byte N12 - .byte Gn3 - .byte v080 - .byte W36 - .byte As3 - .byte W36 - .byte Gs3 - .byte W24 - .byte Gn3 - .byte W12 - .byte Gs3 - .byte W24 - .byte As3 - .byte W36 - .byte N24 - .byte Cs3 - .byte W24 - .byte N12 - .byte Gn3 - .byte W36 - .byte As3 - .byte W36 - .byte Gs3 - .byte W24 - .byte Gn3 - .byte W12 - .byte Gs3 - .byte W24 - .byte As3 - .byte W36 - .byte N24 - .byte Cs4 - .byte W24 - .byte VOICE, 0x30 - .byte PAN, 0x46 - .byte N12 - .byte Cn4 - .byte W36 - .byte Ds4 - .byte W36 - .byte Cs4 - .byte W24 - .byte Cn4 - .byte W12 - .byte Cs4 - .byte W24 - .byte Ds4 - .byte W36 - .byte N24 - .byte Cs4 - .byte W24 - .byte N12 - .byte Cn4 - .byte v088 - .byte W36 - .byte Ds4 - .byte W36 - .byte Cs4 - .byte W24 - .byte Cn4 - .byte W12 - .byte Cs4 - .byte W24 - .byte Ds4 - .byte W36 - .byte N24 - .byte Gn4 - .byte W24 -mus_battle20_1_86BEA80: @ 86BEA80 - .byte VOICE, 0x30 - .byte VOL, 0x50 - .byte N36 - .byte Cn3 - .byte v096 - .byte W36 - .byte Gn3 - .byte W36 - .byte N24 - .byte Fn3 - .byte W24 - .byte N12 - .byte En3 - .byte W12 - .byte Fn3 - .byte W12 - .byte En3 - .byte W12 - .byte Dn3 - .byte W12 - .byte Cn3 - .byte W12 - .byte En3 - .byte W12 - .byte As3 - .byte W12 - .byte Cn4 - .byte W12 - .byte N96 - .byte Cs4 - .byte W96 - .byte N48 - .byte W48 - .byte As3 - .byte W48 - .byte N36 - .byte Cn3 - .byte W36 - .byte Gn3 - .byte W36 - .byte N24 - .byte Fn3 - .byte W24 - .byte N12 - .byte En3 - .byte W12 - .byte Fn3 - .byte W12 - .byte En3 - .byte W12 - .byte Dn3 - .byte W12 - .byte Cn3 - .byte W12 - .byte Dn3 - .byte W12 - .byte As3 - .byte W12 - .byte Cn4 - .byte W12 - .byte N72 - .byte Cs4 - .byte W72 - .byte N12 - .byte W12 - .byte Cn4 - .byte W12 - .byte N48 - .byte Cs4 - .byte W48 - .byte Ds4 - .byte W48 - .byte N36 - .byte Cn4 - .byte W36 - .byte As3 - .byte W36 - .byte N24 - .byte Dn4 - .byte W24 - .byte N92 - .byte Cn4 - .byte W48 - .byte VOL, 0x4B - .byte W06 - .byte Bn3 - .byte W06 - .byte Fs3 - .byte W06 - .byte Cn3 - .byte W06 - .byte Fn2 - .byte W06 - .byte An1 - .byte W06 - .byte Bn0 - .byte W06 - .byte Cn0 - .byte W06 - .byte Gs4 - .byte N48 - .byte En2 - .byte W48 - .byte N36 - .byte Fn2 - .byte W36 - .byte N12 - .byte An2 - .byte W12 - .byte N36 - .byte As2 - .byte W36 - .byte Dn3 - .byte W36 - .byte N24 - .byte Bn2 - .byte W24 - .byte N36 - .byte Cn3 - .byte W36 - .byte Gn2 - .byte W36 - .byte N24 - .byte Fn2 - .byte W24 - .byte N96 - .byte En2 - .byte W96 - .byte N48 - .byte W48 - .byte Fn2 - .byte W48 - .byte N36 - .byte As2 - .byte W36 - .byte N24 - .byte Fn2 - .byte W24 - .byte N12 - .byte Dn3 - .byte W12 - .byte As2 - .byte W12 - .byte An2 - .byte W12 - .byte N72 - .byte Cn3 - .byte W72 - .byte N24 - .byte W24 - .byte N96 - .byte En3 - .byte W96 - .byte N84 - .byte Cn3 - .byte W84 - .byte N12 - .byte En3 - .byte W12 - .byte N96 - .byte Fn3 - .byte W96 - .byte N72 - .byte W72 - .byte N12 - .byte En3 - .byte W12 - .byte Dn3 - .byte W12 - .byte N84 - .byte En3 - .byte W84 - .byte N12 - .byte Fn3 - .byte W12 - .byte N72 - .byte Gn3 - .byte W72 - .byte N12 - .byte As3 - .byte W12 - .byte An3 - .byte W12 - .byte N96 - .byte As3 - .byte W96 - .byte N72 - .byte Fn3 - .byte W72 - .byte N12 - .byte En3 - .byte W12 - .byte Fn3 - .byte W12 - .byte N96 - .byte Gn3 - .byte W96 - .byte VOICE, 0x30 - .byte N84 - .byte Cn4 - .byte W84 - .byte N12 - .byte En4 - .byte W12 - .byte N96 - .byte Fn4 - .byte W96 - .byte N72 - .byte W72 - .byte N12 - .byte En4 - .byte W12 - .byte Dn4 - .byte W12 - .byte N96 - .byte En4 - .byte W96 - .byte N48 - .byte Cn5 - .byte W48 - .byte Cn3 - .byte W48 - .byte Gn4 - .byte W48 - .byte Cs3 - .byte W48 - .byte Cn4 - .byte W48 - .byte Cn2 - .byte W48 - .byte Gn3 - .byte W48 - .byte Cs2 - .byte W48 - .byte VOICE, 0x2F - .byte PAN, 0x20 - .byte N12 - .byte Cn2 - .byte v092 - .byte W12 - .byte En2 - .byte W24 - .byte Cn2 - .byte W12 - .byte En2 - .byte W12 - .byte N12 - .byte W12 - .byte Cn2 - .byte W12 - .byte N12 - .byte W12 - .byte En2 - .byte W12 - .byte Cn2 - .byte W12 - .byte N12 - .byte W24 - .byte N12 - .byte W24 - .byte N12 - .byte W12 - .byte N06 - .byte En2 - .byte W06 - .byte Cn2 - .byte W06 - .byte N12 - .byte W48 - .byte N12 - .byte W24 - .byte N12 - .byte W24 - .byte N12 - .byte W24 - .byte En2 - .byte W12 - .byte N12 - .byte W12 - .byte N12 - .byte W24 - .byte N12 - .byte W12 - .byte Cn2 - .byte W12 - .byte N12 - .byte W36 - .byte N12 - .byte W12 - .byte N12 - .byte W12 - .byte En2 - .byte W12 - .byte Cn2 - .byte W12 - .byte En2 - .byte W12 - .byte Cn2 - .byte W24 - .byte N12 - .byte W24 - .byte N12 - .byte W12 - .byte En2 - .byte W12 - .byte N12 - .byte W12 - .byte N12 - .byte W12 - .byte Cn2 - .byte W24 - .byte N12 - .byte W24 - .byte N12 - .byte W12 - .byte En2 - .byte W12 - .byte N12 - .byte W12 - .byte Cn2 - .byte W12 - .byte N12 - .byte W24 - .byte N12 - .byte W24 - .byte N12 - .byte W12 - .byte En2 - .byte W24 - .byte Cn2 - .byte W12 - .byte N12 - .byte W24 - .byte N12 - .byte W24 - .byte N12 - .byte W24 - .byte N12 - .byte W24 - .byte N12 - .byte W12 - .byte N12 - .byte W12 - .byte N12 - .byte W24 - .byte N12 - .byte W12 - .byte N12 - .byte W24 - .byte VOICE, 0x30 - .byte PAN, 0x46 - .byte N12 - .byte As3 - .byte v096 - .byte W12 - .byte TIE - .byte Cn4 - .byte W96 - .byte W96 - .byte EOT - .byte TIE - .byte Cn3 - .byte v076 - .byte W96 - .byte W48 - .byte VOL, 0x4B - .byte W06 - .byte Bn3 - .byte W06 - .byte Fs3 - .byte W06 - .byte Cn3 - .byte W06 - .byte Fn2 - .byte W06 - .byte An1 - .byte W06 - .byte Bn0 - .byte W06 - .byte Cn0 - .byte W03 - .byte EOT - .byte W03 - .byte VOICE, 0x3C - .byte VOL, 0x50 - .byte PAN, 0x50 - .byte N96 - .byte Fn2 - .byte v096 - .byte W96 - .byte As2 - .byte W96 - .byte Gn2 - .byte W96 -mus_battle20_1_86BEC16: @ 86BEC16 - .byte N92 - .byte En2 - .byte v096 - .byte W48 - .byte VOL, 0x4B - .byte W06 - .byte Bn3 - .byte W06 - .byte Fs3 - .byte W06 - .byte Cn3 - .byte W06 - .byte Fn2 - .byte W06 - .byte An1 - .byte W06 - .byte Bn0 - .byte W06 - .byte Cn0 - .byte W06 - .byte PEND - .byte Gs4 - .byte N96 - .byte Fn2 - .byte W96 - .byte As2 - .byte W96 - .byte Gn2 - .byte W96 - .byte PATT - .word mus_battle20_1_86BEC16 - .byte VOICE, 0x11 - .byte VOL, 0x50 - .byte PAN, 0x4F - .byte N12 - .byte Gn3 - .byte v088 - .byte W36 - .byte Gs3 - .byte W36 - .byte Gn2 - .byte W24 - .byte En3 - .byte W36 - .byte Fn3 - .byte W36 - .byte N24 - .byte As2 - .byte W24 - .byte N12 - .byte Gn3 - .byte W36 - .byte Gs3 - .byte W36 - .byte Gn2 - .byte W24 - .byte En3 - .byte W36 - .byte Fn3 - .byte W36 - .byte N24 - .byte Gs3 - .byte W24 - .byte VOICE, 0x30 - .byte PAN, 0x46 - .byte N48 - .byte Cn4 - .byte v096 - .byte W48 - .byte Cn3 - .byte W48 - .byte Gn3 - .byte W48 - .byte Cs3 - .byte W48 - .byte Cn4 - .byte W48 - .byte Cn3 - .byte W48 - .byte Cs4 - .byte W48 - .byte Cs3 - .byte W48 - .byte GOTO - .word mus_battle20_1_86BEA80 - .byte FINE - -mus_battle20_2: @ 86BEC78 - .byte KEYSH, 0x00 - .byte VOICE, 0x30 - .byte LFOS, 0x14 - .byte PAN, 0x32 - .byte VOL, 0x50 - .byte N06 - .byte Gn5 - .byte v064 - .byte W06 - .byte Fs5 - .byte W06 - .byte N12 - .byte Gn5 - .byte W12 - .byte N06 - .byte W06 - .byte Fs5 - .byte W06 - .byte N12 - .byte Gn5 - .byte W12 - .byte N06 - .byte W06 - .byte Fs5 - .byte W06 - .byte N12 - .byte Gn5 - .byte W12 - .byte N06 - .byte W06 - .byte Fs5 - .byte W06 - .byte N12 - .byte Gn5 - .byte W12 - .byte N06 - .byte W06 - .byte Fs5 - .byte W06 - .byte N12 - .byte Gn5 - .byte W12 - .byte N06 - .byte W06 - .byte Fs5 - .byte W06 - .byte N12 - .byte Gn5 - .byte W12 - .byte N06 - .byte W06 - .byte Fs5 - .byte W06 - .byte N12 - .byte Gn5 - .byte W12 - .byte N06 - .byte W06 - .byte Fs5 - .byte W06 - .byte N12 - .byte Gn5 - .byte W12 - .byte VOICE, 0x11 - .byte N12 - .byte Cn4 - .byte v088 - .byte W36 - .byte Ds4 - .byte W36 - .byte Cs4 - .byte W24 - .byte Cn4 - .byte W12 - .byte Cs4 - .byte W24 - .byte Ds4 - .byte W36 - .byte N24 - .byte Gs3 - .byte W24 - .byte N12 - .byte Cn4 - .byte W36 - .byte Ds4 - .byte W36 - .byte Cs4 - .byte W24 - .byte Cn4 - .byte W12 - .byte Cs4 - .byte W24 - .byte Ds4 - .byte W36 - .byte N24 - .byte Gs4 - .byte W24 - .byte PAN, 0x40 - .byte N12 - .byte Cn5 - .byte W36 - .byte Ds5 - .byte W36 - .byte Cs5 - .byte W24 - .byte Cn5 - .byte W12 - .byte Cs5 - .byte W24 - .byte Ds5 - .byte W36 - .byte N24 - .byte Cs5 - .byte W24 - .byte N12 - .byte Cn5 - .byte W36 - .byte Ds5 - .byte W36 - .byte Cs5 - .byte W24 - .byte Cn5 - .byte W12 - .byte Cs5 - .byte W24 - .byte Ds5 - .byte W36 - .byte N24 - .byte Gn5 - .byte v076 - .byte W24 -mus_battle20_2_86BED02: @ 86BED02 - .byte VOICE, 0x3C - .byte VOL, 0x50 - .byte PAN, 0x40 - .byte N48 - .byte Cn4 - .byte v100 - .byte W48 - .byte As3 - .byte W48 - .byte N36 - .byte Dn4 - .byte W36 - .byte N24 - .byte Gn3 - .byte W24 - .byte N12 - .byte W12 - .byte Dn4 - .byte W12 - .byte Gn4 - .byte W12 - .byte N72 - .byte Gs4 - .byte W72 - .byte N12 - .byte W12 - .byte Gn4 - .byte W12 - .byte N48 - .byte Fn4 - .byte W48 - .byte Cs4 - .byte W48 - .byte VOICE, 0x38 - .byte N48 - .byte Cn4 - .byte v104 - .byte W24 - .byte MOD, 0x07 - .byte W24 - .byte CnM2 - .byte N42 - .byte As3 - .byte W21 - .byte MOD, 0x06 - .byte W21 - .byte CnM2 - .byte N06 - .byte Cn4 - .byte W06 - .byte N36 - .byte Dn4 - .byte W36 - .byte N24 - .byte Gn3 - .byte W12 - .byte MOD, 0x07 - .byte W12 - .byte N12 - .byte W12 - .byte MOD, 0x00 - .byte N12 - .byte Dn4 - .byte W12 - .byte Gn4 - .byte W12 - .byte N72 - .byte Gs4 - .byte W32 - .byte W01 - .byte MOD, 0x07 - .byte W36 - .byte W03 - .byte CnM2 - .byte N12 - .byte W12 - .byte Gn4 - .byte W12 - .byte N36 - .byte As4 - .byte W36 - .byte N24 - .byte Gs4 - .byte W24 - .byte N12 - .byte Gn4 - .byte W12 - .byte Fn4 - .byte W12 - .byte Gs4 - .byte W12 - .byte N60 - .byte Gn4 - .byte W30 - .byte MOD, 0x07 - .byte W30 - .byte CnM2 - .byte N12 - .byte Fn4 - .byte W12 - .byte Gn4 - .byte W12 - .byte Fn4 - .byte W12 - .byte N92 - .byte En4 - .byte W36 - .byte MOD, 0x07 - .byte W12 - .byte VOL, 0x4B - .byte W06 - .byte Bn3 - .byte W06 - .byte Fs3 - .byte W06 - .byte Cn3 - .byte W06 - .byte Fn2 - .byte W06 - .byte An1 - .byte W06 - .byte Bn0 - .byte W06 - .byte Cn0 - .byte W03 - .byte MOD, 0x00 - .byte W03 - .byte VOICE, 0x30 - .byte VOL, 0x50 - .byte PAN, 0x40 - .byte N48 - .byte As2 - .byte W48 - .byte Dn3 - .byte W48 - .byte N36 - .byte Fn3 - .byte W36 - .byte N24 - .byte As3 - .byte W24 - .byte N12 - .byte An3 - .byte W12 - .byte Gn3 - .byte W12 - .byte Fn3 - .byte W12 - .byte N72 - .byte En3 - .byte W72 - .byte N24 - .byte Cn3 - .byte W24 - .byte N96 - .byte Gn3 - .byte W96 - .byte N48 - .byte As2 - .byte W48 - .byte Dn3 - .byte W48 - .byte N36 - .byte Fn3 - .byte W36 - .byte N24 - .byte As3 - .byte W24 - .byte N12 - .byte Fn3 - .byte W12 - .byte As3 - .byte W12 - .byte Dn4 - .byte W12 - .byte N72 - .byte En4 - .byte W72 - .byte N24 - .byte Gn4 - .byte W24 - .byte N92 - .byte Cn5 - .byte W54 - .byte VOL, 0x49 - .byte W09 - .byte Fs3 - .byte W06 - .byte Bn2 - .byte W09 - .byte Dn2 - .byte W06 - .byte En1 - .byte W06 - .byte Dn0 - .byte W06 - .byte VOICE, 0x11 - .byte VOL, 0x50 - .byte PAN, 0x40 - .byte N36 - .byte Cn4 - .byte v100 - .byte W36 - .byte Gn3 - .byte W36 - .byte N12 - .byte Cn4 - .byte W12 - .byte En4 - .byte W12 - .byte N36 - .byte Fn4 - .byte W36 - .byte N24 - .byte As3 - .byte W24 - .byte N36 - .byte Dn4 - .byte W36 -mus_battle20_2_86BEDF1: @ 86BEDF1 - .byte N36 - .byte Fn4 - .byte v100 - .byte W36 - .byte N24 - .byte As4 - .byte W24 - .byte N12 - .byte An4 - .byte W12 - .byte Gn4 - .byte W12 - .byte Fn4 - .byte W12 - .byte PEND - .byte N48 - .byte En4 - .byte W48 - .byte Cn4 - .byte W48 - .byte N36 - .byte W36 - .byte Gn4 - .byte W36 - .byte N12 - .byte Fn4 - .byte W12 - .byte En4 - .byte W12 - .byte N36 - .byte Dn4 - .byte W36 - .byte N60 - .byte As4 - .byte W60 - .byte PATT - .word mus_battle20_2_86BEDF1 - .byte N36 - .byte En4 - .byte v100 - .byte W36 - .byte N60 - .byte Cn4 - .byte W60 - .byte VOICE, 0x01 - .byte N36 - .byte Cn5 - .byte v104 - .byte W36 - .byte Gn4 - .byte W36 - .byte N12 - .byte Cn5 - .byte W12 - .byte En5 - .byte W12 - .byte N36 - .byte Fn5 - .byte W36 - .byte N24 - .byte As4 - .byte W24 - .byte N36 - .byte Dn5 - .byte W36 - .byte Fn5 - .byte W36 - .byte N24 - .byte As5 - .byte W24 - .byte N12 - .byte An5 - .byte W12 - .byte Gn5 - .byte W12 - .byte Fn5 - .byte W12 - .byte N36 - .byte En5 - .byte W36 - .byte Cn5 - .byte W36 - .byte N24 - .byte Gn5 - .byte W24 - .byte N36 - .byte Cn6 - .byte W36 - .byte Cs6 - .byte W36 - .byte N24 - .byte Cn4 - .byte v108 - .byte W24 - .byte N36 - .byte Gn5 - .byte v104 - .byte W36 - .byte Gs5 - .byte W36 - .byte N24 - .byte Cs4 - .byte v108 - .byte W24 - .byte N36 - .byte Cn5 - .byte v104 - .byte W36 - .byte Cs5 - .byte W36 - .byte N24 - .byte Cn3 - .byte v108 - .byte W24 - .byte N36 - .byte Gn4 - .byte v104 - .byte W36 - .byte Gs4 - .byte W36 - .byte N24 - .byte Cs3 - .byte v108 - .byte W24 - .byte VOICE, 0x3C - .byte PAN, 0x40 - .byte N96 - .byte Cn3 - .byte v104 - .byte W96 -mus_battle20_2_86BEE79: @ 86BEE79 - .byte N84 - .byte Cn2 - .byte v104 - .byte W84 - .byte N12 - .byte Cn3 - .byte W12 - .byte PEND - .byte N96 - .byte Cs3 - .byte W96 - .byte N84 - .byte Cs2 - .byte W84 - .byte N12 - .byte Cs3 - .byte W12 - .byte N96 - .byte Cn3 - .byte W96 - .byte PATT - .word mus_battle20_2_86BEE79 - .byte N96 - .byte As2 - .byte v104 - .byte W96 - .byte Dn3 - .byte W96 - .byte Fn3 - .byte W96 - .byte N84 - .byte As3 - .byte W84 - .byte VOICE, 0x30 - .byte PAN, 0x40 - .byte N12 - .byte Dn4 - .byte W12 - .byte TIE - .byte En4 - .byte W96 - .byte W96 - .byte EOT - .byte TIE - .byte En3 - .byte v096 - .byte W96 - .byte W48 - .byte VOL, 0x4B - .byte W06 - .byte Bn3 - .byte W06 - .byte Fs3 - .byte W06 - .byte Cn3 - .byte W06 - .byte Fn2 - .byte W06 - .byte An1 - .byte W06 - .byte Bn0 - .byte W06 - .byte Cn0 - .byte W03 - .byte EOT - .byte W03 - .byte VOICE, 0x3C - .byte VOL, 0x50 - .byte PAN, 0x40 - .byte N24 - .byte Cn3 - .byte v100 - .byte W24 - .byte N36 - .byte Fn3 - .byte W36 - .byte Gn3 - .byte W36 - .byte N48 - .byte As3 - .byte W48 - .byte An3 - .byte W48 - .byte N36 - .byte Gn3 - .byte W36 - .byte N12 - .byte Fn3 - .byte W12 - .byte En3 - .byte W12 - .byte Dn3 - .byte W12 - .byte En3 - .byte W12 - .byte Fn3 - .byte W12 - .byte N92 - .byte Gn3 - .byte W48 - .byte VOL, 0x4B - .byte W06 - .byte Bn3 - .byte W06 - .byte Fs3 - .byte W06 - .byte Cn3 - .byte W06 - .byte Fn2 - .byte W06 - .byte An1 - .byte W06 - .byte Bn0 - .byte W06 - .byte Cn0 - .byte W06 - .byte VOICE, 0x38 - .byte VOL, 0x50 - .byte N24 - .byte Cn3 - .byte v104 - .byte W24 - .byte N36 - .byte Fn3 - .byte W15 - .byte MOD, 0x06 - .byte W21 - .byte CnM2 - .byte N36 - .byte Gn3 - .byte W36 - .byte N48 - .byte Cn4 - .byte W24 - .byte MOD, 0x07 - .byte W24 - .byte CnM2 - .byte N48 - .byte Dn4 - .byte W24 - .byte MOD, 0x07 - .byte W24 - .byte CnM2 - .byte N36 - .byte En4 - .byte W21 - .byte MOD, 0x07 - .byte W15 - .byte CnM2 - .byte N12 - .byte Dn4 - .byte W12 - .byte Cn4 - .byte W12 - .byte As3 - .byte W12 - .byte An3 - .byte W12 - .byte Gn3 - .byte W12 - .byte N92 - .byte Cn4 - .byte W32 - .byte W01 - .byte MOD, 0x07 - .byte W15 - .byte VOL, 0x4B - .byte W06 - .byte Bn3 - .byte W06 - .byte Fs3 - .byte W06 - .byte Cn3 - .byte W06 - .byte Fn2 - .byte W06 - .byte An1 - .byte W06 - .byte Bn0 - .byte W06 - .byte Cn0 - .byte W03 - .byte MOD, 0x00 - .byte W03 - .byte VOICE, 0x11 - .byte VOL, 0x50 - .byte PAN, 0x32 - .byte N12 - .byte Cn4 - .byte v096 - .byte W36 - .byte Cs4 - .byte W36 - .byte Cn3 - .byte W24 - .byte Gn3 - .byte W36 - .byte Gs3 - .byte W36 - .byte N24 - .byte Cs3 - .byte W24 - .byte N12 - .byte Cn4 - .byte W36 - .byte Cs4 - .byte W36 - .byte Cn3 - .byte W24 - .byte Gn3 - .byte W36 - .byte Gs3 - .byte W36 - .byte N24 - .byte Cs4 - .byte W24 - .byte VOICE, 0x11 - .byte PAN, 0x40 - .byte N12 - .byte Cn5 - .byte v092 - .byte W36 - .byte Cs5 - .byte W36 - .byte Cn4 - .byte W24 - .byte Gn4 - .byte W36 - .byte Gs4 - .byte W36 - .byte N24 - .byte Cs4 - .byte W24 - .byte N12 - .byte Cn5 - .byte W36 - .byte Cs5 - .byte W36 - .byte N24 - .byte Gn4 - .byte W24 - .byte N12 - .byte Cn5 - .byte W36 - .byte Cs5 - .byte W36 - .byte N24 - .byte As4 - .byte W24 - .byte GOTO - .word mus_battle20_2_86BED02 - .byte FINE - -mus_battle20_3: @ 86BEF90 - .byte KEYSH, 0x00 - .byte VOICE, 0x21 - .byte VOL, 0x50 - .byte PAN, 0x3A - .byte N96 - .byte Cn1 - .byte v108 - .byte W96 - .byte N60 - .byte Cs1 - .byte W60 - .byte N12 - .byte W12 - .byte Ds1 - .byte W12 - .byte Cs1 - .byte W12 -mus_battle20_3_86BEFA5: @ 86BEFA5 - .byte N12 - .byte Cn1 - .byte v108 - .byte W12 - .byte Fs1 - .byte W12 - .byte Fn1 - .byte W12 - .byte Ds1 - .byte W12 - .byte Fn1 - .byte W12 - .byte Ds1 - .byte W12 - .byte N12 - .byte W12 - .byte Fn1 - .byte W12 - .byte PEND -mus_battle20_3_86BEFB8: @ 86BEFB8 - .byte N12 - .byte Cn1 - .byte v108 - .byte W12 - .byte Fs1 - .byte W12 - .byte Fn1 - .byte W12 - .byte Ds1 - .byte W12 - .byte Fn1 - .byte W12 - .byte Ds1 - .byte W12 - .byte N12 - .byte W12 - .byte Cs1 - .byte W12 - .byte PEND - .byte PATT - .word mus_battle20_3_86BEFA5 - .byte PATT - .word mus_battle20_3_86BEFB8 - .byte PATT - .word mus_battle20_3_86BEFA5 - .byte PATT - .word mus_battle20_3_86BEFB8 - .byte PATT - .word mus_battle20_3_86BEFA5 - .byte PATT - .word mus_battle20_3_86BEFB8 -mus_battle20_3_86BEFE9: @ 86BEFE9 - .byte N12 - .byte Cn1 - .byte v108 - .byte W12 - .byte Gn1 - .byte W12 - .byte Cn1 - .byte W12 - .byte Gn1 - .byte W12 - .byte Cn1 - .byte W12 - .byte Gn1 - .byte W12 - .byte Cn1 - .byte W12 - .byte Gn1 - .byte W12 - .byte PEND - .byte Cn1 - .byte W12 - .byte Gn1 - .byte W12 - .byte Cn1 - .byte W12 - .byte Gn1 - .byte W12 - .byte Cn1 - .byte W12 - .byte Cn2 - .byte W12 - .byte Gn1 - .byte W12 - .byte En1 - .byte W12 -mus_battle20_3_86BF00C: @ 86BF00C - .byte N12 - .byte Cs1 - .byte v108 - .byte W12 - .byte Gs1 - .byte W12 - .byte Cs1 - .byte W12 - .byte Gs1 - .byte W12 - .byte Cs1 - .byte W12 - .byte Gs1 - .byte W12 - .byte Cs1 - .byte W12 - .byte Gs1 - .byte W12 - .byte PEND - .byte Cs1 - .byte W12 - .byte Gs1 - .byte W12 - .byte Cs1 - .byte W12 - .byte Gs1 - .byte W12 - .byte Cs1 - .byte W12 - .byte N12 - .byte W12 - .byte Gs1 - .byte W12 - .byte Fn1 - .byte W12 - .byte PATT - .word mus_battle20_3_86BEFE9 - .byte N12 - .byte Cn1 - .byte v108 - .byte W12 - .byte Gn1 - .byte W12 - .byte Cn2 - .byte W12 - .byte Gn1 - .byte W12 - .byte En1 - .byte W12 - .byte Gn1 - .byte W12 - .byte En1 - .byte W12 - .byte Gn1 - .byte W12 - .byte PATT - .word mus_battle20_3_86BF00C - .byte PATT - .word mus_battle20_3_86BF00C - .byte PATT - .word mus_battle20_3_86BEFE9 - .byte PATT - .word mus_battle20_3_86BEFE9 -mus_battle20_3_86BF05A: @ 86BF05A - .byte N12 - .byte As0 - .byte v108 - .byte W12 - .byte Fn1 - .byte W12 - .byte As0 - .byte W12 - .byte Fn1 - .byte W12 - .byte As0 - .byte W12 - .byte Fn1 - .byte W12 - .byte As0 - .byte W12 - .byte Fn1 - .byte W12 - .byte PEND - .byte PATT - .word mus_battle20_3_86BF05A - .byte PATT - .word mus_battle20_3_86BEFE9 - .byte PATT - .word mus_battle20_3_86BEFE9 - .byte PATT - .word mus_battle20_3_86BF05A - .byte PATT - .word mus_battle20_3_86BF05A - .byte PATT - .word mus_battle20_3_86BEFE9 - .byte PATT - .word mus_battle20_3_86BEFE9 -mus_battle20_3_86BF090: @ 86BF090 - .byte N12 - .byte Cn1 - .byte v108 - .byte W12 - .byte En1 - .byte W12 - .byte Cn1 - .byte W12 - .byte En1 - .byte W12 - .byte Cn1 - .byte W12 - .byte En1 - .byte W12 - .byte Cn1 - .byte W12 - .byte En1 - .byte W12 - .byte PEND -mus_battle20_3_86BF0A3: @ 86BF0A3 - .byte N12 - .byte Cn1 - .byte v108 - .byte W12 - .byte Fn1 - .byte W12 - .byte Cn1 - .byte W12 - .byte Fn1 - .byte W12 - .byte Cn1 - .byte W12 - .byte Fn1 - .byte W12 - .byte Cn1 - .byte W12 - .byte Fn1 - .byte W12 - .byte PEND - .byte PATT - .word mus_battle20_3_86BF0A3 - .byte PATT - .word mus_battle20_3_86BEFE9 - .byte PATT - .word mus_battle20_3_86BEFE9 - .byte N12 - .byte Cn1 - .byte v108 - .byte W12 - .byte As1 - .byte W12 - .byte Cn1 - .byte W12 - .byte As1 - .byte W12 - .byte Cn1 - .byte W12 - .byte As1 - .byte W12 - .byte Cn1 - .byte W12 - .byte As1 - .byte W12 - .byte PATT - .word mus_battle20_3_86BF0A3 - .byte PATT - .word mus_battle20_3_86BF090 - .byte PATT - .word mus_battle20_3_86BF090 - .byte PATT - .word mus_battle20_3_86BF0A3 - .byte PATT - .word mus_battle20_3_86BF0A3 - .byte PATT - .word mus_battle20_3_86BF090 - .byte PATT - .word mus_battle20_3_86BEFE9 - .byte PATT - .word mus_battle20_3_86BEFE9 - .byte PATT - .word mus_battle20_3_86BEFE9 - .byte PATT - .word mus_battle20_3_86BEFE9 - .byte PATT - .word mus_battle20_3_86BEFE9 - .byte PATT - .word mus_battle20_3_86BEFE9 - .byte PATT - .word mus_battle20_3_86BF00C - .byte PATT - .word mus_battle20_3_86BF00C - .byte PATT - .word mus_battle20_3_86BEFE9 - .byte PATT - .word mus_battle20_3_86BEFE9 - .byte PATT - .word mus_battle20_3_86BF05A - .byte PATT - .word mus_battle20_3_86BF05A - .byte PATT - .word mus_battle20_3_86BF05A - .byte PATT - .word mus_battle20_3_86BF05A -mus_battle20_3_86BF13B: @ 86BF13B - .byte N12 - .byte Cn1 - .byte v108 - .byte W12 - .byte Cn2 - .byte W12 - .byte Cn1 - .byte W12 - .byte Cn2 - .byte W12 - .byte Cn1 - .byte W12 - .byte Cn2 - .byte W12 - .byte Cn1 - .byte W12 - .byte Cn2 - .byte W12 - .byte PEND - .byte PATT - .word mus_battle20_3_86BF13B - .byte PATT - .word mus_battle20_3_86BEFE9 - .byte N12 - .byte Cn1 - .byte v108 - .byte W12 - .byte Gn1 - .byte W12 - .byte Cn2 - .byte W12 - .byte Gn1 - .byte W12 - .byte Cn2 - .byte W12 - .byte Gn1 - .byte W12 - .byte Fn1 - .byte W12 - .byte Gn1 - .byte W12 -mus_battle20_3_86BF16A: @ 86BF16A - .byte N12 - .byte Fn1 - .byte v108 - .byte W12 - .byte As1 - .byte W12 - .byte Fn1 - .byte W12 - .byte As1 - .byte W12 - .byte Fn1 - .byte W12 - .byte As1 - .byte W12 - .byte Fn1 - .byte W12 - .byte As1 - .byte W12 - .byte PEND - .byte PATT - .word mus_battle20_3_86BF16A - .byte PATT - .word mus_battle20_3_86BEFE9 - .byte PATT - .word mus_battle20_3_86BEFE9 - .byte PATT - .word mus_battle20_3_86BF16A - .byte PATT - .word mus_battle20_3_86BF16A - .byte PATT - .word mus_battle20_3_86BEFE9 - .byte PATT - .word mus_battle20_3_86BEFE9 - .byte PATT - .word mus_battle20_3_86BEFA5 - .byte PATT - .word mus_battle20_3_86BEFB8 - .byte PATT - .word mus_battle20_3_86BEFA5 - .byte PATT - .word mus_battle20_3_86BEFB8 - .byte PATT - .word mus_battle20_3_86BEFA5 - .byte PATT - .word mus_battle20_3_86BEFB8 - .byte PATT - .word mus_battle20_3_86BEFA5 - .byte N12 - .byte Cn1 - .byte v108 - .byte W12 - .byte Fs1 - .byte W12 - .byte Fn1 - .byte W12 - .byte Ds1 - .byte W12 - .byte Gn1 - .byte W12 - .byte Cs1 - .byte W12 - .byte Ds1 - .byte W12 - .byte Cs1 - .byte W12 - .byte GOTO - .word mus_battle20_3_86BEFE9 - .byte FINE - -mus_battle20_4: @ 86BF1DB - .byte KEYSH, 0x00 - .byte VOICE, 0x50 - .byte LFOS, 0x14 - .byte VOL, 0x50 - .byte XCMD, 0x08 - .byte AsM2 - .byte v009 - .byte GsM2 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W72 - .byte VOICE, 0x04 - .byte PAN, 0x40 - .byte N24 - .byte Gs3 - .byte v052 - .byte W24 -mus_battle20_4_86BF1F6: @ 86BF1F6 - .byte N12 - .byte Gn3 - .byte v052 - .byte W12 - .byte Cn3 - .byte W12 - .byte Fn3 - .byte W12 - .byte As3 - .byte W12 - .byte Gn3 - .byte W12 - .byte Cs3 - .byte W12 - .byte Gs3 - .byte W12 - .byte Cn3 - .byte W12 - .byte PEND - .byte Gn3 - .byte W12 - .byte Cs3 - .byte W12 - .byte Fn3 - .byte W12 - .byte As3 - .byte W12 - .byte Cn3 - .byte W12 - .byte Gn3 - .byte W12 - .byte Cs3 - .byte W12 - .byte Fn3 - .byte W12 - .byte PATT - .word mus_battle20_4_86BF1F6 - .byte N12 - .byte Gn3 - .byte v052 - .byte W12 - .byte Cs3 - .byte W12 - .byte Fn3 - .byte W12 - .byte As3 - .byte W12 - .byte Fn3 - .byte W12 - .byte Cn4 - .byte W12 - .byte N24 - .byte Cs4 - .byte W24 -mus_battle20_4_86BF22F: @ 86BF22F - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W60 - .byte VOICE, 0x52 - .byte PAN, 0x70 - .byte N03 - .byte Gn1 - .byte v060 - .byte W12 - .byte N03 - .byte W12 - .byte N03 - .byte W12 -mus_battle20_4_86BF251: @ 86BF251 - .byte N03 - .byte Gn1 - .byte v060 - .byte W12 - .byte N03 - .byte W12 - .byte N03 - .byte W12 - .byte N21 - .byte W24 - .byte N03 - .byte W12 - .byte N03 - .byte W12 - .byte N03 - .byte W12 - .byte PEND -mus_battle20_4_86BF262: @ 86BF262 - .byte N03 - .byte Fn1 - .byte v060 - .byte W12 - .byte N03 - .byte W12 - .byte N03 - .byte W12 - .byte N21 - .byte W24 - .byte N03 - .byte W12 - .byte N03 - .byte W12 - .byte N03 - .byte W12 - .byte PEND -mus_battle20_4_86BF273: @ 86BF273 - .byte N03 - .byte As1 - .byte v060 - .byte W12 - .byte N03 - .byte W12 - .byte N03 - .byte W12 - .byte N21 - .byte W24 - .byte N03 - .byte W12 - .byte N03 - .byte W12 - .byte N03 - .byte W12 - .byte PEND - .byte PATT - .word mus_battle20_4_86BF251 - .byte PATT - .word mus_battle20_4_86BF251 - .byte PATT - .word mus_battle20_4_86BF262 - .byte PATT - .word mus_battle20_4_86BF273 - .byte PATT - .word mus_battle20_4_86BF251 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte VOICE, 0x50 - .byte N96 - .byte Fn2 - .byte v060 - .byte W96 - .byte As2 - .byte W96 - .byte Dn3 - .byte W96 - .byte N84 - .byte Fn3 - .byte W84 - .byte N12 - .byte W12 - .byte TIE - .byte Gn3 - .byte W96 - .byte W96 - .byte EOT - .byte W96 - .byte W96 - .byte VOICE, 0x04 - .byte PAN, 0x10 - .byte N12 - .byte Fn4 - .byte v040 - .byte W12 - .byte Cn4 - .byte W12 - .byte Fn4 - .byte W12 - .byte An4 - .byte W12 - .byte Cn5 - .byte W12 - .byte An4 - .byte W12 - .byte Fn4 - .byte W12 - .byte Cn4 - .byte W12 -mus_battle20_4_86BF2D3: @ 86BF2D3 - .byte N12 - .byte Fn4 - .byte v040 - .byte W12 - .byte Cn4 - .byte W12 - .byte Fn4 - .byte W12 - .byte An4 - .byte W12 - .byte Cn5 - .byte W12 - .byte An4 - .byte W12 - .byte Fn4 - .byte W12 - .byte Cn4 - .byte W12 - .byte PEND -mus_battle20_4_86BF2E6: @ 86BF2E6 - .byte N12 - .byte En4 - .byte v040 - .byte W12 - .byte Cn4 - .byte W12 - .byte En4 - .byte W12 - .byte Gn4 - .byte W12 - .byte Cn5 - .byte W12 - .byte Gn4 - .byte W12 - .byte En4 - .byte W12 - .byte Cn4 - .byte W12 - .byte PEND - .byte PATT - .word mus_battle20_4_86BF2E6 - .byte PATT - .word mus_battle20_4_86BF2D3 - .byte N12 - .byte Fn4 - .byte v032 - .byte W12 - .byte Cn4 - .byte W12 - .byte Fn4 - .byte W12 - .byte An4 - .byte W12 - .byte Cn5 - .byte W12 - .byte An4 - .byte W12 - .byte Fn4 - .byte W12 - .byte Cn4 - .byte W12 - .byte En4 - .byte W12 - .byte Cn4 - .byte W12 - .byte En4 - .byte W12 - .byte Gn4 - .byte W12 - .byte Cn5 - .byte W12 - .byte Gn4 - .byte W12 - .byte En4 - .byte W12 - .byte Cn4 - .byte W12 - .byte En4 - .byte v020 - .byte W12 - .byte Cn4 - .byte W12 - .byte En4 - .byte W12 - .byte Gn4 - .byte W12 - .byte Cn5 - .byte W12 - .byte Gn4 - .byte W12 - .byte En4 - .byte W12 - .byte Cn4 - .byte W12 - .byte VOICE, 0x06 - .byte PAN, 0x40 - .byte N48 - .byte Cn3 - .byte v052 - .byte W24 - .byte MOD, 0x05 - .byte W24 - .byte CnM2 - .byte N48 - .byte Cn2 - .byte W24 - .byte MOD, 0x05 - .byte W24 - .byte CnM2 - .byte N48 - .byte Gn2 - .byte W24 - .byte MOD, 0x05 - .byte W24 - .byte CnM2 - .byte N48 - .byte Cs2 - .byte W24 - .byte MOD, 0x05 - .byte W24 - .byte CnM2 - .byte N48 - .byte Cn3 - .byte W24 - .byte MOD, 0x05 - .byte W24 - .byte CnM2 - .byte N48 - .byte Cn2 - .byte W24 - .byte MOD, 0x05 - .byte W24 - .byte CnM2 - .byte N48 - .byte Gn2 - .byte W24 - .byte MOD, 0x05 - .byte W24 - .byte CnM2 - .byte N48 - .byte Cs3 - .byte W24 - .byte MOD, 0x05 - .byte W24 - .byte VOICE, 0x06 - .byte PAN, 0x40 - .byte MOD, 0x00 - .byte N12 - .byte Gn4 - .byte W36 - .byte Gs4 - .byte W36 - .byte Gn3 - .byte W24 - .byte En4 - .byte W36 - .byte Fn4 - .byte W36 - .byte N24 - .byte Gn3 - .byte W24 - .byte N12 - .byte Gn4 - .byte W36 - .byte Gs4 - .byte W36 - .byte N24 - .byte Cn4 - .byte W24 - .byte N12 - .byte Gn4 - .byte W36 - .byte Gs4 - .byte W36 - .byte N24 - .byte Fn4 - .byte W24 - .byte GOTO - .word mus_battle20_4_86BF22F - .byte FINE - -mus_battle20_5: @ 86BF39C - .byte KEYSH, 0x00 - .byte VOICE, 0x04 - .byte LFOS, 0x14 - .byte PAN, 0x40 - .byte XCMD, 0x08 - .byte AsM2 - .byte v009 - .byte GsM2 - .byte VOL, 0x50 - .byte N06 - .byte Gn3 - .byte v060 - .byte W12 - .byte Cn3 - .byte W06 - .byte Cn4 - .byte W06 - .byte PAN, 0x10 - .byte N06 - .byte Gn3 - .byte W12 - .byte Cn3 - .byte W06 - .byte Cn4 - .byte W06 - .byte PAN, 0x70 - .byte N06 - .byte Gn3 - .byte W12 - .byte Cn3 - .byte W06 - .byte Cn4 - .byte W06 - .byte PAN, 0x41 - .byte N06 - .byte Gn3 - .byte W12 - .byte Cn3 - .byte W06 - .byte Cn4 - .byte W06 - .byte PAN, 0x10 - .byte N06 - .byte Fn3 - .byte W12 - .byte As2 - .byte W06 - .byte As3 - .byte W06 - .byte PAN, 0x72 - .byte N06 - .byte Fn3 - .byte W12 - .byte As2 - .byte W06 - .byte As3 - .byte W06 - .byte PAN, 0x41 - .byte N06 - .byte Fn3 - .byte W12 - .byte As2 - .byte W06 - .byte As3 - .byte W06 - .byte PAN, 0x10 - .byte N06 - .byte Fn3 - .byte W12 - .byte PAN, 0x70 - .byte N06 - .byte As2 - .byte W06 - .byte Fs4 - .byte W06 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte VOICE, 0x05 - .byte PAN, 0x40 - .byte N12 - .byte Gn4 - .byte v052 - .byte W36 - .byte As4 - .byte W36 - .byte Gs4 - .byte W24 - .byte Gn4 - .byte W12 - .byte Gs4 - .byte W24 - .byte As4 - .byte W36 - .byte N24 - .byte Gs4 - .byte W24 - .byte N12 - .byte Gn4 - .byte W36 - .byte As4 - .byte W36 - .byte Gs4 - .byte W24 - .byte Gn4 - .byte W12 - .byte Gs4 - .byte W24 - .byte As4 - .byte W36 - .byte N24 - .byte Cs5 - .byte W24 -mus_battle20_5_86BF41E: @ 86BF41E - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte VOICE, 0x06 - .byte PAN, 0x40 - .byte N96 - .byte Cn3 - .byte v060 - .byte W48 - .byte MOD, 0x06 - .byte W48 - .byte CnM2 - .byte N48 - .byte Gn2 - .byte W24 - .byte MOD, 0x06 - .byte W24 - .byte CnM2 - .byte N48 - .byte As2 - .byte W24 - .byte MOD, 0x06 - .byte W24 - .byte CnM2 - .byte N36 - .byte Dn3 - .byte W36 - .byte N24 - .byte Fn3 - .byte W24 - .byte N12 - .byte As2 - .byte W12 - .byte Dn3 - .byte W12 - .byte Fn3 - .byte W12 - .byte N72 - .byte Gn3 - .byte W36 - .byte MOD, 0x06 - .byte W36 - .byte CnM2 - .byte N24 - .byte En4 - .byte W24 - .byte N92 - .byte Gn4 - .byte W36 - .byte W03 - .byte MOD, 0x06 - .byte W15 - .byte VOL, 0x49 - .byte W09 - .byte Fs3 - .byte W06 - .byte Bn2 - .byte W09 - .byte Dn2 - .byte W06 - .byte En1 - .byte W06 - .byte Dn0 - .byte W03 - .byte MOD, 0x00 - .byte W03 - .byte VOL, 0x50 - .byte W96 - .byte W96 - .byte W96 - .byte W60 - .byte VOICE, 0x53 - .byte PAN, 0x40 - .byte N03 - .byte Gn2 - .byte v072 - .byte W12 - .byte N03 - .byte W12 - .byte N03 - .byte W12 -mus_battle20_5_86BF485: @ 86BF485 - .byte N03 - .byte Gn2 - .byte v072 - .byte W12 - .byte N03 - .byte W12 - .byte N03 - .byte W12 - .byte N21 - .byte W24 - .byte N03 - .byte W12 - .byte N03 - .byte W12 - .byte N03 - .byte W12 - .byte PEND -mus_battle20_5_86BF496: @ 86BF496 - .byte N03 - .byte Fn2 - .byte v072 - .byte W12 - .byte N03 - .byte W12 - .byte N03 - .byte W12 - .byte N21 - .byte W24 - .byte N03 - .byte W12 - .byte N03 - .byte W12 - .byte N03 - .byte W12 - .byte PEND -mus_battle20_5_86BF4A7: @ 86BF4A7 - .byte N03 - .byte As2 - .byte v072 - .byte W12 - .byte N03 - .byte W12 - .byte N03 - .byte W12 - .byte N21 - .byte W24 - .byte N03 - .byte W12 - .byte N03 - .byte W12 - .byte N03 - .byte W12 - .byte PEND - .byte PATT - .word mus_battle20_5_86BF485 - .byte PATT - .word mus_battle20_5_86BF485 - .byte PATT - .word mus_battle20_5_86BF496 - .byte PATT - .word mus_battle20_5_86BF4A7 - .byte PATT - .word mus_battle20_5_86BF485 - .byte VOICE, 0x04 - .byte N36 - .byte Cn4 - .byte v072 - .byte W36 - .byte Cs4 - .byte W36 - .byte N24 - .byte Cn2 - .byte W24 - .byte N36 - .byte Gn3 - .byte W36 - .byte Gs3 - .byte W36 - .byte N24 - .byte Cs2 - .byte W24 - .byte N36 - .byte Cn3 - .byte W36 - .byte Cs3 - .byte W36 - .byte N24 - .byte Cn1 - .byte W24 - .byte N36 - .byte Gn2 - .byte W36 - .byte Gs2 - .byte W36 - .byte N24 - .byte Cs1 - .byte W24 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte VOICE, 0x52 - .byte PAN, 0x0F - .byte N12 - .byte As1 - .byte v060 - .byte W12 - .byte VOICE, 0x55 - .byte N11 - .byte W12 - .byte N11 - .byte W12 - .byte N11 - .byte W12 - .byte N11 - .byte W12 - .byte N11 - .byte W12 - .byte N11 - .byte W12 - .byte N11 - .byte W12 - .byte VOICE, 0x52 - .byte N12 - .byte Dn2 - .byte W12 - .byte VOICE, 0x55 - .byte N11 - .byte W12 - .byte N11 - .byte W12 - .byte N11 - .byte W12 - .byte N11 - .byte W12 - .byte N11 - .byte W12 - .byte N11 - .byte W12 - .byte N11 - .byte W12 - .byte VOICE, 0x52 - .byte N12 - .byte Fn2 - .byte W12 - .byte VOICE, 0x55 - .byte N11 - .byte W12 - .byte N11 - .byte W12 - .byte N11 - .byte W12 - .byte N11 - .byte W12 - .byte N11 - .byte W12 - .byte N11 - .byte W12 - .byte N11 - .byte W12 - .byte VOICE, 0x52 - .byte N12 - .byte As2 - .byte W12 - .byte VOICE, 0x55 - .byte N11 - .byte W12 - .byte N11 - .byte W12 - .byte N11 - .byte W12 - .byte N11 - .byte W12 - .byte N11 - .byte W12 - .byte N11 - .byte W12 - .byte VOICE, 0x52 - .byte N12 - .byte Dn3 - .byte W12 - .byte Cn3 - .byte W12 - .byte VOICE, 0x55 - .byte N12 - .byte W12 - .byte N12 - .byte W12 - .byte N12 - .byte W12 - .byte N12 - .byte W12 - .byte N12 - .byte W12 - .byte N12 - .byte W12 - .byte N12 - .byte W12 - .byte N12 - .byte W12 - .byte N12 - .byte W12 - .byte N12 - .byte W12 - .byte N12 - .byte W12 - .byte N12 - .byte W12 - .byte N12 - .byte W12 - .byte N12 - .byte W12 - .byte N12 - .byte W12 - .byte VOICE, 0x52 - .byte PAN, 0x40 - .byte N12 - .byte En2 - .byte W12 - .byte VOICE, 0x55 - .byte N12 - .byte W12 - .byte N12 - .byte W12 - .byte N12 - .byte W12 - .byte N12 - .byte W12 - .byte N12 - .byte W12 - .byte N12 - .byte W12 - .byte N12 - .byte W12 - .byte N12 - .byte W12 - .byte N12 - .byte W12 - .byte N12 - .byte W12 - .byte N12 - .byte W12 - .byte VOL, 0x4B - .byte N12 - .byte W06 - .byte VOL, 0x47 - .byte W06 - .byte Fs3 - .byte N12 - .byte W06 - .byte VOL, 0x3C - .byte W06 - .byte Fn2 - .byte N12 - .byte W06 - .byte VOL, 0x2D - .byte W06 - .byte Bn0 - .byte N09 - .byte W06 - .byte VOL, 0x18 - .byte W06 - .byte VOICE, 0x05 - .byte VOL, 0x50 - .byte BEND, 0x3D - .byte W06 - .byte N12 - .byte Fn4 - .byte v032 - .byte W12 - .byte Cn4 - .byte W12 - .byte Fn4 - .byte W12 - .byte An4 - .byte W12 - .byte Cn5 - .byte W12 - .byte An4 - .byte W12 - .byte Fn4 - .byte W12 - .byte Cn4 - .byte W06 -mus_battle20_5_86BF5C7: @ 86BF5C7 - .byte W06 - .byte N12 - .byte Fn4 - .byte v032 - .byte W12 - .byte Cn4 - .byte W12 - .byte Fn4 - .byte W12 - .byte An4 - .byte W12 - .byte Cn5 - .byte W12 - .byte An4 - .byte W12 - .byte Fn4 - .byte W12 - .byte Cn4 - .byte W06 - .byte PEND -mus_battle20_5_86BF5DB: @ 86BF5DB - .byte W06 - .byte N12 - .byte En4 - .byte v032 - .byte W12 - .byte Cn4 - .byte W12 - .byte En4 - .byte W12 - .byte Gn4 - .byte W12 - .byte Cn5 - .byte W12 - .byte Gn4 - .byte W12 - .byte En4 - .byte W12 - .byte Cn4 - .byte W06 - .byte PEND - .byte PATT - .word mus_battle20_5_86BF5DB - .byte PATT - .word mus_battle20_5_86BF5C7 - .byte W06 - .byte N12 - .byte Fn4 - .byte v020 - .byte W12 - .byte Cn4 - .byte W12 - .byte Fn4 - .byte W12 - .byte An4 - .byte W12 - .byte Cn5 - .byte W12 - .byte An4 - .byte W12 - .byte Fn4 - .byte W12 - .byte Cn4 - .byte W06 - .byte W06 - .byte En4 - .byte W12 - .byte Cn4 - .byte W12 - .byte En4 - .byte W12 - .byte Gn4 - .byte W12 - .byte Cn5 - .byte W12 - .byte Gn4 - .byte W12 - .byte En4 - .byte W12 - .byte Cn4 - .byte W06 - .byte W06 - .byte En4 - .byte v012 - .byte W12 - .byte Cn4 - .byte W12 - .byte En4 - .byte W12 - .byte Gn4 - .byte W12 - .byte Cn5 - .byte W12 - .byte Gn4 - .byte W12 - .byte En4 - .byte W12 - .byte Cn4 - .byte W06 - .byte BEND, 0x40 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte VOICE, 0x07 - .byte PAN, 0x10 - .byte N12 - .byte Gn3 - .byte v052 - .byte W36 - .byte Gs3 - .byte W36 - .byte Gn3 - .byte W24 - .byte En3 - .byte W36 - .byte Fn3 - .byte W36 - .byte Gn3 - .byte W24 - .byte N12 - .byte W36 - .byte Gs3 - .byte W36 - .byte N24 - .byte Gn3 - .byte W24 - .byte N12 - .byte W36 - .byte Gs3 - .byte W36 - .byte N24 - .byte As3 - .byte W24 - .byte GOTO - .word mus_battle20_5_86BF41E - .byte FINE - -mus_battle20_6: @ 86BF65B - .byte KEYSH, 0x00 - .byte VOICE, 0x51 - .byte VOL, 0x50 - .byte W24 - .byte N06 - .byte Cn2 - .byte v080 - .byte W06 - .byte Cs2 - .byte W06 - .byte Dn2 - .byte W06 - .byte Ds2 - .byte W06 - .byte En2 - .byte W06 - .byte Fn2 - .byte W06 - .byte Fs2 - .byte W06 - .byte Gn2 - .byte W06 - .byte Cn2 - .byte W06 - .byte Cs2 - .byte W06 - .byte Dn2 - .byte W06 - .byte Ds2 - .byte W06 - .byte En2 - .byte W06 - .byte Fn2 - .byte W06 - .byte Fs2 - .byte W06 - .byte Gn2 - .byte W06 - .byte Cn2 - .byte W06 - .byte Cs2 - .byte W06 - .byte Dn2 - .byte W06 - .byte Ds2 - .byte W06 - .byte En2 - .byte W06 - .byte Fn2 - .byte W06 - .byte Fs2 - .byte W06 - .byte Gn2 - .byte W30 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W96 -mus_battle20_6_86BF69C: @ 86BF69C - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte VOICE, 0x5A - .byte N96 - .byte Fn1 - .byte v080 - .byte W96 - .byte As1 - .byte W96 - .byte Dn2 - .byte W96 - .byte N84 - .byte Fn2 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte GOTO - .word mus_battle20_6_86BF69C - .byte FINE - -mus_battle20_7: @ 86BF6EB - .byte KEYSH, 0x00 - .byte VOICE, 0x00 - .byte PAN, 0x40 - .byte VOL, 0x50 - .byte W96 - .byte W84 - .byte N12 - .byte Dn1 - .byte v112 - .byte W12 -mus_battle20_7_86BF6F9: @ 86BF6F9 - .byte W24 - .byte N12 - .byte Dn1 - .byte v112 - .byte W48 - .byte N12 - .byte W24 - .byte PEND - .byte PATT - .word mus_battle20_7_86BF6F9 - .byte PATT - .word mus_battle20_7_86BF6F9 - .byte PATT - .word mus_battle20_7_86BF6F9 - .byte PATT - .word mus_battle20_7_86BF6F9 - .byte PATT - .word mus_battle20_7_86BF6F9 - .byte PATT - .word mus_battle20_7_86BF6F9 - .byte PATT - .word mus_battle20_7_86BF6F9 -mus_battle20_7_86BF724: @ 86BF724 - .byte PATT - .word mus_battle20_7_86BF6F9 - .byte PATT - .word mus_battle20_7_86BF6F9 - .byte W24 - .byte N12 - .byte Dn1 - .byte v112 - .byte W72 - .byte W24 - .byte N12 - .byte W72 - .byte PATT - .word mus_battle20_7_86BF6F9 - .byte PATT - .word mus_battle20_7_86BF6F9 - .byte W24 - .byte N12 - .byte Dn1 - .byte v112 - .byte W72 - .byte W24 - .byte N12 - .byte W72 - .byte PATT - .word mus_battle20_7_86BF6F9 -mus_battle20_7_86BF74D: @ 86BF74D - .byte W24 - .byte N12 - .byte Dn1 - .byte v112 - .byte W48 - .byte N12 - .byte W12 - .byte N12 - .byte W12 - .byte PEND - .byte PATT - .word mus_battle20_7_86BF6F9 - .byte PATT - .word mus_battle20_7_86BF6F9 - .byte PATT - .word mus_battle20_7_86BF6F9 - .byte PATT - .word mus_battle20_7_86BF6F9 - .byte PATT - .word mus_battle20_7_86BF6F9 - .byte PATT - .word mus_battle20_7_86BF6F9 - .byte PATT - .word mus_battle20_7_86BF6F9 - .byte PATT - .word mus_battle20_7_86BF6F9 - .byte PATT - .word mus_battle20_7_86BF6F9 - .byte PATT - .word mus_battle20_7_86BF6F9 - .byte PATT - .word mus_battle20_7_86BF6F9 - .byte PATT - .word mus_battle20_7_86BF6F9 - .byte PATT - .word mus_battle20_7_86BF6F9 - .byte PATT - .word mus_battle20_7_86BF6F9 - .byte PATT - .word mus_battle20_7_86BF6F9 - .byte PATT - .word mus_battle20_7_86BF74D - .byte PATT - .word mus_battle20_7_86BF6F9 - .byte PATT - .word mus_battle20_7_86BF6F9 - .byte PATT - .word mus_battle20_7_86BF6F9 -mus_battle20_7_86BF7B6: @ 86BF7B6 - .byte W24 - .byte N12 - .byte Dn1 - .byte v112 - .byte W12 - .byte N12 - .byte W36 - .byte N12 - .byte W12 - .byte N12 - .byte W12 - .byte PEND - .byte PATT - .word mus_battle20_7_86BF6F9 - .byte PATT - .word mus_battle20_7_86BF6F9 - .byte PATT - .word mus_battle20_7_86BF6F9 - .byte PATT - .word mus_battle20_7_86BF74D - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W72 - .byte N12 - .byte Dn1 - .byte v112 - .byte W12 - .byte N12 - .byte W12 - .byte PATT - .word mus_battle20_7_86BF6F9 - .byte PATT - .word mus_battle20_7_86BF6F9 - .byte PATT - .word mus_battle20_7_86BF6F9 - .byte W24 - .byte N48 - .byte An2 - .byte v100 - .byte W48 - .byte N12 - .byte Dn1 - .byte v112 - .byte W12 - .byte N12 - .byte W12 - .byte PATT - .word mus_battle20_7_86BF6F9 - .byte PATT - .word mus_battle20_7_86BF6F9 - .byte PATT - .word mus_battle20_7_86BF6F9 - .byte PATT - .word mus_battle20_7_86BF6F9 - .byte PATT - .word mus_battle20_7_86BF6F9 - .byte PATT - .word mus_battle20_7_86BF6F9 - .byte PATT - .word mus_battle20_7_86BF6F9 - .byte PATT - .word mus_battle20_7_86BF74D - .byte PATT - .word mus_battle20_7_86BF6F9 - .byte PATT - .word mus_battle20_7_86BF6F9 - .byte PATT - .word mus_battle20_7_86BF6F9 - .byte PATT - .word mus_battle20_7_86BF6F9 - .byte PATT - .word mus_battle20_7_86BF6F9 - .byte PATT - .word mus_battle20_7_86BF6F9 - .byte PATT - .word mus_battle20_7_86BF6F9 - .byte PATT - .word mus_battle20_7_86BF7B6 - .byte GOTO - .word mus_battle20_7_86BF724 - .byte FINE - -mus_battle20_8: @ 86BF856 - .byte KEYSH, 0x00 - .byte VOICE, 0x2F - .byte PAN, 0x40 - .byte VOL, 0x50 - .byte N12 - .byte Cn2 - .byte v112 - .byte W36 - .byte N12 - .byte W36 - .byte N12 - .byte W24 - .byte W12 - .byte N12 - .byte W36 - .byte PAN, 0x20 - .byte N12 - .byte An1 - .byte W24 - .byte PAN, 0x60 - .byte N12 - .byte W24 -mus_battle20_8_86BF872: @ 86BF872 - .byte PAN, 0x40 - .byte N12 - .byte Cn2 - .byte v112 - .byte W36 - .byte N12 - .byte W60 - .byte PEND -mus_battle20_8_86BF87B: @ 86BF87B - .byte N12 - .byte Cn2 - .byte v112 - .byte W36 - .byte N12 - .byte W60 - .byte PEND - .byte PATT - .word mus_battle20_8_86BF87B -mus_battle20_8_86BF887: @ 86BF887 - .byte N12 - .byte Cn2 - .byte v112 - .byte W36 - .byte N12 - .byte W48 - .byte An1 - .byte W12 - .byte PEND - .byte PATT - .word mus_battle20_8_86BF87B - .byte PATT - .word mus_battle20_8_86BF887 - .byte PATT - .word mus_battle20_8_86BF87B - .byte PATT - .word mus_battle20_8_86BF887 -mus_battle20_8_86BF8A4: @ 86BF8A4 - .byte PATT - .word mus_battle20_8_86BF87B - .byte PATT - .word mus_battle20_8_86BF887 -mus_battle20_8_86BF8AE: @ 86BF8AE - .byte N12 - .byte Cn2 - .byte v112 - .byte W36 - .byte N12 - .byte W36 - .byte VOICE, 0x2E - .byte N12 - .byte Cn2 - .byte v127 - .byte W24 - .byte PEND -mus_battle20_8_86BF8BB: @ 86BF8BB - .byte VOICE, 0x2F - .byte W12 - .byte N12 - .byte Cn2 - .byte v112 - .byte W36 - .byte An1 - .byte W24 - .byte VOICE, 0x2E - .byte N12 - .byte Cn2 - .byte v127 - .byte W24 - .byte PEND - .byte VOICE, 0x2F - .byte N12 - .byte Cn2 - .byte v112 - .byte W36 - .byte N12 - .byte W60 - .byte PATT - .word mus_battle20_8_86BF887 - .byte PATT - .word mus_battle20_8_86BF8AE - .byte PATT - .word mus_battle20_8_86BF8BB - .byte VOICE, 0x2F - .byte N12 - .byte Cn2 - .byte v112 - .byte W36 - .byte N12 - .byte W48 - .byte An1 - .byte W12 -mus_battle20_8_86BF8EC: @ 86BF8EC - .byte N12 - .byte Cn2 - .byte v112 - .byte W36 - .byte N12 - .byte W24 - .byte N12 - .byte W36 - .byte PEND - .byte PATT - .word mus_battle20_8_86BF87B - .byte PATT - .word mus_battle20_8_86BF887 - .byte PATT - .word mus_battle20_8_86BF87B - .byte PATT - .word mus_battle20_8_86BF887 - .byte PATT - .word mus_battle20_8_86BF87B - .byte PATT - .word mus_battle20_8_86BF887 - .byte PATT - .word mus_battle20_8_86BF87B - .byte N12 - .byte Cn2 - .byte v112 - .byte W36 - .byte N12 - .byte W48 - .byte N06 - .byte An1 - .byte W06 - .byte Cn2 - .byte W06 -mus_battle20_8_86BF923: @ 86BF923 - .byte N12 - .byte Cn2 - .byte v112 - .byte W48 - .byte N12 - .byte W12 - .byte N12 - .byte W36 - .byte PEND - .byte PATT - .word mus_battle20_8_86BF923 - .byte PATT - .word mus_battle20_8_86BF923 -mus_battle20_8_86BF936: @ 86BF936 - .byte N12 - .byte Cn2 - .byte v112 - .byte W48 - .byte N12 - .byte W12 - .byte N12 - .byte W24 - .byte An1 - .byte W12 - .byte PEND - .byte PATT - .word mus_battle20_8_86BF923 - .byte PATT - .word mus_battle20_8_86BF923 - .byte PATT - .word mus_battle20_8_86BF923 - .byte PATT - .word mus_battle20_8_86BF923 - .byte PATT - .word mus_battle20_8_86BF923 - .byte PATT - .word mus_battle20_8_86BF936 - .byte PATT - .word mus_battle20_8_86BF923 - .byte PATT - .word mus_battle20_8_86BF923 -mus_battle20_8_86BF969: @ 86BF969 - .byte N12 - .byte Cn2 - .byte v112 - .byte W12 - .byte N12 - .byte W36 - .byte N12 - .byte W48 - .byte PEND - .byte PATT - .word mus_battle20_8_86BF969 - .byte PATT - .word mus_battle20_8_86BF969 - .byte N12 - .byte Cn2 - .byte v112 - .byte W12 - .byte N12 - .byte W36 - .byte N12 - .byte W36 - .byte MEMACC, 0x00 - .byte CnM2 - .byte v117 - .byte PAN, 0x60 - .byte W12 - .byte N12 - .byte Gn2 - .byte v088 - .byte W12 - .byte N12 - .byte W24 - .byte En2 - .byte W12 - .byte Gn2 - .byte W24 - .byte N12 - .byte W12 - .byte En2 - .byte W12 - .byte W12 - .byte Gn2 - .byte W12 - .byte En2 - .byte W24 - .byte N12 - .byte W24 - .byte N12 - .byte W24 - .byte Gn2 - .byte W12 - .byte N12 - .byte W12 - .byte En2 - .byte W24 - .byte N12 - .byte W12 - .byte Gn2 - .byte W24 - .byte N12 - .byte W12 - .byte En2 - .byte W12 - .byte Gn2 - .byte W24 - .byte N12 - .byte W12 - .byte N12 - .byte W12 - .byte En2 - .byte W24 - .byte N06 - .byte W06 - .byte Gn2 - .byte W06 - .byte N12 - .byte En2 - .byte W24 - .byte N12 - .byte W24 - .byte N12 - .byte W12 - .byte Gn2 - .byte W12 - .byte N12 - .byte W12 - .byte N12 - .byte W12 - .byte En2 - .byte W24 - .byte N12 - .byte W12 - .byte Gn2 - .byte W12 - .byte N12 - .byte W24 - .byte N12 - .byte W24 - .byte En2 - .byte W24 - .byte N12 - .byte W24 - .byte N12 - .byte W12 - .byte Gn2 - .byte W24 - .byte N06 - .byte En2 - .byte W06 - .byte Gn2 - .byte W06 - .byte N12 - .byte W12 - .byte En2 - .byte W24 - .byte N12 - .byte W12 - .byte Gn2 - .byte W12 - .byte N12 - .byte W12 - .byte N12 - .byte W24 - .byte En2 - .byte W24 - .byte N12 - .byte W24 - .byte N12 - .byte W24 - .byte Gn2 - .byte W24 - .byte N12 - .byte W36 - .byte N12 - .byte W12 - .byte N12 - .byte W12 - .byte N12 - .byte W36 - .byte PATT - .word mus_battle20_8_86BF872 - .byte PATT - .word mus_battle20_8_86BF87B - .byte N09 - .byte Cn2 - .byte v112 - .byte W36 - .byte N12 - .byte W60 - .byte N12 - .byte W96 - .byte PATT - .word mus_battle20_8_86BF87B - .byte PATT - .word mus_battle20_8_86BF87B - .byte PATT - .word mus_battle20_8_86BF87B - .byte PATT - .word mus_battle20_8_86BF887 - .byte PATT - .word mus_battle20_8_86BF87B - .byte PATT - .word mus_battle20_8_86BF87B - .byte PATT - .word mus_battle20_8_86BF887 - .byte PATT - .word mus_battle20_8_86BF8EC - .byte PATT - .word mus_battle20_8_86BF87B - .byte PATT - .word mus_battle20_8_86BF87B - .byte PATT - .word mus_battle20_8_86BF87B - .byte PATT - .word mus_battle20_8_86BF87B - .byte PATT - .word mus_battle20_8_86BF87B - .byte PATT - .word mus_battle20_8_86BF87B - .byte PATT - .word mus_battle20_8_86BF87B - .byte N12 - .byte Cn2 - .byte v112 - .byte W48 - .byte N12 - .byte W48 - .byte GOTO - .word mus_battle20_8_86BF8A4 - .byte FINE - -@ *************************************** - .align 2 -mus_battle20: @ 86BFA68 - .byte 8 - .byte 0 - .byte mus_battle20_pri - .byte mus_battle20_rev - .word mus_battle20_grp - - .word mus_battle20_1 - .word mus_battle20_2 - .word mus_battle20_3 - .word mus_battle20_4 - .word mus_battle20_5 - .word mus_battle20_6 - .word mus_battle20_7 - .word mus_battle20_8 diff --git a/sound/songs/mus_battle32.s b/sound/songs/mus_battle32.s deleted file mode 100644 index a9436af12..000000000 --- a/sound/songs/mus_battle32.s +++ /dev/null @@ -1,2925 +0,0 @@ - .include "MPlayDef.s" - .section .rodata - .global mus_battle32 - .align 2 - .equ mus_battle32_grp, voicegroup120 - .equ mus_battle32_pri, 0 - .equ mus_battle32_rev, reverb_set+50 - -mus_battle32_1: @ 86BDBBC - .byte KEYSH, 0x00 - .byte TEMPO, 0x62 - .byte VOICE, 0x30 - .byte VOL, 0x50 - .byte LFOS, 0x12 - .byte PAN, 0x36 - .byte N06 - .byte Cn5 - .byte v092 - .byte W06 - .byte Bn4 - .byte W06 - .byte As4 - .byte W06 - .byte An4 - .byte W06 - .byte Gs4 - .byte W06 - .byte Gn4 - .byte W06 - .byte Fs4 - .byte W06 - .byte Fn4 - .byte W06 - .byte Gs4 - .byte W06 - .byte Gn4 - .byte W06 - .byte Fs4 - .byte W06 - .byte Fn4 - .byte W06 - .byte En4 - .byte W06 - .byte Ds4 - .byte W06 - .byte Dn4 - .byte W06 - .byte Cs4 - .byte W06 - .byte En4 - .byte W06 - .byte Ds4 - .byte W06 - .byte Dn4 - .byte W06 - .byte Cs4 - .byte W06 - .byte Cn4 - .byte W06 - .byte Bn3 - .byte W06 - .byte As3 - .byte W06 - .byte An3 - .byte W06 - .byte Cn4 - .byte W06 - .byte Bn3 - .byte W06 - .byte As3 - .byte W06 - .byte An3 - .byte W06 - .byte As3 - .byte W06 - .byte An3 - .byte W06 - .byte As3 - .byte W06 - .byte Bn3 - .byte W06 - .byte VOICE, 0x38 - .byte PAN, 0x4A - .byte N12 - .byte Gn3 - .byte v104 - .byte W36 - .byte Gs3 - .byte W36 - .byte Gn2 - .byte W24 - .byte En3 - .byte W36 - .byte Fn3 - .byte W36 - .byte N24 - .byte As2 - .byte W24 - .byte N12 - .byte Gn3 - .byte W36 - .byte Gs3 - .byte W36 - .byte Gn2 - .byte W24 - .byte En3 - .byte W36 - .byte Fn3 - .byte W36 - .byte N24 - .byte Gs3 - .byte W24 - .byte VOICE, 0x3C - .byte PAN, 0x30 - .byte N48 - .byte Cn4 - .byte v100 - .byte W48 - .byte Cn3 - .byte W48 - .byte Gn3 - .byte W48 - .byte Cs3 - .byte W48 - .byte Cn4 - .byte W48 - .byte Cn3 - .byte W48 - .byte Cs4 - .byte W48 - .byte N24 - .byte Ds3 - .byte W24 - .byte Cs4 - .byte W24 -mus_battle32_1_86BDC44: @ 86BDC44 - .byte PAN, 0x4A - .byte N48 - .byte Gn3 - .byte v100 - .byte W48 - .byte N42 - .byte Fn3 - .byte W42 - .byte N06 - .byte Gs3 - .byte W06 - .byte N36 - .byte Gn3 - .byte W36 - .byte N12 - .byte Cn3 - .byte W24 - .byte N12 - .byte W12 - .byte Dn3 - .byte W12 - .byte Fn3 - .byte W12 - .byte N36 - .byte Gn3 - .byte W36 - .byte Cn4 - .byte W36 - .byte N12 - .byte As3 - .byte W12 - .byte An3 - .byte W12 - .byte As3 - .byte W12 - .byte Cn4 - .byte W24 - .byte N60 - .byte Gn3 - .byte W60 - .byte PAN, 0x50 - .byte N48 - .byte Dn4 - .byte W48 - .byte Cn4 - .byte W48 - .byte N24 - .byte As3 - .byte W24 - .byte Cn4 - .byte W24 - .byte As3 - .byte W24 - .byte An3 - .byte W24 - .byte N72 - .byte Gn3 - .byte W72 - .byte N24 - .byte En3 - .byte W24 - .byte N92 - .byte Cn4 - .byte W96 - .byte N48 - .byte Dn4 - .byte W12 - .byte PAN, 0x54 - .byte W36 - .byte N48 - .byte Cn4 - .byte W48 - .byte As3 - .byte W48 - .byte Dn4 - .byte W48 - .byte N72 - .byte En4 - .byte W72 - .byte N24 - .byte Dn4 - .byte W24 - .byte N92 - .byte Cn4 - .byte W96 - .byte VOICE, 0x01 - .byte PAN, 0x4A - .byte N36 - .byte Cn3 - .byte v108 - .byte W36 - .byte Fn3 - .byte W36 - .byte N24 - .byte En3 - .byte W24 - .byte N36 - .byte Fn3 - .byte W36 - .byte N12 - .byte Cn3 - .byte W24 - .byte N12 - .byte W12 - .byte Dn3 - .byte W12 - .byte Fn3 - .byte W12 - .byte N36 - .byte Gn3 - .byte W36 - .byte Cn3 - .byte W36 - .byte N12 - .byte As3 - .byte W12 - .byte An3 - .byte W12 - .byte As3 - .byte W12 - .byte Cn4 - .byte W24 - .byte N60 - .byte Gn3 - .byte W56 - .byte W01 - .byte VOICE, 0x38 - .byte W03 - .byte N48 - .byte Dn4 - .byte W24 - .byte MOD, 0x06 - .byte W24 - .byte CnM2 - .byte N48 - .byte Cn4 - .byte W24 - .byte MOD, 0x06 - .byte W24 - .byte CnM2 - .byte N24 - .byte As3 - .byte W24 - .byte Cn4 - .byte W24 - .byte As3 - .byte W24 - .byte An3 - .byte W24 - .byte N72 - .byte Gn3 - .byte W36 - .byte MOD, 0x06 - .byte W36 - .byte CnM2 - .byte N24 - .byte En3 - .byte W24 - .byte N56 - .byte Cn4 - .byte v104 - .byte W30 - .byte MOD, 0x06 - .byte W03 - .byte VOL, 0x4C - .byte W06 - .byte Bn3 - .byte W06 - .byte En3 - .byte W03 - .byte Cs2 - .byte W03 - .byte An0 - .byte W03 - .byte FnM1 - .byte W03 - .byte VOICE, 0x30 - .byte MOD, 0x00 - .byte W03 - .byte PAN, 0x54 - .byte N12 - .byte Gn3 - .byte v092 - .byte W03 - .byte VOL, 0x50 - .byte W09 - .byte N12 - .byte Cn4 - .byte W24 - .byte N48 - .byte Dn4 - .byte W48 - .byte Cn4 - .byte W48 - .byte As3 - .byte W48 - .byte Dn4 - .byte W48 - .byte N72 - .byte En4 - .byte W72 - .byte N24 - .byte Cn4 - .byte W24 - .byte N92 - .byte Gn4 - .byte W96 - .byte VOICE, 0x01 - .byte N36 - .byte Gn3 - .byte v108 - .byte W36 - .byte Fn3 - .byte W36 - .byte N24 - .byte Gn3 - .byte W24 - .byte N36 - .byte An3 - .byte W36 - .byte Fn3 - .byte W36 - .byte N24 - .byte An3 - .byte W24 - .byte TIE - .byte Gn3 - .byte W96 - .byte W72 - .byte EOT - .byte W24 - .byte W96 - .byte W96 - .byte VOICE, 0x3C - .byte PAN, 0x4A - .byte TIE - .byte Cn3 - .byte v100 - .byte W96 - .byte W72 - .byte EOT - .byte N12 - .byte W12 - .byte As2 - .byte W12 - .byte N96 - .byte Cs3 - .byte W96 - .byte Ds3 - .byte W96 - .byte TIE - .byte Cn3 - .byte W96 - .byte W72 - .byte EOT - .byte N12 - .byte W12 - .byte As2 - .byte W12 - .byte N96 - .byte Cs3 - .byte W96 - .byte Ds3 - .byte W96 - .byte TIE - .byte As2 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte EOT - .byte VOICE, 0x30 - .byte PAN, 0x54 - .byte N96 - .byte Gn2 - .byte W96 - .byte N48 - .byte Fn2 - .byte W48 - .byte Gn2 - .byte W48 - .byte N96 - .byte Cn2 - .byte W96 - .byte Gn2 - .byte W96 - .byte Gs2 - .byte W96 - .byte N48 - .byte Fn2 - .byte W48 - .byte Gs2 - .byte W48 - .byte N96 - .byte Gn2 - .byte W96 - .byte Cn3 - .byte W96 - .byte GOTO - .word mus_battle32_1_86BDC44 - .byte FINE - -mus_battle32_2: @ 86BDD8A - .byte KEYSH, 0x00 - .byte VOICE, 0x01 - .byte VOL, 0x50 - .byte LFOS, 0x12 - .byte PAN, 0x4A - .byte N06 - .byte Gn5 - .byte v080 - .byte W06 - .byte Gs5 - .byte W06 - .byte N12 - .byte Gn5 - .byte W12 - .byte N06 - .byte W06 - .byte Gs5 - .byte W06 - .byte N12 - .byte Gn5 - .byte W12 - .byte N06 - .byte W06 - .byte Gs5 - .byte W06 - .byte N12 - .byte Gn5 - .byte W12 - .byte N06 - .byte W06 - .byte Gs5 - .byte W06 - .byte N12 - .byte Gn5 - .byte W12 - .byte N06 - .byte W06 - .byte Gs5 - .byte W06 - .byte N12 - .byte Gn5 - .byte W12 - .byte N06 - .byte W06 - .byte Gs5 - .byte W06 - .byte N12 - .byte Gn5 - .byte W12 - .byte N06 - .byte W06 - .byte Gs5 - .byte W06 - .byte N12 - .byte Gn5 - .byte W12 - .byte N06 - .byte W06 - .byte Gs5 - .byte W06 - .byte N12 - .byte Gn5 - .byte W12 - .byte VOICE, 0x38 - .byte PAN, 0x40 - .byte N12 - .byte Cn4 - .byte v104 - .byte W36 - .byte Cs4 - .byte W36 - .byte Cn3 - .byte W24 - .byte Gn3 - .byte W36 - .byte Gs3 - .byte W36 - .byte N24 - .byte Cs3 - .byte W24 - .byte N12 - .byte Cn4 - .byte W36 - .byte Cs4 - .byte W36 - .byte Cn3 - .byte W24 - .byte Gn3 - .byte W36 - .byte Gs3 - .byte W36 - .byte N24 - .byte Cs4 - .byte W24 - .byte VOICE, 0x2D - .byte PAN, 0x40 - .byte N12 - .byte Cn5 - .byte v108 - .byte W36 - .byte Cs5 - .byte W36 - .byte Cn4 - .byte W24 - .byte Gn4 - .byte W36 - .byte Gs4 - .byte W36 - .byte N24 - .byte Cs4 - .byte W24 - .byte N12 - .byte Cn5 - .byte W36 - .byte Cs5 - .byte W36 - .byte N24 - .byte Gn4 - .byte W24 - .byte N12 - .byte Cn5 - .byte W36 - .byte Cs5 - .byte W36 - .byte N24 - .byte Ds5 - .byte W24 -mus_battle32_2_86BDE12: @ 86BDE12 - .byte VOICE, 0x30 - .byte PAN, 0x40 - .byte N48 - .byte Cn4 - .byte v100 - .byte W48 - .byte As3 - .byte W48 - .byte N36 - .byte Dn4 - .byte W36 - .byte N12 - .byte Gn3 - .byte W24 - .byte N12 - .byte W12 - .byte As3 - .byte W12 - .byte Dn4 - .byte W12 - .byte N72 - .byte En4 - .byte W72 - .byte N12 - .byte Dn4 - .byte W12 - .byte En4 - .byte W12 - .byte Fn4 - .byte W12 - .byte En4 - .byte W24 - .byte N60 - .byte Cn4 - .byte W60 - .byte PAN, 0x40 - .byte N48 - .byte As4 - .byte W48 - .byte An4 - .byte W48 - .byte N24 - .byte Gn4 - .byte W24 - .byte An4 - .byte W24 - .byte Gn4 - .byte W24 - .byte Fn4 - .byte W24 - .byte N72 - .byte En4 - .byte W72 - .byte N24 - .byte Cn4 - .byte W24 - .byte N92 - .byte Gn4 - .byte W96 - .byte N48 - .byte As4 - .byte W12 - .byte PAN, 0x42 - .byte W36 - .byte N48 - .byte An4 - .byte W48 - .byte N24 - .byte As4 - .byte W24 - .byte An4 - .byte W24 - .byte Dn5 - .byte W24 - .byte Fn5 - .byte W24 - .byte N72 - .byte En5 - .byte W72 - .byte N24 - .byte Dn5 - .byte W24 - .byte N92 - .byte Cn5 - .byte W96 - .byte VOICE, 0x38 - .byte PAN, 0x41 - .byte N48 - .byte Cn4 - .byte v104 - .byte W24 - .byte MOD, 0x06 - .byte W24 - .byte CnM2 - .byte N48 - .byte As3 - .byte W24 - .byte MOD, 0x06 - .byte W24 - .byte CnM2 - .byte N36 - .byte Dn4 - .byte W18 - .byte MOD, 0x06 - .byte W18 - .byte CnM2 - .byte N12 - .byte Gn3 - .byte W24 - .byte N12 - .byte W12 - .byte As3 - .byte W12 - .byte Dn4 - .byte W12 - .byte N72 - .byte En4 - .byte W36 - .byte MOD, 0x06 - .byte W36 - .byte CnM2 - .byte N12 - .byte Dn4 - .byte W12 - .byte En4 - .byte W12 - .byte Fn4 - .byte W12 - .byte En4 - .byte W24 - .byte N60 - .byte Cn4 - .byte W24 - .byte W03 - .byte MOD, 0x06 - .byte W32 - .byte W01 - .byte CnM2 - .byte N48 - .byte As4 - .byte v108 - .byte W24 - .byte MOD, 0x06 - .byte W24 - .byte CnM2 - .byte N48 - .byte An4 - .byte W24 - .byte MOD, 0x06 - .byte W24 - .byte CnM2 - .byte N24 - .byte Gn4 - .byte W24 - .byte An4 - .byte W24 - .byte Gn4 - .byte W24 - .byte Fn4 - .byte W24 - .byte N72 - .byte En4 - .byte W36 - .byte MOD, 0x06 - .byte W36 - .byte CnM2 - .byte N24 - .byte Cn4 - .byte W24 - .byte N56 - .byte Gn4 - .byte W30 - .byte MOD, 0x06 - .byte W03 - .byte VOL, 0x4C - .byte W06 - .byte Bn3 - .byte W06 - .byte En3 - .byte W03 - .byte Cs2 - .byte W03 - .byte An0 - .byte W03 - .byte FnM1 - .byte W03 - .byte MOD, 0x00 - .byte W03 - .byte VOICE, 0x30 - .byte PAN, 0x42 - .byte N12 - .byte Gn4 - .byte v092 - .byte W03 - .byte VOL, 0x50 - .byte W09 - .byte N12 - .byte Cn5 - .byte W24 - .byte N48 - .byte As4 - .byte W48 - .byte An4 - .byte W48 - .byte N24 - .byte As4 - .byte W24 - .byte An4 - .byte W24 - .byte Dn5 - .byte W24 - .byte Fn5 - .byte W24 - .byte N72 - .byte En5 - .byte W72 - .byte N24 - .byte Cn5 - .byte W24 - .byte N92 - .byte Gn5 - .byte W96 - .byte VOICE, 0x01 - .byte N36 - .byte Cn3 - .byte v108 - .byte W36 - .byte As2 - .byte W36 - .byte N24 - .byte Cn3 - .byte W24 - .byte N36 - .byte Dn3 - .byte W36 - .byte As2 - .byte W36 - .byte N24 - .byte Dn3 - .byte W24 - .byte TIE - .byte Cn3 - .byte W96 - .byte W72 - .byte EOT - .byte W24 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte VOICE, 0x3C - .byte PAN, 0x40 - .byte N72 - .byte Cn4 - .byte v100 - .byte W72 - .byte N12 - .byte W12 - .byte As3 - .byte W12 - .byte N96 - .byte Cs4 - .byte W96 - .byte Ds4 - .byte W96 - .byte TIE - .byte Fn4 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte EOT - .byte VOICE, 0x30 - .byte PAN, 0x42 - .byte N96 - .byte Cn3 - .byte W96 - .byte N42 - .byte As2 - .byte W42 - .byte N06 - .byte Cn3 - .byte W06 - .byte N48 - .byte Dn3 - .byte W48 - .byte N96 - .byte Gn2 - .byte W96 - .byte Cn3 - .byte W96 - .byte Cs3 - .byte W96 - .byte N48 - .byte As2 - .byte W48 - .byte N36 - .byte Cs3 - .byte W36 - .byte N12 - .byte En3 - .byte W12 - .byte N96 - .byte Cn3 - .byte W96 - .byte En3 - .byte W96 - .byte GOTO - .word mus_battle32_2_86BDE12 - .byte FINE - -mus_battle32_3: @ 86BDF69 - .byte KEYSH, 0x00 - .byte VOICE, 0x21 - .byte VOL, 0x50 - .byte PAN, 0x40 - .byte N24 - .byte Cn2 - .byte v108 - .byte W24 - .byte Cn1 - .byte W24 - .byte As1 - .byte W24 - .byte Cs1 - .byte W24 - .byte Gs1 - .byte W24 - .byte N12 - .byte As1 - .byte W12 - .byte Gs1 - .byte W12 - .byte Gn1 - .byte W12 - .byte Fn1 - .byte W12 - .byte Ds1 - .byte W12 - .byte Cs1 - .byte W12 -mus_battle32_3_86BDF8A: @ 86BDF8A - .byte N12 - .byte Cn1 - .byte v108 - .byte W12 - .byte Fs1 - .byte W12 - .byte Fn1 - .byte W12 - .byte Ds1 - .byte W12 - .byte Fn1 - .byte W12 - .byte Ds1 - .byte W12 - .byte N12 - .byte W12 - .byte Fn1 - .byte W12 - .byte PEND -mus_battle32_3_86BDF9D: @ 86BDF9D - .byte N12 - .byte Cn1 - .byte v108 - .byte W12 - .byte Fs1 - .byte W12 - .byte Fn1 - .byte W12 - .byte Ds1 - .byte W12 - .byte Fn1 - .byte W12 - .byte Ds1 - .byte W12 - .byte N12 - .byte W12 - .byte Cs1 - .byte W12 - .byte PEND - .byte PATT - .word mus_battle32_3_86BDF8A - .byte PATT - .word mus_battle32_3_86BDF9D - .byte PATT - .word mus_battle32_3_86BDF8A - .byte PATT - .word mus_battle32_3_86BDF9D - .byte PATT - .word mus_battle32_3_86BDF8A - .byte PATT - .word mus_battle32_3_86BDF9D -mus_battle32_3_86BDFCE: @ 86BDFCE - .byte N12 - .byte Cn1 - .byte v108 - .byte W12 - .byte Gn1 - .byte W12 - .byte Cn1 - .byte W12 - .byte Gn1 - .byte W12 - .byte Cn1 - .byte W12 - .byte Gn1 - .byte W12 - .byte Cn1 - .byte W12 - .byte Gn1 - .byte W12 - .byte PEND - .byte Cn1 - .byte W12 - .byte Gn1 - .byte W12 - .byte Cn1 - .byte W12 - .byte Gn1 - .byte W12 - .byte Cn1 - .byte W12 - .byte Gn1 - .byte W12 - .byte Cn1 - .byte W12 - .byte Dn1 - .byte W12 - .byte PATT - .word mus_battle32_3_86BDFCE - .byte N12 - .byte Cn1 - .byte v108 - .byte W12 - .byte Gn1 - .byte W12 - .byte Cn1 - .byte W12 - .byte Gn1 - .byte W12 - .byte N12 - .byte W12 - .byte Cn1 - .byte W12 - .byte Dn1 - .byte W12 - .byte Cn1 - .byte W12 -mus_battle32_3_86BE008: @ 86BE008 - .byte N12 - .byte As0 - .byte v108 - .byte W12 - .byte Fn1 - .byte W12 - .byte As0 - .byte W12 - .byte Fn1 - .byte W12 - .byte As0 - .byte W12 - .byte Fn1 - .byte W12 - .byte As0 - .byte W12 - .byte Fn1 - .byte W12 - .byte PEND -mus_battle32_3_86BE01B: @ 86BE01B - .byte N12 - .byte As0 - .byte v108 - .byte W12 - .byte Fn1 - .byte W12 - .byte As0 - .byte W12 - .byte Fn1 - .byte W12 - .byte As0 - .byte W12 - .byte Fn1 - .byte W12 - .byte As0 - .byte W12 - .byte Bn0 - .byte W12 - .byte PEND - .byte PATT - .word mus_battle32_3_86BDFCE -mus_battle32_3_86BE033: @ 86BE033 - .byte N12 - .byte Cn1 - .byte v108 - .byte W12 - .byte Gn1 - .byte W12 - .byte Cn1 - .byte W12 - .byte Gn1 - .byte W12 - .byte Cn1 - .byte W12 - .byte Gn1 - .byte W12 - .byte En1 - .byte W12 - .byte Gn1 - .byte W12 - .byte PEND - .byte PATT - .word mus_battle32_3_86BE008 - .byte PATT - .word mus_battle32_3_86BE008 - .byte PATT - .word mus_battle32_3_86BDFCE -mus_battle32_3_86BE055: @ 86BE055 - .byte N12 - .byte Cn1 - .byte v108 - .byte W12 - .byte Gn1 - .byte W12 - .byte Cn1 - .byte W12 - .byte Gn1 - .byte W12 - .byte Cn1 - .byte W12 - .byte Gn1 - .byte W12 - .byte Cn2 - .byte W12 - .byte Gn1 - .byte W12 - .byte PEND - .byte PATT - .word mus_battle32_3_86BDFCE - .byte PATT - .word mus_battle32_3_86BDFCE - .byte PATT - .word mus_battle32_3_86BDFCE - .byte N12 - .byte Cn1 - .byte v108 - .byte W12 - .byte Gn1 - .byte W24 - .byte N12 - .byte W12 - .byte Cn2 - .byte W12 - .byte Cn1 - .byte W12 - .byte Dn1 - .byte W12 - .byte Cn1 - .byte W12 - .byte PATT - .word mus_battle32_3_86BE008 - .byte PATT - .word mus_battle32_3_86BE01B - .byte PATT - .word mus_battle32_3_86BDFCE - .byte N12 - .byte Cn1 - .byte v108 - .byte W12 - .byte Gn1 - .byte W12 - .byte Cn1 - .byte W12 - .byte Gn1 - .byte W12 - .byte Cn1 - .byte W12 - .byte Gn1 - .byte W12 - .byte En1 - .byte W12 - .byte Cn1 - .byte W12 - .byte PATT - .word mus_battle32_3_86BE008 - .byte PATT - .word mus_battle32_3_86BE008 - .byte PATT - .word mus_battle32_3_86BDFCE - .byte PATT - .word mus_battle32_3_86BE033 - .byte PATT - .word mus_battle32_3_86BDFCE - .byte PATT - .word mus_battle32_3_86BDFCE - .byte PATT - .word mus_battle32_3_86BDFCE - .byte PATT - .word mus_battle32_3_86BDFCE -mus_battle32_3_86BE0D0: @ 86BE0D0 - .byte N12 - .byte Cs1 - .byte v108 - .byte W12 - .byte Gs1 - .byte W12 - .byte Cs1 - .byte W12 - .byte Gs1 - .byte W12 - .byte Cs1 - .byte W12 - .byte Gs1 - .byte W12 - .byte Cs1 - .byte W12 - .byte Gs1 - .byte W12 - .byte PEND -mus_battle32_3_86BE0E3: @ 86BE0E3 - .byte N12 - .byte Ds1 - .byte v108 - .byte W12 - .byte As1 - .byte W12 - .byte Ds1 - .byte W12 - .byte As1 - .byte W12 - .byte Ds1 - .byte W12 - .byte As1 - .byte W12 - .byte Ds1 - .byte W12 - .byte As1 - .byte W12 - .byte PEND - .byte PATT - .word mus_battle32_3_86BDFCE - .byte PATT - .word mus_battle32_3_86BDFCE - .byte PATT - .word mus_battle32_3_86BE0D0 - .byte PATT - .word mus_battle32_3_86BE0E3 - .byte PATT - .word mus_battle32_3_86BDFCE - .byte PATT - .word mus_battle32_3_86BDFCE - .byte PATT - .word mus_battle32_3_86BE0D0 - .byte PATT - .word mus_battle32_3_86BE0E3 - .byte PATT - .word mus_battle32_3_86BE008 - .byte PATT - .word mus_battle32_3_86BE008 - .byte PATT - .word mus_battle32_3_86BE008 - .byte PATT - .word mus_battle32_3_86BE008 - .byte PATT - .word mus_battle32_3_86BE008 - .byte PATT - .word mus_battle32_3_86BE008 - .byte PATT - .word mus_battle32_3_86BDFCE - .byte PATT - .word mus_battle32_3_86BDFCE - .byte PATT - .word mus_battle32_3_86BDFCE - .byte PATT - .word mus_battle32_3_86BDFCE - .byte PATT - .word mus_battle32_3_86BE008 - .byte PATT - .word mus_battle32_3_86BE008 - .byte PATT - .word mus_battle32_3_86BDFCE - .byte PATT - .word mus_battle32_3_86BE055 - .byte GOTO - .word mus_battle32_3_86BDFCE - .byte FINE - -mus_battle32_4: @ 86BE16A - .byte KEYSH, 0x00 - .byte VOICE, 0x50 - .byte LFOS, 0x12 - .byte VOL, 0x50 - .byte XCMD, 0x08 - .byte AsM2 - .byte v009 - .byte GsM2 - .byte PAN, 0x10 - .byte W12 - .byte N06 - .byte Cn6 - .byte v052 - .byte W12 - .byte Bn5 - .byte W12 - .byte Cn6 - .byte W24 - .byte N06 - .byte W24 - .byte N06 - .byte W12 - .byte W12 - .byte N06 - .byte W12 - .byte Bn5 - .byte W12 - .byte Cn6 - .byte W24 - .byte N06 - .byte W24 - .byte N06 - .byte W12 - .byte VOICE, 0x52 - .byte PAN, 0x70 - .byte N12 - .byte Cn3 - .byte v060 - .byte W12 - .byte VOICE, 0x53 - .byte N12 - .byte W12 - .byte MOD, 0x06 - .byte N12 - .byte W12 - .byte N12 - .byte W12 - .byte VOICE, 0x52 - .byte MOD, 0x00 - .byte N12 - .byte Cn2 - .byte W12 - .byte VOICE, 0x53 - .byte N12 - .byte W12 - .byte MOD, 0x06 - .byte N12 - .byte W12 - .byte N12 - .byte W12 - .byte VOICE, 0x52 - .byte MOD, 0x00 - .byte N12 - .byte Gn2 - .byte W12 - .byte VOICE, 0x53 - .byte N12 - .byte W12 - .byte MOD, 0x06 - .byte N12 - .byte W12 - .byte N12 - .byte W12 - .byte VOICE, 0x52 - .byte MOD, 0x00 - .byte N12 - .byte Cs2 - .byte W12 - .byte VOICE, 0x53 - .byte N12 - .byte W12 - .byte MOD, 0x06 - .byte N12 - .byte W12 - .byte N12 - .byte W12 - .byte VOICE, 0x52 - .byte MOD, 0x00 - .byte N12 - .byte Cn3 - .byte W12 - .byte VOICE, 0x53 - .byte N12 - .byte W12 - .byte MOD, 0x06 - .byte N12 - .byte W12 - .byte N12 - .byte W12 - .byte VOICE, 0x52 - .byte MOD, 0x00 - .byte N12 - .byte Gn3 - .byte W12 - .byte VOICE, 0x53 - .byte N12 - .byte W12 - .byte MOD, 0x06 - .byte N12 - .byte W12 - .byte N12 - .byte W12 - .byte VOICE, 0x52 - .byte MOD, 0x00 - .byte N12 - .byte Cn4 - .byte W12 - .byte VOICE, 0x53 - .byte N12 - .byte W12 - .byte MOD, 0x06 - .byte N12 - .byte W12 - .byte N12 - .byte W12 - .byte VOICE, 0x52 - .byte MOD, 0x00 - .byte N12 - .byte Cs3 - .byte W12 - .byte VOICE, 0x53 - .byte N12 - .byte W12 - .byte MOD, 0x06 - .byte N12 - .byte W12 - .byte N12 - .byte W12 - .byte VOICE, 0x04 - .byte PAN, 0x10 - .byte MOD, 0x00 - .byte N12 - .byte Gn4 - .byte v040 - .byte W36 - .byte Gs4 - .byte W36 - .byte Gn3 - .byte W24 - .byte En4 - .byte W36 - .byte Fn4 - .byte W36 - .byte N24 - .byte Gn3 - .byte W24 - .byte N12 - .byte Gn4 - .byte W36 - .byte Gs4 - .byte W36 - .byte N24 - .byte Cn4 - .byte W24 - .byte N12 - .byte Gn4 - .byte W36 - .byte Gs4 - .byte W36 - .byte N24 - .byte W24 -mus_battle32_4_86BE23E: @ 86BE23E - .byte VOICE, 0x54 - .byte PAN, 0x40 - .byte N12 - .byte En4 - .byte v040 - .byte W36 - .byte Fn4 - .byte W36 - .byte Gn4 - .byte W24 - .byte W60 - .byte Gn4 - .byte v052 - .byte W12 - .byte As4 - .byte W12 - .byte Dn5 - .byte W12 - .byte N36 - .byte En5 - .byte W18 - .byte MOD, 0x06 - .byte W18 - .byte CnM2 - .byte N36 - .byte Cn5 - .byte W18 - .byte MOD, 0x06 - .byte W18 - .byte CnM2 - .byte N12 - .byte Dn5 - .byte W12 - .byte En5 - .byte W12 - .byte Fn5 - .byte W12 - .byte En5 - .byte W24 - .byte N60 - .byte Cn5 - .byte W24 - .byte MOD, 0x07 - .byte W36 -mus_battle32_4_86BE26F: @ 86BE26F - .byte VOICE, 0x50 - .byte MOD, 0x00 - .byte N48 - .byte As3 - .byte v060 - .byte W48 - .byte An3 - .byte W48 - .byte PEND -mus_battle32_4_86BE27A: @ 86BE27A - .byte N24 - .byte Gn3 - .byte v060 - .byte W24 - .byte An3 - .byte W24 - .byte Gn3 - .byte W24 - .byte Fn3 - .byte W24 - .byte PEND -mus_battle32_4_86BE285: @ 86BE285 - .byte N72 - .byte En3 - .byte v060 - .byte W72 - .byte N24 - .byte Cn3 - .byte W24 - .byte PEND -mus_battle32_4_86BE28D: @ 86BE28D - .byte N60 - .byte Gn3 - .byte v060 - .byte W60 - .byte VOICE, 0x06 - .byte N12 - .byte En3 - .byte v072 - .byte W12 - .byte Cn3 - .byte W12 - .byte Gn2 - .byte W12 - .byte PEND - .byte As2 - .byte W12 - .byte Fn2 - .byte W12 - .byte As2 - .byte W12 - .byte Dn3 - .byte W12 - .byte PAN, 0x11 - .byte N12 - .byte Fn3 - .byte W12 - .byte An3 - .byte W12 - .byte Fn3 - .byte W12 - .byte Dn3 - .byte W12 - .byte PAN, 0x40 - .byte N12 - .byte As2 - .byte W12 - .byte Fn2 - .byte W12 - .byte As2 - .byte W12 - .byte Dn3 - .byte W12 - .byte PAN, 0x70 - .byte N12 - .byte Fn3 - .byte W12 - .byte An3 - .byte W12 - .byte Fn3 - .byte W12 - .byte Dn3 - .byte W12 - .byte PAN, 0x40 - .byte N12 - .byte Cn3 - .byte W12 - .byte Gn2 - .byte W12 - .byte Cn3 - .byte W12 - .byte En3 - .byte W12 - .byte PAN, 0x0F - .byte N12 - .byte Gn3 - .byte W12 - .byte Cn4 - .byte W12 - .byte Gn3 - .byte W12 - .byte En3 - .byte W12 - .byte PAN, 0x40 - .byte N12 - .byte Cn3 - .byte W12 - .byte Gn2 - .byte W12 - .byte Cn3 - .byte W12 - .byte En3 - .byte W12 - .byte PAN, 0x73 - .byte N12 - .byte Gn3 - .byte W12 - .byte Cn4 - .byte W12 - .byte Gn3 - .byte W12 - .byte En3 - .byte W12 - .byte VOICE, 0x54 - .byte PAN, 0x40 - .byte N12 - .byte Cn5 - .byte v040 - .byte W12 - .byte Gn4 - .byte W12 - .byte Cn5 - .byte W12 - .byte N24 - .byte Fn5 - .byte W12 - .byte MOD, 0x06 - .byte W12 - .byte CnM2 - .byte N12 - .byte En5 - .byte W12 - .byte Dn5 - .byte W12 - .byte Cn5 - .byte W12 - .byte As4 - .byte W12 - .byte Fn4 - .byte W12 - .byte As4 - .byte W12 - .byte N24 - .byte Dn5 - .byte W12 - .byte MOD, 0x06 - .byte W12 - .byte CnM2 - .byte N12 - .byte Cn5 - .byte W12 - .byte As4 - .byte W12 - .byte Dn5 - .byte W12 - .byte N36 - .byte En5 - .byte W21 - .byte MOD, 0x06 - .byte W15 - .byte CnM2 - .byte N36 - .byte Cn5 - .byte W18 - .byte MOD, 0x06 - .byte W18 - .byte CnM2 - .byte N12 - .byte Dn5 - .byte W12 - .byte En5 - .byte W12 - .byte Fn5 - .byte W12 - .byte En5 - .byte W24 - .byte N60 - .byte Cn5 - .byte W24 - .byte W03 - .byte MOD, 0x06 - .byte W32 - .byte W01 - .byte PATT - .word mus_battle32_4_86BE26F - .byte PATT - .word mus_battle32_4_86BE27A - .byte PATT - .word mus_battle32_4_86BE285 - .byte PATT - .word mus_battle32_4_86BE28D - .byte N12 - .byte Fn2 - .byte v072 - .byte W12 - .byte As2 - .byte W12 - .byte Dn3 - .byte W12 - .byte Fn3 - .byte W12 - .byte PAN, 0x11 - .byte N12 - .byte An3 - .byte W12 - .byte Fn3 - .byte W12 - .byte Dn3 - .byte W12 - .byte As2 - .byte W12 - .byte PAN, 0x40 - .byte N12 - .byte Fn2 - .byte W12 - .byte As2 - .byte W12 - .byte Dn3 - .byte W12 - .byte Fn3 - .byte W12 - .byte PAN, 0x70 - .byte N12 - .byte An3 - .byte W12 - .byte Fn3 - .byte W12 - .byte Dn3 - .byte W12 - .byte As2 - .byte W12 - .byte PAN, 0x40 - .byte N12 - .byte Gn2 - .byte W12 - .byte Cn3 - .byte W12 - .byte En3 - .byte W12 - .byte Gn3 - .byte W12 - .byte PAN, 0x0F - .byte N12 - .byte Cn4 - .byte W12 - .byte Gn3 - .byte W12 - .byte En3 - .byte W12 - .byte Cn3 - .byte W12 - .byte PAN, 0x40 - .byte N12 - .byte Gn2 - .byte W12 - .byte Cn3 - .byte W12 - .byte En3 - .byte W12 - .byte Gn3 - .byte W12 - .byte PAN, 0x73 - .byte N12 - .byte Cn4 - .byte W12 - .byte Gn3 - .byte W12 - .byte En3 - .byte W12 - .byte Cn3 - .byte W12 - .byte PAN, 0x40 - .byte W96 - .byte W96 - .byte W96 - .byte VOICE, 0x54 - .byte N72 - .byte Cn2 - .byte W72 - .byte N12 - .byte W12 - .byte As1 - .byte W12 - .byte N96 - .byte Cs2 - .byte W96 - .byte Ds2 - .byte W96 - .byte TIE - .byte Cn2 - .byte W96 - .byte W72 - .byte EOT - .byte N12 - .byte W12 - .byte As1 - .byte W12 - .byte N96 - .byte Cs2 - .byte W96 - .byte Ds2 - .byte W96 - .byte TIE - .byte Cn2 - .byte W96 - .byte W72 - .byte EOT - .byte N12 - .byte W12 - .byte As1 - .byte W12 - .byte N96 - .byte Cs2 - .byte W96 - .byte Ds2 - .byte W96 - .byte TIE - .byte Fn2 - .byte W96 - .byte W96 - .byte EOT - .byte VOICE, 0x56 - .byte N12 - .byte W12 - .byte N12 - .byte W12 - .byte N12 - .byte W12 - .byte N12 - .byte W12 - .byte N12 - .byte W12 - .byte N12 - .byte W12 - .byte N12 - .byte W12 - .byte N12 - .byte W12 -mus_battle32_4_86BE3EF: @ 86BE3EF - .byte N12 - .byte Fn2 - .byte v072 - .byte W12 - .byte N12 - .byte W12 - .byte N12 - .byte W12 - .byte N12 - .byte W12 - .byte N12 - .byte W12 - .byte N12 - .byte W12 - .byte N12 - .byte W12 - .byte N12 - .byte W12 - .byte PEND - .byte PATT - .word mus_battle32_4_86BE3EF - .byte PATT - .word mus_battle32_4_86BE3EF - .byte VOICE, 0x06 - .byte N12 - .byte Gn3 - .byte v060 - .byte W12 - .byte Cn3 - .byte W12 - .byte Gn3 - .byte W12 - .byte Cn4 - .byte W12 - .byte PAN, 0x10 - .byte N12 - .byte Gn4 - .byte W12 - .byte Cn4 - .byte W12 - .byte Gn3 - .byte W12 - .byte Cn4 - .byte W12 - .byte PAN, 0x40 - .byte N12 - .byte Gn3 - .byte W12 - .byte Cn3 - .byte W12 - .byte Gn3 - .byte W12 - .byte Cn4 - .byte W12 - .byte PAN, 0x70 - .byte N12 - .byte Gn4 - .byte W12 - .byte Cn4 - .byte W12 - .byte Gn3 - .byte W12 - .byte Cn4 - .byte W12 - .byte VOICE, 0x07 - .byte PAN, 0x40 - .byte N12 - .byte Gn3 - .byte W12 - .byte Cn3 - .byte W12 - .byte Gn3 - .byte W12 - .byte Cn4 - .byte W12 - .byte PAN, 0x10 - .byte N12 - .byte En4 - .byte W12 - .byte Cn4 - .byte W12 - .byte Gn3 - .byte W12 - .byte Cn4 - .byte W12 -mus_battle32_4_86BE451: @ 86BE451 - .byte PAN, 0x40 - .byte N12 - .byte Gn3 - .byte v060 - .byte W12 - .byte Cn3 - .byte W12 - .byte Gn3 - .byte W12 - .byte Cn4 - .byte W12 - .byte PAN, 0x70 - .byte N12 - .byte En4 - .byte W12 - .byte Cn4 - .byte W12 - .byte Gn3 - .byte W12 - .byte Cn4 - .byte W12 - .byte PEND - .byte VOICE, 0x06 - .byte PAN, 0x40 - .byte N12 - .byte Gs3 - .byte W12 - .byte Cs3 - .byte W12 - .byte Gs3 - .byte W12 - .byte Cs4 - .byte W12 - .byte PAN, 0x10 - .byte N12 - .byte Gs4 - .byte W12 - .byte Cs4 - .byte W12 - .byte Gs3 - .byte W12 - .byte Cs4 - .byte W12 - .byte PAN, 0x40 - .byte N12 - .byte Gs3 - .byte W12 - .byte Cs3 - .byte W12 - .byte Gs3 - .byte W12 - .byte Cs4 - .byte W12 - .byte PAN, 0x70 - .byte N12 - .byte Gs4 - .byte W12 - .byte Cs4 - .byte W12 - .byte Gs3 - .byte W12 - .byte Cs4 - .byte W12 - .byte VOICE, 0x07 - .byte PAN, 0x40 - .byte N12 - .byte Gn3 - .byte W12 - .byte Cn3 - .byte W12 - .byte Gn3 - .byte W12 - .byte Cn4 - .byte W12 - .byte PAN, 0x11 - .byte N12 - .byte En4 - .byte W12 - .byte Cn4 - .byte W12 - .byte Gn3 - .byte W12 - .byte Cn4 - .byte W12 - .byte PATT - .word mus_battle32_4_86BE451 - .byte GOTO - .word mus_battle32_4_86BE23E - .byte FINE - -mus_battle32_5: @ 86BE4BA - .byte KEYSH, 0x00 - .byte VOICE, 0x52 - .byte LFOS, 0x12 - .byte XCMD, 0x08 - .byte AsM2 - .byte v009 - .byte GsM2 - .byte VOL, 0x50 - .byte PAN, 0x6E - .byte BEND, 0x3E - .byte N06 - .byte Gn3 - .byte v052 - .byte W06 - .byte Cn4 - .byte W06 - .byte Gn4 - .byte W12 - .byte Gn3 - .byte W06 - .byte Cn4 - .byte W06 - .byte Gn4 - .byte W12 - .byte Gn3 - .byte W06 - .byte Cn4 - .byte W06 - .byte Gn4 - .byte W12 - .byte Gn3 - .byte W06 - .byte Cn4 - .byte W06 - .byte Gn4 - .byte W12 - .byte Fn3 - .byte W06 - .byte As3 - .byte W06 - .byte Fn4 - .byte W12 - .byte Fn3 - .byte W06 - .byte As3 - .byte W06 - .byte Fn4 - .byte W12 - .byte Fn3 - .byte W06 - .byte As3 - .byte W06 - .byte Fn4 - .byte W12 - .byte As3 - .byte W06 - .byte Fn4 - .byte W12 - .byte Fs4 - .byte W06 - .byte VOICE, 0x50 - .byte PAN, 0x11 - .byte N48 - .byte Cn4 - .byte W24 - .byte MOD, 0x06 - .byte W24 - .byte CnM2 - .byte N48 - .byte Cn3 - .byte W24 - .byte MOD, 0x06 - .byte W24 - .byte CnM2 - .byte N48 - .byte Gn3 - .byte W24 - .byte MOD, 0x06 - .byte W24 - .byte CnM2 - .byte N48 - .byte Cs3 - .byte W24 - .byte MOD, 0x06 - .byte W24 - .byte CnM2 - .byte W06 - .byte N42 - .byte Cn4 - .byte W18 - .byte MOD, 0x06 - .byte W24 - .byte CnM2 - .byte N48 - .byte Gn4 - .byte W24 - .byte MOD, 0x06 - .byte W24 - .byte CnM2 - .byte N48 - .byte Cn5 - .byte W24 - .byte MOD, 0x06 - .byte W24 - .byte CnM2 - .byte N48 - .byte Cs4 - .byte W24 - .byte MOD, 0x06 - .byte W24 - .byte VOICE, 0x05 - .byte PAN, 0x70 - .byte MOD, 0x00 - .byte N12 - .byte Gn3 - .byte v040 - .byte W36 - .byte Gs3 - .byte W36 - .byte Gn2 - .byte W24 - .byte En3 - .byte W36 - .byte Fn3 - .byte W36 - .byte Gn2 - .byte W24 - .byte Gn3 - .byte W36 - .byte Gs3 - .byte W36 - .byte N24 - .byte Gn3 - .byte W24 - .byte N12 - .byte W36 - .byte Gs3 - .byte W36 - .byte N24 - .byte Ds3 - .byte W24 -mus_battle32_5_86BE55B: @ 86BE55B - .byte W96 - .byte W96 - .byte W96 - .byte W36 - .byte VOICE, 0x52 - .byte PAN, 0x40 - .byte N12 - .byte En3 - .byte v060 - .byte W12 - .byte VOICE, 0x53 - .byte N12 - .byte W12 - .byte N12 - .byte W12 - .byte N12 - .byte W12 - .byte N12 - .byte W12 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W36 - .byte VOICE, 0x52 - .byte N12 - .byte W12 - .byte VOICE, 0x53 - .byte N12 - .byte W12 - .byte N12 - .byte W12 - .byte N12 - .byte W12 - .byte N12 - .byte W12 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte VOICE, 0x50 - .byte BEND, 0x3E - .byte N09 - .byte As3 - .byte v072 - .byte W12 - .byte N09 - .byte W12 - .byte N32 - .byte W36 - .byte N09 - .byte W12 - .byte N09 - .byte W12 - .byte N09 - .byte W12 - .byte Fn3 - .byte W12 - .byte N09 - .byte W12 - .byte N32 - .byte W36 - .byte N09 - .byte W12 - .byte N09 - .byte W12 - .byte N09 - .byte W12 - .byte Ds3 - .byte W12 - .byte N09 - .byte W12 - .byte N32 - .byte W36 - .byte N09 - .byte W12 - .byte N09 - .byte W12 - .byte N09 - .byte W12 - .byte Dn3 - .byte W12 - .byte N09 - .byte W12 - .byte N32 - .byte W36 - .byte N09 - .byte W12 - .byte N09 - .byte W12 - .byte N09 - .byte W12 - .byte VOICE, 0x05 - .byte N09 - .byte Cn2 - .byte v060 - .byte W12 - .byte N09 - .byte W12 - .byte N32 - .byte W36 - .byte N09 - .byte W12 - .byte N09 - .byte W12 - .byte N09 - .byte W12 - .byte N09 - .byte W12 - .byte N09 - .byte W12 - .byte N32 - .byte W36 - .byte N09 - .byte W12 - .byte N09 - .byte W12 - .byte N09 - .byte W12 -mus_battle32_5_86BE5F5: @ 86BE5F5 - .byte VOICE, 0x04 - .byte N09 - .byte Cn4 - .byte v060 - .byte W12 - .byte N09 - .byte W12 - .byte N32 - .byte W36 - .byte N09 - .byte W12 - .byte N09 - .byte W12 - .byte N09 - .byte W12 - .byte PEND -mus_battle32_5_86BE606: @ 86BE606 - .byte N09 - .byte Cn4 - .byte v060 - .byte W12 - .byte N09 - .byte W12 - .byte N32 - .byte W36 - .byte N09 - .byte W12 - .byte N09 - .byte W12 - .byte N09 - .byte W12 - .byte PEND - .byte VOICE, 0x05 - .byte N09 - .byte Cs2 - .byte W12 - .byte N09 - .byte W12 - .byte N32 - .byte W36 - .byte N09 - .byte W12 - .byte N09 - .byte W12 - .byte N09 - .byte W12 - .byte N09 - .byte W12 - .byte N09 - .byte W12 - .byte N32 - .byte W36 - .byte N09 - .byte W12 - .byte N09 - .byte W12 - .byte N09 - .byte W12 - .byte PATT - .word mus_battle32_5_86BE5F5 - .byte PATT - .word mus_battle32_5_86BE606 - .byte GOTO - .word mus_battle32_5_86BE55B - .byte FINE - -mus_battle32_6: @ 86BE640 - .byte KEYSH, 0x00 - .byte VOICE, 0x5A - .byte VOL, 0x50 - .byte W24 - .byte N06 - .byte Gn2 - .byte v080 - .byte W06 - .byte Gs2 - .byte W06 - .byte An2 - .byte W06 - .byte As2 - .byte W06 - .byte Bn2 - .byte W06 - .byte Cn3 - .byte W06 - .byte Cs3 - .byte W06 - .byte Dn3 - .byte W06 - .byte Cn2 - .byte W06 - .byte Cs2 - .byte W06 - .byte Dn2 - .byte W06 - .byte Ds2 - .byte W06 - .byte En2 - .byte W06 - .byte Fn2 - .byte W06 - .byte Fs2 - .byte W06 - .byte Gn2 - .byte W06 - .byte Gs2 - .byte W06 - .byte An2 - .byte W06 - .byte As2 - .byte W06 - .byte Bn2 - .byte W06 - .byte Cn3 - .byte W06 - .byte Cs3 - .byte W06 - .byte Dn3 - .byte W06 - .byte Ds3 - .byte W06 - .byte En3 - .byte W06 - .byte Fn3 - .byte W06 - .byte Fs3 - .byte W06 - .byte Gn3 - .byte W06 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte VOICE, 0x51 - .byte N48 - .byte Cn3 - .byte v064 - .byte W48 - .byte Cn2 - .byte W48 - .byte Gn2 - .byte W48 - .byte Cs2 - .byte W48 - .byte Cn3 - .byte W48 - .byte Cn2 - .byte W48 - .byte Cs3 - .byte W48 - .byte Ds2 - .byte W48 -mus_battle32_6_86BE699: @ 86BE699 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W96 -mus_battle32_6_86BE6A1: @ 86BE6A1 - .byte N48 - .byte Fn4 - .byte v064 - .byte W48 - .byte En4 - .byte W48 - .byte PEND -mus_battle32_6_86BE6A8: @ 86BE6A8 - .byte N24 - .byte Fn4 - .byte v064 - .byte W24 - .byte En4 - .byte W24 - .byte An4 - .byte W24 - .byte Dn5 - .byte W24 - .byte PEND - .byte N72 - .byte Cn5 - .byte W72 - .byte N24 - .byte An4 - .byte W24 - .byte N96 - .byte Gn4 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W60 - .byte N12 - .byte Cn4 - .byte W12 - .byte Gn4 - .byte W24 - .byte PATT - .word mus_battle32_6_86BE6A1 - .byte PATT - .word mus_battle32_6_86BE6A8 - .byte N72 - .byte Cn5 - .byte v064 - .byte W72 - .byte N24 - .byte En4 - .byte W24 - .byte N92 - .byte Cn5 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte N72 - .byte Cn1 - .byte W72 - .byte N12 - .byte W12 - .byte As0 - .byte W12 - .byte N96 - .byte Cs1 - .byte W96 - .byte Ds1 - .byte W96 - .byte TIE - .byte Cn1 - .byte W96 - .byte W72 - .byte EOT - .byte N12 - .byte W12 - .byte As0 - .byte W12 - .byte N96 - .byte Cs1 - .byte W96 - .byte Ds1 - .byte W96 - .byte Cn1 - .byte W96 - .byte N72 - .byte Gn2 - .byte W72 - .byte N12 - .byte W12 - .byte Fn2 - .byte W12 - .byte N96 - .byte Gs2 - .byte W96 - .byte As2 - .byte W96 - .byte TIE - .byte Fn3 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte EOT - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte GOTO - .word mus_battle32_6_86BE699 - .byte FINE - -mus_battle32_7: @ 86BE71F - .byte KEYSH, 0x00 - .byte VOICE, 0x00 - .byte VOL, 0x50 - .byte PAN, 0x40 - .byte W96 - .byte W84 - .byte N12 - .byte Dn1 - .byte v112 - .byte W12 -mus_battle32_7_86BE72D: @ 86BE72D - .byte W24 - .byte N12 - .byte Dn1 - .byte v112 - .byte W48 - .byte N12 - .byte W24 - .byte PEND - .byte PATT - .word mus_battle32_7_86BE72D - .byte PATT - .word mus_battle32_7_86BE72D - .byte PATT - .word mus_battle32_7_86BE72D - .byte PATT - .word mus_battle32_7_86BE72D - .byte PATT - .word mus_battle32_7_86BE72D - .byte PATT - .word mus_battle32_7_86BE72D -mus_battle32_7_86BE753: @ 86BE753 - .byte W24 - .byte N12 - .byte Dn1 - .byte v112 - .byte W48 - .byte N12 - .byte W12 - .byte N12 - .byte W12 - .byte PEND -mus_battle32_7_86BE75D: @ 86BE75D - .byte PATT - .word mus_battle32_7_86BE72D - .byte PATT - .word mus_battle32_7_86BE72D - .byte PATT - .word mus_battle32_7_86BE72D - .byte PATT - .word mus_battle32_7_86BE72D - .byte PATT - .word mus_battle32_7_86BE72D - .byte PATT - .word mus_battle32_7_86BE72D - .byte PATT - .word mus_battle32_7_86BE72D - .byte PATT - .word mus_battle32_7_86BE72D - .byte PATT - .word mus_battle32_7_86BE72D - .byte PATT - .word mus_battle32_7_86BE72D - .byte PATT - .word mus_battle32_7_86BE72D - .byte PATT - .word mus_battle32_7_86BE753 - .byte PATT - .word mus_battle32_7_86BE72D - .byte PATT - .word mus_battle32_7_86BE72D - .byte PATT - .word mus_battle32_7_86BE72D - .byte PATT - .word mus_battle32_7_86BE72D - .byte PATT - .word mus_battle32_7_86BE72D - .byte PATT - .word mus_battle32_7_86BE72D - .byte PATT - .word mus_battle32_7_86BE72D - .byte PATT - .word mus_battle32_7_86BE72D - .byte PATT - .word mus_battle32_7_86BE72D - .byte PATT - .word mus_battle32_7_86BE72D - .byte PATT - .word mus_battle32_7_86BE72D - .byte PATT - .word mus_battle32_7_86BE753 - .byte PATT - .word mus_battle32_7_86BE72D - .byte PATT - .word mus_battle32_7_86BE72D - .byte PATT - .word mus_battle32_7_86BE72D - .byte PATT - .word mus_battle32_7_86BE72D - .byte PATT - .word mus_battle32_7_86BE72D - .byte PATT - .word mus_battle32_7_86BE72D - .byte PATT - .word mus_battle32_7_86BE72D - .byte PATT - .word mus_battle32_7_86BE72D - .byte PATT - .word mus_battle32_7_86BE72D - .byte PATT - .word mus_battle32_7_86BE72D - .byte PATT - .word mus_battle32_7_86BE72D - .byte PATT - .word mus_battle32_7_86BE72D - .byte PATT - .word mus_battle32_7_86BE72D - .byte PATT - .word mus_battle32_7_86BE72D - .byte PATT - .word mus_battle32_7_86BE72D - .byte PATT - .word mus_battle32_7_86BE72D - .byte PATT - .word mus_battle32_7_86BE72D - .byte PATT - .word mus_battle32_7_86BE72D - .byte PATT - .word mus_battle32_7_86BE72D - .byte PATT - .word mus_battle32_7_86BE72D - .byte PATT - .word mus_battle32_7_86BE72D - .byte PATT - .word mus_battle32_7_86BE72D - .byte PATT - .word mus_battle32_7_86BE72D - .byte PATT - .word mus_battle32_7_86BE72D - .byte PATT - .word mus_battle32_7_86BE72D - .byte PATT - .word mus_battle32_7_86BE72D - .byte PATT - .word mus_battle32_7_86BE72D - .byte PATT - .word mus_battle32_7_86BE753 - .byte GOTO - .word mus_battle32_7_86BE75D - .byte FINE - -mus_battle32_8: @ 86BE867 - .byte KEYSH, 0x00 - .byte VOICE, 0x2F - .byte VOL, 0x50 - .byte PAN, 0x36 - .byte N12 - .byte Cn2 - .byte v112 - .byte W36 - .byte N12 - .byte W48 - .byte Gn1 - .byte W12 - .byte W12 - .byte Cn2 - .byte W36 - .byte N12 - .byte W24 - .byte Gn1 - .byte W24 -mus_battle32_8_86BE87E: @ 86BE87E - .byte N12 - .byte Cn2 - .byte v112 - .byte W36 - .byte N12 - .byte W60 - .byte PEND - .byte PATT - .word mus_battle32_8_86BE87E - .byte PATT - .word mus_battle32_8_86BE87E - .byte PATT - .word mus_battle32_8_86BE87E - .byte PATT - .word mus_battle32_8_86BE87E - .byte PATT - .word mus_battle32_8_86BE87E - .byte PATT - .word mus_battle32_8_86BE87E - .byte PATT - .word mus_battle32_8_86BE87E -mus_battle32_8_86BE8A8: @ 86BE8A8 - .byte N12 - .byte Cn2 - .byte v112 - .byte W36 - .byte N12 - .byte W48 - .byte Gn1 - .byte W12 - .byte PEND - .byte PATT - .word mus_battle32_8_86BE8A8 - .byte PATT - .word mus_battle32_8_86BE8A8 - .byte PATT - .word mus_battle32_8_86BE8A8 - .byte PATT - .word mus_battle32_8_86BE8A8 - .byte PATT - .word mus_battle32_8_86BE8A8 - .byte PATT - .word mus_battle32_8_86BE8A8 - .byte PATT - .word mus_battle32_8_86BE8A8 - .byte PATT - .word mus_battle32_8_86BE8A8 - .byte PATT - .word mus_battle32_8_86BE8A8 - .byte PATT - .word mus_battle32_8_86BE8A8 - .byte PATT - .word mus_battle32_8_86BE87E - .byte PATT - .word mus_battle32_8_86BE8A8 - .byte PATT - .word mus_battle32_8_86BE8A8 - .byte PATT - .word mus_battle32_8_86BE8A8 - .byte PATT - .word mus_battle32_8_86BE8A8 - .byte PATT - .word mus_battle32_8_86BE8A8 - .byte PATT - .word mus_battle32_8_86BE8A8 - .byte PATT - .word mus_battle32_8_86BE8A8 - .byte PATT - .word mus_battle32_8_86BE8A8 - .byte PATT - .word mus_battle32_8_86BE8A8 - .byte PATT - .word mus_battle32_8_86BE8A8 - .byte PATT - .word mus_battle32_8_86BE8A8 - .byte PATT - .word mus_battle32_8_86BE87E - .byte PATT - .word mus_battle32_8_86BE8A8 - .byte PATT - .word mus_battle32_8_86BE87E - .byte PATT - .word mus_battle32_8_86BE8A8 - .byte PATT - .word mus_battle32_8_86BE8A8 - .byte PATT - .word mus_battle32_8_86BE8A8 - .byte PATT - .word mus_battle32_8_86BE8A8 - .byte PATT - .word mus_battle32_8_86BE8A8 - .byte PATT - .word mus_battle32_8_86BE8A8 - .byte PATT - .word mus_battle32_8_86BE8A8 - .byte PATT - .word mus_battle32_8_86BE8A8 - .byte PATT - .word mus_battle32_8_86BE8A8 - .byte PATT - .word mus_battle32_8_86BE8A8 - .byte PATT - .word mus_battle32_8_86BE8A8 - .byte PATT - .word mus_battle32_8_86BE8A8 - .byte PATT - .word mus_battle32_8_86BE8A8 - .byte PATT - .word mus_battle32_8_86BE8A8 - .byte PATT - .word mus_battle32_8_86BE8A8 - .byte PATT - .word mus_battle32_8_86BE8A8 - .byte PATT - .word mus_battle32_8_86BE8A8 - .byte PATT - .word mus_battle32_8_86BE8A8 -mus_battle32_8_86BE988: @ 86BE988 - .byte N12 - .byte Cn2 - .byte v112 - .byte W48 - .byte N12 - .byte W12 - .byte N12 - .byte W24 - .byte N12 - .byte W12 - .byte PEND - .byte PATT - .word mus_battle32_8_86BE988 - .byte PATT - .word mus_battle32_8_86BE988 - .byte PATT - .word mus_battle32_8_86BE988 - .byte PATT - .word mus_battle32_8_86BE988 - .byte PATT - .word mus_battle32_8_86BE988 - .byte W24 - .byte N12 - .byte Cn2 - .byte v112 - .byte W24 - .byte N12 - .byte W12 - .byte N12 - .byte W24 - .byte N12 - .byte W12 - .byte N12 - .byte W48 - .byte N12 - .byte W12 - .byte N12 - .byte W36 - .byte GOTO - .word mus_battle32_8_86BE8A8 - .byte FINE - -@ *************************************** - .align 2 -mus_battle32: @ 86BE9C4 - .byte 8 - .byte 0 - .byte mus_battle32_pri - .byte mus_battle32_rev - .word mus_battle32_grp - - .word mus_battle32_1 - .word mus_battle32_2 - .word mus_battle32_3 - .word mus_battle32_4 - .word mus_battle32_5 - .word mus_battle32_6 - .word mus_battle32_7 - .word mus_battle32_8 diff --git a/sound/songs/mus_fanfa1.s b/sound/songs/mus_fanfa1.s deleted file mode 100644 index d3a0dd143..000000000 --- a/sound/songs/mus_fanfa1.s +++ /dev/null @@ -1,196 +0,0 @@ - .include "MPlayDef.s" - .section .rodata - .global mus_fanfa1 - .align 2 - .equ mus_fanfa1_grp, voicegroup012 - .equ mus_fanfa1_pri, 5 - .equ mus_fanfa1_rev, reverb_set+50 - -mus_fanfa1_1: @ 86BCCD0 - .byte KEYSH, 0x00 - .byte TEMPO, 0x57 - .byte VOICE, 0x2E - .byte XCMD, 0x08 - .byte GsM2 - .byte v009 - .byte GsM2 - .byte VOL, 0x5A - .byte PAN, 0x70 - .byte W08 - .byte N04 - .byte Bn3 - .byte v100 - .byte W08 - .byte N04 - .byte W08 - .byte N04 - .byte W08 - .byte N24 - .byte Gs4 - .byte W10 - .byte MOD, 0x05 - .byte W06 - .byte W24 - .byte FINE - -mus_fanfa1_2: @ 86BCCF0 - .byte KEYSH, 0x00 - .byte VOICE, 0x2E - .byte XCMD, 0x08 - .byte GsM2 - .byte v009 - .byte GsM2 - .byte VOL, 0x5A - .byte W08 - .byte PAN, 0x30 - .byte N04 - .byte En4 - .byte v100 - .byte W08 - .byte PAN, 0x50 - .byte N04 - .byte W08 - .byte PAN, 0x30 - .byte N04 - .byte W08 - .byte PAN, 0x40 - .byte N24 - .byte Bn4 - .byte W10 - .byte MOD, 0x05 - .byte W06 - .byte W24 - .byte FINE - -mus_fanfa1_3: @ 86BCD14 - .byte KEYSH, 0x00 - .byte VOICE, 0x2E - .byte XCMD, 0x08 - .byte GsM2 - .byte v009 - .byte GsM2 - .byte VOL, 0x5A - .byte PAN, 0x10 - .byte W08 - .byte N04 - .byte Gs3 - .byte v068 - .byte W08 - .byte N04 - .byte W08 - .byte N04 - .byte W08 - .byte N24 - .byte En4 - .byte W10 - .byte MOD, 0x05 - .byte W06 - .byte W24 - .byte FINE - -mus_fanfa1_4: @ 86BCD32 - .byte KEYSH, 0x00 - .byte VOICE, 0x54 - .byte XCMD, 0x08 - .byte GsM2 - .byte v009 - .byte GsM2 - .byte VOL, 0x5A - .byte W08 - .byte N04 - .byte Bn3 - .byte v048 - .byte W04 - .byte Bn3 - .byte v020 - .byte W04 - .byte Bn3 - .byte v048 - .byte W04 - .byte Bn3 - .byte v020 - .byte W04 - .byte Bn3 - .byte v048 - .byte W04 - .byte Bn3 - .byte v020 - .byte W04 - .byte N24 - .byte Gs4 - .byte v048 - .byte W10 - .byte MOD, 0x05 - .byte W03 - .byte VOL, 0x47 - .byte W03 - .byte Cn2 - .byte W03 - .byte Cs0 - .byte W03 - .byte AsM2 - .byte W03 - .byte CnM2 - .byte W15 - .byte FINE - -mus_fanfa1_5: @ 86BCD64 - .byte KEYSH, 0x00 - .byte VOICE, 0x55 - .byte XCMD, 0x08 - .byte GsM2 - .byte v009 - .byte GsM2 - .byte VOL, 0x5A - .byte W08 - .byte N04 - .byte En4 - .byte v048 - .byte W04 - .byte En4 - .byte v020 - .byte W04 - .byte En4 - .byte v048 - .byte W04 - .byte En4 - .byte v020 - .byte W04 - .byte En4 - .byte v048 - .byte W04 - .byte En4 - .byte v020 - .byte W04 - .byte N24 - .byte Bn4 - .byte v048 - .byte W10 - .byte MOD, 0x05 - .byte W03 - .byte VOL, 0x47 - .byte W03 - .byte Cn2 - .byte W03 - .byte Cs0 - .byte W03 - .byte AsM2 - .byte W03 - .byte CnM2 - .byte W15 - .byte FINE - -@ *************************************** - .align 2 -mus_fanfa1: @ 86BCD98 - .byte 5 - .byte 0 - .byte mus_fanfa1_pri - .byte mus_fanfa1_rev - .word mus_fanfa1_grp - - .word mus_fanfa1_1 - .word mus_fanfa1_2 - .word mus_fanfa1_3 - .word mus_fanfa1_4 - .word mus_fanfa1_5 diff --git a/sound/songs/mus_fanfa4.s b/sound/songs/mus_fanfa4.s deleted file mode 100644 index 37b12bf66..000000000 --- a/sound/songs/mus_fanfa4.s +++ /dev/null @@ -1,292 +0,0 @@ - .include "MPlayDef.s" - .section .rodata - .global mus_fanfa4 - .align 2 - .equ mus_fanfa4_grp, voicegroup012 - .equ mus_fanfa4_pri, 5 - .equ mus_fanfa4_rev, reverb_set+50 - -mus_fanfa4_1: @ 86BCDB4 - .byte KEYSH, 0x00 - .byte W12 - .byte TEMPO, 0x5F - .byte VOICE, 0x2E - .byte VOL, 0x5A - .byte PAN, 0x28 - .byte N16 - .byte Gs4 - .byte v080 - .byte W08 - .byte MOD, 0x05 - .byte W08 - .byte CnM2 - .byte W08 - .byte N06 - .byte Ds4 - .byte W08 - .byte Gs4 - .byte W08 - .byte Ds4 - .byte W08 - .byte N08 - .byte As4 - .byte W16 - .byte N08 - .byte W16 - .byte N08 - .byte W16 - .byte N48 - .byte Gs4 - .byte W16 - .byte MOD, 0x05 - .byte W08 - .byte VOL, 0x52 - .byte W05 - .byte Cn4 - .byte W07 - .byte Fn1 - .byte W05 - .byte DnM1 - .byte W07 - .byte MOD, 0x00 - .byte W24 - .byte FINE - -mus_fanfa4_2: @ 86BCDE9 - .byte KEYSH, 0x00 - .byte W12 - .byte VOICE, 0x2E - .byte VOL, 0x5A - .byte PAN, 0x40 - .byte N16 - .byte Cn5 - .byte v104 - .byte W08 - .byte MOD, 0x05 - .byte W08 - .byte CnM2 - .byte W08 - .byte N06 - .byte W08 - .byte N06 - .byte W08 - .byte N06 - .byte W08 - .byte N08 - .byte Cs5 - .byte W16 - .byte N08 - .byte W16 - .byte N08 - .byte W16 - .byte N48 - .byte Cn5 - .byte W16 - .byte MOD, 0x05 - .byte W08 - .byte VOL, 0x52 - .byte W05 - .byte Cn4 - .byte W07 - .byte Fn1 - .byte W05 - .byte DnM1 - .byte W07 - .byte MOD, 0x00 - .byte W24 - .byte FINE - -mus_fanfa4_3: @ 86BCE1B - .byte KEYSH, 0x00 - .byte W12 - .byte VOICE, 0x3A - .byte VOL, 0x5A - .byte N16 - .byte Gs1 - .byte v120 - .byte W24 - .byte N06 - .byte W08 - .byte N06 - .byte W08 - .byte N06 - .byte W08 - .byte N08 - .byte Fs1 - .byte W16 - .byte N08 - .byte W16 - .byte Gn1 - .byte W16 - .byte N48 - .byte Gs1 - .byte W24 - .byte VOL, 0x52 - .byte W05 - .byte Cn4 - .byte W07 - .byte Fn1 - .byte W05 - .byte DnM1 - .byte W07 - .byte W24 - .byte FINE - -mus_fanfa4_4: @ 86BCE41 - .byte KEYSH, 0x00 - .byte W12 - .byte VOICE, 0x52 - .byte VOL, 0x5A - .byte XCMD, 0x08 - .byte GsM2 - .byte v009 - .byte GsM2 - .byte PAN, 0x10 - .byte N16 - .byte Cn4 - .byte v036 - .byte W08 - .byte MOD, 0x05 - .byte W08 - .byte CnM2 - .byte W08 - .byte N06 - .byte Gs3 - .byte W08 - .byte Cn4 - .byte W08 - .byte Gs3 - .byte W08 - .byte N08 - .byte As3 - .byte W16 - .byte N08 - .byte W16 - .byte N08 - .byte W16 - .byte N48 - .byte Gs3 - .byte W16 - .byte MOD, 0x05 - .byte W08 - .byte VOL, 0x52 - .byte W05 - .byte Cn4 - .byte W07 - .byte Fn1 - .byte W05 - .byte DnM1 - .byte W07 - .byte MOD, 0x00 - .byte W24 - .byte FINE - -mus_fanfa4_5: @ 86BCE79 - .byte KEYSH, 0x00 - .byte W12 - .byte VOICE, 0x53 - .byte VOL, 0x5A - .byte XCMD, 0x08 - .byte GsM2 - .byte v009 - .byte GsM2 - .byte PAN, 0x70 - .byte N16 - .byte Gs3 - .byte v036 - .byte W08 - .byte MOD, 0x05 - .byte W08 - .byte CnM2 - .byte W08 - .byte N06 - .byte Ds3 - .byte W08 - .byte Gs3 - .byte W08 - .byte Ds3 - .byte W08 - .byte N08 - .byte Fs3 - .byte W16 - .byte N08 - .byte W16 - .byte N08 - .byte W16 - .byte N48 - .byte Ds3 - .byte W16 - .byte MOD, 0x05 - .byte W08 - .byte VOL, 0x52 - .byte W05 - .byte Cn4 - .byte W07 - .byte Fn1 - .byte W05 - .byte DnM1 - .byte W07 - .byte MOD, 0x00 - .byte W24 - .byte FINE - -mus_fanfa4_6: @ 86BCEB1 - .byte KEYSH, 0x00 - .byte W12 - .byte VOICE, 0x2E - .byte PAN, 0x58 - .byte VOL, 0x5A - .byte N16 - .byte Ds4 - .byte v080 - .byte W08 - .byte MOD, 0x05 - .byte W08 - .byte CnM2 - .byte W08 - .byte N06 - .byte Cn4 - .byte W08 - .byte Ds4 - .byte W08 - .byte Cn4 - .byte W08 - .byte N08 - .byte Fs4 - .byte W16 - .byte N08 - .byte W16 - .byte N08 - .byte W16 - .byte N48 - .byte Ds4 - .byte W16 - .byte MOD, 0x05 - .byte W08 - .byte VOL, 0x52 - .byte W05 - .byte Cn4 - .byte W07 - .byte Fn1 - .byte W05 - .byte DnM1 - .byte W07 - .byte MOD, 0x00 - .byte W24 - .byte FINE - -@ *************************************** - .align 2 -mus_fanfa4: @ 86BCEE4 - .byte 6 - .byte 0 - .byte mus_fanfa4_pri - .byte mus_fanfa4_rev - .word mus_fanfa4_grp - - .word mus_fanfa4_1 - .word mus_fanfa4_2 - .word mus_fanfa4_3 - .word mus_fanfa4_4 - .word mus_fanfa4_5 - .word mus_fanfa4_6 diff --git a/sound/songs/mus_fanfa5.s b/sound/songs/mus_fanfa5.s deleted file mode 100644 index 183270844..000000000 --- a/sound/songs/mus_fanfa5.s +++ /dev/null @@ -1,374 +0,0 @@ - .include "MPlayDef.s" - .section .rodata - .global mus_fanfa5 - .align 2 - .equ mus_fanfa5_grp, voicegroup012 - .equ mus_fanfa5_pri, 5 - .equ mus_fanfa5_rev, reverb_set+50 - -mus_fanfa5_1: @ 86BCF04 - .byte KEYSH, 0x00 - .byte W12 - .byte TEMPO, 0x4B - .byte VOICE, 0x38 - .byte PAN, 0x52 - .byte VOL, 0x5A - .byte N22 - .byte Ds4 - .byte v092 - .byte W16 - .byte VOL, 0x44 - .byte W04 - .byte Cn1 - .byte W04 - .byte Fs5 - .byte N22 - .byte Cn4 - .byte W16 - .byte VOL, 0x44 - .byte W04 - .byte Cn1 - .byte W04 - .byte Fs5 - .byte N16 - .byte Gs3 - .byte W16 - .byte N06 - .byte Ds3 - .byte W08 - .byte Cn3 - .byte W08 - .byte Gs3 - .byte W08 - .byte Cn4 - .byte W08 - .byte N04 - .byte Fs4 - .byte W08 - .byte N04 - .byte W08 - .byte N04 - .byte W08 - .byte N04 - .byte W08 - .byte N04 - .byte W08 - .byte As4 - .byte W08 - .byte N48 - .byte Gs4 - .byte W16 - .byte MOD, 0x06 - .byte W32 - .byte CnM2 - .byte W24 - .byte FINE - -mus_fanfa5_2: @ 86BCF44 - .byte KEYSH, 0x00 - .byte W12 - .byte VOICE, 0x38 - .byte PAN, 0x30 - .byte VOL, 0x5A - .byte N22 - .byte Cn5 - .byte v100 - .byte W16 - .byte VOL, 0x44 - .byte W04 - .byte Cn1 - .byte W04 - .byte Fs5 - .byte N22 - .byte Gs4 - .byte W16 - .byte VOL, 0x44 - .byte W04 - .byte Cn1 - .byte W04 - .byte Fs5 - .byte N40 - .byte Ds4 - .byte W12 - .byte MOD, 0x06 - .byte W28 - .byte VOL, 0x44 - .byte MOD, 0x00 - .byte W04 - .byte VOL, 0x24 - .byte W04 - .byte Fs5 - .byte N04 - .byte Cs5 - .byte W08 - .byte N04 - .byte W08 - .byte N04 - .byte W08 - .byte As4 - .byte W08 - .byte N04 - .byte W08 - .byte Cs5 - .byte W08 - .byte N48 - .byte Cn5 - .byte W16 - .byte MOD, 0x06 - .byte W32 - .byte CnM2 - .byte W24 - .byte FINE - -mus_fanfa5_3: @ 86BCF85 - .byte KEYSH, 0x00 - .byte W12 - .byte VOICE, 0x58 - .byte VOL, 0x5A - .byte N12 - .byte Ds1 - .byte v080 - .byte W24 - .byte N12 - .byte W24 - .byte N12 - .byte W24 - .byte N08 - .byte Cn1 - .byte W08 - .byte Ds1 - .byte W08 - .byte Gs1 - .byte W08 - .byte N24 - .byte As1 - .byte W24 - .byte Cs2 - .byte W24 - .byte N40 - .byte Cn2 - .byte W48 - .byte W24 - .byte FINE - -mus_fanfa5_4: @ 86BCFA5 - .byte KEYSH, 0x00 - .byte W12 - .byte VOICE, 0x52 - .byte PAN, 0x10 - .byte VOL, 0x5A - .byte N08 - .byte Gs4 - .byte v040 - .byte W08 - .byte Ds4 - .byte W08 - .byte Cn4 - .byte W08 - .byte VOL, 0x5A - .byte N08 - .byte Gs4 - .byte W08 - .byte Ds4 - .byte W08 - .byte Cn4 - .byte W08 - .byte Ds4 - .byte W08 - .byte Cn4 - .byte W08 - .byte Gs3 - .byte W08 - .byte Cn4 - .byte W08 - .byte Gs3 - .byte W08 - .byte Ds3 - .byte W08 - .byte Cs3 - .byte W08 - .byte As2 - .byte W08 - .byte Fs2 - .byte W08 - .byte Cs2 - .byte W08 - .byte As2 - .byte W08 - .byte Cs3 - .byte W08 - .byte N48 - .byte Ds3 - .byte W16 - .byte MOD, 0x06 - .byte W32 - .byte CnM2 - .byte W24 - .byte FINE - -mus_fanfa5_5: @ 86BCFE0 - .byte KEYSH, 0x00 - .byte W12 - .byte VOICE, 0x53 - .byte PAN, 0x70 - .byte VOL, 0x5A - .byte W04 - .byte N08 - .byte Gs4 - .byte v040 - .byte W08 - .byte Ds4 - .byte W08 - .byte Cn4 - .byte W04 - .byte VOL, 0x5A - .byte W04 - .byte N08 - .byte Gs4 - .byte W08 - .byte Ds4 - .byte W08 - .byte Cn4 - .byte W08 - .byte Ds4 - .byte W08 - .byte Cn4 - .byte W08 - .byte Gs3 - .byte W08 - .byte Cn4 - .byte W08 - .byte Gs3 - .byte W08 - .byte Ds3 - .byte W04 - .byte W04 - .byte Cs3 - .byte W08 - .byte As2 - .byte W08 - .byte Fs2 - .byte W08 - .byte Cs2 - .byte W08 - .byte As2 - .byte W08 - .byte Cs3 - .byte W08 - .byte N44 - .byte Ds3 - .byte W12 - .byte MOD, 0x06 - .byte W32 - .byte CnM2 - .byte W24 - .byte FINE - -mus_fanfa5_6: @ 86BD01E - .byte KEYSH, 0x00 - .byte W12 - .byte VOICE, 0x2F - .byte VOL, 0x5A - .byte W24 - .byte Fs5 - .byte W56 - .byte N08 - .byte Cn2 - .byte v127 - .byte W08 - .byte N08 - .byte W08 - .byte Fs2 - .byte W24 - .byte Cs2 - .byte W08 - .byte As1 - .byte v112 - .byte W08 - .byte N08 - .byte W08 - .byte N12 - .byte Cn2 - .byte v127 - .byte W48 - .byte W24 - .byte FINE - -mus_fanfa5_7: @ 86BD03D - .byte KEYSH, 0x00 - .byte W12 - .byte VOICE, 0x00 - .byte VOL, 0x5A - .byte N04 - .byte En1 - .byte v112 - .byte N80 - .byte An2 - .byte v120 - .byte W24 - .byte VOL, 0x5A - .byte N04 - .byte En1 - .byte v112 - .byte W08 - .byte En1 - .byte v092 - .byte W08 - .byte N04 - .byte W08 - .byte En1 - .byte v112 - .byte W16 - .byte En1 - .byte v092 - .byte W08 - .byte En1 - .byte v112 - .byte W08 - .byte En1 - .byte v092 - .byte W08 - .byte N04 - .byte W08 - .byte En1 - .byte v112 - .byte W16 - .byte En1 - .byte v092 - .byte W08 - .byte En1 - .byte v112 - .byte W08 - .byte En1 - .byte v092 - .byte W04 - .byte En1 - .byte v112 - .byte W04 - .byte En1 - .byte v092 - .byte W04 - .byte N04 - .byte W04 - .byte En1 - .byte v112 - .byte W48 - .byte W24 - .byte FINE - -@ *************************************** - .align 2 -mus_fanfa5: @ 86BD080 - .byte 7 - .byte 0 - .byte mus_fanfa5_pri - .byte mus_fanfa5_rev - .word mus_fanfa5_grp - - .word mus_fanfa5_1 - .word mus_fanfa5_2 - .word mus_fanfa5_3 - .word mus_fanfa5_4 - .word mus_fanfa5_5 - .word mus_fanfa5_6 - .word mus_fanfa5_7 diff --git a/sound/songs/mus_me_b_big.s b/sound/songs/mus_me_b_big.s deleted file mode 100644 index 76b579458..000000000 --- a/sound/songs/mus_me_b_big.s +++ /dev/null @@ -1,505 +0,0 @@ - .include "MPlayDef.s" - .section .rodata - .global mus_me_b_big - .align 2 - .equ mus_me_b_big_grp, voicegroup012 - .equ mus_me_b_big_pri, 5 - .equ mus_me_b_big_rev, reverb_set+50 - -mus_me_b_big_1: @ 86BFDD8 - .byte KEYSH, 0x00 - .byte W12 - .byte VOICE, 0x30 - .byte VOL, 0x64 - .byte PAN, 0x40 - .byte N08 - .byte Gn3 - .byte v040 - .byte W08 - .byte Bn3 - .byte v052 - .byte W08 - .byte Dn4 - .byte v060 - .byte W08 - .byte TEMPO, 0x48 - .byte VOICE, 0x38 - .byte N04 - .byte Gn3 - .byte v116 - .byte W08 - .byte Bn3 - .byte W08 - .byte Gn3 - .byte W08 - .byte N44 - .byte Dn4 - .byte W24 - .byte MOD, 0x06 - .byte W04 - .byte VOL, 0x62 - .byte W04 - .byte Fs5 - .byte W04 - .byte En4 - .byte W04 - .byte Gn2 - .byte W04 - .byte MOD, 0x00 - .byte W04 - .byte VOL, 0x64 - .byte N05 - .byte Bn3 - .byte W08 - .byte Dn4 - .byte W08 - .byte Gn4 - .byte W08 - .byte N04 - .byte En4 - .byte W08 - .byte Cn5 - .byte W08 - .byte Gn4 - .byte W08 - .byte N48 - .byte Bn4 - .byte W03 - .byte VOL, 0x5B - .byte W03 - .byte En5 - .byte W03 - .byte Ds4 - .byte W06 - .byte Gs4 - .byte W01 - .byte MOD, 0x06 - .byte W05 - .byte VOL, 0x55 - .byte W06 - .byte Gn5 - .byte W06 - .byte Bn5 - .byte W06 - .byte En6 - .byte W09 - .byte MOD, 0x00 - .byte N12 - .byte W48 - .byte FINE - -mus_me_b_big_2: @ 86BFE36 - .byte KEYSH, 0x00 - .byte W12 - .byte VOICE, 0x30 - .byte VOL, 0x64 - .byte PAN, 0x4A - .byte W04 - .byte N08 - .byte An3 - .byte v044 - .byte W08 - .byte Cn4 - .byte v056 - .byte W08 - .byte N04 - .byte Fs4 - .byte v064 - .byte W04 - .byte N08 - .byte Gn4 - .byte v060 - .byte W08 - .byte Bn4 - .byte W08 - .byte Gn4 - .byte W08 - .byte W24 - .byte N08 - .byte W08 - .byte Bn4 - .byte W08 - .byte Gn4 - .byte W08 - .byte Dn4 - .byte W08 - .byte Gn4 - .byte W08 - .byte Bn4 - .byte W08 - .byte Cn5 - .byte W08 - .byte Gn5 - .byte W08 - .byte En5 - .byte W08 - .byte N48 - .byte Gn5 - .byte W03 - .byte VOL, 0x5B - .byte W03 - .byte En5 - .byte W03 - .byte Ds4 - .byte W06 - .byte Gs4 - .byte W06 - .byte Cs5 - .byte W06 - .byte Gn5 - .byte W06 - .byte Bn5 - .byte W06 - .byte En6 - .byte W09 - .byte N12 - .byte W48 - .byte FINE - -mus_me_b_big_3: @ 86BFE7D - .byte KEYSH, 0x00 - .byte W12 - .byte W24 - .byte VOICE, 0x2F - .byte VOL, 0x64 - .byte PAN, 0x40 - .byte N08 - .byte Gn2 - .byte v127 - .byte W08 - .byte N16 - .byte Bn1 - .byte W16 - .byte N24 - .byte Dn2 - .byte W40 - .byte N08 - .byte Gn2 - .byte W08 - .byte N24 - .byte Dn2 - .byte W24 - .byte N04 - .byte Cn2 - .byte W04 - .byte N04 - .byte W04 - .byte N08 - .byte W08 - .byte N08 - .byte W08 - .byte N04 - .byte Gn2 - .byte W04 - .byte Dn2 - .byte v092 - .byte W04 - .byte Dn2 - .byte v096 - .byte W04 - .byte N04 - .byte W04 - .byte Dn2 - .byte v100 - .byte W04 - .byte Dn2 - .byte v104 - .byte W04 - .byte Dn2 - .byte v108 - .byte W04 - .byte Dn2 - .byte v112 - .byte W04 - .byte Dn2 - .byte v116 - .byte W04 - .byte N04 - .byte W04 - .byte Dn2 - .byte v120 - .byte W04 - .byte Dn2 - .byte v124 - .byte W04 - .byte N24 - .byte Gn2 - .byte v127 - .byte W48 - .byte FINE - -mus_me_b_big_4: @ 86BFEC7 - .byte KEYSH, 0x00 - .byte W12 - .byte XCMD, 0x08 - .byte AsM2 - .byte v009 - .byte GsM2 - .byte W24 - .byte VOICE, 0x52 - .byte VOL, 0x64 - .byte PAN, 0x10 - .byte N04 - .byte Dn3 - .byte v052 - .byte W08 - .byte Gn3 - .byte W08 - .byte Dn3 - .byte W08 - .byte N68 - .byte Bn3 - .byte W24 - .byte MOD, 0x06 - .byte W04 - .byte VOL, 0x60 - .byte W08 - .byte Cn5 - .byte W09 - .byte Bn3 - .byte W06 - .byte Cn3 - .byte W06 - .byte Cn2 - .byte W06 - .byte Fs0 - .byte W03 - .byte BnM2 - .byte W02 - .byte MOD, 0x00 - .byte W04 - .byte VOL, 0x64 - .byte N04 - .byte Gn3 - .byte W08 - .byte En4 - .byte W08 - .byte Cn4 - .byte W08 - .byte N48 - .byte Dn4 - .byte W16 - .byte MOD, 0x06 - .byte W32 - .byte CnM2 - .byte N12 - .byte W48 - .byte FINE - -mus_me_b_big_5: @ 86BFF09 - .byte KEYSH, 0x00 - .byte W12 - .byte XCMD, 0x08 - .byte AsM2 - .byte W24 - .byte VOICE, 0x53 - .byte VOL, 0x64 - .byte PAN, 0x6F - .byte BEND, 0x40 - .byte N04 - .byte Bn2 - .byte v052 - .byte W08 - .byte Dn3 - .byte W08 - .byte Bn2 - .byte W08 - .byte N68 - .byte Gn3 - .byte W24 - .byte MOD, 0x06 - .byte W04 - .byte VOL, 0x60 - .byte W08 - .byte Cn5 - .byte W09 - .byte Bn3 - .byte W06 - .byte Cn3 - .byte W06 - .byte Cn2 - .byte W06 - .byte Fs0 - .byte W03 - .byte BnM2 - .byte W02 - .byte MOD, 0x00 - .byte W04 - .byte VOL, 0x64 - .byte N04 - .byte En3 - .byte W08 - .byte Cn4 - .byte W08 - .byte Gn3 - .byte W08 - .byte N48 - .byte Bn3 - .byte W16 - .byte MOD, 0x06 - .byte W32 - .byte CnM2 - .byte N12 - .byte W48 - .byte FINE - -mus_me_b_big_6: @ 86BFF4B - .byte KEYSH, 0x00 - .byte W12 - .byte W24 - .byte VOICE, 0x58 - .byte VOL, 0x64 - .byte W24 - .byte N24 - .byte Gn1 - .byte v080 - .byte W32 - .byte N04 - .byte W08 - .byte N04 - .byte W08 - .byte N16 - .byte W16 - .byte Bn1 - .byte W16 - .byte Cn2 - .byte W16 - .byte Bn1 - .byte W16 - .byte An1 - .byte W16 - .byte N08 - .byte Gn1 - .byte W08 - .byte N04 - .byte Dn1 - .byte W04 - .byte Fs1 - .byte W04 - .byte N12 - .byte Gn1 - .byte W48 - .byte FINE - -mus_me_b_big_7: @ 86BFF72 - .byte KEYSH, 0x00 - .byte W12 - .byte W24 - .byte VOICE, 0x00 - .byte VOL, 0x64 - .byte N04 - .byte En1 - .byte v112 - .byte W04 - .byte En1 - .byte v076 - .byte W04 - .byte N04 - .byte W04 - .byte En1 - .byte v080 - .byte W04 - .byte En1 - .byte v084 - .byte W04 - .byte En1 - .byte v088 - .byte W04 - .byte En1 - .byte v112 - .byte N72 - .byte Bn2 - .byte v092 - .byte W16 - .byte N04 - .byte En1 - .byte v112 - .byte W08 - .byte N04 - .byte W04 - .byte En1 - .byte v068 - .byte W04 - .byte En1 - .byte v088 - .byte W04 - .byte En1 - .byte v108 - .byte W04 - .byte En1 - .byte v112 - .byte W08 - .byte N04 - .byte W16 - .byte N04 - .byte W08 - .byte En1 - .byte v120 - .byte W16 - .byte En1 - .byte v092 - .byte W04 - .byte N04 - .byte W04 - .byte En1 - .byte v112 - .byte N48 - .byte Bn2 - .byte v092 - .byte W04 - .byte N04 - .byte En1 - .byte v076 - .byte W04 - .byte N04 - .byte W04 - .byte En1 - .byte v080 - .byte W04 - .byte En1 - .byte v084 - .byte W04 - .byte En1 - .byte v088 - .byte W04 - .byte En1 - .byte v092 - .byte W04 - .byte N04 - .byte W04 - .byte En1 - .byte v096 - .byte W04 - .byte En1 - .byte v100 - .byte W04 - .byte En1 - .byte v104 - .byte W04 - .byte En1 - .byte v108 - .byte W04 - .byte En1 - .byte v120 - .byte N24 - .byte Bn2 - .byte v092 - .byte W48 - .byte FINE - -@ *************************************** - .align 2 -mus_me_b_big: @ 86BFFE0 - .byte 7 - .byte 0 - .byte mus_me_b_big_pri - .byte mus_me_b_big_rev - .word mus_me_b_big_grp - - .word mus_me_b_big_1 - .word mus_me_b_big_2 - .word mus_me_b_big_3 - .word mus_me_b_big_4 - .word mus_me_b_big_5 - .word mus_me_b_big_6 - .word mus_me_b_big_7 diff --git a/sound/songs/mus_me_b_small.s b/sound/songs/mus_me_b_small.s deleted file mode 100644 index 6dab77385..000000000 --- a/sound/songs/mus_me_b_small.s +++ /dev/null @@ -1,287 +0,0 @@ - .include "MPlayDef.s" - .section .rodata - .global mus_me_b_small - .align 2 - .equ mus_me_b_small_grp, voicegroup012 - .equ mus_me_b_small_pri, 5 - .equ mus_me_b_small_rev, reverb_set+50 - -mus_me_b_small_1: @ 86C0004 - .byte KEYSH, 0x00 - .byte TEMPO, 0x48 - .byte W09 - .byte VOICE, 0x38 - .byte VOL, 0x64 - .byte PAN, 0x46 - .byte N03 - .byte Cs3 - .byte v084 - .byte W03 - .byte Fn3 - .byte W03 - .byte Fs3 - .byte W03 - .byte Gs3 - .byte W03 - .byte An3 - .byte W03 - .byte N06 - .byte As3 - .byte v112 - .byte W12 - .byte N03 - .byte W06 - .byte N03 - .byte W06 - .byte N06 - .byte Fs3 - .byte W12 - .byte N03 - .byte W06 - .byte N03 - .byte W06 - .byte N12 - .byte Cs4 - .byte W03 - .byte MOD, 0x06 - .byte W09 - .byte CnM2 - .byte N06 - .byte En4 - .byte W06 - .byte Fn4 - .byte W06 - .byte N12 - .byte Fs4 - .byte W24 - .byte W24 - .byte FINE - -mus_me_b_small_2: @ 86C003B - .byte KEYSH, 0x00 - .byte W24 - .byte VOICE, 0x3C - .byte VOL, 0x64 - .byte PAN, 0x30 - .byte N24 - .byte Fs2 - .byte v080 - .byte W24 - .byte N06 - .byte W12 - .byte N06 - .byte W06 - .byte N06 - .byte W06 - .byte N12 - .byte Fs3 - .byte W12 - .byte Bn3 - .byte W12 - .byte As3 - .byte W24 - .byte W24 - .byte FINE - -mus_me_b_small_3: @ 86C0057 - .byte KEYSH, 0x00 - .byte W24 - .byte VOICE, 0x2F - .byte VOL, 0x64 - .byte PAN, 0x3C - .byte W48 - .byte N03 - .byte Ds2 - .byte v120 - .byte W03 - .byte Ds2 - .byte v092 - .byte W03 - .byte Ds2 - .byte v096 - .byte W03 - .byte Ds2 - .byte v100 - .byte W03 - .byte N06 - .byte Ds2 - .byte v108 - .byte W06 - .byte Ds2 - .byte v116 - .byte W06 - .byte N24 - .byte Fs2 - .byte v120 - .byte W24 - .byte W24 - .byte FINE - -mus_me_b_small_4: @ 86C007B - .byte KEYSH, 0x00 - .byte XCMD, 0x08 - .byte AsM2 - .byte v009 - .byte GsM2 - .byte W24 - .byte VOICE, 0x5A - .byte VOL, 0x64 - .byte PAN, 0x40 - .byte N03 - .byte Fs5 - .byte v040 - .byte W12 - .byte Cs5 - .byte W06 - .byte N03 - .byte W06 - .byte Fs5 - .byte W12 - .byte Cs5 - .byte W06 - .byte N03 - .byte W06 - .byte N03 - .byte W12 - .byte En5 - .byte W06 - .byte Fn5 - .byte W06 - .byte Fs5 - .byte W24 - .byte W24 - .byte FINE - -mus_me_b_small_5: @ 86C00A1 - .byte KEYSH, 0x00 - .byte XCMD, 0x08 - .byte AsM2 - .byte v009 - .byte GsM2 - .byte BEND, 0x40 - .byte W24 - .byte VOICE, 0x53 - .byte VOL, 0x64 - .byte PAN, 0x70 - .byte N06 - .byte Fs3 - .byte v052 - .byte W12 - .byte N03 - .byte W06 - .byte N03 - .byte W06 - .byte N06 - .byte Cs3 - .byte W12 - .byte N03 - .byte W06 - .byte N03 - .byte W06 - .byte N12 - .byte Fs4 - .byte W03 - .byte MOD, 0x06 - .byte W09 - .byte CnM2 - .byte N06 - .byte Gs4 - .byte W06 - .byte An4 - .byte W06 - .byte N12 - .byte As4 - .byte W24 - .byte W24 - .byte FINE - -mus_me_b_small_6: @ 86C00D1 - .byte KEYSH, 0x00 - .byte W24 - .byte VOICE, 0x58 - .byte VOL, 0x64 - .byte N12 - .byte Fs1 - .byte v080 - .byte W24 - .byte N12 - .byte W24 - .byte N12 - .byte W12 - .byte N06 - .byte En1 - .byte W06 - .byte Fn1 - .byte W06 - .byte N12 - .byte Fs1 - .byte W24 - .byte W24 - .byte FINE - -mus_me_b_small_7: @ 86C00EA - .byte KEYSH, 0x00 - .byte W24 - .byte VOICE, 0x00 - .byte VOL, 0x64 - .byte N06 - .byte En1 - .byte v100 - .byte N72 - .byte Bn2 - .byte v092 - .byte W24 - .byte N06 - .byte En1 - .byte v100 - .byte W12 - .byte N06 - .byte W06 - .byte N06 - .byte W06 - .byte N03 - .byte En1 - .byte v112 - .byte W03 - .byte En1 - .byte v080 - .byte W03 - .byte En1 - .byte v084 - .byte W03 - .byte En1 - .byte v092 - .byte W03 - .byte N06 - .byte En1 - .byte v096 - .byte W06 - .byte En1 - .byte v108 - .byte W06 - .byte N09 - .byte En1 - .byte v100 - .byte N24 - .byte Bn2 - .byte v092 - .byte W24 - .byte W24 - .byte FINE - -@ *************************************** - .align 2 -mus_me_b_small: @ 86C0120 - .byte 7 - .byte 0 - .byte mus_me_b_small_pri - .byte mus_me_b_small_rev - .word mus_me_b_small_grp - - .word mus_me_b_small_1 - .word mus_me_b_small_2 - .word mus_me_b_small_3 - .word mus_me_b_small_4 - .word mus_me_b_small_5 - .word mus_me_b_small_6 - .word mus_me_b_small_7 diff --git a/sound/songs/mus_me_bachi.s b/sound/songs/mus_me_bachi.s deleted file mode 100644 index f701d6973..000000000 --- a/sound/songs/mus_me_bachi.s +++ /dev/null @@ -1,635 +0,0 @@ - .include "MPlayDef.s" - .section .rodata - .global mus_me_bachi - .align 2 - .equ mus_me_bachi_grp, voicegroup012 - .equ mus_me_bachi_pri, 5 - .equ mus_me_bachi_rev, reverb_set+50 - -mus_me_bachi_1: @ 86BD0A4 - .byte KEYSH, 0x00 - .byte W12 - .byte TEMPO, 0x48 - .byte VOICE, 0x52 - .byte XCMD, 0x08 - .byte AsM2 - .byte v009 - .byte GsM2 - .byte VOL, 0x5A - .byte PAN, 0x6F - .byte N09 - .byte Fn4 - .byte v060 - .byte W18 - .byte N03 - .byte Dn4 - .byte W06 - .byte N24 - .byte W09 - .byte MOD, 0x06 - .byte W15 - .byte VOICE, 0x50 - .byte MOD, 0x00 - .byte PAN, 0x40 - .byte N06 - .byte Fn3 - .byte v072 - .byte W06 - .byte As2 - .byte v060 - .byte W06 - .byte Dn3 - .byte W06 - .byte Fn3 - .byte W06 - .byte Dn3 - .byte v072 - .byte W06 - .byte Fn3 - .byte v060 - .byte W06 - .byte As3 - .byte W06 - .byte Dn4 - .byte W06 - .byte VOICE, 0x52 - .byte PAN, 0x6F - .byte N09 - .byte Gn4 - .byte v056 - .byte W18 - .byte N03 - .byte En4 - .byte v060 - .byte W06 - .byte N24 - .byte W12 - .byte MOD, 0x06 - .byte W12 - .byte VOICE, 0x50 - .byte MOD, 0x00 - .byte PAN, 0x40 - .byte N06 - .byte Gn3 - .byte v072 - .byte W06 - .byte Cn3 - .byte v060 - .byte W06 - .byte En3 - .byte W06 - .byte Gn3 - .byte W06 - .byte En3 - .byte v072 - .byte W06 - .byte Gn3 - .byte v060 - .byte W06 - .byte Cn4 - .byte W06 - .byte En4 - .byte W06 - .byte VOICE, 0x52 - .byte PAN, 0x11 - .byte N48 - .byte An4 - .byte W05 - .byte VOL, 0x4C - .byte W04 - .byte Fn3 - .byte W05 - .byte Gs3 - .byte W01 - .byte MOD, 0x06 - .byte W04 - .byte VOL, 0x47 - .byte W05 - .byte Ds4 - .byte W05 - .byte Fn4 - .byte W04 - .byte MOD, 0x08 - .byte W01 - .byte VOL, 0x50 - .byte W05 - .byte Cn5 - .byte W05 - .byte Ds5 - .byte W04 - .byte Fs5 - .byte MOD, 0x00 - .byte N09 - .byte W48 - .byte FINE - -mus_me_bachi_2: @ 86BD12F - .byte KEYSH, 0x00 - .byte W12 - .byte VOICE, 0x38 - .byte VOL, 0x5A - .byte PAN, 0x4B - .byte N09 - .byte As4 - .byte v116 - .byte W18 - .byte N03 - .byte Fn4 - .byte W06 - .byte N44 - .byte W09 - .byte MOD, 0x06 - .byte W15 - .byte VOL, 0x4E - .byte W05 - .byte Ds3 - .byte W05 - .byte Dn1 - .byte W05 - .byte DnM1 - .byte W03 - .byte CnM2 - .byte W03 - .byte Fs5 - .byte MOD, 0x00 - .byte N03 - .byte An4 - .byte v100 - .byte W03 - .byte N06 - .byte As4 - .byte v116 - .byte W12 - .byte Bn4 - .byte W12 - .byte N09 - .byte Cn5 - .byte W18 - .byte N03 - .byte Gn4 - .byte W06 - .byte N44 - .byte W12 - .byte MOD, 0x06 - .byte W12 - .byte VOL, 0x4E - .byte W05 - .byte Ds3 - .byte W05 - .byte Dn1 - .byte W05 - .byte DnM1 - .byte W03 - .byte CnM2 - .byte W03 - .byte Fs5 - .byte MOD, 0x00 - .byte N03 - .byte Bn4 - .byte v100 - .byte W03 - .byte N24 - .byte Cn5 - .byte v116 - .byte W15 - .byte MOD, 0x06 - .byte W09 - .byte CnM2 - .byte N48 - .byte Dn5 - .byte W05 - .byte VOL, 0x4C - .byte W04 - .byte Fn3 - .byte W05 - .byte Gs3 - .byte W01 - .byte MOD, 0x06 - .byte W04 - .byte VOL, 0x47 - .byte W05 - .byte Ds4 - .byte W05 - .byte Fn4 - .byte W04 - .byte MOD, 0x08 - .byte W01 - .byte VOL, 0x50 - .byte W05 - .byte Cn5 - .byte W05 - .byte Ds5 - .byte W04 - .byte Fs5 - .byte MOD, 0x00 - .byte N09 - .byte W48 - .byte FINE - -mus_me_bachi_3: @ 86BD1A5 - .byte KEYSH, 0x00 - .byte W12 - .byte VOICE, 0x58 - .byte VOL, 0x5A - .byte N09 - .byte As1 - .byte v080 - .byte W18 - .byte N03 - .byte W06 - .byte N24 - .byte W24 - .byte N18 - .byte Dn2 - .byte W18 - .byte Cn2 - .byte W18 - .byte N12 - .byte As1 - .byte W12 - .byte N09 - .byte Cn2 - .byte W18 - .byte N03 - .byte W06 - .byte N24 - .byte W24 - .byte N18 - .byte En2 - .byte W18 - .byte Dn2 - .byte W18 - .byte N12 - .byte Cn2 - .byte W12 - .byte N06 - .byte Dn2 - .byte W12 - .byte An1 - .byte W12 - .byte Dn2 - .byte W12 - .byte An1 - .byte W12 - .byte N09 - .byte Dn2 - .byte W48 - .byte FINE - -mus_me_bachi_4: @ 86BD1D8 - .byte KEYSH, 0x00 - .byte W12 - .byte VOICE, 0x2F - .byte VOL, 0x5A - .byte PAN, 0x33 - .byte N06 - .byte As1 - .byte v127 - .byte W36 - .byte As1 - .byte v100 - .byte W06 - .byte Fn1 - .byte W06 - .byte As1 - .byte v127 - .byte W12 - .byte Fn1 - .byte W12 - .byte As1 - .byte W12 - .byte Fn1 - .byte W12 - .byte Cn2 - .byte W36 - .byte Cn2 - .byte v100 - .byte W06 - .byte Gn1 - .byte W06 - .byte Cn2 - .byte v127 - .byte W12 - .byte Gn1 - .byte W12 - .byte Cn2 - .byte W12 - .byte Gn1 - .byte W06 - .byte Cn2 - .byte W06 - .byte Dn2 - .byte W12 - .byte An1 - .byte W12 - .byte Dn2 - .byte W12 - .byte An1 - .byte W12 - .byte Dn2 - .byte W48 - .byte FINE - -mus_me_bachi_5: @ 86BD210 - .byte KEYSH, 0x00 - .byte W12 - .byte VOICE, 0x53 - .byte XCMD, 0x08 - .byte AsM2 - .byte v009 - .byte GsM2 - .byte VOL, 0x5A - .byte PAN, 0x10 - .byte BEND, 0x40 - .byte N09 - .byte Dn4 - .byte v060 - .byte W18 - .byte N03 - .byte As3 - .byte W06 - .byte N24 - .byte W09 - .byte MOD, 0x06 - .byte W15 - .byte CnM2 - .byte W06 - .byte VOICE, 0x51 - .byte PAN, 0x70 - .byte BEND, 0x3E - .byte N06 - .byte Fn3 - .byte v052 - .byte W06 - .byte PAN, 0x10 - .byte N06 - .byte As2 - .byte W06 - .byte PAN, 0x70 - .byte N06 - .byte Dn3 - .byte W06 - .byte PAN, 0x10 - .byte N06 - .byte Fn3 - .byte W06 - .byte PAN, 0x70 - .byte N06 - .byte Dn3 - .byte W06 - .byte PAN, 0x10 - .byte N06 - .byte Fn3 - .byte W06 - .byte PAN, 0x70 - .byte N06 - .byte As3 - .byte W06 - .byte VOICE, 0x53 - .byte PAN, 0x10 - .byte BEND, 0x40 - .byte N09 - .byte En4 - .byte v060 - .byte W18 - .byte N03 - .byte Cn4 - .byte W06 - .byte N24 - .byte W12 - .byte MOD, 0x06 - .byte W12 - .byte CnM2 - .byte W06 - .byte VOICE, 0x51 - .byte PAN, 0x70 - .byte BEND, 0x3E - .byte N06 - .byte Gn3 - .byte v052 - .byte W06 - .byte PAN, 0x10 - .byte N06 - .byte Cn3 - .byte W06 - .byte PAN, 0x70 - .byte N06 - .byte En3 - .byte W06 - .byte PAN, 0x10 - .byte N06 - .byte Gn3 - .byte W06 - .byte PAN, 0x70 - .byte N06 - .byte En3 - .byte W06 - .byte PAN, 0x10 - .byte N06 - .byte Gn3 - .byte W06 - .byte PAN, 0x70 - .byte N06 - .byte Cn4 - .byte W06 - .byte VOICE, 0x53 - .byte BEND, 0x40 - .byte N48 - .byte Fs4 - .byte v060 - .byte W05 - .byte VOL, 0x4C - .byte W04 - .byte Fn3 - .byte W05 - .byte Gs3 - .byte W01 - .byte MOD, 0x06 - .byte W04 - .byte VOL, 0x47 - .byte W05 - .byte Ds4 - .byte W05 - .byte Fn4 - .byte W04 - .byte MOD, 0x08 - .byte W01 - .byte VOL, 0x50 - .byte W05 - .byte Cn5 - .byte W05 - .byte Ds5 - .byte W04 - .byte Fs5 - .byte MOD, 0x00 - .byte N09 - .byte W48 - .byte FINE - -mus_me_bachi_6: @ 86BD2BB - .byte KEYSH, 0x00 - .byte W12 - .byte VOICE, 0x38 - .byte VOL, 0x5A - .byte PAN, 0x40 - .byte W68 - .byte W01 - .byte N03 - .byte En4 - .byte v080 - .byte W03 - .byte N06 - .byte Fn4 - .byte v100 - .byte W12 - .byte Gn4 - .byte W12 - .byte W68 - .byte W01 - .byte N03 - .byte Fs4 - .byte v080 - .byte W03 - .byte N24 - .byte Gn4 - .byte v100 - .byte W24 - .byte W96 - .byte FINE - -mus_me_bachi_7: @ 86BD2DC - .byte KEYSH, 0x00 - .byte W12 - .byte VOICE, 0x00 - .byte VOL, 0x5A - .byte N06 - .byte En1 - .byte v096 - .byte N24 - .byte Bn2 - .byte v100 - .byte W18 - .byte N06 - .byte En1 - .byte v096 - .byte W06 - .byte En1 - .byte v120 - .byte W12 - .byte N03 - .byte En1 - .byte v100 - .byte W03 - .byte N03 - .byte W03 - .byte N06 - .byte W06 - .byte N12 - .byte W12 - .byte N12 - .byte W12 - .byte N03 - .byte En1 - .byte v084 - .byte W03 - .byte En1 - .byte v080 - .byte W03 - .byte N03 - .byte W03 - .byte N03 - .byte W03 - .byte N03 - .byte W03 - .byte N03 - .byte W03 - .byte N03 - .byte W03 - .byte N03 - .byte W03 - .byte N06 - .byte En1 - .byte v096 - .byte N24 - .byte Bn2 - .byte v100 - .byte W18 - .byte N06 - .byte En1 - .byte v096 - .byte W06 - .byte En1 - .byte v120 - .byte W12 - .byte N03 - .byte En1 - .byte v100 - .byte W03 - .byte N03 - .byte W03 - .byte N06 - .byte W06 - .byte N12 - .byte W12 - .byte N12 - .byte W12 - .byte N03 - .byte En1 - .byte v084 - .byte W03 - .byte En1 - .byte v080 - .byte W03 - .byte N03 - .byte W03 - .byte N03 - .byte W03 - .byte N03 - .byte W03 - .byte N03 - .byte W03 - .byte N03 - .byte W03 - .byte N03 - .byte W03 - .byte N06 - .byte En1 - .byte v096 - .byte N24 - .byte Bn2 - .byte v100 - .byte W18 - .byte N06 - .byte En1 - .byte v096 - .byte W06 - .byte N06 - .byte W12 - .byte N06 - .byte W06 - .byte N06 - .byte W06 - .byte En1 - .byte v120 - .byte N24 - .byte Bn2 - .byte v100 - .byte W48 - .byte FINE - -@ *************************************** - .align 2 -mus_me_bachi: @ 86BD358 - .byte 7 - .byte 0 - .byte mus_me_bachi_pri - .byte mus_me_bachi_rev - .word mus_me_bachi_grp - - .word mus_me_bachi_1 - .word mus_me_bachi_2 - .word mus_me_bachi_3 - .word mus_me_bachi_4 - .word mus_me_bachi_5 - .word mus_me_bachi_6 - .word mus_me_bachi_7 diff --git a/sound/songs/mus_me_kinomi.s b/sound/songs/mus_me_kinomi.s deleted file mode 100644 index eb584945a..000000000 --- a/sound/songs/mus_me_kinomi.s +++ /dev/null @@ -1,180 +0,0 @@ - .include "MPlayDef.s" - .section .rodata - .global mus_me_kinomi - .align 2 - .equ mus_me_kinomi_grp, voicegroup012 - .equ mus_me_kinomi_pri, 5 - .equ mus_me_kinomi_rev, reverb_set+50 - -mus_me_kinomi_1: @ 86BD508 - .byte KEYSH, 0x00 - .byte W12 - .byte TEMPO, 0x46 - .byte VOICE, 0x0D - .byte PAN, 0x36 - .byte VOL, 0x5A - .byte N04 - .byte Fn4 - .byte v092 - .byte W04 - .byte Fn4 - .byte v080 - .byte W04 - .byte N04 - .byte W04 - .byte Cn4 - .byte v092 - .byte W04 - .byte Cn4 - .byte v080 - .byte W04 - .byte N04 - .byte W04 - .byte Cn5 - .byte v092 - .byte W08 - .byte Dn5 - .byte W08 - .byte Cn5 - .byte W08 - .byte Fn5 - .byte W04 - .byte Fn5 - .byte v080 - .byte W04 - .byte N04 - .byte W04 - .byte N04 - .byte W36 - .byte FINE - -mus_me_kinomi_2: @ 86BD535 - .byte KEYSH, 0x00 - .byte W12 - .byte VOICE, 0x0D - .byte PAN, 0x5F - .byte VOL, 0x5A - .byte W24 - .byte N04 - .byte Gn4 - .byte v092 - .byte W08 - .byte As4 - .byte W08 - .byte Gn4 - .byte W08 - .byte N16 - .byte An4 - .byte W48 - .byte FINE - -mus_me_kinomi_3: @ 86BD54B - .byte KEYSH, 0x00 - .byte W12 - .byte VOICE, 0x01 - .byte VOL, 0x5A - .byte PAN, 0x20 - .byte N24 - .byte Fn3 - .byte v080 - .byte W24 - .byte N04 - .byte Gn3 - .byte W08 - .byte N04 - .byte W08 - .byte N04 - .byte W08 - .byte N16 - .byte Fn3 - .byte W48 - .byte FINE - -mus_me_kinomi_4: @ 86BD563 - .byte KEYSH, 0x00 - .byte W12 - .byte VOICE, 0x01 - .byte VOL, 0x5A - .byte PAN, 0x40 - .byte N24 - .byte An2 - .byte v080 - .byte W24 - .byte N04 - .byte As2 - .byte W08 - .byte N04 - .byte W08 - .byte N04 - .byte W08 - .byte N16 - .byte An2 - .byte W48 - .byte FINE - -mus_me_kinomi_5: @ 86BD57B - .byte KEYSH, 0x00 - .byte W12 - .byte VOICE, 0x64 - .byte VOL, 0x5A - .byte PAN, 0x40 - .byte N04 - .byte Cn5 - .byte v060 - .byte W08 - .byte PAN, 0x0F - .byte N04 - .byte Cn5 - .byte v020 - .byte W16 - .byte VOICE, 0x65 - .byte PAN, 0x3F - .byte N04 - .byte As3 - .byte v060 - .byte W08 - .byte Gn3 - .byte W08 - .byte PAN, 0x72 - .byte N04 - .byte Gn3 - .byte v020 - .byte W08 - .byte VOICE, 0x64 - .byte PAN, 0x40 - .byte N04 - .byte An3 - .byte v060 - .byte W08 - .byte PAN, 0x10 - .byte N04 - .byte An3 - .byte v020 - .byte W16 - .byte VOICE, 0x65 - .byte PAN, 0x40 - .byte N04 - .byte An3 - .byte v060 - .byte W08 - .byte PAN, 0x72 - .byte N04 - .byte An3 - .byte v020 - .byte W16 - .byte FINE - -@ *************************************** - .align 2 -mus_me_kinomi: @ 86BD5BC - .byte 5 - .byte 0 - .byte mus_me_kinomi_pri - .byte mus_me_kinomi_rev - .word mus_me_kinomi_grp - - .word mus_me_kinomi_1 - .word mus_me_kinomi_2 - .word mus_me_kinomi_3 - .word mus_me_kinomi_4 - .word mus_me_kinomi_5 diff --git a/sound/songs/mus_me_shinka.s b/sound/songs/mus_me_shinka.s deleted file mode 100644 index 3596df70d..000000000 --- a/sound/songs/mus_me_shinka.s +++ /dev/null @@ -1,87 +0,0 @@ - .include "MPlayDef.s" - .section .rodata - .global mus_me_shinka - .align 2 - .equ mus_me_shinka_grp, voicegroup026 - .equ mus_me_shinka_pri, 1 - .equ mus_me_shinka_rev, reverb_set+50 - -mus_me_shinka_1: @ 86BD5D8 - .byte KEYSH, 0x00 - .byte TEMPO, 0x3C - .byte VOICE, 0x2F - .byte VOL, 0x50 - .byte PAN, 0x38 - .byte N24 - .byte Dn2 - .byte v127 - .byte W48 - .byte FINE - -mus_me_shinka_2: @ 86BD5E7 - .byte KEYSH, 0x00 - .byte VOICE, 0x50 - .byte VOL, 0x50 - .byte XCMD, 0x08 - .byte GsM2 - .byte v009 - .byte GsM2 - .byte PAN, 0x40 - .byte N06 - .byte Gn4 - .byte v080 - .byte W06 - .byte Dn4 - .byte W06 - .byte Gn4 - .byte W06 - .byte Dn4 - .byte W30 - .byte FINE - -mus_me_shinka_3: @ 86BD5FF - .byte KEYSH, 0x00 - .byte VOICE, 0x52 - .byte XCMD, 0x08 - .byte GsM2 - .byte v009 - .byte GsM2 - .byte VOL, 0x50 - .byte BEND, 0x42 - .byte W06 - .byte N06 - .byte Gn4 - .byte v032 - .byte W06 - .byte Dn4 - .byte W06 - .byte Gn4 - .byte W06 - .byte Dn4 - .byte W24 - .byte FINE - -mus_me_shinka_4: @ 86BD618 - .byte KEYSH, 0x00 - .byte VOICE, 0x00 - .byte VOL, 0x50 - .byte PAN, 0x57 - .byte N48 - .byte Bn2 - .byte v100 - .byte W48 - .byte FINE - -@ *************************************** - .align 2 -mus_me_shinka: @ 86BD628 - .byte 4 - .byte 0 - .byte mus_me_shinka_pri - .byte mus_me_shinka_rev - .word mus_me_shinka_grp - - .word mus_me_shinka_1 - .word mus_me_shinka_2 - .word mus_me_shinka_3 - .word mus_me_shinka_4 diff --git a/sound/songs/mus_me_waza.s b/sound/songs/mus_me_waza.s deleted file mode 100644 index 1cd177835..000000000 --- a/sound/songs/mus_me_waza.s +++ /dev/null @@ -1,362 +0,0 @@ - .include "MPlayDef.s" - .section .rodata - .global mus_me_waza - .align 2 - .equ mus_me_waza_grp, voicegroup012 - .equ mus_me_waza_pri, 5 - .equ mus_me_waza_rev, reverb_set+50 - -mus_me_waza_1: @ 86BD37C - .byte KEYSH, 0x00 - .byte W12 - .byte TEMPO, 0x46 - .byte VOICE, 0x49 - .byte PAN, 0x11 - .byte VOL, 0x5A - .byte N06 - .byte Dn4 - .byte v096 - .byte W12 - .byte Gn3 - .byte W06 - .byte Bn3 - .byte W06 - .byte N30 - .byte Dn4 - .byte W12 - .byte MOD, 0x06 - .byte W18 - .byte CnM2 - .byte W06 - .byte N06 - .byte Cn4 - .byte W12 - .byte Dn4 - .byte W12 - .byte En4 - .byte W12 - .byte N48 - .byte Fs4 - .byte W18 - .byte MOD, 0x06 - .byte W06 - .byte W24 - .byte W24 - .byte FINE - -mus_me_waza_2: @ 86BD3A7 - .byte KEYSH, 0x00 - .byte W12 - .byte VOICE, 0x49 - .byte PAN, 0x40 - .byte VOL, 0x5A - .byte N06 - .byte Gn4 - .byte v116 - .byte W12 - .byte Dn4 - .byte W06 - .byte Gn4 - .byte W06 - .byte N30 - .byte Bn4 - .byte W12 - .byte MOD, 0x06 - .byte W18 - .byte CnM2 - .byte W06 - .byte N06 - .byte An4 - .byte W12 - .byte Bn4 - .byte W12 - .byte Cn5 - .byte W12 - .byte N48 - .byte Dn5 - .byte W18 - .byte MOD, 0x06 - .byte W06 - .byte W24 - .byte W24 - .byte FINE - -mus_me_waza_3: @ 86BD3D0 - .byte KEYSH, 0x00 - .byte W12 - .byte VOICE, 0x3A - .byte VOL, 0x5A - .byte N12 - .byte Gn1 - .byte v120 - .byte W24 - .byte N12 - .byte W24 - .byte Fn1 - .byte W24 - .byte N12 - .byte W24 - .byte N48 - .byte Dn1 - .byte W24 - .byte W24 - .byte W24 - .byte FINE - -mus_me_waza_4: @ 86BD3E7 - .byte KEYSH, 0x00 - .byte W12 - .byte VOICE, 0x52 - .byte XCMD, 0x08 - .byte GsM2 - .byte v009 - .byte GsM2 - .byte PAN, 0x40 - .byte VOL, 0x5A - .byte N12 - .byte Dn3 - .byte v056 - .byte W24 - .byte N12 - .byte W12 - .byte N06 - .byte Gn2 - .byte v068 - .byte W06 - .byte Bn2 - .byte W06 - .byte N12 - .byte Fn3 - .byte v056 - .byte W24 - .byte N24 - .byte W03 - .byte VOL, 0x4F - .byte W03 - .byte En4 - .byte W02 - .byte Gn4 - .byte W04 - .byte Gs4 - .byte W02 - .byte Bn4 - .byte W03 - .byte Dn5 - .byte W03 - .byte Fs5 - .byte W04 - .byte N06 - .byte An2 - .byte v048 - .byte W06 - .byte Dn3 - .byte W06 - .byte Fs3 - .byte W06 - .byte An3 - .byte W06 - .byte N08 - .byte Dn4 - .byte W08 - .byte Fs4 - .byte W08 - .byte An4 - .byte W08 - .byte N06 - .byte Dn5 - .byte W24 - .byte FINE - -mus_me_waza_5: @ 86BD42B - .byte KEYSH, 0x00 - .byte W12 - .byte VOICE, 0x53 - .byte XCMD, 0x08 - .byte GsM2 - .byte v009 - .byte GsM2 - .byte PAN, 0x70 - .byte VOL, 0x5A - .byte N12 - .byte Bn2 - .byte v048 - .byte W24 - .byte N12 - .byte W12 - .byte N06 - .byte Dn2 - .byte v056 - .byte W06 - .byte Gn2 - .byte W06 - .byte N12 - .byte Cn3 - .byte v048 - .byte W24 - .byte N24 - .byte W03 - .byte VOL, 0x4F - .byte W03 - .byte En4 - .byte W02 - .byte Gn4 - .byte W04 - .byte Gs4 - .byte W02 - .byte Bn4 - .byte W03 - .byte Dn5 - .byte W03 - .byte Fs5 - .byte W04 - .byte BEND, 0x3E - .byte W02 - .byte N06 - .byte An2 - .byte v024 - .byte W06 - .byte Dn3 - .byte W06 - .byte Fs3 - .byte W06 - .byte An3 - .byte W04 - .byte W02 - .byte N08 - .byte Dn4 - .byte W08 - .byte Fs4 - .byte W08 - .byte An4 - .byte W06 - .byte W02 - .byte N06 - .byte Dn5 - .byte W22 - .byte FINE - -mus_me_waza_6: @ 86BD474 - .byte KEYSH, 0x00 - .byte W12 - .byte VOICE, 0x57 - .byte VOL, 0x5A - .byte PAN, 0x70 - .byte N12 - .byte Gn2 - .byte v048 - .byte W24 - .byte N12 - .byte W24 - .byte Fn2 - .byte W24 - .byte N12 - .byte W24 - .byte N36 - .byte Dn2 - .byte W24 - .byte W12 - .byte N12 - .byte Dn2 - .byte v024 - .byte W12 - .byte W24 - .byte FINE - -mus_me_waza_7: @ 86BD491 - .byte KEYSH, 0x00 - .byte W12 - .byte VOICE, 0x00 - .byte VOL, 0x5A - .byte N04 - .byte En1 - .byte v100 - .byte W12 - .byte N04 - .byte W04 - .byte En1 - .byte v068 - .byte W04 - .byte N04 - .byte W04 - .byte En1 - .byte v100 - .byte W12 - .byte N04 - .byte W04 - .byte En1 - .byte v072 - .byte W04 - .byte N04 - .byte W04 - .byte En1 - .byte v100 - .byte W12 - .byte N04 - .byte W04 - .byte En1 - .byte v072 - .byte W04 - .byte N04 - .byte W04 - .byte En1 - .byte v100 - .byte W08 - .byte N04 - .byte W08 - .byte N04 - .byte W08 - .byte N04 - .byte W04 - .byte En1 - .byte v040 - .byte W04 - .byte N04 - .byte W04 - .byte En1 - .byte v044 - .byte W04 - .byte N04 - .byte W04 - .byte N04 - .byte W04 - .byte En1 - .byte v072 - .byte W04 - .byte En1 - .byte v048 - .byte W04 - .byte En1 - .byte v056 - .byte W04 - .byte En1 - .byte v060 - .byte W04 - .byte En1 - .byte v064 - .byte W04 - .byte N05 - .byte En1 - .byte v068 - .byte W04 - .byte W02 - .byte En1 - .byte v104 - .byte W22 - .byte FINE - -@ *************************************** - .align 2 -mus_me_waza: @ 86BD4E4 - .byte 7 - .byte 0 - .byte mus_me_waza_pri - .byte mus_me_waza_rev - .word mus_me_waza_grp - - .word mus_me_waza_1 - .word mus_me_waza_2 - .word mus_me_waza_3 - .word mus_me_waza_4 - .word mus_me_waza_5 - .word mus_me_waza_6 - .word mus_me_waza_7 diff --git a/sound/songs/mus_p_school.s b/sound/songs/mus_p_school.s deleted file mode 100644 index c8a01ba95..000000000 --- a/sound/songs/mus_p_school.s +++ /dev/null @@ -1,768 +0,0 @@ - .include "MPlayDef.s" - .section .rodata - .global mus_p_school - .align 2 - .equ mus_p_school_grp, voicegroup081 - .equ mus_p_school_pri, 1 - .equ mus_p_school_rev, reverb_set+50 - -mus_p_school_1: @ 86BFA90 - .byte KEYSH, 0x00 -mus_p_school_1_86BFA92: @ 86BFA92 - .byte TEMPO, 0x3A - .byte VOICE, 0x01 - .byte LFOS, 0x2C - .byte VOL, 0x57 - .byte PAN, 0x44 - .byte LFOS, 0x2C - .byte BENDR, 0x0C - .byte VOL, 0x60 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W96 - .byte W84 - .byte N06 - .byte En3 - .byte v064 - .byte W12 - .byte W60 - .byte Gn3 - .byte W24 - .byte N06 - .byte W12 - .byte W12 - .byte An3 - .byte W24 - .byte N06 - .byte W24 - .byte N06 - .byte W12 - .byte N18 - .byte En3 - .byte W24 - .byte GOTO - .word mus_p_school_1_86BFA92 - .byte FINE - -mus_p_school_2: @ 86BFACB - .byte VOL, 0x64 - .byte KEYSH, 0x00 -mus_p_school_2_86BFACF: @ 86BFACF - .byte VOICE, 0x01 - .byte LFOS, 0x2C - .byte BENDR, 0x0C - .byte W96 - .byte W84 - .byte N06 - .byte Fs4 - .byte v064 - .byte W06 - .byte Gn4 - .byte W06 - .byte An4 - .byte W12 - .byte N06 - .byte W12 - .byte N06 - .byte W06 - .byte Gn4 - .byte W06 - .byte Fs4 - .byte W06 - .byte Gn4 - .byte W06 - .byte N24 - .byte An4 - .byte W24 - .byte N06 - .byte Dn5 - .byte W12 - .byte En4 - .byte W06 - .byte Fs4 - .byte W06 - .byte Gn4 - .byte W12 - .byte N06 - .byte W12 - .byte N06 - .byte W06 - .byte Fs4 - .byte W06 - .byte En4 - .byte W06 - .byte Fs4 - .byte W06 - .byte N24 - .byte Gn4 - .byte W24 - .byte N06 - .byte Cs5 - .byte W12 - .byte Dn4 - .byte W06 - .byte En4 - .byte W06 - .byte Fs4 - .byte W12 - .byte N06 - .byte W12 - .byte N06 - .byte W06 - .byte En4 - .byte W06 - .byte Dn4 - .byte W06 - .byte En4 - .byte W06 - .byte Fs4 - .byte W12 - .byte Bn4 - .byte W12 - .byte Dn5 - .byte W12 - .byte Bn4 - .byte W12 - .byte Gn4 - .byte W24 - .byte Bn3 - .byte W12 - .byte Dn4 - .byte W12 - .byte Cs4 - .byte W12 - .byte Dn4 - .byte W12 - .byte En4 - .byte W12 - .byte Fs4 - .byte W06 - .byte Gn4 - .byte W06 - .byte An4 - .byte W12 - .byte N06 - .byte W12 - .byte N03 - .byte W03 - .byte Bn4 - .byte W03 - .byte N06 - .byte An4 - .byte W06 - .byte Fs4 - .byte W06 - .byte Gn4 - .byte W06 - .byte N24 - .byte An4 - .byte W24 - .byte N06 - .byte Dn5 - .byte W12 - .byte En4 - .byte W06 - .byte Fs4 - .byte W06 - .byte Gn4 - .byte W12 - .byte N06 - .byte W12 - .byte N03 - .byte W03 - .byte An4 - .byte W03 - .byte N06 - .byte Gn4 - .byte W06 - .byte En4 - .byte W06 - .byte Fs4 - .byte W06 - .byte N24 - .byte Gn4 - .byte W24 - .byte N06 - .byte Cs5 - .byte W12 - .byte Dn4 - .byte W06 - .byte En4 - .byte W06 - .byte Fs4 - .byte W12 - .byte N06 - .byte W12 - .byte N03 - .byte W03 - .byte Gn4 - .byte W03 - .byte N06 - .byte Fs4 - .byte W06 - .byte Dn4 - .byte W06 - .byte En4 - .byte W06 - .byte Fs4 - .byte W12 - .byte Bn4 - .byte W12 - .byte Cs5 - .byte W12 - .byte Dn5 - .byte W12 - .byte En5 - .byte W12 - .byte Bn4 - .byte W12 - .byte N06 - .byte W06 - .byte Dn5 - .byte W06 - .byte N03 - .byte Cs5 - .byte W03 - .byte Dn5 - .byte W03 - .byte N06 - .byte Bn4 - .byte W06 - .byte Cs5 - .byte W12 - .byte Dn5 - .byte W12 - .byte En5 - .byte W24 - .byte W12 - .byte N12 - .byte Bn4 - .byte W12 - .byte N06 - .byte Cs5 - .byte W12 - .byte Dn5 - .byte W12 - .byte Cs5 - .byte W12 - .byte Bn4 - .byte W12 - .byte An4 - .byte W12 - .byte Gs4 - .byte W12 - .byte An4 - .byte W24 - .byte Bn4 - .byte W12 - .byte En4 - .byte W06 - .byte Bn4 - .byte W06 - .byte N48 - .byte Cs5 - .byte W36 - .byte N06 - .byte En3 - .byte W12 - .byte W12 - .byte N12 - .byte Bn4 - .byte W12 - .byte N06 - .byte Cs5 - .byte W12 - .byte Dn5 - .byte W12 - .byte En5 - .byte W12 - .byte Gn3 - .byte N06 - .byte Bn4 - .byte W12 - .byte Cs5 - .byte W12 - .byte Gn3 - .byte N06 - .byte Dn5 - .byte W12 - .byte Cs5 - .byte W24 - .byte Bn4 - .byte W12 - .byte N03 - .byte Cs5 - .byte W03 - .byte Dn5 - .byte W03 - .byte N06 - .byte Bn4 - .byte W06 - .byte N48 - .byte An4 - .byte W48 - .byte W12 - .byte N12 - .byte Bn4 - .byte W12 - .byte N06 - .byte Cs5 - .byte W12 - .byte Dn5 - .byte W12 - .byte Cs5 - .byte W12 - .byte N03 - .byte Bn4 - .byte W03 - .byte Cs5 - .byte W03 - .byte N06 - .byte Bn4 - .byte W06 - .byte An4 - .byte W12 - .byte Gs4 - .byte W12 - .byte An4 - .byte W06 - .byte En4 - .byte W06 - .byte An4 - .byte W06 - .byte Bn4 - .byte W06 - .byte Cs5 - .byte W06 - .byte An4 - .byte W06 - .byte Cs5 - .byte W06 - .byte Dn5 - .byte W06 - .byte N48 - .byte En5 - .byte W48 - .byte W12 - .byte N12 - .byte Bn4 - .byte W12 - .byte N06 - .byte Cs5 - .byte W12 - .byte Dn5 - .byte W12 - .byte En5 - .byte W12 - .byte N03 - .byte Dn5 - .byte W03 - .byte En5 - .byte W03 - .byte N06 - .byte Dn5 - .byte W06 - .byte Cs5 - .byte W12 - .byte Bn4 - .byte W12 - .byte Cs5 - .byte W12 - .byte An4 - .byte W12 - .byte N06 - .byte W06 - .byte Gs4 - .byte W06 - .byte An4 - .byte W06 - .byte Bn4 - .byte W06 - .byte Cs5 - .byte W06 - .byte Bn4 - .byte W06 - .byte Cs5 - .byte W06 - .byte Dn5 - .byte W06 - .byte N18 - .byte En5 - .byte W24 - .byte GOTO - .word mus_p_school_2_86BFACF - .byte FINE - -mus_p_school_3: @ 86BFC2D - .byte VOL, 0x64 - .byte KEYSH, 0x00 -mus_p_school_3_86BFC31: @ 86BFC31 - .byte VOICE, 0x01 - .byte BENDR, 0x0C - .byte LFOS, 0x2C - .byte BENDR, 0x0C - .byte LFOS, 0x2C - .byte N06 - .byte Dn2 - .byte v064 - .byte W12 - .byte An2 - .byte W12 - .byte An1 - .byte W12 - .byte An2 - .byte W12 - .byte Bn1 - .byte W12 - .byte An2 - .byte W12 - .byte Cs2 - .byte W12 - .byte An2 - .byte W12 -mus_p_school_3_86BFC4D: @ 86BFC4D - .byte N06 - .byte Dn2 - .byte v064 - .byte W12 - .byte An2 - .byte W12 - .byte An1 - .byte W12 - .byte An2 - .byte W12 - .byte Bn1 - .byte W12 - .byte An2 - .byte W12 - .byte Cs2 - .byte W12 - .byte An2 - .byte W12 - .byte PEND - .byte PATT - .word mus_p_school_3_86BFC4D -mus_p_school_3_86BFC65: @ 86BFC65 - .byte N06 - .byte En2 - .byte v064 - .byte W12 - .byte Bn2 - .byte W12 - .byte Bn1 - .byte W12 - .byte Bn2 - .byte W12 - .byte Cs2 - .byte W12 - .byte Cs3 - .byte W12 - .byte An1 - .byte W12 - .byte Cs3 - .byte W12 - .byte PEND -mus_p_school_3_86BFC78: @ 86BFC78 - .byte N06 - .byte Bn1 - .byte v064 - .byte W12 - .byte Bn2 - .byte W12 - .byte As1 - .byte W12 - .byte Bn2 - .byte W12 - .byte An1 - .byte W12 - .byte Bn2 - .byte W12 - .byte Gs1 - .byte W12 - .byte Bn2 - .byte W12 - .byte PEND -mus_p_school_3_86BFC8B: @ 86BFC8B - .byte N06 - .byte Gn1 - .byte v064 - .byte W12 - .byte Bn2 - .byte W12 - .byte Gn1 - .byte W12 - .byte Bn2 - .byte W12 - .byte An1 - .byte W12 - .byte Cs3 - .byte W12 - .byte An1 - .byte W12 - .byte Cs3 - .byte W12 - .byte PEND - .byte PATT - .word mus_p_school_3_86BFC4D - .byte PATT - .word mus_p_school_3_86BFC65 - .byte PATT - .word mus_p_school_3_86BFC78 - .byte PATT - .word mus_p_school_3_86BFC8B -mus_p_school_3_86BFCB2: @ 86BFCB2 - .byte N06 - .byte Gn2 - .byte v064 - .byte W12 - .byte Bn3 - .byte W12 - .byte Dn2 - .byte W12 - .byte Bn3 - .byte W12 - .byte Gn2 - .byte W12 - .byte Bn3 - .byte W12 - .byte Dn2 - .byte W12 - .byte Bn3 - .byte W12 - .byte PEND -mus_p_school_3_86BFCC5: @ 86BFCC5 - .byte N06 - .byte An2 - .byte v064 - .byte W12 - .byte En3 - .byte W12 - .byte En2 - .byte W12 - .byte En3 - .byte W12 - .byte An2 - .byte W12 - .byte En3 - .byte W12 - .byte An2 - .byte W12 - .byte Gs2 - .byte W12 - .byte PEND -mus_p_school_3_86BFCD8: @ 86BFCD8 - .byte N06 - .byte Gn2 - .byte v064 - .byte W12 - .byte Gn3 - .byte W12 - .byte En2 - .byte W12 - .byte Gn3 - .byte W12 - .byte Gn2 - .byte W12 - .byte Fs2 - .byte W12 - .byte Gn2 - .byte W12 - .byte Gs2 - .byte W12 - .byte PEND - .byte An2 - .byte W12 - .byte An3 - .byte W12 - .byte En2 - .byte W12 - .byte An3 - .byte W12 - .byte An2 - .byte W12 - .byte An3 - .byte W12 - .byte En2 - .byte W12 - .byte An3 - .byte W12 - .byte PATT - .word mus_p_school_3_86BFCB2 - .byte PATT - .word mus_p_school_3_86BFCC5 - .byte PATT - .word mus_p_school_3_86BFCD8 - .byte N06 - .byte An2 - .byte v064 - .byte W24 - .byte En2 - .byte W24 - .byte An2 - .byte W24 - .byte N12 - .byte An1 - .byte W12 - .byte Cs2 - .byte W12 - .byte GOTO - .word mus_p_school_3_86BFC31 - .byte FINE - -mus_p_school_4: @ 86BFD1D - .byte VOL, 0x64 - .byte KEYSH, 0x00 -mus_p_school_4_86BFD21: @ 86BFD21 - .byte VOICE, 0x01 - .byte LFOS, 0x2C - .byte BENDR, 0x0C - .byte W12 - .byte N06 - .byte Fs3 - .byte v064 - .byte W24 - .byte N06 - .byte W24 - .byte N06 - .byte W24 - .byte N06 - .byte W12 -mus_p_school_4_86BFD32: @ 86BFD32 - .byte W12 - .byte N06 - .byte Fs3 - .byte v064 - .byte W24 - .byte N06 - .byte W24 - .byte N06 - .byte W24 - .byte N06 - .byte W12 - .byte PEND - .byte PATT - .word mus_p_school_4_86BFD32 -mus_p_school_4_86BFD43: @ 86BFD43 - .byte W12 - .byte N06 - .byte Gn3 - .byte v064 - .byte W24 - .byte N06 - .byte W24 - .byte N06 - .byte W24 - .byte N06 - .byte W12 - .byte PEND - .byte PATT - .word mus_p_school_4_86BFD32 -mus_p_school_4_86BFD54: @ 86BFD54 - .byte W12 - .byte N06 - .byte Gn3 - .byte v064 - .byte W24 - .byte N06 - .byte W24 - .byte An3 - .byte W24 - .byte N06 - .byte W12 - .byte PEND - .byte PATT - .word mus_p_school_4_86BFD32 - .byte PATT - .word mus_p_school_4_86BFD43 - .byte PATT - .word mus_p_school_4_86BFD32 - .byte PATT - .word mus_p_school_4_86BFD54 -mus_p_school_4_86BFD74: @ 86BFD74 - .byte W12 - .byte N06 - .byte Dn4 - .byte v064 - .byte W24 - .byte N06 - .byte W24 - .byte N06 - .byte W24 - .byte N06 - .byte W12 - .byte PEND -mus_p_school_4_86BFD80: @ 86BFD80 - .byte W12 - .byte N06 - .byte Cs4 - .byte v064 - .byte W24 - .byte N06 - .byte W24 - .byte N06 - .byte W24 - .byte N06 - .byte W12 - .byte PEND -mus_p_school_4_86BFD8C: @ 86BFD8C - .byte W12 - .byte N06 - .byte Bn3 - .byte v064 - .byte W24 - .byte N06 - .byte W24 - .byte N06 - .byte W24 - .byte N06 - .byte W12 - .byte PEND - .byte PATT - .word mus_p_school_4_86BFD80 - .byte PATT - .word mus_p_school_4_86BFD74 - .byte PATT - .word mus_p_school_4_86BFD80 - .byte PATT - .word mus_p_school_4_86BFD8C - .byte W12 - .byte N06 - .byte Cs4 - .byte v064 - .byte W24 - .byte N06 - .byte W24 - .byte N06 - .byte W12 - .byte N18 - .byte An3 - .byte W24 - .byte GOTO - .word mus_p_school_4_86BFD21 - .byte FINE - -@ *************************************** - .align 2 -mus_p_school: @ 86BFDC0 - .byte 4 - .byte 0 - .byte mus_p_school_pri - .byte mus_p_school_rev - .word mus_p_school_grp - - .word mus_p_school_1 - .word mus_p_school_2 - .word mus_p_school_3 - .word mus_p_school_4 diff --git a/sound/songs/mus_shinka.s b/sound/songs/mus_shinka.s deleted file mode 100644 index b80f1fdb9..000000000 --- a/sound/songs/mus_shinka.s +++ /dev/null @@ -1,1172 +0,0 @@ - .include "MPlayDef.s" - .section .rodata - .global mus_shinka - .align 2 - .equ mus_shinka_grp, voicegroup026 - .equ mus_shinka_pri, 1 - .equ mus_shinka_rev, reverb_set+50 - -mus_shinka_1: @ 86BD640 - .byte KEYSH, 0x00 - .byte TEMPO, 0x3C - .byte VOICE, 0x3C - .byte VOL, 0x50 - .byte N06 - .byte Gn3 - .byte v080 - .byte W24 - .byte Gn3 - .byte v056 - .byte W24 - .byte Gn3 - .byte v060 - .byte W24 - .byte Gn3 - .byte v064 - .byte W24 -mus_shinka_1_86BD655: @ 86BD655 - .byte N06 - .byte Gn3 - .byte v068 - .byte W24 - .byte Gn3 - .byte v072 - .byte W24 - .byte Gn3 - .byte v076 - .byte W24 - .byte N24 - .byte An3 - .byte v080 - .byte W09 - .byte MOD, 0x06 - .byte W15 - .byte PEND -mus_shinka_1_86BD667: @ 86BD667 - .byte MOD, 0x00 - .byte N06 - .byte Gn3 - .byte v080 - .byte W24 - .byte Gn3 - .byte v056 - .byte W24 - .byte Gn3 - .byte v060 - .byte W24 - .byte Gn3 - .byte v064 - .byte W24 - .byte PEND -mus_shinka_1_86BD677: @ 86BD677 - .byte N06 - .byte Gn3 - .byte v068 - .byte W24 - .byte Gn3 - .byte v072 - .byte W24 - .byte Gn3 - .byte v076 - .byte W24 - .byte N24 - .byte Bn3 - .byte v080 - .byte W09 - .byte MOD, 0x06 - .byte W15 - .byte PEND - .byte PATT - .word mus_shinka_1_86BD667 - .byte PATT - .word mus_shinka_1_86BD655 - .byte PATT - .word mus_shinka_1_86BD667 - .byte PATT - .word mus_shinka_1_86BD677 -mus_shinka_1_86BD69D: @ 86BD69D - .byte MOD, 0x00 - .byte N06 - .byte An3 - .byte v080 - .byte W24 - .byte An3 - .byte v056 - .byte W24 - .byte An3 - .byte v060 - .byte W24 - .byte An3 - .byte v064 - .byte W24 - .byte PEND -mus_shinka_1_86BD6AD: @ 86BD6AD - .byte N06 - .byte An3 - .byte v068 - .byte W24 - .byte An3 - .byte v072 - .byte W24 - .byte An3 - .byte v076 - .byte W24 - .byte N24 - .byte Bn3 - .byte v080 - .byte W09 - .byte MOD, 0x06 - .byte W15 - .byte PEND - .byte PATT - .word mus_shinka_1_86BD69D -mus_shinka_1_86BD6C4: @ 86BD6C4 - .byte N06 - .byte An3 - .byte v068 - .byte W24 - .byte An3 - .byte v072 - .byte W24 - .byte An3 - .byte v076 - .byte W24 - .byte N24 - .byte Cs4 - .byte v080 - .byte W09 - .byte MOD, 0x06 - .byte W15 - .byte PEND - .byte PATT - .word mus_shinka_1_86BD69D - .byte PATT - .word mus_shinka_1_86BD6AD - .byte PATT - .word mus_shinka_1_86BD69D - .byte PATT - .word mus_shinka_1_86BD6C4 - .byte GOTO - .word mus_shinka_1_86BD69D - .byte MOD, 0x00 - .byte FINE - -mus_shinka_2: @ 86BD6F2 - .byte KEYSH, 0x00 - .byte VOICE, 0x3C - .byte PAN, 0x50 - .byte VOL, 0x50 - .byte N06 - .byte Cn3 - .byte v080 - .byte W24 - .byte Dn3 - .byte v056 - .byte W24 - .byte Cn3 - .byte v060 - .byte W24 - .byte Dn3 - .byte v064 - .byte W24 -mus_shinka_2_86BD707: @ 86BD707 - .byte N06 - .byte Cn3 - .byte v068 - .byte W24 - .byte Dn3 - .byte v072 - .byte W24 - .byte Cn3 - .byte v076 - .byte W24 - .byte N24 - .byte Dn3 - .byte v080 - .byte W09 - .byte MOD, 0x06 - .byte W15 - .byte PEND -mus_shinka_2_86BD719: @ 86BD719 - .byte MOD, 0x00 - .byte N06 - .byte Cn3 - .byte v080 - .byte W24 - .byte Dn3 - .byte v056 - .byte W24 - .byte Cn3 - .byte v060 - .byte W24 - .byte Dn3 - .byte v064 - .byte W24 - .byte PEND -mus_shinka_2_86BD729: @ 86BD729 - .byte N06 - .byte Cn3 - .byte v068 - .byte W24 - .byte Dn3 - .byte v072 - .byte W24 - .byte Cn3 - .byte v076 - .byte W24 - .byte N24 - .byte Fs3 - .byte v080 - .byte W09 - .byte MOD, 0x06 - .byte W15 - .byte PEND - .byte PATT - .word mus_shinka_2_86BD719 - .byte PATT - .word mus_shinka_2_86BD707 - .byte PATT - .word mus_shinka_2_86BD719 - .byte PATT - .word mus_shinka_2_86BD729 -mus_shinka_2_86BD74F: @ 86BD74F - .byte MOD, 0x00 - .byte N06 - .byte Dn3 - .byte v080 - .byte W24 - .byte En3 - .byte v056 - .byte W24 - .byte Dn3 - .byte v060 - .byte W24 - .byte En3 - .byte v064 - .byte W24 - .byte PEND -mus_shinka_2_86BD75F: @ 86BD75F - .byte N06 - .byte Dn3 - .byte v068 - .byte W24 - .byte En3 - .byte v072 - .byte W24 - .byte Dn3 - .byte v076 - .byte W24 - .byte N24 - .byte En3 - .byte v080 - .byte W09 - .byte MOD, 0x06 - .byte W15 - .byte PEND - .byte PATT - .word mus_shinka_2_86BD74F -mus_shinka_2_86BD776: @ 86BD776 - .byte N06 - .byte Dn3 - .byte v068 - .byte W24 - .byte En3 - .byte v072 - .byte W24 - .byte Dn3 - .byte v076 - .byte W24 - .byte N24 - .byte Gs3 - .byte v080 - .byte W09 - .byte MOD, 0x06 - .byte W15 - .byte PEND - .byte PATT - .word mus_shinka_2_86BD74F - .byte PATT - .word mus_shinka_2_86BD75F - .byte PATT - .word mus_shinka_2_86BD74F - .byte PATT - .word mus_shinka_2_86BD776 - .byte GOTO - .word mus_shinka_2_86BD74F - .byte MOD, 0x00 - .byte FINE - -mus_shinka_3: @ 86BD7A4 - .byte KEYSH, 0x00 - .byte VOICE, 0x51 - .byte VOL, 0x50 - .byte N06 - .byte Cn1 - .byte v080 - .byte W24 - .byte Dn1 - .byte W24 - .byte Cn1 - .byte W24 - .byte Dn1 - .byte W24 -mus_shinka_3_86BD7B4: @ 86BD7B4 - .byte N06 - .byte Cn1 - .byte v080 - .byte W24 - .byte Dn1 - .byte W24 - .byte Cn1 - .byte W24 - .byte N24 - .byte Dn1 - .byte W24 - .byte PEND - .byte N06 - .byte Cn1 - .byte W24 - .byte Dn1 - .byte W24 - .byte Cn1 - .byte W24 - .byte Dn1 - .byte W24 - .byte PATT - .word mus_shinka_3_86BD7B4 -mus_shinka_3_86BD7CE: @ 86BD7CE - .byte N03 - .byte Cn2 - .byte v080 - .byte W12 - .byte Cn1 - .byte W06 - .byte Gn1 - .byte W06 - .byte Dn2 - .byte W12 - .byte Dn1 - .byte W06 - .byte Gn1 - .byte W06 - .byte Cn2 - .byte W12 - .byte Cn1 - .byte W06 - .byte Gn1 - .byte W06 - .byte Dn2 - .byte W12 - .byte Dn1 - .byte W06 - .byte Gn1 - .byte W06 - .byte PEND - .byte PATT - .word mus_shinka_3_86BD7CE - .byte PATT - .word mus_shinka_3_86BD7CE - .byte PATT - .word mus_shinka_3_86BD7CE -mus_shinka_3_86BD7F8: @ 86BD7F8 - .byte N03 - .byte Dn2 - .byte v080 - .byte W12 - .byte Dn1 - .byte W06 - .byte An1 - .byte W06 - .byte En2 - .byte W12 - .byte En1 - .byte W06 - .byte An1 - .byte W06 - .byte Dn2 - .byte W12 - .byte Dn1 - .byte W06 - .byte An1 - .byte W06 - .byte En2 - .byte W12 - .byte En1 - .byte W06 - .byte An1 - .byte W06 - .byte PEND - .byte PATT - .word mus_shinka_3_86BD7F8 - .byte PATT - .word mus_shinka_3_86BD7F8 - .byte PATT - .word mus_shinka_3_86BD7F8 - .byte PATT - .word mus_shinka_3_86BD7F8 - .byte PATT - .word mus_shinka_3_86BD7F8 - .byte PATT - .word mus_shinka_3_86BD7F8 - .byte PATT - .word mus_shinka_3_86BD7F8 - .byte GOTO - .word mus_shinka_3_86BD7F8 - .byte FINE - -mus_shinka_4: @ 86BD83C - .byte KEYSH, 0x00 - .byte VOICE, 0x2F - .byte VOL, 0x50 - .byte PAN, 0x3A - .byte N12 - .byte Cn2 - .byte v112 - .byte W24 - .byte Dn2 - .byte W24 - .byte Cn2 - .byte W24 - .byte Dn2 - .byte W24 - .byte Cn2 - .byte W24 - .byte Dn2 - .byte W24 - .byte Cn2 - .byte W12 - .byte N12 - .byte W12 - .byte N06 - .byte Dn2 - .byte v127 - .byte W06 - .byte Dn2 - .byte v108 - .byte W06 - .byte Dn2 - .byte v112 - .byte W06 - .byte Dn2 - .byte v120 - .byte W06 - .byte N12 - .byte Cn2 - .byte v112 - .byte W24 - .byte Dn2 - .byte W24 - .byte Cn2 - .byte W24 - .byte Dn2 - .byte W24 - .byte Cn2 - .byte W24 - .byte Dn2 - .byte W24 - .byte Cn2 - .byte W24 - .byte N06 - .byte Dn2 - .byte v127 - .byte W06 - .byte Dn2 - .byte v108 - .byte W06 - .byte Dn2 - .byte v112 - .byte W06 - .byte Dn2 - .byte v120 - .byte W06 -mus_shinka_4_86BD880: @ 86BD880 - .byte N12 - .byte Cn2 - .byte v112 - .byte W24 - .byte Dn2 - .byte W24 - .byte Cn2 - .byte W24 - .byte Dn2 - .byte W12 - .byte N12 - .byte W12 - .byte PEND -mus_shinka_4_86BD88D: @ 86BD88D - .byte N12 - .byte Cn2 - .byte v112 - .byte W24 - .byte Dn2 - .byte W18 - .byte N06 - .byte W06 - .byte N12 - .byte Cn2 - .byte W24 - .byte N06 - .byte Dn2 - .byte v127 - .byte W06 - .byte Dn2 - .byte v108 - .byte W06 - .byte Dn2 - .byte v112 - .byte W06 - .byte Dn2 - .byte v120 - .byte W06 - .byte PEND - .byte PATT - .word mus_shinka_4_86BD880 - .byte PATT - .word mus_shinka_4_86BD88D -mus_shinka_4_86BD8B0: @ 86BD8B0 - .byte N12 - .byte Dn2 - .byte v112 - .byte W24 - .byte En2 - .byte W24 - .byte Dn2 - .byte W24 - .byte En2 - .byte W12 - .byte N12 - .byte W12 - .byte PEND -mus_shinka_4_86BD8BD: @ 86BD8BD - .byte N12 - .byte Dn2 - .byte v112 - .byte W24 - .byte En2 - .byte W18 - .byte N06 - .byte W06 - .byte N12 - .byte Dn2 - .byte W24 - .byte N06 - .byte En2 - .byte v127 - .byte W06 - .byte En2 - .byte v108 - .byte W06 - .byte En2 - .byte v112 - .byte W06 - .byte En2 - .byte v120 - .byte W06 - .byte PEND - .byte PATT - .word mus_shinka_4_86BD8B0 -mus_shinka_4_86BD8DB: @ 86BD8DB - .byte N15 - .byte Dn2 - .byte v112 - .byte W24 - .byte N12 - .byte En2 - .byte W18 - .byte N06 - .byte W06 - .byte N12 - .byte Dn2 - .byte W24 - .byte N06 - .byte En2 - .byte v127 - .byte W06 - .byte En2 - .byte v108 - .byte W06 - .byte En2 - .byte v112 - .byte W06 - .byte En2 - .byte v120 - .byte W06 - .byte PEND - .byte PATT - .word mus_shinka_4_86BD8B0 - .byte PATT - .word mus_shinka_4_86BD8DB - .byte PATT - .word mus_shinka_4_86BD8B0 - .byte PATT - .word mus_shinka_4_86BD8BD - .byte GOTO - .word mus_shinka_4_86BD8B0 - .byte FINE - -mus_shinka_5: @ 86BD90F - .byte KEYSH, 0x00 - .byte VOICE, 0x53 - .byte PAN, 0x11 - .byte XCMD, 0x08 - .byte AsM2 - .byte v009 - .byte GsM2 - .byte VOL, 0x50 - .byte N06 - .byte Cn3 - .byte v056 - .byte W24 - .byte Dn3 - .byte v032 - .byte W24 - .byte Cn3 - .byte v036 - .byte W24 - .byte Dn3 - .byte v040 - .byte W24 -mus_shinka_5_86BD929: @ 86BD929 - .byte N06 - .byte Cn3 - .byte v044 - .byte W24 - .byte Dn3 - .byte v048 - .byte W24 - .byte Cn3 - .byte v052 - .byte W24 - .byte N24 - .byte Dn3 - .byte v056 - .byte W24 - .byte PEND -mus_shinka_5_86BD938: @ 86BD938 - .byte N06 - .byte Cn3 - .byte v056 - .byte W24 - .byte Dn3 - .byte v032 - .byte W24 - .byte Cn3 - .byte v036 - .byte W24 - .byte Dn3 - .byte v040 - .byte W24 - .byte PEND - .byte PATT - .word mus_shinka_5_86BD929 - .byte PATT - .word mus_shinka_5_86BD938 - .byte PATT - .word mus_shinka_5_86BD929 - .byte PATT - .word mus_shinka_5_86BD938 - .byte PATT - .word mus_shinka_5_86BD929 -mus_shinka_5_86BD95F: @ 86BD95F - .byte N06 - .byte Dn3 - .byte v056 - .byte W24 - .byte En3 - .byte v032 - .byte W24 - .byte Dn3 - .byte v036 - .byte W24 - .byte En3 - .byte v040 - .byte W24 - .byte PEND -mus_shinka_5_86BD96D: @ 86BD96D - .byte N06 - .byte Dn3 - .byte v044 - .byte W24 - .byte En3 - .byte v048 - .byte W24 - .byte Dn3 - .byte v052 - .byte W24 - .byte N24 - .byte En3 - .byte v056 - .byte W24 - .byte PEND - .byte PATT - .word mus_shinka_5_86BD95F - .byte PATT - .word mus_shinka_5_86BD96D - .byte PATT - .word mus_shinka_5_86BD95F - .byte PATT - .word mus_shinka_5_86BD96D - .byte PATT - .word mus_shinka_5_86BD95F - .byte PATT - .word mus_shinka_5_86BD96D - .byte GOTO - .word mus_shinka_5_86BD95F - .byte FINE - -mus_shinka_6: @ 86BD9A0 - .byte KEYSH, 0x00 - .byte VOICE, 0x54 - .byte XCMD, 0x08 - .byte AsM2 - .byte v009 - .byte GsM2 - .byte PAN, 0x70 - .byte VOL, 0x50 - .byte BEND, 0x40 - .byte N06 - .byte An2 - .byte v056 - .byte W24 - .byte Bn2 - .byte v032 - .byte W24 - .byte An2 - .byte v036 - .byte W24 - .byte Bn2 - .byte v040 - .byte W24 -mus_shinka_6_86BD9BC: @ 86BD9BC - .byte N06 - .byte An2 - .byte v044 - .byte W24 - .byte Bn2 - .byte v048 - .byte W24 - .byte An2 - .byte v052 - .byte W24 - .byte N24 - .byte Bn2 - .byte v056 - .byte W24 - .byte PEND -mus_shinka_6_86BD9CB: @ 86BD9CB - .byte N06 - .byte An2 - .byte v056 - .byte W24 - .byte Bn2 - .byte v032 - .byte W24 - .byte An2 - .byte v036 - .byte W24 - .byte Bn2 - .byte v040 - .byte W24 - .byte PEND - .byte PATT - .word mus_shinka_6_86BD9BC - .byte PATT - .word mus_shinka_6_86BD9CB - .byte PATT - .word mus_shinka_6_86BD9BC - .byte PATT - .word mus_shinka_6_86BD9CB - .byte PATT - .word mus_shinka_6_86BD9BC -mus_shinka_6_86BD9F2: @ 86BD9F2 - .byte N06 - .byte Bn2 - .byte v056 - .byte W24 - .byte Cs3 - .byte v032 - .byte W24 - .byte Bn2 - .byte v036 - .byte W24 - .byte Cs3 - .byte v040 - .byte W24 - .byte PEND -mus_shinka_6_86BDA00: @ 86BDA00 - .byte N06 - .byte Bn2 - .byte v044 - .byte W24 - .byte Cs3 - .byte v048 - .byte W24 - .byte Bn2 - .byte v052 - .byte W24 - .byte N24 - .byte Cs3 - .byte v056 - .byte W24 - .byte PEND - .byte PATT - .word mus_shinka_6_86BD9F2 - .byte PATT - .word mus_shinka_6_86BDA00 - .byte PATT - .word mus_shinka_6_86BD9F2 - .byte PATT - .word mus_shinka_6_86BDA00 - .byte PATT - .word mus_shinka_6_86BD9F2 - .byte PATT - .word mus_shinka_6_86BDA00 - .byte GOTO - .word mus_shinka_6_86BD9F2 - .byte FINE - -mus_shinka_7: @ 86BDA33 - .byte VOL, 0x50 - .byte KEYSH, 0x00 - .byte VOICE, 0x00 - .byte PAN, 0x40 - .byte N06 - .byte En1 - .byte v112 - .byte W24 - .byte N06 - .byte W24 - .byte N06 - .byte W24 - .byte N06 - .byte W24 - .byte N06 - .byte W24 - .byte N06 - .byte W24 - .byte N03 - .byte W03 - .byte En1 - .byte v068 - .byte W03 - .byte N03 - .byte W03 - .byte En1 - .byte v064 - .byte W03 - .byte N03 - .byte W03 - .byte En1 - .byte v068 - .byte W03 - .byte N03 - .byte W03 - .byte En1 - .byte v064 - .byte W03 - .byte En1 - .byte v112 - .byte W03 - .byte En1 - .byte v072 - .byte W03 - .byte En1 - .byte v076 - .byte W03 - .byte En1 - .byte v088 - .byte W03 - .byte N03 - .byte W03 - .byte En1 - .byte v096 - .byte W03 - .byte En1 - .byte v100 - .byte W03 - .byte En1 - .byte v112 - .byte W03 - .byte N06 - .byte W12 - .byte En1 - .byte v080 - .byte W12 - .byte En1 - .byte v112 - .byte W12 - .byte En1 - .byte v080 - .byte W12 - .byte En1 - .byte v112 - .byte W12 - .byte En1 - .byte v080 - .byte W12 - .byte En1 - .byte v112 - .byte W12 - .byte N06 - .byte W06 - .byte N06 - .byte W06 - .byte N06 - .byte W12 - .byte En1 - .byte v080 - .byte W12 - .byte En1 - .byte v112 - .byte W12 - .byte En1 - .byte v080 - .byte W12 - .byte En1 - .byte v112 - .byte W12 - .byte En1 - .byte v080 - .byte W12 - .byte N03 - .byte En1 - .byte v127 - .byte W03 - .byte En1 - .byte v088 - .byte W03 - .byte En1 - .byte v096 - .byte W03 - .byte En1 - .byte v104 - .byte W03 - .byte En1 - .byte v108 - .byte W03 - .byte En1 - .byte v112 - .byte W03 - .byte En1 - .byte v116 - .byte W03 - .byte En1 - .byte v120 - .byte W03 - .byte N06 - .byte En1 - .byte v127 - .byte W12 - .byte En1 - .byte v100 - .byte W12 - .byte En1 - .byte v127 - .byte W12 - .byte En1 - .byte v096 - .byte W12 - .byte En1 - .byte v127 - .byte W12 - .byte En1 - .byte v096 - .byte W12 - .byte En1 - .byte v127 - .byte W12 - .byte N06 - .byte W06 - .byte N06 - .byte W06 - .byte N06 - .byte W12 - .byte En1 - .byte v100 - .byte W12 - .byte En1 - .byte v127 - .byte W12 - .byte En1 - .byte v096 - .byte W12 - .byte En1 - .byte v127 - .byte W12 - .byte En1 - .byte v096 - .byte W12 - .byte N03 - .byte En1 - .byte v127 - .byte W03 - .byte En1 - .byte v088 - .byte W03 - .byte En1 - .byte v096 - .byte W03 - .byte En1 - .byte v104 - .byte W03 - .byte En1 - .byte v108 - .byte W03 - .byte En1 - .byte v112 - .byte W03 - .byte En1 - .byte v116 - .byte W03 - .byte En1 - .byte v120 - .byte W03 -mus_shinka_7_86BDAFA: @ 86BDAFA - .byte N06 - .byte En1 - .byte v127 - .byte W06 - .byte En1 - .byte v036 - .byte W06 - .byte En1 - .byte v100 - .byte W06 - .byte En1 - .byte v036 - .byte W06 - .byte En1 - .byte v127 - .byte W06 - .byte En1 - .byte v036 - .byte W06 - .byte En1 - .byte v096 - .byte W06 - .byte En1 - .byte v036 - .byte W06 - .byte En1 - .byte v127 - .byte W06 - .byte En1 - .byte v036 - .byte W06 - .byte En1 - .byte v096 - .byte W06 - .byte En1 - .byte v036 - .byte W06 - .byte En1 - .byte v127 - .byte W06 - .byte En1 - .byte v036 - .byte W06 - .byte En1 - .byte v127 - .byte W06 - .byte N06 - .byte W06 - .byte PEND -mus_shinka_7_86BDB2B: @ 86BDB2B - .byte N06 - .byte En1 - .byte v127 - .byte W06 - .byte En1 - .byte v036 - .byte W06 - .byte En1 - .byte v100 - .byte W06 - .byte En1 - .byte v036 - .byte W06 - .byte En1 - .byte v127 - .byte W06 - .byte En1 - .byte v036 - .byte W06 - .byte En1 - .byte v096 - .byte W06 - .byte En1 - .byte v036 - .byte W06 - .byte En1 - .byte v127 - .byte W06 - .byte En1 - .byte v036 - .byte W06 - .byte En1 - .byte v096 - .byte W06 - .byte En1 - .byte v127 - .byte W06 - .byte N03 - .byte W03 - .byte En1 - .byte v088 - .byte W03 - .byte En1 - .byte v096 - .byte W03 - .byte En1 - .byte v104 - .byte W03 - .byte En1 - .byte v108 - .byte W03 - .byte En1 - .byte v112 - .byte W03 - .byte En1 - .byte v116 - .byte W03 - .byte En1 - .byte v120 - .byte W03 - .byte PEND -mus_shinka_7_86BDB68: @ 86BDB68 - .byte PATT - .word mus_shinka_7_86BDAFA - .byte PATT - .word mus_shinka_7_86BDB2B - .byte PATT - .word mus_shinka_7_86BDAFA - .byte PATT - .word mus_shinka_7_86BDB2B - .byte PATT - .word mus_shinka_7_86BDAFA - .byte PATT - .word mus_shinka_7_86BDB2B - .byte PATT - .word mus_shinka_7_86BDAFA - .byte PATT - .word mus_shinka_7_86BDB2B - .byte GOTO - .word mus_shinka_7_86BDB68 - .byte FINE - -@ *************************************** - .align 2 -mus_shinka: @ 86BDB98 - .byte 7 - .byte 0 - .byte mus_shinka_pri - .byte mus_shinka_rev - .word mus_shinka_grp - - .word mus_shinka_1 - .word mus_shinka_2 - .word mus_shinka_3 - .word mus_shinka_4 - .word mus_shinka_5 - .word mus_shinka_6 - .word mus_shinka_7 diff --git a/sound/songs/mus_w_door.s b/sound/songs/mus_w_door.s deleted file mode 100644 index fc68d4e5b..000000000 --- a/sound/songs/mus_w_door.s +++ /dev/null @@ -1,77 +0,0 @@ - .include "MPlayDef.s" - .section .rodata - .global mus_w_door - .align 2 - .equ mus_w_door_grp, voicegroup129 - .equ mus_w_door_pri, 5 - .equ mus_w_door_rev, reverb_set+50 - -mus_w_door_1: @ 86BC628 - .byte KEYSH, 0x00 - .byte TEMPO, 0x37 - .byte VOICE, 0x7F - .byte VOL, 0x64 - .byte N03 - .byte Fn2 - .byte v100 - .byte N03 - .byte As2 - .byte v127 - .byte W06 - .byte N08 - .byte Fs3 - .byte v096 - .byte W06 - .byte VOL, 0x58 - .byte W03 - .byte Fs2 - .byte W03 - .byte Gs3 - .byte W06 - .byte FINE - -mus_w_door_2: @ 86BC643 - .byte KEYSH, 0x00 - .byte VOICE, 0x5C - .byte BENDR, 0x0C - .byte VOL, 0x2B - .byte BEND, 0x40 - .byte W04 - .byte DnM1 - .byte N10 - .byte Bn5 - .byte v052 - .byte W02 - .byte BEND, 0x13 - .byte W01 - .byte Fn1 - .byte W01 - .byte Dn3 - .byte W01 - .byte Dn5 - .byte W01 - .byte Gs5 - .byte W01 - .byte An6 - .byte W01 - .byte VOL, 0x1D - .byte BEND, 0x75 - .byte W01 - .byte En8 - .byte W02 - .byte VOL, 0x12 - .byte BEND, 0x7F - .byte W09 - .byte FINE - -@ *************************************** - .align 2 -mus_w_door: @ 86BC670 - .byte 2 - .byte 0 - .byte mus_w_door_pri - .byte mus_w_door_rev - .word mus_w_door_grp - - .word mus_w_door_1 - .word mus_w_door_2 diff --git a/sound/voice_groups.inc b/sound/voice_groups.inc new file mode 100644 index 000000000..abdedcbb5 --- /dev/null +++ b/sound/voice_groups.inc @@ -0,0 +1,8775 @@ + +voicegroup000:: @ 8489C8C + voice_keysplit_all voicegroup001 @ 8489C8C + voice_keysplit voicegroup003, KeySplitTable1 @ 8489C98 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8489CA4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8489CB0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8489CBC + voice_square_1 0, 2, 0, 0, 15, 0 @ 8489CC8 + voice_square_2 2, 0, 0, 9, 2 @ 8489CD4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8489CE0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8489CEC + voice_directsound 60, 0, gDirectSoundWaveData_0, 255, 165, 51, 235 @ 8489CF8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8489D04 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8489D10 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8489D1C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8489D28 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8489D34 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8489D40 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8489D4C + voice_directsound 60, 0, gDirectSoundWaveData_1, 255, 0, 255, 127 @ 8489D58 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8489D64 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8489D70 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8489D7C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8489D88 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8489D94 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8489DA0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8489DAC + voice_square_1 0, 2, 0, 0, 15, 0 @ 8489DB8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8489DC4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8489DD0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8489DDC + voice_square_1 0, 2, 0, 0, 15, 0 @ 8489DE8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8489DF4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8489E00 + voice_directsound 60, 0, gDirectSoundWaveData_2, 255, 253, 0, 149 @ 8489E0C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8489E18 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8489E24 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8489E30 + voice_directsound 60, 0, gDirectSoundWaveData_3, 255, 235, 128, 115 @ 8489E3C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8489E48 + voice_directsound 60, 0, gDirectSoundWaveData_4, 255, 252, 0, 115 @ 8489E54 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8489E60 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8489E6C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8489E78 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8489E84 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8489E90 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8489E9C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8489EA8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8489EB4 + voice_directsound 60, 0, gDirectSoundWaveData_5, 255, 204, 193, 239 @ 8489EC0 + voice_keysplit voicegroup004, KeySplitTable2 @ 8489ECC + voice_square_1 0, 2, 0, 0, 15, 0 @ 8489ED8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8489EE4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8489EF0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8489EFC + voice_square_1 0, 2, 0, 0, 15, 0 @ 8489F08 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8489F14 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8489F20 + voice_keysplit voicegroup005, KeySplitTable3 @ 8489F2C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8489F38 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8489F44 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8489F50 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8489F5C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8489F68 + +voicegroup001:: @ 8489F74 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8489F74 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8489F80 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8489F8C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8489F98 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8489FA4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8489FB0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8489FBC + voice_square_1 0, 2, 0, 0, 15, 0 @ 8489FC8 + voice_square_1 0, 2, 0, 1, 6, 0 @ 8489FD4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8489FE0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8489FEC + voice_programmable_wave gProgrammableWaveData_84A31EC, 0, 7, 15, 1 @ 8489FF8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848A004 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848A010 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848A01C + voice_square_1 0, 2, 0, 0, 15, 0 @ 848A028 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848A034 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848A040 + voice_square_2 2, 0, 1, 6, 0 @ 848A04C + voice_programmable_wave gProgrammableWaveData_84A320C, 0, 7, 15, 1 @ 848A058 + voice_square_1 0, 2, 0, 1, 6, 0 @ 848A064 + voice_square_2 3, 0, 1, 6, 0 @ 848A070 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848A07C + voice_square_1 0, 2, 0, 0, 15, 0 @ 848A088 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848A094 + voice_square_1 0, 0, 0, 1, 6, 0 @ 848A0A0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848A0AC + voice_square_1 0, 2, 0, 0, 15, 0 @ 848A0B8 + voice_directsound 60, 0, gDirectSoundWaveData_6, 255, 0, 255, 0 @ 848A0C4 + +voicegroup002:: @ 848A0D0 + voice_directsound 60, 0, gDirectSoundWaveData_7, 255, 165, 154, 127 @ 848A0D0 + voice_directsound 60, 0, gDirectSoundWaveData_8, 255, 165, 154, 127 @ 848A0DC + voice_directsound 60, 0, gDirectSoundWaveData_9, 255, 165, 206, 127 @ 848A0E8 + voice_directsound 60, 0, gDirectSoundWaveData_10, 255, 165, 206, 127 @ 848A0F4 + voice_directsound 60, 0, gDirectSoundWaveData_11, 255, 0, 255, 0 @ 848A100 + voice_directsound 60, 0, gDirectSoundWaveData_12, 255, 0, 255, 0 @ 848A10C + voice_directsound 60, 0, gDirectSoundWaveData_13, 255, 0, 255, 0 @ 848A118 + voice_directsound_no_resample 60, 64, gDirectSoundWaveData_14, 255, 0, 255, 242 @ 848A124 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848A130 + voice_directsound_no_resample 60, 64, gDirectSoundWaveData_15, 255, 0, 255, 242 @ 848A13C + voice_directsound_no_resample 60, 64, gDirectSoundWaveData_16, 255, 255, 255, 127 @ 848A148 + voice_directsound_no_resample 60, 64, gDirectSoundWaveData_17, 255, 0, 255, 242 @ 848A154 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848A160 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848A16C + voice_square_1 0, 2, 0, 0, 15, 0 @ 848A178 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848A184 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848A190 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848A19C + voice_square_1 0, 2, 0, 0, 15, 0 @ 848A1A8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848A1B4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848A1C0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848A1CC + voice_square_1 0, 2, 0, 0, 15, 0 @ 848A1D8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848A1E4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848A1F0 + voice_directsound_no_resample 32, 34, gDirectSoundWaveData_18, 255, 127, 77, 204 @ 848A1FC + voice_directsound_no_resample 60, 14, gDirectSoundWaveData_19, 255, 235, 0, 165 @ 848A208 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848A214 + voice_directsound_no_resample 30, 54, gDirectSoundWaveData_20, 255, 246, 0, 216 @ 848A220 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848A22C + voice_directsound_no_resample 30, 54, gDirectSoundWaveData_20, 255, 246, 0, 216 @ 848A238 + voice_directsound_no_resample 30, 64, gDirectSoundWaveData_20, 8, 0, 255, 216 @ 848A244 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848A250 + voice_directsound_no_resample 72, 104, gDirectSoundWaveData_21, 255, 0, 255, 0 @ 848A25C + voice_square_1 0, 2, 0, 0, 15, 0 @ 848A268 + voice_directsound_no_resample 72, 94, gDirectSoundWaveData_22, 255, 0, 255, 0 @ 848A274 + voice_directsound_no_resample 64, 64, gDirectSoundWaveData_23, 255, 0, 255, 0 @ 848A280 + voice_directsound_no_resample 64, 64, gDirectSoundWaveData_24, 255, 180, 175, 228 @ 848A28C + voice_directsound_no_resample 64, 64, gDirectSoundWaveData_24, 255, 0, 255, 242 @ 848A298 + voice_directsound_no_resample 64, 54, gDirectSoundWaveData_16, 255, 255, 255, 127 @ 848A2A4 + voice_directsound_no_resample 64, 64, gDirectSoundWaveData_17, 255, 0, 255, 242 @ 848A2B0 + voice_directsound 64, 24, gDirectSoundWaveData_25, 255, 0, 255, 226 @ 848A2BC + voice_directsound_no_resample 64, 80, gDirectSoundWaveData_17, 255, 0, 255, 242 @ 848A2C8 + voice_directsound 68, 34, gDirectSoundWaveData_25, 255, 0, 255, 226 @ 848A2D4 + voice_directsound_no_resample 60, 64, gDirectSoundWaveData_15, 255, 0, 255, 242 @ 848A2E0 + voice_directsound 72, 44, gDirectSoundWaveData_25, 255, 0, 255, 226 @ 848A2EC + voice_square_1 0, 2, 0, 0, 15, 0 @ 848A2F8 + voice_directsound 76, 84, gDirectSoundWaveData_25, 255, 0, 255, 226 @ 848A304 + voice_directsound 80, 94, gDirectSoundWaveData_25, 255, 0, 255, 226 @ 848A310 + voice_directsound_no_resample 33, 89, gDirectSoundWaveData_20, 255, 235, 0, 231 @ 848A31C + voice_directsound 84, 104, gDirectSoundWaveData_25, 255, 0, 255, 235 @ 848A328 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848A334 + voice_directsound 63, 64, gDirectSoundWaveData_20, 255, 235, 0, 231 @ 848A340 + voice_directsound_no_resample 64, 24, gDirectSoundWaveData_26, 255, 165, 103, 231 @ 848A34C + voice_directsound_no_resample 64, 34, gDirectSoundWaveData_18, 255, 127, 77, 204 @ 848A358 + voice_directsound_no_resample 64, 14, gDirectSoundWaveData_19, 255, 231, 0, 188 @ 848A364 + voice_directsound_no_resample 64, 89, gDirectSoundWaveData_27, 255, 0, 255, 242 @ 848A370 + voice_directsound_no_resample 64, 29, gDirectSoundWaveData_20, 255, 235, 0, 231 @ 848A37C + voice_square_1 0, 2, 0, 0, 15, 0 @ 848A388 + voice_directsound_no_resample 64, 54, gDirectSoundWaveData_20, 255, 235, 0, 231 @ 848A394 + voice_directsound_no_resample 64, 54, gDirectSoundWaveData_20, 8, 0, 255, 216 @ 848A3A0 + voice_directsound_no_resample 64, 94, gDirectSoundWaveData_28, 255, 0, 255, 0 @ 848A3AC + voice_directsound_no_resample 64, 34, gDirectSoundWaveData_21, 255, 0, 255, 0 @ 848A3B8 + voice_directsound_no_resample 64, 34, gDirectSoundWaveData_22, 255, 0, 255, 0 @ 848A3C4 + voice_directsound_no_resample 64, 90, gDirectSoundWaveData_22, 255, 0, 255, 0 @ 848A3D0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848A3DC + voice_square_1 0, 2, 0, 0, 15, 0 @ 848A3E8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848A3F4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848A400 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848A40C + voice_square_1 0, 2, 0, 0, 15, 0 @ 848A418 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848A424 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848A430 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848A43C + voice_square_1 0, 2, 0, 0, 15, 0 @ 848A448 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848A454 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848A460 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848A46C + voice_square_1 0, 2, 0, 0, 15, 0 @ 848A478 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848A484 + voice_directsound_no_resample 64, 39, gDirectSoundWaveData_29, 255, 242, 103, 188 @ 848A490 + voice_directsound_no_resample 64, 79, gDirectSoundWaveData_29, 255, 242, 103, 188 @ 848A49C + voice_directsound_no_resample 64, 39, gDirectSoundWaveData_29, 255, 165, 103, 188 @ 848A4A8 + voice_directsound_no_resample 64, 24, gDirectSoundWaveData_30, 255, 0, 255, 0 @ 848A4B4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848A4C0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848A4CC + voice_directsound_no_resample 64, 104, gDirectSoundWaveData_31, 255, 0, 255, 0 @ 848A4D8 + voice_directsound 63, 64, gDirectSoundWaveData_32, 255, 0, 255, 0 @ 848A4E4 + voice_directsound 50, 84, gDirectSoundWaveData_33, 255, 0, 255, 0 @ 848A4F0 + voice_directsound 64, 84, gDirectSoundWaveData_33, 255, 0, 255, 0 @ 848A4FC + +voicegroup003:: @ 848A508 + voice_directsound 60, 0, gDirectSoundWaveData_34, 255, 252, 0, 239 @ 848A508 + voice_directsound 60, 0, gDirectSoundWaveData_35, 255, 250, 0, 221 @ 848A514 + voice_directsound 60, 0, gDirectSoundWaveData_36, 255, 250, 0, 221 @ 848A520 + voice_directsound 60, 0, gDirectSoundWaveData_37, 255, 247, 0, 221 @ 848A52C + +voicegroup004:: @ 848A538 + voice_directsound 60, 0, gDirectSoundWaveData_38, 255, 0, 255, 196 @ 848A538 + voice_directsound 60, 0, gDirectSoundWaveData_39, 255, 0, 255, 196 @ 848A544 + voice_directsound 60, 0, gDirectSoundWaveData_40, 255, 0, 255, 196 @ 848A550 + +voicegroup005:: @ 848A55C + voice_directsound 60, 0, gDirectSoundWaveData_41, 255, 0, 193, 127 @ 848A55C + voice_directsound 60, 0, gDirectSoundWaveData_42, 255, 0, 193, 127 @ 848A568 + voice_directsound 60, 0, gDirectSoundWaveData_43, 255, 0, 193, 127 @ 848A574 + voice_square_1_alt 38, 2, 1, 0, 0, 0 @ 848A580 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848A58C + voice_square_1 0, 2, 0, 0, 15, 0 @ 848A598 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848A5A4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848A5B0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848A5BC + voice_square_1 0, 2, 0, 0, 15, 0 @ 848A5C8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848A5D4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848A5E0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848A5EC + voice_square_1 0, 2, 0, 0, 15, 0 @ 848A5F8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848A604 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848A610 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848A61C + voice_square_1 0, 2, 0, 0, 15, 0 @ 848A628 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848A634 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848A640 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848A64C + voice_square_1 0, 2, 0, 0, 15, 0 @ 848A658 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848A664 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848A670 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848A67C + voice_square_1 0, 2, 0, 0, 15, 0 @ 848A688 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848A694 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848A6A0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848A6AC + voice_square_1 0, 2, 0, 0, 15, 0 @ 848A6B8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848A6C4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848A6D0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848A6DC + voice_square_1 0, 2, 0, 0, 15, 0 @ 848A6E8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848A6F4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848A700 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848A70C + voice_square_1 0, 2, 0, 0, 15, 0 @ 848A718 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848A724 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848A730 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848A73C + voice_square_1 0, 2, 0, 0, 15, 0 @ 848A748 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848A754 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848A760 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848A76C + voice_square_1 0, 2, 0, 0, 15, 0 @ 848A778 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848A784 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848A790 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848A79C + voice_square_1 0, 2, 0, 0, 15, 0 @ 848A7A8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848A7B4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848A7C0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848A7CC + voice_square_1 0, 2, 0, 0, 15, 0 @ 848A7D8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848A7E4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848A7F0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848A7FC + voice_square_1 0, 2, 0, 0, 15, 0 @ 848A808 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848A814 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848A820 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848A82C + voice_square_1 0, 2, 0, 0, 15, 0 @ 848A838 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848A844 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848A850 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848A85C + voice_square_1 0, 2, 0, 0, 15, 0 @ 848A868 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848A874 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848A880 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848A88C + voice_square_1 0, 2, 0, 0, 15, 0 @ 848A898 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848A8A4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848A8B0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848A8BC + voice_square_1 0, 2, 0, 0, 15, 0 @ 848A8C8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848A8D4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848A8E0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848A8EC + voice_square_1 0, 2, 0, 0, 15, 0 @ 848A8F8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848A904 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848A910 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848A91C + voice_square_1 0, 2, 0, 0, 15, 0 @ 848A928 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848A934 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848A940 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848A94C + voice_square_1 0, 2, 0, 0, 15, 0 @ 848A958 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848A964 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848A970 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848A97C + voice_square_1 0, 2, 0, 0, 15, 0 @ 848A988 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848A994 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848A9A0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848A9AC + voice_square_1 0, 2, 0, 0, 15, 0 @ 848A9B8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848A9C4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848A9D0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848A9DC + voice_square_1 0, 2, 0, 0, 15, 0 @ 848A9E8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848A9F4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848AA00 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848AA0C + voice_square_1 0, 2, 0, 0, 15, 0 @ 848AA18 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848AA24 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848AA30 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848AA3C + voice_square_1 0, 2, 0, 0, 15, 0 @ 848AA48 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848AA54 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848AA60 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848AA6C + voice_square_1 0, 2, 0, 0, 15, 0 @ 848AA78 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848AA84 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848AA90 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848AA9C + voice_square_1 0, 2, 0, 0, 15, 0 @ 848AAA8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848AAB4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848AAC0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848AACC + voice_square_1 0, 2, 0, 0, 15, 0 @ 848AAD8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848AAE4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848AAF0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848AAFC + voice_square_1 0, 2, 0, 0, 15, 0 @ 848AB08 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848AB14 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848AB20 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848AB2C + voice_square_1 0, 2, 0, 0, 15, 0 @ 848AB38 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848AB44 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848AB50 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848AB5C + voice_square_1_alt 36, 2, 0, 1, 4, 2 @ 848AB68 + voice_square_1_alt 21, 2, 0, 0, 15, 2 @ 848AB74 + +voicegroup006:: @ 848AB80 + voice_directsound 60, 0, gDirectSoundWaveData_44, 255, 0, 255, 165 @ 848AB80 + voice_directsound 60, 0, gDirectSoundWaveData_45, 255, 0, 255, 165 @ 848AB8C + +voicegroup007:: @ 848AB98 + voice_directsound 60, 0, gDirectSoundWaveData_46, 255, 0, 224, 165 @ 848AB98 + voice_directsound 60, 0, gDirectSoundWaveData_47, 255, 0, 218, 165 @ 848ABA4 + +voicegroup008:: @ 848ABB0 + voice_keysplit_all voicegroup001 @ 848ABB0 + voice_keysplit voicegroup003, KeySplitTable1 @ 848ABBC + voice_directsound 60, 0, gDirectSoundWaveData_63, 255, 178, 180, 165 @ 848ABC8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848ABD4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848ABE0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848ABEC + voice_square_1 0, 2, 0, 0, 15, 0 @ 848ABF8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848AC04 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848AC10 + voice_directsound 60, 0, gDirectSoundWaveData_0, 255, 165, 51, 235 @ 848AC1C + voice_square_1 0, 2, 0, 0, 15, 0 @ 848AC28 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848AC34 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848AC40 + voice_directsound 60, 0, gDirectSoundWaveData_71, 255, 235, 0, 204 @ 848AC4C + voice_square_1 0, 2, 0, 0, 15, 0 @ 848AC58 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848AC64 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848AC70 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848AC7C + voice_square_1 0, 2, 0, 0, 15, 0 @ 848AC88 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848AC94 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848ACA0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848ACAC + voice_square_1 0, 2, 0, 0, 15, 0 @ 848ACB8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848ACC4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848ACD0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848ACDC + voice_square_1 0, 2, 0, 0, 15, 0 @ 848ACE8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848ACF4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848AD00 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848AD0C + voice_square_1 0, 2, 0, 0, 15, 0 @ 848AD18 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848AD24 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848AD30 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848AD3C + voice_square_1 0, 2, 0, 0, 15, 0 @ 848AD48 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848AD54 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848AD60 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848AD6C + voice_square_1 0, 2, 0, 0, 15, 0 @ 848AD78 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848AD84 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848AD90 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848AD9C + voice_square_1 0, 2, 0, 0, 15, 0 @ 848ADA8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848ADB4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848ADC0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848ADCC + voice_directsound 60, 0, gDirectSoundWaveData_70, 255, 242, 0, 204 @ 848ADD8 + voice_directsound 60, 0, gDirectSoundWaveData_5, 255, 246, 0, 226 @ 848ADE4 + voice_keysplit voicegroup004, KeySplitTable2 @ 848ADF0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848ADFC + voice_square_1 0, 2, 0, 0, 15, 0 @ 848AE08 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848AE14 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848AE20 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848AE2C + voice_square_1 0, 2, 0, 0, 15, 0 @ 848AE38 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848AE44 + voice_keysplit voicegroup005, KeySplitTable3 @ 848AE50 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848AE5C + voice_keysplit voicegroup006, KeySplitTable4 @ 848AE68 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848AE74 + voice_keysplit voicegroup007, KeySplitTable5 @ 848AE80 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848AE8C + voice_square_1 0, 2, 0, 0, 15, 0 @ 848AE98 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848AEA4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848AEB0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848AEBC + voice_square_1 0, 2, 0, 0, 15, 0 @ 848AEC8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848AED4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848AEE0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848AEEC + voice_square_1 0, 2, 0, 0, 15, 0 @ 848AEF8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848AF04 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848AF10 + voice_directsound 60, 0, gDirectSoundWaveData_48, 255, 127, 231, 127 @ 848AF1C + voice_square_1 0, 2, 0, 0, 15, 0 @ 848AF28 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848AF34 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848AF40 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848AF4C + voice_square_1 0, 2, 0, 0, 15, 0 @ 848AF58 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848AF64 + voice_square_2_alt 2, 0, 1, 7, 1 @ 848AF70 + voice_square_1_alt 0, 2, 0, 1, 7, 1 @ 848AF7C + voice_square_2_alt 3, 0, 1, 7, 1 @ 848AF88 + voice_square_1_alt 0, 3, 0, 1, 7, 1 @ 848AF94 + voice_square_2_alt 2, 0, 1, 4, 1 @ 848AFA0 + voice_square_1_alt 0, 2, 0, 1, 4, 1 @ 848AFAC + voice_square_1 0, 2, 0, 0, 15, 0 @ 848AFB8 + voice_programmable_wave_alt gProgrammableWaveData_84A323C, 0, 7, 15, 2 @ 848AFC4 + voice_programmable_wave_alt gProgrammableWaveData_84A324C, 0, 7, 15, 2 @ 848AFD0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848AFDC + voice_square_2 2, 0, 1, 4, 1 @ 848AFE8 + voice_square_1 0, 2, 0, 1, 4, 1 @ 848AFF4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B000 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B00C + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B018 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B024 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B030 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B03C + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B048 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B054 + voice_square_1_alt 29, 2, 0, 2, 0, 0 @ 848B060 + voice_square_1_alt 22, 2, 0, 2, 0, 0 @ 848B06C + +voicegroup009:: @ 848B078 + voice_keysplit_all voicegroup001 @ 848B078 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B084 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B090 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B09C + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B0A8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B0B4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B0C0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B0CC + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B0D8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B0E4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B0F0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B0FC + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B108 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B114 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B120 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B12C + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B138 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B144 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B150 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B15C + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B168 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B174 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B180 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B18C + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B198 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B1A4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B1B0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B1BC + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B1C8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B1D4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B1E0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B1EC + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B1F8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B204 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B210 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B21C + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B228 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B234 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B240 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B24C + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B258 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B264 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B270 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B27C + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B288 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B294 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B2A0 + voice_directsound 60, 0, gDirectSoundWaveData_5, 255, 246, 0, 226 @ 848B2AC + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B2B8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B2C4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B2D0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B2DC + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B2E8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B2F4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B300 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B30C + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B318 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B324 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B330 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B33C + voice_keysplit voicegroup007, KeySplitTable5 @ 848B348 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B354 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B360 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B36C + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B378 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B384 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B390 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B39C + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B3A8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B3B4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B3C0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B3CC + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B3D8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B3E4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B3F0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B3FC + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B408 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B414 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B420 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B42C + voice_square_2_alt 2, 0, 1, 9, 0 @ 848B438 + voice_programmable_wave_alt gProgrammableWaveData_84A324C, 0, 7, 15, 0 @ 848B444 + voice_square_1_alt 0, 2, 0, 1, 9, 0 @ 848B450 + voice_square_2_alt 3, 0, 1, 7, 0 @ 848B45C + voice_square_1_alt 0, 3, 0, 1, 7, 0 @ 848B468 + +voicegroup010:: @ 848B474 + voice_keysplit_all voicegroup001 @ 848B474 + voice_keysplit voicegroup003, KeySplitTable1 @ 848B480 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B48C + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B498 + voice_square_2 2, 0, 2, 6, 1 @ 848B4A4 + voice_square_1 0, 2, 0, 2, 6, 1 @ 848B4B0 + voice_square_2 3, 0, 2, 4, 1 @ 848B4BC + voice_square_1 0, 3, 0, 2, 4, 1 @ 848B4C8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B4D4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B4E0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B4EC + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B4F8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B504 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B510 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B51C + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B528 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B534 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B540 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B54C + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B558 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B564 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B570 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B57C + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B588 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B594 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B5A0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B5AC + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B5B8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B5C4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B5D0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B5DC + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B5E8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B5F4 + voice_directsound 60, 0, gDirectSoundWaveData_49, 255, 253, 0, 149 @ 848B600 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B60C + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B618 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B624 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B630 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B63C + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B648 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B654 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B660 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B66C + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B678 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B684 + voice_directsound 60, 0, gDirectSoundWaveData_55, 255, 216, 0, 165 @ 848B690 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B69C + voice_directsound 60, 0, gDirectSoundWaveData_5, 255, 246, 0, 226 @ 848B6A8 + voice_keysplit voicegroup004, KeySplitTable2 @ 848B6B4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B6C0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B6CC + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B6D8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B6E4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B6F0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B6FC + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B708 + voice_keysplit voicegroup005, KeySplitTable3 @ 848B714 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B720 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B72C + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B738 + voice_keysplit voicegroup007, KeySplitTable5 @ 848B744 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B750 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B75C + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B768 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B774 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B780 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B78C + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B798 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B7A4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B7B0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B7BC + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B7C8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B7D4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B7E0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B7EC + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B7F8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B804 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B810 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B81C + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B828 + voice_square_2 2, 0, 1, 7, 1 @ 848B834 + voice_programmable_wave_alt gProgrammableWaveData_84A320C, 0, 7, 15, 2 @ 848B840 + voice_square_1 0, 2, 0, 1, 7, 1 @ 848B84C + voice_square_1 0, 2, 0, 0, 7, 1 @ 848B858 + voice_square_2 3, 0, 1, 7, 1 @ 848B864 + voice_square_1 0, 3, 0, 1, 7, 1 @ 848B870 + voice_square_1 0, 3, 0, 0, 7, 1 @ 848B87C + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B888 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B894 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B8A0 + voice_programmable_wave_alt gProgrammableWaveData_84A324C, 0, 7, 15, 2 @ 848B8AC + +voicegroup011:: @ 848B8B8 + voice_keysplit_all voicegroup001 @ 848B8B8 + voice_keysplit voicegroup003, KeySplitTable1 @ 848B8C4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B8D0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B8DC + voice_square_2 0, 0, 2, 4, 1 @ 848B8E8 + voice_square_1 0, 0, 0, 2, 4, 1 @ 848B8F4 + voice_square_2 3, 0, 1, 7, 1 @ 848B900 + voice_square_1 0, 3, 0, 1, 7, 1 @ 848B90C + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B918 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B924 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B930 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B93C + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B948 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B954 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B960 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B96C + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B978 + voice_directsound 60, 0, gDirectSoundWaveData_1, 255, 0, 255, 127 @ 848B984 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B990 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B99C + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B9A8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B9B4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B9C0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B9CC + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B9D8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B9E4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B9F0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848B9FC + voice_square_1 0, 2, 0, 0, 15, 0 @ 848BA08 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848BA14 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848BA20 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848BA2C + voice_square_1 0, 2, 0, 0, 15, 0 @ 848BA38 + voice_directsound 60, 0, gDirectSoundWaveData_49, 255, 253, 0, 149 @ 848BA44 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848BA50 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848BA5C + voice_square_1 0, 2, 0, 0, 15, 0 @ 848BA68 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848BA74 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848BA80 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848BA8C + voice_square_1 0, 2, 0, 0, 15, 0 @ 848BA98 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848BAA4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848BAB0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848BABC + voice_square_1 0, 2, 0, 0, 15, 0 @ 848BAC8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848BAD4 + voice_directsound_no_resample 60, 0, gDirectSoundWaveData_50, 255, 246, 0, 226 @ 848BAE0 + voice_directsound 60, 0, gDirectSoundWaveData_5, 255, 246, 0, 226 @ 848BAEC + voice_keysplit voicegroup004, KeySplitTable2 @ 848BAF8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848BB04 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848BB10 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848BB1C + voice_square_1 0, 2, 0, 0, 15, 0 @ 848BB28 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848BB34 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848BB40 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848BB4C + voice_keysplit voicegroup005, KeySplitTable3 @ 848BB58 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848BB64 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848BB70 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848BB7C + voice_keysplit voicegroup007, KeySplitTable5 @ 848BB88 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848BB94 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848BBA0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848BBAC + voice_square_1 0, 2, 0, 0, 15, 0 @ 848BBB8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848BBC4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848BBD0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848BBDC + voice_square_1 0, 2, 0, 0, 15, 0 @ 848BBE8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848BBF4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848BC00 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848BC0C + voice_square_1 0, 2, 0, 0, 15, 0 @ 848BC18 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848BC24 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848BC30 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848BC3C + voice_square_1 0, 2, 0, 0, 15, 0 @ 848BC48 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848BC54 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848BC60 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848BC6C + voice_square_2 2, 0, 1, 7, 1 @ 848BC78 + voice_programmable_wave_alt gProgrammableWaveData_84A322C, 0, 7, 15, 2 @ 848BC84 + voice_square_1 0, 2, 0, 1, 7, 1 @ 848BC90 + voice_square_2 1, 0, 1, 9, 1 @ 848BC9C + voice_square_1 0, 2, 0, 0, 15, 0 @ 848BCA8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848BCB4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848BCC0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848BCCC + voice_square_1 0, 2, 0, 0, 15, 0 @ 848BCD8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848BCE4 + voice_programmable_wave_alt gProgrammableWaveData_84A324C, 0, 7, 15, 2 @ 848BCF0 + +voicegroup012:: @ 848BCFC + voice_square_1 0, 2, 0, 0, 15, 0 @ 848BCFC + voice_keysplit voicegroup003, KeySplitTable1 @ 848BD08 + +voicegroup127:: @ 848BD14 + voice_directsound 60, 0, gDirectSoundWaveData_51, 255, 249, 103, 165 @ 848BD14 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848BD20 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848BD2C + voice_square_1 0, 2, 0, 0, 15, 0 @ 848BD38 + voice_square_1_alt 0, 2, 0, 2, 0, 0 @ 848BD44 + voice_square_1_alt 0, 0, 0, 2, 0, 1 @ 848BD50 + voice_square_1_alt 0, 2, 0, 4, 0, 1 @ 848BD5C + voice_square_1_alt 44, 2, 0, 4, 0, 0 @ 848BD68 + voice_square_1_alt 38, 0, 0, 4, 0, 0 @ 848BD74 + voice_square_1_alt 0, 0, 0, 7, 0, 0 @ 848BD80 + voice_square_1_alt 0, 2, 2, 0, 15, 0 @ 848BD8C + voice_square_1_alt 0, 1, 2, 0, 15, 0 @ 848BD98 + voice_square_1_alt 23, 1, 0, 1, 9, 0 @ 848BDA4 + voice_directsound 60, 0, gDirectSoundWaveData_52, 255, 0, 255, 165 @ 848BDB0 + voice_directsound 60, 0, gDirectSoundWaveData_52, 255, 226, 0, 165 @ 848BDBC + voice_square_1_alt 0, 2, 0, 6, 0, 1 @ 848BDC8 + voice_square_1_alt 36, 0, 0, 2, 0, 0 @ 848BDD4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848BDE0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848BDEC + voice_square_1 0, 2, 0, 0, 15, 0 @ 848BDF8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848BE04 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848BE10 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848BE1C + voice_square_1 0, 2, 0, 0, 15, 0 @ 848BE28 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848BE34 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848BE40 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848BE4C + voice_square_1 0, 2, 0, 0, 15, 0 @ 848BE58 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848BE64 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848BE70 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848BE7C + voice_square_1 0, 2, 0, 0, 15, 0 @ 848BE88 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848BE94 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848BEA0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848BEAC + voice_square_1 0, 2, 0, 0, 15, 0 @ 848BEB8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848BEC4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848BED0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848BEDC + voice_square_1 0, 2, 0, 0, 15, 0 @ 848BEE8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848BEF4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848BF00 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848BF0C + voice_square_1 0, 2, 0, 0, 15, 0 @ 848BF18 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848BF24 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848BF30 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848BF3C + voice_directsound 60, 0, gDirectSoundWaveData_5, 255, 246, 0, 226 @ 848BF48 + voice_keysplit voicegroup004, KeySplitTable2 @ 848BF54 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848BF60 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848BF6C + voice_square_1 0, 2, 0, 0, 15, 0 @ 848BF78 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848BF84 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848BF90 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848BF9C + voice_square_1 0, 2, 0, 0, 15, 0 @ 848BFA8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848BFB4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848BFC0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848BFCC + voice_square_1 0, 2, 0, 0, 15, 0 @ 848BFD8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848BFE4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848BFF0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848BFFC + voice_square_1 0, 2, 0, 0, 15, 0 @ 848C008 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848C014 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848C020 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848C02C + voice_square_1 0, 2, 0, 0, 15, 0 @ 848C038 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848C044 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848C050 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848C05C + voice_square_1 0, 2, 0, 0, 15, 0 @ 848C068 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848C074 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848C080 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848C08C + voice_square_1 0, 2, 0, 0, 15, 0 @ 848C098 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848C0A4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848C0B0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848C0BC + voice_square_1 0, 2, 0, 0, 15, 0 @ 848C0C8 + voice_square_2_alt 3, 0, 1, 0, 1 @ 848C0D4 + voice_square_1_alt 0, 3, 0, 1, 0, 1 @ 848C0E0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848C0EC + voice_square_1 0, 2, 0, 0, 15, 0 @ 848C0F8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848C104 + voice_square_1_alt 46, 2, 0, 4, 0, 0 @ 848C110 + voice_square_1_alt 38, 2, 0, 4, 0, 0 @ 848C11C + voice_square_1_alt 119, 2, 0, 0, 15, 1 @ 848C128 + voice_square_1_alt 0, 2, 0, 0, 15, 1 @ 848C134 + voice_square_1_alt 106, 2, 0, 2, 0, 0 @ 848C140 + voice_square_1_alt 23, 2, 0, 1, 9, 0 @ 848C14C + voice_square_1_alt 21, 2, 0, 1, 9, 0 @ 848C158 + voice_square_1_alt 0, 0, 0, 0, 15, 1 @ 848C164 + voice_square_1_alt 47, 2, 0, 2, 6, 0 @ 848C170 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848C17C + voice_square_1 0, 2, 0, 0, 15, 0 @ 848C188 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848C194 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848C1A0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848C1AC + voice_square_1 0, 2, 0, 0, 15, 0 @ 848C1B8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848C1C4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848C1D0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848C1DC + voice_square_1 0, 2, 0, 0, 15, 0 @ 848C1E8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848C1F4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848C200 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848C20C + voice_square_1 0, 2, 0, 0, 15, 0 @ 848C218 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848C224 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848C230 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848C23C + voice_square_1 0, 2, 0, 0, 15, 0 @ 848C248 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848C254 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848C260 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848C26C + voice_square_1 0, 2, 0, 0, 15, 0 @ 848C278 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848C284 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848C290 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848C29C + voice_noise 0, 0, 7, 15, 0 @ 848C2A8 + voice_noise 0, 2, 7, 15, 0 @ 848C2B4 + voice_noise_alt 0, 2, 0, 15, 0 @ 848C2C0 + voice_noise_alt 1, 0, 0, 15, 0 @ 848C2CC + voice_noise_alt 0, 0, 0, 15, 0 @ 848C2D8 + voice_noise_alt 0, 0, 3, 0, 0 @ 848C2E4 + voice_noise_alt 0, 0, 2, 0, 0 @ 848C2F0 + voice_noise_alt 0, 0, 1, 0, 0 @ 848C2FC + voice_noise_alt 0, 0, 1, 0, 1 @ 848C308 + +voicegroup128:: @ 848C314 + voice_directsound_no_resample 60, 0, gDirectSoundWaveData_53, 255, 249, 0, 165 @ 848C314 + voice_directsound_alt 60, 0, gDirectSoundWaveData_53, 255, 0, 255, 165 @ 848C320 + voice_directsound 60, 0, gDirectSoundWaveData_51, 255, 0, 255, 165 @ 848C32C + voice_directsound 60, 0, gDirectSoundWaveData_0, 255, 242, 0, 127 @ 848C338 + voice_noise_alt 0, 0, 1, 0, 1 @ 848C344 + voice_noise_alt 1, 0, 1, 0, 1 @ 848C350 + voice_directsound 60, 0, gDirectSoundWaveData_5, 255, 0, 255, 165 @ 848C35C + voice_square_1_alt 0, 2, 0, 2, 0, 1 @ 848C368 + voice_directsound 60, 0, gDirectSoundWaveData_54, 255, 0, 255, 165 @ 848C374 + voice_directsound 60, 0, gDirectSoundWaveData_55, 255, 0, 255, 127 @ 848C380 + voice_directsound 60, 0, gDirectSoundWaveData_56, 255, 0, 255, 127 @ 848C38C + voice_noise_alt 1, 0, 2, 0, 0 @ 848C398 + voice_square_1 103, 3, 2, 7, 0, 0 @ 848C3A4 + voice_square_2 3, 2, 7, 0, 0 @ 848C3B0 + voice_directsound 60, 0, gDirectSoundWaveData_52, 255, 226, 0, 127 @ 848C3BC + voice_directsound 60, 0, gDirectSoundWaveData_57, 255, 0, 255, 0 @ 848C3C8 + voice_directsound 60, 0, gDirectSoundWaveData_52, 255, 204, 0, 127 @ 848C3D4 + voice_square_1_alt 0, 2, 0, 2, 0, 1 @ 848C3E0 + voice_directsound 60, 0, gDirectSoundWaveData_58, 255, 0, 255, 127 @ 848C3EC + voice_directsound 60, 0, gDirectSoundWaveData_52, 255, 0, 255, 127 @ 848C3F8 + voice_square_1 103, 0, 0, 7, 0, 0 @ 848C404 + voice_directsound 60, 0, gDirectSoundWaveData_17, 255, 0, 255, 127 @ 848C410 + voice_directsound 60, 0, gDirectSoundWaveData_59, 255, 0, 255, 127 @ 848C41C + voice_directsound 60, 0, gDirectSoundWaveData_60, 255, 0, 255, 127 @ 848C428 + voice_directsound 60, 0, gDirectSoundWaveData_15, 255, 0, 255, 127 @ 848C434 + voice_noise_alt 0, 0, 7, 15, 1 @ 848C440 + voice_directsound 60, 0, gDirectSoundWaveData_61, 255, 0, 255, 127 @ 848C44C + voice_noise_alt 1, 0, 7, 15, 1 @ 848C458 + voice_directsound 60, 0, gDirectSoundWaveData_0, 255, 246, 0, 127 @ 848C464 + voice_directsound 60, 0, gDirectSoundWaveData_62, 255, 0, 255, 127 @ 848C470 + voice_square_1_alt 19, 2, 0, 2, 0, 0 @ 848C47C + voice_directsound 60, 0, gDirectSoundWaveData_63, 255, 0, 255, 127 @ 848C488 + voice_square_1 103, 0, 0, 0, 15, 0 @ 848C494 + voice_directsound_alt 60, 0, gDirectSoundWaveData_62, 255, 0, 255, 127 @ 848C4A0 + voice_directsound 60, 0, gDirectSoundWaveData_2, 255, 255, 255, 127 @ 848C4AC + voice_directsound 60, 0, gDirectSoundWaveData_4, 255, 0, 255, 127 @ 848C4B8 + voice_directsound 60, 0, gDirectSoundWaveData_64, 255, 0, 255, 127 @ 848C4C4 + voice_directsound 60, 0, gDirectSoundWaveData_63, 255, 242, 0, 0 @ 848C4D0 + voice_directsound 60, 0, gDirectSoundWaveData_65, 255, 0, 255, 0 @ 848C4DC + voice_directsound 60, 0, gDirectSoundWaveData_66, 255, 165, 90, 216 @ 848C4E8 + voice_directsound 60, 0, gDirectSoundWaveData_67, 255, 127, 0, 188 @ 848C4F4 + voice_directsound 60, 0, gDirectSoundWaveData_68, 255, 249, 0, 165 @ 848C500 + voice_square_1 0, 0, 4, 6, 0, 0 @ 848C50C + voice_directsound 60, 0, gDirectSoundWaveData_0, 13, 0, 255, 127 @ 848C518 + voice_directsound 60, 0, gDirectSoundWaveData_66, 13, 0, 255, 127 @ 848C524 + voice_directsound 60, 0, gDirectSoundWaveData_69, 255, 0, 255, 127 @ 848C530 + voice_directsound 60, 0, gDirectSoundWaveData_70, 255, 252, 0, 204 @ 848C53C + voice_square_1 0, 2, 0, 0, 15, 0 @ 848C548 + voice_directsound 60, 0, gDirectSoundWaveData_71, 255, 235, 0, 204 @ 848C554 + voice_square_1 0, 0, 4, 0, 15, 0 @ 848C560 + voice_directsound 60, 0, gDirectSoundWaveData_71, 255, 188, 0, 0 @ 848C56C + voice_directsound 60, 0, gDirectSoundWaveData_66, 255, 226, 0, 127 @ 848C578 + voice_directsound 60, 0, gDirectSoundWaveData_20, 26, 0, 255, 127 @ 848C584 + voice_square_1_alt 0, 2, 0, 1, 0, 0 @ 848C590 + voice_directsound 60, 0, gDirectSoundWaveData_0, 255, 252, 0, 127 @ 848C59C + voice_square_1_alt 0, 1, 0, 2, 0, 0 @ 848C5A8 + voice_directsound 60, 0, gDirectSoundWaveData_55, 255, 127, 0, 127 @ 848C5B4 + voice_noise_alt 0, 1, 6, 0, 0 @ 848C5C0 + voice_directsound 60, 0, gDirectSoundWaveData_3, 255, 255, 255, 127 @ 848C5CC + voice_directsound 60, 0, gDirectSoundWaveData_16, 255, 255, 255, 127 @ 848C5D8 + voice_directsound 60, 0, gDirectSoundWaveData_72, 255, 255, 255, 127 @ 848C5E4 + voice_directsound 60, 0, gDirectSoundWaveData_47, 11, 242, 0, 127 @ 848C5F0 + voice_square_1_alt 0, 2, 4, 6, 0, 0 @ 848C5FC + voice_directsound 60, 0, gDirectSoundWaveData_73, 255, 255, 255, 127 @ 848C608 + voice_directsound 60, 0, gDirectSoundWaveData_74, 255, 0, 255, 165 @ 848C614 + voice_directsound 60, 0, gDirectSoundWaveData_75, 255, 0, 255, 165 @ 848C620 + voice_noise_alt 0, 5, 7, 15, 1 @ 848C62C + voice_directsound 60, 0, gDirectSoundWaveData_52, 128, 242, 0, 165 @ 848C638 + voice_directsound 60, 0, gDirectSoundWaveData_39, 255, 0, 255, 165 @ 848C644 + voice_square_1 0, 0, 1, 5, 0, 0 @ 848C650 + voice_noise_alt 0, 6, 6, 0, 1 @ 848C65C + voice_noise_alt 0, 3, 6, 0, 1 @ 848C668 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848C674 + voice_directsound 60, 0, gDirectSoundWaveData_63, 15, 127, 231, 127 @ 848C680 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848C68C + voice_square_1 0, 2, 0, 0, 15, 0 @ 848C698 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848C6A4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848C6B0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848C6BC + voice_square_1 0, 2, 0, 0, 15, 0 @ 848C6C8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848C6D4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848C6E0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848C6EC + voice_square_1 0, 2, 0, 0, 15, 0 @ 848C6F8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848C704 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848C710 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848C71C + voice_square_1 0, 2, 0, 0, 15, 0 @ 848C728 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848C734 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848C740 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848C74C + voice_square_1 0, 2, 0, 0, 15, 0 @ 848C758 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848C764 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848C770 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848C77C + voice_square_1 0, 2, 0, 0, 15, 0 @ 848C788 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848C794 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848C7A0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848C7AC + voice_square_1 0, 2, 0, 0, 15, 0 @ 848C7B8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848C7C4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848C7D0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848C7DC + voice_square_1 0, 2, 0, 0, 15, 0 @ 848C7E8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848C7F4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848C800 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848C80C + voice_square_1 0, 2, 0, 0, 15, 0 @ 848C818 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848C824 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848C830 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848C83C + voice_square_1 0, 2, 0, 0, 15, 0 @ 848C848 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848C854 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848C860 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848C86C + voice_square_1 0, 2, 0, 0, 15, 0 @ 848C878 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848C884 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848C890 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848C89C + voice_square_1 0, 2, 0, 0, 15, 0 @ 848C8A8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848C8B4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848C8C0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848C8CC + voice_square_1 0, 2, 0, 0, 15, 0 @ 848C8D8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848C8E4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848C8F0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848C8FC + voice_noise_alt 0, 0, 1, 12, 0 @ 848C908 + +gCryTable:: @ 848C914 + cry Cry_Bulbasaur @ 848C914 + cry Cry_Ivysaur @ 848C920 + cry Cry_Venusaur @ 848C92C + cry Cry_Charmander @ 848C938 + cry Cry_Charmeleon @ 848C944 + cry Cry_Charizard @ 848C950 + cry Cry_Squirtle @ 848C95C + cry Cry_Wartortle @ 848C968 + cry Cry_Blastoise @ 848C974 + cry Cry_Caterpie @ 848C980 + cry Cry_Metapod @ 848C98C + cry Cry_Butterfree @ 848C998 + cry Cry_Weedle @ 848C9A4 + cry Cry_Kakuna @ 848C9B0 + cry Cry_Beedrill @ 848C9BC + cry Cry_Pidgey @ 848C9C8 + cry Cry_Pidgeotto @ 848C9D4 + cry Cry_Pidgeot @ 848C9E0 + cry Cry_Rattata @ 848C9EC + cry Cry_Raticate @ 848C9F8 + cry Cry_Spearow @ 848CA04 + cry Cry_Fearow @ 848CA10 + cry Cry_Ekans @ 848CA1C + cry Cry_Arbok @ 848CA28 + cry Cry_Pikachu @ 848CA34 + cry Cry_Raichu @ 848CA40 + cry Cry_Sandshrew @ 848CA4C + cry Cry_Sandslash @ 848CA58 + cry Cry_NidoranF @ 848CA64 + cry Cry_Nidorina @ 848CA70 + cry Cry_Nidoqueen @ 848CA7C + cry Cry_NidoranM @ 848CA88 + cry Cry_Nidorino @ 848CA94 + cry Cry_Nidoking @ 848CAA0 + cry Cry_Clefairy @ 848CAAC + cry Cry_Clefable @ 848CAB8 + cry Cry_Vulpix @ 848CAC4 + cry Cry_Ninetales @ 848CAD0 + cry Cry_Jigglypuff @ 848CADC + cry Cry_Wigglytuff @ 848CAE8 + cry Cry_Zubat @ 848CAF4 + cry Cry_Golbat @ 848CB00 + cry Cry_Oddish @ 848CB0C + cry Cry_Gloom @ 848CB18 + cry Cry_Vileplume @ 848CB24 + cry Cry_Paras @ 848CB30 + cry Cry_Parasect @ 848CB3C + cry Cry_Venonat @ 848CB48 + cry Cry_Venomoth @ 848CB54 + cry Cry_Diglett @ 848CB60 + cry Cry_Dugtrio @ 848CB6C + cry Cry_Meowth @ 848CB78 + cry Cry_Persian @ 848CB84 + cry Cry_Psyduck @ 848CB90 + cry Cry_Golduck @ 848CB9C + cry Cry_Mankey @ 848CBA8 + cry Cry_Primeape @ 848CBB4 + cry Cry_Growlithe @ 848CBC0 + cry Cry_Arcanine @ 848CBCC + cry Cry_Poliwag @ 848CBD8 + cry Cry_Poliwhirl @ 848CBE4 + cry Cry_Poliwrath @ 848CBF0 + cry Cry_Abra @ 848CBFC + cry Cry_Kadabra @ 848CC08 + cry Cry_Alakazam @ 848CC14 + cry Cry_Machop @ 848CC20 + cry Cry_Machoke @ 848CC2C + cry Cry_Machamp @ 848CC38 + cry Cry_Bellsprout @ 848CC44 + cry Cry_Weepinbell @ 848CC50 + cry Cry_Victreebel @ 848CC5C + cry Cry_Tentacool @ 848CC68 + cry Cry_Tentacruel @ 848CC74 + cry Cry_Geodude @ 848CC80 + cry Cry_Graveler @ 848CC8C + cry Cry_Golem @ 848CC98 + cry Cry_Ponyta @ 848CCA4 + cry Cry_Rapidash @ 848CCB0 + cry Cry_Slowpoke @ 848CCBC + cry Cry_Slowbro @ 848CCC8 + cry Cry_Magnemite @ 848CCD4 + cry Cry_Magneton @ 848CCE0 + cry Cry_Farfetchd @ 848CCEC + cry Cry_Doduo @ 848CCF8 + cry Cry_Dodrio @ 848CD04 + cry Cry_Seel @ 848CD10 + cry Cry_Dewgong @ 848CD1C + cry Cry_Grimer @ 848CD28 + cry Cry_Muk @ 848CD34 + cry Cry_Shellder @ 848CD40 + cry Cry_Cloyster @ 848CD4C + cry Cry_Gastly @ 848CD58 + cry Cry_Haunter @ 848CD64 + cry Cry_Gengar @ 848CD70 + cry Cry_Onix @ 848CD7C + cry Cry_Drowzee @ 848CD88 + cry Cry_Hypno @ 848CD94 + cry Cry_Krabby @ 848CDA0 + cry Cry_Kingler @ 848CDAC + cry Cry_Voltorb @ 848CDB8 + cry Cry_Electrode @ 848CDC4 + cry Cry_Exeggcute @ 848CDD0 + cry Cry_Exeggutor @ 848CDDC + cry Cry_Cubone @ 848CDE8 + cry Cry_Marowak @ 848CDF4 + cry Cry_Hitmonlee @ 848CE00 + cry Cry_Hitmonchan @ 848CE0C + cry Cry_Lickitung @ 848CE18 + cry Cry_Koffing @ 848CE24 + cry Cry_Weezing @ 848CE30 + cry Cry_Rhyhorn @ 848CE3C + cry Cry_Rhydon @ 848CE48 + cry Cry_Chansey @ 848CE54 + cry Cry_Tangela @ 848CE60 + cry Cry_Kangaskhan @ 848CE6C + cry Cry_Horsea @ 848CE78 + cry Cry_Seadra @ 848CE84 + cry Cry_Goldeen @ 848CE90 + cry Cry_Seaking @ 848CE9C + cry Cry_Staryu @ 848CEA8 + cry Cry_Starmie @ 848CEB4 + cry Cry_MrMime @ 848CEC0 + cry Cry_Scyther @ 848CECC + cry Cry_Jynx @ 848CED8 + cry Cry_Electabuzz @ 848CEE4 + cry Cry_Magmar @ 848CEF0 + cry Cry_Pinsir @ 848CEFC + cry Cry_Tauros @ 848CF08 + cry Cry_Magikarp @ 848CF14 + cry Cry_Gyarados @ 848CF20 + cry Cry_Lapras @ 848CF2C + cry Cry_Ditto @ 848CF38 + cry Cry_Eevee @ 848CF44 + cry Cry_Vaporeon @ 848CF50 + cry Cry_Jolteon @ 848CF5C + cry Cry_Flareon @ 848CF68 + cry Cry_Porygon @ 848CF74 + cry Cry_Omanyte @ 848CF80 + cry Cry_Omastar @ 848CF8C + cry Cry_Kabuto @ 848CF98 + cry Cry_Kabutops @ 848CFA4 + cry Cry_Aerodactyl @ 848CFB0 + cry Cry_Snorlax @ 848CFBC + cry Cry_Articuno @ 848CFC8 + cry Cry_Zapdos @ 848CFD4 + cry Cry_Moltres @ 848CFE0 + cry Cry_Dratini @ 848CFEC + cry Cry_Dragonair @ 848CFF8 + cry Cry_Dragonite @ 848D004 + cry Cry_Mewtwo @ 848D010 + cry Cry_Mew @ 848D01C + cry Cry_Chikorita @ 848D028 + cry Cry_Bayleef @ 848D034 + cry Cry_Meganium @ 848D040 + cry Cry_Cyndaquil @ 848D04C + cry Cry_Quilava @ 848D058 + cry Cry_Typhlosion @ 848D064 + cry Cry_Totodile @ 848D070 + cry Cry_Croconaw @ 848D07C + cry Cry_Feraligatr @ 848D088 + cry Cry_Sentret @ 848D094 + cry Cry_Furret @ 848D0A0 + cry Cry_Hoothoot @ 848D0AC + cry Cry_Noctowl @ 848D0B8 + cry Cry_Ledyba @ 848D0C4 + cry Cry_Ledian @ 848D0D0 + cry Cry_Spinarak @ 848D0DC + cry Cry_Ariados @ 848D0E8 + cry Cry_Crobat @ 848D0F4 + cry Cry_Chinchou @ 848D100 + cry Cry_Lanturn @ 848D10C + cry Cry_Pichu @ 848D118 + cry Cry_Cleffa @ 848D124 + cry Cry_Igglybuff @ 848D130 + cry Cry_Togepi @ 848D13C + cry Cry_Togetic @ 848D148 + cry Cry_Natu @ 848D154 + cry Cry_Xatu @ 848D160 + cry Cry_Mareep @ 848D16C + cry Cry_Flaaffy @ 848D178 + cry Cry_Ampharos @ 848D184 + cry Cry_Bellossom @ 848D190 + cry Cry_Marill @ 848D19C + cry Cry_Azumarill @ 848D1A8 + cry Cry_Sudowoodo @ 848D1B4 + cry Cry_Politoed @ 848D1C0 + cry Cry_Hoppip @ 848D1CC + cry Cry_Skiploom @ 848D1D8 + cry Cry_Jumpluff @ 848D1E4 + cry Cry_Aipom @ 848D1F0 + cry Cry_Sunkern @ 848D1FC + cry Cry_Sunflora @ 848D208 + cry Cry_Yanma @ 848D214 + cry Cry_Wooper @ 848D220 + cry Cry_Quagsire @ 848D22C + cry Cry_Espeon @ 848D238 + cry Cry_Umbreon @ 848D244 + cry Cry_Murkrow @ 848D250 + cry Cry_Slowking @ 848D25C + cry Cry_Misdreavus @ 848D268 + cry Cry_Unown @ 848D274 + cry Cry_Wobbuffet @ 848D280 + cry Cry_Girafarig @ 848D28C + cry Cry_Pineco @ 848D298 + cry Cry_Forretress @ 848D2A4 + cry Cry_Dunsparce @ 848D2B0 + cry Cry_Gligar @ 848D2BC + cry Cry_Steelix @ 848D2C8 + cry Cry_Snubbull @ 848D2D4 + cry Cry_Granbull @ 848D2E0 + cry Cry_Qwilfish @ 848D2EC + cry Cry_Scizor @ 848D2F8 + cry Cry_Shuckle @ 848D304 + cry Cry_Heracross @ 848D310 + cry Cry_Sneasel @ 848D31C + cry Cry_Teddiursa @ 848D328 + cry Cry_Ursaring @ 848D334 + cry Cry_Slugma @ 848D340 + cry Cry_Magcargo @ 848D34C + cry Cry_Swinub @ 848D358 + cry Cry_Piloswine @ 848D364 + cry Cry_Corsola @ 848D370 + cry Cry_Remoraid @ 848D37C + cry Cry_Octillery @ 848D388 + cry Cry_Delibird @ 848D394 + cry Cry_Mantine @ 848D3A0 + cry Cry_Skarmory @ 848D3AC + cry Cry_Houndour @ 848D3B8 + cry Cry_Houndoom @ 848D3C4 + cry Cry_Kingdra @ 848D3D0 + cry Cry_Phanpy @ 848D3DC + cry Cry_Donphan @ 848D3E8 + cry Cry_Porygon2 @ 848D3F4 + cry Cry_Stantler @ 848D400 + cry Cry_Smeargle @ 848D40C + cry Cry_Tyrogue @ 848D418 + cry Cry_Hitmontop @ 848D424 + cry Cry_Smoochum @ 848D430 + cry Cry_Elekid @ 848D43C + cry Cry_Magby @ 848D448 + cry Cry_Miltank @ 848D454 + cry Cry_Blissey @ 848D460 + cry Cry_Raikou @ 848D46C + cry Cry_Entei @ 848D478 + cry Cry_Suicune @ 848D484 + cry Cry_Larvitar @ 848D490 + cry Cry_Pupitar @ 848D49C + cry Cry_Tyranitar @ 848D4A8 + cry Cry_Lugia @ 848D4B4 + cry Cry_HoOh @ 848D4C0 + cry Cry_Celebi @ 848D4CC + cry Cry_Kecleon @ 848D4D8 + cry Cry_Roselia @ 848D4E4 + cry Cry_Torkoal @ 848D4F0 + cry Cry_Electrike @ 848D4FC + cry Cry_Manectric @ 848D508 + cry Cry_Duskull @ 848D514 + cry Cry_Latias @ 848D520 + cry Cry_Wynaut @ 848D52C + cry Cry_Seviper @ 848D538 + cry Cry_Sharpedo @ 848D544 + cry Cry_Zangoose @ 848D550 + cry Cry_Azurill @ 848D55C + cry Cry_Swablu @ 848D568 + cry Cry_Altaria @ 848D574 + cry Cry_Unused265 @ 848D580 + cry Cry_Taillow @ 848D58C + cry Cry_Swellow @ 848D598 + cry Cry_Unused268 @ 848D5A4 + cry Cry_Spinda @ 848D5B0 + cry Cry_Torchic @ 848D5BC + cry Cry_Combusken @ 848D5C8 + cry Cry_Blaziken @ 848D5D4 + cry Cry_Treecko @ 848D5E0 + cry Cry_Grovyle @ 848D5EC + cry Cry_Sceptile @ 848D5F8 + cry Cry_Mudkip @ 848D604 + cry Cry_Marshtomp @ 848D610 + cry Cry_Swampert @ 848D61C + cry Cry_Pelipper @ 848D628 + cry Cry_Wingull @ 848D634 + cry Cry_Banette @ 848D640 + cry Cry_Shuppet @ 848D64C + cry Cry_Lotad @ 848D658 + cry Cry_Lombre @ 848D664 + cry Cry_Ludicolo @ 848D670 + cry Cry_Seedot @ 848D67C + cry Cry_Nuzleaf @ 848D688 + cry Cry_Shiftry @ 848D694 + cry Cry_Carvanha @ 848D6A0 + cry Cry_Wurmple @ 848D6AC + cry Cry_Silcoon @ 848D6B8 + cry Cry_Beautifly @ 848D6C4 + cry Cry_Cascoon @ 848D6D0 + cry Cry_Dustox @ 848D6DC + cry Cry_Ralts @ 848D6E8 + cry Cry_Kirlia @ 848D6F4 + cry Cry_Gardevoir @ 848D700 + cry Cry_Slakoth @ 848D70C + cry Cry_Vigoroth @ 848D718 + cry Cry_Slaking @ 848D724 + cry Cry_Nincada @ 848D730 + cry Cry_Ninjask @ 848D73C + cry Cry_Shedinja @ 848D748 + cry Cry_Makuhita @ 848D754 + cry Cry_Hariyama @ 848D760 + cry Cry_Nosepass @ 848D76C + cry Cry_Glalie @ 848D778 + cry Cry_Plusle @ 848D784 + cry Cry_Minun @ 848D790 + cry Cry_Surskit @ 848D79C + cry Cry_Masquerain @ 848D7A8 + cry Cry_Skitty @ 848D7B4 + cry Cry_Delcatty @ 848D7C0 + cry Cry_Gulpin @ 848D7CC + cry Cry_Swalot @ 848D7D8 + cry Cry_Numel @ 848D7E4 + cry Cry_Camerupt @ 848D7F0 + cry Cry_Barboach @ 848D7FC + cry Cry_Whiscash @ 848D808 + cry Cry_Corphish @ 848D814 + cry Cry_Crawdaunt @ 848D820 + cry Cry_Spoink @ 848D82C + cry Cry_Grumpig @ 848D838 + cry Cry_Trapinch @ 848D844 + cry Cry_Vibrava @ 848D850 + cry Cry_Flygon @ 848D85C + cry Cry_Cacnea @ 848D868 + cry Cry_Cacturne @ 848D874 + cry Cry_Baltoy @ 848D880 + cry Cry_Claydol @ 848D88C + cry Cry_Lunatone @ 848D898 + cry Cry_Solrock @ 848D8A4 + cry Cry_Feebas @ 848D8B0 + cry Cry_Milotic @ 848D8BC + cry Cry_Absol @ 848D8C8 + cry Cry_Meditite @ 848D8D4 + cry Cry_Medicham @ 848D8E0 + cry Cry_Spheal @ 848D8EC + cry Cry_Sealeo @ 848D8F8 + cry Cry_Walrein @ 848D904 + cry Cry_Clamperl @ 848D910 + cry Cry_Huntail @ 848D91C + cry Cry_Gorebyss @ 848D928 + cry Cry_Lileep @ 848D934 + cry Cry_Cradily @ 848D940 + cry Cry_Anorith @ 848D94C + cry Cry_Armaldo @ 848D958 + cry Cry_Beldum @ 848D964 + cry Cry_Metang @ 848D970 + cry Cry_Metagross @ 848D97C + cry Cry_Bagon @ 848D988 + cry Cry_Shelgon @ 848D994 + cry Cry_Regirock @ 848D9A0 + cry Cry_Regice @ 848D9AC + cry Cry_Registeel @ 848D9B8 + cry Cry_Castform @ 848D9C4 + cry Cry_Volbeat @ 848D9D0 + cry Cry_Illumise @ 848D9DC + cry Cry_Poochyena @ 848D9E8 + cry Cry_Mightyena @ 848D9F4 + cry Cry_Dusclops @ 848DA00 + cry Cry_Sableye @ 848DA0C + cry Cry_Mawile @ 848DA18 + cry Cry_Aron @ 848DA24 + cry Cry_Lairon @ 848DA30 + cry Cry_Aggron @ 848DA3C + cry Cry_Relicanth @ 848DA48 + cry Cry_Luvdisc @ 848DA54 + cry Cry_Groudon @ 848DA60 + cry Cry_Kyogre @ 848DA6C + cry Cry_Rayquaza @ 848DA78 + cry Cry_Salamence @ 848DA84 + cry Cry_Breloom @ 848DA90 + cry Cry_Shroomish @ 848DA9C + cry Cry_Linoone @ 848DAA8 + cry Cry_Tropius @ 848DAB4 + cry Cry_Wailmer @ 848DAC0 + cry Cry_Zigzagoon @ 848DACC + cry Cry_Exploud @ 848DAD8 + cry Cry_Loudred @ 848DAE4 + cry Cry_Wailord @ 848DAF0 + cry Cry_Whismur @ 848DAFC + cry Cry_Snorunt @ 848DB08 + cry Cry_Latios @ 848DB14 + cry Cry_Jirachi @ 848DB20 + cry Cry_Deoxys @ 848DB2C + cry Cry_Chimecho @ 848DB38 + +gCryTable2:: @ 848DB44 + cry2 Cry_Bulbasaur @ 848DB44 + cry2 Cry_Ivysaur @ 848DB50 + cry2 Cry_Venusaur @ 848DB5C + cry2 Cry_Charmander @ 848DB68 + cry2 Cry_Charmeleon @ 848DB74 + cry2 Cry_Charizard @ 848DB80 + cry2 Cry_Squirtle @ 848DB8C + cry2 Cry_Wartortle @ 848DB98 + cry2 Cry_Blastoise @ 848DBA4 + cry2 Cry_Caterpie @ 848DBB0 + cry2 Cry_Metapod @ 848DBBC + cry2 Cry_Butterfree @ 848DBC8 + cry2 Cry_Weedle @ 848DBD4 + cry2 Cry_Kakuna @ 848DBE0 + cry2 Cry_Beedrill @ 848DBEC + cry2 Cry_Pidgey @ 848DBF8 + cry2 Cry_Pidgeotto @ 848DC04 + cry2 Cry_Pidgeot @ 848DC10 + cry2 Cry_Rattata @ 848DC1C + cry2 Cry_Raticate @ 848DC28 + cry2 Cry_Spearow @ 848DC34 + cry2 Cry_Fearow @ 848DC40 + cry2 Cry_Ekans @ 848DC4C + cry2 Cry_Arbok @ 848DC58 + cry2 Cry_Pikachu @ 848DC64 + cry2 Cry_Raichu @ 848DC70 + cry2 Cry_Sandshrew @ 848DC7C + cry2 Cry_Sandslash @ 848DC88 + cry2 Cry_NidoranF @ 848DC94 + cry2 Cry_Nidorina @ 848DCA0 + cry2 Cry_Nidoqueen @ 848DCAC + cry2 Cry_NidoranM @ 848DCB8 + cry2 Cry_Nidorino @ 848DCC4 + cry2 Cry_Nidoking @ 848DCD0 + cry2 Cry_Clefairy @ 848DCDC + cry2 Cry_Clefable @ 848DCE8 + cry2 Cry_Vulpix @ 848DCF4 + cry2 Cry_Ninetales @ 848DD00 + cry2 Cry_Jigglypuff @ 848DD0C + cry2 Cry_Wigglytuff @ 848DD18 + cry2 Cry_Zubat @ 848DD24 + cry2 Cry_Golbat @ 848DD30 + cry2 Cry_Oddish @ 848DD3C + cry2 Cry_Gloom @ 848DD48 + cry2 Cry_Vileplume @ 848DD54 + cry2 Cry_Paras @ 848DD60 + cry2 Cry_Parasect @ 848DD6C + cry2 Cry_Venonat @ 848DD78 + cry2 Cry_Venomoth @ 848DD84 + cry2 Cry_Diglett @ 848DD90 + cry2 Cry_Dugtrio @ 848DD9C + cry2 Cry_Meowth @ 848DDA8 + cry2 Cry_Persian @ 848DDB4 + cry2 Cry_Psyduck @ 848DDC0 + cry2 Cry_Golduck @ 848DDCC + cry2 Cry_Mankey @ 848DDD8 + cry2 Cry_Primeape @ 848DDE4 + cry2 Cry_Growlithe @ 848DDF0 + cry2 Cry_Arcanine @ 848DDFC + cry2 Cry_Poliwag @ 848DE08 + cry2 Cry_Poliwhirl @ 848DE14 + cry2 Cry_Poliwrath @ 848DE20 + cry2 Cry_Abra @ 848DE2C + cry2 Cry_Kadabra @ 848DE38 + cry2 Cry_Alakazam @ 848DE44 + cry2 Cry_Machop @ 848DE50 + cry2 Cry_Machoke @ 848DE5C + cry2 Cry_Machamp @ 848DE68 + cry2 Cry_Bellsprout @ 848DE74 + cry2 Cry_Weepinbell @ 848DE80 + cry2 Cry_Victreebel @ 848DE8C + cry2 Cry_Tentacool @ 848DE98 + cry2 Cry_Tentacruel @ 848DEA4 + cry2 Cry_Geodude @ 848DEB0 + cry2 Cry_Graveler @ 848DEBC + cry2 Cry_Golem @ 848DEC8 + cry2 Cry_Ponyta @ 848DED4 + cry2 Cry_Rapidash @ 848DEE0 + cry2 Cry_Slowpoke @ 848DEEC + cry2 Cry_Slowbro @ 848DEF8 + cry2 Cry_Magnemite @ 848DF04 + cry2 Cry_Magneton @ 848DF10 + cry2 Cry_Farfetchd @ 848DF1C + cry2 Cry_Doduo @ 848DF28 + cry2 Cry_Dodrio @ 848DF34 + cry2 Cry_Seel @ 848DF40 + cry2 Cry_Dewgong @ 848DF4C + cry2 Cry_Grimer @ 848DF58 + cry2 Cry_Muk @ 848DF64 + cry2 Cry_Shellder @ 848DF70 + cry2 Cry_Cloyster @ 848DF7C + cry2 Cry_Gastly @ 848DF88 + cry2 Cry_Haunter @ 848DF94 + cry2 Cry_Gengar @ 848DFA0 + cry2 Cry_Onix @ 848DFAC + cry2 Cry_Drowzee @ 848DFB8 + cry2 Cry_Hypno @ 848DFC4 + cry2 Cry_Krabby @ 848DFD0 + cry2 Cry_Kingler @ 848DFDC + cry2 Cry_Voltorb @ 848DFE8 + cry2 Cry_Electrode @ 848DFF4 + cry2 Cry_Exeggcute @ 848E000 + cry2 Cry_Exeggutor @ 848E00C + cry2 Cry_Cubone @ 848E018 + cry2 Cry_Marowak @ 848E024 + cry2 Cry_Hitmonlee @ 848E030 + cry2 Cry_Hitmonchan @ 848E03C + cry2 Cry_Lickitung @ 848E048 + cry2 Cry_Koffing @ 848E054 + cry2 Cry_Weezing @ 848E060 + cry2 Cry_Rhyhorn @ 848E06C + cry2 Cry_Rhydon @ 848E078 + cry2 Cry_Chansey @ 848E084 + cry2 Cry_Tangela @ 848E090 + cry2 Cry_Kangaskhan @ 848E09C + cry2 Cry_Horsea @ 848E0A8 + cry2 Cry_Seadra @ 848E0B4 + cry2 Cry_Goldeen @ 848E0C0 + cry2 Cry_Seaking @ 848E0CC + cry2 Cry_Staryu @ 848E0D8 + cry2 Cry_Starmie @ 848E0E4 + cry2 Cry_MrMime @ 848E0F0 + cry2 Cry_Scyther @ 848E0FC + cry2 Cry_Jynx @ 848E108 + cry2 Cry_Electabuzz @ 848E114 + cry2 Cry_Magmar @ 848E120 + cry2 Cry_Pinsir @ 848E12C + cry2 Cry_Tauros @ 848E138 + cry2 Cry_Magikarp @ 848E144 + cry2 Cry_Gyarados @ 848E150 + cry2 Cry_Lapras @ 848E15C + cry2 Cry_Ditto @ 848E168 + cry2 Cry_Eevee @ 848E174 + cry2 Cry_Vaporeon @ 848E180 + cry2 Cry_Jolteon @ 848E18C + cry2 Cry_Flareon @ 848E198 + cry2 Cry_Porygon @ 848E1A4 + cry2 Cry_Omanyte @ 848E1B0 + cry2 Cry_Omastar @ 848E1BC + cry2 Cry_Kabuto @ 848E1C8 + cry2 Cry_Kabutops @ 848E1D4 + cry2 Cry_Aerodactyl @ 848E1E0 + cry2 Cry_Snorlax @ 848E1EC + cry2 Cry_Articuno @ 848E1F8 + cry2 Cry_Zapdos @ 848E204 + cry2 Cry_Moltres @ 848E210 + cry2 Cry_Dratini @ 848E21C + cry2 Cry_Dragonair @ 848E228 + cry2 Cry_Dragonite @ 848E234 + cry2 Cry_Mewtwo @ 848E240 + cry2 Cry_Mew @ 848E24C + cry2 Cry_Chikorita @ 848E258 + cry2 Cry_Bayleef @ 848E264 + cry2 Cry_Meganium @ 848E270 + cry2 Cry_Cyndaquil @ 848E27C + cry2 Cry_Quilava @ 848E288 + cry2 Cry_Typhlosion @ 848E294 + cry2 Cry_Totodile @ 848E2A0 + cry2 Cry_Croconaw @ 848E2AC + cry2 Cry_Feraligatr @ 848E2B8 + cry2 Cry_Sentret @ 848E2C4 + cry2 Cry_Furret @ 848E2D0 + cry2 Cry_Hoothoot @ 848E2DC + cry2 Cry_Noctowl @ 848E2E8 + cry2 Cry_Ledyba @ 848E2F4 + cry2 Cry_Ledian @ 848E300 + cry2 Cry_Spinarak @ 848E30C + cry2 Cry_Ariados @ 848E318 + cry2 Cry_Crobat @ 848E324 + cry2 Cry_Chinchou @ 848E330 + cry2 Cry_Lanturn @ 848E33C + cry2 Cry_Pichu @ 848E348 + cry2 Cry_Cleffa @ 848E354 + cry2 Cry_Igglybuff @ 848E360 + cry2 Cry_Togepi @ 848E36C + cry2 Cry_Togetic @ 848E378 + cry2 Cry_Natu @ 848E384 + cry2 Cry_Xatu @ 848E390 + cry2 Cry_Mareep @ 848E39C + cry2 Cry_Flaaffy @ 848E3A8 + cry2 Cry_Ampharos @ 848E3B4 + cry2 Cry_Bellossom @ 848E3C0 + cry2 Cry_Marill @ 848E3CC + cry2 Cry_Azumarill @ 848E3D8 + cry2 Cry_Sudowoodo @ 848E3E4 + cry2 Cry_Politoed @ 848E3F0 + cry2 Cry_Hoppip @ 848E3FC + cry2 Cry_Skiploom @ 848E408 + cry2 Cry_Jumpluff @ 848E414 + cry2 Cry_Aipom @ 848E420 + cry2 Cry_Sunkern @ 848E42C + cry2 Cry_Sunflora @ 848E438 + cry2 Cry_Yanma @ 848E444 + cry2 Cry_Wooper @ 848E450 + cry2 Cry_Quagsire @ 848E45C + cry2 Cry_Espeon @ 848E468 + cry2 Cry_Umbreon @ 848E474 + cry2 Cry_Murkrow @ 848E480 + cry2 Cry_Slowking @ 848E48C + cry2 Cry_Misdreavus @ 848E498 + cry2 Cry_Unown @ 848E4A4 + cry2 Cry_Wobbuffet @ 848E4B0 + cry2 Cry_Girafarig @ 848E4BC + cry2 Cry_Pineco @ 848E4C8 + cry2 Cry_Forretress @ 848E4D4 + cry2 Cry_Dunsparce @ 848E4E0 + cry2 Cry_Gligar @ 848E4EC + cry2 Cry_Steelix @ 848E4F8 + cry2 Cry_Snubbull @ 848E504 + cry2 Cry_Granbull @ 848E510 + cry2 Cry_Qwilfish @ 848E51C + cry2 Cry_Scizor @ 848E528 + cry2 Cry_Shuckle @ 848E534 + cry2 Cry_Heracross @ 848E540 + cry2 Cry_Sneasel @ 848E54C + cry2 Cry_Teddiursa @ 848E558 + cry2 Cry_Ursaring @ 848E564 + cry2 Cry_Slugma @ 848E570 + cry2 Cry_Magcargo @ 848E57C + cry2 Cry_Swinub @ 848E588 + cry2 Cry_Piloswine @ 848E594 + cry2 Cry_Corsola @ 848E5A0 + cry2 Cry_Remoraid @ 848E5AC + cry2 Cry_Octillery @ 848E5B8 + cry2 Cry_Delibird @ 848E5C4 + cry2 Cry_Mantine @ 848E5D0 + cry2 Cry_Skarmory @ 848E5DC + cry2 Cry_Houndour @ 848E5E8 + cry2 Cry_Houndoom @ 848E5F4 + cry2 Cry_Kingdra @ 848E600 + cry2 Cry_Phanpy @ 848E60C + cry2 Cry_Donphan @ 848E618 + cry2 Cry_Porygon2 @ 848E624 + cry2 Cry_Stantler @ 848E630 + cry2 Cry_Smeargle @ 848E63C + cry2 Cry_Tyrogue @ 848E648 + cry2 Cry_Hitmontop @ 848E654 + cry2 Cry_Smoochum @ 848E660 + cry2 Cry_Elekid @ 848E66C + cry2 Cry_Magby @ 848E678 + cry2 Cry_Miltank @ 848E684 + cry2 Cry_Blissey @ 848E690 + cry2 Cry_Raikou @ 848E69C + cry2 Cry_Entei @ 848E6A8 + cry2 Cry_Suicune @ 848E6B4 + cry2 Cry_Larvitar @ 848E6C0 + cry2 Cry_Pupitar @ 848E6CC + cry2 Cry_Tyranitar @ 848E6D8 + cry2 Cry_Lugia @ 848E6E4 + cry2 Cry_HoOh @ 848E6F0 + cry2 Cry_Celebi @ 848E6FC + cry2 Cry_Kecleon @ 848E708 + cry2 Cry_Roselia @ 848E714 + cry2 Cry_Torkoal @ 848E720 + cry2 Cry_Electrike @ 848E72C + cry2 Cry_Manectric @ 848E738 + cry2 Cry_Duskull @ 848E744 + cry2 Cry_Latias @ 848E750 + cry2 Cry_Wynaut @ 848E75C + cry2 Cry_Seviper @ 848E768 + cry2 Cry_Sharpedo @ 848E774 + cry2 Cry_Zangoose @ 848E780 + cry2 Cry_Azurill @ 848E78C + cry2 Cry_Swablu @ 848E798 + cry2 Cry_Altaria @ 848E7A4 + cry2 Cry_Unused265 @ 848E7B0 + cry2 Cry_Taillow @ 848E7BC + cry2 Cry_Swellow @ 848E7C8 + cry2 Cry_Unused268 @ 848E7D4 + cry2 Cry_Spinda @ 848E7E0 + cry2 Cry_Torchic @ 848E7EC + cry2 Cry_Combusken @ 848E7F8 + cry2 Cry_Blaziken @ 848E804 + cry2 Cry_Treecko @ 848E810 + cry2 Cry_Grovyle @ 848E81C + cry2 Cry_Sceptile @ 848E828 + cry2 Cry_Mudkip @ 848E834 + cry2 Cry_Marshtomp @ 848E840 + cry2 Cry_Swampert @ 848E84C + cry2 Cry_Pelipper @ 848E858 + cry2 Cry_Wingull @ 848E864 + cry2 Cry_Banette @ 848E870 + cry2 Cry_Shuppet @ 848E87C + cry2 Cry_Lotad @ 848E888 + cry2 Cry_Lombre @ 848E894 + cry2 Cry_Ludicolo @ 848E8A0 + cry2 Cry_Seedot @ 848E8AC + cry2 Cry_Nuzleaf @ 848E8B8 + cry2 Cry_Shiftry @ 848E8C4 + cry2 Cry_Carvanha @ 848E8D0 + cry2 Cry_Wurmple @ 848E8DC + cry2 Cry_Silcoon @ 848E8E8 + cry2 Cry_Beautifly @ 848E8F4 + cry2 Cry_Cascoon @ 848E900 + cry2 Cry_Dustox @ 848E90C + cry2 Cry_Ralts @ 848E918 + cry2 Cry_Kirlia @ 848E924 + cry2 Cry_Gardevoir @ 848E930 + cry2 Cry_Slakoth @ 848E93C + cry2 Cry_Vigoroth @ 848E948 + cry2 Cry_Slaking @ 848E954 + cry2 Cry_Nincada @ 848E960 + cry2 Cry_Ninjask @ 848E96C + cry2 Cry_Shedinja @ 848E978 + cry2 Cry_Makuhita @ 848E984 + cry2 Cry_Hariyama @ 848E990 + cry2 Cry_Nosepass @ 848E99C + cry2 Cry_Glalie @ 848E9A8 + cry2 Cry_Plusle @ 848E9B4 + cry2 Cry_Minun @ 848E9C0 + cry2 Cry_Surskit @ 848E9CC + cry2 Cry_Masquerain @ 848E9D8 + cry2 Cry_Skitty @ 848E9E4 + cry2 Cry_Delcatty @ 848E9F0 + cry2 Cry_Gulpin @ 848E9FC + cry2 Cry_Swalot @ 848EA08 + cry2 Cry_Numel @ 848EA14 + cry2 Cry_Camerupt @ 848EA20 + cry2 Cry_Barboach @ 848EA2C + cry2 Cry_Whiscash @ 848EA38 + cry2 Cry_Corphish @ 848EA44 + cry2 Cry_Crawdaunt @ 848EA50 + cry2 Cry_Spoink @ 848EA5C + cry2 Cry_Grumpig @ 848EA68 + cry2 Cry_Trapinch @ 848EA74 + cry2 Cry_Vibrava @ 848EA80 + cry2 Cry_Flygon @ 848EA8C + cry2 Cry_Cacnea @ 848EA98 + cry2 Cry_Cacturne @ 848EAA4 + cry2 Cry_Baltoy @ 848EAB0 + cry2 Cry_Claydol @ 848EABC + cry2 Cry_Lunatone @ 848EAC8 + cry2 Cry_Solrock @ 848EAD4 + cry2 Cry_Feebas @ 848EAE0 + cry2 Cry_Milotic @ 848EAEC + cry2 Cry_Absol @ 848EAF8 + cry2 Cry_Meditite @ 848EB04 + cry2 Cry_Medicham @ 848EB10 + cry2 Cry_Spheal @ 848EB1C + cry2 Cry_Sealeo @ 848EB28 + cry2 Cry_Walrein @ 848EB34 + cry2 Cry_Clamperl @ 848EB40 + cry2 Cry_Huntail @ 848EB4C + cry2 Cry_Gorebyss @ 848EB58 + cry2 Cry_Lileep @ 848EB64 + cry2 Cry_Cradily @ 848EB70 + cry2 Cry_Anorith @ 848EB7C + cry2 Cry_Armaldo @ 848EB88 + cry2 Cry_Beldum @ 848EB94 + cry2 Cry_Metang @ 848EBA0 + cry2 Cry_Metagross @ 848EBAC + cry2 Cry_Bagon @ 848EBB8 + cry2 Cry_Shelgon @ 848EBC4 + cry2 Cry_Regirock @ 848EBD0 + cry2 Cry_Regice @ 848EBDC + cry2 Cry_Registeel @ 848EBE8 + cry2 Cry_Castform @ 848EBF4 + cry2 Cry_Volbeat @ 848EC00 + cry2 Cry_Illumise @ 848EC0C + cry2 Cry_Poochyena @ 848EC18 + cry2 Cry_Mightyena @ 848EC24 + cry2 Cry_Dusclops @ 848EC30 + cry2 Cry_Sableye @ 848EC3C + cry2 Cry_Mawile @ 848EC48 + cry2 Cry_Aron @ 848EC54 + cry2 Cry_Lairon @ 848EC60 + cry2 Cry_Aggron @ 848EC6C + cry2 Cry_Relicanth @ 848EC78 + cry2 Cry_Luvdisc @ 848EC84 + cry2 Cry_Groudon @ 848EC90 + cry2 Cry_Kyogre @ 848EC9C + cry2 Cry_Rayquaza @ 848ECA8 + cry2 Cry_Salamence @ 848ECB4 + cry2 Cry_Breloom @ 848ECC0 + cry2 Cry_Shroomish @ 848ECCC + cry2 Cry_Linoone @ 848ECD8 + cry2 Cry_Tropius @ 848ECE4 + cry2 Cry_Wailmer @ 848ECF0 + cry2 Cry_Zigzagoon @ 848ECFC + cry2 Cry_Exploud @ 848ED08 + cry2 Cry_Loudred @ 848ED14 + cry2 Cry_Wailord @ 848ED20 + cry2 Cry_Whismur @ 848ED2C + cry2 Cry_Snorunt @ 848ED38 + cry2 Cry_Latios @ 848ED44 + cry2 Cry_Jirachi @ 848ED50 + cry2 Cry_Deoxys @ 848ED5C + cry2 Cry_Chimecho @ 848ED68 + +voicegroup129:: @ 848ED74 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848ED74 + voice_directsound 60, 0, gDirectSoundWaveData_21, 255, 0, 255, 0 @ 848ED80 + voice_directsound 60, 0, gDirectSoundWaveData_22, 255, 0, 255, 0 @ 848ED8C + voice_directsound 60, 0, gDirectSoundWaveData_16, 255, 226, 25, 0 @ 848ED98 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848EDA4 + voice_directsound 60, 0, gDirectSoundWaveData_54, 255, 0, 255, 165 @ 848EDB0 + voice_directsound 60, 0, gDirectSoundWaveData_26, 255, 165, 103, 231 @ 848EDBC + voice_directsound 60, 0, gDirectSoundWaveData_29, 255, 204, 128, 249 @ 848EDC8 + voice_directsound 60, 0, gDirectSoundWaveData_76, 255, 0, 255, 76 @ 848EDD4 + voice_directsound 60, 0, gDirectSoundWaveData_77, 255, 0, 206, 204 @ 848EDE0 + voice_directsound 60, 0, gDirectSoundWaveData_12, 255, 0, 206, 38 @ 848EDEC + voice_directsound 60, 0, gDirectSoundWaveData_13, 255, 0, 206, 0 @ 848EDF8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848EE04 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848EE10 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848EE1C + voice_square_1 0, 2, 0, 0, 15, 0 @ 848EE28 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848EE34 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848EE40 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848EE4C + voice_square_1 0, 2, 0, 0, 15, 0 @ 848EE58 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848EE64 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848EE70 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848EE7C + voice_square_1 0, 2, 0, 0, 15, 0 @ 848EE88 + voice_directsound 60, 0, gDirectSoundWaveData_78, 255, 165, 128, 204 @ 848EE94 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848EEA0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848EEAC + voice_square_1 0, 2, 0, 0, 15, 0 @ 848EEB8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848EEC4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848EED0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848EEDC + voice_directsound 60, 0, gDirectSoundWaveData_79, 255, 0, 255, 165 @ 848EEE8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848EEF4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848EF00 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848EF0C + voice_square_1 0, 2, 0, 0, 15, 0 @ 848EF18 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848EF24 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848EF30 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848EF3C + voice_square_1 0, 2, 0, 0, 15, 0 @ 848EF48 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848EF54 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848EF60 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848EF6C + voice_square_1 0, 2, 0, 0, 15, 0 @ 848EF78 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848EF84 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848EF90 + voice_directsound 60, 0, gDirectSoundWaveData_70, 255, 252, 0, 204 @ 848EF9C + voice_directsound 60, 0, gDirectSoundWaveData_74, 255, 0, 255, 165 @ 848EFA8 + voice_directsound 60, 0, gDirectSoundWaveData_52, 255, 204, 0, 127 @ 848EFB4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848EFC0 + voice_square_1_alt 0, 2, 0, 0, 15, 0 @ 848EFCC + voice_square_1 0, 2, 0, 0, 15, 0 @ 848EFD8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848EFE4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848EFF0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848EFFC + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F008 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F014 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F020 + voice_keysplit voicegroup006, KeySplitTable4 @ 848F02C + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F038 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F044 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F050 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F05C + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F068 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F074 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F080 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F08C + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F098 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F0A4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F0B0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F0BC + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F0C8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F0D4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F0E0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F0EC + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F0F8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F104 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F110 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F11C + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F128 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F134 + voice_square_1_alt 0, 3, 0, 0, 10, 3 @ 848F140 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F14C + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F158 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F164 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F170 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F17C + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F188 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F194 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F1A0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F1AC + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F1B8 + voice_square_1_alt 0, 0, 0, 0, 15, 1 @ 848F1C4 + voice_square_1_alt 0, 0, 0, 2, 5, 6 @ 848F1D0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F1DC + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F1E8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F1F4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F200 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F20C + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F218 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F224 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F230 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F23C + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F248 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F254 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F260 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F26C + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F278 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F284 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F290 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F29C + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F2A8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F2B4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F2C0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F2CC + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F2D8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F2E4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F2F0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F2FC + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F308 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F314 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F320 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F32C + voice_noise_alt 0, 0, 1, 9, 2 @ 848F338 + voice_noise_alt 0, 0, 4, 3, 1 @ 848F344 + voice_noise_alt 0, 0, 1, 12, 0 @ 848F350 + voice_noise_alt 1, 0, 1, 9, 0 @ 848F35C + voice_noise_alt 0, 0, 2, 6, 0 @ 848F368 + +voicegroup130:: @ 848F374 + voice_keysplit_all voicegroup001 @ 848F374 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F380 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F38C + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F398 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F3A4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F3B0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F3BC + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F3C8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F3D4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F3E0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F3EC + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F3F8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F404 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F410 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F41C + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F428 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F434 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F440 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F44C + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F458 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F464 + voice_directsound 60, 0, gDirectSoundWaveData_80, 255, 249, 25, 248 @ 848F470 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F47C + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F488 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F494 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F4A0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F4AC + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F4B8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F4C4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F4D0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F4DC + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F4E8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F4F4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F500 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F50C + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F518 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F524 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F530 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F53C + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F548 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F554 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F560 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F56C + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F578 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F584 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F590 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F59C + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F5A8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F5B4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F5C0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F5CC + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F5D8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F5E4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F5F0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F5FC + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F608 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F614 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F620 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F62C + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F638 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F644 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F650 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F65C + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F668 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F674 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F680 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F68C + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F698 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F6A4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F6B0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F6BC + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F6C8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F6D4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F6E0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F6EC + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F6F8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F704 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F710 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F71C + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F728 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F734 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F740 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F74C + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F758 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F764 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F770 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F77C + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F788 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F794 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F7A0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F7AC + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F7B8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F7C4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F7D0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F7DC + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F7E8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F7F4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F800 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F80C + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F818 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F824 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F830 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F83C + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F848 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F854 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F860 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F86C + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F878 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F884 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F890 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F89C + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F8A8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F8B4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F8C0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F8CC + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F8D8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F8E4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F8F0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F8FC + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F908 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F914 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F920 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F92C + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F938 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F944 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F950 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F95C + voice_noise_alt 0, 0, 1, 7, 1 @ 848F968 + +voicegroup131:: @ 848F974 + voice_keysplit_all voicegroup002 @ 848F974 + voice_keysplit voicegroup003, KeySplitTable1 @ 848F980 + voice_directsound 60, 0, gDirectSoundWaveData_81, 128, 204, 51, 242 @ 848F98C + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F998 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F9A4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F9B0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F9BC + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F9C8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F9D4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F9E0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F9EC + voice_square_1 0, 2, 0, 0, 15, 0 @ 848F9F8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848FA04 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848FA10 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848FA1C + voice_square_1 0, 2, 0, 0, 15, 0 @ 848FA28 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848FA34 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848FA40 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848FA4C + voice_square_1 0, 2, 0, 0, 15, 0 @ 848FA58 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848FA64 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848FA70 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848FA7C + voice_square_1 0, 2, 0, 0, 15, 0 @ 848FA88 + voice_directsound 60, 0, gDirectSoundWaveData_78, 128, 204, 103, 226 @ 848FA94 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848FAA0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848FAAC + voice_square_1 0, 2, 0, 0, 15, 0 @ 848FAB8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848FAC4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848FAD0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848FADC + voice_square_1 0, 2, 0, 0, 15, 0 @ 848FAE8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848FAF4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848FB00 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848FB0C + voice_square_1 0, 2, 0, 0, 15, 0 @ 848FB18 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848FB24 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848FB30 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848FB3C + voice_square_1 0, 2, 0, 0, 15, 0 @ 848FB48 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848FB54 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848FB60 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848FB6C + voice_square_1 0, 2, 0, 0, 15, 0 @ 848FB78 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848FB84 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848FB90 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848FB9C + voice_square_1 0, 2, 0, 0, 15, 0 @ 848FBA8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848FBB4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848FBC0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848FBCC + voice_square_1 0, 2, 0, 0, 15, 0 @ 848FBD8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848FBE4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848FBF0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848FBFC + voice_square_1 0, 2, 0, 0, 15, 0 @ 848FC08 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848FC14 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848FC20 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848FC2C + voice_square_1 0, 2, 0, 0, 15, 0 @ 848FC38 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848FC44 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848FC50 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848FC5C + voice_square_1 0, 2, 0, 0, 15, 0 @ 848FC68 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848FC74 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848FC80 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848FC8C + voice_square_1 0, 2, 0, 0, 15, 0 @ 848FC98 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848FCA4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848FCB0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848FCBC + voice_square_1 0, 2, 0, 0, 15, 0 @ 848FCC8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848FCD4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848FCE0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848FCEC + voice_square_1 0, 2, 0, 0, 15, 0 @ 848FCF8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848FD04 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848FD10 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848FD1C + voice_square_1 0, 2, 0, 0, 15, 0 @ 848FD28 + voice_square_1_alt 0, 1, 0, 2, 3, 5 @ 848FD34 + voice_square_2_alt 3, 0, 2, 6, 5 @ 848FD40 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848FD4C + voice_square_1 0, 2, 0, 0, 15, 0 @ 848FD58 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848FD64 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848FD70 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848FD7C + voice_square_1 0, 2, 0, 0, 15, 0 @ 848FD88 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848FD94 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848FDA0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848FDAC + voice_square_1 0, 2, 0, 0, 15, 0 @ 848FDB8 + voice_programmable_wave_alt gProgrammableWaveData_84A31EC, 0, 7, 9, 1 @ 848FDC4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848FDD0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848FDDC + voice_square_1 0, 2, 0, 0, 15, 0 @ 848FDE8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848FDF4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848FE00 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848FE0C + voice_square_1 0, 2, 0, 0, 15, 0 @ 848FE18 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848FE24 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848FE30 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848FE3C + voice_square_1 0, 2, 0, 0, 15, 0 @ 848FE48 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848FE54 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848FE60 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848FE6C + voice_square_1 0, 2, 0, 0, 15, 0 @ 848FE78 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848FE84 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848FE90 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848FE9C + voice_square_1 0, 2, 0, 0, 15, 0 @ 848FEA8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848FEB4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848FEC0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848FECC + voice_square_1 0, 2, 0, 0, 15, 0 @ 848FED8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848FEE4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848FEF0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848FEFC + voice_square_1 0, 2, 0, 0, 15, 0 @ 848FF08 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848FF14 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848FF20 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848FF2C + voice_square_1 0, 2, 0, 0, 15, 0 @ 848FF38 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848FF44 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848FF50 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848FF5C + voice_noise_alt 0, 0, 1, 0, 1 @ 848FF68 + +voicegroup132:: @ 848FF74 + voice_keysplit_all voicegroup002 @ 848FF74 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848FF80 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848FF8C + voice_square_1 0, 2, 0, 0, 15, 0 @ 848FF98 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848FFA4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848FFB0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848FFBC + voice_square_1 0, 2, 0, 0, 15, 0 @ 848FFC8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848FFD4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848FFE0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 848FFEC + voice_square_1 0, 2, 0, 0, 15, 0 @ 848FFF8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490004 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490010 + voice_directsound 60, 0, gDirectSoundWaveData_66, 255, 165, 97, 236 @ 849001C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490028 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490034 + voice_directsound 60, 0, gDirectSoundWaveData_1, 128, 146, 118, 137 @ 8490040 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849004C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490058 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490064 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490070 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849007C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490088 + voice_directsound 60, 0, gDirectSoundWaveData_78, 51, 204, 92, 226 @ 8490094 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84900A0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84900AC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84900B8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84900C4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84900D0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84900DC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84900E8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84900F4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490100 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849010C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490118 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490124 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490130 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849013C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490148 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490154 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490160 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849016C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490178 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490184 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490190 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849019C + voice_directsound 60, 0, gDirectSoundWaveData_5, 255, 165, 154, 235 @ 84901A8 + voice_keysplit voicegroup004, KeySplitTable2 @ 84901B4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84901C0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84901CC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84901D8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84901E4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84901F0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84901FC + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490208 + voice_keysplit voicegroup005, KeySplitTable3 @ 8490214 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490220 + voice_keysplit voicegroup006, KeySplitTable4 @ 849022C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490238 + voice_keysplit voicegroup007, KeySplitTable5 @ 8490244 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490250 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849025C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490268 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490274 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490280 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849028C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490298 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84902A4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84902B0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84902BC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84902C8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84902D4 + voice_directsound 60, 0, gDirectSoundWaveData_48, 255, 127, 231, 127 @ 84902E0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84902EC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84902F8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490304 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490310 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849031C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490328 + voice_square_1_alt 0, 2, 0, 4, 2, 2 @ 8490334 + voice_square_2_alt 3, 0, 1, 7, 5 @ 8490340 + voice_programmable_wave_alt gProgrammableWaveData_84A31EC, 0, 4, 6, 0 @ 849034C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490358 + voice_programmable_wave_alt gProgrammableWaveData_84A328C, 0, 4, 6, 0 @ 8490364 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490370 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849037C + voice_square_1_alt 0, 0, 0, 4, 2, 2 @ 8490388 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490394 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84903A0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84903AC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84903B8 + voice_programmable_wave_alt gProgrammableWaveData_84A31FC, 0, 2, 9, 1 @ 84903C4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84903D0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84903DC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84903E8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84903F4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490400 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849040C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490418 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490424 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490430 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849043C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490448 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490454 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490460 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849046C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490478 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490484 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490490 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849049C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84904A8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84904B4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84904C0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84904CC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84904D8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84904E4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84904F0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84904FC + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490508 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490514 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490520 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849052C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490538 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490544 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490550 + voice_noise_alt 0, 0, 2, 6, 0 @ 849055C + voice_noise_alt 0, 0, 1, 8, 1 @ 8490568 + +voicegroup133:: @ 8490574 + voice_keysplit_all voicegroup002 @ 8490574 + voice_keysplit voicegroup003, KeySplitTable1 @ 8490580 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849058C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490598 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84905A4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84905B0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84905BC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84905C8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84905D4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84905E0 + voice_directsound 60, 0, gDirectSoundWaveData_31, 255, 0, 255, 0 @ 84905EC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84905F8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490604 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490610 + voice_directsound 60, 0, gDirectSoundWaveData_66, 255, 165, 90, 216 @ 849061C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490628 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490634 + voice_directsound 60, 0, gDirectSoundWaveData_1, 128, 146, 108, 137 @ 8490640 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849064C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490658 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490664 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490670 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849067C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490688 + voice_directsound 60, 0, gDirectSoundWaveData_78, 128, 204, 103, 226 @ 8490694 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84906A0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84906AC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84906B8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84906C4 + voice_directsound 60, 0, gDirectSoundWaveData_82, 255, 0, 255, 127 @ 84906D0 + voice_directsound 60, 0, gDirectSoundWaveData_83, 255, 0, 255, 127 @ 84906DC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84906E8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84906F4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490700 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849070C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490718 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490724 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490730 + voice_directsound 60, 0, gDirectSoundWaveData_4, 255, 252, 0, 115 @ 849073C + voice_directsound 60, 0, gDirectSoundWaveData_52, 255, 0, 255, 127 @ 8490748 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490754 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490760 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849076C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490778 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490784 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490790 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849079C + voice_directsound 60, 0, gDirectSoundWaveData_5, 255, 0, 193, 153 @ 84907A8 + voice_keysplit voicegroup004, KeySplitTable2 @ 84907B4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84907C0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84907CC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84907D8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84907E4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84907F0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84907FC + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490808 + voice_keysplit voicegroup005, KeySplitTable3 @ 8490814 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490820 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849082C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490838 + voice_keysplit voicegroup007, KeySplitTable5 @ 8490844 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490850 + voice_directsound 60, 0, gDirectSoundWaveData_84, 255, 0, 255, 127 @ 849085C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490868 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490874 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490880 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849088C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490898 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84908A4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84908B0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84908BC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84908C8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84908D4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84908E0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84908EC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84908F8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490904 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490910 + voice_directsound 60, 0, gDirectSoundWaveData_85, 255, 0, 255, 127 @ 849091C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490928 + voice_square_1_alt 0, 1, 0, 1, 9, 0 @ 8490934 + voice_square_2_alt 3, 0, 2, 9, 1 @ 8490940 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849094C + voice_square_2_alt 2, 1, 0, 9, 1 @ 8490958 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490964 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490970 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849097C + voice_programmable_wave_alt gProgrammableWaveData_84A322C, 0, 7, 15, 0 @ 8490988 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490994 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84909A0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84909AC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84909B8 + voice_programmable_wave_alt gProgrammableWaveData_84A31EC, 0, 0, 15, 0 @ 84909C4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84909D0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84909DC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84909E8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84909F4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490A00 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490A0C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490A18 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490A24 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490A30 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490A3C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490A48 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490A54 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490A60 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490A6C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490A78 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490A84 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490A90 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490A9C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490AA8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490AB4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490AC0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490ACC + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490AD8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490AE4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490AF0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490AFC + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490B08 + voice_directsound 60, 0, gDirectSoundWaveData_79, 255, 0, 255, 165 @ 8490B14 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490B20 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490B2C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490B38 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490B44 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490B50 + voice_noise_alt 0, 0, 2, 6, 0 @ 8490B5C + voice_noise_alt 0, 0, 1, 8, 1 @ 8490B68 + +voicegroup134:: @ 8490B74 + voice_keysplit_all voicegroup001 @ 8490B74 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490B80 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490B8C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490B98 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490BA4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490BB0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490BBC + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490BC8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490BD4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490BE0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490BEC + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490BF8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490C04 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490C10 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490C1C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490C28 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490C34 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490C40 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490C4C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490C58 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490C64 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490C70 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490C7C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490C88 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490C94 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490CA0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490CAC + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490CB8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490CC4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490CD0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490CDC + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490CE8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490CF4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490D00 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490D0C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490D18 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490D24 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490D30 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490D3C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490D48 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490D54 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490D60 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490D6C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490D78 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490D84 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490D90 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490D9C + voice_directsound 60, 0, gDirectSoundWaveData_5, 255, 246, 0, 226 @ 8490DA8 + voice_keysplit voicegroup004, KeySplitTable2 @ 8490DB4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490DC0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490DCC + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490DD8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490DE4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490DF0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490DFC + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490E08 + voice_keysplit voicegroup005, KeySplitTable3 @ 8490E14 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490E20 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490E2C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490E38 + voice_keysplit voicegroup007, KeySplitTable5 @ 8490E44 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490E50 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490E5C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490E68 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490E74 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490E80 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490E8C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490E98 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490EA4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490EB0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490EBC + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490EC8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490ED4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490EE0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490EEC + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490EF8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490F04 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490F10 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490F1C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490F28 + voice_square_2_alt 2, 0, 1, 7, 1 @ 8490F34 + voice_square_1_alt 0, 2, 0, 1, 7, 1 @ 8490F40 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490F4C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490F58 + voice_square_2_alt 3, 0, 1, 7, 1 @ 8490F64 + voice_square_1_alt 0, 3, 0, 1, 7, 1 @ 8490F70 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490F7C + voice_programmable_wave_alt gProgrammableWaveData_84A324C, 0, 7, 15, 1 @ 8490F88 + voice_square_1_alt 0, 2, 0, 0, 7, 1 @ 8490F94 + voice_square_1_alt 0, 3, 0, 0, 7, 1 @ 8490FA0 + +voicegroup135:: @ 8490FAC + voice_keysplit_all voicegroup002 @ 8490FAC + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490FB8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490FC4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490FD0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490FDC + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490FE8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8490FF4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491000 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849100C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491018 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491024 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491030 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849103C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491048 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491054 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491060 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849106C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491078 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491084 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491090 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849109C + voice_directsound 60, 0, gDirectSoundWaveData_74, 85, 137, 180, 204 @ 84910A8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84910B4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84910C0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84910CC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84910D8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84910E4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84910F0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84910FC + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491108 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491114 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491120 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849112C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491138 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491144 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491150 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849115C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491168 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491174 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491180 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849118C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491198 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84911A4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84911B0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84911BC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84911C8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84911D4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84911E0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84911EC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84911F8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491204 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491210 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849121C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491228 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491234 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491240 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849124C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491258 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491264 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491270 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849127C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491288 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491294 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84912A0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84912AC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84912B8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84912C4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84912D0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84912DC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84912E8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84912F4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491300 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849130C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491318 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491324 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491330 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849133C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491348 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491354 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491360 + voice_square_1_alt 0, 2, 0, 0, 9, 0 @ 849136C + voice_square_2_alt 2, 0, 0, 9, 0 @ 8491378 + voice_square_1_alt 0, 0, 1, 2, 6, 0 @ 8491384 + +voicegroup136:: @ 8491390 + voice_keysplit_all voicegroup002 @ 8491390 + voice_keysplit voicegroup003, KeySplitTable1 @ 849139C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84913A8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84913B4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84913C0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84913CC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84913D8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84913E4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84913F0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84913FC + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491408 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491414 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491420 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849142C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491438 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491444 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491450 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849145C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491468 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491474 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491480 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849148C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491498 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84914A4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84914B0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84914BC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84914C8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84914D4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84914E0 + voice_directsound 60, 0, gDirectSoundWaveData_82, 255, 0, 255, 127 @ 84914EC + voice_directsound 60, 0, gDirectSoundWaveData_83, 255, 0, 255, 127 @ 84914F8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491504 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491510 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849151C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491528 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491534 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491540 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849154C + voice_directsound 60, 0, gDirectSoundWaveData_4, 255, 252, 0, 115 @ 8491558 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491564 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491570 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849157C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491588 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491594 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84915A0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84915AC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84915B8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84915C4 + voice_keysplit voicegroup004, KeySplitTable2 @ 84915D0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84915DC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84915E8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84915F4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491600 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849160C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491618 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491624 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491630 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849163C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491648 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491654 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491660 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849166C + voice_directsound 60, 0, gDirectSoundWaveData_84, 255, 0, 255, 127 @ 8491678 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491684 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491690 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849169C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84916A8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84916B4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84916C0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84916CC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84916D8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84916E4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84916F0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84916FC + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491708 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491714 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491720 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849172C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491738 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491744 + voice_square_2_alt 0, 0, 5, 0, 0 @ 8491750 + voice_square_1_alt 0, 0, 0, 5, 0, 0 @ 849175C + voice_square_1_alt 0, 2, 2, 4, 10, 0 @ 8491768 + voice_square_2_alt 0, 0, 5, 0, 0 @ 8491774 + voice_square_1_alt 0, 1, 0, 5, 0, 0 @ 8491780 + voice_square_2_alt 3, 2, 4, 10, 0 @ 849178C + voice_programmable_wave_alt gProgrammableWaveData_84A322C, 1, 5, 0, 3 @ 8491798 + voice_programmable_wave_alt gProgrammableWaveData_84A323C, 1, 5, 0, 3 @ 84917A4 + voice_square_2_alt 1, 0, 1, 10, 2 @ 84917B0 + voice_square_1_alt 0, 1, 0, 1, 10, 0 @ 84917BC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84917C8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84917D4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84917E0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84917EC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84917F8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491804 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491810 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849181C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491828 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491834 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491840 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849184C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491858 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491864 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491870 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849187C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491888 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491894 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84918A0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84918AC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84918B8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84918C4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84918D0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84918DC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84918E8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84918F4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491900 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849190C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491918 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491924 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491930 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849193C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491948 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491954 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491960 + voice_noise_alt 0, 0, 0, 15, 0 @ 849196C + voice_noise_alt 0, 0, 2, 4, 0 @ 8491978 + voice_noise_alt 0, 0, 1, 0, 0 @ 8491984 + +voicegroup137:: @ 8491990 + voice_keysplit_all voicegroup002 @ 8491990 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849199C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84919A8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84919B4 + voice_directsound 60, 0, gDirectSoundWaveData_86, 255, 165, 180, 165 @ 84919C0 + voice_directsound 60, 0, gDirectSoundWaveData_87, 255, 137, 154, 165 @ 84919CC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84919D8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84919E4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84919F0 + voice_directsound 60, 0, gDirectSoundWaveData_0, 255, 204, 51, 242 @ 84919FC + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491A08 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491A14 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491A20 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491A2C + voice_directsound 60, 0, gDirectSoundWaveData_66, 255, 165, 90, 216 @ 8491A38 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491A44 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491A50 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491A5C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491A68 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491A74 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491A80 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491A8C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491A98 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491AA4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491AB0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491ABC + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491AC8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491AD4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491AE0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491AEC + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491AF8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491B04 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491B10 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491B1C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491B28 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491B34 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491B40 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491B4C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491B58 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491B64 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491B70 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491B7C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491B88 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491B94 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491BA0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491BAC + voice_directsound 60, 0, gDirectSoundWaveData_70, 255, 242, 0, 242 @ 8491BB8 + voice_directsound 60, 0, gDirectSoundWaveData_5, 255, 0, 193, 153 @ 8491BC4 + voice_keysplit voicegroup004, KeySplitTable2 @ 8491BD0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491BDC + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491BE8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491BF4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491C00 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491C0C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491C18 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491C24 + voice_keysplit voicegroup005, KeySplitTable3 @ 8491C30 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491C3C + voice_keysplit voicegroup006, KeySplitTable4 @ 8491C48 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491C54 + voice_keysplit voicegroup007, KeySplitTable5 @ 8491C60 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491C6C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491C78 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491C84 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491C90 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491C9C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491CA8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491CB4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491CC0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491CCC + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491CD8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491CE4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491CF0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491CFC + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491D08 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491D14 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491D20 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491D2C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491D38 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491D44 + voice_square_1_alt 0, 1, 1, 2, 3, 1 @ 8491D50 + voice_square_2_alt 1, 1, 2, 3, 1 @ 8491D5C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491D68 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491D74 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491D80 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491D8C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491D98 + voice_programmable_wave_alt gProgrammableWaveData_84A322C, 0, 2, 4, 1 @ 8491DA4 + voice_programmable_wave_alt gProgrammableWaveData_84A323C, 0, 2, 4, 1 @ 8491DB0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491DBC + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491DC8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491DD4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491DE0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491DEC + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491DF8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491E04 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491E10 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491E1C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491E28 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491E34 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491E40 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491E4C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491E58 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491E64 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491E70 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491E7C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491E88 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491E94 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491EA0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491EAC + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491EB8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491EC4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491ED0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491EDC + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491EE8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491EF4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491F00 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491F0C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491F18 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491F24 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491F30 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491F3C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491F48 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491F54 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491F60 + voice_noise_alt 0, 0, 0, 15, 0 @ 8491F6C + voice_noise_alt 0, 0, 2, 4, 0 @ 8491F78 + voice_noise_alt 0, 0, 1, 0, 1 @ 8491F84 + +voicegroup138:: @ 8491F90 + voice_keysplit_all voicegroup002 @ 8491F90 + voice_keysplit voicegroup003, KeySplitTable1 @ 8491F9C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491FA8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491FB4 + voice_directsound 60, 0, gDirectSoundWaveData_86, 255, 188, 128, 226 @ 8491FC0 + voice_directsound 60, 65, gDirectSoundWaveData_87, 255, 204, 77, 246 @ 8491FCC + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491FD8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491FE4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491FF0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8491FFC + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492008 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492014 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492020 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849202C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492038 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492044 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492050 + voice_directsound 60, 0, gDirectSoundWaveData_1, 255, 76, 133, 137 @ 849205C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492068 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492074 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492080 + voice_directsound 60, 0, gDirectSoundWaveData_74, 64, 188, 108, 165 @ 849208C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492098 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84920A4 + voice_directsound 60, 0, gDirectSoundWaveData_78, 255, 249, 25, 127 @ 84920B0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84920BC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84920C8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84920D4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84920E0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84920EC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84920F8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492104 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492110 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849211C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492128 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492134 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492140 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849214C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492158 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492164 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492170 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849217C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492188 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492194 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84921A0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84921AC + voice_directsound 60, 0, gDirectSoundWaveData_70, 255, 246, 0, 235 @ 84921B8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84921C4 + voice_keysplit voicegroup004, KeySplitTable2 @ 84921D0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84921DC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84921E8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84921F4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492200 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849220C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492218 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492224 + voice_keysplit voicegroup005, KeySplitTable3 @ 8492230 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849223C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492248 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492254 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492260 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849226C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492278 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492284 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492290 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849229C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84922A8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84922B4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84922C0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84922CC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84922D8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84922E4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84922F0 + voice_directsound 60, 0, gDirectSoundWaveData_48, 255, 127, 231, 127 @ 84922FC + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492308 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492314 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492320 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849232C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492338 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492344 + voice_square_1_alt 0, 0, 0, 2, 5, 2 @ 8492350 + voice_square_2_alt 3, 0, 1, 6, 3 @ 849235C + voice_square_2_alt 0, 0, 2, 6, 5 @ 8492368 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492374 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492380 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849238C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492398 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84923A4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84923B0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84923BC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84923C8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84923D4 + voice_programmable_wave_alt gProgrammableWaveData_84A31EC, 0, 0, 12, 0 @ 84923E0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84923EC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84923F8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492404 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492410 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849241C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492428 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492434 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492440 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849244C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492458 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492464 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492470 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849247C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492488 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492494 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84924A0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84924AC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84924B8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84924C4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84924D0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84924DC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84924E8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84924F4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492500 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849250C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492518 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492524 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492530 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849253C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492548 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492554 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492560 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849256C + voice_noise_alt 0, 0, 2, 6, 0 @ 8492578 + voice_noise_alt 0, 0, 1, 6, 0 @ 8492584 + +voicegroup139:: @ 8492590 + voice_keysplit_all voicegroup002 @ 8492590 + voice_keysplit voicegroup003, KeySplitTable1 @ 849259C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84925A8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84925B4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84925C0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84925CC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84925D8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84925E4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84925F0 + voice_directsound 60, 0, gDirectSoundWaveData_0, 255, 165, 51, 242 @ 84925FC + voice_directsound 60, 0, gDirectSoundWaveData_31, 255, 0, 255, 0 @ 8492608 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492614 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492620 + voice_directsound 60, 0, gDirectSoundWaveData_71, 255, 235, 0, 204 @ 849262C + voice_directsound 60, 0, gDirectSoundWaveData_66, 255, 165, 90, 216 @ 8492638 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492644 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492650 + voice_directsound 60, 0, gDirectSoundWaveData_1, 128, 127, 103, 201 @ 849265C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492668 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492674 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492680 + voice_directsound 60, 0, gDirectSoundWaveData_74, 37, 127, 77, 165 @ 849268C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492698 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84926A4 + voice_directsound 60, 0, gDirectSoundWaveData_78, 51, 204, 92, 226 @ 84926B0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84926BC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84926C8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84926D4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84926E0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84926EC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84926F8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492704 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492710 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849271C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492728 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492734 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492740 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849274C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492758 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492764 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492770 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849277C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492788 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492794 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84927A0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84927AC + voice_directsound 60, 0, gDirectSoundWaveData_70, 255, 242, 51, 226 @ 84927B8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84927C4 + voice_keysplit voicegroup004, KeySplitTable2 @ 84927D0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84927DC + voice_square_1_alt 0, 2, 0, 2, 3, 1 @ 84927E8 + voice_square_2_alt 3, 0, 2, 7, 2 @ 84927F4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492800 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849280C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492818 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492824 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492830 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849283C + voice_keysplit voicegroup006, KeySplitTable4 @ 8492848 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492854 + voice_keysplit voicegroup007, KeySplitTable5 @ 8492860 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849286C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492878 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492884 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492890 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849289C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84928A8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84928B4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84928C0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84928CC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84928D8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84928E4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84928F0 + voice_directsound 60, 0, gDirectSoundWaveData_48, 255, 0, 255, 165 @ 84928FC + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492908 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492914 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492920 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849292C + voice_directsound 60, 0, gDirectSoundWaveData_85, 255, 0, 255, 127 @ 8492938 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492944 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492950 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849295C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492968 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492974 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492980 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849298C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492998 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84929A4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84929B0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84929BC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84929C8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84929D4 + voice_programmable_wave_alt gProgrammableWaveData_84A322C, 0, 7, 15, 0 @ 84929E0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84929EC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84929F8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492A04 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492A10 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492A1C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492A28 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492A34 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492A40 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492A4C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492A58 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492A64 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492A70 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492A7C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492A88 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492A94 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492AA0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492AAC + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492AB8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492AC4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492AD0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492ADC + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492AE8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492AF4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492B00 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492B0C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492B18 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492B24 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492B30 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492B3C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492B48 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492B54 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492B60 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492B6C + voice_noise_alt 0, 0, 1, 6, 1 @ 8492B78 + voice_noise_alt 0, 0, 1, 6, 1 @ 8492B84 + +voicegroup140:: @ 8492B90 + voice_keysplit_all voicegroup001 @ 8492B90 + voice_square_1 0, 2, 0, 2, 3, 1 @ 8492B9C + voice_square_2_alt 2, 0, 2, 3, 1 @ 8492BA8 + voice_programmable_wave_alt gProgrammableWaveData_84A322C, 0, 7, 15, 0 @ 8492BB4 + +voicegroup141:: @ 8492BC0 + voice_keysplit_all voicegroup002 @ 8492BC0 + voice_keysplit voicegroup003, KeySplitTable1 @ 8492BCC + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492BD8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492BE4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492BF0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492BFC + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492C08 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492C14 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492C20 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492C2C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492C38 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492C44 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492C50 + voice_directsound 60, 0, gDirectSoundWaveData_71, 255, 235, 0, 204 @ 8492C5C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492C68 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492C74 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492C80 + voice_directsound 60, 0, gDirectSoundWaveData_1, 255, 76, 133, 137 @ 8492C8C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492C98 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492CA4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492CB0 + voice_directsound 60, 0, gDirectSoundWaveData_74, 64, 188, 108, 165 @ 8492CBC + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492CC8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492CD4 + voice_directsound 60, 0, gDirectSoundWaveData_78, 85, 249, 25, 127 @ 8492CE0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492CEC + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492CF8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492D04 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492D10 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492D1C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492D28 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492D34 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492D40 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492D4C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492D58 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492D64 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492D70 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492D7C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492D88 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492D94 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492DA0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492DAC + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492DB8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492DC4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492DD0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492DDC + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492DE8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492DF4 + voice_keysplit voicegroup004, KeySplitTable2 @ 8492E00 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492E0C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492E18 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492E24 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492E30 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492E3C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492E48 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492E54 + voice_keysplit voicegroup005, KeySplitTable3 @ 8492E60 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492E6C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492E78 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492E84 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492E90 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492E9C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492EA8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492EB4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492EC0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492ECC + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492ED8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492EE4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492EF0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492EFC + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492F08 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492F14 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492F20 + voice_directsound 60, 0, gDirectSoundWaveData_48, 255, 0, 255, 165 @ 8492F2C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492F38 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492F44 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492F50 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492F5C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492F68 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492F74 + voice_square_1_alt 0, 0, 0, 2, 5, 2 @ 8492F80 + voice_square_2_alt 3, 0, 2, 7, 3 @ 8492F8C + voice_square_2_alt 2, 0, 2, 6, 5 @ 8492F98 + voice_programmable_wave_alt gProgrammableWaveData_84A31FC, 1, 7, 0, 6 @ 8492FA4 + voice_square_1_alt 0, 1, 0, 2, 4, 2 @ 8492FB0 + voice_programmable_wave_alt gProgrammableWaveData_84A320C, 0, 2, 9, 0 @ 8492FBC + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492FC8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492FD4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492FE0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492FEC + voice_square_1 0, 2, 0, 0, 15, 0 @ 8492FF8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493004 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493010 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849301C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493028 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493034 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493040 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849304C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493058 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493064 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493070 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849307C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493088 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493094 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84930A0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84930AC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84930B8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84930C4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84930D0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84930DC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84930E8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84930F4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493100 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849310C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493118 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493124 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493130 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849313C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493148 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493154 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493160 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849316C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493178 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493184 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493190 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849319C + voice_noise_alt 0, 0, 2, 6, 0 @ 84931A8 + voice_noise_alt 0, 0, 1, 6, 0 @ 84931B4 + +voicegroup142:: @ 84931C0 + voice_keysplit_all voicegroup002 @ 84931C0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84931CC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84931D8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84931E4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84931F0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84931FC + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493208 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493214 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493220 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849322C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493238 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493244 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493250 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849325C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493268 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493274 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493280 + voice_directsound 60, 0, gDirectSoundWaveData_1, 64, 188, 128, 201 @ 849328C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493298 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84932A4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84932B0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84932BC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84932C8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84932D4 + voice_directsound 60, 0, gDirectSoundWaveData_78, 64, 195, 103, 220 @ 84932E0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84932EC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84932F8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493304 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493310 + voice_directsound 60, 0, gDirectSoundWaveData_82, 128, 195, 72, 127 @ 849331C + voice_directsound 60, 0, gDirectSoundWaveData_83, 85, 188, 103, 160 @ 8493328 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493334 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493340 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849334C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493358 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493364 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493370 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849337C + voice_directsound 60, 0, gDirectSoundWaveData_4, 128, 188, 77, 115 @ 8493388 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493394 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84933A0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84933AC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84933B8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84933C4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84933D0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84933DC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84933E8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84933F4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493400 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849340C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493418 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493424 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493430 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849343C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493448 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493454 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493460 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849346C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493478 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493484 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493490 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849349C + voice_directsound 60, 0, gDirectSoundWaveData_84, 255, 175, 154, 127 @ 84934A8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84934B4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84934C0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84934CC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84934D8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84934E4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84934F0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84934FC + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493508 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493514 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493520 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849352C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493538 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493544 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493550 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849355C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493568 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493574 + voice_square_1_alt 0, 2, 0, 2, 6, 4 @ 8493580 + voice_square_2_alt 2, 0, 2, 5, 5 @ 849358C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493598 + voice_programmable_wave_alt gProgrammableWaveData_84A326C, 0, 7, 15, 0 @ 84935A4 + +voicegroup143:: @ 84935B0 + voice_keysplit_all voicegroup002 @ 84935B0 + voice_keysplit voicegroup003, KeySplitTable1 @ 84935BC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84935C8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84935D4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84935E0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84935EC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84935F8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493604 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493610 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849361C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493628 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493634 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493640 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849364C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493658 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493664 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493670 + voice_directsound 60, 0, gDirectSoundWaveData_1, 128, 160, 123, 165 @ 849367C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493688 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493694 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84936A0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84936AC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84936B8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84936C4 + voice_directsound 60, 0, gDirectSoundWaveData_78, 255, 249, 25, 0 @ 84936D0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84936DC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84936E8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84936F4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493700 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849370C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493718 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493724 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493730 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849373C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493748 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493754 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493760 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849376C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493778 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493784 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493790 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849379C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84937A8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84937B4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84937C0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84937CC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84937D8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84937E4 + voice_keysplit voicegroup004, KeySplitTable2 @ 84937F0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84937FC + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493808 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493814 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493820 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849382C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493838 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493844 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493850 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849385C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493868 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493874 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493880 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849388C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493898 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84938A4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84938B0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84938BC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84938C8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84938D4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84938E0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84938EC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84938F8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493904 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493910 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849391C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493928 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493934 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493940 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849394C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493958 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493964 + voice_square_2_alt 3, 0, 2, 3, 2 @ 8493970 + voice_square_1_alt 0, 2, 0, 2, 3, 1 @ 849397C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493988 + voice_programmable_wave_alt gProgrammableWaveData_84A322C, 0, 7, 15, 0 @ 8493994 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84939A0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84939AC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84939B8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84939C4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84939D0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84939DC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84939E8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84939F4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493A00 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493A0C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493A18 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493A24 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493A30 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493A3C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493A48 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493A54 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493A60 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493A6C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493A78 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493A84 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493A90 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493A9C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493AA8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493AB4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493AC0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493ACC + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493AD8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493AE4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493AF0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493AFC + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493B08 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493B14 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493B20 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493B2C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493B38 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493B44 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493B50 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493B5C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493B68 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493B74 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493B80 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493B8C + voice_noise_alt 0, 0, 1, 9, 0 @ 8493B98 + voice_noise_alt 0, 0, 1, 6, 1 @ 8493BA4 + +voicegroup144:: @ 8493BB0 + voice_keysplit_all voicegroup002 @ 8493BB0 + voice_keysplit voicegroup003, KeySplitTable1 @ 8493BBC + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493BC8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493BD4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493BE0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493BEC + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493BF8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493C04 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493C10 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493C1C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493C28 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493C34 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493C40 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493C4C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493C58 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493C64 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493C70 + voice_directsound 60, 0, gDirectSoundWaveData_1, 85, 188, 92, 165 @ 8493C7C + voice_directsound 60, 0, gDirectSoundWaveData_1, 85, 127, 180, 165 @ 8493C88 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493C94 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493CA0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493CAC + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493CB8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493CC4 + voice_directsound 60, 0, gDirectSoundWaveData_78, 51, 204, 92, 226 @ 8493CD0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493CDC + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493CE8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493CF4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493D00 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493D0C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493D18 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493D24 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493D30 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493D3C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493D48 + voice_directsound 60, 0, gDirectSoundWaveData_2, 255, 253, 0, 216 @ 8493D54 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493D60 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493D6C + voice_directsound 60, 0, gDirectSoundWaveData_4, 255, 252, 0, 115 @ 8493D78 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493D84 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493D90 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493D9C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493DA8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493DB4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493DC0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493DCC + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493DD8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493DE4 + voice_keysplit voicegroup004, KeySplitTable2 @ 8493DF0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493DFC + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493E08 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493E14 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493E20 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493E2C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493E38 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493E44 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493E50 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493E5C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493E68 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493E74 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493E80 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493E8C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493E98 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493EA4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493EB0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493EBC + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493EC8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493ED4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493EE0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493EEC + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493EF8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493F04 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493F10 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493F1C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493F28 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493F34 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493F40 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493F4C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493F58 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493F64 + voice_square_2_alt 3, 0, 2, 4, 2 @ 8493F70 + voice_square_2_alt 1, 0, 2, 4, 3 @ 8493F7C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493F88 + voice_programmable_wave_alt gProgrammableWaveData_84A322C, 0, 7, 15, 0 @ 8493F94 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493FA0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493FAC + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493FB8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493FC4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493FD0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493FDC + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493FE8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8493FF4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494000 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849400C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494018 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494024 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494030 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849403C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494048 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494054 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494060 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849406C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494078 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494084 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494090 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849409C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84940A8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84940B4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84940C0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84940CC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84940D8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84940E4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84940F0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84940FC + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494108 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494114 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494120 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849412C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494138 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494144 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494150 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849415C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494168 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494174 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494180 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849418C + voice_noise_alt 0, 0, 1, 9, 0 @ 8494198 + voice_noise_alt 0, 0, 1, 6, 0 @ 84941A4 + +voicegroup145:: @ 84941B0 + voice_keysplit_all voicegroup002 @ 84941B0 + voice_keysplit voicegroup003, KeySplitTable1 @ 84941BC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84941C8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84941D4 + voice_directsound 60, 0, gDirectSoundWaveData_86, 255, 188, 128, 226 @ 84941E0 + voice_directsound 60, 65, gDirectSoundWaveData_87, 255, 204, 77, 246 @ 84941EC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84941F8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494204 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494210 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849421C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494228 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494234 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494240 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849424C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494258 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494264 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494270 + voice_directsound 60, 0, gDirectSoundWaveData_1, 255, 76, 133, 137 @ 849427C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494288 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494294 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84942A0 + voice_directsound 60, 0, gDirectSoundWaveData_74, 64, 188, 108, 165 @ 84942AC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84942B8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84942C4 + voice_directsound 60, 0, gDirectSoundWaveData_78, 255, 249, 25, 127 @ 84942D0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84942DC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84942E8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84942F4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494300 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849430C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494318 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494324 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494330 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849433C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494348 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494354 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494360 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849436C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494378 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494384 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494390 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849439C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84943A8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84943B4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84943C0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84943CC + voice_directsound 60, 0, gDirectSoundWaveData_70, 255, 246, 0, 235 @ 84943D8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84943E4 + voice_keysplit voicegroup004, KeySplitTable2 @ 84943F0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84943FC + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494408 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494414 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494420 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849442C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494438 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494444 + voice_keysplit voicegroup005, KeySplitTable3 @ 8494450 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849445C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494468 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494474 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494480 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849448C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494498 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84944A4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84944B0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84944BC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84944C8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84944D4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84944E0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84944EC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84944F8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494504 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494510 + voice_directsound 60, 0, gDirectSoundWaveData_48, 255, 127, 231, 127 @ 849451C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494528 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494534 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494540 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849454C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494558 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494564 + voice_square_1_alt 0, 0, 0, 2, 5, 2 @ 8494570 + voice_square_2_alt 3, 0, 0, 9, 0 @ 849457C + voice_square_2_alt 0, 0, 2, 6, 5 @ 8494588 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494594 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84945A0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84945AC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84945B8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84945C4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84945D0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84945DC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84945E8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84945F4 + voice_programmable_wave_alt gProgrammableWaveData_84A31EC, 0, 0, 12, 0 @ 8494600 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849460C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494618 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494624 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494630 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849463C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494648 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494654 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494660 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849466C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494678 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494684 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494690 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849469C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84946A8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84946B4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84946C0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84946CC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84946D8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84946E4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84946F0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84946FC + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494708 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494714 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494720 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849472C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494738 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494744 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494750 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849475C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494768 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494774 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494780 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849478C + voice_noise_alt 0, 0, 2, 6, 0 @ 8494798 + voice_noise_alt 0, 0, 1, 6, 0 @ 84947A4 + +voicegroup146:: @ 84947B0 + voice_keysplit_all voicegroup002 @ 84947B0 + voice_directsound 60, 0, gDirectSoundWaveData_81, 255, 165, 103, 235 @ 84947BC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84947C8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84947D4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84947E0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84947EC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84947F8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494804 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494810 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849481C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494828 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494834 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494840 + voice_directsound 60, 0, gDirectSoundWaveData_71, 255, 235, 0, 204 @ 849484C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494858 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494864 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494870 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849487C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494888 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494894 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84948A0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84948AC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84948B8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84948C4 + voice_directsound 60, 0, gDirectSoundWaveData_78, 85, 249, 25, 226 @ 84948D0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84948DC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84948E8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84948F4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494900 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849490C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494918 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494924 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494930 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849493C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494948 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494954 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494960 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849496C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494978 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494984 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494990 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849499C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84949A8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84949B4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84949C0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84949CC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84949D8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84949E4 + voice_keysplit voicegroup004, KeySplitTable2 @ 84949F0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84949FC + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494A08 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494A14 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494A20 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494A2C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494A38 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494A44 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494A50 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494A5C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494A68 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494A74 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494A80 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494A8C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494A98 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494AA4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494AB0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494ABC + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494AC8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494AD4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494AE0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494AEC + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494AF8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494B04 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494B10 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494B1C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494B28 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494B34 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494B40 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494B4C + voice_directsound 60, 0, gDirectSoundWaveData_85, 43, 76, 103, 216 @ 8494B58 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494B64 + voice_square_2_alt 2, 0, 2, 4, 4 @ 8494B70 + voice_square_1_alt 0, 2, 0, 0, 15, 0 @ 8494B7C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494B88 + voice_square_2_alt 2, 0, 0, 15, 0 @ 8494B94 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494BA0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494BAC + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494BB8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494BC4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494BD0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494BDC + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494BE8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494BF4 + voice_programmable_wave_alt gProgrammableWaveData_84A31EC, 0, 7, 15, 0 @ 8494C00 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494C0C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494C18 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494C24 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494C30 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494C3C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494C48 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494C54 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494C60 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494C6C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494C78 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494C84 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494C90 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494C9C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494CA8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494CB4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494CC0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494CCC + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494CD8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494CE4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494CF0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494CFC + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494D08 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494D14 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494D20 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494D2C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494D38 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494D44 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494D50 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494D5C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494D68 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494D74 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494D80 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494D8C + voice_noise_alt 0, 0, 1, 9, 0 @ 8494D98 + voice_noise_alt 0, 0, 1, 6, 2 @ 8494DA4 + +voicegroup147:: @ 8494DB0 + voice_keysplit_all voicegroup001 @ 8494DB0 + voice_keysplit voicegroup003, KeySplitTable1 @ 8494DBC + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494DC8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494DD4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494DE0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494DEC + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494DF8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494E04 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494E10 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494E1C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494E28 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494E34 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494E40 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494E4C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494E58 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494E64 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494E70 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494E7C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494E88 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494E94 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494EA0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494EAC + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494EB8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494EC4 + voice_directsound 60, 0, gDirectSoundWaveData_78, 64, 249, 25, 226 @ 8494ED0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494EDC + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494EE8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494EF4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494F00 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494F0C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494F18 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494F24 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494F30 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494F3C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494F48 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494F54 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494F60 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494F6C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494F78 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494F84 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494F90 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494F9C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494FA8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494FB4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494FC0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494FCC + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494FD8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494FE4 + voice_keysplit voicegroup004, KeySplitTable2 @ 8494FF0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8494FFC + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495008 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495014 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495020 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849502C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495038 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495044 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495050 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849505C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495068 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495074 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495080 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849508C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495098 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84950A4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84950B0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84950BC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84950C8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84950D4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84950E0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84950EC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84950F8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495104 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495110 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849511C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495128 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495134 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495140 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849514C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495158 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495164 + voice_square_1_alt 0, 2, 0, 0, 6, 1 @ 8495170 + voice_square_2_alt 2, 0, 0, 6, 1 @ 849517C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495188 + voice_programmable_wave_alt gProgrammableWaveData_84A31EC, 0, 2, 4, 2 @ 8495194 + +voicegroup148:: @ 84951A0 + voice_keysplit_all voicegroup002 @ 84951A0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84951AC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84951B8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84951C4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84951D0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84951DC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84951E8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84951F4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495200 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849520C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495218 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495224 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495230 + voice_directsound 60, 0, gDirectSoundWaveData_52, 255, 226, 0, 127 @ 849523C + voice_directsound 60, 0, gDirectSoundWaveData_66, 255, 165, 90, 216 @ 8495248 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495254 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495260 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849526C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495278 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495284 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495290 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849529C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84952A8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84952B4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84952C0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84952CC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84952D8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84952E4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84952F0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84952FC + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495308 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495314 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495320 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849532C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495338 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495344 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495350 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849535C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495368 + voice_directsound 60, 0, gDirectSoundWaveData_52, 255, 0, 255, 127 @ 8495374 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495380 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849538C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495398 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84953A4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84953B0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84953BC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84953C8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84953D4 + voice_keysplit voicegroup004, KeySplitTable2 @ 84953E0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84953EC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84953F8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495404 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495410 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849541C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495428 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495434 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495440 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849544C + voice_keysplit voicegroup006, KeySplitTable4 @ 8495458 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495464 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495470 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849547C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495488 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495494 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84954A0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84954AC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84954B8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84954C4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84954D0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84954DC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84954E8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84954F4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495500 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849550C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495518 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495524 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495530 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849553C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495548 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495554 + voice_square_1_alt 0, 2, 0, 0, 12, 0 @ 8495560 + voice_square_2_alt 2, 0, 0, 12, 0 @ 849556C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495578 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495584 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495590 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849559C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84955A8 + voice_programmable_wave_alt gProgrammableWaveData_84A322C, 0, 7, 15, 0 @ 84955B4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84955C0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84955CC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84955D8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84955E4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84955F0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84955FC + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495608 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495614 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495620 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849562C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495638 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495644 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495650 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849565C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495668 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495674 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495680 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849568C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495698 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84956A4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84956B0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84956BC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84956C8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84956D4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84956E0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84956EC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84956F8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495704 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495710 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849571C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495728 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495734 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495740 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849574C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495758 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495764 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495770 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849577C + voice_noise_alt 0, 0, 3, 5, 2 @ 8495788 + voice_noise_alt 0, 0, 1, 6, 5 @ 8495794 + +voicegroup149:: @ 84957A0 + voice_keysplit_all voicegroup190 @ 84957A0 + voice_keysplit voicegroup003, KeySplitTable1 @ 84957AC + voice_square_1_alt 0, 2, 0, 0, 12, 0 @ 84957B8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84957C4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84957D0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84957DC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84957E8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84957F4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495800 + voice_directsound 60, 0, gDirectSoundWaveData_0, 255, 165, 51, 242 @ 849580C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495818 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495824 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495830 + voice_directsound 60, 0, gDirectSoundWaveData_71, 255, 235, 0, 204 @ 849583C + voice_directsound 60, 0, gDirectSoundWaveData_66, 255, 165, 90, 216 @ 8495848 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495854 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495860 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849586C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495878 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495884 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495890 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849589C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84958A8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84958B4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84958C0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84958CC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84958D8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84958E4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84958F0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84958FC + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495908 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495914 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495920 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849592C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495938 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495944 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495950 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849595C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495968 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495974 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495980 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849598C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495998 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84959A4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84959B0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84959BC + voice_directsound 60, 0, gDirectSoundWaveData_70, 255, 246, 0, 235 @ 84959C8 + voice_directsound 60, 0, gDirectSoundWaveData_5, 255, 165, 154, 153 @ 84959D4 + voice_keysplit voicegroup004, KeySplitTable2 @ 84959E0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84959EC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84959F8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495A04 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495A10 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495A1C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495A28 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495A34 + voice_keysplit voicegroup005, KeySplitTable3 @ 8495A40 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495A4C + voice_keysplit voicegroup006, KeySplitTable4 @ 8495A58 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495A64 + voice_keysplit voicegroup007, KeySplitTable5 @ 8495A70 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495A7C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495A88 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495A94 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495AA0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495AAC + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495AB8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495AC4 + voice_directsound 60, 0, gDirectSoundWaveData_7, 43, 188, 103, 165 @ 8495AD0 + voice_directsound 60, 0, gDirectSoundWaveData_8, 43, 165, 103, 165 @ 8495ADC + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495AE8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495AF4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495B00 + voice_directsound 60, 0, gDirectSoundWaveData_48, 255, 127, 231, 127 @ 8495B0C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495B18 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495B24 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495B30 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495B3C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495B48 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495B54 + voice_square_1_alt 0, 1, 1, 2, 3, 1 @ 8495B60 + voice_square_2_alt 1, 0, 2, 4, 2 @ 8495B6C + voice_square_1_alt 0, 1, 0, 2, 6, 1 @ 8495B78 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495B84 + voice_square_1_alt 0, 0, 0, 2, 3, 1 @ 8495B90 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495B9C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495BA8 + voice_programmable_wave_alt gProgrammableWaveData_84A322C, 0, 7, 15, 0 @ 8495BB4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495BC0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495BCC + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495BD8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495BE4 + voice_programmable_wave_alt gProgrammableWaveData_84A31EC, 0, 7, 15, 0 @ 8495BF0 + +voicegroup150:: @ 8495BFC + voice_keysplit_all voicegroup002 @ 8495BFC + voice_directsound 60, 0, gDirectSoundWaveData_81, 255, 165, 103, 235 @ 8495C08 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495C14 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495C20 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495C2C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495C38 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495C44 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495C50 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495C5C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495C68 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495C74 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495C80 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495C8C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495C98 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495CA4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495CB0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495CBC + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495CC8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495CD4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495CE0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495CEC + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495CF8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495D04 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495D10 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495D1C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495D28 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495D34 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495D40 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495D4C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495D58 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495D64 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495D70 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495D7C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495D88 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495D94 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495DA0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495DAC + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495DB8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495DC4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495DD0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495DDC + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495DE8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495DF4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495E00 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495E0C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495E18 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495E24 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495E30 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495E3C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495E48 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495E54 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495E60 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495E6C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495E78 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495E84 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495E90 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495E9C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495EA8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495EB4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495EC0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495ECC + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495ED8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495EE4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495EF0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495EFC + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495F08 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495F14 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495F20 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495F2C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495F38 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495F44 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495F50 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495F5C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495F68 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495F74 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495F80 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495F8C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495F98 + voice_directsound 60, 0, gDirectSoundWaveData_85, 85, 204, 77, 127 @ 8495FA4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495FB0 + voice_square_2_alt 1, 0, 1, 4, 6 @ 8495FBC + voice_square_1_alt 0, 1, 0, 2, 4, 5 @ 8495FC8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495FD4 + voice_programmable_wave_alt gProgrammableWaveData_84A31FC, 0, 7, 15, 0 @ 8495FE0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495FEC + voice_square_1 0, 2, 0, 0, 15, 0 @ 8495FF8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496004 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496010 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849601C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496028 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496034 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496040 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849604C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496058 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496064 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496070 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849607C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496088 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496094 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84960A0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84960AC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84960B8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84960C4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84960D0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84960DC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84960E8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84960F4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496100 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849610C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496118 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496124 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496130 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849613C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496148 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496154 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496160 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849616C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496178 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496184 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496190 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849619C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84961A8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84961B4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84961C0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84961CC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84961D8 + voice_noise_alt 0, 0, 2, 4, 0 @ 84961E4 + voice_noise_alt 0, 0, 1, 0, 0 @ 84961F0 + +voicegroup151:: @ 84961FC + voice_keysplit_all voicegroup002 @ 84961FC + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496208 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496214 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496220 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849622C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496238 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496244 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496250 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849625C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496268 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496274 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496280 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849628C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496298 + voice_directsound 60, 0, gDirectSoundWaveData_66, 255, 165, 90, 216 @ 84962A4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84962B0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84962BC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84962C8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84962D4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84962E0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84962EC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84962F8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496304 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496310 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849631C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496328 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496334 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496340 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849634C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496358 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496364 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496370 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849637C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496388 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496394 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84963A0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84963AC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84963B8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84963C4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84963D0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84963DC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84963E8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84963F4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496400 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849640C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496418 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496424 + voice_directsound 60, 0, gDirectSoundWaveData_5, 255, 0, 193, 127 @ 8496430 + voice_keysplit voicegroup004, KeySplitTable2 @ 849643C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496448 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496454 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496460 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849646C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496478 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496484 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496490 + voice_keysplit voicegroup005, KeySplitTable3 @ 849649C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84964A8 + voice_keysplit voicegroup006, KeySplitTable4 @ 84964B4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84964C0 + voice_keysplit voicegroup007, KeySplitTable5 @ 84964CC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84964D8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84964E4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84964F0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84964FC + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496508 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496514 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496520 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849652C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496538 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496544 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496550 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849655C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496568 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496574 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496580 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849658C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496598 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84965A4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84965B0 + voice_square_1_alt 0, 1, 1, 2, 3, 1 @ 84965BC + voice_square_2_alt 1, 0, 2, 4, 2 @ 84965C8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84965D4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84965E0 + voice_square_1_alt 0, 0, 0, 2, 3, 1 @ 84965EC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84965F8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496604 + voice_programmable_wave_alt gProgrammableWaveData_84A322C, 0, 7, 15, 0 @ 8496610 + +voicegroup152:: @ 849661C + voice_keysplit_all voicegroup002 @ 849661C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496628 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496634 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496640 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849664C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496658 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496664 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496670 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849667C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496688 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496694 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84966A0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84966AC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84966B8 + voice_directsound 60, 0, gDirectSoundWaveData_66, 255, 165, 97, 236 @ 84966C4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84966D0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84966DC + voice_directsound 60, 0, gDirectSoundWaveData_1, 128, 160, 175, 165 @ 84966E8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84966F4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496700 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849670C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496718 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496724 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496730 + voice_directsound 60, 0, gDirectSoundWaveData_78, 255, 165, 128, 204 @ 849673C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496748 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496754 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496760 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849676C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496778 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496784 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496790 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849679C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84967A8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84967B4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84967C0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84967CC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84967D8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84967E4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84967F0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84967FC + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496808 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496814 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496820 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849682C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496838 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496844 + voice_directsound 60, 0, gDirectSoundWaveData_5, 255, 127, 154, 235 @ 8496850 + voice_keysplit voicegroup004, KeySplitTable2 @ 849685C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496868 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496874 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496880 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849688C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496898 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84968A4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84968B0 + voice_keysplit voicegroup005, KeySplitTable3 @ 84968BC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84968C8 + voice_keysplit voicegroup006, KeySplitTable4 @ 84968D4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84968E0 + voice_keysplit voicegroup007, KeySplitTable5 @ 84968EC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84968F8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496904 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496910 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849691C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496928 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496934 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496940 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849694C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496958 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496964 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496970 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849697C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496988 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496994 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84969A0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84969AC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84969B8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84969C4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84969D0 + voice_square_1_alt 0, 2, 0, 4, 2, 1 @ 84969DC + voice_square_2_alt 3, 0, 1, 5, 2 @ 84969E8 + voice_programmable_wave_alt gProgrammableWaveData_84A31EC, 0, 4, 6, 0 @ 84969F4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496A00 + voice_programmable_wave_alt gProgrammableWaveData_84A328C, 0, 4, 6, 0 @ 8496A0C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496A18 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496A24 + voice_square_1_alt 0, 1, 0, 2, 4, 1 @ 8496A30 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496A3C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496A48 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496A54 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496A60 + voice_programmable_wave_alt gProgrammableWaveData_84A31FC, 0, 2, 9, 1 @ 8496A6C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496A78 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496A84 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496A90 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496A9C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496AA8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496AB4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496AC0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496ACC + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496AD8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496AE4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496AF0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496AFC + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496B08 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496B14 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496B20 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496B2C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496B38 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496B44 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496B50 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496B5C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496B68 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496B74 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496B80 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496B8C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496B98 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496BA4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496BB0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496BBC + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496BC8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496BD4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496BE0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496BEC + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496BF8 + voice_noise_alt 0, 0, 2, 6, 0 @ 8496C04 + voice_noise_alt 0, 0, 1, 6, 1 @ 8496C10 + +voicegroup153:: @ 8496C1C + voice_keysplit_all voicegroup002 @ 8496C1C + voice_keysplit voicegroup003, KeySplitTable1 @ 8496C28 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496C34 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496C40 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496C4C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496C58 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496C64 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496C70 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496C7C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496C88 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496C94 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496CA0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496CAC + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496CB8 + voice_directsound 60, 0, gDirectSoundWaveData_66, 255, 165, 97, 236 @ 8496CC4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496CD0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496CDC + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496CE8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496CF4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496D00 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496D0C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496D18 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496D24 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496D30 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496D3C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496D48 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496D54 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496D60 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496D6C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496D78 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496D84 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496D90 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496D9C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496DA8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496DB4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496DC0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496DCC + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496DD8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496DE4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496DF0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496DFC + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496E08 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496E14 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496E20 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496E2C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496E38 + voice_directsound 60, 0, gDirectSoundWaveData_70, 255, 246, 0, 235 @ 8496E44 + voice_directsound 60, 0, gDirectSoundWaveData_5, 255, 127, 154, 235 @ 8496E50 + voice_keysplit voicegroup004, KeySplitTable2 @ 8496E5C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496E68 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496E74 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496E80 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496E8C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496E98 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496EA4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496EB0 + voice_keysplit voicegroup005, KeySplitTable3 @ 8496EBC + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496EC8 + voice_keysplit voicegroup006, KeySplitTable4 @ 8496ED4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496EE0 + voice_keysplit voicegroup007, KeySplitTable5 @ 8496EEC + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496EF8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496F04 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496F10 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496F1C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496F28 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496F34 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496F40 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496F4C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496F58 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496F64 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496F70 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496F7C + voice_directsound 60, 0, gDirectSoundWaveData_48, 255, 127, 231, 127 @ 8496F88 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496F94 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496FA0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496FAC + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496FB8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496FC4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8496FD0 + voice_square_1_alt 0, 1, 0, 3, 5, 2 @ 8496FDC + voice_square_2_alt 3, 0, 3, 4, 2 @ 8496FE8 + voice_square_2_alt 0, 0, 2, 6, 5 @ 8496FF4 + voice_square_1_alt 0, 0, 0, 1, 6, 2 @ 8497000 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849700C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497018 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497024 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497030 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849703C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497048 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497054 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497060 + voice_programmable_wave_alt gProgrammableWaveData_84A325C, 0, 1, 12, 0 @ 849706C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497078 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497084 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497090 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849709C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84970A8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84970B4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84970C0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84970CC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84970D8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84970E4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84970F0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84970FC + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497108 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497114 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497120 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849712C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497138 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497144 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497150 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849715C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497168 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497174 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497180 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849718C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497198 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84971A4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84971B0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84971BC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84971C8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84971D4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84971E0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84971EC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84971F8 + voice_noise_alt 0, 0, 2, 6, 0 @ 8497204 + voice_noise_alt 0, 0, 1, 6, 2 @ 8497210 + +voicegroup154:: @ 849721C + voice_keysplit_all voicegroup002 @ 849721C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497228 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497234 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497240 + voice_directsound 60, 0, gDirectSoundWaveData_86, 255, 249, 0, 165 @ 849724C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497258 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497264 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497270 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849727C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497288 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497294 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84972A0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84972AC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84972B8 + voice_directsound 60, 0, gDirectSoundWaveData_66, 255, 165, 97, 236 @ 84972C4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84972D0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84972DC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84972E8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84972F4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497300 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849730C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497318 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497324 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497330 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849733C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497348 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497354 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497360 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849736C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497378 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497384 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497390 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849739C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84973A8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84973B4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84973C0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84973CC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84973D8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84973E4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84973F0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84973FC + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497408 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497414 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497420 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849742C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497438 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497444 + voice_directsound 60, 0, gDirectSoundWaveData_5, 255, 127, 154, 235 @ 8497450 + voice_keysplit voicegroup004, KeySplitTable2 @ 849745C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497468 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497474 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497480 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849748C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497498 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84974A4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84974B0 + voice_keysplit voicegroup005, KeySplitTable3 @ 84974BC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84974C8 + voice_keysplit voicegroup006, KeySplitTable4 @ 84974D4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84974E0 + voice_keysplit voicegroup007, KeySplitTable5 @ 84974EC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84974F8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497504 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497510 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849751C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497528 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497534 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497540 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849754C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497558 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497564 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497570 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849757C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497588 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497594 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84975A0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84975AC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84975B8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84975C4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84975D0 + voice_square_1_alt 0, 1, 0, 0, 10, 0 @ 84975DC + voice_square_2_alt 1, 0, 0, 10, 0 @ 84975E8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84975F4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497600 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849760C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497618 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497624 + voice_programmable_wave_alt gProgrammableWaveData_84A321C, 0, 0, 12, 0 @ 8497630 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849763C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497648 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497654 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497660 + voice_programmable_wave_alt gProgrammableWaveData_84A323C, 0, 0, 12, 0 @ 849766C + +voicegroup155:: @ 8497678 + voice_keysplit_all voicegroup002 @ 8497678 + voice_keysplit voicegroup003, KeySplitTable1 @ 8497684 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497690 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849769C + voice_directsound 60, 0, gDirectSoundWaveData_86, 255, 249, 0, 165 @ 84976A8 + voice_directsound 60, 0, gDirectSoundWaveData_87, 255, 188, 103, 165 @ 84976B4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84976C0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84976CC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84976D8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84976E4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84976F0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84976FC + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497708 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497714 + voice_directsound 60, 0, gDirectSoundWaveData_66, 255, 165, 90, 216 @ 8497720 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849772C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497738 + voice_directsound 60, 0, gDirectSoundWaveData_1, 255, 0, 255, 127 @ 8497744 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497750 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849775C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497768 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497774 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497780 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849778C + voice_directsound 60, 0, gDirectSoundWaveData_78, 128, 249, 25, 127 @ 8497798 + voice_directsound 60, 0, gDirectSoundWaveData_78, 255, 165, 128, 204 @ 84977A4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84977B0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84977BC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84977C8 + voice_directsound 60, 0, gDirectSoundWaveData_82, 255, 0, 255, 127 @ 84977D4 + voice_directsound 60, 0, gDirectSoundWaveData_83, 255, 165, 154, 165 @ 84977E0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84977EC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84977F8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497804 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497810 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849781C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497828 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497834 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497840 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849784C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497858 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497864 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497870 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849787C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497888 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497894 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84978A0 + voice_directsound 60, 0, gDirectSoundWaveData_5, 255, 246, 0, 226 @ 84978AC + voice_keysplit voicegroup004, KeySplitTable2 @ 84978B8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84978C4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84978D0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84978DC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84978E8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84978F4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497900 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849790C + voice_keysplit voicegroup005, KeySplitTable3 @ 8497918 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497924 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497930 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849793C + voice_keysplit voicegroup007, KeySplitTable5 @ 8497948 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497954 + voice_directsound 60, 0, gDirectSoundWaveData_84, 255, 165, 180, 165 @ 8497960 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849796C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497978 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497984 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497990 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849799C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84979A8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84979B4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84979C0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84979CC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84979D8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84979E4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84979F0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84979FC + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497A08 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497A14 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497A20 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497A2C + voice_square_1_alt 0, 1, 0, 2, 7, 2 @ 8497A38 + voice_square_2_alt 3, 0, 3, 6, 2 @ 8497A44 + voice_square_2_alt 3, 0, 2, 6, 5 @ 8497A50 + voice_programmable_wave_alt gProgrammableWaveData_84A324C, 0, 3, 6, 5 @ 8497A5C + voice_square_2_alt 0, 0, 2, 6, 5 @ 8497A68 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497A74 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497A80 + voice_programmable_wave_alt gProgrammableWaveData_84A320C, 0, 7, 15, 1 @ 8497A8C + voice_programmable_wave_alt gProgrammableWaveData_84A31EC, 0, 7, 15, 0 @ 8497A98 + voice_programmable_wave_alt gProgrammableWaveData_84A327C, 0, 1, 9, 2 @ 8497AA4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497AB0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497ABC + voice_square_2_alt 2, 0, 2, 6, 3 @ 8497AC8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497AD4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497AE0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497AEC + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497AF8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497B04 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497B10 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497B1C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497B28 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497B34 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497B40 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497B4C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497B58 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497B64 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497B70 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497B7C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497B88 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497B94 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497BA0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497BAC + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497BB8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497BC4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497BD0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497BDC + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497BE8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497BF4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497C00 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497C0C + voice_directsound 60, 0, gDirectSoundWaveData_79, 255, 0, 255, 165 @ 8497C18 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497C24 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497C30 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497C3C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497C48 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497C54 + voice_noise_alt 0, 0, 2, 6, 2 @ 8497C60 + voice_noise_alt 0, 0, 1, 6, 0 @ 8497C6C + +voicegroup156:: @ 8497C78 + voice_keysplit_all voicegroup002 @ 8497C78 + voice_keysplit voicegroup003, KeySplitTable1 @ 8497C84 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497C90 + voice_programmable_wave_alt gProgrammableWaveData_84A322C, 0, 7, 15, 0 @ 8497C9C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497CA8 + voice_directsound 60, 0, gDirectSoundWaveData_86, 255, 249, 0, 165 @ 8497CB4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497CC0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497CCC + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497CD8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497CE4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497CF0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497CFC + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497D08 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497D14 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497D20 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497D2C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497D38 + voice_directsound 60, 0, gDirectSoundWaveData_1, 255, 0, 255, 127 @ 8497D44 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497D50 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497D5C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497D68 + voice_directsound 60, 0, gDirectSoundWaveData_74, 255, 0, 255, 165 @ 8497D74 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497D80 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497D8C + voice_directsound 60, 0, gDirectSoundWaveData_78, 255, 165, 128, 204 @ 8497D98 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497DA4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497DB0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497DBC + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497DC8 + voice_directsound 60, 0, gDirectSoundWaveData_82, 255, 0, 255, 127 @ 8497DD4 + voice_directsound 60, 0, gDirectSoundWaveData_83, 255, 0, 255, 127 @ 8497DE0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497DEC + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497DF8 + voice_square_2_alt 3, 0, 4, 4, 4 @ 8497E04 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497E10 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497E1C + voice_directsound 60, 0, gDirectSoundWaveData_10, 255, 165, 180, 216 @ 8497E28 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497E34 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497E40 + voice_square_2_alt 1, 0, 1, 7, 5 @ 8497E4C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497E58 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497E64 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497E70 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497E7C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497E88 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497E94 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497EA0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497EAC + voice_keysplit voicegroup004, KeySplitTable2 @ 8497EB8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497EC4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497ED0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497EDC + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497EE8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497EF4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497F00 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497F0C + voice_keysplit voicegroup005, KeySplitTable3 @ 8497F18 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497F24 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497F30 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497F3C + voice_keysplit voicegroup007, KeySplitTable5 @ 8497F48 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497F54 + voice_directsound 60, 0, gDirectSoundWaveData_84, 255, 0, 255, 127 @ 8497F60 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497F6C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497F78 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497F84 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497F90 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497F9C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497FA8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497FB4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497FC0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497FCC + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497FD8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497FE4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497FF0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8497FFC + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498008 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498014 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498020 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849802C + voice_square_2_alt 2, 0, 2, 3, 1 @ 8498038 + voice_square_1_alt 0, 0, 0, 2, 7, 5 @ 8498044 + voice_square_1_alt 0, 3, 0, 2, 6, 5 @ 8498050 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849805C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498068 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498074 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498080 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849808C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498098 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84980A4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84980B0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84980BC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84980C8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84980D4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84980E0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84980EC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84980F8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498104 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498110 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849811C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498128 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498134 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498140 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849814C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498158 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498164 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498170 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849817C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498188 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498194 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84981A0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84981AC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84981B8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84981C4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84981D0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84981DC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84981E8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84981F4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498200 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849820C + voice_directsound 60, 0, gDirectSoundWaveData_79, 255, 0, 255, 165 @ 8498218 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498224 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498230 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849823C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498248 + voice_noise_alt 0, 0, 0, 15, 0 @ 8498254 + voice_noise_alt 0, 0, 2, 6, 0 @ 8498260 + voice_noise_alt 0, 0, 1, 6, 0 @ 849826C + +voicegroup157:: @ 8498278 + voice_keysplit_all voicegroup002 @ 8498278 + voice_keysplit voicegroup003, KeySplitTable1 @ 8498284 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498290 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849829C + voice_square_2_alt 3, 0, 2, 6, 5 @ 84982A8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84982B4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84982C0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84982CC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84982D8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84982E4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84982F0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84982FC + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498308 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498314 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498320 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849832C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498338 + voice_directsound 60, 0, gDirectSoundWaveData_1, 128, 146, 190, 115 @ 8498344 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498350 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849835C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498368 + voice_directsound 60, 0, gDirectSoundWaveData_74, 255, 0, 255, 165 @ 8498374 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498380 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849838C + voice_directsound 60, 0, gDirectSoundWaveData_78, 255, 165, 128, 204 @ 8498398 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84983A4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84983B0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84983BC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84983C8 + voice_directsound 60, 0, gDirectSoundWaveData_82, 255, 0, 255, 127 @ 84983D4 + voice_directsound 60, 0, gDirectSoundWaveData_83, 255, 0, 255, 127 @ 84983E0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84983EC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84983F8 + voice_directsound 60, 0, gDirectSoundWaveData_49, 255, 253, 0, 149 @ 8498404 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498410 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849841C + voice_directsound 60, 0, gDirectSoundWaveData_10, 255, 165, 180, 216 @ 8498428 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498434 + voice_directsound 60, 0, gDirectSoundWaveData_4, 255, 252, 0, 115 @ 8498440 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849844C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498458 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498464 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498470 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849847C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498488 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498494 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84984A0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84984AC + voice_keysplit voicegroup004, KeySplitTable2 @ 84984B8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84984C4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84984D0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84984DC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84984E8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84984F4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498500 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849850C + voice_keysplit voicegroup005, KeySplitTable3 @ 8498518 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498524 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498530 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849853C + voice_keysplit voicegroup007, KeySplitTable5 @ 8498548 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498554 + voice_directsound 60, 0, gDirectSoundWaveData_84, 255, 0, 255, 127 @ 8498560 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849856C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498578 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498584 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498590 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849859C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84985A8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84985B4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84985C0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84985CC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84985D8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84985E4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84985F0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84985FC + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498608 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498614 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498620 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849862C + voice_square_1_alt 0, 1, 0, 2, 7, 2 @ 8498638 + voice_square_2_alt 3, 0, 3, 3, 0 @ 8498644 + voice_programmable_wave_alt gProgrammableWaveData_84A324C, 0, 3, 6, 5 @ 8498650 + voice_square_1_alt 0, 0, 0, 2, 7, 2 @ 849865C + voice_programmable_wave_alt gProgrammableWaveData_84A31EC, 0, 7, 15, 0 @ 8498668 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498674 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498680 + voice_programmable_wave_alt gProgrammableWaveData_84A323C, 0, 7, 15, 0 @ 849868C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498698 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84986A4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84986B0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84986BC + voice_square_2_alt 2, 0, 2, 6, 3 @ 84986C8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84986D4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84986E0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84986EC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84986F8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498704 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498710 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849871C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498728 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498734 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498740 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849874C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498758 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498764 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498770 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849877C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498788 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498794 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84987A0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84987AC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84987B8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84987C4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84987D0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84987DC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84987E8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84987F4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498800 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849880C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498818 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498824 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498830 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849883C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498848 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498854 + voice_noise_alt 0, 0, 2, 6, 0 @ 8498860 + voice_noise_alt 0, 0, 1, 6, 1 @ 849886C + +voicegroup158:: @ 8498878 + voice_keysplit_all voicegroup002 @ 8498878 + voice_keysplit voicegroup003, KeySplitTable1 @ 8498884 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498890 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849889C + voice_directsound 60, 0, gDirectSoundWaveData_86, 255, 249, 0, 165 @ 84988A8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84988B4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84988C0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84988CC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84988D8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84988E4 + voice_directsound 60, 0, gDirectSoundWaveData_31, 255, 0, 255, 0 @ 84988F0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84988FC + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498908 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498914 + voice_directsound 60, 0, gDirectSoundWaveData_66, 255, 165, 90, 216 @ 8498920 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849892C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498938 + voice_directsound 60, 0, gDirectSoundWaveData_1, 128, 146, 108, 137 @ 8498944 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498950 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849895C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498968 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498974 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498980 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849898C + voice_directsound 60, 0, gDirectSoundWaveData_78, 128, 204, 103, 226 @ 8498998 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84989A4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84989B0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84989BC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84989C8 + voice_directsound 60, 0, gDirectSoundWaveData_82, 255, 0, 255, 127 @ 84989D4 + voice_directsound 60, 0, gDirectSoundWaveData_83, 255, 0, 255, 127 @ 84989E0 + voice_directsound 60, 0, gDirectSoundWaveData_79, 255, 0, 255, 165 @ 84989EC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84989F8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498A04 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498A10 + voice_directsound 60, 0, gDirectSoundWaveData_2, 255, 253, 0, 188 @ 8498A1C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498A28 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498A34 + voice_directsound 60, 0, gDirectSoundWaveData_4, 255, 252, 0, 115 @ 8498A40 + voice_directsound 60, 0, gDirectSoundWaveData_52, 255, 0, 255, 127 @ 8498A4C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498A58 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498A64 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498A70 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498A7C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498A88 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498A94 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498AA0 + voice_directsound 60, 0, gDirectSoundWaveData_5, 255, 0, 193, 153 @ 8498AAC + voice_keysplit voicegroup004, KeySplitTable2 @ 8498AB8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498AC4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498AD0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498ADC + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498AE8 + voice_directsound 60, 0, gDirectSoundWaveData_6, 255, 0, 255, 0 @ 8498AF4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498B00 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498B0C + voice_keysplit voicegroup005, KeySplitTable3 @ 8498B18 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498B24 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498B30 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498B3C + voice_keysplit voicegroup007, KeySplitTable5 @ 8498B48 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498B54 + voice_directsound 60, 0, gDirectSoundWaveData_84, 255, 0, 236, 188 @ 8498B60 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498B6C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498B78 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498B84 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498B90 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498B9C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498BA8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498BB4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498BC0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498BCC + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498BD8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498BE4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498BF0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498BFC + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498C08 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498C14 + voice_directsound 60, 0, gDirectSoundWaveData_85, 255, 0, 255, 127 @ 8498C20 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498C2C + voice_square_1_alt 0, 1, 0, 1, 9, 0 @ 8498C38 + voice_square_2_alt 3, 0, 1, 10, 1 @ 8498C44 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498C50 + voice_square_2_alt 2, 1, 0, 9, 1 @ 8498C5C + voice_programmable_wave_alt gProgrammableWaveData_84A323C, 0, 7, 15, 0 @ 8498C68 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498C74 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498C80 + voice_programmable_wave_alt gProgrammableWaveData_84A322C, 0, 7, 15, 0 @ 8498C8C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498C98 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498CA4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498CB0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498CBC + voice_programmable_wave_alt gProgrammableWaveData_84A31EC, 0, 0, 15, 0 @ 8498CC8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498CD4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498CE0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498CEC + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498CF8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498D04 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498D10 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498D1C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498D28 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498D34 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498D40 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498D4C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498D58 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498D64 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498D70 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498D7C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498D88 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498D94 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498DA0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498DAC + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498DB8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498DC4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498DD0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498DDC + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498DE8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498DF4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498E00 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498E0C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498E18 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498E24 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498E30 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498E3C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498E48 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498E54 + voice_noise_alt 0, 0, 2, 6, 0 @ 8498E60 + voice_noise_alt 0, 0, 1, 8, 1 @ 8498E6C + +voicegroup159:: @ 8498E78 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498E78 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498E84 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498E90 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498E9C + voice_directsound 60, 0, gDirectSoundWaveData_86, 64, 249, 0, 188 @ 8498EA8 + voice_directsound 60, 0, gDirectSoundWaveData_87, 51, 249, 0, 165 @ 8498EB4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498EC0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498ECC + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498ED8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498EE4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498EF0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498EFC + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498F08 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498F14 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498F20 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498F2C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498F38 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498F44 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498F50 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498F5C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498F68 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498F74 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498F80 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498F8C + voice_directsound 60, 0, gDirectSoundWaveData_78, 85, 249, 25, 127 @ 8498F98 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498FA4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498FB0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498FBC + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498FC8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498FD4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498FE0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498FEC + voice_square_1 0, 2, 0, 0, 15, 0 @ 8498FF8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499004 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499010 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849901C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499028 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499034 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499040 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849904C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499058 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499064 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499070 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849907C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499088 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499094 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84990A0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84990AC + voice_keysplit voicegroup004, KeySplitTable2 @ 84990B8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84990C4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84990D0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84990DC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84990E8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84990F4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499100 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849910C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499118 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499124 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499130 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849913C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499148 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499154 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499160 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849916C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499178 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499184 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499190 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849919C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84991A8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84991B4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84991C0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84991CC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84991D8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84991E4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84991F0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84991FC + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499208 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499214 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499220 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849922C + voice_square_1_alt 0, 2, 0, 7, 0, 6 @ 8499238 + voice_square_2_alt 1, 1, 5, 1, 6 @ 8499244 + voice_programmable_wave_alt gProgrammableWaveData_84A31FC, 1, 7, 0, 6 @ 8499250 + voice_square_1_alt 0, 0, 1, 4, 3, 6 @ 849925C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499268 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499274 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499280 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849928C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499298 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84992A4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84992B0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84992BC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84992C8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84992D4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84992E0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84992EC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84992F8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499304 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499310 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849931C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499328 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499334 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499340 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849934C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499358 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499364 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499370 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849937C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499388 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499394 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84993A0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84993AC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84993B8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84993C4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84993D0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84993DC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84993E8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84993F4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499400 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849940C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499418 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499424 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499430 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849943C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499448 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499454 + voice_noise_alt 0, 0, 2, 4, 0 @ 8499460 + voice_noise_alt 0, 0, 1, 0, 0 @ 849946C + +voicegroup160:: @ 8499478 + voice_keysplit_all voicegroup001 @ 8499478 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499484 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499490 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849949C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84994A8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84994B4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84994C0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84994CC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84994D8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84994E4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84994F0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84994FC + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499508 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499514 + voice_directsound 60, 0, gDirectSoundWaveData_66, 255, 165, 90, 216 @ 8499520 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849952C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499538 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499544 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499550 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849955C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499568 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499574 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499580 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849958C + voice_directsound 60, 0, gDirectSoundWaveData_78, 128, 249, 25, 127 @ 8499598 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84995A4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84995B0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84995BC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84995C8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84995D4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84995E0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84995EC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84995F8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499604 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499610 + voice_directsound 60, 0, gDirectSoundWaveData_2, 255, 253, 0, 188 @ 849961C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499628 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499634 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499640 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849964C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499658 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499664 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499670 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849967C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499688 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499694 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84996A0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84996AC + voice_keysplit voicegroup004, KeySplitTable2 @ 84996B8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84996C4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84996D0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84996DC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84996E8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84996F4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499700 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849970C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499718 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499724 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499730 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849973C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499748 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499754 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499760 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849976C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499778 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499784 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499790 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849979C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84997A8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84997B4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84997C0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84997CC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84997D8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84997E4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84997F0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84997FC + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499808 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499814 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499820 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849982C + voice_square_1_alt 0, 1, 0, 2, 3, 1 @ 8499838 + voice_square_2_alt 1, 0, 2, 4, 2 @ 8499844 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499850 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849985C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499868 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499874 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499880 + voice_programmable_wave_alt gProgrammableWaveData_84A322C, 0, 7, 15, 0 @ 849988C + +voicegroup161:: @ 8499898 + voice_keysplit_all voicegroup002 @ 8499898 + voice_keysplit voicegroup003, KeySplitTable1 @ 84998A4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84998B0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84998BC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84998C8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84998D4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84998E0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84998EC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84998F8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499904 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499910 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849991C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499928 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499934 + voice_directsound 60, 0, gDirectSoundWaveData_66, 255, 165, 90, 216 @ 8499940 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849994C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499958 + voice_directsound 60, 0, gDirectSoundWaveData_1, 255, 0, 255, 127 @ 8499964 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499970 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849997C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499988 + voice_directsound 60, 0, gDirectSoundWaveData_74, 255, 0, 255, 165 @ 8499994 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84999A0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84999AC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84999B8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84999C4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84999D0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84999DC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84999E8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84999F4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499A00 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499A0C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499A18 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499A24 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499A30 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499A3C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499A48 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499A54 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499A60 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499A6C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499A78 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499A84 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499A90 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499A9C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499AA8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499AB4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499AC0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499ACC + voice_keysplit voicegroup004, KeySplitTable2 @ 8499AD8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499AE4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499AF0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499AFC + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499B08 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499B14 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499B20 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499B2C + voice_keysplit voicegroup005, KeySplitTable3 @ 8499B38 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499B44 + voice_keysplit voicegroup006, KeySplitTable4 @ 8499B50 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499B5C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499B68 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499B74 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499B80 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499B8C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499B98 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499BA4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499BB0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499BBC + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499BC8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499BD4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499BE0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499BEC + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499BF8 + voice_directsound 60, 0, gDirectSoundWaveData_48, 255, 0, 255, 165 @ 8499C04 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499C10 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499C1C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499C28 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499C34 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499C40 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499C4C + voice_square_1_alt 0, 2, 0, 2, 6, 4 @ 8499C58 + voice_square_2_alt 2, 0, 2, 6, 2 @ 8499C64 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499C70 + voice_square_2_alt 1, 0, 2, 6, 2 @ 8499C7C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499C88 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499C94 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499CA0 + voice_programmable_wave_alt gProgrammableWaveData_84A322C, 0, 7, 15, 0 @ 8499CAC + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499CB8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499CC4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499CD0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499CDC + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499CE8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499CF4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499D00 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499D0C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499D18 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499D24 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499D30 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499D3C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499D48 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499D54 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499D60 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499D6C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499D78 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499D84 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499D90 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499D9C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499DA8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499DB4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499DC0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499DCC + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499DD8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499DE4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499DF0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499DFC + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499E08 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499E14 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499E20 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499E2C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499E38 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499E44 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499E50 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499E5C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499E68 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499E74 + voice_noise_alt 0, 0, 2, 4, 0 @ 8499E80 + voice_noise_alt 0, 0, 1, 0, 0 @ 8499E8C + +voicegroup162:: @ 8499E98 + voice_keysplit_all voicegroup002 @ 8499E98 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499EA4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499EB0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499EBC + voice_directsound 60, 0, gDirectSoundWaveData_87, 64, 188, 108, 244 @ 8499EC8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499ED4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499EE0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499EEC + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499EF8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499F04 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499F10 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499F1C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499F28 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499F34 + voice_directsound 60, 0, gDirectSoundWaveData_66, 255, 165, 90, 216 @ 8499F40 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499F4C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499F58 + voice_directsound 60, 0, gDirectSoundWaveData_1, 64, 195, 92, 235 @ 8499F64 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499F70 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499F7C + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499F88 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499F94 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499FA0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499FAC + voice_directsound 60, 0, gDirectSoundWaveData_78, 128, 249, 25, 127 @ 8499FB8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499FC4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499FD0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499FDC + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499FE8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 8499FF4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A000 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A00C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A018 + voice_directsound 60, 0, gDirectSoundWaveData_49, 64, 204, 113, 235 @ 849A024 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A030 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A03C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A048 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A054 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A060 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A06C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A078 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A084 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A090 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A09C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A0A8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A0B4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A0C0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A0CC + voice_keysplit voicegroup004, KeySplitTable2 @ 849A0D8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A0E4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A0F0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A0FC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A108 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A114 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A120 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A12C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A138 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A144 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A150 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A15C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A168 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A174 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A180 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A18C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A198 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A1A4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A1B0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A1BC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A1C8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A1D4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A1E0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A1EC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A1F8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A204 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A210 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A21C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A228 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A234 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A240 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A24C + voice_square_1_alt 0, 1, 0, 0, 6, 0 @ 849A258 + voice_square_2_alt 1, 0, 0, 6, 0 @ 849A264 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A270 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A27C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A288 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A294 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A2A0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A2AC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A2B8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A2C4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A2D0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A2DC + voice_programmable_wave_alt gProgrammableWaveData_84A322C, 0, 7, 15, 0 @ 849A2E8 + +voicegroup163:: @ 849A2F4 + voice_keysplit_all voicegroup002 @ 849A2F4 + voice_keysplit voicegroup003, KeySplitTable1 @ 849A300 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A30C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A318 + voice_directsound 60, 0, gDirectSoundWaveData_86, 255, 188, 128, 226 @ 849A324 + voice_directsound 60, 65, gDirectSoundWaveData_87, 255, 204, 77, 246 @ 849A330 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A33C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A348 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A354 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A360 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A36C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A378 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A384 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A390 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A39C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A3A8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A3B4 + voice_directsound 60, 0, gDirectSoundWaveData_1, 255, 76, 133, 137 @ 849A3C0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A3CC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A3D8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A3E4 + voice_directsound 60, 0, gDirectSoundWaveData_74, 64, 188, 108, 165 @ 849A3F0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A3FC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A408 + voice_directsound 60, 0, gDirectSoundWaveData_78, 255, 249, 25, 127 @ 849A414 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A420 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A42C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A438 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A444 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A450 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A45C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A468 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A474 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A480 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A48C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A498 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A4A4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A4B0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A4BC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A4C8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A4D4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A4E0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A4EC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A4F8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A504 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A510 + voice_directsound 60, 0, gDirectSoundWaveData_70, 255, 246, 0, 235 @ 849A51C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A528 + voice_keysplit voicegroup004, KeySplitTable2 @ 849A534 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A540 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A54C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A558 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A564 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A570 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A57C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A588 + voice_keysplit voicegroup005, KeySplitTable3 @ 849A594 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A5A0 + voice_directsound 60, 0, gDirectSoundWaveData_77, 255, 0, 206, 204 @ 849A5AC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A5B8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A5C4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A5D0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A5DC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A5E8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A5F4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A600 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A60C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A618 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A624 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A630 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A63C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A648 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A654 + voice_directsound 60, 0, gDirectSoundWaveData_48, 255, 127, 231, 127 @ 849A660 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A66C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A678 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A684 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A690 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A69C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A6A8 + voice_square_1_alt 0, 0, 0, 1, 5, 2 @ 849A6B4 + voice_square_2_alt 3, 0, 3, 4, 2 @ 849A6C0 + voice_square_2_alt 0, 0, 2, 6, 5 @ 849A6CC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A6D8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A6E4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A6F0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A6FC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A708 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A714 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A720 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A72C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A738 + voice_programmable_wave_alt gProgrammableWaveData_84A326C, 0, 0, 12, 0 @ 849A744 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A750 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A75C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A768 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A774 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A780 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A78C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A798 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A7A4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A7B0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A7BC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A7C8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A7D4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A7E0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A7EC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A7F8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A804 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A810 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A81C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A828 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A834 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A840 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A84C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A858 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A864 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A870 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A87C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A888 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A894 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A8A0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A8AC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A8B8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A8C4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A8D0 + voice_noise_alt 0, 0, 2, 6, 0 @ 849A8DC + voice_noise_alt 0, 0, 1, 6, 0 @ 849A8E8 + +voicegroup164:: @ 849A8F4 + voice_keysplit_all voicegroup002 @ 849A8F4 + voice_keysplit voicegroup003, KeySplitTable1 @ 849A900 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A90C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A918 + voice_directsound 60, 0, gDirectSoundWaveData_86, 128, 180, 108, 209 @ 849A924 + voice_directsound 60, 65, gDirectSoundWaveData_87, 85, 204, 77, 246 @ 849A930 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A93C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A948 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A954 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A960 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A96C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A978 + voice_square_1_alt 0, 2, 0, 0, 10, 6 @ 849A984 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A990 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A99C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A9A8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A9B4 + voice_directsound 60, 0, gDirectSoundWaveData_1, 255, 76, 133, 137 @ 849A9C0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A9CC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A9D8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A9E4 + voice_directsound 60, 0, gDirectSoundWaveData_74, 64, 188, 108, 165 @ 849A9F0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849A9FC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849AA08 + voice_directsound 60, 0, gDirectSoundWaveData_78, 255, 249, 25, 127 @ 849AA14 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849AA20 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849AA2C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849AA38 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849AA44 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849AA50 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849AA5C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849AA68 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849AA74 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849AA80 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849AA8C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849AA98 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849AAA4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849AAB0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849AABC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849AAC8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849AAD4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849AAE0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849AAEC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849AAF8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849AB04 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849AB10 + voice_directsound 60, 0, gDirectSoundWaveData_70, 255, 246, 0, 235 @ 849AB1C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849AB28 + voice_keysplit voicegroup004, KeySplitTable2 @ 849AB34 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849AB40 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849AB4C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849AB58 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849AB64 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849AB70 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849AB7C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849AB88 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849AB94 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849ABA0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849ABAC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849ABB8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849ABC4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849ABD0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849ABDC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849ABE8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849ABF4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849AC00 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849AC0C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849AC18 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849AC24 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849AC30 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849AC3C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849AC48 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849AC54 + voice_directsound 60, 0, gDirectSoundWaveData_48, 255, 127, 231, 127 @ 849AC60 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849AC6C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849AC78 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849AC84 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849AC90 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849AC9C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849ACA8 + voice_square_2_alt 2, 0, 2, 6, 2 @ 849ACB4 + voice_square_1_alt 0, 2, 0, 1, 7, 4 @ 849ACC0 + voice_programmable_wave_alt gProgrammableWaveData_84A328C, 0, 0, 12, 0 @ 849ACCC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849ACD8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849ACE4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849ACF0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849ACFC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849AD08 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849AD14 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849AD20 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849AD2C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849AD38 + voice_programmable_wave_alt gProgrammableWaveData_84A31EC, 0, 0, 12, 0 @ 849AD44 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849AD50 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849AD5C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849AD68 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849AD74 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849AD80 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849AD8C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849AD98 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849ADA4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849ADB0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849ADBC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849ADC8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849ADD4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849ADE0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849ADEC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849ADF8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849AE04 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849AE10 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849AE1C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849AE28 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849AE34 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849AE40 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849AE4C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849AE58 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849AE64 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849AE70 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849AE7C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849AE88 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849AE94 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849AEA0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849AEAC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849AEB8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849AEC4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849AED0 + voice_noise_alt 0, 0, 2, 6, 0 @ 849AEDC + voice_noise_alt 0, 0, 1, 6, 0 @ 849AEE8 + +voicegroup165:: @ 849AEF4 + voice_keysplit_all voicegroup002 @ 849AEF4 + voice_keysplit voicegroup003, KeySplitTable1 @ 849AF00 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849AF0C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849AF18 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849AF24 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849AF30 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849AF3C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849AF48 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849AF54 + voice_directsound 60, 0, gDirectSoundWaveData_0, 255, 165, 51, 242 @ 849AF60 + voice_directsound 60, 0, gDirectSoundWaveData_31, 255, 0, 255, 0 @ 849AF6C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849AF78 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849AF84 + voice_directsound 60, 0, gDirectSoundWaveData_71, 255, 235, 0, 204 @ 849AF90 + voice_directsound 60, 0, gDirectSoundWaveData_66, 255, 165, 90, 216 @ 849AF9C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849AFA8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849AFB4 + voice_directsound 60, 0, gDirectSoundWaveData_1, 37, 165, 103, 127 @ 849AFC0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849AFCC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849AFD8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849AFE4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849AFF0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849AFFC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B008 + voice_directsound 60, 0, gDirectSoundWaveData_78, 255, 204, 92, 226 @ 849B014 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B020 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B02C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B038 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B044 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B050 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B05C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B068 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B074 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B080 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B08C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B098 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B0A4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B0B0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B0BC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B0C8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B0D4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B0E0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B0EC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B0F8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B104 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B110 + voice_directsound 60, 0, gDirectSoundWaveData_70, 255, 242, 51, 226 @ 849B11C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B128 + voice_keysplit voicegroup004, KeySplitTable2 @ 849B134 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B140 + voice_square_1_alt 0, 2, 0, 2, 10, 1 @ 849B14C + voice_square_2_alt 2, 0, 2, 6, 6 @ 849B158 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B164 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B170 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B17C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B188 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B194 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B1A0 + voice_keysplit voicegroup006, KeySplitTable4 @ 849B1AC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B1B8 + voice_keysplit voicegroup007, KeySplitTable5 @ 849B1C4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B1D0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B1DC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B1E8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B1F4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B200 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B20C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B218 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B224 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B230 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B23C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B248 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B254 + voice_directsound 60, 0, gDirectSoundWaveData_48, 255, 0, 255, 165 @ 849B260 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B26C + voice_directsound 60, 0, gDirectSoundWaveData_88, 255, 191, 97, 165 @ 849B278 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B284 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B290 + voice_directsound 60, 0, gDirectSoundWaveData_85, 255, 0, 255, 127 @ 849B29C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B2A8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B2B4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B2C0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B2CC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B2D8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B2E4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B2F0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B2FC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B308 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B314 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B320 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B32C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B338 + voice_programmable_wave_alt gProgrammableWaveData_84A322C, 0, 7, 15, 0 @ 849B344 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B350 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B35C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B368 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B374 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B380 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B38C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B398 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B3A4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B3B0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B3BC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B3C8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B3D4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B3E0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B3EC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B3F8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B404 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B410 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B41C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B428 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B434 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B440 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B44C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B458 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B464 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B470 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B47C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B488 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B494 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B4A0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B4AC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B4B8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B4C4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B4D0 + voice_noise_alt 0, 0, 1, 9, 0 @ 849B4DC + voice_noise_alt 0, 0, 1, 6, 1 @ 849B4E8 + +voicegroup166:: @ 849B4F4 + voice_keysplit_all voicegroup002 @ 849B4F4 + voice_keysplit voicegroup003, KeySplitTable1 @ 849B500 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B50C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B518 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B524 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B530 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B53C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B548 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B554 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B560 + voice_directsound 60, 0, gDirectSoundWaveData_31, 255, 0, 255, 0 @ 849B56C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B578 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B584 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B590 + voice_directsound 60, 0, gDirectSoundWaveData_66, 255, 165, 90, 216 @ 849B59C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B5A8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B5B4 + voice_directsound 60, 0, gDirectSoundWaveData_1, 128, 146, 108, 137 @ 849B5C0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B5CC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B5D8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B5E4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B5F0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B5FC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B608 + voice_directsound 60, 0, gDirectSoundWaveData_78, 128, 204, 103, 226 @ 849B614 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B620 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B62C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B638 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B644 + voice_directsound 60, 0, gDirectSoundWaveData_82, 255, 0, 255, 127 @ 849B650 + voice_directsound 60, 0, gDirectSoundWaveData_83, 255, 0, 255, 127 @ 849B65C + voice_directsound 60, 0, gDirectSoundWaveData_79, 255, 0, 255, 165 @ 849B668 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B674 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B680 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B68C + voice_directsound 60, 0, gDirectSoundWaveData_2, 255, 253, 0, 188 @ 849B698 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B6A4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B6B0 + voice_directsound 60, 0, gDirectSoundWaveData_4, 255, 252, 0, 115 @ 849B6BC + voice_directsound 60, 0, gDirectSoundWaveData_52, 255, 0, 255, 127 @ 849B6C8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B6D4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B6E0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B6EC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B6F8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B704 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B710 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B71C + voice_directsound 60, 0, gDirectSoundWaveData_5, 255, 0, 193, 153 @ 849B728 + voice_keysplit voicegroup004, KeySplitTable2 @ 849B734 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B740 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B74C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B758 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B764 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B770 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B77C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B788 + voice_keysplit voicegroup005, KeySplitTable3 @ 849B794 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B7A0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B7AC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B7B8 + voice_keysplit voicegroup007, KeySplitTable5 @ 849B7C4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B7D0 + voice_directsound 60, 0, gDirectSoundWaveData_84, 255, 0, 236, 188 @ 849B7DC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B7E8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B7F4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B800 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B80C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B818 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B824 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B830 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B83C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B848 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B854 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B860 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B86C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B878 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B884 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B890 + voice_directsound 60, 0, gDirectSoundWaveData_85, 255, 0, 255, 127 @ 849B89C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B8A8 + voice_square_1_alt 0, 3, 0, 1, 9, 0 @ 849B8B4 + voice_square_2_alt 3, 0, 2, 9, 1 @ 849B8C0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B8CC + voice_square_2_alt 2, 1, 0, 9, 1 @ 849B8D8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B8E4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B8F0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B8FC + voice_programmable_wave_alt gProgrammableWaveData_84A322C, 0, 7, 15, 0 @ 849B908 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B914 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B920 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B92C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B938 + voice_programmable_wave_alt gProgrammableWaveData_84A31EC, 0, 0, 15, 0 @ 849B944 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B950 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B95C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B968 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B974 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B980 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B98C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B998 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B9A4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B9B0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B9BC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B9C8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B9D4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B9E0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B9EC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849B9F8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849BA04 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849BA10 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849BA1C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849BA28 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849BA34 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849BA40 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849BA4C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849BA58 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849BA64 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849BA70 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849BA7C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849BA88 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849BA94 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849BAA0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849BAAC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849BAB8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849BAC4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849BAD0 + voice_noise_alt 0, 0, 2, 6, 0 @ 849BADC + voice_noise_alt 0, 0, 1, 8, 1 @ 849BAE8 + +voicegroup167:: @ 849BAF4 + voice_keysplit_all voicegroup002 @ 849BAF4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849BB00 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849BB0C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849BB18 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849BB24 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849BB30 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849BB3C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849BB48 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849BB54 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849BB60 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849BB6C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849BB78 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849BB84 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849BB90 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849BB9C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849BBA8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849BBB4 + voice_directsound 60, 0, gDirectSoundWaveData_1, 255, 76, 133, 137 @ 849BBC0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849BBCC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849BBD8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849BBE4 + voice_directsound 60, 0, gDirectSoundWaveData_74, 64, 188, 108, 165 @ 849BBF0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849BBFC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849BC08 + voice_directsound 60, 0, gDirectSoundWaveData_78, 128, 249, 25, 127 @ 849BC14 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849BC20 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849BC2C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849BC38 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849BC44 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849BC50 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849BC5C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849BC68 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849BC74 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849BC80 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849BC8C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849BC98 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849BCA4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849BCB0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849BCBC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849BCC8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849BCD4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849BCE0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849BCEC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849BCF8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849BD04 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849BD10 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849BD1C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849BD28 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849BD34 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849BD40 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849BD4C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849BD58 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849BD64 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849BD70 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849BD7C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849BD88 + voice_keysplit voicegroup005, KeySplitTable3 @ 849BD94 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849BDA0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849BDAC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849BDB8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849BDC4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849BDD0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849BDDC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849BDE8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849BDF4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849BE00 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849BE0C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849BE18 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849BE24 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849BE30 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849BE3C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849BE48 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849BE54 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849BE60 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849BE6C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849BE78 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849BE84 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849BE90 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849BE9C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849BEA8 + voice_square_1_alt 0, 0, 0, 1, 10, 4 @ 849BEB4 + voice_square_2_alt 3, 0, 2, 8, 3 @ 849BEC0 + voice_square_2_alt 2, 0, 2, 6, 5 @ 849BECC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849BED8 + voice_programmable_wave_alt gProgrammableWaveData_84A322C, 0, 0, 6, 0 @ 849BEE4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849BEF0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849BEFC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849BF08 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849BF14 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849BF20 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849BF2C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849BF38 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849BF44 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849BF50 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849BF5C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849BF68 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849BF74 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849BF80 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849BF8C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849BF98 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849BFA4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849BFB0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849BFBC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849BFC8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849BFD4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849BFE0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849BFEC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849BFF8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C004 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C010 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C01C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C028 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C034 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C040 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C04C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C058 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C064 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C070 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C07C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C088 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C094 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C0A0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C0AC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C0B8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C0C4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C0D0 + voice_noise_alt 0, 0, 2, 6, 0 @ 849C0DC + voice_noise_alt 0, 0, 1, 6, 0 @ 849C0E8 + +voicegroup168:: @ 849C0F4 + voice_keysplit_all voicegroup002 @ 849C0F4 + voice_keysplit voicegroup003, KeySplitTable1 @ 849C100 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C10C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C118 + voice_directsound 60, 0, gDirectSoundWaveData_86, 255, 188, 128, 226 @ 849C124 + voice_directsound 60, 65, gDirectSoundWaveData_87, 255, 204, 77, 246 @ 849C130 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C13C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C148 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C154 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C160 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C16C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C178 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C184 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C190 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C19C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C1A8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C1B4 + voice_directsound 60, 0, gDirectSoundWaveData_1, 255, 76, 133, 137 @ 849C1C0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C1CC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C1D8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C1E4 + voice_directsound 60, 0, gDirectSoundWaveData_74, 64, 188, 108, 165 @ 849C1F0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C1FC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C208 + voice_directsound 60, 0, gDirectSoundWaveData_78, 255, 249, 25, 127 @ 849C214 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C220 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C22C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C238 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C244 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C250 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C25C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C268 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C274 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C280 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C28C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C298 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C2A4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C2B0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C2BC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C2C8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C2D4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C2E0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C2EC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C2F8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C304 + voice_directsound 60, 0, gDirectSoundWaveData_55, 255, 216, 0, 165 @ 849C310 + voice_directsound 60, 0, gDirectSoundWaveData_70, 255, 246, 0, 235 @ 849C31C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C328 + voice_keysplit voicegroup004, KeySplitTable2 @ 849C334 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C340 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C34C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C358 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C364 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C370 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C37C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C388 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C394 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C3A0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C3AC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C3B8 + voice_keysplit voicegroup007, KeySplitTable5 @ 849C3C4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C3D0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C3DC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C3E8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C3F4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C400 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C40C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C418 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C424 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C430 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C43C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C448 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C454 + voice_directsound 60, 0, gDirectSoundWaveData_48, 255, 127, 231, 127 @ 849C460 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C46C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C478 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C484 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C490 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C49C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C4A8 + voice_square_1_alt 0, 1, 0, 1, 4, 2 @ 849C4B4 + voice_square_2_alt 3, 0, 2, 6, 4 @ 849C4C0 + voice_square_2_alt 0, 0, 2, 6, 5 @ 849C4CC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C4D8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C4E4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C4F0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C4FC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C508 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C514 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C520 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C52C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C538 + voice_programmable_wave_alt gProgrammableWaveData_84A326C, 0, 0, 12, 0 @ 849C544 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C550 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C55C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C568 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C574 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C580 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C58C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C598 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C5A4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C5B0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C5BC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C5C8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C5D4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C5E0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C5EC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C5F8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C604 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C610 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C61C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C628 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C634 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C640 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C64C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C658 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C664 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C670 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C67C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C688 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C694 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C6A0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C6AC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C6B8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C6C4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C6D0 + voice_noise_alt 0, 0, 2, 6, 0 @ 849C6DC + voice_noise_alt 0, 0, 1, 6, 0 @ 849C6E8 + +voicegroup169:: @ 849C6F4 + voice_keysplit_all voicegroup001 @ 849C6F4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C700 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C70C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C718 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C724 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C730 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C73C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C748 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C754 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C760 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C76C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C778 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C784 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C790 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C79C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C7A8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C7B4 + voice_directsound 60, 0, gDirectSoundWaveData_1, 255, 0, 255, 210 @ 849C7C0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C7CC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C7D8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C7E4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C7F0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C7FC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C808 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C814 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C820 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C82C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C838 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C844 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C850 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C85C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C868 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C874 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C880 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C88C + voice_directsound 60, 0, gDirectSoundWaveData_2, 255, 253, 0, 188 @ 849C898 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C8A4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C8B0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C8BC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C8C8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C8D4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C8E0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C8EC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C8F8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C904 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C910 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C91C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C928 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C934 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C940 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C94C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C958 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C964 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C970 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C97C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C988 + voice_keysplit voicegroup005, KeySplitTable3 @ 849C994 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C9A0 + voice_keysplit voicegroup006, KeySplitTable4 @ 849C9AC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C9B8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C9C4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C9D0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C9DC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C9E8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849C9F4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849CA00 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849CA0C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849CA18 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849CA24 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849CA30 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849CA3C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849CA48 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849CA54 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849CA60 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849CA6C + voice_programmable_wave_alt gProgrammableWaveData_84A31FC, 0, 7, 15, 0 @ 849CA78 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849CA84 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849CA90 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849CA9C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849CAA8 + voice_square_1_alt 0, 2, 0, 1, 4, 1 @ 849CAB4 + voice_square_2_alt 2, 0, 1, 4, 1 @ 849CAC0 + voice_square_2_alt 0, 0, 1, 4, 1 @ 849CACC + voice_square_1_alt 0, 0, 0, 1, 4, 1 @ 849CAD8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849CAE4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849CAF0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849CAFC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849CB08 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849CB14 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849CB20 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849CB2C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849CB38 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849CB44 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849CB50 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849CB5C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849CB68 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849CB74 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849CB80 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849CB8C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849CB98 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849CBA4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849CBB0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849CBBC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849CBC8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849CBD4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849CBE0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849CBEC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849CBF8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849CC04 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849CC10 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849CC1C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849CC28 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849CC34 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849CC40 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849CC4C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849CC58 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849CC64 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849CC70 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849CC7C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849CC88 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849CC94 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849CCA0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849CCAC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849CCB8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849CCC4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849CCD0 + voice_noise_alt 0, 0, 2, 4, 0 @ 849CCDC + voice_noise_alt 0, 0, 1, 0, 0 @ 849CCE8 + +voicegroup170:: @ 849CCF4 + voice_keysplit_all voicegroup001 @ 849CCF4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849CD00 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849CD0C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849CD18 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849CD24 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849CD30 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849CD3C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849CD48 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849CD54 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849CD60 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849CD6C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849CD78 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849CD84 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849CD90 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849CD9C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849CDA8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849CDB4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849CDC0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849CDCC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849CDD8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849CDE4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849CDF0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849CDFC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849CE08 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849CE14 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849CE20 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849CE2C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849CE38 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849CE44 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849CE50 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849CE5C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849CE68 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849CE74 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849CE80 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849CE8C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849CE98 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849CEA4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849CEB0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849CEBC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849CEC8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849CED4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849CEE0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849CEEC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849CEF8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849CF04 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849CF10 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849CF1C + voice_directsound 60, 0, gDirectSoundWaveData_5, 255, 246, 0, 226 @ 849CF28 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849CF34 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849CF40 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849CF4C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849CF58 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849CF64 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849CF70 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849CF7C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849CF88 + voice_keysplit voicegroup005, KeySplitTable3 @ 849CF94 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849CFA0 + voice_keysplit voicegroup006, KeySplitTable4 @ 849CFAC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849CFB8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849CFC4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849CFD0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849CFDC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849CFE8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849CFF4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D000 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D00C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D018 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D024 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D030 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D03C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D048 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D054 + voice_directsound 60, 0, gDirectSoundWaveData_48, 255, 127, 231, 127 @ 849D060 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D06C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D078 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D084 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D090 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D09C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D0A8 + voice_square_2_alt 1, 0, 1, 7, 1 @ 849D0B4 + voice_programmable_wave_alt gProgrammableWaveData_84A31EC, 0, 7, 15, 1 @ 849D0C0 + voice_square_1_alt 0, 1, 0, 1, 7, 1 @ 849D0CC + voice_square_2_alt 2, 0, 1, 0, 0 @ 849D0D8 + +voicegroup171:: @ 849D0E4 + voice_keysplit_all voicegroup001 @ 849D0E4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D0F0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D0FC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D108 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D114 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D120 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D12C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D138 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D144 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D150 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D15C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D168 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D174 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D180 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D18C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D198 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D1A4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D1B0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D1BC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D1C8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D1D4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D1E0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D1EC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D1F8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D204 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D210 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D21C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D228 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D234 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D240 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D24C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D258 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D264 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D270 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D27C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D288 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D294 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D2A0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D2AC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D2B8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D2C4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D2D0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D2DC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D2E8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D2F4 + voice_directsound 60, 0, gDirectSoundWaveData_55, 255, 216, 0, 165 @ 849D300 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D30C + voice_directsound 60, 0, gDirectSoundWaveData_5, 255, 246, 0, 226 @ 849D318 + voice_keysplit voicegroup004, KeySplitTable2 @ 849D324 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D330 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D33C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D348 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D354 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D360 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D36C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D378 + voice_keysplit voicegroup005, KeySplitTable3 @ 849D384 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D390 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D39C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D3A8 + voice_keysplit voicegroup007, KeySplitTable5 @ 849D3B4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D3C0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D3CC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D3D8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D3E4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D3F0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D3FC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D408 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D414 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D420 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D42C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D438 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D444 + voice_directsound 60, 0, gDirectSoundWaveData_48, 255, 127, 231, 127 @ 849D450 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D45C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D468 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D474 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D480 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D48C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D498 + voice_square_2_alt 2, 0, 1, 7, 0 @ 849D4A4 + voice_programmable_wave_alt gProgrammableWaveData_84A323C, 0, 7, 15, 1 @ 849D4B0 + voice_square_1_alt 0, 2, 0, 1, 7, 0 @ 849D4BC + voice_square_2_alt 2, 0, 2, 0, 0 @ 849D4C8 + voice_square_2_alt 3, 0, 1, 7, 0 @ 849D4D4 + voice_square_1_alt 0, 3, 0, 1, 7, 0 @ 849D4E0 + voice_square_1_alt 0, 2, 0, 2, 0, 0 @ 849D4EC + voice_square_1_alt 0, 3, 0, 0, 7, 0 @ 849D4F8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D504 + voice_programmable_wave_alt gProgrammableWaveData_84A323C, 0, 7, 15, 0 @ 849D510 + voice_programmable_wave_alt gProgrammableWaveData_84A324C, 0, 7, 15, 1 @ 849D51C + +voicegroup172:: @ 849D528 + voice_keysplit_all voicegroup002 @ 849D528 + voice_keysplit voicegroup003, KeySplitTable1 @ 849D534 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D540 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D54C + voice_directsound 60, 0, gDirectSoundWaveData_86, 255, 188, 128, 226 @ 849D558 + voice_directsound 60, 65, gDirectSoundWaveData_87, 255, 204, 77, 246 @ 849D564 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D570 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D57C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D588 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D594 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D5A0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D5AC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D5B8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D5C4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D5D0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D5DC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D5E8 + voice_directsound 60, 0, gDirectSoundWaveData_1, 255, 76, 133, 137 @ 849D5F4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D600 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D60C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D618 + voice_directsound 60, 0, gDirectSoundWaveData_74, 64, 188, 108, 165 @ 849D624 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D630 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D63C + voice_directsound 60, 0, gDirectSoundWaveData_78, 255, 249, 25, 127 @ 849D648 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D654 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D660 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D66C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D678 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D684 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D690 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D69C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D6A8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D6B4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D6C0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D6CC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D6D8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D6E4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D6F0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D6FC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D708 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D714 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D720 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D72C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D738 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D744 + voice_directsound 60, 0, gDirectSoundWaveData_70, 255, 246, 0, 235 @ 849D750 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D75C + voice_keysplit voicegroup004, KeySplitTable2 @ 849D768 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D774 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D780 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D78C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D798 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D7A4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D7B0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D7BC + voice_keysplit voicegroup005, KeySplitTable3 @ 849D7C8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D7D4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D7E0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D7EC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D7F8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D804 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D810 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D81C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D828 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D834 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D840 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D84C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D858 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D864 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D870 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D87C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D888 + voice_directsound 60, 0, gDirectSoundWaveData_48, 255, 127, 231, 127 @ 849D894 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D8A0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D8AC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D8B8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D8C4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D8D0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D8DC + voice_square_1_alt 0, 1, 0, 2, 5, 2 @ 849D8E8 + voice_square_2_alt 3, 0, 2, 6, 3 @ 849D8F4 + voice_square_2_alt 0, 0, 2, 6, 5 @ 849D900 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D90C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D918 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D924 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D930 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D93C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D948 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D954 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D960 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D96C + voice_programmable_wave_alt gProgrammableWaveData_84A326C, 0, 0, 12, 0 @ 849D978 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D984 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D990 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D99C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D9A8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D9B4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D9C0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D9CC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D9D8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D9E4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D9F0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849D9FC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849DA08 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849DA14 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849DA20 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849DA2C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849DA38 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849DA44 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849DA50 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849DA5C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849DA68 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849DA74 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849DA80 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849DA8C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849DA98 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849DAA4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849DAB0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849DABC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849DAC8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849DAD4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849DAE0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849DAEC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849DAF8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849DB04 + voice_noise_alt 0, 0, 2, 6, 0 @ 849DB10 + voice_noise_alt 0, 0, 1, 6, 0 @ 849DB1C + +voicegroup173:: @ 849DB28 + voice_keysplit_all voicegroup002 @ 849DB28 + voice_keysplit voicegroup003, KeySplitTable1 @ 849DB34 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849DB40 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849DB4C + voice_directsound 60, 0, gDirectSoundWaveData_86, 255, 188, 128, 226 @ 849DB58 + voice_directsound 60, 65, gDirectSoundWaveData_87, 128, 204, 77, 246 @ 849DB64 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849DB70 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849DB7C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849DB88 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849DB94 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849DBA0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849DBAC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849DBB8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849DBC4 + voice_directsound 60, 0, gDirectSoundWaveData_66, 255, 165, 90, 216 @ 849DBD0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849DBDC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849DBE8 + voice_directsound 60, 0, gDirectSoundWaveData_1, 51, 0, 203, 127 @ 849DBF4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849DC00 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849DC0C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849DC18 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849DC24 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849DC30 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849DC3C + voice_directsound 60, 0, gDirectSoundWaveData_78, 128, 249, 25, 127 @ 849DC48 + voice_directsound 60, 0, gDirectSoundWaveData_78, 64, 216, 51, 224 @ 849DC54 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849DC60 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849DC6C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849DC78 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849DC84 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849DC90 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849DC9C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849DCA8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849DCB4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849DCC0 + voice_directsound 60, 0, gDirectSoundWaveData_2, 255, 253, 0, 188 @ 849DCCC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849DCD8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849DCE4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849DCF0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849DCFC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849DD08 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849DD14 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849DD20 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849DD2C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849DD38 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849DD44 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849DD50 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849DD5C + voice_keysplit voicegroup004, KeySplitTable2 @ 849DD68 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849DD74 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849DD80 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849DD8C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849DD98 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849DDA4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849DDB0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849DDBC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849DDC8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849DDD4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849DDE0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849DDEC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849DDF8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849DE04 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849DE10 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849DE1C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849DE28 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849DE34 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849DE40 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849DE4C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849DE58 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849DE64 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849DE70 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849DE7C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849DE88 + voice_directsound 60, 0, gDirectSoundWaveData_48, 255, 127, 231, 127 @ 849DE94 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849DEA0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849DEAC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849DEB8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849DEC4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849DED0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849DEDC + voice_square_1_alt 0, 1, 0, 2, 3, 4 @ 849DEE8 + voice_square_2_alt 3, 0, 3, 3, 2 @ 849DEF4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849DF00 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849DF0C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849DF18 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849DF24 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849DF30 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849DF3C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849DF48 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849DF54 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849DF60 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849DF6C + voice_programmable_wave_alt gProgrammableWaveData_84A322C, 0, 7, 15, 0 @ 849DF78 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849DF84 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849DF90 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849DF9C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849DFA8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849DFB4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849DFC0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849DFCC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849DFD8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849DFE4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849DFF0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849DFFC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E008 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E014 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E020 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E02C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E038 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E044 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E050 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E05C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E068 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E074 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E080 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E08C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E098 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E0A4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E0B0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E0BC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E0C8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E0D4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E0E0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E0EC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E0F8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E104 + voice_noise_alt 0, 0, 2, 6, 0 @ 849E110 + voice_noise_alt 0, 0, 1, 3, 2 @ 849E11C + +voicegroup174:: @ 849E128 + voice_keysplit_all voicegroup002 @ 849E128 + voice_keysplit voicegroup003, KeySplitTable1 @ 849E134 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E140 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E14C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E158 + voice_directsound 60, 0, gDirectSoundWaveData_86, 255, 249, 0, 165 @ 849E164 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E170 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E17C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E188 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E194 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E1A0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E1AC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E1B8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E1C4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E1D0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E1DC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E1E8 + voice_directsound 60, 0, gDirectSoundWaveData_1, 255, 0, 255, 127 @ 849E1F4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E200 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E20C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E218 + voice_directsound 60, 0, gDirectSoundWaveData_74, 255, 0, 255, 165 @ 849E224 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E230 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E23C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E248 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E254 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E260 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E26C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E278 + voice_directsound 60, 0, gDirectSoundWaveData_82, 128, 0, 255, 214 @ 849E284 + voice_directsound 60, 0, gDirectSoundWaveData_83, 128, 0, 255, 206 @ 849E290 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E29C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E2A8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E2B4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E2C0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E2CC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E2D8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E2E4 + voice_directsound 60, 0, gDirectSoundWaveData_4, 255, 252, 0, 165 @ 849E2F0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E2FC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E308 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E314 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E320 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E32C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E338 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E344 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E350 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E35C + voice_keysplit voicegroup004, KeySplitTable2 @ 849E368 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E374 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E380 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E38C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E398 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E3A4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E3B0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E3BC + voice_keysplit voicegroup005, KeySplitTable3 @ 849E3C8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E3D4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E3E0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E3EC + voice_keysplit voicegroup007, KeySplitTable5 @ 849E3F8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E404 + voice_directsound 60, 0, gDirectSoundWaveData_84, 255, 0, 255, 209 @ 849E410 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E41C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E428 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E434 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E440 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E44C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E458 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E464 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E470 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E47C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E488 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E494 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E4A0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E4AC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E4B8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E4C4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E4D0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E4DC + voice_square_1_alt 0, 3, 0, 2, 3, 4 @ 849E4E8 + voice_square_2_alt 3, 0, 2, 3, 4 @ 849E4F4 + voice_square_1_alt 0, 3, 0, 2, 3, 4 @ 849E500 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E50C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E518 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E524 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E530 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E53C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E548 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E554 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E560 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E56C + voice_programmable_wave_alt gProgrammableWaveData_84A31FC, 0, 7, 15, 0 @ 849E578 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E584 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E590 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E59C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E5A8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E5B4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E5C0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E5CC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E5D8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E5E4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E5F0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E5FC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E608 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E614 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E620 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E62C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E638 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E644 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E650 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E65C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E668 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E674 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E680 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E68C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E698 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E6A4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E6B0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E6BC + voice_directsound 60, 0, gDirectSoundWaveData_79, 255, 0, 255, 165 @ 849E6C8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E6D4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E6E0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E6EC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E6F8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E704 + voice_noise_alt 0, 0, 2, 6, 0 @ 849E710 + voice_noise_alt 0, 0, 1, 3, 1 @ 849E71C + voice_keysplit_all voicegroup177 @ 849E728 + voice_square_1_alt 0, 2, 0, 2, 9, 1 @ 849E734 + voice_square_2_alt 2, 0, 2, 9, 1 @ 849E740 + voice_programmable_wave_alt gProgrammableWaveData_84A322C, 0, 7, 15, 0 @ 849E74C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E758 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E764 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E770 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E77C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E788 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E794 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E7A0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E7AC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E7B8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E7C4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E7D0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E7DC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E7E8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E7F4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E800 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E80C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E818 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E824 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E830 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E83C + voice_directsound 60, 0, gDirectSoundWaveData_78, 255, 165, 154, 127 @ 849E848 + voice_keysplit_all voicegroup002 @ 849E854 + voice_square_1_alt 0, 2, 0, 2, 3, 1 @ 849E860 + voice_square_2_alt 2, 0, 2, 3, 1 @ 849E86C + voice_programmable_wave_alt gProgrammableWaveData_84A322C, 0, 7, 15, 0 @ 849E878 + +voicegroup175:: @ 849E884 + voice_keysplit_all voicegroup177 @ 849E884 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E890 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E89C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E8A8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E8B4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E8C0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E8CC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E8D8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E8E4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E8F0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E8FC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E908 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E914 + voice_directsound 60, 0, gDirectSoundWaveData_71, 255, 235, 0, 204 @ 849E920 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E92C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E938 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E944 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E950 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E95C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E968 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E974 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E980 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E98C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E998 + voice_directsound 60, 0, gDirectSoundWaveData_78, 85, 165, 154, 127 @ 849E9A4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E9B0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E9BC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E9C8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E9D4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E9E0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E9EC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849E9F8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849EA04 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849EA10 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849EA1C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849EA28 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849EA34 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849EA40 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849EA4C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849EA58 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849EA64 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849EA70 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849EA7C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849EA88 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849EA94 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849EAA0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849EAAC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849EAB8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849EAC4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849EAD0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849EADC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849EAE8 + +voicegroup176:: @ 849EAF4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849EAF4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849EB00 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849EB0C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849EB18 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849EB24 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849EB30 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849EB3C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849EB48 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849EB54 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849EB60 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849EB6C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849EB78 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849EB84 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849EB90 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849EB9C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849EBA8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849EBB4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849EBC0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849EBCC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849EBD8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849EBE4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849EBF0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849EBFC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849EC08 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849EC14 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849EC20 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849EC2C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849EC38 + voice_square_1_alt 0, 2, 0, 2, 7, 1 @ 849EC44 + voice_square_2_alt 2, 0, 2, 9, 1 @ 849EC50 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849EC5C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849EC68 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849EC74 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849EC80 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849EC8C + voice_programmable_wave_alt gProgrammableWaveData_84A31EC, 0, 7, 15, 0 @ 849EC98 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849ECA4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849ECB0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849ECBC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849ECC8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849ECD4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849ECE0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849ECEC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849ECF8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849ED04 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849ED10 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849ED1C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849ED28 + +voicegroup177:: @ 849ED34 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849ED34 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849ED40 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849ED4C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849ED58 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849ED64 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849ED70 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849ED7C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849ED88 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849ED94 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849EDA0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849EDAC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849EDB8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849EDC4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849EDD0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849EDDC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849EDE8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849EDF4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849EE00 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849EE0C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849EE18 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849EE24 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849EE30 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849EE3C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849EE48 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849EE54 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849EE60 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849EE6C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849EE78 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849EE84 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849EE90 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849EE9C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849EEA8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849EEB4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849EEC0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849EECC + voice_directsound_no_resample 64, 64, gDirectSoundWaveData_30, 255, 0, 255, 0 @ 849EED8 + voice_directsound_no_resample 64, 64, gDirectSoundWaveData_23, 255, 0, 255, 0 @ 849EEE4 + voice_directsound_no_resample 67, 71, gDirectSoundWaveData_24, 255, 180, 175, 228 @ 849EEF0 + voice_directsound_no_resample 64, 64, gDirectSoundWaveData_24, 255, 0, 255, 242 @ 849EEFC + voice_directsound_no_resample 65, 0, gDirectSoundWaveData_16, 255, 255, 255, 127 @ 849EF08 + voice_directsound_no_resample 64, 64, gDirectSoundWaveData_17, 255, 0, 255, 242 @ 849EF14 + voice_directsound 64, 24, gDirectSoundWaveData_25, 255, 0, 255, 226 @ 849EF20 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849EF2C + voice_directsound 68, 29, gDirectSoundWaveData_25, 255, 0, 255, 226 @ 849EF38 + voice_directsound_no_resample 60, 64, gDirectSoundWaveData_15, 255, 0, 255, 242 @ 849EF44 + voice_directsound 72, 64, gDirectSoundWaveData_25, 255, 0, 255, 226 @ 849EF50 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849EF5C + voice_directsound 76, 39, gDirectSoundWaveData_25, 255, 0, 255, 226 @ 849EF68 + voice_directsound 80, 89, gDirectSoundWaveData_25, 255, 0, 255, 226 @ 849EF74 + voice_directsound_no_resample 33, 10, gDirectSoundWaveData_20, 255, 235, 0, 231 @ 849EF80 + voice_directsound 84, 104, gDirectSoundWaveData_25, 255, 0, 255, 235 @ 849EF8C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849EF98 + voice_directsound 63, 64, gDirectSoundWaveData_20, 255, 235, 0, 231 @ 849EFA4 + voice_directsound_no_resample 64, 64, gDirectSoundWaveData_26, 255, 165, 103, 231 @ 849EFB0 + voice_directsound_no_resample 64, 64, gDirectSoundWaveData_18, 255, 127, 77, 204 @ 849EFBC + voice_directsound_no_resample 64, 64, gDirectSoundWaveData_19, 255, 231, 0, 188 @ 849EFC8 + voice_directsound_no_resample 64, 64, gDirectSoundWaveData_27, 255, 0, 255, 242 @ 849EFD4 + voice_directsound_no_resample 64, 118, gDirectSoundWaveData_20, 255, 235, 0, 231 @ 849EFE0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849EFEC + voice_directsound_no_resample 64, 64, gDirectSoundWaveData_20, 255, 235, 0, 231 @ 849EFF8 + voice_directsound_no_resample 64, 64, gDirectSoundWaveData_20, 8, 0, 255, 216 @ 849F004 + voice_directsound_no_resample 64, 64, gDirectSoundWaveData_28, 255, 0, 255, 0 @ 849F010 + voice_directsound_no_resample 64, 64, gDirectSoundWaveData_21, 255, 0, 255, 0 @ 849F01C + voice_directsound_no_resample 64, 64, gDirectSoundWaveData_22, 255, 0, 255, 0 @ 849F028 + voice_directsound_no_resample 64, 64, gDirectSoundWaveData_22, 255, 0, 255, 0 @ 849F034 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F040 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F04C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F058 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F064 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F070 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F07C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F088 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F094 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F0A0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F0AC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F0B8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F0C4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F0D0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F0DC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F0E8 + voice_directsound_no_resample 64, 64, gDirectSoundWaveData_29, 255, 242, 103, 188 @ 849F0F4 + voice_directsound_no_resample 64, 64, gDirectSoundWaveData_29, 255, 242, 103, 188 @ 849F100 + voice_directsound_no_resample 64, 64, gDirectSoundWaveData_29, 255, 165, 103, 188 @ 849F10C + voice_directsound_no_resample 64, 64, gDirectSoundWaveData_30, 255, 0, 255, 0 @ 849F118 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F124 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F130 + voice_directsound_no_resample 64, 64, gDirectSoundWaveData_31, 255, 0, 255, 0 @ 849F13C + voice_directsound 63, 64, gDirectSoundWaveData_32, 255, 0, 255, 0 @ 849F148 + voice_directsound 50, 64, gDirectSoundWaveData_33, 255, 0, 255, 0 @ 849F154 + voice_directsound 64, 64, gDirectSoundWaveData_33, 255, 0, 255, 0 @ 849F160 + +voicegroup178:: @ 849F16C + voice_keysplit_all voicegroup177 @ 849F16C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F178 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F184 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F190 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F19C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F1A8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F1B4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F1C0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F1CC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F1D8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F1E4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F1F0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F1FC + voice_directsound 60, 0, gDirectSoundWaveData_71, 255, 204, 103, 165 @ 849F208 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F214 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F220 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F22C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F238 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F244 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F250 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F25C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F268 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F274 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F280 + voice_directsound 60, 0, gDirectSoundWaveData_78, 255, 165, 154, 165 @ 849F28C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F298 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F2A4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F2B0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F2BC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F2C8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F2D4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F2E0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F2EC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F2F8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F304 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F310 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F31C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F328 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F334 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F340 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F34C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F358 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F364 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F370 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F37C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F388 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F394 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F3A0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F3AC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F3B8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F3C4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F3D0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F3DC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F3E8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F3F4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F400 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F40C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F418 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F424 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F430 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F43C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F448 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F454 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F460 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F46C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F478 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F484 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F490 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F49C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F4A8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F4B4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F4C0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F4CC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F4D8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F4E4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F4F0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F4FC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F508 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F514 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F520 + voice_square_1_alt 0, 2, 0, 2, 7, 1 @ 849F52C + voice_square_2_alt 2, 0, 2, 7, 1 @ 849F538 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F544 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F550 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F55C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F568 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F574 + voice_programmable_wave_alt gProgrammableWaveData_84A322C, 0, 0, 15, 1 @ 849F580 + +voicegroup179:: @ 849F58C + voice_keysplit_all voicegroup177 @ 849F58C + voice_keysplit_all voicegroup176 @ 849F598 + voice_keysplit voicegroup003, KeySplitTable1 @ 849F5A4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F5B0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F5BC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F5C8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F5D4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F5E0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F5EC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F5F8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F604 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F610 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F61C + voice_directsound 60, 0, gDirectSoundWaveData_71, 255, 235, 0, 204 @ 849F628 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F634 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F640 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F64C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F658 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F664 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F670 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F67C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F688 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F694 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F6A0 + voice_directsound 60, 0, gDirectSoundWaveData_78, 85, 165, 154, 127 @ 849F6AC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F6B8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F6C4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F6D0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F6DC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F6E8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F6F4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F700 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F70C + voice_directsound 60, 0, gDirectSoundWaveData_49, 255, 253, 0, 149 @ 849F718 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F724 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F730 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F73C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F748 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F754 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F760 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F76C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F778 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F784 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F790 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F79C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F7A8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F7B4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F7C0 + voice_keysplit voicegroup004, KeySplitTable2 @ 849F7CC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F7D8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F7E4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F7F0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F7FC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F808 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F814 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F820 + voice_keysplit voicegroup005, KeySplitTable3 @ 849F82C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F838 + voice_keysplit voicegroup006, KeySplitTable4 @ 849F844 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F850 + voice_keysplit voicegroup007, KeySplitTable5 @ 849F85C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F868 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F874 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F880 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F88C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F898 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F8A4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F8B0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F8BC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F8C8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F8D4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F8E0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F8EC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F8F8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F904 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F910 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F91C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F928 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F934 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F940 + voice_square_1_alt 0, 3, 0, 0, 10, 0 @ 849F94C + voice_square_2_alt 0, 0, 1, 9, 0 @ 849F958 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F964 + voice_square_2_alt 3, 0, 1, 9, 0 @ 849F970 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F97C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F988 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F994 + voice_programmable_wave_alt gProgrammableWaveData_84A31EC, 0, 7, 15, 0 @ 849F9A0 + +voicegroup180:: @ 849F9AC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F9AC + voice_keysplit voicegroup003, KeySplitTable1 @ 849F9B8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F9C4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F9D0 + voice_directsound 60, 0, gDirectSoundWaveData_86, 64, 249, 0, 188 @ 849F9DC + voice_directsound 60, 0, gDirectSoundWaveData_86, 255, 249, 0, 165 @ 849F9E8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849F9F4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849FA00 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849FA0C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849FA18 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849FA24 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849FA30 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849FA3C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849FA48 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849FA54 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849FA60 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849FA6C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849FA78 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849FA84 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849FA90 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849FA9C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849FAA8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849FAB4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849FAC0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849FACC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849FAD8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849FAE4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849FAF0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849FAFC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849FB08 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849FB14 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849FB20 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849FB2C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849FB38 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849FB44 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849FB50 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849FB5C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849FB68 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849FB74 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849FB80 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849FB8C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849FB98 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849FBA4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849FBB0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849FBBC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849FBC8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849FBD4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849FBE0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849FBEC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849FBF8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849FC04 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849FC10 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849FC1C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849FC28 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849FC34 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849FC40 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849FC4C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849FC58 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849FC64 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849FC70 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849FC7C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849FC88 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849FC94 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849FCA0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849FCAC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849FCB8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849FCC4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849FCD0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849FCDC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849FCE8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849FCF4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849FD00 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849FD0C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849FD18 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849FD24 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849FD30 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849FD3C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849FD48 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849FD54 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849FD60 + voice_square_1_alt 0, 2, 0, 2, 3, 1 @ 849FD6C + voice_square_2_alt 2, 0, 2, 3, 1 @ 849FD78 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849FD84 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849FD90 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849FD9C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849FDA8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849FDB4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849FDC0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849FDCC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849FDD8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849FDE4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849FDF0 + voice_programmable_wave_alt gProgrammableWaveData_84A322C, 0, 7, 15, 0 @ 849FDFC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849FE08 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849FE14 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849FE20 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849FE2C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849FE38 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849FE44 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849FE50 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849FE5C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849FE68 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849FE74 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849FE80 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849FE8C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849FE98 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849FEA4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849FEB0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849FEBC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849FEC8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849FED4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849FEE0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849FEEC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849FEF8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849FF04 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849FF10 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849FF1C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849FF28 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849FF34 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849FF40 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849FF4C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849FF58 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849FF64 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849FF70 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849FF7C + voice_square_1 0, 2, 0, 0, 15, 0 @ 849FF88 + voice_directsound_no_resample 60, 0, gDirectSoundWaveData_16, 255, 255, 255, 127 @ 849FF94 + voice_noise_alt 0, 0, 1, 0, 0 @ 849FFA0 + +voicegroup181:: @ 849FFAC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849FFAC + voice_keysplit voicegroup003, KeySplitTable1 @ 849FFB8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849FFC4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849FFD0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849FFDC + voice_square_1 0, 2, 0, 0, 15, 0 @ 849FFE8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 849FFF4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0000 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A000C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0018 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0024 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0030 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A003C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0048 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0054 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0060 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A006C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0078 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0084 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0090 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A009C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A00A8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A00B4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A00C0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A00CC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A00D8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A00E4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A00F0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A00FC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0108 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0114 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0120 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A012C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0138 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0144 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0150 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A015C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0168 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0174 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0180 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A018C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0198 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A01A4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A01B0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A01BC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A01C8 + voice_directsound 60, 0, gDirectSoundWaveData_70, 255, 242, 51, 242 @ 84A01D4 + +voicegroup182:: @ 84A01E0 + voice_keysplit_all voicegroup002 @ 84A01E0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A01EC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A01F8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0204 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0210 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A021C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0228 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0234 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0240 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A024C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0258 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0264 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0270 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A027C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0288 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0294 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A02A0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A02AC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A02B8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A02C4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A02D0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A02DC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A02E8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A02F4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0300 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A030C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0318 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0324 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0330 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A033C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0348 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0354 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0360 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A036C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0378 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0384 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0390 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A039C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A03A8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A03B4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A03C0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A03CC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A03D8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A03E4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A03F0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A03FC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0408 + voice_directsound 60, 0, gDirectSoundWaveData_5, 255, 0, 193, 76 @ 84A0414 + voice_keysplit voicegroup004, KeySplitTable2 @ 84A0420 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A042C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0438 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0444 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0450 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A045C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0468 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0474 + voice_keysplit voicegroup005, KeySplitTable3 @ 84A0480 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A048C + voice_keysplit voicegroup006, KeySplitTable4 @ 84A0498 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A04A4 + voice_keysplit voicegroup007, KeySplitTable5 @ 84A04B0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A04BC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A04C8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A04D4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A04E0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A04EC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A04F8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0504 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0510 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A051C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0528 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0534 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0540 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A054C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0558 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0564 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0570 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A057C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0588 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0594 + voice_square_1_alt 0, 1, 1, 2, 3, 1 @ 84A05A0 + voice_square_2_alt 1, 0, 2, 6, 2 @ 84A05AC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A05B8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A05C4 + voice_square_1_alt 0, 0, 0, 2, 3, 1 @ 84A05D0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A05DC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A05E8 + voice_programmable_wave_alt gProgrammableWaveData_84A322C, 0, 7, 15, 0 @ 84A05F4 + +voicegroup183:: @ 84A0600 + voice_keysplit_all voicegroup002 @ 84A0600 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A060C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0618 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0624 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0630 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A063C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0648 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0654 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0660 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A066C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0678 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0684 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0690 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A069C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A06A8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A06B4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A06C0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A06CC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A06D8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A06E4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A06F0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A06FC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0708 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0714 + voice_directsound 60, 0, gDirectSoundWaveData_78, 128, 249, 25, 127 @ 84A0720 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A072C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0738 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0744 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0750 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A075C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0768 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0774 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0780 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A078C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0798 + voice_directsound 60, 0, gDirectSoundWaveData_2, 255, 253, 0, 188 @ 84A07A4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A07B0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A07BC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A07C8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A07D4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A07E0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A07EC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A07F8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0804 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0810 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A081C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0828 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0834 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0840 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A084C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0858 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0864 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0870 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A087C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0888 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0894 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A08A0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A08AC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A08B8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A08C4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A08D0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A08DC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A08E8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A08F4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0900 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A090C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0918 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0924 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0930 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A093C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0948 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0954 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0960 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A096C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0978 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0984 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0990 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A099C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A09A8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A09B4 + voice_square_1_alt 0, 2, 0, 2, 4, 1 @ 84A09C0 + voice_square_2_alt 2, 0, 2, 4, 1 @ 84A09CC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A09D8 + voice_programmable_wave_alt gProgrammableWaveData_84A322C, 0, 7, 15, 0 @ 84A09E4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A09F0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A09FC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0A08 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0A14 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0A20 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0A2C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0A38 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0A44 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0A50 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0A5C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0A68 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0A74 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0A80 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0A8C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0A98 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0AA4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0AB0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0ABC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0AC8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0AD4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0AE0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0AEC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0AF8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0B04 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0B10 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0B1C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0B28 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0B34 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0B40 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0B4C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0B58 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0B64 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0B70 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0B7C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0B88 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0B94 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0BA0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0BAC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0BB8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0BC4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0BD0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0BDC + voice_noise_alt 0, 0, 2, 6, 0 @ 84A0BE8 + voice_noise_alt 0, 0, 1, 3, 1 @ 84A0BF4 + +voicegroup184:: @ 84A0C00 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0C00 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0C0C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0C18 + voice_programmable_wave_alt gProgrammableWaveData_84A322C, 0, 7, 15, 0 @ 84A0C24 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0C30 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0C3C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0C48 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0C54 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0C60 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0C6C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0C78 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0C84 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0C90 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0C9C + voice_directsound 60, 0, gDirectSoundWaveData_66, 255, 165, 90, 216 @ 84A0CA8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0CB4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0CC0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0CCC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0CD8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0CE4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0CF0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0CFC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0D08 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0D14 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0D20 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0D2C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0D38 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0D44 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0D50 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0D5C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0D68 + voice_directsound 60, 0, gDirectSoundWaveData_79, 255, 0, 255, 165 @ 84A0D74 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0D80 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0D8C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0D98 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0DA4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0DB0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0DBC + voice_directsound 60, 0, gDirectSoundWaveData_4, 255, 252, 0, 115 @ 84A0DC8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0DD4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0DE0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0DEC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0DF8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0E04 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0E10 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0E1C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0E28 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0E34 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0E40 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0E4C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0E58 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0E64 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0E70 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0E7C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0E88 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0E94 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0EA0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0EAC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0EB8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0EC4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0ED0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0EDC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0EE8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0EF4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0F00 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0F0C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0F18 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0F24 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0F30 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0F3C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0F48 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0F54 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0F60 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0F6C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0F78 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0F84 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0F90 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0F9C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0FA8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0FB4 + voice_square_2_alt 3, 0, 0, 15, 0 @ 84A0FC0 + voice_square_1_alt 0, 2, 0, 0, 15, 0 @ 84A0FCC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0FD8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0FE4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A0FF0 + voice_directsound 60, 0, gDirectSoundWaveData_6, 255, 0, 255, 0 @ 84A0FFC + +voicegroup185:: @ 84A1008 + voice_keysplit_all voicegroup002 @ 84A1008 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1014 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1020 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A102C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1038 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1044 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1050 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A105C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1068 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1074 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1080 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A108C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1098 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A10A4 + voice_directsound 60, 0, gDirectSoundWaveData_66, 255, 165, 90, 216 @ 84A10B0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A10BC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A10C8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A10D4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A10E0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A10EC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A10F8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1104 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1110 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A111C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1128 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1134 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1140 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A114C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1158 + voice_directsound 60, 0, gDirectSoundWaveData_82, 128, 0, 255, 214 @ 84A1164 + voice_directsound 60, 0, gDirectSoundWaveData_83, 128, 0, 255, 206 @ 84A1170 + voice_directsound 60, 0, gDirectSoundWaveData_79, 255, 0, 255, 165 @ 84A117C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1188 + voice_directsound 60, 0, gDirectSoundWaveData_49, 255, 253, 0, 149 @ 84A1194 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A11A0 + voice_directsound 60, 0, gDirectSoundWaveData_2, 255, 253, 0, 188 @ 84A11AC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A11B8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A11C4 + voice_directsound 60, 0, gDirectSoundWaveData_4, 255, 252, 0, 115 @ 84A11D0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A11DC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A11E8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A11F4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1200 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A120C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1218 + voice_directsound 60, 0, gDirectSoundWaveData_55, 255, 216, 0, 165 @ 84A1224 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1230 + voice_directsound 60, 0, gDirectSoundWaveData_5, 255, 246, 0, 226 @ 84A123C + voice_keysplit voicegroup004, KeySplitTable2 @ 84A1248 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1254 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1260 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A126C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1278 + voice_directsound 60, 0, gDirectSoundWaveData_6, 85, 0, 154, 165 @ 84A1284 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1290 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A129C + voice_keysplit voicegroup005, KeySplitTable3 @ 84A12A8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A12B4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A12C0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A12CC + voice_keysplit voicegroup007, KeySplitTable5 @ 84A12D8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A12E4 + voice_directsound 60, 0, gDirectSoundWaveData_84, 255, 0, 255, 209 @ 84A12F0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A12FC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1308 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1314 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1320 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A132C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1338 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1344 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1350 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A135C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1368 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1374 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1380 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A138C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1398 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A13A4 + voice_directsound 60, 0, gDirectSoundWaveData_85, 255, 0, 255, 127 @ 84A13B0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A13BC + voice_square_2_alt 2, 0, 0, 15, 0 @ 84A13C8 + voice_square_1_alt 0, 2, 0, 0, 15, 0 @ 84A13D4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A13E0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A13EC + voice_programmable_wave_alt gProgrammableWaveData_84A328C, 0, 7, 15, 0 @ 84A13F8 + voice_programmable_wave_alt gProgrammableWaveData_84A327C, 0, 7, 15, 0 @ 84A1404 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1410 + voice_programmable_wave_alt gProgrammableWaveData_84A322C, 0, 7, 15, 0 @ 84A141C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1428 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1434 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1440 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A144C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1458 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1464 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1470 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A147C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1488 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1494 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A14A0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A14AC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A14B8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A14C4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A14D0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A14DC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A14E8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A14F4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1500 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A150C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1518 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1524 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1530 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A153C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1548 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1554 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1560 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A156C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1578 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1584 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1590 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A159C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A15A8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A15B4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A15C0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A15CC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A15D8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A15E4 + voice_noise_alt 0, 0, 2, 6, 0 @ 84A15F0 + voice_noise_alt 0, 0, 1, 6, 1 @ 84A15FC + +voicegroup186:: @ 84A1608 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1608 + voice_keysplit voicegroup003, KeySplitTable1 @ 84A1614 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1620 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A162C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1638 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1644 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1650 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A165C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1668 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1674 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1680 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A168C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1698 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A16A4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A16B0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A16BC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A16C8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A16D4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A16E0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A16EC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A16F8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1704 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1710 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A171C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1728 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1734 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1740 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A174C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1758 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1764 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1770 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A177C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1788 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1794 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A17A0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A17AC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A17B8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A17C4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A17D0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A17DC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A17E8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A17F4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1800 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A180C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1818 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1824 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1830 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A183C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1848 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1854 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1860 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A186C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1878 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1884 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1890 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A189C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A18A8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A18B4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A18C0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A18CC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A18D8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A18E4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A18F0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A18FC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1908 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1914 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1920 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A192C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1938 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1944 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1950 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A195C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1968 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1974 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1980 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A198C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1998 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A19A4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A19B0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A19BC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A19C8 + voice_square_2_alt 3, 0, 0, 15, 0 @ 84A19D4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A19E0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A19EC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A19F8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1A04 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1A10 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1A1C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1A28 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1A34 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1A40 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1A4C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1A58 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1A64 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1A70 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1A7C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1A88 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1A94 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1AA0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1AAC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1AB8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1AC4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1AD0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1ADC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1AE8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1AF4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1B00 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1B0C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1B18 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1B24 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1B30 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1B3C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1B48 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1B54 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1B60 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1B6C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1B78 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1B84 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1B90 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1B9C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1BA8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1BB4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1BC0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1BCC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1BD8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1BE4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1BF0 + voice_noise_alt 0, 0, 2, 6, 0 @ 84A1BFC + +voicegroup187:: @ 84A1C08 + voice_keysplit_all voicegroup002 @ 84A1C08 + voice_keysplit voicegroup003, KeySplitTable1 @ 84A1C14 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1C20 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1C2C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1C38 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1C44 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1C50 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1C5C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1C68 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1C74 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1C80 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1C8C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1C98 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1CA4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1CB0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1CBC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1CC8 + voice_directsound 60, 0, gDirectSoundWaveData_1, 255, 76, 133, 137 @ 84A1CD4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1CE0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1CEC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1CF8 + voice_directsound 60, 0, gDirectSoundWaveData_74, 64, 188, 108, 165 @ 84A1D04 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1D10 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1D1C + voice_directsound 60, 0, gDirectSoundWaveData_78, 255, 249, 25, 127 @ 84A1D28 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1D34 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1D40 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1D4C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1D58 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1D64 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1D70 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1D7C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1D88 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1D94 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1DA0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1DAC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1DB8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1DC4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1DD0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1DDC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1DE8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1DF4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1E00 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1E0C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1E18 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1E24 + voice_directsound 60, 0, gDirectSoundWaveData_70, 255, 246, 0, 235 @ 84A1E30 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1E3C + voice_keysplit voicegroup004, KeySplitTable2 @ 84A1E48 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1E54 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1E60 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1E6C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1E78 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1E84 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1E90 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1E9C + voice_keysplit voicegroup005, KeySplitTable3 @ 84A1EA8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1EB4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1EC0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1ECC + voice_keysplit voicegroup007, KeySplitTable5 @ 84A1ED8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1EE4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1EF0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1EFC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1F08 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1F14 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1F20 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1F2C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1F38 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1F44 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1F50 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1F5C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1F68 + voice_directsound 60, 0, gDirectSoundWaveData_48, 255, 127, 231, 127 @ 84A1F74 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1F80 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1F8C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1F98 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1FA4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1FB0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1FBC + voice_square_1_alt 0, 0, 0, 2, 5, 2 @ 84A1FC8 + voice_square_2_alt 1, 0, 1, 7, 1 @ 84A1FD4 + voice_square_2_alt 0, 0, 2, 6, 5 @ 84A1FE0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1FEC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A1FF8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2004 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2010 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A201C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2028 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2034 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2040 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A204C + voice_programmable_wave_alt gProgrammableWaveData_84A31EC, 0, 0, 12, 0 @ 84A2058 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2064 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2070 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A207C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2088 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2094 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A20A0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A20AC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A20B8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A20C4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A20D0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A20DC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A20E8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A20F4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2100 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A210C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2118 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2124 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2130 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A213C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2148 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2154 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2160 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A216C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2178 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2184 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2190 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A219C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A21A8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A21B4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A21C0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A21CC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A21D8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A21E4 + voice_noise_alt 0, 0, 2, 6, 0 @ 84A21F0 + voice_noise_alt 0, 0, 1, 6, 1 @ 84A21FC + +voicegroup188:: @ 84A2208 + voice_keysplit_all voicegroup002 @ 84A2208 + voice_keysplit voicegroup003, KeySplitTable1 @ 84A2214 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2220 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A222C + voice_directsound 60, 0, gDirectSoundWaveData_86, 255, 188, 128, 226 @ 84A2238 + voice_directsound 60, 65, gDirectSoundWaveData_87, 128, 204, 77, 246 @ 84A2244 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2250 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A225C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2268 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2274 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2280 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A228C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2298 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A22A4 + voice_directsound 60, 0, gDirectSoundWaveData_66, 255, 165, 90, 216 @ 84A22B0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A22BC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A22C8 + voice_directsound 60, 0, gDirectSoundWaveData_1, 51, 0, 203, 127 @ 84A22D4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A22E0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A22EC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A22F8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2304 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2310 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A231C + voice_directsound 60, 0, gDirectSoundWaveData_78, 128, 249, 25, 127 @ 84A2328 + voice_directsound 60, 0, gDirectSoundWaveData_78, 64, 216, 51, 224 @ 84A2334 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2340 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A234C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2358 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2364 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2370 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A237C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2388 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2394 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A23A0 + voice_directsound 60, 0, gDirectSoundWaveData_2, 255, 253, 0, 188 @ 84A23AC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A23B8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A23C4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A23D0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A23DC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A23E8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A23F4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2400 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A240C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2418 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2424 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2430 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A243C + voice_keysplit voicegroup004, KeySplitTable2 @ 84A2448 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2454 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2460 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A246C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2478 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2484 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2490 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A249C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A24A8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A24B4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A24C0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A24CC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A24D8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A24E4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A24F0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A24FC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2508 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2514 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2520 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A252C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2538 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2544 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2550 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A255C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2568 + voice_directsound 60, 0, gDirectSoundWaveData_48, 255, 127, 231, 127 @ 84A2574 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2580 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A258C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2598 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A25A4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A25B0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A25BC + voice_square_1_alt 0, 1, 0, 2, 6, 1 @ 84A25C8 + voice_square_2_alt 3, 0, 3, 3, 2 @ 84A25D4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A25E0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A25EC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A25F8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2604 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2610 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A261C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2628 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2634 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2640 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A264C + voice_programmable_wave_alt gProgrammableWaveData_84A31EC, 0, 7, 15, 2 @ 84A2658 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2664 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2670 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A267C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2688 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2694 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A26A0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A26AC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A26B8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A26C4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A26D0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A26DC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A26E8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A26F4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2700 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A270C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2718 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2724 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2730 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A273C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2748 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2754 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2760 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A276C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2778 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2784 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2790 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A279C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A27A8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A27B4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A27C0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A27CC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A27D8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A27E4 + voice_noise_alt 0, 0, 2, 7, 0 @ 84A27F0 + voice_noise_alt 0, 0, 1, 9, 1 @ 84A27FC + +voicegroup189:: @ 84A2808 + voice_keysplit_all voicegroup002 @ 84A2808 + voice_keysplit voicegroup003, KeySplitTable1 @ 84A2814 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2820 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A282C + voice_directsound 60, 0, gDirectSoundWaveData_86, 255, 188, 128, 226 @ 84A2838 + voice_directsound 60, 65, gDirectSoundWaveData_87, 128, 204, 77, 246 @ 84A2844 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2850 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A285C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2868 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2874 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2880 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A288C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2898 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A28A4 + voice_directsound 60, 0, gDirectSoundWaveData_66, 255, 165, 90, 216 @ 84A28B0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A28BC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A28C8 + voice_directsound 60, 0, gDirectSoundWaveData_1, 51, 0, 203, 127 @ 84A28D4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A28E0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A28EC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A28F8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2904 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2910 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A291C + voice_directsound 60, 0, gDirectSoundWaveData_78, 128, 249, 25, 127 @ 84A2928 + voice_directsound 60, 0, gDirectSoundWaveData_78, 64, 216, 51, 224 @ 84A2934 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2940 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A294C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2958 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2964 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2970 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A297C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2988 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2994 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A29A0 + voice_directsound 60, 0, gDirectSoundWaveData_2, 255, 253, 0, 188 @ 84A29AC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A29B8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A29C4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A29D0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A29DC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A29E8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A29F4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2A00 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2A0C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2A18 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2A24 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2A30 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2A3C + voice_keysplit voicegroup004, KeySplitTable2 @ 84A2A48 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2A54 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2A60 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2A6C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2A78 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2A84 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2A90 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2A9C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2AA8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2AB4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2AC0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2ACC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2AD8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2AE4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2AF0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2AFC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2B08 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2B14 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2B20 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2B2C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2B38 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2B44 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2B50 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2B5C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2B68 + voice_directsound 60, 0, gDirectSoundWaveData_48, 255, 127, 231, 127 @ 84A2B74 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2B80 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2B8C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2B98 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2BA4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2BB0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2BBC + voice_square_1_alt 0, 2, 0, 2, 6, 3 @ 84A2BC8 + voice_square_2_alt 3, 0, 2, 7, 2 @ 84A2BD4 + voice_square_1_alt 0, 1, 0, 2, 6, 2 @ 84A2BE0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2BEC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2BF8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2C04 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2C10 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2C1C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2C28 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2C34 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2C40 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2C4C + +voicegroup190:: @ 84A2C58 + voice_programmable_wave_alt gProgrammableWaveData_84A31EC, 0, 7, 15, 2 @ 84A2C58 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2C64 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2C70 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2C7C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2C88 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2C94 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2CA0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2CAC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2CB8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2CC4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2CD0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2CDC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2CE8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2CF4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2D00 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2D0C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2D18 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2D24 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2D30 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2D3C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2D48 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2D54 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2D60 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2D6C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2D78 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2D84 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2D90 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2D9C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2DA8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2DB4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2DC0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2DCC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2DD8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2DE4 + voice_noise_alt 0, 0, 2, 7, 0 @ 84A2DF0 + voice_noise_alt 0, 0, 1, 9, 1 @ 84A2DFC + voice_directsound_no_resample 64, 64, gDirectSoundWaveData_23, 255, 0, 255, 0 @ 84A2E08 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2E14 + voice_directsound_no_resample 64, 52, gDirectSoundWaveData_17, 255, 0, 255, 242 @ 84A2E20 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2E2C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2E38 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2E44 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2E50 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2E5C + voice_directsound_no_resample 60, 64, gDirectSoundWaveData_15, 255, 0, 255, 242 @ 84A2E68 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2E74 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2E80 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2E8C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2E98 + voice_directsound_no_resample 33, 104, gDirectSoundWaveData_20, 255, 235, 0, 231 @ 84A2EA4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2EB0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2EBC + voice_directsound 63, 64, gDirectSoundWaveData_20, 255, 235, 0, 231 @ 84A2EC8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2ED4 + voice_directsound_no_resample 64, 34, gDirectSoundWaveData_18, 255, 127, 77, 204 @ 84A2EE0 + voice_directsound_no_resample 64, 14, gDirectSoundWaveData_19, 255, 231, 0, 188 @ 84A2EEC + voice_directsound_no_resample 64, 89, gDirectSoundWaveData_27, 255, 0, 255, 242 @ 84A2EF8 + voice_directsound_no_resample 64, 24, gDirectSoundWaveData_20, 255, 235, 0, 231 @ 84A2F04 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2F10 + voice_directsound_no_resample 64, 54, gDirectSoundWaveData_20, 255, 235, 0, 231 @ 84A2F1C + voice_directsound_no_resample 64, 54, gDirectSoundWaveData_20, 8, 0, 255, 216 @ 84A2F28 + voice_directsound_no_resample 64, 94, gDirectSoundWaveData_28, 255, 0, 255, 0 @ 84A2F34 + voice_directsound_no_resample 64, 34, gDirectSoundWaveData_21, 255, 0, 255, 0 @ 84A2F40 + voice_directsound_no_resample 64, 34, gDirectSoundWaveData_22, 255, 0, 255, 0 @ 84A2F4C + voice_directsound_no_resample 64, 90, gDirectSoundWaveData_22, 255, 0, 255, 0 @ 84A2F58 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2F64 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2F70 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2F7C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2F88 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2F94 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2FA0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2FAC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2FB8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2FC4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2FD0 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2FDC + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2FE8 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A2FF4 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A3000 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A300C + voice_directsound_no_resample 64, 39, gDirectSoundWaveData_29, 255, 242, 103, 188 @ 84A3018 + voice_directsound_no_resample 64, 79, gDirectSoundWaveData_29, 255, 242, 103, 188 @ 84A3024 + voice_directsound_no_resample 64, 39, gDirectSoundWaveData_29, 255, 165, 103, 188 @ 84A3030 + voice_directsound_no_resample 64, 64, gDirectSoundWaveData_30, 255, 0, 255, 0 @ 84A303C + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A3048 + voice_square_1 0, 2, 0, 0, 15, 0 @ 84A3054 + voice_directsound_no_resample 64, 104, gDirectSoundWaveData_31, 255, 0, 255, 0 @ 84A3060 + voice_directsound 63, 64, gDirectSoundWaveData_32, 255, 0, 255, 0 @ 84A306C diff --git a/src/battle_ai_script_commands.c b/src/battle_ai_script_commands.c index c57825b4f..e66fdb2af 100644 --- a/src/battle_ai_script_commands.c +++ b/src/battle_ai_script_commands.c @@ -1,6 +1,6 @@ #include "global.h" #include "battle.h" -#include "battle_main.h" +#include "battle_anim.h" #include "util.h" #include "item.h" #include "random.h" diff --git a/src/battle_anim_mons.c b/src/battle_anim_mons.c index e871937e7..c19af4cb7 100644 --- a/src/battle_anim_mons.c +++ b/src/battle_anim_mons.c @@ -28,7 +28,7 @@ static u8 GetBattlerSpriteFinal_Y(u8 battlerId, u16 species, bool8 a3); static void sub_8075658(struct Sprite *sprite); static void sub_80757E8(struct Sprite *sprite); static bool8 sub_80758DC(void); -static void sub_8075EF0(struct Sprite *sprite); +static void AnimThrowProjectile_Step(struct Sprite *sprite); static void sub_80760D0(u8 taskId); static void AnimTask_BlendMonInAndOutSetup(struct Task *task); static void AnimTask_BlendMonInAndOutStep(u8 taskId); @@ -1336,7 +1336,7 @@ static u8 GetBattlerAtPosition_(u8 position) return GetBattlerAtPosition(position); } -void sub_8075D9C(struct Sprite *sprite) +void AnimSpriteOnMonPos(struct Sprite *sprite) { bool8 var; @@ -1390,7 +1390,7 @@ void TranslateAnimSpriteToTargetMonLocation(struct Sprite *sprite) StoreSpriteCallbackInData6(sprite, DestroyAnimSprite); } -void sub_8075E80(struct Sprite *sprite) +void AnimThrowProjectile(struct Sprite *sprite) { InitSpritePosToAnimAttacker(sprite, 1); if (GetBattlerSide(gBattleAnimAttacker)) @@ -1400,10 +1400,10 @@ void sub_8075E80(struct Sprite *sprite) sprite->data[4] = GetBattlerSpriteCoord(gBattleAnimTarget, BATTLER_COORD_Y_PIC_OFFSET) + gBattleAnimArgs[3]; sprite->data[5] = gBattleAnimArgs[5]; InitAnimArcTranslation(sprite); - sprite->callback = sub_8075EF0; + sprite->callback = AnimThrowProjectile_Step; } -static void sub_8075EF0(struct Sprite *sprite) +static void AnimThrowProjectile_Step(struct Sprite *sprite) { if (TranslateAnimHorizontalArc(sprite)) DestroyAnimSprite(sprite); diff --git a/src/battle_controller_oak_old_man.c b/src/battle_controller_oak_old_man.c new file mode 100644 index 000000000..99391ab3e --- /dev/null +++ b/src/battle_controller_oak_old_man.c @@ -0,0 +1,2295 @@ +#include "global.h" +#include "task.h" +#include "pokemon.h" +#include "pokeball.h" +#include "party_menu.h" +#include "bg.h" +#include "data.h" +#include "palette.h" +#include "util.h" +#include "m4a.h" +#include "link.h" +#include "sound.h" +#include "item.h" +#include "item_menu.h" +#include "text.h" +#include "strings.h" +#include "string_util.h" +#include "window.h" +#include "battle.h" +#include "battle_anim.h" +#include "battle_controllers.h" +#include "battle_interface.h" +#include "battle_message.h" +#include "reshow_battle_screen.h" +#include "constants/songs.h" +#include "constants/items.h" + +static void OakOldManHandleGetMonData(void); +static void OakOldManHandleGetRawMonData(void); +static void OakOldManHandleSetMonData(void); +static void OakOldManHandleSetRawMonData(void); +static void OakOldManHandleLoadMonSprite(void); +static void OakOldManHandleSwitchInAnim(void); +static void OakOldManHandleReturnMonToBall(void); +static void OakOldManHandleDrawTrainerPic(void); +static void OakOldManHandleTrainerSlide(void); +static void OakOldManHandleTrainerSlideBack(void); +static void OakOldManHandleFaintAnimation(void); +static void OakOldManHandlePaletteFade(void); +static void OakOldManHandleSuccessBallThrowAnim(void); +static void OakOldManHandleBallThrowAnim(void); +static void OakOldManHandlePause(void); +static void OakOldManHandleMoveAnimation(void); +static void OakOldManHandlePrintString(void); +static void OakOldManHandlePrintSelectionString(void); +static void OakOldManHandleChooseAction(void); +static void OakOldManHandleUnknownYesNoBox(void); +static void OakOldManHandleChooseMove(void); +static void OakOldManHandleChooseItem(void); +static void OakOldManHandleChoosePokemon(void); +static void OakOldManHandleCmd23(void); +static void OakOldManHandleHealthBarUpdate(void); +static void OakOldManHandleExpUpdate(void); +static void OakOldManHandleStatusIconUpdate(void); +static void OakOldManHandleStatusAnimation(void); +static void OakOldManHandleStatusXor(void); +static void OakOldManHandleDataTransfer(void); +static void OakOldManHandleDMA3Transfer(void); +static void OakOldManHandlePlayBGM(void); +static void OakOldManHandleCmd32(void); +static void OakOldManHandleTwoReturnValues(void); +static void OakOldManHandleChosenMonReturnValue(void); +static void OakOldManHandleOneReturnValue(void); +static void OakOldManHandleOneReturnValue_Duplicate(void); +static void OakOldManHandleCmd37(void); +static void OakOldManHandleCmd38(void); +static void OakOldManHandleCmd39(void); +static void OakOldManHandleCmd40(void); +static void OakOldManHandleHitAnimation(void); +static void OakOldManHandleCmd42(void); +static void OakOldManHandlePlaySE(void); +static void OakOldManHandlePlayFanfare(void); +static void OakOldManHandleFaintingCry(void); +static void OakOldManHandleIntroSlide(void); +static void OakOldManHandleIntroTrainerBallThrow(void); +static void OakOldManHandleDrawPartyStatusSummary(void); +static void OakOldManHandleHidePartyStatusSummary(void); +static void OakOldManHandleEndBounceEffect(void); +static void OakOldManHandleSpriteInvisibility(void); +static void OakOldManHandleBattleAnimation(void); +static void OakOldManHandleLinkStandbyMsg(void); +static void OakOldManHandleResetActionMoveSelection(void); +static void OakOldManHandleCmd55(void); +static void OakOldManCmdEnd(void); + +static void OakOldManBufferRunCommand(void); +static void OakOldManBufferExecCompleted(void); +static void WaitForMonSelection(void); +static void CompleteWhenChoseItem(void); +static void sub_80E8704(void); +static void sub_80E7CD8(void); +static void sub_80E835C(void); +static void Task_LaunchLvlUpAnim(u8 taskId); +static void DestroyExpTaskAndCompleteOnInactiveTextPrinter(u8 taskId); +static void CompleteOnInactiveTextPrinter2(void); +static void Task_PrepareToGiveExpWithExpBar(u8 taskId); +static void sub_80E804C(u8 taskId); +static void Task_UpdateLvlInHealthbox(u8 taskId); +static void sub_80E85D4(const u8 *text, u8 a1); +static u32 CopyOakOldManMonData(u8 monId, u8 *dst); +static void SetOakOldManMonData(u8 monId); +static void OakOldManDoMoveAnimation(void); +static void HandleInputChooseAction(void); +static void sub_80EB0A8(u8 taskId); + +static void (*const sOakOldManBufferCommands[CONTROLLER_CMDS_COUNT])(void) = +{ + OakOldManHandleGetMonData, + OakOldManHandleGetRawMonData, + OakOldManHandleSetMonData, + OakOldManHandleSetRawMonData, + OakOldManHandleLoadMonSprite, + OakOldManHandleSwitchInAnim, + OakOldManHandleReturnMonToBall, + OakOldManHandleDrawTrainerPic, + OakOldManHandleTrainerSlide, + OakOldManHandleTrainerSlideBack, + OakOldManHandleFaintAnimation, + OakOldManHandlePaletteFade, + OakOldManHandleSuccessBallThrowAnim, + OakOldManHandleBallThrowAnim, + OakOldManHandlePause, + OakOldManHandleMoveAnimation, + OakOldManHandlePrintString, + OakOldManHandlePrintSelectionString, + OakOldManHandleChooseAction, + OakOldManHandleUnknownYesNoBox, + OakOldManHandleChooseMove, + OakOldManHandleChooseItem, + OakOldManHandleChoosePokemon, + OakOldManHandleCmd23, + OakOldManHandleHealthBarUpdate, + OakOldManHandleExpUpdate, + OakOldManHandleStatusIconUpdate, + OakOldManHandleStatusAnimation, + OakOldManHandleStatusXor, + OakOldManHandleDataTransfer, + OakOldManHandleDMA3Transfer, + OakOldManHandlePlayBGM, + OakOldManHandleCmd32, + OakOldManHandleTwoReturnValues, + OakOldManHandleChosenMonReturnValue, + OakOldManHandleOneReturnValue, + OakOldManHandleOneReturnValue_Duplicate, + OakOldManHandleCmd37, + OakOldManHandleCmd38, + OakOldManHandleCmd39, + OakOldManHandleCmd40, + OakOldManHandleHitAnimation, + OakOldManHandleCmd42, + OakOldManHandlePlaySE, + OakOldManHandlePlayFanfare, + OakOldManHandleFaintingCry, + OakOldManHandleIntroSlide, + OakOldManHandleIntroTrainerBallThrow, + OakOldManHandleDrawPartyStatusSummary, + OakOldManHandleHidePartyStatusSummary, + OakOldManHandleEndBounceEffect, + OakOldManHandleSpriteInvisibility, + OakOldManHandleBattleAnimation, + OakOldManHandleLinkStandbyMsg, + OakOldManHandleResetActionMoveSelection, + OakOldManHandleCmd55, + OakOldManCmdEnd, +}; + +static void nullsub_81(void) +{ +} + +void SetControllerToOakOrOldMan(void) +{ + gBattlerControllerFuncs[gActiveBattler] = OakOldManBufferRunCommand; + gBattleStruct->field_94 = 0; + gBattleStruct->field_95 = 0; + gBattleStruct->field_96 = 0; + gBattleStruct->field_97 = 0; +} + +static void OakOldManBufferRunCommand(void) +{ + if (gBattleControllerExecFlags & gBitTable[gActiveBattler]) + { + if (gBattleBufferA[gActiveBattler][0] < ARRAY_COUNT(sOakOldManBufferCommands)) + sOakOldManBufferCommands[gBattleBufferA[gActiveBattler][0]](); + else + OakOldManBufferExecCompleted(); + } +} + +static void HandleInputChooseAction(void) +{ + u16 itemId = gBattleBufferA[gActiveBattler][2] | (gBattleBufferA[gActiveBattler][3] << 8); + + DoBounceEffect(gActiveBattler, BOUNCE_HEALTHBOX, 7, 1); + DoBounceEffect(gActiveBattler, BOUNCE_MON, 7, 1); + if (JOY_NEW(A_BUTTON)) + { + PlaySE(SE_SELECT); + + switch (gActionSelectionCursor[gActiveBattler]) + { + case 0: + BtlController_EmitTwoReturnValues(1, B_ACTION_USE_MOVE, 0); + break; + case 1: + BtlController_EmitTwoReturnValues(1, B_ACTION_USE_ITEM, 0); + break; + case 2: + BtlController_EmitTwoReturnValues(1, B_ACTION_SWITCH, 0); + break; + case 3: + BtlController_EmitTwoReturnValues(1, B_ACTION_RUN, 0); + break; + } + OakOldManBufferExecCompleted(); + } + else if (JOY_NEW(DPAD_LEFT)) + { + if (gActionSelectionCursor[gActiveBattler] & 1) // if is B_ACTION_USE_ITEM or B_ACTION_RUN + { + PlaySE(SE_SELECT); + ActionSelectionDestroyCursorAt(gActionSelectionCursor[gActiveBattler]); + gActionSelectionCursor[gActiveBattler] ^= 1; + ActionSelectionCreateCursorAt(gActionSelectionCursor[gActiveBattler], 0); + } + } + else if (JOY_NEW(DPAD_RIGHT)) + { + if (!(gActionSelectionCursor[gActiveBattler] & 1)) // if is B_ACTION_USE_MOVE or B_ACTION_SWITCH + { + PlaySE(SE_SELECT); + ActionSelectionDestroyCursorAt(gActionSelectionCursor[gActiveBattler]); + gActionSelectionCursor[gActiveBattler] ^= 1; + ActionSelectionCreateCursorAt(gActionSelectionCursor[gActiveBattler], 0); + } + } + else if (JOY_NEW(DPAD_UP)) + { + if (gActionSelectionCursor[gActiveBattler] & 2) // if is B_ACTION_SWITCH or B_ACTION_RUN + { + PlaySE(SE_SELECT); + ActionSelectionDestroyCursorAt(gActionSelectionCursor[gActiveBattler]); + gActionSelectionCursor[gActiveBattler] ^= 2; + ActionSelectionCreateCursorAt(gActionSelectionCursor[gActiveBattler], 0); + } + } + else if (JOY_NEW(DPAD_DOWN)) + { + if (!(gActionSelectionCursor[gActiveBattler] & 2)) // if is B_ACTION_USE_MOVE or B_ACTION_USE_ITEM + { + PlaySE(SE_SELECT); + ActionSelectionDestroyCursorAt(gActionSelectionCursor[gActiveBattler]); + gActionSelectionCursor[gActiveBattler] ^= 2; + ActionSelectionCreateCursorAt(gActionSelectionCursor[gActiveBattler], 0); + } + } + else if (JOY_NEW(B_BUTTON)) + { + if ((gBattleTypeFlags & BATTLE_TYPE_DOUBLE) + && GetBattlerPosition(gActiveBattler) == B_POSITION_PLAYER_RIGHT + && !(gAbsentBattlerFlags & gBitTable[GetBattlerAtPosition(B_POSITION_PLAYER_LEFT)]) + && !(gBattleTypeFlags & BATTLE_TYPE_MULTI)) + { + if (gBattleBufferA[gActiveBattler][1] == B_ACTION_USE_ITEM) + { + // Add item to bag if it is a ball + if (itemId <= ITEM_PREMIER_BALL) + AddBagItem(itemId, 1); + else + return; + } + PlaySE(SE_SELECT); + BtlController_EmitTwoReturnValues(1, B_ACTION_CANCEL_PARTNER, 0); + OakOldManBufferExecCompleted(); + } + } + else if (JOY_NEW(START_BUTTON)) + { + SwapHpBarsWithHpText(); + } +} + +static void sub_80E7844(void) +{ + switch (gBattleStruct->field_94) + { + case 0: + gBattleStruct->field_96 = 64; + ++gBattleStruct->field_94; + // fall through + case 1: + if (--gBattleStruct->field_96 == 0) + { + PlaySE(SE_SELECT); + ActionSelectionDestroyCursorAt(0); + ActionSelectionCreateCursorAt(1, 0); + gBattleStruct->field_96 = 64; + ++gBattleStruct->field_94; + } + break; + case 2: + if (--gBattleStruct->field_96 == 0) + { + PlaySE(SE_SELECT); + BtlController_EmitTwoReturnValues(1, B_ACTION_USE_ITEM, 0); + OakOldManBufferExecCompleted(); + } + break; + } +} + +static void CompleteOnBattlerSpriteCallbackDummy(void) +{ + if (gSprites[gBattlerSpriteIds[gActiveBattler]].callback == SpriteCallbackDummy) + OakOldManBufferExecCompleted(); +} + +static void CompleteOnInactiveTextPrinter(void) +{ + if (!IsTextPrinterActive(0)) + OakOldManBufferExecCompleted(); +} + +static void sub_80E7930(void) +{ + if (!gPaletteFade.active) + { + gMain.inBattle = FALSE; + gMain.callback1 = gPreBattleCallback1; + SetMainCallback2(gMain.savedCallback); + } +} + +static void CompleteOnSpecialAnimDone(void) +{ + if (!gDoingBattleAnim) + OakOldManBufferExecCompleted(); +} + +void sub_80E7988(void) +{ + HandleInputChooseMove(); + if (!(gBattleControllerExecFlags & gBitTable[gActiveBattler])) + OakOldManBufferExecCompleted(); +} + +static void OpenPartyMenuToChooseMon(void) +{ + if (!gPaletteFade.active) + { + u8 caseId; + + gBattlerControllerFuncs[gActiveBattler] = WaitForMonSelection; + caseId = gTasks[gUnknown_3004FFC[gActiveBattler]].data[0]; + DestroyTask(gUnknown_3004FFC[gActiveBattler]); + FreeAllWindowBuffers(); + OpenPartyMenuInBattle(caseId); + } +} + +static void WaitForMonSelection(void) +{ + if (gMain.callback2 == BattleMainCB2 && !gPaletteFade.active) + { + if (gUnknown_203B0C0 == 1) + BtlController_EmitChosenMonReturnValue(1, gUnknown_203B0C1, gUnknown_203B0DC); + else + BtlController_EmitChosenMonReturnValue(1, 6, NULL); + OakOldManBufferExecCompleted(); + } +} + +static void OpenBagAndChooseItem(void) +{ + if (!gPaletteFade.active) + { + gBattlerControllerFuncs[gActiveBattler] = CompleteWhenChoseItem; + nullsub_44(); + FreeAllWindowBuffers(); + if (gBattleTypeFlags & BATTLE_TYPE_FIRST_BATTLE) + sub_8107ECC(); + else + sub_810AF74(); + } +} + +static void CompleteWhenChoseItem(void) +{ + if (gMain.callback2 == BattleMainCB2 && !gPaletteFade.active) + { + if (!sub_80EB2E0(4) + && gSpecialVar_ItemId == ITEM_POTION + && gBattleTypeFlags & BATTLE_TYPE_FIRST_BATTLE) + { + sub_80EB2F4(4); + gBattlerControllerFuncs[gActiveBattler] = sub_80E8704; + } + else + { + BtlController_EmitOneReturnValue(1, gSpecialVar_ItemId); + OakOldManBufferExecCompleted(); + } + } +} + +static void sub_80E7B4C(void) +{ + if (!gBattleSpritesDataPtr->healthBoxesData[gActiveBattler].flag_x80 + && !gBattleSpritesDataPtr->healthBoxesData[gActiveBattler].ballAnimActive) + sub_80F1720(gActiveBattler, &gPlayerParty[gBattlerPartyIndexes[gActiveBattler]]); + if (!gBattleSpritesDataPtr->healthBoxesData[gActiveBattler ^ BIT_FLANK].flag_x80 + && !gBattleSpritesDataPtr->healthBoxesData[gActiveBattler ^ BIT_FLANK].ballAnimActive) + sub_80F1720(gActiveBattler ^ BIT_FLANK, &gPlayerParty[gBattlerPartyIndexes[gActiveBattler ^ BIT_FLANK]]); + if (!gBattleSpritesDataPtr->healthBoxesData[gActiveBattler].ballAnimActive && !gBattleSpritesDataPtr->healthBoxesData[gActiveBattler ^ BIT_FLANK].ballAnimActive) + { + if (IsDoubleBattle() && !(gBattleTypeFlags & BATTLE_TYPE_MULTI)) + { + DestroySprite(&gSprites[gUnknown_3004FFC[gActiveBattler ^ BIT_FLANK]]); + UpdateHealthboxAttribute(gHealthboxSpriteIds[gActiveBattler ^ BIT_FLANK], + &gPlayerParty[gBattlerPartyIndexes[gActiveBattler ^ BIT_FLANK]], + HEALTHBOX_ALL); + sub_804BD94(gActiveBattler ^ BIT_FLANK); + SetHealthboxSpriteVisible(gHealthboxSpriteIds[gActiveBattler ^ BIT_FLANK]); + } + DestroySprite(&gSprites[gUnknown_3004FFC[gActiveBattler]]); + UpdateHealthboxAttribute(gHealthboxSpriteIds[gActiveBattler], + &gPlayerParty[gBattlerPartyIndexes[gActiveBattler]], + HEALTHBOX_ALL); + sub_804BD94(gActiveBattler); + SetHealthboxSpriteVisible(gHealthboxSpriteIds[gActiveBattler]); + gBattleSpritesDataPtr->animationData->field_9_x1 = 0; + gBattlerControllerFuncs[gActiveBattler] = sub_80E7CD8; + } +} + +static void sub_80E7CD8(void) +{ + bool32 r4 = FALSE; + + if (gSprites[gHealthboxSpriteIds[gActiveBattler]].callback == SpriteCallbackDummy) + r4 = TRUE; + if (r4 + && gBattleSpritesDataPtr->healthBoxesData[gActiveBattler].field_1_x1 + && gBattleSpritesDataPtr->healthBoxesData[gActiveBattler ^ BIT_FLANK].field_1_x1) + { + gBattleSpritesDataPtr->healthBoxesData[gActiveBattler].flag_x80 = 0; + gBattleSpritesDataPtr->healthBoxesData[gActiveBattler].field_1_x1 = 0; + gBattleSpritesDataPtr->healthBoxesData[gActiveBattler ^ BIT_FLANK].flag_x80 = 0; + gBattleSpritesDataPtr->healthBoxesData[gActiveBattler ^ BIT_FLANK].field_1_x1 = 0; + FreeSpriteTilesByTag(0x27F9); + FreeSpritePaletteByTag(0x27F9); + CreateTask(c3_0802FDF4, 10); + HandleLowHpMusicChange(&gPlayerParty[gBattlerPartyIndexes[gActiveBattler]], gActiveBattler); + gBattlerControllerFuncs[gActiveBattler] = sub_80E835C; + } +} + +#define tExpTask_monId data[0] +#define tExpTask_gainedExp data[1] +#define tExpTask_battler data[2] +#define tExpTask_frames data[10] + +static void Task_GiveExpToMon(u8 taskId) +{ + u32 monId = (u8)(gTasks[taskId].tExpTask_monId); + u8 battlerId = gTasks[taskId].tExpTask_battler; + s16 gainedExp = gTasks[taskId].tExpTask_gainedExp; + + if (IsDoubleBattle() == TRUE || monId != gBattlerPartyIndexes[battlerId]) // Give exp without moving the expbar. + { + struct Pokemon *mon = &gPlayerParty[monId]; + u16 species = GetMonData(mon, MON_DATA_SPECIES); + u8 level = GetMonData(mon, MON_DATA_LEVEL); + u32 currExp = GetMonData(mon, MON_DATA_EXP); + u32 nextLvlExp = gExperienceTables[gBaseStats[species].growthRate][level + 1]; + + if (currExp + gainedExp >= nextLvlExp) + { + u8 savedActiveBattler; + + SetMonData(mon, MON_DATA_EXP, &nextLvlExp); + CalculateMonStats(mon); + gainedExp -= nextLvlExp - currExp; + savedActiveBattler = gActiveBattler; + gActiveBattler = battlerId; + BtlController_EmitTwoReturnValues(1, RET_VALUE_LEVELED_UP, gainedExp); + gActiveBattler = savedActiveBattler; + if (IsDoubleBattle() == TRUE + && ((u16)(monId) == gBattlerPartyIndexes[battlerId] || (u16)(monId) == gBattlerPartyIndexes[battlerId ^ BIT_FLANK])) + gTasks[taskId].func = Task_LaunchLvlUpAnim; + else + gTasks[taskId].func = DestroyExpTaskAndCompleteOnInactiveTextPrinter; + } + else + { + currExp += gainedExp; + SetMonData(mon, MON_DATA_EXP, &currExp); + gBattlerControllerFuncs[battlerId] = CompleteOnInactiveTextPrinter2; + DestroyTask(taskId); + } + } + else + { + gTasks[taskId].func = Task_PrepareToGiveExpWithExpBar; + } +} + +static void Task_PrepareToGiveExpWithExpBar(u8 taskId) +{ + u8 monIndex = gTasks[taskId].tExpTask_monId; + s32 gainedExp = gTasks[taskId].tExpTask_gainedExp; + u8 battlerId = gTasks[taskId].tExpTask_battler; + struct Pokemon *mon = &gPlayerParty[monIndex]; + u8 level = GetMonData(mon, MON_DATA_LEVEL); + u16 species = GetMonData(mon, MON_DATA_SPECIES); + u32 exp = GetMonData(mon, MON_DATA_EXP); + u32 currLvlExp = gExperienceTables[gBaseStats[species].growthRate][level]; + u32 expToNextLvl; + + exp -= currLvlExp; + expToNextLvl = gExperienceTables[gBaseStats[species].growthRate][level + 1] - currLvlExp; + SetBattleBarStruct(battlerId, gHealthboxSpriteIds[battlerId], expToNextLvl, exp, -gainedExp); + PlaySE(SE_EXP); + gTasks[taskId].func = sub_80E804C; +} + +static void sub_80E804C(u8 taskId) +{ + if (gTasks[taskId].tExpTask_frames < 13) + { + ++gTasks[taskId].tExpTask_frames; + } + else + { + u8 monId = gTasks[taskId].tExpTask_monId; + s16 gainedExp = gTasks[taskId].tExpTask_gainedExp; + u8 battlerId = gTasks[taskId].tExpTask_battler; + s16 newExpPoints; + + newExpPoints = MoveBattleBar(battlerId, gHealthboxSpriteIds[battlerId], EXP_BAR, 0); + SetHealthboxSpriteVisible(gHealthboxSpriteIds[battlerId]); + if (newExpPoints == -1) // The bar has been filled with given exp points. + { + u8 level; + s32 currExp; + u16 species; + s32 expOnNextLvl; + + m4aSongNumStop(SE_EXP); + level = GetMonData(&gPlayerParty[monId], MON_DATA_LEVEL); + currExp = GetMonData(&gPlayerParty[monId], MON_DATA_EXP); + species = GetMonData(&gPlayerParty[monId], MON_DATA_SPECIES); + expOnNextLvl = gExperienceTables[gBaseStats[species].growthRate][level + 1]; + if (currExp + gainedExp >= expOnNextLvl) + { + u8 savedActiveBattler; + + SetMonData(&gPlayerParty[monId], MON_DATA_EXP, &expOnNextLvl); + CalculateMonStats(&gPlayerParty[monId]); + gainedExp -= expOnNextLvl - currExp; + savedActiveBattler = gActiveBattler; + gActiveBattler = battlerId; + BtlController_EmitTwoReturnValues(1, RET_VALUE_LEVELED_UP, gainedExp); + gActiveBattler = savedActiveBattler; + gTasks[taskId].func = Task_LaunchLvlUpAnim; + } + else + { + currExp += gainedExp; + SetMonData(&gPlayerParty[monId], MON_DATA_EXP, &currExp); + gBattlerControllerFuncs[battlerId] = CompleteOnInactiveTextPrinter2; + DestroyTask(taskId); + } + } + } +} + +static void Task_LaunchLvlUpAnim(u8 taskId) +{ + u8 battlerId = gTasks[taskId].tExpTask_battler; + u8 monIndex = gTasks[taskId].tExpTask_monId; + + if (IsDoubleBattle() == TRUE && monIndex == gBattlerPartyIndexes[battlerId ^ BIT_FLANK]) + battlerId ^= BIT_FLANK; + InitAndLaunchSpecialAnimation(battlerId, battlerId, battlerId, B_ANIM_LVL_UP); + gTasks[taskId].func = Task_UpdateLvlInHealthbox; +} + +static void Task_UpdateLvlInHealthbox(u8 taskId) +{ + u8 battlerId = gTasks[taskId].tExpTask_battler; + + if (!gBattleSpritesDataPtr->healthBoxesData[battlerId].specialAnimActive) + { + u8 monIndex = gTasks[taskId].tExpTask_monId; + + GetMonData(&gPlayerParty[monIndex], MON_DATA_LEVEL); // Unused return value. + if (IsDoubleBattle() == TRUE && monIndex == gBattlerPartyIndexes[battlerId ^ BIT_FLANK]) + UpdateHealthboxAttribute(gHealthboxSpriteIds[battlerId ^ BIT_FLANK], &gPlayerParty[monIndex], HEALTHBOX_ALL); + else + UpdateHealthboxAttribute(gHealthboxSpriteIds[battlerId], &gPlayerParty[monIndex], HEALTHBOX_ALL); + gTasks[taskId].func = DestroyExpTaskAndCompleteOnInactiveTextPrinter; + } +} + +static void DestroyExpTaskAndCompleteOnInactiveTextPrinter(u8 taskId) +{ + u8 monIndex = gTasks[taskId].tExpTask_monId; + u8 battlerId; + + GetMonData(&gPlayerParty[monIndex], MON_DATA_LEVEL); // Unused return value + battlerId = gTasks[taskId].tExpTask_battler; + gBattlerControllerFuncs[battlerId] = CompleteOnInactiveTextPrinter2; + DestroyTask(taskId); +} + +static void sub_80E82F4(void) +{ + if (gSprites[gBattlerSpriteIds[gActiveBattler]].pos1.y + gSprites[gBattlerSpriteIds[gActiveBattler]].pos2.y > DISPLAY_HEIGHT) + { + FreeOamMatrix(gSprites[gBattlerSpriteIds[gActiveBattler]].oam.matrixNum); + DestroySprite(&gSprites[gBattlerSpriteIds[gActiveBattler]]); + SetHealthboxSpriteInvisible(gHealthboxSpriteIds[gActiveBattler]); + OakOldManBufferExecCompleted(); + } +} + +static void sub_80E835C(void) +{ + u32 mask; + + switch (gBattleStruct->field_94) + { + case 0: + if (!gPaletteFade.active) + { + sub_80EEFC8(&gBattleStruct->field_95, &gBattleStruct->field_97, GetBattlerAtPosition(B_POSITION_OPPONENT_LEFT)); + BeginNormalPaletteFade(0xFFFFFF7E, + 4, + 0, + 8, + RGB_BLACK); + ++gBattleStruct->field_94; + } + break; + case 1: + if (!gPaletteFade.active) + { + sub_80EB30C(); + ++gBattleStruct->field_94; + } + break; + case 2: + BattleStringExpandPlaceholdersToDisplayedString(gUnknown_83FDAE2); + BattlePutTextOnWindow(gDisplayedStringBattle, 24); + ++gBattleStruct->field_94; + break; + case 3: + if (!IsTextPrinterActive(24)) + { + mask = (gBitTable[gBattleStruct->field_95] | gBitTable[gBattleStruct->field_97]) << 16; + BeginNormalPaletteFade(mask, + 4, + 8, + 0, + RGB_BLACK); + ++gBattleStruct->field_94; + } + break; + case 4: + if (!gPaletteFade.active) + { + BattleStringExpandPlaceholdersToDisplayedString(gUnknown_83FDB92); + BattlePutTextOnWindow(gDisplayedStringBattle, 24); + ++gBattleStruct->field_94; + } + break; + case 5: + if (!IsTextPrinterActive(24)) + { + mask = (gBitTable[gBattleStruct->field_95] | gBitTable[gBattleStruct->field_97]) << 16; + BeginNormalPaletteFade(mask, + 4, + 0, + 8, + RGB_BLACK); + ++gBattleStruct->field_94; + } + break; + case 6: + if (!gPaletteFade.active) + { + BattleStringExpandPlaceholdersToDisplayedString(gUnknown_83FDBEF); + BattlePutTextOnWindow(gDisplayedStringBattle, 24); + ++gBattleStruct->field_94; + } + break; + case 7: + if (!IsTextPrinterActive(24)) + { + BeginNormalPaletteFade(0xFFFFFF7E, + 4, + 8, + 0, + RGB_BLACK); + ++gBattleStruct->field_94; + } + break; + case 8: + if (!gPaletteFade.active) + { + sub_80EF0E0(GetBattlerAtPosition(B_POSITION_OPPONENT_LEFT)); + sub_80EB524(); + gBattleStruct->field_94 = 0; + OakOldManBufferExecCompleted(); + } + break; + } +} + +void sub_80E8570(void) +{ + sub_80E85D4(gUnknown_83FDC58, 1); +} + +static void sub_80E8584(void) +{ + sub_80E85D4(gUnknown_83FDC95, 64); +} + +void sub_80E8598(void) +{ + sub_80E85D4(gUnknown_83FDD23, 1); +} + +static void sub_80E85AC(void) +{ + sub_80E85D4(gUnknown_83FDD64, 64); +} + +void sub_80E85C0(void) +{ + sub_80E85D4(gUnknown_83FDDEB, 64); +} + +static void sub_80E85D4(const u8 *text, u8 a2) +{ + switch (gBattleStruct->field_94) + { + case 0: + if (!IsTextPrinterActive(0)) + { + gBattleStruct->field_97 = a2; + ++gBattleStruct->field_94; + } + break; + case 1: + if (--gBattleStruct->field_97 == 0) + { + BeginNormalPaletteFade(0xFFFFFF7E, + 4, + 0, + 8, + RGB_BLACK); + ++gBattleStruct->field_94; + } + break; + case 2: + if (!gPaletteFade.active) + { + sub_80EB30C(); + ++gBattleStruct->field_94; + } + break; + case 3: + BattleStringExpandPlaceholdersToDisplayedString(text); + BattlePutTextOnWindow(gDisplayedStringBattle, 24); + ++gBattleStruct->field_94; + break; + case 4: + if (!IsTextPrinterActive(24)) + { + BeginNormalPaletteFade(0xFFFFFF7E, + 4, + 8, + 0, + RGB_BLACK); + ++gBattleStruct->field_94; + } + break; + case 5: + if (!gPaletteFade.active) + { + sub_80EB524(); + if (GetBattlerSide(gActiveBattler) == B_SIDE_PLAYER) + OakOldManBufferExecCompleted(); + else + OpponentBufferExecCompleted(); + gBattleCommunication[MSG_DISPLAY] = 0; + gBattleStruct->field_94 = 0; + } + break; + } +} + +static void sub_80E8704(void) +{ + u32 mask; + + switch (gBattleStruct->field_94) + { + case 0: + if (!gPaletteFade.active) + { + sub_80EEFC8(&gBattleStruct->field_95, &gBattleStruct->field_97, gActiveBattler); + BeginNormalPaletteFade(0xFFFFFF7E, + 4, + 0, + 8, + RGB_BLACK); + ++gBattleStruct->field_94; + } + break; + case 1: + if (!gPaletteFade.active) + { + mask = (gBitTable[gBattleStruct->field_95] | gBitTable[gBattleStruct->field_97]) << 16; + BeginNormalPaletteFade(mask, + 4, + 8, + 0, + RGB_BLACK); + ++gBattleStruct->field_94; + } + break; + case 2: + if (!gPaletteFade.active) + { + sub_80EB30C(); + ++gBattleStruct->field_94; + } + break; + case 3: + BattleStringExpandPlaceholdersToDisplayedString(gUnknown_83FDCD2); + BattlePutTextOnWindow(gDisplayedStringBattle, 24); + ++gBattleStruct->field_94; + break; + case 4: + if (!IsTextPrinterActive(24)) + { + mask = (gBitTable[gBattleStruct->field_95] | gBitTable[gBattleStruct->field_97]) << 16; + BeginNormalPaletteFade(mask, + 4, + 0, + 8, + RGB_BLACK); + ++gBattleStruct->field_94; + } + break; + case 5: + if (!gPaletteFade.active) + { + BeginNormalPaletteFade(0xFFFFFF7E, + 4, + 8, + 0, + RGB_BLACK); + ++gBattleStruct->field_94; + } + break; + case 6: + if (!gPaletteFade.active) + { + sub_80EB524(); + BtlController_EmitOneReturnValue(1, gSpecialVar_ItemId); + OakOldManBufferExecCompleted(); + gBattleStruct->field_94 = 0; + } + break; + } +} + +static void CompleteOnHealthbarDone(void) +{ + s16 hpValue = MoveBattleBar(gActiveBattler, gHealthboxSpriteIds[gActiveBattler], HEALTH_BAR, 0); + + SetHealthboxSpriteVisible(gHealthboxSpriteIds[gActiveBattler]); + if (hpValue != -1) + { + UpdateHpTextInHealthbox(gHealthboxSpriteIds[gActiveBattler], hpValue, HP_CURRENT); + } + else + { + HandleLowHpMusicChange(&gPlayerParty[gBattlerPartyIndexes[gActiveBattler]], gActiveBattler); + OakOldManBufferExecCompleted(); + } +} + +static void CompleteOnInactiveTextPrinter2(void) +{ + if (!IsTextPrinterActive(0)) + OakOldManBufferExecCompleted(); +} + +static void DoHitAnimBlinkSpriteEffect(void) +{ + u8 spriteId = gBattlerSpriteIds[gActiveBattler]; + + if (gSprites[spriteId].data[1] == 32) + { + gSprites[spriteId].data[1] = 0; + gSprites[spriteId].invisible = FALSE; + gDoingBattleAnim = FALSE; + OakOldManBufferExecCompleted(); + } + else + { + if ((gSprites[spriteId].data[1] % 4) == 0) + gSprites[spriteId].invisible ^= 1; + ++gSprites[spriteId].data[1]; + } +} + +static void sub_80E89C4(void) +{ + if (!gBattleSpritesDataPtr->healthBoxesData[gActiveBattler].specialAnimActive) + { + FreeSpriteOamMatrix(&gSprites[gBattlerSpriteIds[gActiveBattler]]); + DestroySprite(&gSprites[gBattlerSpriteIds[gActiveBattler]]); + SetHealthboxSpriteInvisible(gHealthboxSpriteIds[gActiveBattler]); + OakOldManBufferExecCompleted(); + } +} + +static void CompleteOnBattlerSpriteCallbackDummy2(void) +{ + if (gSprites[gBattlerSpriteIds[gActiveBattler]].callback == SpriteCallbackDummy) + OakOldManBufferExecCompleted(); +} + +static void CompleteOnFinishedBattleAnimation(void) +{ + if (!gBattleSpritesDataPtr->healthBoxesData[gActiveBattler].animFromTableActive) + OakOldManBufferExecCompleted(); +} + +static void OakOldManBufferExecCompleted(void) +{ + gBattlerControllerFuncs[gActiveBattler] = OakOldManBufferRunCommand; + if (gBattleTypeFlags & BATTLE_TYPE_LINK) + { + u8 playerId = GetMultiplayerId(); + + PrepareBufferDataTransferLink(2, 4, &playerId); + gBattleBufferA[gActiveBattler][0] = CONTROLLER_TERMINATOR_NOP; + } + else + { + gBattleControllerExecFlags &= ~gBitTable[gActiveBattler]; + } +} + +static void CompleteOnFinishedStatusAnimation(void) +{ + if (!gBattleSpritesDataPtr->healthBoxesData[gActiveBattler].statusAnimActive) + OakOldManBufferExecCompleted(); +} + +static void OakOldManHandleGetMonData(void) +{ + u8 monData[sizeof(struct Pokemon) * 2 + 56]; // this allows to get full data of two pokemon, trying to get more will result in overwriting data + u32 size = 0; + u8 monToCheck; + s32 i; + + if (gBattleBufferA[gActiveBattler][2] == 0) + { + size += CopyOakOldManMonData(gBattlerPartyIndexes[gActiveBattler], monData); + } + else + { + monToCheck = gBattleBufferA[gActiveBattler][2]; + for (i = 0; i < PARTY_SIZE; ++i) + { + if (monToCheck & 1) + size += CopyOakOldManMonData(i, monData + size); + monToCheck >>= 1; + } + } + BtlController_EmitDataTransfer(1, size, monData); + OakOldManBufferExecCompleted(); +} + +static u32 CopyOakOldManMonData(u8 monId, u8 *dst) +{ + struct BattlePokemon battleMon; + struct MovePpInfo moveData; + u8 nickname[20]; + u8 *src; + s16 data16; + u32 data32; + s32 size = 0; + + switch (gBattleBufferA[gActiveBattler][1]) + { + case REQUEST_ALL_BATTLE: + battleMon.species = GetMonData(&gPlayerParty[monId], MON_DATA_SPECIES); + battleMon.item = GetMonData(&gPlayerParty[monId], MON_DATA_HELD_ITEM); + for (size = 0; size < MAX_MON_MOVES; ++size) + { + battleMon.moves[size] = GetMonData(&gPlayerParty[monId], MON_DATA_MOVE1 + size); + battleMon.pp[size] = GetMonData(&gPlayerParty[monId], MON_DATA_PP1 + size); + } + battleMon.ppBonuses = GetMonData(&gPlayerParty[monId], MON_DATA_PP_BONUSES); + battleMon.friendship = GetMonData(&gPlayerParty[monId], MON_DATA_FRIENDSHIP); + battleMon.experience = GetMonData(&gPlayerParty[monId], MON_DATA_EXP); + battleMon.hpIV = GetMonData(&gPlayerParty[monId], MON_DATA_HP_IV); + battleMon.attackIV = GetMonData(&gPlayerParty[monId], MON_DATA_ATK_IV); + battleMon.defenseIV = GetMonData(&gPlayerParty[monId], MON_DATA_DEF_IV); + battleMon.speedIV = GetMonData(&gPlayerParty[monId], MON_DATA_SPEED_IV); + battleMon.spAttackIV = GetMonData(&gPlayerParty[monId], MON_DATA_SPATK_IV); + battleMon.spDefenseIV = GetMonData(&gPlayerParty[monId], MON_DATA_SPDEF_IV); + battleMon.personality = GetMonData(&gPlayerParty[monId], MON_DATA_PERSONALITY); + battleMon.status1 = GetMonData(&gPlayerParty[monId], MON_DATA_STATUS); + battleMon.level = GetMonData(&gPlayerParty[monId], MON_DATA_LEVEL); + battleMon.hp = GetMonData(&gPlayerParty[monId], MON_DATA_HP); + battleMon.maxHP = GetMonData(&gPlayerParty[monId], MON_DATA_MAX_HP); + battleMon.attack = GetMonData(&gPlayerParty[monId], MON_DATA_ATK); + battleMon.defense = GetMonData(&gPlayerParty[monId], MON_DATA_DEF); + battleMon.speed = GetMonData(&gPlayerParty[monId], MON_DATA_SPEED); + battleMon.spAttack = GetMonData(&gPlayerParty[monId], MON_DATA_SPATK); + battleMon.spDefense = GetMonData(&gPlayerParty[monId], MON_DATA_SPDEF); + battleMon.isEgg = GetMonData(&gPlayerParty[monId], MON_DATA_IS_EGG); + battleMon.abilityNum = GetMonData(&gPlayerParty[monId], MON_DATA_ABILITY_NUM); + battleMon.otId = GetMonData(&gPlayerParty[monId], MON_DATA_OT_ID); + GetMonData(&gPlayerParty[monId], MON_DATA_NICKNAME, nickname); + StringCopy10(battleMon.nickname, nickname); + GetMonData(&gPlayerParty[monId], MON_DATA_OT_NAME, battleMon.otName); + src = (u8 *)&battleMon; + for (size = 0; size < sizeof(battleMon); ++size) + dst[size] = src[size]; + break; + case REQUEST_SPECIES_BATTLE: + data16 = GetMonData(&gPlayerParty[monId], MON_DATA_SPECIES); + dst[0] = data16; + dst[1] = data16 >> 8; + size = 2; + break; + case REQUEST_HELDITEM_BATTLE: + data16 = GetMonData(&gPlayerParty[monId], MON_DATA_HELD_ITEM); + dst[0] = data16; + dst[1] = data16 >> 8; + size = 2; + break; + case REQUEST_MOVES_PP_BATTLE: + for (size = 0; size < MAX_MON_MOVES; ++size) + { + moveData.moves[size] = GetMonData(&gPlayerParty[monId], MON_DATA_MOVE1 + size); + moveData.pp[size] = GetMonData(&gPlayerParty[monId], MON_DATA_PP1 + size); + } + moveData.ppBonuses = GetMonData(&gPlayerParty[monId], MON_DATA_PP_BONUSES); + src = (u8 *)(&moveData); + for (size = 0; size < sizeof(moveData); ++size) + dst[size] = src[size]; + break; + case REQUEST_MOVE1_BATTLE: + case REQUEST_MOVE2_BATTLE: + case REQUEST_MOVE3_BATTLE: + case REQUEST_MOVE4_BATTLE: + data16 = GetMonData(&gPlayerParty[monId], MON_DATA_MOVE1 + gBattleBufferA[gActiveBattler][1] - REQUEST_MOVE1_BATTLE); + dst[0] = data16; + dst[1] = data16 >> 8; + size = 2; + break; + case REQUEST_PP_DATA_BATTLE: + for (size = 0; size < MAX_MON_MOVES; ++size) + dst[size] = GetMonData(&gPlayerParty[monId], MON_DATA_PP1 + size); + dst[size] = GetMonData(&gPlayerParty[monId], MON_DATA_PP_BONUSES); + ++size; + break; + case REQUEST_PPMOVE1_BATTLE: + case REQUEST_PPMOVE2_BATTLE: + case REQUEST_PPMOVE3_BATTLE: + case REQUEST_PPMOVE4_BATTLE: + dst[0] = GetMonData(&gPlayerParty[monId], MON_DATA_PP1 + gBattleBufferA[gActiveBattler][1] - REQUEST_PPMOVE1_BATTLE); + size = 1; + break; + case REQUEST_OTID_BATTLE: + data32 = GetMonData(&gPlayerParty[monId], MON_DATA_OT_ID); + dst[0] = (data32 & 0x000000FF); + dst[1] = (data32 & 0x0000FF00) >> 8; + dst[2] = (data32 & 0x00FF0000) >> 16; + size = 3; + break; + case REQUEST_EXP_BATTLE: + data32 = GetMonData(&gPlayerParty[monId], MON_DATA_EXP); + dst[0] = (data32 & 0x000000FF); + dst[1] = (data32 & 0x0000FF00) >> 8; + dst[2] = (data32 & 0x00FF0000) >> 16; + size = 3; + break; + case REQUEST_HP_EV_BATTLE: + dst[0] = GetMonData(&gPlayerParty[monId], MON_DATA_HP_EV); + size = 1; + break; + case REQUEST_ATK_EV_BATTLE: + dst[0] = GetMonData(&gPlayerParty[monId], MON_DATA_ATK_EV); + size = 1; + break; + case REQUEST_DEF_EV_BATTLE: + dst[0] = GetMonData(&gPlayerParty[monId], MON_DATA_DEF_EV); + size = 1; + break; + case REQUEST_SPEED_EV_BATTLE: + dst[0] = GetMonData(&gPlayerParty[monId], MON_DATA_SPEED_EV); + size = 1; + break; + case REQUEST_SPATK_EV_BATTLE: + dst[0] = GetMonData(&gPlayerParty[monId], MON_DATA_SPATK_EV); + size = 1; + break; + case REQUEST_SPDEF_EV_BATTLE: + dst[0] = GetMonData(&gPlayerParty[monId], MON_DATA_SPDEF_EV); + size = 1; + break; + case REQUEST_FRIENDSHIP_BATTLE: + dst[0] = GetMonData(&gPlayerParty[monId], MON_DATA_FRIENDSHIP); + size = 1; + break; + case REQUEST_POKERUS_BATTLE: + dst[0] = GetMonData(&gPlayerParty[monId], MON_DATA_POKERUS); + size = 1; + break; + case REQUEST_MET_LOCATION_BATTLE: + dst[0] = GetMonData(&gPlayerParty[monId], MON_DATA_MET_LOCATION); + size = 1; + break; + case REQUEST_MET_LEVEL_BATTLE: + dst[0] = GetMonData(&gPlayerParty[monId], MON_DATA_MET_LEVEL); + size = 1; + break; + case REQUEST_MET_GAME_BATTLE: + dst[0] = GetMonData(&gPlayerParty[monId], MON_DATA_MET_GAME); + size = 1; + break; + case REQUEST_POKEBALL_BATTLE: + dst[0] = GetMonData(&gPlayerParty[monId], MON_DATA_POKEBALL); + size = 1; + break; + case REQUEST_ALL_IVS_BATTLE: + dst[0] = GetMonData(&gPlayerParty[monId], MON_DATA_HP_IV); + dst[1] = GetMonData(&gPlayerParty[monId], MON_DATA_ATK_IV); + dst[2] = GetMonData(&gPlayerParty[monId], MON_DATA_DEF_IV); + dst[3] = GetMonData(&gPlayerParty[monId], MON_DATA_SPEED_IV); + dst[4] = GetMonData(&gPlayerParty[monId], MON_DATA_SPATK_IV); + dst[5] = GetMonData(&gPlayerParty[monId], MON_DATA_SPDEF_IV); + size = 6; + break; + case REQUEST_HP_IV_BATTLE: + dst[0] = GetMonData(&gPlayerParty[monId], MON_DATA_HP_IV); + size = 1; + break; + case REQUEST_ATK_IV_BATTLE: + dst[0] = GetMonData(&gPlayerParty[monId], MON_DATA_ATK_IV); + size = 1; + break; + case REQUEST_DEF_IV_BATTLE: + dst[0] = GetMonData(&gPlayerParty[monId], MON_DATA_DEF_IV); + size = 1; + break; + case REQUEST_SPEED_IV_BATTLE: + dst[0] = GetMonData(&gPlayerParty[monId], MON_DATA_SPEED_IV); + size = 1; + break; + case REQUEST_SPATK_IV_BATTLE: + dst[0] = GetMonData(&gPlayerParty[monId], MON_DATA_SPATK_IV); + size = 1; + break; + case REQUEST_SPDEF_IV_BATTLE: + dst[0] = GetMonData(&gPlayerParty[monId], MON_DATA_SPDEF_IV); + size = 1; + break; + case REQUEST_PERSONALITY_BATTLE: + data32 = GetMonData(&gPlayerParty[monId], MON_DATA_PERSONALITY); + dst[0] = (data32 & 0x000000FF); + dst[1] = (data32 & 0x0000FF00) >> 8; + dst[2] = (data32 & 0x00FF0000) >> 16; + dst[3] = (data32 & 0xFF000000) >> 24; + size = 4; + break; + case REQUEST_CHECKSUM_BATTLE: + data16 = GetMonData(&gPlayerParty[monId], MON_DATA_CHECKSUM); + dst[0] = data16; + dst[1] = data16 >> 8; + size = 2; + break; + case REQUEST_STATUS_BATTLE: + data32 = GetMonData(&gPlayerParty[monId], MON_DATA_STATUS); + dst[0] = (data32 & 0x000000FF); + dst[1] = (data32 & 0x0000FF00) >> 8; + dst[2] = (data32 & 0x00FF0000) >> 16; + dst[3] = (data32 & 0xFF000000) >> 24; + size = 4; + break; + case REQUEST_LEVEL_BATTLE: + dst[0] = GetMonData(&gPlayerParty[monId], MON_DATA_LEVEL); + size = 1; + break; + case REQUEST_HP_BATTLE: + data16 = GetMonData(&gPlayerParty[monId], MON_DATA_HP); + dst[0] = data16; + dst[1] = data16 >> 8; + size = 2; + break; + case REQUEST_MAX_HP_BATTLE: + data16 = GetMonData(&gPlayerParty[monId], MON_DATA_MAX_HP); + dst[0] = data16; + dst[1] = data16 >> 8; + size = 2; + break; + case REQUEST_ATK_BATTLE: + data16 = GetMonData(&gPlayerParty[monId], MON_DATA_ATK); + dst[0] = data16; + dst[1] = data16 >> 8; + size = 2; + break; + case REQUEST_DEF_BATTLE: + data16 = GetMonData(&gPlayerParty[monId], MON_DATA_DEF); + dst[0] = data16; + dst[1] = data16 >> 8; + size = 2; + break; + case REQUEST_SPEED_BATTLE: + data16 = GetMonData(&gPlayerParty[monId], MON_DATA_SPEED); + dst[0] = data16; + dst[1] = data16 >> 8; + size = 2; + break; + case REQUEST_SPATK_BATTLE: + data16 = GetMonData(&gPlayerParty[monId], MON_DATA_SPATK); + dst[0] = data16; + dst[1] = data16 >> 8; + size = 2; + break; + case REQUEST_SPDEF_BATTLE: + data16 = GetMonData(&gPlayerParty[monId], MON_DATA_SPDEF); + dst[0] = data16; + dst[1] = data16 >> 8; + size = 2; + break; + case REQUEST_COOL_BATTLE: + dst[0] = GetMonData(&gPlayerParty[monId], MON_DATA_COOL); + size = 1; + break; + case REQUEST_BEAUTY_BATTLE: + dst[0] = GetMonData(&gPlayerParty[monId], MON_DATA_BEAUTY); + size = 1; + break; + case REQUEST_CUTE_BATTLE: + dst[0] = GetMonData(&gPlayerParty[monId], MON_DATA_CUTE); + size = 1; + break; + case REQUEST_SMART_BATTLE: + dst[0] = GetMonData(&gPlayerParty[monId], MON_DATA_SMART); + size = 1; + break; + case REQUEST_TOUGH_BATTLE: + dst[0] = GetMonData(&gPlayerParty[monId], MON_DATA_TOUGH); + size = 1; + break; + case REQUEST_SHEEN_BATTLE: + dst[0] = GetMonData(&gPlayerParty[monId], MON_DATA_SHEEN); + size = 1; + break; + case REQUEST_COOL_RIBBON_BATTLE: + dst[0] = GetMonData(&gPlayerParty[monId], MON_DATA_COOL_RIBBON); + size = 1; + break; + case REQUEST_BEAUTY_RIBBON_BATTLE: + dst[0] = GetMonData(&gPlayerParty[monId], MON_DATA_BEAUTY_RIBBON); + size = 1; + break; + case REQUEST_CUTE_RIBBON_BATTLE: + dst[0] = GetMonData(&gPlayerParty[monId], MON_DATA_CUTE_RIBBON); + size = 1; + break; + case REQUEST_SMART_RIBBON_BATTLE: + dst[0] = GetMonData(&gPlayerParty[monId], MON_DATA_SMART_RIBBON); + size = 1; + break; + case REQUEST_TOUGH_RIBBON_BATTLE: + dst[0] = GetMonData(&gPlayerParty[monId], MON_DATA_TOUGH_RIBBON); + size = 1; + break; + } + return size; +} + +static void OakOldManHandleGetRawMonData(void) +{ + PlayerHandleGetRawMonData(); +} + +static void OakOldManHandleSetMonData(void) +{ + u8 monToCheck; + u8 i; + + if (gBattleBufferA[gActiveBattler][2] == 0) + { + SetOakOldManMonData(gBattlerPartyIndexes[gActiveBattler]); + } + else + { + monToCheck = gBattleBufferA[gActiveBattler][2]; + for (i = 0; i < PARTY_SIZE; ++i) + { + if (monToCheck & 1) + SetOakOldManMonData(i); + monToCheck >>= 1; + } + } + OakOldManBufferExecCompleted(); +} + +static void SetOakOldManMonData(u8 monId) +{ + struct BattlePokemon *battlePokemon = (struct BattlePokemon *)&gBattleBufferA[gActiveBattler][3]; + struct MovePpInfo *moveData = (struct MovePpInfo *)&gBattleBufferA[gActiveBattler][3]; + s32 i; + + switch (gBattleBufferA[gActiveBattler][1]) + { + case REQUEST_ALL_BATTLE: + { + u8 iv; + + SetMonData(&gPlayerParty[monId], MON_DATA_SPECIES, &battlePokemon->species); + SetMonData(&gPlayerParty[monId], MON_DATA_HELD_ITEM, &battlePokemon->item); + for (i = 0; i < MAX_MON_MOVES; ++i) + { + SetMonData(&gPlayerParty[monId], MON_DATA_MOVE1 + i, &battlePokemon->moves[i]); + SetMonData(&gPlayerParty[monId], MON_DATA_PP1 + i, &battlePokemon->pp[i]); + } + SetMonData(&gPlayerParty[monId], MON_DATA_PP_BONUSES, &battlePokemon->ppBonuses); + SetMonData(&gPlayerParty[monId], MON_DATA_FRIENDSHIP, &battlePokemon->friendship); + SetMonData(&gPlayerParty[monId], MON_DATA_EXP, &battlePokemon->experience); + iv = battlePokemon->hpIV; + SetMonData(&gPlayerParty[monId], MON_DATA_HP_IV, &iv); + iv = battlePokemon->attackIV; + SetMonData(&gPlayerParty[monId], MON_DATA_ATK_IV, &iv); + iv = battlePokemon->defenseIV; + SetMonData(&gPlayerParty[monId], MON_DATA_DEF_IV, &iv); + iv = battlePokemon->speedIV; + SetMonData(&gPlayerParty[monId], MON_DATA_SPEED_IV, &iv); + iv = battlePokemon->spAttackIV; + SetMonData(&gPlayerParty[monId], MON_DATA_SPATK_IV, &iv); + iv = battlePokemon->spDefenseIV; + SetMonData(&gPlayerParty[monId], MON_DATA_SPDEF_IV, &iv); + SetMonData(&gPlayerParty[monId], MON_DATA_PERSONALITY, &battlePokemon->personality); + SetMonData(&gPlayerParty[monId], MON_DATA_STATUS, &battlePokemon->status1); + SetMonData(&gPlayerParty[monId], MON_DATA_LEVEL, &battlePokemon->level); + SetMonData(&gPlayerParty[monId], MON_DATA_HP, &battlePokemon->hp); + SetMonData(&gPlayerParty[monId], MON_DATA_MAX_HP, &battlePokemon->maxHP); + SetMonData(&gPlayerParty[monId], MON_DATA_ATK, &battlePokemon->attack); + SetMonData(&gPlayerParty[monId], MON_DATA_DEF, &battlePokemon->defense); + SetMonData(&gPlayerParty[monId], MON_DATA_SPEED, &battlePokemon->speed); + SetMonData(&gPlayerParty[monId], MON_DATA_SPATK, &battlePokemon->spAttack); + SetMonData(&gPlayerParty[monId], MON_DATA_SPDEF, &battlePokemon->spDefense); + } + break; + case REQUEST_SPECIES_BATTLE: + SetMonData(&gPlayerParty[monId], MON_DATA_SPECIES, &gBattleBufferA[gActiveBattler][3]); + break; + case REQUEST_HELDITEM_BATTLE: + SetMonData(&gPlayerParty[monId], MON_DATA_HELD_ITEM, &gBattleBufferA[gActiveBattler][3]); + break; + case REQUEST_MOVES_PP_BATTLE: + for (i = 0; i < MAX_MON_MOVES; ++i) + { + SetMonData(&gPlayerParty[monId], MON_DATA_MOVE1 + i, &moveData->moves[i]); + SetMonData(&gPlayerParty[monId], MON_DATA_PP1 + i, &moveData->pp[i]); + } + SetMonData(&gPlayerParty[monId], MON_DATA_PP_BONUSES, &moveData->ppBonuses); + break; + case REQUEST_MOVE1_BATTLE: + case REQUEST_MOVE2_BATTLE: + case REQUEST_MOVE3_BATTLE: + case REQUEST_MOVE4_BATTLE: + SetMonData(&gPlayerParty[monId], MON_DATA_MOVE1 + gBattleBufferA[gActiveBattler][1] - REQUEST_MOVE1_BATTLE, &gBattleBufferA[gActiveBattler][3]); + break; + case REQUEST_PP_DATA_BATTLE: + SetMonData(&gPlayerParty[monId], MON_DATA_PP1, &gBattleBufferA[gActiveBattler][3]); + SetMonData(&gPlayerParty[monId], MON_DATA_PP2, &gBattleBufferA[gActiveBattler][4]); + SetMonData(&gPlayerParty[monId], MON_DATA_PP3, &gBattleBufferA[gActiveBattler][5]); + SetMonData(&gPlayerParty[monId], MON_DATA_PP4, &gBattleBufferA[gActiveBattler][6]); + SetMonData(&gPlayerParty[monId], MON_DATA_PP_BONUSES, &gBattleBufferA[gActiveBattler][7]); + break; + case REQUEST_PPMOVE1_BATTLE: + case REQUEST_PPMOVE2_BATTLE: + case REQUEST_PPMOVE3_BATTLE: + case REQUEST_PPMOVE4_BATTLE: + SetMonData(&gPlayerParty[monId], MON_DATA_PP1 + gBattleBufferA[gActiveBattler][1] - REQUEST_PPMOVE1_BATTLE, &gBattleBufferA[gActiveBattler][3]); + break; + case REQUEST_OTID_BATTLE: + SetMonData(&gPlayerParty[monId], MON_DATA_OT_ID, &gBattleBufferA[gActiveBattler][3]); + break; + case REQUEST_EXP_BATTLE: + SetMonData(&gPlayerParty[monId], MON_DATA_EXP, &gBattleBufferA[gActiveBattler][3]); + break; + case REQUEST_HP_EV_BATTLE: + SetMonData(&gPlayerParty[monId], MON_DATA_HP_EV, &gBattleBufferA[gActiveBattler][3]); + break; + case REQUEST_ATK_EV_BATTLE: + SetMonData(&gPlayerParty[monId], MON_DATA_ATK_EV, &gBattleBufferA[gActiveBattler][3]); + break; + case REQUEST_DEF_EV_BATTLE: + SetMonData(&gPlayerParty[monId], MON_DATA_DEF_EV, &gBattleBufferA[gActiveBattler][3]); + break; + case REQUEST_SPEED_EV_BATTLE: + SetMonData(&gPlayerParty[monId], MON_DATA_SPEED_EV, &gBattleBufferA[gActiveBattler][3]); + break; + case REQUEST_SPATK_EV_BATTLE: + SetMonData(&gPlayerParty[monId], MON_DATA_SPATK_EV, &gBattleBufferA[gActiveBattler][3]); + break; + case REQUEST_SPDEF_EV_BATTLE: + SetMonData(&gPlayerParty[monId], MON_DATA_SPDEF_EV, &gBattleBufferA[gActiveBattler][3]); + break; + case REQUEST_FRIENDSHIP_BATTLE: + SetMonData(&gPlayerParty[monId], MON_DATA_FRIENDSHIP, &gBattleBufferA[gActiveBattler][3]); + break; + case REQUEST_POKERUS_BATTLE: + SetMonData(&gPlayerParty[monId], MON_DATA_POKERUS, &gBattleBufferA[gActiveBattler][3]); + break; + case REQUEST_MET_LOCATION_BATTLE: + SetMonData(&gPlayerParty[monId], MON_DATA_MET_LOCATION, &gBattleBufferA[gActiveBattler][3]); + break; + case REQUEST_MET_LEVEL_BATTLE: + SetMonData(&gPlayerParty[monId], MON_DATA_MET_LEVEL, &gBattleBufferA[gActiveBattler][3]); + break; + case REQUEST_MET_GAME_BATTLE: + SetMonData(&gPlayerParty[monId], MON_DATA_MET_GAME, &gBattleBufferA[gActiveBattler][3]); + break; + case REQUEST_POKEBALL_BATTLE: + SetMonData(&gPlayerParty[monId], MON_DATA_POKEBALL, &gBattleBufferA[gActiveBattler][3]); + break; + case REQUEST_ALL_IVS_BATTLE: + SetMonData(&gPlayerParty[monId], MON_DATA_HP_IV, &gBattleBufferA[gActiveBattler][3]); + SetMonData(&gPlayerParty[monId], MON_DATA_ATK_IV, &gBattleBufferA[gActiveBattler][4]); + SetMonData(&gPlayerParty[monId], MON_DATA_DEF_IV, &gBattleBufferA[gActiveBattler][5]); + SetMonData(&gPlayerParty[monId], MON_DATA_SPEED_IV, &gBattleBufferA[gActiveBattler][6]); + SetMonData(&gPlayerParty[monId], MON_DATA_SPATK_IV, &gBattleBufferA[gActiveBattler][7]); + SetMonData(&gPlayerParty[monId], MON_DATA_SPDEF_IV, &gBattleBufferA[gActiveBattler][8]); + break; + case REQUEST_HP_IV_BATTLE: + SetMonData(&gPlayerParty[monId], MON_DATA_HP_IV, &gBattleBufferA[gActiveBattler][3]); + break; + case REQUEST_ATK_IV_BATTLE: + SetMonData(&gPlayerParty[monId], MON_DATA_ATK_IV, &gBattleBufferA[gActiveBattler][3]); + break; + case REQUEST_DEF_IV_BATTLE: + SetMonData(&gPlayerParty[monId], MON_DATA_DEF_IV, &gBattleBufferA[gActiveBattler][3]); + break; + case REQUEST_SPEED_IV_BATTLE: + SetMonData(&gPlayerParty[monId], MON_DATA_SPEED_IV, &gBattleBufferA[gActiveBattler][3]); + break; + case REQUEST_SPATK_IV_BATTLE: + SetMonData(&gPlayerParty[monId], MON_DATA_SPATK_IV, &gBattleBufferA[gActiveBattler][3]); + break; + case REQUEST_SPDEF_IV_BATTLE: + SetMonData(&gPlayerParty[monId], MON_DATA_SPDEF_IV, &gBattleBufferA[gActiveBattler][3]); + break; + case REQUEST_PERSONALITY_BATTLE: + SetMonData(&gPlayerParty[monId], MON_DATA_PERSONALITY, &gBattleBufferA[gActiveBattler][3]); + break; + case REQUEST_CHECKSUM_BATTLE: + SetMonData(&gPlayerParty[monId], MON_DATA_CHECKSUM, &gBattleBufferA[gActiveBattler][3]); + break; + case REQUEST_STATUS_BATTLE: + SetMonData(&gPlayerParty[monId], MON_DATA_STATUS, &gBattleBufferA[gActiveBattler][3]); + break; + case REQUEST_LEVEL_BATTLE: + SetMonData(&gPlayerParty[monId], MON_DATA_LEVEL, &gBattleBufferA[gActiveBattler][3]); + break; + case REQUEST_HP_BATTLE: + SetMonData(&gPlayerParty[monId], MON_DATA_HP, &gBattleBufferA[gActiveBattler][3]); + break; + case REQUEST_MAX_HP_BATTLE: + SetMonData(&gPlayerParty[monId], MON_DATA_MAX_HP, &gBattleBufferA[gActiveBattler][3]); + break; + case REQUEST_ATK_BATTLE: + SetMonData(&gPlayerParty[monId], MON_DATA_ATK, &gBattleBufferA[gActiveBattler][3]); + break; + case REQUEST_DEF_BATTLE: + SetMonData(&gPlayerParty[monId], MON_DATA_DEF, &gBattleBufferA[gActiveBattler][3]); + break; + case REQUEST_SPEED_BATTLE: + SetMonData(&gPlayerParty[monId], MON_DATA_SPEED, &gBattleBufferA[gActiveBattler][3]); + break; + case REQUEST_SPATK_BATTLE: + SetMonData(&gPlayerParty[monId], MON_DATA_SPATK, &gBattleBufferA[gActiveBattler][3]); + break; + case REQUEST_SPDEF_BATTLE: + SetMonData(&gPlayerParty[monId], MON_DATA_SPDEF, &gBattleBufferA[gActiveBattler][3]); + break; + case REQUEST_COOL_BATTLE: + SetMonData(&gPlayerParty[monId], MON_DATA_COOL, &gBattleBufferA[gActiveBattler][3]); + break; + case REQUEST_BEAUTY_BATTLE: + SetMonData(&gPlayerParty[monId], MON_DATA_BEAUTY, &gBattleBufferA[gActiveBattler][3]); + break; + case REQUEST_CUTE_BATTLE: + SetMonData(&gPlayerParty[monId], MON_DATA_CUTE, &gBattleBufferA[gActiveBattler][3]); + break; + case REQUEST_SMART_BATTLE: + SetMonData(&gPlayerParty[monId], MON_DATA_SMART, &gBattleBufferA[gActiveBattler][3]); + break; + case REQUEST_TOUGH_BATTLE: + SetMonData(&gPlayerParty[monId], MON_DATA_TOUGH, &gBattleBufferA[gActiveBattler][3]); + break; + case REQUEST_SHEEN_BATTLE: + SetMonData(&gPlayerParty[monId], MON_DATA_SHEEN, &gBattleBufferA[gActiveBattler][3]); + break; + case REQUEST_COOL_RIBBON_BATTLE: + SetMonData(&gPlayerParty[monId], MON_DATA_COOL_RIBBON, &gBattleBufferA[gActiveBattler][3]); + break; + case REQUEST_BEAUTY_RIBBON_BATTLE: + SetMonData(&gPlayerParty[monId], MON_DATA_BEAUTY_RIBBON, &gBattleBufferA[gActiveBattler][3]); + break; + case REQUEST_CUTE_RIBBON_BATTLE: + SetMonData(&gPlayerParty[monId], MON_DATA_CUTE_RIBBON, &gBattleBufferA[gActiveBattler][3]); + break; + case REQUEST_SMART_RIBBON_BATTLE: + SetMonData(&gPlayerParty[monId], MON_DATA_SMART_RIBBON, &gBattleBufferA[gActiveBattler][3]); + break; + case REQUEST_TOUGH_RIBBON_BATTLE: + SetMonData(&gPlayerParty[monId], MON_DATA_TOUGH_RIBBON, &gBattleBufferA[gActiveBattler][3]); + break; + } + HandleLowHpMusicChange(&gPlayerParty[gBattlerPartyIndexes[gActiveBattler]], gActiveBattler); +} + +static void OakOldManHandleSetRawMonData(void) +{ + OakOldManBufferExecCompleted(); +} + +static void OakOldManHandleLoadMonSprite(void) +{ + OakOldManBufferExecCompleted(); +} + +static void OakOldManHandleSwitchInAnim(void) +{ + OakOldManBufferExecCompleted(); +} + +static void OakOldManHandleReturnMonToBall(void) +{ + if (gBattleBufferA[gActiveBattler][1] == 0) + { + InitAndLaunchSpecialAnimation(gActiveBattler, gActiveBattler, gActiveBattler, B_ANIM_SWITCH_OUT_PLAYER_MON); + gBattlerControllerFuncs[gActiveBattler] = sub_80E89C4; + } + else + { + FreeSpriteOamMatrix(&gSprites[gBattlerSpriteIds[gActiveBattler]]); + DestroySprite(&gSprites[gBattlerSpriteIds[gActiveBattler]]); + SetHealthboxSpriteInvisible(gHealthboxSpriteIds[gActiveBattler]); + OakOldManBufferExecCompleted(); + } +} + +static void OakOldManHandleDrawTrainerPic(void) +{ + if (gBattleTypeFlags & BATTLE_TYPE_FIRST_BATTLE) + { + DecompressTrainerBackPalette(gSaveBlock2Ptr->playerGender, gActiveBattler); + SetMultiuseSpriteTemplateToTrainerBack(gSaveBlock2Ptr->playerGender, GetBattlerPosition(gActiveBattler)); + gBattlerSpriteIds[gActiveBattler] = CreateSprite(&gMultiuseSpriteTemplate, + 80, + (8 - gTrainerBackPicCoords[gSaveBlock2Ptr->playerGender].size) * 4 + 80, + 30); + } + else + { + DecompressTrainerBackPalette(5, gActiveBattler); + SetMultiuseSpriteTemplateToTrainerBack(5, GetBattlerPosition(gActiveBattler)); + gBattlerSpriteIds[gActiveBattler] = CreateSprite(&gMultiuseSpriteTemplate, + 80, + (8 - gTrainerBackPicCoords[5].size) * 4 + 80, + 30); + } + gSprites[gBattlerSpriteIds[gActiveBattler]].oam.paletteNum = gActiveBattler; + gSprites[gBattlerSpriteIds[gActiveBattler]].pos2.x = 240; + gSprites[gBattlerSpriteIds[gActiveBattler]].data[0] = -2; + gSprites[gBattlerSpriteIds[gActiveBattler]].callback = sub_8033EEC; + gBattlerControllerFuncs[gActiveBattler] = CompleteOnBattlerSpriteCallbackDummy; +} + +static void OakOldManHandleTrainerSlide(void) +{ + if (gBattleTypeFlags & BATTLE_TYPE_FIRST_BATTLE) + { + DecompressTrainerBackPalette(gSaveBlock2Ptr->playerGender, gActiveBattler); + SetMultiuseSpriteTemplateToTrainerBack(gSaveBlock2Ptr->playerGender, GetBattlerPosition(gActiveBattler)); + gBattlerSpriteIds[gActiveBattler] = CreateSprite(&gMultiuseSpriteTemplate, + 80, + (8 - gTrainerBackPicCoords[gSaveBlock2Ptr->playerGender].size) * 4 + 80, + 30); + } + else + { + DecompressTrainerBackPalette(5, gActiveBattler); + SetMultiuseSpriteTemplateToTrainerBack(5, GetBattlerPosition(gActiveBattler)); + gBattlerSpriteIds[gActiveBattler] = CreateSprite(&gMultiuseSpriteTemplate, + 80, + (8 - gTrainerBackPicCoords[5].size) * 4 + 80, + 30); + } + gSprites[gBattlerSpriteIds[gActiveBattler]].oam.paletteNum = gActiveBattler; + gSprites[gBattlerSpriteIds[gActiveBattler]].pos2.x = -96; + gSprites[gBattlerSpriteIds[gActiveBattler]].data[0] = 2; + gSprites[gBattlerSpriteIds[gActiveBattler]].callback = sub_8033EEC; + gBattlerControllerFuncs[gActiveBattler] = CompleteOnBattlerSpriteCallbackDummy2; +} + +static void OakOldManHandleTrainerSlideBack(void) +{ + OakOldManBufferExecCompleted(); +} + +static void OakOldManHandleFaintAnimation(void) +{ + if (gBattleSpritesDataPtr->healthBoxesData[gActiveBattler].animationState == 0) + { + if (gBattleSpritesDataPtr->battlerData[gActiveBattler].behindSubstitute) + InitAndLaunchSpecialAnimation(gActiveBattler, gActiveBattler, gActiveBattler, B_ANIM_SUBSTITUTE_TO_MON); + ++gBattleSpritesDataPtr->healthBoxesData[gActiveBattler].animationState; + } + else + { + if (!gBattleSpritesDataPtr->healthBoxesData[gActiveBattler].specialAnimActive) + { + gBattleSpritesDataPtr->healthBoxesData[gActiveBattler].animationState = 0; + HandleLowHpMusicChange(&gPlayerParty[gBattlerPartyIndexes[gActiveBattler]], gActiveBattler); + PlaySE12WithPanning(SE_POKE_DEAD, SOUND_PAN_ATTACKER); + gSprites[gBattlerSpriteIds[gActiveBattler]].data[1] = 0; + gSprites[gBattlerSpriteIds[gActiveBattler]].data[2] = 5; + gSprites[gBattlerSpriteIds[gActiveBattler]].callback = sub_8012110; + gBattlerControllerFuncs[gActiveBattler] = sub_80E82F4; + } + } +} + +static void OakOldManHandlePaletteFade(void) +{ + OakOldManBufferExecCompleted(); +} + +static void OakOldManHandleSuccessBallThrowAnim(void) +{ + gBattleSpritesDataPtr->animationData->ballThrowCaseId = BALL_3_SHAKES_SUCCESS; + gDoingBattleAnim = TRUE; + InitAndLaunchSpecialAnimation(gActiveBattler, gActiveBattler, GetBattlerAtPosition(B_POSITION_OPPONENT_LEFT), B_ANIM_SAFARI_BALL_THROW); + gBattlerControllerFuncs[gActiveBattler] = CompleteOnSpecialAnimDone; +} + +static void OakOldManHandleBallThrowAnim(void) +{ + u8 ballThrowCaseId = gBattleBufferA[gActiveBattler][1]; + + gBattleSpritesDataPtr->animationData->ballThrowCaseId = ballThrowCaseId; + gDoingBattleAnim = TRUE; + InitAndLaunchSpecialAnimation(gActiveBattler, gActiveBattler, GetBattlerAtPosition(B_POSITION_OPPONENT_LEFT), B_ANIM_SAFARI_BALL_THROW); + gBattlerControllerFuncs[gActiveBattler] = CompleteOnSpecialAnimDone; +} + +static void OakOldManHandlePause(void) +{ + OakOldManBufferExecCompleted(); +} + +static void OakOldManHandleMoveAnimation(void) +{ + u16 move = gBattleBufferA[gActiveBattler][1] | (gBattleBufferA[gActiveBattler][2] << 8); + + gAnimMoveTurn = gBattleBufferA[gActiveBattler][3]; + gAnimMovePower = gBattleBufferA[gActiveBattler][4] | (gBattleBufferA[gActiveBattler][5] << 8); + gAnimMoveDmg = gBattleBufferA[gActiveBattler][6] | (gBattleBufferA[gActiveBattler][7] << 8) | (gBattleBufferA[gActiveBattler][8] << 16) | (gBattleBufferA[gActiveBattler][9] << 24); + gAnimFriendship = gBattleBufferA[gActiveBattler][10]; + gWeatherMoveAnim = gBattleBufferA[gActiveBattler][12] | (gBattleBufferA[gActiveBattler][13] << 8); + gAnimDisableStructPtr = (struct DisableStruct *)&gBattleBufferA[gActiveBattler][16]; + gTransformedPersonalities[gActiveBattler] = gAnimDisableStructPtr->transformedMonPersonality; + if (IsMoveWithoutAnimation(move, gAnimMoveTurn)) // always returns FALSE + { + OakOldManBufferExecCompleted(); + } + else + { + gBattleSpritesDataPtr->healthBoxesData[gActiveBattler].animationState = 0; + gBattlerControllerFuncs[gActiveBattler] = OakOldManDoMoveAnimation; + } +} + +static void OakOldManDoMoveAnimation(void) +{ + u16 move = gBattleBufferA[gActiveBattler][1] | (gBattleBufferA[gActiveBattler][2] << 8); + + switch (gBattleSpritesDataPtr->healthBoxesData[gActiveBattler].animationState) + { + case 0: + if (gBattleSpritesDataPtr->battlerData[gActiveBattler].behindSubstitute) + InitAndLaunchSpecialAnimation(gActiveBattler, gActiveBattler, gActiveBattler, B_ANIM_SUBSTITUTE_TO_MON); + gBattleSpritesDataPtr->healthBoxesData[gActiveBattler].animationState = 1; + break; + case 1: + if (!gBattleSpritesDataPtr->healthBoxesData[gActiveBattler].specialAnimActive) + { + sub_8035450(0); + DoMoveAnim(move); + gBattleSpritesDataPtr->healthBoxesData[gActiveBattler].animationState = 2; + } + break; + case 2: + gAnimScriptCallback(); + if (!gAnimScriptActive) + { + sub_8035450(1); + if (gBattleSpritesDataPtr->battlerData[gActiveBattler].behindSubstitute) + InitAndLaunchSpecialAnimation(gActiveBattler, gActiveBattler, gActiveBattler, B_ANIM_MON_TO_SUBSTITUTE); + gBattleSpritesDataPtr->healthBoxesData[gActiveBattler].animationState = 3; + } + break; + case 3: + if (!gBattleSpritesDataPtr->healthBoxesData[gActiveBattler].specialAnimActive) + { + CopyAllBattleSpritesInvisibilities(); + TrySetBehindSubstituteSpriteBit(gActiveBattler, gBattleBufferA[gActiveBattler][1] | (gBattleBufferA[gActiveBattler][2] << 8)); + gBattleSpritesDataPtr->healthBoxesData[gActiveBattler].animationState = 0; + OakOldManBufferExecCompleted(); + } + break; + } +} + +static void OakOldManHandlePrintString(void) +{ + u16 *stringId; + + gBattle_BG0_X = 0; + gBattle_BG0_Y = 0; + stringId = (u16 *)(&gBattleBufferA[gActiveBattler][2]); + if (gBattleTypeFlags & BATTLE_TYPE_OLD_MAN_TUTORIAL && *stringId == 1) + { + OakOldManBufferExecCompleted(); + } + else + { + BufferStringBattle(*stringId); + if (sub_80D89B0(*stringId)) + BattlePutTextOnWindow(gDisplayedStringBattle, 64); + else + BattlePutTextOnWindow(gDisplayedStringBattle, 0); + if (gBattleTypeFlags & BATTLE_TYPE_FIRST_BATTLE) + { + switch (*stringId) + { + case 216: + if (!sub_80EB2E0(2)) + { + sub_80EB2F4(2); + gBattlerControllerFuncs[gActiveBattler] = sub_80E8584; + return; + } + break; + case 30: + gBattlerControllerFuncs[gActiveBattler] = sub_80E85AC; + return; + case 383: + gBattlerControllerFuncs[gActiveBattler] = sub_80E85C0; + return; + case 227: + gBattlerControllerFuncs[gActiveBattler] = sub_80E8598; + return; + } + } + gBattlerControllerFuncs[gActiveBattler] = CompleteOnInactiveTextPrinter; + } +} + +static void OakOldManHandlePrintSelectionString(void) +{ + if (GetBattlerSide(gActiveBattler) == B_SIDE_PLAYER) + OakOldManHandlePrintString(); + else + OakOldManBufferExecCompleted(); +} + +static void sub_80EA690(void) +{ + if (!IsDma3ManagerBusyWithBgCopy()) + { + gBattle_BG0_X = 0; + gBattle_BG0_Y = 160; + if (gBattleTypeFlags & BATTLE_TYPE_FIRST_BATTLE) + gBattlerControllerFuncs[gActiveBattler] = HandleInputChooseAction; + else + gBattlerControllerFuncs[gActiveBattler] = sub_80E7844; + } +} + +static void OakOldManHandleChooseAction(void) +{ + s32 i; + + gBattlerControllerFuncs[gActiveBattler] = sub_80EA690; + BattlePutTextOnWindow(gUnknown_83FDA4C, 0); + BattlePutTextOnWindow(gUnknown_83FE725, 2); + for (i = 0; i < MAX_MON_MOVES; ++i) + ActionSelectionDestroyCursorAt((u8)i); + ActionSelectionCreateCursorAt(gActionSelectionCursor[gActiveBattler], 0); + if (gBattleTypeFlags & BATTLE_TYPE_FIRST_BATTLE) + BattleStringExpandPlaceholdersToDisplayedString(gText_WhatWillPkmnDo); + else + BattleStringExpandPlaceholdersToDisplayedString(gUnknown_83FE6FA); + BattlePutTextOnWindow(gDisplayedStringBattle, 1); +} + +static void OakOldManHandleUnknownYesNoBox(void) +{ + OakOldManBufferExecCompleted(); +} + +static void sub_80EA798(void) +{ + if (!IsDma3ManagerBusyWithBgCopy()) + { + gBattle_BG0_X = 0; + gBattle_BG0_Y = 320; + gBattlerControllerFuncs[gActiveBattler] = sub_80E7988; + } +} + +static void OakOldManHandleChooseMove(void) +{ + if (gBattleTypeFlags & BATTLE_TYPE_FIRST_BATTLE) + { + InitMoveSelectionsVarsAndStrings(); + gBattlerControllerFuncs[gActiveBattler] = sub_80EA798; + } + else + { + switch (gBattleStruct->field_95) + { + case 0: + InitMoveSelectionsVarsAndStrings(); + ++gBattleStruct->field_95; + gBattleStruct->field_97 = 80; + // fall through + case 1: + if (--gBattleStruct->field_97 == 0) + { + PlaySE(SE_SELECT); + BtlController_EmitTwoReturnValues(1, 10, 0x100); + OakOldManBufferExecCompleted(); + } + break; + } + } +} + +static void OakOldManHandleChooseItem(void) +{ + s32 i; + + BeginNormalPaletteFade(0xFFFFFFFF, 0, 0, 0x10, RGB_BLACK); + gBattlerControllerFuncs[gActiveBattler] = OpenBagAndChooseItem; + gBattlerInMenuId = gActiveBattler; + for (i = 0; i < 3; ++i) + gUnknown_203B0DC[i] = gBattleBufferA[gActiveBattler][i + 1]; +} + +static void OakOldManHandleChoosePokemon(void) +{ + s32 i; + + gUnknown_3004FFC[gActiveBattler] = CreateTask(TaskDummy, 0xFF); + gTasks[gUnknown_3004FFC[gActiveBattler]].data[0] = gBattleBufferA[gActiveBattler][1] & 0xF; + *(&gBattleStruct->battlerPreventingSwitchout) = gBattleBufferA[gActiveBattler][1] >> 4; + *(&gBattleStruct->field_8B) = gBattleBufferA[gActiveBattler][2]; + *(&gBattleStruct->abilityPreventingSwitchout) = gBattleBufferA[gActiveBattler][3]; + for (i = 0; i < 3; ++i) + gUnknown_203B0DC[i] = gBattleBufferA[gActiveBattler][4 + i]; + BeginNormalPaletteFade(0xFFFFFFFF, 0, 0, 0x10, RGB_BLACK); + gBattlerControllerFuncs[gActiveBattler] = OpenPartyMenuToChooseMon; + gBattlerInMenuId = gActiveBattler; +} + +static void OakOldManHandleCmd23(void) +{ + OakOldManBufferExecCompleted(); +} + +static void OakOldManHandleHealthBarUpdate(void) +{ + s16 hpVal; + + LoadBattleBarGfx(0); + hpVal = gBattleBufferA[gActiveBattler][2] | (gBattleBufferA[gActiveBattler][3] << 8); + if (hpVal != INSTANT_HP_BAR_DROP) + { + u32 maxHP = GetMonData(&gPlayerParty[gBattlerPartyIndexes[gActiveBattler]], MON_DATA_MAX_HP); + u32 curHP = GetMonData(&gPlayerParty[gBattlerPartyIndexes[gActiveBattler]], MON_DATA_HP); + + SetBattleBarStruct(gActiveBattler, gHealthboxSpriteIds[gActiveBattler], maxHP, curHP, hpVal); + } + else + { + u32 maxHP = GetMonData(&gPlayerParty[gBattlerPartyIndexes[gActiveBattler]], MON_DATA_MAX_HP); + + SetBattleBarStruct(gActiveBattler, gHealthboxSpriteIds[gActiveBattler], maxHP, 0, hpVal); + UpdateHpTextInHealthbox(gHealthboxSpriteIds[gActiveBattler], 0, HP_CURRENT); + } + gBattlerControllerFuncs[gActiveBattler] = CompleteOnHealthbarDone; +} + +static void OakOldManHandleExpUpdate(void) +{ + u8 monId = gBattleBufferA[gActiveBattler][1]; + + if (GetMonData(&gPlayerParty[monId], MON_DATA_LEVEL) >= MAX_LEVEL) + { + OakOldManBufferExecCompleted(); + } + else + { + s16 expPointsToGive; + u8 taskId; + + LoadBattleBarGfx(1); + GetMonData(&gPlayerParty[monId], MON_DATA_SPECIES); // Unused return value. + expPointsToGive = T1_READ_16(&gBattleBufferA[gActiveBattler][2]); + taskId = CreateTask(Task_GiveExpToMon, 10); + gTasks[taskId].tExpTask_monId = monId; + gTasks[taskId].tExpTask_gainedExp = expPointsToGive; + gTasks[taskId].tExpTask_battler = gActiveBattler; + gBattlerControllerFuncs[gActiveBattler] = nullsub_81; + } +} + +static void OakOldManHandleStatusIconUpdate(void) +{ + OakOldManBufferExecCompleted(); +} + +static void OakOldManHandleStatusAnimation(void) +{ + OakOldManBufferExecCompleted(); +} + +static void OakOldManHandleStatusXor(void) +{ + OakOldManBufferExecCompleted(); +} + +static void OakOldManHandleDataTransfer(void) +{ + OakOldManBufferExecCompleted(); +} + +static void OakOldManHandleDMA3Transfer(void) +{ + OakOldManBufferExecCompleted(); +} + +static void OakOldManHandlePlayBGM(void) +{ + OakOldManBufferExecCompleted(); +} + +static void OakOldManHandleCmd32(void) +{ + OakOldManBufferExecCompleted(); +} + +static void OakOldManHandleTwoReturnValues(void) +{ + OakOldManBufferExecCompleted(); +} + +static void OakOldManHandleChosenMonReturnValue(void) +{ + OakOldManBufferExecCompleted(); +} + +static void OakOldManHandleOneReturnValue(void) +{ + OakOldManBufferExecCompleted(); +} + +static void OakOldManHandleOneReturnValue_Duplicate(void) +{ + OakOldManBufferExecCompleted(); +} + +static void OakOldManHandleCmd37(void) +{ + OakOldManBufferExecCompleted(); +} + +static void OakOldManHandleCmd38(void) +{ + OakOldManBufferExecCompleted(); +} + +static void OakOldManHandleCmd39(void) +{ + OakOldManBufferExecCompleted(); +} + +static void OakOldManHandleCmd40(void) +{ + OakOldManBufferExecCompleted(); +} + +static void OakOldManHandleHitAnimation(void) +{ + if (gSprites[gBattlerSpriteIds[gActiveBattler]].invisible == TRUE) + { + OakOldManBufferExecCompleted(); + } + else + { + gDoingBattleAnim = TRUE; + gSprites[gBattlerSpriteIds[gActiveBattler]].data[1] = 0; + DoHitAnimHealthboxEffect(gActiveBattler); + gBattlerControllerFuncs[gActiveBattler] = DoHitAnimBlinkSpriteEffect; + } +} + +static void OakOldManHandleCmd42(void) +{ + OakOldManBufferExecCompleted(); +} + +static void OakOldManHandlePlaySE(void) +{ + PlaySE(gBattleBufferA[gActiveBattler][1] | (gBattleBufferA[gActiveBattler][2] << 8)); + OakOldManBufferExecCompleted(); +} + +static void OakOldManHandlePlayFanfare(void) +{ + PlayFanfare(gBattleBufferA[gActiveBattler][1] | (gBattleBufferA[gActiveBattler][2] << 8)); + OakOldManBufferExecCompleted(); +} + +static void OakOldManHandleFaintingCry(void) +{ + u16 species = GetMonData(&gPlayerParty[gBattlerPartyIndexes[gActiveBattler]], MON_DATA_SPECIES); + + PlayCry1(species, 25); + OakOldManBufferExecCompleted(); +} + +static void OakOldManHandleIntroSlide(void) +{ + HandleIntroSlide(gBattleBufferA[gActiveBattler][1]); + gIntroSlideFlags |= 1; + OakOldManBufferExecCompleted(); +} + +static void OakOldManHandleIntroTrainerBallThrow(void) +{ + u8 paletteNum; + u8 taskId; + + if (gBattleTypeFlags & BATTLE_TYPE_FIRST_BATTLE) + { + SetSpritePrimaryCoordsFromSecondaryCoords(&gSprites[gBattlerSpriteIds[gActiveBattler]]); + gSprites[gBattlerSpriteIds[gActiveBattler]].data[0] = 50; + gSprites[gBattlerSpriteIds[gActiveBattler]].data[2] = -40; + gSprites[gBattlerSpriteIds[gActiveBattler]].data[4] = gSprites[gBattlerSpriteIds[gActiveBattler]].pos1.y; + gSprites[gBattlerSpriteIds[gActiveBattler]].callback = StartAnimLinearTranslation; + gSprites[gBattlerSpriteIds[gActiveBattler]].data[5] = gActiveBattler; + StoreSpriteCallbackInData6(&gSprites[gBattlerSpriteIds[gActiveBattler]], sub_80335F8); + StartSpriteAnim(&gSprites[gBattlerSpriteIds[gActiveBattler]], 1); + paletteNum = AllocSpritePalette(0xD6F8); + LoadCompressedPalette(gTrainerBackPicPaletteTable[gSaveBlock2Ptr->playerGender].data, 0x100 + paletteNum * 16, 32); + gSprites[gBattlerSpriteIds[gActiveBattler]].oam.paletteNum = paletteNum; + taskId = CreateTask(sub_80EB0A8, 5); + gTasks[taskId].data[0] = gActiveBattler; + if (gBattleSpritesDataPtr->healthBoxesData[gActiveBattler].partyStatusSummaryShown) + gTasks[gBattlerStatusSummaryTaskId[gActiveBattler]].func = Task_HidePartyStatusSummary; + gBattleSpritesDataPtr->animationData->field_9_x1 = 1; + gBattlerControllerFuncs[gActiveBattler] = nullsub_13; + } + else + { + if (gBattleSpritesDataPtr->healthBoxesData[gActiveBattler].partyStatusSummaryShown) + gTasks[gBattlerStatusSummaryTaskId[gActiveBattler]].func = Task_HidePartyStatusSummary; + OakOldManBufferExecCompleted(); + } +} + +static void sub_80EAF34(u8 battlerId) +{ + u16 species; + + gBattleSpritesDataPtr->battlerData[battlerId].transformSpecies = SPECIES_NONE; + gBattlerPartyIndexes[battlerId] = gBattleBufferA[battlerId][1]; + species = GetMonData(&gPlayerParty[gBattlerPartyIndexes[battlerId]], MON_DATA_SPECIES); + gUnknown_3004FFC[battlerId] = CreateInvisibleSpriteWithCallback(sub_8033E3C); + SetMultiuseSpriteTemplateToPokemon(species, GetBattlerPosition(battlerId)); + gBattlerSpriteIds[battlerId] = CreateSprite(&gMultiuseSpriteTemplate, + GetBattlerSpriteCoord(battlerId, 2), + GetBattlerSpriteDefault_Y(battlerId), + GetBattlerSpriteSubpriority(battlerId)); + gSprites[gUnknown_3004FFC[battlerId]].data[1] = gBattlerSpriteIds[battlerId]; + gSprites[gBattlerSpriteIds[battlerId]].data[0] = battlerId; + gSprites[gBattlerSpriteIds[battlerId]].data[2] = species; + gSprites[gBattlerSpriteIds[battlerId]].oam.paletteNum = battlerId; + StartSpriteAnim(&gSprites[gBattlerSpriteIds[battlerId]], gBattleMonForms[battlerId]); + gSprites[gBattlerSpriteIds[battlerId]].invisible = TRUE; + gSprites[gBattlerSpriteIds[battlerId]].callback = SpriteCallbackDummy; + gSprites[gUnknown_3004FFC[battlerId]].data[0] = DoPokeballSendOutAnimation(0, POKEBALL_PLAYER_SENDOUT); +} + +static void sub_80EB0A8(u8 taskId) +{ + if (gTasks[taskId].data[1] < 31) + { + ++gTasks[taskId].data[1]; + } + else + { + u8 savedActiveBattler = gActiveBattler; + + gActiveBattler = gTasks[taskId].data[0]; + gBattleBufferA[gActiveBattler][1] = gBattlerPartyIndexes[gActiveBattler]; + sub_80EAF34(gActiveBattler); + gBattlerControllerFuncs[gActiveBattler] = sub_80E7B4C; + gActiveBattler = savedActiveBattler; + DestroyTask(taskId); + } +} + +static void OakOldManHandleDrawPartyStatusSummary(void) +{ + if (gBattleBufferA[gActiveBattler][1] != 0 + && GetBattlerSide(gActiveBattler) == B_SIDE_PLAYER) + { + OakOldManBufferExecCompleted(); + } + else + { + gBattleSpritesDataPtr->healthBoxesData[gActiveBattler].partyStatusSummaryShown = TRUE; + gBattlerStatusSummaryTaskId[gActiveBattler] = CreatePartyStatusSummarySprites(gActiveBattler, + (struct HpAndStatus *)&gBattleBufferA[gActiveBattler][4], + gBattleBufferA[gActiveBattler][1], + gBattleBufferA[gActiveBattler][2]); + OakOldManBufferExecCompleted(); + } +} + +static void OakOldManHandleHidePartyStatusSummary(void) +{ + OakOldManBufferExecCompleted(); +} + +static void OakOldManHandleEndBounceEffect(void) +{ + EndBounceEffect(gActiveBattler, BOUNCE_HEALTHBOX); + EndBounceEffect(gActiveBattler, BOUNCE_MON); + OakOldManBufferExecCompleted(); +} + +static void OakOldManHandleSpriteInvisibility(void) +{ + OakOldManBufferExecCompleted(); +} + +static void OakOldManHandleBattleAnimation(void) +{ + u8 animationId = gBattleBufferA[gActiveBattler][1]; + u16 argument = gBattleBufferA[gActiveBattler][2] | (gBattleBufferA[gActiveBattler][3] << 8); + + if (TryHandleLaunchBattleTableAnimation(gActiveBattler, gActiveBattler, gActiveBattler, animationId, argument)) + OakOldManBufferExecCompleted(); + else + gBattlerControllerFuncs[gActiveBattler] = CompleteOnFinishedBattleAnimation; +} + +static void OakOldManHandleLinkStandbyMsg(void) +{ + switch (gBattleBufferA[gActiveBattler][1]) + { + case 0: + case 1: + EndBounceEffect(gActiveBattler, BOUNCE_HEALTHBOX); + EndBounceEffect(gActiveBattler, BOUNCE_MON); + break; + case 2: + break; + } + OakOldManBufferExecCompleted(); +} + +static void OakOldManHandleResetActionMoveSelection(void) +{ + OakOldManBufferExecCompleted(); +} + +static void OakOldManHandleCmd55(void) +{ + gBattleOutcome = gBattleBufferA[gActiveBattler][1]; + FadeOutMapMusic(5); + BeginFastPaletteFade(3); + OakOldManBufferExecCompleted(); + if (!(gBattleTypeFlags & BATTLE_TYPE_IS_MASTER) && gBattleTypeFlags & BATTLE_TYPE_LINK) + gBattlerControllerFuncs[gActiveBattler] = sub_80E7930; +} + +static void OakOldManCmdEnd(void) +{ +} + +bool8 sub_80EB2E0(u8 a1) +{ + return gBattleStruct->field_96 & a1; +} + +void sub_80EB2F4(u8 a1) +{ + gBattleStruct->field_96 |= a1; +} + +void sub_80EB30C(void) +{ + u32 width = 0x1A; + u32 pal = 7; + + FillBgTilemapBufferRect(0, 0x30, 0, 0xE, 1, 1, pal); + FillBgTilemapBufferRect(0, 0x31, 1, 0xE, 1, 1, pal); + FillBgTilemapBufferRect(0, 0x32, 2, 0xE, width, 1, pal); + FillBgTilemapBufferRect(0, 0x33, 0x1C, 0xE, 1, 1, pal); + FillBgTilemapBufferRect(0, 0x34, 0x1D, 0xE, 1, 1, pal); + FillBgTilemapBufferRect(0, 0x35, 0, 0xF, 1, 1, pal); + FillBgTilemapBufferRect(0, 0x36, 1, 0xF, 1, 1, pal); + FillBgTilemapBufferRect(0, 0x38, 0x1C, 0xF, 1, 1, pal); + FillBgTilemapBufferRect(0, 0x39, 0x1D, 0xF, 1, 1, pal); + FillBgTilemapBufferRect(0, 0x3A, 0, 0x10, 1, 1, pal); + FillBgTilemapBufferRect(0, 0x3B, 1, 0x10, 1, 1, pal); + FillBgTilemapBufferRect(0, 0x3C, 0x1C, 0x10, 1, 1, pal); + FillBgTilemapBufferRect(0, 0x3D, 0x1D, 0x10, 1, 1, pal); + FillBgTilemapBufferRect(0, BG_TILE_V_FLIP(0x3A), 0, 0x11, 1, 1, pal); + FillBgTilemapBufferRect(0, BG_TILE_V_FLIP(0x3B), 1, 0x11, 1, 1, pal); + FillBgTilemapBufferRect(0, BG_TILE_V_FLIP(0x3C), 0x1C, 0x11, 1, 1, pal); + FillBgTilemapBufferRect(0, BG_TILE_V_FLIP(0x3D), 0x1D, 0x11, 1, 1, pal); + FillBgTilemapBufferRect(0, BG_TILE_V_FLIP(0x35), 0, 0x12, 1, 1, pal); + FillBgTilemapBufferRect(0, BG_TILE_V_FLIP(0x36), 1, 0x12, 1, 1, pal); + FillBgTilemapBufferRect(0, BG_TILE_V_FLIP(0x38), 0x1C, 0x12, 1, 1, pal); + FillBgTilemapBufferRect(0, BG_TILE_V_FLIP(0x39), 0x1D, 0x12, 1, 1, pal); + FillBgTilemapBufferRect(0, BG_TILE_V_FLIP(0x30), 0, 0x13, 1, 1, pal); + FillBgTilemapBufferRect(0, BG_TILE_V_FLIP(0x31), 1, 0x13, 1, 1, pal); + FillBgTilemapBufferRect(0, BG_TILE_V_FLIP(0x32), 2, 0x13, width, 1, pal); + FillBgTilemapBufferRect(0, BG_TILE_V_FLIP(0x33), 0x1C, 0x13, 1, 1, pal); + FillBgTilemapBufferRect(0, BG_TILE_V_FLIP(0x34), 0x1D, 0x13, 1, 1, pal); +} + +void sub_80EB524(void) +{ + u32 pal = 0; + u32 width = 0x1A; + u32 height; + + FillBgTilemapBufferRect(0, 3, 0, 0xE, 1, 1, pal); + height = 4; + FillBgTilemapBufferRect(0, 4, 1, 0xE, 1, 1, pal); + FillBgTilemapBufferRect(0, 5, 2, 0xE, width, 1, pal); + FillBgTilemapBufferRect(0, 6, 0x1C, 0xE, 1, 1, pal); + FillBgTilemapBufferRect(0, 7, 0x1D, 0xE, 1, 1, pal); + FillBgTilemapBufferRect(0, 8, 0, 0xF, 1, height, pal); + FillBgTilemapBufferRect(0, 9, 1, 0xF, 1, height, pal); + FillBgTilemapBufferRect(0, 0xA, 2, 0xF, width, height, pal); + FillBgTilemapBufferRect(0, 0xB, 0x1C, 0xF, 1, height, pal); + FillBgTilemapBufferRect(0, 0xC, 0x1D, 0xF, 1, height, pal); + FillBgTilemapBufferRect(0, 0xD, 0, 0x13, 1, 1, pal); + FillBgTilemapBufferRect(0, 0xE, 1, 0x13, 1, 1, pal); + FillBgTilemapBufferRect(0, 0xF, 2, 0x13, width, 1, pal); + FillBgTilemapBufferRect(0, 0x10, 0x1C, 0x13, 1, 1, pal); + FillBgTilemapBufferRect(0, 0x11, 0x1D, 0x13, 1, 1, pal); +} diff --git a/src/battle_controller_opponent.c b/src/battle_controller_opponent.c index 794b83b73..a9173f1a9 100644 --- a/src/battle_controller_opponent.c +++ b/src/battle_controller_opponent.c @@ -45,7 +45,7 @@ static void OpponentHandleTrainerSlideBack(void); static void OpponentHandleFaintAnimation(void); static void OpponentHandlePaletteFade(void); static void OpponentHandleSuccessBallThrowAnim(void); -static void OpponentHandleBallThrow(void); +static void OpponentHandleBallThrowAnim(void); static void OpponentHandlePause(void); static void OpponentHandleMoveAnimation(void); static void OpponentHandlePrintString(void); @@ -116,7 +116,7 @@ static void (*const sOpponentBufferCommands[CONTROLLER_CMDS_COUNT])(void) = OpponentHandleFaintAnimation, OpponentHandlePaletteFade, OpponentHandleSuccessBallThrowAnim, - OpponentHandleBallThrow, + OpponentHandleBallThrowAnim, OpponentHandlePause, OpponentHandleMoveAnimation, OpponentHandlePrintString, @@ -1231,7 +1231,7 @@ static void OpponentHandleSuccessBallThrowAnim(void) OpponentBufferExecCompleted(); } -static void OpponentHandleBallThrow(void) +static void OpponentHandleBallThrowAnim(void) { OpponentBufferExecCompleted(); } diff --git a/src/battle_controller_player.c b/src/battle_controller_player.c index a9bb5bc6e..f8d5958ba 100644 --- a/src/battle_controller_player.c +++ b/src/battle_controller_player.c @@ -839,7 +839,7 @@ void sub_802F6A8(void) else { m4aSongNumStop(SE_HINSI); - gMain.inBattle = 0; + gMain.inBattle = FALSE; gMain.callback1 = gPreBattleCallback1; SetMainCallback2(gMain.savedCallback); } @@ -1318,7 +1318,6 @@ static void WaitForMonSelection(void) BtlController_EmitChosenMonReturnValue(1, gUnknown_203B0C1, gUnknown_203B0DC); else BtlController_EmitChosenMonReturnValue(1, 6, NULL); - if ((gBattleBufferA[gActiveBattler][1] & 0xF) == 1) PrintLinkStandbyMsg(); PlayerBufferExecCompleted(); diff --git a/src/battle_controllers.c b/src/battle_controllers.c index 544af1006..f3530fc4b 100644 --- a/src/battle_controllers.c +++ b/src/battle_controllers.c @@ -85,9 +85,9 @@ static void InitSinglePlayerBtlControllers(void) gBattleMainFunc = BeginBattleIntro; if (gBattleTypeFlags & BATTLE_TYPE_POKEDUDE) { - gBattlerControllerFuncs[0] = SetControllerToPokedude; + gBattlerControllerFuncs[0] = SetControllerToPokeDude; gBattlerPositions[0] = B_POSITION_PLAYER_LEFT; - gBattlerControllerFuncs[1] = SetControllerToPokedude; + gBattlerControllerFuncs[1] = SetControllerToPokeDude; gBattlerPositions[1] = B_POSITION_OPPONENT_LEFT; gBattlersCount = 2; } @@ -95,8 +95,8 @@ static void InitSinglePlayerBtlControllers(void) { if (gBattleTypeFlags & BATTLE_TYPE_SAFARI) gBattlerControllerFuncs[0] = SetControllerToSafari; - else if (gBattleTypeFlags & (BATTLE_TYPE_OLDMAN_TUTORIAL | BATTLE_TYPE_FIRST_BATTLE)) - gBattlerControllerFuncs[0] = SetControllerToOakOrOldman; + else if (gBattleTypeFlags & (BATTLE_TYPE_OLD_MAN_TUTORIAL | BATTLE_TYPE_FIRST_BATTLE)) + gBattlerControllerFuncs[0] = SetControllerToOakOrOldMan; else gBattlerControllerFuncs[0] = SetControllerToPlayer; gBattlerPositions[0] = B_POSITION_PLAYER_LEFT; @@ -110,13 +110,13 @@ static void InitSinglePlayerBtlControllers(void) gBattleMainFunc = BeginBattleIntro; if (gBattleTypeFlags & BATTLE_TYPE_POKEDUDE) { - gBattlerControllerFuncs[0] = SetControllerToPokedude; + gBattlerControllerFuncs[0] = SetControllerToPokeDude; gBattlerPositions[0] = B_POSITION_PLAYER_LEFT; - gBattlerControllerFuncs[1] = SetControllerToPokedude; + gBattlerControllerFuncs[1] = SetControllerToPokeDude; gBattlerPositions[1] = B_POSITION_OPPONENT_LEFT; - gBattlerControllerFuncs[2] = SetControllerToPokedude; + gBattlerControllerFuncs[2] = SetControllerToPokeDude; gBattlerPositions[2] = B_POSITION_PLAYER_RIGHT; - gBattlerControllerFuncs[3] = SetControllerToPokedude; + gBattlerControllerFuncs[3] = SetControllerToPokeDude; gBattlerPositions[3] = B_POSITION_OPPONENT_RIGHT; gBattlersCount = MAX_BATTLERS_COUNT; } @@ -774,7 +774,7 @@ void BtlController_EmitPrintSelectionString(u8 bufferId, u16 stringID) sBattleBuffersTransferData[1] = CONTROLLER_PRINTSTRINGPLAYERONLY; sBattleBuffersTransferData[2] = stringID; sBattleBuffersTransferData[3] = (stringID & 0xFF00) >> 8; - stringInfo = (struct BattleMsgData*)(&sBattleBuffersTransferData[4]); + stringInfo = (struct BattleMsgData *)(&sBattleBuffersTransferData[4]); stringInfo->currentMove = gCurrentMove; stringInfo->originallyUsedMove = gChosenMove; stringInfo->lastItem = gLastUsedItem; diff --git a/src/battle_main.c b/src/battle_main.c new file mode 100644 index 000000000..1b1614a5a --- /dev/null +++ b/src/battle_main.c @@ -0,0 +1,4412 @@ +#include "global.h" +#include "battle.h" +#include "battle_anim.h" +#include "battle_ai_script_commands.h" +#include "battle_controllers.h" +#include "battle_interface.h" +#include "battle_main.h" +#include "battle_message.h" +#include "battle_scripts.h" +#include "battle_setup.h" +#include "battle_tower.h" +#include "battle_string_ids.h" +#include "berry.h" +#include "bg.h" +#include "data.h" +#include "decompress.h" +#include "dma3.h" +#include "event_data.h" +#include "evolution_scene.h" +#include "graphics.h" +#include "gpu_regs.h" +#include "help_system.h" +#include "international_string_util.h" +#include "item.h" +#include "link.h" +#include "link_rfu.h" +#include "load_save.h" +#include "main.h" +#include "malloc.h" +#include "m4a.h" +#include "palette.h" +#include "party_menu.h" +#include "pokeball.h" +#include "pokedex.h" +#include "pokemon.h" +#include "quest_log.h" +#include "random.h" +#include "roamer.h" +#include "safari_zone.h" +#include "scanline_effect.h" +#include "sound.h" +#include "sprite.h" +#include "string_util.h" +#include "strings.h" +#include "task.h" +#include "text.h" +#include "trig.h" +#include "vs_seeker.h" +#include "util.h" +#include "window.h" +#include "cable_club.h" +#include "constants/abilities.h" +#include "constants/battle_move_effects.h" +#include "constants/hold_effects.h" +#include "constants/items.h" +#include "constants/moves.h" +#include "constants/pokemon.h" +#include "constants/songs.h" +#include "constants/species.h" +#include "constants/trainers.h" +#include "constants/trainer_classes.h" + +static void sub_80111EC(struct Sprite *sprite); +static void HandleAction_UseMove(void); +static void HandleAction_Switch(void); +static void HandleAction_UseItem(void); +static void HandleAction_Run(void); +static void HandleAction_WatchesCarefully(void); +static void HandleAction_SafariZoneBallThrow(void); +static void HandleAction_ThrowPokeblock(void); +static void HandleAction_GoNear(void); +static void HandleAction_SafariZoneRun(void); +static void HandleAction_OldManBallThrow(void); +static void HandleAction_TryFinish(void); +static void HandleAction_NothingIsFainted(void); +static void HandleAction_ActionFinished(void); +static void HandleEndTurn_ContinueBattle(void); +static void HandleEndTurn_BattleWon(void); +static void HandleEndTurn_BattleLost(void); +static void HandleEndTurn_RanFromBattle(void); +static void HandleEndTurn_MonFled(void); +static void HandleEndTurn_FinishBattle(void); +static void CB2_InitBattleInternal(void); +static void CB2_PreInitMultiBattle(void); +static void CB2_HandleStartMultiBattle(void); +static u8 CreateNPCTrainerParty(struct Pokemon *party, u16 trainerNum); +static void CB2_HandleStartBattle(void); +static void TryCorrectShedinjaLanguage(struct Pokemon *mon); +static void BattleMainCB1(void); +static void CB2_QuitPokeDudeBattle(void); +static void sub_80111FC(struct Sprite *sprite); +static void sub_8011B94(void); +static void sub_8011BB0(void); +static void SpriteCB_MoveWildMonToRight(struct Sprite *sprite); +static void SpriteCB_WildMonShowHealthbox(struct Sprite *sprite); +static void sub_8011E3C(struct Sprite *sprite); +static void SpriteCB_AnimFaintOpponent(struct Sprite *sprite); +static void sub_8012060(struct Sprite *sprite); +static void oac_poke_ally_(struct Sprite *sprite); +static void SpriteCallbackDummy3(struct Sprite *sprite); +static void SpriteCB_BounceEffect(struct Sprite *sprite); +static void sub_8012398(struct Sprite *sprite); +static void BattleStartClearSetData(void); +static void BattleIntroGetMonsData(void); +static void TurnValuesCleanUp(bool8 var0); +static void SpecialStatusesClear(void); +static void BattleIntroPrepareBackgroundSlide(void); +static void BattleIntroDrawTrainersOrMonsSprites(void); +static void BattleIntroDrawPartySummaryScreens(void); +static void BattleIntroPrintTrainerWantsToBattle(void); +static void BattleIntroPrintWildMonAttacked(void); +static void BattleIntroPrintOpponentSendsOut(void); +static void BattleIntroPrintPlayerSendsOut(void); +static void BattleIntroRecordMonsToDex(void); +static void BattleIntroOpponentSendsOutMonAnimation(void); +static void BattleIntroPlayerSendsOutMonAnimation(void); +static void TryDoEventsBeforeFirstTurn(void); +static void HandleTurnActionSelectionState(void); +static void RunTurnActionsFunctions(void); +static void SetActionsAndBattlersTurnOrder(void); +static void CheckFocusPunch_ClearVarsBeforeTurnStarts(void); +static void HandleEndTurn_FinishBattle(void); +static void FreeResetData_ReturnToOvOrDoEvolutions(void); +static void ReturnFromBattleToOverworld(void); +static void TryEvolvePokemon(void); +static void WaitForEvoSceneToFinish(void); + +EWRAM_DATA u16 gBattle_BG0_X = 0; +EWRAM_DATA u16 gBattle_BG0_Y = 0; +EWRAM_DATA u16 gBattle_BG1_X = 0; +EWRAM_DATA u16 gBattle_BG1_Y = 0; +EWRAM_DATA u16 gBattle_BG2_X = 0; +EWRAM_DATA u16 gBattle_BG2_Y = 0; +EWRAM_DATA u16 gBattle_BG3_X = 0; +EWRAM_DATA u16 gBattle_BG3_Y = 0; +EWRAM_DATA u16 gBattle_WIN0H = 0; +EWRAM_DATA u16 gBattle_WIN0V = 0; +EWRAM_DATA u16 gBattle_WIN1H = 0; +EWRAM_DATA u16 gBattle_WIN1V = 0; +EWRAM_DATA u8 gDisplayedStringBattle[300] = {0}; +EWRAM_DATA u8 gBattleTextBuff1[TEXT_BUFF_ARRAY_COUNT] = {0}; +EWRAM_DATA u8 gBattleTextBuff2[TEXT_BUFF_ARRAY_COUNT] = {0}; +EWRAM_DATA u8 gBattleTextBuff3[TEXT_BUFF_ARRAY_COUNT] = {0}; +static EWRAM_DATA u32 gUnknown_2022AE8[25] = {0}; +EWRAM_DATA u32 gBattleTypeFlags = 0; +EWRAM_DATA u8 gBattleTerrain = 0; +EWRAM_DATA u32 gUnknown_2022B54 = 0; +EWRAM_DATA struct UnknownPokemonStruct4 gUnknown_2022B58[3] = {0}; +EWRAM_DATA u8 *gUnknown_2022BB8 = NULL; +EWRAM_DATA u8 *gUnknown_2022BBC = NULL; +EWRAM_DATA u16 *gUnknown_2022BC0 = NULL; +EWRAM_DATA u8 gBattleBufferA[MAX_BATTLERS_COUNT][0x200] = {0}; +EWRAM_DATA u8 gBattleBufferB[MAX_BATTLERS_COUNT][0x200] = {0}; +EWRAM_DATA u8 gActiveBattler = 0; +EWRAM_DATA u32 gBattleControllerExecFlags = 0; +EWRAM_DATA u8 gBattlersCount = 0; +EWRAM_DATA u16 gBattlerPartyIndexes[MAX_BATTLERS_COUNT] = {0}; +EWRAM_DATA u8 gBattlerPositions[MAX_BATTLERS_COUNT] = {0}; +EWRAM_DATA u8 gActionsByTurnOrder[MAX_BATTLERS_COUNT] = {0}; +EWRAM_DATA u8 gBattlerByTurnOrder[MAX_BATTLERS_COUNT] = {0}; +EWRAM_DATA u8 gCurrentTurnActionNumber = 0; +EWRAM_DATA u8 gCurrentActionFuncId = 0; +EWRAM_DATA struct BattlePokemon gBattleMons[MAX_BATTLERS_COUNT] = {0}; +EWRAM_DATA u8 gBattlerSpriteIds[MAX_BATTLERS_COUNT] = {0}; +EWRAM_DATA u8 gCurrMovePos = 0; +EWRAM_DATA u8 gChosenMovePos = 0; +EWRAM_DATA u16 gCurrentMove = 0; +EWRAM_DATA u16 gChosenMove = 0; +EWRAM_DATA u16 gCalledMove = 0; +EWRAM_DATA s32 gBattleMoveDamage = 0; +EWRAM_DATA s32 gHpDealt = 0; +EWRAM_DATA s32 gTakenDmg[MAX_BATTLERS_COUNT] = {0}; +EWRAM_DATA u16 gLastUsedItem = 0; +EWRAM_DATA u8 gLastUsedAbility = 0; +EWRAM_DATA u8 gBattlerAttacker = 0; +EWRAM_DATA u8 gBattlerTarget = 0; +EWRAM_DATA u8 gBattlerFainted = 0; +EWRAM_DATA u8 gEffectBattler = 0; +EWRAM_DATA u8 gPotentialItemEffectBattler = 0; +EWRAM_DATA u8 gAbsentBattlerFlags = 0; +EWRAM_DATA u8 gCritMultiplier = 0; +EWRAM_DATA u8 gMultiHitCounter = 0; +EWRAM_DATA const u8 *gBattlescriptCurrInstr = NULL; +EWRAM_DATA u32 gUnusedBattleMainVar = 0; +EWRAM_DATA u8 gChosenActionByBattler[MAX_BATTLERS_COUNT] = {0}; +EWRAM_DATA const u8 *gSelectionBattleScripts[MAX_BATTLERS_COUNT] = {NULL}; +EWRAM_DATA u16 gLastPrintedMoves[MAX_BATTLERS_COUNT] = {0}; +EWRAM_DATA u16 gLastMoves[MAX_BATTLERS_COUNT] = {0}; +EWRAM_DATA u16 gLastLandedMoves[MAX_BATTLERS_COUNT] = {0}; +EWRAM_DATA u16 gLastHitByType[MAX_BATTLERS_COUNT] = {0}; +EWRAM_DATA u16 gLastResultingMoves[MAX_BATTLERS_COUNT] = {0}; +EWRAM_DATA u16 gLockedMoves[MAX_BATTLERS_COUNT] = {0}; +EWRAM_DATA u8 gLastHitBy[MAX_BATTLERS_COUNT] = {0}; +EWRAM_DATA u16 gChosenMoveByBattler[MAX_BATTLERS_COUNT] = {0}; +EWRAM_DATA u8 gMoveResultFlags = 0; +EWRAM_DATA u32 gHitMarker = 0; +static EWRAM_DATA u8 gUnknown_2023DD4[MAX_BATTLERS_COUNT] = {0}; +EWRAM_DATA u8 gTakenDmgByBattler[MAX_BATTLERS_COUNT] = {0}; +EWRAM_DATA u8 gUnknown_2023DDC = 0; +EWRAM_DATA u16 gSideStatuses[2] = {0}; +EWRAM_DATA struct SideTimer gSideTimers[2] = {0}; +EWRAM_DATA u32 gStatuses3[MAX_BATTLERS_COUNT] = {0}; +EWRAM_DATA struct DisableStruct gDisableStructs[MAX_BATTLERS_COUNT] = {0}; +EWRAM_DATA u16 gPauseCounterBattle = 0; +EWRAM_DATA u16 gPaydayMoney = 0; +EWRAM_DATA u16 gRandomTurnNumber = 0; +EWRAM_DATA u8 gBattleCommunication[BATTLE_COMMUNICATION_ENTRIES_COUNT] = {0}; +EWRAM_DATA u8 gBattleOutcome = 0; +EWRAM_DATA struct ProtectStruct gProtectStructs[MAX_BATTLERS_COUNT] = {0}; +EWRAM_DATA struct SpecialStatus gSpecialStatuses[MAX_BATTLERS_COUNT] = {0}; +EWRAM_DATA u16 gBattleWeather = 0; +EWRAM_DATA struct WishFutureKnock gWishFutureKnock = {0}; +EWRAM_DATA u16 gIntroSlideFlags = 0; +EWRAM_DATA u8 gSentPokesToOpponent[2] = {0}; +EWRAM_DATA u16 gDynamicBasePower = 0; +EWRAM_DATA u16 gExpShareExp = 0; +EWRAM_DATA struct BattleEnigmaBerry gEnigmaBerries[MAX_BATTLERS_COUNT] = {0}; +EWRAM_DATA struct BattleScripting gBattleScripting = {0}; +EWRAM_DATA struct BattleStruct *gBattleStruct = NULL; +EWRAM_DATA u8 *gLinkBattleSendBuffer = NULL; +EWRAM_DATA u8 *gLinkBattleRecvBuffer = NULL; +EWRAM_DATA struct BattleResources *gBattleResources = NULL; +EWRAM_DATA u8 gActionSelectionCursor[MAX_BATTLERS_COUNT] = {0}; +EWRAM_DATA u8 gMoveSelectionCursor[MAX_BATTLERS_COUNT] = {0}; +EWRAM_DATA u8 gBattlerStatusSummaryTaskId[MAX_BATTLERS_COUNT] = {0}; +EWRAM_DATA u8 gBattlerInMenuId = 0; +EWRAM_DATA bool8 gDoingBattleAnim = FALSE; +EWRAM_DATA u32 gTransformedPersonalities[MAX_BATTLERS_COUNT] = {0}; +EWRAM_DATA struct BattleSpriteData *gBattleSpritesDataPtr = NULL; +EWRAM_DATA struct MonSpritesGfx *gMonSpritesGfxPtr = NULL; +EWRAM_DATA u16 gBattleMovePower = 0; +EWRAM_DATA u16 gMoveToLearn = 0; +EWRAM_DATA u8 gBattleMonForms[MAX_BATTLERS_COUNT] = {0}; + +void (*gPreBattleCallback1)(void); +void (*gBattleMainFunc)(void); +struct BattleResults gBattleResults; +u8 gLeveledUpInBattle; +void (*gBattlerControllerFuncs[MAX_BATTLERS_COUNT])(void); +u8 gHealthboxSpriteIds[MAX_BATTLERS_COUNT]; +u8 gMultiUsePlayerCursor; +u8 gNumberOfMovesToChoose; +u8 gUnknown_3004FFC[MAX_BATTLERS_COUNT]; + +static const struct ScanlineEffectParams sIntroScanlineParams16Bit = +{ + ®_BG3HOFS, SCANLINE_EFFECT_DMACNT_16BIT, 1 +}; + +const struct SpriteTemplate gUnknown_824EFF0 = +{ + .tileTag = 0, + .paletteTag = 0, + .oam = &gDummyOamData, + .anims = gDummySpriteAnimTable, + .images = NULL, + .affineAnims = gDummySpriteAffineAnimTable, + .callback = sub_80111EC, +}; + +static const u8 sText_ShedinjaJpnName[] = _("ヌケニン"); // Nukenin + +const struct OamData gOamData_824F010 = +{ + .y = 0, + .affineMode = ST_OAM_AFFINE_NORMAL, + .objMode = ST_OAM_OBJ_NORMAL, + .bpp = ST_OAM_4BPP, + .shape = SPRITE_SHAPE(64x64), + .x = 0, + .size = SPRITE_SIZE(64x64), + .tileNum = 0, + .priority = 2, + .paletteNum = 0, + .affineParam = 0, +}; + +const struct OamData gOamData_824F018 = +{ + .y = 0, + .affineMode = ST_OAM_AFFINE_NORMAL, + .objMode = ST_OAM_OBJ_NORMAL, + .bpp = ST_OAM_4BPP, + .shape = SPRITE_SHAPE(64x64), + .x = 0, + .size = SPRITE_SIZE(64x64), + .tileNum = 0, + .priority = 2, + .paletteNum = 2, + .affineParam = 0, +}; + +// not used +static const union AnimCmd gUnknown_824F020[] = +{ + ANIMCMD_FRAME(0, 5), + ANIMCMD_JUMP(0), +}; + +// not used +static const union AnimCmd *const gUnknown_824F028[] = +{ + gUnknown_824F020, +}; + +// not used +static const union AffineAnimCmd gUnknown_824F02C[] = +{ + AFFINEANIMCMD_FRAME(-0x10, 0x0, 0, 4), + AFFINEANIMCMD_FRAME(0x0, 0x0, 0, 0x3C), + AFFINEANIMCMD_JUMP(1), +}; + +// not used +static const union AffineAnimCmd *const gUnknown_824F044[] = +{ + gUnknown_824F02C, +}; + +static const s8 gUnknown_824F048[] = { -32, -16, -16, -32, -32, 0, 0, 0 }; + +// format: attacking type, defending type, damage multiplier +// the multiplier is a (decimal) fixed-point number: +// 20 is ×2.0 TYPE_MUL_SUPER_EFFECTIVE +// 10 is ×1.0 TYPE_MUL_NORMAL +// 05 is ×0.5 TYPE_MUL_NOT_EFFECTIVE +// 00 is ×0.0 TYPE_MUL_NO_EFFECT +const u8 gTypeEffectiveness[336] = +{ + TYPE_NORMAL, TYPE_ROCK, TYPE_MUL_NOT_EFFECTIVE, + TYPE_NORMAL, TYPE_STEEL, TYPE_MUL_NOT_EFFECTIVE, + TYPE_FIRE, TYPE_FIRE, TYPE_MUL_NOT_EFFECTIVE, + TYPE_FIRE, TYPE_WATER, TYPE_MUL_NOT_EFFECTIVE, + TYPE_FIRE, TYPE_GRASS, TYPE_MUL_SUPER_EFFECTIVE, + TYPE_FIRE, TYPE_ICE, TYPE_MUL_SUPER_EFFECTIVE, + TYPE_FIRE, TYPE_BUG, TYPE_MUL_SUPER_EFFECTIVE, + TYPE_FIRE, TYPE_ROCK, TYPE_MUL_NOT_EFFECTIVE, + TYPE_FIRE, TYPE_DRAGON, TYPE_MUL_NOT_EFFECTIVE, + TYPE_FIRE, TYPE_STEEL, TYPE_MUL_SUPER_EFFECTIVE, + TYPE_WATER, TYPE_FIRE, TYPE_MUL_SUPER_EFFECTIVE, + TYPE_WATER, TYPE_WATER, TYPE_MUL_NOT_EFFECTIVE, + TYPE_WATER, TYPE_GRASS, TYPE_MUL_NOT_EFFECTIVE, + TYPE_WATER, TYPE_GROUND, TYPE_MUL_SUPER_EFFECTIVE, + TYPE_WATER, TYPE_ROCK, TYPE_MUL_SUPER_EFFECTIVE, + TYPE_WATER, TYPE_DRAGON, TYPE_MUL_NOT_EFFECTIVE, + TYPE_ELECTRIC, TYPE_WATER, TYPE_MUL_SUPER_EFFECTIVE, + TYPE_ELECTRIC, TYPE_ELECTRIC, TYPE_MUL_NOT_EFFECTIVE, + TYPE_ELECTRIC, TYPE_GRASS, TYPE_MUL_NOT_EFFECTIVE, + TYPE_ELECTRIC, TYPE_GROUND, TYPE_MUL_NO_EFFECT, + TYPE_ELECTRIC, TYPE_FLYING, TYPE_MUL_SUPER_EFFECTIVE, + TYPE_ELECTRIC, TYPE_DRAGON, TYPE_MUL_NOT_EFFECTIVE, + TYPE_GRASS, TYPE_FIRE, TYPE_MUL_NOT_EFFECTIVE, + TYPE_GRASS, TYPE_WATER, TYPE_MUL_SUPER_EFFECTIVE, + TYPE_GRASS, TYPE_GRASS, TYPE_MUL_NOT_EFFECTIVE, + TYPE_GRASS, TYPE_POISON, TYPE_MUL_NOT_EFFECTIVE, + TYPE_GRASS, TYPE_GROUND, TYPE_MUL_SUPER_EFFECTIVE, + TYPE_GRASS, TYPE_FLYING, TYPE_MUL_NOT_EFFECTIVE, + TYPE_GRASS, TYPE_BUG, TYPE_MUL_NOT_EFFECTIVE, + TYPE_GRASS, TYPE_ROCK, TYPE_MUL_SUPER_EFFECTIVE, + TYPE_GRASS, TYPE_DRAGON, TYPE_MUL_NOT_EFFECTIVE, + TYPE_GRASS, TYPE_STEEL, TYPE_MUL_NOT_EFFECTIVE, + TYPE_ICE, TYPE_WATER, TYPE_MUL_NOT_EFFECTIVE, + TYPE_ICE, TYPE_GRASS, TYPE_MUL_SUPER_EFFECTIVE, + TYPE_ICE, TYPE_ICE, TYPE_MUL_NOT_EFFECTIVE, + TYPE_ICE, TYPE_GROUND, TYPE_MUL_SUPER_EFFECTIVE, + TYPE_ICE, TYPE_FLYING, TYPE_MUL_SUPER_EFFECTIVE, + TYPE_ICE, TYPE_DRAGON, TYPE_MUL_SUPER_EFFECTIVE, + TYPE_ICE, TYPE_STEEL, TYPE_MUL_NOT_EFFECTIVE, + TYPE_ICE, TYPE_FIRE, TYPE_MUL_NOT_EFFECTIVE, + TYPE_FIGHTING, TYPE_NORMAL, TYPE_MUL_SUPER_EFFECTIVE, + TYPE_FIGHTING, TYPE_ICE, TYPE_MUL_SUPER_EFFECTIVE, + TYPE_FIGHTING, TYPE_POISON, TYPE_MUL_NOT_EFFECTIVE, + TYPE_FIGHTING, TYPE_FLYING, TYPE_MUL_NOT_EFFECTIVE, + TYPE_FIGHTING, TYPE_PSYCHIC, TYPE_MUL_NOT_EFFECTIVE, + TYPE_FIGHTING, TYPE_BUG, TYPE_MUL_NOT_EFFECTIVE, + TYPE_FIGHTING, TYPE_ROCK, TYPE_MUL_SUPER_EFFECTIVE, + TYPE_FIGHTING, TYPE_DARK, TYPE_MUL_SUPER_EFFECTIVE, + TYPE_FIGHTING, TYPE_STEEL, TYPE_MUL_SUPER_EFFECTIVE, + TYPE_POISON, TYPE_GRASS, TYPE_MUL_SUPER_EFFECTIVE, + TYPE_POISON, TYPE_POISON, TYPE_MUL_NOT_EFFECTIVE, + TYPE_POISON, TYPE_GROUND, TYPE_MUL_NOT_EFFECTIVE, + TYPE_POISON, TYPE_ROCK, TYPE_MUL_NOT_EFFECTIVE, + TYPE_POISON, TYPE_GHOST, TYPE_MUL_NOT_EFFECTIVE, + TYPE_POISON, TYPE_STEEL, TYPE_MUL_NO_EFFECT, + TYPE_GROUND, TYPE_FIRE, TYPE_MUL_SUPER_EFFECTIVE, + TYPE_GROUND, TYPE_ELECTRIC, TYPE_MUL_SUPER_EFFECTIVE, + TYPE_GROUND, TYPE_GRASS, TYPE_MUL_NOT_EFFECTIVE, + TYPE_GROUND, TYPE_POISON, TYPE_MUL_SUPER_EFFECTIVE, + TYPE_GROUND, TYPE_FLYING, TYPE_MUL_NO_EFFECT, + TYPE_GROUND, TYPE_BUG, TYPE_MUL_NOT_EFFECTIVE, + TYPE_GROUND, TYPE_ROCK, TYPE_MUL_SUPER_EFFECTIVE, + TYPE_GROUND, TYPE_STEEL, TYPE_MUL_SUPER_EFFECTIVE, + TYPE_FLYING, TYPE_ELECTRIC, TYPE_MUL_NOT_EFFECTIVE, + TYPE_FLYING, TYPE_GRASS, TYPE_MUL_SUPER_EFFECTIVE, + TYPE_FLYING, TYPE_FIGHTING, TYPE_MUL_SUPER_EFFECTIVE, + TYPE_FLYING, TYPE_BUG, TYPE_MUL_SUPER_EFFECTIVE, + TYPE_FLYING, TYPE_ROCK, TYPE_MUL_NOT_EFFECTIVE, + TYPE_FLYING, TYPE_STEEL, TYPE_MUL_NOT_EFFECTIVE, + TYPE_PSYCHIC, TYPE_FIGHTING, TYPE_MUL_SUPER_EFFECTIVE, + TYPE_PSYCHIC, TYPE_POISON, TYPE_MUL_SUPER_EFFECTIVE, + TYPE_PSYCHIC, TYPE_PSYCHIC, TYPE_MUL_NOT_EFFECTIVE, + TYPE_PSYCHIC, TYPE_DARK, TYPE_MUL_NO_EFFECT, + TYPE_PSYCHIC, TYPE_STEEL, TYPE_MUL_NOT_EFFECTIVE, + TYPE_BUG, TYPE_FIRE, TYPE_MUL_NOT_EFFECTIVE, + TYPE_BUG, TYPE_GRASS, TYPE_MUL_SUPER_EFFECTIVE, + TYPE_BUG, TYPE_FIGHTING, TYPE_MUL_NOT_EFFECTIVE, + TYPE_BUG, TYPE_POISON, TYPE_MUL_NOT_EFFECTIVE, + TYPE_BUG, TYPE_FLYING, TYPE_MUL_NOT_EFFECTIVE, + TYPE_BUG, TYPE_PSYCHIC, TYPE_MUL_SUPER_EFFECTIVE, + TYPE_BUG, TYPE_GHOST, TYPE_MUL_NOT_EFFECTIVE, + TYPE_BUG, TYPE_DARK, TYPE_MUL_SUPER_EFFECTIVE, + TYPE_BUG, TYPE_STEEL, TYPE_MUL_NOT_EFFECTIVE, + TYPE_ROCK, TYPE_FIRE, TYPE_MUL_SUPER_EFFECTIVE, + TYPE_ROCK, TYPE_ICE, TYPE_MUL_SUPER_EFFECTIVE, + TYPE_ROCK, TYPE_FIGHTING, TYPE_MUL_NOT_EFFECTIVE, + TYPE_ROCK, TYPE_GROUND, TYPE_MUL_NOT_EFFECTIVE, + TYPE_ROCK, TYPE_FLYING, TYPE_MUL_SUPER_EFFECTIVE, + TYPE_ROCK, TYPE_BUG, TYPE_MUL_SUPER_EFFECTIVE, + TYPE_ROCK, TYPE_STEEL, TYPE_MUL_NOT_EFFECTIVE, + TYPE_GHOST, TYPE_NORMAL, TYPE_MUL_NO_EFFECT, + TYPE_GHOST, TYPE_PSYCHIC, TYPE_MUL_SUPER_EFFECTIVE, + TYPE_GHOST, TYPE_DARK, TYPE_MUL_NOT_EFFECTIVE, + TYPE_GHOST, TYPE_STEEL, TYPE_MUL_NOT_EFFECTIVE, + TYPE_GHOST, TYPE_GHOST, TYPE_MUL_SUPER_EFFECTIVE, + TYPE_DRAGON, TYPE_DRAGON, TYPE_MUL_SUPER_EFFECTIVE, + TYPE_DRAGON, TYPE_STEEL, TYPE_MUL_NOT_EFFECTIVE, + TYPE_DARK, TYPE_FIGHTING, TYPE_MUL_NOT_EFFECTIVE, + TYPE_DARK, TYPE_PSYCHIC, TYPE_MUL_SUPER_EFFECTIVE, + TYPE_DARK, TYPE_GHOST, TYPE_MUL_SUPER_EFFECTIVE, + TYPE_DARK, TYPE_DARK, TYPE_MUL_NOT_EFFECTIVE, + TYPE_DARK, TYPE_STEEL, TYPE_MUL_NOT_EFFECTIVE, + TYPE_STEEL, TYPE_FIRE, TYPE_MUL_NOT_EFFECTIVE, + TYPE_STEEL, TYPE_WATER, TYPE_MUL_NOT_EFFECTIVE, + TYPE_STEEL, TYPE_ELECTRIC, TYPE_MUL_NOT_EFFECTIVE, + TYPE_STEEL, TYPE_ICE, TYPE_MUL_SUPER_EFFECTIVE, + TYPE_STEEL, TYPE_ROCK, TYPE_MUL_SUPER_EFFECTIVE, + TYPE_STEEL, TYPE_STEEL, TYPE_MUL_NOT_EFFECTIVE, + TYPE_FORESIGHT, TYPE_FORESIGHT, TYPE_MUL_NO_EFFECT, + TYPE_NORMAL, TYPE_GHOST, TYPE_MUL_NO_EFFECT, + TYPE_FIGHTING, TYPE_GHOST, TYPE_MUL_NO_EFFECT, + TYPE_ENDTABLE, TYPE_ENDTABLE, TYPE_MUL_NO_EFFECT +}; + +const u8 gTypeNames[][TYPE_NAME_LENGTH + 1] = +{ + _("NORMAL"), + _("FIGHT"), + _("FLYING"), + _("POISON"), + _("GROUND"), + _("ROCK"), + _("BUG"), + _("GHOST"), + _("STEEL"), + _("???"), + _("FIRE"), + _("WATER"), + _("GRASS"), + _("ELECTR"), + _("PSYCHC"), + _("ICE"), + _("DRAGON"), + _("DARK"), +}; + +// This is a factor in how much money you get for beating a trainer. +const struct TrainerMoney gTrainerMoneyTable[] = +{ + { CLASS_LEADER_2, 25 }, + { CLASS_ELITE_FOUR_2, 25 }, + { CLASS_PKMN_PROF, 25 }, + { CLASS_RIVAL, 4 }, + { CLASS_RIVAL_2, 9 }, + { CLASS_CHAMPION_2, 25 }, + { CLASS_YOUNGSTER_2, 4 }, + { CLASS_BUG_CATCHER_2, 3 }, + { CLASS_HIKER_2, 9 }, + { CLASS_BIRD_KEEPER_2, 6 }, + { CLASS_PICNICKER_2, 5 }, + { CLASS_SUPER_NERD, 6 }, + { CLASS_FISHERMAN_2, 9 }, + { CLASS_TEAM_ROCKET, 8 }, + { CLASS_LASS_2, 4 }, + { CLASS_BEAUTY_2, 18 }, + { CLASS_BLACK_BELT_2, 6 }, + { CLASS_CUE_BALL, 6 }, + { CLASS_CHANNELER, 8 }, + { CLASS_ROCKER, 6 }, + { CLASS_GENTLEMAN_2, 18 }, + { CLASS_BURGLAR, 22 }, + { CLASS_SWIMMER_MALE_2, 1 }, + { CLASS_ENGINEER, 12 }, + { CLASS_JUGGLER, 10 }, + { CLASS_SAILOR_2, 8 }, + { CLASS_COOLTRAINER_2, 9 }, + { CLASS_POKEMANIAC_2, 12 }, + { CLASS_TAMER, 10 }, + { CLASS_CAMPER_2, 5 }, + { CLASS_PSYCHIC_2, 5 }, + { CLASS_BIKER, 5 }, + { CLASS_GAMER, 18 }, + { CLASS_SCIENTIST, 12 }, + { CLASS_CRUSH_GIRL, 6 }, + { CLASS_TUBER_3, 1 }, + { CLASS_PKMN_BREEDER_2, 7 }, + { CLASS_PKMN_RANGER_2, 9 }, + { CLASS_AROMA_LADY_2, 7 }, + { CLASS_RUIN_MANIAC_2, 12 }, + { CLASS_LADY_2, 50 }, + { CLASS_PAINTER, 4 }, + { CLASS_TWINS_2, 3 }, + { CLASS_YOUNG_COUPLE_2, 7 }, + { CLASS_SIS_AND_BRO_2, 1 }, + { CLASS_COOL_COUPLE, 6 }, + { CLASS_CRUSH_KIN, 6 }, + { CLASS_SWIMMER_FEMALE_2, 1 }, + { CLASS_PLAYER, 1 }, + { CLASS_LEADER, 25 }, + { CLASS_ELITE_FOUR, 25 }, + { CLASS_LASS, 4 }, + { CLASS_YOUNGSTER, 4 }, + { CLASS_PKMN_TRAINER_3, 15 }, + { CLASS_HIKER, 10 }, + { CLASS_BEAUTY, 20 }, + { CLASS_FISHERMAN, 10 }, + { CLASS_LADY, 50 }, + { CLASS_TRIATHLETE, 10 }, + { CLASS_TEAM_AQUA, 5 }, + { CLASS_TWINS, 3 }, + { CLASS_SWIMMER_FEMALE, 2 }, + { CLASS_BUG_CATCHER, 4 }, + { CLASS_SCHOOL_KID, 5 }, + { CLASS_RICH_BOY, 50 }, + { CLASS_SR_AND_JR, 4 }, + { CLASS_BLACK_BELT, 8 }, + { CLASS_TUBER, 1 }, + { CLASS_HEX_MANIAC, 6 }, + { CLASS_PKMN_BREEDER, 10 }, + { CLASS_TEAM_MAGMA, 5 }, + { CLASS_INTERVIEWER, 12 }, + { CLASS_TUBER_2, 1 }, + { CLASS_YOUNG_COUPLE, 8 }, + { CLASS_GUITARIST, 8 }, + { CLASS_GENTLEMAN, 20 }, + { CLASS_CHAMPION, 50 }, + { CLASS_MAGMA_LEADER, 20 }, + { CLASS_BATTLE_GIRL, 6 }, + { CLASS_SWIMMER_MALE, 2 }, + { CLASS_POKEFAN, 20 }, + { CLASS_EXPERT, 10 }, + { CLASS_DRAGON_TAMER, 12 }, + { CLASS_BIRD_KEEPER, 8 }, + { CLASS_NINJA_BOY, 3 }, + { CLASS_PARASOL_LADY, 10 }, + { CLASS_BUG_MANIAC, 15 }, + { CLASS_SAILOR, 8 }, + { CLASS_COLLECTOR, 15 }, + { CLASS_PKMN_RANGER, 12 }, + { CLASS_MAGMA_ADMIN, 10 }, + { CLASS_AROMA_LADY, 10 }, + { CLASS_RUIN_MANIAC, 15 }, + { CLASS_COOLTRAINER, 12 }, + { CLASS_POKEMANIAC, 15 }, + { CLASS_KINDLER, 8 }, + { CLASS_CAMPER, 4 }, + { CLASS_PICNICKER, 4 }, + { CLASS_PSYCHIC, 6 }, + { CLASS_SIS_AND_BRO, 3 }, + { CLASS_OLD_COUPLE, 10 }, + { CLASS_AQUA_ADMIN, 10 }, + { CLASS_AQUA_LEADER, 20 }, + { CLASS_BOSS, 25 }, + { 0xFF, 5 }, +}; + +#include "data/text/abilities.h" + +static void (*const sTurnActionsFuncsTable[])(void) = +{ + [B_ACTION_USE_MOVE] = HandleAction_UseMove, + [B_ACTION_USE_ITEM] = HandleAction_UseItem, + [B_ACTION_SWITCH] = HandleAction_Switch, + [B_ACTION_RUN] = HandleAction_Run, + [B_ACTION_SAFARI_WATCH_CAREFULLY] = HandleAction_WatchesCarefully, + [B_ACTION_SAFARI_BALL] = HandleAction_SafariZoneBallThrow, + [B_ACTION_SAFARI_POKEBLOCK] = HandleAction_ThrowPokeblock, + [B_ACTION_SAFARI_GO_NEAR] = HandleAction_GoNear, + [B_ACTION_SAFARI_RUN] = HandleAction_SafariZoneRun, + [B_ACTION_OLDMAN_THROW] = HandleAction_OldManBallThrow, + [B_ACTION_EXEC_SCRIPT] = HandleAction_RunBattleScript, + [B_ACTION_TRY_FINISH] = HandleAction_TryFinish, + [B_ACTION_FINISHED] = HandleAction_ActionFinished, + [B_ACTION_NOTHING_FAINTED] = HandleAction_NothingIsFainted, +}; + +static void (*const sEndTurnFuncsTable[])(void) = +{ + [0] = HandleEndTurn_ContinueBattle, //B_OUTCOME_NONE? + [B_OUTCOME_WON] = HandleEndTurn_BattleWon, + [B_OUTCOME_LOST] = HandleEndTurn_BattleLost, + [B_OUTCOME_DREW] = HandleEndTurn_BattleLost, + [B_OUTCOME_RAN] = HandleEndTurn_RanFromBattle, + [B_OUTCOME_PLAYER_TELEPORTED] = HandleEndTurn_FinishBattle, + [B_OUTCOME_MON_FLED] = HandleEndTurn_MonFled, + [B_OUTCOME_CAUGHT] = HandleEndTurn_FinishBattle, + [B_OUTCOME_NO_SAFARI_BALLS] = HandleEndTurn_FinishBattle, +}; + +const u8 gStatusConditionString_PoisonJpn[8] = _("ã©ã$$$$$"); +const u8 gStatusConditionString_SleepJpn[8] = _("ã­ã‚€ã‚Š$$$$"); +const u8 gStatusConditionString_ParalysisJpn[8] = _("ã¾ã²$$$$$"); +const u8 gStatusConditionString_BurnJpn[8] = _("ã‚„ã‘ã©$$$$"); +const u8 gStatusConditionString_IceJpn[8] = _("ã“ãŠã‚Š$$$$"); +const u8 gStatusConditionString_ConfusionJpn[8] = _("ã“んらん$$$"); +const u8 gStatusConditionString_LoveJpn[8] = _("メロメロ$$$"); + +const u8 *const gStatusConditionStringsTable[7][2] = +{ + { gStatusConditionString_PoisonJpn, gText_Poison }, + { gStatusConditionString_SleepJpn, gText_Sleep }, + { gStatusConditionString_ParalysisJpn, gText_Paralysis }, + { gStatusConditionString_BurnJpn, gText_Burn }, + { gStatusConditionString_IceJpn, gText_Ice }, + { gStatusConditionString_ConfusionJpn, gText_Confusion }, + { gStatusConditionString_LoveJpn, gText_Love } +}; + +void CB2_InitBattle(void) +{ + MoveSaveBlocks_ResetHeap(); + AllocateBattleResources(); + AllocateBattleSpritesData(); + AllocateMonSpritesGfx(); + if (gBattleTypeFlags & BATTLE_TYPE_MULTI) + { + HandleLinkBattleSetup(); + SetMainCallback2(CB2_PreInitMultiBattle); + gBattleCommunication[MULTIUSE_STATE] = 0; + } + else + { + CB2_InitBattleInternal(); + if (!(gBattleTypeFlags & BATTLE_TYPE_LINK)) + { + if (gBattleTypeFlags & BATTLE_TYPE_TRAINER) + { + if (gBattleTypeFlags & BATTLE_TYPE_DOUBLE) + HelpSystem_SetSomeVariable2(0x19); + else + HelpSystem_SetSomeVariable2(0x18); + } + else if (gBattleTypeFlags & BATTLE_TYPE_SAFARI) + { + HelpSystem_SetSomeVariable2(0x1A); + } + else + { + HelpSystem_SetSomeVariable2(0x17); + } + } + } +} + +static void CB2_InitBattleInternal(void) +{ + s32 i; + + SetHBlankCallback(NULL); + SetVBlankCallback(NULL); + CpuFill32(0, (void *)VRAM, VRAM_SIZE); + SetGpuReg(REG_OFFSET_MOSAIC, 0); + SetGpuReg(REG_OFFSET_WIN0H, WIN_RANGE(0, 0xF0)); + SetGpuReg(REG_OFFSET_WIN0V, WIN_RANGE(0x50, 0x51)); + SetGpuReg(REG_OFFSET_WININ, 0); + SetGpuReg(REG_OFFSET_WINOUT, 0); + gBattle_WIN0H = WIN_RANGE(0, 0xF0); + gBattle_WIN0V = WIN_RANGE(0x50, 0x51); + ScanlineEffect_Clear(); + for (i = 0; i < 80; ++i) + { + gScanlineEffectRegBuffers[0][i] = 0xF0; + gScanlineEffectRegBuffers[1][i] = 0xF0; + } + for (; i < 160; ++i) + { + gScanlineEffectRegBuffers[0][i] = 0xFF10; + gScanlineEffectRegBuffers[1][i] = 0xFF10; + } + ScanlineEffect_SetParams(sIntroScanlineParams16Bit); + ResetPaletteFade(); + gBattle_BG0_X = 0; + gBattle_BG0_Y = 0; + gBattle_BG1_X = 0; + gBattle_BG1_Y = 0; + gBattle_BG2_X = 0; + gBattle_BG2_Y = 0; + gBattle_BG3_X = 0; + gBattle_BG3_Y = 0; + gBattleTerrain = BattleSetup_GetTerrainId(); + sub_800F34C(); + LoadBattleTextboxAndBackground(); + ResetSpriteData(); + ResetTasks(); + DrawBattleEntryBackground(); + FreeAllSpritePalettes(); + gReservedSpritePaletteCount = 4; + SetVBlankCallback(VBlankCB_Battle); + SetUpBattleVars(); + if (gBattleTypeFlags & BATTLE_TYPE_MULTI) + SetMainCallback2(CB2_HandleStartMultiBattle); + else + SetMainCallback2(CB2_HandleStartBattle); + if (!(gBattleTypeFlags & BATTLE_TYPE_LINK)) + { + CreateNPCTrainerParty(&gEnemyParty[0], gTrainerBattleOpponent_A); + SetWildMonHeldItem(); + } + gMain.inBattle = TRUE; + for (i = 0; i < PARTY_SIZE; ++i) + AdjustFriendship(&gPlayerParty[i], 3); + gBattleCommunication[MULTIUSE_STATE] = 0; +} + +static void sub_800FFEC(void) +{ + u16 r6 = 0; + u16 species = SPECIES_NONE; + u16 hp = 0; + u32 status = 0; + s32 i; + + for (i = 0; i < PARTY_SIZE; ++i) + { + species = GetMonData(&gPlayerParty[i], MON_DATA_SPECIES2); + hp = GetMonData(&gPlayerParty[i], MON_DATA_HP); + status = GetMonData(&gPlayerParty[i], MON_DATA_STATUS); + if (species == SPECIES_NONE) + continue; + if (species != SPECIES_EGG && hp != 0 && status == 0) + r6 |= 1 << i * 2; + if (species == SPECIES_NONE) + continue; + if (hp != 0 && (species == SPECIES_EGG || status != 0)) + r6 |= 2 << i * 2; + if (species == SPECIES_NONE) + continue; + if (species != SPECIES_EGG && hp == 0) + r6 |= 3 << i * 2; + } + gBattleStruct->field_186 = r6; + *(&gBattleStruct->field_187) = r6 >> 8; +} + +static void SetPlayerBerryDataInBattleStruct(void) +{ + s32 i; + struct BattleStruct *battleStruct = gBattleStruct; + struct BattleEnigmaBerry *battleBerry = &battleStruct->battleEnigmaBerry; + + if (IsEnigmaBerryValid() == TRUE) + { + for (i = 0; i < BERRY_NAME_LENGTH; ++i) + battleBerry->name[i] = gSaveBlock1Ptr->enigmaBerry.berry.name[i]; + battleBerry->name[i] = EOS; + for (i = 0; i < BERRY_ITEM_EFFECT_COUNT; ++i) + battleBerry->itemEffect[i] = gSaveBlock1Ptr->enigmaBerry.itemEffect[i]; + battleBerry->holdEffect = gSaveBlock1Ptr->enigmaBerry.holdEffect; + battleBerry->holdEffectParam = gSaveBlock1Ptr->enigmaBerry.holdEffectParam; + } + else + { + const struct Berry *berryData = GetBerryInfo(ItemIdToBerryType(ITEM_ENIGMA_BERRY)); + + for (i = 0; i < BERRY_NAME_LENGTH; ++i) + battleBerry->name[i] = berryData->name[i]; + battleBerry->name[i] = EOS; + for (i = 0; i < BERRY_ITEM_EFFECT_COUNT; ++i) + battleBerry->itemEffect[i] = 0; + battleBerry->holdEffect = HOLD_EFFECT_NONE; + battleBerry->holdEffectParam = 0; + } +} + +static void SetAllPlayersBerryData(void) +{ + s32 i, j; + + if (!(gBattleTypeFlags & BATTLE_TYPE_LINK)) + { + if (IsEnigmaBerryValid() == TRUE) + { + for (i = 0; i < BERRY_NAME_LENGTH; ++i) + { + gEnigmaBerries[0].name[i] = gSaveBlock1Ptr->enigmaBerry.berry.name[i]; + gEnigmaBerries[2].name[i] = gSaveBlock1Ptr->enigmaBerry.berry.name[i]; + } + gEnigmaBerries[0].name[i] = EOS; + gEnigmaBerries[2].name[i] = EOS; + for (i = 0; i < BERRY_ITEM_EFFECT_COUNT; ++i) + { + gEnigmaBerries[0].itemEffect[i] = gSaveBlock1Ptr->enigmaBerry.itemEffect[i]; + gEnigmaBerries[2].itemEffect[i] = gSaveBlock1Ptr->enigmaBerry.itemEffect[i]; + } + gEnigmaBerries[0].holdEffect = gSaveBlock1Ptr->enigmaBerry.holdEffect; + gEnigmaBerries[2].holdEffect = gSaveBlock1Ptr->enigmaBerry.holdEffect; + gEnigmaBerries[0].holdEffectParam = gSaveBlock1Ptr->enigmaBerry.holdEffectParam; + gEnigmaBerries[2].holdEffectParam = gSaveBlock1Ptr->enigmaBerry.holdEffectParam; + } + else + { + const struct Berry *berryData = GetBerryInfo(ItemIdToBerryType(ITEM_ENIGMA_BERRY)); + + for (i = 0; i < BERRY_NAME_LENGTH; ++i) + { + gEnigmaBerries[0].name[i] = berryData->name[i]; + gEnigmaBerries[2].name[i] = berryData->name[i]; + } + gEnigmaBerries[0].name[i] = EOS; + gEnigmaBerries[2].name[i] = EOS; + for (i = 0; i < BERRY_ITEM_EFFECT_COUNT; ++i) + { + gEnigmaBerries[0].itemEffect[i] = 0; + gEnigmaBerries[2].itemEffect[i] = 0; + } + gEnigmaBerries[0].holdEffect = HOLD_EFFECT_NONE; + gEnigmaBerries[2].holdEffect = HOLD_EFFECT_NONE; + gEnigmaBerries[0].holdEffectParam = 0; + gEnigmaBerries[2].holdEffectParam = 0; + } + } + else + { + s32 numPlayers; + struct BattleEnigmaBerry *src; + u8 battlerId; + + if (gBattleTypeFlags & BATTLE_TYPE_MULTI) + { + for (i = 0; i < 4; ++i) + { + src = (struct BattleEnigmaBerry *)(gBlockRecvBuffer[i] + 2); + battlerId = gLinkPlayers[i].id; + for (j = 0; j < BERRY_NAME_LENGTH; ++j) + gEnigmaBerries[battlerId].name[j] = src->name[j]; + gEnigmaBerries[battlerId].name[j] = EOS; + for (j = 0; j < BERRY_ITEM_EFFECT_COUNT; ++j) + gEnigmaBerries[battlerId].itemEffect[j] = src->itemEffect[j]; + gEnigmaBerries[battlerId].holdEffect = src->holdEffect; + gEnigmaBerries[battlerId].holdEffectParam = src->holdEffectParam; + } + } + else + { + for (i = 0; i < 2; ++i) + { + src = (struct BattleEnigmaBerry *)(gBlockRecvBuffer[i] + 2); + for (j = 0; j < BERRY_NAME_LENGTH; ++j) + { + gEnigmaBerries[i].name[j] = src->name[j]; + gEnigmaBerries[i + 2].name[j] = src->name[j]; + } + gEnigmaBerries[i].name[j] = EOS; + gEnigmaBerries[i + 2].name[j] = EOS; + for (j = 0; j < BERRY_ITEM_EFFECT_COUNT; ++j) + { + gEnigmaBerries[i].itemEffect[j] = src->itemEffect[j]; + gEnigmaBerries[i + 2].itemEffect[j] = src->itemEffect[j]; + } + gEnigmaBerries[i].holdEffect = src->holdEffect; + gEnigmaBerries[i + 2].holdEffect = src->holdEffect; + gEnigmaBerries[i].holdEffectParam = src->holdEffectParam; + gEnigmaBerries[i + 2].holdEffectParam = src->holdEffectParam; + } + } + } +} + +static void sub_8010414(u8 arg0, u8 arg1) +{ + u8 var = 0; + + if (gBlockRecvBuffer[0][0] == 256) + { + if (arg1 == 0) + gBattleTypeFlags |= BATTLE_TYPE_IS_MASTER | BATTLE_TYPE_TRAINER; + else + gBattleTypeFlags |= BATTLE_TYPE_TRAINER; + ++var; + } + if (var == 0) + { + s32 i; + + for (i = 0; i < arg0; ++i) + if (gBlockRecvBuffer[0][0] != gBlockRecvBuffer[i][0]) + break; + if (i == arg0) + { + if (arg1 == 0) + gBattleTypeFlags |= BATTLE_TYPE_IS_MASTER | BATTLE_TYPE_TRAINER; + else + gBattleTypeFlags |= BATTLE_TYPE_TRAINER; + ++var; + } + if (var == 0) + { + for (i = 0; i < arg0; ++i) + { + if (gBlockRecvBuffer[i][0] == 0x201) + if (i != arg1 && i < arg1) + break; + if (gBlockRecvBuffer[i][0] > 0x201 && i != arg1) + break; + } + if (i == arg0) + gBattleTypeFlags |= BATTLE_TYPE_IS_MASTER | BATTLE_TYPE_TRAINER; + else + gBattleTypeFlags |= BATTLE_TYPE_TRAINER; + } + } +} + +static void CB2_HandleStartBattle(void) +{ + u8 playerMultiplayerId; + u8 enemyMultiplayerId; + + RunTasks(); + AnimateSprites(); + BuildOamBuffer(); + playerMultiplayerId = GetMultiplayerId(); + gBattleStruct->multiplayerId = playerMultiplayerId; + enemyMultiplayerId = playerMultiplayerId ^ BIT_SIDE; + switch (gBattleCommunication[MULTIUSE_STATE]) + { + case 0: + if (!IsDma3ManagerBusyWithBgCopy()) + { + ShowBg(0); + ShowBg(1); + ShowBg(2); + ShowBg(3); + sub_80357C8(); + gBattleCommunication[MULTIUSE_STATE] = 1; + } + if (gWirelessCommType) + LoadWirelessStatusIndicatorSpriteGfx(); + break; + case 1: + if (gBattleTypeFlags & BATTLE_TYPE_LINK) + { + if (gReceivedRemoteLinkPlayers != 0) + { + if (IsLinkTaskFinished()) + { + *(&gBattleStruct->field_184) = 1; + *(&gBattleStruct->field_185) = 2; + sub_800FFEC(); + SetPlayerBerryDataInBattleStruct(); + SendBlock(bitmask_all_link_players_but_self(), &gBattleStruct->field_184, 32); + gBattleCommunication[MULTIUSE_STATE] = 2; + } + if (gWirelessCommType != 0) + CreateWirelessStatusIndicatorSprite(0, 0); + } + } + else + { + gBattleTypeFlags |= BATTLE_TYPE_IS_MASTER; + gBattleCommunication[MULTIUSE_STATE] = 15; + SetAllPlayersBerryData(); + } + break; + case 2: + if ((GetBlockReceivedStatus() & 3) == 3) + { + u8 taskId; + + ResetBlockReceivedFlags(); + sub_8010414(2, playerMultiplayerId); + SetAllPlayersBerryData(); + taskId = CreateTask(sub_800F6FC, 0); + gTasks[taskId].data[1] = 270; + gTasks[taskId].data[2] = 90; + gTasks[taskId].data[5] = 0; + gTasks[taskId].data[3] = gBattleStruct->field_186 | (gBattleStruct->field_187 << 8); + gTasks[taskId].data[4] = gBlockRecvBuffer[enemyMultiplayerId][1]; + SetDeoxysStats(); + ++gBattleCommunication[MULTIUSE_STATE]; + } + break; + case 3: + if (IsLinkTaskFinished()) + { + SendBlock(bitmask_all_link_players_but_self(), gPlayerParty, sizeof(struct Pokemon) * 2); + ++gBattleCommunication[MULTIUSE_STATE]; + } + break; + case 4: + if ((GetBlockReceivedStatus() & 3) == 3) + { + ResetBlockReceivedFlags(); + memcpy(gEnemyParty, gBlockRecvBuffer[enemyMultiplayerId], sizeof(struct Pokemon) * 2); + ++gBattleCommunication[MULTIUSE_STATE]; + } + break; + case 7: + if (IsLinkTaskFinished()) + { + SendBlock(bitmask_all_link_players_but_self(), gPlayerParty + 2, sizeof(struct Pokemon) * 2); + ++gBattleCommunication[MULTIUSE_STATE]; + } + break; + case 8: + if ((GetBlockReceivedStatus() & 3) == 3) + { + ResetBlockReceivedFlags(); + memcpy(gEnemyParty + 2, gBlockRecvBuffer[enemyMultiplayerId], sizeof(struct Pokemon) * 2); + ++gBattleCommunication[MULTIUSE_STATE]; + } + break; + case 11: + if (IsLinkTaskFinished()) + { + SendBlock(bitmask_all_link_players_but_self(), gPlayerParty + 4, sizeof(struct Pokemon) * 2); + ++gBattleCommunication[MULTIUSE_STATE]; + } + break; + case 12: + if ((GetBlockReceivedStatus() & 3) == 3) + { + ResetBlockReceivedFlags(); + memcpy(gEnemyParty + 4, gBlockRecvBuffer[enemyMultiplayerId], sizeof(struct Pokemon) * 2); + TryCorrectShedinjaLanguage(&gEnemyParty[0]); + TryCorrectShedinjaLanguage(&gEnemyParty[1]); + TryCorrectShedinjaLanguage(&gEnemyParty[2]); + TryCorrectShedinjaLanguage(&gEnemyParty[3]); + TryCorrectShedinjaLanguage(&gEnemyParty[4]); + TryCorrectShedinjaLanguage(&gEnemyParty[5]); + ++gBattleCommunication[MULTIUSE_STATE]; + } + break; + case 15: + sub_800D30C(); + ++gBattleCommunication[MULTIUSE_STATE]; + gBattleCommunication[SPRITES_INIT_STATE1] = 0; + gBattleCommunication[SPRITES_INIT_STATE2] = 0; + break; + case 16: + if (BattleInitAllSprites(&gBattleCommunication[SPRITES_INIT_STATE1], &gBattleCommunication[SPRITES_INIT_STATE2])) + { + gPreBattleCallback1 = gMain.callback1; + gMain.callback1 = BattleMainCB1; + SetMainCallback2(BattleMainCB2); + if (gBattleTypeFlags & BATTLE_TYPE_LINK) + { + gBattleTypeFlags |= BATTLE_TYPE_20; + } + } + break; + case 5: + case 9: + case 13: + ++gBattleCommunication[MULTIUSE_STATE]; + gBattleCommunication[1] = 1; + case 6: + case 10: + case 14: + if (--gBattleCommunication[1] == 0) + ++gBattleCommunication[MULTIUSE_STATE]; + break; + } +} + +static void sub_80108C4(void) +{ + s32 i, j; + u8 *nick, *cur; + + for (i = 0; i < 3; ++i) + { + gUnknown_2022B58[i].species = GetMonData(&gPlayerParty[i], MON_DATA_SPECIES); + gUnknown_2022B58[i].heldItem = GetMonData(&gPlayerParty[i], MON_DATA_HELD_ITEM); + nick = gUnknown_2022B58[i].nickname; + GetMonData(&gPlayerParty[i], MON_DATA_NICKNAME, nick); + gUnknown_2022B58[i].level = GetMonData(&gPlayerParty[i], MON_DATA_LEVEL); + gUnknown_2022B58[i].hp = GetMonData(&gPlayerParty[i], MON_DATA_HP); + gUnknown_2022B58[i].maxhp = GetMonData(&gPlayerParty[i], MON_DATA_MAX_HP); + gUnknown_2022B58[i].status = GetMonData(&gPlayerParty[i], MON_DATA_STATUS); + gUnknown_2022B58[i].personality = GetMonData(&gPlayerParty[i], MON_DATA_PERSONALITY); + gUnknown_2022B58[i].gender = GetMonGender(&gPlayerParty[i]); + StripExtCtrlCodes(nick); + if (GetMonData(&gPlayerParty[i], MON_DATA_LANGUAGE) != LANGUAGE_JAPANESE) + { + for (cur = nick, j = 0; cur[j] != EOS; ++j) + ; + while (j < 6) + cur[j++] = 0; + cur[j] = EOS; + } + } + memcpy(&gBattleStruct->field_184, gUnknown_2022B58, sizeof(gUnknown_2022B58)); +} + +static void CB2_PreInitMultiBattle(void) +{ + s32 i; + u8 playerMultiplierId; + u8 r4 = 0xF; + u16 *savedBattleTypeFlags; + void (**savedCallback)(void); + + playerMultiplierId = GetMultiplayerId(); + gBattleStruct->multiplayerId = playerMultiplierId; + savedCallback = &gBattleStruct->savedCallback; + savedBattleTypeFlags = &gBattleStruct->savedBattleTypeFlags; + + RunTasks(); + AnimateSprites(); + BuildOamBuffer(); + switch (gBattleCommunication[MULTIUSE_STATE]) + { + case 0: + if (gReceivedRemoteLinkPlayers != 0 && IsLinkTaskFinished()) + { + sub_80108C4(); + SendBlock(bitmask_all_link_players_but_self(), &gBattleStruct->field_184, sizeof(gUnknown_2022B58)); + ++gBattleCommunication[MULTIUSE_STATE]; + } + break; + case 1: + if ((GetBlockReceivedStatus() & r4) == r4) + { + ResetBlockReceivedFlags(); + for (i = 0; i < 4; ++i) + { + if (i == playerMultiplierId) + continue; + if ((!(gLinkPlayers[i].id & 1) && !(gLinkPlayers[playerMultiplierId].id & 1)) + || (gLinkPlayers[i].id & 1 && gLinkPlayers[playerMultiplierId].id & 1)) + memcpy(gUnknown_2022B58, gBlockRecvBuffer[i], sizeof(gUnknown_2022B58)); + } + ++gBattleCommunication[MULTIUSE_STATE]; + *savedCallback = gMain.savedCallback; + *savedBattleTypeFlags = gBattleTypeFlags; + gMain.savedCallback = CB2_PreInitMultiBattle; + sub_8128198(); + } + break; + case 2: + if (!gPaletteFade.active) + { + ++gBattleCommunication[MULTIUSE_STATE]; + if (gWirelessCommType) + sub_800AB9C(); + else + sub_800AAC0(); + } + break; + case 3: + if (gWirelessCommType) + { + if (IsLinkRfuTaskFinished()) + { + gBattleTypeFlags = *savedBattleTypeFlags; + gMain.savedCallback = *savedCallback; + SetMainCallback2(CB2_InitBattleInternal); + } + } + else if (gReceivedRemoteLinkPlayers == 0) + { + gBattleTypeFlags = *savedBattleTypeFlags; + gMain.savedCallback = *savedCallback; + SetMainCallback2(CB2_InitBattleInternal); + } + break; + } +} + +static void CB2_HandleStartMultiBattle(void) +{ + u8 playerMultiplayerId; + s32 id; + u8 taskId; + + playerMultiplayerId = GetMultiplayerId(); + gBattleStruct->multiplayerId = playerMultiplayerId; + RunTasks(); + AnimateSprites(); + BuildOamBuffer(); + switch (gBattleCommunication[MULTIUSE_STATE]) + { + case 0: + if (!IsDma3ManagerBusyWithBgCopy()) + { + ShowBg(0); + ShowBg(1); + ShowBg(2); + ShowBg(3); + sub_80357C8(); + gBattleCommunication[MULTIUSE_STATE] = 1; + } + if (gWirelessCommType) + LoadWirelessStatusIndicatorSpriteGfx(); + break; + case 1: + if (gReceivedRemoteLinkPlayers != 0) + { + if (IsLinkTaskFinished()) + { + *(&gBattleStruct->field_184) = 1; + *(&gBattleStruct->field_185) = 2; + sub_800FFEC(); + SetPlayerBerryDataInBattleStruct(); + SendBlock(bitmask_all_link_players_but_self(), &gBattleStruct->field_184, 32); + ++gBattleCommunication[MULTIUSE_STATE]; + } + if (gWirelessCommType) + CreateWirelessStatusIndicatorSprite(0, 0); + } + break; + case 2: + if ((GetBlockReceivedStatus() & 0xF) == 0xF) + { + ResetBlockReceivedFlags(); + sub_8010414(4, playerMultiplayerId); + SetAllPlayersBerryData(); + SetDeoxysStats(); + memcpy(gDecompressionBuffer, gPlayerParty, sizeof(struct Pokemon) * 3); + taskId = CreateTask(sub_800F6FC, 0); + gTasks[taskId].data[1] = 270; + gTasks[taskId].data[2] = 90; + gTasks[taskId].data[5] = 0; + gTasks[taskId].data[3] = 0; + gTasks[taskId].data[4] = 0; + for (id = 0; id < MAX_LINK_PLAYERS; ++id) + { + switch (gLinkPlayers[id].id) + { + case 0: + gTasks[taskId].data[3] |= gBlockRecvBuffer[id][1] & 0x3F; + break; + case 1: + gTasks[taskId].data[4] |= gBlockRecvBuffer[id][1] & 0x3F; + break; + case 2: + gTasks[taskId].data[3] |= (gBlockRecvBuffer[id][1] & 0x3F) << 6; + break; + case 3: + gTasks[taskId].data[4] |= (gBlockRecvBuffer[id][1] & 0x3F) << 6; + break; + } + } + ZeroPlayerPartyMons(); + ZeroEnemyPartyMons(); + ++gBattleCommunication[MULTIUSE_STATE]; + } + else + { + break; + } + // fall through + case 3: + if (IsLinkTaskFinished()) + { + SendBlock(bitmask_all_link_players_but_self(), gDecompressionBuffer, sizeof(struct Pokemon) * 2); + ++gBattleCommunication[MULTIUSE_STATE]; + } + break; + case 4: + if ((GetBlockReceivedStatus() & 0xF) == 0xF) + { + ResetBlockReceivedFlags(); + for (id = 0; id < MAX_LINK_PLAYERS; ++id) + { + if (id == playerMultiplayerId) + { + switch (gLinkPlayers[id].id) + { + case 0: + case 3: + memcpy(gPlayerParty, gBlockRecvBuffer[id], sizeof(struct Pokemon) * 2); + break; + case 1: + case 2: + memcpy(gPlayerParty + 3, gBlockRecvBuffer[id], sizeof(struct Pokemon) * 2); + break; + } + } + else + { + if ((!(gLinkPlayers[id].id & 1) && !(gLinkPlayers[playerMultiplayerId].id & 1)) + || ((gLinkPlayers[id].id & 1) && (gLinkPlayers[playerMultiplayerId].id & 1))) + { + switch (gLinkPlayers[id].id) + { + case 0: + case 3: + memcpy(gPlayerParty, gBlockRecvBuffer[id], sizeof(struct Pokemon) * 2); + break; + case 1: + case 2: + memcpy(gPlayerParty + 3, gBlockRecvBuffer[id], sizeof(struct Pokemon) * 2); + break; + } + } + else + { + switch (gLinkPlayers[id].id) + { + case 0: + case 3: + memcpy(gEnemyParty, gBlockRecvBuffer[id], sizeof(struct Pokemon) * 2); + break; + case 1: + case 2: + memcpy(gEnemyParty + 3, gBlockRecvBuffer[id], sizeof(struct Pokemon) * 2); + break; + } + } + } + } + ++gBattleCommunication[MULTIUSE_STATE]; + } + break; + case 7: + if (IsLinkTaskFinished()) + { + SendBlock(bitmask_all_link_players_but_self(), gDecompressionBuffer + sizeof(struct Pokemon) * 2, sizeof(struct Pokemon)); + ++gBattleCommunication[MULTIUSE_STATE]; + } + break; + case 8: + if ((GetBlockReceivedStatus() & 0xF) == 0xF) + { + ResetBlockReceivedFlags(); + for (id = 0; id < MAX_LINK_PLAYERS; ++id) + { + if (id == playerMultiplayerId) + { + switch (gLinkPlayers[id].id) + { + case 0: + case 3: + memcpy(gPlayerParty + 2, gBlockRecvBuffer[id], sizeof(struct Pokemon)); + break; + case 1: + case 2: + memcpy(gPlayerParty + 5, gBlockRecvBuffer[id], sizeof(struct Pokemon)); + break; + } + } + else + { + if ((!(gLinkPlayers[id].id & 1) && !(gLinkPlayers[playerMultiplayerId].id & 1)) + || ((gLinkPlayers[id].id & 1) && (gLinkPlayers[playerMultiplayerId].id & 1))) + { + switch (gLinkPlayers[id].id) + { + case 0: + case 3: + memcpy(gPlayerParty + 2, gBlockRecvBuffer[id], sizeof(struct Pokemon)); + break; + case 1: + case 2: + memcpy(gPlayerParty + 5, gBlockRecvBuffer[id], sizeof(struct Pokemon)); + break; + } + } + else + { + switch (gLinkPlayers[id].id) + { + case 0: + case 3: + memcpy(gEnemyParty + 2, gBlockRecvBuffer[id], sizeof(struct Pokemon)); + break; + case 1: + case 2: + memcpy(gEnemyParty + 5, gBlockRecvBuffer[id], sizeof(struct Pokemon)); + break; + } + } + } + } + TryCorrectShedinjaLanguage(&gPlayerParty[0]); + TryCorrectShedinjaLanguage(&gPlayerParty[1]); + TryCorrectShedinjaLanguage(&gPlayerParty[2]); + TryCorrectShedinjaLanguage(&gPlayerParty[3]); + TryCorrectShedinjaLanguage(&gPlayerParty[4]); + TryCorrectShedinjaLanguage(&gPlayerParty[5]); + TryCorrectShedinjaLanguage(&gEnemyParty[0]); + TryCorrectShedinjaLanguage(&gEnemyParty[1]); + TryCorrectShedinjaLanguage(&gEnemyParty[2]); + TryCorrectShedinjaLanguage(&gEnemyParty[3]); + TryCorrectShedinjaLanguage(&gEnemyParty[4]); + TryCorrectShedinjaLanguage(&gEnemyParty[5]); + ++gBattleCommunication[MULTIUSE_STATE]; + } + break; + case 11: + sub_800D30C(); + ++gBattleCommunication[MULTIUSE_STATE]; + gBattleCommunication[SPRITES_INIT_STATE1] = 0; + gBattleCommunication[SPRITES_INIT_STATE2] = 0; + break; + case 12: + if (BattleInitAllSprites(&gBattleCommunication[SPRITES_INIT_STATE1], &gBattleCommunication[SPRITES_INIT_STATE2])) + { + gPreBattleCallback1 = gMain.callback1; + gMain.callback1 = BattleMainCB1; + SetMainCallback2(BattleMainCB2); + if (gBattleTypeFlags & BATTLE_TYPE_LINK) + gBattleTypeFlags |= BATTLE_TYPE_20; + } + break; + case 5: + case 9: + ++gBattleCommunication[0]; + gBattleCommunication[SPRITES_INIT_STATE1] = 1; + // fall through + case 6: + case 10: + if (--gBattleCommunication[SPRITES_INIT_STATE1] == 0) + ++gBattleCommunication[0]; + break; + } +} + +void BattleMainCB2(void) +{ + AnimateSprites(); + BuildOamBuffer(); + RunTextPrinters(); + UpdatePaletteFade(); + RunTasks(); + if (JOY_HELD(B_BUTTON) && gBattleTypeFlags & BATTLE_TYPE_POKEDUDE) + { + gSpecialVar_Result = gBattleOutcome = B_OUTCOME_DREW; + ResetPaletteFadeControl(); + BeginNormalPaletteFade(0xFFFFFFFF, 0, 0, 0x10, RGB_BLACK); + SetMainCallback2(CB2_QuitPokeDudeBattle); + } +} + +void FreeRestoreBattleData(void) +{ + gMain.callback1 = gPreBattleCallback1; + gScanlineEffect.state = 3; + gMain.inBattle = FALSE; + ZeroEnemyPartyMons(); + m4aSongNumStop(SE_HINSI); + FreeMonSpritesGfx(); + FreeBattleSpritesData(); + FreeBattleResources(); +} + +static void CB2_QuitPokeDudeBattle(void) +{ + UpdatePaletteFade(); + if (!gPaletteFade.active) + { + FreeRestoreBattleData(); + FreeAllWindowBuffers(); + SetMainCallback2(gMain.savedCallback); + } +} + +static void sub_80111EC(struct Sprite *sprite) +{ + sprite->data[0] = 0; + sprite->callback = sub_80111FC; +} + +static void sub_80111FC(struct Sprite *sprite) +{ + switch (sprite->data[0]) + { + case 0: + gUnknown_2022BC0 = AllocZeroed(0x1000); + ++sprite->data[0]; + sprite->data[1] = 0; + sprite->data[2] = 0x281; + sprite->data[3] = 0; + sprite->data[4] = 1; + // fall through + case 1: + if (--sprite->data[4] == 0) + { + s32 i, r2, r0; + + sprite->data[4] = 2; + r2 = sprite->data[1] + sprite->data[3] * 32; + r0 = sprite->data[2] - sprite->data[3] * 32; + for (i = 0; i <= 29; i += 2) + { + *(&gUnknown_2022BC0[r2] + i) = 0x3D; + *(&gUnknown_2022BC0[r0] + i) = 0x3D; + } + if (++sprite->data[3] == 21) + { + ++sprite->data[0]; + sprite->data[1] = 32; + } + } + break; + case 2: + if (--sprite->data[1] == 20) + { + if (gUnknown_2022BC0 != NULL) + { + memset(gUnknown_2022BC0, 0, 0x1000); + FREE_AND_SET_NULL(gUnknown_2022BC0); + } + SetMainCallback2(CB2_InitBattle); + } + break; + } +} + +static u8 CreateNPCTrainerParty(struct Pokemon *party, u16 trainerNum) +{ + u32 nameHash = 0; + u32 personalityValue; + u8 fixedIV; + s32 i, j; + + if (trainerNum == TRAINER_SECRET_BASE) + return 0; + if (gBattleTypeFlags & BATTLE_TYPE_TRAINER + && !(gBattleTypeFlags & (BATTLE_TYPE_BATTLE_TOWER | BATTLE_TYPE_EREADER_TRAINER | BATTLE_TYPE_TRAINER_TOWER))) + { + ZeroEnemyPartyMons(); + for (i = 0; i < gTrainers[trainerNum].partySize; ++i) + { + + if (gTrainers[trainerNum].doubleBattle == TRUE) + personalityValue = 0x80; + else if (gTrainers[trainerNum].encounterMusic_gender & 0x80) + personalityValue = 0x78; + else + personalityValue = 0x88; + for (j = 0; gTrainers[trainerNum].trainerName[j] != EOS; ++j) + nameHash += gTrainers[trainerNum].trainerName[j]; + switch (gTrainers[trainerNum].partyFlags) + { + case 0: + { + const struct TrainerMonNoItemDefaultMoves *partyData = gTrainers[trainerNum].party.NoItemDefaultMoves; + + for (j = 0; gSpeciesNames[partyData[i].species][j] != EOS; ++j) + nameHash += gSpeciesNames[partyData[i].species][j]; + personalityValue += nameHash << 8; + fixedIV = partyData[i].iv * 31 / 255; + CreateMon(&party[i], partyData[i].species, partyData[i].lvl, fixedIV, TRUE, personalityValue, OT_ID_RANDOM_NO_SHINY, 0); + break; + } + case F_TRAINER_PARTY_CUSTOM_MOVESET: + { + const struct TrainerMonNoItemCustomMoves *partyData = gTrainers[trainerNum].party.NoItemCustomMoves; + + for (j = 0; gSpeciesNames[partyData[i].species][j] != EOS; ++j) + nameHash += gSpeciesNames[partyData[i].species][j]; + personalityValue += nameHash << 8; + fixedIV = partyData[i].iv * 31 / 255; + CreateMon(&party[i], partyData[i].species, partyData[i].lvl, fixedIV, TRUE, personalityValue, OT_ID_RANDOM_NO_SHINY, 0); + for (j = 0; j < MAX_MON_MOVES; ++j) + { + SetMonData(&party[i], MON_DATA_MOVE1 + j, &partyData[i].moves[j]); + SetMonData(&party[i], MON_DATA_PP1 + j, &gBattleMoves[partyData[i].moves[j]].pp); + } + break; + } + case F_TRAINER_PARTY_HELD_ITEM: + { + const struct TrainerMonItemDefaultMoves *partyData = gTrainers[trainerNum].party.ItemDefaultMoves; + + for (j = 0; gSpeciesNames[partyData[i].species][j] != EOS; ++j) + nameHash += gSpeciesNames[partyData[i].species][j]; + personalityValue += nameHash << 8; + fixedIV = partyData[i].iv * 31 / 255; + CreateMon(&party[i], partyData[i].species, partyData[i].lvl, fixedIV, TRUE, personalityValue, OT_ID_RANDOM_NO_SHINY, 0); + + SetMonData(&party[i], MON_DATA_HELD_ITEM, &partyData[i].heldItem); + break; + } + case F_TRAINER_PARTY_CUSTOM_MOVESET | F_TRAINER_PARTY_HELD_ITEM: + { + const struct TrainerMonItemCustomMoves *partyData = gTrainers[trainerNum].party.ItemCustomMoves; + + for (j = 0; gSpeciesNames[partyData[i].species][j] != EOS; ++j) + nameHash += gSpeciesNames[partyData[i].species][j]; + personalityValue += nameHash << 8; + fixedIV = partyData[i].iv * 31 / 255; + CreateMon(&party[i], partyData[i].species, partyData[i].lvl, fixedIV, TRUE, personalityValue, OT_ID_RANDOM_NO_SHINY, 0); + SetMonData(&party[i], MON_DATA_HELD_ITEM, &partyData[i].heldItem); + for (j = 0; j < MAX_MON_MOVES; ++j) + { + SetMonData(&party[i], MON_DATA_MOVE1 + j, &partyData[i].moves[j]); + SetMonData(&party[i], MON_DATA_PP1 + j, &gBattleMoves[partyData[i].moves[j]].pp); + } + break; + } + } + } + gBattleTypeFlags |= gTrainers[trainerNum].doubleBattle; + } + return gTrainers[trainerNum].partySize; +} + +// not used +static void sub_80116CC(void) +{ + if (REG_VCOUNT < 0xA0 && REG_VCOUNT >= 0x6F) + REG_BG0CNT = BGCNT_PRIORITY(0) | BGCNT_CHARBASE(0) | BGCNT_SCREENBASE(24) | BGCNT_16COLOR | BGCNT_TXT256x512; +} + +void VBlankCB_Battle(void) +{ + // Change gRngSeed every vblank. + Random(); + SetGpuReg(REG_OFFSET_BG0HOFS, gBattle_BG0_X); + SetGpuReg(REG_OFFSET_BG0VOFS, gBattle_BG0_Y); + SetGpuReg(REG_OFFSET_BG1HOFS, gBattle_BG1_X); + SetGpuReg(REG_OFFSET_BG1VOFS, gBattle_BG1_Y); + SetGpuReg(REG_OFFSET_BG2HOFS, gBattle_BG2_X); + SetGpuReg(REG_OFFSET_BG2VOFS, gBattle_BG2_Y); + SetGpuReg(REG_OFFSET_BG3HOFS, gBattle_BG3_X); + SetGpuReg(REG_OFFSET_BG3VOFS, gBattle_BG3_Y); + SetGpuReg(REG_OFFSET_WIN0H, gBattle_WIN0H); + SetGpuReg(REG_OFFSET_WIN0V, gBattle_WIN0V); + SetGpuReg(REG_OFFSET_WIN1H, gBattle_WIN1H); + SetGpuReg(REG_OFFSET_WIN1V, gBattle_WIN1V); + LoadOam(); + ProcessSpriteCopyRequests(); + TransferPlttBuffer(); + ScanlineEffect_InitHBlankDmaTransfer(); +} + +void nullsub_9(struct Sprite *sprite) +{ +} + +static void sub_80117BC(struct Sprite *sprite) +{ + if (sprite->data[0] != 0) + sprite->pos1.x = sprite->data[1] + ((sprite->data[2] & 0xFF00) >> 8); + else + sprite->pos1.x = sprite->data[1] - ((sprite->data[2] & 0xFF00) >> 8); + sprite->data[2] += 0x180; + if (sprite->affineAnimEnded) + { + FreeSpriteTilesByTag(ANIM_SPRITES_START); + FreeSpritePaletteByTag(ANIM_SPRITES_START); + FreeSpriteOamMatrix(sprite); + DestroySprite(sprite); + } +} + +void sub_801182C(struct Sprite *sprite) +{ + StartSpriteAffineAnim(sprite, 1); + sprite->callback = sub_80117BC; + PlaySE(SE_BT_START); +} + +static void sub_801184C(u8 taskId) +{ + struct Pokemon *party1 = NULL; + struct Pokemon *party2 = NULL; + u8 multiplayerId = gBattleStruct->multiplayerId; + u32 r7; + s32 i; + + if (gBattleTypeFlags & BATTLE_TYPE_MULTI) + { + switch (gLinkPlayers[multiplayerId].id) + { + case 0: + case 2: + party1 = gPlayerParty; + party2 = gEnemyParty; + break; + case 1: + case 3: + party1 = gEnemyParty; + party2 = gPlayerParty; + break; + } + } + else + { + party1 = gPlayerParty; + party2 = gEnemyParty; + } + r7 = 0; + for (i = 0; i < PARTY_SIZE; ++i) + { + u16 species = GetMonData(&party1[i], MON_DATA_SPECIES2); + u16 hp = GetMonData(&party1[i], MON_DATA_HP); + u32 status = GetMonData(&party1[i], MON_DATA_STATUS); + + if (species == SPECIES_NONE) + continue; + if (species != SPECIES_EGG && hp != 0 && status == 0) + r7 |= 1 << i * 2; + + if (species == SPECIES_NONE) + continue; + if (hp != 0 && (species == SPECIES_EGG || status != 0)) + r7 |= 2 << i * 2; + + if (species == SPECIES_NONE) + continue; + if (species != SPECIES_EGG && hp == 0) + r7 |= 3 << i * 2; + } + gTasks[taskId].data[3] = r7; + r7 = 0; + for (i = 0; i < PARTY_SIZE; ++i) + { + u16 species = GetMonData(&party2[i], MON_DATA_SPECIES2); + u16 hp = GetMonData(&party2[i], MON_DATA_HP); + u32 status = GetMonData(&party2[i], MON_DATA_STATUS); + + if (species == SPECIES_NONE) + continue; + if (species != SPECIES_EGG && hp != 0 && status == 0) + r7 |= 1 << i * 2; + if (species == SPECIES_NONE) + continue; + if (hp != 0 && (species == SPECIES_EGG || status != 0)) + r7 |= 2 << i * 2; + if (species == SPECIES_NONE) + continue; + if (species != SPECIES_EGG && hp == 0) + r7 |= 3 << i * 2; + } + gTasks[taskId].data[4] = r7; +} + +void sub_8011A1C(void) +{ + s32 i; + u8 taskId; + + SetHBlankCallback(NULL); + SetVBlankCallback(NULL); + CpuFill32(0, (void *)VRAM, VRAM_SIZE); + SetGpuReg(REG_OFFSET_MOSAIC, 0); + SetGpuReg(REG_OFFSET_WIN0H, WIN_RANGE(0, 0xF0)); + SetGpuReg(REG_OFFSET_WIN0V, WIN_RANGE(0x50, 0x51)); + SetGpuReg(REG_OFFSET_WININ, 0); + SetGpuReg(REG_OFFSET_WINOUT, 0); + gBattle_WIN0H = WIN_RANGE(0, 0xF0); + gBattle_WIN0V = WIN_RANGE(0x50, 0x51); + ScanlineEffect_Clear(); + for (i = 0; i < 80; ++i) + { + gScanlineEffectRegBuffers[0][i] = 0xF0; + gScanlineEffectRegBuffers[1][i] = 0xF0; + } + + for (; i < 160; ++i) + { + gScanlineEffectRegBuffers[0][i] = 0xFF10; + gScanlineEffectRegBuffers[1][i] = 0xFF10; + } + ResetPaletteFade(); + gBattle_BG0_X = 0; + gBattle_BG0_Y = 0; + gBattle_BG1_X = 0; + gBattle_BG1_Y = 0; + gBattle_BG2_X = 0; + gBattle_BG2_Y = 0; + gBattle_BG3_X = 0; + gBattle_BG3_Y = 0; + sub_800F34C(); + LoadCompressedPalette(gBattleTextboxPalette, 0, 64); + LoadBattleMenuWindowGfx(); + ResetSpriteData(); + ResetTasks(); + DrawBattleEntryBackground(); + SetGpuReg(REG_OFFSET_WINOUT, WININ_WIN0_BG0 | WININ_WIN0_BG1 | WININ_WIN0_BG2 | WININ_WIN0_OBJ | WININ_WIN0_CLR); + FreeAllSpritePalettes(); + gReservedSpritePaletteCount = 4; + SetVBlankCallback(VBlankCB_Battle); + taskId = CreateTask(sub_800F6FC, 0); + gTasks[taskId].data[1] = 270; + gTasks[taskId].data[2] = 90; + gTasks[taskId].data[5] = 1; + sub_801184C(taskId); + SetMainCallback2(sub_8011B94); + gBattleCommunication[MULTIUSE_STATE] = 0; +} + +static void sub_8011B94(void) +{ + sub_8011BB0(); + AnimateSprites(); + BuildOamBuffer(); + UpdatePaletteFade(); + RunTasks(); +} + +static void sub_8011BB0(void) +{ + s32 i; + + switch (gBattleCommunication[MULTIUSE_STATE]) + { + case 0: + ShowBg(0); + ShowBg(1); + ShowBg(2); + gBattleCommunication[1] = 0xFF; + ++gBattleCommunication[MULTIUSE_STATE]; + break; + case 1: + if (--gBattleCommunication[1] == 0) + { + BeginNormalPaletteFade(0xFFFFFFFF, 0, 0, 0x10, RGB_BLACK); + ++gBattleCommunication[MULTIUSE_STATE]; + } + break; + case 2: + if (!gPaletteFade.active) + { + SetMainCallback2(gMain.savedCallback); + sub_812C224(); + FreeMonSpritesGfx(); + FreeBattleSpritesData(); + FreeBattleResources(); + } + break; + } +} + +u32 sub_8011C44(u8 arrayId, u8 caseId) +{ + u32 ret = 0; + + switch (caseId) + { + case 0: + ret = gBattleBgTemplates[arrayId].bg; + break; + case 1: + ret = gBattleBgTemplates[arrayId].charBaseIndex; + break; + case 2: + ret = gBattleBgTemplates[arrayId].mapBaseIndex; + break; + case 3: + ret = gBattleBgTemplates[arrayId].screenSize; + break; + case 4: + ret = gBattleBgTemplates[arrayId].paletteMode; + break; + case 5: + ret = gBattleBgTemplates[arrayId].priority; + break; + case 6: + ret = gBattleBgTemplates[arrayId].baseTile; + break; + } + return ret; +} + +static void TryCorrectShedinjaLanguage(struct Pokemon *mon) +{ + u8 nickname[POKEMON_NAME_LENGTH + 1]; + u8 language = LANGUAGE_JAPANESE; + + if (GetMonData(mon, MON_DATA_SPECIES) == SPECIES_SHEDINJA + && GetMonData(mon, MON_DATA_LANGUAGE) != language) + { + GetMonData(mon, MON_DATA_NICKNAME, nickname); + if (StringCompareWithoutExtCtrlCodes(nickname, sText_ShedinjaJpnName) == 0) + SetMonData(mon, MON_DATA_LANGUAGE, &language); + } +} + +#define sBattler data[0] +#define sSpeciesId data[2] + +void SpriteCB_WildMon(struct Sprite *sprite) +{ + sprite->callback = SpriteCB_MoveWildMonToRight; + StartSpriteAnimIfDifferent(sprite, 0); + BeginNormalPaletteFade(0x20000, 0, 10, 10, RGB(8, 8, 8)); +} + +static void SpriteCB_MoveWildMonToRight(struct Sprite *sprite) +{ + if ((gIntroSlideFlags & 1) == 0) + { + sprite->pos2.x += 2; + if (sprite->pos2.x == 0) + { + sprite->callback = SpriteCB_WildMonShowHealthbox; + PlayCry1(sprite->data[2], 25); + } + } +} + +static void SpriteCB_WildMonShowHealthbox(struct Sprite *sprite) +{ + if (sprite->animEnded) + { + sub_804BD94(sprite->sBattler); + SetHealthboxSpriteVisible(gHealthboxSpriteIds[sprite->sBattler]); + sprite->callback = SpriteCallbackDummy2; + StartSpriteAnimIfDifferent(sprite, 0); + BeginNormalPaletteFade(0x20000, 0, 10, 0, RGB(8, 8, 8)); + } +} + +void SpriteCallbackDummy2(struct Sprite *sprite) +{ +} + +// not used +static void sub_8011E28(struct Sprite *sprite) +{ + sprite->data[3] = 6; + sprite->data[4] = 1; + sprite->callback = sub_8011E3C; +} + +// not used +static void sub_8011E3C(struct Sprite *sprite) +{ + --sprite->data[4]; + if (sprite->data[4] == 0) + { + sprite->data[4] = 8; + sprite->invisible ^= 1; + --sprite->data[3]; + if (sprite->data[3] == 0) + { + sprite->invisible = FALSE; + sprite->callback = SpriteCallbackDummy2; + gUnknown_2022AE8[0] = 0; + } + } +} + +void SpriteCB_FaintOpponentMon(struct Sprite *sprite) +{ + u8 battler = sprite->sBattler; + u16 species; + u8 yOffset; + + if (gBattleSpritesDataPtr->battlerData[battler].transformSpecies != 0) + species = gBattleSpritesDataPtr->battlerData[battler].transformSpecies; + else + species = sprite->sSpeciesId; + GetMonData(&gEnemyParty[gBattlerPartyIndexes[battler]], MON_DATA_PERSONALITY); // Unused return value. + if (species == SPECIES_UNOWN) + { + u32 personalityValue = GetMonData(&gEnemyParty[gBattlerPartyIndexes[battler]], MON_DATA_PERSONALITY); + u16 unownForm = ((((personalityValue & 0x3000000) >> 18) | ((personalityValue & 0x30000) >> 12) | ((personalityValue & 0x300) >> 6) | (personalityValue & 3)) % 0x1C); + u16 unownSpecies; + + if (unownForm == 0) + unownSpecies = SPECIES_UNOWN; // Use the A Unown form. + else + unownSpecies = NUM_SPECIES + unownForm; // Use one of the other Unown letters. + yOffset = gMonFrontPicCoords[unownSpecies].y_offset; + } + else if (species == SPECIES_CASTFORM) + { + yOffset = gCastformFrontSpriteCoords[gBattleMonForms[battler]].y_offset; + } + else if (species > NUM_SPECIES) + { + yOffset = gMonFrontPicCoords[SPECIES_NONE].y_offset; + } + else + { + yOffset = gMonFrontPicCoords[species].y_offset; + } + sprite->data[3] = 8 - yOffset / 8; + sprite->data[4] = 1; + sprite->callback = SpriteCB_AnimFaintOpponent; +} + +static void SpriteCB_AnimFaintOpponent(struct Sprite *sprite) +{ + s32 i; + + if (--sprite->data[4] == 0) + { + sprite->data[4] = 2; + sprite->pos2.y += 8; // Move the sprite down. + if (--sprite->data[3] < 0) + { + FreeSpriteOamMatrix(sprite); + DestroySprite(sprite); + } + else // Erase bottom part of the sprite to create a smooth illusion of mon falling down. + { + u8 *dst = (u8 *)gMonSpritesGfxPtr->sprites[GetBattlerPosition(sprite->sBattler)] + (gBattleMonForms[sprite->sBattler] << 11) + (sprite->data[3] << 8); + + for (i = 0; i < 0x100; ++i) + *(dst++) = 0; + StartSpriteAnim(sprite, gBattleMonForms[sprite->sBattler]); + } + } +} + +void sub_8012044(struct Sprite *sprite) +{ + sprite->data[3] = 8; + sprite->data[4] = sprite->invisible; + sprite->callback = sub_8012060; +} + +static void sub_8012060(struct Sprite *sprite) +{ + --sprite->data[3]; + if (sprite->data[3] == 0) + { + sprite->invisible ^= 1; + sprite->data[3] = 8; + } +} + +void sub_8012098(struct Sprite *sprite) +{ + sprite->invisible = sprite->data[4]; + sprite->data[4] = FALSE; + sprite->callback = SpriteCallbackDummy2; +} + +void sub_80120C4(struct Sprite *sprite) +{ + sprite->callback = oac_poke_ally_; +} + +static void oac_poke_ally_(struct Sprite *sprite) +{ + if (!(gIntroSlideFlags & 1)) + { + sprite->pos2.x -= 2; + if (sprite->pos2.x == 0) + { + sprite->callback = SpriteCallbackDummy3; + sprite->data[1] = 0; + } + } +} + +void sub_8012100(struct Sprite *sprite) +{ + sprite->callback = SpriteCallbackDummy3; +} + +static void SpriteCallbackDummy3(struct Sprite *sprite) +{ +} + +void sub_8012110(struct Sprite *sprite) +{ + if (!(gIntroSlideFlags & 1)) + { + sprite->pos2.x += sprite->data[1]; + sprite->pos2.y += sprite->data[2]; + } +} + +#define sSinIndex data[0] +#define sDelta data[1] +#define sAmplitude data[2] +#define sBouncerSpriteId data[3] +#define sWhich data[4] + +void DoBounceEffect(u8 battler, u8 which, s8 delta, s8 amplitude) +{ + u8 invisibleSpriteId; + u8 bouncerSpriteId; + + switch (which) + { + case BOUNCE_HEALTHBOX: + default: + if (gBattleSpritesDataPtr->healthBoxesData[battler].healthboxIsBouncing) + return; + break; + case BOUNCE_MON: + if (gBattleSpritesDataPtr->healthBoxesData[battler].battlerIsBouncing) + return; + break; + } + invisibleSpriteId = CreateInvisibleSpriteWithCallback(SpriteCB_BounceEffect); + if (which == BOUNCE_HEALTHBOX) + { + bouncerSpriteId = gHealthboxSpriteIds[battler]; + gBattleSpritesDataPtr->healthBoxesData[battler].healthboxBounceSpriteId = invisibleSpriteId; + gBattleSpritesDataPtr->healthBoxesData[battler].healthboxIsBouncing = 1; + gSprites[invisibleSpriteId].sSinIndex = 128; // 0 + } + else + { + bouncerSpriteId = gBattlerSpriteIds[battler]; + gBattleSpritesDataPtr->healthBoxesData[battler].battlerBounceSpriteId = invisibleSpriteId; + gBattleSpritesDataPtr->healthBoxesData[battler].battlerIsBouncing = 1; + gSprites[invisibleSpriteId].sSinIndex = 192; // -1 + } + gSprites[invisibleSpriteId].sDelta = delta; + gSprites[invisibleSpriteId].sAmplitude = amplitude; + gSprites[invisibleSpriteId].sBouncerSpriteId = bouncerSpriteId; + gSprites[invisibleSpriteId].sWhich = which; + gSprites[bouncerSpriteId].pos2.x = 0; + gSprites[bouncerSpriteId].pos2.y = 0; +} + +void EndBounceEffect(u8 battler, u8 which) +{ + u8 bouncerSpriteId; + + if (which == BOUNCE_HEALTHBOX) + { + if (!gBattleSpritesDataPtr->healthBoxesData[battler].healthboxIsBouncing) + return; + + bouncerSpriteId = gSprites[gBattleSpritesDataPtr->healthBoxesData[battler].healthboxBounceSpriteId].sBouncerSpriteId; + DestroySprite(&gSprites[gBattleSpritesDataPtr->healthBoxesData[battler].healthboxBounceSpriteId]); + gBattleSpritesDataPtr->healthBoxesData[battler].healthboxIsBouncing = 0; + } + else + { + if (!gBattleSpritesDataPtr->healthBoxesData[battler].battlerIsBouncing) + return; + + bouncerSpriteId = gSprites[gBattleSpritesDataPtr->healthBoxesData[battler].battlerBounceSpriteId].sBouncerSpriteId; + DestroySprite(&gSprites[gBattleSpritesDataPtr->healthBoxesData[battler].battlerBounceSpriteId]); + gBattleSpritesDataPtr->healthBoxesData[battler].battlerIsBouncing = 0; + } + gSprites[bouncerSpriteId].pos2.x = 0; + gSprites[bouncerSpriteId].pos2.y = 0; +} + +static void SpriteCB_BounceEffect(struct Sprite *sprite) +{ + u8 bouncerSpriteId = sprite->sBouncerSpriteId; + s32 index; + + if (sprite->sWhich == BOUNCE_HEALTHBOX) + index = sprite->sSinIndex; + else + index = sprite->sSinIndex; + gSprites[bouncerSpriteId].pos2.y = Sin(index, sprite->sAmplitude) + sprite->sAmplitude; + sprite->sSinIndex = (sprite->sSinIndex + sprite->sDelta) & 0xFF; +} + +void sub_8012354(struct Sprite *sprite) +{ + StartSpriteAnim(sprite, 1); + sprite->callback = sub_8012398; +} + +void sub_801236C(struct Sprite *sprite) +{ + if (sprite->animDelayCounter == 0) + sprite->centerToCornerVecX = gUnknown_824F048[sprite->animCmdIndex]; +} + +static void sub_8012398(struct Sprite *sprite) +{ + sub_801236C(sprite); + if (sprite->animEnded) + sprite->callback = SpriteCallbackDummy3; +} + +void nullsub_12(void) +{ +} + +void BeginBattleIntro(void) +{ + BattleStartClearSetData(); + gBattleCommunication[1] = 0; + gBattleMainFunc = BattleIntroGetMonsData; +} + +static void BattleMainCB1(void) +{ + gBattleMainFunc(); + for (gActiveBattler = 0; gActiveBattler < gBattlersCount; ++gActiveBattler) + gBattlerControllerFuncs[gActiveBattler](); +} + +static void BattleStartClearSetData(void) +{ + s32 i; + u32 j; + u8 *dataPtr; + + TurnValuesCleanUp(FALSE); + SpecialStatusesClear(); + for (i = 0; i < MAX_BATTLERS_COUNT; ++i) + { + gStatuses3[i] = 0; + dataPtr = (u8 *)&gDisableStructs[i]; + for (j = 0; j < sizeof(struct DisableStruct); ++j) + dataPtr[j] = 0; + gDisableStructs[i].isFirstTurn = 2; + gUnknown_2023DD4[i] = 0; + gLastMoves[i] = MOVE_NONE; + gLastLandedMoves[i] = MOVE_NONE; + gLastHitByType[i] = 0; + gLastResultingMoves[i] = MOVE_NONE; + gLastHitBy[i] = 0xFF; + gLockedMoves[i] = MOVE_NONE; + gLastPrintedMoves[i] = MOVE_NONE; + gBattleResources->flags->flags[i] = 0; + } + for (i = 0; i < 2; ++i) + { + gSideStatuses[i] = 0; + dataPtr = (u8 *)&gSideTimers[i]; + for (j = 0; j < sizeof(struct SideTimer); ++j) + dataPtr[j] = 0; + } + gBattlerAttacker = 0; + gBattlerTarget = 0; + gBattleWeather = 0; + dataPtr = (u8 *)&gWishFutureKnock; + for (i = 0; i < sizeof(struct WishFutureKnock); ++i) + dataPtr[i] = 0; + gHitMarker = 0; + if (!(gBattleTypeFlags & (BATTLE_TYPE_LINK | BATTLE_TYPE_POKEDUDE)) && gSaveBlock2Ptr->optionsBattleSceneOff) + gHitMarker |= HITMARKER_NO_ANIMATIONS; + gBattleScripting.battleStyle = gSaveBlock2Ptr->optionsBattleStyle; + gMultiHitCounter = 0; + gBattleOutcome = 0; + gBattleControllerExecFlags = 0; + gPaydayMoney = 0; + gBattleResources->battleScriptsStack->size = 0; + gBattleResources->battleCallbackStack->size = 0; + for (i = 0; i < BATTLE_COMMUNICATION_ENTRIES_COUNT; ++i) + gBattleCommunication[i] = 0; + gPauseCounterBattle = 0; + gBattleMoveDamage = 0; + gIntroSlideFlags = 0; + gBattleScripting.animTurn = 0; + gBattleScripting.animTargetsHit = 0; + gLeveledUpInBattle = 0; + gAbsentBattlerFlags = 0; + gBattleStruct->runTries = 0; + gBattleStruct->safariGoNearCounter = 0; + gBattleStruct->safariPkblThrowCounter = 0; + *(&gBattleStruct->safariCatchFactor) = gBaseStats[GetMonData(&gEnemyParty[0], MON_DATA_SPECIES)].catchRate * 100 / 1275; + *(&gBattleStruct->safariEscapeFactor) = gBaseStats[GetMonData(&gEnemyParty[0], MON_DATA_SPECIES)].safariZoneFleeRate * 100 / 1275; + if (gBattleStruct->safariEscapeFactor <= 1) + gBattleStruct->safariEscapeFactor = 2; + gBattleStruct->wildVictorySong = 0; + gBattleStruct->moneyMultiplier = 1; + for (i = 0; i < 8; ++i) + { + *((u8 *)gBattleStruct->lastTakenMove + i) = MOVE_NONE; + *((u8 *)gBattleStruct->usedHeldItems + i) = ITEM_NONE; + *((u8 *)gBattleStruct->choicedMove + i) = MOVE_NONE; + *((u8 *)gBattleStruct->changedItems + i) = ITEM_NONE; + *(i + 0 * 8 + (u8 *)(gBattleStruct->lastTakenMoveFrom) + 0) = 0; + *(i + 1 * 8 + (u8 *)(gBattleStruct->lastTakenMoveFrom) + 0) = 0; + *(i + 2 * 8 + (u8 *)(gBattleStruct->lastTakenMoveFrom) + 0) = 0; + *(i + 3 * 8 + (u8 *)(gBattleStruct->lastTakenMoveFrom) + 0) = 0; + } + *(gBattleStruct->AI_monToSwitchIntoId + 0) = PARTY_SIZE; + *(gBattleStruct->AI_monToSwitchIntoId + 1) = PARTY_SIZE; + *(&gBattleStruct->givenExpMons) = 0; + for (i = 0; i < 11; ++i) + gBattleResults.catchAttempts[i] = 0; + gBattleResults.battleTurnCounter = 0; + gBattleResults.playerFaintCounter = 0; + gBattleResults.opponentFaintCounter = 0; + gBattleResults.playerSwitchesCounter = 0; + gBattleResults.numHealingItemsUsed = 0; + gBattleResults.numRevivesUsed = 0; + gBattleResults.playerMonWasDamaged = FALSE; + gBattleResults.usedMasterBall = FALSE; + gBattleResults.lastOpponentSpecies = SPECIES_NONE; + gBattleResults.lastUsedMovePlayer = MOVE_NONE; + gBattleResults.lastUsedMoveOpponent = MOVE_NONE; + gBattleResults.playerMon1Species = SPECIES_NONE; + gBattleResults.playerMon2Species = SPECIES_NONE; + gBattleResults.caughtMonSpecies = SPECIES_NONE; + for (i = 0; i < POKEMON_NAME_LENGTH; ++i) + { + gBattleResults.playerMon1Name[i] = 0; + gBattleResults.playerMon2Name[i] = 0; + gBattleResults.caughtMonNick[i] = 0; + } +} + +void SwitchInClearSetData(void) +{ + struct DisableStruct disableStructCopy = gDisableStructs[gActiveBattler]; + s32 i; + u8 *ptr; + + if (gBattleMoves[gCurrentMove].effect != EFFECT_BATON_PASS) + { + for (i = 0; i < NUM_BATTLE_STATS; ++i) + gBattleMons[gActiveBattler].statStages[i] = 6; + for (i = 0; i < gBattlersCount; ++i) + { + if ((gBattleMons[i].status2 & STATUS2_ESCAPE_PREVENTION) && gDisableStructs[i].battlerPreventingEscape == gActiveBattler) + gBattleMons[i].status2 &= ~STATUS2_ESCAPE_PREVENTION; + if ((gStatuses3[i] & STATUS3_ALWAYS_HITS) && gDisableStructs[i].battlerWithSureHit == gActiveBattler) + { + gStatuses3[i] &= ~STATUS3_ALWAYS_HITS; + gDisableStructs[i].battlerWithSureHit = 0; + } + } + } + if (gBattleMoves[gCurrentMove].effect == EFFECT_BATON_PASS) + { + gBattleMons[gActiveBattler].status2 &= (STATUS2_CONFUSION | STATUS2_FOCUS_ENERGY | STATUS2_SUBSTITUTE | STATUS2_ESCAPE_PREVENTION | STATUS2_CURSED); + gStatuses3[gActiveBattler] &= (STATUS3_LEECHSEED_BATTLER | STATUS3_LEECHSEED | STATUS3_ALWAYS_HITS | STATUS3_PERISH_SONG | STATUS3_ROOTED | STATUS3_MUDSPORT | STATUS3_WATERSPORT); + for (i = 0; i < gBattlersCount; ++i) + { + if (GetBattlerSide(gActiveBattler) != GetBattlerSide(i) + && (gStatuses3[i] & STATUS3_ALWAYS_HITS) != 0 + && (gDisableStructs[i].battlerWithSureHit == gActiveBattler)) + { + gStatuses3[i] &= ~(STATUS3_ALWAYS_HITS); + gStatuses3[i] |= 0x10; + } + } + } + else + { + gBattleMons[gActiveBattler].status2 = 0; + gStatuses3[gActiveBattler] = 0; + } + for (i = 0; i < gBattlersCount; ++i) + { + if (gBattleMons[i].status2 & STATUS2_INFATUATED_WITH(gActiveBattler)) + gBattleMons[i].status2 &= ~(STATUS2_INFATUATED_WITH(gActiveBattler)); + if ((gBattleMons[i].status2 & STATUS2_WRAPPED) && *(gBattleStruct->wrappedBy + i) == gActiveBattler) + gBattleMons[i].status2 &= ~(STATUS2_WRAPPED); + } + gActionSelectionCursor[gActiveBattler] = 0; + gMoveSelectionCursor[gActiveBattler] = 0; + ptr = (u8 *)&gDisableStructs[gActiveBattler]; + for (i = 0; i < sizeof(struct DisableStruct); ++i) + ptr[i] = 0; + if (gBattleMoves[gCurrentMove].effect == EFFECT_BATON_PASS) + { + gDisableStructs[gActiveBattler].substituteHP = disableStructCopy.substituteHP; + gDisableStructs[gActiveBattler].battlerWithSureHit = disableStructCopy.battlerWithSureHit; + gDisableStructs[gActiveBattler].perishSongTimer = disableStructCopy.perishSongTimer; + gDisableStructs[gActiveBattler].perishSongTimerStartValue = disableStructCopy.perishSongTimerStartValue; + gDisableStructs[gActiveBattler].battlerPreventingEscape = disableStructCopy.battlerPreventingEscape; + } + gMoveResultFlags = 0; + gDisableStructs[gActiveBattler].isFirstTurn = 2; + gLastMoves[gActiveBattler] = MOVE_NONE; + gLastLandedMoves[gActiveBattler] = MOVE_NONE; + gLastHitByType[gActiveBattler] = 0; + gLastResultingMoves[gActiveBattler] = MOVE_NONE; + gLastPrintedMoves[gActiveBattler] = MOVE_NONE; + gLastHitBy[gActiveBattler] = 0xFF; + *(gBattleStruct->lastTakenMove + gActiveBattler * 2 + 0) = MOVE_NONE; + *(gBattleStruct->lastTakenMove + gActiveBattler * 2 + 1) = MOVE_NONE; + *(0 * 2 + gActiveBattler * 8 + (u8 *)(gBattleStruct->lastTakenMoveFrom) + 0) = 0; + *(0 * 2 + gActiveBattler * 8 + (u8 *)(gBattleStruct->lastTakenMoveFrom) + 1) = 0; + *(1 * 2 + gActiveBattler * 8 + (u8 *)(gBattleStruct->lastTakenMoveFrom) + 0) = 0; + *(1 * 2 + gActiveBattler * 8 + (u8 *)(gBattleStruct->lastTakenMoveFrom) + 1) = 0; + *(2 * 2 + gActiveBattler * 8 + (u8 *)(gBattleStruct->lastTakenMoveFrom) + 0) = 0; + *(2 * 2 + gActiveBattler * 8 + (u8 *)(gBattleStruct->lastTakenMoveFrom) + 1) = 0; + *(3 * 2 + gActiveBattler * 8 + (u8 *)(gBattleStruct->lastTakenMoveFrom) + 0) = 0; + *(3 * 2 + gActiveBattler * 8 + (u8 *)(gBattleStruct->lastTakenMoveFrom) + 1) = 0; + for (i = 0; i < gBattlersCount; ++i) + { + if (i != gActiveBattler) + { + *(gBattleStruct->lastTakenMove + i * 2 + 0) = MOVE_NONE; + *(gBattleStruct->lastTakenMove + i * 2 + 1) = MOVE_NONE; + } + *(i * 8 + gActiveBattler * 2 + (u8 *)(gBattleStruct->lastTakenMoveFrom) + 0) = 0; + *(i * 8 + gActiveBattler * 2 + (u8 *)(gBattleStruct->lastTakenMoveFrom) + 1) = 0; + } + *((u8 *)(&gBattleStruct->choicedMove[gActiveBattler]) + 0) = MOVE_NONE; + *((u8 *)(&gBattleStruct->choicedMove[gActiveBattler]) + 1) = MOVE_NONE; + gBattleResources->flags->flags[gActiveBattler] = 0; + gCurrentMove = MOVE_NONE; +} + +void FaintClearSetData(void) +{ + s32 i; + u8 *ptr; + + for (i = 0; i < NUM_BATTLE_STATS; ++i) + gBattleMons[gActiveBattler].statStages[i] = 6; + gBattleMons[gActiveBattler].status2 = 0; + gStatuses3[gActiveBattler] = 0; + for (i = 0; i < gBattlersCount; ++i) + { + if ((gBattleMons[i].status2 & STATUS2_ESCAPE_PREVENTION) && gDisableStructs[i].battlerPreventingEscape == gActiveBattler) + gBattleMons[i].status2 &= ~STATUS2_ESCAPE_PREVENTION; + if (gBattleMons[i].status2 & STATUS2_INFATUATED_WITH(gActiveBattler)) + gBattleMons[i].status2 &= ~(STATUS2_INFATUATED_WITH(gActiveBattler)); + if ((gBattleMons[i].status2 & STATUS2_WRAPPED) && *(gBattleStruct->wrappedBy + i) == gActiveBattler) + gBattleMons[i].status2 &= ~(STATUS2_WRAPPED); + } + gActionSelectionCursor[gActiveBattler] = 0; + gMoveSelectionCursor[gActiveBattler] = 0; + ptr = (u8 *)&gDisableStructs[gActiveBattler]; + for (i = 0; i < sizeof(struct DisableStruct); ++i) + ptr[i] = 0; + gProtectStructs[gActiveBattler].protected = FALSE; + gProtectStructs[gActiveBattler].endured = FALSE; + gProtectStructs[gActiveBattler].noValidMoves = FALSE; + gProtectStructs[gActiveBattler].helpingHand = FALSE; + gProtectStructs[gActiveBattler].bounceMove = FALSE; + gProtectStructs[gActiveBattler].stealMove = FALSE; + gProtectStructs[gActiveBattler].flag0Unknown = FALSE; + gProtectStructs[gActiveBattler].prlzImmobility = FALSE; + gProtectStructs[gActiveBattler].confusionSelfDmg = FALSE; + gProtectStructs[gActiveBattler].targetNotAffected = FALSE; + gProtectStructs[gActiveBattler].chargingTurn = FALSE; + gProtectStructs[gActiveBattler].fleeFlag = 0; + gProtectStructs[gActiveBattler].usedImprisonedMove = FALSE; + gProtectStructs[gActiveBattler].loveImmobility = FALSE; + gProtectStructs[gActiveBattler].usedDisabledMove = FALSE; + gProtectStructs[gActiveBattler].usedTauntedMove = FALSE; + gProtectStructs[gActiveBattler].flag2Unknown = FALSE; + gProtectStructs[gActiveBattler].flinchImmobility = FALSE; + gProtectStructs[gActiveBattler].notFirstStrike = FALSE; + gDisableStructs[gActiveBattler].isFirstTurn = 2; + gLastMoves[gActiveBattler] = MOVE_NONE; + gLastLandedMoves[gActiveBattler] = MOVE_NONE; + gLastHitByType[gActiveBattler] = MOVE_NONE; + gLastResultingMoves[gActiveBattler] = MOVE_NONE; + gLastPrintedMoves[gActiveBattler] = MOVE_NONE; + gLastHitBy[gActiveBattler] = 0xFF; + *((u8 *)(&gBattleStruct->choicedMove[gActiveBattler]) + 0) = MOVE_NONE; + *((u8 *)(&gBattleStruct->choicedMove[gActiveBattler]) + 1) = MOVE_NONE; + *(gBattleStruct->lastTakenMove + gActiveBattler * 2 + 0) = MOVE_NONE; + *(gBattleStruct->lastTakenMove + gActiveBattler * 2 + 1) = MOVE_NONE; + *(0 * 2 + gActiveBattler * 8 + (u8 *)(gBattleStruct->lastTakenMoveFrom) + 0) = 0; + *(0 * 2 + gActiveBattler * 8 + (u8 *)(gBattleStruct->lastTakenMoveFrom) + 1) = 0; + *(1 * 2 + gActiveBattler * 8 + (u8 *)(gBattleStruct->lastTakenMoveFrom) + 0) = 0; + *(1 * 2 + gActiveBattler * 8 + (u8 *)(gBattleStruct->lastTakenMoveFrom) + 1) = 0; + *(2 * 2 + gActiveBattler * 8 + (u8 *)(gBattleStruct->lastTakenMoveFrom) + 0) = 0; + *(2 * 2 + gActiveBattler * 8 + (u8 *)(gBattleStruct->lastTakenMoveFrom) + 1) = 0; + *(3 * 2 + gActiveBattler * 8 + (u8 *)(gBattleStruct->lastTakenMoveFrom) + 0) = 0; + *(3 * 2 + gActiveBattler * 8 + (u8 *)(gBattleStruct->lastTakenMoveFrom) + 1) = 0; + for (i = 0; i < gBattlersCount; ++i) + { + if (i != gActiveBattler) + { + *(gBattleStruct->lastTakenMove + i * 2 + 0) = MOVE_NONE; + *(gBattleStruct->lastTakenMove + i * 2 + 1) = MOVE_NONE; + } + *(i * 8 + gActiveBattler * 2 + (u8 *)(gBattleStruct->lastTakenMoveFrom) + 0) = 0; + *(i * 8 + gActiveBattler * 2 + (u8 *)(gBattleStruct->lastTakenMoveFrom) + 1) = 0; + } + gBattleResources->flags->flags[gActiveBattler] = 0; + gBattleMons[gActiveBattler].type1 = gBaseStats[gBattleMons[gActiveBattler].species].type1; + gBattleMons[gActiveBattler].type2 = gBaseStats[gBattleMons[gActiveBattler].species].type2; +} + +static void BattleIntroGetMonsData(void) +{ + switch (gBattleCommunication[MULTIUSE_STATE]) + { + case 0: + gActiveBattler = gBattleCommunication[1]; + BtlController_EmitGetMonData(0, REQUEST_ALL_BATTLE, 0); + MarkBattlerForControllerExec(gActiveBattler); + ++gBattleCommunication[MULTIUSE_STATE]; + break; + case 1: + if (gBattleControllerExecFlags == 0) + { + ++gBattleCommunication[1]; + if (gBattleCommunication[1] == gBattlersCount) + gBattleMainFunc = BattleIntroPrepareBackgroundSlide; + else + gBattleCommunication[MULTIUSE_STATE] = 0; + } + break; + } +} + +static void BattleIntroPrepareBackgroundSlide(void) +{ + if (gBattleControllerExecFlags == 0) + { + gActiveBattler = GetBattlerAtPosition(0); + BtlController_EmitIntroSlide(0, gBattleTerrain); + MarkBattlerForControllerExec(gActiveBattler); + gBattleMainFunc = BattleIntroDrawTrainersOrMonsSprites; + gBattleCommunication[MULTIUSE_STATE] = 0; + gBattleCommunication[SPRITES_INIT_STATE1] = 0; + } +} + +static void BattleIntroDrawTrainersOrMonsSprites(void) +{ + u8 *ptr; + s32 i; + + if (!gBattleControllerExecFlags) + { + for (gActiveBattler = 0; gActiveBattler < gBattlersCount; ++gActiveBattler) + { + if ((gBattleTypeFlags & BATTLE_TYPE_SAFARI) + && GetBattlerSide(gActiveBattler) == B_SIDE_PLAYER) + { + ptr = (u8 *)&gBattleMons[gActiveBattler]; + for (i = 0; i < sizeof(struct BattlePokemon); ++i) + ptr[i] = 0; + } + else + { + u16 *hpOnSwitchout; + + ptr = (u8 *)&gBattleMons[gActiveBattler]; + for (i = 0; i < sizeof(struct BattlePokemon); ++i) + ptr[i] = gBattleBufferB[gActiveBattler][4 + i]; + gBattleMons[gActiveBattler].type1 = gBaseStats[gBattleMons[gActiveBattler].species].type1; + gBattleMons[gActiveBattler].type2 = gBaseStats[gBattleMons[gActiveBattler].species].type2; + gBattleMons[gActiveBattler].ability = GetAbilityBySpecies(gBattleMons[gActiveBattler].species, gBattleMons[gActiveBattler].abilityNum); + hpOnSwitchout = &gBattleStruct->hpOnSwitchout[GetBattlerSide(gActiveBattler)]; + *hpOnSwitchout = gBattleMons[gActiveBattler].hp; + for (i = 0; i < NUM_BATTLE_STATS; ++i) + gBattleMons[gActiveBattler].statStages[i] = 6; + gBattleMons[gActiveBattler].status2 = 0; + } + if (GetBattlerPosition(gActiveBattler) == B_POSITION_PLAYER_LEFT) + { + BtlController_EmitDrawTrainerPic(0); + MarkBattlerForControllerExec(gActiveBattler); + } + if (gBattleTypeFlags & BATTLE_TYPE_TRAINER) + { + if (GetBattlerPosition(gActiveBattler) == B_POSITION_OPPONENT_LEFT) + { + BtlController_EmitDrawTrainerPic(0); + MarkBattlerForControllerExec(gActiveBattler); + } + if (GetBattlerSide(gActiveBattler) == B_SIDE_OPPONENT + && !(gBattleTypeFlags & (BATTLE_TYPE_EREADER_TRAINER + | BATTLE_TYPE_POKEDUDE + | BATTLE_TYPE_LINK + | BATTLE_TYPE_GHOST + | BATTLE_TYPE_OLD_MAN_TUTORIAL + | BATTLE_TYPE_LEGENDARY))) + HandleSetPokedexFlag(SpeciesToNationalPokedexNum(gBattleMons[gActiveBattler].species), FLAG_SET_SEEN, gBattleMons[gActiveBattler].personality); + } + else + { + if (GetBattlerSide(gActiveBattler) == B_SIDE_OPPONENT) + { + if (gBattleTypeFlags & (BATTLE_TYPE_GHOST | BATTLE_TYPE_LEGENDARY)) + { + if ((gBattleTypeFlags & (BATTLE_TYPE_GHOST | BATTLE_TYPE_LEGENDARY)) != BATTLE_TYPE_GHOST) + HandleSetPokedexFlag(SpeciesToNationalPokedexNum(gBattleMons[gActiveBattler].species), FLAG_SET_SEEN, gBattleMons[gActiveBattler].personality); + } + else if (!(gBattleTypeFlags & (BATTLE_TYPE_EREADER_TRAINER + | BATTLE_TYPE_POKEDUDE + | BATTLE_TYPE_LINK + | BATTLE_TYPE_GHOST + | BATTLE_TYPE_OLD_MAN_TUTORIAL + | BATTLE_TYPE_LEGENDARY))) + { + HandleSetPokedexFlag(SpeciesToNationalPokedexNum(gBattleMons[gActiveBattler].species), FLAG_SET_SEEN, gBattleMons[gActiveBattler].personality); + } + BtlController_EmitLoadMonSprite(0); + MarkBattlerForControllerExec(gActiveBattler); + } + } + if (gBattleTypeFlags & BATTLE_TYPE_MULTI + && (GetBattlerPosition(gActiveBattler) == B_POSITION_PLAYER_RIGHT || GetBattlerPosition(gActiveBattler) == B_POSITION_OPPONENT_RIGHT)) + { + BtlController_EmitDrawTrainerPic(0); + MarkBattlerForControllerExec(gActiveBattler); + } + } + gBattleMainFunc = BattleIntroDrawPartySummaryScreens; + } +} + +static void BattleIntroDrawPartySummaryScreens(void) +{ + s32 i; + struct HpAndStatus hpStatus[PARTY_SIZE]; + + if (!gBattleControllerExecFlags) + { + if (gBattleTypeFlags & BATTLE_TYPE_TRAINER) + { + for (i = 0; i < PARTY_SIZE; ++i) + { + if (GetMonData(&gEnemyParty[i], MON_DATA_SPECIES2) == SPECIES_NONE + || GetMonData(&gEnemyParty[i], MON_DATA_SPECIES2) == SPECIES_EGG) + { + hpStatus[i].hp = 0xFFFF; + hpStatus[i].status = 0; + } + else + { + hpStatus[i].hp = GetMonData(&gEnemyParty[i], MON_DATA_HP); + hpStatus[i].status = GetMonData(&gEnemyParty[i], MON_DATA_STATUS); + } + } + gActiveBattler = GetBattlerAtPosition(B_POSITION_OPPONENT_LEFT); + BtlController_EmitDrawPartyStatusSummary(0, hpStatus, 0x80); + MarkBattlerForControllerExec(gActiveBattler); + for (i = 0; i < PARTY_SIZE; ++i) + { + if (GetMonData(&gPlayerParty[i], MON_DATA_SPECIES2) == SPECIES_NONE + || GetMonData(&gPlayerParty[i], MON_DATA_SPECIES2) == SPECIES_EGG) + { + hpStatus[i].hp = 0xFFFF; + hpStatus[i].status = 0; + } + else + { + hpStatus[i].hp = GetMonData(&gPlayerParty[i], MON_DATA_HP); + hpStatus[i].status = GetMonData(&gPlayerParty[i], MON_DATA_STATUS); + } + } + gActiveBattler = GetBattlerAtPosition(B_POSITION_PLAYER_LEFT); + BtlController_EmitDrawPartyStatusSummary(0, hpStatus, 0x80); + MarkBattlerForControllerExec(gActiveBattler); + + gBattleMainFunc = BattleIntroPrintTrainerWantsToBattle; + } + else + { + // The struct gets set here, but nothing is ever done with it since + // wild battles don't show the party summary. + // Still, there's no point in having dead code. + for (i = 0; i < PARTY_SIZE; ++i) + { + if (GetMonData(&gPlayerParty[i], MON_DATA_SPECIES2) == SPECIES_NONE + || GetMonData(&gPlayerParty[i], MON_DATA_SPECIES2) == SPECIES_EGG) + { + hpStatus[i].hp = 0xFFFF; + hpStatus[i].status = 0; + } + else + { + hpStatus[i].hp = GetMonData(&gPlayerParty[i], MON_DATA_HP); + hpStatus[i].status = GetMonData(&gPlayerParty[i], MON_DATA_STATUS); + } + } + gBattleMainFunc = BattleIntroPrintWildMonAttacked; + } + } +} + +static void BattleIntroPrintTrainerWantsToBattle(void) +{ + if (!gBattleControllerExecFlags) + { + gActiveBattler = GetBattlerAtPosition(B_POSITION_OPPONENT_LEFT); + PrepareStringBattle(STRINGID_INTROMSG, gActiveBattler); + gBattleMainFunc = BattleIntroPrintOpponentSendsOut; + } +} + +static void BattleIntroPrintWildMonAttacked(void) +{ + if (!gBattleControllerExecFlags) + { + gBattleMainFunc = BattleIntroPrintPlayerSendsOut; + PrepareStringBattle(STRINGID_INTROMSG, 0); + if ((gBattleTypeFlags & (BATTLE_TYPE_LEGENDARY | BATTLE_TYPE_GHOST)) == (BATTLE_TYPE_LEGENDARY | BATTLE_TYPE_GHOST)) + { + gBattleScripting.battler = GetBattlerAtPosition(B_POSITION_OPPONENT_LEFT); + BattleScriptExecute(gUnknown_81D91A1); + } + } +} + +static void BattleIntroPrintOpponentSendsOut(void) +{ + if (!gBattleControllerExecFlags) + { + PrepareStringBattle(STRINGID_INTROSENDOUT, GetBattlerAtPosition(B_POSITION_OPPONENT_LEFT)); + gBattleMainFunc = BattleIntroOpponentSendsOutMonAnimation; + } +} + +static void BattleIntroOpponentSendsOutMonAnimation(void) +{ + if (!gBattleControllerExecFlags) + { + for (gActiveBattler = 0; gActiveBattler < gBattlersCount; ++gActiveBattler) + { + if (GetBattlerPosition(gActiveBattler) == B_POSITION_OPPONENT_LEFT) + { + BtlController_EmitIntroTrainerBallThrow(0); + MarkBattlerForControllerExec(gActiveBattler); + } + if (gBattleTypeFlags & BATTLE_TYPE_MULTI && GetBattlerPosition(gActiveBattler) == B_POSITION_OPPONENT_RIGHT) + { + BtlController_EmitIntroTrainerBallThrow(0); + MarkBattlerForControllerExec(gActiveBattler); + } + } + gBattleMainFunc = BattleIntroRecordMonsToDex; + } +} + +static void BattleIntroRecordMonsToDex(void) +{ + if (!gBattleControllerExecFlags) + { + for (gActiveBattler = 0; gActiveBattler < gBattlersCount; ++gActiveBattler) + if (GetBattlerSide(gActiveBattler) == B_SIDE_OPPONENT + && !(gBattleTypeFlags & (BATTLE_TYPE_EREADER_TRAINER + | BATTLE_TYPE_POKEDUDE + | BATTLE_TYPE_LINK + | BATTLE_TYPE_GHOST + | BATTLE_TYPE_OLD_MAN_TUTORIAL + | BATTLE_TYPE_LEGENDARY))) + HandleSetPokedexFlag(SpeciesToNationalPokedexNum(gBattleMons[gActiveBattler].species), FLAG_SET_SEEN, gBattleMons[gActiveBattler].personality); + gBattleMainFunc = BattleIntroPrintPlayerSendsOut; + } +} + +// not used +static void sub_80136C4(void) +{ + if (!gBattleControllerExecFlags) + gBattleMainFunc = BattleIntroPrintPlayerSendsOut; +} + +void BattleIntroPrintPlayerSendsOut(void) +{ + if (!gBattleControllerExecFlags) + { + if (!(gBattleTypeFlags & BATTLE_TYPE_SAFARI)) + PrepareStringBattle(STRINGID_INTROSENDOUT, GetBattlerAtPosition(B_POSITION_PLAYER_LEFT)); + gBattleMainFunc = BattleIntroPlayerSendsOutMonAnimation; + } +} + +static void BattleIntroPlayerSendsOutMonAnimation(void) +{ + u32 position; + + if (!gBattleControllerExecFlags) + { + for (gActiveBattler = 0; gActiveBattler < gBattlersCount; ++gActiveBattler) + { + if (GetBattlerPosition(gActiveBattler) == B_POSITION_PLAYER_LEFT) + { + BtlController_EmitIntroTrainerBallThrow(0); + MarkBattlerForControllerExec(gActiveBattler); + } + if (gBattleTypeFlags & BATTLE_TYPE_MULTI && GetBattlerPosition(gActiveBattler) == B_POSITION_PLAYER_RIGHT) + { + BtlController_EmitIntroTrainerBallThrow(0); + MarkBattlerForControllerExec(gActiveBattler); + } + } + gBattleStruct->switchInAbilitiesCounter = 0; + gBattleStruct->switchInItemsCounter = 0; + gBattleStruct->overworldWeatherDone = FALSE; + gBattleMainFunc = TryDoEventsBeforeFirstTurn; + } +} + +// not used +static void sub_80137D0(void) +{ + if (!gBattleControllerExecFlags) + { + for (gActiveBattler = 0; gActiveBattler < gBattlersCount; ++gActiveBattler) + { + if (GetBattlerSide(gActiveBattler) == B_SIDE_PLAYER) + { + BtlController_EmitSwitchInAnim(0, gBattlerPartyIndexes[gActiveBattler], FALSE); + MarkBattlerForControllerExec(gActiveBattler); + } + } + gBattleStruct->switchInAbilitiesCounter = 0; + gBattleStruct->switchInItemsCounter = 0; + gBattleStruct->overworldWeatherDone = FALSE; + gBattleMainFunc = TryDoEventsBeforeFirstTurn; + } +} + +static void TryDoEventsBeforeFirstTurn(void) +{ + s32 i, j; + u8 effect = 0; + + if (!gBattleControllerExecFlags) + { + + if (gBattleStruct->switchInAbilitiesCounter == 0) + { + for (i = 0; i < gBattlersCount; ++i) + gBattlerByTurnOrder[i] = i; + for (i = 0; i < gBattlersCount - 1; ++i) + for (j = i + 1; j < gBattlersCount; ++j) + if (GetWhoStrikesFirst(gBattlerByTurnOrder[i], gBattlerByTurnOrder[j], TRUE) != 0) + SwapTurnOrder(i, j); + } + if (!gBattleStruct->overworldWeatherDone + && AbilityBattleEffects(0, 0, 0, ABILITYEFFECT_SWITCH_IN_WEATHER, 0) != 0) + { + gBattleStruct->overworldWeatherDone = TRUE; + return; + } + // Check all switch in abilities happening from the fastest mon to slowest. + while (gBattleStruct->switchInAbilitiesCounter < gBattlersCount) + { + if (AbilityBattleEffects(ABILITYEFFECT_ON_SWITCHIN, gBattlerByTurnOrder[gBattleStruct->switchInAbilitiesCounter], 0, 0, 0) != 0) + ++effect; + ++gBattleStruct->switchInAbilitiesCounter; + if (effect) + return; + } + if (AbilityBattleEffects(ABILITYEFFECT_INTIMIDATE1, 0, 0, 0, 0) != 0) + return; + if (AbilityBattleEffects(ABILITYEFFECT_TRACE, 0, 0, 0, 0) != 0) + return; + // Check all switch in items having effect from the fastest mon to slowest. + while (gBattleStruct->switchInItemsCounter < gBattlersCount) + { + if (ItemBattleEffects(ITEMEFFECT_ON_SWITCH_IN, gBattlerByTurnOrder[gBattleStruct->switchInItemsCounter], FALSE)) + ++effect; + ++gBattleStruct->switchInItemsCounter; + if (effect) + return; + } + for (i = 0; i < gBattlersCount; ++i) // pointless, ruby leftover + ; + for (i = 0; i < MAX_BATTLERS_COUNT; ++i) + { + *(gBattleStruct->monToSwitchIntoId + i) = PARTY_SIZE; + gChosenActionByBattler[i] = B_ACTION_NONE; + gChosenMoveByBattler[i] = MOVE_NONE; + } + TurnValuesCleanUp(FALSE); + SpecialStatusesClear(); + *(&gBattleStruct->field_91) = gAbsentBattlerFlags; + gBattleMainFunc = HandleTurnActionSelectionState; + ResetSentPokesToOpponentValue(); + for (i = 0; i < BATTLE_COMMUNICATION_ENTRIES_COUNT; ++i) + gBattleCommunication[i] = 0; + for (i = 0; i < gBattlersCount; ++i) + gBattleMons[i].status2 &= ~(STATUS2_FLINCHED); + *(&gBattleStruct->turnEffectsTracker) = 0; + *(&gBattleStruct->turnEffectsBattlerId) = 0; + *(&gBattleStruct->wishPerishSongState) = 0; + *(&gBattleStruct->wishPerishSongBattlerId) = 0; + gBattleScripting.atk49_state = 0; + gBattleStruct->faintedActionsState = 0; + gBattleStruct->turnCountersTracker = 0; + gMoveResultFlags = 0; + gRandomTurnNumber = Random(); + } +} + +static void HandleEndTurn_ContinueBattle(void) +{ + s32 i; + + if (!gBattleControllerExecFlags) + { + gBattleMainFunc = BattleTurnPassed; + for (i = 0; i < BATTLE_COMMUNICATION_ENTRIES_COUNT; ++i) + gBattleCommunication[i] = 0; + for (i = 0; i < gBattlersCount; ++i) + { + gBattleMons[i].status2 &= ~(STATUS2_FLINCHED); + if ((gBattleMons[i].status1 & STATUS1_SLEEP) && (gBattleMons[i].status2 & STATUS2_MULTIPLETURNS)) + CancelMultiTurnMoves(i); + } + gBattleStruct->turnEffectsTracker = 0; + gBattleStruct->turnEffectsBattlerId = 0; + gBattleStruct->wishPerishSongState = 0; + gBattleStruct->wishPerishSongBattlerId = 0; + gBattleStruct->turnCountersTracker = 0; + gMoveResultFlags = 0; + } +} + +void BattleTurnPassed(void) +{ + s32 i; + + TurnValuesCleanUp(TRUE); + if (gBattleOutcome == 0) + { + if (DoFieldEndTurnEffects()) + return; + if (DoBattlerEndTurnEffects()) + return; + } + if (HandleFaintedMonActions()) + return; + gBattleStruct->faintedActionsState = 0; + if (HandleWishPerishSongOnTurnEnd()) + return; + TurnValuesCleanUp(FALSE); + gHitMarker &= ~(HITMARKER_NO_ATTACKSTRING); + gHitMarker &= ~(HITMARKER_UNABLE_TO_USE_MOVE); + gHitMarker &= ~(HITMARKER_x400000); + gHitMarker &= ~(HITMARKER_x100000); + gBattleScripting.animTurn = 0; + gBattleScripting.animTargetsHit = 0; + gBattleScripting.atk49_state = 0; + gBattleMoveDamage = 0; + gMoveResultFlags = 0; + for (i = 0; i < 5; ++i) + gBattleCommunication[i] = 0; + if (gBattleOutcome != 0) + { + gCurrentActionFuncId = B_ACTION_FINISHED; + gBattleMainFunc = RunTurnActionsFunctions; + return; + } + if (gBattleResults.battleTurnCounter < 0xFF) + ++gBattleResults.battleTurnCounter; + for (i = 0; i < gBattlersCount; ++i) + { + gChosenActionByBattler[i] = B_ACTION_NONE; + gChosenMoveByBattler[i] = MOVE_NONE; + } + for (i = 0; i < MAX_BATTLERS_COUNT; ++i) + *(gBattleStruct->monToSwitchIntoId + i) = PARTY_SIZE; + *(&gBattleStruct->field_91) = gAbsentBattlerFlags; + gBattleMainFunc = HandleTurnActionSelectionState; + gRandomTurnNumber = Random(); +} + +u8 IsRunningFromBattleImpossible(void) +{ + u8 holdEffect; + u8 side; + s32 i; + + if (gBattleMons[gActiveBattler].item == ITEM_ENIGMA_BERRY) + holdEffect = gEnigmaBerries[gActiveBattler].holdEffect; + else + holdEffect = ItemId_GetHoldEffect(gBattleMons[gActiveBattler].item); + gPotentialItemEffectBattler = gActiveBattler; + if (holdEffect == HOLD_EFFECT_CAN_ALWAYS_RUN + || (gBattleTypeFlags & BATTLE_TYPE_LINK) + || gBattleMons[gActiveBattler].ability == ABILITY_RUN_AWAY) + return BATTLE_RUN_SUCCESS; + side = GetBattlerSide(gActiveBattler); + for (i = 0; i < gBattlersCount; ++i) + { + if (side != GetBattlerSide(i) + && gBattleMons[i].ability == ABILITY_SHADOW_TAG) + { + gBattleScripting.battler = i; + gLastUsedAbility = gBattleMons[i].ability; + gBattleCommunication[MULTISTRING_CHOOSER] = 2; + return BATTLE_RUN_FAILURE; + } + if (side != GetBattlerSide(i) + && gBattleMons[gActiveBattler].ability != ABILITY_LEVITATE + && !IS_BATTLER_OF_TYPE(gActiveBattler, TYPE_FLYING) + && gBattleMons[i].ability == ABILITY_ARENA_TRAP) + { + gBattleScripting.battler = i; + gLastUsedAbility = gBattleMons[i].ability; + gBattleCommunication[MULTISTRING_CHOOSER] = 2; + return BATTLE_RUN_FAILURE; + } + } + i = AbilityBattleEffects(ABILITYEFFECT_CHECK_FIELD_EXCEPT_BATTLER, gActiveBattler, ABILITY_MAGNET_PULL, 0, 0); + if (i != 0 && IS_BATTLER_OF_TYPE(gActiveBattler, TYPE_STEEL)) + { + gBattleScripting.battler = i - 1; + gLastUsedAbility = gBattleMons[i - 1].ability; + gBattleCommunication[MULTISTRING_CHOOSER] = 2; + return BATTLE_RUN_FAILURE; + } + if ((gBattleMons[gActiveBattler].status2 & (STATUS2_ESCAPE_PREVENTION | STATUS2_WRAPPED)) + || (gStatuses3[gActiveBattler] & STATUS3_ROOTED)) + { + gBattleCommunication[MULTISTRING_CHOOSER] = 0; + return BATTLE_RUN_FORBIDDEN; + } + if (gBattleTypeFlags & BATTLE_TYPE_FIRST_BATTLE) + { + gBattleCommunication[MULTISTRING_CHOOSER] = 1; + return BATTLE_RUN_FORBIDDEN; + } + return BATTLE_RUN_SUCCESS; +} + +void sub_8013F6C(u8 battler) +{ + s32 i; + u8 r4, r1; + + for (i = 0; i < 3; ++i) + gUnknown_203B0DC[i] = *(battler * 3 + i + (u8 *)(gBattleStruct->field_60)); + r4 = pokemon_order_func(gBattlerPartyIndexes[battler]); + r1 = pokemon_order_func(*(gBattleStruct->monToSwitchIntoId + battler)); + sub_8127FF4(r4, r1); + if (gBattleTypeFlags & BATTLE_TYPE_DOUBLE) + { + for (i = 0; i < 3; ++i) + { + *(battler * 3 + i + (u8 *)(gBattleStruct->field_60)) = gUnknown_203B0DC[i]; + *(BATTLE_PARTNER(battler) * 3 + i + (u8 *)(gBattleStruct->field_60)) = gUnknown_203B0DC[i]; + } + } + else + { + for (i = 0; i < 3; ++i) + *(battler * 3 + i + (u8 *)(gBattleStruct->field_60)) = gUnknown_203B0DC[i]; + } +} + +enum +{ + STATE_BEFORE_ACTION_CHOSEN, + STATE_WAIT_ACTION_CHOSEN, + STATE_WAIT_ACTION_CASE_CHOSEN, + STATE_WAIT_ACTION_CONFIRMED_STANDBY, + STATE_WAIT_ACTION_CONFIRMED, + STATE_SELECTION_SCRIPT, + STATE_WAIT_SET_BEFORE_ACTION, +}; + +static void HandleTurnActionSelectionState(void) +{ + s32 i; + + gBattleCommunication[ACTIONS_CONFIRMED_COUNT] = 0; + for (gActiveBattler = 0; gActiveBattler < gBattlersCount; ++gActiveBattler) + { + u8 position = GetBattlerPosition(gActiveBattler); + + switch (gBattleCommunication[gActiveBattler]) + { + case STATE_BEFORE_ACTION_CHOSEN: // Choose an action. + *(gBattleStruct->monToSwitchIntoId + gActiveBattler) = PARTY_SIZE; + if (gBattleTypeFlags & BATTLE_TYPE_MULTI + || (position & BIT_FLANK) == B_FLANK_LEFT + || gBattleStruct->field_91 & gBitTable[GetBattlerAtPosition(BATTLE_PARTNER(position))] + || gBattleCommunication[GetBattlerAtPosition(BATTLE_PARTNER(position))] == STATE_WAIT_ACTION_CONFIRMED) + { + if (gBattleStruct->field_91 & gBitTable[gActiveBattler]) + { + gChosenActionByBattler[gActiveBattler] = B_ACTION_NOTHING_FAINTED; + if (!(gBattleTypeFlags & BATTLE_TYPE_MULTI)) + gBattleCommunication[gActiveBattler] = STATE_WAIT_ACTION_CONFIRMED; + else + gBattleCommunication[gActiveBattler] = STATE_WAIT_ACTION_CONFIRMED_STANDBY; + } + else + { + if (gBattleMons[gActiveBattler].status2 & STATUS2_MULTIPLETURNS + || gBattleMons[gActiveBattler].status2 & STATUS2_RECHARGE) + { + gChosenActionByBattler[gActiveBattler] = B_ACTION_USE_MOVE; + gBattleCommunication[gActiveBattler] = STATE_WAIT_ACTION_CONFIRMED_STANDBY; + } + else + { + BtlController_EmitChooseAction(0, gChosenActionByBattler[0], gBattleBufferB[0][1] | (gBattleBufferB[0][2] << 8)); + MarkBattlerForControllerExec(gActiveBattler); + ++gBattleCommunication[gActiveBattler]; + } + } + } + break; + case STATE_WAIT_ACTION_CHOSEN: // Try to perform an action. + if (!(gBattleControllerExecFlags & ((gBitTable[gActiveBattler]) | (0xF0000000) | (gBitTable[gActiveBattler] << 4) | (gBitTable[gActiveBattler] << 8) | (gBitTable[gActiveBattler] << 0xC)))) + { + gChosenActionByBattler[gActiveBattler] = gBattleBufferB[gActiveBattler][1]; + switch (gBattleBufferB[gActiveBattler][1]) + { + case B_ACTION_USE_MOVE: + if (AreAllMovesUnusable()) + { + gBattleCommunication[gActiveBattler] = STATE_SELECTION_SCRIPT; + *(gBattleStruct->selectionScriptFinished + gActiveBattler) = FALSE; + *(gBattleStruct->stateIdAfterSelScript + gActiveBattler) = STATE_WAIT_ACTION_CONFIRMED_STANDBY; + *(gBattleStruct->moveTarget + gActiveBattler) = gBattleBufferB[gActiveBattler][3]; + return; + } + else if (gDisableStructs[gActiveBattler].encoredMove != MOVE_NONE) + { + gChosenMoveByBattler[gActiveBattler] = gDisableStructs[gActiveBattler].encoredMove; + *(gBattleStruct->chosenMovePositions + gActiveBattler) = gDisableStructs[gActiveBattler].encoredMovePos; + gBattleCommunication[gActiveBattler] = STATE_WAIT_ACTION_CONFIRMED_STANDBY; + return; + } + else + { + struct ChooseMoveStruct moveInfo; + + moveInfo.species = gBattleMons[gActiveBattler].species; + moveInfo.monType1 = gBattleMons[gActiveBattler].type1; + moveInfo.monType2 = gBattleMons[gActiveBattler].type2; + for (i = 0; i < MAX_MON_MOVES; ++i) + { + moveInfo.moves[i] = gBattleMons[gActiveBattler].moves[i]; + moveInfo.currentPp[i] = gBattleMons[gActiveBattler].pp[i]; + moveInfo.maxPp[i] = CalculatePPWithBonus(gBattleMons[gActiveBattler].moves[i], + gBattleMons[gActiveBattler].ppBonuses, + i); + } + BtlController_EmitChooseMove(0, (gBattleTypeFlags & BATTLE_TYPE_DOUBLE) != 0, FALSE, &moveInfo); + MarkBattlerForControllerExec(gActiveBattler); + } + break; + case B_ACTION_USE_ITEM: + if (gBattleTypeFlags & (BATTLE_TYPE_LINK | BATTLE_TYPE_BATTLE_TOWER | BATTLE_TYPE_EREADER_TRAINER)) + { + gSelectionBattleScripts[gActiveBattler] = BattleScript_ActionSelectionItemsCantBeUsed; + gBattleCommunication[gActiveBattler] = STATE_SELECTION_SCRIPT; + *(gBattleStruct->selectionScriptFinished + gActiveBattler) = FALSE; + *(gBattleStruct->stateIdAfterSelScript + gActiveBattler) = STATE_BEFORE_ACTION_CHOSEN; + return; + } + else + { + BtlController_EmitChooseItem(0, gBattleStruct->field_60[gActiveBattler]); + MarkBattlerForControllerExec(gActiveBattler); + } + break; + case B_ACTION_SWITCH: + *(gBattleStruct->field_58 + gActiveBattler) = gBattlerPartyIndexes[gActiveBattler]; + if (gBattleMons[gActiveBattler].status2 & (STATUS2_WRAPPED | STATUS2_ESCAPE_PREVENTION) || gStatuses3[gActiveBattler] & STATUS3_ROOTED) + { + BtlController_EmitChoosePokemon(0, PARTY_CANT_SWITCH, 6, ABILITY_NONE, gBattleStruct->field_60[gActiveBattler]); + } + else if ((i = ABILITY_ON_OPPOSING_FIELD(gActiveBattler, ABILITY_SHADOW_TAG)) + || ((i = ABILITY_ON_OPPOSING_FIELD(gActiveBattler, ABILITY_ARENA_TRAP)) + && !IS_BATTLER_OF_TYPE(gActiveBattler, TYPE_FLYING) + && gBattleMons[gActiveBattler].ability != ABILITY_LEVITATE) + || ((i = AbilityBattleEffects(ABILITYEFFECT_CHECK_FIELD_EXCEPT_BATTLER, gActiveBattler, ABILITY_MAGNET_PULL, 0, 0)) + && IS_BATTLER_OF_TYPE(gActiveBattler, TYPE_STEEL))) + { + BtlController_EmitChoosePokemon(0, ((i - 1) << 4) | PARTY_ABILITY_PREVENTS, 6, gLastUsedAbility, gBattleStruct->field_60[gActiveBattler]); + } + else + { + if (gActiveBattler == 2 && gChosenActionByBattler[0] == B_ACTION_SWITCH) + BtlController_EmitChoosePokemon(0, PARTY_CHOOSE_MON, *(gBattleStruct->monToSwitchIntoId + 0), ABILITY_NONE, gBattleStruct->field_60[gActiveBattler]); + else if (gActiveBattler == 3 && gChosenActionByBattler[1] == B_ACTION_SWITCH) + BtlController_EmitChoosePokemon(0, PARTY_CHOOSE_MON, *(gBattleStruct->monToSwitchIntoId + 1), ABILITY_NONE, gBattleStruct->field_60[gActiveBattler]); + else + BtlController_EmitChoosePokemon(0, PARTY_CHOOSE_MON, 6, ABILITY_NONE, gBattleStruct->field_60[gActiveBattler]); + } + MarkBattlerForControllerExec(gActiveBattler); + break; + case B_ACTION_SAFARI_BALL: + if (IsPlayerPartyAndPokemonStorageFull()) + { + gSelectionBattleScripts[gActiveBattler] = BattleScript_PrintFullBox; + gBattleCommunication[gActiveBattler] = STATE_SELECTION_SCRIPT; + *(gBattleStruct->selectionScriptFinished + gActiveBattler) = FALSE; + *(gBattleStruct->stateIdAfterSelScript + gActiveBattler) = STATE_BEFORE_ACTION_CHOSEN; + return; + } + break; + case B_ACTION_CANCEL_PARTNER: + gBattleCommunication[gActiveBattler] = STATE_WAIT_SET_BEFORE_ACTION; + gBattleCommunication[GetBattlerAtPosition(BATTLE_PARTNER(GetBattlerPosition(gActiveBattler)))] = STATE_BEFORE_ACTION_CHOSEN; + BtlController_EmitEndBounceEffect(0); + MarkBattlerForControllerExec(gActiveBattler); + return; + } + if (gBattleTypeFlags & BATTLE_TYPE_TRAINER + && !(gBattleTypeFlags & BATTLE_TYPE_LINK) + && gBattleBufferB[gActiveBattler][1] == B_ACTION_RUN) + { + BattleScriptExecute(BattleScript_PrintCantRunFromTrainer); + gBattleCommunication[gActiveBattler] = STATE_BEFORE_ACTION_CHOSEN; + } + else if (IsRunningFromBattleImpossible() != BATTLE_RUN_SUCCESS + && gBattleBufferB[gActiveBattler][1] == B_ACTION_RUN) + { + gSelectionBattleScripts[gActiveBattler] = BattleScript_PrintCantEscapeFromBattle; + gBattleCommunication[gActiveBattler] = STATE_SELECTION_SCRIPT; + *(gBattleStruct->selectionScriptFinished + gActiveBattler) = FALSE; + *(gBattleStruct->stateIdAfterSelScript + gActiveBattler) = STATE_BEFORE_ACTION_CHOSEN; + return; + } + else + { + ++gBattleCommunication[gActiveBattler]; + } + } + break; + case STATE_WAIT_ACTION_CASE_CHOSEN: + if (!(gBattleControllerExecFlags & ((gBitTable[gActiveBattler]) | (0xF0000000) | (gBitTable[gActiveBattler] << 4) | (gBitTable[gActiveBattler] << 8) | (gBitTable[gActiveBattler] << 0xC)))) + { + switch (gChosenActionByBattler[gActiveBattler]) + { + case B_ACTION_USE_MOVE: + switch (gBattleBufferB[gActiveBattler][1]) + { + case 3 ... 9: + gChosenActionByBattler[gActiveBattler] = gBattleBufferB[gActiveBattler][1]; + return; + default: + if ((gBattleBufferB[gActiveBattler][2] | (gBattleBufferB[gActiveBattler][3] << 8)) == 0xFFFF) + { + gBattleCommunication[gActiveBattler] = STATE_BEFORE_ACTION_CHOSEN; + } + else if (TrySetCantSelectMoveBattleScript()) + { + gBattleCommunication[gActiveBattler] = STATE_SELECTION_SCRIPT; + *(gBattleStruct->selectionScriptFinished + gActiveBattler) = FALSE; + gBattleBufferB[gActiveBattler][1] = 0; + *(gBattleStruct->stateIdAfterSelScript + gActiveBattler) = STATE_WAIT_ACTION_CHOSEN; + return; + } + else + { + *(gBattleStruct->chosenMovePositions + gActiveBattler) = gBattleBufferB[gActiveBattler][2]; + gChosenMoveByBattler[gActiveBattler] = gBattleMons[gActiveBattler].moves[*(gBattleStruct->chosenMovePositions + gActiveBattler)]; + *(gBattleStruct->moveTarget + gActiveBattler) = gBattleBufferB[gActiveBattler][3]; + ++gBattleCommunication[gActiveBattler]; + } + break; + } + break; + case B_ACTION_USE_ITEM: + if ((gBattleBufferB[gActiveBattler][1] | (gBattleBufferB[gActiveBattler][2] << 8)) == 0) + { + gBattleCommunication[gActiveBattler] = STATE_BEFORE_ACTION_CHOSEN; + } + else + { + gLastUsedItem = (gBattleBufferB[gActiveBattler][1] | (gBattleBufferB[gActiveBattler][2] << 8)); + ++gBattleCommunication[gActiveBattler]; + } + break; + case B_ACTION_SWITCH: + if (gBattleBufferB[gActiveBattler][1] == PARTY_SIZE) + { + gBattleCommunication[gActiveBattler] = STATE_BEFORE_ACTION_CHOSEN; + } + else + { + *(gBattleStruct->monToSwitchIntoId + gActiveBattler) = gBattleBufferB[gActiveBattler][1]; + if (gBattleTypeFlags & BATTLE_TYPE_MULTI) + { + *(gActiveBattler * 3 + (u8 *)(gBattleStruct->field_60) + 0) &= 0xF; + *(gActiveBattler * 3 + (u8 *)(gBattleStruct->field_60) + 0) |= (gBattleBufferB[gActiveBattler][2] & 0xF0); + *(gActiveBattler * 3 + (u8 *)(gBattleStruct->field_60) + 1) = gBattleBufferB[gActiveBattler][3]; + *((gActiveBattler ^ BIT_FLANK) * 3 + (u8 *)(gBattleStruct->field_60) + 0) &= (0xF0); + *((gActiveBattler ^ BIT_FLANK) * 3 + (u8 *)(gBattleStruct->field_60) + 0) |= (gBattleBufferB[gActiveBattler][2] & 0xF0) >> 4; + *((gActiveBattler ^ BIT_FLANK) * 3 + (u8 *)(gBattleStruct->field_60) + 2) = gBattleBufferB[gActiveBattler][3]; + } + ++gBattleCommunication[gActiveBattler]; + } + break; + case B_ACTION_RUN: + gHitMarker |= HITMARKER_RUN; + ++gBattleCommunication[gActiveBattler]; + break; + case B_ACTION_SAFARI_WATCH_CAREFULLY: + ++gBattleCommunication[gActiveBattler]; + break; + case B_ACTION_SAFARI_BALL: + ++gBattleCommunication[gActiveBattler]; + break; + case B_ACTION_SAFARI_POKEBLOCK: + case B_ACTION_SAFARI_GO_NEAR: + ++gBattleCommunication[gActiveBattler]; + break; + case B_ACTION_SAFARI_RUN: + gHitMarker |= HITMARKER_RUN; + ++gBattleCommunication[gActiveBattler]; + break; + case B_ACTION_OLDMAN_THROW: + ++gBattleCommunication[gActiveBattler]; + break; + } + } + break; + case STATE_WAIT_ACTION_CONFIRMED_STANDBY: + if (!(gBattleControllerExecFlags & ((gBitTable[gActiveBattler]) | (0xF0000000) | (gBitTable[gActiveBattler] << 4) | (gBitTable[gActiveBattler] << 8) | (gBitTable[gActiveBattler] << 0xC)))) + { + if (((gBattleTypeFlags & (BATTLE_TYPE_MULTI | BATTLE_TYPE_DOUBLE)) != BATTLE_TYPE_DOUBLE) + || (position & BIT_FLANK) != B_FLANK_LEFT + || (*(&gBattleStruct->field_91) & gBitTable[GetBattlerAtPosition(position ^ BIT_FLANK)])) + BtlController_EmitLinkStandbyMsg(0, 0); + else + BtlController_EmitLinkStandbyMsg(0, 1); + MarkBattlerForControllerExec(gActiveBattler); + ++gBattleCommunication[gActiveBattler]; + } + break; + case STATE_WAIT_ACTION_CONFIRMED: + if (!(gBattleControllerExecFlags & ((gBitTable[gActiveBattler]) | (0xF0000000) | (gBitTable[gActiveBattler] << 4) | (gBitTable[gActiveBattler] << 8) | (gBitTable[gActiveBattler] << 0xC)))) + ++gBattleCommunication[ACTIONS_CONFIRMED_COUNT]; + break; + case STATE_SELECTION_SCRIPT: + if (*(gBattleStruct->selectionScriptFinished + gActiveBattler)) + { + gBattleCommunication[gActiveBattler] = *(gBattleStruct->stateIdAfterSelScript + gActiveBattler); + } + else + { + gBattlerAttacker = gActiveBattler; + gBattlescriptCurrInstr = gSelectionBattleScripts[gActiveBattler]; + if (!(gBattleControllerExecFlags & ((gBitTable[gActiveBattler]) | (0xF0000000) | (gBitTable[gActiveBattler] << 4) | (gBitTable[gActiveBattler] << 8) | (gBitTable[gActiveBattler] << 0xC)))) + gBattleScriptingCommandsTable[gBattlescriptCurrInstr[0]](); + gSelectionBattleScripts[gActiveBattler] = gBattlescriptCurrInstr; + } + break; + case STATE_WAIT_SET_BEFORE_ACTION: + if (!(gBattleControllerExecFlags & ((gBitTable[gActiveBattler]) | (0xF0000000) | (gBitTable[gActiveBattler] << 4) | (gBitTable[gActiveBattler] << 8) | (gBitTable[gActiveBattler] << 0xC)))) + gBattleCommunication[gActiveBattler] = STATE_BEFORE_ACTION_CHOSEN; + break; + } + } + // Check if everyone chose actions. + if (gBattleCommunication[ACTIONS_CONFIRMED_COUNT] == gBattlersCount) + gBattleMainFunc = SetActionsAndBattlersTurnOrder; +} + +void SwapTurnOrder(u8 id1, u8 id2) +{ + u32 temp; + + SWAP(gActionsByTurnOrder[id1], gActionsByTurnOrder[id2], temp); + SWAP(gBattlerByTurnOrder[id1], gBattlerByTurnOrder[id2], temp); +} + +u8 GetWhoStrikesFirst(u8 battler1, u8 battler2, bool8 ignoreChosenMoves) +{ + u8 strikesFirst = 0; + u8 speedMultiplierBattler1 = 0, speedMultiplierBattler2 = 0; + u32 speedBattler1 = 0, speedBattler2 = 0; + u8 holdEffect = 0; + u8 holdEffectParam = 0; + u16 moveBattler1 = 0, moveBattler2 = 0; + + if (WEATHER_HAS_EFFECT) + { + if ((gBattleMons[battler1].ability == ABILITY_SWIFT_SWIM && gBattleWeather & WEATHER_RAIN_ANY) + || (gBattleMons[battler1].ability == ABILITY_CHLOROPHYLL && gBattleWeather & WEATHER_SUN_ANY)) + speedMultiplierBattler1 = 2; + else + speedMultiplierBattler1 = 1; + if ((gBattleMons[battler2].ability == ABILITY_SWIFT_SWIM && gBattleWeather & WEATHER_RAIN_ANY) + || (gBattleMons[battler2].ability == ABILITY_CHLOROPHYLL && gBattleWeather & WEATHER_SUN_ANY)) + speedMultiplierBattler2 = 2; + else + speedMultiplierBattler2 = 1; + } + else + { + speedMultiplierBattler1 = 1; + speedMultiplierBattler2 = 1; + } + speedBattler1 = (gBattleMons[battler1].speed * speedMultiplierBattler1) + * (gStatStageRatios[gBattleMons[battler1].statStages[STAT_SPEED]][0]) + / (gStatStageRatios[gBattleMons[battler1].statStages[STAT_SPEED]][1]); + if (gBattleMons[battler1].item == ITEM_ENIGMA_BERRY) + { + holdEffect = gEnigmaBerries[battler1].holdEffect; + holdEffectParam = gEnigmaBerries[battler1].holdEffectParam; + } + else + { + holdEffect = ItemId_GetHoldEffect(gBattleMons[battler1].item); + holdEffectParam = ItemId_GetHoldEffectParam(gBattleMons[battler1].item); + } + // badge boost + if (!(gBattleTypeFlags & BATTLE_TYPE_LINK) + && FlagGet(FLAG_BADGE03_GET) + && GetBattlerSide(battler1) == B_SIDE_PLAYER) + speedBattler1 = (speedBattler1 * 110) / 100; + if (holdEffect == HOLD_EFFECT_MACHO_BRACE) + speedBattler1 /= 2; + if (gBattleMons[battler1].status1 & STATUS1_PARALYSIS) + speedBattler1 /= 4; + if (holdEffect == HOLD_EFFECT_QUICK_CLAW && gRandomTurnNumber < (0xFFFF * holdEffectParam) / 100) + speedBattler1 = UINT_MAX; + // check second battlerId's speed + speedBattler2 = (gBattleMons[battler2].speed * speedMultiplierBattler2) + * (gStatStageRatios[gBattleMons[battler2].statStages[STAT_SPEED]][0]) + / (gStatStageRatios[gBattleMons[battler2].statStages[STAT_SPEED]][1]); + if (gBattleMons[battler2].item == ITEM_ENIGMA_BERRY) + { + holdEffect = gEnigmaBerries[battler2].holdEffect; + holdEffectParam = gEnigmaBerries[battler2].holdEffectParam; + } + else + { + holdEffect = ItemId_GetHoldEffect(gBattleMons[battler2].item); + holdEffectParam = ItemId_GetHoldEffectParam(gBattleMons[battler2].item); + } + // badge boost + if (!(gBattleTypeFlags & BATTLE_TYPE_LINK) + && FlagGet(FLAG_BADGE03_GET) + && GetBattlerSide(battler2) == B_SIDE_PLAYER) + speedBattler2 = (speedBattler2 * 110) / 100; + if (holdEffect == HOLD_EFFECT_MACHO_BRACE) + speedBattler2 /= 2; + if (gBattleMons[battler2].status1 & STATUS1_PARALYSIS) + speedBattler2 /= 4; + if (holdEffect == HOLD_EFFECT_QUICK_CLAW && gRandomTurnNumber < (0xFFFF * holdEffectParam) / 100) + speedBattler2 = UINT_MAX; + if (ignoreChosenMoves) + { + moveBattler1 = MOVE_NONE; + moveBattler2 = MOVE_NONE; + } + else + { + if (gChosenActionByBattler[battler1] == B_ACTION_USE_MOVE) + { + if (gProtectStructs[battler1].noValidMoves) + moveBattler1 = MOVE_STRUGGLE; + else + moveBattler1 = gBattleMons[battler1].moves[*(gBattleStruct->chosenMovePositions + battler1)]; + } + else + moveBattler1 = MOVE_NONE; + if (gChosenActionByBattler[battler2] == B_ACTION_USE_MOVE) + { + if (gProtectStructs[battler2].noValidMoves) + moveBattler2 = MOVE_STRUGGLE; + else + moveBattler2 = gBattleMons[battler2].moves[*(gBattleStruct->chosenMovePositions + battler2)]; + } + else + moveBattler2 = MOVE_NONE; + } + // both move priorities are different than 0 + if (gBattleMoves[moveBattler1].priority != 0 || gBattleMoves[moveBattler2].priority != 0) + { + // both priorities are the same + if (gBattleMoves[moveBattler1].priority == gBattleMoves[moveBattler2].priority) + { + if (speedBattler1 == speedBattler2 && Random() & 1) + strikesFirst = 2; // same speeds, same priorities + else if (speedBattler1 < speedBattler2) + strikesFirst = 1; // battler2 has more speed + // else battler1 has more speed + } + else if (gBattleMoves[moveBattler1].priority < gBattleMoves[moveBattler2].priority) + strikesFirst = 1; // battler2's move has greater priority + // else battler1's move has greater priority + } + // both priorities are equal to 0 + else + { + if (speedBattler1 == speedBattler2 && Random() & 1) + strikesFirst = 2; // same speeds, same priorities + else if (speedBattler1 < speedBattler2) + strikesFirst = 1; // battler2 has more speed + // else battler1 has more speed + } + return strikesFirst; +} + +static void SetActionsAndBattlersTurnOrder(void) +{ + s32 turnOrderId = 0; + s32 i, j; + + if (gBattleTypeFlags & BATTLE_TYPE_SAFARI) + { + for (gActiveBattler = 0; gActiveBattler < gBattlersCount; ++gActiveBattler) + { + gActionsByTurnOrder[turnOrderId] = gChosenActionByBattler[gActiveBattler]; + gBattlerByTurnOrder[turnOrderId] = gActiveBattler; + ++turnOrderId; + } + } + else + { + if (gBattleTypeFlags & BATTLE_TYPE_LINK) + { + for (gActiveBattler = 0; gActiveBattler < gBattlersCount; ++gActiveBattler) + { + if (gChosenActionByBattler[gActiveBattler] == B_ACTION_RUN) + { + turnOrderId = 5; + break; + } + } + } + else if (gChosenActionByBattler[0] == B_ACTION_RUN) + { + gActiveBattler = 0; + turnOrderId = 5; + } + if (turnOrderId == 5) // One of battlers wants to run. + { + gActionsByTurnOrder[0] = gChosenActionByBattler[gActiveBattler]; + gBattlerByTurnOrder[0] = gActiveBattler; + turnOrderId = 1; + for (i = 0; i < gBattlersCount; ++i) + { + if (i != gActiveBattler) + { + gActionsByTurnOrder[turnOrderId] = gChosenActionByBattler[i]; + gBattlerByTurnOrder[turnOrderId] = i; + ++turnOrderId; + } + } + gBattleMainFunc = CheckFocusPunch_ClearVarsBeforeTurnStarts; + gBattleStruct->focusPunchBattlerId = 0; + return; + } + else + { + for (gActiveBattler = 0; gActiveBattler < gBattlersCount; ++gActiveBattler) + { + if (gChosenActionByBattler[gActiveBattler] == B_ACTION_USE_ITEM || gChosenActionByBattler[gActiveBattler] == B_ACTION_SWITCH) + { + gActionsByTurnOrder[turnOrderId] = gChosenActionByBattler[gActiveBattler]; + gBattlerByTurnOrder[turnOrderId] = gActiveBattler; + ++turnOrderId; + } + } + for (gActiveBattler = 0; gActiveBattler < gBattlersCount; ++gActiveBattler) + { + if (gChosenActionByBattler[gActiveBattler] != B_ACTION_USE_ITEM && gChosenActionByBattler[gActiveBattler] != B_ACTION_SWITCH) + { + gActionsByTurnOrder[turnOrderId] = gChosenActionByBattler[gActiveBattler]; + gBattlerByTurnOrder[turnOrderId] = gActiveBattler; + ++turnOrderId; + } + } + for (i = 0; i < gBattlersCount - 1; ++i) + { + for (j = i + 1; j < gBattlersCount; ++j) + { + u8 battler1 = gBattlerByTurnOrder[i]; + u8 battler2 = gBattlerByTurnOrder[j]; + + if (gActionsByTurnOrder[i] != B_ACTION_USE_ITEM + && gActionsByTurnOrder[j] != B_ACTION_USE_ITEM + && gActionsByTurnOrder[i] != B_ACTION_SWITCH + && gActionsByTurnOrder[j] != B_ACTION_SWITCH) + if (GetWhoStrikesFirst(battler1, battler2, FALSE)) + SwapTurnOrder(i, j); + } + } + } + } + gBattleMainFunc = CheckFocusPunch_ClearVarsBeforeTurnStarts; + gBattleStruct->focusPunchBattlerId = 0; +} + +static void TurnValuesCleanUp(bool8 var0) +{ + s32 i; + u8 *dataPtr; + + for (gActiveBattler = 0; gActiveBattler < gBattlersCount; ++gActiveBattler) + { + if (var0) + { + gProtectStructs[gActiveBattler].protected = FALSE; + gProtectStructs[gActiveBattler].endured = FALSE; + } + else + { + dataPtr = (u8 *)(&gProtectStructs[gActiveBattler]); + for (i = 0; i < sizeof(struct ProtectStruct); ++i) + dataPtr[i] = 0; + if (gDisableStructs[gActiveBattler].isFirstTurn) + --gDisableStructs[gActiveBattler].isFirstTurn; + if (gDisableStructs[gActiveBattler].rechargeTimer) + { + --gDisableStructs[gActiveBattler].rechargeTimer; + if (gDisableStructs[gActiveBattler].rechargeTimer == 0) + gBattleMons[gActiveBattler].status2 &= ~(STATUS2_RECHARGE); + } + } + + if (gDisableStructs[gActiveBattler].substituteHP == 0) + gBattleMons[gActiveBattler].status2 &= ~(STATUS2_SUBSTITUTE); + } + gSideTimers[0].followmeTimer = 0; + gSideTimers[1].followmeTimer = 0; +} + +static void SpecialStatusesClear(void) +{ + for (gActiveBattler = 0; gActiveBattler < gBattlersCount; ++gActiveBattler) + { + s32 i; + u8 *dataPtr = (u8 *)(&gSpecialStatuses[gActiveBattler]); + + for (i = 0; i < sizeof(struct SpecialStatus); ++i) + dataPtr[i] = 0; + } +} + +static void CheckFocusPunch_ClearVarsBeforeTurnStarts(void) +{ + if (!(gHitMarker & HITMARKER_RUN)) + { + while (gBattleStruct->focusPunchBattlerId < gBattlersCount) + { + gActiveBattler = gBattlerAttacker = gBattleStruct->focusPunchBattlerId; + ++gBattleStruct->focusPunchBattlerId; + if (gChosenMoveByBattler[gActiveBattler] == MOVE_FOCUS_PUNCH + && !(gBattleMons[gActiveBattler].status1 & STATUS1_SLEEP) + && !(gDisableStructs[gBattlerAttacker].truantCounter) + && !(gProtectStructs[gActiveBattler].noValidMoves)) + { + BattleScriptExecute(BattleScript_FocusPunchSetUp); + return; + } + } + } + TryClearRageStatuses(); + gCurrentTurnActionNumber = 0; + { + // something stupid needed to match + u8 zero; + + gCurrentActionFuncId = gActionsByTurnOrder[(zero = 0)]; + } + gDynamicBasePower = 0; + gBattleStruct->dynamicMoveType = 0; + gBattleMainFunc = RunTurnActionsFunctions; + gBattleCommunication[3] = 0; + gBattleCommunication[4] = 0; + gBattleScripting.multihitMoveEffect = 0; + gBattleResources->battleScriptsStack->size = 0; +} + +static void RunTurnActionsFunctions(void) +{ + if (gBattleOutcome != 0) + gCurrentActionFuncId = B_ACTION_FINISHED; + *(&gBattleStruct->savedTurnActionNumber) = gCurrentTurnActionNumber; + sTurnActionsFuncsTable[gCurrentActionFuncId](); + + if (gCurrentTurnActionNumber >= gBattlersCount) // everyone did their actions, turn finished + { + gHitMarker &= ~(HITMARKER_x100000); + gBattleMainFunc = sEndTurnFuncsTable[gBattleOutcome & 0x7F]; + } + else + { + if (gBattleStruct->savedTurnActionNumber != gCurrentTurnActionNumber) // action turn has been done, clear hitmarker bits for another battlerId + { + gHitMarker &= ~(HITMARKER_NO_ATTACKSTRING); + gHitMarker &= ~(HITMARKER_UNABLE_TO_USE_MOVE); + } + } +} + +static void HandleEndTurn_BattleWon(void) +{ + gCurrentActionFuncId = 0; + if (gBattleTypeFlags & BATTLE_TYPE_LINK) + { + gBattleTextBuff1[0] = gBattleOutcome; + gBattlerAttacker = GetBattlerAtPosition(B_POSITION_PLAYER_LEFT); + gBattlescriptCurrInstr = BattleScript_LinkBattleWonOrLost; + gBattleOutcome &= ~(B_OUTCOME_LINK_BATTLE_RAN); + } + else if (gBattleTypeFlags & (BATTLE_TYPE_TRAINER_TOWER | BATTLE_TYPE_EREADER_TRAINER | BATTLE_TYPE_BATTLE_TOWER)) + { + BattleStopLowHpSound(); + PlayBGM(MUS_WIN_TRE); + gBattlescriptCurrInstr = gUnknown_81D88D7; + } + else if (gBattleTypeFlags & BATTLE_TYPE_TRAINER && !(gBattleTypeFlags & BATTLE_TYPE_LINK)) + { + BattleStopLowHpSound(); + gBattlescriptCurrInstr = BattleScript_LocalTrainerBattleWon; + switch (gTrainers[gTrainerBattleOpponent_A].trainerClass) + { + case CLASS_LEADER_2: + case CLASS_CHAMPION_2: + PlayBGM(MUS_WIN_GYM); + break; + case CLASS_BOSS: + case CLASS_TEAM_ROCKET: + case CLASS_COOLTRAINER_2: + case CLASS_ELITE_FOUR_2: + case CLASS_GENTLEMAN_2: + default: + PlayBGM(MUS_WIN_TRE); + break; + } + } + else + { + gBattlescriptCurrInstr = BattleScript_PayDayMoneyAndPickUpItems; + } + gBattleMainFunc = HandleEndTurn_FinishBattle; +} + +static void HandleEndTurn_BattleLost(void) +{ + gCurrentActionFuncId = 0; + if (gBattleTypeFlags & BATTLE_TYPE_LINK) + { + gBattleTextBuff1[0] = gBattleOutcome; + gBattlerAttacker = GetBattlerAtPosition(B_POSITION_PLAYER_LEFT); + gBattlescriptCurrInstr = BattleScript_LinkBattleWonOrLost; + gBattleOutcome &= ~(B_OUTCOME_LINK_BATTLE_RAN); + } + else + { + if (gBattleTypeFlags & BATTLE_TYPE_TRAINER && ScrSpecial_GetTrainerBattleMode() == 9) + { + if (sub_80803D8() & 1) + gBattleCommunication[MULTISTRING_CHOOSER] = 1; + else + gBattleCommunication[MULTISTRING_CHOOSER] = 2; + gBattlerAttacker = GetBattlerAtPosition(B_POSITION_OPPONENT_LEFT); + } + else + { + gBattleCommunication[MULTISTRING_CHOOSER] = 0; + } + gBattlescriptCurrInstr = BattleScript_LocalBattleLost; + } + gBattleMainFunc = HandleEndTurn_FinishBattle; +} + +static void HandleEndTurn_RanFromBattle(void) +{ + gCurrentActionFuncId = 0; + switch (gProtectStructs[gBattlerAttacker].fleeFlag) + { + default: + gBattlescriptCurrInstr = BattleScript_GotAwaySafely; + break; + case 1: + gBattlescriptCurrInstr = BattleScript_SmokeBallEscape; + break; + case 2: + gBattlescriptCurrInstr = BattleScript_RanAwayUsingMonAbility; + break; + } + gBattleMainFunc = HandleEndTurn_FinishBattle; +} + +static void HandleEndTurn_MonFled(void) +{ + gCurrentActionFuncId = 0; + PREPARE_MON_NICK_BUFFER(gBattleTextBuff1, gBattlerAttacker, gBattlerPartyIndexes[gBattlerAttacker]); + gBattlescriptCurrInstr = BattleScript_WildMonFled; + gBattleMainFunc = HandleEndTurn_FinishBattle; +} + +static void HandleEndTurn_FinishBattle(void) +{ + if (gCurrentActionFuncId == B_ACTION_TRY_FINISH || gCurrentActionFuncId == B_ACTION_FINISHED) + { + if (!(gBattleTypeFlags & (BATTLE_TYPE_TRAINER_TOWER | BATTLE_TYPE_EREADER_TRAINER | BATTLE_TYPE_OLD_MAN_TUTORIAL | BATTLE_TYPE_BATTLE_TOWER | BATTLE_TYPE_SAFARI | BATTLE_TYPE_FIRST_BATTLE | BATTLE_TYPE_LINK))) + { + for (gActiveBattler = 0; gActiveBattler < gBattlersCount; ++gActiveBattler) + { + if (GetBattlerSide(gActiveBattler) == B_SIDE_PLAYER) + { + if (gBattleResults.playerMon1Species == SPECIES_NONE) + { + gBattleResults.playerMon1Species = gBattleMons[gActiveBattler].species; + StringCopy(gBattleResults.playerMon1Name, gBattleMons[gActiveBattler].nickname); + } + else + { + gBattleResults.playerMon2Species = gBattleMons[gActiveBattler].species; + StringCopy(gBattleResults.playerMon2Name, gBattleMons[gActiveBattler].nickname); + } + } + } + } + sub_812BFDC(); + if (gBattleTypeFlags & BATTLE_TYPE_TRAINER) + sub_810CB90(); + BeginFastPaletteFade(3); + FadeOutMapMusic(5); + gBattleMainFunc = FreeResetData_ReturnToOvOrDoEvolutions; + gCB2_AfterEvolution = BattleMainCB2; + } + else if (!gBattleControllerExecFlags) + { + gBattleScriptingCommandsTable[gBattlescriptCurrInstr[0]](); + } +} + +static void FreeResetData_ReturnToOvOrDoEvolutions(void) +{ + if (!gPaletteFade.active) + { + ResetSpriteData(); + if (gLeveledUpInBattle == 0 || gBattleOutcome != B_OUTCOME_WON) + gBattleMainFunc = ReturnFromBattleToOverworld; + else + gBattleMainFunc = TryEvolvePokemon; + FreeAllWindowBuffers(); + if (!(gBattleTypeFlags & BATTLE_TYPE_LINK)) + { + FreeMonSpritesGfx(); + FreeBattleSpritesData(); + FreeBattleResources(); + } + } +} + +static void TryEvolvePokemon(void) +{ + s32 i; + + while (gLeveledUpInBattle != 0) + { + for (i = 0; i < PARTY_SIZE; ++i) + { + if (gLeveledUpInBattle & gBitTable[i]) + { + u16 species; + u8 levelUpBits = gLeveledUpInBattle; + + levelUpBits &= ~(gBitTable[i]); + gLeveledUpInBattle = levelUpBits; + species = GetEvolutionTargetSpecies(&gPlayerParty[i], 0, levelUpBits); + if (species != SPECIES_NONE) + { + gBattleMainFunc = WaitForEvoSceneToFinish; + EvolutionScene(&gPlayerParty[i], species, 0x81, i); + return; + } + } + } + } + gBattleMainFunc = ReturnFromBattleToOverworld; +} + +static void WaitForEvoSceneToFinish(void) +{ + if (gMain.callback2 == BattleMainCB2) + gBattleMainFunc = TryEvolvePokemon; +} + +static void ReturnFromBattleToOverworld(void) +{ + if (!(gBattleTypeFlags & BATTLE_TYPE_LINK)) + { + RandomlyGivePartyPokerus(gPlayerParty); + PartySpreadPokerus(gPlayerParty); + } + if (!(gBattleTypeFlags & BATTLE_TYPE_LINK) || gReceivedRemoteLinkPlayers == 0) + { + gSpecialVar_Result = gBattleOutcome; + gMain.inBattle = FALSE; + gMain.callback1 = gPreBattleCallback1; + if (gBattleTypeFlags & BATTLE_TYPE_ROAMER) + { + UpdateRoamerHPStatus(&gEnemyParty[0]); + if ((gBattleOutcome & B_OUTCOME_WON) || gBattleOutcome == B_OUTCOME_CAUGHT) + SetRoamerInactive(); + } + m4aSongNumStop(SE_HINSI); + SetMainCallback2(gMain.savedCallback); + } +} + +void RunBattleScriptCommands_PopCallbacksStack(void) +{ + if (gCurrentActionFuncId == B_ACTION_TRY_FINISH || gCurrentActionFuncId == B_ACTION_FINISHED) + { + if (gBattleResources->battleCallbackStack->size != 0) + --gBattleResources->battleCallbackStack->size; + gBattleMainFunc = gBattleResources->battleCallbackStack->function[gBattleResources->battleCallbackStack->size]; + } + else + { + if (!gBattleControllerExecFlags) + gBattleScriptingCommandsTable[gBattlescriptCurrInstr[0]](); + } +} + +void RunBattleScriptCommands(void) +{ + if (!gBattleControllerExecFlags) + gBattleScriptingCommandsTable[gBattlescriptCurrInstr[0]](); +} + +static void HandleAction_UseMove(void) +{ + u8 side; + u8 var = 4; + + gBattlerAttacker = gBattlerByTurnOrder[gCurrentTurnActionNumber]; + if (*(&gBattleStruct->field_91) & gBitTable[gBattlerAttacker]) + { + gCurrentActionFuncId = B_ACTION_FINISHED; + return; + } + gCritMultiplier = 1; + gBattleScripting.dmgMultiplier = 1; + gBattleStruct->atkCancellerTracker = 0; + gMoveResultFlags = 0; + gMultiHitCounter = 0; + gBattleCommunication[6] = 0; + gCurrMovePos = gChosenMovePos = *(gBattleStruct->chosenMovePositions + gBattlerAttacker); + // choose move + if (gProtectStructs[gBattlerAttacker].noValidMoves) + { + gProtectStructs[gBattlerAttacker].noValidMoves = 0; + gCurrentMove = gChosenMove = MOVE_STRUGGLE; + gHitMarker |= HITMARKER_NO_PPDEDUCT; + *(gBattleStruct->moveTarget + gBattlerAttacker) = GetMoveTarget(MOVE_STRUGGLE, 0); + } + else if (gBattleMons[gBattlerAttacker].status2 & STATUS2_MULTIPLETURNS || gBattleMons[gBattlerAttacker].status2 & STATUS2_RECHARGE) + { + gCurrentMove = gChosenMove = gLockedMoves[gBattlerAttacker]; + } + // encore forces you to use the same move + else if (gDisableStructs[gBattlerAttacker].encoredMove != MOVE_NONE + && gDisableStructs[gBattlerAttacker].encoredMove == gBattleMons[gBattlerAttacker].moves[gDisableStructs[gBattlerAttacker].encoredMovePos]) + { + gCurrentMove = gChosenMove = gDisableStructs[gBattlerAttacker].encoredMove; + gCurrMovePos = gChosenMovePos = gDisableStructs[gBattlerAttacker].encoredMovePos; + *(gBattleStruct->moveTarget + gBattlerAttacker) = GetMoveTarget(gCurrentMove, 0); + } + // check if the encored move wasn't overwritten + else if (gDisableStructs[gBattlerAttacker].encoredMove != MOVE_NONE + && gDisableStructs[gBattlerAttacker].encoredMove != gBattleMons[gBattlerAttacker].moves[gDisableStructs[gBattlerAttacker].encoredMovePos]) + { + gCurrMovePos = gChosenMovePos = gDisableStructs[gBattlerAttacker].encoredMovePos; + gCurrentMove = gChosenMove = gBattleMons[gBattlerAttacker].moves[gCurrMovePos]; + gDisableStructs[gBattlerAttacker].encoredMove = MOVE_NONE; + gDisableStructs[gBattlerAttacker].encoredMovePos = 0; + gDisableStructs[gBattlerAttacker].encoreTimer = 0; + *(gBattleStruct->moveTarget + gBattlerAttacker) = GetMoveTarget(gCurrentMove, 0); + } + else if (gBattleMons[gBattlerAttacker].moves[gCurrMovePos] != gChosenMoveByBattler[gBattlerAttacker]) + { + gCurrentMove = gChosenMove = gBattleMons[gBattlerAttacker].moves[gCurrMovePos]; + *(gBattleStruct->moveTarget + gBattlerAttacker) = GetMoveTarget(gCurrentMove, 0); + } + else + { + gCurrentMove = gChosenMove = gBattleMons[gBattlerAttacker].moves[gCurrMovePos]; + } + if (GetBattlerSide(gBattlerAttacker) == B_SIDE_PLAYER) + gBattleResults.lastUsedMovePlayer = gCurrentMove; + else + gBattleResults.lastUsedMoveOpponent = gCurrentMove; + // choose target + side = GetBattlerSide(gBattlerAttacker) ^ BIT_SIDE; + if (gSideTimers[side].followmeTimer != 0 + && gBattleMoves[gCurrentMove].target == MOVE_TARGET_SELECTED + && GetBattlerSide(gBattlerAttacker) != GetBattlerSide(gSideTimers[side].followmeTarget) + && gBattleMons[gSideTimers[side].followmeTarget].hp != 0) + { + gBattlerTarget = gSideTimers[side].followmeTarget; + } + else if ((gBattleTypeFlags & BATTLE_TYPE_DOUBLE) + && gSideTimers[side].followmeTimer == 0 + && (gBattleMoves[gCurrentMove].power != 0 + || gBattleMoves[gCurrentMove].target != MOVE_TARGET_USER) + && gBattleMons[*(gBattleStruct->moveTarget + gBattlerAttacker)].ability != ABILITY_LIGHTNING_ROD + && gBattleMoves[gCurrentMove].type == TYPE_ELECTRIC) + { + side = GetBattlerSide(gBattlerAttacker); + for (gActiveBattler = 0; gActiveBattler < gBattlersCount; ++gActiveBattler) + if (side != GetBattlerSide(gActiveBattler) + && *(gBattleStruct->moveTarget + gBattlerAttacker) != gActiveBattler + && gBattleMons[gActiveBattler].ability == ABILITY_LIGHTNING_ROD + && GetBattlerTurnOrderNum(gActiveBattler) < var) + var = GetBattlerTurnOrderNum(gActiveBattler); + if (var == 4) + { + if (gBattleMoves[gChosenMove].target & MOVE_TARGET_RANDOM) + { + if (GetBattlerSide(gBattlerAttacker) == B_SIDE_PLAYER) + { + if (Random() & 1) + gBattlerTarget = GetBattlerAtPosition(B_POSITION_OPPONENT_LEFT); + else + gBattlerTarget = GetBattlerAtPosition(B_POSITION_OPPONENT_RIGHT); + } + else + { + if (Random() & 1) + gBattlerTarget = GetBattlerAtPosition(B_POSITION_PLAYER_LEFT); + else + gBattlerTarget = GetBattlerAtPosition(B_POSITION_PLAYER_RIGHT); + } + } + else + { + gBattlerTarget = *(gBattleStruct->moveTarget + gBattlerAttacker); + } + if (gAbsentBattlerFlags & gBitTable[gBattlerTarget]) + { + if (GetBattlerSide(gBattlerAttacker) != GetBattlerSide(gBattlerTarget)) + { + gBattlerTarget = GetBattlerAtPosition(GetBattlerPosition(gBattlerTarget) ^ BIT_FLANK); + } + else + { + gBattlerTarget = GetBattlerAtPosition(GetBattlerPosition(gBattlerAttacker) ^ BIT_SIDE); + if (gAbsentBattlerFlags & gBitTable[gBattlerTarget]) + gBattlerTarget = GetBattlerAtPosition(GetBattlerPosition(gBattlerTarget) ^ BIT_FLANK); + } + } + } + else + { + gActiveBattler = gBattlerByTurnOrder[var]; + RecordAbilityBattle(gActiveBattler, gBattleMons[gActiveBattler].ability); + gSpecialStatuses[gActiveBattler].lightningRodRedirected = 1; + gBattlerTarget = gActiveBattler; + } + } + else if (gBattleTypeFlags & BATTLE_TYPE_DOUBLE + && gBattleMoves[gChosenMove].target & MOVE_TARGET_RANDOM) + { + if (GetBattlerSide(gBattlerAttacker) == B_SIDE_PLAYER) + { + if (Random() & 1) + gBattlerTarget = GetBattlerAtPosition(B_POSITION_OPPONENT_LEFT); + else + gBattlerTarget = GetBattlerAtPosition(B_POSITION_OPPONENT_RIGHT); + } + else + { + if (Random() & 1) + gBattlerTarget = GetBattlerAtPosition(B_POSITION_PLAYER_LEFT); + else + gBattlerTarget = GetBattlerAtPosition(B_POSITION_PLAYER_RIGHT); + } + if (gAbsentBattlerFlags & gBitTable[gBattlerTarget] + && GetBattlerSide(gBattlerAttacker) != GetBattlerSide(gBattlerTarget)) + gBattlerTarget = GetBattlerAtPosition(GetBattlerPosition(gBattlerTarget) ^ BIT_FLANK); + } + else + { + gBattlerTarget = *(gBattleStruct->moveTarget + gBattlerAttacker); + if (gAbsentBattlerFlags & gBitTable[gBattlerTarget]) + { + if (GetBattlerSide(gBattlerAttacker) != GetBattlerSide(gBattlerTarget)) + { + gBattlerTarget = GetBattlerAtPosition(GetBattlerPosition(gBattlerTarget) ^ BIT_FLANK); + } + else + { + gBattlerTarget = GetBattlerAtPosition(GetBattlerPosition(gBattlerAttacker) ^ BIT_SIDE); + if (gAbsentBattlerFlags & gBitTable[gBattlerTarget]) + gBattlerTarget = GetBattlerAtPosition(GetBattlerPosition(gBattlerTarget) ^ BIT_FLANK); + } + } + } + gBattlescriptCurrInstr = gBattleScriptsForMoveEffects[gBattleMoves[gCurrentMove].effect]; + gCurrentActionFuncId = B_ACTION_EXEC_SCRIPT; +} + +static void HandleAction_Switch(void) +{ + gBattlerAttacker = gBattlerByTurnOrder[gCurrentTurnActionNumber]; + gBattle_BG0_X = 0; + gBattle_BG0_Y = 0; + gActionSelectionCursor[gBattlerAttacker] = 0; + gMoveSelectionCursor[gBattlerAttacker] = 0; + PREPARE_MON_NICK_BUFFER(gBattleTextBuff1, gBattlerAttacker, *(gBattleStruct->field_58 + gBattlerAttacker)); + gBattleScripting.battler = gBattlerAttacker; + gBattlescriptCurrInstr = BattleScript_ActionSwitch; + gCurrentActionFuncId = B_ACTION_EXEC_SCRIPT; + if (gBattleResults.playerSwitchesCounter < 255) + ++gBattleResults.playerSwitchesCounter; +} + +static void HandleAction_UseItem(void) +{ + gBattlerAttacker = gBattlerTarget = gBattlerByTurnOrder[gCurrentTurnActionNumber]; + gBattle_BG0_X = 0; + gBattle_BG0_Y = 0; + ClearFuryCutterDestinyBondGrudge(gBattlerAttacker); + gLastUsedItem = gBattleBufferB[gBattlerAttacker][1] | (gBattleBufferB[gBattlerAttacker][2] << 8); + if (gLastUsedItem <= ITEM_PREMIER_BALL) // is ball + { + gBattlescriptCurrInstr = gBattlescriptsForBallThrow[gLastUsedItem]; + } + else if (gLastUsedItem == ITEM_POKE_DOLL || gLastUsedItem == ITEM_FLUFFY_TAIL) + { + gBattlescriptCurrInstr = gBattlescriptsForRunningByItem[0]; + } + else if (gLastUsedItem == ITEM_POKE_FLUTE) + { + gBattlescriptCurrInstr = gBattlescriptsForRunningByItem[1]; + } + else if (GetBattlerSide(gBattlerAttacker) == B_SIDE_PLAYER) + { + gBattlescriptCurrInstr = gBattlescriptsForUsingItem[0]; + } + else + { + gBattleScripting.battler = gBattlerAttacker; + switch (*(gBattleStruct->AI_itemType + (gBattlerAttacker >> 1))) + { + case AI_ITEM_FULL_RESTORE: + case AI_ITEM_HEAL_HP: + break; + case AI_ITEM_CURE_CONDITION: + gBattleCommunication[MULTISTRING_CHOOSER] = 0; + if (*(gBattleStruct->AI_itemFlags + gBattlerAttacker / 2) & 1) + { + if (*(gBattleStruct->AI_itemFlags + gBattlerAttacker / 2) & 0x3E) + gBattleCommunication[MULTISTRING_CHOOSER] = 5; + } + else + { + while (!(*(gBattleStruct->AI_itemFlags + gBattlerAttacker / 2) & 1)) + { + *(gBattleStruct->AI_itemFlags + gBattlerAttacker / 2) >>= 1; + ++gBattleCommunication[MULTISTRING_CHOOSER]; + } + } + break; + case AI_ITEM_X_STAT: + gBattleCommunication[MULTISTRING_CHOOSER] = 4; + if (*(gBattleStruct->AI_itemFlags + (gBattlerAttacker >> 1)) & 0x80) + { + gBattleCommunication[MULTISTRING_CHOOSER] = 5; + } + else + { + PREPARE_STAT_BUFFER(gBattleTextBuff1, STAT_ATK); + PREPARE_STRING_BUFFER(gBattleTextBuff2, CHAR_X); + while (!((*(gBattleStruct->AI_itemFlags + (gBattlerAttacker >> 1))) & 1)) + { + *(gBattleStruct->AI_itemFlags + gBattlerAttacker / 2) >>= 1; + ++gBattleTextBuff1[2]; + } + gBattleScripting.animArg1 = gBattleTextBuff1[2] + 14; + gBattleScripting.animArg2 = 0; + } + break; + case AI_ITEM_GUARD_SPECS: + if (gBattleTypeFlags & BATTLE_TYPE_DOUBLE) + gBattleCommunication[MULTISTRING_CHOOSER] = 2; + else + gBattleCommunication[MULTISTRING_CHOOSER] = 0; + break; + } + + gBattlescriptCurrInstr = gBattlescriptsForUsingItem[*(gBattleStruct->AI_itemType + gBattlerAttacker / 2)]; + } + gCurrentActionFuncId = B_ACTION_EXEC_SCRIPT; +} + +bool8 TryRunFromBattle(u8 battler) +{ + bool8 effect = FALSE; + u8 holdEffect; + u8 pyramidMultiplier; + u8 speedVar; + + if (gBattleMons[battler].item == ITEM_ENIGMA_BERRY) + holdEffect = gEnigmaBerries[battler].holdEffect; + else + holdEffect = ItemId_GetHoldEffect(gBattleMons[battler].item); + gPotentialItemEffectBattler = battler; + if (holdEffect == HOLD_EFFECT_CAN_ALWAYS_RUN) + { + gLastUsedItem = gBattleMons[battler].item; + gProtectStructs[battler].fleeFlag = 1; + ++effect; + } + else if (gBattleMons[battler].ability == ABILITY_RUN_AWAY) + { + gLastUsedAbility = ABILITY_RUN_AWAY; + gProtectStructs[battler].fleeFlag = 2; + ++effect; + } + else if ((gBattleTypeFlags & (BATTLE_TYPE_LEGENDARY | BATTLE_TYPE_GHOST)) == BATTLE_TYPE_GHOST) + { + if (GetBattlerSide(battler) == B_SIDE_PLAYER) + ++effect; + } + else + { + if (!(gBattleTypeFlags & BATTLE_TYPE_DOUBLE)) + { + if (gBattleMons[battler].speed < gBattleMons[BATTLE_OPPOSITE(battler)].speed) + { + speedVar = (gBattleMons[battler].speed * 128) / (gBattleMons[BATTLE_OPPOSITE(battler)].speed) + (gBattleStruct->runTries * 30); + if (speedVar > (Random() & 0xFF)) + ++effect; + } + else // same speed or faster + { + ++effect; + } + } + + ++gBattleStruct->runTries; + } + if (effect) + { + gCurrentTurnActionNumber = gBattlersCount; + gBattleOutcome = B_OUTCOME_RAN; + } + return effect; +} + +static void HandleAction_Run(void) +{ + gBattlerAttacker = gBattlerByTurnOrder[gCurrentTurnActionNumber]; + + if (gBattleTypeFlags & BATTLE_TYPE_LINK) + { + gCurrentTurnActionNumber = gBattlersCount; + for (gActiveBattler = 0; gActiveBattler < gBattlersCount; ++gActiveBattler) + { + if (GetBattlerSide(gActiveBattler) == B_SIDE_PLAYER) + { + if (gChosenActionByBattler[gActiveBattler] == B_ACTION_RUN) + gBattleOutcome |= B_OUTCOME_LOST; + } + else + { + if (gChosenActionByBattler[gActiveBattler] == B_ACTION_RUN) + gBattleOutcome |= B_OUTCOME_WON; + } + } + gBattleOutcome |= B_OUTCOME_LINK_BATTLE_RAN; + } + else + { + if (GetBattlerSide(gBattlerAttacker) == B_SIDE_PLAYER) + { + if (!TryRunFromBattle(gBattlerAttacker)) // failed to run away + { + ClearFuryCutterDestinyBondGrudge(gBattlerAttacker); + gBattleCommunication[MULTISTRING_CHOOSER] = 3; + gBattlescriptCurrInstr = BattleScript_PrintFailedToRunString; + gCurrentActionFuncId = B_ACTION_EXEC_SCRIPT; + } + } + else + { + if (gBattleMons[gBattlerAttacker].status2 & (STATUS2_WRAPPED | STATUS2_ESCAPE_PREVENTION)) + { + gBattleCommunication[MULTISTRING_CHOOSER] = 4; + gBattlescriptCurrInstr = BattleScript_PrintFailedToRunString; + gCurrentActionFuncId = B_ACTION_EXEC_SCRIPT; + } + else + { + gCurrentTurnActionNumber = gBattlersCount; + gBattleOutcome = B_OUTCOME_MON_FLED; + } + } + } +} + +static void HandleAction_WatchesCarefully(void) +{ + gBattlerAttacker = gBattlerByTurnOrder[gCurrentTurnActionNumber]; + gBattle_BG0_X = 0; + gBattle_BG0_Y = 0; + if (gBattleStruct->safariGoNearCounter != 0) + { + --gBattleStruct->safariGoNearCounter; + if (gBattleStruct->safariGoNearCounter == 0) + { + *(&gBattleStruct->safariCatchFactor) = gBaseStats[GetMonData(gEnemyParty, MON_DATA_SPECIES)].catchRate * 100 / 1275; + gBattleCommunication[MULTISTRING_CHOOSER] = 0; + } + else + { + gBattleCommunication[MULTISTRING_CHOOSER] = 1; + } + } + else + { + if (gBattleStruct->safariPkblThrowCounter != 0) + { + --gBattleStruct->safariPkblThrowCounter; + if (gBattleStruct->safariPkblThrowCounter == 0) + gBattleCommunication[MULTISTRING_CHOOSER] = 0; + else + gBattleCommunication[5] = 2; + } + else + { + gBattleCommunication[MULTISTRING_CHOOSER] = 0; + } + } + gBattlescriptCurrInstr = gBattlescriptsForSafariActions[0]; + gCurrentActionFuncId = B_ACTION_EXEC_SCRIPT; +} + +static void HandleAction_SafariZoneBallThrow(void) +{ + gBattlerAttacker = gBattlerByTurnOrder[gCurrentTurnActionNumber]; + gBattle_BG0_X = 0; + gBattle_BG0_Y = 0; + --gNumSafariBalls; + gLastUsedItem = ITEM_SAFARI_BALL; + gBattlescriptCurrInstr = gBattlescriptsForBallThrow[ITEM_SAFARI_BALL]; + gCurrentActionFuncId = B_ACTION_EXEC_SCRIPT; +} + +static void HandleAction_ThrowPokeblock(void) +{ + gBattlerAttacker = gBattlerByTurnOrder[gCurrentTurnActionNumber]; + gBattle_BG0_X = 0; + gBattle_BG0_Y = 0; + gBattleStruct->safariPkblThrowCounter += Random() % 5 + 2; + if (gBattleStruct->safariPkblThrowCounter > 6) + gBattleStruct->safariPkblThrowCounter = 6; + gBattleStruct->safariGoNearCounter = 0; + gBattleStruct->safariCatchFactor >>= 1; + if (gBattleStruct->safariCatchFactor <= 2) + gBattleStruct->safariCatchFactor = 3; + gBattlescriptCurrInstr = gBattlescriptsForSafariActions[2]; + gCurrentActionFuncId = B_ACTION_EXEC_SCRIPT; +} + +static void HandleAction_GoNear(void) +{ + gBattlerAttacker = gBattlerByTurnOrder[gCurrentTurnActionNumber]; + gBattle_BG0_X = 0; + gBattle_BG0_Y = 0; + gBattleStruct->safariGoNearCounter += Random() % 5 + 2; + if (gBattleStruct->safariGoNearCounter > 6) + gBattleStruct->safariGoNearCounter = 6; + gBattleStruct->safariPkblThrowCounter = 0; + gBattleStruct->safariCatchFactor <<= 1; + if (gBattleStruct->safariCatchFactor > 20) + gBattleStruct->safariCatchFactor = 20; + gBattlescriptCurrInstr = gBattlescriptsForSafariActions[1]; + gCurrentActionFuncId = B_ACTION_EXEC_SCRIPT; +} + +static void HandleAction_SafariZoneRun(void) +{ + gBattlerAttacker = gBattlerByTurnOrder[gCurrentTurnActionNumber]; + PlaySE(SE_NIGERU); + gCurrentTurnActionNumber = gBattlersCount; + gBattleOutcome = B_OUTCOME_RAN; +} + +static void HandleAction_OldManBallThrow(void) +{ + gBattlerAttacker = gBattlerByTurnOrder[gCurrentTurnActionNumber]; + gBattle_BG0_X = 0; + gBattle_BG0_Y = 0; + PREPARE_MON_NICK_BUFFER(gBattleTextBuff1, gBattlerAttacker, gBattlerPartyIndexes[gBattlerAttacker]) + gBattlescriptCurrInstr = gBattlescriptsForSafariActions[3]; + gCurrentActionFuncId = B_ACTION_EXEC_SCRIPT; + gActionsByTurnOrder[1] = B_ACTION_FINISHED; +} + +static void HandleAction_TryFinish(void) +{ + if (!HandleFaintedMonActions()) + { + gBattleStruct->faintedActionsState = 0; + gCurrentActionFuncId = B_ACTION_FINISHED; + } +} + +static void HandleAction_NothingIsFainted(void) +{ + ++gCurrentTurnActionNumber; + gCurrentActionFuncId = gActionsByTurnOrder[gCurrentTurnActionNumber]; + gHitMarker &= ~(HITMARKER_DESTINYBOND | HITMARKER_IGNORE_SUBSTITUTE | HITMARKER_ATTACKSTRING_PRINTED + | HITMARKER_NO_PPDEDUCT | HITMARKER_IGNORE_SAFEGUARD | HITMARKER_IGNORE_ON_AIR + | HITMARKER_IGNORE_UNDERGROUND | HITMARKER_IGNORE_UNDERWATER | HITMARKER_x100000 + | HITMARKER_OBEYS | HITMARKER_x10 | HITMARKER_SYNCHRONISE_EFFECT + | HITMARKER_CHARGING | HITMARKER_x4000000); +} + +static void HandleAction_ActionFinished(void) +{ + ++gCurrentTurnActionNumber; + gCurrentActionFuncId = gActionsByTurnOrder[gCurrentTurnActionNumber]; + SpecialStatusesClear(); + gHitMarker &= ~(HITMARKER_DESTINYBOND | HITMARKER_IGNORE_SUBSTITUTE | HITMARKER_ATTACKSTRING_PRINTED + | HITMARKER_NO_PPDEDUCT | HITMARKER_IGNORE_SAFEGUARD | HITMARKER_IGNORE_ON_AIR + | HITMARKER_IGNORE_UNDERGROUND | HITMARKER_IGNORE_UNDERWATER | HITMARKER_x100000 + | HITMARKER_OBEYS | HITMARKER_x10 | HITMARKER_SYNCHRONISE_EFFECT + | HITMARKER_CHARGING | HITMARKER_x4000000); + gCurrentMove = MOVE_NONE; + gBattleMoveDamage = 0; + gMoveResultFlags = 0; + gBattleScripting.animTurn = 0; + gBattleScripting.animTargetsHit = 0; + gLastLandedMoves[gBattlerAttacker] = 0; + gLastHitByType[gBattlerAttacker] = 0; + gBattleStruct->dynamicMoveType = 0; + gDynamicBasePower = 0; + gBattleScripting.atk49_state = 0; + gBattleCommunication[MOVE_EFFECT_BYTE] = 0; + gBattleCommunication[ACTIONS_CONFIRMED_COUNT] = 0; + gBattleScripting.multihitMoveEffect = 0; + gBattleResources->battleScriptsStack->size = 0; +} diff --git a/src/battle_script_commands.c b/src/battle_script_commands.c index ecc8e3d36..a7d8cb6fa 100644 --- a/src/battle_script_commands.c +++ b/src/battle_script_commands.c @@ -48,6 +48,7 @@ #include "constants/abilities.h" #include "constants/pokemon.h" #include "constants/trainers.h" +#include "constants/map_types.h" #define DEFENDER_IS_PROTECTED ((gProtectStructs[gBattlerTarget].protected) && (gBattleMoves[gCurrentMove].flags & FLAG_PROTECT_AFFECTED)) @@ -1222,7 +1223,7 @@ static void atk04_critcalc(void) critChance = NELEMS(sCriticalHitChance) - 1; if ((gBattleMons[gBattlerTarget].ability != ABILITY_BATTLE_ARMOR && gBattleMons[gBattlerTarget].ability != ABILITY_SHELL_ARMOR) && !(gStatuses3[gBattlerAttacker] & STATUS3_CANT_SCORE_A_CRIT) - && !(gBattleTypeFlags & BATTLE_TYPE_OLDMAN_TUTORIAL) + && !(gBattleTypeFlags & BATTLE_TYPE_OLD_MAN_TUTORIAL) && !(Random() % sCriticalHitChance[critChance]) && (!(gBattleTypeFlags & BATTLE_TYPE_FIRST_BATTLE) || sub_80EB2E0(1)) && !(gBattleTypeFlags & BATTLE_TYPE_POKEDUDE)) @@ -4414,7 +4415,7 @@ static void atk4E_switchinanim(void) && !(gBattleTypeFlags & (BATTLE_TYPE_LINK | BATTLE_TYPE_LEGENDARY - | BATTLE_TYPE_OLDMAN_TUTORIAL + | BATTLE_TYPE_OLD_MAN_TUTORIAL | BATTLE_TYPE_POKEDUDE | BATTLE_TYPE_EREADER_TRAINER | BATTLE_TYPE_GHOST))) @@ -5229,7 +5230,7 @@ static void atk5D_getmoneyreward(void) } else { - moneyReward = sub_8054C04(); + moneyReward = ComputeWhiteOutMoneyLoss(); } PREPARE_WORD_NUMBER_BUFFER(gBattleTextBuff1, 5, moneyReward); if (moneyReward) @@ -5411,7 +5412,7 @@ static void atk5D_getmoneyreward(void) bl AddMoney\n\ b _08025A00\n\ _080259FA:\n\ - bl sub_8054C04\n\ + bl ComputeWhiteOutMoneyLoss\n\ adds r4, r0, 0\n\ _08025A00:\n\ ldr r1, _08025A40 @ =gBattleTextBuff1\n\ @@ -9436,7 +9437,7 @@ static void atkEF_handleballthrow(void) MarkBattlerForControllerExec(gActiveBattler); gBattlescriptCurrInstr = BattleScript_TrainerBallBlock; } - else if (gBattleTypeFlags & (BATTLE_TYPE_POKEDUDE | BATTLE_TYPE_OLDMAN_TUTORIAL)) + else if (gBattleTypeFlags & (BATTLE_TYPE_POKEDUDE | BATTLE_TYPE_OLD_MAN_TUTORIAL)) { BtlController_EmitBallThrowAnim(0, BALL_3_SHAKES_SUCCESS); MarkBattlerForControllerExec(gActiveBattler); @@ -9451,7 +9452,6 @@ static void atkEF_handleballthrow(void) catchRate = gBattleStruct->safariCatchFactor * 1275 / 100; else catchRate = gBaseStats[gBattleMons[gBattlerTarget].species].catchRate; - if (gLastUsedItem > ITEM_SAFARI_BALL) { switch (gLastUsedItem) @@ -9515,7 +9515,7 @@ static void atkEF_handleballthrow(void) else { if (gBattleResults.catchAttempts[gLastUsedItem - ITEM_ULTRA_BALL] < 0xFF) - gBattleResults.catchAttempts[gLastUsedItem - ITEM_ULTRA_BALL]++; + ++gBattleResults.catchAttempts[gLastUsedItem - ITEM_ULTRA_BALL]; } } if (odds > 254) // mon caught diff --git a/src/battle_setup.c b/src/battle_setup.c new file mode 100644 index 000000000..98437e279 --- /dev/null +++ b/src/battle_setup.c @@ -0,0 +1,1060 @@ +#include "global.h" +#include "task.h" +#include "help_system.h" +#include "overworld.h" +#include "item.h" +#include "sound.h" +#include "pokemon.h" +#include "load_save.h" +#include "safari_zone.h" +#include "quest_log.h" +#include "script.h" +#include "script_pokemon_util_80A0058.h" +#include "strings.h" +#include "string_util.h" +#include "event_data.h" +#include "unk_8159F40.h" +#include "map_obj_80688E4.h" +#include "metatile_behavior.h" +#include "event_scripts.h" +#include "fldeff.h" +#include "fieldmap.h" +#include "field_control_avatar.h" +#include "field_player_avatar.h" +#include "field_screen_effect.h" +#include "field_message_box.h" +#include "field_map_obj.h" +#include "vs_seeker.h" +#include "battle.h" +#include "battle_setup.h" +#include "battle_transition.h" +#include "constants/battle_setup.h" +#include "constants/flags.h" +#include "constants/items.h" +#include "constants/maps.h" +#include "constants/songs.h" +#include "constants/species.h" +#include "constants/pokemon.h" +#include "constants/trainers.h" +#include "constants/trainer_classes.h" +#include "constants/map_types.h" + +enum +{ + TRAINER_PARAM_LOAD_VAL_8BIT, + TRAINER_PARAM_LOAD_VAL_16BIT, + TRAINER_PARAM_LOAD_VAL_32BIT, + TRAINER_PARAM_CLEAR_VAL_8BIT, + TRAINER_PARAM_CLEAR_VAL_16BIT, + TRAINER_PARAM_CLEAR_VAL_32BIT, + TRAINER_PARAM_LOAD_SCRIPT_RET_ADDR, +}; + +struct TrainerBattleParameter +{ + void *varPtr; + u8 ptrType; +}; + +static void DoSafariBattle(void); +static void DoGhostBattle(void); +static void DoStandardWildBattle(void); +static void CB2_EndWildBattle(void); +static u8 GetWildBattleTransition(void); +static u8 GetTrainerBattleTransition(void); +static void CB2_EndScriptedWildBattle(void); +static void CB2_EndMarowakBattle(void); +static bool32 IsPlayerDefeated(u32 battleOutcome); +static void CB2_EndTrainerBattle(void); +static const u8 *GetIntroSpeechOfApproachingTrainer(void); +static const u8 *GetTrainerCantBattleSpeech(void); + +static EWRAM_DATA u16 sTrainerBattleMode = 0; +EWRAM_DATA u16 gTrainerBattleOpponent_A = 0; +static EWRAM_DATA u16 sTrainerEventObjectLocalId = 0; +static EWRAM_DATA u8 *sTrainerAIntroSpeech = NULL; +static EWRAM_DATA u8 *sTrainerADefeatSpeech = NULL; +static EWRAM_DATA u8 *sTrainerVictorySpeech = NULL; +static EWRAM_DATA u8 *sTrainerCannotBattleSpeech = NULL; +static EWRAM_DATA u8 *sTrainerBattleEndScript = NULL; +static EWRAM_DATA u8 *sTrainerABattleScriptRetAddr = NULL; +static EWRAM_DATA u16 gUnknown_20386CC = 0; + +static const u8 sBattleTransitionTable_Wild[][2] = +{ + B_TRANSITION_SLICED_SCREEN, B_TRANSITION_WHITEFADE_IN_STRIPES, + B_TRANSITION_CLOCKWISE_BLACKFADE, B_TRANSITION_GRID_SQUARES, + B_TRANSITION_BLUR, B_TRANSITION_GRID_SQUARES, + B_TRANSITION_BLACK_WAVE_TO_RIGHT, B_TRANSITION_FULLSCREEN_WAVE, +}; + +static const u8 sBattleTransitionTable_Trainer[][2] = +{ + B_TRANSITION_SLIDING_POKEBALLS, B_TRANSITION_BLACK_DOODLES, + B_TRANSITION_HORIZONTAL_CORRUGATE, B_TRANSITION_BIG_POKEBALL, + B_TRANSITION_BLUR, B_TRANSITION_GRID_SQUARES, + B_TRANSITION_DISTORTED_WAVE, B_TRANSITION_FULLSCREEN_WAVE, +}; + +static const struct TrainerBattleParameter sOrdinaryBattleParams[] = +{ + {&sTrainerBattleMode, TRAINER_PARAM_LOAD_VAL_8BIT}, + {&gTrainerBattleOpponent_A, TRAINER_PARAM_LOAD_VAL_16BIT}, + {&sTrainerEventObjectLocalId, TRAINER_PARAM_LOAD_VAL_16BIT}, + {&sTrainerAIntroSpeech, TRAINER_PARAM_LOAD_VAL_32BIT}, + {&sTrainerADefeatSpeech, TRAINER_PARAM_LOAD_VAL_32BIT}, + {&sTrainerVictorySpeech, TRAINER_PARAM_CLEAR_VAL_32BIT}, + {&sTrainerCannotBattleSpeech, TRAINER_PARAM_CLEAR_VAL_32BIT}, + {&sTrainerABattleScriptRetAddr, TRAINER_PARAM_CLEAR_VAL_32BIT}, + {&sTrainerBattleEndScript, TRAINER_PARAM_LOAD_SCRIPT_RET_ADDR}, +}; + +static const struct TrainerBattleParameter sContinueScriptBattleParams[] = +{ + {&sTrainerBattleMode, TRAINER_PARAM_LOAD_VAL_8BIT}, + {&gTrainerBattleOpponent_A, TRAINER_PARAM_LOAD_VAL_16BIT}, + {&sTrainerEventObjectLocalId, TRAINER_PARAM_LOAD_VAL_16BIT}, + {&sTrainerAIntroSpeech, TRAINER_PARAM_LOAD_VAL_32BIT}, + {&sTrainerADefeatSpeech, TRAINER_PARAM_LOAD_VAL_32BIT}, + {&sTrainerVictorySpeech, TRAINER_PARAM_CLEAR_VAL_32BIT}, + {&sTrainerCannotBattleSpeech, TRAINER_PARAM_CLEAR_VAL_32BIT}, + {&sTrainerABattleScriptRetAddr, TRAINER_PARAM_LOAD_VAL_32BIT}, + {&sTrainerBattleEndScript, TRAINER_PARAM_LOAD_SCRIPT_RET_ADDR}, +}; + +static const struct TrainerBattleParameter sDoubleBattleParams[] = +{ + {&sTrainerBattleMode, TRAINER_PARAM_LOAD_VAL_8BIT}, + {&gTrainerBattleOpponent_A, TRAINER_PARAM_LOAD_VAL_16BIT}, + {&sTrainerEventObjectLocalId, TRAINER_PARAM_LOAD_VAL_16BIT}, + {&sTrainerAIntroSpeech, TRAINER_PARAM_LOAD_VAL_32BIT}, + {&sTrainerADefeatSpeech, TRAINER_PARAM_LOAD_VAL_32BIT}, + {&sTrainerVictorySpeech, TRAINER_PARAM_CLEAR_VAL_32BIT}, + {&sTrainerCannotBattleSpeech, TRAINER_PARAM_LOAD_VAL_32BIT}, + {&sTrainerABattleScriptRetAddr, TRAINER_PARAM_CLEAR_VAL_32BIT}, + {&sTrainerBattleEndScript, TRAINER_PARAM_LOAD_SCRIPT_RET_ADDR}, +}; + +static const struct TrainerBattleParameter sOrdinaryNoIntroBattleParams[] = +{ + {&sTrainerBattleMode, TRAINER_PARAM_LOAD_VAL_8BIT}, + {&gTrainerBattleOpponent_A, TRAINER_PARAM_LOAD_VAL_16BIT}, + {&sTrainerEventObjectLocalId, TRAINER_PARAM_LOAD_VAL_16BIT}, + {&sTrainerAIntroSpeech, TRAINER_PARAM_CLEAR_VAL_32BIT}, + {&sTrainerADefeatSpeech, TRAINER_PARAM_LOAD_VAL_32BIT}, + {&sTrainerVictorySpeech, TRAINER_PARAM_CLEAR_VAL_32BIT}, + {&sTrainerCannotBattleSpeech, TRAINER_PARAM_CLEAR_VAL_32BIT}, + {&sTrainerABattleScriptRetAddr, TRAINER_PARAM_CLEAR_VAL_32BIT}, + {&sTrainerBattleEndScript, TRAINER_PARAM_LOAD_SCRIPT_RET_ADDR}, +}; + +static const struct TrainerBattleParameter sTutorialBattleParams[] = +{ + {&sTrainerBattleMode, TRAINER_PARAM_LOAD_VAL_8BIT}, + {&gTrainerBattleOpponent_A, TRAINER_PARAM_LOAD_VAL_16BIT}, + {&gUnknown_20386CC, TRAINER_PARAM_LOAD_VAL_16BIT}, + {&sTrainerAIntroSpeech, TRAINER_PARAM_CLEAR_VAL_32BIT}, + {&sTrainerADefeatSpeech, TRAINER_PARAM_LOAD_VAL_32BIT}, + {&sTrainerVictorySpeech, TRAINER_PARAM_LOAD_VAL_32BIT}, + {&sTrainerCannotBattleSpeech, TRAINER_PARAM_CLEAR_VAL_32BIT}, + {&sTrainerABattleScriptRetAddr, TRAINER_PARAM_CLEAR_VAL_32BIT}, + {&sTrainerBattleEndScript, TRAINER_PARAM_LOAD_SCRIPT_RET_ADDR}, +}; + +static const struct TrainerBattleParameter sContinueScriptDoubleBattleParams[] = +{ + {&sTrainerBattleMode, TRAINER_PARAM_LOAD_VAL_8BIT}, + {&gTrainerBattleOpponent_A, TRAINER_PARAM_LOAD_VAL_16BIT}, + {&sTrainerEventObjectLocalId, TRAINER_PARAM_LOAD_VAL_16BIT}, + {&sTrainerAIntroSpeech, TRAINER_PARAM_LOAD_VAL_32BIT}, + {&sTrainerADefeatSpeech, TRAINER_PARAM_LOAD_VAL_32BIT}, + {&sTrainerVictorySpeech, TRAINER_PARAM_CLEAR_VAL_32BIT}, + {&sTrainerCannotBattleSpeech, TRAINER_PARAM_LOAD_VAL_32BIT}, + {&sTrainerABattleScriptRetAddr, TRAINER_PARAM_LOAD_VAL_32BIT}, + {&sTrainerBattleEndScript, TRAINER_PARAM_LOAD_SCRIPT_RET_ADDR}, +}; + + +#define tState data[0] +#define tTransition data[1] + +static void Task_BattleStart(u8 taskId) +{ + s16 *data = gTasks[taskId].data; + + switch (tState) + { + case 0: + if (!FldEffPoison_IsActive()) + { + HelpSystem_Disable(); + BT_StartOnField(tTransition); + ++tState; + } + break; + case 1: + if (BT_IsDone() == TRUE) + { + HelpSystem_Enable(); + CleanupOverworldWindowsAndTilemaps(); + SetMainCallback2(CB2_InitBattle); + RestartWildEncounterImmunitySteps(); + ClearPoisonStepCounter(); + DestroyTask(taskId); + } + break; + } +} + +static void CreateBattleStartTask(u8 transition, u16 song) // song == 0 means default music for current map +{ + u8 taskId = CreateTask(Task_BattleStart, 1); + + gTasks[taskId].tTransition = transition; + PlayMapChosenOrBattleBGM(song); +} + +static bool8 CheckSilphScopeInPokemonTower(u16 mapGroup, u16 mapNum) +{ + if (mapGroup == MAP_GROUP(POKEMON_TOWER_1F) + && ((u16)(mapNum - MAP_NUM(POKEMON_TOWER_1F)) <= 6) + && !(CheckBagHasItem(ITEM_SILPH_SCOPE, 1))) + return TRUE; + else + return FALSE; +} + +void BattleSetup_StartWildBattle(void) +{ + if (GetSafariZoneFlag()) + DoSafariBattle(); + else if (CheckSilphScopeInPokemonTower(gSaveBlock1Ptr->location.mapGroup, gSaveBlock1Ptr->location.mapNum)) + DoGhostBattle(); + else + DoStandardWildBattle(); +} + +static void DoStandardWildBattle(void) +{ + ScriptContext2_Enable(); + FreezeEventObjects(); + sub_805C780(); + gMain.savedCallback = CB2_EndWildBattle; + gBattleTypeFlags = 0; + CreateBattleStartTask(GetWildBattleTransition(), 0); + IncrementGameStat(GAME_STAT_TOTAL_BATTLES); + IncrementGameStat(GAME_STAT_WILD_BATTLES); +} + +void BattleSetup_StartRoamerBattle(void) +{ + ScriptContext2_Enable(); + FreezeEventObjects(); + sub_805C780(); + gMain.savedCallback = CB2_EndWildBattle; + gBattleTypeFlags = BATTLE_TYPE_ROAMER; + CreateBattleStartTask(GetWildBattleTransition(), MUS_VS_DEN); + IncrementGameStat(GAME_STAT_TOTAL_BATTLES); + IncrementGameStat(GAME_STAT_WILD_BATTLES); +} + +static void DoSafariBattle(void) +{ + ScriptContext2_Enable(); + FreezeEventObjects(); + sub_805C780(); + gMain.savedCallback = CB2_EndSafariBattle; + gBattleTypeFlags = BATTLE_TYPE_SAFARI; + CreateBattleStartTask(GetWildBattleTransition(), 0); +} + +static void DoGhostBattle(void) +{ + ScriptContext2_Enable(); + FreezeEventObjects(); + sub_805C780(); + gMain.savedCallback = CB2_EndWildBattle; + gBattleTypeFlags = BATTLE_TYPE_GHOST; + CreateBattleStartTask(GetWildBattleTransition(), 0); + SetMonData(&gEnemyParty[0], MON_DATA_NICKNAME, gUnknown_841D148); + IncrementGameStat(GAME_STAT_TOTAL_BATTLES); + IncrementGameStat(GAME_STAT_WILD_BATTLES); +} + +static void DoTrainerBattle(void) +{ + CreateBattleStartTask(GetTrainerBattleTransition(), 0); + IncrementGameStat(GAME_STAT_TOTAL_BATTLES); + IncrementGameStat(GAME_STAT_TRAINER_BATTLES); +} + +void ScrSpecial_StartOldManTutorialBattle(void) +{ + CreateMaleMon(&gEnemyParty[0], SPECIES_WEEDLE, 5); + ScriptContext2_Enable(); + gMain.savedCallback = CB2_ReturnToFieldContinueScriptPlayMapMusic; + gBattleTypeFlags = BATTLE_TYPE_OLD_MAN_TUTORIAL; + CreateBattleStartTask(B_TRANSITION_SLICED_SCREEN, 0); +} + +void BattleSetup_StartScriptedWildBattle(void) +{ + ScriptContext2_Enable(); + gMain.savedCallback = CB2_EndScriptedWildBattle; + gBattleTypeFlags = BATTLE_TYPE_PALACE; + CreateBattleStartTask(GetWildBattleTransition(), 0); + IncrementGameStat(GAME_STAT_TOTAL_BATTLES); + IncrementGameStat(GAME_STAT_WILD_BATTLES); +} + +void ScrSpecial_StartMarowakBattle(void) +{ + ScriptContext2_Enable(); + gMain.savedCallback = CB2_EndMarowakBattle; + if (CheckBagHasItem(ITEM_SILPH_SCOPE, 1)) + { + gBattleTypeFlags = BATTLE_TYPE_GHOST | BATTLE_TYPE_LEGENDARY; + CreateMonWithGenderNatureLetter(gEnemyParty, SPECIES_MAROWAK, 30, 31, MON_FEMALE, NATURE_SERIOUS, 0); + } + else + { + gBattleTypeFlags = BATTLE_TYPE_GHOST; + } + CreateBattleStartTask(GetWildBattleTransition(), 0); + SetMonData(&gEnemyParty[0], MON_DATA_NICKNAME, gUnknown_841D148); + IncrementGameStat(GAME_STAT_TOTAL_BATTLES); + IncrementGameStat(GAME_STAT_WILD_BATTLES); +} + +void ScrSpecial_StartSouthernIslandBattle(void) +{ + ScriptContext2_Enable(); + gMain.savedCallback = CB2_EndScriptedWildBattle; + gBattleTypeFlags = BATTLE_TYPE_LEGENDARY; + CreateBattleStartTask(GetWildBattleTransition(), 0); + IncrementGameStat(GAME_STAT_TOTAL_BATTLES); + IncrementGameStat(GAME_STAT_WILD_BATTLES); +} + +void Special_StartLegendaryBattle(void) +{ + u16 species; + + ScriptContext2_Enable(); + gMain.savedCallback = CB2_EndScriptedWildBattle; + gBattleTypeFlags = BATTLE_TYPE_LEGENDARY | BATTLE_TYPE_ARENA; + species = GetMonData(&gEnemyParty[0], MON_DATA_SPECIES); + switch (species) + { + case SPECIES_MEWTWO: + CreateBattleStartTask(B_TRANSITION_BLUR, MUS_VS_MYU2); + break; + case SPECIES_DEOXYS: + CreateBattleStartTask(B_TRANSITION_BLUR, MUS_VS_DEO); + break; + case SPECIES_MOLTRES: + case SPECIES_ARTICUNO: + case SPECIES_ZAPDOS: + case SPECIES_HO_OH: + case SPECIES_LUGIA: + CreateBattleStartTask(B_TRANSITION_BLUR, MUS_VS_DEN); + break; + default: + CreateBattleStartTask(B_TRANSITION_BLUR, MUS_BATTLE20); + break; + } + IncrementGameStat(GAME_STAT_TOTAL_BATTLES); + IncrementGameStat(GAME_STAT_WILD_BATTLES); +} + +void Special_StartGroudonKyogreBattle(void) +{ + ScriptContext2_Enable(); + gMain.savedCallback = CB2_EndScriptedWildBattle; + gBattleTypeFlags = BATTLE_TYPE_LEGENDARY | BATTLE_TYPE_KYOGRE_GROUDON; + if (gGameVersion == VERSION_FIRE_RED) + CreateBattleStartTask(B_TRANSITION_BLACK_DOODLES, MUS_BATTLE20); + else // pointless, exactly the same + CreateBattleStartTask(B_TRANSITION_BLACK_DOODLES, MUS_BATTLE20); + IncrementGameStat(GAME_STAT_TOTAL_BATTLES); + IncrementGameStat(GAME_STAT_WILD_BATTLES); +} + +void Special_StartRegiBattle(void) +{ + ScriptContext2_Enable(); + gMain.savedCallback = CB2_EndScriptedWildBattle; + gBattleTypeFlags = BATTLE_TYPE_LEGENDARY | BATTLE_TYPE_REGI; + CreateBattleStartTask(B_TRANSITION_BLUR, MUS_BATTLE20); + IncrementGameStat(GAME_STAT_TOTAL_BATTLES); + IncrementGameStat(GAME_STAT_WILD_BATTLES); +} + +// not used +static void sub_807FAF8(void) +{ + LoadPlayerParty(); + CB2_EndWildBattle(); +} + +// not used +static void sub_807FB08(void) +{ + ScriptContext2_Enable(); + FreezeEventObjects(); + sub_805C780(); + gMain.savedCallback = sub_807FAF8; + SavePlayerParty(); + InitPokedudePartyAndOpponent(); + CreateBattleStartTask(GetWildBattleTransition(), 0); +} + +static void CB2_EndWildBattle(void) +{ + CpuFill16(0, (void *)BG_PLTT, BG_PLTT_SIZE); + ResetOamRange(0, 128); + if (IsPlayerDefeated(gBattleOutcome) == TRUE) + { + SetMainCallback2(CB2_WhiteOut); + } + else + { + SetMainCallback2(CB2_ReturnToField); + gFieldCallback = sub_807E3EC; + } +} + +static void CB2_EndScriptedWildBattle(void) +{ + CpuFill16(0, (void *)BG_PLTT, BG_PLTT_SIZE); + ResetOamRange(0, 128); + if (IsPlayerDefeated(gBattleOutcome) == TRUE) + SetMainCallback2(CB2_WhiteOut); + else + SetMainCallback2(CB2_ReturnToFieldContinueScriptPlayMapMusic); +} + +static void CB2_EndMarowakBattle(void) +{ + CpuFill16(0, (void *)BG_PLTT, BG_PLTT_SIZE); + ResetOamRange(0, 128); + if (IsPlayerDefeated(gBattleOutcome)) + { + SetMainCallback2(CB2_WhiteOut); + } + else + { + if (gBattleOutcome == B_OUTCOME_WON) + gSpecialVar_Result = 0; + else + gSpecialVar_Result = 1; + SetMainCallback2(CB2_ReturnToFieldContinueScriptPlayMapMusic); + } +} + +u8 BattleSetup_GetTerrainId(void) +{ + u16 tileBehavior; + s16 x, y; + + PlayerGetDestCoords(&x, &y); + tileBehavior = MapGridGetMetatileBehaviorAt(x, y); + if (MetatileBehavior_IsTallGrass_2(tileBehavior)) + return BATTLE_TERRAIN_GRASS; + if (MetatileBehavior_IsLongGrass(tileBehavior)) + return BATTLE_TERRAIN_LONG_GRASS; + if (MetatileBehavior_IsSandOrDeepSand(tileBehavior)) + return BATTLE_TERRAIN_SAND; + switch (gMapHeader.mapType) + { + case MAP_TYPE_TOWN: + case MAP_TYPE_CITY: + case MAP_TYPE_ROUTE: + break; + case MAP_TYPE_UNDERGROUND: + if (MetatileBehavior_IsIndoorEncounter(tileBehavior)) + return BATTLE_TERRAIN_BUILDING; + if (MetatileBehavior_IsSurfable(tileBehavior)) + return BATTLE_TERRAIN_POND; + return BATTLE_TERRAIN_CAVE; + case MAP_TYPE_INDOOR: + case MAP_TYPE_SECRET_BASE: + return BATTLE_TERRAIN_BUILDING; + case MAP_TYPE_UNDERWATER: + return BATTLE_TERRAIN_UNDERWATER; + case MAP_TYPE_OCEAN_ROUTE: + if (MetatileBehavior_IsSurfable(tileBehavior)) + return BATTLE_TERRAIN_WATER; + return BATTLE_TERRAIN_PLAIN; + } + if (MetatileBehavior_IsDeepSemiDeepOrSplashingWater(tileBehavior)) + return BATTLE_TERRAIN_WATER; + if (MetatileBehavior_IsSurfable(tileBehavior)) + return BATTLE_TERRAIN_POND; + if (MetatileBehavior_IsMountain(tileBehavior)) + return BATTLE_TERRAIN_MOUNTAIN; + if (TestPlayerAvatarFlags(PLAYER_AVATAR_FLAG_SURFING)) + { + if (MetatileBehavior_GetBridgeType(tileBehavior)) + return BATTLE_TERRAIN_POND; + if (MetatileBehavior_IsBridge(tileBehavior) == TRUE) + return BATTLE_TERRAIN_WATER; + } + return BATTLE_TERRAIN_PLAIN; +} + +static u8 GetBattleTransitionTypeByMap(void) +{ + u16 tileBehavior; + s16 x, y; + + PlayerGetDestCoords(&x, &y); + tileBehavior = MapGridGetMetatileBehaviorAt(x, y); + if (Overworld_GetFlashLevel()) + return B_TRANSITION_HORIZONTAL_CORRUGATE; + if (!MetatileBehavior_IsSurfable(tileBehavior)) + { + switch (gMapHeader.mapType) + { + case MAP_TYPE_UNDERGROUND: + return B_TRANSITION_DISTORTED_WAVE; + case MAP_TYPE_UNDERWATER: + return B_TRANSITION_BIG_POKEBALL; + default: + return B_TRANSITION_BLUR; + } + } + return B_TRANSITION_BIG_POKEBALL; +} + +static u16 GetSumOfPlayerPartyLevel(u8 numMons) +{ + u8 sum = 0; + s32 i; + + for (i = 0; i < PARTY_SIZE; ++i) + { + u32 species = GetMonData(&gPlayerParty[i], MON_DATA_SPECIES2); + + if (species != SPECIES_EGG && species != SPECIES_NONE && GetMonData(&gPlayerParty[i], MON_DATA_HP) != 0) + { + sum += GetMonData(&gPlayerParty[i], MON_DATA_LEVEL); + if (--numMons == 0) + break; + } + } + return sum; +} + +static u8 GetSumOfEnemyPartyLevel(u16 opponentId, u8 numMons) +{ + u8 i; + u8 sum; + u32 count = numMons; + + if (gTrainers[opponentId].partySize < count) + count = gTrainers[opponentId].partySize; + sum = 0; + switch (gTrainers[opponentId].partyFlags) + { + case 0: + { + const struct TrainerMonNoItemDefaultMoves *party; + + party = gTrainers[opponentId].party.NoItemDefaultMoves; + for (i = 0; i < count; ++i) + sum += party[i].lvl; + } + break; + case F_TRAINER_PARTY_CUSTOM_MOVESET: + { + const struct TrainerMonNoItemCustomMoves *party; + + party = gTrainers[opponentId].party.NoItemCustomMoves; + for (i = 0; i < count; ++i) + sum += party[i].lvl; + } + break; + case F_TRAINER_PARTY_HELD_ITEM: + { + const struct TrainerMonItemDefaultMoves *party; + + party = gTrainers[opponentId].party.ItemDefaultMoves; + for (i = 0; i < count; ++i) + sum += party[i].lvl; + } + break; + case F_TRAINER_PARTY_CUSTOM_MOVESET | F_TRAINER_PARTY_HELD_ITEM: + { + const struct TrainerMonItemCustomMoves *party; + + party = gTrainers[opponentId].party.ItemCustomMoves; + for (i = 0; i < count; ++i) + sum += party[i].lvl; + } + break; + } + return sum; +} + +static u8 GetWildBattleTransition(void) +{ + u8 transitionType = GetBattleTransitionTypeByMap(); + u8 enemyLevel = GetMonData(&gEnemyParty[0], MON_DATA_LEVEL); + u8 playerLevel = GetSumOfPlayerPartyLevel(1); + + if (enemyLevel < playerLevel) + return sBattleTransitionTable_Wild[transitionType][0]; + else + return sBattleTransitionTable_Wild[transitionType][1]; +} + +static u8 GetTrainerBattleTransition(void) +{ + u8 minPartyCount; + u8 transitionType; + u8 enemyLevel; + u8 playerLevel; + + if (gTrainerBattleOpponent_A == TRAINER_SECRET_BASE) + return B_TRANSITION_BLUE; + if (gTrainers[gTrainerBattleOpponent_A].trainerClass == CLASS_ELITE_FOUR_2) + { + if (gTrainerBattleOpponent_A == TRAINER_ELITE_FOUR_LORELEI || gTrainerBattleOpponent_A == TRAINER_ELITE_FOUR_LORELEI_2) + return B_TRANSITION_LORELEI; + if (gTrainerBattleOpponent_A == TRAINER_ELITE_FOUR_BRUNO || gTrainerBattleOpponent_A == TRAINER_ELITE_FOUR_BRUNO_2) + return B_TRANSITION_BRUNO; + if (gTrainerBattleOpponent_A == TRAINER_ELITE_FOUR_AGATHA || gTrainerBattleOpponent_A == TRAINER_ELITE_FOUR_AGATHA_2) + return B_TRANSITION_AGATHA; + if (gTrainerBattleOpponent_A == TRAINER_ELITE_FOUR_LANCE || gTrainerBattleOpponent_A == TRAINER_ELITE_FOUR_LANCE_2) + return B_TRANSITION_LANCE; + return B_TRANSITION_BLUE; + } + if (gTrainers[gTrainerBattleOpponent_A].trainerClass == CLASS_CHAMPION_2) + return B_TRANSITION_BLUE; + if (gTrainers[gTrainerBattleOpponent_A].doubleBattle == TRUE) + minPartyCount = 2; // double battles always at least have 2 pokemon. + else + minPartyCount = 1; + transitionType = GetBattleTransitionTypeByMap(); + enemyLevel = GetSumOfEnemyPartyLevel(gTrainerBattleOpponent_A, minPartyCount); + playerLevel = GetSumOfPlayerPartyLevel(minPartyCount); + if (enemyLevel < playerLevel) + return sBattleTransitionTable_Trainer[transitionType][0]; + else + return sBattleTransitionTable_Trainer[transitionType][1]; +} + +u8 sub_8080060(void) +{ + u8 enemyLevel = GetMonData(&gEnemyParty[0], MON_DATA_LEVEL); + u8 playerLevel = GetSumOfPlayerPartyLevel(1); + + if (enemyLevel < playerLevel) + return 4; + else + return 3; +} + +static u32 TrainerBattleLoadArg32(const u8 *ptr) +{ + return T1_READ_32(ptr); +} + +static u16 TrainerBattleLoadArg16(const u8 *ptr) +{ + return T1_READ_16(ptr); +} + +static u8 TrainerBattleLoadArg8(const u8 *ptr) +{ + return T1_READ_8(ptr); +} + +static u16 GetTrainerAFlag(void) +{ + return FLAG_TRAINER_FLAG_START + gTrainerBattleOpponent_A; +} + +static bool32 IsPlayerDefeated(u32 battleOutcome) +{ + switch (battleOutcome) + { + case B_OUTCOME_LOST: + case B_OUTCOME_DREW: + return TRUE; + case B_OUTCOME_WON: + case B_OUTCOME_RAN: + case B_OUTCOME_PLAYER_TELEPORTED: + case B_OUTCOME_MON_FLED: + case B_OUTCOME_CAUGHT: + return FALSE; + default: + return FALSE; + } +} + +static void InitTrainerBattleVariables(void) +{ + sTrainerBattleMode = 0; + gTrainerBattleOpponent_A = 0; + sTrainerEventObjectLocalId = 0; + sTrainerAIntroSpeech = NULL; + sTrainerADefeatSpeech = NULL; + sTrainerVictorySpeech = NULL; + sTrainerCannotBattleSpeech = NULL; + sTrainerBattleEndScript = NULL; + sTrainerABattleScriptRetAddr = NULL; + gUnknown_20386CC = 0; +} + +static inline void SetU8(void *ptr, u8 value) +{ + *(u8 *)(ptr) = value; +} + +static inline void SetU16(void *ptr, u16 value) +{ + *(u16 *)(ptr) = value; +} + +static inline void SetU32(void *ptr, u32 value) +{ + *(u32 *)(ptr) = value; +} + +static inline void SetPtr(const void *ptr, const void *value) +{ + *(const void **)(ptr) = value; +} + +static void TrainerBattleLoadArgs(const struct TrainerBattleParameter *specs, const u8 *data) +{ + while (1) + { + switch (specs->ptrType) + { + case TRAINER_PARAM_LOAD_VAL_8BIT: + SetU8(specs->varPtr, TrainerBattleLoadArg8(data)); + data += 1; + break; + case TRAINER_PARAM_LOAD_VAL_16BIT: + SetU16(specs->varPtr, TrainerBattleLoadArg16(data)); + data += 2; + break; + case TRAINER_PARAM_LOAD_VAL_32BIT: + SetU32(specs->varPtr, TrainerBattleLoadArg32(data)); + data += 4; + break; + case TRAINER_PARAM_CLEAR_VAL_8BIT: + SetU8(specs->varPtr, 0); + break; + case TRAINER_PARAM_CLEAR_VAL_16BIT: + SetU16(specs->varPtr, 0); + break; + case TRAINER_PARAM_CLEAR_VAL_32BIT: + SetU32(specs->varPtr, 0); + break; + case TRAINER_PARAM_LOAD_SCRIPT_RET_ADDR: + SetPtr(specs->varPtr, data); + return; + } + ++specs; + } +} + +static void SetMapVarsToTrainer(void) +{ + if (sTrainerEventObjectLocalId != 0) + { + gSpecialVar_LastTalked = sTrainerEventObjectLocalId; + gSelectedEventObject = GetFieldObjectIdByLocalIdAndMap(sTrainerEventObjectLocalId, gSaveBlock1Ptr->location.mapNum, gSaveBlock1Ptr->location.mapGroup); + } +} + +const u8 *BattleSetup_ConfigureTrainerBattle(const u8 *data) +{ + InitTrainerBattleVariables(); + sTrainerBattleMode = TrainerBattleLoadArg8(data); + switch (sTrainerBattleMode) + { + case TRAINER_BATTLE_SINGLE_NO_INTRO_TEXT: + TrainerBattleLoadArgs(sOrdinaryNoIntroBattleParams, data); + return EventScript_DoTrainerBattle; + case TRAINER_BATTLE_DOUBLE: + TrainerBattleLoadArgs(sDoubleBattleParams, data); + SetMapVarsToTrainer(); + return EventScript_TryDoDoubleTrainerBattle; + case TRAINER_BATTLE_CONTINUE_SCRIPT: + case TRAINER_BATTLE_CONTINUE_SCRIPT_NO_MUSIC: + TrainerBattleLoadArgs(sContinueScriptBattleParams, data); + SetMapVarsToTrainer(); + return EventScript_TryDoNormalTrainerBattle; + case TRAINER_BATTLE_CONTINUE_SCRIPT_DOUBLE: + case TRAINER_BATTLE_CONTINUE_SCRIPT_DOUBLE_NO_MUSIC: + TrainerBattleLoadArgs(sContinueScriptDoubleBattleParams, data); + SetMapVarsToTrainer(); + return EventScript_TryDoDoubleTrainerBattle; + case TRAINER_BATTLE_REMATCH_DOUBLE: + sub_811231C(); + TrainerBattleLoadArgs(sDoubleBattleParams, data); + SetMapVarsToTrainer(); + gTrainerBattleOpponent_A = GetRematchTrainerId(gTrainerBattleOpponent_A); + return EventScript_TryDoDoubleRematchBattle; + case TRAINER_BATTLE_REMATCH: + sub_811231C(); + TrainerBattleLoadArgs(sOrdinaryBattleParams, data); + SetMapVarsToTrainer(); + gTrainerBattleOpponent_A = GetRematchTrainerId(gTrainerBattleOpponent_A); + return EventScript_TryDoRematchBattle; + case TRAINER_BATTLE_TUTORIAL: + TrainerBattleLoadArgs(sTutorialBattleParams, data); + return EventScript_DoTrainerBattle; + default: + TrainerBattleLoadArgs(sOrdinaryBattleParams, data); + SetMapVarsToTrainer(); + return EventScript_TryDoNormalTrainerBattle; + } +} + +void ConfigureAndSetUpOneTrainerBattle(u8 trainerEventObjId, const u8 *trainerScript) +{ + gSelectedEventObject = trainerEventObjId; + gSpecialVar_LastTalked = gMapObjects[trainerEventObjId].localId; + BattleSetup_ConfigureTrainerBattle(trainerScript + 1); + ScriptContext1_SetupScript(gUnknown_81A4EB4); + ScriptContext2_Enable(); +} + +bool32 GetTrainerFlagFromScriptPointer(const u8 *data) +{ + u32 flag = TrainerBattleLoadArg16(data + 2); + + return FlagGet(FLAG_TRAINER_FLAG_START + flag); +} + +void SetUpTrainerMovement(void) +{ + struct MapObject *eventObject = &gMapObjects[gSelectedEventObject]; + + SetTrainerMovementType(eventObject, GetTrainerFacingDirectionMovementType(eventObject->facingDirection)); +} + +u8 ScrSpecial_GetTrainerBattleMode(void) +{ + return sTrainerBattleMode; +} + +u16 sub_80803D8(void) +{ + return gUnknown_20386CC; +} + +u16 ScrSpecial_HasTrainerBeenFought(void) +{ + return FlagGet(GetTrainerAFlag()); +} + +void SetBattledTrainerFlag(void) +{ + FlagSet(GetTrainerAFlag()); +} + +// not used +static void SetBattledTrainerFlag2(void) +{ + FlagSet(GetTrainerAFlag()); +} + +bool8 HasTrainerBeenFought(u16 trainerId) +{ + return FlagGet(FLAG_TRAINER_FLAG_START + trainerId); +} + +void SetTrainerFlag(u16 trainerId) +{ + FlagSet(FLAG_TRAINER_FLAG_START + trainerId); +} + +void ClearTrainerFlag(u16 trainerId) +{ + FlagClear(FLAG_TRAINER_FLAG_START + trainerId); +} + +void BattleSetup_StartTrainerBattle(void) +{ + gBattleTypeFlags = BATTLE_TYPE_TRAINER; + if (ScrSpecial_GetTrainerBattleMode() == TRAINER_BATTLE_TUTORIAL + && sub_80803D8() & 3) + gBattleTypeFlags |= BATTLE_TYPE_FIRST_BATTLE; + gMain.savedCallback = CB2_EndTrainerBattle; + DoTrainerBattle(); + ScriptContext1_Stop(); +} + +static void CB2_EndTrainerBattle(void) +{ + if (sTrainerBattleMode == TRAINER_BATTLE_TUTORIAL) + { + if (IsPlayerDefeated(gBattleOutcome) == TRUE) + { + gSpecialVar_Result = 1; + if (gUnknown_20386CC & 1) + { + sp000_heal_pokemon(); + } + else + { + SetMainCallback2(CB2_WhiteOut); + return; + } + SetMainCallback2(CB2_ReturnToFieldContinueScriptPlayMapMusic); + SetBattledTrainerFlag(); + sub_81139BC(); + } + else + { + gSpecialVar_Result = 0; + SetMainCallback2(CB2_ReturnToFieldContinueScriptPlayMapMusic); + SetBattledTrainerFlag(); + sub_81139BC(); + } + + } + else + { + if (gTrainerBattleOpponent_A == TRAINER_SECRET_BASE) + { + SetMainCallback2(CB2_ReturnToFieldContinueScriptPlayMapMusic); + } + else if (IsPlayerDefeated(gBattleOutcome) == TRUE) + { + SetMainCallback2(CB2_WhiteOut); + } + else + { + SetMainCallback2(CB2_ReturnToFieldContinueScriptPlayMapMusic); + SetBattledTrainerFlag(); + sub_81139BC(); + } + } +} + +static void CB2_EndRematchBattle(void) +{ + if (gTrainerBattleOpponent_A == TRAINER_SECRET_BASE) + { + SetMainCallback2(CB2_ReturnToFieldContinueScriptPlayMapMusic); + } + else if (IsPlayerDefeated(gBattleOutcome) == TRUE) + { + SetMainCallback2(CB2_WhiteOut); + } + else + { + SetMainCallback2(CB2_ReturnToFieldContinueScriptPlayMapMusic); + SetBattledTrainerFlag(); + sub_810CDE8(); + sub_81138F8(); + } +} + +void ScrSpecial_StartTrainerEyeRematch(void) +{ + gBattleTypeFlags = BATTLE_TYPE_TRAINER; + gMain.savedCallback = CB2_EndRematchBattle; + DoTrainerBattle(); + ScriptContext1_Stop(); +} + +void ScrSpecial_ShowTrainerIntroSpeech(void) +{ + ShowFieldMessage(GetIntroSpeechOfApproachingTrainer()); +} + +const u8 *BattleSetup_GetScriptAddrAfterBattle(void) +{ + if (sTrainerBattleEndScript != NULL) + return sTrainerBattleEndScript; + else + return EventScript_1C555B; +} + +const u8 *BattleSetup_GetTrainerPostBattleScript(void) +{ + if (sTrainerABattleScriptRetAddr != NULL) + return sTrainerABattleScriptRetAddr; + else + return EventScript_1C555B; +} + +void ScrSpecial_ShowTrainerNonBattlingSpeech(void) +{ + ShowFieldMessage(GetTrainerCantBattleSpeech()); +} + +void PlayTrainerEncounterMusic(void) +{ + u16 music; + + if (gUnknown_203ADFA != 2 + && gUnknown_203ADFA != 3 + && sTrainerBattleMode != TRAINER_BATTLE_CONTINUE_SCRIPT_NO_MUSIC + && sTrainerBattleMode != TRAINER_BATTLE_CONTINUE_SCRIPT_DOUBLE_NO_MUSIC) + { + switch (GetTrainerEncounterMusicId(gTrainerBattleOpponent_A)) + { + case TRAINER_ENCOUNTER_MUSIC_FEMALE: + case TRAINER_ENCOUNTER_MUSIC_GIRL: + case TRAINER_ENCOUNTER_MUSIC_TWINS: + music = MUS_SHOUJO; + break; + case TRAINER_ENCOUNTER_MUSIC_MALE: + case TRAINER_ENCOUNTER_MUSIC_INTENSE: + case TRAINER_ENCOUNTER_MUSIC_COOL: + case TRAINER_ENCOUNTER_MUSIC_SWIMMER: + case TRAINER_ENCOUNTER_MUSIC_ELITE_FOUR: + case TRAINER_ENCOUNTER_MUSIC_HIKER: + case TRAINER_ENCOUNTER_MUSIC_INTERVIEWER: + case TRAINER_ENCOUNTER_MUSIC_RICH: + music = MUS_SHOUNEN; + break; + default: + music = MUS_ROCKET; + break; + } + PlayNewMapMusic(music); + } +} + +static const u8 *ReturnEmptyStringIfNull(const u8 *string) +{ + if (string == NULL) + return gString_Dummy; + else + return string; +} + +static const u8 *GetIntroSpeechOfApproachingTrainer(void) +{ + return ReturnEmptyStringIfNull(sTrainerAIntroSpeech); +} + +const u8 *GetTrainerALoseText(void) +{ + const u8 *string = sTrainerADefeatSpeech; + + StringExpandPlaceholders(gStringVar4, ReturnEmptyStringIfNull(string)); + return gStringVar4; +} + +const u8 *GetTrainerWonSpeech(void) +{ + StringExpandPlaceholders(gStringVar4, ReturnEmptyStringIfNull(sTrainerVictorySpeech)); + return gStringVar4; +} + +static const u8 *GetTrainerCantBattleSpeech(void) +{ + return ReturnEmptyStringIfNull(sTrainerCannotBattleSpeech); +} diff --git a/src/battle_transition.c b/src/battle_transition.c index 19d76fed1..1dbfe3aed 100644 --- a/src/battle_transition.c +++ b/src/battle_transition.c @@ -27,7 +27,7 @@ struct TransitionData u16 winOut; u16 win0H; u16 win0V; - u16 unused_A; + u16 win1H; // not used u16 win1V; u16 bldCnt; u16 bldAlpha; @@ -3175,7 +3175,7 @@ static bool8 BT_Phase2WhiteFadeInStripes_Stop(struct Task *task) DmaStop(0); SetVBlankCallback(NULL); SetHBlankCallback(NULL); - sTransitionStructPtr->win0H = 240; + sTransitionStructPtr->win0H = WIN_RANGE(0, 240); sTransitionStructPtr->bldY = 0; sTransitionStructPtr->bldCnt = BLDCNT_TGT1_BG0 | BLDCNT_TGT1_BG1 | BLDCNT_TGT1_BG2 | BLDCNT_TGT1_BG3 | BLDCNT_TGT1_OBJ | BLDCNT_TGT1_BD | BLDCNT_EFFECT_DARKEN; sTransitionStructPtr->winIn = WINOUT_WIN01_BG_ALL | WINOUT_WIN01_OBJ | WININ_WIN0_CLR; diff --git a/src/battle_util.c b/src/battle_util.c index b8360758c..de6419ecf 100644 --- a/src/battle_util.c +++ b/src/battle_util.c @@ -3116,14 +3116,14 @@ u8 IsMonDisobedient(void) return 0; if (HasObedientBitSet(gBattlerAttacker)) // only if species is Mew or Deoxys { - if (!IsOtherTrainer(gBattleMons[gBattlerAttacker].otId, gBattleMons[gBattlerAttacker].otName) || FlagGet(FLAG_0x827)) + if (!IsOtherTrainer(gBattleMons[gBattlerAttacker].otId, gBattleMons[gBattlerAttacker].otName) || FlagGet(FLAG_BADGE08_GET)) return 0; obedienceLevel = 10; - if (FlagGet(FLAG_0x821)) + if (FlagGet(FLAG_BADGE02_GET)) obedienceLevel = 30; - if (FlagGet(FLAG_0x823)) + if (FlagGet(FLAG_BADGE04_GET)) obedienceLevel = 50; - if (FlagGet(FLAG_0x825)) + if (FlagGet(FLAG_BADGE06_GET)) obedienceLevel = 70; } if (gBattleMons[gBattlerAttacker].level <= obedienceLevel) diff --git a/src/battle_util2.c b/src/battle_util2.c index d940d8508..a3a748767 100644 --- a/src/battle_util2.c +++ b/src/battle_util2.c @@ -1,6 +1,7 @@ #include "global.h" #include "bg.h" #include "battle.h" +#include "battle_anim.h" #include "pokemon.h" #include "malloc.h" #include "trainer_tower.h" diff --git a/src/berry.c b/src/berry.c index 91d83f40c..d349109d2 100644 --- a/src/berry.c +++ b/src/berry.c @@ -134,7 +134,7 @@ bool32 IsEnigmaBerryValid(void) return TRUE; } -const struct Berry * sub_809C8A0(u8 berryIdx) +const struct Berry * GetBerryInfo(u8 berryIdx) { if (berryIdx == ITEM_TO_BERRY(ITEM_ENIGMA_BERRY) && IsEnigmaBerryValid()) return (struct Berry *)&gSaveBlock1Ptr->enigmaBerry.berry; @@ -163,7 +163,7 @@ u16 BerryTypeToItemId(u16 berryType) void GetBerryNameByBerryType(u8 berryType, u8 * dest) { - const struct Berry * berry = sub_809C8A0(berryType); + const struct Berry * berry = GetBerryInfo(berryType); memcpy(dest, berry->name, 6); dest[6] = EOS; } diff --git a/src/berry_powder.c b/src/berry_powder.c index 992e82522..f9d9f7dbb 100644 --- a/src/berry_powder.c +++ b/src/berry_powder.c @@ -111,7 +111,7 @@ void sub_815F094(void) { struct WindowTemplate template; - if (sub_81119D4(sub_809D6D4) != TRUE) + if (QuestLog_SchedulePlaybackCB(QLPlaybackCB_DestroyScriptMenuMonPicSprites) != TRUE) { template = SetWindowTemplateFields(0, 1, 1, 8, 3, 15, 32); gUnknown_203F464 = AddWindow(&template); diff --git a/src/cereader_tool.c b/src/cereader_tool.c index 1b25f4828..066702fe0 100644 --- a/src/cereader_tool.c +++ b/src/cereader_tool.c @@ -9,18 +9,18 @@ u8 sub_815D654(void) return (gSaveBlock1Ptr->unkArray[0].unk9 + 1) % 256; } -static bool32 ValidateTrainerTowerTrainer(struct TrainerTowerTrainer * trainer) +static bool32 ValidateTrainerTowerTrainer(struct TrainerTowerFloor * floor) { - if (trainer->unk_001 < 1 || trainer->unk_001 > 8) + if (floor->floorIdx < 1 || floor->floorIdx > 8) return FALSE; - if (trainer->unk_002 > 2) + if (floor->challengeType > 2) return FALSE; - if (CalcByteArraySum((const u8 *)trainer, offsetof(typeof(*trainer), checksum)) != trainer->checksum) + if (CalcByteArraySum((const u8 *)floor, offsetof(typeof(*floor), checksum)) != floor->checksum) return FALSE; return TRUE; } -bool32 ValidateTrainerTowerData(struct TrainerTowerData * ttdata) +bool32 ValidateTrainerTowerData(struct EReaderTrainerHillSet * ttdata) { u32 count = ttdata->count; s32 i; @@ -28,18 +28,18 @@ bool32 ValidateTrainerTowerData(struct TrainerTowerData * ttdata) return FALSE; for (i = 0; i < count; i++) { - if (!ValidateTrainerTowerTrainer(&ttdata->trainers[i])) + if (!ValidateTrainerTowerTrainer(&ttdata->floors[i])) return FALSE; } - if (CalcByteArraySum((const u8 *)ttdata->trainers, count * sizeof(ttdata->trainers[0])) != ttdata->checksum) + if (CalcByteArraySum((const u8 *)ttdata->floors, count * sizeof(ttdata->floors[0])) != ttdata->checksum) return FALSE; return TRUE; } -#define SEC30_SIZE (offsetof(struct TrainerTowerData, trainers[4])) -#define SEC31_SIZE (sizeof(struct TrainerTowerData) - SEC30_SIZE) +#define SEC30_SIZE (offsetof(struct EReaderTrainerHillSet, floors[4])) +#define SEC31_SIZE (sizeof(struct EReaderTrainerHillSet) - SEC30_SIZE) -static bool32 CEReaderTool_SaveTrainerTower_r(struct TrainerTowerData * ttdata, u8 * buffer) +static bool32 CEReaderTool_SaveTrainerTower_r(struct EReaderTrainerHillSet * ttdata, u8 * buffer) { AGB_ASSERT_EX(ttdata->dummy == 0, "C:/WORK/POKeFRLG/src/pm_lgfr_ose/source/cereader_tool.c", 198); AGB_ASSERT_EX(ttdata->id == 0, "C:/WORK/POKeFRLG/src/pm_lgfr_ose/source/cereader_tool.c", 199) @@ -56,7 +56,7 @@ static bool32 CEReaderTool_SaveTrainerTower_r(struct TrainerTowerData * ttdata, return TRUE; } -bool32 CEReaderTool_SaveTrainerTower(struct TrainerTowerData * ttdata) +bool32 CEReaderTool_SaveTrainerTower(struct EReaderTrainerHillSet * ttdata) { u8 * buffer = AllocZeroed(0x1000); bool32 result = CEReaderTool_SaveTrainerTower_r(ttdata, buffer); @@ -64,7 +64,7 @@ bool32 CEReaderTool_SaveTrainerTower(struct TrainerTowerData * ttdata) return result; } -static bool32 CEReaderTool_LoadTrainerTower_r(struct TrainerTowerData * ttdata, void * buffer) +static bool32 CEReaderTool_LoadTrainerTower_r(struct EReaderTrainerHillSet * ttdata, void * buffer) { if (TryCopySpecialSaveSection(30, buffer) != 1) return FALSE; @@ -79,7 +79,7 @@ static bool32 CEReaderTool_LoadTrainerTower_r(struct TrainerTowerData * ttdata, return TRUE; } -bool32 CEReaderTool_LoadTrainerTower(struct TrainerTowerData * ttdata) +bool32 CEReaderTool_LoadTrainerTower(struct EReaderTrainerHillSet * ttdata) { void * buffer = AllocZeroed(0x1000); bool32 success = CEReaderTool_LoadTrainerTower_r(ttdata, buffer); diff --git a/src/coins.c b/src/coins.c index 9de600e7f..2eaa31b2c 100644 --- a/src/coins.c +++ b/src/coins.c @@ -5,8 +5,6 @@ #include "text_window.h" #include "strings.h" -extern const u8 gUnknown_8417C2D[]; - EWRAM_DATA static u8 sCoinsWindowId = 0; #define MAX_COINS 9999 @@ -62,7 +60,7 @@ void PrintCoinsString_Parameterized(u8 windowId, u32 coinAmount, u8 x, u8 y, u8 void sub_80D0674(u8 windowId, u16 tileStart, u8 palette, u32 coinAmount) { DrawStdFrameWithCustomTileAndPalette(windowId, FALSE, tileStart, palette); - AddTextPrinterParameterized(windowId, 2, gUnknown_8417C2D, 0, 0, 0xFF, 0); + AddTextPrinterParameterized(windowId, 2, gText_Coins_2, 0, 0, 0xFF, 0); PrintCoinsString_Parameterized(windowId, coinAmount, 0x10, 0xC, 0); } @@ -88,7 +86,7 @@ void ShowCoinsWindow(u32 coinAmount, u8 x, u8 y) PutWindowTilemap(sCoinsWindowId); TextWindow_SetStdFrame0_WithPal(sCoinsWindowId, 0x21D, 0xD0); DrawStdFrameWithCustomTileAndPalette(sCoinsWindowId, FALSE, 0x21D, 0xD); - AddTextPrinterParameterized(sCoinsWindowId, 2, gUnknown_8417C2D, 0, 0, 0xFF, 0); + AddTextPrinterParameterized(sCoinsWindowId, 2, gText_Coins_2, 0, 0, 0xFF, 0); PrintCoinsString(coinAmount); } diff --git a/src/credits.c b/src/credits.c index 270a4d045..ad78d875c 100644 --- a/src/credits.c +++ b/src/credits.c @@ -750,7 +750,7 @@ static void CB2_Credits(void) sCreditsMgr->unk_1D++; break; case 2: - FlagClear(0x4000); + FlagClear(FLAG_SPECIAL_FLAG_0x4000); gDisableMapMusicChangeOnMapLoad = MUSIC_DISABLE_OFF; Free(sCreditsMgr); SoftReset(RESET_ALL); @@ -797,7 +797,7 @@ static bool32 DoOverworldMapScrollScene(UNUSED u8 unused) switch (sCreditsMgr->subseqno) { case 0: - FlagSet(0x4000); + FlagSet(FLAG_SPECIAL_FLAG_0x4000); gDisableMapMusicChangeOnMapLoad = MUSIC_DISABLE_KEEP; sCreditsMgr->ovwldseqno = 0; sCreditsMgr->subseqno++; diff --git a/src/dark.c b/src/dark.c index cb34b991e..b6d13afe3 100644 --- a/src/dark.c +++ b/src/dark.c @@ -613,7 +613,7 @@ static void sub_80B82C0(u8 taskId) { case 0: task->data[5] += 8; - if (task->data[5] >= task->data[7]) + if (task->data[5] >= task->data[7]) task->data[5] = task->data[7]; sub_80B843C(task); if (task->data[5] == task->data[7]) diff --git a/src/data.c b/src/data.c new file mode 100644 index 000000000..dddeeac51 --- /dev/null +++ b/src/data.c @@ -0,0 +1,300 @@ +#include "global.h" +#include "malloc.h" +#include "battle.h" +#include "data.h" +#include "graphics.h" +#include "constants/items.h" +#include "constants/moves.h" +#include "constants/species.h" +#include "constants/trainers.h" +#include "constants/battle_ai.h" +#include "constants/trainer_classes.h" + +const struct SpriteFrameImage gUnknown_8234698[] = +{ + gHeap + 0x8000, 0x800, + gHeap + 0x8800, 0x800, + gHeap + 0x9000, 0x800, + gHeap + 0x9800, 0x800, +}; + +const struct SpriteFrameImage gUnknown_82346B8[] = +{ + gHeap + 0xA000, 0x800, + gHeap + 0xA800, 0x800, + gHeap + 0xB000, 0x800, + gHeap + 0xB800, 0x800, +}; + +const struct SpriteFrameImage gUnknown_82346D8[] = +{ + gHeap + 0xC000, 0x800, + gHeap + 0xC800, 0x800, + gHeap + 0xD000, 0x800, + gHeap + 0xD800, 0x800, +}; + +const struct SpriteFrameImage gUnknown_82346F8[] = +{ + gHeap + 0xE000, 0x800, + gHeap + 0xE800, 0x800, + gHeap + 0xF000, 0x800, + gHeap + 0xF800, 0x800, +}; + +const struct SpriteFrameImage gTrainerBackPicTable_Red[] = +{ + gTrainerBackPic_Red, 0x0800, + gTrainerBackPic_Red + 0x0800, 0x0800, + gTrainerBackPic_Red + 0x1000, 0x0800, + gTrainerBackPic_Red + 0x1800, 0x0800, + gTrainerBackPic_Red + 0x2000, 0x0800, +}; + +const struct SpriteFrameImage gTrainerBackPicTable_Leaf[] = +{ + gTrainerBackPic_Leaf, 0x0800, + gTrainerBackPic_Leaf + 0x0800, 0x0800, + gTrainerBackPic_Leaf + 0x1000, 0x0800, + gTrainerBackPic_Leaf + 0x1800, 0x0800, + gTrainerBackPic_Leaf + 0x2000, 0x0800, +}; + +const struct SpriteFrameImage gTrainerBackPicTable_PokeDude[] = +{ + gTrainerBackPic_PokeDude, 0x0800, + gTrainerBackPic_PokeDude + 0x0800, 0x0800, + gTrainerBackPic_PokeDude + 0x1000, 0x0800, + gTrainerBackPic_PokeDude + 0x1800, 0x0800, +}; + +const struct SpriteFrameImage gTrainerBackPicTable_OldMan[] = +{ + gTrainerBackPic_OldMan, 0x0800, + gTrainerBackPic_OldMan + 0x0800, 0x0800, + gTrainerBackPic_OldMan + 0x1000, 0x0800, + gTrainerBackPic_OldMan + 0x1800, 0x0800, +}; + +const struct SpriteFrameImage gTrainerBackPicTable_RSBrendan[] = +{ + gTrainerBackPic_RSBrendan, 0x0800, + gTrainerBackPic_RSBrendan + 0x0800, 0x0800, + gTrainerBackPic_RSBrendan + 0x1000, 0x0800, + gTrainerBackPic_RSBrendan + 0x1800, 0x0800, +}; + +const struct SpriteFrameImage gTrainerBackPicTable_RSMay[] = +{ + gTrainerBackPic_RSMay, 0x0800, + gTrainerBackPic_RSMay + 0x0800, 0x0800, + gTrainerBackPic_RSMay + 0x1000, 0x0800, + gTrainerBackPic_RSMay + 0x1800, 0x0800, +}; + +static const union AnimCmd sAnim_GeneralFrame0[] = +{ + ANIMCMD_FRAME(0, 0), + ANIMCMD_END, +}; + +static const union AnimCmd sAnim_GeneralFrame3[] = +{ + ANIMCMD_FRAME(3, 0), + ANIMCMD_END, +}; + +static const union AffineAnimCmd gSpriteAffineAnim_82347F8[] = +{ + AFFINEANIMCMD_FRAME(0x0100, 0x0100, 0x00, 0x00), + AFFINEANIMCMD_END, +}; + +static const union AffineAnimCmd gSpriteAffineAnim_8234808[] = +{ + AFFINEANIMCMD_FRAME(0xff00, 0x0100, 0x00, 0x00), + AFFINEANIMCMD_END, +}; + +static const union AffineAnimCmd gSpriteAffineAnim_8234818[] = +{ + AFFINEANIMCMD_FRAME(0x0028, 0x0028, 0x00, 0x00), + AFFINEANIMCMD_FRAME(0x0012, 0x0012, 0x00, 0x0c), + AFFINEANIMCMD_END, +}; + +static const union AffineAnimCmd gSpriteAffineAnim_8234830[] = +{ + AFFINEANIMCMD_FRAME(0xfffe, 0xfffe, 0x00, 0x12), + AFFINEANIMCMD_FRAME(0xfff0, 0xfff0, 0x00, 0x0f), + AFFINEANIMCMD_END, +}; + +static const union AffineAnimCmd gSpriteAffineAnim_8234848[] = +{ + AFFINEANIMCMD_FRAME(0x00a0, 0x0100, 0x00, 0x00), + AFFINEANIMCMD_FRAME(0x0004, 0x0000, 0x00, 0x08), + AFFINEANIMCMD_FRAME(0xfffc, 0x0000, 0x00, 0x08), + AFFINEANIMCMD_JUMP(1), +}; + +static const union AffineAnimCmd gSpriteAffineAnim_8234868[] = +{ + AFFINEANIMCMD_FRAME(0x0002, 0x0002, 0x00, 0x14), + AFFINEANIMCMD_END, +}; + +static const union AffineAnimCmd gSpriteAffineAnim_8234878[] = +{ + AFFINEANIMCMD_FRAME(0xfffe, 0xfffe, 0x00, 0x14), + AFFINEANIMCMD_END, +}; + +static const union AffineAnimCmd gSpriteAffineAnim_8234888[] = +{ + AFFINEANIMCMD_FRAME(0x0100, 0x0100, 0x00, 0000), + AFFINEANIMCMD_FRAME(0xfff0, 0xfff0, 0x00, 0x09), + AFFINEANIMCMD_END, +}; + +static const union AffineAnimCmd gSpriteAffineAnim_82348A0[] = +{ + AFFINEANIMCMD_FRAME(0x0004, 0x0004, 0x00, 0x3f), + AFFINEANIMCMD_END, +}; + +static const union AffineAnimCmd gSpriteAffineAnim_82348B0[] = +{ + AFFINEANIMCMD_FRAME(0x0000, 0x0000, 0xfd, 0x05), + AFFINEANIMCMD_FRAME(0x0000, 0x0000, 0x03, 0x05), + AFFINEANIMCMD_END, +}; + +const union AffineAnimCmd *const gSpriteAffineAnimTable_82348C8[] = +{ + gSpriteAffineAnim_82347F8, + gSpriteAffineAnim_8234818, + gSpriteAffineAnim_8234830, + gSpriteAffineAnim_8234848, + gSpriteAffineAnim_8234868, + gSpriteAffineAnim_8234878, + gSpriteAffineAnim_82348A0, + gSpriteAffineAnim_82348B0, + gSpriteAffineAnim_8234888, +}; + +static const union AffineAnimCmd gSpriteAffineAnim_82348EC[] = +{ + AFFINEANIMCMD_FRAME(0xfffc, 0xfffc, 0x04, 0x3f), + AFFINEANIMCMD_END, +}; + +static const union AffineAnimCmd gSpriteAffineAnim_82348FC[] = +{ + AFFINEANIMCMD_FRAME(0x0000, 0x0000, 0x03, 0x05), + AFFINEANIMCMD_FRAME(0x0000, 0x0000, 0xfd, 0x05), + AFFINEANIMCMD_END, +}; + +static const union AffineAnimCmd gSpriteAffineAnim_8234914[] = +{ + AFFINEANIMCMD_FRAME(0x0000, 0x0000, 0xfb, 0x14), + AFFINEANIMCMD_FRAME(0x0000, 0x0000, 0x00, 0x14), + AFFINEANIMCMD_FRAME(0x0000, 0x0000, 0x05, 0x14), + AFFINEANIMCMD_END, +}; + +static const union AffineAnimCmd gSpriteAffineAnim_8234934[] = +{ + AFFINEANIMCMD_FRAME(0x0000, 0x0000, 0x09, 0x6e), + AFFINEANIMCMD_END, +}; + +const union AffineAnimCmd *const gSpriteAffineAnimTable_8234944[] = +{ + gSpriteAffineAnim_82347F8, + gSpriteAffineAnim_8234818, + gSpriteAffineAnim_8234830, + gSpriteAffineAnim_8234848, + gSpriteAffineAnim_8234868, + gSpriteAffineAnim_8234878, + gSpriteAffineAnim_82348EC, + gSpriteAffineAnim_82348FC, + gSpriteAffineAnim_8234914, + gSpriteAffineAnim_8234888, + gSpriteAffineAnim_8234934, +}; + +const union AffineAnimCmd *const gSpriteAffineAnimTable_82349470[] = +{ + gSpriteAffineAnim_8234808, + gSpriteAffineAnim_8234818, + gSpriteAffineAnim_8234830, + gSpriteAffineAnim_8234848, + gSpriteAffineAnim_8234868, + gSpriteAffineAnim_8234878, + gSpriteAffineAnim_82348EC, + gSpriteAffineAnim_82348FC, + gSpriteAffineAnim_8234914, + gSpriteAffineAnim_8234888, + gSpriteAffineAnim_8234934, +}; + +static const union AnimCmd gSpriteAnim_823499C[] = +{ + ANIMCMD_FRAME(0, 0), + ANIMCMD_END, +}; + +static const union AnimCmd gSpriteAnim_82349A4[] = +{ + ANIMCMD_FRAME(1, 0), + ANIMCMD_END, +}; + +static const union AnimCmd gSpriteAnim_82349AC[] = +{ + ANIMCMD_FRAME(2, 0), + ANIMCMD_END, +}; + +static const union AnimCmd gSpriteAnim_82349B4[] = +{ + ANIMCMD_FRAME(3, 0), + ANIMCMD_END, +}; + +const union AnimCmd *const gSpriteAnimTable_82349BC[] = +{ + gSpriteAnim_823499C, + gSpriteAnim_82349A4, + gSpriteAnim_82349AC, + gSpriteAnim_82349B4, +}; + +#define SPECIES_SPRITE(species, sprite) [SPECIES_##species] = {sprite, 0x800, SPECIES_##species} +#define SPECIES_PAL(species, pal) [SPECIES_##species] = {pal, SPECIES_##species} +#define SPECIES_SHINY_PAL(species, pal) [SPECIES_##species] = {pal, SPECIES_##species + SPECIES_SHINY_TAG} + +#define TRAINER_SPRITE(trainerPic, sprite, size) [TRAINER_PIC_##trainerPic] = {sprite, size, TRAINER_PIC_##trainerPic} +#define TRAINER_PAL(trainerPic, pal) [TRAINER_PIC_##trainerPic] = {pal, TRAINER_PIC_##trainerPic} + +#include "data/pokemon_graphics/front_pic_coordinates.h" +#include "data/pokemon_graphics/front_pic_table.h" +#include "data/pokemon_graphics/back_pic_coordinates.h" +#include "data/pokemon_graphics/back_pic_table.h" +#include "data/pokemon_graphics/palette_table.h" +#include "data/pokemon_graphics/shiny_palette_table.h" + +#include "data/trainer_graphics/front_pic_anims.h" +#include "data/trainer_graphics/front_pic_tables.h" +#include "data/trainer_graphics/back_pic_anims.h" +#include "data/trainer_graphics/back_pic_tables.h" + +#include "data/pokemon_graphics/enemy_mon_elevation.h" + +#include "data/trainer_parties.h" +#include "data/text/trainer_class_names.h" +#include "data/trainers.h" +#include "data/text/species_names.h" +#include "data/text/move_names.h" diff --git a/src/data/pokemon_graphics/back_pic_coordinates.h b/src/data/pokemon_graphics/back_pic_coordinates.h new file mode 100644 index 000000000..b8a96febc --- /dev/null +++ b/src/data/pokemon_graphics/back_pic_coordinates.h @@ -0,0 +1,2204 @@ +const struct MonCoords gMonBackPicCoords[] = +{ + [SPECIES_NONE] = + { + .size = 0x88, + .y_offset = 0x00, + }, + [SPECIES_BULBASAUR] = + { + .size = 0x64, + .y_offset = 0x10, + }, + [SPECIES_IVYSAUR] = + { + .size = 0x76, + .y_offset = 0x0a, + }, + [SPECIES_VENUSAUR] = + { + .size = 0x86, + .y_offset = 0x0a, + }, + [SPECIES_CHARMANDER] = + { + .size = 0x66, + .y_offset = 0x0a, + }, + [SPECIES_CHARMELEON] = + { + .size = 0x77, + .y_offset = 0x07, + }, + [SPECIES_CHARIZARD] = + { + .size = 0x87, + .y_offset = 0x04, + }, + [SPECIES_SQUIRTLE] = + { + .size = 0x75, + .y_offset = 0x0f, + }, + [SPECIES_WARTORTLE] = + { + .size = 0x86, + .y_offset = 0x0a, + }, + [SPECIES_BLASTOISE] = + { + .size = 0x86, + .y_offset = 0x0a, + }, + [SPECIES_CATERPIE] = + { + .size = 0x55, + .y_offset = 0x0f, + }, + [SPECIES_METAPOD] = + { + .size = 0x65, + .y_offset = 0x0c, + }, + [SPECIES_BUTTERFREE] = + { + .size = 0x87, + .y_offset = 0x04, + }, + [SPECIES_WEEDLE] = + { + .size = 0x56, + .y_offset = 0x0b, + }, + [SPECIES_KAKUNA] = + { + .size = 0x46, + .y_offset = 0x0a, + }, + [SPECIES_BEEDRILL] = + { + .size = 0x86, + .y_offset = 0x09, + }, + [SPECIES_PIDGEY] = + { + .size = 0x66, + .y_offset = 0x08, + }, + [SPECIES_PIDGEOTTO] = + { + .size = 0x85, + .y_offset = 0x0c, + }, + [SPECIES_PIDGEOT] = + { + .size = 0x87, + .y_offset = 0x06, + }, + [SPECIES_RATTATA] = + { + .size = 0x75, + .y_offset = 0x0d, + }, + [SPECIES_RATICATE] = + { + .size = 0x75, + .y_offset = 0x0d, + }, + [SPECIES_SPEAROW] = + { + .size = 0x65, + .y_offset = 0x0c, + }, + [SPECIES_FEAROW] = + { + .size = 0x87, + .y_offset = 0x05, + }, + [SPECIES_EKANS] = + { + .size = 0x66, + .y_offset = 0x09, + }, + [SPECIES_ARBOK] = + { + .size = 0x77, + .y_offset = 0x04, + }, + [SPECIES_PIKACHU] = + { + .size = 0x77, + .y_offset = 0x07, + }, + [SPECIES_RAICHU] = + { + .size = 0x66, + .y_offset = 0x08, + }, + [SPECIES_SANDSHREW] = + { + .size = 0x65, + .y_offset = 0x0d, + }, + [SPECIES_SANDSLASH] = + { + .size = 0x86, + .y_offset = 0x09, + }, + [SPECIES_NIDORAN_F] = + { + .size = 0x55, + .y_offset = 0x0c, + }, + [SPECIES_NIDORINA] = + { + .size = 0x86, + .y_offset = 0x0a, + }, + [SPECIES_NIDOQUEEN] = + { + .size = 0x77, + .y_offset = 0x06, + }, + [SPECIES_NIDORAN_M] = + { + .size = 0x56, + .y_offset = 0x08, + }, + [SPECIES_NIDORINO] = + { + .size = 0x86, + .y_offset = 0x09, + }, + [SPECIES_NIDOKING] = + { + .size = 0x88, + .y_offset = 0x03, + }, + [SPECIES_CLEFAIRY] = + { + .size = 0x65, + .y_offset = 0x0d, + }, + [SPECIES_CLEFABLE] = + { + .size = 0x76, + .y_offset = 0x0a, + }, + [SPECIES_VULPIX] = + { + .size = 0x76, + .y_offset = 0x09, + }, + [SPECIES_NINETALES] = + { + .size = 0x87, + .y_offset = 0x04, + }, + [SPECIES_JIGGLYPUFF] = + { + .size = 0x65, + .y_offset = 0x0d, + }, + [SPECIES_WIGGLYTUFF] = + { + .size = 0x66, + .y_offset = 0x08, + }, + [SPECIES_ZUBAT] = + { + .size = 0x76, + .y_offset = 0x0b, + }, + [SPECIES_GOLBAT] = + { + .size = 0x87, + .y_offset = 0x06, + }, + [SPECIES_ODDISH] = + { + .size = 0x66, + .y_offset = 0x08, + }, + [SPECIES_GLOOM] = + { + .size = 0x76, + .y_offset = 0x0b, + }, + [SPECIES_VILEPLUME] = + { + .size = 0x87, + .y_offset = 0x07, + }, + [SPECIES_PARAS] = + { + .size = 0x63, + .y_offset = 0x14, + }, + [SPECIES_PARASECT] = + { + .size = 0x87, + .y_offset = 0x07, + }, + [SPECIES_VENONAT] = + { + .size = 0x77, + .y_offset = 0x06, + }, + [SPECIES_VENOMOTH] = + { + .size = 0x77, + .y_offset = 0x04, + }, + [SPECIES_DIGLETT] = + { + .size = 0x54, + .y_offset = 0x10, + }, + [SPECIES_DUGTRIO] = + { + .size = 0x66, + .y_offset = 0x0b, + }, + [SPECIES_MEOWTH] = + { + .size = 0x65, + .y_offset = 0x0c, + }, + [SPECIES_PERSIAN] = + { + .size = 0x87, + .y_offset = 0x07, + }, + [SPECIES_PSYDUCK] = + { + .size = 0x67, + .y_offset = 0x07, + }, + [SPECIES_GOLDUCK] = + { + .size = 0x77, + .y_offset = 0x05, + }, + [SPECIES_MANKEY] = + { + .size = 0x76, + .y_offset = 0x0b, + }, + [SPECIES_PRIMEAPE] = + { + .size = 0x77, + .y_offset = 0x07, + }, + [SPECIES_GROWLITHE] = + { + .size = 0x66, + .y_offset = 0x08, + }, + [SPECIES_ARCANINE] = + { + .size = 0x87, + .y_offset = 0x06, + }, + [SPECIES_POLIWAG] = + { + .size = 0x74, + .y_offset = 0x10, + }, + [SPECIES_POLIWHIRL] = + { + .size = 0x65, + .y_offset = 0x0d, + }, + [SPECIES_POLIWRATH] = + { + .size = 0x86, + .y_offset = 0x0a, + }, + [SPECIES_ABRA] = + { + .size = 0x55, + .y_offset = 0x0c, + }, + [SPECIES_KADABRA] = + { + .size = 0x86, + .y_offset = 0x09, + }, + [SPECIES_ALAKAZAM] = + { + .size = 0x87, + .y_offset = 0x06, + }, + [SPECIES_MACHOP] = + { + .size = 0x65, + .y_offset = 0x0c, + }, + [SPECIES_MACHOKE] = + { + .size = 0x76, + .y_offset = 0x09, + }, + [SPECIES_MACHAMP] = + { + .size = 0x67, + .y_offset = 0x04, + }, + [SPECIES_BELLSPROUT] = + { + .size = 0x66, + .y_offset = 0x0a, + }, + [SPECIES_WEEPINBELL] = + { + .size = 0x66, + .y_offset = 0x09, + }, + [SPECIES_VICTREEBEL] = + { + .size = 0x87, + .y_offset = 0x06, + }, + [SPECIES_TENTACOOL] = + { + .size = 0x56, + .y_offset = 0x0a, + }, + [SPECIES_TENTACRUEL] = + { + .size = 0x86, + .y_offset = 0x0b, + }, + [SPECIES_GEODUDE] = + { + .size = 0x66, + .y_offset = 0x0b, + }, + [SPECIES_GRAVELER] = + { + .size = 0x75, + .y_offset = 0x0c, + }, + [SPECIES_GOLEM] = + { + .size = 0x84, + .y_offset = 0x10, + }, + [SPECIES_PONYTA] = + { + .size = 0x66, + .y_offset = 0x09, + }, + [SPECIES_RAPIDASH] = + { + .size = 0x87, + .y_offset = 0x05, + }, + [SPECIES_SLOWPOKE] = + { + .size = 0x85, + .y_offset = 0x0e, + }, + [SPECIES_SLOWBRO] = + { + .size = 0x86, + .y_offset = 0x0a, + }, + [SPECIES_MAGNEMITE] = + { + .size = 0x43, + .y_offset = 0x14, + }, + [SPECIES_MAGNETON] = + { + .size = 0x66, + .y_offset = 0x0a, + }, + [SPECIES_FARFETCHD] = + { + .size = 0x66, + .y_offset = 0x0a, + }, + [SPECIES_DODUO] = + { + .size = 0x66, + .y_offset = 0x08, + }, + [SPECIES_DODRIO] = + { + .size = 0x88, + .y_offset = 0x01, + }, + [SPECIES_SEEL] = + { + .size = 0x66, + .y_offset = 0x0a, + }, + [SPECIES_DEWGONG] = + { + .size = 0x77, + .y_offset = 0x05, + }, + [SPECIES_GRIMER] = + { + .size = 0x75, + .y_offset = 0x0d, + }, + [SPECIES_MUK] = + { + .size = 0x85, + .y_offset = 0x0d, + }, + [SPECIES_SHELLDER] = + { + .size = 0x76, + .y_offset = 0x0b, + }, + [SPECIES_CLOYSTER] = + { + .size = 0x87, + .y_offset = 0x06, + }, + [SPECIES_GASTLY] = + { + .size = 0x85, + .y_offset = 0x0e, + }, + [SPECIES_HAUNTER] = + { + .size = 0x76, + .y_offset = 0x09, + }, + [SPECIES_GENGAR] = + { + .size = 0x86, + .y_offset = 0x0a, + }, + [SPECIES_ONIX] = + { + .size = 0x78, + .y_offset = 0x00, + }, + [SPECIES_DROWZEE] = + { + .size = 0x65, + .y_offset = 0x0d, + }, + [SPECIES_HYPNO] = + { + .size = 0x66, + .y_offset = 0x09, + }, + [SPECIES_KRABBY] = + { + .size = 0x66, + .y_offset = 0x0a, + }, + [SPECIES_KINGLER] = + { + .size = 0x77, + .y_offset = 0x04, + }, + [SPECIES_VOLTORB] = + { + .size = 0x55, + .y_offset = 0x0e, + }, + [SPECIES_ELECTRODE] = + { + .size = 0x65, + .y_offset = 0x0d, + }, + [SPECIES_EXEGGCUTE] = + { + .size = 0x65, + .y_offset = 0x0d, + }, + [SPECIES_EXEGGUTOR] = + { + .size = 0x87, + .y_offset = 0x07, + }, + [SPECIES_CUBONE] = + { + .size = 0x76, + .y_offset = 0x0a, + }, + [SPECIES_MAROWAK] = + { + .size = 0x66, + .y_offset = 0x08, + }, + [SPECIES_HITMONLEE] = + { + .size = 0x65, + .y_offset = 0x0c, + }, + [SPECIES_HITMONCHAN] = + { + .size = 0x65, + .y_offset = 0x0c, + }, + [SPECIES_LICKITUNG] = + { + .size = 0x85, + .y_offset = 0x0e, + }, + [SPECIES_KOFFING] = + { + .size = 0x66, + .y_offset = 0x09, + }, + [SPECIES_WEEZING] = + { + .size = 0x85, + .y_offset = 0x0c, + }, + [SPECIES_RHYHORN] = + { + .size = 0x85, + .y_offset = 0x0c, + }, + [SPECIES_RHYDON] = + { + .size = 0x88, + .y_offset = 0x03, + }, + [SPECIES_CHANSEY] = + { + .size = 0x85, + .y_offset = 0x0e, + }, + [SPECIES_TANGELA] = + { + .size = 0x85, + .y_offset = 0x0e, + }, + [SPECIES_KANGASKHAN] = + { + .size = 0x77, + .y_offset = 0x05, + }, + [SPECIES_HORSEA] = + { + .size = 0x66, + .y_offset = 0x09, + }, + [SPECIES_SEADRA] = + { + .size = 0x66, + .y_offset = 0x08, + }, + [SPECIES_GOLDEEN] = + { + .size = 0x66, + .y_offset = 0x08, + }, + [SPECIES_SEAKING] = + { + .size = 0x76, + .y_offset = 0x0b, + }, + [SPECIES_STARYU] = + { + .size = 0x75, + .y_offset = 0x0d, + }, + [SPECIES_STARMIE] = + { + .size = 0x85, + .y_offset = 0x0e, + }, + [SPECIES_MR_MIME] = + { + .size = 0x85, + .y_offset = 0x0d, + }, + [SPECIES_SCYTHER] = + { + .size = 0x87, + .y_offset = 0x04, + }, + [SPECIES_JYNX] = + { + .size = 0x85, + .y_offset = 0x0d, + }, + [SPECIES_ELECTABUZZ] = + { + .size = 0x66, + .y_offset = 0x08, + }, + [SPECIES_MAGMAR] = + { + .size = 0x77, + .y_offset = 0x07, + }, + [SPECIES_PINSIR] = + { + .size = 0x66, + .y_offset = 0x09, + }, + [SPECIES_TAUROS] = + { + .size = 0x85, + .y_offset = 0x0d, + }, + [SPECIES_MAGIKARP] = + { + .size = 0x76, + .y_offset = 0x09, + }, + [SPECIES_GYARADOS] = + { + .size = 0x88, + .y_offset = 0x00, + }, + [SPECIES_LAPRAS] = + { + .size = 0x77, + .y_offset = 0x04, + }, + [SPECIES_DITTO] = + { + .size = 0x54, + .y_offset = 0x11, + }, + [SPECIES_EEVEE] = + { + .size = 0x66, + .y_offset = 0x0a, + }, + [SPECIES_VAPOREON] = + { + .size = 0x66, + .y_offset = 0x0a, + }, + [SPECIES_JOLTEON] = + { + .size = 0x87, + .y_offset = 0x06, + }, + [SPECIES_FLAREON] = + { + .size = 0x67, + .y_offset = 0x05, + }, + [SPECIES_PORYGON] = + { + .size = 0x65, + .y_offset = 0x0d, + }, + [SPECIES_OMANYTE] = + { + .size = 0x66, + .y_offset = 0x0a, + }, + [SPECIES_OMASTAR] = + { + .size = 0x66, + .y_offset = 0x08, + }, + [SPECIES_KABUTO] = + { + .size = 0x65, + .y_offset = 0x0d, + }, + [SPECIES_KABUTOPS] = + { + .size = 0x77, + .y_offset = 0x05, + }, + [SPECIES_AERODACTYL] = + { + .size = 0x86, + .y_offset = 0x08, + }, + [SPECIES_SNORLAX] = + { + .size = 0x86, + .y_offset = 0x0b, + }, + [SPECIES_ARTICUNO] = + { + .size = 0x65, + .y_offset = 0x0c, + }, + [SPECIES_ZAPDOS] = + { + .size = 0x76, + .y_offset = 0x0b, + }, + [SPECIES_MOLTRES] = + { + .size = 0x87, + .y_offset = 0x04, + }, + [SPECIES_DRATINI] = + { + .size = 0x66, + .y_offset = 0x09, + }, + [SPECIES_DRAGONAIR] = + { + .size = 0x78, + .y_offset = 0x00, + }, + [SPECIES_DRAGONITE] = + { + .size = 0x87, + .y_offset = 0x06, + }, + [SPECIES_MEWTWO] = + { + .size = 0x78, + .y_offset = 0x01, + }, + [SPECIES_MEW] = + { + .size = 0x88, + .y_offset = 0x01, + }, + [SPECIES_CHIKORITA] = + { + .size = 0x56, + .y_offset = 0x0a, + }, + [SPECIES_BAYLEEF] = + { + .size = 0x66, + .y_offset = 0x08, + }, + [SPECIES_MEGANIUM] = + { + .size = 0x78, + .y_offset = 0x00, + }, + [SPECIES_CYNDAQUIL] = + { + .size = 0x76, + .y_offset = 0x09, + }, + [SPECIES_QUILAVA] = + { + .size = 0x87, + .y_offset = 0x04, + }, + [SPECIES_TYPHLOSION] = + { + .size = 0x87, + .y_offset = 0x04, + }, + [SPECIES_TOTODILE] = + { + .size = 0x66, + .y_offset = 0x0b, + }, + [SPECIES_CROCONAW] = + { + .size = 0x67, + .y_offset = 0x07, + }, + [SPECIES_FERALIGATR] = + { + .size = 0x88, + .y_offset = 0x01, + }, + [SPECIES_SENTRET] = + { + .size = 0x67, + .y_offset = 0x05, + }, + [SPECIES_FURRET] = + { + .size = 0x66, + .y_offset = 0x08, + }, + [SPECIES_HOOTHOOT] = + { + .size = 0x66, + .y_offset = 0x08, + }, + [SPECIES_NOCTOWL] = + { + .size = 0x68, + .y_offset = 0x03, + }, + [SPECIES_LEDYBA] = + { + .size = 0x76, + .y_offset = 0x0b, + }, + [SPECIES_LEDIAN] = + { + .size = 0x77, + .y_offset = 0x07, + }, + [SPECIES_SPINARAK] = + { + .size = 0x73, + .y_offset = 0x15, + }, + [SPECIES_ARIADOS] = + { + .size = 0x86, + .y_offset = 0x0b, + }, + [SPECIES_CROBAT] = + { + .size = 0x87, + .y_offset = 0x05, + }, + [SPECIES_CHINCHOU] = + { + .size = 0x86, + .y_offset = 0x08, + }, + [SPECIES_LANTURN] = + { + .size = 0x86, + .y_offset = 0x08, + }, + [SPECIES_PICHU] = + { + .size = 0x66, + .y_offset = 0x0b, + }, + [SPECIES_CLEFFA] = + { + .size = 0x65, + .y_offset = 0x0f, + }, + [SPECIES_IGGLYBUFF] = + { + .size = 0x66, + .y_offset = 0x0b, + }, + [SPECIES_TOGEPI] = + { + .size = 0x54, + .y_offset = 0x10, + }, + [SPECIES_TOGETIC] = + { + .size = 0x66, + .y_offset = 0x08, + }, + [SPECIES_NATU] = + { + .size = 0x54, + .y_offset = 0x11, + }, + [SPECIES_XATU] = + { + .size = 0x76, + .y_offset = 0x08, + }, + [SPECIES_MAREEP] = + { + .size = 0x66, + .y_offset = 0x09, + }, + [SPECIES_FLAAFFY] = + { + .size = 0x66, + .y_offset = 0x09, + }, + [SPECIES_AMPHAROS] = + { + .size = 0x88, + .y_offset = 0x01, + }, + [SPECIES_BELLOSSOM] = + { + .size = 0x66, + .y_offset = 0x0b, + }, + [SPECIES_MARILL] = + { + .size = 0x75, + .y_offset = 0x0c, + }, + [SPECIES_AZUMARILL] = + { + .size = 0x86, + .y_offset = 0x08, + }, + [SPECIES_SUDOWOODO] = + { + .size = 0x66, + .y_offset = 0x08, + }, + [SPECIES_POLITOED] = + { + .size = 0x66, + .y_offset = 0x09, + }, + [SPECIES_HOPPIP] = + { + .size = 0x66, + .y_offset = 0x0b, + }, + [SPECIES_SKIPLOOM] = + { + .size = 0x65, + .y_offset = 0x0d, + }, + [SPECIES_JUMPLUFF] = + { + .size = 0x87, + .y_offset = 0x04, + }, + [SPECIES_AIPOM] = + { + .size = 0x66, + .y_offset = 0x09, + }, + [SPECIES_SUNKERN] = + { + .size = 0x56, + .y_offset = 0x0a, + }, + [SPECIES_SUNFLORA] = + { + .size = 0x66, + .y_offset = 0x08, + }, + [SPECIES_YANMA] = + { + .size = 0x77, + .y_offset = 0x04, + }, + [SPECIES_WOOPER] = + { + .size = 0x85, + .y_offset = 0x0f, + }, + [SPECIES_QUAGSIRE] = + { + .size = 0x76, + .y_offset = 0x08, + }, + [SPECIES_ESPEON] = + { + .size = 0x76, + .y_offset = 0x0b, + }, + [SPECIES_UMBREON] = + { + .size = 0x87, + .y_offset = 0x04, + }, + [SPECIES_MURKROW] = + { + .size = 0x66, + .y_offset = 0x09, + }, + [SPECIES_SLOWKING] = + { + .size = 0x66, + .y_offset = 0x08, + }, + [SPECIES_MISDREAVUS] = + { + .size = 0x66, + .y_offset = 0x0a, + }, + [SPECIES_UNOWN] = + { + .size = 0x36, + .y_offset = 0x08, + }, + [SPECIES_WOBBUFFET] = + { + .size = 0x75, + .y_offset = 0x0c, + }, + [SPECIES_GIRAFARIG] = + { + .size = 0x87, + .y_offset = 0x05, + }, + [SPECIES_PINECO] = + { + .size = 0x65, + .y_offset = 0x0f, + }, + [SPECIES_FORRETRESS] = + { + .size = 0x84, + .y_offset = 0x10, + }, + [SPECIES_DUNSPARCE] = + { + .size = 0x85, + .y_offset = 0x0f, + }, + [SPECIES_GLIGAR] = + { + .size = 0x87, + .y_offset = 0x05, + }, + [SPECIES_STEELIX] = + { + .size = 0x88, + .y_offset = 0x00, + }, + [SPECIES_SNUBBULL] = + { + .size = 0x76, + .y_offset = 0x0a, + }, + [SPECIES_GRANBULL] = + { + .size = 0x87, + .y_offset = 0x05, + }, + [SPECIES_QWILFISH] = + { + .size = 0x77, + .y_offset = 0x07, + }, + [SPECIES_SCIZOR] = + { + .size = 0x77, + .y_offset = 0x04, + }, + [SPECIES_SHUCKLE] = + { + .size = 0x56, + .y_offset = 0x0b, + }, + [SPECIES_HERACROSS] = + { + .size = 0x77, + .y_offset = 0x04, + }, + [SPECIES_SNEASEL] = + { + .size = 0x66, + .y_offset = 0x08, + }, + [SPECIES_TEDDIURSA] = + { + .size = 0x66, + .y_offset = 0x08, + }, + [SPECIES_URSARING] = + { + .size = 0x88, + .y_offset = 0x03, + }, + [SPECIES_SLUGMA] = + { + .size = 0x66, + .y_offset = 0x08, + }, + [SPECIES_MAGCARGO] = + { + .size = 0x76, + .y_offset = 0x09, + }, + [SPECIES_SWINUB] = + { + .size = 0x63, + .y_offset = 0x15, + }, + [SPECIES_PILOSWINE] = + { + .size = 0x75, + .y_offset = 0x0d, + }, + [SPECIES_CORSOLA] = + { + .size = 0x65, + .y_offset = 0x0c, + }, + [SPECIES_REMORAID] = + { + .size = 0x75, + .y_offset = 0x0d, + }, + [SPECIES_OCTILLERY] = + { + .size = 0x66, + .y_offset = 0x0a, + }, + [SPECIES_DELIBIRD] = + { + .size = 0x67, + .y_offset = 0x06, + }, + [SPECIES_MANTINE] = + { + .size = 0x87, + .y_offset = 0x07, + }, + [SPECIES_SKARMORY] = + { + .size = 0x87, + .y_offset = 0x04, + }, + [SPECIES_HOUNDOUR] = + { + .size = 0x55, + .y_offset = 0x0c, + }, + [SPECIES_HOUNDOOM] = + { + .size = 0x87, + .y_offset = 0x07, + }, + [SPECIES_KINGDRA] = + { + .size = 0x87, + .y_offset = 0x06, + }, + [SPECIES_PHANPY] = + { + .size = 0x65, + .y_offset = 0x0e, + }, + [SPECIES_DONPHAN] = + { + .size = 0x85, + .y_offset = 0x0d, + }, + [SPECIES_PORYGON2] = + { + .size = 0x76, + .y_offset = 0x0a, + }, + [SPECIES_STANTLER] = + { + .size = 0x78, + .y_offset = 0x03, + }, + [SPECIES_SMEARGLE] = + { + .size = 0x76, + .y_offset = 0x0a, + }, + [SPECIES_TYROGUE] = + { + .size = 0x66, + .y_offset = 0x08, + }, + [SPECIES_HITMONTOP] = + { + .size = 0x87, + .y_offset = 0x05, + }, + [SPECIES_SMOOCHUM] = + { + .size = 0x56, + .y_offset = 0x09, + }, + [SPECIES_ELEKID] = + { + .size = 0x66, + .y_offset = 0x08, + }, + [SPECIES_MAGBY] = + { + .size = 0x66, + .y_offset = 0x0b, + }, + [SPECIES_MILTANK] = + { + .size = 0x87, + .y_offset = 0x07, + }, + [SPECIES_BLISSEY] = + { + .size = 0x85, + .y_offset = 0x0d, + }, + [SPECIES_RAIKOU] = + { + .size = 0x86, + .y_offset = 0x0a, + }, + [SPECIES_ENTEI] = + { + .size = 0x87, + .y_offset = 0x06, + }, + [SPECIES_SUICUNE] = + { + .size = 0x88, + .y_offset = 0x03, + }, + [SPECIES_LARVITAR] = + { + .size = 0x66, + .y_offset = 0x08, + }, + [SPECIES_PUPITAR] = + { + .size = 0x67, + .y_offset = 0x05, + }, + [SPECIES_TYRANITAR] = + { + .size = 0x88, + .y_offset = 0x00, + }, + [SPECIES_LUGIA] = + { + .size = 0x88, + .y_offset = 0x01, + }, + [SPECIES_HO_OH] = + { + .size = 0x88, + .y_offset = 0x01, + }, + [SPECIES_CELEBI] = + { + .size = 0x66, + .y_offset = 0x08, + }, + [SPECIES_OLD_UNOWN_B] = + { + .size = 0x88, + .y_offset = 0x01, + }, + [SPECIES_OLD_UNOWN_C] = + { + .size = 0x88, + .y_offset = 0x01, + }, + [SPECIES_OLD_UNOWN_D] = + { + .size = 0x88, + .y_offset = 0x01, + }, + [SPECIES_OLD_UNOWN_E] = + { + .size = 0x88, + .y_offset = 0x01, + }, + [SPECIES_OLD_UNOWN_F] = + { + .size = 0x88, + .y_offset = 0x01, + }, + [SPECIES_OLD_UNOWN_G] = + { + .size = 0x88, + .y_offset = 0x01, + }, + [SPECIES_OLD_UNOWN_H] = + { + .size = 0x88, + .y_offset = 0x01, + }, + [SPECIES_OLD_UNOWN_I] = + { + .size = 0x88, + .y_offset = 0x01, + }, + [SPECIES_OLD_UNOWN_J] = + { + .size = 0x88, + .y_offset = 0x01, + }, + [SPECIES_OLD_UNOWN_K] = + { + .size = 0x88, + .y_offset = 0x01, + }, + [SPECIES_OLD_UNOWN_L] = + { + .size = 0x88, + .y_offset = 0x01, + }, + [SPECIES_OLD_UNOWN_M] = + { + .size = 0x88, + .y_offset = 0x01, + }, + [SPECIES_OLD_UNOWN_N] = + { + .size = 0x88, + .y_offset = 0x01, + }, + [SPECIES_OLD_UNOWN_O] = + { + .size = 0x88, + .y_offset = 0x01, + }, + [SPECIES_OLD_UNOWN_P] = + { + .size = 0x88, + .y_offset = 0x01, + }, + [SPECIES_OLD_UNOWN_Q] = + { + .size = 0x88, + .y_offset = 0x01, + }, + [SPECIES_OLD_UNOWN_R] = + { + .size = 0x88, + .y_offset = 0x01, + }, + [SPECIES_OLD_UNOWN_S] = + { + .size = 0x88, + .y_offset = 0x01, + }, + [SPECIES_OLD_UNOWN_T] = + { + .size = 0x88, + .y_offset = 0x01, + }, + [SPECIES_OLD_UNOWN_U] = + { + .size = 0x88, + .y_offset = 0x01, + }, + [SPECIES_OLD_UNOWN_V] = + { + .size = 0x88, + .y_offset = 0x01, + }, + [SPECIES_OLD_UNOWN_W] = + { + .size = 0x88, + .y_offset = 0x01, + }, + [SPECIES_OLD_UNOWN_X] = + { + .size = 0x88, + .y_offset = 0x01, + }, + [SPECIES_OLD_UNOWN_Y] = + { + .size = 0x88, + .y_offset = 0x01, + }, + [SPECIES_OLD_UNOWN_Z] = + { + .size = 0x88, + .y_offset = 0x01, + }, + [SPECIES_TREECKO] = + { + .size = 0x87, + .y_offset = 0x06, + }, + [SPECIES_GROVYLE] = + { + .size = 0x86, + .y_offset = 0x08, + }, + [SPECIES_SCEPTILE] = + { + .size = 0x88, + .y_offset = 0x01, + }, + [SPECIES_TORCHIC] = + { + .size = 0x67, + .y_offset = 0x05, + }, + [SPECIES_COMBUSKEN] = + { + .size = 0x88, + .y_offset = 0x00, + }, + [SPECIES_BLAZIKEN] = + { + .size = 0x88, + .y_offset = 0x00, + }, + [SPECIES_MUDKIP] = + { + .size = 0x77, + .y_offset = 0x05, + }, + [SPECIES_MARSHTOMP] = + { + .size = 0x87, + .y_offset = 0x04, + }, + [SPECIES_SWAMPERT] = + { + .size = 0x87, + .y_offset = 0x05, + }, + [SPECIES_POOCHYENA] = + { + .size = 0x76, + .y_offset = 0x09, + }, + [SPECIES_MIGHTYENA] = + { + .size = 0x87, + .y_offset = 0x04, + }, + [SPECIES_ZIGZAGOON] = + { + .size = 0x76, + .y_offset = 0x0b, + }, + [SPECIES_LINOONE] = + { + .size = 0x85, + .y_offset = 0x0f, + }, + [SPECIES_WURMPLE] = + { + .size = 0x76, + .y_offset = 0x0b, + }, + [SPECIES_SILCOON] = + { + .size = 0x83, + .y_offset = 0x15, + }, + [SPECIES_BEAUTIFLY] = + { + .size = 0x88, + .y_offset = 0x00, + }, + [SPECIES_CASCOON] = + { + .size = 0x73, + .y_offset = 0x14, + }, + [SPECIES_DUSTOX] = + { + .size = 0x83, + .y_offset = 0x14, + }, + [SPECIES_LOTAD] = + { + .size = 0x75, + .y_offset = 0x0f, + }, + [SPECIES_LOMBRE] = + { + .size = 0x86, + .y_offset = 0x08, + }, + [SPECIES_LUDICOLO] = + { + .size = 0x86, + .y_offset = 0x0a, + }, + [SPECIES_SEEDOT] = + { + .size = 0x86, + .y_offset = 0x09, + }, + [SPECIES_NUZLEAF] = + { + .size = 0x76, + .y_offset = 0x0a, + }, + [SPECIES_SHIFTRY] = + { + .size = 0x86, + .y_offset = 0x08, + }, + [SPECIES_NINCADA] = + { + .size = 0x83, + .y_offset = 0x14, + }, + [SPECIES_NINJASK] = + { + .size = 0x86, + .y_offset = 0x08, + }, + [SPECIES_SHEDINJA] = + { + .size = 0x77, + .y_offset = 0x06, + }, + [SPECIES_TAILLOW] = + { + .size = 0x64, + .y_offset = 0x11, + }, + [SPECIES_SWELLOW] = + { + .size = 0x86, + .y_offset = 0x08, + }, + [SPECIES_SHROOMISH] = + { + .size = 0x85, + .y_offset = 0x0d, + }, + [SPECIES_BRELOOM] = + { + .size = 0x87, + .y_offset = 0x04, + }, + [SPECIES_SPINDA] = + { + .size = 0x77, + .y_offset = 0x04, + }, + [SPECIES_WINGULL] = + { + .size = 0x85, + .y_offset = 0x0e, + }, + [SPECIES_PELIPPER] = + { + .size = 0x87, + .y_offset = 0x06, + }, + [SPECIES_SURSKIT] = + { + .size = 0x86, + .y_offset = 0x0b, + }, + [SPECIES_MASQUERAIN] = + { + .size = 0x88, + .y_offset = 0x00, + }, + [SPECIES_WAILMER] = + { + .size = 0x83, + .y_offset = 0x15, + }, + [SPECIES_WAILORD] = + { + .size = 0x83, + .y_offset = 0x16, + }, + [SPECIES_SKITTY] = + { + .size = 0x86, + .y_offset = 0x0a, + }, + [SPECIES_DELCATTY] = + { + .size = 0x86, + .y_offset = 0x08, + }, + [SPECIES_KECLEON] = + { + .size = 0x87, + .y_offset = 0x06, + }, + [SPECIES_BALTOY] = + { + .size = 0x86, + .y_offset = 0x08, + }, + [SPECIES_CLAYDOL] = + { + .size = 0x87, + .y_offset = 0x07, + }, + [SPECIES_NOSEPASS] = + { + .size = 0x85, + .y_offset = 0x0c, + }, + [SPECIES_TORKOAL] = + { + .size = 0x86, + .y_offset = 0x0a, + }, + [SPECIES_SABLEYE] = + { + .size = 0x76, + .y_offset = 0x08, + }, + [SPECIES_BARBOACH] = + { + .size = 0x66, + .y_offset = 0x0a, + }, + [SPECIES_WHISCASH] = + { + .size = 0x86, + .y_offset = 0x0a, + }, + [SPECIES_LUVDISC] = + { + .size = 0x46, + .y_offset = 0x0a, + }, + [SPECIES_CORPHISH] = + { + .size = 0x77, + .y_offset = 0x07, + }, + [SPECIES_CRAWDAUNT] = + { + .size = 0x87, + .y_offset = 0x05, + }, + [SPECIES_FEEBAS] = + { + .size = 0x67, + .y_offset = 0x07, + }, + [SPECIES_MILOTIC] = + { + .size = 0x68, + .y_offset = 0x02, + }, + [SPECIES_CARVANHA] = + { + .size = 0x87, + .y_offset = 0x07, + }, + [SPECIES_SHARPEDO] = + { + .size = 0x88, + .y_offset = 0x02, + }, + [SPECIES_TRAPINCH] = + { + .size = 0x75, + .y_offset = 0x0e, + }, + [SPECIES_VIBRAVA] = + { + .size = 0x74, + .y_offset = 0x11, + }, + [SPECIES_FLYGON] = + { + .size = 0x88, + .y_offset = 0x02, + }, + [SPECIES_MAKUHITA] = + { + .size = 0x76, + .y_offset = 0x0b, + }, + [SPECIES_HARIYAMA] = + { + .size = 0x87, + .y_offset = 0x07, + }, + [SPECIES_ELECTRIKE] = + { + .size = 0x84, + .y_offset = 0x10, + }, + [SPECIES_MANECTRIC] = + { + .size = 0x87, + .y_offset = 0x04, + }, + [SPECIES_NUMEL] = + { + .size = 0x86, + .y_offset = 0x0b, + }, + [SPECIES_CAMERUPT] = + { + .size = 0x84, + .y_offset = 0x13, + }, + [SPECIES_SPHEAL] = + { + .size = 0x64, + .y_offset = 0x12, + }, + [SPECIES_SEALEO] = + { + .size = 0x86, + .y_offset = 0x0a, + }, + [SPECIES_WALREIN] = + { + .size = 0x87, + .y_offset = 0x06, + }, + [SPECIES_CACNEA] = + { + .size = 0x85, + .y_offset = 0x0f, + }, + [SPECIES_CACTURNE] = + { + .size = 0x87, + .y_offset = 0x07, + }, + [SPECIES_SNORUNT] = + { + .size = 0x76, + .y_offset = 0x0a, + }, + [SPECIES_GLALIE] = + { + .size = 0x85, + .y_offset = 0x0c, + }, + [SPECIES_LUNATONE] = + { + .size = 0x87, + .y_offset = 0x05, + }, + [SPECIES_SOLROCK] = + { + .size = 0x87, + .y_offset = 0x05, + }, + [SPECIES_AZURILL] = + { + .size = 0x86, + .y_offset = 0x0a, + }, + [SPECIES_SPOINK] = + { + .size = 0x56, + .y_offset = 0x0b, + }, + [SPECIES_GRUMPIG] = + { + .size = 0x87, + .y_offset = 0x04, + }, + [SPECIES_PLUSLE] = + { + .size = 0x76, + .y_offset = 0x08, + }, + [SPECIES_MINUN] = + { + .size = 0x76, + .y_offset = 0x08, + }, + [SPECIES_MAWILE] = + { + .size = 0x87, + .y_offset = 0x04, + }, + [SPECIES_MEDITITE] = + { + .size = 0x76, + .y_offset = 0x0b, + }, + [SPECIES_MEDICHAM] = + { + .size = 0x68, + .y_offset = 0x03, + }, + [SPECIES_SWABLU] = + { + .size = 0x86, + .y_offset = 0x09, + }, + [SPECIES_ALTARIA] = + { + .size = 0x87, + .y_offset = 0x06, + }, + [SPECIES_WYNAUT] = + { + .size = 0x77, + .y_offset = 0x07, + }, + [SPECIES_DUSKULL] = + { + .size = 0x66, + .y_offset = 0x0b, + }, + [SPECIES_DUSCLOPS] = + { + .size = 0x86, + .y_offset = 0x08, + }, + [SPECIES_ROSELIA] = + { + .size = 0x86, + .y_offset = 0x08, + }, + [SPECIES_SLAKOTH] = + { + .size = 0x85, + .y_offset = 0x0f, + }, + [SPECIES_VIGOROTH] = + { + .size = 0x86, + .y_offset = 0x0a, + }, + [SPECIES_SLAKING] = + { + .size = 0x86, + .y_offset = 0x08, + }, + [SPECIES_GULPIN] = + { + .size = 0x66, + .y_offset = 0x0b, + }, + [SPECIES_SWALOT] = + { + .size = 0x77, + .y_offset = 0x06, + }, + [SPECIES_TROPIUS] = + { + .size = 0x87, + .y_offset = 0x07, + }, + [SPECIES_WHISMUR] = + { + .size = 0x85, + .y_offset = 0x0d, + }, + [SPECIES_LOUDRED] = + { + .size = 0x86, + .y_offset = 0x09, + }, + [SPECIES_EXPLOUD] = + { + .size = 0x88, + .y_offset = 0x03, + }, + [SPECIES_CLAMPERL] = + { + .size = 0x85, + .y_offset = 0x0d, + }, + [SPECIES_HUNTAIL] = + { + .size = 0x68, + .y_offset = 0x02, + }, + [SPECIES_GOREBYSS] = + { + .size = 0x77, + .y_offset = 0x05, + }, + [SPECIES_ABSOL] = + { + .size = 0x78, + .y_offset = 0x03, + }, + [SPECIES_SHUPPET] = + { + .size = 0x77, + .y_offset = 0x06, + }, + [SPECIES_BANETTE] = + { + .size = 0x65, + .y_offset = 0x0c, + }, + [SPECIES_SEVIPER] = + { + .size = 0x88, + .y_offset = 0x03, + }, + [SPECIES_ZANGOOSE] = + { + .size = 0x88, + .y_offset = 0x01, + }, + [SPECIES_RELICANTH] = + { + .size = 0x86, + .y_offset = 0x0a, + }, + [SPECIES_ARON] = + { + .size = 0x54, + .y_offset = 0x11, + }, + [SPECIES_LAIRON] = + { + .size = 0x84, + .y_offset = 0x11, + }, + [SPECIES_AGGRON] = + { + .size = 0x87, + .y_offset = 0x07, + }, + [SPECIES_CASTFORM] = + { + .size = 0x45, + .y_offset = 0x0d, + }, + [SPECIES_VOLBEAT] = + { + .size = 0x76, + .y_offset = 0x08, + }, + [SPECIES_ILLUMISE] = + { + .size = 0x67, + .y_offset = 0x06, + }, + [SPECIES_LILEEP] = + { + .size = 0x86, + .y_offset = 0x09, + }, + [SPECIES_CRADILY] = + { + .size = 0x77, + .y_offset = 0x04, + }, + [SPECIES_ANORITH] = + { + .size = 0x83, + .y_offset = 0x17, + }, + [SPECIES_ARMALDO] = + { + .size = 0x77, + .y_offset = 0x05, + }, + [SPECIES_RALTS] = + { + .size = 0x45, + .y_offset = 0x0d, + }, + [SPECIES_KIRLIA] = + { + .size = 0x57, + .y_offset = 0x06, + }, + [SPECIES_GARDEVOIR] = + { + .size = 0x77, + .y_offset = 0x04, + }, + [SPECIES_BAGON] = + { + .size = 0x66, + .y_offset = 0x08, + }, + [SPECIES_SHELGON] = + { + .size = 0x85, + .y_offset = 0x0d, + }, + [SPECIES_SALAMENCE] = + { + .size = 0x77, + .y_offset = 0x06, + }, + [SPECIES_BELDUM] = + { + .size = 0x66, + .y_offset = 0x0a, + }, + [SPECIES_METANG] = + { + .size = 0x84, + .y_offset = 0x10, + }, + [SPECIES_METAGROSS] = + { + .size = 0x83, + .y_offset = 0x14, + }, + [SPECIES_REGIROCK] = + { + .size = 0x86, + .y_offset = 0x0a, + }, + [SPECIES_REGICE] = + { + .size = 0x85, + .y_offset = 0x0e, + }, + [SPECIES_REGISTEEL] = + { + .size = 0x85, + .y_offset = 0x0e, + }, + [SPECIES_KYOGRE] = + { + .size = 0x84, + .y_offset = 0x13, + }, + [SPECIES_GROUDON] = + { + .size = 0x87, + .y_offset = 0x07, + }, + [SPECIES_RAYQUAZA] = + { + .size = 0x78, + .y_offset = 0x00, + }, + [SPECIES_LATIAS] = + { + .size = 0x88, + .y_offset = 0x02, + }, + [SPECIES_LATIOS] = + { + .size = 0x88, + .y_offset = 0x03, + }, + [SPECIES_JIRACHI] = + { + .size = 0x87, + .y_offset = 0x05, + }, + [SPECIES_DEOXYS] = + { + .size = 0x87, + .y_offset = 0x07, + }, + [SPECIES_CHIMECHO] = + { + .size = 0x47, + .y_offset = 0x07, + }, + [SPECIES_EGG] = + { + .size = 0x36, + .y_offset = 0x0a, + }, + [SPECIES_UNOWN_B] = + { + .size = 0x56, + .y_offset = 0x09, + }, + [SPECIES_UNOWN_C] = + { + .size = 0x67, + .y_offset = 0x06, + }, + [SPECIES_UNOWN_D] = + { + .size = 0x56, + .y_offset = 0x08, + }, + [SPECIES_UNOWN_E] = + { + .size = 0x56, + .y_offset = 0x0a, + }, + [SPECIES_UNOWN_F] = + { + .size = 0x66, + .y_offset = 0x0a, + }, + [SPECIES_UNOWN_G] = + { + .size = 0x57, + .y_offset = 0x05, + }, + [SPECIES_UNOWN_H] = + { + .size = 0x66, + .y_offset = 0x08, + }, + [SPECIES_UNOWN_I] = + { + .size = 0x37, + .y_offset = 0x07, + }, + [SPECIES_UNOWN_J] = + { + .size = 0x46, + .y_offset = 0x09, + }, + [SPECIES_UNOWN_K] = + { + .size = 0x57, + .y_offset = 0x07, + }, + [SPECIES_UNOWN_L] = + { + .size = 0x46, + .y_offset = 0x0a, + }, + [SPECIES_UNOWN_M] = + { + .size = 0x65, + .y_offset = 0x0d, + }, + [SPECIES_UNOWN_N] = + { + .size = 0x65, + .y_offset = 0x0d, + }, + [SPECIES_UNOWN_O] = + { + .size = 0x66, + .y_offset = 0x08, + }, + [SPECIES_UNOWN_P] = + { + .size = 0x46, + .y_offset = 0x0a, + }, + [SPECIES_UNOWN_Q] = + { + .size = 0x55, + .y_offset = 0x0f, + }, + [SPECIES_UNOWN_R] = + { + .size = 0x45, + .y_offset = 0x0c, + }, + [SPECIES_UNOWN_S] = + { + .size = 0x57, + .y_offset = 0x04, + }, + [SPECIES_UNOWN_T] = + { + .size = 0x45, + .y_offset = 0x0d, + }, + [SPECIES_UNOWN_U] = + { + .size = 0x65, + .y_offset = 0x0d, + }, + [SPECIES_UNOWN_V] = + { + .size = 0x56, + .y_offset = 0x0b, + }, + [SPECIES_UNOWN_W] = + { + .size = 0x55, + .y_offset = 0x0d, + }, + [SPECIES_UNOWN_X] = + { + .size = 0x55, + .y_offset = 0x0f, + }, + [SPECIES_UNOWN_Y] = + { + .size = 0x46, + .y_offset = 0x0a, + }, + [SPECIES_UNOWN_Z] = + { + .size = 0x46, + .y_offset = 0x0a, + }, + [SPECIES_UNOWN_EMARK] = + { + .size = 0x37, + .y_offset = 0x06, + }, + [SPECIES_UNOWN_QMARK] = + { + .size = 0x47, + .y_offset = 0x06, + }, +}; + diff --git a/src/data/pokemon_graphics/back_pic_table.h b/src/data/pokemon_graphics/back_pic_table.h new file mode 100644 index 000000000..60ee8fed1 --- /dev/null +++ b/src/data/pokemon_graphics/back_pic_table.h @@ -0,0 +1,443 @@ +const struct CompressedSpriteSheet gMonBackPicTable[] = +{ + SPECIES_SPRITE(NONE, gMonBackPic_CircledQuestionMark), + SPECIES_SPRITE(BULBASAUR, gMonBackPic_Bulbasaur), + SPECIES_SPRITE(IVYSAUR, gMonBackPic_Ivysaur), + SPECIES_SPRITE(VENUSAUR, gMonBackPic_Venusaur), + SPECIES_SPRITE(CHARMANDER, gMonBackPic_Charmander), + SPECIES_SPRITE(CHARMELEON, gMonBackPic_Charmeleon), + SPECIES_SPRITE(CHARIZARD, gMonBackPic_Charizard), + SPECIES_SPRITE(SQUIRTLE, gMonBackPic_Squirtle), + SPECIES_SPRITE(WARTORTLE, gMonBackPic_Wartortle), + SPECIES_SPRITE(BLASTOISE, gMonBackPic_Blastoise), + SPECIES_SPRITE(CATERPIE, gMonBackPic_Caterpie), + SPECIES_SPRITE(METAPOD, gMonBackPic_Metapod), + SPECIES_SPRITE(BUTTERFREE, gMonBackPic_Butterfree), + SPECIES_SPRITE(WEEDLE, gMonBackPic_Weedle), + SPECIES_SPRITE(KAKUNA, gMonBackPic_Kakuna), + SPECIES_SPRITE(BEEDRILL, gMonBackPic_Beedrill), + SPECIES_SPRITE(PIDGEY, gMonBackPic_Pidgey), + SPECIES_SPRITE(PIDGEOTTO, gMonBackPic_Pidgeotto), + SPECIES_SPRITE(PIDGEOT, gMonBackPic_Pidgeot), + SPECIES_SPRITE(RATTATA, gMonBackPic_Rattata), + SPECIES_SPRITE(RATICATE, gMonBackPic_Raticate), + SPECIES_SPRITE(SPEAROW, gMonBackPic_Spearow), + SPECIES_SPRITE(FEAROW, gMonBackPic_Fearow), + SPECIES_SPRITE(EKANS, gMonBackPic_Ekans), + SPECIES_SPRITE(ARBOK, gMonBackPic_Arbok), + SPECIES_SPRITE(PIKACHU, gMonBackPic_Pikachu), + SPECIES_SPRITE(RAICHU, gMonBackPic_Raichu), + SPECIES_SPRITE(SANDSHREW, gMonBackPic_Sandshrew), + SPECIES_SPRITE(SANDSLASH, gMonBackPic_Sandslash), + SPECIES_SPRITE(NIDORAN_F, gMonBackPic_NidoranF), + SPECIES_SPRITE(NIDORINA, gMonBackPic_Nidorina), + SPECIES_SPRITE(NIDOQUEEN, gMonBackPic_Nidoqueen), + SPECIES_SPRITE(NIDORAN_M, gMonBackPic_NidoranM), + SPECIES_SPRITE(NIDORINO, gMonBackPic_Nidorino), + SPECIES_SPRITE(NIDOKING, gMonBackPic_Nidoking), + SPECIES_SPRITE(CLEFAIRY, gMonBackPic_Clefairy), + SPECIES_SPRITE(CLEFABLE, gMonBackPic_Clefable), + SPECIES_SPRITE(VULPIX, gMonBackPic_Vulpix), + SPECIES_SPRITE(NINETALES, gMonBackPic_Ninetales), + SPECIES_SPRITE(JIGGLYPUFF, gMonBackPic_Jigglypuff), + SPECIES_SPRITE(WIGGLYTUFF, gMonBackPic_Wigglytuff), + SPECIES_SPRITE(ZUBAT, gMonBackPic_Zubat), + SPECIES_SPRITE(GOLBAT, gMonBackPic_Golbat), + SPECIES_SPRITE(ODDISH, gMonBackPic_Oddish), + SPECIES_SPRITE(GLOOM, gMonBackPic_Gloom), + SPECIES_SPRITE(VILEPLUME, gMonBackPic_Vileplume), + SPECIES_SPRITE(PARAS, gMonBackPic_Paras), + SPECIES_SPRITE(PARASECT, gMonBackPic_Parasect), + SPECIES_SPRITE(VENONAT, gMonBackPic_Venonat), + SPECIES_SPRITE(VENOMOTH, gMonBackPic_Venomoth), + SPECIES_SPRITE(DIGLETT, gMonBackPic_Diglett), + SPECIES_SPRITE(DUGTRIO, gMonBackPic_Dugtrio), + SPECIES_SPRITE(MEOWTH, gMonBackPic_Meowth), + SPECIES_SPRITE(PERSIAN, gMonBackPic_Persian), + SPECIES_SPRITE(PSYDUCK, gMonBackPic_Psyduck), + SPECIES_SPRITE(GOLDUCK, gMonBackPic_Golduck), + SPECIES_SPRITE(MANKEY, gMonBackPic_Mankey), + SPECIES_SPRITE(PRIMEAPE, gMonBackPic_Primeape), + SPECIES_SPRITE(GROWLITHE, gMonBackPic_Growlithe), + SPECIES_SPRITE(ARCANINE, gMonBackPic_Arcanine), + SPECIES_SPRITE(POLIWAG, gMonBackPic_Poliwag), + SPECIES_SPRITE(POLIWHIRL, gMonBackPic_Poliwhirl), + SPECIES_SPRITE(POLIWRATH, gMonBackPic_Poliwrath), + SPECIES_SPRITE(ABRA, gMonBackPic_Abra), + SPECIES_SPRITE(KADABRA, gMonBackPic_Kadabra), + SPECIES_SPRITE(ALAKAZAM, gMonBackPic_Alakazam), + SPECIES_SPRITE(MACHOP, gMonBackPic_Machop), + SPECIES_SPRITE(MACHOKE, gMonBackPic_Machoke), + SPECIES_SPRITE(MACHAMP, gMonBackPic_Machamp), + SPECIES_SPRITE(BELLSPROUT, gMonBackPic_Bellsprout), + SPECIES_SPRITE(WEEPINBELL, gMonBackPic_Weepinbell), + SPECIES_SPRITE(VICTREEBEL, gMonBackPic_Victreebel), + SPECIES_SPRITE(TENTACOOL, gMonBackPic_Tentacool), + SPECIES_SPRITE(TENTACRUEL, gMonBackPic_Tentacruel), + SPECIES_SPRITE(GEODUDE, gMonBackPic_Geodude), + SPECIES_SPRITE(GRAVELER, gMonBackPic_Graveler), + SPECIES_SPRITE(GOLEM, gMonBackPic_Golem), + SPECIES_SPRITE(PONYTA, gMonBackPic_Ponyta), + SPECIES_SPRITE(RAPIDASH, gMonBackPic_Rapidash), + SPECIES_SPRITE(SLOWPOKE, gMonBackPic_Slowpoke), + SPECIES_SPRITE(SLOWBRO, gMonBackPic_Slowbro), + SPECIES_SPRITE(MAGNEMITE, gMonBackPic_Magnemite), + SPECIES_SPRITE(MAGNETON, gMonBackPic_Magneton), + SPECIES_SPRITE(FARFETCHD, gMonBackPic_Farfetchd), + SPECIES_SPRITE(DODUO, gMonBackPic_Doduo), + SPECIES_SPRITE(DODRIO, gMonBackPic_Dodrio), + SPECIES_SPRITE(SEEL, gMonBackPic_Seel), + SPECIES_SPRITE(DEWGONG, gMonBackPic_Dewgong), + SPECIES_SPRITE(GRIMER, gMonBackPic_Grimer), + SPECIES_SPRITE(MUK, gMonBackPic_Muk), + SPECIES_SPRITE(SHELLDER, gMonBackPic_Shellder), + SPECIES_SPRITE(CLOYSTER, gMonBackPic_Cloyster), + SPECIES_SPRITE(GASTLY, gMonBackPic_Gastly), + SPECIES_SPRITE(HAUNTER, gMonBackPic_Haunter), + SPECIES_SPRITE(GENGAR, gMonBackPic_Gengar), + SPECIES_SPRITE(ONIX, gMonBackPic_Onix), + SPECIES_SPRITE(DROWZEE, gMonBackPic_Drowzee), + SPECIES_SPRITE(HYPNO, gMonBackPic_Hypno), + SPECIES_SPRITE(KRABBY, gMonBackPic_Krabby), + SPECIES_SPRITE(KINGLER, gMonBackPic_Kingler), + SPECIES_SPRITE(VOLTORB, gMonBackPic_Voltorb), + SPECIES_SPRITE(ELECTRODE, gMonBackPic_Electrode), + SPECIES_SPRITE(EXEGGCUTE, gMonBackPic_Exeggcute), + SPECIES_SPRITE(EXEGGUTOR, gMonBackPic_Exeggutor), + SPECIES_SPRITE(CUBONE, gMonBackPic_Cubone), + SPECIES_SPRITE(MAROWAK, gMonBackPic_Marowak), + SPECIES_SPRITE(HITMONLEE, gMonBackPic_Hitmonlee), + SPECIES_SPRITE(HITMONCHAN, gMonBackPic_Hitmonchan), + SPECIES_SPRITE(LICKITUNG, gMonBackPic_Lickitung), + SPECIES_SPRITE(KOFFING, gMonBackPic_Koffing), + SPECIES_SPRITE(WEEZING, gMonBackPic_Weezing), + SPECIES_SPRITE(RHYHORN, gMonBackPic_Rhyhorn), + SPECIES_SPRITE(RHYDON, gMonBackPic_Rhydon), + SPECIES_SPRITE(CHANSEY, gMonBackPic_Chansey), + SPECIES_SPRITE(TANGELA, gMonBackPic_Tangela), + SPECIES_SPRITE(KANGASKHAN, gMonBackPic_Kangaskhan), + SPECIES_SPRITE(HORSEA, gMonBackPic_Horsea), + SPECIES_SPRITE(SEADRA, gMonBackPic_Seadra), + SPECIES_SPRITE(GOLDEEN, gMonBackPic_Goldeen), + SPECIES_SPRITE(SEAKING, gMonBackPic_Seaking), + SPECIES_SPRITE(STARYU, gMonBackPic_Staryu), + SPECIES_SPRITE(STARMIE, gMonBackPic_Starmie), + SPECIES_SPRITE(MR_MIME, gMonBackPic_Mrmime), + SPECIES_SPRITE(SCYTHER, gMonBackPic_Scyther), + SPECIES_SPRITE(JYNX, gMonBackPic_Jynx), + SPECIES_SPRITE(ELECTABUZZ, gMonBackPic_Electabuzz), + SPECIES_SPRITE(MAGMAR, gMonBackPic_Magmar), + SPECIES_SPRITE(PINSIR, gMonBackPic_Pinsir), + SPECIES_SPRITE(TAUROS, gMonBackPic_Tauros), + SPECIES_SPRITE(MAGIKARP, gMonBackPic_Magikarp), + SPECIES_SPRITE(GYARADOS, gMonBackPic_Gyarados), + SPECIES_SPRITE(LAPRAS, gMonBackPic_Lapras), + SPECIES_SPRITE(DITTO, gMonBackPic_Ditto), + SPECIES_SPRITE(EEVEE, gMonBackPic_Eevee), + SPECIES_SPRITE(VAPOREON, gMonBackPic_Vaporeon), + SPECIES_SPRITE(JOLTEON, gMonBackPic_Jolteon), + SPECIES_SPRITE(FLAREON, gMonBackPic_Flareon), + SPECIES_SPRITE(PORYGON, gMonBackPic_Porygon), + SPECIES_SPRITE(OMANYTE, gMonBackPic_Omanyte), + SPECIES_SPRITE(OMASTAR, gMonBackPic_Omastar), + SPECIES_SPRITE(KABUTO, gMonBackPic_Kabuto), + SPECIES_SPRITE(KABUTOPS, gMonBackPic_Kabutops), + SPECIES_SPRITE(AERODACTYL, gMonBackPic_Aerodactyl), + SPECIES_SPRITE(SNORLAX, gMonBackPic_Snorlax), + SPECIES_SPRITE(ARTICUNO, gMonBackPic_Articuno), + SPECIES_SPRITE(ZAPDOS, gMonBackPic_Zapdos), + SPECIES_SPRITE(MOLTRES, gMonBackPic_Moltres), + SPECIES_SPRITE(DRATINI, gMonBackPic_Dratini), + SPECIES_SPRITE(DRAGONAIR, gMonBackPic_Dragonair), + SPECIES_SPRITE(DRAGONITE, gMonBackPic_Dragonite), + SPECIES_SPRITE(MEWTWO, gMonBackPic_Mewtwo), + SPECIES_SPRITE(MEW, gMonBackPic_Mew), + SPECIES_SPRITE(CHIKORITA, gMonBackPic_Chikorita), + SPECIES_SPRITE(BAYLEEF, gMonBackPic_Bayleef), + SPECIES_SPRITE(MEGANIUM, gMonBackPic_Meganium), + SPECIES_SPRITE(CYNDAQUIL, gMonBackPic_Cyndaquil), + SPECIES_SPRITE(QUILAVA, gMonBackPic_Quilava), + SPECIES_SPRITE(TYPHLOSION, gMonBackPic_Typhlosion), + SPECIES_SPRITE(TOTODILE, gMonBackPic_Totodile), + SPECIES_SPRITE(CROCONAW, gMonBackPic_Croconaw), + SPECIES_SPRITE(FERALIGATR, gMonBackPic_Feraligatr), + SPECIES_SPRITE(SENTRET, gMonBackPic_Sentret), + SPECIES_SPRITE(FURRET, gMonBackPic_Furret), + SPECIES_SPRITE(HOOTHOOT, gMonBackPic_Hoothoot), + SPECIES_SPRITE(NOCTOWL, gMonBackPic_Noctowl), + SPECIES_SPRITE(LEDYBA, gMonBackPic_Ledyba), + SPECIES_SPRITE(LEDIAN, gMonBackPic_Ledian), + SPECIES_SPRITE(SPINARAK, gMonBackPic_Spinarak), + SPECIES_SPRITE(ARIADOS, gMonBackPic_Ariados), + SPECIES_SPRITE(CROBAT, gMonBackPic_Crobat), + SPECIES_SPRITE(CHINCHOU, gMonBackPic_Chinchou), + SPECIES_SPRITE(LANTURN, gMonBackPic_Lanturn), + SPECIES_SPRITE(PICHU, gMonBackPic_Pichu), + SPECIES_SPRITE(CLEFFA, gMonBackPic_Cleffa), + SPECIES_SPRITE(IGGLYBUFF, gMonBackPic_Igglybuff), + SPECIES_SPRITE(TOGEPI, gMonBackPic_Togepi), + SPECIES_SPRITE(TOGETIC, gMonBackPic_Togetic), + SPECIES_SPRITE(NATU, gMonBackPic_Natu), + SPECIES_SPRITE(XATU, gMonBackPic_Xatu), + SPECIES_SPRITE(MAREEP, gMonBackPic_Mareep), + SPECIES_SPRITE(FLAAFFY, gMonBackPic_Flaaffy), + SPECIES_SPRITE(AMPHAROS, gMonBackPic_Ampharos), + SPECIES_SPRITE(BELLOSSOM, gMonBackPic_Bellossom), + SPECIES_SPRITE(MARILL, gMonBackPic_Marill), + SPECIES_SPRITE(AZUMARILL, gMonBackPic_Azumarill), + SPECIES_SPRITE(SUDOWOODO, gMonBackPic_Sudowoodo), + SPECIES_SPRITE(POLITOED, gMonBackPic_Politoed), + SPECIES_SPRITE(HOPPIP, gMonBackPic_Hoppip), + SPECIES_SPRITE(SKIPLOOM, gMonBackPic_Skiploom), + SPECIES_SPRITE(JUMPLUFF, gMonBackPic_Jumpluff), + SPECIES_SPRITE(AIPOM, gMonBackPic_Aipom), + SPECIES_SPRITE(SUNKERN, gMonBackPic_Sunkern), + SPECIES_SPRITE(SUNFLORA, gMonBackPic_Sunflora), + SPECIES_SPRITE(YANMA, gMonBackPic_Yanma), + SPECIES_SPRITE(WOOPER, gMonBackPic_Wooper), + SPECIES_SPRITE(QUAGSIRE, gMonBackPic_Quagsire), + SPECIES_SPRITE(ESPEON, gMonBackPic_Espeon), + SPECIES_SPRITE(UMBREON, gMonBackPic_Umbreon), + SPECIES_SPRITE(MURKROW, gMonBackPic_Murkrow), + SPECIES_SPRITE(SLOWKING, gMonBackPic_Slowking), + SPECIES_SPRITE(MISDREAVUS, gMonBackPic_Misdreavus), + SPECIES_SPRITE(UNOWN, gMonBackPic_UnownA), + SPECIES_SPRITE(WOBBUFFET, gMonBackPic_Wobbuffet), + SPECIES_SPRITE(GIRAFARIG, gMonBackPic_Girafarig), + SPECIES_SPRITE(PINECO, gMonBackPic_Pineco), + SPECIES_SPRITE(FORRETRESS, gMonBackPic_Forretress), + SPECIES_SPRITE(DUNSPARCE, gMonBackPic_Dunsparce), + SPECIES_SPRITE(GLIGAR, gMonBackPic_Gligar), + SPECIES_SPRITE(STEELIX, gMonBackPic_Steelix), + SPECIES_SPRITE(SNUBBULL, gMonBackPic_Snubbull), + SPECIES_SPRITE(GRANBULL, gMonBackPic_Granbull), + SPECIES_SPRITE(QWILFISH, gMonBackPic_Qwilfish), + SPECIES_SPRITE(SCIZOR, gMonBackPic_Scizor), + SPECIES_SPRITE(SHUCKLE, gMonBackPic_Shuckle), + SPECIES_SPRITE(HERACROSS, gMonBackPic_Heracross), + SPECIES_SPRITE(SNEASEL, gMonBackPic_Sneasel), + SPECIES_SPRITE(TEDDIURSA, gMonBackPic_Teddiursa), + SPECIES_SPRITE(URSARING, gMonBackPic_Ursaring), + SPECIES_SPRITE(SLUGMA, gMonBackPic_Slugma), + SPECIES_SPRITE(MAGCARGO, gMonBackPic_Magcargo), + SPECIES_SPRITE(SWINUB, gMonBackPic_Swinub), + SPECIES_SPRITE(PILOSWINE, gMonBackPic_Piloswine), + SPECIES_SPRITE(CORSOLA, gMonBackPic_Corsola), + SPECIES_SPRITE(REMORAID, gMonBackPic_Remoraid), + SPECIES_SPRITE(OCTILLERY, gMonBackPic_Octillery), + SPECIES_SPRITE(DELIBIRD, gMonBackPic_Delibird), + SPECIES_SPRITE(MANTINE, gMonBackPic_Mantine), + SPECIES_SPRITE(SKARMORY, gMonBackPic_Skarmory), + SPECIES_SPRITE(HOUNDOUR, gMonBackPic_Houndour), + SPECIES_SPRITE(HOUNDOOM, gMonBackPic_Houndoom), + SPECIES_SPRITE(KINGDRA, gMonBackPic_Kingdra), + SPECIES_SPRITE(PHANPY, gMonBackPic_Phanpy), + SPECIES_SPRITE(DONPHAN, gMonBackPic_Donphan), + SPECIES_SPRITE(PORYGON2, gMonBackPic_Porygon2), + SPECIES_SPRITE(STANTLER, gMonBackPic_Stantler), + SPECIES_SPRITE(SMEARGLE, gMonBackPic_Smeargle), + SPECIES_SPRITE(TYROGUE, gMonBackPic_Tyrogue), + SPECIES_SPRITE(HITMONTOP, gMonBackPic_Hitmontop), + SPECIES_SPRITE(SMOOCHUM, gMonBackPic_Smoochum), + SPECIES_SPRITE(ELEKID, gMonBackPic_Elekid), + SPECIES_SPRITE(MAGBY, gMonBackPic_Magby), + SPECIES_SPRITE(MILTANK, gMonBackPic_Miltank), + SPECIES_SPRITE(BLISSEY, gMonBackPic_Blissey), + SPECIES_SPRITE(RAIKOU, gMonBackPic_Raikou), + SPECIES_SPRITE(ENTEI, gMonBackPic_Entei), + SPECIES_SPRITE(SUICUNE, gMonBackPic_Suicune), + SPECIES_SPRITE(LARVITAR, gMonBackPic_Larvitar), + SPECIES_SPRITE(PUPITAR, gMonBackPic_Pupitar), + SPECIES_SPRITE(TYRANITAR, gMonBackPic_Tyranitar), + SPECIES_SPRITE(LUGIA, gMonBackPic_Lugia), + SPECIES_SPRITE(HO_OH, gMonBackPic_HoOh), + SPECIES_SPRITE(CELEBI, gMonBackPic_Celebi), + SPECIES_SPRITE(OLD_UNOWN_B, gMonBackPic_DoubleQuestionMark), + SPECIES_SPRITE(OLD_UNOWN_C, gMonBackPic_DoubleQuestionMark), + SPECIES_SPRITE(OLD_UNOWN_D, gMonBackPic_DoubleQuestionMark), + SPECIES_SPRITE(OLD_UNOWN_E, gMonBackPic_DoubleQuestionMark), + SPECIES_SPRITE(OLD_UNOWN_F, gMonBackPic_DoubleQuestionMark), + SPECIES_SPRITE(OLD_UNOWN_G, gMonBackPic_DoubleQuestionMark), + SPECIES_SPRITE(OLD_UNOWN_H, gMonBackPic_DoubleQuestionMark), + SPECIES_SPRITE(OLD_UNOWN_I, gMonBackPic_DoubleQuestionMark), + SPECIES_SPRITE(OLD_UNOWN_J, gMonBackPic_DoubleQuestionMark), + SPECIES_SPRITE(OLD_UNOWN_K, gMonBackPic_DoubleQuestionMark), + SPECIES_SPRITE(OLD_UNOWN_L, gMonBackPic_DoubleQuestionMark), + SPECIES_SPRITE(OLD_UNOWN_M, gMonBackPic_DoubleQuestionMark), + SPECIES_SPRITE(OLD_UNOWN_N, gMonBackPic_DoubleQuestionMark), + SPECIES_SPRITE(OLD_UNOWN_O, gMonBackPic_DoubleQuestionMark), + SPECIES_SPRITE(OLD_UNOWN_P, gMonBackPic_DoubleQuestionMark), + SPECIES_SPRITE(OLD_UNOWN_Q, gMonBackPic_DoubleQuestionMark), + SPECIES_SPRITE(OLD_UNOWN_R, gMonBackPic_DoubleQuestionMark), + SPECIES_SPRITE(OLD_UNOWN_S, gMonBackPic_DoubleQuestionMark), + SPECIES_SPRITE(OLD_UNOWN_T, gMonBackPic_DoubleQuestionMark), + SPECIES_SPRITE(OLD_UNOWN_U, gMonBackPic_DoubleQuestionMark), + SPECIES_SPRITE(OLD_UNOWN_V, gMonBackPic_DoubleQuestionMark), + SPECIES_SPRITE(OLD_UNOWN_W, gMonBackPic_DoubleQuestionMark), + SPECIES_SPRITE(OLD_UNOWN_X, gMonBackPic_DoubleQuestionMark), + SPECIES_SPRITE(OLD_UNOWN_Y, gMonBackPic_DoubleQuestionMark), + SPECIES_SPRITE(OLD_UNOWN_Z, gMonBackPic_DoubleQuestionMark), + SPECIES_SPRITE(TREECKO, gMonBackPic_Treecko), + SPECIES_SPRITE(GROVYLE, gMonBackPic_Grovyle), + SPECIES_SPRITE(SCEPTILE, gMonBackPic_Sceptile), + SPECIES_SPRITE(TORCHIC, gMonBackPic_Torchic), + SPECIES_SPRITE(COMBUSKEN, gMonBackPic_Combusken), + SPECIES_SPRITE(BLAZIKEN, gMonBackPic_Blaziken), + SPECIES_SPRITE(MUDKIP, gMonBackPic_Mudkip), + SPECIES_SPRITE(MARSHTOMP, gMonBackPic_Marshtomp), + SPECIES_SPRITE(SWAMPERT, gMonBackPic_Swampert), + SPECIES_SPRITE(POOCHYENA, gMonBackPic_Poochyena), + SPECIES_SPRITE(MIGHTYENA, gMonBackPic_Mightyena), + SPECIES_SPRITE(ZIGZAGOON, gMonBackPic_Zigzagoon), + SPECIES_SPRITE(LINOONE, gMonBackPic_Linoone), + SPECIES_SPRITE(WURMPLE, gMonBackPic_Wurmple), + SPECIES_SPRITE(SILCOON, gMonBackPic_Silcoon), + SPECIES_SPRITE(BEAUTIFLY, gMonBackPic_Beautifly), + SPECIES_SPRITE(CASCOON, gMonBackPic_Cascoon), + SPECIES_SPRITE(DUSTOX, gMonBackPic_Dustox), + SPECIES_SPRITE(LOTAD, gMonBackPic_Lotad), + SPECIES_SPRITE(LOMBRE, gMonBackPic_Lombre), + SPECIES_SPRITE(LUDICOLO, gMonBackPic_Ludicolo), + SPECIES_SPRITE(SEEDOT, gMonBackPic_Seedot), + SPECIES_SPRITE(NUZLEAF, gMonBackPic_Nuzleaf), + SPECIES_SPRITE(SHIFTRY, gMonBackPic_Shiftry), + SPECIES_SPRITE(NINCADA, gMonBackPic_Nincada), + SPECIES_SPRITE(NINJASK, gMonBackPic_Ninjask), + SPECIES_SPRITE(SHEDINJA, gMonBackPic_Shedinja), + SPECIES_SPRITE(TAILLOW, gMonBackPic_Taillow), + SPECIES_SPRITE(SWELLOW, gMonBackPic_Swellow), + SPECIES_SPRITE(SHROOMISH, gMonBackPic_Shroomish), + SPECIES_SPRITE(BRELOOM, gMonBackPic_Breloom), + SPECIES_SPRITE(SPINDA, gMonBackPic_Spinda), + SPECIES_SPRITE(WINGULL, gMonBackPic_Wingull), + SPECIES_SPRITE(PELIPPER, gMonBackPic_Pelipper), + SPECIES_SPRITE(SURSKIT, gMonBackPic_Surskit), + SPECIES_SPRITE(MASQUERAIN, gMonBackPic_Masquerain), + SPECIES_SPRITE(WAILMER, gMonBackPic_Wailmer), + SPECIES_SPRITE(WAILORD, gMonBackPic_Wailord), + SPECIES_SPRITE(SKITTY, gMonBackPic_Skitty), + SPECIES_SPRITE(DELCATTY, gMonBackPic_Delcatty), + SPECIES_SPRITE(KECLEON, gMonBackPic_Kecleon), + SPECIES_SPRITE(BALTOY, gMonBackPic_Baltoy), + SPECIES_SPRITE(CLAYDOL, gMonBackPic_Claydol), + SPECIES_SPRITE(NOSEPASS, gMonBackPic_Nosepass), + SPECIES_SPRITE(TORKOAL, gMonBackPic_Torkoal), + SPECIES_SPRITE(SABLEYE, gMonBackPic_Sableye), + SPECIES_SPRITE(BARBOACH, gMonBackPic_Barboach), + SPECIES_SPRITE(WHISCASH, gMonBackPic_Whiscash), + SPECIES_SPRITE(LUVDISC, gMonBackPic_Luvdisc), + SPECIES_SPRITE(CORPHISH, gMonBackPic_Corphish), + SPECIES_SPRITE(CRAWDAUNT, gMonBackPic_Crawdaunt), + SPECIES_SPRITE(FEEBAS, gMonBackPic_Feebas), + SPECIES_SPRITE(MILOTIC, gMonBackPic_Milotic), + SPECIES_SPRITE(CARVANHA, gMonBackPic_Carvanha), + SPECIES_SPRITE(SHARPEDO, gMonBackPic_Sharpedo), + SPECIES_SPRITE(TRAPINCH, gMonBackPic_Trapinch), + SPECIES_SPRITE(VIBRAVA, gMonBackPic_Vibrava), + SPECIES_SPRITE(FLYGON, gMonBackPic_Flygon), + SPECIES_SPRITE(MAKUHITA, gMonBackPic_Makuhita), + SPECIES_SPRITE(HARIYAMA, gMonBackPic_Hariyama), + SPECIES_SPRITE(ELECTRIKE, gMonBackPic_Electrike), + SPECIES_SPRITE(MANECTRIC, gMonBackPic_Manectric), + SPECIES_SPRITE(NUMEL, gMonBackPic_Numel), + SPECIES_SPRITE(CAMERUPT, gMonBackPic_Camerupt), + SPECIES_SPRITE(SPHEAL, gMonBackPic_Spheal), + SPECIES_SPRITE(SEALEO, gMonBackPic_Sealeo), + SPECIES_SPRITE(WALREIN, gMonBackPic_Walrein), + SPECIES_SPRITE(CACNEA, gMonBackPic_Cacnea), + SPECIES_SPRITE(CACTURNE, gMonBackPic_Cacturne), + SPECIES_SPRITE(SNORUNT, gMonBackPic_Snorunt), + SPECIES_SPRITE(GLALIE, gMonBackPic_Glalie), + SPECIES_SPRITE(LUNATONE, gMonBackPic_Lunatone), + SPECIES_SPRITE(SOLROCK, gMonBackPic_Solrock), + SPECIES_SPRITE(AZURILL, gMonBackPic_Azurill), + SPECIES_SPRITE(SPOINK, gMonBackPic_Spoink), + SPECIES_SPRITE(GRUMPIG, gMonBackPic_Grumpig), + SPECIES_SPRITE(PLUSLE, gMonBackPic_Plusle), + SPECIES_SPRITE(MINUN, gMonBackPic_Minun), + SPECIES_SPRITE(MAWILE, gMonBackPic_Mawile), + SPECIES_SPRITE(MEDITITE, gMonBackPic_Meditite), + SPECIES_SPRITE(MEDICHAM, gMonBackPic_Medicham), + SPECIES_SPRITE(SWABLU, gMonBackPic_Swablu), + SPECIES_SPRITE(ALTARIA, gMonBackPic_Altaria), + SPECIES_SPRITE(WYNAUT, gMonBackPic_Wynaut), + SPECIES_SPRITE(DUSKULL, gMonBackPic_Duskull), + SPECIES_SPRITE(DUSCLOPS, gMonBackPic_Dusclops), + SPECIES_SPRITE(ROSELIA, gMonBackPic_Roselia), + SPECIES_SPRITE(SLAKOTH, gMonBackPic_Slakoth), + SPECIES_SPRITE(VIGOROTH, gMonBackPic_Vigoroth), + SPECIES_SPRITE(SLAKING, gMonBackPic_Slaking), + SPECIES_SPRITE(GULPIN, gMonBackPic_Gulpin), + SPECIES_SPRITE(SWALOT, gMonBackPic_Swalot), + SPECIES_SPRITE(TROPIUS, gMonBackPic_Tropius), + SPECIES_SPRITE(WHISMUR, gMonBackPic_Whismur), + SPECIES_SPRITE(LOUDRED, gMonBackPic_Loudred), + SPECIES_SPRITE(EXPLOUD, gMonBackPic_Exploud), + SPECIES_SPRITE(CLAMPERL, gMonBackPic_Clamperl), + SPECIES_SPRITE(HUNTAIL, gMonBackPic_Huntail), + SPECIES_SPRITE(GOREBYSS, gMonBackPic_Gorebyss), + SPECIES_SPRITE(ABSOL, gMonBackPic_Absol), + SPECIES_SPRITE(SHUPPET, gMonBackPic_Shuppet), + SPECIES_SPRITE(BANETTE, gMonBackPic_Banette), + SPECIES_SPRITE(SEVIPER, gMonBackPic_Seviper), + SPECIES_SPRITE(ZANGOOSE, gMonBackPic_Zangoose), + SPECIES_SPRITE(RELICANTH, gMonBackPic_Relicanth), + SPECIES_SPRITE(ARON, gMonBackPic_Aron), + SPECIES_SPRITE(LAIRON, gMonBackPic_Lairon), + SPECIES_SPRITE(AGGRON, gMonBackPic_Aggron), + SPECIES_SPRITE(CASTFORM, gMonBackPic_Castform), + SPECIES_SPRITE(VOLBEAT, gMonBackPic_Volbeat), + SPECIES_SPRITE(ILLUMISE, gMonBackPic_Illumise), + SPECIES_SPRITE(LILEEP, gMonBackPic_Lileep), + SPECIES_SPRITE(CRADILY, gMonBackPic_Cradily), + SPECIES_SPRITE(ANORITH, gMonBackPic_Anorith), + SPECIES_SPRITE(ARMALDO, gMonBackPic_Armaldo), + SPECIES_SPRITE(RALTS, gMonBackPic_Ralts), + SPECIES_SPRITE(KIRLIA, gMonBackPic_Kirlia), + SPECIES_SPRITE(GARDEVOIR, gMonBackPic_Gardevoir), + SPECIES_SPRITE(BAGON, gMonBackPic_Bagon), + SPECIES_SPRITE(SHELGON, gMonBackPic_Shelgon), + SPECIES_SPRITE(SALAMENCE, gMonBackPic_Salamence), + SPECIES_SPRITE(BELDUM, gMonBackPic_Beldum), + SPECIES_SPRITE(METANG, gMonBackPic_Metang), + SPECIES_SPRITE(METAGROSS, gMonBackPic_Metagross), + SPECIES_SPRITE(REGIROCK, gMonBackPic_Regirock), + SPECIES_SPRITE(REGICE, gMonBackPic_Regice), + SPECIES_SPRITE(REGISTEEL, gMonBackPic_Registeel), + SPECIES_SPRITE(KYOGRE, gMonBackPic_Kyogre), + SPECIES_SPRITE(GROUDON, gMonBackPic_Groudon), + SPECIES_SPRITE(RAYQUAZA, gMonBackPic_Rayquaza), + SPECIES_SPRITE(LATIAS, gMonBackPic_Latias), + SPECIES_SPRITE(LATIOS, gMonBackPic_Latios), + SPECIES_SPRITE(JIRACHI, gMonBackPic_Jirachi), + SPECIES_SPRITE(DEOXYS, gMonBackPic_Deoxys), + SPECIES_SPRITE(CHIMECHO, gMonBackPic_Chimecho), + SPECIES_SPRITE(EGG, gMonFrontPic_Egg), + SPECIES_SPRITE(UNOWN_B, gMonBackPic_UnownB), + SPECIES_SPRITE(UNOWN_C, gMonBackPic_UnownC), + SPECIES_SPRITE(UNOWN_D, gMonBackPic_UnownD), + SPECIES_SPRITE(UNOWN_E, gMonBackPic_UnownE), + SPECIES_SPRITE(UNOWN_F, gMonBackPic_UnownF), + SPECIES_SPRITE(UNOWN_G, gMonBackPic_UnownG), + SPECIES_SPRITE(UNOWN_H, gMonBackPic_UnownH), + SPECIES_SPRITE(UNOWN_I, gMonBackPic_UnownI), + SPECIES_SPRITE(UNOWN_J, gMonBackPic_UnownJ), + SPECIES_SPRITE(UNOWN_K, gMonBackPic_UnownK), + SPECIES_SPRITE(UNOWN_L, gMonBackPic_UnownL), + SPECIES_SPRITE(UNOWN_M, gMonBackPic_UnownM), + SPECIES_SPRITE(UNOWN_N, gMonBackPic_UnownN), + SPECIES_SPRITE(UNOWN_O, gMonBackPic_UnownO), + SPECIES_SPRITE(UNOWN_P, gMonBackPic_UnownP), + SPECIES_SPRITE(UNOWN_Q, gMonBackPic_UnownQ), + SPECIES_SPRITE(UNOWN_R, gMonBackPic_UnownR), + SPECIES_SPRITE(UNOWN_S, gMonBackPic_UnownS), + SPECIES_SPRITE(UNOWN_T, gMonBackPic_UnownT), + SPECIES_SPRITE(UNOWN_U, gMonBackPic_UnownU), + SPECIES_SPRITE(UNOWN_V, gMonBackPic_UnownV), + SPECIES_SPRITE(UNOWN_W, gMonBackPic_UnownW), + SPECIES_SPRITE(UNOWN_X, gMonBackPic_UnownX), + SPECIES_SPRITE(UNOWN_Y, gMonBackPic_UnownY), + SPECIES_SPRITE(UNOWN_Z, gMonBackPic_UnownZ), + SPECIES_SPRITE(UNOWN_EMARK, gMonBackPic_UnownExclamationMark), + SPECIES_SPRITE(UNOWN_QMARK, gMonBackPic_UnownQuestionMark), +}; diff --git a/src/data/pokemon_graphics/enemy_mon_elevation.h b/src/data/pokemon_graphics/enemy_mon_elevation.h new file mode 100644 index 000000000..dccd063da --- /dev/null +++ b/src/data/pokemon_graphics/enemy_mon_elevation.h @@ -0,0 +1,65 @@ +// This determines how much higher above the usual position the enemy Pokémon +// is during battle. Species that float or fly have nonzero values. +const u8 gEnemyMonElevation[NUM_SPECIES] = +{ + [SPECIES_BUTTERFREE] = 8, + [SPECIES_BEEDRILL] = 8, + [SPECIES_PIDGEOT] = 4, + [SPECIES_FEAROW] = 6, + [SPECIES_ZUBAT] = 8, + [SPECIES_GOLBAT] = 8, + [SPECIES_VENOMOTH] = 8, + [SPECIES_GEODUDE] = 16, + [SPECIES_MAGNEMITE] = 16, + [SPECIES_MAGNETON] = 8, + [SPECIES_GASTLY] = 4, + [SPECIES_HAUNTER] = 4, + [SPECIES_VOLTORB] = 10, + [SPECIES_ELECTRODE] = 12, + [SPECIES_KOFFING] = 8, + [SPECIES_WEEZING] = 6, + [SPECIES_AERODACTYL] = 7, + [SPECIES_ARTICUNO] = 6, + [SPECIES_ZAPDOS] = 8, + [SPECIES_MOLTRES] = 5, + [SPECIES_DRAGONITE] = 6, + [SPECIES_MEW] = 8, + [SPECIES_LEDIAN] = 8, + [SPECIES_CROBAT] = 6, + [SPECIES_HOPPIP] = 11, + [SPECIES_SKIPLOOM] = 12, + [SPECIES_JUMPLUFF] = 9, + [SPECIES_YANMA] = 8, + [SPECIES_MISDREAVUS] = 8, + [SPECIES_UNOWN] = 8, + [SPECIES_GLIGAR] = 6, + [SPECIES_LUGIA] = 6, + [SPECIES_HO_OH] = 6, + [SPECIES_CELEBI] = 15, + [SPECIES_BEAUTIFLY] = 8, + [SPECIES_DUSTOX] = 10, + [SPECIES_NINJASK] = 10, + [SPECIES_SHEDINJA] = 8, + [SPECIES_WINGULL] = 16, + [SPECIES_PELIPPER] = 8, + [SPECIES_MASQUERAIN] = 10, + [SPECIES_BALTOY] = 4, + [SPECIES_CLAYDOL] = 10, + [SPECIES_FLYGON] = 7, + [SPECIES_GLALIE] = 12, + [SPECIES_LUNATONE] = 13, + [SPECIES_SOLROCK] = 4, + [SPECIES_SWABLU] = 12, + [SPECIES_ALTARIA] = 8, + [SPECIES_DUSKULL] = 9, + [SPECIES_SHUPPET] = 12, + [SPECIES_BANETTE] = 8, + [SPECIES_CASTFORM] = 16, + [SPECIES_BELDUM] = 8, + [SPECIES_RAYQUAZA] = 6, + [SPECIES_LATIAS] = 6, + [SPECIES_LATIOS] = 6, + [SPECIES_JIRACHI] = 12, + [SPECIES_DEOXYS] = 8, + [SPECIES_CHIMECHO] = 12, +}; diff --git a/src/data/pokemon_graphics/front_pic_coordinates.h b/src/data/pokemon_graphics/front_pic_coordinates.h new file mode 100644 index 000000000..1bb67f1f5 --- /dev/null +++ b/src/data/pokemon_graphics/front_pic_coordinates.h @@ -0,0 +1,2203 @@ +const struct MonCoords gMonFrontPicCoords[] = +{ + [SPECIES_NONE] = + { + .size = 0x88, + .y_offset = 0x00, + }, + [SPECIES_BULBASAUR] = + { + .size = 0x55, + .y_offset = 0x10, + }, + [SPECIES_IVYSAUR] = + { + .size = 0x66, + .y_offset = 0x0a, + }, + [SPECIES_VENUSAUR] = + { + .size = 0x87, + .y_offset = 0x04, + }, + [SPECIES_CHARMANDER] = + { + .size = 0x55, + .y_offset = 0x0d, + }, + [SPECIES_CHARMELEON] = + { + .size = 0x76, + .y_offset = 0x09, + }, + [SPECIES_CHARIZARD] = + { + .size = 0x88, + .y_offset = 0x01, + }, + [SPECIES_SQUIRTLE] = + { + .size = 0x65, + .y_offset = 0x0c, + }, + [SPECIES_WARTORTLE] = + { + .size = 0x76, + .y_offset = 0x09, + }, + [SPECIES_BLASTOISE] = + { + .size = 0x87, + .y_offset = 0x05, + }, + [SPECIES_CATERPIE] = + { + .size = 0x54, + .y_offset = 0x10, + }, + [SPECIES_METAPOD] = + { + .size = 0x54, + .y_offset = 0x14, + }, + [SPECIES_BUTTERFREE] = + { + .size = 0x76, + .y_offset = 0x09, + }, + [SPECIES_WEEDLE] = + { + .size = 0x54, + .y_offset = 0x11, + }, + [SPECIES_KAKUNA] = + { + .size = 0x45, + .y_offset = 0x0e, + }, + [SPECIES_BEEDRILL] = + { + .size = 0x86, + .y_offset = 0x09, + }, + [SPECIES_PIDGEY] = + { + .size = 0x55, + .y_offset = 0x0d, + }, + [SPECIES_PIDGEOTTO] = + { + .size = 0x67, + .y_offset = 0x07, + }, + [SPECIES_PIDGEOT] = + { + .size = 0x88, + .y_offset = 0x01, + }, + [SPECIES_RATTATA] = + { + .size = 0x65, + .y_offset = 0x0e, + }, + [SPECIES_RATICATE] = + { + .size = 0x76, + .y_offset = 0x0b, + }, + [SPECIES_SPEAROW] = + { + .size = 0x55, + .y_offset = 0x0c, + }, + [SPECIES_FEAROW] = + { + .size = 0x88, + .y_offset = 0x00, + }, + [SPECIES_EKANS] = + { + .size = 0x65, + .y_offset = 0x0f, + }, + [SPECIES_ARBOK] = + { + .size = 0x78, + .y_offset = 0x03, + }, + [SPECIES_PIKACHU] = + { + .size = 0x67, + .y_offset = 0x09, + }, + [SPECIES_RAICHU] = + { + .size = 0x88, + .y_offset = 0x00, + }, + [SPECIES_SANDSHREW] = + { + .size = 0x56, + .y_offset = 0x0b, + }, + [SPECIES_SANDSLASH] = + { + .size = 0x77, + .y_offset = 0x06, + }, + [SPECIES_NIDORAN_F] = + { + .size = 0x54, + .y_offset = 0x10, + }, + [SPECIES_NIDORINA] = + { + .size = 0x66, + .y_offset = 0x0b, + }, + [SPECIES_NIDOQUEEN] = + { + .size = 0x78, + .y_offset = 0x02, + }, + [SPECIES_NIDORAN_M] = + { + .size = 0x55, + .y_offset = 0x0c, + }, + [SPECIES_NIDORINO] = + { + .size = 0x66, + .y_offset = 0x08, + }, + [SPECIES_NIDOKING] = + { + .size = 0x88, + .y_offset = 0x02, + }, + [SPECIES_CLEFAIRY] = + { + .size = 0x55, + .y_offset = 0x10, + }, + [SPECIES_CLEFABLE] = + { + .size = 0x67, + .y_offset = 0x07, + }, + [SPECIES_VULPIX] = + { + .size = 0x65, + .y_offset = 0x0c, + }, + [SPECIES_NINETALES] = + { + .size = 0x88, + .y_offset = 0x03, + }, + [SPECIES_JIGGLYPUFF] = + { + .size = 0x55, + .y_offset = 0x10, + }, + [SPECIES_WIGGLYTUFF] = + { + .size = 0x67, + .y_offset = 0x08, + }, + [SPECIES_ZUBAT] = + { + .size = 0x66, + .y_offset = 0x0d, + }, + [SPECIES_GOLBAT] = + { + .size = 0x88, + .y_offset = 0x01, + }, + [SPECIES_ODDISH] = + { + .size = 0x45, + .y_offset = 0x0c, + }, + [SPECIES_GLOOM] = + { + .size = 0x66, + .y_offset = 0x08, + }, + [SPECIES_VILEPLUME] = + { + .size = 0x76, + .y_offset = 0x0a, + }, + [SPECIES_PARAS] = + { + .size = 0x64, + .y_offset = 0x12, + }, + [SPECIES_PARASECT] = + { + .size = 0x86, + .y_offset = 0x08, + }, + [SPECIES_VENONAT] = + { + .size = 0x57, + .y_offset = 0x0b, + }, + [SPECIES_VENOMOTH] = + { + .size = 0x87, + .y_offset = 0x08, + }, + [SPECIES_DIGLETT] = + { + .size = 0x54, + .y_offset = 0x11, + }, + [SPECIES_DUGTRIO] = + { + .size = 0x75, + .y_offset = 0x0c, + }, + [SPECIES_MEOWTH] = + { + .size = 0x55, + .y_offset = 0x0c, + }, + [SPECIES_PERSIAN] = + { + .size = 0x76, + .y_offset = 0x0a, + }, + [SPECIES_PSYDUCK] = + { + .size = 0x56, + .y_offset = 0x09, + }, + [SPECIES_GOLDUCK] = + { + .size = 0x77, + .y_offset = 0x06, + }, + [SPECIES_MANKEY] = + { + .size = 0x66, + .y_offset = 0x0e, + }, + [SPECIES_PRIMEAPE] = + { + .size = 0x77, + .y_offset = 0x06, + }, + [SPECIES_GROWLITHE] = + { + .size = 0x65, + .y_offset = 0x0c, + }, + [SPECIES_ARCANINE] = + { + .size = 0x88, + .y_offset = 0x02, + }, + [SPECIES_POLIWAG] = + { + .size = 0x74, + .y_offset = 0x10, + }, + [SPECIES_POLIWHIRL] = + { + .size = 0x76, + .y_offset = 0x0b, + }, + [SPECIES_POLIWRATH] = + { + .size = 0x77, + .y_offset = 0x07, + }, + [SPECIES_ABRA] = + { + .size = 0x66, + .y_offset = 0x0b, + }, + [SPECIES_KADABRA] = + { + .size = 0x87, + .y_offset = 0x04, + }, + [SPECIES_ALAKAZAM] = + { + .size = 0x88, + .y_offset = 0x01, + }, + [SPECIES_MACHOP] = + { + .size = 0x46, + .y_offset = 0x0b, + }, + [SPECIES_MACHOKE] = + { + .size = 0x77, + .y_offset = 0x06, + }, + [SPECIES_MACHAMP] = + { + .size = 0x88, + .y_offset = 0x03, + }, + [SPECIES_BELLSPROUT] = + { + .size = 0x66, + .y_offset = 0x0f, + }, + [SPECIES_WEEPINBELL] = + { + .size = 0x66, + .y_offset = 0x0b, + }, + [SPECIES_VICTREEBEL] = + { + .size = 0x77, + .y_offset = 0x05, + }, + [SPECIES_TENTACOOL] = + { + .size = 0x66, + .y_offset = 0x0b, + }, + [SPECIES_TENTACRUEL] = + { + .size = 0x78, + .y_offset = 0x01, + }, + [SPECIES_GEODUDE] = + { + .size = 0x74, + .y_offset = 0x12, + }, + [SPECIES_GRAVELER] = + { + .size = 0x86, + .y_offset = 0x0b, + }, + [SPECIES_GOLEM] = + { + .size = 0x87, + .y_offset = 0x07, + }, + [SPECIES_PONYTA] = + { + .size = 0x67, + .y_offset = 0x07, + }, + [SPECIES_RAPIDASH] = + { + .size = 0x88, + .y_offset = 0x00, + }, + [SPECIES_SLOWPOKE] = + { + .size = 0x65, + .y_offset = 0x0d, + }, + [SPECIES_SLOWBRO] = + { + .size = 0x88, + .y_offset = 0x02, + }, + [SPECIES_MAGNEMITE] = + { + .size = 0x53, + .y_offset = 0x16, + }, + [SPECIES_MAGNETON] = + { + .size = 0x75, + .y_offset = 0x10, + }, + [SPECIES_FARFETCHD] = + { + .size = 0x76, + .y_offset = 0x0b, + }, + [SPECIES_DODUO] = + { + .size = 0x67, + .y_offset = 0x07, + }, + [SPECIES_DODRIO] = + { + .size = 0x88, + .y_offset = 0x01, + }, + [SPECIES_SEEL] = + { + .size = 0x76, + .y_offset = 0x09, + }, + [SPECIES_DEWGONG] = + { + .size = 0x87, + .y_offset = 0x07, + }, + [SPECIES_GRIMER] = + { + .size = 0x66, + .y_offset = 0x0b, + }, + [SPECIES_MUK] = + { + .size = 0x86, + .y_offset = 0x0a, + }, + [SPECIES_SHELLDER] = + { + .size = 0x55, + .y_offset = 0x10, + }, + [SPECIES_CLOYSTER] = + { + .size = 0x87, + .y_offset = 0x04, + }, + [SPECIES_GASTLY] = + { + .size = 0x77, + .y_offset = 0x06, + }, + [SPECIES_HAUNTER] = + { + .size = 0x87, + .y_offset = 0x07, + }, + [SPECIES_GENGAR] = + { + .size = 0x76, + .y_offset = 0x09, + }, + [SPECIES_ONIX] = + { + .size = 0x78, + .y_offset = 0x03, + }, + [SPECIES_DROWZEE] = + { + .size = 0x66, + .y_offset = 0x09, + }, + [SPECIES_HYPNO] = + { + .size = 0x87, + .y_offset = 0x04, + }, + [SPECIES_KRABBY] = + { + .size = 0x75, + .y_offset = 0x0e, + }, + [SPECIES_KINGLER] = + { + .size = 0x87, + .y_offset = 0x05, + }, + [SPECIES_VOLTORB] = + { + .size = 0x44, + .y_offset = 0x13, + }, + [SPECIES_ELECTRODE] = + { + .size = 0x55, + .y_offset = 0x0e, + }, + [SPECIES_EXEGGCUTE] = + { + .size = 0x76, + .y_offset = 0x09, + }, + [SPECIES_EXEGGUTOR] = + { + .size = 0x88, + .y_offset = 0x01, + }, + [SPECIES_CUBONE] = + { + .size = 0x65, + .y_offset = 0x0d, + }, + [SPECIES_MAROWAK] = + { + .size = 0x87, + .y_offset = 0x0d, + }, + [SPECIES_HITMONLEE] = + { + .size = 0x77, + .y_offset = 0x04, + }, + [SPECIES_HITMONCHAN] = + { + .size = 0x67, + .y_offset = 0x04, + }, + [SPECIES_LICKITUNG] = + { + .size = 0x86, + .y_offset = 0x08, + }, + [SPECIES_KOFFING] = + { + .size = 0x66, + .y_offset = 0x0b, + }, + [SPECIES_WEEZING] = + { + .size = 0x88, + .y_offset = 0x07, + }, + [SPECIES_RHYHORN] = + { + .size = 0x76, + .y_offset = 0x09, + }, + [SPECIES_RHYDON] = + { + .size = 0x88, + .y_offset = 0x02, + }, + [SPECIES_CHANSEY] = + { + .size = 0x76, + .y_offset = 0x09, + }, + [SPECIES_TANGELA] = + { + .size = 0x66, + .y_offset = 0x08, + }, + [SPECIES_KANGASKHAN] = + { + .size = 0x88, + .y_offset = 0x00, + }, + [SPECIES_HORSEA] = + { + .size = 0x45, + .y_offset = 0x10, + }, + [SPECIES_SEADRA] = + { + .size = 0x77, + .y_offset = 0x06, + }, + [SPECIES_GOLDEEN] = + { + .size = 0x66, + .y_offset = 0x0a, + }, + [SPECIES_SEAKING] = + { + .size = 0x77, + .y_offset = 0x04, + }, + [SPECIES_STARYU] = + { + .size = 0x66, + .y_offset = 0x0d, + }, + [SPECIES_STARMIE] = + { + .size = 0x67, + .y_offset = 0x0a, + }, + [SPECIES_MR_MIME] = + { + .size = 0x76, + .y_offset = 0x08, + }, + [SPECIES_SCYTHER] = + { + .size = 0x78, + .y_offset = 0x02, + }, + [SPECIES_JYNX] = + { + .size = 0x66, + .y_offset = 0x08, + }, + [SPECIES_ELECTABUZZ] = + { + .size = 0x88, + .y_offset = 0x04, + }, + [SPECIES_MAGMAR] = + { + .size = 0x87, + .y_offset = 0x04, + }, + [SPECIES_PINSIR] = + { + .size = 0x77, + .y_offset = 0x04, + }, + [SPECIES_TAUROS] = + { + .size = 0x88, + .y_offset = 0x05, + }, + [SPECIES_MAGIKARP] = + { + .size = 0x77, + .y_offset = 0x0b, + }, + [SPECIES_GYARADOS] = + { + .size = 0x88, + .y_offset = 0x00, + }, + [SPECIES_LAPRAS] = + { + .size = 0x87, + .y_offset = 0x04, + }, + [SPECIES_DITTO] = + { + .size = 0x54, + .y_offset = 0x11, + }, + [SPECIES_EEVEE] = + { + .size = 0x56, + .y_offset = 0x0d, + }, + [SPECIES_VAPOREON] = + { + .size = 0x67, + .y_offset = 0x06, + }, + [SPECIES_JOLTEON] = + { + .size = 0x66, + .y_offset = 0x0a, + }, + [SPECIES_FLAREON] = + { + .size = 0x76, + .y_offset = 0x0b, + }, + [SPECIES_PORYGON] = + { + .size = 0x56, + .y_offset = 0x0b, + }, + [SPECIES_OMANYTE] = + { + .size = 0x45, + .y_offset = 0x0f, + }, + [SPECIES_OMASTAR] = + { + .size = 0x67, + .y_offset = 0x07, + }, + [SPECIES_KABUTO] = + { + .size = 0x54, + .y_offset = 0x14, + }, + [SPECIES_KABUTOPS] = + { + .size = 0x88, + .y_offset = 0x03, + }, + [SPECIES_AERODACTYL] = + { + .size = 0x88, + .y_offset = 0x01, + }, + [SPECIES_SNORLAX] = + { + .size = 0x87, + .y_offset = 0x05, + }, + [SPECIES_ARTICUNO] = + { + .size = 0x88, + .y_offset = 0x00, + }, + [SPECIES_ZAPDOS] = + { + .size = 0x88, + .y_offset = 0x04, + }, + [SPECIES_MOLTRES] = + { + .size = 0x88, + .y_offset = 0x06, + }, + [SPECIES_DRATINI] = + { + .size = 0x75, + .y_offset = 0x0f, + }, + [SPECIES_DRAGONAIR] = + { + .size = 0x87, + .y_offset = 0x06, + }, + [SPECIES_DRAGONITE] = + { + .size = 0x88, + .y_offset = 0x00, + }, + [SPECIES_MEWTWO] = + { + .size = 0x88, + .y_offset = 0x00, + }, + [SPECIES_MEW] = + { + .size = 0x77, + .y_offset = 0x0d, + }, + [SPECIES_CHIKORITA] = + { + .size = 0x75, + .y_offset = 0x0d, + }, + [SPECIES_BAYLEEF] = + { + .size = 0x77, + .y_offset = 0x04, + }, + [SPECIES_MEGANIUM] = + { + .size = 0x88, + .y_offset = 0x00, + }, + [SPECIES_CYNDAQUIL] = + { + .size = 0x55, + .y_offset = 0x0e, + }, + [SPECIES_QUILAVA] = + { + .size = 0x76, + .y_offset = 0x08, + }, + [SPECIES_TYPHLOSION] = + { + .size = 0x78, + .y_offset = 0x00, + }, + [SPECIES_TOTODILE] = + { + .size = 0x55, + .y_offset = 0x0f, + }, + [SPECIES_CROCONAW] = + { + .size = 0x67, + .y_offset = 0x06, + }, + [SPECIES_FERALIGATR] = + { + .size = 0x88, + .y_offset = 0x00, + }, + [SPECIES_SENTRET] = + { + .size = 0x47, + .y_offset = 0x04, + }, + [SPECIES_FURRET] = + { + .size = 0x67, + .y_offset = 0x07, + }, + [SPECIES_HOOTHOOT] = + { + .size = 0x55, + .y_offset = 0x0d, + }, + [SPECIES_NOCTOWL] = + { + .size = 0x58, + .y_offset = 0x03, + }, + [SPECIES_LEDYBA] = + { + .size = 0x56, + .y_offset = 0x0c, + }, + [SPECIES_LEDIAN] = + { + .size = 0x67, + .y_offset = 0x04, + }, + [SPECIES_SPINARAK] = + { + .size = 0x54, + .y_offset = 0x13, + }, + [SPECIES_ARIADOS] = + { + .size = 0x87, + .y_offset = 0x05, + }, + [SPECIES_CROBAT] = + { + .size = 0x88, + .y_offset = 0x00, + }, + [SPECIES_CHINCHOU] = + { + .size = 0x75, + .y_offset = 0x10, + }, + [SPECIES_LANTURN] = + { + .size = 0x87, + .y_offset = 0x0b, + }, + [SPECIES_PICHU] = + { + .size = 0x45, + .y_offset = 0x0c, + }, + [SPECIES_CLEFFA] = + { + .size = 0x44, + .y_offset = 0x14, + }, + [SPECIES_IGGLYBUFF] = + { + .size = 0x44, + .y_offset = 0x12, + }, + [SPECIES_TOGEPI] = + { + .size = 0x34, + .y_offset = 0x14, + }, + [SPECIES_TOGETIC] = + { + .size = 0x46, + .y_offset = 0x09, + }, + [SPECIES_NATU] = + { + .size = 0x44, + .y_offset = 0x14, + }, + [SPECIES_XATU] = + { + .size = 0x47, + .y_offset = 0x07, + }, + [SPECIES_MAREEP] = + { + .size = 0x55, + .y_offset = 0x10, + }, + [SPECIES_FLAAFFY] = + { + .size = 0x56, + .y_offset = 0x0a, + }, + [SPECIES_AMPHAROS] = + { + .size = 0x77, + .y_offset = 0x05, + }, + [SPECIES_BELLOSSOM] = + { + .size = 0x45, + .y_offset = 0x0e, + }, + [SPECIES_MARILL] = + { + .size = 0x65, + .y_offset = 0x0e, + }, + [SPECIES_AZUMARILL] = + { + .size = 0x76, + .y_offset = 0x09, + }, + [SPECIES_SUDOWOODO] = + { + .size = 0x67, + .y_offset = 0x06, + }, + [SPECIES_POLITOED] = + { + .size = 0x67, + .y_offset = 0x06, + }, + [SPECIES_HOPPIP] = + { + .size = 0x66, + .y_offset = 0x0a, + }, + [SPECIES_SKIPLOOM] = + { + .size = 0x55, + .y_offset = 0x0f, + }, + [SPECIES_JUMPLUFF] = + { + .size = 0x77, + .y_offset = 0x07, + }, + [SPECIES_AIPOM] = + { + .size = 0x58, + .y_offset = 0x03, + }, + [SPECIES_SUNKERN] = + { + .size = 0x44, + .y_offset = 0x10, + }, + [SPECIES_SUNFLORA] = + { + .size = 0x56, + .y_offset = 0x08, + }, + [SPECIES_YANMA] = + { + .size = 0x86, + .y_offset = 0x0a, + }, + [SPECIES_WOOPER] = + { + .size = 0x54, + .y_offset = 0x10, + }, + [SPECIES_QUAGSIRE] = + { + .size = 0x77, + .y_offset = 0x07, + }, + [SPECIES_ESPEON] = + { + .size = 0x66, + .y_offset = 0x08, + }, + [SPECIES_UMBREON] = + { + .size = 0x67, + .y_offset = 0x08, + }, + [SPECIES_MURKROW] = + { + .size = 0x66, + .y_offset = 0x0b, + }, + [SPECIES_SLOWKING] = + { + .size = 0x58, + .y_offset = 0x01, + }, + [SPECIES_MISDREAVUS] = + { + .size = 0x55, + .y_offset = 0x0c, + }, + [SPECIES_UNOWN] = + { + .size = 0x35, + .y_offset = 0x0f, + }, + [SPECIES_WOBBUFFET] = + { + .size = 0x77, + .y_offset = 0x06, + }, + [SPECIES_GIRAFARIG] = + { + .size = 0x88, + .y_offset = 0x03, + }, + [SPECIES_PINECO] = + { + .size = 0x56, + .y_offset = 0x0a, + }, + [SPECIES_FORRETRESS] = + { + .size = 0x76, + .y_offset = 0x09, + }, + [SPECIES_DUNSPARCE] = + { + .size = 0x74, + .y_offset = 0x11, + }, + [SPECIES_GLIGAR] = + { + .size = 0x78, + .y_offset = 0x03, + }, + [SPECIES_STEELIX] = + { + .size = 0x88, + .y_offset = 0x00, + }, + [SPECIES_SNUBBULL] = + { + .size = 0x55, + .y_offset = 0x0d, + }, + [SPECIES_GRANBULL] = + { + .size = 0x57, + .y_offset = 0x06, + }, + [SPECIES_QWILFISH] = + { + .size = 0x56, + .y_offset = 0x0a, + }, + [SPECIES_SCIZOR] = + { + .size = 0x88, + .y_offset = 0x00, + }, + [SPECIES_SHUCKLE] = + { + .size = 0x66, + .y_offset = 0x09, + }, + [SPECIES_HERACROSS] = + { + .size = 0x88, + .y_offset = 0x03, + }, + [SPECIES_SNEASEL] = + { + .size = 0x67, + .y_offset = 0x05, + }, + [SPECIES_TEDDIURSA] = + { + .size = 0x46, + .y_offset = 0x0b, + }, + [SPECIES_URSARING] = + { + .size = 0x78, + .y_offset = 0x01, + }, + [SPECIES_SLUGMA] = + { + .size = 0x45, + .y_offset = 0x0d, + }, + [SPECIES_MAGCARGO] = + { + .size = 0x57, + .y_offset = 0x0d, + }, + [SPECIES_SWINUB] = + { + .size = 0x43, + .y_offset = 0x14, + }, + [SPECIES_PILOSWINE] = + { + .size = 0x66, + .y_offset = 0x08, + }, + [SPECIES_CORSOLA] = + { + .size = 0x65, + .y_offset = 0x0c, + }, + [SPECIES_REMORAID] = + { + .size = 0x55, + .y_offset = 0x0e, + }, + [SPECIES_OCTILLERY] = + { + .size = 0x66, + .y_offset = 0x0a, + }, + [SPECIES_DELIBIRD] = + { + .size = 0x56, + .y_offset = 0x08, + }, + [SPECIES_MANTINE] = + { + .size = 0x88, + .y_offset = 0x01, + }, + [SPECIES_SKARMORY] = + { + .size = 0x88, + .y_offset = 0x00, + }, + [SPECIES_HOUNDOUR] = + { + .size = 0x56, + .y_offset = 0x0b, + }, + [SPECIES_HOUNDOOM] = + { + .size = 0x77, + .y_offset = 0x05, + }, + [SPECIES_KINGDRA] = + { + .size = 0x78, + .y_offset = 0x04, + }, + [SPECIES_PHANPY] = + { + .size = 0x54, + .y_offset = 0x10, + }, + [SPECIES_DONPHAN] = + { + .size = 0x86, + .y_offset = 0x08, + }, + [SPECIES_PORYGON2] = + { + .size = 0x55, + .y_offset = 0x0f, + }, + [SPECIES_STANTLER] = + { + .size = 0x88, + .y_offset = 0x00, + }, + [SPECIES_SMEARGLE] = + { + .size = 0x77, + .y_offset = 0x06, + }, + [SPECIES_TYROGUE] = + { + .size = 0x46, + .y_offset = 0x09, + }, + [SPECIES_HITMONTOP] = + { + .size = 0x67, + .y_offset = 0x05, + }, + [SPECIES_SMOOCHUM] = + { + .size = 0x35, + .y_offset = 0x0f, + }, + [SPECIES_ELEKID] = + { + .size = 0x76, + .y_offset = 0x0a, + }, + [SPECIES_MAGBY] = + { + .size = 0x45, + .y_offset = 0x0d, + }, + [SPECIES_MILTANK] = + { + .size = 0x77, + .y_offset = 0x04, + }, + [SPECIES_BLISSEY] = + { + .size = 0x77, + .y_offset = 0x06, + }, + [SPECIES_RAIKOU] = + { + .size = 0x88, + .y_offset = 0x00, + }, + [SPECIES_ENTEI] = + { + .size = 0x88, + .y_offset = 0x00, + }, + [SPECIES_SUICUNE] = + { + .size = 0x88, + .y_offset = 0x00, + }, + [SPECIES_LARVITAR] = + { + .size = 0x46, + .y_offset = 0x09, + }, + [SPECIES_PUPITAR] = + { + .size = 0x56, + .y_offset = 0x09, + }, + [SPECIES_TYRANITAR] = + { + .size = 0x88, + .y_offset = 0x00, + }, + [SPECIES_LUGIA] = + { + .size = 0x88, + .y_offset = 0x00, + }, + [SPECIES_HO_OH] = + { + .size = 0x88, + .y_offset = 0x00, + }, + [SPECIES_CELEBI] = + { + .size = 0x55, + .y_offset = 0x0e, + }, + [SPECIES_OLD_UNOWN_B] = + { + .size = 0x88, + .y_offset = 0x06, + }, + [SPECIES_OLD_UNOWN_C] = + { + .size = 0x88, + .y_offset = 0x06, + }, + [SPECIES_OLD_UNOWN_D] = + { + .size = 0x88, + .y_offset = 0x06 + }, + [SPECIES_OLD_UNOWN_E] = + { + .size = 0x88, + .y_offset = 0x06 + }, + [SPECIES_OLD_UNOWN_F] = + { + .size = 0x88, + .y_offset = 0x06 + }, + [SPECIES_OLD_UNOWN_G] = + { + .size = 0x88, + .y_offset = 0x06 + }, + [SPECIES_OLD_UNOWN_H] = + { + .size = 0x88, + .y_offset = 0x06 + }, + [SPECIES_OLD_UNOWN_I] = + { + .size = 0x88, + .y_offset = 0x06 + }, + [SPECIES_OLD_UNOWN_J] = + { + .size = 0x88, + .y_offset = 0x06 + }, + [SPECIES_OLD_UNOWN_K] = + { + .size = 0x88, + .y_offset = 0x06 + }, + [SPECIES_OLD_UNOWN_L] = + { + .size = 0x88, + .y_offset = 0x06 + }, + [SPECIES_OLD_UNOWN_M] = + { + .size = 0x88, + .y_offset = 0x06 + }, + [SPECIES_OLD_UNOWN_N] = + { + .size = 0x88, + .y_offset = 0x06 + }, + [SPECIES_OLD_UNOWN_O] = + { + .size = 0x88, + .y_offset = 0x06 + }, + [SPECIES_OLD_UNOWN_P] = + { + .size = 0x88, + .y_offset = 0x06 + }, + [SPECIES_OLD_UNOWN_Q] = + { + .size = 0x88, + .y_offset = 0x06 + }, + [SPECIES_OLD_UNOWN_R] = + { + .size = 0x88, + .y_offset = 0x06 + }, + [SPECIES_OLD_UNOWN_S] = + { + .size = 0x88, + .y_offset = 0x06 + }, + [SPECIES_OLD_UNOWN_T] = + { + .size = 0x88, + .y_offset = 0x06 + }, + [SPECIES_OLD_UNOWN_U] = + { + .size = 0x88, + .y_offset = 0x06 + }, + [SPECIES_OLD_UNOWN_V] = + { + .size = 0x88, + .y_offset = 0x06 + }, + [SPECIES_OLD_UNOWN_W] = + { + .size = 0x88, + .y_offset = 0x06 + }, + [SPECIES_OLD_UNOWN_X] = + { + .size = 0x88, + .y_offset = 0x06 + }, + [SPECIES_OLD_UNOWN_Y] = + { + .size = 0x88, + .y_offset = 0x06 + }, + [SPECIES_OLD_UNOWN_Z] = + { + .size = 0x88, + .y_offset = 0x06 + }, + [SPECIES_TREECKO] = + { + .size = 0x66, + .y_offset = 0x08, + }, + [SPECIES_GROVYLE] = + { + .size = 0x87, + .y_offset = 0x04, + }, + [SPECIES_SCEPTILE] = + { + .size = 0x88, + .y_offset = 0x00, + }, + [SPECIES_TORCHIC] = + { + .size = 0x56, + .y_offset = 0x08, + }, + [SPECIES_COMBUSKEN] = + { + .size = 0x88, + .y_offset = 0x01, + }, + [SPECIES_BLAZIKEN] = + { + .size = 0x88, + .y_offset = 0x00, + }, + [SPECIES_MUDKIP] = + { + .size = 0x56, + .y_offset = 0x0c, + }, + [SPECIES_MARSHTOMP] = + { + .size = 0x67, + .y_offset = 0x06, + }, + [SPECIES_SWAMPERT] = + { + .size = 0x88, + .y_offset = 0x00, + }, + [SPECIES_POOCHYENA] = + { + .size = 0x55, + .y_offset = 0x0c, + }, + [SPECIES_MIGHTYENA] = + { + .size = 0x87, + .y_offset = 0x04, + }, + [SPECIES_ZIGZAGOON] = + { + .size = 0x85, + .y_offset = 0x0f, + }, + [SPECIES_LINOONE] = + { + .size = 0x78, + .y_offset = 0x03, + }, + [SPECIES_WURMPLE] = + { + .size = 0x45, + .y_offset = 0x0e, + }, + [SPECIES_SILCOON] = + { + .size = 0x75, + .y_offset = 0x11, + }, + [SPECIES_BEAUTIFLY] = + { + .size = 0x86, + .y_offset = 0x09, + }, + [SPECIES_CASCOON] = + { + .size = 0x74, + .y_offset = 0x10, + }, + [SPECIES_DUSTOX] = + { + .size = 0x86, + .y_offset = 0x0f, + }, + [SPECIES_LOTAD] = + { + .size = 0x65, + .y_offset = 0x0e, + }, + [SPECIES_LOMBRE] = + { + .size = 0x66, + .y_offset = 0x09, + }, + [SPECIES_LUDICOLO] = + { + .size = 0x88, + .y_offset = 0x00, + }, + [SPECIES_SEEDOT] = + { + .size = 0x46, + .y_offset = 0x10, + }, + [SPECIES_NUZLEAF] = + { + .size = 0x56, + .y_offset = 0x08, + }, + [SPECIES_SHIFTRY] = + { + .size = 0x88, + .y_offset = 0x02, + }, + [SPECIES_NINCADA] = + { + .size = 0x74, + .y_offset = 0x12, + }, + [SPECIES_NINJASK] = + { + .size = 0x86, + .y_offset = 0x0a, + }, + [SPECIES_SHEDINJA] = + { + .size = 0x66, + .y_offset = 0x0a, + }, + [SPECIES_TAILLOW] = + { + .size = 0x64, + .y_offset = 0x10, + }, + [SPECIES_SWELLOW] = + { + .size = 0x87, + .y_offset = 0x06, + }, + [SPECIES_SHROOMISH] = + { + .size = 0x54, + .y_offset = 0x10, + }, + [SPECIES_BRELOOM] = + { + .size = 0x77, + .y_offset = 0x04, + }, + [SPECIES_SPINDA] = + { + .size = 0x67, + .y_offset = 0x08, + }, + [SPECIES_WINGULL] = + { + .size = 0x84, + .y_offset = 0x18, + }, + [SPECIES_PELIPPER] = + { + .size = 0x77, + .y_offset = 0x04, + }, + [SPECIES_SURSKIT] = + { + .size = 0x65, + .y_offset = 0x0f, + }, + [SPECIES_MASQUERAIN] = + { + .size = 0x88, + .y_offset = 0x01, + }, + [SPECIES_WAILMER] = + { + .size = 0x75, + .y_offset = 0x0f, + }, + [SPECIES_WAILORD] = + { + .size = 0x87, + .y_offset = 0x0a, + }, + [SPECIES_SKITTY] = + { + .size = 0x66, + .y_offset = 0x0b, + }, + [SPECIES_DELCATTY] = + { + .size = 0x66, + .y_offset = 0x08, + }, + [SPECIES_KECLEON] = + { + .size = 0x67, + .y_offset = 0x07, + }, + [SPECIES_BALTOY] = + { + .size = 0x55, + .y_offset = 0x10, + }, + [SPECIES_CLAYDOL] = + { + .size = 0x78, + .y_offset = 0x06, + }, + [SPECIES_NOSEPASS] = + { + .size = 0x56, + .y_offset = 0x0c, + }, + [SPECIES_TORKOAL] = + { + .size = 0x88, + .y_offset = 0x02, + }, + [SPECIES_SABLEYE] = + { + .size = 0x66, + .y_offset = 0x09, + }, + [SPECIES_BARBOACH] = + { + .size = 0x46, + .y_offset = 0x0b, + }, + [SPECIES_WHISCASH] = + { + .size = 0x76, + .y_offset = 0x09, + }, + [SPECIES_LUVDISC] = + { + .size = 0x46, + .y_offset = 0x18, + }, + [SPECIES_CORPHISH] = + { + .size = 0x66, + .y_offset = 0x0c, + }, + [SPECIES_CRAWDAUNT] = + { + .size = 0x88, + .y_offset = 0x01, + }, + [SPECIES_FEEBAS] = + { + .size = 0x46, + .y_offset = 0x0d, + }, + [SPECIES_MILOTIC] = + { + .size = 0x88, + .y_offset = 0x00, + }, + [SPECIES_CARVANHA] = + { + .size = 0x67, + .y_offset = 0x06, + }, + [SPECIES_SHARPEDO] = + { + .size = 0x78, + .y_offset = 0x03, + }, + [SPECIES_TRAPINCH] = + { + .size = 0x54, + .y_offset = 0x10, + }, + [SPECIES_VIBRAVA] = + { + .size = 0x86, + .y_offset = 0x0c, + }, + [SPECIES_FLYGON] = + { + .size = 0x88, + .y_offset = 0x01, + }, + [SPECIES_MAKUHITA] = + { + .size = 0x65, + .y_offset = 0x0c, + }, + [SPECIES_HARIYAMA] = + { + .size = 0x88, + .y_offset = 0x01, + }, + [SPECIES_ELECTRIKE] = + { + .size = 0x64, + .y_offset = 0x12, + }, + [SPECIES_MANECTRIC] = + { + .size = 0x67, + .y_offset = 0x04, + }, + [SPECIES_NUMEL] = + { + .size = 0x65, + .y_offset = 0x0f, + }, + [SPECIES_CAMERUPT] = + { + .size = 0x87, + .y_offset = 0x09, + }, + [SPECIES_SPHEAL] = + { + .size = 0x65, + .y_offset = 0x10, + }, + [SPECIES_SEALEO] = + { + .size = 0x86, + .y_offset = 0x0a, + }, + [SPECIES_WALREIN] = + { + .size = 0x88, + .y_offset = 0x01, + }, + [SPECIES_CACNEA] = + { + .size = 0x74, + .y_offset = 0x10, + }, + [SPECIES_CACTURNE] = + { + .size = 0x88, + .y_offset = 0x00, + }, + [SPECIES_SNORUNT] = + { + .size = 0x56, + .y_offset = 0x0b, + }, + [SPECIES_GLALIE] = + { + .size = 0x76, + .y_offset = 0x0a, + }, + [SPECIES_LUNATONE] = + { + .size = 0x66, + .y_offset = 0x09, + }, + [SPECIES_SOLROCK] = + { + .size = 0x88, + .y_offset = 0x01, + }, + [SPECIES_AZURILL] = + { + .size = 0x55, + .y_offset = 0x0f, + }, + [SPECIES_SPOINK] = + { + .size = 0x46, + .y_offset = 0x09, + }, + [SPECIES_GRUMPIG] = + { + .size = 0x77, + .y_offset = 0x05, + }, + [SPECIES_PLUSLE] = + { + .size = 0x56, + .y_offset = 0x0e, + }, + [SPECIES_MINUN] = + { + .size = 0x66, + .y_offset = 0x0c, + }, + [SPECIES_MAWILE] = + { + .size = 0x76, + .y_offset = 0x08, + }, + [SPECIES_MEDITITE] = + { + .size = 0x65, + .y_offset = 0x0c, + }, + [SPECIES_MEDICHAM] = + { + .size = 0x68, + .y_offset = 0x01, + }, + [SPECIES_SWABLU] = + { + .size = 0x76, + .y_offset = 0x11, + }, + [SPECIES_ALTARIA] = + { + .size = 0x88, + .y_offset = 0x02, + }, + [SPECIES_WYNAUT] = + { + .size = 0x55, + .y_offset = 0x0c, + }, + [SPECIES_DUSKULL] = + { + .size = 0x66, + .y_offset = 0x0a, + }, + [SPECIES_DUSCLOPS] = + { + .size = 0x77, + .y_offset = 0x05, + }, + [SPECIES_ROSELIA] = + { + .size = 0x76, + .y_offset = 0x08, + }, + [SPECIES_SLAKOTH] = + { + .size = 0x74, + .y_offset = 0x12, + }, + [SPECIES_VIGOROTH] = + { + .size = 0x78, + .y_offset = 0x00, + }, + [SPECIES_SLAKING] = + { + .size = 0x86, + .y_offset = 0x08, + }, + [SPECIES_GULPIN] = + { + .size = 0x55, + .y_offset = 0x12, + }, + [SPECIES_SWALOT] = + { + .size = 0x66, + .y_offset = 0x08, + }, + [SPECIES_TROPIUS] = + { + .size = 0x88, + .y_offset = 0x00, + }, + [SPECIES_WHISMUR] = + { + .size = 0x55, + .y_offset = 0x0e, + }, + [SPECIES_LOUDRED] = + { + .size = 0x78, + .y_offset = 0x03, + }, + [SPECIES_EXPLOUD] = + { + .size = 0x88, + .y_offset = 0x01, + }, + [SPECIES_CLAMPERL] = + { + .size = 0x55, + .y_offset = 0x0e, + }, + [SPECIES_HUNTAIL] = + { + .size = 0x78, + .y_offset = 0x03, + }, + [SPECIES_GOREBYSS] = + { + .size = 0x86, + .y_offset = 0x0b, + }, + [SPECIES_ABSOL] = + { + .size = 0x68, + .y_offset = 0x00, + }, + [SPECIES_SHUPPET] = + { + .size = 0x56, + .y_offset = 0x0e, + }, + [SPECIES_BANETTE] = + { + .size = 0x55, + .y_offset = 0x0c, + }, + [SPECIES_SEVIPER] = + { + .size = 0x77, + .y_offset = 0x08, + }, + [SPECIES_ZANGOOSE] = + { + .size = 0x87, + .y_offset = 0x05, + }, + [SPECIES_RELICANTH] = + { + .size = 0x77, + .y_offset = 0x0b, + }, + [SPECIES_ARON] = + { + .size = 0x43, + .y_offset = 0x14, + }, + [SPECIES_LAIRON] = + { + .size = 0x75, + .y_offset = 0x0d, + }, + [SPECIES_AGGRON] = + { + .size = 0x88, + .y_offset = 0x00, + }, + [SPECIES_CASTFORM] = + { + .size = 0x34, + .y_offset = 0x11, + }, + [SPECIES_VOLBEAT] = + { + .size = 0x66, + .y_offset = 0x08, + }, + [SPECIES_ILLUMISE] = + { + .size = 0x56, + .y_offset = 0x08, + }, + [SPECIES_LILEEP] = + { + .size = 0x67, + .y_offset = 0x07, + }, + [SPECIES_CRADILY] = + { + .size = 0x78, + .y_offset = 0x00, + }, + [SPECIES_ANORITH] = + { + .size = 0x66, + .y_offset = 0x08, + }, + [SPECIES_ARMALDO] = + { + .size = 0x88, + .y_offset = 0x00, + }, + [SPECIES_RALTS] = + { + .size = 0x35, + .y_offset = 0x0f, + }, + [SPECIES_KIRLIA] = + { + .size = 0x47, + .y_offset = 0x06, + }, + [SPECIES_GARDEVOIR] = + { + .size = 0x78, + .y_offset = 0x01, + }, + [SPECIES_BAGON] = + { + .size = 0x56, + .y_offset = 0x0b, + }, + [SPECIES_SHELGON] = + { + .size = 0x66, + .y_offset = 0x09, + }, + [SPECIES_SALAMENCE] = + { + .size = 0x87, + .y_offset = 0x04, + }, + [SPECIES_BELDUM] = + { + .size = 0x55, + .y_offset = 0x0f, + }, + [SPECIES_METANG] = + { + .size = 0x87, + .y_offset = 0x07, + }, + [SPECIES_METAGROSS] = + { + .size = 0x87, + .y_offset = 0x06, + }, + [SPECIES_REGIROCK] = + { + .size = 0x78, + .y_offset = 0x04, + }, + [SPECIES_REGICE] = + { + .size = 0x88, + .y_offset = 0x02, + }, + [SPECIES_REGISTEEL] = + { + .size = 0x88, + .y_offset = 0x03, + }, + [SPECIES_KYOGRE] = + { + .size = 0x87, + .y_offset = 0x04, + }, + [SPECIES_GROUDON] = + { + .size = 0x88, + .y_offset = 0x01, + }, + [SPECIES_RAYQUAZA] = + { + .size = 0x88, + .y_offset = 0x00, + }, + [SPECIES_LATIAS] = + { + .size = 0x88, + .y_offset = 0x01, + }, + [SPECIES_LATIOS] = + { + .size = 0x88, + .y_offset = 0x02, + }, + [SPECIES_JIRACHI] = + { + .size = 0x66, + .y_offset = 0x0d, + }, + [SPECIES_DEOXYS] = + { + .size = 0x88, + .y_offset = 0x01, + }, + [SPECIES_CHIMECHO] = + { + .size = 0x37, + .y_offset = 0x06, + }, + [SPECIES_EGG] = + { + .size = 0x33, + .y_offset = 0x14, + }, + [SPECIES_UNOWN_B] = + { + .size = 0x34, + .y_offset = 0x10, + }, + [SPECIES_UNOWN_C] = + { + .size = 0x44, + .y_offset = 0x10, + }, + [SPECIES_UNOWN_D] = + { + .size = 0x44, + .y_offset = 0x10, + }, + [SPECIES_UNOWN_E] = + { + .size = 0x44, + .y_offset = 0x11, + }, + [SPECIES_UNOWN_F] = + { + .size = 0x44, + .y_offset = 0x11, + }, + [SPECIES_UNOWN_G] = + { + .size = 0x35, + .y_offset = 0x0e, + }, + [SPECIES_UNOWN_H] = + { + .size = 0x44, + .y_offset = 0x10, + }, + [SPECIES_UNOWN_I] = + { + .size = 0x34, + .y_offset = 0x10, + }, + [SPECIES_UNOWN_J] = + { + .size = 0x34, + .y_offset = 0x11, + }, + [SPECIES_UNOWN_K] = + { + .size = 0x44, + .y_offset = 0x11, + }, + [SPECIES_UNOWN_L] = + { + .size = 0x34, + .y_offset = 0x13, + }, + [SPECIES_UNOWN_M] = + { + .size = 0x44, + .y_offset = 0x13, + }, + [SPECIES_UNOWN_N] = + { + .size = 0x43, + .y_offset = 0x14, + }, + [SPECIES_UNOWN_O] = + { + .size = 0x44, + .y_offset = 0x10, + }, + [SPECIES_UNOWN_P] = + { + .size = 0x34, + .y_offset = 0x13, + }, + [SPECIES_UNOWN_Q] = + { + .size = 0x43, + .y_offset = 0x15, + }, + [SPECIES_UNOWN_R] = + { + .size = 0x34, + .y_offset = 0x13, + }, + [SPECIES_UNOWN_S] = + { + .size = 0x45, + .y_offset = 0x0c, + }, + [SPECIES_UNOWN_T] = + { + .size = 0x34, + .y_offset = 0x12, + }, + [SPECIES_UNOWN_U] = + { + .size = 0x44, + .y_offset = 0x12, + }, + [SPECIES_UNOWN_V] = + { + .size = 0x44, + .y_offset = 0x12, + }, + [SPECIES_UNOWN_W] = + { + .size = 0x44, + .y_offset = 0x13, + }, + [SPECIES_UNOWN_X] = + { + .size = 0x33, + .y_offset = 0x15, + }, + [SPECIES_UNOWN_Y] = + { + .size = 0x34, + .y_offset = 0x11, + }, + [SPECIES_UNOWN_Z] = + { + .size = 0x34, + .y_offset = 0x10, + }, + [SPECIES_UNOWN_EMARK] = + { + .size = 0x35, + .y_offset = 0x0f, + }, + [SPECIES_UNOWN_QMARK] = + { + .size = 0x35, + .y_offset = 0x0d, + }, +}; diff --git a/src/data/pokemon_graphics/front_pic_table.h b/src/data/pokemon_graphics/front_pic_table.h new file mode 100644 index 000000000..82af860d3 --- /dev/null +++ b/src/data/pokemon_graphics/front_pic_table.h @@ -0,0 +1,443 @@ +const struct CompressedSpriteSheet gMonFrontPicTable[] = +{ + SPECIES_SPRITE(NONE, gMonFrontPic_CircledQuestionMark), + SPECIES_SPRITE(BULBASAUR, gMonFrontPic_Bulbasaur), + SPECIES_SPRITE(IVYSAUR, gMonFrontPic_Ivysaur), + SPECIES_SPRITE(VENUSAUR, gMonFrontPic_Venusaur), + SPECIES_SPRITE(CHARMANDER, gMonFrontPic_Charmander), + SPECIES_SPRITE(CHARMELEON, gMonFrontPic_Charmeleon), + SPECIES_SPRITE(CHARIZARD, gMonFrontPic_Charizard), + SPECIES_SPRITE(SQUIRTLE, gMonFrontPic_Squirtle), + SPECIES_SPRITE(WARTORTLE, gMonFrontPic_Wartortle), + SPECIES_SPRITE(BLASTOISE, gMonFrontPic_Blastoise), + SPECIES_SPRITE(CATERPIE, gMonFrontPic_Caterpie), + SPECIES_SPRITE(METAPOD, gMonFrontPic_Metapod), + SPECIES_SPRITE(BUTTERFREE, gMonFrontPic_Butterfree), + SPECIES_SPRITE(WEEDLE, gMonFrontPic_Weedle), + SPECIES_SPRITE(KAKUNA, gMonFrontPic_Kakuna), + SPECIES_SPRITE(BEEDRILL, gMonFrontPic_Beedrill), + SPECIES_SPRITE(PIDGEY, gMonFrontPic_Pidgey), + SPECIES_SPRITE(PIDGEOTTO, gMonFrontPic_Pidgeotto), + SPECIES_SPRITE(PIDGEOT, gMonFrontPic_Pidgeot), + SPECIES_SPRITE(RATTATA, gMonFrontPic_Rattata), + SPECIES_SPRITE(RATICATE, gMonFrontPic_Raticate), + SPECIES_SPRITE(SPEAROW, gMonFrontPic_Spearow), + SPECIES_SPRITE(FEAROW, gMonFrontPic_Fearow), + SPECIES_SPRITE(EKANS, gMonFrontPic_Ekans), + SPECIES_SPRITE(ARBOK, gMonFrontPic_Arbok), + SPECIES_SPRITE(PIKACHU, gMonFrontPic_Pikachu), + SPECIES_SPRITE(RAICHU, gMonFrontPic_Raichu), + SPECIES_SPRITE(SANDSHREW, gMonFrontPic_Sandshrew), + SPECIES_SPRITE(SANDSLASH, gMonFrontPic_Sandslash), + SPECIES_SPRITE(NIDORAN_F, gMonFrontPic_NidoranF), + SPECIES_SPRITE(NIDORINA, gMonFrontPic_Nidorina), + SPECIES_SPRITE(NIDOQUEEN, gMonFrontPic_Nidoqueen), + SPECIES_SPRITE(NIDORAN_M, gMonFrontPic_NidoranM), + SPECIES_SPRITE(NIDORINO, gMonFrontPic_Nidorino), + SPECIES_SPRITE(NIDOKING, gMonFrontPic_Nidoking), + SPECIES_SPRITE(CLEFAIRY, gMonFrontPic_Clefairy), + SPECIES_SPRITE(CLEFABLE, gMonFrontPic_Clefable), + SPECIES_SPRITE(VULPIX, gMonFrontPic_Vulpix), + SPECIES_SPRITE(NINETALES, gMonFrontPic_Ninetales), + SPECIES_SPRITE(JIGGLYPUFF, gMonFrontPic_Jigglypuff), + SPECIES_SPRITE(WIGGLYTUFF, gMonFrontPic_Wigglytuff), + SPECIES_SPRITE(ZUBAT, gMonFrontPic_Zubat), + SPECIES_SPRITE(GOLBAT, gMonFrontPic_Golbat), + SPECIES_SPRITE(ODDISH, gMonFrontPic_Oddish), + SPECIES_SPRITE(GLOOM, gMonFrontPic_Gloom), + SPECIES_SPRITE(VILEPLUME, gMonFrontPic_Vileplume), + SPECIES_SPRITE(PARAS, gMonFrontPic_Paras), + SPECIES_SPRITE(PARASECT, gMonFrontPic_Parasect), + SPECIES_SPRITE(VENONAT, gMonFrontPic_Venonat), + SPECIES_SPRITE(VENOMOTH, gMonFrontPic_Venomoth), + SPECIES_SPRITE(DIGLETT, gMonFrontPic_Diglett), + SPECIES_SPRITE(DUGTRIO, gMonFrontPic_Dugtrio), + SPECIES_SPRITE(MEOWTH, gMonFrontPic_Meowth), + SPECIES_SPRITE(PERSIAN, gMonFrontPic_Persian), + SPECIES_SPRITE(PSYDUCK, gMonFrontPic_Psyduck), + SPECIES_SPRITE(GOLDUCK, gMonFrontPic_Golduck), + SPECIES_SPRITE(MANKEY, gMonFrontPic_Mankey), + SPECIES_SPRITE(PRIMEAPE, gMonFrontPic_Primeape), + SPECIES_SPRITE(GROWLITHE, gMonFrontPic_Growlithe), + SPECIES_SPRITE(ARCANINE, gMonFrontPic_Arcanine), + SPECIES_SPRITE(POLIWAG, gMonFrontPic_Poliwag), + SPECIES_SPRITE(POLIWHIRL, gMonFrontPic_Poliwhirl), + SPECIES_SPRITE(POLIWRATH, gMonFrontPic_Poliwrath), + SPECIES_SPRITE(ABRA, gMonFrontPic_Abra), + SPECIES_SPRITE(KADABRA, gMonFrontPic_Kadabra), + SPECIES_SPRITE(ALAKAZAM, gMonFrontPic_Alakazam), + SPECIES_SPRITE(MACHOP, gMonFrontPic_Machop), + SPECIES_SPRITE(MACHOKE, gMonFrontPic_Machoke), + SPECIES_SPRITE(MACHAMP, gMonFrontPic_Machamp), + SPECIES_SPRITE(BELLSPROUT, gMonFrontPic_Bellsprout), + SPECIES_SPRITE(WEEPINBELL, gMonFrontPic_Weepinbell), + SPECIES_SPRITE(VICTREEBEL, gMonFrontPic_Victreebel), + SPECIES_SPRITE(TENTACOOL, gMonFrontPic_Tentacool), + SPECIES_SPRITE(TENTACRUEL, gMonFrontPic_Tentacruel), + SPECIES_SPRITE(GEODUDE, gMonFrontPic_Geodude), + SPECIES_SPRITE(GRAVELER, gMonFrontPic_Graveler), + SPECIES_SPRITE(GOLEM, gMonFrontPic_Golem), + SPECIES_SPRITE(PONYTA, gMonFrontPic_Ponyta), + SPECIES_SPRITE(RAPIDASH, gMonFrontPic_Rapidash), + SPECIES_SPRITE(SLOWPOKE, gMonFrontPic_Slowpoke), + SPECIES_SPRITE(SLOWBRO, gMonFrontPic_Slowbro), + SPECIES_SPRITE(MAGNEMITE, gMonFrontPic_Magnemite), + SPECIES_SPRITE(MAGNETON, gMonFrontPic_Magneton), + SPECIES_SPRITE(FARFETCHD, gMonFrontPic_Farfetchd), + SPECIES_SPRITE(DODUO, gMonFrontPic_Doduo), + SPECIES_SPRITE(DODRIO, gMonFrontPic_Dodrio), + SPECIES_SPRITE(SEEL, gMonFrontPic_Seel), + SPECIES_SPRITE(DEWGONG, gMonFrontPic_Dewgong), + SPECIES_SPRITE(GRIMER, gMonFrontPic_Grimer), + SPECIES_SPRITE(MUK, gMonFrontPic_Muk), + SPECIES_SPRITE(SHELLDER, gMonFrontPic_Shellder), + SPECIES_SPRITE(CLOYSTER, gMonFrontPic_Cloyster), + SPECIES_SPRITE(GASTLY, gMonFrontPic_Gastly), + SPECIES_SPRITE(HAUNTER, gMonFrontPic_Haunter), + SPECIES_SPRITE(GENGAR, gMonFrontPic_Gengar), + SPECIES_SPRITE(ONIX, gMonFrontPic_Onix), + SPECIES_SPRITE(DROWZEE, gMonFrontPic_Drowzee), + SPECIES_SPRITE(HYPNO, gMonFrontPic_Hypno), + SPECIES_SPRITE(KRABBY, gMonFrontPic_Krabby), + SPECIES_SPRITE(KINGLER, gMonFrontPic_Kingler), + SPECIES_SPRITE(VOLTORB, gMonFrontPic_Voltorb), + SPECIES_SPRITE(ELECTRODE, gMonFrontPic_Electrode), + SPECIES_SPRITE(EXEGGCUTE, gMonFrontPic_Exeggcute), + SPECIES_SPRITE(EXEGGUTOR, gMonFrontPic_Exeggutor), + SPECIES_SPRITE(CUBONE, gMonFrontPic_Cubone), + SPECIES_SPRITE(MAROWAK, gMonFrontPic_Marowak), + SPECIES_SPRITE(HITMONLEE, gMonFrontPic_Hitmonlee), + SPECIES_SPRITE(HITMONCHAN, gMonFrontPic_Hitmonchan), + SPECIES_SPRITE(LICKITUNG, gMonFrontPic_Lickitung), + SPECIES_SPRITE(KOFFING, gMonFrontPic_Koffing), + SPECIES_SPRITE(WEEZING, gMonFrontPic_Weezing), + SPECIES_SPRITE(RHYHORN, gMonFrontPic_Rhyhorn), + SPECIES_SPRITE(RHYDON, gMonFrontPic_Rhydon), + SPECIES_SPRITE(CHANSEY, gMonFrontPic_Chansey), + SPECIES_SPRITE(TANGELA, gMonFrontPic_Tangela), + SPECIES_SPRITE(KANGASKHAN, gMonFrontPic_Kangaskhan), + SPECIES_SPRITE(HORSEA, gMonFrontPic_Horsea), + SPECIES_SPRITE(SEADRA, gMonFrontPic_Seadra), + SPECIES_SPRITE(GOLDEEN, gMonFrontPic_Goldeen), + SPECIES_SPRITE(SEAKING, gMonFrontPic_Seaking), + SPECIES_SPRITE(STARYU, gMonFrontPic_Staryu), + SPECIES_SPRITE(STARMIE, gMonFrontPic_Starmie), + SPECIES_SPRITE(MR_MIME, gMonFrontPic_Mrmime), + SPECIES_SPRITE(SCYTHER, gMonFrontPic_Scyther), + SPECIES_SPRITE(JYNX, gMonFrontPic_Jynx), + SPECIES_SPRITE(ELECTABUZZ, gMonFrontPic_Electabuzz), + SPECIES_SPRITE(MAGMAR, gMonFrontPic_Magmar), + SPECIES_SPRITE(PINSIR, gMonFrontPic_Pinsir), + SPECIES_SPRITE(TAUROS, gMonFrontPic_Tauros), + SPECIES_SPRITE(MAGIKARP, gMonFrontPic_Magikarp), + SPECIES_SPRITE(GYARADOS, gMonFrontPic_Gyarados), + SPECIES_SPRITE(LAPRAS, gMonFrontPic_Lapras), + SPECIES_SPRITE(DITTO, gMonFrontPic_Ditto), + SPECIES_SPRITE(EEVEE, gMonFrontPic_Eevee), + SPECIES_SPRITE(VAPOREON, gMonFrontPic_Vaporeon), + SPECIES_SPRITE(JOLTEON, gMonFrontPic_Jolteon), + SPECIES_SPRITE(FLAREON, gMonFrontPic_Flareon), + SPECIES_SPRITE(PORYGON, gMonFrontPic_Porygon), + SPECIES_SPRITE(OMANYTE, gMonFrontPic_Omanyte), + SPECIES_SPRITE(OMASTAR, gMonFrontPic_Omastar), + SPECIES_SPRITE(KABUTO, gMonFrontPic_Kabuto), + SPECIES_SPRITE(KABUTOPS, gMonFrontPic_Kabutops), + SPECIES_SPRITE(AERODACTYL, gMonFrontPic_Aerodactyl), + SPECIES_SPRITE(SNORLAX, gMonFrontPic_Snorlax), + SPECIES_SPRITE(ARTICUNO, gMonFrontPic_Articuno), + SPECIES_SPRITE(ZAPDOS, gMonFrontPic_Zapdos), + SPECIES_SPRITE(MOLTRES, gMonFrontPic_Moltres), + SPECIES_SPRITE(DRATINI, gMonFrontPic_Dratini), + SPECIES_SPRITE(DRAGONAIR, gMonFrontPic_Dragonair), + SPECIES_SPRITE(DRAGONITE, gMonFrontPic_Dragonite), + SPECIES_SPRITE(MEWTWO, gMonFrontPic_Mewtwo), + SPECIES_SPRITE(MEW, gMonFrontPic_Mew), + SPECIES_SPRITE(CHIKORITA, gMonFrontPic_Chikorita), + SPECIES_SPRITE(BAYLEEF, gMonFrontPic_Bayleef), + SPECIES_SPRITE(MEGANIUM, gMonFrontPic_Meganium), + SPECIES_SPRITE(CYNDAQUIL, gMonFrontPic_Cyndaquil), + SPECIES_SPRITE(QUILAVA, gMonFrontPic_Quilava), + SPECIES_SPRITE(TYPHLOSION, gMonFrontPic_Typhlosion), + SPECIES_SPRITE(TOTODILE, gMonFrontPic_Totodile), + SPECIES_SPRITE(CROCONAW, gMonFrontPic_Croconaw), + SPECIES_SPRITE(FERALIGATR, gMonFrontPic_Feraligatr), + SPECIES_SPRITE(SENTRET, gMonFrontPic_Sentret), + SPECIES_SPRITE(FURRET, gMonFrontPic_Furret), + SPECIES_SPRITE(HOOTHOOT, gMonFrontPic_Hoothoot), + SPECIES_SPRITE(NOCTOWL, gMonFrontPic_Noctowl), + SPECIES_SPRITE(LEDYBA, gMonFrontPic_Ledyba), + SPECIES_SPRITE(LEDIAN, gMonFrontPic_Ledian), + SPECIES_SPRITE(SPINARAK, gMonFrontPic_Spinarak), + SPECIES_SPRITE(ARIADOS, gMonFrontPic_Ariados), + SPECIES_SPRITE(CROBAT, gMonFrontPic_Crobat), + SPECIES_SPRITE(CHINCHOU, gMonFrontPic_Chinchou), + SPECIES_SPRITE(LANTURN, gMonFrontPic_Lanturn), + SPECIES_SPRITE(PICHU, gMonFrontPic_Pichu), + SPECIES_SPRITE(CLEFFA, gMonFrontPic_Cleffa), + SPECIES_SPRITE(IGGLYBUFF, gMonFrontPic_Igglybuff), + SPECIES_SPRITE(TOGEPI, gMonFrontPic_Togepi), + SPECIES_SPRITE(TOGETIC, gMonFrontPic_Togetic), + SPECIES_SPRITE(NATU, gMonFrontPic_Natu), + SPECIES_SPRITE(XATU, gMonFrontPic_Xatu), + SPECIES_SPRITE(MAREEP, gMonFrontPic_Mareep), + SPECIES_SPRITE(FLAAFFY, gMonFrontPic_Flaaffy), + SPECIES_SPRITE(AMPHAROS, gMonFrontPic_Ampharos), + SPECIES_SPRITE(BELLOSSOM, gMonFrontPic_Bellossom), + SPECIES_SPRITE(MARILL, gMonFrontPic_Marill), + SPECIES_SPRITE(AZUMARILL, gMonFrontPic_Azumarill), + SPECIES_SPRITE(SUDOWOODO, gMonFrontPic_Sudowoodo), + SPECIES_SPRITE(POLITOED, gMonFrontPic_Politoed), + SPECIES_SPRITE(HOPPIP, gMonFrontPic_Hoppip), + SPECIES_SPRITE(SKIPLOOM, gMonFrontPic_Skiploom), + SPECIES_SPRITE(JUMPLUFF, gMonFrontPic_Jumpluff), + SPECIES_SPRITE(AIPOM, gMonFrontPic_Aipom), + SPECIES_SPRITE(SUNKERN, gMonFrontPic_Sunkern), + SPECIES_SPRITE(SUNFLORA, gMonFrontPic_Sunflora), + SPECIES_SPRITE(YANMA, gMonFrontPic_Yanma), + SPECIES_SPRITE(WOOPER, gMonFrontPic_Wooper), + SPECIES_SPRITE(QUAGSIRE, gMonFrontPic_Quagsire), + SPECIES_SPRITE(ESPEON, gMonFrontPic_Espeon), + SPECIES_SPRITE(UMBREON, gMonFrontPic_Umbreon), + SPECIES_SPRITE(MURKROW, gMonFrontPic_Murkrow), + SPECIES_SPRITE(SLOWKING, gMonFrontPic_Slowking), + SPECIES_SPRITE(MISDREAVUS, gMonFrontPic_Misdreavus), + SPECIES_SPRITE(UNOWN, gMonFrontPic_UnownA), + SPECIES_SPRITE(WOBBUFFET, gMonFrontPic_Wobbuffet), + SPECIES_SPRITE(GIRAFARIG, gMonFrontPic_Girafarig), + SPECIES_SPRITE(PINECO, gMonFrontPic_Pineco), + SPECIES_SPRITE(FORRETRESS, gMonFrontPic_Forretress), + SPECIES_SPRITE(DUNSPARCE, gMonFrontPic_Dunsparce), + SPECIES_SPRITE(GLIGAR, gMonFrontPic_Gligar), + SPECIES_SPRITE(STEELIX, gMonFrontPic_Steelix), + SPECIES_SPRITE(SNUBBULL, gMonFrontPic_Snubbull), + SPECIES_SPRITE(GRANBULL, gMonFrontPic_Granbull), + SPECIES_SPRITE(QWILFISH, gMonFrontPic_Qwilfish), + SPECIES_SPRITE(SCIZOR, gMonFrontPic_Scizor), + SPECIES_SPRITE(SHUCKLE, gMonFrontPic_Shuckle), + SPECIES_SPRITE(HERACROSS, gMonFrontPic_Heracross), + SPECIES_SPRITE(SNEASEL, gMonFrontPic_Sneasel), + SPECIES_SPRITE(TEDDIURSA, gMonFrontPic_Teddiursa), + SPECIES_SPRITE(URSARING, gMonFrontPic_Ursaring), + SPECIES_SPRITE(SLUGMA, gMonFrontPic_Slugma), + SPECIES_SPRITE(MAGCARGO, gMonFrontPic_Magcargo), + SPECIES_SPRITE(SWINUB, gMonFrontPic_Swinub), + SPECIES_SPRITE(PILOSWINE, gMonFrontPic_Piloswine), + SPECIES_SPRITE(CORSOLA, gMonFrontPic_Corsola), + SPECIES_SPRITE(REMORAID, gMonFrontPic_Remoraid), + SPECIES_SPRITE(OCTILLERY, gMonFrontPic_Octillery), + SPECIES_SPRITE(DELIBIRD, gMonFrontPic_Delibird), + SPECIES_SPRITE(MANTINE, gMonFrontPic_Mantine), + SPECIES_SPRITE(SKARMORY, gMonFrontPic_Skarmory), + SPECIES_SPRITE(HOUNDOUR, gMonFrontPic_Houndour), + SPECIES_SPRITE(HOUNDOOM, gMonFrontPic_Houndoom), + SPECIES_SPRITE(KINGDRA, gMonFrontPic_Kingdra), + SPECIES_SPRITE(PHANPY, gMonFrontPic_Phanpy), + SPECIES_SPRITE(DONPHAN, gMonFrontPic_Donphan), + SPECIES_SPRITE(PORYGON2, gMonFrontPic_Porygon2), + SPECIES_SPRITE(STANTLER, gMonFrontPic_Stantler), + SPECIES_SPRITE(SMEARGLE, gMonFrontPic_Smeargle), + SPECIES_SPRITE(TYROGUE, gMonFrontPic_Tyrogue), + SPECIES_SPRITE(HITMONTOP, gMonFrontPic_Hitmontop), + SPECIES_SPRITE(SMOOCHUM, gMonFrontPic_Smoochum), + SPECIES_SPRITE(ELEKID, gMonFrontPic_Elekid), + SPECIES_SPRITE(MAGBY, gMonFrontPic_Magby), + SPECIES_SPRITE(MILTANK, gMonFrontPic_Miltank), + SPECIES_SPRITE(BLISSEY, gMonFrontPic_Blissey), + SPECIES_SPRITE(RAIKOU, gMonFrontPic_Raikou), + SPECIES_SPRITE(ENTEI, gMonFrontPic_Entei), + SPECIES_SPRITE(SUICUNE, gMonFrontPic_Suicune), + SPECIES_SPRITE(LARVITAR, gMonFrontPic_Larvitar), + SPECIES_SPRITE(PUPITAR, gMonFrontPic_Pupitar), + SPECIES_SPRITE(TYRANITAR, gMonFrontPic_Tyranitar), + SPECIES_SPRITE(LUGIA, gMonFrontPic_Lugia), + SPECIES_SPRITE(HO_OH, gMonFrontPic_HoOh), + SPECIES_SPRITE(CELEBI, gMonFrontPic_Celebi), + SPECIES_SPRITE(OLD_UNOWN_B, gMonFrontPic_DoubleQuestionMark), + SPECIES_SPRITE(OLD_UNOWN_C, gMonFrontPic_DoubleQuestionMark), + SPECIES_SPRITE(OLD_UNOWN_D, gMonFrontPic_DoubleQuestionMark), + SPECIES_SPRITE(OLD_UNOWN_E, gMonFrontPic_DoubleQuestionMark), + SPECIES_SPRITE(OLD_UNOWN_F, gMonFrontPic_DoubleQuestionMark), + SPECIES_SPRITE(OLD_UNOWN_G, gMonFrontPic_DoubleQuestionMark), + SPECIES_SPRITE(OLD_UNOWN_H, gMonFrontPic_DoubleQuestionMark), + SPECIES_SPRITE(OLD_UNOWN_I, gMonFrontPic_DoubleQuestionMark), + SPECIES_SPRITE(OLD_UNOWN_J, gMonFrontPic_DoubleQuestionMark), + SPECIES_SPRITE(OLD_UNOWN_K, gMonFrontPic_DoubleQuestionMark), + SPECIES_SPRITE(OLD_UNOWN_L, gMonFrontPic_DoubleQuestionMark), + SPECIES_SPRITE(OLD_UNOWN_M, gMonFrontPic_DoubleQuestionMark), + SPECIES_SPRITE(OLD_UNOWN_N, gMonFrontPic_DoubleQuestionMark), + SPECIES_SPRITE(OLD_UNOWN_O, gMonFrontPic_DoubleQuestionMark), + SPECIES_SPRITE(OLD_UNOWN_P, gMonFrontPic_DoubleQuestionMark), + SPECIES_SPRITE(OLD_UNOWN_Q, gMonFrontPic_DoubleQuestionMark), + SPECIES_SPRITE(OLD_UNOWN_R, gMonFrontPic_DoubleQuestionMark), + SPECIES_SPRITE(OLD_UNOWN_S, gMonFrontPic_DoubleQuestionMark), + SPECIES_SPRITE(OLD_UNOWN_T, gMonFrontPic_DoubleQuestionMark), + SPECIES_SPRITE(OLD_UNOWN_U, gMonFrontPic_DoubleQuestionMark), + SPECIES_SPRITE(OLD_UNOWN_V, gMonFrontPic_DoubleQuestionMark), + SPECIES_SPRITE(OLD_UNOWN_W, gMonFrontPic_DoubleQuestionMark), + SPECIES_SPRITE(OLD_UNOWN_X, gMonFrontPic_DoubleQuestionMark), + SPECIES_SPRITE(OLD_UNOWN_Y, gMonFrontPic_DoubleQuestionMark), + SPECIES_SPRITE(OLD_UNOWN_Z, gMonFrontPic_DoubleQuestionMark), + SPECIES_SPRITE(TREECKO, gMonFrontPic_Treecko), + SPECIES_SPRITE(GROVYLE, gMonFrontPic_Grovyle), + SPECIES_SPRITE(SCEPTILE, gMonFrontPic_Sceptile), + SPECIES_SPRITE(TORCHIC, gMonFrontPic_Torchic), + SPECIES_SPRITE(COMBUSKEN, gMonFrontPic_Combusken), + SPECIES_SPRITE(BLAZIKEN, gMonFrontPic_Blaziken), + SPECIES_SPRITE(MUDKIP, gMonFrontPic_Mudkip), + SPECIES_SPRITE(MARSHTOMP, gMonFrontPic_Marshtomp), + SPECIES_SPRITE(SWAMPERT, gMonFrontPic_Swampert), + SPECIES_SPRITE(POOCHYENA, gMonFrontPic_Poochyena), + SPECIES_SPRITE(MIGHTYENA, gMonFrontPic_Mightyena), + SPECIES_SPRITE(ZIGZAGOON, gMonFrontPic_Zigzagoon), + SPECIES_SPRITE(LINOONE, gMonFrontPic_Linoone), + SPECIES_SPRITE(WURMPLE, gMonFrontPic_Wurmple), + SPECIES_SPRITE(SILCOON, gMonFrontPic_Silcoon), + SPECIES_SPRITE(BEAUTIFLY, gMonFrontPic_Beautifly), + SPECIES_SPRITE(CASCOON, gMonFrontPic_Cascoon), + SPECIES_SPRITE(DUSTOX, gMonFrontPic_Dustox), + SPECIES_SPRITE(LOTAD, gMonFrontPic_Lotad), + SPECIES_SPRITE(LOMBRE, gMonFrontPic_Lombre), + SPECIES_SPRITE(LUDICOLO, gMonFrontPic_Ludicolo), + SPECIES_SPRITE(SEEDOT, gMonFrontPic_Seedot), + SPECIES_SPRITE(NUZLEAF, gMonFrontPic_Nuzleaf), + SPECIES_SPRITE(SHIFTRY, gMonFrontPic_Shiftry), + SPECIES_SPRITE(NINCADA, gMonFrontPic_Nincada), + SPECIES_SPRITE(NINJASK, gMonFrontPic_Ninjask), + SPECIES_SPRITE(SHEDINJA, gMonFrontPic_Shedinja), + SPECIES_SPRITE(TAILLOW, gMonFrontPic_Taillow), + SPECIES_SPRITE(SWELLOW, gMonFrontPic_Swellow), + SPECIES_SPRITE(SHROOMISH, gMonFrontPic_Shroomish), + SPECIES_SPRITE(BRELOOM, gMonFrontPic_Breloom), + SPECIES_SPRITE(SPINDA, gMonFrontPic_Spinda), + SPECIES_SPRITE(WINGULL, gMonFrontPic_Wingull), + SPECIES_SPRITE(PELIPPER, gMonFrontPic_Pelipper), + SPECIES_SPRITE(SURSKIT, gMonFrontPic_Surskit), + SPECIES_SPRITE(MASQUERAIN, gMonFrontPic_Masquerain), + SPECIES_SPRITE(WAILMER, gMonFrontPic_Wailmer), + SPECIES_SPRITE(WAILORD, gMonFrontPic_Wailord), + SPECIES_SPRITE(SKITTY, gMonFrontPic_Skitty), + SPECIES_SPRITE(DELCATTY, gMonFrontPic_Delcatty), + SPECIES_SPRITE(KECLEON, gMonFrontPic_Kecleon), + SPECIES_SPRITE(BALTOY, gMonFrontPic_Baltoy), + SPECIES_SPRITE(CLAYDOL, gMonFrontPic_Claydol), + SPECIES_SPRITE(NOSEPASS, gMonFrontPic_Nosepass), + SPECIES_SPRITE(TORKOAL, gMonFrontPic_Torkoal), + SPECIES_SPRITE(SABLEYE, gMonFrontPic_Sableye), + SPECIES_SPRITE(BARBOACH, gMonFrontPic_Barboach), + SPECIES_SPRITE(WHISCASH, gMonFrontPic_Whiscash), + SPECIES_SPRITE(LUVDISC, gMonFrontPic_Luvdisc), + SPECIES_SPRITE(CORPHISH, gMonFrontPic_Corphish), + SPECIES_SPRITE(CRAWDAUNT, gMonFrontPic_Crawdaunt), + SPECIES_SPRITE(FEEBAS, gMonFrontPic_Feebas), + SPECIES_SPRITE(MILOTIC, gMonFrontPic_Milotic), + SPECIES_SPRITE(CARVANHA, gMonFrontPic_Carvanha), + SPECIES_SPRITE(SHARPEDO, gMonFrontPic_Sharpedo), + SPECIES_SPRITE(TRAPINCH, gMonFrontPic_Trapinch), + SPECIES_SPRITE(VIBRAVA, gMonFrontPic_Vibrava), + SPECIES_SPRITE(FLYGON, gMonFrontPic_Flygon), + SPECIES_SPRITE(MAKUHITA, gMonFrontPic_Makuhita), + SPECIES_SPRITE(HARIYAMA, gMonFrontPic_Hariyama), + SPECIES_SPRITE(ELECTRIKE, gMonFrontPic_Electrike), + SPECIES_SPRITE(MANECTRIC, gMonFrontPic_Manectric), + SPECIES_SPRITE(NUMEL, gMonFrontPic_Numel), + SPECIES_SPRITE(CAMERUPT, gMonFrontPic_Camerupt), + SPECIES_SPRITE(SPHEAL, gMonFrontPic_Spheal), + SPECIES_SPRITE(SEALEO, gMonFrontPic_Sealeo), + SPECIES_SPRITE(WALREIN, gMonFrontPic_Walrein), + SPECIES_SPRITE(CACNEA, gMonFrontPic_Cacnea), + SPECIES_SPRITE(CACTURNE, gMonFrontPic_Cacturne), + SPECIES_SPRITE(SNORUNT, gMonFrontPic_Snorunt), + SPECIES_SPRITE(GLALIE, gMonFrontPic_Glalie), + SPECIES_SPRITE(LUNATONE, gMonFrontPic_Lunatone), + SPECIES_SPRITE(SOLROCK, gMonFrontPic_Solrock), + SPECIES_SPRITE(AZURILL, gMonFrontPic_Azurill), + SPECIES_SPRITE(SPOINK, gMonFrontPic_Spoink), + SPECIES_SPRITE(GRUMPIG, gMonFrontPic_Grumpig), + SPECIES_SPRITE(PLUSLE, gMonFrontPic_Plusle), + SPECIES_SPRITE(MINUN, gMonFrontPic_Minun), + SPECIES_SPRITE(MAWILE, gMonFrontPic_Mawile), + SPECIES_SPRITE(MEDITITE, gMonFrontPic_Meditite), + SPECIES_SPRITE(MEDICHAM, gMonFrontPic_Medicham), + SPECIES_SPRITE(SWABLU, gMonFrontPic_Swablu), + SPECIES_SPRITE(ALTARIA, gMonFrontPic_Altaria), + SPECIES_SPRITE(WYNAUT, gMonFrontPic_Wynaut), + SPECIES_SPRITE(DUSKULL, gMonFrontPic_Duskull), + SPECIES_SPRITE(DUSCLOPS, gMonFrontPic_Dusclops), + SPECIES_SPRITE(ROSELIA, gMonFrontPic_Roselia), + SPECIES_SPRITE(SLAKOTH, gMonFrontPic_Slakoth), + SPECIES_SPRITE(VIGOROTH, gMonFrontPic_Vigoroth), + SPECIES_SPRITE(SLAKING, gMonFrontPic_Slaking), + SPECIES_SPRITE(GULPIN, gMonFrontPic_Gulpin), + SPECIES_SPRITE(SWALOT, gMonFrontPic_Swalot), + SPECIES_SPRITE(TROPIUS, gMonFrontPic_Tropius), + SPECIES_SPRITE(WHISMUR, gMonFrontPic_Whismur), + SPECIES_SPRITE(LOUDRED, gMonFrontPic_Loudred), + SPECIES_SPRITE(EXPLOUD, gMonFrontPic_Exploud), + SPECIES_SPRITE(CLAMPERL, gMonFrontPic_Clamperl), + SPECIES_SPRITE(HUNTAIL, gMonFrontPic_Huntail), + SPECIES_SPRITE(GOREBYSS, gMonFrontPic_Gorebyss), + SPECIES_SPRITE(ABSOL, gMonFrontPic_Absol), + SPECIES_SPRITE(SHUPPET, gMonFrontPic_Shuppet), + SPECIES_SPRITE(BANETTE, gMonFrontPic_Banette), + SPECIES_SPRITE(SEVIPER, gMonFrontPic_Seviper), + SPECIES_SPRITE(ZANGOOSE, gMonFrontPic_Zangoose), + SPECIES_SPRITE(RELICANTH, gMonFrontPic_Relicanth), + SPECIES_SPRITE(ARON, gMonFrontPic_Aron), + SPECIES_SPRITE(LAIRON, gMonFrontPic_Lairon), + SPECIES_SPRITE(AGGRON, gMonFrontPic_Aggron), + SPECIES_SPRITE(CASTFORM, gMonFrontPic_Castform), + SPECIES_SPRITE(VOLBEAT, gMonFrontPic_Volbeat), + SPECIES_SPRITE(ILLUMISE, gMonFrontPic_Illumise), + SPECIES_SPRITE(LILEEP, gMonFrontPic_Lileep), + SPECIES_SPRITE(CRADILY, gMonFrontPic_Cradily), + SPECIES_SPRITE(ANORITH, gMonFrontPic_Anorith), + SPECIES_SPRITE(ARMALDO, gMonFrontPic_Armaldo), + SPECIES_SPRITE(RALTS, gMonFrontPic_Ralts), + SPECIES_SPRITE(KIRLIA, gMonFrontPic_Kirlia), + SPECIES_SPRITE(GARDEVOIR, gMonFrontPic_Gardevoir), + SPECIES_SPRITE(BAGON, gMonFrontPic_Bagon), + SPECIES_SPRITE(SHELGON, gMonFrontPic_Shelgon), + SPECIES_SPRITE(SALAMENCE, gMonFrontPic_Salamence), + SPECIES_SPRITE(BELDUM, gMonFrontPic_Beldum), + SPECIES_SPRITE(METANG, gMonFrontPic_Metang), + SPECIES_SPRITE(METAGROSS, gMonFrontPic_Metagross), + SPECIES_SPRITE(REGIROCK, gMonFrontPic_Regirock), + SPECIES_SPRITE(REGICE, gMonFrontPic_Regice), + SPECIES_SPRITE(REGISTEEL, gMonFrontPic_Registeel), + SPECIES_SPRITE(KYOGRE, gMonFrontPic_Kyogre), + SPECIES_SPRITE(GROUDON, gMonFrontPic_Groudon), + SPECIES_SPRITE(RAYQUAZA, gMonFrontPic_Rayquaza), + SPECIES_SPRITE(LATIAS, gMonFrontPic_Latias), + SPECIES_SPRITE(LATIOS, gMonFrontPic_Latios), + SPECIES_SPRITE(JIRACHI, gMonFrontPic_Jirachi), + SPECIES_SPRITE(DEOXYS, gMonFrontPic_Deoxys), + SPECIES_SPRITE(CHIMECHO, gMonFrontPic_Chimecho), + SPECIES_SPRITE(EGG, gMonFrontPic_Egg), + SPECIES_SPRITE(UNOWN_B, gMonFrontPic_UnownB), + SPECIES_SPRITE(UNOWN_C, gMonFrontPic_UnownC), + SPECIES_SPRITE(UNOWN_D, gMonFrontPic_UnownD), + SPECIES_SPRITE(UNOWN_E, gMonFrontPic_UnownE), + SPECIES_SPRITE(UNOWN_F, gMonFrontPic_UnownF), + SPECIES_SPRITE(UNOWN_G, gMonFrontPic_UnownG), + SPECIES_SPRITE(UNOWN_H, gMonFrontPic_UnownH), + SPECIES_SPRITE(UNOWN_I, gMonFrontPic_UnownI), + SPECIES_SPRITE(UNOWN_J, gMonFrontPic_UnownJ), + SPECIES_SPRITE(UNOWN_K, gMonFrontPic_UnownK), + SPECIES_SPRITE(UNOWN_L, gMonFrontPic_UnownL), + SPECIES_SPRITE(UNOWN_M, gMonFrontPic_UnownM), + SPECIES_SPRITE(UNOWN_N, gMonFrontPic_UnownN), + SPECIES_SPRITE(UNOWN_O, gMonFrontPic_UnownO), + SPECIES_SPRITE(UNOWN_P, gMonFrontPic_UnownP), + SPECIES_SPRITE(UNOWN_Q, gMonFrontPic_UnownQ), + SPECIES_SPRITE(UNOWN_R, gMonFrontPic_UnownR), + SPECIES_SPRITE(UNOWN_S, gMonFrontPic_UnownS), + SPECIES_SPRITE(UNOWN_T, gMonFrontPic_UnownT), + SPECIES_SPRITE(UNOWN_U, gMonFrontPic_UnownU), + SPECIES_SPRITE(UNOWN_V, gMonFrontPic_UnownV), + SPECIES_SPRITE(UNOWN_W, gMonFrontPic_UnownW), + SPECIES_SPRITE(UNOWN_X, gMonFrontPic_UnownX), + SPECIES_SPRITE(UNOWN_Y, gMonFrontPic_UnownY), + SPECIES_SPRITE(UNOWN_Z, gMonFrontPic_UnownZ), + SPECIES_SPRITE(UNOWN_EMARK, gMonFrontPic_UnownExclamationMark), + SPECIES_SPRITE(UNOWN_QMARK, gMonFrontPic_UnownQuestionMark), +}; diff --git a/src/data/pokemon_graphics/palette_table.h b/src/data/pokemon_graphics/palette_table.h new file mode 100644 index 000000000..35edcc76c --- /dev/null +++ b/src/data/pokemon_graphics/palette_table.h @@ -0,0 +1,443 @@ +const struct CompressedSpritePalette gMonPaletteTable[] = +{ + SPECIES_PAL(NONE, gMonPalette_CircledQuestionMark), + SPECIES_PAL(BULBASAUR, gMonPalette_Bulbasaur), + SPECIES_PAL(IVYSAUR, gMonPalette_Ivysaur), + SPECIES_PAL(VENUSAUR, gMonPalette_Venusaur), + SPECIES_PAL(CHARMANDER, gMonPalette_Charmander), + SPECIES_PAL(CHARMELEON, gMonPalette_Charmeleon), + SPECIES_PAL(CHARIZARD, gMonPalette_Charizard), + SPECIES_PAL(SQUIRTLE, gMonPalette_Squirtle), + SPECIES_PAL(WARTORTLE, gMonPalette_Wartortle), + SPECIES_PAL(BLASTOISE, gMonPalette_Blastoise), + SPECIES_PAL(CATERPIE, gMonPalette_Caterpie), + SPECIES_PAL(METAPOD, gMonPalette_Metapod), + SPECIES_PAL(BUTTERFREE, gMonPalette_Butterfree), + SPECIES_PAL(WEEDLE, gMonPalette_Weedle), + SPECIES_PAL(KAKUNA, gMonPalette_Kakuna), + SPECIES_PAL(BEEDRILL, gMonPalette_Beedrill), + SPECIES_PAL(PIDGEY, gMonPalette_Pidgey), + SPECIES_PAL(PIDGEOTTO, gMonPalette_Pidgeotto), + SPECIES_PAL(PIDGEOT, gMonPalette_Pidgeot), + SPECIES_PAL(RATTATA, gMonPalette_Rattata), + SPECIES_PAL(RATICATE, gMonPalette_Raticate), + SPECIES_PAL(SPEAROW, gMonPalette_Spearow), + SPECIES_PAL(FEAROW, gMonPalette_Fearow), + SPECIES_PAL(EKANS, gMonPalette_Ekans), + SPECIES_PAL(ARBOK, gMonPalette_Arbok), + SPECIES_PAL(PIKACHU, gMonPalette_Pikachu), + SPECIES_PAL(RAICHU, gMonPalette_Raichu), + SPECIES_PAL(SANDSHREW, gMonPalette_Sandshrew), + SPECIES_PAL(SANDSLASH, gMonPalette_Sandslash), + SPECIES_PAL(NIDORAN_F, gMonPalette_NidoranF), + SPECIES_PAL(NIDORINA, gMonPalette_Nidorina), + SPECIES_PAL(NIDOQUEEN, gMonPalette_Nidoqueen), + SPECIES_PAL(NIDORAN_M, gMonPalette_NidoranM), + SPECIES_PAL(NIDORINO, gMonPalette_Nidorino), + SPECIES_PAL(NIDOKING, gMonPalette_Nidoking), + SPECIES_PAL(CLEFAIRY, gMonPalette_Clefairy), + SPECIES_PAL(CLEFABLE, gMonPalette_Clefable), + SPECIES_PAL(VULPIX, gMonPalette_Vulpix), + SPECIES_PAL(NINETALES, gMonPalette_Ninetales), + SPECIES_PAL(JIGGLYPUFF, gMonPalette_Jigglypuff), + SPECIES_PAL(WIGGLYTUFF, gMonPalette_Wigglytuff), + SPECIES_PAL(ZUBAT, gMonPalette_Zubat), + SPECIES_PAL(GOLBAT, gMonPalette_Golbat), + SPECIES_PAL(ODDISH, gMonPalette_Oddish), + SPECIES_PAL(GLOOM, gMonPalette_Gloom), + SPECIES_PAL(VILEPLUME, gMonPalette_Vileplume), + SPECIES_PAL(PARAS, gMonPalette_Paras), + SPECIES_PAL(PARASECT, gMonPalette_Parasect), + SPECIES_PAL(VENONAT, gMonPalette_Venonat), + SPECIES_PAL(VENOMOTH, gMonPalette_Venomoth), + SPECIES_PAL(DIGLETT, gMonPalette_Diglett), + SPECIES_PAL(DUGTRIO, gMonPalette_Dugtrio), + SPECIES_PAL(MEOWTH, gMonPalette_Meowth), + SPECIES_PAL(PERSIAN, gMonPalette_Persian), + SPECIES_PAL(PSYDUCK, gMonPalette_Psyduck), + SPECIES_PAL(GOLDUCK, gMonPalette_Golduck), + SPECIES_PAL(MANKEY, gMonPalette_Mankey), + SPECIES_PAL(PRIMEAPE, gMonPalette_Primeape), + SPECIES_PAL(GROWLITHE, gMonPalette_Growlithe), + SPECIES_PAL(ARCANINE, gMonPalette_Arcanine), + SPECIES_PAL(POLIWAG, gMonPalette_Poliwag), + SPECIES_PAL(POLIWHIRL, gMonPalette_Poliwhirl), + SPECIES_PAL(POLIWRATH, gMonPalette_Poliwrath), + SPECIES_PAL(ABRA, gMonPalette_Abra), + SPECIES_PAL(KADABRA, gMonPalette_Kadabra), + SPECIES_PAL(ALAKAZAM, gMonPalette_Alakazam), + SPECIES_PAL(MACHOP, gMonPalette_Machop), + SPECIES_PAL(MACHOKE, gMonPalette_Machoke), + SPECIES_PAL(MACHAMP, gMonPalette_Machamp), + SPECIES_PAL(BELLSPROUT, gMonPalette_Bellsprout), + SPECIES_PAL(WEEPINBELL, gMonPalette_Weepinbell), + SPECIES_PAL(VICTREEBEL, gMonPalette_Victreebel), + SPECIES_PAL(TENTACOOL, gMonPalette_Tentacool), + SPECIES_PAL(TENTACRUEL, gMonPalette_Tentacruel), + SPECIES_PAL(GEODUDE, gMonPalette_Geodude), + SPECIES_PAL(GRAVELER, gMonPalette_Graveler), + SPECIES_PAL(GOLEM, gMonPalette_Golem), + SPECIES_PAL(PONYTA, gMonPalette_Ponyta), + SPECIES_PAL(RAPIDASH, gMonPalette_Rapidash), + SPECIES_PAL(SLOWPOKE, gMonPalette_Slowpoke), + SPECIES_PAL(SLOWBRO, gMonPalette_Slowbro), + SPECIES_PAL(MAGNEMITE, gMonPalette_Magnemite), + SPECIES_PAL(MAGNETON, gMonPalette_Magneton), + SPECIES_PAL(FARFETCHD, gMonPalette_Farfetchd), + SPECIES_PAL(DODUO, gMonPalette_Doduo), + SPECIES_PAL(DODRIO, gMonPalette_Dodrio), + SPECIES_PAL(SEEL, gMonPalette_Seel), + SPECIES_PAL(DEWGONG, gMonPalette_Dewgong), + SPECIES_PAL(GRIMER, gMonPalette_Grimer), + SPECIES_PAL(MUK, gMonPalette_Muk), + SPECIES_PAL(SHELLDER, gMonPalette_Shellder), + SPECIES_PAL(CLOYSTER, gMonPalette_Cloyster), + SPECIES_PAL(GASTLY, gMonPalette_Gastly), + SPECIES_PAL(HAUNTER, gMonPalette_Haunter), + SPECIES_PAL(GENGAR, gMonPalette_Gengar), + SPECIES_PAL(ONIX, gMonPalette_Onix), + SPECIES_PAL(DROWZEE, gMonPalette_Drowzee), + SPECIES_PAL(HYPNO, gMonPalette_Hypno), + SPECIES_PAL(KRABBY, gMonPalette_Krabby), + SPECIES_PAL(KINGLER, gMonPalette_Kingler), + SPECIES_PAL(VOLTORB, gMonPalette_Voltorb), + SPECIES_PAL(ELECTRODE, gMonPalette_Electrode), + SPECIES_PAL(EXEGGCUTE, gMonPalette_Exeggcute), + SPECIES_PAL(EXEGGUTOR, gMonPalette_Exeggutor), + SPECIES_PAL(CUBONE, gMonPalette_Cubone), + SPECIES_PAL(MAROWAK, gMonPalette_Marowak), + SPECIES_PAL(HITMONLEE, gMonPalette_Hitmonlee), + SPECIES_PAL(HITMONCHAN, gMonPalette_Hitmonchan), + SPECIES_PAL(LICKITUNG, gMonPalette_Lickitung), + SPECIES_PAL(KOFFING, gMonPalette_Koffing), + SPECIES_PAL(WEEZING, gMonPalette_Weezing), + SPECIES_PAL(RHYHORN, gMonPalette_Rhyhorn), + SPECIES_PAL(RHYDON, gMonPalette_Rhydon), + SPECIES_PAL(CHANSEY, gMonPalette_Chansey), + SPECIES_PAL(TANGELA, gMonPalette_Tangela), + SPECIES_PAL(KANGASKHAN, gMonPalette_Kangaskhan), + SPECIES_PAL(HORSEA, gMonPalette_Horsea), + SPECIES_PAL(SEADRA, gMonPalette_Seadra), + SPECIES_PAL(GOLDEEN, gMonPalette_Goldeen), + SPECIES_PAL(SEAKING, gMonPalette_Seaking), + SPECIES_PAL(STARYU, gMonPalette_Staryu), + SPECIES_PAL(STARMIE, gMonPalette_Starmie), + SPECIES_PAL(MR_MIME, gMonPalette_Mrmime), + SPECIES_PAL(SCYTHER, gMonPalette_Scyther), + SPECIES_PAL(JYNX, gMonPalette_Jynx), + SPECIES_PAL(ELECTABUZZ, gMonPalette_Electabuzz), + SPECIES_PAL(MAGMAR, gMonPalette_Magmar), + SPECIES_PAL(PINSIR, gMonPalette_Pinsir), + SPECIES_PAL(TAUROS, gMonPalette_Tauros), + SPECIES_PAL(MAGIKARP, gMonPalette_Magikarp), + SPECIES_PAL(GYARADOS, gMonPalette_Gyarados), + SPECIES_PAL(LAPRAS, gMonPalette_Lapras), + SPECIES_PAL(DITTO, gMonPalette_Ditto), + SPECIES_PAL(EEVEE, gMonPalette_Eevee), + SPECIES_PAL(VAPOREON, gMonPalette_Vaporeon), + SPECIES_PAL(JOLTEON, gMonPalette_Jolteon), + SPECIES_PAL(FLAREON, gMonPalette_Flareon), + SPECIES_PAL(PORYGON, gMonPalette_Porygon), + SPECIES_PAL(OMANYTE, gMonPalette_Omanyte), + SPECIES_PAL(OMASTAR, gMonPalette_Omastar), + SPECIES_PAL(KABUTO, gMonPalette_Kabuto), + SPECIES_PAL(KABUTOPS, gMonPalette_Kabutops), + SPECIES_PAL(AERODACTYL, gMonPalette_Aerodactyl), + SPECIES_PAL(SNORLAX, gMonPalette_Snorlax), + SPECIES_PAL(ARTICUNO, gMonPalette_Articuno), + SPECIES_PAL(ZAPDOS, gMonPalette_Zapdos), + SPECIES_PAL(MOLTRES, gMonPalette_Moltres), + SPECIES_PAL(DRATINI, gMonPalette_Dratini), + SPECIES_PAL(DRAGONAIR, gMonPalette_Dragonair), + SPECIES_PAL(DRAGONITE, gMonPalette_Dragonite), + SPECIES_PAL(MEWTWO, gMonPalette_Mewtwo), + SPECIES_PAL(MEW, gMonPalette_Mew), + SPECIES_PAL(CHIKORITA, gMonPalette_Chikorita), + SPECIES_PAL(BAYLEEF, gMonPalette_Bayleef), + SPECIES_PAL(MEGANIUM, gMonPalette_Meganium), + SPECIES_PAL(CYNDAQUIL, gMonPalette_Cyndaquil), + SPECIES_PAL(QUILAVA, gMonPalette_Quilava), + SPECIES_PAL(TYPHLOSION, gMonPalette_Typhlosion), + SPECIES_PAL(TOTODILE, gMonPalette_Totodile), + SPECIES_PAL(CROCONAW, gMonPalette_Croconaw), + SPECIES_PAL(FERALIGATR, gMonPalette_Feraligatr), + SPECIES_PAL(SENTRET, gMonPalette_Sentret), + SPECIES_PAL(FURRET, gMonPalette_Furret), + SPECIES_PAL(HOOTHOOT, gMonPalette_Hoothoot), + SPECIES_PAL(NOCTOWL, gMonPalette_Noctowl), + SPECIES_PAL(LEDYBA, gMonPalette_Ledyba), + SPECIES_PAL(LEDIAN, gMonPalette_Ledian), + SPECIES_PAL(SPINARAK, gMonPalette_Spinarak), + SPECIES_PAL(ARIADOS, gMonPalette_Ariados), + SPECIES_PAL(CROBAT, gMonPalette_Crobat), + SPECIES_PAL(CHINCHOU, gMonPalette_Chinchou), + SPECIES_PAL(LANTURN, gMonPalette_Lanturn), + SPECIES_PAL(PICHU, gMonPalette_Pichu), + SPECIES_PAL(CLEFFA, gMonPalette_Cleffa), + SPECIES_PAL(IGGLYBUFF, gMonPalette_Igglybuff), + SPECIES_PAL(TOGEPI, gMonPalette_Togepi), + SPECIES_PAL(TOGETIC, gMonPalette_Togetic), + SPECIES_PAL(NATU, gMonPalette_Natu), + SPECIES_PAL(XATU, gMonPalette_Xatu), + SPECIES_PAL(MAREEP, gMonPalette_Mareep), + SPECIES_PAL(FLAAFFY, gMonPalette_Flaaffy), + SPECIES_PAL(AMPHAROS, gMonPalette_Ampharos), + SPECIES_PAL(BELLOSSOM, gMonPalette_Bellossom), + SPECIES_PAL(MARILL, gMonPalette_Marill), + SPECIES_PAL(AZUMARILL, gMonPalette_Azumarill), + SPECIES_PAL(SUDOWOODO, gMonPalette_Sudowoodo), + SPECIES_PAL(POLITOED, gMonPalette_Politoed), + SPECIES_PAL(HOPPIP, gMonPalette_Hoppip), + SPECIES_PAL(SKIPLOOM, gMonPalette_Skiploom), + SPECIES_PAL(JUMPLUFF, gMonPalette_Jumpluff), + SPECIES_PAL(AIPOM, gMonPalette_Aipom), + SPECIES_PAL(SUNKERN, gMonPalette_Sunkern), + SPECIES_PAL(SUNFLORA, gMonPalette_Sunflora), + SPECIES_PAL(YANMA, gMonPalette_Yanma), + SPECIES_PAL(WOOPER, gMonPalette_Wooper), + SPECIES_PAL(QUAGSIRE, gMonPalette_Quagsire), + SPECIES_PAL(ESPEON, gMonPalette_Espeon), + SPECIES_PAL(UMBREON, gMonPalette_Umbreon), + SPECIES_PAL(MURKROW, gMonPalette_Murkrow), + SPECIES_PAL(SLOWKING, gMonPalette_Slowking), + SPECIES_PAL(MISDREAVUS, gMonPalette_Misdreavus), + SPECIES_PAL(UNOWN, gMonPalette_Unown), + SPECIES_PAL(WOBBUFFET, gMonPalette_Wobbuffet), + SPECIES_PAL(GIRAFARIG, gMonPalette_Girafarig), + SPECIES_PAL(PINECO, gMonPalette_Pineco), + SPECIES_PAL(FORRETRESS, gMonPalette_Forretress), + SPECIES_PAL(DUNSPARCE, gMonPalette_Dunsparce), + SPECIES_PAL(GLIGAR, gMonPalette_Gligar), + SPECIES_PAL(STEELIX, gMonPalette_Steelix), + SPECIES_PAL(SNUBBULL, gMonPalette_Snubbull), + SPECIES_PAL(GRANBULL, gMonPalette_Granbull), + SPECIES_PAL(QWILFISH, gMonPalette_Qwilfish), + SPECIES_PAL(SCIZOR, gMonPalette_Scizor), + SPECIES_PAL(SHUCKLE, gMonPalette_Shuckle), + SPECIES_PAL(HERACROSS, gMonPalette_Heracross), + SPECIES_PAL(SNEASEL, gMonPalette_Sneasel), + SPECIES_PAL(TEDDIURSA, gMonPalette_Teddiursa), + SPECIES_PAL(URSARING, gMonPalette_Ursaring), + SPECIES_PAL(SLUGMA, gMonPalette_Slugma), + SPECIES_PAL(MAGCARGO, gMonPalette_Magcargo), + SPECIES_PAL(SWINUB, gMonPalette_Swinub), + SPECIES_PAL(PILOSWINE, gMonPalette_Piloswine), + SPECIES_PAL(CORSOLA, gMonPalette_Corsola), + SPECIES_PAL(REMORAID, gMonPalette_Remoraid), + SPECIES_PAL(OCTILLERY, gMonPalette_Octillery), + SPECIES_PAL(DELIBIRD, gMonPalette_Delibird), + SPECIES_PAL(MANTINE, gMonPalette_Mantine), + SPECIES_PAL(SKARMORY, gMonPalette_Skarmory), + SPECIES_PAL(HOUNDOUR, gMonPalette_Houndour), + SPECIES_PAL(HOUNDOOM, gMonPalette_Houndoom), + SPECIES_PAL(KINGDRA, gMonPalette_Kingdra), + SPECIES_PAL(PHANPY, gMonPalette_Phanpy), + SPECIES_PAL(DONPHAN, gMonPalette_Donphan), + SPECIES_PAL(PORYGON2, gMonPalette_Porygon2), + SPECIES_PAL(STANTLER, gMonPalette_Stantler), + SPECIES_PAL(SMEARGLE, gMonPalette_Smeargle), + SPECIES_PAL(TYROGUE, gMonPalette_Tyrogue), + SPECIES_PAL(HITMONTOP, gMonPalette_Hitmontop), + SPECIES_PAL(SMOOCHUM, gMonPalette_Smoochum), + SPECIES_PAL(ELEKID, gMonPalette_Elekid), + SPECIES_PAL(MAGBY, gMonPalette_Magby), + SPECIES_PAL(MILTANK, gMonPalette_Miltank), + SPECIES_PAL(BLISSEY, gMonPalette_Blissey), + SPECIES_PAL(RAIKOU, gMonPalette_Raikou), + SPECIES_PAL(ENTEI, gMonPalette_Entei), + SPECIES_PAL(SUICUNE, gMonPalette_Suicune), + SPECIES_PAL(LARVITAR, gMonPalette_Larvitar), + SPECIES_PAL(PUPITAR, gMonPalette_Pupitar), + SPECIES_PAL(TYRANITAR, gMonPalette_Tyranitar), + SPECIES_PAL(LUGIA, gMonPalette_Lugia), + SPECIES_PAL(HO_OH, gMonPalette_HoOh), + SPECIES_PAL(CELEBI, gMonPalette_Celebi), + SPECIES_PAL(OLD_UNOWN_B, gMonPalette_DoubleQuestionMark), + SPECIES_PAL(OLD_UNOWN_C, gMonPalette_DoubleQuestionMark), + SPECIES_PAL(OLD_UNOWN_D, gMonPalette_DoubleQuestionMark), + SPECIES_PAL(OLD_UNOWN_E, gMonPalette_DoubleQuestionMark), + SPECIES_PAL(OLD_UNOWN_F, gMonPalette_DoubleQuestionMark), + SPECIES_PAL(OLD_UNOWN_G, gMonPalette_DoubleQuestionMark), + SPECIES_PAL(OLD_UNOWN_H, gMonPalette_DoubleQuestionMark), + SPECIES_PAL(OLD_UNOWN_I, gMonPalette_DoubleQuestionMark), + SPECIES_PAL(OLD_UNOWN_J, gMonPalette_DoubleQuestionMark), + SPECIES_PAL(OLD_UNOWN_K, gMonPalette_DoubleQuestionMark), + SPECIES_PAL(OLD_UNOWN_L, gMonPalette_DoubleQuestionMark), + SPECIES_PAL(OLD_UNOWN_M, gMonPalette_DoubleQuestionMark), + SPECIES_PAL(OLD_UNOWN_N, gMonPalette_DoubleQuestionMark), + SPECIES_PAL(OLD_UNOWN_O, gMonPalette_DoubleQuestionMark), + SPECIES_PAL(OLD_UNOWN_P, gMonPalette_DoubleQuestionMark), + SPECIES_PAL(OLD_UNOWN_Q, gMonPalette_DoubleQuestionMark), + SPECIES_PAL(OLD_UNOWN_R, gMonPalette_DoubleQuestionMark), + SPECIES_PAL(OLD_UNOWN_S, gMonPalette_DoubleQuestionMark), + SPECIES_PAL(OLD_UNOWN_T, gMonPalette_DoubleQuestionMark), + SPECIES_PAL(OLD_UNOWN_U, gMonPalette_DoubleQuestionMark), + SPECIES_PAL(OLD_UNOWN_V, gMonPalette_DoubleQuestionMark), + SPECIES_PAL(OLD_UNOWN_W, gMonPalette_DoubleQuestionMark), + SPECIES_PAL(OLD_UNOWN_X, gMonPalette_DoubleQuestionMark), + SPECIES_PAL(OLD_UNOWN_Y, gMonPalette_DoubleQuestionMark), + SPECIES_PAL(OLD_UNOWN_Z, gMonPalette_DoubleQuestionMark), + SPECIES_PAL(TREECKO, gMonPalette_Treecko), + SPECIES_PAL(GROVYLE, gMonPalette_Grovyle), + SPECIES_PAL(SCEPTILE, gMonPalette_Sceptile), + SPECIES_PAL(TORCHIC, gMonPalette_Torchic), + SPECIES_PAL(COMBUSKEN, gMonPalette_Combusken), + SPECIES_PAL(BLAZIKEN, gMonPalette_Blaziken), + SPECIES_PAL(MUDKIP, gMonPalette_Mudkip), + SPECIES_PAL(MARSHTOMP, gMonPalette_Marshtomp), + SPECIES_PAL(SWAMPERT, gMonPalette_Swampert), + SPECIES_PAL(POOCHYENA, gMonPalette_Poochyena), + SPECIES_PAL(MIGHTYENA, gMonPalette_Mightyena), + SPECIES_PAL(ZIGZAGOON, gMonPalette_Zigzagoon), + SPECIES_PAL(LINOONE, gMonPalette_Linoone), + SPECIES_PAL(WURMPLE, gMonPalette_Wurmple), + SPECIES_PAL(SILCOON, gMonPalette_Silcoon), + SPECIES_PAL(BEAUTIFLY, gMonPalette_Beautifly), + SPECIES_PAL(CASCOON, gMonPalette_Cascoon), + SPECIES_PAL(DUSTOX, gMonPalette_Dustox), + SPECIES_PAL(LOTAD, gMonPalette_Lotad), + SPECIES_PAL(LOMBRE, gMonPalette_Lombre), + SPECIES_PAL(LUDICOLO, gMonPalette_Ludicolo), + SPECIES_PAL(SEEDOT, gMonPalette_Seedot), + SPECIES_PAL(NUZLEAF, gMonPalette_Nuzleaf), + SPECIES_PAL(SHIFTRY, gMonPalette_Shiftry), + SPECIES_PAL(NINCADA, gMonPalette_Nincada), + SPECIES_PAL(NINJASK, gMonPalette_Ninjask), + SPECIES_PAL(SHEDINJA, gMonPalette_Shedinja), + SPECIES_PAL(TAILLOW, gMonPalette_Taillow), + SPECIES_PAL(SWELLOW, gMonPalette_Swellow), + SPECIES_PAL(SHROOMISH, gMonPalette_Shroomish), + SPECIES_PAL(BRELOOM, gMonPalette_Breloom), + SPECIES_PAL(SPINDA, gMonPalette_Spinda), + SPECIES_PAL(WINGULL, gMonPalette_Wingull), + SPECIES_PAL(PELIPPER, gMonPalette_Pelipper), + SPECIES_PAL(SURSKIT, gMonPalette_Surskit), + SPECIES_PAL(MASQUERAIN, gMonPalette_Masquerain), + SPECIES_PAL(WAILMER, gMonPalette_Wailmer), + SPECIES_PAL(WAILORD, gMonPalette_Wailord), + SPECIES_PAL(SKITTY, gMonPalette_Skitty), + SPECIES_PAL(DELCATTY, gMonPalette_Delcatty), + SPECIES_PAL(KECLEON, gMonPalette_Kecleon), + SPECIES_PAL(BALTOY, gMonPalette_Baltoy), + SPECIES_PAL(CLAYDOL, gMonPalette_Claydol), + SPECIES_PAL(NOSEPASS, gMonPalette_Nosepass), + SPECIES_PAL(TORKOAL, gMonPalette_Torkoal), + SPECIES_PAL(SABLEYE, gMonPalette_Sableye), + SPECIES_PAL(BARBOACH, gMonPalette_Barboach), + SPECIES_PAL(WHISCASH, gMonPalette_Whiscash), + SPECIES_PAL(LUVDISC, gMonPalette_Luvdisc), + SPECIES_PAL(CORPHISH, gMonPalette_Corphish), + SPECIES_PAL(CRAWDAUNT, gMonPalette_Crawdaunt), + SPECIES_PAL(FEEBAS, gMonPalette_Feebas), + SPECIES_PAL(MILOTIC, gMonPalette_Milotic), + SPECIES_PAL(CARVANHA, gMonPalette_Carvanha), + SPECIES_PAL(SHARPEDO, gMonPalette_Sharpedo), + SPECIES_PAL(TRAPINCH, gMonPalette_Trapinch), + SPECIES_PAL(VIBRAVA, gMonPalette_Vibrava), + SPECIES_PAL(FLYGON, gMonPalette_Flygon), + SPECIES_PAL(MAKUHITA, gMonPalette_Makuhita), + SPECIES_PAL(HARIYAMA, gMonPalette_Hariyama), + SPECIES_PAL(ELECTRIKE, gMonPalette_Electrike), + SPECIES_PAL(MANECTRIC, gMonPalette_Manectric), + SPECIES_PAL(NUMEL, gMonPalette_Numel), + SPECIES_PAL(CAMERUPT, gMonPalette_Camerupt), + SPECIES_PAL(SPHEAL, gMonPalette_Spheal), + SPECIES_PAL(SEALEO, gMonPalette_Sealeo), + SPECIES_PAL(WALREIN, gMonPalette_Walrein), + SPECIES_PAL(CACNEA, gMonPalette_Cacnea), + SPECIES_PAL(CACTURNE, gMonPalette_Cacturne), + SPECIES_PAL(SNORUNT, gMonPalette_Snorunt), + SPECIES_PAL(GLALIE, gMonPalette_Glalie), + SPECIES_PAL(LUNATONE, gMonPalette_Lunatone), + SPECIES_PAL(SOLROCK, gMonPalette_Solrock), + SPECIES_PAL(AZURILL, gMonPalette_Azurill), + SPECIES_PAL(SPOINK, gMonPalette_Spoink), + SPECIES_PAL(GRUMPIG, gMonPalette_Grumpig), + SPECIES_PAL(PLUSLE, gMonPalette_Plusle), + SPECIES_PAL(MINUN, gMonPalette_Minun), + SPECIES_PAL(MAWILE, gMonPalette_Mawile), + SPECIES_PAL(MEDITITE, gMonPalette_Meditite), + SPECIES_PAL(MEDICHAM, gMonPalette_Medicham), + SPECIES_PAL(SWABLU, gMonPalette_Swablu), + SPECIES_PAL(ALTARIA, gMonPalette_Altaria), + SPECIES_PAL(WYNAUT, gMonPalette_Wynaut), + SPECIES_PAL(DUSKULL, gMonPalette_Duskull), + SPECIES_PAL(DUSCLOPS, gMonPalette_Dusclops), + SPECIES_PAL(ROSELIA, gMonPalette_Roselia), + SPECIES_PAL(SLAKOTH, gMonPalette_Slakoth), + SPECIES_PAL(VIGOROTH, gMonPalette_Vigoroth), + SPECIES_PAL(SLAKING, gMonPalette_Slaking), + SPECIES_PAL(GULPIN, gMonPalette_Gulpin), + SPECIES_PAL(SWALOT, gMonPalette_Swalot), + SPECIES_PAL(TROPIUS, gMonPalette_Tropius), + SPECIES_PAL(WHISMUR, gMonPalette_Whismur), + SPECIES_PAL(LOUDRED, gMonPalette_Loudred), + SPECIES_PAL(EXPLOUD, gMonPalette_Exploud), + SPECIES_PAL(CLAMPERL, gMonPalette_Clamperl), + SPECIES_PAL(HUNTAIL, gMonPalette_Huntail), + SPECIES_PAL(GOREBYSS, gMonPalette_Gorebyss), + SPECIES_PAL(ABSOL, gMonPalette_Absol), + SPECIES_PAL(SHUPPET, gMonPalette_Shuppet), + SPECIES_PAL(BANETTE, gMonPalette_Banette), + SPECIES_PAL(SEVIPER, gMonPalette_Seviper), + SPECIES_PAL(ZANGOOSE, gMonPalette_Zangoose), + SPECIES_PAL(RELICANTH, gMonPalette_Relicanth), + SPECIES_PAL(ARON, gMonPalette_Aron), + SPECIES_PAL(LAIRON, gMonPalette_Lairon), + SPECIES_PAL(AGGRON, gMonPalette_Aggron), + SPECIES_PAL(CASTFORM, gMonPalette_Castform), + SPECIES_PAL(VOLBEAT, gMonPalette_Volbeat), + SPECIES_PAL(ILLUMISE, gMonPalette_Illumise), + SPECIES_PAL(LILEEP, gMonPalette_Lileep), + SPECIES_PAL(CRADILY, gMonPalette_Cradily), + SPECIES_PAL(ANORITH, gMonPalette_Anorith), + SPECIES_PAL(ARMALDO, gMonPalette_Armaldo), + SPECIES_PAL(RALTS, gMonPalette_Ralts), + SPECIES_PAL(KIRLIA, gMonPalette_Kirlia), + SPECIES_PAL(GARDEVOIR, gMonPalette_Gardevoir), + SPECIES_PAL(BAGON, gMonPalette_Bagon), + SPECIES_PAL(SHELGON, gMonPalette_Shelgon), + SPECIES_PAL(SALAMENCE, gMonPalette_Salamence), + SPECIES_PAL(BELDUM, gMonPalette_Beldum), + SPECIES_PAL(METANG, gMonPalette_Metang), + SPECIES_PAL(METAGROSS, gMonPalette_Metagross), + SPECIES_PAL(REGIROCK, gMonPalette_Regirock), + SPECIES_PAL(REGICE, gMonPalette_Regice), + SPECIES_PAL(REGISTEEL, gMonPalette_Registeel), + SPECIES_PAL(KYOGRE, gMonPalette_Kyogre), + SPECIES_PAL(GROUDON, gMonPalette_Groudon), + SPECIES_PAL(RAYQUAZA, gMonPalette_Rayquaza), + SPECIES_PAL(LATIAS, gMonPalette_Latias), + SPECIES_PAL(LATIOS, gMonPalette_Latios), + SPECIES_PAL(JIRACHI, gMonPalette_Jirachi), + SPECIES_PAL(DEOXYS, gMonPalette_Deoxys), + SPECIES_PAL(CHIMECHO, gMonPalette_Chimecho), + SPECIES_PAL(EGG, gMonPalette_Egg), + SPECIES_PAL(UNOWN_B, gMonPalette_Unown), + SPECIES_PAL(UNOWN_C, gMonPalette_Unown), + SPECIES_PAL(UNOWN_D, gMonPalette_Unown), + SPECIES_PAL(UNOWN_E, gMonPalette_Unown), + SPECIES_PAL(UNOWN_F, gMonPalette_Unown), + SPECIES_PAL(UNOWN_G, gMonPalette_Unown), + SPECIES_PAL(UNOWN_H, gMonPalette_Unown), + SPECIES_PAL(UNOWN_I, gMonPalette_Unown), + SPECIES_PAL(UNOWN_J, gMonPalette_Unown), + SPECIES_PAL(UNOWN_K, gMonPalette_Unown), + SPECIES_PAL(UNOWN_L, gMonPalette_Unown), + SPECIES_PAL(UNOWN_M, gMonPalette_Unown), + SPECIES_PAL(UNOWN_N, gMonPalette_Unown), + SPECIES_PAL(UNOWN_O, gMonPalette_Unown), + SPECIES_PAL(UNOWN_P, gMonPalette_Unown), + SPECIES_PAL(UNOWN_Q, gMonPalette_Unown), + SPECIES_PAL(UNOWN_R, gMonPalette_Unown), + SPECIES_PAL(UNOWN_S, gMonPalette_Unown), + SPECIES_PAL(UNOWN_T, gMonPalette_Unown), + SPECIES_PAL(UNOWN_U, gMonPalette_Unown), + SPECIES_PAL(UNOWN_V, gMonPalette_Unown), + SPECIES_PAL(UNOWN_W, gMonPalette_Unown), + SPECIES_PAL(UNOWN_X, gMonPalette_Unown), + SPECIES_PAL(UNOWN_Y, gMonPalette_Unown), + SPECIES_PAL(UNOWN_Z, gMonPalette_Unown), + SPECIES_PAL(UNOWN_EMARK, gMonPalette_Unown), + SPECIES_PAL(UNOWN_QMARK, gMonPalette_Unown), +}; diff --git a/src/data/pokemon_graphics/shiny_palette_table.h b/src/data/pokemon_graphics/shiny_palette_table.h new file mode 100644 index 000000000..8b1cfcaac --- /dev/null +++ b/src/data/pokemon_graphics/shiny_palette_table.h @@ -0,0 +1,443 @@ +const struct CompressedSpritePalette gMonShinyPaletteTable[] = +{ + SPECIES_SHINY_PAL(NONE, gMonShinyPalette_CircledQuestionMark), + SPECIES_SHINY_PAL(BULBASAUR, gMonShinyPalette_Bulbasaur), + SPECIES_SHINY_PAL(IVYSAUR, gMonShinyPalette_Ivysaur), + SPECIES_SHINY_PAL(VENUSAUR, gMonShinyPalette_Venusaur), + SPECIES_SHINY_PAL(CHARMANDER, gMonShinyPalette_Charmander), + SPECIES_SHINY_PAL(CHARMELEON, gMonShinyPalette_Charmeleon), + SPECIES_SHINY_PAL(CHARIZARD, gMonShinyPalette_Charizard), + SPECIES_SHINY_PAL(SQUIRTLE, gMonShinyPalette_Squirtle), + SPECIES_SHINY_PAL(WARTORTLE, gMonShinyPalette_Wartortle), + SPECIES_SHINY_PAL(BLASTOISE, gMonShinyPalette_Blastoise), + SPECIES_SHINY_PAL(CATERPIE, gMonShinyPalette_Caterpie), + SPECIES_SHINY_PAL(METAPOD, gMonShinyPalette_Metapod), + SPECIES_SHINY_PAL(BUTTERFREE, gMonShinyPalette_Butterfree), + SPECIES_SHINY_PAL(WEEDLE, gMonShinyPalette_Weedle), + SPECIES_SHINY_PAL(KAKUNA, gMonShinyPalette_Kakuna), + SPECIES_SHINY_PAL(BEEDRILL, gMonShinyPalette_Beedrill), + SPECIES_SHINY_PAL(PIDGEY, gMonShinyPalette_Pidgey), + SPECIES_SHINY_PAL(PIDGEOTTO, gMonShinyPalette_Pidgeotto), + SPECIES_SHINY_PAL(PIDGEOT, gMonShinyPalette_Pidgeot), + SPECIES_SHINY_PAL(RATTATA, gMonShinyPalette_Rattata), + SPECIES_SHINY_PAL(RATICATE, gMonShinyPalette_Raticate), + SPECIES_SHINY_PAL(SPEAROW, gMonShinyPalette_Spearow), + SPECIES_SHINY_PAL(FEAROW, gMonShinyPalette_Fearow), + SPECIES_SHINY_PAL(EKANS, gMonShinyPalette_Ekans), + SPECIES_SHINY_PAL(ARBOK, gMonShinyPalette_Arbok), + SPECIES_SHINY_PAL(PIKACHU, gMonShinyPalette_Pikachu), + SPECIES_SHINY_PAL(RAICHU, gMonShinyPalette_Raichu), + SPECIES_SHINY_PAL(SANDSHREW, gMonShinyPalette_Sandshrew), + SPECIES_SHINY_PAL(SANDSLASH, gMonShinyPalette_Sandslash), + SPECIES_SHINY_PAL(NIDORAN_F, gMonShinyPalette_NidoranF), + SPECIES_SHINY_PAL(NIDORINA, gMonShinyPalette_Nidorina), + SPECIES_SHINY_PAL(NIDOQUEEN, gMonShinyPalette_Nidoqueen), + SPECIES_SHINY_PAL(NIDORAN_M, gMonShinyPalette_NidoranM), + SPECIES_SHINY_PAL(NIDORINO, gMonShinyPalette_Nidorino), + SPECIES_SHINY_PAL(NIDOKING, gMonShinyPalette_Nidoking), + SPECIES_SHINY_PAL(CLEFAIRY, gMonShinyPalette_Clefairy), + SPECIES_SHINY_PAL(CLEFABLE, gMonShinyPalette_Clefable), + SPECIES_SHINY_PAL(VULPIX, gMonShinyPalette_Vulpix), + SPECIES_SHINY_PAL(NINETALES, gMonShinyPalette_Ninetales), + SPECIES_SHINY_PAL(JIGGLYPUFF, gMonShinyPalette_Jigglypuff), + SPECIES_SHINY_PAL(WIGGLYTUFF, gMonShinyPalette_Wigglytuff), + SPECIES_SHINY_PAL(ZUBAT, gMonShinyPalette_Zubat), + SPECIES_SHINY_PAL(GOLBAT, gMonShinyPalette_Golbat), + SPECIES_SHINY_PAL(ODDISH, gMonShinyPalette_Oddish), + SPECIES_SHINY_PAL(GLOOM, gMonShinyPalette_Gloom), + SPECIES_SHINY_PAL(VILEPLUME, gMonShinyPalette_Vileplume), + SPECIES_SHINY_PAL(PARAS, gMonShinyPalette_Paras), + SPECIES_SHINY_PAL(PARASECT, gMonShinyPalette_Parasect), + SPECIES_SHINY_PAL(VENONAT, gMonShinyPalette_Venonat), + SPECIES_SHINY_PAL(VENOMOTH, gMonShinyPalette_Venomoth), + SPECIES_SHINY_PAL(DIGLETT, gMonShinyPalette_Diglett), + SPECIES_SHINY_PAL(DUGTRIO, gMonShinyPalette_Dugtrio), + SPECIES_SHINY_PAL(MEOWTH, gMonShinyPalette_Meowth), + SPECIES_SHINY_PAL(PERSIAN, gMonShinyPalette_Persian), + SPECIES_SHINY_PAL(PSYDUCK, gMonShinyPalette_Psyduck), + SPECIES_SHINY_PAL(GOLDUCK, gMonShinyPalette_Golduck), + SPECIES_SHINY_PAL(MANKEY, gMonShinyPalette_Mankey), + SPECIES_SHINY_PAL(PRIMEAPE, gMonShinyPalette_Primeape), + SPECIES_SHINY_PAL(GROWLITHE, gMonShinyPalette_Growlithe), + SPECIES_SHINY_PAL(ARCANINE, gMonShinyPalette_Arcanine), + SPECIES_SHINY_PAL(POLIWAG, gMonShinyPalette_Poliwag), + SPECIES_SHINY_PAL(POLIWHIRL, gMonShinyPalette_Poliwhirl), + SPECIES_SHINY_PAL(POLIWRATH, gMonShinyPalette_Poliwrath), + SPECIES_SHINY_PAL(ABRA, gMonShinyPalette_Abra), + SPECIES_SHINY_PAL(KADABRA, gMonShinyPalette_Kadabra), + SPECIES_SHINY_PAL(ALAKAZAM, gMonShinyPalette_Alakazam), + SPECIES_SHINY_PAL(MACHOP, gMonShinyPalette_Machop), + SPECIES_SHINY_PAL(MACHOKE, gMonShinyPalette_Machoke), + SPECIES_SHINY_PAL(MACHAMP, gMonShinyPalette_Machamp), + SPECIES_SHINY_PAL(BELLSPROUT, gMonShinyPalette_Bellsprout), + SPECIES_SHINY_PAL(WEEPINBELL, gMonShinyPalette_Weepinbell), + SPECIES_SHINY_PAL(VICTREEBEL, gMonShinyPalette_Victreebel), + SPECIES_SHINY_PAL(TENTACOOL, gMonShinyPalette_Tentacool), + SPECIES_SHINY_PAL(TENTACRUEL, gMonShinyPalette_Tentacruel), + SPECIES_SHINY_PAL(GEODUDE, gMonShinyPalette_Geodude), + SPECIES_SHINY_PAL(GRAVELER, gMonShinyPalette_Graveler), + SPECIES_SHINY_PAL(GOLEM, gMonShinyPalette_Golem), + SPECIES_SHINY_PAL(PONYTA, gMonShinyPalette_Ponyta), + SPECIES_SHINY_PAL(RAPIDASH, gMonShinyPalette_Rapidash), + SPECIES_SHINY_PAL(SLOWPOKE, gMonShinyPalette_Slowpoke), + SPECIES_SHINY_PAL(SLOWBRO, gMonShinyPalette_Slowbro), + SPECIES_SHINY_PAL(MAGNEMITE, gMonShinyPalette_Magnemite), + SPECIES_SHINY_PAL(MAGNETON, gMonShinyPalette_Magneton), + SPECIES_SHINY_PAL(FARFETCHD, gMonShinyPalette_Farfetchd), + SPECIES_SHINY_PAL(DODUO, gMonShinyPalette_Doduo), + SPECIES_SHINY_PAL(DODRIO, gMonShinyPalette_Dodrio), + SPECIES_SHINY_PAL(SEEL, gMonShinyPalette_Seel), + SPECIES_SHINY_PAL(DEWGONG, gMonShinyPalette_Dewgong), + SPECIES_SHINY_PAL(GRIMER, gMonShinyPalette_Grimer), + SPECIES_SHINY_PAL(MUK, gMonShinyPalette_Muk), + SPECIES_SHINY_PAL(SHELLDER, gMonShinyPalette_Shellder), + SPECIES_SHINY_PAL(CLOYSTER, gMonShinyPalette_Cloyster), + SPECIES_SHINY_PAL(GASTLY, gMonShinyPalette_Gastly), + SPECIES_SHINY_PAL(HAUNTER, gMonShinyPalette_Haunter), + SPECIES_SHINY_PAL(GENGAR, gMonShinyPalette_Gengar), + SPECIES_SHINY_PAL(ONIX, gMonShinyPalette_Onix), + SPECIES_SHINY_PAL(DROWZEE, gMonShinyPalette_Drowzee), + SPECIES_SHINY_PAL(HYPNO, gMonShinyPalette_Hypno), + SPECIES_SHINY_PAL(KRABBY, gMonShinyPalette_Krabby), + SPECIES_SHINY_PAL(KINGLER, gMonShinyPalette_Kingler), + SPECIES_SHINY_PAL(VOLTORB, gMonShinyPalette_Voltorb), + SPECIES_SHINY_PAL(ELECTRODE, gMonShinyPalette_Electrode), + SPECIES_SHINY_PAL(EXEGGCUTE, gMonShinyPalette_Exeggcute), + SPECIES_SHINY_PAL(EXEGGUTOR, gMonShinyPalette_Exeggutor), + SPECIES_SHINY_PAL(CUBONE, gMonShinyPalette_Cubone), + SPECIES_SHINY_PAL(MAROWAK, gMonShinyPalette_Marowak), + SPECIES_SHINY_PAL(HITMONLEE, gMonShinyPalette_Hitmonlee), + SPECIES_SHINY_PAL(HITMONCHAN, gMonShinyPalette_Hitmonchan), + SPECIES_SHINY_PAL(LICKITUNG, gMonShinyPalette_Lickitung), + SPECIES_SHINY_PAL(KOFFING, gMonShinyPalette_Koffing), + SPECIES_SHINY_PAL(WEEZING, gMonShinyPalette_Weezing), + SPECIES_SHINY_PAL(RHYHORN, gMonShinyPalette_Rhyhorn), + SPECIES_SHINY_PAL(RHYDON, gMonShinyPalette_Rhydon), + SPECIES_SHINY_PAL(CHANSEY, gMonShinyPalette_Chansey), + SPECIES_SHINY_PAL(TANGELA, gMonShinyPalette_Tangela), + SPECIES_SHINY_PAL(KANGASKHAN, gMonShinyPalette_Kangaskhan), + SPECIES_SHINY_PAL(HORSEA, gMonShinyPalette_Horsea), + SPECIES_SHINY_PAL(SEADRA, gMonShinyPalette_Seadra), + SPECIES_SHINY_PAL(GOLDEEN, gMonShinyPalette_Goldeen), + SPECIES_SHINY_PAL(SEAKING, gMonShinyPalette_Seaking), + SPECIES_SHINY_PAL(STARYU, gMonShinyPalette_Staryu), + SPECIES_SHINY_PAL(STARMIE, gMonShinyPalette_Starmie), + SPECIES_SHINY_PAL(MR_MIME, gMonShinyPalette_Mrmime), + SPECIES_SHINY_PAL(SCYTHER, gMonShinyPalette_Scyther), + SPECIES_SHINY_PAL(JYNX, gMonShinyPalette_Jynx), + SPECIES_SHINY_PAL(ELECTABUZZ, gMonShinyPalette_Electabuzz), + SPECIES_SHINY_PAL(MAGMAR, gMonShinyPalette_Magmar), + SPECIES_SHINY_PAL(PINSIR, gMonShinyPalette_Pinsir), + SPECIES_SHINY_PAL(TAUROS, gMonShinyPalette_Tauros), + SPECIES_SHINY_PAL(MAGIKARP, gMonShinyPalette_Magikarp), + SPECIES_SHINY_PAL(GYARADOS, gMonShinyPalette_Gyarados), + SPECIES_SHINY_PAL(LAPRAS, gMonShinyPalette_Lapras), + SPECIES_SHINY_PAL(DITTO, gMonShinyPalette_Ditto), + SPECIES_SHINY_PAL(EEVEE, gMonShinyPalette_Eevee), + SPECIES_SHINY_PAL(VAPOREON, gMonShinyPalette_Vaporeon), + SPECIES_SHINY_PAL(JOLTEON, gMonShinyPalette_Jolteon), + SPECIES_SHINY_PAL(FLAREON, gMonShinyPalette_Flareon), + SPECIES_SHINY_PAL(PORYGON, gMonShinyPalette_Porygon), + SPECIES_SHINY_PAL(OMANYTE, gMonShinyPalette_Omanyte), + SPECIES_SHINY_PAL(OMASTAR, gMonShinyPalette_Omastar), + SPECIES_SHINY_PAL(KABUTO, gMonShinyPalette_Kabuto), + SPECIES_SHINY_PAL(KABUTOPS, gMonShinyPalette_Kabutops), + SPECIES_SHINY_PAL(AERODACTYL, gMonShinyPalette_Aerodactyl), + SPECIES_SHINY_PAL(SNORLAX, gMonShinyPalette_Snorlax), + SPECIES_SHINY_PAL(ARTICUNO, gMonShinyPalette_Articuno), + SPECIES_SHINY_PAL(ZAPDOS, gMonShinyPalette_Zapdos), + SPECIES_SHINY_PAL(MOLTRES, gMonShinyPalette_Moltres), + SPECIES_SHINY_PAL(DRATINI, gMonShinyPalette_Dratini), + SPECIES_SHINY_PAL(DRAGONAIR, gMonShinyPalette_Dragonair), + SPECIES_SHINY_PAL(DRAGONITE, gMonShinyPalette_Dragonite), + SPECIES_SHINY_PAL(MEWTWO, gMonShinyPalette_Mewtwo), + SPECIES_SHINY_PAL(MEW, gMonShinyPalette_Mew), + SPECIES_SHINY_PAL(CHIKORITA, gMonShinyPalette_Chikorita), + SPECIES_SHINY_PAL(BAYLEEF, gMonShinyPalette_Bayleef), + SPECIES_SHINY_PAL(MEGANIUM, gMonShinyPalette_Meganium), + SPECIES_SHINY_PAL(CYNDAQUIL, gMonShinyPalette_Cyndaquil), + SPECIES_SHINY_PAL(QUILAVA, gMonShinyPalette_Quilava), + SPECIES_SHINY_PAL(TYPHLOSION, gMonShinyPalette_Typhlosion), + SPECIES_SHINY_PAL(TOTODILE, gMonShinyPalette_Totodile), + SPECIES_SHINY_PAL(CROCONAW, gMonShinyPalette_Croconaw), + SPECIES_SHINY_PAL(FERALIGATR, gMonShinyPalette_Feraligatr), + SPECIES_SHINY_PAL(SENTRET, gMonShinyPalette_Sentret), + SPECIES_SHINY_PAL(FURRET, gMonShinyPalette_Furret), + SPECIES_SHINY_PAL(HOOTHOOT, gMonShinyPalette_Hoothoot), + SPECIES_SHINY_PAL(NOCTOWL, gMonShinyPalette_Noctowl), + SPECIES_SHINY_PAL(LEDYBA, gMonShinyPalette_Ledyba), + SPECIES_SHINY_PAL(LEDIAN, gMonShinyPalette_Ledian), + SPECIES_SHINY_PAL(SPINARAK, gMonShinyPalette_Spinarak), + SPECIES_SHINY_PAL(ARIADOS, gMonShinyPalette_Ariados), + SPECIES_SHINY_PAL(CROBAT, gMonShinyPalette_Crobat), + SPECIES_SHINY_PAL(CHINCHOU, gMonShinyPalette_Chinchou), + SPECIES_SHINY_PAL(LANTURN, gMonShinyPalette_Lanturn), + SPECIES_SHINY_PAL(PICHU, gMonShinyPalette_Pichu), + SPECIES_SHINY_PAL(CLEFFA, gMonShinyPalette_Cleffa), + SPECIES_SHINY_PAL(IGGLYBUFF, gMonShinyPalette_Igglybuff), + SPECIES_SHINY_PAL(TOGEPI, gMonShinyPalette_Togepi), + SPECIES_SHINY_PAL(TOGETIC, gMonShinyPalette_Togetic), + SPECIES_SHINY_PAL(NATU, gMonShinyPalette_Natu), + SPECIES_SHINY_PAL(XATU, gMonShinyPalette_Xatu), + SPECIES_SHINY_PAL(MAREEP, gMonShinyPalette_Mareep), + SPECIES_SHINY_PAL(FLAAFFY, gMonShinyPalette_Flaaffy), + SPECIES_SHINY_PAL(AMPHAROS, gMonShinyPalette_Ampharos), + SPECIES_SHINY_PAL(BELLOSSOM, gMonShinyPalette_Bellossom), + SPECIES_SHINY_PAL(MARILL, gMonShinyPalette_Marill), + SPECIES_SHINY_PAL(AZUMARILL, gMonShinyPalette_Azumarill), + SPECIES_SHINY_PAL(SUDOWOODO, gMonShinyPalette_Sudowoodo), + SPECIES_SHINY_PAL(POLITOED, gMonShinyPalette_Politoed), + SPECIES_SHINY_PAL(HOPPIP, gMonShinyPalette_Hoppip), + SPECIES_SHINY_PAL(SKIPLOOM, gMonShinyPalette_Skiploom), + SPECIES_SHINY_PAL(JUMPLUFF, gMonShinyPalette_Jumpluff), + SPECIES_SHINY_PAL(AIPOM, gMonShinyPalette_Aipom), + SPECIES_SHINY_PAL(SUNKERN, gMonShinyPalette_Sunkern), + SPECIES_SHINY_PAL(SUNFLORA, gMonShinyPalette_Sunflora), + SPECIES_SHINY_PAL(YANMA, gMonShinyPalette_Yanma), + SPECIES_SHINY_PAL(WOOPER, gMonShinyPalette_Wooper), + SPECIES_SHINY_PAL(QUAGSIRE, gMonShinyPalette_Quagsire), + SPECIES_SHINY_PAL(ESPEON, gMonShinyPalette_Espeon), + SPECIES_SHINY_PAL(UMBREON, gMonShinyPalette_Umbreon), + SPECIES_SHINY_PAL(MURKROW, gMonShinyPalette_Murkrow), + SPECIES_SHINY_PAL(SLOWKING, gMonShinyPalette_Slowking), + SPECIES_SHINY_PAL(MISDREAVUS, gMonShinyPalette_Misdreavus), + SPECIES_SHINY_PAL(UNOWN, gMonShinyPalette_Unown), + SPECIES_SHINY_PAL(WOBBUFFET, gMonShinyPalette_Wobbuffet), + SPECIES_SHINY_PAL(GIRAFARIG, gMonShinyPalette_Girafarig), + SPECIES_SHINY_PAL(PINECO, gMonShinyPalette_Pineco), + SPECIES_SHINY_PAL(FORRETRESS, gMonShinyPalette_Forretress), + SPECIES_SHINY_PAL(DUNSPARCE, gMonShinyPalette_Dunsparce), + SPECIES_SHINY_PAL(GLIGAR, gMonShinyPalette_Gligar), + SPECIES_SHINY_PAL(STEELIX, gMonShinyPalette_Steelix), + SPECIES_SHINY_PAL(SNUBBULL, gMonShinyPalette_Snubbull), + SPECIES_SHINY_PAL(GRANBULL, gMonShinyPalette_Granbull), + SPECIES_SHINY_PAL(QWILFISH, gMonShinyPalette_Qwilfish), + SPECIES_SHINY_PAL(SCIZOR, gMonShinyPalette_Scizor), + SPECIES_SHINY_PAL(SHUCKLE, gMonShinyPalette_Shuckle), + SPECIES_SHINY_PAL(HERACROSS, gMonShinyPalette_Heracross), + SPECIES_SHINY_PAL(SNEASEL, gMonShinyPalette_Sneasel), + SPECIES_SHINY_PAL(TEDDIURSA, gMonShinyPalette_Teddiursa), + SPECIES_SHINY_PAL(URSARING, gMonShinyPalette_Ursaring), + SPECIES_SHINY_PAL(SLUGMA, gMonShinyPalette_Slugma), + SPECIES_SHINY_PAL(MAGCARGO, gMonShinyPalette_Magcargo), + SPECIES_SHINY_PAL(SWINUB, gMonShinyPalette_Swinub), + SPECIES_SHINY_PAL(PILOSWINE, gMonShinyPalette_Piloswine), + SPECIES_SHINY_PAL(CORSOLA, gMonShinyPalette_Corsola), + SPECIES_SHINY_PAL(REMORAID, gMonShinyPalette_Remoraid), + SPECIES_SHINY_PAL(OCTILLERY, gMonShinyPalette_Octillery), + SPECIES_SHINY_PAL(DELIBIRD, gMonShinyPalette_Delibird), + SPECIES_SHINY_PAL(MANTINE, gMonShinyPalette_Mantine), + SPECIES_SHINY_PAL(SKARMORY, gMonShinyPalette_Skarmory), + SPECIES_SHINY_PAL(HOUNDOUR, gMonShinyPalette_Houndour), + SPECIES_SHINY_PAL(HOUNDOOM, gMonShinyPalette_Houndoom), + SPECIES_SHINY_PAL(KINGDRA, gMonShinyPalette_Kingdra), + SPECIES_SHINY_PAL(PHANPY, gMonShinyPalette_Phanpy), + SPECIES_SHINY_PAL(DONPHAN, gMonShinyPalette_Donphan), + SPECIES_SHINY_PAL(PORYGON2, gMonShinyPalette_Porygon2), + SPECIES_SHINY_PAL(STANTLER, gMonShinyPalette_Stantler), + SPECIES_SHINY_PAL(SMEARGLE, gMonShinyPalette_Smeargle), + SPECIES_SHINY_PAL(TYROGUE, gMonShinyPalette_Tyrogue), + SPECIES_SHINY_PAL(HITMONTOP, gMonShinyPalette_Hitmontop), + SPECIES_SHINY_PAL(SMOOCHUM, gMonShinyPalette_Smoochum), + SPECIES_SHINY_PAL(ELEKID, gMonShinyPalette_Elekid), + SPECIES_SHINY_PAL(MAGBY, gMonShinyPalette_Magby), + SPECIES_SHINY_PAL(MILTANK, gMonShinyPalette_Miltank), + SPECIES_SHINY_PAL(BLISSEY, gMonShinyPalette_Blissey), + SPECIES_SHINY_PAL(RAIKOU, gMonShinyPalette_Raikou), + SPECIES_SHINY_PAL(ENTEI, gMonShinyPalette_Entei), + SPECIES_SHINY_PAL(SUICUNE, gMonShinyPalette_Suicune), + SPECIES_SHINY_PAL(LARVITAR, gMonShinyPalette_Larvitar), + SPECIES_SHINY_PAL(PUPITAR, gMonShinyPalette_Pupitar), + SPECIES_SHINY_PAL(TYRANITAR, gMonShinyPalette_Tyranitar), + SPECIES_SHINY_PAL(LUGIA, gMonShinyPalette_Lugia), + SPECIES_SHINY_PAL(HO_OH, gMonShinyPalette_HoOh), + SPECIES_SHINY_PAL(CELEBI, gMonShinyPalette_Celebi), + SPECIES_SHINY_PAL(OLD_UNOWN_B, gMonShinyPalette_DoubleQuestionMark), + SPECIES_SHINY_PAL(OLD_UNOWN_C, gMonShinyPalette_DoubleQuestionMark), + SPECIES_SHINY_PAL(OLD_UNOWN_D, gMonShinyPalette_DoubleQuestionMark), + SPECIES_SHINY_PAL(OLD_UNOWN_E, gMonShinyPalette_DoubleQuestionMark), + SPECIES_SHINY_PAL(OLD_UNOWN_F, gMonShinyPalette_DoubleQuestionMark), + SPECIES_SHINY_PAL(OLD_UNOWN_G, gMonShinyPalette_DoubleQuestionMark), + SPECIES_SHINY_PAL(OLD_UNOWN_H, gMonShinyPalette_DoubleQuestionMark), + SPECIES_SHINY_PAL(OLD_UNOWN_I, gMonShinyPalette_DoubleQuestionMark), + SPECIES_SHINY_PAL(OLD_UNOWN_J, gMonShinyPalette_DoubleQuestionMark), + SPECIES_SHINY_PAL(OLD_UNOWN_K, gMonShinyPalette_DoubleQuestionMark), + SPECIES_SHINY_PAL(OLD_UNOWN_L, gMonShinyPalette_DoubleQuestionMark), + SPECIES_SHINY_PAL(OLD_UNOWN_M, gMonShinyPalette_DoubleQuestionMark), + SPECIES_SHINY_PAL(OLD_UNOWN_N, gMonShinyPalette_DoubleQuestionMark), + SPECIES_SHINY_PAL(OLD_UNOWN_O, gMonShinyPalette_DoubleQuestionMark), + SPECIES_SHINY_PAL(OLD_UNOWN_P, gMonShinyPalette_DoubleQuestionMark), + SPECIES_SHINY_PAL(OLD_UNOWN_Q, gMonShinyPalette_DoubleQuestionMark), + SPECIES_SHINY_PAL(OLD_UNOWN_R, gMonShinyPalette_DoubleQuestionMark), + SPECIES_SHINY_PAL(OLD_UNOWN_S, gMonShinyPalette_DoubleQuestionMark), + SPECIES_SHINY_PAL(OLD_UNOWN_T, gMonShinyPalette_DoubleQuestionMark), + SPECIES_SHINY_PAL(OLD_UNOWN_U, gMonShinyPalette_DoubleQuestionMark), + SPECIES_SHINY_PAL(OLD_UNOWN_V, gMonShinyPalette_DoubleQuestionMark), + SPECIES_SHINY_PAL(OLD_UNOWN_W, gMonShinyPalette_DoubleQuestionMark), + SPECIES_SHINY_PAL(OLD_UNOWN_X, gMonShinyPalette_DoubleQuestionMark), + SPECIES_SHINY_PAL(OLD_UNOWN_Y, gMonShinyPalette_DoubleQuestionMark), + SPECIES_SHINY_PAL(OLD_UNOWN_Z, gMonShinyPalette_DoubleQuestionMark), + SPECIES_SHINY_PAL(TREECKO, gMonShinyPalette_Treecko), + SPECIES_SHINY_PAL(GROVYLE, gMonShinyPalette_Grovyle), + SPECIES_SHINY_PAL(SCEPTILE, gMonShinyPalette_Sceptile), + SPECIES_SHINY_PAL(TORCHIC, gMonShinyPalette_Torchic), + SPECIES_SHINY_PAL(COMBUSKEN, gMonShinyPalette_Combusken), + SPECIES_SHINY_PAL(BLAZIKEN, gMonShinyPalette_Blaziken), + SPECIES_SHINY_PAL(MUDKIP, gMonShinyPalette_Mudkip), + SPECIES_SHINY_PAL(MARSHTOMP, gMonShinyPalette_Marshtomp), + SPECIES_SHINY_PAL(SWAMPERT, gMonShinyPalette_Swampert), + SPECIES_SHINY_PAL(POOCHYENA, gMonShinyPalette_Poochyena), + SPECIES_SHINY_PAL(MIGHTYENA, gMonShinyPalette_Mightyena), + SPECIES_SHINY_PAL(ZIGZAGOON, gMonShinyPalette_Zigzagoon), + SPECIES_SHINY_PAL(LINOONE, gMonShinyPalette_Linoone), + SPECIES_SHINY_PAL(WURMPLE, gMonShinyPalette_Wurmple), + SPECIES_SHINY_PAL(SILCOON, gMonShinyPalette_Silcoon), + SPECIES_SHINY_PAL(BEAUTIFLY, gMonShinyPalette_Beautifly), + SPECIES_SHINY_PAL(CASCOON, gMonShinyPalette_Cascoon), + SPECIES_SHINY_PAL(DUSTOX, gMonShinyPalette_Dustox), + SPECIES_SHINY_PAL(LOTAD, gMonShinyPalette_Lotad), + SPECIES_SHINY_PAL(LOMBRE, gMonShinyPalette_Lombre), + SPECIES_SHINY_PAL(LUDICOLO, gMonShinyPalette_Ludicolo), + SPECIES_SHINY_PAL(SEEDOT, gMonShinyPalette_Seedot), + SPECIES_SHINY_PAL(NUZLEAF, gMonShinyPalette_Nuzleaf), + SPECIES_SHINY_PAL(SHIFTRY, gMonShinyPalette_Shiftry), + SPECIES_SHINY_PAL(NINCADA, gMonShinyPalette_Nincada), + SPECIES_SHINY_PAL(NINJASK, gMonShinyPalette_Ninjask), + SPECIES_SHINY_PAL(SHEDINJA, gMonShinyPalette_Shedinja), + SPECIES_SHINY_PAL(TAILLOW, gMonShinyPalette_Taillow), + SPECIES_SHINY_PAL(SWELLOW, gMonShinyPalette_Swellow), + SPECIES_SHINY_PAL(SHROOMISH, gMonShinyPalette_Shroomish), + SPECIES_SHINY_PAL(BRELOOM, gMonShinyPalette_Breloom), + SPECIES_SHINY_PAL(SPINDA, gMonShinyPalette_Spinda), + SPECIES_SHINY_PAL(WINGULL, gMonShinyPalette_Wingull), + SPECIES_SHINY_PAL(PELIPPER, gMonShinyPalette_Pelipper), + SPECIES_SHINY_PAL(SURSKIT, gMonShinyPalette_Surskit), + SPECIES_SHINY_PAL(MASQUERAIN, gMonShinyPalette_Masquerain), + SPECIES_SHINY_PAL(WAILMER, gMonShinyPalette_Wailmer), + SPECIES_SHINY_PAL(WAILORD, gMonShinyPalette_Wailord), + SPECIES_SHINY_PAL(SKITTY, gMonShinyPalette_Skitty), + SPECIES_SHINY_PAL(DELCATTY, gMonShinyPalette_Delcatty), + SPECIES_SHINY_PAL(KECLEON, gMonShinyPalette_Kecleon), + SPECIES_SHINY_PAL(BALTOY, gMonShinyPalette_Baltoy), + SPECIES_SHINY_PAL(CLAYDOL, gMonShinyPalette_Claydol), + SPECIES_SHINY_PAL(NOSEPASS, gMonShinyPalette_Nosepass), + SPECIES_SHINY_PAL(TORKOAL, gMonShinyPalette_Torkoal), + SPECIES_SHINY_PAL(SABLEYE, gMonShinyPalette_Sableye), + SPECIES_SHINY_PAL(BARBOACH, gMonShinyPalette_Barboach), + SPECIES_SHINY_PAL(WHISCASH, gMonShinyPalette_Whiscash), + SPECIES_SHINY_PAL(LUVDISC, gMonShinyPalette_Luvdisc), + SPECIES_SHINY_PAL(CORPHISH, gMonShinyPalette_Corphish), + SPECIES_SHINY_PAL(CRAWDAUNT, gMonShinyPalette_Crawdaunt), + SPECIES_SHINY_PAL(FEEBAS, gMonShinyPalette_Feebas), + SPECIES_SHINY_PAL(MILOTIC, gMonShinyPalette_Milotic), + SPECIES_SHINY_PAL(CARVANHA, gMonShinyPalette_Carvanha), + SPECIES_SHINY_PAL(SHARPEDO, gMonShinyPalette_Sharpedo), + SPECIES_SHINY_PAL(TRAPINCH, gMonShinyPalette_Trapinch), + SPECIES_SHINY_PAL(VIBRAVA, gMonShinyPalette_Vibrava), + SPECIES_SHINY_PAL(FLYGON, gMonShinyPalette_Flygon), + SPECIES_SHINY_PAL(MAKUHITA, gMonShinyPalette_Makuhita), + SPECIES_SHINY_PAL(HARIYAMA, gMonShinyPalette_Hariyama), + SPECIES_SHINY_PAL(ELECTRIKE, gMonShinyPalette_Electrike), + SPECIES_SHINY_PAL(MANECTRIC, gMonShinyPalette_Manectric), + SPECIES_SHINY_PAL(NUMEL, gMonShinyPalette_Numel), + SPECIES_SHINY_PAL(CAMERUPT, gMonShinyPalette_Camerupt), + SPECIES_SHINY_PAL(SPHEAL, gMonShinyPalette_Spheal), + SPECIES_SHINY_PAL(SEALEO, gMonShinyPalette_Sealeo), + SPECIES_SHINY_PAL(WALREIN, gMonShinyPalette_Walrein), + SPECIES_SHINY_PAL(CACNEA, gMonShinyPalette_Cacnea), + SPECIES_SHINY_PAL(CACTURNE, gMonShinyPalette_Cacturne), + SPECIES_SHINY_PAL(SNORUNT, gMonShinyPalette_Snorunt), + SPECIES_SHINY_PAL(GLALIE, gMonShinyPalette_Glalie), + SPECIES_SHINY_PAL(LUNATONE, gMonShinyPalette_Lunatone), + SPECIES_SHINY_PAL(SOLROCK, gMonShinyPalette_Solrock), + SPECIES_SHINY_PAL(AZURILL, gMonShinyPalette_Azurill), + SPECIES_SHINY_PAL(SPOINK, gMonShinyPalette_Spoink), + SPECIES_SHINY_PAL(GRUMPIG, gMonShinyPalette_Grumpig), + SPECIES_SHINY_PAL(PLUSLE, gMonShinyPalette_Plusle), + SPECIES_SHINY_PAL(MINUN, gMonShinyPalette_Minun), + SPECIES_SHINY_PAL(MAWILE, gMonShinyPalette_Mawile), + SPECIES_SHINY_PAL(MEDITITE, gMonShinyPalette_Meditite), + SPECIES_SHINY_PAL(MEDICHAM, gMonShinyPalette_Medicham), + SPECIES_SHINY_PAL(SWABLU, gMonShinyPalette_Swablu), + SPECIES_SHINY_PAL(ALTARIA, gMonShinyPalette_Altaria), + SPECIES_SHINY_PAL(WYNAUT, gMonShinyPalette_Wynaut), + SPECIES_SHINY_PAL(DUSKULL, gMonShinyPalette_Duskull), + SPECIES_SHINY_PAL(DUSCLOPS, gMonShinyPalette_Dusclops), + SPECIES_SHINY_PAL(ROSELIA, gMonShinyPalette_Roselia), + SPECIES_SHINY_PAL(SLAKOTH, gMonShinyPalette_Slakoth), + SPECIES_SHINY_PAL(VIGOROTH, gMonShinyPalette_Vigoroth), + SPECIES_SHINY_PAL(SLAKING, gMonShinyPalette_Slaking), + SPECIES_SHINY_PAL(GULPIN, gMonShinyPalette_Gulpin), + SPECIES_SHINY_PAL(SWALOT, gMonShinyPalette_Swalot), + SPECIES_SHINY_PAL(TROPIUS, gMonShinyPalette_Tropius), + SPECIES_SHINY_PAL(WHISMUR, gMonShinyPalette_Whismur), + SPECIES_SHINY_PAL(LOUDRED, gMonShinyPalette_Loudred), + SPECIES_SHINY_PAL(EXPLOUD, gMonShinyPalette_Exploud), + SPECIES_SHINY_PAL(CLAMPERL, gMonShinyPalette_Clamperl), + SPECIES_SHINY_PAL(HUNTAIL, gMonShinyPalette_Huntail), + SPECIES_SHINY_PAL(GOREBYSS, gMonShinyPalette_Gorebyss), + SPECIES_SHINY_PAL(ABSOL, gMonShinyPalette_Absol), + SPECIES_SHINY_PAL(SHUPPET, gMonShinyPalette_Shuppet), + SPECIES_SHINY_PAL(BANETTE, gMonShinyPalette_Banette), + SPECIES_SHINY_PAL(SEVIPER, gMonShinyPalette_Seviper), + SPECIES_SHINY_PAL(ZANGOOSE, gMonShinyPalette_Zangoose), + SPECIES_SHINY_PAL(RELICANTH, gMonShinyPalette_Relicanth), + SPECIES_SHINY_PAL(ARON, gMonShinyPalette_Aron), + SPECIES_SHINY_PAL(LAIRON, gMonShinyPalette_Lairon), + SPECIES_SHINY_PAL(AGGRON, gMonShinyPalette_Aggron), + SPECIES_SHINY_PAL(CASTFORM, gMonShinyPalette_Castform), + SPECIES_SHINY_PAL(VOLBEAT, gMonShinyPalette_Volbeat), + SPECIES_SHINY_PAL(ILLUMISE, gMonShinyPalette_Illumise), + SPECIES_SHINY_PAL(LILEEP, gMonShinyPalette_Lileep), + SPECIES_SHINY_PAL(CRADILY, gMonShinyPalette_Cradily), + SPECIES_SHINY_PAL(ANORITH, gMonShinyPalette_Anorith), + SPECIES_SHINY_PAL(ARMALDO, gMonShinyPalette_Armaldo), + SPECIES_SHINY_PAL(RALTS, gMonShinyPalette_Ralts), + SPECIES_SHINY_PAL(KIRLIA, gMonShinyPalette_Kirlia), + SPECIES_SHINY_PAL(GARDEVOIR, gMonShinyPalette_Gardevoir), + SPECIES_SHINY_PAL(BAGON, gMonShinyPalette_Bagon), + SPECIES_SHINY_PAL(SHELGON, gMonShinyPalette_Shelgon), + SPECIES_SHINY_PAL(SALAMENCE, gMonShinyPalette_Salamence), + SPECIES_SHINY_PAL(BELDUM, gMonShinyPalette_Beldum), + SPECIES_SHINY_PAL(METANG, gMonShinyPalette_Metang), + SPECIES_SHINY_PAL(METAGROSS, gMonShinyPalette_Metagross), + SPECIES_SHINY_PAL(REGIROCK, gMonShinyPalette_Regirock), + SPECIES_SHINY_PAL(REGICE, gMonShinyPalette_Regice), + SPECIES_SHINY_PAL(REGISTEEL, gMonShinyPalette_Registeel), + SPECIES_SHINY_PAL(KYOGRE, gMonShinyPalette_Kyogre), + SPECIES_SHINY_PAL(GROUDON, gMonShinyPalette_Groudon), + SPECIES_SHINY_PAL(RAYQUAZA, gMonShinyPalette_Rayquaza), + SPECIES_SHINY_PAL(LATIAS, gMonShinyPalette_Latias), + SPECIES_SHINY_PAL(LATIOS, gMonShinyPalette_Latios), + SPECIES_SHINY_PAL(JIRACHI, gMonShinyPalette_Jirachi), + SPECIES_SHINY_PAL(DEOXYS, gMonShinyPalette_Deoxys), + SPECIES_SHINY_PAL(CHIMECHO, gMonShinyPalette_Chimecho), + SPECIES_SHINY_PAL(EGG, gMonPalette_Egg), + SPECIES_SHINY_PAL(UNOWN_B, gMonShinyPalette_Unown), + SPECIES_SHINY_PAL(UNOWN_C, gMonShinyPalette_Unown), + SPECIES_SHINY_PAL(UNOWN_D, gMonShinyPalette_Unown), + SPECIES_SHINY_PAL(UNOWN_E, gMonShinyPalette_Unown), + SPECIES_SHINY_PAL(UNOWN_F, gMonShinyPalette_Unown), + SPECIES_SHINY_PAL(UNOWN_G, gMonShinyPalette_Unown), + SPECIES_SHINY_PAL(UNOWN_H, gMonShinyPalette_Unown), + SPECIES_SHINY_PAL(UNOWN_I, gMonShinyPalette_Unown), + SPECIES_SHINY_PAL(UNOWN_J, gMonShinyPalette_Unown), + SPECIES_SHINY_PAL(UNOWN_K, gMonShinyPalette_Unown), + SPECIES_SHINY_PAL(UNOWN_L, gMonShinyPalette_Unown), + SPECIES_SHINY_PAL(UNOWN_M, gMonShinyPalette_Unown), + SPECIES_SHINY_PAL(UNOWN_N, gMonShinyPalette_Unown), + SPECIES_SHINY_PAL(UNOWN_O, gMonShinyPalette_Unown), + SPECIES_SHINY_PAL(UNOWN_P, gMonShinyPalette_Unown), + SPECIES_SHINY_PAL(UNOWN_Q, gMonShinyPalette_Unown), + SPECIES_SHINY_PAL(UNOWN_R, gMonShinyPalette_Unown), + SPECIES_SHINY_PAL(UNOWN_S, gMonShinyPalette_Unown), + SPECIES_SHINY_PAL(UNOWN_T, gMonShinyPalette_Unown), + SPECIES_SHINY_PAL(UNOWN_U, gMonShinyPalette_Unown), + SPECIES_SHINY_PAL(UNOWN_V, gMonShinyPalette_Unown), + SPECIES_SHINY_PAL(UNOWN_W, gMonShinyPalette_Unown), + SPECIES_SHINY_PAL(UNOWN_X, gMonShinyPalette_Unown), + SPECIES_SHINY_PAL(UNOWN_Y, gMonShinyPalette_Unown), + SPECIES_SHINY_PAL(UNOWN_Z, gMonShinyPalette_Unown), + SPECIES_SHINY_PAL(UNOWN_EMARK, gMonShinyPalette_Unown), + SPECIES_SHINY_PAL(UNOWN_QMARK, gMonShinyPalette_Unown), +}; diff --git a/src/data/text/abilities.h b/src/data/text/abilities.h new file mode 100644 index 000000000..c2002bed7 --- /dev/null +++ b/src/data/text/abilities.h @@ -0,0 +1,242 @@ +static const u8 sNoneDescription[] = _("No special ability."); +static const u8 sStenchDescription[] = _("Helps repel wild POKéMON."); +static const u8 sDrizzleDescription[] = _("Summons rain in battle."); +static const u8 sSpeedBoostDescription[] = _("Gradually boosts SPEED."); +static const u8 sBattleArmorDescription[] = _("Blocks critical hits."); +static const u8 sSturdyDescription[] = _("Negates 1-hit KO attacks."); +static const u8 sDampDescription[] = _("Prevents self-destruction."); +static const u8 sLimberDescription[] = _("Prevents paralysis."); +static const u8 sSandVeilDescription[] = _("Ups evasion in a sandstorm."); +static const u8 sStaticDescription[] = _("Paralyzes on contact."); +static const u8 sVoltAbsorbDescription[] = _("Turns electricity into HP."); +static const u8 sWaterAbsorbDescription[] = _("Changes water into HP."); +static const u8 sObliviousDescription[] = _("Prevents attraction."); +static const u8 sCloudNineDescription[] = _("Negates weather effects."); +static const u8 sCompoundEyesDescription[] = _("Raises accuracy."); +static const u8 sInsomniaDescription[] = _("Prevents sleep."); +static const u8 sColorChangeDescription[] = _("Changes type to foe's move."); +static const u8 sImmunityDescription[] = _("Prevents poisoning."); +static const u8 sFlashFireDescription[] = _("Powers up if hit by fire."); +static const u8 sShieldDustDescription[] = _("Prevents added effects."); +static const u8 sOwnTempoDescription[] = _("Prevents confusion."); +static const u8 sSuctionCupsDescription[] = _("Firmly anchors the body."); +static const u8 sIntimidateDescription[] = _("Lowers the foe's ATTACK."); +static const u8 sShadowTagDescription[] = _("Prevents the foe's escape."); +static const u8 sRoughSkinDescription[] = _("Hurts to touch."); +static const u8 sWonderGuardDescription[] = _("“Super effective†hits."); +static const u8 sLevitateDescription[] = _("Not hit by GROUND attacks."); +static const u8 sEffectSporeDescription[] = _("Leaves spores on contact."); +static const u8 sSynchronizeDescription[] = _("Passes on status problems."); +static const u8 sClearBodyDescription[] = _("Prevents ability reduction."); +static const u8 sNaturalCureDescription[] = _("Heals upon switching out."); +static const u8 sLightningRodDescription[] = _("Draws electrical moves."); +static const u8 sSereneGraceDescription[] = _("Promotes added effects."); +static const u8 sSwiftSwimDescription[] = _("Raises SPEED in rain."); +static const u8 sChlorophyllDescription[] = _("Raises SPEED in sunshine."); +static const u8 sIlluminateDescription[] = _("Encounter rate increases."); +static const u8 sTraceDescription[] = _("Copies special ability."); +static const u8 sHugePowerDescription[] = _("Raises ATTACK."); +static const u8 sPoisonPointDescription[] = _("Poisons foe on contact."); +static const u8 sInnerFocusDescription[] = _("Prevents flinching."); +static const u8 sMagmaArmorDescription[] = _("Prevents freezing."); +static const u8 sWaterVeilDescription[] = _("Prevents burns."); +static const u8 sMagnetPullDescription[] = _("Traps STEEL-type POKéMON."); +static const u8 sSoundproofDescription[] = _("Avoids sound-based moves."); +static const u8 sRainDishDescription[] = _("Slight HP recovery in rain."); +static const u8 sSandStreamDescription[] = _("Summons a sandstorm."); +static const u8 sPressureDescription[] = _("Raises foe's PP usage."); +static const u8 sThickFatDescription[] = _("Heat-and-cold protection."); +static const u8 sEarlyBirdDescription[] = _("Awakens quickly from sleep."); +static const u8 sFlameBodyDescription[] = _("Burns the foe on contact."); +static const u8 sRunAwayDescription[] = _("Makes escaping easier."); +static const u8 sKeenEyeDescription[] = _("Prevents loss of accuracy."); +static const u8 sHyperCutterDescription[] = _("Prevents ATTACK reduction."); +static const u8 sPickupDescription[] = _("May pick up items."); +static const u8 sTruantDescription[] = _("Moves only every two turns."); +static const u8 sHustleDescription[] = _("Trades accuracy for power."); +static const u8 sCuteCharmDescription[] = _("Infatuates on contact."); +static const u8 sPlusDescription[] = _("Powers up with MINUS."); +static const u8 sMinusDescription[] = _("Powers up with PLUS."); +static const u8 sForecastDescription[] = _("Changes with the weather."); +static const u8 sStickyHoldDescription[] = _("Prevents item theft."); +static const u8 sShedSkinDescription[] = _("Heals the body by shedding."); +static const u8 sGutsDescription[] = _("Ups ATTACK if suffering."); +static const u8 sMarvelScaleDescription[] = _("Ups DEFENSE if suffering."); +static const u8 sLiquidOozeDescription[] = _("Draining causes injury."); +static const u8 sOvergrowDescription[] = _("Ups GRASS moves in a pinch."); +static const u8 sBlazeDescription[] = _("Ups FIRE moves in a pinch."); +static const u8 sTorrentDescription[] = _("Ups WATER moves in a pinch."); +static const u8 sSwarmDescription[] = _("Ups BUG moves in a pinch."); +static const u8 sRockHeadDescription[] = _("Prevents recoil damage."); +static const u8 sDroughtDescription[] = _("Summons sunlight in battle."); +static const u8 sArenaTrapDescription[] = _("Prevents fleeing."); +static const u8 sVitalSpiritDescription[] = _("Prevents sleep."); +static const u8 sWhiteSmokeDescription[] = _("Prevents ability reduction."); +static const u8 sPurePowerDescription[] = _("Raises ATTACK."); +static const u8 sShellArmorDescription[] = _("Blocks critical hits."); +static const u8 sCacophonyDescription[] = _("Avoids sound-based moves."); +static const u8 sAirLockDescription[] = _("Negates weather effects."); + +const u8 *const gAbilityDescriptionPointers[ABILITIES_COUNT] = +{ + [ABILITY_NONE] = sNoneDescription, + [ABILITY_STENCH] = sStenchDescription, + [ABILITY_DRIZZLE] = sDrizzleDescription, + [ABILITY_SPEED_BOOST] = sSpeedBoostDescription, + [ABILITY_BATTLE_ARMOR] = sBattleArmorDescription, + [ABILITY_STURDY] = sSturdyDescription, + [ABILITY_DAMP] = sDampDescription, + [ABILITY_LIMBER] = sLimberDescription, + [ABILITY_SAND_VEIL] = sSandVeilDescription, + [ABILITY_STATIC] = sStaticDescription, + [ABILITY_VOLT_ABSORB] = sVoltAbsorbDescription, + [ABILITY_WATER_ABSORB] = sWaterAbsorbDescription, + [ABILITY_OBLIVIOUS] = sObliviousDescription, + [ABILITY_CLOUD_NINE] = sCloudNineDescription, + [ABILITY_COMPOUND_EYES] = sCompoundEyesDescription, + [ABILITY_INSOMNIA] = sInsomniaDescription, + [ABILITY_COLOR_CHANGE] = sColorChangeDescription, + [ABILITY_IMMUNITY] = sImmunityDescription, + [ABILITY_FLASH_FIRE] = sFlashFireDescription, + [ABILITY_SHIELD_DUST] = sShieldDustDescription, + [ABILITY_OWN_TEMPO] = sOwnTempoDescription, + [ABILITY_SUCTION_CUPS] = sSuctionCupsDescription, + [ABILITY_INTIMIDATE] = sIntimidateDescription, + [ABILITY_SHADOW_TAG] = sShadowTagDescription, + [ABILITY_ROUGH_SKIN] = sRoughSkinDescription, + [ABILITY_WONDER_GUARD] = sWonderGuardDescription, + [ABILITY_LEVITATE] = sLevitateDescription, + [ABILITY_EFFECT_SPORE] = sEffectSporeDescription, + [ABILITY_SYNCHRONIZE] = sSynchronizeDescription, + [ABILITY_CLEAR_BODY] = sClearBodyDescription, + [ABILITY_NATURAL_CURE] = sNaturalCureDescription, + [ABILITY_LIGHTNING_ROD] = sLightningRodDescription, + [ABILITY_SERENE_GRACE] = sSereneGraceDescription, + [ABILITY_SWIFT_SWIM] = sSwiftSwimDescription, + [ABILITY_CHLOROPHYLL] = sChlorophyllDescription, + [ABILITY_ILLUMINATE] = sIlluminateDescription, + [ABILITY_TRACE] = sTraceDescription, + [ABILITY_HUGE_POWER] = sHugePowerDescription, + [ABILITY_POISON_POINT] = sPoisonPointDescription, + [ABILITY_INNER_FOCUS] = sInnerFocusDescription, + [ABILITY_MAGMA_ARMOR] = sMagmaArmorDescription, + [ABILITY_WATER_VEIL] = sWaterVeilDescription, + [ABILITY_MAGNET_PULL] = sMagnetPullDescription, + [ABILITY_SOUNDPROOF] = sSoundproofDescription, + [ABILITY_RAIN_DISH] = sRainDishDescription, + [ABILITY_SAND_STREAM] = sSandStreamDescription, + [ABILITY_PRESSURE] = sPressureDescription, + [ABILITY_THICK_FAT] = sThickFatDescription, + [ABILITY_EARLY_BIRD] = sEarlyBirdDescription, + [ABILITY_FLAME_BODY] = sFlameBodyDescription, + [ABILITY_RUN_AWAY] = sRunAwayDescription, + [ABILITY_KEEN_EYE] = sKeenEyeDescription, + [ABILITY_HYPER_CUTTER] = sHyperCutterDescription, + [ABILITY_PICKUP] = sPickupDescription, + [ABILITY_TRUANT] = sTruantDescription, + [ABILITY_HUSTLE] = sHustleDescription, + [ABILITY_CUTE_CHARM] = sCuteCharmDescription, + [ABILITY_PLUS] = sPlusDescription, + [ABILITY_MINUS] = sMinusDescription, + [ABILITY_FORECAST] = sForecastDescription, + [ABILITY_STICKY_HOLD] = sStickyHoldDescription, + [ABILITY_SHED_SKIN] = sShedSkinDescription, + [ABILITY_GUTS] = sGutsDescription, + [ABILITY_MARVEL_SCALE] = sMarvelScaleDescription, + [ABILITY_LIQUID_OOZE] = sLiquidOozeDescription, + [ABILITY_OVERGROW] = sOvergrowDescription, + [ABILITY_BLAZE] = sBlazeDescription, + [ABILITY_TORRENT] = sTorrentDescription, + [ABILITY_SWARM] = sSwarmDescription, + [ABILITY_ROCK_HEAD] = sRockHeadDescription, + [ABILITY_DROUGHT] = sDroughtDescription, + [ABILITY_ARENA_TRAP] = sArenaTrapDescription, + [ABILITY_VITAL_SPIRIT] = sVitalSpiritDescription, + [ABILITY_WHITE_SMOKE] = sWhiteSmokeDescription, + [ABILITY_PURE_POWER] = sPurePowerDescription, + [ABILITY_SHELL_ARMOR] = sShellArmorDescription, + [ABILITY_CACOPHONY] = sCacophonyDescription, + [ABILITY_AIR_LOCK] = sAirLockDescription, +}; + +const u8 gAbilityNames[ABILITIES_COUNT][ABILITY_NAME_LENGTH + 1] = +{ + [ABILITY_NONE] = _("-------"), + [ABILITY_STENCH] = _("STENCH"), + [ABILITY_DRIZZLE] = _("DRIZZLE"), + [ABILITY_SPEED_BOOST] = _("SPEED BOOST"), + [ABILITY_BATTLE_ARMOR] = _("BATTLE ARMOR"), + [ABILITY_STURDY] = _("STURDY"), + [ABILITY_DAMP] = _("DAMP"), + [ABILITY_LIMBER] = _("LIMBER"), + [ABILITY_SAND_VEIL] = _("SAND VEIL"), + [ABILITY_STATIC] = _("STATIC"), + [ABILITY_VOLT_ABSORB] = _("VOLT ABSORB"), + [ABILITY_WATER_ABSORB] = _("WATER ABSORB"), + [ABILITY_OBLIVIOUS] = _("OBLIVIOUS"), + [ABILITY_CLOUD_NINE] = _("CLOUD NINE"), + [ABILITY_COMPOUND_EYES] = _("COMPOUNDEYES"), + [ABILITY_INSOMNIA] = _("INSOMNIA"), + [ABILITY_COLOR_CHANGE] = _("COLOR CHANGE"), + [ABILITY_IMMUNITY] = _("IMMUNITY"), + [ABILITY_FLASH_FIRE] = _("FLASH FIRE"), + [ABILITY_SHIELD_DUST] = _("SHIELD DUST"), + [ABILITY_OWN_TEMPO] = _("OWN TEMPO"), + [ABILITY_SUCTION_CUPS] = _("SUCTION CUPS"), + [ABILITY_INTIMIDATE] = _("INTIMIDATE"), + [ABILITY_SHADOW_TAG] = _("SHADOW TAG"), + [ABILITY_ROUGH_SKIN] = _("ROUGH SKIN"), + [ABILITY_WONDER_GUARD] = _("WONDER GUARD"), + [ABILITY_LEVITATE] = _("LEVITATE"), + [ABILITY_EFFECT_SPORE] = _("EFFECT SPORE"), + [ABILITY_SYNCHRONIZE] = _("SYNCHRONIZE"), + [ABILITY_CLEAR_BODY] = _("CLEAR BODY"), + [ABILITY_NATURAL_CURE] = _("NATURAL CURE"), + [ABILITY_LIGHTNING_ROD] = _("LIGHTNINGROD"), + [ABILITY_SERENE_GRACE] = _("SERENE GRACE"), + [ABILITY_SWIFT_SWIM] = _("SWIFT SWIM"), + [ABILITY_CHLOROPHYLL] = _("CHLOROPHYLL"), + [ABILITY_ILLUMINATE] = _("ILLUMINATE"), + [ABILITY_TRACE] = _("TRACE"), + [ABILITY_HUGE_POWER] = _("HUGE POWER"), + [ABILITY_POISON_POINT] = _("POISON POINT"), + [ABILITY_INNER_FOCUS] = _("INNER FOCUS"), + [ABILITY_MAGMA_ARMOR] = _("MAGMA ARMOR"), + [ABILITY_WATER_VEIL] = _("WATER VEIL"), + [ABILITY_MAGNET_PULL] = _("MAGNET PULL"), + [ABILITY_SOUNDPROOF] = _("SOUNDPROOF"), + [ABILITY_RAIN_DISH] = _("RAIN DISH"), + [ABILITY_SAND_STREAM] = _("SAND STREAM"), + [ABILITY_PRESSURE] = _("PRESSURE"), + [ABILITY_THICK_FAT] = _("THICK FAT"), + [ABILITY_EARLY_BIRD] = _("EARLY BIRD"), + [ABILITY_FLAME_BODY] = _("FLAME BODY"), + [ABILITY_RUN_AWAY] = _("RUN AWAY"), + [ABILITY_KEEN_EYE] = _("KEEN EYE"), + [ABILITY_HYPER_CUTTER] = _("HYPER CUTTER"), + [ABILITY_PICKUP] = _("PICKUP"), + [ABILITY_TRUANT] = _("TRUANT"), + [ABILITY_HUSTLE] = _("HUSTLE"), + [ABILITY_CUTE_CHARM] = _("CUTE CHARM"), + [ABILITY_PLUS] = _("PLUS"), + [ABILITY_MINUS] = _("MINUS"), + [ABILITY_FORECAST] = _("FORECAST"), + [ABILITY_STICKY_HOLD] = _("STICKY HOLD"), + [ABILITY_SHED_SKIN] = _("SHED SKIN"), + [ABILITY_GUTS] = _("GUTS"), + [ABILITY_MARVEL_SCALE] = _("MARVEL SCALE"), + [ABILITY_LIQUID_OOZE] = _("LIQUID OOZE"), + [ABILITY_OVERGROW] = _("OVERGROW"), + [ABILITY_BLAZE] = _("BLAZE"), + [ABILITY_TORRENT] = _("TORRENT"), + [ABILITY_SWARM] = _("SWARM"), + [ABILITY_ROCK_HEAD] = _("ROCK HEAD"), + [ABILITY_DROUGHT] = _("DROUGHT"), + [ABILITY_ARENA_TRAP] = _("ARENA TRAP"), + [ABILITY_VITAL_SPIRIT] = _("VITAL SPIRIT"), + [ABILITY_WHITE_SMOKE] = _("WHITE SMOKE"), + [ABILITY_PURE_POWER] = _("PURE POWER"), + [ABILITY_SHELL_ARMOR] = _("SHELL ARMOR"), + [ABILITY_CACOPHONY] = _("CACOPHONY"), + [ABILITY_AIR_LOCK] = _("AIR LOCK"), +}; diff --git a/src/data/text/move_names.h b/src/data/text/move_names.h new file mode 100644 index 000000000..d45972d51 --- /dev/null +++ b/src/data/text/move_names.h @@ -0,0 +1,357 @@ +const u8 gMoveNames[][13] = { + _("-$$$$$$"), + _("POUND"), + _("KARATE CHOP"), + _("DOUBLESLAP"), + _("COMET PUNCH"), + _("MEGA PUNCH"), + _("PAY DAY"), + _("FIRE PUNCH"), + _("ICE PUNCH"), + _("THUNDERPUNCH"), + _("SCRATCH"), + _("VICEGRIP"), + _("GUILLOTINE"), + _("RAZOR WIND"), + _("SWORDS DANCE"), + _("CUT"), + _("GUST"), + _("WING ATTACK"), + _("WHIRLWIND"), + _("FLY"), + _("BIND"), + _("SLAM"), + _("VINE WHIP"), + _("STOMP"), + _("DOUBLE KICK"), + _("MEGA KICK"), + _("JUMP KICK"), + _("ROLLING KICK"), + _("SAND-ATTACK"), + _("HEADBUTT"), + _("HORN ATTACK"), + _("FURY ATTACK"), + _("HORN DRILL"), + _("TACKLE"), + _("BODY SLAM"), + _("WRAP"), + _("TAKE DOWN"), + _("THRASH"), + _("DOUBLE-EDGE"), + _("TAIL WHIP"), + _("POISON STING"), + _("TWINEEDLE"), + _("PIN MISSILE"), + _("LEER"), + _("BITE"), + _("GROWL"), + _("ROAR"), + _("SING"), + _("SUPERSONIC"), + _("SONICBOOM"), + _("DISABLE"), + _("ACID"), + _("EMBER"), + _("FLAMETHROWER"), + _("MIST"), + _("WATER GUN"), + _("HYDRO PUMP"), + _("SURF"), + _("ICE BEAM"), + _("BLIZZARD"), + _("PSYBEAM"), + _("BUBBLEBEAM"), + _("AURORA BEAM"), + _("HYPER BEAM"), + _("PECK"), + _("DRILL PECK"), + _("SUBMISSION"), + _("LOW KICK"), + _("COUNTER"), + _("SEISMIC TOSS"), + _("STRENGTH"), + _("ABSORB"), + _("MEGA DRAIN"), + _("LEECH SEED"), + _("GROWTH"), + _("RAZOR LEAF"), + _("SOLARBEAM"), + _("POISONPOWDER"), + _("STUN SPORE"), + _("SLEEP POWDER"), + _("PETAL DANCE"), + _("STRING SHOT"), + _("DRAGON RAGE"), + _("FIRE SPIN"), + _("THUNDERSHOCK"), + _("THUNDERBOLT"), + _("THUNDER WAVE"), + _("THUNDER"), + _("ROCK THROW"), + _("EARTHQUAKE"), + _("FISSURE"), + _("DIG"), + _("TOXIC"), + _("CONFUSION"), + _("PSYCHIC"), + _("HYPNOSIS"), + _("MEDITATE"), + _("AGILITY"), + _("QUICK ATTACK"), + _("RAGE"), + _("TELEPORT"), + _("NIGHT SHADE"), + _("MIMIC"), + _("SCREECH"), + _("DOUBLE TEAM"), + _("RECOVER"), + _("HARDEN"), + _("MINIMIZE"), + _("SMOKESCREEN"), + _("CONFUSE RAY"), + _("WITHDRAW"), + _("DEFENSE CURL"), + _("BARRIER"), + _("LIGHT SCREEN"), + _("HAZE"), + _("REFLECT"), + _("FOCUS ENERGY"), + _("BIDE"), + _("METRONOME"), + _("MIRROR MOVE"), + _("SELFDESTRUCT"), + _("EGG BOMB"), + _("LICK"), + _("SMOG"), + _("SLUDGE"), + _("BONE CLUB"), + _("FIRE BLAST"), + _("WATERFALL"), + _("CLAMP"), + _("SWIFT"), + _("SKULL BASH"), + _("SPIKE CANNON"), + _("CONSTRICT"), + _("AMNESIA"), + _("KINESIS"), + _("SOFTBOILED"), + _("HI JUMP KICK"), + _("GLARE"), + _("DREAM EATER"), + _("POISON GAS"), + _("BARRAGE"), + _("LEECH LIFE"), + _("LOVELY KISS"), + _("SKY ATTACK"), + _("TRANSFORM"), + _("BUBBLE"), + _("DIZZY PUNCH"), + _("SPORE"), + _("FLASH"), + _("PSYWAVE"), + _("SPLASH"), + _("ACID ARMOR"), + _("CRABHAMMER"), + _("EXPLOSION"), + _("FURY SWIPES"), + _("BONEMERANG"), + _("REST"), + _("ROCK SLIDE"), + _("HYPER FANG"), + _("SHARPEN"), + _("CONVERSION"), + _("TRI ATTACK"), + _("SUPER FANG"), + _("SLASH"), + _("SUBSTITUTE"), + _("STRUGGLE"), + _("SKETCH"), + _("TRIPLE KICK"), + _("THIEF"), + _("SPIDER WEB"), + _("MIND READER"), + _("NIGHTMARE"), + _("FLAME WHEEL"), + _("SNORE"), + _("CURSE"), + _("FLAIL"), + _("CONVERSION 2"), + _("AEROBLAST"), + _("COTTON SPORE"), + _("REVERSAL"), + _("SPITE"), + _("POWDER SNOW"), + _("PROTECT"), + _("MACH PUNCH"), + _("SCARY FACE"), + _("FAINT ATTACK"), + _("SWEET KISS"), + _("BELLY DRUM"), + _("SLUDGE BOMB"), + _("MUD-SLAP"), + _("OCTAZOOKA"), + _("SPIKES"), + _("ZAP CANNON"), + _("FORESIGHT"), + _("DESTINY BOND"), + _("PERISH SONG"), + _("ICY WIND"), + _("DETECT"), + _("BONE RUSH"), + _("LOCK-ON"), + _("OUTRAGE"), + _("SANDSTORM"), + _("GIGA DRAIN"), + _("ENDURE"), + _("CHARM"), + _("ROLLOUT"), + _("FALSE SWIPE"), + _("SWAGGER"), + _("MILK DRINK"), + _("SPARK"), + _("FURY CUTTER"), + _("STEEL WING"), + _("MEAN LOOK"), + _("ATTRACT"), + _("SLEEP TALK"), + _("HEAL BELL"), + _("RETURN"), + _("PRESENT"), + _("FRUSTRATION"), + _("SAFEGUARD"), + _("PAIN SPLIT"), + _("SACRED FIRE"), + _("MAGNITUDE"), + _("DYNAMICPUNCH"), + _("MEGAHORN"), + _("DRAGONBREATH"), + _("BATON PASS"), + _("ENCORE"), + _("PURSUIT"), + _("RAPID SPIN"), + _("SWEET SCENT"), + _("IRON TAIL"), + _("METAL CLAW"), + _("VITAL THROW"), + _("MORNING SUN"), + _("SYNTHESIS"), + _("MOONLIGHT"), + _("HIDDEN POWER"), + _("CROSS CHOP"), + _("TWISTER"), + _("RAIN DANCE"), + _("SUNNY DAY"), + _("CRUNCH"), + _("MIRROR COAT"), + _("PSYCH UP"), + _("EXTREMESPEED"), + _("ANCIENTPOWER"), + _("SHADOW BALL"), + _("FUTURE SIGHT"), + _("ROCK SMASH"), + _("WHIRLPOOL"), + _("BEAT UP"), + _("FAKE OUT"), + _("UPROAR"), + _("STOCKPILE"), + _("SPIT UP"), + _("SWALLOW"), + _("HEAT WAVE"), + _("HAIL"), + _("TORMENT"), + _("FLATTER"), + _("WILL-O-WISP"), + _("MEMENTO"), + _("FACADE"), + _("FOCUS PUNCH"), + _("SMELLINGSALT"), + _("FOLLOW ME"), + _("NATURE POWER"), + _("CHARGE"), + _("TAUNT"), + _("HELPING HAND"), + _("TRICK"), + _("ROLE PLAY"), + _("WISH"), + _("ASSIST"), + _("INGRAIN"), + _("SUPERPOWER"), + _("MAGIC COAT"), + _("RECYCLE"), + _("REVENGE"), + _("BRICK BREAK"), + _("YAWN"), + _("KNOCK OFF"), + _("ENDEAVOR"), + _("ERUPTION"), + _("SKILL SWAP"), + _("IMPRISON"), + _("REFRESH"), + _("GRUDGE"), + _("SNATCH"), + _("SECRET POWER"), + _("DIVE"), + _("ARM THRUST"), + _("CAMOUFLAGE"), + _("TAIL GLOW"), + _("LUSTER PURGE"), + _("MIST BALL"), + _("FEATHERDANCE"), + _("TEETER DANCE"), + _("BLAZE KICK"), + _("MUD SPORT"), + _("ICE BALL"), + _("NEEDLE ARM"), + _("SLACK OFF"), + _("HYPER VOICE"), + _("POISON FANG"), + _("CRUSH CLAW"), + _("BLAST BURN"), + _("HYDRO CANNON"), + _("METEOR MASH"), + _("ASTONISH"), + _("WEATHER BALL"), + _("AROMATHERAPY"), + _("FAKE TEARS"), + _("AIR CUTTER"), + _("OVERHEAT"), + _("ODOR SLEUTH"), + _("ROCK TOMB"), + _("SILVER WIND"), + _("METAL SOUND"), + _("GRASSWHISTLE"), + _("TICKLE"), + _("COSMIC POWER"), + _("WATER SPOUT"), + _("SIGNAL BEAM"), + _("SHADOW PUNCH"), + _("EXTRASENSORY"), + _("SKY UPPERCUT"), + _("SAND TOMB"), + _("SHEER COLD"), + _("MUDDY WATER"), + _("BULLET SEED"), + _("AERIAL ACE"), + _("ICICLE SPEAR"), + _("IRON DEFENSE"), + _("BLOCK"), + _("HOWL"), + _("DRAGON CLAW"), + _("FRENZY PLANT"), + _("BULK UP"), + _("BOUNCE"), + _("MUD SHOT"), + _("POISON TAIL"), + _("COVET"), + _("VOLT TACKLE"), + _("MAGICAL LEAF"), + _("WATER SPORT"), + _("CALM MIND"), + _("LEAF BLADE"), + _("DRAGON DANCE"), + _("ROCK BLAST"), + _("SHOCK WAVE"), + _("WATER PULSE"), + _("DOOM DESIRE"), + _("PSYCHO BOOST") +}; diff --git a/src/data/text/species_names.h b/src/data/text/species_names.h new file mode 100644 index 000000000..f30fe2969 --- /dev/null +++ b/src/data/text/species_names.h @@ -0,0 +1,414 @@ +const u8 gSpeciesNames[][11] = { + _("??????????"), + _("BULBASAUR"), + _("IVYSAUR"), + _("VENUSAUR"), + _("CHARMANDER"), + _("CHARMELEON"), + _("CHARIZARD"), + _("SQUIRTLE"), + _("WARTORTLE"), + _("BLASTOISE"), + _("CATERPIE"), + _("METAPOD"), + _("BUTTERFREE"), + _("WEEDLE"), + _("KAKUNA"), + _("BEEDRILL"), + _("PIDGEY"), + _("PIDGEOTTO"), + _("PIDGEOT"), + _("RATTATA"), + _("RATICATE"), + _("SPEAROW"), + _("FEAROW"), + _("EKANS"), + _("ARBOK"), + _("PIKACHU"), + _("RAICHU"), + _("SANDSHREW"), + _("SANDSLASH"), + _("NIDORAN♀"), + _("NIDORINA"), + _("NIDOQUEEN"), + _("NIDORAN♂"), + _("NIDORINO"), + _("NIDOKING"), + _("CLEFAIRY"), + _("CLEFABLE"), + _("VULPIX"), + _("NINETALES"), + _("JIGGLYPUFF"), + _("WIGGLYTUFF"), + _("ZUBAT"), + _("GOLBAT"), + _("ODDISH"), + _("GLOOM"), + _("VILEPLUME"), + _("PARAS"), + _("PARASECT"), + _("VENONAT"), + _("VENOMOTH"), + _("DIGLETT"), + _("DUGTRIO"), + _("MEOWTH"), + _("PERSIAN"), + _("PSYDUCK"), + _("GOLDUCK"), + _("MANKEY"), + _("PRIMEAPE"), + _("GROWLITHE"), + _("ARCANINE"), + _("POLIWAG"), + _("POLIWHIRL"), + _("POLIWRATH"), + _("ABRA"), + _("KADABRA"), + _("ALAKAZAM"), + _("MACHOP"), + _("MACHOKE"), + _("MACHAMP"), + _("BELLSPROUT"), + _("WEEPINBELL"), + _("VICTREEBEL"), + _("TENTACOOL"), + _("TENTACRUEL"), + _("GEODUDE"), + _("GRAVELER"), + _("GOLEM"), + _("PONYTA"), + _("RAPIDASH"), + _("SLOWPOKE"), + _("SLOWBRO"), + _("MAGNEMITE"), + _("MAGNETON"), + _("FARFETCH'D"), + _("DODUO"), + _("DODRIO"), + _("SEEL"), + _("DEWGONG"), + _("GRIMER"), + _("MUK"), + _("SHELLDER"), + _("CLOYSTER"), + _("GASTLY"), + _("HAUNTER"), + _("GENGAR"), + _("ONIX"), + _("DROWZEE"), + _("HYPNO"), + _("KRABBY"), + _("KINGLER"), + _("VOLTORB"), + _("ELECTRODE"), + _("EXEGGCUTE"), + _("EXEGGUTOR"), + _("CUBONE"), + _("MAROWAK"), + _("HITMONLEE"), + _("HITMONCHAN"), + _("LICKITUNG"), + _("KOFFING"), + _("WEEZING"), + _("RHYHORN"), + _("RHYDON"), + _("CHANSEY"), + _("TANGELA"), + _("KANGASKHAN"), + _("HORSEA"), + _("SEADRA"), + _("GOLDEEN"), + _("SEAKING"), + _("STARYU"), + _("STARMIE"), + _("MR. MIME"), + _("SCYTHER"), + _("JYNX"), + _("ELECTABUZZ"), + _("MAGMAR"), + _("PINSIR"), + _("TAUROS"), + _("MAGIKARP"), + _("GYARADOS"), + _("LAPRAS"), + _("DITTO"), + _("EEVEE"), + _("VAPOREON"), + _("JOLTEON"), + _("FLAREON"), + _("PORYGON"), + _("OMANYTE"), + _("OMASTAR"), + _("KABUTO"), + _("KABUTOPS"), + _("AERODACTYL"), + _("SNORLAX"), + _("ARTICUNO"), + _("ZAPDOS"), + _("MOLTRES"), + _("DRATINI"), + _("DRAGONAIR"), + _("DRAGONITE"), + _("MEWTWO"), + _("MEW"), + _("CHIKORITA"), + _("BAYLEEF"), + _("MEGANIUM"), + _("CYNDAQUIL"), + _("QUILAVA"), + _("TYPHLOSION"), + _("TOTODILE"), + _("CROCONAW"), + _("FERALIGATR"), + _("SENTRET"), + _("FURRET"), + _("HOOTHOOT"), + _("NOCTOWL"), + _("LEDYBA"), + _("LEDIAN"), + _("SPINARAK"), + _("ARIADOS"), + _("CROBAT"), + _("CHINCHOU"), + _("LANTURN"), + _("PICHU"), + _("CLEFFA"), + _("IGGLYBUFF"), + _("TOGEPI"), + _("TOGETIC"), + _("NATU"), + _("XATU"), + _("MAREEP"), + _("FLAAFFY"), + _("AMPHAROS"), + _("BELLOSSOM"), + _("MARILL"), + _("AZUMARILL"), + _("SUDOWOODO"), + _("POLITOED"), + _("HOPPIP"), + _("SKIPLOOM"), + _("JUMPLUFF"), + _("AIPOM"), + _("SUNKERN"), + _("SUNFLORA"), + _("YANMA"), + _("WOOPER"), + _("QUAGSIRE"), + _("ESPEON"), + _("UMBREON"), + _("MURKROW"), + _("SLOWKING"), + _("MISDREAVUS"), + _("UNOWN"), + _("WOBBUFFET"), + _("GIRAFARIG"), + _("PINECO"), + _("FORRETRESS"), + _("DUNSPARCE"), + _("GLIGAR"), + _("STEELIX"), + _("SNUBBULL"), + _("GRANBULL"), + _("QWILFISH"), + _("SCIZOR"), + _("SHUCKLE"), + _("HERACROSS"), + _("SNEASEL"), + _("TEDDIURSA"), + _("URSARING"), + _("SLUGMA"), + _("MAGCARGO"), + _("SWINUB"), + _("PILOSWINE"), + _("CORSOLA"), + _("REMORAID"), + _("OCTILLERY"), + _("DELIBIRD"), + _("MANTINE"), + _("SKARMORY"), + _("HOUNDOUR"), + _("HOUNDOOM"), + _("KINGDRA"), + _("PHANPY"), + _("DONPHAN"), + _("PORYGON2"), + _("STANTLER"), + _("SMEARGLE"), + _("TYROGUE"), + _("HITMONTOP"), + _("SMOOCHUM"), + _("ELEKID"), + _("MAGBY"), + _("MILTANK"), + _("BLISSEY"), + _("RAIKOU"), + _("ENTEI"), + _("SUICUNE"), + _("LARVITAR"), + _("PUPITAR"), + _("TYRANITAR"), + _("LUGIA"), + _("HO-OH"), + _("CELEBI"), + _("?"), + _("?"), + _("?"), + _("?"), + _("?"), + _("?"), + _("?"), + _("?"), + _("?"), + _("?"), + _("?"), + _("?"), + _("?"), + _("?"), + _("?"), + _("?"), + _("?"), + _("?"), + _("?"), + _("?"), + _("?"), + _("?"), + _("?"), + _("?"), + _("?"), + _("TREECKO"), + _("GROVYLE"), + _("SCEPTILE"), + _("TORCHIC"), + _("COMBUSKEN"), + _("BLAZIKEN"), + _("MUDKIP"), + _("MARSHTOMP"), + _("SWAMPERT"), + _("POOCHYENA"), + _("MIGHTYENA"), + _("ZIGZAGOON"), + _("LINOONE"), + _("WURMPLE"), + _("SILCOON"), + _("BEAUTIFLY"), + _("CASCOON"), + _("DUSTOX"), + _("LOTAD"), + _("LOMBRE"), + _("LUDICOLO"), + _("SEEDOT"), + _("NUZLEAF"), + _("SHIFTRY"), + _("NINCADA"), + _("NINJASK"), + _("SHEDINJA"), + _("TAILLOW"), + _("SWELLOW"), + _("SHROOMISH"), + _("BRELOOM"), + _("SPINDA"), + _("WINGULL"), + _("PELIPPER"), + _("SURSKIT"), + _("MASQUERAIN"), + _("WAILMER"), + _("WAILORD"), + _("SKITTY"), + _("DELCATTY"), + _("KECLEON"), + _("BALTOY"), + _("CLAYDOL"), + _("NOSEPASS"), + _("TORKOAL"), + _("SABLEYE"), + _("BARBOACH"), + _("WHISCASH"), + _("LUVDISC"), + _("CORPHISH"), + _("CRAWDAUNT"), + _("FEEBAS"), + _("MILOTIC"), + _("CARVANHA"), + _("SHARPEDO"), + _("TRAPINCH"), + _("VIBRAVA"), + _("FLYGON"), + _("MAKUHITA"), + _("HARIYAMA"), + _("ELECTRIKE"), + _("MANECTRIC"), + _("NUMEL"), + _("CAMERUPT"), + _("SPHEAL"), + _("SEALEO"), + _("WALREIN"), + _("CACNEA"), + _("CACTURNE"), + _("SNORUNT"), + _("GLALIE"), + _("LUNATONE"), + _("SOLROCK"), + _("AZURILL"), + _("SPOINK"), + _("GRUMPIG"), + _("PLUSLE"), + _("MINUN"), + _("MAWILE"), + _("MEDITITE"), + _("MEDICHAM"), + _("SWABLU"), + _("ALTARIA"), + _("WYNAUT"), + _("DUSKULL"), + _("DUSCLOPS"), + _("ROSELIA"), + _("SLAKOTH"), + _("VIGOROTH"), + _("SLAKING"), + _("GULPIN"), + _("SWALOT"), + _("TROPIUS"), + _("WHISMUR"), + _("LOUDRED"), + _("EXPLOUD"), + _("CLAMPERL"), + _("HUNTAIL"), + _("GOREBYSS"), + _("ABSOL"), + _("SHUPPET"), + _("BANETTE"), + _("SEVIPER"), + _("ZANGOOSE"), + _("RELICANTH"), + _("ARON"), + _("LAIRON"), + _("AGGRON"), + _("CASTFORM"), + _("VOLBEAT"), + _("ILLUMISE"), + _("LILEEP"), + _("CRADILY"), + _("ANORITH"), + _("ARMALDO"), + _("RALTS"), + _("KIRLIA"), + _("GARDEVOIR"), + _("BAGON"), + _("SHELGON"), + _("SALAMENCE"), + _("BELDUM"), + _("METANG"), + _("METAGROSS"), + _("REGIROCK"), + _("REGICE"), + _("REGISTEEL"), + _("KYOGRE"), + _("GROUDON"), + _("RAYQUAZA"), + _("LATIAS"), + _("LATIOS"), + _("JIRACHI"), + _("DEOXYS"), + _("CHIMECHO") +}; diff --git a/src/data/text/trainer_class_names.h b/src/data/text/trainer_class_names.h new file mode 100644 index 000000000..4faae43f4 --- /dev/null +++ b/src/data/text/trainer_class_names.h @@ -0,0 +1,109 @@ +const u8 gTrainerClassNames[][13] = { + _("{PKMN} TRAINER"), + _("{PKMN} TRAINER"), + _("AQUA LEADER"), + _("TEAM AQUA"), + _("AROMA LADY"), + _("RUIN MANIAC"), + _("INTERVIEWER"), + _("TUBER"), + _("TUBER"), + _("COOLTRAINER"), + _("HEX MANIAC"), + _("LADY"), + _("BEAUTY"), + _("RICH BOY"), + _("POKéMANIAC"), + _("SWIMMER♂"), + _("BLACK BELT"), + _("GUITARIST"), + _("KINDLER"), + _("CAMPER"), + _("BUG MANIAC"), + _("PSYCHIC"), + _("GENTLEMAN"), + _("ELITE FOUR"), + _("LEADER"), + _("SCHOOL KID"), + _("SR. AND JR."), + _("POKéFAN"), + _("EXPERT"), + _("YOUNGSTER"), + _("CHAMPION"), + _("FISHERMAN"), + _("TRIATHLETE"), + _("DRAGON TAMER"), + _("BIRD KEEPER"), + _("NINJA BOY"), + _("BATTLE GIRL"), + _("PARASOL LADY"), + _("SWIMMER♀"), + _("PICNICKER"), + _("TWINS"), + _("SAILOR"), + _("BOARDER"), + _("COLLECTOR"), + _("{PKMN} TRAINER"), + _("{PKMN} BREEDER"), + _("{PKMN} RANGER"), + _("MAGMA LEADER"), + _("TEAM MAGMA"), + _("LASS"), + _("BUG CATCHER"), + _("HIKER"), + _("YOUNG COUPLE"), + _("OLD COUPLE"), + _("SIS AND BRO"), + _("AQUA ADMIN"), + _("MAGMA ADMIN"), + _("YOUNGSTER"), + _("BUG CATCHER"), + _("LASS"), + _("SAILOR"), + _("CAMPER"), + _("PICNICKER"), + _("POKéMANIAC"), + _("SUPER NERD"), + _("HIKER"), + _("BIKER"), + _("BURGLAR"), + _("ENGINEER"), + _("FISHERMAN"), + _("SWIMMER♂"), + _("CUE BALL"), + _("GAMER"), + _("BEAUTY"), + _("SWIMMER♀"), + _("PSYCHIC"), + _("ROCKER"), + _("JUGGLER"), + _("TAMER"), + _("BIRD KEEPER"), + _("BLACK BELT"), + _("RIVAL"), + _("SCIENTIST"), + _("BOSS"), + _("LEADER"), + _("TEAM ROCKET"), + _("COOLTRAINER"), + _("ELITE FOUR"), + _("GENTLEMAN"), + _("RIVAL"), + _("CHAMPION"), + _("CHANNELER"), + _("TWINS"), + _("COOL COUPLE"), + _("YOUNG COUPLE"), + _("CRUSH KIN"), + _("SIS AND BRO"), + _("{PKMN} PROF."), + _("PLAYER"), + _("CRUSH GIRL"), + _("TUBER"), + _("{PKMN} BREEDER"), + _("{PKMN} RANGER"), + _("AROMA LADY"), + _("RUIN MANIAC"), + _("LADY"), + _("PAINTER"), +}; diff --git a/src/data/trainer_graphics/back_pic_anims.h b/src/data/trainer_graphics/back_pic_anims.h new file mode 100644 index 000000000..2e107c21e --- /dev/null +++ b/src/data/trainer_graphics/back_pic_anims.h @@ -0,0 +1,90 @@ +static const union AnimCmd sAnimCmd_Red_1[] = { + ANIMCMD_FRAME(1, 20), + ANIMCMD_FRAME(2, 6), + ANIMCMD_FRAME(3, 6), + ANIMCMD_FRAME(4, 24), + ANIMCMD_FRAME(0, 1), + ANIMCMD_END +}; + +static const union AnimCmd sAnimCmd_Leaf_1[] = { + ANIMCMD_FRAME(1, 20), + ANIMCMD_FRAME(2, 6), + ANIMCMD_FRAME(3, 6), + ANIMCMD_FRAME(4, 24), + ANIMCMD_FRAME(0, 1), + ANIMCMD_END +}; + +static const union AnimCmd sAnimCmd_PokeDude_1[] = { + ANIMCMD_FRAME(1, 24), + ANIMCMD_FRAME(2, 9), + ANIMCMD_FRAME(3, 24), + ANIMCMD_FRAME(0, 9), + ANIMCMD_END +}; + +static const union AnimCmd sAnimCmd_OldMan_1[] = { + ANIMCMD_FRAME(1, 24), + ANIMCMD_FRAME(2, 9), + ANIMCMD_FRAME(3, 24), + ANIMCMD_FRAME(0, 9), + ANIMCMD_END +}; + +static const union AnimCmd sAnimCmd_RSBrendan_1[] = { + ANIMCMD_FRAME(0, 24), + ANIMCMD_FRAME(1, 9), + ANIMCMD_FRAME(2, 24), + ANIMCMD_FRAME(0, 9), + ANIMCMD_FRAME(3, 50), + ANIMCMD_END +}; + +static const union AnimCmd sAnimCmd_RSMay_1[] = { + ANIMCMD_FRAME(0, 24), + ANIMCMD_FRAME(1, 9), + ANIMCMD_FRAME(2, 24), + ANIMCMD_FRAME(0, 9), + ANIMCMD_FRAME(3, 50), + ANIMCMD_END +}; + +const union AnimCmd *const sBackAnims_Red[] = { + sAnim_GeneralFrame0, + sAnimCmd_Red_1 +}; + +const union AnimCmd *const sBackAnims_Leaf[] = { + sAnim_GeneralFrame0, + sAnimCmd_Leaf_1 +}; + +const union AnimCmd *const sBackAnims_PokeDude[] = { + sAnim_GeneralFrame0, + sAnimCmd_PokeDude_1 +}; + +const union AnimCmd *const sBackAnims_OldMan[] = { + sAnim_GeneralFrame0, + sAnimCmd_OldMan_1 +}; + +const union AnimCmd *const sBackAnims_RSBrendan[] = { + sAnim_GeneralFrame3, + sAnimCmd_RSBrendan_1 +}; + +const union AnimCmd *const sBackAnims_RSMay[] = { + sAnim_GeneralFrame3, + sAnimCmd_RSMay_1 +}; + +const union AnimCmd *const *const gTrainerBackAnimsPtrTable[] = { + sBackAnims_Red, + sBackAnims_Leaf, + sBackAnims_RSBrendan, + sBackAnims_RSMay, + sBackAnims_PokeDude, + sBackAnims_OldMan +}; diff --git a/src/data/trainer_graphics/back_pic_tables.h b/src/data/trainer_graphics/back_pic_tables.h new file mode 100644 index 000000000..86e7824c1 --- /dev/null +++ b/src/data/trainer_graphics/back_pic_tables.h @@ -0,0 +1,26 @@ +const struct MonCoords gTrainerBackPicCoords[] = { + {.size = 8, .y_offset = 5}, + {.size = 8, .y_offset = 5}, + {.size = 8, .y_offset = 4}, + {.size = 8, .y_offset = 4}, + {.size = 8, .y_offset = 4}, + {.size = 8, .y_offset = 4} +}; + +const struct CompressedSpriteSheet gTrainerBackPicTable[] = { + { (const u32 *)gTrainerBackPic_Red, 0x2800, 0 }, + { (const u32 *)gTrainerBackPic_Leaf, 0x2800, 1 }, + { (const u32 *)gTrainerBackPic_RSBrendan, 0x2000, 2 }, + { (const u32 *)gTrainerBackPic_RSMay, 0x2000, 3 }, + { (const u32 *)gTrainerBackPic_PokeDude, 0x2000, 4 }, + { (const u32 *)gTrainerBackPic_OldMan, 0x2000, 5 } +}; + +const struct CompressedSpritePalette gTrainerBackPicPaletteTable[] = { + { gTrainerPalette_RedBackPic, 0 }, + { gTrainerPalette_LeafBackPic, 1 }, + { gTrainerPalette_RSBrendan1, 2 }, + { gTrainerPalette_RSMay1, 3 }, + { gTrainerPalette_PokeDudeBackPic, 4 }, + { gTrainerPalette_OldManBackPic, 5 } +}; diff --git a/src/data/trainer_graphics/front_pic_anims.h b/src/data/trainer_graphics/front_pic_anims.h new file mode 100644 index 000000000..32d38068a --- /dev/null +++ b/src/data/trainer_graphics/front_pic_anims.h @@ -0,0 +1,891 @@ +static const union AnimCmd *const sAnims_8238E8C[] = +{ + sAnim_GeneralFrame0, +}; + +static const union AnimCmd *const sAnims_8238E90[] = +{ + sAnim_GeneralFrame0, +}; + +static const union AnimCmd *const sAnims_8238E94[] = +{ + sAnim_GeneralFrame0, +}; + +static const union AnimCmd *const sAnims_8238E98[] = +{ + sAnim_GeneralFrame0, +}; + +static const union AnimCmd *const sAnims_8238E9C[] = +{ + sAnim_GeneralFrame0, +}; + +static const union AnimCmd *const sAnims_8238EA0[] = +{ + sAnim_GeneralFrame0, +}; + +static const union AnimCmd *const sAnims_8238EA4[] = +{ + sAnim_GeneralFrame0, +}; + +static const union AnimCmd *const sAnims_8238EA8[] = +{ + sAnim_GeneralFrame0, +}; + +static const union AnimCmd *const sAnims_8238EAC[] = +{ + sAnim_GeneralFrame0, +}; + +static const union AnimCmd *const sAnims_8238EB0[] = +{ + sAnim_GeneralFrame0, +}; + +static const union AnimCmd *const sAnims_8238EB4[] = +{ + sAnim_GeneralFrame0, +}; + +static const union AnimCmd *const sAnims_8238EB8[] = +{ + sAnim_GeneralFrame0, +}; + +static const union AnimCmd *const sAnims_8238EBC[] = +{ + sAnim_GeneralFrame0, +}; + +static const union AnimCmd *const sAnims_8238EC0[] = +{ + sAnim_GeneralFrame0, +}; + +static const union AnimCmd *const sAnims_8238EC4[] = +{ + sAnim_GeneralFrame0, +}; + +static const union AnimCmd *const sAnims_8238EC8[] = +{ + sAnim_GeneralFrame0, +}; + +static const union AnimCmd *const sAnims_8238ECC[] = +{ + sAnim_GeneralFrame0, +}; + +static const union AnimCmd *const sAnims_8238ED0[] = +{ + sAnim_GeneralFrame0, +}; + +static const union AnimCmd *const sAnims_8238ED4[] = +{ + sAnim_GeneralFrame0, +}; + +static const union AnimCmd *const sAnims_8238ED8[] = +{ + sAnim_GeneralFrame0, +}; + +static const union AnimCmd *const sAnims_8238EDC[] = +{ + sAnim_GeneralFrame0, +}; + +static const union AnimCmd *const sAnims_8238EE0[] = +{ + sAnim_GeneralFrame0, +}; + +static const union AnimCmd *const sAnims_8238EE4[] = +{ + sAnim_GeneralFrame0, +}; + +static const union AnimCmd *const sAnims_8238EE8[] = +{ + sAnim_GeneralFrame0, +}; + +static const union AnimCmd *const sAnims_8238EEC[] = +{ + sAnim_GeneralFrame0, +}; + +static const union AnimCmd *const sAnims_8238EF0[] = +{ + sAnim_GeneralFrame0, +}; + +static const union AnimCmd *const sAnims_8238EF4[] = +{ + sAnim_GeneralFrame0, +}; + +static const union AnimCmd *const sAnims_8238EF8[] = +{ + sAnim_GeneralFrame0, +}; + +static const union AnimCmd *const sAnims_8238EFC[] = +{ + sAnim_GeneralFrame0, +}; + +static const union AnimCmd *const sAnims_8238F00[] = +{ + sAnim_GeneralFrame0, +}; + +static const union AnimCmd *const sAnims_8238F04[] = +{ + sAnim_GeneralFrame0, +}; + +static const union AnimCmd *const sAnims_8238F08[] = +{ + sAnim_GeneralFrame0, +}; + +static const union AnimCmd *const sAnims_8238F0C[] = +{ + sAnim_GeneralFrame0, +}; + +static const union AnimCmd *const sAnims_8238F10[] = +{ + sAnim_GeneralFrame0, +}; + +static const union AnimCmd *const sAnims_8238F14[] = +{ + sAnim_GeneralFrame0, +}; + +static const union AnimCmd *const sAnims_8238F18[] = +{ + sAnim_GeneralFrame0, +}; + +static const union AnimCmd *const sAnims_8238F1C[] = +{ + sAnim_GeneralFrame0, +}; + +static const union AnimCmd *const sAnims_8238F20[] = +{ + sAnim_GeneralFrame0, +}; + +static const union AnimCmd *const sAnims_8238F24[] = +{ + sAnim_GeneralFrame0, +}; + +static const union AnimCmd *const sAnims_8238F28[] = +{ + sAnim_GeneralFrame0, +}; + +static const union AnimCmd *const sAnims_8238F2C[] = +{ + sAnim_GeneralFrame0, +}; + +static const union AnimCmd *const sAnims_8238F30[] = +{ + sAnim_GeneralFrame0, +}; + +static const union AnimCmd *const sAnims_8238F34[] = +{ + sAnim_GeneralFrame0, +}; + +static const union AnimCmd *const sAnims_8238F38[] = +{ + sAnim_GeneralFrame0, +}; + +static const union AnimCmd *const sAnims_8238F3C[] = +{ + sAnim_GeneralFrame0, +}; + +static const union AnimCmd *const sAnims_8238F40[] = +{ + sAnim_GeneralFrame0, +}; + +static const union AnimCmd *const sAnims_8238F44[] = +{ + sAnim_GeneralFrame0, +}; + +static const union AnimCmd *const sAnims_8238F48[] = +{ + sAnim_GeneralFrame0, +}; + +static const union AnimCmd *const sAnims_8238F4C[] = +{ + sAnim_GeneralFrame0, +}; + +static const union AnimCmd *const sAnims_8238F50[] = +{ + sAnim_GeneralFrame0, +}; + +static const union AnimCmd *const sAnims_8238F54[] = +{ + sAnim_GeneralFrame0, +}; + +static const union AnimCmd *const sAnims_8238F58[] = +{ + sAnim_GeneralFrame0, +}; + +static const union AnimCmd *const sAnims_8238F5C[] = +{ + sAnim_GeneralFrame0, +}; + +static const union AnimCmd *const sAnims_8238F60[] = +{ + sAnim_GeneralFrame0, +}; + +static const union AnimCmd *const sAnims_8238F64[] = +{ + sAnim_GeneralFrame0, +}; + +static const union AnimCmd *const sAnims_8238F68[] = +{ + sAnim_GeneralFrame0, +}; + +static const union AnimCmd *const sAnims_8238F6C[] = +{ + sAnim_GeneralFrame0, +}; + +static const union AnimCmd *const sAnims_8238F70[] = +{ + sAnim_GeneralFrame0, +}; + +static const union AnimCmd *const sAnims_8238F74[] = +{ + sAnim_GeneralFrame0, +}; + +static const union AnimCmd *const sAnims_8238F78[] = +{ + sAnim_GeneralFrame0, +}; + +static const union AnimCmd *const sAnims_8238F7C[] = +{ + sAnim_GeneralFrame0, +}; + +static const union AnimCmd *const sAnims_8238F80[] = +{ + sAnim_GeneralFrame0, +}; + +static const union AnimCmd *const sAnims_8238F84[] = +{ + sAnim_GeneralFrame0, +}; + +static const union AnimCmd *const sAnims_8238F88[] = +{ + sAnim_GeneralFrame0, +}; + +static const union AnimCmd *const sAnims_8238F8C[] = +{ + sAnim_GeneralFrame0, +}; + +static const union AnimCmd *const sAnims_8238F90[] = +{ + sAnim_GeneralFrame0, +}; + +static const union AnimCmd *const sAnims_8238F94[] = +{ + sAnim_GeneralFrame0, +}; + +static const union AnimCmd *const sAnims_8238F98[] = +{ + sAnim_GeneralFrame0, +}; + +static const union AnimCmd *const sAnims_8238F9C[] = +{ + sAnim_GeneralFrame0, +}; + +static const union AnimCmd *const sAnims_8238FA0[] = +{ + sAnim_GeneralFrame0, +}; + +static const union AnimCmd *const sAnims_8238FA4[] = +{ + sAnim_GeneralFrame0, +}; + +static const union AnimCmd *const sAnims_8238FA8[] = +{ + sAnim_GeneralFrame0, +}; + +static const union AnimCmd *const sAnims_8238FAC[] = +{ + sAnim_GeneralFrame0, +}; + +static const union AnimCmd *const sAnims_8238FB0[] = +{ + sAnim_GeneralFrame0, +}; + +static const union AnimCmd *const sAnims_8238FB4[] = +{ + sAnim_GeneralFrame0, +}; + +static const union AnimCmd *const sAnims_8238FB8[] = +{ + sAnim_GeneralFrame0, +}; + +static const union AnimCmd *const sAnims_8238FBC[] = +{ + sAnim_GeneralFrame0, +}; + +static const union AnimCmd *const sAnims_8238FC0[] = +{ + sAnim_GeneralFrame0, +}; + +static const union AnimCmd *const sAnims_8238FC4[] = +{ + sAnim_GeneralFrame0, +}; + +static const union AnimCmd *const sAnims_8238FC8[] = +{ + sAnim_GeneralFrame0, +}; + +static const union AnimCmd *const sAnims_8238FCC[] = +{ + sAnim_GeneralFrame0, +}; + +static const union AnimCmd *const sAnims_8238FD0[] = +{ + sAnim_GeneralFrame0, +}; + +static const union AnimCmd *const sAnims_8238FD4[] = +{ + sAnim_GeneralFrame0, +}; + +static const union AnimCmd *const sAnims_8238FD8[] = +{ + sAnim_GeneralFrame0, +}; + +static const union AnimCmd *const sAnims_8238FDC[] = +{ + sAnim_GeneralFrame0, +}; + +static const union AnimCmd *const sAnims_8238FE0[] = +{ + sAnim_GeneralFrame0, +}; + +static const union AnimCmd *const sAnims_8238FE4[] = +{ + sAnim_GeneralFrame0, +}; + +static const union AnimCmd *const sAnims_8238FE8[] = +{ + sAnim_GeneralFrame0, +}; + +static const union AnimCmd *const sAnims_8238FEC[] = +{ + sAnim_GeneralFrame0, +}; + +static const union AnimCmd *const sAnims_8238FF0[] = +{ + sAnim_GeneralFrame0, +}; + +static const union AnimCmd *const sAnims_8238FF4[] = +{ + sAnim_GeneralFrame0, +}; + +static const union AnimCmd *const sAnims_8238FF8[] = +{ + sAnim_GeneralFrame0, +}; + +static const union AnimCmd *const sAnims_8238FFC[] = +{ + sAnim_GeneralFrame0, +}; + +static const union AnimCmd *const sAnims_8239000[] = +{ + sAnim_GeneralFrame0, +}; + +static const union AnimCmd *const sAnims_8239004[] = +{ + sAnim_GeneralFrame0, +}; + +static const union AnimCmd *const sAnims_8239008[] = +{ + sAnim_GeneralFrame0, +}; + +static const union AnimCmd *const sAnims_823900C[] = +{ + sAnim_GeneralFrame0, +}; + +static const union AnimCmd *const sAnims_8239010[] = +{ + sAnim_GeneralFrame0, +}; + +static const union AnimCmd *const sAnims_8239014[] = +{ + sAnim_GeneralFrame0, +}; + +static const union AnimCmd *const sAnims_8239018[] = +{ + sAnim_GeneralFrame0, +}; + +static const union AnimCmd *const sAnims_823901C[] = +{ + sAnim_GeneralFrame0, +}; + +static const union AnimCmd *const sAnims_8239020[] = +{ + sAnim_GeneralFrame0, +}; + +static const union AnimCmd *const sAnims_8239024[] = +{ + sAnim_GeneralFrame0, +}; + +static const union AnimCmd *const sAnims_8239028[] = +{ + sAnim_GeneralFrame0, +}; + +static const union AnimCmd *const sAnims_823902C[] = +{ + sAnim_GeneralFrame0, +}; + +static const union AnimCmd *const sAnims_8239030[] = +{ + sAnim_GeneralFrame0, +}; + +static const union AnimCmd *const sAnims_8239034[] = +{ + sAnim_GeneralFrame0, +}; + +static const union AnimCmd *const sAnims_8239038[] = +{ + sAnim_GeneralFrame0, +}; + +static const union AnimCmd *const sAnims_823903C[] = +{ + sAnim_GeneralFrame0, +}; + +static const union AnimCmd *const sAnims_8239040[] = +{ + sAnim_GeneralFrame0, +}; + +static const union AnimCmd *const sAnims_8239044[] = +{ + sAnim_GeneralFrame0, +}; + +static const union AnimCmd *const sAnims_8239048[] = +{ + sAnim_GeneralFrame0, +}; + +static const union AnimCmd *const sAnims_823904C[] = +{ + sAnim_GeneralFrame0, +}; + +static const union AnimCmd *const sAnims_8239050[] = +{ + sAnim_GeneralFrame0, +}; + +static const union AnimCmd *const sAnims_8239054[] = +{ + sAnim_GeneralFrame0, +}; + +static const union AnimCmd *const sAnims_8239058[] = +{ + sAnim_GeneralFrame0, +}; + +static const union AnimCmd *const sAnims_823905C[] = +{ + sAnim_GeneralFrame0, +}; + +static const union AnimCmd *const sAnims_8239060[] = +{ + sAnim_GeneralFrame0, +}; + +static const union AnimCmd *const sAnims_8239064[] = +{ + sAnim_GeneralFrame0, +}; + +static const union AnimCmd *const sAnims_8239068[] = +{ + sAnim_GeneralFrame0, +}; + +static const union AnimCmd *const sAnims_823906C[] = +{ + sAnim_GeneralFrame0, +}; + +static const union AnimCmd *const sAnims_8239070[] = +{ + sAnim_GeneralFrame0, +}; + +static const union AnimCmd *const sAnims_8239074[] = +{ + sAnim_GeneralFrame0, +}; + +static const union AnimCmd *const sAnims_8239078[] = +{ + sAnim_GeneralFrame0, +}; + +static const union AnimCmd *const sAnims_823907C[] = +{ + sAnim_GeneralFrame0, +}; + +static const union AnimCmd *const sAnims_8239080[] = +{ + sAnim_GeneralFrame0, +}; + +static const union AnimCmd *const sAnims_8239084[] = +{ + sAnim_GeneralFrame0, +}; + +static const union AnimCmd *const sAnims_8239088[] = +{ + sAnim_GeneralFrame0, +}; + +static const union AnimCmd *const sAnims_823908C[] = +{ + sAnim_GeneralFrame0, +}; + +static const union AnimCmd *const sAnims_8239090[] = +{ + sAnim_GeneralFrame0, +}; + +static const union AnimCmd *const sAnims_8239094[] = +{ + sAnim_GeneralFrame0, +}; + +static const union AnimCmd *const sAnims_8239098[] = +{ + sAnim_GeneralFrame0, +}; + +static const union AnimCmd *const sAnims_823909C[] = +{ + sAnim_GeneralFrame0, +}; + +static const union AnimCmd *const sAnims_82390A0[] = +{ + sAnim_GeneralFrame0, +}; + +static const union AnimCmd *const sAnims_82390A4[] = +{ + sAnim_GeneralFrame0, +}; + +static const union AnimCmd *const sAnims_82390A8[] = +{ + sAnim_GeneralFrame0, +}; + +static const union AnimCmd *const sAnims_82390AC[] = +{ + sAnim_GeneralFrame0, +}; + +static const union AnimCmd *const sAnims_82390B0[] = +{ + sAnim_GeneralFrame0, +}; + +static const union AnimCmd *const sAnims_82390B4[] = +{ + sAnim_GeneralFrame0, +}; + +static const union AnimCmd *const sAnims_82390B8[] = +{ + sAnim_GeneralFrame0, +}; + +static const union AnimCmd *const sAnims_82390BC[] = +{ + sAnim_GeneralFrame0, +}; + +static const union AnimCmd *const sAnims_82390C0[] = +{ + sAnim_GeneralFrame0, +}; + +static const union AnimCmd *const sAnims_82390C4[] = +{ + sAnim_GeneralFrame0, +}; + +static const union AnimCmd *const sAnims_82390C8[] = +{ + sAnim_GeneralFrame0, +}; + +static const union AnimCmd *const sAnims_82390CC[] = +{ + sAnim_GeneralFrame0, +}; + +static const union AnimCmd *const sAnims_82390D0[] = +{ + sAnim_GeneralFrame0, +}; + +static const union AnimCmd *const sAnims_82390D4[] = +{ + sAnim_GeneralFrame0, +}; + +static const union AnimCmd *const sAnims_82390D8[] = +{ + sAnim_GeneralFrame0, +}; + +const union AnimCmd *const *const gTrainerFrontAnimsPtrTable[] = +{ + sAnims_8238E8C, + sAnims_8238E90, + sAnims_8238E94, + sAnims_8238E98, + sAnims_8238E9C, + sAnims_8238EA0, + sAnims_8238EA4, + sAnims_8238EA8, + sAnims_8238EAC, + sAnims_8238EB0, + sAnims_8238EB4, + sAnims_8238EB8, + sAnims_8238EBC, + sAnims_8238EC0, + sAnims_8238EC4, + sAnims_8238EC8, + sAnims_8238ECC, + sAnims_8238ED0, + sAnims_8238ED4, + sAnims_8238ED8, + sAnims_8238EDC, + sAnims_8238EE0, + sAnims_8238EE4, + sAnims_8238EE8, + sAnims_8238EEC, + sAnims_8238EF0, + sAnims_8238EF4, + sAnims_8238EF8, + sAnims_8238EFC, + sAnims_8238F00, + sAnims_8238F04, + sAnims_8238F08, + sAnims_8238F0C, + sAnims_8238F10, + sAnims_8238F14, + sAnims_8238F18, + sAnims_8238F1C, + sAnims_8238F20, + sAnims_8238F24, + sAnims_8238F28, + sAnims_8238F2C, + sAnims_8238F30, + sAnims_8238F34, + sAnims_8238F38, + sAnims_8238F3C, + sAnims_8238F40, + sAnims_8238F44, + sAnims_8238F48, + sAnims_8238F4C, + sAnims_8238F50, + sAnims_8238F54, + sAnims_8238F58, + sAnims_8238F5C, + sAnims_8238F60, + sAnims_8238F64, + sAnims_8238F68, + sAnims_8238F6C, + sAnims_8238F70, + sAnims_8238F74, + sAnims_8238F78, + sAnims_8238F7C, + sAnims_8238F80, + sAnims_8238F84, + sAnims_8238F88, + sAnims_8238F8C, + sAnims_8238F90, + sAnims_8238F94, + sAnims_8238F98, + sAnims_8238F9C, + sAnims_8238FA0, + sAnims_8238FA4, + sAnims_8238FA8, + sAnims_8238FAC, + sAnims_8238FB0, + sAnims_8238FB4, + sAnims_8238FB8, + sAnims_8238FBC, + sAnims_8238FC0, + sAnims_8238FC4, + sAnims_8238FC8, + sAnims_8238FCC, + sAnims_8238FD0, + sAnims_8238FD4, + sAnims_8238FD8, + sAnims_8238FDC, + sAnims_8238FE0, + sAnims_8238FE4, + sAnims_8238FE8, + sAnims_8238FEC, + sAnims_8238FF0, + sAnims_8238FF4, + sAnims_8238FF8, + sAnims_8238FFC, + sAnims_8239000, + sAnims_8239004, + sAnims_8239008, + sAnims_823900C, + sAnims_8239010, + sAnims_8239014, + sAnims_8239018, + sAnims_823901C, + sAnims_8239020, + sAnims_8239024, + sAnims_8239028, + sAnims_823902C, + sAnims_8239030, + sAnims_8239034, + sAnims_8239038, + sAnims_823903C, + sAnims_8239040, + sAnims_8239044, + sAnims_8239048, + sAnims_823904C, + sAnims_8239050, + sAnims_8239054, + sAnims_8239058, + sAnims_823905C, + sAnims_8239060, + sAnims_8239064, + sAnims_8239068, + sAnims_823906C, + sAnims_8239070, + sAnims_8239074, + sAnims_8239078, + sAnims_823907C, + sAnims_8239080, + sAnims_8239084, + sAnims_8239088, + sAnims_823908C, + sAnims_8239090, + sAnims_8239094, + sAnims_8239098, + sAnims_823909C, + sAnims_82390A0, + sAnims_82390A4, + sAnims_82390A8, + sAnims_82390AC, + sAnims_82390B0, + sAnims_82390B4, + sAnims_82390B8, + sAnims_82390BC, + sAnims_82390C0, + sAnims_82390C4, + sAnims_82390C8, + sAnims_82390CC, + sAnims_82390D0, + sAnims_82390D4, + sAnims_82390D8, +}; diff --git a/src/data/trainer_graphics/front_pic_tables.h b/src/data/trainer_graphics/front_pic_tables.h new file mode 100644 index 000000000..9d94103ef --- /dev/null +++ b/src/data/trainer_graphics/front_pic_tables.h @@ -0,0 +1,455 @@ +const struct MonCoords gTrainerFrontPicCoords[] = +{ + {.size = 8, .y_offset = 1}, + {.size = 8, .y_offset = 1}, + {.size = 8, .y_offset = 1}, + {.size = 8, .y_offset = 1}, + {.size = 8, .y_offset = 1}, + {.size = 8, .y_offset = 1}, + {.size = 8, .y_offset = 1}, + {.size = 8, .y_offset = 1}, + {.size = 8, .y_offset = 1}, + {.size = 8, .y_offset = 1}, + {.size = 8, .y_offset = 1}, + {.size = 8, .y_offset = 1}, + {.size = 8, .y_offset = 1}, + {.size = 8, .y_offset = 1}, + {.size = 8, .y_offset = 1}, + {.size = 8, .y_offset = 1}, + {.size = 8, .y_offset = 1}, + {.size = 8, .y_offset = 1}, + {.size = 8, .y_offset = 1}, + {.size = 8, .y_offset = 1}, + {.size = 8, .y_offset = 1}, + {.size = 8, .y_offset = 1}, + {.size = 8, .y_offset = 1}, + {.size = 8, .y_offset = 1}, + {.size = 8, .y_offset = 1}, + {.size = 8, .y_offset = 1}, + {.size = 8, .y_offset = 1}, + {.size = 8, .y_offset = 1}, + {.size = 8, .y_offset = 1}, + {.size = 8, .y_offset = 1}, + {.size = 8, .y_offset = 1}, + {.size = 8, .y_offset = 2}, + {.size = 8, .y_offset = 2}, + {.size = 8, .y_offset = 1}, + {.size = 8, .y_offset = 1}, + {.size = 8, .y_offset = 1}, + {.size = 8, .y_offset = 1}, + {.size = 8, .y_offset = 1}, + {.size = 8, .y_offset = 1}, + {.size = 8, .y_offset = 2}, + {.size = 8, .y_offset = 1}, + {.size = 8, .y_offset = 1}, + {.size = 8, .y_offset = 1}, + {.size = 8, .y_offset = 1}, + {.size = 8, .y_offset = 1}, + {.size = 8, .y_offset = 1}, + {.size = 8, .y_offset = 1}, + {.size = 8, .y_offset = 1}, + {.size = 8, .y_offset = 2}, + {.size = 8, .y_offset = 1}, + {.size = 8, .y_offset = 1}, + {.size = 8, .y_offset = 1}, + {.size = 8, .y_offset = 1}, + {.size = 8, .y_offset = 1}, + {.size = 8, .y_offset = 1}, + {.size = 8, .y_offset = 1}, + {.size = 8, .y_offset = 1}, + {.size = 8, .y_offset = 1}, + {.size = 8, .y_offset = 1}, + {.size = 8, .y_offset = 1}, + {.size = 8, .y_offset = 1}, + {.size = 8, .y_offset = 1}, + {.size = 8, .y_offset = 1}, + {.size = 8, .y_offset = 1}, + {.size = 8, .y_offset = 1}, + {.size = 8, .y_offset = 1}, + {.size = 8, .y_offset = 1}, + {.size = 8, .y_offset = 1}, + {.size = 8, .y_offset = 1}, + {.size = 8, .y_offset = 1}, + {.size = 8, .y_offset = 1}, + {.size = 8, .y_offset = 1}, + {.size = 8, .y_offset = 1}, + {.size = 8, .y_offset = 1}, + {.size = 8, .y_offset = 1}, + {.size = 8, .y_offset = 1}, + {.size = 8, .y_offset = 1}, + {.size = 8, .y_offset = 1}, + {.size = 8, .y_offset = 1}, + {.size = 8, .y_offset = 1}, + {.size = 8, .y_offset = 1}, + {.size = 8, .y_offset = 1}, + {.size = 8, .y_offset = 1}, + {.size = 8, .y_offset = 1}, + {.size = 8, .y_offset = 1}, + {.size = 8, .y_offset = 1}, + {.size = 8, .y_offset = 1}, + {.size = 8, .y_offset = 1}, + {.size = 8, .y_offset = 1}, + {.size = 8, .y_offset = 1}, + {.size = 8, .y_offset = 1}, + {.size = 8, .y_offset = 1}, + {.size = 8, .y_offset = 1}, + {.size = 8, .y_offset = 1}, + {.size = 8, .y_offset = 1}, + {.size = 8, .y_offset = 1}, + {.size = 8, .y_offset = 1}, + {.size = 8, .y_offset = 1}, + {.size = 8, .y_offset = 1}, + {.size = 8, .y_offset = 1}, + {.size = 8, .y_offset = 1}, + {.size = 8, .y_offset = 1}, + {.size = 8, .y_offset = 1}, + {.size = 8, .y_offset = 1}, + {.size = 8, .y_offset = 1}, + {.size = 8, .y_offset = 1}, + {.size = 8, .y_offset = 1}, + {.size = 8, .y_offset = 1}, + {.size = 8, .y_offset = 1}, + {.size = 8, .y_offset = 1}, + {.size = 8, .y_offset = 1}, + {.size = 8, .y_offset = 1}, + {.size = 8, .y_offset = 1}, + {.size = 8, .y_offset = 1}, + {.size = 8, .y_offset = 1}, + {.size = 8, .y_offset = 1}, + {.size = 8, .y_offset = 1}, + {.size = 8, .y_offset = 1}, + {.size = 8, .y_offset = 1}, + {.size = 8, .y_offset = 1}, + {.size = 8, .y_offset = 1}, + {.size = 8, .y_offset = 1}, + {.size = 8, .y_offset = 1}, + {.size = 8, .y_offset = 1}, + {.size = 8, .y_offset = 1}, + {.size = 8, .y_offset = 1}, + {.size = 8, .y_offset = 1}, + {.size = 8, .y_offset = 1}, + {.size = 8, .y_offset = 1}, + {.size = 8, .y_offset = 1}, + {.size = 8, .y_offset = 1}, + {.size = 8, .y_offset = 1}, + {.size = 8, .y_offset = 1}, + {.size = 8, .y_offset = 1}, + {.size = 8, .y_offset = 1}, + {.size = 8, .y_offset = 1}, + {.size = 8, .y_offset = 1}, + {.size = 8, .y_offset = 1}, + {.size = 8, .y_offset = 1}, + {.size = 8, .y_offset = 1}, + {.size = 8, .y_offset = 1}, + {.size = 8, .y_offset = 1}, + {.size = 8, .y_offset = 1}, + {.size = 8, .y_offset = 1}, + {.size = 8, .y_offset = 1}, + {.size = 8, .y_offset = 1}, + {.size = 8, .y_offset = 1}, + {.size = 8, .y_offset = 1}, +}; + +const struct CompressedSpriteSheet gTrainerFrontPicTable[] = +{ + TRAINER_SPRITE(AQUA_LEADER_ARCHIE, gTrainerFrontPic_AquaLeaderArchie, 0x800), + TRAINER_SPRITE(AQUA_GRUNT_M, gTrainerFrontPic_AquaGruntM, 0x800), + TRAINER_SPRITE(AQUA_GRUNT_F, gTrainerFrontPic_AquaGruntF, 0x800), + TRAINER_SPRITE(RS_AROMA_LADY, gTrainerFrontPic_RSAromaLady, 0x800), + TRAINER_SPRITE(RS_RUIN_MANIAC, gTrainerFrontPic_RSRuinManiac, 0x800), + TRAINER_SPRITE(INTERVIEWER, gTrainerFrontPic_Interviewer, 0x800), + TRAINER_SPRITE(RS_TUBER_F, gTrainerFrontPic_RSTuberF, 0x800), + TRAINER_SPRITE(TUBER_M, gTrainerFrontPic_TuberM, 0x800), + TRAINER_SPRITE(RS_COOLTRAINER_M, gTrainerFrontPic_RSCooltrainerM, 0x800), + TRAINER_SPRITE(RS_COOLTRAINER_F, gTrainerFrontPic_RSCooltrainerF, 0x800), + TRAINER_SPRITE(HEX_MANIAC, gTrainerFrontPic_HexManiac, 0x800), + TRAINER_SPRITE(RS_LADY, gTrainerFrontPic_RSLady, 0x800), + TRAINER_SPRITE(RS_BEAUTY, gTrainerFrontPic_RSBeauty, 0x800), + TRAINER_SPRITE(RICH_BOY, gTrainerFrontPic_RichBoy, 0x800), + TRAINER_SPRITE(RS_POKEMANIAC, gTrainerFrontPic_RSPokeManiac, 0x800), + TRAINER_SPRITE(RS_SWIMMER_M, gTrainerFrontPic_RSSwimmerM, 0x800), + TRAINER_SPRITE(RS_BLACK_BELT, gTrainerFrontPic_RSBlackBelt, 0x800), + TRAINER_SPRITE(GUITARIST, gTrainerFrontPic_Guitarist, 0x800), + TRAINER_SPRITE(KINDLER, gTrainerFrontPic_Kindler, 0x800), + TRAINER_SPRITE(RS_CAMPER, gTrainerFrontPic_RSCamper, 0x800), + TRAINER_SPRITE(BUG_MANIAC, gTrainerFrontPic_BugManiac, 0x800), + TRAINER_SPRITE(RS_PSYCHIC_M, gTrainerFrontPic_RSPsychicM, 0x800), + TRAINER_SPRITE(RS_PSYCHIC_F, gTrainerFrontPic_RSPsychicF, 0x800), + TRAINER_SPRITE(RS_GENTLEMAN, gTrainerFrontPic_RSGentleman, 0x800), + TRAINER_SPRITE(ELITE_FOUR_SIDNEY, gTrainerFrontPic_EliteFourSidney, 0x800), + TRAINER_SPRITE(ELITE_FOUR_PHOEBE, gTrainerFrontPic_EliteFourPhoebe, 0x800), + TRAINER_SPRITE(LEADER_ROXANNE, gTrainerFrontPic_LeaderRoxanne, 0x800), + TRAINER_SPRITE(LEADER_BRAWLY, gTrainerFrontPic_LeaderBrawly, 0x800), + TRAINER_SPRITE(LEADER_TATE_AND_LIZA, gTrainerFrontPic_LeaderTateAndLiza, 0x800), + TRAINER_SPRITE(SCHOOL_KID_M, gTrainerFrontPic_SchoolKidM, 0x800), + TRAINER_SPRITE(SCHOOL_KID_F, gTrainerFrontPic_SchoolKidF, 0x800), + TRAINER_SPRITE(SR_AND_JR, gTrainerFrontPic_SrAndJr, 0x1000), + TRAINER_SPRITE(POKEFAN_M, gTrainerFrontPic_PokefanM, 0x1000), + TRAINER_SPRITE(POKEFAN_F, gTrainerFrontPic_PokefanF, 0x800), + TRAINER_SPRITE(EXPERT_M, gTrainerFrontPic_ExpertM, 0x800), + TRAINER_SPRITE(EXPERT_F, gTrainerFrontPic_ExpertF, 0x800), + TRAINER_SPRITE(RS_YOUNGSTER, gTrainerFrontPic_RSYoungster, 0x800), + TRAINER_SPRITE(CHAMPION_STEVEN, gTrainerFrontPic_ChampionSteven, 0x800), + TRAINER_SPRITE(RS_FISHERMAN, gTrainerFrontPic_RSFisherman, 0x800), + TRAINER_SPRITE(CYCLING_TRIATHLETE_M, gTrainerFrontPic_CyclingTriathleteM, 0x1000), + TRAINER_SPRITE(CYCLING_TRIATHLETE_F, gTrainerFrontPic_CyclingTriathleteF, 0x800), + TRAINER_SPRITE(RUNNING_TRIATHLETE_M, gTrainerFrontPic_RunningTriathleteM, 0x800), + TRAINER_SPRITE(RUNNING_TRIATHLETE_F, gTrainerFrontPic_RunningTriathleteF, 0x800), + TRAINER_SPRITE(SWIMMING_TRIATHLETE_M, gTrainerFrontPic_SwimmingTriathleteM, 0x800), + TRAINER_SPRITE(SWIMMING_TRIATHLETE_F, gTrainerFrontPic_SwimmingTriathleteF, 0x800), + TRAINER_SPRITE(DRAGON_TAMER, gTrainerFrontPic_DragonTamer, 0x800), + TRAINER_SPRITE(RS_BIRD_KEEPER, gTrainerFrontPic_RSBirdKeeper, 0x800), + TRAINER_SPRITE(NINJA_BOY, gTrainerFrontPic_NinjaBoy, 0x800), + TRAINER_SPRITE(BATTLE_GIRL, gTrainerFrontPic_BattleGirl, 0x1000), + TRAINER_SPRITE(PARASOL_LADY, gTrainerFrontPic_ParasolLady, 0x800), + TRAINER_SPRITE(RS_SWIMMER_F, gTrainerFrontPic_RSSwimmerF, 0x800), + TRAINER_SPRITE(RS_PICNICKER, gTrainerFrontPic_RSPicnicker, 0x800), + TRAINER_SPRITE(RS_TWINS, gTrainerFrontPic_RSTwins, 0x800), + TRAINER_SPRITE(RS_SAILOR, gTrainerFrontPic_RSSailor, 0x800), + TRAINER_SPRITE(COLLECTOR, gTrainerFrontPic_Collector, 0x800), + TRAINER_SPRITE(WALLY, gTrainerFrontPic_Wally, 0x800), + TRAINER_SPRITE(RS_BRENDAN_1, gTrainerFrontPic_RSBrendan1, 0x800), + TRAINER_SPRITE(RS_MAY_1, gTrainerFrontPic_RSMay1, 0x800), + TRAINER_SPRITE(POKEMON_BREEDER_M, gTrainerFrontPic_PokemonBreederM, 0x800), + TRAINER_SPRITE(RS_POKEMON_BREEDER_F, gTrainerFrontPic_RSPokemonBreederF, 0x800), + TRAINER_SPRITE(RS_POKEMON_RANGER_M, gTrainerFrontPic_RSPokemonRangerM, 0x800), + TRAINER_SPRITE(RS_POKEMON_RANGER_F, gTrainerFrontPic_RSPokemonRangerF, 0x800), + TRAINER_SPRITE(MAGMA_LEADER_MAXIE, gTrainerFrontPic_MagmaLeaderMaxie, 0x800), + TRAINER_SPRITE(MAGMA_GRUNT_M, gTrainerFrontPic_MagmaGruntM, 0x800), + TRAINER_SPRITE(MAGMA_GRUNT_F, gTrainerFrontPic_MagmaGruntF, 0x800), + TRAINER_SPRITE(RS_LASS, gTrainerFrontPic_RSLass, 0x800), + TRAINER_SPRITE(RS_BUG_CATCHER, gTrainerFrontPic_RSBugCatcher, 0x800), + TRAINER_SPRITE(RS_HIKER, gTrainerFrontPic_RSHiker, 0x800), + TRAINER_SPRITE(RS_YOUNG_COUPLE, gTrainerFrontPic_RSYoungCouple, 0x800), + TRAINER_SPRITE(OLD_COUPLE, gTrainerFrontPic_OldCouple, 0x800), + TRAINER_SPRITE(RS_SIS_AND_BRO, gTrainerFrontPic_RSSisAndBro, 0x800), + TRAINER_SPRITE(AQUA_ADMIN_M, gTrainerFrontPic_AquaAdminM, 0x800), + TRAINER_SPRITE(AQUA_ADMIN_F, gTrainerFrontPic_AquaAdminF, 0x800), + TRAINER_SPRITE(MAGMA_ADMIN_M, gTrainerFrontPic_MagmaAdminM, 0x800), + TRAINER_SPRITE(MAGMA_ADMIN_F, gTrainerFrontPic_MagmaAdminF, 0x800), + TRAINER_SPRITE(LEADER_WATTSON, gTrainerFrontPic_LeaderWattson, 0x800), + TRAINER_SPRITE(LEADER_FLANNERY, gTrainerFrontPic_LeaderFlannery, 0x800), + TRAINER_SPRITE(LEADER_NORMAN, gTrainerFrontPic_LeaderNorman, 0x800), + TRAINER_SPRITE(LEADER_WINONA, gTrainerFrontPic_LeaderWinona, 0x800), + TRAINER_SPRITE(LEADER_WALLACE, gTrainerFrontPic_LeaderWallace, 0x800), + TRAINER_SPRITE(ELITE_FOUR_GLACIA, gTrainerFrontPic_EliteFourGlacia, 0x800), + TRAINER_SPRITE(ELITE_FOUR_DRAKE, gTrainerFrontPic_EliteFourDrake, 0x800), + TRAINER_SPRITE(YOUNGSTER, gTrainerFrontPic_Youngster, 0x800), + TRAINER_SPRITE(BUG_CATCHER, gTrainerFrontPic_BugCatcher, 0x800), + TRAINER_SPRITE(LASS, gTrainerFrontPic_Lass, 0x800), + TRAINER_SPRITE(SAILOR, gTrainerFrontPic_Sailor, 0x800), + TRAINER_SPRITE(CAMPER, gTrainerFrontPic_Camper, 0x800), + TRAINER_SPRITE(PICNICKER, gTrainerFrontPic_Picnicker, 0x800), + TRAINER_SPRITE(POKEMANIAC, gTrainerFrontPic_PokeManiac, 0x800), + TRAINER_SPRITE(SUPER_NERD, gTrainerFrontPic_SuperNerd, 0x800), + TRAINER_SPRITE(HIKER, gTrainerFrontPic_Hiker, 0x800), + TRAINER_SPRITE(BIKER, gTrainerFrontPic_Biker, 0x800), + TRAINER_SPRITE(BURGLAR, gTrainerFrontPic_Burglar, 0x800), + TRAINER_SPRITE(ENGINEER, gTrainerFrontPic_Engineer, 0x800), + TRAINER_SPRITE(FISHERMAN, gTrainerFrontPic_Fisherman, 0x800), + TRAINER_SPRITE(SWIMMER_M, gTrainerFrontPic_SwimmerM, 0x800), + TRAINER_SPRITE(CUE_BALL, gTrainerFrontPic_CueBall, 0x800), + TRAINER_SPRITE(GAMER, gTrainerFrontPic_Gamer, 0x800), + TRAINER_SPRITE(BEAUTY, gTrainerFrontPic_Beauty, 0x800), + TRAINER_SPRITE(SWIMMER_F, gTrainerFrontPic_SwimmerF, 0x800), + TRAINER_SPRITE(PSYCHIC_M, gTrainerFrontPic_PsychicM, 0x800), + TRAINER_SPRITE(ROCKER, gTrainerFrontPic_Rocker, 0x800), + TRAINER_SPRITE(JUGGLER, gTrainerFrontPic_Juggler, 0x800), + TRAINER_SPRITE(TAMER, gTrainerFrontPic_Tamer, 0x800), + TRAINER_SPRITE(BIRD_KEEPER, gTrainerFrontPic_BirdKeeper, 0x800), + TRAINER_SPRITE(BLACK_BELT, gTrainerFrontPic_BlackBelt, 0x800), + TRAINER_SPRITE(RIVAL_1, gTrainerFrontPic_Rival1, 0x800), + TRAINER_SPRITE(SCIENTIST, gTrainerFrontPic_Scientist, 0x800), + TRAINER_SPRITE(LEADER_GIOVANNI, gTrainerFrontPic_LeaderGiovanni, 0x800), + TRAINER_SPRITE(ROCKET_GRUNT_M, gTrainerFrontPic_RocketGruntM, 0x800), + TRAINER_SPRITE(COOLTRAINER_M, gTrainerFrontPic_CooltrainerM, 0x800), + TRAINER_SPRITE(COOLTRAINER_F, gTrainerFrontPic_CooltrainerF, 0x800), + TRAINER_SPRITE(ELITE_FOUR_LORELEI, gTrainerFrontPic_EliteFourLorelei, 0x800), + TRAINER_SPRITE(ELITE_FOUR_BRUNO, gTrainerFrontPic_EliteFourBruno, 0x800), + TRAINER_SPRITE(ELITE_FOUR_AGATHA, gTrainerFrontPic_EliteFourAgatha, 0x800), + TRAINER_SPRITE(ELITE_FOUR_LANCE, gTrainerFrontPic_EliteFourLance, 0x800), + TRAINER_SPRITE(LEADER_BROCK, gTrainerFrontPic_LeaderBrock, 0x800), + TRAINER_SPRITE(LEADER_MISTY, gTrainerFrontPic_LeaderMisty, 0x800), + TRAINER_SPRITE(LEADER_LT_SURGE, gTrainerFrontPic_LeaderLtSurge, 0x800), + TRAINER_SPRITE(LEADER_ERIKA, gTrainerFrontPic_LeaderErika, 0x800), + TRAINER_SPRITE(LEADER_KOGA, gTrainerFrontPic_LeaderKoga, 0x800), + TRAINER_SPRITE(LEADER_BLAINE, gTrainerFrontPic_LeaderBlaine, 0x800), + TRAINER_SPRITE(LEADER_SABRINA, gTrainerFrontPic_LeaderSabrina, 0x800), + TRAINER_SPRITE(GENTLEMAN, gTrainerFrontPic_Gentleman, 0x800), + TRAINER_SPRITE(RIVAL_2, gTrainerFrontPic_Rival2, 0x800), + TRAINER_SPRITE(CHAMPION_RIVAL, gTrainerFrontPic_ChampionRival, 0x800), + TRAINER_SPRITE(CHANNELER, gTrainerFrontPic_Channeler, 0x800), + TRAINER_SPRITE(TWINS, gTrainerFrontPic_Twins, 0x800), + TRAINER_SPRITE(COOL_COUPLE, gTrainerFrontPic_CoolCouple, 0x800), + TRAINER_SPRITE(YOUNG_COUPLE, gTrainerFrontPic_YoungCouple, 0x800), + TRAINER_SPRITE(CRUSH_KIN, gTrainerFrontPic_CrushKin, 0x800), + TRAINER_SPRITE(SIS_AND_BRO, gTrainerFrontPic_SisAndBro, 0x800), + TRAINER_SPRITE(PROFESSOR_OAK, gTrainerFrontPic_ProfessorOak, 0x800), + TRAINER_SPRITE(RS_BRENDAN_2, gTrainerFrontPic_RSBrendan2, 0x800), + TRAINER_SPRITE(RS_MAY_2, gTrainerFrontPic_RSMay2, 0x800), + TRAINER_SPRITE(RED, gTrainerFrontPic_Red, 0x800), + TRAINER_SPRITE(LEAF, gTrainerFrontPic_Leaf, 0x800), + TRAINER_SPRITE(ROCKET_GRUNT_F, gTrainerFrontPic_RocketGruntF, 0x800), + TRAINER_SPRITE(PSYCHIC_F, gTrainerFrontPic_PsychicF, 0x800), + TRAINER_SPRITE(CRUSH_GIRL, gTrainerFrontPic_CrushGirl, 0x800), + TRAINER_SPRITE(TUBER_F, gTrainerFrontPic_TuberF, 0x800), + TRAINER_SPRITE(POKEMON_BREEDER_F, gTrainerFrontPic_PokemonBreederF, 0x800), + TRAINER_SPRITE(POKEMON_RANGER_M, gTrainerFrontPic_PokemonRangerM, 0x800), + TRAINER_SPRITE(POKEMON_RANGER_F, gTrainerFrontPic_PokemonRangerF, 0x800), + TRAINER_SPRITE(AROMA_LADY, gTrainerFrontPic_AromaLady, 0x800), + TRAINER_SPRITE(RUIN_MANIAC, gTrainerFrontPic_RuinManiac, 0x800), + TRAINER_SPRITE(LADY, gTrainerFrontPic_Lady, 0x800), + TRAINER_SPRITE(PAINTER, gTrainerFrontPic_Painter, 0x800), +}; + +const struct CompressedSpritePalette gTrainerFrontPicPaletteTable[] = +{ + TRAINER_PAL(AQUA_LEADER_ARCHIE, gTrainerPalette_AquaLeaderArchie), + TRAINER_PAL(AQUA_GRUNT_M, gTrainerPalette_AquaGruntM), + TRAINER_PAL(AQUA_GRUNT_F, gTrainerPalette_AquaGruntF), + TRAINER_PAL(RS_AROMA_LADY, gTrainerPalette_RSAromaLady), + TRAINER_PAL(RS_RUIN_MANIAC, gTrainerPalette_RSRuinManiac), + TRAINER_PAL(INTERVIEWER, gTrainerPalette_Interviewer), + TRAINER_PAL(RS_TUBER_F, gTrainerPalette_RSTuberF), + TRAINER_PAL(TUBER_M, gTrainerPalette_TuberM), + TRAINER_PAL(RS_COOLTRAINER_M, gTrainerPalette_RSCooltrainerM), + TRAINER_PAL(RS_COOLTRAINER_F, gTrainerPalette_RSCooltrainerF), + TRAINER_PAL(HEX_MANIAC, gTrainerPalette_HexManiac), + TRAINER_PAL(RS_LADY, gTrainerPalette_RSLady), + TRAINER_PAL(RS_BEAUTY, gTrainerPalette_RSBeauty), + TRAINER_PAL(RICH_BOY, gTrainerPalette_RichBoy), + TRAINER_PAL(RS_POKEMANIAC, gTrainerPalette_RSPokeManiac), + TRAINER_PAL(RS_SWIMMER_M, gTrainerPalette_RSSwimmerM), + TRAINER_PAL(RS_BLACK_BELT, gTrainerPalette_RSBlackBelt), + TRAINER_PAL(GUITARIST, gTrainerPalette_Guitarist), + TRAINER_PAL(KINDLER, gTrainerPalette_Kindler), + TRAINER_PAL(RS_CAMPER, gTrainerPalette_RSCamper), + TRAINER_PAL(BUG_MANIAC, gTrainerPalette_BugManiac), + TRAINER_PAL(RS_PSYCHIC_M, gTrainerPalette_RSPsychicM), + TRAINER_PAL(RS_PSYCHIC_F, gTrainerPalette_RSPsychicF), + TRAINER_PAL(RS_GENTLEMAN, gTrainerPalette_RSGentleman), + TRAINER_PAL(ELITE_FOUR_SIDNEY, gTrainerPalette_EliteFourSidney), + TRAINER_PAL(ELITE_FOUR_PHOEBE, gTrainerPalette_EliteFourPhoebe), + TRAINER_PAL(LEADER_ROXANNE, gTrainerPalette_LeaderRoxanne), + TRAINER_PAL(LEADER_BRAWLY, gTrainerPalette_LeaderBrawly), + TRAINER_PAL(LEADER_TATE_AND_LIZA, gTrainerPalette_LeaderTateAndLiza), + TRAINER_PAL(SCHOOL_KID_M, gTrainerPalette_SchoolKidM), + TRAINER_PAL(SCHOOL_KID_F, gTrainerPalette_SchoolKidF), + TRAINER_PAL(SR_AND_JR, gTrainerPalette_SrAndJr), + TRAINER_PAL(POKEFAN_M, gTrainerPalette_PokefanM), + TRAINER_PAL(POKEFAN_F, gTrainerPalette_PokefanF), + TRAINER_PAL(EXPERT_M, gTrainerPalette_ExpertM), + TRAINER_PAL(EXPERT_F, gTrainerPalette_ExpertF), + TRAINER_PAL(RS_YOUNGSTER, gTrainerPalette_RSYoungster), + TRAINER_PAL(CHAMPION_STEVEN, gTrainerPalette_ChampionSteven), + TRAINER_PAL(RS_FISHERMAN, gTrainerPalette_RSFisherman), + TRAINER_PAL(CYCLING_TRIATHLETE_M, gTrainerPalette_CyclingTriathleteM), + TRAINER_PAL(CYCLING_TRIATHLETE_F, gTrainerPalette_CyclingTriathleteF), + TRAINER_PAL(RUNNING_TRIATHLETE_M, gTrainerPalette_RunningTriathleteM), + TRAINER_PAL(RUNNING_TRIATHLETE_F, gTrainerPalette_RunningTriathleteF), + TRAINER_PAL(SWIMMING_TRIATHLETE_M, gTrainerPalette_SwimmingTriathleteM), + TRAINER_PAL(SWIMMING_TRIATHLETE_F, gTrainerPalette_SwimmingTriathleteF), + TRAINER_PAL(DRAGON_TAMER, gTrainerPalette_DragonTamer), + TRAINER_PAL(RS_BIRD_KEEPER, gTrainerPalette_RSBirdKeeper), + TRAINER_PAL(NINJA_BOY, gTrainerPalette_NinjaBoy), + TRAINER_PAL(BATTLE_GIRL, gTrainerPalette_BattleGirl), + TRAINER_PAL(PARASOL_LADY, gTrainerPalette_ParasolLady), + TRAINER_PAL(RS_SWIMMER_F, gTrainerPalette_RSSwimmerF), + TRAINER_PAL(RS_PICNICKER, gTrainerPalette_RSPicnicker), + TRAINER_PAL(RS_TWINS, gTrainerPalette_RSTwins), + TRAINER_PAL(RS_SAILOR, gTrainerPalette_RSSailor), + TRAINER_PAL(COLLECTOR, gTrainerPalette_Collector), + TRAINER_PAL(WALLY, gTrainerPalette_Wally), + TRAINER_PAL(RS_BRENDAN_1, gTrainerPalette_RSBrendan1), + TRAINER_PAL(RS_MAY_1, gTrainerPalette_RSMay1), + TRAINER_PAL(POKEMON_BREEDER_M, gTrainerPalette_PokemonBreederM), + TRAINER_PAL(RS_POKEMON_BREEDER_F, gTrainerPalette_RSPokemonBreederF), + TRAINER_PAL(RS_POKEMON_RANGER_M, gTrainerPalette_RSPokemonRangerM), + TRAINER_PAL(RS_POKEMON_RANGER_F, gTrainerPalette_RSPokemonRangerF), + TRAINER_PAL(MAGMA_LEADER_MAXIE, gTrainerPalette_MagmaLeaderMaxie), + TRAINER_PAL(MAGMA_GRUNT_M, gTrainerPalette_MagmaGruntM), + TRAINER_PAL(MAGMA_GRUNT_F, gTrainerPalette_MagmaGruntF), + TRAINER_PAL(RS_LASS, gTrainerPalette_RSLass), + TRAINER_PAL(RS_BUG_CATCHER, gTrainerPalette_RSBugCatcher), + TRAINER_PAL(RS_HIKER, gTrainerPalette_RSHiker), + TRAINER_PAL(RS_YOUNG_COUPLE, gTrainerPalette_RSYoungCouple), + TRAINER_PAL(OLD_COUPLE, gTrainerPalette_OldCouple), + TRAINER_PAL(RS_SIS_AND_BRO, gTrainerPalette_RSSisAndBro), + TRAINER_PAL(AQUA_ADMIN_M, gTrainerPalette_AquaAdminM), + TRAINER_PAL(AQUA_ADMIN_F, gTrainerPalette_AquaAdminF), + TRAINER_PAL(MAGMA_ADMIN_M, gTrainerPalette_MagmaAdminM), + TRAINER_PAL(MAGMA_ADMIN_F, gTrainerPalette_MagmaAdminF), + TRAINER_PAL(LEADER_WATTSON, gTrainerPalette_LeaderWattson), + TRAINER_PAL(LEADER_FLANNERY, gTrainerPalette_LeaderFlannery), + TRAINER_PAL(LEADER_NORMAN, gTrainerPalette_LeaderNorman), + TRAINER_PAL(LEADER_WINONA, gTrainerPalette_LeaderWinona), + TRAINER_PAL(LEADER_WALLACE, gTrainerPalette_LeaderWallace), + TRAINER_PAL(ELITE_FOUR_GLACIA, gTrainerPalette_EliteFourGlacia), + TRAINER_PAL(ELITE_FOUR_DRAKE, gTrainerPalette_EliteFourDrake), + TRAINER_PAL(YOUNGSTER, gTrainerPalette_Youngster), + TRAINER_PAL(BUG_CATCHER, gTrainerPalette_BugCatcher), + TRAINER_PAL(LASS, gTrainerPalette_Lass), + TRAINER_PAL(SAILOR, gTrainerPalette_Sailor), + TRAINER_PAL(CAMPER, gTrainerPalette_Camper), + TRAINER_PAL(PICNICKER, gTrainerPalette_Picnicker), + TRAINER_PAL(POKEMANIAC, gTrainerPalette_PokeManiac), + TRAINER_PAL(SUPER_NERD, gTrainerPalette_SuperNerd), + TRAINER_PAL(HIKER, gTrainerPalette_Hiker), + TRAINER_PAL(BIKER, gTrainerPalette_Biker), + TRAINER_PAL(BURGLAR, gTrainerPalette_Burglar), + TRAINER_PAL(ENGINEER, gTrainerPalette_Engineer), + TRAINER_PAL(FISHERMAN, gTrainerPalette_Fisherman), + TRAINER_PAL(SWIMMER_M, gTrainerPalette_SwimmerM), + TRAINER_PAL(CUE_BALL, gTrainerPalette_CueBall), + TRAINER_PAL(GAMER, gTrainerPalette_Gamer), + TRAINER_PAL(BEAUTY, gTrainerPalette_Beauty), + TRAINER_PAL(SWIMMER_F, gTrainerPalette_SwimmerF), + TRAINER_PAL(PSYCHIC_M, gTrainerPalette_PsychicM), + TRAINER_PAL(ROCKER, gTrainerPalette_Rocker), + TRAINER_PAL(JUGGLER, gTrainerPalette_Juggler), + TRAINER_PAL(TAMER, gTrainerPalette_Tamer), + TRAINER_PAL(BIRD_KEEPER, gTrainerPalette_BirdKeeper), + TRAINER_PAL(BLACK_BELT, gTrainerPalette_BlackBelt), + TRAINER_PAL(RIVAL_1, gTrainerPalette_Rival1), + TRAINER_PAL(SCIENTIST, gTrainerPalette_Scientist), + TRAINER_PAL(LEADER_GIOVANNI, gTrainerPalette_LeaderGiovanni), + TRAINER_PAL(ROCKET_GRUNT_M, gTrainerPalette_RocketGruntM), + TRAINER_PAL(COOLTRAINER_M, gTrainerPalette_CooltrainerM), + TRAINER_PAL(COOLTRAINER_F, gTrainerPalette_CooltrainerF), + TRAINER_PAL(ELITE_FOUR_LORELEI, gTrainerPalette_EliteFourLorelei), + TRAINER_PAL(ELITE_FOUR_BRUNO, gTrainerPalette_EliteFourBruno), + TRAINER_PAL(ELITE_FOUR_AGATHA, gTrainerPalette_EliteFourAgatha), + TRAINER_PAL(ELITE_FOUR_LANCE, gTrainerPalette_EliteFourLance), + TRAINER_PAL(LEADER_BROCK, gTrainerPalette_LeaderBrock), + TRAINER_PAL(LEADER_MISTY, gTrainerPalette_LeaderMisty), + TRAINER_PAL(LEADER_LT_SURGE, gTrainerPalette_LeaderLtSurge), + TRAINER_PAL(LEADER_ERIKA, gTrainerPalette_LeaderErika), + TRAINER_PAL(LEADER_KOGA, gTrainerPalette_LeaderKoga), + TRAINER_PAL(LEADER_BLAINE, gTrainerPalette_LeaderBlaine), + TRAINER_PAL(LEADER_SABRINA, gTrainerPalette_LeaderSabrina), + TRAINER_PAL(GENTLEMAN, gTrainerPalette_Gentleman), + TRAINER_PAL(RIVAL_2, gTrainerPalette_Rival2), + TRAINER_PAL(CHAMPION_RIVAL, gTrainerPalette_ChampionRival), + TRAINER_PAL(CHANNELER, gTrainerPalette_Channeler), + TRAINER_PAL(TWINS, gTrainerPalette_Twins), + TRAINER_PAL(COOL_COUPLE, gTrainerPalette_CoolCouple), + TRAINER_PAL(YOUNG_COUPLE, gTrainerPalette_YoungCouple), + TRAINER_PAL(CRUSH_KIN, gTrainerPalette_CrushKin), + TRAINER_PAL(SIS_AND_BRO, gTrainerPalette_SisAndBro), + TRAINER_PAL(PROFESSOR_OAK, gTrainerPalette_ProfessorOak), + TRAINER_PAL(RS_BRENDAN_2, gTrainerPalette_RSBrendan2), + TRAINER_PAL(RS_MAY_2, gTrainerPalette_RSMay2), + TRAINER_PAL(RED, gTrainerPalette_Red), + TRAINER_PAL(LEAF, gTrainerPalette_Leaf), + TRAINER_PAL(ROCKET_GRUNT_F, gTrainerPalette_RocketGruntF), + TRAINER_PAL(PSYCHIC_F, gTrainerPalette_PsychicF), + TRAINER_PAL(CRUSH_GIRL, gTrainerPalette_CrushGirl), + TRAINER_PAL(TUBER_F, gTrainerPalette_TuberF), + TRAINER_PAL(POKEMON_BREEDER_F, gTrainerPalette_PokemonBreederF), + TRAINER_PAL(POKEMON_RANGER_M, gTrainerPalette_PokemonRangerM), + TRAINER_PAL(POKEMON_RANGER_F, gTrainerPalette_PokemonRangerF), + TRAINER_PAL(AROMA_LADY, gTrainerPalette_AromaLady), + TRAINER_PAL(RUIN_MANIAC, gTrainerPalette_RuinManiac), + TRAINER_PAL(LADY, gTrainerPalette_Lady), + TRAINER_PAL(PAINTER, gTrainerPalette_Painter), +}; diff --git a/src/data/trainer_parties.h b/src/data/trainer_parties.h new file mode 100644 index 000000000..a2c4b512d --- /dev/null +++ b/src/data/trainer_parties.h @@ -0,0 +1,11557 @@ +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A1A0[] = { + { + .iv = 0, + .lvl = 5, + .species = SPECIES_EKANS, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A1A8[] = { + { + .iv = 0, + .lvl = 5, + .species = SPECIES_EKANS, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A1B0[] = { + { + .iv = 0, + .lvl = 5, + .species = SPECIES_EKANS, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A1B8[] = { + { + .iv = 0, + .lvl = 5, + .species = SPECIES_EKANS, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A1C0[] = { + { + .iv = 0, + .lvl = 5, + .species = SPECIES_EKANS, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A1C8[] = { + { + .iv = 0, + .lvl = 5, + .species = SPECIES_EKANS, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A1D0[] = { + { + .iv = 0, + .lvl = 38, + .species = SPECIES_STARMIE, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A1D8[] = { + { + .iv = 0, + .lvl = 38, + .species = SPECIES_STARMIE, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A1E0[] = { + { + .iv = 100, + .lvl = 5, + .species = SPECIES_EKANS, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A1E8[] = { + { + .iv = 100, + .lvl = 5, + .species = SPECIES_EKANS, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A1F0[] = { + { + .iv = 0, + .lvl = 5, + .species = SPECIES_EKANS, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A1F8[] = { + { + .iv = 0, + .lvl = 5, + .species = SPECIES_EKANS, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A200[] = { + { + .iv = 0, + .lvl = 5, + .species = SPECIES_EKANS, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A208[] = { + { + .iv = 0, + .lvl = 5, + .species = SPECIES_EKANS, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A210[] = { + { + .iv = 0, + .lvl = 5, + .species = SPECIES_EKANS, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A218[] = { + { + .iv = 0, + .lvl = 5, + .species = SPECIES_EKANS, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A220[] = { + { + .iv = 100, + .lvl = 5, + .species = SPECIES_EKANS, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A228[] = { + { + .iv = 0, + .lvl = 5, + .species = SPECIES_EKANS, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A230[] = { + { + .iv = 0, + .lvl = 5, + .species = SPECIES_EKANS, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A238[] = { + { + .iv = 0, + .lvl = 5, + .species = SPECIES_EKANS, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A240[] = { + { + .iv = 0, + .lvl = 5, + .species = SPECIES_EKANS, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A248[] = { + { + .iv = 0, + .lvl = 5, + .species = SPECIES_EKANS, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A250[] = { + { + .iv = 0, + .lvl = 5, + .species = SPECIES_EKANS, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A258[] = { + { + .iv = 0, + .lvl = 5, + .species = SPECIES_EKANS, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A260[] = { + { + .iv = 0, + .lvl = 5, + .species = SPECIES_EKANS, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A268[] = { + { + .iv = 0, + .lvl = 5, + .species = SPECIES_EKANS, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A270[] = { + { + .iv = 0, + .lvl = 5, + .species = SPECIES_EKANS, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A278[] = { + { + .iv = 0, + .lvl = 5, + .species = SPECIES_EKANS, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A280[] = { + { + .iv = 0, + .lvl = 5, + .species = SPECIES_EKANS, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A288[] = { + { + .iv = 0, + .lvl = 5, + .species = SPECIES_EKANS, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A290[] = { + { + .iv = 0, + .lvl = 5, + .species = SPECIES_EKANS, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A298[] = { + { + .iv = 0, + .lvl = 5, + .species = SPECIES_EKANS, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A2A0[] = { + { + .iv = 0, + .lvl = 5, + .species = SPECIES_EKANS, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A2A8[] = { + { + .iv = 0, + .lvl = 5, + .species = SPECIES_EKANS, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A2B0[] = { + { + .iv = 0, + .lvl = 5, + .species = SPECIES_EKANS, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A2B8[] = { + { + .iv = 0, + .lvl = 5, + .species = SPECIES_EKANS, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A2C0[] = { + { + .iv = 0, + .lvl = 5, + .species = SPECIES_EKANS, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A2C8[] = { + { + .iv = 0, + .lvl = 5, + .species = SPECIES_EKANS, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A2D0[] = { + { + .iv = 0, + .lvl = 5, + .species = SPECIES_EKANS, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A2D8[] = { + { + .iv = 0, + .lvl = 5, + .species = SPECIES_EKANS, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A2E0[] = { + { + .iv = 0, + .lvl = 5, + .species = SPECIES_EKANS, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A2E8[] = { + { + .iv = 0, + .lvl = 5, + .species = SPECIES_EKANS, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A2F0[] = { + { + .iv = 0, + .lvl = 5, + .species = SPECIES_EKANS, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A2F8[] = { + { + .iv = 0, + .lvl = 5, + .species = SPECIES_EKANS, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A300[] = { + { + .iv = 0, + .lvl = 5, + .species = SPECIES_EKANS, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A308[] = { + { + .iv = 0, + .lvl = 5, + .species = SPECIES_EKANS, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A310[] = { + { + .iv = 0, + .lvl = 5, + .species = SPECIES_EKANS, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A318[] = { + { + .iv = 0, + .lvl = 5, + .species = SPECIES_EKANS, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A320[] = { + { + .iv = 0, + .lvl = 5, + .species = SPECIES_EKANS, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A328[] = { + { + .iv = 0, + .lvl = 5, + .species = SPECIES_EKANS, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A330[] = { + { + .iv = 0, + .lvl = 5, + .species = SPECIES_EKANS, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A338[] = { + { + .iv = 0, + .lvl = 5, + .species = SPECIES_EKANS, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A340[] = { + { + .iv = 0, + .lvl = 5, + .species = SPECIES_EKANS, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A348[] = { + { + .iv = 0, + .lvl = 5, + .species = SPECIES_EKANS, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A350[] = { + { + .iv = 0, + .lvl = 5, + .species = SPECIES_EKANS, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A358[] = { + { + .iv = 0, + .lvl = 5, + .species = SPECIES_EKANS, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A360[] = { + { + .iv = 0, + .lvl = 5, + .species = SPECIES_EKANS, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A368[] = { + { + .iv = 0, + .lvl = 5, + .species = SPECIES_EKANS, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A370[] = { + { + .iv = 0, + .lvl = 5, + .species = SPECIES_EKANS, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A378[] = { + { + .iv = 0, + .lvl = 5, + .species = SPECIES_EKANS, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A380[] = { + { + .iv = 0, + .lvl = 5, + .species = SPECIES_EKANS, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A388[] = { + { + .iv = 0, + .lvl = 5, + .species = SPECIES_EKANS, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A390[] = { + { + .iv = 0, + .lvl = 5, + .species = SPECIES_EKANS, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A398[] = { + { + .iv = 0, + .lvl = 5, + .species = SPECIES_EKANS, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A3A0[] = { + { + .iv = 0, + .lvl = 5, + .species = SPECIES_EKANS, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A3A8[] = { + { + .iv = 0, + .lvl = 5, + .species = SPECIES_EKANS, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A3B0[] = { + { + .iv = 100, + .lvl = 5, + .species = SPECIES_EKANS, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A3B8[] = { + { + .iv = 100, + .lvl = 5, + .species = SPECIES_EKANS, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A3C0[] = { + { + .iv = 0, + .lvl = 5, + .species = SPECIES_EKANS, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A3C8[] = { + { + .iv = 0, + .lvl = 5, + .species = SPECIES_EKANS, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A3D0[] = { + { + .iv = 0, + .lvl = 5, + .species = SPECIES_EKANS, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A3D8[] = { + { + .iv = 0, + .lvl = 5, + .species = SPECIES_EKANS, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A3E0[] = { + { + .iv = 0, + .lvl = 5, + .species = SPECIES_EKANS, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A3E8[] = { + { + .iv = 0, + .lvl = 5, + .species = SPECIES_EKANS, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A3F0[] = { + { + .iv = 0, + .lvl = 5, + .species = SPECIES_EKANS, + }, + { + .iv = 0, + .lvl = 5, + .species = SPECIES_EKANS, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A400[] = { + { + .iv = 0, + .lvl = 5, + .species = SPECIES_EKANS, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A408[] = { + { + .iv = 0, + .lvl = 5, + .species = SPECIES_EKANS, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A410[] = { + { + .iv = 0, + .lvl = 5, + .species = SPECIES_EKANS, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A418[] = { + { + .iv = 0, + .lvl = 5, + .species = SPECIES_EKANS, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A420[] = { + { + .iv = 0, + .lvl = 5, + .species = SPECIES_EKANS, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A428[] = { + { + .iv = 0, + .lvl = 5, + .species = SPECIES_EKANS, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A430[] = { + { + .iv = 0, + .lvl = 5, + .species = SPECIES_EKANS, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A438[] = { + { + .iv = 0, + .lvl = 5, + .species = SPECIES_EKANS, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A440[] = { + { + .iv = 0, + .lvl = 5, + .species = SPECIES_EKANS, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A448[] = { + { + .iv = 0, + .lvl = 5, + .species = SPECIES_EKANS, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A450[] = { + { + .iv = 0, + .lvl = 5, + .species = SPECIES_EKANS, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A458[] = { + { + .iv = 0, + .lvl = 5, + .species = SPECIES_EKANS, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A460[] = { + { + .iv = 0, + .lvl = 5, + .species = SPECIES_EKANS, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A468[] = { + { + .iv = 0, + .lvl = 11, + .species = SPECIES_RATTATA, + }, + { + .iv = 0, + .lvl = 11, + .species = SPECIES_EKANS, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A478[] = { + { + .iv = 0, + .lvl = 14, + .species = SPECIES_SPEAROW, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A480[] = { + { + .iv = 0, + .lvl = 10, + .species = SPECIES_RATTATA, + }, + { + .iv = 0, + .lvl = 10, + .species = SPECIES_RATTATA, + }, + { + .iv = 0, + .lvl = 10, + .species = SPECIES_ZUBAT, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A498[] = { + { + .iv = 0, + .lvl = 14, + .species = SPECIES_SANDSHREW, + }, + { + .iv = 0, + .lvl = 14, + .species = SPECIES_EKANS, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A4A8[] = { + { + .iv = 0, + .lvl = 15, + .species = SPECIES_RATTATA, + }, + { + .iv = 0, + .lvl = 15, + .species = SPECIES_SPEAROW, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A4B8[] = { + { + .iv = 0, + .lvl = 17, + .species = SPECIES_SLOWPOKE, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A4C0[] = { + { + .iv = 0, + .lvl = 14, + .species = SPECIES_EKANS, + }, + { + .iv = 0, + .lvl = 14, + .species = SPECIES_SANDSHREW, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A4D0[] = { + { + .iv = 0, + .lvl = 21, + .species = SPECIES_NIDORAN_M, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A4D8[] = { + { + .iv = 0, + .lvl = 21, + .species = SPECIES_EKANS, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A4E0[] = { + { + .iv = 0, + .lvl = 19, + .species = SPECIES_SANDSHREW, + }, + { + .iv = 0, + .lvl = 19, + .species = SPECIES_ZUBAT, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A4F0[] = { + { + .iv = 0, + .lvl = 17, + .species = SPECIES_RATTATA, + }, + { + .iv = 0, + .lvl = 17, + .species = SPECIES_RATTATA, + }, + { + .iv = 0, + .lvl = 17, + .species = SPECIES_RATICATE, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A508[] = { + { + .iv = 0, + .lvl = 18, + .species = SPECIES_NIDORAN_M, + }, + { + .iv = 0, + .lvl = 18, + .species = SPECIES_NIDORINO, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A518[] = { + { + .iv = 20, + .lvl = 17, + .species = SPECIES_RATTATA, + }, + { + .iv = 20, + .lvl = 17, + .species = SPECIES_EKANS, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A528[] = { + { + .iv = 0, + .lvl = 6, + .species = SPECIES_WEEDLE, + }, + { + .iv = 0, + .lvl = 6, + .species = SPECIES_CATERPIE, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A538[] = { + { + .iv = 0, + .lvl = 7, + .species = SPECIES_WEEDLE, + }, + { + .iv = 0, + .lvl = 7, + .species = SPECIES_KAKUNA, + }, + { + .iv = 0, + .lvl = 7, + .species = SPECIES_WEEDLE, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A550[] = { + { + .iv = 0, + .lvl = 9, + .species = SPECIES_WEEDLE, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A558[] = { + { + .iv = 0, + .lvl = 10, + .species = SPECIES_CATERPIE, + }, + { + .iv = 0, + .lvl = 10, + .species = SPECIES_WEEDLE, + }, + { + .iv = 0, + .lvl = 10, + .species = SPECIES_CATERPIE, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A570[] = { + { + .iv = 0, + .lvl = 9, + .species = SPECIES_WEEDLE, + }, + { + .iv = 0, + .lvl = 9, + .species = SPECIES_KAKUNA, + }, + { + .iv = 0, + .lvl = 9, + .species = SPECIES_CATERPIE, + }, + { + .iv = 0, + .lvl = 9, + .species = SPECIES_METAPOD, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A590[] = { + { + .iv = 0, + .lvl = 11, + .species = SPECIES_CATERPIE, + }, + { + .iv = 0, + .lvl = 11, + .species = SPECIES_METAPOD, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A5A0[] = { + { + .iv = 0, + .lvl = 11, + .species = SPECIES_WEEDLE, + }, + { + .iv = 0, + .lvl = 11, + .species = SPECIES_KAKUNA, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A5B0[] = { + { + .iv = 0, + .lvl = 10, + .species = SPECIES_CATERPIE, + }, + { + .iv = 0, + .lvl = 10, + .species = SPECIES_METAPOD, + }, + { + .iv = 0, + .lvl = 10, + .species = SPECIES_CATERPIE, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A5C8[] = { + { + .iv = 0, + .lvl = 10, + .species = SPECIES_CATERPIE, + }, + { + .iv = 0, + .lvl = 10, + .species = SPECIES_WEEDLE, + }, + { + .iv = 0, + .lvl = 10, + .species = SPECIES_METAPOD, + }, + { + .iv = 0, + .lvl = 10, + .species = SPECIES_KAKUNA, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A5E8[] = { + { + .iv = 0, + .lvl = 16, + .species = SPECIES_WEEDLE, + }, + { + .iv = 0, + .lvl = 16, + .species = SPECIES_CATERPIE, + }, + { + .iv = 0, + .lvl = 16, + .species = SPECIES_WEEDLE, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A600[] = { + { + .iv = 0, + .lvl = 20, + .species = SPECIES_BUTTERFREE, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A608[] = { + { + .iv = 0, + .lvl = 18, + .species = SPECIES_METAPOD, + }, + { + .iv = 0, + .lvl = 18, + .species = SPECIES_CATERPIE, + }, + { + .iv = 0, + .lvl = 18, + .species = SPECIES_VENONAT, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A620[] = { + { + .iv = 0, + .lvl = 19, + .species = SPECIES_BEEDRILL, + }, + { + .iv = 0, + .lvl = 19, + .species = SPECIES_BEEDRILL, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A630[] = { + { + .iv = 0, + .lvl = 20, + .species = SPECIES_CATERPIE, + }, + { + .iv = 0, + .lvl = 20, + .species = SPECIES_WEEDLE, + }, + { + .iv = 0, + .lvl = 20, + .species = SPECIES_VENONAT, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A648[] = { + { + .iv = 0, + .lvl = 9, + .species = SPECIES_PIDGEY, + }, + { + .iv = 0, + .lvl = 9, + .species = SPECIES_PIDGEY, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A658[] = { + { + .iv = 0, + .lvl = 10, + .species = SPECIES_RATTATA, + }, + { + .iv = 0, + .lvl = 10, + .species = SPECIES_NIDORAN_F, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A668[] = { + { + .iv = 0, + .lvl = 14, + .species = SPECIES_JIGGLYPUFF, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A670[] = { + { + .iv = 0, + .lvl = 31, + .species = SPECIES_PARAS, + }, + { + .iv = 0, + .lvl = 31, + .species = SPECIES_PARAS, + }, + { + .iv = 0, + .lvl = 31, + .species = SPECIES_PARASECT, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A688[] = { + { + .iv = 0, + .lvl = 11, + .species = SPECIES_ODDISH, + }, + { + .iv = 0, + .lvl = 11, + .species = SPECIES_BELLSPROUT, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A698[] = { + { + .iv = 0, + .lvl = 14, + .species = SPECIES_CLEFAIRY, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A6A0[] = { + { + .iv = 0, + .lvl = 16, + .species = SPECIES_NIDORAN_M, + }, + { + .iv = 0, + .lvl = 16, + .species = SPECIES_NIDORAN_F, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A6B0[] = { + { + .iv = 0, + .lvl = 12, + .species = SPECIES_PIDGEY, + }, + { + .iv = 0, + .lvl = 12, + .species = SPECIES_ODDISH, + }, + { + .iv = 0, + .lvl = 12, + .species = SPECIES_BELLSPROUT, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A6C8[] = { + { + .iv = 0, + .lvl = 15, + .species = SPECIES_NIDORAN_M, + }, + { + .iv = 0, + .lvl = 15, + .species = SPECIES_NIDORAN_F, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A6D8[] = { + { + .iv = 0, + .lvl = 13, + .species = SPECIES_ODDISH, + }, + { + .iv = 0, + .lvl = 13, + .species = SPECIES_PIDGEY, + }, + { + .iv = 0, + .lvl = 13, + .species = SPECIES_ODDISH, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A6F0[] = { + { + .iv = 0, + .lvl = 18, + .species = SPECIES_PIDGEY, + }, + { + .iv = 0, + .lvl = 18, + .species = SPECIES_NIDORAN_F, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A700[] = { + { + .iv = 0, + .lvl = 18, + .species = SPECIES_RATTATA, + }, + { + .iv = 0, + .lvl = 18, + .species = SPECIES_PIKACHU, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A710[] = { + { + .iv = 0, + .lvl = 23, + .species = SPECIES_NIDORAN_F, + }, + { + .iv = 0, + .lvl = 23, + .species = SPECIES_NIDORINA, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A720[] = { + { + .iv = 0, + .lvl = 24, + .species = SPECIES_MEOWTH, + }, + { + .iv = 0, + .lvl = 24, + .species = SPECIES_MEOWTH, + }, + { + .iv = 0, + .lvl = 24, + .species = SPECIES_MEOWTH, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A738[] = { + { + .iv = 0, + .lvl = 19, + .species = SPECIES_PIDGEY, + }, + { + .iv = 0, + .lvl = 19, + .species = SPECIES_RATTATA, + }, + { + .iv = 0, + .lvl = 19, + .species = SPECIES_NIDORAN_M, + }, + { + .iv = 0, + .lvl = 19, + .species = SPECIES_MEOWTH, + }, + { + .iv = 0, + .lvl = 19, + .species = SPECIES_PIKACHU, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A760[] = { + { + .iv = 0, + .lvl = 22, + .species = SPECIES_CLEFAIRY, + }, + { + .iv = 0, + .lvl = 22, + .species = SPECIES_CLEFAIRY, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A770[] = { + { + .iv = 0, + .lvl = 23, + .species = SPECIES_BELLSPROUT, + }, + { + .iv = 0, + .lvl = 23, + .species = SPECIES_WEEPINBELL, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A780[] = { + { + .iv = 0, + .lvl = 23, + .species = SPECIES_ODDISH, + }, + { + .iv = 0, + .lvl = 23, + .species = SPECIES_GLOOM, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A790[] = { + { + .iv = 0, + .lvl = 18, + .species = SPECIES_MACHOP, + }, + { + .iv = 0, + .lvl = 18, + .species = SPECIES_SHELLDER, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A7A0[] = { + { + .iv = 0, + .lvl = 17, + .species = SPECIES_MACHOP, + }, + { + .iv = 0, + .lvl = 17, + .species = SPECIES_TENTACOOL, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A7B0[] = { + { + .iv = 0, + .lvl = 21, + .species = SPECIES_SHELLDER, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A7B8[] = { + { + .iv = 0, + .lvl = 17, + .species = SPECIES_HORSEA, + }, + { + .iv = 0, + .lvl = 17, + .species = SPECIES_SHELLDER, + }, + { + .iv = 0, + .lvl = 17, + .species = SPECIES_TENTACOOL, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A7D0[] = { + { + .iv = 0, + .lvl = 18, + .species = SPECIES_TENTACOOL, + }, + { + .iv = 0, + .lvl = 18, + .species = SPECIES_STARYU, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A7E0[] = { + { + .iv = 0, + .lvl = 17, + .species = SPECIES_HORSEA, + }, + { + .iv = 0, + .lvl = 17, + .species = SPECIES_HORSEA, + }, + { + .iv = 0, + .lvl = 17, + .species = SPECIES_HORSEA, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A7F8[] = { + { + .iv = 0, + .lvl = 20, + .species = SPECIES_MACHOP, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A800[] = { + { + .iv = 0, + .lvl = 21, + .species = SPECIES_PIKACHU, + }, + { + .iv = 0, + .lvl = 21, + .species = SPECIES_PIKACHU, + }, +}; + +static const struct TrainerMonNoItemCustomMoves sTrainerMons_823A810[] = { + { + .iv = 0, + .lvl = 10, + .species = SPECIES_GEODUDE, + .moves = {MOVE_TACKLE, MOVE_DEFENSE_CURL, MOVE_NONE, MOVE_NONE}, + }, + { + .iv = 0, + .lvl = 11, + .species = SPECIES_SANDSHREW, + .moves = {MOVE_SCRATCH, MOVE_DEFENSE_CURL, MOVE_SAND_ATTACK, MOVE_NONE}, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A830[] = { + { + .iv = 0, + .lvl = 14, + .species = SPECIES_RATTATA, + }, + { + .iv = 0, + .lvl = 14, + .species = SPECIES_EKANS, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A840[] = { + { + .iv = 0, + .lvl = 18, + .species = SPECIES_MANKEY, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A848[] = { + { + .iv = 0, + .lvl = 20, + .species = SPECIES_SQUIRTLE, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A850[] = { + { + .iv = 0, + .lvl = 16, + .species = SPECIES_SPEAROW, + }, + { + .iv = 0, + .lvl = 16, + .species = SPECIES_RATICATE, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A860[] = { + { + .iv = 0, + .lvl = 5, + .species = SPECIES_EKANS, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A868[] = { + { + .iv = 0, + .lvl = 21, + .species = SPECIES_GROWLITHE, + }, + { + .iv = 0, + .lvl = 21, + .species = SPECIES_CHARMANDER, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A878[] = { + { + .iv = 0, + .lvl = 19, + .species = SPECIES_RATTATA, + }, + { + .iv = 0, + .lvl = 19, + .species = SPECIES_SANDSHREW, + }, + { + .iv = 0, + .lvl = 19, + .species = SPECIES_EKANS, + }, + { + .iv = 0, + .lvl = 19, + .species = SPECIES_SANDSHREW, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A898[] = { + { + .iv = 0, + .lvl = 19, + .species = SPECIES_GOLDEEN, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A8A0[] = { + { + .iv = 0, + .lvl = 16, + .species = SPECIES_RATTATA, + }, + { + .iv = 0, + .lvl = 16, + .species = SPECIES_PIKACHU, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A8B0[] = { + { + .iv = 0, + .lvl = 16, + .species = SPECIES_PIDGEY, + }, + { + .iv = 0, + .lvl = 16, + .species = SPECIES_PIDGEY, + }, + { + .iv = 0, + .lvl = 16, + .species = SPECIES_PIDGEY, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A8C8[] = { + { + .iv = 0, + .lvl = 15, + .species = SPECIES_NIDORAN_M, + }, + { + .iv = 0, + .lvl = 15, + .species = SPECIES_NIDORAN_F, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A8D8[] = { + { + .iv = 0, + .lvl = 18, + .species = SPECIES_ODDISH, + }, + { + .iv = 0, + .lvl = 18, + .species = SPECIES_BELLSPROUT, + }, + { + .iv = 0, + .lvl = 18, + .species = SPECIES_ODDISH, + }, + { + .iv = 0, + .lvl = 18, + .species = SPECIES_BELLSPROUT, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A8F8[] = { + { + .iv = 0, + .lvl = 23, + .species = SPECIES_MEOWTH, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A900[] = { + { + .iv = 0, + .lvl = 20, + .species = SPECIES_PIKACHU, + }, + { + .iv = 0, + .lvl = 20, + .species = SPECIES_CLEFAIRY, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A910[] = { + { + .iv = 0, + .lvl = 21, + .species = SPECIES_PIDGEY, + }, + { + .iv = 0, + .lvl = 21, + .species = SPECIES_PIDGEOTTO, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A920[] = { + { + .iv = 0, + .lvl = 21, + .species = SPECIES_JIGGLYPUFF, + }, + { + .iv = 0, + .lvl = 21, + .species = SPECIES_PIDGEY, + }, + { + .iv = 0, + .lvl = 21, + .species = SPECIES_MEOWTH, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A938[] = { + { + .iv = 0, + .lvl = 22, + .species = SPECIES_ODDISH, + }, + { + .iv = 0, + .lvl = 22, + .species = SPECIES_BULBASAUR, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A948[] = { + { + .iv = 0, + .lvl = 24, + .species = SPECIES_BULBASAUR, + }, + { + .iv = 0, + .lvl = 24, + .species = SPECIES_IVYSAUR, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A958[] = { + { + .iv = 0, + .lvl = 24, + .species = SPECIES_PIDGEY, + }, + { + .iv = 0, + .lvl = 24, + .species = SPECIES_MEOWTH, + }, + { + .iv = 0, + .lvl = 24, + .species = SPECIES_RATTATA, + }, + { + .iv = 0, + .lvl = 24, + .species = SPECIES_PIKACHU, + }, + { + .iv = 0, + .lvl = 24, + .species = SPECIES_MEOWTH, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A980[] = { + { + .iv = 30, + .lvl = 29, + .species = SPECIES_RHYHORN, + }, + { + .iv = 30, + .lvl = 29, + .species = SPECIES_LICKITUNG, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A990[] = { + { + .iv = 30, + .lvl = 20, + .species = SPECIES_CUBONE, + }, + { + .iv = 30, + .lvl = 20, + .species = SPECIES_SLOWPOKE, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A9A0[] = { + { + .iv = 30, + .lvl = 20, + .species = SPECIES_SLOWPOKE, + }, + { + .iv = 30, + .lvl = 20, + .species = SPECIES_SLOWPOKE, + }, + { + .iv = 30, + .lvl = 20, + .species = SPECIES_SLOWPOKE, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A9B8[] = { + { + .iv = 30, + .lvl = 22, + .species = SPECIES_CHARMANDER, + }, + { + .iv = 30, + .lvl = 22, + .species = SPECIES_CUBONE, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A9C8[] = { + { + .iv = 30, + .lvl = 25, + .species = SPECIES_SLOWPOKE, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A9D0[] = { + { + .iv = 30, + .lvl = 40, + .species = SPECIES_CHARMELEON, + }, + { + .iv = 30, + .lvl = 40, + .species = SPECIES_LAPRAS, + }, + { + .iv = 30, + .lvl = 40, + .species = SPECIES_LICKITUNG, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A9E8[] = { + { + .iv = 30, + .lvl = 23, + .species = SPECIES_CUBONE, + }, + { + .iv = 30, + .lvl = 23, + .species = SPECIES_SLOWPOKE, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823A9F8[] = { + { + .iv = 0, + .lvl = 11, + .species = SPECIES_MAGNEMITE, + }, + { + .iv = 0, + .lvl = 11, + .species = SPECIES_VOLTORB, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823AA08[] = { + { + .iv = 0, + .lvl = 12, + .species = SPECIES_GRIMER, + }, + { + .iv = 0, + .lvl = 12, + .species = SPECIES_VOLTORB, + }, + { + .iv = 0, + .lvl = 12, + .species = SPECIES_KOFFING, + }, +}; + +static const struct TrainerMonNoItemCustomMoves sTrainerMons_823AA20[] = { + { + .iv = 0, + .lvl = 20, + .species = SPECIES_VOLTORB, + .moves = {MOVE_SONIC_BOOM, MOVE_SCREECH, MOVE_TACKLE, MOVE_CHARGE}, + }, + { + .iv = 0, + .lvl = 20, + .species = SPECIES_KOFFING, + .moves = {MOVE_SLUDGE, MOVE_SMOG, MOVE_TACKLE, MOVE_POISON_GAS}, + }, + { + .iv = 0, + .lvl = 20, + .species = SPECIES_VOLTORB, + .moves = {MOVE_SONIC_BOOM, MOVE_SCREECH, MOVE_TACKLE, MOVE_CHARGE}, + }, + { + .iv = 0, + .lvl = 20, + .species = SPECIES_MAGNEMITE, + .moves = {MOVE_SONIC_BOOM, MOVE_SUPERSONIC, MOVE_THUNDER_SHOCK, MOVE_TACKLE}, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823AA60[] = { + { + .iv = 0, + .lvl = 22, + .species = SPECIES_GRIMER, + }, + { + .iv = 0, + .lvl = 22, + .species = SPECIES_MUK, + }, + { + .iv = 0, + .lvl = 22, + .species = SPECIES_GRIMER, + }, +}; + +static const struct TrainerMonNoItemCustomMoves sTrainerMons_823AA78[] = { + { + .iv = 0, + .lvl = 26, + .species = SPECIES_KOFFING, + .moves = {MOVE_SLUDGE, MOVE_SMOKESCREEN, MOVE_SMOG, MOVE_SELF_DESTRUCT}, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823AA88[] = { + { + .iv = 0, + .lvl = 22, + .species = SPECIES_KOFFING, + }, + { + .iv = 0, + .lvl = 22, + .species = SPECIES_MAGNEMITE, + }, + { + .iv = 0, + .lvl = 22, + .species = SPECIES_WEEZING, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823AAA0[] = { + { + .iv = 0, + .lvl = 20, + .species = SPECIES_MAGNEMITE, + }, + { + .iv = 0, + .lvl = 20, + .species = SPECIES_MAGNEMITE, + }, + { + .iv = 0, + .lvl = 20, + .species = SPECIES_KOFFING, + }, + { + .iv = 0, + .lvl = 20, + .species = SPECIES_MAGNEMITE, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823AAC0[] = { + { + .iv = 0, + .lvl = 24, + .species = SPECIES_MAGNEMITE, + }, + { + .iv = 0, + .lvl = 24, + .species = SPECIES_VOLTORB, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823AAD0[] = { + { + .iv = 0, + .lvl = 36, + .species = SPECIES_VULPIX, + }, + { + .iv = 0, + .lvl = 36, + .species = SPECIES_VULPIX, + }, + { + .iv = 0, + .lvl = 36, + .species = SPECIES_NINETALES, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823AAE8[] = { + { + .iv = 0, + .lvl = 34, + .species = SPECIES_PONYTA, + }, + { + .iv = 0, + .lvl = 34, + .species = SPECIES_CHARMANDER, + }, + { + .iv = 0, + .lvl = 34, + .species = SPECIES_VULPIX, + }, + { + .iv = 0, + .lvl = 34, + .species = SPECIES_GROWLITHE, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823AB08[] = { + { + .iv = 0, + .lvl = 41, + .species = SPECIES_RAPIDASH, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823AB10[] = { + { + .iv = 0, + .lvl = 37, + .species = SPECIES_GROWLITHE, + }, + { + .iv = 0, + .lvl = 37, + .species = SPECIES_VULPIX, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823AB20[] = { + { + .iv = 0, + .lvl = 10, + .species = SPECIES_GEODUDE, + }, + { + .iv = 0, + .lvl = 10, + .species = SPECIES_GEODUDE, + }, + { + .iv = 0, + .lvl = 10, + .species = SPECIES_ONIX, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823AB38[] = { + { + .iv = 0, + .lvl = 15, + .species = SPECIES_MACHOP, + }, + { + .iv = 0, + .lvl = 15, + .species = SPECIES_GEODUDE, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823AB48[] = { + { + .iv = 0, + .lvl = 13, + .species = SPECIES_GEODUDE, + }, + { + .iv = 0, + .lvl = 13, + .species = SPECIES_GEODUDE, + }, + { + .iv = 0, + .lvl = 13, + .species = SPECIES_MACHOP, + }, + { + .iv = 0, + .lvl = 13, + .species = SPECIES_GEODUDE, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823AB68[] = { + { + .iv = 0, + .lvl = 17, + .species = SPECIES_ONIX, + }, +}; + +static const struct TrainerMonNoItemCustomMoves sTrainerMons_823AB70[] = { + { + .iv = 0, + .lvl = 21, + .species = SPECIES_GEODUDE, + .moves = {MOVE_MAGNITUDE, MOVE_ROCK_THROW, MOVE_MUD_SPORT, MOVE_DEFENSE_CURL}, + }, + { + .iv = 0, + .lvl = 21, + .species = SPECIES_ONIX, + .moves = {MOVE_HARDEN, MOVE_ROCK_THROW, MOVE_BIND, MOVE_SCREECH}, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823AB90[] = { + { + .iv = 0, + .lvl = 20, + .species = SPECIES_GEODUDE, + }, + { + .iv = 0, + .lvl = 20, + .species = SPECIES_MACHOP, + }, + { + .iv = 0, + .lvl = 20, + .species = SPECIES_GEODUDE, + }, +}; + +static const struct TrainerMonNoItemCustomMoves sTrainerMons_823ABA8[] = { + { + .iv = 0, + .lvl = 21, + .species = SPECIES_GEODUDE, + .moves = {MOVE_MAGNITUDE, MOVE_ROCK_THROW, MOVE_MUD_SPORT, MOVE_DEFENSE_CURL}, + }, + { + .iv = 0, + .lvl = 21, + .species = SPECIES_ONIX, + .moves = {MOVE_HARDEN, MOVE_ROCK_THROW, MOVE_BIND, MOVE_SCREECH}, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823ABC8[] = { + { + .iv = 0, + .lvl = 19, + .species = SPECIES_ONIX, + }, + { + .iv = 0, + .lvl = 19, + .species = SPECIES_GRAVELER, + }, +}; + +static const struct TrainerMonNoItemCustomMoves sTrainerMons_823ABD8[] = { + { + .iv = 0, + .lvl = 21, + .species = SPECIES_GEODUDE, + .moves = {MOVE_MAGNITUDE, MOVE_ROCK_THROW, MOVE_MUD_SPORT, MOVE_DEFENSE_CURL}, + }, + { + .iv = 0, + .lvl = 21, + .species = SPECIES_GEODUDE, + .moves = {MOVE_MAGNITUDE, MOVE_ROCK_THROW, MOVE_MUD_SPORT, MOVE_DEFENSE_CURL}, + }, + { + .iv = 0, + .lvl = 21, + .species = SPECIES_GRAVELER, + .moves = {MOVE_MAGNITUDE, MOVE_ROCK_THROW, MOVE_MUD_SPORT, MOVE_DEFENSE_CURL}, + }, +}; + +static const struct TrainerMonNoItemCustomMoves sTrainerMons_823AC08[] = { + { + .iv = 0, + .lvl = 25, + .species = SPECIES_GEODUDE, + .moves = {MOVE_MAGNITUDE, MOVE_ROCK_THROW, MOVE_MUD_SPORT, MOVE_DEFENSE_CURL}, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823AC18[] = { + { + .iv = 0, + .lvl = 20, + .species = SPECIES_MACHOP, + }, + { + .iv = 0, + .lvl = 20, + .species = SPECIES_ONIX, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823AC28[] = { + { + .iv = 0, + .lvl = 19, + .species = SPECIES_GEODUDE, + }, + { + .iv = 0, + .lvl = 19, + .species = SPECIES_MACHOP, + }, + { + .iv = 0, + .lvl = 19, + .species = SPECIES_GEODUDE, + }, + { + .iv = 0, + .lvl = 19, + .species = SPECIES_GEODUDE, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823AC48[] = { + { + .iv = 0, + .lvl = 20, + .species = SPECIES_ONIX, + }, + { + .iv = 0, + .lvl = 20, + .species = SPECIES_ONIX, + }, + { + .iv = 0, + .lvl = 20, + .species = SPECIES_GEODUDE, + }, +}; + +static const struct TrainerMonNoItemCustomMoves sTrainerMons_823AC60[] = { + { + .iv = 0, + .lvl = 21, + .species = SPECIES_GEODUDE, + .moves = {MOVE_MAGNITUDE, MOVE_ROCK_THROW, MOVE_MUD_SPORT, MOVE_DEFENSE_CURL}, + }, + { + .iv = 0, + .lvl = 21, + .species = SPECIES_GRAVELER, + .moves = {MOVE_MAGNITUDE, MOVE_ROCK_THROW, MOVE_MUD_SPORT, MOVE_DEFENSE_CURL}, + }, +}; + +static const struct TrainerMonNoItemCustomMoves sTrainerMons_823AC80[] = { + { + .iv = 0, + .lvl = 28, + .species = SPECIES_KOFFING, + .moves = {MOVE_SMOKESCREEN, MOVE_SLUDGE, MOVE_SMOG, MOVE_POISON_GAS}, + }, + { + .iv = 0, + .lvl = 28, + .species = SPECIES_KOFFING, + .moves = {MOVE_SMOKESCREEN, MOVE_SLUDGE, MOVE_SMOG, MOVE_TACKLE}, + }, + { + .iv = 0, + .lvl = 28, + .species = SPECIES_KOFFING, + .moves = {MOVE_SMOKESCREEN, MOVE_SLUDGE, MOVE_SMOG, MOVE_TACKLE}, + }, +}; + +static const struct TrainerMonNoItemCustomMoves sTrainerMons_823ACB0[] = { + { + .iv = 0, + .lvl = 29, + .species = SPECIES_KOFFING, + .moves = {MOVE_SMOKESCREEN, MOVE_SLUDGE, MOVE_SMOG, MOVE_TACKLE}, + }, + { + .iv = 0, + .lvl = 29, + .species = SPECIES_GRIMER, + .moves = {MOVE_SCREECH, MOVE_MINIMIZE, MOVE_SLUDGE, MOVE_DISABLE}, + }, +}; + +static const struct TrainerMonNoItemCustomMoves sTrainerMons_823ACD0[] = { + { + .iv = 0, + .lvl = 25, + .species = SPECIES_KOFFING, + .moves = {MOVE_SMOKESCREEN, MOVE_SLUDGE, MOVE_SMOG, MOVE_TACKLE}, + }, + { + .iv = 0, + .lvl = 25, + .species = SPECIES_KOFFING, + .moves = {MOVE_SMOKESCREEN, MOVE_SLUDGE, MOVE_SMOG, MOVE_TACKLE}, + }, + { + .iv = 0, + .lvl = 25, + .species = SPECIES_WEEZING, + .moves = {MOVE_SMOKESCREEN, MOVE_SLUDGE, MOVE_SMOG, MOVE_TACKLE}, + }, + { + .iv = 0, + .lvl = 25, + .species = SPECIES_KOFFING, + .moves = {MOVE_SMOKESCREEN, MOVE_SLUDGE, MOVE_SMOG, MOVE_TACKLE}, + }, + { + .iv = 0, + .lvl = 25, + .species = SPECIES_GRIMER, + .moves = {MOVE_MINIMIZE, MOVE_SLUDGE, MOVE_DISABLE, MOVE_POUND}, + }, +}; + +static const struct TrainerMonNoItemCustomMoves sTrainerMons_823AD20[] = { + { + .iv = 0, + .lvl = 28, + .species = SPECIES_KOFFING, + .moves = {MOVE_SMOKESCREEN, MOVE_SLUDGE, MOVE_SMOG, MOVE_TACKLE}, + }, + { + .iv = 0, + .lvl = 28, + .species = SPECIES_GRIMER, + .moves = {MOVE_SCREECH, MOVE_MINIMIZE, MOVE_SLUDGE, MOVE_DISABLE}, + }, + { + .iv = 0, + .lvl = 28, + .species = SPECIES_WEEZING, + .moves = {MOVE_SMOKESCREEN, MOVE_SLUDGE, MOVE_SMOG, MOVE_TACKLE}, + }, +}; + +static const struct TrainerMonNoItemCustomMoves sTrainerMons_823AD50[] = { + { + .iv = 0, + .lvl = 29, + .species = SPECIES_GRIMER, + .moves = {MOVE_SCREECH, MOVE_MINIMIZE, MOVE_SLUDGE, MOVE_DISABLE}, + }, + { + .iv = 0, + .lvl = 29, + .species = SPECIES_KOFFING, + .moves = {MOVE_SMOKESCREEN, MOVE_SLUDGE, MOVE_SMOG, MOVE_TACKLE}, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823AD70[] = { + { + .iv = 0, + .lvl = 5, + .species = SPECIES_EKANS, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823AD78[] = { + { + .iv = 0, + .lvl = 33, + .species = SPECIES_WEEZING, + }, +}; + +static const struct TrainerMonNoItemCustomMoves sTrainerMons_823AD80[] = { + { + .iv = 0, + .lvl = 28, + .species = SPECIES_WEEZING, + .moves = {MOVE_SMOKESCREEN, MOVE_SLUDGE, MOVE_SMOG, MOVE_TACKLE}, + }, + { + .iv = 0, + .lvl = 28, + .species = SPECIES_KOFFING, + .moves = {MOVE_SMOKESCREEN, MOVE_SLUDGE, MOVE_SMOG, MOVE_TACKLE}, + }, + { + .iv = 0, + .lvl = 28, + .species = SPECIES_WEEZING, + .moves = {MOVE_SMOKESCREEN, MOVE_SLUDGE, MOVE_SMOG, MOVE_TACKLE}, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823ADB0[] = { + { + .iv = 0, + .lvl = 33, + .species = SPECIES_MUK, + }, +}; + +static const struct TrainerMonNoItemCustomMoves sTrainerMons_823ADB8[] = { + { + .iv = 0, + .lvl = 29, + .species = SPECIES_VOLTORB, + .moves = {MOVE_SPARK, MOVE_SONIC_BOOM, MOVE_SCREECH, MOVE_CHARGE}, + }, + { + .iv = 0, + .lvl = 29, + .species = SPECIES_VOLTORB, + .moves = {MOVE_SPARK, MOVE_SONIC_BOOM, MOVE_SCREECH, MOVE_CHARGE}, + }, +}; + +static const struct TrainerMonNoItemCustomMoves sTrainerMons_823ADD8[] = { + { + .iv = 0, + .lvl = 29, + .species = SPECIES_WEEZING, + .moves = {MOVE_SLUDGE, MOVE_SMOKESCREEN, MOVE_SMOG, MOVE_TACKLE}, + }, + { + .iv = 0, + .lvl = 29, + .species = SPECIES_MUK, + .moves = {MOVE_SCREECH, MOVE_MINIMIZE, MOVE_SLUDGE, MOVE_DISABLE}, + }, +}; + +static const struct TrainerMonNoItemCustomMoves sTrainerMons_823ADF8[] = { + { + .iv = 0, + .lvl = 25, + .species = SPECIES_KOFFING, + .moves = {MOVE_SMOKESCREEN, MOVE_SLUDGE, MOVE_SMOG, MOVE_TACKLE}, + }, + { + .iv = 0, + .lvl = 25, + .species = SPECIES_WEEZING, + .moves = {MOVE_SMOKESCREEN, MOVE_SLUDGE, MOVE_SMOG, MOVE_TACKLE}, + }, + { + .iv = 0, + .lvl = 25, + .species = SPECIES_KOFFING, + .moves = {MOVE_SMOKESCREEN, MOVE_SLUDGE, MOVE_SMOG, MOVE_TACKLE}, + }, + { + .iv = 0, + .lvl = 25, + .species = SPECIES_KOFFING, + .moves = {MOVE_SMOKESCREEN, MOVE_SLUDGE, MOVE_SMOG, MOVE_TACKLE}, + }, + { + .iv = 0, + .lvl = 25, + .species = SPECIES_WEEZING, + .moves = {MOVE_SMOKESCREEN, MOVE_SLUDGE, MOVE_SELF_DESTRUCT, MOVE_TACKLE}, + }, +}; + +static const struct TrainerMonNoItemCustomMoves sTrainerMons_823AE48[] = { + { + .iv = 0, + .lvl = 26, + .species = SPECIES_KOFFING, + .moves = {MOVE_SMOKESCREEN, MOVE_SLUDGE, MOVE_SMOG, MOVE_TACKLE}, + }, + { + .iv = 0, + .lvl = 26, + .species = SPECIES_KOFFING, + .moves = {MOVE_SMOKESCREEN, MOVE_SLUDGE, MOVE_SMOG, MOVE_TACKLE}, + }, + { + .iv = 0, + .lvl = 26, + .species = SPECIES_GRIMER, + .moves = {MOVE_SCREECH, MOVE_MINIMIZE, MOVE_SLUDGE, MOVE_DISABLE}, + }, + { + .iv = 0, + .lvl = 26, + .species = SPECIES_KOFFING, + .moves = {MOVE_SMOKESCREEN, MOVE_SLUDGE, MOVE_SMOG, MOVE_TACKLE}, + }, +}; + +static const struct TrainerMonNoItemCustomMoves sTrainerMons_823AE88[] = { + { + .iv = 0, + .lvl = 28, + .species = SPECIES_GRIMER, + .moves = {MOVE_SCREECH, MOVE_MINIMIZE, MOVE_SLUDGE, MOVE_DISABLE}, + }, + { + .iv = 0, + .lvl = 28, + .species = SPECIES_GRIMER, + .moves = {MOVE_SCREECH, MOVE_MINIMIZE, MOVE_SLUDGE, MOVE_DISABLE}, + }, + { + .iv = 0, + .lvl = 28, + .species = SPECIES_KOFFING, + .moves = {MOVE_SMOKESCREEN, MOVE_SLUDGE, MOVE_SMOG, MOVE_TACKLE}, + }, +}; + +static const struct TrainerMonNoItemCustomMoves sTrainerMons_823AEB8[] = { + { + .iv = 0, + .lvl = 29, + .species = SPECIES_KOFFING, + .moves = {MOVE_SMOKESCREEN, MOVE_SLUDGE, MOVE_SMOG, MOVE_TACKLE}, + }, + { + .iv = 0, + .lvl = 29, + .species = SPECIES_MUK, + .moves = {MOVE_SCREECH, MOVE_MINIMIZE, MOVE_SLUDGE, MOVE_DISABLE}, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823AED8[] = { + { + .iv = 0, + .lvl = 29, + .species = SPECIES_GROWLITHE, + }, + { + .iv = 0, + .lvl = 29, + .species = SPECIES_VULPIX, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823AEE8[] = { + { + .iv = 0, + .lvl = 33, + .species = SPECIES_GROWLITHE, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823AEF0[] = { + { + .iv = 0, + .lvl = 28, + .species = SPECIES_VULPIX, + }, + { + .iv = 0, + .lvl = 28, + .species = SPECIES_CHARMANDER, + }, + { + .iv = 0, + .lvl = 28, + .species = SPECIES_PONYTA, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823AF08[] = { + { + .iv = 0, + .lvl = 36, + .species = SPECIES_GROWLITHE, + }, + { + .iv = 0, + .lvl = 36, + .species = SPECIES_VULPIX, + }, + { + .iv = 0, + .lvl = 36, + .species = SPECIES_NINETALES, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823AF20[] = { + { + .iv = 0, + .lvl = 41, + .species = SPECIES_PONYTA, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823AF28[] = { + { + .iv = 0, + .lvl = 37, + .species = SPECIES_VULPIX, + }, + { + .iv = 0, + .lvl = 37, + .species = SPECIES_GROWLITHE, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823AF38[] = { + { + .iv = 0, + .lvl = 34, + .species = SPECIES_CHARMANDER, + }, + { + .iv = 0, + .lvl = 34, + .species = SPECIES_CHARMELEON, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823AF48[] = { + { + .iv = 0, + .lvl = 34, + .species = SPECIES_CHARMANDER, + }, + { + .iv = 0, + .lvl = 34, + .species = SPECIES_CHARMELEON, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823AF58[] = { + { + .iv = 0, + .lvl = 38, + .species = SPECIES_NINETALES, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823AF60[] = { + { + .iv = 0, + .lvl = 34, + .species = SPECIES_GROWLITHE, + }, + { + .iv = 0, + .lvl = 34, + .species = SPECIES_PONYTA, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823AF70[] = { + { + .iv = 0, + .lvl = 21, + .species = SPECIES_VOLTORB, + }, + { + .iv = 0, + .lvl = 21, + .species = SPECIES_MAGNEMITE, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823AF80[] = { + { + .iv = 0, + .lvl = 21, + .species = SPECIES_MAGNEMITE, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823AF88[] = { + { + .iv = 0, + .lvl = 18, + .species = SPECIES_MAGNEMITE, + }, + { + .iv = 0, + .lvl = 18, + .species = SPECIES_MAGNEMITE, + }, + { + .iv = 0, + .lvl = 18, + .species = SPECIES_MAGNETON, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823AFA0[] = { + { + .iv = 0, + .lvl = 17, + .species = SPECIES_GOLDEEN, + }, + { + .iv = 0, + .lvl = 17, + .species = SPECIES_TENTACOOL, + }, + { + .iv = 0, + .lvl = 17, + .species = SPECIES_GOLDEEN, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823AFB8[] = { + { + .iv = 0, + .lvl = 17, + .species = SPECIES_TENTACOOL, + }, + { + .iv = 0, + .lvl = 17, + .species = SPECIES_STARYU, + }, + { + .iv = 0, + .lvl = 17, + .species = SPECIES_SHELLDER, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823AFD0[] = { + { + .iv = 0, + .lvl = 22, + .species = SPECIES_GOLDEEN, + }, + { + .iv = 0, + .lvl = 22, + .species = SPECIES_POLIWAG, + }, + { + .iv = 0, + .lvl = 22, + .species = SPECIES_GOLDEEN, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823AFE8[] = { + { + .iv = 0, + .lvl = 24, + .species = SPECIES_TENTACOOL, + }, + { + .iv = 0, + .lvl = 24, + .species = SPECIES_GOLDEEN, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823AFF8[] = { + { + .iv = 0, + .lvl = 27, + .species = SPECIES_GOLDEEN, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823B000[] = { + { + .iv = 0, + .lvl = 21, + .species = SPECIES_POLIWAG, + }, + { + .iv = 0, + .lvl = 21, + .species = SPECIES_SHELLDER, + }, + { + .iv = 0, + .lvl = 21, + .species = SPECIES_GOLDEEN, + }, + { + .iv = 0, + .lvl = 21, + .species = SPECIES_HORSEA, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823B020[] = { + { + .iv = 0, + .lvl = 28, + .species = SPECIES_SEAKING, + }, + { + .iv = 0, + .lvl = 28, + .species = SPECIES_GOLDEEN, + }, + { + .iv = 0, + .lvl = 28, + .species = SPECIES_SEAKING, + }, + { + .iv = 0, + .lvl = 28, + .species = SPECIES_SEAKING, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823B040[] = { + { + .iv = 0, + .lvl = 31, + .species = SPECIES_SHELLDER, + }, + { + .iv = 0, + .lvl = 31, + .species = SPECIES_CLOYSTER, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823B050[] = { + { + .iv = 0, + .lvl = 27, + .species = SPECIES_MAGIKARP, + }, + { + .iv = 0, + .lvl = 27, + .species = SPECIES_MAGIKARP, + }, + { + .iv = 0, + .lvl = 27, + .species = SPECIES_MAGIKARP, + }, + { + .iv = 0, + .lvl = 27, + .species = SPECIES_MAGIKARP, + }, + { + .iv = 0, + .lvl = 27, + .species = SPECIES_MAGIKARP, + }, + { + .iv = 0, + .lvl = 27, + .species = SPECIES_MAGIKARP, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823B080[] = { + { + .iv = 0, + .lvl = 33, + .species = SPECIES_SEAKING, + }, + { + .iv = 0, + .lvl = 33, + .species = SPECIES_GOLDEEN, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823B090[] = { + { + .iv = 0, + .lvl = 24, + .species = SPECIES_MAGIKARP, + }, + { + .iv = 0, + .lvl = 24, + .species = SPECIES_MAGIKARP, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823B0A0[] = { + { + .iv = 0, + .lvl = 16, + .species = SPECIES_HORSEA, + }, + { + .iv = 0, + .lvl = 16, + .species = SPECIES_SHELLDER, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823B0B0[] = { + { + .iv = 0, + .lvl = 30, + .species = SPECIES_TENTACOOL, + }, + { + .iv = 0, + .lvl = 30, + .species = SPECIES_SHELLDER, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823B0C0[] = { + { + .iv = 0, + .lvl = 29, + .species = SPECIES_GOLDEEN, + }, + { + .iv = 0, + .lvl = 29, + .species = SPECIES_HORSEA, + }, + { + .iv = 0, + .lvl = 29, + .species = SPECIES_STARYU, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823B0D8[] = { + { + .iv = 0, + .lvl = 30, + .species = SPECIES_POLIWAG, + }, + { + .iv = 0, + .lvl = 30, + .species = SPECIES_POLIWHIRL, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823B0E8[] = { + { + .iv = 0, + .lvl = 27, + .species = SPECIES_HORSEA, + }, + { + .iv = 0, + .lvl = 27, + .species = SPECIES_TENTACOOL, + }, + { + .iv = 0, + .lvl = 27, + .species = SPECIES_TENTACOOL, + }, + { + .iv = 0, + .lvl = 27, + .species = SPECIES_GOLDEEN, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823B108[] = { + { + .iv = 0, + .lvl = 29, + .species = SPECIES_GOLDEEN, + }, + { + .iv = 0, + .lvl = 29, + .species = SPECIES_SHELLDER, + }, + { + .iv = 0, + .lvl = 29, + .species = SPECIES_SEAKING, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823B120[] = { + { + .iv = 0, + .lvl = 30, + .species = SPECIES_HORSEA, + }, + { + .iv = 0, + .lvl = 30, + .species = SPECIES_HORSEA, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823B130[] = { + { + .iv = 0, + .lvl = 27, + .species = SPECIES_TENTACOOL, + }, + { + .iv = 0, + .lvl = 27, + .species = SPECIES_TENTACOOL, + }, + { + .iv = 0, + .lvl = 27, + .species = SPECIES_STARYU, + }, + { + .iv = 0, + .lvl = 27, + .species = SPECIES_HORSEA, + }, + { + .iv = 0, + .lvl = 27, + .species = SPECIES_TENTACRUEL, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823B158[] = { + { + .iv = 0, + .lvl = 31, + .species = SPECIES_SHELLDER, + }, + { + .iv = 0, + .lvl = 31, + .species = SPECIES_CLOYSTER, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823B168[] = { + { + .iv = 0, + .lvl = 35, + .species = SPECIES_STARYU, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823B170[] = { + { + .iv = 0, + .lvl = 28, + .species = SPECIES_HORSEA, + }, + { + .iv = 0, + .lvl = 28, + .species = SPECIES_HORSEA, + }, + { + .iv = 0, + .lvl = 28, + .species = SPECIES_SEADRA, + }, + { + .iv = 0, + .lvl = 28, + .species = SPECIES_HORSEA, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823B190[] = { + { + .iv = 0, + .lvl = 33, + .species = SPECIES_SEADRA, + }, + { + .iv = 0, + .lvl = 33, + .species = SPECIES_TENTACRUEL, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823B1A0[] = { + { + .iv = 0, + .lvl = 37, + .species = SPECIES_STARMIE, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823B1A8[] = { + { + .iv = 0, + .lvl = 33, + .species = SPECIES_STARYU, + }, + { + .iv = 0, + .lvl = 33, + .species = SPECIES_WARTORTLE, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823B1B8[] = { + { + .iv = 0, + .lvl = 32, + .species = SPECIES_POLIWHIRL, + }, + { + .iv = 0, + .lvl = 32, + .species = SPECIES_TENTACOOL, + }, + { + .iv = 0, + .lvl = 32, + .species = SPECIES_SEADRA, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823B1D0[] = { + { + .iv = 0, + .lvl = 28, + .species = SPECIES_MACHOP, + }, + { + .iv = 0, + .lvl = 28, + .species = SPECIES_MANKEY, + }, + { + .iv = 0, + .lvl = 28, + .species = SPECIES_MACHOP, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823B1E8[] = { + { + .iv = 0, + .lvl = 29, + .species = SPECIES_MANKEY, + }, + { + .iv = 0, + .lvl = 29, + .species = SPECIES_MACHOP, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823B1F8[] = { + { + .iv = 0, + .lvl = 29, + .species = SPECIES_MANKEY, + }, + { + .iv = 0, + .lvl = 29, + .species = SPECIES_MACHOP, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823B208[] = { + { + .iv = 0, + .lvl = 29, + .species = SPECIES_MANKEY, + }, + { + .iv = 0, + .lvl = 29, + .species = SPECIES_PRIMEAPE, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823B218[] = { + { + .iv = 0, + .lvl = 29, + .species = SPECIES_MACHOP, + }, + { + .iv = 0, + .lvl = 29, + .species = SPECIES_MACHAMP, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823B228[] = { + { + .iv = 0, + .lvl = 33, + .species = SPECIES_MACHOKE, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823B230[] = { + { + .iv = 0, + .lvl = 26, + .species = SPECIES_MANKEY, + }, + { + .iv = 0, + .lvl = 26, + .species = SPECIES_MANKEY, + }, + { + .iv = 0, + .lvl = 26, + .species = SPECIES_MACHAMP, + }, + { + .iv = 0, + .lvl = 26, + .species = SPECIES_MACHOP, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823B250[] = { + { + .iv = 0, + .lvl = 29, + .species = SPECIES_PRIMEAPE, + }, + { + .iv = 0, + .lvl = 29, + .species = SPECIES_MACHOKE, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823B260[] = { + { + .iv = 0, + .lvl = 31, + .species = SPECIES_TENTACOOL, + }, + { + .iv = 0, + .lvl = 31, + .species = SPECIES_TENTACOOL, + }, + { + .iv = 0, + .lvl = 31, + .species = SPECIES_TENTACRUEL, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823B278[] = { + { + .iv = 0, + .lvl = 18, + .species = SPECIES_POLIWAG, + }, + { + .iv = 0, + .lvl = 18, + .species = SPECIES_HORSEA, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823B288[] = { + { + .iv = 0, + .lvl = 18, + .species = SPECIES_BELLSPROUT, + }, + { + .iv = 0, + .lvl = 18, + .species = SPECIES_ODDISH, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823B298[] = { + { + .iv = 0, + .lvl = 18, + .species = SPECIES_VOLTORB, + }, + { + .iv = 0, + .lvl = 18, + .species = SPECIES_MAGNEMITE, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823B2A8[] = { + { + .iv = 0, + .lvl = 18, + .species = SPECIES_GROWLITHE, + }, + { + .iv = 0, + .lvl = 18, + .species = SPECIES_VULPIX, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823B2B8[] = { + { + .iv = 0, + .lvl = 22, + .species = SPECIES_POLIWAG, + }, + { + .iv = 0, + .lvl = 22, + .species = SPECIES_POLIWAG, + }, + { + .iv = 0, + .lvl = 22, + .species = SPECIES_POLIWHIRL, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823B2D0[] = { + { + .iv = 0, + .lvl = 5, + .species = SPECIES_EKANS, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823B2D8[] = { + { + .iv = 0, + .lvl = 24, + .species = SPECIES_GROWLITHE, + }, + { + .iv = 0, + .lvl = 24, + .species = SPECIES_VULPIX, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823B2E8[] = { + { + .iv = 0, + .lvl = 21, + .species = SPECIES_ODDISH, + }, + { + .iv = 0, + .lvl = 21, + .species = SPECIES_BELLSPROUT, + }, + { + .iv = 0, + .lvl = 21, + .species = SPECIES_ODDISH, + }, + { + .iv = 0, + .lvl = 21, + .species = SPECIES_BELLSPROUT, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823B308[] = { + { + .iv = 0, + .lvl = 24, + .species = SPECIES_BELLSPROUT, + }, + { + .iv = 0, + .lvl = 24, + .species = SPECIES_BELLSPROUT, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823B318[] = { + { + .iv = 0, + .lvl = 24, + .species = SPECIES_EXEGGCUTE, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823B320[] = { + { + .iv = 0, + .lvl = 27, + .species = SPECIES_RATTATA, + }, + { + .iv = 0, + .lvl = 27, + .species = SPECIES_PIKACHU, + }, + { + .iv = 0, + .lvl = 27, + .species = SPECIES_RATTATA, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823B338[] = { + { + .iv = 0, + .lvl = 29, + .species = SPECIES_CLEFAIRY, + }, + { + .iv = 0, + .lvl = 29, + .species = SPECIES_MEOWTH, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823B348[] = { + { + .iv = 0, + .lvl = 35, + .species = SPECIES_SEAKING, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823B350[] = { + { + .iv = 0, + .lvl = 30, + .species = SPECIES_SHELLDER, + }, + { + .iv = 0, + .lvl = 30, + .species = SPECIES_SHELLDER, + }, + { + .iv = 0, + .lvl = 30, + .species = SPECIES_CLOYSTER, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823B368[] = { + { + .iv = 0, + .lvl = 31, + .species = SPECIES_POLIWAG, + }, + { + .iv = 0, + .lvl = 31, + .species = SPECIES_SEAKING, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823B378[] = { + { + .iv = 0, + .lvl = 29, + .species = SPECIES_PIDGEOTTO, + }, + { + .iv = 0, + .lvl = 29, + .species = SPECIES_WIGGLYTUFF, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823B388[] = { + { + .iv = 0, + .lvl = 29, + .species = SPECIES_BULBASAUR, + }, + { + .iv = 0, + .lvl = 29, + .species = SPECIES_IVYSAUR, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823B398[] = { + { + .iv = 0, + .lvl = 33, + .species = SPECIES_WEEPINBELL, + }, + { + .iv = 0, + .lvl = 33, + .species = SPECIES_BELLSPROUT, + }, + { + .iv = 0, + .lvl = 33, + .species = SPECIES_WEEPINBELL, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823B3B0[] = { + { + .iv = 0, + .lvl = 27, + .species = SPECIES_POLIWAG, + }, + { + .iv = 0, + .lvl = 27, + .species = SPECIES_GOLDEEN, + }, + { + .iv = 0, + .lvl = 27, + .species = SPECIES_SEAKING, + }, + { + .iv = 0, + .lvl = 27, + .species = SPECIES_GOLDEEN, + }, + { + .iv = 0, + .lvl = 27, + .species = SPECIES_POLIWAG, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823B3D8[] = { + { + .iv = 0, + .lvl = 30, + .species = SPECIES_GOLDEEN, + }, + { + .iv = 0, + .lvl = 30, + .species = SPECIES_SEAKING, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823B3E8[] = { + { + .iv = 0, + .lvl = 29, + .species = SPECIES_STARYU, + }, + { + .iv = 0, + .lvl = 29, + .species = SPECIES_STARYU, + }, + { + .iv = 0, + .lvl = 29, + .species = SPECIES_STARYU, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823B400[] = { + { + .iv = 0, + .lvl = 30, + .species = SPECIES_SEADRA, + }, + { + .iv = 0, + .lvl = 30, + .species = SPECIES_HORSEA, + }, + { + .iv = 0, + .lvl = 30, + .species = SPECIES_SEADRA, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823B418[] = { + { + .iv = 50, + .lvl = 31, + .species = SPECIES_KADABRA, + }, + { + .iv = 50, + .lvl = 31, + .species = SPECIES_SLOWPOKE, + }, + { + .iv = 50, + .lvl = 31, + .species = SPECIES_MR_MIME, + }, + { + .iv = 50, + .lvl = 31, + .species = SPECIES_KADABRA, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823B438[] = { + { + .iv = 50, + .lvl = 34, + .species = SPECIES_MR_MIME, + }, + { + .iv = 50, + .lvl = 34, + .species = SPECIES_KADABRA, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823B448[] = { + { + .iv = 50, + .lvl = 33, + .species = SPECIES_SLOWPOKE, + }, + { + .iv = 50, + .lvl = 33, + .species = SPECIES_SLOWPOKE, + }, + { + .iv = 50, + .lvl = 33, + .species = SPECIES_SLOWBRO, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823B460[] = { + { + .iv = 50, + .lvl = 38, + .species = SPECIES_SLOWBRO, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823B468[] = { + { + .iv = 0, + .lvl = 20, + .species = SPECIES_VOLTORB, + }, + { + .iv = 0, + .lvl = 20, + .species = SPECIES_MAGNEMITE, + }, + { + .iv = 0, + .lvl = 20, + .species = SPECIES_VOLTORB, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823B480[] = { + { + .iv = 0, + .lvl = 29, + .species = SPECIES_VOLTORB, + }, + { + .iv = 0, + .lvl = 29, + .species = SPECIES_ELECTRODE, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823B490[] = { + { + .iv = 0, + .lvl = 29, + .species = SPECIES_KADABRA, + }, + { + .iv = 0, + .lvl = 29, + .species = SPECIES_MR_MIME, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823B4A0[] = { + { + .iv = 0, + .lvl = 41, + .species = SPECIES_DROWZEE, + }, + { + .iv = 0, + .lvl = 41, + .species = SPECIES_HYPNO, + }, + { + .iv = 0, + .lvl = 41, + .species = SPECIES_KADABRA, + }, + { + .iv = 0, + .lvl = 41, + .species = SPECIES_KADABRA, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823B4C0[] = { + { + .iv = 0, + .lvl = 31, + .species = SPECIES_DROWZEE, + }, + { + .iv = 0, + .lvl = 31, + .species = SPECIES_DROWZEE, + }, + { + .iv = 0, + .lvl = 31, + .species = SPECIES_KADABRA, + }, + { + .iv = 0, + .lvl = 31, + .species = SPECIES_DROWZEE, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823B4E0[] = { + { + .iv = 0, + .lvl = 34, + .species = SPECIES_DROWZEE, + }, + { + .iv = 0, + .lvl = 34, + .species = SPECIES_HYPNO, + }, +}; + +static const struct TrainerMonNoItemCustomMoves sTrainerMons_823B4F0[] = { + { + .iv = 0, + .lvl = 48, + .species = SPECIES_MR_MIME, + .moves = {MOVE_PSYCHIC, MOVE_ROLE_PLAY, MOVE_DOUBLE_SLAP, MOVE_ENCORE}, + }, +}; + +static const struct TrainerMonNoItemCustomMoves sTrainerMons_823B500[] = { + { + .iv = 0, + .lvl = 46, + .species = SPECIES_VOLTORB, + .moves = {MOVE_SWIFT, MOVE_LIGHT_SCREEN, MOVE_SPARK, MOVE_SONIC_BOOM}, + }, + { + .iv = 0, + .lvl = 46, + .species = SPECIES_VOLTORB, + .moves = {MOVE_SWIFT, MOVE_LIGHT_SCREEN, MOVE_SPARK, MOVE_SONIC_BOOM}, + }, + { + .iv = 0, + .lvl = 47, + .species = SPECIES_ELECTRODE, + .moves = {MOVE_SWIFT, MOVE_SPARK, MOVE_SELF_DESTRUCT, MOVE_SONIC_BOOM}, + }, + { + .iv = 0, + .lvl = 48, + .species = SPECIES_MR_MIME, + .moves = {MOVE_PSYCHIC, MOVE_ROLE_PLAY, MOVE_REFLECT, MOVE_ENCORE}, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823B540[] = { + { + .iv = 0, + .lvl = 38, + .species = SPECIES_HYPNO, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823B548[] = { + { + .iv = 0, + .lvl = 34, + .species = SPECIES_DROWZEE, + }, + { + .iv = 0, + .lvl = 34, + .species = SPECIES_KADABRA, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823B558[] = { + { + .iv = 40, + .lvl = 34, + .species = SPECIES_SANDSLASH, + }, + { + .iv = 40, + .lvl = 34, + .species = SPECIES_ARBOK, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823B568[] = { + { + .iv = 40, + .lvl = 33, + .species = SPECIES_ARBOK, + }, + { + .iv = 40, + .lvl = 33, + .species = SPECIES_SANDSLASH, + }, + { + .iv = 40, + .lvl = 33, + .species = SPECIES_ARBOK, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823B580[] = { + { + .iv = 40, + .lvl = 43, + .species = SPECIES_RHYHORN, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823B588[] = { + { + .iv = 40, + .lvl = 39, + .species = SPECIES_ARBOK, + }, + { + .iv = 40, + .lvl = 39, + .species = SPECIES_TAUROS, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823B598[] = { + { + .iv = 40, + .lvl = 44, + .species = SPECIES_PERSIAN, + }, + { + .iv = 40, + .lvl = 44, + .species = SPECIES_GOLDUCK, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823B5A8[] = { + { + .iv = 40, + .lvl = 42, + .species = SPECIES_RHYHORN, + }, + { + .iv = 40, + .lvl = 42, + .species = SPECIES_PRIMEAPE, + }, + { + .iv = 40, + .lvl = 42, + .species = SPECIES_ARBOK, + }, + { + .iv = 40, + .lvl = 42, + .species = SPECIES_TAUROS, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823B5C8[] = { + { + .iv = 0, + .lvl = 29, + .species = SPECIES_PIDGEY, + }, + { + .iv = 0, + .lvl = 29, + .species = SPECIES_PIDGEOTTO, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823B5D8[] = { + { + .iv = 0, + .lvl = 25, + .species = SPECIES_SPEAROW, + }, + { + .iv = 0, + .lvl = 25, + .species = SPECIES_PIDGEY, + }, + { + .iv = 0, + .lvl = 25, + .species = SPECIES_PIDGEY, + }, + { + .iv = 0, + .lvl = 25, + .species = SPECIES_SPEAROW, + }, + { + .iv = 0, + .lvl = 25, + .species = SPECIES_SPEAROW, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823B600[] = { + { + .iv = 0, + .lvl = 26, + .species = SPECIES_PIDGEY, + }, + { + .iv = 0, + .lvl = 26, + .species = SPECIES_PIDGEOTTO, + }, + { + .iv = 0, + .lvl = 26, + .species = SPECIES_SPEAROW, + }, + { + .iv = 0, + .lvl = 26, + .species = SPECIES_FEAROW, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823B620[] = { + { + .iv = 0, + .lvl = 33, + .species = SPECIES_FARFETCHD, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823B628[] = { + { + .iv = 0, + .lvl = 29, + .species = SPECIES_SPEAROW, + }, + { + .iv = 0, + .lvl = 29, + .species = SPECIES_FEAROW, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823B638[] = { + { + .iv = 0, + .lvl = 26, + .species = SPECIES_PIDGEOTTO, + }, + { + .iv = 0, + .lvl = 26, + .species = SPECIES_FARFETCHD, + }, + { + .iv = 0, + .lvl = 26, + .species = SPECIES_DODUO, + }, + { + .iv = 0, + .lvl = 26, + .species = SPECIES_PIDGEY, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823B658[] = { + { + .iv = 0, + .lvl = 28, + .species = SPECIES_DODRIO, + }, + { + .iv = 0, + .lvl = 28, + .species = SPECIES_DODUO, + }, + { + .iv = 0, + .lvl = 28, + .species = SPECIES_DODUO, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823B670[] = { + { + .iv = 0, + .lvl = 29, + .species = SPECIES_SPEAROW, + }, + { + .iv = 0, + .lvl = 29, + .species = SPECIES_FEAROW, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823B680[] = { + { + .iv = 0, + .lvl = 34, + .species = SPECIES_DODRIO, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823B688[] = { + { + .iv = 0, + .lvl = 26, + .species = SPECIES_SPEAROW, + }, + { + .iv = 0, + .lvl = 26, + .species = SPECIES_SPEAROW, + }, + { + .iv = 0, + .lvl = 26, + .species = SPECIES_FEAROW, + }, + { + .iv = 0, + .lvl = 26, + .species = SPECIES_SPEAROW, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823B6A8[] = { + { + .iv = 0, + .lvl = 30, + .species = SPECIES_FEAROW, + }, + { + .iv = 0, + .lvl = 30, + .species = SPECIES_FEAROW, + }, + { + .iv = 0, + .lvl = 30, + .species = SPECIES_PIDGEOTTO, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823B6C0[] = { + { + .iv = 0, + .lvl = 39, + .species = SPECIES_PIDGEOTTO, + }, + { + .iv = 0, + .lvl = 39, + .species = SPECIES_PIDGEOTTO, + }, + { + .iv = 0, + .lvl = 39, + .species = SPECIES_PIDGEY, + }, + { + .iv = 0, + .lvl = 39, + .species = SPECIES_PIDGEOTTO, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823B6E0[] = { + { + .iv = 0, + .lvl = 39, + .species = SPECIES_FARFETCHD, + }, + { + .iv = 0, + .lvl = 39, + .species = SPECIES_FEAROW, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823B6F0[] = { + { + .iv = 0, + .lvl = 28, + .species = SPECIES_PIDGEY, + }, + { + .iv = 0, + .lvl = 28, + .species = SPECIES_DODUO, + }, + { + .iv = 0, + .lvl = 28, + .species = SPECIES_PIDGEOTTO, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823B708[] = { + { + .iv = 0, + .lvl = 26, + .species = SPECIES_PIDGEY, + }, + { + .iv = 0, + .lvl = 26, + .species = SPECIES_SPEAROW, + }, + { + .iv = 0, + .lvl = 26, + .species = SPECIES_PIDGEY, + }, + { + .iv = 0, + .lvl = 26, + .species = SPECIES_FEAROW, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823B728[] = { + { + .iv = 0, + .lvl = 29, + .species = SPECIES_PIDGEOTTO, + }, + { + .iv = 0, + .lvl = 29, + .species = SPECIES_FEAROW, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823B738[] = { + { + .iv = 0, + .lvl = 28, + .species = SPECIES_SPEAROW, + }, + { + .iv = 0, + .lvl = 28, + .species = SPECIES_DODUO, + }, + { + .iv = 0, + .lvl = 28, + .species = SPECIES_FEAROW, + }, +}; + +static const struct TrainerMonItemDefaultMoves sTrainerMons_823B750[] = { + { + .iv = 100, + .lvl = 37, + .species = SPECIES_HITMONLEE, + .heldItem = ITEM_BLACK_BELT, + }, + { + .iv = 100, + .lvl = 37, + .species = SPECIES_HITMONCHAN, + .heldItem = ITEM_BLACK_BELT, + }, +}; + +static const struct TrainerMonItemDefaultMoves sTrainerMons_823B760[] = { + { + .iv = 100, + .lvl = 31, + .species = SPECIES_MANKEY, + .heldItem = ITEM_BLACK_BELT, + }, + { + .iv = 100, + .lvl = 31, + .species = SPECIES_MANKEY, + .heldItem = ITEM_BLACK_BELT, + }, + { + .iv = 100, + .lvl = 31, + .species = SPECIES_PRIMEAPE, + .heldItem = ITEM_BLACK_BELT, + }, +}; + +static const struct TrainerMonItemDefaultMoves sTrainerMons_823B778[] = { + { + .iv = 100, + .lvl = 32, + .species = SPECIES_MACHOP, + .heldItem = ITEM_BLACK_BELT, + }, + { + .iv = 100, + .lvl = 32, + .species = SPECIES_MACHOKE, + .heldItem = ITEM_BLACK_BELT, + }, +}; + +static const struct TrainerMonItemDefaultMoves sTrainerMons_823B788[] = { + { + .iv = 100, + .lvl = 36, + .species = SPECIES_PRIMEAPE, + .heldItem = ITEM_BLACK_BELT, + }, +}; + +static const struct TrainerMonItemDefaultMoves sTrainerMons_823B790[] = { + { + .iv = 100, + .lvl = 31, + .species = SPECIES_MACHOP, + .heldItem = ITEM_BLACK_BELT, + }, + { + .iv = 100, + .lvl = 31, + .species = SPECIES_MANKEY, + .heldItem = ITEM_BLACK_BELT, + }, + { + .iv = 100, + .lvl = 31, + .species = SPECIES_PRIMEAPE, + .heldItem = ITEM_BLACK_BELT, + }, +}; + +static const struct TrainerMonItemDefaultMoves sTrainerMons_823B7A8[] = { + { + .iv = 100, + .lvl = 40, + .species = SPECIES_MACHOP, + .heldItem = ITEM_BLACK_BELT, + }, + { + .iv = 100, + .lvl = 40, + .species = SPECIES_MACHOKE, + .heldItem = ITEM_BLACK_BELT, + }, +}; + +static const struct TrainerMonItemDefaultMoves sTrainerMons_823B7B8[] = { + { + .iv = 100, + .lvl = 43, + .species = SPECIES_MACHOKE, + .heldItem = ITEM_BLACK_BELT, + }, +}; + +static const struct TrainerMonItemDefaultMoves sTrainerMons_823B7C0[] = { + { + .iv = 100, + .lvl = 38, + .species = SPECIES_MACHOKE, + .heldItem = ITEM_BLACK_BELT, + }, + { + .iv = 100, + .lvl = 38, + .species = SPECIES_MACHOP, + .heldItem = ITEM_BLACK_BELT, + }, + { + .iv = 100, + .lvl = 38, + .species = SPECIES_MACHOKE, + .heldItem = ITEM_BLACK_BELT, + }, +}; + +static const struct TrainerMonItemDefaultMoves sTrainerMons_823B7D8[] = { + { + .iv = 100, + .lvl = 43, + .species = SPECIES_MACHOKE, + .heldItem = ITEM_BLACK_BELT, + }, + { + .iv = 100, + .lvl = 43, + .species = SPECIES_MACHOP, + .heldItem = ITEM_BLACK_BELT, + }, + { + .iv = 100, + .lvl = 43, + .species = SPECIES_MACHOKE, + .heldItem = ITEM_BLACK_BELT, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823B7F0[] = { + { + .iv = 0, + .lvl = 5, + .species = SPECIES_SQUIRTLE, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823B7F8[] = { + { + .iv = 0, + .lvl = 5, + .species = SPECIES_BULBASAUR, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823B800[] = { + { + .iv = 0, + .lvl = 5, + .species = SPECIES_CHARMANDER, + }, +}; + +static const struct TrainerMonNoItemCustomMoves sTrainerMons_823B808[] = { + { + .iv = 50, + .lvl = 9, + .species = SPECIES_PIDGEY, + .moves = {MOVE_TACKLE, MOVE_SAND_ATTACK, MOVE_NONE, MOVE_NONE}, + }, + { + .iv = 50, + .lvl = 9, + .species = SPECIES_SQUIRTLE, + .moves = {MOVE_TACKLE, MOVE_TAIL_WHIP, MOVE_NONE, MOVE_NONE}, + }, +}; + +static const struct TrainerMonNoItemCustomMoves sTrainerMons_823B828[] = { + { + .iv = 50, + .lvl = 9, + .species = SPECIES_PIDGEY, + .moves = {MOVE_TACKLE, MOVE_SAND_ATTACK, MOVE_NONE, MOVE_NONE}, + }, + { + .iv = 50, + .lvl = 9, + .species = SPECIES_BULBASAUR, + .moves = {MOVE_TACKLE, MOVE_GROWL, MOVE_NONE, MOVE_NONE}, + }, +}; + +static const struct TrainerMonNoItemCustomMoves sTrainerMons_823B848[] = { + { + .iv = 50, + .lvl = 9, + .species = SPECIES_PIDGEY, + .moves = {MOVE_TACKLE, MOVE_SAND_ATTACK, MOVE_NONE, MOVE_NONE}, + }, + { + .iv = 50, + .lvl = 9, + .species = SPECIES_CHARMANDER, + .moves = {MOVE_SCRATCH, MOVE_GROWL, MOVE_NONE, MOVE_NONE}, + }, +}; + +static const struct TrainerMonNoItemCustomMoves sTrainerMons_823B868[] = { + { + .iv = 50, + .lvl = 17, + .species = SPECIES_PIDGEOTTO, + .moves = {MOVE_TACKLE, MOVE_SAND_ATTACK, MOVE_GUST, MOVE_QUICK_ATTACK}, + }, + { + .iv = 50, + .lvl = 16, + .species = SPECIES_ABRA, + .moves = {MOVE_TELEPORT, MOVE_NONE, MOVE_NONE, MOVE_NONE}, + }, + { + .iv = 50, + .lvl = 15, + .species = SPECIES_RATTATA, + .moves = {MOVE_TACKLE, MOVE_TAIL_WHIP, MOVE_QUICK_ATTACK, MOVE_NONE}, + }, + { + .iv = 100, + .lvl = 18, + .species = SPECIES_SQUIRTLE, + .moves = {MOVE_TACKLE, MOVE_TAIL_WHIP, MOVE_WITHDRAW, MOVE_WATER_GUN}, + }, +}; + +static const struct TrainerMonNoItemCustomMoves sTrainerMons_823B8A8[] = { + { + .iv = 50, + .lvl = 17, + .species = SPECIES_PIDGEOTTO, + .moves = {MOVE_TACKLE, MOVE_SAND_ATTACK, MOVE_GUST, MOVE_QUICK_ATTACK}, + }, + { + .iv = 50, + .lvl = 16, + .species = SPECIES_ABRA, + .moves = {MOVE_TELEPORT, MOVE_NONE, MOVE_NONE, MOVE_NONE}, + }, + { + .iv = 50, + .lvl = 15, + .species = SPECIES_RATTATA, + .moves = {MOVE_TACKLE, MOVE_TAIL_WHIP, MOVE_QUICK_ATTACK, MOVE_NONE}, + }, + { + .iv = 100, + .lvl = 18, + .species = SPECIES_BULBASAUR, + .moves = {MOVE_SLEEP_POWDER, MOVE_POISON_POWDER, MOVE_VINE_WHIP, MOVE_LEECH_SEED}, + }, +}; + +static const struct TrainerMonNoItemCustomMoves sTrainerMons_823B8E8[] = { + { + .iv = 50, + .lvl = 17, + .species = SPECIES_PIDGEOTTO, + .moves = {MOVE_TACKLE, MOVE_SAND_ATTACK, MOVE_GUST, MOVE_QUICK_ATTACK}, + }, + { + .iv = 50, + .lvl = 16, + .species = SPECIES_ABRA, + .moves = {MOVE_TELEPORT, MOVE_NONE, MOVE_NONE, MOVE_NONE}, + }, + { + .iv = 50, + .lvl = 15, + .species = SPECIES_RATTATA, + .moves = {MOVE_TACKLE, MOVE_TAIL_WHIP, MOVE_QUICK_ATTACK, MOVE_NONE}, + }, + { + .iv = 100, + .lvl = 18, + .species = SPECIES_CHARMANDER, + .moves = {MOVE_METAL_CLAW, MOVE_EMBER, MOVE_GROWL, MOVE_SCRATCH}, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823B928[] = { + { + .iv = 0, + .lvl = 29, + .species = SPECIES_ELECTRODE, + }, + { + .iv = 0, + .lvl = 29, + .species = SPECIES_WEEZING, + }, +}; + +static const struct TrainerMonNoItemCustomMoves sTrainerMons_823B938[] = { + { + .iv = 0, + .lvl = 26, + .species = SPECIES_GRIMER, + .moves = {MOVE_SCREECH, MOVE_MINIMIZE, MOVE_SLUDGE, MOVE_DISABLE}, + }, + { + .iv = 0, + .lvl = 26, + .species = SPECIES_WEEZING, + .moves = {MOVE_SMOKESCREEN, MOVE_SLUDGE, MOVE_SMOG, MOVE_TACKLE}, + }, + { + .iv = 0, + .lvl = 26, + .species = SPECIES_KOFFING, + .moves = {MOVE_SMOKESCREEN, MOVE_SLUDGE, MOVE_SMOG, MOVE_SELF_DESTRUCT}, + }, + { + .iv = 0, + .lvl = 26, + .species = SPECIES_WEEZING, + .moves = {MOVE_SMOKESCREEN, MOVE_SLUDGE, MOVE_SMOG, MOVE_TACKLE}, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823B978[] = { + { + .iv = 0, + .lvl = 28, + .species = SPECIES_MAGNEMITE, + }, + { + .iv = 0, + .lvl = 28, + .species = SPECIES_VOLTORB, + }, + { + .iv = 0, + .lvl = 28, + .species = SPECIES_MAGNETON, + }, +}; + +static const struct TrainerMonNoItemCustomMoves sTrainerMons_823B990[] = { + { + .iv = 0, + .lvl = 29, + .species = SPECIES_ELECTRODE, + .moves = {MOVE_SPARK, MOVE_SONIC_BOOM, MOVE_SCREECH, MOVE_TACKLE}, + }, + { + .iv = 0, + .lvl = 29, + .species = SPECIES_WEEZING, + .moves = {MOVE_SMOKESCREEN, MOVE_SLUDGE, MOVE_SMOG, MOVE_TACKLE}, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823B9B0[] = { + { + .iv = 0, + .lvl = 33, + .species = SPECIES_ELECTRODE, + }, +}; + +static const struct TrainerMonNoItemCustomMoves sTrainerMons_823B9B8[] = { + { + .iv = 0, + .lvl = 26, + .species = SPECIES_MAGNETON, + .moves = {MOVE_SPARK, MOVE_THUNDER_WAVE, MOVE_SONIC_BOOM, MOVE_SUPERSONIC}, + }, + { + .iv = 0, + .lvl = 26, + .species = SPECIES_KOFFING, + .moves = {MOVE_SMOKESCREEN, MOVE_SLUDGE, MOVE_SMOG, MOVE_TACKLE}, + }, + { + .iv = 0, + .lvl = 26, + .species = SPECIES_WEEZING, + .moves = {MOVE_SMOKESCREEN, MOVE_SLUDGE, MOVE_SMOG, MOVE_TACKLE}, + }, + { + .iv = 0, + .lvl = 26, + .species = SPECIES_MAGNEMITE, + .moves = {MOVE_SPARK, MOVE_THUNDER_WAVE, MOVE_SONIC_BOOM, MOVE_SUPERSONIC}, + }, +}; + +static const struct TrainerMonNoItemCustomMoves sTrainerMons_823B9F8[] = { + { + .iv = 0, + .lvl = 25, + .species = SPECIES_VOLTORB, + .moves = {MOVE_SPARK, MOVE_SONIC_BOOM, MOVE_SCREECH, MOVE_TACKLE}, + }, + { + .iv = 0, + .lvl = 25, + .species = SPECIES_KOFFING, + .moves = {MOVE_SMOKESCREEN, MOVE_SLUDGE, MOVE_SMOG, MOVE_TACKLE}, + }, + { + .iv = 0, + .lvl = 25, + .species = SPECIES_MAGNETON, + .moves = {MOVE_THUNDER_WAVE, MOVE_SONIC_BOOM, MOVE_SUPERSONIC, MOVE_THUNDER_SHOCK}, + }, + { + .iv = 0, + .lvl = 25, + .species = SPECIES_MAGNEMITE, + .moves = {MOVE_THUNDER_WAVE, MOVE_SONIC_BOOM, MOVE_SUPERSONIC, MOVE_THUNDER_SHOCK}, + }, + { + .iv = 0, + .lvl = 25, + .species = SPECIES_KOFFING, + .moves = {MOVE_SMOKESCREEN, MOVE_SLUDGE, MOVE_SMOG, MOVE_SELF_DESTRUCT}, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823BA48[] = { + { + .iv = 0, + .lvl = 29, + .species = SPECIES_ELECTRODE, + }, + { + .iv = 0, + .lvl = 29, + .species = SPECIES_MUK, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823BA58[] = { + { + .iv = 0, + .lvl = 29, + .species = SPECIES_GRIMER, + }, + { + .iv = 0, + .lvl = 29, + .species = SPECIES_ELECTRODE, + }, +}; + +static const struct TrainerMonNoItemCustomMoves sTrainerMons_823BA68[] = { + { + .iv = 0, + .lvl = 28, + .species = SPECIES_VOLTORB, + .moves = {MOVE_SPARK, MOVE_SONIC_BOOM, MOVE_SCREECH, MOVE_TACKLE}, + }, + { + .iv = 0, + .lvl = 28, + .species = SPECIES_KOFFING, + .moves = {MOVE_SMOKESCREEN, MOVE_SLUDGE, MOVE_TACKLE, MOVE_SMOG}, + }, + { + .iv = 0, + .lvl = 28, + .species = SPECIES_MAGNETON, + .moves = {MOVE_SPARK, MOVE_THUNDER_WAVE, MOVE_SONIC_BOOM, MOVE_SUPERSONIC}, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823BA98[] = { + { + .iv = 0, + .lvl = 29, + .species = SPECIES_MAGNEMITE, + }, + { + .iv = 0, + .lvl = 29, + .species = SPECIES_KOFFING, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823BAA8[] = { + { + .iv = 0, + .lvl = 33, + .species = SPECIES_MAGNEMITE, + }, + { + .iv = 0, + .lvl = 33, + .species = SPECIES_MAGNETON, + }, + { + .iv = 0, + .lvl = 33, + .species = SPECIES_VOLTORB, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823BAC0[] = { + { + .iv = 0, + .lvl = 34, + .species = SPECIES_MAGNEMITE, + }, + { + .iv = 0, + .lvl = 34, + .species = SPECIES_ELECTRODE, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823BAD0[] = { + { + .iv = 250, + .lvl = 25, + .species = SPECIES_ONIX, + }, + { + .iv = 250, + .lvl = 24, + .species = SPECIES_RHYHORN, + }, + { + .iv = 250, + .lvl = 29, + .species = SPECIES_KANGASKHAN, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823BAE8[] = { + { + .iv = 250, + .lvl = 37, + .species = SPECIES_NIDORINO, + }, + { + .iv = 250, + .lvl = 35, + .species = SPECIES_KANGASKHAN, + }, + { + .iv = 250, + .lvl = 37, + .species = SPECIES_RHYHORN, + }, + { + .iv = 250, + .lvl = 41, + .species = SPECIES_NIDOQUEEN, + }, +}; + +static const struct TrainerMonNoItemCustomMoves sTrainerMons_823BB08[] = { + { + .iv = 0, + .lvl = 45, + .species = SPECIES_RHYHORN, + .moves = {MOVE_TAKE_DOWN, MOVE_ROCK_BLAST, MOVE_SCARY_FACE, MOVE_EARTHQUAKE}, + }, + { + .iv = 0, + .lvl = 42, + .species = SPECIES_DUGTRIO, + .moves = {MOVE_SLASH, MOVE_SAND_TOMB, MOVE_MUD_SLAP, MOVE_EARTHQUAKE}, + }, + { + .iv = 0, + .lvl = 44, + .species = SPECIES_NIDOQUEEN, + .moves = {MOVE_BODY_SLAM, MOVE_DOUBLE_KICK, MOVE_POISON_STING, MOVE_EARTHQUAKE}, + }, + { + .iv = 0, + .lvl = 45, + .species = SPECIES_NIDOKING, + .moves = {MOVE_THRASH, MOVE_DOUBLE_KICK, MOVE_POISON_STING, MOVE_EARTHQUAKE}, + }, + { + .iv = 0, + .lvl = 50, + .species = SPECIES_RHYHORN, + .moves = {MOVE_TAKE_DOWN, MOVE_ROCK_BLAST, MOVE_SCARY_FACE, MOVE_EARTHQUAKE}, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823BB58[] = { + { + .iv = 0, + .lvl = 13, + .species = SPECIES_RATTATA, + }, + { + .iv = 0, + .lvl = 13, + .species = SPECIES_ZUBAT, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823BB68[] = { + { + .iv = 0, + .lvl = 11, + .species = SPECIES_SANDSHREW, + }, + { + .iv = 0, + .lvl = 11, + .species = SPECIES_RATTATA, + }, + { + .iv = 0, + .lvl = 11, + .species = SPECIES_ZUBAT, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823BB80[] = { + { + .iv = 0, + .lvl = 11, + .species = SPECIES_ZUBAT, + }, + { + .iv = 0, + .lvl = 11, + .species = SPECIES_EKANS, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823BB90[] = { + { + .iv = 0, + .lvl = 13, + .species = SPECIES_RATTATA, + }, + { + .iv = 0, + .lvl = 13, + .species = SPECIES_SANDSHREW, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823BBA0[] = { + { + .iv = 0, + .lvl = 17, + .species = SPECIES_MACHOP, + }, + { + .iv = 0, + .lvl = 17, + .species = SPECIES_DROWZEE, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823BBB0[] = { + { + .iv = 0, + .lvl = 15, + .species = SPECIES_EKANS, + }, + { + .iv = 0, + .lvl = 15, + .species = SPECIES_ZUBAT, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823BBC0[] = { + { + .iv = 0, + .lvl = 20, + .species = SPECIES_RATICATE, + }, + { + .iv = 0, + .lvl = 20, + .species = SPECIES_ZUBAT, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823BBD0[] = { + { + .iv = 0, + .lvl = 21, + .species = SPECIES_DROWZEE, + }, + { + .iv = 0, + .lvl = 21, + .species = SPECIES_MACHOP, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823BBE0[] = { + { + .iv = 0, + .lvl = 21, + .species = SPECIES_RATICATE, + }, + { + .iv = 0, + .lvl = 21, + .species = SPECIES_RATICATE, + }, +}; + +static const struct TrainerMonNoItemCustomMoves sTrainerMons_823BBF0[] = { + { + .iv = 0, + .lvl = 20, + .species = SPECIES_GRIMER, + .moves = {MOVE_MINIMIZE, MOVE_SLUDGE, MOVE_DISABLE, MOVE_HARDEN}, + }, + { + .iv = 0, + .lvl = 20, + .species = SPECIES_KOFFING, + .moves = {MOVE_SMOG, MOVE_TACKLE, MOVE_POISON_GAS, MOVE_NONE}, + }, + { + .iv = 0, + .lvl = 20, + .species = SPECIES_KOFFING, + .moves = {MOVE_SMOG, MOVE_TACKLE, MOVE_POISON_GAS, MOVE_NONE}, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823BC20[] = { + { + .iv = 0, + .lvl = 19, + .species = SPECIES_RATTATA, + }, + { + .iv = 0, + .lvl = 19, + .species = SPECIES_RATICATE, + }, + { + .iv = 0, + .lvl = 19, + .species = SPECIES_RATICATE, + }, + { + .iv = 0, + .lvl = 19, + .species = SPECIES_RATTATA, + }, +}; + +static const struct TrainerMonNoItemCustomMoves sTrainerMons_823BC40[] = { + { + .iv = 0, + .lvl = 22, + .species = SPECIES_GRIMER, + .moves = {MOVE_MINIMIZE, MOVE_SLUDGE, MOVE_DISABLE, MOVE_HARDEN}, + }, + { + .iv = 0, + .lvl = 22, + .species = SPECIES_KOFFING, + .moves = {MOVE_SLUDGE, MOVE_SMOG, MOVE_TACKLE, MOVE_POISON_GAS}, + }, +}; + +static const struct TrainerMonNoItemCustomMoves sTrainerMons_823BC60[] = { + { + .iv = 0, + .lvl = 17, + .species = SPECIES_ZUBAT, + .moves = {MOVE_BITE, MOVE_ASTONISH, MOVE_SUPERSONIC, MOVE_LEECH_LIFE}, + }, + { + .iv = 0, + .lvl = 17, + .species = SPECIES_KOFFING, + .moves = {MOVE_SMOG, MOVE_TACKLE, MOVE_POISON_GAS, MOVE_NONE}, + }, + { + .iv = 0, + .lvl = 17, + .species = SPECIES_GRIMER, + .moves = {MOVE_SLUDGE, MOVE_DISABLE, MOVE_HARDEN, MOVE_POUND}, + }, + { + .iv = 0, + .lvl = 17, + .species = SPECIES_ZUBAT, + .moves = {MOVE_BITE, MOVE_ASTONISH, MOVE_SUPERSONIC, MOVE_LEECH_LIFE}, + }, + { + .iv = 0, + .lvl = 17, + .species = SPECIES_RATICATE, + .moves = {MOVE_HYPER_FANG, MOVE_QUICK_ATTACK, MOVE_TAIL_WHIP, MOVE_TACKLE}, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823BCB0[] = { + { + .iv = 0, + .lvl = 20, + .species = SPECIES_RATTATA, + }, + { + .iv = 0, + .lvl = 20, + .species = SPECIES_RATICATE, + }, + { + .iv = 0, + .lvl = 20, + .species = SPECIES_DROWZEE, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823BCC8[] = { + { + .iv = 0, + .lvl = 21, + .species = SPECIES_MACHOP, + }, + { + .iv = 0, + .lvl = 21, + .species = SPECIES_MACHOP, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823BCD8[] = { + { + .iv = 0, + .lvl = 23, + .species = SPECIES_SANDSHREW, + }, + { + .iv = 0, + .lvl = 23, + .species = SPECIES_EKANS, + }, + { + .iv = 0, + .lvl = 23, + .species = SPECIES_SANDSLASH, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823BCF0[] = { + { + .iv = 0, + .lvl = 23, + .species = SPECIES_EKANS, + }, + { + .iv = 0, + .lvl = 23, + .species = SPECIES_SANDSHREW, + }, + { + .iv = 0, + .lvl = 23, + .species = SPECIES_ARBOK, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823BD08[] = { + { + .iv = 0, + .lvl = 21, + .species = SPECIES_KOFFING, + }, + { + .iv = 0, + .lvl = 21, + .species = SPECIES_ZUBAT, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823BD18[] = { + { + .iv = 0, + .lvl = 25, + .species = SPECIES_ZUBAT, + }, + { + .iv = 0, + .lvl = 25, + .species = SPECIES_ZUBAT, + }, + { + .iv = 0, + .lvl = 25, + .species = SPECIES_GOLBAT, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823BD30[] = { + { + .iv = 0, + .lvl = 26, + .species = SPECIES_KOFFING, + }, + { + .iv = 0, + .lvl = 26, + .species = SPECIES_DROWZEE, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823BD40[] = { + { + .iv = 0, + .lvl = 23, + .species = SPECIES_ZUBAT, + }, + { + .iv = 0, + .lvl = 23, + .species = SPECIES_RATTATA, + }, + { + .iv = 0, + .lvl = 23, + .species = SPECIES_RATICATE, + }, + { + .iv = 0, + .lvl = 23, + .species = SPECIES_ZUBAT, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823BD60[] = { + { + .iv = 0, + .lvl = 26, + .species = SPECIES_DROWZEE, + }, + { + .iv = 0, + .lvl = 26, + .species = SPECIES_KOFFING, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823BD70[] = { + { + .iv = 0, + .lvl = 29, + .species = SPECIES_CUBONE, + }, + { + .iv = 0, + .lvl = 29, + .species = SPECIES_ZUBAT, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823BD80[] = { + { + .iv = 0, + .lvl = 25, + .species = SPECIES_GOLBAT, + }, + { + .iv = 0, + .lvl = 25, + .species = SPECIES_ZUBAT, + }, + { + .iv = 0, + .lvl = 25, + .species = SPECIES_ZUBAT, + }, + { + .iv = 0, + .lvl = 25, + .species = SPECIES_RATICATE, + }, + { + .iv = 0, + .lvl = 25, + .species = SPECIES_ZUBAT, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823BDA8[] = { + { + .iv = 0, + .lvl = 28, + .species = SPECIES_RATICATE, + }, + { + .iv = 0, + .lvl = 28, + .species = SPECIES_HYPNO, + }, + { + .iv = 0, + .lvl = 28, + .species = SPECIES_RATICATE, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823BDC0[] = { + { + .iv = 0, + .lvl = 29, + .species = SPECIES_MACHOP, + }, + { + .iv = 0, + .lvl = 29, + .species = SPECIES_DROWZEE, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823BDD0[] = { + { + .iv = 0, + .lvl = 28, + .species = SPECIES_EKANS, + }, + { + .iv = 0, + .lvl = 28, + .species = SPECIES_ZUBAT, + }, + { + .iv = 0, + .lvl = 28, + .species = SPECIES_CUBONE, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823BDE8[] = { + { + .iv = 0, + .lvl = 33, + .species = SPECIES_ARBOK, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823BDF0[] = { + { + .iv = 0, + .lvl = 33, + .species = SPECIES_HYPNO, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823BDF8[] = { + { + .iv = 0, + .lvl = 29, + .species = SPECIES_MACHOP, + }, + { + .iv = 0, + .lvl = 29, + .species = SPECIES_MACHOKE, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823BE08[] = { + { + .iv = 0, + .lvl = 28, + .species = SPECIES_ZUBAT, + }, + { + .iv = 0, + .lvl = 28, + .species = SPECIES_ZUBAT, + }, + { + .iv = 0, + .lvl = 28, + .species = SPECIES_GOLBAT, + }, +}; + +static const struct TrainerMonNoItemCustomMoves sTrainerMons_823BE20[] = { + { + .iv = 0, + .lvl = 26, + .species = SPECIES_RATICATE, + .moves = {MOVE_SCARY_FACE, MOVE_HYPER_FANG, MOVE_QUICK_ATTACK, MOVE_TAIL_WHIP}, + }, + { + .iv = 0, + .lvl = 26, + .species = SPECIES_ARBOK, + .moves = {MOVE_GLARE, MOVE_BITE, MOVE_POISON_STING, MOVE_LEER}, + }, + { + .iv = 0, + .lvl = 26, + .species = SPECIES_KOFFING, + .moves = {MOVE_SMOKESCREEN, MOVE_SLUDGE, MOVE_SMOG, MOVE_TACKLE}, + }, + { + .iv = 0, + .lvl = 26, + .species = SPECIES_GOLBAT, + .moves = {MOVE_WING_ATTACK, MOVE_BITE, MOVE_ASTONISH, MOVE_SUPERSONIC}, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823BE60[] = { + { + .iv = 0, + .lvl = 29, + .species = SPECIES_CUBONE, + }, + { + .iv = 0, + .lvl = 29, + .species = SPECIES_CUBONE, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823BE70[] = { + { + .iv = 0, + .lvl = 29, + .species = SPECIES_SANDSHREW, + }, + { + .iv = 0, + .lvl = 29, + .species = SPECIES_SANDSLASH, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823BE80[] = { + { + .iv = 0, + .lvl = 26, + .species = SPECIES_RATICATE, + }, + { + .iv = 0, + .lvl = 26, + .species = SPECIES_ZUBAT, + }, + { + .iv = 0, + .lvl = 26, + .species = SPECIES_GOLBAT, + }, + { + .iv = 0, + .lvl = 26, + .species = SPECIES_RATTATA, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823BEA0[] = { + { + .iv = 0, + .lvl = 28, + .species = SPECIES_WEEZING, + }, + { + .iv = 0, + .lvl = 28, + .species = SPECIES_GOLBAT, + }, + { + .iv = 0, + .lvl = 28, + .species = SPECIES_KOFFING, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823BEB8[] = { + { + .iv = 0, + .lvl = 28, + .species = SPECIES_DROWZEE, + }, + { + .iv = 0, + .lvl = 28, + .species = SPECIES_GRIMER, + }, + { + .iv = 0, + .lvl = 28, + .species = SPECIES_MACHOP, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823BED0[] = { + { + .iv = 0, + .lvl = 28, + .species = SPECIES_GOLBAT, + }, + { + .iv = 0, + .lvl = 28, + .species = SPECIES_DROWZEE, + }, + { + .iv = 0, + .lvl = 28, + .species = SPECIES_HYPNO, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823BEE8[] = { + { + .iv = 0, + .lvl = 33, + .species = SPECIES_MACHOKE, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823BEF0[] = { + { + .iv = 0, + .lvl = 25, + .species = SPECIES_RATTATA, + }, + { + .iv = 0, + .lvl = 25, + .species = SPECIES_RATTATA, + }, + { + .iv = 0, + .lvl = 25, + .species = SPECIES_ZUBAT, + }, + { + .iv = 0, + .lvl = 25, + .species = SPECIES_RATTATA, + }, + { + .iv = 0, + .lvl = 25, + .species = SPECIES_EKANS, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823BF18[] = { + { + .iv = 0, + .lvl = 32, + .species = SPECIES_CUBONE, + }, + { + .iv = 0, + .lvl = 32, + .species = SPECIES_DROWZEE, + }, + { + .iv = 0, + .lvl = 32, + .species = SPECIES_MAROWAK, + }, +}; + +static const struct TrainerMonNoItemCustomMoves sTrainerMons_823BF30[] = { + { + .iv = 100, + .lvl = 37, + .species = SPECIES_SANDSLASH, + .moves = {MOVE_SLASH, MOVE_SWIFT, MOVE_SAND_ATTACK, MOVE_POISON_STING}, + }, + { + .iv = 100, + .lvl = 37, + .species = SPECIES_SANDSLASH, + .moves = {MOVE_SLASH, MOVE_SWIFT, MOVE_SAND_ATTACK, MOVE_POISON_STING}, + }, + { + .iv = 100, + .lvl = 38, + .species = SPECIES_RHYHORN, + .moves = {MOVE_TAKE_DOWN, MOVE_ROCK_BLAST, MOVE_FURY_ATTACK, MOVE_SCARY_FACE}, + }, + { + .iv = 100, + .lvl = 39, + .species = SPECIES_NIDORINO, + .moves = {MOVE_FURY_ATTACK, MOVE_HORN_ATTACK, MOVE_POISON_STING, MOVE_DOUBLE_KICK}, + }, + { + .iv = 100, + .lvl = 39, + .species = SPECIES_NIDOKING, + .moves = {MOVE_THRASH, MOVE_DOUBLE_KICK, MOVE_POISON_STING, MOVE_FOCUS_ENERGY}, + }, +}; + +static const struct TrainerMonNoItemCustomMoves sTrainerMons_823BF80[] = { + { + .iv = 100, + .lvl = 42, + .species = SPECIES_EXEGGUTOR, + .moves = {MOVE_EGG_BOMB, MOVE_CONFUSION, MOVE_STUN_SPORE, MOVE_SLEEP_POWDER}, + }, + { + .iv = 100, + .lvl = 42, + .species = SPECIES_SANDSLASH, + .moves = {MOVE_FURY_SWIPES, MOVE_SWIFT, MOVE_POISON_STING, MOVE_SAND_ATTACK}, + }, + { + .iv = 100, + .lvl = 42, + .species = SPECIES_CLOYSTER, + .moves = {MOVE_SPIKE_CANNON, MOVE_SPIKES, MOVE_AURORA_BEAM, MOVE_SUPERSONIC}, + }, + { + .iv = 100, + .lvl = 42, + .species = SPECIES_ELECTRODE, + .moves = {MOVE_SPARK, MOVE_SONIC_BOOM, MOVE_SCREECH, MOVE_LIGHT_SCREEN}, + }, + { + .iv = 100, + .lvl = 42, + .species = SPECIES_ARCANINE, + .moves = {MOVE_FLAME_WHEEL, MOVE_ROAR, MOVE_BITE, MOVE_TAKE_DOWN}, + }, +}; + +static const struct TrainerMonNoItemCustomMoves sTrainerMons_823BFD0[] = { + { + .iv = 100, + .lvl = 41, + .species = SPECIES_KINGLER, + .moves = {MOVE_GUILLOTINE, MOVE_STOMP, MOVE_MUD_SHOT, MOVE_BUBBLE}, + }, + { + .iv = 100, + .lvl = 42, + .species = SPECIES_POLIWHIRL, + .moves = {MOVE_BODY_SLAM, MOVE_DOUBLE_SLAP, MOVE_WATER_GUN, MOVE_HYPNOSIS}, + }, + { + .iv = 100, + .lvl = 42, + .species = SPECIES_TENTACRUEL, + .moves = {MOVE_BARRIER, MOVE_WRAP, MOVE_BUBBLE_BEAM, MOVE_ACID}, + }, + { + .iv = 100, + .lvl = 42, + .species = SPECIES_SEADRA, + .moves = {MOVE_WATER_GUN, MOVE_SMOKESCREEN, MOVE_TWISTER, MOVE_LEER}, + }, + { + .iv = 100, + .lvl = 43, + .species = SPECIES_BLASTOISE, + .moves = {MOVE_WATER_GUN, MOVE_BITE, MOVE_RAPID_SPIN, MOVE_RAIN_DANCE}, + }, +}; + +static const struct TrainerMonNoItemCustomMoves sTrainerMons_823C020[] = { + { + .iv = 100, + .lvl = 42, + .species = SPECIES_SLOWPOKE, + .moves = {MOVE_HEADBUTT, MOVE_CONFUSION, MOVE_WATER_GUN, MOVE_DISABLE}, + }, + { + .iv = 100, + .lvl = 42, + .species = SPECIES_SHELLDER, + .moves = {MOVE_AURORA_BEAM, MOVE_CLAMP, MOVE_SUPERSONIC, MOVE_LEER}, + }, + { + .iv = 100, + .lvl = 42, + .species = SPECIES_KINGLER, + .moves = {MOVE_GUILLOTINE, MOVE_STOMP, MOVE_MUD_SHOT, MOVE_BUBBLE}, + }, + { + .iv = 100, + .lvl = 42, + .species = SPECIES_STARMIE, + .moves = {MOVE_BUBBLE_BEAM, MOVE_SWIFT, MOVE_RECOVER, MOVE_RAPID_SPIN}, + }, + { + .iv = 100, + .lvl = 42, + .species = SPECIES_GOLDUCK, + .moves = {MOVE_CONFUSION, MOVE_SCRATCH, MOVE_SCREECH, MOVE_DISABLE}, + }, +}; + +static const struct TrainerMonNoItemCustomMoves sTrainerMons_823C070[] = { + { + .iv = 100, + .lvl = 42, + .species = SPECIES_RATICATE, + .moves = {MOVE_SUPER_FANG, MOVE_PURSUIT, MOVE_SCARY_FACE, MOVE_QUICK_ATTACK}, + }, + { + .iv = 100, + .lvl = 42, + .species = SPECIES_IVYSAUR, + .moves = {MOVE_RAZOR_LEAF, MOVE_SLEEP_POWDER, MOVE_SWEET_SCENT, MOVE_SYNTHESIS}, + }, + { + .iv = 100, + .lvl = 42, + .species = SPECIES_WARTORTLE, + .moves = {MOVE_WATER_GUN, MOVE_BITE, MOVE_RAPID_SPIN, MOVE_TAIL_WHIP}, + }, + { + .iv = 100, + .lvl = 42, + .species = SPECIES_CHARMELEON, + .moves = {MOVE_FLAMETHROWER, MOVE_SLASH, MOVE_SMOKESCREEN, MOVE_SCARY_FACE}, + }, + { + .iv = 100, + .lvl = 42, + .species = SPECIES_CHARIZARD, + .moves = {MOVE_FLAMETHROWER, MOVE_WING_ATTACK, MOVE_SMOKESCREEN, MOVE_SCARY_FACE}, + }, +}; + +static const struct TrainerMonNoItemCustomMoves sTrainerMons_823C0C0[] = { + { + .iv = 100, + .lvl = 42, + .species = SPECIES_PIDGEOTTO, + .moves = {MOVE_WING_ATTACK, MOVE_FEATHER_DANCE, MOVE_WHIRLWIND, MOVE_QUICK_ATTACK}, + }, + { + .iv = 100, + .lvl = 42, + .species = SPECIES_FEAROW, + .moves = {MOVE_DRILL_PECK, MOVE_MIRROR_MOVE, MOVE_PURSUIT, MOVE_LEER}, + }, + { + .iv = 100, + .lvl = 42, + .species = SPECIES_PERSIAN, + .moves = {MOVE_PAY_DAY, MOVE_FAINT_ATTACK, MOVE_SCREECH, MOVE_BITE}, + }, + { + .iv = 100, + .lvl = 42, + .species = SPECIES_LICKITUNG, + .moves = {MOVE_SLAM, MOVE_DISABLE, MOVE_WRAP, MOVE_SUPERSONIC}, + }, + { + .iv = 100, + .lvl = 42, + .species = SPECIES_TAUROS, + .moves = {MOVE_HORN_ATTACK, MOVE_SCARY_FACE, MOVE_SWAGGER, MOVE_TAIL_WHIP}, + }, +}; + +static const struct TrainerMonNoItemCustomMoves sTrainerMons_823C110[] = { + { + .iv = 100, + .lvl = 42, + .species = SPECIES_NIDORINO, + .moves = {MOVE_SCRATCH, MOVE_POISON_STING, MOVE_DOUBLE_KICK, MOVE_BITE}, + }, + { + .iv = 100, + .lvl = 42, + .species = SPECIES_NIDORINA, + .moves = {MOVE_HORN_ATTACK, MOVE_POISON_STING, MOVE_DOUBLE_KICK, MOVE_LEER}, + }, + { + .iv = 100, + .lvl = 42, + .species = SPECIES_RATICATE, + .moves = {MOVE_SUPER_FANG, MOVE_PURSUIT, MOVE_SCARY_FACE, MOVE_QUICK_ATTACK}, + }, + { + .iv = 100, + .lvl = 42, + .species = SPECIES_SANDSLASH, + .moves = {MOVE_FURY_SWIPES, MOVE_SWIFT, MOVE_SLASH, MOVE_POISON_STING}, + }, + { + .iv = 100, + .lvl = 42, + .species = SPECIES_RHYHORN, + .moves = {MOVE_ROCK_BLAST, MOVE_SCARY_FACE, MOVE_STOMP, MOVE_TAIL_WHIP}, + }, +}; + +static const struct TrainerMonNoItemCustomMoves sTrainerMons_823C160[] = { + { + .iv = 100, + .lvl = 42, + .species = SPECIES_SEEL, + .moves = {MOVE_TAKE_DOWN, MOVE_AURORA_BEAM, MOVE_ICY_WIND, MOVE_GROWL}, + }, + { + .iv = 100, + .lvl = 42, + .species = SPECIES_GRAVELER, + .moves = {MOVE_ROCK_BLAST, MOVE_MAGNITUDE, MOVE_ROCK_THROW, MOVE_MUD_SPORT}, + }, + { + .iv = 100, + .lvl = 42, + .species = SPECIES_KINGLER, + .moves = {MOVE_GUILLOTINE, MOVE_STOMP, MOVE_MUD_SHOT, MOVE_BUBBLE}, + }, + { + .iv = 100, + .lvl = 42, + .species = SPECIES_ONIX, + .moves = {MOVE_SLAM, MOVE_SANDSTORM, MOVE_DRAGON_BREATH, MOVE_ROCK_THROW}, + }, + { + .iv = 100, + .lvl = 42, + .species = SPECIES_CLOYSTER, + .moves = {MOVE_SPIKE_CANNON, MOVE_AURORA_BEAM, MOVE_SUPERSONIC, MOVE_PROTECT}, + }, +}; + +static const struct TrainerMonNoItemCustomMoves sTrainerMons_823C1B0[] = { + { + .iv = 100, + .lvl = 38, + .species = SPECIES_SANDSLASH, + .moves = {MOVE_SLASH, MOVE_SWIFT, MOVE_SAND_ATTACK, MOVE_POISON_STING}, + }, + { + .iv = 100, + .lvl = 38, + .species = SPECIES_GRAVELER, + .moves = {MOVE_ROCK_BLAST, MOVE_MAGNITUDE, MOVE_MUD_SPORT, MOVE_DEFENSE_CURL}, + }, + { + .iv = 100, + .lvl = 38, + .species = SPECIES_ONIX, + .moves = {MOVE_DRAGON_BREATH, MOVE_SANDSTORM, MOVE_ROCK_THROW, MOVE_BIND}, + }, + { + .iv = 100, + .lvl = 38, + .species = SPECIES_GRAVELER, + .moves = {MOVE_ROCK_BLAST, MOVE_MAGNITUDE, MOVE_ROLLOUT, MOVE_DEFENSE_CURL}, + }, + { + .iv = 100, + .lvl = 38, + .species = SPECIES_MAROWAK, + .moves = {MOVE_BONEMERANG, MOVE_HEADBUTT, MOVE_LEER, MOVE_GROWL}, + }, +}; + +static const struct TrainerMonNoItemCustomMoves sTrainerMons_823C200[] = { + { + .iv = 100, + .lvl = 37, + .species = SPECIES_MAROWAK, + .moves = {MOVE_BONEMERANG, MOVE_HEADBUTT, MOVE_LEER, MOVE_GROWL}, + }, + { + .iv = 100, + .lvl = 37, + .species = SPECIES_MAROWAK, + .moves = {MOVE_BONEMERANG, MOVE_HEADBUTT, MOVE_LEER, MOVE_GROWL}, + }, + { + .iv = 100, + .lvl = 38, + .species = SPECIES_RHYHORN, + .moves = {MOVE_TAKE_DOWN, MOVE_ROCK_BLAST, MOVE_FURY_ATTACK, MOVE_SCARY_FACE}, + }, + { + .iv = 100, + .lvl = 39, + .species = SPECIES_NIDORINA, + .moves = {MOVE_FURY_SWIPES, MOVE_BITE, MOVE_POISON_STING, MOVE_DOUBLE_KICK}, + }, + { + .iv = 100, + .lvl = 39, + .species = SPECIES_NIDOQUEEN, + .moves = {MOVE_BODY_SLAM, MOVE_BITE, MOVE_POISON_STING, MOVE_DOUBLE_KICK}, + }, +}; + +static const struct TrainerMonNoItemCustomMoves sTrainerMons_823C250[] = { + { + .iv = 100, + .lvl = 22, + .species = SPECIES_BELLSPROUT, + .moves = {MOVE_WRAP, MOVE_STUN_SPORE, MOVE_POISON_POWDER, MOVE_GROWTH}, + }, + { + .iv = 100, + .lvl = 22, + .species = SPECIES_ODDISH, + .moves = {MOVE_POISON_POWDER, MOVE_STUN_SPORE, MOVE_ABSORB, MOVE_SWEET_SCENT}, + }, + { + .iv = 100, + .lvl = 22, + .species = SPECIES_WEEPINBELL, + .moves = {MOVE_VINE_WHIP, MOVE_STUN_SPORE, MOVE_POISON_POWDER, MOVE_GROWTH}, + }, + { + .iv = 100, + .lvl = 22, + .species = SPECIES_GLOOM, + .moves = {MOVE_ABSORB, MOVE_STUN_SPORE, MOVE_POISON_POWDER, MOVE_SWEET_SCENT}, + }, + { + .iv = 100, + .lvl = 22, + .species = SPECIES_IVYSAUR, + .moves = {MOVE_RAZOR_LEAF, MOVE_SLEEP_POWDER, MOVE_VINE_WHIP, MOVE_LEECH_SEED}, + }, +}; + +static const struct TrainerMonNoItemCustomMoves sTrainerMons_823C2A0[] = { + { + .iv = 100, + .lvl = 42, + .species = SPECIES_BELLSPROUT, + .moves = {MOVE_RAZOR_LEAF, MOVE_ACID, MOVE_STUN_SPORE, MOVE_POISON_POWDER}, + }, + { + .iv = 100, + .lvl = 42, + .species = SPECIES_WEEPINBELL, + .moves = {MOVE_RAZOR_LEAF, MOVE_ACID, MOVE_SLEEP_POWDER, MOVE_POISON_POWDER}, + }, + { + .iv = 100, + .lvl = 42, + .species = SPECIES_VICTREEBEL, + .moves = {MOVE_RAZOR_LEAF, MOVE_ACID, MOVE_STUN_SPORE, MOVE_SLEEP_POWDER}, + }, + { + .iv = 100, + .lvl = 42, + .species = SPECIES_PARAS, + .moves = {MOVE_GROWTH, MOVE_SLASH, MOVE_LEECH_LIFE, MOVE_STUN_SPORE}, + }, + { + .iv = 100, + .lvl = 42, + .species = SPECIES_PARASECT, + .moves = {MOVE_SPORE, MOVE_SLASH, MOVE_LEECH_LIFE, MOVE_POISON_POWDER}, + }, +}; + +static const struct TrainerMonNoItemCustomMoves sTrainerMons_823C2F0[] = { + { + .iv = 100, + .lvl = 42, + .species = SPECIES_CLEFAIRY, + .moves = {MOVE_LIGHT_SCREEN, MOVE_COSMIC_POWER, MOVE_DOUBLE_SLAP, MOVE_ENCORE}, + }, + { + .iv = 100, + .lvl = 42, + .species = SPECIES_JIGGLYPUFF, + .moves = {MOVE_SING, MOVE_BODY_SLAM, MOVE_ROLLOUT, MOVE_DISABLE}, + }, + { + .iv = 100, + .lvl = 42, + .species = SPECIES_PERSIAN, + .moves = {MOVE_PAY_DAY, MOVE_FAINT_ATTACK, MOVE_BITE, MOVE_SCREECH}, + }, + { + .iv = 100, + .lvl = 42, + .species = SPECIES_DEWGONG, + .moves = {MOVE_SHEER_COLD, MOVE_TAKE_DOWN, MOVE_REST, MOVE_AURORA_BEAM}, + }, + { + .iv = 100, + .lvl = 42, + .species = SPECIES_CHANSEY, + .moves = {MOVE_SING, MOVE_EGG_BOMB, MOVE_SOFT_BOILED, MOVE_MINIMIZE}, + }, +}; + +static const struct TrainerMonNoItemCustomMoves sTrainerMons_823C340[] = { + { + .iv = 100, + .lvl = 42, + .species = SPECIES_BEEDRILL, + .moves = {MOVE_PIN_MISSILE, MOVE_TWINEEDLE, MOVE_AGILITY, MOVE_PURSUIT}, + }, + { + .iv = 100, + .lvl = 42, + .species = SPECIES_BUTTERFREE, + .moves = {MOVE_SAFEGUARD, MOVE_PSYBEAM, MOVE_GUST, MOVE_SUPERSONIC}, + }, + { + .iv = 100, + .lvl = 42, + .species = SPECIES_PARASECT, + .moves = {MOVE_SPORE, MOVE_LEECH_LIFE, MOVE_SLASH, MOVE_GROWTH}, + }, + { + .iv = 100, + .lvl = 42, + .species = SPECIES_VENONAT, + .moves = {MOVE_PSYBEAM, MOVE_STUN_SPORE, MOVE_LEECH_LIFE, MOVE_DISABLE}, + }, + { + .iv = 100, + .lvl = 42, + .species = SPECIES_VENOMOTH, + .moves = {MOVE_PSYBEAM, MOVE_GUST, MOVE_SUPERSONIC, MOVE_LEECH_LIFE}, + }, +}; + +static const struct TrainerMonNoItemCustomMoves sTrainerMons_823C390[] = { + { + .iv = 100, + .lvl = 42, + .species = SPECIES_PERSIAN, + .moves = {MOVE_FURY_SWIPES, MOVE_SCREECH, MOVE_FAINT_ATTACK, MOVE_PAY_DAY}, + }, + { + .iv = 100, + .lvl = 42, + .species = SPECIES_PONYTA, + .moves = {MOVE_AGILITY, MOVE_TAKE_DOWN, MOVE_FIRE_SPIN, MOVE_STOMP}, + }, + { + .iv = 100, + .lvl = 42, + .species = SPECIES_RAPIDASH, + .moves = {MOVE_FURY_ATTACK, MOVE_FIRE_SPIN, MOVE_STOMP, MOVE_GROWL}, + }, + { + .iv = 100, + .lvl = 42, + .species = SPECIES_VULPIX, + .moves = {MOVE_FLAMETHROWER, MOVE_CONFUSE_RAY, MOVE_QUICK_ATTACK, MOVE_IMPRISON}, + }, + { + .iv = 100, + .lvl = 42, + .species = SPECIES_NINETALES, + .moves = {MOVE_SAFEGUARD, MOVE_WILL_O_WISP, MOVE_CONFUSE_RAY, MOVE_FIRE_SPIN}, + }, +}; + +static const struct TrainerMonNoItemCustomMoves sTrainerMons_823C3E0[] = { + { + .iv = 100, + .lvl = 42, + .species = SPECIES_TANGELA, + .moves = {MOVE_SLAM, MOVE_BIND, MOVE_MEGA_DRAIN, MOVE_INGRAIN}, + }, + { + .iv = 100, + .lvl = 42, + .species = SPECIES_GLOOM, + .moves = {MOVE_ACID, MOVE_MOONLIGHT, MOVE_SLEEP_POWDER, MOVE_STUN_SPORE}, + }, + { + .iv = 100, + .lvl = 42, + .species = SPECIES_VILEPLUME, + .moves = {MOVE_MEGA_DRAIN, MOVE_ACID, MOVE_STUN_SPORE, MOVE_AROMATHERAPY}, + }, + { + .iv = 100, + .lvl = 42, + .species = SPECIES_IVYSAUR, + .moves = {MOVE_RAZOR_LEAF, MOVE_SWEET_SCENT, MOVE_GROWL, MOVE_LEECH_SEED}, + }, + { + .iv = 100, + .lvl = 42, + .species = SPECIES_VENUSAUR, + .moves = {MOVE_RAZOR_LEAF, MOVE_GROWTH, MOVE_SLEEP_POWDER, MOVE_POISON_POWDER}, + }, +}; + +static const struct TrainerMonNoItemCustomMoves sTrainerMons_823C430[] = { + { + .iv = 100, + .lvl = 42, + .species = SPECIES_RHYHORN, + .moves = {MOVE_HORN_DRILL, MOVE_ROCK_BLAST, MOVE_SCARY_FACE, MOVE_STOMP}, + }, + { + .iv = 100, + .lvl = 42, + .species = SPECIES_NIDORINA, + .moves = {MOVE_DOUBLE_KICK, MOVE_FURY_SWIPES, MOVE_BITE, MOVE_FLATTER}, + }, + { + .iv = 100, + .lvl = 42, + .species = SPECIES_NIDOQUEEN, + .moves = {MOVE_BODY_SLAM, MOVE_DOUBLE_KICK, MOVE_BITE, MOVE_GROWL}, + }, + { + .iv = 100, + .lvl = 42, + .species = SPECIES_NIDORINO, + .moves = {MOVE_HORN_ATTACK, MOVE_POISON_STING, MOVE_FOCUS_ENERGY, MOVE_LEER}, + }, + { + .iv = 100, + .lvl = 42, + .species = SPECIES_NIDOKING, + .moves = {MOVE_THRASH, MOVE_DOUBLE_KICK, MOVE_POISON_STING, MOVE_PECK}, + }, +}; + +static const struct TrainerMonNoItemCustomMoves sTrainerMons_823C480[] = { + { + .iv = 100, + .lvl = 42, + .species = SPECIES_PERSIAN, + .moves = {MOVE_FURY_SWIPES, MOVE_BITE, MOVE_SCREECH, MOVE_FAINT_ATTACK}, + }, + { + .iv = 100, + .lvl = 42, + .species = SPECIES_NINETALES, + .moves = {MOVE_FLAMETHROWER, MOVE_WILL_O_WISP, MOVE_CONFUSE_RAY, MOVE_GRUDGE}, + }, + { + .iv = 100, + .lvl = 42, + .species = SPECIES_RAPIDASH, + .moves = {MOVE_FURY_ATTACK, MOVE_FIRE_SPIN, MOVE_TAKE_DOWN, MOVE_AGILITY}, + }, + { + .iv = 100, + .lvl = 42, + .species = SPECIES_PIKACHU, + .moves = {MOVE_THUNDERBOLT, MOVE_THUNDER_WAVE, MOVE_DOUBLE_TEAM, MOVE_QUICK_ATTACK}, + }, + { + .iv = 100, + .lvl = 42, + .species = SPECIES_RAICHU, + .moves = {MOVE_THUNDER, MOVE_THUNDER_WAVE, MOVE_SLAM, MOVE_DOUBLE_TEAM}, + }, +}; + +static const struct TrainerMonItemCustomMoves sTrainerMons_823C4D0[] = { + { + .iv = 250, + .lvl = 52, + .species = SPECIES_DEWGONG, + .heldItem = ITEM_NONE, + .moves = {MOVE_ICE_BEAM, MOVE_SURF, MOVE_HAIL, MOVE_SAFEGUARD}, + }, + { + .iv = 250, + .lvl = 51, + .species = SPECIES_CLOYSTER, + .heldItem = ITEM_NONE, + .moves = {MOVE_SPIKES, MOVE_PROTECT, MOVE_HAIL, MOVE_DIVE}, + }, + { + .iv = 250, + .lvl = 52, + .species = SPECIES_SLOWBRO, + .heldItem = ITEM_NONE, + .moves = {MOVE_ICE_BEAM, MOVE_SURF, MOVE_AMNESIA, MOVE_YAWN}, + }, + { + .iv = 250, + .lvl = 54, + .species = SPECIES_JYNX, + .heldItem = ITEM_NONE, + .moves = {MOVE_ICE_PUNCH, MOVE_DOUBLE_SLAP, MOVE_LOVELY_KISS, MOVE_ATTRACT}, + }, + { + .iv = 250, + .lvl = 54, + .species = SPECIES_LAPRAS, + .heldItem = ITEM_SITRUS_BERRY, + .moves = {MOVE_CONFUSE_RAY, MOVE_ICE_BEAM, MOVE_SURF, MOVE_BODY_SLAM}, + }, +}; + +static const struct TrainerMonItemCustomMoves sTrainerMons_823C520[] = { + { + .iv = 250, + .lvl = 51, + .species = SPECIES_ONIX, + .heldItem = ITEM_NONE, + .moves = {MOVE_EARTHQUAKE, MOVE_ROCK_TOMB, MOVE_IRON_TAIL, MOVE_ROAR}, + }, + { + .iv = 250, + .lvl = 53, + .species = SPECIES_HITMONCHAN, + .heldItem = ITEM_NONE, + .moves = {MOVE_SKY_UPPERCUT, MOVE_MACH_PUNCH, MOVE_ROCK_TOMB, MOVE_COUNTER}, + }, + { + .iv = 250, + .lvl = 53, + .species = SPECIES_HITMONLEE, + .heldItem = ITEM_NONE, + .moves = {MOVE_MEGA_KICK, MOVE_FORESIGHT, MOVE_BRICK_BREAK, MOVE_FACADE}, + }, + { + .iv = 250, + .lvl = 54, + .species = SPECIES_ONIX, + .heldItem = ITEM_NONE, + .moves = {MOVE_DOUBLE_EDGE, MOVE_EARTHQUAKE, MOVE_IRON_TAIL, MOVE_SAND_TOMB}, + }, + { + .iv = 250, + .lvl = 56, + .species = SPECIES_MACHAMP, + .heldItem = ITEM_SITRUS_BERRY, + .moves = {MOVE_CROSS_CHOP, MOVE_BULK_UP, MOVE_SCARY_FACE, MOVE_ROCK_TOMB}, + }, +}; + +static const struct TrainerMonItemCustomMoves sTrainerMons_823C570[] = { + { + .iv = 250, + .lvl = 54, + .species = SPECIES_GENGAR, + .heldItem = ITEM_NONE, + .moves = {MOVE_SHADOW_PUNCH, MOVE_CONFUSE_RAY, MOVE_TOXIC, MOVE_DOUBLE_TEAM}, + }, + { + .iv = 250, + .lvl = 54, + .species = SPECIES_GOLBAT, + .heldItem = ITEM_NONE, + .moves = {MOVE_CONFUSE_RAY, MOVE_POISON_FANG, MOVE_AIR_CUTTER, MOVE_BITE}, + }, + { + .iv = 250, + .lvl = 53, + .species = SPECIES_HAUNTER, + .heldItem = ITEM_NONE, + .moves = {MOVE_HYPNOSIS, MOVE_DREAM_EATER, MOVE_CURSE, MOVE_MEAN_LOOK}, + }, + { + .iv = 250, + .lvl = 56, + .species = SPECIES_ARBOK, + .heldItem = ITEM_NONE, + .moves = {MOVE_SLUDGE_BOMB, MOVE_SCREECH, MOVE_IRON_TAIL, MOVE_BITE}, + }, + { + .iv = 250, + .lvl = 58, + .species = SPECIES_GENGAR, + .heldItem = ITEM_SITRUS_BERRY, + .moves = {MOVE_SHADOW_BALL, MOVE_SLUDGE_BOMB, MOVE_HYPNOSIS, MOVE_NIGHTMARE}, + }, +}; + +static const struct TrainerMonItemCustomMoves sTrainerMons_823C5C0[] = { + { + .iv = 250, + .lvl = 56, + .species = SPECIES_GYARADOS, + .heldItem = ITEM_NONE, + .moves = {MOVE_HYPER_BEAM, MOVE_DRAGON_RAGE, MOVE_TWISTER, MOVE_BITE}, + }, + { + .iv = 250, + .lvl = 54, + .species = SPECIES_DRAGONAIR, + .heldItem = ITEM_NONE, + .moves = {MOVE_HYPER_BEAM, MOVE_SAFEGUARD, MOVE_DRAGON_RAGE, MOVE_OUTRAGE}, + }, + { + .iv = 250, + .lvl = 54, + .species = SPECIES_DRAGONAIR, + .heldItem = ITEM_NONE, + .moves = {MOVE_HYPER_BEAM, MOVE_SAFEGUARD, MOVE_THUNDER_WAVE, MOVE_OUTRAGE}, + }, + { + .iv = 250, + .lvl = 58, + .species = SPECIES_AERODACTYL, + .heldItem = ITEM_NONE, + .moves = {MOVE_HYPER_BEAM, MOVE_ANCIENT_POWER, MOVE_WING_ATTACK, MOVE_SCARY_FACE}, + }, + { + .iv = 250, + .lvl = 60, + .species = SPECIES_DRAGONITE, + .heldItem = ITEM_SITRUS_BERRY, + .moves = {MOVE_HYPER_BEAM, MOVE_SAFEGUARD, MOVE_OUTRAGE, MOVE_WING_ATTACK}, + }, +}; + +static const struct TrainerMonNoItemCustomMoves sTrainerMons_823C610[] = { + { + .iv = 0, + .lvl = 12, + .species = SPECIES_GEODUDE, + .moves = {MOVE_TACKLE, MOVE_DEFENSE_CURL, MOVE_NONE, MOVE_NONE}, + }, + { + .iv = 0, + .lvl = 14, + .species = SPECIES_ONIX, + .moves = {MOVE_TACKLE, MOVE_BIND, MOVE_ROCK_TOMB, MOVE_NONE}, + }, +}; + +static const struct TrainerMonNoItemCustomMoves sTrainerMons_823C630[] = { + { + .iv = 0, + .lvl = 18, + .species = SPECIES_STARYU, + .moves = {MOVE_TACKLE, MOVE_HARDEN, MOVE_RECOVER, MOVE_WATER_PULSE}, + }, + { + .iv = 0, + .lvl = 21, + .species = SPECIES_STARMIE, + .moves = {MOVE_SWIFT, MOVE_RECOVER, MOVE_RAPID_SPIN, MOVE_WATER_PULSE}, + }, +}; + +static const struct TrainerMonNoItemCustomMoves sTrainerMons_823C650[] = { + { + .iv = 0, + .lvl = 21, + .species = SPECIES_VOLTORB, + .moves = {MOVE_SONIC_BOOM, MOVE_TACKLE, MOVE_SCREECH, MOVE_SHOCK_WAVE}, + }, + { + .iv = 0, + .lvl = 18, + .species = SPECIES_PIKACHU, + .moves = {MOVE_QUICK_ATTACK, MOVE_THUNDER_WAVE, MOVE_DOUBLE_TEAM, MOVE_SHOCK_WAVE}, + }, + { + .iv = 0, + .lvl = 24, + .species = SPECIES_RAICHU, + .moves = {MOVE_QUICK_ATTACK, MOVE_THUNDER_WAVE, MOVE_DOUBLE_TEAM, MOVE_SHOCK_WAVE}, + }, +}; + +static const struct TrainerMonNoItemCustomMoves sTrainerMons_823C680[] = { + { + .iv = 0, + .lvl = 29, + .species = SPECIES_VICTREEBEL, + .moves = {MOVE_STUN_SPORE, MOVE_ACID, MOVE_POISON_POWDER, MOVE_GIGA_DRAIN}, + }, + { + .iv = 0, + .lvl = 24, + .species = SPECIES_TANGELA, + .moves = {MOVE_POISON_POWDER, MOVE_CONSTRICT, MOVE_INGRAIN, MOVE_GIGA_DRAIN}, + }, + { + .iv = 0, + .lvl = 29, + .species = SPECIES_VILEPLUME, + .moves = {MOVE_SLEEP_POWDER, MOVE_ACID, MOVE_STUN_SPORE, MOVE_GIGA_DRAIN}, + }, +}; + +static const struct TrainerMonNoItemCustomMoves sTrainerMons_823C6B0[] = { + { + .iv = 0, + .lvl = 37, + .species = SPECIES_KOFFING, + .moves = {MOVE_SELF_DESTRUCT, MOVE_SLUDGE, MOVE_SMOKESCREEN, MOVE_TOXIC}, + }, + { + .iv = 0, + .lvl = 39, + .species = SPECIES_MUK, + .moves = {MOVE_MINIMIZE, MOVE_SLUDGE, MOVE_ACID_ARMOR, MOVE_TOXIC}, + }, + { + .iv = 0, + .lvl = 37, + .species = SPECIES_KOFFING, + .moves = {MOVE_SELF_DESTRUCT, MOVE_SLUDGE, MOVE_SMOKESCREEN, MOVE_TOXIC}, + }, + { + .iv = 0, + .lvl = 43, + .species = SPECIES_WEEZING, + .moves = {MOVE_TACKLE, MOVE_SLUDGE, MOVE_SMOKESCREEN, MOVE_TOXIC}, + }, +}; + +static const struct TrainerMonNoItemCustomMoves sTrainerMons_823C6F0[] = { + { + .iv = 0, + .lvl = 42, + .species = SPECIES_GROWLITHE, + .moves = {MOVE_BITE, MOVE_ROAR, MOVE_TAKE_DOWN, MOVE_FIRE_BLAST}, + }, + { + .iv = 0, + .lvl = 40, + .species = SPECIES_PONYTA, + .moves = {MOVE_STOMP, MOVE_BOUNCE, MOVE_FIRE_SPIN, MOVE_FIRE_BLAST}, + }, + { + .iv = 0, + .lvl = 42, + .species = SPECIES_RAPIDASH, + .moves = {MOVE_STOMP, MOVE_BOUNCE, MOVE_FIRE_SPIN, MOVE_FIRE_BLAST}, + }, + { + .iv = 0, + .lvl = 47, + .species = SPECIES_ARCANINE, + .moves = {MOVE_BITE, MOVE_ROAR, MOVE_TAKE_DOWN, MOVE_FIRE_BLAST}, + }, +}; + +static const struct TrainerMonNoItemCustomMoves sTrainerMons_823C730[] = { + { + .iv = 0, + .lvl = 38, + .species = SPECIES_KADABRA, + .moves = {MOVE_PSYBEAM, MOVE_REFLECT, MOVE_FUTURE_SIGHT, MOVE_CALM_MIND}, + }, + { + .iv = 0, + .lvl = 37, + .species = SPECIES_MR_MIME, + .moves = {MOVE_BARRIER, MOVE_PSYBEAM, MOVE_BATON_PASS, MOVE_CALM_MIND}, + }, + { + .iv = 0, + .lvl = 38, + .species = SPECIES_VENOMOTH, + .moves = {MOVE_PSYBEAM, MOVE_GUST, MOVE_LEECH_LIFE, MOVE_SUPERSONIC}, + }, + { + .iv = 0, + .lvl = 43, + .species = SPECIES_ALAKAZAM, + .moves = {MOVE_PSYCHIC, MOVE_RECOVER, MOVE_FUTURE_SIGHT, MOVE_CALM_MIND}, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823C770[] = { + { + .iv = 0, + .lvl = 18, + .species = SPECIES_GROWLITHE, + }, + { + .iv = 0, + .lvl = 18, + .species = SPECIES_GROWLITHE, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823C780[] = { + { + .iv = 0, + .lvl = 19, + .species = SPECIES_NIDORAN_M, + }, + { + .iv = 0, + .lvl = 19, + .species = SPECIES_NIDORAN_F, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823C790[] = { + { + .iv = 0, + .lvl = 23, + .species = SPECIES_PIKACHU, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823C798[] = { + { + .iv = 0, + .lvl = 48, + .species = SPECIES_PERSIAN, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823C7A0[] = { + { + .iv = 0, + .lvl = 17, + .species = SPECIES_GROWLITHE, + }, + { + .iv = 0, + .lvl = 17, + .species = SPECIES_PONYTA, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823C7B0[] = { + { + .iv = 50, + .lvl = 19, + .species = SPECIES_PIDGEOTTO, + }, + { + .iv = 50, + .lvl = 16, + .species = SPECIES_RATICATE, + }, + { + .iv = 50, + .lvl = 18, + .species = SPECIES_KADABRA, + }, + { + .iv = 100, + .lvl = 20, + .species = SPECIES_WARTORTLE, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823C7D0[] = { + { + .iv = 50, + .lvl = 19, + .species = SPECIES_PIDGEOTTO, + }, + { + .iv = 50, + .lvl = 16, + .species = SPECIES_RATICATE, + }, + { + .iv = 50, + .lvl = 18, + .species = SPECIES_KADABRA, + }, + { + .iv = 100, + .lvl = 20, + .species = SPECIES_IVYSAUR, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823C7F0[] = { + { + .iv = 50, + .lvl = 19, + .species = SPECIES_PIDGEOTTO, + }, + { + .iv = 50, + .lvl = 16, + .species = SPECIES_RATICATE, + }, + { + .iv = 50, + .lvl = 18, + .species = SPECIES_KADABRA, + }, + { + .iv = 100, + .lvl = 20, + .species = SPECIES_CHARMELEON, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823C810[] = { + { + .iv = 100, + .lvl = 25, + .species = SPECIES_PIDGEOTTO, + }, + { + .iv = 100, + .lvl = 23, + .species = SPECIES_GROWLITHE, + }, + { + .iv = 100, + .lvl = 22, + .species = SPECIES_EXEGGCUTE, + }, + { + .iv = 100, + .lvl = 20, + .species = SPECIES_KADABRA, + }, + { + .iv = 100, + .lvl = 25, + .species = SPECIES_WARTORTLE, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823C838[] = { + { + .iv = 100, + .lvl = 25, + .species = SPECIES_PIDGEOTTO, + }, + { + .iv = 100, + .lvl = 23, + .species = SPECIES_GYARADOS, + }, + { + .iv = 100, + .lvl = 22, + .species = SPECIES_GROWLITHE, + }, + { + .iv = 100, + .lvl = 20, + .species = SPECIES_KADABRA, + }, + { + .iv = 100, + .lvl = 25, + .species = SPECIES_IVYSAUR, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823C860[] = { + { + .iv = 100, + .lvl = 25, + .species = SPECIES_PIDGEOTTO, + }, + { + .iv = 100, + .lvl = 23, + .species = SPECIES_EXEGGCUTE, + }, + { + .iv = 100, + .lvl = 22, + .species = SPECIES_GYARADOS, + }, + { + .iv = 100, + .lvl = 20, + .species = SPECIES_KADABRA, + }, + { + .iv = 100, + .lvl = 25, + .species = SPECIES_CHARMELEON, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823C888[] = { + { + .iv = 100, + .lvl = 37, + .species = SPECIES_PIDGEOT, + }, + { + .iv = 100, + .lvl = 38, + .species = SPECIES_GROWLITHE, + }, + { + .iv = 100, + .lvl = 35, + .species = SPECIES_EXEGGCUTE, + }, + { + .iv = 100, + .lvl = 35, + .species = SPECIES_ALAKAZAM, + }, + { + .iv = 150, + .lvl = 40, + .species = SPECIES_BLASTOISE, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823C8B0[] = { + { + .iv = 100, + .lvl = 37, + .species = SPECIES_PIDGEOT, + }, + { + .iv = 100, + .lvl = 38, + .species = SPECIES_GYARADOS, + }, + { + .iv = 100, + .lvl = 35, + .species = SPECIES_GROWLITHE, + }, + { + .iv = 100, + .lvl = 35, + .species = SPECIES_ALAKAZAM, + }, + { + .iv = 150, + .lvl = 40, + .species = SPECIES_VENUSAUR, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823C8D8[] = { + { + .iv = 100, + .lvl = 37, + .species = SPECIES_PIDGEOT, + }, + { + .iv = 100, + .lvl = 38, + .species = SPECIES_EXEGGCUTE, + }, + { + .iv = 100, + .lvl = 35, + .species = SPECIES_GYARADOS, + }, + { + .iv = 100, + .lvl = 35, + .species = SPECIES_ALAKAZAM, + }, + { + .iv = 150, + .lvl = 40, + .species = SPECIES_CHARIZARD, + }, +}; + +static const struct TrainerMonNoItemCustomMoves sTrainerMons_823C900[] = { + { + .iv = 150, + .lvl = 47, + .species = SPECIES_PIDGEOT, + .moves = {MOVE_FEATHER_DANCE, MOVE_WING_ATTACK, MOVE_GUST, MOVE_QUICK_ATTACK}, + }, + { + .iv = 150, + .lvl = 45, + .species = SPECIES_RHYHORN, + .moves = {MOVE_TAKE_DOWN, MOVE_HORN_DRILL, MOVE_ROCK_BLAST, MOVE_FURY_ATTACK}, + }, + { + .iv = 150, + .lvl = 45, + .species = SPECIES_GROWLITHE, + .moves = {MOVE_FLAME_WHEEL, MOVE_TAKE_DOWN, MOVE_LEER, MOVE_AGILITY}, + }, + { + .iv = 150, + .lvl = 45, + .species = SPECIES_EXEGGCUTE, + .moves = {MOVE_SOLAR_BEAM, MOVE_SLEEP_POWDER, MOVE_POISON_POWDER, MOVE_STUN_SPORE}, + }, + { + .iv = 150, + .lvl = 47, + .species = SPECIES_ALAKAZAM, + .moves = {MOVE_PSYCHIC, MOVE_CALM_MIND, MOVE_FUTURE_SIGHT, MOVE_DISABLE}, + }, + { + .iv = 250, + .lvl = 53, + .species = SPECIES_BLASTOISE, + .moves = {MOVE_WATER_GUN, MOVE_RAIN_DANCE, MOVE_BITE, MOVE_RAPID_SPIN}, + }, +}; + +static const struct TrainerMonNoItemCustomMoves sTrainerMons_823C960[] = { + { + .iv = 150, + .lvl = 47, + .species = SPECIES_PIDGEOT, + .moves = {MOVE_FEATHER_DANCE, MOVE_WING_ATTACK, MOVE_GUST, MOVE_QUICK_ATTACK}, + }, + { + .iv = 150, + .lvl = 45, + .species = SPECIES_RHYHORN, + .moves = {MOVE_TAKE_DOWN, MOVE_HORN_DRILL, MOVE_ROCK_BLAST, MOVE_FURY_ATTACK}, + }, + { + .iv = 150, + .lvl = 45, + .species = SPECIES_GYARADOS, + .moves = {MOVE_HYDRO_PUMP, MOVE_TWISTER, MOVE_LEER, MOVE_RAIN_DANCE}, + }, + { + .iv = 150, + .lvl = 45, + .species = SPECIES_GROWLITHE, + .moves = {MOVE_FLAME_WHEEL, MOVE_TAKE_DOWN, MOVE_LEER, MOVE_AGILITY}, + }, + { + .iv = 150, + .lvl = 47, + .species = SPECIES_ALAKAZAM, + .moves = {MOVE_PSYCHIC, MOVE_CALM_MIND, MOVE_FUTURE_SIGHT, MOVE_DISABLE}, + }, + { + .iv = 250, + .lvl = 53, + .species = SPECIES_VENUSAUR, + .moves = {MOVE_RAZOR_LEAF, MOVE_SWEET_SCENT, MOVE_GROWTH, MOVE_SYNTHESIS}, + }, +}; + +static const struct TrainerMonNoItemCustomMoves sTrainerMons_823C9C0[] = { + { + .iv = 150, + .lvl = 47, + .species = SPECIES_PIDGEOT, + .moves = {MOVE_FEATHER_DANCE, MOVE_WING_ATTACK, MOVE_GUST, MOVE_QUICK_ATTACK}, + }, + { + .iv = 150, + .lvl = 45, + .species = SPECIES_RHYHORN, + .moves = {MOVE_TAKE_DOWN, MOVE_HORN_DRILL, MOVE_ROCK_BLAST, MOVE_FURY_ATTACK}, + }, + { + .iv = 150, + .lvl = 45, + .species = SPECIES_EXEGGCUTE, + .moves = {MOVE_SOLAR_BEAM, MOVE_SLEEP_POWDER, MOVE_POISON_POWDER, MOVE_STUN_SPORE}, + }, + { + .iv = 150, + .lvl = 45, + .species = SPECIES_GYARADOS, + .moves = {MOVE_HYDRO_PUMP, MOVE_TWISTER, MOVE_LEER, MOVE_RAIN_DANCE}, + }, + { + .iv = 150, + .lvl = 47, + .species = SPECIES_ALAKAZAM, + .moves = {MOVE_PSYCHIC, MOVE_CALM_MIND, MOVE_FUTURE_SIGHT, MOVE_DISABLE}, + }, + { + .iv = 250, + .lvl = 53, + .species = SPECIES_CHARIZARD, + .moves = {MOVE_FLAMETHROWER, MOVE_WING_ATTACK, MOVE_SLASH, MOVE_SCARY_FACE}, + }, +}; + +static const struct TrainerMonItemCustomMoves sTrainerMons_823CA20[] = { + { + .iv = 255, + .lvl = 59, + .species = SPECIES_PIDGEOT, + .heldItem = ITEM_NONE, + .moves = {MOVE_AERIAL_ACE, MOVE_FEATHER_DANCE, MOVE_SAND_ATTACK, MOVE_WHIRLWIND}, + }, + { + .iv = 255, + .lvl = 57, + .species = SPECIES_ALAKAZAM, + .heldItem = ITEM_NONE, + .moves = {MOVE_PSYCHIC, MOVE_FUTURE_SIGHT, MOVE_RECOVER, MOVE_REFLECT}, + }, + { + .iv = 255, + .lvl = 59, + .species = SPECIES_RHYDON, + .heldItem = ITEM_NONE, + .moves = {MOVE_TAKE_DOWN, MOVE_EARTHQUAKE, MOVE_ROCK_TOMB, MOVE_SCARY_FACE}, + }, + { + .iv = 255, + .lvl = 59, + .species = SPECIES_ARCANINE, + .heldItem = ITEM_NONE, + .moves = {MOVE_EXTREME_SPEED, MOVE_FLAMETHROWER, MOVE_ROAR, MOVE_BITE}, + }, + { + .iv = 255, + .lvl = 61, + .species = SPECIES_EXEGGUTOR, + .heldItem = ITEM_NONE, + .moves = {MOVE_GIGA_DRAIN, MOVE_EGG_BOMB, MOVE_SLEEP_POWDER, MOVE_LIGHT_SCREEN}, + }, + { + .iv = 255, + .lvl = 63, + .species = SPECIES_BLASTOISE, + .heldItem = ITEM_SITRUS_BERRY, + .moves = {MOVE_HYDRO_PUMP, MOVE_RAIN_DANCE, MOVE_SKULL_BASH, MOVE_BITE}, + }, +}; + +static const struct TrainerMonItemCustomMoves sTrainerMons_823CA80[] = { + { + .iv = 255, + .lvl = 59, + .species = SPECIES_PIDGEOT, + .heldItem = ITEM_NONE, + .moves = {MOVE_AERIAL_ACE, MOVE_FEATHER_DANCE, MOVE_SAND_ATTACK, MOVE_WHIRLWIND}, + }, + { + .iv = 255, + .lvl = 57, + .species = SPECIES_ALAKAZAM, + .heldItem = ITEM_NONE, + .moves = {MOVE_PSYCHIC, MOVE_FUTURE_SIGHT, MOVE_RECOVER, MOVE_REFLECT}, + }, + { + .iv = 255, + .lvl = 59, + .species = SPECIES_RHYDON, + .heldItem = ITEM_NONE, + .moves = {MOVE_TAKE_DOWN, MOVE_EARTHQUAKE, MOVE_ROCK_TOMB, MOVE_SCARY_FACE}, + }, + { + .iv = 255, + .lvl = 59, + .species = SPECIES_GYARADOS, + .heldItem = ITEM_NONE, + .moves = {MOVE_HYDRO_PUMP, MOVE_DRAGON_RAGE, MOVE_BITE, MOVE_THRASH}, + }, + { + .iv = 255, + .lvl = 61, + .species = SPECIES_ARCANINE, + .heldItem = ITEM_NONE, + .moves = {MOVE_EXTREME_SPEED, MOVE_FLAMETHROWER, MOVE_ROAR, MOVE_BITE}, + }, + { + .iv = 255, + .lvl = 63, + .species = SPECIES_VENUSAUR, + .heldItem = ITEM_SITRUS_BERRY, + .moves = {MOVE_SOLAR_BEAM, MOVE_SYNTHESIS, MOVE_SUNNY_DAY, MOVE_GROWTH}, + }, +}; + +static const struct TrainerMonItemCustomMoves sTrainerMons_823CAE0[] = { + { + .iv = 255, + .lvl = 59, + .species = SPECIES_PIDGEOT, + .heldItem = ITEM_NONE, + .moves = {MOVE_AERIAL_ACE, MOVE_FEATHER_DANCE, MOVE_SAND_ATTACK, MOVE_WHIRLWIND}, + }, + { + .iv = 255, + .lvl = 57, + .species = SPECIES_ALAKAZAM, + .heldItem = ITEM_NONE, + .moves = {MOVE_PSYCHIC, MOVE_FUTURE_SIGHT, MOVE_RECOVER, MOVE_REFLECT}, + }, + { + .iv = 255, + .lvl = 59, + .species = SPECIES_RHYDON, + .heldItem = ITEM_NONE, + .moves = {MOVE_TAKE_DOWN, MOVE_EARTHQUAKE, MOVE_ROCK_TOMB, MOVE_SCARY_FACE}, + }, + { + .iv = 255, + .lvl = 59, + .species = SPECIES_EXEGGUTOR, + .heldItem = ITEM_NONE, + .moves = {MOVE_GIGA_DRAIN, MOVE_EGG_BOMB, MOVE_SLEEP_POWDER, MOVE_LIGHT_SCREEN}, + }, + { + .iv = 255, + .lvl = 61, + .species = SPECIES_GYARADOS, + .heldItem = ITEM_NONE, + .moves = {MOVE_HYDRO_PUMP, MOVE_DRAGON_RAGE, MOVE_BITE, MOVE_THRASH}, + }, + { + .iv = 255, + .lvl = 63, + .species = SPECIES_CHARIZARD, + .heldItem = ITEM_SITRUS_BERRY, + .moves = {MOVE_FIRE_BLAST, MOVE_AERIAL_ACE, MOVE_SLASH, MOVE_FIRE_SPIN}, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823CB40[] = { + { + .iv = 0, + .lvl = 22, + .species = SPECIES_GASTLY, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823CB48[] = { + { + .iv = 0, + .lvl = 24, + .species = SPECIES_GASTLY, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823CB50[] = { + { + .iv = 0, + .lvl = 23, + .species = SPECIES_GASTLY, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823CB58[] = { + { + .iv = 0, + .lvl = 24, + .species = SPECIES_GASTLY, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823CB60[] = { + { + .iv = 0, + .lvl = 23, + .species = SPECIES_GASTLY, + }, + { + .iv = 0, + .lvl = 23, + .species = SPECIES_GASTLY, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823CB70[] = { + { + .iv = 0, + .lvl = 22, + .species = SPECIES_GASTLY, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823CB78[] = { + { + .iv = 0, + .lvl = 23, + .species = SPECIES_HAUNTER, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823CB80[] = { + { + .iv = 0, + .lvl = 22, + .species = SPECIES_GASTLY, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823CB88[] = { + { + .iv = 0, + .lvl = 24, + .species = SPECIES_GASTLY, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823CB90[] = { + { + .iv = 0, + .lvl = 22, + .species = SPECIES_GASTLY, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823CB98[] = { + { + .iv = 0, + .lvl = 22, + .species = SPECIES_GASTLY, + }, + { + .iv = 0, + .lvl = 22, + .species = SPECIES_GASTLY, + }, + { + .iv = 0, + .lvl = 22, + .species = SPECIES_GASTLY, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823CBB0[] = { + { + .iv = 0, + .lvl = 24, + .species = SPECIES_GASTLY, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823CBB8[] = { + { + .iv = 0, + .lvl = 24, + .species = SPECIES_GASTLY, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823CBC0[] = { + { + .iv = 0, + .lvl = 23, + .species = SPECIES_HAUNTER, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823CBC8[] = { + { + .iv = 0, + .lvl = 24, + .species = SPECIES_GASTLY, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823CBD0[] = { + { + .iv = 0, + .lvl = 22, + .species = SPECIES_GASTLY, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823CBD8[] = { + { + .iv = 0, + .lvl = 24, + .species = SPECIES_GASTLY, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823CBE0[] = { + { + .iv = 0, + .lvl = 22, + .species = SPECIES_HAUNTER, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823CBE8[] = { + { + .iv = 0, + .lvl = 22, + .species = SPECIES_GASTLY, + }, + { + .iv = 0, + .lvl = 22, + .species = SPECIES_GASTLY, + }, + { + .iv = 0, + .lvl = 22, + .species = SPECIES_GASTLY, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823CC00[] = { + { + .iv = 0, + .lvl = 24, + .species = SPECIES_GASTLY, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823CC08[] = { + { + .iv = 0, + .lvl = 24, + .species = SPECIES_GASTLY, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823CC10[] = { + { + .iv = 0, + .lvl = 34, + .species = SPECIES_GASTLY, + }, + { + .iv = 0, + .lvl = 34, + .species = SPECIES_HAUNTER, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823CC20[] = { + { + .iv = 0, + .lvl = 38, + .species = SPECIES_HAUNTER, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823CC28[] = { + { + .iv = 0, + .lvl = 33, + .species = SPECIES_GASTLY, + }, + { + .iv = 0, + .lvl = 33, + .species = SPECIES_GASTLY, + }, + { + .iv = 0, + .lvl = 33, + .species = SPECIES_HAUNTER, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823CC40[] = { + { + .iv = 0, + .lvl = 20, + .species = SPECIES_MACHOP, + }, + { + .iv = 0, + .lvl = 20, + .species = SPECIES_ONIX, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823CC50[] = { + { + .iv = 0, + .lvl = 28, + .species = SPECIES_GOLDEEN, + }, + { + .iv = 0, + .lvl = 28, + .species = SPECIES_POLIWAG, + }, + { + .iv = 0, + .lvl = 28, + .species = SPECIES_HORSEA, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823CC68[] = { + { + .iv = 0, + .lvl = 24, + .species = SPECIES_PIDGEY, + }, + { + .iv = 0, + .lvl = 24, + .species = SPECIES_MEOWTH, + }, + { + .iv = 0, + .lvl = 24, + .species = SPECIES_RATTATA, + }, + { + .iv = 0, + .lvl = 24, + .species = SPECIES_PIKACHU, + }, + { + .iv = 0, + .lvl = 24, + .species = SPECIES_MEOWTH, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823CC90[] = { + { + .iv = 0, + .lvl = 30, + .species = SPECIES_POLIWAG, + }, + { + .iv = 0, + .lvl = 30, + .species = SPECIES_POLIWAG, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823CCA0[] = { + { + .iv = 0, + .lvl = 27, + .species = SPECIES_PIDGEY, + }, + { + .iv = 0, + .lvl = 27, + .species = SPECIES_MEOWTH, + }, + { + .iv = 0, + .lvl = 27, + .species = SPECIES_PIDGEY, + }, + { + .iv = 0, + .lvl = 27, + .species = SPECIES_PIDGEOTTO, + }, +}; + +static const struct TrainerMonNoItemCustomMoves sTrainerMons_823CCC0[] = { + { + .iv = 0, + .lvl = 28, + .species = SPECIES_WEEZING, + .moves = {MOVE_SMOKESCREEN, MOVE_SLUDGE, MOVE_SMOG, MOVE_TACKLE}, + }, + { + .iv = 0, + .lvl = 28, + .species = SPECIES_KOFFING, + .moves = {MOVE_SMOKESCREEN, MOVE_SLUDGE, MOVE_SMOG, MOVE_TACKLE}, + }, + { + .iv = 0, + .lvl = 28, + .species = SPECIES_WEEZING, + .moves = {MOVE_SMOKESCREEN, MOVE_SLUDGE, MOVE_SMOG, MOVE_TACKLE}, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823CCF0[] = { + { + .iv = 0, + .lvl = 14, + .species = SPECIES_RATTATA, + }, + { + .iv = 0, + .lvl = 14, + .species = SPECIES_EKANS, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823CD00[] = { + { + .iv = 0, + .lvl = 31, + .species = SPECIES_GOLDEEN, + }, + { + .iv = 0, + .lvl = 31, + .species = SPECIES_SEAKING, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823CD10[] = { + { + .iv = 0, + .lvl = 30, + .species = SPECIES_TENTACOOL, + }, + { + .iv = 0, + .lvl = 30, + .species = SPECIES_HORSEA, + }, + { + .iv = 0, + .lvl = 30, + .species = SPECIES_SEEL, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823CD28[] = { + { + .iv = 0, + .lvl = 20, + .species = SPECIES_MEOWTH, + }, + { + .iv = 0, + .lvl = 20, + .species = SPECIES_ODDISH, + }, + { + .iv = 0, + .lvl = 20, + .species = SPECIES_PIDGEY, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823CD40[] = { + { + .iv = 0, + .lvl = 19, + .species = SPECIES_PIDGEY, + }, + { + .iv = 0, + .lvl = 19, + .species = SPECIES_RATTATA, + }, + { + .iv = 0, + .lvl = 19, + .species = SPECIES_RATTATA, + }, + { + .iv = 0, + .lvl = 19, + .species = SPECIES_BELLSPROUT, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823CD60[] = { + { + .iv = 0, + .lvl = 22, + .species = SPECIES_BELLSPROUT, + }, + { + .iv = 0, + .lvl = 22, + .species = SPECIES_CLEFAIRY, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823CD70[] = { + { + .iv = 0, + .lvl = 29, + .species = SPECIES_NIDORAN_M, + }, + { + .iv = 0, + .lvl = 29, + .species = SPECIES_NIDORINO, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823CD80[] = { + { + .iv = 0, + .lvl = 29, + .species = SPECIES_BELLSPROUT, + }, + { + .iv = 0, + .lvl = 29, + .species = SPECIES_ODDISH, + }, + { + .iv = 0, + .lvl = 29, + .species = SPECIES_TANGELA, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823CD98[] = { + { + .iv = 0, + .lvl = 28, + .species = SPECIES_GLOOM, + }, + { + .iv = 0, + .lvl = 28, + .species = SPECIES_ODDISH, + }, + { + .iv = 0, + .lvl = 28, + .species = SPECIES_ODDISH, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823CDB0[] = { + { + .iv = 0, + .lvl = 29, + .species = SPECIES_PIKACHU, + }, + { + .iv = 0, + .lvl = 29, + .species = SPECIES_RAICHU, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823CDC0[] = { + { + .iv = 0, + .lvl = 33, + .species = SPECIES_CLEFAIRY, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823CDC8[] = { + { + .iv = 0, + .lvl = 23, + .species = SPECIES_PIKACHU, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823CDD0[] = { + { + .iv = 0, + .lvl = 17, + .species = SPECIES_GROWLITHE, + }, + { + .iv = 0, + .lvl = 17, + .species = SPECIES_PONYTA, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823CDE0[] = { + { + .iv = 0, + .lvl = 22, + .species = SPECIES_CLEFAIRY, + }, + { + .iv = 0, + .lvl = 22, + .species = SPECIES_JIGGLYPUFF, + }, +}; + +static const struct TrainerMonNoItemCustomMoves sTrainerMons_823CDF0[] = { + { + .iv = 100, + .lvl = 45, + .species = SPECIES_NIDOQUEEN, + .moves = {MOVE_SUPERPOWER, MOVE_BODY_SLAM, MOVE_DOUBLE_KICK, MOVE_POISON_STING}, + }, + { + .iv = 100, + .lvl = 45, + .species = SPECIES_NIDOKING, + .moves = {MOVE_MEGAHORN, MOVE_THRASH, MOVE_DOUBLE_KICK, MOVE_POISON_STING}, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823CE10[] = { + { + .iv = 0, + .lvl = 24, + .species = SPECIES_NIDORAN_M, + }, + { + .iv = 0, + .lvl = 24, + .species = SPECIES_NIDORAN_F, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823CE20[] = { + { + .iv = 0, + .lvl = 29, + .species = SPECIES_CHARMANDER, + }, + { + .iv = 0, + .lvl = 29, + .species = SPECIES_SQUIRTLE, + }, +}; + +static const struct TrainerMonItemDefaultMoves sTrainerMons_823CE30[] = { + { + .iv = 50, + .lvl = 29, + .species = SPECIES_HITMONCHAN, + .heldItem = ITEM_BLACK_BELT, + }, + { + .iv = 50, + .lvl = 29, + .species = SPECIES_HITMONLEE, + .heldItem = ITEM_BLACK_BELT, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823CE40[] = { + { + .iv = 0, + .lvl = 29, + .species = SPECIES_RAPIDASH, + }, + { + .iv = 0, + .lvl = 29, + .species = SPECIES_NINETALES, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823CE50[] = { + { + .iv = 0, + .lvl = 30, + .species = SPECIES_GOLDEEN, + }, + { + .iv = 0, + .lvl = 30, + .species = SPECIES_SEAKING, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823CE60[] = { + { + .iv = 0, + .lvl = 33, + .species = SPECIES_SEADRA, + }, + { + .iv = 0, + .lvl = 33, + .species = SPECIES_STARMIE, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823CE70[] = { + { + .iv = 0, + .lvl = 5, + .species = SPECIES_EKANS, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823CE78[] = { + { + .iv = 0, + .lvl = 5, + .species = SPECIES_EKANS, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823CE80[] = { + { + .iv = 0, + .lvl = 5, + .species = SPECIES_EKANS, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823CE88[] = { + { + .iv = 0, + .lvl = 5, + .species = SPECIES_EKANS, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823CE90[] = { + { + .iv = 0, + .lvl = 5, + .species = SPECIES_EKANS, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823CE98[] = { + { + .iv = 0, + .lvl = 5, + .species = SPECIES_EKANS, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823CEA0[] = { + { + .iv = 60, + .lvl = 28, + .species = SPECIES_RATICATE, + }, + { + .iv = 60, + .lvl = 28, + .species = SPECIES_EKANS, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823CEB0[] = { + { + .iv = 120, + .lvl = 48, + .species = SPECIES_RATICATE, + }, + { + .iv = 120, + .lvl = 48, + .species = SPECIES_ARBOK, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823CEC0[] = { + { + .iv = 20, + .lvl = 20, + .species = SPECIES_EKANS, + }, + { + .iv = 20, + .lvl = 20, + .species = SPECIES_SANDSHREW, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823CED0[] = { + { + .iv = 20, + .lvl = 20, + .species = SPECIES_PIDGEY, + }, + { + .iv = 20, + .lvl = 20, + .species = SPECIES_NIDORAN_F, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823CEE0[] = { + { + .iv = 60, + .lvl = 28, + .species = SPECIES_PIDGEOTTO, + }, + { + .iv = 60, + .lvl = 28, + .species = SPECIES_NIDORINA, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823CEF0[] = { + { + .iv = 20, + .lvl = 19, + .species = SPECIES_RATICATE, + }, + { + .iv = 20, + .lvl = 19, + .species = SPECIES_EKANS, + }, + { + .iv = 20, + .lvl = 19, + .species = SPECIES_ZUBAT, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823CF08[] = { + { + .iv = 60, + .lvl = 27, + .species = SPECIES_RATICATE, + }, + { + .iv = 60, + .lvl = 27, + .species = SPECIES_EKANS, + }, + { + .iv = 60, + .lvl = 27, + .species = SPECIES_GOLBAT, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823CF20[] = { + { + .iv = 120, + .lvl = 52, + .species = SPECIES_RATICATE, + }, + { + .iv = 120, + .lvl = 52, + .species = SPECIES_ARBOK, + }, + { + .iv = 120, + .lvl = 52, + .species = SPECIES_GOLBAT, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823CF38[] = { + { + .iv = 60, + .lvl = 28, + .species = SPECIES_ARBOK, + }, + { + .iv = 60, + .lvl = 28, + .species = SPECIES_SANDSHREW, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823CF48[] = { + { + .iv = 20, + .lvl = 20, + .species = SPECIES_PIDGEOTTO, + }, + { + .iv = 20, + .lvl = 20, + .species = SPECIES_PIDGEOTTO, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823CF58[] = { + { + .iv = 60, + .lvl = 28, + .species = SPECIES_PIDGEOTTO, + }, + { + .iv = 60, + .lvl = 28, + .species = SPECIES_PIDGEOTTO, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823CF68[] = { + { + .iv = 80, + .lvl = 48, + .species = SPECIES_ARBOK, + }, + { + .iv = 80, + .lvl = 48, + .species = SPECIES_SANDSLASH, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823CF78[] = { + { + .iv = 40, + .lvl = 25, + .species = SPECIES_MACHOKE, + }, + { + .iv = 40, + .lvl = 25, + .species = SPECIES_GRAVELER, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823CF88[] = { + { + .iv = 0, + .lvl = 5, + .species = SPECIES_EKANS, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823CF90[] = { + { + .iv = 0, + .lvl = 5, + .species = SPECIES_EKANS, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823CF98[] = { + { + .iv = 0, + .lvl = 5, + .species = SPECIES_EKANS, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823CFA0[] = { + { + .iv = 0, + .lvl = 5, + .species = SPECIES_EKANS, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823CFA8[] = { + { + .iv = 0, + .lvl = 5, + .species = SPECIES_EKANS, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823CFB0[] = { + { + .iv = 0, + .lvl = 49, + .species = SPECIES_HOUNDOUR, + }, + { + .iv = 0, + .lvl = 49, + .species = SPECIES_HOUNDOUR, + }, +}; + +static const struct TrainerMonNoItemCustomMoves sTrainerMons_823CFC0[] = { + { + .iv = 100, + .lvl = 48, + .species = SPECIES_NATU, + .moves = {MOVE_NIGHT_SHADE, MOVE_CONFUSE_RAY, MOVE_FUTURE_SIGHT, MOVE_WISH}, + }, + { + .iv = 100, + .lvl = 48, + .species = SPECIES_SLOWBRO, + .moves = {MOVE_PSYCHIC, MOVE_HEADBUTT, MOVE_AMNESIA, MOVE_YAWN}, + }, + { + .iv = 100, + .lvl = 49, + .species = SPECIES_KADABRA, + .moves = {MOVE_PSYCHIC, MOVE_FUTURE_SIGHT, MOVE_RECOVER, MOVE_REFLECT}, + }, +}; + +static const struct TrainerMonItemDefaultMoves sTrainerMons_823CFF0[] = { + { + .iv = 50, + .lvl = 37, + .species = SPECIES_MANKEY, + .heldItem = ITEM_BLACK_BELT, + }, + { + .iv = 50, + .lvl = 37, + .species = SPECIES_PRIMEAPE, + .heldItem = ITEM_BLACK_BELT, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823D000[] = { + { + .iv = 0, + .lvl = 34, + .species = SPECIES_POLIWAG, + }, + { + .iv = 0, + .lvl = 35, + .species = SPECIES_POLIWHIRL, + }, + { + .iv = 0, + .lvl = 34, + .species = SPECIES_POLIWAG, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823D018[] = { + { + .iv = 30, + .lvl = 48, + .species = SPECIES_PIKACHU, + }, + { + .iv = 30, + .lvl = 48, + .species = SPECIES_CLEFAIRY, + }, + { + .iv = 30, + .lvl = 48, + .species = SPECIES_MARILL, + }, +}; + +static const struct TrainerMonNoItemCustomMoves sTrainerMons_823D030[] = { + { + .iv = 100, + .lvl = 51, + .species = SPECIES_WEEPINBELL, + .moves = {MOVE_RAZOR_LEAF, MOVE_ACID, MOVE_SWEET_SCENT, MOVE_WRAP}, + }, + { + .iv = 100, + .lvl = 51, + .species = SPECIES_VICTREEBEL, + .moves = {MOVE_RAZOR_LEAF, MOVE_ACID, MOVE_SLEEP_POWDER, MOVE_STUN_SPORE}, + }, +}; + +static const struct TrainerMonNoItemCustomMoves sTrainerMons_823D050[] = { + { + .iv = 100, + .lvl = 51, + .species = SPECIES_GLOOM, + .moves = {MOVE_PETAL_DANCE, MOVE_ACID, MOVE_SWEET_SCENT, MOVE_POISON_POWDER}, + }, + { + .iv = 100, + .lvl = 51, + .species = SPECIES_VILEPLUME, + .moves = {MOVE_PETAL_DANCE, MOVE_MOONLIGHT, MOVE_ACID, MOVE_STUN_SPORE}, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823D070[] = { + { + .iv = 0, + .lvl = 37, + .species = SPECIES_BELLSPROUT, + }, + { + .iv = 0, + .lvl = 37, + .species = SPECIES_WEEPINBELL, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823D080[] = { + { + .iv = 0, + .lvl = 48, + .species = SPECIES_GRAVELER, + }, + { + .iv = 0, + .lvl = 48, + .species = SPECIES_ONIX, + }, + { + .iv = 0, + .lvl = 48, + .species = SPECIES_GRAVELER, + }, +}; + +static const struct TrainerMonItemDefaultMoves sTrainerMons_823D098[] = { + { + .iv = 0, + .lvl = 48, + .species = SPECIES_HOPPIP, + .heldItem = ITEM_STARDUST, + }, + { + .iv = 0, + .lvl = 50, + .species = SPECIES_SKIPLOOM, + .heldItem = ITEM_STARDUST, + }, +}; + +static const struct TrainerMonNoItemCustomMoves sTrainerMons_823D0A8[] = { + { + .iv = 50, + .lvl = 50, + .species = SPECIES_SMEARGLE, + .moves = {MOVE_DYNAMIC_PUNCH, MOVE_DIZZY_PUNCH, MOVE_FOCUS_PUNCH, MOVE_MEGA_PUNCH}, + }, +}; + +static const struct TrainerMonNoItemCustomMoves sTrainerMons_823D0B8[] = { + { + .iv = 0, + .lvl = 37, + .species = SPECIES_KOFFING, + .moves = {MOVE_HAZE, MOVE_SMOKESCREEN, MOVE_SLUDGE, MOVE_TACKLE}, + }, + { + .iv = 0, + .lvl = 37, + .species = SPECIES_GRIMER, + .moves = {MOVE_ACID_ARMOR, MOVE_SCREECH, MOVE_MINIMIZE, MOVE_SLUDGE}, + }, +}; + +static const struct TrainerMonNoItemCustomMoves sTrainerMons_823D0D8[] = { + { + .iv = 0, + .lvl = 38, + .species = SPECIES_KOFFING, + .moves = {MOVE_HAZE, MOVE_SMOKESCREEN, MOVE_SLUDGE, MOVE_TACKLE}, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823D0E8[] = { + { + .iv = 0, + .lvl = 38, + .species = SPECIES_GRIMER, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823D0F0[] = { + { + .iv = 0, + .lvl = 5, + .species = SPECIES_EKANS, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823D0F8[] = { + { + .iv = 0, + .lvl = 7, + .species = SPECIES_CATERPIE, + }, + { + .iv = 0, + .lvl = 8, + .species = SPECIES_CATERPIE, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823D108[] = { + { + .iv = 0, + .lvl = 7, + .species = SPECIES_METAPOD, + }, + { + .iv = 0, + .lvl = 7, + .species = SPECIES_CATERPIE, + }, + { + .iv = 0, + .lvl = 7, + .species = SPECIES_METAPOD, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823D120[] = { + { + .iv = 60, + .lvl = 28, + .species = SPECIES_CLEFAIRY, + }, + { + .iv = 60, + .lvl = 28, + .species = SPECIES_JIGGLYPUFF, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823D130[] = { + { + .iv = 0, + .lvl = 33, + .species = SPECIES_EKANS, + }, + { + .iv = 0, + .lvl = 33, + .species = SPECIES_EKANS, + }, + { + .iv = 0, + .lvl = 34, + .species = SPECIES_RATICATE, + }, +}; + +static const struct TrainerMonNoItemCustomMoves sTrainerMons_823D148[] = { + { + .iv = 0, + .lvl = 22, + .species = SPECIES_KOFFING, + .moves = {MOVE_SLUDGE, MOVE_SMOG, MOVE_TACKLE, MOVE_POISON_GAS}, + }, + { + .iv = 0, + .lvl = 22, + .species = SPECIES_KOFFING, + .moves = {MOVE_SLUDGE, MOVE_SMOG, MOVE_TACKLE, MOVE_POISON_GAS}, + }, + { + .iv = 0, + .lvl = 23, + .species = SPECIES_GRIMER, + .moves = {MOVE_MINIMIZE, MOVE_SLUDGE, MOVE_DISABLE, MOVE_POUND}, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823D178[] = { + { + .iv = 0, + .lvl = 24, + .species = SPECIES_GRIMER, + }, + { + .iv = 0, + .lvl = 24, + .species = SPECIES_GRIMER, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823D188[] = { + { + .iv = 0, + .lvl = 37, + .species = SPECIES_CUBONE, + }, + { + .iv = 0, + .lvl = 37, + .species = SPECIES_MAROWAK, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823D198[] = { + { + .iv = 0, + .lvl = 35, + .species = SPECIES_RATTATA, + }, + { + .iv = 0, + .lvl = 35, + .species = SPECIES_RATICATE, + }, + { + .iv = 0, + .lvl = 35, + .species = SPECIES_SANDSHREW, + }, + { + .iv = 0, + .lvl = 35, + .species = SPECIES_SANDSLASH, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823D1B8[] = { + { + .iv = 0, + .lvl = 38, + .species = SPECIES_ZUBAT, + }, + { + .iv = 0, + .lvl = 38, + .species = SPECIES_ZUBAT, + }, + { + .iv = 0, + .lvl = 38, + .species = SPECIES_GOLBAT, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823D1D0[] = { + { + .iv = 0, + .lvl = 48, + .species = SPECIES_MUK, + }, + { + .iv = 0, + .lvl = 48, + .species = SPECIES_GOLBAT, + }, + { + .iv = 0, + .lvl = 48, + .species = SPECIES_RATICATE, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823D1E8[] = { + { + .iv = 0, + .lvl = 48, + .species = SPECIES_MACHOP, + }, + { + .iv = 0, + .lvl = 48, + .species = SPECIES_MACHOP, + }, + { + .iv = 0, + .lvl = 48, + .species = SPECIES_MACHOKE, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823D200[] = { + { + .iv = 0, + .lvl = 49, + .species = SPECIES_HYPNO, + }, + { + .iv = 0, + .lvl = 49, + .species = SPECIES_HYPNO, + }, +}; + +static const struct TrainerMonNoItemCustomMoves sTrainerMons_823D210[] = { + { + .iv = 150, + .lvl = 52, + .species = SPECIES_MUK, + .moves = {MOVE_SLUDGE_BOMB, MOVE_SCREECH, MOVE_MINIMIZE, MOVE_ROCK_TOMB}, + }, + { + .iv = 150, + .lvl = 53, + .species = SPECIES_ARBOK, + .moves = {MOVE_SLUDGE_BOMB, MOVE_BITE, MOVE_EARTHQUAKE, MOVE_IRON_TAIL}, + }, + { + .iv = 150, + .lvl = 54, + .species = SPECIES_VILEPLUME, + .moves = {MOVE_SLUDGE_BOMB, MOVE_GIGA_DRAIN, MOVE_SLEEP_POWDER, MOVE_STUN_SPORE}, + }, +}; + +static const struct TrainerMonNoItemCustomMoves sTrainerMons_823D240[] = { + { + .iv = 200, + .lvl = 53, + .species = SPECIES_GOLBAT, + .moves = {MOVE_CONFUSE_RAY, MOVE_SLUDGE_BOMB, MOVE_AIR_CUTTER, MOVE_SHADOW_BALL}, + }, + { + .iv = 200, + .lvl = 54, + .species = SPECIES_WEEZING, + .moves = {MOVE_SLUDGE_BOMB, MOVE_THUNDERBOLT, MOVE_EXPLOSION, MOVE_SHADOW_BALL}, + }, + { + .iv = 200, + .lvl = 55, + .species = SPECIES_HOUNDOOM, + .moves = {MOVE_FLAMETHROWER, MOVE_CRUNCH, MOVE_IRON_TAIL, MOVE_SHADOW_BALL}, + }, +}; + +static const struct TrainerMonNoItemCustomMoves sTrainerMons_823D270[] = { + { + .iv = 0, + .lvl = 46, + .species = SPECIES_VOLTORB, + .moves = {MOVE_SWIFT, MOVE_SCREECH, MOVE_SPARK, MOVE_SONIC_BOOM}, + }, + { + .iv = 0, + .lvl = 46, + .species = SPECIES_ELECTRODE, + .moves = {MOVE_SPARK, MOVE_SONIC_BOOM, MOVE_SCREECH, MOVE_CHARGE}, + }, + { + .iv = 0, + .lvl = 46, + .species = SPECIES_MAGNEMITE, + .moves = {MOVE_SCREECH, MOVE_SWIFT, MOVE_SPARK, MOVE_THUNDER_WAVE}, + }, + { + .iv = 0, + .lvl = 46, + .species = SPECIES_MAGNETON, + .moves = {MOVE_TRI_ATTACK, MOVE_SPARK, MOVE_THUNDER_WAVE, MOVE_SONIC_BOOM}, + }, + { + .iv = 0, + .lvl = 46, + .species = SPECIES_PORYGON, + .moves = {MOVE_TRI_ATTACK, MOVE_CONVERSION, MOVE_RECOVER, MOVE_PSYBEAM}, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823D2C0[] = { + { + .iv = 0, + .lvl = 36, + .species = SPECIES_SEEL, + }, + { + .iv = 0, + .lvl = 36, + .species = SPECIES_SEEL, + }, + { + .iv = 0, + .lvl = 36, + .species = SPECIES_DEWGONG, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823D2D8[] = { + { + .iv = 0, + .lvl = 37, + .species = SPECIES_SEADRA, + }, + { + .iv = 0, + .lvl = 37, + .species = SPECIES_SEADRA, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823D2E8[] = { + { + .iv = 0, + .lvl = 35, + .species = SPECIES_PSYDUCK, + }, + { + .iv = 0, + .lvl = 36, + .species = SPECIES_PSYDUCK, + }, + { + .iv = 0, + .lvl = 37, + .species = SPECIES_GOLDUCK, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823D300[] = { + { + .iv = 0, + .lvl = 38, + .species = SPECIES_STARMIE, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823D308[] = { + { + .iv = 0, + .lvl = 35, + .species = SPECIES_SHELLDER, + }, + { + .iv = 0, + .lvl = 35, + .species = SPECIES_CLOYSTER, + }, + { + .iv = 0, + .lvl = 38, + .species = SPECIES_WARTORTLE, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823D320[] = { + { + .iv = 0, + .lvl = 33, + .species = SPECIES_GOLDEEN, + }, + { + .iv = 0, + .lvl = 33, + .species = SPECIES_GOLDEEN, + }, + { + .iv = 0, + .lvl = 35, + .species = SPECIES_SEAKING, + }, + { + .iv = 0, + .lvl = 35, + .species = SPECIES_SEAKING, + }, + { + .iv = 0, + .lvl = 35, + .species = SPECIES_SEAKING, + }, +}; + +static const struct TrainerMonItemDefaultMoves sTrainerMons_823D348[] = { + { + .iv = 50, + .lvl = 38, + .species = SPECIES_HITMONLEE, + .heldItem = ITEM_BLACK_BELT, + }, + { + .iv = 50, + .lvl = 38, + .species = SPECIES_HITMONCHAN, + .heldItem = ITEM_BLACK_BELT, + }, +}; + +static const struct TrainerMonItemDefaultMoves sTrainerMons_823D358[] = { + { + .iv = 100, + .lvl = 38, + .species = SPECIES_MACHOP, + .heldItem = ITEM_BLACK_BELT, + }, + { + .iv = 100, + .lvl = 38, + .species = SPECIES_MACHOKE, + .heldItem = ITEM_BLACK_BELT, + }, +}; + +static const struct TrainerMonItemDefaultMoves sTrainerMons_823D368[] = { + { + .iv = 100, + .lvl = 37, + .species = SPECIES_MACHOP, + .heldItem = ITEM_BLACK_BELT, + }, + { + .iv = 100, + .lvl = 37, + .species = SPECIES_MACHOKE, + .heldItem = ITEM_BLACK_BELT, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823D378[] = { + { + .iv = 0, + .lvl = 36, + .species = SPECIES_NIDORINO, + }, + { + .iv = 0, + .lvl = 36, + .species = SPECIES_RATICATE, + }, + { + .iv = 0, + .lvl = 36, + .species = SPECIES_SANDSLASH, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823D390[] = { + { + .iv = 0, + .lvl = 35, + .species = SPECIES_MEOWTH, + }, + { + .iv = 0, + .lvl = 35, + .species = SPECIES_MEOWTH, + }, + { + .iv = 0, + .lvl = 35, + .species = SPECIES_PIKACHU, + }, + { + .iv = 0, + .lvl = 35, + .species = SPECIES_CLEFAIRY, + }, +}; + +static const struct TrainerMonItemDefaultMoves sTrainerMons_823D3B0[] = { + { + .iv = 50, + .lvl = 39, + .species = SPECIES_MACHOKE, + .heldItem = ITEM_BLACK_BELT, + }, + { + .iv = 50, + .lvl = 39, + .species = SPECIES_PRIMEAPE, + .heldItem = ITEM_BLACK_BELT, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823D3C0[] = { + { + .iv = 0, + .lvl = 36, + .species = SPECIES_BULBASAUR, + }, + { + .iv = 0, + .lvl = 36, + .species = SPECIES_IVYSAUR, + }, + { + .iv = 0, + .lvl = 36, + .species = SPECIES_IVYSAUR, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823D3D8[] = { + { + .iv = 0, + .lvl = 34, + .species = SPECIES_STARYU, + }, + { + .iv = 0, + .lvl = 34, + .species = SPECIES_STARYU, + }, + { + .iv = 0, + .lvl = 34, + .species = SPECIES_KRABBY, + }, + { + .iv = 0, + .lvl = 34, + .species = SPECIES_KRABBY, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823D3F8[] = { + { + .iv = 0, + .lvl = 37, + .species = SPECIES_CLEFAIRY, + }, + { + .iv = 0, + .lvl = 37, + .species = SPECIES_CLEFAIRY, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823D408[] = { + { + .iv = 0, + .lvl = 38, + .species = SPECIES_KINGLER, + }, +}; + +static const struct TrainerMonNoItemCustomMoves sTrainerMons_823D410[] = { + { + .iv = 50, + .lvl = 50, + .species = SPECIES_SMEARGLE, + .moves = {MOVE_FLY, MOVE_DIG, MOVE_DIVE, MOVE_BOUNCE}, + }, +}; + +static const struct TrainerMonNoItemCustomMoves sTrainerMons_823D420[] = { + { + .iv = 50, + .lvl = 50, + .species = SPECIES_SMEARGLE, + .moves = {MOVE_CROSS_CHOP, MOVE_MEGAHORN, MOVE_DOUBLE_EDGE, MOVE_SELF_DESTRUCT}, + }, +}; + +static const struct TrainerMonItemDefaultMoves sTrainerMons_823D430[] = { + { + .iv = 0, + .lvl = 47, + .species = SPECIES_MAREEP, + .heldItem = ITEM_STARDUST, + }, + { + .iv = 0, + .lvl = 48, + .species = SPECIES_MAREEP, + .heldItem = ITEM_STARDUST, + }, + { + .iv = 0, + .lvl = 49, + .species = SPECIES_FLAAFFY, + .heldItem = ITEM_NUGGET, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823D448[] = { + { + .iv = 0, + .lvl = 48, + .species = SPECIES_RATICATE, + }, + { + .iv = 0, + .lvl = 48, + .species = SPECIES_PIDGEOTTO, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823D458[] = { + { + .iv = 0, + .lvl = 48, + .species = SPECIES_POLIWHIRL, + }, + { + .iv = 0, + .lvl = 48, + .species = SPECIES_TENTACOOL, + }, + { + .iv = 0, + .lvl = 48, + .species = SPECIES_TENTACRUEL, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823D470[] = { + { + .iv = 0, + .lvl = 48, + .species = SPECIES_RATTATA, + }, + { + .iv = 0, + .lvl = 48, + .species = SPECIES_GRIMER, + }, + { + .iv = 0, + .lvl = 48, + .species = SPECIES_MUK, + }, +}; + +static const struct TrainerMonNoItemCustomMoves sTrainerMons_823D488[] = { + { + .iv = 0, + .lvl = 49, + .species = SPECIES_KOFFING, + .moves = {MOVE_MEMENTO, MOVE_HAZE, MOVE_SMOKESCREEN, MOVE_SLUDGE}, + }, + { + .iv = 0, + .lvl = 49, + .species = SPECIES_WEEZING, + .moves = {MOVE_HAZE, MOVE_SMOKESCREEN, MOVE_SLUDGE, MOVE_SELF_DESTRUCT}, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823D4A8[] = { + { + .iv = 50, + .lvl = 48, + .species = SPECIES_EKANS, + }, + { + .iv = 50, + .lvl = 48, + .species = SPECIES_GLOOM, + }, + { + .iv = 50, + .lvl = 48, + .species = SPECIES_GLOOM, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823D4C0[] = { + { + .iv = 0, + .lvl = 47, + .species = SPECIES_PIDGEY, + }, + { + .iv = 0, + .lvl = 49, + .species = SPECIES_PIDGEOTTO, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823D4D0[] = { + { + .iv = 0, + .lvl = 47, + .species = SPECIES_SPEAROW, + }, + { + .iv = 0, + .lvl = 49, + .species = SPECIES_FEAROW, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823D4E0[] = { + { + .iv = 0, + .lvl = 47, + .species = SPECIES_HOOTHOOT, + }, + { + .iv = 0, + .lvl = 49, + .species = SPECIES_NOCTOWL, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823D4F0[] = { + { + .iv = 0, + .lvl = 49, + .species = SPECIES_QWILFISH, + }, + { + .iv = 0, + .lvl = 49, + .species = SPECIES_QWILFISH, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823D500[] = { + { + .iv = 0, + .lvl = 49, + .species = SPECIES_KINGLER, + }, + { + .iv = 0, + .lvl = 49, + .species = SPECIES_WARTORTLE, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823D510[] = { + { + .iv = 0, + .lvl = 50, + .species = SPECIES_MARILL, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823D518[] = { + { + .iv = 0, + .lvl = 50, + .species = SPECIES_POLIWHIRL, + }, + { + .iv = 0, + .lvl = 50, + .species = SPECIES_STARMIE, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823D528[] = { + { + .iv = 0, + .lvl = 49, + .species = SPECIES_SUNKERN, + }, + { + .iv = 0, + .lvl = 49, + .species = SPECIES_SUNFLORA, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823D538[] = { + { + .iv = 0, + .lvl = 50, + .species = SPECIES_GYARADOS, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823D540[] = { + { + .iv = 0, + .lvl = 49, + .species = SPECIES_CHINCHOU, + }, + { + .iv = 0, + .lvl = 49, + .species = SPECIES_LANTURN, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823D550[] = { + { + .iv = 0, + .lvl = 50, + .species = SPECIES_PIKACHU, + }, + { + .iv = 0, + .lvl = 50, + .species = SPECIES_PIKACHU, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823D560[] = { + { + .iv = 0, + .lvl = 49, + .species = SPECIES_ONIX, + }, + { + .iv = 0, + .lvl = 49, + .species = SPECIES_MACHOKE, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823D570[] = { + { + .iv = 0, + .lvl = 50, + .species = SPECIES_GOLEM, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823D578[] = { + { + .iv = 0, + .lvl = 49, + .species = SPECIES_MACHOKE, + }, + { + .iv = 0, + .lvl = 49, + .species = SPECIES_MACHOKE, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823D588[] = { + { + .iv = 0, + .lvl = 50, + .species = SPECIES_SUDOWOODO, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823D590[] = { + { + .iv = 30, + .lvl = 49, + .species = SPECIES_RHYHORN, + }, + { + .iv = 30, + .lvl = 49, + .species = SPECIES_KANGASKHAN, + }, +}; + +static const struct TrainerMonNoItemCustomMoves sTrainerMons_823D5A0[] = { + { + .iv = 100, + .lvl = 52, + .species = SPECIES_GIRAFARIG, + .moves = {MOVE_CRUNCH, MOVE_PSYBEAM, MOVE_ODOR_SLEUTH, MOVE_AGILITY}, + }, +}; + +static const struct TrainerMonNoItemCustomMoves sTrainerMons_823D5B0[] = { + { + .iv = 100, + .lvl = 48, + .species = SPECIES_NATU, + .moves = {MOVE_NIGHT_SHADE, MOVE_CONFUSE_RAY, MOVE_WISH, MOVE_FUTURE_SIGHT}, + }, + { + .iv = 100, + .lvl = 48, + .species = SPECIES_DROWZEE, + .moves = {MOVE_PSYCHIC, MOVE_DISABLE, MOVE_PSYCH_UP, MOVE_FUTURE_SIGHT}, + }, + { + .iv = 100, + .lvl = 50, + .species = SPECIES_HYPNO, + .moves = {MOVE_PSYCHIC, MOVE_HYPNOSIS, MOVE_PSYCH_UP, MOVE_FUTURE_SIGHT}, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823D5E0[] = { + { + .iv = 0, + .lvl = 50, + .species = SPECIES_BELLOSSOM, + }, + { + .iv = 0, + .lvl = 50, + .species = SPECIES_BELLOSSOM, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823D5F0[] = { + { + .iv = 0, + .lvl = 50, + .species = SPECIES_GOLDUCK, + }, + { + .iv = 0, + .lvl = 50, + .species = SPECIES_PSYDUCK, + }, +}; + +static const struct TrainerMonNoItemCustomMoves sTrainerMons_823D600[] = { + { + .iv = 0, + .lvl = 47, + .species = SPECIES_VOLTORB, + .moves = {MOVE_SWIFT, MOVE_LIGHT_SCREEN, MOVE_SPARK, MOVE_SONIC_BOOM}, + }, + { + .iv = 0, + .lvl = 47, + .species = SPECIES_PINECO, + .moves = {MOVE_SPIKES, MOVE_BIDE, MOVE_RAPID_SPIN, MOVE_TAKE_DOWN}, + }, + { + .iv = 0, + .lvl = 47, + .species = SPECIES_VOLTORB, + .moves = {MOVE_SWIFT, MOVE_LIGHT_SCREEN, MOVE_SPARK, MOVE_SONIC_BOOM}, + }, + { + .iv = 0, + .lvl = 47, + .species = SPECIES_PINECO, + .moves = {MOVE_SPIKES, MOVE_BIDE, MOVE_RAPID_SPIN, MOVE_EXPLOSION}, + }, +}; + +static const struct TrainerMonItemDefaultMoves sTrainerMons_823D640[] = { + { + .iv = 50, + .lvl = 48, + .species = SPECIES_PRIMEAPE, + .heldItem = ITEM_BLACK_BELT, + }, + { + .iv = 50, + .lvl = 48, + .species = SPECIES_HITMONTOP, + .heldItem = ITEM_BLACK_BELT, + }, + { + .iv = 50, + .lvl = 48, + .species = SPECIES_MACHOKE, + .heldItem = ITEM_BLACK_BELT, + }, +}; + +static const struct TrainerMonItemDefaultMoves sTrainerMons_823D658[] = { + { + .iv = 50, + .lvl = 38, + .species = SPECIES_HITMONCHAN, + .heldItem = ITEM_BLACK_BELT, + }, + { + .iv = 50, + .lvl = 38, + .species = SPECIES_HITMONCHAN, + .heldItem = ITEM_BLACK_BELT, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823D668[] = { + { + .iv = 40, + .lvl = 48, + .species = SPECIES_SANDSLASH, + }, + { + .iv = 40, + .lvl = 48, + .species = SPECIES_LICKITUNG, + }, + { + .iv = 40, + .lvl = 49, + .species = SPECIES_URSARING, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823D680[] = { + { + .iv = 90, + .lvl = 33, + .species = SPECIES_RHYHORN, + }, + { + .iv = 90, + .lvl = 33, + .species = SPECIES_LICKITUNG, + }, +}; + +static const struct TrainerMonNoItemCustomMoves sTrainerMons_823D690[] = { + { + .iv = 100, + .lvl = 37, + .species = SPECIES_EXEGGCUTE, + .moves = {MOVE_SLEEP_POWDER, MOVE_POISON_POWDER, MOVE_STUN_SPORE, MOVE_CONFUSION}, + }, + { + .iv = 100, + .lvl = 40, + .species = SPECIES_EXEGGUTOR, + .moves = {MOVE_EGG_BOMB, MOVE_STOMP, MOVE_CONFUSION, MOVE_HYPNOSIS}, + }, +}; + +static const struct TrainerMonNoItemCustomMoves sTrainerMons_823D6B0[] = { + { + .iv = 100, + .lvl = 49, + .species = SPECIES_TANGELA, + .moves = {MOVE_SLAM, MOVE_MEGA_DRAIN, MOVE_BIND, MOVE_INGRAIN}, + }, + { + .iv = 100, + .lvl = 49, + .species = SPECIES_EXEGGCUTE, + .moves = {MOVE_CONFUSION, MOVE_POISON_POWDER, MOVE_BARRAGE, MOVE_REFLECT}, + }, + { + .iv = 100, + .lvl = 49, + .species = SPECIES_EXEGGUTOR, + .moves = {MOVE_CONFUSION, MOVE_EGG_BOMB, MOVE_SLEEP_POWDER, MOVE_STOMP}, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823D6E0[] = { + { + .iv = 100, + .lvl = 38, + .species = SPECIES_BELLSPROUT, + }, + { + .iv = 100, + .lvl = 38, + .species = SPECIES_GLOOM, + }, + { + .iv = 100, + .lvl = 38, + .species = SPECIES_GLOOM, + }, +}; + +static const struct TrainerMonNoItemCustomMoves sTrainerMons_823D6F8[] = { + { + .iv = 100, + .lvl = 52, + .species = SPECIES_CHANSEY, + .moves = {MOVE_EGG_BOMB, MOVE_DEFENSE_CURL, MOVE_MINIMIZE, MOVE_SOFT_BOILED}, + }, +}; + +static const struct TrainerMonNoItemCustomMoves sTrainerMons_823D708[] = { + { + .iv = 100, + .lvl = 47, + .species = SPECIES_RHYDON, + .moves = {MOVE_TAKE_DOWN, MOVE_HORN_DRILL, MOVE_ROCK_BLAST, MOVE_SCARY_FACE}, + }, + { + .iv = 100, + .lvl = 48, + .species = SPECIES_SLOWBRO, + .moves = {MOVE_PSYCHIC, MOVE_HEADBUTT, MOVE_AMNESIA, MOVE_DISABLE}, + }, + { + .iv = 100, + .lvl = 47, + .species = SPECIES_KANGASKHAN, + .moves = {MOVE_DIZZY_PUNCH, MOVE_BITE, MOVE_ENDURE, MOVE_REVERSAL}, + }, + { + .iv = 100, + .lvl = 48, + .species = SPECIES_MACHOKE, + .moves = {MOVE_CROSS_CHOP, MOVE_VITAL_THROW, MOVE_REVENGE, MOVE_SEISMIC_TOSS}, + }, + { + .iv = 100, + .lvl = 50, + .species = SPECIES_URSARING, + .moves = {MOVE_SLASH, MOVE_FAINT_ATTACK, MOVE_SNORE, MOVE_REST}, + }, +}; + +static const struct TrainerMonNoItemCustomMoves sTrainerMons_823D758[] = { + { + .iv = 100, + .lvl = 47, + .species = SPECIES_PERSIAN, + .moves = {MOVE_SLASH, MOVE_SCREECH, MOVE_FAINT_ATTACK, MOVE_BITE}, + }, + { + .iv = 100, + .lvl = 47, + .species = SPECIES_DEWGONG, + .moves = {MOVE_ICE_BEAM, MOVE_TAKE_DOWN, MOVE_ICY_WIND, MOVE_GROWL}, + }, + { + .iv = 100, + .lvl = 48, + .species = SPECIES_NINETALES, + .moves = {MOVE_FLAMETHROWER, MOVE_CONFUSE_RAY, MOVE_WILL_O_WISP, MOVE_GRUDGE}, + }, + { + .iv = 100, + .lvl = 48, + .species = SPECIES_RAPIDASH, + .moves = {MOVE_BOUNCE, MOVE_AGILITY, MOVE_FIRE_SPIN, MOVE_TAKE_DOWN}, + }, + { + .iv = 100, + .lvl = 50, + .species = SPECIES_GIRAFARIG, + .moves = {MOVE_CRUNCH, MOVE_PSYBEAM, MOVE_STOMP, MOVE_ODOR_SLEUTH}, + }, +}; + +static const struct TrainerMonNoItemCustomMoves sTrainerMons_823D7A8[] = { + { + .iv = 100, + .lvl = 52, + .species = SPECIES_MILTANK, + .moves = {MOVE_BODY_SLAM, MOVE_MILK_DRINK, MOVE_GROWL, MOVE_DEFENSE_CURL}, + }, + { + .iv = 100, + .lvl = 52, + .species = SPECIES_TAUROS, + .moves = {MOVE_THRASH, MOVE_HORN_ATTACK, MOVE_PURSUIT, MOVE_SWAGGER}, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823D7C8[] = { + { + .iv = 0, + .lvl = 50, + .species = SPECIES_ONIX, + }, +}; + +static const struct TrainerMonNoItemCustomMoves sTrainerMons_823D7D0[] = { + { + .iv = 0, + .lvl = 48, + .species = SPECIES_GEODUDE, + .moves = {MOVE_EARTHQUAKE, MOVE_ROCK_BLAST, MOVE_ROLLOUT, MOVE_SELF_DESTRUCT}, + }, + { + .iv = 0, + .lvl = 48, + .species = SPECIES_GRAVELER, + .moves = {MOVE_EARTHQUAKE, MOVE_ROCK_BLAST, MOVE_ROCK_THROW, MOVE_SELF_DESTRUCT}, + }, + { + .iv = 0, + .lvl = 48, + .species = SPECIES_GRAVELER, + .moves = {MOVE_EARTHQUAKE, MOVE_ROCK_BLAST, MOVE_ROCK_THROW, MOVE_SELF_DESTRUCT}, + }, +}; + +static const struct TrainerMonNoItemCustomMoves sTrainerMons_823D800[] = { + { + .iv = 50, + .lvl = 50, + .species = SPECIES_SMEARGLE, + .moves = {MOVE_FAKE_OUT, MOVE_EXTREME_SPEED, MOVE_PROTECT, MOVE_QUICK_ATTACK}, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823D810[] = { + { + .iv = 0, + .lvl = 49, + .species = SPECIES_MAROWAK, + }, + { + .iv = 0, + .lvl = 49, + .species = SPECIES_GOLDUCK, + }, +}; + +static const struct TrainerMonItemCustomMoves sTrainerMons_823D820[] = { + { + .iv = 0, + .lvl = 49, + .species = SPECIES_PERSIAN, + .heldItem = ITEM_NUGGET, + .moves = {MOVE_PAY_DAY, MOVE_BITE, MOVE_TAUNT, MOVE_TORMENT}, + }, + { + .iv = 0, + .lvl = 49, + .species = SPECIES_PERSIAN, + .heldItem = ITEM_NUGGET, + .moves = {MOVE_PAY_DAY, MOVE_SCRATCH, MOVE_TORMENT, MOVE_TAUNT}, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823D840[] = { + { + .iv = 0, + .lvl = 47, + .species = SPECIES_ONIX, + }, + { + .iv = 0, + .lvl = 48, + .species = SPECIES_GRAVELER, + }, + { + .iv = 0, + .lvl = 49, + .species = SPECIES_MAROWAK, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823D858[] = { + { + .iv = 100, + .lvl = 48, + .species = SPECIES_NATU, + }, + { + .iv = 100, + .lvl = 48, + .species = SPECIES_NATU, + }, + { + .iv = 100, + .lvl = 49, + .species = SPECIES_XATU, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823D870[] = { + { + .iv = 30, + .lvl = 50, + .species = SPECIES_CHANSEY, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823D878[] = { + { + .iv = 30, + .lvl = 48, + .species = SPECIES_CLEFAIRY, + }, + { + .iv = 30, + .lvl = 48, + .species = SPECIES_CLEFAIRY, + }, + { + .iv = 30, + .lvl = 48, + .species = SPECIES_CLEFABLE, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823D890[] = { + { + .iv = 0, + .lvl = 49, + .species = SPECIES_HERACROSS, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823D898[] = { + { + .iv = 0, + .lvl = 45, + .species = SPECIES_YANMA, + }, + { + .iv = 0, + .lvl = 45, + .species = SPECIES_BEEDRILL, + }, + { + .iv = 0, + .lvl = 46, + .species = SPECIES_YANMA, + }, + { + .iv = 0, + .lvl = 47, + .species = SPECIES_BEEDRILL, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823D8B8[] = { + { + .iv = 0, + .lvl = 48, + .species = SPECIES_VENONAT, + }, + { + .iv = 0, + .lvl = 48, + .species = SPECIES_VENOMOTH, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823D8C8[] = { + { + .iv = 0, + .lvl = 47, + .species = SPECIES_WEEPINBELL, + }, + { + .iv = 0, + .lvl = 47, + .species = SPECIES_WEEPINBELL, + }, + { + .iv = 0, + .lvl = 49, + .species = SPECIES_VICTREEBEL, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823D8E0[] = { + { + .iv = 0, + .lvl = 48, + .species = SPECIES_FARFETCHD, + }, + { + .iv = 0, + .lvl = 48, + .species = SPECIES_FARFETCHD, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823D8F0[] = { + { + .iv = 0, + .lvl = 46, + .species = SPECIES_HOPPIP, + }, + { + .iv = 0, + .lvl = 47, + .species = SPECIES_HOPPIP, + }, + { + .iv = 0, + .lvl = 47, + .species = SPECIES_SKIPLOOM, + }, + { + .iv = 0, + .lvl = 48, + .species = SPECIES_SKIPLOOM, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823D910[] = { + { + .iv = 0, + .lvl = 49, + .species = SPECIES_SNUBBULL, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823D918[] = { + { + .iv = 0, + .lvl = 49, + .species = SPECIES_PINSIR, + }, + { + .iv = 0, + .lvl = 50, + .species = SPECIES_HERACROSS, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823D928[] = { + { + .iv = 0, + .lvl = 48, + .species = SPECIES_PARAS, + }, + { + .iv = 0, + .lvl = 48, + .species = SPECIES_PARAS, + }, + { + .iv = 0, + .lvl = 49, + .species = SPECIES_PARASECT, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823D940[] = { + { + .iv = 0, + .lvl = 48, + .species = SPECIES_SANDSLASH, + }, + { + .iv = 0, + .lvl = 48, + .species = SPECIES_ONIX, + }, + { + .iv = 0, + .lvl = 48, + .species = SPECIES_SANDSLASH, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823D958[] = { + { + .iv = 20, + .lvl = 21, + .species = SPECIES_NIDORAN_M, + }, + { + .iv = 20, + .lvl = 21, + .species = SPECIES_NIDORAN_F, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823D968[] = { + { + .iv = 60, + .lvl = 29, + .species = SPECIES_NIDORINO, + }, + { + .iv = 60, + .lvl = 29, + .species = SPECIES_NIDORINA, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823D978[] = { + { + .iv = 80, + .lvl = 49, + .species = SPECIES_NIDORINO, + }, + { + .iv = 80, + .lvl = 49, + .species = SPECIES_NIDORINA, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823D988[] = { + { + .iv = 20, + .lvl = 22, + .species = SPECIES_SQUIRTLE, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823D990[] = { + { + .iv = 60, + .lvl = 30, + .species = SPECIES_WARTORTLE, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823D998[] = { + { + .iv = 120, + .lvl = 55, + .species = SPECIES_WARTORTLE, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823D9A0[] = { + { + .iv = 20, + .lvl = 21, + .species = SPECIES_SPEAROW, + }, + { + .iv = 20, + .lvl = 21, + .species = SPECIES_RATICATE, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823D9B0[] = { + { + .iv = 60, + .lvl = 29, + .species = SPECIES_FEAROW, + }, + { + .iv = 60, + .lvl = 29, + .species = SPECIES_RATICATE, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823D9C0[] = { + { + .iv = 120, + .lvl = 54, + .species = SPECIES_FEAROW, + }, + { + .iv = 120, + .lvl = 54, + .species = SPECIES_RATICATE, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823D9D0[] = { + { + .iv = 20, + .lvl = 21, + .species = SPECIES_PIDGEOTTO, + }, + { + .iv = 20, + .lvl = 21, + .species = SPECIES_PIDGEOTTO, + }, + { + .iv = 20, + .lvl = 18, + .species = SPECIES_PIDGEY, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823D9E8[] = { + { + .iv = 60, + .lvl = 29, + .species = SPECIES_PIDGEOTTO, + }, + { + .iv = 60, + .lvl = 29, + .species = SPECIES_PIDGEOTTO, + }, + { + .iv = 60, + .lvl = 26, + .species = SPECIES_PIDGEOTTO, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823DA00[] = { + { + .iv = 80, + .lvl = 47, + .species = SPECIES_PIDGEOTTO, + }, + { + .iv = 80, + .lvl = 47, + .species = SPECIES_PIDGEOTTO, + }, + { + .iv = 80, + .lvl = 50, + .species = SPECIES_PIDGEOT, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823DA18[] = { + { + .iv = 40, + .lvl = 22, + .species = SPECIES_RATTATA, + }, + { + .iv = 40, + .lvl = 22, + .species = SPECIES_RATICATE, + }, + { + .iv = 40, + .lvl = 22, + .species = SPECIES_RATICATE, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823DA30[] = { + { + .iv = 80, + .lvl = 47, + .species = SPECIES_RATICATE, + }, + { + .iv = 80, + .lvl = 47, + .species = SPECIES_RATICATE, + }, + { + .iv = 80, + .lvl = 47, + .species = SPECIES_RATICATE, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823DA48[] = { + { + .iv = 60, + .lvl = 28, + .species = SPECIES_MAGNETON, + }, + { + .iv = 60, + .lvl = 28, + .species = SPECIES_MAGNETON, + }, + { + .iv = 60, + .lvl = 28, + .species = SPECIES_MAGNETON, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823DA60[] = { + { + .iv = 60, + .lvl = 29, + .species = SPECIES_GROWLITHE, + }, + { + .iv = 60, + .lvl = 29, + .species = SPECIES_VULPIX, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823DA70[] = { + { + .iv = 40, + .lvl = 24, + .species = SPECIES_GROWLITHE, + }, + { + .iv = 40, + .lvl = 24, + .species = SPECIES_CHARMANDER, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823DA80[] = { + { + .iv = 60, + .lvl = 29, + .species = SPECIES_GROWLITHE, + }, + { + .iv = 60, + .lvl = 29, + .species = SPECIES_CHARMELEON, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823DA90[] = { + { + .iv = 120, + .lvl = 54, + .species = SPECIES_ARCANINE, + }, + { + .iv = 120, + .lvl = 54, + .species = SPECIES_CHARMELEON, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823DAA0[] = { + { + .iv = 40, + .lvl = 25, + .species = SPECIES_MEOWTH, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823DAA8[] = { + { + .iv = 60, + .lvl = 30, + .species = SPECIES_PERSIAN, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823DAB0[] = { + { + .iv = 120, + .lvl = 55, + .species = SPECIES_PERSIAN, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823DAB8[] = { + { + .iv = 60, + .lvl = 30, + .species = SPECIES_MACHOKE, + }, + { + .iv = 60, + .lvl = 28, + .species = SPECIES_ONIX, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823DAC8[] = { + { + .iv = 150, + .lvl = 54, + .species = SPECIES_RHYDON, + }, + { + .iv = 150, + .lvl = 54, + .species = SPECIES_LICKITUNG, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823DAD8[] = { + { + .iv = 90, + .lvl = 29, + .species = SPECIES_MAROWAK, + }, + { + .iv = 90, + .lvl = 29, + .species = SPECIES_SLOWBRO, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823DAE8[] = { + { + .iv = 150, + .lvl = 54, + .species = SPECIES_MAROWAK, + }, + { + .iv = 150, + .lvl = 54, + .species = SPECIES_SLOWBRO, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823DAF8[] = { + { + .iv = 60, + .lvl = 31, + .species = SPECIES_ONIX, + }, + { + .iv = 60, + .lvl = 31, + .species = SPECIES_GRAVELER, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823DB08[] = { + { + .iv = 40, + .lvl = 22, + .species = SPECIES_PIDGEOTTO, + }, + { + .iv = 40, + .lvl = 22, + .species = SPECIES_RATICATE, + }, + { + .iv = 40, + .lvl = 23, + .species = SPECIES_NIDORAN_M, + }, + { + .iv = 40, + .lvl = 21, + .species = SPECIES_MEOWTH, + }, + { + .iv = 40, + .lvl = 22, + .species = SPECIES_PIKACHU, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823DB30[] = { + { + .iv = 80, + .lvl = 46, + .species = SPECIES_PIDGEOT, + }, + { + .iv = 80, + .lvl = 47, + .species = SPECIES_RATICATE, + }, + { + .iv = 80, + .lvl = 47, + .species = SPECIES_NIDORINO, + }, + { + .iv = 80, + .lvl = 47, + .species = SPECIES_PERSIAN, + }, + { + .iv = 80, + .lvl = 48, + .species = SPECIES_RAICHU, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823DB58[] = { + { + .iv = 60, + .lvl = 28, + .species = SPECIES_MUK, + }, + { + .iv = 60, + .lvl = 28, + .species = SPECIES_MUK, + }, + { + .iv = 60, + .lvl = 28, + .species = SPECIES_MUK, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823DB70[] = { + { + .iv = 60, + .lvl = 30, + .species = SPECIES_GROWLITHE, + }, + { + .iv = 60, + .lvl = 30, + .species = SPECIES_VULPIX, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823DB80[] = { + { + .iv = 60, + .lvl = 28, + .species = SPECIES_MUK, + }, + { + .iv = 60, + .lvl = 30, + .species = SPECIES_MUK, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823DB90[] = { + { + .iv = 60, + .lvl = 28, + .species = SPECIES_POLIWHIRL, + }, + { + .iv = 60, + .lvl = 28, + .species = SPECIES_CLOYSTER, + }, + { + .iv = 60, + .lvl = 28, + .species = SPECIES_SEAKING, + }, + { + .iv = 60, + .lvl = 28, + .species = SPECIES_SEADRA, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823DBB0[] = { + { + .iv = 60, + .lvl = 33, + .species = SPECIES_ELECTRODE, + }, + { + .iv = 60, + .lvl = 33, + .species = SPECIES_ELECTRODE, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823DBC0[] = { + { + .iv = 80, + .lvl = 49, + .species = SPECIES_CLEFAIRY, + }, + { + .iv = 80, + .lvl = 49, + .species = SPECIES_PERSIAN, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823DBD0[] = { + { + .iv = 60, + .lvl = 28, + .species = SPECIES_PIDGEOTTO, + }, + { + .iv = 60, + .lvl = 28, + .species = SPECIES_PIDGEOTTO, + }, + { + .iv = 60, + .lvl = 28, + .species = SPECIES_FEAROW, + }, + { + .iv = 60, + .lvl = 28, + .species = SPECIES_FEAROW, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823DBF0[] = { + { + .iv = 80, + .lvl = 47, + .species = SPECIES_PIDGEOT, + }, + { + .iv = 80, + .lvl = 47, + .species = SPECIES_PIDGEOT, + }, + { + .iv = 80, + .lvl = 47, + .species = SPECIES_FEAROW, + }, + { + .iv = 80, + .lvl = 47, + .species = SPECIES_FEAROW, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823DC10[] = { + { + .iv = 60, + .lvl = 27, + .species = SPECIES_PIDGEOTTO, + }, + { + .iv = 60, + .lvl = 27, + .species = SPECIES_MEOWTH, + }, + { + .iv = 60, + .lvl = 27, + .species = SPECIES_RATICATE, + }, + { + .iv = 60, + .lvl = 27, + .species = SPECIES_PIKACHU, + }, + { + .iv = 60, + .lvl = 27, + .species = SPECIES_MEOWTH, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823DC38[] = { + { + .iv = 80, + .lvl = 47, + .species = SPECIES_PIDGEOTTO, + }, + { + .iv = 80, + .lvl = 47, + .species = SPECIES_PERSIAN, + }, + { + .iv = 80, + .lvl = 47, + .species = SPECIES_RATICATE, + }, + { + .iv = 80, + .lvl = 47, + .species = SPECIES_PIKACHU, + }, + { + .iv = 80, + .lvl = 47, + .species = SPECIES_PERSIAN, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823DC60[] = { + { + .iv = 120, + .lvl = 52, + .species = SPECIES_PIDGEOT, + }, + { + .iv = 120, + .lvl = 52, + .species = SPECIES_PERSIAN, + }, + { + .iv = 120, + .lvl = 52, + .species = SPECIES_RATICATE, + }, + { + .iv = 120, + .lvl = 52, + .species = SPECIES_RAICHU, + }, + { + .iv = 120, + .lvl = 52, + .species = SPECIES_PERSIAN, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823DC88[] = { + { + .iv = 80, + .lvl = 47, + .species = SPECIES_KOFFING, + }, + { + .iv = 80, + .lvl = 47, + .species = SPECIES_KOFFING, + }, + { + .iv = 80, + .lvl = 47, + .species = SPECIES_MUK, + }, + { + .iv = 80, + .lvl = 47, + .species = SPECIES_WEEZING, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823DCA8[] = { + { + .iv = 60, + .lvl = 32, + .species = SPECIES_FEAROW, + }, + { + .iv = 60, + .lvl = 32, + .species = SPECIES_FEAROW, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823DCB8[] = { + { + .iv = 80, + .lvl = 49, + .species = SPECIES_FEAROW, + }, + { + .iv = 80, + .lvl = 49, + .species = SPECIES_FEAROW, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823DCC8[] = { + { + .iv = 60, + .lvl = 30, + .species = SPECIES_FEAROW, + }, + { + .iv = 60, + .lvl = 30, + .species = SPECIES_DODUO, + }, + { + .iv = 60, + .lvl = 30, + .species = SPECIES_FEAROW, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823DCE0[] = { + { + .iv = 80, + .lvl = 48, + .species = SPECIES_FEAROW, + }, + { + .iv = 80, + .lvl = 48, + .species = SPECIES_DODRIO, + }, + { + .iv = 80, + .lvl = 48, + .species = SPECIES_FEAROW, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823DCF8[] = { + { + .iv = 80, + .lvl = 49, + .species = SPECIES_PIDGEOT, + }, + { + .iv = 80, + .lvl = 49, + .species = SPECIES_WIGGLYTUFF, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823DD08[] = { + { + .iv = 60, + .lvl = 30, + .species = SPECIES_DODRIO, + }, + { + .iv = 60, + .lvl = 30, + .species = SPECIES_DODRIO, + }, + { + .iv = 60, + .lvl = 30, + .species = SPECIES_DODUO, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823DD20[] = { + { + .iv = 80, + .lvl = 48, + .species = SPECIES_DODRIO, + }, + { + .iv = 80, + .lvl = 48, + .species = SPECIES_DODRIO, + }, + { + .iv = 80, + .lvl = 48, + .species = SPECIES_DODRIO, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823DD38[] = { + { + .iv = 60, + .lvl = 32, + .species = SPECIES_PIKACHU, + }, + { + .iv = 60, + .lvl = 32, + .species = SPECIES_RAICHU, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823DD48[] = { + { + .iv = 80, + .lvl = 49, + .species = SPECIES_PIKACHU, + }, + { + .iv = 80, + .lvl = 49, + .species = SPECIES_RAICHU, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823DD58[] = { + { + .iv = 120, + .lvl = 54, + .species = SPECIES_RAICHU, + }, + { + .iv = 120, + .lvl = 54, + .species = SPECIES_RAICHU, + }, +}; + +static const struct TrainerMonItemDefaultMoves sTrainerMons_823DD68[] = { + { + .iv = 110, + .lvl = 33, + .species = SPECIES_HITMONCHAN, + .heldItem = ITEM_BLACK_BELT, + }, + { + .iv = 110, + .lvl = 33, + .species = SPECIES_HITMONLEE, + .heldItem = ITEM_BLACK_BELT, + }, +}; + +static const struct TrainerMonItemDefaultMoves sTrainerMons_823DD78[] = { + { + .iv = 130, + .lvl = 51, + .species = SPECIES_HITMONCHAN, + .heldItem = ITEM_BLACK_BELT, + }, + { + .iv = 130, + .lvl = 51, + .species = SPECIES_HITMONLEE, + .heldItem = ITEM_BLACK_BELT, + }, +}; + +static const struct TrainerMonItemDefaultMoves sTrainerMons_823DD88[] = { + { + .iv = 170, + .lvl = 56, + .species = SPECIES_HITMONCHAN, + .heldItem = ITEM_BLACK_BELT, + }, + { + .iv = 170, + .lvl = 56, + .species = SPECIES_HITMONLEE, + .heldItem = ITEM_BLACK_BELT, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823DD98[] = { + { + .iv = 80, + .lvl = 48, + .species = SPECIES_WEEZING, + }, + { + .iv = 80, + .lvl = 48, + .species = SPECIES_WEEZING, + }, + { + .iv = 80, + .lvl = 48, + .species = SPECIES_WEEZING, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823DDB0[] = { + { + .iv = 80, + .lvl = 49, + .species = SPECIES_PRIMEAPE, + }, + { + .iv = 80, + .lvl = 49, + .species = SPECIES_MACHOKE, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823DDC0[] = { + { + .iv = 80, + .lvl = 49, + .species = SPECIES_WEEZING, + }, + { + .iv = 80, + .lvl = 49, + .species = SPECIES_MUK, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823DDD0[] = { + { + .iv = 80, + .lvl = 49, + .species = SPECIES_MACHOKE, + }, + { + .iv = 80, + .lvl = 49, + .species = SPECIES_MACHAMP, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823DDE0[] = { + { + .iv = 80, + .lvl = 49, + .species = SPECIES_PRIMEAPE, + }, + { + .iv = 80, + .lvl = 49, + .species = SPECIES_MACHAMP, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823DDF0[] = { + { + .iv = 60, + .lvl = 28, + .species = SPECIES_FEAROW, + }, + { + .iv = 60, + .lvl = 28, + .species = SPECIES_SPEAROW, + }, + { + .iv = 60, + .lvl = 28, + .species = SPECIES_FEAROW, + }, + { + .iv = 60, + .lvl = 28, + .species = SPECIES_SPEAROW, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823DE10[] = { + { + .iv = 80, + .lvl = 47, + .species = SPECIES_FEAROW, + }, + { + .iv = 80, + .lvl = 47, + .species = SPECIES_FEAROW, + }, + { + .iv = 80, + .lvl = 47, + .species = SPECIES_FEAROW, + }, + { + .iv = 80, + .lvl = 47, + .species = SPECIES_FEAROW, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823DE30[] = { + { + .iv = 80, + .lvl = 49, + .species = SPECIES_SEAKING, + }, + { + .iv = 80, + .lvl = 49, + .species = SPECIES_SEAKING, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823DE40[] = { + { + .iv = 120, + .lvl = 52, + .species = SPECIES_SEADRA, + }, + { + .iv = 120, + .lvl = 52, + .species = SPECIES_SEADRA, + }, + { + .iv = 120, + .lvl = 52, + .species = SPECIES_SEADRA, + }, + { + .iv = 120, + .lvl = 52, + .species = SPECIES_SEADRA, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823DE60[] = { + { + .iv = 80, + .lvl = 49, + .species = SPECIES_SEAKING, + }, + { + .iv = 80, + .lvl = 49, + .species = SPECIES_SEAKING, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823DE70[] = { + { + .iv = 120, + .lvl = 54, + .species = SPECIES_SEAKING, + }, + { + .iv = 120, + .lvl = 54, + .species = SPECIES_SEAKING, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823DE80[] = { + { + .iv = 80, + .lvl = 47, + .species = SPECIES_MAGIKARP, + }, + { + .iv = 80, + .lvl = 47, + .species = SPECIES_MAGIKARP, + }, + { + .iv = 80, + .lvl = 47, + .species = SPECIES_MAGIKARP, + }, + { + .iv = 80, + .lvl = 47, + .species = SPECIES_MAGIKARP, + }, + { + .iv = 80, + .lvl = 47, + .species = SPECIES_MAGIKARP, + }, + { + .iv = 80, + .lvl = 47, + .species = SPECIES_MAGIKARP, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823DEB0[] = { + { + .iv = 80, + .lvl = 50, + .species = SPECIES_STARMIE, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823DEB8[] = { + { + .iv = 80, + .lvl = 50, + .species = SPECIES_SEADRA, + }, + { + .iv = 80, + .lvl = 50, + .species = SPECIES_STARMIE, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823DEC8[] = { + { + .iv = 120, + .lvl = 55, + .species = SPECIES_SEADRA, + }, + { + .iv = 120, + .lvl = 55, + .species = SPECIES_STARMIE, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823DED8[] = { + { + .iv = 80, + .lvl = 50, + .species = SPECIES_STARMIE, + }, +}; + +static const struct TrainerMonItemDefaultMoves sTrainerMons_823DEE0[] = { + { + .iv = 130, + .lvl = 50, + .species = SPECIES_MANKEY, + .heldItem = ITEM_BLACK_BELT, + }, + { + .iv = 130, + .lvl = 50, + .species = SPECIES_PRIMEAPE, + .heldItem = ITEM_BLACK_BELT, + }, +}; + +static const struct TrainerMonItemDefaultMoves sTrainerMons_823DEF0[] = { + { + .iv = 170, + .lvl = 55, + .species = SPECIES_PRIMEAPE, + .heldItem = ITEM_BLACK_BELT, + }, + { + .iv = 170, + .lvl = 55, + .species = SPECIES_PRIMEAPE, + .heldItem = ITEM_BLACK_BELT, + }, +}; + +static const struct TrainerMonItemDefaultMoves sTrainerMons_823DF00[] = { + { + .iv = 130, + .lvl = 50, + .species = SPECIES_HITMONLEE, + .heldItem = ITEM_BLACK_BELT, + }, + { + .iv = 130, + .lvl = 50, + .species = SPECIES_HITMONCHAN, + .heldItem = ITEM_BLACK_BELT, + }, +}; + +static const struct TrainerMonItemDefaultMoves sTrainerMons_823DF10[] = { + { + .iv = 170, + .lvl = 55, + .species = SPECIES_HITMONLEE, + .heldItem = ITEM_BLACK_BELT, + }, + { + .iv = 170, + .lvl = 55, + .species = SPECIES_HITMONCHAN, + .heldItem = ITEM_BLACK_BELT, + }, +}; + +static const struct TrainerMonItemDefaultMoves sTrainerMons_823DF20[] = { + { + .iv = 180, + .lvl = 50, + .species = SPECIES_MACHOKE, + .heldItem = ITEM_BLACK_BELT, + }, + { + .iv = 180, + .lvl = 50, + .species = SPECIES_MACHOKE, + .heldItem = ITEM_BLACK_BELT, + }, +}; + +static const struct TrainerMonItemDefaultMoves sTrainerMons_823DF30[] = { + { + .iv = 220, + .lvl = 55, + .species = SPECIES_MACHOKE, + .heldItem = ITEM_BLACK_BELT, + }, + { + .iv = 220, + .lvl = 55, + .species = SPECIES_MACHAMP, + .heldItem = ITEM_BLACK_BELT, + }, +}; + +static const struct TrainerMonItemDefaultMoves sTrainerMons_823DF40[] = { + { + .iv = 180, + .lvl = 50, + .species = SPECIES_MACHOKE, + .heldItem = ITEM_BLACK_BELT, + }, + { + .iv = 180, + .lvl = 50, + .species = SPECIES_MACHOKE, + .heldItem = ITEM_BLACK_BELT, + }, +}; + +static const struct TrainerMonItemDefaultMoves sTrainerMons_823DF50[] = { + { + .iv = 220, + .lvl = 55, + .species = SPECIES_MACHOKE, + .heldItem = ITEM_BLACK_BELT, + }, + { + .iv = 220, + .lvl = 55, + .species = SPECIES_MACHAMP, + .heldItem = ITEM_BLACK_BELT, + }, +}; + +static const struct TrainerMonItemDefaultMoves sTrainerMons_823DF60[] = { + { + .iv = 130, + .lvl = 51, + .species = SPECIES_MACHOKE, + .heldItem = ITEM_BLACK_BELT, + }, + { + .iv = 130, + .lvl = 51, + .species = SPECIES_PRIMEAPE, + .heldItem = ITEM_BLACK_BELT, + }, +}; + +static const struct TrainerMonItemDefaultMoves sTrainerMons_823DF70[] = { + { + .iv = 170, + .lvl = 56, + .species = SPECIES_MACHAMP, + .heldItem = ITEM_BLACK_BELT, + }, + { + .iv = 170, + .lvl = 56, + .species = SPECIES_PRIMEAPE, + .heldItem = ITEM_BLACK_BELT, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823DF80[] = { + { + .iv = 80, + .lvl = 47, + .species = SPECIES_POLIWHIRL, + }, + { + .iv = 80, + .lvl = 47, + .species = SPECIES_POLIWHIRL, + }, + { + .iv = 80, + .lvl = 47, + .species = SPECIES_POLIWHIRL, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823DF98[] = { + { + .iv = 80, + .lvl = 49, + .species = SPECIES_CLEFAIRY, + }, + { + .iv = 80, + .lvl = 49, + .species = SPECIES_CLEFAIRY, + }, +}; + +static const struct TrainerMonNoItemCustomMoves sTrainerMons_823DFA8[] = { + { + .iv = 120, + .lvl = 54, + .species = SPECIES_SMEARGLE, + .moves = {MOVE_CROSS_CHOP, MOVE_MEGAHORN, MOVE_DOUBLE_EDGE, MOVE_SELF_DESTRUCT}, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823DFB8[] = { + { + .iv = 120, + .lvl = 53, + .species = SPECIES_RATICATE, + }, + { + .iv = 120, + .lvl = 53, + .species = SPECIES_PIDGEOT, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823DFC8[] = { + { + .iv = 150, + .lvl = 53, + .species = SPECIES_PIKACHU, + }, + { + .iv = 150, + .lvl = 53, + .species = SPECIES_CLEFAIRY, + }, + { + .iv = 150, + .lvl = 53, + .species = SPECIES_MARILL, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823DFE0[] = { + { + .iv = 60, + .lvl = 30, + .species = SPECIES_NIDORINA, + }, + { + .iv = 60, + .lvl = 30, + .species = SPECIES_NIDORINO, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823DFF0[] = { + { + .iv = 120, + .lvl = 55, + .species = SPECIES_NIDOKING, + }, + { + .iv = 120, + .lvl = 55, + .species = SPECIES_NIDOQUEEN, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823E000[] = { + { + .iv = 120, + .lvl = 53, + .species = SPECIES_PIDGEOTTO, + }, + { + .iv = 120, + .lvl = 55, + .species = SPECIES_PIDGEOT, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823E010[] = { + { + .iv = 120, + .lvl = 53, + .species = SPECIES_FEAROW, + }, + { + .iv = 120, + .lvl = 55, + .species = SPECIES_FEAROW, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823E020[] = { + { + .iv = 120, + .lvl = 53, + .species = SPECIES_NOCTOWL, + }, + { + .iv = 120, + .lvl = 55, + .species = SPECIES_NOCTOWL, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823E030[] = { + { + .iv = 120, + .lvl = 54, + .species = SPECIES_MARILL, + }, +}; + +static const struct TrainerMonNoItemCustomMoves sTrainerMons_823E038[] = { + { + .iv = 220, + .lvl = 52, + .species = SPECIES_NATU, + .moves = {MOVE_PSYCHIC, MOVE_CONFUSE_RAY, MOVE_FUTURE_SIGHT, MOVE_WISH}, + }, + { + .iv = 220, + .lvl = 52, + .species = SPECIES_SLOWBRO, + .moves = {MOVE_PSYCHIC, MOVE_HEADBUTT, MOVE_AMNESIA, MOVE_YAWN}, + }, + { + .iv = 220, + .lvl = 54, + .species = SPECIES_KADABRA, + .moves = {MOVE_PSYCHIC, MOVE_FUTURE_SIGHT, MOVE_RECOVER, MOVE_REFLECT}, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823E068[] = { + { + .iv = 120, + .lvl = 55, + .species = SPECIES_GYARADOS, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823E070[] = { + { + .iv = 120, + .lvl = 54, + .species = SPECIES_ONIX, + }, + { + .iv = 120, + .lvl = 54, + .species = SPECIES_MACHAMP, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823E080[] = { + { + .iv = 120, + .lvl = 54, + .species = SPECIES_MACHOKE, + }, + { + .iv = 120, + .lvl = 54, + .species = SPECIES_MACHOKE, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823E090[] = { + { + .iv = 150, + .lvl = 55, + .species = SPECIES_RHYDON, + }, + { + .iv = 150, + .lvl = 55, + .species = SPECIES_KANGASKHAN, + }, +}; + +static const struct TrainerMonNoItemCustomMoves sTrainerMons_823E0A0[] = { + { + .iv = 220, + .lvl = 56, + .species = SPECIES_GIRAFARIG, + .moves = {MOVE_CRUNCH, MOVE_PSYBEAM, MOVE_ODOR_SLEUTH, MOVE_AGILITY}, + }, +}; + +static const struct TrainerMonNoItemCustomMoves sTrainerMons_823E0B0[] = { + { + .iv = 220, + .lvl = 53, + .species = SPECIES_NATU, + .moves = {MOVE_PSYCHIC, MOVE_CONFUSE_RAY, MOVE_WISH, MOVE_FUTURE_SIGHT}, + }, + { + .iv = 220, + .lvl = 53, + .species = SPECIES_HYPNO, + .moves = {MOVE_PSYCHIC, MOVE_DISABLE, MOVE_PSYCH_UP, MOVE_FUTURE_SIGHT}, + }, + { + .iv = 220, + .lvl = 53, + .species = SPECIES_HYPNO, + .moves = {MOVE_PSYCHIC, MOVE_HYPNOSIS, MOVE_PSYCH_UP, MOVE_FUTURE_SIGHT}, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823E0E0[] = { + { + .iv = 120, + .lvl = 52, + .species = SPECIES_ELECTRODE, + }, + { + .iv = 120, + .lvl = 52, + .species = SPECIES_PINECO, + }, + { + .iv = 120, + .lvl = 52, + .species = SPECIES_ELECTRODE, + }, + { + .iv = 120, + .lvl = 52, + .species = SPECIES_PINECO, + }, +}; + +static const struct TrainerMonNoItemCustomMoves sTrainerMons_823E100[] = { + { + .iv = 220, + .lvl = 55, + .species = SPECIES_VICTREEBEL, + .moves = {MOVE_RAZOR_LEAF, MOVE_ACID, MOVE_STUN_SPORE, MOVE_WRAP}, + }, + { + .iv = 220, + .lvl = 55, + .species = SPECIES_VICTREEBEL, + .moves = {MOVE_RAZOR_LEAF, MOVE_ACID, MOVE_SLEEP_POWDER, MOVE_SLAM}, + }, +}; + +static const struct TrainerMonNoItemCustomMoves sTrainerMons_823E120[] = { + { + .iv = 220, + .lvl = 55, + .species = SPECIES_VILEPLUME, + .moves = {MOVE_PETAL_DANCE, MOVE_MOONLIGHT, MOVE_ACID, MOVE_SLEEP_POWDER}, + }, + { + .iv = 220, + .lvl = 55, + .species = SPECIES_VILEPLUME, + .moves = {MOVE_PETAL_DANCE, MOVE_MOONLIGHT, MOVE_ACID, MOVE_STUN_SPORE}, + }, +}; + +static const struct TrainerMonItemDefaultMoves sTrainerMons_823E140[] = { + { + .iv = 170, + .lvl = 54, + .species = SPECIES_PRIMEAPE, + .heldItem = ITEM_BLACK_BELT, + }, + { + .iv = 170, + .lvl = 54, + .species = SPECIES_HITMONTOP, + .heldItem = ITEM_BLACK_BELT, + }, + { + .iv = 170, + .lvl = 54, + .species = SPECIES_MACHAMP, + .heldItem = ITEM_BLACK_BELT, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823E158[] = { + { + .iv = 160, + .lvl = 52, + .species = SPECIES_SANDSLASH, + }, + { + .iv = 160, + .lvl = 52, + .species = SPECIES_LICKITUNG, + }, + { + .iv = 160, + .lvl = 55, + .species = SPECIES_URSARING, + }, +}; + +static const struct TrainerMonNoItemCustomMoves sTrainerMons_823E170[] = { + { + .iv = 220, + .lvl = 53, + .species = SPECIES_TANGELA, + .moves = {MOVE_SLAM, MOVE_MEGA_DRAIN, MOVE_BIND, MOVE_INGRAIN}, + }, + { + .iv = 220, + .lvl = 54, + .species = SPECIES_EXEGGUTOR, + .moves = {MOVE_CONFUSION, MOVE_EGG_BOMB, MOVE_STUN_SPORE, MOVE_REFLECT}, + }, + { + .iv = 220, + .lvl = 55, + .species = SPECIES_EXEGGUTOR, + .moves = {MOVE_CONFUSION, MOVE_EGG_BOMB, MOVE_SLEEP_POWDER, MOVE_STOMP}, + }, +}; + +static const struct TrainerMonNoItemCustomMoves sTrainerMons_823E1A0[] = { + { + .iv = 220, + .lvl = 56, + .species = SPECIES_CHANSEY, + .moves = {MOVE_EGG_BOMB, MOVE_DEFENSE_CURL, MOVE_MINIMIZE, MOVE_SOFT_BOILED}, + }, +}; + +static const struct TrainerMonNoItemCustomMoves sTrainerMons_823E1B0[] = { + { + .iv = 220, + .lvl = 52, + .species = SPECIES_RHYDON, + .moves = {MOVE_EARTHQUAKE, MOVE_HORN_DRILL, MOVE_ROCK_BLAST, MOVE_SCARY_FACE}, + }, + { + .iv = 220, + .lvl = 54, + .species = SPECIES_SLOWBRO, + .moves = {MOVE_PSYCHIC, MOVE_HEADBUTT, MOVE_AMNESIA, MOVE_DISABLE}, + }, + { + .iv = 220, + .lvl = 52, + .species = SPECIES_KANGASKHAN, + .moves = {MOVE_DIZZY_PUNCH, MOVE_BITE, MOVE_ENDURE, MOVE_REVERSAL}, + }, + { + .iv = 220, + .lvl = 52, + .species = SPECIES_MACHAMP, + .moves = {MOVE_CROSS_CHOP, MOVE_VITAL_THROW, MOVE_REVENGE, MOVE_SEISMIC_TOSS}, + }, + { + .iv = 220, + .lvl = 55, + .species = SPECIES_URSARING, + .moves = {MOVE_SLASH, MOVE_FAINT_ATTACK, MOVE_SNORE, MOVE_REST}, + }, +}; + +static const struct TrainerMonNoItemCustomMoves sTrainerMons_823E200[] = { + { + .iv = 220, + .lvl = 53, + .species = SPECIES_PERSIAN, + .moves = {MOVE_SLASH, MOVE_SCREECH, MOVE_FAINT_ATTACK, MOVE_BITE}, + }, + { + .iv = 220, + .lvl = 53, + .species = SPECIES_DEWGONG, + .moves = {MOVE_ICE_BEAM, MOVE_TAKE_DOWN, MOVE_ICY_WIND, MOVE_SHEER_COLD}, + }, + { + .iv = 220, + .lvl = 54, + .species = SPECIES_NINETALES, + .moves = {MOVE_FLAMETHROWER, MOVE_CONFUSE_RAY, MOVE_WILL_O_WISP, MOVE_GRUDGE}, + }, + { + .iv = 220, + .lvl = 54, + .species = SPECIES_RAPIDASH, + .moves = {MOVE_BOUNCE, MOVE_AGILITY, MOVE_FIRE_SPIN, MOVE_TAKE_DOWN}, + }, + { + .iv = 220, + .lvl = 56, + .species = SPECIES_GIRAFARIG, + .moves = {MOVE_CRUNCH, MOVE_PSYBEAM, MOVE_STOMP, MOVE_ODOR_SLEUTH}, + }, +}; + +static const struct TrainerMonNoItemCustomMoves sTrainerMons_823E250[] = { + { + .iv = 220, + .lvl = 57, + .species = SPECIES_MILTANK, + .moves = {MOVE_BODY_SLAM, MOVE_MILK_DRINK, MOVE_GROWL, MOVE_DEFENSE_CURL}, + }, + { + .iv = 220, + .lvl = 57, + .species = SPECIES_TAUROS, + .moves = {MOVE_TAKE_DOWN, MOVE_SCARY_FACE, MOVE_PURSUIT, MOVE_SWAGGER}, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823E270[] = { + { + .iv = 20, + .lvl = 19, + .species = SPECIES_METAPOD, + }, + { + .iv = 20, + .lvl = 19, + .species = SPECIES_WEEDLE, + }, + { + .iv = 20, + .lvl = 19, + .species = SPECIES_METAPOD, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823E288[] = { + { + .iv = 60, + .lvl = 27, + .species = SPECIES_BUTTERFREE, + }, + { + .iv = 60, + .lvl = 27, + .species = SPECIES_KAKUNA, + }, + { + .iv = 60, + .lvl = 27, + .species = SPECIES_BUTTERFREE, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823E2A0[] = { + { + .iv = 120, + .lvl = 51, + .species = SPECIES_BUTTERFREE, + }, + { + .iv = 120, + .lvl = 54, + .species = SPECIES_BEEDRILL, + }, + { + .iv = 120, + .lvl = 51, + .species = SPECIES_BUTTERFREE, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823E2B8[] = { + { + .iv = 80, + .lvl = 49, + .species = SPECIES_POLIWHIRL, + }, + { + .iv = 80, + .lvl = 49, + .species = SPECIES_POLIWRATH, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823E2C8[] = { + { + .iv = 80, + .lvl = 49, + .species = SPECIES_SEADRA, + }, + { + .iv = 80, + .lvl = 49, + .species = SPECIES_SEADRA, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823E2D8[] = { + { + .iv = 80, + .lvl = 49, + .species = SPECIES_POLIWHIRL, + }, + { + .iv = 80, + .lvl = 49, + .species = SPECIES_SEAKING, + }, +}; + +static const struct TrainerMonItemCustomMoves sTrainerMons_823E2E8[] = { + { + .iv = 255, + .lvl = 64, + .species = SPECIES_DEWGONG, + .heldItem = ITEM_NONE, + .moves = {MOVE_ICE_BEAM, MOVE_SURF, MOVE_SIGNAL_BEAM, MOVE_DOUBLE_TEAM}, + }, + { + .iv = 255, + .lvl = 63, + .species = SPECIES_CLOYSTER, + .heldItem = ITEM_NONE, + .moves = {MOVE_ICE_BEAM, MOVE_SURF, MOVE_SUPERSONIC, MOVE_RAIN_DANCE}, + }, + { + .iv = 255, + .lvl = 63, + .species = SPECIES_PILOSWINE, + .heldItem = ITEM_NONE, + .moves = {MOVE_BLIZZARD, MOVE_EARTHQUAKE, MOVE_DOUBLE_EDGE, MOVE_ROCK_SLIDE}, + }, + { + .iv = 255, + .lvl = 66, + .species = SPECIES_JYNX, + .heldItem = ITEM_NONE, + .moves = {MOVE_ICE_BEAM, MOVE_PSYCHIC, MOVE_LOVELY_KISS, MOVE_ATTRACT}, + }, + { + .iv = 255, + .lvl = 66, + .species = SPECIES_LAPRAS, + .heldItem = ITEM_CHERI_BERRY, + .moves = {MOVE_ICE_BEAM, MOVE_SURF, MOVE_PSYCHIC, MOVE_THUNDER}, + }, +}; + +static const struct TrainerMonItemCustomMoves sTrainerMons_823E338[] = { + { + .iv = 255, + .lvl = 65, + .species = SPECIES_STEELIX, + .heldItem = ITEM_NONE, + .moves = {MOVE_EARTHQUAKE, MOVE_IRON_TAIL, MOVE_CRUNCH, MOVE_ROCK_TOMB}, + }, + { + .iv = 255, + .lvl = 65, + .species = SPECIES_HITMONCHAN, + .heldItem = ITEM_NONE, + .moves = {MOVE_SKY_UPPERCUT, MOVE_MACH_PUNCH, MOVE_ROCK_SLIDE, MOVE_COUNTER}, + }, + { + .iv = 255, + .lvl = 65, + .species = SPECIES_HITMONLEE, + .heldItem = ITEM_NONE, + .moves = {MOVE_MEGA_KICK, MOVE_FORESIGHT, MOVE_EARTHQUAKE, MOVE_ROCK_SLIDE}, + }, + { + .iv = 255, + .lvl = 66, + .species = SPECIES_STEELIX, + .heldItem = ITEM_NONE, + .moves = {MOVE_EARTHQUAKE, MOVE_IRON_TAIL, MOVE_CRUNCH, MOVE_DRAGON_BREATH}, + }, + { + .iv = 255, + .lvl = 68, + .species = SPECIES_MACHAMP, + .heldItem = ITEM_PERSIM_BERRY, + .moves = {MOVE_CROSS_CHOP, MOVE_EARTHQUAKE, MOVE_BRICK_BREAK, MOVE_ROCK_SLIDE}, + }, +}; + +static const struct TrainerMonItemCustomMoves sTrainerMons_823E388[] = { + { + .iv = 255, + .lvl = 66, + .species = SPECIES_GENGAR, + .heldItem = ITEM_NONE, + .moves = {MOVE_SHADOW_BALL, MOVE_PSYCHIC, MOVE_CONFUSE_RAY, MOVE_HYPNOSIS}, + }, + { + .iv = 255, + .lvl = 66, + .species = SPECIES_CROBAT, + .heldItem = ITEM_NONE, + .moves = {MOVE_SLUDGE_BOMB, MOVE_AIR_CUTTER, MOVE_SHADOW_BALL, MOVE_CONFUSE_RAY}, + }, + { + .iv = 255, + .lvl = 65, + .species = SPECIES_MISDREAVUS, + .heldItem = ITEM_NONE, + .moves = {MOVE_SHADOW_BALL, MOVE_PSYCHIC, MOVE_THUNDERBOLT, MOVE_ATTRACT}, + }, + { + .iv = 255, + .lvl = 68, + .species = SPECIES_ARBOK, + .heldItem = ITEM_NONE, + .moves = {MOVE_SLUDGE_BOMB, MOVE_EARTHQUAKE, MOVE_GIGA_DRAIN, MOVE_DOUBLE_TEAM}, + }, + { + .iv = 255, + .lvl = 70, + .species = SPECIES_GENGAR, + .heldItem = ITEM_CHESTO_BERRY, + .moves = {MOVE_SHADOW_BALL, MOVE_PSYCHIC, MOVE_THUNDERBOLT, MOVE_SLUDGE_BOMB}, + }, +}; + +static const struct TrainerMonItemCustomMoves sTrainerMons_823E3D8[] = { + { + .iv = 255, + .lvl = 68, + .species = SPECIES_GYARADOS, + .heldItem = ITEM_NONE, + .moves = {MOVE_HYPER_BEAM, MOVE_DRAGON_DANCE, MOVE_EARTHQUAKE, MOVE_THUNDER_WAVE}, + }, + { + .iv = 255, + .lvl = 66, + .species = SPECIES_DRAGONITE, + .heldItem = ITEM_NONE, + .moves = {MOVE_HYPER_BEAM, MOVE_EARTHQUAKE, MOVE_DRAGON_CLAW, MOVE_FLAMETHROWER}, + }, + { + .iv = 255, + .lvl = 66, + .species = SPECIES_KINGDRA, + .heldItem = ITEM_NONE, + .moves = {MOVE_HYPER_BEAM, MOVE_DRAGON_DANCE, MOVE_SURF, MOVE_ICE_BEAM}, + }, + { + .iv = 255, + .lvl = 70, + .species = SPECIES_AERODACTYL, + .heldItem = ITEM_NONE, + .moves = {MOVE_HYPER_BEAM, MOVE_ANCIENT_POWER, MOVE_AERIAL_ACE, MOVE_EARTHQUAKE}, + }, + { + .iv = 255, + .lvl = 72, + .species = SPECIES_DRAGONITE, + .heldItem = ITEM_PERSIM_BERRY, + .moves = {MOVE_HYPER_BEAM, MOVE_OUTRAGE, MOVE_THUNDERBOLT, MOVE_ICE_BEAM}, + }, +}; + +static const struct TrainerMonItemCustomMoves sTrainerMons_823E428[] = { + { + .iv = 255, + .lvl = 72, + .species = SPECIES_HERACROSS, + .heldItem = ITEM_NONE, + .moves = {MOVE_MEGAHORN, MOVE_EARTHQUAKE, MOVE_COUNTER, MOVE_ROCK_TOMB}, + }, + { + .iv = 255, + .lvl = 73, + .species = SPECIES_ALAKAZAM, + .heldItem = ITEM_NONE, + .moves = {MOVE_PSYCHIC, MOVE_SHADOW_BALL, MOVE_CALM_MIND, MOVE_REFLECT}, + }, + { + .iv = 255, + .lvl = 72, + .species = SPECIES_TYRANITAR, + .heldItem = ITEM_NONE, + .moves = {MOVE_CRUNCH, MOVE_EARTHQUAKE, MOVE_THUNDERBOLT, MOVE_AERIAL_ACE}, + }, + { + .iv = 255, + .lvl = 73, + .species = SPECIES_ARCANINE, + .heldItem = ITEM_NONE, + .moves = {MOVE_EXTREME_SPEED, MOVE_OVERHEAT, MOVE_AERIAL_ACE, MOVE_IRON_TAIL}, + }, + { + .iv = 255, + .lvl = 73, + .species = SPECIES_EXEGGUTOR, + .heldItem = ITEM_NONE, + .moves = {MOVE_GIGA_DRAIN, MOVE_PSYCHIC, MOVE_SLEEP_POWDER, MOVE_LIGHT_SCREEN}, + }, + { + .iv = 255, + .lvl = 75, + .species = SPECIES_BLASTOISE, + .heldItem = ITEM_SITRUS_BERRY, + .moves = {MOVE_HYDRO_PUMP, MOVE_ICE_BEAM, MOVE_EARTHQUAKE, MOVE_RAIN_DANCE}, + }, +}; + +static const struct TrainerMonItemCustomMoves sTrainerMons_823E488[] = { + { + .iv = 255, + .lvl = 72, + .species = SPECIES_HERACROSS, + .heldItem = ITEM_NONE, + .moves = {MOVE_MEGAHORN, MOVE_EARTHQUAKE, MOVE_COUNTER, MOVE_ROCK_TOMB}, + }, + { + .iv = 255, + .lvl = 73, + .species = SPECIES_ALAKAZAM, + .heldItem = ITEM_NONE, + .moves = {MOVE_PSYCHIC, MOVE_SHADOW_BALL, MOVE_CALM_MIND, MOVE_REFLECT}, + }, + { + .iv = 255, + .lvl = 72, + .species = SPECIES_TYRANITAR, + .heldItem = ITEM_NONE, + .moves = {MOVE_CRUNCH, MOVE_EARTHQUAKE, MOVE_THUNDERBOLT, MOVE_AERIAL_ACE}, + }, + { + .iv = 255, + .lvl = 73, + .species = SPECIES_GYARADOS, + .heldItem = ITEM_NONE, + .moves = {MOVE_HYDRO_PUMP, MOVE_DRAGON_DANCE, MOVE_EARTHQUAKE, MOVE_HYPER_BEAM}, + }, + { + .iv = 255, + .lvl = 73, + .species = SPECIES_ARCANINE, + .heldItem = ITEM_NONE, + .moves = {MOVE_EXTREME_SPEED, MOVE_OVERHEAT, MOVE_AERIAL_ACE, MOVE_IRON_TAIL}, + }, + { + .iv = 255, + .lvl = 75, + .species = SPECIES_VENUSAUR, + .heldItem = ITEM_SITRUS_BERRY, + .moves = {MOVE_SOLAR_BEAM, MOVE_SLUDGE_BOMB, MOVE_EARTHQUAKE, MOVE_SUNNY_DAY}, + }, +}; + +static const struct TrainerMonItemCustomMoves sTrainerMons_823E4E8[] = { + { + .iv = 255, + .lvl = 72, + .species = SPECIES_HERACROSS, + .heldItem = ITEM_NONE, + .moves = {MOVE_MEGAHORN, MOVE_EARTHQUAKE, MOVE_COUNTER, MOVE_ROCK_TOMB}, + }, + { + .iv = 255, + .lvl = 73, + .species = SPECIES_ALAKAZAM, + .heldItem = ITEM_NONE, + .moves = {MOVE_PSYCHIC, MOVE_SHADOW_BALL, MOVE_CALM_MIND, MOVE_REFLECT}, + }, + { + .iv = 255, + .lvl = 72, + .species = SPECIES_TYRANITAR, + .heldItem = ITEM_NONE, + .moves = {MOVE_CRUNCH, MOVE_EARTHQUAKE, MOVE_THUNDERBOLT, MOVE_AERIAL_ACE}, + }, + { + .iv = 255, + .lvl = 73, + .species = SPECIES_EXEGGUTOR, + .heldItem = ITEM_NONE, + .moves = {MOVE_GIGA_DRAIN, MOVE_PSYCHIC, MOVE_SLEEP_POWDER, MOVE_LIGHT_SCREEN}, + }, + { + .iv = 255, + .lvl = 73, + .species = SPECIES_GYARADOS, + .heldItem = ITEM_NONE, + .moves = {MOVE_HYDRO_PUMP, MOVE_DRAGON_DANCE, MOVE_EARTHQUAKE, MOVE_HYPER_BEAM}, + }, + { + .iv = 255, + .lvl = 75, + .species = SPECIES_CHARIZARD, + .heldItem = ITEM_SITRUS_BERRY, + .moves = {MOVE_FIRE_BLAST, MOVE_DRAGON_CLAW, MOVE_AERIAL_ACE, MOVE_EARTHQUAKE}, + }, +}; + +static const struct TrainerMonNoItemDefaultMoves sTrainerMons_823E548[] = { + { + .iv = 50, + .lvl = 39, + .species = SPECIES_WEEZING, + }, + { + .iv = 50, + .lvl = 39, + .species = SPECIES_MUK, + }, +}; diff --git a/src/data/trainers.h b/src/data/trainers.h new file mode 100644 index 000000000..46c4ef210 --- /dev/null +++ b/src/data/trainers.h @@ -0,0 +1,8918 @@ +const struct Trainer gTrainers[] = { + [TRAINER_NONE] = { + .partyFlags = 0, + .trainerClass = CLASS_PKMN_TRAINER, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_AQUA_LEADER_ARCHIE, + .trainerName = _(""), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = 0, + .partySize = 0, + .party = NULL + }, + [TRAINER_AQUA_LEADER_1] = { + .partyFlags = 0, + .trainerClass = CLASS_AQUA_LEADER, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_AQUA, + .trainerPic = TRAINER_PIC_AQUA_LEADER_ARCHIE, + .trainerName = _(""), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823A1A0} + }, + [TRAINER_TEAM_AQUA_1] = { + .partyFlags = 0, + .trainerClass = CLASS_TEAM_AQUA, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_AQUA, + .trainerPic = TRAINER_PIC_AQUA_GRUNT_M, + .trainerName = _(""), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823A1A8} + }, + [TRAINER_TEAM_AQUA_2] = { + .partyFlags = 0, + .trainerClass = CLASS_TEAM_AQUA, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_AQUA, + .trainerPic = TRAINER_PIC_AQUA_GRUNT_F, + .trainerName = _(""), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823A1B0} + }, + [TRAINER_AROMA_LADY_1] = { + .partyFlags = 0, + .trainerClass = CLASS_AROMA_LADY, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_FEMALE, + .trainerPic = TRAINER_PIC_RS_AROMA_LADY, + .trainerName = _(""), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823A1B8} + }, + [TRAINER_RUIN_MANIAC_1] = { + .partyFlags = 0, + .trainerClass = CLASS_RUIN_MANIAC, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_HIKER, + .trainerPic = TRAINER_PIC_RS_RUIN_MANIAC, + .trainerName = _(""), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823A1C0} + }, + [TRAINER_INTERVIEWER_1] = { + .partyFlags = 0, + .trainerClass = CLASS_INTERVIEWER, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_INTERVIEWER, + .trainerPic = TRAINER_PIC_INTERVIEWER, + .trainerName = _(""), + .items = {}, + .doubleBattle = TRUE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823A1C8} + }, + [TRAINER_TUBER_1] = { + .partyFlags = 0, + .trainerClass = CLASS_TUBER, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_GIRL, + .trainerPic = TRAINER_PIC_RS_TUBER_F, + .trainerName = _(""), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823A1D0} + }, + [TRAINER_TUBER_2] = { + .partyFlags = 0, + .trainerClass = CLASS_TUBER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_TUBER_M, + .trainerName = _(""), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823A1D8} + }, + [TRAINER_COOLTRAINER_1] = { + .partyFlags = 0, + .trainerClass = CLASS_COOLTRAINER, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_COOL, + .trainerPic = TRAINER_PIC_RS_COOLTRAINER_M, + .trainerName = _(""), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE | AI_SCRIPT_TRY_TO_FAINT | AI_SCRIPT_CHECK_VIABILITY, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823A1E0} + }, + [TRAINER_COOLTRAINER_2] = { + .partyFlags = 0, + .trainerClass = CLASS_COOLTRAINER, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_COOL, + .trainerPic = TRAINER_PIC_RS_COOLTRAINER_F, + .trainerName = _(""), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE | AI_SCRIPT_TRY_TO_FAINT | AI_SCRIPT_CHECK_VIABILITY, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823A1E8} + }, + [TRAINER_HEX_MANIAC_1] = { + .partyFlags = 0, + .trainerClass = CLASS_HEX_MANIAC, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_SUSPICIOUS, + .trainerPic = TRAINER_PIC_HEX_MANIAC, + .trainerName = _(""), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823A1F0} + }, + [TRAINER_LADY_1] = { + .partyFlags = 0, + .trainerClass = CLASS_LADY, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_FEMALE, + .trainerPic = TRAINER_PIC_RS_LADY, + .trainerName = _(""), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823A1F8} + }, + [TRAINER_BEAUTY_1] = { + .partyFlags = 0, + .trainerClass = CLASS_BEAUTY, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_FEMALE, + .trainerPic = TRAINER_PIC_RS_BEAUTY, + .trainerName = _(""), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823A200} + }, + [TRAINER_RICH_BOY_1] = { + .partyFlags = 0, + .trainerClass = CLASS_RICH_BOY, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_RICH, + .trainerPic = TRAINER_PIC_RICH_BOY, + .trainerName = _(""), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823A208} + }, + [TRAINER_POKEMANIAC_1] = { + .partyFlags = 0, + .trainerClass = CLASS_POKEMANIAC, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_SUSPICIOUS, + .trainerPic = TRAINER_PIC_RS_POKEMANIAC, + .trainerName = _(""), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823A210} + }, + [TRAINER_SWIMMER_MALE_1] = { + .partyFlags = 0, + .trainerClass = CLASS_SWIMMER_MALE, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_FEMALE, + .trainerPic = TRAINER_PIC_RS_SWIMMER_M, + .trainerName = _(""), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823A218} + }, + [TRAINER_BLACK_BELT_1] = { + .partyFlags = 0, + .trainerClass = CLASS_BLACK_BELT, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_INTENSE, + .trainerPic = TRAINER_PIC_RS_BLACK_BELT, + .trainerName = _(""), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823A220} + }, + [TRAINER_GUITARIST_1] = { + .partyFlags = 0, + .trainerClass = CLASS_GUITARIST, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_INTENSE, + .trainerPic = TRAINER_PIC_GUITARIST, + .trainerName = _(""), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823A228} + }, + [TRAINER_KINDLER_1] = { + .partyFlags = 0, + .trainerClass = CLASS_KINDLER, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_HIKER, + .trainerPic = TRAINER_PIC_KINDLER, + .trainerName = _(""), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823A230} + }, + [TRAINER_CAMPER_1] = { + .partyFlags = 0, + .trainerClass = CLASS_CAMPER, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_RS_CAMPER, + .trainerName = _(""), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823A238} + }, + [TRAINER_BUG_MANIAC_1] = { + .partyFlags = 0, + .trainerClass = CLASS_BUG_MANIAC, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_SUSPICIOUS, + .trainerPic = TRAINER_PIC_BUG_MANIAC, + .trainerName = _(""), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823A240} + }, + [TRAINER_PSYCHIC_1] = { + .partyFlags = 0, + .trainerClass = CLASS_PSYCHIC, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_INTENSE, + .trainerPic = TRAINER_PIC_RS_PSYCHIC_M, + .trainerName = _(""), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823A248} + }, + [TRAINER_PSYCHIC_2] = { + .partyFlags = 0, + .trainerClass = CLASS_PSYCHIC, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_INTENSE, + .trainerPic = TRAINER_PIC_RS_PSYCHIC_F, + .trainerName = _(""), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823A250} + }, + [TRAINER_GENTLEMAN_1] = { + .partyFlags = 0, + .trainerClass = CLASS_GENTLEMAN, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_RICH, + .trainerPic = TRAINER_PIC_RS_GENTLEMAN, + .trainerName = _(""), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823A258} + }, + [TRAINER_ELITE_FOUR_SIDNEY] = { + .partyFlags = 0, + .trainerClass = CLASS_ELITE_FOUR, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_ELITE_FOUR, + .trainerPic = TRAINER_PIC_ELITE_FOUR_SIDNEY, + .trainerName = _("SIDNEY"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823A260} + }, + [TRAINER_ELITE_FOUR_PHOEBE] = { + .partyFlags = 0, + .trainerClass = CLASS_ELITE_FOUR, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_ELITE_FOUR, + .trainerPic = TRAINER_PIC_ELITE_FOUR_PHOEBE, + .trainerName = _("PHOEBE"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823A268} + }, + [TRAINER_LEADER_ROXANNE] = { + .partyFlags = 0, + .trainerClass = CLASS_LEADER, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_FEMALE, + .trainerPic = TRAINER_PIC_LEADER_ROXANNE, + .trainerName = _("ROXANNE"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823A270} + }, + [TRAINER_LEADER_BRAWLY] = { + .partyFlags = 0, + .trainerClass = CLASS_LEADER, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_LEADER_BRAWLY, + .trainerName = _("BRAWLY"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823A278} + }, + [TRAINER_LEADER_TATE_LIZA] = { + .partyFlags = 0, + .trainerClass = CLASS_LEADER, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_FEMALE, + .trainerPic = TRAINER_PIC_LEADER_TATE_AND_LIZA, + .trainerName = _("TATE&LIZA"), + .items = {}, + .doubleBattle = TRUE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823A280} + }, + [TRAINER_SCHOOL_KID_1] = { + .partyFlags = 0, + .trainerClass = CLASS_SCHOOL_KID, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_SCHOOL_KID_M, + .trainerName = _(""), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823A288} + }, + [TRAINER_SCHOOL_KID_2] = { + .partyFlags = 0, + .trainerClass = CLASS_SCHOOL_KID, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_SCHOOL_KID_F, + .trainerName = _(""), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823A290} + }, + [TRAINER_SR_AND_JR_1] = { + .partyFlags = 0, + .trainerClass = CLASS_SR_AND_JR, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_TWINS, + .trainerPic = TRAINER_PIC_SR_AND_JR, + .trainerName = _(""), + .items = {}, + .doubleBattle = TRUE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823A298} + }, + [TRAINER_POKEFAN_1] = { + .partyFlags = 0, + .trainerClass = CLASS_POKEFAN, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_TWINS, + .trainerPic = TRAINER_PIC_POKEFAN_M, + .trainerName = _(""), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823A2A0} + }, + [TRAINER_POKEFAN_2] = { + .partyFlags = 0, + .trainerClass = CLASS_POKEFAN, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_TWINS, + .trainerPic = TRAINER_PIC_POKEFAN_F, + .trainerName = _(""), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823A2A8} + }, + [TRAINER_EXPERT_1] = { + .partyFlags = 0, + .trainerClass = CLASS_EXPERT, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_INTENSE, + .trainerPic = TRAINER_PIC_EXPERT_M, + .trainerName = _(""), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823A2B0} + }, + [TRAINER_EXPERT_2] = { + .partyFlags = 0, + .trainerClass = CLASS_EXPERT, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_INTENSE, + .trainerPic = TRAINER_PIC_EXPERT_F, + .trainerName = _(""), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823A2B8} + }, + [TRAINER_YOUNGSTER_1] = { + .partyFlags = 0, + .trainerClass = CLASS_YOUNGSTER, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_RS_YOUNGSTER, + .trainerName = _(""), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823A2C0} + }, + [TRAINER_CHAMPION_1] = { + .partyFlags = 0, + .trainerClass = CLASS_CHAMPION, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_CHAMPION_STEVEN, + .trainerName = _(""), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE | AI_SCRIPT_TRY_TO_FAINT | AI_SCRIPT_CHECK_VIABILITY, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823A2C8} + }, + [TRAINER_FISHERMAN_1] = { + .partyFlags = 0, + .trainerClass = CLASS_FISHERMAN, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_HIKER, + .trainerPic = TRAINER_PIC_RS_FISHERMAN, + .trainerName = _(""), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823A2D0} + }, + [TRAINER_TRIATHLETE_1] = { + .partyFlags = 0, + .trainerClass = CLASS_TRIATHLETE, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_CYCLING_TRIATHLETE_M, + .trainerName = _(""), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823A2D8} + }, + [TRAINER_TRIATHLETE_2] = { + .partyFlags = 0, + .trainerClass = CLASS_TRIATHLETE, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_FEMALE, + .trainerPic = TRAINER_PIC_CYCLING_TRIATHLETE_F, + .trainerName = _(""), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823A2E0} + }, + [TRAINER_TRIATHLETE_3] = { + .partyFlags = 0, + .trainerClass = CLASS_TRIATHLETE, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_RUNNING_TRIATHLETE_M, + .trainerName = _(""), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823A2E8} + }, + [TRAINER_TRIATHLETE_4] = { + .partyFlags = 0, + .trainerClass = CLASS_TRIATHLETE, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_FEMALE, + .trainerPic = TRAINER_PIC_RUNNING_TRIATHLETE_F, + .trainerName = _(""), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823A2F0} + }, + [TRAINER_TRIATHLETE_5] = { + .partyFlags = 0, + .trainerClass = CLASS_TRIATHLETE, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_SWIMMING_TRIATHLETE_M, + .trainerName = _(""), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823A2F8} + }, + [TRAINER_TRIATHLETE_6] = { + .partyFlags = 0, + .trainerClass = CLASS_TRIATHLETE, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_FEMALE, + .trainerPic = TRAINER_PIC_SWIMMING_TRIATHLETE_F, + .trainerName = _(""), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823A300} + }, + [TRAINER_DRAGON_TAMER_1] = { + .partyFlags = 0, + .trainerClass = CLASS_DRAGON_TAMER, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_INTENSE, + .trainerPic = TRAINER_PIC_DRAGON_TAMER, + .trainerName = _(""), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823A308} + }, + [TRAINER_BIRD_KEEPER_1] = { + .partyFlags = 0, + .trainerClass = CLASS_BIRD_KEEPER, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_COOL, + .trainerPic = TRAINER_PIC_RS_BIRD_KEEPER, + .trainerName = _(""), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823A310} + }, + [TRAINER_NINJA_BOY_1] = { + .partyFlags = 0, + .trainerClass = CLASS_NINJA_BOY, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_SUSPICIOUS, + .trainerPic = TRAINER_PIC_NINJA_BOY, + .trainerName = _(""), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823A318} + }, + [TRAINER_BATTLE_GIRL_1] = { + .partyFlags = 0, + .trainerClass = CLASS_BATTLE_GIRL, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_INTENSE, + .trainerPic = TRAINER_PIC_BATTLE_GIRL, + .trainerName = _(""), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823A320} + }, + [TRAINER_PARASOL_LADY_1] = { + .partyFlags = 0, + .trainerClass = CLASS_PARASOL_LADY, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_FEMALE, + .trainerPic = TRAINER_PIC_PARASOL_LADY, + .trainerName = _(""), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823A328} + }, + [TRAINER_SWIMMER_FEMALE_1] = { + .partyFlags = 0, + .trainerClass = CLASS_SWIMMER_FEMALE, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_FEMALE, + .trainerPic = TRAINER_PIC_RS_SWIMMER_F, + .trainerName = _(""), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823A330} + }, + [TRAINER_PICNICKER_1] = { + .partyFlags = 0, + .trainerClass = CLASS_PICNICKER, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_GIRL, + .trainerPic = TRAINER_PIC_RS_PICNICKER, + .trainerName = _(""), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823A338} + }, + [TRAINER_TWINS_1] = { + .partyFlags = 0, + .trainerClass = CLASS_TWINS, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_TWINS, + .trainerPic = TRAINER_PIC_RS_TWINS, + .trainerName = _(""), + .items = {}, + .doubleBattle = TRUE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823A340} + }, + [TRAINER_SAILOR_1] = { + .partyFlags = 0, + .trainerClass = CLASS_SAILOR, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_RS_SAILOR, + .trainerName = _(""), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823A348} + }, + [TRAINER_BOARDER_1] = { + .partyFlags = 0, + .trainerClass = CLASS_BOARDER, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_RS_YOUNGSTER, + .trainerName = _(""), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823A350} + }, + [TRAINER_BOARDER_2] = { + .partyFlags = 0, + .trainerClass = CLASS_BOARDER, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_RS_YOUNGSTER, + .trainerName = _(""), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823A358} + }, + [TRAINER_COLLECTOR_1] = { + .partyFlags = 0, + .trainerClass = CLASS_COLLECTOR, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_SUSPICIOUS, + .trainerPic = TRAINER_PIC_COLLECTOR, + .trainerName = _(""), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823A360} + }, + [TRAINER_PKMN_TRAINER_2] = { + .partyFlags = 0, + .trainerClass = CLASS_PKMN_TRAINER_3, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_WALLY, + .trainerName = _(""), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823A368} + }, + [TRAINER_PKMN_TRAINER_3] = { + .partyFlags = 0, + .trainerClass = CLASS_PKMN_TRAINER_3, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_RS_BRENDAN_1, + .trainerName = _(""), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823A370} + }, + [TRAINER_PKMN_TRAINER_4] = { + .partyFlags = 0, + .trainerClass = CLASS_PKMN_TRAINER_3, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_RS_BRENDAN_1, + .trainerName = _(""), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823A378} + }, + [TRAINER_PKMN_TRAINER_5] = { + .partyFlags = 0, + .trainerClass = CLASS_PKMN_TRAINER_3, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_RS_BRENDAN_1, + .trainerName = _(""), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823A380} + }, + [TRAINER_PKMN_TRAINER_6] = { + .partyFlags = 0, + .trainerClass = CLASS_PKMN_TRAINER_3, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_FEMALE, + .trainerPic = TRAINER_PIC_RS_MAY_1, + .trainerName = _(""), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823A388} + }, + [TRAINER_PKMN_TRAINER_7] = { + .partyFlags = 0, + .trainerClass = CLASS_PKMN_TRAINER_3, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_FEMALE, + .trainerPic = TRAINER_PIC_RS_MAY_1, + .trainerName = _(""), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823A390} + }, + [TRAINER_PKMN_TRAINER_8] = { + .partyFlags = 0, + .trainerClass = CLASS_PKMN_TRAINER_3, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_FEMALE, + .trainerPic = TRAINER_PIC_RS_MAY_1, + .trainerName = _(""), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823A398} + }, + [TRAINER_PKMN_BREEDER_1] = { + .partyFlags = 0, + .trainerClass = CLASS_PKMN_BREEDER, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_POKEMON_BREEDER_M, + .trainerName = _(""), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823A3A0} + }, + [TRAINER_PKMN_BREEDER_2] = { + .partyFlags = 0, + .trainerClass = CLASS_PKMN_BREEDER, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_FEMALE, + .trainerPic = TRAINER_PIC_RS_POKEMON_BREEDER_F, + .trainerName = _(""), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823A3A8} + }, + [TRAINER_PKMN_RANGER_1] = { + .partyFlags = 0, + .trainerClass = CLASS_PKMN_RANGER, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_COOL, + .trainerPic = TRAINER_PIC_RS_POKEMON_RANGER_M, + .trainerName = _(""), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE | AI_SCRIPT_TRY_TO_FAINT | AI_SCRIPT_CHECK_VIABILITY, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823A3B0} + }, + [TRAINER_PKMN_RANGER_2] = { + .partyFlags = 0, + .trainerClass = CLASS_PKMN_RANGER, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_COOL, + .trainerPic = TRAINER_PIC_RS_POKEMON_RANGER_F, + .trainerName = _(""), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE | AI_SCRIPT_TRY_TO_FAINT | AI_SCRIPT_CHECK_VIABILITY, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823A3B8} + }, + [TRAINER_MAGMA_LEADER_1] = { + .partyFlags = 0, + .trainerClass = CLASS_MAGMA_LEADER, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MAGMA, + .trainerPic = TRAINER_PIC_MAGMA_LEADER_MAXIE, + .trainerName = _(""), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823A3C0} + }, + [TRAINER_TEAM_MAGMA_1] = { + .partyFlags = 0, + .trainerClass = CLASS_TEAM_MAGMA, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MAGMA, + .trainerPic = TRAINER_PIC_MAGMA_GRUNT_M, + .trainerName = _(""), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823A3C8} + }, + [TRAINER_TEAM_MAGMA_2] = { + .partyFlags = 0, + .trainerClass = CLASS_TEAM_MAGMA, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MAGMA, + .trainerPic = TRAINER_PIC_MAGMA_GRUNT_F, + .trainerName = _(""), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823A3D0} + }, + [TRAINER_LASS_1] = { + .partyFlags = 0, + .trainerClass = CLASS_LASS, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_FEMALE, + .trainerPic = TRAINER_PIC_RS_LASS, + .trainerName = _(""), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823A3D8} + }, + [TRAINER_BUG_CATCHER_1] = { + .partyFlags = 0, + .trainerClass = CLASS_BUG_CATCHER, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_RS_BUG_CATCHER, + .trainerName = _(""), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823A3E0} + }, + [TRAINER_HIKER_1] = { + .partyFlags = 0, + .trainerClass = CLASS_HIKER, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_HIKER, + .trainerPic = TRAINER_PIC_RS_HIKER, + .trainerName = _(""), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823A3E8} + }, + [TRAINER_YOUNG_COUPLE_1] = { + .partyFlags = 0, + .trainerClass = CLASS_YOUNG_COUPLE, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_GIRL, + .trainerPic = TRAINER_PIC_RS_YOUNG_COUPLE, + .trainerName = _(""), + .items = {}, + .doubleBattle = TRUE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823A3F0} + }, + [TRAINER_OLD_COUPLE_1] = { + .partyFlags = 0, + .trainerClass = CLASS_OLD_COUPLE, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_INTENSE, + .trainerPic = TRAINER_PIC_OLD_COUPLE, + .trainerName = _(""), + .items = {}, + .doubleBattle = TRUE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823A400} + }, + [TRAINER_SIS_AND_BRO_1] = { + .partyFlags = 0, + .trainerClass = CLASS_SIS_AND_BRO, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_SWIMMER, + .trainerPic = TRAINER_PIC_RS_SIS_AND_BRO, + .trainerName = _(""), + .items = {}, + .doubleBattle = TRUE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823A408} + }, + [TRAINER_AQUA_ADMIN_MATT] = { + .partyFlags = 0, + .trainerClass = CLASS_AQUA_ADMIN, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_AQUA, + .trainerPic = TRAINER_PIC_AQUA_ADMIN_M, + .trainerName = _("MATT"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823A410} + }, + [TRAINER_AQUA_ADMIN_SHELLY] = { + .partyFlags = 0, + .trainerClass = CLASS_AQUA_ADMIN, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_AQUA, + .trainerPic = TRAINER_PIC_AQUA_ADMIN_F, + .trainerName = _("SHELLY"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823A418} + }, + [TRAINER_MAGMA_ADMIN_TABITHA] = { + .partyFlags = 0, + .trainerClass = CLASS_MAGMA_ADMIN, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MAGMA, + .trainerPic = TRAINER_PIC_MAGMA_ADMIN_M, + .trainerName = _("TABITHA"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823A420} + }, + [TRAINER_MAGMA_ADMIN_COURTNEY] = { + .partyFlags = 0, + .trainerClass = CLASS_MAGMA_ADMIN, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MAGMA, + .trainerPic = TRAINER_PIC_MAGMA_ADMIN_F, + .trainerName = _("COURTNEY"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823A428} + }, + [TRAINER_LEADER_WATTSON] = { + .partyFlags = 0, + .trainerClass = CLASS_LEADER, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_LEADER_WATTSON, + .trainerName = _("WATTSON"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823A430} + }, + [TRAINER_LEADER_FLANNERY] = { + .partyFlags = 0, + .trainerClass = CLASS_LEADER, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_FEMALE, + .trainerPic = TRAINER_PIC_LEADER_FLANNERY, + .trainerName = _("FLANNERY"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823A438} + }, + [TRAINER_LEADER_NORMAN] = { + .partyFlags = 0, + .trainerClass = CLASS_LEADER, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_LEADER_NORMAN, + .trainerName = _("NORMAN"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823A440} + }, + [TRAINER_LEADER_WINONA] = { + .partyFlags = 0, + .trainerClass = CLASS_LEADER, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_FEMALE, + .trainerPic = TRAINER_PIC_LEADER_WINONA, + .trainerName = _("WINONA"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823A448} + }, + [TRAINER_LEADER_WALLACE] = { + .partyFlags = 0, + .trainerClass = CLASS_LEADER, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_LEADER_WALLACE, + .trainerName = _("WALLACE"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823A450} + }, + [TRAINER_ELITE_FOUR_GLACIA] = { + .partyFlags = 0, + .trainerClass = CLASS_ELITE_FOUR, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_ELITE_FOUR, + .trainerPic = TRAINER_PIC_ELITE_FOUR_GLACIA, + .trainerName = _("GLACIA"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823A458} + }, + [TRAINER_ELITE_FOUR_DRAKE] = { + .partyFlags = 0, + .trainerClass = CLASS_ELITE_FOUR, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_ELITE_FOUR, + .trainerPic = TRAINER_PIC_ELITE_FOUR_DRAKE, + .trainerName = _("DRAKE"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823A460} + }, + [TRAINER_YOUNGSTER_BEN] = { + .partyFlags = 0, + .trainerClass = CLASS_YOUNGSTER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_YOUNGSTER, + .trainerName = _("BEN"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823A468} + }, + [TRAINER_YOUNGSTER_CALVIN] = { + .partyFlags = 0, + .trainerClass = CLASS_YOUNGSTER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_YOUNGSTER, + .trainerName = _("CALVIN"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823A478} + }, + [TRAINER_YOUNGSTER_JOSH] = { + .partyFlags = 0, + .trainerClass = CLASS_YOUNGSTER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_YOUNGSTER, + .trainerName = _("JOSH"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 3, + .party = {.NoItemDefaultMoves = sTrainerMons_823A480} + }, + [TRAINER_YOUNGSTER_TIMMY] = { + .partyFlags = 0, + .trainerClass = CLASS_YOUNGSTER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_YOUNGSTER, + .trainerName = _("TIMMY"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823A498} + }, + [TRAINER_YOUNGSTER_JOEY] = { + .partyFlags = 0, + .trainerClass = CLASS_YOUNGSTER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_YOUNGSTER, + .trainerName = _("JOEY"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823A4A8} + }, + [TRAINER_YOUNGSTER_DAN] = { + .partyFlags = 0, + .trainerClass = CLASS_YOUNGSTER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_YOUNGSTER, + .trainerName = _("DAN"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823A4B8} + }, + [TRAINER_YOUNGSTER_CHAD] = { + .partyFlags = 0, + .trainerClass = CLASS_YOUNGSTER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_YOUNGSTER, + .trainerName = _("CHAD"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823A4C0} + }, + [TRAINER_YOUNGSTER_TYLER] = { + .partyFlags = 0, + .trainerClass = CLASS_YOUNGSTER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_YOUNGSTER, + .trainerName = _("TYLER"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823A4D0} + }, + [TRAINER_YOUNGSTER_EDDIE] = { + .partyFlags = 0, + .trainerClass = CLASS_YOUNGSTER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_YOUNGSTER, + .trainerName = _("EDDIE"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823A4D8} + }, + [TRAINER_YOUNGSTER_DILLON] = { + .partyFlags = 0, + .trainerClass = CLASS_YOUNGSTER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_YOUNGSTER, + .trainerName = _("DILLON"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823A4E0} + }, + [TRAINER_YOUNGSTER_YASU] = { + .partyFlags = 0, + .trainerClass = CLASS_YOUNGSTER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_YOUNGSTER, + .trainerName = _("YASU"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 3, + .party = {.NoItemDefaultMoves = sTrainerMons_823A4F0} + }, + [TRAINER_YOUNGSTER_DAVE] = { + .partyFlags = 0, + .trainerClass = CLASS_YOUNGSTER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_YOUNGSTER, + .trainerName = _("DAVE"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823A508} + }, + [TRAINER_YOUNGSTER_BEN_2] = { + .partyFlags = 0, + .trainerClass = CLASS_YOUNGSTER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_YOUNGSTER, + .trainerName = _("BEN"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823A518} + }, + [TRAINER_BUG_CATCHER_RICK] = { + .partyFlags = 0, + .trainerClass = CLASS_BUG_CATCHER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_BUG_CATCHER, + .trainerName = _("RICK"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823A528} + }, + [TRAINER_BUG_CATCHER_DOUG] = { + .partyFlags = 0, + .trainerClass = CLASS_BUG_CATCHER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_BUG_CATCHER, + .trainerName = _("DOUG"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 3, + .party = {.NoItemDefaultMoves = sTrainerMons_823A538} + }, + [TRAINER_BUG_CATCHER_SAMMY] = { + .partyFlags = 0, + .trainerClass = CLASS_BUG_CATCHER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_BUG_CATCHER, + .trainerName = _("SAMMY"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823A550} + }, + [TRAINER_BUG_CATCHER_COLTON] = { + .partyFlags = 0, + .trainerClass = CLASS_BUG_CATCHER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_BUG_CATCHER, + .trainerName = _("COLTON"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 3, + .party = {.NoItemDefaultMoves = sTrainerMons_823A558} + }, + [TRAINER_BUG_CATCHER_GREG] = { + .partyFlags = 0, + .trainerClass = CLASS_BUG_CATCHER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_BUG_CATCHER, + .trainerName = _("GREG"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 4, + .party = {.NoItemDefaultMoves = sTrainerMons_823A570} + }, + [TRAINER_BUG_CATCHER_JAMES] = { + .partyFlags = 0, + .trainerClass = CLASS_BUG_CATCHER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_BUG_CATCHER, + .trainerName = _("JAMES"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823A590} + }, + [TRAINER_BUG_CATCHER_KENT] = { + .partyFlags = 0, + .trainerClass = CLASS_BUG_CATCHER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_BUG_CATCHER, + .trainerName = _("KENT"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823A5A0} + }, + [TRAINER_BUG_CATCHER_ROBBY] = { + .partyFlags = 0, + .trainerClass = CLASS_BUG_CATCHER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_BUG_CATCHER, + .trainerName = _("ROBBY"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 3, + .party = {.NoItemDefaultMoves = sTrainerMons_823A5B0} + }, + [TRAINER_BUG_CATCHER_CALE] = { + .partyFlags = 0, + .trainerClass = CLASS_BUG_CATCHER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_BUG_CATCHER, + .trainerName = _("CALE"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 4, + .party = {.NoItemDefaultMoves = sTrainerMons_823A5C8} + }, + [TRAINER_BUG_CATCHER_KEIGO] = { + .partyFlags = 0, + .trainerClass = CLASS_BUG_CATCHER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_BUG_CATCHER, + .trainerName = _("KEIGO"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 3, + .party = {.NoItemDefaultMoves = sTrainerMons_823A5E8} + }, + [TRAINER_BUG_CATCHER_ELIJAH] = { + .partyFlags = 0, + .trainerClass = CLASS_BUG_CATCHER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_BUG_CATCHER, + .trainerName = _("ELIJAH"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823A600} + }, + [TRAINER_BUG_CATCHER_2] = { + .partyFlags = 0, + .trainerClass = CLASS_BUG_CATCHER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_BUG_CATCHER, + .trainerName = _(""), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 3, + .party = {.NoItemDefaultMoves = sTrainerMons_823A608} + }, + [TRAINER_BUG_CATCHER_BRENT] = { + .partyFlags = 0, + .trainerClass = CLASS_BUG_CATCHER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_BUG_CATCHER, + .trainerName = _("BRENT"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823A620} + }, + [TRAINER_BUG_CATCHER_CONNER] = { + .partyFlags = 0, + .trainerClass = CLASS_BUG_CATCHER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_BUG_CATCHER, + .trainerName = _("CONNER"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 3, + .party = {.NoItemDefaultMoves = sTrainerMons_823A630} + }, + [TRAINER_LASS_JANICE] = { + .partyFlags = 0, + .trainerClass = CLASS_LASS_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_FEMALE | F_TRAINER_FEMALE, + .trainerPic = TRAINER_PIC_LASS, + .trainerName = _("JANICE"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823A648} + }, + [TRAINER_LASS_SALLY] = { + .partyFlags = 0, + .trainerClass = CLASS_LASS_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_FEMALE | F_TRAINER_FEMALE, + .trainerPic = TRAINER_PIC_LASS, + .trainerName = _("SALLY"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823A658} + }, + [TRAINER_LASS_ROBIN] = { + .partyFlags = 0, + .trainerClass = CLASS_LASS_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_FEMALE | F_TRAINER_FEMALE, + .trainerPic = TRAINER_PIC_LASS, + .trainerName = _("ROBIN"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823A668} + }, + [TRAINER_LASS_CRISSY] = { + .partyFlags = 0, + .trainerClass = CLASS_LASS_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_FEMALE | F_TRAINER_FEMALE, + .trainerPic = TRAINER_PIC_LASS, + .trainerName = _("CRISSY"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 3, + .party = {.NoItemDefaultMoves = sTrainerMons_823A670} + }, + [TRAINER_LASS_MIRIAM] = { + .partyFlags = 0, + .trainerClass = CLASS_LASS_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_FEMALE | F_TRAINER_FEMALE, + .trainerPic = TRAINER_PIC_LASS, + .trainerName = _("MIRIAM"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823A688} + }, + [TRAINER_LASS_IRIS] = { + .partyFlags = 0, + .trainerClass = CLASS_LASS_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_FEMALE | F_TRAINER_FEMALE, + .trainerPic = TRAINER_PIC_LASS, + .trainerName = _("IRIS"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823A698} + }, + [TRAINER_LASS_RELI] = { + .partyFlags = 0, + .trainerClass = CLASS_LASS_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_FEMALE | F_TRAINER_FEMALE, + .trainerPic = TRAINER_PIC_LASS, + .trainerName = _("RELI"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823A6A0} + }, + [TRAINER_LASS_ALI] = { + .partyFlags = 0, + .trainerClass = CLASS_LASS_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_FEMALE | F_TRAINER_FEMALE, + .trainerPic = TRAINER_PIC_LASS, + .trainerName = _("ALI"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 3, + .party = {.NoItemDefaultMoves = sTrainerMons_823A6B0} + }, + [TRAINER_LASS_2] = { + .partyFlags = 0, + .trainerClass = CLASS_LASS_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_FEMALE | F_TRAINER_FEMALE, + .trainerPic = TRAINER_PIC_LASS, + .trainerName = _(""), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823A6C8} + }, + [TRAINER_LASS_HALEY] = { + .partyFlags = 0, + .trainerClass = CLASS_LASS_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_FEMALE | F_TRAINER_FEMALE, + .trainerPic = TRAINER_PIC_LASS, + .trainerName = _("HALEY"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 3, + .party = {.NoItemDefaultMoves = sTrainerMons_823A6D8} + }, + [TRAINER_LASS_ANN] = { + .partyFlags = 0, + .trainerClass = CLASS_LASS_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_FEMALE | F_TRAINER_FEMALE, + .trainerPic = TRAINER_PIC_LASS, + .trainerName = _("ANN"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823A6F0} + }, + [TRAINER_LASS_DAWN] = { + .partyFlags = 0, + .trainerClass = CLASS_LASS_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_FEMALE | F_TRAINER_FEMALE, + .trainerPic = TRAINER_PIC_LASS, + .trainerName = _("DAWN"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823A700} + }, + [TRAINER_LASS_PAIGE] = { + .partyFlags = 0, + .trainerClass = CLASS_LASS_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_FEMALE | F_TRAINER_FEMALE, + .trainerPic = TRAINER_PIC_LASS, + .trainerName = _("PAIGE"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823A710} + }, + [TRAINER_LASS_ANDREA] = { + .partyFlags = 0, + .trainerClass = CLASS_LASS_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_FEMALE | F_TRAINER_FEMALE, + .trainerPic = TRAINER_PIC_LASS, + .trainerName = _("ANDREA"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 3, + .party = {.NoItemDefaultMoves = sTrainerMons_823A720} + }, + [TRAINER_LASS_MEGAN] = { + .partyFlags = 0, + .trainerClass = CLASS_LASS_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_FEMALE | F_TRAINER_FEMALE, + .trainerPic = TRAINER_PIC_LASS, + .trainerName = _("MEGAN"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 5, + .party = {.NoItemDefaultMoves = sTrainerMons_823A738} + }, + [TRAINER_LASS_JULIA] = { + .partyFlags = 0, + .trainerClass = CLASS_LASS_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_FEMALE | F_TRAINER_FEMALE, + .trainerPic = TRAINER_PIC_LASS, + .trainerName = _("JULIA"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823A760} + }, + [TRAINER_LASS_KAY] = { + .partyFlags = 0, + .trainerClass = CLASS_LASS_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_FEMALE | F_TRAINER_FEMALE, + .trainerPic = TRAINER_PIC_LASS, + .trainerName = _("KAY"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823A770} + }, + [TRAINER_LASS_LISA] = { + .partyFlags = 0, + .trainerClass = CLASS_LASS_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_FEMALE | F_TRAINER_FEMALE, + .trainerPic = TRAINER_PIC_LASS, + .trainerName = _("LISA"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823A780} + }, + [TRAINER_SAILOR_EDMOND] = { + .partyFlags = 0, + .trainerClass = CLASS_SAILOR_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_SAILOR, + .trainerName = _("EDMOND"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823A790} + }, + [TRAINER_SAILOR_TREVOR] = { + .partyFlags = 0, + .trainerClass = CLASS_SAILOR_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_SAILOR, + .trainerName = _("TREVOR"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823A7A0} + }, + [TRAINER_SAILOR_LEONARD] = { + .partyFlags = 0, + .trainerClass = CLASS_SAILOR_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_SAILOR, + .trainerName = _("LEONARD"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823A7B0} + }, + [TRAINER_SAILOR_DUNCAN] = { + .partyFlags = 0, + .trainerClass = CLASS_SAILOR_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_SAILOR, + .trainerName = _("DUNCAN"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 3, + .party = {.NoItemDefaultMoves = sTrainerMons_823A7B8} + }, + [TRAINER_SAILOR_HUEY] = { + .partyFlags = 0, + .trainerClass = CLASS_SAILOR_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_SAILOR, + .trainerName = _("HUEY"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823A7D0} + }, + [TRAINER_SAILOR_DYLAN] = { + .partyFlags = 0, + .trainerClass = CLASS_SAILOR_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_SAILOR, + .trainerName = _("DYLAN"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 3, + .party = {.NoItemDefaultMoves = sTrainerMons_823A7E0} + }, + [TRAINER_SAILOR_PHILLIP] = { + .partyFlags = 0, + .trainerClass = CLASS_SAILOR_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_SAILOR, + .trainerName = _("PHILLIP"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823A7F8} + }, + [TRAINER_SAILOR_DWAYNE] = { + .partyFlags = 0, + .trainerClass = CLASS_SAILOR_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_SAILOR, + .trainerName = _("DWAYNE"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823A800} + }, + [TRAINER_CAMPER_LIAM] = { + .partyFlags = F_TRAINER_PARTY_CUSTOM_MOVESET, + .trainerClass = CLASS_CAMPER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_CAMPER, + .trainerName = _("LIAM"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemCustomMoves = sTrainerMons_823A810} + }, + [TRAINER_CAMPER_SHANE] = { + .partyFlags = 0, + .trainerClass = CLASS_CAMPER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_CAMPER, + .trainerName = _("SHANE"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823A830} + }, + [TRAINER_CAMPER_ETHAN] = { + .partyFlags = 0, + .trainerClass = CLASS_CAMPER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_CAMPER, + .trainerName = _("ETHAN"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823A840} + }, + [TRAINER_CAMPER_RICKY] = { + .partyFlags = 0, + .trainerClass = CLASS_CAMPER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_CAMPER, + .trainerName = _("RICKY"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823A848} + }, + [TRAINER_CAMPER_JEFF] = { + .partyFlags = 0, + .trainerClass = CLASS_CAMPER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_CAMPER, + .trainerName = _("JEFF"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823A850} + }, + [TRAINER_CAMPER_2] = { + .partyFlags = 0, + .trainerClass = CLASS_CAMPER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_CAMPER, + .trainerName = _(""), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823A860} + }, + [TRAINER_CAMPER_CHRIS] = { + .partyFlags = 0, + .trainerClass = CLASS_CAMPER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_CAMPER, + .trainerName = _("CHRIS"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823A868} + }, + [TRAINER_CAMPER_DREW] = { + .partyFlags = 0, + .trainerClass = CLASS_CAMPER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_CAMPER, + .trainerName = _("DREW"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 4, + .party = {.NoItemDefaultMoves = sTrainerMons_823A878} + }, + [TRAINER_PICNICKER_DIANA] = { + .partyFlags = 0, + .trainerClass = CLASS_PICNICKER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_GIRL | F_TRAINER_FEMALE, + .trainerPic = TRAINER_PIC_PICNICKER, + .trainerName = _("DIANA"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823A898} + }, + [TRAINER_PICNICKER_NANCY] = { + .partyFlags = 0, + .trainerClass = CLASS_PICNICKER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_GIRL | F_TRAINER_FEMALE, + .trainerPic = TRAINER_PIC_PICNICKER, + .trainerName = _("NANCY"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823A8A0} + }, + [TRAINER_PICNICKER_ISABELLE] = { + .partyFlags = 0, + .trainerClass = CLASS_PICNICKER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_GIRL | F_TRAINER_FEMALE, + .trainerPic = TRAINER_PIC_PICNICKER, + .trainerName = _("ISABELLE"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 3, + .party = {.NoItemDefaultMoves = sTrainerMons_823A8B0} + }, + [TRAINER_PICNICKER_KELSEY] = { + .partyFlags = 0, + .trainerClass = CLASS_PICNICKER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_GIRL | F_TRAINER_FEMALE, + .trainerPic = TRAINER_PIC_PICNICKER, + .trainerName = _("KELSEY"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823A8C8} + }, + [TRAINER_PICNICKER_ALICIA] = { + .partyFlags = 0, + .trainerClass = CLASS_PICNICKER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_GIRL | F_TRAINER_FEMALE, + .trainerPic = TRAINER_PIC_PICNICKER, + .trainerName = _("ALICIA"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 4, + .party = {.NoItemDefaultMoves = sTrainerMons_823A8D8} + }, + [TRAINER_PICNICKER_CAITLIN] = { + .partyFlags = 0, + .trainerClass = CLASS_PICNICKER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_GIRL | F_TRAINER_FEMALE, + .trainerPic = TRAINER_PIC_PICNICKER, + .trainerName = _("CAITLIN"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823A8F8} + }, + [TRAINER_PICNICKER_HEIDI] = { + .partyFlags = 0, + .trainerClass = CLASS_PICNICKER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_GIRL | F_TRAINER_FEMALE, + .trainerPic = TRAINER_PIC_PICNICKER, + .trainerName = _("HEIDI"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823A900} + }, + [TRAINER_PICNICKER_CAROL] = { + .partyFlags = 0, + .trainerClass = CLASS_PICNICKER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_GIRL | F_TRAINER_FEMALE, + .trainerPic = TRAINER_PIC_PICNICKER, + .trainerName = _("CAROL"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823A910} + }, + [TRAINER_PICNICKER_SOFIA] = { + .partyFlags = 0, + .trainerClass = CLASS_PICNICKER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_GIRL | F_TRAINER_FEMALE, + .trainerPic = TRAINER_PIC_PICNICKER, + .trainerName = _("SOFIA"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 3, + .party = {.NoItemDefaultMoves = sTrainerMons_823A920} + }, + [TRAINER_PICNICKER_MARTHA] = { + .partyFlags = 0, + .trainerClass = CLASS_PICNICKER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_GIRL | F_TRAINER_FEMALE, + .trainerPic = TRAINER_PIC_PICNICKER, + .trainerName = _("MARTHA"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823A938} + }, + [TRAINER_PICNICKER_TINA] = { + .partyFlags = 0, + .trainerClass = CLASS_PICNICKER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_GIRL | F_TRAINER_FEMALE, + .trainerPic = TRAINER_PIC_PICNICKER, + .trainerName = _("TINA"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823A948} + }, + [TRAINER_PICNICKER_HANNAH] = { + .partyFlags = 0, + .trainerClass = CLASS_PICNICKER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_GIRL | F_TRAINER_FEMALE, + .trainerPic = TRAINER_PIC_PICNICKER, + .trainerName = _("HANNAH"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 5, + .party = {.NoItemDefaultMoves = sTrainerMons_823A958} + }, + [TRAINER_POKEMANIAC_MARK] = { + .partyFlags = 0, + .trainerClass = CLASS_POKEMANIAC_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_SUSPICIOUS, + .trainerPic = TRAINER_PIC_POKEMANIAC, + .trainerName = _("MARK"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823A980} + }, + [TRAINER_POKEMANIAC_HERMAN] = { + .partyFlags = 0, + .trainerClass = CLASS_POKEMANIAC_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_SUSPICIOUS, + .trainerPic = TRAINER_PIC_POKEMANIAC, + .trainerName = _("HERMAN"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823A990} + }, + [TRAINER_POKEMANIAC_COOPER] = { + .partyFlags = 0, + .trainerClass = CLASS_POKEMANIAC_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_SUSPICIOUS, + .trainerPic = TRAINER_PIC_POKEMANIAC, + .trainerName = _("COOPER"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 3, + .party = {.NoItemDefaultMoves = sTrainerMons_823A9A0} + }, + [TRAINER_POKEMANIAC_STEVE] = { + .partyFlags = 0, + .trainerClass = CLASS_POKEMANIAC_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_SUSPICIOUS, + .trainerPic = TRAINER_PIC_POKEMANIAC, + .trainerName = _("STEVE"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823A9B8} + }, + [TRAINER_POKEMANIAC_WINSTON] = { + .partyFlags = 0, + .trainerClass = CLASS_POKEMANIAC_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_SUSPICIOUS, + .trainerPic = TRAINER_PIC_POKEMANIAC, + .trainerName = _("WINSTON"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823A9C8} + }, + [TRAINER_POKEMANIAC_DAWSON] = { + .partyFlags = 0, + .trainerClass = CLASS_POKEMANIAC_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_SUSPICIOUS, + .trainerPic = TRAINER_PIC_POKEMANIAC, + .trainerName = _("DAWSON"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 3, + .party = {.NoItemDefaultMoves = sTrainerMons_823A9D0} + }, + [TRAINER_POKEMANIAC_ASHTON] = { + .partyFlags = 0, + .trainerClass = CLASS_POKEMANIAC_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_SUSPICIOUS, + .trainerPic = TRAINER_PIC_POKEMANIAC, + .trainerName = _("ASHTON"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823A9E8} + }, + [TRAINER_SUPER_NERD_JOVAN] = { + .partyFlags = 0, + .trainerClass = CLASS_SUPER_NERD, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_SUSPICIOUS, + .trainerPic = TRAINER_PIC_SUPER_NERD, + .trainerName = _("JOVAN"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823A9F8} + }, + [TRAINER_SUPER_NERD_MIGUEL] = { + .partyFlags = 0, + .trainerClass = CLASS_SUPER_NERD, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_SUSPICIOUS, + .trainerPic = TRAINER_PIC_SUPER_NERD, + .trainerName = _("MIGUEL"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 3, + .party = {.NoItemDefaultMoves = sTrainerMons_823AA08} + }, + [TRAINER_SUPER_NERD_AIDAN] = { + .partyFlags = F_TRAINER_PARTY_CUSTOM_MOVESET, + .trainerClass = CLASS_SUPER_NERD, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_SUSPICIOUS, + .trainerPic = TRAINER_PIC_SUPER_NERD, + .trainerName = _("AIDAN"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 4, + .party = {.NoItemCustomMoves = sTrainerMons_823AA20} + }, + [TRAINER_SUPER_NERD_GLENN] = { + .partyFlags = 0, + .trainerClass = CLASS_SUPER_NERD, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_SUSPICIOUS, + .trainerPic = TRAINER_PIC_SUPER_NERD, + .trainerName = _("GLENN"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 3, + .party = {.NoItemDefaultMoves = sTrainerMons_823AA60} + }, + [TRAINER_SUPER_NERD_LESLIE] = { + .partyFlags = F_TRAINER_PARTY_CUSTOM_MOVESET, + .trainerClass = CLASS_SUPER_NERD, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_SUSPICIOUS, + .trainerPic = TRAINER_PIC_SUPER_NERD, + .trainerName = _("LESLIE"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemCustomMoves = sTrainerMons_823AA78} + }, + [TRAINER_SUPER_NERD_1] = { + .partyFlags = 0, + .trainerClass = CLASS_SUPER_NERD, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_SUSPICIOUS, + .trainerPic = TRAINER_PIC_SUPER_NERD, + .trainerName = _(""), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 3, + .party = {.NoItemDefaultMoves = sTrainerMons_823AA88} + }, + [TRAINER_SUPER_NERD_2] = { + .partyFlags = 0, + .trainerClass = CLASS_SUPER_NERD, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_SUSPICIOUS, + .trainerPic = TRAINER_PIC_SUPER_NERD, + .trainerName = _(""), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 4, + .party = {.NoItemDefaultMoves = sTrainerMons_823AAA0} + }, + [TRAINER_SUPER_NERD_3] = { + .partyFlags = 0, + .trainerClass = CLASS_SUPER_NERD, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_SUSPICIOUS, + .trainerPic = TRAINER_PIC_SUPER_NERD, + .trainerName = _(""), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823AAC0} + }, + [TRAINER_SUPER_NERD_ERIK] = { + .partyFlags = 0, + .trainerClass = CLASS_SUPER_NERD, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_SUSPICIOUS, + .trainerPic = TRAINER_PIC_SUPER_NERD, + .trainerName = _("ERIK"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 3, + .party = {.NoItemDefaultMoves = sTrainerMons_823AAD0} + }, + [TRAINER_SUPER_NERD_AVERY] = { + .partyFlags = 0, + .trainerClass = CLASS_SUPER_NERD, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_SUSPICIOUS, + .trainerPic = TRAINER_PIC_SUPER_NERD, + .trainerName = _("AVERY"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 4, + .party = {.NoItemDefaultMoves = sTrainerMons_823AAE8} + }, + [TRAINER_SUPER_NERD_DEREK] = { + .partyFlags = 0, + .trainerClass = CLASS_SUPER_NERD, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_SUSPICIOUS, + .trainerPic = TRAINER_PIC_SUPER_NERD, + .trainerName = _("DEREK"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823AB08} + }, + [TRAINER_SUPER_NERD_ZAC] = { + .partyFlags = 0, + .trainerClass = CLASS_SUPER_NERD, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_SUSPICIOUS, + .trainerPic = TRAINER_PIC_SUPER_NERD, + .trainerName = _("ZAC"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823AB10} + }, + [TRAINER_HIKER_MARCOS] = { + .partyFlags = 0, + .trainerClass = CLASS_HIKER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_HIKER, + .trainerPic = TRAINER_PIC_HIKER, + .trainerName = _("MARCOS"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 3, + .party = {.NoItemDefaultMoves = sTrainerMons_823AB20} + }, + [TRAINER_HIKER_FRANKLIN] = { + .partyFlags = 0, + .trainerClass = CLASS_HIKER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_HIKER, + .trainerPic = TRAINER_PIC_HIKER, + .trainerName = _("FRANKLIN"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823AB38} + }, + [TRAINER_HIKER_NOB] = { + .partyFlags = 0, + .trainerClass = CLASS_HIKER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_HIKER, + .trainerPic = TRAINER_PIC_HIKER, + .trainerName = _("NOB"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 4, + .party = {.NoItemDefaultMoves = sTrainerMons_823AB48} + }, + [TRAINER_HIKER_WAYNE] = { + .partyFlags = 0, + .trainerClass = CLASS_HIKER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_HIKER, + .trainerPic = TRAINER_PIC_HIKER, + .trainerName = _("WAYNE"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823AB68} + }, + [TRAINER_HIKER_ALAN] = { + .partyFlags = F_TRAINER_PARTY_CUSTOM_MOVESET, + .trainerClass = CLASS_HIKER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_HIKER, + .trainerPic = TRAINER_PIC_HIKER, + .trainerName = _("ALAN"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemCustomMoves = sTrainerMons_823AB70} + }, + [TRAINER_HIKER_BRICE] = { + .partyFlags = 0, + .trainerClass = CLASS_HIKER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_HIKER, + .trainerPic = TRAINER_PIC_HIKER, + .trainerName = _("BRICE"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 3, + .party = {.NoItemDefaultMoves = sTrainerMons_823AB90} + }, + [TRAINER_HIKER_CLARK] = { + .partyFlags = F_TRAINER_PARTY_CUSTOM_MOVESET, + .trainerClass = CLASS_HIKER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_HIKER, + .trainerPic = TRAINER_PIC_HIKER, + .trainerName = _("CLARK"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemCustomMoves = sTrainerMons_823ABA8} + }, + [TRAINER_HIKER_TRENT] = { + .partyFlags = 0, + .trainerClass = CLASS_HIKER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_HIKER, + .trainerPic = TRAINER_PIC_HIKER, + .trainerName = _("TRENT"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823ABC8} + }, + [TRAINER_HIKER_DUDLEY] = { + .partyFlags = F_TRAINER_PARTY_CUSTOM_MOVESET, + .trainerClass = CLASS_HIKER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_HIKER, + .trainerPic = TRAINER_PIC_HIKER, + .trainerName = _("DUDLEY"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 3, + .party = {.NoItemCustomMoves = sTrainerMons_823ABD8} + }, + [TRAINER_HIKER_ALLEN] = { + .partyFlags = F_TRAINER_PARTY_CUSTOM_MOVESET, + .trainerClass = CLASS_HIKER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_HIKER, + .trainerPic = TRAINER_PIC_HIKER, + .trainerName = _("ALLEN"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemCustomMoves = sTrainerMons_823AC08} + }, + [TRAINER_HIKER_ERIC] = { + .partyFlags = 0, + .trainerClass = CLASS_HIKER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_HIKER, + .trainerPic = TRAINER_PIC_HIKER, + .trainerName = _("ERIC"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823AC18} + }, + [TRAINER_HIKER_LENNY] = { + .partyFlags = 0, + .trainerClass = CLASS_HIKER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_HIKER, + .trainerPic = TRAINER_PIC_HIKER, + .trainerName = _("LENNY"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 4, + .party = {.NoItemDefaultMoves = sTrainerMons_823AC28} + }, + [TRAINER_HIKER_OLIVER] = { + .partyFlags = 0, + .trainerClass = CLASS_HIKER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_HIKER, + .trainerPic = TRAINER_PIC_HIKER, + .trainerName = _("OLIVER"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 3, + .party = {.NoItemDefaultMoves = sTrainerMons_823AC48} + }, + [TRAINER_HIKER_LUCAS] = { + .partyFlags = F_TRAINER_PARTY_CUSTOM_MOVESET, + .trainerClass = CLASS_HIKER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_HIKER, + .trainerPic = TRAINER_PIC_HIKER, + .trainerName = _("LUCAS"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemCustomMoves = sTrainerMons_823AC60} + }, + [TRAINER_BIKER_JARED] = { + .partyFlags = F_TRAINER_PARTY_CUSTOM_MOVESET, + .trainerClass = CLASS_BIKER, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_BIKER, + .trainerName = _("JARED"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 3, + .party = {.NoItemCustomMoves = sTrainerMons_823AC80} + }, + [TRAINER_BIKER_MALIK] = { + .partyFlags = F_TRAINER_PARTY_CUSTOM_MOVESET, + .trainerClass = CLASS_BIKER, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_BIKER, + .trainerName = _("MALIK"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemCustomMoves = sTrainerMons_823ACB0} + }, + [TRAINER_BIKER_ERNEST] = { + .partyFlags = F_TRAINER_PARTY_CUSTOM_MOVESET, + .trainerClass = CLASS_BIKER, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_BIKER, + .trainerName = _("ERNEST"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 5, + .party = {.NoItemCustomMoves = sTrainerMons_823ACD0} + }, + [TRAINER_BIKER_ALEX] = { + .partyFlags = F_TRAINER_PARTY_CUSTOM_MOVESET, + .trainerClass = CLASS_BIKER, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_BIKER, + .trainerName = _("ALEX"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 3, + .party = {.NoItemCustomMoves = sTrainerMons_823AD20} + }, + [TRAINER_BIKER_LAO] = { + .partyFlags = F_TRAINER_PARTY_CUSTOM_MOVESET, + .trainerClass = CLASS_BIKER, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_BIKER, + .trainerName = _("LAO"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemCustomMoves = sTrainerMons_823AD50} + }, + [TRAINER_BIKER_1] = { + .partyFlags = 0, + .trainerClass = CLASS_BIKER, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_BIKER, + .trainerName = _(""), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823AD70} + }, + [TRAINER_BIKER_HIDEO] = { + .partyFlags = 0, + .trainerClass = CLASS_BIKER, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_BIKER, + .trainerName = _("HIDEO"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823AD78} + }, + [TRAINER_BIKER_RUBEN] = { + .partyFlags = F_TRAINER_PARTY_CUSTOM_MOVESET, + .trainerClass = CLASS_BIKER, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_BIKER, + .trainerName = _("RUBEN"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 3, + .party = {.NoItemCustomMoves = sTrainerMons_823AD80} + }, + [TRAINER_BIKER_BILLY] = { + .partyFlags = 0, + .trainerClass = CLASS_BIKER, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_BIKER, + .trainerName = _("BILLY"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823ADB0} + }, + [TRAINER_BIKER_NIKOLAS] = { + .partyFlags = F_TRAINER_PARTY_CUSTOM_MOVESET, + .trainerClass = CLASS_BIKER, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_BIKER, + .trainerName = _("NIKOLAS"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemCustomMoves = sTrainerMons_823ADB8} + }, + [TRAINER_BIKER_JAXON] = { + .partyFlags = F_TRAINER_PARTY_CUSTOM_MOVESET, + .trainerClass = CLASS_BIKER, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_BIKER, + .trainerName = _("JAXON"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemCustomMoves = sTrainerMons_823ADD8} + }, + [TRAINER_BIKER_WILLIAM] = { + .partyFlags = F_TRAINER_PARTY_CUSTOM_MOVESET, + .trainerClass = CLASS_BIKER, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_BIKER, + .trainerName = _("WILLIAM"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 5, + .party = {.NoItemCustomMoves = sTrainerMons_823ADF8} + }, + [TRAINER_BIKER_LUKAS] = { + .partyFlags = F_TRAINER_PARTY_CUSTOM_MOVESET, + .trainerClass = CLASS_BIKER, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_BIKER, + .trainerName = _("LUKAS"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 4, + .party = {.NoItemCustomMoves = sTrainerMons_823AE48} + }, + [TRAINER_BIKER_ISAAC] = { + .partyFlags = F_TRAINER_PARTY_CUSTOM_MOVESET, + .trainerClass = CLASS_BIKER, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_BIKER, + .trainerName = _("ISAAC"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 3, + .party = {.NoItemCustomMoves = sTrainerMons_823AE88} + }, + [TRAINER_BIKER_GERALD] = { + .partyFlags = F_TRAINER_PARTY_CUSTOM_MOVESET, + .trainerClass = CLASS_BIKER, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_BIKER, + .trainerName = _("GERALD"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemCustomMoves = sTrainerMons_823AEB8} + }, + [TRAINER_BURGLAR_1] = { + .partyFlags = 0, + .trainerClass = CLASS_BURGLAR, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_SUSPICIOUS, + .trainerPic = TRAINER_PIC_BURGLAR, + .trainerName = _(""), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823AED8} + }, + [TRAINER_BURGLAR_2] = { + .partyFlags = 0, + .trainerClass = CLASS_BURGLAR, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_SUSPICIOUS, + .trainerPic = TRAINER_PIC_BURGLAR, + .trainerName = _(""), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823AEE8} + }, + [TRAINER_BURGLAR_3] = { + .partyFlags = 0, + .trainerClass = CLASS_BURGLAR, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_SUSPICIOUS, + .trainerPic = TRAINER_PIC_BURGLAR, + .trainerName = _(""), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 3, + .party = {.NoItemDefaultMoves = sTrainerMons_823AEF0} + }, + [TRAINER_BURGLAR_QUINN] = { + .partyFlags = 0, + .trainerClass = CLASS_BURGLAR, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_SUSPICIOUS, + .trainerPic = TRAINER_PIC_BURGLAR, + .trainerName = _("QUINN"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 3, + .party = {.NoItemDefaultMoves = sTrainerMons_823AF08} + }, + [TRAINER_BURGLAR_RAMON] = { + .partyFlags = 0, + .trainerClass = CLASS_BURGLAR, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_SUSPICIOUS, + .trainerPic = TRAINER_PIC_BURGLAR, + .trainerName = _("RAMON"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823AF20} + }, + [TRAINER_BURGLAR_DUSTY] = { + .partyFlags = 0, + .trainerClass = CLASS_BURGLAR, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_SUSPICIOUS, + .trainerPic = TRAINER_PIC_BURGLAR, + .trainerName = _("DUSTY"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823AF28} + }, + [TRAINER_BURGLAR_ARNIE] = { + .partyFlags = 0, + .trainerClass = CLASS_BURGLAR, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_SUSPICIOUS, + .trainerPic = TRAINER_PIC_BURGLAR, + .trainerName = _("ARNIE"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823AF38} + }, + [TRAINER_BURGLAR_4] = { + .partyFlags = 0, + .trainerClass = CLASS_BURGLAR, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_SUSPICIOUS, + .trainerPic = TRAINER_PIC_BURGLAR, + .trainerName = _(""), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823AF48} + }, + [TRAINER_BURGLAR_SIMON] = { + .partyFlags = 0, + .trainerClass = CLASS_BURGLAR, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_SUSPICIOUS, + .trainerPic = TRAINER_PIC_BURGLAR, + .trainerName = _("SIMON"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823AF58} + }, + [TRAINER_BURGLAR_LEWIS] = { + .partyFlags = 0, + .trainerClass = CLASS_BURGLAR, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_SUSPICIOUS, + .trainerPic = TRAINER_PIC_BURGLAR, + .trainerName = _("LEWIS"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823AF60} + }, + [TRAINER_ENGINEER_BAILY] = { + .partyFlags = 0, + .trainerClass = CLASS_ENGINEER, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_ENGINEER, + .trainerName = _("BAILY"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823AF70} + }, + [TRAINER_ENGINEER_BRAXTON] = { + .partyFlags = 0, + .trainerClass = CLASS_ENGINEER, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_ENGINEER, + .trainerName = _("BRAXTON"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823AF80} + }, + [TRAINER_ENGINEER_BERNIE] = { + .partyFlags = 0, + .trainerClass = CLASS_ENGINEER, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_ENGINEER, + .trainerName = _("BERNIE"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 3, + .party = {.NoItemDefaultMoves = sTrainerMons_823AF88} + }, + [TRAINER_FISHERMAN_DALE] = { + .partyFlags = 0, + .trainerClass = CLASS_FISHERMAN_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_HIKER, + .trainerPic = TRAINER_PIC_FISHERMAN, + .trainerName = _("DALE"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 3, + .party = {.NoItemDefaultMoves = sTrainerMons_823AFA0} + }, + [TRAINER_FISHERMAN_BARNY] = { + .partyFlags = 0, + .trainerClass = CLASS_FISHERMAN_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_HIKER, + .trainerPic = TRAINER_PIC_FISHERMAN, + .trainerName = _("BARNY"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 3, + .party = {.NoItemDefaultMoves = sTrainerMons_823AFB8} + }, + [TRAINER_FISHERMAN_NED] = { + .partyFlags = 0, + .trainerClass = CLASS_FISHERMAN_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_HIKER, + .trainerPic = TRAINER_PIC_FISHERMAN, + .trainerName = _("NED"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 3, + .party = {.NoItemDefaultMoves = sTrainerMons_823AFD0} + }, + [TRAINER_FISHERMAN_CHIP] = { + .partyFlags = 0, + .trainerClass = CLASS_FISHERMAN_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_HIKER, + .trainerPic = TRAINER_PIC_FISHERMAN, + .trainerName = _("CHIP"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823AFE8} + }, + [TRAINER_FISHERMAN_HANK] = { + .partyFlags = 0, + .trainerClass = CLASS_FISHERMAN_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_HIKER, + .trainerPic = TRAINER_PIC_FISHERMAN, + .trainerName = _("HANK"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823AFF8} + }, + [TRAINER_FISHERMAN_ELLIOT] = { + .partyFlags = 0, + .trainerClass = CLASS_FISHERMAN_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_HIKER, + .trainerPic = TRAINER_PIC_FISHERMAN, + .trainerName = _("ELLIOT"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 4, + .party = {.NoItemDefaultMoves = sTrainerMons_823B000} + }, + [TRAINER_FISHERMAN_RONALD] = { + .partyFlags = 0, + .trainerClass = CLASS_FISHERMAN_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_HIKER, + .trainerPic = TRAINER_PIC_FISHERMAN, + .trainerName = _("RONALD"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 4, + .party = {.NoItemDefaultMoves = sTrainerMons_823B020} + }, + [TRAINER_FISHERMAN_CLAUDE] = { + .partyFlags = 0, + .trainerClass = CLASS_FISHERMAN_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_HIKER, + .trainerPic = TRAINER_PIC_FISHERMAN, + .trainerName = _("CLAUDE"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823B040} + }, + [TRAINER_FISHERMAN_WADE] = { + .partyFlags = 0, + .trainerClass = CLASS_FISHERMAN_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_HIKER, + .trainerPic = TRAINER_PIC_FISHERMAN, + .trainerName = _("WADE"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 6, + .party = {.NoItemDefaultMoves = sTrainerMons_823B050} + }, + [TRAINER_FISHERMAN_NOLAN] = { + .partyFlags = 0, + .trainerClass = CLASS_FISHERMAN_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_HIKER, + .trainerPic = TRAINER_PIC_FISHERMAN, + .trainerName = _("NOLAN"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823B080} + }, + [TRAINER_FISHERMAN_ANDREW] = { + .partyFlags = 0, + .trainerClass = CLASS_FISHERMAN_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_HIKER, + .trainerPic = TRAINER_PIC_FISHERMAN, + .trainerName = _("ANDREW"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823B090} + }, + [TRAINER_SWIMMER_MALE_LUIS] = { + .partyFlags = 0, + .trainerClass = CLASS_SWIMMER_MALE_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_SWIMMER, + .trainerPic = TRAINER_PIC_SWIMMER_M, + .trainerName = _("LUIS"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823B0A0} + }, + [TRAINER_SWIMMER_MALE_RICHARD] = { + .partyFlags = 0, + .trainerClass = CLASS_SWIMMER_MALE_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_SWIMMER, + .trainerPic = TRAINER_PIC_SWIMMER_M, + .trainerName = _("RICHARD"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823B0B0} + }, + [TRAINER_SWIMMER_MALE_REECE] = { + .partyFlags = 0, + .trainerClass = CLASS_SWIMMER_MALE_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_SWIMMER, + .trainerPic = TRAINER_PIC_SWIMMER_M, + .trainerName = _("REECE"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 3, + .party = {.NoItemDefaultMoves = sTrainerMons_823B0C0} + }, + [TRAINER_SWIMMER_MALE_MATTHEW] = { + .partyFlags = 0, + .trainerClass = CLASS_SWIMMER_MALE_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_SWIMMER, + .trainerPic = TRAINER_PIC_SWIMMER_M, + .trainerName = _("MATTHEW"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823B0D8} + }, + [TRAINER_SWIMMER_MALE_DOUGLAS] = { + .partyFlags = 0, + .trainerClass = CLASS_SWIMMER_MALE_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_SWIMMER, + .trainerPic = TRAINER_PIC_SWIMMER_M, + .trainerName = _("DOUGLAS"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 4, + .party = {.NoItemDefaultMoves = sTrainerMons_823B0E8} + }, + [TRAINER_SWIMMER_MALE_DAVID] = { + .partyFlags = 0, + .trainerClass = CLASS_SWIMMER_MALE_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_SWIMMER, + .trainerPic = TRAINER_PIC_SWIMMER_M, + .trainerName = _("DAVID"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 3, + .party = {.NoItemDefaultMoves = sTrainerMons_823B108} + }, + [TRAINER_SWIMMER_MALE_TONY] = { + .partyFlags = 0, + .trainerClass = CLASS_SWIMMER_MALE_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_SWIMMER, + .trainerPic = TRAINER_PIC_SWIMMER_M, + .trainerName = _("TONY"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823B120} + }, + [TRAINER_SWIMMER_MALE_AXLE] = { + .partyFlags = 0, + .trainerClass = CLASS_SWIMMER_MALE_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_SWIMMER, + .trainerPic = TRAINER_PIC_SWIMMER_M, + .trainerName = _("AXLE"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 5, + .party = {.NoItemDefaultMoves = sTrainerMons_823B130} + }, + [TRAINER_SWIMMER_MALE_BARRY] = { + .partyFlags = 0, + .trainerClass = CLASS_SWIMMER_MALE_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_SWIMMER, + .trainerPic = TRAINER_PIC_SWIMMER_M, + .trainerName = _("BARRY"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823B158} + }, + [TRAINER_SWIMMER_MALE_DEAN] = { + .partyFlags = 0, + .trainerClass = CLASS_SWIMMER_MALE_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_SWIMMER, + .trainerPic = TRAINER_PIC_SWIMMER_M, + .trainerName = _("DEAN"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823B168} + }, + [TRAINER_SWIMMER_MALE_DARRIN] = { + .partyFlags = 0, + .trainerClass = CLASS_SWIMMER_MALE_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_SWIMMER, + .trainerPic = TRAINER_PIC_SWIMMER_M, + .trainerName = _("DARRIN"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 4, + .party = {.NoItemDefaultMoves = sTrainerMons_823B170} + }, + [TRAINER_SWIMMER_MALE_SPENCER] = { + .partyFlags = 0, + .trainerClass = CLASS_SWIMMER_MALE_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_SWIMMER, + .trainerPic = TRAINER_PIC_SWIMMER_M, + .trainerName = _("SPENCER"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823B190} + }, + [TRAINER_SWIMMER_MALE_JACK] = { + .partyFlags = 0, + .trainerClass = CLASS_SWIMMER_MALE_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_SWIMMER, + .trainerPic = TRAINER_PIC_SWIMMER_M, + .trainerName = _("JACK"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823B1A0} + }, + [TRAINER_SWIMMER_MALE_JEROME] = { + .partyFlags = 0, + .trainerClass = CLASS_SWIMMER_MALE_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_SWIMMER, + .trainerPic = TRAINER_PIC_SWIMMER_M, + .trainerName = _("JEROME"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823B1A8} + }, + [TRAINER_SWIMMER_MALE_ROLAND] = { + .partyFlags = 0, + .trainerClass = CLASS_SWIMMER_MALE_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_SWIMMER, + .trainerPic = TRAINER_PIC_SWIMMER_M, + .trainerName = _("ROLAND"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 3, + .party = {.NoItemDefaultMoves = sTrainerMons_823B1B8} + }, + [TRAINER_CUE_BALL_KOJI] = { + .partyFlags = 0, + .trainerClass = CLASS_CUE_BALL, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_CUE_BALL, + .trainerName = _("KOJI"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 3, + .party = {.NoItemDefaultMoves = sTrainerMons_823B1D0} + }, + [TRAINER_CUE_BALL_LUKE] = { + .partyFlags = 0, + .trainerClass = CLASS_CUE_BALL, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_CUE_BALL, + .trainerName = _("LUKE"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823B1E8} + }, + [TRAINER_CUE_BALL_CAMRON] = { + .partyFlags = 0, + .trainerClass = CLASS_CUE_BALL, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_CUE_BALL, + .trainerName = _("CAMRON"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823B1F8} + }, + [TRAINER_CUE_BALL_RAUL] = { + .partyFlags = 0, + .trainerClass = CLASS_CUE_BALL, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_CUE_BALL, + .trainerName = _("RAUL"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823B208} + }, + [TRAINER_CUE_BALL_ISAIAH] = { + .partyFlags = 0, + .trainerClass = CLASS_CUE_BALL, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_CUE_BALL, + .trainerName = _("ISAIAH"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823B218} + }, + [TRAINER_CUE_BALL_ZEEK] = { + .partyFlags = 0, + .trainerClass = CLASS_CUE_BALL, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_CUE_BALL, + .trainerName = _("ZEEK"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823B228} + }, + [TRAINER_CUE_BALL_JAMAL] = { + .partyFlags = 0, + .trainerClass = CLASS_CUE_BALL, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_CUE_BALL, + .trainerName = _("JAMAL"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 4, + .party = {.NoItemDefaultMoves = sTrainerMons_823B230} + }, + [TRAINER_CUE_BALL_COREY] = { + .partyFlags = 0, + .trainerClass = CLASS_CUE_BALL, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_CUE_BALL, + .trainerName = _("COREY"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823B250} + }, + [TRAINER_CUE_BALL_CHASE] = { + .partyFlags = 0, + .trainerClass = CLASS_CUE_BALL, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_CUE_BALL, + .trainerName = _("CHASE"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 3, + .party = {.NoItemDefaultMoves = sTrainerMons_823B260} + }, + [TRAINER_GAMER_HUGO] = { + .partyFlags = 0, + .trainerClass = CLASS_GAMER, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_GAMER, + .trainerName = _("HUGO"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823B278} + }, + [TRAINER_GAMER_JASPER] = { + .partyFlags = 0, + .trainerClass = CLASS_GAMER, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_GAMER, + .trainerName = _("JASPER"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823B288} + }, + [TRAINER_GAMER_DIRK] = { + .partyFlags = 0, + .trainerClass = CLASS_GAMER, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_GAMER, + .trainerName = _("DIRK"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823B298} + }, + [TRAINER_GAMER_DARIAN] = { + .partyFlags = 0, + .trainerClass = CLASS_GAMER, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_GAMER, + .trainerName = _("DARIAN"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823B2A8} + }, + [TRAINER_GAMER_STAN] = { + .partyFlags = 0, + .trainerClass = CLASS_GAMER, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_GAMER, + .trainerName = _("STAN"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 3, + .party = {.NoItemDefaultMoves = sTrainerMons_823B2B8} + }, + [TRAINER_GAMER_1] = { + .partyFlags = 0, + .trainerClass = CLASS_GAMER, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_GAMER, + .trainerName = _(""), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823B2D0} + }, + [TRAINER_GAMER_RICH] = { + .partyFlags = 0, + .trainerClass = CLASS_GAMER, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_GAMER, + .trainerName = _("RICH"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823B2D8} + }, + [TRAINER_BEAUTY_BRIDGET] = { + .partyFlags = 0, + .trainerClass = CLASS_BEAUTY_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_FEMALE | F_TRAINER_FEMALE, + .trainerPic = TRAINER_PIC_BEAUTY, + .trainerName = _("BRIDGET"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 4, + .party = {.NoItemDefaultMoves = sTrainerMons_823B2E8} + }, + [TRAINER_BEAUTY_TAMIA] = { + .partyFlags = 0, + .trainerClass = CLASS_BEAUTY_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_FEMALE | F_TRAINER_FEMALE, + .trainerPic = TRAINER_PIC_BEAUTY, + .trainerName = _("TAMIA"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823B308} + }, + [TRAINER_BEAUTY_LORI] = { + .partyFlags = 0, + .trainerClass = CLASS_BEAUTY_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_FEMALE | F_TRAINER_FEMALE, + .trainerPic = TRAINER_PIC_BEAUTY, + .trainerName = _("LORI"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823B318} + }, + [TRAINER_BEAUTY_LOLA] = { + .partyFlags = 0, + .trainerClass = CLASS_BEAUTY_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_FEMALE | F_TRAINER_FEMALE, + .trainerPic = TRAINER_PIC_BEAUTY, + .trainerName = _("LOLA"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 3, + .party = {.NoItemDefaultMoves = sTrainerMons_823B320} + }, + [TRAINER_BEAUTY_SHEILA] = { + .partyFlags = 0, + .trainerClass = CLASS_BEAUTY_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_FEMALE | F_TRAINER_FEMALE, + .trainerPic = TRAINER_PIC_BEAUTY, + .trainerName = _("SHEILA"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823B338} + }, + [TRAINER_SWIMMER_FEMALE_TIFFANY] = { + .partyFlags = 0, + .trainerClass = CLASS_SWIMMER_FEMALE_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_FEMALE | F_TRAINER_FEMALE, + .trainerPic = TRAINER_PIC_SWIMMER_F, + .trainerName = _("TIFFANY"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823B348} + }, + [TRAINER_SWIMMER_FEMALE_NORA] = { + .partyFlags = 0, + .trainerClass = CLASS_SWIMMER_FEMALE_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_FEMALE | F_TRAINER_FEMALE, + .trainerPic = TRAINER_PIC_SWIMMER_F, + .trainerName = _("NORA"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 3, + .party = {.NoItemDefaultMoves = sTrainerMons_823B350} + }, + [TRAINER_SWIMMER_FEMALE_MELISSA] = { + .partyFlags = 0, + .trainerClass = CLASS_SWIMMER_FEMALE_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_FEMALE | F_TRAINER_FEMALE, + .trainerPic = TRAINER_PIC_SWIMMER_F, + .trainerName = _("MELISSA"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823B368} + }, + [TRAINER_BEAUTY_GRACE] = { + .partyFlags = 0, + .trainerClass = CLASS_BEAUTY_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_FEMALE | F_TRAINER_FEMALE, + .trainerPic = TRAINER_PIC_BEAUTY, + .trainerName = _("GRACE"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823B378} + }, + [TRAINER_BEAUTY_OLIVIA] = { + .partyFlags = 0, + .trainerClass = CLASS_BEAUTY_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_FEMALE | F_TRAINER_FEMALE, + .trainerPic = TRAINER_PIC_BEAUTY, + .trainerName = _("OLIVIA"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823B388} + }, + [TRAINER_BEAUTY_LAUREN] = { + .partyFlags = 0, + .trainerClass = CLASS_BEAUTY_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_FEMALE | F_TRAINER_FEMALE, + .trainerPic = TRAINER_PIC_SWIMMER_F, + .trainerName = _("LAUREN"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 3, + .party = {.NoItemDefaultMoves = sTrainerMons_823B398} + }, + [TRAINER_SWIMMER_FEMALE_ANYA] = { + .partyFlags = 0, + .trainerClass = CLASS_SWIMMER_FEMALE_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_FEMALE | F_TRAINER_FEMALE, + .trainerPic = TRAINER_PIC_SWIMMER_F, + .trainerName = _("ANYA"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 5, + .party = {.NoItemDefaultMoves = sTrainerMons_823B3B0} + }, + [TRAINER_SWIMMER_FEMALE_ALICE] = { + .partyFlags = 0, + .trainerClass = CLASS_SWIMMER_FEMALE_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_FEMALE | F_TRAINER_FEMALE, + .trainerPic = TRAINER_PIC_SWIMMER_F, + .trainerName = _("ALICE"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823B3D8} + }, + [TRAINER_SWIMMER_FEMALE_CONNIE] = { + .partyFlags = 0, + .trainerClass = CLASS_SWIMMER_FEMALE_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_FEMALE | F_TRAINER_FEMALE, + .trainerPic = TRAINER_PIC_SWIMMER_F, + .trainerName = _("CONNIE"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 3, + .party = {.NoItemDefaultMoves = sTrainerMons_823B3E8} + }, + [TRAINER_SWIMMER_FEMALE_SHIRLEY] = { + .partyFlags = 0, + .trainerClass = CLASS_SWIMMER_FEMALE_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_FEMALE | F_TRAINER_FEMALE, + .trainerPic = TRAINER_PIC_SWIMMER_F, + .trainerName = _("SHIRLEY"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 3, + .party = {.NoItemDefaultMoves = sTrainerMons_823B400} + }, + [TRAINER_PSYCHIC_JOHAN] = { + .partyFlags = 0, + .trainerClass = CLASS_PSYCHIC_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_INTENSE, + .trainerPic = TRAINER_PIC_PSYCHIC_M, + .trainerName = _("JOHAN"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 4, + .party = {.NoItemDefaultMoves = sTrainerMons_823B418} + }, + [TRAINER_PSYCHIC_TYRON] = { + .partyFlags = 0, + .trainerClass = CLASS_PSYCHIC_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_INTENSE, + .trainerPic = TRAINER_PIC_PSYCHIC_M, + .trainerName = _("TYRON"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823B438} + }, + [TRAINER_PSYCHIC_CAMERON] = { + .partyFlags = 0, + .trainerClass = CLASS_PSYCHIC_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_INTENSE, + .trainerPic = TRAINER_PIC_PSYCHIC_M, + .trainerName = _("CAMERON"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 3, + .party = {.NoItemDefaultMoves = sTrainerMons_823B448} + }, + [TRAINER_PSYCHIC_PRESTON] = { + .partyFlags = 0, + .trainerClass = CLASS_PSYCHIC_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_INTENSE, + .trainerPic = TRAINER_PIC_PSYCHIC_M, + .trainerName = _("PRESTON"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823B460} + }, + [TRAINER_ROCKER_RANDALL] = { + .partyFlags = 0, + .trainerClass = CLASS_ROCKER, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_ROCKER, + .trainerName = _("RANDALL"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 3, + .party = {.NoItemDefaultMoves = sTrainerMons_823B468} + }, + [TRAINER_ROCKER_LUCA] = { + .partyFlags = 0, + .trainerClass = CLASS_ROCKER, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_ROCKER, + .trainerName = _("LUCA"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823B480} + }, + [TRAINER_JUGGLER_DALTON] = { + .partyFlags = 0, + .trainerClass = CLASS_JUGGLER, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_HIKER, + .trainerPic = TRAINER_PIC_JUGGLER, + .trainerName = _("DALTON"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823B490} + }, + [TRAINER_JUGGLER_NELSON] = { + .partyFlags = 0, + .trainerClass = CLASS_JUGGLER, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_HIKER, + .trainerPic = TRAINER_PIC_JUGGLER, + .trainerName = _("NELSON"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 4, + .party = {.NoItemDefaultMoves = sTrainerMons_823B4A0} + }, + [TRAINER_JUGGLER_KIRK] = { + .partyFlags = 0, + .trainerClass = CLASS_JUGGLER, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_HIKER, + .trainerPic = TRAINER_PIC_JUGGLER, + .trainerName = _("KIRK"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 4, + .party = {.NoItemDefaultMoves = sTrainerMons_823B4C0} + }, + [TRAINER_JUGGLER_SHAWN] = { + .partyFlags = 0, + .trainerClass = CLASS_JUGGLER, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_HIKER, + .trainerPic = TRAINER_PIC_JUGGLER, + .trainerName = _("SHAWN"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823B4E0} + }, + [TRAINER_JUGGLER_GREGORY] = { + .partyFlags = F_TRAINER_PARTY_CUSTOM_MOVESET, + .trainerClass = CLASS_JUGGLER, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_HIKER, + .trainerPic = TRAINER_PIC_JUGGLER, + .trainerName = _("GREGORY"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemCustomMoves = sTrainerMons_823B4F0} + }, + [TRAINER_JUGGLER_EDWARD] = { + .partyFlags = F_TRAINER_PARTY_CUSTOM_MOVESET, + .trainerClass = CLASS_JUGGLER, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_HIKER, + .trainerPic = TRAINER_PIC_JUGGLER, + .trainerName = _("EDWARD"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 4, + .party = {.NoItemCustomMoves = sTrainerMons_823B500} + }, + [TRAINER_JUGGLER_KAYDEN] = { + .partyFlags = 0, + .trainerClass = CLASS_JUGGLER, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_HIKER, + .trainerPic = TRAINER_PIC_JUGGLER, + .trainerName = _("KAYDEN"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823B540} + }, + [TRAINER_JUGGLER_NATE] = { + .partyFlags = 0, + .trainerClass = CLASS_JUGGLER, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_HIKER, + .trainerPic = TRAINER_PIC_JUGGLER, + .trainerName = _("NATE"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823B548} + }, + [TRAINER_TAMER_PHIL] = { + .partyFlags = 0, + .trainerClass = CLASS_TAMER, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_HIKER, + .trainerPic = TRAINER_PIC_TAMER, + .trainerName = _("PHIL"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823B558} + }, + [TRAINER_TAMER_EDGAR] = { + .partyFlags = 0, + .trainerClass = CLASS_TAMER, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_HIKER, + .trainerPic = TRAINER_PIC_TAMER, + .trainerName = _("EDGAR"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 3, + .party = {.NoItemDefaultMoves = sTrainerMons_823B568} + }, + [TRAINER_TAMER_JASON] = { + .partyFlags = 0, + .trainerClass = CLASS_TAMER, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_HIKER, + .trainerPic = TRAINER_PIC_TAMER, + .trainerName = _("JASON"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823B580} + }, + [TRAINER_TAMER_COLE] = { + .partyFlags = 0, + .trainerClass = CLASS_TAMER, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_HIKER, + .trainerPic = TRAINER_PIC_TAMER, + .trainerName = _("COLE"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823B588} + }, + [TRAINER_TAMER_VINCENT] = { + .partyFlags = 0, + .trainerClass = CLASS_TAMER, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_HIKER, + .trainerPic = TRAINER_PIC_TAMER, + .trainerName = _("VINCENT"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823B598} + }, + [TRAINER_TAMER_JOHN] = { + .partyFlags = 0, + .trainerClass = CLASS_TAMER, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_HIKER, + .trainerPic = TRAINER_PIC_TAMER, + .trainerName = _("JOHN"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 4, + .party = {.NoItemDefaultMoves = sTrainerMons_823B5A8} + }, + [TRAINER_BIRD_KEEPER_SEBASTIAN] = { + .partyFlags = 0, + .trainerClass = CLASS_BIRD_KEEPER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_COOL, + .trainerPic = TRAINER_PIC_BIRD_KEEPER, + .trainerName = _("SEBASTIAN"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823B5C8} + }, + [TRAINER_BIRD_KEEPER_PERRY] = { + .partyFlags = 0, + .trainerClass = CLASS_BIRD_KEEPER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_COOL, + .trainerPic = TRAINER_PIC_BIRD_KEEPER, + .trainerName = _("PERRY"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 5, + .party = {.NoItemDefaultMoves = sTrainerMons_823B5D8} + }, + [TRAINER_BIRD_KEEPER_ROBERT] = { + .partyFlags = 0, + .trainerClass = CLASS_BIRD_KEEPER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_COOL, + .trainerPic = TRAINER_PIC_BIRD_KEEPER, + .trainerName = _("ROBERT"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 4, + .party = {.NoItemDefaultMoves = sTrainerMons_823B600} + }, + [TRAINER_BIRD_KEEPER_DONALD] = { + .partyFlags = 0, + .trainerClass = CLASS_BIRD_KEEPER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_COOL, + .trainerPic = TRAINER_PIC_BIRD_KEEPER, + .trainerName = _("DONALD"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823B620} + }, + [TRAINER_BIRD_KEEPER_BENNY] = { + .partyFlags = 0, + .trainerClass = CLASS_BIRD_KEEPER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_COOL, + .trainerPic = TRAINER_PIC_BIRD_KEEPER, + .trainerName = _("BENNY"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823B628} + }, + [TRAINER_BIRD_KEEPER_EDWIN] = { + .partyFlags = 0, + .trainerClass = CLASS_BIRD_KEEPER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_COOL, + .trainerPic = TRAINER_PIC_BIRD_KEEPER, + .trainerName = _("EDWIN"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 4, + .party = {.NoItemDefaultMoves = sTrainerMons_823B638} + }, + [TRAINER_BIRD_KEEPER_CHESTER] = { + .partyFlags = 0, + .trainerClass = CLASS_BIRD_KEEPER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_COOL, + .trainerPic = TRAINER_PIC_BIRD_KEEPER, + .trainerName = _("CHESTER"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 3, + .party = {.NoItemDefaultMoves = sTrainerMons_823B658} + }, + [TRAINER_BIRD_KEEPER_WILTON] = { + .partyFlags = 0, + .trainerClass = CLASS_BIRD_KEEPER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_COOL, + .trainerPic = TRAINER_PIC_BIRD_KEEPER, + .trainerName = _("WILTON"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823B670} + }, + [TRAINER_BIRD_KEEPER_RAMIRO] = { + .partyFlags = 0, + .trainerClass = CLASS_BIRD_KEEPER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_COOL, + .trainerPic = TRAINER_PIC_BIRD_KEEPER, + .trainerName = _("RAMIRO"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823B680} + }, + [TRAINER_BIRD_KEEPER_JACOB] = { + .partyFlags = 0, + .trainerClass = CLASS_BIRD_KEEPER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_COOL, + .trainerPic = TRAINER_PIC_BIRD_KEEPER, + .trainerName = _("JACOB"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 4, + .party = {.NoItemDefaultMoves = sTrainerMons_823B688} + }, + [TRAINER_BIRD_KEEPER_ROGER] = { + .partyFlags = 0, + .trainerClass = CLASS_BIRD_KEEPER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_COOL, + .trainerPic = TRAINER_PIC_BIRD_KEEPER, + .trainerName = _("ROGER"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 3, + .party = {.NoItemDefaultMoves = sTrainerMons_823B6A8} + }, + [TRAINER_BIRD_KEEPER_REED] = { + .partyFlags = 0, + .trainerClass = CLASS_BIRD_KEEPER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_COOL, + .trainerPic = TRAINER_PIC_BIRD_KEEPER, + .trainerName = _("REED"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 4, + .party = {.NoItemDefaultMoves = sTrainerMons_823B6C0} + }, + [TRAINER_BIRD_KEEPER_KEITH] = { + .partyFlags = 0, + .trainerClass = CLASS_BIRD_KEEPER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_COOL, + .trainerPic = TRAINER_PIC_BIRD_KEEPER, + .trainerName = _("KEITH"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823B6E0} + }, + [TRAINER_BIRD_KEEPER_CARTER] = { + .partyFlags = 0, + .trainerClass = CLASS_BIRD_KEEPER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_COOL, + .trainerPic = TRAINER_PIC_BIRD_KEEPER, + .trainerName = _("CARTER"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 3, + .party = {.NoItemDefaultMoves = sTrainerMons_823B6F0} + }, + [TRAINER_BIRD_KEEPER_MITCH] = { + .partyFlags = 0, + .trainerClass = CLASS_BIRD_KEEPER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_COOL, + .trainerPic = TRAINER_PIC_BIRD_KEEPER, + .trainerName = _("MITCH"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 4, + .party = {.NoItemDefaultMoves = sTrainerMons_823B708} + }, + [TRAINER_BIRD_KEEPER_BECK] = { + .partyFlags = 0, + .trainerClass = CLASS_BIRD_KEEPER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_COOL, + .trainerPic = TRAINER_PIC_BIRD_KEEPER, + .trainerName = _("BECK"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823B728} + }, + [TRAINER_BIRD_KEEPER_MARLON] = { + .partyFlags = 0, + .trainerClass = CLASS_BIRD_KEEPER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_COOL, + .trainerPic = TRAINER_PIC_BIRD_KEEPER, + .trainerName = _("MARLON"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 3, + .party = {.NoItemDefaultMoves = sTrainerMons_823B738} + }, + [TRAINER_BLACK_BELT_KOICHI] = { + .partyFlags = F_TRAINER_PARTY_HELD_ITEM, + .trainerClass = CLASS_BLACK_BELT_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_INTENSE, + .trainerPic = TRAINER_PIC_BLACK_BELT, + .trainerName = _("KOICHI"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.ItemDefaultMoves = sTrainerMons_823B750} + }, + [TRAINER_BLACK_BELT_MIKE] = { + .partyFlags = F_TRAINER_PARTY_HELD_ITEM, + .trainerClass = CLASS_BLACK_BELT_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_INTENSE, + .trainerPic = TRAINER_PIC_BLACK_BELT, + .trainerName = _("MIKE"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 3, + .party = {.ItemDefaultMoves = sTrainerMons_823B760} + }, + [TRAINER_BLACK_BELT_HIDEKI] = { + .partyFlags = F_TRAINER_PARTY_HELD_ITEM, + .trainerClass = CLASS_BLACK_BELT_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_INTENSE, + .trainerPic = TRAINER_PIC_BLACK_BELT, + .trainerName = _("HIDEKI"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.ItemDefaultMoves = sTrainerMons_823B778} + }, + [TRAINER_BLACK_BELT_AARON] = { + .partyFlags = F_TRAINER_PARTY_HELD_ITEM, + .trainerClass = CLASS_BLACK_BELT_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_INTENSE, + .trainerPic = TRAINER_PIC_BLACK_BELT, + .trainerName = _("AARON"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.ItemDefaultMoves = sTrainerMons_823B788} + }, + [TRAINER_BLACK_BELT_HITOSHI] = { + .partyFlags = F_TRAINER_PARTY_HELD_ITEM, + .trainerClass = CLASS_BLACK_BELT_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_INTENSE, + .trainerPic = TRAINER_PIC_BLACK_BELT, + .trainerName = _("HITOSHI"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 3, + .party = {.ItemDefaultMoves = sTrainerMons_823B790} + }, + [TRAINER_BLACK_BELT_ATSUSHI] = { + .partyFlags = F_TRAINER_PARTY_HELD_ITEM, + .trainerClass = CLASS_BLACK_BELT_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_INTENSE, + .trainerPic = TRAINER_PIC_BLACK_BELT, + .trainerName = _("ATSUSHI"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.ItemDefaultMoves = sTrainerMons_823B7A8} + }, + [TRAINER_BLACK_BELT_KIYO] = { + .partyFlags = F_TRAINER_PARTY_HELD_ITEM, + .trainerClass = CLASS_BLACK_BELT_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_INTENSE, + .trainerPic = TRAINER_PIC_BLACK_BELT, + .trainerName = _("KIYO"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.ItemDefaultMoves = sTrainerMons_823B7B8} + }, + [TRAINER_BLACK_BELT_TAKASHI] = { + .partyFlags = F_TRAINER_PARTY_HELD_ITEM, + .trainerClass = CLASS_BLACK_BELT_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_INTENSE, + .trainerPic = TRAINER_PIC_BLACK_BELT, + .trainerName = _("TAKASHI"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 3, + .party = {.ItemDefaultMoves = sTrainerMons_823B7C0} + }, + [TRAINER_BLACK_BELT_DAISUKE] = { + .partyFlags = F_TRAINER_PARTY_HELD_ITEM, + .trainerClass = CLASS_BLACK_BELT_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_INTENSE, + .trainerPic = TRAINER_PIC_BLACK_BELT, + .trainerName = _("DAISUKE"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 3, + .party = {.ItemDefaultMoves = sTrainerMons_823B7D8} + }, + [TRAINER_RIVAL_OAKS_LAB_SQUIRTLE] = { + .partyFlags = 0, + .trainerClass = CLASS_RIVAL, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_RIVAL_1, + .trainerName = _("TERRY"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE | AI_SCRIPT_TRY_TO_FAINT | AI_SCRIPT_CHECK_VIABILITY, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823B7F0} + }, + [TRAINER_RIVAL_OAKS_LAB_BULBASAUR] = { + .partyFlags = 0, + .trainerClass = CLASS_RIVAL, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_RIVAL_1, + .trainerName = _("TERRY"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE | AI_SCRIPT_TRY_TO_FAINT | AI_SCRIPT_CHECK_VIABILITY, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823B7F8} + }, + [TRAINER_RIVAL_OAKS_LAB_CHARMANDER] = { + .partyFlags = 0, + .trainerClass = CLASS_RIVAL, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_RIVAL_1, + .trainerName = _("TERRY"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE | AI_SCRIPT_TRY_TO_FAINT | AI_SCRIPT_CHECK_VIABILITY, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823B800} + }, + [TRAINER_RIVAL_ROUTE22_EARLY_SQUIRTLE] = { + .partyFlags = F_TRAINER_PARTY_CUSTOM_MOVESET, + .trainerClass = CLASS_RIVAL, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_RIVAL_1, + .trainerName = _("TERRY"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE | AI_SCRIPT_TRY_TO_FAINT | AI_SCRIPT_CHECK_VIABILITY, + .partySize = 2, + .party = {.NoItemCustomMoves = sTrainerMons_823B808} + }, + [TRAINER_RIVAL_ROUTE22_EARLY_BULBASAUR] = { + .partyFlags = F_TRAINER_PARTY_CUSTOM_MOVESET, + .trainerClass = CLASS_RIVAL, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_RIVAL_1, + .trainerName = _("TERRY"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE | AI_SCRIPT_TRY_TO_FAINT | AI_SCRIPT_CHECK_VIABILITY, + .partySize = 2, + .party = {.NoItemCustomMoves = sTrainerMons_823B828} + }, + [TRAINER_RIVAL_ROUTE22_EARLY_CHARMANDER] = { + .partyFlags = F_TRAINER_PARTY_CUSTOM_MOVESET, + .trainerClass = CLASS_RIVAL, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_RIVAL_1, + .trainerName = _("TERRY"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE | AI_SCRIPT_TRY_TO_FAINT | AI_SCRIPT_CHECK_VIABILITY, + .partySize = 2, + .party = {.NoItemCustomMoves = sTrainerMons_823B848} + }, + [TRAINER_RIVAL_CERULEAN_SQUIRTLE] = { + .partyFlags = F_TRAINER_PARTY_CUSTOM_MOVESET, + .trainerClass = CLASS_RIVAL, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_RIVAL_1, + .trainerName = _("TERRY"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE | AI_SCRIPT_TRY_TO_FAINT | AI_SCRIPT_CHECK_VIABILITY, + .partySize = 4, + .party = {.NoItemCustomMoves = sTrainerMons_823B868} + }, + [TRAINER_RIVAL_CERULEAN_BULBASAUR] = { + .partyFlags = F_TRAINER_PARTY_CUSTOM_MOVESET, + .trainerClass = CLASS_RIVAL, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_RIVAL_1, + .trainerName = _("TERRY"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE | AI_SCRIPT_TRY_TO_FAINT | AI_SCRIPT_CHECK_VIABILITY, + .partySize = 4, + .party = {.NoItemCustomMoves = sTrainerMons_823B8A8} + }, + [TRAINER_RIVAL_CERULEAN_CHARMANDER] = { + .partyFlags = F_TRAINER_PARTY_CUSTOM_MOVESET, + .trainerClass = CLASS_RIVAL, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_RIVAL_1, + .trainerName = _("TERRY"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE | AI_SCRIPT_TRY_TO_FAINT | AI_SCRIPT_CHECK_VIABILITY, + .partySize = 4, + .party = {.NoItemCustomMoves = sTrainerMons_823B8E8} + }, + [TRAINER_SCIENTIST_TED] = { + .partyFlags = 0, + .trainerClass = CLASS_SCIENTIST, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_SUSPICIOUS, + .trainerPic = TRAINER_PIC_SCIENTIST, + .trainerName = _("TED"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823B928} + }, + [TRAINER_SCIENTIST_CONNOR] = { + .partyFlags = F_TRAINER_PARTY_CUSTOM_MOVESET, + .trainerClass = CLASS_SCIENTIST, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_SUSPICIOUS, + .trainerPic = TRAINER_PIC_SCIENTIST, + .trainerName = _("CONNOR"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 4, + .party = {.NoItemCustomMoves = sTrainerMons_823B938} + }, + [TRAINER_SCIENTIST_JERRY] = { + .partyFlags = 0, + .trainerClass = CLASS_SCIENTIST, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_SUSPICIOUS, + .trainerPic = TRAINER_PIC_SCIENTIST, + .trainerName = _("JERRY"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 3, + .party = {.NoItemDefaultMoves = sTrainerMons_823B978} + }, + [TRAINER_SCIENTIST_JOSE] = { + .partyFlags = F_TRAINER_PARTY_CUSTOM_MOVESET, + .trainerClass = CLASS_SCIENTIST, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_SUSPICIOUS, + .trainerPic = TRAINER_PIC_SCIENTIST, + .trainerName = _("JOSE"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemCustomMoves = sTrainerMons_823B990} + }, + [TRAINER_SCIENTIST_RODNEY] = { + .partyFlags = 0, + .trainerClass = CLASS_SCIENTIST, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_SUSPICIOUS, + .trainerPic = TRAINER_PIC_SCIENTIST, + .trainerName = _("RODNEY"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823B9B0} + }, + [TRAINER_SCIENTIST_BEAU] = { + .partyFlags = F_TRAINER_PARTY_CUSTOM_MOVESET, + .trainerClass = CLASS_SCIENTIST, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_SUSPICIOUS, + .trainerPic = TRAINER_PIC_SCIENTIST, + .trainerName = _("BEAU"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 4, + .party = {.NoItemCustomMoves = sTrainerMons_823B9B8} + }, + [TRAINER_SCIENTIST_TAYLOR] = { + .partyFlags = F_TRAINER_PARTY_CUSTOM_MOVESET, + .trainerClass = CLASS_SCIENTIST, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_SUSPICIOUS, + .trainerPic = TRAINER_PIC_SCIENTIST, + .trainerName = _("TAYLOR"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 5, + .party = {.NoItemCustomMoves = sTrainerMons_823B9F8} + }, + [TRAINER_SCIENTIST_JOSHUA] = { + .partyFlags = 0, + .trainerClass = CLASS_SCIENTIST, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_SUSPICIOUS, + .trainerPic = TRAINER_PIC_SCIENTIST, + .trainerName = _("JOSHUA"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823BA48} + }, + [TRAINER_SCIENTIST_PARKER] = { + .partyFlags = 0, + .trainerClass = CLASS_SCIENTIST, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_SUSPICIOUS, + .trainerPic = TRAINER_PIC_SCIENTIST, + .trainerName = _("PARKER"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823BA58} + }, + [TRAINER_SCIENTIST_ED] = { + .partyFlags = F_TRAINER_PARTY_CUSTOM_MOVESET, + .trainerClass = CLASS_SCIENTIST, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_SUSPICIOUS, + .trainerPic = TRAINER_PIC_SCIENTIST, + .trainerName = _("ED"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 3, + .party = {.NoItemCustomMoves = sTrainerMons_823BA68} + }, + [TRAINER_SCIENTIST_TRAVIS] = { + .partyFlags = 0, + .trainerClass = CLASS_SCIENTIST, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_SUSPICIOUS, + .trainerPic = TRAINER_PIC_SCIENTIST, + .trainerName = _("TRAVIS"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823BA98} + }, + [TRAINER_SCIENTIST_BRAYDON] = { + .partyFlags = 0, + .trainerClass = CLASS_SCIENTIST, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_SUSPICIOUS, + .trainerPic = TRAINER_PIC_SCIENTIST, + .trainerName = _("BRAYDON"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 3, + .party = {.NoItemDefaultMoves = sTrainerMons_823BAA8} + }, + [TRAINER_SCIENTIST_IVAN] = { + .partyFlags = 0, + .trainerClass = CLASS_SCIENTIST, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_SUSPICIOUS, + .trainerPic = TRAINER_PIC_SCIENTIST, + .trainerName = _("IVAN"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823BAC0} + }, + [TRAINER_BOSS_GIOVANNI] = { + .partyFlags = 0, + .trainerClass = CLASS_BOSS, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_AQUA, + .trainerPic = TRAINER_PIC_LEADER_GIOVANNI, + .trainerName = _("GIOVANNI"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 3, + .party = {.NoItemDefaultMoves = sTrainerMons_823BAD0} + }, + [TRAINER_BOSS_GIOVANNI_2] = { + .partyFlags = 0, + .trainerClass = CLASS_BOSS, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_AQUA, + .trainerPic = TRAINER_PIC_LEADER_GIOVANNI, + .trainerName = _("GIOVANNI"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 4, + .party = {.NoItemDefaultMoves = sTrainerMons_823BAE8} + }, + [TRAINER_LEADER_GIOVANNI] = { + .partyFlags = F_TRAINER_PARTY_CUSTOM_MOVESET, + .trainerClass = CLASS_LEADER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_AQUA, + .trainerPic = TRAINER_PIC_LEADER_GIOVANNI, + .trainerName = _("GIOVANNI"), + .items = {ITEM_HYPER_POTION, ITEM_HYPER_POTION, ITEM_FULL_HEAL}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE | AI_SCRIPT_TRY_TO_FAINT | AI_SCRIPT_CHECK_VIABILITY, + .partySize = 5, + .party = {.NoItemCustomMoves = sTrainerMons_823BB08} + }, + [TRAINER_TEAM_ROCKET_GRUNT] = { + .partyFlags = 0, + .trainerClass = CLASS_TEAM_ROCKET, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_AQUA, + .trainerPic = TRAINER_PIC_ROCKET_GRUNT_M, + .trainerName = _("GRUNT"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823BB58} + }, + [TRAINER_TEAM_ROCKET_GRUNT_2] = { + .partyFlags = 0, + .trainerClass = CLASS_TEAM_ROCKET, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_AQUA, + .trainerPic = TRAINER_PIC_ROCKET_GRUNT_M, + .trainerName = _("GRUNT"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 3, + .party = {.NoItemDefaultMoves = sTrainerMons_823BB68} + }, + [TRAINER_TEAM_ROCKET_GRUNT_3] = { + .partyFlags = 0, + .trainerClass = CLASS_TEAM_ROCKET, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_AQUA, + .trainerPic = TRAINER_PIC_ROCKET_GRUNT_M, + .trainerName = _("GRUNT"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823BB80} + }, + [TRAINER_TEAM_ROCKET_GRUNT_4] = { + .partyFlags = 0, + .trainerClass = CLASS_TEAM_ROCKET, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_AQUA, + .trainerPic = TRAINER_PIC_ROCKET_GRUNT_M, + .trainerName = _("GRUNT"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823BB90} + }, + [TRAINER_TEAM_ROCKET_GRUNT_5] = { + .partyFlags = 0, + .trainerClass = CLASS_TEAM_ROCKET, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_AQUA, + .trainerPic = TRAINER_PIC_ROCKET_GRUNT_M, + .trainerName = _("GRUNT"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823BBA0} + }, + [TRAINER_TEAM_ROCKET_GRUNT_6] = { + .partyFlags = 0, + .trainerClass = CLASS_TEAM_ROCKET, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_AQUA, + .trainerPic = TRAINER_PIC_ROCKET_GRUNT_M, + .trainerName = _("GRUNT"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823BBB0} + }, + [TRAINER_TEAM_ROCKET_GRUNT_7] = { + .partyFlags = 0, + .trainerClass = CLASS_TEAM_ROCKET, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_AQUA, + .trainerPic = TRAINER_PIC_ROCKET_GRUNT_M, + .trainerName = _("GRUNT"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823BBC0} + }, + [TRAINER_TEAM_ROCKET_GRUNT_8] = { + .partyFlags = 0, + .trainerClass = CLASS_TEAM_ROCKET, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_AQUA, + .trainerPic = TRAINER_PIC_ROCKET_GRUNT_M, + .trainerName = _("GRUNT"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823BBD0} + }, + [TRAINER_TEAM_ROCKET_GRUNT_9] = { + .partyFlags = 0, + .trainerClass = CLASS_TEAM_ROCKET, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_AQUA, + .trainerPic = TRAINER_PIC_ROCKET_GRUNT_M, + .trainerName = _("GRUNT"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823BBE0} + }, + [TRAINER_TEAM_ROCKET_GRUNT_10] = { + .partyFlags = F_TRAINER_PARTY_CUSTOM_MOVESET, + .trainerClass = CLASS_TEAM_ROCKET, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_AQUA, + .trainerPic = TRAINER_PIC_ROCKET_GRUNT_M, + .trainerName = _("GRUNT"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 3, + .party = {.NoItemCustomMoves = sTrainerMons_823BBF0} + }, + [TRAINER_TEAM_ROCKET_GRUNT_11] = { + .partyFlags = 0, + .trainerClass = CLASS_TEAM_ROCKET, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_AQUA, + .trainerPic = TRAINER_PIC_ROCKET_GRUNT_M, + .trainerName = _("GRUNT"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 4, + .party = {.NoItemDefaultMoves = sTrainerMons_823BC20} + }, + [TRAINER_TEAM_ROCKET_GRUNT_12] = { + .partyFlags = F_TRAINER_PARTY_CUSTOM_MOVESET, + .trainerClass = CLASS_TEAM_ROCKET, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_AQUA, + .trainerPic = TRAINER_PIC_ROCKET_GRUNT_M, + .trainerName = _("GRUNT"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemCustomMoves = sTrainerMons_823BC40} + }, + [TRAINER_TEAM_ROCKET_GRUNT_13] = { + .partyFlags = F_TRAINER_PARTY_CUSTOM_MOVESET, + .trainerClass = CLASS_TEAM_ROCKET, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_AQUA, + .trainerPic = TRAINER_PIC_ROCKET_GRUNT_M, + .trainerName = _("GRUNT"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 5, + .party = {.NoItemCustomMoves = sTrainerMons_823BC60} + }, + [TRAINER_TEAM_ROCKET_GRUNT_14] = { + .partyFlags = 0, + .trainerClass = CLASS_TEAM_ROCKET, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_AQUA, + .trainerPic = TRAINER_PIC_ROCKET_GRUNT_M, + .trainerName = _("GRUNT"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 3, + .party = {.NoItemDefaultMoves = sTrainerMons_823BCB0} + }, + [TRAINER_TEAM_ROCKET_GRUNT_15] = { + .partyFlags = 0, + .trainerClass = CLASS_TEAM_ROCKET, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_AQUA, + .trainerPic = TRAINER_PIC_ROCKET_GRUNT_M, + .trainerName = _("GRUNT"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823BCC8} + }, + [TRAINER_TEAM_ROCKET_GRUNT_16] = { + .partyFlags = 0, + .trainerClass = CLASS_TEAM_ROCKET, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_AQUA, + .trainerPic = TRAINER_PIC_ROCKET_GRUNT_M, + .trainerName = _("GRUNT"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 3, + .party = {.NoItemDefaultMoves = sTrainerMons_823BCD8} + }, + [TRAINER_TEAM_ROCKET_GRUNT_17] = { + .partyFlags = 0, + .trainerClass = CLASS_TEAM_ROCKET, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_AQUA, + .trainerPic = TRAINER_PIC_ROCKET_GRUNT_M, + .trainerName = _("GRUNT"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 3, + .party = {.NoItemDefaultMoves = sTrainerMons_823BCF0} + }, + [TRAINER_TEAM_ROCKET_GRUNT_18] = { + .partyFlags = 0, + .trainerClass = CLASS_TEAM_ROCKET, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_AQUA, + .trainerPic = TRAINER_PIC_ROCKET_GRUNT_M, + .trainerName = _("GRUNT"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823BD08} + }, + [TRAINER_TEAM_ROCKET_GRUNT_19] = { + .partyFlags = 0, + .trainerClass = CLASS_TEAM_ROCKET, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_AQUA, + .trainerPic = TRAINER_PIC_ROCKET_GRUNT_M, + .trainerName = _("GRUNT"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 3, + .party = {.NoItemDefaultMoves = sTrainerMons_823BD18} + }, + [TRAINER_TEAM_ROCKET_GRUNT_20] = { + .partyFlags = 0, + .trainerClass = CLASS_TEAM_ROCKET, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_AQUA, + .trainerPic = TRAINER_PIC_ROCKET_GRUNT_M, + .trainerName = _("GRUNT"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823BD30} + }, + [TRAINER_TEAM_ROCKET_GRUNT_21] = { + .partyFlags = 0, + .trainerClass = CLASS_TEAM_ROCKET, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_AQUA, + .trainerPic = TRAINER_PIC_ROCKET_GRUNT_M, + .trainerName = _("GRUNT"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 4, + .party = {.NoItemDefaultMoves = sTrainerMons_823BD40} + }, + [TRAINER_TEAM_ROCKET_GRUNT_22] = { + .partyFlags = 0, + .trainerClass = CLASS_TEAM_ROCKET, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_AQUA, + .trainerPic = TRAINER_PIC_ROCKET_GRUNT_M, + .trainerName = _("GRUNT"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823BD60} + }, + [TRAINER_TEAM_ROCKET_GRUNT_23] = { + .partyFlags = 0, + .trainerClass = CLASS_TEAM_ROCKET, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_AQUA, + .trainerPic = TRAINER_PIC_ROCKET_GRUNT_M, + .trainerName = _("GRUNT"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823BD70} + }, + [TRAINER_TEAM_ROCKET_GRUNT_24] = { + .partyFlags = 0, + .trainerClass = CLASS_TEAM_ROCKET, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_AQUA, + .trainerPic = TRAINER_PIC_ROCKET_GRUNT_M, + .trainerName = _("GRUNT"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 5, + .party = {.NoItemDefaultMoves = sTrainerMons_823BD80} + }, + [TRAINER_TEAM_ROCKET_GRUNT_25] = { + .partyFlags = 0, + .trainerClass = CLASS_TEAM_ROCKET, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_AQUA, + .trainerPic = TRAINER_PIC_ROCKET_GRUNT_M, + .trainerName = _("GRUNT"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 3, + .party = {.NoItemDefaultMoves = sTrainerMons_823BDA8} + }, + [TRAINER_TEAM_ROCKET_GRUNT_26] = { + .partyFlags = 0, + .trainerClass = CLASS_TEAM_ROCKET, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_AQUA, + .trainerPic = TRAINER_PIC_ROCKET_GRUNT_M, + .trainerName = _("GRUNT"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823BDC0} + }, + [TRAINER_TEAM_ROCKET_GRUNT_27] = { + .partyFlags = 0, + .trainerClass = CLASS_TEAM_ROCKET, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_AQUA, + .trainerPic = TRAINER_PIC_ROCKET_GRUNT_M, + .trainerName = _("GRUNT"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 3, + .party = {.NoItemDefaultMoves = sTrainerMons_823BDD0} + }, + [TRAINER_TEAM_ROCKET_GRUNT_28] = { + .partyFlags = 0, + .trainerClass = CLASS_TEAM_ROCKET, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_AQUA, + .trainerPic = TRAINER_PIC_ROCKET_GRUNT_M, + .trainerName = _("GRUNT"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823BDE8} + }, + [TRAINER_TEAM_ROCKET_GRUNT_29] = { + .partyFlags = 0, + .trainerClass = CLASS_TEAM_ROCKET, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_AQUA, + .trainerPic = TRAINER_PIC_ROCKET_GRUNT_M, + .trainerName = _("GRUNT"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823BDF0} + }, + [TRAINER_TEAM_ROCKET_GRUNT_30] = { + .partyFlags = 0, + .trainerClass = CLASS_TEAM_ROCKET, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_AQUA, + .trainerPic = TRAINER_PIC_ROCKET_GRUNT_M, + .trainerName = _("GRUNT"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823BDF8} + }, + [TRAINER_TEAM_ROCKET_GRUNT_31] = { + .partyFlags = 0, + .trainerClass = CLASS_TEAM_ROCKET, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_AQUA, + .trainerPic = TRAINER_PIC_ROCKET_GRUNT_M, + .trainerName = _("GRUNT"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 3, + .party = {.NoItemDefaultMoves = sTrainerMons_823BE08} + }, + [TRAINER_TEAM_ROCKET_GRUNT_32] = { + .partyFlags = F_TRAINER_PARTY_CUSTOM_MOVESET, + .trainerClass = CLASS_TEAM_ROCKET, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_AQUA, + .trainerPic = TRAINER_PIC_ROCKET_GRUNT_M, + .trainerName = _("GRUNT"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 4, + .party = {.NoItemCustomMoves = sTrainerMons_823BE20} + }, + [TRAINER_TEAM_ROCKET_GRUNT_33] = { + .partyFlags = 0, + .trainerClass = CLASS_TEAM_ROCKET, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_AQUA, + .trainerPic = TRAINER_PIC_ROCKET_GRUNT_M, + .trainerName = _("GRUNT"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823BE60} + }, + [TRAINER_TEAM_ROCKET_GRUNT_34] = { + .partyFlags = 0, + .trainerClass = CLASS_TEAM_ROCKET, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_AQUA, + .trainerPic = TRAINER_PIC_ROCKET_GRUNT_M, + .trainerName = _("GRUNT"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823BE70} + }, + [TRAINER_TEAM_ROCKET_GRUNT_35] = { + .partyFlags = 0, + .trainerClass = CLASS_TEAM_ROCKET, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_AQUA, + .trainerPic = TRAINER_PIC_ROCKET_GRUNT_M, + .trainerName = _("GRUNT"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 4, + .party = {.NoItemDefaultMoves = sTrainerMons_823BE80} + }, + [TRAINER_TEAM_ROCKET_GRUNT_36] = { + .partyFlags = 0, + .trainerClass = CLASS_TEAM_ROCKET, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_AQUA, + .trainerPic = TRAINER_PIC_ROCKET_GRUNT_M, + .trainerName = _("GRUNT"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 3, + .party = {.NoItemDefaultMoves = sTrainerMons_823BEA0} + }, + [TRAINER_TEAM_ROCKET_GRUNT_37] = { + .partyFlags = 0, + .trainerClass = CLASS_TEAM_ROCKET, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_AQUA, + .trainerPic = TRAINER_PIC_ROCKET_GRUNT_M, + .trainerName = _("GRUNT"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 3, + .party = {.NoItemDefaultMoves = sTrainerMons_823BEB8} + }, + [TRAINER_TEAM_ROCKET_GRUNT_38] = { + .partyFlags = 0, + .trainerClass = CLASS_TEAM_ROCKET, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_AQUA, + .trainerPic = TRAINER_PIC_ROCKET_GRUNT_M, + .trainerName = _("GRUNT"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 3, + .party = {.NoItemDefaultMoves = sTrainerMons_823BED0} + }, + [TRAINER_TEAM_ROCKET_GRUNT_39] = { + .partyFlags = 0, + .trainerClass = CLASS_TEAM_ROCKET, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_AQUA, + .trainerPic = TRAINER_PIC_ROCKET_GRUNT_M, + .trainerName = _("GRUNT"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823BEE8} + }, + [TRAINER_TEAM_ROCKET_GRUNT_40] = { + .partyFlags = 0, + .trainerClass = CLASS_TEAM_ROCKET, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_AQUA, + .trainerPic = TRAINER_PIC_ROCKET_GRUNT_M, + .trainerName = _("GRUNT"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 5, + .party = {.NoItemDefaultMoves = sTrainerMons_823BEF0} + }, + [TRAINER_TEAM_ROCKET_GRUNT_41] = { + .partyFlags = 0, + .trainerClass = CLASS_TEAM_ROCKET, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_AQUA, + .trainerPic = TRAINER_PIC_ROCKET_GRUNT_M, + .trainerName = _("GRUNT"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 3, + .party = {.NoItemDefaultMoves = sTrainerMons_823BF18} + }, + [TRAINER_COOLTRAINER_SAMUEL] = { + .partyFlags = F_TRAINER_PARTY_CUSTOM_MOVESET, + .trainerClass = CLASS_COOLTRAINER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_COOL, + .trainerPic = TRAINER_PIC_COOLTRAINER_M, + .trainerName = _("SAMUEL"), + .items = {ITEM_SUPER_POTION}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE | AI_SCRIPT_TRY_TO_FAINT | AI_SCRIPT_CHECK_VIABILITY, + .partySize = 5, + .party = {.NoItemCustomMoves = sTrainerMons_823BF30} + }, + [TRAINER_COOLTRAINER_GEORGE] = { + .partyFlags = F_TRAINER_PARTY_CUSTOM_MOVESET, + .trainerClass = CLASS_COOLTRAINER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_COOL, + .trainerPic = TRAINER_PIC_COOLTRAINER_M, + .trainerName = _("GEORGE"), + .items = {ITEM_HYPER_POTION}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE | AI_SCRIPT_TRY_TO_FAINT | AI_SCRIPT_CHECK_VIABILITY, + .partySize = 5, + .party = {.NoItemCustomMoves = sTrainerMons_823BF80} + }, + [TRAINER_COOLTRAINER_COLBY] = { + .partyFlags = F_TRAINER_PARTY_CUSTOM_MOVESET, + .trainerClass = CLASS_COOLTRAINER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_COOL, + .trainerPic = TRAINER_PIC_COOLTRAINER_M, + .trainerName = _("COLBY"), + .items = {ITEM_HYPER_POTION}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE | AI_SCRIPT_TRY_TO_FAINT | AI_SCRIPT_CHECK_VIABILITY, + .partySize = 5, + .party = {.NoItemCustomMoves = sTrainerMons_823BFD0} + }, + [TRAINER_COOLTRAINER_PAUL] = { + .partyFlags = F_TRAINER_PARTY_CUSTOM_MOVESET, + .trainerClass = CLASS_COOLTRAINER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_COOL, + .trainerPic = TRAINER_PIC_COOLTRAINER_M, + .trainerName = _("PAUL"), + .items = {ITEM_FULL_RESTORE}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE | AI_SCRIPT_TRY_TO_FAINT | AI_SCRIPT_CHECK_VIABILITY, + .partySize = 5, + .party = {.NoItemCustomMoves = sTrainerMons_823C020} + }, + [TRAINER_COOLTRAINER_ROLANDO] = { + .partyFlags = F_TRAINER_PARTY_CUSTOM_MOVESET, + .trainerClass = CLASS_COOLTRAINER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_COOL, + .trainerPic = TRAINER_PIC_COOLTRAINER_M, + .trainerName = _("ROLANDO"), + .items = {ITEM_HYPER_POTION}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE | AI_SCRIPT_TRY_TO_FAINT | AI_SCRIPT_CHECK_VIABILITY, + .partySize = 5, + .party = {.NoItemCustomMoves = sTrainerMons_823C070} + }, + [TRAINER_COOLTRAINER_GILBERT] = { + .partyFlags = F_TRAINER_PARTY_CUSTOM_MOVESET, + .trainerClass = CLASS_COOLTRAINER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_COOL, + .trainerPic = TRAINER_PIC_COOLTRAINER_M, + .trainerName = _("GILBERT"), + .items = {ITEM_HYPER_POTION}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE | AI_SCRIPT_TRY_TO_FAINT | AI_SCRIPT_CHECK_VIABILITY, + .partySize = 5, + .party = {.NoItemCustomMoves = sTrainerMons_823C0C0} + }, + [TRAINER_COOLTRAINER_OWEN] = { + .partyFlags = F_TRAINER_PARTY_CUSTOM_MOVESET, + .trainerClass = CLASS_COOLTRAINER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_COOL, + .trainerPic = TRAINER_PIC_COOLTRAINER_M, + .trainerName = _("OWEN"), + .items = {ITEM_HYPER_POTION}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE | AI_SCRIPT_TRY_TO_FAINT | AI_SCRIPT_CHECK_VIABILITY, + .partySize = 5, + .party = {.NoItemCustomMoves = sTrainerMons_823C110} + }, + [TRAINER_COOLTRAINER_BERKE] = { + .partyFlags = F_TRAINER_PARTY_CUSTOM_MOVESET, + .trainerClass = CLASS_COOLTRAINER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_COOL, + .trainerPic = TRAINER_PIC_COOLTRAINER_M, + .trainerName = _("BERKE"), + .items = {ITEM_FULL_RESTORE}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE | AI_SCRIPT_TRY_TO_FAINT | AI_SCRIPT_CHECK_VIABILITY, + .partySize = 5, + .party = {.NoItemCustomMoves = sTrainerMons_823C160} + }, + [TRAINER_COOLTRAINER_YUJI] = { + .partyFlags = F_TRAINER_PARTY_CUSTOM_MOVESET, + .trainerClass = CLASS_COOLTRAINER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_COOL, + .trainerPic = TRAINER_PIC_COOLTRAINER_M, + .trainerName = _("YUJI"), + .items = {ITEM_HYPER_POTION}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE | AI_SCRIPT_TRY_TO_FAINT | AI_SCRIPT_CHECK_VIABILITY, + .partySize = 5, + .party = {.NoItemCustomMoves = sTrainerMons_823C1B0} + }, + [TRAINER_COOLTRAINER_WARREN] = { + .partyFlags = F_TRAINER_PARTY_CUSTOM_MOVESET, + .trainerClass = CLASS_COOLTRAINER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_COOL, + .trainerPic = TRAINER_PIC_COOLTRAINER_M, + .trainerName = _("WARREN"), + .items = {ITEM_HYPER_POTION}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE | AI_SCRIPT_TRY_TO_FAINT | AI_SCRIPT_CHECK_VIABILITY, + .partySize = 5, + .party = {.NoItemCustomMoves = sTrainerMons_823C200} + }, + [TRAINER_COOLTRAINER_MARY] = { + .partyFlags = F_TRAINER_PARTY_CUSTOM_MOVESET, + .trainerClass = CLASS_COOLTRAINER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_COOL | F_TRAINER_FEMALE, + .trainerPic = TRAINER_PIC_COOLTRAINER_F, + .trainerName = _("MARY"), + .items = {ITEM_SUPER_POTION}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE | AI_SCRIPT_TRY_TO_FAINT | AI_SCRIPT_CHECK_VIABILITY, + .partySize = 5, + .party = {.NoItemCustomMoves = sTrainerMons_823C250} + }, + [TRAINER_COOLTRAINER_CAROLINE] = { + .partyFlags = F_TRAINER_PARTY_CUSTOM_MOVESET, + .trainerClass = CLASS_COOLTRAINER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_COOL | F_TRAINER_FEMALE, + .trainerPic = TRAINER_PIC_COOLTRAINER_F, + .trainerName = _("CAROLINE"), + .items = {ITEM_HYPER_POTION}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE | AI_SCRIPT_TRY_TO_FAINT | AI_SCRIPT_CHECK_VIABILITY, + .partySize = 5, + .party = {.NoItemCustomMoves = sTrainerMons_823C2A0} + }, + [TRAINER_COOLTRAINER_ALEXA] = { + .partyFlags = F_TRAINER_PARTY_CUSTOM_MOVESET, + .trainerClass = CLASS_COOLTRAINER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_COOL | F_TRAINER_FEMALE, + .trainerPic = TRAINER_PIC_COOLTRAINER_F, + .trainerName = _("ALEXA"), + .items = {ITEM_FULL_RESTORE}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE | AI_SCRIPT_TRY_TO_FAINT | AI_SCRIPT_CHECK_VIABILITY, + .partySize = 5, + .party = {.NoItemCustomMoves = sTrainerMons_823C2F0} + }, + [TRAINER_COOLTRAINER_SHANNON] = { + .partyFlags = F_TRAINER_PARTY_CUSTOM_MOVESET, + .trainerClass = CLASS_COOLTRAINER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_COOL | F_TRAINER_FEMALE, + .trainerPic = TRAINER_PIC_COOLTRAINER_F, + .trainerName = _("SHANNON"), + .items = {ITEM_FULL_RESTORE}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE | AI_SCRIPT_TRY_TO_FAINT | AI_SCRIPT_CHECK_VIABILITY, + .partySize = 5, + .party = {.NoItemCustomMoves = sTrainerMons_823C340} + }, + [TRAINER_COOLTRAINER_NAOMI] = { + .partyFlags = F_TRAINER_PARTY_CUSTOM_MOVESET, + .trainerClass = CLASS_COOLTRAINER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_COOL | F_TRAINER_FEMALE, + .trainerPic = TRAINER_PIC_COOLTRAINER_F, + .trainerName = _("NAOMI"), + .items = {ITEM_HYPER_POTION}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE | AI_SCRIPT_TRY_TO_FAINT | AI_SCRIPT_CHECK_VIABILITY, + .partySize = 5, + .party = {.NoItemCustomMoves = sTrainerMons_823C390} + }, + [TRAINER_COOLTRAINER_BROOKE] = { + .partyFlags = F_TRAINER_PARTY_CUSTOM_MOVESET, + .trainerClass = CLASS_COOLTRAINER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_COOL | F_TRAINER_FEMALE, + .trainerPic = TRAINER_PIC_COOLTRAINER_F, + .trainerName = _("BROOKE"), + .items = {ITEM_FULL_RESTORE}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE | AI_SCRIPT_TRY_TO_FAINT | AI_SCRIPT_CHECK_VIABILITY, + .partySize = 5, + .party = {.NoItemCustomMoves = sTrainerMons_823C3E0} + }, + [TRAINER_COOLTRAINER_AUSTINA] = { + .partyFlags = F_TRAINER_PARTY_CUSTOM_MOVESET, + .trainerClass = CLASS_COOLTRAINER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_COOL | F_TRAINER_FEMALE, + .trainerPic = TRAINER_PIC_COOLTRAINER_F, + .trainerName = _("AUSTINA"), + .items = {ITEM_FULL_RESTORE}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE | AI_SCRIPT_TRY_TO_FAINT | AI_SCRIPT_CHECK_VIABILITY, + .partySize = 5, + .party = {.NoItemCustomMoves = sTrainerMons_823C430} + }, + [TRAINER_COOLTRAINER_JULIE] = { + .partyFlags = F_TRAINER_PARTY_CUSTOM_MOVESET, + .trainerClass = CLASS_COOLTRAINER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_COOL | F_TRAINER_FEMALE, + .trainerPic = TRAINER_PIC_COOLTRAINER_F, + .trainerName = _("JULIE"), + .items = {ITEM_HYPER_POTION}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE | AI_SCRIPT_TRY_TO_FAINT | AI_SCRIPT_CHECK_VIABILITY, + .partySize = 5, + .party = {.NoItemCustomMoves = sTrainerMons_823C480} + }, + [TRAINER_ELITE_FOUR_LORELEI] = { + .partyFlags = F_TRAINER_PARTY_CUSTOM_MOVESET | F_TRAINER_PARTY_HELD_ITEM, + .trainerClass = CLASS_ELITE_FOUR_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_ELITE_FOUR | F_TRAINER_FEMALE, + .trainerPic = TRAINER_PIC_ELITE_FOUR_LORELEI, + .trainerName = _("LORELEI"), + .items = {ITEM_FULL_RESTORE, ITEM_FULL_RESTORE}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE | AI_SCRIPT_TRY_TO_FAINT | AI_SCRIPT_CHECK_VIABILITY, + .partySize = 5, + .party = {.ItemCustomMoves = sTrainerMons_823C4D0} + }, + [TRAINER_ELITE_FOUR_BRUNO] = { + .partyFlags = F_TRAINER_PARTY_CUSTOM_MOVESET | F_TRAINER_PARTY_HELD_ITEM, + .trainerClass = CLASS_ELITE_FOUR_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_ELITE_FOUR, + .trainerPic = TRAINER_PIC_ELITE_FOUR_BRUNO, + .trainerName = _("BRUNO"), + .items = {ITEM_FULL_RESTORE, ITEM_FULL_RESTORE}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE | AI_SCRIPT_TRY_TO_FAINT | AI_SCRIPT_CHECK_VIABILITY, + .partySize = 5, + .party = {.ItemCustomMoves = sTrainerMons_823C520} + }, + [TRAINER_ELITE_FOUR_AGATHA] = { + .partyFlags = F_TRAINER_PARTY_CUSTOM_MOVESET | F_TRAINER_PARTY_HELD_ITEM, + .trainerClass = CLASS_ELITE_FOUR_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_ELITE_FOUR | F_TRAINER_FEMALE, + .trainerPic = TRAINER_PIC_ELITE_FOUR_AGATHA, + .trainerName = _("AGATHA"), + .items = {ITEM_FULL_RESTORE, ITEM_FULL_RESTORE}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE | AI_SCRIPT_TRY_TO_FAINT | AI_SCRIPT_CHECK_VIABILITY, + .partySize = 5, + .party = {.ItemCustomMoves = sTrainerMons_823C570} + }, + [TRAINER_ELITE_FOUR_LANCE] = { + .partyFlags = F_TRAINER_PARTY_CUSTOM_MOVESET | F_TRAINER_PARTY_HELD_ITEM, + .trainerClass = CLASS_ELITE_FOUR_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_ELITE_FOUR, + .trainerPic = TRAINER_PIC_ELITE_FOUR_LANCE, + .trainerName = _("LANCE"), + .items = {ITEM_FULL_RESTORE, ITEM_FULL_RESTORE}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE | AI_SCRIPT_TRY_TO_FAINT | AI_SCRIPT_CHECK_VIABILITY, + .partySize = 5, + .party = {.ItemCustomMoves = sTrainerMons_823C5C0} + }, + [TRAINER_LEADER_BROCK] = { + .partyFlags = F_TRAINER_PARTY_CUSTOM_MOVESET, + .trainerClass = CLASS_LEADER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_LEADER_BROCK, + .trainerName = _("BROCK"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE | AI_SCRIPT_TRY_TO_FAINT | AI_SCRIPT_CHECK_VIABILITY, + .partySize = 2, + .party = {.NoItemCustomMoves = sTrainerMons_823C610} + }, + [TRAINER_LEADER_MISTY] = { + .partyFlags = F_TRAINER_PARTY_CUSTOM_MOVESET, + .trainerClass = CLASS_LEADER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_FEMALE | F_TRAINER_FEMALE, + .trainerPic = TRAINER_PIC_LEADER_MISTY, + .trainerName = _("MISTY"), + .items = {ITEM_SUPER_POTION}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE | AI_SCRIPT_TRY_TO_FAINT | AI_SCRIPT_CHECK_VIABILITY, + .partySize = 2, + .party = {.NoItemCustomMoves = sTrainerMons_823C630} + }, + [TRAINER_LEADER_LT_SURGE] = { + .partyFlags = F_TRAINER_PARTY_CUSTOM_MOVESET, + .trainerClass = CLASS_LEADER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_LEADER_LT_SURGE, + .trainerName = _("LT. SURGE"), + .items = {ITEM_SUPER_POTION, ITEM_FULL_HEAL}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE | AI_SCRIPT_TRY_TO_FAINT | AI_SCRIPT_CHECK_VIABILITY, + .partySize = 3, + .party = {.NoItemCustomMoves = sTrainerMons_823C650} + }, + [TRAINER_LEADER_ERIKA] = { + .partyFlags = F_TRAINER_PARTY_CUSTOM_MOVESET, + .trainerClass = CLASS_LEADER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_FEMALE | F_TRAINER_FEMALE, + .trainerPic = TRAINER_PIC_LEADER_ERIKA, + .trainerName = _("ERIKA"), + .items = {ITEM_HYPER_POTION, ITEM_FULL_HEAL}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE | AI_SCRIPT_TRY_TO_FAINT | AI_SCRIPT_CHECK_VIABILITY, + .partySize = 3, + .party = {.NoItemCustomMoves = sTrainerMons_823C680} + }, + [TRAINER_LEADER_KOGA] = { + .partyFlags = F_TRAINER_PARTY_CUSTOM_MOVESET, + .trainerClass = CLASS_LEADER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_LEADER_KOGA, + .trainerName = _("KOGA"), + .items = {ITEM_HYPER_POTION, ITEM_HYPER_POTION, ITEM_FULL_HEAL}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE | AI_SCRIPT_TRY_TO_FAINT | AI_SCRIPT_CHECK_VIABILITY, + .partySize = 4, + .party = {.NoItemCustomMoves = sTrainerMons_823C6B0} + }, + [TRAINER_LEADER_BLAINE] = { + .partyFlags = F_TRAINER_PARTY_CUSTOM_MOVESET, + .trainerClass = CLASS_LEADER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_LEADER_BLAINE, + .trainerName = _("BLAINE"), + .items = {ITEM_HYPER_POTION, ITEM_HYPER_POTION, ITEM_FULL_HEAL}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE | AI_SCRIPT_TRY_TO_FAINT | AI_SCRIPT_CHECK_VIABILITY, + .partySize = 4, + .party = {.NoItemCustomMoves = sTrainerMons_823C6F0} + }, + [TRAINER_LEADER_SABRINA] = { + .partyFlags = F_TRAINER_PARTY_CUSTOM_MOVESET, + .trainerClass = CLASS_LEADER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_FEMALE | F_TRAINER_FEMALE, + .trainerPic = TRAINER_PIC_LEADER_SABRINA, + .trainerName = _("SABRINA"), + .items = {ITEM_HYPER_POTION, ITEM_HYPER_POTION, ITEM_FULL_HEAL}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE | AI_SCRIPT_TRY_TO_FAINT | AI_SCRIPT_CHECK_VIABILITY, + .partySize = 4, + .party = {.NoItemCustomMoves = sTrainerMons_823C730} + }, + [TRAINER_GENTLEMAN_THOMAS] = { + .partyFlags = 0, + .trainerClass = CLASS_GENTLEMAN_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_RICH, + .trainerPic = TRAINER_PIC_GENTLEMAN, + .trainerName = _("THOMAS"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823C770} + }, + [TRAINER_GENTLEMAN_ARTHUR] = { + .partyFlags = 0, + .trainerClass = CLASS_GENTLEMAN_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_RICH, + .trainerPic = TRAINER_PIC_GENTLEMAN, + .trainerName = _("ARTHUR"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823C780} + }, + [TRAINER_GENTLEMAN_TUCKER] = { + .partyFlags = 0, + .trainerClass = CLASS_GENTLEMAN_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_RICH, + .trainerPic = TRAINER_PIC_GENTLEMAN, + .trainerName = _("TUCKER"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823C790} + }, + [TRAINER_GENTLEMAN_NORTON] = { + .partyFlags = 0, + .trainerClass = CLASS_GENTLEMAN_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_RICH, + .trainerPic = TRAINER_PIC_GENTLEMAN, + .trainerName = _("NORTON"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823C798} + }, + [TRAINER_GENTLEMAN_WALTER] = { + .partyFlags = 0, + .trainerClass = CLASS_GENTLEMAN_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_RICH, + .trainerPic = TRAINER_PIC_GENTLEMAN, + .trainerName = _("WALTER"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823C7A0} + }, + [TRAINER_RIVAL_SS_ANNE_SQUIRTLE] = { + .partyFlags = 0, + .trainerClass = CLASS_RIVAL_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_RIVAL_2, + .trainerName = _("TERRY"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE | AI_SCRIPT_TRY_TO_FAINT | AI_SCRIPT_CHECK_VIABILITY, + .partySize = 4, + .party = {.NoItemDefaultMoves = sTrainerMons_823C7B0} + }, + [TRAINER_RIVAL_SS_ANNE_BULBASAUR] = { + .partyFlags = 0, + .trainerClass = CLASS_RIVAL_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_RIVAL_2, + .trainerName = _("TERRY"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE | AI_SCRIPT_TRY_TO_FAINT | AI_SCRIPT_CHECK_VIABILITY, + .partySize = 4, + .party = {.NoItemDefaultMoves = sTrainerMons_823C7D0} + }, + [TRAINER_RIVAL_SS_ANNE_CHARMANDER] = { + .partyFlags = 0, + .trainerClass = CLASS_RIVAL_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_RIVAL_2, + .trainerName = _("TERRY"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE | AI_SCRIPT_TRY_TO_FAINT | AI_SCRIPT_CHECK_VIABILITY, + .partySize = 4, + .party = {.NoItemDefaultMoves = sTrainerMons_823C7F0} + }, + [TRAINER_RIVAL_POKENON_TOWER_SQUIRTLE] = { + .partyFlags = 0, + .trainerClass = CLASS_RIVAL_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_RIVAL_2, + .trainerName = _("TERRY"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE | AI_SCRIPT_TRY_TO_FAINT | AI_SCRIPT_CHECK_VIABILITY, + .partySize = 5, + .party = {.NoItemDefaultMoves = sTrainerMons_823C810} + }, + [TRAINER_RIVAL_POKENON_TOWER_BULBASAUR] = { + .partyFlags = 0, + .trainerClass = CLASS_RIVAL_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_RIVAL_2, + .trainerName = _("TERRY"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE | AI_SCRIPT_TRY_TO_FAINT | AI_SCRIPT_CHECK_VIABILITY, + .partySize = 5, + .party = {.NoItemDefaultMoves = sTrainerMons_823C838} + }, + [TRAINER_RIVAL_POKENON_TOWER_CHARMANDER] = { + .partyFlags = 0, + .trainerClass = CLASS_RIVAL_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_RIVAL_2, + .trainerName = _("TERRY"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE | AI_SCRIPT_TRY_TO_FAINT | AI_SCRIPT_CHECK_VIABILITY, + .partySize = 5, + .party = {.NoItemDefaultMoves = sTrainerMons_823C860} + }, + [TRAINER_RIVAL_SILPH_SQUIRTLE] = { + .partyFlags = 0, + .trainerClass = CLASS_RIVAL_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_RIVAL_2, + .trainerName = _("TERRY"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE | AI_SCRIPT_TRY_TO_FAINT | AI_SCRIPT_CHECK_VIABILITY, + .partySize = 5, + .party = {.NoItemDefaultMoves = sTrainerMons_823C888} + }, + [TRAINER_RIVAL_SILPH_BULBASAUR] = { + .partyFlags = 0, + .trainerClass = CLASS_RIVAL_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_RIVAL_2, + .trainerName = _("TERRY"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE | AI_SCRIPT_TRY_TO_FAINT | AI_SCRIPT_CHECK_VIABILITY, + .partySize = 5, + .party = {.NoItemDefaultMoves = sTrainerMons_823C8B0} + }, + [TRAINER_RIVAL_SILPH_CHARMANDER] = { + .partyFlags = 0, + .trainerClass = CLASS_RIVAL_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_RIVAL_2, + .trainerName = _("TERRY"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE | AI_SCRIPT_TRY_TO_FAINT | AI_SCRIPT_CHECK_VIABILITY, + .partySize = 5, + .party = {.NoItemDefaultMoves = sTrainerMons_823C8D8} + }, + [TRAINER_RIVAL_ROUTE22_LATE_SQUIRTLE] = { + .partyFlags = F_TRAINER_PARTY_CUSTOM_MOVESET, + .trainerClass = CLASS_RIVAL_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_RIVAL_2, + .trainerName = _("TERRY"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE | AI_SCRIPT_TRY_TO_FAINT | AI_SCRIPT_CHECK_VIABILITY, + .partySize = 6, + .party = {.NoItemCustomMoves = sTrainerMons_823C900} + }, + [TRAINER_RIVAL_ROUTE22_LATE_BULBASAUR] = { + .partyFlags = F_TRAINER_PARTY_CUSTOM_MOVESET, + .trainerClass = CLASS_RIVAL_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_RIVAL_2, + .trainerName = _("TERRY"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE | AI_SCRIPT_TRY_TO_FAINT | AI_SCRIPT_CHECK_VIABILITY, + .partySize = 6, + .party = {.NoItemCustomMoves = sTrainerMons_823C960} + }, + [TRAINER_RIVAL_ROUTE22_LATE_CHARMANDER] = { + .partyFlags = F_TRAINER_PARTY_CUSTOM_MOVESET, + .trainerClass = CLASS_RIVAL_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_RIVAL_2, + .trainerName = _("TERRY"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE | AI_SCRIPT_TRY_TO_FAINT | AI_SCRIPT_CHECK_VIABILITY, + .partySize = 6, + .party = {.NoItemCustomMoves = sTrainerMons_823C9C0} + }, + [TRAINER_CHAMPION_FIRST_SQUIRTLE] = { + .partyFlags = F_TRAINER_PARTY_CUSTOM_MOVESET | F_TRAINER_PARTY_HELD_ITEM, + .trainerClass = CLASS_CHAMPION_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_CHAMPION_RIVAL, + .trainerName = _("TERRY"), + .items = {ITEM_FULL_RESTORE, ITEM_FULL_RESTORE, ITEM_FULL_RESTORE, ITEM_FULL_RESTORE}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE | AI_SCRIPT_TRY_TO_FAINT | AI_SCRIPT_CHECK_VIABILITY, + .partySize = 6, + .party = {.ItemCustomMoves = sTrainerMons_823CA20} + }, + [TRAINER_CHAMPION_FIRST_BULBASAUR] = { + .partyFlags = F_TRAINER_PARTY_CUSTOM_MOVESET | F_TRAINER_PARTY_HELD_ITEM, + .trainerClass = CLASS_CHAMPION_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_CHAMPION_RIVAL, + .trainerName = _("TERRY"), + .items = {ITEM_FULL_RESTORE, ITEM_FULL_RESTORE, ITEM_FULL_RESTORE, ITEM_FULL_RESTORE}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE | AI_SCRIPT_TRY_TO_FAINT | AI_SCRIPT_CHECK_VIABILITY, + .partySize = 6, + .party = {.ItemCustomMoves = sTrainerMons_823CA80} + }, + [TRAINER_CHAMPION_FIRST_CHARMANDER] = { + .partyFlags = F_TRAINER_PARTY_CUSTOM_MOVESET | F_TRAINER_PARTY_HELD_ITEM, + .trainerClass = CLASS_CHAMPION_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_CHAMPION_RIVAL, + .trainerName = _("TERRY"), + .items = {ITEM_FULL_RESTORE, ITEM_FULL_RESTORE, ITEM_FULL_RESTORE, ITEM_FULL_RESTORE}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE | AI_SCRIPT_TRY_TO_FAINT | AI_SCRIPT_CHECK_VIABILITY, + .partySize = 6, + .party = {.ItemCustomMoves = sTrainerMons_823CAE0} + }, + [TRAINER_CHANNELER_PATRICIA] = { + .partyFlags = 0, + .trainerClass = CLASS_CHANNELER, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_SUSPICIOUS | F_TRAINER_FEMALE, + .trainerPic = TRAINER_PIC_CHANNELER, + .trainerName = _("PATRICIA"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823CB40} + }, + [TRAINER_CHANNELER_CARLY] = { + .partyFlags = 0, + .trainerClass = CLASS_CHANNELER, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_SUSPICIOUS | F_TRAINER_FEMALE, + .trainerPic = TRAINER_PIC_CHANNELER, + .trainerName = _("CARLY"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823CB48} + }, + [TRAINER_CHANNELER_HOPE] = { + .partyFlags = 0, + .trainerClass = CLASS_CHANNELER, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_SUSPICIOUS | F_TRAINER_FEMALE, + .trainerPic = TRAINER_PIC_CHANNELER, + .trainerName = _("HOPE"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823CB50} + }, + [TRAINER_CHANNELER_PAULA] = { + .partyFlags = 0, + .trainerClass = CLASS_CHANNELER, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_SUSPICIOUS | F_TRAINER_FEMALE, + .trainerPic = TRAINER_PIC_CHANNELER, + .trainerName = _("PAULA"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823CB58} + }, + [TRAINER_CHANNELER_LAUREL] = { + .partyFlags = 0, + .trainerClass = CLASS_CHANNELER, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_SUSPICIOUS | F_TRAINER_FEMALE, + .trainerPic = TRAINER_PIC_CHANNELER, + .trainerName = _("LAUREL"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823CB60} + }, + [TRAINER_CHANNELER_JODY] = { + .partyFlags = 0, + .trainerClass = CLASS_CHANNELER, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_SUSPICIOUS | F_TRAINER_FEMALE, + .trainerPic = TRAINER_PIC_CHANNELER, + .trainerName = _("JODY"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823CB70} + }, + [TRAINER_CHANNELER_TAMMY] = { + .partyFlags = 0, + .trainerClass = CLASS_CHANNELER, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_SUSPICIOUS | F_TRAINER_FEMALE, + .trainerPic = TRAINER_PIC_CHANNELER, + .trainerName = _("TAMMY"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823CB78} + }, + [TRAINER_CHANNELER_RUTH] = { + .partyFlags = 0, + .trainerClass = CLASS_CHANNELER, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_SUSPICIOUS | F_TRAINER_FEMALE, + .trainerPic = TRAINER_PIC_CHANNELER, + .trainerName = _("RUTH"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823CB80} + }, + [TRAINER_CHANNELER_KARINA] = { + .partyFlags = 0, + .trainerClass = CLASS_CHANNELER, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_SUSPICIOUS | F_TRAINER_FEMALE, + .trainerPic = TRAINER_PIC_CHANNELER, + .trainerName = _("KARINA"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823CB88} + }, + [TRAINER_CHANNELER_JANAE] = { + .partyFlags = 0, + .trainerClass = CLASS_CHANNELER, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_SUSPICIOUS | F_TRAINER_FEMALE, + .trainerPic = TRAINER_PIC_CHANNELER, + .trainerName = _("JANAE"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823CB90} + }, + [TRAINER_CHANNELER_ANGELICA] = { + .partyFlags = 0, + .trainerClass = CLASS_CHANNELER, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_SUSPICIOUS | F_TRAINER_FEMALE, + .trainerPic = TRAINER_PIC_CHANNELER, + .trainerName = _("ANGELICA"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 3, + .party = {.NoItemDefaultMoves = sTrainerMons_823CB98} + }, + [TRAINER_CHANNELER_EMILIA] = { + .partyFlags = 0, + .trainerClass = CLASS_CHANNELER, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_SUSPICIOUS | F_TRAINER_FEMALE, + .trainerPic = TRAINER_PIC_CHANNELER, + .trainerName = _("EMILIA"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823CBB0} + }, + [TRAINER_CHANNELER_JENNIFER] = { + .partyFlags = 0, + .trainerClass = CLASS_CHANNELER, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_SUSPICIOUS | F_TRAINER_FEMALE, + .trainerPic = TRAINER_PIC_CHANNELER, + .trainerName = _("JENNIFER"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823CBB8} + }, + [TRAINER_CHANNELER_1] = { + .partyFlags = 0, + .trainerClass = CLASS_CHANNELER, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_SUSPICIOUS | F_TRAINER_FEMALE, + .trainerPic = TRAINER_PIC_CHANNELER, + .trainerName = _(""), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823CBC0} + }, + [TRAINER_CHANNELER_2] = { + .partyFlags = 0, + .trainerClass = CLASS_CHANNELER, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_SUSPICIOUS | F_TRAINER_FEMALE, + .trainerPic = TRAINER_PIC_CHANNELER, + .trainerName = _(""), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823CBC8} + }, + [TRAINER_CHANNELER_3] = { + .partyFlags = 0, + .trainerClass = CLASS_CHANNELER, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_SUSPICIOUS | F_TRAINER_FEMALE, + .trainerPic = TRAINER_PIC_CHANNELER, + .trainerName = _(""), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823CBD0} + }, + [TRAINER_CHANNELER_4] = { + .partyFlags = 0, + .trainerClass = CLASS_CHANNELER, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_SUSPICIOUS | F_TRAINER_FEMALE, + .trainerPic = TRAINER_PIC_CHANNELER, + .trainerName = _(""), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823CBD8} + }, + [TRAINER_CHANNELER_5] = { + .partyFlags = 0, + .trainerClass = CLASS_CHANNELER, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_SUSPICIOUS | F_TRAINER_FEMALE, + .trainerPic = TRAINER_PIC_CHANNELER, + .trainerName = _(""), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823CBE0} + }, + [TRAINER_CHANNELER_6] = { + .partyFlags = 0, + .trainerClass = CLASS_CHANNELER, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_SUSPICIOUS | F_TRAINER_FEMALE, + .trainerPic = TRAINER_PIC_CHANNELER, + .trainerName = _(""), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 3, + .party = {.NoItemDefaultMoves = sTrainerMons_823CBE8} + }, + [TRAINER_CHANNELER_7] = { + .partyFlags = 0, + .trainerClass = CLASS_CHANNELER, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_SUSPICIOUS | F_TRAINER_FEMALE, + .trainerPic = TRAINER_PIC_CHANNELER, + .trainerName = _(""), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823CC00} + }, + [TRAINER_CHANNELER_8] = { + .partyFlags = 0, + .trainerClass = CLASS_CHANNELER, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_SUSPICIOUS | F_TRAINER_FEMALE, + .trainerPic = TRAINER_PIC_CHANNELER, + .trainerName = _(""), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823CC08} + }, + [TRAINER_CHANNELER_AMANDA] = { + .partyFlags = 0, + .trainerClass = CLASS_CHANNELER, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_SUSPICIOUS | F_TRAINER_FEMALE, + .trainerPic = TRAINER_PIC_CHANNELER, + .trainerName = _("AMANDA"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823CC10} + }, + [TRAINER_CHANNELER_STACY] = { + .partyFlags = 0, + .trainerClass = CLASS_CHANNELER, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_SUSPICIOUS | F_TRAINER_FEMALE, + .trainerPic = TRAINER_PIC_CHANNELER, + .trainerName = _("STACY"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823CC20} + }, + [TRAINER_CHANNELER_TASHA] = { + .partyFlags = 0, + .trainerClass = CLASS_CHANNELER, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_SUSPICIOUS | F_TRAINER_FEMALE, + .trainerPic = TRAINER_PIC_CHANNELER, + .trainerName = _("TASHA"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 3, + .party = {.NoItemDefaultMoves = sTrainerMons_823CC28} + }, + [TRAINER_HIKER_JEREMY] = { + .partyFlags = 0, + .trainerClass = CLASS_HIKER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_HIKER, + .trainerPic = TRAINER_PIC_HIKER, + .trainerName = _("JEREMY"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823CC40} + }, + [TRAINER_PICNICKER_ALMA] = { + .partyFlags = 0, + .trainerClass = CLASS_PICNICKER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_GIRL | F_TRAINER_FEMALE, + .trainerPic = TRAINER_PIC_PICNICKER, + .trainerName = _("ALMA"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 3, + .party = {.NoItemDefaultMoves = sTrainerMons_823CC50} + }, + [TRAINER_PICNICKER_SUSIE] = { + .partyFlags = 0, + .trainerClass = CLASS_PICNICKER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_GIRL | F_TRAINER_FEMALE, + .trainerPic = TRAINER_PIC_PICNICKER, + .trainerName = _("SUSIE"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 5, + .party = {.NoItemDefaultMoves = sTrainerMons_823CC68} + }, + [TRAINER_PICNICKER_VALERIE] = { + .partyFlags = 0, + .trainerClass = CLASS_PICNICKER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_GIRL | F_TRAINER_FEMALE, + .trainerPic = TRAINER_PIC_PICNICKER, + .trainerName = _("VALERIE"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823CC90} + }, + [TRAINER_PICNICKER_GWEN] = { + .partyFlags = 0, + .trainerClass = CLASS_PICNICKER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_GIRL | F_TRAINER_FEMALE, + .trainerPic = TRAINER_PIC_PICNICKER, + .trainerName = _("GWEN"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 4, + .party = {.NoItemDefaultMoves = sTrainerMons_823CCA0} + }, + [TRAINER_BIKER_VIRGIL] = { + .partyFlags = F_TRAINER_PARTY_CUSTOM_MOVESET, + .trainerClass = CLASS_BIKER, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_BIKER, + .trainerName = _("VIRGIL"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 3, + .party = {.NoItemCustomMoves = sTrainerMons_823CCC0} + }, + [TRAINER_CAMPER_FLINT] = { + .partyFlags = 0, + .trainerClass = CLASS_CAMPER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_CAMPER, + .trainerName = _("FLINT"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823CCF0} + }, + [TRAINER_PICNICKER_MISSY] = { + .partyFlags = 0, + .trainerClass = CLASS_PICNICKER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_GIRL | F_TRAINER_FEMALE, + .trainerPic = TRAINER_PIC_PICNICKER, + .trainerName = _("MISSY"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823CD00} + }, + [TRAINER_PICNICKER_IRENE] = { + .partyFlags = 0, + .trainerClass = CLASS_PICNICKER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_GIRL | F_TRAINER_FEMALE, + .trainerPic = TRAINER_PIC_PICNICKER, + .trainerName = _("IRENE"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 3, + .party = {.NoItemDefaultMoves = sTrainerMons_823CD10} + }, + [TRAINER_PICNICKER_DANA] = { + .partyFlags = 0, + .trainerClass = CLASS_PICNICKER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_GIRL | F_TRAINER_FEMALE, + .trainerPic = TRAINER_PIC_PICNICKER, + .trainerName = _("DANA"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 3, + .party = {.NoItemDefaultMoves = sTrainerMons_823CD28} + }, + [TRAINER_PICNICKER_ARIANA] = { + .partyFlags = 0, + .trainerClass = CLASS_PICNICKER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_GIRL | F_TRAINER_FEMALE, + .trainerPic = TRAINER_PIC_PICNICKER, + .trainerName = _("ARIANA"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 4, + .party = {.NoItemDefaultMoves = sTrainerMons_823CD40} + }, + [TRAINER_PICNICKER_LEAH] = { + .partyFlags = 0, + .trainerClass = CLASS_PICNICKER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_GIRL | F_TRAINER_FEMALE, + .trainerPic = TRAINER_PIC_PICNICKER, + .trainerName = _("LEAH"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823CD60} + }, + [TRAINER_CAMPER_JUSTIN] = { + .partyFlags = 0, + .trainerClass = CLASS_CAMPER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_CAMPER, + .trainerName = _("JUSTIN"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823CD70} + }, + [TRAINER_PICNICKER_YAZMIN] = { + .partyFlags = 0, + .trainerClass = CLASS_PICNICKER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_GIRL | F_TRAINER_FEMALE, + .trainerPic = TRAINER_PIC_PICNICKER, + .trainerName = _("YAZMIN"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 3, + .party = {.NoItemDefaultMoves = sTrainerMons_823CD80} + }, + [TRAINER_PICNICKER_KINDRA] = { + .partyFlags = 0, + .trainerClass = CLASS_PICNICKER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_GIRL | F_TRAINER_FEMALE, + .trainerPic = TRAINER_PIC_PICNICKER, + .trainerName = _("KINDRA"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 3, + .party = {.NoItemDefaultMoves = sTrainerMons_823CD98} + }, + [TRAINER_PICNICKER_BECKY] = { + .partyFlags = 0, + .trainerClass = CLASS_PICNICKER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_GIRL | F_TRAINER_FEMALE, + .trainerPic = TRAINER_PIC_PICNICKER, + .trainerName = _("BECKY"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823CDB0} + }, + [TRAINER_PICNICKER_CELIA] = { + .partyFlags = 0, + .trainerClass = CLASS_PICNICKER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_GIRL | F_TRAINER_FEMALE, + .trainerPic = TRAINER_PIC_PICNICKER, + .trainerName = _("CELIA"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823CDC0} + }, + [TRAINER_GENTLEMAN_BROOKS] = { + .partyFlags = 0, + .trainerClass = CLASS_GENTLEMAN_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_RICH, + .trainerPic = TRAINER_PIC_GENTLEMAN, + .trainerName = _("BROOKS"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823CDC8} + }, + [TRAINER_GENTLEMAN_LAMAR] = { + .partyFlags = 0, + .trainerClass = CLASS_GENTLEMAN_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_RICH, + .trainerPic = TRAINER_PIC_GENTLEMAN, + .trainerName = _("LAMAR"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823CDD0} + }, + [TRAINER_TWINS_ELI_ANNE] = { + .partyFlags = 0, + .trainerClass = CLASS_TWINS_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_TWINS, + .trainerPic = TRAINER_PIC_TWINS, + .trainerName = _("ELI & ANNE"), + .items = {}, + .doubleBattle = TRUE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823CDE0} + }, + [TRAINER_COOL_COUPLE_RAY_TYRA] = { + .partyFlags = F_TRAINER_PARTY_CUSTOM_MOVESET, + .trainerClass = CLASS_COOL_COUPLE, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_COOL, + .trainerPic = TRAINER_PIC_COOL_COUPLE, + .trainerName = _("RAY & TYRA"), + .items = {}, + .doubleBattle = TRUE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE | AI_SCRIPT_TRY_TO_FAINT | AI_SCRIPT_CHECK_VIABILITY, + .partySize = 2, + .party = {.NoItemCustomMoves = sTrainerMons_823CDF0} + }, + [TRAINER_YOUNG_COUPLE_GIA_JES] = { + .partyFlags = 0, + .trainerClass = CLASS_YOUNG_COUPLE_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_GIRL, + .trainerPic = TRAINER_PIC_YOUNG_COUPLE, + .trainerName = _("GIA & JES"), + .items = {}, + .doubleBattle = TRUE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823CE10} + }, + [TRAINER_TWINS_KIRI_JAN] = { + .partyFlags = 0, + .trainerClass = CLASS_TWINS_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_TWINS, + .trainerPic = TRAINER_PIC_TWINS, + .trainerName = _("KIRI & JAN"), + .items = {}, + .doubleBattle = TRUE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823CE20} + }, + [TRAINER_CRUSH_KIN_RON_MYA] = { + .partyFlags = F_TRAINER_PARTY_HELD_ITEM, + .trainerClass = CLASS_CRUSH_KIN, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_INTENSE, + .trainerPic = TRAINER_PIC_CRUSH_KIN, + .trainerName = _("RON & MYA"), + .items = {}, + .doubleBattle = TRUE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.ItemDefaultMoves = sTrainerMons_823CE30} + }, + [TRAINER_YOUNG_COUPLE_LEA_JED] = { + .partyFlags = 0, + .trainerClass = CLASS_YOUNG_COUPLE_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_GIRL, + .trainerPic = TRAINER_PIC_YOUNG_COUPLE, + .trainerName = _("LEA & JED"), + .items = {}, + .doubleBattle = TRUE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823CE40} + }, + [TRAINER_SIS_AND_BRO_LIA_LUC] = { + .partyFlags = 0, + .trainerClass = CLASS_SIS_AND_BRO_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_SWIMMER, + .trainerPic = TRAINER_PIC_SIS_AND_BRO, + .trainerName = _("LIA & LUC"), + .items = {}, + .doubleBattle = TRUE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823CE50} + }, + [TRAINER_SIS_AND_BRO_LIL_IAN] = { + .partyFlags = 0, + .trainerClass = CLASS_SIS_AND_BRO_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_SWIMMER, + .trainerPic = TRAINER_PIC_SIS_AND_BRO, + .trainerName = _("LIL & IAN"), + .items = {}, + .doubleBattle = TRUE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823CE60} + }, + [TRAINER_BUG_CATCHER_3] = { + .partyFlags = 0, + .trainerClass = CLASS_BUG_CATCHER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_BUG_CATCHER, + .trainerName = _(""), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823CE70} + }, + [TRAINER_BUG_CATCHER_4] = { + .partyFlags = 0, + .trainerClass = CLASS_BUG_CATCHER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_BUG_CATCHER, + .trainerName = _(""), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823CE78} + }, + [TRAINER_BUG_CATCHER_5] = { + .partyFlags = 0, + .trainerClass = CLASS_BUG_CATCHER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_BUG_CATCHER, + .trainerName = _(""), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823CE80} + }, + [TRAINER_BUG_CATCHER_6] = { + .partyFlags = 0, + .trainerClass = CLASS_BUG_CATCHER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_BUG_CATCHER, + .trainerName = _(""), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823CE88} + }, + [TRAINER_BUG_CATCHER_7] = { + .partyFlags = 0, + .trainerClass = CLASS_BUG_CATCHER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_BUG_CATCHER, + .trainerName = _(""), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823CE90} + }, + [TRAINER_BUG_CATCHER_8] = { + .partyFlags = 0, + .trainerClass = CLASS_BUG_CATCHER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_BUG_CATCHER, + .trainerName = _(""), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823CE98} + }, + [TRAINER_YOUNGSTER_BEN_3] = { + .partyFlags = 0, + .trainerClass = CLASS_YOUNGSTER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_YOUNGSTER, + .trainerName = _("BEN"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823CEA0} + }, + [TRAINER_YOUNGSTER_BEN_4] = { + .partyFlags = 0, + .trainerClass = CLASS_YOUNGSTER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_YOUNGSTER, + .trainerName = _("BEN"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823CEB0} + }, + [TRAINER_YOUNGSTER_CHAD_2] = { + .partyFlags = 0, + .trainerClass = CLASS_YOUNGSTER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_YOUNGSTER, + .trainerName = _("CHAD"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823CEC0} + }, + [TRAINER_LASS_RELI_2] = { + .partyFlags = 0, + .trainerClass = CLASS_LASS_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_FEMALE | F_TRAINER_FEMALE, + .trainerPic = TRAINER_PIC_LASS, + .trainerName = _("RELI"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823CED0} + }, + [TRAINER_LASS_RELI_3] = { + .partyFlags = 0, + .trainerClass = CLASS_LASS_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_FEMALE | F_TRAINER_FEMALE, + .trainerPic = TRAINER_PIC_LASS, + .trainerName = _("RELI"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823CEE0} + }, + [TRAINER_YOUNGSTER_TIMMY_2] = { + .partyFlags = 0, + .trainerClass = CLASS_YOUNGSTER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_YOUNGSTER, + .trainerName = _("TIMMY"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 3, + .party = {.NoItemDefaultMoves = sTrainerMons_823CEF0} + }, + [TRAINER_YOUNGSTER_TIMMY_3] = { + .partyFlags = 0, + .trainerClass = CLASS_YOUNGSTER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_YOUNGSTER, + .trainerName = _("TIMMY"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 3, + .party = {.NoItemDefaultMoves = sTrainerMons_823CF08} + }, + [TRAINER_YOUNGSTER_TIMMY_4] = { + .partyFlags = 0, + .trainerClass = CLASS_YOUNGSTER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_YOUNGSTER, + .trainerName = _("TIMMY"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 3, + .party = {.NoItemDefaultMoves = sTrainerMons_823CF20} + }, + [TRAINER_YOUNGSTER_CHAD_3] = { + .partyFlags = 0, + .trainerClass = CLASS_YOUNGSTER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_YOUNGSTER, + .trainerName = _("CHAD"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823CF38} + }, + [TRAINER_LASS_JANICE_2] = { + .partyFlags = 0, + .trainerClass = CLASS_LASS_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_FEMALE | F_TRAINER_FEMALE, + .trainerPic = TRAINER_PIC_LASS, + .trainerName = _("JANICE"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823CF48} + }, + [TRAINER_LASS_JANICE_3] = { + .partyFlags = 0, + .trainerClass = CLASS_LASS_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_FEMALE | F_TRAINER_FEMALE, + .trainerPic = TRAINER_PIC_LASS, + .trainerName = _("JANICE"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823CF58} + }, + [TRAINER_YOUNGSTER_CHAD_4] = { + .partyFlags = 0, + .trainerClass = CLASS_YOUNGSTER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_YOUNGSTER, + .trainerName = _("CHAD"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823CF68} + }, + [TRAINER_HIKER_FRANKLIN_2] = { + .partyFlags = 0, + .trainerClass = CLASS_HIKER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_HIKER, + .trainerPic = TRAINER_PIC_HIKER, + .trainerName = _("FRANKLIN"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823CF78} + }, + [TRAINER_PKMN_PROF_PROF_OAK] = { + .partyFlags = 0, + .trainerClass = CLASS_PKMN_PROF, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_PROFESSOR_OAK, + .trainerName = _("PROF. OAK"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823CF88} + }, + [TRAINER_PLAYER_BRENDAN] = { + .partyFlags = 0, + .trainerClass = CLASS_PLAYER, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_RS_BRENDAN_2, + .trainerName = _("BRENDAN"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823CF90} + }, + [TRAINER_PLAYER_MAY] = { + .partyFlags = 0, + .trainerClass = CLASS_PLAYER, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_FEMALE, + .trainerPic = TRAINER_PIC_RS_MAY_2, + .trainerName = _("MAY"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823CF98} + }, + [TRAINER_PLAYER_RED] = { + .partyFlags = 0, + .trainerClass = CLASS_PLAYER, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_RED, + .trainerName = _("RED"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823CFA0} + }, + [TRAINER_PLAYER_LEAF] = { + .partyFlags = 0, + .trainerClass = CLASS_PLAYER, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_FEMALE, + .trainerPic = TRAINER_PIC_LEAF, + .trainerName = _("LEAF"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823CFA8} + }, + [TRAINER_TEAM_ROCKET_GRUNT_42] = { + .partyFlags = 0, + .trainerClass = CLASS_TEAM_ROCKET, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_AQUA, + .trainerPic = TRAINER_PIC_ROCKET_GRUNT_F, + .trainerName = _("GRUNT"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823CFB0} + }, + [TRAINER_PSYCHIC_JACLYN] = { + .partyFlags = F_TRAINER_PARTY_CUSTOM_MOVESET, + .trainerClass = CLASS_PSYCHIC_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_INTENSE | F_TRAINER_FEMALE, + .trainerPic = TRAINER_PIC_PSYCHIC_F, + .trainerName = _("JACLYN"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 3, + .party = {.NoItemCustomMoves = sTrainerMons_823CFC0} + }, + [TRAINER_CRUSH_GIRL_SHARON] = { + .partyFlags = F_TRAINER_PARTY_HELD_ITEM, + .trainerClass = CLASS_CRUSH_GIRL, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_INTENSE, + .trainerPic = TRAINER_PIC_CRUSH_GIRL, + .trainerName = _("SHARON"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.ItemDefaultMoves = sTrainerMons_823CFF0} + }, + [TRAINER_TUBER_AMIRA] = { + .partyFlags = 0, + .trainerClass = CLASS_TUBER_3, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_GIRL, + .trainerPic = TRAINER_PIC_TUBER_F, + .trainerName = _("AMIRA"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 3, + .party = {.NoItemDefaultMoves = sTrainerMons_823D000} + }, + [TRAINER_PKMN_BREEDER_ALIZE] = { + .partyFlags = 0, + .trainerClass = CLASS_PKMN_BREEDER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_FEMALE, + .trainerPic = TRAINER_PIC_POKEMON_BREEDER_F, + .trainerName = _("ALIZE"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 3, + .party = {.NoItemDefaultMoves = sTrainerMons_823D018} + }, + [TRAINER_PKMN_RANGER_NICOLAS] = { + .partyFlags = F_TRAINER_PARTY_CUSTOM_MOVESET, + .trainerClass = CLASS_PKMN_RANGER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_COOL, + .trainerPic = TRAINER_PIC_POKEMON_RANGER_M, + .trainerName = _("NICOLAS"), + .items = {ITEM_FULL_RESTORE}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE | AI_SCRIPT_TRY_TO_FAINT | AI_SCRIPT_CHECK_VIABILITY, + .partySize = 2, + .party = {.NoItemCustomMoves = sTrainerMons_823D030} + }, + [TRAINER_PKMN_RANGER_MADELINE] = { + .partyFlags = F_TRAINER_PARTY_CUSTOM_MOVESET, + .trainerClass = CLASS_PKMN_RANGER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_COOL | F_TRAINER_FEMALE, + .trainerPic = TRAINER_PIC_POKEMON_RANGER_F, + .trainerName = _("MADELINE"), + .items = {ITEM_FULL_RESTORE}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE | AI_SCRIPT_TRY_TO_FAINT | AI_SCRIPT_CHECK_VIABILITY, + .partySize = 2, + .party = {.NoItemCustomMoves = sTrainerMons_823D050} + }, + [TRAINER_AROMA_LADY_NIKKI] = { + .partyFlags = 0, + .trainerClass = CLASS_AROMA_LADY_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_FEMALE | F_TRAINER_FEMALE, + .trainerPic = TRAINER_PIC_AROMA_LADY, + .trainerName = _("NIKKI"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823D070} + }, + [TRAINER_RUIN_MANIAC_STANLY] = { + .partyFlags = 0, + .trainerClass = CLASS_RUIN_MANIAC_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_HIKER, + .trainerPic = TRAINER_PIC_RUIN_MANIAC, + .trainerName = _("STANLY"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 3, + .party = {.NoItemDefaultMoves = sTrainerMons_823D080} + }, + [TRAINER_LADY_JACKI] = { + .partyFlags = F_TRAINER_PARTY_HELD_ITEM, + .trainerClass = CLASS_LADY_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_FEMALE, + .trainerPic = TRAINER_PIC_LADY, + .trainerName = _("JACKI"), + .items = {ITEM_FULL_RESTORE}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.ItemDefaultMoves = sTrainerMons_823D098} + }, + [TRAINER_PAINTER_DAISY] = { + .partyFlags = F_TRAINER_PARTY_CUSTOM_MOVESET, + .trainerClass = CLASS_PAINTER, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_FEMALE, + .trainerPic = TRAINER_PIC_PAINTER, + .trainerName = _("DAISY"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemCustomMoves = sTrainerMons_823D0A8} + }, + [TRAINER_BIKER_GOON] = { + .partyFlags = F_TRAINER_PARTY_CUSTOM_MOVESET, + .trainerClass = CLASS_BIKER, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_BIKER, + .trainerName = _("GOON"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemCustomMoves = sTrainerMons_823D0B8} + }, + [TRAINER_BIKER_GOON_2] = { + .partyFlags = F_TRAINER_PARTY_CUSTOM_MOVESET, + .trainerClass = CLASS_BIKER, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_BIKER, + .trainerName = _("GOON"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemCustomMoves = sTrainerMons_823D0D8} + }, + [TRAINER_BIKER_GOON_3] = { + .partyFlags = 0, + .trainerClass = CLASS_BIKER, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_BIKER, + .trainerName = _("GOON"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823D0E8} + }, + [TRAINER_BIKER_2] = { + .partyFlags = 0, + .trainerClass = CLASS_BIKER, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_BIKER, + .trainerName = _(""), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823D0F0} + }, + [TRAINER_BUG_CATCHER_ANTHONY] = { + .partyFlags = 0, + .trainerClass = CLASS_BUG_CATCHER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_BUG_CATCHER, + .trainerName = _("ANTHONY"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823D0F8} + }, + [TRAINER_BUG_CATCHER_CHARLIE] = { + .partyFlags = 0, + .trainerClass = CLASS_BUG_CATCHER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_BUG_CATCHER, + .trainerName = _("CHARLIE"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 3, + .party = {.NoItemDefaultMoves = sTrainerMons_823D108} + }, + [TRAINER_TWINS_ELI_ANNE_2] = { + .partyFlags = 0, + .trainerClass = CLASS_TWINS_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_TWINS, + .trainerPic = TRAINER_PIC_TWINS, + .trainerName = _("ELI & ANNE"), + .items = {}, + .doubleBattle = TRUE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823D120} + }, + [TRAINER_YOUNGSTER_JOHNSON] = { + .partyFlags = 0, + .trainerClass = CLASS_YOUNGSTER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_YOUNGSTER, + .trainerName = _("JOHNSON"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 3, + .party = {.NoItemDefaultMoves = sTrainerMons_823D130} + }, + [TRAINER_BIKER_RICARDO] = { + .partyFlags = F_TRAINER_PARTY_CUSTOM_MOVESET, + .trainerClass = CLASS_BIKER, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_BIKER, + .trainerName = _("RICARDO"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 3, + .party = {.NoItemCustomMoves = sTrainerMons_823D148} + }, + [TRAINER_BIKER_JAREN] = { + .partyFlags = 0, + .trainerClass = CLASS_BIKER, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_BIKER, + .trainerName = _("JAREN"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823D178} + }, + [TRAINER_TEAM_ROCKET_GRUNT_43] = { + .partyFlags = 0, + .trainerClass = CLASS_TEAM_ROCKET, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_AQUA, + .trainerPic = TRAINER_PIC_ROCKET_GRUNT_M, + .trainerName = _("GRUNT"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823D188} + }, + [TRAINER_TEAM_ROCKET_GRUNT_44] = { + .partyFlags = 0, + .trainerClass = CLASS_TEAM_ROCKET, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_AQUA, + .trainerPic = TRAINER_PIC_ROCKET_GRUNT_M, + .trainerName = _("GRUNT"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 4, + .party = {.NoItemDefaultMoves = sTrainerMons_823D198} + }, + [TRAINER_TEAM_ROCKET_GRUNT_45] = { + .partyFlags = 0, + .trainerClass = CLASS_TEAM_ROCKET, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_AQUA, + .trainerPic = TRAINER_PIC_ROCKET_GRUNT_M, + .trainerName = _("GRUNT"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 3, + .party = {.NoItemDefaultMoves = sTrainerMons_823D1B8} + }, + [TRAINER_TEAM_ROCKET_GRUNT_46] = { + .partyFlags = 0, + .trainerClass = CLASS_TEAM_ROCKET, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_AQUA, + .trainerPic = TRAINER_PIC_ROCKET_GRUNT_M, + .trainerName = _("GRUNT"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 3, + .party = {.NoItemDefaultMoves = sTrainerMons_823D1D0} + }, + [TRAINER_TEAM_ROCKET_GRUNT_47] = { + .partyFlags = 0, + .trainerClass = CLASS_TEAM_ROCKET, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_AQUA, + .trainerPic = TRAINER_PIC_ROCKET_GRUNT_M, + .trainerName = _("GRUNT"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 3, + .party = {.NoItemDefaultMoves = sTrainerMons_823D1E8} + }, + [TRAINER_TEAM_ROCKET_GRUNT_48] = { + .partyFlags = 0, + .trainerClass = CLASS_TEAM_ROCKET, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_AQUA, + .trainerPic = TRAINER_PIC_ROCKET_GRUNT_M, + .trainerName = _("GRUNT"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823D200} + }, + [TRAINER_TEAM_ROCKET_ADMIN] = { + .partyFlags = F_TRAINER_PARTY_CUSTOM_MOVESET, + .trainerClass = CLASS_TEAM_ROCKET, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_AQUA, + .trainerPic = TRAINER_PIC_ROCKET_GRUNT_F, + .trainerName = _("ADMIN"), + .items = {ITEM_HYPER_POTION}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE | AI_SCRIPT_TRY_TO_FAINT | AI_SCRIPT_CHECK_VIABILITY, + .partySize = 3, + .party = {.NoItemCustomMoves = sTrainerMons_823D210} + }, + [TRAINER_TEAM_ROCKET_ADMIN_2] = { + .partyFlags = F_TRAINER_PARTY_CUSTOM_MOVESET, + .trainerClass = CLASS_TEAM_ROCKET, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_AQUA, + .trainerPic = TRAINER_PIC_ROCKET_GRUNT_M, + .trainerName = _("ADMIN"), + .items = {ITEM_HYPER_POTION}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE | AI_SCRIPT_TRY_TO_FAINT | AI_SCRIPT_CHECK_VIABILITY, + .partySize = 3, + .party = {.NoItemCustomMoves = sTrainerMons_823D240} + }, + [TRAINER_SCIENTIST_GIDEON] = { + .partyFlags = F_TRAINER_PARTY_CUSTOM_MOVESET, + .trainerClass = CLASS_SCIENTIST, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_SUSPICIOUS, + .trainerPic = TRAINER_PIC_SCIENTIST, + .trainerName = _("GIDEON"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 5, + .party = {.NoItemCustomMoves = sTrainerMons_823D270} + }, + [TRAINER_SWIMMER_FEMALE_AMARA] = { + .partyFlags = 0, + .trainerClass = CLASS_SWIMMER_FEMALE_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_FEMALE | F_TRAINER_FEMALE, + .trainerPic = TRAINER_PIC_SWIMMER_F, + .trainerName = _("AMARA"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 3, + .party = {.NoItemDefaultMoves = sTrainerMons_823D2C0} + }, + [TRAINER_SWIMMER_FEMALE_MARIA] = { + .partyFlags = 0, + .trainerClass = CLASS_SWIMMER_FEMALE_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_FEMALE | F_TRAINER_FEMALE, + .trainerPic = TRAINER_PIC_SWIMMER_F, + .trainerName = _("MARIA"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823D2D8} + }, + [TRAINER_SWIMMER_FEMALE_ABIGAIL] = { + .partyFlags = 0, + .trainerClass = CLASS_SWIMMER_FEMALE_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_FEMALE | F_TRAINER_FEMALE, + .trainerPic = TRAINER_PIC_SWIMMER_F, + .trainerName = _("ABIGAIL"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 3, + .party = {.NoItemDefaultMoves = sTrainerMons_823D2E8} + }, + [TRAINER_SWIMMER_MALE_FINN] = { + .partyFlags = 0, + .trainerClass = CLASS_SWIMMER_MALE_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_SWIMMER, + .trainerPic = TRAINER_PIC_SWIMMER_M, + .trainerName = _("FINN"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823D300} + }, + [TRAINER_SWIMMER_MALE_GARRETT] = { + .partyFlags = 0, + .trainerClass = CLASS_SWIMMER_MALE_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_SWIMMER, + .trainerPic = TRAINER_PIC_SWIMMER_M, + .trainerName = _("GARRETT"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 3, + .party = {.NoItemDefaultMoves = sTrainerMons_823D308} + }, + [TRAINER_FISHERMAN_TOMMY] = { + .partyFlags = 0, + .trainerClass = CLASS_FISHERMAN_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_HIKER, + .trainerPic = TRAINER_PIC_FISHERMAN, + .trainerName = _("TOMMY"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 5, + .party = {.NoItemDefaultMoves = sTrainerMons_823D320} + }, + [TRAINER_CRUSH_GIRL_TANYA] = { + .partyFlags = F_TRAINER_PARTY_HELD_ITEM, + .trainerClass = CLASS_CRUSH_GIRL, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_INTENSE, + .trainerPic = TRAINER_PIC_CRUSH_GIRL, + .trainerName = _("TANYA"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.ItemDefaultMoves = sTrainerMons_823D348} + }, + [TRAINER_BLACK_BELT_SHEA] = { + .partyFlags = F_TRAINER_PARTY_HELD_ITEM, + .trainerClass = CLASS_BLACK_BELT_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_INTENSE, + .trainerPic = TRAINER_PIC_BLACK_BELT, + .trainerName = _("SHEA"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.ItemDefaultMoves = sTrainerMons_823D358} + }, + [TRAINER_BLACK_BELT_HUGH] = { + .partyFlags = F_TRAINER_PARTY_HELD_ITEM, + .trainerClass = CLASS_BLACK_BELT_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_INTENSE, + .trainerPic = TRAINER_PIC_BLACK_BELT, + .trainerName = _("HUGH"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.ItemDefaultMoves = sTrainerMons_823D368} + }, + [TRAINER_CAMPER_BRYCE] = { + .partyFlags = 0, + .trainerClass = CLASS_CAMPER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_CAMPER, + .trainerName = _("BRYCE"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 3, + .party = {.NoItemDefaultMoves = sTrainerMons_823D378} + }, + [TRAINER_PICNICKER_CLAIRE] = { + .partyFlags = 0, + .trainerClass = CLASS_PICNICKER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_GIRL | F_TRAINER_FEMALE, + .trainerPic = TRAINER_PIC_PICNICKER, + .trainerName = _("CLAIRE"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 4, + .party = {.NoItemDefaultMoves = sTrainerMons_823D390} + }, + [TRAINER_CRUSH_KIN_MIK_KIA] = { + .partyFlags = F_TRAINER_PARTY_HELD_ITEM, + .trainerClass = CLASS_CRUSH_KIN, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_INTENSE, + .trainerPic = TRAINER_PIC_CRUSH_KIN, + .trainerName = _("MIK & KIA"), + .items = {}, + .doubleBattle = TRUE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.ItemDefaultMoves = sTrainerMons_823D3B0} + }, + [TRAINER_AROMA_LADY_VIOLET] = { + .partyFlags = 0, + .trainerClass = CLASS_AROMA_LADY_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_FEMALE | F_TRAINER_FEMALE, + .trainerPic = TRAINER_PIC_AROMA_LADY, + .trainerName = _("VIOLET"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 3, + .party = {.NoItemDefaultMoves = sTrainerMons_823D3C0} + }, + [TRAINER_TUBER_ALEXIS] = { + .partyFlags = 0, + .trainerClass = CLASS_TUBER_3, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_GIRL, + .trainerPic = TRAINER_PIC_TUBER_F, + .trainerName = _("ALEXIS"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 4, + .party = {.NoItemDefaultMoves = sTrainerMons_823D3D8} + }, + [TRAINER_TWINS_JOY_MEG] = { + .partyFlags = 0, + .trainerClass = CLASS_TWINS_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_TWINS, + .trainerPic = TRAINER_PIC_TWINS, + .trainerName = _("JOY & MEG"), + .items = {}, + .doubleBattle = TRUE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823D3F8} + }, + [TRAINER_SWIMMER_FEMALE_TISHA] = { + .partyFlags = 0, + .trainerClass = CLASS_SWIMMER_FEMALE_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_FEMALE | F_TRAINER_FEMALE, + .trainerPic = TRAINER_PIC_SWIMMER_F, + .trainerName = _("TISHA"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823D408} + }, + [TRAINER_PAINTER_CELINA] = { + .partyFlags = F_TRAINER_PARTY_CUSTOM_MOVESET, + .trainerClass = CLASS_PAINTER, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_FEMALE, + .trainerPic = TRAINER_PIC_PAINTER, + .trainerName = _("CELINA"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemCustomMoves = sTrainerMons_823D410} + }, + [TRAINER_PAINTER_RAYNA] = { + .partyFlags = F_TRAINER_PARTY_CUSTOM_MOVESET, + .trainerClass = CLASS_PAINTER, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_FEMALE, + .trainerPic = TRAINER_PIC_PAINTER, + .trainerName = _("RAYNA"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemCustomMoves = sTrainerMons_823D420} + }, + [TRAINER_LADY_GILLIAN] = { + .partyFlags = F_TRAINER_PARTY_HELD_ITEM, + .trainerClass = CLASS_LADY_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_FEMALE, + .trainerPic = TRAINER_PIC_LADY, + .trainerName = _("GILLIAN"), + .items = {ITEM_FULL_RESTORE}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 3, + .party = {.ItemDefaultMoves = sTrainerMons_823D430} + }, + [TRAINER_YOUNGSTER_DESTIN] = { + .partyFlags = 0, + .trainerClass = CLASS_YOUNGSTER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_YOUNGSTER, + .trainerName = _("DESTIN"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823D448} + }, + [TRAINER_SWIMMER_MALE_TOBY] = { + .partyFlags = 0, + .trainerClass = CLASS_SWIMMER_MALE_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_SWIMMER, + .trainerPic = TRAINER_PIC_SWIMMER_M, + .trainerName = _("TOBY"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 3, + .party = {.NoItemDefaultMoves = sTrainerMons_823D458} + }, + [TRAINER_TEAM_ROCKET_GRUNT_49] = { + .partyFlags = 0, + .trainerClass = CLASS_TEAM_ROCKET, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_AQUA, + .trainerPic = TRAINER_PIC_ROCKET_GRUNT_M, + .trainerName = _("GRUNT"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 3, + .party = {.NoItemDefaultMoves = sTrainerMons_823D470} + }, + [TRAINER_TEAM_ROCKET_GRUNT_50] = { + .partyFlags = F_TRAINER_PARTY_CUSTOM_MOVESET, + .trainerClass = CLASS_TEAM_ROCKET, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_AQUA, + .trainerPic = TRAINER_PIC_ROCKET_GRUNT_M, + .trainerName = _("GRUNT"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemCustomMoves = sTrainerMons_823D488} + }, + [TRAINER_TEAM_ROCKET_GRUNT_51] = { + .partyFlags = 0, + .trainerClass = CLASS_TEAM_ROCKET, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_AQUA, + .trainerPic = TRAINER_PIC_ROCKET_GRUNT_F, + .trainerName = _("GRUNT"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 3, + .party = {.NoItemDefaultMoves = sTrainerMons_823D4A8} + }, + [TRAINER_BIRD_KEEPER_MILO] = { + .partyFlags = 0, + .trainerClass = CLASS_BIRD_KEEPER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_COOL, + .trainerPic = TRAINER_PIC_BIRD_KEEPER, + .trainerName = _("MILO"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823D4C0} + }, + [TRAINER_BIRD_KEEPER_CHAZ] = { + .partyFlags = 0, + .trainerClass = CLASS_BIRD_KEEPER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_COOL, + .trainerPic = TRAINER_PIC_BIRD_KEEPER, + .trainerName = _("CHAZ"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823D4D0} + }, + [TRAINER_BIRD_KEEPER_HAROLD] = { + .partyFlags = 0, + .trainerClass = CLASS_BIRD_KEEPER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_COOL, + .trainerPic = TRAINER_PIC_BIRD_KEEPER, + .trainerName = _("HAROLD"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823D4E0} + }, + [TRAINER_FISHERMAN_TYLOR] = { + .partyFlags = 0, + .trainerClass = CLASS_FISHERMAN_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_HIKER, + .trainerPic = TRAINER_PIC_FISHERMAN, + .trainerName = _("TYLOR"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823D4F0} + }, + [TRAINER_SWIMMER_MALE_MYMO] = { + .partyFlags = 0, + .trainerClass = CLASS_SWIMMER_MALE_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_SWIMMER, + .trainerPic = TRAINER_PIC_SWIMMER_M, + .trainerName = _("MYMO"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823D500} + }, + [TRAINER_SWIMMER_FEMALE_NICOLE] = { + .partyFlags = 0, + .trainerClass = CLASS_SWIMMER_FEMALE_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_FEMALE | F_TRAINER_FEMALE, + .trainerPic = TRAINER_PIC_SWIMMER_F, + .trainerName = _("NICOLE"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823D510} + }, + [TRAINER_SIS_AND_BRO_AVA_GEB] = { + .partyFlags = 0, + .trainerClass = CLASS_SIS_AND_BRO_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_SWIMMER, + .trainerPic = TRAINER_PIC_SIS_AND_BRO, + .trainerName = _("AVA & GEB"), + .items = {}, + .doubleBattle = TRUE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823D518} + }, + [TRAINER_AROMA_LADY_ROSE] = { + .partyFlags = 0, + .trainerClass = CLASS_AROMA_LADY_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_FEMALE | F_TRAINER_FEMALE, + .trainerPic = TRAINER_PIC_AROMA_LADY, + .trainerName = _("ROSE"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823D528} + }, + [TRAINER_SWIMMER_MALE_SAMIR] = { + .partyFlags = 0, + .trainerClass = CLASS_SWIMMER_MALE_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_SWIMMER, + .trainerPic = TRAINER_PIC_SWIMMER_M, + .trainerName = _("SAMIR"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823D538} + }, + [TRAINER_SWIMMER_FEMALE_DENISE] = { + .partyFlags = 0, + .trainerClass = CLASS_SWIMMER_FEMALE_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_FEMALE | F_TRAINER_FEMALE, + .trainerPic = TRAINER_PIC_SWIMMER_F, + .trainerName = _("DENISE"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823D540} + }, + [TRAINER_TWINS_MIU_MIA] = { + .partyFlags = 0, + .trainerClass = CLASS_TWINS_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_TWINS, + .trainerPic = TRAINER_PIC_TWINS, + .trainerName = _("MIU & MIA"), + .items = {}, + .doubleBattle = TRUE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823D550} + }, + [TRAINER_HIKER_EARL] = { + .partyFlags = 0, + .trainerClass = CLASS_HIKER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_HIKER, + .trainerPic = TRAINER_PIC_HIKER, + .trainerName = _("EARL"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823D560} + }, + [TRAINER_RUIN_MANIAC_FOSTER] = { + .partyFlags = 0, + .trainerClass = CLASS_RUIN_MANIAC_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_HIKER, + .trainerPic = TRAINER_PIC_RUIN_MANIAC, + .trainerName = _("FOSTER"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823D570} + }, + [TRAINER_RUIN_MANIAC_LARRY] = { + .partyFlags = 0, + .trainerClass = CLASS_RUIN_MANIAC_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_HIKER, + .trainerPic = TRAINER_PIC_RUIN_MANIAC, + .trainerName = _("LARRY"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823D578} + }, + [TRAINER_HIKER_DARYL] = { + .partyFlags = 0, + .trainerClass = CLASS_HIKER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_HIKER, + .trainerPic = TRAINER_PIC_HIKER, + .trainerName = _("DARYL"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823D588} + }, + [TRAINER_POKEMANIAC_HECTOR] = { + .partyFlags = 0, + .trainerClass = CLASS_POKEMANIAC_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_SUSPICIOUS, + .trainerPic = TRAINER_PIC_POKEMANIAC, + .trainerName = _("HECTOR"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823D590} + }, + [TRAINER_PSYCHIC_DARIO] = { + .partyFlags = F_TRAINER_PARTY_CUSTOM_MOVESET, + .trainerClass = CLASS_PSYCHIC_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_INTENSE, + .trainerPic = TRAINER_PIC_PSYCHIC_M, + .trainerName = _("DARIO"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemCustomMoves = sTrainerMons_823D5A0} + }, + [TRAINER_PSYCHIC_RODETTE] = { + .partyFlags = F_TRAINER_PARTY_CUSTOM_MOVESET, + .trainerClass = CLASS_PSYCHIC_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_INTENSE | F_TRAINER_FEMALE, + .trainerPic = TRAINER_PIC_PSYCHIC_F, + .trainerName = _("RODETTE"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 3, + .party = {.NoItemCustomMoves = sTrainerMons_823D5B0} + }, + [TRAINER_AROMA_LADY_MIAH] = { + .partyFlags = 0, + .trainerClass = CLASS_AROMA_LADY_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_FEMALE | F_TRAINER_FEMALE, + .trainerPic = TRAINER_PIC_AROMA_LADY, + .trainerName = _("MIAH"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823D5E0} + }, + [TRAINER_YOUNG_COUPLE_EVE_JON] = { + .partyFlags = 0, + .trainerClass = CLASS_YOUNG_COUPLE_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_GIRL, + .trainerPic = TRAINER_PIC_YOUNG_COUPLE, + .trainerName = _("EVE & JON"), + .items = {}, + .doubleBattle = TRUE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823D5F0} + }, + [TRAINER_JUGGLER_MASON] = { + .partyFlags = F_TRAINER_PARTY_CUSTOM_MOVESET, + .trainerClass = CLASS_JUGGLER, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_HIKER, + .trainerPic = TRAINER_PIC_JUGGLER, + .trainerName = _("MASON"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 4, + .party = {.NoItemCustomMoves = sTrainerMons_823D600} + }, + [TRAINER_CRUSH_GIRL_CYNDY] = { + .partyFlags = F_TRAINER_PARTY_HELD_ITEM, + .trainerClass = CLASS_CRUSH_GIRL, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_INTENSE, + .trainerPic = TRAINER_PIC_CRUSH_GIRL, + .trainerName = _("CYNDY"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 3, + .party = {.ItemDefaultMoves = sTrainerMons_823D640} + }, + [TRAINER_CRUSH_GIRL_JOCELYN] = { + .partyFlags = F_TRAINER_PARTY_HELD_ITEM, + .trainerClass = CLASS_CRUSH_GIRL, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_INTENSE, + .trainerPic = TRAINER_PIC_CRUSH_GIRL, + .trainerName = _("JOCELYN"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.ItemDefaultMoves = sTrainerMons_823D658} + }, + [TRAINER_TAMER_EVAN] = { + .partyFlags = 0, + .trainerClass = CLASS_TAMER, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_HIKER, + .trainerPic = TRAINER_PIC_TAMER, + .trainerName = _("EVAN"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 3, + .party = {.NoItemDefaultMoves = sTrainerMons_823D668} + }, + [TRAINER_POKEMANIAC_MARK_2] = { + .partyFlags = 0, + .trainerClass = CLASS_POKEMANIAC_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_SUSPICIOUS, + .trainerPic = TRAINER_PIC_POKEMANIAC, + .trainerName = _("MARK"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823D680} + }, + [TRAINER_PKMN_RANGER_LOGAN] = { + .partyFlags = F_TRAINER_PARTY_CUSTOM_MOVESET, + .trainerClass = CLASS_PKMN_RANGER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_COOL, + .trainerPic = TRAINER_PIC_POKEMON_RANGER_M, + .trainerName = _("LOGAN"), + .items = {ITEM_FULL_RESTORE}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE | AI_SCRIPT_TRY_TO_FAINT | AI_SCRIPT_CHECK_VIABILITY, + .partySize = 2, + .party = {.NoItemCustomMoves = sTrainerMons_823D690} + }, + [TRAINER_PKMN_RANGER_JACKSON] = { + .partyFlags = F_TRAINER_PARTY_CUSTOM_MOVESET, + .trainerClass = CLASS_PKMN_RANGER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_COOL, + .trainerPic = TRAINER_PIC_POKEMON_RANGER_M, + .trainerName = _("JACKSON"), + .items = {ITEM_FULL_RESTORE}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE | AI_SCRIPT_TRY_TO_FAINT | AI_SCRIPT_CHECK_VIABILITY, + .partySize = 3, + .party = {.NoItemCustomMoves = sTrainerMons_823D6B0} + }, + [TRAINER_PKMN_RANGER_BETH] = { + .partyFlags = 0, + .trainerClass = CLASS_PKMN_RANGER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_COOL | F_TRAINER_FEMALE, + .trainerPic = TRAINER_PIC_POKEMON_RANGER_F, + .trainerName = _("BETH"), + .items = {ITEM_FULL_RESTORE}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE | AI_SCRIPT_TRY_TO_FAINT | AI_SCRIPT_CHECK_VIABILITY, + .partySize = 3, + .party = {.NoItemDefaultMoves = sTrainerMons_823D6E0} + }, + [TRAINER_PKMN_RANGER_KATELYN] = { + .partyFlags = F_TRAINER_PARTY_CUSTOM_MOVESET, + .trainerClass = CLASS_PKMN_RANGER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_COOL | F_TRAINER_FEMALE, + .trainerPic = TRAINER_PIC_POKEMON_RANGER_F, + .trainerName = _("KATELYN"), + .items = {ITEM_FULL_RESTORE}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE | AI_SCRIPT_TRY_TO_FAINT | AI_SCRIPT_CHECK_VIABILITY, + .partySize = 1, + .party = {.NoItemCustomMoves = sTrainerMons_823D6F8} + }, + [TRAINER_COOLTRAINER_LEROY] = { + .partyFlags = F_TRAINER_PARTY_CUSTOM_MOVESET, + .trainerClass = CLASS_COOLTRAINER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_COOL, + .trainerPic = TRAINER_PIC_COOLTRAINER_M, + .trainerName = _("LEROY"), + .items = {ITEM_FULL_RESTORE}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE | AI_SCRIPT_TRY_TO_FAINT | AI_SCRIPT_CHECK_VIABILITY, + .partySize = 5, + .party = {.NoItemCustomMoves = sTrainerMons_823D708} + }, + [TRAINER_COOLTRAINER_MICHELLE] = { + .partyFlags = F_TRAINER_PARTY_CUSTOM_MOVESET, + .trainerClass = CLASS_COOLTRAINER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_COOL | F_TRAINER_FEMALE, + .trainerPic = TRAINER_PIC_COOLTRAINER_F, + .trainerName = _("MICHELLE"), + .items = {ITEM_HYPER_POTION}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE | AI_SCRIPT_TRY_TO_FAINT | AI_SCRIPT_CHECK_VIABILITY, + .partySize = 5, + .party = {.NoItemCustomMoves = sTrainerMons_823D758} + }, + [TRAINER_COOL_COUPLE_LEX_NYA] = { + .partyFlags = F_TRAINER_PARTY_CUSTOM_MOVESET, + .trainerClass = CLASS_COOL_COUPLE, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_COOL, + .trainerPic = TRAINER_PIC_COOL_COUPLE, + .trainerName = _("LEX & NYA"), + .items = {ITEM_FULL_RESTORE, ITEM_FULL_RESTORE}, + .doubleBattle = TRUE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE | AI_SCRIPT_TRY_TO_FAINT | AI_SCRIPT_CHECK_VIABILITY, + .partySize = 2, + .party = {.NoItemCustomMoves = sTrainerMons_823D7A8} + }, + [TRAINER_RUIN_MANIAC_BRANDON] = { + .partyFlags = 0, + .trainerClass = CLASS_RUIN_MANIAC_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_HIKER, + .trainerPic = TRAINER_PIC_RUIN_MANIAC, + .trainerName = _("BRANDON"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823D7C8} + }, + [TRAINER_RUIN_MANIAC_BENJAMIN] = { + .partyFlags = F_TRAINER_PARTY_CUSTOM_MOVESET, + .trainerClass = CLASS_RUIN_MANIAC_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_HIKER, + .trainerPic = TRAINER_PIC_RUIN_MANIAC, + .trainerName = _("BENJAMIN"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 3, + .party = {.NoItemCustomMoves = sTrainerMons_823D7D0} + }, + [TRAINER_PAINTER_EDNA] = { + .partyFlags = F_TRAINER_PARTY_CUSTOM_MOVESET, + .trainerClass = CLASS_PAINTER, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_FEMALE, + .trainerPic = TRAINER_PIC_PAINTER, + .trainerName = _("EDNA"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemCustomMoves = sTrainerMons_823D800} + }, + [TRAINER_GENTLEMAN_CLIFFORD] = { + .partyFlags = 0, + .trainerClass = CLASS_GENTLEMAN_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_RICH, + .trainerPic = TRAINER_PIC_GENTLEMAN, + .trainerName = _("CLIFFORD"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823D810} + }, + [TRAINER_LADY_SELPHY] = { + .partyFlags = F_TRAINER_PARTY_CUSTOM_MOVESET | F_TRAINER_PARTY_HELD_ITEM, + .trainerClass = CLASS_LADY_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_FEMALE, + .trainerPic = TRAINER_PIC_LADY, + .trainerName = _("SELPHY"), + .items = {ITEM_FULL_RESTORE}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.ItemCustomMoves = sTrainerMons_823D820} + }, + [TRAINER_RUIN_MANIAC_LAWSON] = { + .partyFlags = 0, + .trainerClass = CLASS_RUIN_MANIAC_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_HIKER, + .trainerPic = TRAINER_PIC_RUIN_MANIAC, + .trainerName = _("LAWSON"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 3, + .party = {.NoItemDefaultMoves = sTrainerMons_823D840} + }, + [TRAINER_PSYCHIC_LAURA] = { + .partyFlags = 0, + .trainerClass = CLASS_PSYCHIC_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_INTENSE | F_TRAINER_FEMALE, + .trainerPic = TRAINER_PIC_PSYCHIC_F, + .trainerName = _("LAURA"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 3, + .party = {.NoItemDefaultMoves = sTrainerMons_823D858} + }, + [TRAINER_PKMN_BREEDER_BETHANY] = { + .partyFlags = 0, + .trainerClass = CLASS_PKMN_BREEDER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_FEMALE, + .trainerPic = TRAINER_PIC_POKEMON_BREEDER_F, + .trainerName = _("BETHANY"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823D870} + }, + [TRAINER_PKMN_BREEDER_ALLISON] = { + .partyFlags = 0, + .trainerClass = CLASS_PKMN_BREEDER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_FEMALE, + .trainerPic = TRAINER_PIC_POKEMON_BREEDER_F, + .trainerName = _("ALLISON"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 3, + .party = {.NoItemDefaultMoves = sTrainerMons_823D878} + }, + [TRAINER_BUG_CATCHER_GARRET] = { + .partyFlags = 0, + .trainerClass = CLASS_BUG_CATCHER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_BUG_CATCHER, + .trainerName = _("GARRET"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823D890} + }, + [TRAINER_BUG_CATCHER_JONAH] = { + .partyFlags = 0, + .trainerClass = CLASS_BUG_CATCHER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_BUG_CATCHER, + .trainerName = _("JONAH"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 4, + .party = {.NoItemDefaultMoves = sTrainerMons_823D898} + }, + [TRAINER_BUG_CATCHER_VANCE] = { + .partyFlags = 0, + .trainerClass = CLASS_BUG_CATCHER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_BUG_CATCHER, + .trainerName = _("VANCE"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823D8B8} + }, + [TRAINER_YOUNGSTER_NASH] = { + .partyFlags = 0, + .trainerClass = CLASS_YOUNGSTER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_YOUNGSTER, + .trainerName = _("NASH"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 3, + .party = {.NoItemDefaultMoves = sTrainerMons_823D8C8} + }, + [TRAINER_YOUNGSTER_CORDELL] = { + .partyFlags = 0, + .trainerClass = CLASS_YOUNGSTER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_YOUNGSTER, + .trainerName = _("CORDELL"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823D8E0} + }, + [TRAINER_LASS_DALIA] = { + .partyFlags = 0, + .trainerClass = CLASS_LASS_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_FEMALE | F_TRAINER_FEMALE, + .trainerPic = TRAINER_PIC_LASS, + .trainerName = _("DALIA"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 4, + .party = {.NoItemDefaultMoves = sTrainerMons_823D8F0} + }, + [TRAINER_LASS_JOANA] = { + .partyFlags = 0, + .trainerClass = CLASS_LASS_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_FEMALE | F_TRAINER_FEMALE, + .trainerPic = TRAINER_PIC_LASS, + .trainerName = _("JOANA"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823D910} + }, + [TRAINER_CAMPER_RILEY] = { + .partyFlags = 0, + .trainerClass = CLASS_CAMPER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_CAMPER, + .trainerName = _("RILEY"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823D918} + }, + [TRAINER_PICNICKER_MARCY] = { + .partyFlags = 0, + .trainerClass = CLASS_PICNICKER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_GIRL | F_TRAINER_FEMALE, + .trainerPic = TRAINER_PIC_PICNICKER, + .trainerName = _("MARCY"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 3, + .party = {.NoItemDefaultMoves = sTrainerMons_823D928} + }, + [TRAINER_RUIN_MANIAC_LAYTON] = { + .partyFlags = 0, + .trainerClass = CLASS_RUIN_MANIAC_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_HIKER, + .trainerPic = TRAINER_PIC_RUIN_MANIAC, + .trainerName = _("LAYTON"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 3, + .party = {.NoItemDefaultMoves = sTrainerMons_823D940} + }, + [TRAINER_PICNICKER_KELSEY_2] = { + .partyFlags = 0, + .trainerClass = CLASS_PICNICKER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_GIRL | F_TRAINER_FEMALE, + .trainerPic = TRAINER_PIC_PICNICKER, + .trainerName = _("KELSEY"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823D958} + }, + [TRAINER_PICNICKER_KELSEY_3] = { + .partyFlags = 0, + .trainerClass = CLASS_PICNICKER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_GIRL | F_TRAINER_FEMALE, + .trainerPic = TRAINER_PIC_PICNICKER, + .trainerName = _("KELSEY"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823D968} + }, + [TRAINER_PICNICKER_KELSEY_4] = { + .partyFlags = 0, + .trainerClass = CLASS_PICNICKER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_GIRL | F_TRAINER_FEMALE, + .trainerPic = TRAINER_PIC_PICNICKER, + .trainerName = _("KELSEY"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823D978} + }, + [TRAINER_CAMPER_RICKY_2] = { + .partyFlags = 0, + .trainerClass = CLASS_CAMPER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_CAMPER, + .trainerName = _("RICKY"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823D988} + }, + [TRAINER_CAMPER_RICKY_3] = { + .partyFlags = 0, + .trainerClass = CLASS_CAMPER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_CAMPER, + .trainerName = _("RICKY"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823D990} + }, + [TRAINER_CAMPER_RICKY_4] = { + .partyFlags = 0, + .trainerClass = CLASS_CAMPER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_CAMPER, + .trainerName = _("RICKY"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823D998} + }, + [TRAINER_CAMPER_JEFF_2] = { + .partyFlags = 0, + .trainerClass = CLASS_CAMPER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_CAMPER, + .trainerName = _("JEFF"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823D9A0} + }, + [TRAINER_CAMPER_JEFF_3] = { + .partyFlags = 0, + .trainerClass = CLASS_CAMPER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_CAMPER, + .trainerName = _("JEFF"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823D9B0} + }, + [TRAINER_CAMPER_JEFF_4] = { + .partyFlags = 0, + .trainerClass = CLASS_CAMPER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_CAMPER, + .trainerName = _("JEFF"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823D9C0} + }, + [TRAINER_PICNICKER_ISABELLE_2] = { + .partyFlags = 0, + .trainerClass = CLASS_PICNICKER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_GIRL | F_TRAINER_FEMALE, + .trainerPic = TRAINER_PIC_PICNICKER, + .trainerName = _("ISABELLE"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 3, + .party = {.NoItemDefaultMoves = sTrainerMons_823D9D0} + }, + [TRAINER_PICNICKER_ISABELLE_3] = { + .partyFlags = 0, + .trainerClass = CLASS_PICNICKER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_GIRL | F_TRAINER_FEMALE, + .trainerPic = TRAINER_PIC_PICNICKER, + .trainerName = _("ISABELLE"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 3, + .party = {.NoItemDefaultMoves = sTrainerMons_823D9E8} + }, + [TRAINER_PICNICKER_ISABELLE_4] = { + .partyFlags = 0, + .trainerClass = CLASS_PICNICKER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_GIRL | F_TRAINER_FEMALE, + .trainerPic = TRAINER_PIC_PICNICKER, + .trainerName = _("ISABELLE"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 3, + .party = {.NoItemDefaultMoves = sTrainerMons_823DA00} + }, + [TRAINER_YOUNGSTER_YASU_2] = { + .partyFlags = 0, + .trainerClass = CLASS_YOUNGSTER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_YOUNGSTER, + .trainerName = _("YASU"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 3, + .party = {.NoItemDefaultMoves = sTrainerMons_823DA18} + }, + [TRAINER_YOUNGSTER_YASU_3] = { + .partyFlags = 0, + .trainerClass = CLASS_YOUNGSTER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_YOUNGSTER, + .trainerName = _("YASU"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 3, + .party = {.NoItemDefaultMoves = sTrainerMons_823DA30} + }, + [TRAINER_ENGINEER_BERNIE_2] = { + .partyFlags = 0, + .trainerClass = CLASS_ENGINEER, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_ENGINEER, + .trainerName = _("BERNIE"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 3, + .party = {.NoItemDefaultMoves = sTrainerMons_823DA48} + }, + [TRAINER_GAMER_DARIAN_2] = { + .partyFlags = 0, + .trainerClass = CLASS_GAMER, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_GAMER, + .trainerName = _("DARIAN"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823DA60} + }, + [TRAINER_CAMPER_CHRIS_2] = { + .partyFlags = 0, + .trainerClass = CLASS_CAMPER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_CAMPER, + .trainerName = _("CHRIS"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823DA70} + }, + [TRAINER_CAMPER_CHRIS_3] = { + .partyFlags = 0, + .trainerClass = CLASS_CAMPER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_CAMPER, + .trainerName = _("CHRIS"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823DA80} + }, + [TRAINER_CAMPER_CHRIS_4] = { + .partyFlags = 0, + .trainerClass = CLASS_CAMPER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_CAMPER, + .trainerName = _("CHRIS"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823DA90} + }, + [TRAINER_PICNICKER_ALICIA_2] = { + .partyFlags = 0, + .trainerClass = CLASS_PICNICKER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_GIRL | F_TRAINER_FEMALE, + .trainerPic = TRAINER_PIC_PICNICKER, + .trainerName = _("ALICIA"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823DAA0} + }, + [TRAINER_PICNICKER_ALICIA_3] = { + .partyFlags = 0, + .trainerClass = CLASS_PICNICKER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_GIRL | F_TRAINER_FEMALE, + .trainerPic = TRAINER_PIC_PICNICKER, + .trainerName = _("ALICIA"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823DAA8} + }, + [TRAINER_PICNICKER_ALICIA_4] = { + .partyFlags = 0, + .trainerClass = CLASS_PICNICKER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_GIRL | F_TRAINER_FEMALE, + .trainerPic = TRAINER_PIC_PICNICKER, + .trainerName = _("ALICIA"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823DAB0} + }, + [TRAINER_HIKER_JEREMY_2] = { + .partyFlags = 0, + .trainerClass = CLASS_HIKER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_HIKER, + .trainerPic = TRAINER_PIC_HIKER, + .trainerName = _("JEREMY"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823DAB8} + }, + [TRAINER_POKEMANIAC_MARK_3] = { + .partyFlags = 0, + .trainerClass = CLASS_POKEMANIAC_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_SUSPICIOUS, + .trainerPic = TRAINER_PIC_POKEMANIAC, + .trainerName = _("MARK"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823DAC8} + }, + [TRAINER_POKEMANIAC_HERMAN_2] = { + .partyFlags = 0, + .trainerClass = CLASS_POKEMANIAC_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_SUSPICIOUS, + .trainerPic = TRAINER_PIC_POKEMANIAC, + .trainerName = _("HERMAN"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823DAD8} + }, + [TRAINER_POKEMANIAC_HERMAN_3] = { + .partyFlags = 0, + .trainerClass = CLASS_POKEMANIAC_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_SUSPICIOUS, + .trainerPic = TRAINER_PIC_POKEMANIAC, + .trainerName = _("HERMAN"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823DAE8} + }, + [TRAINER_HIKER_TRENT_2] = { + .partyFlags = 0, + .trainerClass = CLASS_HIKER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_HIKER, + .trainerPic = TRAINER_PIC_HIKER, + .trainerName = _("TRENT"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823DAF8} + }, + [TRAINER_LASS_MEGAN_2] = { + .partyFlags = 0, + .trainerClass = CLASS_LASS_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_FEMALE | F_TRAINER_FEMALE, + .trainerPic = TRAINER_PIC_LASS, + .trainerName = _("MEGAN"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 5, + .party = {.NoItemDefaultMoves = sTrainerMons_823DB08} + }, + [TRAINER_LASS_MEGAN_3] = { + .partyFlags = 0, + .trainerClass = CLASS_LASS_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_FEMALE | F_TRAINER_FEMALE, + .trainerPic = TRAINER_PIC_LASS, + .trainerName = _("MEGAN"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 5, + .party = {.NoItemDefaultMoves = sTrainerMons_823DB30} + }, + [TRAINER_SUPER_NERD_GLENN_2] = { + .partyFlags = 0, + .trainerClass = CLASS_SUPER_NERD, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_SUSPICIOUS, + .trainerPic = TRAINER_PIC_SUPER_NERD, + .trainerName = _("GLENN"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 3, + .party = {.NoItemDefaultMoves = sTrainerMons_823DB58} + }, + [TRAINER_GAMER_RICH_2] = { + .partyFlags = 0, + .trainerClass = CLASS_GAMER, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_GAMER, + .trainerName = _("RICH"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823DB70} + }, + [TRAINER_BIKER_JAREN_2] = { + .partyFlags = 0, + .trainerClass = CLASS_BIKER, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_BIKER, + .trainerName = _("JAREN"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823DB80} + }, + [TRAINER_FISHERMAN_ELLIOT_2] = { + .partyFlags = 0, + .trainerClass = CLASS_FISHERMAN_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_HIKER, + .trainerPic = TRAINER_PIC_FISHERMAN, + .trainerName = _("ELLIOT"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 4, + .party = {.NoItemDefaultMoves = sTrainerMons_823DB90} + }, + [TRAINER_ROCKER_LUCA_2] = { + .partyFlags = 0, + .trainerClass = CLASS_ROCKER, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_ROCKER, + .trainerName = _("LUCA"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823DBB0} + }, + [TRAINER_BEAUTY_SHEILA_2] = { + .partyFlags = 0, + .trainerClass = CLASS_BEAUTY_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_FEMALE | F_TRAINER_FEMALE, + .trainerPic = TRAINER_PIC_BEAUTY, + .trainerName = _("SHEILA"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823DBC0} + }, + [TRAINER_BIRD_KEEPER_ROBERT_2] = { + .partyFlags = 0, + .trainerClass = CLASS_BIRD_KEEPER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_COOL, + .trainerPic = TRAINER_PIC_BIRD_KEEPER, + .trainerName = _("ROBERT"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 4, + .party = {.NoItemDefaultMoves = sTrainerMons_823DBD0} + }, + [TRAINER_BIRD_KEEPER_ROBERT_3] = { + .partyFlags = 0, + .trainerClass = CLASS_BIRD_KEEPER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_COOL, + .trainerPic = TRAINER_PIC_BIRD_KEEPER, + .trainerName = _("ROBERT"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 4, + .party = {.NoItemDefaultMoves = sTrainerMons_823DBF0} + }, + [TRAINER_PICNICKER_SUSIE_2] = { + .partyFlags = 0, + .trainerClass = CLASS_PICNICKER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_GIRL | F_TRAINER_FEMALE, + .trainerPic = TRAINER_PIC_PICNICKER, + .trainerName = _("SUSIE"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 5, + .party = {.NoItemDefaultMoves = sTrainerMons_823DC10} + }, + [TRAINER_PICNICKER_SUSIE_3] = { + .partyFlags = 0, + .trainerClass = CLASS_PICNICKER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_GIRL | F_TRAINER_FEMALE, + .trainerPic = TRAINER_PIC_PICNICKER, + .trainerName = _("SUSIE"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 5, + .party = {.NoItemDefaultMoves = sTrainerMons_823DC38} + }, + [TRAINER_PICNICKER_SUSIE_4] = { + .partyFlags = 0, + .trainerClass = CLASS_PICNICKER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_GIRL | F_TRAINER_FEMALE, + .trainerPic = TRAINER_PIC_PICNICKER, + .trainerName = _("SUSIE"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 5, + .party = {.NoItemDefaultMoves = sTrainerMons_823DC60} + }, + [TRAINER_BIKER_LUKAS_2] = { + .partyFlags = 0, + .trainerClass = CLASS_BIKER, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_BIKER, + .trainerName = _("LUKAS"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 4, + .party = {.NoItemDefaultMoves = sTrainerMons_823DC88} + }, + [TRAINER_BIRD_KEEPER_BENNY_2] = { + .partyFlags = 0, + .trainerClass = CLASS_BIRD_KEEPER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_COOL, + .trainerPic = TRAINER_PIC_BIRD_KEEPER, + .trainerName = _("BENNY"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823DCA8} + }, + [TRAINER_BIRD_KEEPER_BENNY_3] = { + .partyFlags = 0, + .trainerClass = CLASS_BIRD_KEEPER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_COOL, + .trainerPic = TRAINER_PIC_BIRD_KEEPER, + .trainerName = _("BENNY"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823DCB8} + }, + [TRAINER_BIRD_KEEPER_MARLON_2] = { + .partyFlags = 0, + .trainerClass = CLASS_BIRD_KEEPER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_COOL, + .trainerPic = TRAINER_PIC_BIRD_KEEPER, + .trainerName = _("MARLON"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 3, + .party = {.NoItemDefaultMoves = sTrainerMons_823DCC8} + }, + [TRAINER_BIRD_KEEPER_MARLON_3] = { + .partyFlags = 0, + .trainerClass = CLASS_BIRD_KEEPER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_COOL, + .trainerPic = TRAINER_PIC_BIRD_KEEPER, + .trainerName = _("MARLON"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 3, + .party = {.NoItemDefaultMoves = sTrainerMons_823DCE0} + }, + [TRAINER_BEAUTY_GRACE_2] = { + .partyFlags = 0, + .trainerClass = CLASS_BEAUTY_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_FEMALE | F_TRAINER_FEMALE, + .trainerPic = TRAINER_PIC_BEAUTY, + .trainerName = _("GRACE"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823DCF8} + }, + [TRAINER_BIRD_KEEPER_CHESTER_2] = { + .partyFlags = 0, + .trainerClass = CLASS_BIRD_KEEPER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_COOL, + .trainerPic = TRAINER_PIC_BIRD_KEEPER, + .trainerName = _("CHESTER"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 3, + .party = {.NoItemDefaultMoves = sTrainerMons_823DD08} + }, + [TRAINER_BIRD_KEEPER_CHESTER_3] = { + .partyFlags = 0, + .trainerClass = CLASS_BIRD_KEEPER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_COOL, + .trainerPic = TRAINER_PIC_BIRD_KEEPER, + .trainerName = _("CHESTER"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 3, + .party = {.NoItemDefaultMoves = sTrainerMons_823DD20} + }, + [TRAINER_PICNICKER_BECKY_2] = { + .partyFlags = 0, + .trainerClass = CLASS_PICNICKER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_GIRL | F_TRAINER_FEMALE, + .trainerPic = TRAINER_PIC_PICNICKER, + .trainerName = _("BECKY"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823DD38} + }, + [TRAINER_PICNICKER_BECKY_3] = { + .partyFlags = 0, + .trainerClass = CLASS_PICNICKER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_GIRL | F_TRAINER_FEMALE, + .trainerPic = TRAINER_PIC_PICNICKER, + .trainerName = _("BECKY"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823DD48} + }, + [TRAINER_PICNICKER_BECKY_4] = { + .partyFlags = 0, + .trainerClass = CLASS_PICNICKER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_GIRL | F_TRAINER_FEMALE, + .trainerPic = TRAINER_PIC_PICNICKER, + .trainerName = _("BECKY"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823DD58} + }, + [TRAINER_CRUSH_KIN_RON_MYA_2] = { + .partyFlags = F_TRAINER_PARTY_HELD_ITEM, + .trainerClass = CLASS_CRUSH_KIN, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_INTENSE, + .trainerPic = TRAINER_PIC_CRUSH_KIN, + .trainerName = _("RON & MYA"), + .items = {}, + .doubleBattle = TRUE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.ItemDefaultMoves = sTrainerMons_823DD68} + }, + [TRAINER_CRUSH_KIN_RON_MYA_3] = { + .partyFlags = F_TRAINER_PARTY_HELD_ITEM, + .trainerClass = CLASS_CRUSH_KIN, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_INTENSE, + .trainerPic = TRAINER_PIC_CRUSH_KIN, + .trainerName = _("RON & MYA"), + .items = {}, + .doubleBattle = TRUE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.ItemDefaultMoves = sTrainerMons_823DD78} + }, + [TRAINER_CRUSH_KIN_RON_MYA_4] = { + .partyFlags = F_TRAINER_PARTY_HELD_ITEM, + .trainerClass = CLASS_CRUSH_KIN, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_INTENSE, + .trainerPic = TRAINER_PIC_CRUSH_KIN, + .trainerName = _("RON & MYA"), + .items = {}, + .doubleBattle = TRUE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.ItemDefaultMoves = sTrainerMons_823DD88} + }, + [TRAINER_BIKER_RUBEN_2] = { + .partyFlags = 0, + .trainerClass = CLASS_BIKER, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_BIKER, + .trainerName = _("RUBEN"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 3, + .party = {.NoItemDefaultMoves = sTrainerMons_823DD98} + }, + [TRAINER_CUE_BALL_CAMRON_2] = { + .partyFlags = 0, + .trainerClass = CLASS_CUE_BALL, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_CUE_BALL, + .trainerName = _("CAMRON"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823DDB0} + }, + [TRAINER_BIKER_JAXON_2] = { + .partyFlags = 0, + .trainerClass = CLASS_BIKER, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_BIKER, + .trainerName = _("JAXON"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823DDC0} + }, + [TRAINER_CUE_BALL_ISAIAH_2] = { + .partyFlags = 0, + .trainerClass = CLASS_CUE_BALL, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_CUE_BALL, + .trainerName = _("ISAIAH"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823DDD0} + }, + [TRAINER_CUE_BALL_COREY_2] = { + .partyFlags = 0, + .trainerClass = CLASS_CUE_BALL, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_CUE_BALL, + .trainerName = _("COREY"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823DDE0} + }, + [TRAINER_BIRD_KEEPER_JACOB_2] = { + .partyFlags = 0, + .trainerClass = CLASS_BIRD_KEEPER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_COOL, + .trainerPic = TRAINER_PIC_BIRD_KEEPER, + .trainerName = _("JACOB"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 4, + .party = {.NoItemDefaultMoves = sTrainerMons_823DDF0} + }, + [TRAINER_BIRD_KEEPER_JACOB_3] = { + .partyFlags = 0, + .trainerClass = CLASS_BIRD_KEEPER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_COOL, + .trainerPic = TRAINER_PIC_BIRD_KEEPER, + .trainerName = _("JACOB"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 4, + .party = {.NoItemDefaultMoves = sTrainerMons_823DE10} + }, + [TRAINER_SWIMMER_FEMALE_ALICE_2] = { + .partyFlags = 0, + .trainerClass = CLASS_SWIMMER_FEMALE_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_FEMALE | F_TRAINER_FEMALE, + .trainerPic = TRAINER_PIC_SWIMMER_F, + .trainerName = _("ALICE"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823DE30} + }, + [TRAINER_SWIMMER_MALE_DARRIN_2] = { + .partyFlags = 0, + .trainerClass = CLASS_SWIMMER_MALE_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_SWIMMER, + .trainerPic = TRAINER_PIC_SWIMMER_M, + .trainerName = _("DARRIN"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 4, + .party = {.NoItemDefaultMoves = sTrainerMons_823DE40} + }, + [TRAINER_PICNICKER_MISSY_2] = { + .partyFlags = 0, + .trainerClass = CLASS_PICNICKER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_GIRL | F_TRAINER_FEMALE, + .trainerPic = TRAINER_PIC_PICNICKER, + .trainerName = _("MISSY"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823DE60} + }, + [TRAINER_PICNICKER_MISSY_3] = { + .partyFlags = 0, + .trainerClass = CLASS_PICNICKER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_GIRL | F_TRAINER_FEMALE, + .trainerPic = TRAINER_PIC_PICNICKER, + .trainerName = _("MISSY"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823DE70} + }, + [TRAINER_FISHERMAN_WADE_2] = { + .partyFlags = 0, + .trainerClass = CLASS_FISHERMAN_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_HIKER, + .trainerPic = TRAINER_PIC_FISHERMAN, + .trainerName = _("WADE"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 6, + .party = {.NoItemDefaultMoves = sTrainerMons_823DE80} + }, + [TRAINER_SWIMMER_MALE_JACK_2] = { + .partyFlags = 0, + .trainerClass = CLASS_SWIMMER_MALE_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_SWIMMER, + .trainerPic = TRAINER_PIC_SWIMMER_M, + .trainerName = _("JACK"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823DEB0} + }, + [TRAINER_SIS_AND_BRO_LIL_IAN_2] = { + .partyFlags = 0, + .trainerClass = CLASS_SIS_AND_BRO_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_SWIMMER, + .trainerPic = TRAINER_PIC_SIS_AND_BRO, + .trainerName = _("LIL & IAN"), + .items = {}, + .doubleBattle = TRUE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823DEB8} + }, + [TRAINER_SIS_AND_BRO_LIL_IAN_3] = { + .partyFlags = 0, + .trainerClass = CLASS_SIS_AND_BRO_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_SWIMMER, + .trainerPic = TRAINER_PIC_SIS_AND_BRO, + .trainerName = _("LIL & IAN"), + .items = {}, + .doubleBattle = TRUE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823DEC8} + }, + [TRAINER_SWIMMER_MALE_FINN_2] = { + .partyFlags = 0, + .trainerClass = CLASS_SWIMMER_MALE_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_SWIMMER, + .trainerPic = TRAINER_PIC_SWIMMER_M, + .trainerName = _("FINN"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823DED8} + }, + [TRAINER_CRUSH_GIRL_SHARON_2] = { + .partyFlags = F_TRAINER_PARTY_HELD_ITEM, + .trainerClass = CLASS_CRUSH_GIRL, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_INTENSE, + .trainerPic = TRAINER_PIC_CRUSH_GIRL, + .trainerName = _("SHARON"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.ItemDefaultMoves = sTrainerMons_823DEE0} + }, + [TRAINER_CRUSH_GIRL_SHARON_3] = { + .partyFlags = F_TRAINER_PARTY_HELD_ITEM, + .trainerClass = CLASS_CRUSH_GIRL, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_INTENSE, + .trainerPic = TRAINER_PIC_CRUSH_GIRL, + .trainerName = _("SHARON"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.ItemDefaultMoves = sTrainerMons_823DEF0} + }, + [TRAINER_CRUSH_GIRL_TANYA_2] = { + .partyFlags = F_TRAINER_PARTY_HELD_ITEM, + .trainerClass = CLASS_CRUSH_GIRL, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_INTENSE, + .trainerPic = TRAINER_PIC_CRUSH_GIRL, + .trainerName = _("TANYA"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.ItemDefaultMoves = sTrainerMons_823DF00} + }, + [TRAINER_CRUSH_GIRL_TANYA_3] = { + .partyFlags = F_TRAINER_PARTY_HELD_ITEM, + .trainerClass = CLASS_CRUSH_GIRL, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_INTENSE, + .trainerPic = TRAINER_PIC_CRUSH_GIRL, + .trainerName = _("TANYA"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.ItemDefaultMoves = sTrainerMons_823DF10} + }, + [TRAINER_BLACK_BELT_SHEA_2] = { + .partyFlags = F_TRAINER_PARTY_HELD_ITEM, + .trainerClass = CLASS_BLACK_BELT_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_INTENSE, + .trainerPic = TRAINER_PIC_BLACK_BELT, + .trainerName = _("SHEA"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.ItemDefaultMoves = sTrainerMons_823DF20} + }, + [TRAINER_BLACK_BELT_SHEA_3] = { + .partyFlags = F_TRAINER_PARTY_HELD_ITEM, + .trainerClass = CLASS_BLACK_BELT_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_INTENSE, + .trainerPic = TRAINER_PIC_BLACK_BELT, + .trainerName = _("SHEA"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.ItemDefaultMoves = sTrainerMons_823DF30} + }, + [TRAINER_BLACK_BELT_HUGH_2] = { + .partyFlags = F_TRAINER_PARTY_HELD_ITEM, + .trainerClass = CLASS_BLACK_BELT_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_INTENSE, + .trainerPic = TRAINER_PIC_BLACK_BELT, + .trainerName = _("HUGH"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.ItemDefaultMoves = sTrainerMons_823DF40} + }, + [TRAINER_BLACK_BELT_HUGH_3] = { + .partyFlags = F_TRAINER_PARTY_HELD_ITEM, + .trainerClass = CLASS_BLACK_BELT_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_INTENSE, + .trainerPic = TRAINER_PIC_BLACK_BELT, + .trainerName = _("HUGH"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.ItemDefaultMoves = sTrainerMons_823DF50} + }, + [TRAINER_CRUSH_KIN_MIK_KIA_2] = { + .partyFlags = F_TRAINER_PARTY_HELD_ITEM, + .trainerClass = CLASS_CRUSH_KIN, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_INTENSE, + .trainerPic = TRAINER_PIC_CRUSH_KIN, + .trainerName = _("MIK & KIA"), + .items = {}, + .doubleBattle = TRUE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.ItemDefaultMoves = sTrainerMons_823DF60} + }, + [TRAINER_CRUSH_KIN_MIK_KIA_3] = { + .partyFlags = F_TRAINER_PARTY_HELD_ITEM, + .trainerClass = CLASS_CRUSH_KIN, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_INTENSE, + .trainerPic = TRAINER_PIC_CRUSH_KIN, + .trainerName = _("MIK & KIA"), + .items = {}, + .doubleBattle = TRUE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.ItemDefaultMoves = sTrainerMons_823DF70} + }, + [TRAINER_TUBER_AMIRA_2] = { + .partyFlags = 0, + .trainerClass = CLASS_TUBER_3, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_GIRL, + .trainerPic = TRAINER_PIC_TUBER_F, + .trainerName = _("AMIRA"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 3, + .party = {.NoItemDefaultMoves = sTrainerMons_823DF80} + }, + [TRAINER_TWINS_JOY_MEG_2] = { + .partyFlags = 0, + .trainerClass = CLASS_TWINS_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_TWINS, + .trainerPic = TRAINER_PIC_TWINS, + .trainerName = _("JOY & MEG"), + .items = {}, + .doubleBattle = TRUE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823DF98} + }, + [TRAINER_PAINTER_RAYNA_2] = { + .partyFlags = F_TRAINER_PARTY_CUSTOM_MOVESET, + .trainerClass = CLASS_PAINTER, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_FEMALE, + .trainerPic = TRAINER_PIC_PAINTER, + .trainerName = _("RAYNA"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemCustomMoves = sTrainerMons_823DFA8} + }, + [TRAINER_YOUNGSTER_DESTIN_2] = { + .partyFlags = 0, + .trainerClass = CLASS_YOUNGSTER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_YOUNGSTER, + .trainerName = _("DESTIN"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823DFB8} + }, + [TRAINER_PKMN_BREEDER_ALIZE_2] = { + .partyFlags = 0, + .trainerClass = CLASS_PKMN_BREEDER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_FEMALE, + .trainerPic = TRAINER_PIC_POKEMON_BREEDER_F, + .trainerName = _("ALIZE"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 3, + .party = {.NoItemDefaultMoves = sTrainerMons_823DFC8} + }, + [TRAINER_YOUNG_COUPLE_GIA_JES_2] = { + .partyFlags = 0, + .trainerClass = CLASS_YOUNG_COUPLE_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_GIRL, + .trainerPic = TRAINER_PIC_YOUNG_COUPLE, + .trainerName = _("GIA & JES"), + .items = {}, + .doubleBattle = TRUE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823DFE0} + }, + [TRAINER_YOUNG_COUPLE_GIA_JES_3] = { + .partyFlags = 0, + .trainerClass = CLASS_YOUNG_COUPLE_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_GIRL, + .trainerPic = TRAINER_PIC_YOUNG_COUPLE, + .trainerName = _("GIA & JES"), + .items = {}, + .doubleBattle = TRUE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823DFF0} + }, + [TRAINER_BIRD_KEEPER_MILO_2] = { + .partyFlags = 0, + .trainerClass = CLASS_BIRD_KEEPER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_COOL, + .trainerPic = TRAINER_PIC_BIRD_KEEPER, + .trainerName = _("MILO"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823E000} + }, + [TRAINER_BIRD_KEEPER_CHAZ_2] = { + .partyFlags = 0, + .trainerClass = CLASS_BIRD_KEEPER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_COOL, + .trainerPic = TRAINER_PIC_BIRD_KEEPER, + .trainerName = _("CHAZ"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823E010} + }, + [TRAINER_BIRD_KEEPER_HAROLD_2] = { + .partyFlags = 0, + .trainerClass = CLASS_BIRD_KEEPER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_COOL, + .trainerPic = TRAINER_PIC_BIRD_KEEPER, + .trainerName = _("HAROLD"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823E020} + }, + [TRAINER_SWIMMER_FEMALE_NICOLE_2] = { + .partyFlags = 0, + .trainerClass = CLASS_SWIMMER_FEMALE_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_FEMALE | F_TRAINER_FEMALE, + .trainerPic = TRAINER_PIC_SWIMMER_F, + .trainerName = _("NICOLE"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823E030} + }, + [TRAINER_PSYCHIC_JACLYN_2] = { + .partyFlags = F_TRAINER_PARTY_CUSTOM_MOVESET, + .trainerClass = CLASS_PSYCHIC_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_INTENSE | F_TRAINER_FEMALE, + .trainerPic = TRAINER_PIC_PSYCHIC_F, + .trainerName = _("JACLYN"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 3, + .party = {.NoItemCustomMoves = sTrainerMons_823E038} + }, + [TRAINER_SWIMMER_MALE_SAMIR_2] = { + .partyFlags = 0, + .trainerClass = CLASS_SWIMMER_MALE_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_SWIMMER, + .trainerPic = TRAINER_PIC_SWIMMER_M, + .trainerName = _("SAMIR"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemDefaultMoves = sTrainerMons_823E068} + }, + [TRAINER_HIKER_EARL_2] = { + .partyFlags = 0, + .trainerClass = CLASS_HIKER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_HIKER, + .trainerPic = TRAINER_PIC_HIKER, + .trainerName = _("EARL"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823E070} + }, + [TRAINER_RUIN_MANIAC_LARRY_2] = { + .partyFlags = 0, + .trainerClass = CLASS_RUIN_MANIAC_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_HIKER, + .trainerPic = TRAINER_PIC_RUIN_MANIAC, + .trainerName = _("LARRY"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823E080} + }, + [TRAINER_POKEMANIAC_HECTOR_2] = { + .partyFlags = 0, + .trainerClass = CLASS_POKEMANIAC_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_SUSPICIOUS, + .trainerPic = TRAINER_PIC_POKEMANIAC, + .trainerName = _("HECTOR"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823E090} + }, + [TRAINER_PSYCHIC_DARIO_2] = { + .partyFlags = F_TRAINER_PARTY_CUSTOM_MOVESET, + .trainerClass = CLASS_PSYCHIC_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_INTENSE, + .trainerPic = TRAINER_PIC_PSYCHIC_M, + .trainerName = _("DARIO"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 1, + .party = {.NoItemCustomMoves = sTrainerMons_823E0A0} + }, + [TRAINER_PSYCHIC_RODETTE_2] = { + .partyFlags = F_TRAINER_PARTY_CUSTOM_MOVESET, + .trainerClass = CLASS_PSYCHIC_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_INTENSE | F_TRAINER_FEMALE, + .trainerPic = TRAINER_PIC_PSYCHIC_F, + .trainerName = _("RODETTE"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 3, + .party = {.NoItemCustomMoves = sTrainerMons_823E0B0} + }, + [TRAINER_JUGGLER_MASON_2] = { + .partyFlags = 0, + .trainerClass = CLASS_JUGGLER, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_HIKER, + .trainerPic = TRAINER_PIC_JUGGLER, + .trainerName = _("MASON"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 4, + .party = {.NoItemDefaultMoves = sTrainerMons_823E0E0} + }, + [TRAINER_PKMN_RANGER_NICOLAS_2] = { + .partyFlags = F_TRAINER_PARTY_CUSTOM_MOVESET, + .trainerClass = CLASS_PKMN_RANGER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_COOL, + .trainerPic = TRAINER_PIC_POKEMON_RANGER_M, + .trainerName = _("NICOLAS"), + .items = {ITEM_FULL_RESTORE}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE | AI_SCRIPT_TRY_TO_FAINT | AI_SCRIPT_CHECK_VIABILITY, + .partySize = 2, + .party = {.NoItemCustomMoves = sTrainerMons_823E100} + }, + [TRAINER_PKMN_RANGER_MADELINE_2] = { + .partyFlags = F_TRAINER_PARTY_CUSTOM_MOVESET, + .trainerClass = CLASS_PKMN_RANGER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_COOL | F_TRAINER_FEMALE, + .trainerPic = TRAINER_PIC_POKEMON_RANGER_F, + .trainerName = _("MADELINE"), + .items = {ITEM_FULL_RESTORE}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE | AI_SCRIPT_TRY_TO_FAINT | AI_SCRIPT_CHECK_VIABILITY, + .partySize = 2, + .party = {.NoItemCustomMoves = sTrainerMons_823E120} + }, + [TRAINER_CRUSH_GIRL_CYNDY_2] = { + .partyFlags = F_TRAINER_PARTY_HELD_ITEM, + .trainerClass = CLASS_CRUSH_GIRL, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_INTENSE, + .trainerPic = TRAINER_PIC_CRUSH_GIRL, + .trainerName = _("CYNDY"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 3, + .party = {.ItemDefaultMoves = sTrainerMons_823E140} + }, + [TRAINER_TAMER_EVAN_2] = { + .partyFlags = 0, + .trainerClass = CLASS_TAMER, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_HIKER, + .trainerPic = TRAINER_PIC_TAMER, + .trainerName = _("EVAN"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 3, + .party = {.NoItemDefaultMoves = sTrainerMons_823E158} + }, + [TRAINER_PKMN_RANGER_JACKSON_2] = { + .partyFlags = F_TRAINER_PARTY_CUSTOM_MOVESET, + .trainerClass = CLASS_PKMN_RANGER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_COOL, + .trainerPic = TRAINER_PIC_POKEMON_RANGER_M, + .trainerName = _("JACKSON"), + .items = {ITEM_FULL_RESTORE}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE | AI_SCRIPT_TRY_TO_FAINT | AI_SCRIPT_CHECK_VIABILITY, + .partySize = 3, + .party = {.NoItemCustomMoves = sTrainerMons_823E170} + }, + [TRAINER_PKMN_RANGER_KATELYN_2] = { + .partyFlags = F_TRAINER_PARTY_CUSTOM_MOVESET, + .trainerClass = CLASS_PKMN_RANGER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_COOL | F_TRAINER_FEMALE, + .trainerPic = TRAINER_PIC_POKEMON_RANGER_F, + .trainerName = _("KATELYN"), + .items = {ITEM_FULL_RESTORE}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE | AI_SCRIPT_TRY_TO_FAINT | AI_SCRIPT_CHECK_VIABILITY, + .partySize = 1, + .party = {.NoItemCustomMoves = sTrainerMons_823E1A0} + }, + [TRAINER_COOLTRAINER_LEROY_2] = { + .partyFlags = F_TRAINER_PARTY_CUSTOM_MOVESET, + .trainerClass = CLASS_COOLTRAINER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_COOL, + .trainerPic = TRAINER_PIC_COOLTRAINER_M, + .trainerName = _("LEROY"), + .items = {ITEM_FULL_RESTORE}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE | AI_SCRIPT_TRY_TO_FAINT | AI_SCRIPT_CHECK_VIABILITY, + .partySize = 5, + .party = {.NoItemCustomMoves = sTrainerMons_823E1B0} + }, + [TRAINER_COOLTRAINER_MICHELLE_2] = { + .partyFlags = F_TRAINER_PARTY_CUSTOM_MOVESET, + .trainerClass = CLASS_COOLTRAINER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_COOL | F_TRAINER_FEMALE, + .trainerPic = TRAINER_PIC_COOLTRAINER_F, + .trainerName = _("MICHELLE"), + .items = {ITEM_HYPER_POTION}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE | AI_SCRIPT_TRY_TO_FAINT | AI_SCRIPT_CHECK_VIABILITY, + .partySize = 5, + .party = {.NoItemCustomMoves = sTrainerMons_823E200} + }, + [TRAINER_COOL_COUPLE_LEX_NYA_2] = { + .partyFlags = F_TRAINER_PARTY_CUSTOM_MOVESET, + .trainerClass = CLASS_COOL_COUPLE, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_COOL, + .trainerPic = TRAINER_PIC_COOL_COUPLE, + .trainerName = _("LEX & NYA"), + .items = {ITEM_FULL_RESTORE, ITEM_FULL_RESTORE}, + .doubleBattle = TRUE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE | AI_SCRIPT_TRY_TO_FAINT | AI_SCRIPT_CHECK_VIABILITY, + .partySize = 2, + .party = {.NoItemCustomMoves = sTrainerMons_823E250} + }, + [TRAINER_BUG_CATCHER_COLTON_2] = { + .partyFlags = 0, + .trainerClass = CLASS_BUG_CATCHER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_BUG_CATCHER, + .trainerName = _("COLTON"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 3, + .party = {.NoItemDefaultMoves = sTrainerMons_823E270} + }, + [TRAINER_BUG_CATCHER_COLTON_3] = { + .partyFlags = 0, + .trainerClass = CLASS_BUG_CATCHER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_BUG_CATCHER, + .trainerName = _("COLTON"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 3, + .party = {.NoItemDefaultMoves = sTrainerMons_823E288} + }, + [TRAINER_BUG_CATCHER_COLTON_4] = { + .partyFlags = 0, + .trainerClass = CLASS_BUG_CATCHER_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_BUG_CATCHER, + .trainerName = _("COLTON"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 3, + .party = {.NoItemDefaultMoves = sTrainerMons_823E2A0} + }, + [TRAINER_SWIMMER_MALE_MATTHEW_2] = { + .partyFlags = 0, + .trainerClass = CLASS_SWIMMER_MALE_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_SWIMMER, + .trainerPic = TRAINER_PIC_SWIMMER_M, + .trainerName = _("MATTHEW"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823E2B8} + }, + [TRAINER_SWIMMER_MALE_TONY_2] = { + .partyFlags = 0, + .trainerClass = CLASS_SWIMMER_MALE_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_SWIMMER, + .trainerPic = TRAINER_PIC_SWIMMER_M, + .trainerName = _("TONY"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823E2C8} + }, + [TRAINER_SWIMMER_FEMALE_MELISSA_2] = { + .partyFlags = 0, + .trainerClass = CLASS_SWIMMER_FEMALE_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_FEMALE | F_TRAINER_FEMALE, + .trainerPic = TRAINER_PIC_SWIMMER_F, + .trainerName = _("MELISSA"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823E2D8} + }, + [TRAINER_ELITE_FOUR_LORELEI_2] = { + .partyFlags = F_TRAINER_PARTY_CUSTOM_MOVESET | F_TRAINER_PARTY_HELD_ITEM, + .trainerClass = CLASS_ELITE_FOUR_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_ELITE_FOUR, + .trainerPic = TRAINER_PIC_ELITE_FOUR_LORELEI, + .trainerName = _("LORELEI"), + .items = {ITEM_FULL_RESTORE, ITEM_FULL_RESTORE}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE | AI_SCRIPT_TRY_TO_FAINT | AI_SCRIPT_CHECK_VIABILITY, + .partySize = 5, + .party = {.ItemCustomMoves = sTrainerMons_823E2E8} + }, + [TRAINER_ELITE_FOUR_BRUNO_2] = { + .partyFlags = F_TRAINER_PARTY_CUSTOM_MOVESET | F_TRAINER_PARTY_HELD_ITEM, + .trainerClass = CLASS_ELITE_FOUR_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_ELITE_FOUR, + .trainerPic = TRAINER_PIC_ELITE_FOUR_BRUNO, + .trainerName = _("BRUNO"), + .items = {ITEM_FULL_RESTORE, ITEM_FULL_RESTORE}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE | AI_SCRIPT_TRY_TO_FAINT | AI_SCRIPT_CHECK_VIABILITY, + .partySize = 5, + .party = {.ItemCustomMoves = sTrainerMons_823E338} + }, + [TRAINER_ELITE_FOUR_AGATHA_2] = { + .partyFlags = F_TRAINER_PARTY_CUSTOM_MOVESET | F_TRAINER_PARTY_HELD_ITEM, + .trainerClass = CLASS_ELITE_FOUR_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_ELITE_FOUR, + .trainerPic = TRAINER_PIC_ELITE_FOUR_AGATHA, + .trainerName = _("AGATHA"), + .items = {ITEM_FULL_RESTORE, ITEM_FULL_RESTORE}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE | AI_SCRIPT_TRY_TO_FAINT | AI_SCRIPT_CHECK_VIABILITY, + .partySize = 5, + .party = {.ItemCustomMoves = sTrainerMons_823E388} + }, + [TRAINER_ELITE_FOUR_LANCE_2] = { + .partyFlags = F_TRAINER_PARTY_CUSTOM_MOVESET | F_TRAINER_PARTY_HELD_ITEM, + .trainerClass = CLASS_ELITE_FOUR_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_ELITE_FOUR, + .trainerPic = TRAINER_PIC_ELITE_FOUR_LANCE, + .trainerName = _("LANCE"), + .items = {ITEM_FULL_RESTORE, ITEM_FULL_RESTORE}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE | AI_SCRIPT_TRY_TO_FAINT | AI_SCRIPT_CHECK_VIABILITY, + .partySize = 5, + .party = {.ItemCustomMoves = sTrainerMons_823E3D8} + }, + [TRAINER_CHAMPION_REMATCH_SQUIRTLE] = { + .partyFlags = F_TRAINER_PARTY_CUSTOM_MOVESET | F_TRAINER_PARTY_HELD_ITEM, + .trainerClass = CLASS_CHAMPION_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_CHAMPION_RIVAL, + .trainerName = _("TERRY"), + .items = {ITEM_FULL_RESTORE, ITEM_FULL_RESTORE, ITEM_FULL_RESTORE, ITEM_FULL_RESTORE}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE | AI_SCRIPT_TRY_TO_FAINT | AI_SCRIPT_CHECK_VIABILITY, + .partySize = 6, + .party = {.ItemCustomMoves = sTrainerMons_823E428} + }, + [TRAINER_CHAMPION_REMATCH_BULBASAUR] = { + .partyFlags = F_TRAINER_PARTY_CUSTOM_MOVESET | F_TRAINER_PARTY_HELD_ITEM, + .trainerClass = CLASS_CHAMPION_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_CHAMPION_RIVAL, + .trainerName = _("TERRY"), + .items = {ITEM_FULL_RESTORE, ITEM_FULL_RESTORE, ITEM_FULL_RESTORE, ITEM_FULL_RESTORE}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE | AI_SCRIPT_TRY_TO_FAINT | AI_SCRIPT_CHECK_VIABILITY, + .partySize = 6, + .party = {.ItemCustomMoves = sTrainerMons_823E488} + }, + [TRAINER_CHAMPION_REMATCH_CHARMANDER] = { + .partyFlags = F_TRAINER_PARTY_CUSTOM_MOVESET | F_TRAINER_PARTY_HELD_ITEM, + .trainerClass = CLASS_CHAMPION_2, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_CHAMPION_RIVAL, + .trainerName = _("TERRY"), + .items = {ITEM_FULL_RESTORE, ITEM_FULL_RESTORE, ITEM_FULL_RESTORE, ITEM_FULL_RESTORE}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE | AI_SCRIPT_TRY_TO_FAINT | AI_SCRIPT_CHECK_VIABILITY, + .partySize = 6, + .party = {.ItemCustomMoves = sTrainerMons_823E4E8} + }, + [TRAINER_CUE_BALL_PAXTON] = { + .partyFlags = 0, + .trainerClass = CLASS_CUE_BALL, + .encounterMusic_gender = TRAINER_ENCOUNTER_MUSIC_MALE, + .trainerPic = TRAINER_PIC_CUE_BALL, + .trainerName = _("PAXTON"), + .items = {}, + .doubleBattle = FALSE, + .aiFlags = AI_SCRIPT_CHECK_BAD_MOVE, + .partySize = 2, + .party = {.NoItemDefaultMoves = sTrainerMons_823E548} + }, +}; diff --git a/src/daycare.c b/src/daycare.c index fede86156..c016bbc38 100644 --- a/src/daycare.c +++ b/src/daycare.c @@ -76,7 +76,7 @@ extern const u8 gDaycareText_DontLikeOther[]; extern const u8 gDaycareText_PlayOther[]; extern const u8 gExpandedPlaceholder_Empty[]; -extern const u32 gUnknown_08331F60[]; // tilemap gameboy circle +extern const u32 gUnknown_826601C[]; // tilemap gameboy circle extern const u8 gText_HatchedFromEgg[]; extern const u8 gText_NickHatchPrompt[]; @@ -1739,7 +1739,7 @@ static bool8 sub_8046E34(struct DayCare *daycare, u8 daycareId) return FALSE; } -bool8 sub_8046EAC(void) +bool8 DaycareMonReceivedMail(void) { return sub_8046E34(&gSaveBlock1Ptr->daycare, gSpecialVar_0x8004); } @@ -1880,7 +1880,7 @@ static void CB2_EggHatch_0(void) SetGpuReg(REG_OFFSET_DISPCNT, DISPCNT_OBJ_ON | DISPCNT_OBJ_1D_MAP); LoadPalette(gTradeGba2_Pal, 0x10, 0xA0); LoadBgTiles(1, gTradeGba_Gfx, 0x1420, 0); - CopyToBgTilemapBuffer(1, gUnknown_08331F60, 0x1000, 0); + CopyToBgTilemapBuffer(1, gUnknown_826601C, 0x1000, 0); CopyBgTilemapBufferToVram(1); gMain.state++; break; diff --git a/src/event_data.c b/src/event_data.c new file mode 100644 index 000000000..4aca57e50 --- /dev/null +++ b/src/event_data.c @@ -0,0 +1,325 @@ +#include "global.h" +#include "event_data.h" +#include "item_menu.h" +#include "quest_log.h" + +static bool8 IsFlagOrVarStoredInQuestLog(u16 idx, u8 a1); + +EWRAM_DATA u16 gSpecialVar_0x8000 = 0; +EWRAM_DATA u16 gSpecialVar_0x8001 = 0; +EWRAM_DATA u16 gSpecialVar_0x8002 = 0; +EWRAM_DATA u16 gSpecialVar_0x8003 = 0; +EWRAM_DATA u16 gSpecialVar_0x8004 = 0; +EWRAM_DATA u16 gSpecialVar_0x8005 = 0; +EWRAM_DATA u16 gSpecialVar_0x8006 = 0; +EWRAM_DATA u16 gSpecialVar_0x8007 = 0; +EWRAM_DATA u16 gSpecialVar_0x8008 = 0; +EWRAM_DATA u16 gSpecialVar_0x8009 = 0; +EWRAM_DATA u16 gSpecialVar_0x800A = 0; +EWRAM_DATA u16 gSpecialVar_0x800B = 0; +EWRAM_DATA u16 gSpecialVar_Result = 0; +EWRAM_DATA u16 gSpecialVar_LastTalked = 0; +EWRAM_DATA u16 gSpecialVar_Facing = 0; +EWRAM_DATA u16 gSpecialVar_MonBoxId = 0; +EWRAM_DATA u16 gSpecialVar_MonBoxPos = 0; +EWRAM_DATA u16 gSpecialVar_TextColor = 0; +EWRAM_DATA u16 gSpecialVar_PrevTextColor = 0; +EWRAM_DATA u16 gUnknown_20370DE = 0; +EWRAM_DATA u8 sSpecialFlags[SPECIAL_FLAGS_COUNT] = {}; + +u16 gLastQuestLogStoredFlagOrVarIdx; + +extern u16 *const gSpecialVars[]; + +void InitEventData(void) +{ + memset(gSaveBlock1Ptr->flags, 0, FLAGS_COUNT); + memset(gSaveBlock1Ptr->vars, 0, VARS_COUNT * 2); + memset(sSpecialFlags, 0, SPECIAL_FLAGS_COUNT); +} + +void sub_806E110(void) +{ + memset(gSaveBlock1Ptr->flags, 0, 4); + memset(gSaveBlock1Ptr->vars, 0, 16 * 2); + FlagClear(FLAG_SYS_WHITE_FLUTE_ACTIVE); + FlagClear(FLAG_SYS_BLACK_FLUTE_ACTIVE); + FlagClear(FLAG_SYS_STRENGTH_ACTIVE); + FlagClear(FLAG_SYS_SPECIAL_WILD_BATTLE); + FlagClear(FLAG_SYS_INFORMED_OF_LOCAL_WIRELESS_PLAYER); +} + +void sub_806E168(void) +{ + u16 *ptr = GetVarPointer(VAR_0x403C); + gSaveBlock2Ptr->pokedex.nationalMagic = 0; + *ptr = 0; + FlagClear(FLAG_0x838); +} + +void sub_806E190(void) +{ + u16 *ptr = GetVarPointer(VAR_0x403C); + gSaveBlock2Ptr->pokedex.nationalMagic = 0xDA; + *ptr = 0x0302; + FlagSet(FLAG_0x838); +} + +bool32 sub_806E1C0(void) +{ + if (gSaveBlock2Ptr->pokedex.nationalMagic != 0xDA) + return FALSE; + if (VarGet(VAR_0x403C) != 0x0302) + return FALSE; + if (!FlagGet(FLAG_0x838)) + return FALSE; + return TRUE; +} + +void sub_806E204(void) +{ + u16 *ptr = GetVarPointer(VAR_0x404E); + gSaveBlock2Ptr->pokedex.unknown2 = 0; + *ptr = 0; + FlagClear(FLAG_SYS_NATIONAL_DEX); +} + +void EnableNationalPokedex(void) +{ + u16 *ptr = GetVarPointer(VAR_0x404E); + gSaveBlock2Ptr->pokedex.unknown2 = 0xB9; + *ptr = 0x6258; + FlagSet(FLAG_SYS_NATIONAL_DEX); +} + +bool32 IsNationalPokedexEnabled(void) +{ + if (gSaveBlock2Ptr->pokedex.unknown2 != 0xB9) + return FALSE; + if (VarGet(VAR_0x404E) != 0x6258) + return FALSE; + if (!FlagGet(FLAG_SYS_NATIONAL_DEX)) + return FALSE; + return TRUE; +} + +void DisableMysteryGift(void) +{ + FlagClear(FLAG_SYS_MYSTERY_GIFT_ENABLED); +} + +void EnableMysteryGift(void) +{ + FlagSet(FLAG_SYS_MYSTERY_GIFT_ENABLED); +} + +bool32 IsMysteryGiftEnabled(void) +{ + return FlagGet(FLAG_SYS_MYSTERY_GIFT_ENABLED); +} + +void sub_806E2D0(void) +{ + FlagClear(FLAG_MYSTERY_EVENT_DONE); + FlagClear(FLAG_0x3D9); + FlagClear(FLAG_0x3DA); + FlagClear(FLAG_0x3DB); + FlagClear(FLAG_0x3DC); + FlagClear(FLAG_0x3DD); + FlagClear(FLAG_0x3DE); + FlagClear(FLAG_0x3DF); + FlagClear(FLAG_0x3E0); + FlagClear(FLAG_0x3E1); + FlagClear(FLAG_0x3E2); + FlagClear(FLAG_0x3E3); + FlagClear(FLAG_0x3E4); + FlagClear(FLAG_0x3E5); + FlagClear(FLAG_0x3E6); + FlagClear(FLAG_0x3E7); +} + +void sub_806E370(void) +{ + VarSet(VAR_EVENT_PICHU_SLOT, 0); + VarSet(VAR_0x40B6, 0); + VarSet(VAR_0x40B7, 0); + VarSet(VAR_0x40B8, 0); + VarSet(VAR_0x40B9, 0); + VarSet(VAR_0x40BA, 0); + VarSet(VAR_0x40BB, 0); + VarSet(VAR_0x40BC, 0); + VarSet(VAR_ALTERING_CAVE_WILD_SET, 0); +} + +void DisableResetRTC(void) +{ + VarSet(VAR_0x4032, 0); + FlagClear(FLAG_0x837); +} + +void EnableResetRTC(void) +{ + VarSet(VAR_0x4032, 0x0920); + FlagSet(FLAG_0x837); +} + +bool32 CanResetRTC(void) +{ + if (!FlagGet(FLAG_0x837)) + return FALSE; + if (VarGet(VAR_0x4032) != 0x0920) + return FALSE; + return TRUE; +} + +u16 *GetVarPointer(u16 idx) +{ + u16 *ptr; + if (idx < VARS_START) + return NULL; + if (idx < SPECIAL_VARS_START) + { + switch (gUnknown_3005E88) + { + case 0: + default: + break; + case 1: + ptr = QuestLogGetFlagOrVarPtr(FALSE, idx); + if (ptr != NULL) + gSaveBlock1Ptr->vars[idx - VARS_START] = *ptr; + break; + case 2: + if (IsFlagOrVarStoredInQuestLog(idx - VARS_START, TRUE) == TRUE) + { + gLastQuestLogStoredFlagOrVarIdx = idx - VARS_START; + QuestLogSetFlagOrVar(FALSE, idx, gSaveBlock1Ptr->vars[idx - VARS_START]); + } + break; + } + return &gSaveBlock1Ptr->vars[idx - VARS_START]; + } + return gSpecialVars[idx - SPECIAL_VARS_START]; +} + +static bool8 IsFlagOrVarStoredInQuestLog(u16 idx, bool8 isVar) +{ + if (!isVar) + { + if (idx < STORY_FLAGS_START) + return FALSE; + if (idx >= SYS_FLAGS && idx < PERMA_SYS_FLAGS_START) + return FALSE; + } + else + { + if (idx < VAR_0x4030 - VARS_START) + return FALSE; + if (idx >= VAR_MAP_SCENE_PALLET_TOWN_OAK - VARS_START && idx < VAR_PORTHOLE - VARS_START) + return FALSE; + } + return TRUE; +} + +u16 VarGet(u16 idx) +{ + u16 *ptr = GetVarPointer(idx); + if (ptr == NULL) + return idx; + return *ptr; +} + +bool8 VarSet(u16 idx, u16 val) +{ + u16 *ptr = GetVarPointer(idx); + if (ptr == NULL) + return FALSE; + *ptr = val; + return TRUE; +} + +u8 VarGetFieldObjectGraphicsId(u8 idx) +{ + return VarGet(VAR_OBJ_GFX_ID_0 + idx); +} + +u8 *GetFlagAddr(u16 idx) +{ + u8 *ptr; + if (idx == 0) + return NULL; + if (idx < SPECIAL_FLAGS_START) + { + switch (gUnknown_3005E88) + { + case 0: + default: + break; + case 1: + ptr = QuestLogGetFlagOrVarPtr(TRUE, idx); + if (ptr != NULL) + gSaveBlock1Ptr->flags[idx >> 3] = *ptr; + break; + case 2: + if (IsFlagOrVarStoredInQuestLog(idx, FALSE) == TRUE) + { + gLastQuestLogStoredFlagOrVarIdx = idx; + QuestLogSetFlagOrVar(TRUE, idx, gSaveBlock1Ptr->flags[idx / 8]); + } + break; + } + return &gSaveBlock1Ptr->flags[idx / 8]; + } + return &sSpecialFlags[(idx - SPECIAL_FLAGS_START) / 8]; +} + +bool8 FlagSet(u16 idx) +{ + u8 *ptr = GetFlagAddr(idx); + if (ptr != NULL) + *ptr |= 1 << (idx & 7); + return FALSE; +} + +bool8 FlagClear(u16 idx) +{ + u8 *ptr = GetFlagAddr(idx); + if (ptr != NULL) + *ptr &= ~(1 << (idx & 7)); + return FALSE; +} + +bool8 FlagGet(u16 idx) +{ + u8 *ptr = GetFlagAddr(idx); + if (ptr == NULL) + return FALSE; + if (!(*ptr & 1 << (idx & 7))) + return FALSE; + return TRUE; +} + +void ResetSpecialVars(void) +{ + gSpecialVar_0x8000 = 0; + gSpecialVar_0x8001 = 0; + gSpecialVar_0x8002 = 0; + gSpecialVar_0x8003 = 0; + gSpecialVar_0x8004 = 0; + gSpecialVar_0x8005 = 0; + gSpecialVar_0x8006 = 0; + gSpecialVar_0x8007 = 0; + gSpecialVar_0x8008 = 0; + gSpecialVar_0x8009 = 0; + gSpecialVar_0x800A = 0; + gSpecialVar_0x800B = 0; + gSpecialVar_Facing = 0; + gSpecialVar_Result = 0; + gSpecialVar_ItemId = 0; + gSpecialVar_LastTalked = 0; + gSpecialVar_MonBoxId = 0; + gSpecialVar_MonBoxPos = 0; + gSpecialVar_TextColor = 0; + gSpecialVar_PrevTextColor = 0; + gUnknown_20370DE = 0; +} diff --git a/src/fame_checker.c b/src/fame_checker.c index e803a9700..8c8f5b4ea 100644 --- a/src/fame_checker.c +++ b/src/fame_checker.c @@ -26,6 +26,8 @@ #include "menu_indicators.h" #include "text_window.h" #include "fame_checker.h" +#include "strings.h" +#include "constants/trainers.h" #define SPRITETAG_SELECTOR_CURSOR 1000 #define SPRITETAG_QUESTION_MARK 1001 @@ -123,18 +125,6 @@ static void Task_FCOpenOrCloseInfoBox(u8 taskId); static void UpdateInfoBoxTilemap(u8 bg, s16 state); static void PlaceListMenuCursor(bool8 isActive); -extern const u8 gFameCheckerText_Cancel[]; -extern const u8 gFameCheckerText_ListMenuCursor[]; -extern const u8 gFameCheckerText_FameCheckerWillBeClosed[]; -extern const u8 gFameCheckerText_ClearTextbox[]; -extern const u8 gFameCheckerText_MainScreenUI[]; // "{KEYGFX_DPAD_ANY}PICK {KEYGFX_DPAD_UP_DOWN}SELECT {KEYGFX_A_BUTTON}OK$" -extern const u8 gFameCheckerText_PickScreenUI[]; // "{KEYGFX_DPAD_ANY}PICK {KEYGFX_DPAD_UP_DOWN}SELECT {KEYGFX_B_BUTTON}CANCEL$" -extern const u8 gFameCheckerText_FlavorTextUI[]; // "{KEYGFX_START_BUTTON}PICK {KEYGFX_A_BUTTON}READ {KEYGFX_B_BUTTON}CANCEL$" -extern const u8 gFameCheckerOakName[]; // "OAK$" -extern const u8 gFameCheckerDaisyName[]; // "DAISY$" -extern const u8 gFameCheckerBillName[]; // "BILL$" -extern const u8 gFameCheckerMrFujiName[]; // "FUJI$" - static const u16 sFameCheckerTilemap[] = INCBIN_U16("data/fame_checker/tilemap_845c600.bin"); static const u8 sQuestionMarkSpriteGfx[] = INCBIN_U8("data/fame_checker/img_845ce00.4bpp"); static const u8 sSpinningPokeballSpriteGfx[] = INCBIN_U8("data/fame_checker/img_845cf00.4bpp"); @@ -878,7 +868,7 @@ static void FC_DestroyWindow(u8 windowId) static u8 AdjustGiovanniIndexIfBeatenInGym(u8 a0) { - if (HasTrainerAlreadyBeenFought(0x15e) == TRUE) + if (HasTrainerBeenFought(TRAINER_LEADER_GIOVANNI) == TRUE) { if (a0 == 9) return FAMECHECKER_GIOVANNI; diff --git a/src/field_fadetransition.c b/src/field_fadetransition.c index 6a539b60e..58caad509 100644 --- a/src/field_fadetransition.c +++ b/src/field_fadetransition.c @@ -323,14 +323,14 @@ static void sub_807DFBC(u8 taskId) { case 0: // Never reached sub_807DCB0(0); - player_bitmagic(); + FreezeEventObjects(); PlayerGetDestCoords(x, y); FieldSetDoorOpened(*x, *y); task->data[0] = 1; break; case 5: sub_807DCB0(0); - player_bitmagic(); + FreezeEventObjects(); sub_807F114(); sub_807DBAC(); task->data[0] = 6; @@ -408,7 +408,7 @@ static void task_map_chg_seq_0807E20C(u8 taskId) { case 0: sub_807DCB0(0); - player_bitmagic(); + FreezeEventObjects(); PlayerGetDestCoords(x, y); task->data[0] = 1; break; @@ -439,7 +439,7 @@ static void task_map_chg_seq_0807E2CC(u8 taskId) switch (gTasks[taskId].data[0]) { case 0: - player_bitmagic(); + FreezeEventObjects(); ScriptContext2_Enable(); gTasks[taskId].data[0]++; break; @@ -459,7 +459,7 @@ static void sub_807E31C(u8 taskId) switch (gTasks[taskId].data[0]) { case 0: - player_bitmagic(); + FreezeEventObjects(); ScriptContext2_Enable(); sub_805DC04(); gTasks[taskId].data[0]++; @@ -639,7 +639,7 @@ static void sub_807E5EC(u8 taskId) } } -void sub_807E654(void) +void DoCableClubWarp(void) { ScriptContext2_Enable(); sub_8055F88(); @@ -689,7 +689,7 @@ static void sub_807E718(u8 taskId) switch (task->data[0]) { case 0: - player_bitmagic(); + FreezeEventObjects(); ScriptContext2_Enable(); task->data[0]++; break; @@ -711,7 +711,7 @@ static void sub_807E784(u8 taskId) switch (task->data[0]) { case 0: - player_bitmagic(); + FreezeEventObjects(); ScriptContext2_Enable(); PlaySE(SE_TK_WARPIN); sub_805DAB0(); @@ -744,7 +744,7 @@ static void sub_807E80C(u8 taskId) switch (task->data[0]) { case 0: - player_bitmagic(); + FreezeEventObjects(); PlayerGetDestCoords(xp, yp); PlaySE(GetDoorSoundEffect(*xp, *yp - 1)); task->data[1] = FieldAnimateDoorOpen(*xp, *yp - 1); @@ -798,7 +798,7 @@ static void sub_807E980(u8 taskId) { case 0: ScriptContext2_Enable(); - player_bitmagic(); + FreezeEventObjects(); CameraObjectReset2(); data[0]++; break; diff --git a/src/field_specials.c b/src/field_specials.c new file mode 100644 index 000000000..617faa017 --- /dev/null +++ b/src/field_specials.c @@ -0,0 +1,2506 @@ +#include "global.h" +#include "malloc.h" +#include "palette.h" +#include "quest_log.h" +#include "list_menu.h" +#include "diploma.h" +#include "script.h" +#include "field_player_avatar.h" +#include "overworld.h" +#include "field_message_box.h" +#include "event_data.h" +#include "string_util.h" +#include "strings.h" +#include "battle.h" +#include "fieldmap.h" +#include "field_specials.h" +#include "region_map.h" +#include "task.h" +#include "battle_tower.h" +#include "field_camera.h" +#include "field_effect.h" +#include "field_map_obj.h" +#include "menu_indicators.h" +#include "random.h" +#include "mail_data.h" +#include "help_system.h" +#include "sound.h" +#include "text.h" +#include "pokemon_storage_system.h" +#include "script_menu.h" +#include "data.h" +#include "pokedex.h" +#include "window.h" +#include "text_window.h" +#include "menu.h" +#include "mevent.h" +#include "naming_screen.h" +#include "party_menu.h" +#include "dynamic_placeholder_text_util.h" +#include "new_menu_helpers.h" +#include "constants/songs.h" +#include "constants/species.h" +#include "constants/items.h" +#include "constants/map_objects.h" +#include "constants/maps.h" +#include "constants/region_map.h" +#include "constants/moves.h" + +static EWRAM_DATA u8 sElevatorCurrentFloorWindowId = 0; +static EWRAM_DATA u16 sElevatorScroll = 0; +static EWRAM_DATA u16 sElevatorCursorPos = 0; +static EWRAM_DATA struct ListMenuItem * sListMenuItems = NULL; +static EWRAM_DATA u16 sListMenuLastScrollPosition = 0; +static EWRAM_DATA u8 sUnknownBoxId = 0; +static EWRAM_DATA u8 sBrailleTextCursorSpriteID = 0; + +struct ListMenuTemplate sFieldSpecialsListMenuTemplate; +u16 sFieldSpecialsListMenuScrollBuffer; + +static void Task_AnimatePcTurnOn(u8 taskId); +static void PcTurnOnUpdateMetatileId(bool16 flag); +static void Task_ShakeScreen(u8 taskId); +static void Task_EndScreenShake(u8 taskId); +static u16 SampleResortGorgeousMon(void); +static u16 SampleResortGorgeousReward(void); +static void Task_ElevatorShake(u8 taskId); +static void AnimateElevatorWindowView(u16 nfloors, bool8 direction); +static void Task_AnimateElevatorWindowView(u8 taskId); +static void Task_CreateScriptListMenu(u8 taskId); +static void CreateScriptListMenu(void); +static void ScriptListMenuMoveCursorFunction(s32 nothing, bool8 is, struct ListMenu * used); +static void Task_ListMenuHandleInput(u8 taskId); +static void Task_DestroyListMenu(u8 taskId); +static void Task_SuspendListMenu(u8 taskId); +static void Task_RedrawScrollArrowsAndWaitInput(u8 taskId); +static void Task_CreateMenuRemoveScrollIndicatorArrowPair(u8 taskId); +static void Task_ListMenuRemoveScrollIndicatorArrowPair(u8 taskId); +static u16 GetStarterPokemon(u16 starterIdx); +static void ChangeBoxPokemonNickname_CB(void); +static void ChangePokemonNickname_CB(void); +static void Task_RunPokemonLeagueLightingEffect(u8 taskId); +static void Task_CancelPokemonLeagueLightingEffect(u8 taskId); +static void task_deoxys_sound(u8 taskId); +static void MoveDeoxysObject(u8 num); +static void Task_WaitDeoxysFieldEffect(u8 taskId); +static void Task_WingFlapSound(u8 taskId); + +static u8 *const sStringVarPtrs[] = { + gStringVar1, + gStringVar2, + gStringVar3 +}; + +void Special_ShowDiploma(void) +{ + sub_8112364(); + SetMainCallback2(CB2_ShowDiploma); + ScriptContext2_Enable(); +} + +void Special_ForcePlayerOntoBike(void) +{ + if (gPlayerAvatar.flags & 1) + SetPlayerAvatarTransitionFlags(2); + Overworld_SetSavedMusic(MUS_CYCLING); + Overworld_ChangeMusicTo(MUS_CYCLING); +} + +void nullsub_74(void) +{ + +} + +u8 Special_GetPlayerAvatarBike(void) +{ + if (TestPlayerAvatarFlags(4)) + return 1; + else if (TestPlayerAvatarFlags(2)) + return 2; + else + return 0; +} + +void Special_ShowStringVar4AsFieldMessage(void) +{ + ShowFieldMessage(gStringVar4); +} + +void Special_GetPlayerXY(void) +{ + gSpecialVar_0x8004 = gSaveBlock1Ptr->pos.x; + gSpecialVar_0x8005 = gSaveBlock1Ptr->pos.y; +} + +u8 Special_GetPlayerTrainerIdOnesDigit(void) +{ + u16 playerId = (gSaveBlock2Ptr->playerTrainerId[1] << 8) | gSaveBlock2Ptr->playerTrainerId[0]; + return playerId % 10; +} + +void Special_BufferBigGuyOrBigGirlString(void) +{ + if (gSaveBlock2Ptr->playerGender == MALE) + StringCopy(gStringVar1, gText_BigGuy); + else + StringCopy(gStringVar1, gText_BigGirl); +} + +void Special_BufferSonOrDaughterString(void) +{ + if (gSaveBlock2Ptr->playerGender == MALE) + StringCopy(gStringVar1, gText_Son); + else + StringCopy(gStringVar1, gText_Daughter); +} + +u8 Special_GetBattleOutcome(void) +{ + return gBattleOutcome; +} + +void Special_SetHiddenItemFlag(void) +{ + FlagSet(gSpecialVar_0x8004); +} + +u8 Special_GetLeadMonFriendship(void) +{ + struct Pokemon * pokemon = &gPlayerParty[GetLeadMonIndex()]; + if (GetMonData(pokemon, MON_DATA_FRIENDSHIP) == 255) + return 6; + else if (GetMonData(pokemon, MON_DATA_FRIENDSHIP) >= 200) + return 5; + else if (GetMonData(pokemon, MON_DATA_FRIENDSHIP) >= 150) + return 4; + else if (GetMonData(pokemon, MON_DATA_FRIENDSHIP) >= 100) + return 3; + else if (GetMonData(pokemon, MON_DATA_FRIENDSHIP) >= 50) + return 2; + else if (GetMonData(pokemon, MON_DATA_FRIENDSHIP) > 0) + return 1; + else + return 0; +} + +void Special_TownMap(void) +{ + sub_8112364(); + sub_80BFF50(1, CB2_ReturnToFieldContinueScriptPlayMapMusic); +} + +bool8 Special_PlayerHasGrassPokemonInParty(void) +{ + u8 i; + struct Pokemon * pokemon; + u16 species; + + for (i = 0; i < PARTY_SIZE; i++) + { + pokemon = &gPlayerParty[i]; + if (GetMonData(pokemon, MON_DATA_SANITY_HAS_SPECIES) + && !GetMonData(pokemon, MON_DATA_IS_EGG) + ) + { + species = GetMonData(pokemon, MON_DATA_SPECIES); + if (gBaseStats[species].type1 == TYPE_GRASS || gBaseStats[species].type2 == TYPE_GRASS) + return TRUE; + } + } + return FALSE; +} + +void Special_AnimatePcTurnOn(void) +{ + u8 taskId; + + if (FuncIsActiveTask(Task_AnimatePcTurnOn) != TRUE) + { + taskId = CreateTask(Task_AnimatePcTurnOn, 8); + gTasks[taskId].data[0] = 0; + gTasks[taskId].data[1] = 0; + } +} + +static void Task_AnimatePcTurnOn(u8 taskId) +{ + s16 *data = gTasks[taskId].data; + if (data[1] == 6) + { + PcTurnOnUpdateMetatileId(data[0] & 1); + DrawWholeMapView(); + data[1] = 0; + data[0]++; + if (data[0] == 5) + DestroyTask(taskId); + } + data[1]++; +} + +static void PcTurnOnUpdateMetatileId(bool16 a0) +{ + u16 metatileId = 0; + s8 deltaX = 0; + s8 deltaY = 0; + u8 direction = GetPlayerFacingDirection(); + + switch (direction) + { + case DIR_NORTH: + deltaX = 0; + deltaY = -1; + break; + case DIR_WEST: + deltaX = -1; + deltaY = -1; + break; + case DIR_EAST: + deltaX = 1; + deltaY = -1; + break; + } + if (a0) + { + if (gSpecialVar_0x8004 == 0) + metatileId = 0x62; + else if (gSpecialVar_0x8004 == 1) + metatileId = 0x28F; + else if (gSpecialVar_0x8004 == 2) + metatileId = 0x28F; + } + else + { + if (gSpecialVar_0x8004 == 0) + metatileId = 0x63; + else if (gSpecialVar_0x8004 == 1) + metatileId = 0x28A; + else if (gSpecialVar_0x8004 == 2) + metatileId = 0x28A; + } + MapGridSetMetatileIdAt(gSaveBlock1Ptr->pos.x + deltaX + 7, gSaveBlock1Ptr->pos.y + deltaY + 7, metatileId | 0xC00); +} + +void Special_AnimatePcTurnOff() +{ + u16 metatileId = 0; + s8 deltaX = 0; + s8 deltaY = 0; + u8 direction = GetPlayerFacingDirection(); + + switch (direction) + { + case DIR_NORTH: + deltaX = 0; + deltaY = -1; + break; + case DIR_WEST: + deltaX = -1; + deltaY = -1; + break; + case DIR_EAST: + deltaX = 1; + deltaY = -1; + break; + } + if (gSpecialVar_0x8004 == 0) + metatileId = 0x62; + else if (gSpecialVar_0x8004 == 1) + metatileId = 0x28F; + else if (gSpecialVar_0x8004 == 2) + metatileId = 0x28F; + MapGridSetMetatileIdAt(gSaveBlock1Ptr->pos.x + deltaX + 7, gSaveBlock1Ptr->pos.y + deltaY + 7, metatileId | 0xC00); + DrawWholeMapView(); +} + +void SpawnCameraObject(void) +{ + u8 mapObjectId = SpawnSpecialFieldObjectParameterized(MAP_OBJ_GFX_YOUNGSTER, 8, 127, gSaveBlock1Ptr->pos.x + 7, gSaveBlock1Ptr->pos.y + 7, 3); + gMapObjects[mapObjectId].mapobj_bit_13 = TRUE; + CameraObjectSetFollowedObjectId(gMapObjects[mapObjectId].spriteId); +} + +void RemoveCameraObject(void) +{ + CameraObjectSetFollowedObjectId(GetPlayerAvatarObjectId()); + RemoveFieldObjectByLocalIdAndMap(127, gSaveBlock1Ptr->location.mapNum, gSaveBlock1Ptr->location.mapGroup); +} + +void Special_BufferEReaderTrainerName5(void) +{ + CopyEReaderTrainerName5(gStringVar1); +} + +static const u8 sUnused_83F5B04[] = { + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 12, + 2, + 4, + 5, + 1, + 8, + 7, + 11, + 3, + 10, + 9, + 6 +}; + +static const u8 sSlotMachineIndices[] = { + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 2, + 2, + 2, + 3, + 3, + 3, + 4, + 4, + 5 +}; + +u8 Special_GetRandomSlotMachine(void) +{ + u16 rval = Random() % NELEMS(sSlotMachineIndices); + return sSlotMachineIndices[rval]; +} + +bool8 LeadMonHasEffortRibbon(void) +{ + u8 leadMonIdx = GetLeadMonIndex(); + return GetMonData(&gPlayerParty[leadMonIdx], MON_DATA_EFFORT_RIBBON, NULL); +} + +void GiveLeadMonEffortRibbon(void) +{ + u8 leadMonIdx; + bool8 param; + IncrementGameStat(GAME_STAT_RECEIVED_RIBBONS); + FlagSet(FLAG_SYS_RIBBON_GET); + param = TRUE; + leadMonIdx = GetLeadMonIndex(); + SetMonData(&gPlayerParty[leadMonIdx], MON_DATA_EFFORT_RIBBON, ¶m); +} + +bool8 ScrSpecial_AreLeadMonEVsMaxedOut(void) +{ + u8 leadMonIndex = GetLeadMonIndex(); + if (GetMonEVCount(&gPlayerParty[leadMonIndex]) >= 510) + return TRUE; + else + return FALSE; +} + +bool8 Special_IsStarterFirstStageInParty(void) +{ + u16 species = GetStarterPokemon(VarGet(VAR_STARTER_MON)); + u8 partyCount = CalculatePlayerPartyCount(); + u8 i; + for (i = 0; i < partyCount; i++) + { + if (GetMonData(&gPlayerParty[i], MON_DATA_SPECIES2, NULL) == species) + return TRUE; + } + return FALSE; +} + +bool8 Special_IsThereRoomInAnyBoxForMorePokemon(void) +{ + u16 i; + u16 j; + for (i = 0; i < TOTAL_BOXES_COUNT; i++) + { + for (j = 0; j < IN_BOX_COUNT; j++) + { + if (GetBoxMonDataFromAnyBox(i, j, MON_DATA_SPECIES) == SPECIES_NONE) + return TRUE; + } + } + return FALSE; +} + +bool8 Special_CheckPartyPokerus(void) +{ + if (!CheckPartyPokerus(gPlayerParty, 0x3F)) + return FALSE; + else + return TRUE; +} + +#define tXtrans data[0] +#define tTimer data[1] +#define tNremain data[2] +#define tDuration data[3] +#define tYtrans data[4] + +void Special_ShakeScreen(void) +{ + /* + * 0x8004 = x translation + * 0x8005 = y translation + * 0x8006 = num interations + * 0x8007 = duration of an iteration + */ + u8 taskId = CreateTask(Task_ShakeScreen, 9); + gTasks[taskId].tXtrans = gSpecialVar_0x8005; + gTasks[taskId].tTimer = 0; + gTasks[taskId].tNremain = gSpecialVar_0x8006; + gTasks[taskId].tDuration = gSpecialVar_0x8007; + gTasks[taskId].tYtrans = gSpecialVar_0x8004; + SetCameraPanningCallback(NULL); + PlaySE(SE_W070); +} + +static void Task_ShakeScreen(u8 taskId) +{ + s16 *data = gTasks[taskId].data; + tTimer++; + if (tTimer % tDuration == 0) + { + tTimer = 0; + tNremain--; + tXtrans = -tXtrans; + tYtrans = -tYtrans; + SetCameraPanning(tXtrans, tYtrans); + if (tNremain == 0) + { + Task_EndScreenShake(taskId); + InstallCameraPanAheadCallback(); + } + } +} + +static void Task_EndScreenShake(u8 taskId) +{ + DestroyTask(taskId); + EnableBothScriptContexts(); +} + +#undef tYtrans +#undef tDuration +#undef tNremain +#undef tTimer +#undef tXtrans + +u8 GetLeadMonIndex(void) +{ + u8 partyCount = CalculatePlayerPartyCount(); + u8 i; + struct Pokemon * pokemon; + for (i = 0; i < partyCount; i++) + { + pokemon = &gPlayerParty[i]; + if (GetMonData(pokemon, MON_DATA_SPECIES2, NULL) != SPECIES_EGG && GetMonData(pokemon, MON_DATA_SPECIES2, NULL) != SPECIES_NONE) + return i; + } + return 0; +} + +u16 Special_GetSpeciesOfPartySlot_x8004(void) +{ + return GetMonData(&gPlayerParty[gSpecialVar_0x8004], MON_DATA_SPECIES2, NULL); +} + +bool8 Special_BufferMonOTNameAndCompareToPlayerName(void) +{ + GetMonData(&gPlayerParty[gSpecialVar_0x8004], MON_DATA_OT_NAME, gStringVar1); + if (!StringCompare(gSaveBlock2Ptr->playerName, gStringVar1)) + return FALSE; + else + return TRUE; +} + +void nullsub_75(void) +{ + +} + +void sub_80CADC4(void) +{ + u8 t = EOS; + AddTextPrinterParameterized(0, 2, &t, 0, 1, 0, NULL); + sub_809D424(); +} + +void Special_SetVermilionTrashCans(void) +{ + u16 idx = (Random() % 15) + 1; + gSpecialVar_0x8004 = idx; + gSpecialVar_0x8005 = idx; + switch (gSpecialVar_0x8004) + { + case 1: + idx = Random() % 2; + if (idx == 0) + gSpecialVar_0x8005 += 1; + else + gSpecialVar_0x8005 += 5; + break; + case 2: + case 3: + case 4: + idx = Random() % 3; + if (idx == 0) + gSpecialVar_0x8005 += 1; + else if (idx == 1) + gSpecialVar_0x8005 += 5; + else + gSpecialVar_0x8005 -= 1; + break; + case 5: + idx = Random() % 2; + if (idx == 0) + gSpecialVar_0x8005 += 5; + else + gSpecialVar_0x8005 -= 1; + break; + case 6: + idx = Random() % 3; + if (idx == 0) + gSpecialVar_0x8005 -= 5; + else if (idx == 1) + gSpecialVar_0x8005 += 1; + else + gSpecialVar_0x8005 += 5; + break; + case 7: + case 8: + case 9: + idx = Random() % 4; + if (idx == 0) + gSpecialVar_0x8005 -= 5; + else if (idx == 1) + gSpecialVar_0x8005 += 1; + else if (idx == 2) + gSpecialVar_0x8005 += 5; + else + gSpecialVar_0x8005 -= 1; + break; + case 10: + idx = Random() % 3; + if (idx == 0) + gSpecialVar_0x8005 -= 5; + else if (idx == 1) + gSpecialVar_0x8005 += 5; + else + gSpecialVar_0x8005 -= 1; + break; + case 11: + idx = Random() % 2; + if (idx == 0) + gSpecialVar_0x8005 -= 5; + else + gSpecialVar_0x8005 += 1; + break; + case 12: + case 13: + case 14: + idx = Random() % 3; + if (idx == 0) + gSpecialVar_0x8005 -= 5; + else if (idx == 1) + gSpecialVar_0x8005 += 1; + else + gSpecialVar_0x8005 -= 1; + break; + case 15: + idx = Random() % 2; + if (idx == 0) + gSpecialVar_0x8005 -= 5; + else + gSpecialVar_0x8005 -= 1; + break; + } + if (gSpecialVar_0x8005 > 15) + { + if (gSpecialVar_0x8004 % 5 == 1) + gSpecialVar_0x8005 = gSpecialVar_0x8004 + 1; + else if (gSpecialVar_0x8004 % 5 == 0) + gSpecialVar_0x8005 = gSpecialVar_0x8004 - 1; + else + gSpecialVar_0x8005 = gSpecialVar_0x8004 + 1; + } +} + +static const u16 sResortGorgeousDeluxeRewards[] = { + ITEM_BIG_PEARL, + ITEM_PEARL, + ITEM_STARDUST, + ITEM_STAR_PIECE, + ITEM_NUGGET, + ITEM_RARE_CANDY +}; + +void IncrementResortGorgeousStepCounter(void) +{ + u16 var4035 = VarGet(VAR_RESORT_GOREGEOUS_STEP_COUNTER); + if (VarGet(VAR_RESORT_GORGEOUS_REQUESTED_MON) != SPECIES_NONE) + { + var4035++; + if (var4035 >= 250) + { + VarSet(VAR_RESORT_GORGEOUS_REQUESTED_MON, 0xFFFF); + VarSet(VAR_RESORT_GOREGEOUS_STEP_COUNTER, 0); + } + else + { + VarSet(VAR_RESORT_GOREGEOUS_STEP_COUNTER, var4035); + } + } +} + +void Special_SampleResortGorgeousMonAndReward(void) +{ + u16 var4036 = VarGet(VAR_RESORT_GORGEOUS_REQUESTED_MON); + if (var4036 == SPECIES_NONE || var4036 == 0xFFFF) + { + VarSet(VAR_RESORT_GORGEOUS_REQUESTED_MON, SampleResortGorgeousMon()); + VarSet(VAR_RESORT_GORGEOUS_REWARD, SampleResortGorgeousReward()); + VarSet(VAR_RESORT_GOREGEOUS_STEP_COUNTER, 0); + } + StringCopy(gStringVar1, gSpeciesNames[VarGet(VAR_RESORT_GORGEOUS_REQUESTED_MON)]); +} + +static u16 SampleResortGorgeousMon(void) +{ + u16 i; + u16 species; + for (i = 0; i < 100; i++) + { + species = (Random() % (NUM_SPECIES - 1)) + 1; + if (GetSetPokedexFlag(SpeciesToNationalPokedexNum(species), 0) == TRUE) + return species; + } + while (GetSetPokedexFlag(SpeciesToNationalPokedexNum(species), 0) != TRUE) + { + if (species == SPECIES_BULBASAUR) + species = NUM_SPECIES - 1; + else + species--; + } + return species; +} + +static u16 SampleResortGorgeousReward(void) +{ + if ((Random() % 100) >= 30) + return ITEM_LUXURY_BALL; + else + return sResortGorgeousDeluxeRewards[Random() % NELEMS(sResortGorgeousDeluxeRewards)]; +} + +bool8 Special_CheckAddCoins(void) +{ + if (gSpecialVar_Result + gSpecialVar_0x8006 > 9999) + return FALSE; + else + return TRUE; +} + +static const struct WindowTemplate sElevatorCurrentFloorWindowTemplate = { + .bg = 0, + .tilemapLeft = 22, + .tilemapTop = 1, + .width = 7, + .height = 4, + .paletteNum = 0xF, + .baseBlock = 0x008 +}; + +static const u8 *const sFloorNamePointers[] = { + gText_B4F, + gText_B3F, + gText_B2F, + gText_B1F, + gText_1F, + gText_2F, + gText_3F, + gText_4F, + gText_5F, + gText_6F, + gText_7F, + gText_8F, + gText_9F, + gText_10F, + gText_11F, + gText_Rooftop +}; + +static const u8 sUnused_83F5B84[] = { + 26, + 26, + 26, + 26, + 30, + 30, + 30, + 30, + 30, + 30, + 30, + 30, + 30, + 26, + 26, + 18 +}; + +static const u16 sElevatorWindowMetatilesGoingUp[][3] = { + {0x2e8, 0x2e9, 0x2ea}, + {0x2f0, 0x2f1, 0x2f2}, + {0x2f8, 0x2f9, 0x2fa} +}; + +static const u16 sElevatorWindowMetatilesGoingDown[][3] = { + {0x2e8, 0x2ea, 0x2e9}, + {0x2f0, 0x2f2, 0x2f1}, + {0x2f8, 0x2fa, 0x2f9} +}; + +static const u8 sElevatorAnimationDuration[] = { + 8, + 16, + 24, + 32, + 38, + 46, + 53, + 56, + 57 +}; + +static const u8 sElevatorWindowAnimDuration[] = { + 3, + 6, + 9, + 12, + 15, + 18, + 21, + 24, + 27 +}; + +void Special_GetElevatorFloor(void) +{ + u16 floor = 4; + if (gSaveBlock1Ptr->warp2.mapGroup == MAP_GROUP(ROCKET_HIDEOUT_B1F)) + { + switch (gSaveBlock1Ptr->warp2.mapNum) + { + case MAP_NUM(SILPH_CO_1F): + floor = 4; + break; + case MAP_NUM(SILPH_CO_2F): + floor = 5; + break; + case MAP_NUM(SILPH_CO_3F): + floor = 6; + break; + case MAP_NUM(SILPH_CO_4F): + floor = 7; + break; + case MAP_NUM(SILPH_CO_5F): + floor = 8; + break; + case MAP_NUM(SILPH_CO_6F): + floor = 9; + break; + case MAP_NUM(SILPH_CO_7F): + floor = 10; + break; + case MAP_NUM(SILPH_CO_8F): + floor = 11; + break; + case MAP_NUM(SILPH_CO_9F): + floor = 12; + break; + case MAP_NUM(SILPH_CO_10F): + floor = 13; + break; + case MAP_NUM(SILPH_CO_11F): + floor = 14; + break; + case MAP_NUM(ROCKET_HIDEOUT_B1F): + floor = 3; + break; + case MAP_NUM(ROCKET_HIDEOUT_B2F): + floor = 2; + break; + case MAP_NUM(ROCKET_HIDEOUT_B4F): + floor = 0; + break; + } + } + if (gSaveBlock1Ptr->warp2.mapGroup == MAP_GROUP(CELADON_CITY_DEPARTMENT_STORE_1F)) + { + switch (gSaveBlock1Ptr->warp2.mapNum) + { + case MAP_NUM(CELADON_CITY_DEPARTMENT_STORE_1F): + floor = 4; + break; + case MAP_NUM(CELADON_CITY_DEPARTMENT_STORE_2F): + floor = 5; + break; + case MAP_NUM(CELADON_CITY_DEPARTMENT_STORE_3F): + floor = 6; + break; + case MAP_NUM(CELADON_CITY_DEPARTMENT_STORE_4F): + floor = 7; + break; + case MAP_NUM(CELADON_CITY_DEPARTMENT_STORE_5F): + floor = 8; + break; + } + } + if (gSaveBlock1Ptr->warp2.mapGroup == MAP_GROUP(SEVEN_ISLAND_TRAINER_TOWER_1F)) + { + switch (gSaveBlock1Ptr->warp2.mapNum) + { + case MAP_NUM(SEVEN_ISLAND_TRAINER_TOWER_1F): + case MAP_NUM(SEVEN_ISLAND_TRAINER_TOWER_2F): + case MAP_NUM(SEVEN_ISLAND_TRAINER_TOWER_3F): + case MAP_NUM(SEVEN_ISLAND_TRAINER_TOWER_4F): + case MAP_NUM(SEVEN_ISLAND_TRAINER_TOWER_5F): + case MAP_NUM(SEVEN_ISLAND_TRAINER_TOWER_6F): + case MAP_NUM(SEVEN_ISLAND_TRAINER_TOWER_7F): + case MAP_NUM(SEVEN_ISLAND_TRAINER_TOWER_8F): + case MAP_NUM(SEVEN_ISLAND_TRAINER_TOWER_ROOF): + floor = 15; + break; + case MAP_NUM(SEVEN_ISLAND_TRAINER_TOWER_LOBBY): + floor = 3; + break; + } + } + VarSet(VAR_ELEVATOR_FLOOR, floor); +} + +u16 Special_InitElevatorFloorSelectMenuPos(void) +{ + sElevatorScroll = 0; + sElevatorCursorPos = 0; + + if (gSaveBlock1Ptr->warp2.mapGroup == MAP_GROUP(ROCKET_HIDEOUT_B1F)) + { + switch (gSaveBlock1Ptr->warp2.mapNum) + { + case MAP_NUM(SILPH_CO_11F): + sElevatorScroll = 0; + sElevatorCursorPos = 0; + break; + case MAP_NUM(SILPH_CO_10F): + sElevatorScroll = 0; + sElevatorCursorPos = 1; + break; + case MAP_NUM(SILPH_CO_9F): + sElevatorScroll = 0; + sElevatorCursorPos = 2; + break; + case MAP_NUM(SILPH_CO_8F): + sElevatorScroll = 0; + sElevatorCursorPos = 3; + break; + case MAP_NUM(SILPH_CO_7F): + sElevatorScroll = 0; + sElevatorCursorPos = 4; + break; + case MAP_NUM(SILPH_CO_6F): + sElevatorScroll = 1; + sElevatorCursorPos = 4; + break; + case MAP_NUM(SILPH_CO_5F): + sElevatorScroll = 2; + sElevatorCursorPos = 4; + break; + case MAP_NUM(SILPH_CO_4F): + sElevatorScroll = 3; + sElevatorCursorPos = 4; + break; + case MAP_NUM(SILPH_CO_3F): + sElevatorScroll = 4; + sElevatorCursorPos = 4; + break; + case MAP_NUM(SILPH_CO_2F): + sElevatorScroll = 5; + sElevatorCursorPos = 4; + break; + case MAP_NUM(SILPH_CO_1F): + sElevatorScroll = 5; + sElevatorCursorPos = 5; + break; + case MAP_NUM(ROCKET_HIDEOUT_B1F): + sElevatorScroll = 0; + sElevatorCursorPos = 0; + break; + case MAP_NUM(ROCKET_HIDEOUT_B2F): + sElevatorScroll = 0; + sElevatorCursorPos = 1; + break; + case MAP_NUM(ROCKET_HIDEOUT_B4F): + sElevatorScroll = 0; + sElevatorCursorPos = 2; + break; + } + } + if (gSaveBlock1Ptr->warp2.mapGroup == MAP_GROUP(CELADON_CITY_DEPARTMENT_STORE_1F)) + { + switch (gSaveBlock1Ptr->warp2.mapNum) + { + case MAP_NUM(CELADON_CITY_DEPARTMENT_STORE_5F): + sElevatorScroll = 0; + sElevatorCursorPos = 0; + break; + case MAP_NUM(CELADON_CITY_DEPARTMENT_STORE_4F): + sElevatorScroll = 0; + sElevatorCursorPos = 1; + break; + case MAP_NUM(CELADON_CITY_DEPARTMENT_STORE_3F): + sElevatorScroll = 0; + sElevatorCursorPos = 2; + break; + case MAP_NUM(CELADON_CITY_DEPARTMENT_STORE_2F): + sElevatorScroll = 0; + sElevatorCursorPos = 3; + break; + case MAP_NUM(CELADON_CITY_DEPARTMENT_STORE_1F): + sElevatorScroll = 0; + sElevatorCursorPos = 4; + break; + } + } + if (gSaveBlock1Ptr->warp2.mapGroup == MAP_GROUP(SEVEN_ISLAND_TRAINER_TOWER_1F)) + { + switch (gSaveBlock1Ptr->warp2.mapNum) + { + case MAP_NUM(SEVEN_ISLAND_TRAINER_TOWER_1F): + case MAP_NUM(SEVEN_ISLAND_TRAINER_TOWER_2F): + case MAP_NUM(SEVEN_ISLAND_TRAINER_TOWER_3F): + case MAP_NUM(SEVEN_ISLAND_TRAINER_TOWER_4F): + case MAP_NUM(SEVEN_ISLAND_TRAINER_TOWER_5F): + case MAP_NUM(SEVEN_ISLAND_TRAINER_TOWER_6F): + case MAP_NUM(SEVEN_ISLAND_TRAINER_TOWER_7F): + case MAP_NUM(SEVEN_ISLAND_TRAINER_TOWER_8F): + case MAP_NUM(SEVEN_ISLAND_TRAINER_TOWER_ROOF): + sElevatorScroll = 0; + sElevatorCursorPos = 0; + break; + case MAP_NUM(SEVEN_ISLAND_TRAINER_TOWER_LOBBY): + sElevatorScroll = 0; + sElevatorCursorPos = 1; + break; + } + } + return sElevatorCursorPos; +} + +void Special_AnimateElevator(void) +{ + u16 nfloors; + s16 *data = gTasks[CreateTask(Task_ElevatorShake, 9)].data; + data[1] = 0; + data[2] = 0; + data[4] = 1; + if (gSpecialVar_0x8005 > gSpecialVar_0x8006) + { + nfloors = gSpecialVar_0x8005 - gSpecialVar_0x8006; + data[6] = 1; + } + else + { + nfloors = gSpecialVar_0x8006 - gSpecialVar_0x8005; + data[6] = 0; + } + if (nfloors > 8) + nfloors = 8; + data[5] = sElevatorAnimationDuration[nfloors]; + SetCameraPanningCallback(NULL); + AnimateElevatorWindowView(nfloors, data[6]); + PlaySE(SE_ELEBETA); +} + +static void Task_ElevatorShake(u8 taskId) +{ + s16 *data = gTasks[taskId].data; + data[1]++; + if ((data[1] % 3) == 0) + { + data[1] = 0; + data[2]++; + data[4] = -data[4]; + SetCameraPanning(0, data[4]); + if (data[2] == data[5]) + { + PlaySE(SE_PINPON); + DestroyTask(taskId); + EnableBothScriptContexts(); + InstallCameraPanAheadCallback(); + } + } +} + +void Special_DrawElevatorCurrentFloorWindow(void) +{ + const u8 *floorname; + u32 strwidth; + if (QuestLog_SchedulePlaybackCB(QLPlaybackCB_DestroyScriptMenuMonPicSprites) != TRUE) + { + sElevatorCurrentFloorWindowId = AddWindow(&sElevatorCurrentFloorWindowTemplate); + TextWindow_SetStdFrame0_WithPal(sElevatorCurrentFloorWindowId, 0x21D, 0xD0); + DrawStdFrameWithCustomTileAndPalette(sElevatorCurrentFloorWindowId, FALSE, 0x21D, 0xD); + AddTextPrinterParameterized(sElevatorCurrentFloorWindowId, 2, gText_NowOn, 0, 2, 0xFF, NULL); + floorname = sFloorNamePointers[gSpecialVar_0x8005]; + strwidth = GetStringWidth(2, floorname, 0); + AddTextPrinterParameterized(sElevatorCurrentFloorWindowId, 2, floorname, 56 - strwidth, 16, 0xFF, NULL); + PutWindowTilemap(sElevatorCurrentFloorWindowId); + CopyWindowToVram(sElevatorCurrentFloorWindowId, 3); + } +} + +void Special_CloseElevatorCurrentFloorWindow(void) +{ + ClearStdWindowAndFrameToTransparent(sElevatorCurrentFloorWindowId, TRUE); + RemoveWindow(sElevatorCurrentFloorWindowId); +} + +static void AnimateElevatorWindowView(u16 nfloors, u8 direction) +{ + u8 taskId; + if (FuncIsActiveTask(Task_AnimateElevatorWindowView) != TRUE) + { + taskId = CreateTask(Task_AnimateElevatorWindowView, 8); + gTasks[taskId].data[0] = 0; + gTasks[taskId].data[1] = 0; + gTasks[taskId].data[2] = direction; + gTasks[taskId].data[3] = sElevatorWindowAnimDuration[nfloors]; + } +} + +static void Task_AnimateElevatorWindowView(u8 taskId) +{ + u8 i; + u8 j; + s16 *data = gTasks[taskId].data; + if (data[1] == 6) + { + data[0]++; + if (data[2] == 0) + { + for (i = 0; i < 3; i++) + { + for (j = 0; j < 3; j++) + { + MapGridSetMetatileIdAt(j + 8, i + 7, sElevatorWindowMetatilesGoingUp[i][data[0] % 3] | 0xC00); + } + } + } + else + { + for (i = 0; i < 3; i++) + { + for (j = 0; j < 3; j++) + { + MapGridSetMetatileIdAt(j + 8, i + 7, sElevatorWindowMetatilesGoingDown[i][data[0] % 3] | 0xC00); + } + } + } + DrawWholeMapView(); + data[1] = 0; + if (data[0] == data[3]) + DestroyTask(taskId); + } + data[1]++; +} + +void Special_ListMenu(void) +{ + u8 taskId; + struct Task * task; + if (QuestLog_SchedulePlaybackCB(QLPlaybackCB_DestroyScriptMenuMonPicSprites) != TRUE) + { + taskId = CreateTask(Task_CreateScriptListMenu, 8); + task = &gTasks[taskId]; + switch (gSpecialVar_0x8004) + { + case 0: + task->data[0] = 4; + task->data[1] = 9; + task->data[2] = 1; + task->data[3] = 1; + task->data[4] = 12; + task->data[5] = 7; + task->data[6] = 1; + task->data[15] = taskId; + break; + case 1: + task->data[0] = 7; + task->data[1] = 12; + task->data[2] = 1; + task->data[3] = 1; + task->data[4] = 8; + task->data[5] = 12; + task->data[6] = 0; + task->data[15] = taskId; + task->data[7] = sElevatorScroll; + task->data[8] = sElevatorCursorPos; + break; + case 2: + task->data[0] = 4; + task->data[1] = 4; + task->data[2] = 1; + task->data[3] = 1; + task->data[4] = 8; + task->data[5] = 8; + task->data[6] = 0; + task->data[15] = taskId; + break; + case 3: + task->data[0] = 4; + task->data[1] = 6; + task->data[2] = 1; + task->data[3] = 1; + task->data[4] = 8; + task->data[5] = 8; + task->data[6] = 0; + task->data[15] = taskId; + break; + case 4: + task->data[0] = 4; + task->data[1] = 4; + task->data[2] = 1; + task->data[3] = 1; + task->data[4] = 17; + task->data[5] = 8; + task->data[6] = 1; + task->data[15] = taskId; + break; + case 5: + task->data[0] = 7; + task->data[1] = 12; + task->data[2] = 16; + task->data[3] = 1; + task->data[4] = 17; + task->data[5] = 12; + task->data[6] = 0; + task->data[15] = taskId; + break; + case 6: + task->data[0] = 3; + task->data[1] = 3; + task->data[2] = 1; + task->data[3] = 1; + task->data[4] = 8; + task->data[5] = 6; + task->data[6] = 0; + task->data[15] = taskId; + break; + case 99: + break; + default: + gSpecialVar_Result = 0x7F; + DestroyTask(taskId); + break; + } + } +} + +static const u8 *const sListMenuLabels[][12] = { + { + gText_BoulderBadge, + gText_CascadeBadge, + gText_ThunderBadge, + gText_RainbowBadge, + gText_SoulBadge, + gText_MarshBadge, + gText_VolcanoBadge, + gText_EarthBadge, + gOtherText_Exit, + }, { + gText_11F, + gText_10F, + gText_9F, + gText_8F, + gText_7F, + gText_6F, + gText_5F, + gText_4F, + gText_3F, + gText_2F, + gText_1F, + gOtherText_Exit, + }, { + gText_B1F, + gText_B2F, + gText_B4F, + gOtherText_Exit, + }, { + gText_5F, + gText_4F, + gText_3F, + gText_2F, + gText_1F, + gOtherText_Exit, + }, { + gText_LinkedGamePlay, + gText_DirectCorner, + gText_UnionRoom, + gOtherText_Quit, + }, { + gText_Energypowder_50, + gText_EnergyRoot_80, + gText_HealPowder_50, + gText_RevivalHerb_300, + gText_Protein_1000, + gText_Iron_1000, + gText_Carbos_1000, + gText_Calcium_1000, + gText_Zinc_1000, + gText_HpUp_1000, + gText_PpUp_3000, + gOtherText_Exit, + }, { + gText_Rooftop, + gText_B1F, + gOtherText_Exit, + } +}; + +static void Task_CreateScriptListMenu(u8 taskId) +{ + struct WindowTemplate template; + u8 i; + s32 width; + s32 mwidth; + struct Task * task = &gTasks[taskId]; + u8 windowId; + ScriptContext2_Enable(); + if (gSpecialVar_0x8004 == 1) + sListMenuLastScrollPosition = sElevatorScroll; + else + sListMenuLastScrollPosition = 0; + sListMenuItems = AllocZeroed(task->data[1] * sizeof(struct ListMenuItem)); + CreateScriptListMenu(); + mwidth = 0; + for (i = 0; i < task->data[1]; i++) + { + sListMenuItems[i].label = sListMenuLabels[gSpecialVar_0x8004][i]; + sListMenuItems[i].index = i; + width = GetStringWidth(2, sListMenuItems[i].label, 0); + if (width > mwidth) + mwidth = width; + } + task->data[4] = (mwidth + 9) / 8 + 1; + if (task->data[2] + task->data[4] > 29) + task->data[2] = 29 - task->data[4]; + template = SetWindowTemplateFields(0, task->data[2], task->data[3], task->data[4], task->data[5], 15, 0x038); + task->data[13] = windowId = AddWindow(&template); + SetStdWindowBorderStyle(task->data[13], 0); + sFieldSpecialsListMenuTemplate.totalItems = task->data[1]; + sFieldSpecialsListMenuTemplate.maxShowed = task->data[0]; + sFieldSpecialsListMenuTemplate.windowId = task->data[13]; + Task_CreateMenuRemoveScrollIndicatorArrowPair(taskId); + task->data[14] = ListMenuInit(&sFieldSpecialsListMenuTemplate, task->data[7], task->data[8]); + PutWindowTilemap(task->data[13]); + CopyWindowToVram(task->data[13], 3); + gTasks[taskId].func = Task_ListMenuHandleInput; +} + +static void CreateScriptListMenu(void) +{ + sFieldSpecialsListMenuTemplate.items = sListMenuItems; + sFieldSpecialsListMenuTemplate.moveCursorFunc = ScriptListMenuMoveCursorFunction; + sFieldSpecialsListMenuTemplate.itemPrintFunc = NULL; + sFieldSpecialsListMenuTemplate.totalItems = 1; + sFieldSpecialsListMenuTemplate.maxShowed = 1; + sFieldSpecialsListMenuTemplate.windowId = 0; + sFieldSpecialsListMenuTemplate.header_X = 0; + sFieldSpecialsListMenuTemplate.item_X = 8; + sFieldSpecialsListMenuTemplate.cursor_X = 0; + sFieldSpecialsListMenuTemplate.upText_Y = 0; + sFieldSpecialsListMenuTemplate.cursorPal = 2; + sFieldSpecialsListMenuTemplate.fillValue = 1; + sFieldSpecialsListMenuTemplate.cursorShadowPal = 3; + sFieldSpecialsListMenuTemplate.lettersSpacing = 1; + sFieldSpecialsListMenuTemplate.itemVerticalPadding = 0; + sFieldSpecialsListMenuTemplate.scrollMultiple = 0; + sFieldSpecialsListMenuTemplate.fontId = 2; + sFieldSpecialsListMenuTemplate.cursorKind = 0; +} + +static void ScriptListMenuMoveCursorFunction(s32 nothing, bool8 is, struct ListMenu * used) +{ + u8 taskId; + struct Task * task; + PlaySE(SE_SELECT); + taskId = FindTaskIdByFunc(Task_ListMenuHandleInput); + if (taskId != 0xFF) + { + task = &gTasks[taskId]; + ListMenuGetScrollAndRow(task->data[14], &sFieldSpecialsListMenuScrollBuffer, NULL); + sListMenuLastScrollPosition = sFieldSpecialsListMenuScrollBuffer; + } +} + +static void Task_ListMenuHandleInput(u8 taskId) +{ + s32 input; + struct Task * task; + + task = &gTasks[taskId]; + task++;task--; + input = ListMenu_ProcessInput(task->data[14]); + switch (input) + { + case -1: + break; + case -2: + gSpecialVar_Result = 0x7F; + PlaySE(SE_SELECT); + Task_DestroyListMenu(taskId); + break; + default: + gSpecialVar_Result = input; + PlaySE(SE_SELECT); + if (task->data[6] == 0 || input == task->data[1] - 1) + { + Task_DestroyListMenu(taskId); + } + else + { + Task_ListMenuRemoveScrollIndicatorArrowPair(taskId); + task->func = Task_SuspendListMenu; + EnableBothScriptContexts(); + } + break; + } +} + +static void Task_DestroyListMenu(u8 taskId) +{ + struct Task * task = &gTasks[taskId]; + Task_ListMenuRemoveScrollIndicatorArrowPair(taskId); + DestroyListMenuTask(task->data[14], NULL, NULL); + Free(sListMenuItems); + ClearStdWindowAndFrameToTransparent(task->data[13], TRUE); + FillWindowPixelBuffer(task->data[13], PIXEL_FILL(0)); + ClearWindowTilemap(task->data[13]); + CopyWindowToVram(task->data[13], 2); + RemoveWindow(task->data[13]); + DestroyTask(taskId); + EnableBothScriptContexts(); +} + +static void Task_SuspendListMenu(u8 taskId) +{ + switch (gTasks[taskId].data[6]) + { + case 1: + break; + case 2: + gTasks[taskId].data[6] = 1; + gTasks[taskId].func = Task_RedrawScrollArrowsAndWaitInput; + break; + } +} + +void Special_ReturnToListMenu(void) +{ + u8 taskId = FindTaskIdByFunc(Task_SuspendListMenu); + if (taskId == 0xFF) + EnableBothScriptContexts(); + else + gTasks[taskId].data[6]++; +} + +static void Task_RedrawScrollArrowsAndWaitInput(u8 taskId) +{ + ScriptContext2_Enable(); + Task_CreateMenuRemoveScrollIndicatorArrowPair(taskId); + gTasks[taskId].func = Task_ListMenuHandleInput; +} + +static void Task_CreateMenuRemoveScrollIndicatorArrowPair(u8 taskId) +{ + struct Task * task = &gTasks[taskId]; + struct ScrollArrowsTemplate template = { + .firstArrowType = 2, + .secondArrowType = 3, + .tileTag = 2000, + .palTag = 100 + }; + if (task->data[0] != task->data[1]) + { + template.firstX = 4 * task->data[4] + 8 * task->data[2]; + template.firstY = 8; + template.secondX = 4 * task->data[4] + 8 * task->data[2]; + template.secondY = 8 * task->data[5] + 10; + template.fullyUpThreshold = 0; + template.fullyDownThreshold = task->data[1] - task->data[0]; + task->data[12] = AddScrollIndicatorArrowPair(&template, &sListMenuLastScrollPosition); + } +} + +static void Task_ListMenuRemoveScrollIndicatorArrowPair(u8 taskId) +{ + struct Task * task = &gTasks[taskId]; + if (task->data[0] != task->data[1]) + RemoveScrollIndicatorArrowPair(task->data[12]); +} + +void Special_ForcePlayerToStartSurfing(void) +{ + HelpSystem_SetSomeVariable2(22); + SetPlayerAvatarTransitionFlags(8); +} + +static const u16 sStarterMon[] = { + SPECIES_BULBASAUR, + SPECIES_SQUIRTLE, + SPECIES_CHARMANDER +}; + +static u16 GetStarterPokemon(u16 idx) +{ + if (idx >= NELEMS(sStarterMon)) + idx = 0; + return sStarterMon[idx]; +} + +u16 ScrSpecial_GetStarter(void) +{ + return GetStarterPokemon(VarGet(VAR_STARTER_MON)); +} + +void Special_SetSeenMon(void) +{ + GetSetPokedexFlag(SpeciesToNationalPokedexNum(gSpecialVar_0x8004), 2); +} + +void sub_80CBDE8(void) +{ + gSelectedEventObject = 0; + gSpecialVar_TextColor = 0xFF; +} + +u8 ContextNpcGetTextColor(void) +{ + u8 gfxId; + if (gSpecialVar_TextColor != 0xFF) + return gSpecialVar_TextColor; + else if (gSelectedEventObject == 0) + return 3; + else + { + gfxId = gMapObjects[gSelectedEventObject].graphicsId; + if (gfxId >= MAP_OBJ_GFX_VAR_0) + gfxId = VarGetFieldObjectGraphicsId(gfxId - MAP_OBJ_GFX_VAR_0); + return GetColorFromTextColorTable(gfxId); + } +} + +static bool8 HasMonBeenRenamed(u8 idx) +{ + struct Pokemon * pokemon = &gPlayerParty[idx]; + u8 language; + GetMonData(pokemon, MON_DATA_NICKNAME, gStringVar1); + language = GetMonData(pokemon, MON_DATA_LANGUAGE, &language); + if (language != LANGUAGE_ENGLISH) + return TRUE; + else if (StringCompare(gSpeciesNames[GetMonData(pokemon, MON_DATA_SPECIES, NULL)], gStringVar1) != 0) + return TRUE; + else + return FALSE; +} + +bool8 Special_HasLeadMonBeenRenamed(void) +{ + return HasMonBeenRenamed(GetLeadMonIndex()); +} + +void TV_PrintIntToStringVar(u8 varidx, s32 number) +{ + s32 n = CountDigits(number); + ConvertIntToDecimalStringN(sStringVarPtrs[varidx], number, STR_CONV_MODE_LEFT_ALIGN, n); +} + +s32 CountDigits(s32 number) +{ + if (number / 10 == 0) + return 1; + else if (number / 100 == 0) + return 2; + else if (number / 1000 == 0) + return 3; + else if (number / 10000 == 0) + return 4; + else if (number / 100000 == 0) + return 5; + else if (number / 1000000 == 0) + return 6; + else if (number / 10000000 == 0) + return 7; + else if (number / 100000000 == 0) + return 8; + else + return 1; +} + +bool8 NameRaterWasNicknameChanged(void) +{ + struct Pokemon * pokemon = &gPlayerParty[gSpecialVar_0x8004]; + GetMonData(pokemon, MON_DATA_NICKNAME, gStringVar1); + if (StringCompare(gStringVar3, gStringVar1) == 0) + return FALSE; + else + return TRUE; +} + +void ChangeBoxPokemonNickname(void) +{ + struct BoxPokemon * pokemon = GetBoxedMonPtr(gSpecialVar_MonBoxId, gSpecialVar_MonBoxPos); + u16 species; + u8 gender; + u32 personality; + + + GetBoxMonData(pokemon, MON_DATA_NICKNAME, gStringVar3); + GetBoxMonData(pokemon, MON_DATA_NICKNAME, gStringVar2); + species = GetBoxMonData(pokemon, MON_DATA_SPECIES, NULL); + gender = GetBoxMonGender(pokemon); + personality = GetBoxMonData(pokemon, MON_DATA_PERSONALITY, NULL); + DoNamingScreen(3, gStringVar2, species, gender, personality, ChangeBoxPokemonNickname_CB); +} + +static void ChangeBoxPokemonNickname_CB(void) +{ + SetBoxMonNickFromAnyBox(gSpecialVar_MonBoxId, gSpecialVar_MonBoxPos, gStringVar2); + CB2_ReturnToFieldContinueScriptPlayMapMusic(); +} + +void ChangePokemonNickname(void) +{ + u16 species; + u8 gender; + u32 personality; + + GetMonData(&gPlayerParty[gSpecialVar_0x8004], MON_DATA_NICKNAME, gStringVar3); + GetMonData(&gPlayerParty[gSpecialVar_0x8004], MON_DATA_NICKNAME, gStringVar2); + species = GetMonData(&gPlayerParty[gSpecialVar_0x8004], MON_DATA_SPECIES, NULL); + gender = GetMonGender(&gPlayerParty[gSpecialVar_0x8004]); + personality = GetMonData(&gPlayerParty[gSpecialVar_0x8004], MON_DATA_PERSONALITY, NULL); + DoNamingScreen(3, gStringVar2, species, gender, personality, ChangePokemonNickname_CB); +} + +static void ChangePokemonNickname_CB(void) +{ + SetMonData(&gPlayerParty[gSpecialVar_0x8004], MON_DATA_NICKNAME, gStringVar2); + CB2_ReturnToFieldContinueScriptPlayMapMusic(); +} + +void TV_CopyNicknameToStringVar1AndEnsureTerminated(void) +{ + GetMonData(&gPlayerParty[gSpecialVar_0x8004], MON_DATA_NICKNAME, gStringVar1); + StringGetEnd10(gStringVar1); +} + +void TV_CheckMonOTIDEqualsPlayerID(void) +{ + if (GetPlayerTrainerId() == GetMonData(&gPlayerParty[gSpecialVar_0x8004], MON_DATA_OT_ID, NULL)) + gSpecialVar_Result = FALSE; + else + gSpecialVar_Result = TRUE; +} + +u32 GetPlayerTrainerId(void) +{ + return (gSaveBlock2Ptr->playerTrainerId[3] << 24) | (gSaveBlock2Ptr->playerTrainerId[2] << 16) | (gSaveBlock2Ptr->playerTrainerId[1] << 8) | gSaveBlock2Ptr->playerTrainerId[0]; +} + +u8 GetUnlockedSeviiAreas(void) +{ + u8 result = 0; + if (FlagGet(FLAG_WORLD_MAP_ONE_ISLAND) == TRUE) + result |= 1 << 0; + if (FlagGet(FLAG_WORLD_MAP_TWO_ISLAND) == TRUE) + result |= 1 << 1; + if (FlagGet(FLAG_WORLD_MAP_THREE_ISLAND) == TRUE) + result |= 1 << 2; + if (FlagGet(FLAG_WORLD_MAP_FOUR_ISLAND) == TRUE) + result |= 1 << 3; + if (FlagGet(FLAG_WORLD_MAP_FIVE_ISLAND) == TRUE) + result |= 1 << 4; + if (FlagGet(FLAG_WORLD_MAP_SIX_ISLAND) == TRUE) + result |= 1 << 5; + if (FlagGet(FLAG_WORLD_MAP_SEVEN_ISLAND) == TRUE) + result |= 1 << 6; + return result; +} + +void Special_UpdateTrainerCardPhotoIcons(void) +{ + u16 species[PARTY_SIZE]; + u32 personality[PARTY_SIZE]; + u8 i; + u8 partyCount; + for (i = 0; i < PARTY_SIZE; i++) + species[i] = SPECIES_NONE; + partyCount = CalculatePlayerPartyCount(); + for (i = 0; i < partyCount; i++) + { + species[i] = GetMonData(&gPlayerParty[i], MON_DATA_SPECIES2, NULL); + personality[i] = GetMonData(&gPlayerParty[i], MON_DATA_PERSONALITY, NULL); + } + VarSet(VAR_TRAINER_CARD_MON_ICON_1, SpeciesToMailSpecies(species[0], personality[0])); + VarSet(VAR_TRAINER_CARD_MON_ICON_2, SpeciesToMailSpecies(species[1], personality[1])); + VarSet(VAR_TRAINER_CARD_MON_ICON_3, SpeciesToMailSpecies(species[2], personality[2])); + VarSet(VAR_TRAINER_CARD_MON_ICON_4, SpeciesToMailSpecies(species[3], personality[3])); + VarSet(VAR_TRAINER_CARD_MON_ICON_5, SpeciesToMailSpecies(species[4], personality[4])); + VarSet(VAR_TRAINER_CARD_MON_ICON_6, SpeciesToMailSpecies(species[5], personality[5])); + VarSet(VAR_TRAINER_CARD_MON_ICON_TINT_IDX, gSpecialVar_0x8004); +} + +u16 Special_StickerLadyGetBragFlags(void) +{ + u16 result = 0; + u32 numEggs; + gSpecialVar_0x8004 = GetGameStat(GAME_STAT_ENTERED_HOF); + numEggs = GetGameStat(GAME_STAT_HATCHED_EGGS); + gSpecialVar_0x8006 = GetGameStat(GAME_STAT_LINK_BATTLE_WINS); + if (numEggs > 0xFFFF) + gSpecialVar_0x8005 = 0xFFFF; + else + gSpecialVar_0x8005 = numEggs; + if (gSpecialVar_0x8004 != 0) + result |= 1 << 0; + if (gSpecialVar_0x8005 != 0) + result |= 1 << 1; + if (gSpecialVar_0x8006 != 0) + result |= 1 << 2; + return result; +} + +u16 GetHiddenItemAttr(u32 hiddenItem, u8 attr) +{ + if (attr == 0) + return hiddenItem & 0xFFFF; + else if (attr == 1) + return ((hiddenItem >> 16) & 0xFF) + 1000; + else if (attr == 2) + return (hiddenItem >> 24) & 0x7F; + else if (attr == 3) + return (hiddenItem >> 31) & 0x01; + else + return 1; +} + +bool8 Special_PlayerPartyContainsSpecies(void) +{ + u8 partyCount = CalculatePlayerPartyCount(); + u8 i; + for (i = 0; i < partyCount; i++) + { + if (GetMonData(&gPlayerParty[i], MON_DATA_SPECIES2, NULL) == gSpecialVar_0x8004) + return TRUE; + } + return FALSE; +} + +static const u8 sMartMaps[][3] = { + {MAP_GROUP(VIRIDIAN_CITY_MART), MAP_NUM(VIRIDIAN_CITY_MART), 1}, + {MAP_GROUP(PEWTER_CITY_MART), MAP_NUM(PEWTER_CITY_MART), 3}, + {MAP_GROUP(CERULEAN_CITY_MART), MAP_NUM(CERULEAN_CITY_MART), 1}, + {MAP_GROUP(LAVENDER_TOWN_MART), MAP_NUM(LAVENDER_TOWN_MART), 1}, + {MAP_GROUP(VERMILION_CITY_MART), MAP_NUM(VERMILION_CITY_MART), 1}, + {MAP_GROUP(FUCHSIA_CITY_MART), MAP_NUM(FUCHSIA_CITY_MART), 1}, + {MAP_GROUP(CINNABAR_ISLAND_MART), MAP_NUM(CINNABAR_ISLAND_MART), 1}, + {MAP_GROUP(SAFFRON_CITY_MART), MAP_NUM(SAFFRON_CITY_MART), 1}, + {MAP_GROUP(THREE_ISLAND_MART), MAP_NUM(THREE_ISLAND_MART), 1}, + {MAP_GROUP(FOUR_ISLAND_MART), MAP_NUM(FOUR_ISLAND_MART), 1}, + {MAP_GROUP(SEVEN_ISLAND_MART), MAP_NUM(SEVEN_ISLAND_MART), 1}, + {MAP_GROUP(SIX_ISLAND_MART), MAP_NUM(SIX_ISLAND_MART), 1} +}; + +u8 Special_GetMartClerkObjectId(void) +{ + u8 i; + for (i = 0; i < NELEMS(sMartMaps); i++) + { + if (gSaveBlock1Ptr->location.mapGroup == sMartMaps[i][0] && gSaveBlock1Ptr->location.mapNum == sMartMaps[i][1]) + return sMartMaps[i][2]; + } + return 1; +} + +void sub_80CC524(void) +{ + sub_8113550(11, NULL); +} + +static const struct { + u16 grp; + u16 num; + u16 grp2; + u16 num2; +} sInsideOutsidePairs[51] = { + {MAP_GROUP(PALLET_TOWN_PLAYERS_HOUSE_1F), MAP_NUM(PALLET_TOWN_PLAYERS_HOUSE_1F), MAP_GROUP(PALLET_TOWN), MAP_NUM(PALLET_TOWN)}, + {MAP_GROUP(PALLET_TOWN_PROFESSOR_OAKS_LAB), MAP_NUM(PALLET_TOWN_PROFESSOR_OAKS_LAB), MAP_GROUP(PALLET_TOWN), MAP_NUM(PALLET_TOWN)}, + {MAP_GROUP(VIRIDIAN_CITY_GYM), MAP_NUM(VIRIDIAN_CITY_GYM), MAP_GROUP(VIRIDIAN_CITY), MAP_NUM(VIRIDIAN_CITY)}, + {MAP_GROUP(ROUTE22_NORTH_ENTRANCE), MAP_NUM(ROUTE22_NORTH_ENTRANCE), MAP_GROUP(ROUTE22), MAP_NUM(ROUTE22)}, + {MAP_GROUP(ROUTE22_NORTH_ENTRANCE), MAP_NUM(ROUTE22_NORTH_ENTRANCE), MAP_GROUP(ROUTE23), MAP_NUM(ROUTE23)}, + {MAP_GROUP(VIRIDIAN_FOREST), MAP_NUM(VIRIDIAN_FOREST), MAP_GROUP(ROUTE2_VIRIDIAN_FOREST_SOUTH_ENTRANCE), MAP_NUM(ROUTE2_VIRIDIAN_FOREST_SOUTH_ENTRANCE)}, + {MAP_GROUP(VIRIDIAN_FOREST), MAP_NUM(VIRIDIAN_FOREST), MAP_GROUP(ROUTE2_VIRIDIAN_FOREST_NORTH_ENTRANCE), MAP_NUM(ROUTE2_VIRIDIAN_FOREST_NORTH_ENTRANCE)}, + {MAP_GROUP(PEWTER_CITY_MUSEUM_1F), MAP_NUM(PEWTER_CITY_MUSEUM_1F), MAP_GROUP(PEWTER_CITY), MAP_NUM(PEWTER_CITY)}, + {MAP_GROUP(PEWTER_CITY_GYM), MAP_NUM(PEWTER_CITY_GYM), MAP_GROUP(PEWTER_CITY), MAP_NUM(PEWTER_CITY)}, + {MAP_GROUP(MT_MOON_1F), MAP_NUM(MT_MOON_1F), MAP_GROUP(ROUTE4), MAP_NUM(ROUTE4)}, + {MAP_GROUP(MT_MOON_B1F), MAP_NUM(MT_MOON_B1F), MAP_GROUP(ROUTE4), MAP_NUM(ROUTE4)}, + {MAP_GROUP(CERULEAN_CITY_GYM), MAP_NUM(CERULEAN_CITY_GYM), MAP_GROUP(CERULEAN_CITY), MAP_NUM(CERULEAN_CITY)}, + {MAP_GROUP(CERULEAN_CITY_BIKE_SHOP), MAP_NUM(CERULEAN_CITY_BIKE_SHOP), MAP_GROUP(CERULEAN_CITY), MAP_NUM(CERULEAN_CITY)}, + {MAP_GROUP(ROUTE25_SEA_COTTAGE), MAP_NUM(ROUTE25_SEA_COTTAGE), MAP_GROUP(ROUTE25), MAP_NUM(ROUTE25)}, + {MAP_GROUP(ROUTE5_POKEMON_DAY_CARE), MAP_NUM(ROUTE5_POKEMON_DAY_CARE), MAP_GROUP(ROUTE5), MAP_NUM(ROUTE5)}, + {MAP_GROUP(UNDERGROUND_PATH_NORTH_ENTRANCE), MAP_NUM(UNDERGROUND_PATH_NORTH_ENTRANCE), MAP_GROUP(ROUTE5), MAP_NUM(ROUTE5)}, + {MAP_GROUP(UNDERGROUND_PATH_SOUTH_ENTRANCE), MAP_NUM(UNDERGROUND_PATH_SOUTH_ENTRANCE), MAP_GROUP(ROUTE6), MAP_NUM(ROUTE6)}, + {MAP_GROUP(VERMILION_CITY_POKEMON_FAN_CLUB), MAP_NUM(VERMILION_CITY_POKEMON_FAN_CLUB), MAP_GROUP(VERMILION_CITY), MAP_NUM(VERMILION_CITY)}, + {MAP_GROUP(VERMILION_CITY_GYM), MAP_NUM(VERMILION_CITY_GYM), MAP_GROUP(VERMILION_CITY), MAP_NUM(VERMILION_CITY)}, + {MAP_GROUP(SSANNE_1F_CORRIDOR), MAP_NUM(SSANNE_1F_CORRIDOR), MAP_GROUP(VERMILION_CITY), MAP_NUM(VERMILION_CITY)}, + {MAP_GROUP(DIGLETTS_CAVE_NORTH_ENTRANCE), MAP_NUM(DIGLETTS_CAVE_NORTH_ENTRANCE), MAP_GROUP(ROUTE2), MAP_NUM(ROUTE2)}, + {MAP_GROUP(DIGLETTS_CAVE_SOUTH_ENTRANCE), MAP_NUM(DIGLETTS_CAVE_SOUTH_ENTRANCE), MAP_GROUP(ROUTE11), MAP_NUM(ROUTE11)}, + {MAP_GROUP(ROCK_TUNNEL_1F), MAP_NUM(ROCK_TUNNEL_1F), MAP_GROUP(ROUTE10), MAP_NUM(ROUTE10)}, + {MAP_GROUP(ROCK_TUNNEL_1F), MAP_NUM(ROCK_TUNNEL_1F), MAP_GROUP(ROUTE10), MAP_NUM(ROUTE10)}, + {MAP_GROUP(POWER_PLANT), MAP_NUM(POWER_PLANT), MAP_GROUP(ROUTE10), MAP_NUM(ROUTE10)}, + {MAP_GROUP(POKEMON_TOWER_1F), MAP_NUM(POKEMON_TOWER_1F), MAP_GROUP(LAVENDER_TOWN), MAP_NUM(LAVENDER_TOWN)}, + {MAP_GROUP(LAVENDER_TOWN_VOLUNTEER_POKEMON_HOUSE), MAP_NUM(LAVENDER_TOWN_VOLUNTEER_POKEMON_HOUSE), MAP_GROUP(LAVENDER_TOWN), MAP_NUM(LAVENDER_TOWN)}, + {MAP_GROUP(LAVENDER_TOWN_HOUSE2), MAP_NUM(LAVENDER_TOWN_HOUSE2), MAP_GROUP(LAVENDER_TOWN), MAP_NUM(LAVENDER_TOWN)}, + {MAP_GROUP(UNDERGROUND_PATH_EAST_ENTRANCE), MAP_NUM(UNDERGROUND_PATH_EAST_ENTRANCE), MAP_GROUP(ROUTE8), MAP_NUM(ROUTE8)}, + {MAP_GROUP(UNDERGROUND_PATH_WEST_ENTRANCE), MAP_NUM(UNDERGROUND_PATH_WEST_ENTRANCE), MAP_GROUP(ROUTE7), MAP_NUM(ROUTE7)}, + {MAP_GROUP(CELADON_CITY_DEPARTMENT_STORE_1F), MAP_NUM(CELADON_CITY_DEPARTMENT_STORE_1F), MAP_GROUP(CELADON_CITY), MAP_NUM(CELADON_CITY)}, + {MAP_GROUP(CELADON_CITY_CONDOMINIUMS_1F), MAP_NUM(CELADON_CITY_CONDOMINIUMS_1F), MAP_GROUP(CELADON_CITY), MAP_NUM(CELADON_CITY)}, + {MAP_GROUP(CELADON_CITY_GAME_CORNER), MAP_NUM(CELADON_CITY_GAME_CORNER), MAP_GROUP(CELADON_CITY), MAP_NUM(CELADON_CITY)}, + {MAP_GROUP(CELADON_CITY_GYM), MAP_NUM(CELADON_CITY_GYM), MAP_GROUP(CELADON_CITY), MAP_NUM(CELADON_CITY)}, + {MAP_GROUP(CELADON_CITY_RESTAURANT), MAP_NUM(CELADON_CITY_RESTAURANT), MAP_GROUP(CELADON_CITY), MAP_NUM(CELADON_CITY)}, + {MAP_GROUP(ROCKET_HIDEOUT_B1F), MAP_NUM(ROCKET_HIDEOUT_B1F), MAP_GROUP(CELADON_CITY_GAME_CORNER), MAP_NUM(CELADON_CITY_GAME_CORNER)}, + {MAP_GROUP(SAFARI_ZONE_CENTER), MAP_NUM(SAFARI_ZONE_CENTER), MAP_GROUP(FUCHSIA_CITY_SAFARI_ZONE_ENTRANCE), MAP_NUM(FUCHSIA_CITY_SAFARI_ZONE_ENTRANCE)}, + {MAP_GROUP(FUCHSIA_CITY_GYM), MAP_NUM(FUCHSIA_CITY_GYM), MAP_GROUP(FUCHSIA_CITY), MAP_NUM(FUCHSIA_CITY)}, + {MAP_GROUP(FUCHSIA_CITY_BUILDING1), MAP_NUM(FUCHSIA_CITY_BUILDING1), MAP_GROUP(FUCHSIA_CITY), MAP_NUM(FUCHSIA_CITY)}, + {MAP_GROUP(SAFFRON_CITY_DOJO), MAP_NUM(SAFFRON_CITY_DOJO), MAP_GROUP(SAFFRON_CITY), MAP_NUM(SAFFRON_CITY)}, + {MAP_GROUP(SAFFRON_CITY_GYM), MAP_NUM(SAFFRON_CITY_GYM), MAP_GROUP(SAFFRON_CITY), MAP_NUM(SAFFRON_CITY)}, + {MAP_GROUP(SILPH_CO_1F), MAP_NUM(SILPH_CO_1F), MAP_GROUP(SAFFRON_CITY), MAP_NUM(SAFFRON_CITY)}, + {MAP_GROUP(SEAFOAM_ISLANDS_1F), MAP_NUM(SEAFOAM_ISLANDS_1F), MAP_GROUP(ROUTE20), MAP_NUM(ROUTE20)}, + {MAP_GROUP(SEAFOAM_ISLANDS_1F), MAP_NUM(SEAFOAM_ISLANDS_1F), MAP_GROUP(ROUTE20), MAP_NUM(ROUTE20)}, + {MAP_GROUP(POKEMON_MANSION_1F), MAP_NUM(POKEMON_MANSION_1F), MAP_GROUP(CINNABAR_ISLAND), MAP_NUM(CINNABAR_ISLAND)}, + {MAP_GROUP(CINNABAR_ISLAND_GYM), MAP_NUM(CINNABAR_ISLAND_GYM), MAP_GROUP(CINNABAR_ISLAND), MAP_NUM(CINNABAR_ISLAND)}, + {MAP_GROUP(CINNABAR_ISLAND_POKEMON_LAB_ENTRANCE), MAP_NUM(CINNABAR_ISLAND_POKEMON_LAB_ENTRANCE), MAP_GROUP(CINNABAR_ISLAND), MAP_NUM(CINNABAR_ISLAND)}, + {MAP_GROUP(VICTORY_ROAD_1F), MAP_NUM(VICTORY_ROAD_1F), MAP_GROUP(ROUTE23), MAP_NUM(ROUTE23)}, + {MAP_GROUP(VICTORY_ROAD_2F), MAP_NUM(VICTORY_ROAD_2F), MAP_GROUP(ROUTE23), MAP_NUM(ROUTE23)}, + {MAP_GROUP(INDIGO_PLATEAU_POKEMON_CENTER_1F), MAP_NUM(INDIGO_PLATEAU_POKEMON_CENTER_1F), MAP_GROUP(INDIGO_PLATEAU_EXTERIOR), MAP_NUM(INDIGO_PLATEAU_EXTERIOR)}, + {MAP_GROUP(CERULEAN_CAVE_1F), MAP_NUM(CERULEAN_CAVE_1F), MAP_GROUP(CERULEAN_CITY), MAP_NUM(CERULEAN_CITY)} +}; + +void sub_80CC534(void) +{ + u8 i; + for (i = 0; i < NELEMS(sInsideOutsidePairs); i++) + { + if (gSaveBlock1Ptr->location.mapGroup == sInsideOutsidePairs[i].grp && gSaveBlock1Ptr->location.mapNum == sInsideOutsidePairs[i].num) + { + if (VarGet(VAR_0x404D) != 35 || i != 32) + { + VarSet(VAR_0x404D, i); + FlagSet(FLAG_0x808); + } + break; + } + } +} + +void sub_80CC59C(void) +{ + s16 x, y; + struct { + u8 unk0; + u8 unk1; + } sp0; + u16 r5 = VarGet(VAR_0x404D); + sp0.unk0 = 0; + sp0.unk1 = 0; + if (FlagGet(FLAG_0x808)) + { + if (r5 == 5) + { + if (gSaveBlock1Ptr->location.mapGroup == MAP_GROUP(ROUTE2_VIRIDIAN_FOREST_SOUTH_ENTRANCE) && (gSaveBlock1Ptr->location.mapNum == MAP_NUM(ROUTE2_VIRIDIAN_FOREST_SOUTH_ENTRANCE) || gSaveBlock1Ptr->location.mapNum == MAP_NUM(ROUTE2_VIRIDIAN_FOREST_NORTH_ENTRANCE))) + { + sp0.unk0 = MAPSEC_ROUTE_2; + if (gSaveBlock1Ptr->location.mapNum == MAP_NUM(ROUTE2_VIRIDIAN_FOREST_SOUTH_ENTRANCE)) + sp0.unk1 = r5; + else + sp0.unk1 = r5 + 1; + sub_8113550(35, (void *)&sp0); + FlagClear(FLAG_0x808); + return; + } + } + else if (r5 == 3) + { + if (gSaveBlock1Ptr->location.mapGroup == MAP_GROUP(ROUTE22) && (gSaveBlock1Ptr->location.mapNum == MAP_NUM(ROUTE22) || gSaveBlock1Ptr->location.mapNum == MAP_NUM(ROUTE23))) + { + sp0.unk0 = get_mapheader_by_bank_and_number(sInsideOutsidePairs[r5].grp, sInsideOutsidePairs[r5].num)->regionMapSectionId; + if (gSaveBlock1Ptr->location.mapNum == MAP_NUM(ROUTE22)) + sp0.unk1 = r5; + else + sp0.unk1 = r5 + 1; + sub_8113550(35, (void *)&sp0); + FlagClear(FLAG_0x808); + return; + } + } + if (gSaveBlock1Ptr->location.mapGroup == sInsideOutsidePairs[r5].grp2 && gSaveBlock1Ptr->location.mapNum == sInsideOutsidePairs[r5].num2) + { + sp0.unk0 = get_mapheader_by_bank_and_number(sInsideOutsidePairs[r5].grp, sInsideOutsidePairs[r5].num)->regionMapSectionId; + sp0.unk1 = r5; + if (r5 == 22) + { + PlayerGetDestCoords(&x, &y); + if (x != 15 || y != 26) + sp0.unk1++; + } + else if (r5 == 42) + { + PlayerGetDestCoords(&x, &y); + if (x != 67 || y != 15) + sp0.unk1++; + } + sub_8113550(35, (void *)&sp0); + FlagClear(FLAG_0x808); + if (r5 == 35) + { + VarSet(VAR_0x404D, 32); + FlagSet(FLAG_0x808); + } + } + } +} + +u16 Special_BattleCardAction(void) +{ + switch (gSpecialVar_Result) + { + case 0: + return sub_81445C0(3); + case 1: + return sub_81445C0(4); + case 2: + return sub_81445C0(0); + case 3: + return sub_81445C0(1); + case 4: + return sub_81445C0(2); + default: + AGB_ASSERT_EX(0, "C:/WORK/POKeFRLG/src/pm_lgfr_ose/source/scr_tool.c", 3873); + return 0; + } +} + +void set_unknown_box_id(u8 boxId) +{ + sUnknownBoxId = boxId; +} + +u16 get_unknown_box_id(void) +{ + return sUnknownBoxId; +} + +bool8 sub_80CC7B4(void) +{ + if (FlagGet(FLAG_SYS_CHANGED_BOX_TO_STORE_MON)) + return FALSE; + if (StorageGetCurrentBox() == VarGet(VAR_0x4037)) + return FALSE; + FlagSet(FLAG_SYS_CHANGED_BOX_TO_STORE_MON); + return TRUE; +} + +bool8 sub_80CC7F8(void) +{ + s32 i; + s32 j; + set_unknown_box_id(VarGet(VAR_0x4037)); + i = StorageGetCurrentBox(); + do + { + for (j = 0; j < IN_BOX_COUNT; j++) + { + if (GetBoxMonData(GetBoxedMonPtr(i, j), MON_DATA_SPECIES, NULL) == SPECIES_NONE) + { + if (get_unknown_box_id() != i) + FlagClear(FLAG_SYS_CHANGED_BOX_TO_STORE_MON); + VarSet(VAR_0x4037, i); + return sub_80CC7B4(); + } + } + i++; + if (i == TOTAL_BOXES_COUNT) + i = 0; + } while (i != StorageGetCurrentBox()); + return FALSE; +} + +const u16 sPokeCenter1FMaps[] = { + MAP_VIRIDIAN_CITY_POKEMON_CENTER_1F, + MAP_PEWTER_CITY_POKEMON_CENTER_1F, + MAP_CERULEAN_CITY_POKEMON_CENTER_1F, + MAP_LAVENDER_TOWN_POKEMON_CENTER_1F, + MAP_VERMILION_CITY_POKEMON_CENTER_1F, + MAP_CELADON_CITY_POKEMON_CENTER_1F, + MAP_FUCHSIA_CITY_POKEMON_CENTER_1F, + MAP_CINNABAR_ISLAND_POKEMON_CENTER_1F, + MAP_INDIGO_PLATEAU_POKEMON_CENTER_1F, + MAP_SAFFRON_CITY_POKEMON_CENTER_1F, + MAP_ROUTE4_POKEMON_CENTER_1F, + MAP_ROUTE10_POKEMON_CENTER_1F, + MAP_ONE_ISLAND_POKEMON_CENTER_1F, + MAP_TWO_ISLAND_POKEMON_CENTER_1F, + MAP_THREE_ISLAND_POKEMON_CENTER_1F, + MAP_FOUR_ISLAND_POKEMON_CENTER_1F, + MAP_FIVE_ISLAND_POKEMON_CENTER_1F, + MAP_SEVEN_ISLAND_POKEMON_CENTER_1F, + MAP_SIX_ISLAND_POKEMON_CENTER_1F, + MAP_UNKNOWN_MAP_00_04, + MAP_UNDEFINED +}; + +bool8 sub_80CC87C(void) +{ + s32 i; + u16 mapno = (gUnknown_2031DB4.mapGroup << 8) + gUnknown_2031DB4.mapNum; + for (i = 0; sPokeCenter1FMaps[i] != MAP_UNDEFINED; i++) + { + if (sPokeCenter1FMaps[i] == mapno) + return TRUE; + } + return FALSE; +} + +bool8 Special_ItemIsTM_GetMoveName(void) +{ + // 8004 = item ID + if (gSpecialVar_0x8004 >= ITEM_TM01 && gSpecialVar_0x8004 <= ITEM_HM08) + { + StringCopy(gStringVar1, gMoveNames[ItemIdToBattleMoveId(gSpecialVar_0x8004)]); + return TRUE; + } + else + return FALSE; +} + +void RunMassageCooldownStepCounter(void) +{ + u16 count = VarGet(VAR_MASSAGE_COOLDOWN_STEP_COUNTER); + if (count < 500) + VarSet(VAR_MASSAGE_COOLDOWN_STEP_COUNTER, count + 1); +} + +void Special_DaisyMassageServices(void) +{ + AdjustFriendship(&gPlayerParty[gSpecialVar_0x8004], 6); + VarSet(VAR_MASSAGE_COOLDOWN_STEP_COUNTER, 0); +} + +static const u16 sEliteFourLightingPalettes[][16] = { + INCBIN_U16("data/field_specials/unk_83F5F50.gbapal"), + INCBIN_U16("data/field_specials/unk_83F5F70.gbapal"), + INCBIN_U16("data/field_specials/unk_83F5F90.gbapal"), + INCBIN_U16("data/field_specials/unk_83F5FB0.gbapal"), + INCBIN_U16("data/field_specials/unk_83F5FD0.gbapal"), + INCBIN_U16("data/field_specials/unk_83F5FF0.gbapal"), + INCBIN_U16("data/field_specials/unk_83F6010.gbapal"), + INCBIN_U16("data/field_specials/unk_83F6030.gbapal"), + INCBIN_U16("data/field_specials/unk_83F6050.gbapal"), + INCBIN_U16("data/field_specials/unk_83F6070.gbapal"), + INCBIN_U16("data/field_specials/unk_83F6090.gbapal"), + INCBIN_U16("data/field_specials/unk_83F60B0.gbapal") +}; + +static const u16 sChampionRoomLightingPalettes[][16] = { + INCBIN_U16("data/field_specials/unk_83F60D0.gbapal"), + INCBIN_U16("data/field_specials/unk_83F60F0.gbapal"), + INCBIN_U16("data/field_specials/unk_83F6110.gbapal"), + INCBIN_U16("data/field_specials/unk_83F6130.gbapal"), + INCBIN_U16("data/field_specials/unk_83F6150.gbapal"), + INCBIN_U16("data/field_specials/unk_83F6170.gbapal"), + INCBIN_U16("data/field_specials/unk_83F6190.gbapal"), + INCBIN_U16("data/field_specials/unk_83F61B0.gbapal"), + INCBIN_U16("data/field_specials/unk_83F61D0.gbapal") +}; + +static const u8 sEliteFourLightingTimers[] = { + 40, + 12, + 12, + 12, + 12, + 12, + 12, + 12, + 12, + 12, + 12 +}; + +static const u8 sChampionRoomLightingTimers[] = { + 20, + 8, + 8, + 8, + 8, + 8, + 8, + 8 +}; + +void Special_PokemonLeagueLightingEffect(void) +{ + u8 taskId = CreateTask(Task_RunPokemonLeagueLightingEffect, 8); + s16 *data = gTasks[taskId].data; + if (FlagGet(FLAG_TEMP_3) == TRUE) + { + gTasks[taskId].func = Task_CancelPokemonLeagueLightingEffect; + } + else + { + if (gSaveBlock1Ptr->location.mapGroup == MAP_GROUP(POKEMON_LEAGUE_CHAMPIONS_ROOM) && gSaveBlock1Ptr->location.mapNum == MAP_NUM(POKEMON_LEAGUE_CHAMPIONS_ROOM)) + { + data[0] = sChampionRoomLightingTimers[0]; + data[2] = 8; + LoadPalette(sChampionRoomLightingPalettes[0], 0x70, 0x20); + } + else + { + data[0] = sEliteFourLightingTimers[0]; + data[2] = 11; + LoadPalette(sEliteFourLightingPalettes[0], 0x70, 0x20); + } + data[1] = 0; + sub_8059948(7, 1); + } +} + +static void Task_RunPokemonLeagueLightingEffect(u8 taskId) +{ + s16 *data = gTasks[taskId].data; + if (!gPaletteFade.active + && FlagGet(FLAG_TEMP_2) != FALSE + && FlagGet(FLAG_TEMP_5) != TRUE + && gUnknown_2036E28 != 3 + && --data[0] == 0 + ) + { + if (++data[1] == data[2]) + data[1] = 0; + + if (gSaveBlock1Ptr->location.mapGroup == MAP_GROUP(POKEMON_LEAGUE_CHAMPIONS_ROOM) && gSaveBlock1Ptr->location.mapNum == MAP_NUM(POKEMON_LEAGUE_CHAMPIONS_ROOM)) + { + data[0] = sChampionRoomLightingTimers[data[1]]; + LoadPalette(sChampionRoomLightingPalettes[data[1]], 0x70, 0x20); + } + else + { + data[0] = sEliteFourLightingTimers[data[1]]; + LoadPalette(sEliteFourLightingPalettes[data[1]], 0x70, 0x20); + } + sub_8059948(7, 1); + } +} + +static void Task_CancelPokemonLeagueLightingEffect(u8 taskId) +{ + s16 *data = gTasks[taskId].data; + if (FlagGet(FLAG_TEMP_4) != FALSE) + { + if (gSaveBlock1Ptr->location.mapGroup == MAP_GROUP(POKEMON_LEAGUE_CHAMPIONS_ROOM) && gSaveBlock1Ptr->location.mapNum == MAP_NUM(POKEMON_LEAGUE_CHAMPIONS_ROOM)) + { + LoadPalette(sChampionRoomLightingPalettes[8], 0x70, 0x20); + } + else + { + LoadPalette(sEliteFourLightingPalettes[11], 0x70, 0x20); + } + sub_8059948(7, 1); + if (gPaletteFade.active) + { + BlendPalettes(0x00000080, 16, RGB_BLACK); + } + DestroyTask(taskId); + } +} + +void StopPokemonLeagueLightingEffectTask(void) +{ + if (FuncIsActiveTask(Task_RunPokemonLeagueLightingEffect) == TRUE) + { + DestroyTask(FindTaskIdByFunc(Task_RunPokemonLeagueLightingEffect)); + } +} + +static const u8 sCapeBrinkCompatibleSpecies[] = { + SPECIES_VENUSAUR, + SPECIES_CHARIZARD, + SPECIES_BLASTOISE +}; + +bool8 Special_CapeBrinkGetMoveToTeachLeadPokemon(void) +{ + // Returns: + // 8005 = Move tutor index + // 8006 = Num moves known by lead mon + // 8007 = Index of lead mon + // to specialvar = whether a move can be taught in the first place + u8 r7 = 0; + u8 r6 = 0; + u8 r8 = GetLeadMonIndex(); + u8 r4; + gSpecialVar_0x8007 = r8; + for (r4 = 0; r4 < NELEMS(sCapeBrinkCompatibleSpecies); r4++) + { + if (GetMonData(&gPlayerParty[r8], MON_DATA_SPECIES2, NULL) == sCapeBrinkCompatibleSpecies[r4]) + { + r7 = r4; + break; + } + } + if (r4 == NELEMS(sCapeBrinkCompatibleSpecies) || GetMonData(&gPlayerParty[r8], MON_DATA_FRIENDSHIP) != 255) + return FALSE; + if (r7 == 0) + { + StringCopy(gStringVar2, gMoveNames[MOVE_FRENZY_PLANT]); + gSpecialVar_0x8005 = MOVETUTOR_FRENZY_PLANT; + if (FlagGet(FLAG_TUTOR_FRENZY_PLANT) == TRUE) + return FALSE; + } + else if (r7 == 1) + { + StringCopy(gStringVar2, gMoveNames[MOVE_BLAST_BURN]); + gSpecialVar_0x8005 = MOVETUTOR_BLAST_BURN; + if (FlagGet(FLAG_TUTOR_BLAST_BURN) == TRUE) + return FALSE; + } + else + { + StringCopy(gStringVar2, gMoveNames[MOVE_HYDRO_CANNON]); + gSpecialVar_0x8005 = MOVETUTOR_HYDRO_CANNON; + if (FlagGet(FLAG_TUTOR_HYDRO_CANNON) == TRUE) + return FALSE; + } + if (GetMonData(&gPlayerParty[r8], MON_DATA_MOVE1) != MOVE_NONE) + r6++; + if (GetMonData(&gPlayerParty[r8], MON_DATA_MOVE2) != MOVE_NONE) + r6++; + if (GetMonData(&gPlayerParty[r8], MON_DATA_MOVE3) != MOVE_NONE) + r6++; + if (GetMonData(&gPlayerParty[r8], MON_DATA_MOVE4) != MOVE_NONE) + r6++; + gSpecialVar_0x8006 = r6; + return TRUE; +} + +bool8 Special_HasLearnedAllMovesFromCapeBrinkTutor(void) +{ + // 8005 is set by Special_CapeBrinkGetMoveToTeachLeadPokemon + u8 r4 = 0; + if (gSpecialVar_0x8005 == MOVETUTOR_FRENZY_PLANT) + FlagSet(FLAG_TUTOR_FRENZY_PLANT); + else if (gSpecialVar_0x8005 == MOVETUTOR_BLAST_BURN) + FlagSet(FLAG_TUTOR_BLAST_BURN); + else + FlagSet(FLAG_TUTOR_HYDRO_CANNON); + if (FlagGet(FLAG_TUTOR_FRENZY_PLANT) == TRUE) + r4++; + if (FlagGet(FLAG_TUTOR_BLAST_BURN) == TRUE) + r4++; + if (FlagGet(FLAG_TUTOR_HYDRO_CANNON) == TRUE) + r4++; + if (r4 == 3) + return TRUE; + else + return FALSE; +} + +bool8 CutMoveRuinValleyCheck(void) +{ + if (FlagGet(FLAG_USED_CUT_ON_RUIN_VALLEY_BRAILLE) != TRUE + && gSaveBlock1Ptr->location.mapGroup == MAP_GROUP(SIX_ISLAND_RUIN_VALLEY) + && gSaveBlock1Ptr->location.mapNum == MAP_NUM(SIX_ISLAND_RUIN_VALLEY) + && gSaveBlock1Ptr->pos.x == 24 + && gSaveBlock1Ptr->pos.y == 25 + && GetPlayerFacingDirection() == DIR_NORTH + ) + return TRUE; + else + return FALSE; +} + +void CutMoveOpenDottedHoleDoor(void) +{ + MapGridSetMetatileIdAt(31, 31, 0x358); + DrawWholeMapView(); + PlaySE(SE_BAN); + FlagSet(FLAG_USED_CUT_ON_RUIN_VALLEY_BRAILLE); + ScriptContext2_Disable(); +} + +static const u16 sDeoxysObjectPals[][16] = { + INCBIN_U16("data/field_specials/unk_83F6206.gbapal"), + INCBIN_U16("data/field_specials/unk_83F6226.gbapal"), + INCBIN_U16("data/field_specials/unk_83F6246.gbapal"), + INCBIN_U16("data/field_specials/unk_83F6266.gbapal"), + INCBIN_U16("data/field_specials/unk_83F6286.gbapal"), + INCBIN_U16("data/field_specials/unk_83F62A6.gbapal"), + INCBIN_U16("data/field_specials/unk_83F62C6.gbapal"), + INCBIN_U16("data/field_specials/unk_83F62E6.gbapal"), + INCBIN_U16("data/field_specials/unk_83F6306.gbapal"), + INCBIN_U16("data/field_specials/unk_83F6326.gbapal"), + INCBIN_U16("data/field_specials/unk_83F6346.gbapal") +}; + +static const u8 sDeoxysCoords[][2] = { + {15, 12}, + {11, 14}, + {15, 8}, + {19, 14}, + {12, 11}, + {18, 11}, + {15, 14}, + {11, 14}, + {19, 14}, + {15, 15}, + {15, 10} +}; + +static const u8 sDeoxysStepCaps[] = { + 4, + 8, + 8, + 8, + 4, + 4, + 4, + 6, + 3, + 3 +}; + +void Special_DeoxysSound(void) +{ + CreateTask(task_deoxys_sound, 8); +} + +static void task_deoxys_sound(u8 taskId) +{ + u16 r5; + u16 r6; + if (FlagGet(FLAG_SYS_DEOXYS_AWAKENED) == TRUE) + { + gSpecialVar_Result = 3; + EnableBothScriptContexts(); + DestroyTask(taskId); + } + else + { + r5 = VarGet(VAR_DEOXYS_INTERACTION_NUM); + r6 = VarGet(VAR_DEOXYS_INTERACTION_STEP_COUNTER); + VarSet(VAR_DEOXYS_INTERACTION_STEP_COUNTER, 0); + if (r5 != 0 && sDeoxysStepCaps[r5 - 1] < r6) + { + MoveDeoxysObject(0); + VarSet(VAR_DEOXYS_INTERACTION_NUM, 0); + gSpecialVar_Result = 0; + DestroyTask(taskId); + } + else if (r5 == 10) + { + FlagSet(FLAG_SYS_DEOXYS_AWAKENED); + gSpecialVar_Result = 2; + EnableBothScriptContexts(); + DestroyTask(taskId); + } + else + { + r5++; + MoveDeoxysObject(r5); + VarSet(VAR_DEOXYS_INTERACTION_NUM, r5); + gSpecialVar_Result = 1; + DestroyTask(taskId); + } + } +} + +static void MoveDeoxysObject(u8 num) +{ + u8 mapObjId; + LoadPalette(sDeoxysObjectPals[num], 0x1A0, 0x08); + sub_8083598(10); + TryGetFieldObjectIdByLocalIdAndMap(1, gSaveBlock1Ptr->location.mapNum, gSaveBlock1Ptr->location.mapGroup, &mapObjId); + if (num == 0) + PlaySE(SE_W109); + else + PlaySE(SE_DEOMOV); + CreateTask(Task_WaitDeoxysFieldEffect, 8); + gFieldEffectArguments[0] = 1; + gFieldEffectArguments[1] = 56; + gFieldEffectArguments[2] = 2; + gFieldEffectArguments[3] = sDeoxysCoords[num][0]; + gFieldEffectArguments[4] = sDeoxysCoords[num][1]; + if (num == 0) + gFieldEffectArguments[5] = 60; + else + gFieldEffectArguments[5] = 5; + FieldEffectStart(FLDEFF_UNK_43); + Overworld_SetMapObjTemplateCoords(1, sDeoxysCoords[num][0], sDeoxysCoords[num][1]); +} + +static void Task_WaitDeoxysFieldEffect(u8 taskId) +{ + if (!FieldEffectActiveListContains(FLDEFF_UNK_43)) + { + EnableBothScriptContexts(); + DestroyTask(taskId); + } +} + +void BirthIslandDeoxysStepCounter(void) +{ + u16 count = VarGet(VAR_DEOXYS_INTERACTION_STEP_COUNTER); + if (gSaveBlock1Ptr->location.mapGroup == MAP_GROUP(BIRTH_ISLAND_EXTERIOR) && gSaveBlock1Ptr->location.mapNum == MAP_NUM(BIRTH_ISLAND_EXTERIOR)) + { + count++; + if (count > 99) + VarSet(VAR_DEOXYS_INTERACTION_STEP_COUNTER, 0); + else + VarSet(VAR_DEOXYS_INTERACTION_STEP_COUNTER, count); + } +} + +void Special_SetDeoxysTriangleObjectPal(void) +{ + u8 num = VarGet(VAR_DEOXYS_INTERACTION_NUM); + LoadPalette(sDeoxysObjectPals[num], 0x1A0, 0x08); + sub_8083598(10); +} + +bool8 Special_BadEggInParty(void) +{ + u8 partyCount = CalculatePlayerPartyCount(); + u8 i; + for (i = 0; i < partyCount; i++) + { + if (GetMonData(&gPlayerParty[i], MON_DATA_SANITY_IS_BAD_EGG) == TRUE) + return TRUE; + } + return FALSE; +} + +bool8 Special_PlayerIsNotInTrainerTowerLobby(void) +{ + if (gSaveBlock1Ptr->location.mapGroup == MAP_GROUP(SEVEN_ISLAND_TRAINER_TOWER_LOBBY) && gSaveBlock1Ptr->location.mapNum == MAP_NUM(SEVEN_ISLAND_TRAINER_TOWER_LOBBY)) + return FALSE; + else + return TRUE; +} + +void Special_BrailleCursorToggle(void) +{ + // 8004 = x - 27 + // 8005 = y + // 8006 = action (0 = create, 1 = delete) + u16 x; + if (gUnknown_203ADFA != 2) + { + x = gSpecialVar_0x8004 + 27; + if (gSpecialVar_0x8006 == 0) + sBrailleTextCursorSpriteID = CreateTextCursorSpriteForOakSpeech(0, x, gSpecialVar_0x8005, 0, 0); + else + sub_8006398(sBrailleTextCursorSpriteID); + } +} + +bool8 Special_PlayerPartyContainsSpeciesWithPlayerID(void) +{ + // 8004 = species + u8 playerCount = CalculatePlayerPartyCount(); + u8 i; + for (i = 0; i < playerCount; i++) + { + if (GetMonData(&gPlayerParty[i], MON_DATA_SPECIES2, NULL) == gSpecialVar_0x8004 && GetPlayerTrainerId() == GetMonData(&gPlayerParty[i], MON_DATA_OT_ID, NULL)) + return TRUE; + } + return FALSE; +} + +/* + * Determines which of Lorelei's doll collection to show + * based on how many times you've entered the Hall of Fame. + */ +void Special_ComputeLoreleiDollCollection(void) +{ + u32 numHofClears = GetGameStat(GAME_STAT_ENTERED_HOF); + if (numHofClears >= 25) + { + FlagClear(FLAG_HIDE_LORELEI_HOUSE_MEOWTH_DOLL); + if (numHofClears >= 50) + FlagClear(FLAG_HIDE_LORELEI_HOUSE_CHANSEY_DOLL); + if (numHofClears >= 75) + FlagClear(FLAG_HIDE_LORELEIS_HOUSE_NIDORAN_F_DOLL); + if (numHofClears >= 100) + FlagClear(FLAG_HIDE_LORELEI_HOUSE_JIGGLYPUFF_DOLL); + if (numHofClears >= 125) + FlagClear(FLAG_HIDE_LORELEIS_HOUSE_NIDORAN_M_DOLL); + if (numHofClears >= 150) + FlagClear(FLAG_HIDE_LORELEIS_HOUSE_FEAROW_DOLL); + if (numHofClears >= 175) + FlagClear(FLAG_HIDE_LORELEIS_HOUSE_PIDGEOT_DOLL); + if (numHofClears >= 200) + FlagClear(FLAG_HIDE_LORELEIS_HOUSE_LAPRAS_DOLL); + } +} + +void Special_LoopWingFlapSound(void) +{ + // 8004 = Num flaps + // 8005 = Frame delay between flaps + CreateTask(Task_WingFlapSound, 8); + PlaySE(SE_W017); +} + +static void Task_WingFlapSound(u8 taskId) +{ + s16 *data = gTasks[taskId].data; + data[1]++; + if (data[1] == gSpecialVar_0x8005) + { + data[0]++; + data[1] = 0; + PlaySE(SE_W017); + } + if (data[0] == gSpecialVar_0x8004 - 1) + DestroyTask(taskId); +} diff --git a/src/fldeff_rocksmash.c b/src/fldeff_rocksmash.c index 56a607fff..90abda81f 100644 --- a/src/fldeff_rocksmash.c +++ b/src/fldeff_rocksmash.c @@ -16,6 +16,7 @@ #include "field_map_obj.h" #include "constants/songs.h" #include "constants/map_objects.h" +#include "constants/map_types.h" static void task08_080C9820(u8 taskId); static void sub_80C98FC(u8 taskId); diff --git a/src/ground.c b/src/ground.c index 4ae4d8370..97f42e5c5 100644 --- a/src/ground.c +++ b/src/ground.c @@ -416,8 +416,7 @@ static void sub_80B91B0(u8 taskId) task->data[12] = gBattle_BG1_X; else task->data[12] = gBattle_BG2_X; - - var0 = GetBattlerYCoordWithElevation(gBattleAnimAttacker); + var0 = GetBattlerYCoordWithElevation(gBattleAnimAttacker); task->data[14] = var0 - 32; task->data[15] = var0 + 32; ++task->data[0]; diff --git a/src/heal_location.c b/src/heal_location.c index 5c6dbc882..89d9478c0 100644 --- a/src/heal_location.c +++ b/src/heal_location.c @@ -122,10 +122,10 @@ void SetBlackoutRespawnWarpAndHealerNpc(struct WarpData * warp) { u32 healLocationIdx; - if (VarGet(VAR_0x4082) == 1) + if (VarGet(VAR_MAP_SCENE_TRAINER_TOWER) == 1) { if (!gSaveBlock1Ptr->unkArray[gSaveBlock1Ptr->unkArrayIdx].unkA_2) - VarSet(VAR_0x4082, 0); + VarSet(VAR_MAP_SCENE_TRAINER_TOWER, 0); gSpecialVar_LastTalked = 1; warp->x = 4; warp->y = 11; @@ -159,7 +159,7 @@ void SetBlackoutRespawnWarpAndHealerNpc(struct WarpData * warp) { warp->x = 4; warp->y = 11; - VarSet(VAR_0x4082, 0); + VarSet(VAR_MAP_SCENE_TRAINER_TOWER, 0); } else { diff --git a/src/help_system_812B1E0.c b/src/help_system_812B1E0.c index afb792072..1f3acdb2d 100644 --- a/src/help_system_812B1E0.c +++ b/src/help_system_812B1E0.c @@ -950,7 +950,7 @@ static bool8 IsInDungeonMap(void) if ( sDungeonMaps[i][0] == gSaveBlock1Ptr->location.mapGroup && sDungeonMaps[i][1] + j == gSaveBlock1Ptr->location.mapNum - && (i != 15 /* TANOBY */ || FlagGet(FLAG_0x849) == TRUE) + && (i != 15 /* TANOBY */ || FlagGet(FLAG_SYS_UNLOCKED_TANOBY_RUINS) == TRUE) ) return TRUE; } @@ -990,10 +990,10 @@ bool8 sub_812B40C(void) if (gUnknown_203B0EE == 1) return FALSE; - if (gSaveFileStatus != SAVE_STATUS_EMPTY && gSaveFileStatus != SAVE_STATUS_INVALID && FlagGet(FLAG_0x83C)) + if (gSaveFileStatus != SAVE_STATUS_EMPTY && gSaveFileStatus != SAVE_STATUS_INVALID && FlagGet(FLAG_SYS_SAW_HELP_SYSTEM_INTRO)) return FALSE; - FlagSet(FLAG_0x83C); + FlagSet(FLAG_SYS_SAW_HELP_SYSTEM_INTRO); gUnknown_203B0EE = 1; return TRUE; } @@ -1125,7 +1125,7 @@ static void sub_812B614(struct HelpSystemListMenu * a0, struct ListMenuItem * a1 static bool8 sub_812B754(void) { - if (FlagGet(FLAG_0x4B0) == TRUE && gUnknown_3005E9C[1] == 2) + if (FlagGet(FLAG_DEFEATED_BROCK) == TRUE && gUnknown_3005E9C[1] == 2) return TRUE; return FALSE; } @@ -1150,7 +1150,7 @@ static bool8 sub_812B780(u8 id) case 43: return TRUE; case 4: - return FlagGet(FLAG_0x2CF); + return FlagGet(FLAG_VISITED_OAKS_LAB); case 6: case 10: case 16: @@ -1163,7 +1163,7 @@ static bool8 sub_812B780(u8 id) return FlagGet(FLAG_WORLD_MAP_VERMILION_CITY); case 11: case 24: - return FlagGet(FLAG_0x8A4); + return FlagGet(FLAG_WORLD_MAP_VIRIDIAN_FOREST); case 9: case 13: case 14: @@ -1175,22 +1175,22 @@ static bool8 sub_812B780(u8 id) case 29: case 31: case 37: - return FlagGet(FLAG_0x828); + return FlagGet(FLAG_SYS_POKEMON_GET); case 21: case 23: - return FlagGet(FLAG_0x829); + return FlagGet(FLAG_SYS_POKEDEX_GET); case 12: case 25: case 27: case 30: case 32: case 33: - return FlagGet(FLAG_UNK820); + return FlagGet(FLAG_BADGE01_GET); case 28: case 40: return sub_812BB10(); case 39: - return FlagGet(FLAG_0x29B); + return FlagGet(FLAG_GOT_FAME_CHECKER); case 44: return FlagGet(FLAG_WORLD_MAP_PEWTER_CITY); } @@ -1229,7 +1229,7 @@ static bool8 sub_812B780(u8 id) case 1: case 30: case 37: - return FlagGet(FLAG_0x829); + return FlagGet(FLAG_SYS_POKEDEX_GET); case 14: return CheckBagHasItem(ITEM_TOWN_MAP, 1); case 2: @@ -1244,21 +1244,21 @@ static bool8 sub_812B780(u8 id) case 35: case 43: case 44: - return FlagGet(FLAG_0x828); + return FlagGet(FLAG_SYS_POKEMON_GET); case 4: case 34: if (GetKantoPokedexCount(1) > 1) return TRUE; return FALSE; case 15: - return FlagGet(FLAG_UNK820); + return FlagGet(FLAG_BADGE01_GET); case 16: case 17: return sub_812BB10(); case 18: - return FlagGet(FLAG_0x271); + return FlagGet(FLAG_GOT_BICYCLE); case 48: - return FlagGet(FLAG_0x82C); + return FlagGet(FLAG_SYS_GAME_CLEAR); } return FALSE; } @@ -1308,7 +1308,7 @@ static bool8 sub_812B780(u8 id) case 19: case 20: case 21: - return FlagGet(FLAG_0x828); + return FlagGet(FLAG_SYS_POKEMON_GET); case 36: case 37: return sub_812BB10(); @@ -1316,7 +1316,7 @@ static bool8 sub_812B780(u8 id) case 15: case 18: case 39: - return FlagGet(FLAG_0x8A4); + return FlagGet(FLAG_WORLD_MAP_VIRIDIAN_FOREST); } return TRUE; } @@ -1325,9 +1325,9 @@ static bool8 sub_812B780(u8 id) switch (id) { case 5: - return FlagGet(FLAG_UNK820); + return FlagGet(FLAG_BADGE01_GET); case 6: - return FlagGet(FLAG_0x821); + return FlagGet(FLAG_BADGE02_GET); } return TRUE; } @@ -1341,19 +1341,19 @@ static bool8 sub_812B780(u8 id) static bool8 sub_812BB10(void) { - if (FlagGet(FLAG_0x237) == TRUE) + if (FlagGet(FLAG_GOT_HM01) == TRUE) return TRUE; - if (FlagGet(FLAG_0x238) == TRUE) + if (FlagGet(FLAG_GOT_HM02) == TRUE) return TRUE; - if (FlagGet(FLAG_0x239) == TRUE) + if (FlagGet(FLAG_GOT_HM03) == TRUE) return TRUE; - if (FlagGet(FLAG_0x23A) == TRUE) + if (FlagGet(FLAG_GOT_HM04) == TRUE) return TRUE; - if (FlagGet(FLAG_0x23B) == TRUE) + if (FlagGet(FLAG_GOT_HM05) == TRUE) return TRUE; - if (FlagGet(FLAG_0x2EF) == TRUE) + if (FlagGet(FLAG_GOT_HM06) == TRUE) return TRUE; - if (FlagGet(FLAG_0x1F1) == TRUE) + if (FlagGet(FLAG_HIDE_FOUR_ISLAND_ICEFALL_CAVE_1F_HM07) == TRUE) return TRUE; return FALSE; } diff --git a/src/item.c b/src/item.c index 42dfd334e..677c13ad7 100644 --- a/src/item.c +++ b/src/item.c @@ -73,7 +73,7 @@ void CopyItemName(u16 itemId, u8 * dest) { if (itemId == ITEM_ENIGMA_BERRY) { - StringCopy(dest, sub_809C8A0(43)->name); + StringCopy(dest, GetBerryInfo(ITEM_TO_BERRY(ITEM_ENIGMA_BERRY))->name); StringAppend(dest, gUnknown_84162BD); } else @@ -245,11 +245,11 @@ bool8 AddBagItem(u16 itemId, u16 count) return FALSE; gBagPockets[POCKET_KEY_ITEMS - 1].itemSlots[idx].itemId = ITEM_BERRY_POUCH; SetBagItemQuantity(&gBagPockets[POCKET_KEY_ITEMS - 1].itemSlots[idx].quantity, 1); - FlagSet(FLAG_0x847); + FlagSet(FLAG_SYS_GOT_BERRY_POUCH); } if (itemId == ITEM_BERRY_POUCH) - FlagSet(FLAG_0x847); + FlagSet(FLAG_SYS_GOT_BERRY_POUCH); idx = BagPocketGetFirstEmptySlot(pocket); if (idx == -1) diff --git a/src/item_use.c b/src/item_use.c index 3a189d84a..873ce4ab4 100644 --- a/src/item_use.c +++ b/src/item_use.c @@ -42,6 +42,7 @@ #include "constants/maps.h" #include "constants/moves.h" #include "constants/songs.h" +#include "constants/map_types.h" EWRAM_DATA void (*sItemUseOnFieldCB)(u8 taskId) = NULL; @@ -162,7 +163,7 @@ void sub_80A1184(void) bool8 sub_80A1194(void) { - player_bitmagic(); + FreezeEventObjects(); ScriptContext2_Enable(); sub_807DC00(); CreateTask(sub_80A11C0, 10); @@ -191,7 +192,7 @@ void sub_80A1208(void) struct MailStruct mail; mail.itemId = gSpecialVar_ItemId; - sub_80BEBEC(&mail, CB2_BagMenuFromStartMenu, 0); + ReadMail(&mail, CB2_BagMenuFromStartMenu, 0); } void FieldUseFunc_MachBike(u8 taskId) @@ -202,7 +203,7 @@ void FieldUseFunc_MachBike(u8 taskId) PlayerGetDestCoords(&x, &y); behavior = MapGridGetMetatileBehaviorAt(x, y); - if (FlagGet(FLAG_0x830) == TRUE + if (FlagGet(FLAG_SYS_ON_CYCLING_ROAD) == TRUE || MetatileBehavior_ReturnFalse_17(behavior) == TRUE || MetatileBehavior_ReturnFalse_18(behavior) == TRUE || MetatileBehavior_ReturnFalse_15(behavior) == TRUE @@ -259,7 +260,7 @@ bool8 ItemUseCheckFunc_Rod(void) { if (MetatileBehavior_IsSurfable(behavior) && !MapGridIsImpassableAt(x, y)) return TRUE; - if (MetatileBehavior_ReturnFalse_6(behavior) == TRUE) + if (MetatileBehavior_IsBridge(behavior) == TRUE) return TRUE; } return FALSE; @@ -396,7 +397,7 @@ void FieldUseFunc_TmCase(u8 taskId) } else { - sub_80CCB68(); + StopPokemonLeagueLightingEffectTask(); fade_screen(1, 0); gTasks[taskId].func = Task_InitTMCaseFromField; } @@ -427,7 +428,7 @@ void FieldUseFunc_BerryPouch(u8 taskId) } else { - sub_80CCB68(); + StopPokemonLeagueLightingEffectTask(); fade_screen(1, 0); gTasks[taskId].func = Task_InitBerryPouchFromField; } @@ -470,7 +471,7 @@ void FieldUseFunc_TeachyTv(u8 taskId) } else { - sub_80CCB68(); + StopPokemonLeagueLightingEffectTask(); fade_screen(1, 0); gTasks[taskId].func = Task_InitTeachyTvFromField; } @@ -529,8 +530,8 @@ void FieldUseFunc_BlackFlute(u8 taskId) ItemUse_SetQuestLogEvent(4, NULL, gSpecialVar_ItemId, 0xFFFF); if (gSpecialVar_ItemId == ITEM_WHITE_FLUTE) { - FlagSet(FLAG_WHITE_FLUTE_ACTIVE); - FlagClear(FLAG_BLACK_FLUTE_ACTIVE); + FlagSet(FLAG_SYS_WHITE_FLUTE_ACTIVE); + FlagClear(FLAG_SYS_BLACK_FLUTE_ACTIVE); CopyItemName(gSpecialVar_ItemId, gStringVar2); StringExpandPlaceholders(gStringVar4, gUnknown_84165D2); gTasks[taskId].func = sub_80A1B48; @@ -538,8 +539,8 @@ void FieldUseFunc_BlackFlute(u8 taskId) } else if (gSpecialVar_ItemId == ITEM_BLACK_FLUTE) { - FlagSet(FLAG_BLACK_FLUTE_ACTIVE); - FlagClear(FLAG_WHITE_FLUTE_ACTIVE); + FlagSet(FLAG_SYS_BLACK_FLUTE_ACTIVE); + FlagClear(FLAG_SYS_WHITE_FLUTE_ACTIVE); CopyItemName(gSpecialVar_ItemId, gStringVar2); StringExpandPlaceholders(gStringVar4, gUnknown_8416600); gTasks[taskId].func = sub_80A1B48; @@ -600,7 +601,7 @@ void FieldUseFunc_TownMap(u8 taskId) } else { - sub_80CCB68(); + StopPokemonLeagueLightingEffectTask(); fade_screen(1, 0); gTasks[taskId].func = sub_80A1CC0; } @@ -632,7 +633,7 @@ void FieldUseFunc_FameChecker(u8 taskId) } else { - sub_80CCB68(); + StopPokemonLeagueLightingEffectTask(); fade_screen(1, 0); gTasks[taskId].func = sub_80A1D68; } diff --git a/src/itemfinder.c b/src/itemfinder.c index e6448a166..05072c49e 100644 --- a/src/itemfinder.c +++ b/src/itemfinder.c @@ -17,7 +17,7 @@ static void Task_NoResponse_CleanUp(u8 taskId); static void Task_ItemfinderResponseSoundsAndAnims(u8 taskId); static void Task_ItemfinderUnderfootSoundsAndAnims(u8 taskId); static bool8 HiddenItemIsWithinRangeOfPlayer(struct MapEvents * events, u8 taskId); -static void SetUnderfootHiddenItem(u8 taskId, struct HiddenItemStruct hiddenItem); +static void SetUnderfootHiddenItem(u8 taskId, u32 hiddenItem); static void SetNormalHiddenItem(u8 taskId); static void FindHiddenItemsInConnectedMaps(u8 taskId); static void RegisterHiddenItemRelativeCoordsIfCloser(u8 taskId, s16 dx, s16 dy); @@ -239,7 +239,7 @@ static bool8 HiddenItemIsWithinRangeOfPlayer(struct MapEvents * events, u8 taskI return FALSE; } -static void SetUnderfootHiddenItem(u8 taskId, struct HiddenItemStruct hiddenItem) +static void SetUnderfootHiddenItem(u8 taskId, u32 hiddenItem) { s16 *data = gTasks[taskId].data; gSpecialVar_0x8004 = GetHiddenItemAttr(hiddenItem, HIDDEN_ITEM_FLAG); diff --git a/src/link.c b/src/link.c index 52f5aeddb..ac9cf9cfe 100644 --- a/src/link.c +++ b/src/link.c @@ -329,7 +329,7 @@ static void InitLocalLinkPlayer(void) gLocalLinkPlayer.version = gGameVersion + 0x4000; gLocalLinkPlayer.lp_field_2 = 0x8000; gLocalLinkPlayer.name[8] = IsNationalPokedexEnabled(); - if (FlagGet(FLAG_0x844)) + if (FlagGet(FLAG_SYS_CAN_LINK_WITH_RS)) { gLocalLinkPlayer.name[8] |= 0x10; } @@ -1025,7 +1025,7 @@ bool8 IsLinkTaskFinished(void) { if (gWirelessCommType == 1) { - return IsRfuTaskFinished(); + return IsLinkRfuTaskFinished(); } return gLinkCallback == NULL; } diff --git a/src/mail.c b/src/mail.c new file mode 100644 index 000000000..a9cb66683 --- /dev/null +++ b/src/mail.c @@ -0,0 +1,738 @@ +#include "global.h" +#include "malloc.h" +#include "bg.h" +#include "scanline_effect.h" +#include "palette.h" +#include "gpu_regs.h" +#include "window.h" +#include "text_window.h" +#include "main.h" +#include "easy_chat.h" +#include "mail.h" +#include "task.h" +#include "menu.h" +#include "mail_data.h" +#include "player_pc.h" +#include "overworld.h" +#include "help_system.h" +#include "menu_helpers.h" +#include "new_menu_helpers.h" +#include "graphics.h" +#include "pokemon_icon.h" +#include "string_util.h" +#include "strings.h" +#include "constants/items.h" +#include "constants/species.h" + +enum MailIconParam +{ + MAIL_ICON_NONE = 0, + MAIL_ICON_BEAD, + MAIL_ICON_DREAM +}; + +struct MailEcWordLayout +{ + u32 numWordsInLine:2; + u32 lineXoffset:6; + u32 lineHeight:8; +}; + +struct MailAttrStruct +{ + u8 numRows; + u8 nameY; + u8 nameX; + u8 messageTop; + u8 messageLeft; + const struct MailEcWordLayout * linesLayout; +}; + +struct MailGfxData +{ + const void * pal; + const void * tiles; + const void * map; + u32 size; + u16 textpals[2]; +}; + +struct MailViewResources { + u8 messageLinesBuffer[8][26]; + u8 authorNameBuffer[12]; + void (*savedCallback)(void); + void (*showMailCallback)(void); + struct MailStruct *mail; + bool8 messageExists; + u8 nameX; + u8 mailType; + u8 monIconType; + u8 monIconSpriteId; + u8 unused; + u8 mailArrangementType; + void (*copyEasyChatWord)(u8 *dest, u16 word); + void (*convertEasyChatWordsToString)(u8 *dest, const u16 *src, u16 length1, u16 length2); + const struct MailAttrStruct * messageLayout; + u16 bg1TilemapBuffer[BG_SCREEN_SIZE]; + u16 bg2TilemapBuffer[BG_SCREEN_SIZE]; +}; + +static EWRAM_DATA struct MailViewResources * sMailViewResources = NULL; + +static void CB2_InitMailView(void); +static void BufferMailMessage(void); +static void AddMailMessagePrinters(void); +static void VBlankCB_ShowMail(void); +static void CB2_RunShowMailCB(void); +static void ShowMailCB_WaitFadeIn(void); +static void ShowMailCB_WaitButton(void); +static void ShowMailCB_Teardown(void); + +static const struct BgTemplate sBgTemplates[] = { + { + .bg = 0, + .charBaseIndex = 2, + .mapBaseIndex = 31, + .screenSize = 0, + .paletteMode = 0, + .priority = 0, + .baseTile = 0x000 + }, { + .bg = 1, + .charBaseIndex = 0, + .mapBaseIndex = 30, + .screenSize = 0, + .paletteMode = 0, + .priority = 1, + .baseTile = 0x000 + }, { + .bg = 2, + .charBaseIndex = 0, + .mapBaseIndex = 29, + .screenSize = 0, + .paletteMode = 0, + .priority = 2, + .baseTile = 0x000 + } +}; + +static const struct WindowTemplate sWindowTemplates[] = { + { + .bg = 0, + .tilemapLeft = 3, + .tilemapTop = 4, + .width = 24, + .height = 10, + .paletteNum = 15, + .baseBlock = 0x001 + }, { + .bg = 0, + .tilemapLeft = 15, + .tilemapTop = 15, + .width = 13, + .height = 3, + .paletteNum = 15, + .baseBlock = 0x0F2 + }, DUMMY_WIN_TEMPLATE +}; + +static const u8 sTextColor[] = { 0, 10, 11 }; + +static const u16 sGenderPals[][2] = { + { RGB(13, 22, 26), RGB(05, 13, 20) }, + { RGB(28, 15, 17), RGB(20, 06, 14) } +}; + +static const struct MailGfxData sGfxHeaders[] = { + [ITEM_TO_MAIL(ITEM_ORANGE_MAIL)] = { + .pal = gFile_graphics_mail_orange_palette_pal, + .tiles = gFile_graphics_mail_orange_tiles_sheet, + .map = gFile_graphics_mail_orange_map_tilemap, + .size = 0x2c0, + .textpals = { RGB(10, 10, 10), RGB(25, 25, 25) } + }, + [ITEM_TO_MAIL(ITEM_HARBOR_MAIL)] = { + .pal = gFile_graphics_mail_harbor_palette_pal, + .tiles = gFile_graphics_mail_harbor_tiles_sheet, + .map = gFile_graphics_mail_harbor_map_tilemap, + .size = 0x2e0, + .textpals = { RGB(31, 31, 31), RGB(17, 17, 17) } + }, + [ITEM_TO_MAIL(ITEM_GLITTER_MAIL)] = { + .pal = gFile_graphics_mail_glitter_palette_pal, + .tiles = gFile_graphics_mail_glitter_tiles_sheet, + .map = gFile_graphics_mail_glitter_map_tilemap, + .size = 0x400, + .textpals = { RGB(10, 10, 10), RGB(25, 25, 25) } + }, + [ITEM_TO_MAIL(ITEM_MECH_MAIL)] = { + .pal = gFile_graphics_mail_mech_palette_pal, + .tiles = gFile_graphics_mail_mech_tiles_sheet, + .map = gFile_graphics_mail_mech_map_tilemap, + .size = 0x1e0, + .textpals = { RGB(31, 31, 31), RGB(17, 17, 17) } + }, + [ITEM_TO_MAIL(ITEM_WOOD_MAIL)] = { + .pal = gFile_graphics_mail_wood_palette_pal, + .tiles = gFile_graphics_mail_wood_tiles_sheet, + .map = gFile_graphics_mail_wood_map_tilemap, + .size = 0x2e0, + .textpals = { RGB(31, 31, 31), RGB(17, 17, 17) } + }, + [ITEM_TO_MAIL(ITEM_WAVE_MAIL)] = { + .pal = gFile_graphics_mail_wave_palette_pal, + .tiles = gFile_graphics_mail_wave_tiles_sheet, + .map = gFile_graphics_mail_wave_map_tilemap, + .size = 0x300, + .textpals = { RGB(10, 10, 10), RGB(25, 25, 25) } + }, + [ITEM_TO_MAIL(ITEM_BEAD_MAIL)] = { + .pal = gFile_graphics_mail_bead_palette_pal, + .tiles = gFile_graphics_mail_bead_tiles_sheet, + .map = gFile_graphics_mail_bead_map_tilemap, + .size = 0x140, + .textpals = { RGB(31, 31, 31), RGB(17, 17, 17) } + }, + [ITEM_TO_MAIL(ITEM_SHADOW_MAIL)] = { + .pal = gFile_graphics_mail_shadow_palette_pal, + .tiles = gFile_graphics_mail_shadow_tiles_sheet, + .map = gFile_graphics_mail_shadow_map_tilemap, + .size = 0x300, + .textpals = { RGB(31, 31, 31), RGB(17, 17, 17) } + }, + [ITEM_TO_MAIL(ITEM_TROPIC_MAIL)] = { + .pal = gFile_graphics_mail_tropic_palette_pal, + .tiles = gFile_graphics_mail_tropic_tiles_sheet, + .map = gFile_graphics_mail_tropic_map_tilemap, + .size = 0x220, + .textpals = { RGB(10, 10, 10), RGB(25, 25, 25) } + }, + [ITEM_TO_MAIL(ITEM_DREAM_MAIL)] = { + .pal = gFile_graphics_mail_dream_palette_pal, + .tiles = gFile_graphics_mail_dream_tiles_sheet, + .map = gFile_graphics_mail_dream_map_tilemap, + .size = 0x340, + .textpals = { RGB(10, 10, 10), RGB(25, 25, 25) } + }, + [ITEM_TO_MAIL(ITEM_FAB_MAIL)] = { + .pal = gFile_graphics_mail_fab_palette_pal, + .tiles = gFile_graphics_mail_fab_tiles_sheet, + .map = gFile_graphics_mail_fab_map_tilemap, + .size = 0x2a0, + .textpals = { RGB(10, 10, 10), RGB(25, 25, 25) } + }, + [ITEM_TO_MAIL(ITEM_RETRO_MAIL)] = { + .pal = gFile_graphics_mail_retro_palette_pal, + .tiles = gFile_graphics_mail_retro_tiles_sheet, + .map = gFile_graphics_mail_retro_map_tilemap, + .size = 0x520, + .textpals = { RGB(10, 10, 10), RGB(25, 25, 25) } + } +}; + +static const struct MailEcWordLayout sLayout_3x3[] = { + { .numWordsInLine = 3, .lineXoffset = 0, .lineHeight = 16 }, + { .numWordsInLine = 3, .lineXoffset = 0, .lineHeight = 16 }, + { .numWordsInLine = 3, .lineXoffset = 0, .lineHeight = 16 } +}; + +static const struct MailAttrStruct sMessageLayouts_3x3[] = { + [ITEM_TO_MAIL(ITEM_ORANGE_MAIL)] = { + .numRows = 3, + .nameY = 0, + .nameX = 0, + .messageTop = 2, + .messageLeft = 4, + .linesLayout = sLayout_3x3 + }, + [ITEM_TO_MAIL(ITEM_HARBOR_MAIL)] = { + .numRows = 3, + .nameY = 0, + .nameX = 0, + .messageTop = 2, + .messageLeft = 4, + .linesLayout = sLayout_3x3 + }, + [ITEM_TO_MAIL(ITEM_GLITTER_MAIL)] = { + .numRows = 3, + .nameY = 0, + .nameX = 0, + .messageTop = 2, + .messageLeft = 4, + .linesLayout = sLayout_3x3 + }, + [ITEM_TO_MAIL(ITEM_MECH_MAIL)] = { + .numRows = 3, + .nameY = 0, + .nameX = 0, + .messageTop = 2, + .messageLeft = 4, + .linesLayout = sLayout_3x3 + }, + [ITEM_TO_MAIL(ITEM_WOOD_MAIL)] = { + .numRows = 3, + .nameY = 0, + .nameX = 0, + .messageTop = 2, + .messageLeft = 4, + .linesLayout = sLayout_3x3 + }, + [ITEM_TO_MAIL(ITEM_WAVE_MAIL)] = { + .numRows = 3, + .nameY = 0, + .nameX = 0, + .messageTop = 2, + .messageLeft = 4, + .linesLayout = sLayout_3x3 + }, + [ITEM_TO_MAIL(ITEM_BEAD_MAIL)] = { + .numRows = 3, + .nameY = 0, + .nameX = 0, + .messageTop = 2, + .messageLeft = 4, + .linesLayout = sLayout_3x3 + }, + [ITEM_TO_MAIL(ITEM_SHADOW_MAIL)] = { + .numRows = 3, + .nameY = 0, + .nameX = 0, + .messageTop = 2, + .messageLeft = 4, + .linesLayout = sLayout_3x3 + }, + [ITEM_TO_MAIL(ITEM_TROPIC_MAIL)] = { + .numRows = 3, + .nameY = 0, + .nameX = 0, + .messageTop = 2, + .messageLeft = 4, + .linesLayout = sLayout_3x3 + }, + [ITEM_TO_MAIL(ITEM_DREAM_MAIL)] = { + .numRows = 3, + .nameY = 0, + .nameX = 0, + .messageTop = 2, + .messageLeft = 4, + .linesLayout = sLayout_3x3 + }, + [ITEM_TO_MAIL(ITEM_FAB_MAIL)] = { + .numRows = 3, + .nameY = 8, + .nameX = 0, + .messageTop = 2, + .messageLeft = 4, + .linesLayout = sLayout_3x3 + }, + [ITEM_TO_MAIL(ITEM_RETRO_MAIL)] = { + .numRows = 3, + .nameY = 0, + .nameX = 0, + .messageTop = 2, + .messageLeft = 0, + .linesLayout = sLayout_3x3 + }, +}; + +static const struct MailEcWordLayout sLayout_5x2[] = { + { .numWordsInLine = 2, .lineXoffset = 0, .lineHeight = 16 }, + { .numWordsInLine = 2, .lineXoffset = 0, .lineHeight = 16 }, + { .numWordsInLine = 2, .lineXoffset = 0, .lineHeight = 16 }, + { .numWordsInLine = 2, .lineXoffset = 0, .lineHeight = 16 }, + { .numWordsInLine = 1, .lineXoffset = 0, .lineHeight = 16 } +}; + +static const struct MailAttrStruct sMessageLayouts_5x2[] = { + [ITEM_TO_MAIL(ITEM_ORANGE_MAIL)] = { + .numRows = 5, + .nameY = 0, + .nameX = 8, + .messageTop = 3, + .messageLeft = 8, + .linesLayout = sLayout_5x2 + }, + [ITEM_TO_MAIL(ITEM_HARBOR_MAIL)] = { + .numRows = 5, + .nameY = 3, + .nameX = 14, + .messageTop = 3, + .messageLeft = 8, + .linesLayout = sLayout_5x2 + }, + [ITEM_TO_MAIL(ITEM_GLITTER_MAIL)] = { + .numRows = 5, + .nameY = 0, + .nameX = 16, + .messageTop = 3, + .messageLeft = 8, + .linesLayout = sLayout_5x2 + }, + [ITEM_TO_MAIL(ITEM_MECH_MAIL)] = { + .numRows = 5, + .nameY = 0, + .nameX = 14, + .messageTop = 3, + .messageLeft = 8, + .linesLayout = sLayout_5x2 + }, + [ITEM_TO_MAIL(ITEM_WOOD_MAIL)] = { + .numRows = 5, + .nameY = 3, + .nameX = 12, + .messageTop = 3, + .messageLeft = 8, + .linesLayout = sLayout_5x2 + }, + [ITEM_TO_MAIL(ITEM_WAVE_MAIL)] = { + .numRows = 5, + .nameY = 0, + .nameX = 18, + .messageTop = 3, + .messageLeft = 8, + .linesLayout = sLayout_5x2 + }, + [ITEM_TO_MAIL(ITEM_BEAD_MAIL)] = { + .numRows = 5, + .nameY = 0, + .nameX = 20, + .messageTop = 3, + .messageLeft = 8, + .linesLayout = sLayout_5x2 + }, + [ITEM_TO_MAIL(ITEM_SHADOW_MAIL)] = { + .numRows = 5, + .nameY = 6, + .nameX = 20, + .messageTop = 3, + .messageLeft = 8, + .linesLayout = sLayout_5x2 + }, + [ITEM_TO_MAIL(ITEM_TROPIC_MAIL)] = { + .numRows = 5, + .nameY = 0, + .nameX = 16, + .messageTop = 3, + .messageLeft = 8, + .linesLayout = sLayout_5x2 + }, + [ITEM_TO_MAIL(ITEM_DREAM_MAIL)] = { + .numRows = 5, + .nameY = 0, + .nameX = 14, + .messageTop = 3, + .messageLeft = 8, + .linesLayout = sLayout_5x2 + }, + [ITEM_TO_MAIL(ITEM_FAB_MAIL)] = { + .numRows = 5, + .nameY = 8, + .nameX = 16, + .messageTop = 3, + .messageLeft = 8, + .linesLayout = sLayout_5x2 + }, + [ITEM_TO_MAIL(ITEM_RETRO_MAIL)] = { + .numRows = 5, + .nameY = 0, + .nameX = 16, + .messageTop = 3, + .messageLeft = 8, + .linesLayout = sLayout_5x2 + }, +}; + +void ReadMail(struct MailStruct * mail, void (*savedCallback)(void), bool8 messageExists) +{ + u16 sp0; + u16 species; + sMailViewResources = AllocZeroed(sizeof(struct MailViewResources)); + sMailViewResources->unused = 2; + sMailViewResources->mailArrangementType = 1; + sMailViewResources->copyEasyChatWord = CopyEasyChatWord; + sMailViewResources->convertEasyChatWordsToString = ConvertEasyChatWordsToString; + if (IS_ITEM_MAIL(mail->itemId)) + { + sMailViewResources->mailType = ITEM_TO_MAIL(mail->itemId); + } + else + { + sMailViewResources->mailType = ITEM_TO_MAIL(ITEM_ORANGE_MAIL); + messageExists = FALSE; + } + switch (sMailViewResources->mailArrangementType) + { + case 0: + default: + sMailViewResources->messageLayout = &sMessageLayouts_3x3[sMailViewResources->mailType]; + break; + case 1: + sMailViewResources->messageLayout = &sMessageLayouts_5x2[sMailViewResources->mailType]; + break; + } + species = MailSpeciesToSpecies(mail->species, &sp0); + if (species != SPECIES_NONE && species < NUM_SPECIES) + { + switch (sMailViewResources->mailType) + { + default: + sMailViewResources->monIconType = MAIL_ICON_NONE; + break; + case ITEM_TO_MAIL(ITEM_BEAD_MAIL): + sMailViewResources->monIconType = MAIL_ICON_BEAD; + break; + case ITEM_TO_MAIL(ITEM_DREAM_MAIL): + sMailViewResources->monIconType = MAIL_ICON_DREAM; + break; + } + } + else + { + sMailViewResources->monIconType = MAIL_ICON_NONE; + } + sMailViewResources->mail = mail; + sMailViewResources->savedCallback = savedCallback; + sMailViewResources->messageExists = messageExists; + SetMainCallback2(CB2_InitMailView); +} + +static bool8 DoInitMailView(void) +{ + u16 iconId; + + switch (gMain.state) + { + case 0: + SetVBlankCallback(NULL); + ScanlineEffect_Stop(); + SetGpuReg(REG_OFFSET_DISPCNT, 0); + if (gPlayerPcMenuManager.unk_9 == 0) + HelpSystem_SetSomeVariable2(34); + else + HelpSystem_SetSomeVariable2(30); + break; + case 1: + CpuFill16(0, (void *)OAM, OAM_SIZE); + break; + case 2: + ResetPaletteFade(); + break; + case 3: + ResetTasks(); + break; + case 4: + ResetSpriteData(); + break; + case 5: + FreeAllSpritePalettes(); + ResetTempTileDataBuffers(); + SetGpuReg(REG_OFFSET_BG0HOFS, 0); + SetGpuReg(REG_OFFSET_BG0VOFS, 0); + SetGpuReg(REG_OFFSET_BG1HOFS, 0); + SetGpuReg(REG_OFFSET_BG1VOFS, 0); + SetGpuReg(REG_OFFSET_BG2VOFS, 0); + SetGpuReg(REG_OFFSET_BG2HOFS, 0); + SetGpuReg(REG_OFFSET_BG3HOFS, 0); + SetGpuReg(REG_OFFSET_BG3VOFS, 0); + SetGpuReg(REG_OFFSET_BLDCNT, 0); + SetGpuReg(REG_OFFSET_BLDALPHA, 0); + break; + case 6: + ResetBgsAndClearDma3BusyFlags(FALSE); + InitBgsFromTemplates(0, sBgTemplates, NELEMS(sBgTemplates)); + SetBgTilemapBuffer(1, sMailViewResources->bg1TilemapBuffer); + SetBgTilemapBuffer(2, sMailViewResources->bg2TilemapBuffer); + break; + case 7: + InitWindows(sWindowTemplates); + DeactivateAllTextPrinters(); + break; + case 8: + DecompressAndCopyTileDataToVram(1, sGfxHeaders[sMailViewResources->mailType].tiles, 0, 0x000, 0); + break; + case 9: + if (FreeTempTileDataBuffersIfPossible()) + return FALSE; + break; + case 10: + FillBgTilemapBufferRect_Palette0(0, 0x000, 0, 0, 30, 20); + FillBgTilemapBufferRect_Palette0(2, 0x001, 0, 0, 30, 20); + CopyToBgTilemapBuffer(1, sGfxHeaders[sMailViewResources->mailType].map, 0, 0x000); + break; + case 11: + CopyBgTilemapBufferToVram(0); + CopyBgTilemapBufferToVram(1); + CopyBgTilemapBufferToVram(2); + break; + case 12: + LoadPalette(stdpal_get(0), 0xF0, 0x20); + gPlttBufferUnfaded[15 * 16 + 10] = sGfxHeaders[sMailViewResources->mailType].textpals[0]; + gPlttBufferFaded[15 * 16 + 10] = sGfxHeaders[sMailViewResources->mailType].textpals[0]; + gPlttBufferUnfaded[15 * 16 + 11] = sGfxHeaders[sMailViewResources->mailType].textpals[1]; + gPlttBufferFaded[15 * 16 + 11] = sGfxHeaders[sMailViewResources->mailType].textpals[1]; + LoadPalette(sGfxHeaders[sMailViewResources->mailType].pal, 0x00, 0x20); + gPlttBufferUnfaded[0 * 16 + 10] = sGenderPals[gSaveBlock2Ptr->playerGender][0]; + gPlttBufferFaded[0 * 16 + 10] = sGenderPals[gSaveBlock2Ptr->playerGender][0]; + gPlttBufferUnfaded[0 * 16 + 11] = sGenderPals[gSaveBlock2Ptr->playerGender][1]; + gPlttBufferFaded[0 * 16 + 11] = sGenderPals[gSaveBlock2Ptr->playerGender][1]; + break; + case 13: + if (sMailViewResources->messageExists) + BufferMailMessage(); + break; + case 14: + if (sMailViewResources->messageExists) + { + AddMailMessagePrinters(); + RunTextPrinters(); + } + break; + case 15: + if (sub_8058244() == TRUE) + return FALSE; + break; + case 16: + SetVBlankCallback(VBlankCB_ShowMail); + gPaletteFade.bufferTransferDisabled = TRUE; + break; + case 17: + iconId = MailSpeciesToIconSpecies(sMailViewResources->mail->species); + switch (sMailViewResources->monIconType) + { + case MAIL_ICON_BEAD: + LoadMonIconPalette(iconId); + sMailViewResources->monIconSpriteId = CreateMonIcon_HandleDeoxys(iconId, SpriteCallbackDummy, 0x60, 0x80, 0, FALSE); + break; + case MAIL_ICON_DREAM: + LoadMonIconPalette(iconId); + sMailViewResources->monIconSpriteId = CreateMonIcon_HandleDeoxys(iconId, SpriteCallbackDummy, 0x28, 0x80, 0, FALSE); + break; + } + break; + case 18: + SetGpuReg(REG_OFFSET_DISPCNT, DISPCNT_MODE_0 | DISPCNT_OBJ_1D_MAP | DISPCNT_OBJ_ON); + ShowBg(0); + ShowBg(1); + ShowBg(2); + BeginNormalPaletteFade(0xFFFFFFFF, 0, 16, 0, RGB_BLACK); + gPaletteFade.bufferTransferDisabled = FALSE; + sMailViewResources->showMailCallback = ShowMailCB_WaitFadeIn; + return TRUE; + default: + return FALSE; + } + gMain.state++; + return FALSE; +} + +static void CB2_InitMailView(void) +{ + do + { + if (DoInitMailView() == TRUE) + { + SetMainCallback2(CB2_RunShowMailCB); + break; + } + } while (MenuHelpers_LinkSomething() != TRUE); +} + +static void BufferMailMessage(void) +{ + u16 i; + u8 j = 0; + for (i = 0; i < sMailViewResources->messageLayout->numRows; i++) + { + ConvertEasyChatWordsToString(sMailViewResources->messageLinesBuffer[i], &sMailViewResources->mail->words[j], sMailViewResources->messageLayout->linesLayout[i].numWordsInLine, 1); + j += sMailViewResources->messageLayout->linesLayout[i].numWordsInLine; + } + if (sMailViewResources->mailArrangementType == 0) + { + StringCopy(StringCopy(sMailViewResources->authorNameBuffer, sMailViewResources->mail->playerName), gText_From); // ??? + sMailViewResources->nameX = sMailViewResources->messageLayout->nameX + 0x60 - 8 * StringLength(sMailViewResources->authorNameBuffer); + } + else + { + StringCopy(sMailViewResources->authorNameBuffer, sMailViewResources->mail->playerName); + if (StringLength(sMailViewResources->authorNameBuffer) < 6) + ConvertInternationalString(sMailViewResources->authorNameBuffer, LANGUAGE_JAPANESE); + sMailViewResources->nameX = sMailViewResources->messageLayout->nameX; + } +} + +static void AddMailMessagePrinters(void) +{ + u8 y = 0; + u16 i; + u32 width; + + PutWindowTilemap(0); + PutWindowTilemap(1); + FillWindowPixelBuffer(0, PIXEL_FILL(0)); + FillWindowPixelBuffer(1, PIXEL_FILL(0)); + for (i = 0; i < sMailViewResources->messageLayout->numRows; i++) + { + if (sMailViewResources->messageLinesBuffer[i][0] != EOS && sMailViewResources->messageLinesBuffer[i][0] != CHAR_SPACE) + { + AddTextPrinterParameterized3(0, 1, sMailViewResources->messageLayout->linesLayout[i].lineXoffset + sMailViewResources->messageLayout->messageLeft, y + sMailViewResources->messageLayout->messageTop, sTextColor, 0, sMailViewResources->messageLinesBuffer[i]); + y += sMailViewResources->messageLayout->linesLayout[i].lineHeight; + } + } + width = GetStringWidth(1, gText_From, 0); + AddTextPrinterParameterized3(1, 1, sMailViewResources->nameX, sMailViewResources->messageLayout->nameY, sTextColor, 0, gText_From); + AddTextPrinterParameterized3(1, 1, sMailViewResources->nameX + width, sMailViewResources->messageLayout->nameY, sTextColor, 0, sMailViewResources->authorNameBuffer); + CopyWindowToVram(0, 3); + CopyWindowToVram(1, 3); +} + +static void VBlankCB_ShowMail(void) +{ + LoadOam(); + ProcessSpriteCopyRequests(); + TransferPlttBuffer(); +} + +static void CB2_RunShowMailCB(void) +{ + if (sMailViewResources->monIconType != MAIL_ICON_NONE) + { + AnimateSprites(); + BuildOamBuffer(); + } + sMailViewResources->showMailCallback(); +} + +static void ShowMailCB_WaitFadeIn(void) +{ + if (!UpdatePaletteFade()) + sMailViewResources->showMailCallback = ShowMailCB_WaitButton; +} + +static void ShowMailCB_WaitButton(void) +{ + if (JOY_NEW(A_BUTTON | B_BUTTON)) + { + BeginNormalPaletteFade(0xFFFFFFFF, 0, 0, 16, RGB_BLACK); + sMailViewResources->showMailCallback = ShowMailCB_Teardown; + } +} + +static void ShowMailCB_Teardown(void) +{ + if (!UpdatePaletteFade()) + { + SetMainCallback2(sMailViewResources->savedCallback); + switch (sMailViewResources->monIconType) + { + case MAIL_ICON_BEAD: + case MAIL_ICON_DREAM: + FreeMonIconPalette(MailSpeciesToIconSpecies(sMailViewResources->mail->species)); + DestroyMonIcon(&gSprites[sMailViewResources->monIconSpriteId]); + break; + } + *sMailViewResources = (struct MailViewResources){}; + ResetPaletteFade(); + FreeAllWindowBuffers(); + FREE_AND_SET_NULL(sMailViewResources); + } +} diff --git a/src/main_menu.c b/src/main_menu.c index 72056d750..542bcf8ea 100644 --- a/src/main_menu.c +++ b/src/main_menu.c @@ -240,7 +240,7 @@ static void Task_SetWin0BldRegsAndCheckSaveFile(u8 taskId) { case SAVE_STATUS_OK: LoadUserFrameToBg(0); - if (Flag_0x839_IsSet() == TRUE) + if (IsMysteryGiftEnabled() == TRUE) { gTasks[taskId].tMenuType = MAIN_MENU_MYSTERYGIFT; } @@ -259,7 +259,7 @@ static void Task_SetWin0BldRegsAndCheckSaveFile(u8 taskId) SetStdFrame0OnBg(0); gTasks[taskId].tMenuType = MAIN_MENU_CONTINUE; PrintSaveErrorStatus(taskId, gText_SaveFileCorruptedPrevWillBeLoaded); - if (Flag_0x839_IsSet() == TRUE) + if (IsMysteryGiftEnabled() == TRUE) { gTasks[taskId].tMenuType = MAIN_MENU_MYSTERYGIFT; } @@ -652,7 +652,7 @@ static void PrintDexCount(void) u8 strbuf[30]; u8 *ptr; u16 dexcount; - if (FlagGet(FLAG_0x829) == TRUE) + if (FlagGet(FLAG_SYS_POKEDEX_GET) == TRUE) { if (IsNationalPokedexEnabled()) dexcount = GetNationalPokedexCount(FLAG_GET_CAUGHT); @@ -671,7 +671,7 @@ static void PrintBadgeCount(void) u8 *ptr; u32 flagId; u8 nbadges = 0; - for (flagId = FLAG_UNK820; flagId < FLAG_UNK820 + 8; flagId++) + for (flagId = FLAG_BADGE01_GET; flagId < FLAG_BADGE01_GET + 8; flagId++) { if (FlagGet(flagId)) nbadges++; diff --git a/src/map_obj_lock.c b/src/map_obj_lock.c index f89819647..e28872fd4 100644 --- a/src/map_obj_lock.c +++ b/src/map_obj_lock.c @@ -38,7 +38,7 @@ bool8 sub_8069590(void) void ScriptFreezeMapObjects(void) { - player_bitmagic(); + FreezeEventObjects(); CreateTask(sub_8069570, 80); } diff --git a/src/menews_jisan.c b/src/menews_jisan.c index 2f6172bbc..f38de9cfd 100644 --- a/src/menews_jisan.c +++ b/src/menews_jisan.c @@ -3,16 +3,17 @@ #include "random.h" #include "event_data.h" #include "menews_jisan.h" +#include "constants/items.h" -static u32 sub_8146D74(struct MysteryEventStruct *); -static void sub_8146DD8(struct MysteryEventStruct *); -static u32 sub_8146E0C(struct MysteryEventStruct *); -static void sub_8146DA0(struct MysteryEventStruct *); -static void sub_8146D94(struct MysteryEventStruct *); +static u32 GetMENewsJisanRewardItem(struct MENewsJisanStruct *); +static void MENewsJisanIncrementCounterUnk0_5(struct MENewsJisanStruct *); +static u32 GetMENewsJisanState(struct MENewsJisanStruct *); +static void MENewsJisanIncrementCounterUnk0_2(struct MENewsJisanStruct *); +static void MENewsJisanResetCounterUnk0_2(struct MENewsJisanStruct *); -void GenerateRandomNews(u32 a0) +void MENewsJisan_SetRandomReward(u32 a0) { - struct MysteryEventStruct *r5 = sub_8143D94(); + struct MENewsJisanStruct *r5 = GetMENewsJisanStructPtr(); r5->unk_0_0 = a0; switch (a0) @@ -21,68 +22,68 @@ void GenerateRandomNews(u32 a0) break; case 1: case 2: - r5->unk_1 = (Random() % 15) + 16; + r5->berry = (Random() % 15) + ITEM_TO_BERRY(ITEM_RAZZ_BERRY); break; case 3: - r5->unk_1 = (Random() % 15) + 1; + r5->berry = (Random() % 15) + ITEM_TO_BERRY(ITEM_CHERI_BERRY); break; } } -void sub_8146C88(void) +void MENewsJisanReset(void) { - struct MysteryEventStruct *r5 = sub_8143D94(); + struct MENewsJisanStruct *r5 = GetMENewsJisanStructPtr(); r5->unk_0_0 = 0; r5->unk_0_2 = 0; r5->unk_0_5 = 0; - r5->unk_1 = 0; - VarSet(VAR_0x4028, 0); + r5->berry = 0; + VarSet(VAR_MENEWS_JISAN_STEP_COUNTER, 0); } -void sub_8146CA4(void) +void MENewsJisanStepCounter(void) { - u16 *r4 = GetVarPointer(VAR_0x4028); - struct MysteryEventStruct *r2 = sub_8143D94(); - struct MysteryEventStruct r0 = *r2; + u16 *r4 = GetVarPointer(VAR_MENEWS_JISAN_STEP_COUNTER); + struct MENewsJisanStruct *r2 = GetMENewsJisanStructPtr(); + struct MENewsJisanStruct r0 = *r2; - if ((u8)r0.unk_0_5 > 4 && ++(*r4) > 0x1f3) + if ((u8)r0.unk_0_5 > 4 && ++(*r4) >= 500) { r2->unk_0_5 = 0; *r4 = 0; } } -u16 sub_8146CE8(void) +u16 Special_GetMENewsJisanItemAndState(void) { u16 *r6 = &gSpecialVar_Result; - struct MysteryEventStruct *r4 = sub_8143D94(); + struct MENewsJisanStruct *r4 = GetMENewsJisanStructPtr(); u16 r5; - if (!Flag_0x839_IsSet() || !ValidateReceivedWonderNews()) + if (!IsMysteryGiftEnabled() || !ValidateReceivedWonderNews()) return 0; - r5 = sub_8146E0C(r4); + r5 = GetMENewsJisanState(r4); switch (r5) { case 0: break; case 1: - *r6 = sub_8146D74(r4); + *r6 = GetMENewsJisanRewardItem(r4); break; case 2: - *r6 = sub_8146D74(r4); + *r6 = GetMENewsJisanRewardItem(r4); break; case 3: break; case 4: - *r6 = sub_8146D74(r4); - sub_8146DA0(r4); + *r6 = GetMENewsJisanRewardItem(r4); + MENewsJisanIncrementCounterUnk0_2(r4); break; case 5: - *r6 = sub_8146D74(r4); - sub_8146D94(r4); + *r6 = GetMENewsJisanRewardItem(r4); + MENewsJisanResetCounterUnk0_2(r4); break; case 6: break; @@ -91,39 +92,39 @@ u16 sub_8146CE8(void) return r5; } -static u32 sub_8146D74(struct MysteryEventStruct *a0) +static u32 GetMENewsJisanRewardItem(struct MENewsJisanStruct *a0) { u32 r4; a0->unk_0_0 = 0; - r4 = a0->unk_1 + 0x84; - a0->unk_1 = 0; - sub_8146DD8(a0); + r4 = a0->berry + FIRST_BERRY_INDEX - 1; + a0->berry = 0; + MENewsJisanIncrementCounterUnk0_5(a0); return r4; } -static void sub_8146D94(struct MysteryEventStruct *a0) +static void MENewsJisanResetCounterUnk0_2(struct MENewsJisanStruct *a0) { a0->unk_0_2 = 0; } -static void sub_8146DA0(struct MysteryEventStruct *a0) +static void MENewsJisanIncrementCounterUnk0_2(struct MENewsJisanStruct *a0) { a0->unk_0_2++; if ((u8)a0->unk_0_2 > 4) a0->unk_0_2 = 4; } -static void sub_8146DD8(struct MysteryEventStruct *a0) +static void MENewsJisanIncrementCounterUnk0_5(struct MENewsJisanStruct *a0) { a0->unk_0_5++; if ((u8)a0->unk_0_5 > 5) a0->unk_0_5 = 5; } -static u32 sub_8146E0C(struct MysteryEventStruct *a0) +static u32 GetMENewsJisanState(struct MENewsJisanStruct *a0) { - struct MysteryEventStruct r0; + struct MENewsJisanStruct r0; if ((u8)a0->unk_0_5 == 5) return 6; diff --git a/src/metatile_behavior.c b/src/metatile_behavior.c index 62a102a09..bca99d38f 100644 --- a/src/metatile_behavior.c +++ b/src/metatile_behavior.c @@ -69,7 +69,7 @@ bool8 MetatileBehavior_IsMB21OrSand(u8 metatileBehavior) return FALSE; } -bool8 MetatileBehavior_IsMB21OrWaterfallBottom(u8 metatileBehavior) +bool8 MetatileBehavior_IsSandOrDeepSand(u8 metatileBehavior) { if(metatileBehavior == MB_21 || metatileBehavior == MB_WATERFALL_BOTTOM) return TRUE; @@ -428,11 +428,11 @@ bool8 MetatileBehavior_IsTallGrass_2(u8 metatileBehavior) return FALSE; } -bool8 MetatileBehavior_ReturnFalse_3(u8 metatileBehavior) { return FALSE; } +bool8 MetatileBehavior_IsLongGrass(u8 metatileBehavior) { return FALSE; } bool8 MetatileBehavior_ReturnFalse_4(u8 metatileBehavior) { return FALSE; } bool8 MetatileBehavior_ReturnFalse_5(u8 metatileBehavior) { return FALSE; } -bool8 MetatileBehavior_ReturnFalse_6(u8 metatileBehavior) { return FALSE; } -bool8 MetatileBehavior_ReturnFalse_7(u8 metatileBehavior) { return FALSE; } +bool8 MetatileBehavior_IsBridge(u8 metatileBehavior) { return FALSE; } +bool8 MetatileBehavior_GetBridgeType(u8 metatileBehavior) { return FALSE; } bool8 MetatileBehavior_UnusedIsMB_01(u8 metatileBehavior) { @@ -450,7 +450,7 @@ bool8 MetatileBehavior_UnusedIsTallGrass(u8 metatileBehavior) return FALSE; } -bool8 MetatileBehavior_IsMB0B(u8 metatileBehavior) +bool8 MetatileBehavior_IsIndoorEncounter(u8 metatileBehavior) { if(metatileBehavior == MB_0B) return TRUE; @@ -458,7 +458,7 @@ bool8 MetatileBehavior_IsMB0B(u8 metatileBehavior) return FALSE; } -bool8 MetatileBehavior_IsMB0C(u8 metatileBehavior) +bool8 MetatileBehavior_IsMountain(u8 metatileBehavior) { if(metatileBehavior == MB_0C) return TRUE; diff --git a/src/mevent.c b/src/mevent.c index f1c9d8a4c..dc8df05d0 100644 --- a/src/mevent.c +++ b/src/mevent.c @@ -423,7 +423,7 @@ void sub_8143910(u8 taskId) } break; case 15: - data->t0E = ValidateTrainerTowerData((struct TrainerTowerData *)gDecompressionBuffer); + data->t0E = ValidateTrainerTowerData((struct EReaderTrainerHillSet *)gDecompressionBuffer); sub_800AA80(data->t0E); data->state = 16; break; @@ -437,7 +437,7 @@ void sub_8143910(u8 taskId) } break; case 17: - if (CEReaderTool_SaveTrainerTower((struct TrainerTowerData *)gDecompressionBuffer)) + if (CEReaderTool_SaveTrainerTower((struct EReaderTrainerHillSet *)gDecompressionBuffer)) { AddTextPrinterToWindow1(gUnknown_841DE99); ResetDelayTimer(&data->t00); @@ -505,7 +505,7 @@ struct MEventBuffer_3430_Sub * sav1_get_mevent_buffer_2(void) return &gSaveBlock1Ptr->unk_3120.buffer_310.data; } -struct MysteryEventStruct * sub_8143D94(void) +struct MENewsJisanStruct * GetMENewsJisanStructPtr(void) { return &gSaveBlock1Ptr->unk_3120.unk_340; } @@ -562,8 +562,8 @@ void sub_8143E9C(void) void sub_8143ED0(void) { - CpuFill32(0, sub_8143D94(), sizeof(struct MysteryEventStruct)); - sub_8146C88(); + CpuFill32(0, GetMENewsJisanStructPtr(), sizeof(struct MENewsJisanStruct)); + MENewsJisanReset(); } bool32 sub_8143EF4(const u8 * src) @@ -588,7 +588,7 @@ void DestroyWonderCard(void) ClearRamScript(); sub_806E2D0(); sub_806E370(); - sub_80E7524(gSaveBlock2Ptr->unk_B0.field_3F0); + sub_80E7524(&gSaveBlock2Ptr->unk_B0.field_3F0); } bool32 sub_8143F68(const struct MEventBuffer_32E0_Sub * data) diff --git a/src/mevent_8145654.c b/src/mevent_8145654.c index 9c03dc0d5..e42b49627 100644 --- a/src/mevent_8145654.c +++ b/src/mevent_8145654.c @@ -398,7 +398,7 @@ void sub_8146060(void) gUnknown_203F3C8->unk_017C = 0xFF; if (gUnknown_203F3C8->unk_014C.unk_06 != SPECIES_NONE) { - gUnknown_203F3C8->unk_017C = sub_8096ECC(sub_8096FD4(gUnknown_203F3C8->unk_014C.unk_06), SpriteCallbackDummy, 0xDC, 0x14, 0, FALSE); + gUnknown_203F3C8->unk_017C = CreateMonIcon_HandleDeoxys(MailSpeciesToIconSpecies(gUnknown_203F3C8->unk_014C.unk_06), SpriteCallbackDummy, 0xDC, 0x14, 0, FALSE); gSprites[gUnknown_203F3C8->unk_017C].oam.priority = 2; } if (gUnknown_203F3C8->unk_0000.unk_09 != 0 && gUnknown_203F3C8->unk_0000.unk_08_0 == 1) @@ -412,7 +412,7 @@ void sub_8146060(void) gUnknown_203F3C8->unk_017D[r7][0] = CreateSprite(&gUnknown_8467FA0, 0xd8 - 32 * r7, 0x90, 8); if (gUnknown_203F3C8->unk_014C.unk_08[0][r7] != 0) { - gUnknown_203F3C8->unk_017D[r7][1] = sub_8096ECC(sub_8096FD4(gUnknown_203F3C8->unk_014C.unk_08[0][r7]), SpriteCallbackDummy, 0xd8 - 32 * r7, 0x88, 0, 0); + gUnknown_203F3C8->unk_017D[r7][1] = CreateMonIcon_HandleDeoxys(MailSpeciesToIconSpecies(gUnknown_203F3C8->unk_014C.unk_08[0][r7]), SpriteCallbackDummy, 0xd8 - 32 * r7, 0x88, 0, 0); gSprites[gUnknown_203F3C8->unk_017D[r7][1]].oam.priority = 2; } } @@ -423,7 +423,7 @@ void sub_81461D8(void) { u8 r6 = 0; if (gUnknown_203F3C8->unk_017C != 0xFF) - sub_8097070(&gSprites[gUnknown_203F3C8->unk_017C]); + DestroyMonIcon(&gSprites[gUnknown_203F3C8->unk_017C]); if (gUnknown_203F3C8->unk_0000.unk_09 != 0 && gUnknown_203F3C8->unk_0000.unk_08_0 == 1) { for (; r6 < gUnknown_203F3C8->unk_0000.unk_09; r6++) @@ -435,7 +435,7 @@ void sub_81461D8(void) // if (gUnknown_203F3C8->unk_017D[r6][1] != 0xFF) if (gUnknown_203F3C8->unk_017D[r6][0] != 0xFF) { - sub_8097070(&gSprites[gUnknown_203F3C8->unk_017D[r6][1]]); + DestroyMonIcon(&gSprites[gUnknown_203F3C8->unk_017D[r6][1]]); } } } diff --git a/src/mevent_server.c b/src/mevent_server.c index 4e2b7280d..9fe9e9e79 100644 --- a/src/mevent_server.c +++ b/src/mevent_server.c @@ -226,7 +226,7 @@ static u32 ish_mainseq_4(struct mevent_client * svr) sub_8069EA4(svr->recvBuffer, 1000); break; case 18: - memcpy(gSaveBlock2Ptr->unk_B0.field_3F0, svr->recvBuffer, 0xbc); + memcpy(&gSaveBlock2Ptr->unk_B0.field_3F0, svr->recvBuffer, sizeof(struct BattleTowerEReaderTrainer)); ValidateEReaderTrainer(); break; case 21: diff --git a/src/mystery_event_script.c b/src/mystery_event_script.c index 26cbdb145..146595272 100644 --- a/src/mystery_event_script.c +++ b/src/mystery_event_script.c @@ -281,7 +281,7 @@ bool8 MEScrCmd_givepokemon(struct ScriptContext *ctx) bool8 MEScrCmd_addtrainer(struct ScriptContext *ctx) { u32 data = ScriptReadWord(ctx) - ctx->data[1] + ctx->data[0]; - memcpy(gSaveBlock2Ptr->unk_B0.field_3F0, (void *)data, 0xBC); + memcpy(&gSaveBlock2Ptr->unk_B0.field_3F0, (void *)data, sizeof(struct BattleTowerEReaderTrainer)); ValidateEReaderTrainer(); StringExpandPlaceholders(gStringVar4, gText_MysteryGiftNewTrainer); ctx->data[2] = 2; diff --git a/src/mystery_gift_menu.c b/src/mystery_gift_menu.c index 395c4e374..13a6d37e2 100644 --- a/src/mystery_gift_menu.c +++ b/src/mystery_gift_menu.c @@ -1374,7 +1374,7 @@ void task00_mystery_gift(u8 taskId) } break; case 13: - if (IsRfuTaskFinished()) + if (IsLinkRfuTaskFinished()) { DestroyWirelessStatusIndicatorSprite(); data->state = 14; @@ -1412,11 +1412,11 @@ void task00_mystery_gift(u8 taskId) { if (data->source == 1) { - GenerateRandomNews(1); + MENewsJisan_SetRandomReward(1); } else { - GenerateRandomNews(2); + MENewsJisan_SetRandomReward(2); } } if (sp0 == 0) @@ -1650,7 +1650,7 @@ void task00_mystery_gift(u8 taskId) data->state = 34; break; case 34: - if (IsRfuTaskFinished()) + if (IsLinkRfuTaskFinished()) { DestroyWirelessStatusIndicatorSprite(); data->state = 35; @@ -1661,7 +1661,7 @@ void task00_mystery_gift(u8 taskId) { if (data->source == 1 && data->prevPromptWindowId == 3) { - GenerateRandomNews(3); + MENewsJisan_SetRandomReward(3); data->state = 17; } else diff --git a/src/new_game.c b/src/new_game.c index efeea13cc..e27c862bb 100644 --- a/src/new_game.c +++ b/src/new_game.c @@ -25,6 +25,7 @@ #include "easy_chat.h" #include "union_room_chat.h" #include "mevent.h" +#include "renewable_hidden_items.h" #include "trainer_tower.h" #include "script.h" #include "berry_powder.h" @@ -102,7 +103,7 @@ void ResetMenuAndMonGlobals(void) BerryPouch_CursorResetToTop(); sub_811089C(); sub_8083214(Random()); - sub_806E6FC(); + ResetSpecialVars(); } void NewGameInitData(void) @@ -145,7 +146,7 @@ void NewGameInitData(void) copy_strings_to_sav1(); ResetMiniGamesResults(); sub_8143D24(); - sub_815D838(); + SetAllRenewableItemFlags(); WarpToPlayersRoom(); ScriptContext2_RunNewScript(EventScript_ResetAllMapFlags); StringCopy(gSaveBlock1Ptr->rivalName, rivalName); diff --git a/src/oak_speech.c b/src/oak_speech.c index d3b8b8ff0..c39ff262e 100644 --- a/src/oak_speech.c +++ b/src/oak_speech.c @@ -24,6 +24,7 @@ #include "math_util.h" #include "overworld.h" #include "random.h" +#include "data.h" #include "oak_speech.h" #include "constants/species.h" #include "constants/songs.h" @@ -110,9 +111,6 @@ extern const u8 gText_ABUTTONNext_BBUTTONBack[]; extern const u8 gText_Boy[]; extern const u8 gText_Girl[]; -extern const struct CompressedSpriteSheet gUnknown_8235194[]; -extern const struct CompressedSpritePalette gUnknown_82373F4; - ALIGNED(4) static const u16 sHelpDocsPalette[] = INCBIN_U16("data/oak_speech/help_docs_palette.gbapal"); static const u32 sOakSpeechGfx_GameStartHelpUI[] = INCBIN_U32("data/oak_speech/oak_speech_gfx_game_start_help_u_i.4bpp.lz"); static const u32 sNewGameAdventureIntroTilemap[] = INCBIN_U32("data/oak_speech/new_game_adventure_intro_tilemap.bin.lz"); @@ -1612,8 +1610,8 @@ static void CreateNidoranFSprite(u8 taskId) { u8 spriteId; - DecompressPicFromTable(gUnknown_8235194, OakSpeechNidoranFGetBuffer(0), SPECIES_NIDORAN_F); - LoadCompressedSpritePaletteUsingHeap(&gUnknown_82373F4); + DecompressPicFromTable(&gMonFrontPicTable[SPECIES_NIDORAN_F], OakSpeechNidoranFGetBuffer(0), SPECIES_NIDORAN_F); + LoadCompressedSpritePaletteUsingHeap(&gMonPaletteTable[SPECIES_NIDORAN_F]); SetMultiuseSpriteTemplateToPokemon(SPECIES_NIDORAN_F, 0); spriteId = CreateSprite(&gMultiuseSpriteTemplate, 0x60, 0x60, 1); gSprites[spriteId].callback = SpriteCallbackDummy; diff --git a/src/player_pc.c b/src/player_pc.c index b1929b9ed..f454cd07f 100644 --- a/src/player_pc.c +++ b/src/player_pc.c @@ -149,7 +149,7 @@ void NewGameInitPCItems(void) ; } -void sub_80EB6AC(void) +void BedroomPC(void) { u8 taskId; @@ -161,7 +161,7 @@ void sub_80EB6AC(void) DisplayItemMessageOnField(taskId, 2, gText_WhatWouldYouLikeToDo, Task_DrawPlayerPcTopMenu); } -void sub_80EB6FC(void) +void PlayerPC(void) { u8 taskId; @@ -566,7 +566,7 @@ static void Task_WaitFadeAndReadSelectedMail(u8 taskId) { MailboxPC_DestroyListMenuBuffer(); CleanupOverworldWindowsAndTilemaps(); - sub_80BEBEC(&SELECTED_MAIL, CB2_SetCbToReturnToMailbox, 1); + ReadMail(&SELECTED_MAIL, CB2_SetCbToReturnToMailbox, 1); DestroyTask(taskId); } } diff --git a/src/pokemon.c b/src/pokemon.c index 1159b1861..17f28c7a6 100644 --- a/src/pokemon.c +++ b/src/pokemon.c @@ -8,7 +8,7 @@ #include "data.h" #include "string_util.h" #include "battle.h" -#include "battle_main.h" +#include "battle_anim.h" #include "item.h" #include "event_data.h" #include "util.h" @@ -1467,38 +1467,38 @@ const struct SpriteTemplate gUnknown_825DEF0[] = { .tileTag = SPRITE_INVALID_TAG, .paletteTag = 0, - .oam = &gUnknown_824F018, + .oam = &gOamData_824F018, .anims = NULL, .images = gUnknown_8234698, - .affineAnims = gUnknown_82348C8, + .affineAnims = gSpriteAffineAnimTable_82348C8, .callback = sub_80120C4, }, { .tileTag = SPRITE_INVALID_TAG, .paletteTag = 0, - .oam = &gUnknown_824F010, + .oam = &gOamData_824F010, .anims = NULL, .images = gUnknown_82346B8, - .affineAnims = gUnknown_8234944, - .callback = oac_poke_opponent, + .affineAnims = gSpriteAffineAnimTable_8234944, + .callback = SpriteCB_WildMon, }, { .tileTag = SPRITE_INVALID_TAG, .paletteTag = 0, - .oam = &gUnknown_824F018, + .oam = &gOamData_824F018, .anims = NULL, .images = gUnknown_82346D8, - .affineAnims = gUnknown_82348C8, + .affineAnims = gSpriteAffineAnimTable_82348C8, .callback = sub_80120C4, }, { .tileTag = SPRITE_INVALID_TAG, .paletteTag = 0, - .oam = &gUnknown_824F010, + .oam = &gOamData_824F010, .anims = NULL, .images = gUnknown_82346F8, - .affineAnims = gUnknown_8234944, - .callback = oac_poke_opponent, + .affineAnims = gSpriteAffineAnimTable_8234944, + .callback = SpriteCB_WildMon, }, }; @@ -1507,55 +1507,55 @@ const struct SpriteTemplate gUnknown_825DF50[] = { .tileTag = SPRITE_INVALID_TAG, .paletteTag = 0, - .oam = &gUnknown_824F018, + .oam = &gOamData_824F018, .anims = NULL, - .images = gUnknown_8234718, - .affineAnims = gUnknown_82348C8, + .images = gTrainerBackPicTable_Red, + .affineAnims = gSpriteAffineAnimTable_82348C8, .callback = sub_80120C4, }, { .tileTag = SPRITE_INVALID_TAG, .paletteTag = 0, - .oam = &gUnknown_824F018, + .oam = &gOamData_824F018, .anims = NULL, - .images = gUnknown_8234740, - .affineAnims = gUnknown_82348C8, + .images = gTrainerBackPicTable_Leaf, + .affineAnims = gSpriteAffineAnimTable_82348C8, .callback = sub_80120C4, }, { .tileTag = SPRITE_INVALID_TAG, .paletteTag = 0, - .oam = &gUnknown_824F018, + .oam = &gOamData_824F018, .anims = NULL, - .images = gUnknown_82347A8, - .affineAnims = gUnknown_82348C8, + .images = gTrainerBackPicTable_RSBrendan, + .affineAnims = gSpriteAffineAnimTable_82348C8, .callback = sub_80120C4, }, { .tileTag = SPRITE_INVALID_TAG, .paletteTag = 0, - .oam = &gUnknown_824F018, + .oam = &gOamData_824F018, .anims = NULL, - .images = gUnknown_82347C8, - .affineAnims = gUnknown_82348C8, + .images = gTrainerBackPicTable_RSMay, + .affineAnims = gSpriteAffineAnimTable_82348C8, .callback = sub_80120C4, }, { .tileTag = SPRITE_INVALID_TAG, .paletteTag = 0, - .oam = &gUnknown_824F018, + .oam = &gOamData_824F018, .anims = NULL, - .images = gUnknown_8234768, - .affineAnims = gUnknown_82348C8, + .images = gTrainerBackPicTable_PokeDude, + .affineAnims = gSpriteAffineAnimTable_82348C8, .callback = sub_80120C4, }, { .tileTag = SPRITE_INVALID_TAG, .paletteTag = 0, - .oam = &gUnknown_824F018, + .oam = &gOamData_824F018, .anims = NULL, - .images = gUnknown_8234788, - .affineAnims = gUnknown_82348C8, + .images = gTrainerBackPicTable_OldMan, + .affineAnims = gSpriteAffineAnimTable_82348C8, .callback = sub_80120C4, }, }; @@ -2362,25 +2362,25 @@ s32 CalculateBaseDamage(struct BattlePokemon *attacker, struct BattlePokemon *de // In FRLG, the Battle Tower and opponent checks are stubbed here. if (!(gBattleTypeFlags & (BATTLE_TYPE_LINK | /*BATTLE_TYPE_BATTLE_TOWER |*/ BATTLE_TYPE_EREADER_TRAINER))) { - if (FlagGet(FLAG_UNK820) + if (FlagGet(FLAG_BADGE01_GET) && !GetBattlerSide(battlerIdAtk)) attack = (110 * attack) / 100; } if (!(gBattleTypeFlags & (BATTLE_TYPE_LINK | /*BATTLE_TYPE_BATTLE_TOWER |*/ BATTLE_TYPE_EREADER_TRAINER))) { - if (FlagGet(FLAG_UNK824) + if (FlagGet(FLAG_BADGE05_GET) && !GetBattlerSide(battlerIdDef)) defense = (110 * defense) / 100; } if (!(gBattleTypeFlags & (BATTLE_TYPE_LINK | /*BATTLE_TYPE_BATTLE_TOWER |*/ BATTLE_TYPE_EREADER_TRAINER))) { - if (FlagGet(FLAG_UNK826) + if (FlagGet(FLAG_BADGE07_GET) && !GetBattlerSide(battlerIdAtk)) spAttack = (110 * spAttack) / 100; } if (!(gBattleTypeFlags & (BATTLE_TYPE_LINK | /*BATTLE_TYPE_BATTLE_TOWER |*/ BATTLE_TYPE_EREADER_TRAINER))) { - if (FlagGet(FLAG_UNK826) + if (FlagGet(FLAG_BADGE07_GET) && !GetBattlerSide(battlerIdDef)) spDefense = (110 * spDefense) / 100; } @@ -2698,7 +2698,7 @@ void SetMultiuseSpriteTemplateToPokemon(u16 speciesTag, u8 battlerPosition) } } gMultiuseSpriteTemplate.paletteTag = speciesTag; - gMultiuseSpriteTemplate.anims = gUnknown_82349BC; + gMultiuseSpriteTemplate.anims = gSpriteAnimTable_82349BC; } void SetMultiuseSpriteTemplateToTrainerBack(u16 trainerSpriteId, u8 battlerPosition) @@ -3634,7 +3634,7 @@ static u8 SendMonToPC(struct Pokemon* mon) gSpecialVar_MonBoxId = boxNo; gSpecialVar_MonBoxPos = boxPos; if (get_unknown_box_id() != boxNo) - FlagClear(FLAG_UNK843); + FlagClear(FLAG_SYS_CHANGED_BOX_TO_STORE_MON); VarSet(VAR_0x4037, boxNo); return MON_GIVEN_TO_PC; } @@ -4652,8 +4652,7 @@ bool8 PokemonUseItemEffects2(struct Pokemon *mon, u16 item, u8 partyIndex, u8 mo sp18 = itemEffect[r10]; r10++; break; - case 7:\ - + case 7: if (GetMonData(mon, MON_DATA_FRIENDSHIP, NULL) >= 200 && retVal == FALSE && sp18 == 0) @@ -5406,7 +5405,7 @@ u16 GetMonEVCount(struct Pokemon *mon) return count; } -void sub_8043A68(void) +void RandomlyGivePartyPokerus(struct Pokemon *party) { u8 foo[4]; // huh? } @@ -5472,7 +5471,7 @@ static void sub_8043B38(void) u8 foo[4]; // huh? } -void sub_8043B40(void) +void PartySpreadPokerus(struct Pokemon *party) { u8 foo[4]; // huh? } @@ -6089,7 +6088,7 @@ static void OakSpeechNidoranFSetupTemplateDummy(struct OakSpeechNidoranFStruct * for (j = 0; j < structPtr->frameCount; ++j) structPtr->frameImages[i * structPtr->spriteCount + j].data = &structPtr->bufferPtrs[i][j * 0x800]; structPtr->templates[i].images = &structPtr->frameImages[i * structPtr->spriteCount]; // should be frameCount logically - structPtr->templates[i].anims = gUnknown_82349BC; + structPtr->templates[i].anims = gSpriteAnimTable_82349BC; structPtr->templates[i].paletteTag = i; } } diff --git a/src/pokemon_icon.c b/src/pokemon_icon.c new file mode 100644 index 000000000..f3492593c --- /dev/null +++ b/src/pokemon_icon.c @@ -0,0 +1,1284 @@ +#include "global.h" +#include "palette.h" +#include "mail_data.h" +#include "pokemon_icon.h" +#include "graphics.h" +#include "constants/species.h" + +#define POKE_ICON_BASE_PAL_TAG 56000 + +struct MonIconSpriteTemplate +{ + const struct OamData * oam; + const u8 *image; + const union AnimCmd *const * anims; + const union AffineAnimCmd *const * affineAnims; + SpriteCallback callback; + u16 paletteTag; +}; + +static u8 CreateMonIconSprite(const struct MonIconSpriteTemplate * template, s16 x, s16 y, u8 subpriority); +static void DestroyMonIconInternal(struct Sprite * sprite); + +const u16 gMonIconPalettes[][16] = { + INCBIN_U16("graphics/pokemon/icon_palettes/icon_palette_0.gbapal"), + INCBIN_U16("graphics/pokemon/icon_palettes/icon_palette_1.gbapal"), + INCBIN_U16("graphics/pokemon/icon_palettes/icon_palette_2.gbapal") +}; + +const u8 *const gMonIconTable[] = { + [SPECIES_NONE] = gMonIcon_QuestionMark, + [SPECIES_BULBASAUR] = gMonIcon_Bulbasaur, + [SPECIES_IVYSAUR] = gMonIcon_Ivysaur, + [SPECIES_VENUSAUR] = gMonIcon_Venusaur, + [SPECIES_CHARMANDER] = gMonIcon_Charmander, + [SPECIES_CHARMELEON] = gMonIcon_Charmeleon, + [SPECIES_CHARIZARD] = gMonIcon_Charizard, + [SPECIES_SQUIRTLE] = gMonIcon_Squirtle, + [SPECIES_WARTORTLE] = gMonIcon_Wartortle, + [SPECIES_BLASTOISE] = gMonIcon_Blastoise, + [SPECIES_CATERPIE] = gMonIcon_Caterpie, + [SPECIES_METAPOD] = gMonIcon_Metapod, + [SPECIES_BUTTERFREE] = gMonIcon_Butterfree, + [SPECIES_WEEDLE] = gMonIcon_Weedle, + [SPECIES_KAKUNA] = gMonIcon_Kakuna, + [SPECIES_BEEDRILL] = gMonIcon_Beedrill, + [SPECIES_PIDGEY] = gMonIcon_Pidgey, + [SPECIES_PIDGEOTTO] = gMonIcon_Pidgeotto, + [SPECIES_PIDGEOT] = gMonIcon_Pidgeot, + [SPECIES_RATTATA] = gMonIcon_Rattata, + [SPECIES_RATICATE] = gMonIcon_Raticate, + [SPECIES_SPEAROW] = gMonIcon_Spearow, + [SPECIES_FEAROW] = gMonIcon_Fearow, + [SPECIES_EKANS] = gMonIcon_Ekans, + [SPECIES_ARBOK] = gMonIcon_Arbok, + [SPECIES_PIKACHU] = gMonIcon_Pikachu, + [SPECIES_RAICHU] = gMonIcon_Raichu, + [SPECIES_SANDSHREW] = gMonIcon_Sandshrew, + [SPECIES_SANDSLASH] = gMonIcon_Sandslash, + [SPECIES_NIDORAN_F] = gMonIcon_NidoranF, + [SPECIES_NIDORINA] = gMonIcon_Nidorina, + [SPECIES_NIDOQUEEN] = gMonIcon_Nidoqueen, + [SPECIES_NIDORAN_M] = gMonIcon_NidoranM, + [SPECIES_NIDORINO] = gMonIcon_Nidorino, + [SPECIES_NIDOKING] = gMonIcon_Nidoking, + [SPECIES_CLEFAIRY] = gMonIcon_Clefairy, + [SPECIES_CLEFABLE] = gMonIcon_Clefable, + [SPECIES_VULPIX] = gMonIcon_Vulpix, + [SPECIES_NINETALES] = gMonIcon_Ninetales, + [SPECIES_JIGGLYPUFF] = gMonIcon_Jigglypuff, + [SPECIES_WIGGLYTUFF] = gMonIcon_Wigglytuff, + [SPECIES_ZUBAT] = gMonIcon_Zubat, + [SPECIES_GOLBAT] = gMonIcon_Golbat, + [SPECIES_ODDISH] = gMonIcon_Oddish, + [SPECIES_GLOOM] = gMonIcon_Gloom, + [SPECIES_VILEPLUME] = gMonIcon_Vileplume, + [SPECIES_PARAS] = gMonIcon_Paras, + [SPECIES_PARASECT] = gMonIcon_Parasect, + [SPECIES_VENONAT] = gMonIcon_Venonat, + [SPECIES_VENOMOTH] = gMonIcon_Venomoth, + [SPECIES_DIGLETT] = gMonIcon_Diglett, + [SPECIES_DUGTRIO] = gMonIcon_Dugtrio, + [SPECIES_MEOWTH] = gMonIcon_Meowth, + [SPECIES_PERSIAN] = gMonIcon_Persian, + [SPECIES_PSYDUCK] = gMonIcon_Psyduck, + [SPECIES_GOLDUCK] = gMonIcon_Golduck, + [SPECIES_MANKEY] = gMonIcon_Mankey, + [SPECIES_PRIMEAPE] = gMonIcon_Primeape, + [SPECIES_GROWLITHE] = gMonIcon_Growlithe, + [SPECIES_ARCANINE] = gMonIcon_Arcanine, + [SPECIES_POLIWAG] = gMonIcon_Poliwag, + [SPECIES_POLIWHIRL] = gMonIcon_Poliwhirl, + [SPECIES_POLIWRATH] = gMonIcon_Poliwrath, + [SPECIES_ABRA] = gMonIcon_Abra, + [SPECIES_KADABRA] = gMonIcon_Kadabra, + [SPECIES_ALAKAZAM] = gMonIcon_Alakazam, + [SPECIES_MACHOP] = gMonIcon_Machop, + [SPECIES_MACHOKE] = gMonIcon_Machoke, + [SPECIES_MACHAMP] = gMonIcon_Machamp, + [SPECIES_BELLSPROUT] = gMonIcon_Bellsprout, + [SPECIES_WEEPINBELL] = gMonIcon_Weepinbell, + [SPECIES_VICTREEBEL] = gMonIcon_Victreebel, + [SPECIES_TENTACOOL] = gMonIcon_Tentacool, + [SPECIES_TENTACRUEL] = gMonIcon_Tentacruel, + [SPECIES_GEODUDE] = gMonIcon_Geodude, + [SPECIES_GRAVELER] = gMonIcon_Graveler, + [SPECIES_GOLEM] = gMonIcon_Golem, + [SPECIES_PONYTA] = gMonIcon_Ponyta, + [SPECIES_RAPIDASH] = gMonIcon_Rapidash, + [SPECIES_SLOWPOKE] = gMonIcon_Slowpoke, + [SPECIES_SLOWBRO] = gMonIcon_Slowbro, + [SPECIES_MAGNEMITE] = gMonIcon_Magnemite, + [SPECIES_MAGNETON] = gMonIcon_Magneton, + [SPECIES_FARFETCHD] = gMonIcon_Farfetchd, + [SPECIES_DODUO] = gMonIcon_Doduo, + [SPECIES_DODRIO] = gMonIcon_Dodrio, + [SPECIES_SEEL] = gMonIcon_Seel, + [SPECIES_DEWGONG] = gMonIcon_Dewgong, + [SPECIES_GRIMER] = gMonIcon_Grimer, + [SPECIES_MUK] = gMonIcon_Muk, + [SPECIES_SHELLDER] = gMonIcon_Shellder, + [SPECIES_CLOYSTER] = gMonIcon_Cloyster, + [SPECIES_GASTLY] = gMonIcon_Gastly, + [SPECIES_HAUNTER] = gMonIcon_Haunter, + [SPECIES_GENGAR] = gMonIcon_Gengar, + [SPECIES_ONIX] = gMonIcon_Onix, + [SPECIES_DROWZEE] = gMonIcon_Drowzee, + [SPECIES_HYPNO] = gMonIcon_Hypno, + [SPECIES_KRABBY] = gMonIcon_Krabby, + [SPECIES_KINGLER] = gMonIcon_Kingler, + [SPECIES_VOLTORB] = gMonIcon_Voltorb, + [SPECIES_ELECTRODE] = gMonIcon_Electrode, + [SPECIES_EXEGGCUTE] = gMonIcon_Exeggcute, + [SPECIES_EXEGGUTOR] = gMonIcon_Exeggutor, + [SPECIES_CUBONE] = gMonIcon_Cubone, + [SPECIES_MAROWAK] = gMonIcon_Marowak, + [SPECIES_HITMONLEE] = gMonIcon_Hitmonlee, + [SPECIES_HITMONCHAN] = gMonIcon_Hitmonchan, + [SPECIES_LICKITUNG] = gMonIcon_Lickitung, + [SPECIES_KOFFING] = gMonIcon_Koffing, + [SPECIES_WEEZING] = gMonIcon_Weezing, + [SPECIES_RHYHORN] = gMonIcon_Rhyhorn, + [SPECIES_RHYDON] = gMonIcon_Rhydon, + [SPECIES_CHANSEY] = gMonIcon_Chansey, + [SPECIES_TANGELA] = gMonIcon_Tangela, + [SPECIES_KANGASKHAN] = gMonIcon_Kangaskhan, + [SPECIES_HORSEA] = gMonIcon_Horsea, + [SPECIES_SEADRA] = gMonIcon_Seadra, + [SPECIES_GOLDEEN] = gMonIcon_Goldeen, + [SPECIES_SEAKING] = gMonIcon_Seaking, + [SPECIES_STARYU] = gMonIcon_Staryu, + [SPECIES_STARMIE] = gMonIcon_Starmie, + [SPECIES_MR_MIME] = gMonIcon_Mrmime, + [SPECIES_SCYTHER] = gMonIcon_Scyther, + [SPECIES_JYNX] = gMonIcon_Jynx, + [SPECIES_ELECTABUZZ] = gMonIcon_Electabuzz, + [SPECIES_MAGMAR] = gMonIcon_Magmar, + [SPECIES_PINSIR] = gMonIcon_Pinsir, + [SPECIES_TAUROS] = gMonIcon_Tauros, + [SPECIES_MAGIKARP] = gMonIcon_Magikarp, + [SPECIES_GYARADOS] = gMonIcon_Gyarados, + [SPECIES_LAPRAS] = gMonIcon_Lapras, + [SPECIES_DITTO] = gMonIcon_Ditto, + [SPECIES_EEVEE] = gMonIcon_Eevee, + [SPECIES_VAPOREON] = gMonIcon_Vaporeon, + [SPECIES_JOLTEON] = gMonIcon_Jolteon, + [SPECIES_FLAREON] = gMonIcon_Flareon, + [SPECIES_PORYGON] = gMonIcon_Porygon, + [SPECIES_OMANYTE] = gMonIcon_Omanyte, + [SPECIES_OMASTAR] = gMonIcon_Omastar, + [SPECIES_KABUTO] = gMonIcon_Kabuto, + [SPECIES_KABUTOPS] = gMonIcon_Kabutops, + [SPECIES_AERODACTYL] = gMonIcon_Aerodactyl, + [SPECIES_SNORLAX] = gMonIcon_Snorlax, + [SPECIES_ARTICUNO] = gMonIcon_Articuno, + [SPECIES_ZAPDOS] = gMonIcon_Zapdos, + [SPECIES_MOLTRES] = gMonIcon_Moltres, + [SPECIES_DRATINI] = gMonIcon_Dratini, + [SPECIES_DRAGONAIR] = gMonIcon_Dragonair, + [SPECIES_DRAGONITE] = gMonIcon_Dragonite, + [SPECIES_MEWTWO] = gMonIcon_Mewtwo, + [SPECIES_MEW] = gMonIcon_Mew, + [SPECIES_CHIKORITA] = gMonIcon_Chikorita, + [SPECIES_BAYLEEF] = gMonIcon_Bayleef, + [SPECIES_MEGANIUM] = gMonIcon_Meganium, + [SPECIES_CYNDAQUIL] = gMonIcon_Cyndaquil, + [SPECIES_QUILAVA] = gMonIcon_Quilava, + [SPECIES_TYPHLOSION] = gMonIcon_Typhlosion, + [SPECIES_TOTODILE] = gMonIcon_Totodile, + [SPECIES_CROCONAW] = gMonIcon_Croconaw, + [SPECIES_FERALIGATR] = gMonIcon_Feraligatr, + [SPECIES_SENTRET] = gMonIcon_Sentret, + [SPECIES_FURRET] = gMonIcon_Furret, + [SPECIES_HOOTHOOT] = gMonIcon_Hoothoot, + [SPECIES_NOCTOWL] = gMonIcon_Noctowl, + [SPECIES_LEDYBA] = gMonIcon_Ledyba, + [SPECIES_LEDIAN] = gMonIcon_Ledian, + [SPECIES_SPINARAK] = gMonIcon_Spinarak, + [SPECIES_ARIADOS] = gMonIcon_Ariados, + [SPECIES_CROBAT] = gMonIcon_Crobat, + [SPECIES_CHINCHOU] = gMonIcon_Chinchou, + [SPECIES_LANTURN] = gMonIcon_Lanturn, + [SPECIES_PICHU] = gMonIcon_Pichu, + [SPECIES_CLEFFA] = gMonIcon_Cleffa, + [SPECIES_IGGLYBUFF] = gMonIcon_Igglybuff, + [SPECIES_TOGEPI] = gMonIcon_Togepi, + [SPECIES_TOGETIC] = gMonIcon_Togetic, + [SPECIES_NATU] = gMonIcon_Natu, + [SPECIES_XATU] = gMonIcon_Xatu, + [SPECIES_MAREEP] = gMonIcon_Mareep, + [SPECIES_FLAAFFY] = gMonIcon_Flaaffy, + [SPECIES_AMPHAROS] = gMonIcon_Ampharos, + [SPECIES_BELLOSSOM] = gMonIcon_Bellossom, + [SPECIES_MARILL] = gMonIcon_Marill, + [SPECIES_AZUMARILL] = gMonIcon_Azumarill, + [SPECIES_SUDOWOODO] = gMonIcon_Sudowoodo, + [SPECIES_POLITOED] = gMonIcon_Politoed, + [SPECIES_HOPPIP] = gMonIcon_Hoppip, + [SPECIES_SKIPLOOM] = gMonIcon_Skiploom, + [SPECIES_JUMPLUFF] = gMonIcon_Jumpluff, + [SPECIES_AIPOM] = gMonIcon_Aipom, + [SPECIES_SUNKERN] = gMonIcon_Sunkern, + [SPECIES_SUNFLORA] = gMonIcon_Sunflora, + [SPECIES_YANMA] = gMonIcon_Yanma, + [SPECIES_WOOPER] = gMonIcon_Wooper, + [SPECIES_QUAGSIRE] = gMonIcon_Quagsire, + [SPECIES_ESPEON] = gMonIcon_Espeon, + [SPECIES_UMBREON] = gMonIcon_Umbreon, + [SPECIES_MURKROW] = gMonIcon_Murkrow, + [SPECIES_SLOWKING] = gMonIcon_Slowking, + [SPECIES_MISDREAVUS] = gMonIcon_Misdreavus, + [SPECIES_UNOWN] = gMonIcon_UnownA, + [SPECIES_WOBBUFFET] = gMonIcon_Wobbuffet, + [SPECIES_GIRAFARIG] = gMonIcon_Girafarig, + [SPECIES_PINECO] = gMonIcon_Pineco, + [SPECIES_FORRETRESS] = gMonIcon_Forretress, + [SPECIES_DUNSPARCE] = gMonIcon_Dunsparce, + [SPECIES_GLIGAR] = gMonIcon_Gligar, + [SPECIES_STEELIX] = gMonIcon_Steelix, + [SPECIES_SNUBBULL] = gMonIcon_Snubbull, + [SPECIES_GRANBULL] = gMonIcon_Granbull, + [SPECIES_QWILFISH] = gMonIcon_Qwilfish, + [SPECIES_SCIZOR] = gMonIcon_Scizor, + [SPECIES_SHUCKLE] = gMonIcon_Shuckle, + [SPECIES_HERACROSS] = gMonIcon_Heracross, + [SPECIES_SNEASEL] = gMonIcon_Sneasel, + [SPECIES_TEDDIURSA] = gMonIcon_Teddiursa, + [SPECIES_URSARING] = gMonIcon_Ursaring, + [SPECIES_SLUGMA] = gMonIcon_Slugma, + [SPECIES_MAGCARGO] = gMonIcon_Magcargo, + [SPECIES_SWINUB] = gMonIcon_Swinub, + [SPECIES_PILOSWINE] = gMonIcon_Piloswine, + [SPECIES_CORSOLA] = gMonIcon_Corsola, + [SPECIES_REMORAID] = gMonIcon_Remoraid, + [SPECIES_OCTILLERY] = gMonIcon_Octillery, + [SPECIES_DELIBIRD] = gMonIcon_Delibird, + [SPECIES_MANTINE] = gMonIcon_Mantine, + [SPECIES_SKARMORY] = gMonIcon_Skarmory, + [SPECIES_HOUNDOUR] = gMonIcon_Houndour, + [SPECIES_HOUNDOOM] = gMonIcon_Houndoom, + [SPECIES_KINGDRA] = gMonIcon_Kingdra, + [SPECIES_PHANPY] = gMonIcon_Phanpy, + [SPECIES_DONPHAN] = gMonIcon_Donphan, + [SPECIES_PORYGON2] = gMonIcon_Porygon2, + [SPECIES_STANTLER] = gMonIcon_Stantler, + [SPECIES_SMEARGLE] = gMonIcon_Smeargle, + [SPECIES_TYROGUE] = gMonIcon_Tyrogue, + [SPECIES_HITMONTOP] = gMonIcon_Hitmontop, + [SPECIES_SMOOCHUM] = gMonIcon_Smoochum, + [SPECIES_ELEKID] = gMonIcon_Elekid, + [SPECIES_MAGBY] = gMonIcon_Magby, + [SPECIES_MILTANK] = gMonIcon_Miltank, + [SPECIES_BLISSEY] = gMonIcon_Blissey, + [SPECIES_RAIKOU] = gMonIcon_Raikou, + [SPECIES_ENTEI] = gMonIcon_Entei, + [SPECIES_SUICUNE] = gMonIcon_Suicune, + [SPECIES_LARVITAR] = gMonIcon_Larvitar, + [SPECIES_PUPITAR] = gMonIcon_Pupitar, + [SPECIES_TYRANITAR] = gMonIcon_Tyranitar, + [SPECIES_LUGIA] = gMonIcon_Lugia, + [SPECIES_HO_OH] = gMonIcon_HoOh, + [SPECIES_CELEBI] = gMonIcon_Celebi, + [SPECIES_OLD_UNOWN_B] = gMonIcon_QuestionMark, + [SPECIES_OLD_UNOWN_C] = gMonIcon_QuestionMark, + [SPECIES_OLD_UNOWN_D] = gMonIcon_QuestionMark, + [SPECIES_OLD_UNOWN_E] = gMonIcon_QuestionMark, + [SPECIES_OLD_UNOWN_F] = gMonIcon_QuestionMark, + [SPECIES_OLD_UNOWN_G] = gMonIcon_QuestionMark, + [SPECIES_OLD_UNOWN_H] = gMonIcon_QuestionMark, + [SPECIES_OLD_UNOWN_I] = gMonIcon_QuestionMark, + [SPECIES_OLD_UNOWN_J] = gMonIcon_QuestionMark, + [SPECIES_OLD_UNOWN_K] = gMonIcon_QuestionMark, + [SPECIES_OLD_UNOWN_L] = gMonIcon_QuestionMark, + [SPECIES_OLD_UNOWN_M] = gMonIcon_QuestionMark, + [SPECIES_OLD_UNOWN_N] = gMonIcon_QuestionMark, + [SPECIES_OLD_UNOWN_O] = gMonIcon_QuestionMark, + [SPECIES_OLD_UNOWN_P] = gMonIcon_QuestionMark, + [SPECIES_OLD_UNOWN_Q] = gMonIcon_QuestionMark, + [SPECIES_OLD_UNOWN_R] = gMonIcon_QuestionMark, + [SPECIES_OLD_UNOWN_S] = gMonIcon_QuestionMark, + [SPECIES_OLD_UNOWN_T] = gMonIcon_QuestionMark, + [SPECIES_OLD_UNOWN_U] = gMonIcon_QuestionMark, + [SPECIES_OLD_UNOWN_V] = gMonIcon_QuestionMark, + [SPECIES_OLD_UNOWN_W] = gMonIcon_QuestionMark, + [SPECIES_OLD_UNOWN_X] = gMonIcon_QuestionMark, + [SPECIES_OLD_UNOWN_Y] = gMonIcon_QuestionMark, + [SPECIES_OLD_UNOWN_Z] = gMonIcon_QuestionMark, + [SPECIES_TREECKO] = gMonIcon_Treecko, + [SPECIES_GROVYLE] = gMonIcon_Grovyle, + [SPECIES_SCEPTILE] = gMonIcon_Sceptile, + [SPECIES_TORCHIC] = gMonIcon_Torchic, + [SPECIES_COMBUSKEN] = gMonIcon_Combusken, + [SPECIES_BLAZIKEN] = gMonIcon_Blaziken, + [SPECIES_MUDKIP] = gMonIcon_Mudkip, + [SPECIES_MARSHTOMP] = gMonIcon_Marshtomp, + [SPECIES_SWAMPERT] = gMonIcon_Swampert, + [SPECIES_POOCHYENA] = gMonIcon_Poochyena, + [SPECIES_MIGHTYENA] = gMonIcon_Mightyena, + [SPECIES_ZIGZAGOON] = gMonIcon_Zigzagoon, + [SPECIES_LINOONE] = gMonIcon_Linoone, + [SPECIES_WURMPLE] = gMonIcon_Wurmple, + [SPECIES_SILCOON] = gMonIcon_Silcoon, + [SPECIES_BEAUTIFLY] = gMonIcon_Beautifly, + [SPECIES_CASCOON] = gMonIcon_Cascoon, + [SPECIES_DUSTOX] = gMonIcon_Dustox, + [SPECIES_LOTAD] = gMonIcon_Lotad, + [SPECIES_LOMBRE] = gMonIcon_Lombre, + [SPECIES_LUDICOLO] = gMonIcon_Ludicolo, + [SPECIES_SEEDOT] = gMonIcon_Seedot, + [SPECIES_NUZLEAF] = gMonIcon_Nuzleaf, + [SPECIES_SHIFTRY] = gMonIcon_Shiftry, + [SPECIES_NINCADA] = gMonIcon_Nincada, + [SPECIES_NINJASK] = gMonIcon_Ninjask, + [SPECIES_SHEDINJA] = gMonIcon_Shedinja, + [SPECIES_TAILLOW] = gMonIcon_Taillow, + [SPECIES_SWELLOW] = gMonIcon_Swellow, + [SPECIES_SHROOMISH] = gMonIcon_Shroomish, + [SPECIES_BRELOOM] = gMonIcon_Breloom, + [SPECIES_SPINDA] = gMonIcon_Spinda, + [SPECIES_WINGULL] = gMonIcon_Wingull, + [SPECIES_PELIPPER] = gMonIcon_Pelipper, + [SPECIES_SURSKIT] = gMonIcon_Surskit, + [SPECIES_MASQUERAIN] = gMonIcon_Masquerain, + [SPECIES_WAILMER] = gMonIcon_Wailmer, + [SPECIES_WAILORD] = gMonIcon_Wailord, + [SPECIES_SKITTY] = gMonIcon_Skitty, + [SPECIES_DELCATTY] = gMonIcon_Delcatty, + [SPECIES_KECLEON] = gMonIcon_Kecleon, + [SPECIES_BALTOY] = gMonIcon_Baltoy, + [SPECIES_CLAYDOL] = gMonIcon_Claydol, + [SPECIES_NOSEPASS] = gMonIcon_Nosepass, + [SPECIES_TORKOAL] = gMonIcon_Torkoal, + [SPECIES_SABLEYE] = gMonIcon_Sableye, + [SPECIES_BARBOACH] = gMonIcon_Barboach, + [SPECIES_WHISCASH] = gMonIcon_Whiscash, + [SPECIES_LUVDISC] = gMonIcon_Luvdisc, + [SPECIES_CORPHISH] = gMonIcon_Corphish, + [SPECIES_CRAWDAUNT] = gMonIcon_Crawdaunt, + [SPECIES_FEEBAS] = gMonIcon_Feebas, + [SPECIES_MILOTIC] = gMonIcon_Milotic, + [SPECIES_CARVANHA] = gMonIcon_Carvanha, + [SPECIES_SHARPEDO] = gMonIcon_Sharpedo, + [SPECIES_TRAPINCH] = gMonIcon_Trapinch, + [SPECIES_VIBRAVA] = gMonIcon_Vibrava, + [SPECIES_FLYGON] = gMonIcon_Flygon, + [SPECIES_MAKUHITA] = gMonIcon_Makuhita, + [SPECIES_HARIYAMA] = gMonIcon_Hariyama, + [SPECIES_ELECTRIKE] = gMonIcon_Electrike, + [SPECIES_MANECTRIC] = gMonIcon_Manectric, + [SPECIES_NUMEL] = gMonIcon_Numel, + [SPECIES_CAMERUPT] = gMonIcon_Camerupt, + [SPECIES_SPHEAL] = gMonIcon_Spheal, + [SPECIES_SEALEO] = gMonIcon_Sealeo, + [SPECIES_WALREIN] = gMonIcon_Walrein, + [SPECIES_CACNEA] = gMonIcon_Cacnea, + [SPECIES_CACTURNE] = gMonIcon_Cacturne, + [SPECIES_SNORUNT] = gMonIcon_Snorunt, + [SPECIES_GLALIE] = gMonIcon_Glalie, + [SPECIES_LUNATONE] = gMonIcon_Lunatone, + [SPECIES_SOLROCK] = gMonIcon_Solrock, + [SPECIES_AZURILL] = gMonIcon_Azurill, + [SPECIES_SPOINK] = gMonIcon_Spoink, + [SPECIES_GRUMPIG] = gMonIcon_Grumpig, + [SPECIES_PLUSLE] = gMonIcon_Plusle, + [SPECIES_MINUN] = gMonIcon_Minun, + [SPECIES_MAWILE] = gMonIcon_Mawile, + [SPECIES_MEDITITE] = gMonIcon_Meditite, + [SPECIES_MEDICHAM] = gMonIcon_Medicham, + [SPECIES_SWABLU] = gMonIcon_Swablu, + [SPECIES_ALTARIA] = gMonIcon_Altaria, + [SPECIES_WYNAUT] = gMonIcon_Wynaut, + [SPECIES_DUSKULL] = gMonIcon_Duskull, + [SPECIES_DUSCLOPS] = gMonIcon_Dusclops, + [SPECIES_ROSELIA] = gMonIcon_Roselia, + [SPECIES_SLAKOTH] = gMonIcon_Slakoth, + [SPECIES_VIGOROTH] = gMonIcon_Vigoroth, + [SPECIES_SLAKING] = gMonIcon_Slaking, + [SPECIES_GULPIN] = gMonIcon_Gulpin, + [SPECIES_SWALOT] = gMonIcon_Swalot, + [SPECIES_TROPIUS] = gMonIcon_Tropius, + [SPECIES_WHISMUR] = gMonIcon_Whismur, + [SPECIES_LOUDRED] = gMonIcon_Loudred, + [SPECIES_EXPLOUD] = gMonIcon_Exploud, + [SPECIES_CLAMPERL] = gMonIcon_Clamperl, + [SPECIES_HUNTAIL] = gMonIcon_Huntail, + [SPECIES_GOREBYSS] = gMonIcon_Gorebyss, + [SPECIES_ABSOL] = gMonIcon_Absol, + [SPECIES_SHUPPET] = gMonIcon_Shuppet, + [SPECIES_BANETTE] = gMonIcon_Banette, + [SPECIES_SEVIPER] = gMonIcon_Seviper, + [SPECIES_ZANGOOSE] = gMonIcon_Zangoose, + [SPECIES_RELICANTH] = gMonIcon_Relicanth, + [SPECIES_ARON] = gMonIcon_Aron, + [SPECIES_LAIRON] = gMonIcon_Lairon, + [SPECIES_AGGRON] = gMonIcon_Aggron, + [SPECIES_CASTFORM] = gMonIcon_Castform, + [SPECIES_VOLBEAT] = gMonIcon_Volbeat, + [SPECIES_ILLUMISE] = gMonIcon_Illumise, + [SPECIES_LILEEP] = gMonIcon_Lileep, + [SPECIES_CRADILY] = gMonIcon_Cradily, + [SPECIES_ANORITH] = gMonIcon_Anorith, + [SPECIES_ARMALDO] = gMonIcon_Armaldo, + [SPECIES_RALTS] = gMonIcon_Ralts, + [SPECIES_KIRLIA] = gMonIcon_Kirlia, + [SPECIES_GARDEVOIR] = gMonIcon_Gardevoir, + [SPECIES_BAGON] = gMonIcon_Bagon, + [SPECIES_SHELGON] = gMonIcon_Shelgon, + [SPECIES_SALAMENCE] = gMonIcon_Salamence, + [SPECIES_BELDUM] = gMonIcon_Beldum, + [SPECIES_METANG] = gMonIcon_Metang, + [SPECIES_METAGROSS] = gMonIcon_Metagross, + [SPECIES_REGIROCK] = gMonIcon_Regirock, + [SPECIES_REGICE] = gMonIcon_Regice, + [SPECIES_REGISTEEL] = gMonIcon_Registeel, + [SPECIES_KYOGRE] = gMonIcon_Kyogre, + [SPECIES_GROUDON] = gMonIcon_Groudon, + [SPECIES_RAYQUAZA] = gMonIcon_Rayquaza, + [SPECIES_LATIAS] = gMonIcon_Latias, + [SPECIES_LATIOS] = gMonIcon_Latios, + [SPECIES_JIRACHI] = gMonIcon_Jirachi, + [SPECIES_DEOXYS] = gMonIcon_Deoxys, + [SPECIES_CHIMECHO] = gMonIcon_Chimecho, + [SPECIES_EGG] = gMonIcon_Egg, + [SPECIES_UNOWN_B] = gMonIcon_UnownB, + [SPECIES_UNOWN_C] = gMonIcon_UnownC, + [SPECIES_UNOWN_D] = gMonIcon_UnownD, + [SPECIES_UNOWN_E] = gMonIcon_UnownE, + [SPECIES_UNOWN_F] = gMonIcon_UnownF, + [SPECIES_UNOWN_G] = gMonIcon_UnownG, + [SPECIES_UNOWN_H] = gMonIcon_UnownH, + [SPECIES_UNOWN_I] = gMonIcon_UnownI, + [SPECIES_UNOWN_J] = gMonIcon_UnownJ, + [SPECIES_UNOWN_K] = gMonIcon_UnownK, + [SPECIES_UNOWN_L] = gMonIcon_UnownL, + [SPECIES_UNOWN_M] = gMonIcon_UnownM, + [SPECIES_UNOWN_N] = gMonIcon_UnownN, + [SPECIES_UNOWN_O] = gMonIcon_UnownO, + [SPECIES_UNOWN_P] = gMonIcon_UnownP, + [SPECIES_UNOWN_Q] = gMonIcon_UnownQ, + [SPECIES_UNOWN_R] = gMonIcon_UnownR, + [SPECIES_UNOWN_S] = gMonIcon_UnownS, + [SPECIES_UNOWN_T] = gMonIcon_UnownT, + [SPECIES_UNOWN_U] = gMonIcon_UnownU, + [SPECIES_UNOWN_V] = gMonIcon_UnownV, + [SPECIES_UNOWN_W] = gMonIcon_UnownW, + [SPECIES_UNOWN_X] = gMonIcon_UnownX, + [SPECIES_UNOWN_Y] = gMonIcon_UnownY, + [SPECIES_UNOWN_Z] = gMonIcon_UnownZ, + [SPECIES_UNOWN_EMARK] = gMonIcon_UnownExclamationMark, + [SPECIES_UNOWN_QMARK] = gMonIcon_UnownQuestionMark +}; + +const u8 gMonIconPaletteIndices[] = { + [SPECIES_NONE] = 0, + [SPECIES_BULBASAUR] = 1, + [SPECIES_IVYSAUR] = 1, + [SPECIES_VENUSAUR] = 1, + [SPECIES_CHARMANDER] = 0, + [SPECIES_CHARMELEON] = 0, + [SPECIES_CHARIZARD] = 0, + [SPECIES_SQUIRTLE] = 0, + [SPECIES_WARTORTLE] = 2, + [SPECIES_BLASTOISE] = 2, + [SPECIES_CATERPIE] = 1, + [SPECIES_METAPOD] = 1, + [SPECIES_BUTTERFREE] = 0, + [SPECIES_WEEDLE] = 1, + [SPECIES_KAKUNA] = 2, + [SPECIES_BEEDRILL] = 2, + [SPECIES_PIDGEY] = 0, + [SPECIES_PIDGEOTTO] = 0, + [SPECIES_PIDGEOT] = 0, + [SPECIES_RATTATA] = 2, + [SPECIES_RATICATE] = 1, + [SPECIES_SPEAROW] = 0, + [SPECIES_FEAROW] = 0, + [SPECIES_EKANS] = 2, + [SPECIES_ARBOK] = 2, + [SPECIES_PIKACHU] = 2, + [SPECIES_RAICHU] = 0, + [SPECIES_SANDSHREW] = 2, + [SPECIES_SANDSLASH] = 2, + [SPECIES_NIDORAN_F] = 2, + [SPECIES_NIDORINA] = 2, + [SPECIES_NIDOQUEEN] = 2, + [SPECIES_NIDORAN_M] = 2, + [SPECIES_NIDORINO] = 2, + [SPECIES_NIDOKING] = 2, + [SPECIES_CLEFAIRY] = 0, + [SPECIES_CLEFABLE] = 0, + [SPECIES_VULPIX] = 2, + [SPECIES_NINETALES] = 1, + [SPECIES_JIGGLYPUFF] = 0, + [SPECIES_WIGGLYTUFF] = 0, + [SPECIES_ZUBAT] = 2, + [SPECIES_GOLBAT] = 2, + [SPECIES_ODDISH] = 1, + [SPECIES_GLOOM] = 0, + [SPECIES_VILEPLUME] = 0, + [SPECIES_PARAS] = 0, + [SPECIES_PARASECT] = 0, + [SPECIES_VENONAT] = 0, + [SPECIES_VENOMOTH] = 2, + [SPECIES_DIGLETT] = 2, + [SPECIES_DUGTRIO] = 2, + [SPECIES_MEOWTH] = 1, + [SPECIES_PERSIAN] = 1, + [SPECIES_PSYDUCK] = 1, + [SPECIES_GOLDUCK] = 2, + [SPECIES_MANKEY] = 1, + [SPECIES_PRIMEAPE] = 2, + [SPECIES_GROWLITHE] = 0, + [SPECIES_ARCANINE] = 0, + [SPECIES_POLIWAG] = 0, + [SPECIES_POLIWHIRL] = 0, + [SPECIES_POLIWRATH] = 0, + [SPECIES_ABRA] = 2, + [SPECIES_KADABRA] = 2, + [SPECIES_ALAKAZAM] = 2, + [SPECIES_MACHOP] = 0, + [SPECIES_MACHOKE] = 2, + [SPECIES_MACHAMP] = 0, + [SPECIES_BELLSPROUT] = 1, + [SPECIES_WEEPINBELL] = 1, + [SPECIES_VICTREEBEL] = 1, + [SPECIES_TENTACOOL] = 2, + [SPECIES_TENTACRUEL] = 2, + [SPECIES_GEODUDE] = 1, + [SPECIES_GRAVELER] = 1, + [SPECIES_GOLEM] = 1, + [SPECIES_PONYTA] = 0, + [SPECIES_RAPIDASH] = 0, + [SPECIES_SLOWPOKE] = 0, + [SPECIES_SLOWBRO] = 0, + [SPECIES_MAGNEMITE] = 0, + [SPECIES_MAGNETON] = 0, + [SPECIES_FARFETCHD] = 1, + [SPECIES_DODUO] = 2, + [SPECIES_DODRIO] = 2, + [SPECIES_SEEL] = 2, + [SPECIES_DEWGONG] = 2, + [SPECIES_GRIMER] = 2, + [SPECIES_MUK] = 2, + [SPECIES_SHELLDER] = 2, + [SPECIES_CLOYSTER] = 2, + [SPECIES_GASTLY] = 2, + [SPECIES_HAUNTER] = 2, + [SPECIES_GENGAR] = 2, + [SPECIES_ONIX] = 2, + [SPECIES_DROWZEE] = 2, + [SPECIES_HYPNO] = 1, + [SPECIES_KRABBY] = 2, + [SPECIES_KINGLER] = 2, + [SPECIES_VOLTORB] = 0, + [SPECIES_ELECTRODE] = 0, + [SPECIES_EXEGGCUTE] = 0, + [SPECIES_EXEGGUTOR] = 1, + [SPECIES_CUBONE] = 1, + [SPECIES_MAROWAK] = 1, + [SPECIES_HITMONLEE] = 2, + [SPECIES_HITMONCHAN] = 2, + [SPECIES_LICKITUNG] = 1, + [SPECIES_KOFFING] = 2, + [SPECIES_WEEZING] = 2, + [SPECIES_RHYHORN] = 1, + [SPECIES_RHYDON] = 1, + [SPECIES_CHANSEY] = 0, + [SPECIES_TANGELA] = 0, + [SPECIES_KANGASKHAN] = 1, + [SPECIES_HORSEA] = 0, + [SPECIES_SEADRA] = 0, + [SPECIES_GOLDEEN] = 0, + [SPECIES_SEAKING] = 0, + [SPECIES_STARYU] = 2, + [SPECIES_STARMIE] = 2, + [SPECIES_MR_MIME] = 0, + [SPECIES_SCYTHER] = 1, + [SPECIES_JYNX] = 2, + [SPECIES_ELECTABUZZ] = 1, + [SPECIES_MAGMAR] = 0, + [SPECIES_PINSIR] = 2, + [SPECIES_TAUROS] = 2, + [SPECIES_MAGIKARP] = 0, + [SPECIES_GYARADOS] = 0, + [SPECIES_LAPRAS] = 2, + [SPECIES_DITTO] = 2, + [SPECIES_EEVEE] = 2, + [SPECIES_VAPOREON] = 0, + [SPECIES_JOLTEON] = 0, + [SPECIES_FLAREON] = 0, + [SPECIES_PORYGON] = 0, + [SPECIES_OMANYTE] = 0, + [SPECIES_OMASTAR] = 0, + [SPECIES_KABUTO] = 2, + [SPECIES_KABUTOPS] = 2, + [SPECIES_AERODACTYL] = 0, + [SPECIES_SNORLAX] = 1, + [SPECIES_ARTICUNO] = 0, + [SPECIES_ZAPDOS] = 0, + [SPECIES_MOLTRES] = 0, + [SPECIES_DRATINI] = 0, + [SPECIES_DRAGONAIR] = 0, + [SPECIES_DRAGONITE] = 2, + [SPECIES_MEWTWO] = 2, + [SPECIES_MEW] = 0, + [SPECIES_CHIKORITA] = 1, + [SPECIES_BAYLEEF] = 1, + [SPECIES_MEGANIUM] = 1, + [SPECIES_CYNDAQUIL] = 1, + [SPECIES_QUILAVA] = 1, + [SPECIES_TYPHLOSION] = 1, + [SPECIES_TOTODILE] = 2, + [SPECIES_CROCONAW] = 2, + [SPECIES_FERALIGATR] = 2, + [SPECIES_SENTRET] = 2, + [SPECIES_FURRET] = 2, + [SPECIES_HOOTHOOT] = 2, + [SPECIES_NOCTOWL] = 2, + [SPECIES_LEDYBA] = 0, + [SPECIES_LEDIAN] = 0, + [SPECIES_SPINARAK] = 1, + [SPECIES_ARIADOS] = 0, + [SPECIES_CROBAT] = 2, + [SPECIES_CHINCHOU] = 2, + [SPECIES_LANTURN] = 0, + [SPECIES_PICHU] = 0, + [SPECIES_CLEFFA] = 0, + [SPECIES_IGGLYBUFF] = 1, + [SPECIES_TOGEPI] = 2, + [SPECIES_TOGETIC] = 2, + [SPECIES_NATU] = 0, + [SPECIES_XATU] = 0, + [SPECIES_MAREEP] = 2, + [SPECIES_FLAAFFY] = 0, + [SPECIES_AMPHAROS] = 0, + [SPECIES_BELLOSSOM] = 1, + [SPECIES_MARILL] = 2, + [SPECIES_AZUMARILL] = 2, + [SPECIES_SUDOWOODO] = 1, + [SPECIES_POLITOED] = 1, + [SPECIES_HOPPIP] = 1, + [SPECIES_SKIPLOOM] = 1, + [SPECIES_JUMPLUFF] = 2, + [SPECIES_AIPOM] = 2, + [SPECIES_SUNKERN] = 1, + [SPECIES_SUNFLORA] = 1, + [SPECIES_YANMA] = 1, + [SPECIES_WOOPER] = 0, + [SPECIES_QUAGSIRE] = 0, + [SPECIES_ESPEON] = 2, + [SPECIES_UMBREON] = 2, + [SPECIES_MURKROW] = 2, + [SPECIES_SLOWKING] = 0, + [SPECIES_MISDREAVUS] = 0, + [SPECIES_UNOWN] = 0, + [SPECIES_WOBBUFFET] = 0, + [SPECIES_GIRAFARIG] = 1, + [SPECIES_PINECO] = 0, + [SPECIES_FORRETRESS] = 2, + [SPECIES_DUNSPARCE] = 2, + [SPECIES_GLIGAR] = 2, + [SPECIES_STEELIX] = 0, + [SPECIES_SNUBBULL] = 0, + [SPECIES_GRANBULL] = 2, + [SPECIES_QWILFISH] = 0, + [SPECIES_SCIZOR] = 0, + [SPECIES_SHUCKLE] = 1, + [SPECIES_HERACROSS] = 2, + [SPECIES_SNEASEL] = 0, + [SPECIES_TEDDIURSA] = 0, + [SPECIES_URSARING] = 2, + [SPECIES_SLUGMA] = 0, + [SPECIES_MAGCARGO] = 0, + [SPECIES_SWINUB] = 2, + [SPECIES_PILOSWINE] = 2, + [SPECIES_CORSOLA] = 0, + [SPECIES_REMORAID] = 0, + [SPECIES_OCTILLERY] = 0, + [SPECIES_DELIBIRD] = 0, + [SPECIES_MANTINE] = 2, + [SPECIES_SKARMORY] = 0, + [SPECIES_HOUNDOUR] = 0, + [SPECIES_HOUNDOOM] = 0, + [SPECIES_KINGDRA] = 0, + [SPECIES_PHANPY] = 0, + [SPECIES_DONPHAN] = 0, + [SPECIES_PORYGON2] = 0, + [SPECIES_STANTLER] = 2, + [SPECIES_SMEARGLE] = 1, + [SPECIES_TYROGUE] = 2, + [SPECIES_HITMONTOP] = 2, + [SPECIES_SMOOCHUM] = 1, + [SPECIES_ELEKID] = 1, + [SPECIES_MAGBY] = 1, + [SPECIES_MILTANK] = 1, + [SPECIES_BLISSEY] = 1, + [SPECIES_RAIKOU] = 0, + [SPECIES_ENTEI] = 2, + [SPECIES_SUICUNE] = 0, + [SPECIES_LARVITAR] = 1, + [SPECIES_PUPITAR] = 0, + [SPECIES_TYRANITAR] = 1, + [SPECIES_LUGIA] = 0, + [SPECIES_HO_OH] = 1, + [SPECIES_CELEBI] = 1, + [SPECIES_OLD_UNOWN_B] = 0, + [SPECIES_OLD_UNOWN_C] = 0, + [SPECIES_OLD_UNOWN_D] = 0, + [SPECIES_OLD_UNOWN_E] = 0, + [SPECIES_OLD_UNOWN_F] = 0, + [SPECIES_OLD_UNOWN_G] = 0, + [SPECIES_OLD_UNOWN_H] = 0, + [SPECIES_OLD_UNOWN_I] = 0, + [SPECIES_OLD_UNOWN_J] = 0, + [SPECIES_OLD_UNOWN_K] = 0, + [SPECIES_OLD_UNOWN_L] = 0, + [SPECIES_OLD_UNOWN_M] = 0, + [SPECIES_OLD_UNOWN_N] = 0, + [SPECIES_OLD_UNOWN_O] = 0, + [SPECIES_OLD_UNOWN_P] = 0, + [SPECIES_OLD_UNOWN_Q] = 0, + [SPECIES_OLD_UNOWN_R] = 0, + [SPECIES_OLD_UNOWN_S] = 0, + [SPECIES_OLD_UNOWN_T] = 0, + [SPECIES_OLD_UNOWN_U] = 0, + [SPECIES_OLD_UNOWN_V] = 0, + [SPECIES_OLD_UNOWN_W] = 0, + [SPECIES_OLD_UNOWN_X] = 0, + [SPECIES_OLD_UNOWN_Y] = 0, + [SPECIES_OLD_UNOWN_Z] = 0, + [SPECIES_TREECKO] = 1, + [SPECIES_GROVYLE] = 0, + [SPECIES_SCEPTILE] = 1, + [SPECIES_TORCHIC] = 0, + [SPECIES_COMBUSKEN] = 0, + [SPECIES_BLAZIKEN] = 0, + [SPECIES_MUDKIP] = 0, + [SPECIES_MARSHTOMP] = 0, + [SPECIES_SWAMPERT] = 0, + [SPECIES_POOCHYENA] = 2, + [SPECIES_MIGHTYENA] = 2, + [SPECIES_ZIGZAGOON] = 2, + [SPECIES_LINOONE] = 2, + [SPECIES_WURMPLE] = 0, + [SPECIES_SILCOON] = 2, + [SPECIES_BEAUTIFLY] = 0, + [SPECIES_CASCOON] = 2, + [SPECIES_DUSTOX] = 1, + [SPECIES_LOTAD] = 1, + [SPECIES_LOMBRE] = 1, + [SPECIES_LUDICOLO] = 1, + [SPECIES_SEEDOT] = 1, + [SPECIES_NUZLEAF] = 1, + [SPECIES_SHIFTRY] = 0, + [SPECIES_NINCADA] = 1, + [SPECIES_NINJASK] = 1, + [SPECIES_SHEDINJA] = 1, + [SPECIES_TAILLOW] = 2, + [SPECIES_SWELLOW] = 2, + [SPECIES_SHROOMISH] = 1, + [SPECIES_BRELOOM] = 1, + [SPECIES_SPINDA] = 1, + [SPECIES_WINGULL] = 0, + [SPECIES_PELIPPER] = 0, + [SPECIES_SURSKIT] = 2, + [SPECIES_MASQUERAIN] = 0, + [SPECIES_WAILMER] = 2, + [SPECIES_WAILORD] = 0, + [SPECIES_SKITTY] = 0, + [SPECIES_DELCATTY] = 2, + [SPECIES_KECLEON] = 1, + [SPECIES_BALTOY] = 1, + [SPECIES_CLAYDOL] = 0, + [SPECIES_NOSEPASS] = 0, + [SPECIES_TORKOAL] = 1, + [SPECIES_SABLEYE] = 2, + [SPECIES_BARBOACH] = 0, + [SPECIES_WHISCASH] = 0, + [SPECIES_LUVDISC] = 0, + [SPECIES_CORPHISH] = 0, + [SPECIES_CRAWDAUNT] = 0, + [SPECIES_FEEBAS] = 2, + [SPECIES_MILOTIC] = 0, + [SPECIES_CARVANHA] = 0, + [SPECIES_SHARPEDO] = 0, + [SPECIES_TRAPINCH] = 1, + [SPECIES_VIBRAVA] = 1, + [SPECIES_FLYGON] = 1, + [SPECIES_MAKUHITA] = 2, + [SPECIES_HARIYAMA] = 1, + [SPECIES_ELECTRIKE] = 1, + [SPECIES_MANECTRIC] = 0, + [SPECIES_NUMEL] = 1, + [SPECIES_CAMERUPT] = 0, + [SPECIES_SPHEAL] = 2, + [SPECIES_SEALEO] = 2, + [SPECIES_WALREIN] = 0, + [SPECIES_CACNEA] = 1, + [SPECIES_CACTURNE] = 1, + [SPECIES_SNORUNT] = 2, + [SPECIES_GLALIE] = 0, + [SPECIES_LUNATONE] = 1, + [SPECIES_SOLROCK] = 0, + [SPECIES_AZURILL] = 2, + [SPECIES_SPOINK] = 0, + [SPECIES_GRUMPIG] = 2, + [SPECIES_PLUSLE] = 0, + [SPECIES_MINUN] = 0, + [SPECIES_MAWILE] = 2, + [SPECIES_MEDITITE] = 0, + [SPECIES_MEDICHAM] = 0, + [SPECIES_SWABLU] = 0, + [SPECIES_ALTARIA] = 0, + [SPECIES_WYNAUT] = 0, + [SPECIES_DUSKULL] = 0, + [SPECIES_DUSCLOPS] = 0, + [SPECIES_ROSELIA] = 0, + [SPECIES_SLAKOTH] = 2, + [SPECIES_VIGOROTH] = 2, + [SPECIES_SLAKING] = 1, + [SPECIES_GULPIN] = 1, + [SPECIES_SWALOT] = 2, + [SPECIES_TROPIUS] = 1, + [SPECIES_WHISMUR] = 0, + [SPECIES_LOUDRED] = 2, + [SPECIES_EXPLOUD] = 2, + [SPECIES_CLAMPERL] = 0, + [SPECIES_HUNTAIL] = 0, + [SPECIES_GOREBYSS] = 0, + [SPECIES_ABSOL] = 0, + [SPECIES_SHUPPET] = 0, + [SPECIES_BANETTE] = 0, + [SPECIES_SEVIPER] = 2, + [SPECIES_ZANGOOSE] = 0, + [SPECIES_RELICANTH] = 1, + [SPECIES_ARON] = 2, + [SPECIES_LAIRON] = 2, + [SPECIES_AGGRON] = 2, + [SPECIES_CASTFORM] = 0, + [SPECIES_VOLBEAT] = 0, + [SPECIES_ILLUMISE] = 2, + [SPECIES_LILEEP] = 2, + [SPECIES_CRADILY] = 0, + [SPECIES_ANORITH] = 0, + [SPECIES_ARMALDO] = 0, + [SPECIES_RALTS] = 1, + [SPECIES_KIRLIA] = 1, + [SPECIES_GARDEVOIR] = 1, + [SPECIES_BAGON] = 2, + [SPECIES_SHELGON] = 2, + [SPECIES_SALAMENCE] = 0, + [SPECIES_BELDUM] = 0, + [SPECIES_METANG] = 0, + [SPECIES_METAGROSS] = 0, + [SPECIES_REGIROCK] = 2, + [SPECIES_REGICE] = 2, + [SPECIES_REGISTEEL] = 2, + [SPECIES_KYOGRE] = 2, + [SPECIES_GROUDON] = 0, + [SPECIES_RAYQUAZA] = 1, + [SPECIES_LATIAS] = 0, + [SPECIES_LATIOS] = 2, + [SPECIES_JIRACHI] = 0, + [SPECIES_DEOXYS] = 0, + [SPECIES_CHIMECHO] = 0, + [SPECIES_EGG] = 1, + [SPECIES_UNOWN_B] = 0, + [SPECIES_UNOWN_C] = 0, + [SPECIES_UNOWN_D] = 0, + [SPECIES_UNOWN_E] = 0, + [SPECIES_UNOWN_F] = 0, + [SPECIES_UNOWN_G] = 0, + [SPECIES_UNOWN_H] = 0, + [SPECIES_UNOWN_I] = 0, + [SPECIES_UNOWN_J] = 0, + [SPECIES_UNOWN_K] = 0, + [SPECIES_UNOWN_L] = 0, + [SPECIES_UNOWN_M] = 0, + [SPECIES_UNOWN_N] = 0, + [SPECIES_UNOWN_O] = 0, + [SPECIES_UNOWN_P] = 0, + [SPECIES_UNOWN_Q] = 0, + [SPECIES_UNOWN_R] = 0, + [SPECIES_UNOWN_S] = 0, + [SPECIES_UNOWN_T] = 0, + [SPECIES_UNOWN_U] = 0, + [SPECIES_UNOWN_V] = 0, + [SPECIES_UNOWN_W] = 0, + [SPECIES_UNOWN_X] = 0, + [SPECIES_UNOWN_Y] = 0, + [SPECIES_UNOWN_Z] = 0, + [SPECIES_UNOWN_EMARK] = 0, + [SPECIES_UNOWN_QMARK] = 0 +}; + +const struct SpritePalette gMonIconPaletteTable[] = { + { gMonIconPalettes[0], POKE_ICON_BASE_PAL_TAG + 0 }, + { gMonIconPalettes[1], POKE_ICON_BASE_PAL_TAG + 1 }, + { gMonIconPalettes[2], POKE_ICON_BASE_PAL_TAG + 2 }, + // The following three point outside the gMonIconPalettes array + // and are therefore invalid. Fortunately, they are never used. + { gMonIconPalettes[3], POKE_ICON_BASE_PAL_TAG + 3 }, + { gMonIconPalettes[4], POKE_ICON_BASE_PAL_TAG + 4 }, + { gMonIconPalettes[5], POKE_ICON_BASE_PAL_TAG + 5 } +}; + +static const struct OamData sMonIconOamData = { + .affineMode = ST_OAM_AFFINE_OFF, + .objMode = ST_OAM_OBJ_NORMAL, + .mosaic = FALSE, + .bpp = ST_OAM_4BPP, + .shape = SPRITE_SHAPE(32x32), + .matrixNum = 0, + .size = SPRITE_SIZE(32x32), + .tileNum = 0x000, + .priority = 1, + .paletteNum = 0 +}; + +static const union AnimCmd sMonIconAnim_Fast[] = { + ANIMCMD_FRAME(0, 6), + ANIMCMD_FRAME(1, 6), + ANIMCMD_JUMP(0) +}; + +static const union AnimCmd sMonIconAnim_MediumFast[] = { + ANIMCMD_FRAME(0, 8), + ANIMCMD_FRAME(1, 8), + ANIMCMD_JUMP(0) +}; + +static const union AnimCmd sMonIconAnim_MediumSlow[] = { + ANIMCMD_FRAME(0, 14), + ANIMCMD_FRAME(1, 14), + ANIMCMD_JUMP(0) +}; + +static const union AnimCmd sMonIconAnim_Slow[] = { + ANIMCMD_FRAME(0, 22), + ANIMCMD_FRAME(1, 22), + ANIMCMD_JUMP(0) +}; + +static const union AnimCmd sMonIconAnim_Still[] = { + ANIMCMD_FRAME(0, 29), + ANIMCMD_FRAME(0, 29), + ANIMCMD_JUMP(0) +}; + +static const union AnimCmd *const sMonIconAnims[] = { + sMonIconAnim_Fast, + sMonIconAnim_MediumFast, + sMonIconAnim_MediumSlow, + sMonIconAnim_Slow, + sMonIconAnim_Still +}; + +static const union AffineAnimCmd sMonIconAffineAnim_0[] = { + AFFINEANIMCMD_FRAME(0, 0, 0, 10), + AFFINEANIMCMD_END +}; + +static const union AffineAnimCmd sMonIconAffineAnim_1[] = { + AFFINEANIMCMD_FRAME(-2, -2, 0, 122), + AFFINEANIMCMD_END +}; + +static const union AffineAnimCmd *const sMonIconAffineAnims[] = { + sMonIconAffineAnim_0, + sMonIconAffineAnim_1 +}; + +static const u16 sSpriteImageSizes[][4] = { + [ST_OAM_SQUARE] = { + [ST_OAM_SIZE_0] = 0x020, + [ST_OAM_SIZE_1] = 0x080, + [ST_OAM_SIZE_2] = 0x200, + [ST_OAM_SIZE_3] = 0x800, + }, + [ST_OAM_H_RECTANGLE] = { + [ST_OAM_SIZE_0] = 0x040, + [ST_OAM_SIZE_1] = 0x080, + [ST_OAM_SIZE_2] = 0x100, + [ST_OAM_SIZE_3] = 0x400, + }, + [ST_OAM_V_RECTANGLE] = { + [ST_OAM_SIZE_0] = 0x040, + [ST_OAM_SIZE_1] = 0x080, + [ST_OAM_SIZE_2] = 0x100, + [ST_OAM_SIZE_3] = 0x400, + }, +}; + +u8 CreateMonIcon(u16 species, SpriteCallback callback, s16 x, s16 y, u8 subpriority, u32 personality, bool32 extra) +{ + u8 spriteId; + struct MonIconSpriteTemplate iconTemplate = + { + .oam = &sMonIconOamData, + .image = GetMonIconPtr(species, personality, extra), + .anims = sMonIconAnims, + .affineAnims = sMonIconAffineAnims, + .callback = callback, + .paletteTag = POKE_ICON_BASE_PAL_TAG + gMonIconPaletteIndices[species], + }; + + if (species > NUM_SPECIES) + iconTemplate.paletteTag = POKE_ICON_BASE_PAL_TAG; + + spriteId = CreateMonIconSprite(&iconTemplate, x, y, subpriority); + + UpdateMonIconFrame(&gSprites[spriteId]); + + return spriteId; +} + +u8 CreateMonIcon_HandleDeoxys(u16 species, SpriteCallback callback, s16 x, s16 y, u8 subpriority, bool32 extra) +{ + u8 spriteId; + struct MonIconSpriteTemplate iconTemplate = + { + .oam = &sMonIconOamData, + .image = NULL, + .anims = sMonIconAnims, + .affineAnims = sMonIconAffineAnims, + .callback = callback, + .paletteTag = POKE_ICON_BASE_PAL_TAG + gMonIconPaletteIndices[species], + }; + + iconTemplate.image = GetMonIconTiles(species, extra); + spriteId = CreateMonIconSprite(&iconTemplate, x, y, subpriority); + + UpdateMonIconFrame(&gSprites[spriteId]); + + return spriteId; +} + +u16 GetIconSpecies(u16 species, u32 personality) +{ + u16 result; + + if (species == SPECIES_UNOWN) + { + u16 letter = GetUnownLetterByPersonality(personality); + if (letter == 0) + letter = SPECIES_UNOWN; + else + letter += (SPECIES_UNOWN_B - 1); + result = letter; + } + else + { + if (species > NUM_SPECIES) + result = SPECIES_NONE; + else + result = species; + } + + return result; +} + +u16 GetUnownLetterByPersonality(u32 personality) +{ + if (!personality) + return 0; + else + return (((personality & 0x3000000) >> 18) | ((personality & 0x30000) >> 12) | ((personality & 0x300) >> 6) | (personality & 0x3)) % 0x1C; +} + +u16 MailSpeciesToIconSpecies(u16 species) +{ + u16 value; + + if (MailSpeciesToSpecies(species, &value) == SPECIES_UNOWN) + { + if (value == 0) + value += SPECIES_UNOWN; + else + value += (SPECIES_UNOWN_B - 1); + return value; + } + else + { + if (species > (SPECIES_UNOWN_B - 1)) + species = SPECIES_NONE; + return GetIconSpecies(species, 0); + } +} + +const u8 *GetMonIconTiles(u16 species, bool32 extra) +{ + const u8 *iconSprite = gMonIconTable[species]; + if (species == SPECIES_DEOXYS && extra == TRUE) + iconSprite += 0x400; + return iconSprite; +} + +const u8 *GetMonIconPtr(u16 species, u32 personality, bool32 extra) +{ + return GetMonIconTiles(GetIconSpecies(species, personality), extra); +} + +void DestroyMonIcon(struct Sprite * sprite) +{ + DestroyMonIconInternal(sprite); +} + +void LoadMonIconPalettes(void) +{ + u8 i; + for (i = 0; i < NELEMS(gMonIconPaletteTable); i++) + LoadSpritePalette(&gMonIconPaletteTable[i]); +} + +void SafeLoadMonIconPalette(u16 species) +{ + u8 palIndex; + if (species > NUM_SPECIES) + species = SPECIES_NONE; + palIndex = gMonIconPaletteIndices[species]; + if (IndexOfSpritePaletteTag(gMonIconPaletteTable[palIndex].tag) == 0xFF) + LoadSpritePalette(&gMonIconPaletteTable[palIndex]); +} + +void LoadMonIconPalette(u16 species) +{ + u8 palIndex; + palIndex = gMonIconPaletteIndices[species]; + if (IndexOfSpritePaletteTag(gMonIconPaletteTable[palIndex].tag) == 0xFF) + LoadSpritePalette(&gMonIconPaletteTable[palIndex]); +} + +void FreeMonIconPalettes(void) +{ + u8 i; + for (i = 0; i < 6; i++) + FreeSpritePaletteByTag(gMonIconPaletteTable[i].tag); +} + +void SafeFreeMonIconPalette(u16 species) +{ + u8 palIndex; + if (species > NUM_SPECIES) + species = SPECIES_NONE; + palIndex = gMonIconPaletteIndices[species]; + FreeSpritePaletteByTag(gMonIconPaletteTable[palIndex].tag); +} + +void FreeMonIconPalette(u16 species) +{ + u8 palIndex; + palIndex = gMonIconPaletteIndices[species]; + FreeSpritePaletteByTag(gMonIconPaletteTable[palIndex].tag); +} + +void SpriteCB_MonIcon(struct Sprite * sprite) +{ + UpdateMonIconFrame(sprite); +} + +void LoadMonIconPalettesAt(u16 offset) +{ + int i; + if (offset <= 0x100 - 0x60) + { + for (i = 0; i < (int)NELEMS(gMonIconPaletteTable); i++) + { + LoadPalette(gMonIconPaletteTable[i].data, offset, 0x20); + offset += 0x10; + } + } +} + +const u16 *GetValidMonIconPalettePtr(u16 species) +{ + if (species > NUM_SPECIES) + species = SPECIES_NONE; + return gMonIconPaletteTable[gMonIconPaletteIndices[species]].data; +} + +u8 GetValidMonIconPalIndex(u16 species) +{ + if (species > NUM_SPECIES) + species = SPECIES_NONE; + return gMonIconPaletteIndices[species]; +} + +u8 GetMonIconPaletteIndexFromSpecies(u16 species) +{ + return gMonIconPaletteIndices[species]; +} + +u8 UpdateMonIconFrame(struct Sprite * sprite) +{ + u8 result = 0; + + if (sprite->animDelayCounter == 0) + { + s16 frame = sprite->anims[sprite->animNum][sprite->animCmdIndex].frame.imageValue; + + switch (frame) + { + case -1: + break; + case -2: + sprite->animCmdIndex = 0; + break; + default: + RequestSpriteCopy( + // pointer arithmetic is needed to get the correct pointer to perform the sprite copy on. + // because sprite->images is a struct def, it has to be casted to (u8 *) before any + // arithmetic can be performed. + (u8 *)sprite->images + (sSpriteImageSizes[sprite->oam.shape][sprite->oam.size] * frame), + (u8 *)(OBJ_VRAM0 + sprite->oam.tileNum * TILE_SIZE_4BPP), + sSpriteImageSizes[sprite->oam.shape][sprite->oam.size]); + sprite->animDelayCounter = sprite->anims[sprite->animNum][sprite->animCmdIndex].frame.duration & 0xFF; + sprite->animCmdIndex++; + result = sprite->animCmdIndex; + break; + } + } + else + { + sprite->animDelayCounter--; + } + return result; +} + +static u8 CreateMonIconSprite(const struct MonIconSpriteTemplate * iconTemplate, s16 x, s16 y, u8 subpriority) +{ + u8 spriteId; + + struct SpriteFrameImage image = { NULL, sSpriteImageSizes[iconTemplate->oam->shape][iconTemplate->oam->size] }; + + struct SpriteTemplate spriteTemplate = + { + .tileTag = SPRITE_INVALID_TAG, + .paletteTag = iconTemplate->paletteTag, + .oam = iconTemplate->oam, + .anims = iconTemplate->anims, + .images = &image, + .affineAnims = iconTemplate->affineAnims, + .callback = iconTemplate->callback, + }; + + spriteId = CreateSprite(&spriteTemplate, x, y, subpriority); + gSprites[spriteId].animPaused = TRUE; + gSprites[spriteId].animBeginning = FALSE; + gSprites[spriteId].images = (const struct SpriteFrameImage *)iconTemplate->image; + return spriteId; +} + +static void DestroyMonIconInternal(struct Sprite * sprite) +{ + struct SpriteFrameImage image = { NULL, sSpriteImageSizes[sprite->oam.shape][sprite->oam.size] }; + sprite->images = ℑ + DestroySprite(sprite); +} + +void MonIcon_SetAnim(struct Sprite * sprite, u8 animNum) +{ + sprite->animNum = animNum; + sprite->animDelayCounter = 0; + sprite->animCmdIndex = 0; +} diff --git a/src/prof_pc.c b/src/prof_pc.c index aeabc8644..d1f06a2ba 100644 --- a/src/prof_pc.c +++ b/src/prof_pc.c @@ -36,7 +36,7 @@ u16 Special_GetPokedexCount(void) return IsNationalPokedexEnabled(); } -const u8 * sub_80CA424(u16 count) +static const u8 *GetProfOaksRatingMessageByCount(u16 count) { gSpecialVar_Result = FALSE; @@ -102,7 +102,7 @@ const u8 * sub_80CA424(u16 count) return gUnknown_81A6D17; } -void sub_80CA524(void) +void Special_GetProfOaksRatingMessage(void) { - ShowFieldMessage(sub_80CA424(gSpecialVar_0x8004)); + ShowFieldMessage(GetProfOaksRatingMessageByCount(gSpecialVar_0x8004)); } diff --git a/src/psychic.c b/src/psychic.c index 662320a2b..a8108c55a 100644 --- a/src/psychic.c +++ b/src/psychic.c @@ -47,7 +47,7 @@ const struct SpriteTemplate gUnknown_83E6DF8 = .anims = gDummySpriteAnimTable, .images = NULL, .affineAnims = gUnknown_83E6DF4, - .callback = sub_8075D9C, + .callback = AnimSpriteOnMonPos, }; const struct SpriteTemplate gUnknown_83E6E10 = @@ -376,7 +376,7 @@ const struct SpriteTemplate gUnknown_83E7148 = .anims = gDummySpriteAnimTable, .images = NULL, .affineAnims = gUnknown_83E7144, - .callback = sub_8075D9C, + .callback = AnimSpriteOnMonPos, }; static const union AffineAnimCmd gUnknown_83E7160[] = diff --git a/src/quest_log.c b/src/quest_log.c index ef8f56249..896a44d17 100644 --- a/src/quest_log.c +++ b/src/quest_log.c @@ -38,6 +38,7 @@ #include "quest_log_8150454.h" #include "quest_log.h" #include "new_menu_helpers.h" +#include "strings.h" u8 gUnknown_3005E88; @@ -72,9 +73,9 @@ struct UnkStruct_203AE98 struct UnkStruct_300201C { - u16 unk_0_0:15; - u16 unk_0_f:1; - u16 unk_2; + u16 idx:15; + u16 isFlag:1; + u16 value; }; struct UnkStruct_203B044 @@ -85,30 +86,30 @@ struct UnkStruct_203B044 }; u8 gUnknown_3005E88; -u16 gUnknown_3005E8C; +u16 sNumQuestLogs; struct UnkStruct_3005E90 gUnknown_3005E90; struct UnkStruct_203AE98 * gUnknown_3005E94; -static struct UnkStruct_300201C * gUnknown_300201C; -static u16 gUnknown_3002020; +static struct UnkStruct_300201C * sFlagOrVarRecords; +static u16 sNumFlagsOrVars; static EWRAM_DATA u8 gUnknown_203ADF8 = 0; static EWRAM_DATA u8 sNumScenes = 0; EWRAM_DATA u8 gUnknown_203ADFA = 0; static EWRAM_DATA u16 gUnknown_203ADFC = 0; static EWRAM_DATA u8 gUnknown_203ADFE[3] = {0}; -static EWRAM_DATA u16 * gUnknown_203AE04 = NULL; -static EWRAM_DATA u16 * gUnknown_203AE08 = NULL; -static EWRAM_DATA u16 * gUnknown_203AE0C[32] = {NULL}; -static EWRAM_DATA void (* gUnknown_203AE8C)(void) = NULL; +static EWRAM_DATA u16 *gUnknown_203AE04 = NULL; +static EWRAM_DATA u16 *gUnknown_203AE08 = NULL; +static EWRAM_DATA u16 *gUnknown_203AE0C[32] = {NULL}; +static EWRAM_DATA void (* sQuestLogCB)(void) = NULL; static EWRAM_DATA u16 *gUnknown_203AE90 = NULL; static EWRAM_DATA struct UnkStruct_203AE94 gUnknown_203AE94 = {0}; static EWRAM_DATA struct UnkStruct_203AE98 gUnknown_203AE98[32] = {0}; -static EWRAM_DATA u16 gUnknown_203AF98 = 0; +static EWRAM_DATA u16 sQuestLogIdx = 0; static EWRAM_DATA u8 gUnknown_203AF9A[64][2] = {{0}}; static EWRAM_DATA u16 gUnknown_203B01A = 0; static EWRAM_DATA u16 gUnknown_203B01C = 0; -static EWRAM_DATA u16 gUnknown_203B01E = 0; +static EWRAM_DATA u16 sFlagOrVarPlayhead = 0; static EWRAM_DATA u8 sHelpMessageWindowId = 0; static EWRAM_DATA struct UnkStruct_203B024 gUnknown_203B024 = {0}; static EWRAM_DATA struct UnkStruct_203B044 gUnknown_203B044 = {0}; @@ -129,23 +130,23 @@ static u8 sub_8110E68(struct UnkStruct_203AE98 *); static void sub_8110F90(u8); static void sub_8111150(u8); static void sub_8111368(void); -static void sub_81115E8(void); -static u16 sub_8111618(void); -static u16 sub_811164C(void); +static void QuestLog_GetSaneMonCounts(void); +static u16 QuestLog_GetSanePartyCount(void); +static u16 QuestLog_GetSaneBoxCount(void); static void sub_8111688(void); static void sub_811175C(u8, struct UnkStruct_203AE98 *); static void sub_81118F4(s8); -static void sub_8111914(void); -static void sub_8111984(void); -static void sub_8111A34(u8); +static void QuestLog_AdvancePlayhead(void); +static void QuestLog_EndPlayback(void); +static void Task_RunPlaybackCB(u8); static void sub_8111AD8(void); static void sub_8111B80(void); static u8 sub_8111BD4(void); static void sub_8111D10(void); static void sub_8111D90(u8); static void sub_8111E20(void); -static void sub_8111E64(s8); -static void sub_8111E84(void); +static void QuestLog_SkipToEndOfPlayback(s8); +static void QuestLog_WaitFadeAndCancelPlayback(void); static bool8 sub_8111F60(void); static void sub_8111F8C(u8); static void sub_8111FCC(u8); @@ -171,106 +172,106 @@ static void sub_8113524(struct Var4038Struct *); static bool8 sub_81136D4(void); static bool8 sub_8113778(u16, u16 *); static bool8 sub_81137E4(u16, u16 *); -static u16 * sub_8113828(u16, u16 *); +static u16 *sub_8113828(u16, u16 *); static bool8 sub_81138A0(u16, u16 *); static bool8 sub_8113954(u16, u16 *); static void sub_8113A1C(u16); static void sub_811381C(void); static bool8 sub_8113A44(u16, u16 *); -static u16 * sub_8113A78(u16 *, u16 **); +static u16 *QuestLog_SkipCommand(u16 *, u16 **); static void sub_8113ABC(u16 *); static bool8 sub_8113AE8(u16 *); static bool8 sub_8113B44(u16 *); static void sub_8113B88(void); static void sub_8113B94(u16); static void sub_8113BD8(void); -static u16 * sub_8113BF4(u16 *); -static u16 * sub_8113C20(u16 *, struct UnkStruct_203AE98 *); -static u16 * sub_8113C5C(u16 *, u16); -static u16 * sub_8113C8C(u16 *, struct UnkStruct_203AE98 *); -static u16 * sub_8113CC8(u16 *, struct UnkStruct_203AE98 *); -static u16 * sub_8113D08(u16 *, struct UnkStruct_203AE98 *); -static u16 * sub_8113D48(u16 *, struct UnkStruct_203AE98 *); -static u16 * sub_8113D94(u16 *, struct UnkStruct_203AE98 *); -static u16 * sub_8113F14(u16 *, const u16 *); -static const u16 * sub_8113F3C(const u16 *); -static u16 * sub_8113F80(u16 *, const u16 *); -static const u16 * sub_8113FBC(const u16 *); -static u16 * sub_8114174(u16 *, const u16 *); -static const u16 * sub_8114188(const u16 *); -static u16 * sub_81141D0(u16 *, const u16 *); -static const u16 * sub_81141E4(const u16 *); -static u16 * sub_811422C(u16 *, const u16 *); -static const u16 * sub_8114240(const u16 *); -static u16 * sub_8114288(u16 *, const u16 *); -static const u16 * sub_811429C(const u16 *); -static u16 * sub_8114310(u16 *, const u16 *); -static const u16 * sub_8114324(const u16 *); -static u16 * sub_8114380(u16 *, const u16 *); -static const u16 * sub_8114394(const u16 *); -static u16 * sub_81143F0(u16 *, const u16 *); -static const u16 * sub_811443C(const u16 *); -static u16 * sub_811445C(u16 *, const u16 *); -static const u16 * sub_811448C(const u16 *); -static u16 * sub_81144EC(u16 *, const u16 *); -static const u16 * sub_8114518(const u16 *); -static u16 * sub_8114578(u16 *, const u16 *); -static const u16 * sub_81145A4(const u16 *); -static u16 * sub_8114604(u16 *, const u16 *); -static const u16 * sub_811464C(const u16 *); -static u16 * sub_8114710(u16 *, const u16 *); -static const u16 * sub_8114724(const u16 *); -static u16 * sub_8114744(u16 *, const u16 *); -static const u16 * sub_8114758(const u16 *); -static u16 * sub_8114778(u16 *, const u16 *); -static const u16 * sub_81147A8(const u16 *); -static u16 * sub_8114808(u16 *, const u16 *); -static const u16 * sub_8114834(const u16 *); -static u16 * sub_811488C(u16 *, const u16 *); -static const u16 * sub_81148BC(const u16 *); -static u16 * sub_8114918(u16 *, const u16 *); -static const u16 * sub_8114944(const u16 *); -static u16 * sub_8114990(u16 *, const u16 *); -static const u16 * sub_81149D0(const u16 *); -static u16 * sub_8114A1C(u16 *, const u16 *); -static const u16 * sub_8114A4C(const u16 *); -static u16 * sub_8114AA0(u16 *, const u16 *); -static const u16 * sub_8114AC8(const u16 *); -static u16 * sub_8114B0C(u16 *, const u16 *); -static const u16 * sub_8114B34(const u16 *); -static u16 * sub_8114B78(u16 *, const u16 *); -static const u16 * sub_8114BA0(const u16 *); -static u16 * sub_8114BE4(u16 *, const u16 *); -static const u16 * sub_8114C0C(const u16 *); -static u16 * sub_8114C68(u16 *, const u16 *); -static const u16 * sub_8114C8C(const u16 *); -static u16 * sub_8114CC0(u16 *, const u16 *); -static const u16 * sub_8114CE4(const u16 *); -static u16 * sub_8114D4C(u16 *, const u16 *); -static const u16 * sub_8114D68(const u16 *); -static u16 * sub_8114DE8(u16 *, const u16 *); -static const u16 * sub_8114E68(const u16 *); +static u16 *sub_8113BF4(u16 *); +static u16 *sub_8113C20(u16 *, struct UnkStruct_203AE98 *); +static u16 *sub_8113C5C(u16 *, u16); +static u16 *sub_8113C8C(u16 *, struct UnkStruct_203AE98 *); +static u16 *sub_8113CC8(u16 *, struct UnkStruct_203AE98 *); +static u16 *sub_8113D08(u16 *, struct UnkStruct_203AE98 *); +static u16 *sub_8113D48(u16 *, struct UnkStruct_203AE98 *); +static u16 *sub_8113D94(u16 *, struct UnkStruct_203AE98 *); +static u16 *sub_8113F14(u16 *, const u16 *); +static const u16 *sub_8113F3C(const u16 *); +static u16 *sub_8113F80(u16 *, const u16 *); +static const u16 *sub_8113FBC(const u16 *); +static u16 *sub_8114174(u16 *, const u16 *); +static const u16 *sub_8114188(const u16 *); +static u16 *sub_81141D0(u16 *, const u16 *); +static const u16 *sub_81141E4(const u16 *); +static u16 *sub_811422C(u16 *, const u16 *); +static const u16 *sub_8114240(const u16 *); +static u16 *sub_8114288(u16 *, const u16 *); +static const u16 *sub_811429C(const u16 *); +static u16 *sub_8114310(u16 *, const u16 *); +static const u16 *sub_8114324(const u16 *); +static u16 *sub_8114380(u16 *, const u16 *); +static const u16 *sub_8114394(const u16 *); +static u16 *sub_81143F0(u16 *, const u16 *); +static const u16 *sub_811443C(const u16 *); +static u16 *sub_811445C(u16 *, const u16 *); +static const u16 *sub_811448C(const u16 *); +static u16 *sub_81144EC(u16 *, const u16 *); +static const u16 *sub_8114518(const u16 *); +static u16 *sub_8114578(u16 *, const u16 *); +static const u16 *sub_81145A4(const u16 *); +static u16 *sub_8114604(u16 *, const u16 *); +static const u16 *sub_811464C(const u16 *); +static u16 *sub_8114710(u16 *, const u16 *); +static const u16 *sub_8114724(const u16 *); +static u16 *sub_8114744(u16 *, const u16 *); +static const u16 *sub_8114758(const u16 *); +static u16 *sub_8114778(u16 *, const u16 *); +static const u16 *sub_81147A8(const u16 *); +static u16 *sub_8114808(u16 *, const u16 *); +static const u16 *sub_8114834(const u16 *); +static u16 *sub_811488C(u16 *, const u16 *); +static const u16 *sub_81148BC(const u16 *); +static u16 *sub_8114918(u16 *, const u16 *); +static const u16 *sub_8114944(const u16 *); +static u16 *sub_8114990(u16 *, const u16 *); +static const u16 *sub_81149D0(const u16 *); +static u16 *sub_8114A1C(u16 *, const u16 *); +static const u16 *sub_8114A4C(const u16 *); +static u16 *sub_8114AA0(u16 *, const u16 *); +static const u16 *sub_8114AC8(const u16 *); +static u16 *sub_8114B0C(u16 *, const u16 *); +static const u16 *sub_8114B34(const u16 *); +static u16 *sub_8114B78(u16 *, const u16 *); +static const u16 *sub_8114BA0(const u16 *); +static u16 *sub_8114BE4(u16 *, const u16 *); +static const u16 *sub_8114C0C(const u16 *); +static u16 *sub_8114C68(u16 *, const u16 *); +static const u16 *sub_8114C8C(const u16 *); +static u16 *sub_8114CC0(u16 *, const u16 *); +static const u16 *sub_8114CE4(const u16 *); +static u16 *sub_8114D4C(u16 *, const u16 *); +static const u16 *sub_8114D68(const u16 *); +static u16 *sub_8114DE8(u16 *, const u16 *); +static const u16 *sub_8114E68(const u16 *); static bool8 sub_8114FBC(u16); -static u16 * sub_8114FF0(u16 *, const u16 *); -static const u16 * sub_811500C(const u16 *); -static u16 * sub_8115078(u16 *, const u16 *); -static const u16 * sub_81150CC(const u16 *); -static u16 * sub_81151C0(u16 *, const u16 *); -static const u16 * sub_81151DC(const u16 *); -static u16 * sub_8115280(u16 *, const u16 *); -static const u16 * sub_81152BC(const u16 *); +static u16 *sub_8114FF0(u16 *, const u16 *); +static const u16 *sub_811500C(const u16 *); +static u16 *sub_8115078(u16 *, const u16 *); +static const u16 *sub_81150CC(const u16 *); +static u16 *sub_81151C0(u16 *, const u16 *); +static const u16 *sub_81151DC(const u16 *); +static u16 *sub_8115280(u16 *, const u16 *); +static const u16 *sub_81152BC(const u16 *); static bool8 sub_81153A8(u16, u16 *); static bool8 sub_81153E4(u16, u16 *); -static u16 * sub_8115410(u16 *, const u16 *); -static const u16 * sub_8115460(const u16 *); -static u16 * sub_81154DC(u16 *, const u16 *); -static const u16 * sub_8115518(const u16 *); -static u16 * sub_81155A4(u16 *, const u16 *); -static const u16 * sub_81155E0(const u16 *); -static u16 * sub_81156D8(u16 *, const u16 *); -static const u16 * sub_8115700(const u16 *); -static u16 * sub_81157DC(u16 *, const u16 *); -static const u16 * sub_8115800(const u16 *); +static u16 *sub_8115410(u16 *, const u16 *); +static const u16 *sub_8115460(const u16 *); +static u16 *sub_81154DC(u16 *, const u16 *); +static const u16 *sub_8115518(const u16 *); +static u16 *sub_81155A4(u16 *, const u16 *); +static const u16 *sub_81155E0(const u16 *); +static u16 *sub_81156D8(u16 *, const u16 *); +static const u16 *sub_8115700(const u16 *); +static u16 *sub_81157DC(u16 *, const u16 *); +static const u16 *sub_8115800(const u16 *); void sub_8115834(u8 *); extern const u8 gUnknown_841A155[]; @@ -364,40 +365,40 @@ extern const u8 gUnknown_841B005[]; extern const u8 gUnknown_841B03F[]; extern const u8 gUnknown_841B064[]; extern const u8 gUnknown_841B073[]; -extern const u8 gUnknown_841B09F[]; -extern const u8 gUnknown_841B0A4[]; -extern const u8 gUnknown_841B0B5[]; -extern const u8 gUnknown_841B0B9[]; -extern const u8 gUnknown_841B0CD[]; -extern const u8 gUnknown_841B0DD[]; -extern const u8 gUnknown_841B0F6[]; -extern const u8 gUnknown_841B0FF[]; -extern const u8 gUnknown_841B109[]; -extern const u8 gUnknown_841B116[]; -extern const u8 gUnknown_841B11F[]; -extern const u8 gUnknown_841B130[]; -extern const u8 gUnknown_841B141[]; -extern const u8 gUnknown_841B14B[]; -extern const u8 gUnknown_841B15A[]; -extern const u8 gUnknown_841B166[]; -extern const u8 gUnknown_841B172[]; -extern const u8 gUnknown_841B180[]; -extern const u8 gUnknown_841B190[]; -extern const u8 gUnknown_841B1A3[]; -extern const u8 gUnknown_841B1B7[]; -extern const u8 gUnknown_841B1C7[]; -extern const u8 gUnknown_841B1DA[]; -extern const u8 gUnknown_841B1E5[]; -extern const u8 gUnknown_841B1F4[]; -extern const u8 gUnknown_841B200[]; -extern const u8 gUnknown_841B20E[]; -extern const u8 gUnknown_841B21C[]; -extern const u8 gUnknown_841B226[]; -extern const u8 gUnknown_841B236[]; -extern const u8 gUnknown_841B246[]; -extern const u8 gUnknown_841B25B[]; -extern const u8 gUnknown_841B268[]; -extern const u8 gUnknown_841B277[]; +extern const u8 gQuestLogString_Home[]; +extern const u8 gQuestLogString_OakResearchLab[]; +extern const u8 gQuestLogString_Gym[]; +extern const u8 gQuestLogString_PokemonLeagueGate[]; +extern const u8 gQuestLogString_ViridianForest[]; +extern const u8 gQuestLogString_PewterMuseumOfScience[]; +extern const u8 gQuestLogString_MtMoon[]; +extern const u8 gQuestLogString_BikeShop[]; +extern const u8 gQuestLogString_BillSHouse[]; +extern const u8 gQuestLogString_DayCare[]; +extern const u8 gQuestLogString_UndergroundPath[]; +extern const u8 gQuestLogString_PokemonFanClub[]; +extern const u8 gQuestLogString_SSAnne[]; +extern const u8 gQuestLogString_DiglettSCave[]; +extern const u8 gQuestLogString_RockTunnel[]; +extern const u8 gQuestLogString_PowerPlant[]; +extern const u8 gQuestLogString_PokemonTower[]; +extern const u8 gQuestLogString_VolunteerHouse[]; +extern const u8 gQuestLogString_NameRaterSHouse[]; +extern const u8 gQuestLogString_CeladonDeptStore[]; +extern const u8 gQuestLogString_CeladonMansion[]; +extern const u8 gQuestLogString_RocketGameCorner[]; +extern const u8 gQuestLogString_Restaurant[]; +extern const u8 gQuestLogString_RocketHideout[]; +extern const u8 gQuestLogString_SafariZone[]; +extern const u8 gQuestLogString_WardenSHome[]; +extern const u8 gQuestLogString_FightingDojo[]; +extern const u8 gQuestLogString_SilphCo[]; +extern const u8 gQuestLogString_SeafoamIslands[]; +extern const u8 gQuestLogString_PokemonMansion[]; +extern const u8 gQuestLogString_PokemonResearchLab[]; +extern const u8 gQuestLogString_VictoryRoad[]; +extern const u8 gQuestLogString_PokemonLeague[]; +extern const u8 gQuestLogString_CeruleanCave[]; extern const u8 gUnknown_8418C1B[]; @@ -437,9 +438,9 @@ void sub_811089C(void) memset(gSaveBlock1Ptr->questLog, 0, sizeof(gSaveBlock1Ptr->questLog)); gUnknown_203ADF8 = 0; gUnknown_203ADFA = 0; - gUnknown_203AE8C = 0; + sQuestLogCB = NULL; gUnknown_203AE08 = NULL; - gUnknown_203AE04 = 0; + gUnknown_203AE04 = NULL; sub_8113BD8(); sub_81138F8(); } @@ -455,10 +456,10 @@ void sub_8110920(void) gUnknown_203AE04 = NULL; } -void sub_811092C(void) +void RunQuestLogCB(void) { - if (gUnknown_203AE8C) - gUnknown_203AE8C(); + if (sQuestLogCB != NULL) + sQuestLogCB(); } bool8 sub_8110944(const void * a0, size_t a1) @@ -471,7 +472,7 @@ bool8 sub_8110944(const void * a0, size_t a1) return TRUE; } -bool8 sub_8110988(u16 * a0, size_t a1) +bool8 sub_8110988(u16 *a0, size_t a1) { void * r2 = gSaveBlock1Ptr->questLog[gUnknown_203ADF8].unk_568; void * r0 = gSaveBlock1Ptr->questLog[gUnknown_203ADF8].end; @@ -485,9 +486,9 @@ void sub_81109CC(u8 a0) { gUnknown_203ADFA = a0; if (a0 == 1) - gUnknown_203AE8C = sub_8110A00; + sQuestLogCB = sub_8110A00; else - gUnknown_203AE8C = sub_8110A3C; + sQuestLogCB = sub_8110A3C; } static void sub_8110A00(void) @@ -497,7 +498,7 @@ static void sub_8110A00(void) gUnknown_3005E88 = 0; sub_8110E3C(); gUnknown_203ADFA = 0; - gUnknown_203AE8C = NULL; + sQuestLogCB = NULL; } } @@ -541,7 +542,7 @@ void sub_8110AEC(u16 a0) gSaveBlock1Ptr->questLog[gUnknown_203ADF8].unk_000 = 2; else gSaveBlock1Ptr->questLog[gUnknown_203ADF8].unk_000 = 1; - sub_81115E8(); + QuestLog_GetSaneMonCounts(); sub_8110BB0(gUnknown_203ADF8); sub_8110BE8(gUnknown_203ADF8); sub_8110D94(); @@ -807,19 +808,19 @@ static bool8 sub_8110E68(struct UnkStruct_203AE98 * a0) { u16 i; - for (i = gUnknown_203ADFC; i < gUnknown_203AF98; i++) + for (i = gUnknown_203ADFC; i < sQuestLogIdx; i++) { if (gUnknown_203AE08 == NULL) return FALSE; switch (a0[i].unk_6) { - case 0: - case 1: - gUnknown_203AE08 = sub_8113D48(gUnknown_203AE08, &a0[i]); - break; - default: - gUnknown_203AE08 = sub_8113CC8(gUnknown_203AE08, &a0[i]); - break; + case 0: + case 1: + gUnknown_203AE08 = sub_8113D48(gUnknown_203AE08, &a0[i]); + break; + default: + gUnknown_203AE08 = sub_8113CC8(gUnknown_203AE08, &a0[i]); + break; } if (gUnknown_203AE08 == NULL) { @@ -833,7 +834,7 @@ static bool8 sub_8110E68(struct UnkStruct_203AE98 * a0) gUnknown_203AE08 = sub_8113BF4(gUnknown_203AE08); return FALSE; } - gUnknown_203ADFC = gUnknown_203AF98; + gUnknown_203ADFC = sQuestLogIdx; return TRUE; } @@ -982,7 +983,7 @@ void sub_8111274(u8 a0, u8 a1) static void sub_8111368(void) { gUnknown_203ADFA = 2; - sub_806E6FC(); + ResetSpecialVars(); ClearBag(); ClearPCItemSlots(); if (sub_8110AC8() == 1) @@ -1012,8 +1013,8 @@ void sub_81113E4(void) struct PokemonAndSomethingElse { struct Pokemon mon; - u16 unk_64; - u16 unk_66; + u16 sanePartyCount; + u16 saneBoxesCount; }; void sub_8111438(void) @@ -1022,32 +1023,32 @@ void sub_8111438(void) u16 r0, r3, r5, r6; CreateMon(&r9->mon, SPECIES_RATTATA, 1, 0x20, FALSE, 0, 0, 0); - r0 = VarGet(VAR_0x4027); - r9->unk_64 = r0 >> 12; - r9->unk_66 = r0 % 0x1000; + r0 = VarGet(VAR_QUEST_LOG_MON_COUNTS); + r9->sanePartyCount = r0 >> 12; + r9->saneBoxesCount = r0 % 0x1000; - r5 = sub_8111618(); - if (r5 > r9->unk_64) + r5 = QuestLog_GetSanePartyCount(); + if (r5 > r9->sanePartyCount) { - for (r3 = 0; r3 < r5 - r9->unk_64; r3++) + for (r3 = 0; r3 < r5 - r9->sanePartyCount; r3++) { ZeroMonData(&gPlayerParty[5 - r3]); } } - else if (r5 < r9->unk_64) + else if (r5 < r9->sanePartyCount) { for (r3 = 0; r3 < 5; r3++) { sub_808BCB4(0, r3); } - for (r3 = r5; r3 < r9->unk_64; r3++) + for (r3 = r5; r3 < r9->sanePartyCount; r3++) { CopyMon(&gPlayerParty[r3], &r9->mon, sizeof(struct Pokemon)); } } - r5 = sub_811164C(); - if (r5 > r9->unk_66) + r5 = QuestLog_GetSaneBoxCount(); + if (r5 > r9->saneBoxesCount) { for (r3 = 0; r3 < 14; r3++) { @@ -1057,15 +1058,15 @@ void sub_8111438(void) { sub_808BCB4(r3, r6); r5--; - if (r5 == r9->unk_66) + if (r5 == r9->saneBoxesCount) break; } } - if (r5 == r9->unk_66) + if (r5 == r9->saneBoxesCount) break; } } - else if (r5 < r9->unk_66) + else if (r5 < r9->saneBoxesCount) { for (r3 = 0; r3 < TOTAL_BOXES_COUNT; r3++) { @@ -1076,11 +1077,11 @@ void sub_8111438(void) { CopyMon(boxMon, &r9->mon.box, sizeof(struct BoxPokemon)); r5++; - if (r5 == r9->unk_66) + if (r5 == r9->saneBoxesCount) break; } } - if (r5 == r9->unk_66) + if (r5 == r9->saneBoxesCount) break; } } @@ -1088,14 +1089,14 @@ void sub_8111438(void) Free(r9); } -static void sub_81115E8(void) +static void QuestLog_GetSaneMonCounts(void) { - u16 r4 = sub_8111618(); - u16 r1 = sub_811164C(); - VarSet(VAR_0x4027, (r4 << 12) + r1); + u16 partyCount = QuestLog_GetSanePartyCount(); + u16 boxesCount = QuestLog_GetSaneBoxCount(); + VarSet(VAR_QUEST_LOG_MON_COUNTS, (partyCount << 12) + boxesCount); } -static u16 sub_8111618(void) +static u16 QuestLog_GetSanePartyCount(void) { u16 count = 0; u16 i; @@ -1109,7 +1110,7 @@ static u16 sub_8111618(void) return count; } -static u16 sub_811164C(void) +static u16 QuestLog_GetSaneBoxCount(void) { u16 count = 0; u16 i, j; @@ -1176,29 +1177,29 @@ static void sub_811175C(u8 a0, struct UnkStruct_203AE98 * a1) { switch (r4[0] & 0xFFF) { - case 0: - r4 = sub_8113D08(r4, &a1[r6]); - r6++; - break; - case 1: - case 2: - r4 = sub_8113D94(r4, &a1[r6]); - r6++; - break; - case 39: - r4 = sub_8113C20(r4, &a1[r6]); - r6++; - break; - case 41: - r4 = sub_8113C8C(r4, &a1[r6]); - r6++; - break; - default: - r4 = sub_8113A78(r4, &gUnknown_203AE0C[r9]); - if (r9 == 0) - sub_8113ABC(gUnknown_203AE0C[0]); - r9++; - break; + case 0: + r4 = sub_8113D08(r4, &a1[r6]); + r6++; + break; + case 1: + case 2: + r4 = sub_8113D94(r4, &a1[r6]); + r6++; + break; + case 39: + r4 = sub_8113C20(r4, &a1[r6]); + r6++; + break; + case 41: + r4 = sub_8113C8C(r4, &a1[r6]); + r6++; + break; + default: + r4 = QuestLog_SkipCommand(r4, &gUnknown_203AE0C[r9]); + if (r9 == 0) + sub_8113ABC(gUnknown_203AE0C[0]); + r9++; + break; } if (r4 == NULL) break; @@ -1208,10 +1209,10 @@ static void sub_811175C(u8 a0, struct UnkStruct_203AE98 * a1) static void sub_81118F4(s8 a0) { fade_screen(1, a0); - gUnknown_203AE8C = sub_8111914; + sQuestLogCB = QuestLog_AdvancePlayhead; } -static void sub_8111914(void) +static void QuestLog_AdvancePlayhead(void) { if (!gPaletteFade.active) { @@ -1224,29 +1225,29 @@ static void sub_8111914(void) else { gUnknown_3005E88 = 0; - sub_8111984(); + QuestLog_EndPlayback(); } } } -static void sub_8111984(void) +static void QuestLog_EndPlayback(void) { - sub_806E6FC(); + ResetSpecialVars(); Save_ResetSaveCounters(); Save_LoadGameData(0); SetMainCallback2(sub_8057430); gFieldCallback2 = sub_8111F60; FreeAllWindowBuffers(); gUnknown_203ADFA = 3; - gUnknown_203AE8C = NULL; + sQuestLogCB = NULL; } void sub_81119C8(void) { - sub_8111914(); + QuestLog_AdvancePlayhead(); } -bool8 sub_81119D4(void (*a0)(void)) +bool8 QuestLog_SchedulePlaybackCB(void (*callback)(void)) { u8 taskId; @@ -1257,41 +1258,41 @@ bool8 sub_81119D4(void (*a0)(void)) break; case 2: gUnknown_3005E88 = 3; - taskId = CreateTask(sub_8111A34, 80); + taskId = CreateTask(Task_RunPlaybackCB, 80); gTasks[taskId].data[0] = 0; gTasks[taskId].data[1] = 0; - SetWordTaskArg(taskId, 14, (u32)a0); + SetWordTaskArg(taskId, 14, (uintptr_t)callback); return TRUE; } return FALSE; } -static void sub_8111A34(u8 taskId) +static void Task_RunPlaybackCB(u8 taskId) { void (*routine)(void); - s16 * data = gTasks[taskId].data; + s16 *data = gTasks[taskId].data; switch (data[1]) { - case 0: - if (++data[0] == 0x7F) - { - BeginNormalPaletteFade(0xFFFFFFFF, 0, 0, 16, 0); - gUnknown_203AE94.unk_0_6 = 2; - data[1]++; - } - break; - case 1: - if (!gPaletteFade.active) - { - gUnknown_3005E88 = 0; - routine = (void (*)(void)) GetWordTaskArg(taskId, 14); - if (routine != NULL) - routine(); - DestroyTask(taskId); - gUnknown_203AE8C = sub_8111914; - } - break; + case 0: + if (++data[0] == 0x7F) + { + BeginNormalPaletteFade(0xFFFFFFFF, 0, 0, 16, 0); + gUnknown_203AE94.unk_0_6 = 2; + data[1]++; + } + break; + case 1: + if (!gPaletteFade.active) + { + gUnknown_3005E88 = 0; + routine = (void (*)(void)) GetWordTaskArg(taskId, 14); + if (routine != NULL) + routine(); + DestroyTask(taskId); + sQuestLogCB = QuestLog_AdvancePlayhead; + } + break; } } @@ -1384,7 +1385,7 @@ void sub_8111C68(void) { gUnknown_203AE94.unk_0_6 = 1; gUnknown_3005E88 = 0; - sub_8111E64(-3); + QuestLog_SkipToEndOfPlayback(-3); } } } @@ -1421,8 +1422,8 @@ static void sub_8111D10(void) static void sub_8111D90(u8 a0) { - const u16 * src = gUnknown_8456638; - u16 * buffer = Alloc(0x1680); + const u16 *src = gUnknown_8456638; + u16 *buffer = Alloc(0x1680); u8 i, j, y; if (buffer) @@ -1431,15 +1432,15 @@ static void sub_8111D90(u8 a0) { switch (i) { - default: - y = 1; - break; - case 0: - y = 0; - break; - case 5: - y = 2; - break; + default: + y = 1; + break; + case 0: + y = 0; + break; + case 5: + y = 2; + break; } // r6 = y * 32 @@ -1465,13 +1466,13 @@ static void sub_8111E20(void) CopyWindowToVram(gUnknown_203ADFE[1], 1); } -static void sub_8111E64(s8 a0) +static void QuestLog_SkipToEndOfPlayback(s8 a0) { fade_screen(1, a0); - gUnknown_203AE8C = sub_8111E84; + sQuestLogCB = QuestLog_WaitFadeAndCancelPlayback; } -static void sub_8111E84(void) +static void QuestLog_WaitFadeAndCancelPlayback(void) { if (!gPaletteFade.active) { @@ -1483,7 +1484,7 @@ static void sub_8111E84(void) sub_811175C(gUnknown_203ADF8, gUnknown_203AE98); } gUnknown_3005E88 = 0; - sub_8111984(); + QuestLog_EndPlayback(); } } @@ -1513,7 +1514,7 @@ static void sub_8111F8C(u8 taskId) if (ScriptContext2_IsEnabled() != TRUE) { - player_bitmagic(); + FreezeEventObjects(); sub_805C270(); sub_805C780(); ScriptContext2_Enable(); @@ -1536,7 +1537,7 @@ static void sub_8111FCC(u8 taskId) task->data[0] = 0; task->data[1] = 0; task->func = sub_8112044; - player_bitmagic(); + FreezeEventObjects(); ScriptContext2_Enable(); } } @@ -1558,57 +1559,57 @@ static void sub_8112044(u8 taskId) static void sub_81120AC(u8 taskId) { - s16 * data = gTasks[taskId].data; + s16 *data = gTasks[taskId].data; u8 i; switch (data[0]) { - case 0: - gDisableMapMusicChangeOnMapLoad = 0; - Overworld_PlaySpecialMapMusic(); - sub_811229C(); - FillWindowPixelRect(gUnknown_203ADFE[0], 0xF, 0, 0, gUnknown_845661C[0].width * 8, gUnknown_845661C[0].height * 8); - data[0]++; - break; - case 1: - if (sub_81121D8(taskId)) + case 0: + gDisableMapMusicChangeOnMapLoad = 0; + Overworld_PlaySpecialMapMusic(); + sub_811229C(); + FillWindowPixelRect(gUnknown_203ADFE[0], 0xF, 0, 0, gUnknown_845661C[0].width * 8, gUnknown_845661C[0].height * 8); + data[0]++; + break; + case 1: + if (sub_81121D8(taskId)) + { + for (i = 0; i < 3; i++) { - for (i = 0; i < 3; i++) - { - ClearWindowTilemap(gUnknown_203ADFE[i]); - CopyWindowToVram(gUnknown_203ADFE[i], 1); - RemoveWindow(gUnknown_203ADFE[i]); - } - data[1] = 0; - data[0]++; + ClearWindowTilemap(gUnknown_203ADFE[i]); + CopyWindowToVram(gUnknown_203ADFE[i], 1); + RemoveWindow(gUnknown_203ADFE[i]); } - break; - case 2: - if (data[1] < 32) - data[1]++; - else - data[0]++; - break; - default: - if (gUnknown_203AE94.unk_0_6 == 1) - sub_8098110(1); - CpuCopy16(gUnknown_203AE90, gPlttBufferUnfaded, 0x400); - Free(gUnknown_203AE90); - gUnknown_203AE94 = (struct UnkStruct_203AE94){}; - sub_80696C0(); - ScriptContext2_Disable(); - gTextFlags.autoScroll = FALSE; - gUnknown_2036E28 = 0; - sub_8082740(0); - gHelpSystemEnabled = TRUE; - DestroyTask(taskId); - break; + data[1] = 0; + data[0]++; + } + break; + case 2: + if (data[1] < 32) + data[1]++; + else + data[0]++; + break; + default: + if (gUnknown_203AE94.unk_0_6 == 1) + sub_8098110(1); + CpuCopy16(gUnknown_203AE90, gPlttBufferUnfaded, 0x400); + Free(gUnknown_203AE90); + gUnknown_203AE94 = (struct UnkStruct_203AE94){}; + sub_80696C0(); + ScriptContext2_Disable(); + gTextFlags.autoScroll = FALSE; + gUnknown_2036E28 = 0; + sub_8082740(0); + gHelpSystemEnabled = TRUE; + DestroyTask(taskId); + break; } } static bool8 sub_81121D8(u8 taskId) { - s16 * data = gTasks[taskId].data; + s16 *data = gTasks[taskId].data; if (data[1] > 15) return TRUE; @@ -1625,7 +1626,7 @@ static bool8 sub_81121D8(u8 taskId) static void sub_811229C(void) { - u16 * buffer = Alloc(0x400); + u16 *buffer = Alloc(0x400); CpuCopy16(gUnknown_203AE90, buffer, 0x400); sub_807B0C4(gUnknown_203AE90, gUnknown_203AE90, 0xd0); sub_807B0C4(gUnknown_203AE90 + 0x110, gUnknown_203AE90 + 0x110, 0x10); @@ -1643,7 +1644,7 @@ void sub_811231C(void) sub_8110E68(gUnknown_203AE98); sub_8110E3C(); gUnknown_203ADFA = 0; - gUnknown_203AE8C = NULL; + sQuestLogCB = NULL; gUnknown_203AE04 = NULL; gUnknown_203AE08 = NULL; gUnknown_3005E88 = 0; @@ -1659,7 +1660,7 @@ void sub_8112364(void) sub_8110E3C(); gUnknown_3005E88 = 0; gUnknown_203ADFA = 0; - gUnknown_203AE8C = NULL; + sQuestLogCB = NULL; } gUnknown_203AE04 = NULL; gUnknown_203AE08 = NULL; @@ -1728,13 +1729,13 @@ void sub_81124EC(u8 a0, u8 a1, u8 a2, u8 a3) { if (!sub_8112CEC()) { - gUnknown_3005E94[gUnknown_203AF98].unk_4 = gUnknown_203B01A; - gUnknown_3005E94[gUnknown_203AF98].unk_6 = 0; - gUnknown_3005E94[gUnknown_203AF98].unk_0 = a0; - gUnknown_3005E94[gUnknown_203AF98].unk_1 = a1; - gUnknown_3005E94[gUnknown_203AF98].unk_2 = a2; - gUnknown_3005E94[gUnknown_203AF98].unk_3 = a3; - gUnknown_203AF98++; + gUnknown_3005E94[sQuestLogIdx].unk_4 = gUnknown_203B01A; + gUnknown_3005E94[sQuestLogIdx].unk_6 = 0; + gUnknown_3005E94[sQuestLogIdx].unk_0 = a0; + gUnknown_3005E94[sQuestLogIdx].unk_1 = a1; + gUnknown_3005E94[sQuestLogIdx].unk_2 = a2; + gUnknown_3005E94[sQuestLogIdx].unk_3 = a3; + sQuestLogIdx++; gUnknown_203B01A = 0; } } @@ -1743,13 +1744,13 @@ void sub_8112588(u8 a0, u8 a1, u8 a2, u8 a3, u8 a4) { if (!sub_8112D1C()) { - gUnknown_3005E94[gUnknown_203AF98].unk_4 = gUnknown_203B01A; - gUnknown_3005E94[gUnknown_203AF98].unk_6 = 0; - gUnknown_3005E94[gUnknown_203AF98].unk_0 = a0; - gUnknown_3005E94[gUnknown_203AF98].unk_1 = a1; - gUnknown_3005E94[gUnknown_203AF98].unk_2 = a2; - gUnknown_3005E94[gUnknown_203AF98].unk_3 = a3; - gUnknown_203AF98++; + gUnknown_3005E94[sQuestLogIdx].unk_4 = gUnknown_203B01A; + gUnknown_3005E94[sQuestLogIdx].unk_6 = 0; + gUnknown_3005E94[sQuestLogIdx].unk_0 = a0; + gUnknown_3005E94[sQuestLogIdx].unk_1 = a1; + gUnknown_3005E94[sQuestLogIdx].unk_2 = a2; + gUnknown_3005E94[sQuestLogIdx].unk_3 = a3; + sQuestLogIdx++; gUnknown_203B01A = a4; } } @@ -1760,12 +1761,12 @@ void sub_8112628(u8 a0) { if (a0 != gUnknown_3005E94[gUnknown_203B01C].unk_3 || a0 > 3) { - gUnknown_3005E94[gUnknown_203AF98].unk_4 = gUnknown_203B01A; - gUnknown_3005E94[gUnknown_203AF98].unk_6 = 0; - gUnknown_3005E94[gUnknown_203AF98].unk_0 = 0; - gUnknown_3005E94[gUnknown_203AF98].unk_3 = a0; - gUnknown_203B01C = gUnknown_203AF98; - gUnknown_203AF98++; + gUnknown_3005E94[sQuestLogIdx].unk_4 = gUnknown_203B01A; + gUnknown_3005E94[sQuestLogIdx].unk_6 = 0; + gUnknown_3005E94[sQuestLogIdx].unk_0 = 0; + gUnknown_3005E94[sQuestLogIdx].unk_3 = a0; + gUnknown_203B01C = sQuestLogIdx; + sQuestLogIdx++; gUnknown_203B01A = 0; } } @@ -1775,12 +1776,12 @@ void sub_81126AC(u8 a0, u8 a1) { if (!sub_8112D1C()) { - gUnknown_3005E94[gUnknown_203AF98].unk_4 = gUnknown_203B01A; - gUnknown_3005E94[gUnknown_203AF98].unk_6 = 0; - gUnknown_3005E94[gUnknown_203AF98].unk_0 = 0; - gUnknown_3005E94[gUnknown_203AF98].unk_3 = a0; - gUnknown_203B01C = gUnknown_203AF98; - gUnknown_203AF98++; + gUnknown_3005E94[sQuestLogIdx].unk_4 = gUnknown_203B01A; + gUnknown_3005E94[sQuestLogIdx].unk_6 = 0; + gUnknown_3005E94[sQuestLogIdx].unk_0 = 0; + gUnknown_3005E94[sQuestLogIdx].unk_3 = a0; + gUnknown_203B01C = sQuestLogIdx; + sQuestLogIdx++; gUnknown_203B01A = a1; } } @@ -1789,11 +1790,11 @@ void sub_8112720(u8 a0) { if (!sub_8112D1C()) { - gUnknown_3005E94[gUnknown_203AF98].unk_4 = gUnknown_203B01A; - gUnknown_3005E94[gUnknown_203AF98].unk_6 = 1; - gUnknown_3005E94[gUnknown_203AF98].unk_0 = 0; - gUnknown_3005E94[gUnknown_203AF98].unk_3 = a0; - gUnknown_203AF98++; + gUnknown_3005E94[sQuestLogIdx].unk_4 = gUnknown_203B01A; + gUnknown_3005E94[sQuestLogIdx].unk_6 = 1; + gUnknown_3005E94[sQuestLogIdx].unk_0 = 0; + gUnknown_3005E94[sQuestLogIdx].unk_3 = a0; + sQuestLogIdx++; gUnknown_203B01A = 0; } } @@ -1802,27 +1803,27 @@ void sub_811278C(u8 a0, u8 a1) { if (!sub_8112D1C()) { - gUnknown_3005E94[gUnknown_203AF98].unk_4 = gUnknown_203B01A; - gUnknown_3005E94[gUnknown_203AF98].unk_6 = 1; - gUnknown_3005E94[gUnknown_203AF98].unk_0 = 0; - gUnknown_3005E94[gUnknown_203AF98].unk_3 = a0; - gUnknown_203AF98++; + gUnknown_3005E94[sQuestLogIdx].unk_4 = gUnknown_203B01A; + gUnknown_3005E94[sQuestLogIdx].unk_6 = 1; + gUnknown_3005E94[sQuestLogIdx].unk_0 = 0; + gUnknown_3005E94[sQuestLogIdx].unk_3 = a0; + sQuestLogIdx++; gUnknown_203B01A = a1; } } void sub_81127F8(struct UnkStruct_3005E90 * a0) { - if (gUnknown_203AF98 < gUnknown_3005E8C) + if (sQuestLogIdx < sNumQuestLogs) { u32 r2 = *(u32 *)a0 & 0x00FF00F3; - gUnknown_3005E94[gUnknown_203AF98].unk_4 = gUnknown_203B01A; - gUnknown_3005E94[gUnknown_203AF98].unk_6 = 2; - gUnknown_3005E94[gUnknown_203AF98].unk_0 = r2; - gUnknown_3005E94[gUnknown_203AF98].unk_1 = r2 >> 8; - gUnknown_3005E94[gUnknown_203AF98].unk_2 = r2 >> 16; - gUnknown_3005E94[gUnknown_203AF98].unk_3 = r2 >> 24; - gUnknown_203AF98++; + gUnknown_3005E94[sQuestLogIdx].unk_4 = gUnknown_203B01A; + gUnknown_3005E94[sQuestLogIdx].unk_6 = 2; + gUnknown_3005E94[sQuestLogIdx].unk_0 = r2; + gUnknown_3005E94[sQuestLogIdx].unk_1 = r2 >> 8; + gUnknown_3005E94[sQuestLogIdx].unk_2 = r2 >> 16; + gUnknown_3005E94[sQuestLogIdx].unk_3 = r2 >> 24; + sQuestLogIdx++; if (ScriptContext2_IsEnabled()) gUnknown_203B01A = TRUE; else @@ -1834,14 +1835,14 @@ static void sub_8112888(u8 a0) { switch (a0) { - case 1: - if (gUnknown_3005E88 == 1) - gUnknown_3005E88 = 3; - break; - case 2: - if (gUnknown_3005E88 == 3) - gUnknown_3005E88 = 1; - break; + case 1: + if (gUnknown_3005E88 == 1) + gUnknown_3005E88 = 3; + break; + case 2: + if (gUnknown_3005E88 == 3) + gUnknown_3005E88 = 1; + break; } } @@ -1851,24 +1852,24 @@ void sub_81128BC(u8 a0) switch (a0) { - case 1: - if (r1 == 1) - gUnknown_3005E88 = 3; - else if (r1 == 2) - { - gUnknown_3005E94[gUnknown_203AF98].unk_4 = gUnknown_203B01A; - gUnknown_3005E94[gUnknown_203AF98].unk_6 = 3; - gUnknown_203AF98++; - gUnknown_203B01A = 0; - gUnknown_3005E88 = 4; - } - break; - case 2: - if (r1 == 1) - gUnknown_3005E88 = 1; - else if (r1 == 2) - gUnknown_3005E88 = 2; - break; + case 1: + if (r1 == 1) + gUnknown_3005E88 = 3; + else if (r1 == 2) + { + gUnknown_3005E94[sQuestLogIdx].unk_4 = gUnknown_203B01A; + gUnknown_3005E94[sQuestLogIdx].unk_6 = 3; + sQuestLogIdx++; + gUnknown_203B01A = 0; + gUnknown_3005E88 = 4; + } + break; + case 2: + if (r1 == 1) + gUnknown_3005E88 = 1; + else if (r1 == 2) + gUnknown_3005E88 = 2; + break; } } @@ -1878,64 +1879,64 @@ static void sub_8112940(u8 a0, struct UnkStruct_203AE98 *a1, u16 a2) switch (a0) { - default: - gUnknown_3005E88 = 0; - break; + default: + gUnknown_3005E88 = 0; + break; + case 1: + gUnknown_3005E94 = a1; + sNumQuestLogs = a2 / 8; + for (i = 0; i < 0x40; i++) + { + gUnknown_203AF9A[i][0] |= 0xFF; + gUnknown_203AF9A[i][1] |= 0xFF; + } + sQuestLogIdx = 0; + gUnknown_203B01C = 0; + gUnknown_3005E90 = (struct UnkStruct_3005E90){}; + gUnknown_203B01A = gUnknown_3005E94[sQuestLogIdx].unk_4; + gUnknown_203AF9A[0][0] = gUnknown_3005E94[sQuestLogIdx].unk_3; + gUnknown_203AF9A[0][1] = 0xFF; + gUnknown_3005E88 = 1; + break; + case 2: + gUnknown_3005E94 = a1; + sNumQuestLogs = a2 / 8; + for (i = 0; i < sNumQuestLogs; i++) + { + gUnknown_3005E94[i] = (struct UnkStruct_203AE98){ 0, 0, 0, 0, 0xFFFF, 0xFF }; + } + sQuestLogIdx = 0; + gUnknown_203B01A = 0; + gUnknown_3005E94[sQuestLogIdx].unk_4 = 0; + gUnknown_3005E94[sQuestLogIdx].unk_6 = 0; + gUnknown_3005E94[sQuestLogIdx].unk_0 = 0; + switch (GetPlayerFacingDirection()) + { + case 0: case 1: - gUnknown_3005E94 = a1; - gUnknown_3005E8C = a2 / 8; - for (i = 0; i < 0x40; i++) - { - gUnknown_203AF9A[i][0] |= 0xFF; - gUnknown_203AF9A[i][1] |= 0xFF; - } - gUnknown_203AF98 = 0; - gUnknown_203B01C = 0; - gUnknown_3005E90 = (struct UnkStruct_3005E90){}; - gUnknown_203B01A = gUnknown_3005E94[gUnknown_203AF98].unk_4; - gUnknown_203AF9A[0][0] = gUnknown_3005E94[gUnknown_203AF98].unk_3; - gUnknown_203AF9A[0][1] = 0xFF; - gUnknown_3005E88 = 1; + gUnknown_3005E94[sQuestLogIdx].unk_3 = 0; + break; + case 4: + gUnknown_3005E94[sQuestLogIdx].unk_3 = 3; break; case 2: - gUnknown_3005E94 = a1; - gUnknown_3005E8C = a2 / 8; - for (i = 0; i < gUnknown_3005E8C; i++) - { - gUnknown_3005E94[i] = (struct UnkStruct_203AE98){ 0, 0, 0, 0, 0xFFFF, 0xFF }; - } - gUnknown_203AF98 = 0; - gUnknown_203B01A = 0; - gUnknown_3005E94[gUnknown_203AF98].unk_4 = 0; - gUnknown_3005E94[gUnknown_203AF98].unk_6 = 0; - gUnknown_3005E94[gUnknown_203AF98].unk_0 = 0; - switch (GetPlayerFacingDirection()) - { - case 0: - case 1: - gUnknown_3005E94[gUnknown_203AF98].unk_3 = 0; - break; - case 4: - gUnknown_3005E94[gUnknown_203AF98].unk_3 = 3; - break; - case 2: - gUnknown_3005E94[gUnknown_203AF98].unk_3 = 1; - break; - case 3: - gUnknown_3005E94[gUnknown_203AF98].unk_3 = 2; - break; - } - gUnknown_203B01C = 0; - gUnknown_203AF98++; - gUnknown_3005E94[gUnknown_203AF98].unk_4 = 0; - gUnknown_3005E94[gUnknown_203AF98].unk_6 = 2; - gUnknown_3005E94[gUnknown_203AF98].unk_0 = 0; - gUnknown_3005E94[gUnknown_203AF98].unk_1 = 0; - gUnknown_3005E94[gUnknown_203AF98].unk_2 = 0; - gUnknown_3005E94[gUnknown_203AF98].unk_3 = 0; - gUnknown_203AF98++; - gUnknown_3005E88 = 2; + gUnknown_3005E94[sQuestLogIdx].unk_3 = 1; break; + case 3: + gUnknown_3005E94[sQuestLogIdx].unk_3 = 2; + break; + } + gUnknown_203B01C = 0; + sQuestLogIdx++; + gUnknown_3005E94[sQuestLogIdx].unk_4 = 0; + gUnknown_3005E94[sQuestLogIdx].unk_6 = 2; + gUnknown_3005E94[sQuestLogIdx].unk_0 = 0; + gUnknown_3005E94[sQuestLogIdx].unk_1 = 0; + gUnknown_3005E94[sQuestLogIdx].unk_2 = 0; + gUnknown_3005E94[sQuestLogIdx].unk_3 = 0; + sQuestLogIdx++; + gUnknown_3005E88 = 2; + break; } } @@ -1944,67 +1945,67 @@ void sub_8112B3C(void) { switch (gUnknown_3005E88) { - case 0: - break; - case 1: - if (sub_8112CEC()) + case 0: + break; + case 1: + if (sub_8112CEC()) + { + if (gUnknown_203B01A != 0) + gUnknown_203B01A--; + else { - if (gUnknown_203B01A != 0) - gUnknown_203B01A--; - else + while (1) { - while (1) + switch (gUnknown_3005E94[sQuestLogIdx].unk_6) { - switch (gUnknown_3005E94[gUnknown_203AF98].unk_6) - { - case 0: - gUnknown_203AF9A[gUnknown_3005E94[gUnknown_203AF98].unk_0][0] = gUnknown_3005E94[gUnknown_203AF98].unk_3; - break; - case 1: - gUnknown_203AF9A[gUnknown_3005E94[gUnknown_203AF98].unk_0][1] = gUnknown_3005E94[gUnknown_203AF98].unk_3; - break; - case 2: - *(u32 *)&gUnknown_3005E90 = ((gUnknown_3005E94[gUnknown_203AF98].unk_3 << 24) | (gUnknown_3005E94[gUnknown_203AF98].unk_2 << 16) | (gUnknown_3005E94[gUnknown_203AF98].unk_1 << 8) | (gUnknown_3005E94[gUnknown_203AF98].unk_0 << 0)); - break; - case 3: - gUnknown_3005E88 = 3; - break; - case 0xFE: - break; - case 0xFF: - gUnknown_3005E88 = 0; - break; - } - if (gUnknown_3005E88 == 0) - break; - if (++gUnknown_203AF98 >= gUnknown_3005E8C) - { - gUnknown_3005E88 = 0; - break; - } - gUnknown_203B01A = gUnknown_3005E94[gUnknown_203AF98].unk_4; - if (gUnknown_3005E88 == 3) - break; - if (gUnknown_203B01A == 0) - continue; - if (gUnknown_203B01A == 0xFFFF) - break; - } + case 0: + gUnknown_203AF9A[gUnknown_3005E94[sQuestLogIdx].unk_0][0] = gUnknown_3005E94[sQuestLogIdx].unk_3; + break; + case 1: + gUnknown_203AF9A[gUnknown_3005E94[sQuestLogIdx].unk_0][1] = gUnknown_3005E94[sQuestLogIdx].unk_3; + break; + case 2: + *(u32 *)&gUnknown_3005E90 = ((gUnknown_3005E94[sQuestLogIdx].unk_3 << 24) | (gUnknown_3005E94[sQuestLogIdx].unk_2 << 16) | (gUnknown_3005E94[sQuestLogIdx].unk_1 << 8) | (gUnknown_3005E94[sQuestLogIdx].unk_0 << 0)); + break; + case 3: + gUnknown_3005E88 = 3; + break; + case 0xFE: + break; + case 0xFF: + gUnknown_3005E88 = 0; + break; + } + if (gUnknown_3005E88 == 0) + break; + if (++sQuestLogIdx >= sNumQuestLogs) + { + gUnknown_3005E88 = 0; + break; + } + gUnknown_203B01A = gUnknown_3005E94[sQuestLogIdx].unk_4; + if (gUnknown_3005E88 == 3) + break; + if (gUnknown_203B01A == 0) + continue; + if (gUnknown_203B01A == 0xFFFF) + break; } } - else if (gUnknown_203AF98 >= gUnknown_3005E8C) - gUnknown_3005E88 = 0; - break; - case 2: - if (ScriptContext2_IsEnabled() != 1) - gUnknown_203B01A++; - if (gUnknown_203AF98 >= gUnknown_3005E8C) - gUnknown_3005E88 = 0; - break; - case 3: - break; - case 4: - break; + } + else if (sQuestLogIdx >= sNumQuestLogs) + gUnknown_3005E88 = 0; + break; + case 2: + if (ScriptContext2_IsEnabled() != 1) + gUnknown_203B01A++; + if (sQuestLogIdx >= sNumQuestLogs) + gUnknown_3005E88 = 0; + break; + case 3: + break; + case 4: + break; } } #else @@ -2052,18 +2053,18 @@ void sub_8112B3C(void) "_08112B8C: .4byte gUnknown_203B01A\n" "_08112B90:\n" "\tldr r5, _08112B98 @ =gUnknown_3005E88\n" - "\tldr r4, _08112B9C @ =gUnknown_203AF98\n" + "\tldr r4, _08112B9C @ =sQuestLogIdx\n" "\tldr r6, _08112BA0 @ =gUnknown_3005E94\n" "\tb _08112BD4\n" "\t.align 2, 0\n" "_08112B98: .4byte gUnknown_3005E88\n" - "_08112B9C: .4byte gUnknown_203AF98\n" + "_08112B9C: .4byte sQuestLogIdx\n" "_08112BA0: .4byte gUnknown_3005E94\n" "_08112BA4:\n" "\tldrh r0, [r4]\n" "\tadds r0, 0x1\n" "\tstrh r0, [r4]\n" - "\tldr r1, _08112BF0 @ =gUnknown_3005E8C\n" + "\tldr r1, _08112BF0 @ =sNumQuestLogs\n" "\tlsls r0, 16\n" "\tlsrs r0, 16\n" "\tldrh r1, [r1]\n" @@ -2100,7 +2101,7 @@ void sub_8112B3C(void) "\tbeq _08112C18\n" "\tb _08112C50\n" "\t.align 2, 0\n" - "_08112BF0: .4byte gUnknown_3005E8C\n" + "_08112BF0: .4byte sNumQuestLogs\n" "_08112BF4: .4byte 0x0000ffff\n" "_08112BF8:\n" "\tcmp r0, 0xFE\n" @@ -2173,8 +2174,8 @@ void sub_8112B3C(void) "\tadds r0, 0x1\n" "\tstrh r0, [r1]\n" "_08112C72:\n" - "\tldr r0, _08112C90 @ =gUnknown_203AF98\n" - "\tldr r1, _08112C94 @ =gUnknown_3005E8C\n" + "\tldr r0, _08112C90 @ =sQuestLogIdx\n" + "\tldr r1, _08112C94 @ =sNumQuestLogs\n" "\tldrh r0, [r0]\n" "\tldrh r1, [r1]\n" "\tcmp r0, r1\n" @@ -2188,8 +2189,8 @@ void sub_8112B3C(void) "\tbx r0\n" "\t.align 2, 0\n" "_08112C8C: .4byte gUnknown_203B01A\n" - "_08112C90: .4byte gUnknown_203AF98\n" - "_08112C94: .4byte gUnknown_3005E8C\n" + "_08112C90: .4byte sQuestLogIdx\n" + "_08112C94: .4byte sNumQuestLogs\n" "_08112C98: .4byte gUnknown_3005E88"); } #endif @@ -2203,28 +2204,28 @@ u8 sub_8112CAC(void) { switch (gUnknown_3005E88) { - case 0: - default: - return 0; - case 1: - case 3: - return 1; - case 2: - case 4: - return 2; + case 0: + default: + return 0; + case 1: + case 3: + return 1; + case 2: + case 4: + return 2; } } static bool8 sub_8112CEC(void) { - if (gUnknown_203AF98 >= gUnknown_3005E8C || ScriptContext2_IsEnabled() == TRUE) + if (sQuestLogIdx >= sNumQuestLogs || ScriptContext2_IsEnabled() == TRUE) return TRUE; return FALSE; } static bool8 sub_8112D1C(void) { - if (gUnknown_203AF98 >= gUnknown_3005E8C) + if (sQuestLogIdx >= sNumQuestLogs) return TRUE; return FALSE; } @@ -2235,37 +2236,37 @@ static const struct UnkStruct_300201C gUnknown_84566A4 = { 0x7FFF }; -u16 * sub_8112D40(u8 a0, u16 a1) +void * QuestLogGetFlagOrVarPtr(bool8 isFlag, u16 idx) { - u16 * response; - if (gUnknown_203AF98 == 0) + void * response; + if (sQuestLogIdx == 0) return NULL; - if (gUnknown_203AF98 >= gUnknown_3005E8C) + if (sQuestLogIdx >= sNumQuestLogs) return NULL; - if (gUnknown_203B01E >= gUnknown_3002020) + if (sFlagOrVarPlayhead >= sNumFlagsOrVars) return NULL; - if (gUnknown_300201C[gUnknown_203B01E].unk_0_0 == a1 && gUnknown_300201C[gUnknown_203B01E].unk_0_f == a0) + if (sFlagOrVarRecords[sFlagOrVarPlayhead].idx == idx && sFlagOrVarRecords[sFlagOrVarPlayhead].isFlag == isFlag) { - response = &gUnknown_300201C[gUnknown_203B01E].unk_2; - gUnknown_203B01E++; + response = &sFlagOrVarRecords[sFlagOrVarPlayhead].value; + sFlagOrVarPlayhead++; } else response = NULL; return response; } -void sub_8112DB0(u8 a0, u16 a1, u16 a2) +void QuestLogSetFlagOrVar(bool8 isFlag, u16 idx, u16 value) { - if (gUnknown_203AF98 == 0) + if (sQuestLogIdx == 0) return; - if (gUnknown_203AF98 >= gUnknown_3005E8C) + if (sQuestLogIdx >= sNumQuestLogs) return; - if (gUnknown_203B01E >= gUnknown_3002020) + if (sFlagOrVarPlayhead >= sNumFlagsOrVars) return; - gUnknown_300201C[gUnknown_203B01E].unk_0_0 = a1; - gUnknown_300201C[gUnknown_203B01E].unk_0_f = a0; - gUnknown_300201C[gUnknown_203B01E].unk_2 = a2; - gUnknown_203B01E++; + sFlagOrVarRecords[sFlagOrVarPlayhead].idx = idx; + sFlagOrVarRecords[sFlagOrVarPlayhead].isFlag = isFlag; + sFlagOrVarRecords[sFlagOrVarPlayhead].value = value; + sFlagOrVarPlayhead++; } void sub_8112E3C(u8 a0, struct UnkStruct_300201C * a1, u16 a2) @@ -2276,14 +2277,14 @@ void sub_8112E3C(u8 a0, struct UnkStruct_300201C * a1, u16 a2) gUnknown_3005E88 = 0; else { - gUnknown_300201C = a1; - gUnknown_3002020 = a2 >> 2; - gUnknown_203B01E = 0; + sFlagOrVarRecords = a1; + sNumFlagsOrVars = a2 >> 2; + sFlagOrVarPlayhead = 0; if (a0 == 2) { - for (i = 0; i < gUnknown_3005E8C; i++) + for (i = 0; i < sNumQuestLogs; i++) { - gUnknown_300201C[i] = gUnknown_84566A4; + sFlagOrVarRecords[i] = gUnknown_84566A4; } } } @@ -2330,7 +2331,7 @@ void sub_8112F18(u8 a0) { u8 width = GetWindowAttribute(a0, WINDOW_WIDTH); u8 height = GetWindowAttribute(a0, WINDOW_HEIGHT); - u8 * buffer = Alloc(32 * width * height); + u8 *buffer = Alloc(32 * width * height); u8 i, j; u8 k; @@ -2464,12 +2465,12 @@ static const u8 gUnknown_8456930[3] = { 0, 10, 2 }; -void sub_8112FE4(const u8 * a0) +void sub_8112FE4(const u8 *a0) { AddTextPrinterParameterized4(sHelpMessageWindowId, 0x02, 2, 5, 1, 1, gUnknown_8456930, -1, a0); } -void PrintTextOnHelpMessageWindow(const u8 * text, u8 mode) +void PrintTextOnHelpMessageWindow(const u8 *text, u8 mode) { sub_8112FD0(); sub_8112FE4(text); @@ -2509,10 +2510,10 @@ static void sub_81130BC(struct Var4038Struct * varPtr) sub_8113524(varPtr); sub_8113390(varPtr); VarSet(VAR_0x4039, gSaveBlock2Ptr->playTimeHours); - FlagClear(FLAG_0x06C); - FlagClear(FLAG_0x06D); - FlagClear(FLAG_0x06E); - FlagClear(FLAG_0x06F); + FlagClear(FLAG_HIDE_SAFFRON_FAN_CLUB_BLACKBELT); + FlagClear(FLAG_HIDE_SAFFRON_FAN_CLUB_ROCKER); + FlagClear(FLAG_HIDE_SAFFRON_FAN_CLUB_WOMAN); + FlagClear(FLAG_HIDE_SAFFRON_FAN_CLUB_BEAUTY); VarSet(VAR_MAP_SCENE_SAFFRON_CITY_POKEMON_TRAINER_FAN_CLUB, 1); } } @@ -2594,7 +2595,7 @@ u8 sub_81131FC(struct Var4038Struct * a0) return gUnknown_8456940[retval]; } -u16 sub_8113288(void) +u16 GetNumMovedSaffronFanClubMembers(void) { return sub_81132A0(VAR_0x4038_STRUCT); } @@ -2613,7 +2614,7 @@ static u16 sub_81132A0(struct Var4038Struct * a0) return count; } -void sub_81132CC(void) +void UpdateMovedSaffronFanClubMembers(void) { sub_81132E0(VAR_0x4038_STRUCT); } @@ -2645,7 +2646,7 @@ static void sub_81132E0(struct Var4038Struct * a0) } } -bool16 sub_8113364(void) +bool16 ShouldMoveSaffronFanClubMember(void) { return sub_811337C(VAR_0x4038_STRUCT); } @@ -2662,58 +2663,58 @@ static void sub_8113390(struct Var4038Struct * a0) a0->unk_1 |= 4; } -void sub_81133A4(void) +void BufferStreakTrainerText(void) { u8 r3 = 0; u8 r2 = 0; switch (gSpecialVar_0x8004) { - case 0: - r2 = 0; - r3 = 0; - break; - case 1: - case 2: - case 3: - case 7: - break; - case 4: - r2 = 1; - r3 = 0; - break; - case 5: - r2 = 0; - r3 = 1; - break; - case 6: - r2 = 2; - r3 = 1; - break; + case 0: + r2 = 0; + r3 = 0; + break; + case 1: + case 2: + case 3: + case 7: + break; + case 4: + r2 = 1; + r3 = 0; + break; + case 5: + r2 = 0; + r3 = 1; + break; + case 6: + r2 = 2; + r3 = 1; + break; } sub_8113414(&gSaveBlock2Ptr->linkBattleRecords, r3, r2); } static void sub_8113414(struct LinkBattleRecords * a0, u8 a1, u8 a2) { - u8 * str; - const u8 * src = a0->entries[a1].name; + u8 *str; + const u8 *src = a0->entries[a1].name; if (src[0] == EOS) { switch (a2) { - case 0: - StringCopy(gStringVar1, gSaveBlock1Ptr->rivalName); - break; - case 1: - StringCopy(gStringVar1, gUnknown_84178D0); - break; - case 2: - StringCopy(gStringVar1, gUnknown_84178DA); - break; - default: - StringCopy(gStringVar1, gSaveBlock1Ptr->rivalName); - break; + case 0: + StringCopy(gStringVar1, gSaveBlock1Ptr->rivalName); + break; + case 1: + StringCopy(gStringVar1, gUnknown_84178D0); // LT. SURGE + break; + case 2: + StringCopy(gStringVar1, gUnknown_84178DA); // KOGA + break; + default: + StringCopy(gStringVar1, gSaveBlock1Ptr->rivalName); + break; } } else @@ -2771,7 +2772,7 @@ u8 sub_8113530(void) return sub_8113114(VAR_0x4038_STRUCT, gSpecialVar_0x8004); } -static u16 * (*const sQuestLogStorageCBs[])(u16 *, const u16 *) = { +static u16 *(*const sQuestLogStorageCBs[])(u16 *, const u16 *) = { NULL, NULL, NULL, @@ -2818,9 +2819,9 @@ static u16 * (*const sQuestLogStorageCBs[])(u16 *, const u16 *) = { }; #ifdef NONMATCHING -void sub_8113550(u16 a0, const u16 * a1) +void sub_8113550(u16 a0, const u16 *a1) { - u16 * r1; + u16 *r1; if (a0 == 35 && gUnknown_203B048 == 2) { @@ -2905,7 +2906,7 @@ void sub_8113550(u16 a0, const u16 * a1) } #else NAKED -void sub_8113550(u16 a0, const u16 * a1) +void sub_8113550(u16 a0, const u16 *a1) { asm_unified("\tpush {r4,r5,lr}\n" "\tadds r5, r1, 0\n" @@ -3120,18 +3121,18 @@ bool8 sub_8113748(void) return FALSE; } -static bool8 sub_8113778(u16 a0, u16 * a1) +static bool8 sub_8113778(u16 a0, u16 *a1) { if (a0 == 36 || a0 == 11) return TRUE; - if (!FlagGet(0x82C)) + if (!FlagGet(FLAG_SYS_GAME_CLEAR)) { if (a0 == 3 || a0 == 31 || sub_81137E4(a0, a1) == TRUE) return TRUE; } - if (!FlagGet(0x844)) + if (!FlagGet(FLAG_SYS_CAN_LINK_WITH_RS)) { if (a0 == 4 || a0 == 5 || a0 == 6 || a0 == 7 || a0 == 8 || a0 == 9 || a0 == 10 || a0 == 22 || a0 == 25 || a0 == 26) return TRUE; @@ -3140,7 +3141,7 @@ static bool8 sub_8113778(u16 a0, u16 * a1) return FALSE; } -static bool8 sub_81137E4(u16 a0, u16 * a1) +static bool8 sub_81137E4(u16 a0, u16 *a1) { if (a0 == 34) { @@ -3160,7 +3161,7 @@ static void sub_811381C(void) gUnknown_203B048 = 0; } -static u16 * sub_8113828(u16 a0, u16 * a1) +static u16 *sub_8113828(u16 a0, u16 *a1) { if (sub_8113778(a0, a1) == TRUE) return NULL; @@ -3179,7 +3180,7 @@ static u16 * sub_8113828(u16 a0, u16 * a1) return sQuestLogStorageCBs[a0](gUnknown_203AE08, a1); } -static bool8 sub_81138A0(u16 a0, u16 * a1) +static bool8 sub_81138A0(u16 a0, u16 *a1) { if (a0 < 12 || a0 > 19) return FALSE; @@ -3206,7 +3207,7 @@ void sub_811390C(void) { if (gUnknown_203B024.unk_00 != 0) { - u16 * resp; + u16 *resp; gUnknown_203B04A = 0; sub_8110AEC(gUnknown_203B024.unk_00); resp = sQuestLogStorageCBs[gUnknown_203B024.unk_00](gUnknown_203AE08, gUnknown_203B024.unk_04); @@ -3215,12 +3216,12 @@ void sub_811390C(void) } } -static bool8 sub_8113954(u16 a0, u16 * a1) +static bool8 sub_8113954(u16 a0, u16 *a1) { if (a0 != 34 && a0 != 30 && a0 != 32 && a0 != 33) return FALSE; sub_81138F8(); - if (gUnknown_3005E88 || FlagGet(0x82C) || sub_81137E4(a0, a1) != TRUE) + if (gUnknown_3005E88 || FlagGet(FLAG_SYS_GAME_CLEAR) || sub_81137E4(a0, a1) != TRUE) { gUnknown_203B024.unk_00 = a0; memcpy(gUnknown_203B024.unk_04, a1, 8); @@ -3232,7 +3233,7 @@ void sub_81139BC(void) { if (gUnknown_203B024.unk_00 != 0) { - u16 * resp; + u16 *resp; if (gUnknown_3005E88 == 0) { gUnknown_203B04A = 0; @@ -3250,7 +3251,7 @@ void sub_81139BC(void) static void sub_8113A1C(u16 a0) { gUnknown_203AE08 = sub_8113C5C(gUnknown_203AE08, a0); - gUnknown_203AF98++; + sQuestLogIdx++; } static bool8 sub_8113A44(u16 a0, u16 *a1) @@ -3267,7 +3268,7 @@ static bool8 sub_8113A44(u16 a0, u16 *a1) return FALSE; } -static const u16 * (*const sQuestLogScriptParsingCBs[])(const u16 *) = { +static const u16 *(*const sQuestLogScriptParsingCBs[])(const u16 *) = { NULL, NULL, NULL, @@ -3313,7 +3314,7 @@ static const u16 * (*const sQuestLogScriptParsingCBs[])(const u16 *) = { sub_8115800 }; -static const u8 gUnknown_8456AA0[] = { +static const u8 sQuestLogEventCmdSizes[] = { 0x08, 0x08, 0x08, @@ -3359,21 +3360,21 @@ static const u8 gUnknown_8456AA0[] = { 0x06 }; -static u16 * sub_8113A78(u16 * a0, u16 **a1) +static u16 *QuestLog_SkipCommand(u16 *curPtr, u16 **prevPtr_p) { - u16 r2 = a0[0] & 0xfff; - u16 r4 = a0[0] >> 12; - if (r2 == 33) - r4 = 0; - if (r2 < 3 || r2 > 42) + u16 idx = curPtr[0] & 0xfff; + u16 cnt = curPtr[0] >> 12; + if (idx == 33) + cnt = 0; + if (idx < 3 || idx > 42) return NULL; - *a1 = a0; - return gUnknown_8456AA0[r2] + (gUnknown_8456AA0[r2] - 4) * r4 + (void *)a0; + *prevPtr_p = curPtr; + return sQuestLogEventCmdSizes[idx] + (sQuestLogEventCmdSizes[idx] - 4) * cnt + (void *)curPtr; } -static void sub_8113ABC(u16 * a0) +static void sub_8113ABC(u16 *a0) { - u8 * r2 = (u8 *)(a0 + 2); + u8 *r2 = (u8 *)(a0 + 2); if ((a0[0] & 0xFFF) != 35) gUnknown_203B04A = 0; else @@ -3381,9 +3382,9 @@ static void sub_8113ABC(u16 * a0) } #ifdef NONMATCHING -static bool8 sub_8113AE8(u16 * a0) +static bool8 sub_8113AE8(u16 *a0) { - if (a0 == NULL || a0[1] > gUnknown_203AF98) + if (a0 == NULL || a0[1] > sQuestLogIdx) return FALSE; sQuestLogScriptParsingCBs[a0[0] & 0xFFF](a0); @@ -3395,13 +3396,13 @@ static bool8 sub_8113AE8(u16 * a0) } #else NAKED -static bool8 sub_8113AE8(u16 * a0) +static bool8 sub_8113AE8(u16 *a0) { asm_unified("\tpush {r4,lr}\n" "\tadds r4, r0, 0\n" "\tcmp r0, 0\n" "\tbeq _08113AFA\n" - "\tldr r1, _08113B00 @ =gUnknown_203AF98\n" + "\tldr r1, _08113B00 @ =sQuestLogIdx\n" "\tldrh r0, [r0, 0x2]\n" "\tldrh r1, [r1]\n" "\tcmp r0, r1\n" @@ -3410,7 +3411,7 @@ static bool8 sub_8113AE8(u16 * a0) "\tmovs r0, 0\n" "\tb _08113B32\n" "\t.align 2, 0\n" - "_08113B00: .4byte gUnknown_203AF98\n" + "_08113B00: .4byte sQuestLogIdx\n" "_08113B04:\n" "\tldr r2, _08113B38 @ =sQuestLogScriptParsingCBs\n" "\tldrh r1, [r4]\n" @@ -3446,7 +3447,7 @@ static bool8 sub_8113AE8(u16 * a0) } #endif -static bool8 sub_8113B44(u16 * a0) +static bool8 sub_8113B44(u16 *a0) { if (gUnknown_203B044.unk_2 == 0) return FALSE; @@ -3465,11 +3466,11 @@ static void sub_8113B88(void) static void sub_8113B94(u16 a0) { - if (gUnknown_203B044.unk_0 != (u8)a0 || gUnknown_203B044.unk_2 != gUnknown_203AF98) + if (gUnknown_203B044.unk_0 != (u8)a0 || gUnknown_203B044.unk_2 != sQuestLogIdx) { gUnknown_203B044.unk_0 = a0; gUnknown_203B044.unk_1 = 0; - gUnknown_203B044.unk_2 = gUnknown_203AF98; + gUnknown_203B044.unk_2 = sQuestLogIdx; } else if (gUnknown_203B044.unk_1 < 5) gUnknown_203B044.unk_1++; @@ -3482,17 +3483,17 @@ static void sub_8113BD8(void) gUnknown_203B04B = 0; } -static u16 * sub_8113BF4(u16 * a0) +static u16 *sub_8113BF4(u16 *a0) { - if (!sub_8110988(a0, gUnknown_8456AA0[39])) + if (!sub_8110988(a0, sQuestLogEventCmdSizes[39])) return NULL; a0[0] = 39; return a0 + 1; } -static u16 * sub_8113C20(u16 * a0, struct UnkStruct_203AE98 * a1) +static u16 *sub_8113C20(u16 *a0, struct UnkStruct_203AE98 * a1) { - if (!sub_8110988(a0, gUnknown_8456AA0[39])) + if (!sub_8110988(a0, sQuestLogEventCmdSizes[39])) return NULL; a1->unk_6 = 0xFF; a1->unk_4 = 0; @@ -3503,18 +3504,18 @@ static u16 * sub_8113C20(u16 * a0, struct UnkStruct_203AE98 * a1) return a0 + 1; } -static u16 * sub_8113C5C(u16 * a0, u16 a1) +static u16 *sub_8113C5C(u16 *a0, u16 a1) { - if (!sub_8110988(a0, gUnknown_8456AA0[41])) + if (!sub_8110988(a0, sQuestLogEventCmdSizes[41])) return NULL; a0[0] = 41; a0[1] = a1; return a0 + 2; } -static u16 * sub_8113C8C(u16 * a0, struct UnkStruct_203AE98 * a1) +static u16 *sub_8113C8C(u16 *a0, struct UnkStruct_203AE98 * a1) { - if (!sub_8110988(a0, gUnknown_8456AA0[41])) + if (!sub_8110988(a0, sQuestLogEventCmdSizes[41])) return NULL; a1->unk_6 = 0xFE; a1->unk_4 = a0[1]; @@ -3525,11 +3526,11 @@ static u16 * sub_8113C8C(u16 * a0, struct UnkStruct_203AE98 * a1) return a0 + 2; } -static u16 * sub_8113CC8(u16 * a0, struct UnkStruct_203AE98 * a1) +static u16 *sub_8113CC8(u16 *a0, struct UnkStruct_203AE98 * a1) { - u8 * r6 = (u8 *)a0 + 4; + u8 *r6 = (u8 *)a0 + 4; - if (!sub_8110988(a0, gUnknown_8456AA0[0])) + if (!sub_8110988(a0, sQuestLogEventCmdSizes[0])) return NULL; a0[0] = 0; a0[1] = a1->unk_4; @@ -3540,11 +3541,11 @@ static u16 * sub_8113CC8(u16 * a0, struct UnkStruct_203AE98 * a1) return (u16 *)(r6 + 4); } -static u16 * sub_8113D08(u16 * a0, struct UnkStruct_203AE98 * a1) +static u16 *sub_8113D08(u16 *a0, struct UnkStruct_203AE98 * a1) { - u8 * r6 = (u8 *)a0 + 4; + u8 *r6 = (u8 *)a0 + 4; - if (!sub_8110988(a0, gUnknown_8456AA0[0])) + if (!sub_8110988(a0, sQuestLogEventCmdSizes[0])) return NULL; a1->unk_6 = 2; a1->unk_4 = a0[1]; @@ -3555,12 +3556,12 @@ static u16 * sub_8113D08(u16 * a0, struct UnkStruct_203AE98 * a1) return (u16 *)(r6 + 4); } -static u16 * sub_8113D48(u16 * a0, struct UnkStruct_203AE98 * a1) +static u16 *sub_8113D48(u16 *a0, struct UnkStruct_203AE98 * a1) { - u16 * r4 = a0; - u8 * r6 = (u8 *)a0 + 4; + u16 *r4 = a0; + u8 *r6 = (u8 *)a0 + 4; - if (!sub_8110988(r4, gUnknown_8456AA0[2])) + if (!sub_8110988(r4, sQuestLogEventCmdSizes[2])) return NULL; if (a1->unk_6 == 0) r4[0] = 2; @@ -3574,12 +3575,12 @@ static u16 * sub_8113D48(u16 * a0, struct UnkStruct_203AE98 * a1) return (u16 *)(r6 + 4); } -static u16 * sub_8113D94(u16 * a0, struct UnkStruct_203AE98 * a1) +static u16 *sub_8113D94(u16 *a0, struct UnkStruct_203AE98 * a1) { - u16 * r5 = a0; - u8 * r6 = (u8 *)a0 + 4; + u16 *r5 = a0; + u8 *r6 = (u8 *)a0 + 4; - if (!sub_8110988(r5, gUnknown_8456AA0[2])) + if (!sub_8110988(r5, sQuestLogEventCmdSizes[2])) return NULL; if (r5[0] == 2) a1->unk_6 = 0; @@ -3593,17 +3594,17 @@ static u16 * sub_8113D94(u16 * a0, struct UnkStruct_203AE98 * a1) return (u16 *)(r6 + 4); } -u16 * sub_8113DE0(u16 a0, u16 * a1) +u16 *sub_8113DE0(u16 a0, u16 *a1) { u8 r6; - u16 * r5; + u16 *r5; u8 r4; u8 r1; if (gUnknown_203B044.unk_1 == 0) - r6 = gUnknown_8456AA0[a0]; + r6 = sQuestLogEventCmdSizes[a0]; else - r6 = gUnknown_8456AA0[a0] - 4; + r6 = sQuestLogEventCmdSizes[a0] - 4; if (!sub_8110944(a1, r6)) return NULL; @@ -3628,21 +3629,18 @@ u16 * sub_8113DE0(u16 a0, u16 * a1) r1 = gUnknown_203B044.unk_1; r5[0] = a0 + (r1 << 12); - r5[1] = gUnknown_203AF98; + r5[1] = sQuestLogIdx; r5 = (void *)r5 + (r1 * r6 + 4); return r5; } -static const u16 * sub_8113E88(u16 a0, const u16 * a1) +static const u16 *sub_8113E88(u16 a0, const u16 *a1) { - a1 = (const void *)a1 + (gUnknown_203B044.unk_2 * (gUnknown_8456AA0[a0] - 4) + 4); + a1 = (const void *)a1 + (gUnknown_203B044.unk_2 * (sQuestLogEventCmdSizes[a0] - 4) + 4); return a1; } -// TODO: delete this declaration once data_83FECCC.s is decompiled -extern const u8 gText_EggNickname[]; - -void QuestLog_AutoGetSpeciesName(u16 a0, u8 * a1, u8 a2) +void QuestLog_AutoGetSpeciesName(u16 a0, u8 *a1, u8 a2) { if (a1 != NULL) { @@ -3660,9 +3658,9 @@ void QuestLog_AutoGetSpeciesName(u16 a0, u8 * a1, u8 a2) } } -static u16 * sub_8113F14(u16 * a0, const u16 * a1) +static u16 *sub_8113F14(u16 *a0, const u16 *a1) { - u16 * r2 = sub_8113DE0(3, a0); + u16 *r2 = sub_8113DE0(3, a0); if (r2 == NULL) return NULL; @@ -3671,9 +3669,9 @@ static u16 * sub_8113F14(u16 * a0, const u16 * a1) return r2 + 2; } -static const u16 * sub_8113F3C(const u16 * a0) +static const u16 *sub_8113F3C(const u16 *a0) { - const u16 * r4 = sub_8113E88(3, a0); + const u16 *r4 = sub_8113E88(3, a0); QuestLog_AutoGetSpeciesName(r4[0], gStringVar1, 0); QuestLog_AutoGetSpeciesName(r4[1], gStringVar2, 0); StringExpandPlaceholders(gStringVar4, gUnknown_841A16F); @@ -3681,9 +3679,9 @@ static const u16 * sub_8113F3C(const u16 * a0) return r4; } -static u16 * sub_8113F80(u16 * a0, const u16 * a1) +static u16 *sub_8113F80(u16 *a0, const u16 *a1) { - u16 * r2 = sub_8113DE0(4, a0); + u16 *r2 = sub_8113DE0(4, a0); if (r2 == NULL) return NULL; @@ -3697,61 +3695,61 @@ static u16 * sub_8113F80(u16 * a0, const u16 * a1) return r2 + 3; } -static const u16 * sub_8113FBC(const u16 * a0) +static const u16 *sub_8113FBC(const u16 *a0) { - const u16 * r5 = sub_8113E88(4, a0); + const u16 *r5 = sub_8113E88(4, a0); switch (ItemId_GetPocket(r5[0])) { - case POCKET_ITEMS: - case POCKET_POKE_BALLS: - case POCKET_BERRY_POUCH: - StringCopy(gStringVar1, ItemId_GetName(r5[0])); - if (r5[0] == ITEM_ESCAPE_ROPE) - { - sub_80C4DF8(gStringVar2, r5[2]); - StringExpandPlaceholders(gStringVar4, gUnknown_841AFA6); - } - else if (r5[1] != 0xFFFF) - { - QuestLog_AutoGetSpeciesName(r5[1], gStringVar2, 0); - StringExpandPlaceholders(gStringVar4, gUnknown_841A1E7); - } + case POCKET_ITEMS: + case POCKET_POKE_BALLS: + case POCKET_BERRY_POUCH: + StringCopy(gStringVar1, ItemId_GetName(r5[0])); + if (r5[0] == ITEM_ESCAPE_ROPE) + { + sub_80C4DF8(gStringVar2, r5[2]); + StringExpandPlaceholders(gStringVar4, gUnknown_841AFA6); + } + else if (r5[1] != 0xFFFF) + { + QuestLog_AutoGetSpeciesName(r5[1], gStringVar2, 0); + StringExpandPlaceholders(gStringVar4, gUnknown_841A1E7); + } + else + { + StringExpandPlaceholders(gStringVar4, gUnknown_841A210); + } + break; + case POCKET_KEY_ITEMS: + StringCopy(gStringVar1, ItemId_GetName(r5[0])); + StringExpandPlaceholders(gStringVar4, gUnknown_841A220); + break; + case POCKET_TM_CASE: + QuestLog_AutoGetSpeciesName(r5[1], gStringVar1, 0); + StringCopy(gStringVar2, gMoveNames[ItemIdToBattleMoveId(r5[0])]); + if (r5[2] != 0xFFFF) + { + StringCopy(gStringVar3, gMoveNames[r5[2]]); + if (r5[0] > ITEM_TM50) + StringExpandPlaceholders(gStringVar4, gUnknown_841A965); else - { - StringExpandPlaceholders(gStringVar4, gUnknown_841A210); - } - break; - case POCKET_KEY_ITEMS: - StringCopy(gStringVar1, ItemId_GetName(r5[0])); - StringExpandPlaceholders(gStringVar4, gUnknown_841A220); - break; - case POCKET_TM_CASE: - QuestLog_AutoGetSpeciesName(r5[1], gStringVar1, 0); - StringCopy(gStringVar2, gMoveNames[ItemIdToBattleMoveId(r5[0])]); - if (r5[2] != 0xFFFF) - { - StringCopy(gStringVar3, gMoveNames[r5[2]]); - if (r5[0] > ITEM_TM50) - StringExpandPlaceholders(gStringVar4, gUnknown_841A965); - else - StringExpandPlaceholders(gStringVar4, gUnknown_841A277); - } + StringExpandPlaceholders(gStringVar4, gUnknown_841A277); + } + else + { + if (r5[0] > ITEM_TM50) + StringExpandPlaceholders(gStringVar4, gUnknown_841A938); else - { - if (r5[0] > ITEM_TM50) - StringExpandPlaceholders(gStringVar4, gUnknown_841A938); - else - StringExpandPlaceholders(gStringVar4, gUnknown_841A255); - } - break; + StringExpandPlaceholders(gStringVar4, gUnknown_841A255); + } + break; } return r5 + 3; } -u16 * sub_811414C(u16 a0, u16 * a1, const u16 * a2) +u16 *sub_811414C(u16 a0, u16 *a1, const u16 *a2) { - u16 * r1 = sub_8113DE0(a0, a1); + u16 *r1 = sub_8113DE0(a0, a1); if (r1 == NULL) return NULL; @@ -3760,14 +3758,14 @@ u16 * sub_811414C(u16 a0, u16 * a1, const u16 * a2) return r1 + 2; } -static u16 * sub_8114174(u16 * a0, const u16 * a1) +static u16 *sub_8114174(u16 *a0, const u16 *a1) { return sub_811414C(5, a0, a1); } -static const u16 * sub_8114188(const u16 * a0) +static const u16 *sub_8114188(const u16 *a0) { - const u16 * r4 = sub_8113E88(5, a0); + const u16 *r4 = sub_8113E88(5, a0); QuestLog_AutoGetSpeciesName(r4[1], gStringVar1, 0); StringCopy(gStringVar2, ItemId_GetName(r4[0])); StringExpandPlaceholders(gStringVar4, gUnknown_841AB74); @@ -3775,14 +3773,14 @@ static const u16 * sub_8114188(const u16 * a0) return r4; } -static u16 * sub_81141D0(u16 * a0, const u16 * a1) +static u16 *sub_81141D0(u16 *a0, const u16 *a1) { return sub_811414C(6, a0, a1); } -static const u16 * sub_81141E4(const u16 * a0) +static const u16 *sub_81141E4(const u16 *a0) { - const u16 * r4 = sub_8113E88(6, a0); + const u16 *r4 = sub_8113E88(6, a0); QuestLog_AutoGetSpeciesName(r4[1], gStringVar1, 0); StringCopy(gStringVar2, ItemId_GetName(r4[0])); @@ -3791,14 +3789,14 @@ static const u16 * sub_81141E4(const u16 * a0) return r4; } -static u16 * sub_811422C(u16 * a0, const u16 * a1) +static u16 *sub_811422C(u16 *a0, const u16 *a1) { return sub_811414C(7, a0, a1); } -static const u16 * sub_8114240(const u16 * a0) +static const u16 *sub_8114240(const u16 *a0) { - const u16 * r4 = sub_8113E88(7, a0); + const u16 *r4 = sub_8113E88(7, a0); QuestLog_AutoGetSpeciesName(r4[1], gStringVar2, 0); StringCopy(gStringVar1, ItemId_GetName(r4[0])); @@ -3807,14 +3805,14 @@ static const u16 * sub_8114240(const u16 * a0) return r4; } -static u16 * sub_8114288(u16 * a0, const u16 * a1) +static u16 *sub_8114288(u16 *a0, const u16 *a1) { return sub_811414C(8, a0, a1); } -static const u16 * sub_811429C(const u16 * a0) +static const u16 *sub_811429C(const u16 *a0) { - const u16 * r4 = sub_8113E88(8, a0); + const u16 *r4 = sub_8113E88(8, a0); QuestLog_AutoGetSpeciesName(r4[1], gStringVar1, 0); StringCopy(gStringVar2, ItemId_GetName(r4[0])); @@ -3823,9 +3821,9 @@ static const u16 * sub_811429C(const u16 * a0) return r4; } -u16 * sub_81142E4(u16 a0, u16 * a1, const u16 * a2) +u16 *sub_81142E4(u16 a0, u16 *a1, const u16 *a2) { - u16 * r1 = sub_8113DE0(a0, a1); + u16 *r1 = sub_8113DE0(a0, a1); if (r1 == NULL) return NULL; @@ -3835,14 +3833,14 @@ u16 * sub_81142E4(u16 a0, u16 * a1, const u16 * a2) return r1 + 3; } -static u16 * sub_8114310(u16 * a0, const u16 * a1) +static u16 *sub_8114310(u16 *a0, const u16 *a1) { return sub_81142E4(9, a0, a1); } -static const u16 * sub_8114324(const u16 * a0) +static const u16 *sub_8114324(const u16 *a0) { - const u16 * r4 = sub_8113E88(9, a0); + const u16 *r4 = sub_8113E88(9, a0); QuestLog_AutoGetSpeciesName(r4[2], gStringVar1, 0); StringCopy(gStringVar2, ItemId_GetName(r4[0])); StringCopy(gStringVar3, ItemId_GetName(r4[1])); @@ -3851,14 +3849,14 @@ static const u16 * sub_8114324(const u16 * a0) return r4; } -static u16 * sub_8114380(u16 * a0, const u16 * a1) +static u16 *sub_8114380(u16 *a0, const u16 *a1) { return sub_81142E4(10, a0, a1); } -static const u16 * sub_8114394(const u16 * a0) +static const u16 *sub_8114394(const u16 *a0) { - const u16 * r4 = sub_8113E88(10, a0); + const u16 *r4 = sub_8113E88(10, a0); QuestLog_AutoGetSpeciesName(r4[2], gStringVar2, 0); StringCopy(gStringVar3, ItemId_GetName(r4[0])); StringCopy(gStringVar1, ItemId_GetName(r4[1])); @@ -3867,33 +3865,33 @@ static const u16 * sub_8114394(const u16 * a0) return r4; } -static u16 * sub_81143F0(u16 * a0, const u16 * a1) +static u16 *sub_81143F0(u16 *a0, const u16 *a1) { - u16 * r4 = a0; + u16 *r4 = a0; if (gUnknown_203B044.unk_0 == 11 && gUnknown_203B044.unk_1 != 0) return r4; - if (!sub_8110944(a0, gUnknown_8456AA0[11])) + if (!sub_8110944(a0, sQuestLogEventCmdSizes[11])) return NULL; r4[0] = 11; - r4[1] = gUnknown_203AF98; + r4[1] = sQuestLogIdx; return r4 + 2; } -static const u16 * sub_811443C(const u16 * a0) +static const u16 *sub_811443C(const u16 *a0) { StringExpandPlaceholders(gStringVar4, gUnknown_841A2B0); a0 += 2; return a0; } -static u16 * sub_811445C(u16 * a0, const u16 * a1) +static u16 *sub_811445C(u16 *a0, const u16 *a1) { - u16 * r4 = a0 + 4; + u16 *r4 = a0 + 4; a0[0] = 12; - a0[1] = gUnknown_203AF98; + a0[1] = sQuestLogIdx; a0[2] = a1[0]; a0[3] = a1[1]; a1 += 2; @@ -3902,9 +3900,9 @@ static u16 * sub_811445C(u16 * a0, const u16 * a1) return r4; } -static const u16 * sub_811448C(const u16 * a0) +static const u16 *sub_811448C(const u16 *a0) { - const u16 * r6 = a0 + 4; + const u16 *r6 = a0 + 4; memset(gStringVar1, EOS, 8); memcpy(gStringVar1, r6, 7); @@ -3935,17 +3933,17 @@ static const u8 *const gUnknown_8456AE4[] = { gUnknown_841AFD1 }; -static u16 * sub_81144EC(u16 * a0, const u16 * a1) +static u16 *sub_81144EC(u16 *a0, const u16 *a1) { a0[0] = 13; - a0[1] = gUnknown_203AF98; + a0[1] = sQuestLogIdx; *((u8 *)a0 + 4) = *((const u8 *)a1 + 0); memcpy((u8 *)a0 + 5, (const u8 *)a1 + 1, 7); a0 += 6; return a0; } -static const u16 * sub_8114518(const u16 * a0) +static const u16 *sub_8114518(const u16 *a0) { DynamicPlaceholderTextUtil_Reset(); @@ -3959,17 +3957,17 @@ static const u16 * sub_8114518(const u16 * a0) return a0; } -static u16 * sub_8114578(u16 * a0, const u16 * a1) +static u16 *sub_8114578(u16 *a0, const u16 *a1) { a0[0] = 14; - a0[1] = gUnknown_203AF98; + a0[1] = sQuestLogIdx; *((u8 *)a0 + 4) = *((const u8 *)a1 + 0); memcpy((u8 *)a0 + 5, (const u8 *)a1 + 1, 7); a0 += 6; return a0; } -static const u16 * sub_81145A4(const u16 * a0) +static const u16 *sub_81145A4(const u16 *a0) { DynamicPlaceholderTextUtil_Reset(); @@ -3983,10 +3981,10 @@ static const u16 * sub_81145A4(const u16 * a0) return a0; } -static u16 * sub_8114604(u16 * a0, const u16 * a1) +static u16 *sub_8114604(u16 *a0, const u16 *a1) { a0[0] = 15; - a0[1] = gUnknown_203AF98; + a0[1] = sQuestLogIdx; *((u8 *)a0 + 4) = *((const u8 *)a1 + 0); memcpy((u8 *)a0 + 5, (const u8 *)a1 + 1, 7); memcpy((u8 *)a0 + 12, (const u8 *)a1 + 8, 7); @@ -3995,7 +3993,7 @@ static u16 * sub_8114604(u16 * a0, const u16 * a1) return a0; } -static const u16 * sub_811464C(const u16 * a0) +static const u16 *sub_811464C(const u16 *a0) { DynamicPlaceholderTextUtil_Reset(); @@ -4018,39 +4016,39 @@ static const u16 * sub_811464C(const u16 * a0) return a0; } -static u16 * sub_8114710(u16 * a0, const u16 * a1) +static u16 *sub_8114710(u16 *a0, const u16 *a1) { a0[0] = 16; - a0[1] = gUnknown_203AF98; + a0[1] = sQuestLogIdx; return a0 + 2; } -static const u16 * sub_8114724(const u16 * a0) +static const u16 *sub_8114724(const u16 *a0) { StringExpandPlaceholders(gStringVar4, gUnknown_841A50B); a0 += 2; return a0; } -static u16 * sub_8114744(u16 * a0, const u16 * a1) +static u16 *sub_8114744(u16 *a0, const u16 *a1) { a0[0] = 17; - a0[1] = gUnknown_203AF98; + a0[1] = sQuestLogIdx; return a0 + 2; } -static const u16 * sub_8114758(const u16 * a0) +static const u16 *sub_8114758(const u16 *a0) { StringExpandPlaceholders(gStringVar4, gUnknown_841A732); a0 += 2; return a0; } -static u16 * sub_8114778(u16 * a0, const u16 * a1) +static u16 *sub_8114778(u16 *a0, const u16 *a1) { - u8 * r4 = (u8 *)(a0 + 4); + u8 *r4 = (u8 *)(a0 + 4); a0[0] = 18; - a0[1] = gUnknown_203AF98; + a0[1] = sQuestLogIdx; a0[2] = a1[0]; a0[3] = a1[1]; memcpy(r4, a1 + 2, 7); @@ -4058,9 +4056,9 @@ static u16 * sub_8114778(u16 * a0, const u16 * a1) return (u16 *)r4; } -static const u16 * sub_81147A8(const u16 * a0) +static const u16 *sub_81147A8(const u16 *a0) { - const u8 * r6 = (const u8 *)(a0 + 4); + const u8 *r6 = (const u8 *)(a0 + 4); memset(gStringVar1, EOS, 8); memcpy(gStringVar1, r6, 7); sub_8115834(gStringVar1); @@ -4071,17 +4069,17 @@ static const u16 * sub_81147A8(const u16 * a0) return (const u16 *)r6; } -static u16 * sub_8114808(u16 * a0, const u16 * a1) +static u16 *sub_8114808(u16 *a0, const u16 *a1) { a0[0] = 19; - a0[1] = gUnknown_203AF98; + a0[1] = sQuestLogIdx; *(u8 *)&a0[2] = *(const u8 *)&a1[0]; memcpy((u8 *)a0 + 5, (const u8 *)a1 + 1, 7); a0 += 6; return a0; } -static const u16 * sub_8114834(const u16 * a0) +static const u16 *sub_8114834(const u16 *a0) { memset(gStringVar1, EOS, 8); memcpy(gStringVar1, (const u8 *)a0 + 5, 7); @@ -4092,7 +4090,7 @@ static const u16 * sub_8114834(const u16 * a0) return a0; } -static u16 * sub_811488C(u16 * a0, const u16 * a1) +static u16 *sub_811488C(u16 *a0, const u16 *a1) { a0 = sub_8113DE0(20, a0); if (a0 == NULL) @@ -4104,9 +4102,9 @@ static u16 * sub_811488C(u16 * a0, const u16 * a1) return a0 + 3; } -static const u16 * sub_81148BC(const u16 * a0) +static const u16 *sub_81148BC(const u16 *a0) { - const u8 * boxIdxs; + const u8 *boxIdxs; a0 = sub_8113E88(20, a0); boxIdxs = (const u8 *)a0 + 4; DynamicPlaceholderTextUtil_Reset(); @@ -4118,7 +4116,7 @@ static const u16 * sub_81148BC(const u16 * a0) return a0 + 3; } -static u16 * sub_8114918(u16 * a0, const u16 * a1) +static u16 *sub_8114918(u16 *a0, const u16 *a1) { a0 = sub_8113DE0(21, a0); if (a0 == NULL) @@ -4129,9 +4127,9 @@ static u16 * sub_8114918(u16 * a0, const u16 * a1) return a0 + 3; } -static const u16 * sub_8114944(const u16 * a0) +static const u16 *sub_8114944(const u16 *a0) { - const u8 * boxIdxs; + const u8 *boxIdxs; a0 = sub_8113E88(21, a0); boxIdxs = (const u8 *)a0 + 4; DynamicPlaceholderTextUtil_Reset(); @@ -4142,10 +4140,10 @@ static const u16 * sub_8114944(const u16 * a0) return a0 + 3; } -static u16 * sub_8114990(u16 * a0, const u16 * a1) +static u16 *sub_8114990(u16 *a0, const u16 *a1) { - u16 * r2; - u16 * ret; + u16 *r2; + u16 *ret; r2 = sub_8113DE0(22, a0); if (r2 == NULL) return NULL; @@ -4165,9 +4163,9 @@ static u16 * sub_8114990(u16 * a0, const u16 * a1) return ret + 1; } -static const u16 * sub_81149D0(const u16 * a0) +static const u16 *sub_81149D0(const u16 *a0) { - const u8 * boxIdxs; + const u8 *boxIdxs; a0 = sub_8113E88(22, a0); boxIdxs = (const u8 *)a0 + 4; DynamicPlaceholderTextUtil_Reset(); @@ -4178,10 +4176,10 @@ static const u16 * sub_81149D0(const u16 * a0) return a0 + 3; } -static u16 * sub_8114A1C(u16 * a0, const u16 * a1) +static u16 *sub_8114A1C(u16 *a0, const u16 *a1) { - u16 * r2; - u16 * ret; + u16 *r2; + u16 *ret; r2 = sub_8113DE0(23, a0); if (r2 == NULL) return NULL; @@ -4192,9 +4190,9 @@ static u16 * sub_8114A1C(u16 * a0, const u16 * a1) return ret + 1; } -static const u16 * sub_8114A4C(const u16 * a0) +static const u16 *sub_8114A4C(const u16 *a0) { - const u8 * boxIdxs; + const u8 *boxIdxs; a0 = sub_8113E88(23, a0); boxIdxs = (const u8 *)a0 + 2; DynamicPlaceholderTextUtil_Reset(); @@ -4205,9 +4203,9 @@ static const u16 * sub_8114A4C(const u16 * a0) return (const u16 *)boxIdxs + 1; } -static u16 * sub_8114AA0(u16 * a0, const u16 * a1) +static u16 *sub_8114AA0(u16 *a0, const u16 *a1) { - u16 * r2; + u16 *r2; r2 = sub_8113DE0(24, a0); if (r2 == NULL) return NULL; @@ -4216,9 +4214,9 @@ static u16 * sub_8114AA0(u16 * a0, const u16 * a1) return r2 + 2; } -static const u16 * sub_8114AC8(const u16 * a0) +static const u16 *sub_8114AC8(const u16 *a0) { - const u8 * boxIdxs; + const u8 *boxIdxs; a0 = sub_8113E88(24, a0); boxIdxs = (const u8 *)a0 + 2; DynamicPlaceholderTextUtil_Reset(); @@ -4228,9 +4226,9 @@ static const u16 * sub_8114AC8(const u16 * a0) return (const u16 *)boxIdxs + 1; } -static u16 * sub_8114B0C(u16 * a0, const u16 * a1) +static u16 *sub_8114B0C(u16 *a0, const u16 *a1) { - u16 * r2; + u16 *r2; r2 = sub_8113DE0(25, a0); if (r2 == NULL) return NULL; @@ -4239,9 +4237,9 @@ static u16 * sub_8114B0C(u16 * a0, const u16 * a1) return r2 + 2; } -static const u16 * sub_8114B34(const u16 * a0) +static const u16 *sub_8114B34(const u16 *a0) { - const u8 * boxIdxs; + const u8 *boxIdxs; a0 = sub_8113E88(25, a0); boxIdxs = (const u8 *)a0 + 2; DynamicPlaceholderTextUtil_Reset(); @@ -4251,9 +4249,9 @@ static const u16 * sub_8114B34(const u16 * a0) return (const u16 *)boxIdxs + 1; } -static u16 * sub_8114B78(u16 * a0, const u16 * a1) +static u16 *sub_8114B78(u16 *a0, const u16 *a1) { - u16 * r2; + u16 *r2; r2 = sub_8113DE0(26, a0); if (r2 == NULL) return NULL; @@ -4262,9 +4260,9 @@ static u16 * sub_8114B78(u16 * a0, const u16 * a1) return r2 + 2; } -static const u16 * sub_8114BA0(const u16 * a0) +static const u16 *sub_8114BA0(const u16 *a0) { - const u8 * boxIdxs; + const u8 *boxIdxs; a0 = sub_8113E88(26, a0); boxIdxs = (const u8 *)a0 + 2; DynamicPlaceholderTextUtil_Reset(); @@ -4274,9 +4272,9 @@ static const u16 * sub_8114BA0(const u16 * a0) return (const u16 *)boxIdxs + 1; } -static u16 * sub_8114BE4(u16 * a0, const u16 * a1) +static u16 *sub_8114BE4(u16 *a0, const u16 *a1) { - u16 * r2; + u16 *r2; r2 = sub_8113DE0(27, a0); if (r2 == NULL) return NULL; @@ -4285,7 +4283,7 @@ static u16 * sub_8114BE4(u16 * a0, const u16 * a1) return r2 + 1; } -static const u16 * sub_8114C0C(const u16 * a0) +static const u16 *sub_8114C0C(const u16 *a0) { const u16 *r4 = sub_8113E88(27, a0); DynamicPlaceholderTextUtil_Reset(); @@ -4298,7 +4296,7 @@ static const u16 * sub_8114C0C(const u16 * a0) return r4 + 1; } -static u16 * sub_8114C68(u16 * a0, const u16 * a1) +static u16 *sub_8114C68(u16 *a0, const u16 *a1) { a0 = sub_8113DE0(28, a0); if (a0 == NULL) @@ -4307,7 +4305,7 @@ static u16 * sub_8114C68(u16 * a0, const u16 * a1) return a0 + 1; } -static const u16 * sub_8114C8C(const u16 * a0) +static const u16 *sub_8114C8C(const u16 *a0) { const u16 *r4 = sub_8113E88(28, a0); CopyItemName(r4[0], gStringVar1); @@ -4315,7 +4313,7 @@ static const u16 * sub_8114C8C(const u16 * a0) return r4 + 1; } -static u16 * sub_8114CC0(u16 * a0, const u16 * a1) +static u16 *sub_8114CC0(u16 *a0, const u16 *a1) { a0 = sub_8113DE0(29, a0); if (a0 == NULL) @@ -4324,7 +4322,7 @@ static u16 * sub_8114CC0(u16 * a0, const u16 * a1) return a0 + 1; } -static const u16 * sub_8114CE4(const u16 * a0) +static const u16 *sub_8114CE4(const u16 *a0) { const u16 *r4 = sub_8113E88(29, a0); CopyItemName(r4[0], gStringVar1); @@ -4332,7 +4330,7 @@ static const u16 * sub_8114CE4(const u16 * a0) return r4 + 1; } -u16 * sub_8114D18(u16 a0, u16 * a1, const u16 * a2) +u16 *sub_8114D18(u16 a0, u16 *a1, const u16 *a2) { a1 = sub_8113DE0(a0, a1); if (a1 == NULL) @@ -4345,15 +4343,15 @@ u16 * sub_8114D18(u16 a0, u16 * a1, const u16 * a2) return a1 + 4; } -static u16 * sub_8114D4C(u16 * a0, const u16 * a1) +static u16 *sub_8114D4C(u16 *a0, const u16 *a1) { gUnknown_203B048 = TRUE; return sub_8114D18(30, a0, a1); } -static const u16 * sub_8114D68(const u16 * a0) +static const u16 *sub_8114D68(const u16 *a0) { - const u8 * r6; + const u8 *r6; a0 = sub_8113E88(30, a0); r6 = (const u8 *)a0 + 6; DynamicPlaceholderTextUtil_Reset(); @@ -4367,16 +4365,16 @@ static const u16 * sub_8114D68(const u16 * a0) return a0 + 4; } -static u16 * sub_8114DE8(u16 * a0, const u16 * a1) +static u16 *sub_8114DE8(u16 *a0, const u16 *a1) { - u16 * r4 = a0; - u8 * r5 = (u8 *)a0 + 8; - if (!sub_8110944(r4, gUnknown_8456AA0[31])) + u16 *r4 = a0; + u8 *r5 = (u8 *)a0 + 8; + if (!sub_8110944(r4, sQuestLogEventCmdSizes[31])) return NULL; if (r5[0] == 0 && r5[1] == 0) { r4[0] = 31; - r4[1] = gUnknown_203AF98; + r4[1] = sQuestLogIdx; } if (a1[0]) r4[2] = a1[0]; @@ -4390,10 +4388,10 @@ static u16 * sub_8114DE8(u16 * a0, const u16 * a1) return (u16 *)(r5 + 4); } -static const u16 * sub_8114E68(const u16 * a0) +static const u16 *sub_8114E68(const u16 *a0) { - const u8 * r6; - if (!sub_8110944(a0, gUnknown_8456AA0[31])) + const u8 *r6; + if (!sub_8110944(a0, sQuestLogEventCmdSizes[31])) return NULL; r6 = (const u8 *)a0 + 8; @@ -4442,24 +4440,24 @@ static bool8 sub_8114FBC(u16 a0) { switch (a0) { - case 0x96: - case 0x8F ... 0x92: - case 0xF9 ... 0xFA: - case 0x19A: - return TRUE; + case 0x96: + case 0x8F ... 0x92: + case 0xF9 ... 0xFA: + case 0x19A: + return TRUE; } return FALSE; } -static u16 * sub_8114FF0(u16 * a0, const u16 * a1) +static u16 *sub_8114FF0(u16 *a0, const u16 *a1) { gUnknown_203B048 = TRUE; return sub_8114D18(32, a0, a1); } -static const u16 * sub_811500C(const u16 * a0) +static const u16 *sub_811500C(const u16 *a0) { - const u8 * r5; + const u8 *r5; a0 = sub_8113E88(32, a0); r5 = (const u8 *)a0 + 6; DynamicPlaceholderTextUtil_Reset(); @@ -4471,12 +4469,12 @@ static const u16 * sub_811500C(const u16 * a0) return a0 + 4; } -static u16 * sub_8115078(u16 * a0, const u16 * a1) +static u16 *sub_8115078(u16 *a0, const u16 *a1) { - if (!sub_8110944(a0, gUnknown_8456AA0[33])) + if (!sub_8110944(a0, sQuestLogEventCmdSizes[33])) return NULL; a0[0] = 0x2021; - a0[1] = gUnknown_203AF98; + a0[1] = sQuestLogIdx; a0[2] = a1[1]; a0[3] = a1[2]; *((u8 *)a0 + 8) = *((const u8 *)a1 + 6); @@ -4484,10 +4482,10 @@ static u16 * sub_8115078(u16 * a0, const u16 * a1) return a0 + 5; } -static const u16 * sub_81150CC(const u16 * a0) +static const u16 *sub_81150CC(const u16 *a0) { - const u8 * r5; - if (!sub_8110944(a0, gUnknown_8456AA0[33])) + const u8 *r5; + if (!sub_8110944(a0, sQuestLogEventCmdSizes[33])) return NULL; r5 = (const u8 *)a0 + 8; @@ -4495,36 +4493,36 @@ static const u16 * sub_81150CC(const u16 * a0) switch (gUnknown_203B044.unk_2) { - case 0: - DynamicPlaceholderTextUtil_SetPlaceholderPtr(0, gSaveBlock2Ptr->playerName); - DynamicPlaceholderTextUtil_SetPlaceholderPtr(1, gSaveBlock1Ptr->rivalName); - DynamicPlaceholderTextUtil_ExpandPlaceholders(gStringVar4, gUnknown_841A2E1); - break; - case 1: - DynamicPlaceholderTextUtil_SetPlaceholderPtr(0, gSaveBlock1Ptr->rivalName); - QuestLog_AutoGetSpeciesName(a0[2], NULL, 1); - DynamicPlaceholderTextUtil_SetPlaceholderPtr(2, gSaveBlock2Ptr->playerName); - QuestLog_AutoGetSpeciesName(a0[3], NULL, 3); - DynamicPlaceholderTextUtil_ExpandPlaceholders(gStringVar4, gUnknown_841A312); - break; - case 2: - DynamicPlaceholderTextUtil_SetPlaceholderPtr(0, gUnknown_8456AD8[r5[0]]); - DynamicPlaceholderTextUtil_ExpandPlaceholders(gStringVar4, gUnknown_841A349); - break; + case 0: + DynamicPlaceholderTextUtil_SetPlaceholderPtr(0, gSaveBlock2Ptr->playerName); + DynamicPlaceholderTextUtil_SetPlaceholderPtr(1, gSaveBlock1Ptr->rivalName); + DynamicPlaceholderTextUtil_ExpandPlaceholders(gStringVar4, gUnknown_841A2E1); + break; + case 1: + DynamicPlaceholderTextUtil_SetPlaceholderPtr(0, gSaveBlock1Ptr->rivalName); + QuestLog_AutoGetSpeciesName(a0[2], NULL, 1); + DynamicPlaceholderTextUtil_SetPlaceholderPtr(2, gSaveBlock2Ptr->playerName); + QuestLog_AutoGetSpeciesName(a0[3], NULL, 3); + DynamicPlaceholderTextUtil_ExpandPlaceholders(gStringVar4, gUnknown_841A312); + break; + case 2: + DynamicPlaceholderTextUtil_SetPlaceholderPtr(0, gUnknown_8456AD8[r5[0]]); + DynamicPlaceholderTextUtil_ExpandPlaceholders(gStringVar4, gUnknown_841A349); + break; } return (const u16 *)(r5 + 2); } -static u16 * sub_81151C0(u16 * a0, const u16 * a1) +static u16 *sub_81151C0(u16 *a0, const u16 *a1) { gUnknown_203B048 = TRUE; return sub_8114D18(34, a0, a1); } -static const u16 * sub_81151DC(const u16 * a0) +static const u16 *sub_81151DC(const u16 *a0) { - const u16 * r5 = sub_8113E88(34, a0); - const u8 * r6 = (const u8 *)r5 + 6; + const u16 *r5 = sub_8113E88(34, a0); + const u8 *r6 = (const u8 *)r5 + 6; DynamicPlaceholderTextUtil_Reset(); sub_80C4DF8(gStringVar1, r6[0]); DynamicPlaceholderTextUtil_SetPlaceholderPtr(0, gStringVar1); @@ -4544,155 +4542,155 @@ static const u16 * sub_81151DC(const u16 * a0) } static const u8 *const gUnknown_8456AF0[] = { - gUnknown_841B09F, - gUnknown_841B0A4, - gUnknown_841B0B5, - gUnknown_841B0B9, - gUnknown_841B0B9, - gUnknown_841B0CD, - gUnknown_841B0CD, - gUnknown_841B0DD, - gUnknown_841B0B5, - gUnknown_841B0F6, - gUnknown_841B0F6, - gUnknown_841B0B5, - gUnknown_841B0FF, - gUnknown_841B109, - gUnknown_841B116, - gUnknown_841B11F, - gUnknown_841B11F, - gUnknown_841B130, - gUnknown_841B0B5, - gUnknown_841B141, - gUnknown_841B14B, - gUnknown_841B14B, - gUnknown_841B15A, - gUnknown_841B15A, - gUnknown_841B166, - gUnknown_841B172, - gUnknown_841B180, - gUnknown_841B190, - gUnknown_841B11F, - gUnknown_841B11F, - gUnknown_841B1A3, - gUnknown_841B1B7, - gUnknown_841B1C7, - gUnknown_841B0B5, - gUnknown_841B1DA, - gUnknown_841B1E5, - gUnknown_841B1F4, - gUnknown_841B0B5, - gUnknown_841B200, - gUnknown_841B20E, - gUnknown_841B0B5, - gUnknown_841B21C, - gUnknown_841B226, - gUnknown_841B226, - gUnknown_841B236, - gUnknown_841B0B5, - gUnknown_841B246, - gUnknown_841B25B, - gUnknown_841B25B, - gUnknown_841B268, - gUnknown_841B277 + gQuestLogString_Home, + gQuestLogString_OakResearchLab, + gQuestLogString_Gym, + gQuestLogString_PokemonLeagueGate, + gQuestLogString_PokemonLeagueGate, + gQuestLogString_ViridianForest, + gQuestLogString_ViridianForest, + gQuestLogString_PewterMuseumOfScience, + gQuestLogString_Gym, + gQuestLogString_MtMoon, + gQuestLogString_MtMoon, + gQuestLogString_Gym, + gQuestLogString_BikeShop, + gQuestLogString_BillSHouse, + gQuestLogString_DayCare, + gQuestLogString_UndergroundPath, + gQuestLogString_UndergroundPath, + gQuestLogString_PokemonFanClub, + gQuestLogString_Gym, + gQuestLogString_SSAnne, + gQuestLogString_DiglettSCave, + gQuestLogString_DiglettSCave, + gQuestLogString_RockTunnel, + gQuestLogString_RockTunnel, + gQuestLogString_PowerPlant, + gQuestLogString_PokemonTower, + gQuestLogString_VolunteerHouse, + gQuestLogString_NameRaterSHouse, + gQuestLogString_UndergroundPath, + gQuestLogString_UndergroundPath, + gQuestLogString_CeladonDeptStore, + gQuestLogString_CeladonMansion, + gQuestLogString_RocketGameCorner, + gQuestLogString_Gym, + gQuestLogString_Restaurant, + gQuestLogString_RocketHideout, + gQuestLogString_SafariZone, + gQuestLogString_Gym, + gQuestLogString_WardenSHome, + gQuestLogString_FightingDojo, + gQuestLogString_Gym, + gQuestLogString_SilphCo, + gQuestLogString_SeafoamIslands, + gQuestLogString_SeafoamIslands, + gQuestLogString_PokemonMansion, + gQuestLogString_Gym, + gQuestLogString_PokemonResearchLab, + gQuestLogString_VictoryRoad, + gQuestLogString_VictoryRoad, + gQuestLogString_PokemonLeague, + gQuestLogString_CeruleanCave }; static const u8 *const gUnknown_8456BBC[] = { - gUnknown_841A53A, - gUnknown_841AD9E, - gUnknown_841ADC8, - gUnknown_841ADFF, - gUnknown_841AE1E, - gUnknown_841AE48, - gUnknown_841AEA7, - gUnknown_841AEDC, - gUnknown_841AFD6, - gUnknown_841B005 + gUnknown_841A53A, + gUnknown_841AD9E, + gUnknown_841ADC8, + gUnknown_841ADFF, + gUnknown_841AE1E, + gUnknown_841AE48, + gUnknown_841AEA7, + gUnknown_841AEDC, + gUnknown_841AFD6, + gUnknown_841B005 }; static const u8 gUnknown_8456BE4[] = { - 0x03, - 0x04, - 0x05, - 0x08, - 0x08, - 0x07, - 0x07, - 0x01, - 0x05, - 0x07, - 0x07, - 0x05, - 0x00, - 0x00, - 0x00, - 0x08, - 0x08, - 0x00, - 0x05, - 0x08, - 0x07, - 0x07, - 0x07, - 0x07, - 0x08, - 0x08, - 0x00, - 0x00, - 0x08, - 0x08, - 0x00, - 0x00, - 0x02, - 0x05, - 0x00, - 0x08, - 0x06, - 0x05, - 0x00, - 0x00, - 0x05, - 0x09, - 0x07, - 0x07, - 0x09, - 0x05, - 0x00, - 0x07, - 0x07, - 0x08, - 0x07 + 0x03, + 0x04, + 0x05, + 0x08, + 0x08, + 0x07, + 0x07, + 0x01, + 0x05, + 0x07, + 0x07, + 0x05, + 0x00, + 0x00, + 0x00, + 0x08, + 0x08, + 0x00, + 0x05, + 0x08, + 0x07, + 0x07, + 0x07, + 0x07, + 0x08, + 0x08, + 0x00, + 0x00, + 0x08, + 0x08, + 0x00, + 0x00, + 0x02, + 0x05, + 0x00, + 0x08, + 0x06, + 0x05, + 0x00, + 0x00, + 0x05, + 0x09, + 0x07, + 0x07, + 0x09, + 0x05, + 0x00, + 0x07, + 0x07, + 0x08, + 0x07 }; static const u8 gUnknown_8456C17[] = { - 0x5a, - 0x5b, - 0x5d, - 0x5e, - 0x5f, - 0x62, - 0x60, - 0x59 + 0x5a, + 0x5b, + 0x5d, + 0x5e, + 0x5f, + 0x62, + 0x60, + 0x59 }; static const u8 *const gUnknown_8456C20[] = { - gUnknown_841AC51, - gUnknown_841ABAB, - gUnknown_841ABCD, - gUnknown_841AC2A, - gUnknown_841ABF9, - gUnknown_841AC93, - gUnknown_841ACBC, - gUnknown_841AD69, - gUnknown_841AD1D, - gUnknown_841A90C, - gUnknown_841A8E0, - gUnknown_841AD3C + gUnknown_841AC51, + gUnknown_841ABAB, + gUnknown_841ABCD, + gUnknown_841AC2A, + gUnknown_841ABF9, + gUnknown_841AC93, + gUnknown_841ACBC, + gUnknown_841AD69, + gUnknown_841AD1D, + gUnknown_841A90C, + gUnknown_841A8E0, + gUnknown_841AD3C }; -static u16 * sub_8115280(u16 * a0, const u16 * a1) +static u16 *sub_8115280(u16 *a0, const u16 *a1) { - u16 * r2 = sub_8113DE0(35, a0); + u16 *r2 = sub_8113DE0(35, a0); if (r2 == NULL) return NULL; *((u8 *)r2 + 0) = *((const u8 *)a1 + 0); @@ -4701,11 +4699,11 @@ static u16 * sub_8115280(u16 * a0, const u16 * a1) return r2 + 1; } -static const u16 * sub_81152BC(const u16 * a0) +static const u16 *sub_81152BC(const u16 *a0) { u8 r4, r6; - const u16 * r5 = sub_8113E88(35, a0); - const u8 * r5_2 = (const u8 *)r5 + 0; + const u16 *r5 = sub_8113E88(35, a0); + const u8 *r5_2 = (const u8 *)r5 + 0; r6 = r5_2[1]; sub_80C4DF8(gStringVar1, r5_2[0]); StringCopy(gStringVar2, gUnknown_8456AF0[r6]); @@ -4715,7 +4713,7 @@ static const u16 * sub_81152BC(const u16 * a0) { if (r5_2[0] != gUnknown_8456C17[r4]) continue; - if (FlagGet(0x820 + r4) == TRUE) + if (FlagGet(FLAG_BADGE01_GET + r4) == TRUE) StringExpandPlaceholders(gStringVar4, gUnknown_841AE8F); else StringExpandPlaceholders(gStringVar4, gUnknown_841AE48); @@ -4735,7 +4733,7 @@ void sub_811539C(void) gUnknown_203B04B = TRUE; } -static bool8 sub_81153A8(u16 a0, u16 * a1) +static bool8 sub_81153A8(u16 a0, u16 *a1) { if (a0 != 35) { @@ -4748,7 +4746,7 @@ static bool8 sub_81153A8(u16 a0, u16 * a1) return TRUE; } -static bool8 sub_81153E4(u16 a0, u16 * a1) +static bool8 sub_81153E4(u16 a0, u16 *a1) { if (a0 != 35) return TRUE; @@ -4758,9 +4756,9 @@ static bool8 sub_81153E4(u16 a0, u16 * a1) return TRUE; } -static u16 * sub_8115410(u16 * a0, const u16 * a1) +static u16 *sub_8115410(u16 *a0, const u16 *a1) { - u8 * r3; + u8 *r3; a0 = sub_8113DE0(36, a0); if (a0 == NULL) return NULL; @@ -4775,17 +4773,17 @@ static u16 * sub_8115410(u16 * a0, const u16 * a1) return (u16 *)(r3 + 2); } -static const u16 * sub_8115460(const u16 * a0) +static const u16 *sub_8115460(const u16 *a0) { - const u16 * r4 = sub_8113E88(36, a0); - const u8 * r5 = (const u8 *)r4 + 2; + const u16 *r4 = sub_8113E88(36, a0); + const u8 *r5 = (const u8 *)r4 + 2; QuestLog_AutoGetSpeciesName(r4[0], gStringVar1, 0); if (r5[1] != 0xFF) sub_80C4DF8(gStringVar2, r5[1]); if (r5[0] == 7) { if (r5[1] == 0x58) - StringCopy(gStringVar3, gUnknown_841B09F); + StringCopy(gStringVar3, gQuestLogString_Home); else StringCopy(gStringVar3, gUnknown_8418C1B); } @@ -4793,7 +4791,7 @@ static const u16 * sub_8115460(const u16 * a0) return (const u16 *)(r5 + 2); } -static u16 * sub_81154DC(u16 * a0, const u16 * a1) +static u16 *sub_81154DC(u16 *a0, const u16 *a1) { a0 = sub_8113DE0(37, a0); if (a0 == NULL) @@ -4807,10 +4805,10 @@ static u16 * sub_81154DC(u16 * a0, const u16 * a1) return a0 + 5; } -static const u16 * sub_8115518(const u16 * a0) +static const u16 *sub_8115518(const u16 *a0) { - const u16 * r4 = sub_8113E88(37, a0); - const u8 * r7 = (const u8 *)r4 + 8; + const u16 *r4 = sub_8113E88(37, a0); + const u8 *r7 = (const u8 *)r4 + 8; u32 r6 = (r4[2] << 16) + r4[3]; DynamicPlaceholderTextUtil_Reset(); sub_80C4DF8(gStringVar1, r7[0]); @@ -4827,7 +4825,7 @@ static const u16 * sub_8115518(const u16 * a0) return (const u16 *)(r7 + 2); } -static u16 * sub_81155A4(u16 * a0, const u16 * a1) +static u16 *sub_81155A4(u16 *a0, const u16 *a1) { a0 = sub_8113DE0(38, a0); if (a0 == NULL) @@ -4841,7 +4839,7 @@ static u16 * sub_81155A4(u16 * a0, const u16 * a1) return a0 + 5; } -static const u16 * sub_81155E0(const u16 * a0) { +static const u16 *sub_81155E0(const u16 *a0) { const u16 *r5 = sub_8113E88(38, a0); const u8 *r7 = (const u8 *) r5 + 8; u32 r6 = (r5[2] << 16) + r5[3]; @@ -4873,7 +4871,7 @@ static const u16 * sub_81155E0(const u16 * a0) { return (const u16 *)(r7 + 2); } -static u16 * sub_81156D8(u16 * a0, const u16 * a1) +static u16 *sub_81156D8(u16 *a0, const u16 *a1) { a0 = sub_8113DE0(40, a0); if (a0 == NULL) @@ -4883,10 +4881,10 @@ static u16 * sub_81156D8(u16 * a0, const u16 * a1) return a0 + 2; } -static const u16 * sub_8115700(const u16 * a0) +static const u16 *sub_8115700(const u16 *a0) { - const u16 * r4 = sub_8113E88(40, a0); - const u8 * r5 = (const u8 *)r4 + 2; + const u16 *r4 = sub_8113E88(40, a0); + const u8 *r5 = (const u8 *)r4 + 2; sub_80C4DF8(gStringVar1, r5[0]); StringCopy(gStringVar2, ItemId_GetName(r4[0])); StringExpandPlaceholders(gStringVar4, gUnknown_841B03F); @@ -4913,7 +4911,6 @@ static const u16 gUnknown_8456C50[] = { 0x08a1 }; -#ifdef NONMATCHING void sub_8115748(u16 a0) { s32 i; @@ -4921,60 +4918,22 @@ void sub_8115748(u16 a0) return; for (i = 0; i < 17; i++) { - if (a0 != gUnknown_8456C50[i]) - continue; - if (!FlagGet(a0)) - gUnknown_203B049 = TRUE; - else - gUnknown_203B049 = FALSE; - break; + if (a0 == gUnknown_8456C50[i]) + { + if (!FlagGet(a0)) + { + gUnknown_203B049 = TRUE; + break; + } + else + { + gUnknown_203B049 += 0; + gUnknown_203B049 = FALSE; + break; + } + } } } -#else -NAKED -void sub_8115748(u16 a0) -{ - asm_unified("\tpush {r4,lr}\n" - "\tlsls r0, 16\n" - "\tlsrs r2, r0, 16\n" - "\tldr r0, =gUnknown_203ADFA\n" - "\tldrb r0, [r0]\n" - "\tsubs r0, 0x2\n" - "\tlsls r0, 24\n" - "\tlsrs r0, 24\n" - "\tcmp r0, 0x1\n" - "\tbls _08115792\n" - "\tmovs r1, 0\n" - "\tldr r4, =gUnknown_203B049\n" - "\tldr r0, =gUnknown_8456C50\n" - "\tb _08115778\n" - "\t.pool\n" - "_08115770:\n" - "\tmovs r0, 0\n" - "\tb _08115790\n" - "_08115774:\n" - "\tadds r0, 0x2\n" - "\tadds r1, 0x1\n" - "_08115778:\n" - "\tcmp r1, 0x10\n" - "\tbgt _08115792\n" - "\tldrh r3, [r0]\n" - "\tcmp r2, r3\n" - "\tbne _08115774\n" - "\tadds r0, r2, 0\n" - "\tbl FlagGet\n" - "\tlsls r0, 24\n" - "\tcmp r0, 0\n" - "\tbne _08115770\n" - "\tmovs r0, 0x1\n" - "_08115790:\n" - "\tstrb r0, [r4]\n" - "_08115792:\n" - "\tpop {r4}\n" - "\tpop {r0}\n" - "\tbx r0"); -} -#endif // NONMATCHING void sub_8115798(void) { @@ -4990,7 +4949,7 @@ void sub_8115798(void) } } -static u16 * sub_81157DC(u16 * a0, const u16 * a1) +static u16 *sub_81157DC(u16 *a0, const u16 *a1) { a0 = sub_8113DE0(42, a0); if (a0 == NULL) @@ -4999,15 +4958,15 @@ static u16 * sub_81157DC(u16 * a0, const u16 * a1) return a0 + 1; } -static const u16 * sub_8115800(const u16 * a0) +static const u16 *sub_8115800(const u16 *a0) { - const u16 * r4 = sub_8113E88(42, a0); + const u16 *r4 = sub_8113E88(42, a0); sub_80C4DF8(gStringVar1, r4[0]); StringExpandPlaceholders(gStringVar4, gUnknown_841B064); return r4 + 1; } -void sub_8115834(u8 * a0) +void sub_8115834(u8 *a0) { s32 i; if (*a0++ == EXT_CTRL_CODE_BEGIN && *a0++ == EXT_CTRL_CODE_JPN) diff --git a/src/quest_log_8150454.c b/src/quest_log_8150454.c index 3d61dee72..fbd3b4487 100644 --- a/src/quest_log_8150454.c +++ b/src/quest_log_8150454.c @@ -88,7 +88,7 @@ void sub_8150530(void) else { sub_81507BC(mapObject, sub_805C808(4)); - StartSpriteAnim(sprite, sub_80634F0(mapObject->mapobj_unk_18)); + StartSpriteAnim(sprite, sub_80634F0(mapObject->facingDirection)); } } @@ -103,7 +103,7 @@ void sub_81505C4(u8 taskId) FieldObjectClearAnimIfSpecialAnimActive(mapObject); mapObject->mapobj_bit_11 = TRUE; sub_81507BC(mapObject, sub_805C808(4)); - StartSpriteAnim(sprite, sub_80634F0(mapObject->mapobj_unk_18)); + StartSpriteAnim(sprite, sub_80634F0(mapObject->facingDirection)); gTasks[taskId].data[0]++; gTasks[taskId].data[1] = 0; break; diff --git a/src/quest_log_battle.c b/src/quest_log_battle.c index 2687e4ea5..efe866dea 100644 --- a/src/quest_log_battle.c +++ b/src/quest_log_battle.c @@ -2,6 +2,7 @@ #include "constants/species.h" #include "malloc.h" #include "battle.h" +#include "battle_anim.h" #include "link.h" #include "overworld.h" #include "quest_log.h" @@ -22,11 +23,11 @@ struct QuestLogStruct_WildBattleRecord u8 v4; }; -void sub_812C334(s32 *, s32 *); +static void sub_812C334(s32 *, s32 *); void sub_812BFDC(void) { - if (!(gBattleTypeFlags & (BATTLE_TYPE_LINK | BATTLE_TYPE_OLDMAN_TUTORIAL | BATTLE_TYPE_POKEDUDE)) && (gBattleOutcome == B_OUTCOME_WON || gBattleOutcome == B_OUTCOME_CAUGHT)) + if (!(gBattleTypeFlags & (BATTLE_TYPE_LINK | BATTLE_TYPE_OLD_MAN_TUTORIAL | BATTLE_TYPE_POKEDUDE)) && (gBattleOutcome == B_OUTCOME_WON || gBattleOutcome == B_OUTCOME_CAUGHT)) { struct QuestLogStruct_TrainerBattleRecord * questLogTrainerBattleRecord = Alloc(sizeof(struct QuestLogStruct_TrainerBattleRecord)); struct QuestLogStruct_WildBattleRecord * questLogWildBattleRecord = Alloc(sizeof(struct QuestLogStruct_WildBattleRecord)); @@ -38,18 +39,18 @@ void sub_812BFDC(void) { switch (gTrainers[gTrainerBattleOpponent_A].trainerClass) { - case 0x54: - questLogMessageType = 30; - break; - case 0x5a: - questLogMessageType = 33; - break; - case 0x57: - questLogMessageType = 32; - break; - default: - questLogMessageType = 34; - break; + case 0x54: + questLogMessageType = 30; + break; + case 0x5a: + questLogMessageType = 33; + break; + case 0x57: + questLogMessageType = 32; + break; + default: + questLogMessageType = 34; + break; } questLogTrainerBattleRecord->v0 = gTrainerBattleOpponent_A; if (gBattleTypeFlags & BATTLE_TYPE_DOUBLE) @@ -141,7 +142,7 @@ void sub_812C224(void) } for (r3 = 0; r3 < 7; r3++) { - r5->v1[0][r3] = gLinkPlayers[gBattleStruct->field_B5 ^ 1].name[r3]; + r5->v1[0][r3] = gLinkPlayers[gBattleStruct->multiplayerId ^ 1].name[r3]; } } sub_8113550(r8, (const u16 *)r5); @@ -149,16 +150,16 @@ void sub_812C224(void) } } -void sub_812C334(s32 * a0, s32 * a1) +static void sub_812C334(s32 * a0, s32 * a1) { s32 r5; s32 _optimized_out = 0; - u8 r2 = gLinkPlayers[gBattleStruct->field_B5].id ^ 2; + u8 r2 = gLinkPlayers[gBattleStruct->multiplayerId].id ^ 2; for (r5 = 0; r5 < 4; r5++) { if (r2 == gLinkPlayers[r5].id) a0[0] = r5; - else if (r5 != gBattleStruct->field_B5) + else if (r5 != gBattleStruct->multiplayerId) a1[_optimized_out++] = r5; } } diff --git a/src/renewable_hidden_items.c b/src/renewable_hidden_items.c new file mode 100644 index 000000000..cbaa780e6 --- /dev/null +++ b/src/renewable_hidden_items.c @@ -0,0 +1,609 @@ +#include "global.h" +#include "event_data.h" +#include "random.h" +#include "constants/maps.h" +#include "constants/flags.h" + +struct RenewableHiddenItemData +{ + s8 mapGroup; + s8 mapNum; + u8 filler[2]; + u8 rare[8]; // 10% + u8 uncommon[8]; // 30% + u8 common[8]; // 60% +}; + +static void SampleRenewableItemFlags(void); + +static const struct RenewableHiddenItemData sRenewableHiddenItems[] = { + { + .mapGroup = MAP_GROUP(ROUTE20), + .mapNum = MAP_NUM(ROUTE20), + .rare = { + 0xFF, + 0xFF, + 0xFF, + 0xFF, + 0xFF, + 0xFF, + 0xFF, + 0xFF + }, + .uncommon = { + HIDDEN_ITEM_ROUTE20_STARDUST, + 0xFF, + 0xFF, + 0xFF, + 0xFF, + 0xFF, + 0xFF, + 0xFF + }, + .common = { + 0xFF, + 0xFF, + 0xFF, + 0xFF, + 0xFF, + 0xFF, + 0xFF, + 0xFF + } + }, + { + .mapGroup = MAP_GROUP(ROUTE21_NORTH), + .mapNum = MAP_NUM(ROUTE21_NORTH), + .rare = { + 0xFF, + 0xFF, + 0xFF, + 0xFF, + 0xFF, + 0xFF, + 0xFF, + 0xFF + }, + .uncommon = { + HIDDEN_ITEM_ROUTE21_NORTH_PEARL, + 0xFF, + 0xFF, + 0xFF, + 0xFF, + 0xFF, + 0xFF, + 0xFF + }, + .common = { + 0xFF, + 0xFF, + 0xFF, + 0xFF, + 0xFF, + 0xFF, + 0xFF, + 0xFF + } + }, + { + .mapGroup = MAP_GROUP(UNDERGROUND_PATH_NORTH_SOUTH_TUNNEL), + .mapNum = MAP_NUM(UNDERGROUND_PATH_NORTH_SOUTH_TUNNEL), + .rare = { + HIDDEN_ITEM_UNDERGROUND_PATH_NORTH_SOUTH_TUNNEL_ETHER, + 0xFF, + 0xFF, + 0xFF, + 0xFF, + 0xFF, + 0xFF, + 0xFF + }, + .uncommon = { + HIDDEN_ITEM_UNDERGROUND_PATH_NORTH_SOUTH_TUNNEL_POTION, + HIDDEN_ITEM_UNDERGROUND_PATH_NORTH_SOUTH_TUNNEL_ANTIDOTE, + HIDDEN_ITEM_UNDERGROUND_PATH_NORTH_SOUTH_TUNNEL_PARALYZE_HEAL, + HIDDEN_ITEM_UNDERGROUND_PATH_NORTH_SOUTH_TUNNEL_AWAKENING, + HIDDEN_ITEM_UNDERGROUND_PATH_NORTH_SOUTH_TUNNEL_BURN_HEAL, + HIDDEN_ITEM_UNDERGROUND_PATH_NORTH_SOUTH_TUNNEL_ICE_HEAL, + 0xFF, + 0xFF + }, + .common = { + 0xFF, + 0xFF, + 0xFF, + 0xFF, + 0xFF, + 0xFF, + 0xFF, + 0xFF + } + }, + { + .mapGroup = MAP_GROUP(UNDERGROUND_PATH_EAST_WEST_TUNNEL), + .mapNum = MAP_NUM(UNDERGROUND_PATH_EAST_WEST_TUNNEL), + .rare = { + HIDDEN_ITEM_UNDERGROUND_PATH_EAST_WEST_TUNNEL_ETHER, + 0xFF, + 0xFF, + 0xFF, + 0xFF, + 0xFF, + 0xFF, + 0xFF + }, + .uncommon = { + HIDDEN_ITEM_UNDERGROUND_PATH_EAST_WEST_TUNNEL_POTION, + HIDDEN_ITEM_UNDERGROUND_PATH_EAST_WEST_TUNNEL_ANTIDOTE, + HIDDEN_ITEM_UNDERGROUND_PATH_EAST_WEST_TUNNEL_PARALYZE_HEAL, + HIDDEN_ITEM_UNDERGROUND_PATH_EAST_WEST_TUNNEL_AWAKENING, + HIDDEN_ITEM_UNDERGROUND_PATH_EAST_WEST_TUNNEL_BURN_HEAL, + HIDDEN_ITEM_UNDERGROUND_PATH_EAST_WEST_TUNNEL_ICE_HEAL, + 0xFF, + 0xFF + }, + .common = { + 0xFF, + 0xFF, + 0xFF, + 0xFF, + 0xFF, + 0xFF, + 0xFF, + 0xFF + } + }, + { + .mapGroup = MAP_GROUP(SEVEN_ISLAND_TANOBY_RUINS), + .mapNum = MAP_NUM(SEVEN_ISLAND_TANOBY_RUINS), + .rare = { + HIDDEN_ITEM_SEVEN_ISLAND_TANOBY_RUINS_HEART_SCALE_4, + HIDDEN_ITEM_SEVEN_ISLAND_TANOBY_RUINS_HEART_SCALE, + HIDDEN_ITEM_SEVEN_ISLAND_TANOBY_RUINS_HEART_SCALE_2, + HIDDEN_ITEM_SEVEN_ISLAND_TANOBY_RUINS_HEART_SCALE_3, + 0xFF, + 0xFF, + 0xFF, + 0xFF + }, + .uncommon = { + 0xFF, + 0xFF, + 0xFF, + 0xFF, + 0xFF, + 0xFF, + 0xFF, + 0xFF + }, + .common = { + 0xFF, + 0xFF, + 0xFF, + 0xFF, + 0xFF, + 0xFF, + 0xFF, + 0xFF + } + }, + { + .mapGroup = MAP_GROUP(MT_MOON_B1F), + .mapNum = MAP_NUM(MT_MOON_B1F), + .rare = { + HIDDEN_ITEM_MT_MOON_B1F_TINY_MUSHROOM, + HIDDEN_ITEM_MT_MOON_B1F_TINY_MUSHROOM_2, + HIDDEN_ITEM_MT_MOON_B1F_TINY_MUSHROOM_3, + HIDDEN_ITEM_MT_MOON_B1F_BIG_MUSHROOM, + HIDDEN_ITEM_MT_MOON_B1F_BIG_MUSHROOM_2, + HIDDEN_ITEM_MT_MOON_B1F_BIG_MUSHROOM_3, + 0xFF, + 0xFF + }, + .uncommon = { + HIDDEN_ITEM_MT_MOON_B1F_TINY_MUSHROOM, + HIDDEN_ITEM_MT_MOON_B1F_TINY_MUSHROOM_2, + HIDDEN_ITEM_MT_MOON_B1F_TINY_MUSHROOM_3, + 0xFF, + 0xFF, + 0xFF, + 0xFF, + 0xFF + }, + .common = { + 0xFF, + 0xFF, + 0xFF, + 0xFF, + 0xFF, + 0xFF, + 0xFF, + 0xFF + } + }, + { + .mapGroup = MAP_GROUP(THREE_ISLAND_BERRY_FOREST), + .mapNum = MAP_NUM(THREE_ISLAND_BERRY_FOREST), + .rare = { + HIDDEN_ITEM_THREE_ISLAND_BERRY_FOREST_BLUK_BERRY, + HIDDEN_ITEM_THREE_ISLAND_BERRY_FOREST_WEPEAR_BERRY, + HIDDEN_ITEM_THREE_ISLAND_BERRY_FOREST_ORAN_BERRY, + HIDDEN_ITEM_THREE_ISLAND_BERRY_FOREST_CHERI_BERRY, + HIDDEN_ITEM_THREE_ISLAND_BERRY_FOREST_ASPEAR_BERRY, + HIDDEN_ITEM_THREE_ISLAND_BERRY_FOREST_PERSIM_BERRY, + HIDDEN_ITEM_THREE_ISLAND_BERRY_FOREST_PINAP_BERRY, + HIDDEN_ITEM_THREE_ISLAND_BERRY_FOREST_LUM_BERRY + }, + .uncommon = { + HIDDEN_ITEM_THREE_ISLAND_BERRY_FOREST_BLUK_BERRY, + HIDDEN_ITEM_THREE_ISLAND_BERRY_FOREST_WEPEAR_BERRY, + HIDDEN_ITEM_THREE_ISLAND_BERRY_FOREST_ORAN_BERRY, + HIDDEN_ITEM_THREE_ISLAND_BERRY_FOREST_CHERI_BERRY, + HIDDEN_ITEM_THREE_ISLAND_BERRY_FOREST_ASPEAR_BERRY, + HIDDEN_ITEM_THREE_ISLAND_BERRY_FOREST_PERSIM_BERRY, + HIDDEN_ITEM_THREE_ISLAND_BERRY_FOREST_PINAP_BERRY, + 0xFF + }, + .common = { + HIDDEN_ITEM_THREE_ISLAND_BERRY_FOREST_RAZZ_BERRY, + HIDDEN_ITEM_THREE_ISLAND_BERRY_FOREST_NANAB_BERRY, + HIDDEN_ITEM_THREE_ISLAND_BERRY_FOREST_CHESTO_BERRY, + HIDDEN_ITEM_THREE_ISLAND_BERRY_FOREST_PECHA_BERRY, + HIDDEN_ITEM_THREE_ISLAND_BERRY_FOREST_RAWST_BERRY, + 0xFF, + 0xFF, + 0xFF + } + }, + { + .mapGroup = MAP_GROUP(ONE_ISLAND_TREASURE_BEACH), + .mapNum = MAP_NUM(ONE_ISLAND_TREASURE_BEACH), + .rare = { + HIDDEN_ITEM_ONE_ISLAND_TREASURE_BEACH_ULTRA_BALL, + HIDDEN_ITEM_ONE_ISLAND_TREASURE_BEACH_ULTRA_BALL_2, + HIDDEN_ITEM_ONE_ISLAND_TREASURE_BEACH_STAR_PIECE, + HIDDEN_ITEM_ONE_ISLAND_TREASURE_BEACH_BIG_PEARL, + 0xFF, + 0xFF, + 0xFF, + 0xFF + }, + .uncommon = { + HIDDEN_ITEM_ONE_ISLAND_TREASURE_BEACH_STARDUST, + HIDDEN_ITEM_ONE_ISLAND_TREASURE_BEACH_STARDUST_2, + HIDDEN_ITEM_ONE_ISLAND_TREASURE_BEACH_PEARL, + HIDDEN_ITEM_ONE_ISLAND_TREASURE_BEACH_PEARL_2, + HIDDEN_ITEM_ONE_ISLAND_TREASURE_BEACH_ULTRA_BALL, + HIDDEN_ITEM_ONE_ISLAND_TREASURE_BEACH_ULTRA_BALL_2, + 0xFF, + 0xFF + }, + .common = { + HIDDEN_ITEM_ONE_ISLAND_TREASURE_BEACH_ULTRA_BALL, + HIDDEN_ITEM_ONE_ISLAND_TREASURE_BEACH_ULTRA_BALL_2, + 0xFF, + 0xFF, + 0xFF, + 0xFF, + 0xFF, + 0xFF + } + }, + { + .mapGroup = MAP_GROUP(THREE_ISLAND_BOND_BRIDGE), + .mapNum = MAP_NUM(THREE_ISLAND_BOND_BRIDGE), + .rare = { + 0xFF, + 0xFF, + 0xFF, + 0xFF, + 0xFF, + 0xFF, + 0xFF, + 0xFF + }, + .uncommon = { + HIDDEN_ITEM_THREE_ISLAND_BOND_BRIDGE_PEARL, + HIDDEN_ITEM_THREE_ISLAND_BOND_BRIDGE_STARDUST, + 0xFF, + 0xFF, + 0xFF, + 0xFF, + 0xFF, + 0xFF + }, + .common = { + 0xFF, + 0xFF, + 0xFF, + 0xFF, + 0xFF, + 0xFF, + 0xFF, + 0xFF + } + }, + { + .mapGroup = MAP_GROUP(FOUR_ISLAND), + .mapNum = MAP_NUM(FOUR_ISLAND), + .rare = { + 0xFF, + 0xFF, + 0xFF, + 0xFF, + 0xFF, + 0xFF, + 0xFF, + 0xFF + }, + .uncommon = { + HIDDEN_ITEM_FOUR_ISLAND_PEARL, + 0xFF, + 0xFF, + 0xFF, + 0xFF, + 0xFF, + 0xFF, + 0xFF + }, + .common = { + HIDDEN_ITEM_FOUR_ISLAND_ULTRA_BALL, + 0xFF, + 0xFF, + 0xFF, + 0xFF, + 0xFF, + 0xFF, + 0xFF + } + }, + { + .mapGroup = MAP_GROUP(FIVE_ISLAND_MEMORIAL_PILLAR), + .mapNum = MAP_NUM(FIVE_ISLAND_MEMORIAL_PILLAR), + .rare = { + HIDDEN_ITEM_FIVE_ISLAND_MEMORIAL_PILLAR_BIG_PEARL, + 0xFF, + 0xFF, + 0xFF, + 0xFF, + 0xFF, + 0xFF, + 0xFF + }, + .uncommon = { + 0xFF, + 0xFF, + 0xFF, + 0xFF, + 0xFF, + 0xFF, + 0xFF, + 0xFF + }, + .common = { + 0xFF, + 0xFF, + 0xFF, + 0xFF, + 0xFF, + 0xFF, + 0xFF, + 0xFF + } + }, + { + .mapGroup = MAP_GROUP(FIVE_ISLAND_RESORT_GORGEOUS), + .mapNum = MAP_NUM(FIVE_ISLAND_RESORT_GORGEOUS), + .rare = { + HIDDEN_ITEM_FIVE_ISLAND_RESORT_GORGEOUS_NEST_BALL, + HIDDEN_ITEM_FIVE_ISLAND_RESORT_GORGEOUS_STAR_PIECE, + 0xFF, + 0xFF, + 0xFF, + 0xFF, + 0xFF, + 0xFF + }, + .uncommon = { + HIDDEN_ITEM_FIVE_ISLAND_RESORT_GORGEOUS_STARDUST, + HIDDEN_ITEM_FIVE_ISLAND_RESORT_GORGEOUS_STARDUST_2, + 0xFF, + 0xFF, + 0xFF, + 0xFF, + 0xFF, + 0xFF + }, + .common = { + 0xFF, + 0xFF, + 0xFF, + 0xFF, + 0xFF, + 0xFF, + 0xFF, + 0xFF + } + }, + { + .mapGroup = MAP_GROUP(SIX_ISLAND_OUTCAST_ISLAND), + .mapNum = MAP_NUM(SIX_ISLAND_OUTCAST_ISLAND), + .rare = { + HIDDEN_ITEM_SIX_ISLAND_OUTCAST_ISLAND_STAR_PIECE, + HIDDEN_ITEM_SIX_ISLAND_OUTCAST_ISLAND_NET_BALL, + 0xFF, + 0xFF, + 0xFF, + 0xFF, + 0xFF, + 0xFF + }, + .uncommon = { + 0xFF, + 0xFF, + 0xFF, + 0xFF, + 0xFF, + 0xFF, + 0xFF, + 0xFF + }, + .common = { + 0xFF, + 0xFF, + 0xFF, + 0xFF, + 0xFF, + 0xFF, + 0xFF, + 0xFF + } + }, + { + .mapGroup = MAP_GROUP(SIX_ISLAND_GREEN_PATH), + .mapNum = MAP_NUM(SIX_ISLAND_GREEN_PATH), + .rare = { + 0xFF, + 0xFF, + 0xFF, + 0xFF, + 0xFF, + 0xFF, + 0xFF, + 0xFF + }, + .uncommon = { + 0xFF, + 0xFF, + 0xFF, + 0xFF, + 0xFF, + 0xFF, + 0xFF, + 0xFF + }, + .common = { + HIDDEN_ITEM_SIX_ISLAND_GREEN_PATH_ULTRA_BALL, + 0xFF, + 0xFF, + 0xFF, + 0xFF, + 0xFF, + 0xFF, + 0xFF + } + }, + { + .mapGroup = MAP_GROUP(SEVEN_ISLAND_TRAINER_TOWER), + .mapNum = MAP_NUM(SEVEN_ISLAND_TRAINER_TOWER), + .rare = { + HIDDEN_ITEM_SEVEN_ISLAND_TRAINER_TOWER_BIG_PEARL, + 0xFF, + 0xFF, + 0xFF, + 0xFF, + 0xFF, + 0xFF, + 0xFF + }, + .uncommon = { + HIDDEN_ITEM_SEVEN_ISLAND_TRAINER_TOWER_PEARL, + 0xFF, + 0xFF, + 0xFF, + 0xFF, + 0xFF, + 0xFF, + 0xFF + }, + .common = { + 0xFF, + 0xFF, + 0xFF, + 0xFF, + 0xFF, + 0xFF, + 0xFF, + 0xFF + } + }, +}; + +bool32 sub_815D834(void) +{ + // Stubbed out? + return FALSE; +} + +void SetAllRenewableItemFlags(void) +{ + u8 i, j; + + for (i = 0; i < 15; i++) + { + const u8 * rare = sRenewableHiddenItems[i].rare; + const u8 * uncommon = sRenewableHiddenItems[i].uncommon; + const u8 * common = sRenewableHiddenItems[i].common; + for (j = 0; j < 8; j++) + { + if (rare[j] != 0xFF) + FlagSet(FLAG_HIDDEN_ITEMS_START + rare[j]); + if (uncommon[j] != 0xFF) + FlagSet(FLAG_HIDDEN_ITEMS_START + uncommon[j]); + if (common[j] != 0xFF) + FlagSet(FLAG_HIDDEN_ITEMS_START + common[j]); + } + } +} + +void IncrementRenewableHiddenItemStepCounter(void) +{ + u16 var = VarGet(VAR_RENEWABLE_ITEM_STEP_COUNTER); + if (var < 1500) + { + VarSet(VAR_RENEWABLE_ITEM_STEP_COUNTER, var + 1); + } +} + +void TryRegenerateRenewableHiddenItems(void) +{ + u8 i; + u8 found_map = 0xFF; + for (i = 0; i < 15; i++) + { + if (sRenewableHiddenItems[i].mapGroup == gSaveBlock1Ptr->location.mapGroup && sRenewableHiddenItems[i].mapNum == gSaveBlock1Ptr->location.mapNum) + found_map = i; + } + + if (found_map == 0xFF) + return; + if (VarGet(VAR_RENEWABLE_ITEM_STEP_COUNTER) >= 1500) + { + VarSet(VAR_RENEWABLE_ITEM_STEP_COUNTER, 0); + SetAllRenewableItemFlags(); + SampleRenewableItemFlags(); + } +} + +static void SampleRenewableItemFlags(void) +{ + u8 i, j; + const u8 * flags; + u16 rval; + + for (i = 0; i < 15; i++) + { + rval = Random() % 100; + if (rval >= 90) + flags = sRenewableHiddenItems[i].rare; + else if (rval >= 60) + flags = sRenewableHiddenItems[i].uncommon; + else + flags = sRenewableHiddenItems[i].common; + for (j = 0; j < 8; j++) + { + if (flags[j] != 0xFF) + FlagClear(FLAG_HIDDEN_ITEMS_START + flags[j]); + } + } +} diff --git a/src/reshow_battle_screen.c b/src/reshow_battle_screen.c index 6dd743176..5ab38e461 100644 --- a/src/reshow_battle_screen.c +++ b/src/reshow_battle_screen.c @@ -211,7 +211,7 @@ static bool8 LoadBattlerSpriteGfx(u8 battler) } else if (gBattleTypeFlags & BATTLE_TYPE_SAFARI && battler == B_POSITION_PLAYER_LEFT) // Should be checking position, not battler. DecompressTrainerBackPalette(gSaveBlock2Ptr->playerGender, battler); - else if (gBattleTypeFlags & BATTLE_TYPE_OLDMAN_TUTORIAL && battler == B_POSITION_PLAYER_LEFT) // Should be checking position, not battler. + else if (gBattleTypeFlags & BATTLE_TYPE_OLD_MAN_TUTORIAL && battler == B_POSITION_PLAYER_LEFT) // Should be checking position, not battler. DecompressTrainerBackPalette(5, battler); else if (!gBattleSpritesDataPtr->battlerData[battler].behindSubstitute) BattleLoadPlayerMonSpriteGfx(&gPlayerParty[gBattlerPartyIndexes[battler]], battler); @@ -256,7 +256,7 @@ static void CreateBattlerSprite(u8 battler) gSprites[gBattlerSpriteIds[battler]].callback = SpriteCallbackDummy; gSprites[gBattlerSpriteIds[battler]].data[0] = battler; } - else if (gBattleTypeFlags & BATTLE_TYPE_OLDMAN_TUTORIAL && battler == B_POSITION_PLAYER_LEFT) + else if (gBattleTypeFlags & BATTLE_TYPE_OLD_MAN_TUTORIAL && battler == B_POSITION_PLAYER_LEFT) { SetMultiuseSpriteTemplateToTrainerBack(5, GetBattlerPosition(0)); gBattlerSpriteIds[battler] = CreateSprite(&gMultiuseSpriteTemplate, 0x50, @@ -292,7 +292,7 @@ static void CreateHealthboxSprite(u8 battler) if (gBattleTypeFlags & BATTLE_TYPE_SAFARI && battler == B_POSITION_PLAYER_LEFT) healthboxSpriteId = CreateSafariPlayerHealthboxSprites(); - else if (gBattleTypeFlags & BATTLE_TYPE_OLDMAN_TUTORIAL && battler == B_POSITION_PLAYER_LEFT) + else if (gBattleTypeFlags & BATTLE_TYPE_OLD_MAN_TUTORIAL && battler == B_POSITION_PLAYER_LEFT) return; else healthboxSpriteId = CreateBattlerHealthboxSprites(battler); diff --git a/src/scrcmd.c b/src/scrcmd.c index ae994fceb..9675a132e 100644 --- a/src/scrcmd.c +++ b/src/scrcmd.c @@ -50,15 +50,15 @@ extern const u8 *const gStdScriptsEnd[]; static bool8 sub_806B93C(struct ScriptContext * ctx); static u8 sub_806B96C(struct ScriptContext * ctx); -EWRAM_DATA ptrdiff_t gVScriptOffset = 0; -EWRAM_DATA u8 gUnknown_20370AC = 0; -EWRAM_DATA u16 sPauseCounter = 0; -EWRAM_DATA u16 sMovingNpcId = 0; -EWRAM_DATA u16 sMovingNpcMapBank = 0; -EWRAM_DATA u16 sMovingNpcMapId = 0; -EWRAM_DATA u16 sFieldEffectScriptId = 0; +static EWRAM_DATA ptrdiff_t gVScriptOffset = 0; +static EWRAM_DATA u8 gUnknown_20370AC = 0; +static EWRAM_DATA u16 sPauseCounter = 0; +static EWRAM_DATA u16 sMovingNpcId = 0; +static EWRAM_DATA u16 sMovingNpcMapBank = 0; +static EWRAM_DATA u16 sMovingNpcMapId = 0; +static EWRAM_DATA u16 sFieldEffectScriptId = 0; -IWRAM_DATA struct ScriptContext * gUnknown_3005070; +struct ScriptContext * gUnknown_3005070; extern u8 gSelectedEventObject; @@ -1263,8 +1263,8 @@ bool8 ScrCmd_release(struct ScriptContext *ctx) bool8 ScrCmd_textcolor(struct ScriptContext *ctx) { - gUnknown_20370DC = gUnknown_20370DA; - gUnknown_20370DA = ScriptReadByte(ctx); + gSpecialVar_PrevTextColor = gSpecialVar_TextColor; + gSpecialVar_TextColor = ScriptReadByte(ctx); return FALSE; } @@ -1835,7 +1835,7 @@ bool8 ScrCmd_showmoneybox(struct ScriptContext *ctx) u8 y = ScriptReadByte(ctx); u8 ignore = ScriptReadByte(ctx); - if (!ignore && sub_81119D4(sub_809D6D4) != TRUE) + if (!ignore && QuestLog_SchedulePlaybackCB(QLPlaybackCB_DestroyScriptMenuMonPicSprites) != TRUE) DrawMoneyBox(GetMoney(&gSaveBlock1Ptr->money), x, y); return FALSE; } @@ -1865,7 +1865,7 @@ bool8 ScrCmd_showcoinsbox(struct ScriptContext *ctx) u8 x = ScriptReadByte(ctx); u8 y = ScriptReadByte(ctx); - if (sub_81119D4(sub_809D6D4) != TRUE) + if (QuestLog_SchedulePlaybackCB(QLPlaybackCB_DestroyScriptMenuMonPicSprites) != TRUE) ShowCoinsWindow(GetCoins(), x, y); return FALSE; } @@ -1916,7 +1916,7 @@ bool8 ScrCmd_checktrainerflag(struct ScriptContext *ctx) { u16 index = VarGet(ScriptReadHalfword(ctx)); - ctx->comparisonResult = HasTrainerAlreadyBeenFought(index); + ctx->comparisonResult = HasTrainerBeenFought(index); return FALSE; } diff --git a/src/script_menu.c b/src/script_menu.c new file mode 100644 index 000000000..b3826322b --- /dev/null +++ b/src/script_menu.c @@ -0,0 +1,1293 @@ +#include "global.h" +#include "palette.h" +#include "text.h" +#include "menu.h" +#include "task.h" +#include "sound.h" +#include "script_menu.h" +#include "quest_log.h" +#include "window.h" +#include "new_menu_helpers.h" +#include "event_data.h" +#include "script.h" +#include "strings.h" +#include "string_util.h" +#include "field_effect.h" +#include "event_scripts.h" +#include "constants/songs.h" +#include "constants/species.h" +#include "constants/seagallop.h" +#include "constants/menu.h" + +struct MultichoiceListStruct +{ + const struct MenuAction * list; + u8 count; +}; + +static EWRAM_DATA u8 sDelay = 0; + +static void DrawVerticalMultichoiceMenu(u8 left, u8 top, u8 mcId, u8 ignoreBpress, u8 initPos); +static u8 GetMCWindowHeight(u8 count); +static void CreateMCMenuInputHandlerTask(u8 ignoreBpress, u8 count, u8 windowId, u8 mcId); +static void Task_MultichoiceMenu_HandleInput(u8 taskId); +static void MultiChoicePrintHelpDescription(u8 mcId); +static void Task_YesNoMenu_HandleInput(u8 taskId); +static void Hask_MultichoiceGridMenu_HandleInput(u8 taskId); +static void CreatePCMenuWindow(void); +static bool8 PicboxWait(void); +static void DestroyScriptMenuWindow(u8 windowId); +static u8 CreateWindowFromRect(u8 left, u8 top, u8 width, u8 height); + + +static const struct MenuAction sScriptMultiChoiceMenu_YesNo[] = { + { gText_Yes }, + { gText_No } +}; + +static const struct MenuAction sScriptMultiChoiceMenu_TrainerCardIconTint[] = { + { gText_Normal }, + { gText_Black }, + { gText_Pink }, + { gText_Sepia } +}; + +static const struct MenuAction sScriptMultiChoiceMenu_HOF_Quit[] = { + { gText_HallOfFame }, + { gText_Quit } +}; + +static const struct MenuAction sScriptMultiChoiceMenu_Eggs_Quit[] = { + { gText_Eggs }, + { gText_Quit } +}; + +static const struct MenuAction sScriptMultiChoiceMenu_Victories_Quit[] = { + { gText_Victories }, + { gText_Quit } +}; + +static const struct MenuAction sScriptMultiChoiceMenu_HOF_Eggs_Quit[] = { + { gText_HallOfFame }, + { gText_Eggs }, + { gText_Quit } +}; + +static const struct MenuAction sScriptMultiChoiceMenu_HOF_Victories_Quit[] = { + { gText_HallOfFame }, + { gText_Victories }, + { gText_Quit } +}; + +static const struct MenuAction sScriptMultiChoiceMenu_Eggs_Victories_Quit[] = { + { gText_Eggs }, + { gText_Victories }, + { gText_Quit } +}; + +static const struct MenuAction sScriptMultiChoiceMenu_HOF_Eggs_Victories_Quit[] = { + { gText_HallOfFame }, + { gText_Eggs }, + { gText_Victories }, + { gText_Quit } +}; + +static const struct MenuAction sScriptMultiChoiceMenu_TrainerSchoolWhiteboard[] = { + { gText_Slp }, + { gText_Psn }, + { gText_Par }, + { gText_Brn }, + { gText_Frz }, + { gOtherText_Exit } +}; + +static const struct MenuAction sScriptMultiChoiceMenu_YesNoInfo[] = { + { gText_Yes }, + { gText_No }, + { gText_Info } +}; + +static const struct MenuAction sScriptMultiChoiceMenu_SingleDoubleMultiInfoExit[] = { + { gText_SingleBattle }, + { gText_DoubleBattle }, + { gText_MultiBattle }, + { gText_Info }, + { gOtherText_Exit } +}; + +static const struct MenuAction sScriptMultiChoiceMenu_YesNoInfo2[] = { + { gText_Yes }, + { gText_No }, + { gText_Info } +}; + +static const struct MenuAction sScriptMultiChoiceMenu_ChallengeInfoExit[] = { + { gText_MakeAChallenge }, + { gText_Info_2 }, + { gOtherText_Exit } +}; + +static const struct MenuAction sScriptMultiChoiceMenu_RooftopB1F[] = { + { gText_Rooftop }, + { gText_B1F }, + { gOtherText_Exit } +}; + +static const struct MenuAction sScriptMultiChoiceMenu_Helix[] = { + { gText_HelixFossil }, + { gOtherText_Exit } +}; + +static const struct MenuAction sScriptMultiChoiceMenu_Dome[] = { + { gText_DomeFossil }, + { gOtherText_Exit } +}; + +static const struct MenuAction sScriptMultiChoiceMenu_Amber[] = { + { gText_OldAmber }, + { gOtherText_Exit } +}; + +static const struct MenuAction sScriptMultiChoiceMenu_HelixAmber[] = { + { gText_HelixFossil }, + { gText_OldAmber }, + { gOtherText_Exit } +}; + +static const struct MenuAction sScriptMultiChoiceMenu_DomeAmber[] = { + { gText_DomeFossil }, + { gText_OldAmber }, + { gOtherText_Exit } +}; + +static const struct MenuAction sScriptMultiChoiceMenu_CeladonVendingMachine[] = { + { gText_FreshWater_200 }, + { gText_SodaPop_300 }, + { gText_Lemonade_350 }, + { gOtherText_Exit } +}; + +static const struct MenuAction sScriptMultiChoiceMenu_GameCornerTMPrizes[] = { + { gText_Tm13_4000Coins }, + { gText_Tm23_3500Coins }, + { gText_Tm24_4000Coins }, + { gText_Tm30_4500Coins }, + { gText_Tm35_4000Coins }, + { gText_NoThanks_2 } +}; + +static const struct MenuAction sScriptMultiChoiceMenu_GameCornerBattleItemPrizes[] = { + { gText_SmokeBall_800Coins }, + { gText_MiracleSeed_1000Coins }, + { gText_Charcoal_1000Coins }, + { gText_MysticWater_1000Coins }, + { gText_YellowFlute_1600Coins }, + { gText_NoThanks_2 } +}; + +static const struct MenuAction sScriptMultiChoiceMenu_GameCornerCoinPurchaseCounter[] = { + { gText_50Coins_1000 }, + { gText_500Coins_10000 }, + { gOtherText_Exit } +}; + +static const struct MenuAction sScriptMultiChoiceMenu_Excellent_NotSoBad[] = { + { gText_Excellent }, + { gText_NotSoBad } +}; + +static const struct MenuAction sScriptMultiChoiceMenu_RightLeft[] = { + { gText_Right }, + { gText_Left } +}; + +static const struct MenuAction sScriptMultiChoiceMenu_DeptStoreElevator[] = { + { gText_5F_2 }, + { gText_4F_2 }, + { gText_3F_2 }, + { gText_2F_2 }, + { gText_1F_2 }, + { gOtherText_Exit } +}; + +static const struct MenuAction sScriptMultiChoiceMenu_ThirstyGirlFreshWater[] = { + { gText_FreshWater }, + { gOtherText_Exit } +}; + +static const struct MenuAction sScriptMultiChoiceMenu_ThirstyGirlSodaPop[] = { + { gText_SodaPop }, + { gOtherText_Exit } +}; + +static const struct MenuAction sScriptMultiChoiceMenu_ThirstyGirlFreshWaterSodaPop[] = { + { gText_FreshWater }, + { gText_SodaPop }, + { gOtherText_Exit } +}; + +static const struct MenuAction sScriptMultiChoiceMenu_ThirstyGirlLemonade[] = { + { gText_Lemonade }, + { gOtherText_Exit } +}; + +static const struct MenuAction sScriptMultiChoiceMenu_ThirstyGirlFreshWaterLemonade[] = { + { gText_FreshWater }, + { gText_Lemonade }, + { gOtherText_Exit } +}; + +static const struct MenuAction sScriptMultiChoiceMenu_ThirstyGirlSodaPopLemonade[] = { + { gText_SodaPop }, + { gText_Lemonade }, + { gOtherText_Exit } +}; + +static const struct MenuAction sScriptMultiChoiceMenu_ThirstyGirlFreshWaterSodaPopLemonade[] = { + { gText_FreshWater }, + { gText_SodaPop }, + { gText_Lemonade }, + { gOtherText_Exit } +}; + +static const struct MenuAction sScriptMultiChoiceMenu_Unref_Shards_0[] = { + { gText_GreenShard }, + { gOtherText_Exit } +}; + +static const struct MenuAction sScriptMultiChoiceMenu_Unref_Shards_1[] = { + { gText_RedShard }, + { gText_GreenShard }, + { gOtherText_Exit } +}; + +static const struct MenuAction sScriptMultiChoiceMenu_Unref_Shards_2[] = { + { gText_YellowShard }, + { gText_GreenShard }, + { gOtherText_Exit } +}; + +static const struct MenuAction sScriptMultiChoiceMenu_Unref_Shards_3[] = { + { gText_RedShard }, + { gText_YellowShard }, + { gText_GreenShard }, + { gOtherText_Exit } +}; + +static const struct MenuAction sScriptMultiChoiceMenu_Unref_Shards_4[] = { + { gText_BlueShard }, + { gText_GreenShard }, + { gOtherText_Exit } +}; + +static const struct MenuAction sScriptMultiChoiceMenu_Unref_Shards_5[] = { + { gText_RedShard }, + { gText_BlueShard }, + { gText_GreenShard }, + { gOtherText_Exit } +}; + +static const struct MenuAction sScriptMultiChoiceMenu_Unref_Shards_6[] = { + { gText_YellowShard }, + { gText_BlueShard }, + { gText_GreenShard }, + { gOtherText_Exit } +}; + +static const struct MenuAction sScriptMultiChoiceMenu_Unref_Shards_7[] = { + { gText_RedShard }, + { gText_YellowShard }, + { gText_BlueShard }, + { gText_GreenShard }, + { gOtherText_Exit } +}; + +static const struct MenuAction sScriptMultiChoiceMenu_Eeveelutions[] = { + { gText_Eevee }, + { gText_Flareon }, + { gText_Jolteon }, + { gText_Vaporeon }, + { gText_QuitLooking } +}; + +static const struct MenuAction sScriptMultiChoiceMenu_BikeShop[] = { + { gText_Bicycle_1000000 }, + { gText_NoThanks } +}; + +static const struct MenuAction sScriptMultiChoiceMenu_GameCornerPokemonPrizes[] = { + { gText_Abra_180Coins }, + { gText_Clefairy_500Coins }, + { gText_Dratini_2800Coins }, + { gText_Scyther_5500Coins }, + { gText_Porygon_9999Coins }, + { gText_NoThanks_2 } +}; + +static const struct MenuAction sScriptMultiChoiceMenu_TradeCenter_Colosseum[] = { + { gText_TradeCenter }, + { gText_Colosseum }, + { gOtherText_Exit } +}; + +static const struct MenuAction sScriptMultiChoiceMenu_Link_Wireless[] = { + { gText_GameLinkCable }, + { gText_Wireless }, + { gOtherText_Exit } +}; + +static const struct MenuAction sScriptMultiChoiceMenu_RocketHideoutElevator[] = { + { gText_B1F }, + { gText_B2F }, + { gText_B4F }, + { gOtherText_Exit } +}; + +static const struct MenuAction sScriptMultiChoiceMenu_LinkedDirectUnion[] = { + { gText_LinkedGamePlay }, + { gText_DirectCorner }, + { gText_UnionRoom }, + { gOtherText_Quit } +}; + +static const struct MenuAction sScriptMultiChoiceMenu_Island23[] = { + { gText_TwoIsland }, + { gText_ThreeIsland }, + { gOtherText_Exit } +}; + +static const struct MenuAction sScriptMultiChoiceMenu_Island13[] = { + { gText_OneIsland }, + { gText_ThreeIsland }, + { gOtherText_Exit } +}; + +static const struct MenuAction sScriptMultiChoiceMenu_Island12[] = { + { gText_OneIsland }, + { gText_TwoIsland }, + { gOtherText_Exit } +}; + +static const struct MenuAction sScriptMultiChoiceMenu_TradeColosseumCrush[] = { + { gText_TradeCenter }, + { gText_Colosseum_2 }, + { gText_BerryCrush }, + { gOtherText_Exit } +}; + +static const struct MenuAction sScriptMultiChoiceMenu_48[] = { + { gText_Dummy_8417E66 }, + { gText_Dummy_8417E67 }, + { gOtherText_Exit } +}; + +static const struct MenuAction sScriptMultiChoiceMenu_TradeColosseum_2[] = { + { gText_TradeCenter }, + { gText_Colosseum_2 }, + { gOtherText_Exit } +}; + +static const struct MenuAction sScriptMultiChoiceMenu_PokejumpDodrio[] = { + { gText_PokemonJump }, + { gText_DodrioBerryPicking }, + { gOtherText_Exit } +}; + +static const struct MenuAction sScriptMultiChoiceMenu_Mushrooms[] = { + { gText_2Tinymushrooms }, + { gText_1BigMushroom } +}; + +static const struct MenuAction sScriptMultiChoiceMenu_TradeColosseumBlankCrush[] = { + { gText_TradeCenter }, + { gText_Colosseum_2 }, + { gText_Dummy_8417E71 }, + { gText_BerryCrush }, + { gOtherText_Exit } +}; + +static const struct MenuAction sScriptMultiChoiceMenu_TradeColosseumBlank[] = { + { gText_TradeCenter }, + { gText_Colosseum_2 }, + { gText_Dummy_8417E71 }, + { gOtherText_Exit } +}; + +static const struct MenuAction sScriptMultiChoiceMenu_SeviiNavel[] = { + { gText_SeviiIslands }, + { gText_NavelRock }, + { gOtherText_Exit } +}; + +static const struct MenuAction sScriptMultiChoiceMenu_SeviiBirth[] = { + { gText_SeviiIslands }, + { gText_BirthIsland }, + { gOtherText_Exit } +}; + +static const struct MenuAction sScriptMultiChoiceMenu_SeviiNavelBirth[] = { + { gText_SeviiIslands }, + { gText_NavelRock }, + { gText_BirthIsland }, + { gOtherText_Exit } +}; + +static const struct MenuAction sScriptMultiChoiceMenu_Seagallop123[] = { + { gText_OneIsland }, + { gText_TwoIsland }, + { gText_ThreeIsland }, + { gOtherText_Exit } +}; + +static const struct MenuAction sScriptMultiChoiceMenu_SeagallopV23[] = { + { gText_Vermilion }, + { gText_TwoIsland }, + { gText_ThreeIsland }, + { gOtherText_Exit } +}; + +static const struct MenuAction sScriptMultiChoiceMenu_SeagallopV13[] = { + { gText_Vermilion }, + { gText_OneIsland }, + { gText_ThreeIsland }, + { gOtherText_Exit } +}; + +static const struct MenuAction sScriptMultiChoiceMenu_SeagallopV12[] = { + { gText_Vermilion }, + { gText_OneIsland }, + { gText_TwoIsland }, + { gOtherText_Exit } +}; + +static const struct MenuAction sScriptMultiChoiceMenu_SeagallopVermilion[] = { + { gText_Vermilion }, + { gOtherText_Exit } +}; + +static const struct MenuAction sScriptMultiChoiceMenu_62[] = { + { gText_Dummy_8417F68 }, + { gText_Dummy_8417F67 }, + { gOtherText_Exit } +}; + +static const struct MenuAction sScriptMultiChoiceMenu_JoinOrLead[] = { + { gText_JoinGroup }, + { gText_BecomeLeader }, + { gOtherText_Exit } +}; + +static const struct MenuAction sScriptMultiChoiceMenu_TrainerTowerMode[] = { + { gOtherText_Single }, + { gOtherText_Double }, + { gOtherText_Knockout }, + { gOtherText_Mixed }, + { gOtherText_Exit } +}; + +static const struct MenuAction sScriptMultiChoiceMenu_Exit[] = { + { gOtherText_Exit } +}; + +const struct MultichoiceListStruct gScriptMultiChoiceMenus[] = { + { sScriptMultiChoiceMenu_YesNo, NELEMS(sScriptMultiChoiceMenu_YesNo) }, + { sScriptMultiChoiceMenu_Eeveelutions, NELEMS(sScriptMultiChoiceMenu_Eeveelutions) }, + { sScriptMultiChoiceMenu_TrainerCardIconTint, NELEMS(sScriptMultiChoiceMenu_TrainerCardIconTint) }, + { sScriptMultiChoiceMenu_HOF_Quit, NELEMS(sScriptMultiChoiceMenu_HOF_Quit) }, + { sScriptMultiChoiceMenu_Eggs_Quit, NELEMS(sScriptMultiChoiceMenu_Eggs_Quit) }, + { sScriptMultiChoiceMenu_Victories_Quit, NELEMS(sScriptMultiChoiceMenu_Victories_Quit) }, + { sScriptMultiChoiceMenu_HOF_Eggs_Quit, NELEMS(sScriptMultiChoiceMenu_HOF_Eggs_Quit) }, + { sScriptMultiChoiceMenu_HOF_Victories_Quit, NELEMS(sScriptMultiChoiceMenu_HOF_Victories_Quit) }, + { sScriptMultiChoiceMenu_Eggs_Victories_Quit, NELEMS(sScriptMultiChoiceMenu_Eggs_Victories_Quit) }, + { sScriptMultiChoiceMenu_HOF_Eggs_Victories_Quit, NELEMS(sScriptMultiChoiceMenu_HOF_Eggs_Victories_Quit) }, + { sScriptMultiChoiceMenu_Exit, NELEMS(sScriptMultiChoiceMenu_Exit) }, + { sScriptMultiChoiceMenu_Exit, NELEMS(sScriptMultiChoiceMenu_Exit) }, + { sScriptMultiChoiceMenu_Exit, NELEMS(sScriptMultiChoiceMenu_Exit) }, + { sScriptMultiChoiceMenu_BikeShop, NELEMS(sScriptMultiChoiceMenu_BikeShop) }, + { sScriptMultiChoiceMenu_GameCornerPokemonPrizes, NELEMS(sScriptMultiChoiceMenu_GameCornerPokemonPrizes) }, + { sScriptMultiChoiceMenu_TrainerSchoolWhiteboard, NELEMS(sScriptMultiChoiceMenu_TrainerSchoolWhiteboard) }, + { sScriptMultiChoiceMenu_YesNoInfo, NELEMS(sScriptMultiChoiceMenu_YesNoInfo) }, + { sScriptMultiChoiceMenu_SingleDoubleMultiInfoExit, NELEMS(sScriptMultiChoiceMenu_SingleDoubleMultiInfoExit) }, + { sScriptMultiChoiceMenu_YesNoInfo2, NELEMS(sScriptMultiChoiceMenu_YesNoInfo2) }, + { sScriptMultiChoiceMenu_ChallengeInfoExit, NELEMS(sScriptMultiChoiceMenu_ChallengeInfoExit) }, + { sScriptMultiChoiceMenu_RooftopB1F, NELEMS(sScriptMultiChoiceMenu_RooftopB1F) }, + { sScriptMultiChoiceMenu_Helix, NELEMS(sScriptMultiChoiceMenu_Helix) }, + { sScriptMultiChoiceMenu_Dome, NELEMS(sScriptMultiChoiceMenu_Dome) }, + { sScriptMultiChoiceMenu_Amber, NELEMS(sScriptMultiChoiceMenu_Amber) }, + { sScriptMultiChoiceMenu_HelixAmber, NELEMS(sScriptMultiChoiceMenu_HelixAmber) }, + { sScriptMultiChoiceMenu_DomeAmber, NELEMS(sScriptMultiChoiceMenu_DomeAmber) }, + { sScriptMultiChoiceMenu_CeladonVendingMachine, NELEMS(sScriptMultiChoiceMenu_CeladonVendingMachine) }, + { sScriptMultiChoiceMenu_GameCornerCoinPurchaseCounter, NELEMS(sScriptMultiChoiceMenu_GameCornerCoinPurchaseCounter) }, + { sScriptMultiChoiceMenu_Excellent_NotSoBad, NELEMS(sScriptMultiChoiceMenu_Excellent_NotSoBad) }, + { sScriptMultiChoiceMenu_RightLeft, NELEMS(sScriptMultiChoiceMenu_RightLeft) }, + { sScriptMultiChoiceMenu_GameCornerTMPrizes, NELEMS(sScriptMultiChoiceMenu_GameCornerTMPrizes) }, + { sScriptMultiChoiceMenu_DeptStoreElevator, NELEMS(sScriptMultiChoiceMenu_DeptStoreElevator) }, + { sScriptMultiChoiceMenu_ThirstyGirlFreshWater, NELEMS(sScriptMultiChoiceMenu_ThirstyGirlFreshWater) }, + { sScriptMultiChoiceMenu_ThirstyGirlSodaPop, NELEMS(sScriptMultiChoiceMenu_ThirstyGirlSodaPop) }, + { sScriptMultiChoiceMenu_ThirstyGirlFreshWaterSodaPop, NELEMS(sScriptMultiChoiceMenu_ThirstyGirlFreshWaterSodaPop) }, + { sScriptMultiChoiceMenu_ThirstyGirlLemonade, NELEMS(sScriptMultiChoiceMenu_ThirstyGirlLemonade) }, + { sScriptMultiChoiceMenu_ThirstyGirlFreshWaterLemonade, NELEMS(sScriptMultiChoiceMenu_ThirstyGirlFreshWaterLemonade) }, + { sScriptMultiChoiceMenu_ThirstyGirlSodaPopLemonade, NELEMS(sScriptMultiChoiceMenu_ThirstyGirlSodaPopLemonade) }, + { sScriptMultiChoiceMenu_ThirstyGirlFreshWaterSodaPopLemonade, NELEMS(sScriptMultiChoiceMenu_ThirstyGirlFreshWaterSodaPopLemonade) }, + { sScriptMultiChoiceMenu_TradeCenter_Colosseum, NELEMS(sScriptMultiChoiceMenu_TradeCenter_Colosseum) }, + { sScriptMultiChoiceMenu_Link_Wireless, NELEMS(sScriptMultiChoiceMenu_Link_Wireless) }, + { sScriptMultiChoiceMenu_GameCornerBattleItemPrizes, NELEMS(sScriptMultiChoiceMenu_GameCornerBattleItemPrizes) }, + { sScriptMultiChoiceMenu_RocketHideoutElevator, NELEMS(sScriptMultiChoiceMenu_RocketHideoutElevator) }, + { sScriptMultiChoiceMenu_LinkedDirectUnion, NELEMS(sScriptMultiChoiceMenu_LinkedDirectUnion) }, + { sScriptMultiChoiceMenu_Island23, NELEMS(sScriptMultiChoiceMenu_Island23) }, + { sScriptMultiChoiceMenu_Island13, NELEMS(sScriptMultiChoiceMenu_Island13) }, + { sScriptMultiChoiceMenu_Island12, NELEMS(sScriptMultiChoiceMenu_Island12) }, + { sScriptMultiChoiceMenu_TradeColosseumCrush, NELEMS(sScriptMultiChoiceMenu_TradeColosseumCrush) }, + { sScriptMultiChoiceMenu_48, NELEMS(sScriptMultiChoiceMenu_48) }, + { sScriptMultiChoiceMenu_PokejumpDodrio, NELEMS(sScriptMultiChoiceMenu_PokejumpDodrio) }, + { sScriptMultiChoiceMenu_TradeColosseum_2, NELEMS(sScriptMultiChoiceMenu_TradeColosseum_2) }, + { sScriptMultiChoiceMenu_Mushrooms, NELEMS(sScriptMultiChoiceMenu_Mushrooms) }, + { sScriptMultiChoiceMenu_TradeColosseumBlankCrush, NELEMS(sScriptMultiChoiceMenu_TradeColosseumBlankCrush) }, + { sScriptMultiChoiceMenu_TradeColosseumBlank, NELEMS(sScriptMultiChoiceMenu_TradeColosseumBlank) }, + { sScriptMultiChoiceMenu_SeviiNavel, NELEMS(sScriptMultiChoiceMenu_SeviiNavel) }, + { sScriptMultiChoiceMenu_SeviiBirth, NELEMS(sScriptMultiChoiceMenu_SeviiBirth) }, + { sScriptMultiChoiceMenu_SeviiNavelBirth, NELEMS(sScriptMultiChoiceMenu_SeviiNavelBirth) }, + { sScriptMultiChoiceMenu_Seagallop123, NELEMS(sScriptMultiChoiceMenu_Seagallop123) }, + { sScriptMultiChoiceMenu_SeagallopV23, NELEMS(sScriptMultiChoiceMenu_SeagallopV23) }, + { sScriptMultiChoiceMenu_SeagallopV13, NELEMS(sScriptMultiChoiceMenu_SeagallopV13) }, + { sScriptMultiChoiceMenu_SeagallopV12, NELEMS(sScriptMultiChoiceMenu_SeagallopV12) }, + { sScriptMultiChoiceMenu_SeagallopVermilion, NELEMS(sScriptMultiChoiceMenu_SeagallopVermilion) }, + { sScriptMultiChoiceMenu_62, NELEMS(sScriptMultiChoiceMenu_62) }, + { sScriptMultiChoiceMenu_JoinOrLead, NELEMS(sScriptMultiChoiceMenu_JoinOrLead) }, + { sScriptMultiChoiceMenu_TrainerTowerMode, NELEMS(sScriptMultiChoiceMenu_TrainerTowerMode) } +}; + +const u8 *const gStdStringPtrs[] = { + gText_Cool, + gText_Beauty, + gText_Cute, + gText_Smart, + gText_Tough, + gText_Cool_2, + gText_Beauty_2, + gText_Cute_2, + gText_Smart_2, + gText_Tough_2, + gText_Items, + gText_KeyItems, + gText_PokeBalls, + gText_TmsgUnknown_8417B2CHms, + gText_Berries, + gText_Boulderbadge, + gText_Cascadebadge, + gText_Thunderbadge, + gText_Rainbowbadge, + gText_Soulbadge, + gText_Marshbadge, + gText_Volcanobadge, + gText_Earthbadge, + gText_Coins_2, + gText_ItemsPocket, + gText_KeyItemsPocket, + gText_PokeBallsPocket, + gText_TmCase, + gText_BerryPouch_2 +}; + +static const u8 *const sDescriptionPtrs_CableClub_TradeBattleCancel[] = { + Text_1BC388, + Text_1BC3C7, + Text_1BCB42 +}; + +static const u8 *const sDescriptionPtrs_WirelessCenter_TradeBattleCrushCancel[] = { + Text_1BCA95, + Text_1BCACB, + Text_1BCAF2, + Text_1BCB42 +}; + +static const u8 *const sDescriptionPtrs_WirelessCenter_TradeBattleCancel[] = { + Text_1BCA95, + Text_1BCACB, + Text_1BCB42 +}; + +static const union AnimCmd sMuseumFossilAnim0[] = { + ANIMCMD_FRAME(0, 10), + ANIMCMD_END +}; + +static const union AnimCmd *const sMuseumFossilAnimCmdTable[] = { + sMuseumFossilAnim0 +}; + +static const struct OamData sMuseumFossilOamData = { + .shape = SPRITE_SHAPE(64x64), + .size = SPRITE_SIZE(64x64) +}; + +static const struct SpriteTemplate sMuseumFossilSprTemplate = { + .tileTag = 7000, + .paletteTag = 0xFFFF, + .oam = &sMuseumFossilOamData, + .anims = sMuseumFossilAnimCmdTable, + .affineAnims = gDummySpriteAffineAnimTable, + .callback = SpriteCallbackDummy +}; + +static const u16 sMuseumAerodactylSprTiles[] = INCBIN_U16("data/script_menu/aerodactyl_fossil.4bpp"); +static const u16 sMuseumAerodactylSprPalette[] = INCBIN_U16("data/script_menu/aerodactyl_fossil.gbapal"); +static const u16 sMuseumKabutopsSprTiles[] = INCBIN_U16("data/script_menu/kabutops_fossil.4bpp"); +static const u16 sMuseumKabutopsSprPalette[] = INCBIN_U16("data/script_menu/kabutops_fossil.gbapal"); + +static const struct SpriteSheet sMuseumKabutopsSprSheets[] = { + {sMuseumKabutopsSprTiles, 0x800, 7000}, + {} +}; + +static const struct SpriteSheet sMuseumAerodactylSprSheets[] = { + {sMuseumAerodactylSprTiles, 0x800, 7000}, + {} +}; + + +static const u8 *const sSeagallopDestStrings[] = { + gText_Vermilion, + gText_OneIsland, + gText_TwoIsland, + gText_ThreeIsland, + gText_FourIsland, + gText_FiveIsland, + gText_SixIsland, + gText_SevenIsland +}; + +static u16 GetStringTilesWide(const u8 *str) +{ + return (GetStringWidth(1, str, 0) + 7) / 8; +} + +static u8 GetMenuWidthFromList(const struct MenuAction * items, u8 count) +{ + u16 i; + u8 width = GetStringTilesWide(items[0].text); + u8 tmp; + + for (i = 1; i < count; i++) + { + tmp = GetStringTilesWide(items[i].text); + if (width < tmp) + width = tmp; + } + return width; +} + +bool8 ScriptMenu_Multichoice(u8 left, u8 top, u8 mcId, u8 ignoreBpress) +{ + if (FuncIsActiveTask(Task_MultichoiceMenu_HandleInput) == TRUE) + return FALSE; + gSpecialVar_Result = SCR_MENU_UNSET; + DrawVerticalMultichoiceMenu(left, top, mcId, ignoreBpress, 0); + return TRUE; +} + +bool8 ScriptMenu_MultichoiceWithDefault(u8 left, u8 top, u8 mcId, u8 ignoreBpress, u8 cursorPos) +{ + if (FuncIsActiveTask(Task_MultichoiceMenu_HandleInput) == TRUE) + return FALSE; + gSpecialVar_Result = SCR_MENU_UNSET; + DrawVerticalMultichoiceMenu(left, top, mcId, ignoreBpress, cursorPos); + return TRUE; +} + +static void DrawVerticalMultichoiceMenu(u8 left, u8 top, u8 mcId, u8 ignoreBpress, u8 initPos) +{ + s32 i; + s32 strWidth; + s32 tmp; + u8 width; + u8 height; + u8 count; + u8 windowId; + const struct MenuAction * list; + + if ((ignoreBpress & 2) || QuestLog_SchedulePlaybackCB(QLPlaybackCB_DestroyScriptMenuMonPicSprites) != TRUE) + { + ignoreBpress &= 1; + count = gScriptMultiChoiceMenus[mcId].count; + list = gScriptMultiChoiceMenus[mcId].list; + strWidth = 0; + for (i = 0; i < count; i++) + { + tmp = GetStringWidth(2, list[i].text, 0); + if (tmp > strWidth) + strWidth = tmp; + } + width = (strWidth + 9) / 8 + 1; + if (left + width > 28) + left = 28 - width; + height = GetMCWindowHeight(count); + windowId = CreateWindowFromRect(left, top, width, height); + SetStdWindowBorderStyle(windowId, FALSE); + if (mcId == 30 || mcId == 13 || mcId == 41) + MultichoiceList_PrintItems(windowId, 2, 8, 2, 14, count, list, 0, 2); + else + MultichoiceList_PrintItems(windowId, 2, 8, 2, 14, count, list, 0, 2); + Menu_InitCursor(windowId, 2, 0, 2, 14, count, initPos); + CreateMCMenuInputHandlerTask(ignoreBpress, count, windowId, mcId); + ScheduleBgCopyTilemapToVram(0); + } +} + +static u8 GetMCWindowHeight(u8 count) +{ + switch (count) + { + case 0: + return 1; + case 1: + return 2; + case 2: + return 4; + case 3: + return 6; + case 4: + return 7; + case 5: + return 9; + case 6: + return 11; + case 7: + return 13; + case 8: + return 14; + default: + return 1; + } +} + +static void CreateMCMenuInputHandlerTask(u8 ignoreBpress, u8 count, u8 windowId, u8 mcId) +{ + u8 taskId; + if (mcId == 39 || mcId == 47 || mcId == 50) + sDelay = 12; + else + sDelay = 0; + taskId = CreateTask(Task_MultichoiceMenu_HandleInput, 80); + gTasks[taskId].data[4] = ignoreBpress; + if (count > 3) + gTasks[taskId].data[5] = TRUE; + else + gTasks[taskId].data[5] = FALSE; + gTasks[taskId].data[6] = windowId; + gTasks[taskId].data[7] = mcId; + MultiChoicePrintHelpDescription(mcId); +} + +static void Task_MultichoiceMenu_HandleInput(u8 taskId) +{ + s16 *data = gTasks[taskId].data; + s8 input; + if (!gPaletteFade.active) + { + if (sDelay != 0) + sDelay--; + else + { + if (data[5] == FALSE) + input = Menu_ProcessInputNoWrapAround(); + else + input = Menu_ProcessInput(); + if (JOY_NEW(DPAD_UP | DPAD_DOWN)) + MultiChoicePrintHelpDescription(data[7]); + switch (input) + { + case -2: + return; + case -1: + if (data[4]) + return; + PlaySE(SE_SELECT); + gSpecialVar_Result = SCR_MENU_CANCEL; + break; + default: + gSpecialVar_Result = input; + break; + } + DestroyScriptMenuWindow(data[6]); + DestroyTask(taskId); + EnableBothScriptContexts(); + } + } +} + +static void MultiChoicePrintHelpDescription(u8 mcId) +{ + switch (mcId) + { + case 39: + FillWindowPixelBuffer(0, PIXEL_FILL(1)); + AddTextPrinterParameterized2(0, 2, sDescriptionPtrs_CableClub_TradeBattleCancel[Menu_GetCursorPos()], 0, NULL, 2, 1, 3); + break; + case 47: + FillWindowPixelBuffer(0, PIXEL_FILL(1)); + AddTextPrinterParameterized2(0, 2, sDescriptionPtrs_WirelessCenter_TradeBattleCrushCancel[Menu_GetCursorPos()], 0, NULL, 2, 1, 3); + break; + case 50: + FillWindowPixelBuffer(0, PIXEL_FILL(1)); + AddTextPrinterParameterized2(0, 2, sDescriptionPtrs_WirelessCenter_TradeBattleCancel[Menu_GetCursorPos()], 0, NULL, 2, 1, 3); + break; + } +} + +bool8 ScriptMenu_YesNo(u8 unused, u8 stuff) +{ + if (FuncIsActiveTask(Task_YesNoMenu_HandleInput) == TRUE) + return FALSE; + gSpecialVar_Result = SCR_MENU_UNSET; + if (!QuestLog_SchedulePlaybackCB(QLPlaybackCB_DestroyScriptMenuMonPicSprites)) + { + DisplayYesNoMenuDefaultYes(); + CreateTask(Task_YesNoMenu_HandleInput, 80); + } + return TRUE; +} + +bool8 sub_809CE38(void) +{ + if (gSpecialVar_Result == SCR_MENU_UNSET) + return FALSE; + else + return TRUE; +} + +static void Task_YesNoMenu_HandleInput(u8 taskId) +{ + s8 input; + if (gTasks[taskId].data[2] < 5) + { + gTasks[taskId].data[2]++; + } + else + { + input = Menu_ProcessInputNoWrapClearOnChoose(); + switch (input) + { + case -2: + return; + case -1: + case 1: + PlaySE(SE_SELECT); + gSpecialVar_Result = FALSE; + break; + case 0: + gSpecialVar_Result = TRUE; + break; + } + DestroyTask(taskId); + EnableBothScriptContexts(); + } +} + +bool8 ScriptMenu_MultichoiceGrid(u8 left, u8 top, u8 multichoiceId, u8 a4, u8 columnCount) +{ + const struct MenuAction * list; + u8 count; + u8 width; + u8 rowCount; + u8 taskId; + if (FuncIsActiveTask(Hask_MultichoiceGridMenu_HandleInput) == TRUE) + return FALSE; + gSpecialVar_Result = SCR_MENU_UNSET; + if (QuestLog_SchedulePlaybackCB(QLPlaybackCB_DestroyScriptMenuMonPicSprites) != TRUE) + { + list = gScriptMultiChoiceMenus[multichoiceId].list; + count = gScriptMultiChoiceMenus[multichoiceId].count; + width = GetMenuWidthFromList(list, count) + 1; + rowCount = count / columnCount; + taskId = CreateTask(Hask_MultichoiceGridMenu_HandleInput, 80); + gTasks[taskId].data[4] = a4; + gTasks[taskId].data[6] = CreateWindowFromRect(left, top, width * columnCount, rowCount * 2); + SetStdWindowBorderStyle(gTasks[taskId].data[6], FALSE); + MultichoiceGrid_PrintItems(gTasks[taskId].data[6], 1, width * 8, 16, columnCount, rowCount, list); + MultichoiceGrid_InitCursor(gTasks[taskId].data[6], 1, 0, 1, width * 8, columnCount, rowCount, 0); + ScheduleBgCopyTilemapToVram(0); + } + return TRUE; +} + +static void Hask_MultichoiceGridMenu_HandleInput(u8 taskId) +{ + s16 *data = gTasks[taskId].data; + s8 input = Menu_ProcessInputGridLayout(); + switch (input) + { + case -2: + return; + case -1: + if (data[4]) + return; + PlaySE(SE_SELECT); + gSpecialVar_Result = SCR_MENU_CANCEL; + break; + default: + gSpecialVar_Result = input; + break; + } + DestroyScriptMenuWindow(data[6]); + DestroyTask(taskId); + EnableBothScriptContexts(); +} + +bool8 ScrSpecial_CreatePCMenu(void) +{ + if (FuncIsActiveTask(Task_MultichoiceMenu_HandleInput) == TRUE) + return FALSE; + gSpecialVar_Result = SCR_MENU_UNSET; + CreatePCMenuWindow(); + return TRUE; +} + +static void CreatePCMenuWindow(void) +{ + u8 cursorWidth = GetMenuCursorDimensionByFont(2, 0); + u8 height = GetFontAttribute(2, FONTATTR_MAX_LETTER_HEIGHT); + u8 windowWidth; + u8 nitems; + u8 windowId; + switch (GetStringTilesWide(gText_SPc)) + { + default: + if (FlagGet(FLAG_SYS_POKEDEX_GET)) + windowWidth = 14; + else + windowWidth = 13; + break; + case 9: + case 10: + windowWidth = 14; + break; + } + if (FlagGet(FLAG_SYS_GAME_CLEAR)) + { + nitems = 5; + windowId = CreateWindowFromRect(0, 0, windowWidth, 10); + SetStdWindowBorderStyle(windowId, FALSE); + AddTextPrinterParameterized(windowId, 2, gText_ProfOakSPc, cursorWidth, 34, 0xFF, NULL); + AddTextPrinterParameterized(windowId, 2, gText_HallOfFame_2, cursorWidth, 50, 0xFF, NULL); + AddTextPrinterParameterized(windowId, 2, gText_LogOff, cursorWidth, 66, 0xFF, NULL); + } + else + { + if (FlagGet(FLAG_SYS_POKEDEX_GET)) + nitems = 4; + else + nitems = 3; + windowId = CreateWindowFromRect(0, 0, windowWidth, nitems * 2); + SetStdWindowBorderStyle(windowId, FALSE); + if (FlagGet(FLAG_SYS_POKEDEX_GET)) + AddTextPrinterParameterized(windowId, 2, gText_ProfOakSPc, cursorWidth, 34, 0xFF, NULL); + AddTextPrinterParameterized(windowId, 2, gText_LogOff, cursorWidth, 2 + 16 * (nitems - 1), 0xFF, NULL); + } + if (FlagGet(FLAG_SYS_NOT_SOMEONES_PC)) + AddTextPrinterParameterized(windowId, 2, gText_BillSPc, cursorWidth, 2 , 0xFF, NULL); + else + AddTextPrinterParameterized(windowId, 2, gText_SomeoneSPc, cursorWidth, 2 , 0xFF, NULL); + StringExpandPlaceholders(gStringVar4, gText_SPc); + Menu_PrintFormatIntlPlayerName(windowId, gStringVar4, cursorWidth, 18); + Menu_InitCursor(windowId, 2, 0, 2, 16, nitems, 0); + CreateMCMenuInputHandlerTask(FALSE, nitems, windowId, 0xFF); + ScheduleBgCopyTilemapToVram(0); +} + +void ScriptMenu_DisplayPCStartupPrompt(void) +{ + sub_80F7768(0, TRUE); + AddTextPrinterParameterized2(0, 2, gUnknown_81A508A, 0, NULL, 2, 1, 3); +} + +static void Task_ScriptShowMonPic(u8 taskId) +{ + struct Task * task = &gTasks[taskId]; + switch (task->data[0]) + { + case 0: + task->data[0]++; + break; + case 1: + break; + case 2: + sub_8083A5C(&gSprites[task->data[2]], task->data[2]); + task->data[0]++; + break; + case 3: + DestroyScriptMenuWindow(task->data[5]); + DestroyTask(taskId); + break; + } +} + +bool8 ScriptMenu_ShowPokemonPic(u16 species, u8 x, u8 y) +{ + u8 spriteId; + u8 taskId; + if (QuestLog_SchedulePlaybackCB(QLPlaybackCB_DestroyScriptMenuMonPicSprites) == TRUE) + return TRUE; + if (FindTaskIdByFunc(Task_ScriptShowMonPic) != 0xFF) + return FALSE; + spriteId = sub_8083970(species, 8 * x + 40, 8 * y + 40, FALSE); + taskId = CreateTask(Task_ScriptShowMonPic, 80); + gTasks[taskId].data[5] = CreateWindowFromRect(x, y, 8, 8); + gTasks[taskId].data[0] = 0; + gTasks[taskId].data[1] = species; + gTasks[taskId].data[2] = spriteId; + gSprites[spriteId].callback = SpriteCallbackDummy; + gSprites[spriteId].oam.priority = 0; + SetStdWindowBorderStyle(gTasks[taskId].data[5], TRUE); + ScheduleBgCopyTilemapToVram(0); + return TRUE; +} + +bool8 (*ScriptMenu_GetPicboxWaitFunc(void))(void) +{ + u8 taskId = FindTaskIdByFunc(Task_ScriptShowMonPic); + if (taskId == 0xFF) + return NULL; + gTasks[taskId].data[0]++; + return PicboxWait; +} + +static bool8 PicboxWait(void) +{ + if (FindTaskIdByFunc(Task_ScriptShowMonPic) == 0xFF) + return TRUE; + else + return FALSE; +} + +void sub_809D424(void) +{ + u8 taskId = FindTaskIdByFunc(Task_ScriptShowMonPic); + struct Task * task; + if (taskId != 0xFF) + { + task = &gTasks[taskId]; + switch (task->data[0]) + { + case 0: + case 1: + case 2: + sub_8083A5C(&gSprites[task->data[2]], task->data[2]); + DestroyScriptMenuWindow(task->data[5]); + DestroyTask(taskId); + break; + case 3: + DestroyScriptMenuWindow(task->data[5]); + DestroyTask(taskId); + break; + } + } +} + +void Task_WaitMuseumFossilPic(u8 taskId) +{ + struct Task * task = &gTasks[taskId]; + switch (task->data[0]) + { + case 0: + task->data[0]++; + break; + case 1: + break; + case 2: + DestroySprite(&gSprites[task->data[2]]); + FreeSpriteTilesByTag(7000); + task->data[0]++; + break; + case 3: + DestroyScriptMenuWindow(task->data[5]); + DestroyTask(taskId); + break; + } +} + +bool8 Special_OpenMuseumFossilPic(void) +{ + u8 spriteId; + u8 taskId; + if (QuestLog_SchedulePlaybackCB(QLPlaybackCB_DestroyScriptMenuMonPicSprites) == TRUE) + return TRUE; + if (FindTaskIdByFunc(Task_WaitMuseumFossilPic) != 0xFF) + return FALSE; + if (gSpecialVar_0x8004 == SPECIES_KABUTOPS) + { + LoadSpriteSheets(sMuseumKabutopsSprSheets); + LoadPalette(sMuseumKabutopsSprPalette, 0x1D0, 0x20); + } + else if (gSpecialVar_0x8004 == SPECIES_AERODACTYL) + { + LoadSpriteSheets(sMuseumAerodactylSprSheets); + LoadPalette(sMuseumAerodactylSprPalette, 0x1D0, 0x20); + } + else + { + return FALSE; + } + spriteId = CreateSprite(&sMuseumFossilSprTemplate, gSpecialVar_0x8005 * 8 + 40, gSpecialVar_0x8006 * 8 + 40, 0); + gSprites[spriteId].oam.paletteNum = 13; + taskId = CreateTask(Task_WaitMuseumFossilPic, 80); + gTasks[taskId].data[5] = CreateWindowFromRect(gSpecialVar_0x8005, gSpecialVar_0x8006, 8, 8); + gTasks[taskId].data[0] = 0; + gTasks[taskId].data[2] = spriteId; + SetStdWindowBorderStyle(gTasks[taskId].data[5], TRUE); + ScheduleBgCopyTilemapToVram(0); + return TRUE; +} + +bool8 Special_CloseMuseumFossilPic(void) +{ + u8 taskId = FindTaskIdByFunc(Task_WaitMuseumFossilPic); + if (taskId == 0xFF) + return FALSE; + gTasks[taskId].data[0]++; + return TRUE; +} + +static u8 CreateWindowFromRect(u8 left, u8 top, u8 width, u8 height) +{ + struct WindowTemplate template = SetWindowTemplateFields(0, left + 1, top + 1, width, height, 15, 0x038); + u8 windowId = AddWindow(&template); + PutWindowTilemap(windowId); + return windowId; +} + +static void DestroyScriptMenuWindow(u8 windowId) +{ + ClearWindowTilemap(windowId); + ClearStdWindowAndFrameToTransparent(windowId, TRUE); + RemoveWindow(windowId); +} + +void QLPlaybackCB_DestroyScriptMenuMonPicSprites(void) +{ + u8 taskId; + s16 *data; + ScriptContext1_SetupScript(EventScript_1A7AE0); + taskId = FindTaskIdByFunc(Task_ScriptShowMonPic); + if (taskId != 0xFF) + { + data = gTasks[taskId].data; + if (data[0] < 2) + sub_8083A5C(&gSprites[data[2]], data[2]); + } + taskId = FindTaskIdByFunc(Task_WaitMuseumFossilPic); + if (taskId != 0xFF) + { + data = gTasks[taskId].data; + if (data[0] < 2) + { + DestroySprite(&gSprites[data[2]]); + FreeSpriteTilesByTag(7000); + } + } +} + +void Special_DrawSeagallopDestinationMenu(void) +{ + // 8004 = Starting location + // 8005 = Page (0: Verm, One, Two, Three, Four, Other, Exit; 1: Four, Five, Six, Seven, Other, Exit) + u8 r4; + u8 top; + u8 nitems; + u8 cursorWidth; + u8 fontHeight; + u8 windowId; + u8 i; + gSpecialVar_Result = SCR_MENU_UNSET; + if (QuestLog_SchedulePlaybackCB(QLPlaybackCB_DestroyScriptMenuMonPicSprites) != TRUE) + { + if (gSpecialVar_0x8005 == 1) + { + if (gSpecialVar_0x8004 < SEAGALLOP_FIVE_ISLAND) + r4 = SEAGALLOP_FIVE_ISLAND; + else + r4 = SEAGALLOP_FOUR_ISLAND; + nitems = 5; + top = 2; + } + else + { + r4 = SEAGALLOP_VERMILION_CITY; + nitems = 6; + top = 0; + } + cursorWidth = GetMenuCursorDimensionByFont(2, 0); + fontHeight = GetFontAttribute(2, FONTATTR_MAX_LETTER_HEIGHT); + windowId = CreateWindowFromRect(17, top, 11, nitems * 2); + SetStdWindowBorderStyle(windowId, FALSE); + for (i = 0; i < nitems - 2; i++) + { + if (r4 != gSpecialVar_0x8004) + AddTextPrinterParameterized(windowId, 2, sSeagallopDestStrings[r4], cursorWidth, i * 16 + 2, 0xFF, NULL); + else + i--; + r4++; + if (r4 == SEAGALLOP_CINNABAR_ISLAND) + r4 = SEAGALLOP_VERMILION_CITY; + } + AddTextPrinterParameterized(windowId, 2, gText_Other, cursorWidth, i * 16 + 2, 0xFF, NULL); + i++; + AddTextPrinterParameterized(windowId, 2, gOtherText_Exit, cursorWidth, i * 16 + 2, 0xFF, NULL); + Menu_InitCursor(windowId, 2, 0, 2, 16, nitems, 0); + CreateMCMenuInputHandlerTask(FALSE, nitems, windowId, 0xFF); + ScheduleBgCopyTilemapToVram(0); + } +} + +u16 Special_GetSelectedSeagallopDestination(void) +{ + // 8004 = Starting location + // 8005 = Page (0: Verm, One, Two, Three, Four, Other, Exit; 1: Four, Five, Six, Seven, Other, Exit) + if (gSpecialVar_Result == SCR_MENU_CANCEL) + return SCR_MENU_CANCEL; + if (gSpecialVar_0x8005 == 1) + { + if (gSpecialVar_Result == 3) + { + return SEAGALLOP_MORE; + } + else if (gSpecialVar_Result == 4) + { + return SCR_MENU_CANCEL; + } + else if (gSpecialVar_Result == 0) + { + if (gSpecialVar_0x8004 > SEAGALLOP_FOUR_ISLAND) + return SEAGALLOP_FOUR_ISLAND; + else + return SEAGALLOP_FIVE_ISLAND; + } + else if (gSpecialVar_Result == 1) + { + if (gSpecialVar_0x8004 > SEAGALLOP_FIVE_ISLAND) + return SEAGALLOP_FIVE_ISLAND; + else + return SEAGALLOP_SIX_ISLAND; + } + else if (gSpecialVar_Result == 2) + { + if (gSpecialVar_0x8004 > SEAGALLOP_SIX_ISLAND) + return SEAGALLOP_SIX_ISLAND; + else + return SEAGALLOP_SEVEN_ISLAND; + } + } + else + { + if (gSpecialVar_Result == 4) + return SEAGALLOP_MORE; + else if (gSpecialVar_Result == 5) + return SCR_MENU_CANCEL; + else if (gSpecialVar_Result >= gSpecialVar_0x8004) + return gSpecialVar_Result + 1; + else + return gSpecialVar_Result; + } + return SEAGALLOP_VERMILION_CITY; +} diff --git a/src/seagallop.c b/src/seagallop.c index 006a356e4..cf07f9880 100644 --- a/src/seagallop.c +++ b/src/seagallop.c @@ -25,13 +25,13 @@ static EWRAM_DATA void * sBg3TilemapBuffer = NULL; -static void CB2_SetUpSeaGallopScene(void); +static void CB2_SetUpSeagallopScene(void); static void VBlankCB_SeaGallop(void); static void MainCB2_SeaGallop(void); -static void Task_SeaGallop_0(u8 taskId); -static void Task_SeaGallop_1(u8 taskId); -static void Task_SeaGallop_2(u8 taskId); -static void Task_SeaGallop_3(void); +static void Task_Seagallop_0(u8 taskId); +static void Task_Seagallop_1(u8 taskId); +static void Task_Seagallop_2(u8 taskId); +static void Task_Seagallop_3(void); static void ResetGPU(void); static void ResetAllAssets(void); static void SetDispcnt(void); @@ -64,7 +64,7 @@ static const struct BgTemplate sBGTemplates[] = { } }; -static const s8 sSeaGallopSpawnTable[][4] = { +static const s8 sSeag[][4] = { // Map X Y [SEAGALLOP_VERMILION_CITY] = {MAP(VERMILION_CITY), 0x17, 0x20}, [SEAGALLOP_ONE_ISLAND] = {MAP(ONE_ISLAND_HARBOR), 0x08, 0x05}, @@ -176,14 +176,14 @@ static const struct SpriteTemplate sWakeSpriteTemplate = { SpriteCB_Wake }; -void ScrSpecial_SeaGallopFerry(void) +void ScrSpecial_SeagallopFerry(void) { SetVBlankCallback(NULL); HelpSystem_Disable(); - SetMainCallback2(CB2_SetUpSeaGallopScene); + SetMainCallback2(CB2_SetUpSeagallopScene); } -static void CB2_SetUpSeaGallopScene(void) +static void CB2_SetUpSeagallopScene(void) { void ** ptr; switch (gMain.state) @@ -248,7 +248,7 @@ static void CB2_SetUpSeaGallopScene(void) SetGpuReg(REG_OFFSET_WINOUT, 0x00); SetGpuReg(REG_OFFSET_WIN0H, 0x00F0); SetGpuReg(REG_OFFSET_WIN0V, 0x1888); - CreateTask(Task_SeaGallop_0, 8); + CreateTask(Task_Seagallop_0, 8); SetMainCallback2(MainCB2_SeaGallop); gMain.state = 0; break; @@ -270,9 +270,9 @@ static void MainCB2_SeaGallop(void) UpdatePaletteFade(); } -static void Task_SeaGallop_0(u8 taskId) +static void Task_Seagallop_0(u8 taskId) { - gTasks[taskId].func = Task_SeaGallop_1; + gTasks[taskId].func = Task_Seagallop_1; } static void ScrollBG(void) @@ -287,7 +287,7 @@ static void ScrollBG(void) } } -static void Task_SeaGallop_1(u8 taskId) +static void Task_Seagallop_1(u8 taskId) { struct Task * task = &gTasks[taskId]; @@ -296,29 +296,29 @@ static void Task_SeaGallop_1(u8 taskId) { Overworld_FadeOutMapMusic(); sub_807DC18(); - task->func = Task_SeaGallop_2; + task->func = Task_Seagallop_2; } } -static void Task_SeaGallop_2(u8 taskId) +static void Task_Seagallop_2(u8 taskId) { ScrollBG(); if (sub_8055FC4() && !gPaletteFade.active) { - Task_SeaGallop_3(); + Task_Seagallop_3(); HelpSystem_Enable(); DestroyTask(taskId); } } -static void Task_SeaGallop_3(void) +static void Task_Seagallop_3(void) { const s8 * warpInfo; - if (gSpecialVar_0x8006 >= NELEMS(sSeaGallopSpawnTable)) + if (gSpecialVar_0x8006 >= NELEMS(sSeag)) gSpecialVar_0x8006 = 0; - warpInfo = sSeaGallopSpawnTable[gSpecialVar_0x8006]; + warpInfo = sSeag[gSpecialVar_0x8006]; SetWarpDestination(warpInfo[0], warpInfo[1], -1, warpInfo[2], warpInfo[3]); PlayRainStoppingSoundEffect(); PlaySE(SE_KAIDAN); diff --git a/src/start_menu.c b/src/start_menu.c index e3854b803..dddb5f44e 100644 --- a/src/start_menu.c +++ b/src/start_menu.c @@ -207,9 +207,9 @@ static void AppendToStartMenuItems(u8 newEntry) static void SetUpStartMenu_NormalField(void) { - if (FlagGet(FLAG_0x829) == TRUE) + if (FlagGet(FLAG_SYS_POKEDEX_GET) == TRUE) AppendToStartMenuItems(STARTMENU_POKEDEX); - if (FlagGet(FLAG_0x828) == TRUE) + if (FlagGet(FLAG_SYS_POKEMON_GET) == TRUE) AppendToStartMenuItems(STARTMENU_POKEMON); AppendToStartMenuItems(STARTMENU_BAG); AppendToStartMenuItems(STARTMENU_PLAYER); @@ -392,7 +392,7 @@ void ShowStartMenu(void) { if (!IsUpdateLinkStateCBActive()) { - player_bitmagic(); + FreezeEventObjects(); sub_805C270(); sub_805C780(); } @@ -445,7 +445,7 @@ static void StartMenu_FadeScreenIfLeavingOverworld(void) && sStartMenuCallback != StartMenuExitCallback && sStartMenuCallback != StartMenuSafariZoneRetireCallback) { - sub_80CCB68(); + StopPokemonLeagueLightingEffectTask(); fade_screen(1, 0); } } @@ -973,7 +973,7 @@ static void PrintSaveStats(void) SaveStatToString(SAVE_STAT_BADGES, gStringVar4, 2); AddTextPrinterParameterized3(sSaveStatsWindowId, 0, 60, 28, sTextColor_StatValue, -1, gStringVar4); y = 42; - if (FlagGet(FLAG_0x829) == TRUE) + if (FlagGet(FLAG_SYS_POKEDEX_GET) == TRUE) { AddTextPrinterParameterized3(sSaveStatsWindowId, 0, 2, 42, sTextColor_StatName, -1, gSaveStatName_Pokedex); SaveStatToString(SAVE_STAT_POKEDEX, gStringVar4, 2); diff --git a/src/teachy_tv.c b/src/teachy_tv.c index aa273073b..e33cb9d2e 100644 --- a/src/teachy_tv.c +++ b/src/teachy_tv.c @@ -1192,7 +1192,7 @@ static void TeachyTvPrepBattle(u8 taskId) gSpecialVar_0x8004 = sStaticResources.whichScript; gMain.savedCallback = TeachyTvRestorePlayerPartyCallback; SavePlayerParty(); - sub_8159F40(); + InitPokedudePartyAndOpponent(); PlayMapChosenOrBattleBGM(MUS_DUMMY); if (sStaticResources.whichScript == TTVSCR_BATTLE) data[6] = 9; @@ -1214,7 +1214,7 @@ static void TeachyTvPreBattleAnimAndSetBattleCallback(u8 taskId) case 1: if (BT_IsDone()) { - SetMainCallback2(sub_800FD9C); + SetMainCallback2(CB2_InitBattle); DestroyTask(taskId); } break; diff --git a/src/trade.c b/src/trade.c index ee28ff224..08e0d6372 100644 --- a/src/trade.c +++ b/src/trade.c @@ -237,7 +237,7 @@ void sub_804C728(void) case 5: if (gWirelessCommType) { - if (IsRfuTaskFinished()) + if (IsLinkRfuTaskFinished()) { gMain.state++; LoadWirelessStatusIndicatorSpriteGfx(); @@ -267,7 +267,7 @@ void sub_804C728(void) { struct Pokemon *mon = &gPlayerParty[i]; gUnknown_2031DA8->partyIcons[0][i] = CreateMonIcon(GetMonData(mon, MON_DATA_SPECIES2), - sub_809718C, + SpriteCB_MonIcon, (gTradeMonSpriteCoords[i][0] * 8) + 14, (gTradeMonSpriteCoords[i][1] * 8) - 12, 1, @@ -279,7 +279,7 @@ void sub_804C728(void) { struct Pokemon *mon = &gEnemyParty[i]; gUnknown_2031DA8->partyIcons[1][i] = CreateMonIcon(GetMonData(mon, MON_DATA_SPECIES2, NULL), - sub_809718C, + SpriteCB_MonIcon, (gTradeMonSpriteCoords[i + PARTY_SIZE][0] * 8) + 14, (gTradeMonSpriteCoords[i + PARTY_SIZE][1] * 8) - 12, 1, @@ -698,7 +698,7 @@ void sub_804C728(void) "\tldrb r0, [r0]\n" "\tcmp r0, 0\n" "\tbeq _0804C9E8\n" - "\tbl IsRfuTaskFinished\n" + "\tbl IsLinkRfuTaskFinished\n" "\tlsls r0, 24\n" "\tcmp r0, 0\n" "\tbne _0804C9C4\n" @@ -797,7 +797,7 @@ void sub_804C728(void) "\tstr r0, [sp, 0x4]\n" "\tstr r1, [sp, 0x8]\n" "\tadds r0, r5, 0\n" - "\tldr r1, _0804CB44 @ =sub_809718C\n" + "\tldr r1, _0804CB44 @ =SpriteCB_MonIcon\n" "\tbl CreateMonIcon\n" "\tmov r2, r8\n" "\tldr r1, [r2]\n" @@ -856,7 +856,7 @@ void sub_804C728(void) "\tmovs r0, 0\n" "\tstr r0, [sp, 0x8]\n" "\tadds r0, r5, 0\n" - "\tldr r1, _0804CB44 @ =sub_809718C\n" + "\tldr r1, _0804CB44 @ =SpriteCB_MonIcon\n" "\tbl CreateMonIcon\n" "\tmov r2, r8\n" "\tldr r1, [r2]\n" @@ -883,7 +883,7 @@ void sub_804C728(void) "_0804CB38: .4byte gTradeMonSpriteCoords\n" "_0804CB3C: .4byte gPlayerParty\n" "_0804CB40: .4byte 0xfff40000\n" - "_0804CB44: .4byte sub_809718C\n" + "_0804CB44: .4byte SpriteCB_MonIcon\n" "_0804CB48: .4byte gEnemyParty\n" "_0804CB4C: .4byte gMain\n" "_0804CB50:\n" diff --git a/src/trainer_pokemon_sprites.c b/src/trainer_pokemon_sprites.c index 2ef5e02f0..7262954c9 100644 --- a/src/trainer_pokemon_sprites.c +++ b/src/trainer_pokemon_sprites.c @@ -14,7 +14,7 @@ extern const struct CompressedSpriteSheet gMonBackPicTable[]; extern const struct CompressedSpriteSheet gTrainerFrontPicTable[]; extern const struct CompressedSpriteSheet gTrainerBackPicTable[]; extern const struct CompressedSpritePalette gTrainerFrontPicPaletteTable[]; -extern const union AnimCmd *const gUnknown_82349BC[]; +extern const union AnimCmd *const gSpriteAnimTable_82349BC[]; extern const union AnimCmd *const *const gTrainerFrontAnimsPtrTable[]; // Static type declarations @@ -138,7 +138,7 @@ void LoadPicPaletteBySlot(u16 species, u32 otId, u32 personality, u8 paletteSlot void AssignSpriteAnimsTable(bool8 isTrainer) { if (!isTrainer) - sCreatingSpriteTemplate.anims = gUnknown_82349BC; + sCreatingSpriteTemplate.anims = gSpriteAnimTable_82349BC; else sCreatingSpriteTemplate.anims = gTrainerFrontAnimsPtrTable[0]; } diff --git a/src/trainer_tower.c b/src/trainer_tower.c index 9512e73d1..cd796bf3a 100644 --- a/src/trainer_tower.c +++ b/src/trainer_tower.c @@ -1,10 +1,6 @@ #include "global.h" #include "main.h" #include "task.h" -#include "constants/flags.h" -#include "constants/vars.h" -#include "constants/items.h" -#include "constants/species.h" #include "malloc.h" #include "save.h" #include "util.h" @@ -24,419 +20,326 @@ #include "menu.h" #include "new_menu_helpers.h" #include "sound.h" - -struct UnkStruct_8479D34 -{ - s8 mapGroup; - s8 mapNum; - u8 filler[2]; - u8 flags1[8]; - u8 flags2[8]; - u8 flags3[8]; -}; +#include "renewable_hidden_items.h" +#include "constants/flags.h" +#include "constants/vars.h" +#include "constants/items.h" +#include "constants/species.h" +#include "constants/maps.h" +#include "constants/songs.h" +#include "constants/layouts.h" +#include "constants/trainers.h" +#include "constants/facility_trainer_classes.h" +#include "constants/map_objects.h" struct UnkStruct_203F458 { - /* 0x0000 */ u8 unk_0000; - /* 0x0004 */ struct TrainerTowerData unk_0004; + /* 0x0000 */ u8 floorIdx; + /* 0x0004 */ struct EReaderTrainerHillSet unk_0004; }; struct UnkStruct_203F45C { - /* 0x00 */ u8 unk_00[11]; - /* 0x0C */ u16 unk_0C[6]; - /* 0x18 */ u16 unk_18[6]; - /* 0x24 */ u16 unk_24[6]; - /* 0x30 */ u16 unk_30[6]; - /* 0x3C */ u8 unk_3C; - /* 0x3D */ u8 unk_3D; - /* 0x3E */ u8 unk_3E; + /* 0x00 */ u8 name[11]; + /* 0x0C */ u16 speechWin[6]; + /* 0x18 */ u16 speechLose[6]; + /* 0x24 */ u16 speechWin2[6]; + /* 0x30 */ u16 speechLose2[6]; + /* 0x3C */ u8 battleType; + /* 0x3D */ u8 facilityClass; + /* 0x3E */ u8 gender; }; -struct UnkStruct_8479ED8 +struct SinglesTrainerInfo { - u8 unk0; - u8 unk1; - bool8 unk2; + u8 mapObjGfx; + u8 facilityClass; + bool8 gender; }; -struct UnkStruct_847A024 +struct DoublesTrainerInfo { - u8 unk0; - u8 unk1; - u8 unk2; - bool8 unk3; - bool8 unk4; + u8 mapObjGfx1; + u8 mapObjGfx2; + u8 facilityClass; + bool8 gender1; + bool8 gender2; }; -struct UnkStruct_847A074 +struct TrainerEncounterMusicPairs { u8 unk0; u8 unk1; }; -EWRAM_DATA struct UnkStruct_203F458 * gUnknown_203F458 = NULL; -EWRAM_DATA struct UnkStruct_203F45C * gUnknown_203F45C = NULL; -EWRAM_DATA u8 unused_variable = 0; +static EWRAM_DATA struct UnkStruct_203F458 * sTrainerTowerState = NULL; +static EWRAM_DATA struct UnkStruct_203F45C * sTrainerTowerOpponent = NULL; +static EWRAM_DATA u8 sUnused_203F460 = 0; -void sub_815D96C(void); -void sub_815DC8C(void); // setup -void sub_815DD2C(void); // teardown -void sub_815DD44(void); -void sub_815DDB0(void); -void sub_815DEFC(u16 * ecWords, u8 * dest); -void sub_815DF54(void); -void sub_815E068(u8 battleType, u8 facilityClass); -void sub_815E160(void); -void sub_815E1C0(void); -void sub_815E1F0(void); -void sub_815E218(void); -void sub_815E28C(void); -void sub_815E394(void); -void sub_815E408(void); -void sub_815E4B0(void); -void sub_815E56C(void); -void sub_815E5C4(void); -void sub_815E5F0(void); -void sub_815E658(void); -void sub_815E720(void); -void sub_815E88C(void); -void sub_815E8B4(void); -void sub_815E8CC(void); -void sub_815E908(void); -void sub_815E948(void); -void sub_815E9C8(void); -void sub_815E9FC(void); +static void sub_815DC8C(void); // setup +static void sub_815DD2C(void); // teardown +static void sub_815DD44(void); +static void SetTrainerTowerNPCGraphics(void); +static void TT_ConvertEasyChatMessageToString(u16 *ecWords, u8 *dest); +static void sub_815DF54(void); +static void TrainerTowerGetOpponentTextColor(u8 battleType, u8 facilityClass); +static void sub_815E160(void); +static void sub_815E1C0(void); +static void sub_815E1F0(void); +static void TTSpecial_HasReachedTheRoof(void); +static void sub_815E28C(void); +static void sub_815E394(void); +static void sub_815E408(void); +static void sub_815E4B0(void); +static void TTSpecial_StartTimer(void); +static void sub_815E5C4(void); +static void sub_815E5F0(void); +static void sub_815E658(void); +static void sub_815E720(void); +static void sub_815E88C(void); +static void sub_815E8B4(void); +static void sub_815E8CC(void); +static void sub_815E908(void); +static void sub_815E948(void); +static void sub_815E9C8(void); +static void BuildEnemyParty(void); static s32 GetPartyMaxLevel(void); -void sub_815EC0C(void); -u32 sub_815EDDC(u32 *); -void sub_815EDF4(u32 *, u32); +static void ValidateOrResetCurTrainerTowerRecord(void); +static u32 GetTrainerTowerRecordTime(u32 *); +static void SetTrainerTowerRecordTime(u32 *, u32); extern const u8 gUnknown_83FE982[]; extern const u8 gUnknown_83FE998[]; extern const u8 *const gUnknown_83FE9C4[]; -const struct UnkStruct_8479D34 gUnknown_8479D34[] = { - { - 0x03, 0x26, - .flags1 = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff}, - .flags2 = {0x99, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff}, - .flags3 = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff} - }, - { - 0x03, 0x27, - .flags1 = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff}, - .flags2 = {0x9a, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff}, - .flags3 = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff} - }, - { - 0x01, 0x1f, - .flags1 = {0x4c, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff}, - .flags2 = {0x46, 0x47, 0x48, 0x49, 0x4a, 0x4b, 0xff, 0xff}, - .flags3 = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff} - }, - { - 0x01, 0x22, - .flags1 = {0x53, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff}, - .flags2 = {0x4d, 0x4e, 0x4f, 0x50, 0x51, 0x52, 0xff, 0xff}, - .flags3 = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff} - }, - { - 0x03, 0x41, - .flags1 = {0x40, 0x41, 0x42, 0x43, 0xff, 0xff, 0xff, 0xff}, - .flags2 = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff}, - .flags3 = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff} - }, - { - 0x01, 0x02, - .flags1 = {0x54, 0x55, 0x56, 0x57, 0x58, 0x59, 0xff, 0xff}, - .flags2 = {0x54, 0x55, 0x56, 0xff, 0xff, 0xff, 0xff, 0xff}, - .flags3 = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff} - }, - { - 0x01, 0x6d, - .flags1 = {0x5b, 0x5d, 0x5e, 0x5f, 0x63, 0x64, 0x65, 0x66}, - .flags2 = {0x5b, 0x5d, 0x5e, 0x5f, 0x63, 0x64, 0x65, 0xff}, - .flags3 = {0x5a, 0x5c, 0x60, 0x61, 0x62, 0xff, 0xff, 0xff} - }, - { - 0x03, 0x2e, - .flags1 = {0x6b, 0x6c, 0x6d, 0x6e, 0xff, 0xff, 0xff, 0xff}, - .flags2 = {0x67, 0x68, 0x69, 0x6a, 0x6b, 0x6c, 0xff, 0xff}, - .flags3 = {0x6b, 0x6c, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff} - }, - { - 0x03, 0x30, - .flags1 = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff}, - .flags2 = {0xa6, 0xa7, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff}, - .flags3 = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff} - }, - { - 0x03, 0x0f, - .flags1 = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff}, - .flags2 = {0xa8, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff}, - .flags3 = {0xa9, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff} - }, - { - 0x03, 0x39, - .flags1 = {0xaa, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff}, - .flags2 = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff}, - .flags3 = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff} - }, - { - 0x03, 0x36, - .flags1 = {0xae, 0xb0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff}, - .flags2 = {0xaf, 0xb1, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff}, - .flags3 = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff} - }, - { - 0x03, 0x3a, - .flags1 = {0xb2, 0xb3, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff}, - .flags2 = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff}, - .flags3 = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff} - }, - { - 0x03, 0x3b, - .flags1 = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff}, - .flags2 = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff}, - .flags3 = {0xb4, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff} - }, - { - 0x03, 0x3e, - .flags1 = {0xb9, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff}, - .flags2 = {0xba, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff}, - .flags3 = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff} - }, +static const struct SinglesTrainerInfo sSingleBattleTrainerInfo[] = { + {MAP_OBJ_GFX_WOMAN_2, FACILITY_CLASS_AROMA_LADY, FEMALE}, + {MAP_OBJ_GFX_HIKER, FACILITY_CLASS_RUIN_MANIAC, MALE}, + {MAP_OBJ_GFX_TUBER_F, FACILITY_CLASS_TUBER, FEMALE}, + {MAP_OBJ_GFX_TUBER_M_2, FACILITY_CLASS_TUBER_2, MALE}, + {MAP_OBJ_GFX_COOLTRAINER_M, FACILITY_CLASS_COOLTRAINER, MALE}, + {MAP_OBJ_GFX_COOLTRAINER_F, FACILITY_CLASS_COOLTRAINER_2, FEMALE}, + {MAP_OBJ_GFX_SUPER_NERD, FACILITY_CLASS_HEX_MANIAC, MALE}, + {MAP_OBJ_GFX_WOMAN_2, FACILITY_CLASS_LADY, FEMALE}, + {MAP_OBJ_GFX_BEAUTY, FACILITY_CLASS_BEAUTY, FEMALE}, + {MAP_OBJ_GFX_BOY, FACILITY_CLASS_RICH_BOY, MALE}, + {MAP_OBJ_GFX_SUPER_NERD, FACILITY_CLASS_POKEMANIAC, MALE}, + {MAP_OBJ_GFX_SWIMMER_M_LAND, FACILITY_CLASS_SWIMMER_MALE, MALE}, + {MAP_OBJ_GFX_BLACKBELT, FACILITY_CLASS_BLACK_BELT, MALE}, + {MAP_OBJ_GFX_ROCKER, FACILITY_CLASS_GUITARIST, MALE}, + {MAP_OBJ_GFX_ROCKER, FACILITY_CLASS_KINDLER, MALE}, + {MAP_OBJ_GFX_CAMPER, FACILITY_CLASS_CAMPER, MALE}, + {MAP_OBJ_GFX_SUPER_NERD, FACILITY_CLASS_BUG_MANIAC, MALE}, + {MAP_OBJ_GFX_BOY, FACILITY_CLASS_PSYCHIC, MALE}, + {MAP_OBJ_GFX_WOMAN_1, FACILITY_CLASS_PSYCHIC_2, FEMALE}, + {MAP_OBJ_GFX_GENTLEMAN, FACILITY_CLASS_GENTLEMAN, MALE}, + {MAP_OBJ_GFX_BOY, FACILITY_CLASS_SCHOOL_KID, MALE}, + {MAP_OBJ_GFX_WOMAN_1, FACILITY_CLASS_SCHOOL_KID_2, FEMALE}, + {MAP_OBJ_GFX_BALDING_MAN, FACILITY_CLASS_POKEFAN, MALE}, + {MAP_OBJ_GFX_WOMAN_3, FACILITY_CLASS_POKEFAN_2, FEMALE}, + {MAP_OBJ_GFX_OLD_MAN_1, FACILITY_CLASS_EXPERT, MALE}, + {MAP_OBJ_GFX_OLD_WOMAN, FACILITY_CLASS_EXPERT_2, FEMALE}, + {MAP_OBJ_GFX_YOUNGSTER, FACILITY_CLASS_YOUNGSTER, MALE}, + {MAP_OBJ_GFX_FISHER, FACILITY_CLASS_FISHERMAN, MALE}, + {MAP_OBJ_GFX_COOLTRAINER_M, FACILITY_CLASS_DRAGON_TAMER, MALE}, + {MAP_OBJ_GFX_ROCKER, FACILITY_CLASS_BIRD_KEEPER, MALE}, + {MAP_OBJ_GFX_LITTLE_BOY, FACILITY_CLASS_NINJA_BOY, MALE}, + {MAP_OBJ_GFX_BATTLE_GIRL, FACILITY_CLASS_BATTLE_GIRL, FEMALE}, + {MAP_OBJ_GFX_BEAUTY, FACILITY_CLASS_PARASOL_LADY, FEMALE}, + {MAP_OBJ_GFX_SWIMMER_F_LAND, FACILITY_CLASS_SWIMMER_FEMALE, FEMALE}, + {MAP_OBJ_GFX_PICNICKER, FACILITY_CLASS_PICNICKER, FEMALE}, + {MAP_OBJ_GFX_SAILOR, FACILITY_CLASS_SAILOR, MALE}, + {MAP_OBJ_GFX_FAT_MAN, FACILITY_CLASS_COLLECTOR, MALE}, + {MAP_OBJ_GFX_MAN, FACILITY_CLASS_PKMN_BREEDER, MALE}, + {MAP_OBJ_GFX_WOMAN_2, FACILITY_CLASS_PKMN_BREEDER_2, FEMALE}, + {MAP_OBJ_GFX_CAMPER, FACILITY_CLASS_PKMN_RANGER, MALE}, + {MAP_OBJ_GFX_PICNICKER, FACILITY_CLASS_PKMN_RANGER_2, FEMALE}, + {MAP_OBJ_GFX_LASS, FACILITY_CLASS_LASS, FEMALE}, + {MAP_OBJ_GFX_BUG_CATCHER, FACILITY_CLASS_BUG_CATCHER, MALE}, + {MAP_OBJ_GFX_HIKER, FACILITY_CLASS_HIKER, MALE}, + {MAP_OBJ_GFX_YOUNGSTER, FACILITY_CLASS_YOUNGSTER_2, MALE}, + {MAP_OBJ_GFX_BUG_CATCHER, FACILITY_CLASS_BUG_CATCHER_2, MALE}, + {MAP_OBJ_GFX_LASS, FACILITY_CLASS_LASS_2, FEMALE}, + {MAP_OBJ_GFX_SAILOR, FACILITY_CLASS_SAILOR_2, MALE}, + {MAP_OBJ_GFX_CAMPER, FACILITY_CLASS_CAMPER_2, MALE}, + {MAP_OBJ_GFX_PICNICKER, FACILITY_CLASS_PICNICKER_2, FEMALE}, + {MAP_OBJ_GFX_SUPER_NERD, FACILITY_CLASS_POKEMANIAC_2, MALE}, + {MAP_OBJ_GFX_SUPER_NERD, FACILITY_CLASS_SUPER_NERD, MALE}, + {MAP_OBJ_GFX_HIKER, FACILITY_CLASS_HIKER_2, MALE}, + {MAP_OBJ_GFX_BIKER, FACILITY_CLASS_BIKER, MALE}, + {MAP_OBJ_GFX_SUPER_NERD, FACILITY_CLASS_BURGLAR, MALE}, + {MAP_OBJ_GFX_BALDING_MAN, FACILITY_CLASS_ENGINEER, MALE}, + {MAP_OBJ_GFX_FISHER, FACILITY_CLASS_FISHERMAN_2, MALE}, + {MAP_OBJ_GFX_SWIMMER_M_LAND, FACILITY_CLASS_SWIMMER_MALE_2, MALE}, + {MAP_OBJ_GFX_BIKER, FACILITY_CLASS_CUE_BALL, MALE}, + {MAP_OBJ_GFX_OLD_MAN_1, FACILITY_CLASS_GAMER, MALE}, + {MAP_OBJ_GFX_BEAUTY, FACILITY_CLASS_BEAUTY_2, FEMALE}, + {MAP_OBJ_GFX_SWIMMER_F_LAND, FACILITY_CLASS_SWIMMER_FEMALE_2, FEMALE}, + {MAP_OBJ_GFX_BOY, FACILITY_CLASS_PSYCHIC_3, MALE}, + {MAP_OBJ_GFX_ROCKER, FACILITY_CLASS_ROCKER, MALE}, + {MAP_OBJ_GFX_ROCKER, FACILITY_CLASS_JUGGLER, MALE}, + {MAP_OBJ_GFX_MAN, FACILITY_CLASS_TAMER, MALE}, + {MAP_OBJ_GFX_ROCKER, FACILITY_CLASS_BIRD_KEEPER_2, MALE}, + {MAP_OBJ_GFX_BLACKBELT, FACILITY_CLASS_BLACK_BELT_2, MALE}, + {MAP_OBJ_GFX_SCIENTIST, FACILITY_CLASS_SCIENTIST, MALE}, + {MAP_OBJ_GFX_COOLTRAINER_M, FACILITY_CLASS_COOLTRAINER_3, MALE}, + {MAP_OBJ_GFX_COOLTRAINER_F, FACILITY_CLASS_COOLTRAINER_4, FEMALE}, + {MAP_OBJ_GFX_GENTLEMAN, FACILITY_CLASS_GENTLEMAN_2, MALE}, + {MAP_OBJ_GFX_CHANNELER, FACILITY_CLASS_CHANNELER, FEMALE}, + {MAP_OBJ_GFX_WOMAN_1, FACILITY_CLASS_PSYCHIC_4, FEMALE}, + {MAP_OBJ_GFX_BATTLE_GIRL, FACILITY_CLASS_CRUSH_GIRL, FEMALE}, + {MAP_OBJ_GFX_TUBER_F, FACILITY_CLASS_TUBER_3, FEMALE}, + {MAP_OBJ_GFX_WOMAN_2, FACILITY_CLASS_PKMN_BREEDER_3, FEMALE}, + {MAP_OBJ_GFX_CAMPER, FACILITY_CLASS_PKMN_RANGER_3, MALE}, + {MAP_OBJ_GFX_PICNICKER, FACILITY_CLASS_PKMN_RANGER_4, FEMALE}, + {MAP_OBJ_GFX_WOMAN_2, FACILITY_CLASS_AROMA_LADY_2, FEMALE}, + {MAP_OBJ_GFX_HIKER, FACILITY_CLASS_RUIN_MANIAC_2, MALE}, + {MAP_OBJ_GFX_WOMAN_2, FACILITY_CLASS_LADY_2, FEMALE}, + {MAP_OBJ_GFX_LASS, FACILITY_CLASS_PAINTER, FEMALE} }; -const struct UnkStruct_8479ED8 gUnknown_8479ED8[] = { - {0x1c, 0x03, 0x01}, - {0x38, 0x04, 0x00}, - {0x25, 0x06, 0x01}, - {0x26, 0x07, 0x00}, - {0x29, 0x08, 0x00}, - {0x2a, 0x09, 0x01}, - {0x34, 0x0a, 0x00}, - {0x1c, 0x0b, 0x01}, - {0x1d, 0x0c, 0x01}, - {0x13, 0x0d, 0x00}, - {0x34, 0x0e, 0x00}, - {0x2d, 0x0f, 0x00}, - {0x36, 0x10, 0x00}, - {0x1a, 0x11, 0x00}, - {0x1a, 0x12, 0x00}, - {0x27, 0x13, 0x00}, - {0x34, 0x14, 0x00}, - {0x13, 0x15, 0x00}, - {0x17, 0x16, 0x01}, - {0x3d, 0x17, 0x00}, - {0x13, 0x1d, 0x00}, - {0x17, 0x1e, 0x01}, - {0x1e, 0x20, 0x00}, - {0x1f, 0x21, 0x01}, - {0x20, 0x22, 0x00}, - {0x23, 0x23, 0x01}, - {0x12, 0x24, 0x00}, - {0x39, 0x26, 0x00}, - {0x29, 0x2d, 0x00}, - {0x1a, 0x2e, 0x00}, - {0x10, 0x2f, 0x00}, - {0x18, 0x30, 0x01}, - {0x1d, 0x31, 0x01}, - {0x2e, 0x32, 0x01}, - {0x28, 0x33, 0x01}, - {0x3e, 0x35, 0x00}, - {0x1b, 0x38, 0x00}, - {0x19, 0x40, 0x00}, - {0x1c, 0x41, 0x01}, - {0x27, 0x42, 0x00}, - {0x28, 0x43, 0x01}, - {0x16, 0x47, 0x01}, - {0x14, 0x48, 0x00}, - {0x38, 0x49, 0x00}, - {0x12, 0x58, 0x00}, - {0x14, 0x59, 0x00}, - {0x16, 0x5a, 0x01}, - {0x3e, 0x5b, 0x00}, - {0x27, 0x5c, 0x00}, - {0x28, 0x5d, 0x01}, - {0x34, 0x5e, 0x00}, - {0x34, 0x5f, 0x00}, - {0x38, 0x60, 0x00}, - {0x35, 0x61, 0x00}, - {0x34, 0x62, 0x00}, - {0x1e, 0x63, 0x00}, - {0x39, 0x64, 0x00}, - {0x2d, 0x65, 0x00}, - {0x35, 0x66, 0x00}, - {0x20, 0x67, 0x00}, - {0x1d, 0x68, 0x01}, - {0x2e, 0x69, 0x01}, - {0x13, 0x6a, 0x00}, - {0x1a, 0x6b, 0x00}, - {0x1a, 0x6c, 0x00}, - {0x19, 0x6d, 0x00}, - {0x1a, 0x6e, 0x00}, - {0x36, 0x6f, 0x00}, - {0x37, 0x71, 0x00}, - {0x29, 0x74, 0x00}, - {0x2a, 0x75, 0x01}, - {0x3d, 0x7a, 0x00}, - {0x3a, 0x7d, 0x01}, - {0x17, 0x89, 0x01}, - {0x18, 0x8a, 0x01}, - {0x25, 0x8b, 0x01}, - {0x1c, 0x8c, 0x01}, - {0x27, 0x8d, 0x00}, - {0x28, 0x8e, 0x01}, - {0x1c, 0x8f, 0x01}, - {0x38, 0x90, 0x00}, - {0x1c, 0x91, 0x01}, - {0x16, 0x92, 0x01} +static const struct DoublesTrainerInfo sDoubleBattleTrainerInfo[] = { + {MAP_OBJ_GFX_BEAUTY, MAP_OBJ_GFX_WOMAN_1, FACILITY_CLASS_SR_AND_JR, FEMALE, FEMALE}, + {MAP_OBJ_GFX_LITTLE_GIRL, MAP_OBJ_GFX_LITTLE_GIRL, FACILITY_CLASS_TWINS, FEMALE, FEMALE}, + {MAP_OBJ_GFX_BEAUTY, MAP_OBJ_GFX_MAN, FACILITY_CLASS_YOUNG_COUPLE, FEMALE, MALE}, + {MAP_OBJ_GFX_OLD_MAN_1, MAP_OBJ_GFX_OLD_WOMAN, FACILITY_CLASS_OLD_COUPLE, MALE, FEMALE}, + {MAP_OBJ_GFX_TUBER_M_2, MAP_OBJ_GFX_SWIMMER_F_LAND, FACILITY_CLASS_SIS_AND_BRO, MALE, FEMALE}, + {MAP_OBJ_GFX_LITTLE_GIRL, MAP_OBJ_GFX_LITTLE_GIRL, FACILITY_CLASS_TWINS_2, FEMALE, FEMALE}, + {MAP_OBJ_GFX_COOLTRAINER_M, MAP_OBJ_GFX_COOLTRAINER_F, FACILITY_CLASS_COOL_COUPLE, MALE, FEMALE}, + {MAP_OBJ_GFX_BEAUTY, MAP_OBJ_GFX_MAN, FACILITY_CLASS_YOUNG_COUPLE_2, FEMALE, MALE}, + {MAP_OBJ_GFX_BATTLE_GIRL, MAP_OBJ_GFX_BLACKBELT, FACILITY_CLASS_CRUSH_KIN, FEMALE, MALE}, + {MAP_OBJ_GFX_SWIMMER_F_LAND, MAP_OBJ_GFX_TUBER_M_2, FACILITY_CLASS_SIS_AND_BRO_2, FEMALE, MALE} }; -const struct UnkStruct_847A024 gUnknown_847A024[] = { - {0x1d, 0x17, 0x1f, 0x01, 0x01}, - {0x11, 0x11, 0x34, 0x01, 0x01}, - {0x1d, 0x19, 0x4a, 0x01, 0x00}, - {0x20, 0x23, 0x4b, 0x00, 0x01}, - {0x26, 0x2e, 0x4c, 0x00, 0x01}, - {0x11, 0x11, 0x7e, 0x01, 0x01}, - {0x29, 0x2a, 0x7f, 0x00, 0x01}, - {0x1d, 0x19, 0x80, 0x01, 0x00}, - {0x18, 0x36, 0x81, 0x01, 0x00}, - {0x2e, 0x26, 0x82, 0x01, 0x00} +static const struct TrainerEncounterMusicPairs sTrainerEncounterMusicLUT[105] = { + {FACILITY_CLASS_AROMA_LADY, TRAINER_ENCOUNTER_MUSIC_AQUA}, + {FACILITY_CLASS_BOARDER_2, TRAINER_ENCOUNTER_MUSIC_AQUA}, + {FACILITY_CLASS_TEAM_AQUA_2, TRAINER_ENCOUNTER_MUSIC_AQUA}, + {FACILITY_CLASS_GAMER, TRAINER_ENCOUNTER_MUSIC_FEMALE}, + {FACILITY_CLASS_RUIN_MANIAC, TRAINER_ENCOUNTER_MUSIC_FEMALE}, + {FACILITY_CLASS_YOUNGSTER, TRAINER_ENCOUNTER_MUSIC_INTENSE}, + {FACILITY_CLASS_YOUNG_COUPLE, TRAINER_ENCOUNTER_MUSIC_FEMALE}, + {FACILITY_CLASS_FISHERMAN, TRAINER_ENCOUNTER_MUSIC_FEMALE}, + {FACILITY_CLASS_TRIATHLETE_4, TRAINER_ENCOUNTER_MUSIC_MALE}, + {FACILITY_CLASS_PKMN_RANGER, TRAINER_ENCOUNTER_MUSIC_SUSPICIOUS}, + {FACILITY_CLASS_LEADER_2, TRAINER_ENCOUNTER_MUSIC_TWINS}, + {FACILITY_CLASS_SIS_AND_BRO, TRAINER_ENCOUNTER_MUSIC_SUSPICIOUS}, + {FACILITY_CLASS_MAGMA_LEADER, TRAINER_ENCOUNTER_MUSIC_SUSPICIOUS}, + {FACILITY_CLASS_POKEFAN_2, TRAINER_ENCOUNTER_MUSIC_INTENSE}, + {FACILITY_CLASS_PKMN_RANGER_2, TRAINER_ENCOUNTER_MUSIC_SUSPICIOUS}, + {FACILITY_CLASS_PSYCHIC_3, TRAINER_ENCOUNTER_MUSIC_FEMALE}, + {FACILITY_CLASS_PICNICKER_2, TRAINER_ENCOUNTER_MUSIC_COOL}, + {FACILITY_CLASS_ELITE_FOUR_3, TRAINER_ENCOUNTER_MUSIC_COOL}, + {FACILITY_CLASS_COOLTRAINER_2, TRAINER_ENCOUNTER_MUSIC_COOL}, + {FACILITY_CLASS_GUITARIST, TRAINER_ENCOUNTER_MUSIC_INTENSE}, + {FACILITY_CLASS_BUG_CATCHER, TRAINER_ENCOUNTER_MUSIC_SUSPICIOUS}, + {FACILITY_CLASS_PKMN_TRAINER_4, TRAINER_ENCOUNTER_MUSIC_MALE}, + {FACILITY_CLASS_TRIATHLETE_3, TRAINER_ENCOUNTER_MUSIC_MALE}, + {FACILITY_CLASS_CAMPER_2, TRAINER_ENCOUNTER_MUSIC_TWINS}, + {FACILITY_CLASS_TRIATHLETE_2, TRAINER_ENCOUNTER_MUSIC_TWINS}, + {FACILITY_CLASS_TUBER, TRAINER_ENCOUNTER_MUSIC_INTERVIEWER}, + {FACILITY_CLASS_BEAUTY_2, TRAINER_ENCOUNTER_MUSIC_HIKER}, + {FACILITY_CLASS_INTERVIEWER, TRAINER_ENCOUNTER_MUSIC_HIKER}, + {FACILITY_CLASS_YOUNGSTER_2, TRAINER_ENCOUNTER_MUSIC_RICH}, + {FACILITY_CLASS_PSYCHIC_2, TRAINER_ENCOUNTER_MUSIC_RICH}, + {FACILITY_CLASS_TEAM_MAGMA_2, TRAINER_ENCOUNTER_MUSIC_SWIMMER}, + {FACILITY_CLASS_SWIMMER_MALE, TRAINER_ENCOUNTER_MUSIC_FEMALE}, + {FACILITY_CLASS_PKMN_TRAINER_7, TRAINER_ENCOUNTER_MUSIC_SUSPICIOUS}, + {FACILITY_CLASS_POKEMANIAC, TRAINER_ENCOUNTER_MUSIC_SUSPICIOUS}, + {FACILITY_CLASS_SUPER_NERD, TRAINER_ENCOUNTER_MUSIC_INTENSE}, + {FACILITY_CLASS_ENGINEER, TRAINER_ENCOUNTER_MUSIC_INTENSE}, + {FACILITY_CLASS_MAGMA_ADMIN_2, TRAINER_ENCOUNTER_MUSIC_INTENSE}, + {FACILITY_CLASS_BLACK_BELT, TRAINER_ENCOUNTER_MUSIC_INTENSE}, + {FACILITY_CLASS_LEADER_5, TRAINER_ENCOUNTER_MUSIC_SUSPICIOUS}, + {FACILITY_CLASS_SAILOR, TRAINER_ENCOUNTER_MUSIC_INTENSE}, + {FACILITY_CLASS_SAILOR_2, TRAINER_ENCOUNTER_MUSIC_SUSPICIOUS}, + {FACILITY_CLASS_BUG_MANIAC, TRAINER_ENCOUNTER_MUSIC_SUSPICIOUS}, + {FACILITY_CLASS_PKMN_TRAINER_5, TRAINER_ENCOUNTER_MUSIC_MALE}, + {FACILITY_CLASS_CAMPER, TRAINER_ENCOUNTER_MUSIC_MALE}, + {FACILITY_CLASS_KINDLER, TRAINER_ENCOUNTER_MUSIC_HIKER}, + {FACILITY_CLASS_BATTLE_GIRL, TRAINER_ENCOUNTER_MUSIC_MAGMA}, + {FACILITY_CLASS_COLLECTOR, TRAINER_ENCOUNTER_MUSIC_MAGMA}, + {FACILITY_CLASS_NINJA_BOY, TRAINER_ENCOUNTER_MUSIC_MAGMA}, + {FACILITY_CLASS_PKMN_TRAINER_3, TRAINER_ENCOUNTER_MUSIC_FEMALE}, + {FACILITY_CLASS_PARASOL_LADY, TRAINER_ENCOUNTER_MUSIC_FEMALE}, + {FACILITY_CLASS_AQUA_ADMIN_2, TRAINER_ENCOUNTER_MUSIC_HIKER}, + {FACILITY_CLASS_PKMN_TRAINER_2, TRAINER_ENCOUNTER_MUSIC_MALE}, + {FACILITY_CLASS_SWIMMER_FEMALE, TRAINER_ENCOUNTER_MUSIC_MALE}, + {FACILITY_CLASS_EXPERT_2, TRAINER_ENCOUNTER_MUSIC_SUSPICIOUS}, + {FACILITY_CLASS_RICH_BOY, TRAINER_ENCOUNTER_MUSIC_RICH}, + {FACILITY_CLASS_HEX_MANIAC, TRAINER_ENCOUNTER_MUSIC_SUSPICIOUS}, + {FACILITY_CLASS_HIKER, TRAINER_ENCOUNTER_MUSIC_FEMALE}, + {FACILITY_CLASS_BEAUTY, TRAINER_ENCOUNTER_MUSIC_FEMALE}, + {FACILITY_CLASS_SWIMMER_FEMALE_2, TRAINER_ENCOUNTER_MUSIC_FEMALE}, + {FACILITY_CLASS_LADY, TRAINER_ENCOUNTER_MUSIC_FEMALE}, + {FACILITY_CLASS_CHAMPION, TRAINER_ENCOUNTER_MUSIC_FEMALE}, + {FACILITY_CLASS_PKMN_TRAINER_6, TRAINER_ENCOUNTER_MUSIC_GIRL}, + {FACILITY_CLASS_TRIATHLETE, TRAINER_ENCOUNTER_MUSIC_GIRL}, + {FACILITY_CLASS_SWIMMER_MALE_2, TRAINER_ENCOUNTER_MUSIC_FEMALE}, + {FACILITY_CLASS_DRAGON_TAMER, TRAINER_ENCOUNTER_MUSIC_FEMALE}, + {FACILITY_CLASS_BIKER, TRAINER_ENCOUNTER_MUSIC_FEMALE}, + {FACILITY_CLASS_TRIATHLETE_5, TRAINER_ENCOUNTER_MUSIC_SUSPICIOUS}, + {FACILITY_CLASS_CUE_BALL, TRAINER_ENCOUNTER_MUSIC_COOL}, + {FACILITY_CLASS_BIRD_KEEPER, TRAINER_ENCOUNTER_MUSIC_COOL}, + {FACILITY_CLASS_TRIATHLETE_6, TRAINER_ENCOUNTER_MUSIC_MALE}, + {FACILITY_CLASS_POKEMANIAC_2, TRAINER_ENCOUNTER_MUSIC_GIRL}, + {FACILITY_CLASS_TWINS, TRAINER_ENCOUNTER_MUSIC_GIRL}, + {FACILITY_CLASS_LEADER_4, TRAINER_ENCOUNTER_MUSIC_MALE}, + {FACILITY_CLASS_BUG_CATCHER_2, TRAINER_ENCOUNTER_MUSIC_MALE}, + {FACILITY_CLASS_PKMN_BREEDER, TRAINER_ENCOUNTER_MUSIC_SUSPICIOUS}, + {FACILITY_CLASS_LEADER_8, TRAINER_ENCOUNTER_MUSIC_AQUA}, + {FACILITY_CLASS_LEADER_6, TRAINER_ENCOUNTER_MUSIC_AQUA}, + {FACILITY_CLASS_OLD_COUPLE, TRAINER_ENCOUNTER_MUSIC_INTENSE}, + {FACILITY_CLASS_PSYCHIC, TRAINER_ENCOUNTER_MUSIC_INTENSE}, + {FACILITY_CLASS_LEADER, TRAINER_ENCOUNTER_MUSIC_TWINS}, + {FACILITY_CLASS_ELITE_FOUR_4, TRAINER_ENCOUNTER_MUSIC_ELITE_FOUR}, + {FACILITY_CLASS_GENTLEMAN, TRAINER_ENCOUNTER_MUSIC_FEMALE}, + {FACILITY_CLASS_LASS, TRAINER_ENCOUNTER_MUSIC_SUSPICIOUS}, + {FACILITY_CLASS_BURGLAR, TRAINER_ENCOUNTER_MUSIC_FEMALE}, + {FACILITY_CLASS_PKMN_TRAINER, TRAINER_ENCOUNTER_MUSIC_MALE}, + {FACILITY_CLASS_SCHOOL_KID, TRAINER_ENCOUNTER_MUSIC_MALE}, + {FACILITY_CLASS_LEADER_3, TRAINER_ENCOUNTER_MUSIC_INTENSE}, + {FACILITY_CLASS_POKEFAN, TRAINER_ENCOUNTER_MUSIC_MALE}, + {FACILITY_CLASS_MAGMA_ADMIN, TRAINER_ENCOUNTER_MUSIC_COOL}, + {FACILITY_CLASS_EXPERT, TRAINER_ENCOUNTER_MUSIC_COOL}, + {FACILITY_CLASS_TEAM_MAGMA, TRAINER_ENCOUNTER_MUSIC_HIKER}, + {FACILITY_CLASS_SR_AND_JR, TRAINER_ENCOUNTER_MUSIC_HIKER}, + {FACILITY_CLASS_LASS_2, TRAINER_ENCOUNTER_MUSIC_MALE}, + {FACILITY_CLASS_SCHOOL_KID_2, TRAINER_ENCOUNTER_MUSIC_MALE}, + {FACILITY_CLASS_COOLTRAINER, TRAINER_ENCOUNTER_MUSIC_MALE}, + {FACILITY_CLASS_FISHERMAN_2, TRAINER_ENCOUNTER_MUSIC_GIRL}, + {FACILITY_CLASS_TUBER_2, TRAINER_ENCOUNTER_MUSIC_GIRL}, + {FACILITY_CLASS_HIKER_2, TRAINER_ENCOUNTER_MUSIC_SWIMMER}, + {FACILITY_CLASS_BOARDER, TRAINER_ENCOUNTER_MUSIC_SWIMMER}, + {FACILITY_CLASS_PKMN_BREEDER_2, TRAINER_ENCOUNTER_MUSIC_HIKER}, + {FACILITY_CLASS_PICNICKER, TRAINER_ENCOUNTER_MUSIC_HIKER}, + {FACILITY_CLASS_LEADER_7, TRAINER_ENCOUNTER_MUSIC_MALE}, + {FACILITY_CLASS_ELITE_FOUR, TRAINER_ENCOUNTER_MUSIC_FEMALE}, + {FACILITY_CLASS_AQUA_ADMIN, TRAINER_ENCOUNTER_MUSIC_HIKER}, + {FACILITY_CLASS_ELITE_FOUR_2, TRAINER_ENCOUNTER_MUSIC_MALE} }; -const struct UnkStruct_847A074 gUnknown_847A074[105] = { - {0x03, 0x06}, - {0x37, 0x06}, - {0x02, 0x06}, - {0x67, 0x01}, - {0x04, 0x01}, - {0x24, 0x04}, - {0x4a, 0x01}, - {0x26, 0x01}, - {0x2a, 0x00}, - {0x42, 0x03}, - {0x1b, 0x09}, - {0x4c, 0x03}, - {0x44, 0x03}, - {0x21, 0x04}, - {0x43, 0x03}, - {0x6a, 0x01}, - {0x5d, 0x05}, - {0x56, 0x05}, - {0x09, 0x05}, - {0x11, 0x04}, - {0x48, 0x03}, - {0x3c, 0x00}, - {0x29, 0x00}, - {0x5c, 0x09}, - {0x28, 0x09}, - {0x06, 0x0c}, - {0x68, 0x0b}, - {0x05, 0x0b}, - {0x58, 0x0d}, - {0x16, 0x0d}, - {0x46, 0x08}, - {0x0f, 0x01}, - {0x3f, 0x03}, - {0x0e, 0x03}, - {0x5f, 0x04}, - {0x63, 0x04}, - {0x50, 0x04}, - {0x10, 0x04}, - {0x52, 0x03}, - {0x35, 0x04}, - {0x5b, 0x03}, - {0x14, 0x03}, - {0x3d, 0x00}, - {0x13, 0x00}, - {0x12, 0x0b}, - {0x30, 0x07}, - {0x38, 0x07}, - {0x2f, 0x07}, - {0x3b, 0x01}, - {0x31, 0x01}, - {0x4e, 0x0b}, - {0x3a, 0x00}, - {0x32, 0x00}, - {0x23, 0x03}, - {0x0d, 0x0d}, - {0x0a, 0x03}, - {0x49, 0x01}, - {0x0c, 0x01}, - {0x69, 0x01}, - {0x0b, 0x01}, - {0x25, 0x01}, - {0x3e, 0x02}, - {0x27, 0x02}, - {0x65, 0x01}, - {0x2d, 0x01}, - {0x61, 0x01}, - {0x2b, 0x03}, - {0x66, 0x05}, - {0x2e, 0x05}, - {0x2c, 0x00}, - {0x5e, 0x02}, - {0x34, 0x02}, - {0x51, 0x00}, - {0x59, 0x00}, - {0x40, 0x03}, - {0x55, 0x06}, - {0x53, 0x06}, - {0x4b, 0x04}, - {0x15, 0x04}, - {0x1a, 0x09}, - {0x57, 0x0a}, - {0x17, 0x01}, - {0x47, 0x03}, - {0x62, 0x01}, - {0x39, 0x00}, - {0x1d, 0x00}, - {0x1c, 0x04}, - {0x20, 0x00}, - {0x4f, 0x05}, - {0x22, 0x05}, - {0x45, 0x0b}, - {0x1f, 0x0b}, - {0x5a, 0x00}, - {0x1e, 0x00}, - {0x08, 0x00}, - {0x64, 0x02}, - {0x07, 0x02}, - {0x60, 0x08}, - {0x36, 0x08}, - {0x41, 0x0b}, - {0x33, 0x0b}, - {0x54, 0x00}, - {0x18, 0x01}, - {0x4d, 0x0b}, - {0x19, 0x00} -}; - -const struct WindowTemplate gUnknown_847A218[] = { +static const struct WindowTemplate gUnknown_847A218[] = { {0, 3, 1, 27, 18, 15, 0x001}, DUMMY_WIN_TEMPLATE }; -const u32 gUnknown_847A228 = 0x70; // unused +static const u32 gUnknown_847A228 = 0x70; // unused -const u8 gUnknown_847A22C[3] = {0, 2, 3}; +static const u8 gUnknown_847A22C[3] = {0, 2, 3}; -void (*const gUnknown_847A230[])(void) = { +static void (*const gUnknown_847A230[])(void) = { sub_815DD44, sub_815DF54, sub_815E160, sub_815E1C0, sub_815E1F0, - sub_815E218, + TTSpecial_HasReachedTheRoof, sub_815E28C, sub_815E394, sub_815E408, sub_815E4B0, - sub_815E56C, + TTSpecial_StartTimer, sub_815E5C4, sub_815E5F0, sub_815E658, @@ -449,18 +352,18 @@ void (*const gUnknown_847A230[])(void) = { sub_815E9C8 }; -const u16 gUnknown_847A284[8][3] = { - {0x012a, 0x016e, 0x0176}, - {0x012b, 0x016f, 0x0177}, - {0x012c, 0x0170, 0x0178}, - {0x012d, 0x0171, 0x0179}, - {0x012e, 0x0172, 0x017a}, - {0x012f, 0x0173, 0x017b}, - {0x0130, 0x0174, 0x017c}, - {0x0131, 0x0175, 0x017d} +static const u16 sFloorLayouts[8][3] = { + {LAYOUT_SEVEN_ISLAND_TRAINER_TOWER_1F, LAYOUT_UNUSED_LAYOUT_834BC2C, LAYOUT_UNUSED_LAYOUT_834D06C}, + {LAYOUT_SEVEN_ISLAND_TRAINER_TOWER_2F, LAYOUT_UNUSED_LAYOUT_834BEB4, LAYOUT_UNUSED_LAYOUT_834D2F4}, + {LAYOUT_SEVEN_ISLAND_TRAINER_TOWER_3F, LAYOUT_UNUSED_LAYOUT_834C13C, LAYOUT_UNUSED_LAYOUT_834D57C}, + {LAYOUT_SEVEN_ISLAND_TRAINER_TOWER_4F, LAYOUT_UNUSED_LAYOUT_834C3C4, LAYOUT_UNUSED_LAYOUT_834D804}, + {LAYOUT_SEVEN_ISLAND_TRAINER_TOWER_5F, LAYOUT_UNUSED_LAYOUT_834C64C, LAYOUT_UNUSED_LAYOUT_834DA8C}, + {LAYOUT_SEVEN_ISLAND_TRAINER_TOWER_6F, LAYOUT_UNUSED_LAYOUT_834C8D4, LAYOUT_UNUSED_LAYOUT_834DD14}, + {LAYOUT_SEVEN_ISLAND_TRAINER_TOWER_7F, LAYOUT_UNUSED_LAYOUT_834CB5C, LAYOUT_UNUSED_LAYOUT_834DF9C}, + {LAYOUT_SEVEN_ISLAND_TRAINER_TOWER_8F, LAYOUT_UNUSED_LAYOUT_834CDE4, LAYOUT_UNUSED_LAYOUT_834E224} }; -const u16 gUnknown_847A2B4[] = { +static const u16 gUnknown_847A2B4[] = { ITEM_HP_UP, ITEM_PROTEIN, ITEM_IRON, @@ -478,24 +381,24 @@ const u16 gUnknown_847A2B4[] = { ITEM_UP_GRADE }; -const u16 gUnknown_847A2D2[] = { - 0x011d, - 0x011c, - 0x011c, - 0x011b, - 0x011d, - 0x011d, - 0x011b, - 0x011b, - 0x011d, - 0x011c, - 0x011d, - 0x011d, - 0x011d, - 0x011d +static const u16 gUnknown_847A2D2[] = { + MUS_SHOUNEN, + MUS_SHOUJO, + MUS_SHOUJO, + MUS_ROCKET, + MUS_SHOUNEN, + MUS_SHOUNEN, + MUS_ROCKET, + MUS_ROCKET, + MUS_SHOUNEN, + MUS_SHOUJO, + MUS_SHOUNEN, + MUS_SHOUNEN, + MUS_SHOUNEN, + MUS_SHOUNEN }; -const u8 gUnknown_847A2EE[][2] = { +static const u8 sSingleBattleChallengeMonIdxs[][2] = { {0x00, 0x02}, {0x01, 0x03}, {0x02, 0x04}, @@ -506,7 +409,7 @@ const u8 gUnknown_847A2EE[][2] = { {0x01, 0x04} }; -const u8 gUnknown_847A2FE[][2] = { +static const u8 sDoubleBattleChallengeMonIdxs[][2] = { {0x00, 0x01}, {0x01, 0x03}, {0x02, 0x00}, @@ -517,7 +420,7 @@ const u8 gUnknown_847A2FE[][2] = { {0x01, 0x05} }; -const u8 gUnknown_847A30E[][3] = { +static const u8 sKnockoutChallengeMonIdxs[][3] = { {0x00, 0x02, 0x04}, {0x01, 0x03, 0x05}, {0x02, 0x03, 0x01}, @@ -529,85 +432,7 @@ const u8 gUnknown_847A30E[][3] = { }; extern const struct Unk_203F458_Header gUnknown_84827AC; -extern const struct TrainerTowerTrainer *const gUnknown_84827B4[][8]; - -bool32 sub_815D834(void) -{ - // Stubbed out? - return FALSE; -} - -void sub_815D838(void) -{ - u8 i, j; - - for (i = 0; i < 15; i++) - { - const u8 * flags1 = gUnknown_8479D34[i].flags1; - const u8 * flags2 = gUnknown_8479D34[i].flags2; - const u8 * flags3 = gUnknown_8479D34[i].flags3; - for (j = 0; j < 8; j++) - { - if (flags1[j] != 0xFF) - FlagSet(FLAG_TRAINER_TOWER_START + flags1[j]); - if (flags2[j] != 0xFF) - FlagSet(FLAG_TRAINER_TOWER_START + flags2[j]); - if (flags3[j] != 0xFF) - FlagSet(FLAG_TRAINER_TOWER_START + flags3[j]); - } - } -} - -void sub_815D8C8(void) -{ - u16 var = VarGet(VAR_0x4023); - if (var < 1500) { - VarSet(VAR_0x4023, var + 1); - } -} - -void sub_815D8F8(void) -{ - u8 i; - u8 found_map = 0xFF; - for (i = 0; i < 15; i++) - { - if (gUnknown_8479D34[i].mapGroup == gSaveBlock1Ptr->location.mapGroup && gUnknown_8479D34[i].mapNum == gSaveBlock1Ptr->location.mapNum) - found_map = i; - } - - if (found_map == 0xFF) - return; - if (VarGet(VAR_0x4023) >= 1500) - { - VarSet(VAR_0x4023, 0); - sub_815D838(); - sub_815D96C(); - } -} - -void sub_815D96C(void) -{ - u8 i, j; - const u8 * flags; - u16 rval; - - for (i = 0; i < 15; i++) - { - rval = Random() % 100; - if (rval >= 90) - flags = gUnknown_8479D34[i].flags1; - else if (rval >= 60) - flags = gUnknown_8479D34[i].flags2; - else - flags = gUnknown_8479D34[i].flags3; - for (j = 0; j < 8; j++) - { - if (flags[j] != 0xFF) - FlagClear(FLAG_TRAINER_TOWER_START + flags[j]); - } - } -} +extern const struct TrainerTowerFloor *const gUnknown_84827B4[][8]; void sub_815D9E8(void) { @@ -618,17 +443,17 @@ void sub_815D9E8(void) u8 sub_815DA10(void) { - return gFacilityClassToTrainerClass[gUnknown_203F45C->unk_3D]; + return gFacilityClassToTrainerClass[sTrainerTowerOpponent->facilityClass]; } -void sub_815DA28(u8 * dest) +void sub_815DA28(u8 *dest) { - StringCopyN(dest, gUnknown_203F45C->unk_00, 11); + StringCopyN(dest, sTrainerTowerOpponent->name, 11); } u8 GetTrainerTowerTrainerFrontSpriteId(void) { - return gFacilityClassToPicIndex[gUnknown_203F45C->unk_3D]; + return gFacilityClassToPicIndex[sTrainerTowerOpponent->facilityClass]; } void InitTrainerTowerBattleStruct(void) @@ -637,91 +462,91 @@ void InitTrainerTowerBattleStruct(void) s32 r9; sub_815DC8C(); - gUnknown_203F45C = AllocZeroed(sizeof(*gUnknown_203F45C)); + sTrainerTowerOpponent = AllocZeroed(sizeof(*sTrainerTowerOpponent)); r10 = VarGet(VAR_0x4001); - StringCopyN(gUnknown_203F45C->unk_00, gUnknown_203F458->unk_0004.trainers[gUnknown_203F458->unk_0000].unk_004[r10].unk_000, 11); + StringCopyN(sTrainerTowerOpponent->name, sTrainerTowerState->unk_0004.floors[sTrainerTowerState->floorIdx].trainers[r10].name, 11); for (r9 = 0; r9 < 6; r9++) { - gUnknown_203F45C->unk_0C[r9] = gUnknown_203F458->unk_0004.trainers[gUnknown_203F458->unk_0000].unk_004[r10].unk_01A[r9]; - gUnknown_203F45C->unk_18[r9] = gUnknown_203F458->unk_0004.trainers[gUnknown_203F458->unk_0000].unk_004[r10].unk_026[r9]; + sTrainerTowerOpponent->speechWin[r9] = sTrainerTowerState->unk_0004.floors[sTrainerTowerState->floorIdx].trainers[r10].speechWin[r9]; + sTrainerTowerOpponent->speechLose[r9] = sTrainerTowerState->unk_0004.floors[sTrainerTowerState->floorIdx].trainers[r10].speechLose[r9]; - if (gUnknown_203F458->unk_0004.trainers[gUnknown_203F458->unk_0000].unk_002 == 1) + if (sTrainerTowerState->unk_0004.floors[sTrainerTowerState->floorIdx].challengeType == 1) { - gUnknown_203F45C->unk_24[r9] = gUnknown_203F458->unk_0004.trainers[gUnknown_203F458->unk_0000].unk_004[r10 + 1].unk_01A[r9]; - gUnknown_203F45C->unk_30[r9] = gUnknown_203F458->unk_0004.trainers[gUnknown_203F458->unk_0000].unk_004[r10 + 1].unk_026[r9]; + sTrainerTowerOpponent->speechWin2[r9] = sTrainerTowerState->unk_0004.floors[sTrainerTowerState->floorIdx].trainers[r10 + 1].speechWin[r9]; + sTrainerTowerOpponent->speechLose2[r9] = sTrainerTowerState->unk_0004.floors[sTrainerTowerState->floorIdx].trainers[r10 + 1].speechLose[r9]; } } - gUnknown_203F45C->unk_3C = gUnknown_203F458->unk_0004.trainers[gUnknown_203F458->unk_0000].unk_002; - gUnknown_203F45C->unk_3D = gUnknown_203F458->unk_0004.trainers[gUnknown_203F458->unk_0000].unk_004[r10].unk_00B; - gUnknown_203F45C->unk_3E = gUnknown_203F458->unk_0004.trainers[gUnknown_203F458->unk_0000].unk_004[r10].unk_00C; + sTrainerTowerOpponent->battleType = sTrainerTowerState->unk_0004.floors[sTrainerTowerState->floorIdx].challengeType; + sTrainerTowerOpponent->facilityClass = sTrainerTowerState->unk_0004.floors[sTrainerTowerState->floorIdx].trainers[r10].facilityClass; + sTrainerTowerOpponent->gender = sTrainerTowerState->unk_0004.floors[sTrainerTowerState->floorIdx].trainers[r10].gender; SetVBlankCounter1Ptr(&gSaveBlock1Ptr->unkArray[gSaveBlock1Ptr->unkArrayIdx].unk0); sub_815DD2C(); } void FreeTrainerTowerBattleStruct(void) { - Free(gUnknown_203F45C); - gUnknown_203F45C = NULL; + Free(sTrainerTowerOpponent); + sTrainerTowerOpponent = NULL; } -void sub_815DBF4(u8 * dest, u8 opponentIdx) +void sub_815DBF4(u8 *dest, u8 opponentIdx) // TTower_GetBeforeBattleMessage? { VarSet(VAR_0x4003, opponentIdx); - sub_815E068(gUnknown_203F45C->unk_3C, gUnknown_203F45C->unk_3D); + TrainerTowerGetOpponentTextColor(sTrainerTowerOpponent->battleType, sTrainerTowerOpponent->facilityClass); if (opponentIdx == 0) - sub_815DEFC(gUnknown_203F45C->unk_0C, dest); + TT_ConvertEasyChatMessageToString(sTrainerTowerOpponent->speechWin, dest); else - sub_815DEFC(gUnknown_203F45C->unk_24, dest); + TT_ConvertEasyChatMessageToString(sTrainerTowerOpponent->speechWin2, dest); } -void sub_815DC40(u8 * dest, u8 opponentIdx) +void sub_815DC40(u8 *dest, u8 opponentIdx) // TTower_GetAfterBattleMessage? { VarSet(VAR_0x4003, opponentIdx); - sub_815E068(gUnknown_203F45C->unk_3C, gUnknown_203F45C->unk_3D); + TrainerTowerGetOpponentTextColor(sTrainerTowerOpponent->battleType, sTrainerTowerOpponent->facilityClass); if (opponentIdx == 0) - sub_815DEFC(gUnknown_203F45C->unk_18, dest); + TT_ConvertEasyChatMessageToString(sTrainerTowerOpponent->speechLose, dest); else - sub_815DEFC(gUnknown_203F45C->unk_30, dest); + TT_ConvertEasyChatMessageToString(sTrainerTowerOpponent->speechLose2, dest); } #ifdef NONMATCHING -void sub_815DC8C(void) // fakematching +static void sub_815DC8C(void) // fakematching { u32 whichTimer = gSaveBlock1Ptr->unkArrayIdx; s32 r4; - const struct TrainerTowerTrainer *const * r7; + const struct TrainerTowerFloor *const * r7; - gUnknown_203F458 = AllocZeroed(sizeof(*gUnknown_203F458)); - gUnknown_203F458->unk_0000 = gMapHeader.mapDataId - 0x2A; + sTrainerTowerState = AllocZeroed(sizeof(*sTrainerTowerState)); + sTrainerTowerState->floorIdx = gMapHeader.mapDataId - 42; if (sub_815D834() == TRUE) - CEReaderTool_LoadTrainerTower(&gUnknown_203F458->unk_0004); + CEReaderTool_LoadTrainerTower(&sTrainerTowerState->unk_0004); else { - struct UnkStruct_203F458 * r0_ = gUnknown_203F458; + struct UnkStruct_203F458 * r0_ = sTrainerTowerState; const struct Unk_203F458_Header * r1 = &gUnknown_84827AC; // *r0_ = *r1; - memcpy(&r0_->unk_0004.unk_0000, r1, sizeof(struct Unk_203F458_Header)); -// gUnknown_203F458->unk_0004.unk_0000 = gUnknown_84827AC; + memcpy(&r0_->unk_0004.floorIdx, r1, sizeof(struct Unk_203F458_Header)); +// sTrainerTowerState->unk_0004.floorIdx = gUnknown_84827AC; r7 = gUnknown_84827B4[whichTimer]; for (r4 = 0; r4 < 8; r4++) { - void * r0 = gUnknown_203F458; - r0 = r4 * sizeof(struct TrainerTowerTrainer) + r0; - r0 += offsetof(struct UnkStruct_203F458, unk_0004.trainers); - memcpy(r0, r7[r4], sizeof(struct TrainerTowerTrainer)); + void * r0 = sTrainerTowerState; + r0 = r4 * sizeof(struct TrainerTowerFloor) + r0; + r0 += offsetof(struct UnkStruct_203F458, unk_0004.floors); + memcpy(r0, r7[r4], sizeof(struct TrainerTowerFloor)); // r0[r4] = *r7[r4]; } - gUnknown_203F458->unk_0004.unk4 = CalcByteArraySum((void *)gUnknown_203F458->unk_0004.trainers, sizeof(gUnknown_203F458->unk_0004.trainers)); - sub_815EC0C(); + sTrainerTowerState->unk_0004.unk4 = CalcByteArraySum((void *)sTrainerTowerState->unk_0004.floors, sizeof(sTrainerTowerState->unk_0004.floors)); + ValidateOrResetCurTrainerTowerRecord(); } } #else NAKED -void sub_815DC8C(void) +static void sub_815DC8C(void) { asm_unified("\tpush {r4-r7,lr}\n" "\tldr r0, _0815DCBC @ =gSaveBlock1Ptr\n" @@ -729,7 +554,7 @@ void sub_815DC8C(void) "\tldr r1, _0815DCC0 @ =0x00003d34\n" "\tadds r0, r1\n" "\tldr r5, [r0]\n" - "\tldr r4, _0815DCC4 @ =gUnknown_203F458\n" + "\tldr r4, _0815DCC4 @ =sTrainerTowerState\n" "\tldr r0, _0815DCC8 @ =0x00001f0c\n" "\tbl AllocZeroed\n" "\tstr r0, [r4]\n" @@ -747,7 +572,7 @@ void sub_815DC8C(void) "\t.align 2, 0\n" "_0815DCBC: .4byte gSaveBlock1Ptr\n" "_0815DCC0: .4byte 0x00003d34\n" - "_0815DCC4: .4byte gUnknown_203F458\n" + "_0815DCC4: .4byte sTrainerTowerState\n" "_0815DCC8: .4byte 0x00001f0c\n" "_0815DCCC: .4byte gMapHeader\n" "_0815DCD0:\n" @@ -762,7 +587,7 @@ void sub_815DC8C(void) "\tmovs r5, 0\n" "\tmovs r4, 0x7\n" "_0815DCE6:\n" - "\tldr r6, _0815DD28 @ =gUnknown_203F458\n" + "\tldr r6, _0815DD28 @ =sTrainerTowerState\n" "\tldr r0, [r6]\n" "\tadds r0, r5, r0\n" "\tadds r0, 0xC\n" @@ -783,7 +608,7 @@ void sub_815DC8C(void) "\tbl CalcByteArraySum\n" "\tldr r1, [r6]\n" "\tstr r0, [r1, 0x8]\n" - "\tbl sub_815EC0C\n" + "\tbl ValidateOrResetCurTrainerTowerRecord\n" "_0815DD18:\n" "\tpop {r4-r7}\n" "\tpop {r0}\n" @@ -791,100 +616,100 @@ void sub_815DC8C(void) "\t.align 2, 0\n" "_0815DD20: .4byte gUnknown_84827AC\n" "_0815DD24: .4byte gUnknown_84827B4\n" - "_0815DD28: .4byte gUnknown_203F458"); + "_0815DD28: .4byte sTrainerTowerState"); } #endif // NONMATCHING -void sub_815DD2C(void) +static void sub_815DD2C(void) { - Free(gUnknown_203F458); - gUnknown_203F458 = NULL; + Free(sTrainerTowerState); + sTrainerTowerState = NULL; } -void sub_815DD44(void) +static void sub_815DD44(void) { - if (gMapHeader.mapDataId - 0x129 > gUnknown_203F458->unk_0004.count) + if (gMapHeader.mapDataId - LAYOUT_SEVEN_ISLAND_TRAINER_TOWER_LOBBY > sTrainerTowerState->unk_0004.count) { gSpecialVar_Result = 3; - SetCurrentMapLayout(0x132); + SetCurrentMapLayout(LAYOUT_SEVEN_ISLAND_TRAINER_TOWER_ROOF); } else { - gSpecialVar_Result = gUnknown_203F458->unk_0004.trainers[gUnknown_203F458->unk_0000].unk_002; - SetCurrentMapLayout(gUnknown_847A284[gUnknown_203F458->unk_0000][gSpecialVar_Result]); - sub_815DDB0(); + gSpecialVar_Result = sTrainerTowerState->unk_0004.floors[sTrainerTowerState->floorIdx].challengeType; + SetCurrentMapLayout(sFloorLayouts[sTrainerTowerState->floorIdx][gSpecialVar_Result]); + SetTrainerTowerNPCGraphics(); } } -void sub_815DDB0(void) +static void SetTrainerTowerNPCGraphics(void) { s32 r3, r4; u8 r1, r2, r4_; - switch (gUnknown_203F458->unk_0004.trainers[gUnknown_203F458->unk_0000].unk_002) + switch (sTrainerTowerState->unk_0004.floors[sTrainerTowerState->floorIdx].challengeType) { - case 0: - r2 = gUnknown_203F458->unk_0004.trainers[gUnknown_203F458->unk_0000].unk_004[0].unk_00B; - for (r3 = 0; r3 < NELEMS(gUnknown_8479ED8); r3++) + case 0: + r2 = sTrainerTowerState->unk_0004.floors[sTrainerTowerState->floorIdx].trainers[0].facilityClass; + for (r3 = 0; r3 < NELEMS(sSingleBattleTrainerInfo); r3++) + { + if (sSingleBattleTrainerInfo[r3].facilityClass == r2) + break; + } + if (r3 != NELEMS(sSingleBattleTrainerInfo)) + r1 = sSingleBattleTrainerInfo[r3].mapObjGfx; + else + r1 = 18; + VarSet(VAR_OBJ_GFX_ID_1, r1); + break; + case 1: + r2 = sTrainerTowerState->unk_0004.floors[sTrainerTowerState->floorIdx].trainers[0].facilityClass; + for (r3 = 0; r3 < NELEMS(sDoubleBattleTrainerInfo); r3++) + { + if (sDoubleBattleTrainerInfo[r3].facilityClass == r2) + break; + } + if (r3 != NELEMS(sDoubleBattleTrainerInfo)) + { + r1 = sDoubleBattleTrainerInfo[r3].mapObjGfx1; + r4_ = sDoubleBattleTrainerInfo[r3].mapObjGfx2; + } + else + { + r1 = MAP_OBJ_GFX_YOUNGSTER; + r4_ = MAP_OBJ_GFX_YOUNGSTER; + } + VarSet(VAR_OBJ_GFX_ID_0, r1); + VarSet(VAR_OBJ_GFX_ID_3, r4_); + break; + case 2: + for (r4 = 0; r4 < 3; r4++) + { + r2 = sTrainerTowerState->unk_0004.floors[sTrainerTowerState->floorIdx].trainers[r4].facilityClass; + for (r3 = 0; r3 < NELEMS(sSingleBattleTrainerInfo); r3++) { - if (gUnknown_8479ED8[r3].unk1 == r2) + if (sSingleBattleTrainerInfo[r3].facilityClass == r2) break; } - if (r3 != NELEMS(gUnknown_8479ED8)) - r1 = gUnknown_8479ED8[r3].unk0; + if (r3 != NELEMS(sSingleBattleTrainerInfo)) + r1 = sSingleBattleTrainerInfo[r3].mapObjGfx; else - r1 = 18; - VarSet(VAR_0x4011, r1); - break; - case 1: - r2 = gUnknown_203F458->unk_0004.trainers[gUnknown_203F458->unk_0000].unk_004[0].unk_00B; - for (r3 = 0; r3 < NELEMS(gUnknown_847A024); r3++) + r1 = MAP_OBJ_GFX_YOUNGSTER; + switch (r4) { - if (gUnknown_847A024[r3].unk2 == r2) - break; - } - if (r3 != NELEMS(gUnknown_847A024)) - { - r1 = gUnknown_847A024[r3].unk0; - r4_ = gUnknown_847A024[r3].unk1; - } - else - { - r1 = 18; - r4_ = 18; - } - VarSet(VAR_0x4010, r1); - VarSet(VAR_0x4013, r4_); - break; - case 2: - for (r4 = 0; r4 < 3; r4++) - { - r2 = gUnknown_203F458->unk_0004.trainers[gUnknown_203F458->unk_0000].unk_004[r4].unk_00B; - for (r3 = 0; r3 < NELEMS(gUnknown_8479ED8); r3++) - { - if (gUnknown_8479ED8[r3].unk1 == r2) - break; - } - if (r3 != NELEMS(gUnknown_8479ED8)) - r1 = gUnknown_8479ED8[r3].unk0; - else - r1 = 18; - switch (r4) - { - case 0: - VarSet(VAR_0x4012, r1); - break; - case 1: - VarSet(VAR_0x4010, r1); - break; - case 2: - VarSet(VAR_0x4011, r1); - break; - } + case 0: + VarSet(VAR_OBJ_GFX_ID_2, r1); + break; + case 1: + VarSet(VAR_OBJ_GFX_ID_0, r1); + break; + case 2: + VarSet(VAR_OBJ_GFX_ID_1, r1); + break; } + } } } -void sub_815DEFC(u16 * ecWords, u8 * dest) +static void TT_ConvertEasyChatMessageToString(u16 *ecWords, u8 *dest) { s32 r1; ConvertEasyChatWordsToString(dest, ecWords, 3, 2); @@ -901,40 +726,40 @@ void sub_815DEFC(u16 * ecWords, u8 * dest) } #ifdef NONMATCHING -void sub_815DF54(void) +static void sub_815DF54(void) { u16 r4 = gSpecialVar_0x8006; u8 r1; - u8 r5 = gUnknown_203F458->unk_0004.trainers[gUnknown_203F458->unk_0000].unk_002; + u8 r5 = sTrainerTowerState->unk_0004.floors[sTrainerTowerState->floorIdx].challengeType; // HOW DO I MATCH THIS CONTROL FLOW?!?! - r1 = gUnknown_203F458->unk_0004.trainers[gUnknown_203F458->unk_0000].unk_004[r5 == 1 ? 0 : r4].unk_00B; + r1 = sTrainerTowerState->unk_0004.floors[sTrainerTowerState->floorIdx].trainers[r5 == 1 ? 0 : r4].facilityClass; switch (gSpecialVar_0x8005) { - case 2: - sub_815E068(r5, r1); - sub_815DEFC(gUnknown_203F458->unk_0004.trainers[gUnknown_203F458->unk_0000].unk_004[r4].unk_00E, gStringVar4); - break; - case 3: - sub_815E068(r5, r1); - sub_815DEFC(gUnknown_203F458->unk_0004.trainers[gUnknown_203F458->unk_0000].unk_004[r4].unk_01A, gStringVar4); - break; - case 4: - sub_815E068(r5, r1); - sub_815DEFC(gUnknown_203F458->unk_0004.trainers[gUnknown_203F458->unk_0000].unk_004[r4].unk_026, gStringVar4); - break; - case 5: - sub_815DEFC(gUnknown_203F458->unk_0004.trainers[gUnknown_203F458->unk_0000].unk_004[r4].unk_032, gStringVar4); - break; + case 2: + TrainerTowerGetOpponentTextColor(r5, r1); + TT_ConvertEasyChatMessageToString(sTrainerTowerState->unk_0004.floors[sTrainerTowerState->floorIdx].trainers[r4].speechBefore, gStringVar4); + break; + case 3: + TrainerTowerGetOpponentTextColor(r5, r1); + TT_ConvertEasyChatMessageToString(sTrainerTowerState->unk_0004.floors[sTrainerTowerState->floorIdx].trainers[r4].speechWin, gStringVar4); + break; + case 4: + TrainerTowerGetOpponentTextColor(r5, r1); + TT_ConvertEasyChatMessageToString(sTrainerTowerState->unk_0004.floors[sTrainerTowerState->floorIdx].trainers[r4].speechLose, gStringVar4); + break; + case 5: + TT_ConvertEasyChatMessageToString(sTrainerTowerState->unk_0004.floors[sTrainerTowerState->floorIdx].trainers[r4].speechAfter, gStringVar4); + break; } } #else NAKED -void sub_815DF54(void) +static void sub_815DF54(void) { asm_unified("\tpush {r4,r5,lr}\n" "\tldr r0, _0815DF90 @ =gSpecialVar_0x8006\n" "\tldrh r4, [r0]\n" - "\tldr r2, _0815DF94 @ =gUnknown_203F458\n" + "\tldr r2, _0815DF94 @ =sTrainerTowerState\n" "\tldr r3, [r2]\n" "\tldrb r1, [r3]\n" "\tlsls r0, r1, 5\n" @@ -964,7 +789,7 @@ void sub_815DF54(void) "\tb _0815E05C\n" "\t.align 2, 0\n" "_0815DF90: .4byte gSpecialVar_0x8006\n" - "_0815DF94: .4byte gUnknown_203F458\n" + "_0815DF94: .4byte sTrainerTowerState\n" "_0815DF98: .4byte gSpecialVar_0x8005\n" "_0815DF9C:\n" "\tcmp r0, 0x4\n" @@ -974,8 +799,8 @@ void sub_815DF54(void) "\tb _0815E05C\n" "_0815DFA6:\n" "\tadds r0, r5, 0\n" - "\tbl sub_815E068\n" - "\tldr r0, _0815DFD0 @ =gUnknown_203F458\n" + "\tbl TrainerTowerGetOpponentTextColor\n" + "\tldr r0, _0815DFD0 @ =sTrainerTowerState\n" "\tldr r0, [r0]\n" "\tldrb r2, [r0]\n" "\tlsls r1, r2, 5\n" @@ -993,11 +818,11 @@ void sub_815DF54(void) "\tadds r0, 0xE\n" "\tb _0815E026\n" "\t.align 2, 0\n" - "_0815DFD0: .4byte gUnknown_203F458\n" + "_0815DFD0: .4byte sTrainerTowerState\n" "_0815DFD4:\n" "\tadds r0, r5, 0\n" - "\tbl sub_815E068\n" - "\tldr r0, _0815DFFC @ =gUnknown_203F458\n" + "\tbl TrainerTowerGetOpponentTextColor\n" + "\tldr r0, _0815DFFC @ =sTrainerTowerState\n" "\tldr r0, [r0]\n" "\tldrb r2, [r0]\n" "\tlsls r1, r2, 5\n" @@ -1015,11 +840,11 @@ void sub_815DF54(void) "\tadds r0, 0x1A\n" "\tb _0815E026\n" "\t.align 2, 0\n" - "_0815DFFC: .4byte gUnknown_203F458\n" + "_0815DFFC: .4byte sTrainerTowerState\n" "_0815E000:\n" "\tadds r0, r5, 0\n" - "\tbl sub_815E068\n" - "\tldr r0, _0815E030 @ =gUnknown_203F458\n" + "\tbl TrainerTowerGetOpponentTextColor\n" + "\tldr r0, _0815E030 @ =sTrainerTowerState\n" "\tldr r0, [r0]\n" "\tldrb r2, [r0]\n" "\tlsls r1, r2, 5\n" @@ -1037,10 +862,10 @@ void sub_815DF54(void) "\tadds r0, 0x26\n" "_0815E026:\n" "\tldr r1, _0815E034 @ =gStringVar4\n" - "\tbl sub_815DEFC\n" + "\tbl TT_ConvertEasyChatMessageToString\n" "\tb _0815E05C\n" "\t.align 2, 0\n" - "_0815E030: .4byte gUnknown_203F458\n" + "_0815E030: .4byte sTrainerTowerState\n" "_0815E034: .4byte gStringVar4\n" "_0815E038:\n" "\tldr r0, [r2]\n" @@ -1059,7 +884,7 @@ void sub_815DF54(void) "\tadds r0, r1\n" "\tadds r0, 0x32\n" "\tldr r1, _0815E064 @ =gStringVar4\n" - "\tbl sub_815DEFC\n" + "\tbl TT_ConvertEasyChatMessageToString\n" "_0815E05C:\n" "\tpop {r4,r5}\n" "\tpop {r0}\n" @@ -1069,95 +894,95 @@ void sub_815DF54(void) } #endif // NONMATCHING -void sub_815E068(u8 battleType, u8 facilityClass) +static void TrainerTowerGetOpponentTextColor(u8 battleType, u8 facilityClass) { u16 r5 = FALSE; s32 r4; switch (battleType) { - case 0: - case 2: - for (r4 = 0; r4 < NELEMS(gUnknown_8479ED8); r4++) - { - if (gUnknown_8479ED8[r4].unk1 == facilityClass) - break; - } - if (r4 != NELEMS(gUnknown_8479ED8)) - r5 = gUnknown_8479ED8[r4].unk2; - break; - case 1: - for (r4 = 0; r4 < NELEMS(gUnknown_847A024); r4++) - { - if (gUnknown_847A024[r4].unk2 == facilityClass) - break; - } - if (r4 != NELEMS(gUnknown_847A024)) - { - if (VarGet(VAR_0x4003)) - r5 = gUnknown_847A024[r4].unk4; - else - r5 = gUnknown_847A024[r4].unk3; - } - break; + case 0: + case 2: + for (r4 = 0; r4 < NELEMS(sSingleBattleTrainerInfo); r4++) + { + if (sSingleBattleTrainerInfo[r4].facilityClass == facilityClass) + break; + } + if (r4 != NELEMS(sSingleBattleTrainerInfo)) + r5 = sSingleBattleTrainerInfo[r4].gender; + break; + case 1: + for (r4 = 0; r4 < NELEMS(sDoubleBattleTrainerInfo); r4++) + { + if (sDoubleBattleTrainerInfo[r4].facilityClass == facilityClass) + break; + } + if (r4 != NELEMS(sDoubleBattleTrainerInfo)) + { + if (VarGet(VAR_0x4003)) + r5 = sDoubleBattleTrainerInfo[r4].gender2; + else + r5 = sDoubleBattleTrainerInfo[r4].gender1; + } + break; } - gUnknown_20370DC = gUnknown_20370DA; - gUnknown_20370DA = r5; + gSpecialVar_PrevTextColor = gSpecialVar_TextColor; + gSpecialVar_TextColor = r5; } -void sub_815E114(void) +static void sub_815E114(void) { SetMainCallback2(CB2_ReturnToFieldContinueScriptPlayMapMusic); } -void sub_815E124(u8 taskId) +static void sub_815E124(u8 taskId) { if (BT_IsDone() == TRUE) { gMain.savedCallback = sub_815E114; CleanupOverworldWindowsAndTilemaps(); - SetMainCallback2(sub_800FD9C); + SetMainCallback2(CB2_InitBattle); DestroyTask(taskId); } } -void sub_815E160(void) +static void sub_815E160(void) { gBattleTypeFlags = BATTLE_TYPE_TRAINER | BATTLE_TYPE_TRAINER_TOWER; - if (gUnknown_203F458->unk_0004.trainers[gUnknown_203F458->unk_0000].unk_002 == 1) + if (sTrainerTowerState->unk_0004.floors[sTrainerTowerState->floorIdx].challengeType == 1) gBattleTypeFlags |= BATTLE_TYPE_DOUBLE; gTrainerBattleOpponent_A = 0; - sub_815E9FC(); + BuildEnemyParty(); CreateTask(sub_815E124, 1); PlayMapChosenOrBattleBGM(0); BT_StartOnField(sub_8080060()); } -void sub_815E1C0(void) +static void sub_815E1C0(void) { if (!gSpecialVar_0x8005) - gSpecialVar_Result = gUnknown_203F458->unk_0004.trainers[gUnknown_203F458->unk_0000].unk_002; + gSpecialVar_Result = sTrainerTowerState->unk_0004.floors[sTrainerTowerState->floorIdx].challengeType; } -void sub_815E1F0(void) +static void sub_815E1F0(void) { gSaveBlock1Ptr->unkArray[gSaveBlock1Ptr->unkArrayIdx].unk8++; } -void sub_815E218(void) +static void TTSpecial_HasReachedTheRoof(void) { u16 mapDataId = gMapHeader.mapDataId; - if (mapDataId - 0x12A == gSaveBlock1Ptr->unkArray[gSaveBlock1Ptr->unkArrayIdx].unk8 && mapDataId - 0x129 <= gUnknown_203F458->unk_0004.trainers[gUnknown_203F458->unk_0000].unk_001) + if (mapDataId - LAYOUT_SEVEN_ISLAND_TRAINER_TOWER_1F == gSaveBlock1Ptr->unkArray[gSaveBlock1Ptr->unkArrayIdx].unk8 && mapDataId - LAYOUT_SEVEN_ISLAND_TRAINER_TOWER_LOBBY <= sTrainerTowerState->unk_0004.floors[sTrainerTowerState->floorIdx].floorIdx) gSpecialVar_Result = FALSE; else gSpecialVar_Result = TRUE; } -void sub_815E28C(void) +static void sub_815E28C(void) { gSaveBlock1Ptr->unkArrayIdx = gSpecialVar_0x8005; if (gSaveBlock1Ptr->unkArrayIdx >= NELEMS(gSaveBlock1Ptr->unkArray)) gSaveBlock1Ptr->unkArrayIdx = 0; - sub_815EC0C(); + ValidateOrResetCurTrainerTowerRecord(); if (!sub_815D834()) gSaveBlock1Ptr->unkArray[gSaveBlock1Ptr->unkArrayIdx].unkA_5 = TRUE; else @@ -1169,7 +994,7 @@ void sub_815E28C(void) gSaveBlock1Ptr->unkArray[gSaveBlock1Ptr->unkArrayIdx].unkA_1 = FALSE; } -void sub_815E394(void) +static void sub_815E394(void) { DisableVBlankCounter1(); gSpecialVar_Result = 0; @@ -1180,9 +1005,9 @@ void sub_815E394(void) gSaveBlock1Ptr->unkArray[gSaveBlock1Ptr->unkArrayIdx].unkA_2 = TRUE; } -void sub_815E408(void) +static void sub_815E408(void) { - u16 itemId = gUnknown_847A2B4[gUnknown_203F458->unk_0004.trainers->unk_003]; + u16 itemId = gUnknown_847A2B4[sTrainerTowerState->unk_0004.floors->prize]; if (gSaveBlock1Ptr->unkArray[gSaveBlock1Ptr->unkArrayIdx].unkA_0) gSpecialVar_Result = 2; else if (AddBagItem(itemId, 1) == 1) @@ -1195,13 +1020,13 @@ void sub_815E408(void) gSpecialVar_Result = 1; } -void sub_815E4B0(void) +static void sub_815E4B0(void) { if (gSaveBlock1Ptr->unkArray[gSaveBlock1Ptr->unkArrayIdx].unkA_1) gSpecialVar_Result = 2; - else if (sub_815EDDC(&gSaveBlock1Ptr->unkArray[gSaveBlock1Ptr->unkArrayIdx].unk4) > gSaveBlock1Ptr->unkArray[gSaveBlock1Ptr->unkArrayIdx].unk0) + else if (GetTrainerTowerRecordTime(&gSaveBlock1Ptr->unkArray[gSaveBlock1Ptr->unkArrayIdx].unk4) > gSaveBlock1Ptr->unkArray[gSaveBlock1Ptr->unkArrayIdx].unk0) { - sub_815EDF4(&gSaveBlock1Ptr->unkArray[gSaveBlock1Ptr->unkArrayIdx].unk4, gSaveBlock1Ptr->unkArray[gSaveBlock1Ptr->unkArrayIdx].unk0); + SetTrainerTowerRecordTime(&gSaveBlock1Ptr->unkArray[gSaveBlock1Ptr->unkArrayIdx].unk4, gSaveBlock1Ptr->unkArray[gSaveBlock1Ptr->unkArrayIdx].unk0); gSpecialVar_Result = 0; } else @@ -1209,7 +1034,7 @@ void sub_815E4B0(void) gSaveBlock1Ptr->unkArray[gSaveBlock1Ptr->unkArrayIdx].unkA_1 = TRUE; } -void sub_815E56C(void) +static void TTSpecial_StartTimer(void) { if (!gSaveBlock1Ptr->unkArray[gSaveBlock1Ptr->unkArrayIdx].unkA_2) { @@ -1220,12 +1045,12 @@ void sub_815E56C(void) } } -void sub_815E5C4(void) +static void sub_815E5C4(void) { gSaveBlock1Ptr->unkArray[gSaveBlock1Ptr->unkArrayIdx].unkA_3 = 1; } -void sub_815E5F0(void) +static void sub_815E5F0(void) { if (gSaveBlock1Ptr->unkArray[gSaveBlock1Ptr->unkArrayIdx].unkA_3) { @@ -1259,7 +1084,7 @@ void sub_815E5F0(void) ConvertIntToDecimalStringN(gStringVar3, centiseconds, STR_CONV_MODE_LEADING_ZEROS, 2); \ }) -void sub_815E658(void) +static void sub_815E658(void) { if (gSaveBlock1Ptr->unkArray[gSaveBlock1Ptr->unkArrayIdx].unk0 >= 215999) { @@ -1270,13 +1095,12 @@ void sub_815E658(void) PRINT_TOWER_TIME(gSaveBlock1Ptr->unkArray[gSaveBlock1Ptr->unkArrayIdx].unk0); } -void sub_815E720(void) +static void sub_815E720(void) { u8 windowId; s32 i; - s32 minutes, seconds, centiseconds; - sub_815EC0C(); + ValidateOrResetCurTrainerTowerRecord(); windowId = AddWindow(gUnknown_847A218); LoadStdWindowFrameGfx(); DrawStdWindowFrame(windowId, FALSE); @@ -1284,7 +1108,7 @@ void sub_815E720(void) for (i = 0; i < 4; i++) { - PRINT_TOWER_TIME(sub_815EDDC(&gSaveBlock1Ptr->unkArray[gSaveBlock1Ptr->unkArrayIdx].unk4)); + PRINT_TOWER_TIME(GetTrainerTowerRecordTime(&gSaveBlock1Ptr->unkArray[gSaveBlock1Ptr->unkArrayIdx].unk4)); StringExpandPlaceholders(gStringVar4, gUnknown_83FE998); AddTextPrinterParameterized(windowId, 2, gUnknown_83FE9C4[i - 1], 0x18, 0x24 + 0x14 * i, 0xFF, NULL); @@ -1296,23 +1120,23 @@ void sub_815E720(void) VarSet(VAR_0x4001, windowId); } -void sub_815E88C(void) +static void sub_815E88C(void) { u8 windowId = VarGet(VAR_0x4001); ClearStdWindowAndFrameToTransparent(windowId, TRUE); RemoveWindow(windowId); } -void sub_815E8B4(void) +static void sub_815E8B4(void) { gSpecialVar_Result = GetMonsStateToDoubles(); } -void sub_815E8CC(void) +static void sub_815E8CC(void) { - if (gUnknown_203F458->unk_0004.count != gUnknown_203F458->unk_0004.trainers[0].unk_001) + if (sTrainerTowerState->unk_0004.count != sTrainerTowerState->unk_0004.floors[0].floorIdx) { - ConvertIntToDecimalStringN(gStringVar1, gUnknown_203F458->unk_0004.count, STR_CONV_MODE_LEFT_ALIGN, 1); + ConvertIntToDecimalStringN(gStringVar1, sTrainerTowerState->unk_0004.count, STR_CONV_MODE_LEFT_ALIGN, 1); gSpecialVar_Result = TRUE; } else @@ -1321,9 +1145,9 @@ void sub_815E8CC(void) } } -void sub_815E908(void) +static void sub_815E908(void) { - if (gMapHeader.mapDataId == 0x0129 && VarGet(VAR_0x4082) == 0) + if (gMapHeader.mapDataId == LAYOUT_SEVEN_ISLAND_TRAINER_TOWER_LOBBY && VarGet(VAR_MAP_SCENE_TRAINER_TOWER) == 0) { gSpecialVar_Result = FALSE; } @@ -1333,20 +1157,20 @@ void sub_815E908(void) } } -void sub_815E948(void) +static void sub_815E948(void) { s32 i; u16 var_4001 = VarGet(VAR_0x4001); - u8 r1 = gUnknown_203F458->unk_0004.trainers[gUnknown_203F458->unk_0000].unk_004[var_4001].unk_00B; + u8 r1 = sTrainerTowerState->unk_0004.floors[sTrainerTowerState->floorIdx].trainers[var_4001].facilityClass; - for (i = 0; i < NELEMS(gUnknown_847A074); i++) + for (i = 0; i < NELEMS(sTrainerEncounterMusicLUT); i++) { - if (gUnknown_847A074[i].unk0 == gFacilityClassToTrainerClass[r1]) + if (sTrainerEncounterMusicLUT[i].unk0 == gFacilityClassToTrainerClass[r1]) break; } - if (i != NELEMS(gUnknown_847A074)) + if (i != NELEMS(sTrainerEncounterMusicLUT)) { - var_4001 = gUnknown_847A074[i].unk1; + var_4001 = sTrainerEncounterMusicLUT[i].unk1; } else { @@ -1355,45 +1179,46 @@ void sub_815E948(void) PlayNewMapMusic(gUnknown_847A2D2[var_4001]); } -void sub_815E9C8(void) +static void sub_815E9C8(void) { gSpecialVar_Result = gSaveBlock1Ptr->unkArray[gSaveBlock1Ptr->unkArrayIdx].unkA_2; } -void sub_815E9FC(void) +static void BuildEnemyParty(void) { - u16 r4 = VarGet(VAR_0x4001); - s32 r9 = GetPartyMaxLevel(); - u8 r5 = gSaveBlock1Ptr->unkArray[gSaveBlock1Ptr->unkArrayIdx].unk8; - s32 r6; - u8 r2; + u16 trainerIdx = VarGet(VAR_0x4001); + s32 level = GetPartyMaxLevel(); + u8 floorIdx = gSaveBlock1Ptr->unkArray[gSaveBlock1Ptr->unkArrayIdx].unk8; + s32 i; + u8 monIdx; ZeroEnemyPartyMons(); - switch (gUnknown_203F458->unk_0004.trainers[gUnknown_203F458->unk_0000].unk_002) + switch (sTrainerTowerState->unk_0004.floors[sTrainerTowerState->floorIdx].challengeType) { - case 0: - default: - for (r6 = 0; r6 < 2; r6++) - { - r2 = gUnknown_847A2EE[r5][r6]; - gUnknown_203F458->unk_0004.trainers[gUnknown_203F458->unk_0000].unk_004[r4].unk_040[r2].level = r9; - CreateBattleTowerMon(&gEnemyParty[r6], &gUnknown_203F458->unk_0004.trainers[gUnknown_203F458->unk_0000].unk_004[r4].unk_040[r2]); - } - break; - case 1: - r2 = gUnknown_847A2FE[r5][0]; - gUnknown_203F458->unk_0004.trainers[gUnknown_203F458->unk_0000].unk_004[0].unk_040[r2].level = r9; - CreateBattleTowerMon(&gEnemyParty[0], &gUnknown_203F458->unk_0004.trainers[gUnknown_203F458->unk_0000].unk_004[0].unk_040[r2]); - r2 = gUnknown_847A2FE[r5][1]; - gUnknown_203F458->unk_0004.trainers[gUnknown_203F458->unk_0000].unk_004[1].unk_040[r2].level = r9; - CreateBattleTowerMon(&gEnemyParty[1], &gUnknown_203F458->unk_0004.trainers[gUnknown_203F458->unk_0000].unk_004[1].unk_040[r2]); - break; - case 2: - r2 = gUnknown_847A30E[r5][r4]; - gUnknown_203F458->unk_0004.trainers[gUnknown_203F458->unk_0000].unk_004[r4].unk_040[r2].level = r9; - CreateBattleTowerMon(&gEnemyParty[0], &gUnknown_203F458->unk_0004.trainers[gUnknown_203F458->unk_0000].unk_004[r4].unk_040[r2]); - break; + case 0: + default: + for (i = 0; i < 2; i++) + { + monIdx = sSingleBattleChallengeMonIdxs[floorIdx][i]; + sTrainerTowerState->unk_0004.floors[sTrainerTowerState->floorIdx].trainers[trainerIdx].mons[monIdx].level = level; + CreateBattleTowerMon(&gEnemyParty[i], &sTrainerTowerState->unk_0004.floors[sTrainerTowerState->floorIdx].trainers[trainerIdx].mons[monIdx]); + } + break; + case 1: + monIdx = sDoubleBattleChallengeMonIdxs[floorIdx][0]; + sTrainerTowerState->unk_0004.floors[sTrainerTowerState->floorIdx].trainers[0].mons[monIdx].level = level; + CreateBattleTowerMon(&gEnemyParty[0], &sTrainerTowerState->unk_0004.floors[sTrainerTowerState->floorIdx].trainers[0].mons[monIdx]); + + monIdx = sDoubleBattleChallengeMonIdxs[floorIdx][1]; + sTrainerTowerState->unk_0004.floors[sTrainerTowerState->floorIdx].trainers[1].mons[monIdx].level = level; + CreateBattleTowerMon(&gEnemyParty[1], &sTrainerTowerState->unk_0004.floors[sTrainerTowerState->floorIdx].trainers[1].mons[monIdx]); + break; + case 2: + monIdx = sKnockoutChallengeMonIdxs[floorIdx][trainerIdx]; + sTrainerTowerState->unk_0004.floors[sTrainerTowerState->floorIdx].trainers[trainerIdx].mons[monIdx].level = level; + CreateBattleTowerMon(&gEnemyParty[0], &sTrainerTowerState->unk_0004.floors[sTrainerTowerState->floorIdx].trainers[trainerIdx].mons[monIdx]); + break; } } @@ -1415,12 +1240,12 @@ static s32 GetPartyMaxLevel(void) return topLevel; } -void sub_815EC0C(void) +static void ValidateOrResetCurTrainerTowerRecord(void) { - if (gSaveBlock1Ptr->unkArray[gSaveBlock1Ptr->unkArrayIdx].unk9 != gUnknown_203F458->unk_0004.id) + if (gSaveBlock1Ptr->unkArray[gSaveBlock1Ptr->unkArrayIdx].unk9 != sTrainerTowerState->unk_0004.id) { - gSaveBlock1Ptr->unkArray[gSaveBlock1Ptr->unkArrayIdx].unk9 = gUnknown_203F458->unk_0004.id; - sub_815EDF4(&gSaveBlock1Ptr->unkArray[gSaveBlock1Ptr->unkArrayIdx].unk4, 215999); + gSaveBlock1Ptr->unkArray[gSaveBlock1Ptr->unkArrayIdx].unk9 = sTrainerTowerState->unk_0004.id; + SetTrainerTowerRecordTime(&gSaveBlock1Ptr->unkArray[gSaveBlock1Ptr->unkArrayIdx].unk4, 215999); gSaveBlock1Ptr->unkArray[gSaveBlock1Ptr->unkArrayIdx].unkA_0 = FALSE; } } @@ -1432,12 +1257,12 @@ void PrintTrainerTowerRecords(void) sub_815DC8C(); FillWindowPixelRect(0, 0, 0, 0, 0xd8, 0x90); - sub_815EC0C(); + ValidateOrResetCurTrainerTowerRecord(); AddTextPrinterParameterized3(0, 2, 0x4a, 0, gUnknown_847A22C, 0, gUnknown_83FE982); for (i = 0; i < 4; i++) { - PRINT_TOWER_TIME(sub_815EDDC(&gSaveBlock1Ptr->unkArray[i].unk4)); + PRINT_TOWER_TIME(GetTrainerTowerRecordTime(&gSaveBlock1Ptr->unkArray[i].unk4)); StringExpandPlaceholders(gStringVar4, gUnknown_83FE998); AddTextPrinterParameterized3(windowId, 2, 0x18, 0x24 + 0x14 * i, gUnknown_847A22C, 0, gUnknown_83FE9C4[i]); AddTextPrinterParameterized3(windowId, 2, 0x60, 0x24 + 0x14 * i, gUnknown_847A22C, 0, gStringVar4); @@ -1448,12 +1273,12 @@ void PrintTrainerTowerRecords(void) sub_815DD2C(); } -u32 sub_815EDDC(u32 * counter) +static u32 GetTrainerTowerRecordTime(u32 *counter) { return *counter ^ gSaveBlock2Ptr->encryptionKey; } -void sub_815EDF4(u32 * counter, u32 value) +static void SetTrainerTowerRecordTime(u32 *counter, u32 value) { *counter = value ^ gSaveBlock2Ptr->encryptionKey; } @@ -1464,6 +1289,6 @@ void ResetTrainerTowerResults(void) for (i = 0; i < 4; i++) { - sub_815EDF4(&gSaveBlock1Ptr->unkArray[i].unk4, 215999); + SetTrainerTowerRecordTime(&gSaveBlock1Ptr->unkArray[i].unk4, 215999); } } diff --git a/src/unk_8159F40.c b/src/unk_8159F40.c index ab27cea63..ef21d19d0 100644 --- a/src/unk_8159F40.c +++ b/src/unk_8159F40.c @@ -7,36 +7,133 @@ #include "metatile_behavior.h" #include "link.h" #include "link_rfu.h" +#include "constants/species.h" +#include "constants/moves.h" +#include "constants/pokemon.h" -struct UnkStruct_84792D0 +struct PokedudeBattlePartyInfo { - u8 field_0; - u8 field_1; - u16 field_2; - u16 field_4[4]; - u8 field_C; - u8 field_D; + u8 side; + u8 level; + u16 species; + u16 moves[4]; + u8 nature; + u8 gender; }; -extern const struct UnkStruct_84792D0 *const gUnknown_84792D0[]; +static const struct PokedudeBattlePartyInfo sParties_Battle[] = { + { + .side = 0, + .level = 15, + .species = SPECIES_RATTATA, + .moves = {MOVE_TACKLE, MOVE_TAIL_WHIP, MOVE_HYPER_FANG, MOVE_QUICK_ATTACK}, + .nature = NATURE_LONELY, + .gender = MALE + }, + { + .side = 1, + .level = 18, + .species = SPECIES_PIDGEY, + .moves = {MOVE_TACKLE, MOVE_SAND_ATTACK, MOVE_GUST, MOVE_QUICK_ATTACK}, + .nature = NATURE_NAUGHTY, + .gender = MALE + }, + {0xFF} +}; -void sub_8159F40(void) +static const struct PokedudeBattlePartyInfo sParties_Status[] = { + { + .side = 0, + .level = 15, + .species = SPECIES_RATTATA, + .moves = {MOVE_TACKLE, MOVE_TAIL_WHIP, MOVE_HYPER_FANG, MOVE_QUICK_ATTACK}, + .nature = NATURE_LONELY, + .gender = MALE + }, + { + .side = 1, + .level = 14, + .species = SPECIES_ODDISH, + .moves = {MOVE_ABSORB, MOVE_SWEET_SCENT, MOVE_POISON_POWDER}, + .nature = NATURE_RASH, + .gender = MALE + }, + {0xFF} +}; + +static const struct PokedudeBattlePartyInfo sParties_Matchups[] = { + { + .side = 0, + .level = 15, + .species = SPECIES_POLIWAG, + .moves = {MOVE_WATER_GUN, MOVE_HYPNOSIS, MOVE_BUBBLE}, + .nature = NATURE_RASH, + .gender = MALE + }, + { + .side = 0, + .level = 15, + .species = SPECIES_BUTTERFREE, + .moves = {MOVE_CONFUSION, MOVE_POISON_POWDER, MOVE_STUN_SPORE, MOVE_SLEEP_POWDER}, + .nature = NATURE_RASH, + .gender = MALE + }, + { + .side = 1, + .level = 14, + .species = SPECIES_ODDISH, + .moves = {MOVE_ABSORB, MOVE_SWEET_SCENT, MOVE_POISON_POWDER}, + .nature = NATURE_RASH, + .gender = MALE + }, + {0xFF} +}; + +static const struct PokedudeBattlePartyInfo sParties_Catching[] = { + { + .side = 0, + .level = 15, + .species = SPECIES_BUTTERFREE, + .moves = {MOVE_CONFUSION, MOVE_POISON_POWDER, MOVE_SLEEP_POWDER, MOVE_STUN_SPORE}, + .nature = NATURE_RASH, + .gender = MALE + }, + { + .side = 1, + .level = 11, + .species = SPECIES_JIGGLYPUFF, + .moves = {MOVE_SING, MOVE_DEFENSE_CURL, MOVE_POUND}, + .nature = NATURE_CAREFUL, + .gender = MALE + }, + {0xFF} +}; + + +static const struct PokedudeBattlePartyInfo *const sPokedudeBattlePartyPointers[] = { + sParties_Battle, + sParties_Status, + sParties_Matchups, + sParties_Catching +}; + +void InitPokedudePartyAndOpponent(void) { s32 i, j; - struct Pokemon *mon; + struct Pokemon * mon; s32 myIdx = 0; s32 opIdx = 0; - const struct UnkStruct_84792D0 * data; + const struct PokedudeBattlePartyInfo * data; gBattleTypeFlags = BATTLE_TYPE_POKEDUDE; ZeroPlayerPartyMons(); ZeroEnemyPartyMons(); - data = gUnknown_84792D0[gSpecialVar_0x8004]; + data = sPokedudeBattlePartyPointers[gSpecialVar_0x8004]; i = 0; do { - if (data[i].field_0 == 0) + if (data[i].side == 0) { mon = &gPlayerParty[myIdx]; myIdx++; @@ -46,15 +143,17 @@ void sub_8159F40(void) mon = &gEnemyParty[opIdx]; opIdx++; } - CreateMonWithGenderNatureLetter(mon, data[i].field_2, data[i].field_1, 0, data[i].field_D, data[i].field_C, 0); + CreateMonWithGenderNatureLetter(mon, data[i].species, data[i].level, 0, data[i].gender, data[i].nature, 0); for (j = 0; j < 4; j++) { - SetMonMoveSlot(mon, data[i].field_4[j], j); + SetMonMoveSlot(mon, data[i].moves[j], j); } i++; - } while (data[i].field_0 != 0xFF); + } while (data[i].side != 0xFF); } +// file boundary? + void sub_815A008(struct QuestLog * questLog) { u32 i; @@ -78,7 +177,7 @@ void sub_815A008(struct QuestLog * questLog) questLog->unk_008[i].mapobj_bit_24 = gMapObjects[i].mapobj_bit_24; questLog->unk_008[i].mapobj_bit_25 = gMapObjects[i].mapobj_bit_25; questLog->unk_008[i].mapobj_bit_26 = gMapObjects[i].mapobj_bit_26; - questLog->unk_008[i].mapobj_unk_18 = gMapObjects[i].mapobj_unk_18; + questLog->unk_008[i].mapobj_unk_18 = gMapObjects[i].facingDirection; questLog->unk_008[i].mapobj_unk_0B_0 = gMapObjects[i].mapobj_unk_0B_0; questLog->unk_008[i].elevation = gMapObjects[i].elevation; questLog->unk_008[i].graphicsId = gMapObjects[i].graphicsId; @@ -123,7 +222,7 @@ void sub_815A1F8(const struct QuestLog * questLog, const struct MapObjectTemplat gMapObjects[i].mapobj_bit_24 = questLogMapObjects[i].mapobj_bit_24; gMapObjects[i].mapobj_bit_25 = questLogMapObjects[i].mapobj_bit_25; gMapObjects[i].mapobj_bit_26 = questLogMapObjects[i].mapobj_bit_26; - gMapObjects[i].mapobj_unk_18 = questLogMapObjects[i].mapobj_unk_18; + gMapObjects[i].facingDirection = questLogMapObjects[i].mapobj_unk_18; gMapObjects[i].mapobj_unk_0B_0 = questLogMapObjects[i].mapobj_unk_0B_0; gMapObjects[i].elevation = questLogMapObjects[i].elevation; gMapObjects[i].graphicsId = questLogMapObjects[i].graphicsId; @@ -614,7 +713,7 @@ void sub_815A540(void) PlayerGetDestCoords(&x, &y); if (!MetatileBehavior_IsSurfable(MapGridGetMetatileBehaviorAt(x, y)) && TestPlayerAvatarFlags(PLAYER_AVATAR_FLAG_SURFING)) { - struct MapObject *mapObject = &gMapObjects[gPlayerAvatar.mapObjectId]; + struct MapObject * mapObject = &gMapObjects[gPlayerAvatar.mapObjectId]; SetPlayerAvatarTransitionFlags(0x01); DestroySprite(&gSprites[mapObject->mapobj_unk_1A]); } diff --git a/src/vs_seeker.c b/src/vs_seeker.c index cfc99551a..9a8ff5dd6 100644 --- a/src/vs_seeker.c +++ b/src/vs_seeker.c @@ -22,8 +22,11 @@ #include "map_obj_80688E4.h" #include "map_obj_8097404.h" #include "unk_810c3a4.h" -#include "constants/movement_commands.h" #include "vs_seeker.h" +#include "constants/movement_commands.h" +#include "constants/map_objects.h" +#include "constants/trainers.h" +#include "constants/maps.h" typedef enum { @@ -97,448 +100,448 @@ static void StartAllRespondantIdleMovements(void); // rodata static const VsSeekerData sVsSeekerData[] = { - { {0x0059, 0x0065, 0xffff, 0x01f2, 0x01f3, 0x0000}, - 0x0003, 0x0015 }, - { {0x005a, 0x005a, 0x0000, 0x0000, 0x0000, 0x0000}, - 0x0003, 0x0015 }, - { {0x0069, 0x02d9, 0xffff, 0x02da, 0xffff, 0x02db}, - 0x0003, 0x0015 }, - { {0x006a, 0x006a, 0x0000, 0x0000, 0x0000, 0x0000}, - 0x0003, 0x0015 }, - { {0x006b, 0x006b, 0x0000, 0x0000, 0x0000, 0x0000}, - 0x0003, 0x0015 }, - { {0x0074, 0x01fb, 0xffff, 0x01fc, 0x0000, 0x0000}, - 0x0003, 0x0015 }, - { {0x0075, 0x0075, 0x0000, 0x0000, 0x0000, 0x0000}, - 0x0003, 0x0015 }, - { {0x0076, 0x0076, 0x0000, 0x0000, 0x0000, 0x0000}, - 0x0003, 0x0015 }, - { {0x0077, 0x0077, 0x0000, 0x0000, 0x0000, 0x0000}, - 0x0003, 0x0016 }, - { {0x005c, 0x01f7, 0xffff, 0x01f8, 0xffff, 0x01f9}, - 0x0003, 0x002b }, - { {0x006e, 0x006e, 0x0000, 0x0000, 0x0000, 0x0000}, - 0x0003, 0x002b }, - { {0x007a, 0x01f5, 0xffff, 0x01f6, 0x0000, 0x0000}, - 0x0003, 0x002b }, - { {0x007b, 0x007b, 0x0000, 0x0000, 0x0000, 0x0000}, - 0x0003, 0x002b }, - { {0x008f, 0x008f, 0x0000, 0x0000, 0x0000, 0x0000}, - 0x0003, 0x002b }, - { {0x0090, 0x0090, 0x0000, 0x0000, 0x0000, 0x0000}, - 0x0003, 0x002b }, - { {0x005d, 0x005d, 0x0000, 0x0000, 0x0000, 0x0000}, - 0x0003, 0x002c }, - { {0x005e, 0x005e, 0x0000, 0x0000, 0x0000, 0x0000}, - 0x0003, 0x002c }, - { {0x005f, 0x01f4, 0xffff, 0x01fa, 0x01fd, 0x0000}, - 0x0003, 0x002c }, - { {0x0099, 0x026d, 0xffff, 0x026e, 0x026f, 0x0000}, - 0x0003, 0x002c }, - { {0x007d, 0x007d, 0x0000, 0x0000, 0x0000, 0x0000}, - 0x0003, 0x002c }, - { {0x00b6, 0xffff, 0x01fe, 0x0000, 0x0000, 0x0000}, - 0x0003, 0x002c }, - { {0x00b7, 0x00b7, 0x0000, 0x0000, 0x0000, 0x0000}, - 0x0003, 0x002c }, - { {0x00b8, 0x00b8, 0x0000, 0x0000, 0x0000, 0x0000}, - 0x0003, 0x002c }, - { {0x01d7, 0x01d7, 0x0000, 0x0000, 0x0000, 0x0000}, - 0x0003, 0x002c }, - { {0x006f, 0x006f, 0x0000, 0x0000, 0x0000, 0x0000}, - 0x0003, 0x0018 }, - { {0x0070, 0x0070, 0x0000, 0x0000, 0x0000, 0x0000}, - 0x0003, 0x0018 }, - { {0x0091, 0x0270, 0xffff, 0x0271, 0xffff, 0x0272}, - 0x0003, 0x0018 }, - { {0x0092, 0x0273, 0xffff, 0x0274, 0xffff, 0x0275}, - 0x0003, 0x0018 }, - { {0x0097, 0x0097, 0x0000, 0x0000, 0x0000, 0x0000}, - 0x0003, 0x0018 }, - { {0x0098, 0x0276, 0xffff, 0x0277, 0x0278, 0x0000}, - 0x0003, 0x0018 }, - { {0x0061, 0x0061, 0x0000, 0x0000, 0x0000, 0x0000}, - 0x0003, 0x001d }, - { {0x0062, 0x0062, 0x0000, 0x0000, 0x0000, 0x0000}, - 0x0003, 0x001d }, - { {0x0063, 0xffff, 0x0279, 0xffff, 0x027a, 0x0000}, - 0x0003, 0x001d }, - { {0x0064, 0x0064, 0x0000, 0x0000, 0x0000, 0x0000}, - 0x0003, 0x001d }, - { {0x00dd, 0x00dd, 0x0000, 0x0000, 0x0000, 0x0000}, - 0x0003, 0x001d }, - { {0x00de, 0xffff, 0xffff, 0x027b, 0x0000, 0x0000}, - 0x0003, 0x001d }, - { {0x0102, 0x0102, 0x0000, 0x0000, 0x0000, 0x0000}, - 0x0003, 0x001d }, - { {0x0103, 0x0103, 0x0000, 0x0000, 0x0000, 0x0000}, - 0x0003, 0x001d }, - { {0x0104, 0x0104, 0x0000, 0x0000, 0x0000, 0x0000}, - 0x0003, 0x001d }, - { {0x0105, 0xffff, 0xffff, 0x027c, 0x0000, 0x0000}, - 0x0003, 0x001d }, - { {0x0072, 0x0072, 0x0000, 0x0000, 0x0000, 0x0000}, - 0x0003, 0x001b }, - { {0x0073, 0x0073, 0x0000, 0x0000, 0x0000, 0x0000}, - 0x0003, 0x001b }, - { {0x0094, 0xffff, 0x027d, 0x027e, 0xffff, 0x027f}, - 0x0003, 0x001b }, - { {0x0095, 0x0095, 0x0000, 0x0000, 0x0000, 0x0000}, - 0x0003, 0x001b }, - { {0x009a, 0xffff, 0x0280, 0x0281, 0xffff, 0x0282}, - 0x0003, 0x001b }, - { {0x009b, 0x009b, 0x0000, 0x0000, 0x0000, 0x0000}, - 0x0003, 0x001b }, - { {0x00b9, 0x00b9, 0x0000, 0x0000, 0x0000, 0x0000}, - 0x0003, 0x001b }, - { {0x00ba, 0x00ba, 0x0000, 0x0000, 0x0000, 0x0000}, - 0x0003, 0x001b }, - { {0x01d1, 0xffff, 0xffff, 0x0283, 0x0000, 0x0000}, - 0x0003, 0x001b }, - { {0x009c, 0x009c, 0x0000, 0x0000, 0x0000, 0x0000}, - 0x0003, 0x001c }, - { {0x009d, 0x009d, 0x0000, 0x0000, 0x0000, 0x0000}, - 0x0003, 0x001c }, - { {0x00a2, 0xffff, 0xffff, 0x0252, 0xffff, 0x0284}, - 0x0003, 0x001c }, - { {0x00a3, 0xffff, 0xffff, 0x0285, 0xffff, 0x0286}, - 0x0003, 0x001c }, - { {0x00bb, 0x00bb, 0x0000, 0x0000, 0x0000, 0x0000}, - 0x0003, 0x001c }, - { {0x00bc, 0xffff, 0xffff, 0x0287, 0x0000, 0x0000}, - 0x0003, 0x001c }, - { {0x0080, 0x0080, 0x0000, 0x0000, 0x0000, 0x0000}, - 0x0003, 0x001a }, - { {0x0081, 0x0081, 0x0000, 0x0000, 0x0000, 0x0000}, - 0x0003, 0x001a }, - { {0x0082, 0xffff, 0x0288, 0xffff, 0x0289, 0x0000}, - 0x0003, 0x001a }, - { {0x0083, 0x0083, 0x0000, 0x0000, 0x0000, 0x0000}, - 0x0003, 0x001a }, - { {0x00ab, 0x00ab, 0x0000, 0x0000, 0x0000, 0x0000}, - 0x0003, 0x001a }, - { {0x00ac, 0xffff, 0xffff, 0x028a, 0x0000, 0x0000}, - 0x0003, 0x001a }, - { {0x00ad, 0x00ad, 0x0000, 0x0000, 0x0000, 0x0000}, - 0x0003, 0x001a }, - { {0x0106, 0x0106, 0x0000, 0x0000, 0x0000, 0x0000}, - 0x0003, 0x001a }, - { {0x0108, 0xffff, 0xffff, 0x028b, 0x0000, 0x0000}, - 0x0003, 0x001a }, - { {0x01e4, 0xffff, 0xffff, 0x0215, 0x0000, 0x0000}, - 0x0003, 0x001a }, - { {0x0217, 0x0217, 0x0000, 0x0000, 0x0000, 0x0000}, - 0x0003, 0x001a }, - { {0x0218, 0xffff, 0xffff, 0x028c, 0x0000, 0x0000}, - 0x0003, 0x001a }, - { {0x00e1, 0x00e1, 0x0000, 0x0000, 0x0000, 0x0000}, - 0x0003, 0x001e }, - { {0x00e2, 0x00e2, 0x0000, 0x0000, 0x0000, 0x0000}, - 0x0003, 0x001e }, - { {0x00e3, 0x00e3, 0x0000, 0x0000, 0x0000, 0x0000}, - 0x0003, 0x001e }, - { {0x00e4, 0xffff, 0xffff, 0x028d, 0x0000, 0x0000}, - 0x0003, 0x001e }, - { {0x00e9, 0x00e9, 0x0000, 0x0000, 0x0000, 0x0000}, - 0x0003, 0x001e }, - { {0x011d, 0xffff, 0xffff, 0x028e, 0x0000, 0x0000}, - 0x0003, 0x001e }, - { {0x01dd, 0x01dd, 0x0000, 0x0000, 0x0000, 0x0000}, - 0x0003, 0x001e }, - { {0x01e6, 0xffff, 0xffff, 0x02c2, 0xffff, 0x02c3}, - 0x0003, 0x001e }, - { {0x00c3, 0x00c3, 0x0000, 0x0000, 0x0000, 0x0000}, - 0x0003, 0x001f }, - { {0x010c, 0x010c, 0x0000, 0x0000, 0x0000, 0x0000}, - 0x0003, 0x001f }, - { {0x010d, 0xffff, 0xffff, 0xffff, 0x028f, 0x0000}, - 0x0003, 0x001f }, - { {0x012c, 0x012c, 0x0000, 0x0000, 0x0000, 0x0000}, - 0x0003, 0x001f }, - { {0x012d, 0x012d, 0x0000, 0x0000, 0x0000, 0x0000}, - 0x0003, 0x001f }, - { {0x012e, 0xffff, 0xffff, 0x0290, 0x0291, 0x0000}, - 0x0003, 0x001f }, - { {0x01d2, 0x01d2, 0x0000, 0x0000, 0x0000, 0x0000}, - 0x0003, 0x001f }, - { {0x01d3, 0xffff, 0xffff, 0x0292, 0x0293, 0x0294}, - 0x0003, 0x001f }, - { {0x01d4, 0x01d4, 0x0000, 0x0000, 0x0000, 0x0000}, - 0x0003, 0x001f }, - { {0x01d5, 0x01d5, 0x0000, 0x0000, 0x0000, 0x0000}, - 0x0003, 0x001f }, - { {0x00c4, 0x00c4, 0x0000, 0x0000, 0x0000, 0x0000}, - 0x0003, 0x0020 }, - { {0x00cf, 0xffff, 0xffff, 0xffff, 0x0295, 0x0000}, - 0x0003, 0x0020 }, - { {0x00d0, 0x00d0, 0x0000, 0x0000, 0x0000, 0x0000}, - 0x0003, 0x0020 }, - { {0x00d1, 0x00d1, 0x0000, 0x0000, 0x0000, 0x0000}, - 0x0003, 0x0020 }, - { {0x012f, 0x012f, 0x0000, 0x0000, 0x0000, 0x0000}, - 0x0003, 0x0020 }, - { {0x0130, 0xffff, 0xffff, 0x0296, 0x0297, 0x0000}, - 0x0003, 0x0020 }, - { {0x0139, 0x0139, 0x0000, 0x0000, 0x0000, 0x0000}, - 0x0003, 0x0020 }, - { {0x013a, 0x013a, 0x0000, 0x0000, 0x0000, 0x0000}, - 0x0003, 0x0020 }, - { {0x013b, 0x013b, 0x0000, 0x0000, 0x0000, 0x0000}, - 0x0003, 0x0020 }, - { {0x013c, 0xffff, 0xffff, 0x0298, 0x0299, 0x0000}, - 0x0003, 0x0020 }, - { {0x01e7, 0x01e7, 0x0000, 0x0000, 0x0000, 0x0000}, - 0x0003, 0x0020 }, - { {0x00c5, 0x00c5, 0x0000, 0x0000, 0x0000, 0x0000}, - 0x0003, 0x0021 }, - { {0x00c6, 0x00c6, 0x0000, 0x0000, 0x0000, 0x0000}, - 0x0003, 0x0021 }, - { {0x0111, 0xffff, 0xffff, 0xffff, 0x029a, 0x0000}, - 0x0003, 0x0021 }, - { {0x0112, 0x0112, 0x0000, 0x0000, 0x0000, 0x0000}, - 0x0003, 0x0021 }, - { {0x0131, 0x0131, 0x0000, 0x0000, 0x0000, 0x0000}, - 0x0003, 0x0021 }, - { {0x0132, 0xffff, 0xffff, 0x029b, 0x029c, 0x0000}, - 0x0003, 0x0021 }, - { {0x01de, 0x01de, 0x0000, 0x0000, 0x0000, 0x0000}, - 0x0003, 0x0021 }, - { {0x01df, 0x01df, 0x0000, 0x0000, 0x0000, 0x0000}, - 0x0003, 0x0021 }, - { {0x01e0, 0xffff, 0xffff, 0x029d, 0x029e, 0x029f}, - 0x0003, 0x0021 }, - { {0x01e1, 0x01e1, 0x0000, 0x0000, 0x0000, 0x0000}, - 0x0003, 0x0021 }, - { {0x01e8, 0xffff, 0xffff, 0x02a0, 0x02a1, 0x02a2}, - 0x0003, 0x0021 }, - { {0x00c7, 0x00c7, 0x0000, 0x0000, 0x0000, 0x0000}, - 0x0003, 0x0022 }, - { {0x00c9, 0x00c9, 0x0000, 0x0000, 0x0000, 0x0000}, - 0x0003, 0x0022 }, - { {0x00ca, 0xffff, 0xffff, 0xffff, 0x02a3, 0x0000}, - 0x0003, 0x0022 }, - { {0x00f9, 0x00f9, 0x0000, 0x0000, 0x0000, 0x0000}, - 0x0003, 0x0022 }, - { {0x00fa, 0x00fa, 0x0000, 0x0000, 0x0000, 0x0000}, - 0x0003, 0x0022 }, - { {0x00fb, 0xffff, 0xffff, 0xffff, 0x02a4, 0x0000}, - 0x0003, 0x0022 }, - { {0x01e9, 0x01e9, 0x0000, 0x0000, 0x0000, 0x0000}, - 0x0003, 0x0022 }, - { {0x00cb, 0x00cb, 0x0000, 0x0000, 0x0000, 0x0000}, - 0x0003, 0x0023 }, - { {0x00cc, 0x00cc, 0x0000, 0x0000, 0x0000, 0x0000}, - 0x0003, 0x0023 }, - { {0x00cd, 0xffff, 0xffff, 0xffff, 0x02a5, 0x0000}, - 0x0003, 0x0023 }, - { {0x00ce, 0x00ce, 0x0000, 0x0000, 0x0000, 0x0000}, - 0x0003, 0x0023 }, - { {0x00fc, 0x00fc, 0x0000, 0x0000, 0x0000, 0x0000}, - 0x0003, 0x0023 }, - { {0x00fd, 0xffff, 0xffff, 0xffff, 0x02a6, 0x0000}, - 0x0003, 0x0023 }, - { {0x00fe, 0x00fe, 0x0000, 0x0000, 0x0000, 0x0000}, - 0x0003, 0x0023 }, - { {0x00ff, 0x00ff, 0x0000, 0x0000, 0x0000, 0x0000}, - 0x0003, 0x0023 }, - { {0x0100, 0xffff, 0xffff, 0xffff, 0x02a7, 0x0000}, - 0x0003, 0x0023 }, - { {0x01d6, 0x01d6, 0x0000, 0x0000, 0x0000, 0x0000}, - 0x0003, 0x0023 }, - { {0x0133, 0x0133, 0x0000, 0x0000, 0x0000, 0x0000}, - 0x0003, 0x0024 }, - { {0x0134, 0x0134, 0x0000, 0x0000, 0x0000, 0x0000}, - 0x0003, 0x0024 }, - { {0x0135, 0xffff, 0xffff, 0x02a8, 0x02a9, 0x0000}, - 0x0003, 0x0024 }, - { {0x00eb, 0x00eb, 0x0000, 0x0000, 0x0000, 0x0000}, - 0x0003, 0x0025 }, - { {0x00ec, 0x00ec, 0x0000, 0x0000, 0x0000, 0x0000}, - 0x0003, 0x0025 }, - { {0x00ed, 0xffff, 0xffff, 0xffff, 0x02dc, 0x0000}, - 0x0003, 0x0025 }, - { {0x00ee, 0x00ee, 0x0000, 0x0000, 0x0000, 0x0000}, - 0x0003, 0x0025 }, - { {0x00ef, 0x00ef, 0x0000, 0x0000, 0x0000, 0x0000}, - 0x0003, 0x0025 }, - { {0x00f0, 0xffff, 0xffff, 0xffff, 0x02dd, 0x0000}, - 0x0003, 0x0025 }, - { {0x00f1, 0x00f1, 0x0000, 0x0000, 0x0000, 0x0000}, - 0x0003, 0x0025 }, - { {0x0114, 0x0114, 0x0000, 0x0000, 0x0000, 0x0000}, - 0x0003, 0x0025 }, - { {0x0115, 0xffff, 0xffff, 0xffff, 0x02aa, 0x0000}, - 0x0003, 0x0025 }, - { {0x0116, 0x0116, 0x0000, 0x0000, 0x0000, 0x0000}, - 0x0003, 0x0025 }, - { {0x01ea, 0x01ea, 0x0000, 0x0000, 0x0000, 0x0000}, - 0x0003, 0x0025 }, - { {0x00f2, 0x00f2, 0x0000, 0x0000, 0x0000, 0x0000}, - 0x0003, 0x0026 }, - { {0x00f3, 0x00f3, 0x0000, 0x0000, 0x0000, 0x0000}, - 0x0003, 0x0026 }, - { {0x00f4, 0xffff, 0xffff, 0xffff, 0xffff, 0x02ab}, - 0x0003, 0x0026 }, - { {0x010e, 0x010e, 0x0000, 0x0000, 0x0000, 0x0000}, - 0x0003, 0x0026 }, - { {0x010f, 0x010f, 0x0000, 0x0000, 0x0000, 0x0000}, - 0x0003, 0x0026 }, - { {0x0110, 0xffff, 0xffff, 0xffff, 0x02de, 0x0000}, - 0x0003, 0x0026 }, - { {0x0117, 0x0117, 0x0000, 0x0000, 0x0000, 0x0000}, - 0x0003, 0x0026 }, - { {0x0136, 0x0136, 0x0000, 0x0000, 0x0000, 0x0000}, - 0x0003, 0x0026 }, - { {0x01d8, 0xffff, 0xffff, 0xffff, 0x02ac, 0x02ad}, - 0x0003, 0x0026 }, - { {0x01d9, 0x01d9, 0x0000, 0x0000, 0x0000, 0x0000}, - 0x0003, 0x0026 }, - { {0x00e5, 0x00e5, 0x0000, 0x0000, 0x0000, 0x0000}, - 0x0003, 0x0027 }, - { {0x00e6, 0x00e6, 0x0000, 0x0000, 0x0000, 0x0000}, - 0x0003, 0x0027 }, - { {0x00e7, 0xffff, 0xffff, 0xffff, 0x02ae, 0x0000}, - 0x0003, 0x0027 }, - { {0x00e8, 0x00e8, 0x0000, 0x0000, 0x0000, 0x0000}, - 0x0003, 0x0027 }, - { {0x00f5, 0x00f5, 0x0000, 0x0000, 0x0000, 0x0000}, - 0x0003, 0x0027 }, - { {0x00f6, 0xffff, 0xffff, 0xffff, 0x02af, 0x0000}, - 0x0003, 0x0027 }, - { {0x00f7, 0x00f7, 0x0000, 0x0000, 0x0000, 0x0000}, - 0x0003, 0x0027 }, - { {0x00f8, 0x00f8, 0x0000, 0x0000, 0x0000, 0x0000}, - 0x0003, 0x0027 }, - { {0x01eb, 0xffff, 0xffff, 0xffff, 0x02b0, 0x02b1}, - 0x0003, 0x0027 }, - { {0x0223, 0x0223, 0x0000, 0x0000, 0x0000, 0x0000}, - 0x0003, 0x002d }, - { {0x0224, 0x0224, 0x0000, 0x0000, 0x0000, 0x0000}, - 0x0003, 0x002d }, - { {0x0225, 0xffff, 0xffff, 0xffff, 0x02b2, 0x0000}, - 0x0003, 0x002d }, - { {0x0226, 0x0226, 0x0000, 0x0000, 0x0000, 0x0000}, - 0x0003, 0x002d }, - { {0x0227, 0x0227, 0x0000, 0x0000, 0x0000, 0x0000}, - 0x0003, 0x002d }, - { {0x0206, 0xffff, 0xffff, 0xffff, 0x02b3, 0x02b4}, - 0x0003, 0x002d }, - { {0x0228, 0xffff, 0xffff, 0xffff, 0x02b5, 0x02b6}, - 0x0003, 0x002d }, - { {0x0229, 0xffff, 0xffff, 0xffff, 0x02b7, 0x02b8}, - 0x0003, 0x002d }, - { {0x022a, 0xffff, 0xffff, 0xffff, 0x02b9, 0x02ba}, - 0x0003, 0x002d }, - { {0x022b, 0x022b, 0x0000, 0x0000, 0x0000, 0x0000}, - 0x0003, 0x002d }, - { {0x022c, 0x022c, 0x0000, 0x0000, 0x0000, 0x0000}, - 0x0003, 0x002d }, - { {0x022d, 0xffff, 0xffff, 0xffff, 0x02bb, 0x02bc}, - 0x0003, 0x002d }, - { {0x0222, 0x0222, 0x0000, 0x0000, 0x0000, 0x0000}, - 0x0003, 0x002e }, - { {0x020b, 0x020b, 0x0000, 0x0000, 0x0000, 0x0000}, - 0x0003, 0x0030 }, - { {0x022e, 0x022e, 0x0000, 0x0000, 0x0000, 0x0000}, - 0x0003, 0x0030 }, - { {0x0207, 0xffff, 0xffff, 0xffff, 0x02bd, 0x0000}, - 0x0003, 0x0030 }, - { {0x022f, 0x022f, 0x0000, 0x0000, 0x0000, 0x0000}, - 0x0003, 0x0030 }, - { {0x0231, 0x0231, 0x0000, 0x0000, 0x0000, 0x0000}, - 0x0003, 0x0030 }, - { {0x0230, 0xffff, 0xffff, 0xffff, 0x02be, 0x0000}, - 0x0003, 0x0030 }, - { {0x020e, 0x020e, 0x0000, 0x0000, 0x0000, 0x0000}, - 0x0003, 0x0036 }, - { {0x0232, 0x0232, 0x0000, 0x0000, 0x0000, 0x0000}, - 0x0003, 0x0036 }, - { {0x0233, 0xffff, 0xffff, 0xffff, 0xffff, 0x02bf}, - 0x0003, 0x0036 }, - { {0x020d, 0x020d, 0x0000, 0x0000, 0x0000, 0x0000}, - 0x0003, 0x0036 }, - { {0x0234, 0x0234, 0x0000, 0x0000, 0x0000, 0x0000}, - 0x0003, 0x0036 }, - { {0x0235, 0xffff, 0xffff, 0xffff, 0xffff, 0x02c0}, - 0x0003, 0x0036 }, - { {0x0236, 0x0236, 0x0000, 0x0000, 0x0000, 0x0000}, - 0x0003, 0x0036 }, - { {0x0208, 0xffff, 0xffff, 0xffff, 0xffff, 0x02c1}, - 0x0003, 0x0037 }, - { {0x023a, 0xffff, 0xffff, 0xffff, 0xffff, 0x02c4}, - 0x0003, 0x0039 }, - { {0x023b, 0xffff, 0xffff, 0xffff, 0xffff, 0x02c5}, - 0x0003, 0x0039 }, - { {0x023c, 0xffff, 0xffff, 0xffff, 0xffff, 0x02c6}, - 0x0003, 0x0039 }, - { {0x023d, 0x023d, 0x0000, 0x0000, 0x0000, 0x0000}, - 0x0003, 0x003a }, - { {0x023e, 0x023e, 0x0000, 0x0000, 0x0000, 0x0000}, - 0x0003, 0x003a }, - { {0x023f, 0xffff, 0xffff, 0xffff, 0xffff, 0x02c7}, - 0x0003, 0x003a }, - { {0x0240, 0x0240, 0x0000, 0x0000, 0x0000, 0x0000}, - 0x0003, 0x003a }, - { {0x0205, 0xffff, 0xffff, 0xffff, 0xffff, 0x02c8}, - 0x0003, 0x003b }, - { {0x0241, 0x0241, 0x0000, 0x0000, 0x0000, 0x0000}, - 0x0003, 0x003c }, - { {0x0123, 0x0123, 0x0000, 0x0000, 0x0000, 0x0000}, - 0x0003, 0x003c }, - { {0x0242, 0xffff, 0xffff, 0xffff, 0xffff, 0x02c9}, - 0x0003, 0x003c }, - { {0x0243, 0x0243, 0x0000, 0x0000, 0x0000, 0x0000}, - 0x0003, 0x003c }, - { {0x0244, 0x0244, 0x0000, 0x0000, 0x0000, 0x0000}, - 0x0003, 0x003c }, - { {0x0245, 0xffff, 0xffff, 0xffff, 0xffff, 0x02ca}, - 0x0003, 0x003c }, - { {0x020c, 0x020c, 0x0000, 0x0000, 0x0000, 0x0000}, - 0x0003, 0x003d }, - { {0x0246, 0x0246, 0x0000, 0x0000, 0x0000, 0x0000}, - 0x0003, 0x003d }, - { {0x0247, 0xffff, 0xffff, 0xffff, 0xffff, 0x02cb}, - 0x0003, 0x003d }, - { {0x0248, 0x0248, 0x0000, 0x0000, 0x0000, 0x0000}, - 0x0003, 0x003d }, - { {0x0249, 0xffff, 0xffff, 0xffff, 0xffff, 0x02cc}, - 0x0003, 0x003d }, - { {0x024a, 0xffff, 0xffff, 0xffff, 0xffff, 0x02cd}, - 0x0003, 0x003e }, - { {0x024b, 0xffff, 0xffff, 0xffff, 0xffff, 0x02ce}, - 0x0003, 0x003e }, - { {0x024c, 0x024c, 0x0000, 0x0000, 0x0000, 0x0000}, - 0x0003, 0x003f }, - { {0x024d, 0x024d, 0x0000, 0x0000, 0x0000, 0x0000}, - 0x0003, 0x003f }, - { {0x024e, 0xffff, 0xffff, 0xffff, 0xffff, 0x02cf}, - 0x0003, 0x003f }, - { {0x0209, 0xffff, 0xffff, 0xffff, 0xffff, 0x02d0}, - 0x0003, 0x003f }, - { {0x020a, 0xffff, 0xffff, 0xffff, 0xffff, 0x02d1}, - 0x0003, 0x003f }, - { {0x024f, 0xffff, 0xffff, 0xffff, 0xffff, 0x02d2}, - 0x0003, 0x0040 }, - { {0x0251, 0xffff, 0xffff, 0xffff, 0xffff, 0x02d3}, - 0x0003, 0x0040 }, - { {0x0254, 0xffff, 0xffff, 0xffff, 0xffff, 0x02d4}, - 0x0003, 0x0040 }, - { {0x0256, 0xffff, 0xffff, 0xffff, 0xffff, 0x02d5}, - 0x0003, 0x0040 }, - { {0x0257, 0xffff, 0xffff, 0xffff, 0xffff, 0x02d6}, - 0x0003, 0x0040 }, - { {0x0258, 0xffff, 0xffff, 0xffff, 0xffff, 0x02d7}, - 0x0003, 0x0040 }, - { {0x0259, 0xffff, 0xffff, 0xffff, 0xffff, 0x02d8}, - 0x0003, 0x0040 }, - { {0x025a, 0x025a, 0x0000, 0x0000, 0x0000, 0x0000}, - 0x0003, 0x0041 }, - { {0x025b, 0x025b, 0x0000, 0x0000, 0x0000, 0x0000}, - 0x0003, 0x0041 }, - { {0x025c, 0x025c, 0x0000, 0x0000, 0x0000, 0x0000}, - 0x0003, 0x0041 }, - { {0x025d, 0x025d, 0x0000, 0x0000, 0x0000, 0x0000}, - 0x0003, 0x0041 } + { {TRAINER_YOUNGSTER_BEN, TRAINER_YOUNGSTER_BEN_2, 0xFFFF, TRAINER_YOUNGSTER_BEN_3, TRAINER_YOUNGSTER_BEN_4}, + MAP_GROUP(ROUTE3), MAP_NUM(ROUTE3) }, + { {TRAINER_YOUNGSTER_CALVIN, TRAINER_YOUNGSTER_CALVIN}, + MAP_GROUP(ROUTE3), MAP_NUM(ROUTE3) }, + { {TRAINER_BUG_CATCHER_COLTON, TRAINER_BUG_CATCHER_COLTON_2, 0xFFFF, TRAINER_BUG_CATCHER_COLTON_3, 0xFFFF, TRAINER_BUG_CATCHER_COLTON_4}, + MAP_GROUP(ROUTE3), MAP_NUM(ROUTE3) }, + { {TRAINER_BUG_CATCHER_GREG, TRAINER_BUG_CATCHER_GREG}, + MAP_GROUP(ROUTE3), MAP_NUM(ROUTE3) }, + { {TRAINER_BUG_CATCHER_JAMES, TRAINER_BUG_CATCHER_JAMES}, + MAP_GROUP(ROUTE3), MAP_NUM(ROUTE3) }, + { {TRAINER_LASS_JANICE, TRAINER_LASS_JANICE_2, 0xFFFF, TRAINER_LASS_JANICE_3}, + MAP_GROUP(ROUTE3), MAP_NUM(ROUTE3) }, + { {TRAINER_LASS_SALLY, TRAINER_LASS_SALLY}, + MAP_GROUP(ROUTE3), MAP_NUM(ROUTE3) }, + { {TRAINER_LASS_ROBIN, TRAINER_LASS_ROBIN}, + MAP_GROUP(ROUTE3), MAP_NUM(ROUTE3) }, + { {TRAINER_LASS_CRISSY, TRAINER_LASS_CRISSY}, + MAP_GROUP(ROUTE4), MAP_NUM(ROUTE4) }, + { {TRAINER_YOUNGSTER_TIMMY, TRAINER_YOUNGSTER_TIMMY_2, 0xFFFF, TRAINER_YOUNGSTER_TIMMY_3, 0xFFFF, TRAINER_YOUNGSTER_TIMMY_4}, + MAP_GROUP(ROUTE24), MAP_NUM(ROUTE24) }, + { {TRAINER_BUG_CATCHER_CALE, TRAINER_BUG_CATCHER_CALE}, + MAP_GROUP(ROUTE24), MAP_NUM(ROUTE24) }, + { {TRAINER_LASS_RELI, TRAINER_LASS_RELI_2, 0xFFFF, TRAINER_LASS_RELI_3}, + MAP_GROUP(ROUTE24), MAP_NUM(ROUTE24) }, + { {TRAINER_LASS_ALI, TRAINER_LASS_ALI}, + MAP_GROUP(ROUTE24), MAP_NUM(ROUTE24) }, + { {TRAINER_CAMPER_SHANE, TRAINER_CAMPER_SHANE}, + MAP_GROUP(ROUTE24), MAP_NUM(ROUTE24) }, + { {TRAINER_CAMPER_ETHAN, TRAINER_CAMPER_ETHAN}, + MAP_GROUP(ROUTE24), MAP_NUM(ROUTE24) }, + { {TRAINER_YOUNGSTER_JOEY, TRAINER_YOUNGSTER_JOEY}, + MAP_GROUP(ROUTE25), MAP_NUM(ROUTE25) }, + { {TRAINER_YOUNGSTER_DAN, TRAINER_YOUNGSTER_DAN}, + MAP_GROUP(ROUTE25), MAP_NUM(ROUTE25) }, + { {TRAINER_YOUNGSTER_CHAD, TRAINER_YOUNGSTER_CHAD_2, 0xFFFF, TRAINER_YOUNGSTER_CHAD_3, TRAINER_YOUNGSTER_CHAD_4}, + MAP_GROUP(ROUTE25), MAP_NUM(ROUTE25) }, + { {TRAINER_PICNICKER_KELSEY, TRAINER_PICNICKER_KELSEY_2, 0xFFFF, TRAINER_PICNICKER_KELSEY_3, TRAINER_PICNICKER_KELSEY_4}, + MAP_GROUP(ROUTE25), MAP_NUM(ROUTE25) }, + { {TRAINER_LASS_HALEY, TRAINER_LASS_HALEY}, + MAP_GROUP(ROUTE25), MAP_NUM(ROUTE25) }, + { {TRAINER_HIKER_FRANKLIN, 0xFFFF, TRAINER_HIKER_FRANKLIN_2}, + MAP_GROUP(ROUTE25), MAP_NUM(ROUTE25) }, + { {TRAINER_HIKER_NOB, TRAINER_HIKER_NOB}, + MAP_GROUP(ROUTE25), MAP_NUM(ROUTE25) }, + { {TRAINER_HIKER_WAYNE, TRAINER_HIKER_WAYNE}, + MAP_GROUP(ROUTE25), MAP_NUM(ROUTE25) }, + { {TRAINER_CAMPER_FLINT, TRAINER_CAMPER_FLINT}, + MAP_GROUP(ROUTE25), MAP_NUM(ROUTE25) }, + { {TRAINER_BUG_CATCHER_KEIGO, TRAINER_BUG_CATCHER_KEIGO}, + MAP_GROUP(ROUTE6), MAP_NUM(ROUTE6) }, + { {TRAINER_BUG_CATCHER_ELIJAH, TRAINER_BUG_CATCHER_ELIJAH}, + MAP_GROUP(ROUTE6), MAP_NUM(ROUTE6) }, + { {TRAINER_CAMPER_RICKY, TRAINER_CAMPER_RICKY_2, 0xFFFF, TRAINER_CAMPER_RICKY_3, 0xFFFF, TRAINER_CAMPER_RICKY_4}, + MAP_GROUP(ROUTE6), MAP_NUM(ROUTE6) }, + { {TRAINER_CAMPER_JEFF, TRAINER_CAMPER_JEFF_2, 0xFFFF, TRAINER_CAMPER_JEFF_3, 0xFFFF, TRAINER_CAMPER_JEFF_4}, + MAP_GROUP(ROUTE6), MAP_NUM(ROUTE6) }, + { {TRAINER_PICNICKER_NANCY, TRAINER_PICNICKER_NANCY}, + MAP_GROUP(ROUTE6), MAP_NUM(ROUTE6) }, + { {TRAINER_PICNICKER_ISABELLE, TRAINER_PICNICKER_ISABELLE_2, 0xFFFF, TRAINER_PICNICKER_ISABELLE_3, TRAINER_PICNICKER_ISABELLE_4}, + MAP_GROUP(ROUTE6), MAP_NUM(ROUTE6) }, + { {TRAINER_YOUNGSTER_EDDIE, TRAINER_YOUNGSTER_EDDIE}, + MAP_GROUP(ROUTE11), MAP_NUM(ROUTE11) }, + { {TRAINER_YOUNGSTER_DILLON, TRAINER_YOUNGSTER_DILLON}, + MAP_GROUP(ROUTE11), MAP_NUM(ROUTE11) }, + { {TRAINER_YOUNGSTER_YASU, 0xFFFF, TRAINER_YOUNGSTER_YASU_2, 0xFFFF, TRAINER_YOUNGSTER_YASU_3}, + MAP_GROUP(ROUTE11), MAP_NUM(ROUTE11) }, + { {TRAINER_YOUNGSTER_DAVE, TRAINER_YOUNGSTER_DAVE}, + MAP_GROUP(ROUTE11), MAP_NUM(ROUTE11) }, + { {TRAINER_ENGINEER_BRAXTON, TRAINER_ENGINEER_BRAXTON}, + MAP_GROUP(ROUTE11), MAP_NUM(ROUTE11) }, + { {TRAINER_ENGINEER_BERNIE, 0xFFFF, 0xFFFF, TRAINER_ENGINEER_BERNIE_2}, + MAP_GROUP(ROUTE11), MAP_NUM(ROUTE11) }, + { {TRAINER_GAMER_HUGO, TRAINER_GAMER_HUGO}, + MAP_GROUP(ROUTE11), MAP_NUM(ROUTE11) }, + { {TRAINER_GAMER_JASPER, TRAINER_GAMER_JASPER}, + MAP_GROUP(ROUTE11), MAP_NUM(ROUTE11) }, + { {TRAINER_GAMER_DIRK, TRAINER_GAMER_DIRK}, + MAP_GROUP(ROUTE11), MAP_NUM(ROUTE11) }, + { {TRAINER_GAMER_DARIAN, 0xFFFF, 0xFFFF, TRAINER_GAMER_DARIAN_2}, + MAP_GROUP(ROUTE11), MAP_NUM(ROUTE11) }, + { {TRAINER_BUG_CATCHER_BRENT, TRAINER_BUG_CATCHER_BRENT}, + MAP_GROUP(ROUTE9), MAP_NUM(ROUTE9) }, + { {TRAINER_BUG_CATCHER_CONNER, TRAINER_BUG_CATCHER_CONNER}, + MAP_GROUP(ROUTE9), MAP_NUM(ROUTE9) }, + { {TRAINER_CAMPER_CHRIS, 0xFFFF, TRAINER_CAMPER_CHRIS_2, TRAINER_CAMPER_CHRIS_3, 0xFFFF, TRAINER_CAMPER_CHRIS_4}, + MAP_GROUP(ROUTE9), MAP_NUM(ROUTE9) }, + { {TRAINER_CAMPER_DREW, TRAINER_CAMPER_DREW}, + MAP_GROUP(ROUTE9), MAP_NUM(ROUTE9) }, + { {TRAINER_PICNICKER_ALICIA, 0xFFFF, TRAINER_PICNICKER_ALICIA_2, TRAINER_PICNICKER_ALICIA_3, 0xFFFF, TRAINER_PICNICKER_ALICIA_4}, + MAP_GROUP(ROUTE9), MAP_NUM(ROUTE9) }, + { {TRAINER_PICNICKER_CAITLIN, TRAINER_PICNICKER_CAITLIN}, + MAP_GROUP(ROUTE9), MAP_NUM(ROUTE9) }, + { {TRAINER_HIKER_ALAN, TRAINER_HIKER_ALAN}, + MAP_GROUP(ROUTE9), MAP_NUM(ROUTE9) }, + { {TRAINER_HIKER_BRICE, TRAINER_HIKER_BRICE}, + MAP_GROUP(ROUTE9), MAP_NUM(ROUTE9) }, + { {TRAINER_HIKER_JEREMY, 0xFFFF, 0xFFFF, TRAINER_HIKER_JEREMY_2}, + MAP_GROUP(ROUTE9), MAP_NUM(ROUTE9) }, + { {TRAINER_PICNICKER_HEIDI, TRAINER_PICNICKER_HEIDI}, + MAP_GROUP(ROUTE10), MAP_NUM(ROUTE10) }, + { {TRAINER_PICNICKER_CAROL, TRAINER_PICNICKER_CAROL}, + MAP_GROUP(ROUTE10), MAP_NUM(ROUTE10) }, + { {TRAINER_POKEMANIAC_MARK, 0xFFFF, 0xFFFF, TRAINER_POKEMANIAC_MARK_2, 0xFFFF, TRAINER_POKEMANIAC_MARK_3}, + MAP_GROUP(ROUTE10), MAP_NUM(ROUTE10) }, + { {TRAINER_POKEMANIAC_HERMAN, 0xFFFF, 0xFFFF, TRAINER_POKEMANIAC_HERMAN_2, 0xFFFF, TRAINER_POKEMANIAC_HERMAN_3}, + MAP_GROUP(ROUTE10), MAP_NUM(ROUTE10) }, + { {TRAINER_HIKER_CLARK, TRAINER_HIKER_CLARK}, + MAP_GROUP(ROUTE10), MAP_NUM(ROUTE10) }, + { {TRAINER_HIKER_TRENT, 0xFFFF, 0xFFFF, TRAINER_HIKER_TRENT_2}, + MAP_GROUP(ROUTE10), MAP_NUM(ROUTE10) }, + { {TRAINER_LASS_PAIGE, TRAINER_LASS_PAIGE}, + MAP_GROUP(ROUTE8), MAP_NUM(ROUTE8) }, + { {TRAINER_LASS_ANDREA, TRAINER_LASS_ANDREA}, + MAP_GROUP(ROUTE8), MAP_NUM(ROUTE8) }, + { {TRAINER_LASS_MEGAN, 0xFFFF, TRAINER_LASS_MEGAN_2, 0xFFFF, TRAINER_LASS_MEGAN_3}, + MAP_GROUP(ROUTE8), MAP_NUM(ROUTE8) }, + { {TRAINER_LASS_JULIA, TRAINER_LASS_JULIA}, + MAP_GROUP(ROUTE8), MAP_NUM(ROUTE8) }, + { {TRAINER_SUPER_NERD_AIDAN, TRAINER_SUPER_NERD_AIDAN}, + MAP_GROUP(ROUTE8), MAP_NUM(ROUTE8) }, + { {TRAINER_SUPER_NERD_GLENN, 0xFFFF, 0xFFFF, TRAINER_SUPER_NERD_GLENN_2}, + MAP_GROUP(ROUTE8), MAP_NUM(ROUTE8) }, + { {TRAINER_SUPER_NERD_LESLIE, TRAINER_SUPER_NERD_LESLIE}, + MAP_GROUP(ROUTE8), MAP_NUM(ROUTE8) }, + { {TRAINER_GAMER_STAN, TRAINER_GAMER_STAN}, + MAP_GROUP(ROUTE8), MAP_NUM(ROUTE8) }, + { {TRAINER_GAMER_RICH, 0xFFFF, 0xFFFF, TRAINER_GAMER_RICH_2}, + MAP_GROUP(ROUTE8), MAP_NUM(ROUTE8) }, + { {TRAINER_TWINS_ELI_ANNE, 0xFFFF, 0xFFFF, TRAINER_TWINS_ELI_ANNE_2}, + MAP_GROUP(ROUTE8), MAP_NUM(ROUTE8) }, + { {TRAINER_BIKER_RICARDO, TRAINER_BIKER_RICARDO}, + MAP_GROUP(ROUTE8), MAP_NUM(ROUTE8) }, + { {TRAINER_BIKER_JAREN, 0xFFFF, 0xFFFF, TRAINER_BIKER_JAREN_2}, + MAP_GROUP(ROUTE8), MAP_NUM(ROUTE8) }, + { {TRAINER_FISHERMAN_NED, TRAINER_FISHERMAN_NED}, + MAP_GROUP(ROUTE12), MAP_NUM(ROUTE12) }, + { {TRAINER_FISHERMAN_CHIP, TRAINER_FISHERMAN_CHIP}, + MAP_GROUP(ROUTE12), MAP_NUM(ROUTE12) }, + { {TRAINER_FISHERMAN_HANK, TRAINER_FISHERMAN_HANK}, + MAP_GROUP(ROUTE12), MAP_NUM(ROUTE12) }, + { {TRAINER_FISHERMAN_ELLIOT, 0xFFFF, 0xFFFF, TRAINER_FISHERMAN_ELLIOT_2}, + MAP_GROUP(ROUTE12), MAP_NUM(ROUTE12) }, + { {TRAINER_FISHERMAN_ANDREW, TRAINER_FISHERMAN_ANDREW}, + MAP_GROUP(ROUTE12), MAP_NUM(ROUTE12) }, + { {TRAINER_ROCKER_LUCA, 0xFFFF, 0xFFFF, TRAINER_ROCKER_LUCA_2}, + MAP_GROUP(ROUTE12), MAP_NUM(ROUTE12) }, + { {TRAINER_CAMPER_JUSTIN, TRAINER_CAMPER_JUSTIN}, + MAP_GROUP(ROUTE12), MAP_NUM(ROUTE12) }, + { {TRAINER_YOUNG_COUPLE_GIA_JES, 0xFFFF, 0xFFFF, TRAINER_YOUNG_COUPLE_GIA_JES_2, 0xFFFF, TRAINER_YOUNG_COUPLE_GIA_JES_3}, + MAP_GROUP(ROUTE12), MAP_NUM(ROUTE12) }, + { {TRAINER_BIKER_JARED, TRAINER_BIKER_JARED}, + MAP_GROUP(ROUTE13), MAP_NUM(ROUTE13) }, + { {TRAINER_BEAUTY_LOLA, TRAINER_BEAUTY_LOLA}, + MAP_GROUP(ROUTE13), MAP_NUM(ROUTE13) }, + { {TRAINER_BEAUTY_SHEILA, 0xFFFF, 0xFFFF, 0xFFFF, TRAINER_BEAUTY_SHEILA_2}, + MAP_GROUP(ROUTE13), MAP_NUM(ROUTE13) }, + { {TRAINER_BIRD_KEEPER_SEBASTIAN, TRAINER_BIRD_KEEPER_SEBASTIAN}, + MAP_GROUP(ROUTE13), MAP_NUM(ROUTE13) }, + { {TRAINER_BIRD_KEEPER_PERRY, TRAINER_BIRD_KEEPER_PERRY}, + MAP_GROUP(ROUTE13), MAP_NUM(ROUTE13) }, + { {TRAINER_BIRD_KEEPER_ROBERT, 0xFFFF, 0xFFFF, TRAINER_BIRD_KEEPER_ROBERT_2, TRAINER_BIRD_KEEPER_ROBERT_3}, + MAP_GROUP(ROUTE13), MAP_NUM(ROUTE13) }, + { {TRAINER_PICNICKER_ALMA, TRAINER_PICNICKER_ALMA}, + MAP_GROUP(ROUTE13), MAP_NUM(ROUTE13) }, + { {TRAINER_PICNICKER_SUSIE, 0xFFFF, 0xFFFF, TRAINER_PICNICKER_SUSIE_2, TRAINER_PICNICKER_SUSIE_3, TRAINER_PICNICKER_SUSIE_4}, + MAP_GROUP(ROUTE13), MAP_NUM(ROUTE13) }, + { {TRAINER_PICNICKER_VALERIE, TRAINER_PICNICKER_VALERIE}, + MAP_GROUP(ROUTE13), MAP_NUM(ROUTE13) }, + { {TRAINER_PICNICKER_GWEN, TRAINER_PICNICKER_GWEN}, + MAP_GROUP(ROUTE13), MAP_NUM(ROUTE13) }, + { {TRAINER_BIKER_MALIK, TRAINER_BIKER_MALIK}, + MAP_GROUP(ROUTE14), MAP_NUM(ROUTE14) }, + { {TRAINER_BIKER_LUKAS, 0xFFFF, 0xFFFF, 0xFFFF, TRAINER_BIKER_LUKAS_2}, + MAP_GROUP(ROUTE14), MAP_NUM(ROUTE14) }, + { {TRAINER_BIKER_ISAAC, TRAINER_BIKER_ISAAC}, + MAP_GROUP(ROUTE14), MAP_NUM(ROUTE14) }, + { {TRAINER_BIKER_GERALD, TRAINER_BIKER_GERALD}, + MAP_GROUP(ROUTE14), MAP_NUM(ROUTE14) }, + { {TRAINER_BIRD_KEEPER_DONALD, TRAINER_BIRD_KEEPER_DONALD}, + MAP_GROUP(ROUTE14), MAP_NUM(ROUTE14) }, + { {TRAINER_BIRD_KEEPER_BENNY, 0xFFFF, 0xFFFF, TRAINER_BIRD_KEEPER_BENNY_2, TRAINER_BIRD_KEEPER_BENNY_3}, + MAP_GROUP(ROUTE14), MAP_NUM(ROUTE14) }, + { {TRAINER_BIRD_KEEPER_CARTER, TRAINER_BIRD_KEEPER_CARTER}, + MAP_GROUP(ROUTE14), MAP_NUM(ROUTE14) }, + { {TRAINER_BIRD_KEEPER_MITCH, TRAINER_BIRD_KEEPER_MITCH}, + MAP_GROUP(ROUTE14), MAP_NUM(ROUTE14) }, + { {TRAINER_BIRD_KEEPER_BECK, TRAINER_BIRD_KEEPER_BECK}, + MAP_GROUP(ROUTE14), MAP_NUM(ROUTE14) }, + { {TRAINER_BIRD_KEEPER_MARLON, 0xFFFF, 0xFFFF, TRAINER_BIRD_KEEPER_MARLON_2, TRAINER_BIRD_KEEPER_MARLON_3}, + MAP_GROUP(ROUTE14), MAP_NUM(ROUTE14) }, + { {TRAINER_TWINS_KIRI_JAN, TRAINER_TWINS_KIRI_JAN}, + MAP_GROUP(ROUTE14), MAP_NUM(ROUTE14) }, + { {TRAINER_BIKER_ERNEST, TRAINER_BIKER_ERNEST}, + MAP_GROUP(ROUTE15), MAP_NUM(ROUTE15) }, + { {TRAINER_BIKER_ALEX, TRAINER_BIKER_ALEX}, + MAP_GROUP(ROUTE15), MAP_NUM(ROUTE15) }, + { {TRAINER_BEAUTY_GRACE, 0xFFFF, 0xFFFF, 0xFFFF, TRAINER_BEAUTY_GRACE_2}, + MAP_GROUP(ROUTE15), MAP_NUM(ROUTE15) }, + { {TRAINER_BEAUTY_OLIVIA, TRAINER_BEAUTY_OLIVIA}, + MAP_GROUP(ROUTE15), MAP_NUM(ROUTE15) }, + { {TRAINER_BIRD_KEEPER_EDWIN, TRAINER_BIRD_KEEPER_EDWIN}, + MAP_GROUP(ROUTE15), MAP_NUM(ROUTE15) }, + { {TRAINER_BIRD_KEEPER_CHESTER, 0xFFFF, 0xFFFF, TRAINER_BIRD_KEEPER_CHESTER_2, TRAINER_BIRD_KEEPER_CHESTER_3}, + MAP_GROUP(ROUTE15), MAP_NUM(ROUTE15) }, + { {TRAINER_PICNICKER_YAZMIN, TRAINER_PICNICKER_YAZMIN}, + MAP_GROUP(ROUTE15), MAP_NUM(ROUTE15) }, + { {TRAINER_PICNICKER_KINDRA, TRAINER_PICNICKER_KINDRA}, + MAP_GROUP(ROUTE15), MAP_NUM(ROUTE15) }, + { {TRAINER_PICNICKER_BECKY, 0xFFFF, 0xFFFF, TRAINER_PICNICKER_BECKY_2, TRAINER_PICNICKER_BECKY_3, TRAINER_PICNICKER_BECKY_4}, + MAP_GROUP(ROUTE15), MAP_NUM(ROUTE15) }, + { {TRAINER_PICNICKER_CELIA, TRAINER_PICNICKER_CELIA}, + MAP_GROUP(ROUTE15), MAP_NUM(ROUTE15) }, + { {TRAINER_CRUSH_KIN_RON_MYA, 0xFFFF, 0xFFFF, TRAINER_CRUSH_KIN_RON_MYA_2, TRAINER_CRUSH_KIN_RON_MYA_3, TRAINER_CRUSH_KIN_RON_MYA_4}, + MAP_GROUP(ROUTE15), MAP_NUM(ROUTE15) }, + { {TRAINER_BIKER_LAO, TRAINER_BIKER_LAO}, + MAP_GROUP(ROUTE16), MAP_NUM(ROUTE16) }, + { {TRAINER_BIKER_HIDEO, TRAINER_BIKER_HIDEO}, + MAP_GROUP(ROUTE16), MAP_NUM(ROUTE16) }, + { {TRAINER_BIKER_RUBEN, 0xFFFF, 0xFFFF, 0xFFFF, TRAINER_BIKER_RUBEN_2}, + MAP_GROUP(ROUTE16), MAP_NUM(ROUTE16) }, + { {TRAINER_CUE_BALL_KOJI, TRAINER_CUE_BALL_KOJI}, + MAP_GROUP(ROUTE16), MAP_NUM(ROUTE16) }, + { {TRAINER_CUE_BALL_LUKE, TRAINER_CUE_BALL_LUKE}, + MAP_GROUP(ROUTE16), MAP_NUM(ROUTE16) }, + { {TRAINER_CUE_BALL_CAMRON, 0xFFFF, 0xFFFF, 0xFFFF, TRAINER_CUE_BALL_CAMRON_2}, + MAP_GROUP(ROUTE16), MAP_NUM(ROUTE16) }, + { {TRAINER_YOUNG_COUPLE_LEA_JED, TRAINER_YOUNG_COUPLE_LEA_JED}, + MAP_GROUP(ROUTE16), MAP_NUM(ROUTE16) }, + { {TRAINER_BIKER_BILLY, TRAINER_BIKER_BILLY}, + MAP_GROUP(ROUTE17), MAP_NUM(ROUTE17) }, + { {TRAINER_BIKER_NIKOLAS, TRAINER_BIKER_NIKOLAS}, + MAP_GROUP(ROUTE17), MAP_NUM(ROUTE17) }, + { {TRAINER_BIKER_JAXON, 0xFFFF, 0xFFFF, 0xFFFF, TRAINER_BIKER_JAXON_2}, + MAP_GROUP(ROUTE17), MAP_NUM(ROUTE17) }, + { {TRAINER_BIKER_WILLIAM, TRAINER_BIKER_WILLIAM}, + MAP_GROUP(ROUTE17), MAP_NUM(ROUTE17) }, + { {TRAINER_CUE_BALL_RAUL, TRAINER_CUE_BALL_RAUL}, + MAP_GROUP(ROUTE17), MAP_NUM(ROUTE17) }, + { {TRAINER_CUE_BALL_ISAIAH, 0xFFFF, 0xFFFF, 0xFFFF, TRAINER_CUE_BALL_ISAIAH_2}, + MAP_GROUP(ROUTE17), MAP_NUM(ROUTE17) }, + { {TRAINER_CUE_BALL_ZEEK, TRAINER_CUE_BALL_ZEEK}, + MAP_GROUP(ROUTE17), MAP_NUM(ROUTE17) }, + { {TRAINER_CUE_BALL_JAMAL, TRAINER_CUE_BALL_JAMAL}, + MAP_GROUP(ROUTE17), MAP_NUM(ROUTE17) }, + { {TRAINER_CUE_BALL_COREY, 0xFFFF, 0xFFFF, 0xFFFF, TRAINER_CUE_BALL_COREY_2}, + MAP_GROUP(ROUTE17), MAP_NUM(ROUTE17) }, + { {TRAINER_BIKER_VIRGIL, TRAINER_BIKER_VIRGIL}, + MAP_GROUP(ROUTE17), MAP_NUM(ROUTE17) }, + { {TRAINER_BIRD_KEEPER_WILTON, TRAINER_BIRD_KEEPER_WILTON}, + MAP_GROUP(ROUTE18), MAP_NUM(ROUTE18) }, + { {TRAINER_BIRD_KEEPER_RAMIRO, TRAINER_BIRD_KEEPER_RAMIRO}, + MAP_GROUP(ROUTE18), MAP_NUM(ROUTE18) }, + { {TRAINER_BIRD_KEEPER_JACOB, 0xFFFF, 0xFFFF, TRAINER_BIRD_KEEPER_JACOB_2, TRAINER_BIRD_KEEPER_JACOB_3}, + MAP_GROUP(ROUTE18), MAP_NUM(ROUTE18) }, + { {TRAINER_SWIMMER_MALE_RICHARD, TRAINER_SWIMMER_MALE_RICHARD}, + MAP_GROUP(ROUTE19), MAP_NUM(ROUTE19) }, + { {TRAINER_SWIMMER_MALE_REECE, TRAINER_SWIMMER_MALE_REECE}, + MAP_GROUP(ROUTE19), MAP_NUM(ROUTE19) }, + { {TRAINER_SWIMMER_MALE_MATTHEW, 0xFFFF, 0xFFFF, 0xFFFF, TRAINER_SWIMMER_MALE_MATTHEW_2}, + MAP_GROUP(ROUTE19), MAP_NUM(ROUTE19) }, + { {TRAINER_SWIMMER_MALE_DOUGLAS, TRAINER_SWIMMER_MALE_DOUGLAS}, + MAP_GROUP(ROUTE19), MAP_NUM(ROUTE19) }, + { {TRAINER_SWIMMER_MALE_DAVID, TRAINER_SWIMMER_MALE_DAVID}, + MAP_GROUP(ROUTE19), MAP_NUM(ROUTE19) }, + { {TRAINER_SWIMMER_MALE_TONY, 0xFFFF, 0xFFFF, 0xFFFF, TRAINER_SWIMMER_MALE_TONY_2}, + MAP_GROUP(ROUTE19), MAP_NUM(ROUTE19) }, + { {TRAINER_SWIMMER_MALE_AXLE, TRAINER_SWIMMER_MALE_AXLE}, + MAP_GROUP(ROUTE19), MAP_NUM(ROUTE19) }, + { {TRAINER_SWIMMER_FEMALE_ANYA, TRAINER_SWIMMER_FEMALE_ANYA}, + MAP_GROUP(ROUTE19), MAP_NUM(ROUTE19) }, + { {TRAINER_SWIMMER_FEMALE_ALICE, 0xFFFF, 0xFFFF, 0xFFFF, TRAINER_SWIMMER_FEMALE_ALICE_2}, + MAP_GROUP(ROUTE19), MAP_NUM(ROUTE19) }, + { {TRAINER_SWIMMER_FEMALE_CONNIE, TRAINER_SWIMMER_FEMALE_CONNIE}, + MAP_GROUP(ROUTE19), MAP_NUM(ROUTE19) }, + { {TRAINER_SIS_AND_BRO_LIA_LUC, TRAINER_SIS_AND_BRO_LIA_LUC}, + MAP_GROUP(ROUTE19), MAP_NUM(ROUTE19) }, + { {TRAINER_SWIMMER_MALE_BARRY, TRAINER_SWIMMER_MALE_BARRY}, + MAP_GROUP(ROUTE20), MAP_NUM(ROUTE20) }, + { {TRAINER_SWIMMER_MALE_DEAN, TRAINER_SWIMMER_MALE_DEAN}, + MAP_GROUP(ROUTE20), MAP_NUM(ROUTE20) }, + { {TRAINER_SWIMMER_MALE_DARRIN, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, TRAINER_SWIMMER_MALE_DARRIN_2}, + MAP_GROUP(ROUTE20), MAP_NUM(ROUTE20) }, + { {TRAINER_SWIMMER_FEMALE_TIFFANY, TRAINER_SWIMMER_FEMALE_TIFFANY}, + MAP_GROUP(ROUTE20), MAP_NUM(ROUTE20) }, + { {TRAINER_SWIMMER_FEMALE_NORA, TRAINER_SWIMMER_FEMALE_NORA}, + MAP_GROUP(ROUTE20), MAP_NUM(ROUTE20) }, + { {TRAINER_SWIMMER_FEMALE_MELISSA, 0xFFFF, 0xFFFF, 0xFFFF, TRAINER_SWIMMER_FEMALE_MELISSA_2}, + MAP_GROUP(ROUTE20), MAP_NUM(ROUTE20) }, + { {TRAINER_SWIMMER_FEMALE_SHIRLEY, TRAINER_SWIMMER_FEMALE_SHIRLEY}, + MAP_GROUP(ROUTE20), MAP_NUM(ROUTE20) }, + { {TRAINER_BIRD_KEEPER_ROGER, TRAINER_BIRD_KEEPER_ROGER}, + MAP_GROUP(ROUTE20), MAP_NUM(ROUTE20) }, + { {TRAINER_PICNICKER_MISSY, 0xFFFF, 0xFFFF, 0xFFFF, TRAINER_PICNICKER_MISSY_2, TRAINER_PICNICKER_MISSY_3}, + MAP_GROUP(ROUTE20), MAP_NUM(ROUTE20) }, + { {TRAINER_PICNICKER_IRENE, TRAINER_PICNICKER_IRENE}, + MAP_GROUP(ROUTE20), MAP_NUM(ROUTE20) }, + { {TRAINER_FISHERMAN_RONALD, TRAINER_FISHERMAN_RONALD}, + MAP_GROUP(ROUTE21_NORTH), MAP_NUM(ROUTE21_NORTH) }, + { {TRAINER_FISHERMAN_CLAUDE, TRAINER_FISHERMAN_CLAUDE}, + MAP_GROUP(ROUTE21_NORTH), MAP_NUM(ROUTE21_NORTH) }, + { {TRAINER_FISHERMAN_WADE, 0xFFFF, 0xFFFF, 0xFFFF, TRAINER_FISHERMAN_WADE_2}, + MAP_GROUP(ROUTE21_NORTH), MAP_NUM(ROUTE21_NORTH) }, + { {TRAINER_FISHERMAN_NOLAN, TRAINER_FISHERMAN_NOLAN}, + MAP_GROUP(ROUTE21_NORTH), MAP_NUM(ROUTE21_NORTH) }, + { {TRAINER_SWIMMER_MALE_SPENCER, TRAINER_SWIMMER_MALE_SPENCER}, + MAP_GROUP(ROUTE21_NORTH), MAP_NUM(ROUTE21_NORTH) }, + { {TRAINER_SWIMMER_MALE_JACK, 0xFFFF, 0xFFFF, 0xFFFF, TRAINER_SWIMMER_MALE_JACK_2}, + MAP_GROUP(ROUTE21_NORTH), MAP_NUM(ROUTE21_NORTH) }, + { {TRAINER_SWIMMER_MALE_JEROME, TRAINER_SWIMMER_MALE_JEROME}, + MAP_GROUP(ROUTE21_NORTH), MAP_NUM(ROUTE21_NORTH) }, + { {TRAINER_SWIMMER_MALE_ROLAND, TRAINER_SWIMMER_MALE_ROLAND}, + MAP_GROUP(ROUTE21_NORTH), MAP_NUM(ROUTE21_NORTH) }, + { {TRAINER_SIS_AND_BRO_LIL_IAN, 0xFFFF, 0xFFFF, 0xFFFF, TRAINER_SIS_AND_BRO_LIL_IAN_2, TRAINER_SIS_AND_BRO_LIL_IAN_3}, + MAP_GROUP(ROUTE21_NORTH), MAP_NUM(ROUTE21_NORTH) }, + { {TRAINER_SWIMMER_FEMALE_MARIA, TRAINER_SWIMMER_FEMALE_MARIA}, + MAP_GROUP(ONE_ISLAND_KINDLE_ROAD), MAP_NUM(ONE_ISLAND_KINDLE_ROAD) }, + { {TRAINER_SWIMMER_FEMALE_ABIGAIL, TRAINER_SWIMMER_FEMALE_ABIGAIL}, + MAP_GROUP(ONE_ISLAND_KINDLE_ROAD), MAP_NUM(ONE_ISLAND_KINDLE_ROAD) }, + { {TRAINER_SWIMMER_MALE_FINN, 0xFFFF, 0xFFFF, 0xFFFF, TRAINER_SWIMMER_MALE_FINN_2}, + MAP_GROUP(ONE_ISLAND_KINDLE_ROAD), MAP_NUM(ONE_ISLAND_KINDLE_ROAD) }, + { {TRAINER_SWIMMER_MALE_GARRETT, TRAINER_SWIMMER_MALE_GARRETT}, + MAP_GROUP(ONE_ISLAND_KINDLE_ROAD), MAP_NUM(ONE_ISLAND_KINDLE_ROAD) }, + { {TRAINER_FISHERMAN_TOMMY, TRAINER_FISHERMAN_TOMMY}, + MAP_GROUP(ONE_ISLAND_KINDLE_ROAD), MAP_NUM(ONE_ISLAND_KINDLE_ROAD) }, + { {TRAINER_CRUSH_GIRL_SHARON, 0xFFFF, 0xFFFF, 0xFFFF, TRAINER_CRUSH_GIRL_SHARON_2, TRAINER_CRUSH_GIRL_SHARON_3}, + MAP_GROUP(ONE_ISLAND_KINDLE_ROAD), MAP_NUM(ONE_ISLAND_KINDLE_ROAD) }, + { {TRAINER_CRUSH_GIRL_TANYA, 0xFFFF, 0xFFFF, 0xFFFF, TRAINER_CRUSH_GIRL_TANYA_2, TRAINER_CRUSH_GIRL_TANYA_3}, + MAP_GROUP(ONE_ISLAND_KINDLE_ROAD), MAP_NUM(ONE_ISLAND_KINDLE_ROAD) }, + { {TRAINER_BLACK_BELT_SHEA, 0xFFFF, 0xFFFF, 0xFFFF, TRAINER_BLACK_BELT_SHEA_2, TRAINER_BLACK_BELT_SHEA_3}, + MAP_GROUP(ONE_ISLAND_KINDLE_ROAD), MAP_NUM(ONE_ISLAND_KINDLE_ROAD) }, + { {TRAINER_BLACK_BELT_HUGH, 0xFFFF, 0xFFFF, 0xFFFF, TRAINER_BLACK_BELT_HUGH_2, TRAINER_BLACK_BELT_HUGH_3}, + MAP_GROUP(ONE_ISLAND_KINDLE_ROAD), MAP_NUM(ONE_ISLAND_KINDLE_ROAD) }, + { {TRAINER_CAMPER_BRYCE, TRAINER_CAMPER_BRYCE}, + MAP_GROUP(ONE_ISLAND_KINDLE_ROAD), MAP_NUM(ONE_ISLAND_KINDLE_ROAD) }, + { {TRAINER_PICNICKER_CLAIRE, TRAINER_PICNICKER_CLAIRE}, + MAP_GROUP(ONE_ISLAND_KINDLE_ROAD), MAP_NUM(ONE_ISLAND_KINDLE_ROAD) }, + { {TRAINER_CRUSH_KIN_MIK_KIA, 0xFFFF, 0xFFFF, 0xFFFF, TRAINER_CRUSH_KIN_MIK_KIA_2, TRAINER_CRUSH_KIN_MIK_KIA_3}, + MAP_GROUP(ONE_ISLAND_KINDLE_ROAD), MAP_NUM(ONE_ISLAND_KINDLE_ROAD) }, + { {TRAINER_SWIMMER_FEMALE_AMARA, TRAINER_SWIMMER_FEMALE_AMARA}, + MAP_GROUP(ONE_ISLAND_TREASURE_BEACH), MAP_NUM(ONE_ISLAND_TREASURE_BEACH) }, + { {TRAINER_AROMA_LADY_NIKKI, TRAINER_AROMA_LADY_NIKKI}, + MAP_GROUP(THREE_ISLAND_BOND_BRIDGE), MAP_NUM(THREE_ISLAND_BOND_BRIDGE) }, + { {TRAINER_AROMA_LADY_VIOLET, TRAINER_AROMA_LADY_VIOLET}, + MAP_GROUP(THREE_ISLAND_BOND_BRIDGE), MAP_NUM(THREE_ISLAND_BOND_BRIDGE) }, + { {TRAINER_TUBER_AMIRA, 0xFFFF, 0xFFFF, 0xFFFF, TRAINER_TUBER_AMIRA_2}, + MAP_GROUP(THREE_ISLAND_BOND_BRIDGE), MAP_NUM(THREE_ISLAND_BOND_BRIDGE) }, + { {TRAINER_TUBER_ALEXIS, TRAINER_TUBER_ALEXIS}, + MAP_GROUP(THREE_ISLAND_BOND_BRIDGE), MAP_NUM(THREE_ISLAND_BOND_BRIDGE) }, + { {TRAINER_SWIMMER_FEMALE_TISHA, TRAINER_SWIMMER_FEMALE_TISHA}, + MAP_GROUP(THREE_ISLAND_BOND_BRIDGE), MAP_NUM(THREE_ISLAND_BOND_BRIDGE) }, + { {TRAINER_TWINS_JOY_MEG, 0xFFFF, 0xFFFF, 0xFFFF, TRAINER_TWINS_JOY_MEG_2}, + MAP_GROUP(THREE_ISLAND_BOND_BRIDGE), MAP_NUM(THREE_ISLAND_BOND_BRIDGE) }, + { {TRAINER_PAINTER_DAISY, TRAINER_PAINTER_DAISY}, + MAP_GROUP(FIVE_ISLAND_RESORT_GORGEOUS), MAP_NUM(FIVE_ISLAND_RESORT_GORGEOUS) }, + { {TRAINER_PAINTER_CELINA, TRAINER_PAINTER_CELINA}, + MAP_GROUP(FIVE_ISLAND_RESORT_GORGEOUS), MAP_NUM(FIVE_ISLAND_RESORT_GORGEOUS) }, + { {TRAINER_PAINTER_RAYNA, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, TRAINER_PAINTER_RAYNA_2}, + MAP_GROUP(FIVE_ISLAND_RESORT_GORGEOUS), MAP_NUM(FIVE_ISLAND_RESORT_GORGEOUS) }, + { {TRAINER_LADY_JACKI, TRAINER_LADY_JACKI}, + MAP_GROUP(FIVE_ISLAND_RESORT_GORGEOUS), MAP_NUM(FIVE_ISLAND_RESORT_GORGEOUS) }, + { {TRAINER_LADY_GILLIAN, TRAINER_LADY_GILLIAN}, + MAP_GROUP(FIVE_ISLAND_RESORT_GORGEOUS), MAP_NUM(FIVE_ISLAND_RESORT_GORGEOUS) }, + { {TRAINER_YOUNGSTER_DESTIN, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, TRAINER_YOUNGSTER_DESTIN_2}, + MAP_GROUP(FIVE_ISLAND_RESORT_GORGEOUS), MAP_NUM(FIVE_ISLAND_RESORT_GORGEOUS) }, + { {TRAINER_SWIMMER_MALE_TOBY, TRAINER_SWIMMER_MALE_TOBY}, + MAP_GROUP(FIVE_ISLAND_RESORT_GORGEOUS), MAP_NUM(FIVE_ISLAND_RESORT_GORGEOUS) }, + { {TRAINER_PKMN_BREEDER_ALIZE, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, TRAINER_PKMN_BREEDER_ALIZE_2}, + MAP_GROUP(FIVE_ISLAND_WATER_LABYRINTH), MAP_NUM(FIVE_ISLAND_WATER_LABYRINTH) }, + { {TRAINER_BIRD_KEEPER_MILO, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, TRAINER_BIRD_KEEPER_MILO_2}, + MAP_GROUP(FIVE_ISLAND_MEMORIAL_PILLAR), MAP_NUM(FIVE_ISLAND_MEMORIAL_PILLAR) }, + { {TRAINER_BIRD_KEEPER_CHAZ, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, TRAINER_BIRD_KEEPER_CHAZ_2}, + MAP_GROUP(FIVE_ISLAND_MEMORIAL_PILLAR), MAP_NUM(FIVE_ISLAND_MEMORIAL_PILLAR) }, + { {TRAINER_BIRD_KEEPER_HAROLD, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, TRAINER_BIRD_KEEPER_HAROLD_2}, + MAP_GROUP(FIVE_ISLAND_MEMORIAL_PILLAR), MAP_NUM(FIVE_ISLAND_MEMORIAL_PILLAR) }, + { {TRAINER_FISHERMAN_TYLOR, TRAINER_FISHERMAN_TYLOR}, + MAP_GROUP(SIX_ISLAND_OUTCAST_ISLAND), MAP_NUM(SIX_ISLAND_OUTCAST_ISLAND) }, + { {TRAINER_SWIMMER_MALE_MYMO, TRAINER_SWIMMER_MALE_MYMO}, + MAP_GROUP(SIX_ISLAND_OUTCAST_ISLAND), MAP_NUM(SIX_ISLAND_OUTCAST_ISLAND) }, + { {TRAINER_SWIMMER_FEMALE_NICOLE, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, TRAINER_SWIMMER_FEMALE_NICOLE_2}, + MAP_GROUP(SIX_ISLAND_OUTCAST_ISLAND), MAP_NUM(SIX_ISLAND_OUTCAST_ISLAND) }, + { {TRAINER_SIS_AND_BRO_AVA_GEB, TRAINER_SIS_AND_BRO_AVA_GEB}, + MAP_GROUP(SIX_ISLAND_OUTCAST_ISLAND), MAP_NUM(SIX_ISLAND_OUTCAST_ISLAND) }, + { {TRAINER_PSYCHIC_JACLYN, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, TRAINER_PSYCHIC_JACLYN_2}, + MAP_GROUP(SIX_ISLAND_GREEN_PATH), MAP_NUM(SIX_ISLAND_GREEN_PATH) }, + { {TRAINER_AROMA_LADY_ROSE, TRAINER_AROMA_LADY_ROSE}, + MAP_GROUP(SIX_ISLAND_WATER_PATH), MAP_NUM(SIX_ISLAND_WATER_PATH) }, + { {TRAINER_JUGGLER_EDWARD, TRAINER_JUGGLER_EDWARD}, + MAP_GROUP(SIX_ISLAND_WATER_PATH), MAP_NUM(SIX_ISLAND_WATER_PATH) }, + { {TRAINER_SWIMMER_MALE_SAMIR, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, TRAINER_SWIMMER_MALE_SAMIR_2}, + MAP_GROUP(SIX_ISLAND_WATER_PATH), MAP_NUM(SIX_ISLAND_WATER_PATH) }, + { {TRAINER_SWIMMER_FEMALE_DENISE, TRAINER_SWIMMER_FEMALE_DENISE}, + MAP_GROUP(SIX_ISLAND_WATER_PATH), MAP_NUM(SIX_ISLAND_WATER_PATH) }, + { {TRAINER_TWINS_MIU_MIA, TRAINER_TWINS_MIU_MIA}, + MAP_GROUP(SIX_ISLAND_WATER_PATH), MAP_NUM(SIX_ISLAND_WATER_PATH) }, + { {TRAINER_HIKER_EARL, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, TRAINER_HIKER_EARL_2}, + MAP_GROUP(SIX_ISLAND_WATER_PATH), MAP_NUM(SIX_ISLAND_WATER_PATH) }, + { {TRAINER_RUIN_MANIAC_STANLY, TRAINER_RUIN_MANIAC_STANLY}, + MAP_GROUP(SIX_ISLAND_RUIN_VALLEY), MAP_NUM(SIX_ISLAND_RUIN_VALLEY) }, + { {TRAINER_RUIN_MANIAC_FOSTER, TRAINER_RUIN_MANIAC_FOSTER}, + MAP_GROUP(SIX_ISLAND_RUIN_VALLEY), MAP_NUM(SIX_ISLAND_RUIN_VALLEY) }, + { {TRAINER_RUIN_MANIAC_LARRY, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, TRAINER_RUIN_MANIAC_LARRY_2}, + MAP_GROUP(SIX_ISLAND_RUIN_VALLEY), MAP_NUM(SIX_ISLAND_RUIN_VALLEY) }, + { {TRAINER_HIKER_DARYL, TRAINER_HIKER_DARYL}, + MAP_GROUP(SIX_ISLAND_RUIN_VALLEY), MAP_NUM(SIX_ISLAND_RUIN_VALLEY) }, + { {TRAINER_POKEMANIAC_HECTOR, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, TRAINER_POKEMANIAC_HECTOR_2}, + MAP_GROUP(SIX_ISLAND_RUIN_VALLEY), MAP_NUM(SIX_ISLAND_RUIN_VALLEY) }, + { {TRAINER_PSYCHIC_DARIO, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, TRAINER_PSYCHIC_DARIO_2}, + MAP_GROUP(SEVEN_ISLAND_TRAINER_TOWER), MAP_NUM(SEVEN_ISLAND_TRAINER_TOWER) }, + { {TRAINER_PSYCHIC_RODETTE, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, TRAINER_PSYCHIC_RODETTE_2}, + MAP_GROUP(SEVEN_ISLAND_TRAINER_TOWER), MAP_NUM(SEVEN_ISLAND_TRAINER_TOWER) }, + { {TRAINER_AROMA_LADY_MIAH, TRAINER_AROMA_LADY_MIAH}, + MAP_GROUP(SEVEN_ISLAND_SEVAULT_CANYON_ENTRANCE), MAP_NUM(SEVEN_ISLAND_SEVAULT_CANYON_ENTRANCE) }, + { {TRAINER_YOUNG_COUPLE_EVE_JON, TRAINER_YOUNG_COUPLE_EVE_JON}, + MAP_GROUP(SEVEN_ISLAND_SEVAULT_CANYON_ENTRANCE), MAP_NUM(SEVEN_ISLAND_SEVAULT_CANYON_ENTRANCE) }, + { {TRAINER_JUGGLER_MASON, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, TRAINER_JUGGLER_MASON_2}, + MAP_GROUP(SEVEN_ISLAND_SEVAULT_CANYON_ENTRANCE), MAP_NUM(SEVEN_ISLAND_SEVAULT_CANYON_ENTRANCE) }, + { {TRAINER_PKMN_RANGER_NICOLAS, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, TRAINER_PKMN_RANGER_NICOLAS_2}, + MAP_GROUP(SEVEN_ISLAND_SEVAULT_CANYON_ENTRANCE), MAP_NUM(SEVEN_ISLAND_SEVAULT_CANYON_ENTRANCE) }, + { {TRAINER_PKMN_RANGER_MADELINE, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, TRAINER_PKMN_RANGER_MADELINE_2}, + MAP_GROUP(SEVEN_ISLAND_SEVAULT_CANYON_ENTRANCE), MAP_NUM(SEVEN_ISLAND_SEVAULT_CANYON_ENTRANCE) }, + { {TRAINER_CRUSH_GIRL_CYNDY, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, TRAINER_CRUSH_GIRL_CYNDY_2}, + MAP_GROUP(SEVEN_ISLAND_SEVAULT_CANYON), MAP_NUM(SEVEN_ISLAND_SEVAULT_CANYON) }, + { {TRAINER_TAMER_EVAN, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, TRAINER_TAMER_EVAN_2}, + MAP_GROUP(SEVEN_ISLAND_SEVAULT_CANYON), MAP_NUM(SEVEN_ISLAND_SEVAULT_CANYON) }, + { {TRAINER_PKMN_RANGER_JACKSON, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, TRAINER_PKMN_RANGER_JACKSON_2}, + MAP_GROUP(SEVEN_ISLAND_SEVAULT_CANYON), MAP_NUM(SEVEN_ISLAND_SEVAULT_CANYON) }, + { {TRAINER_PKMN_RANGER_KATELYN, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, TRAINER_PKMN_RANGER_KATELYN_2}, + MAP_GROUP(SEVEN_ISLAND_SEVAULT_CANYON), MAP_NUM(SEVEN_ISLAND_SEVAULT_CANYON) }, + { {TRAINER_COOLTRAINER_LEROY, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, TRAINER_COOLTRAINER_LEROY_2}, + MAP_GROUP(SEVEN_ISLAND_SEVAULT_CANYON), MAP_NUM(SEVEN_ISLAND_SEVAULT_CANYON) }, + { {TRAINER_COOLTRAINER_MICHELLE, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, TRAINER_COOLTRAINER_MICHELLE_2}, + MAP_GROUP(SEVEN_ISLAND_SEVAULT_CANYON), MAP_NUM(SEVEN_ISLAND_SEVAULT_CANYON) }, + { {TRAINER_COOL_COUPLE_LEX_NYA, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, TRAINER_COOL_COUPLE_LEX_NYA_2}, + MAP_GROUP(SEVEN_ISLAND_SEVAULT_CANYON), MAP_NUM(SEVEN_ISLAND_SEVAULT_CANYON) }, + { {TRAINER_RUIN_MANIAC_BRANDON, TRAINER_RUIN_MANIAC_BRANDON}, + MAP_GROUP(SEVEN_ISLAND_TANOBY_RUINS), MAP_NUM(SEVEN_ISLAND_TANOBY_RUINS) }, + { {TRAINER_RUIN_MANIAC_BENJAMIN, TRAINER_RUIN_MANIAC_BENJAMIN}, + MAP_GROUP(SEVEN_ISLAND_TANOBY_RUINS), MAP_NUM(SEVEN_ISLAND_TANOBY_RUINS) }, + { {TRAINER_PAINTER_EDNA, TRAINER_PAINTER_EDNA}, + MAP_GROUP(SEVEN_ISLAND_TANOBY_RUINS), MAP_NUM(SEVEN_ISLAND_TANOBY_RUINS) }, + { {TRAINER_GENTLEMAN_CLIFFORD, TRAINER_GENTLEMAN_CLIFFORD}, + MAP_GROUP(SEVEN_ISLAND_TANOBY_RUINS), MAP_NUM(SEVEN_ISLAND_TANOBY_RUINS) }, }; static const u8 gUnknown_8453F5C[] = { @@ -625,7 +628,7 @@ void sub_810C444(void) mapObject = &gMapObjects[sp0]; if (sub_810CF04(sp0) == TRUE) { - npc_set_running_behaviour_etc(mapObject, r6); + SetTrainerMovementType(mapObject, r6); } templates[i].movementType = r6; } @@ -641,7 +644,7 @@ bool8 sub_810C4EC(void) gSaveBlock1Ptr->trainerRematchStepCounter++; } - if (FlagGet(0x801) == TRUE) + if (FlagGet(FLAG_SYS_VS_SEEKER_CHARGING) == TRUE) { u16 x; do { @@ -657,7 +660,7 @@ bool8 sub_810C4EC(void) } while (0); if (x == 100) { - FlagClear(0x801); + FlagClear(FLAG_SYS_VS_SEEKER_CHARGING); sub_810C640(); sub_810D0D0(); return TRUE; @@ -743,7 +746,7 @@ bool8 sub_810C4EC(void) void sub_810C578(void) { - FlagClear(0x801); + FlagClear(FLAG_SYS_VS_SEEKER_CHARGING); sub_810C640(); sub_810D0D0(); sub_810C594(); @@ -763,7 +766,7 @@ static void sub_810C594(void) { gSprites[mapObject->spriteId].pos2.x = 0; gSprites[mapObject->spriteId].pos2.y = 0; - npc_set_running_behaviour_etc(mapObject, r3); + SetTrainerMovementType(mapObject, r3); } } } @@ -928,7 +931,7 @@ static u8 GetVsSeekerResponseInArea(const VsSeekerData * a0) if (IsTrainerVisibleOnScreen(&sVsSeeker->trainerInfo[vsSeekerIdx]) == 1) { r8 = sVsSeeker->trainerInfo[vsSeekerIdx].trainerIdx; - if (!HasTrainerAlreadyBeenFought(r8)) + if (!HasTrainerBeenFought(r8)) { StartTrainerObjectMovementScript(&sVsSeeker->trainerInfo[vsSeekerIdx], gUnknown_8453F60); sVsSeeker->trainerHasNotYetBeenFought = 1; @@ -972,7 +975,7 @@ static u8 GetVsSeekerResponseInArea(const VsSeekerData * a0) if (sVsSeeker->trainerWantsRematch) { PlaySE(SE_PIN); - FlagSet(0x801); // TODO: make this an enum + FlagSet(FLAG_SYS_VS_SEEKER_CHARGING); sub_810C640(); return 2; } @@ -1024,7 +1027,7 @@ static u8 GetVsSeekerResponseInArea(const VsSeekerData * a0) "\tadds r0, r5\n" "\tldrh r0, [r0, 0x4]\n" "\tmov r8, r0\n" - "\tbl HasTrainerAlreadyBeenFought\n" + "\tbl HasTrainerBeenFought\n" "\tlsls r0, 24\n" "\tcmp r0, 0\n" "\tbne _0810CA20\n" @@ -1236,10 +1239,10 @@ void sub_810CB90(void) TryGetFieldObjectIdByLocalIdAndMap(r4[r8].localId, gSaveBlock1Ptr->location.mapNum, gSaveBlock1Ptr->location.mapGroup, &sp0); r4_2 = &gMapObjects[sp0]; sub_810CF54(&r4[r8]); // You are using this function incorrectly. Please consult the manual. - sub_805FE7C(r4_2, gUnknown_8453F67[r4_2->mapobj_unk_18]); + sub_805FE7C(r4_2, gUnknown_8453F67[r4_2->facingDirection]); gSaveBlock1Ptr->trainerRematches[r4[r8].localId] = 0; if (gSelectedEventObject == sp0) - r4_2->animPattern = gUnknown_8453F67[r4_2->mapobj_unk_18]; + r4_2->animPattern = gUnknown_8453F67[r4_2->facingDirection]; else r4_2->animPattern = 0x08; } @@ -1254,23 +1257,23 @@ static void TryGetRematchTrainerIdGivenGameState(const u16 * a0, u8 * a1) case 0: break; case 1: - if (!FlagGet(FLAG_0x292)) + if (!FlagGet(FLAG_GOT_VS_SEEKER)) *a1 = GetRematchTrainerIdGivenGameState(a0, *a1); break; case 2: - if (!FlagGet(FLAG_SYS_NATIONAL_DEX)) + if (!FlagGet(FLAG_WORLD_MAP_CELADON_CITY)) *a1 = GetRematchTrainerIdGivenGameState(a0, *a1); break; case 3: - if (!FlagGet(FLAG_SYS_CAVE_SHIP)) + if (!FlagGet(FLAG_WORLD_MAP_FUCHSIA_CITY)) *a1 = GetRematchTrainerIdGivenGameState(a0, *a1); break; case 4: - if (!FlagGet(FLAG_TRAINER_FLAG_START + 0x32c)) + if (!FlagGet(FLAG_SYS_GAME_CLEAR)) *a1 = GetRematchTrainerIdGivenGameState(a0, *a1); break; case 5: - if (!FlagGet(FLAG_TRAINER_FLAG_START + 0x344)) + if (!FlagGet(FLAG_SYS_CAN_LINK_WITH_RS)) *a1 = GetRematchTrainerIdGivenGameState(a0, *a1); break; } @@ -1287,7 +1290,7 @@ static u8 GetRematchTrainerIdGivenGameState(const u16 * a0, u8 a1) return 0; } -u8 sub_810CD4C(void) // unreferenced, or reference not disassembled +u8 ShouldTryRematchBattle(void) { if (sub_810CD80(sVsSeekerData, gTrainerBattleOpponent_A)) { @@ -1302,7 +1305,7 @@ static bool8 sub_810CD80(const VsSeekerData *vsSeekerData, u16 trainerBattleOppo if (rematchIdx == -1) return FALSE; - if (rematchIdx >= 0 && rematchIdx < ARRAY_COUNT(sVsSeekerData)) + if (rematchIdx >= 0 && rematchIdx < NELEMS(sVsSeekerData)) { if (IsThisTrainerRematchable(gSpecialVar_LastTalked)) return TRUE; @@ -1316,7 +1319,7 @@ static bool8 HasRematchTrainerAlreadyBeenFought(const VsSeekerData *vsSeekerData if (rematchIdx == -1) return FALSE; - if (!HasTrainerAlreadyBeenFought(vsSeekerData[rematchIdx].trainerIdxs[0])) + if (!HasTrainerBeenFought(vsSeekerData[rematchIdx].trainerIdxs[0])) return FALSE; return TRUE; } @@ -1324,7 +1327,7 @@ static bool8 HasRematchTrainerAlreadyBeenFought(const VsSeekerData *vsSeekerData void sub_810CDE8(void) { gSaveBlock1Ptr->trainerRematches[gSpecialVar_LastTalked] = 0; - sub_80803FC(); + SetBattledTrainerFlag(); } static s32 sub_810CE10(const VsSeekerData * a0, u16 a1) @@ -1332,7 +1335,7 @@ static s32 sub_810CE10(const VsSeekerData * a0, u16 a1) u32 r1; s32 r3; - for (r1 = 0; r1 < ARRAY_COUNT(sVsSeekerData); r1++) + for (r1 = 0; r1 < NELEMS(sVsSeekerData); r1++) { for (r3 = 0; r3 < 6; r3++) { @@ -1350,7 +1353,7 @@ static s32 sub_810CE10(const VsSeekerData * a0, u16 a1) return -1; } -s32 sub_810CE64(u16 a0) +s32 GetRematchTrainerId(u16 a0) { u8 i; u8 j; @@ -1361,7 +1364,7 @@ s32 sub_810CE64(u16 a0) return sVsSeekerData[i].trainerIdxs[j]; } -u8 sub_810CEB4(void) // unreferenced, or reference not disassembled +u8 ScrSpecial_GetTrainerEyeRematchFlag(void) // unreferenced, or reference not disassembled { return sub_810CED0(sVsSeekerData, gTrainerBattleOpponent_A); } @@ -1372,7 +1375,7 @@ static bool8 sub_810CED0(const VsSeekerData * a0, u16 a1) if (r1 == -1) return FALSE; - if ((u32)r1 >= ARRAY_COUNT(sVsSeekerData)) + if ((u32)r1 >= NELEMS(sVsSeekerData)) return FALSE; if (!IsThisTrainerRematchable(gSpecialVar_LastTalked)) return FALSE; @@ -1411,32 +1414,32 @@ static u8 GetRunningBehaviorFromGraphicsId(u8 graphicsId) { switch (graphicsId) { - case 0x11: - case 0x12: - case 0x13: - case 0x14: - case 0x16: - case 0x17: - case 0x18: - case 0x19: - case 0x1a: - case 0x1c: - case 0x1d: - case 0x1e: - case 0x25: - case 0x27: - case 0x28: - case 0x29: - case 0x2a: - case 0x2d: - case 0x2e: - case 0x36: - case 0x38: - case 0x3e: + case MAP_OBJ_GFX_LITTLE_GIRL: + case MAP_OBJ_GFX_YOUNGSTER: + case MAP_OBJ_GFX_BOY: + case MAP_OBJ_GFX_BUG_CATCHER: + case MAP_OBJ_GFX_LASS: + case MAP_OBJ_GFX_WOMAN_1: + case MAP_OBJ_GFX_BATTLE_GIRL: + case MAP_OBJ_GFX_MAN: + case MAP_OBJ_GFX_ROCKER: + case MAP_OBJ_GFX_WOMAN_2: + case MAP_OBJ_GFX_BEAUTY: + case MAP_OBJ_GFX_BALDING_MAN: + case MAP_OBJ_GFX_TUBER_F: + case MAP_OBJ_GFX_CAMPER: + case MAP_OBJ_GFX_PICNICKER: + case MAP_OBJ_GFX_COOLTRAINER_M: + case MAP_OBJ_GFX_COOLTRAINER_F: + case MAP_OBJ_GFX_SWIMMER_M_LAND: + case MAP_OBJ_GFX_SWIMMER_F_LAND: + case MAP_OBJ_GFX_BLACKBELT: + case MAP_OBJ_GFX_HIKER: + case MAP_OBJ_GFX_SAILOR: return 0x4e; - case 0x24: - case 0x2b: - case 0x2c: + case MAP_OBJ_GFX_TUBER_M_1: + case MAP_OBJ_GFX_SWIMMER_M_WATER: + case MAP_OBJ_GFX_SWIMMER_F_WATER: return 0x4f; default: return 0x4d; @@ -1468,7 +1471,7 @@ static s32 GetRematchIdx(const VsSeekerData * vsSeekerData, u16 trainerFlagIdx) { u32 i; - for (i = 0; i < ARRAY_COUNT(sVsSeekerData); i++) + for (i = 0; i < NELEMS(sVsSeekerData); i++) { if (vsSeekerData[i].trainerIdxs[0] == trainerFlagIdx) return i; @@ -1488,7 +1491,7 @@ void sub_810D0D0(void) { u8 i; - for (i = 0; i < 100; i++) + for (i = 0; i < NELEMS(gSaveBlock1Ptr->trainerRematches); i++) gSaveBlock1Ptr->trainerRematches[i] = 0; } @@ -1515,7 +1518,7 @@ static u8 GetNextAvailableRematchTrainer(const VsSeekerData * vsSeekerData, u16 u32 i; s32 j; - for (i = 0; i < ARRAY_COUNT(sVsSeekerData); i++) + for (i = 0; i < NELEMS(sVsSeekerData); i++) { if (vsSeekerData[i].trainerIdxs[0] == trainerFlagNo) { @@ -1526,7 +1529,7 @@ static u8 GetNextAvailableRematchTrainer(const VsSeekerData * vsSeekerData, u16 return j - 1; if (vsSeekerData[i].trainerIdxs[j] == 0xffff) continue; - if (HasTrainerAlreadyBeenFought(vsSeekerData[i].trainerIdxs[j])) + if (HasTrainerBeenFought(vsSeekerData[i].trainerIdxs[j])) continue; return j; } @@ -1547,7 +1550,7 @@ static u8 GetRematchableTrainerLocalId(void) { if (IsTrainerVisibleOnScreen(&sVsSeeker->trainerInfo[i]) == 1) { - if (HasTrainerAlreadyBeenFought(sVsSeeker->trainerInfo[i].trainerIdx) != 1 || GetNextAvailableRematchTrainer(sVsSeekerData, sVsSeeker->trainerInfo[i].trainerIdx, &idx)) + if (HasTrainerBeenFought(sVsSeeker->trainerInfo[i].trainerIdx) != 1 || GetNextAvailableRematchTrainer(sVsSeekerData, sVsSeeker->trainerInfo[i].trainerIdx, &idx)) return sVsSeeker->trainerInfo[i].localId; } } @@ -1596,7 +1599,7 @@ static void StartAllRespondantIdleMovements(void) struct MapObject *r4 = &gMapObjects[sVsSeeker->trainerInfo[j].fieldObjectId]; if (sub_810CF04(sVsSeeker->trainerInfo[j].fieldObjectId) == 1) - npc_set_running_behaviour_etc(r4, sVsSeeker->runningBehaviourEtcArray[i]); + SetTrainerMovementType(r4, sVsSeeker->runningBehaviourEtcArray[i]); sub_805FE7C(r4, sVsSeeker->runningBehaviourEtcArray[i]); gSaveBlock1Ptr->trainerRematches[sVsSeeker->trainerInfo[j].localId] = GetNextAvailableRematchTrainer(sVsSeekerData, sVsSeeker->trainerInfo[j].trainerIdx, &dummy); } diff --git a/src/wild_pokemon_area.c b/src/wild_pokemon_area.c index 5ea9d1610..df8f9b8d9 100644 --- a/src/wild_pokemon_area.c +++ b/src/wild_pokemon_area.c @@ -180,7 +180,7 @@ s32 BuildPokedexAreaSubspriteBuffer(u16 species, struct Subsprite * subsprites) seviiAreas = GetUnlockedSeviiAreas(); alteringCaveCount = 0; - alteringCaveNum = VarGet(VAR_0x4024); + alteringCaveNum = VarGet(VAR_ALTERING_CAVE_WILD_SET); if (alteringCaveNum > 8) alteringCaveNum = 0; for (i = 0, areaCount = 0; gWildMonHeaders[i].mapGroup != 0xFF; i++) diff --git a/sym_common.txt b/sym_common.txt index 0619ea728..79ccc190d 100644 --- a/sym_common.txt +++ b/sym_common.txt @@ -5,35 +5,8 @@ .include "text.o" .include "sprite.o" .include "link.o" - .align 4 -gPreBattleCallback1: @ 3004F80 - .space 0x4 - -gBattleMainFunc: @ 3004F84 - .space 0xC - -gBattleResults: @ 3004F90 - .space 0x44 - -gLeveledUpInBattle: @ 3004FD4 - .space 0xC - -gBattlerControllerFuncs: @ 3004FE0 - .space 0x10 - -gHealthboxSpriteIds: @ 3004FF0 - .space 0x4 - -gMultiUsePlayerCursor: @ 3004FF4 - .space 0x4 - -gNumberOfMovesToChoose: @ 3004FF8 - .space 0x4 - -gUnknown_3004FFC: @ 3004FFC - .space 0x4 - + .include "battle_main.o" .include "random.o" .include "load_save.o" @@ -74,8 +47,7 @@ gUnknown_3005068: @ 3005068 gUnknown_300506C: @ 300506C .space 0x4 -gUnknown_3005070: @ 3005070 - .space 0x4 + .include "scrcmd.o" gSelectedEventObject: @ 3005074 .space 0x4 @@ -83,9 +55,7 @@ gSelectedEventObject: @ 3005074 gUnknown_3005078: @ 3005078 .space 0x4 -gUnknown_300507C: @ 300507C - .space 0x4 - + .include "event_data.o" .include "sound.o" .include "task.o" @@ -122,13 +92,10 @@ gUnknown_3005350: @ 3005350 gUnknown_3005354: @ 3005354 .space 0xC -gUnknown_3005360: @ 3005360 - .space 0x18 + .align 2 + .include "field_specials.o" -gUnknown_3005378: @ 3005378 - .space 0x4 - -gUnknown_300537C: @ 300537C +gCB2_AfterEvolution: @ 300537C .space 0x4 .include "save.o" @@ -205,7 +172,7 @@ gUnknown_3005E20: @ 3005E20 .align 2 .include "quest_log.o" -gUnknown_3005E8C: @ 3005E8C +sNumQuestLogs: @ 3005E8C .space 0x4 gUnknown_3005E90: @ 3005E90 diff --git a/sym_ewram.txt b/sym_ewram.txt index 0633da5bf..77acf5657 100644 --- a/sym_ewram.txt +++ b/sym_ewram.txt @@ -19,357 +19,7 @@ @ .include "src/link_rfu.o" .include "src/battle_controllers.o" - -gBattle_BG0_X: @ 2022974 - .space 0x2 - -gBattle_BG0_Y: @ 2022976 - .space 0x2 - -gBattle_BG1_X: @ 2022978 - .space 0x2 - -gBattle_BG1_Y: @ 202297A - .space 0x2 - -gBattle_BG2_X: @ 202297C - .space 0x2 - -gBattle_BG2_Y: @ 202297E - .space 0x2 - -gBattle_BG3_X: @ 2022980 - .space 0x2 - -gBattle_BG3_Y: @ 2022982 - .space 0x2 - -gBattle_WIN0H: @ 2022984 - .space 0x2 - -gBattle_WIN0V: @ 2022986 - .space 0x2 - -gUnknown_2022988: @ 2022988 - .space 0x2 - -gUnknown_202298A: @ 202298A - .space 0x2 - -gDisplayedStringBattle: @ 202298C - .space 0x12C - -gBattleTextBuff1: @ 2022AB8 - .space 0x10 - -gBattleTextBuff2: @ 2022AC8 - .space 0x10 - -gBattleTextBuff3: @ 2022AD8 - .space 0x10 - -gUnknown_2022AE8: @ 2022AE8 - .space 0x64 - -gBattleTypeFlags: @ 2022B4C - .space 0x4 - -gBattleTerrain: @ 2022B50 - .space 0x4 - -gUnknown_2022B54: @ 2022B54 - .space 0x4 - -gUnknown_2022B58: @ 2022B58 - .space 0x60 - -gUnknown_2022BB8: @ 2022BB8 - .space 0x4 - -gUnknown_2022BBC: @ 2022BBC - .space 0x4 - -gUnknown_2022BC0: @ 2022BC0 - .space 0x4 - -gBattleBufferA: @ 2022BC4 - .space 0x2 - -gUnknown_2022BC6: @ 2022BC6 - .space 0x1 - -gUnknown_2022BC7: @ 2022BC7 - .space 0x1 - -gUnknown_2022BC8: @ 2022BC8 - .space 0x7FC - -gBattleBufferB: @ 20233C4 - .space 0x4 - -gUnknown_20233C8: @ 20233C8 - .space 0x7FC - -gActiveBattler: @ 2023BC4 - .space 0x4 - -gBattleControllerExecFlags: @ 2023BC8 - .space 0x4 - -gBattlersCount: @ 2023BCC - .space 0x2 - -gBattlerPartyIndexes: @ 2023BCE - .space 0x8 - -gBattlerPositions: @ 2023BD6 - .space 0x4 - -gActionsByTurnOrder: @ 2023BDA - .space 0x4 - -gBattlerByTurnOrder: @ 2023BDE - .space 0x4 - -gCurrentTurnActionNumber: @ 2023BE2 - .space 0x1 - -gCurrentActionFuncId: @ 2023BE3 - .space 0x1 - -gBattleMons: @ 2023BE4 - .space 0xC - -gUnknown_2023BF0: @ 2023BF0 - .space 0xC - -gUnknown_2023BFC: @ 2023BFC - .space 0xC - -gUnknown_2023C08: @ 2023C08 - .space 0x4 - -gUnknown_2023C0C: @ 2023C0C - .space 0x24 - -gUnknown_2023C30: @ 2023C30 - .space 0x4 - -gUnknown_2023C34: @ 2023C34 - .space 0x110 - -gBattlerSpriteIds: @ 2023D44 - .space 0x4 - -gCurrMovePos: @ 2023D48 - .space 0x1 - -gChosenMovePos: @ 2023D49 - .space 0x1 - -gCurrentMove: @ 2023D4A - .space 0x2 - -gChosenMove: @ 2023D4C - .space 0x2 - -gCalledMove: @ 2023D4E - .space 0x2 - -gBattleMoveDamage: @ 2023D50 - .space 0x4 - -gHpDealt: @ 2023D54 - .space 0x4 - -gTakenDmg: @ 2023D58 - .space 0x10 - -gLastUsedItem: @ 2023D68 - .space 0x2 - -gLastUsedAbility: @ 2023D6A - .space 0x1 - -gBattlerAttacker: @ 2023D6B - .space 0x1 - -gBattlerTarget: @ 2023D6C - .space 0x1 - -gBattlerFainted: @ 2023D6D - .space 0x1 - -gEffectBattler: @ 2023D6E - .space 0x1 - -gPotentialItemEffectBattler: @ 2023D6F - .space 0x1 - -gAbsentBattlerFlags: @ 2023D70 - .space 0x1 - -gCritMultiplier: @ 2023D71 - .space 0x1 - -gMultiHitCounter: @ 2023D72 - .space 0x2 - -gBattlescriptCurrInstr: @ 2023D74 - .space 0x8 - -gChosenActionByBattler: @ 2023D7C - .space 0x4 - -gSelectionBattleScripts: @ 2023D80 - .space 0x10 - -gLastPrintedMoves: @ 2023D90 - .space 0x8 - -gLastMoves: @ 2023D98 - .space 0x8 - -gLastLandedMoves: @ 2023DA0 - .space 0x8 - -gLastHitByType: @ 2023DA8 - .space 0x8 - -gLastResultingMoves: @ 2023DB0 - .space 0x8 - -gLockedMoves: @ 2023DB8 - .space 0x8 - -gLastHitBy: @ 2023DC0 - .space 0x4 - -gChosenMoveByBattler: @ 2023DC4 - .space 0x8 - -gMoveResultFlags: @ 2023DCC - .space 0x4 - -gHitMarker: @ 2023DD0 - .space 0x4 - -gUnknown_2023DD4: @ 2023DD4 - .space 0x4 - -gTakenDmgByBattler: @ 2023DD8 - .space 0x4 - -gUnknown_2023DDC: @ 2023DDC - .space 0x2 - -gSideStatuses: @ 2023DDE - .space 0x6 - -gSideTimers: @ 2023DE4 - .space 0x18 - -gStatuses3: @ 2023DFC - .space 0x10 - -gDisableStructs: @ 2023E0C - .space 0x70 - -gPauseCounterBattle: @ 2023E7C - .space 0x2 - -gPaydayMoney: @ 2023E7E - .space 0x2 - -gUnknown_2023E80: @ 2023E80 - .space 0x2 - -gBattleCommunication: @ 2023E82 - .space 0x1 - -gUnknown_2023E83: @ 2023E83 - .space 0x7 - -gBattleOutcome: @ 2023E8A - .space 0x2 - -gProtectStructs: @ 2023E8C - .space 0x40 - -gSpecialStatuses: @ 2023ECC - .space 0x50 - -gBattleWeather: @ 2023F1C - .space 0x4 - -gWishFutureKnock: @ 2023F20 - .space 0x2C - -gIntroSlideFlags: @ 2023F4C - .space 0x2 - -gSentPokesToOpponent: @ 2023F4E - .space 0x2 - -gDynamicBasePower: @ 2023F50 - .space 0x2 - -gExpShareExp: @ 2023F52 - .space 0x2 - -gEnigmaBerries: @ 2023F54 - .space 0x70 - -gBattleScripting: @ 2023FC4 - .space 0x4 - -gUnknown_2023FC8: @ 2023FC8 - .space 0x20 - -gBattleStruct: @ 2023FE8 - .space 0x4 - -gLinkBattleSendBuffer: @ 2023FEC - .space 0x4 - -gLinkBattleRecvBuffer: @ 2023FF0 - .space 0x4 - -gBattleResources: @ 2023FF4 - .space 0x4 - -gActionSelectionCursor: @ 2023FF8 - .space 0x4 - -gMoveSelectionCursor: @ 2023FFC - .space 0x4 - -gBattlerStatusSummaryTaskId: @ 2024000 - .space 0x4 - -gBattlerInMenuId: @ 2024004 - .space 0x1 - -gDoingBattleAnim: @ 2024005 - .space 0x3 - -gTransformedPersonalities: @ 2024008 - .space 0x10 - -gBattleSpritesDataPtr: @ 2024018 - .space 0x4 - -gMonSpritesGfxPtr: @ 202401C - .space 0x4 - -gBattleMovePower: @ 2024020 - .space 0x2 - -gMoveToLearn: @ 2024022 - .space 0x2 - -gBattleMonForms: @ 2024024 - .space 0x4 + .include "src/battle_main.o" sLearningMoveTableID: @ 2024028 .space 0x1 @@ -509,73 +159,12 @@ gUnknown_203709A: @ 203709A gUnknown_203709C: @ 203709C .space 0x4 - .include "src/script.o" - .include "src/scrcmd.o" - .align 2 -gSpecialVar_0x8000: @ 20370B8 - .space 0x2 - -gSpecialVar_0x8001: @ 20370BA - .space 0x2 - -gSpecialVar_0x8002: @ 20370BC - .space 0x2 - -gSpecialVar_0x8003: @ 20370BE - .space 0x2 - -gSpecialVar_0x8004: @ 20370C0 - .space 0x2 - -gSpecialVar_0x8005: @ 20370C2 - .space 0x2 - -gSpecialVar_0x8006: @ 20370C4 - .space 0x2 - -gSpecialVar_0x8007: @ 20370C6 - .space 0x2 - -gSpecialVar_0x8008: @ 20370C8 - .space 0x2 - -gSpecialVar_0x8009: @ 20370CA - .space 0x2 - -gSpecialVar_0x800A: @ 20370CC - .space 0x2 - -gSpecialVar_0x800B: @ 20370CE - .space 0x2 - -gSpecialVar_Result: @ 20370D0 - .space 0x2 - -gSpecialVar_LastTalked: @ 20370D2 - .space 0x2 - -gSpecialVar_Facing: @ 20370D4 - .space 0x2 - -gSpecialVar_MonBoxId: @ 20370D6 - .space 0x2 - -gSpecialVar_MonBoxPos: @ 20370D8 - .space 0x2 - -gUnknown_20370DA: @ 20370DA - .space 0x2 - -gUnknown_20370DC: @ 20370DC - .space 0x2 - -gUnknown_20370DE: @ 20370DE - .space 0x2 - -gUnknown_20370E0: @ 20370E0 - .space 0x10 - + .include "src/script.o" + .align 2 + .include "src/scrcmd.o" + .align 2 + .include "src/event_data.o" .align 2 .include "src/start_menu.o" .align 2 @@ -677,35 +266,8 @@ gUnknown_20386A4: @ 20386A4 gUnknown_20386A8: @ 20386A8 .space 0x4 -gUnknown_20386AC: @ 20386AC - .space 0x2 - -gTrainerBattleOpponent_A: @ 20386AE - .space 0x2 - -gUnknown_20386B0: @ 20386B0 - .space 0x4 - -gUnknown_20386B4: @ 20386B4 - .space 0x4 - -gUnknown_20386B8: @ 20386B8 - .space 0x4 - -gUnknown_20386BC: @ 20386BC - .space 0x4 - -gUnknown_20386C0: @ 20386C0 - .space 0x4 - -gUnknown_20386C4: @ 20386C4 - .space 0x4 - -gUnknown_20386C8: @ 20386C8 - .space 0x4 - -gUnknown_20386CC: @ 20386CC - .space 0x4 + .include "src/battle_setup.o" + .align 2 gUnknown_20386D0: @ 20386D0 .space 0xC @@ -842,9 +404,10 @@ gUnknown_203996C: @ 203996C gUnknown_2039984: @ 2039984 .space 0x4 -gUnknown_2039988: @ 2039988 - .space 0x4 + .align 2 + .include "src/script_menu.o" + .align 2 gUnknown_203998C: @ 203998C .space 0x4 @@ -869,9 +432,9 @@ gUnknown_20399BC: @ 20399BC gUnknown_20399C0: @ 20399C0 .space 0x4 -gUnknown_20399C4: @ 20399C4 - .space 0x4 - + .align 2 + .include "src/mail.o" + .align 2 .include "src/menu_helpers.o" .align 2 @@ -908,27 +471,10 @@ gAIScriptPtr: @ 2039A00 gPlayerFacingPosition: @ 2039A04 .space 0x8 -gUnknown_2039A0C: @ 2039A0C - .space 0x2 - -gUnknown_2039A0E: @ 2039A0E - .space 0x2 - -gUnknown_2039A10: @ 2039A10 - .space 0x4 - -gUnknown_2039A14: @ 2039A14 - .space 0x4 - -gUnknown_2039A18: @ 2039A18 - .space 0x2 - -gUnknown_2039A1A: @ 2039A1A - .space 0x1 - -gUnknown_2039A1B: @ 2039A1B - .space 0x1 + .align 2 + .include "src/field_specials.o" + .align 2 .include "src/battle_records.o" gUnknown_2039A20: @ 2039A20 diff --git a/tools/br_ips/br_ips.c b/tools/br_ips/br_ips.c index 440705cab..58e28202f 100644 --- a/tools/br_ips/br_ips.c +++ b/tools/br_ips/br_ips.c @@ -1,4 +1,3 @@ -#define _POSIX_C_SOURCE 200808L // Don't use GNU getline #include #include #include @@ -20,6 +19,7 @@ static const char HELP[] = "br_ips\n" "Options:\n" " -h - show this message and exit\n"; +#if !defined(__CYGWIN__) && !defined(__APPLE__) && (_POSIX_C_SOURCE < 200809L || !_GNU_SOURCE) static int getline(char ** lineptr, size_t * n, FILE * stream) { // Static implementation of GNU getline int i = 0; @@ -49,6 +49,7 @@ static int getline(char ** lineptr, size_t * n, FILE * stream) { buf[i] = 0; return i; } +#endif static void getIncbinsFromFile(hunk_t ** hunks, size_t * num, size_t * maxnum, const char * fname, char ** strbuf, size_t * buffersize) { // Recursively find incbinned segments and encode them as hunks. @@ -254,25 +255,30 @@ static void writePatch(const char * filename, const hunk_t * hunks, size_t num, // Maximum hunk size is 65535 bytes. For convenience, we allocate a // round 65536 (0x10000). This has no effect on memory consumption, // as malloc will round this up anyway. - char * readbuf = malloc(0x10000); - if (readbuf == NULL) FATAL_ERROR("failed to allocate write buffer\n"); - fwrite("PATCH", 1, 5, file); // magic - for (int i = 0; i < num; i++) { - // Encode the offset - uint32_t offset = hunks[i].offset; - putc(offset >> 16, file); - putc(offset >> 8, file); - putc(offset >> 0, file); - // Encode the size - size_t size = hunks[i].size; - putc(size >> 8, file); - putc(size >> 0, file); - // Yank the data straight from the ROM - if (fseek(rom, offset, SEEK_SET)) FATAL_ERROR("seek\n"); - if (fread(readbuf, 1, size, rom) != size) FATAL_ERROR("read\n"); - if (fwrite(readbuf, 1, size, file) != size) FATAL_ERROR("write\n"); + char * readbuf = NULL; + if (rom != NULL) { + readbuf = malloc(0x10000); + if (readbuf == NULL) FATAL_ERROR("failed to allocate write buffer\n"); + } + fwrite("PATCH", 1, 5, file); // magic + if (readbuf != NULL) { + for (int i = 0; i < num; i++) { + // Encode the offset + uint32_t offset = hunks[i].offset; + putc(offset >> 16, file); + putc(offset >> 8, file); + putc(offset >> 0, file); + // Encode the size + size_t size = hunks[i].size; + putc(size >> 8, file); + putc(size >> 0, file); + // Yank the data straight from the ROM + if (fseek(rom, offset, SEEK_SET)) FATAL_ERROR("seek\n"); + if (fread(readbuf, 1, size, rom) != size) FATAL_ERROR("read\n"); + if (fwrite(readbuf, 1, size, file) != size) FATAL_ERROR("write\n"); + } + free(readbuf); } - free(readbuf); // Write the EOF magic fwrite("EOF", 1, 3, file); fclose(file); @@ -306,14 +312,15 @@ int main(int argc, char ** argv) { "If there are baserom.gba hunks in this project,\n" "please ping PikalaxALT on the pret discord,\n" "channel #gen-3-help.\n"); + writePatch("baserom.ips", NULL, 0, NULL); } else { // Merge neighboring hunks to reduce the number of hunks. collapseIncbins(hunks, &num); // Encode the hunks in the IPS patch. writePatch("baserom.ips", hunks, num, rom); - // Communicate status to the user. - puts("IPS file created at baserom.ips\n"); } + // Communicate status to the user. + puts("IPS file created at baserom.ips\n"); // Clean up and return. fclose(rom); free(hunks); diff --git a/tools/mapjson/mapjson.cpp b/tools/mapjson/mapjson.cpp index 607d2bf7d..42bc20a8a 100644 --- a/tools/mapjson/mapjson.cpp +++ b/tools/mapjson/mapjson.cpp @@ -345,7 +345,8 @@ string generate_firered_map_events_text(Json map_data) { << bg_event["elevation"].int_value() << ", " << bg_event["item"].string_value() << ", " << bg_event["flag"].string_value() << ", " - << bg_event["unknown"].int_value() << "\n"; + << bg_event["quantity"].int_value() << ", " + << bg_event["underfoot"].bool_value() << "\n"; } else { string type_string = bg_event["type"].string_value();