I have been attempting to find where in code does the engine calculate how much attack or defense a character has at any given time.
I know it adds up all of these stats from weapons and armor at some point but I cant seem to figure out where these functions are.
I want to make it so that your base attack is governed by Luk and your base defense is governed by mdf.
Can anyone point me to the locations where this calculated so I can do the above?
*Side note*
I am also interested in maybe looking into the prospect of making it so your agility vs the targets agility can determine your chance to hit. But this is a bit more advanced and would like to do the above first.
I know it adds up all of these stats from weapons and armor at some point but I cant seem to figure out where these functions are.
I want to make it so that your base attack is governed by Luk and your base defense is governed by mdf.
Can anyone point me to the locations where this calculated so I can do the above?
*Side note*
I am also interested in maybe looking into the prospect of making it so your agility vs the targets agility can determine your chance to hit. But this is a bit more advanced and would like to do the above first.