Implements several more moves
This commit is contained in:
@@ -295,7 +295,7 @@ public interface IPokemon : IScriptSource, IDeepCloneable
|
||||
/// <summary>
|
||||
/// Damages the Pokemon by a certain amount of damage, from a damage source.
|
||||
/// </summary>
|
||||
void Damage(uint damage, DamageSource source, EventBatchId batchId);
|
||||
void Damage(uint damage, DamageSource source, EventBatchId batchId = default);
|
||||
|
||||
/// <summary>
|
||||
/// Heals the Pokemon by a specific amount. Unless allow_revive is set to true, this will not
|
||||
@@ -389,6 +389,16 @@ public interface IPokemonBattleData : IDeepCloneable
|
||||
/// Adds an opponent to the list of seen opponents.
|
||||
/// </summary>
|
||||
void MarkOpponentAsSeen(IPokemon opponent);
|
||||
|
||||
/// <summary>
|
||||
/// A list of items the Pokémon has consumed this battle.
|
||||
/// </summary>
|
||||
IReadOnlyList<IItem> ConsumedItems { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Marks an item as consumed.
|
||||
/// </summary>
|
||||
void MarkItemAsConsumed(IItem itemName);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IPokemon"/>
|
||||
@@ -1062,4 +1072,15 @@ public class PokemonBattleDataImpl : IPokemonBattleData
|
||||
{
|
||||
_seenOpponents.Add(opponent);
|
||||
}
|
||||
|
||||
private readonly List<IItem> _consumedItems = [];
|
||||
|
||||
/// <inheritdoc />
|
||||
public IReadOnlyList<IItem> ConsumedItems => _consumedItems;
|
||||
|
||||
/// <inheritdoc />
|
||||
public void MarkItemAsConsumed(IItem itemName)
|
||||
{
|
||||
_consumedItems.Add(itemName);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user