XenoArch [Science Overhaul] (#12204)
* multi-node xeno artifacts * refactor existing artifact effects * more tweaks to generation * more shit plus fix tests * more generation stuff plus threat levels * doink * now make it build * defer the artifact activation to not cause errors also pricing * some changes * all of the yaml + ui stuff for artifact analyzer * machine linking and starting to make the ui functional * artifact analyzer display * a shit ton of artifact analyzer stuff * more changes; making destroy work properly; progress bar tweaks * getting shit going! ALL RIGHT * small tweaks that didn't help much * Komm susser todd: the end of analysis * recipes and hints and ui, oh my! * add some in-game sources gotta prepare for day 1 launch * node data + ditch random seed in place of id * bunch of triggers * finish off the last few triggers * implement machine examine verb * knock, flicker, blink, throw * shatter, foam, shuffle, heat * fix all the shit i broke * *some* of these have to be good, no? 25 effects * callin' it there for effects * comments + reword some trigger hints * don't mind this little commit here * byref event * fix brokey node entry * fix low pressure trigger * mirror review plus fixing 0x40's bug also the throw artifact threw incorrectly * randomize the event message a teeny bit
This commit is contained in:
46
Content.Server/StationEvents/Events/BluespaceArtifact.cs
Normal file
46
Content.Server/StationEvents/Events/BluespaceArtifact.cs
Normal file
@@ -0,0 +1,46 @@
|
||||
using Robust.Shared.Random;
|
||||
|
||||
namespace Content.Server.StationEvents.Events;
|
||||
|
||||
public sealed class BluespaceArtifact : StationEventSystem
|
||||
{
|
||||
[Dependency] private readonly IRobustRandom _random = default!;
|
||||
|
||||
public override string Prototype => "BluespaceArtifact";
|
||||
|
||||
public readonly string ArtifactSpawnerPrototype = "RandomArtifactSpawner";
|
||||
public readonly string ArtifactFlashPrototype = "EffectFlashBluespace";
|
||||
|
||||
public readonly List<string> PossibleSighting = new()
|
||||
{
|
||||
"bluespace-artifact-sighting-1",
|
||||
"bluespace-artifact-sighting-2",
|
||||
"bluespace-artifact-sighting-3",
|
||||
"bluespace-artifact-sighting-4",
|
||||
"bluespace-artifact-sighting-5",
|
||||
"bluespace-artifact-sighting-6",
|
||||
"bluespace-artifact-sighting-7"
|
||||
};
|
||||
|
||||
public override void Added()
|
||||
{
|
||||
base.Added();
|
||||
|
||||
var str = Loc.GetString("bluespace-artifact-event-announcement",
|
||||
("sighting", Loc.GetString(_random.Pick(PossibleSighting))));
|
||||
ChatSystem.DispatchGlobalAnnouncement(str, colorOverride: Color.FromHex("#18abf5"));
|
||||
}
|
||||
|
||||
public override void Started()
|
||||
{
|
||||
base.Started();
|
||||
|
||||
if (!TryFindRandomTile(out _, out _, out _, out var coords))
|
||||
return;
|
||||
|
||||
EntityManager.SpawnEntity(ArtifactSpawnerPrototype, coords);
|
||||
EntityManager.SpawnEntity(ArtifactFlashPrototype, coords);
|
||||
|
||||
Sawmill.Info($"Spawning random artifact at {coords}");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user