-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
23 changed files
with
691 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
48 changes: 28 additions & 20 deletions
48
...y+pycoalprocessing+pyfusionenergy+pyhightech+pyindustry+pypetroleumhandling+pyrawores.lua
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
--[[ | ||
Fix case where we accidentally placed accumulators in the table without specifying their network | ||
--]] | ||
if global.aerials and global.aerials.accumulators then | ||
for network_id, table_entry in pairs(global.aerials.accumulators) do | ||
if table_entry.type then | ||
global.aerials.accumulators[network_id] = nil | ||
if table_entry.valid and table_entry.electric_network_id then | ||
log('found an oopsie') | ||
-- Migrate to the correct place in the structure if possible | ||
if global.aerials.accumulators[table_entry.electric_network_id][table_entry.name] then | ||
table_entry.destroy() | ||
else | ||
global.aerials.accumulators[table_entry.electric_network_id][table_entry.name] = table_entry | ||
end | ||
end | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
|
||
FLUID { | ||
type = "fluid", | ||
name = "enriched-water", | ||
icon = "__pyalternativeenergygraphics__/graphics/icons/enriched-water.png", | ||
icon_size = 32, | ||
default_temperature = 10, | ||
base_color = {r = 255, g = 69, b = 0}, | ||
flow_color = {r = 1, g = 1, b = 1}, | ||
max_temperature = 100, | ||
gas_temperature = 15, | ||
pressure_to_speed_ratio = 0.4, | ||
flow_to_energy_ratio = 0.59, | ||
subgroup = "py-fusion-fluids", | ||
order = "c" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
|
||
FLUID { | ||
type = "fluid", | ||
name = "hydrogen-sulfide", | ||
icon = "__pyalternativeenergygraphics__/graphics/icons/hydrogen-sulfide.png", | ||
icon_size = 64, | ||
default_temperature = 10, -- less than 15 = liquid / equal a 15 = gas | ||
base_color = {r = 0.431, g = 0.556, b = 0.627}, | ||
flow_color = {r = 1, g = 1, b = 1}, | ||
max_temperature = 100, | ||
gas_temperature = 15, | ||
pressure_to_speed_ratio = 0.4, | ||
flow_to_energy_ratio = 0.59, | ||
subgroup = "py-alternativeenergy-fluids", | ||
order = "c" | ||
} | ||
|
||
FLUID { | ||
type = "fluid", | ||
name = "deuterium-sulfide", | ||
icon = "__pyalternativeenergygraphics__/graphics/icons/deuterium-sulfide.png", | ||
icon_size = 64, | ||
default_temperature = 10, -- less than 15 = liquid / equal a 15 = gas | ||
base_color = {r = 0.431, g = 0.556, b = 0.627}, | ||
flow_color = {r = 1, g = 1, b = 1}, | ||
max_temperature = 100, | ||
gas_temperature = 15, | ||
pressure_to_speed_ratio = 0.4, | ||
flow_to_energy_ratio = 0.59, | ||
subgroup = "py-alternativeenergy-fluids", | ||
order = "c" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.