Ejemplo n.º 1
0
    string GetAbilityDescription(int slot)
    {
        int    id   = pinfo.GetAbilityID(slot);
        string desc = "";

        //Debug.Log("SLOT" + slot+"ID"+id);
        switch (id)
        {
        case 1:     //frenzy
            Frenzy frenzy = (Frenzy)pinfo.abilities[slot];
            frenzy.CalculateMult();
            desc = frenzy.GetDescription();
            break;

        case 2:     //rage
            Rage rage = (Rage)pinfo.abilities[slot];
            rage.CalculateMult();
            desc = rage.GetDescription();
            break;


        case 3:     //Mine
            Mine mine = (Mine)pinfo.abilities[slot];
            mine.CalculateDamage();
            desc = mine.GetDescription();
            break;

        case 4:     //Mine
            Fireball fireball = (Fireball)pinfo.abilities[slot];
            fireball.CalculateDamage();
            desc = fireball.GetDescription();
            break;
        }
        return(desc);
    }
Ejemplo n.º 2
0
    public void DoSome(string button)
    {
        lastClicked = button;

        switch (button)
        {
        case "ResetChoises": ResetAll(); break;

        case "Long Sword":
            SetWeaponDescription(button, "3.2", "2", null); break;

        case "Dagger":
            SetWeaponDescription(button, "1.6", "1", null); break;

        case "Throwing Knifes":
            SetWeaponDescription(button, "0.8", "1", "3"); break;

        case "Javelin":
            SetWeaponDescription(button, "2.4", "2.1", "4"); break;

        case "Bow":
            SetWeaponDescription(button, "1.25", "1.8", "5"); break;

        case "Unarmed":
            SetWeaponDescription(button, "0.8", "0.5", null); break;

        case "Frenzy":
            descHeader.text = button; Frenzy frenzy = new Frenzy();
            descText.text   = frenzy.GetDescription();
            break;

        case "Rage":
            descHeader.text = button; Rage rage = new Rage();
            descText.text   = rage.GetDescription();
            break;

        case "Magical Mine":
            descHeader.text = button; Mine mine = new Mine();
            descText.text   = mine.GetDescription();
            break;

        case "Fireball":
            descHeader.text = button; Fireball fireball = new Fireball();
            descText.text   = fireball.GetDescription();
            break;
        }
    }