Move OnInitialize to interface
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
namespace PkmnLib.Plugin.Gen7.Scripts.Moves;
|
||||
|
||||
[Script(ScriptCategory.Move, "flame_wheel")]
|
||||
public class FlameWheel : Script
|
||||
public class FlameWheel : Script, IScriptOnInitialize
|
||||
{
|
||||
private float _burnChance;
|
||||
|
||||
/// <inheritdoc />
|
||||
public override void OnInitialize(IReadOnlyDictionary<StringKey, object?>? parameters)
|
||||
public void OnInitialize(IReadOnlyDictionary<StringKey, object?>? parameters)
|
||||
{
|
||||
if (parameters is null || !parameters.TryGetValue("burn_chance", out var burnChance) ||
|
||||
burnChance is not float chance)
|
||||
|
||||
Reference in New Issue
Block a user