-
Notifications
You must be signed in to change notification settings - Fork 5
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
9 changed files
with
71 additions
and
2 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -1,10 +1,13 @@ | ||
[entity-name] | ||
check-valve=Non-return valve | ||
overflow-valve=Overflow valve | ||
underflow-valve=Float valve | ||
express-pump=Express pump | ||
pipe-elbow=Elbow pipe | ||
pipe-junction=T-Junction pipe | ||
pipe-straight=Straight pipe | ||
|
||
[item-description] | ||
check-valve=Only allows flow in one direction | ||
overflow-valve=Only allows flow when pipe is over 80% full | ||
overflow-valve=Blocks flow when input is under 80% full | ||
underflow-valve=Blocks flow when output is over 80% full |
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,29 @@ | ||
-- Reload recipes and technologies | ||
for i, player in ipairs(game.players) do | ||
player.force.reset_recipes() | ||
player.force.reset_technologies() | ||
end | ||
|
||
for index, force in pairs(game.forces) do | ||
-- Generate technology and recipe tables | ||
local tech = force.technologies | ||
local recipes = force.recipes | ||
|
||
recipes["small-pump"].enabled = true | ||
|
||
-- Unlock researched recipes | ||
if tech["fluid-handling"] and tech["fluid-handling"].researched then | ||
if recipes["check-valve"] then | ||
recipes["check-valve"].enabled = true | ||
end | ||
if recipes["overflow-valve"] then | ||
recipes["overflow-valve"].enabled = true | ||
end | ||
if recipes["underflow-valve"] then | ||
recipes["underflow-valve"].enabled = true | ||
end | ||
if recipes["express-pump"] then | ||
recipes["express-pump"].enabled = true | ||
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
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