Compare commits

..

No commits in common. "0e48545f2c1615242311716565a56839ffea6dc4" and "1e2918db8fc54b57cb3cfe6473e7ebce021935c0" have entirely different histories.

3 changed files with 2 additions and 2 deletions

1
.gitignore vendored
View File

@ -62,3 +62,4 @@ Desktop.ini
.Spotlight-V100
.Trashes
._*
result

View File

@ -38,7 +38,7 @@ impl From<Roll> for RollResult {
let all_main_dice: Vec<u8> = if value.advantage == Advantage::None {
vec![roll_main_dice()]
} else {
(0..value.mastery).map(|_| roll_mastery_dice()).collect()
(0..2).map(|_| roll_mastery_dice()).collect()
};
let mastery: Vec<u8> = std::iter::repeat_with(roll_mastery_dice)
.take(value.mastery.into())

View File

@ -8,7 +8,6 @@ impl Success {
pub fn new(main_dice: u8, result: u8, sr: u8, mastery: &[u8]) -> Self {
let success_level = SuccessLevel::from(mastery);
match main_dice {
0 => Self::Failure,
11 => Self::Success(success_level),
_ => {
if result >= sr {