Skip to content

Commit 9a1f1fa

Browse files
authored
Merge pull request #2 from cjmang/gstla-settings-overhaul
Gstla settings overhaul
2 parents 88c6146 + 1b5d12e commit 9a1f1fa

File tree

7 files changed

+603
-214
lines changed

7 files changed

+603
-214
lines changed

worlds/gstla/Items.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def create_events(world: 'GSTLAWorld'):
7272
for event in events:
7373
event_item = create_item(event.name, world.player)
7474

75-
if event.location == LocationName.Lemurian_Ship_Engine_Room and world.options.starter_ship == 0:
75+
if event.location == LocationName.Lemurian_Ship_Engine_Room and world.options.lemurian_ship == 2:
7676
#world.multiworld.push_precollected(event_item)
7777
continue
7878

@@ -103,7 +103,7 @@ def create_items(world: 'GSTLAWorld', player: int):
103103
vanilla_item = items_by_id[loc.vanilla_contents]
104104

105105
#if vanilla ship logic than this should be Gabomba Statue Black Crystal location
106-
if world.options.starter_ship == 2 and vanilla_item.name == ItemName.Black_Crystal:
106+
if world.options.lemurian_ship == 0 and vanilla_item.name == ItemName.Black_Crystal:
107107
ap_item = create_item_direct(vanilla_item, player)
108108
ap_location = world.get_location(loc_names_by_id[loc.ap_id])
109109
ap_location.place_locked_item(ap_item)
@@ -119,7 +119,7 @@ def create_items(world: 'GSTLAWorld', player: int):
119119
sum_locations -= 1
120120

121121
# for item in unique_items + psyenergy_as_item_list + psyenergy_list:
122-
# if multiworld.starter_ship[player] != 2 and item.itemName == ItemName.Black_Crystal:
122+
# if multiworld.lemurian_ship[player] != 2 and item.itemName == ItemName.Black_Crystal:
123123
# continue
124124
#
125125
# ap_item = create_item(item.itemName, player)
@@ -130,7 +130,7 @@ def create_items(world: 'GSTLAWorld', player: int):
130130
sorted_item_list = sorted(djinn_items, key = lambda item: item.id)
131131
sorted_loc_list = sorted(location_type_to_data[LocationType.Djinn], key = lambda location: location.id)
132132

133-
if world.options.djinn_shuffle < 2:
133+
if world.options.shuffle_djinn > 0:
134134
world.random.shuffle(sorted_item_list)
135135
world.random.shuffle(sorted_loc_list)
136136

@@ -146,7 +146,7 @@ def create_items(world: 'GSTLAWorld', player: int):
146146
sorted_loc_list = sorted(location_type_to_data[LocationType.Character], key = lambda location: location.id)
147147
first_char_locked = False
148148

149-
if world.options.character_shuffle < 2:
149+
if world.options.shuffle_characters > 0:
150150
world.random.shuffle(sorted_item_list)
151151
world.random.shuffle(sorted_loc_list)
152152

@@ -155,7 +155,7 @@ def create_items(world: 'GSTLAWorld', player: int):
155155
sum_locations -= 1
156156

157157
# Vanilla
158-
if world.options.character_shuffle > 0:
158+
if world.options.shuffle_characters < 2:
159159
location = sorted_loc_list.pop(0)
160160
ap_loc = world.get_location(loc_names_by_id[location.ap_id])
161161

0 commit comments

Comments
 (0)