-
Notifications
You must be signed in to change notification settings - Fork 18
/
dungeon_name_test.py
executable file
·49 lines (47 loc) · 1.08 KB
/
dungeon_name_test.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#!/usr/bin/env python
import random
import sys
import ruins
import namegenerator
print
for x in xrange(50):
n = namegenerator.namegenerator(random.randint(0, 39))
o = n.genroyalname()
if o.endswith("s"):
os = o + "'"
else:
os = o + "'s"
print random.choice([
ruins.Blank.nameDungeon().format(
owner=o,
owners=os
),
ruins.RuinedFane.nameDungeon().format(
owner=o,
owners=os
),
ruins.StepPyramid.nameDungeon().format(
owner=o,
owners=os
),
ruins.Barrow.nameDungeon().format(
owner=o,
owners=os
),
ruins.EvilRunestones.nameDungeon().format(
owner=o,
owners=os
),
ruins.Oasis.nameDungeon().format(
owner=o,
owners=os
),
ruins.SquareTower.nameDungeon().format(
owner=o,
owners=os
),
ruins.MazeEntrance.nameDungeon().format(
owner=o,
owners=os
),
])