Rebuild wardrobe (4) cleanup local variables in local labels

This commit is contained in:
Gouvernathor 2023-11-19 21:49:20 +01:00
parent 97d992f969
commit aeaeea5d2c

View File

@ -402,7 +402,7 @@ label .equip(item):
### OUTFIT ###
elif isinstance(item, DollOutfit):
$ outfit_ = char_active.create_outfit(temp=True)
$ renpy.dynamic(outfit_ = char_active.create_outfit(temp=True))
if outfit_ == item:
$ renpy.notify("Load failed: Outfit already equipped.")
@ -410,9 +410,7 @@ label .equip(item):
if wardrobe_check_equip_outfit(item):
if not outfit_.exists():
$ _confirmed = wardrobe_suppress_warnings or renpy.confirm("Discard unsaved changes and load this outfit?")
if _confirmed:
if wardrobe_suppress_warnings or renpy.confirm("Discard unsaved changes and load this outfit?"):
$ wardrobe_react("equip_outfit", item)
$ char_active.equip(item)
$ current_item = item