Further work on the script interface rework
This commit is contained in:
@@ -7,10 +7,10 @@ namespace PkmnLib.Plugin.Gen7.Scripts.Abilities;
|
||||
/// <see href="https://bulbapedia.bulbagarden.net/wiki/Cheek_Pouch_(Ability)">Bulbapedia - Cheek Pouch</see>
|
||||
/// </summary>
|
||||
[Script(ScriptCategory.Ability, "cheek_pouch")]
|
||||
public class CheekPouch : Script
|
||||
public class CheekPouch : Script, IScriptOnAfterItemConsume
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public override void OnAfterItemConsume(IPokemon pokemon, IItem item)
|
||||
public void OnAfterItemConsume(IPokemon pokemon, IItem item)
|
||||
{
|
||||
if (item.Category == ItemCategory.Berry)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user