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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user