[MIRROR] Ports Barometers from Yogstation (#5647)
* Ports Barometers from Yogstation (#35730) * Ports Barometers from Yogstation * Ports Barometers from Yogstation * Added missing barometer_predictable bools * Gives the atmos analyzer love instead of a new item. * Moves playsound under cooldown to prevent soundspam. * Ports Barometers from Yogstation
This commit is contained in:
committed by
Poojawa
parent
87053ef22b
commit
03dfbe7137
@@ -37,6 +37,9 @@
|
||||
var/probability = 0 // Weight amongst other eligible weather. If zero, will never happen randomly.
|
||||
var/target_trait = ZTRAIT_STATION // The z-level trait to affect when run randomly or when not overridden.
|
||||
|
||||
var/barometer_predictable = FALSE
|
||||
var/next_hit_time = 0 //For barometers to know when the next storm will hit
|
||||
|
||||
/datum/weather/New(z_levels)
|
||||
..()
|
||||
impacted_z_levels = z_levels
|
||||
|
||||
@@ -22,6 +22,8 @@
|
||||
|
||||
immunity_type = "acid" // temp
|
||||
|
||||
barometer_predictable = TRUE
|
||||
|
||||
|
||||
/datum/weather/acid_rain/weather_act(mob/living/L)
|
||||
var/resist = L.getarmor(null, "acid")
|
||||
|
||||
@@ -23,6 +23,8 @@
|
||||
|
||||
probability = 90
|
||||
|
||||
barometer_predictable = TRUE
|
||||
|
||||
var/datum/looping_sound/active_outside_ashstorm/sound_ao = new(list(), FALSE, TRUE)
|
||||
var/datum/looping_sound/active_inside_ashstorm/sound_ai = new(list(), FALSE, TRUE)
|
||||
var/datum/looping_sound/weak_outside_ashstorm/sound_wo = new(list(), FALSE, TRUE)
|
||||
|
||||
@@ -20,6 +20,8 @@
|
||||
|
||||
immunity_type = "snow"
|
||||
|
||||
barometer_predictable = TRUE
|
||||
|
||||
|
||||
/datum/weather/snow_storm/weather_act(mob/living/L)
|
||||
L.bodytemperature -=(rand(5,15))
|
||||
|
||||
Reference in New Issue
Block a user