Skip to content

Commit

Permalink
Merge branch 'new-frontiers-14:master' into Sec-Energy-Shield
Browse files Browse the repository at this point in the history
  • Loading branch information
dvir001 committed Jul 18, 2023
2 parents 0eb81de + 5669be9 commit 3279352
Show file tree
Hide file tree
Showing 46 changed files with 2,651 additions and 1,274 deletions.
3 changes: 3 additions & 0 deletions Content.Server/Shuttles/Components/ShuttleComponent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,8 @@ public sealed class ShuttleComponent : Component
/// </summary>
[DataField("linearDamping"), ViewVariables(VVAccess.ReadWrite)]
public float LinearDamping = 0.05f;

[DataField("angularDamping"), ViewVariables(VVAccess.ReadWrite)]
public float AngularDamping = 0.05f;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ private void UpdateHyperspace(float frameTime)
{
_physics.SetLinearDamping(body, shuttle.LinearDamping);
}
_physics.SetAngularDamping(body, ShuttleAngularDamping);
_physics.SetAngularDamping(body, shuttle.AngularDamping);

Check failure on line 308 in Content.Server/Shuttles/Systems/ShuttleSystem.FasterThanLight.cs

View workflow job for this annotation

GitHub Actions / Test Packaging

Dereference of a possibly null reference.

Check failure on line 308 in Content.Server/Shuttles/Systems/ShuttleSystem.FasterThanLight.cs

View workflow job for this annotation

GitHub Actions / Test Packaging

Dereference of a possibly null reference.

Check failure on line 308 in Content.Server/Shuttles/Systems/ShuttleSystem.FasterThanLight.cs

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest)

Dereference of a possibly null reference.

Check failure on line 308 in Content.Server/Shuttles/Systems/ShuttleSystem.FasterThanLight.cs

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest)

Dereference of a possibly null reference.

Check failure on line 308 in Content.Server/Shuttles/Systems/ShuttleSystem.FasterThanLight.cs

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest)

Dereference of a possibly null reference.

Check failure on line 308 in Content.Server/Shuttles/Systems/ShuttleSystem.FasterThanLight.cs

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest)

Dereference of a possibly null reference.

Check failure on line 308 in Content.Server/Shuttles/Systems/ShuttleSystem.FasterThanLight.cs

View workflow job for this annotation

GitHub Actions / Test Packaging

Dereference of a possibly null reference.

Check failure on line 308 in Content.Server/Shuttles/Systems/ShuttleSystem.FasterThanLight.cs

View workflow job for this annotation

GitHub Actions / Test Packaging

Dereference of a possibly null reference.

Check failure on line 308 in Content.Server/Shuttles/Systems/ShuttleSystem.FasterThanLight.cs

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest)

Dereference of a possibly null reference.

Check failure on line 308 in Content.Server/Shuttles/Systems/ShuttleSystem.FasterThanLight.cs

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest)

Dereference of a possibly null reference.

Check failure on line 308 in Content.Server/Shuttles/Systems/ShuttleSystem.FasterThanLight.cs

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest)

Dereference of a possibly null reference.

Check failure on line 308 in Content.Server/Shuttles/Systems/ShuttleSystem.FasterThanLight.cs

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest)

Dereference of a possibly null reference.
}

MapId mapId;
Expand Down
4 changes: 1 addition & 3 deletions Content.Server/Shuttles/Systems/ShuttleSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,6 @@ public sealed partial class ShuttleSystem : SharedShuttleSystem

public const float TileMassMultiplier = 0.5f;

public const float ShuttleAngularDamping = 0.05f;

public override void Initialize()
{
base.Initialize();
Expand Down Expand Up @@ -153,7 +151,7 @@ private void Enable(EntityUid uid, PhysicsComponent component, ShuttleComponent
_physics.SetBodyStatus(component, BodyStatus.InAir);
_physics.SetFixedRotation(uid, false, manager: manager, body: component);
_physics.SetLinearDamping(component, shuttle.LinearDamping);
_physics.SetAngularDamping(component, ShuttleAngularDamping);
_physics.SetAngularDamping(component, shuttle.AngularDamping);
}

private void Disable(EntityUid uid, PhysicsComponent component)
Expand Down
2 changes: 1 addition & 1 deletion Content.Shared/CCVar/CCVars.cs
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ public static readonly CVarDef<bool>
/// If roles should be restricted based on time.
/// </summary>
public static readonly CVarDef<bool>
GameRoleTimers = CVarDef.Create("game.role_timers", false, CVar.SERVER | CVar.REPLICATED);
GameRoleTimers = CVarDef.Create("game.role_timers", true, CVar.SERVER | CVar.REPLICATED);

/// <summary>
/// Whether a random position offset will be applied to the station on roundstart.
Expand Down
1 change: 1 addition & 0 deletions Resources/Locale/en-US/_NF/reagents/foods.ftl
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
reagent-name-flaverol = Flaverol
1 change: 1 addition & 0 deletions Resources/Maps/cargodepot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ entities:
- type: OccluderTree
- type: Shuttle
linearDamping: 10000
angularDamping: 10000
- nextUpdate: 9845.535748
type: GridPathfinding
- gravityShakeSound: !type:SoundPathSpecifier
Expand Down
1 change: 1 addition & 0 deletions Resources/Maps/frontier.yml
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ entities:
type: Fixtures
- type: OccluderTree
- linearDamping: 10000
angularDamping: 10000
type: Shuttle
- type: GridPathfinding
- gravityShakeSound: !type:SoundPathSpecifier
Expand Down
Loading

0 comments on commit 3279352

Please sign in to comment.