Scriptum/Assets/Scripts/REFACTORING/Models/Item/EquippableItem/EquippableItemData.cs
2022-11-24 03:03:30 +01:00

47 lines
1.1 KiB
C#

using System;
using UnityEngine;
[System.Serializable]
public class EquippableItemData : ItemData
{
[SerializeField]
public int strengthBonus;
[SerializeField]
public int agilityBonus;
[SerializeField]
public int inteligenceBonus;
[SerializeField]
public int vitalityBonus;
[SerializeField]
public bool isStackable;
[SerializeField]
public EquipmentTypeEnum equipmentType;
public EquippableItemData(EquippableItem equippableItem) : base(equippableItem)
{
strengthBonus = equippableItem.StrengthBonus;
agilityBonus = equippableItem.AgilityBonus;
inteligenceBonus = equippableItem.InteligenceBonus;
vitalityBonus = equippableItem.VitalityBonus;
isStackable = equippableItem.isStackable;
equipmentType = equippableItem.EquipmentType;
}
public EquippableItemData(Item item) : base(item)
{
strengthBonus = 0;
agilityBonus = 0;
inteligenceBonus = 0;
vitalityBonus = 0;
isStackable = true;
equipmentType = EquipmentTypeEnum.Other;
}
}