fix: Modify the cycling duration of ongoing events

This commit is contained in:
2025-02-21 21:41:46 +08:00
parent c3cd512611
commit 399fb577f3

View File

@@ -79,7 +79,7 @@ namespace Cryville.EEW.Unity.UI {
m_currentView.SetViewModel(e, true);
var keyProp = e.Properties.FirstOrDefault();
_displayingViews[_index].SetCurrent(true);
_tickDown = Math.Max(0, keyProp?.Severity ?? 0) * 4 + 4;
_tickDown = MathF.Exp(Math.Max(-1f, keyProp?.Severity ?? -1f) + 1);
m_currentView.gameObject.SetActive(true);
Worker.Instance.SetCurrent(e);
}