Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mercenary Hub #1035

Closed
wants to merge 12 commits into from
11 changes: 11 additions & 0 deletions Content.Server/_NF/GameRule/NfAdventureRuleSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ private void OnStartup(RoundStartingEvent ev)
var church = "Maps/_NF/POI/beacon.yml";
var grifty = "Maps/_NF/POI/grifty.yml";
var nfsdStation = "/Maps/_NF/POI/nfsd.yml";
var mercenaryhub = "/Maps/_NF/POI/mercenaryhub.yml";
var trade = "/Maps/_NF/POI/trade.yml";
var depotColor = new Color(55, 200, 55);
var civilianColor = new Color(55, 55, 200);
Expand Down Expand Up @@ -295,6 +296,16 @@ private void OnStartup(RoundStartingEvent ev)
_meta.SetEntityName(labUids[0], "Anomalous Laboratory", meta);
_shuttle.SetIFFColor(labUids[0], factionColor);
}

if (_map.TryLoad(mapId, mercenaryhub, out var merchubUids, new MapLoadOptions
{
Offset = _random.NextVector2(1500f, 2900f)
}))
{
var meta = EnsureComp<MetaDataComponent>(merchubUids[0]);
_meta.SetEntityName(merchubUids[0], "Mercenary Hub", meta);
_shuttle.SetIFFColor(merchubUids[0], factionColor);
}

if (_map.TryLoad(mapId, trade, out var tradeUids, new MapLoadOptions
{
Expand Down
Loading
Loading