sol-oriens / SR2-Community-Patch

Star Ruler 2 Community Patch - A collection of bug fixes and non-gameplay changing improvements
5 stars 4 forks source link

Fix bug in ConvertResource #10

Closed Skeletonxf closed 4 years ago

Skeletonxf commented 4 years ago

Vanilla had a bug in the target computation, causing the hook to be invalid for any conversion other than 50%. This was most problematic for a conversion of 100%, which due to the bug resulted in a conversion of 0%.

Vanilla doesn't use the hook with a conversion other than 50%, but this is a useful bug fix for mods deriving from the CP anyway.