2022-05-29 21:54:28 +02:00
|
|
|
using System.Collections;
|
|
|
|
using System.Collections.Generic;
|
|
|
|
using UnityEngine;
|
|
|
|
|
2022-06-17 22:22:19 +02:00
|
|
|
[System.Serializable]
|
2022-11-19 17:02:31 +01:00
|
|
|
[CreateAssetMenu(fileName = "New Item", menuName = "Inventory/EquippableItem")]
|
2022-05-29 21:54:28 +02:00
|
|
|
public class EquippableItem : Item
|
|
|
|
{
|
2022-11-19 17:02:31 +01:00
|
|
|
public int StrengthBonus = 0;
|
|
|
|
public int AgilityBonus = 0;
|
|
|
|
public int InteligenceBonus = 0;
|
|
|
|
public int VitalityBonus = 0;
|
2022-05-29 21:54:28 +02:00
|
|
|
|
|
|
|
[Space]
|
|
|
|
public bool isStackable = false;
|
|
|
|
|
|
|
|
[Space]
|
2022-11-24 03:03:30 +01:00
|
|
|
public EquipmentTypeEnum EquipmentType = EquipmentTypeEnum.None;
|
2022-05-29 21:54:28 +02:00
|
|
|
|
2022-06-17 22:22:19 +02:00
|
|
|
public EquippableItem(){}
|
|
|
|
|
2022-11-24 03:03:30 +01:00
|
|
|
public EquippableItem(Item _item) : base(_item) {}
|
2022-11-19 17:02:31 +01:00
|
|
|
|
2022-12-19 03:34:45 +01:00
|
|
|
public EquippableItem(EquippableItem _item) : base(_item.name, _item.description, _item.level, _item.value, _item.price, _item.itemModel, _item.image)
|
2022-11-19 17:02:31 +01:00
|
|
|
{
|
|
|
|
StrengthBonus = _item.StrengthBonus;
|
|
|
|
AgilityBonus = _item.AgilityBonus;
|
|
|
|
InteligenceBonus = _item.InteligenceBonus;
|
|
|
|
VitalityBonus = _item.VitalityBonus;
|
2022-11-24 03:03:30 +01:00
|
|
|
|
|
|
|
EquipmentType = _item.EquipmentType;
|
2022-11-19 17:02:31 +01:00
|
|
|
}
|
|
|
|
|
2022-12-19 03:34:45 +01:00
|
|
|
public EquippableItem(string _name, string _description, int _level, int _value, int _price, GameObject _itemModel, Sprite _image) : base(_name, _description, _level, _value, _price, _itemModel, _image) { }
|
2022-11-06 21:34:17 +01:00
|
|
|
|
2022-05-29 21:54:28 +02:00
|
|
|
}
|