Refactor move classes to implement respective interfaces for better structure
Build / Build (push) Successful in 52s
Build / Build (push) Successful in 52s
This commit is contained in:
115 files changed
+407
-348
No files matched your search
@@ -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