From 42efd55bd9efa0400d7f78ce963b63377fc84e97 Mon Sep 17 00:00:00 2001 From: SkyratBot <59378654+SkyratBot@users.noreply.github.com> Date: Sun, 3 Jan 2021 15:00:54 +0100 Subject: [PATCH] [MIRROR] Streamline marker beacons on maps (#2475) * Merge pull request #55847 from coiax/map-marker-beacons Streamline marker beacons on maps * Streamline marker beacons on maps Co-authored-by: 81Denton <32391752+81Denton@users.noreply.github.com> --- .../map_files/IceBoxStation/IceBoxStation.dmm | 16 +- _maps/map_files/KiloStation/KiloStation.dmm | 146 ++++++++---------- .../mining/equipment/marker_beacons.dm | 16 +- 3 files changed, 78 insertions(+), 100 deletions(-) diff --git a/_maps/map_files/IceBoxStation/IceBoxStation.dmm b/_maps/map_files/IceBoxStation/IceBoxStation.dmm index 7c65391e1d4..bb7dd36e0d5 100644 --- a/_maps/map_files/IceBoxStation/IceBoxStation.dmm +++ b/_maps/map_files/IceBoxStation/IceBoxStation.dmm @@ -30405,9 +30405,7 @@ /turf/open/floor/plasteel, /area/teleporter) "bte" = ( -/obj/structure/marker_beacon{ - icon_state = "markerburgundy-on" - }, +/obj/structure/marker_beacon/burgundy, /turf/open/floor/plating/asteroid/snow/icemoon, /area/icemoon/surface/outdoors) "btf" = ( @@ -31724,9 +31722,7 @@ /turf/open/floor/plasteel, /area/crew_quarters/heads/hop) "bwm" = ( -/obj/structure/marker_beacon{ - icon_state = "markerburgundy-on" - }, +/obj/structure/marker_beacon/burgundy, /obj/effect/turf_decal/weather/snow, /turf/open/floor/plating/icemoon, /area/icemoon/surface/outdoors) @@ -31735,9 +31731,7 @@ /turf/open/floor/plasteel, /area/storage/mining) "bwo" = ( -/obj/structure/marker_beacon{ - icon_state = "markerburgundy-on" - }, +/obj/structure/marker_beacon/burgundy, /turf/open/floor/plating/icemoon, /area/icemoon/surface/outdoors) "bwp" = ( @@ -53643,9 +53637,7 @@ /turf/open/floor/plasteel/dark, /area/engine/engine_smes) "pAz" = ( -/obj/structure/marker_beacon{ - icon_state = "markerburgundy-on" - }, +/obj/structure/marker_beacon/burgundy, /obj/structure/fluff/fokoff_sign, /turf/open/floor/plating/asteroid/snow/icemoon, /area/icemoon/surface/outdoors) diff --git a/_maps/map_files/KiloStation/KiloStation.dmm b/_maps/map_files/KiloStation/KiloStation.dmm index 9d4c2c1b4c1..1b301bb155b 100644 --- a/_maps/map_files/KiloStation/KiloStation.dmm +++ b/_maps/map_files/KiloStation/KiloStation.dmm @@ -21062,14 +21062,8 @@ /area/hallway/primary/fore) "aIY" = ( /obj/structure/lattice/catwalk, -/obj/item/stack/marker_beacon{ - anchored = 1; - icon_state = "markerburgundy-on"; - light_color = "#FA644B"; - light_power = 3; - light_range = 2; - name = "landing marker"; - picked_color = "Burgundy" +/obj/structure/marker_beacon/burgundy{ + name = "landing marker" }, /turf/open/floor/plating/airless, /area/hallway/secondary/entry) @@ -60947,14 +60941,8 @@ /obj/machinery/light{ dir = 4 }, -/obj/item/stack/marker_beacon{ - anchored = 1; - icon_state = "markerburgundy-on"; - light_color = "#FA644B"; - light_power = 3; - light_range = 2; - name = "landing marker"; - picked_color = "Burgundy" +/obj/structure/marker_beacon/burgundy{ + name = "landing marker" }, /turf/open/floor/plating/airless, /area/hallway/secondary/entry) @@ -62279,19 +62267,6 @@ /obj/effect/decal/cleanable/dirt, /turf/open/floor/plating/asteroid/airless, /area/hallway/secondary/entry) -"bUG" = ( -/obj/structure/lattice/catwalk, -/obj/item/stack/marker_beacon{ - anchored = 1; - icon_state = "markerburgundy-on"; - light_color = "#FA644B"; - light_power = 3; - light_range = 2; - name = "landing marker"; - picked_color = "Burgundy" - }, -/turf/open/space/basic, -/area/space/nearstation) "bUH" = ( /obj/effect/turf_decal/caution/stand_clear, /obj/machinery/atmospherics/components/unary/vent_pump/on/layer4{ @@ -62315,14 +62290,8 @@ /obj/machinery/light{ dir = 4 }, -/obj/item/stack/marker_beacon{ - anchored = 1; - icon_state = "markerburgundy-on"; - light_color = "#FA644B"; - light_power = 3; - light_range = 2; - name = "landing marker"; - picked_color = "Burgundy" +/obj/structure/marker_beacon/burgundy{ + name = "landing marker" }, /obj/machinery/button/door{ id = "Arrival Shuttle Bay"; @@ -90324,6 +90293,13 @@ }, /turf/open/floor/plasteel, /area/security/prison) +"qJs" = ( +/obj/structure/lattice/catwalk, +/obj/structure/marker_beacon/burgundy{ + name = "landing marker" + }, +/turf/open/space/basic, +/area/space/nearstation) "qKa" = ( /obj/structure/cable, /obj/machinery/atmospherics/pipe/simple/supply/hidden/layer4, @@ -94466,7 +94442,7 @@ aaa aaa aaa aaa -bUG +qJs aaa aaa aaa @@ -98921,7 +98897,7 @@ ivj anu anu ivj -bUG +qJs aav kLr xFp @@ -100201,7 +100177,7 @@ aaa acm aaa aaa -bUG +qJs aaa aaa aaa @@ -101373,7 +101349,7 @@ aaa aaa aaa aaa -bUG +qJs bVu aeu aeu @@ -101743,7 +101719,7 @@ ctb cEZ vfF ajd -bUG +qJs aaa aaa aaa @@ -102496,11 +102472,11 @@ aeu wDI aeu aeu -bUG +qJs acK acm acK -bUG +qJs aeu amR amA @@ -108201,7 +108177,7 @@ anZ cmt agw aoc -bUG +qJs aaa aaa aaa @@ -109229,7 +109205,7 @@ anZ cmt aob aoe -bUG +qJs aaa aaa aaa @@ -109329,7 +109305,7 @@ aaa aaa aaa aaa -bUG +qJs bVu aeu aeu @@ -113183,7 +113159,7 @@ aaa aaa aaa aaa -bUG +qJs bVu aeu aeu @@ -114626,13 +114602,13 @@ akK anh bwu acm -bUG +qJs aaa aaa aaa aaa aaa -bUG +qJs aaa aaa aaa @@ -115654,13 +115630,13 @@ cJU cKi akK acm -bUG +qJs aaa aaa aaa aaa aaa -bUG +qJs acm cow aaa @@ -116682,13 +116658,13 @@ akK bwu akK acm -bUG +qJs aaa aaa aaa aaa aaa -bUG +qJs aaa cow acm @@ -131748,7 +131724,7 @@ aaa aaa aaa aaa -bUG +qJs aDT agw akA @@ -132776,7 +132752,7 @@ aaa aaa aaa aaa -bUG +qJs aeZ aob akA @@ -132831,7 +132807,7 @@ bju bhW acK acK -bUG +qJs blE bkN bIQ @@ -132839,7 +132815,7 @@ bll bOg blH bmn -bUG +qJs acK bEg bEg @@ -134107,13 +134083,13 @@ cbg cbk bfW bkd -bUG +qJs bin bhW aVN bhW bkc -bUG +qJs aaa aaa aaa @@ -134295,11 +134271,11 @@ cOp acm acm acm -bUG +qJs asJ cKG asJ -bUG +qJs aaa aaa aaa @@ -134766,7 +134742,7 @@ aaa aaa aaa aaa -bUG +qJs bVu aeu aeu @@ -134898,27 +134874,27 @@ aaa aaa aaa aaa -bUG +qJs aaa -bUG +qJs bPe bSM bTl bXe bPe -bUG +qJs aaa -bUG +qJs bPe bXe bTl bXe bPe -bUG +qJs acm acm acm -bUG +qJs aaa aaa aaa @@ -134926,7 +134902,7 @@ aaa aaa aaa aaa -bUG +qJs aeU aaa acm @@ -136356,7 +136332,7 @@ cKw cKR asJ acm -bUG +qJs aaa aaa aaa @@ -136919,11 +136895,11 @@ ajH cmU aeU aof -bUG +qJs acK acm acK -bUG +qJs aeu aeu aeu @@ -136934,13 +136910,13 @@ aaa acm aaa aaa -bUG +qJs acm acK acK acK acm -bUG +qJs aaa aaa aaa @@ -137127,7 +137103,7 @@ cKz asJ abq act -bUG +qJs aaa aaa aaa @@ -138412,7 +138388,7 @@ abq act act act -bUG +qJs aaa aaa aaa @@ -140426,7 +140402,7 @@ aaa aaa aaa aaa -bUG +qJs bVu aeu aeu @@ -143522,7 +143498,7 @@ aaa aaa aaa aaa -bUG +qJs aeu aeu aeu @@ -148423,7 +148399,7 @@ aaa aaa aaa aaa -bUG +qJs aaa aaa aeu @@ -150241,7 +150217,7 @@ aaa aaa aaa aaa -bUG +qJs aaa aaa aaa @@ -152323,14 +152299,14 @@ aaa aaa aaa aaa -bUG +qJs aaa aaa aaa aaa aaa aaa -bUG +qJs aaa aaa aaa @@ -152860,12 +152836,12 @@ aaa aaa aaa aaa -bUG +qJs aaa aaa aaa aaa -bUG +qJs aaa aaa aaa diff --git a/code/modules/mining/equipment/marker_beacons.dm b/code/modules/mining/equipment/marker_beacons.dm index f08f01d4d18..3222a3c0aa2 100644 --- a/code/modules/mining/equipment/marker_beacons.dm +++ b/code/modules/mining/equipment/marker_beacons.dm @@ -25,7 +25,7 @@ GLOBAL_LIST_INIT(marker_beacon_colors, sortList(list( novariants = TRUE cost = 1 source = /datum/robot_energy_storage/beacon - var/picked_color = "random" + var/picked_color = "Random" /obj/item/stack/marker_beacon/ten //miners start with 10 of these amount = 10 @@ -79,12 +79,14 @@ GLOBAL_LIST_INIT(marker_beacon_colors, sortList(list( anchored = TRUE light_range = 2 light_power = 3 + var/icon_prefix = "marker" var/remove_speed = 15 var/picked_color /obj/structure/marker_beacon/Initialize(mapload, set_color) . = ..() - picked_color = set_color + if(set_color) + picked_color = set_color update_icon() /obj/structure/marker_beacon/deconstruct(disassembled = TRUE) @@ -101,7 +103,7 @@ GLOBAL_LIST_INIT(marker_beacon_colors, sortList(list( /obj/structure/marker_beacon/update_icon() while(!picked_color || !GLOB.marker_beacon_colors[picked_color]) picked_color = pick(GLOB.marker_beacon_colors) - icon_state = "[initial(icon_state)][lowertext(picked_color)]-on" + icon_state = "[icon_prefix][lowertext(picked_color)]-on" set_light(light_range, light_power, GLOB.marker_beacon_colors[picked_color]) /obj/structure/marker_beacon/attack_hand(mob/living/user) @@ -146,3 +148,11 @@ GLOBAL_LIST_INIT(marker_beacon_colors, sortList(list( if(input_color) picked_color = input_color update_icon() + + +/* Preset marker beacon types, for mapping */ + +/obj/structure/marker_beacon/burgundy + picked_color = "Burgundy" + // set icon_state to make it clear for mappers + icon_state = "markerburgundy-on"