Formalises Path Compatibility

This commit is contained in:
Remie Richards
2015-12-28 22:20:33 +00:00
parent 3c9c6e5c19
commit db6f01bf5e
3 changed files with 29 additions and 13 deletions
@@ -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
-13
View File
@@ -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
+1
View File
@@ -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"