Skip to content

Commit

Permalink
Merge remote-tracking branch 'refs/remotes/wizards/master'
Browse files Browse the repository at this point in the history
# Conflicts:
#	Content.Server/Construction/ConstructionSystem.Initial.cs
#	Resources/ServerInfo/Guidebook/Engineering/Fires.xml
  • Loading branch information
VigersRay committed Jun 14, 2024
2 parents c656800 + 795196c commit 562dc41
Show file tree
Hide file tree
Showing 57 changed files with 7,328 additions and 583 deletions.
14 changes: 8 additions & 6 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
root = true

[*]

charset = utf-8
Expand Down Expand Up @@ -278,7 +279,7 @@ dotnet_naming_style.t_upper_camel_case_style.capitalization = pascal_case
dotnet_naming_style.t_upper_camel_case_style.required_prefix = T
dotnet_naming_style.upper_camel_case_style.capitalization = pascal_case

dotnet_naming_symbols.constants_symbols.applicable_accessibilities = public,internal,protected,protected_internal,private_protected
dotnet_naming_symbols.constants_symbols.applicable_accessibilities = public, internal, protected, protected_internal, private_protected
dotnet_naming_symbols.constants_symbols.applicable_kinds = field
dotnet_naming_symbols.constants_symbols.required_modifiers = const

Expand Down Expand Up @@ -317,20 +318,20 @@ dotnet_naming_symbols.private_static_fields_symbols.required_modifiers = static

dotnet_naming_symbols.private_static_readonly_symbols.applicable_accessibilities = private
dotnet_naming_symbols.private_static_readonly_symbols.applicable_kinds = field
dotnet_naming_symbols.private_static_readonly_symbols.required_modifiers = static,readonly
dotnet_naming_symbols.private_static_readonly_symbols.required_modifiers = static, readonly

dotnet_naming_symbols.property_symbols.applicable_accessibilities = *
dotnet_naming_symbols.property_symbols.applicable_kinds = property

dotnet_naming_symbols.public_fields_symbols.applicable_accessibilities = public,internal,protected,protected_internal,private_protected
dotnet_naming_symbols.public_fields_symbols.applicable_accessibilities = public, internal, protected, protected_internal, private_protected
dotnet_naming_symbols.public_fields_symbols.applicable_kinds = field

dotnet_naming_symbols.static_readonly_symbols.applicable_accessibilities = public,internal,protected,protected_internal,private_protected
dotnet_naming_symbols.static_readonly_symbols.applicable_accessibilities = public, internal, protected, protected_internal, private_protected
dotnet_naming_symbols.static_readonly_symbols.applicable_kinds = field
dotnet_naming_symbols.static_readonly_symbols.required_modifiers = static,readonly
dotnet_naming_symbols.static_readonly_symbols.required_modifiers = static, readonly

dotnet_naming_symbols.types_and_namespaces_symbols.applicable_accessibilities = *
dotnet_naming_symbols.types_and_namespaces_symbols.applicable_kinds = namespace,class,struct,enum,delegate
dotnet_naming_symbols.types_and_namespaces_symbols.applicable_kinds = namespace, class, struct, enum, delegate

dotnet_naming_symbols.type_parameters_symbols.applicable_accessibilities = *
dotnet_naming_symbols.type_parameters_symbols.applicable_kinds = type_parameter
Expand All @@ -342,6 +343,7 @@ resharper_csharp_wrap_parameters_style = chop_if_long
resharper_keep_existing_attribute_arrangement = true
resharper_wrap_chained_binary_patterns = chop_if_long
resharper_wrap_chained_method_calls = chop_if_long
resharper_csharp_trailing_comma_in_multiline_lists = true

[*.{csproj,xml,yml,yaml,dll.config,msbuildproj,targets,props}]
indent_size = 2
Expand Down
8 changes: 0 additions & 8 deletions Content.Client/Bed/SleepingSystem.cs

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,10 @@ public float InternalPressureBound
[ViewVariables(VVAccess.ReadWrite)]
[DataField("depressurizePressure")]
public float DepressurizePressure = 0;

// When true, ignore under-pressure lockout. Used to re-fill rooms in air alarm "Fill" mode.
[DataField]
public bool PressureLockoutOverride = false;
#endregion

public GasVentPumpData ToAirAlarmData()
Expand All @@ -146,7 +150,8 @@ public GasVentPumpData ToAirAlarmData()
PumpDirection = PumpDirection,
PressureChecks = PressureChecks,
ExternalPressureBound = ExternalPressureBound,
InternalPressureBound = InternalPressureBound
InternalPressureBound = InternalPressureBound,
PressureLockoutOverride = PressureLockoutOverride
};
}

Expand All @@ -158,6 +163,7 @@ public void FromAirAlarmData(GasVentPumpData data)
PressureChecks = data.PressureChecks;
ExternalPressureBound = data.ExternalPressureBound;
InternalPressureBound = data.InternalPressureBound;
PressureLockoutOverride = data.PressureLockoutOverride;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,8 @@ private void OnGasVentPumpUpdated(EntityUid uid, GasVentPumpComponent vent, ref
// (ignoring temperature differences because I am lazy)
var transferMoles = pressureDelta * environment.Volume / (pipe.Air.Temperature * Atmospherics.R);

if (vent.UnderPressureLockout)
// Only run if the device is under lockout and not being overriden
if (vent.UnderPressureLockout & !vent.PressureLockoutOverride)
{
// Leak only a small amount of gas as a proportion of supply pipe pressure.
var pipeDelta = pipe.Air.Pressure - environment.Pressure;
Expand Down Expand Up @@ -280,7 +281,7 @@ private void OnExamine(EntityUid uid, GasVentPumpComponent component, ExaminedEv
return;
if (args.IsInDetailsRange)
{
if (pumpComponent.UnderPressureLockout)
if (pumpComponent.UnderPressureLockout & !pumpComponent.PressureLockoutOverride)
{
args.PushMarkup(Loc.GetString("gas-vent-pump-uvlo"));
}
Expand Down
1 change: 0 additions & 1 deletion Content.Server/Bed/BedSystem.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using Content.Server.Actions;
using Content.Server.Bed.Components;
using Content.Server.Bed.Sleep;
using Content.Server.Body.Systems;
using Content.Server.Power.Components;
using Content.Server.Power.EntitySystems;
Expand Down
254 changes: 0 additions & 254 deletions Content.Server/Bed/Sleep/SleepingSystem.cs

This file was deleted.

1 change: 1 addition & 0 deletions Content.Server/Cargo/Systems/CargoSystem.Orders.cs
Original file line number Diff line number Diff line change
Expand Up @@ -506,6 +506,7 @@ private bool FulfillOrder(CargoOrderData order, EntityCoordinates spawn, string?
"cargo-console-paper-print-text",
("orderNumber", order.OrderId),
("itemName", MetaData(item).EntityName),
("orderQuantity", order.OrderQuantity),
("requester", order.Requester),
("reason", order.Reason),
("approver", order.Approver ?? string.Empty)),
Expand Down
2 changes: 1 addition & 1 deletion Content.Server/Construction/ConstructionSystem.Initial.cs
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ void ShutdownContainers()
}

var newEntityProto = graph.Nodes[edge.Target].Entity.GetId(null, user, new(EntityManager));
var newEntity = EntityManager.SpawnEntity(newEntityProto, EntityManager.GetComponent<TransformComponent>(user).Coordinates);
var newEntity = EntityManager.SpawnAttachedTo(newEntityProto, coords, rotation: angle);

Check failure on line 266 in Content.Server/Construction/ConstructionSystem.Initial.cs

View workflow job for this annotation

GitHub Actions / Test Packaging

The name 'coords' does not exist in the current context

Check failure on line 266 in Content.Server/Construction/ConstructionSystem.Initial.cs

View workflow job for this annotation

GitHub Actions / Test Packaging

The name 'angle' does not exist in the current context

Check failure on line 266 in Content.Server/Construction/ConstructionSystem.Initial.cs

View workflow job for this annotation

GitHub Actions / Test Packaging

The name 'coords' does not exist in the current context

Check failure on line 266 in Content.Server/Construction/ConstructionSystem.Initial.cs

View workflow job for this annotation

GitHub Actions / Test Packaging

The name 'angle' does not exist in the current context

Check failure on line 266 in Content.Server/Construction/ConstructionSystem.Initial.cs

View workflow job for this annotation

GitHub Actions / YAML Linter

The name 'coords' does not exist in the current context

Check failure on line 266 in Content.Server/Construction/ConstructionSystem.Initial.cs

View workflow job for this annotation

GitHub Actions / YAML Linter

The name 'angle' does not exist in the current context

Check failure on line 266 in Content.Server/Construction/ConstructionSystem.Initial.cs

View workflow job for this annotation

GitHub Actions / YAML Linter

The name 'coords' does not exist in the current context

Check failure on line 266 in Content.Server/Construction/ConstructionSystem.Initial.cs

View workflow job for this annotation

GitHub Actions / YAML Linter

The name 'angle' does not exist in the current context

Check failure on line 266 in Content.Server/Construction/ConstructionSystem.Initial.cs

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest)

The name 'coords' does not exist in the current context

Check failure on line 266 in Content.Server/Construction/ConstructionSystem.Initial.cs

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest)

The name 'angle' does not exist in the current context

Check failure on line 266 in Content.Server/Construction/ConstructionSystem.Initial.cs

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest)

The name 'coords' does not exist in the current context

Check failure on line 266 in Content.Server/Construction/ConstructionSystem.Initial.cs

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest)

The name 'angle' does not exist in the current context

Check failure on line 266 in Content.Server/Construction/ConstructionSystem.Initial.cs

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest)

The name 'coords' does not exist in the current context

Check failure on line 266 in Content.Server/Construction/ConstructionSystem.Initial.cs

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest)

The name 'angle' does not exist in the current context

Check failure on line 266 in Content.Server/Construction/ConstructionSystem.Initial.cs

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest)

The name 'coords' does not exist in the current context

Check failure on line 266 in Content.Server/Construction/ConstructionSystem.Initial.cs

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest)

The name 'angle' does not exist in the current context

if (!TryComp(newEntity, out ConstructionComponent? construction))
{
Expand Down
1 change: 1 addition & 0 deletions Content.Server/Damage/ForceSay/DamageForceSaySystem.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
using Content.Shared.Bed.Sleep;
using Content.Shared.Damage;
using Content.Shared.Damage.ForceSay;
using Content.Shared.FixedPoint;
Expand Down
Loading

0 comments on commit 562dc41

Please sign in to comment.