Skip to content

Commit

Permalink
refactor(story): remove day variable
Browse files Browse the repository at this point in the history
  • Loading branch information
remarkablemark committed Sep 14, 2024
1 parent fb1817e commit 13feabd
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion game/story/inside/bedroom.rpy
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ label bedroom:
pause 1

if night:
$ day += 1
$ night = False
else:
$ night = True
Expand Down
2 changes: 1 addition & 1 deletion game/story/inside/explore_inside_day.rpy
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ label explore_inside_day:
if not day1_meet_lord:
jump day1_meet_lord

if day == 2 and not night and not day2_meet_lord:
if not night and not day2_meet_lord:
jump day2_lord_intro

if night:
Expand Down
2 changes: 1 addition & 1 deletion game/story/inside/kitchen.rpy
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ label kitchen:
if item.show("key"):
show screen basement_key

if day == 1 and night and not day1_whisper:
if night and not day1_whisper:
jump day1_whisper

menu:
Expand Down
1 change: 0 additions & 1 deletion game/story/variables.rpy
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ default surname = "Kasper"
default item = Item()

# time
default day = 1
default night = False

# rooms
Expand Down

0 comments on commit 13feabd

Please sign in to comment.