Don't use invalid defaults for loadouts (#28729)

At the time it made more sense but now with species specific stuff it's better to have nothing.
This commit is contained in:
metalgearsloth 2024-06-09 04:43:21 +10:00 committed by null
parent ddd1c287c0
commit f90e574da0
No known key found for this signature in database
GPG Key ID: 212F05528FD678BE
1 changed files with 4 additions and 1 deletions

View File

@ -127,7 +127,10 @@ public sealed partial class RoleLoadout : IEquatable<RoleLoadout>
if (loadouts.Contains(defaultLoadout))
continue;
// Still need to apply the effects even if validation is ignored.
// Not valid so don't default to it anyway.
if (!IsValid(profile, session, defaultLoadout.Prototype, collection, out _))
continue;
loadouts.Add(defaultLoadout);
Apply(loadoutProto);
}