]> git.smokeofanarchy.ru Git - space-station-14.git/commit
Role Types (#33420)
authorErrant <35878406+Errant-4@users.noreply.github.com>
Sat, 11 Jan 2025 21:17:26 +0000 (22:17 +0100)
committerGitHub <noreply@github.com>
Sat, 11 Jan 2025 21:17:26 +0000 (22:17 +0100)
commit46d58bf22a071f57efaeb7ad50396c8d86d578e6
treea8fa5efda8458c9a03f83a475baf017cf8d3f7e3
parent3da354304d79ce21e0ea0ff4406fc695f3d92051
Role Types (#33420)

* mindcomponent namespace

* wip MindRole stuff

* admin player tab

* mindroletype comment

* mindRolePrototype redesign

* broken param

* wip RoleType implementation

* basic role type switching for antags

* traitor fix

* fix AdminPanel update

* the renameningTM

* cleanup

* feature uncreeping

* roletypes on mind roles

* update MindComponent.RoleType when MindRoles change

* ghostrole configuration

* ghostrole config improvements

* live update of roleType on the character window

* logging stuff and notes

* remove thing no one asked for

* weh

* Mind Role Entities wip

* headrev count fix

* silicon stuff, cleanup

* exclusive antag config, cleanup

* jobroleadd overwerite

* logging stuff

* MindHasRole cleanup, admin log stuff

* last second cleanup

* ocd

* move roletypeprototype to its own file, minor note stuff

* remove Roletype.Created

* log stuff

* roletype setup for ghostroles and autotraitor reinforcements

* ghostrole type configs

* adjustable admin overlay

* cleanup

* fix this in its own PR

* silicon antagonist

* borg stuff

* mmi roletype handling

* spawnable borg roletype handling

* weh

* ghost role cleanup

* weh

* RoleEvent update

* polish

* log stuff

* admin overlay config

* ghostrolecomponent cleanup

* weh

* admin overlay code cleanup

* minor cleanup

* Obsolete MindRoleAddedEvent

* comment

* minor code cleanup

* MindOnDoGreeting fix

* Role update message

* fix duplicate job greeting for cyborgs

* fix emag job message dupe

* nicer-looking role type update

* crew aligned

* syndicate assault borg role fix

* fix test fail

* fix a merge mistake

* fix LoneOp role type

* Update Content.Client/Administration/AdminNameOverlay.cs

Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com>
* Update Content.Shared/Roles/SharedRoleSystem.cs

Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com>
* comment formatting

Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com>
* change logging category

Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com>
* fix a space

Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com>
* use MindAddRoles

Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com>
* get MindComponent from TryGetMind

Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com>
* move var declaration outside loop

* remove TryComp

* take RoleEnum behind the barn

* don't use ensurecomp unnecessarily

* cvar comments

* toggleableghostrolecomponent documentation

* skrek

* use EntProtoId

* mindrole config

* merge baserolecomponent into basemindrolecomponent

* ai and borg silicon role tweaks

* formatting

Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com>
* I will end you (the color)

Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com>
* use LocId type for a locale id

* update RoleEvent documentation

* update RoleEvent documentation

* remove obsolete MindRoleAddedEvent

* refine MindRolesUpdate()

* use dependency

Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com>
* inject dependency

Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com>
* roleType.Name no longer required

* reformatted draw code logic

* GhostRoleMarkerRoleComponent comment

* minor SharedRoleSystem cleanup

* StartingMindRoleComponent, unhardcode roundstart silicon

* Update Content.Shared/Roles/SharedRoleSystem.cs

* remove a whitespace

---------

Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com>
65 files changed:
Content.Client/Administration/AdminNameOverlay.cs
Content.Client/Administration/UI/Tabs/PlayerTab/PlayerTab.xaml.cs
Content.Client/Administration/UI/Tabs/PlayerTab/PlayerTabEntry.xaml
Content.Client/Administration/UI/Tabs/PlayerTab/PlayerTabEntry.xaml.cs
Content.Client/Administration/UI/Tabs/PlayerTab/PlayerTabHeader.xaml
Content.Client/Administration/UI/Tabs/PlayerTab/PlayerTabHeader.xaml.cs
Content.Client/UserInterface/Systems/Character/CharacterUIController.cs
Content.Client/UserInterface/Systems/Character/Windows/CharacterWindow.xaml
Content.Server/Administration/Systems/AdminSystem.cs
Content.Server/Antag/Components/AntagSelectionComponent.cs
Content.Server/GameTicking/GameTicker.Spawning.cs
Content.Server/Ghost/ObserverRoleComponent.cs
Content.Server/Ghost/Roles/Components/GhostRoleComponent.cs
Content.Server/Ghost/Roles/Components/ToggleableGhostRoleComponent.cs
Content.Server/Ghost/Roles/GhostRoleMarkerRoleComponent.cs
Content.Server/Ghost/Roles/GhostRoleSystem.cs
Content.Server/Ghost/Roles/ToggleableGhostRoleSystem.cs
Content.Server/Players/PlayTimeTracking/PlayTimeTrackingSystem.cs
Content.Server/Roles/Jobs/JobSystem.cs
Content.Server/Roles/RoleBriefingComponent.cs
Content.Server/Roles/RoleSystem.cs
Content.Server/Silicons/Borgs/BorgSystem.MMI.cs
Content.Server/Silicons/Borgs/BorgSystem.cs
Content.Server/Silicons/Laws/SiliconLawSystem.cs
Content.Shared/Administration/PlayerInfo.cs
Content.Shared/CCVar/CCVars.Interface.cs
Content.Shared/Mind/MindComponent.cs
Content.Shared/Mind/RoleTypePrototype.cs [new file with mode: 0644]
Content.Shared/Roles/MindIsAntagonistEvent.cs
Content.Shared/Roles/MindRoleAddedEvent.cs [deleted file]
Content.Shared/Roles/MindRoleComponent.cs
Content.Shared/Roles/RoleAddedEvent.cs
Content.Shared/Roles/RoleEvent.cs
Content.Shared/Roles/RoleRemovedEvent.cs
Content.Shared/Roles/SharedRoleSystem.cs
Content.Shared/Roles/SiliconBrainRoleComponent.cs [new file with mode: 0644]
Content.Shared/Roles/StartingMindRoleComponent.cs [new file with mode: 0644]
Resources/Locale/en-US/administration/antag.ftl
Resources/Locale/en-US/administration/ui/tabs/player-tab.ftl
Resources/Locale/en-US/mind/role-types.ftl [new file with mode: 0644]
Resources/Prototypes/Entities/Markers/Spawners/ghost_roles.yml
Resources/Prototypes/Entities/Mobs/Cyborgs/base_borg_chassis.yml
Resources/Prototypes/Entities/Mobs/NPCs/animals.yml
Resources/Prototypes/Entities/Mobs/NPCs/behonker.yml
Resources/Prototypes/Entities/Mobs/NPCs/carp.yml
Resources/Prototypes/Entities/Mobs/NPCs/elemental.yml
Resources/Prototypes/Entities/Mobs/NPCs/hellspawn.yml
Resources/Prototypes/Entities/Mobs/NPCs/regalrat.yml
Resources/Prototypes/Entities/Mobs/NPCs/revenant.yml
Resources/Prototypes/Entities/Mobs/NPCs/silicon.yml
Resources/Prototypes/Entities/Mobs/NPCs/slimes.yml
Resources/Prototypes/Entities/Mobs/NPCs/space.yml
Resources/Prototypes/Entities/Mobs/Player/dragon.yml
Resources/Prototypes/Entities/Mobs/Player/familiars.yml
Resources/Prototypes/Entities/Mobs/Player/guardian.yml
Resources/Prototypes/Entities/Mobs/Player/humanoid.yml
Resources/Prototypes/Entities/Mobs/Player/silicon.yml
Resources/Prototypes/Entities/Mobs/Player/skeleton.yml
Resources/Prototypes/Entities/Objects/Devices/Syndicate_Gadgets/reinforcement_teleporter.yml
Resources/Prototypes/Entities/Objects/Fun/pai.yml
Resources/Prototypes/Entities/Objects/Specific/Robotics/mmi.yml
Resources/Prototypes/GameRules/roundstart.yml
Resources/Prototypes/Roles/MindRoles/mind_roles.yml
Resources/Prototypes/Roles/role_types.yml [new file with mode: 0644]
Resources/Prototypes/XenoArch/Effects/utility_effects.yml