Skip to content

Commit 0118617

Browse files
committed
Fix excessive HP scaling on money
Could change this to be Min(HP, 2) if we wanted, this is just a bandaid fix.
1 parent 2e4d454 commit 0118617

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Scenes/UI/Scripts/ScoringScreen.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ private void GenerateScore(ScoreGuide info)
132132
private int CalcTotalBase(ScoreGuide info)
133133
{
134134
int result = info.BaseMoney;
135-
result += (int)((info.EndingHealth / info.StartingHealth) * 10);
135+
result += (int)(Math.Min((info.EndingHealth / info.StartingHealth), 1) * 10);
136136
result += StageProducer.GlobalRng.RandiRange(0, 3);
137137
return result;
138138
}

0 commit comments

Comments
 (0)