Closed zijistark closed 5 years ago
Also:
<law>_desc
tooltips to show the effects of the character-law modifiers directly in the law tooltip just like all the regular law modifiers as best as we can.Closing, as @DelnarErsike addressed this more or less.
E.g.,
global_tax_modifier
is an invalid law modifier, and yet it's indeed in use by someemf_heresy
laws. This is now extra obvious in-game because the tooltip separates out the invalid modifiers and says something to the effect of "MODIFIERS THAT WILL BE LOST:" (which is admittedly a very strange choice of description but nevertheless).In order to address this & get the full intended effects of these heresy-related laws where they actually matter in any significant way, we need to go through and:
effect
and not part ofpass_effect
), the corresponding character modifier shall be added to the character & any mutually exclusive character modifiers (from the same law group, presumably) are cleared.potential
of the law corresponding to a character modifier which they possess. @Ispil suggested just using hidden character modifiers since most or all of these modifiers don't matter for non-rulers, but there are theoretically other ways to have the law auto-removed from your primary title without losing any titles (e.g., if you no longer fit thepotential
of the law, save the game, quit, and load it up later). It also occurs on religion, government, and culture change AFAIK, but we really shouldn't try to rely on when law validation is done, as that is fragile & just overcomplicated.on_yearly_pulse
event to renew the appropriate character-law modifiers, setting their auto-expiry for 2 years later each time. This ensures that the modifier never prematurely expires before we hit another yearly pulse to [maybe] renew it, but it's a perfectly acceptable duration to just let the engine take care of auto-expiry of all such modifiers if a character (ruler or not) no longer meets the law criteria.Using the modifier auto-expiry feature enables us to be fairly care-free about applying the modifiers (though exclusive modifiers still need to be cleared when a different law setting is passed) whilst still being able to effectively remove them from ALL types of characters (not just rulers) efficiently.