Skip to content

Commit

Permalink
crimmas (#575)
Browse files Browse the repository at this point in the history
  • Loading branch information
Cheackraze authored Nov 13, 2023
1 parent 20f29e8 commit 179db55
Show file tree
Hide file tree
Showing 3 changed files with 8,226 additions and 1 deletion.
11 changes: 11 additions & 0 deletions Content.Server/_NF/GameRule/NfAdventureRuleSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ private void OnStartup(RoundStartingEvent ev)
var tinnia = "/Maps/tinnia.yml";
var caseys = "/Maps/caseyscasino.yml";
var lpbravo = "/Maps/lpbravo.yml";
var northpole = "/Maps/northpole.yml";
var arena = "/Maps/arena.yml";
var cove = "/Maps/cove.yml";
var courthouse = "/Maps/courthouse.yml";
Expand Down Expand Up @@ -166,6 +167,16 @@ private void OnStartup(RoundStartingEvent ev)
_shuttle.AddIFFFlag(depotUid4s[0], IFFFlags.HideLabel);
}

if (_map.TryLoad(mapId, northpole, out var northpoleUids, new MapLoadOptions
{
Offset = _random.NextVector2(2150f, 3900f)
}))
{
var meta = EnsureComp<MetaDataComponent>(northpoleUids[0]);
_shuttle.SetIFFColor(northpoleUids[0], lpbravoColor);
_shuttle.AddIFFFlag(northpoleUids[0], IFFFlags.HideLabel);
}

if (_map.TryLoad(mapId, arena, out var depotUid5s, new MapLoadOptions
{
Offset = _random.NextVector2(1900f, 3800f)
Expand Down
Loading

0 comments on commit 179db55

Please sign in to comment.