Route55_MapScriptHeader;trigger count
	db 0
 ;callback count
	db 1

	dbw 5, .unlock_rijon_second_half

.unlock_rijon_second_half
	setevent EVENT_RIJON_SECOND_PART
	return

Route55HiddenItem:
	dw EVENT_ROUTE_55_HIDDENITEM_GOLD_TOKEN
	db GOLD_TOKEN

Route55StudiosSign:
	checkcode VAR_FACING
	loadarray .SignpostPointersArray
	readarrayhalfword 0
	loadsignpost -1

.SignpostPointersArray
	dw .FacingDown
.SignpostPointersArrayEntrySizeEnd:
	dw .FacingUp
	dw .FacingLeft
	dw .FacingRight

.FacingUp
	db TX_COMPRESSED, $a0, $b3, $7c, $20, $c7, $9a
	db $22, $6b, $03, $8a, $2d, $ac, $8c, $28
	db $f0, $9a, $c0, $c4, $d6
	db $76, $26, $b0, $31, $35, $9d, $b9, $80
	start_asm
	ld hl, .facingUpEntryPoint
	ret

.FacingDown
	db TX_COMPRESSED, $a0, $b3, $7c, $20, $c7, $9a
	db $22, $6b, $03, $8a, $2d, $ac, $8c, $28, $f3, $98, $00
.facingUpEntryPoint
	db TX_COMPRESSED
	db $13, $58, $1c, $92, $09, $ac
	db $ec, $4d, $60, $72, $48, $26, $b3
	db $b1, $35, $81, $c9, $20, $9a, $ce
	db $c4, $d6, $07, $24, $82, $6b, $3c, $73, $00
.facingLeftEntryPoint
	db TX_COMPRESSED, $13, $59, $e0, $9a, $cf, $04, $d6, $78, $26, $b3, $c1, $35, $9e, $09, $ac, $f2, $39, $42
	db $d5, $34

.FacingLeft
	db TX_COMPRESSED, $a0, $b3, $7c, $20, $c7, $9a
	db $22, $6b, $03, $8a, $2d, $ac, $8c, $28
	db $f0, $9a, $c0, $e4, $90, $4d, $67
	db $62, $6b, $03, $92, $41, $35, $9d
	db $89, $ac, $0e, $49, $04, $d6
	db $76, $26, $b0, $39, $24, $13, $59, $e0, $9a, $cf, $04, $d6, $78, $26, $b3, $c1, $35, $9e, $09, $ac, $f0, $4d, $67, $82, $6b, $3c
	db $13, $58, $1c, $92, $49, $24, $90, $4d, $67
	db $62, $6b, $03, $92, $49, $24, $91, $ca, $16
	db $a9, $a0

.FacingRight
	db TX_COMPRESSED, $a0, $b3, $7c, $20, $c7, $9a
	db $22, $6b, $03, $8a, $2d, $ac, $8c, $28
	db $f0, $9a, $c0, $e4, $90, $4d, $67
	db $62, $6b, $03, $92, $41, $35, $9d
	db $89, $ac, $0e, $49, $04, $d6
	db $76, $26, $b0, $39, $24, $13, $59, $db, $98, $00
	start_asm
	ld hl, .facingLeftEntryPoint
	ret

Route55_Trainer_1:
	trainer EVENT_ROUTE_55_TRAINER_1, HIKER, 5, .before_battle_text, Route55_Trainers_1_2_BattleWon_Text, $0000, .Script

.Script
	end_if_just_battled
	jumptext .after_battle_text

.before_battle_text
	db TX_COMPRESSED, $2b, $54, $86, $4e, $65, $a4, $e7, $42, $4e
	db $5e, $ab, $41, $41, $a2, $6f, $6a, $d0, $48
	db $54, $b3, $c1, $66, $84, $8c, $9c, $f1
	db $a6, $80

.after_battle_text
	db TX_COMPRESSED, $6e, $90, $53, $0e, $82, $95, $0e, $d3, $01, $05, $a5
	db $bc, $0e, $57, $c2, $49, $52, $4c, $90, $10, $5a
	db $00, $ce, $92, $55, $bd, $52, $95, $0e
	db $d2, $f5, $a4, $df, $a5
	db $a6, $80

Route55_Trainer_2:
	trainer EVENT_ROUTE_55_TRAINER_2, HIKER, 6, .before_battle_text, Route55_Trainers_1_2_BattleWon_Text, $0000, .Script

.Script:
	end_if_just_battled
	jumptext .after_battle_text

.before_battle_text
	db TX_COMPRESSED, $6e, $90, $53, $23, $c9, $29, $93, $48, $08, $24
	db $37, $95, $86, $d2, $6b, $96, $18, $cf, $4f
	db $56, $aa, $d2, $34, $41, $1b, $69, $a5
	db $a6, $80

.after_battle_text
	db TX_COMPRESSED, $61, $34, $68, $44, $b4, $85, $07, $19, $5e, $89, $b0
	db $4f, $72, $d0, $24, $46, $84, $42, $05, $76
	db $90, $15, $69, $2e, $5a, $4c, $6b
	db $79, $16, $d6, $46, $14, $4b, $0c, $56, $70, $64
	db $54, $83, $67, $ad, $20, $61, $27
	db $a9, $a0

Route55_Trainer_3:
	trainer EVENT_ROUTE_55_TRAINER_3, GENTLEMAN, 1, .before_battle_text, .battle_won_text, $0000, .Script

.Script:
	end_if_just_battled
	jumptext .after_battle_text

.before_battle_text
	db TX_COMPRESSED, $17, $12, $cd, $72, $d2, $34
	db $3c, $ad, $a1, $f7, $23, $27, $33, $6e, $02, $0b, $4b
	db $54, $1a, $89, $16, $34, $29, $71
	db $a6, $80

.battle_won_text
	db TX_COMPRESSED, $e0, $09, $29, $93, $a3, $45, $99, $25
	db $85, $ec, $37, $a8, $38, $21, $61, $10, $93, $b4
	db $7a, $9a

.after_battle_text
	db TX_COMPRESSED, $29, $21, $41, $ce, $5a, $04
	db $87, $95, $9f, $46, $60, $c7, $2d, $3b, $70, $2d
	db $2c, $05, $41, $5f, $73, $06, $88, $40, $da, $46, $4e
	db $5e, $7c, $2b, $39, $69, $d2, $4d, $9c, $eb
	db $e6, $03, $49, $99, $69, $db, $96, $93
	db $04, $f3, $2b, $3d, $b3, $cc, $1d

	db $f8, $03, $a8, $ce, $92, $99, $11, $7a, $4c
	db $bc, $7c, $85, $fd, $20, $f5, $94, $53
	db $c1, $4d

Route55_Trainers_1_2_BattleWon_Text:
	db TX_COMPRESSED, $61, $04, $39, $87, $4e, $9a, $d9, $1a, $0f
	db $8d, $34

Route55_MapEventHeader:: db 0, 0

.Warps: db 3
	warp_def 7, 0, 1, SILK_TUNNEL_1F
	warp_def 5, 13, 2, ROUTE_55_GATE_UNDERGROUND
	warp_def 49, 12, 1, MT_BOULDER_B1F

.CoordEvents: db 0

.BGEvents: db 2
	signpost 25, 13, SIGNPOST_READ, Route55StudiosSign
	signpost 30, 2, SIGNPOST_ITEM, Route55HiddenItem

.ObjectEvents: db 3
	person_event SPRITE_FISHER, 53, 3, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, PAL_OW_RED, PERSONTYPE_TRAINER, 2, Route55_Trainer_1, -1
	person_event SPRITE_FISHER, 49, 9, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, PAL_OW_RED, PERSONTYPE_TRAINER, 2, Route55_Trainer_2, -1
	person_event SPRITE_GENTLEMAN, 27, 8, SPRITEMOVEDATA_STANDING_RIGHT, 0, 0, -1, -1, PAL_OW_RED, PERSONTYPE_TRAINER, 3, Route55_Trainer_3, -1

