From d38d44268805f10f94730e6c6435754bb9106387 Mon Sep 17 00:00:00 2001 From: Gouvernathor <44340603+Gouvernathor@users.noreply.github.com> Date: Fri, 17 Nov 2023 04:04:15 +0100 Subject: [PATCH] Fix variable name and move defaults (cherry picked from commit f6c0054be03f0d2406a2d6c59e9a14ab3734992c) --- game/scripts/interface/cheats.rpy | 45 +++++++++++++++---------------- 1 file changed, 22 insertions(+), 23 deletions(-) diff --git a/game/scripts/interface/cheats.rpy b/game/scripts/interface/cheats.rpy index 6b0931bb..94c45677 100644 --- a/game/scripts/interface/cheats.rpy +++ b/game/scripts/interface/cheats.rpy @@ -1,9 +1,11 @@ - default cheat_wardrobe_alpha = False default skip_duel = False default experimental_cheats = False +default __curr_breast_type = 0 +default __curr_ass_type = 0 + label cheats: if not renpy.seen_label("cheats"): @@ -349,41 +351,38 @@ label cheats: # # Years later: Python 3 switch cases are finally here, but are not usable in renpy. :( - default _curr_breast_type = 0 - default _curr_ass_type = 0 - - menu: - "Hermione Breasts ([_curr_breast_type])" (icon="interface/icons/small/hermione.webp"): + menu .alteration: + "Hermione Breasts ([__curr_breast_type])" (icon="interface/icons/small/hermione.webp"): python: - if _curr_breast_type == 0: + if __curr_breast_type == 0: hermione.equip(her_chest_breasts1) - _curr_breast_type = 1 - elif _curr_breast_type == 1: + __curr_breast_type = 1 + elif __curr_breast_type == 1: hermione.equip(her_chest_breasts2) - _curr_breast_type = 2 - elif _curr_breast_type == 2: + __curr_breast_type = 2 + elif __curr_breast_type == 2: hermione.equip(her_chest_breasts3) - _curr_breast_type = 3 - elif _curr_breast_type == 3: + __curr_breast_type = 3 + elif __curr_breast_type == 3: hermione.unequip("chest") - _curr_breast_type = 0 + __curr_breast_type = 0 jump cheats.alteration - "Hermione Ass ([_curr_ass_type])" (icon="interface/icons/small/hermione.webp"): + "Hermione Ass ([__curr_ass_type])" (icon="interface/icons/small/hermione.webp"): python: - if _curr_ass_type == 0: + if __curr_ass_type == 0: hermione.equip(her_hips_ass1) - _curr_ass_type = 1 - elif _curr_ass_type == 1: + __curr_ass_type = 1 + elif __curr_ass_type == 1: hermione.equip(her_hips_ass2) - _curr_ass_type = 2 - elif _curr_ass_type == 2: + __curr_ass_type = 2 + elif __curr_ass_type == 2: hermione.equip(her_hips_ass3) - _curr_ass_type = 3 - elif _curr_ass_type == 3: + __curr_ass_type = 3 + elif __curr_ass_type == 3: hermione.unequip("hips") - _curr_ass_type = 0 + __curr_ass_type = 0 jump cheats.alteration