mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-23 21:12:24 +01:00
29 lines
642 B
Plaintext
29 lines
642 B
Plaintext
/mob/living/carbon/slime/death(gibbed)
|
|
if(stat == DEAD)
|
|
return
|
|
|
|
if(victim)
|
|
step_away(src, victim)
|
|
victim = null
|
|
|
|
if(!gibbed && is_adult)
|
|
var/mob/living/carbon/slime/M = new /mob/living/carbon/slime(loc, colour)
|
|
M.rabid = TRUE
|
|
M.friends = friends.Copy()
|
|
M.mutation_chance = clamp(mutation_chance + rand(-3, 3), 0, 100)
|
|
step_away(M, src)
|
|
is_adult = FALSE
|
|
maxHealth = 150
|
|
revive()
|
|
if(!client)
|
|
rabid = TRUE
|
|
number = rand(1, 1000)
|
|
name = "[colour] [is_adult ? "adult" : "baby"] slime ([number])"
|
|
real_name = name
|
|
return
|
|
|
|
. = ..(gibbed, "seizes up and falls limp...")
|
|
mood = null
|
|
regenerate_icons()
|
|
return
|