Tweaks and fixes for Pokemon capture
All checks were successful
Build / Build (push) Successful in 1m34s
All checks were successful
Build / Build (push) Successful in 1m34s
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
using PkmnLib.Dynamic.Libraries;
|
||||
using PkmnLib.Dynamic.Models;
|
||||
using PkmnLib.Static;
|
||||
|
||||
namespace PkmnLib.Dynamic.Events;
|
||||
|
||||
@@ -9,10 +10,11 @@ namespace PkmnLib.Dynamic.Events;
|
||||
public class CaptureAttemptEvent : IEventData
|
||||
{
|
||||
/// <inheritdoc cref="CaptureAttemptEvent"/>
|
||||
public CaptureAttemptEvent(IPokemon target, CaptureResult result)
|
||||
public CaptureAttemptEvent(IPokemon target, CaptureResult result, IItem captureItem)
|
||||
{
|
||||
Target = target;
|
||||
Result = result;
|
||||
CaptureItem = captureItem;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -25,6 +27,11 @@ public class CaptureAttemptEvent : IEventData
|
||||
/// </summary>
|
||||
public CaptureResult Result { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// The item used to attempt the capture (e.g., a Poké Ball).
|
||||
/// </summary>
|
||||
public IItem CaptureItem { get; init; }
|
||||
|
||||
/// <inheritdoc />
|
||||
public EventBatchId BatchId { get; init; }
|
||||
}
|
||||
Reference in New Issue
Block a user