Exemplo n.º 1
0
    public static Potion Factory(string hero)
    {
        Potion potion = Potion.Factory();

        GameManager.instance.findHero(hero).heroInventory.AddItem(potion);
        return(potion);
    }
Exemplo n.º 2
0
    public static Potion Factory(int cellID)
    {
        Potion potion = Potion.Factory();

        potion.Cell = Cell.FromId(cellID);
        return(potion);
    }
Exemplo n.º 3
0
    public override void ApplyEffect()
    {
        Witch.Instance.Cell = Cell.FromId(Cell.Index);
        GameManager.instance.narrator.TriggerWitchCard();

        if (GameManager.instance.CurrentPlayer != GameManager.instance.MainHero)
        {
            return;
        }
        Token potion = Potion.Factory();

        GameManager.instance.CurrentPlayer.Cell.Inventory.AddItem(potion);
        //GameManager.instance.CurrentPlayer.heroInventory.AddItem(potion);
    }