edit: Don't miss the reply on the page before!
Another idea - what if all remaining slave rebel units would turn into Workers once slavery is abolished? This would surely work as an incitement to undergo some turn of Anarchy, not?
Oh, and I just realized that I haven't added anything to the actual Slave Revolt random event. So there is no additional option of abolishing slavery or anything in the event pop-up.
What my code does is it checks the Labor civics category for the victim of the rebellion every turn. If its anything else than Slavery then any Slave cities revert back to that player and all rebel units are disbanded.
Yet more ideas: Should the population of cities ever be impacted by the formation of rebel units? Because they do represent sections of the population, right?
edit: I added a 10 city minimum to the civil war code, by the way. Because it has to be 30% of all cities, and it should be a minimum of 3 revolting cities, right?
Another idea - what if all remaining slave rebel units would turn into Workers once slavery is abolished? This would surely work as an incitement to undergo some turn of Anarchy, not?
Oh, and I just realized that I haven't added anything to the actual Slave Revolt random event. So there is no additional option of abolishing slavery or anything in the event pop-up.

What my code does is it checks the Labor civics category for the victim of the rebellion every turn. If its anything else than Slavery then any Slave cities revert back to that player and all rebel units are disbanded.
Yet more ideas: Should the population of cities ever be impacted by the formation of rebel units? Because they do represent sections of the population, right?
edit: I added a 10 city minimum to the civil war code, by the way. Because it has to be 30% of all cities, and it should be a minimum of 3 revolting cities, right?