Getting started with implementing an explicit AI, based on the Essentials one.
All checks were successful
Build / Build (push) Successful in 1m2s

This commit is contained in:
2025-07-11 17:03:08 +02:00
parent 084ae84130
commit a3a4993407
56 changed files with 2687 additions and 1274 deletions

View File

@@ -220,6 +220,11 @@ public interface IPokemon : IScriptSource, IDeepCloneable
/// </summary>
ScriptContainer StatusScript { get; }
/// <summary>
/// The number of turns left for the current non-volatile status.
/// </summary>
int? GetStatusTurnsLeft { get; }
/// <summary>
/// The volatile status scripts of the Pokemon.
/// </summary>
@@ -782,6 +787,9 @@ public class PokemonImpl : ScriptSource, IPokemon
/// <inheritdoc />
public ScriptContainer StatusScript { get; } = new();
/// <inheritdoc />
public int? GetStatusTurnsLeft => (StatusScript.Script as IAIInfoScriptNumberTurnsLeft)?.TurnsLeft();
/// <inheritdoc />
public IScriptSet Volatile { get; }