/*
Veidoja: Viviana Kraukle-Veisa
Grupa:110
Darbs: RPG spele
Izmantotais Compiler: onlinegdb
using System;
*/
class Player
{
    public string Name;
    public int HP;
    public int MP;
    public int DMG;
    public int DEF;
    public string Status;

    public Player(string name, int hp, int mp, int dmg, int def)
    {
        Name = name;
        HP = hp;
        MP = mp;
        DMG = dmg;
        DEF = def;
        Status = "normal";
    }
}

class Magic
{
    public string Name;
    public int DMG;
    public int MPC;

    public Magic(string name, int dmg, int mpc)
    {
        Name = name;
        DMG = dmg;
        MPC = mpc;
    }
}

class Program
{
    static void Main()
    {
        Player meimei = new Player("meimei", 200, 60, 67, 50);
        Player vivien = new Player("vivien", 189, 60, 69, 49);

        Magic dashstrike = new Magic("dashstrike", 85, 20);

        vivienuzbrukums(vivien, meimei, dashstrike);

        Console.WriteLine(meimei.Name + ": HP " + meimei.HP + ", Mana " + meimei.MP);
        Console.WriteLine(vivien.Name + ": HP " + vivien.HP + ", Mana " + vivien.MP);
    }

    static void vivienuzbrukums(Player vivien, Player meimei, Magic dashstrike)
    {
        if (vivien.MP >= dashstrike.MPC)
        {
            int damage = dashstrike.DMG + vivien.DMG - meimei.DEF;

            if (damage < 0)
            {
                damage = 0;
            }

            meimei.HP -= damage;
            vivien.MP -= dashstrike.MPC;

            specialeffect(meimei);
        }
        else
        {
            Console.WriteLine("Nepietiek MP");
        }
    }

    static void specialeffect(Player meimei)
    {
        meimei.Status = "stun";
    }
}