Files
Bubberstation/code/datums/quirks/negative_quirks/quadruple_amputee.dm
Artemchik542 fca1e61371 Quirk "quadruple amputee" now will return your original limbs back if you off it (#90745)
## About The Pull Request

Then you try to remove quirk - your limbs didn't change back to normal

**Visual bug only**, originally found on downstream. Also confirmed on
up-to-date TG-localhost


![error](https://github.com/user-attachments/assets/33c280d2-9aa9-4ccc-bca2-3977a2e723de)

## Why It's Good For The Game

Bug-Fix always good

## Changelog

🆑
fix: Quirk "quadruple amputee" now will return your original limbs back
if you off it
qol: Quirk "prosthetic limb" now resets more correctly
/🆑

---------

Co-authored-by: Maximal08 <73069825+Maximal08@users.noreply.github.com>
Co-authored-by: Ghom <42542238+Ghommie@users.noreply.github.com>
2025-05-16 22:40:49 -07:00

31 lines
1.7 KiB
Plaintext

/datum/quirk/quadruple_amputee
name = "Quadruple Amputee"
desc = "Oops! All Prosthetics! Due to some truly cruel cosmic punishment, all your limbs have been replaced with surplus prosthetics."
icon = "tg-prosthetic-full"
value = -6
medical_record_text = "During physical examination, patient was found to have all low-budget prosthetic limbs."
hardcore_value = 6
quirk_flags = QUIRK_HUMAN_ONLY|QUIRK_CHANGES_APPEARANCE
mail_goodies = list(/obj/item/weldingtool/mini, /obj/item/stack/cable_coil/five)
/datum/quirk/quadruple_amputee/add_unique(client/client_source)
var/mob/living/carbon/human/human_holder = quirk_holder
human_holder.del_and_replace_bodypart(new /obj/item/bodypart/arm/left/robot/surplus, special = TRUE)
human_holder.del_and_replace_bodypart(new /obj/item/bodypart/arm/right/robot/surplus, special = TRUE)
human_holder.del_and_replace_bodypart(new /obj/item/bodypart/leg/left/robot/surplus, special = TRUE)
human_holder.del_and_replace_bodypart(new /obj/item/bodypart/leg/right/robot/surplus, special = TRUE)
/datum/quirk/quadruple_amputee/post_add()
to_chat(quirk_holder, span_bolddanger("All your limbs have been replaced with surplus prosthetics. They are fragile and will easily come apart under duress. \
Additionally, you need to use a welding tool and cables to repair them, instead of bruise packs and ointment."))
/datum/quirk/quadruple_amputee/remove()
if(QDELING(quirk_holder))
return
var/mob/living/carbon/human/human_holder = quirk_holder
human_holder.reset_to_original_bodypart(BODY_ZONE_L_ARM)
human_holder.reset_to_original_bodypart(BODY_ZONE_R_ARM)
human_holder.reset_to_original_bodypart(BODY_ZONE_L_LEG)
human_holder.reset_to_original_bodypart(BODY_ZONE_R_LEG)