Skip to content

Game Days

Cromha edited this page Feb 25, 2024 · 3 revisions

Introduction

You've probably seen the word 'game day' or 'elapsed time game days' around this wiki, but you've wondered what it exactly is. Well, it's a figurative unit that represent the current time in the game, from the player very first day. An example would be 96.4, which means that the player is in its day 94.6. You can check this value using the '(D) Diary' command. Note that in the main UI, it's not the elapsed time in game days who's displayed, but the actual date, calculate with the elapsed game days and the starting date key, in the start data file.

Note that the game day may be written with only one number after the decimal, but it's actually a long float number with many numbers after the decimal. Also note that a time elapsing effect, obtained from a consumable item, can affect how the game day computing works.

Explanation

Here's the function d that return the value of game day the second x is equal to:

$$d(x) = x * .001389$$

In another way, this means 180 seconds 'irl' is equal to .25 game days.


It's the part after the decimal, which defines if it's day time, evening, night time or morning:

# .25 = morning .50 = day .75 = evening .0 = night
if day_time_decimal < .25 and day_time_decimal > .0:
    day_time = COLOR_RED + COLOR_STYLE_BRIGHT + "☾ NIGHT" + COLOR_RESET_ALL
elif day_time_decimal > .25 and day_time_decimal < .50:
    day_time = COLOR_BLUE + COLOR_STYLE_BRIGHT + "▲ MORNING" + COLOR_RESET_ALL
elif day_time_decimal > .50 and day_time_decimal < .75:
    day_time = COLOR_GREEN + COLOR_STYLE_BRIGHT + "☼ DAY" + COLOR_RESET_ALL
elif day_time_decimal > .75 and day_time_decimal:
    day_time = COLOR_YELLOW + COLOR_STYLE_BRIGHT + "▼ EVENING" + COLOR_RESET_ALL

This mean that between .0 and .25, it's the night, between .25 and .50, it's the morning, between .50 and .75, it's day time and between .75 and .0, it's the night. You can imagine it as a clock like this:

image

Clone this wiki locally