From 8985a48a3404753b02ceacfa41e423cbc1a275a0 Mon Sep 17 00:00:00 2001 From: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com> Date: Sun, 30 Jun 2024 14:28:49 +1000 Subject: [PATCH] Fix unlimited MaxTraitPoints for traits (#29600) -1 is a silly API because now you have to handle it everywhere manually instead of using nullability. --- Content.Shared/Traits/TraitCategoryPrototype.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Content.Shared/Traits/TraitCategoryPrototype.cs b/Content.Shared/Traits/TraitCategoryPrototype.cs index e5bb919bf0..00c7fd36af 100644 --- a/Content.Shared/Traits/TraitCategoryPrototype.cs +++ b/Content.Shared/Traits/TraitCategoryPrototype.cs @@ -21,8 +21,8 @@ public sealed partial class TraitCategoryPrototype : IPrototype public LocId Name { get; private set; } = string.Empty; /// - /// 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. /// [DataField] - public int MaxTraitPoints = -1; + public int? MaxTraitPoints; } -- 2.51.2