lorom

org $909C7B

JSR $F640

org $90F640

PHA
SEP #$20
LDA $7E079F
CMP #$05
BEQ Grav
REP #$20
PLA
LDA $9EA1
RTS

Grav:
REP #$20
PLA
LDA #$0600
RTS

org $909C91

JSR $F660

org $90F660

PHA
SEP #$20
LDA $7E079F
CMP #$05
BEQ Water
REP #$20
PLA
LDA $9EA3
RTS

Water:
REP #$20
PLA
LDA #$0300
RTS

org $909C9F

JSR $F680

org $90F680

PHA
SEP #$20
LDA $7E079F
CMP #$05
BEQ Lava
REP #$20
PLA
LDA $9EA3
RTS

Lava:
REP #$20
PLA
LDA #$0200
RTS

;CMP #$05 is checking what area you're in (Tourain). 
;Change 05 to any value down below to make the altered gravity work for that area.
;Crateria: 00
;Brinstar: 01
;Norfair: 02
;WS: 03
;Maridia: 04
;Tourain: 05
;Ceres: 06

;Change the LDA value in the branches "Water:, Lava:, etc." 
;To change the gravity value loaded for that thing.
;"Normal" values for air, water and lava are 1C00, 0800, and 0900, respectively.
;Higher numbers = fall faster

