mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-22 04:24:20 +01:00
Table Climbing Block Formatting Fixes
Just a little bit of formatting improvements to the table climbing block in case of solid object, fixes issue with having "You cannot climb a the reinforced table," and specifies what object is in the way of climbing.
This commit is contained in:
@@ -52,11 +52,11 @@
|
||||
|
||||
for(var/obj/O in range(0, src))
|
||||
if(O.density == 1 && O != src && !istype(O, /obj/machinery/door/window)) //Ignores windoors, as those already block climbing, otherwise a windoor on the opposite side of a table would prevent climbing.
|
||||
user << "\red You cannot climb a [src] blocked by a solid object!"
|
||||
user << "\red You cannot climb [src], as it is blocked by \a [O]!"
|
||||
return
|
||||
for(var/turf/T in range(0, src))
|
||||
if(T.density == 1)
|
||||
user << "\red You cannot climb a [src] blocked by a solid object!"
|
||||
user << "\red You cannot climb [src], as it is blocked by \a [T]!"
|
||||
return
|
||||
var/turf/T = src.loc
|
||||
if(!T || !istype(T)) return
|
||||
|
||||
Reference in New Issue
Block a user