Introduce utility function for deriving table fields
This commit is contained in:
+5
-10
@@ -16,8 +16,7 @@
|
||||
|
||||
local S=minetest.get_translator("industrialtest")
|
||||
|
||||
industrialtest.QuantumArmorBase=table.copy(industrialtest.ElectricGearTool)
|
||||
industrialtest.internal.unpackTableInto(industrialtest.QuantumArmorBase,{
|
||||
industrialtest.QuantumArmorBase=industrialtest.internal.derive(industrialtest.ElectricGearTool,{
|
||||
flow=industrialtest.api.ivPowerFlow,
|
||||
capacity=10000000
|
||||
})
|
||||
@@ -32,8 +31,7 @@ function industrialtest.QuantumArmorBase.getPowerPerDamageForItem(self,itemstack
|
||||
return 30
|
||||
end
|
||||
|
||||
industrialtest.QuantumHelmet=table.copy(industrialtest.QuantumArmorBase)
|
||||
industrialtest.internal.unpackTableInto(industrialtest.QuantumHelmet,{
|
||||
industrialtest.QuantumHelmet=industrialtest.internal.derive(industrialtest.QuantumArmorBase,{
|
||||
name="industrialtest:quantum_helmet",
|
||||
description=S("Quantum Helmet"),
|
||||
inventoryImage="industrialtest_quantum_helmet_inv.png",
|
||||
@@ -79,8 +77,7 @@ minetest.register_craft({
|
||||
}
|
||||
})
|
||||
|
||||
industrialtest.QuantumBodyarmor=table.copy(industrialtest.QuantumArmorBase)
|
||||
industrialtest.internal.unpackTableInto(industrialtest.QuantumBodyarmor,{
|
||||
industrialtest.QuantumBodyarmor=industrialtest.internal.derive(industrialtest.QuantumArmorBase,{
|
||||
name="industrialtest:quantum_bodyarmor",
|
||||
description=S("Quantum Bodyarmor"),
|
||||
inventoryImage="industrialtest_quantum_bodyarmor_inv.png",
|
||||
@@ -107,8 +104,7 @@ minetest.register_craft({
|
||||
}
|
||||
})
|
||||
|
||||
industrialtest.QuantumLeggings=table.copy(industrialtest.QuantumArmorBase)
|
||||
industrialtest.internal.unpackTableInto(industrialtest.QuantumLeggings,{
|
||||
industrialtest.QuantumLeggings=industrialtest.internal.derive(industrialtest.QuantumArmorBase,{
|
||||
name="industrialtest:quantum_leggings",
|
||||
description=S("Quantum Leggings"),
|
||||
inventoryImage="industrialtest_quantum_leggings_inv.png",
|
||||
@@ -167,8 +163,7 @@ minetest.register_craft({
|
||||
}
|
||||
})
|
||||
|
||||
industrialtest.QuantumBoots=table.copy(industrialtest.QuantumArmorBase)
|
||||
industrialtest.internal.unpackTableInto(industrialtest.QuantumBoots,{
|
||||
industrialtest.QuantumBoots=industrialtest.internal.derive(industrialtest.QuantumArmorBase,{
|
||||
name="industrialtest:quantum_boots",
|
||||
description=S("Quantum Boots"),
|
||||
inventoryImage="industrialtest_quantum_boots_inv.png",
|
||||
|
||||
Reference in New Issue
Block a user