forked from SilverStudioGames/WTS
Factorize jumps in the elif
This commit is contained in:
parent
b2d1b66b05
commit
c11891bf11
@ -51,7 +51,6 @@ label desk:
|
|||||||
if states.her.busy:
|
if states.her.busy:
|
||||||
if game.daytime:
|
if game.daytime:
|
||||||
nar "Hermione is taking classes."
|
nar "Hermione is taking classes."
|
||||||
jump main_room_menu
|
|
||||||
else:
|
else:
|
||||||
nar "Hermione is already asleep."
|
nar "Hermione is already asleep."
|
||||||
jump main_room_menu
|
jump main_room_menu
|
||||||
@ -71,7 +70,6 @@ label desk:
|
|||||||
if states.lun.busy:
|
if states.lun.busy:
|
||||||
if game.daytime:
|
if game.daytime:
|
||||||
nar "Luna is taking classes."
|
nar "Luna is taking classes."
|
||||||
jump main_room_menu
|
|
||||||
else:
|
else:
|
||||||
nar "Luna is already asleep."
|
nar "Luna is already asleep."
|
||||||
jump main_room_menu
|
jump main_room_menu
|
||||||
@ -83,7 +81,6 @@ label desk:
|
|||||||
if states.ast.busy:
|
if states.ast.busy:
|
||||||
if game.daytime:
|
if game.daytime:
|
||||||
nar "Astoria is taking classes."
|
nar "Astoria is taking classes."
|
||||||
jump main_room_menu
|
|
||||||
else:
|
else:
|
||||||
nar "Astoria is already asleep."
|
nar "Astoria is already asleep."
|
||||||
jump main_room_menu
|
jump main_room_menu
|
||||||
@ -95,7 +92,6 @@ label desk:
|
|||||||
if states.sus.busy:
|
if states.sus.busy:
|
||||||
if game.daytime:
|
if game.daytime:
|
||||||
nar "Susan is taking classes."
|
nar "Susan is taking classes."
|
||||||
jump main_room_menu
|
|
||||||
else:
|
else:
|
||||||
nar "Susan is already asleep."
|
nar "Susan is already asleep."
|
||||||
jump main_room_menu
|
jump main_room_menu
|
||||||
@ -107,7 +103,6 @@ label desk:
|
|||||||
if states.cho.busy:
|
if states.cho.busy:
|
||||||
if game.daytime:
|
if game.daytime:
|
||||||
nar "Cho is taking classes."
|
nar "Cho is taking classes."
|
||||||
jump main_room_menu
|
|
||||||
else:
|
else:
|
||||||
nar "Cho is already asleep."
|
nar "Cho is already asleep."
|
||||||
jump main_room_menu
|
jump main_room_menu
|
||||||
@ -118,9 +113,6 @@ label desk:
|
|||||||
elif __choice == "snape":
|
elif __choice == "snape":
|
||||||
if states.sna.busy:
|
if states.sna.busy:
|
||||||
nar "Professor Snape is unavailable."
|
nar "Professor Snape is unavailable."
|
||||||
if game.daytime:
|
|
||||||
jump main_room_menu
|
|
||||||
else:
|
|
||||||
jump main_room_menu
|
jump main_room_menu
|
||||||
else:
|
else:
|
||||||
jump summon_snape
|
jump summon_snape
|
||||||
@ -129,9 +121,6 @@ label desk:
|
|||||||
elif __choice == "tonks":
|
elif __choice == "tonks":
|
||||||
if states.ton.busy:
|
if states.ton.busy:
|
||||||
nar "Tonks is unavailable."
|
nar "Tonks is unavailable."
|
||||||
if game.daytime:
|
|
||||||
jump main_room_menu
|
|
||||||
else:
|
|
||||||
jump main_room_menu
|
jump main_room_menu
|
||||||
else:
|
else:
|
||||||
jump summon_tonks
|
jump summon_tonks
|
||||||
|
Loading…
Reference in New Issue
Block a user