Merge pull request #42196 from AutomaticFrenzy/patch/miasma

Fix miasma infecting space
This commit is contained in:
Jordan Brown
2019-01-04 10:06:39 -05:00
committed by yogstation13-bot
parent 39b1ec8143
commit 90af6699ed
2 changed files with 8 additions and 10 deletions

View File

@@ -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