40 lines
888 B
C#
40 lines
888 B
C#
using UnityEngine;
|
|
|
|
[CreateAssetMenu(fileName = "ConsumableItem", menuName = "Game Data/Consumable")]
|
|
public class Consumable : GameItem
|
|
{
|
|
public int health;
|
|
public int sanity;
|
|
public int stamina;
|
|
public int magic;
|
|
public int luck;
|
|
public int speed;
|
|
public int attack;
|
|
public int defense;
|
|
public int critChance;
|
|
public int critDamage;
|
|
public int duration;
|
|
|
|
// high quality
|
|
public int quality;
|
|
|
|
// Add other consumable-specific properties and methods here
|
|
|
|
// set the default values for the consumable item
|
|
public Consumable()
|
|
{
|
|
health = 0;
|
|
sanity = 0;
|
|
stamina = 0;
|
|
magic = 0;
|
|
luck = 0;
|
|
speed = 0;
|
|
attack = 0;
|
|
defense = 0;
|
|
critChance = 0;
|
|
critDamage = 0;
|
|
duration = 0;
|
|
quality = 0;
|
|
type = ItemType.Consumable;
|
|
}
|
|
} |