From 414c1ff5f8407aaf846d2852fc02319af6251aac Mon Sep 17 00:00:00 2001 From: schw3de <1119882+schw3de@users.noreply.github.com> Date: Sun, 21 Apr 2024 10:42:54 +0200 Subject: [PATCH] Hotfix fixed the input gain function. Effective employees took much more time to gather input. Made the start a bit more easier. --- TheDepartment/src/domain/Employee.cs | 2 +- TheDepartment/src/prefabs/EmployeeMeetingPrefab.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/TheDepartment/src/domain/Employee.cs b/TheDepartment/src/domain/Employee.cs index c170e7e..4faa3cb 100644 --- a/TheDepartment/src/domain/Employee.cs +++ b/TheDepartment/src/domain/Employee.cs @@ -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; } } } \ No newline at end of file diff --git a/TheDepartment/src/prefabs/EmployeeMeetingPrefab.cs b/TheDepartment/src/prefabs/EmployeeMeetingPrefab.cs index c0fc249..101d5af 100644 --- a/TheDepartment/src/prefabs/EmployeeMeetingPrefab.cs +++ b/TheDepartment/src/prefabs/EmployeeMeetingPrefab.cs @@ -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) {