fix some contract issues (#3738)

Co-authored-by: deltanedas <@deltanedas:kde.org>
This commit is contained in:
deltanedas 2025-05-13 21:46:42 +01:00 committed by GitHub
parent bd6447e778
commit 440c90c72c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 1 deletions

View File

@ -25,6 +25,7 @@ public sealed class PickRandomTraitorSystem : EntitySystem
private void OnRandomTraitorAssigned(Entity<PickRandomTraitorComponent> ent, ref ObjectiveAssignedEvent args)
{
_pickTarget.AssignRandomTarget(ent, ref args, mindId =>
_role.MindHasRole<TraitorRoleComponent>(mindId));
_role.MindHasRole<TraitorRoleComponent>(mindId),
fallbackToAny: false); // bruh
}
}

View File

@ -165,6 +165,7 @@
- type: PickRandomTraitor
minContracts: 1
- type: CodeCondition
- type: SocialObjective # actually need this
- type: AssistRandomContract
blacklist:
components: