Damage movespeed (#5244)
This commit is contained in:
@@ -3,6 +3,7 @@ using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Globalization;
|
||||
using System.Linq;
|
||||
using Content.Shared.ActionBlocker;
|
||||
using Robust.Shared.Serialization;
|
||||
|
||||
namespace Content.Shared.FixedPoint
|
||||
@@ -210,6 +211,16 @@ namespace Content.Shared.FixedPoint
|
||||
return a > b ? a : b;
|
||||
}
|
||||
|
||||
public static FixedPoint2 Abs(FixedPoint2 a)
|
||||
{
|
||||
return FixedPoint2.New(Math.Abs(a._value));
|
||||
}
|
||||
|
||||
public static FixedPoint2 Dist(FixedPoint2 a, FixedPoint2 b)
|
||||
{
|
||||
return FixedPoint2.Abs(a - b);
|
||||
}
|
||||
|
||||
public static FixedPoint2 Clamp(FixedPoint2 reagent, FixedPoint2 min, FixedPoint2 max)
|
||||
{
|
||||
if (min > max)
|
||||
|
||||
Reference in New Issue
Block a user