Browse Source

Add uppercasing to builtin passwords

master
Noëlle 4 years ago
parent
commit
d4b1bb84d5
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      koboldgen.py

+ 3
- 3
koboldgen.py View File

if len(densePwd) != 84 and (densePwd not in ["PACKTACTICS!", "JUSTINBAILEY", "NARPASSWORD"]): if len(densePwd) != 84 and (densePwd not in ["PACKTACTICS!", "JUSTINBAILEY", "NARPASSWORD"]):
print("This password is not valid. If this is a password that this generator created, please email noelle@noelle.codes and let me know.") print("This password is not valid. If this is a password that this generator created, please email noelle@noelle.codes and let me know.")
sys.exit(0) sys.exit(0)
if densePwd[:12] == "PACKTACTICS!":
if densePwd[:12].upper() == "PACKTACTICS!" or densePwd[:12].upper() == "PACKTACTICS3":
# Create a campaign featuring the Season 3 Pack Tactics crew. # Create a campaign featuring the Season 3 Pack Tactics crew.
self.ship = Ship("Red", "Star", "is maneuverable & unarmored", "has a politician who thinks they're in charge of it") self.ship = Ship("Red", "Star", "is maneuverable & unarmored", "has a politician who thinks they're in charge of it")
self.params = Plot() self.params = Plot()
# self.print_params() # self.print_params()
# self.print_chars() # self.print_chars()
return return
elif densePwd[:12] == "JUSTINBAILEY":
elif densePwd[:12].upper() == "JUSTINBAILEY":
# Create a random campaign, but everyone's Gadget is a leotard that somehow is also an environment suit # Create a random campaign, but everyone's Gadget is a leotard that somehow is also an environment suit
self.create_campaign(n=6, makeChars=True) self.create_campaign(n=6, makeChars=True)
for c in self.characters: for c in self.characters:
# self.print_params() # self.print_params()
# self.print_chars() # self.print_chars()
return return
elif densePwd[:12] == "NARPASSWORD":
elif densePwd[:12].upper() == "NARPASSWORD":
# Create a random campaign, but all the kobolds' stats are set to 6 # Create a random campaign, but all the kobolds' stats are set to 6
self.create_campaign(n=6, makeChars=True) self.create_campaign(n=6, makeChars=True)
for c in self.characters: for c in self.characters:

Loading…
Cancel
Save