The AI can get stuck in an endless loop of granting and revoking privileges to estates, which generates a non-stop stream of rebels.
The issue has to do with the bit of logic that tells the AI to revoke a privilege when an estate already has a full set, to make space for a mana-generating one. The issue is that it revokes even when it does not have the crown land it needs to grant the mana-generating privilege, and so it then just re-adds the privilege it had revoked, which then gets revoked again, and so on.
Here I made it so that it only revokes in such cases when can actually replace it with a mana-generating one.
Incidentally also fixed a bug where the rajputs were checking for brahmin privileges.
The default number of max privileges in Vanilla (not changed by the mod) is 6 now, not 5. Adjusted the logic accordingly here.
Rajputs checking for brahmin privileges is a mishap on my part, due to file structure change on pdx side I had to manually redo all the changes for privileges. Altho I never noticed revoking loop behaviour.
The AI can get stuck in an endless loop of granting and revoking privileges to estates, which generates a non-stop stream of rebels.
The issue has to do with the bit of logic that tells the AI to revoke a privilege when an estate already has a full set, to make space for a mana-generating one. The issue is that it revokes even when it does not have the crown land it needs to grant the mana-generating privilege, and so it then just re-adds the privilege it had revoked, which then gets revoked again, and so on.
Here I made it so that it only revokes in such cases when can actually replace it with a mana-generating one.
Incidentally also fixed a bug where the rajputs were checking for brahmin privileges.
The default number of max privileges in Vanilla (not changed by the mod) is 6 now, not 5. Adjusted the logic accordingly here.