示例#1
0
    public static Sprite GetSpellIcon(CHAMPION classID, int num)
    {
        if (classID == CHAMPION.PALADIN)
        {
            switch (num)
            {
            case 0: return(Resources.Load <Sprite>("SpellIcons/Paladin/WordOfKingsLight"));

            case 1: return(Resources.Load <Sprite>("SpellIcons/Paladin/WordOfKingsCourage"));

            case 2: return(Resources.Load <Sprite>("SpellIcons/Paladin/WordOfKingsFaith"));

            case 3: return(Resources.Load <Sprite>("SpellIcons/Paladin/WordOfKingsLoyalty"));

            case 4: return(Resources.Load <Sprite>("SpellIcons/Paladin/DivineIntervention"));
            }
        }
        else
        if (classID == CHAMPION.SHADOWMANCER)
        {
            switch (num)
            {
            case 0: return(Resources.Load <Sprite>("SpellIcons/Shadowmancer/SoothingVoid"));

            case 1: return(Resources.Load <Sprite>("SpellIcons/Shadowmancer/Shadowsurge"));

            case 2: return(Resources.Load <Sprite>("SpellIcons/Shadowmancer/TwilightBeam"));

            case 3: return(Resources.Load <Sprite>("SpellIcons/Shadowmancer/Shadowsong"));

            case 4: return(Resources.Load <Sprite>("SpellIcons/Shadowmancer/Sacrifice"));
            }
        }
        return(null);
    }
示例#2
0
    public static string GetSpellName(CHAMPION classID, int num)
    {
        if (classID == CHAMPION.PALADIN)
        {
            switch (num)
            {
            case 0: return("Word of Kings: Light");

            case 1: return("Word of Kings: Courage");

            case 2: return("Word of Kings: Faith");

            case 3: return("Word of Kings: Loyalty");

            case 4: return("Divine Intervention");
            }
        }
        else
        if (classID == CHAMPION.SHADOWMANCER)
        {
            switch (num)
            {
            case 0: return("Soothing Void");

            case 1: return("Shadowsurge");

            case 2: return("Twilight Beam");

            case 3: return("Shadowsong");

            case 4: return("Sacrifice");
            }
        }
        return("");
    }
示例#3
0
    public void InitMainScene()
    {
        ManaMax     = 500f + chosenAccount.statKNG * 40;
        ManaCurrent = ManaMax;

        buffSystem = new BuffHandler(GameObject.Find("GCDBar").transform.position);

        chosenAccount.RefreshStats();
        myBlackScreen = GameObject.Find("BlackScreen");
        mySpellIcon   = GameObject.Find("MySpellIcon");
        recount       = new Recount();
        myEnemy       = WorldMapCore.WMCore.adventureInfoHandler.GetEncounter(GameCore.Core.chosenAdventure, GameCore.difficulty);
        myEnemy.InitEncounter();

        chosenChampion = DescendantPanelCore.DPCore.pickedChampion;
        _mytip         = GameObject.Find("Tooltip");
        if (chosenAccount.myTalentTree != null)
        {
            myTree = chosenAccount.myTalentTree;
        }
        else
        {
            myTree = new TalentTree(chosenChampion);
            myTree.DefaultTree();
        }
        GameObject.Find("ChampionPortrait").GetComponent <Image>().sprite = Champion.GetPortrait(chosenChampion);

        myCaster = new Caster(myTree);

        InitSpells();
        InitItems();

        UpdateStats();
        ApplyAuras();
    }
示例#4
0
    public TalentTree(CHAMPION _classID)
    {
        classID = _classID;
        if (_classID == CHAMPION.PALADIN) // paladin
        {
            talents[0] = new Talent(0, "Hand of Light", this);
            talents[1] = new Talent(0, "Iron Faith", this);
            talents[2] = new Talent(0, "Spirit Bond", this);

            talents[3] = new Talent(1, "Aura of Light", this, 0, 1);
            talents[4] = new Talent(1, "Consecration", this, 2);

            talents[5] = new Talent(2, "Royalty", this, 3);
            talents[6] = new Talent(2, "Divinity", this, 4);

            talents[7] = new Talent(3, "Empathy", this, 6);
            talents[8] = new Talent(3, "Generousity", this, 5);

            talents[9]  = new Talent(4, "Modesty", this, 7);
            talents[10] = new Talent(4, "Visions of Ancient Kings", this, 8);
            talents[11] = new Talent(4, "Guidance of Raela", this, 8);

            talents[12] = new Talent(5, "Flash of Future", this, 9, 10, 11);
        }
        else
        if (_classID == CHAMPION.SHADOWMANCER)     // shadowmancer
        {
            talents[0] = new Talent(0, "Dusk", this);
            talents[1] = new Talent(0, "Dawn", this);
            talents[2] = new Talent(0, "Moonlight", this);

            talents[3] = new Talent(1, "Shadowforce", this, 0);
            talents[4] = new Talent(1, "Shadowmend", this, 1);
            talents[5] = new Talent(1, "Fading Light", this, 2);

            talents[6] = new Talent(2, "Dream", this, 3);
            talents[7] = new Talent(2, "Silence", this, 4);
            talents[8] = new Talent(2, "Peace", this, 5);

            talents[9]  = new Talent(3, "Awakening", this, 6, 7);
            talents[10] = new Talent(3, "Ascetic", this, 7, 8);

            talents[11] = new Talent(4, "Trauma", this, 9);
            talents[12] = new Talent(4, "Book of Prime Shadows", this, 10);
        }
        else
        {
            for (int i = 0; i < 13; i++)
            {
                talents[i] = new Talent(0, "filler", this);
            }
        }

        //PointsCap = GameCore.Core.chosenAccount.talentPoints;
    }
示例#5
0
    public static Sprite GetPortrait(CHAMPION classID)
    {
        switch (classID)
        {
        case CHAMPION.PALADIN: return(Resources.Load <Sprite>("SplashArts/paladin"));

        case CHAMPION.SHADOWMANCER: return(Resources.Load <Sprite>("SplashArts/shadowmancer"));

        default: return(Resources.Load <Sprite>(""));
        }
    }
示例#6
0
    public static string GetName(CHAMPION classID)
    {
        switch (classID)
        {
        case CHAMPION.PALADIN: return("Roderick <color=#ffff88>the Paladin</color>");

        case CHAMPION.SHADOWMANCER: return("Yamiran <color=#8800ff>the Shadowmancer</color>");

        default: return("NULL");
        }
    }
示例#7
0
    public static TalentTree SetTreeFromCode(string _code, CHAMPION _classID)
    {
        TalentTree _temp = null;

        string[] _parts = _code.Split('|');

        _temp = new TalentTree(_classID);

        for (int i = 0; i < 13; i++)
        {
            int.TryParse(_parts[i], out _temp.talents[i].Points);
        }

        return(_temp);
    }
示例#8
0
 public void PreviousChampion()
 {
     if (!UILoading)
     {
         pickedChampion -= 1;
         if (pickedChampion < (CHAMPION)1)
         {
             pickedChampion = (CHAMPION)1;
         }
         else
         {
             LoadUIContent();
         }
     }
     GameCore.chosenChampion = pickedChampion;
 }
示例#9
0
 public void NextChampion()
 {
     if (!UILoading)
     {
         pickedChampion += 1;
         if (pickedChampion > lastChampion)
         {
             pickedChampion = lastChampion;
         }
         else
         {
             LoadUIContent();
         }
     }
     GameCore.chosenChampion = pickedChampion;
 }
示例#10
0
    public static string GetDescription(CHAMPION classID)
    {
        switch (classID)
        {
        case CHAMPION.PALADIN: return("<color=#ff00ffff>Paladin Roderick</color>\nWhen the orcs first arrived in Azeroth and launched their initial attack on Stormwind Keep, Lothar aggressively advocated taking the battle to them." +
                                      "King Adamant Wrynn III shared Lothar's view and therefore pledged to rid his beloved land of the orcs. He died, however, before that pledge could ever be fulfilled, and was succeeded by his son, Llane Wrynn I." +
                                      "The new king continued his father's work, and the battles against the orcs raged on. During this time, the invaders were held back to the Swamp of Sorrows. " +
                                      "\n\nAt one point during the war, the Tome of Divinity, a book of great value to the Clerics of Northshire, was stolen by a rogue band of ogres, led by the ogre lord, Turok." +
                                      "Lothar led an expedition into the ogres' hideout, the Deadmines in Westfall, but were completely overrun and held captive to be killed slowly. " +
                                      "Lothar remained imprisoned within the caves for twenty months before he and his few surviving men were saved by Azerothian troops. He retrieved the Tome of Divinity and returned to Stormwind, safeguarding the book at Northshire Abbey. " +
                                      "Reintroduced to the war, Lothar continued leading the forces of Stormwind. ");

        case CHAMPION.SHADOWMANCER: return("<color=#5555ffff>Shadowmancer Yamiran</color>\nis really long sentence and I try to make it longer so i can check whether script is working or not.");

        default: return("");
        }
    }
示例#11
0
    public static string GetSpellDescription(CHAMPION classID, int num)
    {
        SpellRepository spellRepo = GameCore.Core.spellRepository;

        if (classID == CHAMPION.PALADIN)
        {
            switch (num)
            {
            case 0: return(spellRepo.Get(SPELL.WORD_OF_KINGS_LIGHT).GetSpellDescription());

            case 1: return(spellRepo.Get(SPELL.WORD_OF_KINGS_COURAGE).GetSpellDescription());

            case 2: return(spellRepo.Get(SPELL.WORD_OF_KINGS_FAITH).GetSpellDescription());

            case 3: return(spellRepo.Get(SPELL.WORD_OF_KINGS_LOYALTY).GetSpellDescription());

            case 4: return(spellRepo.Get(SPELL.DIVINE_INTERVENTION).GetSpellDescription());
            }
        }
        else
        if (classID == CHAMPION.SHADOWMANCER)
        {
            switch (num)
            {
            case 0: return(spellRepo.Get(SPELL.SOOTHING_VOID).GetSpellDescription());

            case 1: return(spellRepo.Get(SPELL.SHADOWSURGE).GetSpellDescription());

            case 2: return(spellRepo.Get(SPELL.TWILIGHT_BEAM).GetSpellDescription());

            case 3: return(spellRepo.Get(SPELL.SHADOWSONG).GetSpellDescription());

            case 4: return(spellRepo.Get(SPELL.SACRIFICE).GetSpellDescription());
            }
        }
        return("");
    }
示例#12
0
    // ------------
    // STATYCZNE //
    // ------------

    public static Spell[] GenerateSpellKit(CHAMPION classID, Caster _mycaster = null)
    {
        SPELL[] _myIDs = new SPELL[5];
        Spell[] _mykit = new Spell[5];

        switch (classID)
        {
        case CHAMPION.PALADIN:
        {
            _myIDs[0] = SPELL.WORD_OF_KINGS_LIGHT;
            _myIDs[1] = SPELL.WORD_OF_KINGS_COURAGE;
            _myIDs[2] = SPELL.WORD_OF_KINGS_FAITH;
            _myIDs[3] = SPELL.WORD_OF_KINGS_LOYALTY;
            _myIDs[4] = SPELL.DIVINE_INTERVENTION;
        }
        break;

        case CHAMPION.SHADOWMANCER:
        {
            _myIDs[0] = SPELL.SOOTHING_VOID;
            _myIDs[1] = SPELL.SHADOWSURGE;
            _myIDs[2] = SPELL.TWILIGHT_BEAM;
            _myIDs[3] = SPELL.SHADOWSONG;
            _myIDs[4] = SPELL.SACRIFICE;
        }
        break;
        }

        for (int i = 0; i < 5; i++)
        {
            _mykit[i] = new Spell(_myIDs[i]);
        }

        // , Spell.GetCooldown(_myIDs[i], _mycaster), Spell.GetIcon(_myIDs[i]), Spell.GetName(_myIDs[i]), Spell.GetManaCost(_myIDs[i])

        return(_mykit);
    }
示例#13
0
 public TalentTree GetTemplate(CHAMPION champ)
 {
     return(treeTemplate[(int)champ]);
 }