Spell-check and clarify item names

* Fix inconsistent insulated mesecon names
* Clarify lightstone names
* Rename meselamp to "Mesecon Lamp"
* Use capitalization "Luacontroller" consistently
* Cleanup / improvements for logic gate naming
This commit is contained in:
Wuzzy
2017-02-15 19:52:29 +01:00
committed by Jeija
parent d80c788fab
commit 967bde284a
15 changed files with 48 additions and 38 deletions

View File

@ -1 +1 @@
And gates power their output if both inputs (from left and right) are powered.
AND gates power their output if both inputs (from left and right) are powered.

View File

@ -1 +1 @@
Mesecon diodes, just like real ones, only transfer power (signals) in one direction only.
Diodes conduct signals in one direction only.

View File

@ -1 +1 @@
Nand gates do not power their output if both inputs (from left and right) are powered, but power it in every other case.
NAND gates do not power their output if both inputs (from left and right) are powered, but power it in every other case.

View File

@ -1 +1 @@
Nor gates only power their output if none of their two inputs is powered. They are basically or gates with a not gate at their output.
NOR gates only power their output if none of their two inputs is powered. They are basically OR gates with a NOT gate at their output.

View File

@ -1 +1 @@
Not gates invert signals, just like a mesecon torch does, but faster. The input is at the opposite side of the output.
NOT gates invert signals, just like a mesecon torch does, but faster. The input is at the opposite side of the output.

View File

@ -1 +1 @@
Or gates power their output if either of their inputs (or both) are powered. You could basically get the same behaviour with two diodes, but or gates save some space.
OR gates power their output if either of their inputs (or both) are powered. You could basically get the same behaviour with two diodes, but OR gates save some space.

View File

@ -54,10 +54,10 @@ local function update_gate(pos, node, link, newstate)
end
end
local function register_gate(name, inputnumber, assess, recipe)
local function register_gate(name, inputnumber, assess, recipe, description)
local get_inputrules = inputnumber == 2 and gate_get_input_rules_twoinputs or
gate_get_input_rules_oneinput
local description = "Mesecons Logic Gate: "..name
description = "Logic Gate: "..name
local basename = "mesecons_gates:"..name
mesecon.register_node(basename, {
@ -103,32 +103,39 @@ local function register_gate(name, inputnumber, assess, recipe)
end
register_gate("diode", 1, function (input) return input end,
{{"mesecons:mesecon", "mesecons_torch:mesecon_torch_on", "mesecons_torch:mesecon_torch_on"}})
{{"mesecons:mesecon", "mesecons_torch:mesecon_torch_on", "mesecons_torch:mesecon_torch_on"}},
"Diode")
register_gate("not", 1, function (input) return not input end,
{{"mesecons:mesecon", "mesecons_torch:mesecon_torch_on", "mesecons:mesecon"}})
{{"mesecons:mesecon", "mesecons_torch:mesecon_torch_on", "mesecons:mesecon"}},
"NOT Gate")
register_gate("and", 2, function (val1, val2) return val1 and val2 end,
{{"mesecons:mesecon", "", ""},
{"", "mesecons_materials:silicon", "mesecons:mesecon"},
{"mesecons:mesecon", "", ""}})
{"mesecons:mesecon", "", ""}},
"AND Gate")
register_gate("nand", 2, function (val1, val2) return not (val1 and val2) end,
{{"mesecons:mesecon", "", ""},
{"", "mesecons_materials:silicon", "mesecons_torch:mesecon_torch_on"},
{"mesecons:mesecon", "", ""}})
{"mesecons:mesecon", "", ""}},
"NAND Gate")
register_gate("xor", 2, function (val1, val2) return (val1 or val2) and not (val1 and val2) end,
{{"mesecons:mesecon", "", ""},
{"", "mesecons_materials:silicon", "mesecons_materials:silicon"},
{"mesecons:mesecon", "", ""}})
{"mesecons:mesecon", "", ""}},
"XOR Gate")
register_gate("nor", 2, function (val1, val2) return not (val1 or val2) end,
{{"mesecons:mesecon", "", ""},
{"", "mesecons:mesecon", "mesecons_torch:mesecon_torch_on"},
{"mesecons:mesecon", "", ""}})
{"mesecons:mesecon", "", ""}},
"NOR Gate")
register_gate("or", 2, function (val1, val2) return (val1 or val2) end,
{{"mesecons:mesecon", "", ""},
{"", "mesecons:mesecon", "mesecons:mesecon"},
{"mesecons:mesecon", "", ""}})
{"mesecons:mesecon", "", ""}},
"OR Gate")