]> git.smokeofanarchy.ru Git - space-station-14.git/commit
Character profile sanitization improvements (#25579)
authorPieter-Jan Briers <pieterjan.briers+git@gmail.com>
Mon, 26 Feb 2024 02:36:38 +0000 (03:36 +0100)
committerGitHub <noreply@github.com>
Mon, 26 Feb 2024 02:36:38 +0000 (13:36 +1100)
commit8d244f7b76ba881253eb94611acaab31865c3920
tree0e533636a84d11ca513ee52bc73150fdd14013de
parent90279b33579f93ccaf240eadf7f924bfc24c4468
Character profile sanitization improvements (#25579)

Validate that job and antag prototypes can actually be set in character profiles, rather than just checking if the prototype exists.

Make preferences system just call existing validation code when loading prototype from database, instead of some hacked-together stuff.

Also I made the character profile validation logic take dependencies in via parameter because fuck resolves.
Content.Client/Preferences/ClientPreferencesManager.cs
Content.Server/Preferences/Managers/ServerPreferencesManager.cs
Content.Shared/Preferences/HumanoidCharacterProfile.cs
Content.Shared/Preferences/ICharacterProfile.cs