Implementation of Pokeballs

This commit is contained in:
Deukhoofd committed 2025-01-10 11:58:23 +01:00
1 parent 0518499a4c
commit 42e3273483
15 files changed
+254 -12

No files matched your search

+8
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();