capitalises unid scrolls
This commit is contained in:
parent
62a76ff191
commit
1319ed16e0
1 changed files with 26 additions and 26 deletions
|
|
@ -66,37 +66,37 @@ fn make_scroll_name(rng: &mut RandomNumberGenerator) -> (String, String) {
|
||||||
for i in 0..len {
|
for i in 0..len {
|
||||||
if i % 2 == 0 {
|
if i % 2 == 0 {
|
||||||
let char = match rng.roll_dice(1, 5) {
|
let char = match rng.roll_dice(1, 5) {
|
||||||
1 => "a",
|
1 => "A",
|
||||||
2 => "e",
|
2 => "E",
|
||||||
3 => "i",
|
3 => "I",
|
||||||
4 => "o",
|
4 => "O",
|
||||||
_ => "u",
|
_ => "U",
|
||||||
};
|
};
|
||||||
singular += char;
|
singular += char;
|
||||||
plural += char;
|
plural += char;
|
||||||
} else {
|
} else {
|
||||||
let char = match rng.roll_dice(1, 21) {
|
let char = match rng.roll_dice(1, 21) {
|
||||||
1 => "b",
|
1 => "B",
|
||||||
2 => "c",
|
2 => "C",
|
||||||
3 => "d",
|
3 => "D",
|
||||||
4 => "f",
|
4 => "F",
|
||||||
5 => "g",
|
5 => "G",
|
||||||
6 => "h",
|
6 => "H",
|
||||||
7 => "j",
|
7 => "J",
|
||||||
8 => "k",
|
8 => "K",
|
||||||
9 => "l",
|
9 => "L",
|
||||||
10 => "m",
|
10 => "M",
|
||||||
11 => "n",
|
11 => "N",
|
||||||
12 => "p",
|
12 => "P",
|
||||||
13 => "q",
|
13 => "Q",
|
||||||
14 => "r",
|
14 => "R",
|
||||||
15 => "s",
|
15 => "S",
|
||||||
16 => "t",
|
16 => "T",
|
||||||
17 => "v",
|
17 => "V",
|
||||||
18 => "w",
|
18 => "W",
|
||||||
19 => "x",
|
19 => "X",
|
||||||
20 => "y",
|
20 => "Y",
|
||||||
_ => "z",
|
_ => "Z",
|
||||||
};
|
};
|
||||||
singular += char;
|
singular += char;
|
||||||
plural += char;
|
plural += char;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue