Improve and fix last

This commit is contained in:
Gouvernathor 2023-11-17 03:16:28 +01:00
parent 1672b2381a
commit acfb09516c

View File

@ -32,15 +32,17 @@ label summon_menu(xx=723, yy=90):
return
label .summon(char, busy):
if not busy:
$ enable_game_menu()
$ renpy.jump_out_of_context("summon_"+char.lower())
label .summon(char):
$ enable_game_menu()
$ renpy.jump_out_of_context("summon_"+char.lower())
return
label .summon_busy(char):
if game.daytime or char in ["Tonks", "Snape"]:
nar "[char] is currently busy. Try again later."
else:
if game.daytime or char in ["Tonks", "Snape"]:
nar "[char] is currently busy. Try again later."
else:
nar "[char] is currently asleep. Try again tomorrow."
nar "[char] is currently asleep. Try again tomorrow."
return
@ -109,10 +111,10 @@ screen summon_menu():
text_xanchor 0.5
text_size 20
if not summon_dict[char]["busy"]:
action Call("summon_menu.summon", char, False)
action Call("summon_menu.summon", char, from_current=True)
else:
text_color "#8C8C70"
action Call("summon_menu.summon", char, True)
action Call("summon_menu.summon_busy", char, from_current=True)
add gui.format("interface/achievements/{}/spacer_left.webp")