Skip to content

Commit

Permalink
yaaaay
Browse files Browse the repository at this point in the history
  • Loading branch information
Erikafox committed Oct 7, 2024
1 parent 58d796b commit 5a01a63
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 23 deletions.
47 changes: 25 additions & 22 deletions _maps/RandomRuins/SandRuins/whitesands_cave_base.dmm
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,6 @@
},
/turf/open/floor/plating,
/area/ruin/whitesands/cave_base)
"bk" = (
/obj/structure/cable{
icon_state = "4-8"
},
/obj/item/disk/holodisk/ruin/cave_base/two{
pixel_y = 8;
pixel_x = -2
},
/turf/open/floor/plating/asteroid/whitesands/dried,
/area/overmap_encounter/planetoid/cave/explored)
"bF" = (
/obj/structure/cable{
icon_state = "1-4"
Expand Down Expand Up @@ -82,10 +72,6 @@
dir = 8
},
/obj/machinery/light/small/directional/east,
/obj/item/disk/holodisk/ruin/cave_base/six{
pixel_y = -6;
pixel_x = 6
},
/turf/open/floor/plasteel/telecomms_floor,
/area/ruin/whitesands/cave_base)
"du" = (
Expand Down Expand Up @@ -147,6 +133,10 @@
pixel_y = 7;
pixel_x = 2
},
/obj/item/disk/holodisk/ruin/cave_base/six{
pixel_y = 2;
pixel_x = -7
},
/turf/open/floor/carpet/red,
/area/ruin/whitesands/cave_base)
"ek" = (
Expand Down Expand Up @@ -517,7 +507,6 @@
"nL" = (
/obj/machinery/door/airlock/hatch,
/obj/effect/turf_decal/industrial/hatch/yellow,
/obj/effect/mapping_helpers/airlock/locked,
/obj/machinery/atmospherics/pipe/simple/scrubbers/hidden/layer2,
/turf/open/floor/plasteel/tech/grid,
/area/ruin/whitesands/cave_base)
Expand Down Expand Up @@ -703,7 +692,6 @@
/obj/effect/turf_decal/corner_steel_grid{
dir = 9
},
/obj/item/gun/ballistic/automatic/marksman/taipan/no_mag,
/obj/item/ammo_casing/p50,
/turf/open/floor/plasteel/tech,
/area/ruin/whitesands/cave_base)
Expand Down Expand Up @@ -868,6 +856,10 @@
},
/obj/effect/decal/cleanable/dirt/dust,
/obj/effect/decal/cleanable/dirt,
/obj/item/disk/holodisk/ruin/cave_base/two{
pixel_y = -4;
pixel_x = -8
},
/turf/open/floor/concrete/slab_1/whitesands,
/area/ruin/whitesands/cave_base)
"tB" = (
Expand Down Expand Up @@ -1008,6 +1000,10 @@
/obj/machinery/atmospherics/pipe/simple/scrubbers/hidden/layer2,
/obj/effect/decal/cleanable/dirt/dust,
/obj/effect/decal/cleanable/generic,
/obj/item/disk/holodisk/ruin/cave_base/five{
pixel_y = -2;
pixel_x = 4
},
/turf/open/floor/plasteel/dark,
/area/ruin/whitesands/cave_base)
"xe" = (
Expand Down Expand Up @@ -1084,7 +1080,6 @@
/obj/effect/turf_decal/corner_techfloor_gray{
dir = 6
},
/obj/item/grenade/c4/satchel_charge/cave_base,
/obj/effect/decal/cleanable/ash/large{
pixel_y = 8;
pixel_x = 3
Expand All @@ -1103,6 +1098,7 @@
pixel_x = 4;
pixel_y = -9
},
/obj/item/grenade/c4/cave_base,
/turf/open/floor/plasteel/mono/dark,
/area/ruin/whitesands/cave_base)
"yD" = (
Expand Down Expand Up @@ -1392,10 +1388,13 @@
"EX" = (
/obj/effect/decal/cleanable/dirt/dust,
/obj/effect/decal/cleanable/generic,
/obj/effect/spawner/lootdrop/maintenance,
/obj/item/disk/holodisk/ruin/cave_base/five{
pixel_y = 12;
pixel_x = 9
/obj/item/grenade/c4/satchel_charge/cave_base,
/obj/item/gun/ballistic/automatic/marksman/taipan/no_mag{
pixel_x = -14;
pixel_y = -10
},
/obj/item/assembly_holder/premade/cave_base{
pixel_y = 9
},
/turf/open/floor/plasteel/tech,
/area/ruin/whitesands/cave_base)
Expand Down Expand Up @@ -2042,6 +2041,9 @@
dir = 9
},
/obj/item/stack/ore/salvage/scrapmetal,
/obj/structure/flippedtable{
dir = 8
},
/turf/open/floor/plasteel/tech,
/area/ruin/whitesands/cave_base)
"Vc" = (
Expand Down Expand Up @@ -2082,6 +2084,7 @@
/obj/effect/decal/cleanable/crayon{
icon_state = "#"
},
/obj/item/mine/pressure/explosive/shrapnel/live,
/turf/open/floor/plasteel/dark,
/area/ruin/whitesands/cave_base/engi)
"Vr" = (
Expand Down Expand Up @@ -4702,7 +4705,7 @@ tX
tX
tX
mh
bk
vb
py
Vc
mP
Expand Down
11 changes: 10 additions & 1 deletion code/modules/assembly/proximity.dm
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

/obj/item/assembly/prox_sensor/Initialize()
. = ..()
proximity_monitor = new(src, 0)
proximity_monitor = new(src, 0, FALSE)
START_PROCESSING(SSobj, src)

/obj/item/assembly/prox_sensor/Destroy()
Expand All @@ -39,6 +39,15 @@
update_appearance()
return TRUE

/obj/item/assembly/prox_sensor/on_attach()
. = ..()
// Pick the first valid object in this list:
// Wiring datum's owner
// assembly holder's attached object
// assembly holder itself
// us
proximity_monitor.set_host(connected?.holder || holder?.master || holder || src, src)

/obj/item/assembly/prox_sensor/on_detach()
. = ..()
if(!.)
Expand Down

0 comments on commit 5a01a63

Please sign in to comment.