1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2025-12-15 06:45:22 +01:00

[mesecons] Add NOR and OR gates, and documentation

This commit is contained in:
LeMagnesium
2015-11-21 12:28:13 +01:00
parent b5f6b76237
commit f6639708a8
155 changed files with 153 additions and 12 deletions

View File

@@ -122,3 +122,13 @@ register_gate("xor", 2, function (val1, val2) return (val1 or val2) and not (val
{{"mesecons:mesecon", "", ""},
{"", "mesecons_materials:silicon", "mesecons_materials:silicon"},
{"mesecons:mesecon", "", ""}})
register_gate("nor", 2, function (val1, val2) return not (val1 or val2) end,
{{"mesecons:mesecon", "", ""},
{"", "mesecons_materials:mesecon_torch_on", "mesecons_materials:silicon"},
{"mesecons:mesecon", "", ""}})
register_gate("or", 2, function (val1, val2) return (val1 or val2) end,
{{"mesecons:mesecon", "", ""},
{"", "mesecons:mesecon", "mesecons:mesecon"},
{"mesecons:mesecon", "", ""}})