Skip to content

Commit

Permalink
Add conditions to some events
Browse files Browse the repository at this point in the history
  • Loading branch information
Mnemotechnician committed Dec 16, 2024
1 parent 0011465 commit b17765a
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 3 deletions.
11 changes: 11 additions & 0 deletions Resources/Prototypes/Floof/Gamerules/base.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# A game rule base that requires at least 2 security members to be present
- type: entity
id: BaseGameRuleSecurityRequirement
parent: BaseGameRule
abstract: true
components:
- type: StationEvent
conditions:
- !type:DepartmentCountCondition
department: Security
range: {min: 2}
14 changes: 11 additions & 3 deletions Resources/Prototypes/GameRules/events.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
weight: 8
startDelay: 30
duration: 35
conditions: # Floof - at least one epi member
- !type:DepartmentCountCondition
department: Epistemics
range: {min: 1}
- type: AnomalySpawnRule

- type: entity
Expand Down Expand Up @@ -80,7 +84,7 @@
prototype: MobSkeletonCloset

- type: entity
parent: BaseGameRule
parent: BaseGameRuleSecurityRequirement # Floof - changed parent
id: DragonSpawn
noSpawn: true
components:
Expand All @@ -94,7 +98,7 @@
prototype: SpawnPointGhostDragon

- type: entity
parent: BaseGameRule
parent: BaseGameRuleSecurityRequirement # Floof - changed parent
id: NinjaSpawn
noSpawn: true
components:
Expand Down Expand Up @@ -168,6 +172,10 @@
endAnnouncement: true
duration: null #ending is handled by MeteorSwarmRule
startDelay: 30
conditions: # Floof
- !type:DepartmentCountCondition
department: Engineering
range: {min: 2}
- type: MeteorSwarmRule

- type: entity
Expand Down Expand Up @@ -371,7 +379,7 @@

- type: entity
id: LoneOpsSpawn
parent: BaseGameRule
parent: BaseGameRuleSecurityRequirement # Floof - changed parent
noSpawn: true
components:
- type: StationEvent
Expand Down

0 comments on commit b17765a

Please sign in to comment.