fix bugs with interception

This commit is contained in:
Mikhail Tyukin
2025-06-27 18:25:50 +04:00
parent 63495aa5e7
commit 027f76d745
2 changed files with 2 additions and 2 deletions

View File

@@ -9,7 +9,7 @@ namespace EpinelPS.Utils
{ {
InterceptionClearResult response = new(); 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<int, InterceptionRecord> records = type == 0 ? GameData.Instance.InterceptNormal : GameData.Instance.InterceptSpecial; Dictionary<int, InterceptionRecord> records = type == 0 ? GameData.Instance.InterceptNormal : GameData.Instance.InterceptSpecial;

View File

@@ -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. // 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 // If user does not have item, generate a new item ID