Further work on static side
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user