]> git.smokeofanarchy.ru Git - space-station-14.git/commit
make objectives use yml defined mind filters (#36030)
authordeltanedas <39013340+deltanedas@users.noreply.github.com>
Fri, 8 Aug 2025 15:58:46 +0000 (16:58 +0100)
committerGitHub <noreply@github.com>
Fri, 8 Aug 2025 15:58:46 +0000 (17:58 +0200)
commit1d21e133602fefb5e49ba12cf2d335ec552bcfdf
tree1033825bc7d51631e84ca3124edd122a01249bce
parent1374ceea4758db71c7c3cbff9d4b128f38662b82
make objectives use yml defined mind filters (#36030)

* add MindHasRole whitelist overload

* add mind filters framework

* add different mind filters and pools

* update traitor stuff to use mind filters

* line

* don't duplicate kill objectives

* g

* gs

---------

Co-authored-by: deltanedas <@deltanedas:kde.org>
Co-authored-by: ScarKy0 <106310278+ScarKy0@users.noreply.github.com>
Co-authored-by: ScarKy0 <scarky0@onet.eu>
Co-authored-by: SlamBamActionman <slambamactionman@gmail.com>
17 files changed:
Content.Server/Mind/Filters/TargetObjectiveMindFilter.cs [new file with mode: 0644]
Content.Server/Objectives/Components/PickRandomHeadComponent.cs [deleted file]
Content.Server/Objectives/Components/PickRandomPersonComponent.cs
Content.Server/Objectives/Components/RandomTraitorAliveComponent.cs [deleted file]
Content.Server/Objectives/Components/RandomTraitorProgressComponent.cs [deleted file]
Content.Server/Objectives/Systems/PickObjectiveTargetSystem.cs
Content.Shared/Mind/Filters/AliveHumansPool.cs [new file with mode: 0644]
Content.Shared/Mind/Filters/AntagonistMindFilter.cs [new file with mode: 0644]
Content.Shared/Mind/Filters/BodyMindFilter.cs [new file with mode: 0644]
Content.Shared/Mind/Filters/HasRoleMindFilter.cs [new file with mode: 0644]
Content.Shared/Mind/Filters/IMindPool.cs [new file with mode: 0644]
Content.Shared/Mind/Filters/JobMindFilter.cs [new file with mode: 0644]
Content.Shared/Mind/Filters/MindFilter.cs [new file with mode: 0644]
Content.Shared/Mind/Filters/ObjectiveMindFilter.cs [new file with mode: 0644]
Content.Shared/Mind/SharedMindSystem.cs
Content.Shared/Roles/SharedRoleSystem.cs
Resources/Prototypes/Objectives/traitor.yml