예제 #1
0
파일: ThrowDice.cs 프로젝트: DeadinRed/DnD
        public static int ThrowDiceWithInsp(AbstractRaces abstractRace, int idStng)
        {
            int result;

            return(0);

            /*
             * if (abstractRace.Inspiration > 0)
             * {
             *  switch (idStng){
             *
             *      case 1:
             *          abstractRace.Inspiration--;
             *          Console.WriteLine("Inspiration was used");
             *          result = ThrowOneDTwenty() + ThrowOneDSix();
             *          return result;
             *          break;
             *      case 2:
             *          abstractRace.Inspiration--;
             *          result = ThrowOneDTwenty();
             *          break;
             *
             *  }
             *
             * }*/
        }
예제 #2
0
 public void firstLevel(AbstractRaces model)
 {
     model.Health = (healthDice + model.Mod_constitution + model.Mod_dexterity);
     if (ArrOfSavingThrows != null)
     {
         foreach (string tmp in ArrOfSavingThrows)
         {
             model.addSavingThrow(tmp);
         }
     }
 }
예제 #3
0
        public void lvlUp(AbstractRaces model)
        {
            level = ++level;
            switch (level)
            {
            case 1:
                firstLevel(model);
                break;

            case 2:
                addHealthAfterFirstLevel(model);
                break;

            case 3:
                addHealthAfterFirstLevel(model);
                break;

            case 4:
                addHealthAfterFirstLevel(model);
                break;

            case 5:
                addHealthAfterFirstLevel(model);
                break;

            case 6:
                addHealthAfterFirstLevel(model);
                break;

            case 7:
                addHealthAfterFirstLevel(model);
                break;

            case 8:
                addHealthAfterFirstLevel(model);
                break;

            case 9:
                addHealthAfterFirstLevel(model);
                break;

            case 10:
                addHealthAfterFirstLevel(model);
                break;

            default:

                break;
            }
        }
예제 #4
0
 public void addHealthAfterFirstLevel(AbstractRaces model)
 {
     model.Health += ThrowDice.ThrowDiceFromHealthDice(healthDice);
     model.recoveryHealth();
 }