This commit is contained in:
ShadowCommander
2023-06-18 11:33:19 -07:00
committed by GitHub
parent 8a943fb374
commit dd7032a860
85 changed files with 1432 additions and 711 deletions

View File

@@ -17,6 +17,12 @@ 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);
@@ -24,7 +30,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<MindComponent>(uid))
if (entityManager.HasComponent<MindContainerComponent>(uid))
{
return;
}