mirror of
https://github.com/MikuLeaks/MikuSB.git
synced 2026-06-04 04:03:58 +00:00
Unlock many chapters
This commit is contained in:
14
Common/Data/Excel/ChapterLevelExcel.cs
Normal file
14
Common/Data/Excel/ChapterLevelExcel.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
namespace MikuSB.Data.Excel;
|
||||
|
||||
[ResourceEntity("level.json")]
|
||||
public class ChapterLevelExcel : ExcelResource
|
||||
{
|
||||
public uint ID { get; set; }
|
||||
|
||||
public override uint GetId() => ID;
|
||||
|
||||
public override void Loaded()
|
||||
{
|
||||
GameData.ChapterLevelData.Add(ID, this);
|
||||
}
|
||||
}
|
||||
@@ -11,6 +11,7 @@ public static class GameData
|
||||
public static Dictionary<int, UpgradeExpExcel> UpgradeExpData { get; private set; } = [];
|
||||
public static Dictionary<int, BreakLevelLimitExcel> BreakLevelLimitData { get; private set; } = [];
|
||||
public static Dictionary<int, RecycleExcel> RecycleData { get; private set; } = [];
|
||||
public static Dictionary<uint, ChapterLevelExcel> ChapterLevelData { get; private set; } = [];
|
||||
}
|
||||
|
||||
public static class GameResourceTemplateId
|
||||
|
||||
@@ -244,12 +244,11 @@ public class PlayerInstance(PlayerGameData data)
|
||||
yield return (4, guideId, 999);
|
||||
|
||||
// Launch.GPASSID = 22 stores pass counts. ChapterLevel.GID = 21 stores star flags.
|
||||
// Completing the prologue/early chapter range prevents function conditions from
|
||||
// treating the account as a fresh tutorial player.
|
||||
for (uint levelId = 10_000; levelId <= 10_700; levelId++)
|
||||
// Unlock every level defined in level.json so all chapters are accessible from the start.
|
||||
foreach (var levelId in GameData.ChapterLevelData.Keys)
|
||||
{
|
||||
yield return (21, levelId, 7);
|
||||
yield return (22, levelId, 1);
|
||||
yield return (22, levelId, 1_700_000_000);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
Reference in New Issue
Block a user