Files
Bubberstation/code/datums/ai/hauntium
SkyratBot ab16ced352 [MIRROR] Fixes Hauntium runtiming to hell (get it) due to real fake weakrefs [MDB IGNORE] (#11447)
* Fixes Hauntium runtiming to hell (get it) due to real fake weakrefs (#64779)

Hauntium AI was recently changed to use weakrefs to cut back on hard deletes
Unfortunately, not all cases of hauntium AI assigning references were swapped to weakrefs.
Meaning the haunting list ended up being some weird combination of hard references to mobs and weak references.

These hard references in the list caused a million runtimes a second because the ai was, of course, trying to resolve() hard references which doesn't work and it was doing it every second

Hauntium should now properly use weakrefs in the cases it's used in.

Spooky things actually haunt again

* Fixes Hauntium runtiming to hell (get it) due to real fake weakrefs

Co-authored-by: MrMelbert <51863163+MrMelbert@users.noreply.github.com>
2022-02-11 10:30:11 +00:00
..