Skip to content

Commit f8419ea

Browse files
committedFeb 27, 2024
new victory screen
1 parent 7f33118 commit f8419ea

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed
 

‎fighters/shulk/src/acmd/other.rs

+48
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,51 @@ unsafe extern "C" fn escape_air_slide_game(fighter: &mut L2CAgentBase) {
217217
}
218218
}
219219

220+
unsafe extern "C" fn effect_win2(agent: &mut L2CAgentBase) {
221+
let lua_state = agent.lua_state_agent;
222+
let boma = agent.boma();
223+
if is_excute(agent) {
224+
EFFECT_FOLLOW(agent, Hash40::new("shulk_monad_sword3"), Hash40::new("haver"), 0, 0, 0, 0, 0, 0, 1, true);
225+
EFFECT_FOLLOW(agent, Hash40::new("shulk_monad_circle"), Hash40::new("swordr"), 0, 0, 0, 0, 0, 0, 1, true);
226+
}
227+
frame(lua_state, 25.0);
228+
if is_excute(agent) {
229+
EFFECT_FOLLOW(agent, Hash40::new("shulk_monad_sword3_end"), Hash40::new("haver"), 0, 0, 0, 0, 0, 0, 1, true);
230+
}
231+
frame(lua_state, 26.0);
232+
if is_excute(agent) {
233+
EFFECT_OFF_KIND(agent, Hash40::new("shulk_monad_sword3"), false, false);
234+
EFFECT_OFF_KIND(agent, Hash40::new("shulk_monad_sword3_2"), false, false);
235+
EFFECT_OFF_KIND(agent, Hash40::new("shulk_monad_circle"), false, false);
236+
}
237+
}
238+
239+
unsafe extern "C" fn sound_win2a_us_en(agent: &mut L2CAgentBase) {
240+
let lua_state = agent.lua_state_agent;
241+
let boma = agent.boma();
242+
frame(lua_state, 60.0);
243+
if is_excute(agent) {
244+
PLAY_SE_NO_3D(agent, Hash40::new("vc_shulk_win02_01"));
245+
}
246+
frame(lua_state, 118.0);
247+
if is_excute(agent) {
248+
PLAY_SE(agent, Hash40::new("se_shulk_win02"));
249+
}
250+
}
251+
252+
unsafe extern "C" fn sound_win2b_us_en(agent: &mut L2CAgentBase) {
253+
let lua_state = agent.lua_state_agent;
254+
let boma = agent.boma();
255+
frame(lua_state, 16.0);
256+
if is_excute(agent) {
257+
PLAY_SE_NO_3D(agent, Hash40::new("vc_shulk_win02_02"));
258+
}
259+
frame(lua_state, 118.0);
260+
if is_excute(agent) {
261+
PLAY_SE(agent, Hash40::new("se_shulk_win02"));
262+
}
263+
}
264+
220265
pub fn install() {
221266
smashline::Agent::new("shulk")
222267
.acmd("sound_damageflyhi", damageflyhi_sound)
@@ -230,5 +275,8 @@ pub fn install() {
230275
.acmd("game_turndash", turn_dash_game)
231276
.acmd("game_escapeair", escape_air_game)
232277
.acmd("game_escapeairslide", escape_air_slide_game)
278+
.acmd("effect_win2", effect_win2)
279+
.acmd("sound_win2a_us_en", sound_win2a_us_en)
280+
.acmd("sound_win2b_us_en", sound_win2b_us_en)
233281
.install();
234282
}

0 commit comments

Comments
 (0)