mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2025-03-06 07:27:47 +01:00
FieldObjectFaceOppositeDirection
This commit is contained in:
parent
d1666473d3
commit
08cb777fd7
@ -5,29 +5,6 @@
|
|||||||
|
|
||||||
.text
|
.text
|
||||||
|
|
||||||
thumb_func_start FieldObjectFaceOppositeDirection
|
|
||||||
@ bool8 FieldObjectFaceOppositeDirection(struct npc_state *fieldObject, u8 direction)
|
|
||||||
FieldObjectFaceOppositeDirection: @ 809361C
|
|
||||||
push {r4,lr}
|
|
||||||
adds r4, r0, 0
|
|
||||||
lsls r0, r1, 24
|
|
||||||
lsrs r0, 24
|
|
||||||
bl GetOppositeDirection
|
|
||||||
lsls r0, 24
|
|
||||||
lsrs r0, 24
|
|
||||||
bl GetFaceDirectionAnimId
|
|
||||||
adds r1, r0, 0
|
|
||||||
lsls r1, 24
|
|
||||||
lsrs r1, 24
|
|
||||||
adds r0, r4, 0
|
|
||||||
bl FieldObjectSetSpecialAnim
|
|
||||||
lsls r0, 24
|
|
||||||
lsrs r0, 24
|
|
||||||
pop {r4}
|
|
||||||
pop {r1}
|
|
||||||
bx r1
|
|
||||||
thumb_func_end FieldObjectFaceOppositeDirection
|
|
||||||
|
|
||||||
thumb_func_start sub_8093648
|
thumb_func_start sub_8093648
|
||||||
sub_8093648: @ 8093648
|
sub_8093648: @ 8093648
|
||||||
push {r4,lr}
|
push {r4,lr}
|
||||||
|
@ -4042,3 +4042,8 @@ dirn2anim_2(GetStepInPlaceDelay32AnimId, gUnknown_0850DBE1);
|
|||||||
dirn2anim_2(GetStepInPlaceDelay16AnimId, gUnknown_0850DBE6);
|
dirn2anim_2(GetStepInPlaceDelay16AnimId, gUnknown_0850DBE6);
|
||||||
dirn2anim_2(GetStepInPlaceDelay8AnimId, gUnknown_0850DBEB);
|
dirn2anim_2(GetStepInPlaceDelay8AnimId, gUnknown_0850DBEB);
|
||||||
dirn2anim_2(GetStepInPlaceDelay4AnimId, gUnknown_0850DBF0);
|
dirn2anim_2(GetStepInPlaceDelay4AnimId, gUnknown_0850DBF0);
|
||||||
|
|
||||||
|
bool8 FieldObjectFaceOppositeDirection(struct MapObject *mapObject, u8 direction)
|
||||||
|
{
|
||||||
|
return FieldObjectSetSpecialAnim(mapObject, GetFaceDirectionAnimId(GetOppositeDirection(direction)));
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user