Files
Citadel-Station-13-RP/maps/REGEXING_MAP_PORTS.md
silicons a228890d5d [MDB IGNORE] fixes map spawners not being /obj (#4464)
* stuff

* fix

* fix

Co-authored-by: VM_USER <VM_USER>
2022-09-30 18:32:17 -07:00

2.2 KiB

Regexing Map Ports

Primary

// TODO: ADD PYTHON SCRIPT TO AUTOMATE THIS

Yeah so we're (me) all a bunch of idiots (insane). As such we have a ton of path replacements. All of these regexes are for VSC. They are not necessarily optimized, so, if you're good at regexes, do help!

Apply regexes in this order:

// TODO: tape roll // todo: devices/weapons

// Effect decals /obj/effect/decal/cleanable - /obj/effect/debris/cleanable

// Landmarks /obj/effect/landmark-/obj/landmark // Specific landmarks /obj/landmark\{\n\tname = "Observer-Start"\n\t\}-/obj/landmark/observer_spawn // Preliminary job landmarks /obj/landmark/start\{\n\tname = "([A-z]+)"\n\t\}-/obj/landmark/spawnpoint/job/\L$1 /obj/landmark/start\{\n\tname = "([A-z]+) ([A-z]+)"\n\t\}-/obj/landmark/spawnpoint/job/\L$1_\L$2 /obj/landmark/start\{\n\tname = "([A-z]+) ([A-z]+) ([A-z]+)"\n\t\}-/obj/landmark/spawnpoint/job/\L$1_\L$2_\L$3 /// Specific job landmarks /obj/landmark/spawnpoint/job/search_and_rescue-/obj/landmark/spawnpoint/job/field_medic /obj/landmark/spawnpoint/job/facility_director-/obj/landmark/spawnpoint/job/captain /obj/landmark/spawnpoint/job/internal_affairs_agent-/obj/landmark/spawnpoint/job/lawyer /obj/landmark/spawnpoint/job/gardener-/obj/landmark/spawnpoint/job/botanist

// TODO: MAKE SURE NO / AFTER COSTUME /obj/landmark/costume-/obj/landmark/costume/random

// ATMOSPHERICS /obj/machinery/atmospherics/omni-/obj/machinery/atmospherics/component/quaternary /obj/machinery/atmospherics/(unary|binary|trinary)-/obj/machinery/atmospherics/component/$1

Pruning

// getting rid of extraneous d1/d2 varedits // d1-d2 \td1 = (1|2|4|8);\n\td2 = (1|2|4|8);\n\ticon_state = "\1-\2"(;\n\tpixel_[xy] = [0-9]+){0,2}-\ticon_state = "$1-$2" // 0-d2 \td2 = (1|2|4|8);\n\ticon_state = "0-\1"(;\n\tpixel_[xy] = [0-9]+){0,2}-\ticon_state = "0-$1" // 0-d2 but reversed because people are idiots \ticon_state = "0-(1|2|4|8)";\n\td2 = \1-\ticon_state = "0-$1" // 16-0 (upwards-coming-in) \td1 = 16;\n\td2 = 0;\n\ticon_state = "16-0"-\ticon_state = "16-0" // 32-x (side-going-down) \td1 = 32;\n\td2 = (1|2|4|8);\n\ticon_state = "32-\1"-\ticon_state = "32-$1"