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

Fixes brain surgery so it actually fixes your brain #4061

Merged
merged 1 commit into from
Aug 1, 2023
Merged
Show file tree
Hide file tree
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
3 changes: 2 additions & 1 deletion code/modules/organs/organ_internal.dm
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,8 @@

if(organ_status >= ORGAN_BROKEN && prob(5 * delta_time))
owner.apply_effect(1, PARALYZE)
owner.make_jittery(50)
if(owner.jitteriness < 100)
owner.make_jittery(50)
to_chat(owner, SPAN_DANGER("Your body seizes up!"))

/datum/internal_organ/brain/prosthetic //used by synthetic species
Expand Down
3 changes: 2 additions & 1 deletion code/modules/surgery/brainrepair.dm
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,11 @@

var/datum/internal_organ/brain/B = target.internal_organs_by_name["brain"]
if(B)
B.damage = 0
B.heal_damage(B.damage)
target.disabilities &= ~NERVOUS
target.sdisabilities &= ~DISABILITY_DEAF
target.sdisabilities &= ~DISABILITY_MUTE
target.jitteriness = 0
target.pain.recalculate_pain()

log_interact(user, target, "[key_name(user)] finished taking bone chips out of [key_name(target)]'s brain with \the [tool], finishing [surgery].")
Expand Down
Loading