Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removes rank requirement from prosthetic limbs #6571

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 1 addition & 12 deletions code/modules/character_traits/robotic_limbs.dm
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,16 @@
/datum/character_trait/robo_limb
var/robo_limb_name
var/code_limb
var/additional_description = "Only usable by 2ndLts and up."
applyable = FALSE
trait_group = /datum/character_trait_group/robo_limb
cost = 1
var/minimum_ranking = 12 // MO1, so SO and up

/datum/character_trait/robo_limb/New()
..()
trait_name = "Prosthetic [robo_limb_name]"
trait_desc = "Has their [robo_limb_name] replaced with a prosthetic. [additional_description]"
trait_desc = "Has their [robo_limb_name] replaced with a prosthetic."

/datum/character_trait/robo_limb/apply_trait(mob/living/carbon/human/target, datum/equipment_preset/preset)
var/string_paygrade = preset.load_rank(target)
var/datum/paygrade/paygrade_datum = GLOB.paygrades[string_paygrade]
if(paygrade_datum?.ranking < minimum_ranking)
to_chat(target, SPAN_WARNING("You aren't a high enough rank to be eligible to have a prosthetic [robo_limb_name]!"))
return
var/obj/limb/limb = target.get_limb(code_limb)
limb.robotize()
target.update_body()
Expand All @@ -41,13 +34,9 @@
/datum/character_trait/robo_limb/left_arm
robo_limb_name = "Left Arm"
code_limb = "l_arm"
additional_description = "Only usable by Captains and up."
applyable = TRUE
minimum_ranking = 14

/datum/character_trait/robo_limb/right_arm
robo_limb_name = "Right Arm"
code_limb = "r_arm"
additional_description = "Only usable by Captains and up."
applyable = TRUE
minimum_ranking = 14
Loading