From db6f01bf5e592bf491d544da7d2cc2ce59c7a944 Mon Sep 17 00:00:00 2001 From: Remie Richards Date: Mon, 28 Dec 2015 22:20:33 +0000 Subject: [PATCH] Formalises Path Compatibility --- .../path_compatibility.dm | 28 +++++++++++++++++++ code/modules/vehicles/vehicle.dm | 13 --------- tgstation.dme | 1 + 3 files changed, 29 insertions(+), 13 deletions(-) create mode 100644 code/__PATH_COMPATIBILITY/path_compatibility.dm diff --git a/code/__PATH_COMPATIBILITY/path_compatibility.dm b/code/__PATH_COMPATIBILITY/path_compatibility.dm new file mode 100644 index 00000000000..f3ff37e2bbc --- /dev/null +++ b/code/__PATH_COMPATIBILITY/path_compatibility.dm @@ -0,0 +1,28 @@ +/* + + This is a smart+stupid method of maintaining paths during refactors. + At this point in time we have more maps than ever, and our tools just aren't that great. + So instead of repathing all the maps... + + Keep the old path defined, just as an empty type with that path, and then define it's + parent_type as the new path, effectively maintaining the object/mob w/e without having + to touch all the maps, avoiding all those nasty conflicts! + + Ideally the old paths would be cleaned out as mappers go about their usual routine of + updating old maps. + + tl;dr TYPEFUCKERY, because fuck updating all these maps + +*/ + + + +//Vehicle Refactor - 2015 +/obj/structure/bed/chair/janicart/secway + parent_type = /obj/vehicle/secway + +/obj/structure/bed/chair/janicart + parent_type = /obj/vehicle/janicart + +/obj/structure/bed/chair/janicart/atv + parent_type = /obj/vehicle/atv \ No newline at end of file diff --git a/code/modules/vehicles/vehicle.dm b/code/modules/vehicles/vehicle.dm index a3b30584815..6c6c8dbf6a1 100644 --- a/code/modules/vehicles/vehicle.dm +++ b/code/modules/vehicles/vehicle.dm @@ -123,16 +123,3 @@ if(istype(M, /obj/machinery/door) && buckled_mob) M.Bumped(buckled_mob) - -//TYPEFUCKERY -//Because fuck updating all these maps - - -/obj/structure/bed/chair/janicart/secway - parent_type = /obj/vehicle/secway - -/obj/structure/bed/chair/janicart - parent_type = /obj/vehicle/janicart - -/obj/structure/bed/chair/janicart/atv - parent_type = /obj/vehicle/atv \ No newline at end of file diff --git a/tgstation.dme b/tgstation.dme index bd81b818f53..968ca97ed64 100644 --- a/tgstation.dme +++ b/tgstation.dme @@ -67,6 +67,7 @@ #include "code\__HELPERS\sorts\InsertSort.dm" #include "code\__HELPERS\sorts\MergeSort.dm" #include "code\__HELPERS\sorts\TimSort.dm" +#include "code\__PATH_COMPATIBILITY\path_compatibility.dm" #include "code\_globalvars\configuration.dm" #include "code\_globalvars\database.dm" #include "code\_globalvars\game_modes.dm"