[MIRROR] You can now pick the limb you want replaced with the Prosthetic Limb Quirk. [MDB IGNORE] (#23961)

* You can now pick the limb you want replaced with the Prosthetic Limb Quirk. (#78517)

## About The Pull Request

The Prosthetic Limb quirk allows you to pick the limb you want. The
default is still random
## Why It's Good For The Game

Good for character customization, which is always nice. Statics who got
a specific limb replaced can now represent that properly in-game.
Also, this makes the quirk show up on the dummy on the character
customization again. This *does* cause a slight issue where when you
switch to another character, it keeps the previous' skin color, but it's
minor enough that i think the benefits are worth the drawback. If asked
i will make it not appear on the dummy though.
## Changelog
DATA_, with great help from Kapu🆑
add: You can now choose the prosthetic you want with the Prosthetic Limb
quirk.
/🆑

* You can now pick the limb you want replaced with the Prosthetic Limb Quirk.

---------

Co-authored-by: DATAxPUNGED <44149906+DATA-xPUNGED@users.noreply.github.com>
This commit is contained in:
SkyratBot
2023-09-27 18:57:49 -04:00
committed by GitHub
co-authored by DATAxPUNGED
parent abf119d96f
commit 325b399ba3
5 changed files with 43 additions and 20 deletions
@@ -0,0 +1,17 @@
/datum/preference/choiced/prosthetic
category = PREFERENCE_CATEGORY_SECONDARY_FEATURES
savefile_key = "prosthetic"
savefile_identifier = PREFERENCE_CHARACTER
/datum/preference/choiced/prosthetic/init_possible_values()
return list("Random") + GLOB.limb_choice
/datum/preference/choiced/prosthetic/is_accessible(datum/preferences/preferences)
. = ..()
if (!.)
return FALSE
return "Prosthetic Limb" in preferences.all_quirks
/datum/preference/choiced/prosthetic/apply_to_human(mob/living/carbon/human/target, value)
return