diff --git a/Content.Client/Dice/DiceSystem.cs b/Content.Client/Dice/DiceSystem.cs index 2d36488257..2890de5f2f 100644 --- a/Content.Client/Dice/DiceSystem.cs +++ b/Content.Client/Dice/DiceSystem.cs @@ -5,17 +5,24 @@ namespace Content.Client.Dice; public sealed class DiceSystem : SharedDiceSystem { - protected override void UpdateVisuals(EntityUid uid, DiceComponent? die = null) + public override void Initialize() { - if (!Resolve(uid, ref die) || !TryComp(uid, out SpriteComponent? sprite)) + base.Initialize(); + + SubscribeLocalEvent(OnDiceAfterHandleState); + } + + private void OnDiceAfterHandleState(Entity entity, ref AfterAutoHandleStateEvent args) + { + if (!TryComp(entity, out var sprite)) return; - // TODO maybe just move each diue to its own RSI? + // TODO maybe just move each die to its own RSI? var state = sprite.LayerGetState(0).Name; if (state == null) return; var prefix = state.Substring(0, state.IndexOf('_')); - sprite.LayerSetState(0, $"{prefix}_{die.CurrentValue}"); + sprite.LayerSetState(0, $"{prefix}_{entity.Comp.CurrentValue}"); } } diff --git a/Content.IntegrationTests/Tests/Linter/StaticFieldValidationTest.cs b/Content.IntegrationTests/Tests/Linter/StaticFieldValidationTest.cs index 0632fe1347..90bf82e8f1 100644 --- a/Content.IntegrationTests/Tests/Linter/StaticFieldValidationTest.cs +++ b/Content.IntegrationTests/Tests/Linter/StaticFieldValidationTest.cs @@ -1,6 +1,7 @@ using System.Collections.Generic; using System.Linq; using Content.Shared.Tag; +using Robust.Shared.GameObjects; using Robust.Shared.Prototypes; using Robust.Shared.Reflection; using Robust.Shared.Serialization.Manager.Attributes; @@ -29,7 +30,9 @@ public sealed class StaticFieldValidationTest Assert.That(protoMan.ValidateStaticFields(typeof(StringValid), protos), Is.Empty); Assert.That(protoMan.ValidateStaticFields(typeof(StringArrayValid), protos), Is.Empty); Assert.That(protoMan.ValidateStaticFields(typeof(EntProtoIdValid), protos), Is.Empty); + Assert.That(protoMan.ValidateStaticFields(typeof(EntProtoIdTValid), protos), Is.Empty); Assert.That(protoMan.ValidateStaticFields(typeof(EntProtoIdArrayValid), protos), Is.Empty); + Assert.That(protoMan.ValidateStaticFields(typeof(EntProtoIdTArrayValid), protos), Is.Empty); Assert.That(protoMan.ValidateStaticFields(typeof(ProtoIdTestValid), protos), Is.Empty); Assert.That(protoMan.ValidateStaticFields(typeof(ProtoIdArrayValid), protos), Is.Empty); Assert.That(protoMan.ValidateStaticFields(typeof(ProtoIdListValid), protos), Is.Empty); @@ -39,7 +42,9 @@ public sealed class StaticFieldValidationTest Assert.That(protoMan.ValidateStaticFields(typeof(StringInvalid), protos), Has.Count.EqualTo(1)); Assert.That(protoMan.ValidateStaticFields(typeof(StringArrayInvalid), protos), Has.Count.EqualTo(2)); Assert.That(protoMan.ValidateStaticFields(typeof(EntProtoIdInvalid), protos), Has.Count.EqualTo(1)); + Assert.That(protoMan.ValidateStaticFields(typeof(EntProtoIdTInvalid), protos), Has.Count.EqualTo(1)); Assert.That(protoMan.ValidateStaticFields(typeof(EntProtoIdArrayInvalid), protos), Has.Count.EqualTo(2)); + Assert.That(protoMan.ValidateStaticFields(typeof(EntProtoIdTArrayInvalid), protos), Has.Count.EqualTo(2)); Assert.That(protoMan.ValidateStaticFields(typeof(ProtoIdTestInvalid), protos), Has.Count.EqualTo(1)); Assert.That(protoMan.ValidateStaticFields(typeof(ProtoIdArrayInvalid), protos), Has.Count.EqualTo(2)); Assert.That(protoMan.ValidateStaticFields(typeof(ProtoIdListInvalid), protos), Has.Count.EqualTo(2)); @@ -88,24 +93,48 @@ public sealed class StaticFieldValidationTest public static EntProtoId Tag = "StaticFieldTestEnt"; } + [Reflect(false)] + private sealed class EntProtoIdTValid + { + public static EntProtoId Tag = "StaticFieldTestEnt"; + } + [Reflect(false)] private sealed class EntProtoIdInvalid { public static EntProtoId Tag = string.Empty; } + [Reflect(false)] + private sealed class EntProtoIdTInvalid + { + public static EntProtoId Tag = string.Empty; + } + [Reflect(false)] private sealed class EntProtoIdArrayValid { public static EntProtoId[] Tag = ["StaticFieldTestEnt", "StaticFieldTestEnt"]; } + [Reflect(false)] + private sealed class EntProtoIdTArrayValid + { + public static EntProtoId[] Tag = ["StaticFieldTestEnt", "StaticFieldTestEnt"]; + } + [Reflect(false)] private sealed class EntProtoIdArrayInvalid { public static EntProtoId[] Tag = [string.Empty, "StaticFieldTestEnt", string.Empty]; } + [Reflect(false)] + private sealed class EntProtoIdTArrayInvalid + { + public static EntProtoId[] Tag = [string.Empty, "StaticFieldTestEnt", string.Empty]; + } + [Reflect(false)] private sealed class ProtoIdTestValid { diff --git a/Content.Server/Atmos/Piping/Unary/Components/GasVentPumpComponent.cs b/Content.Server/Atmos/Piping/Unary/Components/GasVentPumpComponent.cs index 0aac6ad435..af180c5386 100644 --- a/Content.Server/Atmos/Piping/Unary/Components/GasVentPumpComponent.cs +++ b/Content.Server/Atmos/Piping/Unary/Components/GasVentPumpComponent.cs @@ -11,8 +11,12 @@ namespace Content.Server.Atmos.Piping.Unary.Components [RegisterComponent] public sealed partial class GasVentPumpComponent : Component { + /// + /// Identifies if the device is enabled by an air alarm. Does not indicate if the device is powered. + /// By default, all air vents start enabled, whether linked to an alarm or not. + /// [ViewVariables(VVAccess.ReadWrite)] - public bool Enabled { get; set; } = false; + public bool Enabled { get; set; } = true; [ViewVariables] public bool IsDirty { get; set; } = false; diff --git a/Content.Server/Atmos/Piping/Unary/Components/GasVentScrubberComponent.cs b/Content.Server/Atmos/Piping/Unary/Components/GasVentScrubberComponent.cs index b2143283f7..4a9437bc1f 100644 --- a/Content.Server/Atmos/Piping/Unary/Components/GasVentScrubberComponent.cs +++ b/Content.Server/Atmos/Piping/Unary/Components/GasVentScrubberComponent.cs @@ -9,8 +9,12 @@ namespace Content.Server.Atmos.Piping.Unary.Components [Access(typeof(GasVentScrubberSystem))] public sealed partial class GasVentScrubberComponent : Component { + /// + /// Identifies if the device is enabled by an air alarm. Does not indicate if the device is powered. + /// By default, all air scrubbers start enabled, whether linked to an alarm or not. + /// [DataField] - public bool Enabled { get; set; } = false; + public bool Enabled { get; set; } = true; [DataField] public bool IsDirty { get; set; } = false; diff --git a/Content.Server/Atmos/Piping/Unary/EntitySystems/GasVentPumpSystem.cs b/Content.Server/Atmos/Piping/Unary/EntitySystems/GasVentPumpSystem.cs index 7459241ba1..7a4e8055ce 100644 --- a/Content.Server/Atmos/Piping/Unary/EntitySystems/GasVentPumpSystem.cs +++ b/Content.Server/Atmos/Piping/Unary/EntitySystems/GasVentPumpSystem.cs @@ -9,6 +9,8 @@ using Content.Server.DeviceNetwork.Components; using Content.Server.DeviceNetwork.Systems; using Content.Server.NodeContainer.EntitySystems; using Content.Server.NodeContainer.Nodes; +using Content.Server.Power.Components; +using Content.Server.Power.EntitySystems; using Content.Shared.Administration.Logs; using Content.Shared.Atmos; using Content.Shared.Atmos.Monitor; @@ -43,6 +45,7 @@ namespace Content.Server.Atmos.Piping.Unary.EntitySystems [Dependency] private readonly SharedToolSystem _toolSystem = default!; [Dependency] private readonly SharedDoAfterSystem _doAfterSystem = default!; [Dependency] private readonly IGameTiming _timing = default!; + [Dependency] private readonly PowerReceiverSystem _powerReceiverSystem = default!; public override void Initialize() { base.Initialize(); @@ -66,9 +69,10 @@ namespace Content.Server.Atmos.Piping.Unary.EntitySystems { //Bingo waz here if (_weldable.IsWelded(uid)) - { return; - } + + if (!_powerReceiverSystem.IsPowered(uid)) + return; var nodeName = vent.PumpDirection switch { @@ -228,7 +232,6 @@ namespace Content.Server.Atmos.Piping.Unary.EntitySystems private void OnPowerChanged(EntityUid uid, GasVentPumpComponent component, ref PowerChangedEvent args) { - component.Enabled = args.Powered; UpdateState(uid, component); } @@ -336,7 +339,7 @@ namespace Content.Server.Atmos.Piping.Unary.EntitySystems _ambientSoundSystem.SetAmbience(uid, false); _appearance.SetData(uid, VentPumpVisuals.State, VentPumpState.Welded, appearance); } - else if (!vent.Enabled) + else if (!_powerReceiverSystem.IsPowered(uid) || !vent.Enabled) { _ambientSoundSystem.SetAmbience(uid, false); _appearance.SetData(uid, VentPumpVisuals.State, VentPumpState.Off, appearance); diff --git a/Content.Server/Atmos/Piping/Unary/EntitySystems/GasVentScrubberSystem.cs b/Content.Server/Atmos/Piping/Unary/EntitySystems/GasVentScrubberSystem.cs index 0207535398..38d75701d7 100644 --- a/Content.Server/Atmos/Piping/Unary/EntitySystems/GasVentScrubberSystem.cs +++ b/Content.Server/Atmos/Piping/Unary/EntitySystems/GasVentScrubberSystem.cs @@ -10,6 +10,7 @@ using Content.Server.NodeContainer; using Content.Server.NodeContainer.EntitySystems; using Content.Server.NodeContainer.Nodes; using Content.Server.Power.Components; +using Content.Server.Power.EntitySystems; using Content.Shared.Administration.Logs; using Content.Shared.Atmos; using Content.Shared.Atmos.Piping.Unary.Visuals; @@ -37,6 +38,7 @@ namespace Content.Server.Atmos.Piping.Unary.EntitySystems [Dependency] private readonly TransformSystem _transformSystem = default!; [Dependency] private readonly SharedAppearanceSystem _appearance = default!; [Dependency] private readonly WeldableSystem _weldable = default!; + [Dependency] private readonly PowerReceiverSystem _powerReceiverSystem = default!; public override void Initialize() { @@ -58,6 +60,9 @@ namespace Content.Server.Atmos.Piping.Unary.EntitySystems var timeDelta = args.dt; + if (!_powerReceiverSystem.IsPowered(uid)) + return; + if (!scrubber.Enabled || !_nodeContainer.TryGetNode(uid, scrubber.OutletName, out PipeNode? outlet)) return; @@ -141,7 +146,6 @@ namespace Content.Server.Atmos.Piping.Unary.EntitySystems private void OnPowerChanged(EntityUid uid, GasVentScrubberComponent component, ref PowerChangedEvent args) { - component.Enabled = args.Powered; UpdateState(uid, component); } @@ -225,7 +229,7 @@ namespace Content.Server.Atmos.Piping.Unary.EntitySystems _ambientSoundSystem.SetAmbience(uid, false); _appearance.SetData(uid, ScrubberVisuals.State, ScrubberState.Welded, appearance); } - else if (!scrubber.Enabled) + else if (!_powerReceiverSystem.IsPowered(uid) || !scrubber.Enabled) { _ambientSoundSystem.SetAmbience(uid, false); _appearance.SetData(uid, ScrubberVisuals.State, ScrubberState.Off, appearance); diff --git a/Content.Server/Clothing/Systems/ChameleonClothingSystem.cs b/Content.Server/Clothing/Systems/ChameleonClothingSystem.cs index bf3eb56034..ddaa6ccf79 100644 --- a/Content.Server/Clothing/Systems/ChameleonClothingSystem.cs +++ b/Content.Server/Clothing/Systems/ChameleonClothingSystem.cs @@ -4,18 +4,13 @@ using Content.Shared.Clothing.Components; using Content.Shared.Clothing.EntitySystems; using Content.Shared.IdentityManagement.Components; using Content.Shared.Prototypes; -using Content.Shared.Verbs; -using Robust.Server.GameObjects; -using Robust.Shared.Player; using Robust.Shared.Prototypes; -using Robust.Shared.Utility; namespace Content.Server.Clothing.Systems; public sealed class ChameleonClothingSystem : SharedChameleonClothingSystem { [Dependency] private readonly IPrototypeManager _proto = default!; - [Dependency] private readonly UserInterfaceSystem _uiSystem = default!; [Dependency] private readonly IComponentFactory _factory = default!; [Dependency] private readonly IdentitySystem _identity = default!; [Dependency] private readonly BiocodeSystem _biocodeSystem = default!; @@ -24,7 +19,6 @@ public sealed class ChameleonClothingSystem : SharedChameleonClothingSystem { base.Initialize(); SubscribeLocalEvent(OnMapInit); - SubscribeLocalEvent>(OnVerb); SubscribeLocalEvent(OnSelected); } @@ -33,48 +27,18 @@ public sealed class ChameleonClothingSystem : SharedChameleonClothingSystem SetSelectedPrototype(uid, component.Default, true, component); } - private void OnVerb(EntityUid uid, ChameleonClothingComponent component, GetVerbsEvent args) - { - if (!args.CanAccess || !args.CanInteract) // || component.User != args.User // Sunrise-Edit: Не надо - return; - - // Sunrise-Start - if (TryComp(uid, out var biocodedComponent)) - { - if (!_biocodeSystem.CanUse(args.User, biocodedComponent.Factions)) - return; - } - // Sunrise-End - - args.Verbs.Add(new InteractionVerb() - { - Text = Loc.GetString("chameleon-component-verb-text"), - Icon = new SpriteSpecifier.Texture(new("/Textures/Interface/VerbIcons/settings.svg.192dpi.png")), - Act = () => TryOpenUi(uid, args.User, component) - }); - } - private void OnSelected(EntityUid uid, ChameleonClothingComponent component, ChameleonPrototypeSelectedMessage args) { SetSelectedPrototype(uid, args.SelectedId, component: component); } - private void TryOpenUi(EntityUid uid, EntityUid user, ChameleonClothingComponent? component = null) - { - if (!Resolve(uid, ref component)) - return; - if (!TryComp(user, out ActorComponent? actor)) - return; - _uiSystem.TryToggleUi(uid, ChameleonUiKey.Key, actor.PlayerSession); - } - private void UpdateUi(EntityUid uid, ChameleonClothingComponent? component = null) { if (!Resolve(uid, ref component)) return; var state = new ChameleonBoundUserInterfaceState(component.Slot, component.Default, component.RequireTag); - _uiSystem.SetUiState(uid, ChameleonUiKey.Key, state); + UI.SetUiState(uid, ChameleonUiKey.Key, state); } /// diff --git a/Content.Server/Dice/DiceSystem.cs b/Content.Server/Dice/DiceSystem.cs index 2d13679bd0..c2cb62a250 100644 --- a/Content.Server/Dice/DiceSystem.cs +++ b/Content.Server/Dice/DiceSystem.cs @@ -1,28 +1,5 @@ using Content.Shared.Dice; -using Content.Shared.Popups; -using JetBrains.Annotations; -using Robust.Shared.Audio; -using Robust.Shared.Audio.Systems; -using Robust.Shared.Random; namespace Content.Server.Dice; -[UsedImplicitly] -public sealed class DiceSystem : SharedDiceSystem -{ - [Dependency] private readonly IRobustRandom _random = default!; - [Dependency] private readonly SharedAudioSystem _audio = default!; - [Dependency] private readonly SharedPopupSystem _popup = default!; - - public override void Roll(EntityUid uid, DiceComponent? die = null) - { - if (!Resolve(uid, ref die)) - return; - - var roll = _random.Next(1, die.Sides + 1); - SetCurrentSide(uid, roll, die); - - _popup.PopupEntity(Loc.GetString("dice-component-on-roll-land", ("die", uid), ("currentSide", die.CurrentValue)), uid); - _audio.PlayPvs(die.Sound, uid); - } -} +public sealed class DiceSystem : SharedDiceSystem; diff --git a/Content.Server/Fluids/EntitySystems/PuddleDebugDebugOverlaySystem.cs b/Content.Server/Fluids/EntitySystems/PuddleDebugDebugOverlaySystem.cs index 859f2d80a6..88acf4b703 100644 --- a/Content.Server/Fluids/EntitySystems/PuddleDebugDebugOverlaySystem.cs +++ b/Content.Server/Fluids/EntitySystems/PuddleDebugDebugOverlaySystem.cs @@ -84,7 +84,7 @@ public sealed class PuddleDebugDebugOverlaySystem : SharedPuddleDebugOverlaySyst data.Add(new PuddleDebugOverlayData(pos, vol)); } - RaiseNetworkEvent(new PuddleOverlayDebugMessage(GetNetEntity(gridUid), data.ToArray())); + RaiseNetworkEvent(new PuddleOverlayDebugMessage(GetNetEntity(gridUid), data.ToArray()), session); } } diff --git a/Content.Server/Sandbox/Commands/ColorNetworkCommand.cs b/Content.Server/Sandbox/Commands/ColorNetworkCommand.cs index 1fc207058d..0a778f5880 100644 --- a/Content.Server/Sandbox/Commands/ColorNetworkCommand.cs +++ b/Content.Server/Sandbox/Commands/ColorNetworkCommand.cs @@ -19,7 +19,7 @@ namespace Content.Server.Sandbox.Commands { var sandboxManager = _entManager.System(); var adminManager = IoCManager.Resolve(); - if (shell.IsClient && (!sandboxManager.IsSandboxEnabled && !adminManager.HasAdminFlag(shell.Player!, AdminFlags.Mapping))) + if (shell.IsClient || (!sandboxManager.IsSandboxEnabled && !adminManager.HasAdminFlag(shell.Player!, AdminFlags.Mapping))) { shell.WriteError(Loc.GetString("cmd-colornetwork-no-access")); } diff --git a/Content.Server/Solar/Components/SolarPanelComponent.cs b/Content.Server/Solar/Components/SolarPanelComponent.cs index 870b4c78ef..edf622d06f 100644 --- a/Content.Server/Solar/Components/SolarPanelComponent.cs +++ b/Content.Server/Solar/Components/SolarPanelComponent.cs @@ -1,4 +1,5 @@ using Content.Server.Solar.EntitySystems; +using Content.Shared.Guidebook; namespace Content.Server.Solar.Components { @@ -15,6 +16,7 @@ namespace Content.Server.Solar.Components /// Maximum supply output by this panel (coverage = 1) /// [DataField("maxSupply")] + [GuidebookData] public int MaxSupply = 750; /// diff --git a/Content.Server/Store/StoreRefundComponent.cs b/Content.Server/Store/StoreRefundComponent.cs index 1a6b17c5ea..df35afdf53 100644 --- a/Content.Server/Store/StoreRefundComponent.cs +++ b/Content.Server/Store/StoreRefundComponent.cs @@ -2,12 +2,31 @@ namespace Content.Server.Store.Components; +// TODO: Refund on a per-item/action level. +// Requires a refund button next to each purchase (disabled/invis by default) +// Interactions with ActionUpgrades would need to be modified to reset all upgrade progress and return the original action purchase to the store. + /// /// Keeps track of entities bought from stores for refunds, especially useful if entities get deleted before they can be refunded. /// [RegisterComponent, Access(typeof(StoreSystem))] public sealed partial class StoreRefundComponent : Component { - [ViewVariables, DataField] + /// + /// The store this entity was bought from + /// + [DataField] public EntityUid? StoreEntity; + + /// + /// The time this entity was bought + /// + [DataField] + public TimeSpan? BoughtTime; + + /// + /// How long until this entity disables refund purchase? + /// + [DataField] + public TimeSpan DisableTime = TimeSpan.FromSeconds(300); } diff --git a/Content.Server/Store/Systems/StoreSystem.Refund.cs b/Content.Server/Store/Systems/StoreSystem.Refund.cs index 04bd585ffc..e9d801f9e1 100644 --- a/Content.Server/Store/Systems/StoreSystem.Refund.cs +++ b/Content.Server/Store/Systems/StoreSystem.Refund.cs @@ -1,5 +1,8 @@ using Content.Server.Store.Components; +using Content.Shared.Actions.Events; +using Content.Shared.Interaction.Events; using Content.Shared.Store.Components; +using Content.Shared.Weapons.Ranged.Systems; using Robust.Shared.Containers; namespace Content.Server.Store.Systems; @@ -12,22 +15,39 @@ public sealed partial class StoreSystem SubscribeLocalEvent(OnRefundTerminating); SubscribeLocalEvent(OnEntityRemoved); SubscribeLocalEvent(OnEntityInserted); + SubscribeLocalEvent(OnActionPerformed); + SubscribeLocalEvent(OnUseInHand); + SubscribeLocalEvent(OnShootAttempt); + // TODO: Handle guardian refund disabling when guardians support refunds. } - private void OnEntityRemoved(EntityUid uid, StoreRefundComponent component, EntRemovedFromContainerMessage args) + private void OnEntityRemoved(Entity ent, ref EntRemovedFromContainerMessage args) { - if (component.StoreEntity == null || _actions.TryGetActionData(uid, out _, false) || !TryComp(component.StoreEntity.Value, out var storeComp)) - return; - - DisableRefund(component.StoreEntity.Value, storeComp); + CheckDisableRefund(ent); } - private void OnEntityInserted(EntityUid uid, StoreRefundComponent component, EntInsertedIntoContainerMessage args) + private void OnEntityInserted(Entity ent, ref EntInsertedIntoContainerMessage args) { - if (component.StoreEntity == null || _actions.TryGetActionData(uid, out _) || !TryComp(component.StoreEntity.Value, out var storeComp)) + CheckDisableRefund(ent); + } + + private void OnActionPerformed(Entity ent, ref ActionPerformedEvent args) + { + CheckDisableRefund(ent); + } + + private void OnUseInHand(Entity ent, ref UseInHandEvent args) + { + args.Handled = true; + CheckDisableRefund(ent); + } + + private void OnShootAttempt(Entity ent, ref AttemptShootEvent args) + { + if (args.Cancelled) return; - DisableRefund(component.StoreEntity.Value, storeComp); + CheckDisableRefund(ent); } private void OnStoreTerminating(Entity ent, ref EntityTerminatingEvent args) @@ -52,4 +72,19 @@ public sealed partial class StoreSystem var ev = new RefundEntityDeletedEvent(ent); RaiseLocalEvent(ent.Comp.StoreEntity.Value, ref ev); } + + private void CheckDisableRefund(Entity ent) + { + var component = ent.Comp; + + if (component.StoreEntity == null || !TryComp(component.StoreEntity.Value, out var storeComp) || !storeComp.RefundAllowed) + return; + + var endTime = component.BoughtTime + component.DisableTime; + + if (IsOnStartingMap(component.StoreEntity.Value, storeComp) && _timing.CurTime < endTime) + return; + + DisableRefund(component.StoreEntity.Value, storeComp); + } } diff --git a/Content.Server/Store/Systems/StoreSystem.Ui.cs b/Content.Server/Store/Systems/StoreSystem.Ui.cs index 401cb4705f..839d3455d4 100644 --- a/Content.Server/Store/Systems/StoreSystem.Ui.cs +++ b/Content.Server/Store/Systems/StoreSystem.Ui.cs @@ -164,7 +164,7 @@ public sealed partial class StoreSystem } if (!IsOnStartingMap(uid, component)) - component.RefundAllowed = false; + DisableRefund(uid, component); //subtract the cash foreach (var (currency, amount) in cost) @@ -345,7 +345,7 @@ public sealed partial class StoreSystem if (!IsOnStartingMap(uid, component)) { - component.RefundAllowed = false; + DisableRefund(uid, component); UpdateUserInterface(buyer, uid, component); } @@ -389,6 +389,7 @@ public sealed partial class StoreSystem component.BoughtEntities.Add(purchase); var refundComp = EnsureComp(purchase); refundComp.StoreEntity = uid; + refundComp.BoughtTime = _timing.CurTime; } private bool IsOnStartingMap(EntityUid store, StoreComponent component) diff --git a/Content.Server/Store/Systems/StoreSystem.cs b/Content.Server/Store/Systems/StoreSystem.cs index bdc0c245cd..245dcd789a 100644 --- a/Content.Server/Store/Systems/StoreSystem.cs +++ b/Content.Server/Store/Systems/StoreSystem.cs @@ -10,6 +10,7 @@ using JetBrains.Annotations; using Robust.Shared.Prototypes; using Robust.Shared.Utility; using System.Linq; +using Robust.Shared.Timing; using Content.Shared.Mind; namespace Content.Server.Store.Systems; @@ -22,6 +23,7 @@ public sealed partial class StoreSystem : EntitySystem { [Dependency] private readonly IPrototypeManager _proto = default!; [Dependency] private readonly SharedPopupSystem _popup = default!; + [Dependency] private readonly IGameTiming _timing = default!; public override void Initialize() { diff --git a/Content.Shared/Animals/UdderSystem.cs b/Content.Shared/Animals/UdderSystem.cs index cb6e5b307f..177fbab2f2 100644 --- a/Content.Shared/Animals/UdderSystem.cs +++ b/Content.Shared/Animals/UdderSystem.cs @@ -1,7 +1,6 @@ using Content.Shared.Chemistry.Components; using Content.Shared.Chemistry.EntitySystems; using Content.Shared.DoAfter; -using Content.Shared.Examine; using Content.Shared.IdentityManagement; using Content.Shared.Mobs.Systems; using Content.Shared.Nutrition.Components; @@ -32,7 +31,6 @@ public sealed class UdderSystem : EntitySystem SubscribeLocalEvent(OnMapInit); SubscribeLocalEvent>(AddMilkVerb); SubscribeLocalEvent(OnDoAfter); - SubscribeLocalEvent(OnExamine); } private void OnMapInit(EntityUid uid, UdderComponent component, MapInitEvent args) @@ -140,50 +138,4 @@ public sealed class UdderSystem : EntitySystem }; args.Verbs.Add(verb); } - - /// - /// Defines the text provided on examine. - /// Changes depending on the amount of hunger the target has. - /// - private void OnExamine(Entity entity, ref ExaminedEvent args) - { - - var entityIdentity = Identity.Entity(args.Examined, EntityManager); - - string message; - - // Check if the target has hunger, otherwise return not hungry. - if (!TryComp(entity, out var hunger)) - { - message = Loc.GetString("udder-system-examine-none", ("entity", entityIdentity)); - args.PushMarkup(message); - return; - } - - // Choose the correct examine string based on HungerThreshold. - switch (_hunger.GetHungerThreshold(hunger)) - { - case >= HungerThreshold.Overfed: - message = Loc.GetString("udder-system-examine-overfed", ("entity", entityIdentity)); - break; - - case HungerThreshold.Okay: - message = Loc.GetString("udder-system-examine-okay", ("entity", entityIdentity)); - break; - - case HungerThreshold.Peckish: - message = Loc.GetString("udder-system-examine-hungry", ("entity", entityIdentity)); - break; - - // There's a final hunger threshold called "dead" but animals don't actually die so we'll re-use this. - case <= HungerThreshold.Starving: - message = Loc.GetString("udder-system-examine-starved", ("entity", entityIdentity)); - break; - - default: - return; - } - - args.PushMarkup(message); - } } diff --git a/Content.Shared/Clothing/EntitySystems/SharedChameleonClothingSystem.cs b/Content.Shared/Clothing/EntitySystems/SharedChameleonClothingSystem.cs index 488b7a5b64..725b034766 100644 --- a/Content.Shared/Clothing/EntitySystems/SharedChameleonClothingSystem.cs +++ b/Content.Shared/Clothing/EntitySystems/SharedChameleonClothingSystem.cs @@ -5,8 +5,9 @@ using Content.Shared.Inventory; using Content.Shared.Inventory.Events; using Content.Shared.Item; using Content.Shared.Tag; +using Content.Shared.Verbs; using Robust.Shared.Prototypes; -using Robust.Shared.Serialization.Manager; +using Robust.Shared.Utility; namespace Content.Shared.Clothing.EntitySystems; @@ -14,19 +15,20 @@ public abstract class SharedChameleonClothingSystem : EntitySystem { [Dependency] private readonly IComponentFactory _factory = default!; [Dependency] private readonly IPrototypeManager _proto = default!; - [Dependency] private readonly ISerializationManager _serialization = default!; [Dependency] private readonly ClothingSystem _clothingSystem = default!; [Dependency] private readonly ContrabandSystem _contraband = default!; [Dependency] private readonly MetaDataSystem _metaData = default!; [Dependency] private readonly SharedItemSystem _itemSystem = default!; [Dependency] private readonly SharedAppearanceSystem _appearance = default!; [Dependency] private readonly TagSystem _tag = default!; + [Dependency] protected readonly SharedUserInterfaceSystem UI = default!; public override void Initialize() { base.Initialize(); SubscribeLocalEvent(OnGotEquipped); SubscribeLocalEvent(OnGotUnequipped); + SubscribeLocalEvent>(OnVerb); } private void OnGotEquipped(EntityUid uid, ChameleonClothingComponent component, GotEquippedEvent args) @@ -94,6 +96,22 @@ public abstract class SharedChameleonClothingSystem : EntitySystem } } + private void OnVerb(Entity ent, ref GetVerbsEvent args) + { + if (!args.CanAccess || !args.CanInteract || ent.Comp.User != args.User) + return; + + // Can't pass args from a ref event inside of lambdas + var user = args.User; + + args.Verbs.Add(new InteractionVerb() + { + Text = Loc.GetString("chameleon-component-verb-text"), + Icon = new SpriteSpecifier.Texture(new("/Textures/Interface/VerbIcons/settings.svg.192dpi.png")), + Act = () => UI.TryToggleUi(ent.Owner, ChameleonUiKey.Key, user) + }); + } + protected virtual void UpdateSprite(EntityUid uid, EntityPrototype proto) { } /// diff --git a/Content.Shared/Dice/DiceComponent.cs b/Content.Shared/Dice/DiceComponent.cs index c01ad3c451..27f7bd70e0 100644 --- a/Content.Shared/Dice/DiceComponent.cs +++ b/Content.Shared/Dice/DiceComponent.cs @@ -1,6 +1,5 @@ using Robust.Shared.Audio; using Robust.Shared.GameStates; -using Robust.Shared.Serialization; namespace Content.Shared.Dice; diff --git a/Content.Shared/Dice/SharedDiceSystem.cs b/Content.Shared/Dice/SharedDiceSystem.cs index 8e2868e791..71a51584d3 100644 --- a/Content.Shared/Dice/SharedDiceSystem.cs +++ b/Content.Shared/Dice/SharedDiceSystem.cs @@ -1,12 +1,18 @@ using Content.Shared.Examine; using Content.Shared.Interaction.Events; +using Content.Shared.Popups; using Content.Shared.Throwing; -using Robust.Shared.GameStates; +using Robust.Shared.Audio.Systems; +using Robust.Shared.Timing; namespace Content.Shared.Dice; public abstract class SharedDiceSystem : EntitySystem { + [Dependency] private readonly IGameTiming _timing = default!; + [Dependency] private readonly SharedAudioSystem _audio = default!; + [Dependency] private readonly SharedPopupSystem _popup = default!; + public override void Initialize() { base.Initialize(); @@ -14,76 +20,67 @@ public abstract class SharedDiceSystem : EntitySystem SubscribeLocalEvent(OnUseInHand); SubscribeLocalEvent(OnLand); SubscribeLocalEvent(OnExamined); - SubscribeLocalEvent(OnDiceAfterHandleState); } - private void OnDiceAfterHandleState(EntityUid uid, DiceComponent component, ref AfterAutoHandleStateEvent args) - { - UpdateVisuals(uid, component); - } - - private void OnUseInHand(EntityUid uid, DiceComponent component, UseInHandEvent args) + private void OnUseInHand(Entity entity, ref UseInHandEvent args) { if (args.Handled) return; + Roll(entity, args.User); args.Handled = true; - Roll(uid, component); } - private void OnLand(EntityUid uid, DiceComponent component, ref LandEvent args) + private void OnLand(Entity entity, ref LandEvent args) { - Roll(uid, component); + Roll(entity); } - private void OnExamined(EntityUid uid, DiceComponent dice, ExaminedEvent args) + private void OnExamined(Entity entity, ref ExaminedEvent args) { //No details check, since the sprite updates to show the side. using (args.PushGroup(nameof(DiceComponent))) { - args.PushMarkup(Loc.GetString("dice-component-on-examine-message-part-1", ("sidesAmount", dice.Sides))); + args.PushMarkup(Loc.GetString("dice-component-on-examine-message-part-1", ("sidesAmount", entity.Comp.Sides))); args.PushMarkup(Loc.GetString("dice-component-on-examine-message-part-2", - ("currentSide", dice.CurrentValue))); + ("currentSide", entity.Comp.CurrentValue))); } } - public void SetCurrentSide(EntityUid uid, int side, DiceComponent? die = null) + private void SetCurrentSide(Entity entity, int side) { - if (!Resolve(uid, ref die)) - return; - - if (side < 1 || side > die.Sides) + if (side < 1 || side > entity.Comp.Sides) { - Log.Error($"Attempted to set die {ToPrettyString(uid)} to an invalid side ({side})."); + Log.Error($"Attempted to set die {ToPrettyString(entity)} to an invalid side ({side})."); return; } - die.CurrentValue = (side - die.Offset) * die.Multiplier; - Dirty(uid, die); - UpdateVisuals(uid, die); + entity.Comp.CurrentValue = (side - entity.Comp.Offset) * entity.Comp.Multiplier; + Dirty(entity); } - public void SetCurrentValue(EntityUid uid, int value, DiceComponent? die = null) + public void SetCurrentValue(Entity entity, int value) { - if (!Resolve(uid, ref die)) - return; - - if (value % die.Multiplier != 0 || value/ die.Multiplier + die.Offset < 1) + if (value % entity.Comp.Multiplier != 0 || value / entity.Comp.Multiplier + entity.Comp.Offset < 1) { - Log.Error($"Attempted to set die {ToPrettyString(uid)} to an invalid value ({value})."); + Log.Error($"Attempted to set die {ToPrettyString(entity)} to an invalid value ({value})."); return; } - SetCurrentSide(uid, value / die.Multiplier + die.Offset, die); + SetCurrentSide(entity, value / entity.Comp.Multiplier + entity.Comp.Offset); } - protected virtual void UpdateVisuals(EntityUid uid, DiceComponent? die = null) + private void Roll(Entity entity, EntityUid? user = null) { - // See client system. - } + var rand = new System.Random((int)_timing.CurTick.Value); - public virtual void Roll(EntityUid uid, DiceComponent? die = null) - { - // See the server system, client cannot predict rolling. + var roll = rand.Next(1, entity.Comp.Sides + 1); + SetCurrentSide(entity, roll); + + var popupString = Loc.GetString("dice-component-on-roll-land", + ("die", entity), + ("currentSide", entity.Comp.CurrentValue)); + _popup.PopupPredicted(popupString, entity, user); + _audio.PlayPredicted(entity.Comp.Sound, entity, user); } } diff --git a/Content.Shared/ItemRecall/SharedItemRecallSystem.cs b/Content.Shared/ItemRecall/SharedItemRecallSystem.cs index 63d38203c6..a4a49e9708 100644 --- a/Content.Shared/ItemRecall/SharedItemRecallSystem.cs +++ b/Content.Shared/ItemRecall/SharedItemRecallSystem.cs @@ -81,7 +81,7 @@ public abstract partial class SharedItemRecallSystem : EntitySystem return; if (TryComp(ent, out var projectile)) - _proj.UnEmbed(ent, projectile, actionOwner.Value); + _proj.EmbedDetach(ent, projectile, actionOwner.Value); _popups.PopupPredicted(Loc.GetString("item-recall-item-summon", ("item", ent)), actionOwner.Value, actionOwner.Value); diff --git a/Content.Shared/Nutrition/Components/ExamineableHungerComponent.cs b/Content.Shared/Nutrition/Components/ExamineableHungerComponent.cs new file mode 100644 index 0000000000..00aba82e58 --- /dev/null +++ b/Content.Shared/Nutrition/Components/ExamineableHungerComponent.cs @@ -0,0 +1,31 @@ +using Content.Shared.Nutrition.EntitySystems; +using Robust.Shared.GameStates; + +namespace Content.Shared.Nutrition.Components; + +/// +/// Adds text to the entity's description box based on its current hunger threshold. +/// +[RegisterComponent, NetworkedComponent] +[Access(typeof(ExamineableHungerSystem))] +public sealed partial class ExamineableHungerComponent : Component +{ + /// + /// Dictionary of hunger thresholds to LocIds of the messages to display. + /// + [DataField] + public Dictionary Descriptions = new() + { + { HungerThreshold.Overfed, "examineable-hunger-component-examine-overfed"}, + { HungerThreshold.Okay, "examineable-hunger-component-examine-okay"}, + { HungerThreshold.Peckish, "examineable-hunger-component-examine-peckish"}, + { HungerThreshold.Starving, "examineable-hunger-component-examine-starving"}, + { HungerThreshold.Dead, "examineable-hunger-component-examine-starving"} + }; + + /// + /// LocId of a fallback message to display if the entity has no + /// or does not have a value in for the current threshold. + /// + public LocId NoHungerDescription = "examineable-hunger-component-examine-none"; +} diff --git a/Content.Shared/Nutrition/EntitySystems/ExamineableHungerSystem.cs b/Content.Shared/Nutrition/EntitySystems/ExamineableHungerSystem.cs new file mode 100644 index 0000000000..e0ac767bcf --- /dev/null +++ b/Content.Shared/Nutrition/EntitySystems/ExamineableHungerSystem.cs @@ -0,0 +1,41 @@ +using Content.Shared.Examine; +using Content.Shared.IdentityManagement; +using Content.Shared.Nutrition.Components; + +namespace Content.Shared.Nutrition.EntitySystems; + +/// +public sealed class ExamineableHungerSystem : EntitySystem +{ + [Dependency] private readonly HungerSystem _hunger = default!; + private EntityQuery _hungerQuery; + + public override void Initialize() + { + base.Initialize(); + + _hungerQuery = GetEntityQuery(); + + SubscribeLocalEvent(OnExamine); + } + + /// + /// Defines the text provided on examine. + /// Changes depending on the amount of hunger the target has. + /// + private void OnExamine(Entity entity, ref ExaminedEvent args) + { + var identity = Identity.Entity(entity, EntityManager); + + if (!_hungerQuery.TryComp(entity, out var hungerComp) + || !entity.Comp.Descriptions.TryGetValue(_hunger.GetHungerThreshold(hungerComp), out var locId)) + { + // Use a fallback message if the entity has no HungerComponent + // or is missing a description for the current threshold + locId = entity.Comp.NoHungerDescription; + } + + var msg = Loc.GetString(locId, ("entity", identity)); + args.PushMarkup(msg); + } +} diff --git a/Content.Shared/Projectiles/EmbeddedContainerComponent.cs b/Content.Shared/Projectiles/EmbeddedContainerComponent.cs new file mode 100644 index 0000000000..19dd93bfbd --- /dev/null +++ b/Content.Shared/Projectiles/EmbeddedContainerComponent.cs @@ -0,0 +1,13 @@ +using Robust.Shared.GameStates; + +namespace Content.Shared.Projectiles; + +/// +/// Stores a list of all stuck entities to release when this entity is deleted. +/// +[RegisterComponent, NetworkedComponent, AutoGenerateComponentState] +public sealed partial class EmbeddedContainerComponent : Component +{ + [DataField, AutoNetworkedField] + public HashSet EmbeddedObjects = new(); +} diff --git a/Content.Shared/Projectiles/SharedProjectileSystem.cs b/Content.Shared/Projectiles/SharedProjectileSystem.cs index 1d0fc16cbd..be86fd1af2 100644 --- a/Content.Shared/Projectiles/SharedProjectileSystem.cs +++ b/Content.Shared/Projectiles/SharedProjectileSystem.cs @@ -15,6 +15,7 @@ using Robust.Shared.Physics.Dynamics; using Robust.Shared.Physics.Events; using Robust.Shared.Physics.Systems; using Robust.Shared.Serialization; +using Robust.Shared.Utility; namespace Content.Shared.Projectiles; @@ -22,7 +23,7 @@ public abstract partial class SharedProjectileSystem : EntitySystem { public const string ProjectileFixture = "projectile"; - [Dependency] private readonly INetManager _netManager = default!; + [Dependency] private readonly INetManager _net = default!; [Dependency] private readonly SharedAudioSystem _audio = default!; [Dependency] private readonly SharedDoAfterSystem _doAfter = default!; [Dependency] private readonly SharedHandsSystem _hands = default!; @@ -38,62 +39,63 @@ public abstract partial class SharedProjectileSystem : EntitySystem SubscribeLocalEvent(OnEmbedThrowDoHit); SubscribeLocalEvent(OnEmbedActivate); SubscribeLocalEvent(OnEmbedRemove); + + SubscribeLocalEvent(OnEmbeddableTermination); } - private void OnEmbedActivate(EntityUid uid, EmbeddableProjectileComponent component, ActivateInWorldEvent args) + private void OnEmbedActivate(Entity embeddable, ref ActivateInWorldEvent args) { - // Nuh uh - if (component.RemovalTime == null) + // Unremovable embeddables moment + if (embeddable.Comp.RemovalTime == null) return; - if (args.Handled || !args.Complex || !TryComp(uid, out var physics) || physics.BodyType != BodyType.Static) + if (args.Handled || !args.Complex || !TryComp(embeddable, out var physics) || + physics.BodyType != BodyType.Static) return; args.Handled = true; - _doAfter.TryStartDoAfter(new DoAfterArgs(EntityManager, args.User, component.RemovalTime.Value, - new RemoveEmbeddedProjectileEvent(), eventTarget: uid, target: uid)); + _doAfter.TryStartDoAfter(new DoAfterArgs(EntityManager, + args.User, + embeddable.Comp.RemovalTime.Value, + new RemoveEmbeddedProjectileEvent(), + eventTarget: embeddable, + target: embeddable)); } - private void OnEmbedRemove(EntityUid uid, EmbeddableProjectileComponent component, RemoveEmbeddedProjectileEvent args) + private void OnEmbedRemove(Entity embeddable, ref RemoveEmbeddedProjectileEvent args) { // Whacky prediction issues. - if (args.Cancelled || _netManager.IsClient) + if (args.Cancelled || _net.IsClient) return; - if (component.DeleteOnRemove) - { - QueueDel(uid); - return; - } - - UnEmbed(uid, component, args.User); + EmbedDetach(embeddable, embeddable.Comp, args.User); // try place it in the user's hand - _hands.TryPickupAnyHand(args.User, uid); + _hands.TryPickupAnyHand(args.User, embeddable); } - private void OnEmbedThrowDoHit(EntityUid uid, EmbeddableProjectileComponent component, ThrowDoHitEvent args) + private void OnEmbedThrowDoHit(Entity embeddable, ref ThrowDoHitEvent args) { - if (!component.EmbedOnThrow) + if (!embeddable.Comp.EmbedOnThrow) return; - Embed(uid, args.Target, null, component); + EmbedAttach(embeddable, args.Target, null, embeddable.Comp); } - private void OnEmbedProjectileHit(EntityUid uid, EmbeddableProjectileComponent component, ref ProjectileHitEvent args) + private void OnEmbedProjectileHit(Entity embeddable, ref ProjectileHitEvent args) { - Embed(uid, args.Target, args.Shooter, component); + EmbedAttach(embeddable, args.Target, args.Shooter, embeddable.Comp); // Raise a specific event for projectiles. - if (TryComp(uid, out ProjectileComponent? projectile)) + if (TryComp(embeddable, out ProjectileComponent? projectile)) { var ev = new ProjectileEmbedEvent(projectile.Shooter!.Value, projectile.Weapon!.Value, args.Target); - RaiseLocalEvent(uid, ref ev); + RaiseLocalEvent(embeddable, ref ev); } } - private void Embed(EntityUid uid, EntityUid target, EntityUid? user, EmbeddableProjectileComponent component) + private void EmbedAttach(EntityUid uid, EntityUid target, EntityUid? user, EmbeddableProjectileComponent component) { TryComp(uid, out var physics); _physics.SetLinearVelocity(uid, Vector2.Zero, body: physics); @@ -106,8 +108,7 @@ public abstract partial class SharedProjectileSystem : EntitySystem var rotation = xform.LocalRotation; if (TryComp(uid, out var throwingAngleComp)) rotation += throwingAngleComp.Angle; - _transform.SetLocalPosition(uid, xform.LocalPosition + rotation.RotateVec(component.Offset), - xform); + _transform.SetLocalPosition(uid, xform.LocalPosition + rotation.RotateVec(component.Offset), xform); } _audio.PlayPredicted(component.Sound, uid, null); @@ -115,13 +116,32 @@ public abstract partial class SharedProjectileSystem : EntitySystem var ev = new EmbedEvent(user, target); RaiseLocalEvent(uid, ref ev); Dirty(uid, component); + + EnsureComp(target, out var embeddedContainer); + + //Assert that this entity not embed + DebugTools.AssertEqual(embeddedContainer.EmbeddedObjects.Contains(uid), false); + + embeddedContainer.EmbeddedObjects.Add(uid); } - public void UnEmbed(EntityUid uid, EmbeddableProjectileComponent? component, EntityUid? user = null) + public void EmbedDetach(EntityUid uid, EmbeddableProjectileComponent? component, EntityUid? user = null) { if (!Resolve(uid, ref component)) return; + if (component.DeleteOnRemove) + { + QueueDel(uid); + return; + } + + if (component.EmbeddedIntoUid is not null) + { + if (TryComp(component.EmbeddedIntoUid.Value, out var embeddedContainer)) + embeddedContainer.EmbeddedObjects.Remove(uid); + } + var xform = Transform(uid); TryComp(uid, out var physics); _physics.SetBodyType(uid, BodyType.Dynamic, body: physics, xform: xform); @@ -149,6 +169,22 @@ public abstract partial class SharedProjectileSystem : EntitySystem _physics.WakeBody(uid, body: physics); } + private void OnEmbeddableTermination(Entity container, ref EntityTerminatingEvent args) + { + DetachAllEmbedded(container); + } + + public void DetachAllEmbedded(Entity container) + { + foreach (var embedded in container.Comp.EmbeddedObjects) + { + if (!TryComp(embedded, out var embeddedComp)) + continue; + + EmbedDetach(embedded, embeddedComp); + } + } + private void PreventCollision(EntityUid uid, ProjectileComponent component, ref PreventCollideEvent args) { if (component.IgnoreShooter && (args.OtherEntity == component.Shooter || args.OtherEntity == component.Weapon)) diff --git a/Resources/Changelog/Changelog.yml b/Resources/Changelog/Changelog.yml index f99dca0583..7423194135 100644 --- a/Resources/Changelog/Changelog.yml +++ b/Resources/Changelog/Changelog.yml @@ -1,33 +1,4 @@ Entries: -- author: ElectroJr - changes: - - message: There is now a rate limit for most interactions. It should not be noticeable - most of the time, but may lead to mispredicts when spam-clicking. - type: Tweak - id: 7454 - time: '2024-09-29T12:19:00.0000000+00:00' - url: https://github.com/space-wizards/space-station-14/pull/32527 -- author: ArtisticRoomba - changes: - - message: HoS's energy shotgun is now correctly marked as grand theft contraband. - type: Tweak - id: 7455 - time: '2024-09-29T12:22:57.0000000+00:00' - url: https://github.com/space-wizards/space-station-14/pull/32521 -- author: Ilya246 - changes: - - message: Steel cost of conveyor belt assemblies halved. - type: Tweak - id: 7456 - time: '2024-09-29T15:18:09.0000000+00:00' - url: https://github.com/space-wizards/space-station-14/pull/32444 -- author: CuteMoonGod - changes: - - message: Fixed execution system showing character name instead of their identity - type: Fix - id: 7457 - time: '2024-09-29T22:36:47.0000000+00:00' - url: https://github.com/space-wizards/space-station-14/pull/32536 - author: drakewill-CRL changes: - message: Fix error in gas exchange processing order. @@ -3887,3 +3858,44 @@ id: 7953 time: '2025-02-13T22:35:59.0000000+00:00' url: https://github.com/space-wizards/space-station-14/pull/35083 +- author: keronshb + changes: + - message: The Supermatter Grenade has been renamed to Singularity Grenade. + type: Tweak + - message: The Singularity Grenade no longer has an explosion. + type: Remove + id: 7954 + time: '2025-02-14T15:01:41.0000000+00:00' + url: https://github.com/space-wizards/space-station-14/pull/35122 +- author: ArtisticRoomba + changes: + - message: The Solar Panels section of the Engineering Guidebook has been updated + to include information on upgrading solar panels, as well as how much each variant + produces. + type: Add + - message: The Tesla Engine section of the Engineering Guidebook has been slightly + reorganized to better outline the differences between Grounding Rods and Tesla + Coils, as well as tips on how to use them. + type: Tweak + - message: The Access Configurator section of the Engineering Guidebook has been + updated to reflect the recent addition of the Authentication Disruptor, as well + as how to fix access-broken doors and equipment the easy way. + type: Add + id: 7955 + time: '2025-02-15T03:59:19.0000000+00:00' + url: https://github.com/space-wizards/space-station-14/pull/34695 +- author: Tayrtahn + changes: + - message: Chickens and ducks now report hunger levels when examined. + type: Add + id: 7956 + time: '2025-02-15T04:29:41.0000000+00:00' + url: https://github.com/space-wizards/space-station-14/pull/35164 +- author: VerinSenpai + changes: + - message: Air alarm devices now return to their previous settings after a power + cycle. + type: Fix + id: 7957 + time: '2025-02-15T06:07:15.0000000+00:00' + url: https://github.com/space-wizards/space-station-14/pull/34887 diff --git a/Resources/Locale/en-US/_strings/animals/udder/udder-system.ftl b/Resources/Locale/en-US/_strings/animals/udder/udder-system.ftl index 959a4fef59..8479ae08bf 100644 --- a/Resources/Locale/en-US/_strings/animals/udder/udder-system.ftl +++ b/Resources/Locale/en-US/_strings/animals/udder/udder-system.ftl @@ -5,9 +5,3 @@ udder-system-success = You fill {THE($target)} with {$amount}u from the udder. udder-system-dry = The udder is dry. udder-system-verb-milk = Milk - -udder-system-examine-overfed = {CAPITALIZE(SUBJECT($entity))} looks stuffed! -udder-system-examine-okay = {CAPITALIZE(SUBJECT($entity))} looks content. -udder-system-examine-hungry = {CAPITALIZE(SUBJECT($entity))} looks hungry. -udder-system-examine-starved = {CAPITALIZE(SUBJECT($entity))} looks starved! -udder-system-examine-none = {CAPITALIZE(SUBJECT($entity))} seems not to get hungry. diff --git a/Resources/Locale/en-US/_strings/nutrition/components/examineable-hunger-component.ftl b/Resources/Locale/en-US/_strings/nutrition/components/examineable-hunger-component.ftl new file mode 100644 index 0000000000..d8d9963908 --- /dev/null +++ b/Resources/Locale/en-US/_strings/nutrition/components/examineable-hunger-component.ftl @@ -0,0 +1,5 @@ +examineable-hunger-component-examine-overfed = {CAPITALIZE(SUBJECT($entity))} {CONJUGATE-BASIC($entity, "look", "looks")} stuffed! +examineable-hunger-component-examine-okay = {CAPITALIZE(SUBJECT($entity))} {CONJUGATE-BASIC($entity, "look", "looks")} content. +examineable-hunger-component-examine-peckish = {CAPITALIZE(SUBJECT($entity))} {CONJUGATE-BASIC($entity, "look", "looks")} hungry. +examineable-hunger-component-examine-starving = {CAPITALIZE(SUBJECT($entity))} {CONJUGATE-BASIC($entity, "look", "looks")} starved! +examineable-hunger-component-examine-none = {CAPITALIZE(SUBJECT($entity))} {CONJUGATE-BASIC($entity, "seem", "seems")} not to get hungry. diff --git a/Resources/Locale/en-US/_strings/store/uplink-catalog.ftl b/Resources/Locale/en-US/_strings/store/uplink-catalog.ftl index 1e23762e08..2ff6c16f5a 100644 --- a/Resources/Locale/en-US/_strings/store/uplink-catalog.ftl +++ b/Resources/Locale/en-US/_strings/store/uplink-catalog.ftl @@ -42,11 +42,8 @@ uplink-smoke-grenade-desc = A grenade that releases a huge cloud of smoke, perfe uplink-mini-bomb-name = Minibomb uplink-mini-bomb-desc = A low-yield, high-impact precision sabotage explosive with a 5 second long fuse. Perfect for quickly destroying a machine, dead body, or whatever else needs to go. -uplink-cluster-mini-bomb-name = Cluster Minibomb -uplink-cluster-mini-bomb-desc = If you don't care about accuracy, then this choice is for you. - -uplink-supermatter-grenade-name = Supermatter Grenade -uplink-supermatter-grenade-desc = Grenade that simulates delamination of a suppermatter engine, generates powerful gravity well. Explosion comparable to a Mini Bomb. +uplink-singularity-grenade-name = Singularity Grenade +uplink-singularity-grenade-desc = Grenade that simulates the power of a singularity, generates powerful gravity well. uplink-whitehole-grenade-name = Whitehole Grenade uplink-whitehole-grenade-desc = Grenade that repulses everything around for about 10 seconds. Very useful in small rooms and for chasing someone. @@ -142,12 +139,6 @@ uplink-reinforcement-radio-nukeops-desc = Radio in a nuclear operative of extre uplink-reinforcement-radio-cyborg-assault-name = Syndicate Assault Cyborg Teleporter uplink-reinforcement-radio-cyborg-assault-desc = A lean, mean killing machine with access to an Energy Sword, LMG, Cryptographic Sequencer, and a Pinpointer. -uplink-mech-teleporter-heavy-name = Heavy Mech teleporter -uplink-mech-teleporter-heavy-desc = Contains Cybersan heavy armored mech with integrated chainsword, Ultra AC-2, LBX AC 10 "Scattershot", BRM-6 Missile Rack and P-X Tesla Cannon. - -uplink-mech-teleporter-assault-name = Assault Mech teleporter -uplink-mech-teleporter-assault-desc = Contains Cybersan lightly armored mech with integrated chainsword, LBX AC 10 "Scattershot", SRM-8 Light Missile Rack and P-X Tesla Cannon. - uplink-stealth-box-name = Stealth Box uplink-stealth-box-desc = A box outfitted with stealth technology. Sneak around unnoticed, but don't move too fast or you'll be revealed! @@ -240,39 +231,6 @@ uplink-meds-bundle-desc = An assortment of autoinjectors and premium medical equ uplink-ammo-bundle-name = Ammo Bundle uplink-ammo-bundle-desc = Reloading! Contains 4 magazines for the C-20r, 4 drums for the Bulldog, and 2 ammo boxes for the L6 SAW. -uplink-ammo-crate-ammokit-bundle-name = Syndicate super ammo bundle -uplink-ammo-crate-ammokit-bundle-desc = Reloading! Reloading! Reloading! Contains various ammo kit except for big gun. - -uplink-ammo-caselesskit-name = Caseless Ammo Kit -uplink-ammo-caselesskit-desc = Reloading! Contains 3 extended magazines and 3 base caseless magazine for the Siar-52. - -uplink-ammo-smgkit-name = SMG Ammo Kit -uplink-ammo-smgkit-desc = Reloading! Contains 8 magazines for the C-20r. - -uplink-ammo-smgincendiarykit-name = SMG incendiary Ammo Kit -uplink-ammo-smgincendiarykit-desc = Reloading! Contains 8 incendiary magazines for the C-20r. - -uplink-ammo-smguraniumkit-name = SMG uranium Ammo Kit -uplink-ammo-smguraniumkit-desc = Reloading! Contains 8 uranium magazines for the C-20r. - -uplink-ammo-shotgunkit-name = Shotgun Ammo Kit -uplink-ammo-shotgunkit-desc = Reloading! Contains 5 pellet magazines and 3 slug magazine for the Bulldog. - -uplink-ammo-shotgunincendiarykit-name = Shotgun incendiary Ammo Kit -uplink-ammo-shotgunincendiarykit-desc = Reloading! Contains 8 incendiary magazines for the Bulldog. - -uplink-ammo-shotgunuraniumkit-name = Shotgun uranium Ammo Kit -uplink-ammo-shotgunuraniumkit-desc = Reloading! Contains 8 uranium magazines for the Bulldog. - -uplink-ammo-lmgkit-name = LMG Ammo Kit -uplink-ammo-lmgkit-desc = Reloading! Contains 8 magazines for the L6 Saw or DL6902. - -uplink-ammo-lmgincendiarykit-name = LMG incendiary Ammo Kit -uplink-ammo-lmgincendiarykit-desc = Reloading! Contains 8 incendiary magazines for the L6 Saw or DL6902. - -uplink-ammo-lmguraniumkit-name = LMG uranium Ammo Kit -uplink-ammo-lmguraniumkit-desc = Reloading! Contains 8 uranium magazines for the L6 Saw or DL6902. - uplink-sniper-bundle-name = Sniper Bundle uplink-sniper-bundle-desc = An inconspicuous briefcase that contains a Hristov, 10 spare bullets and a convenient disguise. @@ -384,9 +342,6 @@ uplink-hardsuit-syndieelite-desc = An elite version of the blood-red hardsuit, w uplink-clothing-outer-hardsuit-juggernaut-name = Cybersun Juggernaut Suit uplink-clothing-outer-hardsuit-juggernaut-desc = Hyper resilient armor made of materials tested in the Tau chromosphere facility. The only thing that's going to be slowing you down is this suit... and tasers. -uplink-energy-dome-name = Personal energy dome -uplink-energy-dome-desc = A personal shield generator that protects the wearer from lasers and bullets but prevents from using ranged weapons himself. Comes with a small power cell. - # Misc uplink-cyberpen-name = Cybersun Pen uplink-cyberpen-desc = Cybersun's legal department pen, invaluable for forging documents and escaping prisons. Smells vaguely of hard-light and war profiteering. @@ -508,6 +463,3 @@ uplink-business-card-desc = A business card that you can give to someone to demo uplink-fake-mindshield-name = Fake Mindshield uplink-fake-mindshield-desc = A togglable implant capable of mimicking the same transmissions a real mindshield puts out when on, tricking capable Heads-up displays into thinking you have a mindshield (Nanotrasen brand implanter not provided.) - -uplink-syndicate-teleporter-name = Hand syndicate teleporter -uplink-syndicate-teleporter-desc = An experimental hand teleporting device. Teleports its owner forward in a small area. Be careful not to end up in the wall. diff --git a/Resources/Prototypes/Catalog/uplink_catalog.yml b/Resources/Prototypes/Catalog/uplink_catalog.yml index 65e7693ea6..33edec50aa 100644 --- a/Resources/Prototypes/Catalog/uplink_catalog.yml +++ b/Resources/Prototypes/Catalog/uplink_catalog.yml @@ -325,10 +325,10 @@ - UplinkExplosives - type: listing - id: UplinkSupermatterGrenade - name: uplink-supermatter-grenade-name - description: uplink-supermatter-grenade-desc - productEntity: SupermatterGrenade + id: UplinkSingularityGrenade + name: uplink-singularity-grenade-name + description: uplink-singularity-grenade-desc + productEntity: SingularityGrenade discountCategory: usualDiscounts discountDownTo: Telecrystal: 3 diff --git a/Resources/Prototypes/Entities/Mobs/NPCs/animals.yml b/Resources/Prototypes/Entities/Mobs/NPCs/animals.yml index fe04dfbbb9..ea0df4a534 100644 --- a/Resources/Prototypes/Entities/Mobs/NPCs/animals.yml +++ b/Resources/Prototypes/Entities/Mobs/NPCs/animals.yml @@ -238,6 +238,7 @@ - type: EggLayer eggSpawn: - id: FoodEgg + - type: ExamineableHunger - type: ReplacementAccent accent: chicken - type: SentienceTarget @@ -682,6 +683,7 @@ - type: EggLayer eggSpawn: - id: FoodEgg + - type: ExamineableHunger - type: ReplacementAccent accent: duck - type: SentienceTarget @@ -855,6 +857,7 @@ reagentId: Milk quantityPerUpdate: 25 growthDelay: 30 + - type: ExamineableHunger - type: Butcherable spawned: - id: FoodMeat @@ -1026,6 +1029,7 @@ reagentId: MilkGoat quantityPerUpdate: 25 growthDelay: 20 + - type: ExamineableHunger - type: Wooly - type: Food solution: wool diff --git a/Resources/Prototypes/Entities/Objects/Devices/flatpack.yml b/Resources/Prototypes/Entities/Objects/Devices/flatpack.yml index 4facfd91b3..fa23947c5c 100644 --- a/Resources/Prototypes/Entities/Objects/Devices/flatpack.yml +++ b/Resources/Prototypes/Entities/Objects/Devices/flatpack.yml @@ -83,8 +83,8 @@ - state: singularity-generator - type: GuideHelp guides: - - SingularityEngine - - Power + - SingularityEngine + - Power - type: entity parent: BaseFlatpack diff --git a/Resources/Prototypes/Entities/Objects/Weapons/Throwable/grenades.yml b/Resources/Prototypes/Entities/Objects/Weapons/Throwable/grenades.yml index c4e3a72045..09e1027f47 100644 --- a/Resources/Prototypes/Entities/Objects/Weapons/Throwable/grenades.yml +++ b/Resources/Prototypes/Entities/Objects/Weapons/Throwable/grenades.yml @@ -167,13 +167,13 @@ - type: entity - name: supermatter grenade - description: Grenade that simulates delamination of the supermatter engine, pulling things in a heap and exploding after some time. - parent: [GrenadeBase, BaseSyndicateContraband] - id: SupermatterGrenade + parent: [ GrenadeBase, BaseSyndicateContraband ] + id: SingularityGrenade + name: singularity grenade + description: Grenade that simulates the power of a singularity, pulling things in a heap. components: - type: Sprite - sprite: Objects/Weapons/Grenades/supermattergrenade.rsi + sprite: Objects/Weapons/Grenades/singularitygrenade.rsi - type: OnUseTimerTrigger delay: 3 beepInterval: 0.46 @@ -186,11 +186,6 @@ path: /Audio/Effects/Grenades/Supermatter/smbeep.ogg params: volume: -5 - - type: Explosive - explosionType: Default - totalIntensity: 200 - intensitySlope: 30 - maxIntensity: 120 - type: SoundOnTrigger removeOnTrigger: true sound: @@ -208,10 +203,10 @@ sound: path: /Audio/Effects/Grenades/Supermatter/supermatter_loop.ogg - type: GravityWell - maxRange: 8 - baseRadialAcceleration: 145 - baseTangentialAcceleration: 5 - gravPulsePeriod: 0.01 + maxRange: 10 + baseRadialAcceleration: 5 + baseTangentialAcceleration: .5 + gravPulsePeriod: 0.03 - type: SingularityDistortion intensity: 150 falloffPower: 1.5 @@ -227,12 +222,12 @@ path: /Audio/Effects/Grenades/Supermatter/supermatter_end.ogg params: volume: 5 - - type: ExplodeOnTrigger + - type: DeleteOnTrigger - type: entity name: whitehole grenade description: Grenade that repulses everything around for some time. - parent: SupermatterGrenade + parent: SingularityGrenade id: WhiteholeGrenade components: - type: Sprite diff --git a/Resources/Prototypes/Entities/Structures/Power/Generation/PA/particles.yml b/Resources/Prototypes/Entities/Structures/Power/Generation/PA/particles.yml index 0a36d91e38..6e55bfec5e 100644 --- a/Resources/Prototypes/Entities/Structures/Power/Generation/PA/particles.yml +++ b/Resources/Prototypes/Entities/Structures/Power/Generation/PA/particles.yml @@ -48,8 +48,8 @@ Level3: {state: particle3} - type: GuideHelp # why does this even have a guidebook link in the first place guides: - - SingularityTeslaEngine - - Power + - SingularityTeslaEngine + - Power - type: entity name: anti particles diff --git a/Resources/Prototypes/Entities/Structures/Power/Generation/ame.yml b/Resources/Prototypes/Entities/Structures/Power/Generation/ame.yml index 550dddc847..b3723252d3 100644 --- a/Resources/Prototypes/Entities/Structures/Power/Generation/ame.yml +++ b/Resources/Prototypes/Entities/Structures/Power/Generation/ame.yml @@ -204,8 +204,8 @@ node: ameShielding - type: GuideHelp guides: - - AME - - Power + - AME + - Power - type: Electrified onHandInteract: false onInteractUsing: false diff --git a/Resources/Prototypes/Entities/Structures/Power/Generation/teg.yml b/Resources/Prototypes/Entities/Structures/Power/Generation/teg.yml index 860462788b..e6e4b6b72b 100644 --- a/Resources/Prototypes/Entities/Structures/Power/Generation/teg.yml +++ b/Resources/Prototypes/Entities/Structures/Power/Generation/teg.yml @@ -98,8 +98,8 @@ path: /Audio/Ambience/Objects/vending_machine_hum.ogg - type: GuideHelp guides: - - TEG - - Power + - TEG + - Power - type: StealTarget stealGroup: Teg @@ -159,8 +159,8 @@ - type: Pullable - type: GuideHelp guides: - - TEG - - Power + - TEG + - Power # functionality - type: NodeContainer diff --git a/Resources/ServerInfo/Guidebook/Engineering/AccessConfigurator.xml b/Resources/ServerInfo/Guidebook/Engineering/AccessConfigurator.xml index c828aa51f4..a73bdde959 100644 --- a/Resources/ServerInfo/Guidebook/Engineering/AccessConfigurator.xml +++ b/Resources/ServerInfo/Guidebook/Engineering/AccessConfigurator.xml @@ -1,33 +1,50 @@ - # Конфигуратор доступов - Конфигуратор доступа - это инструмент, позволяющий установить, кто из персонала может использовать те или иные устройства. + # Access Configurator + The access configurator is a tool used to specify what type of personnel may use certain devices. - Настраиваемые устройства включают в себя шлюзы, защищённые ящики и шкафчики, а также аппараты с ограниченным доступом. - Примечание: Для удобства доступа к шлюзам можно настроить с помощью [color=#a4885c]Конфигуратора сетей[/color] (или мультитула). + Configurable devices can include airlocks, secure crates and lockers, as well as access restricted machines. + Note: Airlocks can have their accesses configured by the [color=#a4885c]Network Configurator[/color] (or multitool), for convenience. - ## Где найти конфигураторы доступов? - На каждой станции имеется до двух конфигураторов доступов. Первый находится у старшего инженера, а второй - у главы персонала. + ## Where to find Access Configurators + Each station is equipped with up to two access configurators. The first is in the possession of the Chief Engineer, while the second can be found with the Head of Personnel. - ## Как использовать конфигуратор доступов? - Чтобы изменить устройство с помощью конфигуратора доступов: - - Сначала воспользуйтесь конфигуратором доступа на выбранном устройстве, чтобы связать их вместе. При этом автоматически откроется интерфейс конфигуратора. - - Затем, вставьте ID-карту в конфигуратор доступов. - - Установите требования к доступу подключённого устройства. Добавление или удаление доступов зависит от наличия доступов у вставленной ID-карты. - - Любые внесённые изменения будут применены color=#a4885c]немедленно[/color] - просто извлеките ID-карту из конфигуратора доступа и закройте пользовательский интерфейс, когда закончите. + ## How to use the access configurator + To modify a device using the access configurator: + - First, use the access configurator on the chosen device to link them together. This will automatically open the configurator UI. + - Next, insert an ID card into the access configurator. + - Set the access requirements of the connected device. What requirements can be added or removed will depend upon the access privileges of the inserted ID card. + - Any changes made will be applied [color=#a4885c]immediately[/color] - simply eject the ID card from the access configurator and close the UI when you are done. - ## Ограничения на изменение доступа - В качестве меры предосторожности, вставленный идентификатор должен обладать [bold]всеми[/bold] доступами, которые в настоящее время активны на подключённом устройстве, чтобы изменить его. + ## Restrictions on changing access + As a safety precaution, the inserted ID must possess [bold]all[/bold] of the access requirements that are currently active on the connected device in order to modify it. - Например, устройство, к которому могут иметь доступ сотрудники научного и медицинского отделов, можно модифицировать только с помощью ID-карты, имеющей доступ к [color=#a4885c]обоим[/color] отделам. Конфигуратор доступов предупредит пользователя, если вставленная ID-карта не имеет достаточных привилегий для модификации устройства. + For example, a device which can be accessed by both 'Science' and 'Medical' personnel can only by modified using an ID card that has access to [color=#a4885c]both[/color] of these departments. + The access configurator will warn the user if the inserted ID card does not have sufficient privileges to modify a device. - Устройство без установленного доступа, например шлюз общего доступа, может быть изменено с помощью любой валидной ID-карты станции. + A device with no access requirements set, like a public access airlock, can be modified using any valid station ID card. - ## Ремонт поврежденных считывателей ID-карт - Агенты Синдиката могут попытаться взломать устройства с ограниченным доступом с помощью [color=#a4885c]Криптографического секвенсора (ЕМАГ)[/color]. Этот вредоносный инструмент полностью отключает все считыватели идентификационных карт, подключенные к устройству. + ## Repairing access-broken ID card readers + Syndicate agents may attempt to hack access-restricted devices through the use of an [color=#a4885c]Authentication Disruptor[/color]. + This nefarious tool will completely short out any ID card readers that are attached to the device, making it all-access. + + + + + + To repair the damage, you'll commonly need to partially deconstruct the device and reconstruct it. + This will reset the access requirements to defaults, allowing you to reconfigure the device as needed. + + ## Repairing access-broken Airlocks + Airlocks can be repaired multiple ways if their access requirements have been tampered with. + + If you have an Access Configurator, you can use a [color=#a4885c]Screwdriver[/color] to remove the airlock's maintenance panel, and then use the Access Configurator to reconfigure the airlock's access requirements. + No partial deconstruction is needed. + + If you don't have an Access Configurator, you can still fix the airlock by partially deconstructing it until you remove the door electronics, and then reconstructing it. + This will reset the airlock to the default access requirements it had at the start of the shift. - Инженеры должны будут частично демонтировать или перестроить пострадавшие устройства, а затем установить соответствующие доступы с помощью конфигуратора доступов (или конфигуратора сетей), чтобы восстановить ограничения. diff --git a/Resources/ServerInfo/Guidebook/Engineering/AirInjector.xml b/Resources/ServerInfo/Guidebook/Engineering/AirInjector.xml index 3c4027dcb3..54b9cccba8 100644 --- a/Resources/ServerInfo/Guidebook/Engineering/AirInjector.xml +++ b/Resources/ServerInfo/Guidebook/Engineering/AirInjector.xml @@ -4,12 +4,11 @@ - It is primarily used to force gasses into high-pressure rooms like the station's [textlink="gas storage rooms" link="GasMiningAndStorage"], or a burn chamber. + It is primarily used to force gasses into high-pressure rooms like the station's [textlink="gas storage rooms" link="GasMiningAndStorage"] or a burn chamber. The air injector does not require [textlink="power" link="Power"] to function. The air injector will inject gasses into the atmosphere it's exposed to until the atmosphere reaches [color=orange][protodata="GasOutletInjector" comp="GasOutletInjector" member="MaxPressure"/] kPa[/color]. The air injector's speed is proportional to the amount of gas in the injector. - The more gas in the injector, the faster it will inject gas into the exposed atmosphere. diff --git a/Resources/ServerInfo/Guidebook/Engineering/AirVent.xml b/Resources/ServerInfo/Guidebook/Engineering/AirVent.xml index d6b81fa19b..bbdd1a530a 100644 --- a/Resources/ServerInfo/Guidebook/Engineering/AirVent.xml +++ b/Resources/ServerInfo/Guidebook/Engineering/AirVent.xml @@ -53,8 +53,8 @@ - If the Internal bound pressure is set to 50 kPa, the air vent will not draw gas from the connected pipe if its pressure is below 50 kPa. When the vent is in siphoning mode: - - If the External bound pressure is set to 101.3 kPa, the air vent will siphon gases until the atmosphere reaches 101.3 kPa. - - If the Internal bound pressure is set to 50 kPa, the air vent will not push gases into the pipenet if its pressure is above 50 kPa. + - If the External bound pressure is set to 101.3 kPa, the air vent will siphon gasses until the atmosphere reaches 101.3 kPa. + - If the Internal bound pressure is set to 50 kPa, the air vent will not push gasses into the pipenet if its pressure is above 50 kPa. If you're still confused about PressureBounds, here's a simple way to think about it: - You can think of the External bound as the upper limit for the exposed atmosphere. "I will not pressurize the exposed atmosphere past this pressure, or draw from the atmosphere below this pressure." diff --git a/Resources/ServerInfo/Guidebook/Engineering/Fires.xml b/Resources/ServerInfo/Guidebook/Engineering/Fires.xml index ca728f1e8d..1afcca89f7 100644 --- a/Resources/ServerInfo/Guidebook/Engineering/Fires.xml +++ b/Resources/ServerInfo/Guidebook/Engineering/Fires.xml @@ -7,7 +7,7 @@ - They often make high-pressure and high-temperature gases, which can quickly spread throughout the station if firelocks or doors are opened carelessly, even if only for a moment. + They often make high-pressure and high-temperature gasses, which can quickly spread throughout the station if firelocks or doors are opened carelessly, even if only for a moment. If people are caught in a fire, they can quickly become incapacitated, die, and even ash, rendering them unrevivable. diff --git a/Resources/ServerInfo/Guidebook/Engineering/MixingAndFiltering.xml b/Resources/ServerInfo/Guidebook/Engineering/MixingAndFiltering.xml index 5814dd4b08..d38dd1bd99 100644 --- a/Resources/ServerInfo/Guidebook/Engineering/MixingAndFiltering.xml +++ b/Resources/ServerInfo/Guidebook/Engineering/MixingAndFiltering.xml @@ -1,13 +1,13 @@ # Mixing and Filtering - Gas mixers and filters are essential tools for manipulating the composition of gases within a [textlink="pipe network" link="PipeNetworks"]. + Gas mixers and filters are essential tools for manipulating the composition of gasses within a [textlink="pipe network" link="PipeNetworks"]. ## Gas Mixer - Gas mixers are used to combine gases in specific ratios within a [textlink="pipe network." link="PipeNetworks"] + Gas mixers are used to combine gasses in specific ratios within a [textlink="pipe network." link="PipeNetworks"] They are essential for creating controlled gas mixtures for various applications. Gas mixers have 3 connections: 2 inputs and 1 output, as shown below: @@ -20,7 +20,7 @@ - Gas mixers will still respect the requested gas mixture even if one of the input gases is not available. For example: + Gas mixers will still respect the requested gas mixture even if one of the input gasses is not available. For example: - If the requested mixture is 22% oxygen and 78% nitrogen, but there is no available oxygen, the mixer will not work until oxygen is available. - If oxygen is available, but at a pressure lower than required to create the proper mixture at the requested pressure, the mixer will still create the mixture, but the output will be at a lower pressure than requested. @@ -36,7 +36,7 @@ - Mixing oxygen and plasma for plasma burning to create Tritium ## Gas Filter - Gas filters are used to separate gases from a mixture within a [textlink="pipe network." link="PipeNetworks"] + Gas filters are used to separate gasses from a mixture within a [textlink="pipe network." link="PipeNetworks"] @@ -50,6 +50,6 @@ Gas filters will become blocked and will not filter gas if either output is blocked. Gas filters can be used in a variety of applications, for example: - - Filtering out unwanted gases from a [textlink="pipe network" link="PipeNetworks"] - - Separating specific gases for storage in a station's recyclernet + - Filtering out unwanted gasses from a [textlink="pipe network" link="PipeNetworks"] + - Separating specific gasses for storage in a station's recyclernet diff --git a/Resources/ServerInfo/Guidebook/Engineering/PortableGenerator.xml b/Resources/ServerInfo/Guidebook/Engineering/PortableGenerator.xml index 55a1e7fde5..d4eee0f597 100644 --- a/Resources/ServerInfo/Guidebook/Engineering/PortableGenerator.xml +++ b/Resources/ServerInfo/Guidebook/Engineering/PortableGenerator.xml @@ -22,7 +22,7 @@ Setup is incredibly easy: wrench it down above an [color=green]LV[/color] power cable, give it some welding fuel, and start it up. - Welding fuel is the only fuel source the J.R.P.A.C.M.A.N. can use, and it can be found in welding fuel tanks across the station, commonly in maintenance areas. + Welding fuel is the only fuel source the J.R.P.A.C.M.A.N. can use and it can be found in welding fuel tanks across the station, commonly in maintenance areas. # The Big Ones @@ -41,7 +41,7 @@ The S.U.P.E.R.P.A.C.M.A.N. boasts a larger power output (up to [color=orange][protodata="PortableGeneratorSuperPacman" comp="FuelGenerator" member="MaxTargetPower" format="N0"/] W[/color]) and longer runtime at maximum output, but scales down to lower outputs less efficiently. - They connect directly to [color=yellow]MV[/color] or [color=orange]HV[/color] [textlink="power cables" link="VoltageNetworks"], and are able to switch between them for flexibility. + They connect directly to [color=yellow]MV[/color] or [color=orange]HV[/color] [textlink="power cables" link="VoltageNetworks"] and are able to switch between them for flexibility. The S.U.P.E.R.P.A.C.M.A.N and P.A.C.M.A.N require uranium sheets and plasma sheets as fuel, respectively. diff --git a/Resources/ServerInfo/Guidebook/Engineering/PortableScrubber.xml b/Resources/ServerInfo/Guidebook/Engineering/PortableScrubber.xml index 287e591ff3..cfc82b9d72 100644 --- a/Resources/ServerInfo/Guidebook/Engineering/PortableScrubber.xml +++ b/Resources/ServerInfo/Guidebook/Engineering/PortableScrubber.xml @@ -5,16 +5,16 @@ - It is invaluable for quickly scrubbing unwanted gasses from a room when regular [textlink="scrubbers" link="AirScrubber"] are working too slow, or when a [textlink="scrubber" link="AirScrubber"] is not present. + It is invaluable for quickly removing unwanted gasses from a room when regular [textlink="scrubbers" link="AirScrubber"] are working too slow, or when a [textlink="scrubber" link="AirScrubber"] is not present. The portable scrubber requires [textlink="power" link="Power"] through a nearby [textlink="LV cable" link="VoltageNetworks"] to function. - The portable scrubber automatically starts scrubbing all non-breathable gasses from the room when it is bolted (wrenched) to the floor. + The portable scrubber automatically starts removing all non-breathable gasses from the room when it is bolted (wrenched) to the floor. - It will stop scrubbing when unbolted (unwrenched) from the floor, or when its internal volume is full. The scrubber has an internal capacity of [color=orange][protodata="PortableScrubber" comp="PortableScrubber" member="Volume"/] liters[/color]. + It will stop scrubbing when unbolted (unwrenched) from the floor or when its internal volume is full. The scrubber has an internal capacity of [color=orange][protodata="PortableScrubber" comp="PortableScrubber" member="Volume"/] liters[/color]. ## Dumping Waste and Storage - The scrubber's internal volume can be emptied by bolting (wrenching it) onto a [textlink="connector" link="GasCanisters"]. + The scrubber's internal volume can be emptied by anchoring (wrenching) onto a [textlink="connector" link="GasCanisters"]. Stations commonly have a dedicated emptying point to quickly transfer the waste from the scrubber to the station's wastenet. diff --git a/Resources/ServerInfo/Guidebook/Engineering/PowerStorage.xml b/Resources/ServerInfo/Guidebook/Engineering/PowerStorage.xml index efd0167eb1..729e1720e1 100644 --- a/Resources/ServerInfo/Guidebook/Engineering/PowerStorage.xml +++ b/Resources/ServerInfo/Guidebook/Engineering/PowerStorage.xml @@ -29,7 +29,7 @@ - SMESes can store [color=orange][protodata="SMESBasic" comp="Battery" member="MaxCharge" format="N0"/] J[/color] of energy, and can output a maximum [color=orange][protodata="SMESBasic" comp="PowerNetworkBattery" member="MaxSupply" format="N0"/] W[/color] of power. + SMESes can store [color=orange][protodata="SMESBasic" comp="Battery" member="MaxCharge" format="N0"/] J[/color] of energy and can output a maximum [color=orange][protodata="SMESBasic" comp="PowerNetworkBattery" member="MaxSupply" format="N0"/] W[/color] of power. If the battery is full, the SMES will pass through the power it receives from the input cable to the output cable. In the event of a power deficit, the SMES will ramp up to supplement the power draw. @@ -41,10 +41,10 @@ They're primarily used in station SMES arrays to store large amounts of power for the station's power grid. - They help to buy engineers time to setup power at roundstart, or to provide power in the event of a power deficit for extended periods of time. + They help to buy engineers time to setup power at roundstart or to provide power in the event of a power deficit for extended periods of time. - Advanced SMESes can store [color=orange][protodata="SMESAdvanced" comp="Battery" member="MaxCharge" format="N0"/] J[/color] of energy, and can output a maximum [color=orange][protodata="SMESAdvanced" comp="PowerNetworkBattery" member="MaxSupply" format="N0"/] W[/color] of power. + Advanced SMESes can store [color=orange][protodata="SMESAdvanced" comp="Battery" member="MaxCharge" format="N0"/] J[/color] of energy and can output a maximum [color=orange][protodata="SMESAdvanced" comp="PowerNetworkBattery" member="MaxSupply" format="N0"/] W[/color] of power. - Keep in mind that these aren't a magic solution to power deficits, and they can't store infinite energy. + Keep in mind that these aren't a magic solution to power deficits and they can't store infinite energy. A station load will drain these battries quickly if there is no power source partially supporting them. diff --git a/Resources/ServerInfo/Guidebook/Engineering/Pumps.xml b/Resources/ServerInfo/Guidebook/Engineering/Pumps.xml index 7b399b0e5a..3574e34a82 100644 --- a/Resources/ServerInfo/Guidebook/Engineering/Pumps.xml +++ b/Resources/ServerInfo/Guidebook/Engineering/Pumps.xml @@ -1,7 +1,7 @@  # Pumps Pumps are the primary way of actively moving gasses through a [textlink="pipenet." link="PipeNetworks"] - They take gas from one side, and push it to the other. + They take gas from one side and push it to the other. There are two different types of pumps: @@ -16,7 +16,7 @@ - Pumps cannot move gasses into pipes with pressures or volumes exceeding their [color=#a4885c]limit[/color]. This causes them to be [color=red]blocked[/color]. Pumps will show a colorful animation when they are doing work. - If they have no gas to pump, or they are blocked, they will show a blinking [color=red]red[/color] animation. + If they have no gas to pump or they are blocked, they will show a blinking [color=red]red[/color] animation. Pumps that are off, have no power, or are unanchored will show no animation. ## Pressure Pumps diff --git a/Resources/ServerInfo/Guidebook/Engineering/RTG.xml b/Resources/ServerInfo/Guidebook/Engineering/RTG.xml index 06280d5eef..d412251e24 100644 --- a/Resources/ServerInfo/Guidebook/Engineering/RTG.xml +++ b/Resources/ServerInfo/Guidebook/Engineering/RTG.xml @@ -9,7 +9,7 @@ They require no maintenance and are a reliable source of power, making them ideal for powering essential systems that need to be online at all times, like Telecoms, the AI, or the Crew Monitoring Server. - RTGs always generate [color=orange][protodata="GeneratorRTG" comp="PowerSupplier" member="MaxSupply" format="N0"/] W[/color] of power, and must be connected to an [color=orange]HV power[/color] [textlink="network" link="VoltageNetworks"] to function. + RTGs always generate [color=orange][protodata="GeneratorRTG" comp="PowerSupplier" member="MaxSupply" format="N0"/] W[/color] of power and must be connected to an [color=orange]HV power[/color] [textlink="network" link="VoltageNetworks"] to function. However, they're only accessible through salvage finding one on an expedition. Should they bring some in, make sure to thank them! diff --git a/Resources/ServerInfo/Guidebook/Engineering/Radiators.xml b/Resources/ServerInfo/Guidebook/Engineering/Radiators.xml index 0d3ec5f8f6..5471142270 100644 --- a/Resources/ServerInfo/Guidebook/Engineering/Radiators.xml +++ b/Resources/ServerInfo/Guidebook/Engineering/Radiators.xml @@ -21,6 +21,8 @@ If you're exchanging heat with space, you can only get as cold as space. To increase the efficiency of radiation, you can build radiators on lattice, which will allow the radiator to radiate more heat, compared to being directly attached to hull tile. + Gas will flow naturally through the radiator via differences in pressure, but you can use a gas pump to increase the flow rate. + Increasing the flow rate of gas through the radiator will increase the rate of heat exchange. diff --git a/Resources/ServerInfo/Guidebook/Engineering/Ramping.xml b/Resources/ServerInfo/Guidebook/Engineering/Ramping.xml index 6799353143..b7ef39c2a4 100644 --- a/Resources/ServerInfo/Guidebook/Engineering/Ramping.xml +++ b/Resources/ServerInfo/Guidebook/Engineering/Ramping.xml @@ -12,9 +12,9 @@ - After some seconds have passed, the generator will have ramped up to 100 kW of power, and the brownout will end. All devices are now satisfied with the power they are receiving. During a shift, this is most commonly observed when a generator runs out of fuel and suddenly stops producing power. - Suddenly, the grid is hit with a large deficit of power (as supply has fallen below demand), and all devices will experience a brownout until SMESes or other generators can ramp up to match the new demand. + Suddenly the grid is hit with a large deficit of power (as supply has fallen below demand), and all devices will experience a brownout until SMESes or other generators can ramp up to match the new demand. - This can also happen when a large power consuming device, or department, is reconnected to the grid. + This can also happen when a large power consuming device or department is reconnected to the grid. The sudden increase in power draw will cause a brownout until the generators can ramp up to match the new demand. diff --git a/Resources/ServerInfo/Guidebook/Engineering/Shuttlecraft.xml b/Resources/ServerInfo/Guidebook/Engineering/Shuttlecraft.xml index 8dc7cdf57d..27151a7565 100644 --- a/Resources/ServerInfo/Guidebook/Engineering/Shuttlecraft.xml +++ b/Resources/ServerInfo/Guidebook/Engineering/Shuttlecraft.xml @@ -46,7 +46,7 @@ - Head out into space with steel sheets and metal rods in hand, and click on the edge of the station to place lattice. + Head out into space with steel sheets and metal rods in hand and click on the edge of the station to place lattice. Place a line of lattice about 3-4 tiles away from the station, then start building a platform with lattice. @@ -54,7 +54,7 @@ Once you're finished constructing the base of your shuttle, you can use wirecutters to snip the connecting lattice that joins your new ship and the station. - This platform is considered a different grid from the station, and thus will not have any gravity or be held in place by a station anchor — it can move around freely. + This platform is considered a different grid from the station and thus will not have any gravity or be held in place by a station anchor — it can move around freely. You can expand your lattice platform further by clicking just off the edge with some rods in hand. diff --git a/Resources/ServerInfo/Guidebook/Engineering/SignalValve.xml b/Resources/ServerInfo/Guidebook/Engineering/SignalValve.xml index dd2991e56d..2b6b11dd58 100644 --- a/Resources/ServerInfo/Guidebook/Engineering/SignalValve.xml +++ b/Resources/ServerInfo/Guidebook/Engineering/SignalValve.xml @@ -5,13 +5,13 @@ - The signal valve is similar to the manual valve. Gas can flow unrestricted in both directions, and it can be operated manually. + The signal valve is similar to the manual valve. Gas can flow unrestricted in both directions and it can be operated manually. The signal valve has 3 [textlink="signal" link="Networking"] inputs, which can open, close, or toggle the valve. Signal valves can be used in a variety of applications, for example: - Remote control of valves in hazardous areas or areas inaccessible to crew - Convenient control over a valve in a hard-to-reach area - - Automation with other [textlink="signal-enabled" link="Networking"] machines and equipment such as [textlink="air alarms" link="AirAlarms"] and remote signallers + - Automation with other [textlink="signal-enabled" link="Networking"] machines and equipment such as [textlink="air alarms" link="AirAlarms"] and remote signalers diff --git a/Resources/ServerInfo/Guidebook/Engineering/SingularityEngine.xml b/Resources/ServerInfo/Guidebook/Engineering/SingularityEngine.xml index 6b4bb1780a..cca2bd2479 100644 --- a/Resources/ServerInfo/Guidebook/Engineering/SingularityEngine.xml +++ b/Resources/ServerInfo/Guidebook/Engineering/SingularityEngine.xml @@ -28,7 +28,7 @@ It is suggested to use a max size containment field for the singularity. Any smaller and the singularity may outgrow its field and escape. - Containment pylons should be arranged in a square, with 7 tiles of spacing between each pylon. + Containment field generators should be arranged in a square, with 7 tiles of spacing between each field generator. @@ -62,11 +62,11 @@ From here, you can refill the tank with plasma using a plasma canister and reinsert it into the collector. The maximum power the radiation collector can produce is determined by: - - The amount of radiation it is capturing (which is effectively the Singularity's power level), - - and the amount of plasma it has in its connected tank. + - The amount of radiation it is capturing (which is effectively the Singularity's power level) + - The amount of plasma it has in its connected tank - Over time, the collector will drain the tank of plasma, which reduces it's effective power output. - Eventually, the tank will be empty, and the collector will stop producing power. Be sure to refill the tank often! + Over time the collector will drain the tank of plasma, which reduces it's effective power output. + Eventually the tank will be empty, and the collector will stop producing power. Be sure to refill the tank often! ## Radiation Protection The singularity emits a massive amount of radiation, which can kill crew members who are not wearing proper protection. diff --git a/Resources/ServerInfo/Guidebook/Engineering/SolarPanels.xml b/Resources/ServerInfo/Guidebook/Engineering/SolarPanels.xml index d97d2a78d7..2873e0ae10 100644 --- a/Resources/ServerInfo/Guidebook/Engineering/SolarPanels.xml +++ b/Resources/ServerInfo/Guidebook/Engineering/SolarPanels.xml @@ -18,6 +18,8 @@ This is because the station is occluding some panels, so don't worry about it too much. Most stations have solar arrays placed at all sides of the station, so there's always some power being generated. + When directly facing the sun with no object occlusion, regular solar panels can generate [color=orange][protodata="SolarPanel" comp="SolarPanel" member="MaxSupply" format="N0"] W[/color] of power. + Solar panels generate [color=orange]HV power[/color], and as such require an [color=orange]HV wire[/color] running underneath them to connect to the station's power grid. ## Power Bridge @@ -81,17 +83,30 @@ ## Setting Up Solar Panel Arrays Solar panel arrays are commonly found on the exterior of the station, and are used to generate large amounts of free power for the station. - You can either spacewalk to them from the outside, or you can run a loop through the station's maintenance tunnels to reach them. + You can either spacewalk to them from the outside or you can run a loop through the station's maintenance tunnels to reach them. Solar array machine rooms are often marked with signs, and locked behind engineering access. - At the start of the shift, solar panels are misaligned and disconnected from the grid. + At the start of the shift solar panels are misaligned and disconnected from the grid. You will need to align them and connect them to the station's power grid to start generating power. This usually involves running a line of [color=orange]HV wire[/color] to the pannels from the solar array machine room, and then using a Solar Control Computer to align the panels. Solar array machine rooms frequently have a Solar Control Computer nearby, as well as an [textlink="SMES" link="PowerStorage"] to store the power generated by the panels for later use. + + ## Upgrading Solar Panels + Solar panels can be upgraded to increase their power output. + + + + + + + This can be done by replacing the glass sheets in the solar assembly with plasma or uranium glass sheets. + + Plasma and Uranium solar panels generate [color=orange][protodata="SolarPanelPlasma" comp="SolarPanel" member="MaxSupply" format="N0"] W[/color] and [color=orange][protodata="SolarPanelUranium" comp="SolarPanel" member="MaxSupply" format="N0"] W[/color] of power respectively. + They also are much tougher than regular solar panels. diff --git a/Resources/ServerInfo/Guidebook/Engineering/Spacing.xml b/Resources/ServerInfo/Guidebook/Engineering/Spacing.xml index 01097c10e2..6fb9565ad3 100644 --- a/Resources/ServerInfo/Guidebook/Engineering/Spacing.xml +++ b/Resources/ServerInfo/Guidebook/Engineering/Spacing.xml @@ -6,14 +6,14 @@ Fixing spacing generally follows two simple steps: - 1. Identify the area that has been spaced, and [textlink="seal the hole." link="ExpandingRepairingStation"] + 1. Identify the area that has been spaced and [textlink="seal the hole." link="ExpandingRepairingStation"] - If you're having trouble finding the hole, you can carefully listen for the flow of air rushing by you, if air is currently leaking to space. - Look for any holes underneath girders that may be hard to see. 2. Repressurize the area. - - [textlink="Air vents" link="AirVent"] enter pressure lockout when a room is spaced, so you'll need to override the vents to repressurize the area. You can do this by setting the connected [textlink="air alarm" link="AirAlarms"] to fill, or by using a screwdriver on a vent to manually override it temporarily. + - [textlink="Air vents" link="AirVent"] enter pressure lockout in order not to lose more air to spacing, so you'll need to override the vents to repressurize the area. You can do this by setting the connected [textlink="air alarm" link="AirAlarms"] to fill, or by using a screwdriver on a vent to manually override it temporarily. ## Things to Avoid - Keep in mind that while you have an infinite supply of [textlink="mined gas" link="GasMiningAndStorage"], it is not quick enough to fill up multiple rooms at once. Setting [textlink="air alarms" link="AirAlarms"] to fill first [italic]before[/italic] fixing the root problem will often lead to wasted time and gas. diff --git a/Resources/ServerInfo/Guidebook/Engineering/TEG.xml b/Resources/ServerInfo/Guidebook/Engineering/TEG.xml index f79ad044ce..04268e2db3 100644 --- a/Resources/ServerInfo/Guidebook/Engineering/TEG.xml +++ b/Resources/ServerInfo/Guidebook/Engineering/TEG.xml @@ -1,8 +1,8 @@ # Thermo-electric Engine (TEG) - The TEG generates power by exchanging heat between hot and cold gases. - On the station, hot gas is usually created by burning plasma, and an array of [textlink="heat-exchanging" link="Radiators"] pipes in space radiates away heat to cool down circulated gases. + The TEG generates power by exchanging heat between hot and cold gasses. + On the station, hot gas is usually created by burning plasma, and an array of [textlink="heat-exchanging" link="Radiators"] pipes in space radiates away heat to cool down circulated gasses. The TEG relies heavily on [textlink="atmospherics" link="Atmospherics"] [textlink="piping." link="Pipes"] The only truly special component about it is the generator core and circulators; the rest is all off-the-shelf atmospherics equipment. @@ -26,7 +26,7 @@ A pressure difference is required across the input and output, so pumps are generally provided and must be turned on. There is no preference for which side must be hot or cold, there need only be a difference in temperature between them. - The gases in the two "loops" are never mixed, [color=#a4885c]only energy is exchanged between them[/color]. + The gasses in the two "loops" are never mixed, [color=#a4885c]only energy is exchanged between them[/color]. The hot side will cool down, the cold side will heat up. ## The Pipes @@ -39,14 +39,14 @@ As I'm sure a wise person once said: the best way to make something hot is to light it on fire. Well, depending on context, that may not be very wise, but luckily your engineering department has just what's needed to do it wisely after all. - As stated above, there are many different layouts one can follow to heat up (or cool down) gases; this part of the guide will cover some common methods one will often see for the hot loop, involving [color=red]the Burn Chamber[/color]. + As stated above, there are many different layouts one can follow to heat up (or cool down) gasses; this part of the guide will cover some common methods one will often see for the hot loop, involving [color=red]the Burn Chamber[/color]. Side note: Plasma fires burn relatively cool compared to, for example, Tritium fires. It may be viable to extract Tritium from an extraction setup and react it with Oxygen to get truly hellish temperatures for power. ## The Burn Chamber - The burn chamber is the preferred method for heating up gases, and it is commonly used for other purposes too. (see: Tritium production) + The burn chamber is the preferred method for heating up gasses, and it is commonly used for other purposes too. (see: Tritium production) Most (if not all) stations have the burn chamber separated from the main atmospherics block by a 1-wide spaced grid, to prevent the flow of scalding hot gas to Atmos if there was a breach. The chambers consist of 3 important parts: - The [textlink="Air Injector" link="AirInjector"]/[textlink="Passive Vent" link="PassiveVent"] @@ -89,7 +89,7 @@ There is a notable difference between the [textlink="passive vent" link="PassiveVent"] and the [textlink="air injector" link="AirInjector"]; the [textlink="air injector" link="AirInjector"] can only keep injecting air up to [color=#a4885c]9MPa[/color], which can be reached very easily with a good burn. Ideally, switch out the [textlink="air injector" link="AirInjector"] for a [textlink="passive vent" link="PassiveVent"] connected to a volume pump. - The space vent (designated as a blast door to space on one side of the burn chamber) allows waste gases to be expelled and destroyed. + The space vent (designated as a blast door to space on one side of the burn chamber) allows waste gasses to be expelled and destroyed. Open this occasionally to keep the pressure under control, or to space excess input gas. You even might find the pneumatic valve useful for occasionally spacing the gas. @@ -221,14 +221,14 @@ ## In the Pursuit of Greater Efficiency Remember, Atmospherics is a science, and as such, it is always evolving. - The setups above are just the tip of the iceberg; there are many ways to setup the TEG, and many ways to improve upon the setups above. + The setups above are just the tip of the iceberg; there are many ways to setup the TEG and many ways to improve upon the setups above. [color=#a4885c]Experiment![/color] - Always seek to improve upon the designs you see, and always seek to improve upon the designs you make. - The TEG is a powerful tool, and with great power comes great responsibility. - Make sure to use it wisely, and make sure to use it well. + Always seek to improve upon the designs you see and always seek to improve upon the designs you make. + The TEG is a powerful tool and with great power comes great responsibility. + Make sure to use it wisely and make sure to use it well. - Space Station 14 atmospherics is a complex system, and the TEG is just one part of it. + Space Station 14 atmospherics is a complex system and the TEG is just one part of it. [bold]It's like a giant puzzle, so go out and solve it![/bold] diff --git a/Resources/ServerInfo/Guidebook/Engineering/TeslaEngine.xml b/Resources/ServerInfo/Guidebook/Engineering/TeslaEngine.xml index 859ec8317e..168f6253a8 100644 --- a/Resources/ServerInfo/Guidebook/Engineering/TeslaEngine.xml +++ b/Resources/ServerInfo/Guidebook/Engineering/TeslaEngine.xml @@ -37,30 +37,13 @@ The Tesla prefers to strike some objects more than others, such as Tesla Coils and Grounding Rods. - - - - - - - - - - - Because of this, strategically placing Tesla Coils and Grounding Rods around the lightning ball can help protect sensitive equipment from being struck, and prevent a loosed tesla (tesloose). - If the tesla can't find any Tesla Coils or Grounding Rods to strike first, it will strike almost any station object capable of being powered, such as Substations, APCs, and general machinery. Certain objects aren't struck by the tesla, such as batteries, lights, PDAs, and other handheld items. It will also strike mobs and crew members, shocking them. Make sure to wear insulated gloves before approaching it. - Note that only placing Tesla Coils won't be enough to prevent the tesla from striking sensitive equipment. - Grounding Rods should also be placed to help protect nearby Emitters from being struck. - - Engineers can also use grounding rods to protect sensitive equipment from lightning strikes, such as the Emitters powering the containment field generators. - - ## Power Generation + ## Tesla Coils Lightning strikes can be harnessed using Tesla Coils, which convert the lightning strikes into power for the station. @@ -69,16 +52,34 @@ - Tesla Coils should be placed around the lightning ball to capture the lightning strikes, as well as to prevent the lightning from striking sensitive equipment further away. + Tesla Coils should be placed around the lightning ball to capture the energy from lightning strikes, as well as to prevent the lightning from striking sensitive equipment further away. Tesla Coils take damage every time they are struck by lightning, and will eventually break if not repaired. Be sure to monitor the condition of the Tesla Coils and repair them as needed. - Grounding rods, in contrast, do not take damage from lightning strikes. - When lightning strikes Tesla Coils, they fill an internal battery, which is rapidly discharged to the grid. It will discharge this power even if there is no consumer to take it, so it's a good idea to have an SMES nearby to store the power and discharge it smoothly. + ## Grounding Rods + Grounding Rods help protect sensitive equipment from being struck and prevent a loosed tesla (tesloose). + + + + + + + + + + + + + + Grounding rods do not take damage from lightning strikes. + This makes them beneficial for forming a saftey net of grounding rods to rely on in case the tesla coils are damaged or destroyed. + + Engineers should use grounding rods to protect sensitive equipment from lightning strikes, such as the Emitters powering the containment field generators. + ## Loosed Tesla (Tesloose) If the lightning ball escapes the containment field, it is referred to as a loosed tesla, or tesloose. diff --git a/Resources/ServerInfo/Guidebook/Engineering/Thermomachines.xml b/Resources/ServerInfo/Guidebook/Engineering/Thermomachines.xml index 64035cde19..7d449f33ed 100644 --- a/Resources/ServerInfo/Guidebook/Engineering/Thermomachines.xml +++ b/Resources/ServerInfo/Guidebook/Engineering/Thermomachines.xml @@ -1,6 +1,6 @@  # Thermomachines - Thermomachines are devices that manipulate the temperature of gases within a [textlink="pipe network" link="PipeNetworks"] or exposed atmosphere. + Thermomachines are devices that manipulate the temperature of gasses within a [textlink="pipe network" link="PipeNetworks"] or exposed atmosphere. @@ -8,10 +8,10 @@ They are essential for maintaining the temperature of gasses for various applications. - All thermomachines work by using [textlink="electrical power" link="Power"] to preform work on the atmosphere to either heat or cool it. - The amount of work they do is directly related to the amount of power they consume. + All thermomachines work by using [textlink="electrical power" link="Power"] to heat or cool the atmosphere. + How much they heat/cool the atmosphere is directly related to the amount of power they consume. - Thermomachines also have an efficiency coefficient, which determines how much work they can do per unit of power consumed. + Thermomachines also have an efficiency coefficient, which determines how much they can heat or cool the atmosphere per unit of power consumed. To prevent overshooting their target value, thermomachines will scale back their heating/cooling power as they approach the target temperature. However, they will still consume the same amount of electrical power, even when idle. @@ -19,7 +19,7 @@ All thermomachines have a target temperature tolerance of [color=orange][protodata="GasThermoMachineFreezer" comp="GasThermoMachine" member="TemperatureTolerance"/] K[/color], meaning they will stop heating or cooling when the temperature is within [color=orange][protodata="GasThermoMachineFreezer" comp="GasThermoMachine" member="TemperatureTolerance"/] K[/color] of the target temperature. ## Space Heater - The space heater is a portable temperature control unit that preforms work to heat or cool gas in the atmosphere it's exposed to. + The space heater is a portable temperature control unit that heats or cools gas in the atmosphere it's exposed to. It's a simple and effective way to maintain the temperature of a room, without having to build a pipenet or other system. @@ -30,7 +30,7 @@ The space heater can cool to as low as [color=orange][protodata="SpaceHeater" comp="SpaceHeater" member="MinTemperature"/] K[/color] and heat to as high as [color=orange][protodata="SpaceHeater" comp="SpaceHeater" member="MaxTemperature"/] K[/color]. - It also has three power settings, which determine how much power it consumes and how much work it does. + It also has three power settings which determine how fast it heats or cools the atmosphere. Botany or science will often request these to maintain the temperature of their plants or department. @@ -44,7 +44,7 @@ They draw [color=orange][protodata="GasThermoMachineFreezer" comp="GasThermoMachine" member="HeatCapacity" format="N0"/] W[/color] of power and can heat or cool gas in a pipenet to as high as [color=orange][protodata="GasThermoMachineFreezer" comp="GasThermoMachine" member="MaxTemperature"/] K[/color] or as low as [color=orange][protodata="GasThermoMachineFreezer" comp="GasThermoMachine" member="MinTemperature"/] K[/color]. - You can swap the mode of the thermomachine by deconstructing it and using a screwdriver on its board. + You can swap the mode of the thermomachine by deconstructing it and using a screwdriver on its circuit board. The board can be printed at a circuit imprinter, commonly found in Science. diff --git a/Resources/ServerInfo/Guidebook/Engineering/WirePanels.xml b/Resources/ServerInfo/Guidebook/Engineering/WirePanels.xml index 6ac749120b..aa86e6e9b3 100644 --- a/Resources/ServerInfo/Guidebook/Engineering/WirePanels.xml +++ b/Resources/ServerInfo/Guidebook/Engineering/WirePanels.xml @@ -10,16 +10,16 @@ - From here, you can use wirecutters and a multitool to interact with the wiring. Note that interacting with the wiring often requires insulated gloves, as if the wire is live, you can get shocked. + From here you can use wirecutters and a multitool to interact with the wiring. Note that interacting with the wiring often requires insulated gloves, as if the wire is live, you can get shocked. - You can cut and mend wires using the wirecutters, and pulse wires using the multitool. + You can cut and mend wires using the wirecutters and pulse wires using the multitool. Cutting wires often completely disables or restores functionality to a device. - It may also trigger unintended functionality, like shocking people, dropping door bolts, or exploding. + It may also trigger unintended functionality like shocking people, dropping door bolts, or exploding. Pulsing wires can have a variety of effects, but oftentimes it either temporarily disables or enables functionality. diff --git a/Resources/Textures/Objects/Weapons/Grenades/supermattergrenade.rsi/icon.png b/Resources/Textures/Objects/Weapons/Grenades/singularitygrenade.rsi/icon.png similarity index 100% rename from Resources/Textures/Objects/Weapons/Grenades/supermattergrenade.rsi/icon.png rename to Resources/Textures/Objects/Weapons/Grenades/singularitygrenade.rsi/icon.png diff --git a/Resources/Textures/Objects/Weapons/Grenades/supermattergrenade.rsi/meta.json b/Resources/Textures/Objects/Weapons/Grenades/singularitygrenade.rsi/meta.json similarity index 100% rename from Resources/Textures/Objects/Weapons/Grenades/supermattergrenade.rsi/meta.json rename to Resources/Textures/Objects/Weapons/Grenades/singularitygrenade.rsi/meta.json diff --git a/Resources/Textures/Objects/Weapons/Grenades/supermattergrenade.rsi/primed.png b/Resources/Textures/Objects/Weapons/Grenades/singularitygrenade.rsi/primed.png similarity index 100% rename from Resources/Textures/Objects/Weapons/Grenades/supermattergrenade.rsi/primed.png rename to Resources/Textures/Objects/Weapons/Grenades/singularitygrenade.rsi/primed.png diff --git a/RobustToolbox b/RobustToolbox index fea592e1d5..55571ef5b1 160000 --- a/RobustToolbox +++ b/RobustToolbox @@ -1 +1 @@ -Subproject commit fea592e1d53b043bda73a66248576caa6e3f65dc +Subproject commit 55571ef5b131dfa6f00a38e71a356ded34ca5911