CountFoundGoldTokens::
	; returns the amount of gold tokens found in de, irrespective of the amount currently in hand
	ld hl, FourGoldTokenEvents
	call CountEventFlagsFromList
	push de
	ld hl, GoldTokenEvents
	call CountEventFlagsFromList
	pop hl
	add hl, hl
	add hl, hl
	add hl, de
	ld d, h
	ld e, l
	ret

GoldTokenEvents:
	dw EVENT_CAPER_MART_HIDDENITEM_GOLD_TOKEN
	dw EVENT_HAPPINESS_RATER_HIDDENITEM_GOLD_TOKEN
	dw EVENT_HEATH_GYM_HIDDENITEM_GOLD_TOKEN
	dw EVENT_LAUREL_CITY_HIDDENITEM_GOLD_TOKEN
	dw EVENT_TORENIA_MART_HIDDENITEM_GOLD_TOKEN
	dw EVENT_ROUTE_68_HIDDENITEM_GOLD_TOKEN
	dw EVENT_ROUTE_69_GATE_HIDDENITEM_GOLD_TOKEN
	dw EVENT_ROUTE_70_HIDDENITEM_GOLD_TOKEN
	dw EVENT_ROUTE_71_HIDDENITEM_GOLD_TOKEN
	dw EVENT_ROUTE_72_HIDDENITEM_GOLD_TOKEN
	dw EVENT_ROUTE_73_HIDDENITEM_GOLD_TOKEN
	dw EVENT_ROUTE_74_HIDDENITEM_GOLD_TOKEN
	dw EVENT_ROUTE_75_HIDDENITEM_GOLD_TOKEN
	dw EVENT_ROUTE_76_HIDDENITEM_GOLD_TOKEN
	dw EVENT_ROUTE_77_HIDDENITEM_GOLD_TOKEN
	dw EVENT_ROUTE_79_HIDDENITEM_GOLD_TOKEN
	dw EVENT_ROUTE_82_HIDDENITEM_GOLD_TOKEN
	dw EVENT_ROUTE_83_HIDDENITEM_GOLD_TOKEN
	dw EVENT_ROUTE_84_HIDDENITEM_GOLD_TOKEN
	dw EVENT_ACQUA_TUTORIAL_HIDDENITEM_GOLD_TOKEN
	dw EVENT_LAUREL_FOREST_GATES_HIDDENITEM_GOLD_TOKEN
	dw EVENT_CLATHRITE_B2F_HIDDENITEM_GOLD_TOKEN
	dw EVENT_SEASHORE_GYM_HIDDENITEM_GOLD_TOKEN
	dw EVENT_GRAVEL_TOWN_HIDDENITEM_GOLD_TOKEN
	dw EVENT_MERSON_CITY_HIDDENITEM_GOLD_TOKEN
	dw EVENT_HAYWARD_CITY_HIDDENITEM_GOLD_TOKEN
	dw EVENT_OWSAURI_GAME_CORNER_HIDDENITEM_GOLD_TOKEN
	dw EVENT_MORAGA_TOWN_HIDDENITEM_GOLD_TOKEN
	dw EVENT_JAERU_CITY_HIDDENITEM_GOLD_TOKEN
	dw EVENT_BOTAN_CITY_HIDDENITEM_GOLD_TOKEN
	dw EVENT_CASTRO_VALLEY_HIDDENITEM_GOLD_TOKEN
	dw EVENT_CASTRO_MANSION_HIDDENITEM_GOLD_TOKEN
	dw EVENT_EAGULOU_CITY_HIDDENITEM_GOLD_TOKEN
	dw EVENT_RIJON_LEAGUE_OUTSIDE_HIDDENITEM_GOLD_TOKEN
	dw EVENT_ROUTE_47_HIDDENITEM_GOLD_TOKEN
	dw EVENT_ROUTE_48_HIDDENITEM_GOLD_TOKEN
	dw EVENT_ROUTE_49_HIDDENITEM_GOLD_TOKEN
	dw EVENT_ROUTE_50_HIDDENITEM_GOLD_TOKEN
	dw EVENT_ROUTE_51_HIDDENITEM_GOLD_TOKEN
	dw EVENT_ROUTE_52_HIDDENITEM_GOLD_TOKEN
	dw EVENT_ROUTE_53_HIDDENITEM_GOLD_TOKEN
	dw EVENT_ROUTE_54_HIDDENITEM_GOLD_TOKEN
	dw EVENT_ROUTE_55_HIDDENITEM_GOLD_TOKEN
	dw EVENT_ROUTE_56_HIDDENITEM_GOLD_TOKEN
	dw EVENT_ROUTE_57_HIDDENITEM_GOLD_TOKEN
	dw EVENT_ROUTE_58_HIDDENITEM_GOLD_TOKEN
	dw EVENT_ROUTE_59_HIDDENITEM_GOLD_TOKEN
	dw EVENT_ROUTE_60_HIDDENITEM_GOLD_TOKEN
	dw EVENT_POWER_PLANT_HIDDENITEM_GOLD_TOKEN
	dw EVENT_ROUTE_61_GATE_NORTH_HIDDENITEM_GOLD_TOKEN
	dw EVENT_ROUTE_62_HIDDENITEM_GOLD_TOKEN
	dw EVENT_ROUTE_63_HIDDENITEM_GOLD_TOKEN
	dw EVENT_ROUTE_64_HIDDENITEM_GOLD_TOKEN
	dw EVENT_ROUTE_65_HIDDENITEM_GOLD_TOKEN
	dw EVENT_ROUTE_66_HIDDENITEM_GOLD_TOKEN
	dw EVENT_ROUTE_67_HIDDENITEM_GOLD_TOKEN
	dw EVENT_MERSON_CAVE_B2F_HIDDENITEM_GOLD_TOKEN
	dw EVENT_MT_BOULDER_B1F_HIDDENITEM_GOLD_TOKEN
	dw EVENT_SILK_TUNNEL_B5F_HIDDENITEM_GOLD_TOKEN
	dw EVENT_CASTRO_FOREST_HIDDENITEM_GOLD_TOKEN
	dw EVENT_ILEX_FOREST_HIDDENITEM_GOLD_TOKEN
	dw EVENT_ROUTE_34_GATE_HIDDENITEM_GOLD_TOKEN
	dw EVENT_GOLDENROD_CITY_HIDDENITEM_GOLD_TOKEN
	dw EVENT_GOLDENROD_CAPE_HIDDENITEM_GOLD_TOKEN
	dw EVENT_TUNOD_WATERWAY_HIDDENITEM_GOLD_TOKEN
GoldTokenEventsEnd:
BingoGoldTokenEvents:
	dw EVENT_FIRST_BINGO_CARD_GOLD_TOKEN
	dw EVENT_SECOND_BINGO_CARD_GOLD_TOKEN
	dw EVENT_THIRD_BINGO_CARD_GOLD_TOKEN
BingoGoldTokenEventsEnd:
	dw -1

FourGoldTokenEvents:
	dw EVENT_GOLDTOKENMAN_MILESTONE_1
	dw EVENT_GOLDTOKENMAN_MILESTONE_2
	dw EVENT_GOLDTOKENMAN_MILESTONE_3
	dw EVENT_GOLDTOKENMAN_MILESTONE_4
	dw EVENT_GOLDTOKENMAN_MILESTONE_5
	dw EVENT_GOLDTOKENMAN_MILESTONE_6
	dw EVENT_GOLDTOKENMAN_MILESTONE_7
	dw EVENT_GOLDTOKENMAN_MILESTONE_8
FourGoldTokenEventsEnd:
	dw -1