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 14:27:31 -05:00
committed by GitHub
parent e8f78062aa
commit 16684276b3
2 changed files with 12 additions and 3 deletions
+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.