Skip to content

Commit

Permalink
すり抜け更新
Browse files Browse the repository at this point in the history
  • Loading branch information
aera-ngmansion committed Jul 20, 2017
1 parent 3d0f075 commit 580ca17
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 10 deletions.
8 changes: 6 additions & 2 deletions Engine Hacks/_N/_Skills/pass/EA.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
PassList:
BYTE $17 $18 0

ALIGN 4
PUSH
ORG 0x1A1D0
BYTE $00 $48 $87 $46
POIN passem
POP
passem:
#incbin "pass.dmp"
ALIGN 4
#incbin "pass.gba"
POIN PassList
38 changes: 30 additions & 8 deletions Engine Hacks/_N/_Skills/pass/pass.asm
Original file line number Diff line number Diff line change
@@ -1,28 +1,48 @@
@thumb

cmp r3, #0
bne Start
strb r3, [r6, #8]
ldr r0, =$0801a1ea
mov pc, r0
Start:
;
;索敵マップなら無効
;
ldr r0, =$0202BCF9
ldrb r0, [r0]
cmp r0, #0
bne nonPass
;
;謎のバグ防止
;
mov r0, r13
ldr r1, =$03007d18
cmp r0, r1
beq nonPass
;
;個人スキルチェック
;
ldr r0, [r4, #0]
ldrh r0, [r0, #38]
lsl r0, r0, #20
bmi ouiPass
ldr r0, [r4, #4]
ldrb r0, [r0, #4]
cmp r0, #23
beq ouiPass
cmp r0, #24
beq ouiPass
cmp r0, #0
beq ouiPass
;
;兵種スキルチェック
;
@align 4
ldr r2, [adr] ;すり抜け兵種ドレス
ldr r1, [r4, #4]
ldrb r1, [r1, #4]
loopPass:
ldrb r0, [r2]
cmp r0, #0
beq nonPass
cmp r0, r1
beq ouiPass
add r2, #1
b loopPass
nonPass:
mov r0, #1
b Return
Expand All @@ -31,3 +51,5 @@ ouiPass:
Return:
ldr r1, =$0801a1e6
mov pc, r1
@ltorg
adr:
Binary file removed Engine Hacks/_N/_Skills/pass/pass.dmp
Binary file not shown.
Binary file added Engine Hacks/_N/_Skills/pass/pass.gba
Binary file not shown.

0 comments on commit 580ca17

Please sign in to comment.