private float GetAwarenessRateChangeForType(AttentionType type) { var info = attentionTypeAwarenessData.data.FirstOrDefault(d => d.attentionType == type); var change = info?.awarenessRateChange; return(change.GetValueOrDefault()); }
public void DeregisterAwarenessType(AttentionType type) { currentAwarenessRate = currentAwarenessRate.ClampedAdd(-GetAwarenessRateChangeForType(type), 0, 1); }