perf: do not change lineup when enter story line

This commit is contained in:
Somebody
2025-05-30 19:56:02 +08:00
parent 35a3cd18b4
commit f29ea9d97d

View File

@@ -35,8 +35,7 @@ public class StoryLineManager : BasePlayerManager
{
if (StoryLineData.CurStoryLineId != 0) await FinishStoryLine(entryId, anchorGroupId, anchorId, false);
GameData.StoryLineData.TryGetValue(storyLineId, out var storyExcel);
GameData.StroyLineTrialAvatarDataData.TryGetValue(storyLineId, out var storyAvatarExcel);
if (storyExcel == null || storyAvatarExcel == null) return;
if (storyExcel == null) return;
StoryLineData.RunningStoryLines.TryGetValue(storyLineId, out var lineInfo);
StoryLineData.OldEntryId = Player.Data.EntryId;
StoryLineData.OldFloorId = Player.Data.FloorId;
@@ -47,9 +46,6 @@ public class StoryLineManager : BasePlayerManager
var avatarList = Player.LineupManager!.GetCurLineup()!.BaseAvatars!
.Select(x => x.SpecialAvatarId > 0 ? x.SpecialAvatarId / 10 : x.BaseAvatarId).ToList();
for (var i = 0; i < storyAvatarExcel.InitTrialAvatarList.Count; i++)
avatarList[i] = storyAvatarExcel.InitTrialAvatarList[i]; // replace the avatar with the special avatar
Player.LineupManager!.SetExtraLineup(ExtraLineupType.LineupHeliobus, avatarList);
StoryLineData.CurStoryLineId = storyExcel.StoryLineID;