Files
Bubberstation/code/game
OrionTheFoxandGitHub 5152b75d51 Updates Greytide event to use bolt() and unbolt() rather than manually setting the locked var (#87909)
## About The Pull Request
Originally, the proc used for greytiding a door directly set `locked` to
False and then True
Now it calls `unbolt()` (if the door is locked), `open()` as usual, then
`bolt()`

The only real functional change here is that it plays the bolting sound.
Downstreams benefit more from the icon overlays updating, as doors have
Open+Bolted icon overlays there.

_(And yes, just in case, I tested to make sure the 'You hear a click!'
doesn't spam players' chats - it only shows when directly adjacent to
doors.)_
## Why It's Good For The Game
Manually setting the locked variable on airlocks skips over all the
other things in the bolt/unbolt procs, namely the icon updates. Again,
not as much a benefit here, but might help prevent future icon issues if
airlock sprites change.

Plus, hearing the whole department `Click` as the bolts all toggle
really sets the tone for the Grey Tide's arrival.
## Changelog
Hopefully this is the right tag I don't know what else would be relevant
here.

🆑
code: The Greytide event will now play bolt audio and update the icon
when toggling door bolts.
/🆑
2024-11-17 05:02:46 +01:00
..
2024-11-17 04:59:21 +01:00
2024-11-10 17:52:29 -05:00