多轮审查和修复
This commit is contained in:
29
Assets/Scripts/Enemies/LootTableSO.cs
Normal file
29
Assets/Scripts/Enemies/LootTableSO.cs
Normal file
@@ -0,0 +1,29 @@
|
||||
using System;
|
||||
using UnityEngine;
|
||||
|
||||
namespace BaseGames.Enemies
|
||||
{
|
||||
/// <summary>
|
||||
/// 战利品表 ScriptableObject。定义敌人死亡后可掉落的物品和保底 Geo 区间。
|
||||
/// </summary>
|
||||
[CreateAssetMenu(menuName = "Enemies/LootTable")]
|
||||
public class LootTableSO : ScriptableObject
|
||||
{
|
||||
[Serializable]
|
||||
public struct LootEntry
|
||||
{
|
||||
public string ItemId;
|
||||
public int GeoAmount;
|
||||
/// <summary>基础权重(难度 Hard 以上会对 ScaleWithDifficulty 项目额外加权)。</summary>
|
||||
public float BaseWeight;
|
||||
public bool ScaleWithDifficulty;
|
||||
}
|
||||
|
||||
[Header("掉落物")]
|
||||
public LootEntry[] Entries;
|
||||
|
||||
[Header("保底 Geo")]
|
||||
public int GuaranteedGeoMin = 1;
|
||||
public int GuaranteedGeoMax = 5;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user