mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 02:09:41 +00:00
Merge pull request #5474 from Zuhayr/master
Fixes climbing through shutters.
This commit is contained in:
@@ -47,7 +47,10 @@
|
||||
if (!can_touch(user) || !climbable)
|
||||
return
|
||||
|
||||
var/obj/machinery/door/poddoor/shutters/S = locate() in src.contents
|
||||
var/turf/T = src.loc
|
||||
if(!T || !istype(T)) return
|
||||
|
||||
var/obj/machinery/door/poddoor/shutters/S = locate() in T.contents
|
||||
if(S && S.density) return
|
||||
|
||||
usr.visible_message("<span class='warning'>[user] starts climbing onto \the [src]!</span>")
|
||||
@@ -58,7 +61,7 @@
|
||||
if (!can_touch(user) || !climbable)
|
||||
return
|
||||
|
||||
S = locate() in src.contents
|
||||
S = locate() in T.contents
|
||||
if(S && S.density) return
|
||||
|
||||
usr.loc = get_turf(src)
|
||||
|
||||
@@ -100,6 +100,7 @@
|
||||
for(var/metal in ore_types)
|
||||
|
||||
if(contents.len >= get_storage_capacity())
|
||||
system_error("insufficient storage space")
|
||||
active = 0
|
||||
need_player_check = 1
|
||||
update_icon()
|
||||
|
||||
Reference in New Issue
Block a user