Skip to content

Commit

Permalink
Subnautica: DataProcessor: ProcessHungerLevel: Simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
Roker2 committed Mar 23, 2023
1 parent 0d9f59b commit e542d91
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions SubnauticaTelemetry/Subnautica/DataProcessor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,11 @@ private void ProcessHungerLevel(ForceFeedbackType forceFeedbackType, bool enable
if (enabled)
return;
else if (level < lowThreshold && prevFoodLevel > lowThreshold)
SendEvent(new ForceFeedbackEvent(forceFeedbackType, 1f - lowThreshold / 100f, false));
SendEvent(new ForceFeedbackEvent(forceFeedbackType, 1f - lowThreshold / 100f));
else if (level < criticalThreshold && prevFoodLevel > criticalThreshold)
SendEvent(new ForceFeedbackEvent(forceFeedbackType, 1f - criticalThreshold / 100f, false));
SendEvent(new ForceFeedbackEvent(forceFeedbackType, 1f - criticalThreshold / 100f));
else if (level == 0f)
SendEvent(new ForceFeedbackEvent(forceFeedbackType, 1f, false));
SendEvent(new ForceFeedbackEvent(forceFeedbackType, 1f));
prevLevel = level;
}

Expand Down

0 comments on commit e542d91

Please # to comment.