ABM_creator.Wand.findIconName C# (CSharp) Метод

findIconName() защищенный Метод

protected findIconName ( int spellId, CNWSpell spell, int spellLevel ) : string
spellId int
spell CNWSpell
spellLevel int
Результат string
        protected override string findIconName(int spellId, CNWSpell spell, int spellLevel)
        {
            switch (spellId)
            {
                case 32:
                case 33:
                case 1021:
                    return "it_wm_wandcureLwound";

                case 34:
                case 35:
                case 1020:
                    return "it_wm_wandcureCwound";

                case 10:
                case 58:
                case 59:
                case 61:
                case 191:
                case 461:
                case 518:
                case 542:
                case 851:
                case 1099:
                case 1208:
                case 1055: return "it_wm_wandfire";

                case 25:
                case 144:
                    return "it_wm_rodfrost";

                case 165:
                case 855:
                    return "it_wm_wandsleep";

                case 100:
                case 419:
                    return "it_wm_rodthundlight";

                case 107:
                case 447:
                    return "it_wm_wandmagicmis";
                
                case 11:
                case 101:
                case 847:
                case 1162:
                case 1198:
                case 1207:
                    return "it_wm_wandlightning";
            }

            switch (spell.GetSpellSchoolString().CStr())
            {
                case "A": return "it_wm_rodreversal";
                case "C": return "it_wm_wandsummon";
                case "D": return "it_wm_wandlesssummon";
                case "E": return "it_wm_rodbeguile";
                case "I": return "it_wm_rodwonder";
                case "N": return "it_wm_wanddisjunct";
                case "T": return "it_wm_wandnegenergy";
                case "V": return "it_wd_qstaff05";
                case "G": return "it_wm_wandstinkcloud";
            }

            return null;
        }
    }