How is equipment handled?

I was coming up with a neat idea that some weapons don't use your str but have their own (for example, guns). So I decided to dig into the scripts to figure out how equipped gear affects base stats. But I can't find it (i read through every base script that i thought would reference atk or damage). Does anyone know how the system gets equipment stats and adds them to an actor? I know base_atk exists (same with every stat), but i don't know what weapon attack would be.

Thank you ahead of time.
Check param_plus in Game_Actor

Original thread: https://forums.rpgmakerweb.com/threads/how-is-equipment-handled.44161/