Bolts down event and minor tweaks (#2053)

* initial commit

* I have to switch to master

* oops

* i need to merge master

* finishing touches

* updating submodule

* bye

Co-authored-by: Víctor Aguilera Puerto <6766154+Zumorica@users.noreply.github.com>
This commit is contained in:
AJCM-git
2020-10-08 11:59:20 -04:00
committed by GitHub
parent 970f3bc82f
commit ea30709cde
8 changed files with 97 additions and 7 deletions

View File

@@ -19,7 +19,7 @@ namespace Content.Server.StationEvents
public override StationEventWeight Weight => StationEventWeight.Normal;
public override int? MaxOccurrences => 3;
public override int? MaxOccurrences => 2;
protected override string StartAnnouncement => Loc.GetString(
"Abnormal activity detected in the station's powernet. As a precautionary measure, the station's power will be shut off for an indeterminate duration.");
@@ -47,7 +47,7 @@ namespace Content.Server.StationEvents
_announced = false;
_elapsedTime = 0.0f;
_failDuration = IoCManager.Resolve<IRobustRandom>().Next(30, 120);
_failDuration = IoCManager.Resolve<IRobustRandom>().Next(60, 120);
var componentManager = IoCManager.Resolve<IComponentManager>();
foreach (PowerReceiverComponent component in componentManager.EntityQuery<PowerReceiverComponent>())