Files
PkmnLib.NET/Plugins/PkmnLib.Plugin.Gen7/Scripts/Items/Pokeballs/FriendBall.cs

21 lines
471 B
C#

namespace PkmnLib.Plugin.Gen7.Scripts.Items.Pokeballs;
[ItemScript("friend_ball")]
public class FriendBall : PokeballScript
{
/// <inheritdoc />
public FriendBall(IItem item) : base(item)
{
}
/// <inheritdoc />
public override void ChangeCatchRate(IBattlePokemon target, ref byte catchRate)
{
}
/// <inheritdoc />
public override void OnAfterSuccessfulCapture(IBattlePokemon target)
{
target.Happiness = 200;
}
}