Implements a bunch more moves

This commit is contained in:
2025-03-08 14:39:50 +01:00
parent 8f262cb4a6
commit 77f1ab243b
33 changed files with 935 additions and 57 deletions

View File

@@ -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);

View File

@@ -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!;
}