mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 10:43:20 +00:00
[MIRROR] refactors most spans (#9139)
Co-authored-by: Heroman3003 <31296024+Heroman3003@users.noreply.github.com> Co-authored-by: Kashargul <KashL@t-online.de>
This commit is contained in:
@@ -106,11 +106,11 @@
|
||||
for(var/obj/machinery/atmospherics/M in loc)
|
||||
if(M == src) continue
|
||||
if((M.pipe_flags & pipe_flags & PIPING_ONE_PER_TURF)) //Only one dense/requires density object per tile, eg connectors/cryo/heater/coolers.
|
||||
visible_message("<span class='warning'>\The [src]'s cannot be connected, something is hogging the tile!</span>")
|
||||
visible_message(span_warning("\The [src]'s cannot be connected, something is hogging the tile!"))
|
||||
return TRUE
|
||||
if((M.piping_layer != piping_layer) && !((M.pipe_flags | flags) & PIPING_ALL_LAYER)) // Pipes on different layers can't block each other unless they are ALL_LAYER
|
||||
continue
|
||||
if(M.get_init_dirs() & get_init_dirs()) // matches at least one direction on either type of pipe
|
||||
visible_message("<span class='warning'>\The [src]'s connector can't be connected, there is already a pipe at that location!</span>")
|
||||
visible_message(span_warning("\The [src]'s connector can't be connected, there is already a pipe at that location!"))
|
||||
return TRUE
|
||||
return FALSE
|
||||
|
||||
Reference in New Issue
Block a user