Просмотр исходного кода

Add uppercasing to builtin passwords

master
Noëlle 4 лет назад
Родитель
Сommit
d4b1bb84d5
1 измененных файлов: 3 добавлений и 3 удалений
  1. 3
    3
      koboldgen.py

+ 3
- 3
koboldgen.py Просмотреть файл

@@ -455,7 +455,7 @@ class Campaign:
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.")
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.
self.ship = Ship("Red", "Star", "is maneuverable & unarmored", "has a politician who thinks they're in charge of it")
self.params = Plot()
@@ -469,7 +469,7 @@ class Campaign:
# self.print_params()
# self.print_chars()
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
self.create_campaign(n=6, makeChars=True)
for c in self.characters:
@@ -477,7 +477,7 @@ class Campaign:
# self.print_params()
# self.print_chars()
return
elif densePwd[:12] == "NARPASSWORD":
elif densePwd[:12].upper() == "NARPASSWORD":
# Create a random campaign, but all the kobolds' stats are set to 6
self.create_campaign(n=6, makeChars=True)
for c in self.characters:

Загрузка…
Отмена
Сохранить