mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
- Added more progressive locations and associated items. - Added an option to enable materials/consumables/estus randomization, some players complain about the number of locations and the randomness of those items. - Added an option to add DLC Items and Locations to the pool, the player must own both the ASHES OF ARIANDEL and the RINGED CITY DLC. Co-authored-by: Br00ty <83629348+Br00ty@users.noreply.github.com> Co-authored-by: Friðberg Reynir Traustason <fridberg.traustason@gmail.com>
23 lines
736 B
Python
23 lines
736 B
Python
import sys
|
|
|
|
from BaseClasses import Location
|
|
from worlds.dark_souls_3.data.locations_data import location_tables, painted_world_table, dreg_heap_table, \
|
|
ringed_city_table
|
|
|
|
|
|
class DarkSouls3Location(Location):
|
|
game: str = "Dark Souls III"
|
|
|
|
@staticmethod
|
|
def get_name_to_id() -> dict:
|
|
base_id = 100000
|
|
table_offset = 100
|
|
|
|
output = {}
|
|
for i, table in enumerate(location_tables):
|
|
if len(table) > table_offset:
|
|
raise Exception("A location table has {} entries, that is more than {} entries (table #{})".format(len(table), table_offset, i))
|
|
output.update({name: id for id, name in enumerate(table, base_id + (table_offset * i))})
|
|
|
|
return output
|