mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-16 05:02:42 +00:00
Made breathing work
Pressure, todo
This commit is contained in:
@@ -5,8 +5,8 @@
|
|||||||
var/list/vore_organs = list() // List of vore containers inside a mob
|
var/list/vore_organs = list() // List of vore containers inside a mob
|
||||||
var/absorbed = 0 // If a mob is absorbed into another
|
var/absorbed = 0 // If a mob is absorbed into another
|
||||||
var/weight = 137 // Weight for mobs for weightgain system
|
var/weight = 137 // Weight for mobs for weightgain system
|
||||||
var/weight_gain = 1 //How fast you gain weight
|
var/weight_gain = 1 // How fast you gain weight
|
||||||
var/weight_loss = 0.5 //How fast you lose weight
|
var/weight_loss = 0.5 // How fast you lose weight
|
||||||
|
|
||||||
//
|
//
|
||||||
// Hook for generic creation of stuff on new creatures
|
// Hook for generic creation of stuff on new creatures
|
||||||
@@ -340,3 +340,25 @@
|
|||||||
else
|
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"])")
|
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
|
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)
|
||||||
Reference in New Issue
Block a user