Browse Source

Punctuation

master
Noëlle 4 years 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

koboldbody.html koboldbody.html
koboldstitle.png.kra~ koboldstitle.png.kra~
assets/koboldsinspace.png~ assets/koboldsinspace.png~
koboldstitle.png.kra-autosave.kra

+ 3
- 3
koboldgen.py View File

class Plot: class Plot:
loc1 = ["friendly","hostile","derelict","airless","poison-filled/covered","overgrown","looted","burning","frozen","haunted","infested"] 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"] 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 = [ prob = [
{ {
"id": 0, "id": 0,
self.mission = "" self.mission = ""
if self.oops == 12: if self.oops == 12:
self.mission += "...well, they weren't paying attention, so don't tell them, but they're supposed " 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.probIndex = r.randint(0, len(Plot.prob)-1)
self.problem = Plot.prob[self.probIndex] self.problem = Plot.prob[self.probIndex]
self.secProblem = None self.secProblem = None
f" The kobolds have been sent to {self.art} {self.params.loc_desc} {self.params.location}\n" f" The kobolds have been sent to {self.art} {self.params.loc_desc} {self.params.location}\n"
f" </span><br>\n" f" </span><br>\n"
f" <span id='missiontarget'>\n" f" <span id='missiontarget'>\n"
f" in order {self.params.mission}.\n"
f" in order {self.params.mission}\n"
f" </span>\n" f" </span>\n"
f"</div>\n" f"</div>\n"
f"<div id='theadversary' class='firstrow'>\n" f"<div id='theadversary' class='firstrow'>\n"

Loading…
Cancel
Save