Airlock open delay audit (#69905)

About The Pull Request

A: Mineral doors no longer take 6 SECONDS to open if you bump anything beforehand. Holy shit why would you do this.
B: Airlocks no longer require you to have not bumped anything in a second, lowered to 0.3 seconds. This is safe because I've moved shock immunity to its own logic. This should make opening doors feel less horrible
Why It's Good For The Game

Feels better.
Changelog

cl
balance: Airlocks will open on bump in series much faster now. As a tradeoff, you're immune to shocks from them for a second after you last got shocked by one.
fix: Mineral doors will no longer take 6 WHOLE SECONDS to open if you've bumped something else recently
/cl
This commit is contained in:
LemonInTheDark
2022-09-27 00:09:46 -07:00
committed by GitHub
parent d283c72834
commit cee07f804c
4 changed files with 15 additions and 9 deletions
@@ -76,13 +76,11 @@
if(isSwitchingStates || !anchored)
return
if(isliving(user))
var/mob/living/M = user
if(world.time - M.last_bumped <= 60)
return //NOTE do we really need that?
if(M.client)
if(iscarbon(M))
var/mob/living/carbon/C = M
if(!C.handcuffed)
var/mob/living/matters = user
if(matters.client)
if(iscarbon(matters))
var/mob/living/carbon/carbon_user = matters
if(!carbon_user.handcuffed)
SwitchState()
else
SwitchState()