-- Ability Stuff --

if srb2p return end

addHook("ThinkFrame", function()
	for player in players.iterate do
		if player.mo.skin ~= "flchan" then
			continue
		end
		
		if (player.powers[pw_underwater]) then // If you're underwater (or considered to be underwater)
			player.charability = CA_SWIM -- Her ability will be changed to CA_SWIM (and no, it's not just because I wanted to draw her in a swimsuit)
			player.charflags = $ & ~SF_MULTIABILITY -- Even if you have the emeralds, this will take away the multiability flag
		else // Other times...
			player.charability = CA_SLOWFALL -- Her ability is normally CA_SLOWFALL
			if (All7Emeralds(emeralds) or All7Emeralds(pw_emeralds)) then
				player.charflags = $|SF_MULTIABILITY -- Adds the multiability flag
			else // If you didn't get those emeralds or (no longer have the emeralds)...
				player.charflags = $ & ~SF_MULTIABILITY -- Character flags stay the same
			end
		end
	end
end)