Scriptum/Assets/Scripts/REFACTORING/Models/Item/EquippableItem/EquippableItemData.cs

47 lines
1.1 KiB
C#
Raw Normal View History

2022-11-24 03:03:30 +01:00
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]
2022-11-06 21:34:17 +01:00
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;
}
}