This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user