Skip to content

Commit

Permalink
Merge pull request #1625 from Darkmajia/supermatter-entitystorage
Browse files Browse the repository at this point in the history
supermatter safety moth parity
  • Loading branch information
AftrLite authored Feb 9, 2025
2 parents 7f49396 + 62a935c commit 82307a4
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
using Content.Shared.Radiation.Components;
using Content.Shared.Silicons.Laws.Components;
using Content.Shared.Speech;
using Content.Shared.Storage.Components;
using Content.Shared.Traits.Assorted;
using Robust.Server.GameObjects;
using Robust.Shared.Audio;
Expand Down Expand Up @@ -674,10 +675,11 @@ private void HandleDelamination(EntityUid uid, SupermatterComponent sm)
// Play the reality distortion sound for every player on the map
_audio.PlayGlobal(sm.DistortSound, mapFilter, true);

// Add hallucinations to every player on the map
// Add hallucinations to every mob on the map, except those in EntityStorage (lockers, etc)
// TODO: change this from paracusia to actual hallucinations whenever those are real
var mobLookup = new HashSet<Entity<MobStateComponent>>();
_entityLookup.GetEntitiesOnMap<MobStateComponent>(mapId, mobLookup);
mobLookup.RemoveWhere(x => HasComp<InsideEntityStorageComponent>(x));

// These values match the paracusia disability, since we can't double up on paracusia
var paracusiaSounds = new SoundCollectionSpecifier("Paracusia");
Expand Down Expand Up @@ -744,7 +746,7 @@ private void HandleLight(EntityUid uid, SupermatterComponent sm)
}

/// <summary>
/// Checks for
/// Checks whether a mob can see the supermatter, then applies hallucinations and psychologist coefficient
/// </summary>
private void HandleVision(EntityUid uid, SupermatterComponent sm)
{
Expand Down

0 comments on commit 82307a4

Please sign in to comment.