mirror of
https://github.com/WWhiteDreamProject/wwdpublic.git
synced 2026-04-17 13:37:47 +03:00
# Description This PR adds 7 new Psionic-related Traits. All of these traits require that a character either be a Latent Psychic, or be one of the roundstart-Psionic roles. # TODO - [x] Finish the descriptions by making them extremely vague. <details><summary><h1>Media</h1></summary> <p>  </p> </details> # Changelog 🆑 - add: 7 new Psionic-related Traits have been added to the game: High Psi-Potential, Low Psi-Potential, Power Overwhelming, kα Abundance, kα Deficiency, kδ Proficient, and kδ Defect - add: Oni now have a built-in negative trait that acts as a more severe version of Low Psi-Potential. Oni now have significant penalties to generating new Psionic Powers. --------- Signed-off-by: VMSolidus <evilexecutive@gmail.com>
20 lines
609 B
C#
20 lines
609 B
C#
using Content.Server.Psionics;
|
|
|
|
namespace Content.Server.Traits.Assorted;
|
|
public sealed partial class PotentiaModifierSystem : EntitySystem
|
|
{
|
|
public override void Initialize()
|
|
{
|
|
base.Initialize();
|
|
SubscribeLocalEvent<PotentiaModifierComponent, OnRollPsionicsEvent>(OnRollPsionics);
|
|
}
|
|
|
|
private void OnRollPsionics(EntityUid uid, PotentiaModifierComponent component, ref OnRollPsionicsEvent args)
|
|
{
|
|
if (uid != args.Roller)
|
|
return;
|
|
|
|
args.BaselineChance = args.BaselineChance * component.PotentiaMultiplier + component.PotentiaFlatModifier;
|
|
}
|
|
}
|