Add multi-signal doors, basic device deployment, and a target trigger.
This commit is contained in:
parent
1b2199705b
commit
9acd605c86
35 changed files with 660 additions and 75 deletions
|
|
@ -96,6 +96,7 @@ if artifact.debug then
|
|||
local link_colors = {
|
||||
"gold",
|
||||
"red",
|
||||
"green",
|
||||
"blue"
|
||||
}
|
||||
|
||||
|
|
@ -171,7 +172,7 @@ if artifact.debug then
|
|||
on_secondary_use = function(s, p, pt)
|
||||
local m = s:get_meta()
|
||||
-- Just cycle through the colors list.
|
||||
local color = link_colors[(table.indexof(link_colors, m:get("color") or "gold") +1) %#link_colors +1]
|
||||
local color = link_colors[table.indexof(link_colors, m:get("color") or "gold") %#link_colors +1]
|
||||
m:set_string("color", color)
|
||||
m:set_string("inventory_image", "[fill:16x16:0,0:"..color.."#00^artifact_linker_tool.png")
|
||||
return s
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue