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 game.daytime:
|
||||
nar "Hermione is taking classes."
|
||||
jump main_room_menu
|
||||
else:
|
||||
nar "Hermione is already asleep."
|
||||
jump main_room_menu
|
||||
@ -71,7 +70,6 @@ label desk:
|
||||
if states.lun.busy:
|
||||
if game.daytime:
|
||||
nar "Luna is taking classes."
|
||||
jump main_room_menu
|
||||
else:
|
||||
nar "Luna is already asleep."
|
||||
jump main_room_menu
|
||||
@ -83,7 +81,6 @@ label desk:
|
||||
if states.ast.busy:
|
||||
if game.daytime:
|
||||
nar "Astoria is taking classes."
|
||||
jump main_room_menu
|
||||
else:
|
||||
nar "Astoria is already asleep."
|
||||
jump main_room_menu
|
||||
@ -95,7 +92,6 @@ label desk:
|
||||
if states.sus.busy:
|
||||
if game.daytime:
|
||||
nar "Susan is taking classes."
|
||||
jump main_room_menu
|
||||
else:
|
||||
nar "Susan is already asleep."
|
||||
jump main_room_menu
|
||||
@ -107,7 +103,6 @@ label desk:
|
||||
if states.cho.busy:
|
||||
if game.daytime:
|
||||
nar "Cho is taking classes."
|
||||
jump main_room_menu
|
||||
else:
|
||||
nar "Cho is already asleep."
|
||||
jump main_room_menu
|
||||
@ -118,9 +113,6 @@ label desk:
|
||||
elif __choice == "snape":
|
||||
if states.sna.busy:
|
||||
nar "Professor Snape is unavailable."
|
||||
if game.daytime:
|
||||
jump main_room_menu
|
||||
else:
|
||||
jump main_room_menu
|
||||
else:
|
||||
jump summon_snape
|
||||
@ -129,9 +121,6 @@ label desk:
|
||||
elif __choice == "tonks":
|
||||
if states.ton.busy:
|
||||
nar "Tonks is unavailable."
|
||||
if game.daytime:
|
||||
jump main_room_menu
|
||||
else:
|
||||
jump main_room_menu
|
||||
else:
|
||||
jump summon_tonks
|
||||
|
Loading…
Reference in New Issue
Block a user