Describe power storage in guide

This commit is contained in:
2025-11-29 18:40:01 +01:00
parent fad7a690ae
commit 9b0792f1ff
2 changed files with 101 additions and 2 deletions

103
guide.lua
View File

@@ -60,8 +60,9 @@ end
-- \brief Creates table with machine information while providing few shortcuts for common fields -- \brief Creates table with machine information while providing few shortcuts for common fields
-- \param fields table -- \param fields table
-- \param machineName string -- \param machineName string
-- \param num (optional) number
-- \returns string -- \returns string
local function createMachineInformationTable(fields,machineName) local function createMachineInformationTable(fields,machineName,num)
local fieldLabels={ local fieldLabels={
inputVoltage="Input voltage level", inputVoltage="Input voltage level",
outputVoltage="Output voltage level", outputVoltage="Output voltage level",
@@ -81,7 +82,7 @@ local function createMachineInformationTable(fields,machineName)
}) })
end end
return createTable(rows,false,string.format("Figure 1. Machine information for %s",machineName)) return createTable(rows,false,string.format("Figure %d. Machine information for %s",(num or 1),machineName))
end end
local pages={ local pages={
@@ -660,6 +661,104 @@ local pages={
<left>||Picture 2. Nuclear Reactor with some <item name="industrialtest:nuclear_reactor_chamber" height="{{ITEM_HEIGHT}}"> <b>Nuclear Reactor Chamber</b>.||</left> <left>||Picture 2. Nuclear Reactor with some <item name="industrialtest:nuclear_reactor_chamber" height="{{ITEM_HEIGHT}}"> <b>Nuclear Reactor Chamber</b>.||</left>
]] ]]
} }
},
{
name="powerStorage",
title=S("Power storage"),
icon="industrialtest:batbox",
content={
[[
<big>||Power storage||</big>
<left>
||This mod introduces a few nodes which allow for storing energy in them. It is useful in case some energy deficit happens or to charge electric items in them. Each of those have power input on each side except one marked with connector which is the output. Those are following:||
</left>
<mono>
</mono>
<left>
<item name="industrialtest:batbox" height="{{ITEM_HEIGHT}}"> <b>||BatBox||</b>
</left>
]],
createMachineInformationTable({
{
name="inputVoltage",
value="LV"
},
{
name="outputVoltage",
value="LV"
},
{
name="powerCapacity",
value=string.format("%d EU",industrialtest.BatBox.capacity)
}
},S("BatBox")),
[[
<mono></mono>
<left>
<item name="industrialtest:cesu" height="{{ITEM_HEIGHT}}"> <b>||CESU||</b>
</left>
]],
createMachineInformationTable({
{
name="inputVoltage",
value="MV"
},
{
name="outputVoltage",
value="MV"
},
{
name="powerCapacity",
value=string.format("%d EU",industrialtest.CESU.capacity)
}
},S("CESU"),2),
[[
<mono></mono>
<left>
<item name="industrialtest:mfe" height="{{ITEM_HEIGHT}}"> <b>||MFE||</b>
</left>
]],
createMachineInformationTable({
{
name="inputVoltage",
value="HV"
},
{
name="outputVoltage",
value="HV"
},
{
name="powerCapacity",
value=string.format("%d EU",industrialtest.MFE.capacity)
}
},S("MFE"),3),
[[
<mono></mono>
<left>
<item name="industrialtest:mfsu" height="{{ITEM_HEIGHT}}"> <b>||MFSU||</b>
</left>
]],
createMachineInformationTable({
{
name="inputVoltage",
value="EV"
},
{
name="outputVoltage",
value="EV"
},
{
name="powerCapacity",
value=string.format("%d EU",industrialtest.MFSU.capacity)
}
},S("MFSU"),4),
[[
<mono></mono>
<img name="industrialtest_guide_batbox.png" width="{{IMAGE_WIDTH}}">
<left>||Picture 1. BatBox with some energy.||</left>
]]
}
} }
} }

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.4 KiB