Introduce advanced tax & wage contribution logic #1163
+119
−6
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR adds configurable option for advanced Tax & Wage sentiment contribution logic. This is recommended to prevent exploiting in-game default tax & wages logic, when player sets very high taxes and wages to make profit. With new advanced logic proposal tax & wages are divided by intervals and every next interval gives twice less sentiment modifier than previous. Additionally the new sentiment/happiness drop has been applied. Originally we had a maximum drop rate of -2 sentiment per tick. With new settings it has increased.
Example:
Some house happiness level is 82, new sentiment/happiness target is 10, the raw change is -72. Difference percent is 72/82*100% = 87%. Half of it is applied to a new delta change, which is 43% of -72 => -30. So on next tick the house will loose 30 points of happiness instead of 2.