- Slight increase to priest, necro and mage scaling - Updated overall item drops on all enemies: - bosses are guaranteed to drop one item - drops are weighted and with min/max difficulty restrictions
20 lines
376 B
C#
20 lines
376 B
C#
using Kryz.CharacterStats.Examples;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class EquippableItemDrop : Interactable
|
|
{
|
|
public Item itemDrop;
|
|
|
|
public override void Interact(bool melee)
|
|
{
|
|
base.Interact(melee);
|
|
|
|
FindObjectOfType<Inventory>().AddItem(itemDrop);
|
|
|
|
Destroy(this.gameObject);
|
|
}
|
|
|
|
}
|