diff --git a/README.md b/README.md index 2dca62f9c..076b7e2f2 100644 --- a/README.md +++ b/README.md @@ -5,13 +5,20 @@ A plugin allowing for centralized hooking of parameter files, allowing multiple ## Usage ```rust -fn params_main(params_info: &smash::params::ParamsInfo<'_>) { - if let Ok(common) = params_info.get::() { +use smash::params::*; + +fn params_main(params_info: &ParamsInfo<'_>) { + if let Ok(common) = params_info.get::() { 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::() { + let ganon_params = fighter_param[*FIGHTER_KIND_GANON]; + ganon_params.walk_speed_max = 30.0; + } } // in main @@ -32,4 +39,4 @@ 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 \ No newline at end of file +Where `X.X.X.X` is your switch's IP address