示例#1
0
        public Hero(string hname, int htype)
        {
            mapX = 1;
            mapY = 1;
            type = htype;
            mQueue = new List<Point>();
            delay = 0;
            name = hname;
            stats = new StatSystem();
            stats.SetBaseStat(StatType.Health, 23);
            stats.SetBaseStat(StatType.Vitality, 13);
            stats.SetBaseStat(StatType.Sanity, 8);
            stats.DrainStat(StatType.Health, 9);

            if ((HeroClasses)type == HeroClasses.Warrior)
            {
                chosenClass = new HeroClass("Warrior",
                                            new StatSystem(
                                                strength: 10,
                                                toughness: 5,
                                                health: 30,
                                                intellect: 3,
                                                perception: 5,
                                                sanity: 15,
                                                faith: 3,
                                                wisdom: 2,
                                                vitality: 20),
                                            new StatSystem(
                                                strength: 3,
                                                toughness: 2,
                                                health: 30,
                                                intellect: 3,
                                                perception: 5,
                                                sanity: 15,
                                                faith: 3,
                                                wisdom: 2,
                                                vitality: 20));
                chosenClass.AddPower(new Power(
                                                 name: "Rage",
                                                 aoePattern: new TargetPattern(),
                                                 cd: 30,
                                                 passive: true,
                                                 statEffect:
                                                            new StatSystem(
                                                            strength: 10,
                                                            toughness: 10,
                                                            health: 10,
                                                            intellect: -3,
                                                            perception: -1,
                                                            sanity: 0,
                                                            faith: 0,
                                                            wisdom: -2,
                                                            vitality: 0),
                                                  statCost:
                                                            new StatSystem(
                                                            strength: 0,
                                                            toughness: 0,
                                                            health: 0,
                                                            intellect: 0,
                                                            perception: 0,
                                                            sanity: 5,
                                                            faith: 0,
                                                            wisdom: 0,
                                                            vitality: 5),
                                                   dur: 5,
                                                   firingRange: 0),
                                       levelReq: 0);

            }
        }
示例#2
0
        public Hero(string hname, int htype)
        {
            mapX   = 1;
            mapY   = 1;
            type   = htype;
            mQueue = new List <Point>();
            delay  = 0;
            name   = hname;
            stats  = new StatSystem();
            stats.SetBaseStat(StatType.Health, 23);
            stats.SetBaseStat(StatType.Vitality, 13);
            stats.SetBaseStat(StatType.Sanity, 8);
            stats.DrainStat(StatType.Health, 9);

            if ((HeroClasses)type == HeroClasses.Warrior)
            {
                chosenClass = new HeroClass("Warrior",
                                            new StatSystem(
                                                strength: 10,
                                                toughness: 5,
                                                health: 30,
                                                intellect: 3,
                                                perception: 5,
                                                sanity: 15,
                                                faith: 3,
                                                wisdom: 2,
                                                vitality: 20),
                                            new StatSystem(
                                                strength: 3,
                                                toughness: 2,
                                                health: 30,
                                                intellect: 3,
                                                perception: 5,
                                                sanity: 15,
                                                faith: 3,
                                                wisdom: 2,
                                                vitality: 20));
                chosenClass.AddPower(new Power(
                                         name: "Rage",
                                         aoePattern: new TargetPattern(),
                                         cd: 30,
                                         passive: true,
                                         statEffect:
                                         new StatSystem(
                                             strength: 10,
                                             toughness: 10,
                                             health: 10,
                                             intellect: -3,
                                             perception: -1,
                                             sanity: 0,
                                             faith: 0,
                                             wisdom: -2,
                                             vitality: 0),
                                         statCost:
                                         new StatSystem(
                                             strength: 0,
                                             toughness: 0,
                                             health: 0,
                                             intellect: 0,
                                             perception: 0,
                                             sanity: 5,
                                             faith: 0,
                                             wisdom: 0,
                                             vitality: 5),
                                         dur: 5,
                                         firingRange: 0),
                                     levelReq: 0);
            }
        }