Skip to content

Commit

Permalink
Surgical Tables XVIII: The Return: The Saga Continues (final)[1] (tgs…
Browse files Browse the repository at this point in the history
…tation#76634)

## About The Pull Request

Wow look at this beautiful surgical table, sprited by imaginos

![image](https://github.com/tgstation/tgstation/assets/7483112/a38ebfb5-813f-409b-83ef-9593cbd4de24)

Whoa look it even has the right offsets

![image](https://github.com/tgstation/tgstation/assets/7483112/58cebe0f-4d33-41a5-ae60-22a4b11381e4)

## Why It's Good For The Game

This sprite was all ready to go but the person who made the PR didn't
know how to apply the bed offsets so I have nobly stepped up to the
challenge

## Changelog

:cl: Imaginos
image: A new sprite for oeprating tables
/:cl:
  • Loading branch information
Jacquerel authored Jul 8, 2023
1 parent f52886b commit 65eab73
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions code/game/objects/structures/tables_racks.dm
Original file line number Diff line number Diff line change
Expand Up @@ -751,6 +751,7 @@
return
RegisterSignal(potential_patient, COMSIG_LIVING_SET_BODY_POSITION, PROC_REF(recheck_patient))
recheck_patient(potential_patient) // In case the mob is already lying down before they entered.
potential_patient.pixel_y = potential_patient.base_pixel_y

/// Unmark the potential patient.
/obj/structure/table/optable/proc/unmark_patient(datum/source, mob/living/carbon/potential_patient)
Expand All @@ -760,6 +761,7 @@
if(potential_patient == patient)
recheck_patient(patient) // Can just set patient to null, but doing the recheck lets us find a replacement patient.
UnregisterSignal(potential_patient, COMSIG_LIVING_SET_BODY_POSITION)
potential_patient.pixel_y = potential_patient.base_pixel_y + potential_patient.body_position_pixel_y_offset

/// Someone on our tile just lied down, got up, moved in, or moved out.
/// potential_patient is the mob that had one of those four things change.
Expand Down
Binary file modified icons/obj/medical/surgery_table.dmi
Binary file not shown.

0 comments on commit 65eab73

Please sign in to comment.