Nukie Outpost is no longer a station map (#30090)

* I dunno, break shit I guess.

* Actually fix some shit for once.

* test flakey or me flakey?

* Test were not flakey, they just didnt make any sense anymore.

* more stationy tests

* undo abuncha shit I can set in yml instead

* forgor an assert

* unneeded usings

* 1984

* I made github angy

* yoink

* the end is never the end is never the end is never the end is never the end is never the end is never the

* Im going to commit sudoku
This commit is contained in:
IProduceWidgets
2024-07-21 03:26:30 -04:00
committed by GitHub
parent 564199f0c7
commit c7ff647cb3
7 changed files with 13 additions and 38 deletions

View File

@@ -104,8 +104,6 @@ public sealed class NukeOpsTest
// Maps now exist
Assert.That(entMan.Count<MapComponent>(), Is.GreaterThan(0));
Assert.That(entMan.Count<MapGridComponent>(), Is.GreaterThan(0));
Assert.That(entMan.Count<StationDataComponent>(), Is.EqualTo(2)); // The main station & nukie station
Assert.That(entMan.Count<StationMemberComponent>(), Is.GreaterThan(3)); // Each station has at least 1 grid, plus some shuttles
Assert.That(entMan.Count<StationCentcommComponent>(), Is.EqualTo(1));
// And we now have nukie related components
@@ -159,7 +157,6 @@ public sealed class NukeOpsTest
{
Assert.That(entMan.EntityExists(grid));
Assert.That(entMan.HasComponent<MapGridComponent>(grid));
Assert.That(entMan.HasComponent<StationMemberComponent>(grid));
}
Assert.That(entMan.EntityExists(ruleComp.TargetStation));
@@ -180,12 +177,7 @@ public sealed class NukeOpsTest
}
}
Assert.That(entMan.EntityExists(nukieStationEnt));
var nukieStation = entMan.GetComponent<StationMemberComponent>(nukieStationEnt!.Value);
Assert.That(entMan.EntityExists(nukieStation.Station));
Assert.That(nukieStation.Station, Is.Not.EqualTo(ruleComp.TargetStation));
Assert.That(!entMan.EntityExists(nukieStationEnt)); // its not supposed to be a station!
Assert.That(server.MapMan.MapExists(gridsRule.Map));
var nukieMap = mapSys.GetMap(gridsRule.Map!.Value);
@@ -195,7 +187,6 @@ public sealed class NukeOpsTest
Assert.That(targetMap, Is.Not.EqualTo(nukieMap));
Assert.That(entMan.GetComponent<TransformComponent>(player).MapUid, Is.EqualTo(nukieMap));
Assert.That(entMan.GetComponent<TransformComponent>(nukieStationEnt.Value).MapUid, Is.EqualTo(nukieMap));
Assert.That(entMan.GetComponent<TransformComponent>(nukieShuttlEnt).MapUid, Is.EqualTo(nukieMap));
// The maps are all map-initialized, including the player
@@ -209,7 +200,6 @@ public sealed class NukeOpsTest
Assert.That(LifeStage(player), Is.GreaterThan(EntityLifeStage.Initialized));
Assert.That(LifeStage(nukieMap), Is.GreaterThan(EntityLifeStage.Initialized));
Assert.That(LifeStage(targetMap), Is.GreaterThan(EntityLifeStage.Initialized));
Assert.That(LifeStage(nukieStationEnt.Value), Is.GreaterThan(EntityLifeStage.Initialized));
Assert.That(LifeStage(nukieShuttlEnt), Is.GreaterThan(EntityLifeStage.Initialized));
Assert.That(LifeStage(ruleComp.TargetStation), Is.GreaterThan(EntityLifeStage.Initialized));

View File

@@ -30,8 +30,7 @@ namespace Content.IntegrationTests.Tests
private static readonly string[] NoSpawnMaps =
{
"CentComm",
"Dart",
"NukieOutpost"
"Dart"
};
private static readonly string[] Grids =
@@ -54,7 +53,6 @@ namespace Content.IntegrationTests.Tests
"Bagel",
"Origin",
"CentComm",
"NukieOutpost",
"Box",
"Europa",
"Saltern",

View File

@@ -171,7 +171,7 @@ namespace Content.Server.GameTicking
var gridIds = _map.LoadMap(targetMapId, ev.GameMap.MapPath.ToString(), ev.Options);
_metaData.SetEntityName(_mapManager.GetMapEntityId(targetMapId), $"station map - {map.MapName}");
_metaData.SetEntityName(_mapManager.GetMapEntityId(targetMapId), map.MapName);
var gridUids = gridIds.ToList();
RaiseLocalEvent(new PostGameMapLoad(map, targetMapId, gridUids, stationName));

View File

@@ -483,7 +483,7 @@ public sealed class NukeopsRuleSystem : GameRuleSystem<NukeopsRuleComponent>
if (!Resolve(ent, ref ent.Comp, false))
return null;
return ent.Comp.MapGrids.Where(e => HasComp<StationMemberComponent>(e) && !HasComp<NukeOpsShuttleComponent>(e)).FirstOrNull();
return ent.Comp.MapGrids.Where(e => !HasComp<NukeOpsShuttleComponent>(e)).FirstOrNull();
}
/// <remarks>

View File

@@ -1625,8 +1625,6 @@ entities:
- type: GasTileOverlay
- type: SpreaderGrid
- type: GridPathfinding
- type: BecomesStation
id: SyndicateOutpost
- uid: 1295
components:
- type: MetaData
@@ -11002,13 +11000,6 @@ entities:
- type: Transform
pos: 18.918644,6.663283
parent: 104
- proto: SyndicateMicrowave
entities:
- uid: 10
components:
- type: Transform
pos: 13.5,-6.5
parent: 104
- proto: KitchenReagentGrinder
entities:
- uid: 1257
@@ -13234,6 +13225,13 @@ entities:
- SurveillanceCameraEntertainment
nameSet: True
id: Weeh
- proto: SyndicateMicrowave
entities:
- uid: 10
components:
- type: Transform
pos: 13.5,-6.5
parent: 104
- proto: SyndicatePersonalAI
entities:
- uid: 160

View File

@@ -95,7 +95,7 @@
- type: GameRule
minPlayers: 20
- type: LoadMapRule
gameMap: NukieOutpost
mapPath: /Maps/Nonstations/nukieplanet.yml
- type: AntagSelection
selectionTime: PrePlayerSpawn
definitions:

View File

@@ -1,11 +0,0 @@
- type: gameMap
id: NukieOutpost
mapName: Nukie Outpost
mapPath: /Maps/Nonstations/nukieplanet.yml
minPlayers: 0
stations:
SyndicateOutpost:
stationProto: StandardNukieOutpost
components:
- type: StationNameSetup
mapNameTemplate: "Nukie Outpost"