Files
Bubberstation/code/modules/research
SkyratBot dc0dce4430 [MIRROR] Fixes some bad investigate_logs causing runtimes in somewhat important places [MDB IGNORE] (#18259)
* Fixes some bad `investigate_log`s causing runtimes in somewhat important places (#72152)

## About The Pull Request

Fixes #72150

```
[2022-12-21 19:35:38.178] runtime error: Cannot execute null.investigate log().
 - proc name: narsie act (/mob/living/narsie_act)
 -   source file: living_defense.dm,438
 -   usr: null
 -   src: Featherbottom (/mob/living/simple_animal/chicken)
 -   src.loc: the grass patch (147,154,2) (/turf/open/floor/grass)
 -   call stack:
 - Featherbottom (/mob/living/simple_animal/chicken): narsie act()
 ```

Removes `usr` from Nar'Sie act and Singularity act logs

I don't know why these were set to log in `usr`, when
A. `usr` is likely not the person getting gibbed
B. `usr` is unreliable

Case in point:
`usr` is some random person who probably helped invoke the Nar'sie rune (no idea how it choses), if they get deleted for whatever reason, `usr` seems to clear to `null` (?), which causes a `null` use and the above runtime

![image](https://user-images.githubusercontent.com/51863163/208999857-540d9caa-9df6-49b0-8f45-8b75973a32a4.png)

I also peeked around for other improper use of `usr` logs. Most of them were in `ui_act` code, which is whatever. Some where in places which had a passed user, so I replaced them. And one was in a place with no `user` passed, so I just added some sanity checking.

## Why It's Good For The Game

These are really bad places to runtime error

## Changelog

🆑 Melbert
fix: Nar'Sie will no longer bring upon the construct apocalypse when they encounter a chicken after one of the invokers were destroyed
fix: The Singularity should no longer stop gibbing people when whoever created it was destroyed
/🆑

* Fixes some bad `investigate_log`s causing runtimes in somewhat important places

Co-authored-by: MrMelbert <51863163+MrMelbert@users.noreply.github.com>
2022-12-24 21:55:18 -08:00
..
2022-11-15 06:59:06 +00:00