mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-29 18:40:42 +00:00
* Tailed species now gain a negative moodlet for having their tail lost * a Co-authored-by: MrMelbert <51863163+MrMelbert@users.noreply.github.com> Co-authored-by: Gandalf2k15 <jzo123@hotmail.com>
116 lines
3.6 KiB
Plaintext
116 lines
3.6 KiB
Plaintext
// Note: tails only work in humans. They use human-specific parameters and rely on human code for displaying.
|
|
|
|
/obj/item/organ/tail
|
|
name = "tail"
|
|
desc = "A severed tail. What did you cut this off of?"
|
|
icon_state = "severedtail"
|
|
zone = BODY_ZONE_PRECISE_GROIN
|
|
slot = ORGAN_SLOT_TAIL
|
|
var/tail_type = "None"
|
|
|
|
/obj/item/organ/tail/Insert(mob/living/carbon/human/tail_owner, special = FALSE, drop_if_replaced = TRUE)
|
|
. = ..()
|
|
tail_owner?.dna?.species?.on_tail_regain(tail_owner, src, special)
|
|
|
|
/obj/item/organ/tail/Remove(mob/living/carbon/human/tail_owner, special = FALSE)
|
|
. = ..()
|
|
tail_owner?.dna?.species?.on_tail_lost(tail_owner, src, special)
|
|
|
|
/obj/item/organ/tail/cat
|
|
name = "cat tail"
|
|
desc = "A severed cat tail. Who's wagging now?"
|
|
tail_type = "Cat"
|
|
|
|
//SKYRAT EDIT REMOVAL BEGIN - CUSTOMIZATION
|
|
/*
|
|
/obj/item/organ/tail/cat/Insert(mob/living/carbon/human/H, special = FALSE, drop_if_replaced = TRUE)
|
|
..()
|
|
if(istype(H))
|
|
var/default_part = H.dna.species.mutant_bodyparts["tail_human"]
|
|
if(!default_part || default_part == "None")
|
|
H.dna.features["tail_human"] = H.dna.species.mutant_bodyparts["tail_human"] = tail_type
|
|
H.update_body()
|
|
|
|
/obj/item/organ/tail/cat/Remove(mob/living/carbon/human/H, special = FALSE)
|
|
..()
|
|
if(istype(H))
|
|
H.dna.features["tail_human"] = "None"
|
|
H.dna.species.mutant_bodyparts -= "tail_human"
|
|
color = H.hair_color
|
|
H.update_body()
|
|
*/
|
|
//SKYRAT EDIT REMOVAL END
|
|
|
|
/obj/item/organ/tail/lizard
|
|
name = "lizard tail"
|
|
desc = "A severed lizard tail. Somewhere, no doubt, a lizard hater is very pleased with themselves."
|
|
color = "#116611"
|
|
tail_type = "Smooth"
|
|
var/spines = "None"
|
|
|
|
//SKYRAT EDIT REMOVAL BEGIN - CUSTOMIZATION
|
|
/*
|
|
/obj/item/organ/tail/lizard/Initialize()
|
|
..()
|
|
color = "#"+ random_color()
|
|
|
|
/obj/item/organ/tail/lizard/Insert(mob/living/carbon/human/H, special = FALSE, drop_if_replaced = TRUE)
|
|
..()
|
|
if(istype(H))
|
|
// Checks here are necessary so it wouldn't overwrite the tail of a lizard it spawned in
|
|
var/default_part = H.dna.species.mutant_bodyparts["tail_lizard"]
|
|
if(!default_part || default_part == "None")
|
|
H.dna.features["tail_lizard"] = H.dna.species.mutant_bodyparts["tail_lizard"] = tail_type
|
|
|
|
default_part = H.dna.species.mutant_bodyparts["spines"]
|
|
if(!default_part || default_part == "None")
|
|
H.dna.features["spines"] = H.dna.species.mutant_bodyparts["spines"] = spines
|
|
H.update_body()
|
|
|
|
/obj/item/organ/tail/lizard/Remove(mob/living/carbon/human/H, special = FALSE)
|
|
..()
|
|
if(istype(H))
|
|
H.dna.species.mutant_bodyparts -= "tail_lizard"
|
|
H.dna.species.mutant_bodyparts -= "spines"
|
|
color = "#" + H.dna.features["mcolor"]
|
|
tail_type = H.dna.features["tail_lizard"]
|
|
spines = H.dna.features["spines"]
|
|
H.update_body()
|
|
|
|
/obj/item/organ/tail/lizard/before_organ_replacement(obj/item/organ/replacement)
|
|
. = ..()
|
|
var/obj/item/organ/tail/lizard/new_tail = replacement
|
|
|
|
if(!istype(new_tail))
|
|
return
|
|
|
|
new_tail.tail_type = tail_type
|
|
new_tail.spines = spines
|
|
*/
|
|
//SKYRAT EDIT REMOVAL END
|
|
|
|
/obj/item/organ/tail/monkey
|
|
name = "monkey tail"
|
|
desc = "A severed monkey tail. Does not look like a banana."
|
|
tail_type = "Monkey"
|
|
icon_state = "severedmonkeytail"
|
|
|
|
//SKYRAT EDIT REMOVAL BEGIN - CUSTOMIZATION
|
|
/*
|
|
/obj/item/organ/tail/monkey/Insert(mob/living/carbon/human/H, special = FALSE, drop_if_replaced = TRUE)
|
|
..()
|
|
if(istype(H))
|
|
if(!("tail_monkey" in H.dna.species.mutant_bodyparts))
|
|
H.dna.species.mutant_bodyparts |= "tail_monkey"
|
|
H.dna.features["tail_monkey"] = tail_type
|
|
H.update_body()
|
|
|
|
/obj/item/organ/tail/monkey/Remove(mob/living/carbon/human/H, special = FALSE)
|
|
..()
|
|
if(istype(H))
|
|
H.dna.features["tail_monkey"] = "None"
|
|
H.dna.species.mutant_bodyparts -= "tail_monkey"
|
|
H.update_body()
|
|
*/
|
|
//SKYRAT EDIT REMOVAL END
|