Ash storms are no longer audible on mining/labor shuttles when in transit or docked on station (#17905)

* Change get_weather to use type instead of instance

* Stop storm audio on shuttle when docked at station

* Realize that the labor camp shuttle exists

* Fix a comment

* Apply suggestions from code review

Co-authored-by: AffectedArc07 <25063394+AffectedArc07@users.noreply.github.com>

Co-authored-by: AffectedArc07 <25063394+AffectedArc07@users.noreply.github.com>
This commit is contained in:
Fridge Burns
2022-06-06 21:50:25 +01:00
committed by GitHub
co-authored by AffectedArc07
parent f33d1da673
commit ca0f0ed9e8
3 changed files with 57 additions and 17 deletions
+8
View File
@@ -528,6 +528,14 @@
loc = S1.loc
dir = S1.dir
//update mining and labor shuttle ash storm audio
if(id in list("mining", "laborcamp"))
var/mining_zlevel = level_name_to_num(MINING)
var/datum/weather/ash_storm/W = SSweather.get_weather(mining_zlevel, /area/lavaland/surface/outdoors)
if(W)
W.update_eligible_areas()
W.update_audio()
unlockPortDoors(S1)