mirror of
https://github.com/rmroc451/TweaksAndThings.git
synced 2025-12-16 09:19:37 -06:00
fixes #68; bugged 120% penalty adjusted to intended 20%
This commit is contained in:
@@ -48,8 +48,7 @@ internal class InterchangedIndustryLoader_ServiceInterchange_Patch
|
||||
if (num4 > 0)
|
||||
{
|
||||
var canAfford = shared.CanAfford(num4);
|
||||
penalty = Mathf.CeilToInt(!canAfford ? num4 * 0.2f : 0);
|
||||
__instance.Industry.ApplyToBalance(-num4, __instance.ledgerCategory, null, 0, quiet: true);
|
||||
penalty += Mathf.CeilToInt(!canAfford ? num4 * 0.2f : 0);
|
||||
|
||||
num2 += num4;
|
||||
num3++;
|
||||
|
||||
Reference in New Issue
Block a user