Docs: Reword 'could be generated from json' to avoid encouraging slow world loads (#5960)

This commit is contained in:
Ixrec
2026-03-10 19:49:47 +00:00
committed by GitHub
parent 3c802d03a1
commit 03b638d027

View File

@@ -491,9 +491,10 @@ class MyGameWorld(World):
base_id = 1234
# instead of dynamic numbering, IDs could be part of data
# The following two dicts are required for the generation to know which
# items exist. They could be generated from json or something else. They can
# include events, but don't have to since events will be placed manually.
# The following two dicts are required for the generation to know which items exist.
# They can be generated with arbitrary code during world load, but keep in mind that
# anything expensive (e.g. parsing non-python data files) will delay world loading.
# They can include events, but don't have to since events will be placed manually.
item_name_to_id = {name: id for
id, name in enumerate(mygame_items, base_id)}
location_name_to_id = {name: id for