Revert "Mind ecs" (#14881)

This commit is contained in:
Leon Friedrich
2023-03-27 10:24:00 +13:00
committed by GitHub
parent c6c8fa2075
commit 4d71b1b81e
85 changed files with 684 additions and 1150 deletions

View File

@@ -13,12 +13,6 @@ public sealed class MakeSentient : ReagentEffect
var entityManager = args.EntityManager;
var uid = args.SolutionEntity;
// This makes it so it doesn't affect things that are already sentient
if (entityManager.HasComponent<MindContainerComponent>(uid))
{
return;
}
// This piece of code makes things able to speak "normally". One thing of note is that monkeys have a unique accent and won't be affected by this.
entityManager.RemoveComponent<ReplacementAccentComponent>(uid);
@@ -26,7 +20,7 @@ public sealed class MakeSentient : ReagentEffect
entityManager.RemoveComponent<MonkeyAccentComponent>(uid);
// This makes it so it doesn't add a ghost role to things that are already sentient
if (entityManager.HasComponent<MindContainerComponent>(uid))
if (entityManager.HasComponent<MindComponent>(uid))
{
return;
}