Noëlle преди 4 години
родител
ревизия
16c18eef51
променени са 1 файла, в които са добавени 12 реда и са изтрити 12 реда
  1. 12
    12
      koboldgen.py

+ 12
- 12
koboldgen.py Целия файл

@@ -43,10 +43,10 @@ def gen_career():
return r.choice(["Soldier/Guard","Pilot","Medic","Mechanic","Politician","Spellcaster","Performer","Historian","Spy","Cook","Cartographer"])

def gen_plot():
loc1 = ["Friendly","Hostile","Derelict","Airless","Poison-filled/covered","Overgrown","Looted","Burning","Frozen","Haunted","Infested"]
loc2 = ["Asteroid","Moon","Space Station","Spaceship","Ringworld","Dyson Sphere","Planet","Space Whale","Pocket of Folded Space","Time Vortex","Reroll"]
miss = ["To explore!","To loot everything not bolted down too securely","To find the last group of kobolds who came here","To find a rumored secret weapon","To find a way to break someone else’s secret weapon","To claim this [location] in the name of the Kobold Empire!","To make friends!","To rediscover lost technology","To find lost magical items","To find and defeat a powerful enemy","Reroll"]
prob = ["Army of undead","Rival band of kobolds","Detachment from the Elf Armada","Refugees with parasites. Big parasites","Artificial Intelligence bent on multi-world domination","Robot spiders!","Semi-intelligent metal eating slime","A living asteroid that intends to follow the kobolds home like the largest puppy","Old lich that wants everyone to stay off of their “lawn”","Elder gods hailing from the dark spaces between the stars","Reroll"]
loc1 = ["a friendly","a hostile","a derelict","an airless","a poison-filled/covered","an overgrown","a looted","a burning","a frozen","a haunted","an infested"]
loc2 = ["asteroid","moon","space station","spaceship","ringworld","Dyson sphere","planet","Space Whale","pocket of folded space","time vortex","Reroll"]
miss = ["to explore!","to loot everything not bolted down too securely","to find the last group of kobolds who came here","to find a rumored secret weapon","to find a way to break someone else’s secret weapon","to claim this place in the name of the Kobold Empire!","to make friends!","to rediscover lost technology","to find lost magical items","to find and defeat a powerful enemy","Reroll"]
prob = ["an army of undead","a rival band of kobolds","a detachment from the Elf Armada","refugees with parasites. Big parasites","an artificial intelligence bent on multi-world domination","robot spiders","semi-intelligent metal eating slime","a living asteroid that intends to follow the kobolds home like the largest puppy","an old lich that wants everyone to stay off of their “lawn”","elder gods hailing from the dark spaces between the stars","Reroll"]
cl1 = r.choice(loc1)
cl2 = r.choice(loc2)
cm = r.choice(miss)
@@ -54,20 +54,20 @@ def gen_plot():
if cl2 == "Reroll":
cl2p = r.choice(loc2[:-1])
if cl2p == "Asteroid":
cl2 = "Battlefield on an Asteroid"
cl2 = "battlefield on an asteroid"
else:
cl2 = "Battlefield on a " + cl2p
cl2 = "battlefield on a " + cl2p
if cm == "Reroll":
cm = "The kobolds weren't paying attention, so don't tell them, but they're supposed to " + r.choice(miss[:-1])
cm = "to ...well, the kobolds weren't paying attention, so don't tell them, but they're supposed to " + r.choice(miss[:-1])
if cp == "Reroll":
cp = "A Floating Brain Monster and its servitor " + r.choice(prob[:-1])
cp = "a Floating Brain Monster and its minion, " + r.choice(prob[:-1])
return [cl1, cl2, cm, cp]

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 = ["Stealthy & unarmored","Speedy & unarmored","Maneuverable & unarmored","Always repairable","Self-Repairing","Flamboyant & speedy","Slow & armored","Flamboyant & armored","Hard to maneuver & armored","Too Many Weapons!","Prototype hyperdrive"]
prop2 = ["Annoying AI","Inconveniently crossed circuits","Unpredictable power source","Drifts to the right","Haunted","Recently 'found'","Too cold","Constant odd smell","Interior design … changes","Water pressure shifts between slow drip and power wash","Leaves visible smoke trail"]
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"]
return [r.choice(name1), r.choice(name2), r.choice(prop1), r.choice(prop2)]

class Character:
@@ -110,10 +110,10 @@ if __name__ == "__main__":
art = "an" if parameters[1] == "Asteroid" else "a"
print(f"The Kobolds of the {ship[0]} {ship[1]}")
print(f"have been sent out to {art} {parameters[0]} {parameters[1]}")
print(f"{parameters[2]}")
print(f"in order {parameters[2]}")
print(f"but they're challenged by {parameters[3]}!")
print()
print(f"The {ship[0]} {ship[1]} has the qualities [{ship[2]}] and [{ship[3]}].")
print(f"The {ship[0]} {ship[1]} {ship[2]}, but {ship[3]}.")
print()
print("The kobolds:")
for k in cs:

Loading…
Отказ
Запис