Пример #1
0
    void Start()
    {
        Attacker = null;
        if (lvl == 0)
        {
            lvl = 1;
        }
        BaseDmg = 1;
        switch (TypeName)
        {
        case Enemies.Plate:
            health       = 100;
            maxHealth    = health;
            physicalRes  = 3;
            baseMagicRes = 0;
            fireRes      = baseMagicRes;
            frostRes     = baseMagicRes;
            LightRes     = baseMagicRes;
            ShadowRes    = baseMagicRes;
            poisonRes    = baseMagicRes;
            break;

        case Enemies.Mail:
            health       = 85;
            maxHealth    = health;
            physicalRes  = 2;
            baseMagicRes = 1;
            fireRes      = baseMagicRes;
            frostRes     = baseMagicRes;
            LightRes     = baseMagicRes;
            ShadowRes    = baseMagicRes;
            poisonRes    = baseMagicRes;
            break;

        case Enemies.Leather:
            health       = 70;
            maxHealth    = health;
            physicalRes  = 1;
            baseMagicRes = 2;
            fireRes      = baseMagicRes;
            frostRes     = baseMagicRes;
            LightRes     = baseMagicRes;
            ShadowRes    = baseMagicRes;
            poisonRes    = baseMagicRes;
            break;

        case Enemies.Cloth:
            health       = 65;
            maxHealth    = health;
            physicalRes  = 0;
            baseMagicRes = 3;
            fireRes      = baseMagicRes;
            frostRes     = baseMagicRes;
            LightRes     = baseMagicRes;
            ShadowRes    = baseMagicRes;
            poisonRes    = baseMagicRes;
            break;
        }
        tokenManager.Adder(this.gameObject);
    }
Пример #2
0
    void Start()
    {
        tokenManager = GameObject.FindGameObjectWithTag("TokenManager").GetComponent <TokenManager>();
        Attacker     = null;
        if (lvl == 0)
        {
            lvl = 1;
        }
        BaseDmg = 1;
        switch (TypeName)
        {
        case Enemies.Plate:
            health       = 60;
            maxHealth    = health;
            physicalRes  = 3;
            baseMagicRes = 0;
            fireRes      = baseMagicRes;
            frostRes     = baseMagicRes;
            LightRes     = baseMagicRes;
            ShadowRes    = baseMagicRes;
            poisonRes    = baseMagicRes;
            break;

        case Enemies.Mail:
            health       = 45;
            maxHealth    = health;
            physicalRes  = 2;
            baseMagicRes = 1;
            fireRes      = baseMagicRes;
            frostRes     = baseMagicRes;
            LightRes     = baseMagicRes;
            ShadowRes    = baseMagicRes;
            poisonRes    = baseMagicRes;
            break;

        case Enemies.Leather:
            health       = 30;
            maxHealth    = health;
            physicalRes  = 1;
            baseMagicRes = 2;
            fireRes      = baseMagicRes;
            frostRes     = baseMagicRes;
            LightRes     = baseMagicRes;
            ShadowRes    = baseMagicRes;
            poisonRes    = baseMagicRes;
            break;

        case Enemies.Cloth:
            health       = 20;
            maxHealth    = health;
            physicalRes  = 0;
            baseMagicRes = 3;
            fireRes      = baseMagicRes;
            frostRes     = baseMagicRes;
            LightRes     = baseMagicRes;
            ShadowRes    = baseMagicRes;
            poisonRes    = baseMagicRes;
            break;

        case Enemies.Jailer:
            health       = 1000;
            maxHealth    = health;
            physicalRes  = 2;
            baseMagicRes = 2;
            fireRes      = baseMagicRes;
            frostRes     = baseMagicRes;
            LightRes     = baseMagicRes;
            ShadowRes    = baseMagicRes;
            poisonRes    = baseMagicRes;
            break;
        }
        tokenManager.Adder(this.gameObject);
    }