Last active
May 17, 2024 07:07
-
-
Save WORMSS/a8b826cf3ab010abaf728bdb2e395c7c to your computer and use it in GitHub Desktop.
Stationeers Quick Little Patterns
This file contains hidden or 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
alias Counter r0 | |
alias CurrentValue r1 | |
alias KnownHighest r2 | |
alias KnownHighestValue r3 | |
alias Housing db | |
s Housing Setting -1 | |
reset: | |
move Counter 0 | |
move KnownHighest -1 | |
move KnownHighestValue -1 | |
loop: | |
bdns dr0 increase # r0 = Counter | |
l CurrentValue dr0 Ratio # r0 = Counter | |
ble CurrentValue KnownHighestValue increase | |
move KnownHighest Counter | |
move KnownHighestValue CurrentValue | |
increase: | |
bge Counter 5 last | |
add Counter Counter 1 | |
j loop | |
last: | |
s Housing Setting KnownHighest | |
end: | |
sleep 5 | |
j reset |
This file contains hidden or 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
alias Heaters d0 | |
alias Battery d1 | |
alias BattRatio r0 | |
alias HeaterState r1 | |
start: | |
l BattRatio Battery Ratio | |
sgt HeaterState BattRatio 0.5 | |
s Heaters On HeaterState | |
sleep 5 | |
j start |
This file contains hidden or 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
alias Counter r0 | |
alias CurrentValue r1 | |
alias KnownLowest r2 | |
alias KnownLowestValue r3 | |
alias Housing db | |
s Housing Setting -1 | |
reset: | |
move Counter 0 | |
move KnownLowest -1 | |
move KnownLowestValue 2 | |
loop: | |
bdns dr0 increase # r0 = Counter | |
l CurrentValue dr0 Ratio # r0 = Counter | |
bge CurrentValue KnownLowestValue increase | |
move KnownLowest Counter | |
move KnownLowestValue CurrentValue | |
increase: | |
bge Counter 5 last | |
add Counter Counter 1 | |
j loop | |
last: | |
s Housing Setting KnownLowest | |
end: | |
sleep 5 | |
j reset |
This file contains hidden or 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
alias Pump d0 | |
alias PipeSensor d1 | |
alias Vent d2 | |
alias GasSensor d3 | |
alias PipePressure r15 | |
alias RoomPressure r14 | |
alias PumpState r13 | |
alias VentState r12 | |
start: | |
l PipePressure PipeSensor Pressure | |
sgtz PumpState PipePressure | |
s Pump On PumpState | |
l RoomPressure GasSensor Pressure | |
sgtz VentState RoomPressure | |
s Vent On VentState | |
sleep 6 | |
j start |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment