|
|
|
|
|
|
|
|
{"id": 10, "name": "Cartographer"}, |
|
|
{"id": 10, "name": "Cartographer"}, |
|
|
{"id": 11, "name": "Inventor"}, |
|
|
{"id": 11, "name": "Inventor"}, |
|
|
{"id": 12, "name": "Merchant"}, |
|
|
{"id": 12, "name": "Merchant"}, |
|
|
|
|
|
{"id": 119, "name": "Bard"}, |
|
|
|
|
|
{"id": 120, "name": "Sorcerer"}, |
|
|
|
|
|
{"id": 121, "name": "Cleric"}, |
|
|
|
|
|
{"id": 122, "name": "Rogue"}, |
|
|
{"id": 123, "name": "Ranger"}, |
|
|
{"id": 123, "name": "Ranger"}, |
|
|
{"id": 124, "name": "Barbarian"}, |
|
|
{"id": 124, "name": "Barbarian"}, |
|
|
{"id": 125, "name": "Artificer"}, |
|
|
{"id": 125, "name": "Artificer"}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def decode_key(self, pw): |
|
|
def decode_key(self, pw): |
|
|
densePwd = pw.replace(" ", "") |
|
|
densePwd = pw.replace(" ", "") |
|
|
|
|
|
aBuiltin = densePwd[:12].upper() |
|
|
builtins = ["PACKTACTICS!", "JUSTINBAILEY", "NARPASSWORD", "PACKTACTICS1", "PACKTACTICS2", "PACKTACTICS3"] |
|
|
builtins = ["PACKTACTICS!", "JUSTINBAILEY", "NARPASSWORD", "PACKTACTICS1", "PACKTACTICS2", "PACKTACTICS3"] |
|
|
if len(densePwd) != 84 and (densePwd.upper() not in builtins): |
|
|
|
|
|
|
|
|
if len(densePwd) != 84 and (aBuiltin not in builtins): |
|
|
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].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() |
|
|
|
|
|
self.art = "an" if self.params.loc_desc[0] in ["a","e","i","o","u"] else "a" |
|
|
|
|
|
self.characters = [] |
|
|
|
|
|
self.characters.append(Character("Niwri", 123, [3, 4, 4, 3], 123)) |
|
|
|
|
|
self.characters.append(Character("Zax", 124, [1, 6, 2, 5], 124)) |
|
|
|
|
|
self.characters.append(Character("Chroma", 125, [4, 2, 5, 3], 125)) |
|
|
|
|
|
self.characters.append(Character("Zenosha", 126, [2, 3, 5, 2], 126)) |
|
|
|
|
|
self.characters.append(Character("Snax", 127, [3, 4, 6, 1], 127)) |
|
|
|
|
|
# self.print_params() |
|
|
|
|
|
# self.print_chars() |
|
|
|
|
|
return |
|
|
|
|
|
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: |
|
|
|
|
|
c.gadget = {"id":127, "name": "The Bailey", "description": "A form-fitting leotard that somehow protects the wearer from all environmental effects except extreme heat - including vacuum and poison.", "reusable": True} |
|
|
|
|
|
# self.print_params() |
|
|
|
|
|
# self.print_chars() |
|
|
|
|
|
return |
|
|
|
|
|
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: |
|
|
|
|
|
c.stats = [6,6,6,6] |
|
|
|
|
|
# self.print_params() |
|
|
|
|
|
# self.print_chars() |
|
|
|
|
|
return |
|
|
|
|
|
|
|
|
if aBuiltin in builtins: |
|
|
|
|
|
if aBuiltin == "PACKTACTICS!" or aBuiltin == "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() |
|
|
|
|
|
self.art = "an" if self.params.loc_desc[0] in ["a","e","i","o","u"] else "a" |
|
|
|
|
|
self.characters = [] |
|
|
|
|
|
self.characters.append(Character("Niwri", 123, [3, 4, 4, 3], 123)) |
|
|
|
|
|
self.characters.append(Character("Zax", 124, [1, 6, 2, 5], 124)) |
|
|
|
|
|
self.characters.append(Character("Chroma", 125, [4, 2, 5, 3], 125)) |
|
|
|
|
|
self.characters.append(Character("Zenosha", 126, [3, 4, 5, 2], 126)) |
|
|
|
|
|
self.characters.append(Character("Snax", 127, [3, 4, 6, 1], 127)) |
|
|
|
|
|
# self.print_params() |
|
|
|
|
|
# self.print_chars() |
|
|
|
|
|
return |
|
|
|
|
|
elif aBuiltin == "PACKTACTICS1": |
|
|
|
|
|
# Create a campaign featuring the Season 1 Pack Tactics crew. |
|
|
|
|
|
self.ship = Ship() |
|
|
|
|
|
self.params = Plot() |
|
|
|
|
|
self.art = "an" if self.params.loc_desc[0] in ["a","e","i","o","u"] else "a" |
|
|
|
|
|
self.characters = [] |
|
|
|
|
|
self.characters.append(Character("Daldain", 119, [3, 4, 5, 2], 114)) |
|
|
|
|
|
self.characters.append(Character("Gox", 124, [2, 5, 2, 5], 115)) |
|
|
|
|
|
self.characters.append(Character("Zeeli", 120, [4, 2, 5, 3], 116)) |
|
|
|
|
|
self.characters.append(Character("Sax", 122, [3, 3, 3, 3], 117)) |
|
|
|
|
|
# self.print_params() |
|
|
|
|
|
# self.print_chars() |
|
|
|
|
|
return |
|
|
|
|
|
elif aBuiltin == "PACKTACTICS2": |
|
|
|
|
|
# Create a campaign featuring the Season 2 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() |
|
|
|
|
|
self.art = "an" if self.params.loc_desc[0] in ["a","e","i","o","u"] else "a" |
|
|
|
|
|
self.characters = [] |
|
|
|
|
|
self.characters.append(Character("Daldain", 119, [4, 5, 5, 3], 118)) |
|
|
|
|
|
self.characters.append(Character("Gox", 124, [2, 6, 4, 5], 119)) |
|
|
|
|
|
self.characters.append(Character("Zeeli", 120, [3, 4, 6, 5], 120)) |
|
|
|
|
|
self.characters.append(Character("Marwyse", 121, [4, 4, 6, 3], 121)) |
|
|
|
|
|
self.characters.append(Character("Sax", 122, [5, 4, 4, 4], 122)) |
|
|
|
|
|
# self.print_params() |
|
|
|
|
|
# self.print_chars() |
|
|
|
|
|
return |
|
|
|
|
|
elif aBuiltin == "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: |
|
|
|
|
|
c.gadget = {"id":127, "name": "The Bailey", "description": "A form-fitting leotard that somehow protects the wearer from all environmental effects except extreme heat - including vacuum and poison.", "reusable": True} |
|
|
|
|
|
# self.print_params() |
|
|
|
|
|
# self.print_chars() |
|
|
|
|
|
return |
|
|
|
|
|
elif aBuiltin == "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: |
|
|
|
|
|
c.stats = [6,6,6,6] |
|
|
|
|
|
# self.print_params() |
|
|
|
|
|
# self.print_chars() |
|
|
|
|
|
return |
|
|
numPwd = [] |
|
|
numPwd = [] |
|
|
for c in densePwd: |
|
|
for c in densePwd: |
|
|
numPwd.append(Campaign.ALPHABET.index(c)) |
|
|
numPwd.append(Campaign.ALPHABET.index(c)) |