Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
AwareFoxy committed Nov 22, 2024
1 parent ac36313 commit e66b04b
Show file tree
Hide file tree
Showing 187 changed files with 2,067 additions and 2,446 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using Content.Shared.MedicalScanner;
using Content.Shared.Backmen.Targeting;
using Content.Shared._CorvaxNext.Targeting;
using JetBrains.Annotations;
using Robust.Client.GameObjects;

Expand Down
18 changes: 9 additions & 9 deletions Content.Client/HealthAnalyzer/UI/HealthAnalyzerWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using Content.Shared.Atmos;
using Content.Client.UserInterface.Controls;
using Content.Shared.Alert;
using Content.Shared.Backmen.Targeting;
using Content.Shared._CorvaxNext.Targeting;
using Content.Shared.Damage;
using Content.Shared.Damage.Prototypes;
using Content.Shared.FixedPoint;
Expand Down Expand Up @@ -37,7 +37,7 @@ public sealed partial class HealthAnalyzerWindow : FancyWindow
private readonly IPrototypeManager _prototypes;
private readonly IResourceCache _cache;

// Start-backmen: surgery
// Start-_CorvaxNext: surgery
public event Action<TargetBodyPart?, EntityUid>? OnBodyPartSelected;
private EntityUid _spriteViewEntity;

Expand All @@ -47,7 +47,7 @@ public sealed partial class HealthAnalyzerWindow : FancyWindow
private readonly Dictionary<TargetBodyPart, TextureButton> _bodyPartControls;
private EntityUid? _target;

// End-backmen: surgery
// End-_CorvaxNext: surgery

public HealthAnalyzerWindow()
{
Expand All @@ -58,7 +58,7 @@ public HealthAnalyzerWindow()
_spriteSystem = _entityManager.System<SpriteSystem>();
_prototypes = dependencies.Resolve<IPrototypeManager>();
_cache = dependencies.Resolve<IResourceCache>();
// Start-backmen: surgery
// Start-_CorvaxNext: surgery
_bodyPartControls = new Dictionary<TargetBodyPart, TextureButton>
{
{ TargetBodyPart.Head, HeadButton },
Expand All @@ -80,7 +80,7 @@ public HealthAnalyzerWindow()
bodyPartButton.Value.OnPressed += _ => SetActiveBodyPart(bodyPartButton.Key, bodyPartButton.Value);
}
ReturnButton.OnPressed += _ => ResetBodyPart();
// End-backmen: surgery
// End-_CorvaxNext: surgery
}

public void SetActiveBodyPart(TargetBodyPart part, TextureButton button)
Expand Down Expand Up @@ -108,7 +108,7 @@ public void SetActiveButtons(bool isHumanoid)

public void Populate(HealthAnalyzerScannedUserMessage msg)
{
// Start-backmen: surgery
// Start-_CorvaxNext: surgery
_target = _entityManager.GetEntity(msg.TargetEntity);
EntityUid? part = msg.Part != null ? _entityManager.GetEntity(msg.Part.Value) : null;
var isPart = part != null;
Expand Down Expand Up @@ -222,7 +222,7 @@ public void Populate(HealthAnalyzerScannedUserMessage msg)
IReadOnlyDictionary<string, FixedPoint2> damagePerType = damageable.Damage.DamageDict;

DrawDiagnosticGroups(damageSortedGroups, damagePerType);
// End-backmen: surgery
// End-_CorvaxNext: surgery
}

private static string GetStatus(MobState mobState)
Expand Down Expand Up @@ -324,7 +324,7 @@ private BoxContainer CreateDiagnosticGroupTitle(string text, string id)
return rootContainer;
}

// Start-backmen: surgery
// Start-_CorvaxNext: surgery
/// <summary>
/// Sets up the Body Doll using Alert Entity to use in Health Analyzer.
/// </summary>
Expand Down Expand Up @@ -358,6 +358,6 @@ private BoxContainer CreateDiagnosticGroupTitle(string text, string id)
}
return _spriteViewEntity;
}
// End-backmen: surgery
// End-_CorvaxNext: surgery
}
}
2 changes: 1 addition & 1 deletion Content.Client/Inventory/ClientInventorySystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
using Content.Shared.Inventory;
using Content.Shared.Inventory.Events;
using Content.Shared.Storage;
using Content.Shared.Backmen.Targeting;
using Content.Shared._CorvaxNext.Targeting;
using JetBrains.Annotations;
using Robust.Client.Player;
using Robust.Client.UserInterface;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
xmlns:hotbar="clr-namespace:Content.Client.UserInterface.Systems.Hotbar.Widgets"
xmlns:controls="clr-namespace:Content.Client.UserInterface.Controls"
xmlns:inventory="clr-namespace:Content.Client.UserInterface.Systems.Inventory.Widgets"
xmlns:targeting="clr-namespace:Content.Client.Backmen.UserInterface.Systems.Targeting.Widgets"
xmlns:targeting="clr-namespace:Content.Client._CorvaxNext.UserInterface.Systems.Targeting.Widgets"
Name="DefaultHud"
VerticalExpand="False"
VerticalAlignment="Bottom"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
xmlns:controls="clr-namespace:Content.Client.UserInterface.Controls"
xmlns:graphics="clr-namespace:Robust.Client.Graphics;assembly=Robust.Client"
xmlns:inventory="clr-namespace:Content.Client.UserInterface.Systems.Inventory.Widgets"
xmlns:targeting="clr-namespace:Content.Client.Backmen.UserInterface.Systems.Targeting.Widgets"
xmlns:targeting="clr-namespace:Content.Client._CorvaxNext.UserInterface.Systems.Targeting.Widgets"
Name="SeparatedChatHud"
VerticalExpand="False"
VerticalAlignment="Bottom"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<widgets:AlertsUI xmlns="https://spacestation14.io"
xmlns:widgets="clr-namespace:Content.Client.UserInterface.Systems.Alerts.Widgets"
xmlns:partStatus="clr-namespace:Content.Client.Backmen.UserInterface.Systems.PartStatus.Widgets"
xmlns:partStatus="clr-namespace:Content.Client._CorvaxNext.UserInterface.Systems.PartStatus.Widgets"
MinSize="64 64">
<GridContainer Columns="1" HorizontalAlignment="Right" VerticalAlignment="Top">
<PanelContainer >
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Content.Client.Backmen.Body.Components;
namespace Content.Client._CorvaxNext.Body.Components;

[RegisterComponent]
public sealed partial class BrainComponent : Component;
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Content.Client.Backmen.Body.Components;
namespace Content.Client._CorvaxNext.Body.Components;

[RegisterComponent]
public sealed partial class LungComponent : Component;
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Content.Client.Backmen.Body.Components;
namespace Content.Client._CorvaxNext.Body.Components;

[RegisterComponent]
public sealed partial class StomachComponent : Component;
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Content.Client.Xenonids.UI;
using Content.Client.Administration.UI.CustomControls;
using Content.Shared.Backmen.Surgery;
using Content.Shared._CorvaxNext.Surgery;
using Content.Shared.Body.Components;
using Content.Shared.Body.Part;
using JetBrains.Annotations;
Expand All @@ -9,7 +9,7 @@
using Robust.Shared.Prototypes;
using Robust.Shared.Utility;

namespace Content.Client.Backmen.Surgery;
namespace Content.Client._CorvaxNext.Surgery;

[UsedImplicitly]
public sealed class SurgeryBui : BoundUserInterface
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<surgery:SurgeryStepButton
xmlns="https://spacestation14.io"
xmlns:surgery="clr-namespace:Content.Client.Backmen.Surgery">
xmlns:surgery="clr-namespace:Content.Client._CorvaxNext.Surgery">
</surgery:SurgeryStepButton>
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using Robust.Client.AutoGenerated;
using Robust.Client.UserInterface.XAML;

namespace Content.Client.Backmen.Surgery;
namespace Content.Client._CorvaxNext.Surgery;

[GenerateTypedNameReferences]
public sealed partial class SurgeryStepButton : XenoChoiceControl
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Content.Shared.Backmen.Surgery;
using Content.Shared._CorvaxNext.Surgery;

namespace Content.Client.Backmen.Surgery;
namespace Content.Client._CorvaxNext.Surgery;

public sealed class SurgerySystem : SharedSurgerySystem
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<controls:SurgeryWindow
xmlns="https://spacestation14.io"
xmlns:controls="clr-namespace:Content.Client.Backmen.Surgery"
xmlns:controls="clr-namespace:Content.Client._CorvaxNext.Surgery"
xmlns:cc="clr-namespace:Content.Client.Administration.UI.CustomControls"
xmlns:graphics="clr-namespace:Robust.Client.Graphics;assembly=Robust.Client"
MinSize="400 400">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using Robust.Client.UserInterface.CustomControls;
using Robust.Client.UserInterface.XAML;

namespace Content.Client.Backmen.Surgery;
namespace Content.Client._CorvaxNext.Surgery;

[GenerateTypedNameReferences]
public sealed partial class SurgeryWindow : DefaultWindow
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
using Content.Shared.Backmen.Targeting;
using Content.Shared._CorvaxNext.Targeting;
using Content.Shared.Input;
using Robust.Client.Player;
using Robust.Shared.Input.Binding;
using Robust.Shared.Player;

namespace Content.Client.Backmen.Targeting;
namespace Content.Client._CorvaxNext.Targeting;
public sealed class TargetingSystem : SharedTargetingSystem
{
[Dependency] private readonly IPlayerManager _playerManager = default!;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
using Content.Client.Backmen.UserInterface.Systems.PartStatus.Widgets;
using Content.Client._CorvaxNext.UserInterface.Systems.PartStatus.Widgets;
using Content.Client.Gameplay;
using Content.Shared.Backmen.Targeting;
using Content.Client.Backmen.Targeting;
using Content.Shared._CorvaxNext.Targeting;
using Content.Client._CorvaxNext.Targeting;
using Robust.Client.GameObjects;
using Robust.Client.UserInterface.Controllers;
using Robust.Shared.Utility;
using Robust.Client.Graphics;

namespace Content.Client.Backmen.UserInterface.Systems.PartStatus;
namespace Content.Client._CorvaxNext.UserInterface.Systems.PartStatus;

public sealed class PartStatusUIController : UIController, IOnStateEntered<GameplayState>, IOnSystemChanged<TargetingSystem>
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
xmlns="https://spacestation14.io"
xmlns:gfx="clr-namespace:Robust.Client.Graphics;assembly=Robust.Client"
xmlns:controls="clr-namespace:Content.Client.UserInterface.Controls"
xmlns:widgets="clr-namespace:Content.Client.Backmen.UserInterface.Systems.PartStatus.Widgets"
xmlns:widgets="clr-namespace:Content.Client._CorvaxNext.UserInterface.Systems.PartStatus.Widgets"
Name="PartStatusIndicator"
VerticalAlignment="Center"
HorizontalAlignment="Center">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
using Content.Shared.Backmen.Targeting;
using Content.Shared._CorvaxNext.Targeting;
using Robust.Client.AutoGenerated;
using Robust.Client.UserInterface.Controls;
using Robust.Client.UserInterface.XAML;
using Robust.Shared.Utility;

namespace Content.Client.Backmen.UserInterface.Systems.PartStatus.Widgets;
namespace Content.Client._CorvaxNext.UserInterface.Systems.PartStatus.Widgets;

[GenerateTypedNameReferences]
public sealed partial class PartStatusControl : UIWidget
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
using Content.Client.Backmen.UserInterface.Systems.Targeting.Widgets;
using Content.Client._CorvaxNext.UserInterface.Systems.Targeting.Widgets;
using Content.Client.Gameplay;
using Content.Client.Backmen.Targeting;
using Content.Shared.Backmen.Targeting;
using Content.Client._CorvaxNext.Targeting;
using Content.Shared._CorvaxNext.Targeting;
using Robust.Client.UserInterface.Controllers;
using Robust.Client.Player;

namespace Content.Client.Backmen.UserInterface.Systems.Targeting;
namespace Content.Client._CorvaxNext.UserInterface.Systems.Targeting;

public sealed class TargetingUIController : UIController, IOnStateEntered<GameplayState>, IOnSystemChanged<TargetingSystem>
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
xmlns="https://spacestation14.io"
xmlns:gfx="clr-namespace:Robust.Client.Graphics;assembly=Robust.Client"
xmlns:controls="clr-namespace:Content.Client.UserInterface.Controls"
xmlns:widgets="clr-namespace:Content.Client.Backmen.UserInterface.Systems.Targeting.Widgets"
xmlns:widgets="clr-namespace:Content.Client._CorvaxNext.UserInterface.Systems.Targeting.Widgets"
Name="TargetingButton"
VerticalExpand="True"
VerticalAlignment="Bottom"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
using System.Linq;
using Content.Shared.Backmen.Targeting;
using Content.Shared._CorvaxNext.Targeting;
using Robust.Client.AutoGenerated;
using Robust.Client.Graphics;
using Robust.Client.UserInterface.Controls;
using Robust.Client.UserInterface.XAML;

namespace Content.Client.Backmen.UserInterface.Systems.Targeting.Widgets;
namespace Content.Client._CorvaxNext.UserInterface.Systems.Targeting.Widgets;

[GenerateTypedNameReferences]
public sealed partial class TargetingControl : UIWidget
Expand Down
4 changes: 2 additions & 2 deletions Content.Server/Atmos/EntitySystems/BarotraumaSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ public override void Update(float frameTime)
if (pressure <= Atmospherics.HazardLowPressure)
{
// Deal damage and ignore resistances. Resistance to pressure damage should be done via pressure protection gear.
_damageableSystem.TryChangeDamage(uid, barotrauma.Damage * Atmospherics.LowPressureDamage, true, false, canSever: false); // backmen
_damageableSystem.TryChangeDamage(uid, barotrauma.Damage * Atmospherics.LowPressureDamage, true, false, canSever: false); // _CorvaxNext
if (!barotrauma.TakingDamage)
{
barotrauma.TakingDamage = true;
Expand All @@ -251,7 +251,7 @@ public override void Update(float frameTime)
var damageScale = MathF.Min(((pressure / Atmospherics.HazardHighPressure) - 1) * Atmospherics.PressureDamageCoefficient, Atmospherics.MaxHighPressureDamage);

// Deal damage and ignore resistances. Resistance to pressure damage should be done via pressure protection gear.
_damageableSystem.TryChangeDamage(uid, barotrauma.Damage * damageScale, true, false, canSever: false); // backmen
_damageableSystem.TryChangeDamage(uid, barotrauma.Damage * damageScale, true, false, canSever: false); // _CorvaxNext

if (!barotrauma.TakingDamage)
{
Expand Down
8 changes: 4 additions & 4 deletions Content.Server/Body/Systems/BodySystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,18 +33,18 @@ public override void Initialize()

SubscribeLocalEvent<BodyComponent, MoveInputEvent>(OnRelayMoveInput);
SubscribeLocalEvent<BodyComponent, ApplyMetabolicMultiplierEvent>(OnApplyMetabolicMultiplier);
SubscribeLocalEvent<BodyPartComponent, AttemptEntityGibEvent>(OnGibTorsoAttempt); // backmen: surgery
SubscribeLocalEvent<BodyPartComponent, AttemptEntityGibEvent>(OnGibTorsoAttempt); // _CorvaxNext: surgery
}

// start-backmen: surgery
// start-_CorvaxNext: surgery
private void OnGibTorsoAttempt(Entity<BodyPartComponent> ent, ref AttemptEntityGibEvent args)
{
if (ent.Comp.PartType == BodyPartType.Torso)
{
args.GibType = GibType.Skip;
}
}
// end-backmen: surgery
// end-_CorvaxNext: surgery

private void OnRelayMoveInput(Entity<BodyComponent> ent, ref MoveInputEvent args)
{
Expand Down Expand Up @@ -190,5 +190,5 @@ protected override void RemoveBodyMarkings(EntityUid target, BodyPartAppearanceC

Dirty(target, bodyAppearance);
}
// end-backmen: surgery
// end-_CorvaxNext: surgery
}
6 changes: 3 additions & 3 deletions Content.Server/Body/Systems/BrainSystem.cs
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
using Content.Server.Body.Components;
using Content.Server.Ghost.Components;
using Content.Shared.Backmen.Surgery.Body;
using Content.Shared._CorvaxNext.Surgery.Body;
using Content.Shared.Body.Components;
using Content.Shared.Body.Systems;
using Content.Shared.Body.Events;
using Content.Shared.Body.Organ;
using Content.Server.Backmen.DelayedDeath;
using Content.Shared.Backmen.Surgery.Body.Organs;
using Content.Server._CorvaxNext.DelayedDeath;
using Content.Shared._CorvaxNext.Surgery.Body.Organs;
using Content.Shared.Mind;
using Content.Shared.Mind.Components;
using Content.Shared.Pointing;
Expand Down
2 changes: 1 addition & 1 deletion Content.Server/Body/Systems/RespiratorSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
using Content.Shared.Database;
using Content.Shared.EntityEffects;
using Content.Shared.Mobs.Systems;
using Content.Shared.Backmen.Surgery.Body;
using Content.Shared._CorvaxNext.Surgery.Body;
using JetBrains.Annotations;
using Robust.Shared.Prototypes;
using Robust.Shared.Timing;
Expand Down
6 changes: 3 additions & 3 deletions Content.Server/EntityEffects/Effects/HealthChange.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
using Robust.Shared.Prototypes;
using System.Linq;
using System.Text.Json.Serialization;
using Content.Shared.Backmen.Targeting;
using Content.Shared._CorvaxNext.Targeting;

namespace Content.Server.EntityEffects.Effects
{
Expand Down Expand Up @@ -126,11 +126,11 @@ public override void Effect(EntityEffectBaseArgs args)
Damage * scale,
IgnoreResistances,
interruptsDoAfters: false,
// start-backmen: surgery
// start-_CorvaxNext: surgery
targetPart: TargetBodyPart.All,
partMultiplier: 0.5f,
canSever: false);
// end-backmen: surgery
// end-_CorvaxNext: surgery
}
}
}
2 changes: 1 addition & 1 deletion Content.Server/Medical/HealingSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
using Robust.Shared.Audio.Systems;
using Robust.Shared.Random;
using System.Linq;
using Content.Shared.Backmen.Targeting;
using Content.Shared._CorvaxNext.Targeting;

namespace Content.Server.Medical;

Expand Down
Loading

0 comments on commit e66b04b

Please sign in to comment.