Skip to content

Commit

Permalink
Refactor code used to set steam and water heat_capacity
Browse files Browse the repository at this point in the history
  • Loading branch information
notnotmelon committed Nov 7, 2024
1 parent a153b84 commit f5997a2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
4 changes: 1 addition & 3 deletions data-final-fixes.lua
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,4 @@ for _, recipe in pairs(data.raw.recipe) do
if recipe.category == "tar" and not recipe.crafting_machine_tint then
error("Recipe " .. recipe.name .. " is missing crafting_machine_tint. Please fill out this field.")
end
end

data.raw.fluid["steam"].heat_capacity = (1000 / 60 * 126) .. "J"
end
5 changes: 2 additions & 3 deletions prototypes/updates/entity-updates.lua
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,8 @@ data.raw.generator["steam-turbine"].destroy_non_fuel_fluid = false
--increase steam max temp
data.raw.fluid["steam"].max_temperature = 2000

data.raw.fluid["steam"].heat_capacity = "1kJ"

data.raw.fluid["water"].heat_capacity = "2.1kJ"
data.raw.fluid["steam"].heat_capacity = "2.1kJ"
data.raw.fluid["water"].heat_capacity = data.raw.fluid["steam"].heat_capacity

data.raw.fluid["water"].max_temperature = 500

Expand Down

0 comments on commit f5997a2

Please sign in to comment.