602c94726a
Start rebuild Save & Load game system
42 lines
806 B
C#
42 lines
806 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public enum EquipmentType
|
|
{
|
|
Helmet,
|
|
Chest,
|
|
Gloves,
|
|
Boots,
|
|
Weapon,
|
|
Potion,
|
|
Bracelet,
|
|
Necklet,
|
|
Ring,
|
|
Other
|
|
}
|
|
|
|
[CreateAssetMenu]
|
|
[System.Serializable]
|
|
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;
|
|
|
|
public EquippableItem(){}
|
|
|
|
public EquippableItem(Item _item) : base(_item){}
|
|
|
|
public EquippableItem(string _name, string _description, int _level, GameObject _itemModel, Sprite _image) : base(_name, _description, _level, _itemModel, _image)
|
|
{
|
|
}
|
|
}
|