Merge branch 'master' into upstream-merge-11213

This commit is contained in:
Nadyr
2021-07-22 19:18:04 -04:00
committed by GitHub
36 changed files with 591 additions and 244 deletions
+9 -2
View File
@@ -15,6 +15,7 @@
var/datum/material/reinf_material
var/reinforcing = 0
var/applies_material_colour = 1
var/wall_type = /turf/simulated/wall
/obj/structure/girder/New(var/newloc, var/material_key)
..(newloc)
@@ -249,7 +250,7 @@
wall_fake = 1
var/turf/Tsrc = get_turf(src)
Tsrc.ChangeTurf(/turf/simulated/wall)
Tsrc.ChangeTurf(wall_type)
var/turf/simulated/wall/T = get_turf(src)
T.set_material(M, reinf_material, girder_material)
if(wall_fake)
@@ -397,7 +398,7 @@
if(RCD_FLOORWALL)
to_chat(user, span("notice", "You finish a wall."))
// This is mostly the same as using on a floor. The girder's material is preserved, however.
T.ChangeTurf(/turf/simulated/wall)
T.ChangeTurf(wall_type)
var/turf/simulated/wall/new_T = get_turf(src) // Ref to the wall we just built.
// Apparently set_material(...) for walls requires refs to the material singletons and not strings.
// This is different from how other material objects with their own set_material(...) do it, but whatever.
@@ -412,3 +413,9 @@
qdel(src)
return TRUE
/obj/structure/girder/bay
wall_type = /turf/simulated/wall/bay
/obj/structure/girder/eris
wall_type = /turf/simulated/wall/eris
+1 -1
View File
@@ -620,4 +620,4 @@
/obj/effect/low_wall_spawner/eris/rphoron
icon_state = "sp_rphoron"
window_type = /obj/structure/window/eris/phoronreinforced
window_type = /obj/structure/window/eris/phoronreinforced
+2
View File
@@ -273,12 +273,14 @@
to_chat(user, "<span class='notice'>You have [state == 1 ? "un" : ""]fastened the window [state ? "from" : "to"] the frame.</span>")
else if(reinf && state == 0)
anchored = !anchored
update_nearby_tiles(need_rebuild=1)
update_nearby_icons()
update_verbs()
playsound(src, W.usesound, 75, 1)
to_chat(user, "<span class='notice'>You have [anchored ? "" : "un"]fastened the frame [anchored ? "to" : "from"] the floor.</span>")
else if(!reinf)
anchored = !anchored
update_nearby_tiles(need_rebuild=1)
update_nearby_icons()
update_verbs()
playsound(src, W.usesound, 75, 1)