Files
Bubberstation/code/game/objects/items
SkyratBot a9d2ce4c2e [MIRROR] Adds a check to prevent race condition runtimes by cigarettes. (#28579)
* Adds a check to prevent race condition runtimes by cigarettes. (#84494)

## About The Pull Request

Yesterday I was observing a few rounds and skimmed through the list for
any easy runtime fixes. Here was one I found.

In the `make_cig_smoke()` by cigarettes, if particles weren't setup by
the time it got to the next line, it would cause this runtime. This adds
a ?. (called an elvis operator, fun fact) so that if
`cig_smoke.particles` isn't there, it won't runtime.

## Why It's Good For The Game

Less runtimes, cleaner code results on live.

## Changelog

No player facing changes.

* Adds a check to prevent race condition runtimes by cigarettes.

---------

Co-authored-by: ArcaneMusic <41715314+ArcaneMusic@users.noreply.github.com>
2024-07-04 10:41:42 +05:30
..
2024-06-24 09:08:20 +05:30
2024-06-24 09:08:09 +05:30