Skip to content

Commit

Permalink
Readability Pass to Advanced Medical Tools (tgstation#82225)
Browse files Browse the repository at this point in the history
Update the sprites of the advanced surgical toolset, giving them
distinct colors and updating their lighting to reduce shades and
increase visual readability at normal resolutions.

![image](https://github.com/tgstation/tgstation/assets/32783144/4daa4f95-2415-4d60-a666-361ebfc52281)

![image](https://github.com/tgstation/tgstation/assets/32783144/b3dfba7b-3db9-42ab-b088-a6e592a3297a)

![image](https://github.com/tgstation/tgstation/assets/32783144/65efec62-aaec-4e86-8a3c-5a57aa08198e)

Currently, the advanced surgical toolset over-relies on the tooltip to
communicate item state quickly and accurately. This PR adds both color
differentials, and enhances the shape of the existing tools to help a
player tell them apart quickly and accurately. Additionally, it assists
in defining the general shape of the item with cleaned up shading to
decrease noisy patterns in the sprite.
:cl:
image: Updated the Advanced Surgical Tool's sprites
code: Updated the Advanced Surgical Tool's light code
/:cl:
  • Loading branch information
Alecksohs authored and Absolucy committed Jun 23, 2024
1 parent 4cc0e16 commit c558e1e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions code/modules/surgery/tools.dm
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
w_class = WEIGHT_CLASS_NORMAL
toolspeed = 0.7
light_system = OVERLAY_LIGHT
light_outer_range = 1
light_outer_range = 1.5
light_color = COLOR_SOFT_RED

/obj/item/cautery/advanced/Initialize(mapload)
Expand All @@ -101,7 +101,13 @@
/obj/item/cautery/advanced/proc/on_transform(obj/item/source, mob/user, active)
SIGNAL_HANDLER

tool_behaviour = (active ? TOOL_DRILL : TOOL_CAUTERY)
if(active)
tool_behaviour = TOOL_DRILL
set_light_color(LIGHT_COLOR_BLUE)
else
tool_behaviour = TOOL_CAUTERY
set_light_color(LIGHT_COLOR_ORANGE)

balloon_alert(user, "lenses set to [active ? "drill" : "mend"]")
playsound(user ? user : src, 'sound/weapons/tap.ogg', 50, TRUE)
return COMPONENT_NO_DEFAULT_MESSAGE
Expand Down Expand Up @@ -338,7 +344,7 @@
w_class = WEIGHT_CLASS_NORMAL
toolspeed = 0.7
light_system = OVERLAY_LIGHT
light_outer_range = 1
light_outer_range = 1.5
light_color = LIGHT_COLOR_BLUE
sharpness = SHARP_EDGED

Expand Down Expand Up @@ -366,10 +372,10 @@

if(active)
tool_behaviour = TOOL_SAW
set_light_range(2)
set_light_color(LIGHT_COLOR_ORANGE)
else
tool_behaviour = TOOL_SCALPEL
set_light_range(1)
set_light_color(LIGHT_COLOR_BLUE)

balloon_alert(user, "[active ? "enabled" : "disabled"] bone-cutting mode")
playsound(user ? user : src, 'sound/machines/click.ogg', 50, TRUE)
Expand Down
Binary file modified icons/obj/medical/surgery_tools.dmi
Binary file not shown.

0 comments on commit c558e1e

Please sign in to comment.