Files
Bubberstation/code/modules/events/anomaly/anomaly_dimensional.dm
T
lessthanthree 379bc658e9 Define anomaly event parameters, adjust timers (#73708)
- Moves parameters for all the anomaly random events to defines.
- Timers consolidated into three severities: medium, harmful, dangerous.
- Medium (harmless/nuisance) are announced immediately, higher
severities keep delay allowing time for crew to notice it first.
- Removes 6 second wait for anomaly events to start.
- Countdown timer reduced to 75 seconds (+2 for ectoplasmic.) Previously
99/+1.
2023-03-11 20:17:07 +00:00

37 lines
1.5 KiB
Plaintext

/datum/round_event_control/anomaly/anomaly_dimensional
name = "Anomaly: Dimensional"
typepath = /datum/round_event/anomaly/anomaly_dimensional
min_players = 10
max_occurrences = 5
weight = 20
description = "This anomaly replaces the materials of the surrounding area."
min_wizard_trigger_potency = 0
max_wizard_trigger_potency = 2
admin_setup = list(/datum/event_admin_setup/set_location/anomaly, /datum/event_admin_setup/listed_options/anomaly_dimensional)
/datum/round_event/anomaly/anomaly_dimensional
start_when = ANOMALY_START_MEDIUM_TIME
announce_when = ANOMALY_ANNOUNCE_MEDIUM_TIME
anomaly_path = /obj/effect/anomaly/dimensional
/// What theme should the anomaly initially apply to the area?
var/anomaly_theme
/datum/round_event/anomaly/anomaly_dimensional/apply_anomaly_properties(obj/effect/anomaly/dimensional/new_anomaly)
if (!anomaly_theme)
return
new_anomaly.prepare_area(new_theme_path = anomaly_theme)
/datum/round_event/anomaly/anomaly_dimensional/announce(fake)
priority_announce("Dimensional instability detected on [ANOMALY_ANNOUNCE_MEDIUM_TEXT] [impact_area.name].", "Anomaly Alert")
/datum/event_admin_setup/listed_options/anomaly_dimensional
input_text = "Select a dimensional anomaly theme?"
normal_run_option = "Random Theme"
/datum/event_admin_setup/listed_options/anomaly_dimensional/get_list()
return subtypesof(/datum/dimension_theme)
/datum/event_admin_setup/listed_options/anomaly_dimensional/apply_to_event(datum/round_event/anomaly/anomaly_dimensional/event)
event.anomaly_theme = chosen