|
1 | 1 |
|
2 | 2 | use super::*;
|
3 | 3 |
|
4 |
| -macro_rules! smash_attacks_common { |
5 |
| - ($fighter:ident) => {{ |
6 |
| - let lua_state = $fighter.lua_state_agent; |
7 |
| - let boma = $fighter.boma(); |
8 |
| - frame(lua_state, 1.0); |
9 |
| - HitModule::set_status_all(boma, app::HitStatus(*HIT_STATUS_XLU), 0); |
10 |
| - original!($fighter); |
11 |
| - HitModule::set_status_all(boma, app::HitStatus(*HIT_STATUS_NORMAL), 0); |
12 |
| - }} |
13 |
| -} |
14 |
| - |
15 |
| -#[acmd_script( agent = "pikmin_pikmin", script = "game_attackhi4" , category = ACMD_GAME , low_priority)] |
16 |
| -unsafe fn game_attackhi4(fighter: &mut L2CAgentBase) { |
17 |
| - smash_attacks_common!(fighter); |
18 |
| -} |
19 |
| - |
20 |
| -#[acmd_script( agent = "pikmin_pikmin", script = "game_attackhi4_b" , category = ACMD_GAME , low_priority)] |
21 |
| -unsafe fn game_attackhi4_b(fighter: &mut L2CAgentBase) { |
22 |
| - smash_attacks_common!(fighter); |
23 |
| -} |
24 |
| - |
25 |
| -#[acmd_script( agent = "pikmin_pikmin", script = "game_attackhi4_y" , category = ACMD_GAME , low_priority)] |
26 |
| -unsafe fn game_attackhi4_y(fighter: &mut L2CAgentBase) { |
27 |
| - smash_attacks_common!(fighter); |
28 |
| -} |
29 |
| - |
30 |
| -#[acmd_script( agent = "pikmin_pikmin", script = "game_attackhi4_w" , category = ACMD_GAME , low_priority)] |
31 |
| -unsafe fn game_attackhi4_w(fighter: &mut L2CAgentBase) { |
32 |
| - smash_attacks_common!(fighter); |
33 |
| -} |
34 |
| - |
35 |
| -#[acmd_script( agent = "pikmin_pikmin", script = "game_attackhi4_v" , category = ACMD_GAME , low_priority)] |
36 |
| -unsafe fn game_attackhi4_v(fighter: &mut L2CAgentBase) { |
37 |
| - smash_attacks_common!(fighter); |
38 |
| -} |
39 |
| - |
40 |
| - |
41 |
| - |
42 |
| -#[acmd_script( agent = "pikmin_pikmin", script = "game_attacks4" , category = ACMD_GAME , low_priority)] |
43 |
| -unsafe fn game_attacks4(fighter: &mut L2CAgentBase) { |
44 |
| - smash_attacks_common!(fighter); |
45 |
| -} |
46 |
| - |
47 |
| -#[acmd_script( agent = "pikmin_pikmin", script = "game_attacks4_b" , category = ACMD_GAME , low_priority)] |
48 |
| -unsafe fn game_attacks4_b(fighter: &mut L2CAgentBase) { |
49 |
| - smash_attacks_common!(fighter); |
50 |
| -} |
51 |
| - |
52 |
| -#[acmd_script( agent = "pikmin_pikmin", script = "game_attacks4_y" , category = ACMD_GAME , low_priority)] |
53 |
| -unsafe fn game_attacks4_y(fighter: &mut L2CAgentBase) { |
54 |
| - smash_attacks_common!(fighter); |
55 |
| -} |
56 |
| - |
57 |
| -#[acmd_script( agent = "pikmin_pikmin", script = "game_attacks4_w" , category = ACMD_GAME , low_priority)] |
58 |
| -unsafe fn game_attacks4_w(fighter: &mut L2CAgentBase) { |
59 |
| - smash_attacks_common!(fighter); |
60 |
| -} |
61 |
| - |
62 |
| -#[acmd_script( agent = "pikmin_pikmin", script = "game_attacks4_v" , category = ACMD_GAME , low_priority)] |
63 |
| -unsafe fn game_attacks4_v(fighter: &mut L2CAgentBase) { |
64 |
| - smash_attacks_common!(fighter); |
65 |
| -} |
66 |
| - |
67 |
| - |
68 |
| - |
69 |
| - |
70 |
| -#[acmd_script( agent = "pikmin_pikmin", script = "game_attacklw4" , category = ACMD_GAME , low_priority)] |
71 |
| -unsafe fn game_attacklw4(fighter: &mut L2CAgentBase) { |
72 |
| - smash_attacks_common!(fighter); |
73 |
| -} |
74 |
| - |
75 |
| -#[acmd_script( agent = "pikmin_pikmin", script = "game_attacklw4_b" , category = ACMD_GAME , low_priority)] |
76 |
| -unsafe fn game_attacklw4_b(fighter: &mut L2CAgentBase) { |
77 |
| - smash_attacks_common!(fighter); |
78 |
| -} |
79 |
| - |
80 |
| -#[acmd_script( agent = "pikmin_pikmin", script = "game_attacklw4_y" , category = ACMD_GAME , low_priority)] |
81 |
| -unsafe fn game_attacklw4_y(fighter: &mut L2CAgentBase) { |
82 |
| - smash_attacks_common!(fighter); |
83 |
| -} |
84 |
| - |
85 |
| -#[acmd_script( agent = "pikmin_pikmin", script = "game_attacklw4_w" , category = ACMD_GAME , low_priority)] |
86 |
| -unsafe fn game_attacklw4_w(fighter: &mut L2CAgentBase) { |
87 |
| - smash_attacks_common!(fighter); |
88 |
| -} |
89 |
| - |
90 |
| -#[acmd_script( agent = "pikmin_pikmin", script = "game_attacklw4_v" , category = ACMD_GAME , low_priority)] |
91 |
| -unsafe fn game_attacklw4_v(fighter: &mut L2CAgentBase) { |
92 |
| - smash_attacks_common!(fighter); |
93 |
| -} |
94 |
| - |
95 | 4 | pub fn install() {
|
96 | 5 | install_acmd_scripts!(
|
97 |
| - game_attackhi4, |
98 |
| - game_attackhi4_b, |
99 |
| - game_attackhi4_y, |
100 |
| - game_attackhi4_w, |
101 |
| - game_attackhi4_v, |
102 |
| - |
103 |
| - game_attacks4, |
104 |
| - game_attacks4_b, |
105 |
| - game_attacks4_y, |
106 |
| - game_attacks4_w, |
107 |
| - game_attacks4_v, |
108 |
| - |
109 |
| - game_attacklw4, |
110 |
| - game_attacklw4_b, |
111 |
| - game_attacklw4_y, |
112 |
| - game_attacklw4_w, |
113 |
| - game_attacklw4_v, |
114 | 6 | );
|
115 | 7 | }
|
116 | 8 |
|
0 commit comments