]> git.smokeofanarchy.ru Git - space-station-14.git/commit
Rename fix (#31654)
authornikthechampiongr <32041239+nikthechampiongr@users.noreply.github.com>
Sun, 15 Sep 2024 01:55:03 +0000 (01:55 +0000)
committerGitHub <noreply@github.com>
Sun, 15 Sep 2024 01:55:03 +0000 (11:55 +1000)
commitee434e397d483c10b1dbf29e736de6a134e82746
tree612416703f2546da3af0dabfc012181d6f4cf02c
parentf81d18914d158be67100c60d7c6af192f23cce29
Rename fix (#31654)

* Localize RenameCommand and delegate most of the process to MetaDataSystem.SetEntityName()

* Make renaming rely on the EntityRenamedEvent. Fix issue where renaming would keep old Examine text

Requires engine change

* Fix localisation strings

* Make PDA search be based on a renamed entity's Uid instead of its old name

To do this the pda component now has an PdaOwner field which gets
assigned when it is given as a loadout to a player

* Fix bad merge???

huh

* Use AllEntityQuery
Content.Server/Administration/Systems/AdminSystem.cs
Content.Server/IdentityManagement/IdentitySystem.cs
Content.Server/Mind/Commands/RenameCommand.cs
Content.Server/PDA/PdaSystem.cs
Content.Server/Station/Systems/StationSpawningSystem.cs
Content.Server/StationRecords/Systems/StationRecordsSystem.cs
Content.Shared/Access/Systems/SharedIdCardSystem.cs
Content.Shared/Mind/SharedMindSystem.cs
Content.Shared/NameModifier/EntitySystems/NameModifierSystem.cs
Content.Shared/PDA/PdaComponent.cs
Resources/Locale/en-US/mind/commands/rename-command.ftl [new file with mode: 0644]