tweaks to simple_animals, carps no longer freeze / require oxy to live (but rapidly burn up from 25+ degree temp), kobolds no longer require oxy to live

Signed-off-by: Cael_Aislinn <cael_aislinn@yahoo.com.au>
This commit is contained in:
Cael_Aislinn
2012-08-05 03:13:49 +10:00
parent 321e8e9e21
commit 2b2017126a
4 changed files with 14 additions and 1 deletions
+5
View File
@@ -46,6 +46,11 @@
health = 50
melee_damage_lower = 10
melee_damage_upper = 20
minbodytemp = 0 //so they don't freeze in space
maxbodytemp = 295 //if it's just 25 degrees, they start to burn up var/min_oxy = 5
min_oxy = 0 //doesn't need to breath
max_tox = 0 //can survive toxic atmospheres
max_co2 = 0
/proc/iscarp(var/mob/M)
return istype(M, /mob/living/simple_animal/carp)
+1
View File
@@ -17,6 +17,7 @@
response_help = "pets the"
response_disarm = "gently pushes aside the"
response_harm = "kicks the"
min_oxy = 0 //doesn't need oxy to breathe. kobolds are space asteroid miners
/mob/living/simple_animal/kobold/Life()
..()
@@ -27,7 +27,7 @@
//Temperature effect
var/minbodytemp = 270
var/maxbodytemp = 370
var/maxbodytemp = 305
var/heat_damage_per_tick = 3 //amount of damage applied if animal's body temperature is higher than maxbodytemp
var/cold_damage_per_tick = 2 //same as heat_damage_per_tick, only if the bodytemperature it's lower than minbodytemp
@@ -81,8 +81,15 @@
//Atmos effect
if(bodytemperature < minbodytemp)
health -= cold_damage_per_tick
if(prob(15)
emote("auto",1,"shivers![prob(50) : pick(" It seems quite cold."," It seems to be freezing.") : ""]")
else if(bodytemperature > maxbodytemp)
health -= heat_damage_per_tick
if(prob(15)
emote("auto",1,"sweats![prob(50) : pick(" It seems quite hot."," It seems to be burning up.") : ""]")
if(!atmos_suitable)
health -= unsuitable_atoms_damage
if(prob(15)
emote("auto",1,"gasps![prob(50) : pick(" It seems unable to breath."," It seems to be asphyxiating.") : ""]")