mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-14 04:02:31 +00:00
Blob now requires oxygen to grow.
This commit is contained in:
@@ -162,6 +162,9 @@
|
|||||||
|
|
||||||
proc/Life()
|
proc/Life()
|
||||||
update()
|
update()
|
||||||
|
// only do special stuff if there' air
|
||||||
|
if(!consume_air())
|
||||||
|
return
|
||||||
if(check_mutations())
|
if(check_mutations())
|
||||||
return 1
|
return 1
|
||||||
if(special_action())
|
if(special_action())
|
||||||
@@ -169,6 +172,13 @@
|
|||||||
|
|
||||||
return 0
|
return 0
|
||||||
|
|
||||||
|
proc/consume_air()
|
||||||
|
if(!istype(src.loc,/turf/simulated)) return 0
|
||||||
|
var/turf/simulated/S = src.loc
|
||||||
|
if(!S.air) return 1 // this means it's a wall, so do process
|
||||||
|
if(S.air.oxygen < 1 || S.air.toxins > 1) return 0
|
||||||
|
return 1
|
||||||
|
|
||||||
temperature_expose(datum/gas_mixture/air, temperature, volume)
|
temperature_expose(datum/gas_mixture/air, temperature, volume)
|
||||||
if(temperature > T0C+200)
|
if(temperature > T0C+200)
|
||||||
health -= 0.01 * temperature
|
health -= 0.01 * temperature
|
||||||
|
|||||||
Reference in New Issue
Block a user