review: replace i32 with Vec<i32> as roll return type for future exploding dice
This commit is contained in:
@@ -4,7 +4,7 @@ impl Handful {
|
||||
pub fn roll(self) -> Outcome {
|
||||
let mut die_rolls = Vec::<i32>::new();
|
||||
for die in self.dice {
|
||||
die_rolls.push(die.roll());
|
||||
die_rolls.append(&mut die.roll());
|
||||
}
|
||||
Outcome::List(die_rolls)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user