Document all undocumented methods and properties
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2025-05-16 13:59:36 +02:00
parent 810cdbb15a
commit fdfca99e71
27 changed files with 384 additions and 39 deletions

View File

@@ -1,6 +1,5 @@
using PkmnLib.Dynamic.Models;
using PkmnLib.Dynamic.ScriptHandling;
using PkmnLib.Plugin.Gen7.Libraries;
using PkmnLib.Plugin.Gen7.Libraries.Battling;
using PkmnLib.Static;
using PkmnLib.Static.Moves;

View File

@@ -1,7 +1,5 @@
using System;
using System.ComponentModel;
using System.IO;
using PkmnLib.Plugin.Gen7.Libraries;
using PkmnLib.Plugin.Gen7.Libraries.Battling;
using PkmnLib.Static.Libraries;
@@ -44,7 +42,7 @@ public class Gen7Plugin : Dynamic.ScriptHandling.Registry.Plugin, IResourceProvi
}
/// <inheritdoc />
public LibrarySettings? Settings => new()
public LibrarySettings Settings => new()
{
MaxLevel = 100,
ShinyRate = 4096,

View File

@@ -28,7 +28,6 @@ public class FlameWheel : Script
move.User.ClearStatus();
}
var burnChance = _burnChance;
if (move.Battle.Random.EffectChance(_burnChance, move, target, hit))
{
target.SetStatus("burned");

View File

@@ -18,7 +18,6 @@ public class Spite : Script
if (!lastMoveChoiceByTarget.ChosenMove.ReduceUses(4))
{
move.GetHitData(target, hit).Fail();
return;
}
}
}

View File

@@ -1,6 +1,5 @@
using System;
using System.Collections.Generic;
using PkmnLib.Static.Utils;
namespace PkmnLib.Plugin.Gen7.Scripts.Side;

View File

@@ -8,7 +8,6 @@ namespace PkmnLib.Plugin.Gen7.Scripts.Status;
public class Sleep : Script
{
public int Turns { get; set; }
private IPokemon? _owner;
/// <inheritdoc />
public override void OnAddedToParent(IScriptSource source)
@@ -18,7 +17,6 @@ public class Sleep : Script
return;
if (source is not IPokemon pokemon)
throw new InvalidOperationException("Sleep script can only be added to a Pokemon.");
_owner = pokemon;
var battleData = pokemon.BattleData;
if (battleData != null)
{