From 027f76d745c4ff585e6e49ffc67d516fdbc67aca Mon Sep 17 00:00:00 2001 From: Mikhail Tyukin Date: Fri, 27 Jun 2025 18:25:50 +0400 Subject: [PATCH] fix bugs with interception --- EpinelPS/Utils/InterceptionHelper.cs | 2 +- EpinelPS/Utils/RewardUtils.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/EpinelPS/Utils/InterceptionHelper.cs b/EpinelPS/Utils/InterceptionHelper.cs index 392b2b1..7c8cca5 100644 --- a/EpinelPS/Utils/InterceptionHelper.cs +++ b/EpinelPS/Utils/InterceptionHelper.cs @@ -9,7 +9,7 @@ namespace EpinelPS.Utils { InterceptionClearResult response = new(); - if (type != 0 && type != 1) throw new Exception("unknown type"); + if (type != 1 && type != 2) throw new Exception("unknown interception type"); Dictionary records = type == 0 ? GameData.Instance.InterceptNormal : GameData.Instance.InterceptSpecial; diff --git a/EpinelPS/Utils/RewardUtils.cs b/EpinelPS/Utils/RewardUtils.cs index 6db2a11..45d5015 100644 --- a/EpinelPS/Utils/RewardUtils.cs +++ b/EpinelPS/Utils/RewardUtils.cs @@ -129,7 +129,7 @@ namespace EpinelPS.Utils }); } } - else if (rewardType == "Item") + else if (rewardType == "Item" || rewardType.StartsWith("Equipment_")) { // Check if user already has said item. If it is level 1, increase item count. // If user does not have item, generate a new item ID