mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
* Update items_data.py added `Red and White Round Shield`, `Crystal Scroll`, `Magic Stoneplate Ring`, and `Outrider Knight` gear. * Update locations_data.py Added `US: Red and White Round Shield`, `CKG: Magic Stoneplate Ring`, `GA: Outrider Knight` set, and `GA: Crystal Scroll` * Update __init__.py Add `Karla's Ashes` requirements * Update items_data.py Add `Irithyll Rapier, Hollow's Ashes, Irina's Ashes, Karla's Ashes, Cornyx's Ashes, and Orbeck's Ashes` * Update locations_data.py Add `Irithyll Rapier, Hollow's Ashes, Irina's Ashes, Karla's Ashes, Orbeck's Ashes, and Cornyx's Ashes` * Update items_data.py removed "hollows ashes" * Update locations_data.py remove "hollows ashes" * DS3: Increment data_version * DS3: Fix item name in rule * DS3: Set required client version to 0.3.6 and added offsets between items and location tables for backward compatibility * DS3: Resolve Python 3.8 compatibility * DS3: Removed useless region for locations IDs consistency * DS3: Changed i in loop Co-authored-by: Br00ty <83629348+Br00ty@users.noreply.github.com>
18 lines
474 B
Python
18 lines
474 B
Python
from BaseClasses import Location
|
|
from worlds.dark_souls_3.data.locations_data import location_tables
|
|
|
|
|
|
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):
|
|
output.update({name: id for id, name in enumerate(table, base_id + (table_offset * i))})
|
|
|
|
return output
|