Browse Source

Rework names

master
Noëlle 4 years ago
parent
commit
9287dd06de
1 changed files with 10 additions and 7 deletions
  1. 10
    7
      koboldgen.py

+ 10
- 7
koboldgen.py View File

lgt = r.randint(3,9) lgt = r.randint(3,9)
else: else:
lgt = n lgt = n
nm = ""
while len(nm) < lgt:
if nm == "":
morae = []
while len("".join(morae)) < lgt:
if len(morae) == 0:
mora = r.choice(beg) mora = r.choice(beg)
nm += mora[0].upper() + mora[1:]
morae.append(mora[0].upper() + mora[1:])
else: 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): def gen_stats(n):
name1 = ["Red","Orange","Yellow","Green","Blue","Violet","Dark","Light","Frenzied","Maniacal","Ancient"] 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"] 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"] 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)] return [r.choice(name1), r.choice(name2), r.choice(prop1), r.choice(prop2)]


class Character: class Character:

Loading…
Cancel
Save