Skip to content

Commit

Permalink
Hotfix fixed the input gain function. Effective employees took much m…
Browse files Browse the repository at this point in the history
…ore time to gather input. Made the start a bit more easier.
  • Loading branch information
schw3de committed Apr 22, 2024
1 parent f4adacd commit 414c1ff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion TheDepartment/src/domain/Employee.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public partial class Employee : GodotObject
public double FocusReductionInterval { get; set; } = 0.4f;
public double InputGainInterval { get; set; } = 0.8f;
public double FocusReduction => 20 / Effective;
public double InputGain => 0.95 * (11 - Effective);
public double InputGain => 0.1667 * Effective + 2.8333;
public double CurrentInput { get; set; }
}
}
2 changes: 1 addition & 1 deletion TheDepartment/src/prefabs/EmployeeMeetingPrefab.cs
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public override void _Process(double delta)
if (_timerFocus.IsStopped())
{
// TODO remove this into the domain.
_progressFocus.Value -= _employee.FocusReduction * Math.Log(_amountOfEmployees + 1);
_progressFocus.Value -= _employee.FocusReduction * Math.Log(_amountOfEmployees * 0.3 + 1);

if (_progressFocus.Value <= 0)
{
Expand Down

0 comments on commit 414c1ff

Please sign in to comment.