Парсек

This commit is contained in:
BIGZi0348
2025-03-16 13:46:59 +03:00
parent ed07dc7f11
commit 1c8f44794f
77 changed files with 517 additions and 493 deletions

View File

@@ -303,7 +303,7 @@ public sealed class NukeSystem : EntitySystem
// play alert sound if time is running out
if (nuke.RemainingTime <= nuke.AlertSoundTime && !nuke.PlayedAlertSound)
{
_sound.PlayGlobalOnStation(uid, _audio.GetSound(nuke.AlertSound), new AudioParams{Volume = -5f});
_sound.PlayGlobalOnStation(uid, _audio.GetSound(nuke.AlertSound), new AudioParams { Volume = -5f });
_sound.StopStationEventMusic(uid, StationEventMusicType.Nuke);
nuke.PlayedAlertSound = true;
UpdateAppearance(uid, nuke);
@@ -572,7 +572,7 @@ public sealed class NukeSystem : EntitySystem
_sound.StopStationEventMusic(uid, StationEventMusicType.Nuke);
Del(uid);
Timer.Spawn(TimeSpan.FromSeconds(60), () => _roundEndSystem.EndRound(TimeSpan.FromSeconds(60))); //Giedi EDIT
Timer.Spawn(TimeSpan.FromSeconds(60), () => _roundEndSystem.EndRound(TimeSpan.FromSeconds(60))); // PARSEC EDIT
}
/// <summary>

View File

@@ -69,7 +69,7 @@ namespace Content.Server.Tabletop
session.Entities.TryGetValue(entity, out var result);
session.Entities.Remove(result);
tabletop.HologramsSpawned--; // Giedi Prime fix
tabletop.HologramsSpawned--; // PARSEC fix
QueueDel(result);
}
@@ -145,7 +145,7 @@ namespace Content.Server.Tabletop
var playVerb = new ActivationVerb()
{
Text = Loc.GetString("tabletop-verb-play-game"),
Icon = new SpriteSpecifier.Texture(new ("/Textures/Interface/VerbIcons/die.svg.192dpi.png")),
Icon = new SpriteSpecifier.Texture(new("/Textures/Interface/VerbIcons/die.svg.192dpi.png")),
Act = () => OpenSessionFor(actor.PlayerSession, uid)
};
@@ -173,7 +173,7 @@ namespace Content.Server.Tabletop
private void OnPlayerDetached(EntityUid uid, TabletopGamerComponent component, PlayerDetachedEvent args)
{
if(component.Tabletop.IsValid())
if (component.Tabletop.IsValid())
CloseSessionFor(args.Player, component.Tabletop);
}
@@ -182,7 +182,7 @@ namespace Content.Server.Tabletop
if (!EntityManager.TryGetComponent(uid, out ActorComponent? actor))
return;
if(component.Tabletop.IsValid())
if (component.Tabletop.IsValid())
CloseSessionFor(actor.PlayerSession, component.Tabletop);
}