2026-11-12 12:28:40 +08:00
|
|
|
using UnityEngine;
|
|
|
|
|
|
|
|
|
|
namespace Ironspore
|
|
|
|
|
{
|
|
|
|
|
[CreateAssetMenu(menuName = "Ironspore/Equipment")]
|
|
|
|
|
public sealed class EquipmentDefinition : ScriptableObject
|
|
|
|
|
{
|
|
|
|
|
public string id;
|
|
|
|
|
public string displayName;
|
|
|
|
|
public string LocalizedName => GameLocalization.Text("equipment." + id + ".name");
|
|
|
|
|
public int slot;
|
|
|
|
|
public float mass = 2;
|
|
|
|
|
public float power = 2;
|
|
|
|
|
public float damage = 15;
|
2026-11-12 18:01:54 +08:00
|
|
|
[Min(1)] public int magazineSize = 36;
|
|
|
|
|
[Min(.1f)] public float reloadSeconds = 2;
|
2026-11-12 12:28:40 +08:00
|
|
|
public float fireRate = 6;
|
|
|
|
|
public float speedFactor = 1;
|
|
|
|
|
public bool guided;
|
|
|
|
|
}
|
|
|
|
|
}
|