Files
Bubberstation/code/modules/modular_computers/computers
MrMelbert 207ffd13cc Fixes runtime from examining mod PCs (#81200)
## About The Pull Request

It's a classic

![image](https://github.com/tgstation/tgstation/assets/51863163/297cbecd-c32d-4c10-8c25-000d8a95310c)

`EXAMINE_HINT(x)` resolves to `"<b>" + x + "</b>"`

When placed in this line directly, you get: 

`["<b>" + HAS_TRAIT_FROM(...) ? "..." : "..." + "</b>"]`

You see the issue, right?

This resolves as you would expect: 
`("<b>" + HAS_TRAIT_FROM(...)) ? ("...") : ("..." + "</b>")`

Which, of course, runtimes as it's adding a string to an integer (0). 

By pulling it out to its own var we can get around this: 

`["<b>" + frame_or_pc + "</b>"]`

## Changelog

🆑 Melbert
fix: Fixed examining modular PCs
/🆑
2024-02-01 13:28:10 +01:00
..