﻿-- chunkname: @scripts/settings/circumstance/circumstance_templates.lua

local circumstance_templates = {}

local function _extract_circumstance_templates(path)
	local circumstances = require(path)

	for name, circumstance_data in pairs(circumstances) do
		circumstance_templates[name] = circumstance_data
	end
end

_extract_circumstance_templates("scripts/settings/circumstance/templates/default_circumstance_template")
_extract_circumstance_templates("scripts/settings/circumstance/templates/dummy_resistance_changes_template")
_extract_circumstance_templates("scripts/settings/circumstance/templates/assault_circumstance_template")
_extract_circumstance_templates("scripts/settings/circumstance/templates/darkness_circumstance_template")
_extract_circumstance_templates("scripts/settings/circumstance/templates/hunting_grounds_circumstance_template")
_extract_circumstance_templates("scripts/settings/circumstance/templates/nurgle_manifestation_circumstance_template")
_extract_circumstance_templates("scripts/settings/circumstance/templates/ventilation_purge_circumstance_template")
_extract_circumstance_templates("scripts/settings/circumstance/templates/resistance_changes_template")
_extract_circumstance_templates("scripts/settings/circumstance/templates/havoc_circumstance_template")
_extract_circumstance_templates("scripts/settings/circumstance/templates/toxic_gas_circumstance_template")
_extract_circumstance_templates("scripts/settings/circumstance/templates/noir_circumstance_template")
_extract_circumstance_templates("scripts/settings/circumstance/templates/ember_circumstance_template")
_extract_circumstance_templates("scripts/settings/circumstance/templates/hub_skulls_circumstance_template")
_extract_circumstance_templates("scripts/settings/circumstance/templates/hub_anniversary_circumstance_template")
_extract_circumstance_templates("scripts/settings/circumstance/templates/stealth_circumstance_template")
_extract_circumstance_templates("scripts/settings/circumstance/templates/live_event_abhuman_circumstance_template")
_extract_circumstance_templates("scripts/settings/circumstance/templates/live_event_barrel_grounds_circumstance_template")
_extract_circumstance_templates("scripts/settings/circumstance/templates/live_event_communication_hack_circumstance_template")
_extract_circumstance_templates("scripts/settings/circumstance/templates/live_event_skulls_circumstance_template")
_extract_circumstance_templates("scripts/settings/circumstance/templates/live_event_moebian_21st_circumstance_template")
_extract_circumstance_templates("scripts/settings/circumstance/templates/live_event_nurgle_explosion_circumstance_template")
_extract_circumstance_templates("scripts/settings/circumstance/templates/live_event_rotten_armor_circumstance_template")
_extract_circumstance_templates("scripts/settings/circumstance/templates/live_event_plasma_smugglers_circumstance_template")
_extract_circumstance_templates("scripts/settings/circumstance/templates/player_journey_circumstance_template")
_extract_circumstance_templates("scripts/settings/circumstance/templates/extra_trickle_circumstance_template")
_extract_circumstance_templates("scripts/settings/circumstance/templates/more_specials_circumstance_template")
_extract_circumstance_templates("scripts/settings/circumstance/templates/more_hordes_circumstance_template")
_extract_circumstance_templates("scripts/settings/circumstance/templates/more_monsters_circumstance_template")
_extract_circumstance_templates("scripts/settings/circumstance/templates/more_witches_circumstance_template")
_extract_circumstance_templates("scripts/settings/circumstance/templates/flash_mission_circumstance_template")

for name, circumstance_data in pairs(circumstance_templates) do
	circumstance_data.name = name
end

return settings("CircumstanceTemplates", circumstance_templates)
