Description
[3.7.4 (b646)] -0%s cause faction approval to round down from 80% to 79%, costing me 5% happiness
Game Version
Canis Minor v3.7.4
What version do you use?
Steam
What expansions do you have installed?
All except Toxoids.
Do you have mods enabled?
Yes
(Only mod is the test branch of the Storm Cluster MODJAM2022 crisis, which isn't going to do anything until midgame and hasn't thrown anything to error.log besides the two expected overwrites.)
Please explain your issue is in as much detail as possible.
The Xenoist faction just spawned with the Indirect Xenology (-5%), Enclaves Incorporated (-0%), and Federated (-0%) demands unfulfilled, and the No Purges (+0%), All Refugees Welcome (+10%), New Contact (+5%), Proactive First Contact Protocols (+10%), and Benevolent Subjugation Policy (+10%) demands fulfilled. Combined with the base 50% approval this adds up to 80% (50-5-0-0+0+10+5+10+10), but the actual resulting approval is 79%.
This seems to be because those ±0%s are actually ±0.001s with the decimals hidden, meaning the approval calculation comes out to 79.999% which just isn't good enough for the pop happiness threshold at 80%.
Steps to reproduce the issue.
Have more -0% approvals than +0% approvals for a faction.
This can be fixed by replacing all instances of
Upload Attachment
File(s) attached
[3.7.4 (b646)] -0%s cause faction approval to round down from 80% to 79%, costing me 5% happiness
Game Version
Canis Minor v3.7.4
What version do you use?
Steam
What expansions do you have installed?
All except Toxoids.
Do you have mods enabled?
Yes
(Only mod is the test branch of the Storm Cluster MODJAM2022 crisis, which isn't going to do anything until midgame and hasn't thrown anything to error.log besides the two expected overwrites.)
Please explain your issue is in as much detail as possible.
The Xenoist faction just spawned with the Indirect Xenology (-5%), Enclaves Incorporated (-0%), and Federated (-0%) demands unfulfilled, and the No Purges (+0%), All Refugees Welcome (+10%), New Contact (+5%), Proactive First Contact Protocols (+10%), and Benevolent Subjugation Policy (+10%) demands fulfilled. Combined with the base 50% approval this adds up to 80% (50-5-0-0+0+10+5+10+10), but the actual resulting approval is 79%.
This seems to be because those ±0%s are actually ±0.001s with the decimals hidden, meaning the approval calculation comes out to 79.999% which just isn't good enough for the pop happiness threshold at 80%.
Steps to reproduce the issue.
Have more -0% approvals than +0% approvals for a faction.
This can be fixed by replacing all instances of
unfulfilled_effect = -0.001 with unfulfilled_effect = 0. Or making base faction approval 50.01 to counteract up to 10x -0.001s.Upload Attachment
File(s) attached
Attachments
- 2