mesecons/digiline hint

This commit is contained in:
BuckarooBanzay 2021-06-03 08:58:23 +02:00
parent 08c7e584aa
commit 28cf2125fe
3 changed files with 12 additions and 2 deletions

View File

@ -36,6 +36,8 @@ Vue.component("item-detail", {
<span v-if="item.airlike" class="badge badge-success">Airlike</span>
<span v-if="item.walkable" class="badge badge-success">Walkable</span>
<span v-if="item.cnc" class="badge badge-primary">CNC compatible</span>
<span v-if="item.mesecons" class="badge badge-primary">Mesecon component</span>
<span v-if="item.digiline" class="badge badge-primary">Digiline component</span>
</p>
<p>
Mod integrations:

View File

@ -21,7 +21,7 @@ function mtinfo.map_list(target, list, keys, filter, enhancefn)
end
end
end
enhancefn(name, item)
enhancefn(name, item, def)
target[name] = item
end
end

View File

@ -42,7 +42,7 @@ function mtinfo.export_items()
else
return true
end
end, function(name, item)
end, function(name, item, def)
if has_moreblocks and circular_saw.known_nodes[name] then
-- moreblocks enabled
item.circular_saw = true
@ -51,6 +51,14 @@ function mtinfo.export_items()
-- partial or full cnc support
item.cnc = true
end
if def.mesecons then
item.mesecons = true
end
if def.digiline then
item.digiline = true
end
end)
mtinfo.export_json(mtinfo.basepath.."/data/items.js", data, "mtinfo.items")
end