mirror of
https://github.com/EpinelPS/EpinelPS.git
synced 2025-12-13 15:34:36 +01:00
fix bugs with interception
This commit is contained in:
@@ -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<int, InterceptionRecord> records = type == 0 ? GameData.Instance.InterceptNormal : GameData.Instance.InterceptSpecial;
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user