Skip to content

Commit

Permalink
Make psionic monsters actually generate their Baseline too
Browse files Browse the repository at this point in the history
  • Loading branch information
VMSolidus committed Aug 14, 2024
1 parent a789f96 commit 51cdfe9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Content.Server/Psionics/PsionicsSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -80,14 +80,14 @@ private void OnMeleeHit(EntityUid uid, AntiPsionicWeaponComponent component, Mel

private void OnInit(EntityUid uid, PsionicComponent component, ComponentStartup args)
{
component.AmplificationSources.Add("Baseline Amplification", _random.NextFloat(0.4f, 1.2f));
component.DampeningSources.Add("Baseline Dampening", _random.NextFloat(0.4f, 1.2f));

if (!component.Removable
|| !TryComp<NpcFactionMemberComponent>(uid, out var factions)
|| _npcFactonSystem.ContainsFaction(uid, "GlimmerMonster", factions))
return;

component.AmplificationSources.Add("Baseline Amplification", _random.NextFloat(0.4f, 1.2f));
component.DampeningSources.Add("Baseline Dampening", _random.NextFloat(0.4f, 1.2f));

_npcFactonSystem.AddFaction(uid, "PsionicInterloper");
}

Expand Down

0 comments on commit 51cdfe9

Please sign in to comment.