Describe Generator in guide

This commit is contained in:
2025-11-24 21:44:35 +01:00
parent a2ce0e5177
commit 8aa5ddc972
2 changed files with 35 additions and 0 deletions

View File

@@ -64,9 +64,11 @@ end
local function createMachineInformationTable(fields,machineName)
local fieldLabels={
inputVoltage="Input voltage level",
outputVoltage="Output voltage level",
recipe="Recipe type",
powerCapacity="Power capacity",
opPower="Power per operation",
powerPerFuel="Power per fuel unit",
efficiency="Default efficiency"
}
@@ -341,6 +343,38 @@ local pages={
<left>||Picture 1. Extractor extracting <item name="{{elementKeyRubber}}" height="{{ITEM_HEIGHT}}"> <b>Rubber</b> from <item name="{{elementKeyRubberWood}}" height="{{ITEM_HEIGHT}}"> <b>Rubber Wood</b>||</left>
]]
}
},
{
name="generator",
title=S("Generator"),
icon="industrialtest:generator",
content={
[[
<big>||Generator||</big>
<left>
||Generator produces energy from various fuels which can be used for smelting. It is the most basic way of powering electric machines and also the simplest to obtain.||
</left>
]],
createMachineInformationTable({
{
name="outputVoltage",
value="LV"
},
{
name="powerCapacity",
value="7000 EU"
},
{
name="powerPerFuel",
value="200 EU"
}
},S("Generator")),
[[
<img name="industrialtest_guide_generator.png" width="{{IMAGE_WIDTH}}">
<left>||Picture 1. Generator producing power from <item name="{{elementKeyCoal}}" height="{{ITEM_HEIGHT}}"> <b>Coal</b>||</left>
]]
}
}
}
@@ -385,6 +419,7 @@ local function getGuideFormspec(playerName,pageName)
local content=preprocessHypertext(table.concat(page.content,""),{
IMAGE_WIDTH=550,
ITEM_HEIGHT=16,
elementKeyCoal=industrialtest.elementKeys.coal,
elementKeyIronIngot=industrialtest.elementKeys.ironIngot,
elementKeyRubber=industrialtest.elementKeys.rubber,
elementKeyRubberWood=industrialtest.elementKeys.rubberWood