Skip to content

Commit

Permalink
Merge branch 'master' into FSB-Stasis-Medical-Microwave
Browse files Browse the repository at this point in the history
  • Loading branch information
dvir001 authored Oct 16, 2024
2 parents fc94ced + 6095d41 commit 6867a46
Show file tree
Hide file tree
Showing 10 changed files with 66 additions and 45 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/build-test-debug.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,11 @@ jobs:
- name: Run Content.Tests
run: dotnet test --no-build --configuration DebugOpt Content.Tests/Content.Tests.csproj -- NUnit.ConsoleOut=0

# - name: Run Content.IntegrationTests
# shell: pwsh
# run: |
# $env:DOTNET_gcServer=1
# dotnet test --no-build --configuration DebugOpt Content.IntegrationTests/Content.IntegrationTests.csproj -- NUnit.ConsoleOut=0 NUnit.MapWarningTo=Failed
# - name: Run Content.IntegrationTests
# shell: pwsh
# run: |
# $env:DOTNET_gcServer=1
# dotnet test --no-build --configuration DebugOpt Content.IntegrationTests/Content.IntegrationTests.csproj --filter FullyQualifiedName!~ShipyardTest -- NUnit.ConsoleOut=0 NUnit.MapWarningTo=Failed
ci-success:
name: Build & Test Debug
needs:
Expand Down
2 changes: 1 addition & 1 deletion Content.IntegrationTests/Tests/CargoTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
using Content.Server.Cargo.Systems;
using Content.Server.Nutrition.Components;
using Content.Server.Nutrition.EntitySystems;
using Content.Shared.Cargo.Components;
using Content.Shared.Cargo.Components; // Frontier
using Content.Shared.Cargo.Prototypes;
using Content.Shared.IdentityManagement;
using Content.Shared.Stacks;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ namespace Content.IntegrationTests.Tests.Internals;
[TestOf(typeof(InternalsSystem))]
public sealed class AutoInternalsTests
{
[Test]
[Ignore("Not relevant for Frontier")] // Frontier
public async Task TestInternalsAutoActivateInSpaceForStationSpawn()
{
await using var pair = await PoolManager.GetServerClient();
Expand Down Expand Up @@ -39,7 +39,7 @@ await server.WaitAssertion(() =>
await pair.CleanReturnAsync();
}

[Test]
[Ignore("Not relevant for Frontier")] // Frontier
public async Task TestInternalsAutoActivateInSpaceForEntitySpawn()
{
await using var pair = await PoolManager.GetServerClient();
Expand Down Expand Up @@ -73,7 +73,6 @@ await server.WaitAssertion(() =>
equipment:
mask: ClothingMaskBreath
suitstorage: OxygenTankFilled
outerClothing: ClothingOuterVestTank # Frontier
- type: job
id: TestInternalsDummy
Expand Down
31 changes: 6 additions & 25 deletions Content.IntegrationTests/Tests/PostMapInitTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
using Robust.Shared.Map.Components;
using Robust.Shared.Prototypes;
using Content.Shared.Station.Components;
using FastAccessors;
using Robust.Shared.Utility;
using YamlDotNet.RepresentationModel;
using Content.IntegrationTests.Tests._NF;

namespace Content.IntegrationTests.Tests
{
Expand All @@ -38,32 +38,13 @@ public sealed class PostMapInitTest

private static readonly string[] Grids =
{
"/Maps/centcomm.yml",
"/Maps/Shuttles/cargo.yml",
"/Maps/Shuttles/emergency.yml",
"/Maps/Shuttles/infiltrator.yml",
// Admin
"/Maps/_NF/Shuttles/Admin/fishbowl.yml",
// Bus
"/Maps/_NF/Shuttles/Bus/publicts.yml",
};

private static readonly string[] GameMaps =
{
"Dev",
"TestTeg",
"Fland",
"Meta",
"Packed",
"Omega",
"Bagel",
"CentComm",
"Box",
"Core",
"Marathon",
"MeteorArena",
"Saltern",
"Reach",
"Train",
"Oasis",
"Cog"
};
private static readonly string[] GameMaps = FrontierConstants.GameMapPrototypes; // Frontier: not inline constants

/// <summary>
/// Asserts that specific files have been saved as grids and not maps.
Expand Down
10 changes: 9 additions & 1 deletion Content.IntegrationTests/Tests/Station/StationJobsTest.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using System.Collections.Generic;
using System.Linq;
using Content.IntegrationTests.Tests._NF;
using Content.Server.Maps;
using Content.Server.Station.Components;
using Content.Server.Station.Systems;
Expand Down Expand Up @@ -227,8 +228,15 @@ await server.WaitAssertion(() =>

Assert.Multiple(() =>
{
foreach (var gameMap in prototypeManager.EnumeratePrototypes<GameMapPrototype>())
foreach (var mapProto in FrontierConstants.GameMapPrototypes) // Frontier: EnumeratePrototypes<GameMapPrototype> < FrontierConstants.GameMapPrototypes
{
// Frontier: get prototype from proto ID
if (!prototypeManager.TryIndex<GameMapPrototype>(mapProto, out var gameMap))
{
Assert.Fail($"Could not find GameMapPrototype with ID {mapProto}! Is FrontierConstants up to date?");
}
// End Frontier

foreach (var (stationId, station) in gameMap.Stations)
{
if (!station.StationComponentOverrides.TryGetComponent(name, out var comp))
Expand Down
10 changes: 10 additions & 0 deletions Content.IntegrationTests/Tests/_NF/FrontierConstants.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
namespace Content.IntegrationTests.Tests._NF;

public sealed class FrontierConstants
{
public static readonly string[] GameMapPrototypes =
{
"Frontier",
"NFDev"
};
}
6 changes: 6 additions & 0 deletions Resources/Changelog/Frontier.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4618,3 +4618,9 @@ Entries:
message: Adds medical pen recipes to the medical assembler.
id: 5410
time: '2024-10-16T10:18:31.0000000+00:00'
- author: MisterMecky
changes:
- type: Tweak
message: Ice and sandstone walls no longer spawn a girder upon their destruction
id: 5411
time: '2024-10-16T16:15:50.0000000+00:00'
9 changes: 9 additions & 0 deletions Resources/Prototypes/Entities/Mobs/NPCs/animals.yml
Original file line number Diff line number Diff line change
Expand Up @@ -400,6 +400,12 @@
damage:
types:
Piercing: 0
- type: TriggerOnBeingGibbed # Frontier
- type: GibOnTrigger # Frontier
deleteItems: true # Frontier
deleteOrgans: true # Frontier
gib: false # Frontier
useArgumentEntity: true # Frontier

- type: entity
name: glockroach
Expand Down Expand Up @@ -522,6 +528,9 @@
spawned:
- id: FoodMeatSlime
amount: 2
- id: HideMothroach # Frontier
amount: 1 # Frontier
prob: 0.3 # Frontier
- type: Extractable
grindableSolutionName: food
- type: ReplacementAccent
Expand Down
20 changes: 10 additions & 10 deletions Resources/Prototypes/Recipes/Lathes/rehydrateable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,72 +3,72 @@
- type: latheRecipe
id: MonkeyCube
result: MonkeyCube
completetime: 30
completetime: 300 # Frontier 30<300
materials:
Biomass: 16

- type: latheRecipe
id: KoboldCube
result: KoboldCube
completetime: 30
completetime: 300 # Frontier 30<300
materials:
Biomass: 16

- type: latheRecipe
id: CowCube
result: CowCube
completetime: 30
completetime: 300 # Frontier 30<300
materials:
Biomass: 120

- type: latheRecipe
id: GoatCube
result: GoatCube
completetime: 30
completetime: 300 # Frontier 30<300
materials:
Biomass: 35

- type: latheRecipe
id: MothroachCube
result: MothroachCube
completetime: 45 # prevent biblical floods
completetime: 450 # prevent biblical floods, Frontier 45<450
materials:
Biomass: 20 # a lot of materials wasted due to complex genetics

- type: latheRecipe
id: MouseCube
result: MouseCube
completetime: 15
completetime: 150 # Frontier 15<150
materials:
Biomass: 12

- type: latheRecipe
id: CockroachCube
result: CockroachCube
completetime: 15
completetime: 150 # Frontier 15<150
materials:
Biomass: 16

- type: latheRecipe
id: SpaceCarpCube
result: SpaceCarpCube
completetime: 30
completetime: 300 # Frontier 30<300
materials:
Biomass: 24
Plasma: 600

- type: latheRecipe
id: SpaceTickCube
result: SpaceTickCube
completetime: 15
completetime: 150 # Frontier 15<150
materials:
Biomass: 8
Plasma: 300 # less biomass but more plasma

- type: latheRecipe
id: AbominationCube
result: AbominationCube
completetime: 30
completetime: 300 # Frontier 30<300
materials: # abominations are slow and essentially worse than even carp
Biomass: 28
Plasma: 500 # more biomass but less plasma
8 changes: 8 additions & 0 deletions Resources/Prototypes/_NF/Entities/Structures/Walls/walls.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,14 @@
spread: 10 # Narrow spread, need to balance vs. max projectile distance
reflects:
- ShuttleKinetic # Only reflects PTK (otherwise RIP miners)
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 1000
behaviors:
- !type:DoActsBehavior
acts: [ "Destruction" ]

- type: entity
parent: [AsteroidWallNF, WallIce]
Expand Down

0 comments on commit 6867a46

Please sign in to comment.