Made breathing work

Pressure, todo
This commit is contained in:
Arokha Sieyes
2016-05-09 23:24:45 -04:00
parent 8264485d97
commit 108f8ae63e

View File

@@ -340,3 +340,25 @@
else
msg_admin_attack("[key_name(user)] forced [key_name(pred)] to eat [key_name(prey)]. ([pred ? "<a href='?_src_=holder;adminplayerobservecoodjump=1;X=[pred.x];Y=[pred.y];Z=[pred.z]'>JMP</a>" : "null"])")
return 1
//
// Magical pred-air breathing for inside preds
// overrides a proc defined on atom called by breathe.dm
//
/mob/living/return_air_for_internal_lifeform()
//Free air until someone wants to code processing it for reals from predbreaths
var/datum/gas_mixture/belly_air/air = new(1000)
return air
// This is about 0.896m^3 of atmosphere
/datum/gas_mixture/belly_air
volume = 1000
gas = list(
"oxygen" = 21,
"nitrogen" = 79)
temperature = 310.150
total_moles = 40
/datum/gas_mixture/belly_air/proc/reset()
gas = initial(gas)
total_moles = initial(total_moles)