forked from Simple-Station/Einstein-Engines
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request Simple-Station#265 from FoxxoTrystan/true-kin
Shadowkin, Anomaly and Whitelist!
- Loading branch information
Showing
57 changed files
with
10,954 additions
and
180 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
namespace Content.Server.FloofStation; | ||
|
||
[RegisterComponent] | ||
public sealed partial class AnomalyJobComponent : Component { } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
using Content.Shared.Shadowkin; | ||
using Content.Shared.Rejuvenate; | ||
|
||
namespace Content.Server.FloofStation; | ||
|
||
public sealed class AnomalyJobSystem : EntitySystem | ||
{ | ||
public override void Initialize() | ||
{ | ||
base.Initialize(); | ||
SubscribeLocalEvent<AnomalyJobComponent, ComponentStartup>(OnInit); | ||
} | ||
|
||
private void OnInit(EntityUid uid, AnomalyJobComponent component, ComponentStartup args) | ||
{ | ||
if (!TryComp<ShadowkinComponent>(uid, out var shadowkin)) | ||
return; | ||
|
||
shadowkin.BlackeyeSpawn = false; | ||
|
||
RaiseLocalEvent(uid, new RejuvenateEvent()); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
namespace Content.Server.FloofStation; | ||
|
||
[RegisterComponent] | ||
public sealed partial class DarkHubComponent : Component { } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
namespace Content.Server.FloofStation; | ||
|
||
[RegisterComponent] | ||
public sealed partial class DarkPortalComponent : Component { } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
using Content.Shared.Teleportation.Systems; | ||
|
||
namespace Content.Server.FloofStation; | ||
|
||
public sealed class DarkPortalSystem : EntitySystem | ||
{ | ||
[Dependency] private readonly LinkedEntitySystem _link = default!; | ||
|
||
public override void Initialize() | ||
{ | ||
base.Initialize(); | ||
SubscribeLocalEvent<DarkPortalComponent, ComponentStartup>(OnInit); | ||
} | ||
|
||
private void OnInit(EntityUid uid, DarkPortalComponent component, ComponentStartup args) | ||
{ | ||
var query = EntityQueryEnumerator<DarkHubComponent>(); | ||
while (query.MoveNext(out var target, out var portal)) | ||
_link.TryLink(uid, target); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
using Content.Server.GameTicking.Events; | ||
using Content.Server.Shuttles.Components; | ||
using Content.Shared.Shuttles.Components; | ||
using Robust.Server.GameObjects; | ||
using Robust.Shared.Map; | ||
|
||
namespace Content.Server.FloofStation; | ||
|
||
public sealed class TheDarkSystem : EntitySystem | ||
{ | ||
[Dependency] private readonly IMapManager _mapManager = default!; | ||
[Dependency] private readonly MapLoaderSystem _loader = default!; | ||
|
||
public override void Initialize() | ||
{ | ||
base.Initialize(); | ||
|
||
SubscribeLocalEvent<RoundStartingEvent>(SetupTheDark); | ||
} | ||
|
||
private void SetupTheDark(RoundStartingEvent ev) | ||
{ | ||
var mapId = _mapManager.CreateMap(); | ||
_mapManager.AddUninitializedMap(mapId); | ||
|
||
if (!_loader.TryLoad(mapId, "/Maps/Floof/hideout.yml", out var uids)) | ||
{ | ||
return; | ||
} | ||
|
||
foreach (var id in uids) | ||
{ | ||
EnsureComp<ArrivalsSourceComponent>(id); | ||
EnsureComp<PreventPilotComponent>(id); | ||
} | ||
|
||
_mapManager.DoMapInitialize(mapId); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
job-description-anomaly = What are you? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
job-name-anomaly = Anomaly |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
shadowkin-tired = "Im too tired!" |
Oops, something went wrong.