summaryrefslogtreecommitdiff
path: root/main.asm
diff options
context:
space:
mode:
authoryenatch <yenatch@gmail.com>2013-05-03 02:43:04 -0400
committeryenatch <yenatch@gmail.com>2013-05-03 02:43:04 -0400
commitf3d0f2f1a4316e8793acc59a7fd3bc851a39355a (patch)
tree32702fa8eb52ac2b515c6e1cf6c11aa9212b40e3 /main.asm
parent9b68493758aa62b761e6aa819303f30054cef605 (diff)
user/opponent party attribute functions
Diffstat (limited to 'main.asm')
-rw-r--r--main.asm28
1 files changed, 27 insertions, 1 deletions
diff --git a/main.asm b/main.asm
index 6ff248df1..5fdece4fb 100644
--- a/main.asm
+++ b/main.asm
@@ -3817,7 +3817,33 @@ GetPartyLocation: ; 3927
; 392d
-INCBIN "baserom.gbc", $392d, $395d - $392d
+INCBIN "baserom.gbc", $392d, $3945 - $392d
+
+
+UserPartyAttr: ; 3945
+ push af
+ ld a, [hBattleTurn]
+ and a
+ jr nz, .asm_394e
+ pop af
+ jr BattlePartyAttr
+.asm_394e
+ pop af
+ jr OTPartyAttr
+; 3951
+
+
+OpponentPartyAttr: ; 3951
+ push af
+ ld a, [hBattleTurn]
+ and a
+ jr z, .asm_395a
+ pop af
+ jr BattlePartyAttr
+.asm_395a
+ pop af
+ jr OTPartyAttr
+; 395d
BattlePartyAttr: ; 395d