Skip to content

Commit aa56299

Browse files
committed
NokNok it's Mario (Gone)
1 parent c970d42 commit aa56299

File tree

3 files changed

+2
-77
lines changed

3 files changed

+2
-77
lines changed

dynamic/src/consts.rs

+2-3
Original file line numberDiff line numberDiff line change
@@ -816,9 +816,8 @@ pub mod vars {
816816
pub mod mario {
817817
pub mod instance {
818818
// flags
819-
pub const NOKNOK_SHELL: i32 = 0x0100;
820-
pub const DISABLE_DSPECIAL_STALL: i32 = 0x0101;
821-
pub const SPECIAL_S_DISABLE_STALL: i32 = 0x0102;
819+
pub const DISABLE_DSPECIAL_STALL: i32 = 0x0100;
820+
pub const SPECIAL_S_DISABLE_STALL: i32 = 0x0101;
822821
}
823822

824823
pub mod status {

fighters/mario/src/acmd/other.rs

-34
Original file line numberDiff line numberDiff line change
@@ -116,38 +116,6 @@ unsafe extern "C" fn damageflytop_sound(fighter: &mut L2CAgentBase) {
116116
}
117117
}
118118

119-
unsafe extern "C" fn mario_utauntr(fighter: &mut L2CAgentBase) {
120-
let lua_state = fighter.lua_state_agent;
121-
let boma = fighter.boma();
122-
frame(lua_state, 7.0);
123-
if is_excute(fighter) {
124-
if !VarModule::is_flag(fighter.battle_object, vars::mario::instance::NOKNOK_SHELL) {
125-
if ControlModule::check_button_on(boma, *CONTROL_PAD_BUTTON_SPECIAL) || ControlModule::check_button_on(boma, *CONTROL_PAD_BUTTON_SPECIAL_RAW) {
126-
ItemModule::have_item(boma, app::ItemKind(*ITEM_KIND_GREENSHELL), 0, 0, false, false);
127-
VarModule::on_flag(fighter.battle_object, vars::mario::instance::NOKNOK_SHELL);
128-
VarModule::set_int(fighter.battle_object, vars::common::instance::GIMMICK_TIMER, 1);
129-
}
130-
}
131-
}
132-
133-
}
134-
135-
unsafe extern "C" fn mario_utauntl(fighter: &mut L2CAgentBase) {
136-
let lua_state = fighter.lua_state_agent;
137-
let boma = fighter.boma();
138-
frame(lua_state, 7.0);
139-
if is_excute(fighter) {
140-
if !VarModule::is_flag(fighter.battle_object, vars::mario::instance::NOKNOK_SHELL) {
141-
if ControlModule::check_button_on(boma, *CONTROL_PAD_BUTTON_SPECIAL) || ControlModule::check_button_on(boma, *CONTROL_PAD_BUTTON_SPECIAL_RAW) {
142-
ItemModule::have_item(boma, app::ItemKind(*ITEM_KIND_GREENSHELL), 0, 0, false, false);
143-
VarModule::on_flag(fighter.battle_object, vars::mario::instance::NOKNOK_SHELL);
144-
VarModule::set_int(fighter.battle_object, vars::common::instance::GIMMICK_TIMER, 1);
145-
}
146-
}
147-
}
148-
149-
}
150-
151119
unsafe extern "C" fn dash_game(fighter: &mut L2CAgentBase) {
152120
let lua_state = fighter.lua_state_agent;
153121
let boma = fighter.boma();
@@ -371,8 +339,6 @@ pub fn install() {
371339
.sound_acmd("sound_damageflyn", damageflyn_sound)
372340
.sound_acmd("sound_damageflyroll", damageflyroll_sound)
373341
.sound_acmd("sound_damageflytop", damageflytop_sound)
374-
.game_acmd("game_appealhir", mario_utauntr)
375-
.game_acmd("game_appealhil", mario_utauntl)
376342
.game_acmd("game_dash", dash_game)
377343
.sound_acmd("sound_dash", dash_sound)
378344
.game_acmd("game_turndash", turn_dash_game)

fighters/mario/src/opff.rs

-40
Original file line numberDiff line numberDiff line change
@@ -212,43 +212,6 @@ extern "Rust" {
212212
fn gimmick_flash(boma: &mut BattleObjectModuleAccessor);
213213
}
214214

215-
// NokNok Shell Timer Count
216-
unsafe fn noknok_timer(fighter: &mut L2CFighterCommon, boma: &mut BattleObjectModuleAccessor, id: usize) {
217-
let gimmick_timerr = VarModule::get_int(fighter.battle_object, vars::common::instance::GIMMICK_TIMER);
218-
if gimmick_timerr > 0 && gimmick_timerr < 1801 {
219-
if gimmick_timerr > 1799 {
220-
VarModule::off_flag(boma.object(), vars::mario::instance::NOKNOK_SHELL);
221-
VarModule::set_int(fighter.battle_object, vars::common::instance::GIMMICK_TIMER, 0);
222-
gimmick_flash(boma);
223-
} else {
224-
VarModule::set_int(fighter.battle_object, vars::common::instance::GIMMICK_TIMER, gimmick_timerr + 1);
225-
}
226-
}
227-
}
228-
229-
// NokNok shell flag reset
230-
unsafe fn noknok_reset(fighter: &mut L2CFighterCommon, id: usize, status_kind: i32) {
231-
if VarModule::is_flag(fighter.battle_object, vars::mario::instance::NOKNOK_SHELL) {
232-
if [*FIGHTER_STATUS_KIND_DEAD,
233-
*FIGHTER_STATUS_KIND_REBIRTH,
234-
*FIGHTER_STATUS_KIND_WIN,
235-
*FIGHTER_STATUS_KIND_LOSE,
236-
*FIGHTER_STATUS_KIND_ENTRY].contains(&status_kind) {
237-
VarModule::off_flag(fighter.battle_object, vars::mario::instance::NOKNOK_SHELL);
238-
}
239-
}
240-
}
241-
242-
// TRAINING MODE
243-
// NokNok shell flag reset via taunt
244-
unsafe fn noknok_training(fighter: &mut L2CFighterCommon, id: usize, status_kind: i32) {
245-
if is_training_mode() {
246-
if status_kind == *FIGHTER_STATUS_KIND_APPEAL {
247-
VarModule::off_flag(fighter.battle_object, vars::mario::instance::NOKNOK_SHELL);
248-
}
249-
}
250-
}
251-
252215
unsafe fn fastfall_specials(fighter: &mut L2CFighterCommon) {
253216
if !fighter.is_in_hitlag()
254217
&& !StatusModule::is_changing(fighter.module_accessor)
@@ -287,9 +250,6 @@ pub unsafe fn moveset(fighter: &mut L2CFighterCommon, boma: &mut BattleObjectMod
287250
galaxy_spin_poc(fighter, boma, status_kind);
288251
galaxy_spin_rise(fighter, boma, status_kind, motion_kind, situation_kind, frame);
289252
galaxy_spin_move(fighter, boma, status_kind, motion_kind, situation_kind, frame, stick_x, facing);
290-
noknok_timer(fighter, boma, id);
291-
noknok_reset(fighter, id, status_kind);
292-
noknok_training(fighter, id, status_kind);
293253
fastfall_specials(fighter);
294254
}
295255

0 commit comments

Comments
 (0)