Skip to content

Commit

Permalink
[MIRROR] Readability Pass to Advanced Medical Tools (#1652) (#2577)
Browse files Browse the repository at this point in the history
* Readability Pass to Advanced Medical Tools (#82225)

## About The Pull Request

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)


## Why It's Good For The Game

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.
## Changelog
:cl:
image: Updated the Advanced Surgical Tool's sprites
code: Updated the Advanced Surgical Tool's light code
/:cl:

* Readability Pass to Advanced Medical Tools

---------

Co-authored-by: NovaBot <[email protected]>
Co-authored-by: Alexios <[email protected]>
  • Loading branch information
3 people authored Mar 27, 2024
1 parent 78a4213 commit 530cf85
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 @@ -95,7 +95,7 @@
toolspeed = 0.7
light_system = OVERLAY_LIGHT
light_range = 1.5
light_power = 1.2
light_power = 0.4
light_color = COLOR_SOFT_RED

/obj/item/cautery/advanced/get_all_tool_behaviours()
Expand All @@ -121,7 +121,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 @@ -381,7 +387,7 @@
toolspeed = 0.7
light_system = OVERLAY_LIGHT
light_range = 1.5
light_power = 1.2
light_power = 0.4
light_color = LIGHT_COLOR_BLUE
sharpness = SHARP_EDGED

Expand Down Expand Up @@ -412,10 +418,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.5)
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 530cf85

Please sign in to comment.