-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New bushcrafting recipe: paper lantern
- Loading branch information
Showing
8 changed files
with
58 additions
and
9 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
local lanternConfig = {} | ||
|
||
lanternConfig.ids = { | ||
ashfall_shoji_lamp_01 = true | ||
} | ||
|
||
return lanternConfig |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
local lanternConfig = require("mer.ashfall.items.lantern.config") | ||
local SwitchNode = require("CraftingFramework.nodeVisuals.SwitchNode") | ||
local NodeManager = require("CraftingFramework.nodeVisuals.NodeManager") | ||
--Always turn off handle so it doesn't show when dropped | ||
-- defaults to on when equipped | ||
local switchConfig = { | ||
id = "LANTERN_HANDLE_SWITCH", | ||
getActiveIndex = function(self, e) | ||
return self.getIndex(e.node, "OFF") | ||
end | ||
} | ||
|
||
local switchNode = SwitchNode.new(switchConfig) | ||
|
||
NodeManager.register{ | ||
id = "Ashfall_lantern_handle", | ||
nodes = { switchNode }, | ||
referenceRequirements = function(reference) | ||
return lanternConfig.ids[reference.object.id:lower()] | ||
end | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.