public static void TriggerLegendCard(LegendCard card)
 {
     if (LegendCard != null)
     {
         LegendCard(card);
     }
 }
    public void Show(LegendCard card)
    {
        this.card  = card;
        text.text  = card.story;
        text.text += "\n" + card.effect;
        id.text    = "" + card.id;

        panel.SetActive(true);
    }
    public void TriggerWitchCard()
    {
        witchFound = true;
        LegendCard witchCard = legendCardDeck.getCard("WitchCard");

        witchCard.ApplyEffect();
        tasks.Remove("Witch");
        tasks.Add("Herb", "- Bring the Herb (Cell " + herbCellId + ") to the Castle \n");
        UpdateTasks();
    }
    public void CheckLegendCards()
    {
        // Check if narrator is at runestones
        if (index == runestoneIndex)
        {
            LegendCard runestoneCard = legendCardDeck.getCard("RunestoneCard");
            witchFound = true;//REMOVE AFTER
            if (!legendCardDeck.isEasy && witchFound)
            {
                runestoneCard.ApplyEffect();
            }
            else if (legendCardDeck.isEasy)
            {
                runestoneCard.ApplyEffect();
            }
        }

        if (index == 0) // A
        {
            LegendCard A3 = legendCardDeck.getCard("A3");
            LegendCard A4 = legendCardDeck.getCard("A4");
            A3.ApplyEffect();
            A4.ApplyEffect();
        }

        if (index == 2) // C
        {
            LegendCard c1 = legendCardDeck.getCard("C1");
            LegendCard c2 = legendCardDeck.getCard("C2");
            c1.ApplyEffect();
            c2.ApplyEffect();
            tasks.Add("Tower Skrall", "- Kill the Tower Skral \n");
            UpdateTasks();
        }

        if (index == 6) // G
        {
            LegendCard g = legendCardDeck.getCard("G");
            g.ApplyEffect();
        }

        if (index == 13) // N
        {
            LegendCard n = legendCardDeck.getCard("N");
            n.ApplyEffect();
        }
    }
    // Start is called before the first frame update
    //void Start()
    //{
    //    currentLegend = 'A';
    //    LegendNumber = 1;
    //    easy = true;
    //    currentText.text = " A1:\n " +
    //        "Here’s a reminder before continuing to Legend 2:\n" +
    //        "A hero always chooses between two options: Move or fight.\n" +
    //        "Both cost time on the time track.Fighting costs 1 hour per battle round. Moving costs 1 hour per game board space.\n" +
    //        "If the hero does not want to move or fight, he can “pass:’ That will also cost him 1 hour.\n" +
    //        "The free actions:\n" +
    //        "• Activate a fog token\n" +
    //        "• Empty a well\n" +
    //        "• Pick up or deposit gold / gemstones or articles from or onto a space\n" +
    //        "• Trade or give gold/ gemstones or articles with or to another hero on the same space\n" +
    //        "• Use articles\n" +
    //        "• Buy articles or strength points from a merchant\n" +
    //        "None of these actions cost any hours on the time track.They can also be carried out when it isn’t the hero’s turn.\n" +
    //        "A hero cannot perform them, however, if he has already ended his day.\n" +
    //        "Now continue to Legend card A2.";
    //}

    void Start()
    {
        instance = this;
    }