mirror of
https://github.com/yogstation13/Yogstation.git
synced 2025-02-26 09:04:50 +00:00
Merge pull request #42196 from AutomaticFrenzy/patch/miasma
Fix miasma infecting space
This commit is contained in:
committed by
yogstation13-bot
parent
39b1ec8143
commit
90af6699ed
@@ -17,11 +17,10 @@
|
||||
if(!istype(T))
|
||||
return
|
||||
|
||||
var/datum/gas_mixture/air = T.return_air()
|
||||
var/list/cached_gases = air.gases
|
||||
|
||||
ASSERT_GAS(/datum/gas/miasma, air)
|
||||
cached_gases[/datum/gas/miasma][MOLES] += amount
|
||||
var/datum/gas_mixture/stank = new
|
||||
ADD_GAS(/datum/gas/miasma, stank.gases)
|
||||
stank.gases[/datum/gas/miasma][MOLES] = amount
|
||||
T.assume_air(stank)
|
||||
T.air_update_turf()
|
||||
|
||||
/datum/component/rot/corpse
|
||||
|
||||
Reference in New Issue
Block a user