mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-09 10:21:18 +03:00
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:
parent
0974149c82
commit
8985a48a34
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue