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:
@@ -104,8 +104,6 @@ public sealed class NukeOpsTest
|
|||||||
// Maps now exist
|
// Maps now exist
|
||||||
Assert.That(entMan.Count<MapComponent>(), Is.GreaterThan(0));
|
Assert.That(entMan.Count<MapComponent>(), Is.GreaterThan(0));
|
||||||
Assert.That(entMan.Count<MapGridComponent>(), 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));
|
Assert.That(entMan.Count<StationCentcommComponent>(), Is.EqualTo(1));
|
||||||
|
|
||||||
// And we now have nukie related components
|
// And we now have nukie related components
|
||||||
@@ -159,7 +157,6 @@ public sealed class NukeOpsTest
|
|||||||
{
|
{
|
||||||
Assert.That(entMan.EntityExists(grid));
|
Assert.That(entMan.EntityExists(grid));
|
||||||
Assert.That(entMan.HasComponent<MapGridComponent>(grid));
|
Assert.That(entMan.HasComponent<MapGridComponent>(grid));
|
||||||
Assert.That(entMan.HasComponent<StationMemberComponent>(grid));
|
|
||||||
}
|
}
|
||||||
Assert.That(entMan.EntityExists(ruleComp.TargetStation));
|
Assert.That(entMan.EntityExists(ruleComp.TargetStation));
|
||||||
|
|
||||||
@@ -180,12 +177,7 @@ public sealed class NukeOpsTest
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Assert.That(entMan.EntityExists(nukieStationEnt));
|
Assert.That(!entMan.EntityExists(nukieStationEnt)); // its not supposed to be a station!
|
||||||
var nukieStation = entMan.GetComponent<StationMemberComponent>(nukieStationEnt!.Value);
|
|
||||||
|
|
||||||
Assert.That(entMan.EntityExists(nukieStation.Station));
|
|
||||||
Assert.That(nukieStation.Station, Is.Not.EqualTo(ruleComp.TargetStation));
|
|
||||||
|
|
||||||
Assert.That(server.MapMan.MapExists(gridsRule.Map));
|
Assert.That(server.MapMan.MapExists(gridsRule.Map));
|
||||||
var nukieMap = mapSys.GetMap(gridsRule.Map!.Value);
|
var nukieMap = mapSys.GetMap(gridsRule.Map!.Value);
|
||||||
|
|
||||||
@@ -195,7 +187,6 @@ public sealed class NukeOpsTest
|
|||||||
Assert.That(targetMap, Is.Not.EqualTo(nukieMap));
|
Assert.That(targetMap, Is.Not.EqualTo(nukieMap));
|
||||||
|
|
||||||
Assert.That(entMan.GetComponent<TransformComponent>(player).MapUid, Is.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));
|
Assert.That(entMan.GetComponent<TransformComponent>(nukieShuttlEnt).MapUid, Is.EqualTo(nukieMap));
|
||||||
|
|
||||||
// The maps are all map-initialized, including the player
|
// 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(player), Is.GreaterThan(EntityLifeStage.Initialized));
|
||||||
Assert.That(LifeStage(nukieMap), Is.GreaterThan(EntityLifeStage.Initialized));
|
Assert.That(LifeStage(nukieMap), Is.GreaterThan(EntityLifeStage.Initialized));
|
||||||
Assert.That(LifeStage(targetMap), 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(nukieShuttlEnt), Is.GreaterThan(EntityLifeStage.Initialized));
|
||||||
Assert.That(LifeStage(ruleComp.TargetStation), Is.GreaterThan(EntityLifeStage.Initialized));
|
Assert.That(LifeStage(ruleComp.TargetStation), Is.GreaterThan(EntityLifeStage.Initialized));
|
||||||
|
|
||||||
|
|||||||
@@ -30,8 +30,7 @@ namespace Content.IntegrationTests.Tests
|
|||||||
private static readonly string[] NoSpawnMaps =
|
private static readonly string[] NoSpawnMaps =
|
||||||
{
|
{
|
||||||
"CentComm",
|
"CentComm",
|
||||||
"Dart",
|
"Dart"
|
||||||
"NukieOutpost"
|
|
||||||
};
|
};
|
||||||
|
|
||||||
private static readonly string[] Grids =
|
private static readonly string[] Grids =
|
||||||
@@ -54,7 +53,6 @@ namespace Content.IntegrationTests.Tests
|
|||||||
"Bagel",
|
"Bagel",
|
||||||
"Origin",
|
"Origin",
|
||||||
"CentComm",
|
"CentComm",
|
||||||
"NukieOutpost",
|
|
||||||
"Box",
|
"Box",
|
||||||
"Europa",
|
"Europa",
|
||||||
"Saltern",
|
"Saltern",
|
||||||
|
|||||||
@@ -171,7 +171,7 @@ namespace Content.Server.GameTicking
|
|||||||
|
|
||||||
var gridIds = _map.LoadMap(targetMapId, ev.GameMap.MapPath.ToString(), ev.Options);
|
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();
|
var gridUids = gridIds.ToList();
|
||||||
RaiseLocalEvent(new PostGameMapLoad(map, targetMapId, gridUids, stationName));
|
RaiseLocalEvent(new PostGameMapLoad(map, targetMapId, gridUids, stationName));
|
||||||
|
|||||||
@@ -483,7 +483,7 @@ public sealed class NukeopsRuleSystem : GameRuleSystem<NukeopsRuleComponent>
|
|||||||
if (!Resolve(ent, ref ent.Comp, false))
|
if (!Resolve(ent, ref ent.Comp, false))
|
||||||
return null;
|
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>
|
/// <remarks>
|
||||||
|
|||||||
@@ -1625,8 +1625,6 @@ entities:
|
|||||||
- type: GasTileOverlay
|
- type: GasTileOverlay
|
||||||
- type: SpreaderGrid
|
- type: SpreaderGrid
|
||||||
- type: GridPathfinding
|
- type: GridPathfinding
|
||||||
- type: BecomesStation
|
|
||||||
id: SyndicateOutpost
|
|
||||||
- uid: 1295
|
- uid: 1295
|
||||||
components:
|
components:
|
||||||
- type: MetaData
|
- type: MetaData
|
||||||
@@ -11002,13 +11000,6 @@ entities:
|
|||||||
- type: Transform
|
- type: Transform
|
||||||
pos: 18.918644,6.663283
|
pos: 18.918644,6.663283
|
||||||
parent: 104
|
parent: 104
|
||||||
- proto: SyndicateMicrowave
|
|
||||||
entities:
|
|
||||||
- uid: 10
|
|
||||||
components:
|
|
||||||
- type: Transform
|
|
||||||
pos: 13.5,-6.5
|
|
||||||
parent: 104
|
|
||||||
- proto: KitchenReagentGrinder
|
- proto: KitchenReagentGrinder
|
||||||
entities:
|
entities:
|
||||||
- uid: 1257
|
- uid: 1257
|
||||||
@@ -13234,6 +13225,13 @@ entities:
|
|||||||
- SurveillanceCameraEntertainment
|
- SurveillanceCameraEntertainment
|
||||||
nameSet: True
|
nameSet: True
|
||||||
id: Weeh
|
id: Weeh
|
||||||
|
- proto: SyndicateMicrowave
|
||||||
|
entities:
|
||||||
|
- uid: 10
|
||||||
|
components:
|
||||||
|
- type: Transform
|
||||||
|
pos: 13.5,-6.5
|
||||||
|
parent: 104
|
||||||
- proto: SyndicatePersonalAI
|
- proto: SyndicatePersonalAI
|
||||||
entities:
|
entities:
|
||||||
- uid: 160
|
- uid: 160
|
||||||
|
|||||||
@@ -73,7 +73,7 @@
|
|||||||
parent: BaseGameRule
|
parent: BaseGameRule
|
||||||
id: BaseNukeopsRule
|
id: BaseNukeopsRule
|
||||||
components:
|
components:
|
||||||
- type: RandomMetadata #this generates the random operation name cuz it's cool.
|
- type: RandomMetadata #this generates the random operation name cuz it's cool.
|
||||||
nameSegments:
|
nameSegments:
|
||||||
- operationPrefix
|
- operationPrefix
|
||||||
- operationSuffix
|
- operationSuffix
|
||||||
@@ -95,7 +95,7 @@
|
|||||||
- type: GameRule
|
- type: GameRule
|
||||||
minPlayers: 20
|
minPlayers: 20
|
||||||
- type: LoadMapRule
|
- type: LoadMapRule
|
||||||
gameMap: NukieOutpost
|
mapPath: /Maps/Nonstations/nukieplanet.yml
|
||||||
- type: AntagSelection
|
- type: AntagSelection
|
||||||
selectionTime: PrePlayerSpawn
|
selectionTime: PrePlayerSpawn
|
||||||
definitions:
|
definitions:
|
||||||
|
|||||||
@@ -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"
|
|
||||||
Reference in New Issue
Block a user