Skip to content

Commit

Permalink
Bureaucratic error changes (#532)
Browse files Browse the repository at this point in the history
* reenables bureaucratic error event

* change

* Update events.yml

removed whitespace likely causing test failures

Signed-off-by: Colin-Tel <[email protected]>

---------

Signed-off-by: Colin-Tel <[email protected]>
Co-authored-by: Colin-Tel <[email protected]>
  • Loading branch information
Guess-My-Name and Colin-Tel authored Feb 12, 2024
1 parent bbd3e76 commit 0451fc6
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 11 deletions.
2 changes: 2 additions & 0 deletions Content.Server/StationEvents/Events/BureaucraticErrorRule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,14 @@ protected override void Started(EntityUid uid, BureaucraticErrorRuleComponent co
{
var chosenJob = RobustRandom.PickAndTake(jobList);
_stationJobs.MakeJobUnlimited(chosenStation.Value, chosenJob); // INFINITE chaos.
/* DeltaV - don't close all other jobs
foreach (var job in jobList)
{
if (_stationJobs.IsJobUnlimited(chosenStation.Value, job))
continue;
_stationJobs.TrySetJobSlot(chosenStation.Value, job, 0);
}
*/
}
else
{
Expand Down
22 changes: 11 additions & 11 deletions Resources/Prototypes/GameRules/events.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,17 +43,17 @@
minimumPlayers: 15
- type: BreakerFlipRule

# - type: entity
# id: BureaucraticError # DeltaV - Prevent the BureaucraticError event to happen.
# parent: BaseGameRule
# noSpawn: true
# components:
# - type: StationEvent
# startAnnouncement: station-event-bureaucratic-error-announcement
# minimumPlayers: 25
# weight: 5
# duration: 1
# - type: BureaucraticErrorRule
- type: entity
id: BureaucraticError
parent: BaseGameRule
noSpawn: true
components:
- type: StationEvent
startAnnouncement: station-event-bureaucratic-error-announcement
minimumPlayers: 25
weight: 5
duration: 1
- type: BureaucraticErrorRule

- type: entity
id: ClericalError
Expand Down

0 comments on commit 0451fc6

Please sign in to comment.