unlock some furniture (not all items implemented yet)

special thanks to undownding for the logic
This commit is contained in:
Naruse
2026-05-12 16:03:38 +08:00
parent 233419eba3
commit 6740b8ecf7
11 changed files with 107 additions and 5 deletions

View File

@@ -0,0 +1,21 @@
namespace MikuSB.Data.Excel;
[ResourceEntity("item/templates/dorm_gift.json")]
public class DormGiftExcel : ExcelResource
{
public uint Genre { get; set; }
public uint Detail { get; set; }
public uint Particular { get; set; }
public uint Level { get; set; }
public string I18n { get; set; } = "";
public override uint GetId()
{
return (Genre << 24) | (Detail << 16) | (Particular << 8) | Level;
}
public override void Loaded()
{
GameData.DormGiftData.Add(GetId(), this);
}
}

View File

@@ -30,6 +30,7 @@ public static class GameData
public static Dictionary<uint, CallItemExcel> CallItemData { get; private set; } = [];
public static Dictionary<uint, WeaponPartsExcel> WeaponPartsData { get; private set; } = [];
public static Dictionary<uint, GuideExcel> GuideData { get; private set; } = [];
public static Dictionary<uint, DormGiftExcel> DormGiftData { get; private set; } = [];
}
public static class GameResourceTemplateId