Minor performance tweaks

This commit is contained in:
Asriel Camora
2023-07-14 22:54:53 +04:00
parent 86daf038ce
commit 79377b5e89
3 changed files with 19 additions and 2 deletions
+1 -1
View File
@@ -86,7 +86,7 @@ public struct Effects
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public readonly byte GetStrength(EffectType effect) =>
effect == EffectType.InnerQuiet ? InnerQuiet :
(byte)(GetDuration(effect) != 0 ? 1 : 0);
(byte)(HasEffect(effect) ? 1 : 0);
[Pure]
[MethodImpl(MethodImplOptions.AggressiveInlining)]