Oh, I see now. ..Wait, White Mages don't gain INT ever after LV 30?? ..WTF?!
..
In the NES I guess anything after LV 25 doesn't matter much.. since it doesn't have bonus dungeons or anything. If you want to fix that (and other) bugs, do it.
[edit] If you want to just stick those in the lv-up data under "stat_flags" be my guest. A text file ( ex; 3096 870 4879 etc..) or a binary file works. The bits should be in a 4-byte integer between 24-28, or 19-23, or 27-31.. (24-28 is how I have right now.) , or, 8-bit byte starting from 0. Either one works. (bin file is easier) ..
then you can just say "stat[x] += game.lv_data[lv].stat_flags[x] ? 1 : rand(0,1);