Point Verdant now only spawns when today is a Port of Call (#18670)

* Port of Call Template Flag

* oops

* bitflags

* bitflags but frfr

* I give up + fix

* bitflags again again

* Port of Call Day changes

* remove Horizon check

* small thing :)

* check day directly now

* new proc to check port of call, and possible fix

* Requested Changes

* requested gem changes

* gem gaming

* gemmmmmmmmmmmmmmmmmmmmmmmmmmm

---------

Co-authored-by: Benedict <Ben10083@users.noreply.github.com>
This commit is contained in:
Ben
2024-03-24 14:05:10 +00:00
committed by GitHub
co-authored by Benedict
parent 0cbb600b70
commit 4bc0ce755e
8 changed files with 87 additions and 12 deletions
@@ -65,7 +65,7 @@
cargo_price_coef = list("nt" = 1.1, "hpi" = 0.7, "zhu" = 0.4, "een" = 1.0, "get" = 1.1, "arz" = 1.8, "blm" = 0.9, "iac" = 1.2, "zsc" = 1.8, "vfc" = 0.9, "bis" = 0.4, "xmg" = 0.7, "npi" = 0.8)
ports_of_call = list("the corporate district of Aoyama")
scheduled_port_visits = list("Thursday", "Sunday")
scheduled_port_visits = list("Saturday", "Sunday")
starlight_color = "#e2719b"
starlight_power = 2//placeholder
starlight_range = 4//placeholder
@@ -136,7 +136,7 @@
/datum/space_sector/proc/setup_current_sector()
SHOULD_CALL_PARENT(TRUE)
if(SSatlas.current_map.ports_of_call && length(scheduled_port_visits))
if(SSatlas.current_map.ports_of_call && length(SSatlas.current_sector.scheduled_port_visits))
var/current_day_index = GLOB.all_days.Find(time2text(world.realtime, "Day"))
var/days_calculated = 0
// The main problem to consider here is that you have to loop around for two weeks to find all the days, basically.
@@ -151,7 +151,7 @@
next_port_visit = current_day_index
break
next_port_visit_string = days_calculated == 0 ? "today" : days_calculated == 1 ? "in [days_calculated] day" : "in [days_calculated] days"
next_port_visit_string = days_calculated == 0 ? "Today" : days_calculated == 1 ? "in [days_calculated] day" : "in [days_calculated] days"
// For now, i've put processing to only happen if the sector has a radio station
// but if, in the future, you add more stuff for the processor to handle, feel free to move it out of the if block