Further work on static side

This commit is contained in:
2024-07-20 16:12:39 +02:00
parent 3845f91601
commit 1b501dee7e
29 changed files with 670 additions and 155 deletions

View File

@@ -1,18 +1,13 @@
using System;
using PkmnLib.Static.Utils;
namespace PkmnLib.Static;
/// <summary>
/// A nature is an attribute on a Pokemon that modifies the effective base stats on a Pokemon. They
/// A nature is an attribute on a Pokémon that modifies the effective base stats on a Pokémon. They
/// can have an increased statistic and a decreased statistic, or be neutral.
/// </summary>
public interface INature
public interface INature : INamedValue
{
/// <summary>
/// The name of the nature.
/// </summary>
string Name { get; }
/// <summary>
/// The stat that should receive the increased modifier.
/// </summary>
@@ -51,7 +46,7 @@ public interface INature
/// <inheritdoc />
public class Nature(
string name,
StringKey name,
Statistic increaseStat,
Statistic decreaseStat,
float increaseModifier,
@@ -59,7 +54,7 @@ public class Nature(
: INature
{
/// <inheritdoc />
public string Name { get; } = name;
public StringKey Name { get; } = name;
/// <inheritdoc />
public Statistic IncreasedStat { get; } = increaseStat;