Fix ReagentUnit int comparisons.
- They floored the ReagentUnit before, which is a terrible idea.
This commit is contained in:
@@ -106,32 +106,32 @@ namespace Content.Shared.Chemistry.Reagent
|
||||
|
||||
public static bool operator <=(ReagentUnit a, int b)
|
||||
{
|
||||
return a.ShiftDown() <= b;
|
||||
return a <= New(b);
|
||||
}
|
||||
|
||||
public static bool operator >=(ReagentUnit a, int b)
|
||||
{
|
||||
return a.ShiftDown() >= b;
|
||||
return a >= New(b);
|
||||
}
|
||||
|
||||
public static bool operator <(ReagentUnit a, int b)
|
||||
{
|
||||
return a.ShiftDown() < b;
|
||||
return a < New(b);
|
||||
}
|
||||
|
||||
public static bool operator >(ReagentUnit a, int b)
|
||||
{
|
||||
return a.ShiftDown() > b;
|
||||
return a > New(b);
|
||||
}
|
||||
|
||||
public static bool operator ==(ReagentUnit a, int b)
|
||||
{
|
||||
return a.Int() == b;
|
||||
return a == New(b);
|
||||
}
|
||||
|
||||
public static bool operator !=(ReagentUnit a, int b)
|
||||
{
|
||||
return a.Int() != b;
|
||||
return a != New(b);
|
||||
}
|
||||
|
||||
public static bool operator ==(ReagentUnit a, ReagentUnit b)
|
||||
|
||||
Reference in New Issue
Block a user