Thread Rating:
  • 4 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Feature] Synth-limbs can be attached without surgery.
#1
I just had a round where a botanist made a synth limb to replace a limb I had lost. This was the first time it has ever happened to me since synth limbs are so completely useless. But while it was happening I thought to myself that it would be a lot better if I could attach the limb on the scene in the bar and not have to worry about medical to get it stapled on, when I already have the limb he worked so hard to make.

Now, all synth limbs can simply be attached to a person by clicking the appropriate synth limb on a person while selecting the right target zone.

Video: https://streamable.com/m39et

Technical notes:

Okay so this is a really really simple patch. I just add a check in the attach proc on obj/item/parts and the attack proc in /obj/item/parts/human_parts/ to see if src is a synth limb. 

Unfortunately, because of the way those objects exist in the heirarchy, I couldn't do something as simple as override those procs for synth organs in particular or just a single istype(src, /obj/item/parts/human_parts/synth) because they are pathed as "/obj/item/parts/human_parts/leg/left/synth". So I had to spell it all out.

I technically could have overridden the appropriate procs in each synth limb obj as they exist now, but it would have amounted to MORE code than writing these two ugly if statements.

https://github.com/goonstation/goonstation-2016/pull/99
Reply


Messages In This Thread
[Feature] Synth-limbs can be attached without surgery. - by kyle2143 - 12-30-2018, 01:44 AM

Forum Jump:


Users browsing this thread: 4 Guest(s)