From: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com> Date: Sun, 30 Jun 2024 04:28:49 +0000 (+1000) Subject: Fix unlimited MaxTraitPoints for traits (#29600) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=8985a48a3404753b02ceacfa41e423cbc1a275a0;p=space-station-14.git Fix unlimited MaxTraitPoints for traits (#29600) -1 is a silly API because now you have to handle it everywhere manually instead of using nullability. --- 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; }