Fix unlimited MaxTraitPoints for traits (#29600)

-1 is a silly API because now you have to handle it everywhere manually instead of using nullability.
This commit is contained in:
metalgearsloth
2024-06-30 14:28:49 +10:00
committed by GitHub
parent 0974149c82
commit 8985a48a34

View File

@@ -21,8 +21,8 @@ public sealed partial class TraitCategoryPrototype : IPrototype
public LocId Name { get; private set; } = string.Empty;
/// <summary>
/// The maximum number of traits that can be taken in this category. If -1, you can take as many traits as you like.
/// The maximum number of traits that can be taken in this category.
/// </summary>
[DataField]
public int MaxTraitPoints = -1;
public int? MaxTraitPoints;
}