2022-05-29 21:54:28 +02:00
|
|
|
using System.Collections;
|
|
|
|
using System.Collections.Generic;
|
|
|
|
using UnityEngine;
|
|
|
|
|
|
|
|
public enum EquipmentType
|
|
|
|
{
|
|
|
|
Helmet,
|
|
|
|
Chest,
|
|
|
|
Gloves,
|
|
|
|
Boots,
|
|
|
|
Weapon,
|
2022-06-05 16:51:08 +02:00
|
|
|
Potion,
|
|
|
|
Bracelet,
|
|
|
|
Necklet,
|
|
|
|
Ring,
|
2022-05-29 21:54:28 +02:00
|
|
|
Other
|
|
|
|
}
|
|
|
|
|
|
|
|
[CreateAssetMenu]
|
2022-06-17 22:22:19 +02:00
|
|
|
[System.Serializable]
|
2022-05-29 21:54:28 +02:00
|
|
|
public class EquippableItem : Item
|
|
|
|
{
|
|
|
|
public int StrengthBonus;
|
|
|
|
public int AgilityBonus;
|
|
|
|
public int InteligenceBonus;
|
|
|
|
public int VitalityBonus;
|
|
|
|
|
|
|
|
[Space]
|
|
|
|
public bool isStackable = false;
|
|
|
|
|
|
|
|
[Space]
|
|
|
|
public EquipmentType EquipmentType;
|
|
|
|
|
2022-06-17 22:22:19 +02:00
|
|
|
public EquippableItem(){}
|
|
|
|
|
|
|
|
public EquippableItem(Item _item) : base(_item){}
|
|
|
|
|
2022-05-29 21:54:28 +02:00
|
|
|
public EquippableItem(string _name, string _description, int _level, GameObject _itemModel, Sprite _image) : base(_name, _description, _level, _itemModel, _image)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
}
|