Skip to content

Commit

Permalink
Remove todo
Browse files Browse the repository at this point in the history
  • Loading branch information
LucHeart committed Oct 1, 2024
1 parent f14bea0 commit 355cc38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Integrations.RiskOfRain2/DamageHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ private byte CalculateIntensity(DamageDealtMessage damageMessage)
{
DamageBehaviour.LowHp => playerCurrentHp / playerMaxHp * 100,
DamageBehaviour.DamagePercent => damageMessage.damage / playerMaxHp * 100,
_ => throw new NotImplementedException("This is unreachable.")
_ => throw new Exception("This is unreachable.")
};
intensity = MathUtils.Lerp(0, _settingOnDamageIntensityLimit.Value, Math.Clamp(scaled, 0, 100));
}
Expand Down

0 comments on commit 355cc38

Please sign in to comment.