From 6893abc7a4cbd8c930e03faf2c1e24b7a2cf35bb Mon Sep 17 00:00:00 2001
From: liuying <146726580+Firefly5201314@users.noreply.github.com>
Date: Mon, 4 Nov 2024 21:39:38 +0800
Subject: [PATCH 1/2] Fixed Rogue has been reset
---
Proto/RogueScoreRewardInfo.cs | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/Proto/RogueScoreRewardInfo.cs b/Proto/RogueScoreRewardInfo.cs
index e9fa6445..14146d64 100644
--- a/Proto/RogueScoreRewardInfo.cs
+++ b/Proto/RogueScoreRewardInfo.cs
@@ -93,7 +93,7 @@ namespace EggLink.DanhengServer.Proto {
}
/// Field number for the "pool_refreshed" field.
- public const int PoolRefreshedFieldNumber = 12;
+ public const int PoolRefreshedFieldNumber = 4;
private bool poolRefreshed_;
///
/// 4
@@ -108,7 +108,7 @@ namespace EggLink.DanhengServer.Proto {
}
/// Field number for the "has_taken_initial_score" field.
- public const int HasTakenInitialScoreFieldNumber = 4;
+ public const int HasTakenInitialScoreFieldNumber = 12;
private bool hasTakenInitialScore_;
///
/// 12
From 5b5c2bdf17b6f83f5e240f4281ebed5e2c5603f9 Mon Sep 17 00:00:00 2001
From: letheriver2007 <77842352+letheriver2007@users.noreply.github.com>
Date: Thu, 7 Nov 2024 00:22:51 +0800
Subject: [PATCH 2/2] Fix bug in ```ChallengeInstance```
Really a amazing bug. i thought author copy the second method from the first one then forgot to change
---
GameServer/Game/Challenge/ChallengeInstance.cs | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/GameServer/Game/Challenge/ChallengeInstance.cs b/GameServer/Game/Challenge/ChallengeInstance.cs
index f210e96c..f8c243c6 100644
--- a/GameServer/Game/Challenge/ChallengeInstance.cs
+++ b/GameServer/Game/Challenge/ChallengeInstance.cs
@@ -201,7 +201,7 @@ public class ChallengeInstance
{
var avatar = Player.AvatarManager?.GetAvatar(lineupAvatar.BaseAvatarId);
if (avatar == null) continue;
- proto.BossInfo.FirstLineup.Add((uint)avatar.GetAvatarId());
+ proto.BossInfo.SecondLineup.Add((uint)avatar.GetAvatarId());
var equip = Player.InventoryManager?.GetItem(0, avatar.GetCurPathInfo().EquipId,
ItemMainTypeEnum.Equipment);
if (equip != null)
@@ -444,4 +444,4 @@ public class ChallengeInstance
}
#endregion
-}
\ No newline at end of file
+}