More complex equality influence on class warfare

Hi all,

I would like to mod a more complex equality influence on class warfare. Since socialists believe that equality is measured by outcome, while capitalists believe that equality is measured by opportunity, I would like the influence of equality to be modified by the percentage of the population identifying as socialist and maybe the happiness of the poor. So the formula would be something like (SomeFactorPercentageOfSocialists - SomeFactorHappinessOfThePoor)SomeFactorEquality.

Reason for this is, I had a run where I completely erradicated the socialist thought, but had recurring Class Warfare because equality was low, yet had plenty of laws which a capitalist would consider equal opportunity in place, and the poor were really happy.

Thanks!