You can now fit basic pipes directly into wall girders.

You probably won't notice this, but it makes things slightly easier for atmos techs.

Several instances of ReplaceWithFloor changed to ReplaceWithPlating- the floor tiles under walls were annoying me. RCDs now create plating instead of floor also.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@2786 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
petethegoat@gmail.com
2011-12-23 21:09:04 +00:00
parent 19c346f8fb
commit 24df02ec4a
6 changed files with 25 additions and 13 deletions

View File

@@ -205,7 +205,7 @@
if(do_after_cooldown(target))
if(disabled) return
chassis.spark_system.start()
target:ReplaceWithFloor()
target:ReplaceWithPlating()
playsound(target, 'Deconstruct.ogg', 50, 1)
chassis.give_power(energy_drain)
else if (istype(target, /turf/simulated/floor))
@@ -232,7 +232,7 @@
set_ready_state(0)
if(do_after_cooldown(target))
if(disabled) return
target:ReplaceWithFloor()
target:ReplaceWithPlating()
playsound(target, 'Deconstruct.ogg', 50, 1)
chassis.spark_system.start()
chassis.use_power(energy_drain*2)

View File

@@ -232,7 +232,7 @@
if(!cell.use(30)) return
user << "Building Floor..."
activate()
A:ReplaceWithFloor()
A:ReplaceWithPlating()
return
if(istype(A, /turf/simulated/floor))
@@ -263,7 +263,7 @@
playsound(src.loc, 'click.ogg', 50, 1)
if(do_after(user, 40))
activate()
A:ReplaceWithFloor()
A:ReplaceWithPlating()
return
if(istype(A, /turf/simulated/wall/r_wall))

View File

@@ -79,7 +79,7 @@ RCD
playsound(src.loc, 'Deconstruct.ogg', 50, 1)
spark_system.set_up(5, 0, src)
src.spark_system.start()
A:ReplaceWithFloor()
A:ReplaceWithPlating()
matter--
user << "The RCD now holds [matter]/30 matter-units."
desc = "A RCD. It currently holds [matter]/30 matter-units."
@@ -124,7 +124,7 @@ RCD
if(!disabled && matter >= 4)
spark_system.set_up(5, 0, src)
src.spark_system.start()
A:ReplaceWithFloor()
A:ReplaceWithPlating()
playsound(src.loc, 'Deconstruct.ogg', 50, 1)
matter -= 4
user << "The RCD now holds [matter]/30 matter-units."

View File

@@ -129,6 +129,7 @@ var/global/list/datum/stack_recipe/r_metal_recipes = list ( \
return
/obj/item/stack/tile/steel/proc/build(turf/S as turf)
var/turf/simulated/floor/W = S.ReplaceWithFloor()
W.make_plating()
S.ReplaceWithPlating()
// var/turf/simulated/floor/W = S.ReplaceWithFloor()
// W.make_plating()
return

View File

@@ -5,6 +5,7 @@ obj/structure
icon_state = "girder"
anchored = 1
density = 1
layer = 2
var/state = 0
attackby(obj/item/W as obj, mob/user as mob)
@@ -77,6 +78,8 @@ obj/structure
user << "\blue You added the plating!"
var/turf/Tsrc = get_turf(src)
Tsrc.ReplaceWithWall()
for(var/obj/machinery/atmospherics/pipe/P in Tsrc)
P.layer = 1
W:use(2)
del(src)
return
@@ -88,6 +91,8 @@ obj/structure
user << "\blue Wall fully reinforced!"
var/turf/Tsrc = get_turf(src)
Tsrc.ReplaceWithRWall()
for(var/obj/machinery/atmospherics/pipe/P in Tsrc)
P.layer = 1
if (W)
W:use(1)
del(src)
@@ -100,6 +105,12 @@ obj/structure
new/obj/structure/girder/reinforced( src.loc )
del(src)
return
else if(istype(W, /obj/item/pipe))
var/obj/item/pipe/P = W
if (P.pipe_type in list(0, 1, 5)) //simple pipes, simple bends, and simple manifolds.
user.drop_item()
P.loc = src.loc
user << "\blue You fit the pipe into the [src]!"
else
..()

View File

@@ -272,7 +272,7 @@
new /obj/item/stack/sheet/metal( src )
new /obj/item/stack/sheet/metal( src )
ReplaceWithFloor(explode)
ReplaceWithPlating(explode)
/turf/simulated/wall/examine()
set src in oview(1)
@@ -354,7 +354,7 @@
O.anchored = 1
O.density = 1
O.layer = 5
var/turf/simulated/floor/F = ReplaceWithFloor()
var/turf/simulated/floor/F = ReplaceWithPlating()
F.burn_tile()
F.icon_state = "wall_thermite"
user << "\red The thermite melts the wall."
@@ -390,7 +390,7 @@
O.anchored = 1
O.density = 1
O.layer = 5
var/turf/simulated/floor/F = ReplaceWithFloor()
var/turf/simulated/floor/F = ReplaceWithPlating()
F.burn_tile()
F.icon_state = "wall_thermite"
user << "\red The thermite melts the wall."
@@ -464,7 +464,7 @@
O.anchored = 1
O.density = 1
O.layer = 5
var/turf/simulated/floor/F = ReplaceWithFloor()
var/turf/simulated/floor/F = ReplaceWithPlating()
F.burn_tile()
F.icon_state = "wall_thermite"
user << "\red The thermite melts the wall."
@@ -507,7 +507,7 @@
O.anchored = 1
O.density = 1
O.layer = 5
var/turf/simulated/floor/F = ReplaceWithFloor()
var/turf/simulated/floor/F = ReplaceWithPlating()
F.burn_tile()
F.icon_state = "wall_thermite"
user << "\red The thermite melts the wall."