Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions Content.Server/_White/Chemistry/Effects/ChemGivePsionics.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
using Content.Shared.Chemistry.Reagent;
using Content.Server.Psionics;
using Content.Shared.EntityEffects;
using JetBrains.Annotations;
using Robust.Shared.Prototypes;
using Content.Shared.Abilities.Psionics;

namespace Content.Server._White.Chemistry.ReagentEffects
{
[UsedImplicitly]
public sealed partial class ChemGivePsionic : EntityEffect
{
protected override string? ReagentEffectGuidebookText(IPrototypeManager prototype, IEntitySystemManager entSys)
=> Loc.GetString("reagent-effect-guidebook-chem-give-psionic", ("chance", Probability));

public override void Effect(EntityEffectBaseArgs args)
{
if (args is not EntityEffectReagentArgs _)
return;

args.EntityManager.EnsureComponent<PsionicComponent>(args.TargetEntity);
}
}
}
5 changes: 5 additions & 0 deletions Resources/Locale/en-US/_white/guidebook/chemistry/effects.ftl
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
reagent-effect-guidebook-chem-give-psionic =
{ $chance ->
[1] Grants
*[other] grants
} psionic powers
5 changes: 5 additions & 0 deletions Resources/Locale/ru-RU/_white/guidebook/chemistry/effects.ftl
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
reagent-effect-guidebook-chem-give-psionic =
{ $chance ->
[1] Даёт
*[other] даёт
} псионические силы
5 changes: 5 additions & 0 deletions Resources/Prototypes/Reagents/psionic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,11 @@
- !type:ReagentThreshold
reagent: LotophagoiOil
min: 5
- !type:ChemGivePsionic #wwdp edit
conditions:
- !type:ReagentThreshold
reagent: LotophagoiOil
min: 40

- type: reagent
id: OusianaDust
Expand Down
Loading