]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Nukie Outpost is no longer a station map (#30090)
authorIProduceWidgets <107586145+IProduceWidgets@users.noreply.github.com>
Sun, 21 Jul 2024 07:26:30 +0000 (03:26 -0400)
committerGitHub <noreply@github.com>
Sun, 21 Jul 2024 07:26:30 +0000 (01:26 -0600)
* 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

Content.IntegrationTests/Tests/GameRules/NukeOpsTest.cs
Content.IntegrationTests/Tests/PostMapInitTest.cs
Content.Server/GameTicking/GameTicker.RoundFlow.cs
Content.Server/GameTicking/Rules/NukeopsRuleSystem.cs
Resources/Maps/Nonstations/nukieplanet.yml
Resources/Prototypes/GameRules/roundstart.yml
Resources/Prototypes/Maps/syndicate.yml [deleted file]

index 7b3c9943029d68a78870bf8b98635706fcca6c8c..cc5d99e8b2f599a11bcaac3b3fba010d65128053 100644 (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));
 
index cd14bfdc90d2190f5829bee02f28ab3228800aed..d1997c68baf3f82535efd108c0eec24189fd0e77 100644 (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",
index c957e0eb96f40469ad00b18f86a499002d6c5ece..ca087c46ed414602f0f75f11dfd4d59b0b306552 100644 (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));
index 2a67e62e3fb1a0a9b6ffa0a1b6445600a7a5fb3e..5f49557bed85c46ffd86310ac33cecf7863ea6d8 100644 (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>
index 20fb68f2ccd1a4253fae61d20560bee926f99a84..2e7f60c91dfa6b5cd405a7ddc891938301b26312 100644 (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
index d5cd6a3f9788b0a0badd9742d29662854c1c3fed..3e4ea6d7b313d4b2c0cb4cedf5475a6ff6239143 100644 (file)
@@ -73,7 +73,7 @@
   parent: BaseGameRule
   id: BaseNukeopsRule
   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:
     - operationPrefix
     - operationSuffix
@@ -95,7 +95,7 @@
   - type: GameRule
     minPlayers: 20
   - type: LoadMapRule
-    gameMap: NukieOutpost
+    mapPath: /Maps/Nonstations/nukieplanet.yml
   - type: AntagSelection
     selectionTime: PrePlayerSpawn
     definitions:
diff --git a/Resources/Prototypes/Maps/syndicate.yml b/Resources/Prototypes/Maps/syndicate.yml
deleted file mode 100644 (file)
index abb6312..0000000
+++ /dev/null
@@ -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"