28 lines
822 B
C#
28 lines
822 B
C#
using UnityEngine;
|
|
|
|
namespace MedievalShopkeeper
|
|
{
|
|
[CreateAssetMenu(fileName = "NewItem", menuName = "Medieval Shopkeeper/Item Data")]
|
|
public class ItemData : ScriptableObject
|
|
{
|
|
[Header("Basic Info")]
|
|
public string itemName;
|
|
[TextArea]
|
|
public string description;
|
|
public Sprite icon;
|
|
|
|
[Header("Economy")]
|
|
[Tooltip("Cost to buy this stock for the shop.")]
|
|
public int buyPrice;
|
|
[Tooltip("Price an NPC will pay for this item.")]
|
|
public int sellPrice;
|
|
|
|
[Header("Visuals")]
|
|
[Tooltip("The 3D prefab spawned on the shelf to represent this item.")]
|
|
public GameObject displayPrefab;
|
|
[Tooltip("Scale modifier for the display prefab on the shelf.")]
|
|
public Vector3 displayScale = Vector3.one;
|
|
}
|
|
}
|
|
|