Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix psi v3 #1074

Merged
merged 9 commits into from
Feb 24, 2025
Merged
Show file tree
Hide file tree
Changes from 8 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
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,12 @@ private void OnAnomalySupercritical(EntityUid uid, GlimmerSourceComponent compon
public override void Update(float frameTime)
{
base.Update(frameTime);
var q = EntityQueryEnumerator<GlimmerSourceComponent>();
while (q.MoveNext(out var owner, out var source))
var q = EntityQueryEnumerator<GlimmerSourceComponent, MetaDataComponent>();
while (q.MoveNext(out var owner, out var source, out var md))
{
if(Paused(owner, md))
continue;

if (!source.Active)
continue;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ protected override void Started(EntityUid uid, GlimmerRevenantRuleComponent comp
var query = EntityQueryEnumerator<GlimmerSourceComponent,TransformComponent>();
while (query.MoveNext(out var source, out _, out var transform))
{
if(Paused(source))
continue;

if (_stationSystem.GetOwningStation(source, transform) == station)
glimmerSources.Add(source);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ protected override void Started(EntityUid uid, GlimmerWispRuleComponent componen
var locations = EntityQueryEnumerator<GlimmerSourceComponent, TransformComponent>();
while (locations.MoveNext(out var sUid, out _, out var transform))
{
if(Paused(sUid))
continue;

if (_stationSystem.GetOwningStation(sUid, transform) == station)
{
glimmerSources.Add(transform.Coordinates);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
using Content.Shared.DoAfter;
using Content.Shared.Random;
using Robust.Shared.Audio;
using Robust.Shared.Audio.Components;
using Robust.Shared.GameStates;
using Robust.Shared.Prototypes;

namespace Content.Shared.Backmen.Chapel.Components;

Expand All @@ -20,28 +22,28 @@ public sealed partial class SacrificialAltarComponent : Component
public Entity<AudioComponent>? SacrificeStingStream;

[DataField("rewardPool")]
public string RewardPool = "PsionicArtifactPool";
public ProtoId<WeightedRandomPrototype> RewardPool = "PsionicArtifactPool";

[DataField("rewardPoolChance")]
public float RewardPoolChance = 0.1f;
public float RewardPoolChance = 0.3f;

[DataField("rewardPoolChanceBibleUser")]
public float RewardPoolChanceBibleUser = 0.5f;
public float RewardPoolChanceBibleUser = 0.8f;

[DataField("bluespaceRewardMin")]
public int BluespaceRewardMin = 1;
public int BluespaceRewardMin = 4;

[DataField("bluespaceRewardMax")]
public int BlueSpaceRewardMax = 4;
public int BlueSpaceRewardMax = 8;

[DataField("glimmerReductionMin")]
public int GlimmerReductionMin = 30;
public int GlimmerReductionMin = 500;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue

Существенное увеличение значений уменьшения глиммера

Значения уменьшения глиммера были значительно увеличены:

  • Минимум: с 30 до 500
  • Максимум: с 60 до 900

Это радикальное изменение может сильно повлиять на механику глиммера.

Рекомендуется:

  1. Проверить влияние на общий баланс системы глиммера
  2. Убедиться, что такое большое уменьшение не нарушает игровую механику
  3. Рассмотреть возможность постепенного увеличения значений

Also applies to: 43-43


[DataField("glimmerReductionMax")]
public int GlimmerReductionMax = 60;
public int GlimmerReductionMax = 900;

[DataField("trapPrototype")]
public string TrapPrototype = "CrystalSoul";
public EntProtoId TrapPrototype = "CrystalSoul";

/// <summary>
/// Antiexploit.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -154,9 +154,11 @@
maxVol: 50
reagents:
- ReagentId: Ash
Quantity: 25
Quantity: 10
- ReagentId: Necrosol
Quantity: 25
Quantity: 10
- ReagentId: Ectoplasm
Quantity: 5
- type: GuideHelp
guides:
- MinorAntagonists
19 changes: 14 additions & 5 deletions Resources/Prototypes/_Backmen/GameRules/events.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,9 @@
abstract: true
components:
- type: StationEvent
# Favor glimmer events just a little more than regular events.
weight: 12
earliestStart: 1
reoccurrenceDelay: 1
reoccurrenceDelay: 5
- type: GlimmerEvent

## Glimmer events
Expand All @@ -134,7 +133,7 @@
components:
- type: GlimmerEvent
minimumGlimmer: 300
maximumGlimmer: 900
maximumGlimmer: 1000
- type: NoosphericFryRule


Expand All @@ -157,8 +156,8 @@
components:
- type: GlimmerEvent
minimumGlimmer: 400
glimmerBurnLower: 20
glimmerBurnUpper: 70
glimmerBurnLower: 50
glimmerBurnUpper: 200
- type: MassMindSwapRule

- type: entity
Expand All @@ -169,6 +168,8 @@
- type: GlimmerEvent
minimumGlimmer: 300
maximumGlimmer: 1000
glimmerBurnLower: 90
glimmerBurnUpper: 120
report: glimmer-event-report-signatures
- type: GlimmerWispRule

Expand All @@ -177,6 +178,10 @@
parent: BaseGlimmerEvent
categories: [ HideSpawnMenu ]
components:
- type: StationEvent
weight: 12
earliestStart: 1
reoccurrenceDelay: 1
- type: GlimmerEvent
minimumGlimmer: 0
maximumGlimmer: 100
Expand All @@ -190,6 +195,10 @@
parent: BaseGlimmerEvent
categories: [ HideSpawnMenu ]
components:
- type: StationEvent
weight: 12
earliestStart: 1
reoccurrenceDelay: 1
- type: GlimmerEvent
minimumGlimmer: 300
maximumGlimmer: 1000
Expand Down
10 changes: 5 additions & 5 deletions Resources/Prototypes/_Backmen/Reactions/psionic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@
minTemp: 400
reactants:
Ash:
amount: 10
amount: 5
Water:
amount: 10
amount: 5
Blood:
amount: 10
amount: 5
Ectoplasm:
amount: 10
amount: 5
Plasma:
amount: 10
amount: 5
catalyst: true
effects:
- !type:CreateEntityReactionEffect
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@
[color=#a4885c]Снаряды Soulbreaker[/color] удаляют псионику у псиоников, в которых они попадают.

<GuideEntityEmbed Entity="Ectoplasm" />
<GuideReagentEmbed Reagent="Ectoplasm"/>
[color=#a4885c] Эктоплазма[/color], смешанная в мензурке с равными частями воды, золы, крови и плазмы, при достаточном нагревании даст нормальный кристалл. [color=#fcdf03]Используйте для этого горячую плиту.[/color]



</Document>
Loading