There is a way to modify the number of turns one settlement/castle can sustain a siege without surrending because of starvation?

Can find anywhere except I fear it's hardcoded into the "wall_level" value... And if I change that value (example wall_level 12) I also fear strange things would appear in the battle map.