Getting started with implementing an explicit AI, based on the Essentials one.
All checks were successful
Build / Build (push) Successful in 1m2s
All checks were successful
Build / Build (push) Successful in 1m2s
This commit is contained in:
@@ -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; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user