Odyssey Canonicity Coinflip (#20644)

Adds a `possible_scenario_types` list to Odyssey Scenarios containing
allowed canonicity types for a scenario.
`odyssey/proc/setup_scenario_variables()` now sets `scenario_type` by
picking from the `possible_scenario_types`.

By default or if the `possible_scenario_types` list is unset, a scenario
defaults to Non-Canon.

This allows a scenario to have both Canon and Non-Canon as an option.

Additionally, the Ruined Propellant Depot scenario has been given the
option of both Non-Canon and Canon to pick from.
Supercedes https://github.com/Aurorastation/Aurora.3/pull/20264.
This commit is contained in:
smellie
2025-03-27 11:21:03 +00:00
committed by GitHub
parent 43a02960ac
commit 3699c4f3e5
4 changed files with 21 additions and 2 deletions
@@ -92,6 +92,13 @@ SUBSYSTEM_DEF(odyssey)
if(scenario)
ody_gamemode.required_players = scenario.min_player_amount
ody_gamemode.required_enemies = scenario.min_actor_amount
//Setting the scenario_type variable for use here in UI info and chat notices.
if(!length(scenario.possible_scenario_types))
scenario.scenario_type = SCENARIO_TYPE_NONCANON
else
scenario.scenario_type = pick(scenario.possible_scenario_types)
site_landing_restricted = scenario.site_landing_restricted
/**