HybridDog
17a602a5a1
Remove unused loop variables, trailing whitespace and fix mixed-whitespace indentations
2021-02-05 17:17:50 +01:00
HybridDog
b2d2ccbcba
Remove or comment unused code and declare some variables local
2021-02-03 18:08:50 +01:00
thetaepsilon-gamedev
59d9e0b97d
pressure logic: detect vertical orientation for horizontal rotating flowables
2017-11-04 22:27:47 +00:00
thetaepsilon-gamedev
75978a0207
refactor pressure logic toggle to act as option enum
2017-10-20 22:46:51 +01:00
thetaepsilon-gamedev
b2b29a1737
pressure logic: rewrite callbacks for horizontal rotation flowables to support singular and double-ended devices
2017-10-19 13:35:31 +01:00
thetaepsilon-gamedev
0913098a9d
pressure logic: add horizontally-rotating directional flowable helper
2017-10-19 12:28:33 +01:00
thetaepsilon-gamedev
efcec7bdce
pressure logic: abms.lua: fix invocation bug for directionality callback accidentally passing origin data to neighbour's directionfn
2017-10-19 12:13:44 +01:00
thetaepsilon-gamedev
7f7dfb79d5
pressure logic/flowable node registry: move pump directionality code to dedicated fixed vertical helper
2017-10-18 21:20:19 +01:00
thetaepsilon-gamedev
0a97abcaf6
pressure logic/abms.lua: implement testing of flow direction testing in get_neighbour_positions()
2017-10-18 11:57:31 +01:00
thetaepsilon-gamedev
653aaffa3e
pressure logic/abms.lua: rename local variables and retain node data in connection check for-loop
2017-10-18 11:32:16 +01:00
thetaepsilon-gamedev
084bbc6c0b
pressure logic: abms.lua: get_neighbour_positions: move calculation of absolute world position to neighbour probing for-loop
...
This allows the raw offset to be visible inside that for-loop, which will be needed for calling the directionfn for directional neighbours to determine if they can flow in the given direction.
2017-10-18 09:32:33 +01:00
thetaepsilon-gamedev
0a4d15d26e
pressure logic: flowable node registry: add directionfn to directional flowable entries
2017-10-17 23:14:26 +01:00
thetaepsilon-gamedev
909b321f3c
pressure logic: abms.lua: refactor balance_pressure() to move responsiblity for checking neighbour flow classes to get_neighbour_positions
2017-10-17 22:20:13 +01:00
thetaepsilon-gamedev
d68d3d5852
pressure logic: abms.lua: move neighbour candidates calculation to separate function
2017-10-17 22:01:29 +01:00
thetaepsilon-gamedev
aacd5ec829
rename new_flow_logic subdirectory to a less ambiguous name
...
The "new flow logic" name was supposed to indicate that it was a continuation of the old branch by the same name, but it is beginning to become clear that it's not "new" any more and it might lead to confusion with "classic mode" flow logic while that still co-exists.
Explicitly name the subdirectory "pressure logic" to give a better idea of what goes in it, init.lua edited accordingly.
2017-10-17 14:20:55 +01:00