namespace PkmnLib.Plugin.Gen7.Scripts.Abilities;

/// <summary>
/// Light Metal is an ability that halves the Pokémon's weight.
///
/// <see href="https://bulbapedia.bulbagarden.net/wiki/Light_Metal_(Ability)">Bulbapedia - Light Metal</see>
/// </summary>
[Script(ScriptCategory.Ability, "light_metal")]
public class LightMetal : Script, IScriptModifyWeight
{
    /// <inheritdoc />
    public void ModifyWeight(ref float weight)
    {
        weight *= 0.5f;
    }
}