- Jan 12, 2019
- 2
- 3
Night Mirror
Found a tiny bug in the game. Not sure if it is just me that is having the issue or if anyone else has come across this.
I noticed the day_counter was going up but the day was stuck on Sunday
Only noticed this when I got to day 6 and Morty said "(It's Saturday, so I don't have to deal with school today.)" and it was showing Sunday
Did make a small change to the code on my side to solve the issue
Sorry I'm nosey I always like to see CODE
Another solution would be to predefine day_names as a dictionary
Then you could just do the following which is what I ended up doing
Just my two cents. Doing a similar type of code in my calendar on the project I'm working on.
Again, I might be the only one that is having this issue
Missed the hotfix post.
Me and my tired brain
Found a tiny bug in the game. Not sure if it is just me that is having the issue or if anyone else has come across this.
I noticed the day_counter was going up but the day was stuck on Sunday
Only noticed this when I got to day 6 and Morty said "(It's Saturday, so I don't have to deal with school today.)" and it was showing Sunday
Did make a small change to the code on my side to solve the issue
Sorry I'm nosey I always like to see CODE
Code:
#define day_names = ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"]
define day_names = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"]
def get_current_day(day_n):
global day_name, day_names
# for dictionary conversion to work I had to redefine the day_names to start with Sunday
# so that the day_counter/day_n would display the correct day
if type(day_names) != dict:
day_names = dict(list(enumerate(day_names)))
if type(day_names) == dict:
day_name = [v for k,v in day_names.items() if k == day_n % 7][0]
return str(day_n) + ": " + day_name
Code:
#define day_names = ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday","Sunday"]
define day_names = {0 : "Sunday", 1 : "Monday", 2 : "Tuesday", 3 : "Wednesday", 4 : "Thursday", 5 : "Friday", 6 : "Saturday"}
Code:
def get_current_day(day_n):
global day_name, day_names
day_name = [v for k,v in day_names.items() if k == day_n % 7][0]
return str(day_n) + ": " + day_name
Again, I might be the only one that is having this issue
Missed the hotfix post.
Me and my tired brain
Last edited: