diff options
Diffstat (limited to '00_init.rpy')
-rw-r--r-- | 00_init.rpy | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/00_init.rpy b/00_init.rpy index 4643ae7..6ab73e3 100644 --- a/00_init.rpy +++ b/00_init.rpy @@ -144,6 +144,9 @@ init -3 python: stdout("dlsearch: r is None") return r + def getuid(elem): + return elem["unit_id"] + def GAME_LOADER(): global allunitsbase, allunits, allquests, allstory, allworld, alltaverns global alltquests, tr_uptodate, tr_memcheck @@ -159,6 +162,7 @@ init -3 python: allunits={} for j in allunitsbase: allunits[j["unit_id"]]=j + allunitsbase.sort(key=getuid) # Load summons data f=open(get_path_if_exists("summons.json"), "r") |