diff options
author | thetaepsilon-gamedev <thetaepsilon-gamedev@noreply.users.github.com> | 2017-10-20 22:46:51 +0100 |
---|---|---|
committer | thetaepsilon-gamedev <thetaepsilon-gamedev@noreply.users.github.com> | 2017-10-20 22:46:51 +0100 |
commit | 75978a020751ce5591d0fd0b8adeaa32422b2fe5 (patch) | |
tree | b1ab231598b02f7342c95ded253c8f671c9b1bd1 /default_settings.lua | |
parent | 538e33c537c2c6347a7a2251392fedbf5ee07ba3 (diff) |
refactor pressure logic toggle to act as option enum
Diffstat (limited to 'default_settings.lua')
-rw-r--r-- | default_settings.lua | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/default_settings.lua b/default_settings.lua index c211153..7d8bfd9 100644 --- a/default_settings.lua +++ b/default_settings.lua @@ -29,16 +29,22 @@ local settings = { delete_item_on_clearobject = true, } +pipeworks.toggles = {} -- documentation for toggles controlling pressure logic features. -- do not edit this file directly; -- instead, create pipeworks_settings.txt in your world directory, --- and copy the uncommented lines from the block comment below into it. +-- and copy the uncommented lines from the block comments below into it. +--[[ +-- flow logic implementation. +-- set to one of the following strings. +-- "classic": classic mode written by VanessaE +-- "pressure": pressure metadata based, written by thetaepsilon. +-- has caveats such as water speed issues though. +-- setting to nil inhibits all flow logic, useful for debugging ABM crashes, +-- or for rendering the pipes purely decorative. +]] +pipeworks.toggles.pipe_mode = "classic" --[[ --- enable pressure logic mode instead of "classic" mode. --- WARNING: this changes a few things, most noticeably how pumps work. --- you'll want to make sure they're fed by an infinite spring. -pipeworks.toggles.pressure_logic = true - -- force-enable finite water handling mode. -- this changes the way that water node placement is handled; -- volume will always be preserved, |