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; * * } * * }*/ }
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); } } }
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; } }
public void addHealthAfterFirstLevel(AbstractRaces model) { model.Health += ThrowDice.ThrowDiceFromHealthDice(healthDice); model.recoveryHealth(); }