Supply limit is contextual, the supply that character A has in a province is different than character B in the same province as it is based on their traits and tech etc.The "for" parameter disconcerts me. ¿Why is it necessary? Also, what are the semantics? I thought supply limit was a purely provincial value. Or does it mean the "days of supply" thing when on foreign territory? I feel like I lack some fundamental concept here (shame on me).
I could make a version that checks the raw value before any modifiers, but the modified value is what you are gonna care about most of the time as it translates to the value you see in the UI.