Co-authored-by: Pieter-Jan Briers <pieterjan.briers@gmail.com> Co-authored-by: Metal Gear Sloth <metalgearsloth@gmail.com> Co-authored-by: Pieter-Jan Briers <pieterjan.briers+git@gmail.com>
12 lines
297 B
C#
12 lines
297 B
C#
namespace Content.Server.AI.Utility.Curves
|
|
{
|
|
public struct InverseBoolCurve : IResponseCurve
|
|
{
|
|
public float GetResponse(float score)
|
|
{
|
|
// ReSharper disable once CompareOfFloatsByEqualityOperator
|
|
return score == 0.0f ? 1.0f : 0.0f;
|
|
}
|
|
}
|
|
}
|