Skip to content

Commit 4d6358f

Browse files
committed
Fix ridley AI to update enemy HP when it transitions to zero
1 parent 15e2ccb commit 4d6358f

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

src/infohudmodes.asm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4676,7 +4676,7 @@ status_ridleyai:
46764676
LDA !ENEMY_FUNCTION_POINTER : CMP !ram_HUD_check : BNE .update_HUD
46774677

46784678
; fallbacks for convenience
4679-
LDA !ENEMY_HP : BEQ .ridleygrab
4679+
LDA !ram_enemy_hp : ORA !ENEMY_HP : BEQ .ridleygrab
46804680
JMP status_enemyhp
46814681

46824682
.done
@@ -4740,7 +4740,7 @@ status_ridleyai:
47404740

47414741
.left_HUD
47424742
%ai16()
4743-
LDA !ENEMY_HP : BEQ .ridleygrab
4743+
LDA !ram_enemy_hp : ORA !ENEMY_HP : BEQ .ridleygrab
47444744
JMP status_enemyhp
47454745

47464746
; this data could live anywhere in the ROM

src/main.asm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ lorom
1616
!VERSION_MAJOR = 2
1717
!VERSION_MINOR = 7
1818
!VERSION_BUILD = 1
19-
!VERSION_REV = 3
19+
!VERSION_REV = 4
2020

2121
table ../resources/normal.tbl
2222
print ""

web/data/changelog.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
- Corrections for KPDR 25% presets (2.7.1.1)
1414
- Fix save stations so when you skip save or select no then save is skipped (2.7.1.2)
1515
- Fix second robot indicator in robot flush room strat (2.7.1.3)
16+
- Fix ridley AI to initially show 0 HP when ridley's health drops to zero (2.7.1.4)
1617

1718
# Version 2.6.x
1819
- Optimize kraid rock projectiles to reduce lag when Kraid rises (2.6.0)

web/data/config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "Super Metroid Practice Hack",
3-
"version": "2.7.1.3",
3+
"version": "2.7.1.4",
44
"variants": ["NTSC", "PAL"],
55
"base": {
66
"NTSC": {

0 commit comments

Comments
 (0)