File tree Expand file tree Collapse file tree 1 file changed +11
-4
lines changed
Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments