Skip to content

Commit

Permalink
Fix ERT becoming sleeper agents and add sleeper agent preferences (#2…
Browse files Browse the repository at this point in the history
…7817)

* b

* Update antags.ftl

* m

* ok

* Update events.yml

* antag

* a

* Create InitialInfectedExemptComponent.cs

* Delete InitialInfectedExemptComponent.cs

* yes

* Delete InitialInfectedExemptComponent.cs

* Create AntagImmuneComponent.cs
  • Loading branch information
Dutch-VanDerLinde authored Jun 20, 2024
1 parent ad89444 commit 8c9fcd4
Show file tree
Hide file tree
Showing 7 changed files with 31 additions and 19 deletions.
7 changes: 7 additions & 0 deletions Content.Server/Antag/Components/AntagImmuneComponent.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
namespace Content.Server.Antag.Components;

[RegisterComponent]
public partial class AntagImmuneComponent : Component
{

}
7 changes: 0 additions & 7 deletions Content.Server/Zombies/InitialInfectedExemptComponent.cs

This file was deleted.

3 changes: 3 additions & 0 deletions Resources/Locale/en-US/prototypes/roles/antags.ftl
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
roles-antag-syndicate-agent-name = Syndicate agent
roles-antag-syndicate-agent-objective = Complete your objectives without being caught.
roles-antag-syndicate-agent-sleeper-name = Syndicate sleeper agent
roles-antag-syndicate-agent-sleeper-objective = A form of syndicate agent that can activate at any point in the middle of the shift.
roles-antag-initial-infected-name = Initial Infected
roles-antag-initial-infected-objective = Once you turn, infect as many other crew members as possible.
Expand Down
9 changes: 2 additions & 7 deletions Resources/Prototypes/Entities/Mobs/Player/humanoid.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
parent: EventHumanoid
components:
- type: MindShield
- type: InitialInfectedExempt
- type: AntagImmune

## Death Squad

Expand All @@ -30,7 +30,6 @@
- NamesLastMilitary
- type: RandomHumanoidSpawner
settings: DeathSquad
- type: InitialInfectedExempt

- type: randomHumanoidSettings
id: DeathSquad
Expand Down Expand Up @@ -66,7 +65,6 @@
- NamesLastMilitary
- type: RandomHumanoidSpawner
settings: ERTLeader
- type: InitialInfectedExempt

- type: randomHumanoidSettings
id: ERTLeader
Expand Down Expand Up @@ -96,7 +94,6 @@
state: ertleadereva
- type: RandomHumanoidSpawner
settings: ERTLeaderEVA
- type: InitialInfectedExempt

- type: randomHumanoidSettings
id: ERTLeaderEVA
Expand All @@ -117,7 +114,6 @@
components:
- type: RandomHumanoidSpawner
settings: ERTLeaderEVALecter
- type: InitialInfectedExempt

- type: randomHumanoidSettings
id: ERTLeaderEVALecter
Expand Down Expand Up @@ -453,7 +449,6 @@
state: cburn
- type: RandomHumanoidSpawner
settings: CBURNAgent
- type: InitialInfectedExempt

- type: randomHumanoidSettings
id: CBURNAgent
Expand All @@ -470,6 +465,7 @@
nameSegments:
- NamesFirstMilitary
- NamesLastMilitary

## Central Command

- type: entity
Expand All @@ -481,7 +477,6 @@
state: centcom
- type: RandomHumanoidSpawner
settings: CentcomOfficial
- type: InitialInfectedExempt

- type: randomHumanoidSettings
id: CentcomOfficial
Expand Down
12 changes: 8 additions & 4 deletions Resources/Prototypes/GameRules/events.yml
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@
blacklist:
components:
- ZombieImmune
- InitialInfectedExempt
- AntagImmune
briefing:
text: zombie-patientzero-role-greeting
color: Plum
Expand Down Expand Up @@ -444,7 +444,7 @@

- type: entity
parent: BaseTraitorRule
id: SleeperAgentsRule
id: SleeperAgents
components:
- type: StationEvent
earliestStart: 30
Expand All @@ -457,13 +457,17 @@
- type: AlertLevelInterceptionRule
- type: AntagSelection
definitions:
- prefRoles: [ Traitor ]
- prefRoles: [ TraitorSleeper ]
fallbackRoles: [ Traitor ]
min: 1
max: 2
playerRatio: 10
blacklist:
components:
- AntagImmune
mindComponents:
- type: TraitorRole
prototype: Traitor
prototype: TraitorSleeper

- type: entity
id: MassHallucinations
Expand Down
5 changes: 4 additions & 1 deletion Resources/Prototypes/GameRules/roundstart.yml
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,9 @@
- prefRoles: [ Traitor ]
max: 8
playerRatio: 10
blacklist:
components:
- AntagImmune
lateJoinAdditional: true
mindComponents:
- type: TraitorRole
Expand Down Expand Up @@ -232,7 +235,7 @@
blacklist:
components:
- ZombieImmune
- InitialInfectedExempt
- AntagImmune
briefing:
text: zombie-patientzero-role-greeting
color: Plum
Expand Down
7 changes: 7 additions & 0 deletions Resources/Prototypes/Roles/Antags/traitor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@
objective: roles-antag-syndicate-agent-objective
guides: [ Traitors ]

- type: antag
id: TraitorSleeper
name: roles-antag-syndicate-agent-sleeper-name
antagonist: true
setPreference: true
objective: roles-antag-syndicate-agent-sleeper-objective

# Syndicate Operative Outfit - Monkey
- type: startingGear
id: SyndicateOperativeGearMonkey
Expand Down

0 comments on commit 8c9fcd4

Please sign in to comment.