52 lines
1.2 KiB
C#
52 lines
1.2 KiB
C#
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]
|
|
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;
|
|
}
|
|
}
|