forked from SpaceStation14-Shenanigans/Monolith
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| d8ffa7c532 | |||
| 58653d954a |
@@ -8,11 +8,11 @@
|
||||
// SPDX-FileCopyrightText: 2022 Jezithyr
|
||||
// SPDX-FileCopyrightText: 2022 metalgearsloth
|
||||
// SPDX-FileCopyrightText: 2022 mirrorcult
|
||||
// SPDX-FileCopyrightText: 2025 Ilya246
|
||||
// SPDX-FileCopyrightText: 2025 bitcrushing
|
||||
//
|
||||
// SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
using System.Numerics;
|
||||
using Robust.Client.Graphics;
|
||||
using Robust.Client.UserInterface;
|
||||
using Robust.Shared.Prototypes;
|
||||
@@ -49,7 +49,7 @@ namespace Content.Client.Cooldown
|
||||
if (Progress >= 0f)
|
||||
{
|
||||
var hue = (5f / 18f) * lerp;
|
||||
color = Color.FromHsv(new Vector4(hue, 0.75f, 0.75f, 0.50f));
|
||||
color = Color.FromHsv((hue, 0.75f, 0.75f, 0.50f));
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -4,7 +4,6 @@
|
||||
//
|
||||
// SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
using System.Numerics;
|
||||
using Content.Shared.Disposal;
|
||||
using Content.Shared.Disposal.Unit;
|
||||
using Robust.Client.Graphics;
|
||||
|
||||
@@ -1,16 +1,16 @@
|
||||
// SPDX-FileCopyrightText: 2025 Ilya246
|
||||
// SPDX-FileCopyrightText: 2025 bitcrushing
|
||||
// SPDX-FileCopyrightText: 2025 chromiumboy
|
||||
//
|
||||
// SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
using System.Linq;
|
||||
using System.Numerics;
|
||||
using Content.Shared.Chat.TypingIndicator;
|
||||
using Content.Shared.Holopad;
|
||||
using Robust.Client.GameObjects;
|
||||
using Robust.Client.Graphics;
|
||||
using Robust.Shared.Prototypes;
|
||||
using Robust.Shared.Timing;
|
||||
using System.Linq;
|
||||
using DrawDepth = Content.Shared.DrawDepth.DrawDepth;
|
||||
|
||||
namespace Content.Client.Holopad;
|
||||
|
||||
@@ -7,12 +7,12 @@
|
||||
// SPDX-FileCopyrightText: 2023 metalgearsloth
|
||||
// SPDX-FileCopyrightText: 2024 Leon Friedrich
|
||||
// SPDX-FileCopyrightText: 2024 LordCarve
|
||||
// SPDX-FileCopyrightText: 2025 Ilya246
|
||||
// SPDX-FileCopyrightText: 2025 bitcrushing
|
||||
//
|
||||
// SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
using System.Linq;
|
||||
using System.Numerics;
|
||||
using Content.Client.Items.Systems;
|
||||
using Content.Shared.Clothing;
|
||||
using Content.Shared.Hands;
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
// SPDX-FileCopyrightText: 2023 Checkraze
|
||||
// SPDX-FileCopyrightText: 2024 checkraze
|
||||
// SPDX-FileCopyrightText: 2025 Ilya246
|
||||
// SPDX-FileCopyrightText: 2025 bitcrushing
|
||||
//
|
||||
// SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
using System.Numerics;
|
||||
using Content.Shared.Nyanotrasen.Kitchen.UI;
|
||||
using Robust.Client.AutoGenerated;
|
||||
using Robust.Client.GameObjects;
|
||||
|
||||
@@ -9,22 +9,22 @@
|
||||
// SPDX-FileCopyrightText: 2024 Nemanja
|
||||
// SPDX-FileCopyrightText: 2024 eoineoineoin
|
||||
// SPDX-FileCopyrightText: 2024 metalgearsloth
|
||||
// SPDX-FileCopyrightText: 2025 Ilya246
|
||||
// SPDX-FileCopyrightText: 2025 bitcrushing
|
||||
// SPDX-FileCopyrightText: 2025 starch
|
||||
//
|
||||
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
using Robust.Client.AutoGenerated;
|
||||
using Robust.Client.UserInterface.XAML;
|
||||
using Robust.Client.GameObjects;
|
||||
using Robust.Shared.IoC;
|
||||
using System;
|
||||
using System.Numerics;
|
||||
using Content.Client.Stylesheets;
|
||||
using Content.Shared.APC;
|
||||
using Robust.Client.AutoGenerated;
|
||||
using Robust.Client.GameObjects;
|
||||
using Robust.Client.Graphics;
|
||||
using Robust.Client.UserInterface.Controls;
|
||||
using Robust.Client.UserInterface.XAML;
|
||||
using Robust.Shared.GameObjects;
|
||||
using Robust.Shared.IoC;
|
||||
using Robust.Shared.Localization;
|
||||
using Robust.Shared.Maths;
|
||||
using FancyWindow = Content.Client.UserInterface.Controls.FancyWindow;
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
// SPDX-FileCopyrightText: 2024 Partmedia
|
||||
// SPDX-FileCopyrightText: 2024 Winkarst
|
||||
// SPDX-FileCopyrightText: 2024 metalgearsloth
|
||||
// SPDX-FileCopyrightText: 2025 Ilya246
|
||||
// SPDX-FileCopyrightText: 2025 bitcrushing
|
||||
// SPDX-FileCopyrightText: 2025 pathetic meowmeow
|
||||
//
|
||||
@@ -18,6 +19,7 @@ using Robust.Shared.Utility;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
using System.Linq;
|
||||
using System.Numerics;
|
||||
using Vector4 = Robust.Shared.Maths.Vector4;
|
||||
|
||||
namespace Content.Client.Power;
|
||||
|
||||
|
||||
@@ -2,11 +2,11 @@
|
||||
// SPDX-FileCopyrightText: 2023 Jezithyr
|
||||
// SPDX-FileCopyrightText: 2023 metalgearsloth
|
||||
// SPDX-FileCopyrightText: 2024 Pieter-Jan Briers
|
||||
// SPDX-FileCopyrightText: 2025 Ilya246
|
||||
// SPDX-FileCopyrightText: 2025 bitcrushing
|
||||
//
|
||||
// SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
using System.Numerics;
|
||||
using Content.Shared.Mobs;
|
||||
using Robust.Client.Graphics;
|
||||
using Robust.Client.Player;
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
// SPDX-FileCopyrightText: 2024 Nemanja
|
||||
// SPDX-FileCopyrightText: 2025 Ilya246
|
||||
// SPDX-FileCopyrightText: 2025 bitcrushing
|
||||
//
|
||||
// SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
using System.Numerics;
|
||||
using Content.Shared.CCVar;
|
||||
using Robust.Shared.Configuration;
|
||||
|
||||
@@ -49,7 +49,7 @@ public sealed class ProgressColorSystem : EntitySystem
|
||||
|
||||
// lerp
|
||||
var hue = 5f / 18f * progress;
|
||||
return Color.FromHsv(new Vector4(hue, 1f, 0.75f, 1f));
|
||||
return Color.FromHsv((hue, 1f, 0.75f, 1f));
|
||||
}
|
||||
|
||||
return InterpolateColorGaussian(Plasma, progress);
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
// SPDX-FileCopyrightText: 2024 deltanedas
|
||||
// SPDX-FileCopyrightText: 2024 exincore
|
||||
// SPDX-FileCopyrightText: 2025 Errant
|
||||
// SPDX-FileCopyrightText: 2025 Ilya246
|
||||
// SPDX-FileCopyrightText: 2025 bitcrushing
|
||||
// SPDX-FileCopyrightText: 2025 metalgearsloth
|
||||
//
|
||||
@@ -625,7 +626,7 @@ public sealed class StorageWindow : BaseWindow
|
||||
{
|
||||
marked.Add(cell);
|
||||
cell.ModulateSelfOverride = spotFree
|
||||
? Color.FromHsv(new Vector4(0.18f, 1 / spot, 0.5f / spot + 0.5f, 1f))
|
||||
? Color.FromHsv((0.18f, 1 / spot, 0.5f / spot + 0.5f, 1f))
|
||||
: Color.FromHex("#2222CC");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
// SPDX-FileCopyrightText: 2023 DrSmugleaf
|
||||
// SPDX-FileCopyrightText: 2023 Morb
|
||||
// SPDX-FileCopyrightText: 2024 Hannah Giovanna Dawson
|
||||
// SPDX-FileCopyrightText: 2025 Ilya246
|
||||
// SPDX-FileCopyrightText: 2025 bitcrushing
|
||||
//
|
||||
// SPDX-License-Identifier: MPL-2.0
|
||||
@@ -22,18 +23,18 @@ public sealed class PanicBunkerCommand : LocalizedCommands
|
||||
|
||||
public override void Execute(IConsoleShell shell, string argStr, string[] args)
|
||||
{
|
||||
var toggle = Toggle(CCVars.PanicBunkerEnabled, shell, args, _cfg, LocalizationManager);
|
||||
var toggle = Toggle(CCVars.PanicBunkerEnabled, shell, args, _cfg);
|
||||
if (toggle == null)
|
||||
return;
|
||||
|
||||
shell.WriteLine(Loc.GetString(toggle.Value ? "panicbunker-command-enabled" : "panicbunker-command-disabled"));
|
||||
}
|
||||
|
||||
public static bool? Toggle(CVarDef<bool> cvar, IConsoleShell shell, string[] args, IConfigurationManager config, ILocalizationManager loc)
|
||||
public static bool? Toggle(CVarDef<bool> cvar, IConsoleShell shell, string[] args, IConfigurationManager config)
|
||||
{
|
||||
if (args.Length > 1)
|
||||
{
|
||||
shell.WriteError(loc.GetString("shell-need-between-arguments", ("lower", 0), ("upper", 1)));
|
||||
shell.WriteError(Loc.GetString("shell-need-between-arguments",("lower", 0), ("upper", 1)));
|
||||
return null;
|
||||
}
|
||||
|
||||
@@ -46,7 +47,7 @@ public sealed class PanicBunkerCommand : LocalizedCommands
|
||||
|
||||
if (args.Length == 1 && !bool.TryParse(args[0], out enabled))
|
||||
{
|
||||
shell.WriteError(loc.GetString("shell-argument-must-be-boolean"));
|
||||
shell.WriteError(Loc.GetString("shell-argument-must-be-boolean"));
|
||||
return null;
|
||||
}
|
||||
|
||||
@@ -64,7 +65,7 @@ public sealed class PanicBunkerDisableWithAdminsCommand : LocalizedCommands
|
||||
|
||||
public override void Execute(IConsoleShell shell, string argStr, string[] args)
|
||||
{
|
||||
var toggle = PanicBunkerCommand.Toggle(CCVars.PanicBunkerDisableWithAdmins, shell, args, _cfg, LocalizationManager);
|
||||
var toggle = PanicBunkerCommand.Toggle(CCVars.PanicBunkerDisableWithAdmins, shell, args, _cfg);
|
||||
if (toggle == null)
|
||||
return;
|
||||
|
||||
@@ -84,7 +85,7 @@ public sealed class PanicBunkerEnableWithoutAdminsCommand : LocalizedCommands
|
||||
|
||||
public override void Execute(IConsoleShell shell, string argStr, string[] args)
|
||||
{
|
||||
var toggle = PanicBunkerCommand.Toggle(CCVars.PanicBunkerEnableWithoutAdmins, shell, args, _cfg, LocalizationManager);
|
||||
var toggle = PanicBunkerCommand.Toggle(CCVars.PanicBunkerEnableWithoutAdmins, shell, args, _cfg);
|
||||
if (toggle == null)
|
||||
return;
|
||||
|
||||
@@ -104,7 +105,7 @@ public sealed class PanicBunkerCountDeadminnedCommand : LocalizedCommands
|
||||
|
||||
public override void Execute(IConsoleShell shell, string argStr, string[] args)
|
||||
{
|
||||
var toggle = PanicBunkerCommand.Toggle(CCVars.PanicBunkerCountDeadminnedAdmins, shell, args, _cfg, LocalizationManager);
|
||||
var toggle = PanicBunkerCommand.Toggle(CCVars.PanicBunkerCountDeadminnedAdmins, shell, args, _cfg);
|
||||
if (toggle == null)
|
||||
return;
|
||||
|
||||
@@ -124,7 +125,7 @@ public sealed class PanicBunkerShowReasonCommand : LocalizedCommands
|
||||
|
||||
public override void Execute(IConsoleShell shell, string argStr, string[] args)
|
||||
{
|
||||
var toggle = PanicBunkerCommand.Toggle(CCVars.PanicBunkerShowReason, shell, args, _cfg, LocalizationManager);
|
||||
var toggle = PanicBunkerCommand.Toggle(CCVars.PanicBunkerShowReason, shell, args, _cfg);
|
||||
if (toggle == null)
|
||||
return;
|
||||
|
||||
|
||||
@@ -3,12 +3,12 @@
|
||||
// SPDX-FileCopyrightText: 2024 Errant
|
||||
// SPDX-FileCopyrightText: 2024 deathride58
|
||||
// SPDX-FileCopyrightText: 2025 Archylle
|
||||
// SPDX-FileCopyrightText: 2025 Ilya246
|
||||
// SPDX-FileCopyrightText: 2025 bitcrushing
|
||||
// SPDX-FileCopyrightText: 2025 inquisitor-star
|
||||
//
|
||||
// SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
using System.Numerics;
|
||||
using System.Security.Cryptography;
|
||||
using Microsoft.VisualBasic.CompilerServices;
|
||||
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
// SPDX-FileCopyrightText: 2023 DrSmugleaf
|
||||
// SPDX-FileCopyrightText: 2023 Kara
|
||||
// SPDX-FileCopyrightText: 2023 metalgearsloth
|
||||
// SPDX-FileCopyrightText: 2025 Ilya246
|
||||
// SPDX-FileCopyrightText: 2025 bitcrushing
|
||||
//
|
||||
// SPDX-License-Identifier: MPL-2.0
|
||||
@@ -16,7 +17,7 @@ namespace Content.Shared.Sound.Components;
|
||||
/// <summary>
|
||||
/// Simple sound emitter that emits sound on ActivateInWorld
|
||||
/// </summary>
|
||||
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
|
||||
[RegisterComponent, NetworkedComponent]
|
||||
public sealed partial class EmitSoundOnActivateComponent : BaseEmitSoundComponent
|
||||
{
|
||||
/// <summary>
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
// SPDX-FileCopyrightText: 2023 Leon Friedrich
|
||||
// SPDX-FileCopyrightText: 2023 metalgearsloth
|
||||
// SPDX-FileCopyrightText: 2024 Pieter-Jan Briers
|
||||
// SPDX-FileCopyrightText: 2025 Ilya246
|
||||
// SPDX-FileCopyrightText: 2025 bitcrushing
|
||||
//
|
||||
// SPDX-License-Identifier: MPL-2.0
|
||||
@@ -11,7 +12,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom;
|
||||
|
||||
namespace Content.Shared.Sound.Components;
|
||||
|
||||
[RegisterComponent, NetworkedComponent, AutoGenerateComponentPause, AutoGenerateComponentState]
|
||||
[RegisterComponent, NetworkedComponent, AutoGenerateComponentPause]
|
||||
public sealed partial class EmitSoundOnCollideComponent : BaseEmitSoundComponent
|
||||
{
|
||||
public static readonly TimeSpan CollideCooldown = TimeSpan.FromSeconds(0.2);
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
// SPDX-FileCopyrightText: 2023 DrSmugleaf
|
||||
// SPDX-FileCopyrightText: 2023 Kara
|
||||
// SPDX-FileCopyrightText: 2023 metalgearsloth
|
||||
// SPDX-FileCopyrightText: 2025 Ilya246
|
||||
// SPDX-FileCopyrightText: 2025 bitcrushing
|
||||
//
|
||||
// SPDX-License-Identifier: MPL-2.0
|
||||
@@ -16,7 +17,7 @@ namespace Content.Shared.Sound.Components;
|
||||
/// <summary>
|
||||
/// Simple sound emitter that emits sound on entity drop
|
||||
/// </summary>
|
||||
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
|
||||
[RegisterComponent, NetworkedComponent]
|
||||
public sealed partial class EmitSoundOnDropComponent : BaseEmitSoundComponent
|
||||
{
|
||||
}
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
// SPDX-FileCopyrightText: 2024 blueDev2
|
||||
// SPDX-FileCopyrightText: 2025 Ilya246
|
||||
// SPDX-FileCopyrightText: 2025 bitcrushing
|
||||
//
|
||||
// SPDX-License-Identifier: MPL-2.0
|
||||
@@ -12,7 +13,7 @@ namespace Content.Shared.Sound.Components;
|
||||
/// <summary>
|
||||
/// Whenever this item is used upon by an entity, with a tag or component within a whitelist, in the hand of a user, play a sound
|
||||
/// </summary>
|
||||
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
|
||||
[RegisterComponent, NetworkedComponent]
|
||||
public sealed partial class EmitSoundOnInteractUsingComponent : BaseEmitSoundComponent
|
||||
{
|
||||
[DataField(required: true)]
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
// SPDX-FileCopyrightText: 2023 DrSmugleaf
|
||||
// SPDX-FileCopyrightText: 2023 Kara
|
||||
// SPDX-FileCopyrightText: 2023 metalgearsloth
|
||||
// SPDX-FileCopyrightText: 2025 Ilya246
|
||||
// SPDX-FileCopyrightText: 2025 bitcrushing
|
||||
//
|
||||
// SPDX-License-Identifier: MPL-2.0
|
||||
@@ -15,7 +16,7 @@ namespace Content.Shared.Sound.Components;
|
||||
/// <summary>
|
||||
/// Simple sound emitter that emits sound on LandEvent
|
||||
/// </summary>
|
||||
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
|
||||
[RegisterComponent, NetworkedComponent]
|
||||
public sealed partial class EmitSoundOnLandComponent : BaseEmitSoundComponent
|
||||
{
|
||||
}
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
// SPDX-FileCopyrightText: 2023 DrSmugleaf
|
||||
// SPDX-FileCopyrightText: 2023 Kara
|
||||
// SPDX-FileCopyrightText: 2023 metalgearsloth
|
||||
// SPDX-FileCopyrightText: 2025 Ilya246
|
||||
// SPDX-FileCopyrightText: 2025 bitcrushing
|
||||
//
|
||||
// SPDX-License-Identifier: MPL-2.0
|
||||
@@ -13,7 +14,7 @@ namespace Content.Shared.Sound.Components;
|
||||
/// <summary>
|
||||
/// Simple sound emitter that emits sound on entity pickup
|
||||
/// </summary>
|
||||
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
|
||||
[RegisterComponent, NetworkedComponent]
|
||||
public sealed partial class EmitSoundOnPickupComponent : BaseEmitSoundComponent
|
||||
{
|
||||
}
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
// SPDX-FileCopyrightText: 2022 Alex Evgrashin
|
||||
// SPDX-FileCopyrightText: 2023 DrSmugleaf
|
||||
// SPDX-FileCopyrightText: 2023 Kara
|
||||
// SPDX-FileCopyrightText: 2025 Ilya246
|
||||
// SPDX-FileCopyrightText: 2025 bitcrushing
|
||||
//
|
||||
// SPDX-License-Identifier: MPL-2.0
|
||||
@@ -12,7 +13,7 @@ namespace Content.Shared.Sound.Components;
|
||||
/// <summary>
|
||||
/// Simple sound emitter that emits sound on entity spawn.
|
||||
/// </summary>
|
||||
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
|
||||
[RegisterComponent, NetworkedComponent]
|
||||
public sealed partial class EmitSoundOnSpawnComponent : BaseEmitSoundComponent
|
||||
{
|
||||
}
|
||||
|
||||
@@ -15,6 +15,7 @@
|
||||
// SPDX-FileCopyrightText: 2023 DrSmugleaf
|
||||
// SPDX-FileCopyrightText: 2023 Kara
|
||||
// SPDX-FileCopyrightText: 2023 metalgearsloth
|
||||
// SPDX-FileCopyrightText: 2025 Ilya246
|
||||
// SPDX-FileCopyrightText: 2025 bitcrushing
|
||||
//
|
||||
// SPDX-License-Identifier: MPL-2.0
|
||||
@@ -26,7 +27,7 @@ namespace Content.Shared.Sound.Components;
|
||||
/// <summary>
|
||||
/// Simple sound emitter that emits sound on ThrowEvent
|
||||
/// </summary>
|
||||
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
|
||||
[RegisterComponent, NetworkedComponent]
|
||||
public sealed partial class EmitSoundOnThrowComponent : BaseEmitSoundComponent
|
||||
{
|
||||
}
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
// SPDX-FileCopyrightText: 2023 Kara
|
||||
// SPDX-FileCopyrightText: 2024 MendaxxDev
|
||||
// SPDX-FileCopyrightText: 2024 metalgearsloth
|
||||
// SPDX-FileCopyrightText: 2025 Ilya246
|
||||
// SPDX-FileCopyrightText: 2025 bitcrushing
|
||||
//
|
||||
// SPDX-License-Identifier: MPL-2.0
|
||||
@@ -15,7 +16,7 @@ namespace Content.Shared.Sound.Components;
|
||||
/// <summary>
|
||||
/// Simple sound emitter that emits sound on AfterActivatableUIOpenEvent
|
||||
/// </summary>
|
||||
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
|
||||
[RegisterComponent, NetworkedComponent]
|
||||
public sealed partial class EmitSoundOnUIOpenComponent : BaseEmitSoundComponent
|
||||
{
|
||||
/// <summary>
|
||||
|
||||
@@ -15,6 +15,7 @@
|
||||
// SPDX-FileCopyrightText: 2023 DrSmugleaf
|
||||
// SPDX-FileCopyrightText: 2023 Kara
|
||||
// SPDX-FileCopyrightText: 2023 metalgearsloth
|
||||
// SPDX-FileCopyrightText: 2025 Ilya246
|
||||
// SPDX-FileCopyrightText: 2025 bitcrushing
|
||||
//
|
||||
// SPDX-License-Identifier: MPL-2.0
|
||||
@@ -26,7 +27,7 @@ namespace Content.Shared.Sound.Components;
|
||||
/// <summary>
|
||||
/// Simple sound emitter that emits sound on UseInHand
|
||||
/// </summary>
|
||||
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
|
||||
[RegisterComponent]
|
||||
public sealed partial class EmitSoundOnUseComponent : BaseEmitSoundComponent
|
||||
{
|
||||
/// <summary>
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
// SPDX-FileCopyrightText: 2023 metalgearsloth
|
||||
// SPDX-FileCopyrightText: 2025 Ilya246
|
||||
// SPDX-FileCopyrightText: 2025 bitcrushing
|
||||
//
|
||||
// SPDX-License-Identifier: MPL-2.0
|
||||
@@ -23,7 +24,7 @@ public sealed partial class ForceGunComponent : BaseForceGunComponent
|
||||
/// <summary>
|
||||
/// The entity currently tethered.
|
||||
/// </summary>
|
||||
[ViewVariables(VVAccess.ReadWrite), DataField("tethered")]
|
||||
[ViewVariables(VVAccess.ReadWrite), DataField("tethered"), AutoNetworkedField]
|
||||
public override EntityUid? Tethered { get; set; }
|
||||
|
||||
[ViewVariables(VVAccess.ReadWrite), DataField("soundLaunch")]
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
// SPDX-FileCopyrightText: 2023 metalgearsloth
|
||||
// SPDX-FileCopyrightText: 2025 Ilya246
|
||||
// SPDX-FileCopyrightText: 2025 bitcrushing
|
||||
//
|
||||
// SPDX-License-Identifier: MPL-2.0
|
||||
@@ -16,12 +17,12 @@ public sealed partial class TetherGunComponent : BaseForceGunComponent
|
||||
/// <summary>
|
||||
/// The entity the tethered target has a joint to.
|
||||
/// </summary>
|
||||
[DataField("tetherEntity")]
|
||||
[DataField("tetherEntity"), AutoNetworkedField]
|
||||
public override EntityUid? TetherEntity { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The entity currently tethered.
|
||||
/// </summary>
|
||||
[ViewVariables(VVAccess.ReadWrite), DataField("tethered")]
|
||||
[ViewVariables(VVAccess.ReadWrite), DataField("tethered"), AutoNetworkedField]
|
||||
public override EntityUid? Tethered { get; set; }
|
||||
}
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
// SPDX-FileCopyrightText: 2025 Ark
|
||||
// SPDX-FileCopyrightText: 2025 Aviu00
|
||||
// SPDX-FileCopyrightText: 2025 Ilya246
|
||||
// SPDX-FileCopyrightText: 2025 bitcrushing
|
||||
//
|
||||
// SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
using System.Numerics;
|
||||
using Content.Shared.Damage;
|
||||
using Content.Shared.Damage.Prototypes;
|
||||
using Content.Shared.Mobs.Components;
|
||||
@@ -74,13 +74,7 @@ public sealed class BackStabSystem : EntitySystem
|
||||
var userXform = Transform(user);
|
||||
var v1 = -_transform.GetWorldRotation(xform).ToWorldVec();
|
||||
var v2 = _transform.GetWorldPosition(userXform) - _transform.GetWorldPosition(xform);
|
||||
|
||||
// Mono Start - Removed vec3 method, calc using vec2 dot product and inverse cosine
|
||||
var v1Normalized = v1.Normalized();
|
||||
var v2Normalized = v2.Normalized();
|
||||
var dotProduct = Vector2.Dot(v1Normalized, v2Normalized);
|
||||
var angle = Math.Acos(Math.Clamp(dotProduct, -1.0, 1.0));
|
||||
// Mono End
|
||||
var angle = Vector3.CalculateAngle(new Vector3(v1), new Vector3(v2));
|
||||
|
||||
if (angle > tolerance.Theta)
|
||||
return false;
|
||||
|
||||
@@ -1,10 +1,9 @@
|
||||
// SPDX-FileCopyrightText: 2025 Ark
|
||||
// SPDX-FileCopyrightText: 2025 Ilya246
|
||||
// SPDX-FileCopyrightText: 2025 bitcrushing
|
||||
//
|
||||
// SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
using System.Numerics;
|
||||
|
||||
namespace Content.Shared._White.Overlays;
|
||||
|
||||
public abstract partial class BaseVisionOverlayComponent : Component
|
||||
|
||||
@@ -85,6 +85,7 @@
|
||||
# SPDX-FileCopyrightText: 2025 ArtisticRoomba
|
||||
# SPDX-FileCopyrightText: 2025 Blu
|
||||
# SPDX-FileCopyrightText: 2025 GreaseMonk
|
||||
# SPDX-FileCopyrightText: 2025 Ilya246
|
||||
# SPDX-FileCopyrightText: 2025 KieueCaprie
|
||||
# SPDX-FileCopyrightText: 2025 ScyronX
|
||||
# SPDX-FileCopyrightText: 2025 SlamBamActionman
|
||||
@@ -328,7 +329,7 @@
|
||||
state: pda-internmed
|
||||
- type: GuideHelp
|
||||
guides:
|
||||
- MedicalDoctor # Mono - No spaces in yaml allowed
|
||||
- Medical Doctor
|
||||
|
||||
- type: entity
|
||||
parent: BaseSecurityPDA
|
||||
@@ -873,7 +874,7 @@
|
||||
state: pda-medical
|
||||
- type: GuideHelp
|
||||
guides:
|
||||
- MedicalDoctor # Mono - space in yaml not allowed
|
||||
- Medical Doctor
|
||||
|
||||
- type: entity
|
||||
parent: MedicalPDA
|
||||
@@ -1456,13 +1457,6 @@
|
||||
components:
|
||||
- type: Pda
|
||||
id: CluwneIDCard
|
||||
penSlot:
|
||||
startingItem: CrayonGreen
|
||||
ejectSound: /Audio/Items/bikehorn.ogg
|
||||
priority: -1
|
||||
whitelist:
|
||||
tags:
|
||||
- Write
|
||||
- type: Appearance
|
||||
appearanceDataInit:
|
||||
enum.PdaVisuals.PdaType:
|
||||
@@ -1472,6 +1466,13 @@
|
||||
borderColor: "#1c8f4d"
|
||||
- type: Icon
|
||||
state: pda-cluwne
|
||||
penSlot:
|
||||
startingItem: CrayonGreen
|
||||
ejectSound: /Audio/Items/bikehorn.ogg
|
||||
priority: -1
|
||||
whitelist:
|
||||
tags:
|
||||
- Write
|
||||
- type: Unremoveable
|
||||
|
||||
- type: entity
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
# SPDX-FileCopyrightText: 2024 beck-thompson
|
||||
# SPDX-FileCopyrightText: 2024 deltanedas
|
||||
# SPDX-FileCopyrightText: 2024 themias
|
||||
# SPDX-FileCopyrightText: 2025 Ilya246
|
||||
# SPDX-FileCopyrightText: 2025 Redrover1760
|
||||
# SPDX-FileCopyrightText: 2025 ScyronX
|
||||
# SPDX-FileCopyrightText: 2025 bitcrushing
|
||||
@@ -58,7 +59,7 @@
|
||||
price: 30
|
||||
- type: GuideHelp
|
||||
guides:
|
||||
- MedicalDoctor # Mono - No spaces in yaml allowed
|
||||
- Medical Doctor
|
||||
- type: LanguageSpeaker # Einstein Engines - Language
|
||||
- type: LanguageKnowledge # Einstein Engines - Language
|
||||
speaks:
|
||||
|
||||
@@ -19,6 +19,7 @@
|
||||
# SPDX-FileCopyrightText: 2024 Whatstone
|
||||
# SPDX-FileCopyrightText: 2024 deltanedas
|
||||
# SPDX-FileCopyrightText: 2024 metalgearsloth
|
||||
# SPDX-FileCopyrightText: 2025 Ilya246
|
||||
# SPDX-FileCopyrightText: 2025 bitcrushing
|
||||
#
|
||||
# SPDX-License-Identifier: MPL-2.0
|
||||
@@ -63,7 +64,7 @@
|
||||
False: { visible: false }
|
||||
- type: GuideHelp
|
||||
guides:
|
||||
- MedicalDoctor # Mono - No spaces in yaml allowed
|
||||
- Medical Doctor
|
||||
- type: StaticPrice # Frontier
|
||||
price: 30 # Frontier
|
||||
|
||||
|
||||
@@ -25,6 +25,7 @@
|
||||
# SPDX-FileCopyrightText: 2024 Alice "Arimah" Heurlin
|
||||
# SPDX-FileCopyrightText: 2024 Dvir
|
||||
# SPDX-FileCopyrightText: 2024 Kara
|
||||
# SPDX-FileCopyrightText: 2025 Ilya246
|
||||
# SPDX-FileCopyrightText: 2025 bitcrushing
|
||||
#
|
||||
# SPDX-License-Identifier: MPL-2.0
|
||||
@@ -108,7 +109,7 @@
|
||||
node: medicalbed
|
||||
- type: GuideHelp
|
||||
guides:
|
||||
- MedicalDoctor # Mono - space in yaml not allowed
|
||||
- Medical Doctor
|
||||
|
||||
- type: entity
|
||||
parent: Bed
|
||||
|
||||
@@ -59,5 +59,5 @@
|
||||
- LowImpassable
|
||||
- type: GuideHelp
|
||||
guides:
|
||||
- MedicalDoctor # Mono - space in yaml not allowed
|
||||
- Medical Doctor
|
||||
- type: PowerSwitch
|
||||
|
||||
@@ -1008,7 +1008,7 @@
|
||||
color: "#9dc5c9"
|
||||
- type: GuideHelp
|
||||
guides:
|
||||
- MedicalDoctor # Mono - space in yaml not allowed
|
||||
- Medical Doctor
|
||||
|
||||
- type: entity
|
||||
parent: VendingMachine
|
||||
|
||||
@@ -1,24 +1,10 @@
|
||||
# SPDX-FileCopyrightText: 2023 CrigCrag
|
||||
# SPDX-FileCopyrightText: 2023 Hebi
|
||||
# SPDX-FileCopyrightText: 2023 Sir Winters
|
||||
# SPDX-FileCopyrightText: 2023 end
|
||||
# SPDX-FileCopyrightText: 2024 Leon Friedrich
|
||||
# SPDX-FileCopyrightText: 2024 Whatstone
|
||||
# SPDX-FileCopyrightText: 2024 f0x-n3rd
|
||||
# SPDX-FileCopyrightText: 2025 Ark
|
||||
# SPDX-FileCopyrightText: 2025 bitcrushing
|
||||
# SPDX-FileCopyrightText: 2025 dustylens
|
||||
# SPDX-FileCopyrightText: 2025 starch
|
||||
#
|
||||
# SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
- type: guideEntry
|
||||
id: Medical
|
||||
name: guide-entry-medical
|
||||
text: "/ServerInfo/Guidebook/Medical/Medical.xml"
|
||||
children:
|
||||
- DirectorOfCare # Frontier
|
||||
- MedicalDoctor # Mono - No spaces in yaml allowed
|
||||
- Medical Doctor
|
||||
- Chemist
|
||||
- Cloning
|
||||
- Cryogenics # Note: Frontier changes inside
|
||||
@@ -26,7 +12,7 @@
|
||||
- MedicalBounties # Frontier
|
||||
|
||||
- type: guideEntry
|
||||
id: MedicalDoctor # Mono - No spaces in yaml allowed
|
||||
id: Medical Doctor
|
||||
name: guide-entry-medicaldoctor
|
||||
text: "/ServerInfo/Guidebook/Medical/MedicalDoctor.xml"
|
||||
|
||||
@@ -75,24 +61,24 @@
|
||||
name: guide-entry-surgery
|
||||
text: "/ServerInfo/_Shitmed/Guidebook/Medical/Surgery.xml"
|
||||
children:
|
||||
- PartManipulation # Mono - No spaces in yaml allowed
|
||||
- OrganManipulation # Mono - No spaces in yaml allowed
|
||||
- UtilitySurgeries # Mono - No spaces in yaml allowed
|
||||
- Part Manipulation
|
||||
- Organ Manipulation
|
||||
- Utility Surgeries
|
||||
|
||||
- type: guideEntry
|
||||
id: PartManipulation # Mono - No spaces in yaml allowed
|
||||
id: Part Manipulation
|
||||
name: guide-entry-partmanipulation
|
||||
text: "/ServerInfo/_Shitmed/Guidebook/Medical/PartManipulation.xml"
|
||||
filterEnabled: true
|
||||
|
||||
- type: guideEntry
|
||||
id: OrganManipulation # Mono - No spaces in yaml allowed
|
||||
id: Organ Manipulation
|
||||
name: guide-entry-organmanipulation
|
||||
text: "/ServerInfo/_Shitmed/Guidebook/Medical/OrganManipulation.xml"
|
||||
filterEnabled: true
|
||||
|
||||
- type: guideEntry
|
||||
id: UtilitySurgeries # Mono - No spaces in yaml allowed
|
||||
id: Utility Surgeries
|
||||
name: guide-entry-utilitysurgeries
|
||||
text: "/ServerInfo/_Shitmed/Guidebook/Medical/UtilitySurgeries.xml"
|
||||
filterEnabled: true
|
||||
|
||||
@@ -1,9 +1,3 @@
|
||||
# SPDX-FileCopyrightText: 2025 Milon
|
||||
# SPDX-FileCopyrightText: 2025 Whatstone
|
||||
# SPDX-FileCopyrightText: 2025 bitcrushing
|
||||
#
|
||||
# SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
# region Base Deposits
|
||||
- type: entity
|
||||
id: BaseGasDeposit
|
||||
@@ -64,7 +58,7 @@
|
||||
- type: Sprite
|
||||
scale: 1.2, 1.2
|
||||
# endregion Base Deposits
|
||||
|
||||
|
||||
# region Standard Deposits
|
||||
- type: entity
|
||||
parent: BaseGasDeposit
|
||||
@@ -198,7 +192,7 @@
|
||||
parent:
|
||||
- BaseGasDepositVerySmall
|
||||
- GasDepositAmmonia
|
||||
id: GasDepositAmmoniaVerySmall # Mono - No spaces in yaml allowed
|
||||
id: GasDepositAmmoniaVery Small
|
||||
suffix: Ammonia, Very Small
|
||||
|
||||
- type: entity
|
||||
|
||||
+1
-1
Submodule RobustToolbox updated: 50534cc3bb...9a3ebd0f1d
+2
-3
@@ -38,9 +38,8 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Robust.Shared", "RobustTool
|
||||
EndProject
|
||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Content.IntegrationTests", "Content.IntegrationTests\Content.IntegrationTests.csproj", "{AB7AF1C8-30FF-4436-9DF0-179BE5B0C132}"
|
||||
EndProject
|
||||
# Commented out benchmarks from automatically compiling, InternalsVisibileTo not in RT until 267
|
||||
# Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Content.Benchmarks", "Content.Benchmarks\Content.Benchmarks.csproj", "{7AC832A1-2461-4EB5-AC26-26F6AFFA9E46}"
|
||||
# EndProject
|
||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Content.Benchmarks", "Content.Benchmarks\Content.Benchmarks.csproj", "{7AC832A1-2461-4EB5-AC26-26F6AFFA9E46}"
|
||||
EndProject
|
||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "OpenToolkit.GraphicsLibraryFramework", "RobustToolbox\OpenToolkit.GraphicsLibraryFramework\OpenToolkit.GraphicsLibraryFramework.csproj", "{4809F412-3132-419E-BF9D-CCF7593C3533}"
|
||||
EndProject
|
||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Content.Server.Database", "Content.Server.Database\Content.Server.Database.csproj", "{45C9B43F-305D-4651-9863-F6384CBC847F}"
|
||||
|
||||
Reference in New Issue
Block a user