mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-07-13 00:47:31 +01:00
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:
@@ -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
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user