Implementation of Pokeballs
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user