-- Upgrade Notification --

if srb2p return end -- This will end all of the code if you're in Persona

addHook("ThinkFrame", function()
	for player in players.iterate do
		if player.mo.skin ~= "tails" then // If you're Tails...
			continue
		end
		
		if (All7Emeralds(emeralds)) and not player.drbnotified then // If you've collected all emeralds and you're not notified yet...
			player.drbnotified = true -- This is so that the function isn't active throughout every frame 
			S_StartSound(player.mo, sfx_s3k68)
			COM_BufInsertText(player, "echo Congrats on getting those emeralds!")
			print("\x87\Tails Emerald Upgrades:", "\x88\Dummy Ring Bomb: \x80\You can now throw D.R.Bs at a faster rate when not flying.")
		end
	end
end)