Pedro Gomes 5ce9c0b3a7 Bugfixes + Weapon Visual handler
- bugfix build manager on starter builds not correctly assigning keybinders with defaults
- added 2h ranged shoot animation
- added shoot animation type for abilities
- new weapon visual handler swaps visual weapons based on ability queues
2025-01-13 20:48:15 +00:00

46 lines
1.2 KiB
C#

using Kryz.CharacterStats.Examples;
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEditor;
using UnityEngine;
[System.Serializable]
public class ItemInstance
{
public string ItemName;
public Sprite Icon;
public int sellPricePlayer;
public int sellPriceVendor;
public string description;
public int templateIndex;
public ItemInstance()
{
ItemName = "";
Icon = null;
sellPricePlayer = 0;
sellPriceVendor = 0;
description = "";
templateIndex = 0;
}
public ItemInstance(Item template)
{
ItemName = template.ItemName;
Icon = template.Icon;
sellPricePlayer = template.sellPricePlayer;
sellPriceVendor = template.sellPriceVendor;
description = template.description;
templateIndex = ItemIndexer.Instance.Items.IndexOf(template);
}
public ItemInstance(Item template, int templateIndex)
{
ItemName = template.ItemName;
Icon = template.Icon;
sellPricePlayer = template.sellPricePlayer;
sellPriceVendor = template.sellPriceVendor;
description = template.description;
this.templateIndex = templateIndex;
}
}