mirror of
https://github.com/Yawn-Wider/YWPolarisVore.git
synced 2026-08-30 16:38:49 +01:00
* Update settings * Whitespace changes * Comment out merger hooks in gitattributes Corrupt maps would have to be resolved in repo before hooks could be updated * Revert "Whitespace changes" This reverts commit afbdd1d8442973f5d570c30920d9d865b5acd479. * Whitespace again minus example * Gitignore example changelog * Restore changelog merge setting * Keep older dmi hook attribute until hooks can be updated * update vscode settings too * Renormalize remaining * Revert "Gitignore example changelog" This reverts commit de22ad375d3ee4d5930c550da2fd23a29a86e616. * Attempt to normalize example.yml (and another file I guess) * Try again
34 lines
1.1 KiB
Plaintext
34 lines
1.1 KiB
Plaintext
/datum/event2/meta/gravity
|
|
name = "gravity failure"
|
|
departments = list(DEPARTMENT_EVERYONE)
|
|
chaos = 20
|
|
chaotic_threshold = EVENT_CHAOS_THRESHOLD_LOW_IMPACT
|
|
reusable = TRUE
|
|
event_type = /datum/event2/event/gravity
|
|
|
|
/datum/event2/meta/gravity/get_weight()
|
|
return (20 + (metric.count_people_in_department(DEPARTMENT_EVERYONE) * 5)) / (times_ran + 1)
|
|
|
|
|
|
|
|
|
|
/datum/event2/event/gravity
|
|
length_lower_bound = 4 MINUTES
|
|
length_upper_bound = 8 MINUTES
|
|
|
|
/datum/event2/event/gravity/announce()
|
|
command_announcement.Announce("Feedback surge detected in mass-distributions systems. \
|
|
Artificial gravity has been disabled whilst the system reinitializes. \
|
|
Please stand by while the gravity system reinitializes.", "Gravity Failure")
|
|
|
|
/datum/event2/event/gravity/start()
|
|
for(var/area/A in world)
|
|
if(A.z in get_location_z_levels(space_only = TRUE))
|
|
A.gravitychange(FALSE)
|
|
|
|
/datum/event2/event/gravity/end()
|
|
for(var/area/A in world)
|
|
if(A.z in get_location_z_levels(space_only = TRUE))
|
|
A.gravitychange(TRUE)
|
|
|
|
command_announcement.Announce("Gravity generators are again functioning within normal parameters. Sorry for any inconvenience.", "Gravity Restored") |