Backup prior to global introduction of PERSONTYPE constants

This commit is contained in:
PikalaxALT 2015-11-15 14:59:38 -05:00
parent b921226aea
commit ead04b3b75
10 changed files with 157 additions and 120 deletions

View File

@ -653,3 +653,12 @@ NUM_SPAWNS EQU const_value
const PALETTE_DARK const PALETTE_DARK
FIXED_FACING EQU 2 FIXED_FACING EQU 2
const_def
const PERSONTYPE_SCRIPT
const PERSONTYPE_ITEMFRAGMENT
const PERSONTYPE_TRAINER
const PERSONTYPE_3
const PERSONTYPE_4
const PERSONTYPE_5
const PERSONTYPE_6

View File

@ -635,21 +635,23 @@ TryObjectEvent: ; 969b5
jp [hl] jp [hl]
.nope_bugged .nope_bugged
; pop bc
xor a xor a
ret ret
.pointers .pointers
dbw 0, .zero dbw PERSONTYPE_SCRIPT, .script
dbw 1, .one dbw PERSONTYPE_ITEMFRAGMENT, .itemfragment
dbw 2, .two dbw PERSONTYPE_TRAINER, .trainer
dbw 3, .three ; the remaining four are dummy events
dbw 4, .four dbw PERSONTYPE_3, .three
dbw 5, .five dbw PERSONTYPE_4, .four
dbw 6, .six dbw PERSONTYPE_5, .five
dbw PERSONTYPE_6, .six
db -1 db -1
; 96a04 ; 96a04
.zero ; 96a04 .script ; 96a04
ld hl, MAPOBJECT_SCRIPT_POINTER ld hl, MAPOBJECT_SCRIPT_POINTER
add hl, bc add hl, bc
ld a, [hli] ld a, [hli]
@ -657,11 +659,10 @@ TryObjectEvent: ; 969b5
ld l, a ld l, a
call GetMapScriptHeaderBank call GetMapScriptHeaderBank
call CallScript call CallScript
; ld a, -1
ret ret
; 96a12 ; 96a12
.one ; 96a12 .itemfragment ; 96a12
ld hl, MAPOBJECT_SCRIPT_POINTER ld hl, MAPOBJECT_SCRIPT_POINTER
add hl, bc add hl, bc
ld a, [hli] ld a, [hli]
@ -671,14 +672,14 @@ TryObjectEvent: ; 969b5
ld de, EngineBuffer1 ld de, EngineBuffer1
ld bc, 2 ld bc, 2
call FarCopyBytes call FarCopyBytes
ld a, 3 ld a, PLAYEREVENT_ITEMBALL
scf scf
ret ret
; 96a29 ; 96a29
.two ; 96a29 .trainer ; 96a29
call Function3674 call TalkToTrainer
ld a, 2 ld a, PLAYEREVENT_TALKTOTRAINER
scf scf
ret ret
; 96a30 ; 96a30
@ -729,16 +730,16 @@ TryReadSign: ; 96a38
; 96a59 ; 96a59
.up .up
ld b, UP << 2 ld b, OW_UP
jr .checkdir jr .checkdir
.down .down
ld b, DOWN << 2 ld b, OW_DOWN
jr .checkdir jr .checkdir
.right .right
ld b, RIGHT << 2 ld b, OW_RIGHT
jr .checkdir jr .checkdir
.left .left
ld b, LEFT << 2 ld b, OW_LEFT
jr .checkdir jr .checkdir
.checkdir .checkdir

View File

@ -197,12 +197,12 @@ Function4427: ; 4427
ld hl, OBJECT_FLAGS1 ld hl, OBJECT_FLAGS1
add hl, bc add hl, bc
bit 0, [hl] bit 0, [hl]
jr nz, Function44a3 jr nz, SetFacingStanding
ld hl, OBJECT_FLAGS2 ld hl, OBJECT_FLAGS2
add hl, bc add hl, bc
bit 6, [hl] bit 6, [hl]
jr nz, Function44a3 jr nz, SetFacingStanding
bit 5, [hl] bit 5, [hl]
jr nz, Function4448 jr nz, Function4448
@ -215,7 +215,7 @@ Function4440: ; 4440
ld hl, OBJECT_FLAGS1 ld hl, OBJECT_FLAGS1
add hl, bc add hl, bc
bit 0, [hl] bit 0, [hl]
jr nz, Function44a3 jr nz, SetFacingStanding
; fallthrough ; fallthrough
; 4448 ; 4448
@ -243,33 +243,33 @@ endr
; 445f ; 445f
Pointers445f: ; 445f Pointers445f: ; 445f
dw Function44a3, Function44a3 ; 00 dw SetFacingStanding, SetFacingStanding ; 00
dw Function44b5, Function44aa ; 01 dw Function44b5, SetFacingCurrent ; 01
dw Function44c1, Function44aa ; 02 dw Function44c1, SetFacingCurrent ; 02
dw Function4508, Function44aa ; 03 dw Function4508, SetFacingCurrent ; 03
dw Function4529, Function44aa ; 04 dw Function4529, SetFacingCurrent ; 04
dw Function4539, Function44a3 ; 05 dw Function4539, SetFacingStanding ; 05
dw Function456e, Function456e ; 06 dw Function456e, Function456e ; 06
dw Function457b, Function44a3 ; 07 dw Function457b, SetFacingStanding ; 07
dw Function4582, Function4582 ; 08 dw Function4582, Function4582 ; 08
dw Function4589, Function4589 ; 09 dw Function4589, Function4589 ; 09
dw Function4590, Function45a4 ; 0a dw Function4590, Function45a4 ; 0a
dw Function45ab, Function44aa ; 0c dw Function45ab, SetFacingCurrent ; 0c
dw Function45be, Function45be ; 0b dw Function45be, Function45be ; 0b
dw Function45c5, Function45c5 ; 0d dw Function45c5, Function45c5 ; 0d
dw Function45da, Function44a3 ; 0e dw Function45da, SetFacingStanding ; 0e
dw Function45ed, Function44a3 ; 0f dw Function45ed, SetFacingStanding ; 0f
dw Function44e4, Function44aa ; 10 dw Function44e4, SetFacingCurrent ; 10
; 44a3 ; 44a3
Function44a3: ; 44a3 SetFacingStanding: ; 44a3
ld hl, OBJECT_FACING_STEP ld hl, OBJECT_FACING_STEP
add hl, bc add hl, bc
ld [hl], -1 ld [hl], STANDING
ret ret
; 44aa ; 44aa
Function44aa: ; 44aa SetFacingCurrent: ; 44aa
call GetSpriteDirection call GetSpriteDirection
or 0 ; useless or 0 ; useless
ld hl, OBJECT_FACING_STEP ld hl, OBJECT_FACING_STEP
@ -284,26 +284,28 @@ Function44b5: ; 44b5
ld a, [hl] ld a, [hl]
and 1 and 1
jr nz, Function44c1 jr nz, Function44c1
jp Function44aa jp SetFacingCurrent
; 44c1 ; 44c1
Function44c1: ; 44c1 Function44c1: ; 44c1
ld hl, OBJECT_FLAGS1 ld hl, OBJECT_FLAGS1
add hl, bc add hl, bc
bit 3, [hl] bit 3, [hl]
jp nz, Function44aa jp nz, SetFacingCurrent
ld hl, OBJECT_12 ld hl, OBJECT_12
add hl, bc add hl, bc
ld a, [hl] ld a, [hl]
inc a inc a
and %00001111 and %00001111
ld [hl], a ld [hl], a
rrca rrca
rrca rrca
and %00000011 and %00000011
ld d, a ld d, a
call GetSpriteDirection call GetSpriteDirection
or 0 or 0 ; useless
or d or d
ld hl, OBJECT_FACING_STEP ld hl, OBJECT_FACING_STEP
add hl, bc add hl, bc
@ -315,7 +317,7 @@ Function44e4: ; 44e4
ld hl, OBJECT_FLAGS1 ld hl, OBJECT_FLAGS1
add hl, bc add hl, bc
bit 3, [hl] bit 3, [hl]
jp nz, Function44aa jp nz, SetFacingCurrent
ld hl, OBJECT_12 ld hl, OBJECT_12
add hl, bc add hl, bc
ld a, [hl] ld a, [hl]
@ -327,7 +329,7 @@ Function44e4: ; 44e4
and %00000011 and %00000011
ld d, a ld d, a
call GetSpriteDirection call GetSpriteDirection
or 0 or 0 ; useless
or d or d
ld hl, OBJECT_FACING_STEP ld hl, OBJECT_FACING_STEP
add hl, bc add hl, bc
@ -339,7 +341,7 @@ Function4508: ; 4508
ld hl, OBJECT_FLAGS1 ld hl, OBJECT_FLAGS1
add hl, bc add hl, bc
bit 3, [hl] bit 3, [hl]
jp nz, Function44aa jp nz, SetFacingCurrent
ld hl, OBJECT_12 ld hl, OBJECT_12
add hl, bc add hl, bc
inc [hl] inc [hl]
@ -350,7 +352,7 @@ Function4508: ; 4508
and %00000011 and %00000011
ld d, a ld d, a
call GetSpriteDirection call GetSpriteDirection
or 0 or 0 ; useless
or d or d
ld hl, OBJECT_FACING_STEP ld hl, OBJECT_FACING_STEP
add hl, bc add hl, bc
@ -363,7 +365,7 @@ Function4529: ; 4529
ld hl, OBJECT_FACING ld hl, OBJECT_FACING
add hl, bc add hl, bc
ld a, [hl] ld a, [hl]
or 0 or 0 ; useless
ld hl, OBJECT_FACING_STEP ld hl, OBJECT_FACING_STEP
add hl, bc add hl, bc
ld [hl], a ld [hl], a
@ -372,7 +374,7 @@ Function4529: ; 4529
Function4539: ; 4539 Function4539: ; 4539
call Function453f call Function453f
jp Function44a3 jp SetFacingStanding
; 453f ; 453f
Function453f: ; 453f Function453f: ; 453f
@ -409,7 +411,7 @@ Function453f: ; 453f
; 456a ; 456a
.Directions ; 456a .Directions ; 456a
db DOWN << 2, RIGHT << 2, UP << 2, LEFT << 2 db OW_DOWN, OW_RIGHT, OW_UP, OW_LEFT
; 456e ; 456e
Function456e: ; 456e Function456e: ; 456e
@ -562,12 +564,12 @@ Function4600: ; 4600
add hl, bc add hl, bc
ld [hl], a ld [hl], a
call Function4661 call SetTallGrassFlags
ld hl, OBJECT_NEXT_TILE ld hl, OBJECT_NEXT_TILE
add hl, bc add hl, bc
ld a, [hl] ld a, [hl]
call Function4679 call UselessAndA
ret ret
; 462a ; 462a
@ -593,30 +595,30 @@ Function462a: ; 462a
Function463f: ; 463f Function463f: ; 463f
ld hl, OBJECT_FLAGS2 ld hl, OBJECT_FLAGS2
add hl, bc add hl, bc
bit 3, [hl] bit 3, [hl] ; is current tile grass?
jr z, .ok jr z, .ok
ld hl, OBJECT_NEXT_TILE ld hl, OBJECT_NEXT_TILE
add hl, bc add hl, bc
ld a, [hl] ld a, [hl]
call Function4661 call SetTallGrassFlags
.ok .ok
ld hl, OBJECT_NEXT_TILE ld hl, OBJECT_NEXT_TILE
add hl, bc add hl, bc
ld a, [hl] ld a, [hl]
call Function4679 call UselessAndA
ret c ret c ; never happens
ld hl, OBJECT_STANDING_TILE ld hl, OBJECT_STANDING_TILE
add hl, bc add hl, bc
ld a, [hl] ld a, [hl]
call Function4679 call UselessAndA
ret ret
; 4661 ; 4661
Function4661: ; 4661 SetTallGrassFlags: ; 4661
call CheckSuperTallGrassTile call CheckSuperTallGrassTile
jr z, .set jr z, .set
call Function1875 call CheckGrassTile
jr c, .reset jr c, .reset
.set .set
@ -632,7 +634,7 @@ Function4661: ; 4661
ret ret
; 4679 ; 4679
Function4679: ; 4679 UselessAndA: ; 4679
and a and a
ret ret
; 467b ; 467b
@ -661,7 +663,7 @@ Function4690: ; 4690
ld hl, OBJECT_FLAGS1 ld hl, OBJECT_FLAGS1
add hl, bc add hl, bc
bit FIXED_FACING, [hl] bit FIXED_FACING, [hl]
jr nz, GetStandingTile jr nz, GetNextTile
rept 2 rept 2
add a add a
@ -670,8 +672,8 @@ endr
ld hl, OBJECT_FACING ld hl, OBJECT_FACING
add hl, bc add hl, bc
ld [hl], a ld [hl], a
GetStandingTile: ; 46a6
GetNextTile: ; 46a6
call GetStepVector call GetStepVector
ld hl, OBJECT_STEP_DURATION ld hl, OBJECT_STEP_DURATION
@ -852,7 +854,7 @@ DecrementObjectMovementByteIndex: ; 478d
ret ret
; 4793 ; 4793
JumptoObjectMovementByteIndex: ; 4793 MovementAnonymousJumptable: ; 4793
ld hl, OBJECT_MOVEMENT_BYTE_INDEX ld hl, OBJECT_MOVEMENT_BYTE_INDEX
add hl, bc add hl, bc
ld a, [hl] ld a, [hl]
@ -1073,7 +1075,7 @@ Function47dd: ; 47dd
; 48ac ; 48ac
.Strength: ; 48ac .Strength: ; 48ac
call JumptoObjectMovementByteIndex call MovementAnonymousJumptable
dw .Strength_Start dw .Strength_Start
dw .Strength_Stop dw .Strength_Stop
; 48b3 ; 48b3
@ -1120,8 +1122,6 @@ Function47dd: ; 47dd
.on_pit .on_pit
call IncrementObjectMovementByteIndex call IncrementObjectMovementByteIndex
; fallthrough
; 48f8
.Strength_Stop: ; 48f8 .Strength_Stop: ; 48f8
ld hl, OBJECT_DIRECTION_WALKING ld hl, OBJECT_DIRECTION_WALKING
@ -1227,14 +1227,14 @@ Function47dd: ; 47dd
; 4984 ; 4984
.MovementSpinCounterclockwise: ; 4984 .MovementSpinCounterclockwise: ; 4984
call JumptoObjectMovementByteIndex call MovementAnonymousJumptable
dw .MovementSpinInit dw .MovementSpinInit
dw .MovementSpinRepeat dw .MovementSpinRepeat
dw .MovementSpinTurnLeft dw .MovementSpinTurnLeft
; 498d ; 498d
.MovementSpinClockwise: ; 498d .MovementSpinClockwise: ; 498d
call JumptoObjectMovementByteIndex call MovementAnonymousJumptable
dw .MovementSpinInit dw .MovementSpinInit
dw .MovementSpinRepeat dw .MovementSpinRepeat
dw .MovementSpinTurnRight dw .MovementSpinTurnRight
@ -1243,9 +1243,6 @@ Function47dd: ; 47dd
.MovementSpinInit: ; 4996 .MovementSpinInit: ; 4996
call Function467b call Function467b
call IncrementObjectMovementByteIndex call IncrementObjectMovementByteIndex
; fallthrough
; 499c
.MovementSpinRepeat: ; 499c .MovementSpinRepeat: ; 499c
ld hl, OBJECT_ACTION ld hl, OBJECT_ACTION
add hl, bc add hl, bc
@ -1271,7 +1268,7 @@ Function47dd: ; 47dd
; 49c0 ; 49c0
.DirectionData_Counterclockwise ; 49c0 .DirectionData_Counterclockwise ; 49c0
db RIGHT << 2, LEFT << 2, DOWN << 2, UP << 2 db OW_RIGHT, OW_LEFT, OW_DOWN, OW_UP
; 49c4 ; 49c4
.MovementSpinTurnRight: ; 49c4 .MovementSpinTurnRight: ; 49c4
@ -1281,7 +1278,7 @@ Function47dd: ; 47dd
; 49cc ; 49cc
.DirectionData_Clockwise ; 49cc .DirectionData_Clockwise ; 49cc
db LEFT << 2, RIGHT << 2, UP << 2, DOWN << 2 db OW_LEFT, OW_RIGHT, OW_UP, OW_DOWN
; 49d0 ; 49d0
.MovementSpinNextFacing: ; 49d0 .MovementSpinNextFacing: ; 49d0
@ -1485,16 +1482,19 @@ endr
.RandomWalkContinue: ; 4af0 .RandomWalkContinue: ; 4af0
call Function4690 call Function4690
call Function6ec1 call Function6ec1 ; check whether the object can move in that direction
jr c, Function4b17 jr c, .NewDuration
call Function463f call Function463f
ld hl, OBJECT_ACTION ld hl, OBJECT_ACTION
add hl, bc add hl, bc
ld [hl], PERSON_ACTION_02 ld [hl], PERSON_ACTION_02
ld hl, wd4cf ld hl, wd4cf
ld a, [hMapObjectIndexBuffer] ld a, [hMapObjectIndexBuffer]
cp [hl] cp [hl]
jr z, .load_6 jr z, .load_6
ld hl, OBJECT_STEP_TYPE ld hl, OBJECT_STEP_TYPE
add hl, bc add hl, bc
ld [hl], STEP_TYPE_07 ld [hl], STEP_TYPE_07
@ -1506,12 +1506,9 @@ endr
ld [hl], STEP_TYPE_06 ld [hl], STEP_TYPE_06
ret ret
Function4b17: ; 4b17 .NewDuration: ; 4b17
call Function467b call Function467b
call Function462a call Function462a
; fallthrough
; 4b1d
RandomStepDuration_Slow: ; 4b1d RandomStepDuration_Slow: ; 4b1d
call Random call Random
ld a, [hRandomAdd] ld a, [hRandomAdd]
@ -1598,7 +1595,7 @@ Function4b8d: ; 4b8d
dec [hl] dec [hl]
ret nz ret nz
call Function4600 call Function4600
call GetStandingTile call GetNextTile
ld hl, OBJECT_FLAGS2 ld hl, OBJECT_FLAGS2
add hl, bc add hl, bc
res 3, [hl] res 3, [hl]
@ -1655,7 +1652,7 @@ Function4bd2: ; 4bd2
; 4bf2 ; 4bf2
Function4bf2: ; 4bf2 Function4bf2: ; 4bf2
call GetStandingTile call GetNextTile
ld hl, wPlayerStepFlags ld hl, wPlayerStepFlags
set 7, [hl] set 7, [hl]
call IncrementObjectStructField28 call IncrementObjectStructField28
@ -2880,7 +2877,7 @@ Function5688: ; 5688
ld hl, OBJECT_NEXT_TILE ld hl, OBJECT_NEXT_TILE
add hl, bc add hl, bc
ld [hl], a ld [hl], a
callba Function463f callba Function463f ; no need to farcall
ret ret
; 56a3 ; 56a3

View File

@ -750,7 +750,7 @@ NormalStep: ; 5412
call CheckSuperTallGrassTile call CheckSuperTallGrassTile
jr z, .shake_grass jr z, .shake_grass
call Function1875 call CheckGrassTile
jr c, .skip_grass jr c, .skip_grass
.shake_grass .shake_grass

View File

@ -1464,26 +1464,28 @@ CheckTrainerBattle:: ; 360d
ld [EngineBuffer2], a ld [EngineBuffer2], a
ld a, c ld a, c
ld [EngineBuffer3], a ld [EngineBuffer3], a
jr Function367e jr LoadTrainer_continue
; 3674 ; 3674
Function3674:: ; 3674 TalkToTrainer:: ; 3674
ld a, 1 ld a, 1
ld [EngineBuffer2], a ld [EngineBuffer2], a
ld a, -1 ld a, -1
ld [EngineBuffer3], a ld [EngineBuffer3], a
Function367e:: ; 367e LoadTrainer_continue:: ; 367e
call GetMapScriptHeaderBank call GetMapScriptHeaderBank
ld [EngineBuffer1], a ld [EngineBuffer1], a
ld a, [hLastTalked] ld a, [hLastTalked]
call GetMapObject call GetMapObject
ld hl, MAPOBJECT_SCRIPT_POINTER ld hl, MAPOBJECT_SCRIPT_POINTER
add hl, bc add hl, bc
ld a, [EngineBuffer1] ld a, [EngineBuffer1]
call GetFarHalfword call GetFarHalfword
ld de, wd041 ld de, wTempTrainerHeader
ld bc, $000d ld bc, wTempTrainerHeaderEnd - wTempTrainerHeader
ld a, [EngineBuffer1] ld a, [EngineBuffer1]
call FarCopyBytes call FarCopyBytes
xor a xor a
@ -1537,12 +1539,12 @@ FacingPlayerDistance:: ; 36ad
cpl cpl
inc a inc a
ld d, a ld d, a
ld e, UP << 2 ld e, OW_UP
jr .CheckFacing jr .CheckFacing
.Above .Above
ld d, a ld d, a
ld e, DOWN << 2 ld e, OW_DOWN
jr .CheckFacing jr .CheckFacing
.CheckX .CheckX
@ -1555,12 +1557,12 @@ FacingPlayerDistance:: ; 36ad
cpl cpl
inc a inc a
ld d, a ld d, a
ld e, LEFT << 2 ld e, OW_LEFT
jr .CheckFacing jr .CheckFacing
.Left .Left
ld d, a ld d, a
ld e, RIGHT << 2 ld e, OW_RIGHT
.CheckFacing .CheckFacing
call GetSpriteDirection call GetSpriteDirection

View File

@ -124,7 +124,18 @@ GetTileCollision:: ; 185d
; 1875 ; 1875
Function1875:: ; 1875 CheckGrassTile:: ; 1875
; and %00110111
; cp $10
; ret c
; cp $30
; jr nc, .okay
; scf
; ret
; .okay
; xor a
; ret
ld d, a ld d, a
and $f0 and $f0
cp $10 cp $10
@ -140,7 +151,7 @@ Function1875:: ; 1875
ret z ret z
scf scf
ret ret
; For some reason, the above code is duplicated down here.
.ok_20 .ok_20
ld a, d ld a, d
and 7 and 7

View File

@ -2123,23 +2123,24 @@ Function6ec1: ; 6ec1
ld hl, OBJECT_PALETTE ld hl, OBJECT_PALETTE
add hl, bc add hl, bc
bit 5, [hl] bit 5, [hl]
jr z, .asm_6ed9 jr z, .not_bit_5
ld hl, OBJECT_FLAGS1 ld hl, OBJECT_FLAGS1
add hl, bc add hl, bc
bit 4, [hl] bit 4, [hl] ; lost
push hl push hl
push bc push bc
call Function6f2c call Function6f2c
pop bc pop bc
pop hl pop hl
ret c ret c
jr .asm_6ee9 jr .resume
.asm_6ed9 .not_bit_5
ld hl, OBJECT_FLAGS1 ld hl, OBJECT_FLAGS1
add hl, bc add hl, bc
bit 4, [hl] bit 4, [hl]
jr nz, .asm_6ee9 jr nz, .resume
push hl push hl
push bc push bc
call Function6f07 call Function6f07
@ -2147,9 +2148,9 @@ Function6ec1: ; 6ec1
pop hl pop hl
ret c ret c
.asm_6ee9 .resume
bit 6, [hl] bit 6, [hl]
jr nz, .asm_6ef5 jr nz, .bit_6
push hl push hl
push bc push bc
@ -2158,18 +2159,20 @@ Function6ec1: ; 6ec1
pop hl pop hl
ret c ret c
.asm_6ef5 .bit_6
bit 5, [hl] bit 5, [hl]
jr nz, .asm_6f05 jr nz, .bit_5
push hl push hl
call Function70a4 call Function70a4
pop hl pop hl
ret c ret c
push hl push hl
call Function70ed call Function70ed
pop hl pop hl
ret c ret c
.asm_6f05
.bit_5
and a and a
ret ret
; 6f07 ; 6f07
@ -34881,6 +34884,7 @@ Function80422:: ; 80422
ld a, movement_step_sleep_1 ld a, movement_step_sleep_1
cp [hl] cp [hl]
ret z ret z
ld [hl], a ld [hl], a
ld a, 0 ld a, 0
ld [wd04e], a ld [wd04e], a

View File

@ -372,9 +372,9 @@ AzaleaGym_MapEventHeader:
.PersonEvents: .PersonEvents:
db 7 db 7
person_event SPRITE_BUGSY, 7, 5, SPRITEMOVEDATA_SPINRANDOM_SLOW, 0, 0, -1, -1, (1 << 3) | PAL_OW_GREEN, 0, 0, BugsyScript, -1 person_event SPRITE_BUGSY, 7, 5, SPRITEMOVEDATA_SPINRANDOM_SLOW, 0, 0, -1, -1, (1 << 3) | PAL_OW_GREEN, 0, 0, BugsyScript, -1
person_event SPRITE_BUG_CATCHER, 3, 5, SPRITEMOVEDATA_SPINRANDOM_FAST, 0, 0, -1, -1, (1 << 3) | PAL_OW_BROWN, 2, 2, TrainerBug_catcherbenny, -1 person_event SPRITE_BUG_CATCHER, 3, 5, SPRITEMOVEDATA_SPINRANDOM_FAST, 0, 0, -1, -1, (1 << 3) | PAL_OW_BROWN, PERSONTYPE_TRAINER, 2, TrainerBug_catcherbenny, -1
person_event SPRITE_BUG_CATCHER, 8, 8, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, (1 << 3) | PAL_OW_BROWN, 2, 3, TrainerBug_catcherAl, -1 person_event SPRITE_BUG_CATCHER, 8, 8, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, (1 << 3) | PAL_OW_BROWN, PERSONTYPE_TRAINER, 3, TrainerBug_catcherAl, -1
person_event SPRITE_BUG_CATCHER, 2, 0, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, (1 << 3) | PAL_OW_BROWN, 2, 3, TrainerBug_catcherJosh, -1 person_event SPRITE_BUG_CATCHER, PERSONTYPE_TRAINER, 0, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, (1 << 3) | PAL_OW_BROWN, PERSONTYPE_TRAINER, 3, TrainerBug_catcherJosh, -1
person_event SPRITE_TWIN, 10, 4, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, (1 << 3) | PAL_OW_RED, 2, 1, TrainerTwinsAmyandmay1, -1 person_event SPRITE_TWIN, 10, 4, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, (1 << 3) | PAL_OW_RED, PERSONTYPE_TRAINER, 1, TrainerTwinsAmyandmay1, -1
person_event SPRITE_TWIN, 10, 5, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, (1 << 3) | PAL_OW_RED, 2, 1, TrainerTwinsAmyandmay2, -1 person_event SPRITE_TWIN, 10, 5, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, (1 << 3) | PAL_OW_RED, PERSONTYPE_TRAINER, 1, TrainerTwinsAmyandmay2, -1
person_event SPRITE_GYM_GUY, 13, 7, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, (1 << 3) | PAL_OW_RED, 0, 0, AzaleaGymGuyScript, -1 person_event SPRITE_GYM_GUY, 13, 7, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, (1 << 3) | PAL_OW_RED, 0, 0, AzaleaGymGuyScript, -1

View File

@ -950,14 +950,14 @@ IlexForest_MapEventHeader:
.PersonEvents: .PersonEvents:
db 11 db 11
person_event SPRITE_BIRD, 31, 14, SPRITEMOVEDATA_SPINRANDOM_SLOW, 0, 0, -1, -1, (1 << 3) | PAL_OW_BROWN, 0, 0, BirdScript_0x6eb8f, EVENT_ILEX_FOREST_FARFETCHD person_event SPRITE_BIRD, 31, 14, SPRITEMOVEDATA_SPINRANDOM_SLOW, 0, 0, -1, -1, (1 << 3) | PAL_OW_BROWN, PERSONTYPE_SCRIPT, 0, BirdScript_0x6eb8f, EVENT_ILEX_FOREST_FARFETCHD
person_event SPRITE_YOUNGSTER, 28, 7, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, (1 << 3) | PAL_OW_GREEN, 0, 0, YoungsterScript_0x6eb7b, EVENT_ILEX_FOREST_APPRENTICE person_event SPRITE_YOUNGSTER, 28, 7, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, (1 << 3) | PAL_OW_GREEN, PERSONTYPE_SCRIPT, 0, YoungsterScript_0x6eb7b, EVENT_ILEX_FOREST_APPRENTICE
person_event SPRITE_BLACK_BELT, 28, 5, SPRITEMOVEDATA_STANDING_RIGHT, 0, 0, -1, -1, 0, 0, 0, BlackBeltScript_0x6edae, EVENT_ILEX_FOREST_CHARCOAL_MASTER person_event SPRITE_BLACK_BELT, 28, 5, SPRITEMOVEDATA_STANDING_RIGHT, 0, 0, -1, -1, 0, PERSONTYPE_SCRIPT, 0, BlackBeltScript_0x6edae, EVENT_ILEX_FOREST_CHARCOAL_MASTER
person_event SPRITE_ROCKER, 14, 15, SPRITEMOVEDATA_STANDING_RIGHT, 0, 0, -1, -1, 0, 0, 0, RockerScript_0x6edde, -1 person_event SPRITE_ROCKER, 14, 15, SPRITEMOVEDATA_STANDING_RIGHT, 0, 0, -1, -1, 0, PERSONTYPE_SCRIPT, 0, RockerScript_0x6edde, -1
person_event SPRITE_POKE_BALL, 32, 20, SPRITEMOVEDATA_ITEM_TREE, 0, 0, -1, -1, 0, 1, 0, ItemFragment_0x6ee10, EVENT_ILEX_FOREST_REVIVE person_event SPRITE_POKE_BALL, 32, 20, SPRITEMOVEDATA_ITEM_TREE, 0, 0, -1, -1, 0, PERSONTYPE_ITEMFRAGMENT, 0, ItemFragment_0x6ee10, EVENT_ILEX_FOREST_REVIVE
person_event SPRITE_KURT, 29, 8, SPRITEMOVEDATA_STANDING_UP, 0, 0, -1, -1, 0, 0, 0, ObjectEvent, EVENT_ILEX_FOREST_KURT person_event SPRITE_KURT, 29, 8, SPRITEMOVEDATA_STANDING_UP, 0, 0, -1, -1, 0, PERSONTYPE_SCRIPT, 0, ObjectEvent, EVENT_ILEX_FOREST_KURT
person_event SPRITE_LASS, 24, 3, SPRITEMOVEDATA_STANDING_RIGHT, 0, 0, -1, -1, (1 << 3) | PAL_OW_GREEN, 0, 0, LassScript_0x6ee0d, EVENT_ILEX_FOREST_LASS person_event SPRITE_LASS, 24, 3, SPRITEMOVEDATA_STANDING_RIGHT, 0, 0, -1, -1, (1 << 3) | PAL_OW_GREEN, PERSONTYPE_SCRIPT, 0, LassScript_0x6ee0d, EVENT_ILEX_FOREST_LASS
person_event SPRITE_YOUNGSTER, 1, 12, SPRITEMOVEDATA_STANDING_UP, 0, 0, -1, -1, (1 << 3) | PAL_OW_GREEN, 2, 0, TrainerBug_catcherWayne, -1 person_event SPRITE_YOUNGSTER, 1, 12, SPRITEMOVEDATA_STANDING_UP, 0, 0, -1, -1, (1 << 3) | PAL_OW_GREEN, PERSONTYPE_TRAINER, 0, TrainerBug_catcherWayne, -1
person_event SPRITE_POKE_BALL, 17, 9, SPRITEMOVEDATA_ITEM_TREE, 0, 0, -1, -1, 0, 1, 0, ItemFragment_0x6ee12, EVENT_ILEX_FOREST_X_ATTACK person_event SPRITE_POKE_BALL, 17, 9, SPRITEMOVEDATA_ITEM_TREE, 0, 0, -1, -1, 0, PERSONTYPE_ITEMFRAGMENT, 0, ItemFragment_0x6ee12, EVENT_ILEX_FOREST_X_ATTACK
person_event SPRITE_POKE_BALL, 7, 17, SPRITEMOVEDATA_ITEM_TREE, 0, 0, -1, -1, 0, 1, 0, ItemFragment_0x6ee14, EVENT_ILEX_FOREST_ANTIDOTE person_event SPRITE_POKE_BALL, 7, 17, SPRITEMOVEDATA_ITEM_TREE, 0, 0, -1, -1, 0, PERSONTYPE_ITEMFRAGMENT, 0, ItemFragment_0x6ee14, EVENT_ILEX_FOREST_ANTIDOTE
person_event SPRITE_POKE_BALL, 1, 27, SPRITEMOVEDATA_ITEM_TREE, 0, 0, -1, -1, 0, 1, 0, ItemFragment_0x6ee16, EVENT_ILEX_FOREST_ETHER person_event SPRITE_POKE_BALL, 1, 27, SPRITEMOVEDATA_ITEM_TREE, 0, 0, -1, -1, 0, PERSONTYPE_ITEMFRAGMENT, 0, ItemFragment_0x6ee16, EVENT_ILEX_FOREST_ETHER

View File

@ -1566,6 +1566,7 @@ EngineBuffer3::
wd041:: wd041::
EngineBuffer4:: EngineBuffer4::
wTempTrainerHeader::
wTempTrainerEventFlagLo:: wTempTrainerEventFlagLo::
ds 1 ds 1
@ -1600,6 +1601,7 @@ wScriptAfterPointer::
wd04b:: ds 2 wd04b:: ds 2
wd04d:: ds 1 wd04d:: ds 1
MenuItemsListEnd:: MenuItemsListEnd::
wTempTrainerHeaderEnd::
wd04e:: ds 2 wd04e:: ds 2
wOaksPkmnTalkPkmnNameBuffer:: wOaksPkmnTalkPkmnNameBuffer::
wd050:: ds PKMN_NAME_LENGTH +- 1 wd050:: ds PKMN_NAME_LENGTH +- 1
@ -2228,13 +2230,21 @@ object_struct: MACRO
\1NextMapY:: ds 1 \1NextMapY:: ds 1
\1MapX:: ds 1 \1MapX:: ds 1
\1MapY:: ds 1 \1MapY:: ds 1
ds 3 \1ObjectInitX:: ds 1
\1ObjectInitY:: ds 1
\1Radius:: ds 1
\1SpriteX:: ds 1 \1SpriteX:: ds 1
\1SpriteY:: ds 1 \1SpriteY:: ds 1
\1SpriteXOffset:: ds 1 \1SpriteXOffset:: ds 1
\1SpriteYOffset:: ds 1 \1SpriteYOffset:: ds 1
ds 6 \1MovementByteIndex:: ds 1
\1Object28:: ds 1
\1Object29:: ds 1
\1Object30:: ds 1
\1Object31:: ds 1
\1Range:: ds 1
ds 7 ds 7
\1StructEnd::
ENDM ENDM
object_struct Player object_struct Player
@ -2250,10 +2260,12 @@ ENDM
object_struct Object10 object_struct Object10
object_struct Object11 object_struct Object11
object_struct Object12 object_struct Object12
ObjectStructsEnd::
wd6de:: wd6de::
ds $40 ds $40
MapObjects:: ; d71e
map_object: MACRO map_object: MACRO
\1Object:: \1Object::
\1ObjectStructID:: ds 1 \1ObjectStructID:: ds 1
@ -2271,7 +2283,6 @@ map_object: MACRO
ds 2 ds 2
endm endm
MapObjects:: ; d71e
map_object Player map_object Player
map_object Map1 map_object Map1
map_object Map2 map_object Map2
@ -2288,6 +2299,7 @@ MapObjects:: ; d71e
map_object Map13 map_object Map13
map_object Map14 map_object Map14
map_object Map15 map_object Map15
MapObjectsEnd::
wObjectMasks:: ds NUM_OBJECTS ; d81e wObjectMasks:: ds NUM_OBJECTS ; d81e
@ -2319,6 +2331,7 @@ StatusFlags:: ; d84c
; 6 - hall of fame ; 6 - hall of fame
; 7 - bug contest on ; 7 - bug contest on
ds 1 ds 1
StatusFlags2:: ; d84d StatusFlags2:: ; d84d
; 0 - rockets ; 0 - rockets
; 1 - ; 1 -