mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-17 05:32:27 +00:00
Fixes #7261 Fixes placed posters being visible on both sides of the wall. Fixes the poster_type var used to specify certain poster designs on the map not working correctly, and makes the nuke op shuttle poster an actual poster. Poster placement now belongs to the poster object instead of turf/simulated/ Posters can now be placed on unsimulated and shuttle walls.
10 lines
444 B
Plaintext
10 lines
444 B
Plaintext
// Returns the atom sitting on the turf.
|
|
// For example, using this on a disk, which is in a bag, on a mob, will return the mob because it's on the turf.
|
|
/proc/get_atom_on_turf(var/atom/movable/M)
|
|
var/atom/mloc = M
|
|
while(mloc && mloc.loc && !istype(mloc.loc, /turf/))
|
|
mloc = mloc.loc
|
|
return mloc
|
|
|
|
/proc/iswall(turf/T)
|
|
return (istype(T, /turf/simulated/wall) || istype(T, /turf/unsimulated/wall) || istype(T, /turf/simulated/shuttle/wall)) |