Skip to content

Commit

Permalink
Merge branch 'new-frontiers-14:master' into Hammer-Time
Browse files Browse the repository at this point in the history
  • Loading branch information
dvir001 committed Aug 6, 2023
2 parents 8f7d75d + ce6bf1b commit c692557
Show file tree
Hide file tree
Showing 37 changed files with 20,878 additions and 118 deletions.
22 changes: 17 additions & 5 deletions Content.Server/_NF/GameRule/NfAdventureRuleSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ private void OnStartup(RoundStartingEvent ev)
var depotMap = "/Maps/cargodepot.yml";
var tinnia = "/Maps/tinnia.yml";
var lpbravo = "/Maps/lpbravo.yml";
var arena = "/Maps/arena.yml";
var depotColor = new Color(55, 200, 55);
var tinniaColor = new Color(55, 55, 200);
var lpbravoColor = new Color(200, 55, 55);
Expand All @@ -127,7 +128,7 @@ private void OnStartup(RoundStartingEvent ev)
;
if (_map.TryLoad(mapId, tinnia, out var depotUid2s, new MapLoadOptions
{
Offset = _random.NextVector2(975f, 1375f)
Offset = _random.NextVector2(1275f, 1975f)
}))
{
var meta = EnsureComp<MetaDataComponent>(depotUid2s[0]);
Expand All @@ -136,7 +137,7 @@ private void OnStartup(RoundStartingEvent ev)
}

;
depotOffset = _random.NextVector2(2300f, 3400f);
depotOffset = _random.NextVector2(2600f, 3750f);
if (_map.TryLoad(mapId, depotMap, out var depotUid3s, new MapLoadOptions
{
Offset = depotOffset
Expand All @@ -150,7 +151,7 @@ private void OnStartup(RoundStartingEvent ev)
;
if (_map.TryLoad(mapId, lpbravo, out var depotUid4s, new MapLoadOptions
{
Offset = _random.NextVector2(1400f, 3000f)
Offset = _random.NextVector2(1950f, 3500f)
}))
{
var meta = EnsureComp<MetaDataComponent>(depotUid4s[0]);
Expand All @@ -159,14 +160,25 @@ private void OnStartup(RoundStartingEvent ev)
_shuttle.AddIFFFlag(depotUid4s[0], IFFFlags.HideLabel);
}

;
if (_map.TryLoad(mapId, arena, out var depotUid5s, new MapLoadOptions
{
Offset = _random.NextVector2(1500f, 3000f)
}))
{
var meta = EnsureComp<MetaDataComponent>(depotUid5s[0]);
meta.EntityName = "The Pit";
_shuttle.SetIFFColor(depotUid5s[0], tinniaColor);
}

;
var dungenTypes = _prototypeManager.EnumeratePrototypes<DungeonConfigPrototype>();

foreach (var dunGen in dungenTypes)
{

var seed = _random.Next();
var offset = _random.NextVector2(2100f, 4500f);
var offset = _random.NextVector2(2750f, 4400f);
if (!_map.TryLoad(mapId, "/Maps/spaceplatform.yml", out var grids, new MapLoadOptions
{
Offset = offset
Expand All @@ -189,7 +201,7 @@ private void OnStartup(RoundStartingEvent ev)
{

var seed = _random.Next();
var offset = _random.NextVector2(2300f, 6500f);
var offset = _random.NextVector2(3800f, 8500f);
if (!_map.TryLoad(mapId, "/Maps/spaceplatform.yml", out var grids, new MapLoadOptions
{
Offset = offset
Expand Down
4 changes: 2 additions & 2 deletions Resources/Maps/Shuttles/anchor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4982,7 +4982,7 @@ entities:
- pos: -0.5,-0.5
parent: 1
type: Transform
- proto: FaxMachineBase
- proto: FaxMachineShip
entities:
- uid: 717
components:
Expand Down Expand Up @@ -11292,7 +11292,7 @@ entities:
- pos: 10.5,-27.5
parent: 1
type: Transform
- proto: WarpPoint
- proto: WarpPointShip
entities:
- uid: 1716
components:
Expand Down
4 changes: 2 additions & 2 deletions Resources/Maps/Shuttles/barge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2689,7 +2689,7 @@ entities:
- pos: -4.5,6.5
parent: 70
type: Transform
- proto: FaxMachineBase
- proto: FaxMachineShip
entities:
- uid: 311
components:
Expand Down Expand Up @@ -4904,7 +4904,7 @@ entities:
- pos: -4.5,4.5
parent: 70
type: Transform
- proto: WarpPoint
- proto: WarpPointShip
entities:
- uid: 599
components:
Expand Down
2 changes: 1 addition & 1 deletion Resources/Maps/Shuttles/cleric.yml
Original file line number Diff line number Diff line change
Expand Up @@ -624,7 +624,7 @@ entities:
- pos: 6.5,1.5
parent: 1
type: Transform
- proto: WarpPoint
- proto: WarpPointShip
entities:
- uid: 81
components:
Expand Down
4 changes: 2 additions & 2 deletions Resources/Maps/Shuttles/condor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3071,7 +3071,7 @@ entities:
- pos: 0.5,4.5
parent: 281
type: Transform
- proto: FaxMachineBase
- proto: FaxMachineShip
entities:
- uid: 617
components:
Expand Down Expand Up @@ -6527,7 +6527,7 @@ entities:
- pos: 9.5,12.5
parent: 281
type: Transform
- proto: WarpPoint
- proto: WarpPointShip
entities:
- uid: 861
components:
Expand Down
2 changes: 1 addition & 1 deletion Resources/Maps/Shuttles/construct.yml
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,7 @@ entities:
pos: 0.5,1.5
parent: 1
type: Transform
- proto: WarpPoint
- proto: WarpPointShip
entities:
- uid: 62
components:
Expand Down
4 changes: 2 additions & 2 deletions Resources/Maps/Shuttles/courserx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2171,7 +2171,7 @@ entities:
- pos: 3.5,12.5
parent: 1
type: Transform
- proto: FaxMachineBase
- proto: FaxMachineShip
entities:
- uid: 310
components:
Expand Down Expand Up @@ -4839,7 +4839,7 @@ entities:
pos: -4.5,-13.5
parent: 1
type: Transform
- proto: WarpPoint
- proto: WarpPointShip
entities:
- uid: 737
components:
Expand Down
4 changes: 2 additions & 2 deletions Resources/Maps/Shuttles/dartx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3020,7 +3020,7 @@ entities:
- pos: -5.5,2.5
parent: 1
type: Transform
- proto: FaxMachineBase
- proto: FaxMachineShip
entities:
- uid: 242
components:
Expand Down Expand Up @@ -6623,7 +6623,7 @@ entities:
pos: 5.5,-15.5
parent: 1
type: Transform
- proto: WarpPoint
- proto: WarpPointShip
entities:
- uid: 758
components:
Expand Down
4 changes: 2 additions & 2 deletions Resources/Maps/Shuttles/empress.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4445,7 +4445,7 @@ entities:
- canCollide: False
type: Physics
- type: InsideEntityStorage
- proto: FaxMachineBase
- proto: FaxMachineShip
entities:
- uid: 1345
components:
Expand Down Expand Up @@ -10409,7 +10409,7 @@ entities:
pos: -0.5,-24.5
parent: 1
type: Transform
- proto: WarpPoint
- proto: WarpPointShip
entities:
- uid: 864
components:
Expand Down
4 changes: 2 additions & 2 deletions Resources/Maps/Shuttles/enforcer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -688,7 +688,7 @@ entities:
pos: -2.5,-2.5
parent: 17
type: Transform
- proto: FaxMachineBase
- proto: FaxMachineShip
entities:
- uid: 105
components:
Expand Down Expand Up @@ -1533,7 +1533,7 @@ entities:
- pos: -0.5,1.5
parent: 17
type: Transform
- proto: WarpPoint
- proto: WarpPointShip
entities:
- uid: 201
components:
Expand Down
4 changes: 2 additions & 2 deletions Resources/Maps/Shuttles/esquire.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1881,7 +1881,7 @@ entities:
- pos: -1.5,-1.5
parent: 1
type: Transform
- proto: FaxMachineBase
- proto: FaxMachineShip
entities:
- uid: 265
components:
Expand Down Expand Up @@ -4459,7 +4459,7 @@ entities:
pos: -2.5,-5.5
parent: 1
type: Transform
- proto: WarpPoint
- proto: WarpPointShip
entities:
- uid: 438
components:
Expand Down
2 changes: 1 addition & 1 deletion Resources/Maps/Shuttles/fighter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -569,7 +569,7 @@ entities:
pos: 2.5,7.5
parent: 1
type: Transform
- proto: WarpPoint
- proto: WarpPointShip
entities:
- uid: 72
components:
Expand Down
4 changes: 2 additions & 2 deletions Resources/Maps/Shuttles/helix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1424,7 +1424,7 @@ entities:
- pos: -2.5,7.5
parent: 1
type: Transform
- proto: FaxMachineBase
- proto: FaxMachineShip
entities:
- uid: 186
components:
Expand Down Expand Up @@ -3295,7 +3295,7 @@ entities:
- pos: 9.5,8.5
parent: 1
type: Transform
- proto: WarpPoint
- proto: WarpPointShip
entities:
- uid: 494
components:
Expand Down
4 changes: 2 additions & 2 deletions Resources/Maps/Shuttles/honker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1322,7 +1322,7 @@ entities:
- canCollide: False
type: Physics
- type: InsideEntityStorage
- proto: FaxMachineBase
- proto: FaxMachineShip
entities:
- uid: 260
components:
Expand Down Expand Up @@ -2292,7 +2292,7 @@ entities:
occludes: True
ent: null
type: ContainerContainer
- proto: WarpPoint
- proto: WarpPointShip
entities:
- uid: 209
components:
Expand Down
4 changes: 2 additions & 2 deletions Resources/Maps/Shuttles/interceptor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -812,7 +812,7 @@ entities:
pos: -0.5,-3.5
parent: 117
type: Transform
- proto: FaxMachineBase
- proto: FaxMachineShip
entities:
- uid: 105
components:
Expand Down Expand Up @@ -1846,7 +1846,7 @@ entities:
- pos: -1.5,1.5
parent: 117
type: Transform
- proto: WarpPoint
- proto: WarpPointShip
entities:
- uid: 226
components:
Expand Down
4 changes: 2 additions & 2 deletions Resources/Maps/Shuttles/mail.yml
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ entities:
- pos: 0.5,3.5
parent: 103
type: Transform
- proto: FaxMachineBase
- proto: FaxMachineShip
entities:
- uid: 53
components:
Expand Down Expand Up @@ -824,7 +824,7 @@ entities:
pos: -0.5,-3.5
parent: 103
type: Transform
- proto: WarpPoint
- proto: WarpPointShip
entities:
- uid: 94
components:
Expand Down
4 changes: 2 additions & 2 deletions Resources/Maps/Shuttles/marauder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4135,7 +4135,7 @@ entities:
- pos: -5.5,6.5
parent: 1
type: Transform
- proto: FaxMachineBase
- proto: FaxMachineShip
entities:
- uid: 622
components:
Expand Down Expand Up @@ -10449,7 +10449,7 @@ entities:
pos: -6.5,6.5
parent: 1
type: Transform
- proto: WarpPoint
- proto: WarpPointShip
entities:
- uid: 1516
components:
Expand Down
4 changes: 2 additions & 2 deletions Resources/Maps/Shuttles/prospector.yml
Original file line number Diff line number Diff line change
Expand Up @@ -956,7 +956,7 @@ entities:
- pos: -1.5,-3.5
parent: 201
type: Transform
- proto: FaxMachineBase
- proto: FaxMachineShip
entities:
- uid: 161
components:
Expand Down Expand Up @@ -1819,7 +1819,7 @@ entities:
pos: -1.5,-3.5
parent: 201
type: Transform
- proto: WarpPoint
- proto: WarpPointShip
entities:
- uid: 199
components:
Expand Down
Loading

0 comments on commit c692557

Please sign in to comment.