Skip to content

Commit

Permalink
Add [missions] support (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
SwissalpS authored Dec 29, 2024
1 parent bc79a70 commit 637f0f7
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
1 change: 1 addition & 0 deletions init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ local mods = {
"mesecons_detector",
"mesecons_luacontroller",
"mesecons_microcontroller",
"missions",
"mobs",
"more_chests",
"pipeworks",
Expand Down
1 change: 1 addition & 0 deletions mod.conf
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ optional_depends = """
mesecons_detector,
mesecons_luacontroller,
mesecons_microcontroller,
missions,
mobs,
more_chests,
pipeworks,
Expand Down
18 changes: 18 additions & 0 deletions nodes/missions.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@

-- Register wrench support for the missions mod

wrench.register_node("missions:mission", {
lists = { "main" },
metas = {
description = wrench.META_TYPE_STRING,
hidden = wrench.META_TYPE_INT,
infotext = wrench.META_TYPE_STRING,
name = wrench.META_TYPE_STRING,
owner = wrench.META_TYPE_STRING,
steps = wrench.META_TYPE_STRING,
successcount = wrench.META_TYPE_INT,
time = wrench.META_TYPE_INT,
valid = wrench.META_TYPE_INT,
},
})

0 comments on commit 637f0f7

Please sign in to comment.