Refactor move classes to implement respective interfaces for better structure
All checks were successful
Build / Build (push) Successful in 52s
All checks were successful
Build / Build (push) Successful in 52s
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
namespace PkmnLib.Plugin.Gen7.Scripts.Pokemon;
|
||||
|
||||
[Script(ScriptCategory.Pokemon, "slow_start")]
|
||||
public class SlowStartEffect : Script
|
||||
public class SlowStartEffect : Script, IScriptChangeSpeed
|
||||
{
|
||||
private int _turnsRemaining = 5;
|
||||
|
||||
/// <inheritdoc />
|
||||
public override void ChangeSpeed(ITurnChoice choice, ref uint speed)
|
||||
public void ChangeSpeed(ITurnChoice choice, ref uint speed)
|
||||
{
|
||||
speed /= 2;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user