What does intelligence do?

Hi, I just got a t6 ring with a decent amount of intelligence for my level. but is it worth getting rid of a little bit of vitality? 33 int vs 13 vitality and way more resistance in the ring, but more importantly, what does intelligence itself do? Thanks ahead of time.
Intelligence increases resistance so decided what you need more. Theres a detailed character stat guide here: https://game.nanoo.so/darksword/forum/455568?code=5b709c13b17d29f4369768de22e5ed68