Example #1
0
    public static void ActionSelect(Creature p, List <Monster> monster)
    {
        DrawOpponent(p, monster);
        Console.WriteLine("------------------------------------------------------------------------------------------------------------------------");
        Console.WriteLine("\n\n\n\n\n\n\n\n\n\n\n\n\n");
        Console.WriteLine($"\t\t{Colour.HEALTH}{ p.health}{Colour.RESET}/{Colour.HEALTH}{ p.maxHealth}\t\t\t\t\t{Colour.ENERGY}{p.energy}{Colour.RESET}/{Colour.ENERGY}{p.maxEnergy}\t\t\t\t{Colour.ABILITY}{ p.magic}{Colour.RESET}");
        Console.WriteLine("------------------------------------------------------------------------------------------------------------------------");
        Utilities.ActionText("[1]Attack", "[2]Defend", Player.currentAttackOptions[0]);
        Utilities.ActionText(Player.currentAttackOptions[1], Player.currentAttackOptions[2], Player.currentAttackOptions[3]);
        Utilities.ActionText("[H]eal", "[C]haracter", "\n");
        string a = "", b = "", c = "", d = "";

        if (p.shield > 0)
        {
            a = "SHIELDED\t";
        }
        if (p.bleed > 0)
        {
            b = "BLEEDING\t";
        }
        if (p.burning > 0)
        {
            c = "BURNING\t";
        }
        if (p.defending == true)
        {
            d = "DEFENDING";
        }
        Console.Write(Colour.SHIELD + a + Colour.BLOOD + b + Colour.BURNING + c + Colour.MITIGATION + d + Colour.RESET);
    }