Implements more abilities
Build / Build (push) Successful in 47s

This commit is contained in:
Deukhoofd committed 2025-06-09 12:10:25 +02:00
1 parent af0126e413
commit 00005aa4bf
50 files changed
+80425 -20485

No files matched your search

@@ -5,6 +5,11 @@ namespace PkmnLib.Dynamic.ScriptHandling;
/// </summary>
public interface ILimitedTurnsScript
{
/// <summary>
/// Gets the number of turns remaining for the script to last.
/// </summary>
public int TurnsRemaining { get; }
/// <summary>
/// Sets the number of turns the script will last.
/// </summary>
+20
View File
@@ -371,6 +371,14 @@ public abstract class Script : IDeepCloneable
{
}
/// <summary>
/// This function allows a script to change the damage modifier of an incoming move.
/// </summary>
public virtual void ChangeIncomingMoveDamageModifier(IExecutingMove executingMove, IPokemon target, byte hitNumber,
ref float modifier)
{
}
/// <summary>
/// This function allows a script to modify the outgoing damage done by a move.
/// </summary>
@@ -740,4 +748,16 @@ public abstract class Script : IDeepCloneable
public virtual void IsFloating(IPokemon pokemon, ref bool isFloating)
{
}
/// <summary>
/// This function allows a script to prevent the weather from changing. This is used for abilities such as
/// Delta Stream, which prevent the weather from changing to anything other than strong winds.
/// </summary>
public virtual void PreventWeatherChange(StringKey? weatherName, ref bool preventWeatherChange)
{
}
public virtual void OnWeatherChange(IBattle battle, StringKey? weatherName, StringKey? oldWeatherName)
{
}
}