mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-31 00:58:26 +01:00
Macro Defines the On-Station Year (#70827)
* Macro Defines the On-Station Year Hey there, This PR just removes the repeating pattern of (GLOB.year_integer+540) across several different code files and replaces it with a macro `CURRENT_STATION_YEAR`. In case we decide SS13 will need to take place in a new year, it'll be easier to do such, but it also helps with mistakes in year transcription should that ever be a thing. * double the define - define trouble
This commit is contained in:
@@ -190,9 +190,9 @@
|
||||
//after replacement section for performance
|
||||
if(story_flags & STORY_FLAG_DATED)
|
||||
if(memory_flags & MEMORY_FLAG_NOSTATIONNAME)
|
||||
parsed_story += "This took place in [time2text(world.realtime, "Month")] of [GLOB.year_integer+540]."
|
||||
parsed_story += "This took place in [time2text(world.realtime, "Month")] of [CURRENT_STATION_YEAR]."
|
||||
else
|
||||
parsed_story += "This took place in [time2text(world.realtime, "Month")] of [GLOB.year_integer+540] on [station_name()]."
|
||||
parsed_story += "This took place in [time2text(world.realtime, "Month")] of [CURRENT_STATION_YEAR] on [station_name()]."
|
||||
|
||||
parsed_story = trim_right(parsed_story)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user