Skip to content

Commit fa01ddd

Browse files
committed
Fix IsRechargeableItem logic
1 parent 0737d13 commit fa01ddd

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/protocol/Edelstein.Protocol.Gameplay/Constants/ItemConstants.cs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,7 @@ public static bool IsItemOptionUpgradeItem(this int itemID)
1717
=> itemID / 100 == 20494;
1818

1919
public static bool IsRechargeableItem(this int itemID)
20-
=> (itemID / 10000) switch
21-
{
22-
207 or 233 => true,
23-
_ => false
24-
};
20+
=> itemID / 10000 is 207 or 233;
2521

2622
public static bool IsReleaseItem(this int itemID)
2723
=> itemID / 10000 == 246;

0 commit comments

Comments
 (0)