Description
Currently, the donation of an island to the Knights of St. John or the donation of a duchy to the Teutonic Order are only checked at the end of a few types of CBs and only for that CB's target title. This is fine and all, but it hardly captures the far more plentiful opportunities to get these holy orders landed in the way that they want to be ASAP. We could:
- Continue using a CB-based approach, but make it ubiquitous:
- Mark all attacker realm titles in the CB's
on_success
inemf_cb_victory
and its counterpartemf_cb_holy_victory
asprior_realm_title
. - In our
emf_cb_on_success_posttitle
effect, check all new realm counties' de jure duchies for fulfilling the HO land donation preferences. New realm counties aren't markedprior_realm_title
. If a duchy qualifies, fire the appropriate events for the HOs to ask for them (seecheck_holy_order_donation_effect
). - Clear all of these temporary flags.
- Mark all attacker realm titles in the CB's
- Use a pulse to check for qualifying duchies under every potential land donors' realm.
- If they qualify, fire a slightly differently worded event (the current one refers to "your newfound land") to request the duchy (or island county sometimes for the Knights of St. John) to the top liege asking for the title(s) in question.
The pulse has the advantage of being able to use preference rules when selecting from among multiple qualifying duchies (unless the CB-based approach hits a war wherein several wanted duchies are gained, unlikely), and it doesn't require an all-CBs "hack." I'd honestly suggest both approaches, however.
We could later extend this to the Livonian Brothers of the Sword and the Livonian Order.