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.airlike" class="badge badge-success">Airlike</span>
<span v-if="item.walkable" class="badge badge-success">Walkable</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.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>
<p> <p>
Mod integrations: Mod integrations:

View File

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

View File

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