local wispy = -26
local wispstring = 0

rawset(_G, "Wisp_TitleScreen", function(v)
	wispy = min($1+2, 5)
	if wispy >= 5 then
		wispstring = $1+1
	end
	v.draw(
		16, wispy, 
		v.cachePatch("BURSTPLC")
	)
	local str = "Wisps V0.9 active"
	str = $1:sub(1,wispstring)
	local str2 = "SRB2PlusC Detected"
	str2 = $1:sub(1,wispstring-((3*TICRATE)/2))
	if wispstring >= 1 then
		v.drawString(34, 10, str)
	end
	if wispstring-((3*TICRATE)/2) >= 1 then
		v.drawString(34, 18, str2)
	end
end)
if VERSIONSTRING:find("PlusC") then
	hud.add(Wisp_TitleScreen, "title")
end
