From 200760471fc47f800bfdc170921280cc8be4ae0c Mon Sep 17 00:00:00 2001 From: Gouvernathor <44340603+Gouvernathor@users.noreply.github.com> Date: Tue, 14 Nov 2023 22:54:02 +0100 Subject: [PATCH] skip unnecessary lambda (cherry picked from commit 94a6f9302b21712f90b84bca8318559c789a55b5) --- game/scripts/shops/dress/menu.rpy | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/game/scripts/shops/dress/menu.rpy b/game/scripts/shops/dress/menu.rpy index 57744404..c4b3374a 100644 --- a/game/scripts/shops/dress/menu.rpy +++ b/game/scripts/shops/dress/menu.rpy @@ -9,9 +9,9 @@ init python: elif current_sorting == "Price (Desc)": item = sorted(item, key=lambda x: x.price, reverse=True) if sortby == "Lewdness (Asc)": - item = sorted(item, key=lambda x: get_outfit_score(x), reverse=False) + item = sorted(item, key=get_outfit_score, reverse=False) elif current_sorting == "Lewdness (Desc)": - item = sorted(item, key=lambda x: get_outfit_score(x), reverse=True) + item = sorted(item, key=get_outfit_score, reverse=True) return item label shop_dress: @@ -112,7 +112,7 @@ label shop_dress_menu: $ curry = renpy.curry(execute_callbacks)(parcel_callbacks) if parcel_callbacks else None $ parcel_callbacks = [] $ Parcel(contents=[(k, 1) for k in store_cart], wait=transit_time, func=curry).send() - + return else: gen "Nothing has caught my eye I'm afraid." ("base", xpos="far_left", ypos="head")