Files
Aliceee2chandGitHub c7408ce841 Mapping previews tool for mapper's mapping needs (#96872)
## About The Pull Request

Makes more machinery using MAP_SWITCHes so their fancy preview icons
could be displayed in SDMM. MAP_SWITCH takes original icon+icon_state of
machinery as first argument and icon+icon_state (basically a machinery
part because the naming system, like `MAP_SWITCH("computer",
"/obj/machinery/computer/slot_machine")` ) from
icons/obj/fluff/map_previews.dmi

Adds a tool (subsystem) for that need that generates preview icons for
stuff that has overlays. To include them in preview generating you have
to set specific variable to TRUE.


## Why It's Good For The Game

Lets us do this instead of black boring consoles: 
(before)
<img width="641" height="575" alt="image"
src="https://github.com/user-attachments/assets/35fc5a19-bc24-4c02-957a-43ddef86e684"
/>
(after)
<img width="641" height="575" alt="image"
src="https://github.com/user-attachments/assets/99310823-747f-4e0a-acf8-60abcc8f2ed1"
/>


## Changelog

🆑
qol: Made machinery with overlays actually be properly displayed in SDMM
editor.
/🆑
2026-07-15 12:48:22 +00:00

180 lines
6.6 KiB
Plaintext

//caravan ambush
/obj/item/wrench/caravan
icon_state = "wrench_caravan"
desc = "A prototype of a new wrench design, allegedly the red color scheme makes it go faster."
name = "experimental wrench"
icon_angle = -90
toolspeed = 0.3
/obj/item/screwdriver/caravan
icon = 'icons/obj/tools.dmi'
icon_state = "screwdriver_caravan"
post_init_icon_state = null
desc = "A prototype of a new screwdriver design, allegedly the red color scheme makes it go faster."
name = "experimental screwdriver"
toolspeed = 0.3
random_color = FALSE
greyscale_config = null
greyscale_colors = null
/obj/item/wirecutters/caravan
icon = 'icons/obj/tools.dmi'
icon_state = "cutters_caravan"
desc = "A prototype of a new wirecutter design, allegedly the red color scheme makes it go faster."
name = "experimental wirecutters"
worn_icon_state = "cutters"
toolspeed = 0.3
random_color = FALSE
greyscale_config = null
greyscale_colors = null
/obj/item/crowbar/red/caravan
icon_state = "crowbar_caravan"
desc = "A prototype of a new crowbar design, allegedly the red color scheme makes it go faster."
name = "experimental crowbar"
toolspeed = 0.3
/obj/machinery/computer/shuttle/caravan
icon_state = MAP_SWITCH("computer", "/obj/machinery/computer/camera_advanced/shuttle_docker/syndicate")
/obj/item/circuitboard/computer/caravan
build_path = /obj/machinery/computer/shuttle/caravan
/obj/item/circuitboard/computer/caravan/trade1
build_path = /obj/machinery/computer/shuttle/caravan/trade1
/obj/item/circuitboard/computer/caravan/pirate
build_path = /obj/machinery/computer/shuttle/caravan/pirate
/obj/item/circuitboard/computer/caravan/syndicate1
build_path = /obj/machinery/computer/shuttle/caravan/syndicate1
/obj/item/circuitboard/computer/caravan/syndicate2
build_path = /obj/machinery/computer/shuttle/caravan/syndicate2
/obj/item/circuitboard/computer/caravan/syndicate3
build_path = /obj/machinery/computer/shuttle/caravan/syndicate3
/obj/machinery/computer/shuttle/caravan/trade1
name = "Small Freighter Shuttle Console"
desc = "Used to control the Small Freighter."
circuit = /obj/item/circuitboard/computer/caravan/trade1
shuttleId = "caravantrade1"
possible_destinations = "whiteship_away;whiteship_home;whiteship_z4;whiteship_lavaland;caravantrade1_custom;caravantrade1_ambush"
/obj/machinery/computer/camera_advanced/shuttle_docker/caravan/Initialize(mapload)
. = ..()
GLOB.jam_on_wardec += src
/obj/machinery/computer/camera_advanced/shuttle_docker/caravan/Destroy()
GLOB.jam_on_wardec -= src
return ..()
/obj/machinery/computer/camera_advanced/shuttle_docker/caravan/trade1
name = "Small Freighter Navigation Computer"
desc = "Used to designate a precise transit location for the Small Freighter."
shuttleId = "caravantrade1"
lock_override = NONE
shuttlePortId = "caravantrade1_custom"
jump_to_ports = list("whiteship_away" = 1, "whiteship_home" = 1, "whiteship_z4" = 1, "caravantrade1_ambush" = 1)
view_range = 6.5
x_offset = -5
y_offset = -5
designate_time = 100
/obj/machinery/computer/shuttle/caravan/pirate
name = "Pirate Cutter Shuttle Console"
desc = "Used to control the Pirate Cutter."
icon_screen = "syndishuttle"
icon_keyboard = "syndie_key"
light_color = COLOR_SOFT_RED
circuit = /obj/item/circuitboard/computer/caravan/pirate
shuttleId = "caravanpirate"
possible_destinations = "caravanpirate_custom;caravanpirate_ambush"
/obj/machinery/computer/camera_advanced/shuttle_docker/caravan/pirate
name = "Pirate Cutter Navigation Computer"
desc = "Used to designate a precise transit location for the Pirate Cutter."
icon_screen = "syndishuttle"
icon_keyboard = "syndie_key"
shuttleId = "caravanpirate"
lock_override = NONE
shuttlePortId = "caravanpirate_custom"
jump_to_ports = list("caravanpirate_ambush" = 1)
view_range = 6.5
x_offset = 3
y_offset = -6
/obj/machinery/computer/shuttle/caravan/syndicate1
name = "Syndicate Fighter Shuttle Console"
desc = "Used to control the Syndicate Fighter."
icon_screen = "syndishuttle"
icon_keyboard = "syndie_key"
light_color = COLOR_SOFT_RED
req_access = list(ACCESS_SYNDICATE)
circuit = /obj/item/circuitboard/computer/caravan/syndicate1
shuttleId = "caravansyndicate1"
possible_destinations = "caravansyndicate1_custom;caravansyndicate1_ambush;caravansyndicate1_listeningpost"
/obj/machinery/computer/camera_advanced/shuttle_docker/caravan/syndicate1
name = "Syndicate Fighter Navigation Computer"
desc = "Used to designate a precise transit location for the Syndicate Fighter."
icon_screen = "syndishuttle"
icon_keyboard = "syndie_key"
shuttleId = "caravansyndicate1"
lock_override = NONE
shuttlePortId = "caravansyndicate1_custom"
jump_to_ports = list("caravansyndicate1_ambush" = 1, "caravansyndicate1_listeningpost" = 1)
view_range = 0
x_offset = 2
y_offset = 0
/obj/machinery/computer/shuttle/caravan/syndicate2
name = "Syndicate Fighter Shuttle Console"
desc = "Used to control the Syndicate Fighter."
icon_screen = "syndishuttle"
icon_keyboard = "syndie_key"
req_access = list(ACCESS_SYNDICATE)
light_color = COLOR_SOFT_RED
circuit = /obj/item/circuitboard/computer/caravan/syndicate2
shuttleId = "caravansyndicate2"
possible_destinations = "caravansyndicate2_custom;caravansyndicate2_ambush;caravansyndicate1_listeningpost"
/obj/machinery/computer/camera_advanced/shuttle_docker/caravan/syndicate2
name = "Syndicate Fighter Navigation Computer"
desc = "Used to designate a precise transit location for the Syndicate Fighter."
icon_screen = "syndishuttle"
icon_keyboard = "syndie_key"
shuttleId = "caravansyndicate2"
lock_override = NONE
shuttlePortId = "caravansyndicate2_custom"
jump_to_ports = list("caravansyndicate2_ambush" = 1, "caravansyndicate1_listeningpost" = 1)
view_range = 0
x_offset = 0
y_offset = 2
/obj/machinery/computer/shuttle/caravan/syndicate3
name = "Syndicate Drop Ship Console"
desc = "Used to control the Syndicate Drop Ship."
icon_screen = "syndishuttle"
icon_keyboard = "syndie_key"
req_access = list(ACCESS_SYNDICATE)
light_color = COLOR_SOFT_RED
circuit = /obj/item/circuitboard/computer/caravan/syndicate3
shuttleId = "caravansyndicate3"
possible_destinations = "caravansyndicate3_custom;caravansyndicate3_ambush;caravansyndicate3_listeningpost"
/obj/machinery/computer/camera_advanced/shuttle_docker/caravan/syndicate3
name = "Syndicate Drop Ship Navigation Computer"
desc = "Used to designate a precise transit location for the Syndicate Drop Ship."
icon_screen = "syndishuttle"
icon_keyboard = "syndie_key"
shuttleId = "caravansyndicate3"
lock_override = NONE
shuttlePortId = "caravansyndicate3_custom"
jump_to_ports = list("caravansyndicate3_ambush" = 1, "caravansyndicate3_listeningpost" = 1)
view_range = 2.5
x_offset = -1
y_offset = -3