HeathInn_MapScriptHeader;trigger count
	db 0
 ;callback count
	db 1

	dbw 5, HeathInnSetSpawnPoint

HeathInnSetSpawnPoint:
	blackoutmod HEATH_VILLAGE
	return

HeathInnSignpost1:
	jumpstd magazinebookshelf

HeathInnSignpost2:
	jumpstd magazinebookshelf

HeathInnNPC:
	jumptextfaceplayer .text

.text
	db TX_COMPRESSED, $29, $23, $44, $06, $1f, $7b, $bc, $9c, $1a
	db $1e, $10, $d2, $cf, $a0, $a6, $1a, $f8, $fa, $08, $0a, $da, $27

	db $80, $3a, $b8, $12, $74, $14, $64, $24, $40, $d1, $68
	db $78, $38, $4c, $35, $f1, $f4, $14, $7c, $df, $56, $6b
	db $40, $0d, $26, $62, $75, $11, $17, $a0, $8f
	db $2f, $5a, $76, $e5, $5a, $0a, $60, $15
	db $aa, $64, $c9, $6d, $2c, $66, $88, $40, $d5

	db $e0, $02, $a0, $a3, $21, $69, $03, $24, $72, $0c, $94, $e0
	db $de, $0e, $16, $64, $97, $aa, $46, $88, $16
	db $96, $01, $94, $8f, $b9, $59, $92, $0c, $96, $18, $91
	db $a1, $ec, $02, $b3, $45, $cb, $0c, $56, $6c, $85, $f3
	db $54, $0e, $57, $c2, $48, $52, $f4, $64, $35, $a3

	db $c0, $05, $41, $4e, $57, $a4, $cb, $e1, $b4, $9a
	db $de, $7f, $49, $bc, $9a, $25, $a4, $e2, $c2, $17
	db $d0, $a8, $64, $96, $91, $a2, $03, $1a, $c1, $41, $90, $9f

	db $01, $a4, $cc, $7c, $14, $56, $b0, $da, $4d
	db $6f, $2d, $a2, $22, $5a, $4e, $21, $21, $11
	db $ea, $68

HeathInnAttendant:
	opentext
	special PlaceMoneyTopRight
	writetext .opening_text
	yesorno
	sif false
		jumptext .declined_text
	checkmoney 0, 100
	sif =, 2
		jumptext .not_enough_money_text
	writetext .accepted_text
	special ClearBGPalettes
	playwaitsfx SFX_SNORE
	pause 20
	playwaitsfx SFX_SNORE
	pause 20
	playwaitsfx SFX_SNORE
	pause 20
	playwaitsfx SFX_SNORE
	pause 20
	special HealParty
	reloadmap
	takemoney 0, 100
	jumptext .after_healing_text

.opening_text
	db TX_COMPRESSED, $76, $99, $93, $d5, $fe, $02, $0b, $53, $49
	db $97, $81, $05, $a5, $c0, $72, $be, $12, $4e, $84, $2a
	db $4a, $ac, $6b, $3c

	db $f8, $03, $a7, $0f, $67, $4e, $e0, $20, $b5, $16, $64
	db $b7, $b6, $2c, $21, $7e, $60, $15, $c1, $35, $ae, $0b, $42, $c0, $b1
	db $ea, $68

.declined_text
	db TX_COMPRESSED, $76, $9f, $c7, $62, $62, $5a, $4c, $9f, $80, $82, $d1, $71
	db $bd, $bd, $ab, $41, $22, $54, $7d, $64, $2f
	db $98, $0b, $0c, $45, $e8, $28, $3c, $20, $20, $b5
	db $8c, $f7, $46, $a4, $7e
	db $a6, $80

.accepted_text
	db TX_COMPRESSED, $29, $3a, $45, $28, $08, $2d, $7e, $27, $41
	db $8d, $ed, $9c, $84, $39, $8b, $34, $5f
	db $10, $73

.after_healing_text
	db TX_COMPRESSED, $6e, $7d, $64, $2f, $9c, $57, $ac, $a9, $7e, $3a
	db $79, $21, $10, $70, $10, $5a, $86, $4a, $70, $20, $8f
	db $2a, $81, $05, $a5, $c4, $5e, $82
	db $f5, $34

.not_enough_money_text
	db TX_COMPRESSED, $74, $59, $37, $05, $e8, $f3, $01, $05, $a5
	db $bd, $56, $f7, $a7, $70, $68, $84, $3d, $5f, $41
	db $2a, $37, $c4, $58, $2f
	db $53, $40

HeathInnMartAttendant:
	opentext
	pokemart 0, 6
	closetext
	end

HeathInn_MapEventHeader ;filler
	db 0, 0

;warps
	db 2
	warp_def $9, $9, 5, HEATH_VILLAGE
	warp_def $9, $a, 5, HEATH_VILLAGE

	;xy triggers
	db 0

	;signposts
	db 2
	signpost 1, 14, SIGNPOST_READ, HeathInnSignpost1
	signpost 1, 3, SIGNPOST_READ, HeathInnSignpost2

	;people-events
	db 3
	person_event SPRITE_BLACK_BELT, 6, 11, SPRITEMOVEDATA_WANDER, 1, 1, -1, -1, PAL_OW_RED, 0, 0, HeathInnNPC, -1
	person_event SPRITE_GRANNY, 4, 17, SPRITEMOVEDATA_STANDING_LEFT, 0, 0, -1, -1, PAL_OW_BLUE, 0, 0, HeathInnAttendant, -1
	person_event SPRITE_YOUNGSTER, 4, 1, SPRITEMOVEDATA_STANDING_RIGHT, 0, 0, -1, -1, PAL_OW_PLAYER, 0, 0, HeathInnMartAttendant, -1

