summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorAnonymousRandomPerson <chenghanngan.us@gmail.com>2021-12-13 23:22:03 -0500
committerAnonymousRandomPerson <chenghanngan.us@gmail.com>2021-12-14 22:54:03 -0500
commitcd9a8c5a384124999e15626d9623b48f2687deba (patch)
tree096eef1adbb2781332d71cce238d0d2614b9feee /data
parent087405b9d975b447ef7b17afd1e73e449cc7881b (diff)
Decomped CanTarget()
Diffstat (limited to 'data')
-rw-r--r--data/data_80F4278.s25
1 files changed, 21 insertions, 4 deletions
diff --git a/data/data_80F4278.s b/data/data_80F4278.s
index 036c63a..8487e01 100644
--- a/data/data_80F4278.s
+++ b/data/data_80F4278.s
@@ -1,4 +1,5 @@
-#include "constants/status.h"
+.include "include/constants/status.h"
+.include "include/constants/targeting.h"
.section .rodata
.global gUnknown_80F42D0
@@ -7840,9 +7841,25 @@ gDirectionBitMasks_3: @ 8106FDD
@ replacing .incbin "baserom.gba", 0x00106fdd, 0x8
.byte 0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80
- .global gUnknown_8106FE5
-gUnknown_8106FE5: @ 8106FE5
- .incbin "baserom.gba", 0x106FE5, 0x2B
+ .global gTargetingData
+gTargetingData: @ 8106FE5
+@ replacing .incbin "baserom.gba", 0x106FE5, 0x2B
+ .byte TARGET_CAPABILITY_CANNOT_ATTACK, TARGET_CAPABILITY_CAN_ATTACK_NOT_TARGET
+ .byte TARGET_CAPABILITY_CAN_TARGET, TARGET_CAPABILITY_CAN_ATTACK_NOT_TARGET
+ .byte TARGET_CAPABILITY_CAN_TARGET, TARGET_CAPABILITY_CAN_ATTACK_NOT_TARGET
+ .byte TARGET_CAPABILITY_CANNOT_ATTACK, TARGET_CAPABILITY_CAN_ATTACK_NOT_TARGET
+ .byte TARGET_CAPABILITY_CANNOT_ATTACK, TARGET_CAPABILITY_CAN_ATTACK_NOT_TARGET
+ .byte TARGET_CAPABILITY_CAN_TARGET, TARGET_CAPABILITY_CAN_ATTACK_NOT_TARGET
+ .byte TARGET_CAPABILITY_CAN_ATTACK_NOT_TARGET, TARGET_CAPABILITY_CAN_TARGET
+ .byte TARGET_CAPABILITY_CAN_ATTACK_NOT_TARGET, TARGET_CAPABILITY_CAN_TARGET
+ .byte TARGET_CAPABILITY_CAN_ATTACK_NOT_TARGET, TARGET_CAPABILITY_CAN_TARGET
+ .byte TARGET_CAPABILITY_CAN_ATTACK_NOT_TARGET, TARGET_CAPABILITY_CAN_TARGET
+ .byte TARGET_CAPABILITY_CAN_TARGET, TARGET_CAPABILITY_CAN_ATTACK_NOT_TARGET
+ .byte TARGET_CAPABILITY_CANNOT_ATTACK, TARGET_CAPABILITY_CAN_ATTACK_NOT_TARGET
+
+ .byte 0x00, 0x00, 0x00
+ .string "pksdir0\0"
+ .string "pksdir0\0"
.global gUnknown_8107010
gUnknown_8107010: @ 8107010