In items.gd, there are a series of functions with names like armor, agi, stren, maf, end, and courage. These functions are called by name when equiping items and determine which changes can occur. You will need to add new functions if you wish to change max stats.