mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-09 16:14:13 +00:00
* Adds a slime person race. * Replaces all mentions of the slime mutantrace with the slime species datum. * Fixes errors and things. * Finishes implementing slime people race. * Makes requested changes. * Removes comment. * Fixes conflicts.
18 lines
439 B
Plaintext
18 lines
439 B
Plaintext
/obj/item/slime_heart
|
|
name = "slime heart"
|
|
desc = "You devil..."
|
|
icon = 'icons/mob/slimes.dmi'
|
|
icon_state = "Slime-Heart"
|
|
item_state = "Slime-Heart"
|
|
w_class = W_CLASS_TINY
|
|
|
|
/obj/item/slime_heart/OnMobLife(var/mob)
|
|
if(iscarbon(mob))
|
|
var/mob/living/carbon/C = mob
|
|
if(C.is_holding_item(src))
|
|
if(ishuman(C))
|
|
var/mob/living/carbon/human/H = C
|
|
if(isslimeperson(H))
|
|
H.adjustToxLoss(-3)
|
|
return
|
|
C.adjustToxLoss(5) |