Skip to content

Commit 876eed1

Browse files
committed
Archery Aim Circle Item Added
1 parent d64c61d commit 876eed1

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

src/hooks/hooks_Arc.cpp

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,25 @@ namespace Arc {
1515
******************************************************************************/
1616

1717
/**
18-
* @brief Sets the max arrows in Archery
18+
* @brief Sets the aim flag in Archery
1919
*/
20-
float ArcSetMaxArrowCount() {}
20+
bool ArcSetAimFlag(bool hold2) {
21+
if (!ItemMgr::GetInstance().IsArcAim()) return false;
22+
else if (!hold2) return false;
23+
else return true;
24+
}
2125

2226
/**
2327
* @brief ArcSetMaxArrowCount trampoline
2428
*/
25-
TRAMPOLINE_DEF(0x80549cf0, 0x80549cf4) {
29+
TRAMPOLINE_DEF(0x80548828, 0x8054882c) {
2630
// clang-format off
2731
TRAMPOLINE_BEGIN
2832

29-
li r0, 2
33+
mr r31, r3
34+
mr r3, r0
35+
bl ArcSetAimFlag
36+
stb r3, 0x85(r31)
3037

3138
TRAMPOLINE_END
3239
blr

0 commit comments

Comments
 (0)