2024-07-27 14:26:45 +00:00
|
|
|
using PkmnLib.Static.Utils;
|
|
|
|
|
|
|
|
namespace PkmnLib.Dynamic.Models;
|
|
|
|
|
2024-07-28 10:29:47 +00:00
|
|
|
/// <summary>
|
|
|
|
/// Random number generator for battles.
|
|
|
|
/// </summary>
|
2024-07-27 14:26:45 +00:00
|
|
|
public interface IBattleRandom : IRandom
|
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// Gets whether or not a move triggers its secondary effect. This takes its chance, and
|
|
|
|
/// rolls whether it triggers. As a side effect this run scripts to allow modifying this random
|
|
|
|
/// chance.
|
|
|
|
/// </summary>
|
|
|
|
bool EffectChance(float chance, IExecutingMove executingMove, IPokemon target, byte hitNumber);
|
|
|
|
}
|