Credit collection rate refactor
Music fixes and moving hooks
This commit is contained in:
@@ -24,7 +24,8 @@ For accessibility, you now get a C or P indicator to the left of the magic bar o
|
|||||||
|
|
||||||
* 0.4.0.12
|
* 0.4.0.12
|
||||||
* ER Inverted fix for HC Ledge
|
* ER Inverted fix for HC Ledge
|
||||||
* Credits again
|
* Credits again - hopefully for good
|
||||||
|
* Incorporated music fixes for now (may revisit later)
|
||||||
* 0.4.0.11
|
* 0.4.0.11
|
||||||
* Some minor base rom fixes
|
* Some minor base rom fixes
|
||||||
* Improved distribution of bombable/dashable doors
|
* Improved distribution of bombable/dashable doors
|
||||||
|
|||||||
14
Rom.py
14
Rom.py
@@ -30,7 +30,7 @@ from EntranceShuffle import door_addresses, exit_ids
|
|||||||
|
|
||||||
|
|
||||||
JAP10HASH = '03a63945398191337e896e5771f77173'
|
JAP10HASH = '03a63945398191337e896e5771f77173'
|
||||||
RANDOMIZERBASEHASH = '25dd18672e1234c85900f5b2155e7e4f'
|
RANDOMIZERBASEHASH = '9c2878d1035bb3889784906a55a92a26'
|
||||||
|
|
||||||
|
|
||||||
class JsonRom(object):
|
class JsonRom(object):
|
||||||
@@ -807,17 +807,17 @@ def patch_rom(world, rom, player, team, enemized, is_mystery=False):
|
|||||||
|
|
||||||
write_int16(rom, 0x187010, credits_total) # dynamic credits
|
write_int16(rom, 0x187010, credits_total) # dynamic credits
|
||||||
if credits_total != 216:
|
if credits_total != 216:
|
||||||
# collection rate address:
|
# collection rate address (hi):
|
||||||
cr_address = 0x2391F0
|
cr_address = 0x238057
|
||||||
cr_pc = cr_address - 0x120000 # convert to pc
|
cr_pc = cr_address - 0x120000 # convert to pc
|
||||||
mid_top, mid_bot = credits_digit((credits_total // 10) % 10)
|
mid_top, mid_bot = credits_digit((credits_total // 10) % 10)
|
||||||
last_top, last_bot = credits_digit(credits_total % 10)
|
last_top, last_bot = credits_digit(credits_total % 10)
|
||||||
# top half
|
# top half
|
||||||
rom.write_byte(cr_pc+0x1c, mid_top)
|
rom.write_byte(cr_pc+0x1, mid_top)
|
||||||
rom.write_byte(cr_pc+0x1d, last_top)
|
rom.write_byte(cr_pc+0x2, last_top)
|
||||||
# bottom half
|
# bottom half
|
||||||
rom.write_byte(cr_pc+0x3a, mid_bot)
|
rom.write_byte(cr_pc+0x1f, mid_bot)
|
||||||
rom.write_byte(cr_pc+0x3b, last_bot)
|
rom.write_byte(cr_pc+0x20, last_bot)
|
||||||
|
|
||||||
# patch medallion requirements
|
# patch medallion requirements
|
||||||
if world.required_medallions[player][0] == 'Bombos':
|
if world.required_medallions[player][0] == 'Bombos':
|
||||||
|
|||||||
@@ -179,6 +179,17 @@ JSL BlindsAtticHint : NOP #2
|
|||||||
org $1cfd69
|
org $1cfd69
|
||||||
Main_ShowTextMessage:
|
Main_ShowTextMessage:
|
||||||
|
|
||||||
|
; Conditionally disable UW music changes in Door Rando
|
||||||
|
org $028ADB ; <- Bank02.asm:2088-2095 (LDX.b #$14 : LDA $A0 ...)
|
||||||
|
JSL.l Underworld_DoorDown_Entry : CPX #$10
|
||||||
|
db $B0, $21 ; BCS $028B04
|
||||||
|
BRA + : NOP #6 : +
|
||||||
|
|
||||||
|
org $02C3F2 ; <- Bank02.asm:10521 Unused call
|
||||||
|
Underworld_DoorDown_Call:
|
||||||
|
org $02C3F3
|
||||||
|
dw $8AD9 ; address of Bank02.asm:2085
|
||||||
|
|
||||||
; These two, if enabled together, have implications for vanilla BK doors in IP/Hera/Mire
|
; These two, if enabled together, have implications for vanilla BK doors in IP/Hera/Mire
|
||||||
; IPBJ is common enough to consider not doing this. Mire is not a concern for vanilla - maybe glitched modes
|
; IPBJ is common enough to consider not doing this. Mire is not a concern for vanilla - maybe glitched modes
|
||||||
; Hera BK door back can be seen with Pot clipping - likely useful for no logic seeds
|
; Hera BK door back can be seen with Pot clipping - likely useful for no logic seeds
|
||||||
|
|||||||
@@ -398,7 +398,7 @@ StraightStairsTrapDoor:
|
|||||||
.animateTraps
|
.animateTraps
|
||||||
lda #$05 : sta $11
|
lda #$05 : sta $11
|
||||||
inc $0468 : stz $068e : stz $0690
|
inc $0468 : stz $068e : stz $0690
|
||||||
++ rtl
|
++ JSL Underworld_DoorDown_Call : rtl
|
||||||
+ JML Dungeon_ApproachFixedColor ; what we wrote over
|
+ JML Dungeon_ApproachFixedColor ; what we wrote over
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Binary file not shown.
Reference in New Issue
Block a user