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
+11
View File
@@ -41,6 +41,17 @@ GLOBAL_LIST_EMPTY(banned_ruin_ids)
handled_ruin_paths += ruin.type
continue
if((ruin.template_flags & TEMPLATE_FLAG_PORT_SPAWN))
if(SSatlas.is_port_call_day())
force_spawn |= ruin
for(var/ruin_path in ruin.force_ruins)
var/datum/map_template/ruin/force_ruin = new ruin_path
force_spawn |= force_ruin
// No matter if it spawns or not, we want it removed from further consideration, it either spawns here or not at all
potentialRuins -= ruin
handled_ruin_paths += ruin.type
continue
available[ruin] = ruin.spawn_weight
for(var/ruin_path in ruin.allow_ruins)