4 Commits

Author SHA1 Message Date
MrMelbert 65c41f0cb6 Cutting an airlock's ID wire prevents ID usage again (#96195) 2026-06-01 23:20:53 -04:00
LT3 501983aba4 Add emergency access/red alert access to airlock unit test (#94886)
## About The Pull Request

Adds emergency access and red alert access as tests in the door access
unit test.

## Why It's Good For The Game

Only two things are infinite, the universe and human stupidity, and I'm
not sure about the former.

## Changelog

🆑 LT3
code: Code unit testing now checks emergency access and red alert access
/🆑
2026-01-16 17:14:02 -05:00
MrMelbert d920ae7315 Fix telekinesis / ai / mecha door usage + Adds more airlock access unit tests (#91799)
## About The Pull Request

Fixes #91795
Fixes #91790

Checking for `MOBILITY_USE` in `allowed` has too broad of an effect,
catching mobs which don't have `MOBILITY_USE` but should otherwise be
able to use doors.

I checked with JFW and this was done to prevent spirits from accessing
doors on click. So I just moved it to attack hand.

Telekinesis interactions was also fixed by adding a `check_access(null)`
check back to `allowed` as it used to have. Not sure why it was ever
removed.

## Changelog

🆑 Melbert
fix: AIs can open windoors
fix: Mechas can open airlocks
fix: Handcuffed people can open public airlocks
fix: Telekinesis can open public airlocks
/🆑
2025-06-26 08:21:42 +10:00
san7890 be149d219c Unit Tests Door/Airlock Access Working (#72461)
I screwed up with my access changes (on my local, I made sure I could
still open doors rather than be kept out of places), and #72458 fixes
that. However, let's also add a unit test to prevent that regression
again. We just do five different access "checks", and see if all five
different scenarios should work as intended.

As you can see, this PR will not pass unit tests. This is supposed to
happen, because at the time of this PR is opened, we will be in a
regression state that the aforementioned PR fixes. When the
aforementioned PR is merged, it should clear CI without any difficulties
(I know this because I ran the unit test myself)
2023-01-07 11:12:28 +00:00