This mod adds a basic RPG system to the game (XP, level-up and skills)
What does the magic upgrade do?
https://mods.factorio.com/mod/RPGsystem/discussion/630a220ac5eca59a134aeb81
took me 2 seconds to find -_-