More move scripts

This commit is contained in:
2025-05-03 16:51:44 +02:00
parent f8c43b6ba0
commit 1973ff50fa
52 changed files with 704 additions and 78 deletions

View File

@@ -1,3 +1,4 @@
using System.Diagnostics;
using PkmnLib.Dynamic.Models;
using PkmnLib.Dynamic.Models.Choices;
using PkmnLib.Dynamic.ScriptHandling.Registry;
@@ -12,6 +13,7 @@ namespace PkmnLib.Dynamic.ScriptHandling;
/// changes. This allows for easily defining generational differences, and add effects that the
/// developer might require.
/// </summary>
[DebuggerDisplay("{Category} - {Name}")]
public abstract class Script : IDeepCloneable
{
internal event Action<Script>? OnRemoveEvent;
@@ -683,4 +685,12 @@ public abstract class Script : IDeepCloneable
public virtual void OnBeforeHit(IExecutingMove move, IPokemon target, byte hitIndex)
{
}
public virtual void PreventStatusChange(IPokemon pokemonImpl, StringKey status, ref bool preventStatus)
{
}
public virtual void PreventVolatileAdd(Script script, ref bool preventVolatileAdd)
{
}
}