back to ru + fix (#1021)
This commit is contained in:
@@ -29,16 +29,12 @@ public sealed partial class CP14RoundEndSystem : EntitySystem
|
||||
InitCbt();
|
||||
|
||||
SubscribeLocalEvent<CP14MagicContainerRoundFinisherComponent, CP14MagicEnergyLevelChangeEvent>(OnFinisherMagicEnergyLevelChange);
|
||||
SubscribeNetworkEvent<RoundEndMessageEvent>(OnRoundEndMessage);
|
||||
SubscribeLocalEvent<RoundRestartCleanupEvent>(OnRoundRestartCleanup);
|
||||
}
|
||||
|
||||
private void OnRoundEndMessage(RoundEndMessageEvent ev)
|
||||
private void OnRoundRestartCleanup(RoundRestartCleanupEvent ev)
|
||||
{
|
||||
_roundEndMoment = TimeSpan.Zero; //Reset timer, so it cant affect next round in any case
|
||||
_demiplane.DeleteAllDemiplanes(safe: false);
|
||||
|
||||
_chatSystem.DispatchGlobalAnnouncement(Loc.GetString("cp14-round-end"),
|
||||
announcementSound: new SoundPathSpecifier("/Audio/_CP14/Ambience/event_boom.ogg"));
|
||||
}
|
||||
|
||||
public override void Update(float frameTime)
|
||||
@@ -53,6 +49,9 @@ public sealed partial class CP14RoundEndSystem : EntitySystem
|
||||
if (_roundEndMoment > _timing.CurTime)
|
||||
return;
|
||||
|
||||
_demiplane.DeleteAllDemiplanes(safe: false);
|
||||
_chatSystem.DispatchGlobalAnnouncement(Loc.GetString("cp14-round-end"),
|
||||
announcementSound: new SoundPathSpecifier("/Audio/_CP14/Ambience/event_boom.ogg"));
|
||||
_roundEnd.EndRound();
|
||||
}
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
using System.Linq;
|
||||
using Content.Server.GameTicking.Events;
|
||||
using Content.Shared._CP14.UniqueLoot;
|
||||
using Content.Shared.GameTicking;
|
||||
using Content.Shared.Tag;
|
||||
@@ -35,9 +34,6 @@ public sealed partial class CP14UniqueLootSystem : EntitySystem
|
||||
|
||||
if (!Deleted(ent))
|
||||
SpawnAtPosition(loot, Transform(ent).Coordinates);
|
||||
|
||||
if (!TerminatingOrDeleted(ent) && Exists(ent))
|
||||
QueueDel(ent);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user