Let's not speed up DAS at 20G.

This commit is contained in:
Randy Thiemann 2023-10-29 11:45:02 +01:00
parent bd8d165d3a
commit 7ce42296c8
3 changed files with 12 additions and 0 deletions

Binary file not shown.

Binary file not shown.

View File

@ -1279,6 +1279,9 @@ FieldProcess::
cp a, 0 ; We never want to move if the button wasn't held.
jr z, .wantright
ld b, a
ldh a, [hCurrentIntegerGravity]
cp a, 20 ; No increased DAS at 20G.
jr z, .wantright
ldh a, [hGrounded] ; If we're grounded, assume some urgency in getting DAS charged, charge at twice the rate.
cp a, $FF
jr nz, .checkdasleft
@ -1305,6 +1308,9 @@ FieldProcess::
cp a, 0 ; We never want to move if the button wasn't held.
jr z, .donemanipulating
ld b, a
ldh a, [hCurrentIntegerGravity]
cp a, 20 ; No increased DAS at 20G.
jr z, .donemanipulating
ldh a, [hGrounded] ; If we're grounded, assume some urgency in getting DAS charged, charge at twice the rate.
cp a, $FF
jr nz, .checkdasright
@ -3333,6 +3339,9 @@ BigFieldProcess::
cp a, 0 ; We never want to move if the button wasn't held.
jr z, .wantright
ld b, a
ldh a, [hCurrentIntegerGravity]
cp a, 20 ; No increased DAS at 20G.
jr z, .wantright
ldh a, [hGrounded] ; If we're grounded, assume some urgency in getting DAS charged, charge at twice the rate.
cp a, $FF
jr nz, .checkdasleft
@ -3359,6 +3368,9 @@ BigFieldProcess::
cp a, 0 ; We never want to move if the button wasn't held.
jr z, .donemanipulating
ld b, a
ldh a, [hCurrentIntegerGravity]
cp a, 20 ; No increased DAS at 20G.
jr z, .wantright
ldh a, [hGrounded] ; If we're grounded, assume some urgency in getting DAS charged, charge at twice the rate.
cp a, $FF
jr nz, .checkdasright