death weapons fix

This commit is contained in:
2022-05-30 08:36:30 -04:00
parent 0ddbe41005
commit f13d7ac801
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -888,7 +888,8 @@ NamesOfWeapons ;the comment is an index in the tables
dta d"Contact Trigger " ; 62 dta d"Contact Trigger " ; 62
dta d"White Flag " ; 63 dta d"White Flag " ; 63
weaponsOfDeath weaponsOfDeath
dta 0,1,2,3,7,8,9,15,16,17,18,19,20,21,22,23,24,25,26,27 dta 1,2,3,7,15,16,17,18,19,20,21,22,23,24,25,26,27
weaponsOfDeathEnd
joyToKeyTable joyToKeyTable
; .by 00, 01, 02, 03, 04, 05, 06, 07, 08, 09, 10, 11, 12, 13, 14, 15 ; .by 00, 01, 02, 03, 04, 05, 06, 07, 08, 09, 10, 11, 12, 13, 14, 15
.by $ff,$ff,$ff,$ff,$ff,$ff,$ff,$07,$ff,$ff,$ff,$06,$ff,$0f,$0e,$ff .by $ff,$ff,$ff,$ff,$ff,$ff,$ff,$07,$ff,$ff,$ff,$06,$ff,$0f,$0e,$ff
+1 -1
View File
@@ -645,7 +645,7 @@ NoPlayerNoDeath
MetodOfDeath MetodOfDeath
lda random lda random
and #%00011111 ; range 0-31 and #%00011111 ; range 0-31
cmp #20 ; we have 20 weapons in table (from 0 to 19) cmp #(weaponsOfDeathEnd-weaponsOfDeath) ; we have 20 weapons in table (from 0 to 19)
bcs MetodOfDeath bcs MetodOfDeath
tay tay
lda weaponsOfDeath,y lda weaponsOfDeath,y