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

View File

@@ -35,6 +35,7 @@ public class ServerTextCHS
/// </summary>
public class WordTextCHS
{
public string Furniture => "家具";
public string Skin => "皮肤";
public string WeaponPart => "武器部件";
public string CallItem => "召唤道具";

View File

@@ -35,6 +35,7 @@ public class ServerTextCHT
/// </summary>
public class WordTextCHT
{
public string Furniture => "傢俱";
public string Skin => "皮膚";
public string WeaponPart => "武器部件";
public string CallItem => "召喚道具";

View File

@@ -35,6 +35,7 @@ public class ServerTextEN
/// </summary>
public class WordTextEN
{
public string Furniture => "Furniture";
public string Skin => "Skin";
public string WeaponPart => "Weapon Part";
public string CallItem => "Call Item";