Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unhappiness due to War Discontent possibly processed wrongly #389

Open
LynxAbraxas opened this issue Aug 31, 2022 · 2 comments
Open

Unhappiness due to War Discontent possibly processed wrongly #389

LynxAbraxas opened this issue Aug 31, 2022 · 2 comments

Comments

@LynxAbraxas
Copy link
Contributor

Here, even though "War Discontent" is listed with a value of happiness of zero:
ss_2022-08-31_12:31:01
the city's Happiness is increased by +1 in the next turn when "War Discontent" disappears from the list of (Un-) Happiness factors:
ss_2022-08-31_12:33:18

@jacobgruber
Copy link

I think this is because city happiness is actual a float, not an integer. In CTP1 this was explicit in the interface, but even though the CTP2 interface shows whole values, this doesn't accurately reflect the game state. I'm not sure about all happiness factors, but I believe war discontent and pollution both are typically not integers.

It might be worthwhile to bring back the floating point interface or multiply by 10.

@LynxAbraxas
Copy link
Contributor Author

Thanks @jacobgruber for that pointer. That could well be the reason.
Perhaps listing Percentages (*100) in the Happiness list might even be better.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants