diff --git a/tools/maplint/lints/multiple_machinery.yml b/tools/maplint/lints/multiple_machinery.yml new file mode 100644 index 000000000000..942d72b401e5 --- /dev/null +++ b/tools/maplint/lints/multiple_machinery.yml @@ -0,0 +1,4 @@ +/obj/machinery: + banned_neighbors: + /obj/machinery: + identical: true diff --git a/tools/maplint/source/lint.py b/tools/maplint/source/lint.py index 4af9ad5c1cfd..ee86d29be52b 100644 --- a/tools/maplint/source/lint.py +++ b/tools/maplint/source/lint.py @@ -66,7 +66,13 @@ def __init__(self, typepath, data = {}): def matches(self, identified: Content, neighbor: Content): if self.identical: - return neighbor == identified + if identified.path != neighbor.path: + return False + + if identified.var_edits != neighbor.var_edits: + return False + + return True if self.typepath is not None: if self.typepath.matches_path(neighbor.path):