Implements move execution for battle

This commit is contained in:
Deukhoofd committed 2024-08-10 11:18:10 +02:00
1 parent a049dda240
commit 488c717c5a
17 files changed
+433 -14

No files matched your search

+3 -3
View File
@@ -105,7 +105,7 @@ public abstract class Script
/// This function allows you to change the move that is used during execution. This is useful for
/// moves such as metronome, where the move chosen actually differs from the move used.
/// </summary>
public virtual void ChangeMove(IMoveChoice choice, ref string moveName)
public virtual void ChangeMove(IMoveChoice choice, ref StringKey moveName)
{
}
@@ -189,14 +189,14 @@ public abstract class Script
/// <summary>
/// This function allows a script to block an outgoing move from being critical.
/// </summary>
public virtual void BlockCriticalHit(IExecutingMove move, IPokemon target, ref bool block)
public virtual void BlockCriticalHit(IExecutingMove move, IPokemon target, byte hit, ref bool block)
{
}
/// <summary>
/// This function allows a script to block an incoming move from being critical.
/// </summary>
public virtual void BlockIncomingCriticalHit(IExecutingMove move, IPokemon target, ref bool block)
public virtual void BlockIncomingCriticalHit(IExecutingMove move, IPokemon target, byte hit, ref bool block)
{
}