summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-12-29 21:21:26 -0300
committerJesusaves <cpntb1@ymail.com>2020-12-29 21:21:26 -0300
commit271c9bcc54ef3f7baf257c4be79b97a14037ceab (patch)
tree5ca01a349108f12fb521e2f19c6fbd0d220071e8
parent215cb427af49a4e6b40601247445d384f2e828e6 (diff)
downloadsdk-271c9bcc54ef3f7baf257c4be79b97a14037ceab.tar.gz
sdk-271c9bcc54ef3f7baf257c4be79b97a14037ceab.tar.bz2
sdk-271c9bcc54ef3f7baf257c4be79b97a14037ceab.tar.xz
sdk-271c9bcc54ef3f7baf257c4be79b97a14037ceab.zip
Use a lambda instead
-rw-r--r--00_init.rpy5
1 files changed, 1 insertions, 4 deletions
diff --git a/00_init.rpy b/00_init.rpy
index 6ab73e3..3d00438 100644
--- a/00_init.rpy
+++ b/00_init.rpy
@@ -144,9 +144,6 @@ 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
@@ -162,7 +159,7 @@ init -3 python:
allunits={}
for j in allunitsbase:
allunits[j["unit_id"]]=j
- allunitsbase.sort(key=getuid)
+ allunitsbase.sort(key=lambda x: x["unit_id"])
# Load summons data
f=open(get_path_if_exists("summons.json"), "r")