Rebuild wardrobe (4) cleanup local variables in local labels
This commit is contained in:
parent
97d992f969
commit
aeaeea5d2c
@ -402,7 +402,7 @@ label .equip(item):
|
|||||||
|
|
||||||
### OUTFIT ###
|
### OUTFIT ###
|
||||||
elif isinstance(item, DollOutfit):
|
elif isinstance(item, DollOutfit):
|
||||||
$ outfit_ = char_active.create_outfit(temp=True)
|
$ renpy.dynamic(outfit_ = char_active.create_outfit(temp=True))
|
||||||
|
|
||||||
if outfit_ == item:
|
if outfit_ == item:
|
||||||
$ renpy.notify("Load failed: Outfit already equipped.")
|
$ renpy.notify("Load failed: Outfit already equipped.")
|
||||||
@ -410,9 +410,7 @@ label .equip(item):
|
|||||||
if wardrobe_check_equip_outfit(item):
|
if wardrobe_check_equip_outfit(item):
|
||||||
|
|
||||||
if not outfit_.exists():
|
if not outfit_.exists():
|
||||||
$ _confirmed = wardrobe_suppress_warnings or renpy.confirm("Discard unsaved changes and load this outfit?")
|
if wardrobe_suppress_warnings or renpy.confirm("Discard unsaved changes and load this outfit?"):
|
||||||
|
|
||||||
if _confirmed:
|
|
||||||
$ wardrobe_react("equip_outfit", item)
|
$ wardrobe_react("equip_outfit", item)
|
||||||
$ char_active.equip(item)
|
$ char_active.equip(item)
|
||||||
$ current_item = item
|
$ current_item = item
|
||||||
|
Loading…
Reference in New Issue
Block a user