19 lines
479 B
C#
19 lines
479 B
C#
namespace PkmnLib.Plugin.Gen7.Scripts.Items.Pokeballs;
|
|
|
|
[ItemScript("net_ball")]
|
|
public class NetBall : PokeballScript
|
|
{
|
|
/// <inheritdoc />
|
|
public NetBall(IItem item) : base(item)
|
|
{
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
public override void ChangeCatchRate(IPokemon target, ref byte catchRate)
|
|
{
|
|
if (target.Types.Any(x => x.Name == TypeNames.Water || x.Name == TypeNames.Bug))
|
|
{
|
|
catchRate = catchRate.MultiplyOrMax(3.5f);
|
|
}
|
|
}
|
|
} |