mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-11 15:14:27 +01:00
Closets:
- Added wall mounted first aid closet for later use with the medicine and alternative treatments project - Added lockable mounted medical closet for later use (medicine project) - Wall mounted closets can now be walked on even when closed (set the wall_mounted variable to 1) - does not apply to fire extinguisher and axe closet as those use special code. - Set hydrant closet as wall-mounted for later use (dangercon project) Bugfixes: - If you open and close an emagged closet, it will now show as broken, not normal unlocked. git-svn-id: http://tgstation13.googlecode.com/svn/trunk@1877 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
return get_turf(src)
|
||||
|
||||
/obj/closet/CanPass(atom/movable/mover, turf/target, height=0, air_group=0)
|
||||
if(air_group || (height==0)) return 1
|
||||
if(air_group || (height==0 || wall_mounted)) return 1
|
||||
|
||||
return opened
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
return get_turf(src)
|
||||
|
||||
/obj/secure_closet/CanPass(atom/movable/mover, turf/target, height=0, air_group=0)
|
||||
if(air_group || (height==0)) return 1
|
||||
if(air_group || (height==0) || wall_mounted) return 1
|
||||
|
||||
return src.opened
|
||||
|
||||
@@ -69,7 +69,10 @@
|
||||
M.client.eye = src
|
||||
|
||||
M.loc = src
|
||||
src.icon_state = src.icon_closed
|
||||
if(broken)
|
||||
src.icon_state = src.icon_off
|
||||
else
|
||||
src.icon_state = src.icon_closed
|
||||
src.opened = 0
|
||||
playsound(src.loc, 'click.ogg', 15, 1, -3)
|
||||
return 1
|
||||
|
||||
Reference in New Issue
Block a user