Enhance debugging obj->ToString indications for evo checks

This commit is contained in:
Kurt
2021-06-06 11:49:41 -07:00
parent bf400f27fe
commit bad65dd4ec
2 changed files with 3 additions and 1 deletions

View File

@@ -12,6 +12,6 @@ public EvoCriteria(int species, int form) : base(species, form)
public bool IsTradeRequired => ((EvolutionType) Method).IsTrade();
public override string ToString() => $"{(Species) Species} [{MinLevel},{Level}] via {(EvolutionType) Method}";
public override string ToString() => $"{(Species) Species}{(Form != 0 ? $"-{Form}" : "")}}} [{MinLevel},{Level}] via {(EvolutionType) Method}";
}
}

View File

@@ -47,6 +47,8 @@ public EvolutionMethod(int method, int species, int argument = 0, int level = 0,
Level = level;
}
public override string ToString() => $"{(Species) Species}-{Form} [{Argument}] @ {Level}{(RequiresLevelUp ? "X" : "")}";
/// <summary>
/// Returns the form that the Pokémon will have after evolution.
/// </summary>