mirror of
https://github.com/fulpstation/fulpstation.git
synced 2025-12-10 01:57:01 +00:00
Merge pull request #14124 from KorPhaeron/darkness
Advanced Darkness (wizard event)
This commit is contained in:
14
code/modules/events/wizard/advanced_darkness.dm
Normal file
14
code/modules/events/wizard/advanced_darkness.dm
Normal file
@@ -0,0 +1,14 @@
|
||||
/datum/round_event_control/wizard/darkness
|
||||
name = "Advanced Darkness"
|
||||
weight = 2
|
||||
typepath = /datum/round_event/wizard/darkness
|
||||
max_occurrences = 2
|
||||
earliest_start = 0
|
||||
|
||||
/datum/round_event/wizard/darkness
|
||||
endWhen = 0
|
||||
|
||||
/datum/round_event/wizard/darkness/start()
|
||||
var/datum/weather/advanced_darkness/darkness = new
|
||||
darkness.weather_start_up()
|
||||
return
|
||||
@@ -6,9 +6,9 @@
|
||||
earliest_start = 0
|
||||
|
||||
/datum/round_event/wizard/lava/
|
||||
|
||||
endWhen = 30 //half a minutes
|
||||
endWhen = 0
|
||||
|
||||
/datum/round_event/wizard/lava/start()
|
||||
var/datum/weather/floor_is_lava/LAVA = new /datum/weather/floor_is_lava
|
||||
LAVA.weather_start_up()
|
||||
return
|
||||
|
||||
@@ -28,7 +28,32 @@
|
||||
|
||||
|
||||
|
||||
/datum/weather/advanced_darkness
|
||||
name = "advanced darkness"
|
||||
start_up_time = 100 //10 seconds
|
||||
start_up_message = "The lights begin to dim... is power going out?"
|
||||
duration_lower = 45
|
||||
duration_upper = 60 //1 minute
|
||||
duration_message = "This isn't average everyday darkness... this is advanced darkness!"
|
||||
wind_down = 100 // 10 seconds
|
||||
wind_down_message = "The darkness is receding. Thank god."
|
||||
purely_aesthetic = TRUE
|
||||
|
||||
target_z = 1
|
||||
exclude_walls = TRUE
|
||||
area_type = /area
|
||||
|
||||
start_up_overlay = ""
|
||||
duration_overlay = ""
|
||||
overlay_layer = 10
|
||||
|
||||
/datum/weather/advanced_darkness/advanced_darkness/update_areas()
|
||||
..()
|
||||
for(var/area/A in impacted_areas)
|
||||
if(stage == MAIN_STAGE)
|
||||
A.opacity = 1
|
||||
else
|
||||
A.opacity = 0
|
||||
//Ash storms
|
||||
|
||||
/datum/weather/ash_storm
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 13 KiB |
@@ -1032,6 +1032,7 @@
|
||||
#include "code\modules\events\wormholes.dm"
|
||||
#include "code\modules\events\holiday\halloween.dm"
|
||||
#include "code\modules\events\holiday\xmas.dm"
|
||||
#include "code\modules\events\wizard\advanced_darkness.dm"
|
||||
#include "code\modules\events\wizard\aid.dm"
|
||||
#include "code\modules\events\wizard\blobies.dm"
|
||||
#include "code\modules\events\wizard\curseditems.dm"
|
||||
|
||||
Reference in New Issue
Block a user