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:
@@ -1,7 +1,7 @@
|
||||
namespace PkmnLib.Plugin.Gen7.Scripts.Status;
|
||||
|
||||
[Script(ScriptCategory.Status, "sleep")]
|
||||
public class Sleep : Script, IScriptPreventMove
|
||||
public class Sleep : Script, IScriptPreventMove, IAIInfoScriptNumberTurnsLeft
|
||||
{
|
||||
private IPokemon? _pokemon;
|
||||
public int Turns { get; set; }
|
||||
@@ -54,4 +54,7 @@ public class Sleep : Script, IScriptPreventMove
|
||||
{ "pokemon", _pokemon },
|
||||
}));
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public int TurnsLeft() => Turns;
|
||||
}
|
||||
Reference in New Issue
Block a user