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

52 lines
1.2 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 enduranceBonus;
[SerializeField]
public int inteligenceBonus;
[SerializeField]
public int vitalityBonus;
[SerializeField]
public int speedBonus;
[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;
enduranceBonus = equippableItem.EnduranceBonus;
inteligenceBonus = equippableItem.InteligenceBonus;
vitalityBonus = equippableItem.VitalityBonus;
speedBonus = equippableItem.SpeedBonus;
isStackable = equippableItem.isStackable;
equipmentType = equippableItem.EquipmentType;
}
public EquippableItemData(Item item) : base(item)
{
strengthBonus = 0;
enduranceBonus = 0;
inteligenceBonus = 0;
vitalityBonus = 0;
speedBonus = 0;
isStackable = true;
equipmentType = EquipmentTypeEnum.Other;
}
}