You'd think some curious individuals would have started tinkering with combining magic with guns in some form, perhaps using special crystals in the breech to bind various spirit effects to bullets as they are fired. Your PC could retrieve these crystals then use their appropriate skills to insert the piece into a custom, higher-quality weapon.