mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-24 12:37:26 +01:00
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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user