扩充道具系统并统一图标命名规范
- 为 20 个道具赋予中文名称(铁护腕、狂战士药剂等)
- 移除数据表 IconAssetName 列,改为按 `类型_{id}_icon`
的命名约定自动推导图标路径
- 清理旧图标资源(Almighty_Icon、172 系列)
- 同步更新各数据表 Excel 源文件
This commit is contained in:
@@ -13,7 +13,7 @@ namespace SepCore.DataTable
|
||||
|
||||
public string Title { get; private set; }
|
||||
|
||||
public string IconAssetName { get; private set; }
|
||||
public string IconAssetName => $"levelupreward_{m_Id}_icon";
|
||||
|
||||
public ItemRarity Rarity { get; private set; }
|
||||
|
||||
@@ -28,7 +28,6 @@ namespace SepCore.DataTable
|
||||
m_Id = int.Parse(fields[index++]);
|
||||
index++;
|
||||
Title = fields[index++];
|
||||
IconAssetName = fields[index++];
|
||||
Rarity = EnumUtility<ItemRarity>.Get(fields[index++]);
|
||||
Modifiers = JsonConvert.DeserializeObject<StatModifier[]>(fields[index++]);
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace SepCore.DataTable
|
||||
|
||||
public override int Id => m_Id;
|
||||
public string Title { get; private set; }
|
||||
public string IconAssetName { get; private set; }
|
||||
public string IconAssetName => $"prop_{m_Id}_icon";
|
||||
public ItemRarity Rarity { get; private set; }
|
||||
public int Price { get; private set; }
|
||||
public float PriceRandomPercent { get; private set; }
|
||||
@@ -26,7 +26,6 @@ namespace SepCore.DataTable
|
||||
m_Id = int.Parse(fields[index++]);
|
||||
index++;
|
||||
Title = fields[index++];
|
||||
IconAssetName = fields[index++];
|
||||
Rarity = EnumUtility<ItemRarity>.Get(fields[index++]);
|
||||
Price = int.Parse(fields[index++]);
|
||||
PriceRandomPercent = float.Parse(fields[index++]);
|
||||
|
||||
@@ -23,7 +23,7 @@ namespace SepCore.DataTable
|
||||
/// <summary>
|
||||
/// 获取图标名称。
|
||||
/// </summary>
|
||||
public string IconName { get; private set; }
|
||||
public string IconName => $"role_{m_Id}_icon";
|
||||
|
||||
/// <summary>
|
||||
/// 获取初始最大生命。
|
||||
@@ -66,7 +66,6 @@ namespace SepCore.DataTable
|
||||
m_Id = int.Parse(columnStrings[index++]);
|
||||
index++;
|
||||
RoleName = columnStrings[index++];
|
||||
IconName = columnStrings[index++];
|
||||
MaxHealth = int.Parse(columnStrings[index++]);
|
||||
Speed = float.Parse(columnStrings[index++]);
|
||||
Coin = int.Parse(columnStrings[index++]);
|
||||
|
||||
@@ -30,7 +30,7 @@ namespace SepCore.DataTable
|
||||
/// <summary>
|
||||
/// 获取图标资源名称。
|
||||
/// </summary>
|
||||
public string IconAssetName { get; private set; }
|
||||
public string IconAssetName => $"weapon_{m_Id}_icon";
|
||||
|
||||
/// <summary>
|
||||
/// 获取武器稀有度
|
||||
@@ -92,7 +92,6 @@ namespace SepCore.DataTable
|
||||
index++;
|
||||
EntityTypeId = int.Parse(columnStrings[index++]);
|
||||
Title = columnStrings[index++];
|
||||
IconAssetName = columnStrings[index++];
|
||||
Rarity = EnumUtility<ItemRarity>.Get(columnStrings[index++]);
|
||||
Price = int.Parse(columnStrings[index++]);
|
||||
PriceRandomPercent = float.Parse(columnStrings[index++]);
|
||||
|
||||
Reference in New Issue
Block a user