Introduce utility function for deriving table fields
This commit is contained in:
@@ -15,11 +15,9 @@
|
||||
-- along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
local S=minetest.get_translator("industrialtest")
|
||||
industrialtest.StaticBoots=table.copy(industrialtest.GearTool)
|
||||
|
||||
local image=(industrialtest.mtgAvailable and "industrialtest_static_boots.png" or "industrialtest_mcl_static_boots.png")
|
||||
|
||||
industrialtest.internal.unpackTableInto(industrialtest.StaticBoots,{
|
||||
industrialtest.StaticBoots=industrialtest.internal.derive(industrialtest.GearTool,{
|
||||
name="industrialtest:static_boots",
|
||||
description=S("Static Boots"),
|
||||
inventoryImage="industrialtest_static_boots_inv.png",
|
||||
|
||||
Reference in New Issue
Block a user