示例#1
0
        public Dictionary <Attribute, int> RollAttibutes()
        {
            OriginalAttributes.Add(Attribute.Strength, DiceRoll.Roll(3, DiceType.D6));
            OriginalAttributes.Add(Attribute.Dexterity, DiceRoll.Roll(3, DiceType.D6));
            OriginalAttributes.Add(Attribute.Intelligence, DiceRoll.Roll(3, DiceType.D6));
            OriginalAttributes.Add(Attribute.Wisdom, DiceRoll.Roll(3, DiceType.D6));
            OriginalAttributes.Add(Attribute.Constitution, DiceRoll.Roll(3, DiceType.D6));
            OriginalAttributes.Add(Attribute.Charisma, DiceRoll.Roll(3, DiceType.D6));

            SetAmendedAttributesToOriginal();

            return(OriginalAttributes);
        }
示例#2
0
        public void SetClass(ClassType classType)
        {
            ClassType = classType;
            int hitPointBonus = AttributeBonuses.GetConstitution_HitPointBonus(OriginalAttributes[Attribute.Constitution]);

            switch (classType)
            {
            case ClassType.Fighter:
            {
                PrimeRequisite = Attribute.Strength;
                HitPoints      = Character.GetAdditionalHitPointsForNewLevel(DiceRoll.Roll(1, DiceType.D8), hitPointBonus);
                break;
            }

            case ClassType.Thief:
            {
                PrimeRequisite = Attribute.Dexterity;
                HitPoints      = Character.GetAdditionalHitPointsForNewLevel(DiceRoll.Roll(1, DiceType.D4), hitPointBonus);
                break;
            }

            case ClassType.MagicUser:
            {
                PrimeRequisite = Attribute.Intelligence;
                HitPoints      = Character.GetAdditionalHitPointsForNewLevel(DiceRoll.Roll(1, DiceType.D4), hitPointBonus);
                break;
            }

            case ClassType.Cleric:
            {
                PrimeRequisite = Attribute.Wisdom;
                HitPoints      = Character.GetAdditionalHitPointsForNewLevel(DiceRoll.Roll(1, DiceType.D6), hitPointBonus);
                break;
            }
            }
        }
示例#3
0
 public void LevelUpCharacter()
 {
     hitPoints += Character.GetAdditionalHitPointsForNewLevel(DiceRoll.Roll(1, DiceType.D6),
                                                              ConBonus_HitPointAdjustment);
 }
示例#4
0
 public void LevelUpCharacter(int newLevel)
 {
     hitPoints += Character.GetAdditionalHitPointsForNewLevel(DiceRoll.Roll(1, DiceType.D4),
                                                              ConBonus_HitPointAdjustment);
     SetThievesAbilities(newLevel);
 }