Browse Source

More CSS

master
Noëlle 4 years ago
parent
commit
b0b343378a
2 changed files with 8 additions and 4 deletions
  1. 4
    4
      assets/kobold.css
  2. 4
    0
      koboldgen.py

+ 4
- 4
assets/kobold.css View File

} }


#theship::before { #theship::before {
content: "<span class='head'>The Ship</span>";
content: "";
} }


#themission { #themission {
} }


#themission::before { #themission::before {
content: "<span class='head'>The Mission</span>";
content: "";
} }


#theadversary { #theadversary {
} }


#theadversary::before { #theadversary::before {
content: "<span class='head'>The Adversary</span>";
content: "";
} }


#thekobolds { #thekobolds {
} }


#thekobolds::before { #thekobolds::before {
content: "<span class='head'>The Kobolds</span>";
content: "";
} }


.kobold { .kobold {

+ 4
- 0
koboldgen.py View File

if html: if html:
out = ( out = (
f"<div id='theship' class='firstrow'>\n" f"<div id='theship' class='firstrow'>\n"
f" <span class='head'>The Ship</span>\n"
f" <span id='shipname'>\n" f" <span id='shipname'>\n"
f" The {self.ship.fullname}!\n" f" The {self.ship.fullname}!\n"
f" </span>\n" f" </span>\n"
f" </span>\n" f" </span>\n"
f"</div>\n" f"</div>\n"
f"<div id='themission' class='firstrow'>\n" f"<div id='themission' class='firstrow'>\n"
f" <span class='head'>The Mission</span>\n"
f" <span id='missionloc'>\n" f" <span id='missionloc'>\n"
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>\n" f" </span>\n"
f"</div>\n" f"</div>\n"
f"<div id='theadversary' class='firstrow'>\n" f"<div id='theadversary' class='firstrow'>\n"
f" <span class='head'>The Adversary</span>\n"
f" They're challenged by <span id='advname'>{self.params.fullProblem}</span>!\n" f" They're challenged by <span id='advname'>{self.params.fullProblem}</span>!\n"
f" <br>\n" f" <br>\n"
f" <span id='problemstats'>\n" f" <span id='problemstats'>\n"
def print_chars(self, html=False): def print_chars(self, html=False):
if html: if html:
print(f"<div id='thekobolds'>\n") print(f"<div id='thekobolds'>\n")
print(f"<span class='head'>The Kobolds</span>\n")
else: else:
print("The kobolds:") print("The kobolds:")
for k in self.characters: for k in self.characters:

Loading…
Cancel
Save