Allows multitile to work with arbitrary list lengths (#26801)

* multitile now works with any shape of lists and the fillers are built relative to MACH_CENTER

* Iterates over each nested loop from left to right and correctly applies offsets

* Restricts list length to all be the same

* removes slashes from multiline argument in block and replaces a magic number with the appropriate define.
This commit is contained in:
Migratingcocofruit
2024-10-02 15:17:21 +00:00
committed by GitHub
parent e5320b5702
commit 54e35bcf2a
5 changed files with 46 additions and 30 deletions
+1 -2
View File
@@ -58,10 +58,9 @@ GLOBAL_LIST_EMPTY(gravity_generators)
/obj/machinery/gravity_generator/main/station/Initialize(mapload)
. = ..()
AddComponent(/datum/component/multitile, 1, list(
AddComponent(/datum/component/multitile, list(
list(1, 1, 1),
list(1, MACH_CENTER, 1),
list(0, 0, 0),
))
update_gen_list()
set_power()