mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 10:43:20 +00:00
Pipes bugfix:
- trowing pipes correctly rotates them; - meters unwrenching; - pipe dispenser can be unwrenched and pulled, wrench back to use; - unused pipes can be returned to dispenser; - Probably fixed bug with non-working connectors; Windows now are always shown above grilles. Pipes now are always shown above lattice. Some other things. git-svn-id: http://tgstation13.googlecode.com/svn/trunk@830 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
@@ -131,7 +131,7 @@ obj/machinery/atmospherics/valve
|
||||
initialize()
|
||||
if(node1 && node2) return
|
||||
|
||||
var/connect_directions
|
||||
/* var/connect_directions
|
||||
|
||||
switch(dir)
|
||||
if(NORTH)
|
||||
@@ -162,7 +162,16 @@ obj/machinery/atmospherics/valve
|
||||
node2 = target
|
||||
break
|
||||
if(node1)
|
||||
break
|
||||
break*/
|
||||
for(var/obj/machinery/atmospherics/target in get_step(src,dir))
|
||||
if(target.initialize_directions & get_dir(target,src))
|
||||
node1 = target
|
||||
break
|
||||
|
||||
for(var/obj/machinery/atmospherics/target in get_step(src,turn(dir,180)))
|
||||
if(target.initialize_directions & get_dir(target,src))
|
||||
node2 = target
|
||||
break
|
||||
|
||||
build_network()
|
||||
if(!network_node1 && node1)
|
||||
@@ -283,5 +292,5 @@ obj/machinery/atmospherics/valve
|
||||
"[user] unfastens \the [src].", \
|
||||
"\blue You have unfastened \the [src].", \
|
||||
"You hear ratchet.")
|
||||
new /obj/item/weapon/pipe(loc, make_from=src)
|
||||
new /obj/item/pipe(loc, make_from=src)
|
||||
del(src)
|
||||
|
||||
Reference in New Issue
Block a user