2022-11-24 03:03:30 +01:00
|
|
|
using System;
|
2022-06-17 22:22:19 +02:00
|
|
|
using UnityEngine;
|
|
|
|
|
|
|
|
[System.Serializable]
|
|
|
|
public class EquippableItemData : ItemData
|
|
|
|
{
|
2022-11-19 17:02:31 +01:00
|
|
|
[SerializeField]
|
2022-06-17 22:22:19 +02:00
|
|
|
public int strengthBonus;
|
|
|
|
|
2022-11-19 17:02:31 +01:00
|
|
|
[SerializeField]
|
2022-06-17 22:22:19 +02:00
|
|
|
public int agilityBonus;
|
|
|
|
|
2022-11-19 17:02:31 +01:00
|
|
|
[SerializeField]
|
2022-06-17 22:22:19 +02:00
|
|
|
public int inteligenceBonus;
|
|
|
|
|
2022-11-19 17:02:31 +01:00
|
|
|
[SerializeField]
|
2022-06-17 22:22:19 +02:00
|
|
|
public int vitalityBonus;
|
|
|
|
|
2022-11-19 17:02:31 +01:00
|
|
|
[SerializeField]
|
2022-06-17 22:22:19 +02:00
|
|
|
public bool isStackable;
|
|
|
|
|
2022-11-19 17:02:31 +01:00
|
|
|
[SerializeField]
|
2022-11-06 21:34:17 +01:00
|
|
|
public EquipmentTypeEnum equipmentType;
|
2022-06-17 22:22:19 +02:00
|
|
|
|
|
|
|
public EquippableItemData(EquippableItem equippableItem) : base(equippableItem)
|
|
|
|
{
|
|
|
|
strengthBonus = equippableItem.StrengthBonus;
|
|
|
|
agilityBonus = equippableItem.AgilityBonus;
|
|
|
|
inteligenceBonus = equippableItem.InteligenceBonus;
|
|
|
|
vitalityBonus = equippableItem.VitalityBonus;
|
|
|
|
|
|
|
|
isStackable = equippableItem.isStackable;
|
|
|
|
equipmentType = equippableItem.EquipmentType;
|
|
|
|
}
|
|
|
|
|
2022-11-19 17:02:31 +01:00
|
|
|
public EquippableItemData(Item item) : base(item)
|
2022-06-17 22:22:19 +02:00
|
|
|
{
|
2022-11-19 17:02:31 +01:00
|
|
|
strengthBonus = 0;
|
|
|
|
agilityBonus = 0;
|
|
|
|
inteligenceBonus = 0;
|
|
|
|
vitalityBonus = 0;
|
|
|
|
|
|
|
|
isStackable = true;
|
|
|
|
equipmentType = EquipmentTypeEnum.Other;
|
2022-06-17 22:22:19 +02:00
|
|
|
}
|
|
|
|
}
|