mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-23 03:57:13 +01:00
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:
co-authored by
AffectedArc07
parent
f33d1da673
commit
ca0f0ed9e8
@@ -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)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user