-Fixed oties not switching to dead icon when dying in resting pose.
-Made dino/lizard predthings able to survive the outdoors. (they were all slowly freezing to death)
This commit is contained in:
Verkister
2017-07-07 18:28:51 +03:00
parent 6a633f6c51
commit 3d7d207f7e
2 changed files with 26 additions and 1 deletions
@@ -16,7 +16,7 @@
melee_damage_upper = 25
attacktext = "bitten"
attack_sound = 'sound/weapons/bite.ogg'
minbodytemp = 270
minbodytemp = 200
maxbodytemp = 370
heat_damage_per_tick = 15
cold_damage_per_tick = 10
@@ -261,6 +261,31 @@
return
..()
/mob/living/simple_animal/otie/death()
resting = 0
icon_state = icon_dead
..()
/mob/living/simple_animal/otie/death(gibbed, deathmessage = "dies!")
density = 0 //We don't block even if we did before
walk(src, 0) //We stop any background-processing walks
resting = 0
icon_state = icon_dead
if(faction_friends.len)
faction_friends -= src
if(loot_list.len) //Drop any loot
for(var/path in loot_list)
if(prob(loot_list[path]))
new path(get_turf(src))
spawn(3) //We'll update our icon in a sec
icon_state = icon_dead //Goddamn triple check. If this ain't working Imma be PISSED!
update_icon()
return ..(gibbed,deathmessage)
// Activate Noms!
/mob/living/simple_animal/otie