mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-30 19:41:56 +00:00
The var will be used to store the various coloring that happen for the atom so that we can separate paint coloring from color that must be inherent to the atom (an initial color for example), or from certain coloring effect like revenant's blight, mob electrocution's black color, admin edit of the color var, green color from holding the greentext item, etc. The list has four elements, used for four categories: ADMIN_COLOUR_PRIORITY for admin varedits and very rate color effect like holding the greentext item (and other effects that should prime over any other potential source of coloring even temporary effects). TEMPORARY_COLOUR_PRIORITY for short color effects like revenant blight on mob, mob electrocution making you all black for a couple seconds, effects that should be appearing above paint coloring. WASHABLE_COLOUR_PRIORITY for pretty much all paint coloring like colorful reagent on mobs, coloring turfs with paint, etc. FIXED_COLOUR_PRIORITY for color inherent to the atom, like a blob's color, any object with a color value given in its definition. Fixes electocution animation on mob not making the mob all black (with the skeleton overlay blinking over it) Spray cleaner and soap can now wash paint off mobs, turfs and objects.
73 lines
3.6 KiB
Plaintext
73 lines
3.6 KiB
Plaintext
// The detachment and attachment of lizard tails
|
|
// Dismemberment lite; can/should be generalized aka augs when we get more mutant parts and/or for actual dismemberment
|
|
|
|
// TAIL REMOVAL
|
|
|
|
/datum/surgery/tail_removal
|
|
name = "tail removal"
|
|
steps = list(/datum/surgery_step/sever_tail, /datum/surgery_step/close)
|
|
species = list(/mob/living/carbon/human)
|
|
possible_locs = list("groin")
|
|
|
|
/datum/surgery/tail_removal/can_start(mob/user, mob/living/carbon/target)
|
|
var/mob/living/carbon/human/L = target
|
|
if(("tail_lizard" in L.dna.species.mutant_bodyparts) || ("waggingtail_lizard" in L.dna.species.mutant_bodyparts))
|
|
return 1
|
|
return 0
|
|
|
|
/datum/surgery_step/sever_tail
|
|
name = "sever tail"
|
|
implements = list(/obj/item/weapon/scalpel = 100, /obj/item/weapon/circular_saw = 100, /obj/item/weapon/melee/energy/sword/cyborg/saw = 100, /obj/item/weapon/melee/arm_blade = 80, /obj/item/weapon/twohanded/required/chainsaw = 80, /obj/item/weapon/mounted_chainsaw = 80, /obj/item/weapon/twohanded/fireaxe = 50, /obj/item/weapon/hatchet = 40, /obj/item/weapon/kitchen/knife/butcher = 25)
|
|
time = 64
|
|
|
|
/datum/surgery_step/sever_tail/preop(mob/user, mob/living/carbon/target, target_zone, obj/item/tool, datum/surgery/surgery)
|
|
user.visible_message("[user] begins to sever [target]'s tail!", "<span class='notice'>You begin to sever [target]'s tail...</span>")
|
|
|
|
/datum/surgery_step/sever_tail/success(mob/user, mob/living/carbon/target, target_zone, obj/item/tool, datum/surgery/surgery)
|
|
var/mob/living/carbon/human/L = target
|
|
user.visible_message("[user] severs [L]'s tail!", "<span class='notice'>You sever [L]'s tail.</span>")
|
|
if("tail_lizard" in L.dna.species.mutant_bodyparts)
|
|
L.dna.species.mutant_bodyparts -= "tail_lizard"
|
|
else if("waggingtail_lizard" in L.dna.species.mutant_bodyparts)
|
|
L.dna.species.mutant_bodyparts -= "waggingtail_lizard"
|
|
if("spines" in L.dna.features)
|
|
L.dna.features -= "spines"
|
|
var/obj/item/severedtail/S = new(get_turf(target))
|
|
S.add_atom_colour("#[L.dna.features["mcolor"]]", FIXED_COLOUR_PRIORITY)
|
|
S.markings = "[L.dna.features["tail"]]"
|
|
L.update_body()
|
|
return 1
|
|
|
|
// TAIL ATTACHMENT
|
|
|
|
/datum/surgery/tail_attachment
|
|
name = "tail attachment"
|
|
steps = list(/datum/surgery_step/incise, /datum/surgery_step/clamp_bleeders, /datum/surgery_step/retract_skin, /datum/surgery_step/replace, /datum/surgery_step/attach_tail, /datum/surgery_step/close)
|
|
species = list(/mob/living/carbon/human)
|
|
possible_locs = list("groin")
|
|
|
|
/datum/surgery/tail_attachment/can_start(mob/user, mob/living/carbon/target)
|
|
var/mob/living/carbon/human/L = target
|
|
if(!("tail_lizard" in L.dna.species.mutant_bodyparts) && !("waggingtail_lizard" in L.dna.species.mutant_bodyparts))
|
|
return 1
|
|
return 0
|
|
|
|
/datum/surgery_step/attach_tail
|
|
name = "attach tail"
|
|
implements = list(/obj/item/severedtail = 100)
|
|
time = 64
|
|
|
|
/datum/surgery_step/attach_tail/preop(mob/user, mob/living/carbon/target, target_zone, obj/item/tool, datum/surgery/surgery)
|
|
user.visible_message("[user] begins to attach a tail to [target]!", "<span class='notice'>You begin to attach the tail to [target]...</span>")
|
|
|
|
/datum/surgery_step/attach_tail/success(mob/user, mob/living/carbon/target, target_zone, obj/item/tool, datum/surgery/surgery)
|
|
var/mob/living/carbon/human/L = target
|
|
user.visible_message("[user] gives [L] a tail!", "<span class='notice'>You give [L] a tail. It adjusts to [L]'s melanin.</span>") // fluff for color
|
|
if(!(L.dna.features["mcolor"]))
|
|
L.dna.features["mcolor"] = tool.color
|
|
var/obj/item/severedtail/T = tool
|
|
L.dna.features["tail_lizard"] = T.markings
|
|
L.dna.species.mutant_bodyparts += "tail_lizard"
|
|
qdel(tool)
|
|
L.update_body()
|
|
return 1 |