A plugin allowing for centralized hooking of parameter files, allowing multiple plugins to all hook param file loads.
use smash::params::*;
fn params_main(params_info: &ParamsInfo<'_>) {
if let Ok(common) = params_info.get::<CommonParams>() {
common.shield_damage_mul = 0.0;
common.precede = 3;
common.cliff_max_count = 0;
common.invalid_capture_frame = 900;
}
if let Ok(fighter_param) = params_info.get::<FighterParams>() {
let ganon_params = &mut fighter_param[*FIGHTER_KIND_GANON];
ganon_params.walk_speed_max = 30.0;
}
}
// in main
smash::params::add_hook(params_main).unwrap();
Note: Requires cargo-skyline to be installed
To install, simply run:
cargo skyline install
Or, if your IP isn't configured yet, use
cargo skyline install --ip X.X.X.X
Where X.X.X.X
is your switch's IP address