コード例 #1
0
        public HumanWizard(string name)
        {
            Name = name;

            // Wizard Stats
            BaseAttackDamage -= 2;
            Intelligence     += 11;
            Strength         += 4;
            Dexterity        += 4;
            Defence          -= 2;

            SpellPoints = 10;
            Class       = "Wizard";
            ClassSpells.Add(new Spell("Magic Missile", "Ranged shots", 6, 3, 0, "Intelligence", 40, "You shoot a missile and it ", "An entry level combat spell that allows a user to shoot from a distance and deal good damage."));

            return;
        }
コード例 #2
0
        public override void LevelUp()
        {
            var choices = Constants.WizardSpells.Where(spell => spell.Level == Level).ToList();

            Interface.BasicInterfaceDelegate(this, LineHelpers.PrintLine, "Choose a new spell for this level: ");

            Spell choice;

            do
            {
                choice = ListHelpers.PrintListGetItem(choices, PrintTypes.SpellsInformation) as Spell;
            }while (choice == null);

            ClassSpells.Add(choice);

            // Wizard Level UP stats
            Intelligence += 2;
            Constitution += 5;
        }
コード例 #3
0
ファイル: Dwarf.cs プロジェクト: Killian264/Text-RPG
 public Dwarf(SaveModel player, Dwarf that)
 {
     new Player(player, that);
     Type = "Dwarf";
     ClassSpells.Add(new Spell("Shield Bash", "Blunt Attack", 6, 0, 0, "Dexterity", 100, "You slam your dwarven shield into the enemy and it ", "A simple attack every Dwarf learns in school to quickly push back and enemy and deal damage."));
 }
コード例 #4
0
ファイル: Elf.cs プロジェクト: Killian264/Text-RPG
 public Elf(SaveModel player, Elf that)
 {
     new Player(player, that);
     Type = "Elf";
     ClassSpells.Add(new Spell("Quick Stab", "Stabbing", 6, 0, 0, "Strength", 100, "You extend your arm as fast as a snake would attack and lunge at the enemy and you ", "A simple attack that allows you to get a quick blow out of an unsuspecting enemy."));
 }
コード例 #5
0
 public Human(SaveModel player, Human that)
 {
     new Player(player, that);
     Type = "Human";
     ClassSpells.Add(new Spell("Penetrating Attack", "Stabbing", 10, 0, 0, "Strength", 100, "You lunge forward and slam down your sword into the enemy and ", "A simple attack meant to deal damage regardless of the armor level of the enemy."));
 }