Radiation Outburst Fix (#438)

This commit is contained in:
HappyRoach
2026-06-06 18:29:16 +03:00
committed by GitHub
parent a2719f9a62
commit 0fe05e27c0
@@ -1,5 +1,4 @@
using Content.Server.StationEvents.Components;
using Content.Server.Construction.Components;
using Robust.Shared.Random;
using Robust.Shared.Prototypes;
using Robust.Shared.Containers;
@@ -8,7 +7,6 @@ using Content.Shared.GameTicking.Components;
using Content.Shared.Item;
using Content.Shared.Mobs.Components;
using Content.Shared.Tag;
using Content.Shared.Construction.Components;
using Content.Shared.Stacks;
using Content.Shared.Ghost;
@@ -23,10 +21,6 @@ public sealed partial class RadiationOutburstRuleSystem : StationEventSystem<Rad
private EntityQuery<MobStateComponent> _mobStateQuery;
private EntityQuery<GhostComponent> _ghostQuery;
private static readonly ProtoId<TagPrototype> HighRiskItemTag = "HighRiskItem";
private static readonly ProtoId<TagPrototype> OreTag = "Ore";
private static readonly ProtoId<TagPrototype> ConstructionMaterialTag = "ConstructionMaterial";
private static readonly ProtoId<TagPrototype> RawMaterialTag = "RawMaterial";
private static readonly ProtoId<TagPrototype> MaterialsThrophyTag = "MaterialsThrophy";
public override void Initialize()
{
@@ -58,8 +52,8 @@ public sealed partial class RadiationOutburstRuleSystem : StationEventSystem<Rad
if (_tagSystem.HasTag(targetUid, HighRiskItemTag))
continue;
//анти куча материалов чек
if (_tagSystem.HasTag(targetUid, OreTag) || _tagSystem.HasTag(targetUid, ConstructionMaterialTag) || _tagSystem.HasTag(targetUid, RawMaterialTag) || _tagSystem.HasTag(targetUid, MaterialsThrophyTag))
// анти стаки
if (HasComp<StackComponent>(targetUid))
continue;
// анти педали айтем
@@ -101,7 +95,6 @@ public sealed partial class RadiationOutburstRuleSystem : StationEventSystem<Rad
private void SetRadiation(EntityUid target, float rads)
{
var radiationComp = EnsureComp<RadiationSourceComponent>(target);
// radiationComp.Intensity += rads; пока легенько
Dirty(target, radiationComp);
Log.Debug($"RadiationOutburst: {target} теперь излучает +{rads} (всего: {radiationComp.Intensity})");