If that's the case then unhappiness per need in every city could be stored as multiplied by 100 and total unhappiness in a city would be a sum of all unhappiness per need divided by 100.
So instead of:
it would be:Code:5 * [ round(1/5)] = 5
Code:5 * [ round(1/5 * 100)] / 100 = 5 * 20 / 100 = 1
That change wouldn't affect happiness calculations outside a city, only inside.
@Gazebo is it feasible?
Problems:
Positive happiness is still managed city by city, as whole integers. And the other sources of unhappiness in a city are also handled as managed integers.
The UI would no longer be whole to give you a discrete breakdown of unhappy pops in a city if we were shunting all integer checks to the empire level.
G