Issue #5543 (nation happiness from misc_mission) #35
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.
Should fix Issue #5543 (nation happiness from misc_mission, like in mansion map)
Performance for missions is now composed of 4 factors, instead of just 2; added factors for MissionGoal and InfectedHumans (just basic implementation yet).
Added 2 new fields to missionResults_t (float goalAccomplished, int infectedHumans), to prepare for new score calculations in future updates.
Performance from killed aliens is now always zero or positive (small value), so the player will not get a negative score when completing missions different than simple xenocide; this was the main reason for the issue #5543, a negative value from not killed aliens a lot higher than the positive score from saved civilians.
Moved all used constant values into the .h header file to gather all them, easing if they ever become scriptable.
Signed-off-by: Namerutan [email protected]