Browse Source

Punctuation

master
Noëlle 1 year ago
parent
commit
aff7fb99f8
2 changed files with 4 additions and 3 deletions
  1. 1
    0
      .gitignore
  2. 3
    3
      koboldgen.py

+ 1
- 0
.gitignore View File

@@ -5,3 +5,4 @@ koboldstitle.png-autosave.kra
koboldbody.html
koboldstitle.png.kra~
assets/koboldsinspace.png~
koboldstitle.png.kra-autosave.kra

+ 3
- 3
koboldgen.py View File

@@ -24,7 +24,7 @@ def gen_name(length=None, minimum=3, maximum=9):
class 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 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"]
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"]
prob = [
{
"id": 0,
@@ -113,7 +113,7 @@ class Plot:
self.mission = ""
if self.oops == 12:
self.mission += "...well, they weren't paying attention, so don't tell them, but they're supposed "
self.mission += Plot.miss[r.randint(0, len(Plot.miss)-1)]
self.mission += Plot.miss[r.randint(0, len(Plot.miss)-1)] + "!"
self.probIndex = r.randint(0, len(Plot.prob)-1)
self.problem = Plot.prob[self.probIndex]
self.secProblem = None
@@ -281,7 +281,7 @@ class Campaign:
f" The kobolds have been sent to {self.art} {self.params.loc_desc} {self.params.location}\n"
f" </span><br>\n"
f" <span id='missiontarget'>\n"
f" in order {self.params.mission}.\n"
f" in order {self.params.mission}\n"
f" </span>\n"
f"</div>\n"
f"<div id='theadversary' class='firstrow'>\n"

Loading…
Cancel
Save