Adds more move scripts

This commit is contained in:
2025-03-07 12:07:57 +01:00
parent a3a9f1800a
commit 3571b2130e
16 changed files with 193 additions and 21 deletions

View File

@@ -1,13 +1,14 @@
using PkmnLib.Plugin.Gen7.Scripts.Utils;
using PkmnLib.Static.Utils;
namespace PkmnLib.Plugin.Gen7.Scripts.Pokemon;
public abstract class BaseChargeEffect : Script
{
private readonly IPokemon _owner;
private readonly string _moveName;
private readonly StringKey _moveName;
public BaseChargeEffect(IPokemon owner, string moveName)
public BaseChargeEffect(IPokemon owner, StringKey moveName)
{
_owner = owner;
_moveName = moveName;

View File

@@ -1,4 +1,5 @@
using PkmnLib.Static.Utils;
namespace PkmnLib.Plugin.Gen7.Scripts.Pokemon;
[Script(ScriptCategory.Pokemon, "freeze_shock")]
public class FreezeShockEffect(IPokemon owner) : BaseChargeEffect(owner, "freeze_shock");
public class RequireChargeEffect(IPokemon owner, StringKey moveName) : BaseChargeEffect(owner, moveName);