mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-23 03:57:48 +01:00
Ports and adds some more events, including dust, meteors, carp, etc. Tweaks meteors, now has a 10 minute warning beforehand and meteors only approach from one direction now.
17 lines
565 B
Plaintext
17 lines
565 B
Plaintext
// This event sends one wave of meteors unannounced.
|
|
|
|
/datum/gm_action/surprise_meteors
|
|
name = "surprise meteors"
|
|
departments = list(ROLE_ENGINEERING)
|
|
chaotic = 25
|
|
|
|
/datum/gm_action/surprise_meteors/get_weight()
|
|
var/engineers = metric.count_people_in_department(ROLE_ENGINEERING)
|
|
var/weight = (max(engineers - 1, 0) * 25) // If only one engineer exists, no meteors for now.
|
|
return weight
|
|
|
|
/datum/gm_action/surprise_meteors/start()
|
|
..()
|
|
spawn(1)
|
|
spawn_meteors(rand(4, 8), meteors_normal, pick(cardinal))
|
|
message_admins("Surprise meteors event has ended.") |