using UnityEngine;
using System.Collections;
using Framework.Entities;

public class HerbsResponsive : Responsive
{
    protected override void InnerAwake()
    {
        base.InnerAwake();
        if (this.displayName == "")
        {
            this.displayName = "Crimson Herbs";
        }
    }

    protected override void InnerUpdate()
    {

    }

    protected override void Respond(RespondAction action)
    {
        AlchemistBag bag = action.GetSender().GetGameObject().GetComponent<AlchemistBag>();
        if (bag != null)
        {
            bag.medHerbsCount++;
            Interact(new PickUpDayCycleBehaviour.SetUsedAction());
        }
    }
}
