Skip to content

Commit

Permalink
Merge pull request ArchipelagoMW#13 from bigmalletman/patch-1
Browse files Browse the repository at this point in the history
Update __init__.py so characters case insensitive
  • Loading branch information
Rosalie-A authored Feb 9, 2023
2 parents 9b5c503 + 7bf1e31 commit 5a4e218
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions worlds/ff6wc/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,17 +95,17 @@ def create_location(self, name, id, parent, event=False):

def generate_early(self):
starting_characters = [
self.multiworld.StartingCharacter1[self.player].current_key,
self.multiworld.StartingCharacter2[self.player].current_key,
self.multiworld.StartingCharacter3[self.player].current_key,
self.multiworld.StartingCharacter4[self.player].current_key
(self.multiworld.StartingCharacter1[self.player].current_key).capitalize(),
(self.multiworld.StartingCharacter2[self.player].current_key).capitalize(),
(self.multiworld.StartingCharacter3[self.player].current_key).capitalize(),
(self.multiworld.StartingCharacter4[self.player].current_key).capitalize()
]
starting_characters = starting_characters[0:self.multiworld.StartingCharacterCount[self.player]]
starting_characters.sort(key=lambda character: character == "random_with_no_gogo_or_umaro")
starting_characters.sort(key=lambda character: character == "Random_with_no_gogo_or_umaro")

filtered_starting_characters = []
for character in starting_characters:
if character == "random_with_no_gogo_or_umaro":
if character == "Random_with_no_gogo_or_umaro":
character = random.choice(Rom.characters[:12])
while character in filtered_starting_characters:
character = random.choice(Rom.characters[:12])
Expand Down

0 comments on commit 5a4e218

Please sign in to comment.