TrainerNotes_:
	call TN_PrintToD
	call TN_PrintLocation
	call TN_PrintLV
	call TN_PrintCharacteristics
	jp TN_PrintAbility

TN_PrintToD
	ld de, .caughtat
	hlcoord 1, 8
	call PlaceString
	ld a, [TempMonCaughtTime]
	and $c0
	ld de, .unknown
	jr z, .print
	rlca
	rlca
	cp 2
	ld de, .morn
	jr c, .print
	ld de, .day
	jr z, .print
	ld de, .nite
.print
	hlcoord 5, 8
	jp PlaceText

.caughtat
	db "Met@"

.morn
	db TX_COMPRESSED, $19, $25, $a4, $e3, $e1, $59, $06, $4e
	db $69, $a0

.day
	db TX_COMPRESSED, $cb, $4b, $19, $39, $96, $93, $99, $d0
	db $54, $d0

.nite
	db TX_COMPRESSED, $db, $84, $1f, $29
	db $ba, $68

.unknown
	db TX_COMPRESSED, $db, $8d, $11, $4a, $a2, $4b, $1b
	db $e7, $4d

TN_PrintLocation:
	ld de, .unknown
	ld a, [TempMonCaughtLocation]
	and $7f
	jr z, .print
	cp $7e
	jr z, .print
	ld de, .event
	cp $7f
	jr z, .print
	ld e, a
	callba GetLandmarkName
	ld de, .regular
.print
	hlcoord 1, 10
	jp PlaceText

.unknown
	db TX_COMPRESSED, $73, $91, $48, $81, $a8, $93, $1c, $2c, $ed, $8c, $24
	db $a6, $80

.event
	db TX_COMPRESSED, $17, $03, $19, $2e, $03, $95, $f0
	db $92, $9a

.regular
	text "<STRBF1>"
	done

TN_PrintLV:
	ld a, [TempMonCaughtLevel]
	and $3f
	hlcoord 1, 12
	jr z, .unknown
	cp 1
	jr z, .hatched
	cp 63
	jr z, .max
	ld [wTrainerNotes_EncounterLevel], a
	ld de, .metat
	call PlaceText
	ld de, wTrainerNotes_EncounterLevel
	lb bc,   1,  3
	hlcoord  8, 12
	jp PrintNum
.hatched
	ld de, .egg
	jp PlaceText
.unknown
	ld de, .str_unknown
	jp PlaceText
.max
	ld de, .str_max
	jp PlaceText

.metat
	text "Met at ", $6e
	done

.egg
	db TX_COMPRESSED, $63, $b6, $ca, $4f, $33, $05, $85, $f8, $2e, $e7
	db $9a, $68

.str_unknown
	db TX_COMPRESSED, $61, $0c, $18, $c9, $06, $49, $b2, $d7, $b9
	db $3a, $68

.str_max
	text "Met at ", $6e, "63+"
	done

TN_PrintCharacteristics:
	ld hl, TempMonDVs
	ld d, 0 ; hp
	ld a, [hl]
	and $f
	ld c, a ; def
	ld a, [hli]
	swap a
	and $f ; atk
	cp c
	ld e, 2
	ld b, c
	jr c, .atk
	ld e, 1
	ld b, a
.atk
	srl a
	rl d
	srl c
	rl d
	ld a, [hl]
	and $f
	ld c, a ; spe
	ld a, [hl]
	swap a
	and $f ; spx
	cp c
	ld l, 5
	ld h, c
	jr c, .spx
	ld l, 3
	ld h, a
.spx
	srl a
	rl d
	srl c
	rl d
	ld a, b
	cp h
	jr nc, .skip
	ld e, l
	ld b, h
.skip
	ld a, b
	cp d
	jr nc, .skiphp
	ld e, 0
	ld b, d
.skiphp
	ld a, 3
	cp e
	jr nz, .skipspx
	; since DVs don't have SpA/SpD split so we have to determine it by OT ID
	ld a, [TempMonID + 1]
	bit 0, a
	jr z, .skipspx
	inc e
.skipspx
	ld a, b
	ld c, 5
	call SimpleDivide
	ld b, a
	ld a, e
	call SimpleMultiply
	add b
	ld l, a
	ld h, 0
	ld bc, Characteristics
	add hl, hl
	add hl, bc
	ld a, [hli]
	ld d, [hl]
	ld e, a
	hlcoord 1, 14
	jp PlaceText

TN_PrintAbility:
	ld hl, TempMon
	call CalcPartyMonAbility
	ld [wd265], a
	call GetAbilityName
	hlcoord 1, 16
	jp PlaceString

Characteristics:
	dw Chara_HP0, Chara_HP1, Chara_HP2, Chara_HP3, Chara_HP4
	dw Chara_ATK0, Chara_ATK1, Chara_ATK2, Chara_ATK3, Chara_ATK4
	dw Chara_DEF0, Chara_DEF1, Chara_DEF2, Chara_DEF3, Chara_DEF4
	dw Chara_SPA0, Chara_SPA1, Chara_SPA2, Chara_SPA3, Chara_SPA4
	dw Chara_SPD0, Chara_SPD1, Chara_SPD2, Chara_SPD3, Chara_SPD4
	dw Chara_SPE0, Chara_SPE1, Chara_SPE2, Chara_SPE3, Chara_SPE4

Chara_HP0:
	db TX_COMPRESSED, $c7, $08, $31, $a2, $58, $61, $ed
	db $d3, $40
Chara_HP1:
	db TX_COMPRESSED, $2b, $54, $8d, $10, $47, $4c, $96, $0a, $07
	db $01, $35, $81, $a0, $66, $8b, $d4
	db $53, $40
Chara_HP2:
	db TX_COMPRESSED, $07, $87, $28, $81, $c3, $09, $b3, $a1
	db $ba, $68
Chara_HP3:
	db TX_COMPRESSED, $50, $ce, $dd, $9a, $d1, $2d, $23, $27, $28
	db $13, $58, $18, $70, $b3
	db $25, $34
Chara_HP4:
	db TX_COMPRESSED, $c7, $1a, $91, $a2, $58, $62, $cf, $bb, $4e
	db $d3, $40

Chara_ATK0:
	db TX_COMPRESSED, $e1, $58, $5a, $cc, $0e, $10, $76
	db $81, $35, $81, $88, $0d, $46
	db $ba, $68
Chara_ATK1:
	db TX_COMPRESSED, $c7, $1a, $91, $a2, $58, $65, $a5, $7a, $84
	db $89, $ac, $0f, $55, $85, $ab
	db $a6, $80
Chara_ATK2:
	db TX_COMPRESSED, $ae, $74, $77, $7d, $38, $2c, $da, $1b, $2a
	db $42, $6b, $03, $b3, $7c, $41, $ac
	db $f3, $4d
Chara_ATK3:
	db TX_COMPRESSED, $c7, $1a, $91, $a2, $58, $66, $03, $e5
	db $37, $4d
Chara_ATK4:
	db TX_COMPRESSED, $13, $53, $43, $65, $4a, $59, $be, $20, $d6, $79
	db $a6, $80

Chara_DEF0: 
	db TX_COMPRESSED, $51, $6d, $2f, $20, $a2, $b0, $e4
	db $15, $34
Chara_DEF1:
	db TX_COMPRESSED, $6d, $d1, $1a, $af, $a7, $03, $84, $bd, $52, $19, $39
	db $13, $58, $1a, $47, $68
	db $a6, $80
Chara_DEF2:
	db TX_COMPRESSED, $62, $3e, $53, $d0, $50, $41, $ad, $03, $45, $99
	db $2e, $9a
Chara_DEF3:
	db TX_COMPRESSED, $61, $04, $39, $86, $4c, $b4, $bd, $23
	db $27, $4d
Chara_DEF4:
	db TX_COMPRESSED, $61, $04, $39, $82, $0d, $68, $30, $63, $5e, $91, $93
	db $a6, $80

Chara_SPA0:
	db TX_COMPRESSED, $62, $3e, $53, $d0, $51, $96, $96, $30, $b4
	db $8a, $68
Chara_SPA1:
	db TX_COMPRESSED, $15, $1a, $19, $48, $cc, $18, $2d
	db $22, $9a
Chara_SPA2:
	db TX_COMPRESSED, $29, $21, $58, $5a, $e5, $3d
	db $04, $26, $b0, $36, $5a, $21, $06, $4e
	db $69, $a0
Chara_SPA3:
	db TX_COMPRESSED, $77, $85, $99, $27, $42, $8b, $83
	db $20, $9a, $c0, $ed, $21, $6b, $94
	db $dd, $34
Chara_SPA4:
	db TX_COMPRESSED, $07, $06, $b0, $53, $01, $90, $6c, $a9, $02
	db $a6, $80

Chara_SPD0:
	db TX_COMPRESSED, $51, $6b, $09, $39, $95, $0f, $bd, $3c
	db $d3, $40
Chara_SPD1:
	db TX_COMPRESSED, $50, $17, $ce, $a4, $ed, $c0, $6d, $19
	db $29, $a0
Chara_SPD2:
	db TX_COMPRESSED, $51, $6b, $09, $39, $e8, $29, $93, $c0, $7a, $4b
	db $a6, $80
Chara_SPD3:
	db TX_COMPRESSED, $63, $b6, $68, $96, $19, $d0, $a0
	db $e9, $a0
Chara_SPD4:
	db TX_COMPRESSED, $50, $17, $ce, $a4, $ed, $c4, $5b, $4a, $d5, $85, $64
	db $a6, $80

Chara_SPE0:
	db TX_COMPRESSED, $c7, $1a, $91, $a2, $58, $62, $da
	db $25, $34
Chara_SPE1:
	db TX_COMPRESSED, $af, $a6, $bb, $96, $18, $80, $b4, $4c
	db $a2, $9a
Chara_SPE2:
	db TX_COMPRESSED, $74, $f8, $83, $b6, $82, $d2, $26, $93
	db $22, $6b, $03, $40, $fb, $d0
	db $54, $d0
Chara_SPE3:
	db TX_COMPRESSED, $50, $17, $ce, $a4, $ed, $c0, $e1
	db $34, $4d, $60, $6c, $f4, $35
	db $12, $9a
Chara_SPE4: 
	db TX_COMPRESSED, $13, $53, $43, $65, $4a, $58, $66, $1d, $33
	db $a6, $80

