Implement most pokeballs
All checks were successful
Build / Build (push) Successful in 1m2s

This commit is contained in:
2025-07-20 11:15:45 +02:00
parent db3f7f2403
commit 77d7b86a3c
19 changed files with 452 additions and 38 deletions

View File

@@ -0,0 +1,23 @@
namespace PkmnLib.Plugin.Gen7.Scripts.Items.Pokeballs;
[ItemScript("quick_ball")]
public class QuickBall : PokeballScript
{
/// <inheritdoc />
public QuickBall(IItem item) : base(item)
{
}
/// <inheritdoc />
public override void ChangeCatchRate(IPokemon target, ref byte catchRate)
{
var battleData = target.BattleData;
if (battleData is null)
return;
if (battleData.Battle.CurrentTurnNumber == 1)
{
catchRate = catchRate.MultiplyOrMax(5f);
}
}
}