Deukhoofd 7c270a6d52
All checks were successful
Build / Build (push) Successful in 1m1s
Finish script interface refactor
2025-07-06 10:27:56 +02:00

21 lines
478 B
C#

using PkmnLib.Plugin.Gen7.Scripts.Utils;
namespace PkmnLib.Plugin.Gen7.Scripts.Pokemon;
[Script(ScriptCategory.Pokemon, "autotomize")]
public class AutotomizeEffect : Script, IBatonPassException, IScriptStack, IScriptModifyWeight
{
public int Stacks { get; private set; } = 1;
/// <inheritdoc />
public void Stack()
{
Stacks++;
}
/// <inheritdoc />
public void ModifyWeight(ref float weight)
{
weight -= 100f * Stacks;
}
}