Fixes some display issues with the next step on the surgical computer (#27972)

* Fixes some surgical computer issues

* better naming
This commit is contained in:
Luc
2025-01-25 19:27:31 +00:00
committed by GitHub
parent e8f78062aa
commit 16684276b3
2 changed files with 12 additions and 3 deletions
+9
View File
@@ -6,6 +6,15 @@
#define TOOL_WRENCH "wrench"
#define TOOL_WELDER "welder"
GLOBAL_LIST_INIT(construction_tool_behaviors, list(
TOOL_CROWBAR,
TOOL_MULTITOOL,
TOOL_SCREWDRIVER,
TOOL_WIRECUTTER,
TOOL_WRENCH,
TOOL_WELDER
))
// Surgery tools
#define TOOL_RETRACTOR "retractor"
#define TOOL_HEMOSTAT "hemostat"
+3 -3
View File
@@ -500,15 +500,15 @@
var/list/tools = list()
for(var/tool in allowed_tools)
// only list main surgery tools. you can figure out the improvised version by trying (or reading the wiki lul)
if(tool in GLOB.surgery_tool_behaviors)
if((tool in GLOB.surgery_tool_behaviors) || ((tool in GLOB.construction_tool_behaviors) && allowed_tools[tool] == 100))
tools |= tool
if(!length(tools))
// if nothing else, just pick the first in the list.
var/atom/tool = allowed_tools[1]
tools |= tool.name
tools |= (ispath(tool)) ? tool::name : "[tool]"
return "[name] ([english_list(tools, and_text="or")])"
return "[name] ([english_list(tools, and_text=" or ")])"
/**
* Spread some nasty germs to an organ.