Implements a bunch more moves
This commit is contained in:
@@ -13,7 +13,7 @@ internal static class CommonDataLoaderHelper
|
||||
if (effect == null)
|
||||
return null;
|
||||
var name = effect.Name;
|
||||
var chance = effect.Chance;
|
||||
var chance = effect.Chance ?? -1;
|
||||
var parameters = effect.Parameters?.ToDictionary(x => (StringKey)x.Key, x => x.Value.ToParameter()) ??
|
||||
new Dictionary<StringKey, object?>();
|
||||
return new SecondaryEffectImpl(chance, name, parameters);
|
||||
|
||||
@@ -29,6 +29,6 @@ public class SerializedMove
|
||||
public class SerializedMoveEffect
|
||||
{
|
||||
public string Name { get; set; } = null!;
|
||||
public float Chance { get; set; }
|
||||
public float? Chance { get; set; }
|
||||
public Dictionary<string, JsonNode>? Parameters { get; set; } = null!;
|
||||
}
|
||||
Reference in New Issue
Block a user