|
|
@@ -9,14 +9,17 @@ def gen_name(n=None): |
|
|
|
lgt = r.randint(3,9) |
|
|
|
else: |
|
|
|
lgt = n |
|
|
|
nm = "" |
|
|
|
while len(nm) < lgt: |
|
|
|
if nm == "": |
|
|
|
morae = [] |
|
|
|
while len("".join(morae)) < lgt: |
|
|
|
if len(morae) == 0: |
|
|
|
mora = r.choice(beg) |
|
|
|
nm += mora[0].upper() + mora[1:] |
|
|
|
morae.append(mora[0].upper() + mora[1:]) |
|
|
|
else: |
|
|
|
nm += r.choice(mid) |
|
|
|
return nm |
|
|
|
mora = r.choice(mid) |
|
|
|
if morae[-1] == mora: |
|
|
|
mora = r.choice(mid) |
|
|
|
morae.append(mora) |
|
|
|
return "".join(morae) |
|
|
|
|
|
|
|
|
|
|
|
def gen_stats(n): |
|
|
@@ -67,7 +70,7 @@ def gen_transpo(): |
|
|
|
name1 = ["Red","Orange","Yellow","Green","Blue","Violet","Dark","Light","Frenzied","Maniacal","Ancient"] |
|
|
|
name2 = ["Moon","Comet","Star","Saber","World-Eater","Dancer","Looter","Phlogiston","Fireball","Mecha","Raptor"] |
|
|
|
prop1 = ["is stealthy & unarmored","is speedy & unarmored","is maneuverable & unarmored","is always repairable","is self-repairing","is flamboyant & speedy","is slow & armored","is flamboyant & armored","is hard to maneuver & armored","has Too Many Weapons!","has a prototype hyperdrive"] |
|
|
|
prop2 = ["has an annoying AI","has inconveniently crossed circuits","has an unpredictable power source","drifts to the right","is haunted","was recently 'found'","is too cold","has a constant odd smell","its interior design... changes","its water pressure shifts between slow drip and power wash","it leaves a visible smoke trail"] |
|
|
|
prop2 = ["has an annoying AI","has inconveniently crossed circuits","has an unpredictable power source","drifts to the right","is haunted","was recently 'found' so the kobolds are unused to it","is too cold","has a constant odd smell","its interior design... changes","its water pressure shifts between slow drip and power wash","it leaves a visible smoke trail"] |
|
|
|
return [r.choice(name1), r.choice(name2), r.choice(prop1), r.choice(prop2)] |
|
|
|
|
|
|
|
class Character: |