Implementation of Pokeballs

This commit is contained in:
2025-01-10 11:58:23 +01:00
parent 0518499a4c
commit 42e3273483
15 changed files with 254 additions and 12 deletions

View File

@@ -201,6 +201,8 @@ public interface IPokemon : IScriptSource, IDeepCloneable
/// Whether or not this Pokemon was caught this battle.
/// </summary>
bool IsCaught { get; }
public void MarkAsCaught();
/// <summary>
/// The script for the held item.
@@ -632,6 +634,12 @@ public class PokemonImpl : ScriptSource, IPokemon
/// <inheritdoc />
public bool IsCaught { get; private set; }
/// <inheritdoc />
public void MarkAsCaught()
{
IsCaught = true;
}
/// <inheritdoc />
public ScriptContainer HeldItemTriggerScript { get; } = new();